    var charDelay = 40;
    var storyDelay = 3000;
    var numStories = 4;
    // two dimensional array to hold stories and links
    var storyMatrix = new Array();
    storyMatrix[0] = new Array();
    storyMatrix[1] = new Array();
    // dimension 1: titles
    storyMatrix[0][0] = "Kele Lao featured in NBC's hit series LIFE, Season 1, now out on DVD!";
	storyMatrix[0][1] = "Willow wins 1st prize in the 2006 Billboard song contest";
     storyMatrix[0][2] = "Willow featured in over 900 Regal Cinema theatres across the country on Widescreen Radio program";
    storyMatrix[0][3] = "Garode and Somebody Else featured in The Armenian Genocide, which aired nationally on PBS";
    // dimension 2: links
    storyMatrix[1][0] = "http://link.brightcove.com/services/player/bcpid1214244735?bctid=1313705243";
	storyMatrix[1][1] = "http://www.billboardsongcontest.com";
     storyMatrix[1][2] = "#";
    storyMatrix[1][3] = "http://www.twocatstv.com/armenian-genocide/";


 function InitTicker()
    {
          // Default values
          currentStory     = -1;
          currentLength    = 0;
          //The top stories anchor tag
          oAnchor = document.getElementById("tickerHREF");
          NewsTicker();     
    }
	   function NewsTicker()
    {
          var delay;  
          // Get next story if title is done from previous
          
          if(currentLength == 0) // length of title being written out
          {
                currentStory++;
                currentStory = currentStory % numStories;
                // use HTML entity for quotes so we don't mess up the anchor
                currentTitle = storyMatrix[0][currentStory].replace(/&quot;/g,'"');            
                oAnchor.href = storyMatrix[1][currentStory];
          }
          // Write title to anchor
          oAnchor.innerHTML = currentTitle.substring(0, currentLength);
          // adjust length of substring and set delays
          if(currentLength != currentTitle.length)
          {
                currentLength++;
                delay = charDelay;
          }
          else
          {
                currentLength = 0;
                delay = storyDelay;
          }
          // Recurse ticker
          setTimeout("NewsTicker()", delay);
    }
window.onload = InitTicker;