// By W3b
$(document).ready(function(){
$("a.zoom").fancybox();
	$(".urun_adi a").append("<em></em>");
	
	$(".urun_adi a").hover(function() {
		$(this).find("em").animate({opacity: "show", top: "-75"}, "slow");
		var hoverText = $(this).attr("title");
	    $(this).find("em").text(hoverText);
	}, function() {
		$(this).find("em").animate({opacity: "hide", top: "-85"}, "fast");
	});
	if(document.all) {
		$('#Menu li.HasSubMenu').hover(function() {
			$(this).addClass('over');
			return false;
		},
		function() {
			$(this).removeClass('over');
		});
	};
});

jQuery.easing.easeOutQuart = function (x, t, b, c, d) {
	return -c * ((t=t/d-1)*t*t*t - 1) + b;
};

jQuery(function( $ ){
$("img.reflect").reflect({/* Put custom options here */});
$('#slideshow').serialScroll({
		items:'li',
		prev:'#leftbtn',
		next:'#rightbtn',
		offset:0, //when scrolling to photo, stop 230 before reaching it (from the left)
		start:0,
		duration:1000,
		force:true,
		stop:true,
		lock:false,
		lazy:false,
		axis:'x',
		cycle:true,
		step:1,
		easing:'easeOutQuart', //use this easing equation for a funny effect
		jump:false,
		exclude:1,
		interval:3000
	});
$('#Blogs').serialScroll({
		items:'div',
		duration:1000,
		force:true,
		axis:'y',
		easing:'linear',
		cycle:true,
		lazy:false,// NOTE: it's set to true, meaning you can add/remove/reorder items and the changes are taken into account.
		interval:3000, // yeah! I now added auto-scrolling
		step:1 // scroll 2 news each time
	});
$('#referanses').serialScroll({
		items:'font',
		duration:2000,
		force:true,
		axis:'y',
		easing:'linear',
		cycle:true,
		lazy:false,// NOTE: it's set to true, meaning you can add/remove/reorder items and the changes are taken into account.
		interval:5000, // yeah! I now added auto-scrolling
		step:1 // scroll 2 news each time
	});

	
});