var headerSlideShow = function() {
	var timer = null;
	var index = 0;
	var imgCount = 0;
	var zIndex = 1;
	
	function start() {
		imgCount = $("#header_foto img").size();
		timer = setTimeout("headerSlideShow.cross()", 5000);
	}
	
	function cross() {	
		$activeImg = $("#header_foto img:eq("+ index +")");		
		$activeImg.hide();
		$activeImg.css('z-index', zIndex);
		$activeImg.fadeIn(1000);
		zIndex++;
		index++;
		index = index % imgCount;
		timer = setTimeout("headerSlideShow.cross()", 5000);
	}
	
	return {
		start: function() {start();},
		cross: function() {cross();}
	};
}();
