document.write("<div id='PopDiv' class='Popup'><div style='width:100%;height:20px;background-color:#939393;border-bottom:solid 1px #333333;line-height:20px;text-align:right;'>");
document.write("<a href='javascript:void(0);' onclick='javascript:closepopup();' style ='font:normal 10px Tahoma;color:#ffffff;'>Close Window</a>&nbsp;&nbsp;");
document.write("</div><iframe id='PopFrame' src='' width='100%' height='95%' frameborder='0'></iframe></div>");

function openpopup(width,height,url)
{
	document.getElementById ("PopDiv").style.width = width + "px";
	document.getElementById ("PopDiv").style.display = "block";
	document.getElementById ("PopDiv").style.top = (document.documentElement.scrollTop + ((document.documentElement.clientHeight - height) /2 )) + "px";
	document.getElementById ("PopDiv").style.left = ((document.documentElement.clientWidth - (width)) /2 ) + "px";
	document.getElementById ("PopFrame").src = url;
	document.getElementById ("PopFrame").style.width = width + "px";
	document.getElementById ("PopFrame").style.height = height + "px";	
}
function closepopup()
{
    document.getElementById ("PopDiv").style.display = "none";
}

var menu0=new Array()
menu0[0]="<span class='top'></span>"
menu0[1]="<a href='contact.php'>Address & Directions</a>"
menu0[2]="<a href='staff.php'>Staff Directory</a>"
menu0[3]="<a href='sendemail.php'>Send Us an Email</a>"
menu0[4]="<span class='bottom'></span>"
var menu1=new Array()
menu1[0]="<span class='top'></span>"
menu1[1]="<a href='mission.php'>Mission Statement</a>"
menu1[2]="<a href='curriculum.php'>Curriculum</a>"
menu1[3]="<a href='wecare.php'>WE CARE</a>"
menu1[4]="<a href='staff.php'>Meet our Staff</a>"
menu1[5]="<a href='athleticsandclubs.php'>Athletics & Clubs</a>"
menu1[6]="<a href='admissions.php'>Admissions Information</a>"
menu1[7]="<a href='prek.php'>Pre-Kindergarten Program</a>"
menu1[8]="<a href='contact.php'>Contact Us</a>"
menu1[9]="<span class='bottom'></span>"
var menu2=new Array()
menu2[0]="<span class='top'></span>"
menu2[1]="<a href='gallery.php'>Photo Gallery</a>"
menu2[2]="<a href='virtualtour.php'>Virtual Tour</a>"
menu2[3]="<span class='bottom'></span>"
var menu3=new Array()
menu3[0]="<span class='top'></span>"
menu3[1]="<a href='calendars.php'>Yearly Calendar</a>"
menu3[2]="<a href='calendars.php'>Monthy Calendar</a>"
menu3[3]="<a href='calendars.php'>Lunch Menu</a>"
menu3[4]="<a href='newsletter.php'>Newsletter</a>"
menu3[5]="<a href='studentHandbook.php'>Student Handbook</a>"
menu3[6]="<a href='forms.php'>Forms</a>"
menu3[7]="<a href='schoolclosings.php'>School Closings</a>"
menu3[8]="<a href='homework.php'>Homework Portal</a>"
menu3[9]="<a href='http://sis.camdendiocese.org' target='_blank'><img src='images/lock.gif' border='0'/>&nbsp;&nbsp;Churchwerks Login</a>"
menu3[10]="<a href='http://www.flynnohara.com' target='_blank'>Flynn O'Hara Uniforms</a>"
menu3[11]="<a href='links.php'>Useful Links</a>"
menu3[12]="<span class='bottom'></span>"
var menu4=new Array()
menu4[0]="<span class='top'></span>"
menu4[1]="<a href='staff.php'>Staff Directory</a>"
menu4[2]="<a href='http://mail.arcsgalloway.org' target='_blank'><img src='images/mail.gif' border='0'/>&nbsp;&nbsp;Email Login</a>"
menu4[3]="<a href='teacher/index.php' target='_blank'><img src='images/lock.gif' border='0'/>&nbsp;&nbsp;Teacher Admin Portal</a>"
menu4[4]="<a href='http://sis.camdendiocese.org' target='_blank'><img src='images/lock.gif' border='0'/>&nbsp;&nbsp;Churchwerks Login</a>"
menu4[5]="<a href='http://hosted157.renlearn.com/2441504' target='_blank'><img src='images/lock.gif' border='0'/>&nbsp;&nbsp;Accelerated Reader</a>"
menu4[6]="<a href='http://www.kto8.com' target='_blank'><img src='images/lock.gif' border='0'/>&nbsp;&nbsp;K to the 8th</a>"
menu4[7]="<a href='admin/index.php' target='_blank'><img src='images/lock.gif' border='0'/>&nbsp;&nbsp;Administrator Login</a>"
menu4[8]="<span class='bottom'></span>"
var menu5=new Array()
menu5[0]="<span class='top'></span>"
menu5[1]="<a href='pta.php'>Officers & Coordinators</a>"
menu5[2]="<a href='./upload/ptahandbook.pdf'>PTA Handbook</a>"
menu5[3]="<a href='ptaminutes.php'>PTA Meeting Minutes</a>"
menu5[4]="<a href='Donors.php'>Donors</a>"
menu5[5]="<a href='ClipnSave.php'>Clip 'n Save Guide</a>"
menu5[6]="<a href='upload/orderscrip.pdf' target='_blank'>Order Scrip</a>"
menu5[7]="<span class='bottom'></span>"
var menu6=new Array()
menu6[0]="<span class='top'></span>"
menu6[1]="<a href='alumni.php'>Alumni Registration</a>"
menu6[2]="<a href='alumnidirectory.php'>Alumni Directory</a>"
menu6[3]="<span class='bottom'></span>"
var menu7=new Array()
menu7[0]="<span class='top'></span>"
menu7[1]="<a href='board.php'>School Board</a>"
menu7[2]="<span class='bottom'></span>"

var menuwidth="180px" 
var disappeardelay=250
var hidemenu_onclick="yes"
var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write("<div id='dropmenudiv' style='visibility:hidden;width:"+menuwidth+";' 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){
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")-40
dropmenuobj.y=getposOffset(obj, "top")-6
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