	
	var lzname=(navigator.appName.indexOf('Explorer') > -1) ? 'Favoriten' : 'Lesezeichen';
var flashVersion = 0;

function openWindow(page, width, height) {
	if (!width) width = 640;
	if (!height) height = 480;
	var weiter = window.open(page,"","width=" + width + ",height=" + height + ",resizable=yes,scrollbars=no,toolbar=no,status=no,directories=no,menubar=no,location=no");
	weiter.resizeTo(width, height);
	weiter.focus();
}


function lesezeichen() {
    ie = (navigator.appName.indexOf('Explorer') > -1);
    ver = parseInt(navigator.appVersion);
    mac = navigator.appVersion.indexOf('Mac') > -1;
    if (ie && ver >= 4 && !mac) { // IE 4+ !Mac
		window.external.AddFavorite(self.location,document.title); // Favoritenfenster oeffnen
	} else {
		if (!ie && ver<5) { // NS 4-; alter NS legt sonst Bookmark fuer Bild an; 1.1
		   alert('Druecken Sie '+((mac) ? 'Apfel' : 'Strg')+'-D, um ein Lesezeichen fuer diese Seite anzulegen.');
		} else { // NS 4+, IE 3- Win, IE !Win
		   lzeichen = ((ie) ? 'Favoriten' : 'Lesezeichen');
		   alert(lzeichen+' anlegen: Ziehen Sie dieses Symbol in Ihre '+lzeichen+'-Leiste.');
		}
	}
	return false;
}


function drucken() {
	mac = (navigator.appVersion.indexOf('Mac') > -1);
	kanndrucken = (!mac  ? true : (navigator.appName.indexOf("Microsoft") >= 0 ? false : true));

	if (kanndrucken) {
		meldung = 'Um diese Seite auszudrucken, klicken Sie bitte hier.';
	} else {
		meldung = 'Bitte drücken Sie '+((mac) ? 'Apfel-' : 'Strg+')+'P, um diese Seite auszudrucken.';
	}
	if (kanndrucken) {
		self.print();
	} else {
		alert(meldung);
	}
}


function getFlashVersion()
{
	var agent = navigator.userAgent.toLowerCase();
	if (agent.indexOf("mozilla/3") != -1 && agent.indexOf("msie") == -1)
	{
		flashVersion = 0;
	}
	if (navigator.plugins != null && navigator.plugins.length > 0)
	{
		var flashPlugin = navigator.plugins['Shockwave Flash'];
		if (typeof flashPlugin == 'object')
		{
			if (flashPlugin.description.indexOf('7.') != -1) flashVersion = 7;
			else if (flashPlugin.description.indexOf('6.') != -1) flashVersion = 6;
			else if (flashPlugin.description.indexOf('5.') != -1) flashVersion = 5;
			else if (flashPlugin.description.indexOf('4.') != -1) flashVersion = 4;
			else if (flashPlugin.description.indexOf('3.') != -1) flashVersion = 3;
		}
	}
	else if (agent.indexOf("msie") != -1 && parseInt(navigator.appVersion) >= 4 && agent.indexOf("win")!=-1 && agent.indexOf("16bit")==-1)
	{
		document.write('<scr' + 'ipt language="VBScript"\> \n');
		document.write('on error resume next \n');
		document.write('dim obFlash \n');
		document.write('set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.7") \n');
		document.write('if IsObject(obFlash) then \n');
		document.write('flashVersion = 7 \n');
		document.write('else set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.6") end if \n');
		document.write('if flashVersion < 7 and IsObject(obFlash) then \n');
		document.write('flashVersion = 6 \n');
		document.write('else set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.5") end if \n');
		document.write('if flashVersion < 6 and IsObject(obFlash) then \n');
		document.write('flashVersion = 5 \n');
		document.write('else set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.4") end if \n');
		document.write('if flashVersion < 5 and IsObject(obFlash) then \n');
		document.write('flashVersion = 4 \n');
		document.write('else set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.3") end if \n');
		document.write('if flashVersion < 4 and IsObject(obFlash) then \n');
		document.write('flashVersion = 3 \n');
		document.write('end if');
		document.write('</scr' + 'ipt\> \n');
	}
	else if (agent.indexOf("webtv/2.5") != -1) flashVersion = 3;
	else if (agent.indexOf("webtv") != -1) flashVersion = 2;
	else
	{
		 flashVersion = flashVersion_DONTKNOW;
	}
	return flashVersion;
}


function mw_swaplink(internurl,externurl)
{
	document.location.href=internurl;
	window.open(externurl);
}


function openSatellite() {

	var satPage        = openSatellite.arguments[0];
	var satTitle       = openSatellite.arguments[1];
	var breite         = openSatellite.arguments[2];
	var hoehe          = openSatellite.arguments[3];
	var enablePrinting = openSatellite.arguments[4];
	var showTopFrame   = openSatellite.arguments[5];
	var showVUFrames   = (typeof openSatellite.arguments[6] != "undefined" && openSatellite.arguments[6] == false) ? false : true;
	
	var eigenschaft, sbreite, shoehe, fenster, satURL, satPrint, satTopFrame;

	// stellt die Bildschirmabmessungen fest
	var ns6 = (!document.all && document.getElementById);
	var ns4 = (document.layers);
	var ie4 = (document.all);

	if( ns6 || ns4 ) {
		sbreite = innerWidth;
		shoehe = innerHeight;
	}
	else if( ie4 ) {
		sbreite = document.body.clientWidth;
		shoehe = document.body.clientHeight;
	}
	else {
		sbreite = 800;
		shoehe  = 600;
	}

	x = Math.floor((sbreite - breite) / 2);
	y = Math.floor((shoehe - hoehe) / 2);

	eigenschaften="left="+x+",top="+y+",screenX="+x+",screenY="+y+",width="+breite+",height="+hoehe+",menubar=no,toolbar=no";

	satPrint = (enablePrinting) ? "1" : "0";
	satTopFrame = (showTopFrame) ? "1" : "0";

	// Anzeige ohne VU-Frames
	if (!showVUFrames) {
		// externer Link
		if (satPage.indexOf("http://") > -1 || satPage.indexOf("https://") > -1) {
			satURL = satPage;
		}
		// interner Link
		else { 
			satURL = "ContentServer?pagename="+satPage;
		}
	}
	// Anzeige mit VU-Frames
	else {
		satURL = "ContentServer?pagename=VU/OEV-Master/Page/SatelliteFS" + "&satTitle=" + escape(satTitle) + "&satPrint=" + satPrint + "&satTopFrame=" + satTopFrame + "&satPage=" + escape(satPage);
	}

	// Titel umformatieren als Fensternamen
	var re = new RegExp("[^a-zA-Z0-9\-_]", "g");
	windowName = satTitle.replace(re, "");

	satWin = window.open(satURL,windowName,eigenschaften);
	satWin.focus();
}












