// this little guy loads on DOM load before window load event, to stop jumps and flickers
document.observe('dom:loaded', function(e) {
	Element.extend(document.body);
	document.body.addClassName('dgActive');

	if ($('searchKeywords')) {
		var keywords = "Search by title, author, ISBN";					
		if ($('searchKeywords').value=='') {
			$('searchKeywords').value = keywords;
		}
		$('searchKeywords').observe('focus',function(e){
			if (this.value==keywords) {
				this.value = '';
			}
		});
		$('searchKeywords').observe('blur',function(e){
			if (this.value=='') {
				this.value = keywords;
			}
		});
	}	
	
	if ($('email')) {
		var emailwords = "enter your email";
		if ($('email').value=='') {
			$('email').value = emailwords;
		}
		$('email').observe('focus',function(e){
			if (this.value==emailwords) {
				this.value = '';
			}
		});
		$('email').observe('blur',function(e){
			if (this.value=='') {
				this.value = emailwords;
			}
		});		
	}
	
} );