// ethan@waveriderdesign.com 4.16.2008 - auto-attach rollover functionality to buttons with class "rollover-button"
/*
$(document).ready(function() {
  $('.rollover-button').each(function() {
    $(this).hover(function() { this.src = $(this).attr('src').replace(/\.jpg$/, '-ro.jpg'); }, function() { this.src = $(this).attr('src').replace(/-ro\.jpg/, '.jpg'); });
  });
});
*/
rollover_images = new Object();

$(document).ready(function() {
  $('.rollover-button').mouseover(function() {
  	$(this).attr('src', rollover_images[$(this).attr('src')].src.replace(/http.*\.com/, ""));
  }).mouseout(function() {
  	$(this).attr('src', $(this).attr('src').replace("-ro.jpg", ".jpg"));
  });
});
$(document).ready(function() {
	$('.rollover-button').each(function() {
		rollover_images[$(this).attr('src')] = new Image();
		rollover_images[$(this).attr('src')].src = $(this).attr('src').replace(".jpg", "-ro.jpg");
	});
});

$(document).ready(function() {
	$('.link-underline').hover(function() { $('label[for="' + $(this).attr('id') + '"] a').addClass('highlighted-link'); },
		function() { $('label[for="' + $(this).attr('id') + '"] a').removeClass('highlighted-link'); }
	);
});