
        var ticker_speed = 1 ; // 1-10
        var ticker_pause_onhover = 0 ; // set to 1 to stop ticker move when mouse hovers
        var divonclick = 0 ; // ticker position persist (1 or 0)
        var ticker_copy_speed = 0 ;
        var ticker_pause_speed = 0 ;
        var are_we_on_a_nice_browser = 0 ;
        var ticker_actual_width = 620; // width of ticker area, in pixels
        var wq_ticker ;
        var ticker ;
        
        // Estimate the width, in pixels, of the string. Knowing this lets us properly position
        // the scroll area so that we don't waste a lot of time scrolling empty space, and it ensures
        // that the text is fully scrolled off the left side before we start again from the right.
        var text_width_in_pixels = 8 * ( _prologue.length + _winners.length + _epilogue.length ) + ticker_actual_width / 2 ;

        // Assemble the text to be scrolled across the marquee        
        var str_ticker_content = "<nobr><span class=ticker><span class=ticker_text_start>" 
            + _prologue
            + " &nbsp; &nbsp; "
            + _winners 
            + " &nbsp; &nbsp; "
            + _epilogue
            + "</span></span></nobr>" ;

        if(document.all) 
        {
            // do nothing
        } 
        else 
        {
            ticker_speed = Math.max(1, ticker_speed-1);
        }
        
        ticker_copy_speed = ticker_speed;
        ticker_pause_speed = (ticker_pause_onhover==0) ? ticker_copy_speed : 0
        are_we_on_a_nice_browser = document.all || document.getElementById;
        if (are_we_on_a_nice_browser) 
        {
            // Estimate the width, in pixels, of the string. Knowing this lets us properly position
            // the scroll area so that we don't waste a lot of time scrolling empty space.
            document.write('<span id="ticker_temp" style="visibility:hidden;position:absolute;top:-200px;left:-' + text_width_in_pixels.toString() + 'px">' + str_ticker_content + '</span>');
        } 
        else 
        {
            document.write("This browser does not fully support Javascript!");
        }

        if ( are_we_on_a_nice_browser )
        {
            with (document) 
            {
                write('<table border="0" cellspacing="0" cellpadding="0" class="ticker_container"><td>')
                write('<div id="ticker" onMouseover="ticker_copy_speed=ticker_pause_speed" onMouseout="ticker_copy_speed=ticker_speed">')
                write('<div id="wq_ticker" style="overflow:hidden;position:absolute;left:0px;top:0px;" '+divonclick+'></div>')
                write('</div>')
                write('</td></table>')
            }
        }
        
        YAHOO.util.Event.onDOMReady(TickerPopulate);

        function TickerPopulate()
        {
			wq_ticker = document.getElementById("wq_ticker");
//          ticker_temp = document.getElementById("ticker_temp");
            ticker = document.getElementById("ticker");

            if (divonclick && TickerGetCookie("ticker_last_pos") != "") 
            {
                TickerGetLastPos();
            }

            wq_ticker.innerHTML = str_ticker_content;
            wq_ticker.style.left= ticker.offsetWidth + "px";
            // ticker_actual_width = ticker_temp.offsetWidth;
            ticker_time = setInterval("TickerScroll()", 20);
        }

        function TickerGetCookie(Name) 
        {
            var search = Name + "=";
            var ret = "";
            if (document.cookie.length > 0) 
            {
                offset = document.cookie.indexOf(search);
                if (offset != -1) 
                {
                    offset += search.length;
                    end = document.cookie.indexOf(";", offset);
                    if (end == -1) 
                    {
                        end = document.cookie.length;
                    }
                    ret = unescape(document.cookie.substring(offset, end));
                }
            }
            return ret;
        }

        function TickerSave()
        {
            document.cookie = "ticker_last_pos="+wq_ticker.style.left ;
        }

        function TickerGetLastPos()
        {
            ticker_last_pos = parseInt(TickerGetCookie("ticker_last_pos"));
            wq_ticker.style.left = parseInt(ticker_last_pos)+"px";
        }

        if ( divonclick ) 
        {
			YAHOO.util.Event.on(window, "unload", TickerSave);
        }

        function TickerScroll()
        {
//             if ( parseInt(wq_ticker.style.left) > (ticker_actual_width*(-4)) )
            if ( parseInt(wq_ticker.style.left) > (text_width_in_pixels*(-1)) )
                wq_ticker.style.left=parseInt(wq_ticker.style.left)-ticker_copy_speed+"px" ;
            else 
                wq_ticker.style.left = ticker.offsetWidth + "px";
        }
