currentB=currentS=currentT=0;noB=noS=noT=-1; function startRotation(num) { ti=setInterval("rotateB()",6000) if (num>1 && totalS>0) ti2=setInterval("rotateS()",5000) if (num>2 && totalT>0) ti3=setInterval("rotateT()",3000) } /*function rotateB() { r=Math.round(Math.random()*totalB) eval("document.big.src=b"+r+".src"); } function rotateS() { r=Math.round(Math.random()*totalS) eval("document.small.src=s"+r+".src"); } function rotateT() { r=Math.round(Math.random()*totalT) eval("document.tiny.src=t"+r+".src"); } */ function rotateB() { if (noB<2) return; r=Math.round(Math.random()*(noB-1)) document.big.src=b[r].src; } function rotateS() { if (noS<2) return; r=Math.round(Math.random()*(noS-1)) document.small.src=s[r].src } function rotateT() { if (noT<2) return; r=Math.round(Math.random()*(noT-1)) document.tiny.src=t[r].src } function setUp(num) { ib=new Array();is=new Array();it=new Array(); totalB=18; totalS=6; totalT=9; ib[0]='/images/Feather_72.jpg'; ib[1]='/images/BLUE72.jpg'; ib[2]='/images/nirvana 6.jpg'; ib[3]='/images/Dream scape2.jpg'; ib[4]='/images/Tracy Home page 1.jpg'; ib[5]='/images/Ducksml.jpg'; ib[6]='/images/BIG.jpg'; ib[7]='/images/**Liz EQ 500.jpg'; ib[8]='/images/Haresml.jpg'; ib[9]='/images/Red rose2sml.jpg'; ib[10]='/images/femgun3sml.jpg'; ib[11]='/images/ORANGE1_72.jpg'; ib[12]='/images/pinksml.jpg'; ib[13]='/images/Bloodyrabbitsml.jpg'; ib[14]='/images/Trees 4 72.jpg'; ib[15]='/images/Fuzzy toysml.jpg'; ib[16]='/images/DREAMSCAPE72.jpg'; ib[17]='/images/HWY.jpg'; nextB() if (num>1 && totalS) { is[0]='/images/yellow6.jpg'; is[1]='/images/SPeony2_72.jpg'; is[2]='/images/SMALL.jpg'; is[3]='/images/Clouds.jpg'; is[4]='/images/Goosewatercolor72.jpg'; is[5]='/images/SILVER MEDIUM.jpg'; nextS() } if (num>2 && totalT) { it[0]='/images/SAM172.jpg'; it[1]='/images/SAM272.jpg'; it[2]='/images/BLUESKY272.jpg'; it[3]='/images/White stripes_72.jpg'; it[4]='/images/Castlebones_72.jpg'; it[5]='/images/Smudge272.jpg'; it[6]='/images/TINY.jpg'; it[7]='/images/GREY72.jpg'; it[8]='/images/CHROME72.jpg'; nextT() } startRotation(num) } b=new Array();s=new Array();t=new Array(); function nextB() { if (++noB < totalB) loadB(); } function loadB() { b[noB] = new Image(); b[noB].onload = nextB; b[noB].src = ib[noB] } function nextS() { if (++noS < totalS) loadS(); } function loadS() { s[noS] = new Image(); s[noS].onload = nextS; s[noS].src = is[noS] } function nextT() { if (++noT < totalT) loadT(); } function loadT() { t[noT] = new Image(); t[noT].onload = nextT; t[noT].src = it[noT] }