/***********************************************
* AnyLink Vertical Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var aboutMenu=new Array()
aboutMenu[0]='<a href="http://www.aug.edu/student_activities/aboutus.html">Mission Statement</a>'
aboutMenu[1]='<a href="http://www.aug.edu/student_activities/aboutus.html#addies">Staff Email</a>'
aboutMenu[2]='<a href="http://www.aug.edu/student_activities/staffgal.html">Staff Photos</a>'
aboutMenu[3]='<a href="http://www.aug.edu/student_activities/empgal.html">Employee Photos</a>'
aboutMenu[4]='<a href="http://www.aug.edu/student_activities/bizforms.html">Business Forms</a>'

var fyeMenu=new Array()
fyeMenu[0]='<a href="http://www.aug.edu/student_activities/fye.html">About FYE</a>'
fyeMenu[1]='<a href="http://www.aug.edu/student_activities/whyfye.html">Why FYE?</a>'
fyeMenu[2]='<a href="http://www.aug.edu/student_activities/fye_benefits.html">Benefits</a>'
fyeMenu[3]='<a href="http://www.aug.edu/student_activities/fye_apply.html">Application</a>'

var clubMenu=new Array()
clubMenu[0]='<a href="http://www.aug.edu/student_activities/alphalist.html">Alpha List</a>'
clubMenu[1]='<a href="http://www.aug.edu/student_activities/sgapage.html">Student Government</a>'
clubMenu[2]='<a href="http://www.aug.edu/student_activities/clubs_and_organizations.html">Directory</a>'
clubMenu[3]='<a href="http://www.aug.edu/student_activities/forms.html">Forms</a>'
clubMenu[4]='<a href="http://www.aug.edu/student_activities/sacpolicy.html">Policy</a>'

var drugMenu=new Array()
drugMenu[0]='<a href="http://www.aug.edu/student_activities/aa.html">Alcohol & Drug Policy</a>'
drugMenu[1]='<a href="http://www.aug.edu/student_activities/aa.html#help">Helplines</a>'

var greekMenu=new Array()
greekMenu[0]='<a href="http://www.aug.edu/student_activities/fraternities.html">Fraternities</a>'
greekMenu[1]='<a href="http://www.aug.edu/student_activities/sororities.html">Sororities</a>'

var orMenu=new Array()
orMenu[0]='<a href="http://www.aug.edu/student_activities/or_info.html">Information</a>'
orMenu[1]='<a href="https://asutickets.aug.edu/scripts/max/2000/maxshop.exe" target="_blank">Reservation Form</a>'
orMenu[2]='<a href="http://www.aug.edu/student_activities/map.html">Campus Map</a>'
orMenu[3]='<a href="http://www.aug.edu/student_activities/orientationleaders08.html">2008 Orientation Leaders</a>'

var intrMenu=new Array()
intrMenu[0]='<a href="http://www.aug.edu/student_activities/intramurals/intra_main.html">Intramurals Home</a>'
intrMenu[1]='<a href="http://www.aug.edu/student_activities/intramurals/schedule.html">Event Schedule</a>'
intrMenu[2]='<a href="http://www.aug.edu/student_activities/intramurals/event_sign.html">Event Sign-Up</a>'
intrMenu[3]='<a href="http://www.aug.edu/student_activities/intramurals/rules.html">Rules & Regulations</a>'
intrMenu[4]='<a href="http://www.aug.edu/student_activities/docs/standings.pdf">PDF: Current Standings</a>'
intrMenu[5]='<a href="http://www.aug.edu/student_activities/docs/agentroster.pdf">PDF: Free Agent Roster</a>'
intrMenu[6]='<a href="http://www.aug.edu/student_activities/docs/directory.pdf">PDF: Team Directory</a>'
intrMenu[7]='<a href="http://www.aug.edu/student_activities/intramurals/direc_req.html">Directory Requests</a>'
intrMenu[8]='<a href="http://www.aug.edu/student_activities/intramurals/join_req.html">Team Joining Request</a>'
intrMenu[9]='<a href="http://www.aug.edu/student_activities/intramurals/is_forms.html">Required Forms</a>'
intrMenu[10]='<a href="http://www.aug.edu/student_activities/intramurals/intra_pics.html">Photo Gallery</a>'

var servMenu=new Array()
servMenu[0]='<a href="http://www.aug.edu/student_activities/campuspp.html">Campus Posting</a>'
servMenu[1]='<a href="http://www.aug.edu/jagidcards/">JagCard Office</a>'

var fitMenu=new Array()
fitMenu[0]='<a href="http://www.aug.edu/student_activities/fit_poly.html">Policies & Information</a>'
fitMenu[1]='<a href="http://www.aug.edu/student_activities/fit_pics.html">Photo Gallery</a>'

var jabMenu=new Array()
jabMenu[0]='<a href="http://www.aug.edu/student_activities/jabcalendar.html">JAB Calendar</a>'
jabMenu[1]='<a href="http://www.aug.edu/student_activities/docs/jabexecs.pdf" target="_blank">JAB Executives</a>'
jabMenu[2]='<a href="http://www.aug.edu/student_activities/docs/JABApplicationPacket.pdf" target="_blank">JAB Application Packet</a>'

var rezMenu=new Array()
rezMenu[0]='<a href="http://apollo.aug.edu/ressnet/reslist.asp" target="_blank">JSAC Reservations</a>'
rezMenu[1]='<a href="http://www.aug.edu/student_activities/gen_policy.html">General Policies</a>'
rezMenu[2]='<a href="http://www.aug.edu/student_activities/roomplans.html">Room Plans</a>'
rezMenu[3]='<a href="http://www.aug.edu/student_activities/chinafees.html">China Dinnerware</a>'
rezMenu[4]='<a href="http://www.aug.edu/student_activities/Amphitheatre.html">Amphitheatre</a>'

		
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var horizontaloffset=2 //horizontal offset of menu from default location. (0-5 is a good value)

/////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: 160px" 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+5;
}

function getposOffsetY(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=-500
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-obj.offsetWidth < 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 menu up?
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? (position at top of viewable window then)
edgeoffset=dropmenuobj.y
}
}
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=getposOffsetY(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+obj.offsetWidth+horizontaloffset+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"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)
}