var state = 'hidden';
var done = 'no';
function showhide(layer_ref) {

if (state == 'visible') {
state = 'hidden';
}
else {
state = 'visible';
}
if (document.all) { //IS IE 4 or 5 (or 6 beta)
eval( "document.all." + layer_ref + ".style.visibility = state");
}
if (document.layers) { //IS NETSCAPE 4 or below
document.layers[layer_ref].visibility = state;
}
if (document.getElementById && !document.all) {
maxwell_smart = document.getElementById(layer_ref);
maxwell_smart.style.visibility = state;
}
}
function writetable()
{
if (done == 'no'){
    document.write(" <a name='CONTACT'> </a><div id='conformu' style='position:absolute; top:103px; visibility:hidden;'>")
  document.write("<table class='maintable' cellpadding='0' cellspacing='0' align='center'>")
 document.write("<tr><th><h1 class='namelink'>Contact <a class='namelink' href='/info/test.htm' title='contact'>contact</a></h1></th></tr>")
   document.write("<tr><td>")
   document.write("<IFRAME  src='http://www.studios92.co.uk/secure/contact/contact.asp?subject=" & info("acc_name") & "&style=astor-hostels&r=1&ap=1' frameborder='0' align='center' width='520' height='480' scrolling='no'></IFRAME>")
  document.write("</td></tr></table>")
   }
}

var imgs1 = new Array("../securereservation/longTermBooking/images/promotion-tickets-from-10-pounds.jpg","../securereservation/longTermBooking/images/promotion-tours.jpg","../securereservation/longTermBooking/images/promotion-londonpass.jpg");
var lnks1 = new Array("http://gift-tours.com/special-offers.asp","http://www.gift-tours.com/london-tours.asp","http://www.gift-tours.com/LondonPass/default.asp");
var alt1 = new Array("Special Offer: Tickets from £ 10 Deal","Special Offer: Tours Discount","Special Offer: London Pass"); // ALT text
var currentAd1 = 0;
var imgCt1 = 3; // could be edited regarind number of images
function cycle1() {
  if (currentAd1 == imgCt1) {
    currentAd1 = 0;
  }
var banner1 = document.getElementById('adBanner1');
var link1 = document.getElementById('adLink1');
  banner1.src=imgs1[currentAd1]
  banner1.alt=alt1[currentAd1]
  document.getElementById('adLink1').href=lnks1[currentAd1]
  currentAd1++;
}
  window.setInterval("cycle1()",5000);
