// Team Layer Positionieren
function showLayer(alayer) { 
   hideLayers();
  var setlayer = document.getElementById(alayer);
	if (setlayer)
	{
		setlayer.style.display = "block";	
	} 
}

//Alle Layer zurücksetzen
function hideLayers() {
for (i=1; i<(34); i++) {
  var layer = document.getElementById("BM"+i);
	if (layer) {
		layer.style.display = "none"; }
  } 	
}

var oldRow = null;
selected = false;
selectedRow = "";
function Selected( evt ) 
{ 

    selectedRow = ( evt.target || evt.srcElement ); 
    while ( selectedRow.tagName != "TR") 
			selectedRow = selectedRow.parentNode; 

	if ( oldRow ) 
    { 
        if ( oldRow == selectedRow ) 
            return true;
        else oldRow.style.backgroundColor = "";  
    };

    selectedRow.style.backgroundColor = "#d9d9d9"; 
    oldRow = selectedRow;
	selected = true;

} 

function wechseln(el, col)
{

	col = col || '';
	if( typeof(el._current) == 'undefined' || el._current !== true  ) {
		el.style.backgroundColor = col;
	}
 	if (selected) {
		selectedRow.style.backgroundColor = "#d9d9d9"; 
	}
}

//Layer ein-ausblenden

function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

// Layer ToggleDisplay

function FindObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function ToggleDisplay (name) {
  var obj = FindObj(name);
  if (obj) {
    if (obj.style) { obj=obj.style; }
    obj.display = (obj.display == 'none') ? 'block' : 'none';
  }
}

// Bilder als Popup in Bildergrösse öffnen

function OpenFoto(img){
foto= new Image();
foto.src=(img);
ControlFoto(img);
}

function ControlFoto(img){
if((foto.width!=0)&&(foto.height!=0)){
ViewFoto(img);
}
else{
interval_a="ControlFoto('"+img+"')";
interval_b=setTimeout(interval_a,20);
}
}
function ViewFoto(img){
width=foto.width+20;
height=foto.height+24;

try {
if (output.closed == false) throw "offen";
}
catch (e) {
if (e=="offen") {
output.close();
}
}
output=window.open("","output","left=40,top=40,width="+width+",height="+height+",location=no,toolbar=no,menubar=no,status=no,scrol lbars=no,resizable=no");
output.document.writeln("<html><head><title>*** EUROPE'S 500 ***<\/title><\/head>");
output.document.writeln("<body bgcolor=\"white\" text=\"white\" link=\"white\" vlink=\"white\" alink=\"white\" leftmargin=\"0\" marginwidth=\"0\" topmargin=\"0\" marginheight=\"0\">");
output.document.writeln("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" height=\"100%\">");
output.document.writeln("<tr><td width=\"100%\" height=\"100%\" align=\"left\" valign=\"top\"><p><a href=\"javascript:self.close()\"><img src=\""+img+"\" width=\""+foto.width+"\" height=\""+foto.height+"\" border=\"10\" alt=\"click here to close the window\"></a><\/p><\/td><\/tr>");
output.document.writeln("<\/table><\/body><\/html>");
output.focus();
}





