// JavaScript Document
Cufon('.cufon,.box-sidebar .title,#gioi-thieu .title');

$(window).load(function() {
	$('#slide').nivoSlider({ pauseTime:5000, pauseOnHover:false });
});


// JavaScript Document
$(document).ready(function(){
	
	//ham xu ly tab
	$("#tab-main a.tab").click(function () {
		// switch all tabs off
		$("#tab-main .tab-active").removeClass("tab-active");
		
		// switch this tab on
		$(this).addClass("tab-active").fadeIn(0);
		
		// slide all content up
		$("#tab-main .content-tab").slideUp(0);
		
		// slide this content up
		var content_show = $(this).attr("rel");
		$("#tab-main #"+content_show).fadeIn(100);
	});
	
	$("#tab-container a.tab").click(function () {
		// switch all tabs off
		$("#tab-container .tab-active").removeClass("tab-active");
		
		// switch this tab on
		$(this).addClass("tab-active").fadeIn(0);
		
		// slide all content up
		$("#tab-container .content-tab").slideUp(0);
		
		// slide this content up
		var content_show = $(this).attr("rel");
		$("#tab-container #"+content_show).fadeIn(100);
	});
	
	
	
});

$('#s1').cycle({ 
		fx:     'scrollHorz', 
		prev:   '#prev', 
		next:   '#next', 
		nowrap:  1, 
		timeout: 0 
	});
  
  
  
