/* -----------------------------------------------
   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.
  ------------------------------------------------ */

x = ((screen.width)/2)-200;
y = ((screen.height)/2)-200;
function setVisible(obj)
{
	obj = document.getElementById(obj);
	obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';
}
function placeIt(obj)
{
	obj = document.getElementById(obj);
	if (document.documentElement)
	{
		theLeft = document.documentElement.scrollLeft;
		theTop = document.documentElement.scrollTop;
	}
	else if (document.body)
	{
		theLeft = document.body.scrollLeft;
		theTop = document.body.scrollTop;
	}
	theLeft += x;
	theTop += y;
	obj.style.left = theLeft + 'px' ;
	obj.style.top = theTop + 'px' ;
	setTimeout("placeIt('layer1')",500);
}
window.onscroll = setTimeout("placeIt('layer1')",500);

x = ((screen.width)/2)-200;
y = ((screen.height)/2)-200;
function setVisible(obj)
{
	obj = document.getElementById(obj);
	obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';
}
function placeIt(obj)
{
	obj = document.getElementById(obj);
	if (document.documentElement)
	{
		theLeft = document.documentElement.scrollLeft;
		theTop = document.documentElement.scrollTop;
	}
	else if (document.body)
	{
		theLeft = document.body.scrollLeft;
		theTop = document.body.scrollTop;
	}
	theLeft += x;
	theTop += y;
	obj.style.left = theLeft + 'px' ;
	obj.style.top = theTop + 'px' ;
	setTimeout("placeIt('layer3')",500);
}
window.onscroll = setTimeout("placeIt('layer3')",500);


x = ((screen.width)/2)-250;
y = ((screen.height)/2)-200;
function setVisible(obj)
{
	obj = document.getElementById(obj);
	obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';
}
function placeIt(obj)
{
	obj = document.getElementById(obj);
	if (document.documentElement)
	{
		theLeft = document.documentElement.scrollLeft;
		theTop = document.documentElement.scrollTop;
	}
	else if (document.body)
	{
		theLeft = document.body.scrollLeft;
		theTop = document.body.scrollTop;
	}
	theLeft += x;
	theTop += y;
	obj.style.left = (theLeft-45) + 'px' ;
	obj.style.top = (theTop+50) + 'px' ;
	setTimeout("placeIt('layer4')",500);
}
window.onscroll = setTimeout("placeIt('layer4')",500);


/* LOGIN */

x2 = ((screen.width)/2)-100;
y2 = ((screen.height)/2)-100;
function setVisible2(obj2)
{
	obj2 = document.getElementById(obj2);
	obj2.style.visibility = (obj2.style.visibility == 'visible') ? 'hidden' : 'visible';
}
function placeIt2(obj2)
{
	obj2 = document.getElementById(obj2);
	if (document.documentElement)
	{
		theLeft2 = document.documentElement.scrollLeft2;
		theTop2 = document.documentElement.scrollTop2;
	}
	else if (document.body)
	{
		theLeft2 = document.body.scrollLeft2;
		theTop2 = document.body.scrollTop2;
	}
	theLeft2 += x2;
	theTop2 += y2;
	obj2.style.left = theLeft2 + 'px' ;
	obj2.style.top = theTop2 + 'px' ;
	setTimeout("placeIt2('layer2')",500);
}
window.onscroll2 = setTimeout("placeIt2('layer2')",500);


