var dasErstePrintWin=0;
var dasErstePopupWin=0;
var dasErsteFlexiWin=0;
var dasErsteFlexiParamWin=0;
var dasErsteAbisZWin=0;
var dvdoc,dvimg,DasErsteNavTimer,DasErsteNav=0,ns6,ie4,aniStuff=false;
var dvtxt=new Array();
var dvpos=new Array();
 dvpos[0]=new Array();
 dvpos[1]=new Array();
 dvpos[2]=new Array();

var menuLimg=new Array();
var menuHimg=new Array();
var menuTimer=null;
var menuActive=0;

var altmenuLimg=new Array();
var altmenuHimg=new Array();
var altmenuTimer=null;
var altmenuActive=0;


function StopError() { return true; }
// window.onerror=StopError;

function DasErstePrint(printPage) { 
 if(dasErstePrintWin)
  if(!dasErstePrintWin.closed)
   dasErstePrintWin.close();

 dasErstePrintWin=window.open(printPage,"DasErstePrint","width=600,height=400,scrollbars=yes,resizable=yes,toolbar=yes,menubar=yes"); 
 dasErstePrintWin.focus(); 
} 

function DasErstePopup(tTarget,tWx,tWy) {
 if (dasErstePopupWin)
  if(!dasErstePopupWin.closed) 
   dasErstePopupWin.close();

 dasErstePopupWin=window.open(tTarget,"DasErstePopup","width="+tWx+",height="+tWy+""); 
 dasErstePopupWin.focus(); 
}

function DasErstePopup2(tTarget,tWx,tWy) {
 if (dasErstePopupWin)
  if(!dasErstePopupWin.closed) 
   dasErstePopupWin.close();

 dasErstePopupWin=window.open(tTarget,"DasErstePopup2","width="+tWx+",height="+tWy+""); 
 dasErstePopupWin.focus(); 
}

function DasErstePopupBrennpunkt(tTarget,tWx,tWy) {
 if (dasErstePopupWin)
  if(!dasErstePopupWin.closed) 
   dasErstePopupWin.close();

 dasErstePopupWin=window.open(tTarget,"DasErstePopupBrennpunkt","scrollbars=yes,width="+tWx+",height="+tWy+""); 
 dasErstePopupWin.focus(); 
}

function DasErsteFlexiPopup(tTarget,tName,tWx,tWy) {
 if (dasErsteFlexiWin)
  if(!dasErsteFlexiWin.closed) 
   dasErsteFlexiWin.close();

 dasErsteFlexiWin=window.open(tTarget,tName,"width="+tWx+",height="+tWy+""); 
 dasErsteFlexiWin.focus(); 
}

function DasErsteFlexiParamPopup(tTarget,tName,tWx,tWy,tParam) {
 if (dasErsteFlexiParamWin)
  if(!dasErsteFlexiParamWin.closed) 
   dasErsteFlexiParamWin.close();

 dasErsteFlexiParamWin=window.open(tTarget,tName,"width="+tWx+",height="+tWy+","+tParam+""); 
 dasErsteFlexiParamWin.focus(); 
}

function DasErsteAbisZ() { 
 if(dasErsteAbisZWin)
  if(!dasErsteAbisZWin.closed)
   dasErsteAbisZWin.close();

 dasErsteAbisZWin=window.open("/abisz/","DasErsteAbisZ","width=250,height=450,scrollbars=yes,resizable=yes"); 
 dasErsteAbisZWin.focus(); 
} 

function StartSeite(tURL) { 
this.style.behavior='url(#default#homepage)'; this.setHomePage(location.href);
} 


function DasErsteNavOver(msgnr,bak) {
if (!aniStuff) return;
var content;
content='<table width="200" border="0" cellpadding="0" cellspacing="0" bgcolor="'+bak+'"><tr><td bgcolor="#FFFFFF"><img border="0" src="/img/white.gif" width="1" height="1"></td><td>';
content=content+'<table border="0" cellpadding="5" cellspacing="0"><tr><td><p class="defnavinfo">'+dvtxt[msgnr]+'</tr></td></table>';
content=content+'</td><td bgcolor="#FFFFFF"><img border="0" src="/img/white.gif" width="1" height="1"></td></tr><tr><td bgcolor="#FFFFFF" colspan="3"><img border="0" src="/img/white.gif" width="1" height="1"></td></tr></table>';
if(ns6){document.getElementById("DasErsteNavInfo").innerHTML=content;dvdoc.visibility='visible';dvimg.visibility='visible';dvimg.clip='rect(0px '+dvpos[2][msgnr]+'px 29px '+dvpos[1][msgnr]+'px)';}
if(ie4){document.all.DasErsteNavInfo.innerHTML=content;dvdoc.visibility='visible';dvimg.visibility='visible';dvimg.clip='rect(0px '+dvpos[2][msgnr]+'px 29px '+dvpos[1][msgnr]+'px)';}
if (ns6||ie4) {dvdoc.left=dvpos[0][msgnr];dvdoc.top=184;clearTimeout(DasErsteNavTimer);}
}

function DasErsteNavImg(msgnr) {
if (ns6||ie4) {dvimg.visibility='visible';dvimg.clip='rect(0px '+dvpos[2][msgnr]+'px 29px '+dvpos[1][msgnr]+'px)';}
}

function DasErsteNavKill() {
DasErsteNavTimer = setTimeout("DasErsteNavHide();", 200);
}

function DasErsteNavHide() {
if (!aniStuff) return;
if (ns6||ie4) {dvdoc.visibility='hidden';dvimg.visibility='hidden';}
if (DasErsteNav) DasErsteNavImg(DasErsteNav);
}

function DefaultInit(tcolor) {
 if(top!=self) top.location=self.location;
 this.window.name = "DasErste";
 ns6=document.getElementById&&!document.all;
 ie4=document.all;

 if (navigator.userAgent.indexOf("Konqueror") == -1) aniStuff=true;

 dvtxt[1]='Alle Sendungs-Homepages auf einen Blick, alphabetisch sortiert.';
 dvtxt[2]='Reportagen, Ratgeber, Reisen, Magazine, Polit-Talk und Kultur. Das Erste informiert!';
 dvtxt[3]='Serien, Soaps, Spielfilme, Krimis, Talks und Shows. Das ist Unterhaltung im Ersten.';
 dvtxt[4]='Spiel, Spaß und Infos rund um Blaubär, Maus & Co. Das Kinderprogramm im Ersten.';
 dvtxt[5]='Videos, Chats, Foren, E-Cards, Gewinnspiele... Das Erste interaktiv: Mitmachen!';
 dvtxt[6]='Kontakt, Eintrittskarten, Jobs, Lottozahlen, Impressum u.m. Der Zuschauerservice im Ersten.';
 dvtxt[7]='Vier-Wochen-Vorschau, TV-Tipps, Presse und Archiv. Das Fernsehprogramm im Ersten.';

 dvpos[0][1]=  -1; dvpos[1][1]=  0; dvpos[2][1]=180;
 dvpos[0][2]=234; dvpos[1][2]=235; dvpos[2][2]=324;
 dvpos[0][3]=320; dvpos[1][3]=321; dvpos[2][3]=422;
 dvpos[0][4]=418; dvpos[1][4]=419; dvpos[2][4]=555;
 dvpos[0][5]=551; dvpos[1][5]=552; dvpos[2][5]=632;
 dvpos[0][6]=571; dvpos[1][6]=629; dvpos[2][6]=691;
 dvpos[0][7]=571; dvpos[1][7]=688; dvpos[2][7]=770;


 dvImgContent ='<img border="0" src="/img/'+tcolor+'/nav_over.gif" width="770" height="29">';
 dvImgMouseMap ='<img border="0" src="/img/empty.gif" width="770" height="29" usemap="#daserstenav">';
 if (ns6) {
  dvdoc=document.getElementById("DasErsteNavInfo").style; dvimg=document.getElementById("DasErsteNavImg").style; 
  document.getElementById("DasErsteNavImg").innerHTML=dvImgContent; 
  document.getElementById("DasErsteNavMap").innerHTML=dvImgMouseMap;}
 else if (ie4) {
  dvdoc=document.all.DasErsteNavInfo.style; dvimg=document.all.DasErsteNavImg.style;
  document.all.DasErsteNavImg.innerHTML=dvImgContent;
  document.all.DasErsteNavMap.innerHTML=dvImgMouseMap;}
 
 if (ns6||ie4) {
  dvdoc.visibility="hidden"; dvimg.visibility="hidden";
  if (DasErsteNav) DasErsteNavImg(DasErsteNav); }
}

function MenuHi(menuNr) {
 if (menuTimer != null) { clearTimeout(menuTimer);menuTimer=null; }
 if (menuActive > 0) document['menu'+menuActive].src = menuLimg[menuActive].src;
 document['menu'+menuNr].src = menuHimg[menuNr].src;
}

function MenuHi_NoHide(menuNr) {
 document['menu'+menuNr].src = menuHimg[menuNr].src;
}

function MenuLo(menuNr) {
 document['menu'+menuNr].src = menuLimg[menuNr].src;
 if (menuActive > 0) menuTimer = setTimeout("document['menu'+menuActive].src = menuHimg[menuActive].src", 200);
}

function MenuInit() {
 for (a=0;a<=60;a++) { menuLimg[a]=new Image; menuHimg[a]=new Image; }
}

function altMenuHi(altmenuNr) {
 if (altmenuTimer != null) { clearTimeout(altmenuTimer);altmenuTimer=null; }
 if (altmenuActive > 0) document['altmenu'+altmenuActive].src = altmenuLimg[altmenuActive].src;
 document['altmenu'+altmenuNr].src = altmenuHimg[altmenuNr].src;
}

function altMenuHi_NoHide(altmenuNr) {
 document['altmenu'+altmenuNr].src = altmenuHimg[altmenuNr].src;
}

function altMenuLo(altmenuNr) {
 document['altmenu'+altmenuNr].src = altmenuLimg[altmenuNr].src;
 if (altmenuActive > 0) altmenuTimer = setTimeout("document['altmenu'+altmenuActive].src = altmenuHimg[altmenuActive].src", 200);
}

function altMenuInit() {
 for (a=0;a<=30;a++) { altmenuLimg[a]=new Image; altmenuHimg[a]=new Image; }
}

var dasErsteCityWin=0;
function OpenCityGuide(myCity) {
 if (dasErsteCityWin)
  if(!dasErsteCityWin.closed) 
   dasErsteCityWin.close();

 dasErsteCityWin=window.open("/cityguide/cityguide_f.asp?stadt="+myCity,"cityguide","width=790,height=535"); 
 dasErsteCityWin.focus(); 
}

var ChatWindow;
ChatWindow=0;
function ChatWin(myURL, myTarget) 
 {
 ChatWindow= window.open(myURL, myTarget, "width=760,height=450"); 
 ChatWindow.focus(); 
 }

