// mbltemplate.js
// Contains 2 functions which are called from the template: one for the masthead and navigation bar,
//		and one for the content section closing, footer and credits section.

// New site pages should have (see mbltemplate.html for example):
//
//		<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
//		<html>
//		<head>
//		<title>Page title here</title>
//		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
//		<meta> more tags as in index.html (or whatever the individual site wants)
//
//		<link media="screen" href="css/style.css" rel="stylesheet" type="text/css">
//		<link media="print" href="css/print.css" rel="stylesheet" type="text/css">

//		<script type="text/javascript" language="javascript" src="javascripts/lib.js"></script>
//		<script src="javascripts/prototype.js" type="text/javascript"></script>
//		<script src="javascripts/scriptaculous.js" type="text/javascript"></script>
//
//		<script type="text/javascript" language="javascript" src="javascript/mbltemplate.js"></script>
//
//		<!-- set up html for masthead, sidebar navigation and footer using javascript -->
//		<!-- *** SET UPDATE DATE HERE FOR THIS PAGE *** -->
//		<script type="text/javascript" language="javascript">
//			mbltemplate_top_html = mbltemplate_top();
//			mbltemplate_bot_html = mbltemplate_bot(updatedate);
//		</script>
//
//		</head>
//		<body>
//
//		<script type="text/javascript" language="javascript">
//			document.write(mbltemplate_top_html);
//		</script>
//
//		*** INSERT MAIN PAGE CONTENT FOR NEW PAGE HERE ***
//			*** See mbltemplate.html for example ***
//
//		<script type="text/javascript" language="javascript">
//			document.write(mbltemplate_bot_html);
//		</script>
//
//		</body>
//		</html>
//


// Return html for rotating image masthead and sidebar navigation

function mbltemplate_top () {

	return ('<div id="container">' + 

'<table  summary="Massachusetts Bay League" align="center" border="0" width="100%"  cellpadding="10">' +
  '<tr><td>' +
    '<table summary="" align="center" border="0">' +
      '<tr>' +
        '<td valign="middle" align="center">' +
          '<img src="./images/M32B.gif" width=32 height=32 alt="" />&nbsp;&nbsp;' +
          '<img src="./images/B32B.gif" width=32 height=32 alt="" />&nbsp;&nbsp;' +
          '<img src="./images/L32B.gif" width=32 height=32 alt="" />&nbsp;&nbsp;' +
        '</td>' +
        '<td valign="middle">' +
          '<font size="+3"> Massachusetts Bay League</font>' +
        '</td>' +
      '</tr>' +
    '</table>' +
  '</td></tr>' +
'</table>' +
	'<!-- main wrapper -->' +
	'<div id="wrapper">'
	
);
}

function mbltemplate_top_index () {

	return ('<div id="container">' + 

'<table width="100%" border="0">' +
'<tr><td align="center">' +
'<table summary="Massachusetts Bay League" border="0">' +
      '<tr>' +
        '<td valign="middle" align="left">&nbsp;&nbsp;<img width=40 height=40 src="./images/M32B.gif" alt="" />' +
        '</td><td  valign="middle" align="left"><font size="+4">&nbsp;Massachusetts</font>' +
        '</td></tr>' +
      '<tr>' +
        '<td valign="middle" align="left">&nbsp;&nbsp;<img width=40 height=40 src="./images/B32B.gif" alt="" />' +
        '</td><td  valign="middle" align="left"><font size="+4">&nbsp;Bay </font>' +
        '</td></tr>' +
      '<tr>' +
        '<td valign="middle" align="left">&nbsp;&nbsp;<img width=40 height=40 src="./images/L32B.gif" alt="" />' +
        '</td><td  valign="middle" align="left"><font size="+4">&nbsp;League </font>' +
        '</td>' +
      '</tr>' +
'</table>' +
'</td>' +
'<td align="right">' +
'<img width=600 height=250 src="./images/Championship_2008_2389_reduced.jpg" alt="" />' +
'</td></tr>' +
'</table>' +
	'<!-- main wrapper -->' +
	'<div id="wrapper">'
	
);
}

function mbltemplate_top_album () {

	return ('<div id="container">' + 

'<table  summary="Massachusetts Bay League" align="center" border="0" width="100%"  cellpadding="10">' +
'<tr><td>' +
'<table summary="" align="center" border="0">' +
      '<tr>' +
        '<td valign="middle" align="center">' +
          '<img width=32 height=32 src="../../images/M32B.gif" alt="" />&nbsp;&nbsp;' +
          '<img width=32 height=32 src="../../images/B32B.gif" alt="" />&nbsp;&nbsp;' +
          '<img width=32 height=32 src="../../images/L32B.gif" alt="" />&nbsp;&nbsp;' +
        '</td>' +
        '<td valign="middle">' +
          '<font size="+3"> Massachusetts Bay League</font>' +
        '</td>' +
      '</tr>' +
'</table>' +
'</td></tr>' +
'</table>' +

	'<!-- main wrapper -->' +
	'<div id="wrapper">'
	
);
}

function mbltemplate_menu () {

	return ('<div id="navbar">' +
    '<table cellspacing="0" cellpadding="0" id="menu1" class="ddm1" width="100%">' +
    '<tr>' +
        '<td>' +
            '<a class="item1 left" href="index.html">Home</a>' +
        '</td>' +
        '<td>' +
            '<a class="item1" href="javascript:void(0)">About</a>' +
            '<div class="section">' +
                '<a class="item2" href="general.html">General Info</a>' +
                '<a class="item2" href="faqs.html">FAQs</a>' +
                '<a class="item2" href="officers.html">Officers</a>' +
                '<a class="item2" href="advisors.html">Advisory Council</a>' +
                '<a class="item2" href="./docs/MBL_brochure.pdf">Brochure</a>' +
                '<a class="item2" href="./docs/MBL_Strategic_Plan.pdf">Strategic Plan</a>' +
                '<a class="item2" href="alumni.html">Alumni</a>' +
                '<a class="item2" href="press.html">Press</a>' +
            '</div>' +
        '</td>' +
        '<td>' +
            '<a class="item1" href="javascript:void(0)">Members</a>' +
            '<div class="section">' +
                '<a class="item2" href="members.html">Schools</a>' +
                '<a class="item2" href="howtojoin.html">How to Join</a>' +
                '<a class="item2" href="divisions.html">Divisions</a>' +
                '<a class="item2" href="venues.html">Venues</a>' +
                '<a class="item2" href="map.html">Interactive MBL Map</a>' +
            '</div>' +
        '</td>' +
        '<td>' +
            '<a class="item1" href="javascript:void(0)">Coaches</a>' +
            '<div class="section">' +
                '<a class="item2" href="docs.html">Documents</a>' +
                '<a class="item2" href="email.html">Email Communication</a>' +
                '<a class="item2" href="events.html">Events and Meetings</a>' +
                '<a class="item2" href="minutes.html">Meeting Minutes</a>' +
                '<a class="item2" href="coaching.html">Coaching Info</a>' +
                '<a class="item2" href="clinics.html">Clinics</a>' +
                '<a class="item2" href="scheduling.html">Scheduling</a>' +
                '<a class="item2" href="coaching.html">Discount Programs</a>' +
                '<a class="item2" href="coaching.html">Job Banks</a>' +
            '</div>' +
        '</td>' +
        '<td>' +
            '<a class="item1" href="javascript:void(0)">Racing</a>' +
            '<div class="section">' +
                '<a class="item2" href="rules.html">Racing Rules</a>' +
                '<a class="item2" href="teamracing.html">Team Racing</a>' +
                '<a class="item2" href="events.html">Regattas</a>' +
                '<a class="item2" href="results.html">Results</a>' +
                '<a class="item2" href="rules.html">Scoring Programs</a>' +
            '</div>' +
        '</td>' +
        '<td>' +
            '<a class="item1 right" href="javascript:void(0)">Weather</a>' +
            '<div class="section">' +
                '<a class="item2" href="http://forecast.weather.gov/MapClick.php?CityName=Boston&state=MA&site=BOX&lat=42.3583&lon=-71.0603&FcstType=graphical" target="_blank">NWS Hourly Forecast - Boston</a>' +
                '<a class="item2" href="http://www.windfinder.com/weatherforecast/boston_logan_airport" target="_blank">Windfinder - Boston</a>' +
                '<a class="item2" href="http://www.intellicast.com/Local/Map.aspx?location=USMA0046" target="_blank">Intellicast Radar</a>' +
//                '<a class="item2" href="http://www.intellicast.com/Storm/Severe/Metro.aspx?location=USMA0046" target="_blank">Intellicast Storm Watch</a>' +
//                '<a class="item2" href="http://radar.weather.gov/radar.php? rid=BOX&product=N0R&overlay=11101111&loop=no", target="_blank">NWS Radar</a>' +
                '<a class="item2" href="http://cbiwind.org/cgi-bin/genpage?window=3h&bin=1m&db=postgres&fields=cbi" target="_blank">CBI Wind</a>' +
                '<a class="item2" href="http://sailing.mit.edu/weather/" target="_blank">MIT Wind</a>' +
                '<a class="item2" href="http://www.sailflow.com/windandwhere.iws?regionID=194&Isection=Gmap+Obs" target="_blank">SailFlow</a>' +
                '<a class="item2" href="cam_CBI.html" target="_blank">CBI Cam</a>' +
                '<a class="item2" href="weather.html">More Weather Links</a>' +
            '</div>' +
        '</td>' +
        '<td>' +
            '<a class="item1 right" href="javascript:void(0)">Gallery</a>' +
            '<div class="section">' +
//                '<a class="item2"  href="./album/Championship_2008/index.html">2008 Championship</a>' +
                '<a class="item2"  href="./album/Championship_2007/index.html">2007 Championship</a>' +
                '<a class="item2"  href="./album/420s_at_CBI_2007/index.html">2007 420s at CBI</a>' +
                '<a class="item2"  href="./album/Fall_Funfest_2006/index.html">2006 Fall Funfest</a>' +
                '<a class="item2"  href="./album/Underclass_2006/index.html">2006 Underclass</a>' +
                '<a class="item2"  href="./album/Championship_2006/index.html">2006 Championship</a>' +
                '<a class="item2"  href="./album/TR_Invite_2006/index.html">2006 TR Invite</a>' +
                '<a class="item2"  href="./album/Underclass_2005/index.html">2005 Underclass</a>' +
            '</div>' +
        '</td>' +
        '<td>' +
            '<a class="item1 right" href="javascript:void(0)">Links</a>' +
            '<div class="section">' +
                '<a class="item2" href="links.html">Organizations</a>' +
                '<a class="item2" href="venues.html">Venues</a>' +
                '<a class="item2" href="links.html#Pubs">Publications</a>' +
                '<a class="item2" href="links.html#Gear">Sailing Gear</a>' +
                '<a class="item2" href="links.html">420 Info</a>' +
                '<a class="item2" href="links.html#Mercur">Mercury Info</a>' +
                '<a class="item2" href="links.html#Sails">Sail Info</a>' +
                '<a class="item2" href="links.html#Marlinspike">Marlinspike</a>' +
                '<a class="item2" href="links.html#Webcams">Web cams</a>' +
            '</div>' +
        '</td>' +
        '<td>' +
            '<a class="item1" href="donate.html">Donate</a>' +
        '</td>' +
    '</tr>' +
    '</table>' +
		'</div> <!-- navbar -->' +


		'<!-- left column navigation -->' +
		
		'<!-- page content section -->' +
		'<div id="content">'
		
);
}

// Return html for content closing, footer and credits.

function mbltemplate_bot(updatedate) {
	 
	return ('</div> <!-- content -->' +
	
	'</div> <!-- wrapper -->' +

	'<!-- footer -->' +
	'<div id="footer">' +
'<table title="Copyright Notice" summary="Copyright Notice" align="center" border="0" cellpadding="20">' +
  '<tr><td align="center">' +
    '<font size="-2" Color="#0000FF">Copyright 2004-2010 Massachusetts Bay League <br/>' +
	'Updated: <script type="text/javascript">document.write(document.lastModified);</script></font>' +
	'</td></tr>' +
'</table>' +
	'</div> <!-- footer -->' +

'</div> <!-- container -->' 

);
}


function mallory_top () {

	return ('<div id="container">' + 

'<table  summary="Massachusetts Bay League" align="center" border="0" width="100%"  cellpadding="10">' +
  '<tr align="center">' +
  '<td>' +
    '<img src="./images/issa.gif" height="100" alt="" />' +
  '</td>' +
  '<td>' +
    '<table summary="" align="center" border="0">' +
      '<tr align="center">' +
        '<td valign="middle">' +
          '<font size="+3"> 2010 ISSA Double-Handed Championship</font>' +
        '</td></tr>' +
      '<tr align="center">' +
        '<td valign="middle">' +
          '<font size="+1">for the Clifford D. Mallory Trophy</font>' +
        '</td>' +
      '</tr>' +
      '<tr align="center">' +
        '<td valign="middle">' +
          '<font size="+1">May 15-16, 2010</font>' +
        '</td>' +
      '</tr>' +
    '</table>' +
  '</td>' +
  '<td>' +
    '<img src="./images/mallory_trophy.jpg" height="100" alt="" />' +
  '</td>' +
  '</tr>' +
'</table>' +
	'<!-- main wrapper -->' +
	'<div id="wrapper">'
	
);
}

function mallory_menu () {

	return ('<div id="mallorybar">' +
    '<table cellspacing="0" cellpadding="0" id="menu2" class="ddm1" width="100%">' +
    '<tr>' +
        '<td>' +
            '<a class="item1 left" href="mallory.html">Home</a>' +
        '</td>' +
        '<td>' +
            '<a class="item1" href="javascript:void(0)">Hosts</a>' +
            '<div class="section">' +
                '<a class="item2" href="mallory_mbl.html">Massachusetts Bay League</a>' +
                '<a class="item2" href="mallory_mit.html">MIT Sailing</a>' +
                '<a class="item2" href="mallory_cbi.html">Community Boating, Inc.</a>' +
                '<a class="item2" href="http://www.nessa-sailing.org/">NESSA</a>' +
                '<a class="item2" href="http://www.highschoolsailingusa.org/">ISSA</a>' +
                '<a class="item2" href="mallory_contact.html">Contact Info</a>' +
            '</div>' +
        '</td>' +
        '<td>' +
            '<a class="item1" href="javascript:void(0)">Partners</a>' +
            '<div class="section">' +
                '<a class="item2" href="http://www.kattack.com/">Kattack</a>' +
            '</div>' +
        '</td>' +
        '<td>' +
            '<a class="item1" href="javascript:void(0)">Documents</a>' +
            '<div class="section">' +
                '<a class="item2" href="./docs/placeholder.pdf">Notice of Race</a>' +
                '<a class="item2" href="./docs/placeholder.pdf">Sailing Instructions</a>' +
                '<a class="item2" href="./docs/MBL_CBI_MIT_Mallory_Proposal.pdf">Event Proposal</a>' +
            '</div>' +
        '</td>' +
        '<td>' +
            '<a class="item1" href="javascript:void(0)">Tidbits</a>' +
            '<div class="section">' +
                '<a class="item2" href="http://mallory2010.blogspot.com/">Event Blog</a>' +
                '<a class="item2" href="mallory_charles.html">The Charles River</a>' +
                '<a class="item2" href="mallory_schedule.html">Schedule</a>' +
                '<a class="item2" href="mallory_tidbits.html">Transportation</a>' +
                '<a class="item2" href="mallory_tidbits.html">Lodging</a>' +
                '<a class="item2" href="mallory_directions.html">Directions</a>' +
                '<a class="item2" href="mallory_parking.html">Parking</a>' +
                '<a class="item2" href="http://www.highschoolsailingusa.org/NationalsResults/trophyHistory.htm#mallory">Mallory History</a>' +
            '</div>' +
        '</td>' +
        '<td>' +
            '<a class="item1" href="./docs/placeholder.pdf">Results</a>' +
        '</td>' +
        '<td>' +
            '<a class="item1" href="javascript:void(0)">Weather</a>' +
            '<div class="section">' +
                '<a class="item2" href="http://forecast.weather.gov/MapClick.php? CityName=Boston&state=MA&site=BOX&textField1=42.3583&textField2=-71.0603&e=0&FcstType=graphical" target="_blank">NWS Hourly Forecast - Boston</a>' +
                '<a class="item2" href="http://www.windfinder.com/weatherforecast/boston_logan_airport" target="_blank">Windfinder - Boston</a>' +
                '<a class="item2" href="http://www.intellicast.com/National/Radar/Metro.aspx?location=USMA0046"  target="_blank">Intellicast Radar</a>' +
                '<a class="item2" href="http://sailing.mit.edu/weather/" target="_blank">MIT Wind</a>' +
                '<a class="item2" href="http://cbiwind.org/cgi-bin/genpage?window=3h&bin=1m&db=postgres&fields=cbi" target="_blank">CBI Wind</a>' +
                '<a class="item2" href="http://www.sailflow.com/windandwhere.iws?regionID=194&Isection=Gmap+Obs" target="_blank">SailFlow</a>' +
                '<a class="item2" href="weather.html">More Weather Links</a>' +
            '</div>' +
        '</td>' +
        '<td>' +
            '<a class="item1 right" href="http://www.massbayleague.org/album/Mallory_2010/index.html">Gallery</a>' +
        '</td>' +
//        '<td>' +
//            '<a class="item1" href="mallory_donate.html">Donate</a>' +
//        '</td>' +
    '</tr>' +
    '</table>' +
		'</div> <!-- mallorybar -->' +


		'<!-- left column navigation -->' +
		
		'<!-- page content section -->' +
		'<div id="content">'
		
);
}

function baker_top () {

	return ('<div id="container">' + 

'<table  summary="Massachusetts Bay League" align="center" border="0" width="100%"  cellpadding="10">' +
  '<tr align="center">' +
  '<td>' +
    '<img src="./images/issa.gif" height="100" alt="" />' +
  '</td>' +
  '<td>' +
    '<table summary="" align="center" border="0">' +
      '<tr align="center">' +
        '<td valign="middle">' +
          '<font size="+3"> 2012 ISSA Team Racing Championship</font>' +
        '</td></tr>' +
      '<tr align="center">' +
        '<td valign="middle">' +
          '<font size="+1">for the Toby Baker Trophy</font>' +
        '</td>' +
      '</tr>' +
      '<tr align="center">' +
        '<td valign="middle">' +
          '<font size="+1">May 26-27, 2012</font>' +
        '</td>' +
      '</tr>' +
    '</table>' +
  '</td>' +
  '<td>' +
    '<img src="./images/baker_trophy.jpg" height="100" alt="" />' +
  '</td>' +
  '</tr>' +
'</table>' +
	'<!-- main wrapper -->' +
	'<div id="wrapper">'
	
);
}

function baker_menu () {

	return ('<div id="bakerbar">' +
    '<table cellspacing="0" cellpadding="0" id="menu2" class="ddm1" width="100%">' +
    '<tr>' +
        '<td>' +
            '<a class="item1 left" href="baker.html">Home</a>' +
        '</td>' +
        '<td>' +
            '<a class="item1" href="javascript:void(0)">Hosts</a>' +
            '<div class="section">' +
                '<a class="item2" href="baker_mbl.html">Massachusetts Bay League</a>' +
                '<a class="item2" href="baker_mit.html">MIT Sailing</a>' +
                '<a class="item2" href="baker_cbi.html">Community Boating, Inc.</a>' +
                '<a class="item2" href="http://www.nessa-sailing.org/">NESSA</a>' +
                '<a class="item2" href="http://www.highschoolsailingusa.org/">ISSA</a>' +
                '<a class="item2" href="baker_contact.html">Contact Info</a>' +
            '</div>' +
        '</td>' +
        '<td>' +
            '<a class="item1" href="javascript:void(0)">Partners</a>' +
            '<div class="section">' +
//                '<a class="item2" href="http://www.kattack.com/">Kattack</a>' +
            '</div>' +
        '</td>' +
        '<td>' +
            '<a class="item1" href="javascript:void(0)">Documents</a>' +
            '<div class="section">' +
                '<a class="item2" href="./docs/placeholder.pdf">Notice of Race</a>' +
                '<a class="item2" href="./docs/placeholder.pdf">Sailing Instructions</a>' +
                '<a class="item2" href="./docs/MBL_MIT_CBI_Baker_Proposal.pdf">Event Proposal</a>' +
            '</div>' +
        '</td>' +
        '<td>' +
            '<a class="item1" href="javascript:void(0)">Tidbits</a>' +
            '<div class="section">' +
                '<a class="item2" href="http://baker2012.blogspot.com/">Event Blog</a>' +
                '<a class="item2" href="baker_charles.html">The Charles River</a>' +
                '<a class="item2" href="baker_schedule.html">Schedule</a>' +
                '<a class="item2" href="baker_tidbits.html">Transportation</a>' +
                '<a class="item2" href="baker_tidbits.html">Lodging</a>' +
                '<a class="item2" href="baker_directions.html">Directions</a>' +
                '<a class="item2" href="baker_parking.html">Parking</a>' +
                '<a class="item2" href="http://www.highschoolsailingusa.org/NationalsResults/trophyHistory.htm#baker">Baker History</a>' +
            '</div>' +
        '</td>' +
        '<td>' +
            '<a class="item1" href="./docs/placeholder.pdf">Results</a>' +
        '</td>' +
        '<td>' +
            '<a class="item1" href="javascript:void(0)">Weather</a>' +
            '<div class="section">' +
                '<a class="item2" href="http://forecast.weather.gov/MapClick.php? CityName=Boston&state=MA&site=BOX&textField1=42.3583&textField2=-71.0603&e=0&FcstType=graphical" target="_blank">NWS Hourly Forecast - Boston</a>' +
                '<a class="item2" href="http://www.windfinder.com/weatherforecast/boston_logan_airport" target="_blank">Windfinder - Boston</a>' +
                '<a class="item2" href="http://www.intellicast.com/National/Radar/Metro.aspx?location=USMA0046"  target="_blank">Intellicast Radar</a>' +
                '<a class="item2" href="http://sailing.mit.edu/weather/" target="_blank">MIT Wind</a>' +
                '<a class="item2" href="http://cbiwind.org/cgi-bin/genpage?window=3h&bin=1m&db=postgres&fields=cbi" target="_blank">CBI Wind</a>' +
                '<a class="item2" href="http://www.sailflow.com/windandwhere.iws?regionID=194&Isection=Gmap+Obs" target="_blank">SailFlow</a>' +
                '<a class="item2" href="weather.html">More Weather Links</a>' +
            '</div>' +
        '</td>' +
        '<td>' +
            '<a class="item1 right" href="http://www.massbayleague.org/album/Mallory_2010/index.html">Gallery</a>' +
        '</td>' +
//        '<td>' +
//            '<a class="item1" href="baker_donate.html">Donate</a>' +
//        '</td>' +
    '</tr>' +
    '</table>' +
		'</div> <!-- bakerbar -->' +


		'<!-- left column navigation -->' +
		
		'<!-- page content section -->' +
		'<div id="content">'
		
);
}

