﻿
	// (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 slideShowSpeed1 = 4000
	var slideShowSpeed2 = 4000
	var slideShowSpeed3 = 4300
	

	// Duration of crossfade (seconds)
	var crossFadeDuration = 6

	// Specify the image files
	var Pic1 = new Array() // don't touch this
	var Pic2 = new Array() // don't touch this
	var Pic3 = new Array() // don't touch this

	// to add more images, just continue
	// the pattern, adding to the array below

	Pic1[0]	= "images/home_slides/brighton525.jpg"
	Pic1[1]	= "images/home_slides/vera525.jpg"
	Pic1[2]	= "images/home_slides/pandora525.jpg"
	Pic1[3]	= "images/home_slides/lolita525.jpg"
	
	
	
	// =======================================
	// do not edit anything below this line
	// =======================================

	var t
	var j = 0
	var p = Pic1.length

	var preLoad1 = new Array()
	for (i = 0; i < p; i++){
	   preLoad1[i] = new Image()
	   preLoad1[i].src = Pic1[i]
	}

	var preLoad2 = new Array()
	for (i = 0; i < p; i++){
	   preLoad2[i] = new Image()
	   preLoad2[i].src = Pic2[i]
	}

	var preLoad3 = new Array()
	for (i = 0; i < p; i++){
	   preLoad3[i] = new Image()
	   preLoad3[i].src = Pic3[i]
	}
	
	function runSlideShow1(){
	   if (document.all){
		  document.images.SlideShow1.style.filter="blendTrans(duration=3)"
		  document.images.SlideShow1.style.filter="blendTrans(duration=crossFadeDuration)"
		  document.images.SlideShow1.filters.blendTrans.Apply()      
	   }
	   document.images.SlideShow1.src = preLoad1[j].src
	   if (document.all){
		  document.images.SlideShow1.filters.blendTrans.Play()
	   }
	   j = j + 1
	   if (j > (p-1)) j=0
	   t = setTimeout('runSlideShow1()', slideShowSpeed1)
	}
	function runSlideShow2(){
	   if (document.all){
		  document.images.SlideShow2.style.filter="blendTrans(duration=3)"
		  document.images.SlideShow2.style.filter="blendTrans(duration=crossFadeDuration)"
		  document.images.SlideShow2.filters.blendTrans.Apply()      
	   }
	   document.images.SlideShow2.src = preLoad2[j].src
	   if (document.all){
		  document.images.SlideShow2.filters.blendTrans.Play()
	   }
	   j = j + 1
	   if (j > (p-1)) j=0
	   t = setTimeout('runSlideShow2()', slideShowSpeed2)
	}
	function runSlideShow3(){
	   if (document.all){
		  document.images.SlideShow3.style.filter="blendTrans(duration=3)"
		  document.images.SlideShow3.style.filter="blendTrans(duration=crossFadeDuration)"
		  document.images.SlideShow3.filters.blendTrans.Apply()      
	   }
	   document.images.SlideShow3.src = preLoad3[j].src
	   if (document.all){
		  document.images.SlideShow3.filters.blendTrans.Play()
	   }
	   j = j + 1
	   if (j > (p-1)) j=0
	   t = setTimeout('runSlideShow3()', slideShowSpeed3)
	}

