
			Cufon.replace('#header h1');
			Cufon.replace('.feature-title');
 
   jQuery(document).ready(function(){ 
        jQuery("ul.sf-menu").supersubs({ 
            minWidth:    12,   // minimum width of sub-menus in em units 
            maxWidth:    27,   // maximum width of sub-menus in em units 
            extraWidth:  1     // extra width can ensure lines don't sometimes turn over 
                               // due to slight rounding differences and font-family 
        }).superfish();  // call supersubs first, then superfish, so that subs are 
                         // not display:none when measuring. Call before initialising 
                         // containing tabs for same reason. 
    }); 
 

	jQuery(document).ready(function() {
		jQuery('.slideshow').cycle({ // see http://malsup.com/jquery/cycle/ for jQuery cycle options
		fx:  'fade', // options are: blindX, blindY, blindZ, cover, curtainX, curtainY, fade, fadeZoom, growX, growY, scrollUp, scrollDown, scrollLeft, scrollRight, scrollHorz, scrollVert, shuffle, slideX, slideY, toss, turnUp, turnDown, turnLeft, turnRight, uncover, wipe, zoom
		timeout: 5000, // how long slides are shown in ms
    	speed:  500, // how long transition takes in ms
		easing: 'easeInOutQuad', // options are: easeInOutQuad, easeInOutCubic, easeInOutQuart, easeInOutQuint, easeInOutSine, easeInOutExpo, easeInOutCirc, easeInOutElastic, easeInOutBack, easeInOutBounce
		pause: 1,
		pauseOnPagerHover: 1, // pause slideshow when mouse hovers
		sync: 1, // set to 1 to see two slides at the same time
		autostop: 0,
		pager: '#slidenav' // container element for optional slideshow navigation
		});
 
  jQuery("#nav a").removeAttr("title");



	})

	function checkfootform()
{
	if (document.footquote.zipcode.value == '' || document.footquote.zipcode.value == 'Zip Code' )
	{
		alert('Please Enter a Valid Zip Code');
		return false;
	}

	return true;
}

function checkfootzip()
{
	if (document.zipform.zipcode.value == '' || document.zipform.zipcode.value == 'Zip Code' )
	{
		alert('Please Enter a Valid Zip Code');
		return false;
	}

	return true;
}

function checkstate()
{
	if (document.resources.state.value == '' || document.resources.state.value == 'Select Your State' )
	{
		alert('Please Select a State from the List');
		return false;
	}

	return true;
}

function submitsearch() {
	if (document.bigquickquote.zipcode.value == 'Zip Code')
	{
		alert('Please Enter a Valid Zip Code');
	}
	else if (document.bigquickquote.zipcode.value != 'Zip Code') {
		var nextURL = "http://www.insuranceagentsquote.com/insurance-agents-by-zipcode.php?zipcode="+document.bigquickquote.zipcode.value;

	 document.bigquickquote.action = nextURL;
	 document.bigquickquote.submit();
	}
}

function validateform() {
	$error = 'Please fix the following errors:';
	if (document.editform.editorname.value == '')
	{
		$error += '\n - Your Name is Required';
	}
	if (document.editform.editoremail.value == '')
	{
		$error += '\n - Your Email is Required';
	}
	if (document.editform.name.value == '')
	{
		$error += '\n - Agent/Agency Name is Required';
	}
	if (document.editform.address.value == '')
	{
		$error += '\n - Your Address is Required';
	}
	if (document.editform.city.value == '')
	{
		$error += '\n - Your City is Required';
	}
	if (document.editform.zip.value == '')
	{
		$error += '\n - Your Zip Code is Required';
	}

	var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
   var address = document.editform.editoremail.value;
   if(reg.test(address) == false) {
      $error += '\n - Invalid Email';
    

	alert($error);
	
return false;

	}
}
function limitText(limitField, limitCount, limitNum) {
	if (limitField.value.length > limitNum) {
		limitField.value = limitField.value.substring(0, limitNum);
	} else {
		limitCount.value = limitNum - limitField.value.length;
	}
}

