function printLeft()

{
document.write("<p class='adpink'><b>mailing list</b><br><br>Join our mailing list to keep up to date with the latest Moms Plus news!<form action='http://annmariethomas.com/cgi-bin/subscribe.pl' method='POST'><table border='0' class='adpink'><tbody><tr><td><center><font size='-2' face='verdana, arial, helvetica'><b>Please join the Westwildwood<br>Jewelry <br>mailing list by adding your e-mail address in the box below.</b></font><br><input type='TEXT' size='10' name='email'></center><input type='RADIO' name='subscribe' value='subscribe' checked align='TOP'><font size='-2' face='verdana, arial, helvetica'>subscribe</font><br><input type='RADIO' name='subscribe' value='unsubscribe' align='TOP'><font size='-2' face='verdana, arial, helvetica'>unsubscribe</font><br><center><input type='SUBMIT' value='  Submit  ' name='SUBMIT'></center></td></tr></tbody></table></form>");
}

function printLinks() 

{
document.write("<div align='right'>");
document.write("&nbsp;&nbsp;&nbsp;<a href='index.htm'><font size='-2'>about us</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"); 
document.write("<a href='ourlogo.htm'><font size='-2'>our logo</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"); 
document.write("<a href='members.htm' class='down'><font size='-2'>members</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"); 
document.write("<a href='schedule.htm' class='down'><font size='-2'>schedule</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
document.write("<a href='bookclub.htm' class='down'><font size='-2'>book club</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
document.write("<a href='contactus.htm' class='down'><font size='-2'>contact us</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"); 
document.write("<a href='links.htm' class='down'><font size='-2'>links</font></a>&nbsp;&nbsp;&nbsp;"); 
document.write("</div>");
} 

function printLinksDown() 

{
document.write("<div align='center'><br>");
document.write("<p class='copyright'><font size='-2'>© Copyright 2006-2009 Westwildwood, Inc. - <a href='http://www.westwildwood.com' target='_blank'>www.westwildwood.com</a> - All rights reserved. <br> Please direct any questions or comments about this web site <a href='mailto:westwildwood@gmail.com'><font size='-2'>here</font></a>. Web design by Westwildwood, Inc. </p></font>");
document.write("</div>");


}

//Navigation bar drop down menu

//Contents for menu 1
//var menu1=new Array()

//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="http://www.dopm.org/mission.htm" class="up2">Mission</a><br>'
//menu2[1]='<a href="http://www.dopm.org/inspiration.htm" class="up2">Inspiration</a><br>'
menu2[2]='<a href="http://www.dopm.org/photos.htm" class="up2">Photos</a><br>'
//menu2[3]='<a href="http://www.dopm.org/faq.htm" class="up2">FAQ</a><br>'
menu2[4]='<a href="http://www.dopm.org/aboutus.htm#logo" class="up2">Our logo</a><br>'
menu2[5]='<a href="http://www.dopm.org/sitemap.htm" class="up2">Site map</a><br>'

//Contents for menu 3, and so on
var menu3=new Array()
menu3[0]='<a href="http://www.dopm.org/guest/addguest.html" class="up2">Help line</a><br>'
menu3[1]='<a href="http://www.dopm.org/links.htm#affiliates" class="up2">Affiliate links</a><br>'
menu3[2]='<a href="http://www.dopm.org/links.htm#othersites" class="up2">Other helpful links</a><br>'
menu3[3]='<a href="http://www.dopm.org/links.htm#parish" class="up2">Parish links</a><br>'
menu3[4]='<a href="http://www.dopm.org/assessment.htm" class="up2">Parish assessment</a><br>'
menu3[5]='<a href="http://www.dopm.org/otherdocs/Loan_Close_Directory.doc" class="up2">Lending closet</a><br>'
menu3[6]='<a href="http://www.dopm.org/goodsandservices.htm" class="up2">Goods and services</a><br>'
menu3[7]='<a href="http://www.dopm.org/otherdocs/disabilityprimer.doc" class="up2">Disability primer</a><br>'



//Contents for menu 4, and so on
var menu4=new Array()
menu4[0]='<a href="http://www.dopm.org/news.htm#pope" class="up2">Pope\'s message</a><br>'
menu4[1]='<a href="http://www.dopm.org/news.htm#cardinal" class="up2">Cardinal\'s statement</a><br>'
menu4[2]='<a href="http://www.dopm.org/news.htm#stmatthew" class="up2">Mass at St. Matthew</a><br>'
menu4[3]='<a href="http://www.dopm.org/upcomingevents.htm" class="up2">Upcoming events</a><br>'
//menu4[2]='<a href="http://www.dopm.org/press.htm" class="up2">Press</a><br>'
//menu4[3]='<a href="http://www.dopm.org/newsletter.htm" class="up2">Newsletter</a><br>'

//Contents for menu 5, and so on
var menu5=new Array()
//menu5[0]='<a href="http://www.dopm.org/participate.htm" class="up2">Participate in our ministry</a><br>'
menu5[1]='<a href="http://www.dopm.org/helpwanted.htm" class="up2">Help wanted</a><br>'

//Contents for menu 6, and so on
var menu6=new Array()
menu6[0]='<a href="http://www.dopm.org/guest/addguest.html" class="up2">Help line</a><br>'

	
var menuwidth='80px' //default menu width
var menubgcolor='#9999cc'  //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=-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 windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
}
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
