$(document).ready(function() {

		/***********/
		/* PANEL */
		/***********/
		$(function() {
			$("#nav ul").tabs("#panes div.holder", {effect: 'fade', fadeOutSpeed: 400});
		});
		
		/***********/
		/* TOOLTIP */
		/***********/
		
		$("#nav img[title]").tooltip({
		   // tweak the position
		   offset: [30, 2],
		   // use the "slide" effect
		   effect: 'slide'
		// add dynamic plugin with optional configuration for bottom edge
		}).dynamic({ bottom: { direction: 'down', bounce: true } });
		
		/*
		$("#weblog img[title]").tooltip({
			tipClass: 'tooltipSmall',
			// place tooltip on the right edge
			position: "bottom center",
			// a little tweaking of the position
			offset: [-60, -85],
			// use the built-in fadeIn/fadeOut effect
			effect: "slide",
			// custom opacity setting
			opacity: 0.9
		});
		*/
		
		$("div img[title]").tooltip({
			tipClass: 'tooltipSmall',
			// place tooltip on the right edge
			position: "bottom center",
			// a little tweaking of the position
			offset: [-150, -125],
			// use the built-in fadeIn/fadeOut effect
			effect: "slide",
			// custom opacity setting
			opacity: 0.9
		});
		
		/***********/
		/* OVERLAY E TOOLTIP PORTFOLIO	 */
		/***********/
		// if the function argument is given to overlay,
		// create custom animation algorithm for jQuery called "bouncy"
			
		// create custom tooltip effect for jQuery Tooltip
			
		$(".PortfolioItemUp a[rel]").overlay();
		$(".PortfolioItemDown a[rel]").overlay();
		
		$(".PortfolioItemUp a[title]").tooltip({
			tipClass: 'PortfolioTip',
			// place tooltip on the right edge
			position: "top center",
			// a little tweaking of the position
			offset: [10, 10],
			// use the built-in fadeIn/fadeOut effect
			effect: "slide",
			// custom opacity setting
			opacity: 0.9
		});
		$(".PortfolioItemDown a[title]").tooltip({
			tipClass: 'PortfolioTip',
			// place tooltip on the right edge
			position: "bottom center",
			// a little tweaking of the position
			offset: [10, 10],
			// use the built-in fadeIn/fadeOut effect
			effect: "slide",
			// custom opacity setting
			opacity: 0.9
		}).dynamic({ bottom: { direction: 'down', bounce: false } });
		
		$(".small a[title]").tooltip({
			tipClass: 'PortfolioTip',
			// place tooltip on the right edge
			position: "bottom center",
			// a little tweaking of the position
			offset: [10, 10],
			// use the built-in fadeIn/fadeOut effect
			effect: "slide",
			// custom opacity setting
			opacity: 0.9
		});
		
		

});

