var count=2;
var running=true;
var seconds=4000;
function doRewrite(){
	if(arrPictures.length<=2){
		running=false;
	}
	//alert(count+" "+arrPictures.length);
	if(running){
		imgC(arrPictures[count]);
		count++;
		if(count>arrPictures.length-1){
			count=1;
		}
      	setTimeout("doRewrite()",seconds);
   	}
}
function stopTimer(){
   running=false;
}