        //scroller width
        var swidth=220;

        //scroller height
        var sheight=35;

        //background color
        var sbcolor='';

        //scroller's speed
        var sspeed=3;

        var msg='';

        // Begin the ticker code

        var resumesspeed=sspeed;

        function start(msg) {
			// break into links
			var links = msg.split('^^');
			var message = '<ul id="news_ticker_list">';
			for (i = 0; i < links.length; i++) {
				// parse each link and add to total string
				link   = links[i];
				data   = link.split('%%');
				
				var location  = data[0];
				var value     = data[1];

				message += '<li><a href="' + location + '">' + value + '</a></li>';
			}
			message += '<li id="all_hot_deals"><a href="/destinations/hot_deals.php">View All Hot Deals!</a></li></ul>';
			
			if (document.all)
				iemarquee(ticker, message);
			else if (document.getElementById)
				ns6marquee(document.getElementById('ticker'), message);
        }
        
        function iemarquee(whichdiv, msg){
                iediv=eval(whichdiv);
                sheight += 50;
                iediv.style.pixelTop=sheight;
                iediv.innerHTML=msg;
                sizeup=iediv.offsetHeight;
                ieslide();
        }
        
        function ieslide(){
                if (iediv.style.pixelTop>=sizeup*(-1)){
                        iediv.style.pixelTop-=sspeed;
                        setTimeout("ieslide()",100);
                }
                else{
                        iediv.style.pixelTop=sheight;
                        ieslide();
                }
        }
        
        function ns6marquee(whichdiv, msg){
                ns6div=eval(whichdiv)
                sheight += 50;
                ns6div.style.top=sheight + "px";
                ns6div.innerHTML=msg;
                sizeup=ns6div.offsetHeight;
                ns6slide()
        }
        function ns6slide(){
                if (parseInt(ns6div.style.top)>=sizeup*(-1)){
                        theTop = parseInt(ns6div.style.top)-sspeed;
                        ns6div.style.top = theTop + "px";
                        setTimeout("ns6slide()",100);
                }
                else {
                        ns6div.style.top = sheight + "px";
                        ns6slide();
                }
        }


