/* Scripts specific to the David Louis Edelman home page. */

/* Initial layout tweaks on page load. */
function initLayout() {
	
	/* Set height of sidebar boxes. */
	$('boxRight').style.height = Element.getHeight($('whiteBox'));
	$('boxLeft').style.height = Element.getHeight($('whiteBox'));
	
}

/* Function for transforming mailing list field on focus. */
function mailingListFocus(email) {
	if (email.value == 'Email Address') {
		email.value = '';
		email.style.textTransform = 'none';
		email.style.color = '#000000';
	}
}

/* Function for transforming search field on blur. */
function mailingListBlur(email) {
	if (email.value == '') {
		email.style.textTransform = 'uppercase';
		email.style.color = '#cccccc';
		email.value = 'Email Address';
	}
}