
$(document).ready(prepareHeaderForm_);

function prepareHeaderForm_() {
	if (document.getElementById("headLogin")) {
		$("#headLogin input").focus(inputHideLabel_).blur(inputShowLabel_);
		$("#headLogin input").blur();
	}
}

function inputShowLabel_(e) {
	var backgroundImageUrl = WEB_ROOT+"/images/wrap/"+$(e.target).attr("title")+"_hdr.png";
	if ($(e.target).val().length == 0) {
		$(e.target).css("backgroundImage", "url('"+backgroundImageUrl+"')").val("");
	}
}
function inputHideLabel_(e) {
	$(e.target).css("backgroundImage", "none");
}

