var cislo=0; var konec=2; var flashe=["white.swf", "486x60.swf", "inzerce_486x60.swf"]; function flashEmbed (flashPath, width, height) { var embedVar; embedVar = ''; document.getElementById('banner').innerHTML=embedVar; } function zmenit() { flashEmbed("flashe/"+flashe[cislo], "180", "500"); if(konec>0) cislo=cislo+1; if(cislo==konec) cislo=0; }