
jQuery.easing.easeOutQuart = function (x, t, b, c, d) {
	return -c * ((t=t/d-1)*t*t*t - 1) + b;
};

jQuery(function( $ ){

$('#slideshow').serialScroll({
		items:'li',
		prev:'.BoxCenter2 a.leftBtnMini',
		next:'.BoxCenter2 a.rightBtnMini',
		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
	});

$('#haberlerkapsa').serialScroll({
		items:'li',
		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:4000
	});
	
});
Cufon.replace('.Cfont', {
	fontFamily:'Avalon'
});
Cufon.replace('#TopMenu a', {
	color: '-linear-gradient(#ffffff, #dbdbdb)',
	fontFamily:'Avalon',
	hover: {
		textShadow: '1px 1px black'
	}
});
Cufon.replace('#pageTitlem', {
	color: '-linear-gradient(#ffffff, #dbdbdb)',
	fontFamily:'myriad'
});

Cufon.replace('.altLinkler a', {
	fontFamily:'Avalon',
	hover: {
		textShadow: '1px 0px #303030'
	}
});

Cufon.replace('.BoxCenter h1', {
	fontFamily:'Avalon',
	hover: {
		color: '#205999'
	}
});

Cufon.replace('#guncell h2', {
	fontFamily:'Avalon'
});
Cufon.replace('.BoxCenter2 h3', {
	fontFamily:'Avalon'
});
Cufon.replace('.leftMenuIc a', {
	fontFamily:'myriad',
	hover: {
		color: '#ffffff'
	}
});
Cufon.replace('.urunBoxCenter h1', {
	fontFamily:'Avalon'
});
