	Cufon.replace('h1'); // Works without a selector engine
//	Cufon.replace('h2'); 

	$(document).ready(function(){
	$("#nav ul li").hover(function() { //Hover over event on list item
		//$(this).css({ 'background' : '#1376c9 url(topnav_active.gif) repeat-x'}); Add background color and image on hovered list item
		$(this).find("span").show(); //Show the subnav
	} , function() { //on hover out...
		//$(this).css({ 'background-postion' : 'none'}); Ditch the background
		$(this).find("span").hide(); //Hide the subnav
	});
	
	$.validator.setDefaults({
//		submitHandler: function() { 
//			alert("submitted!"); 
//			$('#theform').slideUp('fast');
//			$('#thanks').slideDown('fast');
//			$('#topsearches').slideDown('fast');
//		}
	});
	
   $("#quoteform").validate();

	$('.fade').innerfade({
		speed: 1000,
		timeout: 6000,
		type: 'random_start',
		containerheight: '1.5em'
	});

  // Display Quote Form
  $('.start').click(function() {
 	 $('#message-body').slideUp('fast', function() {
		$('#topsearches').slideUp('fast');
    	$('#theform').slideDown('fast');});
  });

    // Display Videos
  $('.btn').click(function() {
 	 $('#previewvids').slideUp('fast', function() {
		$('#morevids').slideDown('fast');});
  });

   $("#innerform").validate();

  var clearMePrevious = '';

  // clear input on focus
  $('.clearMeFocus').focus(function()
	{
	  if($(this).val()==$(this).attr('title'))
	{
	  clearMePrevious = $(this).val();
	  $(this).val('');
	}
  });
  
  // if field is empty afterward, add text again
  $('.clearMeFocus').blur(function()
	{
	   if($(this).val()=='')
	{
	  $(this).val(clearMePrevious);
	}
  });
  
 $("tr:odd").addClass("odd");

});
