<!--
// ticker setup
var charDelay = 25;
var storyDelay = 5000;
var numStories = 7;
// two dimensional array to hold stories and links
var storyMatrix = new Array();
storyMatrix[0] = new Array();
storyMatrix[1] = new Array();
// column 1: titles
storyMatrix[0][0] = "Download a pdf of our new Price List!";
storyMatrix[0][1] = "Roger Hooper's Wild World!";
storyMatrix[0][2] = "50% OFF Lambda Prints for all new customers whether it's a single A5 print or several up to a massive 8x4 feet!";
storyMatrix[0][3] = "Zoobs at Opera Gallery!";
storyMatrix[0][4] = "Genesis backs TPOTY!";
storyMatrix[0][5] = "The London Festival of Architecture";
storyMatrix[0][6] = "Check out some of the Photographic Exhibitions we've been involved with...";

// column 2: links
storyMatrix[1][0] = "GenesisPriceList.pdf";
storyMatrix[1][1] = "news.html#article22";
storyMatrix[1][2] = "special-offers.html";
storyMatrix[1][3] = "news.html#article21";
storyMatrix[1][4] = "news.html#article20";
storyMatrix[1][5] = "news.html#article19";
storyMatrix[1][5] = "photographic-exhibitions.html";


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);
}

//-->