function em( m ) {
document.write( m + "@" + "ttvlueftelberg.de" );
}

function locationReplacePathname( theLocation, newPathName ) {
	
	newUrl = 
		theLocation.protocol +
		"//" +
		theLocation.host + 
		newPathName;

	return newUrl;
}

function checkChildFrame() {
	if ( !parent.isTTVIndex ) {
		if ( false && location.protocol == "file:" ) {
			// allow frameless view of subfiles on local system
			return;
		}
		else {
			hostname = location.hostname;
			if ( hostname == "www.gslweb.de" || hostname == "gslweb.de" ) {
				newPathName = "/ttvlueftelberg";
			}
			else {	// one of:
				// www.ttvlueftelberg.gslweb.de
				// ttvlueftelberg.gslweb.de
				// www.ttvlueftelberg.de
				// ttvlueftelberg.de
				newPathName = "/";
			}
		}

		newUrl = locationReplacePathname( location, newPathName );

		lp = location.pathname;
		alert( "lp=" + lp );
		fn = getFileName( lp );
		alert( "fn=" + fn );
		bn = getBaseName( fn );
		alert( "bn=" + bn );

		newUrl += "#" + getBaseName( getFileName( location.pathname ) );
		
		window.alert( "changing to url: " + newUrl );
		window.location.replace( newUrl );
	}
	else {
		document.writeln( "... site currently under maintenance ... but carry on." );
	}
}


