function clearField(el, txt) {
    if (el.value == txt) {
        el.value = "";	
        el.focus();
    }
}

function inValue(el, txt) {
    if (el.value == "") {
        el.value = txt;
    }
}

function sameHeight(first, second)
{
    var firstDiv = document.getElementById(first);
    var secondDiv = document.getElementById(second);
	var thirdDiv = document.getElementById("slideshow-welcome");
    if( firstDiv && secondDiv && thirdDiv) {
			if(thirdDiv.offsetHeight > secondDiv.offsetHeight){
				var setHeight = thirdDiv.offsetHeight;
				secondDiv.style.height = setHeight + "px";
				firstDiv.style.height = setHeight + "px";
			} else{
		        var setHeight = secondDiv.offsetHeight - 32;
		        firstDiv.style.height = setHeight + "px";
		}
    }
}

function displayAltContent(){
    var params = location.href.split("?");
    window.location = "NoFlash.action?" + params[1] + "&from=" + params[0];
}

window.onload = function (){
    if( document.getElementById("main-box") ) {
        sameHeight("main-box", "member-signin");
    }
}