//compressed by compressJS
function RegisteredGateway(B,D,C){var A=this;this.boxWidth="";this.aLoginMessages=[];this.aLoginMessages["log"]='<a href="'+B+'">Login</a> or <a href="'+D+'">register</a> to log this tip.';this.aLoginMessages["rating"]='<a href="'+B+'">Login</a> or <a href="'+D+'">register</a> to post your rating.';this.aLoginMessages["comment"]='<a href="'+B+'">Login</a> or <a href="'+D+'">register</a> to post your comment.';this.aLoginMessages["favorites"]='<a href="'+B+'">Login</a> or <a href="'+D+'">register</a> now to add this tip to your favorites.';this.aLoginMessages["recommendation"]='<a href="'+B+'">Login</a> or <a href="'+D+'">register</a> to recommend this tip.';this.aLoginMessages["default"]='<a href="'+B+'">Login</a> or <a href="'+D+'">register</a> to use this program.';this.signinUrl=B;this.gatewayUrl=D;RegisteredGateway.prototype.init=function(){A.createRegisterDiv();jQuery("div.regblurb a.closebtn").click(function(E){jQuery("div.regblurb").hide("fast");return false})};RegisteredGateway.prototype.createRegisterDiv=function(){var E=document.createElement("div");E.id="reglayer";E.className="regblurb";E.innerHTML='<dd><a href="#" class="closebtn">X</a> <p id="regtxt"></p></span></dd>';document.body.appendChild(E);this.boxWidth=E.offsetWidth;E.style.display="none"};RegisteredGateway.prototype.getGatewayUrl=function(){return this.gatewayUrl};RegisteredGateway.prototype.setLoginText=function(E){if(document.getElementById("regtxt")===null){return false}document.getElementById("regtxt").innerHTML=E;return true};RegisteredGateway.prototype.loginHandler=function(F,J){var G=this.getY(J);var E=this.aLoginMessages[F];var H=this.setLoginText(E);if(!H){return false}jQuery("div.regblurb").css("top",G[1]);var I=G[0];I+=this.boxWidth/2;jQuery("div.regblurb").css("left",I);jQuery("div.regblurb").show("fast");return false};RegisteredGateway.prototype.getY=function(E){var F=curtop=0;if(E.offsetParent){F=E.offsetLeft;curtop=E.offsetTop;while(E=E.offsetParent){F+=E.offsetLeft;curtop+=E.offsetTop}}return[F,curtop]}}
