
var n4, ie, w3c;

function init(){
        n4 = document.layers;
        ie = document.all;
        w3c = document.documentElement;
}

init();

function showinhalt(){
        if(ie){
          document.all.inhalt.style.visibility = 'visible';
        }
        else if(w3c){
          document.getElementById('inhalt').style.visibility = 'visible';
        }
        else{
          alert('Diese Seite ist mit ihren Browser nicht kompatibel');
        }
}

function hideladen(){
        if(ie){
          document.all.laden.style.visibility = 'hidden';
        }
        else if(w3c){
          document.getElementById('laden').style.visibility = 'hidden';
        }
        else{
          alert('Diese Seite ist mit ihren Browser nicht kompatibel');
        }
}

function setPointer(theRow, thePointerColor){

    if (thePointerColor == '' || typeof(theRow.style) == 'undefined') {
        return false;
    }
    if (typeof(document.getElementsByTagName) != 'undefined') {
        var theCells = theRow.getElementsByTagName('td');
    }
    else if (typeof(theRow.cells) != 'undefined') {
        var theCells = theRow.cells;
    }
    else {
        return false;
    }
    var rowCellsCnt  = theCells.length;
    for (var c = 0; c < rowCellsCnt; c++) {
        theCells[c].style.backgroundColor = thePointerColor;
    }
    return true;
}

ie5=(document.getElementById&&document.all&&document.styleSheets)?1:0;

if(ie5) {

	document.write(
		"<div style='position:absolute;top:-500;left:0;z-index:100' id='alert'>"+
		"<form name='alertform'>"+
		"<table style='border-style:outset;border-width:2;border-color:#E6E6CD;background-color:#F5F5DC' cellpadding='5' cellspacing='2' width='340' height='230'>"+
			"<tr><td height='30' align='center' bgcolor='#DEDEC5'>"+
				"<input type='text' name='titleelement' size='35' style='border-width:0;background-color:#DEDEC5;font-weight:bold;text-align:center' onfocus='if(this.blur)this.blur()'>"+
			"</td></tr>"+
			"<tr><td align='center'>"+
				"<textarea name='textelement' rows='10' cols='52' style='border-width:0;background-color:#F5F5DC;font-family:verdana,arial;font-size:80%;scrollbar-track-color:#F5F5DC;scrollbar-face-color:#F5F5DC;scrollbar-highlight-color:#C8C8B2;scrollbar-3dlight-color:#F5F5DC;scrollbar-darkshadow-color:#F5F5DC;scrollbar-shadow-color:#C8C8B2;scrollbar-arrow-color:#000000;overflow:auto' readonly></textarea>"+
			"</td></tr>"+
			"<tr><td height='50' align='center'>"+
				"<input style='background-color:#E9E9CF;border-width:1;font-weight:bold' type='button' value='&nbsp;&nbsp;&nbsp;&nbsp;OK&nbsp;&nbsp;&nbsp;&nbsp;' onclick='hideAlert()' onfocus='if(this.blur)this.blur()'>"+
			"</td></tr>"+
		"</table>"+
		"</form>"+
		"</div>"
	);

}

function showAlert(title,text) {

	if(ie5) {
		document.getElementById("alert").style.left=document.body.clientWidth/2-170+document.body.scrollLeft;
		document.getElementById("alert").style.top=document.body.clientHeight/2-115+document.body.scrollTop;
		document.alertform.titleelement.value=title;
		document.alertform.textelement.value=text;

	}else alert(title+"\n\n"+text);
}

function hideAlert() {
	document.getElementById("alert").style.top=-500;
}

function ShowPic(url) {
window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=550,height=400,screenX=150,screenY=150,top=150,left=150')
}