<!--
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;

function startTicker()
       {
          theCharacterTimeout =50;
          theStoryTimeout     =5000;
          theWidgetOne        ="_";
          theWidgetTwo        ="-";
          theStoryState       =1;
          theItemCount        =document.all("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.all("stories").children[theCurrentStory].children.Summary.innerText;
          theTargetLink   = document.all("stories").children[theCurrentStory].children.SiteLink.innerText;
          if(theTargetLink == "")
          {
             theTargetLink = document.all("stories").children[theCurrentStory].children.UrlLink.innerText;
          }
          theCurrentLength = 0;
          document.all.hottext.href = theTargetLink;
       }

function drawStory()
       {
   var myWidget;
          if((theCurrentLength % 2) == 1)
          {
             myWidget = theWidgetOne;
          }
          else
          {
             myWidget = theWidgetTwo;
          }
          document.all.hottext.innerHTML = theLeadString + theStorySummary.substring(0,theCurrentLength) + myWidget + theSpaceFiller;
          theCurrentLength++;
          setTimeout("runTheTicker()", theCharacterTimeout);
       }
       function closeOutStory()
       {
          document.all.hottext.innerHTML = theLeadString + theStorySummary + theSpaceFiller;
          theStoryState = 1;
          setTimeout("runTheTicker()", theStoryTimeout);
       }

function playTran(){
	if (document.all)
		imgInit.filters.revealTrans.play();}
var key=0;
function nextAd(){
	if(adNum<count)adNum++ ;
	else adNum=1;
	
	if( key==0 ){
		key=1;
	} else if (document.all){
		imgInit.filters.revealTrans.Transition=20;
		imgInit.filters.revealTrans.apply();
                   playTran();
	}
	document.images.imgInit.src=imgUrl[adNum];
        focustext.innerHTML=imgtext[adNum];
	theTimer=setTimeout("nextAd()", 7000);
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function goUrl(){
window.open(imgLink[adNum],'_blank');
}
//-->