function contact_validate() {
	var return_value = true;
	$$('#contactform input[type="text"], #contactform textarea').each(function(element) {
		if (return_value && element.value.length < 1) {
			element.focus();
			alert('You must fill all the fields');
			return_value = false;			
		}
	});
	return return_value;
}

function hover(element) {
	return (element.name.search("_hover") !=-1) ? element.name.replace("_hover", "", "") : element.name.substr(0, element.name.length-4)+"_hover.png";
}

function menuhover() {
	$$('.menuhover').each(function(element) {
		element.addEvents({
		'mouseenter': function() {
			this.src = this.name = hover(this);
		},
		'mouseleave': function() {
			this.src = this.name = hover(this);
		} 
		});
	});
}

