$(document).ready(function(){
    $('#gallery a').lightBox();
    $('.localita td.infoloc').mouseover(function(){
        $(this).css('background-color','#f6e1b6')
    });
    $('.localita td.infoloc').mouseout(function(){
        $(this).css('background-color','#faf1de')
    });
    $('.opendir').click(function() {
        $('.opendir ul').hide('slow')
        $(this).children('ul').show('slow')
    });
    $('#basic-modal .basic').click(function (e) {
        $('#basic-modal-content').modal();
		
        return false;
    });
    $(".button").hover(function(){
        $(".button img")
        .animate({
            top:"-10px"
        }, 200).animate({
            top:"-4px"
        }, 200) // first jump
        .animate({
            top:"-7px"
        }, 100).animate({
            top:"-4px"
        }, 100) // second jump
        .animate({
            top:"-6px"
        }, 100).animate({
            top:"-4px"
        }, 100); // the last jump
    });
    $(".a1").tooltip({
        tip: '#tooltip1',
        relative: true,
        position: "center right",
        effect: 'fade'
    });
    $(".a2").tooltip({
        tip: '#tooltip2',
        relative: true,
        position: "center right",
        effect: 'fade'
    });
    $(".a3").tooltip({
        tip: '#tooltip3',
        relative: true,
        position: "center right",
        effect: 'fade'
    });
    $(".a4").tooltip({
        tip: '#tooltip4',
        relative: true,
        position: "center right",
        effect: 'fade'
    });
    $(".a5").tooltip({
        tip: '#tooltip5',
        relative: true,
        position: "center right",
        effect: 'fade'
    });
});
