function showhide() {
	var state1 = document.getElementById('gmaps').style.display;
	var state2 = document.getElementById('europa').style.display;
	if (state1 == 'block' || state1 == '') {
		state1 = 'none';
		state2 = 'block';
		document.getElementById('submenu2').innerHTML = '&rsaquo; <a href="#" onClick="showhide();">Ver en Google Maps</a>';
	} else {
		state1 = 'block';
		state2 = 'none';
		document.getElementById('submenu2').innerHTML = '&rsaquo; <a href="#" onClick="showhide();">Ver mapa Europa</a>';
	}
//	if (document.all) {
//		eval("document.all.gmaps.style.display = state1");
//		eval("document.all.europa.style.display = state2");
//	}
//	if (document.layers) {
//		document.layers['gmaps'].display = state1;
//		document.layers['europa'].display = state2;
//	}
//	if (document.getElementById &&!document.all) {
		document.getElementById('gmaps').style.display = state1;
		document.getElementById('europa').style.display = state2;
//	}
}

function buildmenu_en() {
	document.getElementById('menu_home_en').style.display = 'block';
	document.getElementById('header').style.display = 'block';
}

function buildmenu_es() {
	document.getElementById('menu_home_es').style.display = 'block';
	document.getElementById('header').style.display = 'block';
}

function centerV() {
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}
	if (myHeight > 685) {
		myHeight = (myHeight-685)/2+'px';
	} else {
		myHeight = 0+'px';
	}
	document.getElementById('container').style.marginTop = myHeight;
}
