// use this on links to prevent dotted border on certain browsersfunction defocus() {	if (document.all || document.getElementById) 		this.blur(); 	return true;}function isNotEmpty(elem) {	var str = elem.value;	if ((str == null) || (str == '')) {		return false;	}	else {		return true;	}}function isLengthX(elem, required_length) {    //var required_length;	var str = elem.value;	if (str.length == required_length) {		return true;	}	else {		return false;	}}function isNumeric(elem) {	var str = elem.value;		if (isNaN(parseFloat(str))) {		return false;	}	return true}// a recursive jQuery function that crossfades between all// images belonging to <div id="header_slideshow">// i = index of photo to start with// // images should all be assigned as position:absolute; top: 0; left: 0;// image to be shown initially (same as image that i indexes) should// be set to display:block; all other images should be set to display:nonefunction image_xfader(i) {		var fade_in_time = 2000;	var fade_delay = 5000;	var fade_out_time = 2000;	var img_selector = "#header_slideshow img";		var num_images = $(img_selector).length;		$(img_selector + ":eq(" + i + ")").fadeIn(fade_in_time).fadeTo(fade_delay,1,function(){		if ((i+1) == num_images) {			image_xfader(0);		}		else {			image_xfader(i + 1);		}	}).fadeOut(fade_out_time);}// handler function for FAQ pagefunction show_faq(event) {	// this is the id for the <div> that	// we want to show	show_id = '#' + event.attr("class");		// turn off active states for all links first		$('#faq_links li a').removeClass('faq_on');		// then turn on active state for current link	event.addClass('faq_on');		// hide all other FAQ <div>s except the 	// current one	$('#faq_content div').hide(1, function () { 		$(show_id).show();		$(show_id + ' div').show(); 	});	return false;}function cancel_menu() {	$('ul#nav_header li#mn_soups_and_chowders ul').css('display', 'none');}// start the jQuery slideshow// and other jQuery events// after document has loaded$(document).ready(function(){  // start slideshow  image_xfader(0);  // remove dotted boxes from links on focus  // this causes problems with Windows browsers...  //$('a').bind("click", function () { defocus(); });      // simple dropdown timer  var timer_id;				$('li#mn_soups_and_chowders').hover(		function() {		 	$('ul#nav_header li#mn_soups_and_chowders ul').css('display', 'block');		 	timer_id = setTimeout('cancel_menu()', 4000);		}, 		function() {		}	);		$('li#mn_brokers').hover(		function() {		 	$('ul#nav_header li#mn_brokers ul').css('display', 'block');		 	timer_id = setTimeout('cancel_menu()', 4000);		}, 		function() {		}	);});
