$(document).ready(function() {
	$(".Image5").hover(
		function() {
			this.src = this.src.replace("_off","_on");
		}, function() {
			this.src = this.src.replace("_on","_off");
		}
	);	

	$(".Column4").hover(
		function() {
			var $BubbleID = "#"+$(this).attr("id")+"Bubble";
			var $RolloverID = "#"+$(this).attr("id")+"Rollover";
			$($BubbleID).css('top',-160);
			$($BubbleID).css('opacity',0);
			$($BubbleID).css('z-index',3);
			$($RolloverID).attr("src",$($RolloverID).attr("src").replace("_off","_on"));
			$($BubbleID).stop(true, true).animate({opacity: 1, top:-170}, 300);
		}, function() {
			var $BubbleID = "#"+$(this).attr("id")+"Bubble";
			var $RolloverID = "#"+$(this).attr("id")+"Rollover";
			$($RolloverID).attr("src",$($RolloverID).attr("src").replace("_on","_off"));
			$($BubbleID).stop(true, true).animate({opacity: 0, top: -160}, "fast", function() {
				$($BubbleID).css('z-index',1);			
			});
		}
	);	

	
	$(".SupportYourPeople,.GetStarted,.LittleD").hover (
		function() {
			this.src = this.src.replace("_off","_on");
		}, function() {
			this.src = this.src.replace("_on","_off");
		}
	);

	$(".GetStarted").click (
		function() {
			$(".FadeBackground").css('display','block');
			$(".FormContainer").css('display','block');
			$(".FadeBackground").stop(true, true).animate({opacity: 0.75}, "fast");
			$(".FormContent").stop(true, true).animate({opacity: 1}, "fast");
		}
	);

	$(".SupportYourPeople").click (
		function() {
			$(".FadeBackground").css('display','block');
			$(".SupportContainer").css('display','block');
			$(".FadeBackground").stop(true, true).animate({opacity: 0.75}, "fast");
			$(".SupportContent").stop(true, true).animate({opacity: 1}, "fast");
		}
	);


	$(".FadeBackground,.FormContainer,.SupportContainer").click (
		function(event) {
			if ($(event.target).hasClass("FadeBackground") || $(event.target).hasClass("FormContainer")|| $(event.target).hasClass("SupportContainer")) {
				$(".FadeBackground").stop(true, true).animate({opacity: 0}, "fast", function() {
					$(".FadeBackground").css('display','none');
				});
				$(".FormContent").stop(true, true).animate({opacity: 0}, "fast", function() {
					$(".FormContainer").css('display','none');
				});
				$(".SupportContent").stop(true, true).animate({opacity: 0}, "fast", function() {
					$(".SupportContainer").css('display','none');
				});
			}
		}
	);
	


	
});

$(window).bind("unload", function() {
	$(".Column6").css("opacity","0");
	$(".Column6").css("filter","alpha(opacity=0)");
});

