﻿// JScript File
var _imageName = "";

// Slide Show Code
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully
// =======================================
// set the following variables
// =======================================
// Set slideShowSpeed (milliseconds) Change This
var slideShowSpeed2 = 9000
// Specify the image files
var Img = new Array() 
// to add more images, just continue
// the pattern, adding to the array below
Img[0] = 'images/slide/slide1.jpg'
Img[1] = 'images/slide/slide2.jpg'
Img[2] = 'images/slide/slide3.jpg'
Img[3] = 'images/slide/slide4.jpg'
Img[4] = 'images/slide/slide5.jpg'
Img[5] = 'images/slide/slide6.jpg'
Img[6] = 'images/slide/slide7.jpg'
Img[7] = 'images/slide/slide8.jpg'
Img[8] = 'images/slide/slide9.jpg'
Img[9] = 'images/slide/slide10.jpg'

var t2;
var preLoad2 = new Array();
var p2 = Img.length;
var pRandom= get_random(p2);
var j2 = pRandom;
//== var randNumber= pRandom;
for (i = 0; i < p2; i++){
   preLoad2[i] = new Image();
   preLoad2[i].src = Img[i];
}

function init_banner(){		
   document.all(_imageName).style.filter="blendTrans(duration=3, enabled=true)";
   document.all(_imageName).filters.blendTrans.Apply();
   document.all(_imageName).src = preLoad2[j2].src;
   document.all(_imageName).filters.blendTrans.Play();
   j2 = j2 + 1;
   if (j2 > (p2-1)) j2=0;
   t2 = setTimeout('init_banner()', 9000);
}

function get_random(maxNumber) { var ranNum= Math.floor(Math.random()*maxNumber); return ranNum; }

function initRandomImage(){
	//document.write('<img border="0" name="SlideShow2" src="'+Img[pRandom]+'" width="128" height="85">');
}