<!--// Begin



//slider's width
var swidth="100%";

//slider's height
var sheight=80

//slider's speed
var sspeed=1

//messages: change to your own; use as many as you'd like; set up Hyperlinks to URLs as you normally do: <a target=... href="... URL ...">..message..</a>
var singletext=new Array()
singletext[0]='<div align="left"><h4><center>Hotel specials of the Month</center></h4><a href="hotel/20020612215214681008.html"></a><table width="100%" border="0"><tr>    <td width="10%"><a href="hotel/20020612215214681008.html"><img src="images_disp/a20020612215214681008.jpg" border="0" alt="pic" width="132" height="82"></a></td><td align="left"><b><a href="hotels/20020612215214681008.html" class=leftlink>Avlida Hotel - Paphos, Cyprus</a></b></td></tr><tr><td colspan="2"><a href="hotel/20020612215214681008.html" class=leftlink>4* All Inclusive in Cyprus from £35.00 per person per night</a></td></tr></table></div>';singletext[1]='<div align="left"><a href="hotel/1912.html"></a> <table width="100%" border="0"><tr><td align="left"><div align="right"><b><a href="hotels/1912.html" class=leftlink>Serhan Hotel - Bodrum, Turkey 3*</a>&nbsp;&nbsp;<a href="hotel/1912.html"><img src="images_disp/a1912.jpg" border="0" alt="pic" width="132" height="82"></a></b></div></td></tr><tr><td><a href="hotel/1912.html" class=leftlink>20% discount for holidays taken between 20.08.06-27.09.06 on bed and breakfast basis</a></td></tr></table></div>';singletext[2]='<div align="left"><a href="hotel/1108.html"></a><table width="100%" border="0"><tr>    <td width="10%"><a href="hotel/1108.html"><img src="images_disp/a1108.jpg" border="0" alt="pic" width="132" height="82"></a></td><td align="left"><b><a href="hotels/1108.html" class=leftlink>Colon Guanahani Hotel, Costa Adeje, Tenerife 4*</a></b></td></tr><tr><td colspan="2"><a href="hotel/1108.html" class=leftlink>Half Board from only £42.00 pppn</a></td></tr></table></div>';singletext[3]='<div align="left"><a href="hotel/20060711121619217028.html"></a> <table width="100%" border="0"><tr><td align="left"><div align="right"><b><a href="hotels/20060711121619217028.html" class=leftlink>Kos Aqua Club Hotel</a>&nbsp;&nbsp;<a href="hotel/20060711121619217028.html"><img src="images_disp/a20060711121619217028.jpg" border="0" alt="pic" width="132" height="82"></a></b></div></td></tr><tr><td><a href="hotel/20060711121619217028.html" class=leftlink>4.5* All Inclusive in Kos from £27 per person per night + FREE KIDS</a></td></tr></table></div>';

if (singletext.length>1)
  i=1
else
  i=0

function start(){
  if (document.all){
    ieslider1.style.top=sheight
    iemarquee(ieslider1)
  }
  else if (document.layers){
    document.ns4slider.document.ns4slider1.top=sheight
    document.ns4slider.document.ns4slider1.visibility='show'
    ns4marquee(document.ns4slider.document.ns4slider1)
  }
  else if (document.getElementById&&!document.all){
    document.getElementById('ns6slider1').style.top=sheight
    ns6marquee(document.getElementById('ns6slider1'))
  }
}

function iemarquee(whichdiv){
  iediv=eval(whichdiv)
  if (iediv.style.pixelTop>0&&iediv.style.pixelTop<=sspeed){
    iediv.style.pixelTop=0
    setTimeout("iemarquee(iediv)",40)
  }
  if (iediv.style.pixelTop>=sheight*-1 - 45){
    iediv.style.pixelTop-=sspeed
    setTimeout("iemarquee(iediv)",40)
  }
  else{
    iediv.style.pixelTop=sheight
    iediv.innerHTML=singletext[i]
    if (i==singletext.length-1)
      i=0
    else
      i++
  }
}

function ns4marquee(whichlayer){
  ns4layer=eval(whichlayer)
  if (ns4layer.top>0&&ns4layer.top<=sspeed){
    ns4layer.top=0
    setTimeout("ns4marquee(ns4layer)",40)
  }
  if (ns4layer.top>=sheight*-1){
    ns4layer.top-=sspeed
    setTimeout("ns4marquee(ns4layer)",40)
  }
  else{
    ns4layer.top=sheight
    ns4layer.document.write(singletext[i])
    ns4layer.document.close()
    if (i==singletext.length-1)
      i=0
    else
      i++
  }
}

function ns6marquee(whichdiv){
  ns6div=eval(whichdiv)
  if (parseInt(ns6div.style.top)>0&&parseInt(ns6div.style.top)<=sspeed){
    ns6div.style.top=0
    setTimeout("ns6marquee(ns6div)",40)
  }
  if (parseInt(ns6div.style.top)>=sheight*-1){
    ns6div.style.top=parseInt(ns6div.style.top)-sspeed
    setTimeout("ns6marquee(ns6div)",0)
  }
  else{
    ns6div.style.top=sheight
    ns6div.innerHTML=singletext[i]
    if (i==singletext.length-1)
      i=0
    else
      i++
    }
  }

function ajaxFunction(country)
{
  var xmlHttp;
  try
  {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
  }
  catch (e)
  {
    // Internet Explorer
    try
    {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
    catch (e)
    {
      try{
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
      catch (e)
      {
        alert("Your browser does not support AJAX!");
        return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
  {
    if(xmlHttp.readyState==4)
    {
      document.getElementById("myForm").style.cursor = "default";
      document.getElementById("locations").innerHTML=xmlHttp.responseText;
      ajaxFunction2(document.myForm.location.value);
    }
  }
  document.getElementById("locations").innerHTML = "<select disabled='disabled' style='width:280px;' name='location' onchange='ajaxFunction2(document.myForm.location.value);' class=button><option value=''>please wait...</option></select>";
  document.getElementById("hotels").innerHTML = "<select  disabled='disabled' style='width:280px;' name='estab_name_dat'  class=button><option value=''>please wait...</option></select>"; 
  document.getElementById("myForm").style.cursor = "wait";
  xmlHttp.open("GET","cgi-bin/ddl_ajax.pl?c="+country,true);
  xmlHttp.send(null);
}

//==============================================================================
function ajaxFunction2(location)
{

  var xmlHttp2;
  try
  {
    // Firefox, Opera 8.0+, Safari
    xmlHttp2=new XMLHttpRequest();
  }
  catch (e)
  {
    // Internet Explorer
    try
    {
      xmlHttp2=new ActiveXObject("Msxml2.XMLHTTP");
    }
    catch (e)
    {
      try{
        xmlHttp2=new ActiveXObject("Microsoft.XMLHTTP");
      }
      catch (e)
      {
        alert("Your browser does not support AJAX!");
        return false;
      }
    }
  }
  xmlHttp2.onreadystatechange=function()
  {
    if(xmlHttp2.readyState==4)
    {
      
      //alert(xmlHttp2.responseText);
       document.getElementById("myForm").style.cursor = "default";
       document.getElementById("hotels").innerHTML=xmlHttp2.responseText;
    }
  }
  document.getElementById("hotels").innerHTML = "<select  disabled='disabled' style='width:280px;' name='estab_name_dat'  class=button><option value=''>please wait...</option></select>"; 
  document.getElementById("myForm").style.cursor = "wait";
  xmlHttp2.open("GET","cgi-bin/ddl_ajax.pl?l="+location,true);
  xmlHttp2.send(null);
}


function onSubmit(){
 
  
  action = "http://www.worldwidehotelsonline.net/cgi-bin/main.pl";
  //alert(document.myForm.children.value);
  if(document.myForm.children.value != ""){
    action += "?type=Rooms_check";
  }else{
    action += "?type=search_properties";  
  }  
  action += "&Country_in="+document.myForm.Country_in.value;
  var los_dest_array = document.myForm.location.value.split("=");
  action += "&location="+los_dest_array[1];
  action += "&destination="+los_dest_array[0];
  if(document.myForm.estab_name_dat)
     action += "&establishmentcode="+document.myForm.estab_name_dat.value;
  else
     action += "&establishmentcode=788";
  action += "&dayin="+document.myForm.dayin.value;
  action += "&monthin="+document.myForm.monthin.value;
  action += "&yearin="+document.myForm.yearin.value;
  action += "&nights="+document.myForm.nights.value;
  action += "&adults="+document.myForm.adults.value;
  action += "&children="+document.myForm.children.value;
  action += "&rooms="+document.myForm.rooms.value;
  
  document.location.href = action;
  //return true;
  
}


//  End -->
