/***********************************************
* 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
***********************************************/

var menu1=new Array()
menu1[0]='<a href="/academics/course_offerings.pdf">Course Offerings</a>'
menu1[1]='<a href="/academics/dual_credit_classes.shtml">Dual Credit Courses</a>'
menu1[2]='<a href="/academics/honor_roll.shtml">Honor Roll</a>'
menu1[3]='<a href="/academics/library.shtml">Library</a>'
menu1[4]='<a href="/academics/2009-2010_schedule.pdf">Master Schedule</a>'
menu1[5]='<a href="/academics/principals_newsletter/newsletter_aug08.pdf">Principal Newsletter</a>'
menu1[6]='<a href="/academics/student_of_the_month.shtml">Student of the Month</a>'

var menu2=new Array()
menu2[0]='<a href="/athletics/archery.shtml">Archery</a>'
menu2[1]='<a href="/athletics/baseball/baseball.shtml">Baseball</a>'
menu2[2]='<a href="/athletics/boys_basketball/boys_basketball.shtml">Boys Basketball</a>'
menu2[3]='<a href="/athletics/girls_basketball/girls_basketball.shtml">Girls Basketball</a>'
menu2[4]='<a href="/athletics/cheerleading/cheerleading.shtml">Cheerleading</a>'
menu2[5]='<a href="/faculty/coaching_staff/coaching_staff.shtml">Coaching Staff</a>'
menu2[6]='<a href="/athletics/cross_country/cross_country.shtml">Cross Country</a>'
menu2[7]='<a href="/athletics/football/football_main.shtml">Football</a>'
menu2[8]='<a href="/athletics/golf/golf_main_page.shtml">Golf</a>'
menu2[9]='<a href="/athletics/pom_pons/pom_pons.shtml">Pom Pons</a>'
menu2[10]='<a href="/athletics/softball/softball.shtml">Softball</a>'
menu2[11]='<a href="/athletics/swimming/swimming.shtml">Swimming</a>'
menu2[12]='<a href="/athletics/track/track.shtml">Track</a>'
menu2[13]='<a href="/athletics/volleyball/varsity_volleyball.shtml">Volleyball</a>'
menu2[14]='<a href="/athletics/wrestling/wrestling.shtml">Wrestling</a>'

var menu3=new Array()
menu3[0]='<a href="/faculty/administration/administration.shtml">Administration</a>'
menu3[1]='<a href="/faculty/coaching_staff/coaching_staff.shtml">Coaching Staff</a>'
menu3[2]='<a href="/faculty/teachers/teachers.shtml">Educators</a>'
menu3[3]='<a href="/faculty/pchs_pride_committee.shtml">PCHS Pride Committee</a>'
menu3[4]='<a href="/faculty/board_of_education/school_board.shtml">School Board</a>'
menu3[5]='<a href="/faculty/support_staff/support_staff.shtml">Support Staff</a>'

var menu4=new Array()
menu4[0]='<a href="/guidance/college_info.pdf">College Information</a>'
menu4[1]='<a href="/guidance/requirement_grad.pdf">Graduation Information</a>'
menu4[2]='<a href="/guidance/newsletter_aug_10.pdf">Guidance Newsletter</a>'
menu4[3]='<a href="/guidance/scholarships.shtml">Scholarships</a>'
menu4[4]='<a href="/guidance/testing_schedule.pdf">Testing Information</a>'

var menu5=new Array()
menu5[0]='<a href="/handbook/bell_schedule/bell_schedule.shtml">Bell Schedule</a>'
menu5[1]='<a href="/handbook/closing_information.shtml">Closing Information</a>'
menu5[2]='<a href="/handbook/faqs.shtml">FAQs</a>'
menu5[3]='<a href="/handbook/rules_regulations/10-11handbook.pdf">Rules & Regulations</a>'

var menu6=new Array()
menu6[0]='<a href="/packs/art/art_home.shtml">Art Club</a>'
menu6[1]='<a href="http://web.mac.com/scannedy1/iWeb/scannedy1/Welcome.html">Band</a>'
menu6[2]='<a href="/packs/brat_pack/brat_pack.shtml">BRAT Pack</a>'
menu6[3]='<a href="/packs/class_officers/class_officers.shtml">Class Officers</a>'
menu6[4]='<a href="/packs/fbla/fbla.shtml">FBLA</a>'
menu6[5]='<a href="/packs/fca.shtml">FCA</a>'
menu6[6]='<a href="/packs/fccla/fccla.shtml">FCCLA</a>'
menu6[7]='<a href="/packs/ffa.shtml">FFA</a>'
menu6[8]='<a href="/packs/junior_class_congress/junior_class_congress.shtml">Junior Class Congress</a>'
menu6[9]='<a href="/packs/life_savers/life_savers.shtml">Life Savers</a>'
menu6[10]='<a href="/packs/math_club.shtml">Math Club</a>'
menu6[11]='<a href="/packs/music_makers/music_makers.shtml">Music Makers</a>'
menu6[12]='<a href="/packs/nhs/nhs.shtml">NHS</a>'
menu6[13]='<a href="/packs/nssp/nssp.shtml">NSSP</a>'
menu6[14]='<a href="/packs/panther_bakers/panther_bakers.shtml">Panther Bakers</a>'
menu6[15]='<a href="/packs/pep_club/pep_club.shtml">Pep Club</a>'
menu6[16]='<a href="/packs/scholar_bowl.shtml">Scholar Bowl</a>'
menu6[17]='<a href="/packs/science_club.shtml">Science Club</a>'
menu6[18]='<a href="/packs/spanish_club/spanish_club.shtml">Spanish Club</a>'
menu6[19]='<a href="/packs/student_council/student_council.shtml">Student Council</a>'
menu6[20]='<a href="/packs//wyse_team/wyse_team.shtml">WYSE Team</a>'
menu6[21]='<a href="/packs/yearbook.shtml">Yearbook</a>'

var menu7=new Array()
menu7[0]='<a href="/faculty/board_of_education/school_board.shtml">Board Minutes</a>'
menu7[1]='<a href="/profile/pchs_budget_2008_2009.xls">Budget</a>'
menu7[2]='<a href="/profile/driving_directions.shtml">Driving Directions</a>'
menu7[3]='<a href="/profile/history.shtml">History</a>'
menu7[4]='<a href="http://pchseducationfoundation.com/">PCHS Educational Foundation</a>'
menu7[5]='<a href="/profile/district_report_card_2009.pdf">School Report Card</a>'
menu7[6]='<a href="/profile/tech_plan_2007_2010.pdf">Technology Plan</a>'
menu7[7]='<a href="/profile/web_posting_contracts_2007-2008.pdf">Contracts</a>'
menu7[8]='<a href="/profile/teachers_contract_09.pdf">Teacher Contract</a>'
menu7[9]='<a href="/profile/2009-2010_Salary_Schedule[1].pdf">2009-2010 Salary Schedule</a>'
menu7[10]='<a href="/profile/2010-2011_Salary_Schedule[1].pdf">2010-2011 Salary Schedule</a>'
menu7[11]='<a href="/profile/2011-2012_Salary_Schedule[1].pdf">2011-2012 Salary Schedule</a>'
menu7[12]='<a href="/profile/EC_Salary_Schedule_09-12_6-1-09[1].pdf">Extra Curricular Salary Schedule</a>'
menu7[13]='<a href="/profile/administrative_salary_report_september_2009.pdf">Administrative Salary Report</a>'
var menuwidth='165px' //default menu width
var menubgcolor='#6699CC'  //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="-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
