/* 
* Skeleton V1.0.2
* Copyright 2011, Dave Gamache
* www.getskeleton.com
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
* 5/20/2011
*/	
	

$(document).ready(function() {

	/* Tabs Activiation
	================================================== 
	var tabs = $('ul.tabs');
	
	tabs.each(function(i) {
		//Get all tabs
		var tab = $(this).find('> li > a');
		tab.click(function(e) {
			
			//Get Location of tab's content
			var contentLocation = $(this).attr('href') + "Tab";
			
			//Let go if not a hashed one
			if(contentLocation.charAt(0)=="#") {
			
				e.preventDefault();
			
				//Make Tab Active
				tab.removeClass('active');
				$(this).addClass('active');
				
				//Show Tab Content & add active class
				$(contentLocation).show().addClass('active').siblings().hide().removeClass('active');
				
			} 
		});
	}); */
	
	/*dettagli
		$("html.no-touch .dettagli").css("opacity","0");
		$("html.no-touch .lavoro").hover(
			function (e) {
				a = $(this).find('.dettagli');
				a.animate({
					opacity: "1"
				}, 90 );
			}, 
			function (e) {
				a = $(this).find('.dettagli');
				a.animate({
					opacity: "0"
				}, 200 );
			}
		);
		
		/*correzione per i device touch
		$("html.touch .dettagli").css("position","relative");*/
		
	/*tooltip : tolgo i tooltip per i */
	$(".tooltip-trigger").click(
		function (e) {
			x=e.pageX;
			y=e.pageY;
	
			$("body").append(
           
           
            '<div class="tooltip" style="position: absolute;left:'+x+'px; top: '+y+'px">'
                +$(this).attr("alt")
            +'</div>'
			);
			$(".tooltip").delay(1000).fadeOut(800);
		}
	);
	
		
	
});

