App.Flickr.ApiKey = "c691173edb3bd1f5909f9cb3ecb52fb0";
jQuery(document).ready(function(){
    App.Flickr.start();

    $("#destacable").innerfade({
        animationtype: 'slide',
        speed: 1000,
        timeout: 8000,
        type: 'sequence',
        containerheight: '410px'
    });
    $("#show").innerfade({
        animationtype: 'slide',
        speed: 1000,
        timeout: 8000,
        type: 'sequence',
        containerheight: '90px'
    });
    $('a[href*=#]').click(function() {
        if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
            var $target = $(this.hash);
            $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
                if ($target.length) {
                    var targetOffset = $target.offset().top;
                    $('html,body').animate({scrollTop: targetOffset}, 1000);
                return false;
                }
        }
    });

    $('.list.faq li p').hide()

    $('.list.faq li .title').click(function() {$(this).parent().find('p').slideToggle('slow');});

    $(".twitter").tweet();
    $(".box h5").fadeIn(800).fadeOut(800).fadeIn(800).fadeOut(800).fadeIn(800).fadeOut(800).fadeIn(800).fadeOut(800);
});