function go(url) {
  document.getElementById("goform").action = url;
  document.goform.submit();
}
function AccommodationSearchEN()
{
document.getElementById('acsearchbutton').src = "/images/buttons/en/search.gif";
}
function AccommodationSearchES()
{
document.getElementById('acsearchbutton').src = "/images/buttons/es/search.gif";
}
function geturl(from,to) {
   var urlen =new Array(
   "/",
   "/default.htm",
   "/en/flights.htm",
   "/en/flights_ireland.htm",
   "/en/flights_spain.htm",
   "/en/flights_germany.htm",
   "/en/flights_netherlands.htm",
   "/en/attractions.htm",
   "/en/terms.htm",
   "/en/sitemap.htm"
   );

   var urles =new Array(
   "/default_es.htm",
   "/default_es.htm",
   "/es/vuelos_reinounido.htm",
   "/es/vuelos_irlanda.htm",
   "/es/vuelos.htm",
   "/es/vuelos_alemania.htm",
   "/es/vuelos_holanda.htm",
   "/es/atracciones.htm",
   "/es/terminos.htm",
   "/es/mapa_web.htm"
   );

   url=location.href;
   url3="";

   l = url.length;
   i = (url).indexOf( '/', 8 ); 
   url2 = url.substr(i,l);

   if (from==1 && to==2) {   
     for(i=0;i<100;i++) {
        if (urlen[i]==url2) {
            url3=urles[i];
            break;
        }
     }
   }

   if (from==2 && to==1) {   
     for(i=0;i<100;i++) {
        if (urles[i]==url2) {
            url3=urlen[i];
            break;
        }
     }
   }

   if (url3=="") {
      l = url2.length;
      i = (url2).indexOf( '/', 1 ); 
      url4 = url2.substr(i,l);

      l = url4.length;
      i = (url4).indexOf( '/', 1 ); 
      if (i!=-1) {
         url5 = url4.substr(i,l);
         url6 = url4.substr(0,i);
         if (url6=="/attractions" && to==2) url6="/atracciones";
         if (url6=="/atracciones" && to==1) url6="/attractions";
         url4 = url6 + url5;
      }

      if (to==1)  url5="/en";
      if (to==2)  url5="/es";
      url3=url5+url4;
   }

   return(url3);
}

function vmouseY(evt) {
if (evt.pageY) return evt.pageY;
else if (evt.clientY)
   return evt.clientY + (document.documentElement.scrollTop ?
   document.documentElement.scrollTop :
   document.body.scrollTop);
else return null;
}

function vmouseX(evt) {
if (evt.pageX) return evt.pageX;
else if (evt.clientX)
   return evt.clientX + (document.documentElement.scrollLeft ?
   document.documentElement.scrollLeft :
   document.body.scrollLeft);
else return null;
}

function playvideo(hl,url,title,evt) {


  infowindow="";
  infowindow2="";
  var html="";

  infowindow += "<div><table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" width=\"425\" bgcolor=\"#EAEAFF\">"; 
  infowindow += "<tr><td valign=\"top\">";
  infowindow += "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" width=\"425\">"; 
  infowindow += "<tr><td bgcolor=\"#0000CC\"><p><strong><font color=\"#FFFFFF\">"+title+"</font></strong></p></td><td bgcolor=\"#0000CC\" align=\"right\" valign=\"top\"><a href=\"javascript:closevideo();\"><img border=\"0\" src=\"/images/closewindow.jpg\" width=\"21\" height=\"21\"></a></td></tr>";
  infowindow += "<tr><td bgcolor=\"#FFFFFF\" colspan=\"2\" valign=\"top\">";

  infowindow2 += "</td></tr>";
  infowindow2 += "</table>";
  infowindow2 += "</td></tr>";
  infowindow2 += "</table></div>";


  html+="<object width=\"425\" height=\"344\">";
  html+="<param name=\"movie\" value=\"";
  html+=url;
  html+="&amp;hl=en&amp;fs=1&amp;rel=0&amp;color1=0x006699&amp;color2=0x54abd6\"></param>";
  html+="<param name=\"allowFullScreen\" value=\"true\"></param>";
  html+="<param name=\"allowscriptaccess\" value=\"always\"></param>";
  html+="<embed src=\"";
  html+=url;
  html+="&amp;hl=en&amp;fs=1&amp;rel=0&amp;color1=0x006699&amp;color2=0x54abd6\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"425\" height=\"344\">";
  html+="</embed></object>";

  var yp1=evt.clientY;  // page position
  var yp2=vmouseY(evt) ;
  yp=yp2-yp1+150;

  document.getElementById("VIDEO").style.position = "absolute";
  document.getElementById("VIDEO").style.left = "300px";
  document.getElementById("VIDEO").style.top  = yp+"px";
  document.getElementById("VIDEO").innerHTML = infowindow+html+infowindow2;
  
}

function closevideo() {
  document.getElementById("VIDEO").innerHTML = "";
}
