var load_counter=function(divId,sid,mode,app,width,height,alt,domain){var s,i,f;s=screen;this.url=(domain?domain:"")+"/counter.php?"+"SID="+sid+"&mode="+mode+"&app="+app+"&js=1&flsh_v="+this.getFlashVer()+"&w="+s.width+"&h="+s.height+"&c="+(navigator.appName!="Netscape"?s.colorDepth:s.pixelDepth);f=function(obj,met){return function(){obj[met].apply(obj);};};i=mode?this.tagImg(divId,width,height,alt):this.objImg();i.onload=f(this,"onloadImg");i.onerror=f(this,"tagSript");this.timer=setTimeout(f(this,"tagSript"),3000);};load_counter.prototype={isLoad:false,timer:null,getFlashVer:function(){if(navigator.plugins){if(navigator.plugins["Shockwave Flash"]){var pl=navigator.plugins["Shockwave Flash"].description;return parseInt(pl.substr(pl.indexOf('.')-2),10);}else if((navigator.userAgent.indexOf('MSIE')!=-1)&&(navigator.userAgent.indexOf('Win')!=-1)){try{for(var f=3;f<24;f++)new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+f);}catch(e){}if(f<24)return f;}}return 0;},tagImg:function(id,w,h,alt){var d,i;d=document;i=d.createElement("img");i.setAttribute("src",this.url+"&im=1");i.setAttribute("width",w);i.setAttribute("height",h);i.setAttribute("alt",alt);d.getElementById(id).appendChild(i);return i;},objImg:function(){var i=new Image();i.src=this.url+"&im=1";return i;},onloadImg:function(){if(this.timer){clearTimeout(this.timer);this.timer=null;}if(this.isLoad)return true;this.isLoad=true;return false;},tagSript:function(){if(this.onloadImg())return;var d,s;d=document;s=d.createElement("script");s.setAttribute("type","text/javascript");s.setAttribute("src",this.url+"&im=0");d.body.appendChild(s);}}
