// JavaScript Document//

function MuestraDiv(NombreDivMostrar,NombreImagenMostrar,Imagen)
{
		if (NombreDivMostrar!="Tex5"){
			document.getElementById("DIVAnonymous").innerHTML='';
		}else{
			document.getElementById("DIVAnonymous").innerHTML= '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="260" height="240"><param name="movie" value="flash/HS_Anonymous.swf"><param name="quality" value="high"><embed src="flash/HS_Anonymous.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="260" height="240"></embed></object>'
		}
		if (NombreDivMostrar!="Tex5"){
			document.getElementById("DIVBaratometrajes").innerHTML='';
		}else{
			document.getElementById("DIVBaratometrajes").innerHTML= '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="290" height="220"><param name="movie" value="flash/HS_Baratometrajes.swf"><param name="quality" value="high"><embed src="flash/HS_Baratometrajes.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="290" height="220"></embed></object>'
		}
		if (NombreDivMostrar!="Tex5"){
			document.getElementById("DIVTchang").innerHTML='';
		}else{
			document.getElementById("DIVTchang").innerHTML= '<object width="299" height="212"><param name="movie" value="http://www.youtube.com/v/HeR2VeXkATA&hl=es_ES&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/HeR2VeXkATA&hl=es_ES&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="299" height="212"></embed></object>'
		}
		
		document.getElementById("Tex1").style.display='none';
		document.getElementById("Tex2").style.display='none';
		document.getElementById("Tex3").style.display='none';
		document.getElementById("Tex4").style.display='none';
		document.getElementById("Tex5").style.display='none';
		document.getElementById("Img1").src='images/HS_men_01_off.gif';
		document.getElementById("Img2").src='images/HS_men_02_off.gif'; 
		document.getElementById("Img3").src='images/HS_men_03_off.gif'; 
		document.getElementById("Img4").src='images/HS_men_04_off.gif'; 
		document.getElementById("Img5").src='images/HS_men_05_off.gif'; 
		document.getElementById(NombreDivMostrar).style.display='';

		document.getElementById(NombreImagenMostrar).outerHTML = "<img id='"+NombreImagenMostrar+"' src='images/"+Imagen +"' border=0>";
}

function CargarFoto(img, ancho, alto){
  derecha=(screen.width-ancho)/2;
  arriba=(screen.height-alto)/2;

string="toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width="+ancho+",height="+alto+",left="+derecha+",top="+arriba+"";
  fin=window.open(img,"",string);
}

