<!--
var icntr = 0
var message="Contents of this website are copyrighted " +
"and cannot be duplicated without express permission from WebPhotoSchool.";

function loadImages() {
if (document.getElementById) {  // DOM3 = IE5, NS6
document.getElementById('hidepage').style.visibility = 'hidden';
}
else {
if (document.layers) {  // Netscape 4
document.hidepage.visibility = 'hidden';
}
else {  // IE 4
document.all.hidepage.style.visibility = 'hidden';
      }
   }
}


function click(e) { 
	if (document.all) {
		if (event.button==2||event.button==3) { 
		alert(message);
		return false;
		} 
	} 
	if (document.layers) {
		if (e.which == 3) {
			alert(message); 
			return false; 
		} 
	} 
} 

//if (document.layers) {
//document.captureEvents(Event.MOUSEDOWN);
//}

//document.onmousedown=click; 


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function showFullSize(currentpict, pwidth, pheight){ 
	openPictureWindow('500/'+currentpict, pwidth, pheight, 'Click outside window to close Image'); 
} 

function openPictureWindow(imageName,imageWidth,imageHeight,alt) 
{ 
	var i_height = 20 + parseInt(imageHeight)
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+i_height+","+alt+", top=150, left=100, screenX=100, screenY=150"); 
	newWindow.document.open(); 
	newWindow.document.write('<HTML><TITLE>'+alt+'</TITLE><BODY bgcolor="#FFFFFF" LEFTMARGIN="0" TOPMARGIN="20" MARGINHEIGHT="0" MARGINWIDTH="0" onBlur="self.close()">'); 
	newWindow.document.write('<IMG SRC='+imageName+' WIDTH='+imageWidth+' HEIGHT='+imageHeight+
	' ALT='+alt+' BORDER="0">');
	//newWindow.document.write('<p>&nbsp;' + i_height + '</p>'); 	 
	newWindow.document.write('<p>&nbsp;</p></BODY></HTML>'); 
	newWindow.document.close(); 
	newWindow.focus(); 
} 

// general purpose - to extract URL of the current directory

function getDirPath(URL) {
	var result = unescape(URL.substring(0,(URL.lastIndexOf("/")) + 1))
	return result
}

// handle button event, passing work onto general purpose function

function showDirPath(URL) 
{
	alert(getDirPath(URL))
}

// this is for popup windows

function showPopFull(URL, currentpict, pwidth, pheight){ 
	openPopWindow(getDirPath(URL)+'500/'+currentpict, pwidth, pheight, 'Click outside window to close Image'); 
} 

function openPopWindow(imageName,imageWidth,imageHeight,alt) 
{ 
	var i_height = 20 + parseInt(imageHeight)
	newWindow = window.open("","PopWindow","width="+imageWidth+",height="+i_height); 
	newWindow.document.open(); 
	newWindow.document.write('<HTML><TITLE>'+alt+'</TITLE><BODY bgcolor="#FFFFFF" LEFTMARGIN="0" TOPMARGIN="20" MARGINHEIGHT="0" MARGINWIDTH="0" onBlur="self.close()">'); 
	newWindow.document.write('<IMG SRC='+imageName+' WIDTH='+imageWidth+' HEIGHT='+imageHeight+
	' ALT='+alt+' BORDER="0">');
	//newWindow.document.write('<p>&nbsp;' + i_height + '</p>'); 	 
	newWindow.document.write('<p>&nbsp;</p></BODY></HTML>'); 
	newWindow.document.close(); 
	newWindow.focus(); 
} 

function showAltSize(currentpict, pwidth, pheight, pcaption){ 
	tcaption = pcaption
	openAltWindow('500/'+currentpict, pwidth, pheight, 'Click outside window to close Image', tcaption); 
} 

function openAltWindow(imageName,imageWidth,imageHeight,alt, acaption) 
{ 
	//if (len(acaption) == 0) {
	//	acaption = ""
	//}
	newWindow = window.open("","newWindow","width="+imageWidth+",height=550"); 
	newWindow.document.open(); 
	newWindow.document.write('<HTML><TITLE>'+alt+'</TITLE>');
	newWindow.document.write('<BODY bgcolor="#FFFFFF" LEFTMARGIN="0" TOPMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0" onBlur="self.close()">'); 
	newWindow.document.write('<link rel="stylesheet" type="text/css" href="../styles/wps.css">');
	//newWindow.document.write('<br><CENTER><p style="font-family: verdana, arial, sans-serif; color: blue; font-size: 8pt;">' + acaption + '</p></CENTER>');
	newWindow.document.write('<br><CENTER><p class="caption">' + acaption + '</p></CENTER>');
	newWindow.document.write('<IMG SRC='+imageName+' WIDTH='+imageWidth+' HEIGHT='+imageHeight+
	' ALT='+alt+' BORDER="0" style="margin: -4mm 0mm 0mm 0mm;">'); 
	newWindow.document.write('</BODY></HTML>'); 
	newWindow.document.close(); 
	newWindow.focus(); 
}

function openFormWindow(FullForm,imageWidth,imageHeight,alt) 
{ 
	var i_height = 20 + parseInt(imageHeight)
	var i_width = 20 + parseInt(imageWidth)
	var whatstuff = 'toolbar=no,scrollbars=yes,width=' + 
	i_width + ',height=' + i_height + 
	',location=no,resizable=yes,status=no,menubar=no,dependent=yes, top=100, left=100, screenX=100, screenY=100'

	newWindow = window.open(FullForm,'newWindow',whatstuff)
	newWindow.focus(); 
} 



// -->