/* -----------------------------------------------
   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.
  ------------------------------------------------ */

y = 20;

function getNextPic(myid) {
	myid++;
	setVisible('Popup', null);
	eval(showbig(myid));
	return false;
}

function setVisible2(obj, innerHTML, width, height) {
	obj = document.getElementById(obj);
	if (width != null) {
		obj.style.width = (width + 20) + "px";
		obj.style.marginLeft = (-(width + 20) / 2) + "px";
		obj.style.height = (height + 30) + "px";
	}
	
	if (innerHTML == null) return;
	
	if (obj.style.visibility == 'visible') {
		obj.innerHTML = '<span id="close"><a href="javascript:setVisible(\'Popup\', null)" style="text-decoration: none"><strong>[ Close ]</strong></a></span>';
		obj.style.visibility = 'hidden';
	} else {
		obj.innerHTML = '<span id="close"><a href="javascript:setVisible(\'Popup\', null)" style="text-decoration: none"><strong>[ Close ]</strong></a></span>' + innerHTML;
		obj.style.visibility = 'visible';
	}
}

function setVisible3(obj, innerHTML)
{
	obj = document.getElementById(obj);
	obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';
	obj.innerHTML = '<span id="close"><a href="javascript:setVisible(\'Popup\', null)" style="text-decoration: none"><strong>[X]</strong></a></span>' + innerHTML;
	return (obj.style.visibility == 'visible');
}

function setVisible(obj, dataid)
{
	obj = document.getElementById(obj);
	if (dataid != null) data = document.getElementById(dataid);
	if (obj.style.visibility == 'visible') {
		obj.innerHTML = '<span id="close"><a href="javascript:setVisible(\'Popup\', null)" style="text-decoration: none"><strong>[X]</strong></a></span>';
		obj.style.visibility = 'hidden';
	} else {
		if (dataid != null) obj.innerHTML = '<span id="close"><a href="javascript:setVisible(\'Popup\', null)" style="text-decoration: none"><strong>[X]</strong></a></span>' + data.innerHTML;
		obj.style.visibility = 'visible';
	}
}

function placeIt(obj)
{
	//return;
	obj = document.getElementById(obj);
	if (document.documentElement)
	{
		theTop = document.documentElement.scrollTop;
	}
	else if (document.body)
	{
		theTop = document.body.scrollTop;
	}
	theTop += y;
	obj.style.left = '50%' ;
	obj.style.top = theTop + 'px' ;
	setTimeout("placeIt('Popup')",500);
}
//window.onscroll = setTimeout("placeIt('Popup')",500);
