var timer = new Array() var id = new Array() var key = screen.width; var img_height = 85; var x = 1; /* wiper var i = 0; var zoop = 1; var height = 1024; var width = 1280; */ var objects = new Array() objects[2] = "blue_2" objects[3] = "red_3" objects[4] = "green_6" objects[13] = "yellow_1" objects[21] = "orange_5" objects[29] = "purple_4" xpos2 = 0; xpos3 = 0; xpos4 = 0; xpos13 = 0; xpos21 = 0; xpos29 = 0; function show_menu(swt) { menu = document.getElementById("showme"); if (swt == 1) { menu.style.display = "none"; } else { menu.style.display = "block"; } } function wipe() { i++; wiper = document.getElementById("wiper"); height = height -5; width = width -5; wiper.style.height = height; wiper.style.width = width; if (i >= 350) { clearTimeout(zoop); } else { setTimeout("wipe();", 30); } } function pos_image() { for(b in objects) { x++; img = document.getElementById(objects[b]); var width = screen.width; img.style.left = key + "px"; img.style.top = img_height + "px"; img.style.display = "block"; } } function startmove() { id[2] = setTimeout(function() {move2();}, 200); id[3] = setTimeout(function() {move3();}, 500); id[4] = setTimeout(function() {move4();}, 800); id[13] = setTimeout(function() {move13();}, 1100); id[21] = setTimeout(function() {move21();}, 1400); id[29] = setTimeout(function() {move29();}, 1700); } function move2() { xpos2++; image2 = document.getElementById("blue_2"); mvpos = (key / xpos2) + 144; image2.style.left = mvpos + "px"; if (xpos2 >= 65) { window.clearTimeout(timer[2]); } else { timer[2] = window.setTimeout("move2();",20); } } function move3() { xpos3++; image3 = document.getElementById("red_3"); mvpos = (key / xpos3) + 219; image3.style.left = mvpos + "px"; if (xpos3 >= 65) { window.clearTimeout(timer[3]); } else { timer[3] = window.setTimeout("move3();",20); } } function move4() { xpos4++; image4 = document.getElementById("green_6"); mvpos = (key / xpos4) + 294; image4.style.left = mvpos + "px"; if (xpos4 >= 65) { window.clearTimeout(timer[4]); } else { timer[4] = window.setTimeout("move4();",20); } } function move13() { xpos13++; image13 = document.getElementById("yellow_1"); mvpos = (key / xpos13) + 369; image13.style.left = mvpos + "px"; if (xpos13 >= 65) { window.clearTimeout(timer[13]); } else { timer[13] = window.setTimeout("move13();",20); } } function move21() { xpos21++; image21 = document.getElementById("orange_5"); mvpos = (key / xpos21) + 444; image21.style.left = mvpos + "px"; if (xpos21 >= 65) { window.clearTimeout(timer[21]); } else { timer[21] = window.setTimeout("move21();",20); } } function move29() { xpos29++; image29 = document.getElementById("purple_4"); mvpos = (key / xpos29) + 519; image29.style.left = mvpos + "px"; if (xpos29 >= 65) { window.clearTimeout(timer[29]); } else { timer[29] = window.setTimeout("move29();",20); } }