       var theItemCount;
       var theCurrentStory;
       var theCurrentLength;
       var theStorySummary;
       var theTargetLink;
       var theCharacterTimeout;
       var theStoryTimeout;
       var theBrowserVersion;
       var theWidgetOne;
       var theWidgetTwo;
       var theSpaceFiller;
       var theLeadString;
       var theStoryState;
       var isOver;

	   function startTicker()
       {
//          theBrowserVersion = parseInt(navigator.appVersion);
//          if (theBrowserVersion < 4)
          {             
  //           return;
          }
          if(!document.body.children.incoming.children.properties)
          {
             document.all.incoming.innerHTML = "<DIV ID=\"properties\"><DIV ID=\"itemcount\">1</DIV></DIV><DIV ID=\"stories\"><DIV ID=\"1\"><DIV ID=\"Summary\">°ËÄ¿ÑýÉçÇø bbs.haha168.com</DIV><DIV ID=\"SiteLink\">http://bbs.haha168.com</DIV><DIV ID=\"UrlLink\"></DIV></DIV></DIV>";
          }
          theCharacterTimeout = 100;
          theStoryTimeout     = 3000;
          theWidgetOne        =  "_";
          theWidgetTwo        =  "-";
          theStoryState       = 1;
          theItemCount        = document.body.children.incoming.children.properties.children.itemcount.innerText;
          theCurrentStory     = 0;
          theCurrentLength    = 0;
          theLeadString       = " ";
          theSpaceFiller      = " ";                   

          runTheTicker();
       }

       function runTheTicker()
       {
          if(theStoryState == 1)
          {
             setupNextStory();
          }

          if(theCurrentLength != theStorySummary.length)
          {
             drawStory();
          }
          else
          {
             closeOutStory();
          }
       }

       function setupNextStory()
       {
          theStoryState = 0;
          theCurrentStory++;
          theCurrentStory = theCurrentStory % theItemCount;          
          theStorySummary = document.body.children.incoming.children.stories.children[theCurrentStory].children.Summary.innerText;
          theTargetLink = document.body.children.incoming.children.stories.children[theCurrentStory].children.UrlLink.innerText;
          theCurrentLength = 0;
          document.all.hottext.href = theTargetLink;          
       }
       
       function setOver()
       {
       	 isOver=true;
       }
       
       function removeOver()
       {       	 
       	 isOver=false;
       	 //setTimeout("runTheTicker()", theStoryTimeout);
       }
       	
       function drawStory()
       {
          var myWidget;          
          if((theCurrentLength % 2) == 1)
          {
             myWidget = theWidgetOne;
          }
          else
          {
             myWidget = theWidgetTwo;
          }
          document.all.hottext.innerHTML = theLeadString + theStorySummary.substring(0,theCurrentLength) + myWidget + theSpaceFiller;
          document.all.hottext.onmouseover=setOver;
          document.all.hottext.onmouseout=removeOver;
          theCurrentLength++;
          setTimeout("runTheTicker()", theCharacterTimeout);
       }

       function closeOutStory()
       {
          document.all.hottext.innerHTML = theLeadString + theStorySummary + theSpaceFiller ;
          //alert(document.all.hottext.innerHTML);
          theStoryState = 1;
          if(isOver) {setTimeout("closeOutStory()", theStoryTimeout);}
        else{setTimeout("runTheTicker()", theStoryTimeout);}        
       }          
//-->