	var strCurrentPageUrl=location.href; //strCurrentPageUrlvariable stores the current browser url.
   
   // "tblLeftNavLinks" is the id of the table in which all the hyperlinks(anchor) will be placed.
   // Get all the hyperlinks(anchor) into anchor array variable "arrAnchorList" placed inside "tblLeftNavLinks" table .
   var arrAnchorList = document.getElementById("tblLeftNavLinks").getElementsByTagName("a"); 
   
   // Search for the current browser url in the arrAnchorList by comparing the 
   // “href” property of each anchor tag with the "strCurrentPageUrl"  as below
   // if (arrAnchorList[iCount].href.toLowerCase().indexOf(strCurrentPageUrl.toLowerCase()) >= 0)  
   // After successful finding anchor object in the "arrAnchorList",
   // get reference to the td object in which the anchor is placed by 
   // refering the parentNode.id of the anchor object 
   // i.e document.getElementById(arrAnchorList[iCount].parentNode.id)
   // arrAnchorList[iCount].parentNode.id gets the “td” id inside which the anchor is placed.
   // Get the Anchor text of the anchor object and store it in “strAnchorInnerHtmltext”.
   // using innerHtml property of the anchor tag i.e arrAnchorList[iCount].innerHTML
   // Finally, replace entire anchor object with the normal text stored in “strAnchorInnerHtmltext”
   // by replacing innerHtml of the “objAnchorTd” i.e objAnchorTd.innerHTML =strAnchorInnerHtmltext 
   // and then change style of the objAnchorTd by changing the class name to “lhs_links_selected”.

  for (iCount = 0; iCount < arrAnchorList.length; iCount++)  // Loop through all the anchors to find reference to the current browser url. 
	 {
	  	//if (arrAnchorList[iCount].href.toLowerCase().indexOf(strCurrentPageUrl.toLowerCase()) != -1)  //compare href property value of an anchor object with current browser url url value  
	  	if (arrAnchorList[iCount].href.toLowerCase() == strCurrentPageUrl.toLowerCase())  //compare href property value of an anchor object with current browser url url value  
	  	 {
	  	 	//alert(iCount);
	  	 	var objAnchorTd = document.getElementById(arrAnchorList[iCount].parentNode.id); // if found then get reference to td object object in which anchor is placed.
	  	 	var strAnchorInnerHtmltext; // Stores anchor text of anchor object by using innerHTML property of the anchor object.
	  	 	strAnchorInnerHtmltext= arrAnchorList[iCount].innerHTML; 
			objAnchorTd.innerHTML = strAnchorInnerHtmltext; // Replaces complete anchor tag with normal text .
			objAnchorTd.className = "lhs_links_selected_menu";	// apply style by using class name. 
			
			var objAnchorTd1 = document.getElementById(arrAnchorList[iCount].parentNode.id); // if found then get reference to td object object in which anchor is placed.
			var objlinkid = document.getElementById(objAnchorTd1.id).getElementsByTagName("a"); 
			
			//alert(objAnchorTd.innerHTML); 
			//alert(objlinkid[0].href);			
			objAnchorTd1.innerHTML =objAnchorTd1.innerHTML
			objlinkid[0].className ="lhs_links_menu";
			
		}
		else
		{
			var objAnchorTd = document.getElementById(arrAnchorList[iCount].parentNode.id); // if found then get reference to td object object in which anchor is placed.
			var objlinkid = document.getElementById(objAnchorTd.id).getElementsByTagName("a"); 
			
			//alert(objAnchorTd.innerHTML); 
			//alert(objlinkid[0].href);			
			//objAnchorTd.innerHTML = objAnchorTd.innerHTML
			objlinkid[0].className ="lhs_links_menu";
			//objAnchorTd.className="lhs_links_menu";
		}
		
	 }