/*
DHTML slideshow script- 
© Dynamic Drive (www.dynamicdrive.com)
For full source code, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

var photos=new Array()
var photoslink=new Array()
var photosalt=new Array()
var which=0

//define images. You can have as many as you want. Images MUST be of the same dimensions (for NS's sake)
photos[0]="http://www.aaaballoons.com/images/large/798d.jpg"
photos[1]="http://www.aaaballoons.com/images/large/pr_bal077.jpg"
photos[2]="http://www.gifttree.com/show.image.php?img_size=l&version=1&base_product_id=1070"
photos[3]="http://www.gifttree.com/show.image.php?img_size=l&version=1&base_product_id=582"
photos[4]="http://www.1stopflorists.com/show.image.php?img_size=l&version=1&base_product_id=3813"
photos[5]="http://www.1stopflorists.com/show.image.php?img_size=l&version=1&base_product_id=1370"


//Specify whether images should be linked or not (1=linked)
var linkornot=1

//Set corresponding URLs for above images. Define ONLY if variable linkornot equals "1"
photoslink[0]="birthdays.html"
photoslink[1]="romance.html"
photoslink[2]="corporate_gifts.html"
photoslink[3]="bestsellers.html"
photoslink[4]="flowers_gifts.html"
photoslink[5]="new_baby.html"

//Set the alt tag text for images
photosalt[0]="birthday gifts and gift baskets"
photosalt[1]="romance gifts and gift baskets"
photosalt[2]="corporate gifts and gift baskets"
photosalt[3]="bestsellers gifts and gift baskets"
photosalt[4]="flowers gifts and gift baskets"
photosalt[5]="new baby gifts and gift baskets"

//do NOT edit pass this line

var preloadedimages=new Array()
for (i=0;i<photos.length;i++){
preloadedimages[i]=new Image()
preloadedimages[i].src=photos[i]
}


function applyeffect(){
if (document.all){
photoslider.filters.revealTrans.Transition=Math.floor(Math.random()*23)
photoslider.filters.revealTrans.stop()
photoslider.filters.revealTrans.apply()
}
}


function playeffect(){
if (document.all)
photoslider.filters.revealTrans.play()
}

function keeptrack(){
window.status="Image "+(which+1)+" of "+photos.length
}


function backward(){
if (which>0){
which--
applyeffect()
document.images.photoslider.src=photos[which]
document.images.photoslider.alt=photosalt[which]
playeffect()
keeptrack()
}
}

function forward(){
if (which<photos.length-1){
which++
applyeffect()
document.images.photoslider.src=photos[which]
document.images.photoslider.alt=photosalt[which]
playeffect()
keeptrack()
}
}

function transport(){
window.location=photoslink[which]
}

function changeslide() {
if (which>=(photos.length -1))
 which=-1
forward()
timerID = setTimeout("changeslide()",7500);
}

timerID = setTimeout("changeslide()",7500);




