// Effect.

var MANDS = {
	init: function (){
		if ($$('.contact_mands').length > 0) {
			$$('.contact_mands').each(function(div){
				div.select('input[type="text"]').each(function(input){
					input.observe('focus',function(){
						if (this.id == 'phone' && $F(this) == 'enter phone') {
							this.value = '';
						}
						if (this.id == 'name' && $F(this) == 'enter name') {
							this.value = '';
						}
						if (this.id == 'email' && $F(this) == 'enter email') {
							this.value = '';
						}
					});
					input.observe('blur',function(){
						if (this.id == 'phone' && $F(this) == '') {
							this.value = 'enter phone';
						}
						if (this.id == 'name' && $F(this) == '') {
							this.value = 'enter name';
						}
						if (this.id == 'email' && $F(this) == '') {
							this.value = 'enter email';
						}
					});
				});
			});
		}
	}
};

document.observe('dom:loaded', MANDS.init);
