function winOpen(mypage,myname,w,h,scroll,toppos,leftpos)
{
	//alert("hi");
	settings='width='+w+',height='+h+',top='+toppos+',left='+leftpos+',scrollbars='+scroll+',,resizable=yes';
	var myWindow =window.open(mypage,myname,settings);
	myWindow.focus();
}

function Test()
{
	var strTest;
	//strTest = self.toString(parent.name);
	alert("photos test");
}

// document.write
function dw(strX)
{
	document.write(strX);
}

function ShowPhoto(strPhotoFileName, strCaption, nTop, nWidth, nHeight, nScale)
{
	//alert("ShowPhoto start...");
/*	
	// Write out the HTML to display the photo and caption
	document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>");
	document.write("<HTML>");
	
	document.write("<HEAD>");
	document.write("<TITLE>Bob Burger: singer-songwriter from New Jersey</TITLE>");
	document.write("<META http-equiv=Content-Type content='text/html; charset=windows-1252'>");
	document.write("<META content='Microsoft FrontPage 6.0' name=GENERATOR>");
	document.write("<base target=_Top>");
	document.write("</HEAD>");
*/
	// Write out the BODY to display the photo and caption
	document.write("<BODY leftMargin='0' topMargin='0' link='#FFFF00' ");
	document.write("vlink='#FF0000' alink='#CC66FF' text='#FFFFFF' bgcolor='#000000'>");

	var strSite = "http://www.bobburger.com/";

	/////////////////////////////////////////////////////////////		
	// Background Image
	/////////////////////////////////////////////////////////////		
	var strImageFileName = strSite + "images/Photos1.gif";
	var strDivStyle = "position: absolute; left: 0; top: -40; width: 780; height: 585; z-index: -1";
	var strSpanStyle = "position: absolute; left: 0; top: 0; z-index: -1";
	
	document.write("<div style='position: absolute; left: 0; top: -40; ");
		document.write("width: 780; height: 800; z-index: -1'>");
    document.write("<span style='position: absolute; left: 0; top: 0; z-index: -1'>");
		document.write("<img border='0' src='");
		document.write(strImageFileName);
		document.write("' width=" + "'780'" + " height=" + "'585'" + ">");
	document.write("</span>");
	document.write("</div>");	


	/////////////////////////////////////////////////////////////		
	// Render the Back button
	/////////////////////////////////////////////////////////////
	var strBackPage = strSite + "Photos.htm";
	document.write("<div style='position: absolute; left: 60; top: 100'>");
	  	document.write("<A HREF='");
	  	document.write(strBackPage);
	  	document.write("' >");
		document.write("Back");      	
      	document.write("</A>");
	document.write("</div>");

	/////////////////////////////////////////////////////////////		
	// Write out the enlarged photo	
	/////////////////////////////////////////////////////////////		
	strPhotoFileName = strSite + strPhotoFileName;
	
	document.write("<div align='center'>");
	document.write("<span align='center' ");
	document.write("style='position: relative; top: " + nTop + "px;'>");
	
		/////////////////////////////////////////////////////////////		
		// Render the Image
		/////////////////////////////////////////////////////////////		
		document.write("<img class='imgTrans' border='0' src='");
		document.write(strPhotoFileName);
		document.write("' width='" + (nWidth * nScale) + 
			"' height='" + (nHeight * nScale) + "'>");
				
		/////////////////////////////////////////////////////////////		
		// Render the caption				
		/////////////////////////////////////////////////////////////		
		document.write("<b><font size='3' color='#FFCC00'>");
			document.write("<p style='margin-top: 0; margin-bottom: 0'>");
				document.write(strCaption);
			document.write("</p>");
		document.write("</font></b>");
		
	document.write("</span>");
	document.write("</div>");

	document.write("</BODY>");
//	document.write("</HTML>");
	
	//alert("ShowPhoto end...");
}	

