jQuery(document).ready(  
	function(){
		var hoverConfig = {	
				over: showMenu,
				timeout: 100,
				out: hideMenu
			};
		jQuery("#nav ul li").each(
			function(ev, li) {				
				jQuery(li).hoverIntent(hoverConfig);       
			}
		);
	
		
		swapValue = [];
		jQuery(".swap-value").each(function(i){
			 swapValue[i] = jQuery(this).val();
			 jQuery(this).focus(function(){
					if (jQuery(this).val() == swapValue[i]) {
						 jQuery(this).val("");
					}
					jQuery(this).addClass("focus");
			 }).blur(function(){
					if (jQuery.trim(jQuery(this).val()) == "") {
						 jQuery(this).val(swapValue[i]);
			 jQuery(this).removeClass("focus");
					}
			 });
		});
		
	}
);  
function showMenu(ev) {
	li = ev.currentTarget;
  if(li.childNodes.length > 1) {
		jQuery(li).addClass('hover');
  	jQuery(li.childNodes[2]).fadeIn(150);
  }
}
function hideMenu(ev) {
	li = ev.currentTarget;
  if(li.childNodes.length > 1) {
		jQuery(li).removeClass('hover');
	  jQuery(li.childNodes[2]).fadeOut(150);
  }
}

Cufon.replace('h1', { fontFamily: 'Bebas'});
Cufon.replace('h2', { fontFamily: 'Bebas'});
Cufon.replace('h3', { fontFamily: 'Bebas'});
Cufon.replace('h4', { fontFamily: 'Bebas'});
Cufon.replace('h5', { fontFamily: 'Bebas'});
Cufon.replace('h6', { fontFamily: 'Bebas'});
Cufon.replace('#nav li a strong', { fontFamily: 'Bebas', hover: true });
Cufon.replace('#home-header .phone strong', { fontFamily: 'Bebas'});
Cufon.replace('#header .phone strong', { fontFamily: 'Bebas'}); 

