/* -----------------------------------------------------------------------------
	JAVASCRIPT INFO
	Author:            Sebastian Torresi - hola@sebastiantorresi.com
	Author Website:    http://sebastiantorresi.com
	Version:           1
	Description:       Javascript using jQuery & jQuery tools
-------------------------------------------------------------------------------- */
$(function() { 

	// CATEGORY
	$.tools.tooltip.addEffect("bouncy",
	function(done) {
		this.getTip().animate({top: '+=0', opacity: 1, height: 'swing'}, 500, 'linear', done).show();
	},
	function(done) {
		this.getTip().animate({bottom: '-=0', opacity: 0, height: 'swing'}, 500, 'linear', function()  {
			$(this).hide();
			done.call();
		});
	}
	);
	
	$(".cat-icon p[title]").tooltip({
   	offset: [15, -70],
   	effect: 'bouncy',
   	tipClass: 'contentIcons'
	}).dynamic({ bottom: { direction: 'left', bounce: true } });
	
	// GALLERY
	$(".gallery").fancybox({
		'padding': 0,
		'margin': 0,
		'speedIn': 600, 
		'speedOut': 200, 
		'overlayShow': true,
		'overlayOpacity': 0.8,
		'overlayColor': '#000',
		'transitionIn': 'elastic',
		'transitionOut': 'elastic',
		'speedIn': 300
	});
	
});