var oc_scroll={curRow:1,scrollWay:"up",topRow:5,speed:50,counter:0,timer:null,toppx:0,roll:function(f){var c=document.getElementById(f);var d=c.getElementsByTagName("ul")[0];if(!d){return}var b=d.childNodes;if(this.scrollWay=="up"){d.style.position="absolute";var e=function(){oc_scroll.up(d,b);if(oc_scroll.counter>=21){clearTimeout(timer);oc_scroll.counter=0;return}timer=setTimeout(e,oc_scroll.speed);oc_scroll.counter++};timer=setTimeout(e,oc_scroll.speed)}else{d.style.position="absolute";var a=function(){oc_scroll.down(d,b);if(oc_scroll.counter>=21){clearTimeout(timer);oc_scroll.counter=0;return}timer=setTimeout(a,oc_scroll.speed);oc_scroll.counter++};timer=setTimeout(a,oc_scroll.speed)}},up:function(c,b){var a=b.length;if(this.curRow<=a){this.toppx+=1;c.style.top=-this.toppx+"px";if(this.counter>=21){if(this.curRow<a-1){this.curRow++;this.scrollWay="up"}else{this.scrollWay="down"}}}},down:function(c,b){var a=b.length;if(this.curRow>=1){this.toppx-=1;c.style.top=-this.toppx+"px";if(this.counter>=21){if(this.curRow>1){this.curRow--;this.scrollWay="down"}else{this.scrollWay="up"}}}}};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Ajax={getTransport:function(){return Try.these(function(){return new XMLHttpRequest()},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")})||false},activeRequestCount:0};Ajax.request=function(a,d,b,c){this.transport=Ajax.getTransport();this.params=b;this.options={method:"post",asynchronous:true,contentType:"application/x-www-form-urlencoded",encoding:"UTF-8",parameters:"",evalJSON:true,evalJS:true};this.options.method=d.toLowerCase();this.transport.open(this.options.method.toUpperCase(),a,this.options.asynchronous);this.transport.onreadystatechange=c;this.body=this.options.method=="post"?this.params:null;this.transport.send(this.body)};String.prototype.getElementsByName=function(c){var d=new RegExp("[wW]*<"+c+">[^<]*</"+c+">[wW]*","ig"),e,b=new RegExp("<"+c+">"),a=new RegExp("</"+c+">");if(e=this.match(d)){return unescape((e[0].trin(b)).trin(a))}return null};String.prototype.trin=function(a){return this.replace(a,"")};var $=function(b,a){return a?a.getElementById(b):document.getElementById(b)};var doWhileExist=function(a,c){var b=document.getElementById(a);if(b){c(b)}};var cbShowBrowseCounter=function(){var b=Ajax.transport,a;if(b.readyState==4&&b.status==200){a=b.responseText;if(a!==""){$("readCounter").innerHTML=a.getElementsByName("readCounter")}}};var fnUpdateCounter=function(b){var a="/admin_v2.01/counter/?art=1&articID="+b.value;Ajax.request(a,"GET",null,cbShowBrowseCounter)};var gameIPCounter=function(b){if(b.tagName.toLowerCase()=="input"){var a='<iframe src="http://www.oncecode.com/log/?logPage='+b.value+"&referer="+(document.referrer?document.referrer:location.hostname)+'" frameborder="0" width="0" height="0"></iframe>';document.write(a)}};(function(){doWhileExist("romId",fnUpdateCounter);doWhileExist("pageLoger",gameIPCounter);setInterval(function(){oc_scroll.roll("scrollNews")},3000)})();