/*
This does rollovers on images that have a class of "rollover".
The rollover image URL is stored in the "name" attribute and 
swapped with the SRC attribute. I did this because it's one of the
only ways to store the image URL and still have valid HTML. 
*/

$(function() {
	$('.rollover').hover(
	function() {
		var currentImg = $(this).attr('src');
		$(this).attr('src', $(this).attr('name'));
		$(this).attr('name', currentImg);
	}, 
	function() {
		var currentImg = $(this).attr('src');
		$(this).attr('src', $(this).attr('name'));
		$(this).attr('name', currentImg);
	}
	);
});
/*
Enables Cufon
*/
  if (Drupal.jsEnabled) {
    $(document).ready(function() {
      Cufon.replace('h1.title', { fontFamily: 'MrsEaves' });
      Cufon.replace('h1.sun-header', { fontFamily: 'MrsEaves' });
      Cufon.replace('body.section-homepage h2.title', { fontFamily: 'News Gothic' });
    });
  }
