jQuery(document).ready(function() {
//Slider								
    jQuery('#mycarousel').jcarousel({				
		auto: 10,
        wrap: 'circular',
		scroll: 1							
    });
	
//Tabs
	initializeTabs('.tabs li a', '.tabContainer > div' );

});

function initializeTabs(tabLinksContainer, tabContentContainer) {

	var contents = $(tabContentContainer);
	
	$(tabLinksContainer).first().addClass('active');
	
	contents.each(function() { $(this).hide(); });
	$(contents[0]).show();
	
	$(tabLinksContainer).each(function(index) {
	
		$(this).click(function() {
		    $(tabLinksContainer).removeClass("active");
			contents.each(function() { $(this).hide(); $(this).children('iframe').hide(); });
			
			$(contents[index]).show();
			$(this).addClass("active");
			$(contents[index]).children('iframe').show();
			
			return false;
		});
	});
}

