Cufon.set('fontFamily', 'Geometric').replace('#content-main h3');

$(function() {
  
  // Self-labeled form fields
	$('input[title], textarea[title]').each(function() {
		if($(this).val() === '') {
			$(this).val($(this).attr('title'));	
		}

		$(this).focus(function() {
			if($(this).val() == $(this).attr('title')) {
				$(this).val('').addClass('focused');	
			}
		});
		
		$(this).blur(function() {
			if($(this).val() === '') {
				$(this).val($(this).attr('title')).removeClass('focused');	
			}
		});
	});
	
	$('#feature-slideshow').cycle({ 
      fx:     'scrollLeft', 
      timeout: 15000,
      pause:   1
  });
  
  $('#slideshow').cycle({ 
      fx:     'fade', 
      timeout: 7000, 
      pager:  '#slide-nav' 
  });
  
  $('#testimonials').cycle({ 
      fx:     'fade', 
      timeout: 7000
  });
  
  $('#sub-slideshow').cycle({ 
      fx:     'fade', 
      timeout: 5000, 
      pause:   1
  });
  
  // Flowplayer
  flowplayer("a.flowplayer", "/js/flowplayer-3.1.5.swf",  {
  	clip: {
  		// these two configuration variables does the trick
  		autoPlay: false,
  		autoBuffering: true // <- do not place a comma here  
  	}
  });

});	 
