if(!window.A){A=new Object();}A.layerNo=0;A.createElem=function(_1){var _2=null;if(document.layers){_2=new Layer(2000);_2.document.open();_2.document.write(_1);_2.document.close();_2.innerHTML=_1;}else{if(document.all){var _3="xLayer"+A.layerNo++;var _4="<DIV ID='"+_3+"' STYLE=\"position:absolute;"+"visibility:hidden\">"+_1+"</DIV>";document.body.insertAdjacentHTML("BeforeEnd",_4);_2=document.all[_3];}else{if(document.getElementById){var _5="xLayer"+A.layerNo++;var _6=""+"position:absolute;"+"visibility:hidden";var _7=document.createRange();_2=document.createElement("DIV");_2.setAttribute("style",_6);_2.setAttribute("id",_5);document.body.appendChild(_2);_7.setStartBefore(_2);strFrag=_7.createContextualFragment(_1);_2.appendChild(strFrag);}}}return _2;};A.Layer=function(_8){if(!_8){return;}if(typeof _8=="string"){this.elem=A.createElem(_8);}else{this.elem=_8;}if(document.layers){this.images=this.elem.document.images;this.style=this.elem;}else{this.images=document.images;this.style=this.elem.style;}};var ns4=(navigator.appName.indexOf("Netscape")!=-1&&!document.getElementById);A.Layer.prototype.moveTo=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};if(ns4){A.Layer.prototype.moveTo=function(x,y){this.elem.moveTo(x,y);};}A.Layer.prototype.show=function(){this.style.visibility="visible";};A.Layer.prototype.hide=function(){this.style.visibility="hidden";};if(ns4){A.Layer.prototype.show=function(){this.style.visibility="show";};A.Layer.prototype.hide=function(){this.style.visibility="hide";};}if(document.all){A.Layer.prototype.setOpacity=function(pc){if(this.style.filter==""){this.style.filter="alpha(opacity=100);";}this.elem.filters.alpha.opacity=pc;};}else{A.Layer.prototype.setOpacity=function(pc){return 0;};}A.Browser=new Object();if(navigator.appName.indexOf("Netscape")!=-1){A.Browser.getCanvasWidth=function(){return innerWidth;};A.Browser.getCanvasHeight=function(){return innerHeight;};A.Browser.getMinX=function(){return (pageXOffset);};A.Browser.getMinY=function(){return (pageYOffset);};A.Browser.getMaxX=function(){return (pageXOffset+innerWidth);};A.Browser.getMaxY=function(){return (pageYOffset+innerHeight);};}else{if(document.all){A.Browser.getCanvasWidth=function(){return document.body.clientWidth;};A.Browser.getCanvasHeight=function(){return document.body.clientHeight;};A.Browser.getMinX=function(){return (document.body.scrollLeft);};A.Browser.getMinY=function(){return (document.body.scrollTop);};A.Browser.getMaxX=function(){return (document.body.scrollLeft+document.body.clientWidth);};A.Browser.getMaxY=function(){return (document.body.scrollTop+document.body.clientHeight);};}}A.H=new Object();A.H.G=new Array();A.H.start=function(){if(A.H.theTimer==null){A.H.theTimer=setTimeout("A.H.animateAll()",40);}};A.H.animateAll=function(){A.H.theTimer=setTimeout("A.H.animateAll()",40);var sp=A.H.G;var i;for(i=0;i<sp.length;i++){sp[i].animate();}};A.B=function(img){var _12=null;var _13="<IMG SRC='"+img+"'>";_12=new A.Layer(_13);_12.op=0;_12.x=Math.random()*A.Browser.getMaxX();_12.y=Math.random()*A.Browser.getMaxY();_12.dx=0;_12.dy=0;_12.w=30;_12.h=30;_12.targetX=Math.random()*A.Browser.getMaxX();_12.targetY=Math.random()*A.Browser.getMaxY();_12.state="off";_12.animate=A.animateG;_12.hide();_12.setOpacity(this.op);_12.moveTo(_12.x,_12.y);A.H.G[A.H.G.length]=_12;A.H.start();};A.animateG=function(){if(this.state=="off"){if(Math.random()>0.99){this.state="up";this.show();}}else{if(this.state=="on"){if(Math.random()>0.98){this.state="down";}}else{if(this.state=="up"){this.op+=2;this.setOpacity(this.op);if(this.op==100){this.state="on";}}else{if(this.state=="down"){this.op-=2;if(this.op==0){this.hide();this.state="off";}else{this.setOpacity(this.op);}}}}}m=this;var X=(this.targetX-m.x);var Y=(this.targetY-m.y);var len=Math.sqrt(X*X+Y*Y);if(len<1){len=1;}var dx=20*(X/len);var dy=20*(Y/len);var ddx=(dx-this.dx)/10;var ddy=(dy-this.dy)/10;this.dx+=ddx;this.dy+=ddy;m.x+=this.dx;m.y+=this.dy;m.moveTo(m.x,m.y);if(Math.random()>0.95){this.targetX=Math.random()*(A.Browser.getCanvasWidth()-150);this.targetY=Math.random()*(A.Browser.getCanvasHeight()+A.Browser.getMinY()-150);}};