
if (document.images)	{
var imglist = new Array('programs','cherish','book','video','themes','testimonials','photography','inforequest','home','contact','sitemap','frankbio','suebio','_2004rates');
var imgs = new Array(); var count;
	for (count=0; count<imglist.length; count++)
	{imgs[count]=new Image(); imgs[count].src="images/" + imglist[count] + "-on.gif";}
      }
// Flip it on
function roll(imgName) {
	if (document.images) { document[imgName].src = "images/" + imgName + "-on.gif" }
}
// Flip it off
function out(imgName) {
	if (document.images)  {	document[imgName].src = "images/" + imgName + ".gif"	}
}
var width="201", height="30";
var left = (screen.width/2) - width/2;
var top = (screen.height/2) - height/2;
var popUpWin=0;
function popUpWindow(URLStr)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}


//use the following var to remember an image's original src value
//the imageRoll function will constantly update this value, allowing the imageOut function to use its current value
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;
}


// google pop up window
