/* -----------------------------------------------
   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 = 470;
y = 250;

function setVisible(obj, num)
{
	//alert(obj);
	obj = document.getElementById(obj);
	obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';
	
	num_obj = document.getElementById(num);
	num_obj.style.visibility = (num_obj.style.visibility == 'visible') ? 'hidden' : 'visible';
	
	for(i=1; i<20; i++){
		if(i != num){
			oth = document.getElementById(i);
			oth.style.display = 'none';
			
			//on = document.getElementById('dem'+i);
			//on.className = 'blank';
		}
		else{
			my = document.getElementById(i);
			my.style.display = 'block';
			
			//on = document.getElementById('dem'+i);
			//on.className = 'gallery_demo_unstyled';
			//alert(on.className);
		}
	}
}

	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);

	function showPic (whichpic, num) {
		if (document.getElementById) {
			
			document.getElementById('placeholder'+num).width = 480;
			document.getElementById('placeholder'+num).height = 330;
			document.getElementById('placeholder'+num).src = whichpic.href;
			if (whichpic.title) {
				document.getElementById('desc'+num).childNodes[0].nodeValue = whichpic.title;
			} 
			else {
				document.getElementById('desc'+num).childNodes[0].nodeValue = 'Click on thumbnail for large view';
			}
 			return false;
 		} 
		else {
			return true;
	 	}
	} 

/*
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);
*/

