<!-- hide from old browsers

/*
** @author Armand Niculescu
** http://blog.richnetapps.com
*/
	function extractPageName(hrefString)
	{
	        var arr = hrefString.split('/');
	        return  (arr.length<2) ? hrefString : arr[arr.length-2].toLowerCase() + arr[arr.length-1].toLowerCase();               
	}
	
	function setActiveMenu(arr, crtPage)
	{
	        for (var i=0; i<arr.length; i++)
	        {
	                if(extractPageName(arr[i].href) == crtPage)
	                {
	                        if (arr[i].parentNode.tagName != "div" && arr[i].className != "home_link")
	                        {
	                                arr[i].className = "current";
	                        }
	                }
	        }
	}
	
	function setSector(arr, crtPage)
	{
	        for (var i=0; i<arr.length; i++)
	        {
	                if(extractPageName(arr[i].href) == crtPage)
	                {
	                        if (arr[i].parentNode.tagName != "div" && arr[i].className != "home_link")
	                        {
	                                document.getElementById("sector_link").className = "current";
	                        }
	                }
	        }
	}
	
	function setPage()
	{
	        hrefString = document.location.href ? document.location.href : document.location;
	
	        if (document.getElementById("headerNav")!=null)
	                setActiveMenu(document.getElementById("headerNav").getElementsByTagName("a"), extractPageName(hrefString));
			if (document.getElementById("sub")!=null)
	                setSector(document.getElementById("sub").getElementsByTagName("a"), extractPageName(hrefString));
	}
	
	function pop(url) {
		if(window.screen.width) {
			var centerWidth = (window.screen.width - 640) / 2;
			var centerHeight = (window.screen.height - 640) / 2;
		}
		else {
			var centerWidth = 0;
			var centerHeight = 0;
		}

		newwindow=window.open(url,'name','height=640,width=640,left=' + centerWidth + ',top=' + centerHeight);
		if (window.focus) {newwindow.focus()}
		return false;
	}
	
	function popup_checker()
	{
		var x = document.getElementsByTagName('a');
		for (var i=0;i<x.length;i++) {
			if (x[i].getAttribute('class') == 'popup') {
				x[i].onclick = function () {
					return pop(this.href)
				}
				x[i].title += ' (Popup)';
			}
		}
	}
	
	window.onload=function()
	{
	  setPage();
	}

//-->