<!--

/* The link details */
var links = new Array ("index", "salvation", "desk", "directions", 
	"schedule", "eprayer", "news", "xcursion", "children", "youth", "seniors", "groups", "missions", 
	"music", "nativity", "team", "trips", "vbs", "bulletin", "newsletter");
var links_text = new Array ("Home", "Know God Personally", "From The Pastor's Desk", 
	"How To Get Here", "Weekly Schedule", "ePrayer Chain", "News/Upcoming Events", 
	"Xcursion", "Children's Ministry", "Youth Ministry", "Senior Adult Ministry", "Small Groups", 
	"Mission Groups", "Music Ministry", "Live Nativity", "Team Ministry", "Mission Trips/Events", "Vacation Bible School",
	"This Week's Bulletin", "Monthly Newsletter");
var links_url = new Array ("http://www.laurelhillbaptist.org/", "salvation.htm", "desk.htm", 
	"directions.htm", "schedule.htm", 
	"eprayer.htm", "news.htm", "xcursion.htm", "children.htm", "youth.htm", "seniors.htm", "groups.htm", 
	"missions.htm", "music.htm", "nativity.htm", "team.htm", "trips.htm", "vbs.htm", "bulletin.pdf", "newsletter.pdf");

/* Resolve the location */
var loc=String(this.location);
loc=loc.split("/");
loc=loc[loc.length-1].split(".");
loc=loc[loc.length-2];

/* Menu generating function */
function dyn_menu_gen() {


/* Handle special pages */
	if(loc==null) {
	  loc = "index";
	}
	if(loc=="h4h2008") {
	  loc = "trips";
	}
	if(loc=="jamacia") {
	  loc = "trips";
	}
	if(loc=="dos08") {
	  loc = "trips";
	}
	if(loc=="portsulphur") {
	  loc = "trips";
	}
	if(loc=="longbeach") {
	  loc = "trips";
	}	
	if(loc=="nativity2011") {
	  loc = "nativity";
	}
	if(loc=="nativity2007") {
	  loc = "nativity";
	}
	if(loc=="ycal") {
	  loc = "youth";
	}
	if(loc=="yphotos") {
	  loc = "youth";
	}
	if(loc=="ymfuge2011") {
	  loc = "youth";
	}	
	if(loc=="ymfuge2010") {
	  loc = "youth";
	}
	if(loc=="ymfuge2009") {
	  loc = "youth";
	}	
	if(loc=="ymfuge2008") {
	  loc = "youth";
	}
	if(loc=="yretreat08") {
	  loc = "youth";
	}
	if(loc=="ymfuge2007") {
	  loc = "youth";
	}
	if(loc=="yimpact") {
	  loc = "youth";
	}
	if(loc=="yretreat") {
	  loc = "youth";
	}
	if(loc=="sactivities") {
	  loc = "seniors";
	}


	for(var i=0; i<links_text.length; i++) { 
	
	   if(loc==links[i]) {
	
        	document.write('<div class="cmenu">');
        	document.write('<img align="bottom" width="8" height="8" src="images/circle.png">');
        	document.write('&nbsp;&nbsp;');
        	document.write('<a href="' + links_url[i] + '" class="lcmenu">' + links_text[i] + '</a>');
        	document.write('</div>');       
       
       	    } else {
            
        	document.write('<div class="menu">');
        	document.write('<img align="bottom" width="8" height="8" src="images/circle.png">');
        	document.write('&nbsp;&nbsp;');
        	document.write('<a href="' + links_url[i] + '" class="lmenu">' + links_text[i] + '</a>');
        	document.write('</div>');       
            
           }

/* Write a blank line after the Home button */           
        	if(i==0) {
        		document.write('<br>');
        	}
        }
}

/* Generate the menu */
dyn_menu_gen();

-->
