$(document).ready(function(){
	$('h1').not('.noSifrl').sifrl({
		swf: 'mysite/swf/sifrl_sanuk_medium.swf',
		txtSize: 16,
		txtLeading: 0,
		txtLetterSpacing: 0.2,
		offsetX: -3,
		offsetY: -2
	});
	$('h2').not('.noSifrl').sifrl({
		swf: 'mysite/swf/sifrl_sanuk_medium.swf',
        txtSize: 12,
		txtLeading: -1,
		txtAlign: 'right',
		offsetX: -5
	});	
    
    //twitter
    var counter = 0;
    var total = $('#footer .tweets p').length;
    $('#footer .tweets p:eq(0)').show();
    if(total > 1) setTimeout(function(){nextTweet();}, 7*1000);

    function nextTweet() {
        counter++;
        if(counter == total) counter = 0;
        $('#footer .tweets p:visible').fadeOut(500, function(){        
            $('#footer .tweets p').eq(counter).fadeIn(500, function(){
                setTimeout(function(){nextTweet();}, 7*1000);
            });            
        });        
    }
    
});
