//Contents for menu 1 - About Us
var menu1=new Array()
menu1[0]='<a href="mission.html">Mission</a>'
menu1[1]='<a href="from-the-principal.html">From the Principal</a>'
menu1[2]='<a href="our-history.html">Our History</a>'
menu1[3]='<a href="faculty.html">SMS Faculty</a>'


//Contents for menu 2 - Parental Information
var menu2=new Array()
menu2[0]='<a href="spotlight.html">SMS Spotlight</a>'
menu2[1]='<a href="blue-angel.html">Blue Angel Society</a>'
menu2[2]='<a href="scrip-information.html">SCRIP Information</a>'
menu2[3]='<a href="pdf/GLSCProductList.pdf">SCRIP Participating Retailers</a>'
menu2[4]='<a href="lunch-menu.html">Lunch Menu</a>'
menu2[5]='<a href="handbook-forms.html">Handbook &amp; Forms</a>'
menu2[6]='<a href="calendar.html">School Calendars</a>'
menu2[7]='<a href="https://app5.renweb.com/ParentsWeb/login.aspx?Dist=STM-TN&amp;Wtype=P&amp;LBanner=N&amp;SC=STM-TN" target="_blank">RENWEB (Parent Log-In)</a>'
menu2[8]='<a href="school-board-minutes.html">School Board Minutes</a>'



//Contents for menu 3 - Athletics
var menu3=new Array()
menu3[0]='<a href="athletics.php">Athletics</a>'
menu3[1]='<a href="sports-program-handbook.html">Sports Program Handbook</a>'
menu3[2]='<a href="booster-club-news.html">SMS Booster Club News</a>'
menu3[3]='<a href="booster-club-bylaws.html">Booster Club Bylaws</a>'
menu3[4]='<a href="sports-calendar.html">Gym Schedule</a>'
menu3[5]='<a href="directions-to-games.html">Directions to Games</a>'
menu3[6]='<a href="corporate-sponsorships.html">Corporate Sponsorships</a>'


//Contents for menu 4 - Admissions
var menu4=new Array()
menu4[0]='<a href="admissions.html">Admissions</a>'
menu4[1]='<a href="pdf/Application.pdf">School Application</a>'
menu4[2]='<a href="pdf/TeacherRecommendation.pdf">Teacher Recommendation</a>'
menu4[3]='<a href="financial-information.html">Financial Information</a>'


//Contents for menu 5 - Development
var menu5=new Array()
menu5[0]='<a href="development.html">Development</a>'
menu5[1]='<a href="pdf/ConnectionNewsletter.pdf">The Connection Newsletter</a>'
menu5[2]='<a href="pdf/OnlineSurvey.pdf" target="_blank">Alum Survey</a>'
menu5[3]='<a href="pdf/ANNUALAPPEALLETTER2008-09.pdf">Opportunities for Giving</a>'
menu5[4]='<a href="pdf/alumforweb.pdf">List of Alum by Year of Graduation</a>'

//Contents for menu 6 - Academics
var menu6=new Array()
menu6[0]='<a href="accreditation.html">Accreditation</a>'
menu6[1]='<a href="curriculum.html">Curriculum</a>'
menu6[2]='<a href="http://www.cdom.org/folders/schools/pages/catholicschools/curriculum.htm" target="_blank">Curriculum Guide of the Diocese of Memphis</a>'
menu6[3]='<a href="yearly-assessment.html">Yearly Assessment Program</a>'
menu6[4]='<a href="facility-information.html">Facility Information</a>'
menu6[5]='<a href="private-music.html">Private Music</a>'
menu6[6]='<a href="extra-curricular.html">Extra-curricular Activites</a>'
menu6[7]='<a href="cia.html">Customized Instruction Advancement</a>'

		
var menubgcolor='#090a44'  //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;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="-500px"
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
