$(document).ready(function(){		
	var currImgIdx = -1;
	
	setInterval(showRandom, 10000);
	showRandom();
	
	function showRandom(){
		do{
			tmp=Math.floor(Math.random()*$("#imgContainer").children().length);
		}while(tmp==currImgIdx)
			
		currImgIdx = tmp;
		
		//make sure all imgs are hidden
		$('#imgContainer').hide();
		$("#imgContainer img").hide();
		//fade in
		$("#imgContainer img:eq(" + currImgIdx + ")").show();
		$('#imgContainer').fadeIn(2000);
	}			
});
