
/* div einblender */

function toggleMe(a){
  var e=document.getElementById(a);
  if(!e)return true;
  if(e.style.display=="none"){
    e.style.display="block"
  } else {
    e.style.display="none"
  }
  return true;
}




	
	
/* bild öffner */ 

function BildFenster01(bildurl,b,h,bildtitel)
{
var eigenschaften,sbreite,shoehe,fenster,b,h;

// wenn eine feste Position für die Anzeige gewünscht wird
// dann für die Variable 'FestePosition' ein "ja" eintragen
// und die X- / Y-Werte (linke obere Ecke) hier eintragen

var FestePosition = "ja";  // "ja" oder "nein" eintragen
VonLinks = 20;
VonOben = 20;

if(FestePosition == "ja") {
x = VonLinks;
y = VonOben;
} else {

// stellt die Bildschirmabmessungen fest
var ns6 = (!document.all && document.getElementById);
var ie4 = (document.all);
var ns4 = (document.layers);

if(ns6||ns4) {
sbreite = innerWidth;
shoehe = innerHeight;
}
else if(ie4) {
sbreite = document.body.clientWidth;
shoehe = document.body.clientHeight;
//shoehe = document.documentElement.clientHeight;
}

x = parseInt((sbreite-b)/2);
y = parseInt((shoehe-h)/2);

}

eigenschaften="left="+x+",top="+y+",screenX="+x+",screenY="+y+",width="+b+",height="+h+",menubar=no,toolbar=no,location=no,status=no,scrollbars=no";

fenster=window.open("","",eigenschaften);
fenster.focus();
fenster.document.open();
with (fenster) {
  document.write('<html><head>');
  // geändert für Mozilla
  document.write('<scr' + 'ipt type="text/javascr' + 'ipt" language="JavaScr' + 'ipt">');
  document.write("function click() { window.close(); } ");  // bei click  schliessen
  document.write("document.onmousedown=click ");
  // geändert für Mozilla
  document.write('</scr' + 'ipt>');
  document.write('<title>'+ bildtitel +'</title></head>');
  // Zeile geändert 2003
  document.write('<' + 'body onblur="window.close();" ');// bei Focusverlust schliessen
  document.write('marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">');
  document.write('<img src="'+ bildurl +'"border="0">');
  document.write('</body></html>');
  fenster.document.close();
}
}



/* open popup */

function openplan()
{msgWindow=window.open("pop_plan.asp","displayWindow","toolbar=no,width=850,height=480,directories=no,status=yes,scrollbars=no,resize=no,menubar=no")} 



/* supidupi Radsport-Doping-mouseover x-div einblender 

duenas=Array(	1,1,0,
				1,0,0,
				0,1,1,
				0,1,1,
				1,1,1,
				0,0,1,
				1,0,0,
				0,1,1,
				1,0,0,
				1,1,0,
				0,1,1,
				1,1,0,
				1,1,1,
				1,1,1);
					
function beltran(colID,rowID) {

	if (colID > 0 || rowID > 0) {
		for (x=0; x<=duenas.length-1 ;x++) {
			//document.getElementById('tg'+(x+1)).style.display='none';
			switchClass((x+1),'light');
		}
	}

	checkerID=colID-1;

	//COLS
	if (colID > 0) {
	
		for (x=checkerID; x<=duenas.length-1 ;x++) {
		
			if (x == checkerID) {

				if (duenas[x] == 1) {
				 	document.getElementById('tg'+(x+1)).style.display='block';
					switchClass((x+1),'heavy');
				}
				
				checkerID+=3;
			}
			
		}

	}
		
	checkerID=(rowID-1)*3;
	
	//ROWS
	if (rowID > 0) {
	
		for (x=(rowID-1)*3; x<=((rowID-1)*3+2) ;x++) {
	
			if (x == checkerID) {

				if (duenas[x] == 1) {
				 	document.getElementById('tg'+(x+1)).style.display='block';
					switchClass((x+1),'heavy');
				}
				
				checkerID++;
			}
			
		}
	
	}
	
	//softcore
	if (rowID == -1 && colID == -1) {

		for (x=0; x<=duenas.length-1 ;x++) {

			if (duenas[x] == 1) {
			 	document.getElementById('tg'+(x+1)).style.display='block';
				switchClass((x+1),'light');
			}
			
		}
		
	}
	
	//hardcore
	if (rowID == -2 && colID == -2) {

		for (x=0; x<=duenas.length-1 ;x++) {

			if (duenas[x] == 1) {
			 	document.getElementById('tg'+(x+1)).style.display='block';
				switchClass((x+1),'heavy');
			}
			
		}
		
	}
}

speed=60;
piEPOli=0;
riccoEPO=1;

function ricco() {

	if (piEPOli == 1) {
		beltran(-1,riccoEPO);
	}
	else {
		beltran(riccoEPO,-1);
	}
	
	if (riccoEPO < 4 && piEPOli == 0) {
		riccoEPO++;
		setTimeout("beltran(-1,-1)",(2*speed-10));
		setTimeout("ricco()",2*speed);
	}
	else if (riccoEPO == 4 && piEPOli == 0) {
		piEPOli=1;
		riccoEPO=1;
		beltran(-1,-1);
		setTimeout("ricco()",speed);
	}
	else if (riccoEPO < 15 && piEPOli == 1) {
		riccoEPO++;
		setTimeout("beltran(-1,-1)",(speed-10));
		setTimeout("ricco()",speed);
	}
	else {
		beltran(-1,-1);
	}
	
}

function switchClass(id,direction) {

	if (direction == "heavy") {
		if (document.getElementById('tg'+id).className == "row1light") {
			document.getElementById('tg'+id).className="row1";
		}
		if (document.getElementById('tg'+id).className == "row2light") {
			document.getElementById('tg'+id).className="row2";
		}
		if (document.getElementById('tg'+id).className == "row3light") {
			document.getElementById('tg'+id).className="row3";
		}
	}
	if (direction == "light") {
		if (document.getElementById('tg'+id).className == "row1") {
			document.getElementById('tg'+id).className="row1light";
		}
		if (document.getElementById('tg'+id).className == "row2") {
			document.getElementById('tg'+id).className="row2light";
		}
		if (document.getElementById('tg'+id).className == "row3") {
			document.getElementById('tg'+id).className="row3light";
		}
	}
	
}
*/
