﻿function LoadLayers(){
	runSlideShow();
}

//Code to control co-branding content frame----------------------------------
// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 4000;
//-------------------------------------------

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = .035;
//-------------------------------------------
var Picture1 = new Array(); // don't change this
//logos here---------------------------------
Picture1[1] = 'imagefolder/rotatingimages/1.jpg';
Picture1[2] = 'imagefolder/rotatingimages/2.jpg';
Picture1[3] = 'imagefolder/rotatingimages/3.jpg';
Picture1[4] = 'imagefolder/rotatingimages/4.jpg';
//-------------------------------------------
var tss;
var iss;
var jss = 1;
var pss = Picture1.length-1;
var preLoad1 = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad1[iss] = new Image();
preLoad1[iss].src = Picture1[iss];}


function runSlideShow(){
if (document.all){
document.images.PictureBox1.style.filter="blendTrans(duration="+CrossFadeDuration+")";
document.images.PictureBox1.filters.blendTrans.Apply();
}
document.images.PictureBox1.src = preLoad1[jss].src;
CrossFadeDuration = 1
if (document.all) document.images.PictureBox1.filters.blendTrans.Play();
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}


