$(document).ready(function() {
	
	$('.menu-tabs a').click(function() {
	
		if($(this).parent().hasClass('current')) {
			return false;	
		} else {
			
			$('.menu-tabs li').removeClass('current');
			$('.menu-page').hide();
			
			var current_id = $(this).parent().attr('class');
			$(this).parent().addClass('current');
			Cufon.refresh();
			$('div#'+current_id).fadeIn('fast');
			
		}		
		
		return false;
		
	});
	
	$('.btn-prev, .btn-next').show();
	
	$('#homeslides').cycle({ 
		fx:    		'scrollHorz', 
		speed:  		1000, 
		timeout: 	10000,
		pause: true
	});
	
	$('.btn-next a').click(function() {
		$('#homeslides').cycle('next');
		return false;
	});
	
	$('.btn-prev a').click(function() {
		$('#homeslides').cycle('prev');
		return false;
	});
	
	jQuery(function($){
        $(".tweet").tweet({
            username: "thescrumper",
            join_text: "auto",
            avatar_size: 32,
            count: 1,
            auto_join_text_default: "we said,", 
            auto_join_text_ed: "we",
            auto_join_text_ing: "we were",
            auto_join_text_reply: "we replied to",
            auto_join_text_url: "we were checking out",
            loading_text: "loading tweets..."
        });
    });

});
