// CustomersPg Slide Show
var slideShowSpeedCustomersPg = 3000
var crossFadeDurationCustomersPg = 1

var PicCustomersPg = new Array()

PicCustomersPg[0]  = 'images/Customers/bn_nourison.gif'
PicCustomersPg[1]  = 'images/Customers/bn_orientalweavers.gif'
PicCustomersPg[2]  = 'images/Customers/bn_royalhali.gif'
PicCustomersPg[3]  = 'images/Customers/bn_merinos.gif'
PicCustomersPg[4]  = 'images/Customers/bn_stepevi.gif'
PicCustomersPg[5]  = 'images/Customers/bn_rajoverseas.gif'
PicCustomersPg[6]  = 'images/Customers/bn_mashad.gif'
PicCustomersPg[7]  = 'images/Customers/bn_skcarpet.gif'
PicCustomersPg[8]  = 'images/Customers/bn_robinson.gif'
PicCustomersPg[9]  = 'images/Customers/bn_zollanvari.gif'
PicCustomersPg[10]  = 'images/Customers/bn_wovenlegends.gif'
PicCustomersPg[11]  = 'images/Customers/bn_farhadian.gif'
PicCustomersPg[12]  = 'images/Customers/bn_cinarhali.gif'
PicCustomersPg[13] = 'images/Customers/bn_hashali.gif'
PicCustomersPg[14] = 'images/Customers/bn_acvila.gif'
PicCustomersPg[15] = 'images/Customers/bn_rugman.gif'
PicCustomersPg[16] = 'images/Customers/bn_sintelon.gif'
PicCustomersPg[17] = 'images/Customers/bn_solohali.gif'
PicCustomersPg[18] = 'images/Customers/bn_boyteks.gif'
PicCustomersPg[19] = 'images/Customers/bn_decohali.gif'

var tCustomersPg
var jCustomersPg = 0
var pCustomersPg= PicCustomersPg.length

var preLoadCustomersPg = new Array()
for (iCustomersPg = 0; iCustomersPg< pCustomersPg; iCustomersPg++){
   preLoadCustomersPg[iCustomersPg] = new Image()
   preLoadCustomersPg[iCustomersPg].src = PicCustomersPg[iCustomersPg]
}

function runSlideShowCustomersPg(){
   if (document.all){
      document.images.SlideShowCustomersPg.style.filter="blendTrans(duration=4)"
      document.images.SlideShowCustomersPg.style.filter="blendTrans(duration=crossFadeDuration1)"
      document.images.SlideShowCustomersPg.filters.blendTrans.Apply()      
   }
   document.images.SlideShowCustomersPg.src = preLoadCustomersPg[jCustomersPg].src
   if (document.all){
      document.images.SlideShowCustomersPg.filters.blendTrans.Play()
   }
   jCustomersPg = jCustomersPg + 1
   if (jCustomersPg > (PicCustomersPg.length-1)) jCustomersPg=0
   tCustomersPg = setTimeout('runSlideShowCustomersPg()', slideShowSpeedCustomersPg)
}

