/***********************************************
* 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 menu 1 About SU
var menu1=new Array()
menu1[0]='<a href="http://www.salisbury.edu/virtualtour/" target="_parent">Campus Tour</a>'
menu1[1]='<a href="http://www.salisbury.edu/campusmap/" target="_parent">Campus Map</a>'
menu1[2]='<a href="http://www.salisbury.edu/Info/Directions.html" target="_parent">Directions</a>'
menu1[3]='<a href="http://www.salisbury.edu/directories/" target="_parent">Directories (Find People)</a> '
menu1[4]='<a href="http://www.salisbury.edu/Info/mission.html" target="_parent">Mission & Values</a> '
menu1[6]='<a href="http://www.salisbury.edu/newsevents/" target="_parent">Press & Publications</a>'
menu1[7]='<a href="http://www.salisbury.edu/iara/Profile/home.html" target="_parent">SU At-A-Glance</a>'
menu1[8]='<a href="http://www.salisbury.edu/univfund/" target="_parent">Make a Gift</a>'
menu1[9]='<a href="http://www.salisbury.edu/about/">more...</a>'

//Contents for menu 2 Academics
var menu2=new Array()
menu2[0]='<a href="http://www.salisbury.edu/academic/catalog/">Academic Catalog</a>'
menu2[1]='<a href="http://www.salisbury.edu/academic/degrees.html">Academic Programs</a>'
menu2[2]='<a href="http://www.salisbury.edu/advising/">Advising</a>'
menu2[3]='<a href="http://bookstore.salisbury.edu/">Bookstore</a>'
//menu2[4]='<a href="/academic/catalog/">Catalog</a>'
menu2[5]='<a href="http://www.salisbury.edu/academic/minicalendar.html">Calendar Highlights</a>'
menu2[6]='<a href="http://www.salisbury.edu/academic/checklists/">Checklists for Majors & Minors</a>'
menu2[7]='<a href="http://www.salisbury.edu/clp/">Cultural Laureate Program</a>'
menu2[8]='<a href="http://www.salisbury.edu/cstudent/">Current Students</a>'
menu2[9]='<a href="http://www.salisbury.edu/academic/degrees.html">Degree Programs</a>'
menu2[10]='<a href="http://www.salisbury.edu/academic/depts.html">Departments</a>'
menu2[11]='<a href="http://www.salisbury.edu/ncur22/">NCUR 2008</a>'
menu2[12]='<a href="http://www.salisbury.edu/registrar/">Registrar</a>'
menu2[13]='<a href="http://www.salisbury.edu/academic/">more...</a>'

//Contents for menu 3 Administration
var menu3=new Array()
menu3[0]='<a href="http://www.salisbury.edu/admin/prez/">Office of the President</a>'
menu3[1]='<a href="http://www.salisbury.edu/provost/">Office of Academic Affairs</a>'
menu3[2]='<a href="http://www.salisbury.edu/univadv/">Office of University Advancement</a>'
menu3[3]='<a href="http://www.salisbury.edu/foundation/">Salisbury University Foundation</a>'
menu3[4]='<a href="http://www.salisbury.edu/Students/">Office of Student Affairs</a>'
menu3[5]='<a href="http://www.salisbury.edu/admin/bizfin/">Office of Administration & Finance</a>'
menu3[6]='<a href="http://www.salisbury.edu/admin/">more...</a>'

//Contents for menu 4 Admissions
var menu4=new Array()
menu4[0]='<a href="http://www.salisbury.edu/admissions/appinfo/welcome.html">Applicant Info</a>'
menu4[1]='<a href="http://www.salisbury.edu/admissions/applications/welcome.html">Applications</a>'
menu4[2]='<a href="http://www.salisbury.edu/admissions/campuslife/welcome.html">Campus Life</a>'
menu4[3]='<a href="http://www.salisbury.edu/admissions/campusvisits/welcome.html">Campus Visits</a>'
menu4[4]='<a href="http://www.salisbury.edu/admissions/finaid/welcome.html">Financial Aid</a>'
menu4[5]='<a href="http://www.salisbury.edu/Students/ISS/HelpYou/admission.html">International Students</a>'
menu4[6]='<a href="http://www.salisbury.edu/admissions/">more...</a>'

//Contents for menu 5 Athletics
var menu5=new Array()
menu5[0]='<a href="http://www.salisbury.edu/athletics/subpgs/staffdir.asp">Staff Directory</a>'
menu5[1]='<a href="http://www.salisbury.edu/athletics/subpgs/pressreleases.asp">Press Releases</a>'
menu5[2]='<a href="http://www.salisbury.edu/athletics/subpgs/fame.asp">Hall of Fame</a>'
menu5[3]='<a href="http://varsityclub.salisbury.edu/">Varsity Club</a>'
menu5[4]='<a href="http://www.salisbury.edu/Schools/Seidel/physed/ATEP/defaultat.htm">Athletic Training</a>'
menu5[5]='<a href="http://www.salisbury.edu/athletics/subpgs/philosophy.asp">Athletics Philosophy</a>'
menu5[6]='<a href="http://www.salisbury.edu/athletics/subpgs/dirfac.asp">Directions & Facilities</a>'
menu5[7]='<a href="http://www.salisbury.edu/athletics/subpgs/recruit.asp">Recruit Information</a>'
menu5[8]='<a href="http://www.salisbury.edu/athletics/calendar/calendar.asp">Sports Calendar</a>'
menu5[9]='<a href="http://www.salisbury.edu/athletics/">more...</a>'

//Contents for menu 6 Community
var menu6=new Array()
menu6[0]='<a href="http://www.salisbury.edu/academy/">Academy for Leadership in Education</a>'
menu6[1]='<a href="http://beacon.salisbury.edu/">B.E.A.C.O.N.</a>'
menu6[2]='<a href="http://www.conflict-resolution.org/">Center for Conflict Resolution </a>'
menu6[3]='<a href="http://www.salisbury.edu/Community/cpd/">Center for Professional Development</a>'
menu6[4]='<a href="http://www.salisbury.edu/community/seniorgames">Eastern Shore Senior Games</a>'
menu6[5]='<a href="http://www.salisbury.edu/community/esiat/">Eastern Shore Institute for the Advancement of Thinking</a>'
menu6[6]='<a href="http://www.esrgc.org/">The Eastern Shore Regional GIS Cooperative</a>'
menu6[7]='<a href="http://www.salisbury.edu/funday/">Fun Day (Explore SU)</a>'
menu6[8]='<a href="http://www.salisbury.edu/lifelonglearning/">Learn with SU</a>'
menu6[9]='<a href="http://www.salisbury.edu/community/">more...</a>'
/*menu6[10]='<a href="">Lower Shore Child Care Resource Center</a>'
menu6[0]='<a href="">Maryland Summer Center for the Arts</a>'
menu6[0]='<a href="">PAC 14 - Public Access TV</a>'
menu6[0]='<a href="">PACE (Institute for Public Affairs and Civic Engagement)</a>'
menu6[0]='<a href="">Salisbury Symphony Orchestra</a>'
menu6[0]='<a href="">Sea Gull Century</a>'
menu6[0]='<a href="">Shore CAN</a>'
menu6[0]='<a href="">ShoreCorps / PALS</a>'
menu6[0]='<a href="">Small Business Development Center</a>'
menu6[0]='<a href="">Technology Resource Center</a>'
menu6[0]='<a href="">Theatre (Schedule)</a>'
menu6[0]='<a href="">Ward Museum of Wildfowl Art</a>'
menu6[0]='<a href="">Public Radio Delmarva - WSCL / WSDL</a>'*/

//Contents for menu 7 Human Resources
var menu7=new Array()
menu7[0]='<a href="http://www.salisbury.edu/HR/Jobs/default.asp">Jobs @ SU</a>'
menu7[1]='<a href="http://www.salisbury.edu/hr/Benefits.html">Benefits</a>'
menu7[2]='<a href="http://www.salisbury.edu/hr/forms.html">HR Forms</a>'
menu7[3]='<a href="http://www.salisbury.edu/hr/eeo/welcome.html">EEO & Affirmative Action</a>'
menu7[4]='<a href="http://www.salisbury.edu/hr/PolProc.html">Policies & Procedures</a>'
menu7[5]='<a href="http://www.salisbury.edu/hr/">more...</a>'


//Contents for menu 8 Library - updated 3/5/2007
var menu8=new Array()
menu8[0]='<a href="http://catalog.umd.edu/search=advanced&base=ss">Find Books & More</a>'
menu8[1]='<a href="http://www.salisbury.edu/library/databases/">Find Articles & More - On Campus Access</a>'
menu8[2]='<a href="http://researchport.umd.edu/V">Find Articles & More - Off Campus Access</a>'
menu8[3]='<a href="http://catalog.umd.edu/base=ssc">Course Reserves</a>'
menu8[4]='<a href="http://www.salisbury.edu/library/distancelearners/">Distance Learners</a>'
menu8[5]='<a href="http://www.salisbury.edu/library/research/">Research Services</a>'
menu8[6]='<a href="http://www.salisbury.edu/library/guides/">Student Services</a>'
menu8[7]='<a href="http://www.salisbury.edu/library/guides/faculty/">Faculty Services</a>'
menu8[8]='<a href="http://www.salisbury.edu/library/tlr/">Teaching & Learning Resources</a>'
menu8[9]='<a href="http://nabbhistory.salisbury.edu/">Edward H. Nabb Research Center</a>'
menu8[10]='<a href="http://www.salisbury.edu/library/">more...</a>'

/*menu8[0]='<a href="http://catalog.umd.edu/search=advanced&base=ss">Find Books and More</a>'
menu8[1]='<a href="http://www.salisbury.edu/library/databases.html">Find Articles and More - On Campus</a>'
menu8[2]='<a href="http://researchport.umd.edu/V">Find Articles and More - Off Campus</a>'
menu8[3]='<a href="http://www.salisbury.edu//library/guides/community/index.html">Community Services</a>'
menu8[4]='<a href="http://www.salisbury.edu//library/guides/faculty/index.html">Faculty Services</a>'
menu8[5]='<a href="http://www.salisbury.edu//library/services.html">Research Services</a>'
menu8[6]='<a href="http://www.salisbury.edu//library/guides/index.html">Student Services</a>'
//menu8[7]='<a href="http://nabbhistory.salisbury.edu/">Edward H. Nabb Research Center</a>'
menu8[8]='<a href="http://www.salisbury.edu//library/tlr/">Teaching & Learning Resources</a>'
menu8[9]='<a href="http://www.salisbury.edu//library/">more...</a>'
*/
//Contents for menu 9, and so on
var menu9=new Array()
menu9[0]='<a href="http://www2.salisbury.edu/calendars/Program/calendar.asp?id=16">Campus Labs & Hours</a>'
menu9[1]='<a href="http://www.salisbury.edu/helpdesk">Help Desk</a>'
menu9[2]='<a href="http://myclasses.salisbury.edu">My Classes</a>'
//menu9[2]='<a href="http://www.salisbury.edu/camptech/its/">Information Technology Services</a>'
menu9[3]='<a href="http://www.salisbury.edu/helpdesk/documents/quickreference.asp">Quick Reference Guides</a>'
menu9[4]='<a href="http://www.salisbury.edu/camptech/telecom/">Telecommunications</a>'
menu9[5]='<a href="http://www.salisbury.edu/camptech/its/">University Technology Services</a>'
menu9[6]='<a href="http://www.salisbury.edu/webcam/">Web Cam</a>'
menu9[7]='<a href="http://www.salisbury.edu/weboffice/">Web Development</a>'


//Contents for Home page Quicklinks
var menuQ=new Array()
menuQ[0]='<a href="http://www.salisbury.edu/pstudent/" target="_parent">Future Students</a>'
menuQ[1]='<a href="http://www.salisbury.edu/cstudent/" target="_parent">Current Students</a>'
menuQ[2]='<a href="http://www.salisbury.edu/newstudexp/" target="_parent">New & Transfer Students</a>'
menuQ[3]='<a href="http://www.salisbury.edu/parfrnds/" target="_parent">Parents & Friends</a>'
menuQ[4]='<a href="http://www.salisbury.edu/alumni/" target="_parent">Alumni</a>'
menuQ[5]='<a href="http://www.salisbury.edu/facstaff/" target="_parent">Faculty & Staff</a>'
menuQ[6]='<a href="http://www.salisbury.edu/careerservices/employers/" target="_parent">Employers</a>'
menuQ[7]='<a href="http://www.salisbury.edu/commencement/" target="_parent">Commencement</a>'

		
var menuwidth='' //default menu width
var menubgcolor=''  //menu bgcolor
var disappeardelay=300  //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 quicklinks(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