/*
function setBackgroundImage(akamaiURL,imagePath,fileName,pageBgColor){
	if((fileName==null||fileName=="")&&(pageBgColor==null||pageBgColor=="")){
		return;
		}else{
			if(BO.ie6){
				try{
					document.execCommand("BackgroundImageCache",false,true);
				}catch(e){}
		}
		if(BO.ie6){
			var bgImage=new Image();
			bgImage.src=akamaiURL+imagePath+fileName;
			var theBody=document.getElementsByTagName("body")[0];
			theBody.style.backgroundImage="url('"+bgImage.src+"')";
			theBody.style.backgroundAttachment="fixed";
			theBody.style.backgroundPosition="50% 0px";
			theBody.style.backgroundRepeat="no-repeat";
			if(pageBgColor!=null){
				document.getElementsByTagName("body")[0].style.backgroundColor=pageBgColor;
				}
			}			
		}
		}
	
		function addWindowEvent(target,functionref,tasktype){
			if(target.addEventListener){
				target.addEventListener(tasktype,functionref,false);
			}else{
				if(target.attachEvent){
					target.attachEvent("on"+tasktype,function(){return functionref.call(target,window.event);});
				}
			}
		}*/
		
function setBackgroundImage(akamaiURL,imagePath,fileName,repeatValue,pageBgColor){
	if((fileName==null||fileName=="")&&(pageBgColor==null||pageBgColor=="")){
		return;
	}else{
		if(BO.ie6){
			try{document.execCommand("BackgroundImageCache",false,true);}
				catch(e){}
			}
		if(BO.ie6){
			var bgImage=new Image();
			bgImage.src=akamaiURL+imagePath+fileName;
			var theBody=document.getElementsByTagName("BODY")[0];
			theBody.style.backgroundImage="url('"+bgImage.src+"')";
			theBody.style.backgroundAttachment="fixed";
			theBody.style.backgroundPosition="0px 0px";
			theBody.style.backgroundRepeat="no-repeat";
			if(pageBgColor!=null){
				document.getElementsByTagName("BODY")[0].style.backgroundColor=pageBgColor;
			}
		}
	}
}
function addWindowEvent(target,functionref,tasktype){if(target.addEventListener){target.addEventListener(tasktype,functionref,false);}else{if(target.attachEvent){target.attachEvent("on"+tasktype,function(){return functionref.call(target,window.event);});}}}
