
// preload rollover images
if (document.images) {
	subnav_arrow_0 = new Image(7, 13); subnav_arrow_0.src = "/media/layout/subnav_arrow_0.gif";
	subnav_arrow_1 = new Image(7, 13); subnav_arrow_1.src = "/media/layout/subnav_arrow_1.gif";
	subnav_arrow_0_rtl = new Image(7, 13); subnav_arrow_0_rtl.src = "/media/layout/subnav_arrow_0_rtl.gif";
	subnav_arrow_1_rtl = new Image(7, 13); subnav_arrow_1_rtl.src = "/media/layout/subnav_arrow_1_rtl.gif";
}


function fObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=fObj(n,d.layers[i].document); return x;
}

function swapImg() {
  var i,j=0,x,a=swapImg.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=fObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function swapImgRest() {
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}


// --------------------

function mainwinLink(link, closeme, closeonly) {
	if (!(window.focus && window.opener)) return true;
	window.opener.focus();
	if (!closeonly) window.opener.location.href=link.href;
	if (closeme) window.close();
	return false;

}

		
// browser-detection neu, hr 09.11.2001
if (document.all) {
	// Internet Explorer
	check = true;
}
else if (document.layers) {
	// Netscape Navigator
	check = false;
}
else if (document.getElementById) {
	// Netscape 6
	check = false;
}
else {
	// alles andere
	check = false;
}

if (navigator.platform.indexOf("Mac") != -1) {
  apple = true;
}
else {
  apple = false;
}

function videowindow(url) {
	var	audiowindow=window.open(url,'_video','width=550,height=620,menubar=no,toolbar=no,statusbar=no,status=no,scrollbars=no,resizable=no');
	audiowindow.focus(); 
	return false;
}

function audiowindow(url) {
	var	audiowindow=window.open(url,'_audio','width=550,height=372,menubar=no,toolbar=no,statusbar=no,status=no,scrollbars=no,resizable=no');
	audiowindow.focus(); 
	return false;
}

function printwindow(url) {
	var	printwindow=window.open(url,'_print','width=520,height=400,menubar=no,toolbar=no,statusbar=no,status=no,scrollbars=yes,resizable=yes');
	printwindow.focus(); 
	return false;
}

function sendwindow(url) {
	var	sendwindow=window.open(url,'_send','width=415,height=595,menubar=no,toolbar=no,statusbar=no,status=no,scrollbars=yes,resizable=no');
	sendwindow.focus(); 
	return false;
}

function feedbackwindow(url) {
	var	feedbackwindow=window.open(url,'_feedback','width=415,height=595,menubar=no,toolbar=no,statusbar=no,status=no,scrollbars=yes,resizable=no');
	feedbackwindow.focus(); 
	return false;
}



function helpwindow(url) {
	var	helpwindow=window.open(url,'_help','width=604,height=584,menubar=no,toolbar=no,statusbar=no,status=no,scrollbars=yes,resizable=no');
	helpwindow.focus(); 
	return false;
}


function bdtwindow(url) {
	//var	bdtwindow=window.open(url,'_bdt','width=589,height=582,menubar=no,toolbar=no,statusbar=no,status=no,scrollbars=no,resizable=no');
	var	bdtwindow=window.open(url,'_bdt','width=660,height=717,menubar=no,toolbar=no,statusbar=no,status=no,scrollbars=no,resizable=no');
	bdtwindow.focus(); 
	return false;
}

function sitemapwindow(url) {
	var	sitemapwindow=window.open(url,'_sitemap','width=616,height=500,menubar=no,toolbar=no,statusbar=no,status=no,scrollbars=yes,resizable=no');
	sitemapwindow.focus(); 
	return false;
}



function onClickPrint() {
		parent.onClickPrint();
		mainFrame.focus();   
		mainFrame.print();		
}


function submitProgrammAuswahl(layoutID) {
	eval('selectedPage = document.ProgrammAuswahlForm'+layoutID+'.Sendungen.options[document.ProgrammAuswahlForm'+layoutID+'.Sendungen.selectedIndex].value');
	if (selectedPage) {
		document.location = selectedPage;
	}
}		   


function epop(url, width, height) {
	var ew=window.open(url,'_extern','scrollbars=no,toolbar=no,location=no,status=no,resizable=no,width='+width+',height='+height);
	ew.focus();
	return false;
}

function epops(url, width, height) {
	var ew=window.open(url,'_extern','scrollbars=yes,toolbar=no,location=no,status=no,resizable=no,width='+width+',height='+height);
	ew.focus();
	return false;
}



 

// komische funktionen aus dw-world de, fuer ecards-abholseite

// Funktion um ein Popup-Fenster ohne URL Zeile, Status Zeile, etc. zu starten	/ ohne resize/
function popopsb(openadresse,winName,winWidth,winHeight) {
	//win = window.open(openadresse,winName,'resizable=no,status=no,toolbar=no,menubar=no,scrollbars=no,copyhistory=no,width='+winWidth+',height='+winHeight+',fullscreen=no,location=yes,titlebar=no');
	var win = window.open(openadresse,winName,'width='+winWidth+',height='+winHeight+',resizable=no ,status=no,scrollbars=yes,left=0,top=0,true');
	//if (navigator.appName == "Microsoft Internet Explorer")	{
	//	win.location.reload();
	//}
	win.focus();
}

// Funktion um ein Popup-Fenster ohne URL Zeile, Status Zeile, etc. zu starten	
function popup(openadresse,winName,winWidth,winHeight) {
	//win = window.open(openadresse,winName,'resizable=yes,status=no,toolbar=no,menubar=no,scrollbars=no,copyhistory=no,width='+winWidth+',height='+winHeight+',fullscreen=no,titlebar=no');
	var win = window.open(openadresse,winName,'width='+winWidth+',height='+winHeight+',resizable=yes,status=no,scrollbars=yes,true');
	//if (navigator.appName == "Microsoft Internet Explorer")	{
	//	win.location.reload();
	//}
	win.focus();
}
 
function minisitewindow(url) {
	var	minisitewindow=window.open(url,'_dwminisite','width=750,height=632,menubar=no,toolbar=no,statusbar=no,status=no,scrollbars=yes,resizable=no,copyhistory=no');
	minisitewindow.focus(); 
	return false;
}
  
 
