//google search
    var SearchTerm;
    function PerformSearch() {
      // Dynamically load CSS to override defaults
/*      var css = document.createElement('link');
      css.href = '../../css/gsearch_green.css';
      css.type = 'text/css';
      css.rel = 'stylesheet';
      document.getElementsByTagName('head')[0].appendChild(css);
*/
      // Create a search control
      	var searchControl = new google.search.SearchControl();
		searchControl.setResultSetSize(google.search.Search.LARGE_RESULTSET);

      // site restricted web search with custom label
      // and class suffix
	var siteSearch = new google.search.WebSearch();
      	siteSearch.setUserDefinedLabel("Our website");
      	siteSearch.setUserDefinedClassSuffix("siteSearch");
      	siteSearch.setSiteRestriction("wentworthfs.co.uk");
      	searchControl.addSearcher(siteSearch);

	var drawOptions = new google.search.DrawOptions();
	drawOptions.setDrawMode(google.search.SearchControl.DRAW_MODE_TABBED);
//	drawOptions.setSearchFormRoot(document.getElementById("search"))

      // site restricted blog search
      var blogSearch = new google.search.BlogSearch();
      blogSearch.setUserDefinedLabel("WentworthFS News Blog");
      blogSearch.setSiteRestriction("http://wentworthfs.blogspot.com/");
      searchControl.addSearcher(blogSearch);

      // Establish a keep callback
//      searchControl.setOnKeepCallback(null, DummyClipSearchResult);*/

      // tell the searcher to draw itself and tell it where to attach
      searchControl.draw(document.getElementById("searchcontrol"), drawOptions);

      // execute an inital search
      searchControl.execute(SearchTerm);
    }

//    function DummyClipSearchResult(result) {}





//google analytics
//	var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
//	document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

/*	var pageTracker = _gat._getTracker("UA-6381935-1");
	if (readCookie("Email")!=null){
		pageTracker._setVar(readCookie("Email"));
	}
	pageTracker._trackPageview();*/


//google maps
	var map;
	function loadmap(){
		if (GBrowserIsCompatible()) {
			map = new GMap2(document.getElementById("map"));
			map.setCenter(new GLatLng(53.3524, -3.0177), 10);
			map.setUIToDefault();
		}
	}

