// JavaScript Document
function altura(rs, idioma)
{ 	
	switch(idioma)
	{
		case 'esp': var h = parseInt(document.getElementById('recomendacion').offsetHeight) + parseInt(document.getElementById('blog').offsetHeight)  + parseInt(document.getElementById('socialMedia').offsetHeight)  + parseInt(document.getElementById('activityFacebook').offsetHeight)  + parseInt(document.getElementById('activityTwitter').offsetHeight) + parseInt(500); break;
		
		case 'eng': var h = parseInt(document.getElementById('recomendacion').offsetHeight) + parseInt(document.getElementById('blog').offsetHeight)  + parseInt(document.getElementById('socialMediaEng').offsetHeight)  + parseInt(document.getElementById('activityFacebook').offsetHeight)  + parseInt(document.getElementById('activityTwitter').offsetHeight) + parseInt(400); break;

		case 'cat': var h = parseInt(document.getElementById('recomendacion').offsetHeight) + parseInt(document.getElementById('blog').offsetHeight)  + parseInt(document.getElementById('socialMediaCat').offsetHeight)  + parseInt(document.getElementById('activityFacebook').offsetHeight)  + parseInt(document.getElementById('activityTwitter').offsetHeight) + parseInt(400); break;
	
		default: break;
	}
	
	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;
	
	if(ieVer != 7 && ieVer != 8)
	{ 
		document.getElementById('lateral').style.height = h+'px';
		document.getElementById('cos').style.minHeight = h+'px';
	}

	document.getElementById('cos').style.border = '1px solid white';
	
	if(rs > 4) 
	{
		h = parseInt(document.getElementById('cos').offsetHeight) + parseInt(170);
		document.getElementById('cos').style.height = h+'px';
	}

	if(h <= document.getElementById('cos').offsetHeight) document.getElementById('lateral').style.height = document.getElementById('cos').offsetHeight+'px';
}

function alturaWom(idioma)
{ 	
	switch(idioma)
	{
		case 'esp': var h = parseInt(document.getElementById('recomendacion').offsetHeight) + parseInt(document.getElementById('blog').offsetHeight)  + parseInt(document.getElementById('socialMedia').offsetHeight)  + parseInt(document.getElementById('activityFacebook').offsetHeight)  + parseInt(document.getElementById('activityTwitter').offsetHeight) + parseInt(500); break;
		
		case 'eng': var h = parseInt(document.getElementById('recomendacion').offsetHeight) + parseInt(document.getElementById('blog').offsetHeight)  + parseInt(document.getElementById('socialMediaEng').offsetHeight)  + parseInt(document.getElementById('activityFacebook').offsetHeight)  + parseInt(document.getElementById('activityTwitter').offsetHeight) + parseInt(400); break;

		case 'cat': var h = parseInt(document.getElementById('recomendacion').offsetHeight) + parseInt(document.getElementById('blog').offsetHeight)  + parseInt(document.getElementById('socialMediaCat').offsetHeight)  + parseInt(document.getElementById('activityFacebook').offsetHeight)  + parseInt(document.getElementById('activityTwitter').offsetHeight) + parseInt(400); break;
	
		default: break;
	}
	
	h = parseInt(h) + parseInt(120);
	
	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;
	
	if(ieVer != 7 && ieVer != 8)
	{ 
		document.getElementById('lateral').style.height = h+'px';
		document.getElementById('cos').style.minHeight = h+'px';
	}

	document.getElementById('cos').style.border = '1px solid white';
}

function alturaBusqueda(idioma)
{ 	
	switch(idioma)
	{
		case 'esp': var h = parseInt(document.getElementById('recomendacion').offsetHeight) + parseInt(document.getElementById('blog').offsetHeight)  + parseInt(document.getElementById('socialMedia').offsetHeight)  + parseInt(document.getElementById('activityFacebook').offsetHeight)  + parseInt(document.getElementById('activityTwitter').offsetHeight) + parseInt(400); break;
		
		case 'eng': var h = parseInt(document.getElementById('recomendacion').offsetHeight) + parseInt(document.getElementById('blog').offsetHeight)  + parseInt(document.getElementById('socialMediaEng').offsetHeight)  + parseInt(document.getElementById('activityFacebook').offsetHeight)  + parseInt(document.getElementById('activityTwitter').offsetHeight) + parseInt(400); break;

		case 'cat': var h = parseInt(document.getElementById('recomendacion').offsetHeight) + parseInt(document.getElementById('blog').offsetHeight)  + parseInt(document.getElementById('socialMediaCat').offsetHeight)  + parseInt(document.getElementById('activityFacebook').offsetHeight)  + parseInt(document.getElementById('activityTwitter').offsetHeight) + parseInt(400); break;
	
		default: break;
	}
	
	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;
	
	if(ieVer != 7 && ieVer != 8)
	{ 
		document.getElementById('lateral').style.height = h+'px';
		document.getElementById('cos').style.minHeight = h+'px';
	}

	document.getElementById('cos').style.border = '1px solid white';
	
	h = parseInt(document.getElementById('cos').offsetHeight) + parseInt(250);
	document.getElementById('cos').style.height = h+'px';

	if(h <= document.getElementById('cos').offsetHeight) document.getElementById('lateral').style.height = document.getElementById('cos').offsetHeight+'px';
}



function alturaContacto()
{
	document.getElementById('cosContact').style.minHeight = '870px';
	document.getElementById('cosContact').style.height = '870px';
	
	document.getElementById('contacto').style.height = '870px';
	
	document.body.style.height = '990px';
	document.body.style.minHeight = '990px';
	document.body.style.maxHeight = '990px';
	
	document.body.style.overflow = 'hidden';
	
	document.getElementById('footer').style.position = 'absolute';
	document.getElementById('footer').style.top = '870px';
}


function alturaCampanas(rs)
{
	var top = '-19';

	var campanas = setInterval(function() { movCampanas(top), top++; }, 25);
 
	function movCampanas(top)
	{ 
		document.getElementById('submenuCampanas').style.top = top+'px';		

		if(top < 0) document.getElementById('submenuCampanas').style.top = top+'px';
		else		clearInterval (campanas); 
	}
	
	if(rs < 3)
	{ 
		if (window.innerHeight)	var h = window.innerHeight;
		else					var h = document.body.clientHeight;

		document.body.style.height = h+'px';
		document.body.style.minHeight = h+'px';
		document.body.style.maxHeight = h+'px';
		document.body.style.overflow = 'hidden';
		
		h = parseInt(h) - parseInt(99);
		
		document.getElementById('footer').style.position = 'absolute';
		document.getElementById('footer').style.top = h+'px';
	}
	else
	{
		var h = Math.ceil((parseInt(rs) - parseInt(3)) / 2);
		
		h = parseInt(h * 310) + parseInt(800);
		
		document.getElementById('campanas').style.minHeight = h+'px';
		document.getElementById('campanas').style.height = h+'px';
		
		
		h = parseInt(h) + parseInt(125);
		
		document.body.style.height = h+'px';
		document.body.style.minHeight = h+'px';
		document.body.style.maxHeight = h+'px';
		document.body.style.overflow = 'hidden';
		
		h = parseInt(h) - parseInt(99);

		document.getElementById('footer').style.position = 'absolute';
		document.getElementById('footer').style.top = h+'px';
	
		h = parseInt(h) + parseInt(124);
		document.getElementById('paginacion').style.top = '0px';

	}
}

function alturaProyectoDetalle(rs, embed)
{ 
	if(document.getElementById('left').offsetHeight < document.getElementById('right').offsetHeight) 	var h = document.getElementById('right').offsetHeight;
	else																								var h = document.getElementById('left').offsetHeight;
	
	h = parseInt(h) + parseInt(365);

	document.getElementById('campanasDetalle').style.height = h+'px';
	document.getElementById('campanasDetalle').style.minHeight = h+'px';

	document.getElementById('contenedor').style.height = h+'px';
	document.getElementById('contenedor').style.minHeight = '915px';
	
	h = document.getElementById('contenedor').style.height;
	
	h = h.replace("px", "");

	if(h < 700)
	{
		document.getElementById('campanasDetalle').style.height = '606px';
		document.getElementById('campanasDetalle').style.minHeight = '606px';
		
		document.getElementById('contenedor').style.height = '800px'; 	
		document.getElementById('contenedor').style.minHeight = '800px';
	}

	if(embed == 2)
	{
		if(rs == 0)	document.getElementById('footer').style.top = '-193px';
		else		document.getElementById('footer').style.top = '-193px';
	}
	else if(embed == 1)
	{
		if(rs == 0)	document.getElementById('footer').style.top = '-170px';
		else		document.getElementById('footer').style.top = '-193px';
	}
	else
	{
		if(rs == 0)	document.getElementById('footer').style.top = '0px';
		else		document.getElementById('footer').style.top = '0px';
	}
}


function alturaServicios(rs)
{ 
	var top = '-19';

	var servicios = setInterval(function() { movServicios(top), top++; }, 25);

	function movServicios(top)
	{
		document.getElementById('submenuServicios').style.top = top+'px';		

		if(top < 0) document.getElementById('submenuServicios').style.top = top+'px';
		else		clearInterval (servicios); 
	}

	if(rs < 2)
	{ 
		if (window.innerHeight)	var h = window.innerHeight;
		else					var h = document.body.clientHeight;


		document.body.style.height = h+'px';
		document.body.style.minHeight = h+'px';
		document.body.style.maxHeight = h+'px';
		document.body.style.overflow = 'hidden';
		
		h = parseInt(h) - parseInt(99);
		
		document.getElementById('footer').style.position = 'absolute';
		document.getElementById('footer').style.top = h+'px';
	}
	else
	{
		var h = Math.ceil((parseInt(rs) - parseInt(1)) / 2);

		h = parseInt(h * 305) + parseInt(530);
		
		document.getElementById('servicios').style.minHeight = h+'px';
		document.getElementById('servicios').style.height = h+'px';
		
		h = parseInt(h) + parseInt(100);
		
		document.body.style.height = h+'px';
		document.body.style.minHeight = h+'px';
		document.body.style.maxHeight = h+'px';
		document.body.style.overflow = 'hidden';
		
		h = parseInt(h) - parseInt(99);

		document.getElementById('footer').style.position = 'absolute';
		document.getElementById('footer').style.top = h+'px';
	}
}


function alturaEquipo(rs)
{
	var h = Math.ceil((rs / 3)) * 57;
	h = parseInt(h) + parseInt(660);

	document.getElementById('equipo').style.minHeight = h+'px';
	document.getElementById('equipo').style.height = h+'px';
}


function mostrarWom() { document.getElementById('ocultado').style.display = 'block'; }

function ocultarWom() { document.getElementById('ocultado').style.display = 'none'; }

function controlaMagazine(idioma)
{
	var pasa = 1;

	switch(idioma)
	{
		case 'esp':	var nombre = 'Nombre';
					var apellido = 'Apellidos';
					var incorrecto = 'Campo incorrecto';
					
					break;
					
		case 'eng': var nombre = 'Name';
					var apellido = 'Surname';
					var incorrecto = 'Incorrect field';
					
					break;
					
		case 'cat':	var nombre = 'Nom';
					var apellido = 'Cognoms';
					var incorrecto = 'Camp incorrecte';
					
					break;
	}

	if(document.formMagazine.contact_nombre.value == nombre || document.formMagazine.contact_nombre.value == incorrecto) 		{ pasa = 0; document.formMagazine.contact_nombre.value = incorrecto; document.formMagazine.contact_nombre.style.color = 'red'; }
	if(document.formMagazine.contact_apellido.value == apellido || document.formMagazine.contact_apellido.value == incorrecto)	{ pasa = 0; document.formMagazine.contact_apellido.value = incorrecto; document.formMagazine.contact_apellido.style.color = 'red'; }
	if(!valida(document.formMagazine.contact_email.value))																		{ pasa = 0; document.formMagazine.contact_email.value = incorrecto; document.formMagazine.contact_email.style.color = 'red'; }

	if(pasa == 1) document.formMagazine.submit();
}


function controlaMagazineLateral(idioma)
{
	var pasa = 1;

	switch(idioma)
	{
		case 'esp':	var nombre = 'Nombre';
					var apellido = 'Apellidos';
					var incorrecto = 'Campo incorrecto';
					
					break;
					
		case 'eng': var nombre = 'Name';
					var apellido = 'Surname';
					var incorrecto = 'Incorrect field';
					
					break;
					
		case 'cat':	var nombre = 'Nom';
					var apellido = 'Cognoms';
					var incorrecto = 'Camp incorrecte';
					
					break;
	}

	if(document.formMagazine2.nombre.value == nombre || document.formMagazine2.nombre.value == incorrecto) 			{ pasa = 0; document.formMagazine2.nombre.value = incorrecto; document.formMagazine2.nombre.style.color = 'red'; }
	if(document.formMagazine2.apellido.value == apellido || document.formMagazine2.apellido.value == incorrecto)	{ pasa = 0; document.formMagazine2.apellido.value = incorrecto; document.formMagazine2.apellido.style.color = 'red'; }
	if(!valida(document.formMagazine2.email.value))																	{ pasa = 0; document.formMagazine2.email.value = incorrecto; document.formMagazine2.email.style.color = 'red'; }

	if(pasa == 1) document.formMagazine2.submit();
}



<!-- Validación del formulario -->
function valida(mail){
tmp = mail.split("@");
if(tmp.length > 1)
{
	tmp2 = tmp[1].split(".");
	if(tmp2.length > 1)		return true;
	else					return false;
	
}
else	return false;
}

function controlaContacto(idioma)
{
	switch(idioma)
	{
		case 'esp':	var nombre = 'Nombre';
					var apellidos = 'Apellidos';
					var telefono = 'Teléfono';
					var incorrecto = 'campo incorrecto';
					var error1 = 'Tienes que seleccionar un archivo';
					var error2 = 'Tienes que seleccionar un archivo con la extensión correcta';
					
					break;	

		case 'eng':	var nombre = 'Name';
					var apellidos = 'Surname';
					var telefono = 'Phone number';
					var incorrecto = 'incorrect field';
					var error1 = 'You must choice an archive';
					var error2 = 'You must choice an archiv with an extension correct';
				
					
					break;	

		case 'cat':	var nombre = 'Nom';
					var apellidos = 'Cognoms';
					var telefono = 'Telèfon';
					var incorrecto = 'camp incorrecte';
					var error1 = 'Has de seleccinar un arxiu';
					var error2 = 'Has de seleccionar un arxiu amb l\'extensió correcta';
				
					break;	
	}
	
	var pasa = 1

	if(document.contacto.nombre.value == nombre || document.contacto.nombre.value == incorrecto) 		{ pasa = 0; document.contacto.nombre.value = incorrecto; document.contacto.nombre.style.color = 'red'; }
	if(document.contacto.apellido.value == apellidos || document.contacto.apellido.value == incorrecto)	{ pasa = 0; document.contacto.apellido.value = incorrecto; document.contacto.apellido.style.color = 'red'; }
	if(!valida(document.contacto.mail.value))															{ pasa = 0; document.contacto.mail.value = incorrecto; document.contacto.mail.style.color = 'red'; }
	if(document.contacto.telefono.value != telefono && document.contacto.telefono.value != '') 
	{
		if(!/^([0-9])*$/.test(document.contacto.telefono.value) || document.contacto.telefono.value.length < 9)		{ pasa = 0; document.contacto.telefono.value = incorrecto; document.contacto.telefono.style.color = 'red'; }
	}
	
	if(document.contacto.tipo.value == 'talentos')
	{ 
		if(document.contacto.file.value == '' || document.contacto.file.value == incorrecto)	{ pasa = 0; alert(error1); }
		else
		{
			var archivo = document.contacto.file.value;
			var extension = (archivo.substring(archivo.lastIndexOf("."))).toLowerCase();

			if(extension != ".pdf" && extension != ".txt" && extension != ".doc")				{ pasa = 0; alert(error2); }	
		}
	}
	
	if(pasa == 1) document.contacto.submit();
}

function imgProyecto(id, rs, height)
{
	rs = parseInt(rs) + parseInt(1);
	
	height = parseInt(height) + parseInt(8);
	
	for(i = 0; i < rs; i++)
	{
		if(id == i)
		{ 
			document.getElementById('botones').style.top = height+'px';
			document.getElementById('foto'+i).style.display = 'block';
		}
		else	document.getElementById('foto'+i).style.display = 'none';
	}	
}

//Hover del titulo del proyecto, cuando se pasa por encima de la img (Campañas y servicios)
function hoverColor(id)   			{ document.getElementById('proy'+id).style.color = '#41a0cf'; }

function noHoverColor(id) 			{ document.getElementById('proy'+id).style.color = '#666'; }

function noHoverColorServicios(id) 	{ document.getElementById('proy'+id).style.color = '#fff'; }


//Apartado equipo: mostrar contenedores y links
function socioHover(id) 
{
	document.getElementById('socio'+id).style.backgroundColor = '#333';
	document.getElementById('socio'+id).style.border = '1px solid #cbcbcb';
	document.getElementById('link'+id).style.border = '1px solid #cbcbcb';
}

function socioNoHover(id)  
{
	document.getElementById('socio'+id).style.backgroundColor = '#666';
	document.getElementById('socio'+id).style.border = '1px solid #666';
}

function socioEntra(id)
{
	document.getElementById('link'+id).style.border = '1px solid #cbcbcb';
	document.getElementById('linkedin'+id).style.display = 'block';
	document.getElementById('twitter'+id).style.display = 'block';
}

function socioSale(id)
{
	document.getElementById('link'+id).style.border = '1px solid #666';
	document.getElementById('linkedin'+id).style.display = 'none';
	document.getElementById('twitter'+id).style.display = 'none';
}

function equipoHover(id) 
{
	document.getElementById('equipo'+id).style.backgroundColor = '#666';
	document.getElementById('equipo'+id).style.border = '1px solid #cbcbcb';
	document.getElementById('equipoLink'+id).style.border = '1px solid #cbcbcb';
}

function equipoNoHover(id)  
{
	document.getElementById('equipo'+id).style.backgroundColor = '#333';
	document.getElementById('equipo'+id).style.border = '1px solid #333';
}

function equipoEntra(id)
{
	document.getElementById('equipoLink'+id).style.border = '1px solid #cbcbcb';
	document.getElementById('equipoLinkedin'+id).style.display = 'block';
	document.getElementById('equipoTwitter'+id).style.display = 'block';
}

function equipoSale(id)
{
	document.getElementById('equipoLink'+id).style.border = '1px solid #333';
	document.getElementById('equipoLinkedin'+id).style.display = 'none';
	document.getElementById('equipoTwitter'+id).style.display = 'none';
}


function recomendaciones(i, rs)
{
	var centrado = parseInt(147) - (document.getElementById('reco'+i).offsetHeight);
	centrado = Math.ceil(centrado / 2);
	
	document.getElementById('reco'+i).style.top = centrado+'px';
	
	if(document.getElementById('reco0').style.opacity == '')
	{
		var color = 110;
		var suma = 3;
		
		document.getElementById('reco'+i).style.opacity = '1';
		document.getElementById('reco'+i).style.filter = 'alpha(opacity=1)';
		document.getElementById('reco'+i).style.MozOpacity = '1';
		document.getElementById('reco'+i).style.KHTMLOpacity = '1';
		
		oculta = setInterval(function() { ocultar(color, suma, i, rs), color -= suma; }, 120);
	}
	else
	{
		var color = 0;
		var suma = 3;

		document.getElementById('reco'+i).style.opacity = '0';
		document.getElementById('reco'+i).style.filter = 'alpha(opacity=0)';
		document.getElementById('reco'+i).style.MozOpacity = '0';
		document.getElementById('reco'+i).style.KHTMLOpacity = '0';

		muestra = setInterval(function() { mostrar(color, suma, i, rs), color += suma; }, 120);
	}
}

function mostrar(color, suma, i, rs)
{ 
	if (!(color>=110)) 
	{
		document.getElementById('reco'+i).style.filter = 'alpha(opacity='+color+')';
		document.getElementById('reco'+i).style.opacity = color /100;
		document.getElementById('reco'+i).style.MozOpacity = color /100;
		document.getElementById('reco'+i).style.KHTMLOpacity = color /100;

		document.getElementById('reco'+i).style.filter = 'alpha(opacity='+color+')';
		document.getElementById('reco'+i).style.opacity = color /100;
		document.getElementById('reco'+i).style.MozOpacity = color /100;
		document.getElementById('reco'+i).style.KHTMLOpacity = color /100;
	}
	else
	{
		clearInterval(muestra); 

		var color = 110;
		var suma = 3;
		
		oculta = setInterval(function() { ocultar(color, suma, i, rs), color -= suma; }, 120);
	}
}

function ocultar(color, suma, i, rs)
{
	if (!(color<=0)) 
	{
		document.getElementById('reco'+i).style.filter = 'alpha(opacity='+color+')';
		document.getElementById('reco'+i).style.opacity = color /100;
		document.getElementById('reco'+i).style.MozOpacity = color /100;
		document.getElementById('reco'+i).style.KHTMLOpacity = color /100;

		document.getElementById('reco'+i).style.filter = 'alpha(opacity='+color+')';
		document.getElementById('reco'+i).style.opacity = color /100;
		document.getElementById('reco'+i).style.MozOpacity = color /100;
		document.getElementById('reco'+i).style.KHTMLOpacity = color /100;
	}
	else
	{
		clearInterval(oculta); 

		document.getElementById('reco'+i).style.filter = 'alpha(opacity=0)';
		document.getElementById('reco'+i).style.opacity = 0;
		document.getElementById('reco'+i).style.MozOpacity = 0;
		document.getElementById('reco'+i).style.KHTMLOpacity = 0;

		if(i == (rs - 1)) i = 0; 
		else ++i; 

		recomendaciones(i, rs);
	}
}

function banner(rs)
{
	var w = 300 * rs;
	document.getElementById('bannerUl').style.width = w+'px';
	
	if(document.getElementById('bannerUl').style.left == '') document.getElementById('bannerUl').style.left = '0px';
	
	var i = document.getElementById('bannerUl').style.left;
	i = (i.replace("px", ""));
	
	var empieza = ((rs-1) * (-300));
	if(i == empieza)	volver = setInterval(function() { bannerMov2(empieza), empieza = (empieza+10), para++; }, 25);
	else
	{
		var para = 0;

		bannerW = setInterval(function() { bannerMov(i, para, rs), i = (i-10), para++; }, 25);
	
		function bannerMov(i, para, rs)
		{
			document.getElementById('bannerUl').style.left = i+'px';
		
			if(para == 30)clearInterval(bannerW);
		}
	}
}

function bannerMov2(empieza)
{
	document.getElementById('bannerUl').style.left = empieza+'px';
	
	if(empieza == 0) clearInterval(volver);
}



function aparecerCompartenos(opcion)
{
	if(opcion == 0)	document.getElementById('ocultoCompartenos').style.display = 'block';
	else			document.getElementById('ocultoCompartenos').style.display = 'none';
}


/* ventana modal */
function ventanaModal(id)
{
	document.getElementById("light"+id).style.display='block'; 
	document.getElementById("fade"+id).style.display='block';
}

function overlay(id)
{
	document.getElementById("light"+id).style.display='none';
	document.getElementById("fade"+id).style.display='none';
}

function cerrar(id)
{
	document.getElementById("light"+id).style.display='none';
	document.getElementById("fade"+id).style.display='none';
}


/* ventana modal Recomendaciones */
function ventanaModalRecomendacion()
{
	document.getElementById("light").style.display='block'; 
	document.getElementById("fade").style.display='block';
}

function overlayRecomendacion()
{
	document.getElementById("light").style.display='none';
	document.getElementById("fade").style.display='none';
}

function cerrarRecomendacion()
{
	document.getElementById("light").style.display='none';
	document.getElementById("fade").style.display='none';
}


function cv(idioma)
{
	if(document.contacto.tipo.value == 'talentos')	mostrarCV(idioma);
	else											ocultarCV(idioma);
}

function mostrarCV(idioma)
{ 
	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;
	
	document.getElementById('oculto').style.display = 'block';
	document.getElementById('final').style.top = '-1px';
	
	if(ieVer == 7)
	{
		document.getElementById('comentario').style.marginTop = '-77px';
		
		if(idioma == 'eng')	document.getElementById('enviarEng').style.top = '50px'; 
		else 				document.getElementById('enviar').style.top = '50px'; 
	}
	else
	{
		document.getElementById('comentario').style.top = '0px';
		
		if(idioma == 'eng')	document.getElementById('enviarEng').style.top = '-11px'; 
		else 				document.getElementById('enviar').style.top = '-11px'; 
	}
}

function ocultarCV(idioma)
{
	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;
	
	document.getElementById('oculto').style.display = 'none';
	document.getElementById('final').style.top = '60px';
	
	if(idioma == 'eng')	document.getElementById('enviarEng').style.top = '50px'; 
	else				document.getElementById('enviar').style.top = '50px'; 

	if(ieVer == 7)	document.getElementById('comentario').style.marginTop = '0px';
	else			document.getElementById('comentario').style.top = '61px';
}

/* ventana modal WOM */
function modalWom()
{
	document.getElementById("lightWom").style.display='block'; 
	document.getElementById("fadeWom").style.display='block';
}

function overlayWom()
{
	document.getElementById("lightWom").style.display='none';
	document.getElementById("fadeWom").style.display='none';
}

function cerrarWom()
{
	document.getElementById("lightWom").style.display='none';
	document.getElementById("fadeWom").style.display='none';
}


