function createMainMenu()

{	

	with (document)

	{

	//	if (screen.width == 800)

			write('<div style="position: top: 5px;">');

		//else

			//write('<div style="padding: 4px; position: absolute; top: 2%;">');

		write('<p style="color: #0164A5; text-align: left; font-weight: bold; font-size: 20pt;">Spring 2010</p>');

		write('<a href="index.htm" class="menulink" id="home" onmouseover="mouseoverLink(this.id)" onmouseout="mouseoutLink(this.id)">Home</a><br>');

		write('<a href="overview.htm" class="menulink" id="overview" onmouseover="mouseoverLink(this.id)" onmouseout="mouseoutLink(this.id)">Overview</a><br>');

		write('<a href="philosophy.htm" class="menulink" id="philos" onmouseover="mouseoverLink(this.id)" onmouseout="mouseoutLink(this.id)">Philosophy</a><br>');

		write('<a href="volunteer.htm" class="menulink" id="volunteer" onmouseover="mouseoverLink(this.id)" onmouseout="mouseoutLink(this.id)">Volunteer</a><br>');

		write('<a href="FAQs.htm" class="menulink" id="FAQs" onmouseover="mouseoverLink(this.id)" onmouseout="mouseoutLink(this.id)">FAQs</a><br>');

		write('<a href="events.htm" class="menulink" id="events" onmouseover="mouseoverLink(this.id)" onmouseout="mouseoutLink(this.id)">Dates and Events</a><br>');

		write('<a href="registration.htm" class="menulink" id="reg" onmouseover="mouseoverLink(this.id)" onmouseout="mouseoutLink(this.id)">Registration</a><br>');

		write('<a href="schedule.htm" class="menulink" id="gamesched" onmouseover="mouseoverLink(this.id)" onmouseout="mouseoutLink(this.id)">Game Schedules</a><br>');					

		write('<a href="fields.htm" class="menulink" id="fields" onmouseover="mouseoverLink(this.id)" onmouseout="mouseoutLink(this.id)">Fields</a><br>');					

		write('<a href="coaches.htm" class="menulink" id="coach" onmouseover="mouseoverLink(this.id)" onmouseout="mouseoutLink(this.id)">Coaches Corner</a><br>');

		write('<a href="referees.htm" class="menulink" id="ref" onmouseover="mouseoverLink(this.id)" onmouseout="mouseoutLink(this.id)">Referees</a><br>');

		write('<a href="teaminfo.htm" class="menulink" id="teaminfo" onmouseover="mouseoverLink(this.id)" onmouseout="mouseoutLink(this.id)">Team Info</a><br>');

		write('<a href="#" class="menulink" id="weather" onmouseover="mouseoverLink(this.id)" onmouseout="mouseoutLink(this.id)" onclick="window.open(\'http://www.weather.com/weather/local/USTN0370?from=search_city\', \'weather\')">Weather</a><br>');

		write('<a href="socsites.htm" class="menulink" id="soclinks" onmouseover="mouseoverLink(this.id)" onmouseout="mouseoutLink(this.id)">Soccer Links</a><br>');

		write('<a href="contact.htm" class="menulink" id="continfo" onmouseover="mouseoverLink(this.id)" onmouseout="mouseoutLink(this.id)">Contact Info</a><br>');

		write('</div>');

	}

}



function writeBodyDivCenter()
{

//BW	if (screen.width == 800)
		document.write('<div style="width: 78%; position: absolute; left: 177px; top: 5px; text-align: center;">');
//BW	else
//BW		document.write('<div style="width: 83%; position: absolute; left: 18%; top: 10%; text-align: center;">');
}

function writeBodyDivLeft()
{

//BW	if (screen.width == 800)
		document.write('<div style="width: 78%; position: absolute; left: 177px; top: 5px;">');
//BW	else
//BW		document.write('<div style="width: 83%; position: absolute; left: 18%; top: 10%;">');
}

function mouseoverLink(linkid)
{

	linkid = document.getElementById(linkid);

	linkid.style.color = "#ffffff";

	linkid.style.fontWeight = "bold";

}



function mouseoutLink(linkid)

{

	linkid = document.getElementById(linkid);

	linkid.style.color = "#ffff00";

	linkid.style.fontWeight = "normal";

}



function changeRegSect()

{

	var regSect = new Array()

	regSect[0] = ""

	regSect[1] = "agediv"

	regSect[2] = "refund"

	regSect[3] = "agebrack"

	regSect[4] = "regproc"

	regSect[5] = "regform"



	if (document.regmenu.regchoice.selectedIndex == 0)

		alert("Please select a section")

	else

		location.href = "#" + regSect[document.regmenu.regchoice.selectedIndex]

}



function changeBoysSched()

{

	var boys = new Array()

	boys[0] = ""

	boys[1] = "u8bsched.htm"

	boys[2] = "u10bsched.htm"

	boys[3] = "u12bsched.htm"

	boys[4] = "u14bsched.htm"

	boys[5] = "u16bsched.htm"

	boys[6] = "u19bsched.htm"

	

	if (document.schedmenu.boyssched.selectedIndex == 0)

		alert("Please select a boys' schedule")

	else

		window.open(boys[document.schedmenu.boyssched.selectedIndex], "", "width=500,height=540,left=100,top=20,scrollbars=yes,resizable=yes")

}

	

function changeGirlsSched()

{

	var girls = new Array()

	girls[0] = ""

	girls[1] = "u8gsched.htm"

	girls[2] = "u10gsched.htm"

	girls[3] = "u12gsched.htm"

	girls[4] = "u14gsched.htm"

	girls[5] = "u19gsched.htm"

	

	if (document.schedmenu.girlssched.selectedIndex == 0)

		alert("Please select a girls' schedule")

	else

		window.open(girls[document.schedmenu.girlssched.selectedIndex], "", "width=500,height=540,left=100,top=20,scrollbars=yes,resizable=yes")

}

	

function changeFieldSect()

{

	var fieldSect = new Array()

	fieldSect[0] = ""

	fieldSect[1] = "pracfields"

	fieldSect[2] = "practimes"

	fieldSect[3] = "useoffields"

	fieldSect[4] = "fieldsinOR"



	if (document.fieldmenu.fieldchoice.selectedIndex == 0)

		alert("Please select a section")

	else

		location.href = "#" + fieldSect[document.fieldmenu.fieldchoice.selectedIndex]

}



function changeQASect()

{

	var qaSect = new Array()

	qaSect[0] = ""

	qaSect[1] = "U6"

	qaSect[2] = "U8"

	qaSect[3] = "U10"

	qaSect[4] = "U12"

	qaSect[5] = "U14"

	qaSect[6] = "General"

	

	if (document.qamenu.qaagegrp.selectedIndex == 0)

		alert("Please select an age group")

	else

		location.href = "#" + qaSect[document.qamenu.qaagegrp.selectedIndex]

}



function changeContInfo()

{

	var contInfo = new Array()

	contInfo[0] = ""

	contInfo[1] = "contboard.htm"

	contInfo[4] = "contcoach.htm"
	
	contInfo[2] = "contareadir.htm"

	contInfo[3] = "contwebmaster.htm"

	

	if (document.contmenu.contchoice.selectedIndex == 0)

		alert("Please select a contact info page")

	else		

		window.open(contInfo[document.contmenu.contchoice.selectedIndex], "", "width=600,height=540,left=100,top=20,scrollbars=yes,resizable=yes")

}



function changeRefPage()

{

	var refPage = new Array()

	refPage[0] = ""

	refPage[1] = "r_schedule.htm"

	refPage[2] = "r_procedures.htm"

	refPage[3] = "r_q&a.htm"

	refPage[4] = "r_forms.htm"

	refPage[5] = "r_fields.htm"

	refPage[6] = "r_refs.htm"

	refPage[7] = "r_links.htm"

	

	if (document.refmenu.refchoice.selectedIndex == 0)

		alert("Please select a referee page")

	else		

		location.href = refPage[document.refmenu.refchoice.selectedIndex]

}



function changeEventsSect()

{

	var eventsSect = new Array()

	eventsSect[0] = ""

	eventsSect[1] = "sumcamp"

	eventsSect[2] = "fall"



	if (document.eventsmenu.eventschoice.selectedIndex == 0)

		alert("Please select a section")

	else

		location.href = "#" + eventsSect[document.eventsmenu.eventschoice.selectedIndex]

}