
/* The function hide_email
 * 
 * This function uses both special HTML characters and JavaScript to hide 
 * email addresses from address harvesters.
 *
 * It assumes arg0@arg1.arg2.
 *
 * Written by Andy Bell, 1 June 2003.
 */
function hide_email(address)
{
	var args = hide_email.arguments;

	if (args.length == 3)
	{
		document.write('<a class="email" href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;');
		document.write(args[0]);
		document.write('&#64;'); /* at */
		document.write(args[1]);
		document.write('&#46;'); /* dot */
		document.write(args[2]);
		document.write('">');
		document.write(args[0]);
		document.write('&#64;');
		document.write(args[1]);
		document.write('&#46;');
		document.write(args[2]);
		document.write('</a>');
	}
}

function preLoadImages()
{
  var t = '<layer top="-100" left="0" visibility="hide"><div style="position:absolute; top:-100px; left:0px; visibility:hidden">';
  
  for (i = 0; i < arguments.length; i++)
	  t += '<img src="' + arguments[i] + '" height="10" width="10">';

  t += '</div></layer>';
  
  document.write(t);
}

function swapImage(imgN,imgU)
{
  if (document.images)
	  document.images[imgN].src = imgU;
}

function showImage(imgN)
{
  if (document.images)
	  document.images[imgN].style.visibility='visible';
}

function hideImage(imgN)
{
  if (document.images)
	  document.images[imgN].style.visibility='hidden';
}

function show(id)
{
	if (document.getElementById)
		document.getElementById(id).style.display = "block";
	else if (document.all)
		document.all[id].style.display = "block";
	else if (document.layers)
		document.layers[id].style.display = "block";
}

function hide(id)
{
	if (document.getElementById)
		document.getElementById(id).style.display = "none";
	else if (document.all)
		document.all[id].style.display = "none";
	else if (document.layers)
		document.layers[id].style.display = "none";
}
