function extractSectionName(hrefString)
{
	if(hrefString == "#") return "";
	
	var arr = extractPageName(hrefString).split('_');
	
	if(arr.length != 1)
	return(arr[arr.length-2]);
	
	return(arr[0]);
}

function extractPageName(hrefString)
{
	if(hrefString == "#") return "";
	
	var arr = hrefString.split('.');
//	if(arr.length==1) alert(arr[0] +"  "+ hrefString);
	arr = arr[arr.length-2].split('/');
	return arr[arr.length-1].toLowerCase();
}

function setActiveMenu(arr, crtPage)
{
	for(var i=0; i < arr.length; i++)
		if(extractPageName(arr[i].href) == crtPage)
		{
			arr[i].className = "current";
			arr[i].href = "#";
		}
}

function setActiveMenuMain(arr, crtPage)
{
	for(var i=0; i < arr.length; i++)
		if(extractSectionName(arr[i].href) == crtPage)
		{
			arr[i].className = "current";
		}
}


function setPage_id(idName)
{

	if(document.location.href) 
		hrefString = document.location.href;
	else
		hrefString = document.location;

	if (document.getElementById(idName)!=null)
	{
		setActiveMenu(document.getElementById(idName).getElementsByTagName("a"), extractPageName(hrefString));
//		setActiveMenu(document.getElementById("Menu_Main").getElementsByTagName("a"), extractSectionName(hrefString));
		setActiveMenuMain(document.getElementById("Menu_Main").getElementsByTagName("a"), extractSectionName(hrefString));
	}
}


<!--

//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

var message="Function Disabled!";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

// -->
