// $Id: main.js 69 2008-04-29 11:51:52Z mstillwell $

// onLoad functions
function init() {
	externalLinks();
}

// opens links in new window with rel="external" to validate xhtml strict
function externalLinks() { 	if (!document.getElementsByTagName) return; 	var anchors = document.getElementsByTagName("a");  	for (var i=0; i<anchors.length; i++) {    			var anchor = anchors[i];  			if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external"){
 				anchor.target = "_blank";        		} else if(anchor.getAttribute("href") && anchor.getAttribute("rel") == "thiswindow")anchor.target = "_top"; 	} }

$(document).ready(function() {
	$('#emailAddress').focus(function() {
		if($(this).val() == 'Email') {
			$(this).val('');
		}
	}).blur(function() {
		if($(this).val() == '') {
			$(this).val('Email');
		}
	});
	$('#password').focus(function() {
		if($(this).val() == '******') {
			$(this).val('');
		}
	}).blur(function() {
		if($(this).val() == '') {
			$(this).val('******');
		}
	});
});