/***********************************************
* 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
***********************************************/

//Prospective Students
var menu1=new Array()
menu1[0]='<a href="http://www.centralstate.edu/prospects/admissions/apply.html"><strong>Apply Now</strong></a>'
menu1[1]='<a href="http://www.centralstate.edu/president/">President&rsquo;s Welcome</a>'
menu1[2]='<a href="http://www.centralstate.edu/prospects/admissions/index.html">Undergraduate Admissions</a>'
menu1[3]='<a href="http://www.centralstate.edu/prospects/admissions/post_grad.html?Submit3=Apply+Now">Graduate Admissions</a>'
menu1[4]='<a href="http://www.centralstate.edu/prospects/financial_aid/index.php"> Financial Aid</a>'
menu1[5]='<a href="http://www.centralstate.edu/prospects/tours/index.html"> Campus Tours</a>'
menu1[6]='<a href="http://www.centralstate.edu/prospects/facts.html"> Enrollment Facts</a>'
menu1[7]='<a href="http://www.centralstate.edu/academics/index.html"> Degrees Offered</a>'
menu1[8]='<a href="http://www.centralstate.edu/prospects/orientation/main.html"> New Student Orientation</a>'
menu1[9]='<a href="https://wolf.ces.edu/ssbprd/bwskwpro.P_ChooseProspectType">Request Information</a>'
//menu1[10]='<a href="http://www.centralstate.edu/prospects">... See More</a>'

//Student Affairs
var menu2=new Array()
menu2[0]='<a href="http://studentaffairs.centralstate.edu/details.php?Career-Services-1">Career Services</a>'
menu2[1]='<a href="http://studentaffairs.centralstate.edu/details.php?Counseling-Center-Disabilities-Services-2">Counseling Center/Disability Services</a>'
menu2[2]='<a href="http://studentaffairs.centralstate.edu/details.php?Greek-Affairs-3">Greek Affairs</a>'
menu2[3]='<a href="http://studentaffairs.centralstate.edu/departments_details.php?8-6">Interfaith Campus Ministry</a>'
menu2[4]='<a href="http://studentaffairs.centralstate.edu/departments_details.php?7-13">Intramural Sports</a>'
menu2[5]='<a href="http://studentaffairs.centralstate.edu/departments_details.php?6-7">Residence Life</a>'
menu2[6]='<a href="http://studentaffairs.centralstate.edu/departments_details.php?5-9">Student Activities</a>'
menu2[7]='<a href="http://studentaffairs.centralstate.edu/departments_details.php?4-10">Student Health Services</a>'
menu2[8]='<a href="http://studentaffairs.centralstate.edu/departments_details.php?2-11">Student Leadership &amp; Development</a>'
menu2[9]='<a href="http://studentaffairs.centralstate.edu/departments_details.php?1-12">Student Transportation</a>'

//Athletics
var menu3=new Array()
menu3[0]='<a href="http://www.maraudersports.com">Men&rsquo;s Basketball</a>'
menu3[1]='<a href="http://www.maraudersports.com">Women&rsquo;s Basketball</a>'
menu3[2]='<a href="http://www.maraudersports.com">Football</a>'
menu3[3]='<a href="http://www.maraudersports.com">Golf</a>'
menu3[4]='<a href="http://www.maraudersports.com">Tennis</a>'
menu3[5]='<a href="http://www.maraudersports.com">Track &amp; Field</a>'
menu3[6]='<a href="http://www.maraudersports.com">Women&rsquo;s Volleyball</a>'
menu3[7]='<a href="http://www.maraudersports.com">Cheerleaders</a>'
menu3[8]='<a href="http://www.maraudersports.com">Dance Troupe</a>'
//menu3[9]='<a href="http://www.maraudersports.com">... See More</a>'

//Academics
var menu4=new Array()
menu4[0]='<a href="http://www.centralstate.edu/academics/index.html">University Overview</a>'
menu4[1]='<a href="http://www.centralstate.edu/academics/arts_science/index.html">College of Humanities, Arts and Social Sciences</a>'
menu4[2]='<a href="http://www.centralstate.edu/academics/business/index.html">College of Business</a>'
menu4[3]='<a href="http://www.centralstate.edu/academics/cse/">College of Science and Engineering</a>'
menu4[4]='<a href="http://www.centralstate.edu/academics/education/index.html">College of Education</a>'
menu4[5]='<a href="http://www.centralstate.edu/academics/support/index.html">Academic Support Programs</a>'
menu4[6]='<a href="http://www.centralstate.edu/academics/csuuc/details.php?University-College-2">University College</a>'

//Alumni and Family
var menu5=new Array()
menu5[0]='<a href="">Alumni Relations</a>'

menu5[1]='<a href="http://www.centralstate.edu/family">Annual Fund</a>'
menu5[1]='<a href="http://www.centralstate.edu/family">the CSU Foundation</a>'
menu5[2]='<a href="http://www.centralstate.edu/family">Donate Online</a>'
menu5[3]='<a href="http://www.centralstate.edu/family">Alumni Chapters</a>'
menu5[4]='<a href="http://www.centralstate.edu/family">General Alumni Association</a>'
menu5[5]='<a href="http://www.centralstate.edu/family">Make a Gift Online</a>'
menu5[6]='<a href="http://www.centralstate.edu/family">Mission Statement</a>'
//menu5[7]='<a href="http://www.centralstate.edu/family">... See More</a>'

//Faculty and Staff
var menu6=new Array()
menu6[0]='<a href="https://csumail.ces.edu">Webmail</a>'
menu6[1]='<a href="http://www.centralstate.edu/faculty/index.shtml">Administrative Services</a>'
menu6[2]='<a href="http://www.centralstate.edu/faculty/human_res/index.html">Human Resources</a>'
menu6[3]='<a href="http://www.centralstate.edu/faculty/human_res/jobs.html">Job Postings</a>'
menu6[4]='<a href="http://www.centralstate.edu/faculty/policies/index.html">Policies and Procedures</a>'
menu6[5]='<a href="http://www.centralstate.edu/faculty/SP/">Sponsored Programs & Research</a>'
	

var disappeardelay=1000  //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;
}


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=getposOffset(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)
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
