/*config ticker*/
//---------------------------
var pos_width = 475;
var sprung_ff = 1;
var sprung_ie = 4;
var timeout = 10;
//---------------------------




var user_agent = navigator.userAgent
sprung = 4;
if(user_agent.search('MSIE') != -1 || user_agent.search('Opera') != -1)
	sprung = sprung_ie;
else
	sprung = sprung_ff;
	
var first_round = true;
var stop_t = false;
function newsletter_ticker()
{
	if(stop_t == false)
	{
		newsletter_text_div = document.getElementById("newsletter")
		if(first_round == true)
		{
			tmp_pos_width = pos_width;
			first_round = false;
			newsletter_text_div.style.left = tmp_pos_width+'px';
			newsletter_text_div.style.visibility = 'visible';
		}
		tmp_offsetwidth = -(newsletter_text_div.offsetWidth);
		//alert(tmp_offsetwidth);
		if(tmp_offsetwidth < tmp_pos_width)
		{
			newsletter_text_div.style.left = (tmp_pos_width - sprung)+'px';
			tmp_pos_width = (tmp_pos_width - sprung);
		}else{
			tmp_pos_width = pos_width;
			newsletter_text_div.style.left = tmp_pos_width+'px';
		}
	}
	laufschleife();
}
function laufschleife() 
{setTimeout("newsletter_ticker()",timeout);}

function go_ticker() 
{stop_t = false;}

function stop_ticker() 
{stop_t = true;}

