// DROP DOWN MENU CODE - Version 04.15.2010

// MENU 1 FUTURE STUDENTS

var menu1 = new Array()
menu1[0] = '<a href="/current/advisement.aspx">Advisement and Counseling</a>'
menu1[1] = '<a href="/apply">Apply for Admission</a>'
menu1[2] = '<a href="https://prodokc.okstate.edu/okcp-bin/tsrvweb.exe?&LoginCd=0&WID=W&tserve_tip_write=||WID&tserve_trans_config=mstulog.cfg&tserve_host_code=HostFifteen&tserve_tiphost_code=TipFifteen" target="_blank">Apply Online</a>'
menu1[3] = '<a href="/schedule">Class Schedules</a>'
menu1[4] = '<a href="/counselors">Counselors Corner</a>'
menu1[5] = '<a href="/catalog">Course Catalog</a>'
menu1[6] = '<a href="/academics/degrees.aspx">Degree Programs</a>'
menu1[7] = '<a href="/apply/forms.aspx">Download Applications</a>'
menu1[8] = '<a href="/financialaid">Financial Aid and Scholarships</a>'
menu1[9] = '<a href="/businessservices/lock.aspx">Guaranteed Tuition Lock</a>'
menu1[10] = '<a href="/hispanic">Hispanic Student Services</a>'
menu1[11] = '<a href="/future/enrollment.aspx">Steps to Enrollment</a>'
menu1[12] = '<a href="/disability">Students with Disabilities</a>'
menu1[13] = '<a href="/studentlife">Student Life</a>'
menu1[14] = '<a href="/current/assessment.aspx">Testing and Assessment</a>'
menu1[15] = '<a href="/future/costs.aspx">Tuition & Fees</a>'
menu1[16] = '<a href="/future" style="text-align: right">More<img border="0" src="../images/more_arrow.gif" width="17" height="10" /></a>'

// MENU 2 CURRENT STUDENTS

var menu2 = new Array()
menu2[0] = '<a href="/onlineclassroom/">Online Classroom</a>'
menu2[1] = '<a href="https://prodokc.okstate.edu" target="_blank">My OSU-OKC</a>'
menu2[2] = '<a href="https://prodokc.okstate.edu/okcp-bin/tsrvweb.exe?&WID=W&tserve_tip_write=||WID&tserve_trans_config=astulog.cfg&tserve_host_code=HostFifteen&tserve_tiphost_code=TipFifteen" target="_blank">Get My Class Schedule</a>'
menu2[3] = '<a href="https://prodokc.okstate.edu/okcp-bin/tsrvweb.exe?&WID=W&tserve_tip_write=||WID&ConfigName=rcrssecthp1&ReqNum=1&TransactionSource=H&tserve_trans_config=rclssecttrms2osu.cfg&tserve_host_code=HostFifteen&tserve_tiphost_code=TipFifteen" target="_blank">Check Current Sections</a>'
menu2[4] = '<a href="https://app.it.okstate.edu/okey" target="_blank">O-Key Account Services</a>'
menu2[5] = '<a href="http://mail.okstate.edu" target="_blank">Check My Email</a>'
menu2[6] = '<a href="/directory">Campus Directory</a>'
menu2[7] = '<a href="/businessservices">Business Services</a>'
menu2[8] = '<a href="/financialaid">Financial Aid and Scholarships</a>'
menu2[9] = '<a href="/disability">Students with Disabilities</a>'
menu2[10] = '<a href="/academics/calendar.aspx">Academic Calendar</a>'
menu2[11] = '<a href="/academics/finals.aspx">Final Exam Schedule</a>'
menu2[12] = '<a href="/current/advisement.aspx">Academic Advisement</a>'
menu2[13] = '<a href="/current/assessment.aspx">Testing and Assessment</a>'
menu2[14] = '<a href="/current/transcripts.aspx">Registrar Services</a>'
menu2[15] = '<a href="/servicelearning">Service Learning</a>'
menu2[16] = '<a href="/foodservice">Food Service</a>'
menu2[17] = '<a href="/current" style="text-align: right">More<img border="0" src="../images/more_arrow.gif" width="17" height="10" /></a>'

// MENU 3 ACADEMICS

var menu3 = new Array()
menu3[0] = '<a href="/academics/degrees.aspx">Programs of Study</a>'
menu3[1] = '<a href="/directory/faculty.aspx">Faculty Web Pages</a>'
menu3[2] = '<a href="/agriculture">Agriculture Technologies Division</a>'
menu3[3] = '<a href="/arts">Arts and Sciences Division</a>'
menu3[4] = '<a href="/business">Business Technologies Division</a>'
menu3[5] = '<a href="/health">Health Services Division</a>'
menu3[6] = '<a href="/humanservices">Human Services Division</a>'
menu3[7] = '<a href="/engineering">Science and Engineering Division</a>'
menu3[8] = '<a href="/onlineclassroom">Online Classroom</a>'
menu3[9] = '<a href="/academics/calendar.aspx">Academic Calendar</a>'
menu3[10] = '<a href="/academics/finals.aspx">Final Exam Schedule</a>'
menu3[11] = '<a href="/schedule">Class Schedules</a>'
menu3[12] = '<a href="/catalog">Course Catalog</a>'
menu3[13] = '<a href="/directory">Faculty/Staff Directory</a>'
menu3[14] = '<a href="/studentlearning">Student Learning</a>'
menu3[15] = '<a href="/library">Library Resources</a>'
menu3[16] = '<a href="/servicelearning">Service Learning</a>'
menu3[17] = '<a href="/grants">Grant Administration</a>'
menu3[18] = '<a href="/ptkhonors">Phi Theta Kappa / Honors</a>'
menu3[19] = '<a href="/academics" style="text-align: right">More<img border="0" src="../images/more_arrow.gif" width="17" height="10" /></a>'

// MENU 4 FACULTY & STAFF

var menu4 = new Array()
menu4[0] = '<a href="/directory">Faculty/Staff Directory</a>'
menu4[1] = '<a href="/directory/faculty.aspx">Faculty Web Pages</a>'
menu4[2] = '<a href="http://www4/staffcouncil">Staff Council SharePoint</a>'
menu4[3] = '<a href="http://directory.okstate.edu" target="_blank">OSU System Directory</a>'
menu4[4] = '<a href="/hr">Human Resources</a>'
menu4[5] = '<a href="https://prodhosu.okstate.edu/osuhp-bin/tsrvweb.exe?&WID=W&tserve_tip_write=||WID&tserve_trans_config=emplog.cfg&tserve_host_code=HostTwenty&tserve_tiphost_code=TipTwenty" target="_blank">Web for Employees</a>'
menu4[6] = '<a href="http://mail.osuokc.edu">Check Your OSU-OKC Email</a>'
menu4[7] = '<a href="/onlineclassroom">Online Classroom</a>'
menu4[8] = '<a href="/dsf">Digital Storefront (Printshop)</a>'
menu4[9] = '<a href="http://intranet-apps/spbd">Strategic Planning</a>'
menu4[10] = '<a href="http://intranet-apps/spbd/purchasing.asp">Purchasing Intranet</a>'
menu4[11] = '<a href="/vehicle">Vehicle Request</a>'
menu4[12] = '<a href="/travel">Travel Information</a>'
menu4[13] = '<a href="/foodservice">Food Service</a>'
menu4[14] = '<a href="/tobaccofree">Tobacco-Free Policy</a>'
menu4[15] = '<a href="https://app.it.okstate.edu/okey/">O-Key Account Services</a>'
menu4[16] = '<a href="http://www.it.okstate.edu/mca">FREE Microsoft Software</a>'
menu4[17] = '<a href="http://www.osuokc.edu/faculty-staff/pdf/Faculty%20Handbook%202009-2010.pdf" target="_blank">Faculty Handbook</a>'
menu4[18] = '<a href="http://www.osuokc.edu/faculty-staff/pdf/Adjunct%20Handbook%202009-2010.pdf" target="_blank">Adjunct Faculty Handbook</a>'
menu4[19] = '<a href="http://www.osuokc.edu/hr">Staff Online Handbook</a>'
menu4[20] = '<a href="/studentlearning">Student Learning</a>'
menu4[21] = '<a href="/faculty-staff" style="text-align: right">More<img border="0" src="../images/more_arrow.gif" width="17" height="10" /></a>'

// MENU 5 ALUMNI & FRIENDS

var menu5 = new Array()
menu5[0] = '<a href="http://www.okstatealumni.org/" target="_blank">OSU Alumni Association</a>'
menu5[1] = '<a href="/development">Giving to OSU-Oklahoma City</a>'
menu5[2] = '<a href="http://www.osuf.org" target="_blank">OSU Foundation</a>'
menu5[3] = '<a href="/alumni" style="text-align: right">More<img border="0" src="../images/more_arrow.gif" width="17" height="10" /></a>'

// MENU 6 VISITORS

var menu6 = new Array()

menu6[0] = '<a href="/events">Campus Events Calendar</a>'
menu6[1] = '<a href="/map">Campus Map and Directions</a>'
menu6[2] = '<a href="/security">Campus Security Information</a>'
menu6[3] = '<a href="/jobs">Employment Opportunities</a>'
menu6[4] = '<a href="/farmersmarket">Farmers Market</a>'
menu6[5] = '<a href="/foodservice">Food Service</a>'
menu6[6] = '<a href="/pdt">Precision Driving Training</a>'
menu6[7] = '<a href="/studentcenter">Student Center & Campus Events</a>'
menu6[8] = '<a href="/tec">Technology Education Center</a>'
menu6[9] = '<a href="/visitors" style="text-align: right">More<img border="0" src="../images/more_arrow.gif" width="17" height="10" /></a>'

// MENU 7 OSU SYSTEM

var menu7 = new Array()
menu7[0] = '<a href="https://app.it.okstate.edu/okey" target="_blank">O-Key Account Services</a>'
menu7[1] = '<a href="http://osu.okstate.edu" target="_blank">OSU-Stillwater</a>'
menu7[2] = '<a href="http://www.healthsciences.okstate.edu" target="_blank">OSU-CHS</a>'
menu7[3] = '<a href="http://www.osuit.edu" target="_blank">OSU-Institute Of Technology</a>'
menu7[4] = '<a href="http://www.osu-tulsa.okstate.edu" target="_blank">OSU-Tulsa</a>'
menu7[5] = '<a href="/jobs">Employment Opportunities</a>'
menu7[6] = '<a href="http://www.hireosugrads.com" target="_blank">Hire OSU Grads</a>'
menu7[7] = '<a href="http://www.osuokc.edu/development">Donate to OSU-OKC</a>'
menu7[8] = '<a href="http://www.osuf.org" target="_blank">OSU Foundation</a>'
menu7[9] = '<a href="http://www.okstate.com" target="_blank">OSU Athletics</a>'

// END MENUS

var disappeardelay = 250  //menu disappear speed onMouseout (in miliseconds)
var horizontaloffset = 1 //horizontal offset of menu from default location. (0-5 is a good value)


// DO NOT EDIT BELOW

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) {
            edgeoffset = dropmenuobj.contentmeasure - obj.offsetHeight
            if ((dropmenuobj.y - topedge) < dropmenuobj.contentmeasure)
                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)
}

// END