
if(!linkset) { 	
	var linkset=new Array() 
}

var mlinklead='<div class="menuitems"><a target="_top" href=';
 
 linkset[0]=mlinklead+'"http://www.gaucholocos.com/getLoco/join.html">Join Now!</a></div>'
 linkset[0]+=mlinklead+'"http://www.gaucholocos.com/getLoco/history.html">Loco History</a></div>'
 linkset[0]+=mlinklead+'"http://www.gaucholocos.com/getLoco/toptens.html">Timeless Top Ten</a></div>'
 linkset[0]+=mlinklead+'"http://www.gaucholocos.com/getLoco/contact.html">Contact Us</a></div>'
 
 linkset[1]=mlinklead+'"http://www.gaucholocos.com/events/index.html">Event Calendar</a></div>'
 linkset[1]+=mlinklead+'"http://www.gaucholocos.com/events/prizes.html">Prizes</a></div>'
 
 linkset[2]=mlinklead+'"http://www.gaucholocos.com/media/audio.html">Audio/Video</a></div>'
 linkset[2]+=mlinklead+'"http://www.gaucholocos.com/media/photos.html">Photo Gallery</a></div>'
 
 linkset[3]=mlinklead+'"http://www.gaucholocos.com/spirit/fantom.html">The Fantom</a></div>'
 linkset[3]+=mlinklead+'"http://www.gaucholocos.com/spirit/pep_band.html">Pep Band</a></div>'
 linkset[3]+=mlinklead+'"http://www.gaucholocos.com/spirit/cheer.html">Cheerleading</a></div>'
 linkset[3]+=mlinklead+'"http://www.gaucholocos.com/spirit/dance.html">Dance</a></div>'

 linkset[4]=mlinklead+'"http://www.gaucholocos.com/facilities/thunderdome.html">The Thunderdome</a></div>'
 linkset[4]+=mlinklead+'"http://www.gaucholocos.com/facilities/harder.html">Harder Stadium</a></div>'
 linkset[4]+=mlinklead+'"http://www.gaucholocos.com/facilities/uyesaka.html">Uyesaka Stadium</a></div>'
 linkset[4]+=mlinklead+'"http://www.gaucholocos.com/facilities/pauley.html">Pauley Track</a></div>'
 linkset[4]+=mlinklead+'"http://www.gaucholocos.com/facilities/softball.html">The Softball Field</a></div>'
 linkset[4]+=mlinklead+'"http://www.gaucholocos.com/facilities/campus.html">Campus Pool</a></div>'

 linkset[5]=mlinklead+'"http://www.gaucholocos.com/sponsors/partners.html">Business Partners</a></div>'
 linkset[5]+=mlinklead+'"http://www.gaucholocos.com/sponsors/honorary.html">Honorary Locos</a></div>'

 linkset[6]=mlinklead+'"http://www.gaucholocos.com/locoLounge/airhockey.html">Air Hockey</a></div>'
 linkset[6]+=mlinklead+'"http://www.gaucholocos.com/locoLounge/kaboom.html">Kaboom!</a></div>'
 linkset[6]+=mlinklead+'"http://www.gaucholocos.com/locoLounge/minipool2.html">Mini Pool</a></div>'
 linkset[6]+=mlinklead+'"http://www.gaucholocos.com/locoLounge/memorytrial.html">Memory</a></div>'
 linkset[6]+=mlinklead+'"http://www.gaucholocos.com/locoLounge/cowboys.html">Saloon Shootout</a></div>'
 linkset[6]+=mlinklead+'"http://www.gaucholocos.com/locoLounge/wildwildwest.html">Wild Wild West</a></div>'
 
 var OldBrowser="no";
 if (navigator.appVersion.indexOf("MSIE 4") != -1) {
 	OldBrowser="yes";
 } else if (navigator.appVersion.indexOf("Mac") !=-1) {
 	if(navigator.userAgent.indexOf("MSIE")!=-1) {
 		OldBrowser="yes";
		var MacIE="yes";
 	}
 }
 var ie4=document.all&&navigator.appName.indexOf("Opera")==-1
 //var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1
 var ie4s=ie4&&document.compatMode!="BackCompat"
 var opera=ie4&&navigator.userAgent.indexOf("Opera")!=-1
 var ns6=document.getElementById&&!document.all
 var ns4=document.layers
 
function showmenu(el, e,which,type){
 if (OldBrowser=="no"){
 //Don's additions
 MyWidth=(ie4||ns6)? el.offsetWidth : el.document.gui.document.width
 MyHeight=(ie4||ns6)? el.offsetHeight : el.document.gui.document.height
 MyTop=0;
 MyLeft=0;
 O=el;
 while (O!=document.body && (O.offsetTop!=0 || O.offsetLeft!=0)) {
 	MyTop=MyTop+O.offsetTop;
 	MyLeft=MyLeft+O.offsetLeft;
 	O=O.offsetParent;
 }
 var tBDiv=document.getElementById("topBar");
 var sbDiv=document.getElementById("sidebar");
 if (ie4) {
	MyLeft=type=='top'?MyLeft=MyLeft-sbDiv.offsetWidth:MyLeft;
	if(opera) {
		MyLeft=type=='top'?MyLeft=MyLeft+sbDiv.offsetWidth:MyLeft;
		MyTop=type=='top'?MyTop=MyTop-2:MyTop;
		MyTop=type=='top'?MyTop=MyTop+tBDiv.offsetHeight:MyTop;
	} else {
		MyLeft=type=='top'?MyLeft=MyLeft+2:MyLeft;
	}
 } 
 if (navigator.appVersion.indexOf("Windows 98") != -1){
	if(navigator.appVersion.indexOf("MSIE 6") != -1) {
		MyLeft=type=='top'?MyLeft=MyLeft-sbDiv.offsetWidth:MyLeft;
	} else if(navigator.appVersion.indexOf("MSIE 5") != -1) {
		MyLeft=type=='top'?MyLeft=MyLeft+sbDiv.offsetWidth+sbDiv.offsetWidth:MyLeft;
	}
 } 

 //End Don's additions

 if (!document.all&&!document.getElementById&&!document.layers)
 return
 
 clearhidemenu()
 
 menuobj=ie4? document.all.popmenu : ns6? document.getElementById("popmenu") : ns4? document.popmenu : ""
 menuobj.thestyle=(ie4||ns6)? menuobj.style : menuobj
 
 if (ie4||ns6)
 menuobj.innerHTML=which
 else{
 menuobj.document.write('<layer name=gui bgColor=#09296b color=#ffcc00 width=150 onmouseover="clearhidemenu()" onmouseout="hidemenu()">'+which+'</layer>')
 menuobj.document.close()
 }
 
 menuobj.contentwidth=(ie4||ns6)? menuobj.offsetWidth : menuobj.document.gui.document.width
 menuobj.contentheight=(ie4||ns6)? menuobj.offsetHeight : menuobj.document.gui.document.height
 eventX=ie4? event.clientX : ns6? e.clientX : e.x
 eventY=ie4? event.clientY : ns6? e.clientY : e.y

 // determine edge of window
 if(ie4s) {
	 var rightedge=document.documentElement.clientWidth
	 var bottomedge=document.documentElement.clientHeight
 } else if(ie4) {
	 var rightedge=document.body.clientWidth
	 var bottomedge=document.body.clientHeight
 } else {
	 var rightedge=window.innerWidth
	 var bottomedge=window.innerHeight
 }

 //fix NS6
 if(ns6) {
	if(MyTop<100) {
		MyTop=type=='top'?MyTop=MyTop+tBDiv.offsetHeight-4:MyTop;	
	} 
	if(rightedge<818) {
		MyLeft=type=='top'?MyLeft=MyLeft+sbDiv.offsetWidth-2:MyLeft;
	}
 } else if(MyTop>200) {
	MyTop=type=='top'?MyTop=MyTop-tBDiv.offsetHeight:MyTop;	
 }

 //Find out how close the mouse is to the corner of the window
 var mousefromright=rightedge-eventX
 var mousefrombottom=bottomedge-eventY

 //set position based on type
 if (type=='side') {
 MyLeft=MyLeft+MyWidth;
 } else {
 MyTop=ie4?MyTop+MyHeight:MyTop+MyHeight;
 } 

 //if the horizontal distance isn't enough to accomodate the width of the context menu
 //if (rightedge<(menuobj.contentwidth+MyLeft)) {
 if (mousefromright<menuobj.contentwidth) {
 //move the horizontal position of the menu to the left by it's width
 menuobj.thestyle.left=(type!='side')? MyLeft+MyWidth-menuobj.contentwidth+"px" : MyLeft+"px";
 } else {
 //position the horizontal position of the menu where the mouse was clicked
 menuobj.thestyle.left=MyLeft+"px"
 }
 
 //same concept with the vertical position
 //if (bottomedge<(menuobj.contentheight+MyTop)) {
 if (mousefrombottom<menuobj.contentheight) {
 menuobj.thestyle.top=(type=='side')? MyTop+MyHeight-menuobj.contentheight+"px" : MyTop+"px";
 } else {
 menuobj.thestyle.top=MyTop+"px"
 }
 menuobj.thestyle.visibility="visible"
 return false
 }
}
 //end of show menu
 
 function contains_ns6(a, b) {
 //Determines if 1 element in contained in another- by Brainjar.com
 while (b.parentNode)
 if ((b = b.parentNode) == a)
 return true;
 return false;
 }
 
 function hidemenu(){
if (OldBrowser=="no"){
 if (window.menuobj)
 menuobj.thestyle.visibility=(ie4||ns6)? "hidden" : "hide"
}
 }
 
 function dynamichide(e){
if (OldBrowser=="no"){
 if (ie4&&!menuobj.contains(e.toElement))
 hidemenu()
 else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
 hidemenu()
}
 }
 
 function delayhidemenu(){
if (OldBrowser=="no"){
 if (ie4||ns6||ns4)
 delayhide=setTimeout("hidemenu()",500)
}
 }
 
 function clearhidemenu(){
 if (window.delayhide)
 clearTimeout(delayhide)
 }
 
 function highlightmenu(e,state){
 if (document.all)
 source_el=event.srcElement
 else if (document.getElementById)
 source_el=e.target
 if (source_el.className=="menuitems"){
 source_el.id=(state=="on")? "mouseoverstyle" : ""
 }
 else{
 while(source_el.id!="popmenu"){
 source_el=document.getElementById? source_el.parentNode : source_el.parentElement
 if (source_el.className=="menuitems"){
 source_el.id=(state=="on")? "mouseoverstyle" : ""
 }
 }
 }
 }
 
 if (ie4||ns6)
 document.onclick=hidemenu
 
 
function OpenNW(el,wheight,wwidth) {
if (OldBrowser=="no"){
var winprops = "height="+wheight+",width="+wwidth+",location=yes,scrollbars=yes,menubar=yes,toolbar=yes,status=yes,resizable=yes";
var URL=el.title; 
popup = window.open(URL,"MenuPopup",winprops);
popup.focus();
}
}
 


/*enforces a minimum height on the mainContent*/
function StretchDiv() {
  if (OldBrowser=="no"){
	mcMinHeight="690";
	var MCDiv=document.getElementById("mainContent");
	if(MCDiv.offsetHeight<mcMinHeight) {
		if(ie4) {
			MFDiv=document.getElementById("mcFiller");
			MFDiv.style.height=mcMinHeight-MCDiv.offsetHeight+" px";
		} 
		if(ns6){
			//alert(MCDiv.offsetHeight+"-"+mcMinHeight);
			MFDiv=document.getElementById("mcFiller");
			MFDiv.style.height=mcMinHeight-MCDiv.offsetHeight+" px";
			MCDiv.style.height=mcMinHeight + " px";
			MCDiv.style.minHeight=mcMinHeight + " px";
		}
	}
  }
}
/*enforces a minimum height on the mainContent*/