 var theCharacterTimeout = 50;
 var newsTimeout	 = 5000;
 var theWidgetOne		= "_";
 var theWidgetTwo		= "-";
 var theWidgetNone	   = "";
 var initialString	   = "";

 var theSummaries = new Array();
 var siteLinks = new Array();

 var newsItems = 6;
 
function startNewsBar()
{
 // Define run time values
currentItem	 = -1;
 storyLength	= 0;

 if (document.getElementById) {
	baseObject	 = document.getElementById("newsBase");
  	runNewsBar();
   }
 else {
 	document.write("<style>.ticki{display:none;margin:0px;padding:0px;}.ticko{border:0px; padding:0px;}a.news_link:link, a.news_link:visited {color:#333333;}a.news_link:hover{color:#333333;}</style>");
	return true;
 }
}
// Ticker main run loop
function runNewsBar()
{
 var myTimeout;
 // Go for the next story data block
 if(storyLength == 0)
 {
  currentItem++;
  currentItem	  = currentItem % newsItems;
  companyNews	  = theSummaries[currentItem].replace(/"/g,'"');
  theTargetLink		= siteLinks[currentItem];
  baseObject.href = theTargetLink;
  thePrefix 	  = "<span class=\"tickls\">" + initialString + "</span>";
 }
 
 baseObject.innerHTML = thePrefix +
 companyNews.substring(0,storyLength) + whatWidget();
 // Modify the length for the substring and define the timer
 if(storyLength != companyNews.length)
 {
  storyLength++;
  myTimeout = theCharacterTimeout;
 }
 else
 {
  storyLength = 0;
  myTimeout = newsTimeout;
 }
 // Call up the next cycle of the ticker
 setTimeout("runNewsBar()", myTimeout);
}
// Widget generator
function whatWidget()
{
 if(storyLength == companyNews.length)
 {
  return theWidgetNone;
 }

 if((storyLength % 2) == 1)
 {
  return theWidgetOne;
 }
 else
 {
  return theWidgetTwo;
 }
}





function startNewsTicker(){

  theSummaries[0] = "PWAN provides businesses with a wide area network without VPN's";
  siteLinks[0] = "";
  
  theSummaries[1] = "PureFluid and Advanced products now provided with industry leading 99.99% SLA";
  siteLinks[1] = "";
  
  theSummaries[2] = "Fluidata installs and activates BURST within three working days using the expedite install option";
  siteLinks[2] = "";

  theSummaries[3] = "New PureFluid platform aggregates lines only using Cisco hardware";
  siteLinks[3] = "";

  theSummaries[4] = "BURST achieves 2.0 Mb/s upstream at over 3 KM from the exchange";
  siteLinks[4] = "";

  theSummaries[5] = "VOX 2.0 launches offering 2 Mb/s symmetric with 1:1 contention at over 1,200 exchanges";
  siteLinks[5] = "";

 startNewsBar();
}// JavaScript Document
