var this_url = this.location.href.replace(/([^\?]*)\?(.*)$/,'$1');

debug=0;
	if(this.location.href.search(/test/) != -1){
	 debug=1;
}

//************ highlight_menus *******************
function highlight_menus()
{
 var menu_left_obj = getObj('menu_left');
 var menu_top_obj = getObj('menu_top');

 if(menu_left_obj) init_menu(menu_left_obj);
 if(menu_top_obj) init_menu(menu_top_obj);

}

//************ init_menu *******************
function init_menu(obj)
{
	 var menu_col = obj.getElementsByTagName('A');
	 for(i=0;i<menu_col.length;i++){
		 var a_el = menu_col[i];
		 a_el.onmouseover = make_purple;
		 a_el.onmouseout = make_normal;
	
		 if(a_el.href == this_url){
			 a_el.onmouseover();
			 a_el.onmouseout = null;
		 }
	}
}

//*********************************************
function make_purple()
{
 this.style.color = '#5C2F8E';
 //if(this.parentNode.id == 'menu_left_onder')
 //	this.style.textDecoration = 'underline';
}

//*********************************************
function make_normal()
{
 this.style.color = '#3E8B84';
 //if(this.parentNode.id == 'menu_left_onder')
 //	this.style.textDecoration = 'none';
}

/***************************************/
function getObj(obj_name)
{
 return document.getElementById ? document.getElementById(obj_name) : eval(obj_name);
}


