function cleanmail(user, domain, suffix){
  document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + '">');
  document.write(user + '@' + domain + '.' + suffix);
  document.write('</a>');
}

function showPic (whichpic) { 
	if (document.getElementById) { 
		document.getElementById('placeholder').src = whichpic.href;
		var bigref =  whichpic.href.replace(/.*\/320\//,"");
		bigref = bigref.replace(/\.jpg$/,"");
		document.getElementById('plink').href = "main.cgi?page=pic&which=" + bigref; 
		return false; 
	} else { 
		return true; 
	} 
}

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

function setPic(which)
{
  which = document.getElementById('pic').src.replace(/.*\//,"")
  document.getElementById('bigpic').src='/gall07/big/'+which
}
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;
	}
	obj.style.left = theLeft + 'px' ;
	obj.style.top = theTop + 'px' ;
}
