function initTab(tObj , speed) {
	
	$(".tab-content").each(function() {
		
		if(!$(this).hasClass("atc")) {
			$(this).hide();
		}
		
	});
	
	$(tObj).each(function() {
		$(this).click(function() {
									  
			if(!$(this).hasClass("atc")) {
				
				var target = $("a" , this).attr("rel");
				
				change_tab_active(tObj , $(this).attr("id") , target , speed);
			}
			return false;
		});
	});
	
	
	
}

function change_tab_active(tObj,active_id , target_content , speed) {
	
	$(tObj).each(function() {
		if($(this).attr("id") != active_id) {
			if($(this).attr("id") == "tab01") {
				$(tObj).parent().addClass("bg-off");
			}
			$(this).removeClass("atc");
		}else{
			if($(this).attr("id") == "tab01") {
				$(tObj).parent().removeClass("bg-off");
			}
			$(this).addClass("atc");
		}
	});
	
	var s = "normal";
	if(speed != undefined) {
		s = speed;
	}
	$("#"+target_content).slideDown(s);
	
	$(".tab-content").each(function() {
		if($(this).attr("id") != target_content) {
			//$(this).slideUp(s);
			$(this).hide();
		}
	});
	
	return false;
}
