/* -----------------------------------------------
   Floating layer - v.2
   (c) 2010 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.
  ------------------------------------------------ */
<!--
function getStyle(className) {
    var classes = document.styleSheets[0].rules || document.styleSheets[0].cssRules
    for(var x=0;x<classes.length;x++) {
        if(classes[x].selectorText==className) {
				return x;
        }
    }
}
function setVisible(el)
{
	var obj = document.getElementById(el);
	if(obj.style.visibility == 'visible')
	{
		obj.style.visibility = 'hidden'
	}
	else
	{
		obj.style.visibility = 'visible';
		placeIt(obj);
	}
}
function placeIt(obj)
{
	var rule = getStyle('#'+obj.id);
	var x = (document.styleSheets[0].rules) ? document.styleSheets[0].rules[rule].style.left : document.styleSheets[0].cssRules[rule].style.left;
	var y = (document.styleSheets[0].rules) ? document.styleSheets[0].rules[rule].style.top : document.styleSheets[0].cssRules[rule].style.top;
	var theLeft;
	var theTop;
	if (document.documentElement)
	{
		theLeft = document.documentElement.scrollLeft;
		theTop = document.documentElement.scrollTop;
	}
	else if (document.body)
	{
		theLeft = document.body.scrollLeft;
		theTop = document.body.scrollTop;
	}
	theLeft += parseFloat(x);
	theTop += parseFloat(y);
	obj.style.left = theLeft + 'px' ;
	obj.style.top = theTop + 'px' ;
	var showFunc = function(){ placeIt(obj) };
	setTimeout(showFunc,250);
}
//-->
