var index = 0;
function openPictureWindow_Fever(imageName,imageWidth,imageHeight,alt,posLeft,posTop) {
   // var index = Math.floor(Math.random()*9999);
   index++
	newWindow = window.open("","newWindow"+index,"width="+imageWidth+",height="+imageHeight+",left="+((screen.width/2)-(imageWidth/2))+",top="+((screen.height/2)-(imageHeight/2)));
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	//click to close window
	newWindow.document.write('<head>');
	newWindow.document.write('<script language="JavaScript1.1">');
	newWindow.document.write('<!-- ');
	newWindow.document.write('function right(e) {');
	newWindow.document.write('if (navigator.appName == \'Netscape\' && ');
	newWindow.document.write('(e.which == 3 || e.which == 2))');
	newWindow.document.write('return false;');
	newWindow.document.write('else if (navigator.appName == \'Microsoft Internet Explorer\' && ');
	newWindow.document.write('(event.button == 2 || event.button == 3)) {');
	newWindow.document.write('window.close();');
	newWindow.document.write('return false;');
	newWindow.document.write('}');
	newWindow.document.write('return true;');
	newWindow.document.write('}');
	newWindow.document.write('document.onmousedown=right;');
	newWindow.document.write('document.onmouseup=right;');
	newWindow.document.write('if (document.layers) window.captureEvents(Event.MOUSEDOWN);');
	newWindow.document.write('if (document.layers) window.captureEvents(Event.MOUSEUP);');
	newWindow.document.write('window.onmousedown=right;');
	newWindow.document.write('window.onmouseup=right;');
	newWindow.document.write('//  -->');
	newWindow.document.write('</script>');
	newWindow.document.write('</head>');
	newWindow.document.write('<a onclick="javascript:window.close();">');
	//end click to close window
	newWindow.document.write('<img src='+imageName+' ='+imageWidth+' height='+imageHeight+' alt='+alt+'>'); 
	newWindow.document.write('</body></html>');
	newWindow.focus();
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

function openFlashWindow_Fever(imageName,imageWidth,imageHeight,alt,color) {
	newWindow = window.open("","newWindow"+index,"width="+imageWidth+",height="+imageHeight+",left="+((screen.width/3)-(imageWidth/2))+",top="+((screen.height/2)-(imageHeight/2)));
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#'+color+'" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'); 
	newWindow.document.write(' codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"'); 
	newWindow.document.write(' Width='+imageWidth +' Height='+imageHeight+'>'); 
	newWindow.document.write(' <PARAM NAME=movie VALUE="'+imageName+'">'); 
	newWindow.document.write('<PARAM NAME=quality VALUE=high>'); 
	newWindow.document.write(' <PARAM NAME=bgcolor VALUE=#'+color+'>'); 
	newWindow.document.write('  <EMBED src="'+imageName+'" quality=high bgcolor=#'+color+'WIDTH='+imageWidth+' HEIGHT='+imageHeight+' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>'); 
	newWindow.document.write('</OBJECT></body></html>');
	newWindow.focus();
}

function openDirectorWindow_Fever(imageName,imageWidth,imageHeight,alt,posLeft,posTop,color) {
	newWindow = window.open("","newWindow"+index,"width="+imageWidth+",height="+imageHeight+",left="+((screen.width/3)-(imageWidth/2))+",top="+((screen.height/2)-(imageHeight/2)));
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#'+color+'" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<div align="center"><object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,0,0" ID=god width=610 height=474>');
	newWindow.document.write('<param name=src value="'+imageName+'">');
	newWindow.document.write('<param name=swRemote value="swSaveEnabled=\'true\' swVolume=\'true\' swRestart=\'true\' swPausePlay=\'true\' swFastForward=\'true\' swContextMenu=\'true\' ">');
	newWindow.document.write('<param name=swStretchStyle value=none>');
	newWindow.document.write('<PARAM NAME=bgColor VALUE=#000000>');
	newWindow.document.write('<embed src=\"god.dcr\" bgColor=#000000  width=610 height=474 swRemote="swSaveEnabled=\'true\' swVolume=\'true\' swRestart=\'true\' swPausePlay=\'true\' swFastForward=\'true\' swContextMenu=\'true\' " swStretchStyle=none type="application/x-director" pluginspage="http://www.macromedia.com/shockwave/download/">');
	newWindow.document.write('</embed> </object> </div></body></html>');
	newWindow.focus();
}