function imageOff(imageName, imageSRC)
{
	if (document.images) {
		document[imageName].src = imageSRC;
	}
}

function imageOn(imageName, imageSRC)
{
	if (document.images) {
		document[imageName].src = imageSRC;
	}
}

// (C) 2002 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header.

// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 12000;
// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 3;

var Picture = new Array(); // don't change this

// Specify the image files...

var preLoad1 = new Array();
var preLoad2 = new Array();
var preLoad3 = new Array();
var preLoad4 = new Array();
var preLoad5 = new Array();
var preLoad6 = new Array();

preLoad1[1] = new Image();
preLoad1[1].src = './Images/HomeImage01.jpg'
preLoad1[2] = new Image();
preLoad1[2].src = './Images/HomeImage02.jpg'
preLoad1[3] = new Image();
preLoad1[3].src = './Images/HomeImage03.jpg'

preLoad2[1] = new Image();
preLoad2[1].src = './Images/HomeImage04.jpg'
preLoad2[2] = new Image();
preLoad2[2].src = './Images/HomeImage05.jpg'
preLoad2[3] = new Image();
preLoad2[3].src = './Images/HomeImage06.jpg'

preLoad3[1] = new Image();
preLoad3[1].src = './Images/HomeImage07.jpg'
preLoad3[2] = new Image();
preLoad3[2].src = './Images/HomeImage08.jpg'
preLoad3[3] = new Image();
preLoad3[3].src = './Images/HomeImage09.jpg'

preLoad4[1] = new Image();
preLoad4[1].src = './Images/HomeImage10.jpg'
preLoad4[2] = new Image();
preLoad4[2].src = './Images/HomeImage11.jpg'
preLoad4[3] = new Image();
preLoad4[3].src = './Images/HomeImage12.jpg'

preLoad5[1] = new Image();
preLoad5[1].src = './Images/HomeImage13.jpg'
preLoad5[2] = new Image();
preLoad5[2].src = './Images/HomeImage14.jpg'
preLoad5[3] = new Image();
preLoad5[3].src = './Images/HomeImage15.jpg'

preLoad6[1] = new Image();
preLoad6[1].src = './Images/HomeImage16.jpg'
preLoad6[2] = new Image();
preLoad6[2].src = './Images/HomeImage17.jpg'
preLoad6[3] = new Image();
preLoad6[3].src = './Images/HomeImage18.jpg'

var tss;
var pss = 3;
var jss1 = 1;
var jss2 = 1;
var jss3 = 1;
var jss4 = 1;
var jss5 = 1;
var jss6 = 1;

function runSlideShows()
{
runSlideShow1();
Id = window.setTimeout("runSlideShow2();",10000);
Id = window.setTimeout("runSlideShow3();",6000);
Id = window.setTimeout("runSlideShow4();",2000);
Id = window.setTimeout("runSlideShow5();",8000);
Id = window.setTimeout("runSlideShow6();",4000);
}

function runSlideShow1(){
if (document.all){
document.images.PictureBox1.style.filter="blendTrans(duration=2)";
document.images.PictureBox1.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox1.filters.blendTrans.Apply();}
document.images.PictureBox1.src = preLoad1[jss1].src;

if (document.all) document.images.PictureBox1.filters.blendTrans.Play();
jss1 = jss1 + 1;
if (jss1 > (pss)) jss1=1;
tss = setTimeout('runSlideShow1()', SlideShowSpeed);
}

function runSlideShow2(){
if (document.all){
document.images.PictureBox2.style.filter="blendTrans(duration=2)";
document.images.PictureBox2.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox2.filters.blendTrans.Apply();}
document.images.PictureBox2.src = preLoad2[jss2].src;

if (document.all) document.images.PictureBox2.filters.blendTrans.Play();
jss2 = jss2 + 1;
if (jss2 > (pss)) jss2=1;
tss = setTimeout('runSlideShow2()', SlideShowSpeed);
}

function runSlideShow3(){
if (document.all){
document.images.PictureBox3.style.filter="blendTrans(duration=2)";
document.images.PictureBox3.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox3.filters.blendTrans.Apply();}
document.images.PictureBox3.src = preLoad3[jss3].src;

if (document.all) document.images.PictureBox3.filters.blendTrans.Play();
jss3 = jss3 + 1;
if (jss3 > (pss)) jss3=1;
tss = setTimeout('runSlideShow3()', SlideShowSpeed);
}

function runSlideShow4(){
if (document.all){
document.images.PictureBox4.style.filter="blendTrans(duration=2)";
document.images.PictureBox4.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox4.filters.blendTrans.Apply();}
document.images.PictureBox4.src = preLoad4[jss4].src;

if (document.all) document.images.PictureBox4.filters.blendTrans.Play();
jss4 = jss4 + 1;
if (jss4 > (pss)) jss4=1;
tss = setTimeout('runSlideShow4()', SlideShowSpeed);
}

function runSlideShow5(){
if (document.all){
document.images.PictureBox5.style.filter="blendTrans(duration=2)";
document.images.PictureBox5.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox5.filters.blendTrans.Apply();}
document.images.PictureBox5.src = preLoad5[jss5].src;

if (document.all) document.images.PictureBox5.filters.blendTrans.Play();
jss5 = jss5 + 1;
if (jss5 > (pss)) jss5=1;
tss = setTimeout('runSlideShow5()', SlideShowSpeed);
}

function runSlideShow6(){
if (document.all){
document.images.PictureBox6.style.filter="blendTrans(duration=2)";
document.images.PictureBox6.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox6.filters.blendTrans.Apply();}
document.images.PictureBox6.src = preLoad6[jss6].src;

if (document.all) document.images.PictureBox6.filters.blendTrans.Play();
jss6 = jss6 + 1;
if (jss6 > (pss)) jss6=1;
tss = setTimeout('runSlideShow6()', SlideShowSpeed);
}

var step = 1;
var delay = 15;

function fadeImageIn (img) {
  if (document.all || navigator.appName == 'Netscape' && parseFloat
(navigator.appVersion) >= 5) {
    img.opacity = 0;
    setOpacity(img.name);
  }
}

function fadeImageOut (img) {
  if (document.all || navigator.appName == 'Netscape' && parseFloat
(navigator.appVersion) >= 5) {
    img.opacity = 100;
    setOpacity(img.name, -step);
  }
}

function setOpacity (imgName, step, delay) {
  if (!step)
    step = window.step;
  if (!delay)
    delay = window.delay;
  var img = document.images[imgName];
  img.opacity += step;
  if (document.all)
    img.style.filter = 'alpha(opacity = ' + img.opacity + ')';
  else if (navigator.appName == 'Netscape' &&
parseFloat(navigator.appVersion) >= 5)
    img.style.MozOpacity = img.opacity + '%';
  if (step > 0 && img.opacity < 100 || step < 0 && img.opacity > 0)
    setTimeout('setOpacity("' + img.name + '",' + step + ', ' + delay 
+ ')', delay);
}


