function hell(){
document.getElementById("farbe1").style.color="#ffffff";
}

function dunkel(){
document.getElementById("farbe1").style.color="#FDBE00";
}

function invers(){
//jg.clear();
//RRect("#00ff00", "#000000", "seit "+seit+Einheit);
document.getElementById("farbe0").style.color="#000000";
document.getElementById("farbe0").style.backgroundColor="#00ff00";
}

function normal(){
//jg.clear();
//RRect("#ff0000", "#ffffff", "seit "+seit+Einheit);
document.getElementById("farbe0").style.color="#ffffff";
document.getElementById("farbe0").style.backgroundColor="#ff0000";
}

function wechsel()
{
	if (Kennung=="astrotrotter")
	{
		window.open('daten.php','_self')
	}else{
		if (document.getElementById("div-reisen").style.visibility=='visible' && Kennung=="nuernberg")
		{
			document.getElementById("div-reisen").style.visibility='hidden';
			document.getElementById("div-archiv").style.visibility='visible';
		}else{
			document.getElementById("div-reisen").style.visibility='visible';
			document.getElementById("div-archiv").style.visibility='hidden';
		}
	}
}

function VArgumente() {
   var erg = new Array();
   var arg = new Array(); 
   var location = window.location.search; 
   if (location.length > 0) {
      location = location.substr(1, location.length - 1);  
      erg = location.split("&");
		
      for (i=0; i<erg.length; i++) {
         var x = new Array();   
         x = erg[i].split("=");
         arg[x[0]] = x[1];      }
   } else {
      arg[0] = false;   }
   return arg;
}

function neu(Seitenname) {
document.getElementById('rechts').src=Seitenname
}
  
function ganze_Seite() {
window.open(document.getElementById('rechts').src,'print','toolbar = yes,channelmode = yes,resizable = yes,menubar = yes,scrollbars=yes');
}

var parameter = VArgumente();

function TDim(pX, pY)
{
  this.Weite = pX;
  this.Hoehe = pY;
}

var Fenster = new TDim(0, 0);

function getFenster()
{
  if (self.innerHeight) // all except Explorer
  {
   Fenster.Weite = self.innerWidth;
  	Fenster.Hoehe = self.innerHeight;
  }
  else if (document.documentElement && document.documentElement.clientHeight)  // Explorer 6 Strict Mode
  {
	Fenster.Weite = document.documentElement.clientWidth;
  	Fenster.Hoehe = document.documentElement.clientHeight;
  }
  else if (document.body) // other Explorers
  {
   Fenster.Weite = document.body.clientWidth;
   Fenster.Hoehe = document.body.clientHeight;
  }
	
  if (Fenster.Weite <= 800) Fenster.Weite = 800;
  if (Fenster.Hoehe <= 600) Fenster.Hoehe = 600;
  
  return Fenster;
}
var linksWert = 0;
var hochWert = 0;
//getFenster();

function neuAufbau()
{
getFenster();
if (hochWert==0){
	if(document.getElementById('links')) document.getElementById('links').height=Fenster.Hoehe-230;
	if(document.getElementById('rechts')) document.getElementById('rechts').height=Fenster.Hoehe-230;
}else{
	if(document.getElementById('links')) document.getElementById('links').height=hochWert;
	if(document.getElementById('rechts')) document.getElementById('rechts').height=hochWert;
}
if(document.getElementById('rechts')) {
	document.getElementById('rechts').width=Fenster.Weite-48-linksWert;
	document.getElementById('unten').width=Fenster.Weite-48-linksWert;
	document.getElementById('oben').width=Fenster.Weite-48-linksWert;
}
}
window.onresize = neuAufbau;

document.write("<style type='text/css'>");
document.write("a:link {text-decoration:none; font-weight:bold; color: #BBBBBB;  font-size: 18px;  font-family: Arial;}");
document.write("a:visited {text-decoration:none; font-weight:bold; color: #BBBBBB;  font-size: 18px;  font-family: Arial;}");
document.write("a:hover {text-decoration:none; font-weight:bold; color: White; font-size: 18px;  font-family: Arial;}");
document.write("a:active {text-decoration:none; font-weight:bold; color: White; font-size: 18px;  font-family: Arial;}");
document.write("</style>");