/* js enchanced functionality for dbs */

// Mootools is MODx standard javascript framework and it is used by the very useful QuickEdit
// front end editing module. I've bumped jQuery into no conflict mode which disables the $ alias
// in favour of 'jQuery' (minus quotes), and modified this file.
jQuery.noConflict();

 jQuery(document).ready(function() {

	/* faqs */
	jQuery('.faqs').addClass('collapse');

	jQuery('.faqs h4').click(function () {
      jQuery(this).siblings('div').toggle();
    });

	jQuery('.faqs .close').click(function () {
      jQuery(this).parent('div').hide();
    });

	/* the jump menu at the top of each page */
	jQuery('#jump-menu').change(function () {
		if (jQuery(this).val() != "novalue") {
			self.location = jQuery(this).val();
		}
	});
	
	
	/* Get in touch page */
	//Tests for the correct page. This object exists if the Maps API is loaded.
	if (typeof(GBrowserIsCompatible)!=="undefined") {
		if (GBrowserIsCompatible()) {
			var map = new GMap2(document.getElementById("map_canvas"));
			map.setCenter(new GLatLng(51.741593,0.501401), 15);
			map.addOverlay(new GMarker(new GLatLng(51.741593,0.501401)));
			map.enableGoogleBar();
			map.addControl(new GSmallZoomControl());
		}
	}


	
 });
