function mail(u, s, d, img)
{
var l="ilto";
	if (img == "txt")
		{document.write("<a"+" href="+"ma"+l+":"+u+"&#64;"+s+ "." +d+">"+u+"&#64;"+s+ "." +d+"</a>");}
	else
		{document.write("<a"+" href="+"ma"+l+":"+u+"&#64;"+s+ "." +d+">"+"<img src=\""+img+"\" alt=\"E-mail\" /></a>");}
}


function show(arg)
{
if (document.getElementById(arg).style.display == "none")
	{
	document.getElementById(arg).style.display = "block";
	}
else
	{
	document.getElementById(arg).style.display = "none";
	}
}

function zoom(url,w,h,alt)
{
if (document.getElementById("zoom_screen").style.display == "none")
	{
	document.getElementById("zoom_screen").style.display = "block";
	document.getElementById("zoomed_photo").src = url;
	document.getElementById("zoomed_photo").width = w;
	document.getElementById("zoomed_photo").height = h;
	document.getElementById("zoomed_photo").alt = alt;
	document.getElementById("zoomed_div").style.marginTop = -((Math.round (h/2))+(7+1))+"px";
	document.getElementById("zoomed_div").style.marginLeft = -((Math.round (w/2))+(9+1))+"px";
	document.getElementById("zoomed_div").style.height = (h+(7*2))+"px";
	document.getElementById("zoomed_div").style.width = (w+(9*2))+"px";
	}
else
	{
	document.getElementById("zoom_screen").style.display = "none";
	document.getElementById("zoomed_photo").src = "/img/spacer.gif";
	document.getElementById("zoomed_photo").width = "1";
	document.getElementById("zoomed_photo").height = "1";
	document.getElementById("zoomed_photo").alt = "";
	document.getElementById("zoomed_div").style.marginTop = "0";
	document.getElementById("zoomed_div").style.marginLeft = "0"
	}
}