$(document).ready(function() {
 
	//Default Action
	$(".tab_content").hide(); //Hide all content
	$(".tabs ul li:first").addClass("active").show(); //Activate first tab
	$(".tab_content:first").show(); //Show first tab content
	
	//On Click Event
	$(".tabs ul li").click(function() {
		$(".tabs ul li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content
		var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active content
		return false;
	});
 
});


function simdi_dondur() {
		$("#dondurgec").addClass("non-flash")
		var _index = "";
		var _factorClick = ".dondurgec-navigate a";
		var _readyInterval = "";
		function getInterval() {
			_readyInterval = setInterval(function() {
				if ($(".dondurgec-navigate a.active").next().length != 0)
					$(".dondurgec-navigate a.active").next().click();
				else
					$(".dondurgec-navigate a").eq(0).click();
			}, 10000)
		}
		$(_factorClick).click(function() {
			clearInterval(_readyInterval)
			_index = $(_factorClick).index(this);
			$(_factorClick).removeClass("active");
			$(this).addClass("active");
			$(".dondurgec-item").eq(_index).addClass("visibleItemChange")
			$(".dondurgec-item.visibleItem").removeClass("visibleItem").dequeue().fadeOut(10, function() {
				$(".factorImage img").css("margin", "0px")
			})
			//$(".factorImage img").css("margin","0px")
			$(".dondurgec-item.visibleItemChange").addClass("visibleItem").removeClass("visibleItemChange").fadeIn(800);
			//animateImage();
			getInterval()
			return false;
		})
		var now_img = ""
		$(".dondurgec-navigate a.active").click()
	
 }

 
 
