// BROWSERERKENNUNG
var thisBrowser;
var appAgent;
var appVersion;

function checkBrowser() {
	appAgent = navigator.userAgent.toLowerCase();
	appVersion = navigator.appVersion.substr(0,1);
	//alert (appAgent);
	//ACHTUNG: REIHENFOLGE DER AUFLISTUNG DER BROWSER IST SO ZWINGEND! (Opera und Netscape mŸssen am ende stehen)
	if (appAgent.indexOf("msie") != -1 && appVersion < 4) thisBrowser =  "ie3-";
	if (appAgent.indexOf("msie") != -1 && appVersion >= 4) thisBrowser = "ie4+";
	if (appAgent.indexOf("mozilla") != -1 && appVersion >= 4 && appAgent.indexOf("msie") == -1 ) thisBrowser = "moz4+";
	if (appAgent.indexOf("netscape") != -1 && appVersion >= 5) thisBrowser = "ns5+";
	if (appAgent.indexOf("opera") != -1 && appVersion >= 9) thisBrowser = "op9+";
	//alert(thisBrowser);
}
checkBrowser();
//alert (thisBrowser);


//*******************************************************************************************************************************************************
// MENSCHEN STATEMENTS

var act_opz = 0;
var last_id = "";
var f_id = 0;

function show_Statement(txt,name,id) {
	if (f_id != id) act_opz = 0;
	f_txt = txt;
	f_name = name;
	f_id = id;
	
	//alert(document.getElementById('img_'+i).style.filter.alpha.opacity);
	
	for (i = 1; i <= 10; i++) {
		imgbox = document.getElementById('img_'+i).style;
		if (i == id) {
			if (act_opz < 99) {
				act_opz += 2;
				imgbox.visibility = "visible";
				
				if (thisBrowser == "ie3-") {
					imgbox.filters.alpha.opacity = act_opz;
				} else if (thisBrowser == "ie4+") {
					imgbox.filter='alpha(opacity="'+act_opz+'")';
				} else if (thisBrowser == "ns5+") {
					imgbox.MozOpacity = act_opz / 100;
				} else if (thisBrowser == "moz4+" || thisBrowser == "op9+") {
					imgbox.opacity = act_opz / 100;
				} else {
					imgbox.opacity = act_opz / 100;
				}
				
				fade = window.setTimeout("show_Statement(f_txt,f_name,f_id)",20);
			} else {
				window.clearTimeout(fade);
				statementbox = document.getElementById('Statement');
				statementbox.innerHTML = '<div style="font-size: 1.2em; font-style: italic; line-height: 1.4em; margin-bottom:20px;">'+txt+'</div><div style="">'+name+'</div>';
			}
		} else {
			if (thisBrowser == "ie3-") {
					imgbox.filters.alpha.opacity = 0;
			} else if (thisBrowser == "ie4+") {
					imgbox.filter='alpha(opacity="'+0+'")';
			} else if (thisBrowser == "ns5+") {
					imgbox.MozOpacity = 0;
			} else if (thisBrowser == "moz4+" || thisBrowser == "op9+") {
				if (imgbox.opacity > 0) {
					imgbox.opacity -= .02;
				}
			} else {
				if (imgbox.opacity > 0) {
					imgbox.opacity -= .02;
				}
			}
		}
	}

	
}


//*******************************************************************************************************************************************************


