try {
var pageTracker = _gat._getTracker("UA-2659136-6");
pageTracker._trackPageview();
} catch(err) {}

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

function lookup(referrer) {
		if(referrer.length == 0) {
			// Hide the suggestion box.
			$('#suggestions').hide();
		} else {
			$.post("suche.php", {queryString: ""+referrer+""}, function(data){
				if(data.length >0) {
					$('#suggestions').show();
					$('#autoSuggestionsList').html(data);
				}
			});
		}
	} // lookup
	
	function fill(thisValue) {
		$('#referrer').val(thisValue);
		setTimeout("$('#suggestions').hide();", 200);
	}

function smilie(thesmilie) {
// inserts smilie text
	document.content.entry.value += thesmilie+" ";
	document.content.entry.focus();
}

function confirmAction(theMessage) 
{ 
    // TODO: Confirmation is not required in the configuration file 
    // or browser is Opera (crappy js implementation) 
    if (typeof(window.opera) != 'undefined') { 
        return true; 
    } 
 
    var is_confirmed = confirm(theMessage); 
 
    return is_confirmed; 
} // end of the 'confirmAction()' function

var bloed;

function hover(nick,clan,platz)
{
	
	bloed = document.getElementById ('player_info').innerHTML;
	div = document.getElementById ('player_info').innerHTML = 'Nick: '+nick+'<br />Platz: '+platz+'<br />Clan: '+clan;

}

function nohover()
{
	
	document.getElementById ('player_info').innerHTML = bloed;

}

function setVisibility(rowName, visiblity) {
	// Tabellenzelle ermitteln
	
	var actualVisibility=document.getElementById(rowName).style.visibility;

	if(visiblity==false) {
		document.getElementById(rowName).style.visibility = "hidden";
		document.getElementById(rowName).style.display = "none";
	} else {
		document.getElementById(rowName).style.visibility = "visible";
		document.getElementById(rowName).style.display = "table-row";
	}
}

function tourney_update_suboptions() {

var kategorieAuswahl = document.forms.edit_add.mode;

if (kategorieAuswahl.options
[kategorieAuswahl.selectedIndex].
value == "0")
{
setVisibility("mixed", true);
setVisibility("thirdplaceenc", true);
}

if (kategorieAuswahl.options
[kategorieAuswahl.selectedIndex].
value == "1")
{
setVisibility("mixed", true);
setVisibility("thirdplaceenc", false);
}

if (kategorieAuswahl.options
[kategorieAuswahl.selectedIndex].
value > "1")
{
setVisibility("mixed", false);
setVisibility("thirdplaceenc", false);
}

}