//Contents for menu 1 - Fitness
var menu1=new Array()
menu1[0]='<a href="fit/index.html">Fitness Homepage</a>'
menu1[1]='<a href="fit/pt.html">Personal Training</a>'
menu1[2]='<a href="fit/gx.html">Group Fitness</a>'
menu1[3]='<a href="fit/bfo.html">Fitness for Beginners</a>'
menu1[4]='<a href="fit/fusion.html">Faculty/Staff Fusion</a>'
menu1[5]='<a href="fit/mt.html">Massage Therapy</a>'
menu1[6]='<a href="fit/wr.html">Fitness Center</a>'
menu1[7]='<a href="fit/lw.html">Weight & Lifestyle Mgnt</a>'
menu1[8]='<a href="fit/fa.html">Fitness Assessment</a>'
menu1[9]='<a href="fit/nutrition.html">Nutrition Services</a>'
menu1[10]='<a href="fit/se.html">Special Events</a>'
menu1[11]='<a href="fit/resources.html">Fitness Resources</a>'
menu1[12]='<a href="at/index.html">Athletic Training</a>'
menu1[13]='<a href="fit/contactus.html">Contact Fitness</a>'
menu1[14]='<a href="fit/biggestLoser/index.html">BIGGEST Loser</a>'

//Contents for menu 2 - Intramurals
var menu2=new Array()
menu2[0]='<a href="im/index.html">Intramural Homepage</a>'
menu2[1]='<a href="im/schofevent.html">IM Events</a>'
menu2[2]='<a href="im/entry.html">Team Entries</a>'
menu2[3]='<a href="im/polandpro.html">Policies & Procedures</a>'
menu2[4]='<a href="im/results.html">Schedules & Results</a>'
menu2[5]='<a href="im/rules.html">Sport Rules</a>'
menu2[6]='<a href="im/extramurals.html">Extramurals</a>'
menu2[7]='<a href="im/photos.html">Recent Photos</a>'
menu2[8]='<a href="im/officials.html">Officials</a>'
menu2[9]='<a href="im/staff.html">Intramural Staff</a>'
menu2[10]='<a href="im/contactus.html">Contact Intramurals</a>'
menu2[11]='<a href="im/faqs.html">FAQs</a>'

//Contents for menu 3 - Club Sports
var menu3=new Array()
menu3[0]='<a href="clubs/index.html">Club Sports Homepage</a>'
menu3[1]='<a href="clubs/club_practice.htm">Club Practice Schedule</a>'
menu3[2]='<a href="clubs/club_forms.html">Club Forms</a>'
menu3[3]='<a href="clubs/forms/clubsporthandbook2006-07.pdf">Club Handbook</a>'
menu3[4]='<a href="clubs/contact.html">Contact Club Sports</a>'
menu3[5]='<a href="clubs/FAQs.html">FAQs</a>'

//Contents for menu 4 - Southern Adventures
var menu4=new Array()
menu4[0]='<a href="southern_adventures/index.html">SA Homepage</a>'
menu4[1]='<a href="southern_adventures/trips.html">Adventure Trips</a>'
menu4[2]='<a href="southern_adventures/cc.html">Challenge Course</a>'
menu4[3]='<a href="southern_adventures/itemandprices.html">Gear Rental</a>'
menu4[4]='<a href="southern_adventures/rental.html">SA Center</a>'
menu4[5]='<a href="southern_adventures/cw.html">Climbing Area</a>'
menu4[6]='<a href="southern_adventures/specialevents.html">Special Events</a>'
menu4[7]='<a href="southern_adventures/sastaff.html">Meet the Staff</a>'
menu4[8]='<a href="southern_adventures/contactus.html">Contact Us</a>'
menu4[9]='<a href="southern_adventures/atfaqs.html">FAQs</a>'

//Contents for menu 5 - Wellness
var menu5=new Array()
menu5[0]='<a href="http://welcome.georgiasouthern.edu/wellness/index.html">Wellness Homepage</a>'
menu5[1]='<a href="http://welcome.georgiasouthern.edu/wellness/what.html">What is Wellness?</a>'
menu5[2]='<a href="http://welcome.georgiasouthern.edu/wellness/constitution.html">Constitution</a>'
menu5[3]='<a href="http://welcome.georgiasouthern.edu/wellness/sevents.html">Special Events</a>'
menu5[4]='<a href="http://welcome.georgiasouthern.edu/wellness/Application.pdf">Advisory Board Application</a>'
menu5[5]='<a href="http://welcome.georgiasouthern.edu/wellness/wellnesslinks.html">Wellness Links</a>'

//Contents for menu 6 - Aquatics
var menu6=new Array()
menu6[0]='<a href="aqua/index.html">Aquatics Homepage</a>'
menu6[1]='<a href="aqua/swimlessons.html">Swim Lessons</a>'
menu6[2]='<a href="aqua/indoor.html">Indoor Pool</a>'
menu6[3]='<a href="aqua/outdoor.html">Outdoor Pool</a>'
menu6[4]='<a href="aqua/rules.html">Pool Rules</a>'
menu6[5]='<a href="aqua/specialevents.html">Special Events</a>'
menu6[6]='<a href="aqua/faqs.html">Pool FAQs</a>'
menu6[7]='<a href="aqua/staff.html">Staff</a>'

//Contents for menu 7 - Facilities
var menu7=new Array()
menu7[0]='<a href="fac/index.html">Facilities Homepage</a>'
menu7[1]='<a href="fac/onlineTour/index.html">Online Tour</a>'
menu7[2]='<a href="fac/reservations.html">Facility Reservations</a>'
menu7[3]='<a href="fac/equipment.html">Equipment Checkout</a>'
		
var menuwidth='165px' //default menu width
var menubgcolor='white'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu

