if (document.images)
{
  preload_image_object = new Image();
  // set image url
  image_url = new Array();
  image_url[0] = "http://www.spendingrevolt.com/wp-content/themes/SR/images/nfib.png";
  image_url[1] = "http://www.spendingrevolt.com/wp-content/themes/SR/images/cagw.png";
  image_url[2] = "http://www.spendingrevolt.com/wp-content/themes/SR/images/cwa.png";
  image_url[3] = "http://www.spendingrevolt.com/wp-content/themes/SR/images/60plus.png";
  image_url[4] = "http://www.spendingrevolt.com/wp-content/themes/SR/images/afp.png";

   var i = 0;
   for(i=0; i<=4; i++) 
     preload_image_object.src = image_url[i];
}     


$(function () {
  $('img.nfib').hover(
	function () 
	{this.src="http://www.spendingrevolt.com/wp-content/themes/SR/images/nfib.png";}, 
	function () 
	{this.src="http://www.spendingrevolt.com/wp-content/themes/SR/images/nfib_bw.png";
  });
  $('img.cagw').hover(
	function () 
	{this.src="http://www.spendingrevolt.com/wp-content/themes/SR/images/cagw.png";}, 
	function () 
	{this.src="http://www.spendingrevolt.com/wp-content/themes/SR/images/cagw_bw.png";
  });
  $('img.cwa').hover(
	function () 
	{this.src="http://www.spendingrevolt.com/wp-content/themes/SR/images/cwa.png";}, 
	function () 
	{this.src="http://www.spendingrevolt.com/wp-content/themes/SR/images/cwa_bw.png";
  });
  $('img.60plus').hover(
	function () 
	{this.src="http://www.spendingrevolt.com/wp-content/themes/SR/images/60plus.png";}, 
	function () 
	{this.src="http://www.spendingrevolt.com/wp-content/themes/SR/images/60plus_bw.png";
  });
  $('img.afp').hover(
	function () 
	{this.src="http://www.spendingrevolt.com/wp-content/themes/SR/images/afp.png";}, 
	function () 
	{this.src="http://www.spendingrevolt.com/wp-content/themes/SR/images/afp_bw.png";
  });
});
