
var building = new RegExp ("/building/");
var planning = new RegExp ("/planning/");
var gettingstarted = new RegExp ("/gettingstarted/");
var report = new RegExp ("/report/");

var community = new RegExp ("/community/");
var stories = new RegExp ("/stories/");
var submit_stories = new RegExp ("community/submit.html");

var indicators = new RegExp ("/indicators/");
var availability = new RegExp ("/availability/");
var use = new RegExp ("/use/");
var prevention = new RegExp ("/prevention/");
var treatment = new RegExp ("/treatment/");
var criminal = new RegExp ("/criminal/");
var harm = new RegExp ("/harm/");




//Write Homepage Nav Button HTML
if ( building.test(document.URL) == false && community.test(document.URL) == false && indicators.test(document.URL) == false ){

document.writeln ('<tr><td valign="top">');
document.writeln ('<a href="http://indicatorshandbook.org/"><img src="http://indicatorshandbook.org/images/nav/home_on.gif" alt="Home" name="home" width="143" height="21" border="0" id="home"></a>');
document.writeln ('</td></tr>');

}
else {

document.writeln ('<tr><td valign="top">');
document.writeln ('<a href="http://indicatorshandbook.org/" onMouseOver="MM_swapImage(\'home\',\'\',\'http://indicatorshandbook.org/images/nav/home_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="http://indicatorshandbook.org/images/nav/home_off.gif" alt="Home" name="home" width="143" height="21" border="0" id="home"></a>');
document.writeln ('</td></tr>');

}

//Write Building Nav Button
if (building.test(document.URL) == true){

	if (planning.test(document.URL) == false && gettingstarted.test(document.URL) == false && report.test(document.URL) == false) {
		document.writeln ('<tr>');
		document.writeln ('<td valign="top"><a href="http://indicatorshandbook.org/building/"><img src="http://indicatorshandbook.org/images/nav/building_on.gif" alt="Building Your Program" name="building" width="143" height="20" border="0" id="building"></a></td>');
		document.writeln ('</tr>');
		}
	else {
		document.writeln ('<tr>');
		document.writeln ('<td valign="top"><a href="http://indicatorshandbook.org/building/" onMouseOver="MM_swapImage(\'building\',\'\',\'http://indicatorshandbook.org/images/nav/building_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="http://indicatorshandbook.org/images/nav/building_off.gif" alt="Building Your Program" name="building" width="143" height="20" border="0" id="building"></a></td>');
		document.writeln ('</tr>');
	}


	//Write Planning Nav Button
	if (planning.test(document.URL) == true){
	document.writeln ('<tr>');
    document.writeln ('<td valign="top"><a href="http://indicatorshandbook.org/building/planning/"><img src="http://indicatorshandbook.org/images/nav/planning_on.gif" alt="Planning" name="planning" width="143" height="20" border="0" id="planning"></a></td>');
    document.writeln ('</tr>');
	}
	else {
	document.writeln ('<tr>');
    document.writeln ('<td valign="top"><a href="http://indicatorshandbook.org/building/planning/" onMouseOver="MM_swapImage(\'planning\',\'\',\'http://indicatorshandbook.org/images/nav/planning_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="http://indicatorshandbook.org/images/nav/planning_off.gif" alt="Planning" name="planning" width="143" height="20" border="0" id="planning"></a></td>');
    document.writeln ('</tr>');
	}
	
	//Write Getting Started Nav Button
	if (gettingstarted.test(document.URL) == true){
	document.writeln ('<tr>');
    document.writeln ('<td valign="top"><a href="http://indicatorshandbook.org/building/gettingstarted/"><img src="http://indicatorshandbook.org/images/nav/started_on.gif" alt="Getting Started" name="started" width="143" height="20" border="0" id="started"></a></td>');
    document.writeln ('</tr>');
	}
	else {
	document.writeln ('<tr>');
    document.writeln ('<td valign="top"><a href="http://indicatorshandbook.org/building/gettingstarted/" onMouseOver="MM_swapImage(\'started\',\'\',\'http://indicatorshandbook.org/images/nav/started_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="http://indicatorshandbook.org/images/nav/started_off.gif" alt="Getting Started" name="started" width="143" height="20" border="0" id="started"></a></td>');
    document.writeln ('</tr>');
	}
	
	//Write Report Nav Button
	if (report.test(document.URL) == true){
	document.writeln ('<tr>');
    document.writeln ('<td valign="top"><a href="http://indicatorshandbook.org/building/report/"><img src="http://indicatorshandbook.org/images/nav/creating_on.gif" alt="Creating a Report" name="creating" width="143" height="20" border="0" id="creating"></a></td>');
    document.writeln ('</tr>');
	}
	else {
	document.writeln ('<tr>');
    document.writeln ('<td valign="top"><a href="http://indicatorshandbook.org/building/report/" onMouseOver="MM_swapImage(\'creating\',\'\',\'http://indicatorshandbook.org/images/nav/creating_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="http://indicatorshandbook.org/images/nav/creating_off.gif" alt="Creating a Report" name="creating" width="143" height="20" border="0" id="creating"></a></td>');
    document.writeln ('</tr>');
	}
}
else {
document.writeln ('<tr>');
document.writeln ('<td valign="top"><a href="http://indicatorshandbook.org/building/" onMouseOver="MM_swapImage(\'building\',\'\',\'http://indicatorshandbook.org/images/nav/building_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="http://indicatorshandbook.org/images/nav/building_off.gif" alt="Building Your Program" name="building" width="143" height="20" border="0" id="building"></a></td>');
document.writeln ('</tr>');
}

//Write Indicators Nav Button
if (indicators.test(document.URL) == true){


	if (availability.test(document.URL) == false && use.test(document.URL) == false && prevention.test(document.URL) == false && treatment.test(document.URL) == false && harm.test(document.URL) == false && criminal.test(document.URL) == false ){
		document.writeln ('<tr>');
		document.writeln ('<td valign="top"><a href="http://indicatorshandbook.org/indicators/"><img src="http://indicatorshandbook.org/images/nav/indicators_on.gif" alt="Community Indicators" name="indicators" width="143" height="20" border="0" id="indicators"></a></td>');
		document.writeln ('</tr>');
	}
	else {
		document.writeln ('<tr>');
		document.writeln ('<td valign="top"><a href="http://indicatorshandbook.org/indicators/" onMouseOver="MM_swapImage(\'indicators\',\'\',\'http://indicatorshandbook.org/images/nav/indicators_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="http://indicatorshandbook.org/images/nav/indicators_off.gif" alt="Community Indicators" name="indicators" width="143" height="20" border="0" id="indicators"></a></td>');
		document.writeln ('</tr>');
	}

	//Write Availability Nav Button
	if (availability.test(document.URL) == true){
	document.writeln ('<tr>');
    document.writeln ('<td valign="top"><a href="http://indicatorshandbook.org/indicators/availability/"><img src="http://indicatorshandbook.org/images/nav/availability_on.gif" alt="Availability" name="availability" width="143" height="20" border="0" id="availability"></a></td>');
    document.writeln ('</tr>');
	}
	else {
	document.writeln ('<tr>');
    document.writeln ('<td valign="top"><a href="http://indicatorshandbook.org/indicators/availability/" onMouseOver="MM_swapImage(\'availability\',\'\',\'http://indicatorshandbook.org/images/nav/availability_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="http://indicatorshandbook.org/images/nav/availability_off.gif" alt="Availability" name="availability" width="143" height="20" border="0" id="availability"></a></td>');
    document.writeln ('</tr>');
	}
	
	//Write Use Nav Button
	if (use.test(document.URL) == true){
	document.writeln ('<tr>');
    document.writeln ('<td valign="top"><a href="http://indicatorshandbook.org/indicators/use/"><img src="http://indicatorshandbook.org/images/nav/use_on.gif" alt="Use" name="use" width="143" height="20" border="0" id="use"></a></td>');
    document.writeln ('</tr>');
	}
	else {
	document.writeln ('<tr>');
    document.writeln ('<td valign="top"><a href="http://indicatorshandbook.org/indicators/use/" onMouseOver="MM_swapImage(\'use\',\'\',\'http://indicatorshandbook.org/images/nav/use_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="http://indicatorshandbook.org/images/nav/use_off.gif" alt="Use" name="use" width="143" height="20" border="0" id="use"></a></td>');
    document.writeln ('</tr>');
	}
	
	//Write Prevention Nav Button
	if (prevention.test(document.URL) == true){
	document.writeln ('<tr>');
    document.writeln ('<td valign="top"><a href="http://indicatorshandbook.org/indicators/prevention/"><img src="http://indicatorshandbook.org/images/nav/prevention_on.gif" alt="Prevention" name="prevention" width="143" height="20" border="0" id="prevention"></a></td>');
    document.writeln ('</tr>');
	}
	else {
	document.writeln ('<tr>');
    document.writeln ('<td valign="top"><a href="http://indicatorshandbook.org/indicators/prevention/" onMouseOver="MM_swapImage(\'prevention\',\'\',\'http://indicatorshandbook.org/images/nav/prevention_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="http://indicatorshandbook.org/images/nav/prevention_off.gif" alt="Prevention" name="prevention" width="143" height="20" border="0" id="prevention"></a></td>');
    document.writeln ('</tr>');
	}
	
	//Write Treatment Nav Button
	if (treatment.test(document.URL) == true){
	document.writeln ('<tr>');
    document.writeln ('<td valign="top"><a href="http://indicatorshandbook.org/indicators/treatment/"><img src="http://indicatorshandbook.org/images/nav/treatment_on.gif" alt="Treatment" name="treatment" width="143" height="20" border="0" id="treatment"></a></td>');
    document.writeln ('</tr>');
	}
	else {
	document.writeln ('<tr>');
    document.writeln ('<td valign="top"><a href="http://indicatorshandbook.org/indicators/treatment/" onMouseOver="MM_swapImage(\'treatment\',\'\',\'http://indicatorshandbook.org/images/nav/treatment_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="http://indicatorshandbook.org/images/nav/treatment_off.gif" alt="Treatment" name="treatment" width="143" height="20" border="0" id="treatment"></a></td>');
    document.writeln ('</tr>');
	}
	//Write Criminal Nav Button
	if (criminal.test(document.URL) == true){
	document.writeln ('<tr>');
    document.writeln ('<td valign="top"><a href="http://indicatorshandbook.org/indicators/criminal/"><img src="http://indicatorshandbook.org/images/nav/criminal_on.gif" alt="Criminal Justice" name="criminal" width="143" height="20" border="0" id="criminal"></a></td>');
    document.writeln ('</tr>');
	}
	else {
	document.writeln ('<tr>');
    document.writeln ('<td valign="top"><a href="http://indicatorshandbook.org/indicators/criminal/" onMouseOver="MM_swapImage(\'criminal\',\'\',\'http://indicatorshandbook.org/images/nav/criminal_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="http://indicatorshandbook.org/images/nav/criminal_off.gif" alt="Criminal Justice" name="criminal" width="143" height="20" border="0" id="criminal"></a></td>');
    document.writeln ('</tr>');
	}
	
	//Write Harm Nav Button
	if (harm.test(document.URL) == true){
	document.writeln ('<tr>');
    document.writeln ('<td valign="top"><a href="http://indicatorshandbook.org/indicators/harm/"><img src="http://indicatorshandbook.org/images/nav/harm_on.gif" alt="Harm" name="harm" width="143" height="20" border="0" id="harm"></a></td>');
    document.writeln ('</tr>');
	}
	else {
	document.writeln ('<tr>');
    document.writeln ('<td valign="top"><a href="http://indicatorshandbook.org/indicators/harm/" onMouseOver="MM_swapImage(\'harm\',\'\',\'http://indicatorshandbook.org/images/nav/harm_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="http://indicatorshandbook.org/images/nav/harm_off.gif" alt="Harm" name="harm" width="143" height="20" border="0" id="harm"></a></td>');
    document.writeln ('</tr>');
	}
	
	

}
else {
document.writeln ('<tr>');
document.writeln ('<td valign="top"><a href="http://indicatorshandbook.org/indicators/" onMouseOver="MM_swapImage(\'indicators\',\'\',\'http://indicatorshandbook.org/images/nav/indicators_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="http://indicatorshandbook.org/images/nav/indicators_off.gif" alt="Community Indicators" name="indicators" width="143" height="20" border="0" id="indicators"></a></td>');
document.writeln ('</tr>');
}

//Write Community Nav Button
if (community.test(document.URL) == true){

	if ( stories.test(document.URL) == false && submit_stories.test(document.URL) == false){
		document.writeln ('<tr>');
		document.writeln ('<td valign="top"><a href="http://indicatorshandbook.org/community/"><img src="http://indicatorshandbook.org/images/nav/community_on.gif" alt="Community Stories" name="community" width="143" height="20" border="0" id="community"></a></td>');
		document.writeln ('</tr>');
	}
	else {
		document.writeln ('<tr>');
		document.writeln ('<td valign="top"><a href="http://indicatorshandbook.org/community/" onMouseOver="MM_swapImage(\'community\',\'\',\'http://indicatorshandbook.org/images/nav/community_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="http://indicatorshandbook.org/images/nav/community_off.gif" alt="Community Stories" name="community" width="143" height="20" border="0" id="community"></a></td>');
		document.writeln ('</tr>');
	}

	//Write Stories Nav Button
	if (stories.test(document.URL) == true){
	document.writeln ('<tr>');
    document.writeln ('<td valign="top"><a href="http://indicatorshandbook.org/community/stories/"><img src="http://indicatorshandbook.org/images/nav/stories_on.gif" alt="Stories" name="stories" width="143" height="20" border="0" id="stories"></a></td>');
    document.writeln ('</tr>');
	}
	else {  
	document.writeln ('<tr>');
    document.writeln ('<td valign="top"><a href="http://indicatorshandbook.org/community/stories/" onMouseOver="MM_swapImage(\'stories\',\'\',\'http://indicatorshandbook.org/images/nav/stories_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="http://indicatorshandbook.org/images/nav/stories_off.gif" alt="Stories" name="stories" width="143" height="20" border="0" id="stories"></a></td>');
    document.writeln ('</tr>');
	}

	//Write Submit Stories Nav Button
	if (submit_stories.test(document.URL) == true){
	document.writeln ('<tr>');
    document.writeln ('<td valign="top"><a href="http://indicatorshandbook.org/community/submit.html"><img src="http://indicatorshandbook.org/images/nav/submit_on.gif" alt="Submit a Story" name="submit" width="143" height="20" border="0" id="submit"></a></td>');
    document.writeln ('</tr>');
	}
	else {  
	document.writeln ('<tr>');
    document.writeln ('<td valign="top"><a href="http://indicatorshandbook.org/community/submit.html" onMouseOver="MM_swapImage(\'submit\',\'\',\'http://indicatorshandbook.org/images/nav/submit_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="http://indicatorshandbook.org/images/nav/submit_off.gif" alt="Submit a Story" name="submit" width="143" height="20" border="0" id="submit"></a></td>');
    document.writeln ('</tr>');
	}

}
else {
document.writeln ('<tr>');
document.writeln ('<td valign="top"><a href="http://indicatorshandbook.org/community/" onMouseOver="MM_swapImage(\'community\',\'\',\'http://indicatorshandbook.org/images/nav/community_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="http://indicatorshandbook.org/images/nav/community_off.gif" alt="Community Stories" name="community" width="143" height="20" border="0" id="community"></a></td>');
document.writeln ('</tr>');
}