// DO NOT EDIT LINES ON THIS PAGE EXCEPT THOSE NOTED BELOW
function chooseSheet() {
var today = new Date();
var month = today.getMonth() + 2;
var year = today.getFullYear(); 
if ((month > -1) && (month < 5)) window.location.href = "Programme" + year + "-JanMay.html";
else  if ((month > 4) && (month < 8)) window.location.href = "Programme" + year +  "-JunAug.html";
else  if ((month > 7) && (month < 12)) window.location.href = "Programme" + year + "-SepDec.html";
}

function menuItem(pageName, txt) {
document.write("</td</tr><tr><td nowrap>");
document.write("<a href='" + pageName + ".html' class='menu'>" + txt + "</a>");
}
function subMenuItem(pageName, txt) {
document.write("</td</tr><tr><td nowrap>");
document.write("<a href='" + pageName + ".html' class='menu'>&nbsp;&nbsp;" + txt + "</a>");
}
function subMenuItemPDF(pageName, txt) {
document.write("</td</tr><tr><td nowrap>");
document.write("<a href='" + pageName + ".pdf' class='menu'>&nbsp;&nbsp;" + txt + "</a>");
}

function titleItem(txt) {
document.write("</td</tr><tr><td nowrap class='menutitle'>");
document.write(txt);
}
function menuPDFitem(pageName,txt) {
document.write("</td</tr><tr><td nowrap class='menutitle'>");
document.write("<a href='" + pageName + ".pdf' class='menu'>" + txt + "</a>");
}
function pageSelect(pageName) {
document.write("</td</tr><tr><td nowrap>");
document.write("<a href='#' class='menu'>" + pageName + "</a>");
}

function menuseparator () {
document.write("</td</tr><tr><td height='10' vspace='5'>");
document.write('<img src="images/menu-separator3.png" width="150" height="1">');
}

// document.write("<a href='#' class='menu' onClick='chooseSheet();'>" + pageName + "</a>");

// THE MENU STARTS HERE. EACH LINK IS LOCATED IN A TABLE ROW

document.write('<div id="menulocation"  class="menu-background menuwidth">');
document.write("<table cellpadding='0' cellspacing='0' width='150'>");
menuItem("index", "Home");
menuItem("News", "News Articles");
menuItem("Exhibitions","Exhibitions");

menuseparator();

pageSelect("Programme");
subMenuItem("mobile", "  On Your Mobile");
subMenuItem("Programme2011-JunAug", "  Summer 2011");
subMenuItem("Programme2011-SepDec", "  Winter 2011");
subMenuItem("Programme2012-JanMay", "  Winter 2012");
subMenuItemPDF("Printable MSCC Programme 2011-2012","  Printable Programme");

menuseparator();

menuItem("Competitions","Competitions");
menuItem("Competition Results","Competition Results");
menuItem("CompetitionRules","Competition Rules");
menuItem("CompetitionEntry","Competition Entry");

menuseparator();

menuItem("Membership","Membership");
menuItem("MembersGallery", "Members Gallery");
menuItem("Committee","Committee");	
menuItem("Contact Us", "Contact Us");
menuItem("Glossary", "Glossary");
menuItem("Links", "Links");

menuseparator();

menuItem("TechnicalGuides", "Technical Guides");
menuItem("Model Release","Model Release");

menuseparator();

menuItem("ClubHistory", "Club History");
menuItem("Archives02-07", "Archives 02-07");
menuItem("Archives07-08", "Archives from 07");

// NEW MENU ITEM ADDED HERE BELOW SEPARATOR
// menuseparator();

// menuItemPDF("Events","Up and Coming Events");
// END OF NEW LINE

menuseparator();

menuItem("Copyright", "The Legal Bit");

document.write('<img src="images/menuLogo.gif" width="120" height="120">');

document.write("</td</tr></table>");
document.write("<p>&nbsp;</p>");

document.write("</div>");

// ADDING A MENU OR SUB-MENU LINK
// Add a new line copied from above then edited as below
// menuItemPDF(filename, link-text); or subMenuItemPDF(filename, link-text);
// Do NOT use .pdf after filename, the software adds it in for you.



