//Popupfenster erzeugen
function w(url,name,w,h,scroll)
{
  LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
  TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
  settings='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
  win = window.open(url,name + new Date().getTime(),settings);
}

//Klapptext
function more(id)
{
  if(id == 0) return;
  else {
    if (document.getElementById("more" + id).style.display == 'none')
    {
    	document.getElementById("img" + id).src = "images/collapse.gif";
    	document.getElementById("more" + id).style.display = "";
    } else {
      document.getElementById("img" + id).src = "images/expand.gif";
      document.getElementById("more" + id).style.display = "none";
    }
  }
}

function switch_display(id) {
	if(document.getElementById(id) != null) {
		document.getElementById(id).style.display = document.getElementById(id).style.display == "none" ? "" : "none";
	}
}

function display_show(id) {
	if(document.getElementById(id) != null) {
		document.getElementById(id).style.display = document.getElementById(id).style.display = "";
	}
}

function display_hide(id) {
	if(document.getElementById(id) != null) {
		document.getElementById(id).style.display = document.getElementById(id).style.display = "none";
	}

}

function switchBackground(id) {
	// document.getElementById(id).style = "background-image: url('../images/layout/index_06.jpg')";
	//document.getElementById(id).style.background = document.getElementById(id).style.background == "black" ? "" : "black";
}

// Funktion Uhr
function uhr()
{
	if (!document.layers && !document.all) return;

	var hours    = Uhrzeit.getHours();
	var minutes  = Uhrzeit.getMinutes();
	var seconds  = Uhrzeit.getSeconds();
	var aktMonat = Uhrzeit.getMonth();

	Uhrzeit.setSeconds(seconds+1);

	if (hours   <= 9) hours   = "0" + hours;
	if (minutes <= 9) minutes = "0" + minutes;
	if (seconds <= 9) seconds = "0" + seconds;

	displayTime = Uhrzeit.getDate() + ". " + monat[ aktMonat ] + " " + Uhrzeit.getFullYear() + " " + hours + ":" + minutes + ":" + seconds;

	if (document.layers)
	{
  		document.layers.SvrTime.document.write(displayTime);
  		document.layers.SvrTime.document.close();
	}else
		if (document.all)
  		SvrTime.innerHTML = displayTime;

		setTimeout("uhr()", 1000);
}

var monat = new Array("Januar", "Februar", "M?rz", "April", "Mai"," Juni", "Juli", "August", "September", "Oktober", "November", "Dezember");
var Uhrzeit = new Date();
// Ende Funktion uhr

// Funktion Bookmark hinzuf?gen
var site = "http://www.esport-artists.de";
var bookmark_site = "http://www.esport-artists.de";
var description = "esport-artists.de - Multigaming since 99";
var browser = navigator.appName;
var version = navigator.appVersion.substring(0,1);

function bookmark() {
	// alert(bookmark_site);
	window.external.AddFavorite(bookmark_site,description);
}
// Ende der Funktion Bookmark

var checkflag = "false";
function check(field) {
if (checkflag == "false") {
for (i = 0; i < field.length; i++) {
field[i].checked = true;}
checkflag = "true";
return "Uncheck All"; }
else {
for (i = 0; i < field.length; i++) {
field[i].checked = false; }
checkflag = "false";
return "Check All"; }
}