// JavaScript Document

function printHeader() {
	document.write("<LINK REL=\"ICON\" HREF=\"favicon.ico\"/> ");
	document.write("<TABLE CLASS=\"div\" ALIGN=\"CENTER\" VALIGN=\"CENTER\" WIDTH=\"700\" HEIGHT=\"100%\">");
	document.write("   <TR HEIGHT=\"1\">");
	document.write("         <TD HEIGHT=\"1\" WIDTH=\"100%\">");
	document.write("            <IMG SRC=\"images/logotest.jpg\" ALT=\"logo\" WIDTH=\"700\" HEIGHT=\"148\">");
	document.write("         </TD>");
//MENU
	document.write("   </TR><TR HEIGHT=\"23\">");	
	document.write("      <TD WIDTH=\"100%\">");
	document.write("         <TABLE STYLE=\"border-collapse: collapse;\" id=\"Menu\" ALIGN=\"CENTER\" WIDTH=\"100%\" BGCOLOR=\"#FFFF00\">");
	document.write("            <TR  HEIGHT=\"25\" ALIGN=\"CENTER\">");
	
	//document.write("      <TD WIDTH=\"30\">&nbsp;</TD>");
   	printMenuItem("Home", "index.html");
	document.write("      <TD WIDTH=\"2\"><img src=\"images/separator.gif\"/></TD>");
   	printMenuItem("Events", "events.html");
	document.write("      <TD WIDTH=\"2\"><img src=\"images/separator.gif\"/></TD>");
   	printMenuItem("Resources", "resources.html");
	document.write("      <TD WIDTH=\"2\"><img src=\"images/separator.gif\"/></TD>");
   	printMenuItem("Member News", "news.html");
	document.write("      <TD WIDTH=\"2\"><img src=\"images/separator.gif\"/></TD>");
	printMenuItem("About", "about.html");
	document.write("      <TD WIDTH=\"2\"><img src=\"images/separator.gif\"/></TD>");
   	printMenuItem("Contact", "contact.html");
   	//document.write("      <TD>&nbsp;</TD>");
	
	document.write("            </TR>");
	document.write("         </TABLE>");
	document.write("      </TD>");
	document.write("   </TR>");
//END MENU
	
//UNDERLINE
	document.write("   <TR HEIGHT=\"4\" WIDTH=\"100%\"><TD WIDTH=\"100%\" BGCOLOR=\"#FFFFFF\">");
	document.write("      <TABLE HEIGHT=\"4\" WIDTH=\"100%\"><TR>");
	
	printMenuUnderline("Home");
   	printMenuUnderline("Events");
   	printMenuUnderline("Resources");
   	printMenuUnderline("Member News");
   	printMenuUnderline("About");
   	printMenuUnderline("Contact");
	
	document.write("         </TR></TABLE>");
	document.write("   </TR>");
//END UNDERLINE
	
	document.write("   <TR>");
	if (currentPage == 'Home')
		document.write("      <TD VALIGN=\"TOP\" WIDTH=\"100%\" BGCOLOR=\"#FFFFFF\" BACKGROUND=\"images/otherpages1.jpg\">");
	else
		document.write("      <TD VALIGN=\"TOP\" WIDTH=\"100%\" BGCOLOR=\"#FFFFFF\" BACKGROUND=\"images/otherpages1.jpg\">");
   	document.write("         <TABLE HEIGHT=\"4\" WIDTH=\"100%\">");
   	document.write("            <TR>");
   	document.write("               <TD WIDTH=\"30\"></TD>");

	
		
   	document.write("            </TR>");
   	document.write("         </TABLE>");
   	document.write("         <TABLE HEIGHT=\"98%\" WIDTH=\"100%\"><TR><TD WIDTH=\"10\"></TD><TD><DIV STYLE=\"height:100%;\">");
   	//document.write("         <BR>");
}

function printFooter() {
	document.write("         </TD></TR></TABLE>");
	document.write("      </TD>");
	document.write("   </TR><TR HEIGHT=\"15\">");
	document.write("      <TD HEIGHT=\"20\" WIDTH=\"100%\" ALIGN=\"CENTER\" BGCOLOR=\"#000000\"><FONT COLOR=\"#CCCCCC\" SIZE=\"1px\">&copy; 2007 :: Ed2010 on Campus at Syracuse University</FONT></TD>");
	document.write("   </TR>");
	document.write("</TABLE>");
}


 // Print an item from the main menu
 function printMenuItem(caption, url) {
   document.write("   <TD WIDTH=\"1\" ALIGN=\"CENTER\">");

 	if (caption == currentPage) {
		document.write("  <DIV STYLE=\"position:relative; top:0; left:0; height:23; width:115;\">&nbsp;");
		document.write("  <DIV id=\"divMenu" + caption + "On\" style=\"position:absolute; top:0; left:0; height:23; width:115; line-height: 16pt; visibility:visible\">");
		document.write("    <FONT COLOR=\"#000000\" STYLE=\"font-weight:bold\">" + caption + "</FONT>");
		document.write("   </DIV>");
		document.write("  </DIV>");
   } else {
     document.write("  <DIV STYLE=\"position:relative; top:0; left:0; height:23; width:115; cursor:pointer\" onmouseover=\"onMenuOver('" + caption + "');\" onmouseout=\"onMenuOut('" + caption + "');\" onclick=\"doLink('" + url + "')\">&nbsp;");
     document.write("   <DIV id=\"divMenu" + caption + "Off\" style=\"position:absolute; top:0; left:0; height:23; width:115; line-height: 16pt; visibility:visible\">");
     document.write("    <FONT COLOR=\"#000000\">" + caption + "</FONT>");
     document.write("   </DIV>");
     document.write("   <DIV id=\"divMenu" + caption + "On\" style=\"position:absolute; top:0; left:0; height:23; width:115; line-height: 16pt; visibility:hidden\">");
     document.write("    <FONT COLOR=\"#000000\" STYLE=\"font-weight:bold\">" + caption + "</FONT>");
     document.write("   </DIV>");
     document.write("  </DIV>");
   }
   document.write("   </TD>");
 }
 
 // Perform a link
 function doLink(url) {
   document.location=url;
 }

 // Handle mouse over events for items in the main menu
 function onMenuOver(item) {
   document.all['divMenu' + item + 'On'].style.visibility='visible';
   document.all['divMenu' + item + 'Off'].style.visibility='hidden';
   document.all['divUnderline' + item].style.visibility='visible';
 }

 // Handle mouse out events for items in the main menu
 function onMenuOut(item) {
   document.all['divMenu' + item + 'Off'].style.visibility='visible';
   document.all['divMenu' + item + 'On'].style.visibility='hidden';
   document.all['divUnderline' + item].style.visibility='hidden';
 }
 
 // Print the underline for an item in the main menu
function printMenuUnderline(caption) {
	document.write("   <TD ALIGN=\"CENTER\">");
	if (caption == currentPage)
		document.write("  <DIV id=\"divUnderline" + caption + "\" style=\"visibility:visible\">");
	else
		document.write("  <DIV id=\"divUnderline" + caption + "\" style=\"visibility:hidden\">");
	document.write("     <IMG SRC=\"images/underline.gif\"/>");
	document.write("    </DIV>");
	document.write("   </TD>");
	document.write("   <TD WIDTH=\"2\"></TD>");
 }