/**
 * smg_AdsSlide 21DEC2002 Version 2.0
 * Telbert Pyke, December 2002
 * Copyright (c) 2002 SyneDyne Media Group, LLC.
 **
 * SyneDyne grants you a royalty free license to use or modify this
 * software provided that this copyright notice appears on all copies.
 * This software is provided "AS IS," without a warranty of any kind.
 */

// =======================================
// set the following variables
// =======================================

// Set slideShowSpeed (milliseconds)
var AdsSlideSpeed = 2000  //5000

// Duration of crossfade (seconds)
var crossFadeDuration = 3

// Specify the image files
var Pic = new Array() 
// don't touch this to add more images, just continue the pattern, adding to the array below

Pic[0] = 'images/ads/ads_main1.jpg'
Pic[1] = 'images/ads/ads_main2.jpg'
Pic[2] = 'images/ads/ads_5.jpg'
Pic[3] = 'images/ads/ads_6.jpg'
Pic[4] = 'images/ads/ads_7.jpg'

// =======================================
// do not edit anything below this line
// =======================================

var t
var j = 0
var p = Pic.length
var step=1
var whichimage=1

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

function adsslide(){
   if (document.all){
      document.images.adsslide.style.filter="blendTrans(duration=2)"
      document.images.adsslide.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.adsslide.filters.blendTrans.Apply()      
   }
   document.images.adsslide.src = preLoad[j].src
   if (document.all){
      document.images.adsslide.filters.blendTrans.Play()
   }
   j = j + 1   
   whichimage=j
   //alert("Which Image is : " + whichimage + " :");
   if (j > (p-1)) j=0
   t = setTimeout('adsslide()', AdsSlideSpeed);
   //adslink();
}
function adslink(){
if (whichimage==3)
window.location="valumart/specials.asp"
else if (whichimage==4)
window.location="comingindex.asp"
//window.location="furniture/specials.asp"
/*else if (whichimage==5)
window.location=""*/
}
