$(document).ready( function(){
      $('#tab1').cycle({
		fx: 'fade',
		next:   '#next', 
        prev:   '#prev'   
	   });
      $('#tab2').cycle({
		fx: 'fade', 
		next:   '#next', 
        prev:   '#prev' 
	   });
      $('#tab3').cycle({
		fx: 'fade',
		next:   '#next', 
        prev:   '#prev' 
	   });

     /*------------------------------  tabs -----------------------------*/
     $(".tab_content").hide();
	$("ul.tabs a:first").addClass("active").show();
	$(".tab_content:first").show();

	$("ul.tabs a").click(function()
       {
		$("ul.tabs a").removeClass("active");
		$(this).addClass("active");
		$(".tab_content").hide();

		var activeTab = $(this).attr("href");
		$(activeTab).fadeIn();
		return false;
	}); 

     
});
