
//Gallery folder goes here: (case sensitive)
ActiveDir = "HPI"



function popupwindowIMG(whatIMG,imgWidth,imgHeight,imgTitle){

openString = "";
openString = openString + ActiveDir + "/imgPop.php?image=" + whatIMG + "&imgID=" + imgTitle;
openString = openString + "&width=" + imgWidth;
openString = openString + "&height=" + imgHeight;
openString = openString + "&title=" + imgTitle;

windowHeight = Math.round(imgHeight) + 90;
windowWidth = Math.round(imgWidth) + 50;

if (windowWidth < 100) { windowWidth = 100; }
if (windowHeight < 100) { windowHeight = 100; }

window.open(openString, "imagePop",  "height=" + windowHeight + ",width=" + windowWidth + ",menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,left=300,top=300")
}

Flashfile = '';
Flashfile = Flashfile + '<center><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="400" height="100" id="scroller" align="middle">\n';
Flashfile = Flashfile + '<param name="allowScriptAccess" value="sameDomain" /><param name="FlashVars" value="ActiveDir=' + ActiveDir + '">\n';
Flashfile = Flashfile + '<param name="movie" value="' + ActiveDir + '/scroller.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent"><param name="bgcolor" value="transparent" /><embed src="' + ActiveDir + '/scroller.swf" FlashVars="ActiveDir=' + ActiveDir + '" quality="high" bgcolor="transparent" width="400" height="100" wmode="transparent" name="scroller" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object></center>\n';

document.write(Flashfile);