// form content neutralizer

addEvent(window, 'load', neutralizerSetup);
		 
function neutralizerSetup(){
	var myform = document.forms['contactForm'];
	var inputs = myform.getElementsByTagName('input');
	for(var i=0; i<inputs.length; i++){
		if(inputs[i].type == 'text'){
			inputs[i].setAttribute('class', 'grey');
			addEvent(inputs[i], 'focus', neutralize);
			}
		}
	}
	
function neutralize(){

	var initialValue = this.getAttribute('value');
	
	this.setAttribute('class', 'black');
	this.setAttribute('value', '');

	this.onblur=function(){
		if(this.value==''){
			this.setAttribute('value', initialValue);
			this.setAttribute('class', 'grey');
			}else{
				removeEvent(this, 'focus', neutralize);
				}
		}
	}
	
function removeObject(){//only works on the homepage for now
	document.getElementById('homepageObject').style.display = 'none';
	document.getElementById('hpBreakerP').style.display = 'none';//this throws an error that the element is null.  WTF???  It's there!
	}	