if(typeof console=="undefined")console={log:function(){},debug:function(){},info:function(){},warn:function(){},error:function(){}};

(function($){

	$(function(){
		$('a[href^=#]').click(function(){
			var target;
			target = $( $(this).attr('href') );
			if (target.length == 0) {
				return;
			}
			$('html, body').animate({scrollTop: target.offset().top}, 'slow','swing');
			return false;
		});
	});

	$(function(){
		$('#gnav ul li a img')
			.mouseover(function(){
			var onSrc = $(this).attr('src').replace('_d.png', '_on.png');
			$(this).attr('src', onSrc);
			})
			.mouseout(function(){
			var offSrc = $(this).attr('src').replace('_on.png', '_d.png');
			$(this).attr('src', offSrc);
		});
	});
   
})(jQuery);
