jQuery.noConflict();
jQuery(document).ready(function(){
	var bgs = new Array();
	bgs.push("/wp-content/themes/Rinaldo/images/img-scale1.jpg");
	bgs.push("/wp-content/themes/Rinaldo/images/img-scale2.jpg");
	bgs.push("/wp-content/themes/Rinaldo/images/img-scale3.jpg");
	bgs.push("/wp-content/themes/Rinaldo/images/img-scale4.jpg");
	bgs.push("/wp-content/themes/Rinaldo/images/img-scale4.jpg");

	var src = bgs[Math.floor(Math.random()*bgs.length)];
	
	var _img = jQuery('.bottom-bg img').eq(0);
	_img.attr('src', src);
	//Set size
	if(jQuery(window).height()/_img.height() > jQuery(window).width()/_img.width()){
		_img.css({height:'100%'});
	} else {
		_img.css({height:'100%'});
	}
});
