function intmenu(menuid){

  document.getElementById("menu"+menuid).style.cursor="pointer";

  document.getElementById("menu"+menuid).style.color="D45F09";

  document.getElementById("menu"+menuid).style.backgroundColor="#d3c57d";

  showsubmenu(menuid);

  }



function outtmenu(menuid){

  document.getElementById("menu"+menuid).style.color="FFFFFF";

  document.getElementById("menu"+menuid).style.backgroundColor="";

  hidesubmenu(menuid);

  }



function showsubmenu(subid){

  document.getElementById("sub"+subid).style.display="block";

  document.getElementById("menu"+subid).style.color="D45F09";

  document.getElementById("menu"+subid).style.backgroundColor="#d3c57d";

  }



function hidesubmenu(subid){

  document.getElementById("sub"+subid).style.display="none";

  document.getElementById("menu"+subid).style.color="FFFFFF";

  document.getElementById("menu"+subid).style.backgroundColor="";

  }



function inloctmenu(menuid){

  showlocmenu(menuid);

  //document.getElementById(menuid).style.cursor="pointer";

  }



function showlocmenu(menuid){

	if (menuid == "teacherTrainingLocations") showlocmenu("Header_teacherTraining");
	if (menuid == "teacherTrainingPrograms") showlocmenu("Header_teacherTraining");
		
	if (menuid == "ourProgramsClasses") showlocmenu("Header_ourPrograms");
	if (menuid == "ourProgramsWorkshops") showlocmenu("Header_ourPrograms");
	if (menuid == "ourProgramsRetreats") showlocmenu("Header_ourPrograms");
	if (menuid == "newStudentsGettingStarted") showlocmenu("Header_newStudents");
	
	document.getElementById(menuid + "Sub").style.display="block";
		
	document.getElementById(menuid + "Sub").style.zIndex=101;
		
	window.status='Locations';

}



function outloctmenu(menuid){

  hidelocmenu(menuid);

  }

  

function hidelocmenu(menuid){

  document.getElementById(menuid + "Sub").style.display="none";

  window.status='';

  }

  







function showbg(subid){

  document.getElementById(subid).style.backgroundImage="images/g_arrow_down.gif";

  }



var d, dom, ie, ie4, ie5x, moz, mac, win, lin, old, ie5mac, ie5xwin, op;



d = document;

n = navigator;

na = n.appVersion;

nua = n.userAgent;

win = ( na.indexOf( 'Win' ) != -1 );

mac = ( na.indexOf( 'Mac' ) != -1 );

lin = ( nua.indexOf( 'Linux' ) != -1 );



if ( !d.layers ){

	dom = ( d.getElementById );

	op = ( nua.indexOf( 'Opera' ) != -1 );

	konq = ( nua.indexOf( 'Konqueror' ) != -1 );

	saf = ( nua.indexOf( 'Safari' ) != -1 );

	moz = ( nua.indexOf( 'Gecko' ) != -1 && !saf && !konq);

	ie = ( d.all && !op );

	ie4 = ( ie && !dom );



	/*

	ie5x tests only for functionality. ( dom||ie5x ) would be default settings. 

	Opera will register true in this test if set to identify as IE 5

	*/



	ie5x = ( d.all && dom );

	ie5mac = ( mac && ie5x );

	ie5xwin = ( win && ie5x );

}



function mac_css( ) {

	d = document;// shorthand so we don't have to write out document each time..

	if ( mac ) {

		d.write('<link rel = "stylesheet" type = "text\/css" href = "css/mac.css" />');

	}

}


  function locklocmenu(subid){
    var menulayer = $(subid);
    menulayer.onmouseout = function () { void(0);}
  }

  function toggle(obj) {
      //var formLA = document.forms["aspnetForm"];
	//var objLA = formLA.elements["ddlocationLA"];
	//var styleLA = objLA.style.display = 'none';
      // = d.getElementByID("ddlocationLA");
	//document.getElementById("ddlocationNY").style.display="block";
	//document.getElementById("ddlocationOC").style.display="none";
	//document.getElementById("ddlocationSF").style.display="none";
      var el = document.getElementById(obj);
      if ( el.style.display != 'none' ) {
		el.style.display = 'none';
	}
	else {
		el.style.display = '';
	}
  }