var v="$Revision: 1.6 $";(function(b){var a={normRedirTime:7,failRedirTime:9,idRedirTimeout:null,redirCnt:0,redirUrl:null,domain:null,sdLang:"",sdPid:0,init:function(c){Dcsl.apply(this,c);$("#purchaseLink").click(Dcsl.scope(this.redirectPurchase,this))},doLayout:function(){var c=$("#purchaseLink").offset();$("#redirectPopup").css({top:c.top-30,left:c.left})},performTimeoutRedir:function(){window.location="http://www.sedo.com/search/details.php4?domain="+this.domain+"&language="+this.sdLang+"&partnerid="+this.sdPid},performRedir:function(c){if(c&&c.status=="ok"&&c.url){this.redirUrl=c.url;clearTimeout(this.idRedirTimeout);this.idRedirTimeout=setInterval(Dcsl.scope(this.updateRedirTime,this),1000);this.redirCnt=this.normRedirTime;$("#redirTxt").html(this.getRedirCounterText(this.redirCnt,this.redirUrl));$("#redirTxt").show()}},getRedirCounterText:function(d,c){return Dcsl.getMessage("redirectCounter").replace("%sec%",d).replace("%url%",c)},redirectPurchase:function(){Dcsl.showMask();$("#redirectPopup").fadeIn("def");this.idRedirTimeout=setTimeout(Dcsl.scope(this.performTimeoutRedir,this),this.failRedirTime*1000);$.getJSON("/purchaseredirect",{domain:this.domain},Dcsl.scope(this.performRedir,this))},getRedirText:function(c){return Dcsl.getMessage("redirectText").replace("%url%",c)},updateRedirTime:function(){$("#redirTxt").html(this.getRedirCounterText(--this.redirCnt,this.redirUrl));if(this.redirCnt==0){clearInterval(this.idRedirTimeout);$("#redirLink").html(this.getRedirText(this.redirUrl));$("#redirTxt").hide();$("#redirLink").show();window.location=this.redirUrl}}};b.register("purchaseredir",a)})(Dcsl);