function showImg(theSrc,text,level,vert){
	if (vert=="1"){ //determine if the window is vertical in format
		var etc = "menubar=no,scrollbars=auto,resizable=yes,width=520,height=720"  ; //set up the the window variables
	}else{
		var etc = "menubar=no,scrollbars=no,resizable=no,width=670,height=560"  ; //set up the the window variables
	}
	
	if(text==""){
	 var theText="Trend House Chronicles &nbsp; | &nbsp; ©2004 Michael Kurtz";
	}else{
	var theText=text;
	}
	if((level=="0") || (level=="")){
	 var theStyles="../styles.css";
	}else if(level=="1"){
	 var theStyles="../../styles.css";
	}else{
	 var theStyles="../../../styles.css";
	}
	
    newWin=window.open("","temp",etc); //create the window
	newWin.document.writeln("<html>");
	newWin.document.writeln("<head><title>Trend House Chronicles</title>");
	newWin.document.writeln("<link href=\""+theStyles+"\" rel=\"stylesheet\" type=\"text/css\">");
	newWin.document.writeln("</head>");
	newWin.document.writeln("<body leftmargin=\"15\" topmargin=\"15\" marginwidth=\"15\" marginheight=\"15\" >");
	newWin.document.writeln("<table width=\"100%\" height=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\">");
	newWin.document.writeln("<tr><td align=\"center\" valign=\"middle\" colspan=\"2\">");
	newWin.document.writeln("<img src=\" images/"+ theSrc +".jpg\" />");
	newWin.document.writeln("<br>");
	newWin.document.writeln("</td></tr>");
	newWin.document.writeln("<tr><td width=\"80%\" class=\"menuOff\" align=\"center\">");
	newWin.document.writeln("<SPAN class=\"bodyTextSmall\">");
	newWin.document.writeln(theText);
	newWin.document.writeln(" </SPAN>");
	newWin.document.writeln("</td><td width=\"20%\" height=\"32\" class=\"menuOff\" valign=\"middle\" align=\"center\" onClick=\"window.close();\" onMouseOver=\"this.className='menuOver';\"  onMouseOut=\"this.className='menuOff';\">");
	newWin.document.writeln("Close Window");
	newWin.document.writeln("</td></tr>");
	//newWin.document.writeln("<tr><td>&nbsp;</td><td>&nbsp;</td></tr>");
	newWin.document.writeln("</table>");
	newWin.document.writeln("</body>");
	newWin.document.writeln("</html>");
	
	newWin.document.title="Trend House Chronicles"  //change the name of the window
	newWin.document.close(); //close the stream
}