	var J = jQuery.noConflict();
	
	
   J(document).ready(function() { 
   
   /// open popup map
	J("a.openmap").fancybox({
		'hideOnContentClick': false,
		'padding'			: 0,
		'width'				: 640,
		'height'			: 440,
		'overlayOpacity'	: 0.5,
        'autoScale'     	: false,
        'transitionIn'		: 'none',
		'transitionOut'		: 'fade',
		'autoDimensions' 	: false,
		'titleShow'			: false,
		'type'				: 'iframe'
		});
	
							  
	
	/// open popup from contact sidebars
	J("#movepopup").fancybox({
		'hideOnContentClick': false,
		'padding'			: 1,
		'width'				: 640,
		'height'			: 340,
		'overlayOpacity'	: 0.5,
        'autoScale'     	: false,
        'transitionIn'		: 'none',
		'transitionOut'		: 'fade',
		'autoDimensions' 	: false,
		'titleShow'				: false
		});
	
							  
		// adding a class to the first child anchors of the list elements so we can correctly mark you are here in the nav
		J(".sf-menu > li > a").addClass("imgreplace");
		
		

			
						  					  						  
     J("ul.sf-menu").superfish({
			autoArrows:  false, 
			dropShadows:   false
		 });  
	
	
				// Andy Langton's show/hide/mini-accordion - updated 18/03/2009
				// Latest version @ http://andylangton.co.uk/jquery-show-hide
				
				
				J('.toggle').prev().wrap('<a href="#" class="toggleLink"></a>');
				
				// hide all of the elements with a class of 'toggle'
				J('.toggle').hide();
				
				// capture clicks on the toggle links
				J('a.toggleLink').click(function() {
				
				
				// toggle the display and "active" class 
				J(this).next('.toggle').toggle('slow');
	
				J(this).toggleClass ('active');
				
				// return false so any link destination is not followed
				return false;
				
				}
				);
				
				
				
	//J("#sidebar img.sidemap").parents("a:first").removeAttr("target").each(function() {
    //this.onclick = function() {
     // return hs.htmlExpand(this, {
      //      objectType: 'iframe'});
   // };
// });


	

	   
  });   // END READY
