//*******************************
//* etickets.js slide show 
//* Author: Cliff Taylor, (c)2002 AnnWebCom.co.uk
//* Flightline Travel Management PLC  

//*** START ***
       
// This script lets you have an art gallery of images of varying sizes.
// It also allows you to put captions on your pictures.
// Name your images "slide1.gif","slide2.gif",etc.
// All of your images must be of the same suffix.

total_images = 22; // enter the number of images you have
suffix = "gif"; // enter "gif", "jpeg", or "jpg", etc
graphics_directory = "eticket_slides/"; // enter path to graphics directory (or just leave blank)
show_captions = true; // change to false to hide captions

function initArray() {
 this.length = initArray.arguments.length;
 for (n=0; n<initArray.arguments.length; n++)
  this[n] = initArray.arguments[n];
 return this;
}

if (show_captions) {
 // ****************************************
 // enter the list of captions here in order
captions = new initArray("Caption 1",
"Caption 2",
"Caption 3 etc.");
}

if (show_captions) {
details = new initArray("<ul><li>Details 1, bullet1</li><li>Details 1, bullet2</li></ul>",
"<ul><li>Details 2, bullet1</li><li>Details 2, bullet2</li></ul></li></ul>",
"<ul><li><ul><li>Details 3, bullet1</li><li>Details 3, bullet2</li></ul></li></ul>");
}

x = 1;

function slider(n) {
 x += n;
 if (x == total_images + 1)
  x = 1;
 else if (x == 0)
  x = total_images;
 self.buyflights_main.location = "etickets_show.htm";
}

var cur_Slide = 1;
var the_Slide = 1;
var inc_Slide = 0;
var total_Slides = 22;

function navPage(the_page){
	parent.buyflights_main.location = the_page;
	return true;
}
	
function flip(inc_Slide){
    cur_Slide = cur_Slide + inc_Slide;
      if (cur_Slide == total_Slides + 1)
      {
       cur_Slide = 1;
      }
      else if (cur_Slide == 0)
      {
       cur_Slide = total_Slides;
      }
    parent.slider(inc_Slide);
    return true;
}

function jump(the_Slide){
     the_Slide = parseInt(the_Slide);
     if (cur_Slide != the_Slide){
      inc_Slide = the_Slide - cur_Slide;
      cur_Slide = the_Slide;
      parent.slider(inc_Slide);
      }
     return true;
}

//*** FINISH ***
