
// (C) 2002 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header.

// ==============================
// Set the following variables...
// ==============================

// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 3500;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 3;

var Picture = new Array(); // don't change this
var Caption = new Array(); // don't change this

Picture[1]  = '/images/cat_3/50_image2.jpg';
Picture[2]  = '/images/cat_2/32_image2.jpg';
Picture[3]  = '/images/cat_5/35_image2.jpg';
Picture[4]  = '/images/cat_5/35_image2.jpg';


Caption[1]  = "<a href='/category.asp?CategoryID=3&type=1' class='caption'>Cakes with Sculptures</a>";
Caption[2]  = "<a href='/category.asp?CategoryID=2&type=1' class='caption'>Cookies with Sculptures</a>";
Caption[3]  = "<a href='/category.asp?CategoryID=5&type=1&subcat=pic' class='caption'>Cookies with Pictures</a>";
Caption[4]  = "<a href='/category.asp?CategoryID=5&type=1&subcat=logo' class='caption'>Cookies with Corp Logo</a>";


// =====================================
// Do not edit anything below this line!
// =====================================

var tss;
var iss;
var jss = 1;
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];}

function runSlideShow(){
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();
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}

var Picture2 = new Array(); // don't change this
var Caption2 = new Array(); // don't change this

Picture2[1]  = '/images/cat_1/16_image2.jpg';
Picture2[2]  = '/images/cat_4/52_image2.jpg';
Picture2[3]  = '/images/cat_2/30_image2.jpg';
Picture2[4]  = '/images/cat_5/35_image2.jpg';
Picture2[5]  = '/images/cat_5/35_image2.jpg';
Picture2[6]  = '/images/cat_6/57_image2.jpg';


Caption2[1]  = "<a href='/category.asp?CategoryID=1&type=2' class='caption'>Cakes with sculptures</a>";
Caption2[2]  = "<a href='/category.asp?CategoryID=4&type=2' class='caption'>Cakes with Pictures</a>";
Caption2[3]  = "<a href='/category.asp?CategoryID=2&type=2' class='caption'>Cookies with Sculptures</a>";
Caption2[4]  = "<a href='/category.asp?CategoryID=5&type=2&subcat=pic' class='caption'>Cookies with Pictures</a>";
Caption2[5]  = "<a href='/category.asp?CategoryID=5&type=2&subcat=logo' class='caption'>Cookies with Corp Logo</a>";
Caption2[6]  = "<a href='/category.asp?CategoryID=6&type=2' class='caption'>Party Platers</a>";


// =====================================
// Do not edit anything below this line!
// =====================================

var tss2;
var iss2;
var jss2 = 1;
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 runSlideShow2(){

if (document.all){
document.images.PictureBox2.style.filter="blendTrans(duration=2)";
document.images.PictureBox2.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox2.filters.blendTrans.Apply();}
document.images.PictureBox2.src = preLoad2[jss2].src;
if (document.getElementById) document.getElementById("CaptionBox2").innerHTML= Caption2[jss2];
if (document.all) document.images.PictureBox2.filters.blendTrans.Play();
jss2 = jss2 + 1;
if (jss2 > (pss2)) jss2=1;
tss2 = setTimeout('runSlideShow2()', SlideShowSpeed);
}

