$(function(){
			if (! ('console' in window) || !('firebug' in console)) {
							var names = ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'];
							window.console = {};
							for (var i = 0; i < names.length; ++i) window.console[names[i]] = function() {};
				};
jQuery.fn.fadeIn = function(speed, callback) {
    return this.animate({opacity: 'show'}, speed, function() {
        if (jQuery.browser.msie)
            this.style.removeAttribute('filter');
        if (jQuery.isFunction(callback))
            callback();
    });
};

jQuery.fn.fadeOut = function(speed, callback) {
    return this.animate({opacity: 'hide'}, speed, function() {
        if (jQuery.browser.msie)
            this.style.removeAttribute('filter');
        if (jQuery.isFunction(callback))
            callback();
    });
};

jQuery.fn.fadeTo = function(speed,to,callback) {
    return this.animate({opacity: to}, speed, function() {
        if (to == 1 && jQuery.browser.msie)
            this.style.removeAttribute('filter');
        if (jQuery.isFunction(callback))
            callback();
    });
};

			$('.staffperson').live('click',function(){
						var id=$(this).attr('id');
						$('#bigbio').fadeOut();
						$('#bigbio').load("/staff/"+id+".php",function(){$('#bigbio').fadeIn(800,function(){$('.colorlist li').wrapInner("<span class='normal'></span>");var off=$('#bigbio').offset();$('html,body').animate({scrollTop:off.top},1000);$('#bigbio').append("<div id='back2staff'><a href='#staffpage'>Back to Staff List</a></div>");});});
			});
			$('#back2staff a').live('click',function(){$('html,body').animate({scrollTop:$('#staffpage').offset().top},1000);return false;})
//END JQ
})

var ttt;
function incrementbn(holder,current,max){
			//console.debug($(holder),holder,current,max);
			current=current+1;
			if(current<=max){
						$(holder).text(current+'%');
						//console.debug($(holder),holder,current,max);
						ttt=setTimeout(function(){incrementbn(holder,current,max)},26);
			}
			else{
						//console.log('End');
						$(holder).css('color','');
			}
}
