$J(document).ready(function(){

/* Makes the Marketplace autos, homes, and jobs work */

$J("a.autos").click(function() {
	$J(this).css("background","url(/images/marketplace/mp_autos.gif) no-repeat top");
	$J("a.jobs").css("background", "url(/images/marketplace/mp_jobs.gif) no-repeat bottom");
	$J("a.homes").css("background", "url(/images/marketplace/mp_homes.gif) no-repeat bottom");
	$J("#jobsContent").fadeOut(100, function() {
	$J("#homesContent").fadeOut(200, function() {
	$J("#autosContent").fadeIn(200);
});
	});
		});
$J("a.jobs").click(function() {
	$J(this).css("background","url(/images/marketplace/mp_jobs.gif) no-repeat top");
	$J("a.autos").css("background", "url(/images/marketplace/mp_autos.gif) no-repeat bottom");
	$J("a.homes").css("background", "url(/images/marketplace/mp_homes.gif) no-repeat bottom");
	$J("#autosContent").fadeOut(100, function() {
	$J("#homesContent").fadeOut(200, function() {
	$J("#jobsContent").fadeIn(200);
});
	});
		});
$J("a.homes").click(function() {
	$J(this).css("background","url(/images/marketplace/mp_homes.gif) no-repeat top");
	$J("a.jobs").css("background", "url(/images/marketplace/mp_jobs.gif) no-repeat bottom");
	$J("a.autos").css("background", "url(/images/marketplace/mp_autos.gif) no-repeat bottom");
	$J("#jobsContent").fadeOut(100, function() {
	$J("#autosContent").fadeOut(200, function() {
	$J("#homesContent").fadeIn(200);
});
	});
		});

/* This makes the first paragraph of the SpotLight div display correctly */
 $J("#spotLight p:eq(0)").css("padding-top","50px");
});

