function changeColor(color){ var divObj=document.getElementsByTagName('body'); divObj[0].style.backgroundColor=color; } var w = screen.width; if (w < 1024){ alert("The XO Energy Beverage Corp. site looks best viewed when your screen is set to a 1024x768 resolution and you must have Flash Player 7. If you don't have Flash Player 7, please wait until free download menu appears. Thanks!"); }