// JavaScript Document
$(document).ready(function() {
		$.tools.tooltip.addEffect("showHide",
			// opening animation
			function(done) {
				this.getTip().animate({opacity: '1', top: '-=17'}, 150, done).show();
			},
			// closing animation
			function(done) {
				this.getTip().animate({opacity: '0', top: '+=17'}, 150, function()  {
					$(this).hide();
					done.call();
				});
			}
		);
		//Tooltip configuration
		$("div.panes").tooltip({ 
			// define position
			position: 'bottom center',
			// offset to tweak the position
			//offset: [-188.5, 0],
			//offset: [-146.5, 0],
			offset: [-15, 0],
			relative: true,
			// use custom 'showHide' effect defined earlier
			effect: 'showHide'
		});
		//Hero Tab configuration
		$("ul.buttons").tabs("div.panes > div", {
			// default of click to trigger the slide
			event: 'click',
			//default effect of fade
			effect: 'fade',
			// auto rotate enabled
			rotate: true
		}).slideshow({
			// change from true to false to disable the auto play
			autoplay: true,
			// default delay of 5 seconds between slides changing
			interval: 5000
		});
		//Content Tab configuration
		$("ul.tabs2").tabs("div.panes2 > div", {
			initialIndex: 1
		});
	});
