
var ns4 = (document.layers)? true:false;
var ns6 = (document.getElementById)? true:false;
var ie4 = (document.all)? true:false;
var ie5 = false;
     
// Microsoft Stupidity Check(tm).
if (ie4) {
   	//if ((navigator.userAgent.indexOf('MSIE 5') > 0) || (navigator.userAgent.indexOf('MSIE 6') > 0)) {
	//print() erst ab IE5
	if (window.print) {
     		ie5 = true;
     	}
     	if (ns6) {
     		ns6 = false;
     	}
}

function Hide_Layer(mylayer) {
	if (ns4) {
		document.layers[mylayer].visibility = "hide";
	}
	else {
		MLayer = document.getElementById(mylayer);
		MLayer.style.visibility = "hidden";
	}
}

function Show_Layer(mylayer) {
	if (ns4) {
		document.layers[mylayer].visibility = "show";
	}
	else {
		MLayer = document.getElementById(mylayer);
		setTimeout("MLayer.style.visibility = 'visible'", 250);
		//MLayer.style.visibility = "visible";
	}
}

//Falls generelle Artikel ohne Frame geladen werden
function ChangeLocation(){
    if(self.location.protocol=="http:") {
	      var SplitNames = location.pathname.split("/");
		  var FileName = SplitNames[2];
		  parent.location.href = "http://www.mormonismus-online.de/index.php?inc="+FileName+"";
		  //parent.location.href = "/mormdev/index.php?inc="+FileName+"";
	}	  
}



//Generelle Artikel
function CheckLocation() {
	if(top.frames.length<=1) {
	ChangeLocation();
	}
	else ChangeLocation();
	}


function DisplayStatusDefaultMsg() {
	window.status="Mormonismus zwischen Wahrheit und Wirklichkeit";
}




var TdBackColor="#FFFACD";
var LastTdBackColor;

function MarkTd(td,tdCol) {
		LastTdBackColor = document.getElementById(td).bgColor;	
		if (!tdCol) document.getElementById(td).bgColor = TdBackColor;
		else document.getElementById(td).bgColor = tdCol;
}

function UnMarkTd(td) {
		 document.getElementById(td).bgColor = LastTdBackColor;
} 