/////////////////////////////////////////////////////////////////////////////////
// flash-inhalt für den ie ohne active-x meldung anzeigen
function flash(src, movie, width, height, quality, menu, bgcolor)
{
    document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"" +width+ "\" height=\"" +height+ "\" id=\"" +movie+ "\">");
    document.write("<param name=\"movie\" value=\"" +src+ "\" />");
    document.write("<param name=\"quality\" value=\"" +quality+ "\" />");
    document.write("<param name=\"menu\" value=\"" +menu+ "\" />");
    document.write("<param name=\"bgcolor\" value=\"" +bgcolor+ "\" />");
    document.write("<embed src=\"" +src+ "\" swLiveConnect=\"true\" menu=\"" +menu+ "\" quality=\"" +quality+ "\" bgcolor=\"" +bgcolor+ "\" width=\"" +width+ "\" height=\"" +height+ "\" name=\"" +movie+ "\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
    document.write("</object>");
}


/////////////////////////////////////////////////////////////////////////////////
// vollbildschirm-fenster öffnen
function fullscreenPopup ( url ) {
	var w = window.screen.availWidth;
	var h = window.screen.availHeight;
	if (navigator.userAgent.indexOf("MSIE") > -1) {
		w -= 9;
		h -= 31;
	} else {
		w -= 8;
		h -= 29;
	}
	fullscreenWin = window.open(url + "",'maxwin','toolbar=0,menubar=0,location=0,directories=0,status=0,resizable=1,scrollbars=0,top=0,left=0,width='+ w +',height=' + h );
	//fullscreenWin = window.open(url + "",'maxwin','toolbar=0,menubar=1,location=1,directories=0,status=0,resizable=1,scrollbars=0,top=0,left=0,width='+ w +',height=' + h );
}

/////////////////////////////////////////////////////////////////////////////////
// Fullsize öffnen
function fullscreen ( url ) {
	fullscreenWin = window.open(url + "",'fullsize','fullscreen=1,toolbar=0,menubar=0,location=0,directories=0,status=0,resizable=0,scrollbars=0,top=0,left=0' );
}

/////////////////////////////////////////////////////////////////////////////////
// Normales Fenster öffnen
function openNewWin(url) {
	window.open(url + "",'n','fullscreen=0,toolbar=1,menubar=1,location=1,directories=1,status=1,resizable=1,scrollbars=1,top=0,left=0,width=800,height=600');
}


/////////////////////////////////////////////////////////////////////////////////
// "normales" popup öffnen
// zentriert bei fehlender Angabe von links und oben
function openPopup(url, breite, hoehe, links, oben) {
	if (openPopup.arguments.length < 5) {
		links = (screen.width/2)-(breite/2);
		oben = (screen.height/2)-(hoehe/2);
	}
	if (typeof popup != "undefined") {
		popup.close();
	}
	popup = window.open(url,"popup","width="+breite+", height="+hoehe+", status = no,toolbar = no,menubar = no,location = no,resizable = no,titlebar = no,scrollbars = no,fullscreen = no,top ="+oben+",left ="+links);
	popup.focus();
}

/////////////////////////////////////////////////////////////////////////////////
// Beispielaufruf:   getURL("javascript:openRadio(27,72,400,199)", "_self");
function openRadio(radioID,chnID,w,h)
{
   radioWin		= new Object();
   radioWin.url    	= "popup/chartradio.htm";
   radioWin.width  	= w;
   radioWin.height 	= h;
   radioWin.name 	= "radioWin";
   var attr 		= "status=no,scrollbars=no,width="+radioWin.width+",height="+radioWin.height;
   radioWin.win 	= window.open(radioWin.url, radioWin.name, attr);
}

