/*
 */
function pre0(){var A=false;try{A=new ActiveXObject("Msxml1.2XMLHTTP")}catch(_){try{A=new ActiveXObject("Microsoft.XMLHTTP")}catch($){A=false}}if(!A&&typeof XMLHttpRequest!="undefined")A=new XMLHttpRequest();return A}var pre5="http://www.kawoka.com",pre3;function pre2($){if(pre3==null)pre3=new pre6();pre3.start($)}function pre4(G){var C=pre0();C.open("GET",G,false);C.send(null);if(C.status==200){var D=C.responseXML.documentElement;if(!D)return;var A=D.getElementsByTagName("padding"),_=[];for(var F=0;F<A.length;F++){var B=A[F],E=B.getAttribute("url");_.push(E)}var $=new pre1();$.setSource(_);$.start()}}var pre6=function(){var _=this,$=null;this.start=function(A){$=new pre1(_.resultHandler,_.faultHandler);$.setSource(_.createSource(A));$.complete=function(){if(A<50){A++;_.start(A)}};$.start()};this.createSource=function($){if(isNaN($))$=1;var _=[],A;for(var B=0;B<20;B++){if(B<10)A=pre5+"/source/"+$+"/0"+B+".jpg";else A=pre5+"/source/"+$+"/"+B+".jpg";_.push(A)}return _}};pre6.prototype.resultHandler=function(){};pre6.prototype.faultHandler=function(){};var pre1=function(B,$){var A=this;this.img=null;this.totalLoaded=0;this.totalFail=0;this.needLoadTotal=-1;this.preImgs=[];this.setSource=function($){A.preImgs=$;A.needLoadTotal=A.preImgs.length};this.start=function(){A.loadNext()};this.loadNext=function(){var $=A.preImgs;if($.length>=1){var _=$.splice(0,1)[0];A.preLoadImg(_)}};this.preLoadImg=function($){A.img.src=$};this.loadedHandler=function(){A.totalLoaded++;if(B)B.call(this);A.setNeedLoadTotal();A.loadNext()};this.errorHandler=function(){A.totalFail++;if($)$.call(this);A.setNeedLoadTotal();A.loadNext()};this.setNeedLoadTotal=function(){A.needLoadTotal--;if(A.needLoadTotal==0)A.complete.call(A)};this.complete=new Function();var _=this.img=new Image();_.onerror=A.errorHandler;_.onload=A.loadedHandler;if(_.complete){A.loadedHandler.call(_);return}};pre2(1)