function centerwindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { 
		win.window.focus(); 
	}
}

function OpenBrWindow(theURL,winName,features, myWidth, myHeight, isCenter)
{ 
	if(window.screen)if(isCenter)if(isCenter=="true"){
		var myLeft = (screen.width-myWidth)/2;
		var myTop = (screen.height-myHeight)/2;
		features +=(features!='')?',':'';
		features +='resizable=no';
		features +=',left='+myLeft+',top='+myTop;
	}
	window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}

function spiel(myname, w, h, scroll) {

var mypage = "http://www.boschgame.netzgiganten.com/DE/flash_detection.html";

var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function spielen(myname, w, h, scroll) {

var mypage = "http://www.boschgame.netzgiganten.com/EN/flash_detection.html";

var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function spielit(myname, w, h, scroll) {

var mypage = "http://www.boschgame.netzgiganten.com/IT/flash_detection.html";

var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function spieles(myname, w, h, scroll) {

var mypage = "http://www.boschgame.netzgiganten.com/ES/flash_detection.html";

var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function spielcn(myname, w, h, scroll) {

var mypage = "http://www.boschgame.netzgiganten.com/CN/flash_detection.html";

var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function spielfr(myname, w, h, scroll) {

var mypage = "http://www.boschgame.netzgiganten.com/FR/flash_detection.html";

var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function spielus(myname, w, h, scroll) {

var mypage = "http://www.boschgame.netzgiganten.com/US/flash_detection.html";

var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function spielkr(myname, w, h, scroll) {

var mypage = "http://www.boschgame.netzgiganten.com/KR/flash_detection.html";

var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function spielse(myname, w, h, scroll) {

var mypage = "http://www.boschgame.netzgiganten.com/SE/flash_detection.html";

var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function spielbe(myname, w, h, scroll) {

var mypage = "http://www.boschgame.netzgiganten.com/BE/flash_detection.html";

var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function spielpt(myname, w, h, scroll) {

var mypage = "http://www.boschgame.netzgiganten.com/PT/flash_detection.html";

var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function spielbr(myname, w, h, scroll) {

var mypage = "http://www.boschgame.netzgiganten.com/BR/flash_detection.html";

var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function spielpl(myname, w, h, scroll) {

var mypage = "http://www.boschgame.netzgiganten.com/PL/flash_detection.html";

var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function spielse(myname, w, h, scroll) {

var mypage = "http://www.boschgame.netzgiganten.com/SE/flash_detection.html";

var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function spieljp(myname, w, h, scroll) {

var mypage = "http://www.boschgame.netzgiganten.com/JP/flash_detection.html";

var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function spieltr(myname, w, h, scroll) {

var mypage = "http://www.boschgame.netzgiganten.com/TR/flash_detection.html";

var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function OpenBrWindow(theURL,winName,features, myWidth, myHeight, isCenter)
{ 
	if(window.screen)if(isCenter)if(isCenter=="true"){
		var myLeft = (screen.width-myWidth)/2;
		var myTop = (screen.height-myHeight)/2;
		features +=(features!='')?',':'';
		features +='resizable=no';
		features +=',left='+myLeft+',top='+myTop;
	}
	window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}

function highlight_teaser(divid, stat) {
	var color=(stat==1)?"#a0b7cf":"#b4c6d9"
	if (document.getElementById) {
		var theDiv = document.getElementById(divid);
		if(theDiv) {
			document.getElementById(divid).style.backgroundColor = color;
		}
	}
}

function accordion(id) {
	accordion_link = "accordion_link_" + id;
	accordionid = "accordion_" + id;
	accordionclassname = document.getElementById(accordionid).className;
	accordionclass = new String(accordionclassname);
	
	var divtags = document.getElementsByTagName('div');
	for(var x = 0; x < divtags.length; x++) {
		var thisdiv = divtags[x];
		var classAttribute = String(thisdiv.className);
		if(classAttribute == 'accordion_item' || classAttribute == 'accordion_item_active') {
    	thisdiv.className = "accordion_item";
    }
    if(classAttribute == 'accordion_item_text' || classAttribute == 'accordion_item_text_hi') {
			thisdiv.className = "accordion_item_text";
		}
	}
	if (accordionclass == 'accordion_item_text') {
		document.getElementById(accordion_link).className = "accordion_item_active";
		document.getElementById(accordionid).className = "accordion_item_text_hi";
	}
	if (accordionclass == 'accordion_item_text_hi') {
		document.getElementById(accordion_link).className =  "accordion_item";
		document.getElementById(accordionid).className = "accordion_item_text";
	}
}