
  //Link[nr] = "position [0 is menu/1 is item],Link name,url,target (blank|top|frame_name),0 is no drop down 1 drop down"

  var Link = new Array();

  Link[0] = "0|Home|index.html||0";
  Link[1] = "0|Competition Rules|rules.html||1";
  Link[2] = "1|General Rules|rules_GR.html||0";
  Link[3] = "1|General Knowledge|rules_GK.html||0";
  Link[4] = "1|Gillespie Trophy|rules_GT.html||0";
  Link[5] = "1|Safety|rules_S.html||0";
  Link[6] = "1|Bible Knowledge|rules_BK.html||0"
  Link[7] = "1|Football|rules_F.html||1";
  Link[8] = "1|Figure Marching|rules_FM.html||0";
  Link[9] = "1|Rose Bowl|rules_RB.html||0";
  Link[10] = "0|This Years Competitions|competitions.html||1";
  Link[11] = "1|General Knowledge|comps_GK.html||0";
  Link[12] = "1|Safety|comps_S.html||0";
  Link[13] = "1|Football|comps_F.html||0";  
  Link[14] = "1|Gillespie Trophy|comps_GT.html||0";
  Link[15] = "1|Bible Knowledge|comps_BK.html||0";
  Link[16] = "1|Figure Marching|comps_FM.html||0";
  Link[17] = "1|Rose Bowl|comps_RB.html||0";
  Link[18] = "0|Past Winners|winners.html||1";
  Link[19] = "1|General Knowledge|winners_GK.html||0";
  Link[20] = "1|Gillespie Trophy|winners_GT.html||0";
  Link[21] = "1|Safety|winners_S.html||0";
  Link[22] = "1|Bible Knowledge|winners_BK.html||0";
  Link[23] = "1|Football|winners_F.html||0";
  Link[24] = "1|Figure Marching|winners_FM.html||0";
  Link[25] = "1|Rose Bowl|winners_RB.html||0";
  Link[26] = "1|Overall Efficiency|winners_OE.html||0";
  Link[27] = "1|Superstars|winners_SS.html||0";
  Link[28] = "0|Contact Us|contact.html||0";

var bgc = "#699DD8" // background color of the item
var tc = "#FFFFFF" // text color of the item
  
var over_bgc = "#699DD8";
var over_tc = "#E69";

if (document.getElementById){ //DynamicDrive.com change
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}


function SwitchMenu(obj){
if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
	if(el.style.display != "block"){ //DynamicDrive.com change
		//for (var i=0; i<ar.length; i++){
		//	if (ar[i].className=="submenu") //DynamicDrive.com change
		//	ar[i].style.display = "none";
		//	}
		el.style.display = "block";
		}else{
		el.style.display = "none";
		}
		}
		}

function color(obj)
{
 document.getElementById(obj).style.backgroundColor = over_bgc;
 document.getElementById(obj).style.color = over_tc;
}

function uncolor(obj)
{
 document.getElementById(obj).style.backgroundColor = bgc;
 document.getElementById(obj).style.color = tc;
}

function startup(id)
{
var icon = ""
var first_loop = 0
var item_num = 1
document.write('<div class="menu" id="masterdiv">')

 for(i=0;i<Link.length;i++)
  {
   la = Link[i].split("|");

	if(la[0] == "0")
	{
		if(first_loop == "1")
		{
		document.write('</span>');
		first_loop=0;
		}

		if(la[4] == "0")
			{
   			document.write('<div class="menutitle" id="title' + item_num + '"> ' + icon + ' <a href="'+ la[2] +'">' + la[1] + '</a></div>')
			item_num++
			}
		if(la[4] == "1")
			{
			document.write('<div class="menutitle" id="title' + item_num + '" onmouseover="color(this.id)" onmouseout="uncolor(this.id)">' + icon + '<a href="'+ la[2] +'">' + la[1] + '</a></div>')
			document.write('<span class="submenu" id="sub' + item_num + '">');
			item_num++
			first_loop=1;
			}
	}   
	else
	{ 	
		document.write('<a href="'+ la[2] +'">' + la[1] + '</a><br>')	;		
	}
  }
 document.write('</div>')

 if(id != '0')
 document.getElementById('sub' + id +'').style.display="block"
}