<!--
	var DEBUG			= true;
	try {
		// onload
		window.onload = function () {
				Console.bindObject('console');
				EventRegistry.addEvent('keydown', 220, 'Console.toggle()');
	}

	function showElement(id)
	{
		document.getElementById(id).style.display = 'block';
	}

	function hideElement(id)
	{
		document.getElementById(id).style.display = 'none';
	}

	function start()
	{
		hideElement('loading');
		hideElement('index');
		showElement('layer1');
	}

	function index()
	{
		hideElement('loading');
		hideElement('layer1');
		showElement('index');
	}

	function loading()
	{
		hideElement('layer1');
		hideElement('index');
		showElement('loading');
	}

	}
	catch (e) {
		if (DEBUG) alert('Ausnahme: '+e);
	}

	function ImageOn(id)
	{
		var source = document.getElementById(id).src;
		source = source.replace(/_off/g, "_on")
		source = source.replace(/_active/g, "_on")
		document.getElementById(id).src = source;
	}

	function ImageOff(id)
	{
		var source = document.getElementById(id).src;
		source = source.replace(/_on/g, "_off")
		source = source.replace(/_active/g, "_off")
		document.getElementById(id).src = source;
	}

	function ImageActive(id)
	{
		var source = document.getElementById(id).src;
		source = source.replace(/_off/g, "_active")
		source = source.replace(/_an/g, "_active")
		document.getElementById(id).src = source;
	}


//-->