$.tabs = function(selector, start) {
	$(selector).each(function(i, element) {
		$($(element).attr('tab')).css('display', 'none');
		
		$(element).mouseover(function() {
			$(selector).each(function(i, element) {
				$(element).removeClass('selected');
				
				$($(element).attr('tab')).css('display', 'none');
			});
			
			$(this).addClass('selected');
			
			$($(this).attr('tab')).css('display', 'block');
		});
	});
	
	if (!start) {
		start = $(selector + ':first').attr('tab');
	}

	$(selector + '[tab=\'' + start + '\']').trigger('mouseover');
};
$(document).ready(function(){
	
	$("#popular .content").eq(1).hide();
	$("#popular .tab li").mouseover(function(){
		var index=$(this).index();
		$(this).siblings().removeClass("avtive");
		$(this).addClass("avtive");
		$("#popular .content").hide();
		$("#popular .content").eq(index).show();
	})
	
	
	$('.faq dt:first').css('border-top-width','0');
	$('.faq dd').hide();
	$('.faq dt').click(function() {
		$('.faq dd').hide();
		$(this).next().show()
	});
});
