
var TimerId, D=document, WatchCnt=0, W=window, ShownDivNum=0, bShowMulDiv;

function DecodeStr(Str){
var Len=Str.length, RangeLen=96, Decr=Math.round(RangeLen/2), Result='', Code, Buffer='', BufLen=0;

for(var i=0; i<Len; i++){
	Code=Str.charCodeAt(i);
	if (Code==37){//'%'
		Code=unescape(Str.substr(i, 3)).charCodeAt(0); i+=2;
		}
	if (Code>=32 && Code<128){
		Code-=Decr;
		if (Code<32) Code+=RangeLen;
		if (++Decr>=RangeLen) Decr=0;
		}
	Buffer+=String.fromCharCode(Code); 
	if (++BufLen>=75){
		Result+=Buffer; Buffer=''; BufLen=0;
		}
	}

Result+=Buffer; return Result;
}

function WatchLoad(){
var oDiv, Data, Child, aDiv, L, i, SkipNum=0;

if (++WatchCnt>=200) clearInterval(TimerId);

if (bShowMulDiv) aDiv=D.getElementsByName(ShowDivId);
else{
	if (!(oDiv=D.getElementById(ShowDivId))) return;
	aDiv=[oDiv];
	}
L=aDiv.length;

for(i=0; i<L; i++){
	oDiv=aDiv[i];
	if (oDiv.bShown) continue;
	if (!oDiv.nextSibling) continue;
	
	Child=oDiv.firstChild;
	if (Child.nodeType==3) Child=Child.nextSibling;
	Data=Child.data;
	//Data=Data.substring(1, Data.length-1);
	oDiv.innerHTML=DecodeStr(Data);
	oDiv.bShown='1'; ShownDivNum++;
	}

if (ShownDivNum==ShowDivNum) clearInterval(TimerId);
}

function Show_Start(){
var Host;

if (typeof(ShowDivId)=='undefined') return null;
if (!W.ShowDivNum) W.ShowDivNum=1; else bShowMulDiv=true;

//Host=window.location.host;
//if (Host!='statgate.loc' && Host.indexOf('rx-simple-pills.com')==-1) return null;
TimerId=setInterval("WatchLoad()", 100);

return null;
}

function Start(){
var Host;

//Host=window.location.host;
//if (Host!='statgate.loc' && Host.indexOf('rx-simple-pills.com')==-1) return;
ShowDivId='Dump'; return Show_Start();
}