// ==============================
// Set the following variables...
// ==============================

// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 3000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 2;

var Picture = new Array(); // don't change this
var Caption = new Array(); // don't change this
var showHot = false;       // don't change this

/**Following line added by BP on 10-01-07**/
var Picture2 = new Array(); // don't change this

// Specify the image files...
// To add more images, just continue
// the pattern, adding to the array below.
// To use fewer images, remove lines
// starting at the end of the Picture array.
// Caution: The number of Pictures *must*
// equal the number of Captions!

Picture[1]  = 'images/xitpaving_slide_img2.jpg';
Picture[2]  = 'images/xitpaving_slide_img3.jpg';
Picture[3]  = 'images/xitpaving_slide_img4.jpg';
Picture[4]  = 'images/xitpaving_slide_img5.jpg';
Picture[5]  = 'images/xitpaving_slide_img6.jpg';
Picture[6]  = 'images/xitpaving_slide_img7.jpg';
Picture[7]  = 'images/xitpaving_slide_img8.jpg';
Picture[8]  = 'images/xitpaving_slide_img9.jpg';
Picture[9]  = 'images/xitpaving_slide_img1.jpg';


/**Code added by BP on 10-01-07 till next comment line**/
Picture2[1]  = 'images/big/xitpaving_slide_img2_big.jpg';
Picture2[2]  = 'images/big/xitpaving_slide_img3_big.jpg';
Picture2[3]  = 'images/big/xitpaving_slide_img4_big.jpg';
Picture2[4]  = 'images/big/xitpaving_slide_img5_big.jpg';
Picture2[5]  = 'images/big/xitpaving_slide_img6_big.jpg';
Picture2[6]  = 'images/big/xitpaving_slide_img7_big.jpg';
Picture2[7]  = 'images/big/xitpaving_slide_img8_big.jpg';
Picture2[8]  = 'images/big/xitpaving_slide_img9_big.jpg';
Picture2[9]  = 'images/big/xitpaving_slide_img1_big.jpg';
/*********************************************************/

// Specify the Captions...
// To add more captions, just continue
// the pattern, adding to the array below.
// To use fewer captions, remove lines
// starting at the end of the Caption array.
// Caution: The number of Captions *must*
// equal the number of Pictures!

Caption[1]  = "This is the first caption.";
Caption[2]  = "This is the second caption.";
Caption[3]  = "This is the third caption.";
Caption[4]  = "This is the fourth caption.";
Caption[5]  = "This is the fifth caption.";
Caption[6]  = "This is the sixth caption.";
// =====================================
// Do not edit anything below this line!
// =====================================

var tss;
var iss;
var jss = 0;
var r=6;
var pss = Picture.length-1;

var preLoad = new Array();

for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}


/**Code added by BP on 10-01-07 till next comment line**/
var tss2;
var iss2;
var jss2 = 0;
var r2=9;
var pss2 = Picture2.length-1;


var preLoad2 = new Array();

for (iss2 = 1; iss2 < pss2+1; iss2++){
preLoad2[iss2] = new Image();
preLoad2[iss2].src = Picture2[iss2];
}
/*********************************************************/

function control(how){
if (showHot){
if (how=="H") jss = 1;
if (how=="F") jss = jss + 1;
if (how=="B") jss = jss - 1;
if (jss > (pss)) jss=1;
if (jss < 1) jss = pss;
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;
//if (document.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[jss];
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
r=jss;
r2=jss;  /*this line added by BP on 10-01-07*/
}}

<!--
/****************************************************
     Author: Eric King
     Url: http://redrival.com/eak/index.shtml
     This script is free to use as long as this info is left in
     Featured on Dynamic Drive script library (http://www.dynamicdrive.com)
****************************************************/
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}


/**Code added by BP on 10-01-07 till next comment line**/
var win2=null;
function NewWindow2(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win2=window.open(mypage,myname,settings);}
/*********************************************************/
// -->