//makes a functional button which pulses.  
//change the setTimeout numbers to affect the frequency of the pulsation.
//-Matt Wojas, Nov.28.2011
$(document).ready(function () {	
	fadeIn();	//start the pulsate loop
	
	//set up hover state interruptions, in addition to css styles
	$("#button_pulse").mouseover(function(){
		$("#button_pulse").attr("src", "/CVHF/media/common/Donate_Rollover.gif");		
	}),
	$("#button_pulse").mouseout(function(){
		$("#button_pulse").attr("src", "/CVHF/media/common/Donate_01.gif");	
    });
});
function fadeIn(){
	$("#button_pulse").stop().animate({ "opacity": "0" }, "slow");
	window.setTimeout('fadeOut()', 2000);
}
function fadeOut(){
	$("#button_pulse").stop().animate({ "opacity": "1" }, "slow");
	window.setTimeout('fadeIn()', 5000);
}

