function setNavigationBar()

{
	var page_url=location.href;
	var temp=new Array();
	temp=page_url.split('/');
	var menuid=temp[temp.length-1].split('.');
	if (menuid[0]=="")
	document.getElementById('index').style.textDecoration='underline';
	else
	{if(menuid=="index"||menuid=="about_us" || menuid=="clients" ||menuid=="learning_solutions"||menuid=="contact_us" ||menuid=="forums")
	document.getElementById(menuid).style.textDecoration='underline';
	else
	{
	if(menuid=="current_courses")
	document.getElementById("learning_solutions").style.textDecoration='underline';	
	}
	
	}
}
  
var  timerId=0 ;
 
 
 
function clearTimer() {
  if (timerId!=0) {
    clearTimeout(timerId); timerId=0; }}
 
 
 
function startTimer(i) {
//alert(i);
  clearTimer(); timerId=setTimeout('timerId=0;hideMenus('+i+')',200); }
 
 
 
function showMenu(i) {
  clearTimer(); hideMenus(i);
  document.getElementById('UserOptions'+i).style.display=""; }
 
 
 
function hideMenus(i) {
 
  
    document.getElementById('UserOptions'+i).style.display="none";
 }
 
 
 

 
function hiLite(theOption) {
  clearTimer();
  document.getElementById('opt_'+theOption).style.background='#9090FF';
   }
 
 
 
function unLite(theOption,n) {
  //alert(n);
  startTimer(n);
  document.getElementById('opt_'+theOption).style.background='#E5D7D7'; }
 
 
 
function optClick(theOption) {
  unLite(theOption); clearTimer(); hideMenus();
  alert('You clicked option '+theOption.toUpperCase()+'.  '+
  'This code should actually do something in response to that.'); }
 
 
 

function ShowBlock(id){
	document.getElementById(id).style.display='block';
}
function CloseBlock(id){
	document.getElementById(id).style.display='none';
}

function clearText(id){
	document.getElementById(id).select();
	document.getElementById(id).value="";
	
}
