// Slideshow

var num=0;

imgArray = [
  ['01.jpg','Korat Bus Terminal 3rd Road Pattaya', 'Look out for the Loxey Sign. It is on top of the Korat Bus Terminal Building.<BR><BR>Same Building as Hat Yai Bus.'],
  ['02.jpg','Korat Bus Terminal 3rd Road Pattaya', 'Korat Bus Terminal is on Pattaya\'s 3rd Road, about 200 meters from Central Road.'],
  ['03.jpg','Korat Bus Terminal 3rd Road Pattaya', 'The Entry to Korat Bus Terminal'],
  ['06.gif','Korat Bus Terminal 3rd Road Pattaya', 'For Information or Reservations please call:<BR><BR>038 43 40 85<BR>089 280 2255'],
  ['05.jpg','Korat Bus Terminal 3rd Road Pattaya', 'Timetable to Korat.'],
  ['06.jpg','Korat Bus Terminal 3rd Road Pattaya', 'Timetable to Ubon Ratchathani and Det Udom.'],
  ['04.jpg','Korat Bus Terminal 3rd Road Pattaya', 'The Buses are large and comfortable.']
]

function slideshow(slide_num) {
  document.getElementById('SlideShow').src=imgArray[slide_num][0];
  document.getElementById('SlideShow').alt=imgArray[slide_num][1];
  document.getElementById('PictureText').innerHTML=imgArray[slide_num][2];
}

function slideshowUp() {
  num++;
  num = num % imgArray.length;
  slideshow(num);
}

function slideshowBack() {
  num--;
  if (num < 0) {num=imgArray.length-1;}
  num = num % imgArray.length;
  slideshow(num);
}

// Hide Statusbar Message
function hidestatus(){
window.status='NightWalker\'s Picture Show';
return true;
}
if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT);
document.onmouseover=hidestatus;
document.onmouseout=hidestatus;

// Copyright

function CopyRightNote(){
todayC = new Date();
yearC = todayC.getFullYear();
document.write("Copyright&nbsp;&copy;&nbsp;2003&nbsp;-&nbsp;" + yearC + "&nbsp;NightWalker &amp; Rainbow Production&nbsp;&nbsp;Last&nbsp;update:&nbsp;" + document.lastModified);
}

// Go back to calling page

function GoBack() {
document.write('<A HREF="javascript:history.back()"><IMG SRC="back.gif" WIDTH="13" HEIGHT="9" BORDER="0" TITLE="Page back" STYLE="padding-left:3px;padding-right:4px;">Back</a>');
}

// change images

function changeImage(FileName)
{
  mainimage = new Image;
  mainimage.src = FileName;
  document.getElementById('PictureShow').src = mainimage.src;
}
