var photos=new Array()
var photoslink=new Array()
var which=0

photos[photos.length]="images/ads/slides/bondage-tape-girl.jpg";
photos[photos.length]="images/ads/slides/girl-sex-toys.jpg";
photos[photos.length]="images/ads/slides/male-sex-toys.jpg";
photos[photos.length]="images/ads/slides/bondage-sex-toys.jpg";




var autoSlides = true;

photoslink[photoslink.length]="index.php?cPath=26";
photoslink[photoslink.length]="index.php?cPath=24";
photoslink[photoslink.length]="index.php?cPath=23";
photoslink[photoslink.length]="index.php?cPath=26_173";




var preloadedimages=new Array()
for (i=0;i<photos.length;i++){
preloadedimages[i]=new Image()
preloadedimages[i].src=photos[i]
}


function applyeffect(){
try
{
if (document.all && slideShow && slideShow.filters ){

slideShow.filters.revealTrans.Transition=Math.floor(Math.random()*23)
slideShow.filters.revealTrans.stop()
slideShow.filters.revealTrans.apply()
}
}
catch (e)
{
}

}



function playeffect(){
if (document.all && slideShow.filters)
slideShow.filters.revealTrans.play()
}

function keeptrack(){
window.status="Image "+(which+1)+" of "+photos.length
}


function prevSlide(){
if (which>0)
which--
else 
which = photos.length-1;
applyeffect()
document.images.slideShow.src=photos[which]
playeffect()
keeptrack()

}

function fnAutoSlides(){
if (autoSlides==false)
	return;
if (which<photos.length-1)
which++
else
which = 0;
try
{
applyeffect()
document.images.slideShow.src=photos[which]
playeffect()
keeptrack()
if (autoSlides == true)
	setTimeout('fnAutoSlides()',10000);	
}
catch (e)
{
}

}

function nextSlide(){
autoSlides = false;
if (which<photos.length-1)
which++
else
which = 0;
applyeffect()
document.images.slideShow.src=photos[which]
playeffect()
keeptrack()
}



function getImage(){
window.location=photoslink[which];
}
