// JavaScript Document
function cms_setClass(wo,URL)
{
	for (j=0;j<document.links.length;j++)
	{
		document.links[j].className="normal";
	};
	document.links[wo-1].className="aktiverLink";
	if (URL) parent.content.location.href=URL;
};


function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
};

function turnOff(dname) { 
	document.getElementById(dname).style.display = 'none';
} 

function turnOn(dname) { 
	document.getElementById(dname).style.display = 'block'; 
	//alert(document.all.navlist.parentElement.innerText);
	//alert(document.getElementById('navlist').childNodes[3].nodeValue);
	document.auswahl.sprache.value = dname;
	document.links.sprache.value = dname;
	document.rechts.sprache.value = dname;
} 

function reiterButton(dname) { 
	clickedBox = dname;
	clickedNum = clickedBox.id.slice(7);
	contentBox = clickedBox.parentNode.parentNode;
	for (i=1; i<=contentBox.childNodes.length-1; i++)
	{
		contentBox.childNodes[i].style.display = 'none';
		document.getElementById('button_'+i).style.backgroundColor = '#eaeaea';
	};
	contentBox.childNodes[clickedNum].style.display = 'block';;
	clickedBox.style.backgroundColor = '#c8d0e8';
} 

function test(dname){
	alert(dname);
}


function Ticker(id, msg){
	var parEl = null;
	if (!(parEl = document.getElementById(id)) || typeof msg != "object") {
		//window.alert("Konnte Ticker nicht initialisieren!");
		return;
	}
 
	this.respell = function(k,i) {
		parEl.firstChild.nodeValue = msg[k].substring(0,i)+"_";
		if (i++ == msg[k].length) {
			i = 0;
			window.setTimeout(function() { this.respell(k,i); }, 3000);
			k = (k+1) == msg.length?0:k+1;
		} else
			window.setTimeout(function() { this.respell(k,i); }, 100);
 
	}
	window.respell = this.respell;
	this.respell(0,0);
}

/*window.onload = function() {
	new Ticker("derletztekick", ["Besuchen Sie den Geuder Stand anlässlich der • DOG vom 18.-21.09.2008 in Berlin, Estrel Hotel"]);
}*/
