jQuery(function($){
	//$(document).pngFix();
	Cufon.replace('.lavaLamp li a', { fontFamily: 'Museo 700' });
	Cufon.replace('h1', { fontFamily: 'Museo 700' });
	Cufon.replace('h2', { fontFamily: 'Museo 700' });
	Cufon.replace('h4', { fontFamily: 'Museo 700' });
	Cufon.replace('h3', { fontFamily: 'Museo 700' });	
	Cufon.replace('h5', { fontFamily: 'Museo 700' });
	Cufon.replace('h6', { fontFamily: 'Museo 700' });

	Cufon.replace('.content-twitter-link', { fontFamily: 'Museo 700' });
	Cufon.replace('.reasons-why', { fontFamily: 'Museo 700' });
	Cufon.replace('a.cufon', { fontFamily: 'Museo 700', hover: true });
});

jQuery(window).load(function(){
	// Cycle the writing on the bilboard
	jQuery(".billboard-left").cycle({
		fx: "scrollHorz",
		timeout: 8000,
		prev: ".billboard-prev",
		next: ".billboard-next",
		easing: "easeOutCubic",
		cleartype:  true,
    	cleartypeNoBg:  true
	});
	
	
	//Cycle the images
	jQuery(".billboard-image").cycle({
		fx: "scrollVert",
		timeout: 8000,
		prev: ".billboard-prev",
		next: ".billboard-next",
		easing: "easeOutCubic"
	});
	
	
	
	jQuery(".billboard-next").click(function() {
		jQuery(".billboard-left").cycle('pause');
		jQuery(".billboard-image").cycle('pause');
	});
	
	jQuery(".billboard-prev").click(function() {
		jQuery(".billboard-left").cycle('pause');
		jQuery(".billboard-image").cycle('pause');
	});
});



jQuery(window).load(function(){


	jQuery('.wpcf7-form').validate({
		errorLabelContainer: jQuery("#note"),
		wrapper: 'p',
		rules: { name: {required: true, minlength: 3, maxlength: 100}},
		messages: {
				name: { required: "Please enter your name" },
				email_address: { required: "Please enter your email address" }
		}
	});
});

jQuery(window).load(function(){
    jQuery(".lavaLamp").lavaLamp({fx: "backout", speed: 700});
});
