$(function(){
	//Menu Hover
	$("#top ul li a").find("img:first").each(function(){
		var _loader = new Image();
		$(_loader).attr("src", $(this).attr("src").replace(".png", "_on.png"));
	});
	$("#top ul li a").find("img:first").hover(
		function(){$(this).attr("src", $(this).attr("src").replace(".png", "_on.png"));},
		function(){$(this).attr("src", $(this).attr("src").replace("_on", ""));}
	);
	$("#top ul li ul").hover(
		function(){
			$(this).parent('li').find('img:first').attr("src", $(this).parent('li').find('img:first').attr("src").replace(".png", "_on.png"));},
		function(){$(this).parent('li').find('img:first').attr("src", $(this).parent('li').find('img:first').attr("src").replace("_on", ""));}
	);
	
	//Valite date field if
	$("#working_part_time").click(function(){
		$("#full_time_employment_date").addClass("required");
	});
	
	$("#not_working_part_time #working_full_time #working_part_time_no_full_time").click(function(){
		$("#full_time_employment_date").removeClass("required");
	});
	
	// PNG
	$('img[@src$=.png]').ifixpng();
	//Remove NitroSell
	$("#sitefooter").html('<p>&nbsp;</p>');
	//Validate
	$("#manualForms").each(function(){
		$(this).validate({errorElement:'span'});
	});
	//Gallery
	$(".galleryThumb li a").lightBox({fixedNavigation:true});
	// validate
	$(".validate").each(function(){
		$(this).validate();
	});
	//Mask
	$('input.date').setMask("date-us");
});
