jQuery(document).ready(function(){
	
	jQuery("#ServiceTabs .tabs a").each(function(i, obj){
		
		jQuery(obj).click(function(){
			var parent = this.parentNode;
			var pos = parseInt(jQuery(parent).attr('pos'))
			
			jQuery("#ServiceTabs .tabs li").each(function(i, obj){
				var _style = 'p'+pos+''+i
				jQuery(obj).removeAttr('class');
				//
				if(pos == i)
				{
					jQuery(obj).addClass('active'+pos);
					jQuery("#tabWrap").removeAttr('class');
					jQuery("#tabWrap").addClass('activeWrap'+pos);
					jQuery("#tabs_ul").removeAttr('class');
					jQuery("#tabs_ul").addClass('tabs_ul'+pos);
				}
				jQuery(obj).addClass(_style);
		
					
			})
			jQuery("#ServiceTabs .content div.cBox:visible").hide()
			jQuery("#ServiceTabs .content #FaT_CB"+pos).show()
		})
		
	})
	
})