// browsercheck
ns4 = (document.layers)? true:false;
ie4 = (document.all)? true:false;
dom = (ns4|ie4)? false:true;
ns6 = (window.innerWidth)? true:false;

dh = dw = 0;

function getWindowSize(){
	dhTmp = dh;
	dwTmp = dw;
	if(ie4 || dom) {
		wdh=window.top.document.body.offsetHeight;
		wdw=window.top.document.body.offsetWidth;
		dh=document.body.offsetHeight;
		dhs=document.body.scrollHeight;
		dw=document.body.offsetWidth;
		hDiff=240;
	}
	if(ns4 || ns6) {
		wdh=window.top.innerHeight;
		wdw=window.top.innerWidth;
		wh=window.top.outerHeight;
		ww=window.top.outerWidth;
		dh=window.innerHeight;
		dhs=document.documentElement.scrollHeight;
		dw=window.innerWidth;
		hDiff=236;
	}
	if(dhs>dh){
		//dh = dhs;
	}
	if(dhTmp == 0){
		dhTmp = dh;
		dwTmp = dw;
	}
}

function windowReload(){
	getWindowSize();
	if(dw!=dwTmp || dh!=dhTmp){
		//if(ie4 || dom) {alert('dom');}
		//if(ns4 || ns6) {alert('ns6');}
		
		location.reload();
		
		//h = (dh-hDiff);
		//if(dhs<=dh){
		//	document.getElementById("left").style.height = h;
		//}
		
		//treeBox.style.height = h;
		//alert(dh+','+dw);
	}
}
//window.onresize = windowReload;
windowReload();
document.writeln('<style type="text/css">');
document.writeln('<!--');

document.writeln('#left{');
document.writeln('	height: '+(dh-hDiff)+';');
document.writeln('}');

document.writeln('-->');
document.writeln('</style>');
//
windowInt = window.setInterval("windowReload()",100);


