// JavaScript Document
jQuery("document").ready(function(){
	// Hide All
	
	// Create Toggle
	jQuery('.logo').click(function(){
	    jQuery("#menuhome").slideToggle();
	});
	
	jQuery("#menuhome.toggle").show();
	setTimeout(function() { jQuery("#menuhome.toggle").slideToggle(); }, 5000);
});

jQuery("document").ready(function() {
	clearField("#gform_5");
	clearField("#searchform");
	clearField("#gform_4");
	clearField("#mc-embedded-subscribe-form");
});

function clearField(form) {
	jQuery(form).find("input[type=text], textarea, input[type=email], input").each(function(){ 
			this.defaultValue = this.value;
			jQuery(this).focus(function(){
					if(this.value == this.defaultValue){
							jQuery(this).val("");
					}
					return false;
			});
			jQuery(this).blur(function(){
					if(this.value == ""){
							jQuery(this).val(this.defaultValue);
					}
			});
	});
}
/* The first line waits until the page has finished to load and is ready to manipulate */
$(document).ready(function(){
    /* remove the 'title' attribute of all <img /> tags */
    $("img").removeAttr("title");
});
