

function customizedInit(){
	//detect msie 6
	var IE6 = false /*@cc_on || @_jscript_version < 5.7 @*/;
	if (IE6){
		document.getElementById('bg').style.position="absolute";
	}
	changeImgSize();
	
	window.onscroll=function(){
		img= document.getElementById('bgpic');
		//check the image proportion
		
		imageProportion = 1531/941;
		iebody=(document.compatMode && document.compatMode != "BackCompat")? document.documentElement : document.body;
		 //window size
	    winHeight=document.all? iebody.clientHeight : window.innerHeight;
		winWidth=document.all? iebody.clientWidth : window.innerWidth;
		newHeight=winHeight;
			 //proportion
	    windowProportion=winWidth/winHeight;
		if (windowProportion >= imageProportion) {
			document.getElementById('bgpic').style.width=winWidth+"px";
			document.getElementById('bgpic').style.height="auto";
	    }else{
			document.getElementById('bgpic').style.height=newHeight+"px";
			document.getElementById('bgpic').style.width="auto";
	    }
	}
	window.onresize=function(){
		img= document.getElementById('bgpic');
		//check the image proportion
		
		imageProportion = 1531/941;
		iebody=(document.compatMode && document.compatMode != "BackCompat")? document.documentElement : document.body;
		 //window size
	    winHeight=document.all? iebody.clientHeight : window.innerHeight;
		winWidth=document.all? iebody.clientWidth : window.innerWidth;
		newHeight=winHeight;
			 //proportion
	    windowProportion=winWidth/winHeight;
		if (windowProportion >= imageProportion) {
			document.getElementById('bgpic').style.width=winWidth+"px";
			document.getElementById('bgpic').style.height="auto";
	    }else{
			document.getElementById('bgpic').style.height=newHeight+"px";
			document.getElementById('bgpic').style.width="auto";
	    }
	}
}

function changeImgSize(){
		img= document.getElementById('bgpic');
		//check the image proportion
		
		imageProportion = 1531/941;
		iebody=(document.compatMode && document.compatMode != "BackCompat")? document.documentElement : document.body;
		 //window size
	    winHeight=document.all? iebody.clientHeight : window.innerHeight;
		winWidth=document.all? iebody.clientWidth : window.innerWidth;
		newHeight=winHeight;
			 //proportion
	    windowProportion=winWidth/winHeight;
		if (windowProportion >= imageProportion) {
			document.getElementById('bgpic').style.width=winWidth+"px";
			document.getElementById('bgpic').style.height="auto";
	    }else{
			document.getElementById('bgpic').style.height=newHeight+"px";
			document.getElementById('bgpic').style.width="auto";
	    }
   
} 

