var cPath = (window.getRelativeWebRoot ? window.getRelativeWebRoot() : '') + 'js/';
document.write ('<SCR' + 'IPT LANGUAGE="JavaScript1.2" SRC="'+ cPath +'Lib/BPage.js" TYPE="text/javascript"><\/SCR' + 'IPT>');

var cLocation = window.location + '';
if (cLocation.match (/\/www\//)) {
	WEBROOT = '/www/';
	CONFIG['General']['WebRoot']='www/';
}


var cLastIsland = '';
function moIsland (cIsland, cStatus) {
	if (!cStatus) cStatus = '';
	if (!cIsland) cIsland = '00';
	if (cLastIsland > '' && cLastIsland != cIsland) {
		var oPfeil = getDocumentImage ('pf' + cLastIsland);
		if (oPfeil) oPfeil.src = oPfeil.src.replace ('_1.gif', '.gif');
	}
	var oIsland = getDocumentImage ('IslandMap');
	if (oIsland) {
		var cSrc = oIsland.src;
		var cSrc = cSrc.substr(0, cSrc.length - 6) + cIsland + '.gif';
		oIsland.src = cSrc;

		if (cIsland != '00') {
			var oPfeil = getDocumentImage ('pf' + cIsland);
			if (oPfeil) oPfeil.src = oPfeil.src.replace ('.gif', '_1.gif');
			else alert ('image ' + 'pf' + cIsland  + ' not found!');
			cLastIsland = cIsland;
		}
	}
	window.status = cStatus;
	return (true);
}


var bFileCardVisible = false;
function FileCard (bShow) {
	if (FileCard.arguments.length ==0) bShow = !bFileCardVisible;
	var oL = getLayer ('FileCard');
	if (oL) oL.set ('visibility', bShow);
	bFileCardVisible = bShow;
}

