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 addFlashChat(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='" + file + ".swf?" + vars + "'/>");
	document.write("<embed src='" + 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>");
}

