dom={itemById:function(n,d){if(typeof(n)!='string')return n;if(!d)d=document;var i,x=dom._ob[n]||d[n];if(!x&&d.all)x=d.all[n];for(i=0;!x&&i<d.anchors.length;i++)if(d.anchors[i].name==n)x=d.anchors[i];if(!x)x=d.images[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=dom.itemById(n,d.layers[i].document);if(!x)x=d.getElementById(n);return dom._ob[n]=x},_ob:[],objById:function(n){var o=dom.itemById(n),y=(s=o.style)?o.style:o;return{id:o.id?o.id:o.name,o:o,bg:function(c,i){if(typeof(c)=='string'||c==null){if(y.bgColor){if(c!=null)y.bgColor=c==''?null:c;if(i!=null)y.background.src=i}else{if(c!=null)y.backgroundColor=c==''?'transparent':c;if(i!=null)y.backgroundImage=i>''?'url('+i+')':'none'}}else{y.visibility=c?'inherit':s?'hidden':'hide'}},z:function(v){return v!=null?y.zIndex=v:y.zIndex},src:function(v){return v!=null?o.src=v:o.src},top:function(v){return v!=null?y.top!=null?y.top=v+(s?'px':0):y.pixelTop=v:y.top!=null?parseInt(y.top,10):y.pixelTop},left:function(v){return v!=null?y.left!=null?y.left=v+(s?'px':0):y.pixelLeft=v:y.left!=null?parseInt(y.left,10):y.pixelLeft},width:function(){return o.offsetWidth!=null?o.offsetWidth:y.pixelWidth!=null?y.pixelWidth:y.clip.right},height:function(){return o.offsetHeight!=null?o.offsetHeight:y.pixelHeight!=null?y.pixelHeight:y.clip.bottom},clip:function(t,r,b,l){if(o.clip==null){y.clip='rect('+t+'px '+r+'px '+b+'px '+l+'px)'}else{o.clip.top=t;o.clip.right=r;o.clip.bottom=b;o.clip.left=l}},move:function(t,l,o){this.top((o?o==dom?(o.prop('h')-this.height())/2:o.pageY():0)+CInt(t|0));this.left((o?o==dom?(o.prop('w')-this.width())/2:o.pageX():0)+CInt(l|0))},pageX:function(){return dom._pos(o,'Left')},pageY:function(){return dom._pos(o,'Top')},write:function(v){if(o.innerHTML!=null){o.innerHTML=v}else{var d=o.document;d.open();d.write(v);d.close()}}}},eventListener:function(o,t,f){if(document.layers)eval('o.'+(f!=null?'capture':'release')+'Events(Event.'+t.toUpperCase()+')');eval('o.on'+t+'='+f)},_pos:function(o,p){var i=o.pageY|o.y;if(i)return p=='Top'?i:o.pageX|o.x;i=0;while(o!=null){i+=o['offset'+p];o=o.offsetParent}
return i},prop:function(n){var w=window,d=document,b=d.body,e=d.documentElement,x=w.innerWidth,y=w.innerHeight,X=w.pageXOffset,Y=w.pageYOffset;if(!x){x=(b=e?(0|e.clientWidth)>0?e:b:b).clientWidth;y=b.clientHeight;X=b.scrollLeft;Y=b.scrollTop}
return{h:y||480,w:x||640,t:Y|0,l:X|0}[n]},evtPos:function(e){e=e||event;var d=document,b=d.body;dom.X=e.pageX|e.clientX+0|d.pageXOffset|b.scrollLeft;dom.Y=e.pageY|e.clientY+0|d.pageYOffset|b.scrollTop}};if(document.layers){dom.W=innerWidth;dom.H=innerHeight;advise.add('onresize',function(){if(innerWidth!=dom.W||innerHeight!=dom.H)location.reload()})}
