var keepActives = new Array;

function OpenPraemie() {
	window.open("bvl_banner.html","praemiedetail","width=100, height=100,top=20;left=20");
}

function becomeActivated(trg,parentoff) {
	//var parenton = trg.parentNode.getAttribute("id", "false");
	var parenton = trg;
	var on = "sub"+parenton.charAt(4);
	var parentoff = parentoff;
	var off = "sub"+parentoff.charAt(4);
	//alle zweispaltigen Menuebestandteile werden in Cookie gespaichert, um Anzeige zu merken
	//roter Reiter ist main(x), von Beginn durchnummerriert, zugehörige Untermenue sub(x) mit der gleichen Zahl
	// Zustände sind on/off, bei Klick wird Cookie neu geschrieben
	// menueCookie = new cookieObject ("bvl_men",365,"/","main2","main3","sub2","sub3","main6","main7","sub6","sub7","main8","main9","sub8","sub9");

	menueCookie.put(on,"on");
	menueCookie.put(parenton,"on");
	menueCookie.put(off,"off");
	menueCookie.put(parentoff,"off");
	menueCookie.write();

	//	Stellt die aktive Ansicht aus, Positionieren der Reiter
	if(navigator.appName.indexOf ("Netscape") != -1) {

		document.getElementById(off).style.display = "none";
		document.getElementById(parentoff).style.backgroundPosition = "0 -20px";
		document.getElementById(on).style.display = "block";
		document.getElementById(parenton).style.backgroundPosition = "0 0";
	} else {
		document.all[off].style.display = "none";
		document.all[parentoff].style.backgroundPosition = "0 -20px";
		document.all[on].style.display = "block";
		document.all[parenton].style.backgroundPosition = "0 0";
	}

	pos_menue();

}
var menueCookie = new cookieObject ("bvl_men",365,"/","main2","main3","sub2","sub3","main6","main7","sub6","sub7","main8","main9","sub8","sub9");
function pos_menue(){
	return;
	// den Rest brauchen wir nicht mehr
	var toppos = 0;
	var toppostmp = 0;
	for(var i=1; i<=9; i++) {
		var tmp = "main"+i;
		var subtmp = "sub"+i;

		//für IE5.0,wird sonst gar nichts angezeigt

		if(menueCookie.fields[i] == "on") {

			//document.getElementById(menueCookie.fieldnames[i]).style.display = "block";
		}


		document.getElementById(tmp).style.top = toppostmp+"px";

		if(navigator.appName.indexOf ("Netscape") != -1) {
			var classname =  document.getElementById(tmp).getAttribute("class", "false");
		} else {
			var classname =  document.getElementById(tmp).getAttribute("classname", "false");
		}

		//wenn position absolute ist, kann höhe nicht gelesen werden, darum hier kurzzeitigen umstellen
		if	(classname == "right"){
			document.getElementById(subtmp).style.position = "relative";
			document.getElementById(subtmp).style.left= "0px";
			//alert(tmp+classname+"::"+document.getElementById(tmp).style.top+"::"+document.getElementById(tmp).offsetHeight);
		}

		if((classname == "left" && menueCookie.fields[i] == "on") || (classname == "right" && menueCookie.fields[i] == "on")){
			toppos += document.getElementById(tmp).offsetHeight-20;
		} else {

			if(tmp!="main5"){
				toppos += document.getElementById(tmp).offsetHeight+20;
			}
		}

		//Style für rechte Spalte wieder korrigieren
		if	(classname == "right"){
			document.getElementById(subtmp).style.position = "absolute";
			document.getElementById(subtmp).style.left= "-80px";
		}

		if(classname != "left" ){
			toppostmp = toppos;
		}
	}

}


function fillArray() {
	return;
	//Cookie für Menuedarstellung

	//menueCookie = new cookieObject ("bvl_men",365,"/","main2","main3","sub2","sub3","main6","main7","sub6","sub7","main8","main9","sub8","sub9");

	if(!menueCookie.found) {

		menueCookie.put("main2","on");
		menueCookie.put("main3","off");
		menueCookie.put("sub2","on");
		menueCookie.put("sub3","off");
		menueCookie.put("main6","on");
		menueCookie.put("main7","off");
		menueCookie.put("sub6","on");
		menueCookie.put("sub7","off");
		menueCookie.put("main8","on");
		menueCookie.put("main9","off");
		menueCookie.put("sub8","on");
		menueCookie.put("sub9","off");

		var tmp = menueCookie.write();


	} else {

		var i;
		for(i=0;i<menueCookie.fields.length;i++) {

			if (menueCookie.fieldnames[i].length == 5) {

				if(menueCookie.fields[i] == "on") {

					//andere Hintergrundgrafik
					document.getElementById(menueCookie.fieldnames[i]).style.backgroundPosition = "0 0";
				}
				else {
					document.getElementById(menueCookie.fieldnames[i]).style.backgroundPosition = "0 -20px";
				}
			} else {

				if(menueCookie.fields[i] == "on") {

					document.getElementById(menueCookie.fieldnames[i]).style.display = "block";
				}
				else {
					document.getElementById(menueCookie.fieldnames[i]).style.display  = "none";
				}
			}
		}

	}
	pos_menue();
}


function openSSL_text() {
	var show = "";

	show = document.getElementById('sslfulltext').style.display;

	if(show=="none" || show=="") {
		document.getElementById('sslfulltextbg').style.display="block";
		document.getElementById('sslfulltext').style.display="block";
	} else {
		document.getElementById('sslfulltextbg').style.display="none";
		document.getElementById('sslfulltext').style.display="none";
	}
}

function show_praemie(id, img, event) {
	var praemie = document.getElementById('praemie_' + id);
	
	if(img) {
        var is_ie = 'v' == '\v';
		var left = 0;

        if(is_ie) {
            if(img == 1) {
               left = "140px";
            } else if (img == 2) {
                left = "80px";
            } else if (img == 3) {
                left = "140px";
            } 
        } else {
            if(img == 1) {
                left = "380px";
            } else if (img == 2) {
                left = "100px";
            } else if (img == 3) {
                left = "380px";
            } 
        }
		praemie.style.left = left;
	}
	praemie.style.display = 'block';
}

function hide_praemie(id) {
	var praemie = document.getElementById('praemie_' + id);
	praemie.style.display = 'none';
}
