var fallObjects=new Array();function newObject(url,height,width){fallObjects[fallObjects.length]=new Array(url,height,width);}var numObjs=10, waft=50, fallSpeed=3, wind=0;newObject("/images/fallingobject.72b1d729.png",20,18);function winSize(){winWidth=(moz)?window.innerWidth-17:document.body.clientWidth;winHeight=(moz)?window.innerHeight:document.body.clientHeight;}function winOfy(){winOffset=(moz)?window.pageYOffset:document.body.scrollTop;}function fallObject(num,vari,nu){objects[num]=new Array(parseInt(Math.random()*(winWidth-waft)),nu==1?parseInt(Math.random()*winHeight):-30,(parseInt(Math.random()*waft))*((Math.random()>0.5)?1:-1),0.02+Math.random()/20,0,(fallSpeed*0.7)+parseInt(Math.random()*(fallSpeed-fallSpeed*0.7+1)),vari,fallObjects[vari][1],fallObjects[vari][2]);if(nu==1){document.write('<img id="fO'+i+'" style="position:absolute;z-index:99;" src="'+fallObjects[vari][0]+'">'); }}function fall(){for(i=0;i<numObjs;i++){var fallingObject=document.getElementById('fO'+i);if((winHeight<(objects[i][1]+objects[i][5]+objects[i][8]))||(winWidth<(objects[i][0]+wind+objects[i][2]*Math.cos(objects[i][4]+objects[i][3])+objects[i][7]))){fallObject(i,objects[i][6],0);}objects[i][0]+=wind;objects[i][1]+=objects[i][5];objects[i][4]+=objects[i][3];with(fallingObject.style){ top=objects[i][1]+winOffset;left=objects[i][0]+(objects[i][2]*Math.cos(objects[i][4]));}}setTimeout("fall()",31);}var objects=new Array(),winOffset=0,winHeight,winWidth,togvis,moz=(document.getElementById&&!document.all)?1:0;winSize();for (i=0;i<numObjs;i++){fallObject(i,parseInt(Math.random()*fallObjects.length),1);}window.onscroll=winOfy;window.onresize=winSize;fall();