// JavaScript Document For Ticker News in Kalyana resort's homepage
    //scroller width
        var swidth=280;

        //scroller height
        var sheight=100;

        //background color
        var sbcolor='#009966';

        //scroller's speed
        var sspeed=1;

        var msg=''

        //The messages go bellow:


        msg +=
        
			'<ul><li class="date">Mon Jan 1,  2007</li>'+
            '<li>Kalyana Resort is featured on &quot;Pesan Dari Surga&quot;, a movie directed by Sekar Ayu Asmara.<br />Starring Luna Maya, Catherine Wilson, Rianty Cartwright, Lukman Sardi, and Vino Bastian.</li>'+
            '<li> </li></ul>'+  
		
            '<ul><li class="date">Mon Dec 25,  2006</li>'+
            '<li>Kalyana Resort is very proud to present the brand new website.  We hope this new website can give you more information about Kalyana Resort.  Happy browsing!</li>'+
            '<li> </li></ul>'+                     
            
            /*'<ul><li class="date"><!--your date message here--></li>'+
            '<li><!--your full message here--></li>'+
            '<li> </li></ul>'+  
            
            '<ul><li class="date"><!--your date message here--></li>'+
            '<li><!--your full message here--></li>'+
            '<li> </li></ul>'+*/  
            

        '';

        //End of messages
        // Begin the ticker code

        var resumesspeed=sspeed
        function start() {
                if (document.all) iemarquee(ticker);
                else if (document.getElementById)
                        ns6marquee(document.getElementById('ticker'));
        }
        
        function iemarquee(whichdiv){
                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){
                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()
                }
        }
