var called = false;
$(function(){
	if (called) return;
	called = true;

	//handle newsletter signup text replace
	$("#newsletterSignup #inputSignup").focus(function () {
		if(this.value == "Email Address") { this.value = ""; }
	});
	$("#newsletterSignup #inputSignup").blur(function () {
		if(this.value == "") { this.value = "Email Address"; }
	});

	//initial client login box state
	$("#loginBox").css("width","165px");
	//show/hide the client login box
	$("#loginBox .loginLink").click(function() {
		if($("#loginBox").width() < 375) {
			$("#loginBox").animate({width:"375px"});
			$("#loginBox input.loginfield").focus();
			return false;
		} else {
			$("#loginBox input.loginfield").blur();
			$("#loginBox").animate({width:"165px"});
			return false;
		}
	});
	
	//show/hide bios
	$(".about .name").hover(function() {
		$(this).css("cursor","pointer");
	});
	
	$(".about .name").click(function() {
		$(this).parent().toggleClass("active");
	});
	
});

function MM_openBrWindow(theURL,winName,features) { //v2.0
	  window.open(theURL,winName,features);
	}
