var IS_IE=true;try{window.attachEvent=window.HTMLDocument.prototype.attachEvent=window.HTMLElement.prototype.attachEvent=function(a,b){this.addEventListener(a.substring(2),b,false)};window.detachEvent=window.HTMLDocument.prototype.detachEvent=window.HTMLElement.prototype.detachEvent=function(a,b){this.removeEventListener(a.substring(2),b,false)};CSSStyleDeclaration.prototype.__defineGetter__("pixelLeft",function(){return parseInt(this.left)||0});CSSStyleDeclaration.prototype.__defineSetter__("pixelLeft",function(a){this.left=a+"px"});CSSStyleDeclaration.prototype.__defineGetter__("pixelTop",function(){return parseInt(this.top)||0});CSSStyleDeclaration.prototype.__defineSetter__("pixelTop",function(a){this.top=a+"px"});IS_IE=false}catch(e){}function Queue(){var a=new Array();var b=0;this.enqueue=function(c){a.push(c)};this.dequeue=function(){if(a.length){var d=a[b];if(++b*2>=a.length){for(var c=b;c<a.length;c++){a[c-b]=a[c]}a.length-=b;b=0}return d}else{return undefined}}}var EasyAjax={callQueue:new Queue(),waiting:false,callNext:function(){if(!EasyAjax.waiting){var d=EasyAjax.callQueue.dequeue();if(d!=undefined){EasyAjax.waiting=true;var a=d[0];var g=d[1];var h=d[2];var f="";if(g){for(var c in g){f+=(c+"="+encodeURI(g[c])+"&")}}var b;if(window.XMLHttpRequest){b=new XMLHttpRequest()}else{if(window.ActiveXObject){b=new ActiveXObject("Microsoft.XMLHTTP")}}setTimeout(function(){if(b.readyState!=4){b.abort();EasyAjax.waiting=false;EasyAjax.callNext()}},10000);if(h){b.onreadystatechange=function(){if(b.readyState==4){h(b.responseText);EasyAjax.waiting=false;EasyAjax.callNext()}}}if(g){b.open("POST",a,true);b.setRequestHeader("Content-type","application/x-www-form-urlencoded");b.setRequestHeader("Content-length",f.length);b.setRequestHeader("Connection","close");b.send(f)}else{if(a.indexOf("?")==-1){a+="?"}else{a+="&"}a+="n="+Math.floor(Math.random()*999999999);b.open("GET",a,true);b.send(null)}}}},reload:function(a,b){EasyAjax.callQueue.enqueue([a.getAttribute("url"),b,function(c){a.innerHTML=c}]);EasyAjax.callNext()},init:function(){EasyAjax.step(document.body)},step:function(b){if(b.nodeName.toUpperCase()=="EASY:AJAX"||b.nodeName.toUpperCase()=="AJAX"){b.reload=function(c){EasyAjax.reload(b,c)};if(b.getAttribute("interval")){b.reload();setInterval(function(){b.reload()},b.getAttribute("interval"))}}for(var a=0;a<b.childNodes.length;a++){EasyAjax.step(b.childNodes[a])}}};window.attachEvent("onload",EasyAjax.init);
