/*

   Trimec js generico

   ver.1.0 ott 2011


*/


$(document).ready(function(){

    $(".navigation").miniTongue({
                extendedSize: 135,
                showLastItem: false,
                duration: 200});

    $("div.OpenTick").click(function(){
        var element = $(this).siblings(".Content");
        element.slideToggle(200,function()
        {
            var image = element.is(':visible') ? 'css/images/tag_close.png' : 'css/images/tag_open.png';
            $(this).siblings('div.OpenTick').children('img').attr('src', image);
        });
    });

    $('#slider-code').tinycarousel();

	$("a.fancybox").fancybox({
		'titlePosition'	: 'over',
		'transitionIn'	: 'elastic',
   	    'transitionOut'	: 'elastic',
        'overlayOpacity': '0.7',
        'overlayColor'  : '#000'
	});


   /* $("ul.overview > li").hover(function() {
	$(this).css({'z-index' : '10'}); //Add a higher z-index value so this image stays on top
	$(this).find('img').addClass("hover").stop() // Add class of "hover", then stop animation queue buildup
		.animate({
			marginTop: '-28px', // The next 4 lines will vertically align this image
			marginLeft: '-17px',
			width: '223px', // Set new width
			height: '168px', // Set new height
		}, 200); // this value of "200" is the speed of how fast/slow this hover animates

	} , function() {
	$(this).css({'z-index' : '0'}); // Set z-index back to 0
	$(this).find('img').removeClass("hover").stop()  // Remove the "hover" class , then stop animation queue buildup
		.animate({
			marginTop: '0', // Set alignment back to default
			marginLeft: '0',
			top: '0',
			left: '0',
			width: '149px', // Set width back to default
			height: '112px', // Set height back to default
		}, 400);
})*/

});
