jQuery(document).ready(function(){
	jQuery("#menu-item-65, #menu-item-66, #menu-item-67").hover(function() {
		jQuery(this).find("ul").show();
		jQuery(this).append('<div class="menu-arrow"></div>');
	}, function() {
		jQuery(this).find("ul").hide();
		jQuery(this).parent().find('div').remove();		
	});	
	
	jQuery(".bola").hover(function(){
		jQuery(this).css({zIndex:"100"}).find('img').stop(true, false).animate({height:"200px", width:"200px",  marginTop: "-50px", marginLeft: "-50px" }, "400", "easeInBack",
		function(){
			jQuery(this).parent().find('.snippet').stop(false, true).slideDown().css({display:"block"});
		});
	},
	function() {
		jQuery(this).css({zIndex:"50"}).find('div:first').slideUp('400',
		function() {
			jQuery(this).parent().find('img').stop(true, false).animate({height:"100px", width:"100px",  marginTop: "0px", marginLeft: "0px" }, "400", "easeOutBack", function(){
				jQuery(this).parent().css({zIndex:"1"});
			});
		});	
	});
	
	jQuery("#link-to-pdesti").hover(function() {
		jQuery(this).find("#destitle").stop(true, false).animate({backgroundPosition:"-146px -290px"},'400', 'easeOutBack');
	},
	function() {
		jQuery(this).find("#destitle").animate({backgroundPosition:"-600px -290px"},'400', 'easeInBack');
	});
	
	jQuery(".right-tooltip[title]").tooltip({ 
		position: ['center','right'],
		offset: [0,15],
		direction: 'right',
		layout: '<div><div class="arrow-left"></div></div>'
	});
	jQuery(".bottom-tooltip[title]").tooltip({ 
		position: ['bottom','center'],
		offset: [10,0],
		direction: 'down',
		layout: '<div><div class="arrow-top"></div></div>'
	});
        
        jQuery(".eso").hover(
            function(){
                jQuery(this).css({zIndex:"100"}).find('img').stop(true, false).animate({height:"300px", width:"200px",  marginTop: "-100px", marginLeft: "-67px" }, "600", "easeInBack");
            },function() {
                jQuery(this).find('img').stop(true, false).animate({height:"100px", width:"66px",  marginTop: "0px", marginLeft: "0px" }, "600", "easeOutBack", function(){
                    jQuery(this).parent().css({zIndex:"1"});
            });
        });

});
