/// This script will format the header of all St. Alban's web pages

document.write("<table width=\"100%\"><tr><td align=\"center\">");
document.write("<table border=\"1\" bordercolor=#D1D3D3 cellspacing=0 width=800 id=Header><tr><td valign=center><table border=\"0\" cellspacing=0 width=794 id=insideHeader><tr>");
document.write("<td valign=center bgcolor=#E9E9E9 align=right width=147><a href=\"/index.htm\"><img src=\"/images/StAlbanShield.gif\" border=\"0\" /></a></td><td valign=center bgcolor=#E9E9E9 align=center width=500 style=\"font-weight: bold; font-size: 23px; text-transform: capitalize; color: black; font-variant: small-caps; font-family: Verdana, Arial, Sans-Serif;\">");
document.write("Saint Alban's Episcopal Church</td><td valign=center bgcolor=#E9E9E9 align=left width=147>");
document.write("<a href=\"/index.htm\"><img src=\"/images/shield.gif\" border=\"0\" />");
document.write("</a></td></tr></table></tr></td></table></td></tr></table>");
//This function generates the rollover images in the photo pages

function writeimages(alttext,bigimage,thumbimage) {
/* evaluate alttext for single quotes so it can write appropriately below. Added 4/21/04, DPF */
	y = alttext.split("'").length-=1
	for (x=0;x<y;x++) {
		if (alttext.indexOf("'")) {
			i = alttext.indexOf("'");
			msg1 = alttext.substring(0,i);
			msg2 = alttext.substring(i+=1,alttext.length);
			alttext = msg1 + "&rsquo;" + msg2;
		}
	}
/* write out the image rollover code */
/* Title attribute added so rollover works as HTML spec - rqrd by Mozilla. Added 1/19/05 ABT */
document.write("<a onMouseOut=\"status=''\" onMouseOver=\"status=\'" + alttext + "\';document.MainImage.src=\'" + bigimage + "\';document.MainImage.title=\'" + alttext + "\';document.MainImage.alt=\'" + alttext + "\'\"><img src=\"" + thumbimage + "\" border=1 height=40 title=\'" + alttext + "\' alt=\'" + alttext + "\'></a> ")
}