var aniIdx = 0; var aniItems = new Array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,1); function animateRollOver() { if (aniIdx < aniItems.length) { if (aniIdx > 0) { highlightRollOut('product' + aniItems[aniIdx-1], aniItems[aniIdx-1]-1); } highlightRollOver('product' + aniItems[aniIdx], aniItems[aniIdx]-1); window.setTimeout(animateRollOver, 250); aniIdx++; } else { highlightRollOut('product' + aniItems[aniIdx-1], aniItems[aniIdx-1]-1); } } function initHomePage() { window.setTimeout(animateRollOver, 1000); var entryHelpText = new Array("enter a product query here", "Digital Camera", "HDTV", "Canon A640", "Samsung ML paper feed problem"); configureHelpText(document.getElementById('search-field-home'), document.getElementById('find-button-home'), document.getElementById('grabfocus'), entryHelpText, 5000); // initDiv(); //added for sizing of suggest/history search query box on Homepage. // $("footer").style.top = '550px'; }