// left navigation panel JavaScript code
var url = document.location.href;
var dirArray = url.split("/");
//var domain = dirArray[2];
//var maindir = dirArray[3];
//var subdir = dirArray[4];
dirArray.reverse();
var page2 =dirArray[3] + "/" + dirArray[2] + "/" + dirArray[1] + "/" + dirArray[0];
var page = dirArray[1] + "/" + dirArray[0]; 


// SECTION 1: Defining initial state of major items (collapsed panel items)
var primnavbar = '<table cellspacing="0" cellpadding="0" width="99%" class="bg-gray" bgcolor="#999999" border="0" summary="Table used for layout.">'
+'<tbody>'
+'<tr>'
	+'<td class="nav-primary" nowrap>'
		+'<table cellspacing="0" cellpadding="0" border="0">'
	    +'<tr>'
			+'<td nowrap width="10"><img height="23" src="/ap/assurantpreneed/images/pixel_trans.gif" width="10" alt="&nbsp;"></td>'
            +'<td nowrap bgcolor="#e7e7e7" class="nav-primary-on" align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/index.html" class="nav-primary-on">Home</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/aboutus/index.html" class="nav-primary">About Us</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/policyholders/index.html" class="nav-primary">Policyholders</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/funeralplan/index.html" class="nav-primary">Individuals & Families</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/funeralfirms/index.html" class="nav-primary">Funeral Firms</a>&nbsp;&nbsp;&nbsp;</td>'
			+'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/careers/index.html" class="nav-primary">Careers</a>&nbsp;&nbsp;&nbsp;</td>'
			+'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/contactus/index.html" class="nav-primary">Contact Us</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td valign="middle" width="10"><img height="23" src="/ap/assurantpreneed/images/pixel_trans.gif" width="10" alt="&nbsp;"></td>'
		+'</tr>'
        +'</table>'
	+'</td>'
+'</tr>'
+'</tbody>'
+'</table>';


// SECTION 2: Defining what happens when items are selected
switch(page) {

	// About Us
	case "aboutus/index.html":
	case "aboutus/corpgov.html":
	case "aboutus/milestones.html":
	case "aboutus/mission.html":
	case "aboutus/notice.html":
	case "aboutus/privacy.html":
	case "aboutus/sitemap.html":
	var primnavbar = '<table cellspacing="0" cellpadding="0" width="99%" class="bg-gray" bgcolor="#999999" border="0" summary="Table used for layout.">'
+'<tbody>'
+'<tr>'
	+'<td class="nav-primary" nowrap>'
		+'<table cellspacing="0" cellpadding="0" border="0">'
	    +'<tr>'
			+'<td nowrap width="10"><img height="23" src="/ap/assurantpreneed/images/pixel_trans.gif" width="10" alt="&nbsp;"></td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/index.html" class="nav-primary">Home</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap bgcolor="#e7e7e7" class="nav-primary-on" align="center">&nbsp;&nbsp;&nbsp;<a href="index.html" class="nav-primary-on">About Us</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/policyholders/index.html" class="nav-primary">Policyholders</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/funeralplan/index.html" class="nav-primary">Individuals & Families</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/funeralfirms/index.html" class="nav-primary">Funeral Firms</a>&nbsp;&nbsp;&nbsp;</td>'
			+'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/careers/index.html" class="nav-primary">Careers</a>&nbsp;&nbsp;&nbsp;</td>'
			+'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/contactus/index.html" class="nav-primary">Contact Us</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td valign="middle" width="10"><img height="23" src="/ap/assurantpreneed/images/pixel_trans.gif" width="10" alt="&nbsp;"></td>'
		+'</tr>'
        +'</table>'
	+'</td>'
+'</tr>'
+'</tbody>'
+'</table>';
		break;

	// Policyholders
	case "policyholders/index.html":
	case "policyholders/atlanta.html":
	case "policyholders/rapidcity.html":
	var primnavbar = '<table cellspacing="0" cellpadding="0" width="99%" class="bg-gray" bgcolor="#999999" border="0" summary="Table used for layout.">'
+'<tbody>'
+'<tr>'
	+'<td class="nav-primary" nowrap>'
		+'<table cellspacing="0" cellpadding="0" border="0">'
	    +'<tr>'
			+'<td nowrap width="10"><img height="23" src="/ap/assurantpreneed/images/pixel_trans.gif" width="10" alt="&nbsp;"></td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/index.html" class="nav-primary">Home</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/aboutus/index.html" class="nav-primary">About Us</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap bgcolor="#e7e7e7" class="nav-primary-on" align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/policyholders/index.html" class="nav-primary-on">Policyholders</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/funeralplan/index.html" class="nav-primary">Individuals & Families</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/funeralfirms/index.html" class="nav-primary">Funeral Firms</a>&nbsp;&nbsp;&nbsp;</td>'
			+'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/careers/index.html" class="nav-primary">Careers</a>&nbsp;&nbsp;&nbsp;</td>'
			+'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/contactus/index.html" class="nav-primary">Contact Us</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td valign="middle" width="10"><img height="23" src="/ap/assurantpreneed/images/pixel_trans.gif" width="10" alt="&nbsp;"></td>'
		+'</tr>'
        +'</table>'
	+'</td>'
+'</tr>'
+'</tbody>'
+'</table>';
		break;

	// Individuals & Families
	case "funeralplan/index.html":
	case "funeralplan/insurance.html":
	case "funeralplan/benefits.html":
	case "funeralplan/faq.html":
	case "funeralplan/fhlookup.html":
	case "funeralplan/reading.html":
	case "funeralplan/checklist.html":
	case "funeralplan/funeralplan.html":
	case "funeralplan/obituary.html":
	case "funeralplan/requestguide.html":
	case "funeralplan/resources.html":
	case "funeralplan/unique.html":
	case "funeralplan/news/issues/issue5.html":
	case "funeralplan/news/issues/issue6.html":
	case "funeralplan/news/issues/issue7.html":
	var primnavbar = '<table cellspacing="0" cellpadding="0" width="99%" class="bg-gray" bgcolor="#999999" border="0" summary="Table used for layout.">'
+'<tbody>'
+'<tr>'
	+'<td class="nav-primary" nowrap>'
		+'<table cellspacing="0" cellpadding="0" border="0">'
	    +'<tr>'
			+'<td nowrap width="10"><img height="23" src="/ap/assurantpreneed/images/pixel_trans.gif" width="10" alt="&nbsp;"></td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/index.html" class="nav-primary">Home</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/aboutus/index.html" class="nav-primary">About Us</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/policyholders/index.html" class="nav-primary">Policyholders</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap bgcolor="#e7e7e7" class="nav-primary-on" align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/funeralplan/index.html" class="nav-primary-on">Individuals & Families</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/funeralfirms/index.html" class="nav-primary">Funeral Firms</a>&nbsp;&nbsp;&nbsp;</td>'
			+'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/careers/index.html" class="nav-primary">Careers</a>&nbsp;&nbsp;&nbsp;</td>'
			+'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/contactus/index.html" class="nav-primary">Contact Us</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td valign="middle" width="10"><img height="23" src="/ap/assurantpreneed/images/pixel_trans.gif" width="10" alt="&nbsp;"></td>'
		+'</tr>'
        +'</table>'
	+'</td>'
+'</tr>'
+'</tbody>'
+'</table>';
		break;

	// Funeral Firms
	case "funeralfirms/index.html":
	case "funeralfirms/news/issues/issue5.html":
	case "funeralfirms/testimonial/pnville.html":
	case "funeralfirms/becomecustomer.html":
	case "funeralfirms/customerservice.html":
	case "funeralfirms/news.html":
	case "funeralfirms/products.html":
	case "funeralfirms/testimonial.html":
	case "funeralfirms/tools.html":

	
	var primnavbar = '<table cellspacing="0" cellpadding="0" width="99%" class="bg-gray" bgcolor="#999999" border="0" summary="Table used for layout.">'
+'<tbody>'
+'<tr>'
	+'<td class="nav-primary" nowrap>'
		+'<table cellspacing="0" cellpadding="0" border="0">'
	    +'<tr>'
			+'<td nowrap width="10"><img height="23" src="/ap/assurantpreneed/images/pixel_trans.gif" width="10" alt="&nbsp;"></td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/index.html" class="nav-primary">Home</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/aboutus/index.html" class="nav-primary">About Us</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/policyholders/index.html" class="nav-primary">Policyholders</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/funeralplan/index.html" class="nav-primary">Individuals & Families</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap bgcolor="#e7e7e7" class="nav-primary-on" align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/funeralfirms/index.html" class="nav-primary-on">Funeral Firms</a>&nbsp;&nbsp;&nbsp;</td>'
			+'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/careers/index.html" class="nav-primary">Careers</a>&nbsp;&nbsp;&nbsp;</td>'
			+'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/contactus/index.html" class="nav-primary">Contact Us</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td valign="middle" width="10"><img height="23" src="/ap/assurantpreneed/images/pixel_trans.gif" width="10" alt="&nbsp;"></td>'
		+'</tr>'
        +'</table>'
	+'</td>'
+'</tr>'
+'</tbody>'
+'</table>';
		break;

// Careers
case "careers/index.html":
case "careers/agents.html":
case "careers/departments.html":
case "careers/departments.html#acturial":
case "careers/departments.html#canada":
case "careers/departments.html#customer":
case "careers/departments.html#acturial":
case "careers/departments.html#financial":
case "careers/departments.html#hr":
case "careers/departments.html#acturial":
case "careers/departments.html#IT":
case "careers/departments.html#legal":
case "careers/departments.html#marketing":
case "careers/departments.html#operations":
case "careers/departments.html#acturial":
case "careers/departments.html#preneed":
case "careers/departments.html#sales":
case "careers/departments.html#salesops":
case "careers/ga.html":
	var primnavbar = '<table cellspacing="0" cellpadding="0" width="99%" class="bg-gray" bgcolor="#999999" border="0" summary="Table used for layout.">'
+'<tbody>'
+'<tr>'
	+'<td class="nav-primary" nowrap>'
		+'<table cellspacing="0" cellpadding="0" border="0">'
	    +'<tr>'
			+'<td nowrap width="10"><img height="23" src="/ap/assurantpreneed/images/pixel_trans.gif" width="10" alt="&nbsp;"></td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/index.html" class="nav-primary">Home</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/aboutus/index.html" class="nav-primary">About Us</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/policyholders/index.html" class="nav-primary">Policyholders</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/funeralplan/index.html" class="nav-primary">Individuals & Families</a>&nbsp;&nbsp;&nbsp;</td>'
			+'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/funeralfirms/index.html" class="nav-primary">Funeral Firms</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap bgcolor="#e7e7e7" class="nav-primary-on" align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/careers/index.html" class="nav-primary-on">Careers</a>&nbsp;&nbsp;&nbsp;</td>'
			
			+'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/contactus/index.html" class="nav-primary">Contact Us</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td valign="middle" width="10"><img height="23" src="/ap/assurantpreneed/images/pixel_trans.gif" width="10" alt="&nbsp;"></td>'
		+'</tr>'
        +'</table>'
	+'</td>'
+'</tr>'
+'</tbody>'
+'</table>';
		break;

//Contact Us

case "contactus/index.html":
	var primnavbar = '<table cellspacing="0" cellpadding="0" width="99%" class="bg-gray" bgcolor="#999999" border="0" summary="Table used for layout.">'
+'<tbody>'
+'<tr>'
	+'<td class="nav-primary" nowrap>'
		+'<table cellspacing="0" cellpadding="0" border="0">'
	    +'<tr>'
			+'<td nowrap width="10"><img height="23" src="/ap/assurantpreneed/images/pixel_trans.gif" width="10" alt="&nbsp;"></td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/index.html" class="nav-primary">Home</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/aboutus/index.html" class="nav-primary">About Us</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/policyholders/index.html" class="nav-primary">Policyholders</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/funeralplan/index.html" class="nav-primary">Individuals & Families</a>&nbsp;&nbsp;&nbsp;</td>'
			+'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/funeralfirms/index.html" class="nav-primary">Funeral Firms</a>&nbsp;&nbsp;&nbsp;</td>'
			+'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/careers/index.html" class="nav-primary">Careers</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap bgcolor="#e7e7e7" class="nav-primary-on" align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/contactus/index.html" class="nav-primary-on">Contact Us</a>&nbsp;&nbsp;&nbsp;</td>'
			
			
            +'<td valign="middle" width="10"><img height="23" src="/ap/assurantpreneed/images/pixel_trans.gif" width="10" alt="&nbsp;"></td>'
		+'</tr>'
        +'</table>'
	+'</td>'
+'</tr>'
+'</tbody>'
+'</table>';
		break;


}

switch(page2) {



	// Funeral Firms
	case "funeralfirms/news/articles/tradeshowlisting.html":
	case "funeralfirms/news/articles/customersupport.html":
	case "funeralfirms/news/articles/junetips.html":
	case "funeralfirms/news/articles/aftercarebenefits.html":
	case "funeralfirms/news/articles/june05tips.html":
	case "funeralfirms/news/articles/aftercarebenefits.html":
	case "funeralfirms/news/articles/augtips.html":
	case "funeralfirms/news/articles/apr05tips.html":
	case "funeralfirms/news/articles/coaching.html":
	case "funeralfirms/news/articles/customersupport.html":
	case "funeralfirms/news/articles/dectips.html":
	case "funeralfirms/news/articles/directmail.html":
	case "funeralfirms/news/articles/feb05tips.html":
	case "funeralfirms/news/articles/junetips.html":
	case "funeralfirms/news/articles/marketingplan.html":
	case "funeralfirms/news/articles/masterminds.html":
	case "funeralfirms/news/articles/max.html":
	case "funeralfirms/news/articles/niche.html":
	case "funeralfirms/news/articles/octtips.html":
	case "funeralfirms/news/articles/streamline.html":
	case "funeralfirms/news/articles/tradeshowlisting.html":
	case "funeralfirms/news/articles/valentine.html":
	case "funeralfirms/news/articles/wiley.html":
	
	var primnavbar = '<table cellspacing="0" cellpadding="0" width="99%" class="bg-gray" bgcolor="#999999" border="0" summary="Table used for layout.">'
+'<tbody>'
+'<tr>'
	+'<td class="nav-primary" nowrap>'
		+'<table cellspacing="0" cellpadding="0" border="0">'
	    +'<tr>'
			+'<td nowrap width="10"><img height="23" src="/ap/assurantpreneed/images/pixel_trans.gif" width="10" alt="&nbsp;"></td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/index.html" class="nav-primary">Home</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/aboutus/index.html" class="nav-primary">About Us</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/policyholders/index.html" class="nav-primary">Policyholders</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/funeralplan/index.html" class="nav-primary">Individuals & Families</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td nowrap bgcolor="#e7e7e7" class="nav-primary-on" align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/funeralfirms/index.html" class="nav-primary-on">Funeral Firms</a>&nbsp;&nbsp;&nbsp;</td>'
			+'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/careers/index.html" class="nav-primary">Careers</a>&nbsp;&nbsp;&nbsp;</td>'
			+'<td nowrap align="center">&nbsp;&nbsp;&nbsp;<a href="/ap/assurantpreneed/contactus/index.html" class="nav-primary">Contact Us</a>&nbsp;&nbsp;&nbsp;</td>'
            +'<td valign="middle" width="10"><img height="23" src="/ap/assurantpreneed/images/pixel_trans.gif" width="10" alt="&nbsp;"></td>'
		+'</tr>'
        +'</table>'
	+'</td>'
+'</tr>'
+'</tbody>'
+'</table>';
		break;






}





// SECTION 3: Displaying primar nav bar
document.write(primnavbar);


