var timeout = 70; function start_word_line() { var words = "
" + "
" + "
" + "
" + "
" + "
"; document.getElementById("apoiar_word_line").innerHTML = words; document.getElementById("wl_1").style.backgroundPosition = "0px"; document.getElementById("wl_2").style.backgroundPosition = "100px"; document.getElementById("wl_3").style.backgroundPosition = "200px"; document.getElementById("wl_4").style.backgroundPosition = "400px"; document.getElementById("wl_5").style.backgroundPosition = "500px"; document.getElementById("wl_6").style.backgroundPosition = "600px"; window.setTimeout("wl_1()",timeout); window.setTimeout("wl_2()",timeout); window.setTimeout("wl_3()",timeout); window.setTimeout("wl_4()",timeout); window.setTimeout("wl_5()",timeout); window.setTimeout("wl_6()",timeout); } function wl_1() { x = parseInt(document.getElementById("wl_1").style.backgroundPosition.split(" ")[0].replace("px","")); if (x != 285) { x += 15; document.getElementById("wl_1").style.backgroundPosition = x + "px"; window.setTimeout("wl_1()",timeout); } } function wl_2() { x = parseInt(document.getElementById("wl_2").style.backgroundPosition.split(" ")[0].replace("px","")); if (x < 275) { x += 10; document.getElementById("wl_2").style.backgroundPosition = x + "px"; window.setTimeout("wl_2()",timeout); } else { document.getElementById("wl_2").style.backgroundPosition = "285px"; } } function wl_3() { x = parseInt(document.getElementById("wl_3").style.backgroundPosition.split(" ")[0].replace("px","")); if (x < 280) { x += 5; document.getElementById("wl_3").style.backgroundPosition = x + "px"; window.setTimeout("wl_3()",timeout); } else { document.getElementById("wl_3").style.backgroundPosition = "285px"; } } function wl_4() { x = parseInt(document.getElementById("wl_4").style.backgroundPosition.split(" ")[0].replace("px","")); if (x > 291) { x -= 6; document.getElementById("wl_4").style.backgroundPosition = x + "px"; window.setTimeout("wl_4()",timeout); } else { document.getElementById("wl_4").style.backgroundPosition = "285px"; } } function wl_5() { x = parseInt(document.getElementById("wl_5").style.backgroundPosition.split(" ")[0].replace("px","")); if (x > 296) { x -= 11; document.getElementById("wl_5").style.backgroundPosition = x + "px"; window.setTimeout("wl_5()",timeout); } else { document.getElementById("wl_5").style.backgroundPosition = "285px"; } } function wl_6() { x = parseInt(document.getElementById("wl_6").style.backgroundPosition.split(" ")[0].replace("px","")); if (x > 305) { x -= 16; document.getElementById("wl_6").style.backgroundPosition = x + "px"; window.setTimeout("wl_6()",timeout); } else { document.getElementById("wl_6").style.backgroundPosition = "285px"; } }