



//Write CSS stylesheet
//---------------------------------------------------------
function writecss()
{
document.writeln ("<style>");
document.writeln ("table { font-family: arial, helvetica, sans-serif; font-size: 9pt; color: #005070; padding: 0px 0px 0px 0px }");
document.writeln (".darkbar { font-size: 10pt; color: #FFFFFF; font-weight: bold; text-align: center; background-color: #005070; line-height: 85% }");
document.writeln (".orangeline { color: #B57329; background-color: #B57329 }");
document.writeln (".subhead { font-size: 12pt; font-style: italic; font-weight: bold }");
document.writeln (".newsbar { font-size: 12pt; font-weight: bold; font-style: italic; vertical-align: middle; background-color: #78AEC8 }");
document.writeln (".stripe { font-size: 12pt; font-weight: bold; font-style: italic; vertical-align: middle; background-color: #78AEC8 }");
document.writeln (".sidenavB { font-size: 10pt; color: #005070; font-weight: bold; padding-left: 10px; padding-top: 2px; padding-bottom: 2px }");
document.writeln (".sidenav { font-size: 10pt; color: #005070; padding-left: 10px; padding-top: 2px; padding-bottom: 2px }");
document.writeln (".sidenav9 { font-size: 9pt; color: #005070; padding-left: 10px; padding-top: 2px; padding-bottom: 2px }");
document.writeln (".sidenavhead { font-size: 10pt; color: #005070; font-weight: bold; text-decoration: underline; padding-left: 10px; padding-top: 10px; padding-bottom: 2px }");
document.writeln (".sidenavsmall { font-size: 7pt; color: #005070; padding-left: 10px }");
document.writeln (".navstrip { font-size: 8pt; color: #909099 }");
document.writeln (".newshead { color: #000000; font-weight: bold; line-height: 95% }");
document.writeln (".newsheadL { color: #000000; border-width: 0px 0px 0px 1px; border-color: #78AEC8; border-style: solid }");
document.writeln (".newsheadR { color: #000000; border-width: 0px 1px 0px 0px; border-color: #78AEC8; border-style: solid }");
document.writeln (".newsbottom { color: #000000; border-width: 0px 1px 1px 1px; border-color: #78AEC8; border-style: solid }");
document.writeln (".newsheadnew { color: #B57329; font-weight: bold; font-style: italic }");
document.writeln (".scoretop { font-size: 10pt; color: #005070; background-color: #78AEC8; border-width: 1px 1px 0px 1px; border-color: #78AEC8; border-style: solid }");
document.writeln (".scorehead { font-weight: bold; line-height: 95%; text-align: center }");
document.writeln (".scoretext { line-height: 95%; }");
document.writeln (".scoreL { font-size: 8pt; border-width: 0px 0px 0px 1px; border-color: #78AEC8; border-style: solid }");
document.writeln (".scoreR { font-size: 8pt; border-width: 0px 1px 0px 0px; border-color: #78AEC8; border-style: solid }");
document.writeln (".score { font-size: 8pt }");
document.writeln (".scorebottom { font-size: 8pt; background-color: #FFFFFF; border-width: 0px 1px 1px 1px; border-color: #78AEC8; border-style: solid }");
document.writeln (".scoretourn { font-size: 10pt; color: #005070; background-color: #FFFFFF; border-width: 1px 1px 0px 1px; border-color: #78AEC8; border-style: solid }");
document.writeln (".thead { background-color: #005070; color: #FFFFFF }");
document.writeln (".thead10 { font-size: 10pt; background-color: #005070; color: #FFFFFF }");
document.writeln (".thead12 { font-size: 12pt; background-color: #005070; color: #FFFFFF }");
document.writeln (".thead8 { font-size: 8pt; background-color: #005070; color: #FFFFFF }");
document.writeln (".trowtop { background-color: #78AEC8 }");
document.writeln (".trowtop10 { font-size: 10pt; background-color: #78AEC8 }");
document.writeln (".trowtop8 { font-size: 8pt; background-color: #78AEC8 }");
document.writeln (".trow { background-color: #D8D8DA }");
document.writeln (".trow10 { font-size: 10pt; background-color: #D8D8DA }");
document.writeln (".trow8 { font-size: 8pt; background-color: #D8D8DA }");
document.writeln (".trow8alt { font-size: 8pt; background-color: #E8E8EA }");
document.writeln (".trowblack { color: #202020; background-color: #D8D8DA }");
document.writeln (".trowyellow { font-size: 8pt; background-color: #EBF4B0 }");
document.writeln (".trowyellow10 { font-size: 10pt; background-color: #EBF4B0 }");
document.writeln (".trowWhite { border-width: 0px 0px 2px 0px; border-color: #005070; border-style: solid  }");
document.writeln (".tblack { color: #202020 }");
document.writeln (".tblack10 { color: #202020; font-size: 10pt }");
document.writeln (".tblack8 { color: #202020; font-size: 8pt }");
document.writeln (".tblack10B { color: #202020; font-size: 10pt; font-weight: bold }");
document.writeln (".tblack12B { color: #202020; font-size: 12pt; font-weight: bold }");
document.writeln (".tblue10 { color: #005070; font-size: 10pt }");
document.writeln (".tblue8 { color: #005070; font-size: 8pt }");
document.writeln (".tblue12 { color: #005070; font-size: 12pt }");
document.writeln (".tblue12B { color: #005070; font-size: 12pt; font-weight: bold }");
document.writeln ("form { font-family: arial, helvetica, sans-serif; font-size: 9pt; color: #005070 }");
document.writeln ("select { font-family: arial, helvetica, sans-serif; font-size: 9pt; color: #005070 }");
document.writeln ("input { font-family: arial, helvetica, sans-serif; font-size: 9pt; color: #005070 }");
document.writeln ("textarea { font-family: arial, helvetica, sans-serif; font-size: 9pt; color: #005070 }");
document.writeln ("img.bord{ border-width: 1px 1px 1px 1px; border-color: #78AEC8; border-style: solid }");
document.writeln ("a:link { color: #005070 }");
document.writeln ("a:visited { color: #005070 }");
document.writeln ("a:hover { color: #78AEC8 }");
document.writeln ("a:active { color: #78AEC8 }");
document.writeln ("a.side:link { color: #005070; text-decoration: none }");
document.writeln ("a.side:visited { color: #005070; text-decoration: none }");
document.writeln ("a.side:hover { color: #78AEC8; text-decoration: none }");
document.writeln ("a.side:active { color: #78AEC8; text-decoration: none }");
document.writeln ("a.strip:link { color: #78AEC8; text-decoration: none }");
document.writeln ("a.strip:visited { color: #78AEC8; text-decoration: none }");
document.writeln ("a.strip:hover { color: #909099; text-decoration: none }");
document.writeln ("a.strip:active { color: #909099; text-decoration: none }");
document.writeln ("a.nav:link { color: #FFFFFF; text-decoration: none }");
document.writeln ("a.nav:visited { color: #FFFFFF; text-decoration: none }");
document.writeln ("a.nav:hover { color: #78AEC8; text-decoration: none }");
document.writeln ("a.nav:active { color: #78AEC8; text-decoration: none }");
document.writeln ("a.news:link { color: #000000; text-decoration: none }");
document.writeln ("a.news:visited { color: #000000; text-decoration: none }");
document.writeln ("a.news:hover { color: #78AEC8; text-decoration: none }");
document.writeln ("a.news:active { color: #78AEC8; text-decoration: none }");
document.writeln ("</style>");
}


		
//Write the top/main navigation bar
//---------------------------------------------------------
function writenav()
{
document.writeln ("<td class=darkbar height=32 width=106><a href='/homepage.php' class=nav>Home</a></td>");
document.writeln ("<td class=darkbar height=32 width=2>|</td>");
document.writeln ("<td class=darkbar height=32 width=106><a href='/ClubInfo.html' class=nav>Club<br>Information</a></td>");
document.writeln ("<td class=darkbar height=32 width=2>|</td>");
document.writeln ("<td class=darkbar height=32 width=106><a href='/Teams.html' class=nav>Teams &<br>Schedules</a></td>");
document.writeln ("<td class=darkbar height=32 width=2>|</td>");
document.writeln ("<td class=darkbar height=32 width=106><a href='/cgi-bin/newsarchives.pl?cat=init' class=nav>News<br>Archives</a></td>");
document.writeln ("<td class=darkbar height=32 width=2>|</td>");
document.writeln ("<td class=darkbar height=32 width=106><a href='/cgi-bin/swapshop.pl?cat=init' class=nav>Swap Shop</a></td>");
document.writeln ("<td class=darkbar height=32 width=2>|</td>");
document.writeln ("<td class=darkbar height=32 width=106><a href='/Link.html' class=nav>Other Links</a></td>");
document.writeln ("<td class=darkbar height=32 width=2>|</td>");
document.writeln ("<td class=darkbar height=32 width=150><img src='/Images/clear.gif'></td>");
document.writeln ("<td class=darkbar height=32 width=2><img src='/Images/clear.gif'></td>");
document.writeln ("<td class=darkbar height=32 width=100%><img src='/Images/clear.gif'></td>");
}


//Write the bottom navigation strip
//---------------------------------------------------------
function writenavstrip()
{
document.writeln ("<a href='/homepage.php' class=strip>Home</a> | ");
document.writeln ("<A HREF='/Club/About.php' class=strip>About Us</A> | ");
document.writeln ("<A HREF='/Teams/Teams.php' class=strip>Teams</A> | ");
document.writeln ("<A HREF='/Sponsorship/sponsorship.php' class=strip>Sponsorship</A> | ");
document.writeln ("<A HREF='/PlayerDev/philosophy.php' class=strip>PlayerDevelopment</A> | ");
document.writeln ("<A HREF='/Resources/Link.php' class=strip>Resources</A></font><br>");
document.writeln ("Copyright &copy; 2003-06 San Jose Jr. Sharks Youth Hockey Program. All rights reserved.");
document.writeln ("</td>");
}


//Write the left navigation bar on Club pages bar 
//---------------------------------------------------------
function writeClubnav()
{
document.writeln ("<td height=100% width=150 background='/Images/watermark4.gif'>");
document.writeln ("<table valign=top cellspacing=0 cellpadding=0 border=0 height=100%>");
document.writeln ("<tr valign=top><td height=10 width=150><img src='/Images/clear150.gif' border=0></td></tr>");
document.writeln ("<tr valign=top><td class=sidenavhead height=20 width=150>More Season Info</td></tr>");
document.writeln ("<tr valign=top><td class=sidenav><a href='/Club/aboverview.html' class=side>A/B Overview</a></td></tr>");
//document.writeln ("<tr valign=top><td class=sidenav><a href='/Club/travelregistration.html' class=side>Travel Registration</a></td></tr>");
document.writeln ("<tr valign=top><td class=sidenav><a href='/Club/aaoverview.html' class=side>AAA/AA Overview</a></td></tr>");
//document.writeln ("<tr valign=top><td class=sidenav><a href='/Club/tierregistration.html' class=side>Tier Registration</a></td></tr>");
document.writeln ("<tr valign=top><td class=sidenavhead height=20 width=150>Additional Club Info</td></tr>");
document.writeln ("<tr valign=top><td class=sidenav><a href=\"javascript:popupscroll('/Club/JrSharksBylaws.doc','ByLawInfo',750,550)\" class=side>Club By-Laws</a></td></tr>");
document.writeln ("<tr valign=top><td class=sidenav><a href='/Club/Committees.html' class=side>Committee Members</a></td></tr>");
document.writeln ("<tr valign=top><td class=sidenav><a href='/Club/Champs.html' class=side>Past Champions</a></td></tr>");
document.writeln ("<tr valign=top><td class=sidenav><a href=\"javascript:popupscroll('/Club/scholarship.pdf','ScholarshipApp',800,600)\" class=side>Financial Aid</a></td></tr>");
document.writeln ("<tr valign=top><td class=sidenav><a href='/Contact.html' class=side>Contact Us</a></td></tr>");
document.writeln ("<tr valign=top><td height=100% width=100%><img src='/Images/clear150.gif' border=0></td></tr>");
document.writeln ("</table>");
document.writeln ("</td>");
}


//Call a popup window
//---------------------------------
function popup(URL, title, w, h) {
 winprops = 'height='+h+',width='+w+',top=0,left=0,menubar=yes,toolbar=yes,status=yes,scrollbars=auto,resizable=1';
 var page = window.open(URL, title, winprops);
 page.focus();
}

//Call a popup window with scroll
//---------------------------------
function popupscroll(URL, title, w, h) {

 winprops = 'height='+h+',width='+w+',top=0,left=0,menubar=yes,toolbar=yes,status=yes,scrollbars=yes,resizable=1';
 var page = window.open(URL, title, winprops);
 page.focus();
}


//Choose an image for the page header
//-------------------------------------
function choosePic(){
	headerImages = new Array("Images/headerSkater.gif","Images/skater2.gif","Images/skater3.gif")
	imgCt = headerImages.length
	pix = Math.floor((Math.random() * imgCt))
	document.picture.src = headerImages[pix]
}


//Choose an image for the page header from a directory other than home
//-------------------------------------
function choosePicUp(){
	headerImages = new Array("/Images/headerSkater.gif","/Images/skater2.gif","/Images/skater3.gif")
	imgCt = headerImages.length
	pix = Math.floor((Math.random() * imgCt))
	document.picture.src = headerImages[pix]
}

//-----------------------------------------------------
