var $f = jQuery.noConflict();

function background() {
	var container = $f("#background");
	var imageCtn = $f("#scale");
	var width = (container.width()) + "px";
	imageCtn.css({ width: width });
	marginTop = "-" + (imageCtn.height()-container.height()) + "px";
	imageCtn.css({ top: 0 });
	//$f("#scale").fadeIn(1200);
	$f("#scale").show();
	if (imageCtn.height() > container.height()) {
		height = (imageCtn.height()-49) + "px";
	}
	else {
		height = (container.height()-49) + "px";
	}
	$f("#white").css({ height: height});
}
$f("#scale").ready(function(){
	background();
	
});
window.onresize = function() {
	$f("#scale").hide();
	background();
}
