function switchImage(imgName, imgSrc) 
{
  if (document.images)
  {
    if (imgSrc != "none")
    {
      document.images[imgName].src = imgSrc;
    }
  }
}

/*MENU FUNCTIONS*/
	var menu = 0;
	var time_id = '';
		function show(element_id, n) {
			window.clearTimeout(time_id);
			for (i = 1; i <= n; i++) {
				var element = document.getElementById('menu_' + i.toString());
				if (element) {
					if (i == element_id) element.style.display = '';
					else element.style.display = 'none';
					menu = 1;
				}
			}
		}
		/*function hide(element_id) {
			var element = document.getElementById('menu_' + element_id);
			if (element) {
				element.style.display = 'none';
				menu = 0;
			}
		}*/
		function hide_time(element_id) {
			if (menu == 0 ) {
				var element = document.getElementById('menu_' + element_id);
				if (element) {
					element.style.display = 'none';
				}
			}
			else {
				window.clearTimeout(time_id);
			}
		}
		function set_menu (value) {
			menu = value;
		}
		function on_time(element_id) {
			time_id = window.setTimeout("hide_time(" + element_id + ")", 1500);
		}
		function change_over(element_id, color) {
			var element = document.getElementById(element_id, color);
			if (element) {
				element.style.backgroundColor = color;
			}
		}
		function change_out(element_id, color) {
			var element = document.getElementById(element_id, color);
			if (element) {
				element.style.backgroundColor = color;
			}
		}
/*END MENU FUNCTIONS*/
