// JavaScript Document
// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully

// =======================================
// set the following variables
// =======================================

// Set slideShowSpeed (milliseconds)
var baseurl='http://www.silverfoxescorts.co.uk'
var slideShowSpeed  = 1000
var slideShowSpeed4 = 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]  = baseurl + '/fade/1.jpg'
Pic[1]  = baseurl + '/fade/2.jpg'
Pic[2]  = baseurl + '/fade/3.jpg'
Pic[3]  = baseurl + '/fade/4.jpg'
Pic[4]  = baseurl + '/fade/5.jpg'
Pic[5]  = baseurl + '/fade/6.jpg'
Pic[6]  = baseurl + '/fade/7.jpg'
Pic[7]  = baseurl + '/fade/8.jpg'
Pic[8]  = baseurl + '/fade/9.jpg'
Pic[9]  = baseurl + '/fade/10.jpg'
Pic[10] = baseurl + '/fade/11.jpg'
Pic[11] = baseurl + '/fade/12.jpg'
Pic[12] = baseurl + '/fade/13.jpg'
Pic[13] = baseurl + '/fade/14.jpg'
Pic[14] = baseurl + '/fade/15.jpg'


// =======================================
// do not edit anything below this line
// =======================================

var t
var tb
var j  = 0
var j1 = 0
var j2 = 1
var j3 = 2
var j4 = 3
var j5 = 4
var p = Pic.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

var preLoadb = new Array()
for (i = 0; i < p; i++){
   preLoadb[i] = new Image()
   preLoadb[i].src = Picb[i]
}

function runSlideShows(){
   	do{
		jnew = (Math.floor(Math.random()*4))+1
   	}while(
   		(jnew == j)
   	)
   	j = jnew
	if(j==1){runSlideShow1()}
	else if(j==2){runSlideShow2()}
	else if(j==3){runSlideShow3()}
    t = setTimeout('runSlideShows()', slideShowSpeed)
}

function runSlideShow1(){
   do{
		j1new = Math.floor(Math.random()*p)
   }while(
   		(j1new == j1)
	 	||
   		(j1new == j2)
	 	||
   		(j1new == j3)
	 	||
   		(j1new == j4)
	 	||
   		(j1new == j5)
   )
   j1 = j1new
   if (document.all){
      document.images.SlideShow1.style.filter="blendTrans(duration=2)"
      document.images.SlideShow1.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow1.filters.blendTrans.Apply()      
   }
   document.images.SlideShow1.src = preLoad[j1].src
   if (document.all){
      document.images.SlideShow1.filters.blendTrans.Play()
   }
}

function runSlideShow2(){
   do{
		j2new = Math.floor(Math.random()*p)
   }while(
   		(j2new == j1)
	 	||
   		(j2new == j2)
	 	||
   		(j2new == j3)
	 	||
   		(j2new == j4)
	 	||
   		(j2new == j5)
   )
   j2 = j2new
   if (document.all){
      document.images.SlideShow2.style.filter="blendTrans(duration=2)"
      document.images.SlideShow2.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow2.filters.blendTrans.Apply()
   }
   document.images.SlideShow2.src = preLoad[j2].src
   if (document.all){
      document.images.SlideShow2.filters.blendTrans.Play()
   }
}

function runSlideShow3(){
   do{
		j3new = Math.floor(Math.random()*p)
   }while(
   		(j3new == j1)
	 	||
   		(j3new == j2)
	 	||
   		(j3new == j3)
	 	||
   		(j3new == j4)
	 	||
   		(j3new == j5)
   )
   j3 = j3new
   if (document.all){
      document.images.SlideShow3.style.filter="blendTrans(duration=2)"
      document.images.SlideShow3.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow3.filters.blendTrans.Apply()
   }
   document.images.SlideShow3.src = preLoad[j3].src
   if (document.all){
      document.images.SlideShow3.filters.blendTrans.Play()
   }
}

function runSlideShow4(){
   do{
		j4new = Math.floor(Math.random()*pb)
   }while(
   		(j4new == j4)
   )
   j4 = j4new
   if (document.all){
      document.images.SlideShow4.style.filter="blendTrans(duration=2)"
      document.images.SlideShow4.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow4.filters.blendTrans.Apply()
   }
   document.images.SlideShow4.src = preLoadb[j4].src
   document.getElementById('SlideShowLink').href = Altb[j4]
   if (document.all){
      document.images.SlideShow4.filters.blendTrans.Play()
   }
	tb = setTimeout('runSlideShow4()', slideShowSpeed4)
}

function runSlideShow5(){
   do{
		j5new = Math.floor(Math.random()*p)
   }while(
   		(j5new == j1)
	 	||
   		(j5new == j2)
	 	||
   		(j5new == j3)
	 	||
   		(j5new == j4)
	 	||
   		(j5new == j5)
   )
   j5 = j5new
   if (document.all){
      document.images.SlideShow5.style.filter="blendTrans(duration=2)"
      document.images.SlideShow5.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow5.filters.blendTrans.Apply()
   }
   document.images.SlideShow5.src = preLoad[j5].src
   if (document.all){
      document.images.SlideShow5.filters.blendTrans.Play()
   }
}


