// JavaScript Document

function appear() {
	Effect.Appear('pictures');
document.getElementById("pictures").innerHTML = "<img src=\"images/"+section+"/"+thispic+".jpg"+"\" alt=\"babacool\" >";
}

var fader;



function cyclePics(){
			if(thispic<totalpics){
				thispic ++;
				Effect.Appear('pictures');
				document.getElementById("pictures").innerHTML = "<img src=\"images/"+section+"/"+thispic+".jpg"+"\" alt=\"babacool\" >";
				}
			else {
				thispic=2;
				Effect.Appear('pictures');
				document.getElementById("pictures").innerHTML = "<img src=\"images/"+section+"/"+thispic+".jpg"+"\" alt=\"babacool\" >";
				}
		
		setTimeout("cyclePics()", 6000);
		fader = setTimeout('Effect.Fade(\'pictures\', {duration:.3})',5700);
		
		

}