/**
 *	Smooth Scroll Observer courtesy of
 *	http://eddcouchman.com/notebook/smooth-scrolling-links/
 *
 *	... cheers edd :-)
 */
SmoothScrollOffset = -12;
Event.observe(window, 'load', function()
{
   $$('a[href^=#]:not([href=#])').each(function(element)
   {
   	  if ( !element.hasClassName('lightview') ) {
	      element.observe('click', function(event)
	      {
	         new Effect.ScrollTo(this.hash.substr(1),
	         {
	            offset: SmoothScrollOffset
	         });
	 		 /*
	         if ( this.hash.substr(1) !== 'top' )
	         {
	            if ( Prototype.Browser.IE )
	            {
	               $(this.hash.substr(1)).setStyle({
	                  backgroundColor: '#fff'
	               });
	            }
	 
	            Effect.Pulsate(this.hash.substr(1),
	            {
	               from: 0.5,
	               pulses: 5
	            });
	         }
	 		 */
	         Event.stop(event);
	      }.bindAsEventListener(element));
		}
   });
});