<!--
/*  You can get this script and many others 
    by visiting JavaScript City at: http://www.javascriptcity.com . */

p4ict_width=1;   
p4ict_height=1;   
border_size=1;   
alignment=1;      



if (document.images)
 {
     p4ict1= new Image(p4ict_width,p4ict_height);
     p4ict1.src="../advertise_pics/";  
     p4ict2= new Image(p4ict_width,p4ict_height); 
     p4ict2.src="../advertise_pics/"; 
     p4ict3= new Image(p4ict_width,p4ict_height);
     p4ict3.src="../advertise_pics/";  
     p4ict4= new Image(p4ict_width,p4ict_height);
     p4ict4.src="../advertise_pics/";  
     p4ict5= new Image(p4ict_width,p4ict_height);
     p4ict5.src="../advertise_pics/"; 
 }    

/* define banner urls */

urlp4ict1="http://www.casahotel.net";
urlp4ict2="http://www.casahotel.net";
urlp4ict3="http://www.casahotel.net";
urlp4ict4="http://www.casahotel.net";
urlp4ict5="http://www.casahotel.net";

/* no need to edit past this point (unless you want to add more image and url slots) */

if (alignment==1)
 {
  cent_it="<CENTER>";
  cent_it2="<\/CENTER>";
 }
else
 {
  cent_it="";
  cent_it2="";
 }
 
function get_random(maxNum)
{
  if (Math.random && Math.round)
  {
    var ranNum= Math.round(Math.random()*(maxNum-1));
    ranNum+=1;
    return ranNum;
  }
  else
  {
  today= new Date();
  hours= today.getHours();
  mins=   today.getMinutes();
  secn=  today.getSeconds();
  if (hours==19)
   hours=18;
  var ranNum= (((hours+1)*(mins+1)*secn)%maxNum)+1;
  return ranNum;
  }
}

function advertise3()
{
 if (document.images)
 {
  var choose_one= get_random(5);  
  choose_one--;

  var picts4= new Array(5) 
   picts4[0]=p4ict1.src;
   picts4[1]=p4ict2.src;
   picts4[2]=p4ict3.src;
   picts4[3]=p4ict4.src;
   picts4[4]=p4ict5.src; 

  var p4url= new Array(5)
  p4url[0]=urlp4ict1;
  p4url[1]=urlp4ict2;
  p4url[2]=urlp4ict3;
  p4url[3]=urlp4ict4;
  p4url[4]=urlp4ict5;

  document.write(cent_it+"<A HREF='"+p4url[choose_one]+"'><IMG SRC='"+picts4[choose_one]+"' width='"+p4ict_width+"' height='"+p4ict_height+"' border='"+border_size+"'></A>"+cent_it2);
 }
}
//-->
