function show_debug()
{
  alert("CENTER");
}

function change_center( center_id )
{
	if(center_id == 1702)
	{
  	window.open("http://www.soccerworld-muenchen.de","Soccerworld_Muenchen");
  	return false;
  }

	if(center_id == 2002)
	{
  	window.open("http://www.soccerworld-steinfurt.de/","Soccerworld_Steinfurt");
  	return false;
  }

	if(center_id == 402)
	{
  	window.open("http://www.soccerworld-koeln.de","Soccerworld_Koeln");
  	return false;
  }

  if(center_id == 1002)
	{
  	window.open("http://www.soccerworld-aachen.de","Soccerworld_Aachen");
  	return false;
  }

  if(center_id == 502)
	{
  	window.open("http://www.soccerworld-oberhausen.de/","Soccerworld_Oberhausen");
  	return false;
  }

  if(center_id == 2002)
	{
  	window.open("http://www.kopitus.de/KUNDEN/soccerworld/steinfurt/","Soccerworld_Steinfurt");
  	return false;
  }
  else
  	window.location.href = "/?"+center_id;

}

function PopUp(URL)
{
    var Fensteroptionen = "titel='pop',toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0";
    var Name = "popWin";
    var Breite = 955;
    var Hoehe = 600;

   	window.open(URL, Name, Fensteroptionen + ',width=' + Breite + ',height=' + Hoehe);
}

function printPopUp(URL)
{
    var Fensteroptionen = "titel='pop',toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0";
    var Name = "popWin";
    var Breite = 680;
    var Hoehe = 600;

   	window.open(URL, Name, Fensteroptionen + ',width=' + Breite + ',height=' + Hoehe);
}


function livePopUp()
{
	window.open('http://liveticker.fscplive.de/?id='+escape(document.URL),'kick_ticker','resizable=no,width=300,height=400');
}

function winOpen(url, breite, hoehe)
{
      links = (screen.width/2)-(breite/2);
      oben = (screen.height/2)-(hoehe/2);
      window.open(url,"popup","height="+hoehe+",width="+breite+",status = no,toolbar = no,menubar = no,location = no,resizable = no,titlebar = no,scrollbars = yes,fullscreen = no,top ="+oben+",left ="+links);
}

function addFlash(file, width, height, vars, langId, menu, bgColor, trans)
{
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='"  + width + "' height='" + height + "' id='" + file + "' align='middle' style='vertical-align:text-top;margin:0;'>");
	document.write("<param name='allowScriptAccess' value='sameDomain' />");
  document.write(((trans) ? "<param name='wmode' value='transparent' />":""));
	document.write("<param name='FlashVars' value='" + vars + "'/>");
	document.write("<param name='Menu' value='" + menu + "'/>");
	document.write("<param name='quality' value='best' />");
	document.write("<param name='bgcolor' value='" + bgColor + "' />");
	document.write("<param name='movie' value='f/" + file + ".swf?" + vars + "'/>");
	document.write("<embed src='f/" + file + ".swf?" + vars + "'FlashVars='" + vars + "' quality='best'  bgcolor='" + bgColor + "' width='" + width + "' height='" + height + "' name='" + file + "' menu='" + menu + "' align='middle' allowScriptAccess='sameDomain' " + ((trans) ? "wmode='transparent'" : "") + " type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
}


function addFlashLayer(file, width, height, bgColor, trans)
{
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='"  + width + "' height='" + height + "' id='" + file + "' align='middle' style='vertical-align:text-top;margin:0;'>");
	document.write("<param name='allowScriptAccess' value='sameDomain' />");
  document.write(((trans) ? "<param name='wmode' value='transparent' />":""));

	document.write("<param name='quality' value='best' />");
	document.write("<param name='bgcolor' value='" + bgColor + "' />");
	document.write("<param name='movie' value='flashlayer/" + file + ".swf"  + "'/>");
	document.write("<embed src='flashlayer/" + file + ".swf" +  "' quality='best'  bgcolor='" + bgColor + "' width='" + width + "' height='" + height + "' name='" + file +  "' align='middle' allowScriptAccess='sameDomain' " + ((trans) ? "wmode='transparent'" : "") + " type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
}


