/* -----------------------------------------------   Floating layer - v.1   (c) 2006 www.haan.net   contact: jeroen@haan.net   You may use this script but please leave the credits on top intact.   Please inform us of any improvements made.   When usefull we will add your credits.  ------------------------------------------------ */var viewportwidth;var viewportheight;// the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeightif (typeof window.innerWidth != 'undefined'){	viewportwidth = window.innerWidth,	viewportheight = window.innerHeight}// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)else if (typeof document.documentElement != 'undefined'&& typeof document.documentElement.clientWidth !='undefined' && document.documentElement.clientWidth != 0){	viewportwidth = document.documentElement.clientWidth,	viewportheight = document.documentElement.clientHeight}// older versions of IEelse{	viewportwidth = document.getElementsByTagName('body')[0].clientWidth,	viewportheight = document.getElementsByTagName('body')[0].clientHeight}function setVisible(obj){	oly = document.getElementById('overlay_all');	oly.style.visibility = (oly.style.visibility == 'visible') ? 'hidden' : 'visible';	if (oly.style.visibility == 'visible') oly.style.zIndex = '1';	obj = document.getElementById(obj);	obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';}function setVisible_dime(obj,x,y,l,t){	oly = document.getElementById('overlay_all');	oly.style.visibility = (oly.style.visibility == 'visible') ? 'hidden' : 'visible';	if (oly.style.visibility == 'visible') oly.style.zIndex = '1';	obj = document.getElementById(obj);	obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';	if (x == 'auto') x = viewportwidth / 5 * 4;	if (y == 'auto') y = viewportheight / 5 * 2;	obj.style.top = t + 'px';	obj.style.left = l + 'px';	if (l == undefined) obj.style.left = '-'+((viewportwidth - x) * 3.15)+'px';	if (t == undefined) obj.style.top = '-100px';	if (x == 'auto1') x = 'auto';	x = x.toString();	if (x.indexOf('%') == -1 && x != 'auto') x = x + 'px';	y = y.toString();	if (y == 'auto1') y = 'auto';	if (y.indexOf('%') == -1 && y != 'auto') y = y + 'px';	//alert(x+','+x.indexOf('%')+','+y+','+y.indexOf('%')+','+l+','+t);	obj.style.width = x;	obj.style.height = y;}function setVisible2(obj, vis){	obj = document.getElementById(obj);	obj.style.visibility = vis;}
