window.addEvent('domready', function() {

	var mySlide = new Fx.Slide('secondNav').hide();

	$('navigation').addEvent('mouseenter', function(e){
		e.stop();
		var myFunction = function(){ mySlide.slideIn(); };
		myFunction.delay(400);
		;
	});

	$('navigation').addEvent('mouseleave', function(e){
		e.stop();
		mySlide.slideOut();
	});


	$('close').addEvent('click', function(e){
		e.stop();
		mySlide.slideOut();
	});

	var helpSlide = new Fx.Slide('helpSlide').hide();

	$('helpDiv').addEvent('mouseenter', function(e){
		e.stop();
		var myFunction2 = function(){ helpSlide.slideIn(); };
		myFunction2.delay(400);
		;
	});

	$('helpDiv').addEvent('mouseleave', function(e){
		e.stop();
		helpSlide.slideOut();
	});

	$('helpClose').addEvent('click', function(e){
		e.stop();
		helpSlide.slideOut();
	});


	var mapItems = $$('.mapLink');
	mapItems.each(function(item, i) {

		$(item).addEvent('mouseenter', function(e) {
			$('c'+i+'over').setStyle('display', 'inline');
		});
		$(item).addEvent('mouseleave', function(e) {
			$('c'+i+'over').setStyle('display', 'none');
		});

	});
});


function getAnchor(){
	url = location.href;
	var regex = new RegExp("[#]([^$]*)");
	var results = regex.exec(url);
	return (results == null )? "" : results[1];
}