Cufon.replace('h2, div.content_right h3, div.content_right h4', { fontFamily: 'Futura Lt BT' });
Cufon.replace('h2 span', { fontFamily: 'Futura Md BT' });
Cufon.replace('div.content_left h3, div.content_left h4', { fontFamily: 'Futura Md BT' });



$(document).ready(function(){
	
	$('body').supersleight();
	
	//bgiframe
	$('div.header').bgiframe();
	
	// superfish
	// $.fn.superfish.defaults.autoArrows = false;
	$("div.nav ul").superfish({
			pathClass: 'current',
			delay:       1000,                            // one second delay on mouseout 
	    animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
	    speed:       'normal',                          // faster animation speed 
	    autoArrows:  false,                           // disable generation of arrow mark-up 
	    dropShadows: true                          // disable drop shadows
	});
	
	
	// email replacement	
	$('a.email').each(function(){
		e = this.rel.replace('/','@');
		this.href = 'mailto:' + e;
		$(this).text(e);
	});
	  
	  // rel external
	$('A[rel="external"]').click( function() {
	        window.open( $(this).attr('href') );
	        return false;
	    });


});


$(document).ready(function() {
	
	function myOnComplete(){
	      return true;
	    }

	   	$("#user_form").RSV({
	  	  onCompleteHandler: myOnComplete,
	  		rules: [
			"required,name,Please enter your name.",
			"required,phone,Please enter your phone number.",
   		"digits_only,phone,The phone field may only contain digits."
	  		]
	  	});
 });
