/// This script will format the header of all SCSPS web pages

document.write("<a name=top></a><table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=left height=100 background=images/exp2.gif><img src=images/SCSPSlogo.gif alt=\"Sanibel Captiva Sail & Power Squadron\" width=780 usemap=#Map border=0 ><map name=Map><area shape=rect coords=\"317,75,516,100\" href=\"mailto:commander@sancap-boating.org\" target=\"_blank\" alt=\"Contact Us\" title=\"Contact Us\"></map></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> ")
}

//Function to generate neat menus
<!-- start script here

/******************************
Script done by Eric King
URL: http://redrival.com/eak/

you must keep these lines in 
to use this script.
******************************/

var win= null;
function NewWindow(mypage,myname,w,h,scroll){
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
settings='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=yes,dependent=no'
win=window.open(mypage,myname,settings)
if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}

// end script here -->

