wiEnab=0;
framesCount=12;

function preLoad() {
if (document.images) {
wiSrc=new Array();
wi=new Array();
for (var i=1; i<=framesCount; i++) {
wiSrc[i]="../img/wind"+i+".gif";
wi[i]=new Image(30,30);
wi[i].src=wiSrc[i];}
wiEnab=1;}}

function wind(n) {
if (wiEnab) {
i=2; m=n;
speed=25;
windLoop=true;
windSlow=false;
windMain();}}

function windMain() {if (m) n=m;
wndObj=eval('parent.main.document.w'+n);
wndObj.src=wi[i].src;
if (i==framesCount) i=1; else i++;
if (windSlow) {speed*=1.6; if (speed>128) windLoop=false;}
if (windLoop) setTimeout("windMain()",speed);}

function stop() {
windSlow=true;}

