 var fjQ = jQuery.noConflict();
fjQ(document).ready(function() {

	
		// new and event slider
		fjQ('#carusel_1').bxSlider({
				mode: 'vertical',
				speed: 500,
				pager: true
			});
		fjQ('#carusel_2').bxSlider({
				mode: 'vertical',
				speed: 200,
				pager: true
		});
		
		
		// middle carousel
		fjQ("#slider").carouFredSel({
		scroll	: {	duration: 500 },
		auto	: false,
		prev 	: {	
			button: "#slider_prev",
			key: "left"
		},
		next 	: { 
			button: "#slider_next",
			key: "right"
		},
		pagination: "#slider_pag"
	});
		
		
	fjQ(".content_area").hide(); //Hide all content
	fjQ("ul.tabs1 li a:first").addClass("active").show(); //Activate first tab
	fjQ(".content_area:first").show(); //Show first tab content
	fjQ("ul.tabs1 li").click(function() {
		fjQ('ul.tabs1 li a').removeClass("active"); //Remove any "active" class
		fjQ(this).children('a').addClass("active"); //Add "active" class to selected tab
		fjQ(".content_area").hide(); //Hide all tab content
		var activeTab = fjQ(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
		fjQ(activeTab).fadeIn(); //Fade in the active content
		return false;
	});	
		
});
