			$(document).ready(function()
		{
			$.fn.timeout = function(t,f){
		 this.each(function(){setTimeout(f,t); }); 
		 return this; };
			
		 var gorselSayisi = 5;
		 
			hareket(4);
			
			function hareket(current){
				if($("#slayt #img-"+current).attr("id").substring(4) != gorselSayisi-1){
					if($("#slayt #img-"+parseInt(current+1)).css("display") == "block"){
						$("#slayt #img-"+current).fadeOut("slow", function(){
							$(this).timeout(3500,function(){     
			     				hareket(current+1);
							});	
						});
					} 
					else{
						$(this).timeout(1000,function(){     
							hareket(current);
						});
					}
				}
				else{
					$("#slayt #img-0").fadeIn("slow", function(){
						$("#slayt img").each(function(index){
							if($(this).attr("id").substring(4) != "0"){
					  			$(this).css("display","block");	
				  			}
						});
						$(this).timeout(3500,function(){     
			     			hareket(0);
						});	
					});
				}
			}
	
			
	});