<!-- 22112001 ok ortner DATENEINGABE fuer Newsticker //-->
var message=new Array();
//  message[0]="ORF Medienforschung ... news";
//  message[1]="ORF Medienforschung ... news fill ";
//  message[2]="ORF Medienforschung ... news fill it";

message[0]="<span class=news_bottom_bold>RADIOTEST 2. HJ. 2011: Klare Marktführerschaft der ORF-Radios neuerlich bestätigt </span><a href=../c_news/c_news2.htm><font color=ffffff><span class=news_bottom_bold>[...]</span></font></a>";
message[1]="<span class=news_bottom_bold>ORF-Fernsehen startet mit Monat der Rekorde ins Jahr 2012 </span><a href=../c_news/c_news4.htm><font color=ffffff><span class=news_bottom_bold>[...]</span></font></a>";
message[2]="<span class=news_bottom_bold>3,3 Millionen sahen Kitzbühel-Wochenende im ORF </span><a href=../c_news/c_news1.htm><font color=ffffff><span class=news_bottom_bold>[...]</span></font></a>";
message[3]="<span class=news_bottom_bold>ÖWA Plus 2. Qu. 2011: ORF.at mit 2,5 Mio. Usern pro Monat führendes Dachangebot </span><a href=../c_news/c_news3.htm><font color=ffffff><span class=news_bottom_bold>[...]</span></font></a>";











var messageRandom = -1

function watchit() {
  calcNews();
  }

function calcNews() {
  // var messageRandom = Math.round(Math.random() * (message.length-1));
  // alert(message[messageRandom]);
  messageRandom++;
  if (messageRandom > (message.length-1)) {messageRandom=0;}
  
  
  newsTxt=""; 
  
  if (document.layers) { 
    newsTxt = "document.txtNews.document.open()"; eval(newsTxt);
      newsTxt = "document.txtNews.document.write('<font color=ffffff size=1 face=Verdana,Arial,Helvetica>"+message[messageRandom]+"</font>')"; eval(newsTxt);
    newsTxt = "document.txtNews.document.close()"; eval(newsTxt);
    }
  else if (document.all) {
    newsTxt = "txtNews.innerHTML='"+message[messageRandom]+"'"; eval(newsTxt);
    }
  else if (document.getElementById) {
    newsTxt = "document.getElementById('txtNews').innerHTML='"+message[messageRandom]+"'"; eval(newsTxt);
   }
  setTimeout('watchit()',4000);
  }

<!-- NEWSTICKER ENDE //-->

<!-- 22112001 ok ortner NETSCAPE FIX //-->
var hoehe;
var weite;

function nsload() {
  if ((navigator.appName.indexOf("Netscape")>=0) && (top.window.outerWidth!=weite || top.window.outerHeight!=hoehe)) {
    x = top.index_top.document.location.href;
    y = top.content.document.location.href;
	//z = top.content.c_right.document.location.href;
	if (top.frames.length == 2) {
	  bo = top.content_bottom.document.location.href;
      }
	    top.index_top.document.location.href = x;
	    //top.content.c_right.document.location.href = z;
	    top.content.document.location.href = y;
		if (top.frames.length == 2) {
		  top.bottom.document.location.href = bo;
		  }
    }
  }

function nsfix() {
  if ((navigator.appName.indexOf("Netscape")>=0)) {
    hoehe= top.window.outerHeight;
    weite= top.window.outerWidth;
    }
  }
<!-- NETSCAPE FIX ENDE //--> 

<!-- OpenConsole Variabel //--> 
function openConsole(url,y,z) {
  url=url+"?y="+y+"&z="+z;
  infoWin = open(url,'data_lounge','resizable=yes,toolbar=no,location=no,directories=no,status=yes,resizeable=yes');
  infoWin.focus();
  }
<!-- OpenConsole Variabel Ende //--> 

<!-- 22112001 ok ortner MOVING LAYERS HORIZONTAL //-->
var myX=new Array(5);
myX[0]=0; 
myX[1]=0;
myX[2]=0;
myX[3]=0;
myX[4]=0;
var moveTimes=0;

function moveInit() {
  calcHor();
  moveHor();
  if(moveTimes==14) {
    if (document.layers) document.explore.visibility='show';
    if (document.all) explore.style.visibility='visible';
    if (document.getElementById) document.getElementById('explore').style.visibility='visible';

      fillExplorer();

    } 
  if(moveTimes<=24) setTimeout('moveInit()',200);
  if(moveTimes>24) {
    for (i=0;i<=4;i++) {
        if (document.layers) { 
          txt="document.bglinie"+i+".left=-5"; eval(txt);
          }
        if (document.all) {
          txt="bglinie"+i+".style.left=-5"; eval(txt);
          }
        if (document.getElementById) {
          txt="document.getElementById('bglinie"+i+"').style.left=-5"; eval(txt);
          }
      }
    if (document.layers) document.bg_overlay.visibility='show';
    if (document.all) bg_overlay.style.visibility='visible';
    if (document.getElementById) document.getElementById('bg_overlay').style.visibility='visible';
    }
  }

function calcHor() {
  for (i=0;i<=4;i++) {
    horValue = Math.round(Math.random() * 40);
    myX[i]+=(10+horValue);  
	if (myX[i]>800) myX[i]=0;
	}
  }
  
function moveHor() {
  for (i=0;i<=4;i++) {
        if (document.layers) { 
          txt="document.bglinie"+i+".left="+myX[i]; eval(txt);
          }
        if (document.all) {
          txt="bglinie"+i+".style.left="+myX[i]; eval(txt);
          }
        if (document.getElementById) {
          txt="document.getElementById('bglinie"+i+"').style.left="+myX[i]; eval(txt);
          }
    }
  moveTimes+=1;
  }
  
<!-- MOVING LAYERS HORIZONTAL END //-->

<!-- SHOW TRAILERS //-->

var imgAnzahl=79;
var trailerShow=0;

function initMoveImages() {
    hideTrailer();
    selectTrailer();
    trailerShow+=1;
    if (trailerShow<3) setTimeout('initMoveImages()',4000);
  }
  
function hideTrailer() {
  for (k=0;k<=7;k++) {
    if (document.layers) { 
      txt = "document.trailer" + k + ".visibility='hide'"; eval(txt);
      }
    if (document.all) {
      txt = "trailer" + k + ".style.visibility='hidden'"; eval(txt);
      }
    if (document.getElementById) {
      txt = "document.getElementById('trailer" + k + "').style.visibility='hidden'"; eval(txt);
      }
	}
  }
  
function selectTrailer() {
  tx = Math.round(Math.random()*7);
  if(trailerShow==2) tx=5; // damit zum Schluss auch wirklich ein paar Bilder zu sehen sind
  
    for (l=0;l<=tx;l++) {
      ty = Math.round(Math.random()*7);
<!-- LAYER BESCHREIBEN //-->
  if (document.layers) { 
    txt = "document.trailer" + ty + ".visibility='show'"; eval(txt);
    txt = "document.trailer" + ty + ".document.open()"; eval(txt)
    txt = "document.trailer" + ty + ".document.write('"; 
      txt+="<img src=../images/trailer/fernsehen/trailer"+ Math.round(Math.random()*imgAnzahl) +".gif width=66 height=50 border=0>')";
	  eval(txt);
    txt = "document.trailer" + ty + ".document.close()"; eval(txt)
    }
  if (document.all) {
    txt = "trailer" + ty + ".style.visibility='visible'"; eval(txt);
    txt = "trailer" + ty + ".innerHTML='";
	txt+="<img src=../images/trailer/fernsehen/trailer"+ Math.round(Math.random()*imgAnzahl) +".gif width=66 height=50 border=0>'";
	eval(txt);
    }
  if (document.getElementById) {
    txt = "document.getElementById('trailer" + ty + "').style.visibility='visible'"; eval(txt);
    txt = "document.getElementById('trailer" + ty + "').innerHTML='";
	  txt+="<img src=../images/trailer/fernsehen/trailer"+ Math.round(Math.random()*imgAnzahl) +".gif width=66 height=50 border=0>'";
	  eval(txt);
    }
<!-- LAYER BESCHREIBEN ENDE //-->
	  }
    
  }

function moveTrailer(ty,tx) {
  if (document.layers) { 
    for(l=0;l<=tx;l++) {
      txt="document.trailer" + ty + ".left = " + l; eval(txt);
      }
    }
  if (document.all) {
    for(l=0;l<=tx;l++) {
      txt = "trailer" + ty + ".style.left = " + l; eval(txt);
      }
    }
  if (document.getElementById) {
    for(l=0;l<=tx;l++) {
      txt="document.getElementById('trailer" + ty + "').style.left = " + l; eval(txt);
      }
   }
 }




