// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 7000;
// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 8;
var Picture = new Array(); // don't change this
var Caption = new Array();
var Caption2 = new Array();
var Link = new Array();
var Width = new Array();
var Height = new Array();

Picture[1]  = 'images/pic_01.jpg';
Picture[2]  = 'images/pic_02.jpg';
Picture[3]  = 'images/pic_03.jpg';
Picture[4]  = 'images/pic_04.jpg';
Picture[5]  = 'images/pic_05.jpg';
Picture[6]  = 'images/pic_06.jpg';
Picture[7]  = 'images/pic_07.jpg';
Picture[8]  = 'images/main.jpg';
//Picture[5]  = 'images/pic_05.jpg';


// =====================================
// Do not edit anything below this line!
// =====================================

var tss;
var iss;
var jss = 1;
var pss = Picture.length-1; //mide la cantidad de fotos en el arreglo

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];
//preLoad[iss].lnk = Link[iss];
//preLoad[iss].w = Width[iss];
//preLoad[iss].h = Height[iss];}

function runSlideShow(){
if (document.all){
document.images.PictureBox1.style.filter="blendTrans(duration=2)";
document.images.PictureBox1.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox1.filters.blendTrans.Apply();}
document.images.PictureBox1.src = preLoad[jss].src;
if (document.getElementById) //document.getElementById("CaptionBox").innerHTML= Caption[jss];
if (document.all) document.images.PictureBox1.filters.blendTrans.Play();
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}}