/* EFECTO MORPH para desplegable de información de los iconos del HEADER */
window.addEvent('domready', function(){
	//Creamos elemento info y el efecto morph apliado a info.
	var ieVer=/*@cc_on function(){ switch(@_jscript_version){ case 1.0:return 3; case 3.0:return 4; case 5.0:return 5; case 5.1:return 5; case 5.5:return 5.5; case 5.6:return 6; case 5.7:return 7; case 5.8:return 8; }}()||@*/0;
	var contacto = $('contacto-info');
	var mapa = $('mapa-web');
	var morph = new Fx.Morph('contacto-info');
	contacto.addEvents({
		'mouseenter': function(){
			// Con el mouse por encima ejecutamos efecto de Morph
			if(ieVer == 6 || ieVer == 7 || ieVer == 8){
				contacto.setStyle('overflow','visible');
				contacto.setStyle('width','200px');
				contacto.setStyle('height','60px');
			}else{
				contacto.morph('#info.mouseOn');
			}
		},
		'mouseleave': function(){
			//cuando salgamos, volvemos al incio
			if(ieVer == 6 || ieVer == 7 || ieVer == 8){
				contacto.setStyle('overflow','hidden');
				contacto.setStyle('width','20px');
				contacto.setStyle('height','20px');
			}else{
				contacto.morph('#contacto-info');
			}
		}
	});
	mapa.addEvents({
		'mouseenter': function(){
			// Con el mouse por encima ejecutamos efecto de Morph
			if(ieVer == 6 || ieVer == 7 || ieVer == 8){
				mapa.setStyle('overflow','visible');
				mapa.setStyle('width','200px');
				mapa.setStyle('height','60px');
			}else{
				mapa.morph('#info.mouseOn');
			}
		},
		'mouseleave': function(){
			//cuando salgamos, volvemos al incio
			if(ieVer == 6 || ieVer == 7 || ieVer == 8){
				mapa.setStyle('overflow','hidden');
				mapa.setStyle('width','20px');
				mapa.setStyle('height','20px');
			}else{
				mapa.morph('#mapa-web');
			}
		}
	});
});