 
// Ticker startup
function startTicker()
{
	// Define run time values
	theCurrentStory     = -1;
	theCurrentLength    = 0;
	// Locate base objects
	if (document.getElementById) {	
		    theAnchorObject     = document.getElementById("tickerAnchor");
			runTheTicker();   	
		 }
	else {
            document.write("<style>.backdropStrong{display:none;}.ticko{}</style>");
            return true;
	}
}
// Ticker main run loop
function runTheTicker()
{
	var myTimeout;  
	// Go for the next story data block
	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>";
	}
	// Stuff the current ticker text into the anchor
	theAnchorObject.innerHTML = thePrefix + 
	theStorySummary.substring(0,theCurrentLength) + whatWidget();
	// Modify the length for the substring and define the timer
	if(theCurrentLength != theStorySummary.length)
	{
		theCurrentLength++;
		myTimeout = theCharacterTimeout;
	}
	else
	{
		theCurrentLength = 0;
		myTimeout = theStoryTimeout;
	}
	// Call up the next cycle of the ticker
	setTimeout("runTheTicker()", myTimeout);
}
// Widget generator
function whatWidget()
{
	if(theCurrentLength == theStorySummary.length)
	{
		return theWidgetNone;
	}

	if((theCurrentLength % 2) == 1)
	{
		return theWidgetOne;
	}
	else
	{
		return theWidgetTwo;
	}
}
	var theCharacterTimeout = 80;
	var theStoryTimeout     = 5000;
	var theWidgetOne        = "_";
	var theWidgetTwo        = " ";
	var theWidgetNone       = "";
	var theLeadString       = "&nbsp;";

	var theSummaries = new Array();
	var theSiteLinks = new Array();
	var theItemCount = 5;

		theSummaries[0] = "Thank you for Daily Jobs Listings, This method is so effective, I found an advert and I feel the job is mine.... Amani Kajela";
		theSiteLinks[0] = "http://www.jobscan.co.tz";
	
		theSummaries[1] = "You avidly swamps the missing link that for so long inhibited employers reaching the right manpower needs... A. Mgaya";
		theSiteLinks[1] = "http://www.jobscan.co.tz";
	
		theSummaries[2] = "GREAT!!! Job seekers, most can't afford daily newspapers but can atleast afford to visit the cafe daily for few minutes...";
		theSiteLinks[2] = "http://www.jobscan.co.tz";
	
		theSummaries[3] = "It is a good source for Tanzanian all over the world who want to returning home with the much needed skills... Dr. Mwai";
		theSiteLinks[3] = "http://www.jobscan.co.tz";
		
		theSummaries[4] = "I'm hambled by this simple yet great idea, credit should be given were it's due. I proclaime to you BRAVOOO!!... Jessica";
		theSiteLinks[4] = "http://www.jobscan.co.tz";
	
	startTicker();
