var neww;

function eon(str) {
	window.status = str;
	return false;
}
function eof() {
	window.status = "";
	return false;
}
function setSize() {
	window.resizeTo(200,200);
	var isDOM = document.getElementById;
	var isMSIE = document.all && document.all.item;
	var isNetscape4 = document.layers;
	var sh = window.screen.height;
	if (isMSIE) {
		var wr = document.body.scrollWidth;
		var hr = document.body.scrollHeight;
		var w = document.body.clientWidth;
		var h = document.body.clientHeight;
		self.resizeBy(wr - w, hr - h - 20);
		var ch = document.body.clientHeight;
		var cw = document.body.clientWidth;
		if (ch > sh - 100) { window.resizeTo (cw + 30, sh - 100); }
	} else if (isNetscape4) {
		window.innerHeight = document.height;
		window.innerWidth = document.width;
	} else if (isDOM) {
		window.scrollTo(1000, 1000);
		var w = window.innerWidth;
		var h = window.innerHeight;
		window.innerHeight = h + window.pageYOffset + 4;
		window.innerWidth = w + window.pageXOffset;
		window.scrollTo(0, 0);
	}
	self.focus();
}
function nw() {
	if (!window.neww||neww.closed) {
		neww = window.open("","nw","resizable,scrollbars=1,width=20,height=20");
	} else {
		window.neww.focus();
	}
}

function chksel(objsel) {
	if (objsel.options[objsel.selectedIndex].value == 0) {
		return (false);
	} else {
		return (true);
	}
}
function zoom() {
	if (!window.wz||wz.closed) {
		wz = window.open("","zoomw","resizable=1,width=200,height=200");
	} else {
		window.wz.focus();
	}
}

function slide1() {
	if (!window.wz||wz.closed) {
		wz = window.open("","slidew","resizable=1,width=200,height=200");
	} else {
		window.wz.focus();
	}
}

function slide() {
	if (!window.wz||wz.closed) {
		x=790; y=500;
		if (screen.width>800) y=680;
//		wz = window.open('', "slidew","scrollbars=yes,status=no,resizable=yes,width="+x+",height="+y+",left="+(screen.availWidth-x)/2+",top="+(screen.availHeight-y)/2);
		wz = window.open('', "slidew","scrollbars=yes,status=no,fullscreen,resizable=yes");
	} else {
		window.wz.focus();
	}

}

function slide2() {
	if(document.getElementById('float_banner_bg').style.display=='none'){
		document.getElementById('float_banner_bg').style.display='block';
		document.getElementById('prew-cont').style.display='block';
	}
	window.scroll(0,0);
	var intWindowHeight=document.body.clientHeight;
	var intDocHeight=document.body.scrollHeight;//document.documentElement.clientHeight;
//alert(intWindowHeight);
//alert(intDocHeight);
//alert(document.body.clientHeight);
//alert(document.documentElement.clientHeight);
//alert(document.body.scrollHeight);
	document.getElementById('float_banner_bg').style.height=parseInt(intDocHeight) + "px";
	document.getElementById('prew-cont').style.height=parseInt(intWindowHeight) + "px";
	document.getElementById('test').style.height='80%';
	document.getElementById('test').height='80%';
	selects = document.getElementsByTagName('select');
	for(i=0; i<selects.length; i++) {
		selects[i].style.visibility='hidden';
	}
}

function slide3() {
alert(document.getElementById('float_banner_bg').style.display);
	if(document.getElementById('float_banner_bg').style.display=='none'){
		document.getElementById('float_banner_bg').style.display='block';
		document.getElementById('prew-cont').style.display='block';
	}
	window.scroll(0,0);
	var intWindowHeight=document.body.clientHeight;
	var intDocHeight=document.body.scrollHeight;//document.documentElement.clientHeight;
	document.getElementById('float_banner_bg').style.height=parseInt(intDocHeight) + "px";
	document.getElementById('prew-cont').style.height=parseInt(intWindowHeight) + "px";
	document.getElementById('test').style.height='80%';
	document.getElementById('test').height='80%';
	selects = document.getElementsByTagName('select');
	for(i=0; i<selects.length; i++) {
		selects[i].style.visibility='hidden';
	}
alert(document.getElementById('float_banner_bg').style.display);
}

function slide4() {
/*	if(document.getElementById('float_banner_bg').style.display=='none'){
		document.getElementById('float_banner_bg').style.display='block';
		document.getElementById('prew-cont').style.display='block';
	}*/
	window.scroll(0,0);
/*	var intWindowHeight=document.body.clientHeight;
	var intDocHeight=document.body.scrollHeight;//document.documentElement.clientHeight;*/
//alert(intWindowHeight);
//alert(intDocHeight);
//alert(document.body.clientHeight);
//alert(document.documentElement.clientHeight);
//alert(document.body.scrollHeight);
/*	document.getElementById('float_banner_bg').style.height=parseInt(intDocHeight) + "px";
	document.getElementById('prew-cont').style.height=parseInt(intWindowHeight) + "px";
	document.getElementById('test').style.height='80%';
	document.getElementById('test').height='80%';*/
	selects = document.getElementsByTagName('select');
	for(i=0; i<selects.length; i++) {
		selects[i].style.visibility='hidden';
	}
}


function close_prev(){
	document.getElementById('float_banner_bg').style.display='none';
	document.getElementById('prew-cont').style.display='none';
	selects = document.getElementsByTagName('select');
	for(i=0; i<selects.length; i++){
		selects[i].style.visibility='visible';
	}
}

function showuser() {
	if (!window.usr||usr.closed) {
		usr = window.open("","userw","resizable,menubar=1,width=200,height=200");
	} else {
		window.usr.focus();
	}
}

function pagerw() {
	if (!window.pgr||pgr.closed) {
		pgr = window.open("","pgrw","resizable,width=200,height=200");
	} else {
		window.pgr.focus();
	}
}

function map() {
	if (!window.wmap||wmap.closed) {
		wmap = window.open("","mapw","resizable,menubar=1,width=200,height=200");
		self.name='mainwin';
	} else {
		window.wmap.focus();
	}
}

function survey() {
	if (!window.wsur||wsur.closed) {
		wsur = window.open("","surw","resizable,menubar=1,width=200,height=200");
		self.name='mainwin';
	} else {
		window.wsur.focus();
	}
}

