/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for Welcome menu
var sideMenu1=new Array()
sideMenu1[0]='<a href="http://humanities.owu.edu/pdfs/20070210-TheClassicistsOfOhioWesleyanUniversity.pdf" target="_blank">History of Classics at OWU (PDF*)</a>'

//Contents for Courses menu
var sideMenu2=new Array()
sideMenu2[0]='<a href="http://humanities.owu.edu/courses.html">All Humanities-Classics Courses</a>'
sideMenu2[1]='<a href="http://catalog.owu.edu/pdfs/20092010Catalog.pdf#page=153" target="_blank">OWU Catalog Listing (PDF*)</a>'
sideMenu2[2]='<a href="http://humanities.owu.edu/pdfs/fallSpringCourseBrochure.pdf" target="_blank">Fall/Spring Course Brochure (PDF*)</a>'
sideMenu2[3]='<a href="http://humanities.owu.edu/syllabi.html">Syllabi</a>'
sideMenu2[4]='<a href="https://admin.owu.edu/cgi-bin/public/OWcrsschd.cgi">OWU Class Schedule</a>'

//Contents for Major / Minor Requirement menu
var sideMenu3=new Array()
sideMenu3[0]='<a href="http://humanities.owu.edu/theMajorInHumanitiesClassics.html">The Major in Humanities-Classics</a>'
sideMenu3[1]='<a href="http://humanities.owu.edu/theMajorInClassics.html">The Major in Classics (Ancient Greek, Latin, or Both)</a>'
sideMenu3[2]='<a href="http://humanities.owu.edu/theHumanitiesMinor.html">The Humanities Minor</a>'
sideMenu3[3]='<a href="http://humanities.owu.edu/theClassicsMinor.html">The Classics Minor</a>'

//Contents for How-To Guides menu
var sideMenu4=new Array()
sideMenu4[0]='<a href="http://humanities.owu.edu/declareAMajorMinor.html">Declare a Major/Minor</a>'
sideMenu4[1]='<a href="http://humanities.owu.edu/applyForADepartmentPrizeAward.html">Apply for a Department Prize/Award</a>'
sideMenu4[2]='<a href="http://humanities.owu.edu/exemptFromTheLanguageRequirement_Latin.html">Exempt from the Language Requirement (Latin)</a>'
sideMenu4[3]='<a href="http://humanities.owu.edu/graduateWithDepartmentHonors.html">Graduate with Department Honors</a>'
sideMenu4[4]='<a href="http://humanities.owu.edu/transferCredit.html">Transfer Credit</a>'

//Contents for News and Events menu
var sideMenu5=new Array()
//sideMenu5[0]='<a href="http://humanities.owu.edu/readings.html">Readings</a>'
//sideMenu5[1]='<a href="http://humanities.owu.edu/newsletters.html">Newsletters</a>'
//sideMenu5[2]='<a href="http://humanities.owu.edu/departmentEventCalendar.html">Department Event Calendar</a>'
sideMenu5[0]='<a href="http://humanities.owu.edu/historicEvents.html">Historic Events</a>'
sideMenu5[1]='<a href="http://humanities.owu.edu/photoGallery.html">Photo Gallery</a>'

//Contents for Prizes and Awards menu
var sideMenu6=new Array()
sideMenu6[0]='<a href="http://humanities.owu.edu/theDwightRobinsonPrize.html">The Dwight Robinson Prize</a>'
sideMenu6[1]='<a href="http://humanities.owu.edu/theHerbstPrize.html">The Herbst Prize</a>'

//Contents for Resources / Links menu
var sideMenu7=new Array()
sideMenu7[0]='<a href="http://humanities.owu.edu/pdfs/20081104-MajorMinorInformationSheet.pdf" target="_blank">Major/Minor Information Sheet (PDF*)</a>'
sideMenu7[1]='<a href="http://humanities.owu.edu/advisingForms.html">Advising Forms</a>'

//Contents for Alumni menu
var sideMenu8=new Array()
sideMenu8[0]='<a href="http://humanities.owu.edu/newsCenter.html">News Center</a>'
sideMenu8[1]='<a href="http://humanities.owu.edu/data/alumniForm.php">Alumni Form</a>'
		
var menuwidth='165px' //default menu width
var menubgcolor='#000000'  //menu bgcolor
var disappeardelay=400  //menu disappear speed onMouseout (in miliseconds)
var hidemenu2_onclick="yes" //hide menu when user clicks within menu?
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="sidemenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+';opacity:.90;filter: alpha(opacity=90);" onMouseover="clearhidemenu2()" onMouseout="dynamichide2(event)"></div>')

function getposOffset2(what, offsettype){
var totaloffset2=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl2=what.offsetParent;
while (parentEl2!=null){
totaloffset2=(offsettype=="left")? totaloffset2+parentEl2.offsetLeft : totaloffset2+parentEl2.offsetTop;
parentEl2=parentEl2.offsetParent;
}
return totaloffset2;
}


function showhide2(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj2.style.left=dropmenuobj2.style.top="-500px"
if (menuwidth!=""){
dropmenuobj2.widthobj=dropmenuobj2.style
dropmenuobj2.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 iecompattest2(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge2(obj, whichedge){
var edgeoffset2=0
if (whichedge=="rightedge"){
var windowedge2=ie4 && !window.opera? iecompattest2().scrollLeft+iecompattest2().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj2.contentmeasure=dropmenuobj2.offsetWidth
if (windowedge2-dropmenuobj2.x-obj.offsetWidth < dropmenuobj2.contentmeasure)
edgeoffset2=dropmenuobj2.contentmeasure+obj.offsetWidth
}
else{
var topedge2=ie4 && !window.opera? iecompattest2().scrollTop : window.pageYOffset
var windowedge2=ie4 && !window.opera? iecompattest2().scrollTop+iecompattest2().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj2.contentmeasure=dropmenuobj2.offsetHeight
if (windowedge2-dropmenuobj2.y < dropmenuobj2.contentmeasure){ //move menu up?
edgeoffset2=dropmenuobj2.contentmeasure-obj.offsetHeight
if ((dropmenuobj2.y-topedge2)<dropmenuobj2.contentmeasure) //up no good either? (position at top of viewable window then)
edgeoffset2=dropmenuobj2.y
}
}
return edgeoffset2
}

function populatemenu2(what){
if (ie4||ns6)
dropmenuobj2.innerHTML=what.join("")
}


function dropdownmenu2(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu2()
dropmenuobj2=document.getElementById? document.getElementById("sidemenudiv") : sidemenudiv
populatemenu2(menucontents)

if (ie4||ns6){
showhide2(dropmenuobj2.style, e, "visible", "hidden", menuwidth)
dropmenuobj2.x=getposOffset2(obj, "left")
dropmenuobj2.y=getposOffset2(obj, "top")
dropmenuobj2.style.left=dropmenuobj2.x-clearbrowseredge2(obj, "rightedge")+obj.offsetWidth+horizontaloffset+"px"
dropmenuobj2.style.top=dropmenuobj2.y-clearbrowseredge2(obj, "bottomedge")+"px"
}

return clickreturnvalue2()
}

function clickreturnvalue2(){
if (ie4||ns6) return false
else return true
}

function contains_ns62(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide2(e){
if (ie4&&!dropmenuobj2.contains(e.toElement))
delayhidemenu2()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns62(e.currentTarget, e.relatedTarget))
delayhidemenu2()
}

function hidemenu2(e){
if (typeof dropmenuobj2!="undefined"){
if (ie4||ns6)
dropmenuobj2.style.visibility="hidden"
}
}

function delayhidemenu2(){
if (ie4||ns6)
delayhide2=setTimeout("hidemenu2()",disappeardelay)
}

function clearhidemenu2(){
if (typeof delayhide2!="undefined")
clearTimeout(delayhide2)
}

if (hidemenu2_onclick=="yes")
document.onclick=hidemenu2