var currentIndx=-1;
PCimages=new Array(); 
PCimages[0]='images/paulChialdikas.jpg';
PCimages[1]='images/supportChange.jpg';
PCimages[2]='images/fiscalResponsibility.jpg';
PCimages[3]='images/naturalEnvironment.jpg';



titleText=new Array()
titleText[0]='<h1>Vote <br>for <br>Reform.</h1><h2>It is time for new voices to represent the Taxpayers of Cook County.</h2>';
titleText[1]='<h1>Support <br>Change <br>in the <br>MWRD.</h1><h2>It has been over 30 years since there have been various parties on the board of this district.</h2>';
titleText[2]='<h1>Ensure<br>Fiscal<br>Responsibility.</h1><h2>It is time to create a Democracy for the $1.5 billion taxing body.</h2>';
titleText[3]='<h1>Protect Our <br>Natural<br>Environment.</h1><h2>It is time to implement "green infrastructure" programs to preserve, conserve, and reuse rainwater and to protect our natural resources.</h2>';


imagesPreloaded = new Array() 
for (var i = 0; i < PCimages.length ; i++) 

{

imagesPreloaded[i] = new Image(400,302)
imagesPreloaded[i].src=PCimages[i]

}

function automaticly() { 

currentIndx=currentIndx+1;

if (currentIndx >= imagesPreloaded.length) {
  
  currentIndx=0 

}
document.getElementById("theImage").src=imagesPreloaded[currentIndx].src

var thiscaption=document.getElementById('thecaption');
thiscaption.innerHTML=titleText[currentIndx];

var delay = setTimeout("automaticly()",4000)

}
