function hgfarbe(feldname,farbe)
{
	document.getElementById(feldname).style.backgroundColor = farbe;
}

function hgbild(feldname,url)
{
	document.getElementById(feldname).style.backgroundImage = "url(../layout/"+url+")";
}

function WriteSwf(img,wsize,hsize)
{
	if (!flash.isInstalled()) { return; }
    document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\""+wsize+"\" height=\""+hsize+"\">");
    document.write("<param name=\"movie\" value=\""+img+"\">");
    document.write("<param name=\"quality\" value=\"high\">");
    document.write("<param name=\"menu\" value=\"false\">");
    document.write("<param name=wmode value=opaque>");
    document.write("<embed src=\""+img+"\" quality=\"high\" pluginspage=\"https://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+wsize+"\" height=\""+hsize+"\"></embed>");
   document.write("</object>");
}

function WriteSwf2(img,wsize,hsize){
	if (!flash.isInstalled()) { return; }
    document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\""+wsize+"\" height=\""+hsize+"\">");
    document.write("<param name=\"movie\" value=\""+img+"\">");
    document.write("<param name=\"quality\" value=\"high\">");
    document.write("<param name=\"menu\" value=\"false\">");
    document.write("<param name=wmode value=transparent>");
    document.write("<embed src=\""+img+"\" quality=\"high\" pluginspage=\"https://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+wsize+"\" height=\""+hsize+"\"></embed>");
   document.write("</object>");
}




 function druckfenster(imgName, x, y){
   if (window.druck&& !window.druck.closed){
   window.druck.close();
   window.druck = window.open("../includes/druckfenster.htm", imgName , "left=200, top=200, height=" + y + ", width=" + x + ", menubar=no, resizable=no, location=no");
   }
   else{
    window.druck= window.open("../includes/druckfenster.htm", imgName , "left=200, top=200, height=" + y + ", width=" + x + ", menubar=no, resizable=no, location=no");
    }
   }
   
 function popupfenster(imgName2, x2, y2){
   if (window.popup&& !window.popup.closed){
   window.popup.close();
   window.popup = window.open("../includes/popupfenster.htm", imgName2 , "left=200, top=200, height=" + y2 + ", width=" + x2 + ", menubar=no, resizable=no, location=no");
   }
   else{
    window.popup= window.open("../includes/popupfenster.htm", imgName2 , "left=200, top=200, height=" + y2 + ", width=" + x2 + ", menubar=no, resizable=no, location=no");
    }
   }
   
     
   
 function popupfensterindex(imgName2, x2, y2){
   if (window.popup&& !window.popup.closed){
   window.popup.close();
   window.popup = window.open("includes/popupfenster_index.htm", imgName2 , "left=200, top=200, height=" + y2 + ", width=" + x2 + ", menubar=no, resizable=no, location=no");
   }
   else{
    window.popup= window.open("includes/popupfenster_index.htm", imgName2 , "left=200, top=200, height=" + y2 + ", width=" + x2 + ", menubar=no, resizable=no, location=no");
    }
   }

   
	function adventAn(elementname) {
        document.getElementById(elementname).style.display = "block";
	}
  
   
 function build_abc(){
 
  ABC = new Array("a","b","d","f","h","k","m","n","p","s","t","v");
  
  for (x=0; x<ABC.length;x++){
  // Sting basiert Großbuchstaben  
    myBS = ABC[x].toUpperCase();
  // Create new element, append 
    myLexTag = document.getElementById("lex"); 
    
    
    myTag = document.createElement("A");
    myTag.setAttribute("href", "lexikon_fussball_lex_"+ABC[x]+".htm");
    myTag.setAttribute("id", ABC[x]);
    myTag.style.fontWeight = "bold";
    myTag.style.fontSize = "16px";
    myTag.innerHTML = myBS;
    
    myLexTag.appendChild(myTag);
    
  // Create new element, append zum oberen
    myLexSep = document.getElementById(ABC[x]);
    
    mySep = document.createElement("span");
    myTag.style.padding="6";
    mySep.innerHTML = " "
     
    myLexSep.appendChild(mySep);  

   
  }
 } 
 

function goHist(a) 
{

   history.go(a);

} 
function popup_skizzen(Fn, X, Y, Scroll)
{
 l = (screen.width) ? (screen.width-550) / 2 : 0;
 t = (screen.height) ? (screen.height-600) / 2 : 0; 
 NewWindow=window.open(Fn,'newwindow','width='+X+',height='+Y+',top='+t+',left='+l+',scrollbars='+Scroll+',toolbar=no,location=no,directories=no,status=no,resizable=no,menubar=no');
}
 
function popupresize_skizzen(Fn, X, Y, Scroll)
{
 l = (screen.width) ? (screen.width-550) / 2 : 0;
 t = (screen.height) ? (screen.height-600) / 2 : 0; 
 NewWindow=window.open(Fn,'newwindow','width='+X+',height='+Y+',top='+t+',left='+l+',scrollbars='+Scroll+',toolbar=no,location=no,directories=no,status=no,resizable=yes,menubar=no');
}
 
var flash={
	_isInstalled:null
	,isInstalled:function(){
		if (null !== this._isInstalled) {
			return this._isInstalled;
		}
		if ('Microsoft Internet Explorer'!=navigator.appName) {
			this._isInstalled=null !== navigator.plugins['Shockwave Flash'];
			}
		else if (window.ActiveXObject) {
			try {
				new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
				this._isInstalled=true;
				}
			catch (onError) {
				this._isInstalled=false;
				}
			}
		else {
			this._isInstalled=false;
		}
		return this._isInstalled;
	}
};


   
   
   
