jQuery(document).ready(function() {

	//the following modifies the search form to add styling and functionality
	//to clear the box on clicking on it
	var elm = document.getElementById('SearchForm_SearchForm_Search')
	if (elm) {
		elm.onclick = function() {this.value=''}
		elm.className = 'search_field'
	}
	var elm = document.getElementById('SearchForm_SearchForm_action_results')
	if (elm) {
		/* IE7 and above does not support type property anymore use dataFld instead*/
		elm.dataFld = 'image'
		elm.src='themes/notts/images/btn_search.png'
		elm.className = 'search_btn'
	}

	/**
	 * Fades the sub menu in and out
	 */
	jQuery('#header_site_menu li').hover(
		function () {
			jQuery(this).find('div').show();
		},
		function () {
			jQuery(this).find("div").hide();
		}
	);
});
