
function setBackGround(){
	if (self.innerWidth){
		winWidth = self.innerWidth;
	}
	else if (document.documentElement && document.documentElement.clientWidth){
		winWidth = document.documentElement.clientWidth;
	}
	else if (document.body){
		winWidth = document.body.clientWidth;
	}
	
	if(winWidth<801){
		document.write('<link rel="STYLESHEET" type="text/css" href="css/800.css">');
	}
	else if(winWidth<1024 && winWidth>800){
		document.write('<link rel="STYLESHEET" type="text/css" href="css/1024.css">');
	}
	else{
		document.write('<link rel="STYLESHEET" type="text/css" href="css/1280.css">');
	}
}

function setHeader(h){
	document.hdr.src="images/"+h;
}
function setFooter(f){
	document.footer.src="images/"+f;
}
function over(id){
	//document[id].src="images/"+id+"_mo.gif";
}
function out(id){
	//document[id].src="images/"+id+".gif";
}
function openWindow(url){
	var popW=300;
	var popH=200;
	var winLeft = (screen.width - popW) / 2;
	var winTop = (screen.height - popH-200) / 2;
    var w = window.open (url, "win", "left="+winLeft+",top="+winTop+",height="+popH+",width="+popW+",location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no");
}


setBackGround();
if(popup!="none"){
	openWindow(popup);
}

