$(document).ready(function() {
 // hides the reveal as soon as the DOM is ready (a little sooner that page load)
  $('#reveal').hide();
  
 // shows and hides and toggles the reveal on click  
  $('#reveal-show').click(function() {
    $('#reveal').show('slow');
    return false;
  });
  $('#reveal-hide').click(function() {
    $('#reveal').hide('fast');
    return false;
  });
  $('#reveal-toggle').click(function() {
    $('#reveal').toggle(400);
    return false;
  });

 // slides down, up, and toggle the reveal on click    
  $('#reveal-down').click(function() {
    $('#reveal').slideDown('slow');
    return false;
  });
  $('#reveal-up').click(function() {
    $('#reveal').slideUp('fast');
    return false;
  });
  $('#reveal-slidetoggle').click(function() {
    $('#reveal').slideToggle(400);
    return false;
  });
  
	var $scrollingDiv = $("#scrolling-sticker");
 
	$(window).scroll(function(){			
		$scrollingDiv
		.stop()
		.animate({"marginTop": ($(window).scrollTop()) + "px"}, "slow" );			
	});
	
	$('img.hover').hover(function() {
		$(this).attr('src', $(this).attr('src').replace( /_orig/i, '_rollover' ));
	}, function() {
		$(this).attr('src', $(this).attr('src').replace( /_rollover/i, '_orig' ));
	});
});