$(document).ready(function() {
	$("#selection ul li a").each(function (i) {
	    i = i+1;
	    
	    $(this).click(function() {
			
			hashLink = this.rel;
			
			$(".splash").fadeOut('slow', function() {
	
				// 	Send an AJAX request to get all the states.
				    $.get( 'service_' + hashLink + '?tp=1' , function(response) {
				    
				        // 	Append the response to the div.
				       	 	$(".splash").html( '' );
				        	$(".splash").html( response );
							$(".splash").fadeIn('slow')	;
				        	
				        	
				    }); 
			
			});	
			
		});
		
	});
});
