function loadPics1() {
	document.getElementById('p1').style.display = 'none';
	document.getElementById('p1').src="pictureframe/images/ss1.png";
	document.getElementById('p1').src="pictureframe/images/ss2.png";
	document.getElementById('p1').src="pictureframe/images/ss3.png";
	document.getElementById('p1').src="pictureframe/images/ss4.png";
	document.getElementById('p1').src="pictureframe/images/ss5.png";
	document.getElementById('p1').src="pictureframe/images/ss0.png";
	//document.getElementById('p').style.backgroundColor="Transparent";
	document.getElementById('p1').style.display = 'block';
}


var timeout;
function nextPicture1(i) {
	shiftOpacity('p1', 3);
	document.getElementById('p1').src="pictureframe/images/ss"+i+".png";
	i++;
	if(i>=6) {
		i=0;
	}
	var steptwo="steptwo1("+i+");";

	timeout=setTimeout(steptwo,5000);
}
function steptwo1(i) {
	var nextpic="nextPicture1("+i+");";
	shiftOpacity('p1', 3);
	if (BrowserDetect.browser=="Explorer") {
		timeout=setTimeout(nextpic,300);
	} else {
		timeout=setTimeout(nextpic,600);
	}
}

function loadPics2() {
	document.getElementById('p2').style.display = 'none';
	document.getElementById('p2').src="pictureframe/images/ss11.png";
	document.getElementById('p2').src="pictureframe/images/ss12.png";
	document.getElementById('p2').src="pictureframe/images/ss13.png";
	document.getElementById('p2').src="pictureframe/images/ss14.png";
	document.getElementById('p2').src="pictureframe/images/ss15.png";
	document.getElementById('p2').src="pictureframe/images/ss10.png";
	//document.getElementById('p').style.backgroundColor="Transparent";
	document.getElementById('p2').style.display = 'block';
}


var timeout;
function nextPicture2(i) {
	shiftOpacity('p2', 3);
	document.getElementById('p2').src="pictureframe/images/ss1"+i+".png";
	i++;
	if(i>=6) {
		i=0;
	}
	var steptwo="steptwo2("+i+");";

	timeout=setTimeout(steptwo,5000);
}
function steptwo2(i) {
	var nextpic="nextPicture2("+i+");";
	shiftOpacity('p2', 3);
	if (BrowserDetect.browser=="Explorer") {
		timeout=setTimeout(nextpic,300);
	} else {
		timeout=setTimeout(nextpic,600);
	}
}

function loadPics3() {
	document.getElementById('p3').style.display = 'none';
	document.getElementById('p3').src="pictureframe/images/ss21.png";
	document.getElementById('p3').src="pictureframe/images/ss22.png";
	document.getElementById('p3').src="pictureframe/images/ss23.png";
	document.getElementById('p3').src="pictureframe/images/ss24.png";
	document.getElementById('p3').src="pictureframe/images/ss25.png";
	document.getElementById('p3').src="pictureframe/images/ss20.png";
	//document.getElementById('p').style.backgroundColor="Transparent";
	document.getElementById('p3').style.display = 'block';
}


var timeout;
function nextPicture3(i) {
	shiftOpacity('p3', 3);
	document.getElementById('p3').src="pictureframe/images/ss2"+i+".png";
	i++;
	if(i>=6) {
		i=0;
	}
	var steptwo="steptwo3("+i+");";

	timeout=setTimeout(steptwo,5000);
}
function steptwo3(i) {
	var nextpic="nextPicture3("+i+");";
	shiftOpacity('p3', 3);
	if (BrowserDetect.browser=="Explorer") {
		timeout=setTimeout(nextpic,300);
	} else {
		timeout=setTimeout(nextpic,600);
	}
}



/** At website init: Show first page in right content pane */

// Set slideShowSpeed (milliseconds):
var slideShowSpeed = 6000;

// Duration of crossfade (seconds) for IE:
var crossFadeDuration = 1;

// Set the positioning variables, below:
// Negative numbers are relative to right (whereX) or bottom (whereY)
// Positive numbers are relative to left (whereX) or (whereY) top
// Experiment with values to get positioning exact, and allow
// for the dimensions of the image in the positioning

var whereX = 0;
var whereY =  0;

// Specify the image files:
var Pic = new Array();
var Pic2 = new Array();
var Pic3 = new Array();// don't touch this!
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = '/euroclean/pictureframe/images/ss0.png';
Pic[1] = '/euroclean/pictureframe/images/ss1.png';
Pic[2] = '/euroclean/pictureframe/images/ss2.png';
Pic[3] = '/euroclean/pictureframe/images/ss3.png';
Pic[4] = '/euroclean/pictureframe/images/ss4.png';
Pic[5] = '/euroclean/pictureframe/images/ss5.png';
Pic2[0] = '/euroclean/pictureframe/images/ss10.png';
Pic2[1] = '/euroclean/pictureframe/images/ss11.png';
Pic2[2] = '/euroclean/pictureframe/images/ss12.png';
Pic2[3] = '/euroclean/pictureframe/images/ss13.png';
Pic2[4] = '/euroclean/pictureframe/images/ss14.png';
Pic2[5] = '/euroclean/pictureframe/images/ss15.png';
Pic3[0] = '/euroclean/pictureframe/images/ss20.png';
Pic3[1] = '/euroclean/pictureframe/images/ss21.png';
Pic3[2] = '/euroclean/pictureframe/images/ss22.png';
Pic3[3] = '/euroclean/pictureframe/images/ss23.png';
Pic3[4] = '/euroclean/pictureframe/images/ss24.png';
Pic3[5] = '/euroclean/pictureframe/images/ss25.png';
// =======================================
// Do not edit *anything* below this line!
// =======================================



var nn=(navigator.appName.indexOf("Netscape")!=-1);
var t;
var j=0;
var p=Pic.length;
var preLoad=new Array();
var preLoad2=new Array();
var preLoad3=new Array();

for (i=0;i<p;i++) {
	preLoad[i]=new Image();
	preLoad[i].src = Pic[i];
	preLoad2[i]=new Image();
	preLoad2[i].src = Pic2[i];
	preLoad3[i]=new Image();
	preLoad3[i].src = Pic3[i];
}

function runSlideShow(){
	if (document.all){

		document.getElementById('ss1').style.filter="blendTrans(duration=2)";
		document.getElementById('ss1').style.filter="blendTrans(duration=crossFadeDuration)";
		document.getElementById('ss1').filters.blendTrans.Apply();
		document.getElementById('ss2').style.filter="blendTrans(duration=2)";
		document.getElementById('ss2').style.filter="blendTrans(duration=crossFadeDuration)";
		document.getElementById('ss2').filters.blendTrans.Apply();
		document.getElementById('ss3').style.filter="blendTrans(duration=2)";
		document.getElementById('ss3').style.filter="blendTrans(duration=crossFadeDuration)";
		document.getElementById('ss3').filters.blendTrans.Apply();
	}
	if (document.all || document.getElementById) {
		document.getElementById('ss1').src = preLoad[j].src;
		document.getElementById('ss2').src = preLoad2[j].src;
		document.getElementById('ss3').src = preLoad3[j].src;
	} 
	if (document.all) {
		document.getElementById('ss1').filters.blendTrans.Play();
		document.getElementById('ss2').filters.blendTrans.Play();
		document.getElementById('ss3').filters.blendTrans.Play();
	}
	j=j+1;
	if (j>(p-1))j=0;t=setTimeout('runSlideShow()', slideShowSpeed);
}
var dD=document,dH=dD.html,dB=dD.body,px=dD.layers?'':'px';


