/* for use with leftColumnSubWidget -- used to dropdown the form */

document.getElementById("rightsubad").onmouseover = function(){ activateRightSideForm(); };
var rightsubmore = document.getElementById("rightsubadmore");
if(rightsubmore){rightsubmore.style.display = "none";}

var rightsubadformformfirstnamerow = document.getElementById("rightsubadformformfirstnamerow");
if(rightsubadformformfirstnamerow){rightsubadformformfirstnamerow.style.display = "block"; }


function activateRightSideForm(){
    document.getElementById("rightsubadmore").src = "http://images.meredith.com/bhg/images/tmp/shell/mktg_dd_ad_close.gif";
    document.getElementById("rightsubadmore").onclick = function(){closeRightSideForm();};
	document.getElementById("rightsubadmore").style.display = "";
    document.getElementById("rightsubadform").style.display = "block";
    document.getElementById("rightSubBodyText").style.display = "block";
    document.getElementById("rightsubadformformemailrow").style.display = "block";
    document.getElementById("rightsubadformformlastnamerow").style.display = "block";
    document.getElementById("rightsubadformformaddressrow").style.display = "block";
    document.getElementById("rightsubadformformcityrow").style.display = "block";
    document.getElementById("rightsubadformformstaterow").style.display = "block";
    document.getElementById("rightsubadformformziprow").style.display = "block";
    document.getElementById("rightsubadformformfooterrow").style.display = "block";
    document.getElementById("rightsubadformformsubmitrow").style.display = "block";
}

function closeRightSideForm(){
    document.getElementById("rightsubadmore").onclick = null;
	document.getElementById("rightsubadmore").style.display = "none";
    document.getElementById("rightsubadformformemailrow").style.display = "none";
    document.getElementById("rightsubadformformlastnamerow").style.display = "none";
    document.getElementById("rightsubadformformaddressrow").style.display = "none";
    document.getElementById("rightsubadformformcityrow").style.display = "none";
    document.getElementById("rightsubadformformstaterow").style.display = "none";
    document.getElementById("rightsubadformformziprow").style.display = "none";
    document.getElementById("rightsubadformformfooterrow").style.display = "none";
    document.getElementById("rightsubadformformsubmitrow").style.display = "none";
}
