// JavaScript Document
var SlideShowSpeed = 3500;
var CrossFadeDuration = 3;

var Picture = new Array(); 
Picture[1]  = '/images/acropolis-athens.jpg';
Picture[2]  = '/images/temple-of-poseidon.jpg';
Picture[3]  = '/images/evzonoi-syntagma-square.jpg';
Picture[4]  = '/images/temple-of-hephaestus.jpg';
Picture[5]  = '/images/academy-of-athens.jpg';
Picture[6]  = '/images/erextheion-caryatids.jpg';
Picture[7]  = '/images/athens-view.jpg';
Picture[8]  = '/images/Greek-Parliament-Syntagma.jpg';

var Caption = new Array();
Caption[1]  = 'The Acropolis of Athens';
Caption[2]  = 'The temple of Poseidon in Sounio';
Caption[3]  = "Tsoliades in front of the Athens Parliament";
Caption[4]  = "The temple of Hephaestus";
Caption[5]  = "The Academy of Athens";
Caption[6]  = "The Acropolis- the Erechtheion and the Caryatids ";
Caption[7]  = "A View of the Acropolis";
Caption[8]  = 'The Greek Parliament in Syntagma';


var tss,iss;
var jss = 1;
var pss = Picture.length-1;

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++)
{
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];
preLoad[iss].alt = Caption[iss];
}

function runSlideShow(){
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;
document.images.PictureBox.alt= preLoad[jss].alt;

if (document.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[jss];
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}


