// JavaScript Document
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function calpopup(m,d,y,w,h,s){
	window.open('scripts/dayview.php?m='+m+'&d='+d+'&y='+y,'dayview',"status=no,scrollbars="+s+",width="+w+",height="+h);
}
function smartpop(photo){
	// script written by Ben Donatelli -- this owns
	if( parseInt(navigator.appVersion) > 3 )
	{	
		screenWidth = screen.width;
		screenHeight = screen.height;
	}
	newWin = window.open("","smartphoto","status=no,scrollbars=yes,left=25,top=25,width=200,height=100");
    newWin.document.write("<html><head><title>Photo Closeup</title>");
	newWin.document.write("<script language='javascript'>function sizetopic() {");
	// TODO: add browser-specific constant checking!
	newWin.document.write("if(document.images[0].width > 50) {");
	newWin.document.write("if(document.images[0].height > " + (screenHeight-50) + ") window.resizeTo(document.images[0].width + 50," + (screenHeight-50) + ");");
	newWin.document.write("else window.resizeTo(document.images[0].width + 50,document.images[0].height + 120);");
	newWin.document.write("}");
	newWin.document.write("}</script>");
    newWin.document.write("<link href='style.css' rel='stylesheet' type='text/css'>");
    newWin.document.write("</head><body onload='sizetopic()'>");
    newWin.document.write("<div align='center'>");
    newWin.document.write("<img src=\"images/" + photo + "\" border='0'>");
    newWin.document.write("<p><input type='button' name='Closer' value='Close Window' onClick=\"javascript:window.close()\"></p>");
    newWin.document.write("</div>");
	newWin.document.write("</body></html>");	
	newWin.document.close();
}
-->
