window.addEvent('domready', function() {
    
    if($('headnav')) {
        var nav = $('headnav');
        // Fade out the navigation if we're on a location page (which we are, because this file is only loaded on a location page)
        var fade = new Fx.Style(nav, 'opacity', {duration:1000, wait:false});
        fade.start(0.4);
        
        // Also, fade it back in on hover (and back out on blur)
        nav.addEvents({
			'mouseover': function() {
			    fade.options.duration = 250;
				fade.start(1)
			},
			'mouseout': function() {
				fade.options.duration = 1000;
				fade.start(0.4)
			}
		});
		
    }
});