function onLoad( aSubtitle, aActiveNavbar)
{
	// nur wenn das Übergeordnette Fenster die erwarteten Childfenster hat
	if( parent.topRight && parent.navFrm ) {
		parent.document.title = document.title;
		subtitel = parent.topRight.document.getElementById( "subtitle" );
		if( subtitel != null ) {
			subtitel.firstChild.nodeValue = aSubtitle;
		}
		else {
			maintitel = parent.topRight.document.getElementById( "maintitle" );
			if( maintitel != null ) {
				maintitel.firstChild.nodeValue = "Flying Devils: "+aSubtitle;
			}
		}
		var navbarElements = parent.navFrm.document.getElementsByTagName("a");
		for( i=0; i<navbarElements.length; ++i )
		{
			if( navbarElements[i].id == aActiveNavbar )
			{
				navbarElements[i].className = "NavigatorActive";
			}
			else
			{
				navbarElements[i].className = "NavigatorNormal";
			}
		}
	}
	//parent.navFrm.document.getElementById( "navFordnung" ).className = "NavigatorActive";
}

var pictureWindow;
function showPicture( theUrl )
{
	if( pictureWindow == null ) {
		pictureWindow = window.open( theUrl, "bigpicture", "width=1024,height=768,left=0,top=0,resizable=yes,scrollbars=yes");
	}
	else if( pictureWindow.closed ) {
		pictureWindow = window.open( theUrl, "bigpicture", "resizable=yes,scrollbars=yes");
	}
	else{
		pictureWindow.location.href = theUrl;
	}
	pictureWindow.focus();
	
}


