if(typeof(imglist)!= 'undefined'){
	function roll(imgName) {
		if (document.images) { document[imgName].src = "i/" + imgName + "-on.gif" }
	}
	function out(imgName) {
		if (document.images)  {	document[imgName].src = "i/" + imgName + ".gif"	}
	}
}
var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
//pop() is for the pathfinder - it's built into the movie
function pop(url)
  { w=window.open(url,"w","width=750,height=350,status=1,scrollbars=1,resizable=1") }  
// email checker
function emailCheck (emailStr) {
var re = new RegExp("^[A-Za-z0-9]+[A-Za-z0-9_\.\-]*[A-Za-z0-9]+@[A-Za-z0-9_-]+\\.[a-z0-9\.]*[a-z]{2,4}$","i");
if(!re.test(emailStr)){alert("Your email address does not seem to be correct.");return false;}
	document.form1.submit();
}



var imageSourceValue = '';
function imageRoll(imageObject)
{
    //store the current src value
    imageSourceValue = imageObject.src;
    //grab the directory from the src attribute
    var folderIndex = imageObject.src.lastIndexOf("/");
    var theDirectory = imageObject.src.substring(0,folderIndex+1);//returns the DIR in the form http://domain.com/folder
    //test for image file type, jpg v. gif
    var theFileType = imageObject.src.substring(imageObject.src.length-3);//grab the last 3 characters, they represent the file type

    imageObject.src=theDirectory+imageObject.name+'-on.'+theFileType;
}
function imageOut(imageObject)
{
    //retrieve the original image src attribute
    imageObject.src = imageSourceValue;
}
