function popupImageInNewWindow(imageDirectory,imageNumber,imageWidth,imageHeight) {
	theHeight=parseInt(imageHeight)+20;
	newWindow = window.open("/lib/php/displayPicture.php?Directory="+imageDirectory+"&Number="+imageNumber,"newWindow","width="+imageWidth+",height="+theHeight+",scrollbars=no");
	newWindow.focus();
}

function popupOldImageInNewWindow(imageName,imageWidth,imageHeight) {
	imageTitle = imageName.substr(8, imageName.length)
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no");
	newWindow.document.open();
	newWindow.document.write('<html><title>'+imageTitle+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+'>');
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}
function ResizeWindow(W, H)
{
	H+=20;
	window.resizeBy(W-document.body.clientWidth, H-document.body.clientHeight);
}
function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
}
function mailscrambler(aPrefix,aSuffix) {
	aSuffix=aSuffix.replace("izzle","");
	document.write("<a href=\"mai"+"lto:"+aPrefix+"@"+aSuffix+"\">"+aPrefix+"@"+aSuffix+"</a>");
}

var current=0;

function imageswitch(aImageName,aImageString) {
	if (!document.images) return;
	ImageArray=aImageString.split(";");
	document.images[aImageName].src = ImageArray[current];
	current=(current+1)%ImageArray.length;
	setTimeout("imageswitch('" + aImageName + "','" + aImageString + "')",2000);
}

