var baseDomainURL="${REQ_SESSION.domainURL}";var callbackFunction=null;function getWidgetBody(){try{getSignInUpBody("signinupwidgetCon","signInUpBodyCB")}catch(a){}}function signInUpBodyCB(){document.getElementById("signinup_title").innerHTML="Start Now, It's Free!";showSignupMode()}function onSignUp(a){goToPostReg()}function onSignIn(){location.reload()}function addToContest(c){var a=new Object();var b=new Object();b.action="addToContest";b.addToContest="true";formSubmitAJAX(baseDomainURL+"/za/wadContest",b,c,a)}function addToContestCB(b,a){var d=b.getElementsByTagName("wishaday");if(trim(d[0].firstChild.nodeValue)=="false"){document.getElementById("optIn").style.display="";document.getElementById("optedIn").style.display="none"}else{document.getElementById("optedIn").style.display="";document.getElementById("optIn").style.display="none"}try{if(trim(d[0].firstChild.nodeValue)=="false"){document.getElementById("optInPromo").style.display="";document.getElementById("optedInPromo").style.display="none"}else{document.getElementById("optedInPromo").style.display="";document.getElementById("optInPromo").style.display="none"}}catch(c){}}function goToFriendInvite(){document.location.href=baseDomainURL+"/za/friend?rid="+trim(document.getElementById("rid").value)}function goToPostReg(){document.location.href=baseDomainURL+"/za/postreg?postreg=contestinv"}function optInCallBack(){var a=new Object();var b=new Object();b.action="addToContest";b.addToContest="true";formSubmitAJAX(baseDomainURL+"/za/wadContest",b,"goToFriendInvite",a)}function checkOptedStatus(b){var a=new Object();var c=new Object();c.action="checkOptedStatus";if(b==null){b="checkOptedStatusCB"}formSubmitAJAX("/za/wadContest",c,b,a)}function checkOptedStatusCB(b,a){var c=b.getElementsByTagName("wishaday");if(trim(c[0].firstChild.nodeValue)=="false"){document.getElementById("optIn").style.display="";document.getElementById("optedIn").style.display="none"}else{document.getElementById("optedIn").style.display="";document.getElementById("optIn").style.display="none"}}function signInCallBack(a){var b=a.getElementsByTagName("wishaday");if(trim(b[0].firstChild.nodeValue)=="false"){location.reload()}else{goToFriendInvite()}}function initContestPromo(b,a){var c=b.getElementsByTagName("wishaday");if(trim(c[0].firstChild.nodeValue)=="false"){document.getElementById("optInPromo").style.display="";document.getElementById("optedInPromo").style.display="none"}else{document.getElementById("optedInPromo").style.display="";document.getElementById("optInPromo").style.display="none"}};