
newWindow=new Object;
newWindow.closed=true;

function newWindowopener(details,imageName)
{
	if (!newWindow.closed){
		newWindow.close();
	}
	
	var window_features="width=575,height=575,status=0,menubar=0,toolbar=0,menubar=0,scrollbars=1,resizable=1";
	var copy="Sharone Kaplan &copy; 2004-2006, All Rights Reserved"
	newWindow=window.open("","",window_features);
	newWindow.document.write("<html><head><title>" + details + "</title>");
	newWindow.document.writeln("<link rel=\"stylesheet\" type=\"text/css\" href=\"../css/photoCss.css\">");
	newWindow.document.writeln("</head><body>");
	newWindow.document.writeln("<div id=\"photo\">");
	newWindow.document.writeln("<img src=\"" + imageName + "\" alt=\"" + details + "\">");
	newWindow.document.writeln("<p class=\"detail\">" + details + "<br>"+ copy+"<br>") ;
	newWindow.document.write("<a href=\"#\" onclick=\"self.close()\">");
	newWindow.document.write("Return</a></p></div>");
	newWindow.document.writeln("</body></html>");
	newWindow.document.close();
	newWindow.focus();
}

function newWindowopenerCredit (details,imageName)
{
	if (!newWindow.closed){
		newWindow.close();
	}
	
	var window_features="width=575,height=575,status=0,menubar=0,toolbar=0,menubar=0,scrollbars=1,resizable=1";
	var copy="Sharone Kaplan &copy; 2004-2006, All Rights Reserved <br />Photo &copy; Anthony Diaz 2005"
	newWindow=window.open("","",window_features);
	newWindow.document.write("<html><head><title>" + details + "</title>");
	newWindow.document.writeln("<link rel=\"stylesheet\" type=\"text/css\" href=\"../css/photoCss.css\">");
	newWindow.document.writeln("</head><body>");
	newWindow.document.writeln("<div id=\"photo\">");
	newWindow.document.writeln("<img src=\"" + imageName + "\" alt=\"" + details + "\">");
	newWindow.document.writeln("<p class=\"detail\">" + details + "<br>"+ copy+"<br>") ;
	newWindow.document.write("<a href=\"#\" onclick=\"self.close()\">");
	newWindow.document.write("Return</a></p></div>");
	newWindow.document.writeln("</body></html>");
	newWindow.document.close();
	newWindow.focus();
}
