//*************************************************************************
//  This code is from Dynamic Web Coding at http://www.dyn-web.com/
//  Copyright 2001-3 by Sharon Paine 
//  See Terms of Use at http://www.dyn-web.com/bus/terms.html
//  regarding conditions under which you may use this code.
//  This notice must be retained in the code as is!
//*************************************************************************/
//	
	// onresize for ns4
	var origWidth, origHeight;
	if (document.layers) {
		origWidth = window.innerWidth; origHeight = window.innerHeight;
		window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }
	}
	var cur_lyr;
	var activado=1;// holds id of currently visible layer	
	function showLayer(id) {
	  var lyr = getElemRefs(id);
	  if (lyr && lyr.css) lyr.css.display = "block";
	}	
	function hideLayer(id) {
	  var lyr = getElemRefs(id);
	  if (lyr && lyr.css) lyr.css.display = "none";
	}
	function getElemRefs(id) {
		var el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? document.layers[id]: null;
		if (el) el.css = (el.style)? el.style: el;
		return el;
	}
	function verocultar() {
	if (activado==1) {
		hideLayer('menu1');
		showLayer('menu2');
		activado=0;
	}
	else {
		showLayer('menu1');
		hideLayer('menu2');
		activado=1;
	}
	}
	function cambiar() {
		hideLayer('menu1');
		showLayer('menu2');
		activado=0;
	}
	