// JavaScript Document
if (self.location.href.match( /\/([^/]+)$/ )) {
	var pagina = self.location.href.match( /\/([^/]+)$/ )[1];
}else{
	var pagina='index.asp';
}
if (pagina=='index.asp' || pagina=='index.asp#') {
	td1='			    <td>Home</td>';
}else{
	td1='			    <td><a href="index.asp">Home</a></td>';
}
if (pagina=='congreso.asp') {
	td2='			    <td>CONGRESO</td>';
}else{
	td2='			    <td><a href="congreso.asp">CONGRESO</a></td>';
}
if (pagina=='layoutStands.asp') {
	td3='			    <td>Layout Stands</td>';
}else{
	td3='			    <td><a href="layoutStands.asp">Layout Stands</a></td>';
}
if (pagina=='directorioDeExpositores.asp') {
	td4='			    <td>Directorio de Expositores</td>';
}else{
	td4='			    <td><a href="directorioDeExpositores.asp">Directorio de Expositores</a></td>';
}
if (pagina=='croquisLocalizacion.asp') {
	td5='			    <td>Croquis de Localización</td>';
}else{
	td5='			    <td><a href="croquisLocalizacion.asp">Croquis de Localización</a></td>';
}
if (pagina=='registro.asp') {
	td6='			    <td>Registro</td>';
}else{
	td6='			    <td><a href="registro.asp">Registro</a></td>';
}
if (pagina=='contactanos.asp' || pagina=='gracias.html' || pagina=='correoFalso.html') {
	td7='			    <td>Contáctanos</td>';
}else{
	td7='			    <td><a href="contactanos.asp">Contáctanos</a></td>';
}
if (pagina=='aa') {
	td8='			    <td>ICREA</td>';
}else{
	td8='			    <td><a href="http://www.icrea-international.org" target="_blank">ICREA</a></td>';
}





document.writeln('			<table width="100%" height="40px" border="0" cellspacing="0" cellpadding="0">');
document.writeln('			  <tr>');
document.writeln('			    <td id="mIzq">&nbsp;</td>');
document.writeln(td1);
document.writeln(td2);
document.writeln(td3);
document.writeln(td4);
document.writeln(td5);
document.writeln(td6);
document.writeln(td7);
document.writeln(td8);
document.writeln('			    <td id="mDer">&nbsp;</td>');
document.writeln('			  </tr>');
document.writeln('			</table>');



function calcHeight()
{
  //find the height of the internal page
  var the_height0=document.getElementById('the_iframe');
add=the_height0.contentWindow.document.getElementById("noticiasSugeridas").innerHTML;
  var the_height=document.getElementById('remp');
  the_height.innerHTML=add;
}
function calcHeight2()
{
  //find the height of the internal page
  var the_height0=document.getElementById('the_iframeDir');
add=the_height0.contentWindow.document.getElementById("directExp").innerHTML;
  var the_height=document.getElementById('rempDir');
  the_height.innerHTML=add;
}


function playVid()
{
addVid='<object id="FlashID2" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="545" height="308">\n	        	  <param name="movie" value="benidorm.swf">\n	        	  <param name="quality" value="high">\n	        	  <param name="wmode" value="opaque">\n    	 		  <param name="swfversion" value="8.0.35.0">\n	        	  <param name="expressinstall" value="Scripts\/expressInstall.swf">\n	        	  <object type="application\/x-shockwave-flash" data="benidorm.swf" width="545" height="308">\n	        	    <param name="quality" value="high">\n	        	    <param name="wmode" value="opaque">\n	        	    <param name="swfversion" value="8.0.35.0">\n	        	    <param name="expressinstall" value="Scripts\/expressInstall.swf">\n	        	    <div>\n	        	      <h4>Content on this page requires a newer version of Adobe Flash Player.<\/h4>\n	        	      <p><a href="http:\/\/www.adobe.com\/go\/getflashplayer"><img src="http:\/\/www.adobe.com\/images\/shared\/download_buttons\/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" \/><\/a><\/p>\n        	        <\/div>\n        	    <\/object>\n        	  <\/object>  ';


  var vidHotelVar=document.getElementById('vidHotel');
  vidHotelVar.innerHTML=addVid;
}

function cambFtVid()
{
	addVid='<div id="vidH" style="cursor:pointer;" onClick="playVid();"><img src="base\/hotelBenidorm.jpg" alt="HOTEL BENIDORM" width="545" height="308" border="0"><\/div>';

  var vidHotelVar=document.getElementById('vidHotel');
  vidHotelVar.innerHTML=addVid;
}

function ins(cu)
{
addVid='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=9,0,28,0" width="338" height="250">\n              <param name="movie" value="'+cu+'.swf">\n              <param name="allowFullScreen" value="true">\n              <param name="quality" value="high">\n              <param name="wmode" value="opaque">\n              <embed src="'+cu+'.swf" quality="high" wmode="opaque" allowFullScreen="true" pluginspage="http:\/\/www.adobe.com\/shockwave\/download\/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application\/x-shockwave-flash" width="338" height="250" style="border:2px; border-color:#C0CCE1; border-style:solid;"><\/embed>\n            <\/object>';


  var vidHotelVar=document.getElementById('entr');
  vidHotelVar.innerHTML=addVid;
}

function elim()
{
	addVid='<div id="vidH" style="cursor:pointer;" onClick="playVid();"><img src="base\/hotelBenidorm.jpg" alt="HOTEL BENIDORM" width="545" height="308" border="0"><\/div>';

  var vidHotelVar=document.getElementById('entr');
  vidHotelVar.innerHTML='';
}

function cambFechaVid(fva)
{
  var fv=document.getElementById('fechaV');
  fv.innerHTML=fva;
}


function muestra_formulario(cual) {
          var elElemento=document.getElementById(cual);
               elElemento.className = 'elementoVisible';
}
function oculta_formulario(cual) {
          var elElemento=document.getElementById(cual);
               elElemento.className = 'elementoOculto';
}

