function menuHighlight(){

	lmLinks = document.getElementsByTagName("a");
	var thisPage = location.href; 

	for(i=0;i<lmLinks.length;i++)
	{
		lmLink = lmLinks[i];

		thisHREF = lmLink.getAttribute("href");  
		thisREL = lmLink.getAttribute("rel");
		thisREV = lmLink.getAttribute("rev");

		var location_page = location.protocol + "//" + location.hostname + thisHREF;
		
		var str = thisPage;
		var patt1 = /latest-news/i;
		checkNews = str.match(patt1);

		if((thisREV && thisHREF == thisPage && thisREL == "leftmenu") || (thisREV && location_page == thisPage && thisREL == "leftmenu"))
		{ 
			subMenu = "sub"+thisREV;
			if(document.getElementById(subMenu))
			{
				document.getElementById(subMenu).style.display = "block";
			}
			
			if(document.getElementById(thisREV))
			{
				document.getElementById(thisREV).className = "current_section";
			}
			
			return;  
		} 
		
		if(checkNews == "latest-news")
		{
			document.getElementById("sublmaboutus").style.display = "block";			
			document.getElementById("lmaboutus").className = "current_section";
			return; 
		}
	}
}


function scrollpage(lefts,tops){

scrollTo(lefts,tops);

}


window.onload = function(){menuHighlight();}
