// JavaScript Document

var mypos = document.getElementById("imageHolder");
var newpos = 1;
var myarray = new Array;
var mycounter = 0;
setInterval("moveover(3, 176)", 6000);
//alert("this part of the code runs");
	
function moveover(numpics, imgwidth){
//alert("IE is stupid");
while(mycounter < numpics){
	myarray[mycounter] = (imgwidth*mycounter)*-1;
	mycounter ++;
}

var total = numpics - 1;
var curpos = myarray[newpos];


$("#imageHolder").animate({
		left:curpos
		}, 950, function (){
if(newpos < total)
{newpos += 1;}
else
{newpos =0;	}
		}
);
}

