(function($) { 
    $.fn.customFadeIn = function(speed, callback) { 
        $(this).fadeIn(speed, function() { 
                if(jQuery.browser.msie) 
                        $(this).get(0).style.removeAttribute('filter'); 
                if(callback != undefined) 
                        callback(); 
        }); 
    }; 
    $.fn.customFadeOut = function(speed, callback) { 
        $(this).fadeOut(speed, function() { 
                if(jQuery.browser.msie) 
                        $(this).get(0).style.removeAttribute('filter'); 
                if(callback != undefined) 
                        callback(); 
        }); 
    }; 
})(jQuery); 



(function($) {
$(function() {

	$('ul.tabs').each(function() {
		$(this).find('li').each(function(i) {
			$(this).click(function(){
				$(this).addClass('current').siblings().removeClass('current')
					.parents('div.section').find('div.box').hide().end().find('div.box:eq('+i+')').customFadeIn(150);
					
			});
		});
	});

})
})(jQuery)
