/* scripts copyright 2006 TechAnchor
Most variables are included within the function call.  This allows the function to be called 
for any number of images on the page utilizing different rotating sets of images, different speeds, 
and different numbers of images in each set.

prefix refers to the naming convention of the images used in this set e.g. in a series like 
"my-rotating-image0.jpg", "my-rotating-image1.jpg", etc., prefix would be "my-rotating-image".
*/

function nextImage(imageID,prefix,numOfImages,seconds) {

var next=Math.floor(Math.random()*numOfImages)
var nextImage = "images/"+prefix+ +next+".jpg"
document.getElementById(imageID).src=nextImage
var tmp
tmp = document.getElementById(imageID).id
timer=setTimeout("nextImage('" +tmp+ "','" +prefix+ "'," +numOfImages+ "," +seconds+ ")",seconds*1000)
}

function email(domain,person)
{
document.getElementById(person).href="mailto:" + person + "@" + domain
}

function emailAddress(domain,person)
{
document.write(person + "@" + domain)
}
