$.fn.delay = function(time, callback){
	// Empty function:
	jQuery.fx.step.delay = function(){};
	// Return meaningless animation, (will be added to queue)
	return this.animate({delay:1}, time, callback);
}

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();  
    }); 
};

function hidePractice(){
	$("div.practiceArea").fadeOut();
}

function showPractice (theID){
	hidePractice();
	$("div#"+theID).delay(300).fadeIn();
}
$(function(){
	$("a#lnkBusiness").click(function(){
		showPractice("business");
		return false;
	});
	$("a#lnkCivil").click(function(){
		showPractice("civil");
		return false;
	});
	$("a#lnkCollections").click(function(){
		showPractice("collections");
		return false;
	});
	$("a#lnkEmployment").click(function(){
		showPractice("employment");
		return false;
	});
	$("a#lnkGovernment").click(function(){
		showPractice("government");
		return false;
	});
	$("a#lnkProperty").click(function(){
		showPractice("ip");
		return false;
	});
	$("a#lnkInternational").click(function(){
		showPractice("international");
		return false;
	});
	$("a#lnkLandUse").click(function(){
		showPractice("landUse");
		return false;
	});
	$("a#lnkLegislative").click(function(){
		showPractice("legislative");
		return false;
	});
	$("a#lnkRealEstate").click(function(){
		showPractice("realEstate");
		return false;
	});
});
