function res(){
	//return;
	var cont = document.getElementById("container");
	if(cont){
		//alert(he());
		cont.style.minHeight = he()+"px";
		if(navigator.userAgent.match(/MSIE/i)){
			if(he() > cont.offsetHeight){
				// alert(cont.offsetHeight);
				cont.style.height = he();
			}
			var wdt = getwdt();
			if(wdt < 970){
				cont.style.width = 970;
			} else {
				//if(cont.offsetWidth < wdt){
				//alert(cont.offsetWidth);
				cont.style.width = wdt;
			}
		}
	}
	var lp = document.getElementById("lp");
	if(!lp){
		return;
	}
	lp.style.width = Math.ceil(246+(cont.offsetWidth*3/100))+"px";
}

function he(){
    if(document.body.clientWidth){
	   var wdt = document.body.clientWidth;
	   var clh = document.body.clientHeight;
    }
    if(window.innerWidth){
	   wdt = window.innerWidth;
	   clh = window.innerHeight;
    }
    return clh;
}

function getwdt(){
    if(document.body.clientWidth){
	   var wdt = document.body.clientWidth;
	   var clh = document.body.clientHeight;
    }
    if(window.innerWidth){
	   wdt = window.innerWidth;
	   clh = window.innerHeight;
    }
    return wdt;
}

function logo_on(){
	var logo = document.getElementById('logo_hover');
	logo.style.visibility = "visible";
}
function logo_off(){
	var logo = document.getElementById('logo_hover');
	logo.style.visibility = "hidden";
}

window.onload = res;
window.onresize = res;