
var browsi=navigator.platform;
if (browsi.match(/linux/gi)) {
document.write("<link rel='stylesheet' type='text/css' href='/3sat_ie_linux.css' />");	
}

function is_self() {
 return 4;
}

function ke() { return true; }
window.onerror = ke;



// kein frameset und nicht auf andromeda dann selbst in frameset laden
if (!top.Banner && !self.location.href.match(/altavista/g) && window.location.hostname!="http://wmaiz-3sat01.dbc.zdf.de" && window.location.hostname!="https://archiv.3sat.de" && window.location.hostname!="http://archiv.3sat.de" && window.location.hostname!="archiv.3sat.de" && window.location.hostname!="https://secure.3sat.de" && window.location.hostname!="http://secure.3sat.de" && window.location.hostname!="wmaiz-3sat01.dbc.zdf.de" && window.location.hostname!="http://192.168.44.40" && window.location.hostname!="192.168.44.40")
 {
 //!self.location.href.match(/themen.php/g) &&
 // ausser:
   if (!self.location.href.match(/\/glossar/g))
   {
	   if (parent.is_self && parent.is_self()==4 && self == top) {		 
	     if (self.location.href.match(/secure\.3sat\.de/g) ) {
			window.setTimeout('top.location.replace("http://www.3sat.de/3sat.php?"+self.location.href);',350);
		}else {
	 		window.setTimeout('top.location.replace("http://www.3sat.de/3sat.php?"+self.location.href);',350);
   	     }
	   }
   	 
   }
}

function rjdruck()
{
	top.print();
	return;
}

// Javascripts der Navigation.html

function bibliothek(werdenn)
	{

	var buch=window.open("/SCRIPTS/bibliothek/bibliothek.htm?"+werdenn,"Bibliothek","WIDTH=920,HEIGHT=560,TOOLBAR=no,LOCATION=no,DIRECTORIES=no,STATUS=no,RESIZABLE=yes, SCROLLBARS=no");

	}

function sucic()
	{
	if (!document.layers)
		{
		document.all.suchiid.style.visibility="visible";
		Window.setTimeout("sucicoff()",600);
		}
       }

function blinklate()
	{
	var dyy=0;
	if (top.Hauptframe)
	{
	if (top.Hauptframe.rj) {document[top.Hauptframe.rj].src=an.src;dyy=1;}
		//if (!dyy) window.setTimeout("blinklate()",500);
	}
	}


function blinklate_()
	{
	blinklate();
	//window.setTimeout("blinklate()",500);
	}


function blink(x)
	{
	var hier=top.Hauptframe.rj;
        if (top.Hauptframe)
	{

		if (x!=hier)
		{
		if (hier!="b"){ document.b.src=aus.src;}
		else if (hier!="c") {document.c.src=aus.src;}
		else if (hier!="d") {document.d.src=aus.src;}
		else if (hier!="e") {document.e.src=aus.src;}
		else if (hier!="f") {document.f.src=aus.src;}
		else if (hier!="g") {document.g.src=aus.src;}
		else if (hier!="h") {document.h.src=aus.src;}

		else if (hier!="j") {document.j.src=aus.src;}
		else if (hier!="k") {document.k.src=aus.src;}
		else if (hier!="l") {document.l.src=aus.src;}
		else if (hier!="m") {document.m.src=aus.src;}
		else if (hier!="n") {document.n.src=aus.src;}
		else if (hier!="o") {document.o.src=aus.src;}
		else if (hier!="p") {document.p.src=aus.src;}
		document[x].src=aus.src;
		}
	}
	}


function on_(yy)
	{
  	document[dummy].src=aus.src;
	document[yy].src=an.src;
	dummy=yy;
	}


function sucicoff_()
	{
	document.suchiid.visibility="hide";
	}

function sucicoff()
	{
	document.all.suchiid.style.visibility="hidden";
	}






function nanospezial1(dieurl,breite,hoehe)
	{
	nanospezial1=window.open(dieurl,"","WIDTH="+breite+",HEIGHT="+hoehe);
	nanospezial1.focus();
	}

function spezialopen(dieurl,breite,hoehe)
	{
	spezial1=window.open(dieurl,"","WIDTH="+breite+",HEIGHT="+hoehe);
	spezial1.focus();
	}



function fenster(url,x,y)
	{
	var fenster=window.open(url,"floater","WIDTH="+x+",HEIGHT="+y+",TOOLBAR=no,LOCATION=no,DIRECTORIES=no,STATUS=no,RESIZABLE=no, SCROLLBARS=no");
	}




function kurs(urls)
{
kursneu=window.open("/SCRIPTS/boerse_kurs.php?"+urls,"","WIDTH=600,HEIGHT=400,TOOLBAR=yes,LOCATION=no,DIRECTORIES=no,RESIZABLE=yes, SCROLLBARS=yes");
kursneu.focus();
}





function nanovision()
	{
		var nv=window.open("http://www.3sat.de/nano/nanovision/nanovision.html","nanovision","WIDTH=930,HEIGHT=570,TOOLBAR=no,LOCATION=no,DIRECTORIES=no,STATUS=no,RESIZABLE=no, SCROLLBARS=no");
		return;


	}


function spez1(adresse)
	{
	if (document.layers)
	{var regin=document.TEST;
	regin.load(adresse,150);
	}
	}


function cali1(adresse)
	{

				if (document.layers)
				{
				var regin=parent.Hauptframe.TEST;

				regin.load(adresse,150);
				}

				}


function chat(urls)  // globale Funktion zum Cassiopia-Chat
{

	chatwindow=window.open("http://www.3sat.de/SCRIPTS/chat.php?red="+urls,"3satChat", "width=600,height=500");

}




function livestream(urls,name)  // globale Funktion zum Real_player_in_neuem_Fenster für live-stream ! d.h. /encoder/
{

	streamwindow=window.open("http://www.3sat.de/SCRIPTS/webtv_live.php?urls="+urls+"&name="+name,"mediathek", "width=752,height=491");
//	streamwindow.name="3satMediathek";
	streamwindow.focus();
}



function urlstream(urls,name)
{
	streamwindow=window.open("http://www.3sat.de/SCRIPTS/webtv_url.php?urls="+urls+"&name="+name,"mediathek", "width=752,height=491");
//	streamwindow.name="3satMediathek";
        streamwindow.focus();
}




function externstream(urls,name)
{

	streamwindow=window.open("http://www.3sat.de/SCRIPTS/webtv_extern.php?urls="+urls+"&name="+name,"mediathek", "width=752,height=491");
//	streamwindow.name="3satMediathek";
        streamwindow.focus();

}



function ex2(urls,name,rjxx,rjyy)
{

streamwindow=window.open("","x", "width="+rjxx+",height="+rjyy);
streamwindow.document.write("<html><head><script>x=(screen.width-340)/2;y=(screen.height-360)/2;self.moveTo(x,y);self.focus();</script><title>");
streamwindow.document.write(name+"</title></head><body><OBJECT ID=RP2 CLASSID='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA' HEIGHT=240 WIDTH=320>");
streamwindow.document.write("<param name='SRC' value='"+urls+"'><PARAM NAME='Console' VALUE='Clip1'><PARAM NAME='autostart' VALUE='True'>");
streamwindow.document.write("<PARAM NAME='NOLABELS' VALUE='TRUE'><PARAM NAME='LOOP' VALUE='FALSE'><PARAM NAME='PREFETCH' VALUE='false'>");
streamwindow.document.write("<PARAM NAME='maintainaspect' VALUE='true'><PARAM NAME='controls' VALUE='ImageWindow'></OBJECT>");
streamwindow.document.write("<OBJECT ID=RP2 CLASSID='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA' HEIGHT=90 WIDTH=320><PARAM NAME='NOLABELS' VALUE='TRUE'><PARAM NAME='maintainaspect' VALUE='true'><PARAM NAME='autostart' VALUE='True'><PARAM NAME='CONTROLS' VALUE='All'><PARAM NAME='Console' VALUE='Clip1'>");
streamwindow.document.write("<EMBED TYPE='audio/x-pn-realaudio-plugin' SRC='"+urls+"' WIDTH=320 HEIGHT=240 CONTROLS=IMAGEWINDOW AUTOSTART=TRUE CONSOLE=CLIP1 maintainaspect=true></EMBED>");
streamwindow.document.write("<EMBED TYPE='audio/x-pn-realaudio-plugin' SRC='"+urls+"' WIDTH=320 HEIGHT=90 CONTROLS=All CONSOLE=CLIP1 nojava=true></EMBED></object>");
streamwindow.document.write("<img src='/cgi-bin/ivw/CP.ivw?s=stream_ext' WIDTH=1 HEIGHT=1></body></html>");
streamwindow.document.close();
streamwindow.focus();
}


function stream(urls,name)  // globale Funktion zum Real_player_in_neuem_Fenster ! d.h. /3sat/
{




 streamwindow=window.open("http://www.3sat.de/dynamic/webtv/webtv_frame.php?url="+urls,"mediathek", "width=752,height=491,TOOLBAR=no,LOCATION=no,DIRECTORIES=no,STATUS=no,RESIZABLE=yes, SCROLLBARS=no");
  //  streamwindow.name="mediathek";
    streamwindow.focus();


}


function kino(urls,name)
{

kinowindow=window.open("","x","width=500,height=345");
kinowindow.document.write("<html><head><script>x=(screen.width-500)/2;y=(screen.height-345)/2;self.moveTo(x,y);self.focus();</script><title>"+name+"</title><style>");
kinowindow.document.write(".film{position:absolute;left:6;top:5;z-index:2;visibility:show;visibility: visible;}");
kinowindow.document.write(".bild{position:absolute;left:-6;top:-5;z-index:1;visibility:show;visibility:visible;}</style></head><body>");
kinowindow.document.write("<div id='real' class='film' align='left'><OBJECT ID=RP2 CLASSID='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA' HEIGHT=240 WIDTH=320>");
kinowindow.document.write("<param name='SRC' value='rtsp://Kermit.sda.t-online.de/3sat/"+urls+"'>");
kinowindow.document.write("<PARAM NAME='Console' VALUE='Clip1'><PARAM NAME='autostart' VALUE='True'><PARAM NAME='NOLABELS' VALUE='TRUE'><PARAM NAME='LOOP' VALUE='FALSE'><PARAM NAME='PREFETCH' VALUE='false'><PARAM NAME='maintainaspect' VALUE='true'><PARAM NAME='controls' VALUE='ImageWindow'>");
kinowindow.document.write("<EMBED TYPE='audio/x-pn-realaudio-plugin' SRC='rtsp://Kermit.sda.t-online.de/3sat/"+urls+"' WIDTH=320 HEIGHT=240 CONTROLS=IMAGEWINDOW AUTOSTART=TRUE CONSOLE=CLIP1 nojava=true PREFTECH=FALSE></EMBED>");
kinowindow.document.write("</OBJECT><div id='rest' class='bild' align='left'><img src='/events/berlinale2000/270100_kino.jpg' width='500' height='350' border='0'></div><img src='/cgi-bin/ivw/CP.ivw?s=stream_theater' WIDTH=1 HEIGHT=1></body></html>");
kinowindow.document.close();
kinowindow.focus();
}

function infowindow(urls,name)

	{
	if (document.layers)
	{infow=window.open("/infowindow.php3?url="+urls+"&name="+name,"info","width=680,height=390,scrollbars=no");}
	else
	{infow=window.open("/infowindow.php3?url="+urls+"&name="+name,"info","width=680,height=395,scrollbars=no");}
	infow.focus();
	}

function infowindow2(urls,name)
	{
	if (document.layers)
	{infow=window.open("/infowindow2.php3?url="+urls+"&name="+name,"info2","width=700,height=390,TOOLBAR=no,LOCATION=no,DIRECTORIES=no,STATUS=no,RESIZABLE=yes, SCROLLBARS=yes");}
	else
	{infow=window.open("/infowindow2.php3?url="+urls+"&name="+name,"info2","width=700,height=390,TOOLBAR=no,LOCATION=no,DIRECTORIES=no,STATUS=no,RESIZABLE=yes, SCROLLBARS=yes");}
	infow.focus();
	}


function infowindow3(urls,name)
	{
	if (document.layers)
	{infow=window.open(urls,"3sat","width=640,height=430");}
	else
	{infow=window.open(urls,"3sat","width=640,height=420");}
	infow.focus();
	}



function kuztv(urls,name)

{

 streamwindow=window.open("http://www.3sat.de/dynamic/webtv/webtv_frame.php?url="+urls,"mediathek", "width=752,height=491,TOOLBAR=no,LOCATION=no,DIRECTORIES=no,STATUS=no,RESIZABLE=yes, SCROLLBARS=no");
//    streamwindow.name="3satMediathek";
        streamwindow.focus();

//	kuzTV=window.open("http://www.3sat.de/SCRIPTS/webtvkuz.php?urls="+urls+"&name="+name,"WebTV","width=500,height=362,scrollbars=no");

}


function boersetv(urls,name)

{

 streamwindow=window.open("http://www.3sat.de/dynamic/webtv/webtv_frame.php?url="+urls,"mediathek", "width=752,height=491,TOOLBAR=no,LOCATION=no,DIRECTORIES=no,STATUS=no,RESIZABLE=yes, SCROLLBARS=no");
 //   streamwindow.name="3satMediathek";
        streamwindow.focus();

//	boerseTV=window.open("http://www.3sat.de/SCRIPTS/webtvboerse.php?urls="+urls+"&name="+name,"WebTV","width=500,height=362,scrollbars=no");

}





function neuestv(urls,name)

{

 streamwindow=window.open("http://www.3sat.de/dynamic/webtv/webtv_frame.php?url="+urls+".rm","mediathek", "width=752,height=491,TOOLBAR=no,LOCATION=no,DIRECTORIES=no,STATUS=no,RESIZABLE=yes, SCROLLBARS=no");
//    streamwindow.name="3satMediathek";
        streamwindow.focus();

//	neuesTV=window.open("http://www.3sat.de/SCRIPTS/webtvneues.php?urls="+urls+"&name="+name,"WebTV","width=403,height=450,scrollbars=no");

}




function neuessmile(urls,name)

{
//	neuesTV=window.open("http://www.3sat.de/SCRIPTS/webtvneues_smil.php?urls="+urls+"&name="+name,"mediathek","width=490,height=360,scrollbars=no");
 streamwindow=window.open("http://www.3sat.de/dynamic/webtv/webtv_frame.php?url="+urls,"mediathek", "width=752,height=490,TOOLBAR=no,LOCATION=no,DIRECTORIES=no,STATUS=no,RESIZABLE=yes, SCROLLBARS=no");
//    streamwindow.name="mediathek";
        streamwindow.focus();

}



function neuestvurl(urls,name)

{
	//neuesTV=window.open("http://www.3sat.de/SCRIPTS/webtvneues_url.php?urls="+urls+"&name="+name,"WebTV","width=403,height=450,scrollbars=no");
 streamwindow=window.open("http://www.3sat.de/dynamic/webtv/webtv_frame.php?url="+urls,"mediathek", "width=752,height=490,TOOLBAR=no,LOCATION=no,DIRECTORIES=no,STATUS=no,RESIZABLE=yes, SCROLLBARS=no");
	//    streamwindow.name="3satMediathek";
        streamwindow.focus();

}





function deluser(db,email)
{
	Check = confirm("Soll der User: "+email+" aus dem "+db+"-Newsletter ausgetragen werden?");
	if(Check == false)
	{ }
	else
	{
	document.sendform.db.value=db;
	document.sendform.email.value=email;
	//document.sendform.target="Hauptframe";

	document.sendform.action = "/SCRIPTS/mailingliste.php";
	document.sendform.submit();
	}
}

//iframe top prob
//window.setTimeout("location.href='#top';",133);


//if (self.location.href.match(/#/g)) {
	
//}else {
//	window.setTimeout("top.window.scrollTo(0,0);",133);
//}



function initArticle() {
        if (self.location.href.match(/#/g)) {

        }else {
                top.window.scrollTo(0,0);
        }


}

function addLoadEvent2(func)
{
        var oldonload = window.onload;
        if (typeof window.onload != 'function'){
        window.onload = func;
        } else {
                window.onload = function(){
                oldonload();
                func();
                	}
        	

	}
}

addLoadEvent2(initArticle);
                                                             

