
(function($) { $(document).ready(function() {


	$('#content .post-navigation a').each(function(){
		var t = $('span', this).attr('title');
		if(t) $(this).attr('title', t);
		$(this).tipsy();
		$('span', this).attr('title', '');
	});

	$('#entry-gallery .items').cycle({ 
	    speed:       200, 
	    timeout:     3000, 
	    pager:      '#entry-gallery .nav', 
	    pagerEvent: 'mouseover',
	    pauseOnPagerHover: true 
	});
	

	$('#page-split-content').cycle({ 
		fx:     'scrollRight',
	    speed:       500, 
	    timeout:     0, 
	    pager:      '#page-split-nav'
	});

	$('#entry-drag-gallery .slider').each(function(){
		
		new Dragdealer(this,
		{
			horizontal: true,
			snap: false,
			yPrecision: $("#entry-drag-gallery .items").width(),
			animationCallback: function(x, y)
			{
				var container = $("#entry-drag-gallery");
				var content = $(".items", container);
				var margin = x * (content.width() - container.width());
				content.css("marginLeft", String(-margin) + 'px');
			}
		});
		
		$('.handle', this).tipsy({gravity: 's'});

	});
	
	

})})(jQuery);


