



/*
// news ticker function
var newslist=new Array();
var cnt=0;			// current news item
var curr = "";
var curr2 = "";
var i=-1;			// current letter being typed for the main text
var j=-1;			// current letter being typed for the header


newslist[0]=new Array("David Leadbetter:",
"'You can have good weeks putting badly, and vice versa, but this machine is a great help with those things even a coach cannot see.'")

newslist[1]=new Array("David Davies (Journalist), 28. October 2004 Guardian:",
"'...its efficacy can be judged by the fact that Padraig Harrington, No8 in the world rankings and one of the great putters, has bought one for his practice green at home.'")

newslist[2]=new Array("Geoff Mangum (Putting Expert and Instructor):",
"'The SAM PuttLab takes putting science into the body, giving the teacher and the golfer all the precise knowledge needed to assess the effectiveness of technique, to identify problem areas, and to guide and monitor improvement'")

newslist[3]=new Array("Federica Dassu (Head-Coach and mentor for the Italian women's golf Federation):",
"'We had a training camp in the south of Italy. The machine was well accepted by the players...some were totally enthusiastic about it!'")

newslist[4]=new Array("David Leadbetter:",
"'The SAM PuttLab provides insight into the putting stroke with a level of precision unlike any other technology. The successful use of the system in my work with PGA tour players confirmed the high efficiency of this excellent feedback tool.'")

newslist[5]=new Array("Hank Haney (No. 5 Teaching Professional):",
"'A team of German scientists and teaching professionals figured that the only way to cure the yips was to first discover exactly when, how and how much they happen in a stroke. That's what their Super SAM machine does.'")

newslist[6]=new Array("Geoff Mangum (Putting Expert and Instructor):",
"'This is the first putting technology worthy of the new century, and should immediately find a place in every top golf school and in every professional player's arsenal.'")
*/

var newslist, cnt, i, j, headerEle, textEle;

function newsticker()
{
	
	if (i == -1 && j == -1)
	{
		//reset the elements
		document.getElementById("laufheader").innerTEXT = "" 
		document.getElementById("lauftext").innerHTML = ""
	}
	
	// next character of current item
	// title
	if (j < newslist[cnt][0].length - 1)
	{
		j++;

		document.getElementById("laufheader").innerTEXT = newslist[cnt][0].substring(0,j);
  		setTimeout('newsticker()',150)
		return;
	}


	temp1 = newslist[cnt][1];
	
	// next character of current item
	// testimonial text
	if (i < newslist[cnt][1].length - 1)
	{
		i++;
		document.getElementById("lauftext").innerHTML = newslist[cnt][1].substring(0,i);		
  		setTimeout('newsticker()',150)
		return;
	}

	// new item
	i = -1; curr = "";j = -1;curr2 = "";
	if (cnt<newslist.length-1)
		cnt++;
	else
		cnt=0;

	setTimeout('newsticker()',10000)

}


function SetNewsItems()
{
newslist=new Array();
newslist[0]=new Array("Padraig Harrington (European Tour Player), in 'The Guardian':",
"'You can have good weeks putting badly, and vice versa, but this machine is a great help with those things even a coach cannot see.'")

newslist[1]=new Array("Joanne Mills, Ladies European Tour winner 2007:",
"'After attending the Putting Academy my putting stats have improved enormously. I now average about 30 putts and make more birdies in a round than I ever have. I truly recommend you have your stroke analysed by the SAM PuttLab.'")

newslist[2]=new Array("Geoff Mangum (Putting Expert and Instructor):",
"'The SAM PuttLab takes putting science into the body, giving the teacher and the golfer all the precise knowledge needed to assess the effectiveness of technique, to identify problem areas, and to guide and monitor improvement'")

newslist[3]=new Array("Steve North, Director of Instruction, St Andrews Links Golf Academy:",
"'St Andrews Links Golf Academy is proud to be at the forefront of the modern game. SAM PuttLab is a key component of the coaching system we have in operation at the Home of Golf. It provides clear feedback, positive results and above all it is fun to use.'")

newslist[4]=new Array("David Leadbetter:",
"'The SAM PuttLab provides insight into the putting stroke with a level of precision unlike any other technology. The successful use of the system in my work with PGA tour players confirmed the high efficiency of this excellent feedback tool.'")

newslist[5]=new Array("Hank Haney (No. 5 Teaching Professional):",
"'A team of German scientists and teaching professionals figured that the only way to cure the yips was to first discover exactly when, how and how much they happen in a stroke. That's what their Super SAM machine does.'")

newslist[6]=new Array("Geoff Mangum (Putting Expert and Instructor):",
"'This is the first putting technology worthy of the new century, and should immediately find a place in every top golf school and in every professional player's arsenal.'")

newslist[7]=new Array("Keith Williams (PGA European Tour Coach):",
"'Knowing exactly what is happening during the putting stroke can mean a significant and important change of approach to helping coach golfers at all levels. Ultimately it's about helping players get better results.'")

newslist[8]=new Array("Travis Fussell (President Fussell Putters, Inc):",
"'From amateurs to tour players, I am amazed how easy it is to pinpoint problems in ones putting stroke. From a simple assessment to teaching, nothing comes close to the accuracy and consistency that your machine displays. I have been able to modify and sell hundreds of putters utilizing your SAM system.'")
}

function NewsSwitcherIE()
{
	document.getElementById("laufheader").filters.blendTrans.Apply();
	document.getElementById("laufheader").innerHTML = newslist[cnt][0];
	document.getElementById("laufheader").filters.blendTrans.Play();
	
	document.getElementById("lauftext").filters.blendTrans.Apply();
	document.getElementById("lauftext").innerHTML = newslist[cnt][1];
	document.getElementById("lauftext").filters.blendTrans.Play();

	if (cnt<newslist.length-1)
		cnt++;
	else
		cnt=0;
	setTimeout('NewsSwitcherIE()',10000);
}

function NewsSwitcher()
{
	document.getElementById("laufheader").innerHTML = newslist[cnt][0];
	
	document.getElementById("lauftext").innerHTML = newslist[cnt][1];


	if (cnt<newslist.length-1)
		cnt++;
	else
		cnt=0;
	setTimeout('NewsSwitcher()',10000);
}


function StartNewsSwitcher()
{
	//does not work with netscape/firefox	
	if (bIE)
	{
		cnt=0;			// current news item
		SetNewsItems();
		NewsSwitcherIE();
	}
	else
	{
		cnt=0;			// current news item
		SetNewsItems();
		NewsSwitcher();
	}
}


function StartNewsTicker()
{
	
	cnt=0;			// current news item
	i=-1;			// current letter being typed for the main text
	j=-1;			// current letter being typed for the header
	SetNewsItems();
	newsticker();
}

function newstickerOld()
{
	
	document.getElementById("lauftext").innerHTML = curr;
	document.getElementById("laufheader").innerHTML = curr2;
	
	// next character of current item
	if (j < newslist[cnt][0].length - 1)
	{
		j++;
		temp1 = newslist[cnt][0];	
		temp1 = temp1.split('');	
  		curr2 = curr2+temp1[j];	
  		document.getElementById("laufheader").innerHTML = curr2;
  		setTimeout('newsticker()',150)
		return;
	}


	temp1 = newslist[cnt][1];
	
	// next character of current item
	if (i < newslist[cnt][1].length - 1)
	{
		i++;
		temp1 = newslist[cnt][1];	
		temp1 = temp1.split('');	
  		curr = curr+temp1[i];	
  		document.getElementById("lauftext").innerHTML = curr;
  		setTimeout('newsticker()',150)
		return;
	}

	// new item
	i = -1; curr = "";j = -1;curr2 = "";
	if (cnt<newslist.length-1)
		cnt++;
	else
		cnt=0;
	

	setTimeout('newsticker()',10000)

}

