/* --- Scrolling message ---*/
gap = "                                ";
/* --- Message set at end ---*/
msg = "" + gap ;
pos = 0;
function ScrollMessage() {
  window.status = msg.substring(pos, msg.length) + msg.substring(0, pos);
  pos++; 
  if (pos > msg.length) pos = 0;
  window.setTimeout("ScrollMessage()",75);
}
//ScrollMessage();


// Ticker startup
function startTicker()
{
	theCurrentStory     = -1;
	theCurrentLength    = 0;
	if (document.getElementById) {	
		theAnchorObject = document.getElementById("tickerAnchor");
		if(theAnchorObject){
		  runTheTicker();
		}
	} else {
		document.write("<style>.ticki{display:none;}.ticko{border:0px; padding:0px;}</style>");
		return true;
	}
}

// Ticker main run loop
function runTheTicker()
{
	var myTimeout;
	var startChar;
	if(theCurrentLength == 0) {
		theCurrentStory++;
		theCurrentStory = theCurrentStory % theItemCount;
		theStorySummary = theSummaries[theCurrentStory].replace(/&quot;/g,'"');
		theTargetLink = theSiteLinks[theCurrentStory];
		theAnchorObject.href = theTargetLink;
		thePrefix = "<span class=\"tickls\">" + theLeadString + "</span>";
		document.getElementById('tickerdiv').title = theStorySummary;
	}
	startChar = (theCurrentLength < theMaxChars) ? 0 : (theCurrentLength - theMaxChars);
	theAnchorObject.innerHTML = thePrefix + 
	theStorySummary.substring(startChar, theCurrentLength) + '_';
	if(theCurrentLength != theStorySummary.length) {
		theCurrentLength++;
		myTimeout = theCharacterTimeout;
	} else {
		theCurrentLength = 0;
		myTimeout = theStoryTimeout;
	}
	setTimeout("runTheTicker()", myTimeout);
}

// Text in box on pages (
var theCharacterTimeout = 65;
var theStoryTimeout = 5000;
var theMaxChars = 80;
var theLeadString = "&nbsp;";
var theSummaries = new Array();
var theSiteLinks = new Array();

//start include
var theItemCount = 3;
               
theSummaries[0] = "Course dates for '09/'10 season";
theSiteLinks[0] = "/lessons/courses.html";
theSummaries[1] = "Open practice times extended for '09/'10 season";  
theSiteLinks[1] = "/lessons/open-practice.html";		      
theSummaries[2] = "September '09 Junior Club newsletter";  
theSiteLinks[2] = "/junior-club/newsletters/";                 

msg = "Full official photo ID required at gate (not just club id)" + gap +
      "Low season opening times" + gap +
      "Skiing and Snowboarding instructors wanted" + gap;
//call ticker function
