
function startTicker()
{
	// Define run time values
	baslik     = -1;
	boy    = 0;
	// Locate base objects
	if (document.getElementById) {	
		    theAnchorObject     = document.getElementById("tickerAnchor");
			runTheTicker();   	
		 }
	else {
            document.write("<style>.ticki{display:none;}.ticko{border:0px; padding:0px;}</style>");
            return true;
	}
}
// Ticker main run loop
function runTheTicker()
{
	var myTimeout;  
	// Go for the next story data block
	if(boy == 0)
	{
		baslik++;
		baslik      = baslik % theItemCount;
		link      = haberler[baslik].replace(/&quot;/g,'"');		
		theTargetLink        = linkler[baslik];
		theAnchorObject.href = theTargetLink;
		thePrefix 	     = theLeadString ;		
	}
	// Stuff the current ticker text into the anchor
	theAnchorObject.innerHTML = thePrefix + 
	link.substring(0,boy) + whatWidget();
	// Modify the length for the substring and define the timer
	if(boy != link.length)
	{
		boy++;
		myTimeout = theCharacterTimeout;
	}
	else
	{
		boy = 0;
		myTimeout = theStoryTimeout;
	}
	// Call up the next cycle of the ticker
	setTimeout("runTheTicker()", myTimeout);
}
// Widget generator
function whatWidget()
{
	if(boy == link.length)
	{
		return theWidgetNone;
	}

	if((boy % 2) == 1)
	{
		return theWidgetOne;
	}
	else
	{
		return theWidgetTwo;
	}
}

	var theCharacterTimeout = 100;
	var theStoryTimeout     = 2000;
	var theWidgetOne        = "";
	var theWidgetTwo        = "";
	var theWidgetNone       = "";
	var theLeadString       = "";
	var haberler = new Array();
	var linkler = new Array();

