var quoteArray = new Array(
                        new Array("The games at Flashtrackz Arcade will rock your world!","talk"),
                        new Array("<a href='http://www.flashtrackz.com/index.php?action=register' title='register'>Register</a> to play all games here, and never get sent to another site again!","talk"),
                        new Array("Avoid being sent to other sites!  Register to play all games here!","talk"),
                        new Array("Come back every day to play NEW free games!","talk"),
                        new Array("Zoommm...","think"),
                        new Array("Use the bookmark button to the right to set me as your homepage!","shout"),
                        new Array("Try our Sonic and Super Mario games!","shout"),
                        new Array("Who is your favorite Super Hero?  Give us a shout!","shout"),
                        new Array("The more games you play, the more points you earn.","shout"),
                        new Array("Try to become one of our top players!","shout")
                        );


function mainHeaderShowSpeech()
{
        var mainDiv = document.getElementById("mainHeaderSpeechDiv");
        var textDiv = document.getElementById("mainHeaderSpeechText");
        var textInner = document.getElementById("mainHeaderSpeechTextInner");

        var randNum = Math.floor(Math.random() * quoteArray.length);
        switch(quoteArray[randNum][1])
        {
                case "talk":
                case "think":
                case "shout":
                        mainDiv.style.backgroundPosition = "0px 0px";
                        textDiv.style.left = "30px";
                        textDiv.style.top = "10px";
                        textDiv.style.height = "90px";
                        textDiv.style.width = "80px";
                        break;
        }
        textInner.innerHTML = quoteArray[randNum][0];
        var marginTop = (textDiv.offsetHeight - textInner.offsetHeight) / 2;
        textInner.style.marginTop = marginTop + "px";
        mainDiv.style.left = "205px";
}

function mainHeaderHideSpeech()
{
        var mainDiv = document.getElementById("mainHeaderSpeechDiv");
        var textInner = document.getElementById("mainHeaderSpeechTextInner");
        mainDiv.style.left = "-5000px";
        textInner.style.marginTop = "0px";
        textInner.innerHTML = "";
        mainDiv.style.backgroundPosition = "0px -600px";
}
