var  timerId=0 ;

function clearTimer() {
  if (timerId!=0) {
    clearTimeout(timerId); timerId=0; }}

function startTimer() {
  clearTimer(); timerId=setTimeout('timerId=0;hideMenus()',1200); }
  

function showMenu(menuNum) {
  clearTimer(); hideMenus(); liteMenu(menuNum);
  document.getElementById('menu_'+menuNum).style.display=""; }

function showMenu2(menuNum) {
  clearTimer(); hideMenus(); 
  document.getElementById('menu_'+menuNum).style.display=""; 
  document.getElementById('link_'+menuNum).style.color="#187831";
  }

function hideMenus() {
  var  i=1 ;
  unLiteMenus();
  while (document.getElementById('menu_'+i)) {
    document.getElementById('menu_'+i).style.display="none";
    i++; }
	}

function liteMenu(MenuOpt){
	//if (MenuOpt <= 3) {
	document.getElementById('link_'+MenuOpt).style.color="#A3CD39";
	//}
	//else if (MenuOpt > 3){
	//document.getElementById('link_'+MenuOpt).style.color="#187831";
	//}
	
}

function unLiteMenus() {
  var  ii=1 ;
  while (document.getElementById('link_'+ii)) {
    document.getElementById('link_'+ii).style.color="#999999";
    ii++; }}






function hiLite(theOption) {
  clearTimer();
  document.getElementById('opt_'+theOption).style.background='#FFFFFF'; }

function unLite(theOption) {
  startTimer();
  document.getElementById('opt_'+theOption).style.background='#FFFFFF'; }
  
function optClick(theOption) {
  unLite(theOption); clearTimer(); 
  //hideMenus();
   }



function unLite2(theOption) {
  startTimer2();
  document.getElementById('opt_'+theOption).style.background='#FFFFFF'; }

function startTimer2() {
  clearTimer(); timerId=setTimeout('timerId=0;hideMenus2()',1200); }

function hideMenus2() {
  var  i=1 ;
  while (document.getElementById('menu_'+i)) {
    document.getElementById('menu_'+i).style.display="none";
    i++; showMenu2(1)}}
	

function unLite3(theOption) {
  startTimer3();
  document.getElementById('opt_'+theOption).style.background='#FFFFFF'; }

function startTimer3() {
  clearTimer(); timerId=setTimeout('timerId=0;hideMenus3()',1200); }

function hideMenus3() {
  var  i=1 ;
  while (document.getElementById('menu_'+i)) {
    document.getElementById('menu_'+i).style.display="none";
    i++; showMenu2(2)}}


function unLite4(theOption) {
  startTimer4();
  document.getElementById('opt_'+theOption).style.background='#FFFFFF'; }

function startTimer4() {
  clearTimer(); timerId=setTimeout('timerId=0;hideMenus4()',1200); }

function hideMenus4() {
  var  i=1 ;
  while (document.getElementById('menu_'+i)) {
    document.getElementById('menu_'+i).style.display="none";
    i++; showMenu2(3)}}
	

function unLite5(theOption) {
  startTimer5();
  document.getElementById('opt_'+theOption).style.background='#FFFFFF'; }

function startTimer5() {
  clearTimer(); timerId=setTimeout('timerId=0;hideMenus5()',1200); }

function hideMenus5() {
  var  i=1 ;
  while (document.getElementById('menu_'+i)) {
    document.getElementById('menu_'+i).style.display="none";
    i++; showMenu2(4)}}