Cufon.replace('h1.show, h1.title, .navBar h1.title, ul.navTop li a');
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);
});
//�����_ &����������������������
var weekRoman = { src: '/javascripts/week.swf' };
var weekBlank = { src: '/javascripts/week_.swf' };

sIFR.activate(weekRoman);
sIFR.activate(weekBlank);

sIFR.replace(weekBlank, {
  selector: 'h1.show',
  wmode: 'transparent',
  fixFocus: true,
  css: [
        '.sIFR-root {color: #FFFFFF;margin-left: 10;font-size: 30px;}'
    ]
});
sIFR.replace(weekRoman, {
  selector: 'h1.title',
  wmode: 'transparent',
  fixFocus: true,
  css: [
        '.sIFR-root {color: #000000;margin-left: 10;font-size: 23px;}'
    ]
});
sIFR.replace(weekBlank, {
  selector: '.navBar h1.title',
  wmode: 'transparent',
  fixFocus: true,
  css: [
        '.sIFR-root {color: #FFFFFF;margin-left: 10;font-size: 24px;}'
    ]
});
sIFR.replace(weekRoman, {
  selector: 'ul.navTop li a',
  wmode: 'transparent',
  fixFocus: true,
  css: [
        '.sIFR-root {color: #000000;font-size: 20px;text-align: center;cursor: pointer;line-height: 45px;}'
    ]
});