<!--
// copyright 2000 Hans-Joerg Loy, webdev@lkd-service.de,
// all rights reserved
// unauthorised selling and distribution prohibited
//
//******* content vars for horizontal scrolltext  ****************
// to set the height of text use the height-statment in style section !!!

//var hposlft = 400;   // left position of hor scrolltext (screen.width * 0.5) -  (screen.width * 0.25)
//var hpostop = 145;  // top position of hor scrolltext screen.height * 0.17
//var htxwidt = 475; // width of hor scrolltesxt

var hposlft = (screen.width * 0.5) -  (screen.width * 0.155);   // left position of hor scrolltext
var hpostop = 142;  // top position of hor scrolltext
var htxwidt = screen.width * 0.30; // width of hor scrolltesxt

var hposrgt = hposlft + htxwidt; // right end textwindow
var hstep = 4;     // speed - pixels per shift hstep higher means faster
var hstime = 60;

var h_text=new Array();
h_text[0]="DIE SCHLAGERMAFIA IN DER SUPERillu – DIE SCHLAGERMAFIA BEIM ALSTERVERGNÜGEN 2010 – DIE SCHLAGERMAFIA BEI NDR1 RADIO MV";

var h_textcol=new Array(); // Die Farben fuer die einzelnen Texte
h_textcol[0]="#9C016B";// d-red

var h_texturl=new Array(); // URL's zu den Texten
h_texturl[0]="index.php?mainmenue=3&submenue=0";

var h_texttarget=new Array(); // URL's zu den Texten
h_texttarget[0]= "_self";

var fntfamily="Verdana, Arial, Helvetica"; // font-family
//******* end content vars for vertical scrolltext ***************
//**************** vars for horizontal scrolltext *****************
// nothig to edit ...
var txstst=true;
var html_txh="";
var xclipleft = 0;
var xclipright = 0;
var htextw = 0;
var htimer;
//******* end horizontal scrolltext vars *************************
//************* functions for horizontal scrolltext ************
function hscroll() {
  if (!txstst) { window.clearTimeout(htimer); return; }
  xclipright+=hstep;
  if (xclipright>=htxwidt) { xclipleft+=hstep; }
  if (isIE) {
    document.all.atext.style.posLeft-=hstep;
    document.all.atext.style.posWidth+=hstep;
    document.all.atext.style.clip="rect(auto "+xclipright+" auto " +xclipleft+")";
  }
  else {
    document.atext.clip.right=xclipright;
    document.atext.clip.left=xclipleft;
    document.atext.left-=hstep;
  }
  if (xclipleft > (htextw)) {
    if (isIE) {
      document.all.atext.style.posLeft=hposrgt;
      document.all.atext.style.width=0;
    }
    else { document.atext.left=hposrgt; }
    xclipleft=0; xclipright=0;
  }
  starthscroll();
}
function htxinit() { // init hscroll
  if (document.all) {isIE=true; isNav=false;}
  if (document.layers) {isIE=false; isNav=true; }
  window.clearTimeout(htimer);
  xclipleft=0; xclipright=0;
  gethtext();
  if (isIE) {
    document.all.atext.style.clip="rect(auto 0 auto 0)";
    document.all.atext.style.overflow="hidden";
    document.all.atext.innerHTML=html_txh;
    htextw=atext.offsetWidth;
    document.all.atext.style.width=0;
    document.all.atext.style.posTop=hpostop;
    document.all.atext.style.posLeft=hposrgt;
  }
  else {
    document.atext.document.write(html_txh);
    document.atext.document.close();
    document.atext.clip.right=0;
    document.atext.clip.left=0;
    htextw=document.atext.document.width;
    document.atext.top=hpostop;
    document.atext.left=hposrgt;
  }
  starthscroll();
}
function starthscroll() { htimer=window.setTimeout("hscroll()", hstime); }
function gethtext() {
  var t_txh=new Array(h_text.length);
  for (i=0; i<h_text.length; i++) {
    if (h_texturl[i]) {
	t_txh[i]="<span style='font-size:10pt; font-family:"+fntfamily+";'>";
    t_txh[i]+="<a style='textdecoration:none;' href='"+h_texturl[i]+"' target='"+h_texttarget[i]+"'>";
    t_txh[i]+="<font color="+h_textcol[i]+">"+h_text[i]+"</font></a></span>";
	} else {		
	t_txh[i]="<span style='font-size:10pt; font-family:"+fntfamily+";'>";
    t_txh[i]+="<a style='textdecoration:none;>";
    t_txh[i]+="<font color="+h_textcol[i]+">"+h_text[i]+"</font></a></span>";
	};
  }
  html_txh=t_txh.join("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
  html_txh="<nobr>"+html_txh+"</nobr>";
}
function txSS() { txstst=true; hscroll();  return false; }
function txST() { txstst=false; hscroll();  return false; }
//***************** end of horizontal scrolltext ***************

//-->