/*
	Langfords javascript functions
*/

//	email address

function mailto(who, text)
{
   var addr = who + "\u0040" + "langfordshot" + "el.com";
   var line = "mailto:" + addr;

   if( ! text )
   {
      text = addr;
   }

   document.write("<a href=\"" + line + "\">" + text + "</a>");
}

//	random image selector for title

function showImage()
{
	var picList = new Array()

	picList[0] = 'images/top_left.gif'
	picList[1] = 'images/top_left2.jpg'
	picList[2] = 'images/top_left3.jpg'
	picList[3] = 'images/top_left4.jpg'
	picList[4] = 'images/top_left5.jpg'

	var plen = picList.length;
	var rand = Math.round(Math.random()*(plen-1));
	
	document.write('<img src="'+picList[rand]+'">');
}
