function showFlash(id){
	showImage(id);
	clearInterval(timerRotation);
}

function showImage(id){
	for(i=1;i<=4;i++){
		document.getElementById('flashImg'+i).style.display='none';
		document.getElementById('carousselLink'+i).className='carousselLink';
	}
	$('#flashImg'+id).fadeIn('fast');
	document.getElementById('carousselLink'+id).className='carousselLinkHover';
	rotate=id;
}

function mouseOutImage(id){
	timerRotation=setInterval('startRotation()',5000);
}

var rotate=0;

function startRotation(){
	rotate++;
	if(rotate==5){
		rotate=1;
	}
	showImage(rotate);
}
