var ht= function(){};
var isIE=!!window.ActiveXObject;
var isIE6=isIE&&!window.XMLHttpRequest;
var isIE7=isIE&&!isIE6
var i=0;
var w =window;
w.onload=function(){ht();};
var b = true;
if(isIE7){
	ht=function(){
		try{if(b){b=false;
		document.body.style.height="100%";
		document.body.style.height=(document.body.clientHeight<=document.getElementById("block").clientHeight)?"auto":"100%";
		document.getElementById("block").innerHTML=document.getElementById("block").innerHTML;
		  b=true;
		}
}catch(e){}
//setTimeout('ht()',2000);
	};
}else{
	if(isIE){
		ht=function(){document.getElementById("container").style.height=(document.body.clientHeight<=document.getElementById("block").clientHeight)?"auto":"100%";};
	}else{
		ht=function(){document.getElementById("wrapper").style.height=(document.body.clientHeight<=document.getElementById("block").clientHeight)?"auto":"100%";};
	}
w.onresize=function(){if(b){b=false;ht();b=true;}};
}
