
	var imageW=0;
	var imageH=0;
	
	var imageHandle=null;
	$jquery(document).ready(function(){
		imageHandle = document.getElementById("imgBackground");
		var imageTitle=document.getElementById("imgBackground").getAttribute("title");
		var indexColon = imageTitle.indexOf(":");
		imageW = imageTitle.substring(0,indexColon);
		imageH = imageTitle.substring(indexColon+1);
		var curW = $jquery(window).width();
		var curH = $jquery(window).height();
		if(curW>imageW){
			imageHandle.style.width=imageW+"px";
			imageHandle.style.height=imageH+"px";
		}else{
			var percent = curW/imageW;
			var finalW = percent*imageW;
			var finalH = percent*imageH;
			imageHandle.style.width=finalW+"px";
			imageHandle.style.height=finalH+"px";
		}
		resizeView();
		$jquery(window).resize(function(){
			resizeView();
		});
	});
	
	function resizeView(){
		var totalW = $jquery(document).width();
		var totalH = $jquery(document).height();
		var viewW=$jquery(window).width();
		var viewH=$jquery(window).height();
		if(viewW>imageW){
			imageHandle.style.width=imageW+"px";
			imageHandle.style.height=imageH+"px";
		}else{
			var percent = viewW/imageW;
			var finalW = percent*imageW;
			var finalH = percent*imageH;
			imageHandle.style.width=finalW+"px";
			imageHandle.style.height=finalH+"px";
		}
	}