$(document).ready(function() {
	
        $('.question-controls li a.yes').click(function() {
		$('.yes-answer').fadeIn('slow', function() {
    	});
		$('.question-controls').hide();
		$('.question-title').hide();
	});
	
	$('.question-controls li a.no').click(function() {
  		$('.no-answer').fadeIn('slow', function() {
    	});
		$('.question-controls').hide();
		$('.question-title').hide();
	});

	// Premium Espresso
	$(".premium-espresso .expand-control").click(function(){
		if ($(this).hasClass("effect")) {
				$(this).removeClass("effect");
				$(".premium-espresso .expand").animate({width: '275px'}, 800);
				$(".premium-espresso .expand-control").animate({right:'431'}, 800);
		} else {
				$(".premium-espresso .expand").animate({width: '15px'}, 800);
				$(".premium-espresso .expand-control").animate({right:'174'}, 800);
				$(this).addClass("effect");
		}
	});	
	
	// Regular Espresso
	$(".regular-espresso .expand-control").click(function(){
		if ($(this).hasClass("effect")) {
				$(this).removeClass("effect");
				$(".regular-espresso .expand").animate({width: '275px'}, 800);
				$(".regular-espresso a.expand-control").animate({left:'395'}, 800);
		} else {
				$(".regular-espresso .expand").animate({width: '15px'}, 800);
				$(".regular-espresso .expand-control").animate({left:'153'}, 800);
				$(this).addClass("effect");
		}
	});
	
	//Header Carousel
	$(function() {  
		$(".newsticker-jcarousellite").jCarouselLite({  
			horizontal: true,  
			visible: 4,  
			auto:2000,  
			speed:2500,
			wrap: 'circular'
		});  
	});
	
	//Class to every third
	var allTargetClasses = $('.barman-introduction-list li');
	var i = 2;
	var iMax = allTargetClasses.length;
	while(i < iMax) {
	$(allTargetClasses[i]).addClass('third');
	i += 3;
	}
	
	//Fancybox
	$(".fancybox").fancybox({
		'overlayOpacity' : 0.5,
		'centerOnScroll' : true
	});
	
	//Tabs
	$("#tabs").tabs();

});	
