﻿// JScript File

function showEl(object) {

  if (document.getElementById) {

    document.getElementById(object).style.visibility = 'visible';

  }

  else if (document.layers && document.layers[object]) {

    document.layers[object].visibility = 'visible';

  }

  else if (document.all) {

    document.all[object].style.visibility = 'visible';

  }

}



function hideEl(object) {

  if (document.getElementById) {

    document.getElementById(object).style.visibility = 'hidden';

  }

  else if (document.layers && document.layers[object]) {

    document.layers[object].visibility = 'hidden';

  }

  else if (document.all) {

    document.all[object].style.visibility = 'hidden';

  }

}



function showMenu(id) {

    actnow=menu[id];

    hideMenuSve();

	showEl(menu[id]);

    document.getElementById(actnow+'0').style.backgroundColor='#EFA736';

    document.getElementById(actnow+'00').style.color='#FFFFFF';

    noHide();

}



function hideMenuSve() {

	for (var i in menu) {

	    hideEl(menu[i]);

	    document.getElementById(menu[i]+'0').style.backgroundColor='#F1F1F1';

	    document.getElementById(menu[i]+'00').style.color='#FF6000';

	}

}



function showActive() {

    showEl(actsub);

    document.getElementById(act+'0').style.backgroundColor='#EFA736';

    document.getElementById(act+'00').style.color='#FFFFFF';

}





function noHide() {

	if (self.tm) clearTimeout(tm);

}



function doHide() {

    document.getElementById(actnow+'0').style.backgroundColor='#EFA736';

    document.getElementById(actnow+'00').style.color='#FFFFFF';

	tm=setTimeout("hideMenuSve();showActive();", 3000);

}