
function Jahr_Tag() { window.open("jahr-tag.htm","",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=yes,width=400,height=300'); }
function Game() { window.open("game/game.html","Spiel",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=no,width=638,height=410'); }
function Erlass() { window.open("erlass.htm","Erlass",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=yes,width=500,height=350'); }
function Standbild() { window.open("standbild.htm","Standbild",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=no,width=250,height=214'); }
function start_Bibelquiz() { window.location.href = "bibelquiz.htm"; }

Z = 0;
Active = 0;
Handle = new Array(10);

function Menu(Pfad) {
	document.writeln('<div id="MENU1" class="DynMenu" onmouseover="Stop_Timer(1); return false;" onmouseout="Hide(1);">');
	document.writeln('<ol class="SubMenu">');
	document.writeln('<li><a href="' + Pfad + 'grundlagen.htm">Einleitung</a></li>');
	document.writeln('<li><a href="' + Pfad + 'ewiges-leben.htm">Ewiges Leben. Aber Wie?</a></li>');
	document.writeln('<li><a href="' + Pfad + 'jesus-prophezeiungen.htm">Jesus im AT</a></li>');
	document.writeln('<li><a href="' + Pfad + 'jesus_gott.htm">Jesus Christus - Gott oder Mensch?</a></li>');
	document.writeln('<li><a href="' + Pfad + 'jesus_schoepfer.htm">Jesus der Schöpfer</a></li>');
	document.writeln('<li><a href="' + Pfad + 'jesus_ursprung.htm">Der Ursprung Jesu</a></li>');
	document.writeln('<li><a href="' + Pfad + 'jesus_gesetzgeber.htm">Jesus der Gesetzgeber</a></li>');
	document.writeln('<li><a href="' + Pfad + 'heiligtum.htm">Das Heiligtum</a></li>');
	document.writeln('<li><a href="' + Pfad + 'zehn-gebote.htm">Die 10 Gebote</a></li>');
	document.writeln('<li><a href="' + Pfad + 'ruhetag.htm">Der Ruhetag Gottes</a></li>');
	document.writeln('<li><a href="' + Pfad + 'zitate_sabbat.htm">Zitate zum 4. Gebot</a></li>');
	document.writeln('<li><a href="' + Pfad + 'evolution.htm">Evolution vs. Schöpfung</a></li>');
	document.writeln('</ol>');
	document.writeln('</div>');

	document.writeln('<div id="MENU2" class="DynMenu" onmouseover="Stop_Timer(2); return false;" onmouseout="Hide(2);">');
	document.writeln('<ol class="SubMenu">');
	document.writeln('<li><a href="' + Pfad + 'daniel.htm">Einleitung</a></li>');
	document.writeln('<li><a href="' + Pfad + 'daniel_2.htm">Daniel 2</a></li>');
	document.writeln('<li><a href="' + Pfad + 'daniel_7.htm">Daniel 7</a></li>');
	document.writeln('<li><a href="' + Pfad + 'daniel_8.htm">Daniel 8</a></li>');
	document.writeln('<li><a href="' + Pfad + 'daniel_9.htm">Daniel 9</a></li>');
	document.writeln('<li><a href="' + Pfad + 'daniel_10.htm">Daniel 10</a></li>');
	document.writeln('<li><a href="' + Pfad + 'daniel_11.htm">Daniel 11</a></li>');
	document.writeln('<li><a href="' + Pfad + 'daniel_12.htm">Daniel 12</a></li>');
	document.writeln('</ol>');
	document.writeln('</div>');

	document.writeln('<div id="MENU3" class="DynMenu" onmouseover="Stop_Timer(3); return false;" onmouseout="Hide(3);">');
	document.writeln('<ol class="SubMenu">');
	document.writeln('<li><a href="' + Pfad + 'offenbarung.htm">Einleitung</a></li>');
	document.writeln('<li><a href="' + Pfad + 'offenbarung_1.htm">Offenbarung 1</a></li>');
	document.writeln('<li><a href="' + Pfad + 'offenbarung_2.htm">Offenbarung 2/3</a></li>');
	document.writeln('<li><a href="' + Pfad + 'offenbarung_4.htm">Offenbarung 4/5</a></li>');
	document.writeln('<li><a href="' + Pfad + 'offenbarung_6.htm">Offenbarung 6</a></li>');
	document.writeln('<li><a href="' + Pfad + 'offenbarung_7.htm">Offenbarung 7</a></li>');
	document.writeln('<li><a href="' + Pfad + 'offenbarung_8.htm">Offenbarung 8/9</a></li>');
	document.writeln('<li><a href="' + Pfad + 'offenbarung_10.htm">Offenbarung 10</a></li>');
	document.writeln('<li><a href="' + Pfad + 'offenbarung_11.htm">Offenbarung 11</a></li>');
	document.writeln('<li><a href="' + Pfad + 'offenbarung_12.htm">Offenbarung 12</a></li>');
	document.writeln('<li><a href="' + Pfad + 'offenbarung_13.htm">Offenbarung 13</a></li>');
	document.writeln('<li><a href="' + Pfad + 'offenbarung_14.htm">Offenbarung 14</a></li>');
	document.writeln('<li><a href="' + Pfad + 'offenbarung_15.htm">Offenbarung15/16</a></li>');
	document.writeln('<li><a href="' + Pfad + 'offenbarung_17.htm">Offenbarung 17</a></li>');
	document.writeln('<li><a href="' + Pfad + 'offenbarung_18.htm">Offenbarung 18</a></li>');
	document.writeln('<li><a href="' + Pfad + 'offenbarung_19.htm">Offenbarung 19</a></li>');
	document.writeln('<li><a href="' + Pfad + 'offenbarung_20.htm">Offenbarung 20</a></li>');
	document.writeln('<li><a href="' + Pfad + 'offenbarung_21.htm">Offenbarung 21</a></li>');
	document.writeln('<li><a href="' + Pfad + 'offenbarung_22.htm">Offenbarung 22</a></li>');
	document.writeln('<li><a href="' + Pfad + 'symbole.htm">Symbole</a></li>');	document.writeln('</ol>');
	document.writeln('</div>');

	document.writeln('<div id="MENU4" class="DynMenu" onmouseover="Stop_Timer(4); return false;" onmouseout="Hide(4);">');
	document.writeln('<ol class="SubMenu">');
	document.writeln('<li><a href="' + Pfad + 'finale.htm">Einleitung</a></li>');
	document.writeln('<li><a href="' + Pfad + 'zehn-gebote.htm">Die 10 Gebote</a></li>');
	document.writeln('<li><a href="' + Pfad + 'religionen.htm">Warum so viele Religionen?</a></li>');
	document.writeln('<li><a href="' + Pfad + 'zeichen.htm">Zeichen der Endzeit</a></li>');
	document.writeln('<li><a href="' + Pfad + 'taeuschung.htm">Die große Täuschung</a></li>');
	document.writeln('<li><a href="' + Pfad + 'maria.htm">Marias Botschaft</a></li>');
	document.writeln('<li><a href="' + Pfad + 'offenbarung_14.htm">Die 3-Engels-Botschaften</a></li>');
	document.writeln('<li><a href="' + Pfad + 'unheilige-dreieinigkeit.htm">Die unheilige Dreieinigkeit</a></li>');
	document.writeln('<li><a href="' + Pfad + 'malzeichen.htm">Das Malzeichen des Tieres</a></li>');
	document.writeln('<li><a href="' + Pfad + 'zungenrede.htm">Die Zungenrede in der Bibel</a></li>');
	document.writeln('<li><a href="' + Pfad + 'spaetregen.htm">Der Spätregen</a></li>');
	document.writeln('<li><a href="' + Pfad + 'die144000.htm">Die 144000 - die Versiegelten</a></li>');
	document.writeln('<li><a href="' + Pfad + 'gericht.htm">Das Gericht Gottes</a></li>');
	document.writeln('<li><a href="' + Pfad + 'jesus_wiederkunft.htm">Die Wiederkunft Jesu Christi</a></li>');
	document.writeln('<li><a href="' + Pfad + 'tausendjaehriges-reich.htm">Das 1000 jährige Reich</a></li>');
	document.writeln('<li><a href="' + Pfad + 'feuersee-hoelle.htm">Der Feuersee - Hölle</a></li>');
	document.writeln('<li><a href="' + Pfad + 'neue-erde.htm">Die neue Erde</a></li>');
	document.writeln('</ol>');
	document.writeln('</div>');
}

function Show(id) {
	window.clearTimeout(Handle[id]);
	Handle[id] = window.setTimeout("Show_Time(" + id + ")", 200);
}


function Show_Time(id) {
        for (i=1; i<=4; i++) {
                if (i != id) { document.getElementById("MENU" + i).style.visibility = "hidden"; }
        }
        if (document.getElementById("MENU" + id).filters) {
                document.getElementById("MENU" + id).filters[0].Apply();
        }
        document.getElementById("MENU" + id).style.zIndex = Z;
        document.getElementById("MENU" + id).style.visibility = "visible";
        if (document.getElementById("MENU" + id).filters) {
                document.getElementById("MENU" + id).filters[0].Play();
        }
        Z++;
        Active++;
}


function Hide(id) {
	window.clearTimeout(Handle[id]);
	Handle[id] = window.setTimeout("Hide_Time(" + id + ")", 100);
}

function Hide_Time(id) {
	document.getElementById("MENU" + id).style.visibility = "hidden";
	Active--;
	if (Active == 0) Z = 0;
}

function Stop_Timer(id) {
	window.clearTimeout(Handle[id])
}

window.onload = function() {
	
	/*
	arr = document.getElementsByTagName("a");
	for (var i=0; i<arr.length; i++){ 
		if(arr[i].className == "link_box") {
			arr[i].onmousemove = function(event) { ShowBox(this, event); return false; };
			arr[i].onmouseout = function(event) { InitialHideBox(); return false; };
		}
	} 
	*/

	arr = document.getElementsByTagName("span");
	for (var i=0; i<arr.length; i++){ 
		if(arr[i].className == "span_box") {
			arr[i].onmousemove = function(event) { ShowBox(this, event); return false; };
			arr[i].onmouseout = function(event) { InitialHideBox(); return false; };
		}
	} 

	// Bibelquiz
	bq_Init();
}

var MousePosX;
var MousePosY;
var LoadText = false;
var Filter;
var MouseOn = false;
var Offset = 0;

function ShowBox(obj, e) {

	MouseOn = true;
	Filter = 100;

	if (!e) var e = window.event;
	if (e.pageX || e.pageY) 	{
		MousePosX = e.pageX;
		MousePosY = e.pageY;
	}
	else {
		MousePosX = e.clientX + document.body.scrollLeft;
		MousePosY = e.clientY + document.body.scrollTop;
	}

	// Per Ajax Bibeltext laden
	if (!LoadText) {
		LoadText = true;

		// Position der Box überprüfen
		if (MousePosX < 310) { Offset = 310 - MousePosX; }
		else { Offset = 0; }

		// Text des Links ermitteln
		var bibeltext = obj.innerHTML;
		bibeltext = bibeltext.replace(/ö/g, "oe");
		bibeltext = bibeltext.replace(/ä/g, "ae");
		bibeltext = bibeltext.replace(/ü/g, "ue");

		document.getElementById("Box_Content").style.textAlign = "center";
		document.getElementById("Box_Content").innerHTML = "<img src=\"grafix/wait.gif\">";
		document.getElementById("Box_Headline").innerHTML = obj.innerHTML;

		// Browser abfragen
		var request = null;

		if (window.XMLHttpRequest)  {
			request = new XMLHttpRequest();			//Safari, Firefox, IE7
		} else if (window.ActiveXObject) {
			try {
				request = new ActiveXObject('Microsoft.XMLHTTP'); // IE 6
			} catch (e) {
				try {
					request = new ActiveXObject('Msxml2.XMLHTTP');  // IE 5
				} catch (e) {}
			}
		}
		if (!request) {
			// alert("Kann keine XMLHTTP-Instanz erzeugen");
			return false;
		} else {
			var url = "http://www.dasgeheimnis.de/web/bibel.php?bibeltext=" + bibeltext.toLowerCase();
			request.open("GET", url, true);
			request.onreadystatechange = function () {
				if (request.readyState == 4) {
					if (request.status == 200) { 
						document.getElementById("Box_Content").style.textAlign = "left";
						document.getElementById("Box_Content").innerHTML = request.responseText ;
					} 
					else { }
				}
			}
			request.send(null); 
		}
	}

	document.getElementById("Box").style.left = MousePosX - 300 + Offset + "px";
	document.getElementById("Box").style.top = MousePosY + 30 + "px";
	document.getElementById("Box").style.visibility = "visible";
	return false;
}

function InitialHideBox() {
	LoadText = false;
	MouseOn = false;
	obj = document.getElementById("Box");
	if (obj.filters) window.setTimeout(FadeOutBox, 100); 
	else if (obj.style.MozOpacity) window.setTimeout(FadeOutBox, 100); 
	else Hidebox();
	return false;
}

function FadeOutBox() {
	obj = document.getElementById("Box");

	if (MouseOn) {
		if (obj.filters) { obj.style.filter = "alpha(opacity=100)";	}
		if (obj.style.MozOpacity) { obj.style.MozOpacity = 1;	}
	} else {
		Filter -= 15;
		if (obj.filters) { obj.style.filter = "alpha(opacity=" + Filter + ")";	}
		if (obj.style.MozOpacity) { obj.style.MozOpacity = Filter / 100;	}
		if (Filter <= 0) { HideBox();	}
		else { setTimeout(FadeOutBox, 50); }
	}
	return false;
}

function HideBox() {
	document.getElementById("Box").style.visibility = "hidden";
	if (obj.filters) { obj.style.filter = "alpha(opacity=100)";	}
	if (obj.style.MozOpacity) { obj.style.MozOpacity = 1;	}
	return false;
}









// Bibelquiz

bq_Fragen = "";
bq_Frage_Lfn = 0;
bq_MouseActive = false;
var bq_JokerActive;
var bq_JokerUsed;
var bq_JokerInactiveAnswers;

BQ_COLOR_NORMAL = "#F6F0D0";
BQ_COLOR_RIGHT = "#A8FFA8";
BQ_COLOR_WRONG = "#FF8375";
BQ_COLOR_HIGHLIGHT = "#F0F0F0";
BQ_COLOR_INAKTIV = "#F0F0F0";
BQ_COLOR_INAKTIV_DARK = "#E0E0E0";
BQ_COLOR_AKTIV = "#A8FFA8";
BQ_COLOR_JOKER = "#FFFFFF";

BQ_CELL1_COLOR = "#FCF9ED";
BQ_CELL2_COLOR = "#FBF8EA";
BQ_CELL3_COLOR = "#FBF7E7";
BQ_CELL4_COLOR = "#FBF6E5";
BQ_CELL5_COLOR = "#FBF5E2";
BQ_CELL6_COLOR = "#FBF5DF";
BQ_CELL7_COLOR = "#FAF4DC";
BQ_CELL8_COLOR = "#FAF3D9";
BQ_CELL9_COLOR = "#FAF2D6";
BQ_CELL10_COLOR = "#FAF2D4";
BQ_CELL11_COLOR = "#FAF1D1";
BQ_CELL12_COLOR = "#F9F0CE";
BQ_CELL13_COLOR = "#F9EFCB";
BQ_CELL14_COLOR = "#F9EEC8";
BQ_CELL15_COLOR = "#F9EEC5";

BQ_HTML_WAIT = "<img src=\"grafix/wait.gif\">";

BQ_TEXT_FINAL = "<b>Herzlichen Glückwunsch!</b><br><br>Sie sind ein wahrer Bibelkenner.<br>Noch eine Runde gefällig?";
BQ_TEXT_ERROR = "<b>Leider falsch!</b><br><br>Noch eine Runde gefällig?";
BQ_BUTTON_NEXT = "<a href=\"#\" onclick=\"bq_SetQuestion();\"><img src=\"grafix/btn_weiter.gif\" width=\"98\" height=\"16\" border=\"0\"></a>";
BQ_BUTTON_NEW = "<a href=\"#\" onclick=\"bq_Init();\"><img src=\"grafix/btn_neue_runde.gif\" width=\"98\" height=\"16\" border=\"0\"></a>";

BQ_URL1 = "<a href=\"";
BQ_URL2 = "\" target=\"_blank\"><img src=\"grafix/buch.jpg\"  width=\"24\" height=\"18\" border=\"0\"></a>";

var request = null;


function bq_Init() {
	if (document.getElementById("bq_Question")) {
	
		// Joker Bild vorladen
		img = new Image();
		img.src="grafix/joker1.gif";
	
		bq_Frage_Lfn = 0;
		bq_MouseActive = false;
		bq_JokerActive = false;
		bq_JokerUsed = false;
		bq_JokerInactiveAnswers = 0;
		
		for (i=1; i<=15; i++) {
			document.getElementById("bq_Cell" + i).style.backgroundColor = eval("BQ_CELL" + i  + "_COLOR");
		}

		document.getElementsByName("bq_ImgJoker")[0].src="grafix/joker.gif";
		document.getElementById("bq_Button").innerHTML = BQ_BUTTON_NEXT; 

		arr = document.getElementsByTagName("td");
		for (var i=0; i<arr.length; i++){ 
			if (arr[i].id.indexOf("bq_Answer") == 0) {
				arr[i].onmouseover = function(event) { if (bq_MouseActive) bq_MouseOver(this); return false; }
				arr[i].onmouseout =  function(event) { if (bq_MouseActive) bq_MouseOut(this); return false; }
				arr[i].onmousedown = function(event) { if (bq_MouseActive) bq_MouseDown(this); return false; }
			}
		}
		bq_CloseMessage();
		bq_LoadQuestions();
	}

}

function bq_MouseOver(obj) {
	index = parseInt(obj.id.substring(9));
	b = false;
	if (bq_JokerActive) {
		if ((bq_JokerInactiveAnswers & Math.pow(2, index))  == 0) b = true; 
	} else b = true;

	if (b) {
		obj.style.backgroundColor = BQ_COLOR_HIGHLIGHT;
		obj.style.cursor = "pointer";
	}
}

function bq_MouseOut(obj) {
	index = parseInt(obj.id.substring(9));
	b = false;
	if (bq_JokerActive) {
		if ((bq_JokerInactiveAnswers & Math.pow(2, index))  == 0) b = true;
	} else b = true;
	
	if (b) {
		obj.style.backgroundColor = BQ_COLOR_NORMAL;
	}
}

function bq_MouseDown(obj) {
	index = parseInt(obj.id.substring(9));
	b = false;
	if (bq_JokerActive) {
		if ((bq_JokerInactiveAnswers & Math.pow(2, index))  == 0) b = true;
	} else b = true;

	if (b) {
		bq_JokerActive = false;
		bq_MouseActive = false;
		if (index == bq_Antwort_Richtig) {
			// Richtige Antwort
			obj.style.backgroundColor = BQ_COLOR_RIGHT;
			if (bq_Frage_Lfn == 15) {
				document.getElementById("bq_Button").innerHTML = BQ_BUTTON_NEW; 
				document.getElementById("bq_Message_Layer_Text").innerHTML = BQ_TEXT_FINAL;
				document.getElementById("bq_Message_Layer").style.visibility = "visible";
				document.getElementById("bq_Message_Layer1").style.visibility = "visible";
			}
		} else {
			// Falsche Antwort
			obj.style.backgroundColor = BQ_COLOR_WRONG;
			document.getElementById("bq_Answer" + bq_Antwort_Richtig).style.backgroundColor = BQ_COLOR_RIGHT;
			document.getElementById("bq_Message_Layer_Text").innerHTML = BQ_TEXT_ERROR;
			document.getElementById("bq_Message_Layer").style.visibility = "visible";
			document.getElementById("bq_Message_Layer1").style.visibility = "visible";
			document.getElementById("bq_Button").innerHTML = BQ_BUTTON_NEW; 
		}
		document.getElementById("bq_Message").style.visibility = "visible";
	}
}


function bq_LoadQuestions() {
		
	if (window.XMLHttpRequest)  {
		request = new XMLHttpRequest();			//Safari, Firefox, IE7
	} else if (window.ActiveXObject) {
		try {
			request = new ActiveXObject('Microsoft.XMLHTTP'); // IE 6
		} catch (e) {
			try {
				request = new ActiveXObject('Msxml2.XMLHTTP');  // IE 5
			} catch (e) {}
		}
	}
	if (!request) {
		alert("Leider ist Ihr Browser zu alt. Um das Bibelquiz starten zu können, benötigen Sie den Internet Explorer 6 oder 7 oder den Firefox");
		return false;
	} else {
		
		// HTTP-Request existiert, daher können Fragen geladen werden

		document.getElementById("bq_Question").childNodes[0].innerHTML = BQ_HTML_WAIT ;
		document.getElementById("bq_Answer1").childNodes[0].innerHTML = "";
		document.getElementById("bq_Answer2").childNodes[0].innerHTML = "";
		document.getElementById("bq_Answer3").childNodes[0].innerHTML = "";
		document.getElementById("bq_Answer4").childNodes[0].innerHTML = "";

		var url = "http://www.dasgeheimnis.de/web/bibelquiz_service_v1.1.php";
		request.open("POST", url, true);
		request.onreadystatechange = function () {
			if (request.readyState == 4) {
				window.clearTimeout(id);
				if (request.status == 200) { 
					xmlDoc = request.responseXML;
					bq_SetQuestion();
					
				} 
			}
		}
		id = window.setTimeout(Abort, 6000);
		request.send(null); 
	}
		
		
		

}

function Abort() {
	request.abort();
	bq_LoadQuestions();
}

function bq_SetQuestion() {

	if (bq_Frage_Lfn > 0) {
		if (bq_Frage_Lfn % 5 == 0) {
			document.getElementById("bq_Cell" + (16 - bq_Frage_Lfn)).style.backgroundColor = BQ_COLOR_INAKTIV_DARK;
		} else {
			document.getElementById("bq_Cell" + (16 - bq_Frage_Lfn)).style.backgroundColor = BQ_COLOR_INAKTIV;
		}
	}

	bq_Frage_Lfn++;	

	document.getElementById("bq_Lfn").innerHTML = bq_Frage_Lfn;
	document.getElementById("bq_Cell" + (16 - bq_Frage_Lfn)).style.backgroundColor = BQ_COLOR_AKTIV;
	document.getElementById("bq_Message").style.visibility = "hidden";
	document.getElementById("bq_Answer1").style.backgroundColor = BQ_COLOR_NORMAL;
	document.getElementById("bq_Answer2").style.backgroundColor = BQ_COLOR_NORMAL;
	document.getElementById("bq_Answer3").style.backgroundColor = BQ_COLOR_NORMAL;
	document.getElementById("bq_Answer4").style.backgroundColor = BQ_COLOR_NORMAL;

	document.getElementById("bq_Question").childNodes[0].innerHTML = xmlDoc.getElementsByTagName("frage")[bq_Frage_Lfn-1].firstChild.nodeValue;
	document.getElementById("bq_Answer1").childNodes[0].innerHTML = xmlDoc.getElementsByTagName("antwort1")[bq_Frage_Lfn-1].firstChild.nodeValue;
	document.getElementById("bq_Answer2").childNodes[0].innerHTML = xmlDoc.getElementsByTagName("antwort2")[bq_Frage_Lfn-1].firstChild.nodeValue;
	document.getElementById("bq_Answer3").childNodes[0].innerHTML = xmlDoc.getElementsByTagName("antwort3")[bq_Frage_Lfn-1].firstChild.nodeValue;
	document.getElementById("bq_Answer4").childNodes[0].innerHTML = xmlDoc.getElementsByTagName("antwort4")[bq_Frage_Lfn-1].firstChild.nodeValue;
	document.getElementById("bq_Nickname").innerHTML = xmlDoc.getElementsByTagName("nickname")[bq_Frage_Lfn-1].firstChild.nodeValue;
	document.getElementById("bq_Vers").innerHTML = xmlDoc.getElementsByTagName("bibelvers")[bq_Frage_Lfn-1].firstChild.nodeValue;
	document.getElementById("bq_URL").innerHTML = BQ_URL1 + xmlDoc.getElementsByTagName("bibelurl")[bq_Frage_Lfn-1].firstChild.nodeValue + BQ_URL2;
	bq_Antwort_Richtig = parseInt(xmlDoc.getElementsByTagName("antwort_richtig")[bq_Frage_Lfn-1].firstChild.nodeValue);
	bq_MouseActive = true; 
	
	
}



function bq_CloseMessage() {
	document.getElementById("bq_Message_Layer").style.visibility = "hidden";
	document.getElementById("bq_Message_Layer1").style.visibility = "hidden";
}

function bq_Joker() {
	if ((bq_MouseActive) && (!bq_JokerUsed)) {
		bq_JokerUsed = true;
		bq_JokerActive = true;
		
		document.getElementsByName("bq_ImgJoker")[0].src="grafix/joker1.gif";
		
		// 2 falsche Antworten deaktivieren
		i = 0;
		while (i<2) {
			bq_Zufall = Math.floor(Math.random()*4) + 1;
			if ((bq_Zufall != bq_Antwort_Richtig) & (Math.pow(2, bq_Zufall) != bq_JokerInactiveAnswers)) {
				i++;
				bq_JokerInactiveAnswers += Math.pow(2, bq_Zufall);
				document.getElementById("bq_Answer" + bq_Zufall).style.backgroundColor = BQ_COLOR_JOKER;
			}
		}
	}
}

















