// Quicksearch

$(document).ready(function() {
	// hide everything on the same level as the .handler
	$(".quickbrowseSub").slideUp();
	$(".quickBrowseParent").click(function() {
		$(".quickbrowseSub").slideUp();
		$(this).children().slideDown("slow");
		$(".sublink").click(function(event){ event.stopPropagation(); });
		$(".quickBrowseParent").css("list-style-image", "url('http://images.healthcareerweb.com/imgs/hcw/mooncoat/icons/quickbrowse-arrow-trans.png')"); 
	});
});

// Jobalert

$(document).ready(function() {
		// controls the show/hide on the lightbox
		$("#signup").click(function() {
			$("#homeJobAlert").css("display", "block").animate({top:"10"}, 1000, "swing", function(){
				$("#homeJobAlert").animate({top:"0"}, 300, "swing");
			});
		});
		$("#homeAlertClose").click(function() {
			$("#homeJobAlert").animate({top:"10"}, 300, "swing", function(){
				$("#homeJobAlert").animate({top:"-550"}, 1000, "swing", function(){
					$("#homeJobAlert").css("display", "none");
				});				
			});
		});
});
