var head = 0;
var link = 1;

var menuHeadings = new Array(

//******* this is where you add things to the menu *******
link, "Board of Directors",      "../board_of_directors.htm",
head, "Umpire Information",
link, "Site Maps & Directions",	 "../league_information_and_site_maps.htm",
link, "Meetings", 	             "../scvfu_meetings.htm",
//* link, "Game Fees",	             "../game_fees.htm",
link, "Policy",                  "../scvfu_umpire_policy.htm",
link, "Joining",                 "../join_form.htm",
link, "Forms & Reports",         "../SCVFU_2012_UMPIRE_INFO_PCKT.doc",
link, "Ejection Reports",        "../ejection_form.htm",
link, "Umpire Insurance",        "../umpire_insurance.htm",
link, "The Arbiter",             "http://www.thearbiter.net",
//head, "Meeting Minutes",	
//link, "Mar. 25, 2003",         "../03252003.htm",
//link, "Nov. 6, 2002",          "../11062002.htm",
link, "Local Weather",           "http://www.weather.com/local/95050",
head, "Umpire Mechanics", 
link, "Stances/Hand Signals",    "../mechanics/basic_stances_behind_the_plate.htm",
link, "Plate Articles",          "../mechanics/articles.htm",
link, "Attempted Plays",         "../mechanics/attempted_plays.htm",
link, "Nullifying Appeal Plays", "../mechanics/nullifying_appeal_plays.htm", 
link, "Awarding Bases",          "../mechanics/awarding_bases.htm", 
link, "Rule 7.09(h)",            "../mechanics/double_play_interference.htm", 
link, "Interference By Runner",  "../mechanics/interference_by_the_runner.htm", 
link, "Calling The Infield Fly", "../mechanics/infield_fly.htm", 
link, "Professionalism",         "../mechanics/professionalism.htm",
link, "Ten Unwritten Rules",     "http://www.amateurumpire.com/others/misc/porter02.htm",
link, "Umpire Heckles",          "http://www.heckledepot.com/umpires.shtml",
head, "Controversial Mechanics", 
link, "Mechanics Part 1",        "../mechanics/mechanics_pt_1.htm",
link, "Mechanics Part 2",        "../mechanics/mechanics_pt_2.htm",
link, "Mechanics Part 3",        "../mechanics/mechanics_pt_3.htm"

//*********************************************************
//add above the previous line making sure to follow the form
//     head, <words to show on page>,
//  or
//     link, <words to show on page>, <file to link to>,
//
//look at the entries above if you're unsure!
//ALSO -- make sure to add commas where needed!
//this means everywhere but after the last entry
//*********************************************************
)


//DON'T CHANGE ANYTHING BELOW THIS LINE============================
//=================================================================
var headingSize = 2;
var headingColor = "BLUE";
var linkSize = 1.5;
var linkColor = "RED";

var menuWidth = 130;

function createLink(name, file)
{
    
	document.write("<TR><TD cellpadding=0 background='./images/menuBack1.gif' width=20><IMG align=right width=12 height=12 src='../art/bullet.gif'>")
	document.write("<TD background='./images/menuBack2.gif' height=15>")
	document.write("<FONT color=" + linkColor + " size=" + linkSize + "><A href=")
    document.write("'" + file + "'")
    document.write(" target='main'")
    document.write(">" + name + "</A></FONT></TD>")
	document.write("<TD background='./images/menuBack3.gif' width=20></TD></TR>")
	
}

function createHeading (name)
{
    document.write("<TR><TD background='./images/menuBack1.gif' height=5 width=20 cellpadding=0></TD>")
    document.write("<TD bgcolor=WHITE width=" + menuWidth + "></TD>")
	document.write("<TD background='./images/menuBack3.gif' height = 5 width=20></TD></TR>")
	
    document.write("<TR><TD background='./images/menuBack1.gif' width=20 cellpadding=0></TD>")
    document.write("<TD background='./images/menuBack2.gif' width=" + menuWidth + ">")
	document.write("<FONT color=" + headingColor + " size=" + headingSize + "><B>" + name + "</B></FONT></TD>")
	document.write("<TD background='./images/menuBack3.gif' width=20></TD></TR>")
}
function createHeadingOld (name)
{
    document.write("<TR><TD background='./images/menuBack1.gif' height=5 width=20 cellpadding=0></TD>")
    document.write("<TD background='./images/menuBack2.gif' width=" + menuWidth + "height=5></TD>")
	document.write("<TD background='./images/menuBack3.gif' height = 5 width=20></TD></TR>")
	
    document.write("<TR><TD background='./images/menuBack1.gif' width=20 cellpadding=0></TD>")
    document.write("<TD background='./images/menuBack2.gif' width=" + menuWidth + ">")
	document.write("<FONT color=" + headingColor + " size=" + headingSize + "><B>" + name + "</B></FONT></TD>")
	document.write("<TD background='./images/menuBack3.gif' width=20></TD></TR>")
}


function createMenu(menuArray)
{
    document.write("<BASE TARGET='main'>")
	document.write("<TABLE cellSpacing=0 cellPadding=0 width='100%' border=0><TBODY>")
	document.write("<TR><TD background='./images/menuTop1.gif' height=20 width=20></TD>")
	document.write("    <TD background='./images/menuTop2.gif' height=20></TD>")
	document.write("    <TD background='./images/menuTop3.gif' height=20 width=20></TD></TR>")
	
    for (var i=0; i<menuArray.length; i++)
    {
        if (menuArray[i] == link)
        {
            var linkName = menuArray[i+1];

            var linkFile = menuArray[i+2];
            createLink(linkName, linkFile);
	  
            i = i+2;
	}
	else
	{
            createHeading(menuArray[i+1]);
        
            i++;
        }
    }

    document.write("<TR><TD background='./images/menuBtm1.gif' height=20 width=20></TD>")
	document.write("    <TD background='./images/menuBtm2.gif' height=20></TD>")
	document.write("    <TD background='./images/menuBtm3.gif' height=20 width=20></TD></TR>")
	document.write("</TBODY></TABLE>");
}
