

/***********************************************
* 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
var menu1=new Array()
menu1[0]='<a href="../about/mission.php" title="Philosophy and Mission">Philosophy & Mission</a>'
menu1[1]=' <a href="../about/history.php" title="History">History</a>'
menu1[2]=' <a href="../about/trusteefaculty.php" title="Faculty and Staff">Faculty and Staff</a>'
menu1[3]=' <a href="../about/inthenews.php" title="In the News">In the News</a>'
menu1[4]=' <a href="../about/campusmap.php" title="Campus Map">Campus Map</a>'

//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="../academics/education.php" title="Value of K-8 Education">Value of K-8 Education</a>'
menu2[1]='<a href="../academics/pre-k.php" title="Pre-Kindergarten">Pre-Kindergarten</a>'

menu2[2]='<a href="../academics/kindergarten.php" title="Kindergarten">Kindergarten</a>'
menu2[3]=' <a href="../academics/grade1.php" title="First Grade">First Grade</a> '
menu2[4]=' <a href="../academics/grade2.php" title="Second Grade">Second Grade</a> '
menu2[5]=' <a href="../academics/grade3.php" title="Third Grade">Third Grade</a> '
menu2[6]=' <a href="../academics/grade4.php" title="Fourth Grade">Fourth Grade</a> '
menu2[7]=' <a href="../academics/grade5.php" title="Fifth Grade">Fifth Grade</a> '
menu2[8]=' <a href="../academics/grade6.php" title="Sixth Grade">Sixth Grade</a> '
menu2[9]=' <a href="../academics/grade7.php" title="Seventh Grade">Seventh Grade</a> '
menu2[10]=' <a href="../academics/grade8.php" title="Eighth Grade">Eighth Grade</a> '
menu2[11]='<a href="../academics/julie.php" title="The Julie Program">The Julie Program</a>'
menu2[12]='<a href="../academics/testscores.php" title="Test Scores">Test Scores</a>'
//menu2[11]='<a href="../Educational%20Program/teacher%20pages/teacher_pages.htm" title="Teacher Pages" target="_blank">Teacher Pages</a>'

var menu3=new Array()
menu3[0]='<a href="../admissions/openhouse.php" title="Open Houses">Open Houses</a>'
menu3[1]='<a href="../admissions/tuitionandfees.php" title="Tuition and Fees">Tuition & Fees</a>'
menu3[2]='<a href="../admissions/financialaid.php" title="Financial Assistance">Financial Assistance</a>'


var menu4=new Array()
menu4[0]='<a href="../students/art.php" title="Art Program">Art Program</a>'
menu4[1]='<a href="../students/language.php" title="Foreign Language Program">Foreign Language Program</a>'
menu4[2]='<a href="../students/mediacenter.php" title="Media Center">Media Center</a>'
menu4[3]='<a href="../students/music.php" title="Music Program">Music Program</a>'


menu4[4]='<a href="../students/physed.php" title="Physical Education">Physical Education</a>'
menu4[5]='<a href="../students/sciencelab.php" title="Science Lab">Science Lab</a>'

menu4[6]='<a href="../students/summerprogram.php" title="Summer Program">Summer Program</a>'
menu4[7]='<a href="../students/technology.php" title="Technology Program">Technology Program</a>'
menu4[8]='<a href="../students/ted.php" title="Trinity Extended Day">Trinity Extended Day</a>'
menu4[9]='<a href="../students/community.php" title="Community Outreach">Community Outreach</a>' 
menu4[10]='<a href="http://www.trinitytigers.org" target="_blank" title="Trinity Tigers">Trinity Tigers</a>' 



var menu5=new Array()
menu5[0]='<a href="../pdf/StudentHandbookWeb.pdf" title="Student Handbook" target="_blank">Student Handbook</a>'
menu5[1]='<a href="../parents/schooluniforms.php" title="School Uniforms">School Uniforms</a>'		
menu5[2]='<a href="../parents/health.php" title="Health Notes">Health Notes</a>'
menu5[3]='<a href="http://www.lunchboxprogram.com/html/index.html" target="_blank" title="You will be leaving this site to go to the LunchBox Program">LunchBox Program</a>'
menu5[4]='<a href="../parents/parents.php" title="Summer Reading Lists">Summer Reading Lists</a>'
menu5[5]='<a href="../parents/parents.php" title="School Supply Lists">School Supply Lists</a>'
menu5[6]='<a href="../parents/volunteer.php" title="School Organizations and Volunteer Opportunities">Volunteer Opportunities</a>' 
menu5[7]='<a href="../parents/weatherpolicy.php" title="School Organizations and Volunteer Opportunities">Weather Policy</a>' 
menu5[8]='<a href="http://www.mystudentsprogress.com/msp" target="_blank" title="You will be leaving this site to go to the Parent Portal">Parent Portal</a>' 
 


 var menu6=new Array()
menu6[0]='<a href="../alumni/newsletter.php" title="Newsletter">Newsletter</a>' 


var menu7=new Array()
menu7[0]='<a href="../support/annualgiving.php" title="Annual Giving">Annual Giving</a>' 
menu7[1]='<a href="../support/fundraising.php" title="Fundraising">Fundraising</a>' 
menu7[2]='<a href="../support/trinityfamily.php" title="Growing the Trinity Family">Growing the Trinity Family</a>'  
//menu7[2]='<a href="../support/trinityfuture.php" title="Securing the Future of Trinity">Securing Trinity&rsquo;s Future</a>' 
//menu7[3]='<a href="../support/donors.php" title="Donor Recognition">Donor Recognition</a>' 
 

    
var menu8=new Array()
menu8[0]='<a href="../contact/directions.php" title="Maps and Directions">Maps & Directions</a>' 
menu8[1]='<a href="../contact/requestinfo.php" title="Request More Information">Request Information</a>' 


var menu9=new Array()
menu9[0]='<a href="calendar/main.php" title="Monthy Calendar">Monthly Calendar</a>'
menu9[1]='<a href="pdf/StudentHandbookWeb.pdf" title="Student Handbook" target="_blank">Student Handbook <i>(pdf)</i></a>'
menu9[2]='<a href="pdf/Application.pdf" target="_blank" title="K-8 Application">K-8 Application <i>(pdf)</i></a> ' 
menu9[3]='<a href="pdf/application_prek.pdf" target="_blank" title="Pre-K Application">Pre-K Application <i>(pdf)</i></a> ' 
menu9[4]='<a href="../parents/health.php" title="Health Forms">Health Forms</a>'    
menu9[5]='<a href="../parents/parents.php" title="School Supplies List">School Supplies List</a>'
menu9[6]='<a href="../parents/schooluniforms.php#uniformlist" title="Uniform List">Uniform List</a>'
menu9[7]='<a href="http://www.mystudentsprogress.com/msp" target="_blank" title="Parent Portal">Parent Portal</a>' 
menu9[8]='<a href="http://webmail.onecommunications.net" target="_blank" title="You will be leaving this site to go to the Web Mail">Web Mail</a>'
var menuwidth='135px' //default menu width
var menubgcolor='#DFDAD4;'  //menu bgcolor
var disappeardelay=400  //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="-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

