<!--  
//Set variables
var arrFormHide; //used for temporarily hiding form elements that appear underneath a navigation menu
//detect user's browser and OS and set global scripting variables
agt=navigator.userAgent.toLowerCase();
ie=(document.all) ? 1:0
ie4=(agt.indexOf('msie 4')!=-1) ? 1:0
ie5=(agt.indexOf('msie 5')!=-1) ? 1:0
ie6=(agt.indexOf('msie 6')!=-1) ? 1:0
ie7=(agt.indexOf('msie 7')!=-1) ? 1:0
ie8=(agt.indexOf('msie 8')!=-1) ? 1:0
ff=(agt.indexOf('firefox')!=-1) ? 1:0
saf=(agt.indexOf('safari')!=-1) ? 1:0
ns4=(document.layers && parseInt(navigator.appVersion)>=4) ? 1:0
win=( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) )
mac=(agt.indexOf("mac")!=-1);
imgs=(document.images) ? 1:0
ie=(ie5||ie6||ie7||ie8)?1:0
ns=(ns4||ff||saf)?1:0
timeoout=1
keep=-1

//Create layers for top navigation menus
droplayer=new Array()
droplayer[0]="Layer00"
droplayer[1]="Layer11"
droplayer[2]="Layer22"
droplayer[3]="Layer33"

yylayer=new Array()
yylayer[0]="Layer0"
yylayer[1]="Layer1"
yylayer[2]="Layer2"
yylayer[3]="Layer3" 

topNavDiv=new Array()
topNavDiv[0]="nav0"
topNavDiv[1]="nav1"
topNavDiv[2]="nav2"
topNavDiv[3]="nav3" 


//Detect user's current page address
var sPath = window.location.pathname;
if (sPath.lastIndexOf('/') == 0) {
	var thePage = sPath.substring(sPath.lastIndexOf('\\') + 1);
}else{
	var thePage = sPath.substring(sPath.lastIndexOf('/') + 1);	
}

var thePageName = thePage.replace(".html","");
var thePageName = thePageName.replace("/","");
var thePage = thePage.replace("/","");

//Pass variables through URL
	var p = parseGetVars();
	if (isNaN(p['pid']) == true){
		var thePageNo = parseInt(0);
	}else if (p['pid'] == "undefined"){
		var thePageNo = parseInt(0);
	}else if (parseInt(p['pid']) < 0	){
		var thePageNo = parseInt(1);
	}else{
		var thePageNo = parseInt(p['pid']);
	}
function parseGetVars() {
var getVars = new Array();
var qString = unescape(top.location.search.substring(1));
var pairs = qString.split(/\&/);
for (var i in pairs) {
var nameVal = pairs[i].split(/\=/);
getVars[nameVal[0]] = nameVal[1];
} 
return getVars;
}

//Detect method for handling layers and divs
function getRefToDiv(divID,oDoc) {
    if( !oDoc ) { oDoc = document; }
    if( document.layers ) {
        if( oDoc.layers[divID] ) { return oDoc.layers[divID]; } else {
            //repeatedly run through all child layers
            for( var x = 0, y; !y && x < oDoc.layers.length; x++ ) {
                //on success, return that layer, else return nothing
                y = getRefToDiv(divID,oDoc.layers[x].document); }
            return y; } }
    if( document.getElementById ) {
        return document.getElementById(divID); }
    if( document.all ) {
        return document.all[divID]; }
    return false;
}

//Top navigation functions
function showdrop(theLayer){
	//roll(navImage[theLayer]);
	keep=theLayer; hideall(); checkpos=0; showitnow=1
	showit(theLayer)
}

function showit(theLayer){
var f = document.forms[0];
		if(ie){ 
			eval(droplayer[theLayer]+'.style.visibility="visible"');
			if (arrFormHide != undefined){
				var arrForm = new Array();
				for (i=0; i < arrFormHide.length; i++) {
					arrForm = arrFormHide[i].split("|");
				   if (theLayer == arrForm[0]) {
				   	if (arrForm[2] == "") {
				   		intLimit = f.length;
				   	}else{
				   		intLimit = arrForm[2];
				  	}
						for(x=0;x<intLimit;x++){  
							f[x].style.visibility = "hidden";
						}
				  }
				}
			}	
		}
		if(ns){ 
		    refLayer = getRefToDiv(droplayer[theLayer]);
			refLayer.style.visibility = 'visible';
		    return true;
		}
	}

function hidedrop(theLayer){
//restore(navImage[theLayer]);
var f = document.forms[0];
		if(ie){
			if (arrFormHide != undefined){
				var arrForm = new Array();
					for (i=0; i < arrFormHide.length; i++) {
						arrForm = arrFormHide[i].split("|");
						   if (theLayer == arrForm[0]) {
						   	if (arrForm[2] == "") {
						   		intLimit = f.length;
						   	}else{
						   		intLimit = arrForm[2];
						  	}
								for(x=0;x<intLimit;x++){  
									f[x].style.visibility = "visible";
								}
						  }
					}
				}
	  }
		if(ns){
	    	refLayer = getRefToDiv(droplayer[theLayer]);
      		refLayer.style.visibility = 'hidden';
	    	return true;
	  }
	keep=-1; 
	checkpos=1;
	setTimeout('hideall()',timeoout)
}

function hideall(){
	for(i=0;i<droplayer.length;i++){  
		 
		if(ie && (keep!=i)){ 
			eval(droplayer[i]+'.style.visibility="hidden"')
		}
		if (ns && (keep!=i)) {
			hideit=0; 
			if(hideit){ 
				eval('document.'+droplayer[i]+'.visibility="hide"')
			}
		}
	}
}

//Clear and fill prefilled fields, i.e. Search Box
function clearField(objField, strDefault){
	if (objField.value == strDefault){
		objField.value = "";
	}
}
function fillField(objField, strDefault){
	if (objField.value == ""){
		objField.value = strDefault;
	}
}

//Standard rollover and select menu functions from Macromedia
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function roll(obj) {
var o = document.images[obj];
	var base=o.name;
	var path=o.src;
	var file=path.substring(0,path.length-4);
	var newImage=file + "_roll.gif";
	o.src=newImage;

	return;
}
function restore(obj) {
var o = document.images[obj];
	var base=o.name;
	var path=o.src;
	var file=path.substring(0,path.length-9);
	var newImage=file + ".gif";
	o.src=newImage;
	return;
}

//Set background color of entire div
function color_div(o,b){
	if(!ff){
		if(b==1){
			o.style.backgroundColor = "#EAEAEA";
		}
		else{
			o.style.backgroundColor = "#FFF";
		}
	}
}

//Set section table id to active/inactive
function setCellClass(thisCell) { 
	if (thisCell.id.indexOf('_active') == -1) {
		thisCell.setAttribute('id', thisCell.id+'_active');	
	} else {
		thisCell.setAttribute('id', thisCell.id.replace('_active',''));	
	}
} 

//String Functions
function Left(str, n){
	if (n <= 0)
	    return "";
	else if (n > String(str).length)
	    return str;
	else
	    return String(str).substring(0,n);
}
function Right(str, n){
    if (n <= 0)
       return "";
    else if (n > String(str).length)
       return str;
    else {
       var iLen = String(str).length;
       return String(str).substring(iLen, iLen - n);
    }
}

/*---------------------------------------------------------------------*/
//
//Stores array for all site navigation
//
//arrImgSplit = "PAGE NAME|IMAGE NAME|IMAGE WIDTH|URL"
//arrNavSplit = "PAGE NAME|URL|PARENT PAGE NAME|DEPTH WITHIN NAVIGATION|WINDOW TARGET"   
/*---------------------------------------------------------------------*/

function buildNav(theSection, theStyle, theSub1, theSub2, theSub3){
	var totalNav;
	var arrNavSplit = new Array();
	var arrNav = new Array();
	var arrImgSplit = new Array();
	var arrImg = new Array();

	if (theSection == "0") {
		var a = 0;
		arrImgSplit = "our company|nav_our_company|117|#";
		arrNavSplit[a] = "overview|our_company.html|none|0|"; a++;
			/*arrNavSplit[a] = "our vision|our_vision.html|our_company|2|"; a++; */
			arrNavSplit[a] = "strategic approach|strategic_approach.html|our_company|2|"; a++;
			arrNavSplit[a] = "kinetix advantage|kinetix_advantage.html|our_company|2|"; a++;
		arrNavSplit[a] = "team|team.html|none|0|"; a++;
			arrNavSplit[a] = "Michael Block<br><span class='team_title'>chief executive</span>|m_block.html|team|2|"; a++;
			arrNavSplit[a] = "Nevin Cohen, ph.d<br><span class='team_title'>senior strategist</span>|n_cohen.html|team|2|"; a++;
			arrNavSplit[a] = "Craig Delancey<br><span class='team_title'>senior strategist</span>|c_delancey.html|team|2|"; a++;
			arrNavSplit[a] = "Michael Gresty<br><span class='team_title'>senior strategist</span>|m_gresty.html|team|2|"; a++;
			arrNavSplit[a] = "Martyn Straw<br><span class='team_title'>brand strategy<br>director</span>|m_straw.html|team|2|"; a++;
			arrNavSplit[a] = "Phil Kann<br><span class='team_title'>communication<br>director</span>|p_kann.html|team|2|"; a++;
			arrNavSplit[a] = "Ron Louie<br><span class='team_title'>design director</span>|r_louie.html|team|2|"; a++;
			arrNavSplit[a] = "Ari Meisel<br><span class='team_title'>consultant</span>|a_meisel.html|team|2|"; a++;
			arrNavSplit[a] = "Thomas Kosbau<br><span class='team_title'>consultant</span>|t_kosbau.html|team|2|"; a++;
			arrNavSplit[a] = "Jamy Bacchus<br><span class='team_title'>p.e., leed ap</span>|j_bacchus.html|team|2|"; a++;
			arrNavSplit[a] = "Al Lutz<br><span class='team_title'>p.e., leed ap</span>|a_lutz.html|team|2|"; a++;
			
		arrNavSplit[a] = "news|news.html|none|0|"; a++;
			arrNavSplit[a] = "2009|news_2009.html|news|2|"; a++;
			arrNavSplit[a] = "2008|news_2008.html|news|2|"; a++;
			arrNavSplit[a] = "2007|news_2007.html|news|2|"; a++;
			arrNavSplit[a] = "2006|news_2006.html|news|2|"; a++;
			arrNavSplit[a] = "2005|news_2005.html|news|2|"; a++;
			arrNavSplit[a] = "archive|news_archive.html|news|2|"; a++;
		arrNavSplit[a] = "research|research.html|none|0|"; a++;
		arrNavSplit[a] = "employment|employment.html|none|0|"; a++;
		arrNavSplit[a] = "contact|contact.html|none|0|"; a++;
	}else if (theSection == "1") {
		var a = 0;
		arrImgSplit = "corporate sustainability|nav_corporate_sustainability|117|#";
		arrNavSplit[a] = "our approach|corporate_sustainability.html|none|0|"; a++;
		arrNavSplit[a] = "services|corp_sust_services.html|none|0|"; a++;
			arrNavSplit[a] = "strategy<br>development|corp_sust_strategy_development.html|corp_sust_services|1|"; a++;
				arrNavSplit[a] = "research & analysis|research_analysis.html|corp_sust_strategy_development|2|"; a++;
				arrNavSplit[a] = "opportunity &<br/>risk report|strat_dev_opp_risk.html|corp_sust_strategy_development|2|"; a++;
				arrNavSplit[a] = "strategy<br>management|strategy_management.html|corp_sust_strategy_development|2|"; a++;
			arrNavSplit[a] = "business process <br>implementation|business_process.html|corp_sust_services|1|"; a++;
				arrNavSplit[a] = "governance|governance.html|business_process|2|"; a++;
				arrNavSplit[a] = "climate change|climate_change.html|business_process|2|"; a++;  
				arrNavSplit[a] = "products & services|products_services.html|business_process|2|"; a++;  
				arrNavSplit[a] = "facilities &<br>operations|facilities_operations.html|business_process|2|"; a++;  
				arrNavSplit[a] = "supply chain|supply_chain.html|business_process|2|"; a++;  
			arrNavSplit[a] = "stakeholder<br>communications|corp_sust_stakeholder_communications.html|corp_sust_services|1|"; a++;
				arrNavSplit[a] = "brand strategy|corp_sust_brand_strategy.html|corp_sust_stakeholder_communications|2|"; a++;
				arrNavSplit[a] = "marketing|corp_sust_marketing.html|corp_sust_stakeholder_communications|2|"; a++;
				arrNavSplit[a] = "outreach|corp_sust_outreach.html|corp_sust_stakeholder_communications|2|"; a++;
				arrNavSplit[a] = "education & training|corp_sust_education_training.html|corp_sust_stakeholder_communications|2|"; a++;
				/*
				arrNavSplit[a] = "content<br>development|corp_sust_content_development.html|corp_sust_stakeholder_communications|2|"; a++;
				arrNavSplit[a] = "CR / sustainability<br>reports|corp_sust_cr_sustainability_reports.html|corp_sust_stakeholder_communications|2|"; a++;
				arrNavSplit[a] = "SRI media tool kits|corp_sust_sri_media_tool_kits.html|corp_sust_stakeholder_communications|2|"; a++;
				arrNavSplit[a] = "eco-marketing -<br>product launches|corp_sust_eco_marketing_product_launches.html|corp_sust_stakeholder_communications|2|"; a++;
				arrNavSplit[a] = "new media / social<br>marketing|corp_sust_new_media_social_marketing.html|corp_sust_stakeholder_communications|2|"; a++;
				arrNavSplit[a] = "NGO partnership<br>development|corp_sust_ngo_partnership_development.html|corp_sust_stakeholder_communications|2|"; a++;
				*/		
		arrNavSplit[a] = "clients|clients.html|none|0|"; a++;
			//arrNavSplit[a] = "case study|corp_sust_case_study.html|clients|1|"; a++;
			arrNavSplit[a] = "chemical|chemical.html|clients|2|"; a++;
			arrNavSplit[a] = "consumer products|consumer_products.html|clients|2|"; a++;
			arrNavSplit[a] = "financial services|financial_services.html|clients|2|"; a++;
			arrNavSplit[a] = "food & agriculture|food_agriculture.html|clients|2|"; a++;
			arrNavSplit[a] = "not for profit|not_for_profit.html|clients|2|"; a++;
			arrNavSplit[a] = "pharmaceuticals|pharmaceuticals.html|clients|2|"; a++;			
	}else if(theSection == "2") {
		var a = 0;
		arrImgSplit = "sustainable<br>real estate|nav_sustainable_real_estate|117|#";
		arrNavSplit[a] = "our approach|sustainable_real_estate.html|none|0|"; a++;
		arrNavSplit[a] = "services|sust_re_services.html|none|0|"; a++;
			arrNavSplit[a] = "portfolio & asset<br>management|portfolio_asset_management.html|sust_re_services|1|"; a++;
				arrNavSplit[a] = "development<br>incentives|development_incentives.html|portfolio_asset_management|2|"; a++;
				arrNavSplit[a] = "existing building<br>analysis|existing_building_analysis.html|portfolio_asset_management|2|"; a++;
				arrNavSplit[a] = "green building<br>underwriting|green_building_underwriting.html|portfolio_asset_management|2|"; a++;
			arrNavSplit[a] = "high performance<br>design|high_performance_design.html|sust_re_services|1|"; a++;
				arrNavSplit[a] = "master planning|master_planning.html|high_performance_design|2|"; a++;
				arrNavSplit[a] = "project design|project_design.html|high_performance_design|2|"; a++;
				arrNavSplit[a] = "cost benefit analysis|cost_benefit_analysis.html|high_performance_design|2|"; a++;
				arrNavSplit[a] = "computer modeling|computer_modeling.html|high_performance_design|2|"; a++;
				arrNavSplit[a] = "LEED certification|LEED_certification.html|high_performance_design|2|"; a++;
			arrNavSplit[a] = "stakeholder<br>communications|stakeholder_communications.html|sust_re_services|1|"; a++;
				//arrNavSplit[a] = "concept<br>development|sust_re_concept_development.html|stakeholder_communications|2|"; a++;
				//arrNavSplit[a] = "project launch|sust_re_project_launch.html|stakeholder_communications|2|"; a++;
				//arrNavSplit[a] = "media tool kits|sust_re_media_tool_kits.html|stakeholder_communications|2|"; a++;
				//arrNavSplit[a] = "sales education<br>& training|sust_re_sales_education_training.html|stakeholder_communications|2|"; a++;
				//arrNavSplit[a] = "community relations|sust_re_community_relations.html|stakeholder_communications|2|"; a++;
		arrNavSplit[a] = "projects|projects.html|none|0|"; a++;
			//arrNavSplit[a] = "case study|sust_re_case_study.html|projects|1|"; a++;
				arrNavSplit[a] = "master planning|project_master_planning.html|projects|2|"; a++;
				arrNavSplit[a] = "residential|project_residential.html|projects|2|"; a++;
				arrNavSplit[a] = "hospitality|project_hospitality.html|projects|2|"; a++;
				arrNavSplit[a] = "commercial/office|project_commercial_office.html|projects|2|"; a++;
				arrNavSplit[a] = "cultural|project_cultural.html|projects|2|"; a++;
				arrNavSplit[a] = "educational|project_educational.html|projects|2|"; a++;
				arrNavSplit[a] = "retail|project_retail.html|projects|2|"; a++;
	}else if(theSection == "3") {
		var a = 0;
		arrImgSplit = "our network|nav_our_network|117|#";
		arrNavSplit[a] = "SPN|spn.html|none|0|"; a++;
		arrNavSplit[a] = "strategic partners|strategic_partners.html|none|0|"; a++;
		arrNavSplit[a] = "affiliations|affiliations.html|none|0|"; a++;
		arrNavSplit[a] = "resources|resources.html|none|0|"; a++;
			arrNavSplit[a] = "stakeholder<br>engagement|resources_stakeholder_engagement.html|resources|2|"; a++;
			arrNavSplit[a] = "business process|resources_business_process.html|resources|2|"; a++;
			arrNavSplit[a] = "knowledge and skills|resources_knowledge_skills.html|resources|2|"; a++;
			arrNavSplit[a] = "green travel|resources_green_travel.html|resources|2|"; a++;
			arrNavSplit[a] = "current articles|http://delicious.com/kinetixecology|resources|2|"; a++;
		arrNavSplit[a] = "client ftp|client_ftp.html|none|0|"; a++;
	}

arrImg = arrImgSplit.split("|");

var topNavStyle = "";
var topNavTest = 0;
var topNavLength = 0;

if (theStyle == "top"){
	for (i=0; i < arrNavSplit.length; i++) {
		arrNav = arrNavSplit[i].split("|");
		if (arrNav[3] == "0"){
			topNavLength = topNavLength+1;			
		}
	}
	if (theSection == currSection){
		topNavStyle = "_active";
	}else{
		topNavStyle = "";
	}

	totalNav = '<div id=nav'+theSection+topNavStyle+' onMouseOut="hidedrop('+theSection+');MM_Color(this,0);" onMouseOver="showdrop('+theSection+');MM_Color(this,1);"><a class=topNav>'+arrImg[0]+'</a></div>\
				<div id="Layer'+theSection+theSection+'" Name="Layer'+theSection+theSection+'" onmouseout="hidedrop('+theSection+');MM_Color(getRefToDiv(topNavDiv['+theSection+']),0);" onmouseover="showdrop('+theSection+');MM_Color(getRefToDiv(topNavDiv['+theSection+']),1);">';
	if (ff){
		totalNav = totalNav + '<div><table class="Layer'+theSection+'" cellpadding=0 cellspacing=0 border=0><tr><td>';
	}else{
		totalNav = totalNav + '<div id="Layer'+theSection+'">';	
	}
	  for (i=0; i < arrNavSplit.length; i++) {
			arrNav = arrNavSplit[i].split("|");
			if (arrNav[3] == "0") {
		  	if (theSub1 == arrNav[2]) {
		  		totalNav = totalNav+'<div id=topNavItem onmouseover="MM_Color(this,1);" onmouseout="MM_Color(this,0);" onclick="window.location.href=\''+arrNav[1]+'\'">'+arrNav[0]+'</div>'; topNavTest++;
		  		if (topNavTest < (topNavLength)){
		  			// NAV SEPERATOR totalNav = totalNav+'<div id=topNavSep><img src="images/topnav_sep.gif" width=185 height=2 border=0 /></div>\n';
					}else{
						totalNav = totalNav+'\n';
					}	  		
		  	}else if (arrNav[2] == ""){
		  		totalNav = totalNav+'<div id=topNavItem onmouseover="MM_Color(this,1);" onmouseout="MM_Color(this,0);" onclick="window.location.href=\''+arrNav[1]+'\'">'+arrNav[0]+'</div>'; topNavTest++;
		  		if (topNavTest < (topNavLength)){
		  			// NAV SEPERATOR totalNav = totalNav+'<div id=topNavSep><img src="images/topnav_sep.gif" width=185 height=2 border=0 /></div>\n';
					}else{
						totalNav = totalNav+'\n';
					}	  		
		  	}
			}
		}
		if (ff){
			totalNav = totalNav+'</tr></td></table></div>\n</div>\n';	
		}else{
			totalNav = totalNav+'</div>\n</div>\n';	
		}
		if (theSection != 5){
		// NAV SEPERATOR totalNav = totalNav+'<div id=nav><img src="images/nav_sep.gif" width=2 height=27></div>\n';
		}else{
			totalNav = totalNav+'</tr></td></table></div>\n';
		}
		return totalNav;
}else{
	if (arrImg[3] == thePage){
		var currSec = arrImg;
	}else{
		for (i=0; i < arrNavSplit.length; i++) {
			arrNav = arrNavSplit[i].split("|");
			if (theSub2 != undefined) {
				if (theSub2+'.html' == arrNav[1]){
					var currSec = arrNav;
				}
			} else if (thePage == arrNav[1]){
				var currSec = arrNav;
			}
		}
	}
	
	var navItemCounter = 0;
	/*var firstLeftNavItem = ' style="border-top: 2px solid #fff;"';*/
	var firstLeftNavItem = "";
	totalNav = '<div id=leftNav>';
	  for (i=0; i < arrNavSplit.length; i++) {
			arrNav = arrNavSplit[i].split("|");

			var parentHTML = arrNav[1].replace(".html","");
			
			var leftNavFirst ="";
			var leftNavStyle = "";
			
			
			/* Code to change the css class of the current page */
			if ((thePage == arrNav[1]) || ((theSub2 != undefined) && (theSub2+'.html' == arrNav[1]))) {
				if (arrNav[3] == '1') {
					leftNavStyle = "_active";
				} else {
					leftNavStyle = ' onmouseover="setCellClass(this);" onmouseout="setCellClass(this);"';				
				}
			} else {
				leftNavStyle = ' onmouseover="setCellClass(this);" onmouseout="setCellClass(this);"';
			}
			
			//totalNav = totalNav+arrNav[0]+'-'+arrNav[1]+'-'+arrNav[2]+'-'+arrNav[3]+'-'+arrNav[4];
			
			if (arrNav[3] == '0') {
				if (currSec[2] == parentHTML) {
					totalNav = totalNav+'<div id=leftNavHeader onclick="window.location.href=\''+arrNav[1]+'\'"><a href="'+arrNav[1]+'">'+arrNav[0]+'</a></div>';
				} else if ((currSec[2] == 'none') && (thePage == arrNav[1])) {
					totalNav = totalNav+'<div id=leftNavHeader onclick="window.location.href=\''+arrNav[1]+'\'"><a href="'+arrNav[1]+'">'+arrNav[0]+'</a></div>';
				} else if ((currSec[2] == arrNav[2]) && (thePage == arrNav[1])) {
					totalNav = totalNav+'<div id=leftNavSubHeader'+leftNavStyle+' onclick="window.location.href=\''+arrNav[1]+'\'"><a href="'+arrNav[1]+'">'+arrNav[0]+'</a></div>';
				}
			}
			if ((arrNav[3] == '1') && (currSec[2] == arrNav[2])) {
				totalNav = totalNav+'<div id=leftNavSubHeader'+leftNavStyle+' onclick="window.location.href=\''+arrNav[1]+'\'"><a href="'+arrNav[1]+'">'+arrNav[0]+'</a></div>';
			} else if ((theSub1 == arrNav[2]) && (arrNav[3] == '1')) {
				totalNav = totalNav+'<div id=leftNavSubHeader'+leftNavStyle+' onclick="window.location.href=\''+arrNav[1]+'\'"><a href="'+arrNav[1]+'">'+arrNav[0]+'</a></div>';
			} else if ((theSub1 == arrNav[2]) && (arrNav[3] >= 2)) {
				if (navItemCounter == 0) {
					totalNav = totalNav+'<div id=leftNavItem'+leftNavStyle+firstLeftNavItem+' onclick="window.location.href=\''+arrNav[1]+'\'"><a href="'+arrNav[1]+'">'+arrNav[0]+'</a></div>';
					navItemCounter++;
				} else {
					totalNav = totalNav+'<div id=leftNavItem'+leftNavStyle+' onclick="window.location.href=\''+arrNav[1]+'\'"><a href="'+arrNav[1]+'">'+arrNav[0]+'</a></div>';	
				}
			} else if ((arrNav[3] =='2') && (thePageName == arrNav[2])) {
				/*if (navItemCounter == 0) {
					totalNav = totalNav+'<div id=leftNavItem'+leftNavStyle+firstLeftNavItem+'><a href="'+arrNav[1]+'">'+arrNav[0]+'</a></div>';
					navItemCounter++;
				} else {
					totalNav = totalNav+'<div id=leftNavItem'+leftNavStyle+'><a href="'+arrNav[1]+'">'+arrNav[0]+'</a></div>';	
				}*/
					totalNav = totalNav+'<div id=leftNavItem'+leftNavStyle+' onclick="window.location.href=\''+arrNav[1]+'\'"><a href="'+arrNav[1]+'">'+arrNav[0]+'</a></div>';	
			}
			if ((theSub2 == arrNav[2])) {
				/*if (navItemCounter == 0) {
					totalNav = totalNav+'<div id=leftNavItem'+leftNavStyle+firstLeftNavItem+'><a href="'+arrNav[1]+'">'+arrNav[0]+'</a></div>';
					navItemCounter++;
				} else {
					totalNav = totalNav+'<div id=leftNavItem'+leftNavStyle+'><a href="'+arrNav[1]+'">'+arrNav[0]+'</a></div>';	
				}*/
					totalNav = totalNav+'<div id=leftNavItem'+leftNavStyle+' onclick="window.location.href=\''+arrNav[1]+'\'"><a href="'+arrNav[1]+'">'+arrNav[0]+'</a></div>';	
			}
		  }
	totalNav = totalNav + '</div>';		
	return totalNav;
}
}



////////////////////////////////////////////////////////////////////////////////////////////////// 

/*
if ((navigator.appName == "Netscape")) {
   document.write("<link rel=stylesheet href=\"style.css\" type=\"text/css\" media=\"screen,projection\" >");
   var theBrowser = "1";
} else if (navigator.appName == "Microsoft Internet Explorer") {
   if ((navigator.appVersion.indexOf("5.0") != -1) || (navigator.appVersion.indexOf("5.5") != -1)) {
	   document.write("<link rel=stylesheet href=\"style.css\" type=\"text/css\" media=\"screen,projection\" >");
	   var theBrowser = "2";
   } else {
	   document.write("<link rel=stylesheet href=\"style.css\" type=\"text/css\" media=\"screen,projection\" >");
	   var theBrowser = "1";
   }
} else {
   document.write("<link rel=stylesheet href=\"style.css\" type=\"text/css\" media=\"screen,projection\" >");
   var theBrowser = "1";
}
//-->
*/

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
 if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
 else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
 
function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
 
function MM_swapImgRestore() { //v3.0
 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
 
function MM_findObj(n, d) { //v4.01
 var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
 if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
 for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
 if(!x && d.getElementById) x=d.getElementById(n); return x;
}
 
function MM_swapImage() { //v3.0
 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_Color(o,b){
	//alert(o.id);
	if (o != undefined){
		if(b==1){
			//o.style.textDecoration = "underline";
			o.style.color = "#fff";
			o.style.backgroundColor = "#005A6B";
		}else{
			//o.style.textDecoration = "none";
			o.style.color = "#fff";
			o.style.backgroundColor = "";
		}
	}
}


//-->