if (navigator.appVersion.indexOf("2.") != -1){
check = false;
}
if ((navigator.appVersion.indexOf("3.") != -1) && (navigator.appName.indexOf("Explorer") != -1)){
check = false;
}
else {
check = true;
}
var NN3 = false;
//b_01 = new Image();b_01.src = "images/b01.gif";
//b_01on = new Image();b_01on.src = "images/b01_o.gif";
//b_02 = new Image();b_02.src = "images/b02.gif";
//b_02on = new Image();b_02on.src = "images/b02_o.gif";



//b_schliessen = new Image();b_schliessen.src = "images/b_schliessen.gif";
//b_schliessenon = new Image();b_schliessenon.src = "images/b_schliessen_o.gif";



function on3(name) {
document[name].src=eval(name+"on.src");
}
function off3(name) {
document[name].src=eval(name+".src");
}
NN3 = true;
function on(name) {
if(NN3)on3(name);
}
function off(name) {
if(NN3)off3(name);
}

function aktiv(inp) 
{
	inp.style.borderColor = "#71BF4B";
	//inp.style.scrollbarTrackColor  = "#FCFAF6";
}
function inaktiv(inp)
{
	inp.style.borderColor = "#A6C2D8";
	//inp.style.scrollbarTrackColor  = "#ffffff";
}


function openw(theURL,winName,features) {
imagenews = new Image();imagenews.src = ""+theURL;
var fenster = window.open("",winName,features);

fenster.document.open();
fenster.document.write("<html><head><title>:: BMTT ::</title><link rel='stylesheet' href='style.css' type='text/css'></head><body bgcolor='#ffffff' style='background-image:url(/images/bg.gif); background-repeat:repeat-x; background-color:#34A0CC'><table width='100%' height='100%' cellpadding='0' cellspacing='0' border='0'><tr><td align='center'><table bgcolor=#1489BB border=0 cellpadding=1 cellspacing=1><tr><td bgcolor=#ffffff><img src='"+imagenews.src+"'></td></tr></table></td></tr><tr><td align='center' height='25'><a href='javascript:window.close()'><img src='images/pfeil2.gif' width=9 height=8 hspace=2 vspace=0 border=0 align='absmiddle'>Fenster schlie&szlig;en</a></td></tr></table></body></html>");
fenster.document.close();


fenster.focus();

}

function fenster(Url,breite,hoehe)
{ 
      
      // Fenstergrösse festlegen
      var fenster_property = "width=" + breite + ",height=" + hoehe + ",resizable=0,scrollbars=1";
      // Ausrichtung Bildschirmmitte 
      var abstand_links = Math.ceil((screen.width - breite) / 2);
      var abstand_oben = Math.ceil((screen.height - hoehe - 60) / 2);
      fenster_property += ",screenX=" + abstand_links + ",screenY=" + abstand_oben +",left=" + abstand_links + ",top=" + abstand_oben;
	  
      // Fenster öffnen
	  fensternew = window.open(Url,"spinoff",fenster_property);
	  fensternew.focus();
}


function getsize()
{
	// Breite und Hoehe des Anzeigebereiches im Browserfenster ermitleln 
	if (self.innerWidth) // all except Explorer 
	{ 
		breite = self.innerWidth; 
	} 
	else if (document.documentElement && document.documentElement.offsetWidth) // Explorer 6 Strict Mode 
	{ 
		breite = document.documentElement.offsetWidth; 
	} 
	else if (document.body) // other Explorers 
	{ 
		breite = document.body.clientWidth; 
	}// Breite und Hoehe des Anzeigebereiches im Browserfenster ermitleln 
	
	
	
	if (self.innerHeight) // all except Explorer 
	{ 
		hoehe = self.innerHeight; 
	} 
	else if (document.documentElement && document.documentElement.clientHeight) // Explorer 6 Strict Mode 
	{ 
		hoehe = document.body.clientHeight;
	} 
	else if (document.body) // other Explorers 
	{ 
		hoehe = document.body.clientHeight;
	}
	
	vbreite = (breite - 10)/100*100;
	vhoehe = hoehe;
	startx = (vbreite - 894)/2;
	starty = (vhoehe - 620)/2.2;
	if(startx < 0){startx = 0};
	if(starty < 0){starty = 0};
	leftpadding = 47;
	toppadding = 240;
	bottompadding = 0;
	
}

function setelements(korrektur)
{
	var obj = document.getElementById("textinhalt");
	var navigesamt = obj.getElementsByTagName("span").length;
	for(inavi=0;inavi<navigesamt;inavi++)
	{
		nummer = inavi + 1;
		if(nummer<10)
		{
			nummer = "0"+nummer;
		}
		obj.getElementsByTagName("span")[inavi].innerHTML = nummer+"";
	}
	
	var navigesamt = obj.getElementsByTagName("i").length;
	for(inavi=0;inavi<navigesamt;inavi++)
	{
		nummer = inavi + 1;
		if(nummer<10)
		{
			nummer = "0"+nummer;
		}
		obj.getElementsByTagName("i")[inavi].innerHTML = "·";
	}
	
	document.getElementById("navicell").style.height = document.getElementById("navicell").offsetHeight - bottompadding - toppadding;
	
	if(document.getElementById("navicell").offsetHeight + bottompadding + toppadding < hoehe)
	{
		document.getElementById("navicell").style.height = hoehe - bottompadding - toppadding;
	}
	
	document.getElementById("bgtable").style.height = document.getElementById("sl").offsetHeight + "px";
	document.getElementById("maintable").style.left = (startx+korrektur)+"px";
	
	
}
