

$(document).ready(function() {
	$('span.showAll').css('display','block');
	
	
	$('span.showAll a').click(function(){
		if($('span.showAll a').is('.open')){
			$('div.contactAreaDetails ul li').fadeOut('fast',function(){$('div.contactAreaDetails ul').slideUp('fast');});
			$('span.showAll a').removeClass('open');
			$('span.showAll a').text('Show all locations')
			return false
		}else{
			$('div.contactAreaDetails ul').slideDown('fast',function(){$('div.contactAreaDetails ul li').fadeIn('fast');});
			$('span.showAll a').addClass('open');
			$('span.showAll a').text('Hide these locations')
			return false
		};
	});

 	$('div.mapPin').hoverIntent(function(){
 		infotab='#info_'+$(this).attr('id');
		
		$('div.contactAreaDetails ul').fadeOut('fast',function(){
			$('div.contactAreaDetails ul li').hide();
			$('div.contactAreaDetails ul').show();
			$(infotab).fadeIn('slow');
			$('span.showAll a').addClass('open');
			$('span.showAll a').text('Hide this location')
		});
		
		
 	},function(){});
	var nodeID = $.query.get('location');
	if(nodeID == null){}else{
		$('ul li#info_pin_' + nodeID).css('display','list-item');
	}
 	
 	
});



