//_____________________________________________________________
// buildheader.js 
//
// This script will build the header and menu bar for any file
// which resides in the root directory of the site.
// It will build a dynamic drop-down menu for IE4 and above
// and for Netscape 4, for all other browsers it will serve
// a standard non-DHTML menu
//
// It requires browserdetector.js, dhtmllib.js, and navbar.js
//
// This Javascript file is from PaganParenting.com
// Copyright 2000. 
//
// Last Update December 2003. PaganParenting.com
// Dec 2003 - IE6 update, re-added IE refresh bug to be re-squashed later
//_____________________________________________________________


// begin init function

function init() {
  var img;
  myNavBar.create();
  // Find the position of the embedded image and move bar accordingly, note
  // that we have to adjust for the table's cell padding.
  img = getImage("placeholder");
  myNavBar.moveTo(getImagePageLeft(img) - 2, getImagePageTop(img) - 2);
}

// begin if statement to choose and create DHTML or non-DHTML menu

if (is_win && (is_nav4 || is_ie4up || is_aol) )
//if (is_win && (is_ie4up || is_aol) )
// if you take out the is_nav4 then nothing shows up in pc-netscape4
  {

        // create dhtml menu

var myNavBar = new NavBar(601);
var tempMenu;

myNavBar.setColors("#9F9F9F", "#ffffff", "#000000", "#ffff66", "#CECECE", "#535353", "#CECECE", "#000000", "#F6C55A");
myNavBar.setAlign("center");

myNavBar.setFonts("Verdana, Helvetica", "plain", "plain", "9pt",
    "Arial,Helvetica,VerdanaTimes,Times New Roman", "plain", "plain", "8pt");
myNavBar.setSizes(0,0,1);
tempMenu = new NavBarMenu(0, 0);


tempMenu.addItem(new NavBarMenuItem("<a href='/index.html'><img name='image1' border='0' src='/images/navigation/home_green.gif' alt='Home' width='53' height='20'></a>", "/index.html"));
myNavBar.addMenu(tempMenu);

tempMenu = new NavBarMenu(0, 180);
tempMenu.addItem(new NavBarMenuItem("<a href='/education/index.html'><img name='image2' border='0' src='/images/navigation/education_green.gif' alt='Education' width='82' height='20'></a>", "/education/index.html"));

tempMenu.addItem(new NavBarMenuItem("&nbsp;ARTICLES", "/education/articles.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;ACTIVITY SHEETS", "/education/activitysheets.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;ARTS & CRAFTS", "/education/artscrafts.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;CHANTS & SONGS", "/education/chantssongs.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;READING GUIDE", "/education/readingguide.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;HOMESCHOOLING RESOURCES", "/education/homeschooling.html"));
myNavBar.addMenu(tempMenu);

tempMenu = new NavBarMenu(0, 180);
tempMenu.addItem(new NavBarMenuItem("<a href='/community/index.html'><img name='image3' border='0' src='/images/navigation/community_green.gif' alt='Community' width='150' height='20'></a>", "/community/index.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;PAGANS IN THE NEWS", "/community/index.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;PROJECT PLANNING", "/community/index.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;FUNDRAISING", "/community/index.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;DAYCARE & PLAYGROUPS", "/community/daycare.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;FINDING LOCAL GROUPS", "/community/index.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;ANNOUNCEMENTS", "/community/index.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;MESSAGE BOARDS", "/community/index.html"));
myNavBar.addMenu(tempMenu);

tempMenu = new NavBarMenu(0, 190);
tempMenu.addItem(new NavBarMenuItem("<a href='/family/index.html'><img name='image4' border='0' src='/images/navigation/family_green.gif' alt='Family Life' width='85' height='20'></a>", "/family/index.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;HOLIDAY CELEBRATIONS", "/family/holidaycelebrations.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;RELATIONSHIPS", "/family/index.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;ADVICE COLUMNS", "/family/advicecolumns.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;CAREER CORNER", "/family/index.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;SPIRITUALITY IN THE HOME", "/family/index.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;FOOD & NUTRITION", "/family/food.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;PETS", "/family/index.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;FREEBIES", "/family/index.html"));
myNavBar.addMenu(tempMenu);

tempMenu = new NavBarMenu(0, 180);
tempMenu.addItem(new NavBarMenuItem("<a href='/spirituality/index.html'><img name='image5' border='0' src='/images/navigation/spirituality_green.gif' alt='Spirituality' width='93' height='20'></a>", "/spirituality/index.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;ESSAYS & ARTICLES", "/spirituality/articles.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;EXPLORING FAITHS", "/spirituality/index.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;WORLD RELIGIONS", "/spirituality/index.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;WHEEL OF THE YEAR", "/spirituality/wheeloftheyear.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;RITES OF PASSAGE", "/spirituality/ritesofpassage.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;MAGICK & RITUAL", "/spirituality/magickritual.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;SACRED TEXTS", "/spirituality/sacredtexts.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;ADDITIONAL RESOURCES", "/spirituality/resources.html"));
myNavBar.addMenu(tempMenu);

tempMenu = new NavBarMenu(0, 150);
tempMenu.addItem(new NavBarMenuItem("<a href='/fun/index.html'><img name='image6' border='0' src='/images/navigation/fun_green.gif' width='36' height='20' alt='Fun'></a>", "/fun/index.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;GAMES", "/fun/games.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;STORIES", "/fun/stories.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;COLORING SHEETS", "/fun/index.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;E-CARDS", "/fun/index.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;REVIEWS", "/fun/reviews.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;SHOPPING GUIDE", "/fun/index.html"));
myNavBar.addMenu(tempMenu);


tempMenu = new NavBarMenu(0, 180);
tempMenu.addItem(new NavBarMenuItem("<a href='/preparents/index.html'><img name='image6' border='0' src='/images/navigation/preparents_green.gif' alt='Pre-Parents' width='92' height='20'></a>", "/preparents/index.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;BABY NAME FINDER", "/preparents/index.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;BIRTHING OPTIONS", "/preparents/index.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;RITUALS & WICCANINGS", "/preparents/index.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;PREGNANCY RESOURCES", "/preparents/index.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;SHOPPING GUIDE", "/preparents/index.html"));
myNavBar.addMenu(tempMenu);
	  
tempMenu = new NavBarMenu(0, 180);
tempMenu.addItem(new NavBarMenuItem("<a href='/legal/index.html'><img name='image6' border='0' src='/images/navigation/legal_green.gif' alt='Legal Rights' width='98' height='20'></a>", "/legal/index.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;AS PAGANS, AS PARENTS", "/legal/index.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;IMPORTANCE OF VOTING", "/legal/index.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;CASES & LAWS", "/legal/index.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;DEALING WITH SCHOOLS", "/legal/index.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;ADDITIONAL RESOURCES", "/legal/index.html"));
myNavBar.addMenu(tempMenu);	  
	  

tempMenu = new NavBarMenu(0, 150);
tempMenu.addItem(new NavBarMenuItem("<a href='/contact/index.html'><img name='image6' border='0' src='/images/navigation/contact_green.gif' alt='Contact Us' width='71' height='20'></a>", "/contact/index.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;FEEDBACK", "/contact/feedback.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;WRITE FOR US<br>", "/contact/write.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;ADVERTISE WITH US", "/contact/advertise.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;ABOUT US", "/contact/about.html"));
tempMenu.addItem(new NavBarMenuItem("&nbsp;COPYRIGHT NOTICE", "/contact/copyright.html"));
myNavBar.addMenu(tempMenu);	
	
	  
	  document.write ("</head>")
	  document.write ("<body topmargin=0 leftmargin=0 onload='init()' bgcolor='#FFFFFF'>")
	  document.write ("<div align=left>")
	  document.write ("  <table border=0 cellpadding=0 cellspacing=0 width=760><tr>")
	  document.write ("<td colspan=3><img border=0 src='/images/headers/ppheader.jpg' width=760 height=80></td></tr>")
	  document.write ("<tr><td colspan=3>")
	  document.write ("<img name='placeholder' border=0 src='/images/spacer.gif' width=1 height=17></td></tr></table>")
	
	  	  	
  
  
   
  }

  else
  {

   // create non-dhtml menu
   
   
   // write the start the top of the doc
      document.write ("</head>")
	  document.write ("<body topmargin=0 leftmargin=0 bgcolor='#FFFFFF'>")
	  document.write ("<div align=left>")
	  document.write ("  <table border=0 cellpadding=0 cellspacing=0 width=760><tr>")
	  document.write ("<td colspan=3><img border=0 src='/images/headers/ppheader.jpg' width=760 height=80></td></tr>")
	  document.write ("<tr><td colspan=3>")

	// write the non-dthml menu 
   
   document.write ("<table border=0 cellpadding=0 cellspacing=0><tr>")
   document.write ("<td><a href='/index.html'><img src='/images/navigation/home_green.gif' width=53 height=20 border=0 alt='Home'></a></td>")
   document.write ("<td><a href='/education/index.html'><img src='/images/navigation/education_green.gif' width=82 height=20 border=0 alt='Education'></a></td>")
   document.write ("<td><a href='/community/index.html'><img src='/images/navigation/community_green.gif' width=150 height=20 border=0 alt='Building Community'></a></td>")
   document.write ("<td><a href='/family/index.html'><img src='/images/navigation/family_green.gif' width=85 height=20 border=0 alt='Family Life'></a></td>")
   document.write ("<td><a href='/spirituality/index.html'><img src='/images/navigation/spirituality_green.gif' width=93 height=20 border=0 alt='Spirituality'></a></td>")
   document.write ("<td><a href='/fun/index.html'><img src='/images/navigation/fun_green.gif' width=36 height=20 border=0 alt='Fun'></a></td>")
   document.write ("<td><a href='/preparents/index.html'><img src='/images/navigation/preparents_green.gif' width=92 height=20 border=0 alt='Pre-Parents'></a></td>")
   document.write ("<td><a href='/legal/index.html'><img src='/images/navigation/legal_green.gif' width=98 height=20 border=0 alt='Legal Rights'></a></td>")
   document.write ("<td><a href='/contact/index.html'><img src='/images/navigation/contact_green.gif' width=71 height=20 border=0 alt='Contact Us'></a></td>")
   document.write ("</tr></table>")
			   			   
	  
  }

