﻿
//Contents for menu (prospective students) 1
var menu1=new Array()
menu1[0]='<a class="box" href="http://www.unm.edu/grad/prospective/stati.html">Degree vs. Non-Degree</a>'
menu1[1]='<a class="box" href="http://www4.unm.edu/grad/main/info/programs.php">Degree Programs</a>'
menu1[2]='<a class="box" href="http://www.unm.edu/grad/admissions/admitcrit.html">Admission Criteria</a>'
menu1[3]='<a class="box" href="http://www.unm.edu/grad/expenses/costs.html">Costs of Attendance</a>'
menu1[4]='<a class="box" href="http://www4.unm.edu/grad/main/deadlines/deadlines.php">Admission Deadlines</a>'
menu1[5]='<a class="box" href="http://www.unm.edu/grad/admissions/admissions.html">Application Instructions</a>'
menu1[6]='<a class="box" href="http://www.unm.edu/grad/forms/forms.html">Applications and Forms</a>'
menu1[7]='<a class="box" href="http://unm.edu/grad/catalog/catatoc.html">Graduate Catalog (Online)</a>'
menu1[8]='<a class="box" href="http://unm.edu/~unmreg/catalog.htm">UNM Catalog (PDF)</a>'
menu1[9]='<a class="box" href="http://www.unm.edu/grad/faq/faq.html">Admission FAQs</a>'
menu1[10]='<a class="box" href="http://www.unm.edu/grad/funding/funding.html">Graduate Funding</a>'
menu1[11]='<a class="box" href="http://www.unm.edu/~sac/policies.html#studentcode">Honor Code</a>'
menu1[12]='<a class="box" href="http://www.ecampustours.com/VirtualTours/Default.aspx?FafsaCode=002663&login=false">Virtual Tours</a>'

//Contents for menu (entering students) 2
var menu2=new Array()
menu2[0]='<a class="box" href="http://www.unm.edu/grad/orientation/orientation.html">Online Orientation</a>'
menu2[1]='<a class="box" href="http://unm.edu/~unmreg">Registration</a>'
menu2[2]='<a class="box" href="http://unm.edu/~bursar/">Fee Payment</a>'
menu2[3]='<a class="box" href="http://unm.edu/~finaid/">Financial Aid</a>'
menu2[4]='<a class="box" href="http://my.unm.edu">Lobo Web</a>'
menu2[5]='<a class="box" href="http://unm.edu/~reshalls/">Housing Move-In</a>'
menu2[6]='<a class="box" href="http://unm.edu/~lobocard/get.html">Lobo Card</a>'
menu2[7]='<a class="box" href="http://pats.unm.edu">Parking</a>'

//Contents for menu (current students) 3
var menu3=new Array()
menu3[0]='<a class="box" href="http://www.unm.edu/grad/awards/awards.html">Awards and Honors</a>'
menu3[1]='<a class="box" href="http://www.unm.edu/grad/ogs_calendar/ogs_calendar.html">Deadlines/Timelines</a>'
menu3[2]='<a class="box" href="http://unm.edu/~sac/policies.html">UNM Pathfinder</a>'
menu3[3]='<a class="box" href="http://www.unm.edu/grad/catalog/catatoc.html">Graduate Catalog</a>'
menu3[4]='<a class="box" href="http://www4.unm.edu/grad/main/info/deptcontacts.php">Graduate Program &nbsp;Advisement</a>'
menu3[5]='<a class="box" href="http://schedule.unm.edu">Schedule and Classes</a>'
menu3[6]='<a class="box" href="http://www.unm.edu/grad/greencard/index.html">Green Cards</a>'
menu3[7]='<a class="box" href="http://www.unm.edu/grad/current/snapmaster.html">Master\'s Snapshot</a>'
menu3[8]='<a class="box" href="http://www.unm.edu/grad/current/snapmfa.html">M.F.A. Snapshot</a>'
menu3[9]='<a class="box" href="http://www.unm.edu/grad/current/snapdoctor.html">Doctoral Snapshot</a>'

//Contents for menu (graduate studies and research) 4
var menu4=new Array()
menu4[0]='<a class="box" href="http://www.unm.edu/grad/programs/programs.html">Graduate Programs</a>'
menu4[1]='<a class="box" href="http://www.unm.edu/grad/faculty/faculty.html">Graduate Faculty/Directors</a>'
menu4[2]='<a class="box" href="http://www.unm.edu/grad/catalog/catatoc.html">Graduate Catalog</a>'
menu4[3]='<a class="box" href="http://www.unm.edu/grad/eforms/policy_changes_rationale_2006.pdf">---2006 Catalog Graduate &nbsp;&nbsp;&nbsp;&nbsp;Policy Changes (PDF)</a>'
menu4[4]='<a class="box" href="http://unm.edu/grad/eforms/petersons_overview_2006.pdf">Peterson\'s &nbsp;Graduate/Professional &nbsp;Program Overview (PDF)</a>'
menu4[5]='<a class="box" href="http://www.unm.edu/grad/research/research.html">Graduate Research Support</a>'
menu4[6]='<a class="box" href="http://www.unm.edu/grad/enroll/enroll.html">Graduate Enrollment</a>'
menu4[7]='<a class="box" href="http://www.unm.edu/grad/rankings/rankings.html">Graduate Program Rankings</a>'
menu4[8]='<a class="box" href="http://www.unm.edu/grad/carnegie/carnegie.html">Carnegie Initiative</a>'
menu4[9]='<a class="box" href="http://www.unm.edu/grad/senate/senate.html">Senate Graduate Committee</a>'

//Contents for menu (ogs updates) 5
var menu5=new Array()
menu5[0]='<a class="box" href="http://www.unm.edu/grad/faculty/acadprogreview.html">Academic Program Review</a>'
menu5[1]='<a class="box" href="http://www.unm.edu/grad/ogs_calendar/ogs_calendar.html">OGS Calendar</a>'
menu5[2]='<a class="box" href="http://www.unm.edu/grad/ogsnet/ogsnet.html">OGSNet</a>'
menu5[3]='<a class="box" href="http://www.unm.edu/grad/senate/senate.html">Senate Graduate & Professional Committee</a>'
menu5[4]='<a class="box" href="http://www.unm.edu/grad/staff/ogsstaff.html">OGS Staff</a>'
menu5[5]='<a class="box" href="https://www4.unm.edu/grad/main/logon.php">OGS Portal</a>'
menu5[6]='<a class="box" href="https://www4.unm.edu/grad/main/faculty/facultyindex.php">Faculty Approvals for Committee Service</a>'
menu5[7]='<a class="box" href="http://www.unm.edu/grad/support/support.html">Support (Banner)</a>'

//Contents for menu (funding resources) 6
var menu6=new Array()
menu6[0]='<a class="box" href="http://www.unm.edu/~finaid/">Financial Aid Office</a>'
menu6[1]='<a class="box" href="http://www.unm.edu/grad/employment/assistantships.html">Assistantships</a>'
menu6[2]='<a class="box" href="http://www.unm.edu/grad/employment/formsasst.html">---Assistantship Forms</a>'
menu6[3]='<a class="box" href="http://www.unm.edu/~shc1/GraduateInsurance.htm">---Student Health Insurance</a>'
menu6[4]='<a class="box" href="http://www.unm.edu/grad/tarc/tarc.html">---Teaching Assistant &nbsp;&nbsp;&nbsp;&nbsp;Resource Center (T.A.R.C.)</a>'
menu6[5]='<a class="box" href="http://www.unm.edu/grad/awards/awards.html">Awards and Honors</a>'
menu6[6]='<a class="box" href="http://www.unm.edu/grad/funding/nonservice.html#Anchor-Fellowship-10420">Fellowships</a>'
menu6[7]='<a class="box" href="http://www.unm.edu/grad/funding/nonservice.html#Anchor-Scholarship-14356">Scholarships</a>'
menu6[8]='<a class="box" href="http://www.unm.edu/grad/funding/nonservice.html#Anchor-Grant-19233">Grants</a>'
menu6[9]='<a class="box" href="http://www.unm.edu/grad/funding/loans.html">Loans</a>'
menu6[10]='<a class="box" href="http://www.unm.edu/grad/funding/searches.html">Web Links to Funding</a>'

//Contents for menu (graduation) 7
var menu7=new Array()
menu7[0]='<a class="box" href="http://www.unm.edu/grad/forms/forms.html#Anchor-Graduatio-44413">Graduation Forms</a>'
menu7[1]='<a class="box" href="http://www.career.unm.edu/students/graduate_workshoplisting.php">Graduation Workshops</a>'
menu7[2]='<a class="box" href="http://www.unm.edu/~commence/whichceremony.html">Commencement</a>'
menu7[3]='<a class="box" href="http://www.unm.edu/grad/honors/honors.html">Honors</a>'

//Contents for menu (support groups) 8
var menu8=new Array()
menu8[0]='<a class="box" href="http://www.unm.edu/grad/agep/agep.html">NM-AGEP</a>'
menu8[1]='<a class="box" href="http://www.unm.edu/grad/pnmgc/pnmgc.html">PNMGC</a>'
menu8[2]='<a class="box" href="http://www.unm.edu/grad/tarc/tarc.html">Teaching Assistant Resource &nbsp;Center (T.A.R.C.)</a>'
menu8[3]='<a class="box" href="http://www.unm.edu/~gpsa">Graduate and Professional &nbsp;Student Association</a>'
menu8[4]='<a class="box" href="http://www.unm.edu/~snags06">Society of Native American &nbsp;Graduate Students</a>'
menu8[5]='<a class="box" href="http://www.unm.edu/grad/current/carsupp.html">Graduate Career Services</a>'
menu8[6]='<a class="box" href="http://www4.unm.edu/grad/main/info/deptcontacts.php">Graduate Program &nbsp;Advisement</a>'
menu8[7]='<a class="box" href="http://www.unm.edu/grad/ndc/ndc.html">Non-Degree Graduate Student &nbsp;Services</a>'
menu8[8]='<a class="box" href="http://www.unm.edu/grad/contact/orgcontacts.html">Organizational Contacts</a>'

//Contents for menu (thesis and dissertation) 9
var menu9=new Array()
menu9[0]='<a class="box" href="http://www4.unm.edu/grad/main/dissertation/dissertation.php">Dissertation Defense &nbsp;Announcements<br></a>'
menu9[1]='<a class="box" href="http://www.unm.edu/grad/manuscripts/manuproblems.html">Common Manuscript &nbsp;Problems</a>'
menu9[2]='<a class="box" href="http://www.unm.edu/grad/manuscripts/manuscripts.html#Anchor-Genera-42845">General Regulations</a>'
menu9[3]='<a class="box" href="http://www.unm.edu/grad/manuscripts/manuscripts.html#Anchor-Preparin-44987">Preparing Your Manuscript</a>'
menu9[4]='<a class="box" href="http://www.unm.edu/grad/manuscripts/manuscripts.html#Anchor-Th-64395">---Front Matter</a>'
menu9[5]='<a class="box" href="http://www.unm.edu/grad/manuscripts/manuscripts.html#Anchor-Th-22292">---Reference Matter</a>'
menu9[6]='<a class="box" href="http://www.unm.edu/grad/manuscripts/manuscripts.html#Anchor-Formattin-42171">---Formatting Aids</a>'
menu9[7]='<a class="box" href="http://www.unm.edu/grad/manuscripts/manutemp.html">---Templates</a>'
menu9[8]='<a class="box" href="http://www.unm.edu/grad/forms/forms.html">OGS Forms</a>'
menu9[9]='<a class="box" href="http://www.unm.edu/grad/forms/forms.html#Anchor-Manuscript-49656">Common Manuscript &nbsp;Problems (Document)</a>'
menu9[10]='<a class="box" href="http://www.unm.edu/grad/manuscripts/gradcheck.html">Graduation Checklist</a>'
menu9[11]='<a class="box" href="http://www.unm.edu/grad/manuscripts/computer_inst.html">Computer Instructions</a>'
menu9[12]='<a class="box" href="http://www.copyright.gov">Copyright Information</a>'

//Contents for menu (announcements) 10
var menu10=new Array()
menu10[0]='<a class="box" href="http://www4.unm.edu/grad/main/dissertation/dissertation.php"><u><center>Dissertation Defense Announcements</center><br></u></a>'
menu10[1]='<a class="box" href="http://www.unm.edu/grad/eforms/policy_changes_rationale_2006.pdf">UPDATE:  2006 Catalog Graduate Policy &nbsp;Changes (PDF Document)</a>'
menu10[2]='<a class="box" href="http://www4.unm.edu/grad/main/workshops/workshops.php"><u><center>Upcoming Workshops</center></u><br></a>'

//Contents for menu (apply now) 11
var menu11=new Array()
menu11[0]='<a class="box" href="http://www.unm.edu/grad/admissions/onlineapps.html">Domestic and Permanent &nbsp;Residents (online application)</a>'
menu11[1]='<a class="box" href="http://www.unm.edu/grad/admissions/paperapps.html">Domestic and Permanent &nbsp;Residents (paper application)</a>'
menu11[2]='<a class="box" href="http://www.unm.edu/grad/ndc/onlineprocessndc.html">Non-Degree Students<br>&nbsp;(online application)</a>'
menu11[3]='<a class="box" href="http://www.unm.edu/grad/ndc/applyprocessndc.html">Non-Degree Students<br>&nbsp;(paper application)</a>'
menu11[4]='<a class="box" href="http://www.unm.edu/preview/na_intlgrad.htm">International Students</a>'

var menuwidth='125px' //default menu width
var menubgcolor='#EEEEEE'  //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=-500
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


/***********************************************
* 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
***********************************************/