var arSideMenu=new Array("who_are_we.html,0|working_with_bancorp.html,0|bancorp_offices.html,0",
						 "corporate_finance.html,0|debt_markets.html,1|private_equity.html,1|compliance_management.html,1|treasury_services.html,1",
						 "property.html,1",
						 "private_banking.html,1",
						 "news.html,0"); //number indicates if custom background exists.



function showSideMenu(){
	
	
	//alert("!")
	var url = location.href;
	//alert(url);
	for (x in arSideMenu)
	{
		tempstring = arSideMenu[x]
		tempArray = tempstring.split("|")
		for (z in tempArray){
			tempArray2 = tempArray[z].split(",")
			smatch = url.match(tempArray2[0])
			//document.write(smatch);
			if (smatch != null){
				tempstring = "sidemenu"+x
				//alert(tempstring)
				menuobject = document.getElementById(tempstring);
				menuobject.style.display = "block";
				if (tempArray2[1] ==1){ //we have an image to display in the menu
					tempArray3 = tempArray2[0].split(".")
					imageobject = document.getElementById("menuImage");
					imageobject.src ="/graphics/menu_backgrounds/"+tempArray3[0]+".jpg";
					imageobject.alt =tempArray3[0];
				}
			}else{
				
				//alert("?");	
			}
		}
	}
	
	
	
	//set highlighting
	
	var menuitems=document.getElementsByTagName("a")
	var Counter = 0
	for (var i=0; i<menuitems.length; i++){
		
		if (url.match(menuitems[i].getAttribute("href")) != null ){
			//alert("!")
			if (Counter == 2){
				menuitems[i].style.color="#f8bf34";
				//
			}else{
			menuitems[i].style.fontWeight="bold";
			}
			Counter = Counter + 1;
			//menuitems[i].className = "chromeselected";
		}
	}
	
	
	
	
	
	
}

