var TSM;if(TSM===undefined){TSM={};TSM.isDebug=function(){if(window.location.href.indexOf("tsDebug=1")!=-1){return true}else{return false}};TSM.isLogDebug=function(){if(window.location.href.indexOf("tsDebug=2")!=-1){return true}else{return false}};TSM.tsGetUrl=function(){var A="";A+="&tsT="+_tsT;A+="&tsLho="+_tsHO;A+="&tsCh="+_tsCh;A+="&tsQu="+_tsQu;A+="&tsRef="+_tsRef;A+="&tsLP="+_tsLP+TSM.getBrowserProperties();return A};TSM.getBrowserProperties=function(){return"&tsSW="+self.screen.width+"&tsSH="+self.screen.height+"&tsSC="+self.screen.colorDepth+"&tsPD="+self.screen.pixelDepth};TSM.tsES=function(B,A){if(typeof (encodeURIComponent)=="function"){if(A){return encodeURI(B)}else{return encodeURIComponent(B)}}else{return escape(B)}};TSM.getRand=function(){return Math.round(Math.random()*2147483647)};TSM.getQParamFromStr=function(D,C){var B=new RegExp("[\\?&]"+C+"=([^&#]*)");var A=B.exec(D);if(A===null){return""}return A[1]};TSM.getQParam=function(A){return this.getQParamFromStr(window.location.href,A)}}if(typeof (window.extended_rightIdx)=="undefined"){window.extended_rightIdx=1}if(typeof (window.tailsweep_currPos)=="undefined"){window.tailsweep_currPos={}}if(window.tailsweep_currPos.extended_right!=null){window.tailsweep_currPos.extended_right++}else{window.tailsweep_currPos.extended_right=1}if(window.tailsweep_currPos.extended_right==window.extended_rightIdx){if(typeof (tsId)=="undefined"){var tsId=0}if(typeof (tsMId)=="undefined"){var tsMId=0}if(typeof (tsUrl)=="undefined"){var tsUrl=""}var _tsbd=document;var _tsdl=_tsbd.location;var _tsdlh="";var _tsBH="";var _tsDM="";var _tsHO="";var _tsLP="";var _tsQu="";var _tsT="";var _tsRef="";var _tsCh="";if(_tsdl.hostname&&_tsdl.hostname!=""){_tsHO=TSM.tsES(_tsdl.hostname)}if(_tsdl.search&&_tsdl.search!=""){_tsQu=TSM.tsES(_tsdl.search)}if(_tsbd.domain&&_tsbd.domain!=""){_tsDM=_tsbd.domain}if(_tsdl.pathname&&_tsdl.pathname!=""){_tsLP=_tsdl.pathname}if(_tsbd.referrer&&_tsbd.referrer!=""){_tsRef=TSM.tsES(_tsbd.referrer)}var nTsUrl="";if(tsUrl!=""){nTsUrl=escape(tsUrl)}var d="script.tailsweep.com";if(_tsHO=="script.tailsweep.com"){d=_tsHO}var _tsUrl="http://"+d+"/adrenderer.do?tsId="+tsId+"&tsMId="+tsMId+"&pid=3&display=javascript&campaignType=2"+TSM.tsGetUrl()+"&tsUrl="+nTsUrl;var tsDebug=TSM.getQParam("tsDebug");if(tsDebug){_tsUrl+="&tsDebug="+tsDebug}var url="<script src='"+_tsUrl+"' type='text/javascript'/><\/script>";document.write(url)};
