function GEI(ID){return document.getElementById(ID);}
window.onload=function(){if(GEI('backgroundImage')){resizeme(GEI('backgroundImage'));}}
window.onresize=function(){if(GEI('backgroundImage')){resizeme(GEI('backgroundImage'));}}

function resizeme(Obj){
	var viewportwidth;
	if(typeof window.innerWidth!='undefined'){
	/*the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight*/
		viewportwidth=window.innerWidth;
	}else if(typeof document.documentElement!='undefined' && typeof document.documentElement.clientWidth!='undefined' && document.documentElement.clientWidth!=0){
	/*IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)*/
		viewportwidth=document.documentElement.clientWidth;
	}else{
	/*older versions of IE*/
		viewportwidth=document.getElementsByTagName('body')[0].clientWidth;
	}
	if(viewportwidth<=1280){Obj.style.width="1280px";}else{Obj.style.width="100%";}
}
