var $j = jQuery.noConflict();

$j(document).ready(function(){
	
	/* !Email a Friend Social Button ============================== */
	$j(".socialForm").colorbox({width:"35%", height:"85%",iframe:true});
	
	//Colorbox Photos
	$j("a[rel='colorbox']").colorbox();
	
	//primaryNav Dropdowns
	$j('#primary-nav li').hoverIntent(primaryNavConfig);
	
	//Info Box (Accordion)
	$j('#info-box').accordion({autoHeight: false});
	
	// clear input on focus
    var currentValue = '';
	$j('#search-input, #quick-contact input[type=text], #quick-contact textarea').focus(function(){    
		currentValue = $j(this).val();        
		(!$j(this).attr('title')) ? $j(this).attr('title', currentValue) : '' ;
		if($j(this).val() == $j(this).attr('title')){
			$j(this).val(''); 
		}
	}).blur(function(){
		if($j(this).val()==''){
			$j(this).val($j(this).attr('title'));
			currentValue = '';
		}
	});


$j('#banner-home #banner').easySlider({
		prevId: 'prevBtn2',
		nextId: 'nextBtn2',
		auto: true,
		continuous: true,
		pause: 4000	
	});
});

//primaryNav Hover Intent Configuration
var primaryNavConfig = {    
     sensitivity: 10,     
     interval: 100,  
     over: primaryOver,   
     out: primaryOut,
     timeout: 250  
};

function primaryOver(){$j(this).find(">ul").show('fast');  $j(this).addClass("hover"); }
function primaryOut(){$j(this).find(">ul").fadeOut('fast');  $j(this).removeClass("hover"); }

