// Slideshow

var num=0;

imgArray = [
  ['pictures/01.jpg','Pattaya Sundown', 'Pattaya Sundown'],
  ['pictures/02.jpg','Beauty at the Market','Beauty at the Market'],
  ['pictures/03.jpg','Beauty at the Beach','Beauty at the Beach'],
  ['pictures/04.jpg','Beauty on a Chair', 'Beauty on a Chair'],
  ['pictures/05.jpg','Beauty at the Pier','Beauty at the Pier'],
  ['pictures/06.jpg','Beauty at Beer Bar','Beauty at Beer Bar'],
  ['pictures/07.jpg','Beauty at Club Blu', 'Beauty at Club Blu'],
  ['pictures/08.jpg','Beautiful Streetvendor','Beautiful Streetvendor'],
  ['pictures/09.jpg','Beauty on Walking Street','Beauty on Walking Street'],
  ['pictures/10.jpg','Beauties at Hammer Disco', 'Beauties at Hammer Disco'],
  ['pictures/11.jpg','Blacky at Bamboo Bar','Blacky at Bamboo Bar'],
  ['pictures/12.jpg','The Avenue Pattaya','The Avenue Pattaya'],
  ['pictures/13.jpg','New Year Countdown at Bali Hai Pier', 'New Year Countdown at Bali Hai Pier'],
  ['pictures/14.jpg','Chinese New Year at Bali Hai Pier','Chinese New Year at Bali Hai Pier'],
  ['pictures/15.jpg','Nong Nooch Tropical Garden: Lake','Nong Nooch Tropical Garden: Lake'],
  ['pictures/16.jpg','Nong Nooch Tropical Garden: Flowers', 'Nong Nooch Tropical Garden: Flowers'],
  ['pictures/17.jpg','Lanna Restaurant Sukhumvit Road','Lanna Restaurant Sukhumvit Road'],
  ['pictures/18.jpg','Ruen Thai Restaurant Second Road','Ruen Thai Restaurant Second Road'],
  ['pictures/19.jpg','Beach Road by Night', 'Beach Road by Night'],
  ['pictures/20.jpg','Fun on Walking Street','Fun on Walking Street'],
  ['pictures/21.jpg','Soi Diamond','Soi Diamond'],
  ['pictures/22.jpg','Hollywood Disco', 'Hollywood Disco'],
  ['pictures/23.jpg','Hollywood Dancers','Hollywood Dancers'],
  ['pictures/24.jpg','Hollywood Beauty','Hollywood Beauty'],
  ['pictures/25.jpg','Walking Street','Walking Street']
]

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;
}