/* Inhalt *
Redirect-Ersatz mit lade_Frameset
Redirect (Book)
*/

//folgender Befehl erspart das Kommando redirect von der Seite aus:
if (!document.getElementById("noframe") && parent.location.href.toLowerCase().indexOf("index") < 0) lade_frameset();

function lade_frameset()
{
	// Seite wurde über Subdomain bzw. Domain/Ordner/Seite aufgerufen:
	Basis = (document.location.host.toUpperCase().indexOf("FENIZ.") >= 0) ? "http://www.vexilli.net/FENIZ/" : "";
	// Seite wurde über Subdomain/Seite aufgerufen
	document.location.replace(Basis + "index_online.html#" + Basis + document.location.pathname.substr(1).replace(/%20/, " "));
}

function RedirectBook( sId )
{
	str=document.location.hash,idx=str.indexOf('#');
	if(idx>=0) str=str.substr(1); // da hash das # immer enthaelt, muss es weg
	if( window.name != "m" && ( sId != str) )
	{
		window.location.replace("index_welcome.html#"+sId);
		return 1;
	}
	return 0;
}
