//#########################################
// © 2001-2002 Ralf H. Schübel / www.ad1.de
// 
// not to be used or changed without permission
//#########################################


if(top.frames.length > 0)
   top.location.href=self.location;

USA = navigator.userAgent.toUpperCase();
ie4 = ((USA.indexOf("MSIE 4") > 0) || (USA.indexOf("MSIE 5") > 0) || (USA.indexOf("MSIE 6") > 0) || (USA.indexOf("MSIE 7") > 0) && (USA.indexOf("Opera") < 0)) ? 1 : 0;
n4 = ((USA.indexOf("MOZILLA/4") >= 0) && (navigator.appName=="Netscape")) ? 1 : 0;
n6 = (USA.indexOf("GECKO") > 0) ? 1 : 0;
op = (navigator.appName == "Opera") ? 1 : 0;

scah = screen.availHeight
scaw = screen.availWidth

function flopen() {
   eval("window.open(\"flx.html\",\"FLINT\",\"width=800,height=500,left=" + Math.floor((scaw-800)/2) + ",top=" + Math.floor((scah-500)/2) + ",toolbar=no,scrollbars=no\")");
}

function reget() {
   loc = this.location.href;
   this.location.href = loc;
}

function stych() {
   if(n4) {
      if(!document.layers.text)
         this.location.href = "ohnocss.html";
   }
}

function soonoff() {
   window.setTimeout('self.close()',444);
}

sch = screen.height
scw = screen.width

// ######################################
function Fchk(){
   navier = (n4) ? eval("document.morf.document.Formular") : eval("document.Formular")
   
   if(navier.email.value.length == 0) {
      alert("e-mail address required");
      navier.email.focus();
      return false;
   }
   
   if(navier.email.value.indexOf('@') == -1) {
      alert("invalid email address");
      navier.email.focus();
      return false;
   }

   if(navier.email.value.indexOf('.') == -1) {
      alert("invalid email address");
      navier.email.focus();
      return false;
   }

   if(navier.name.value.length == 0)  {
      alert("name required");
      navier.name.focus();
      return false;
   }

   if(navier.org.value.length == 0) {
      alert("organisation/institute required");
      navier.org.focus();
      return false;
   }

   if(navier.addr.value.length == 0) {
      alert("address required");
      navier.addr.focus();
      return false;
   }
   
   var currentDate = new Date();
   currentDate.setTime(currentDate.getTime()+(7*24*60*60*1000));
   
   var theDateString = currentDate.toGMTString();
   
   //alert(theDateString);
   
   //opener.document.cookie = opener.document.cookie + "b";
   opener.document.cookie = 'downloaded=1; expires='+theDateString+'; path=/';
     
   
}
// ######################################

var id = 0
var it = 0
var xd = 0
var xt = 0
var dly = 2888
var sid, sw

function movB(sid){
   window.clearTimeout(sw)
   
   if(ie4)
      document.all["N"+sid].style.border = "1px solid #ffffff";

   if(n4)
      document.nav.document["R"+sid].visibility = "show";

   if(n6 || op)
      document.getElementById("R"+sid).style.visibility = "visible";
}

function mutB(sid){
   if(ie4)
      document.all["N"+sid].style.border = "1px none";

   if(n4)
      document.nav.document["R"+sid].visibility  = "hide";
   
   if(n6 || op)
      document.getElementById("R"+sid).style.visibility = "hidden";
   
   sw = window.setTimeout("off()",dly);
}

function movA(it){
/* 
  if(xt != 0) {
      if(ie4) {
         for(i = 1; i <= 4; i++) {
            noe = "P" + xt + i;
               if(noe != page)
                  document.all["N"+xt+i].style.visibility = "hidden";
         }
      }

      if(n4) {
         for(i = 1; i <= 4; i++) {
            noe = "P" + xt + i;
            if(noe != page)
               document.nav.document.layers["N"+xt+i].visibility = "hide";
         }
      }

      if(n6 || op) {
         for(i = 1; i <= 4; i++) {
            noe = "P" + xt + i;
            if(noe != page)
               document.getElementById("N"+xt+i).style.visibility = "hidden";
         }
      }
   }

   xd = id
   xt = it
   
   if(ie4) {
      for(i = 1; i <= 4; i++) {
         noe = "P" + it + i;
         if(noe != page)
            document.all["N" + it + i].style.visibility = "visible";
      }
   }

   if(n4) {
      for(i = 1; i <= 4; i++) {
         noe = "P" + it + i;
         if(noe != page)
            document.nav.document.layers["N" + it + i].visibility = "show";
      }
   }

   if(n6 || op) {
      for(i = 1; i <= 4; i++) {
         noe = "P" + it + i;
         if(noe != page)
            document.getElementById("N" + it + i).style.visibility = "visible";
      }
   }
*/
}

function hiditA() {
   if(ie4)
      document.all["N" + xt + xd].style.visibility = "hidden";
   
   if(n4)
      document.nav.document.layers["N" + xt + xd].visibility = "hide";
	
   if(n6 || op)
      document.getElementById("sub" + keep).style.visibility = "hidden";
}

// ######################################

function off() {
   if(ie4) {
      for(i = 1; i <= 5; i++) {
         noe = "P" + xt + i;
         if(noe != page)
            document.all["N" + xt + i].style.visibility = "hidden";
      }
   }

   if(n4) {
      for(i = 1; i <= 5; i++) {
         noe = "P" + xt + i;
         if(noe != page)
            document.nav.document.layers["N" + xt + i].visibility = "hide";
      }
   }

   if(n6 || op) {
      for(i = 1; i <= 5; i++) {
         noe = "P" + xt + i;
         if(noe != page)
            document.getElementById("N" + xt + i).style.visibility = "hidden";
      }
   }
}

// ######################################

var tic = 0;
var cit = 1;
var bli = 255;
var ilb = 0;
var ro = 0;
var go = 0;
var bo = 0;
var rx = 222;
var gx = 222;
var bx = 222;

function ticker(){

   cit = 1;

   news = "<span style = \"font-family: Verdana, Arial, sans-serif; font-size: 12px; font-weight: normal; color: #000000;\"><nobr>";
   news += Nnews[tic][0];
   news += (Nnews[tic][1] != "") ? "<a href = \"" + Nnews[tic][1] + "\"" : "";
   news += (Nnews[tic][1].indexOf("http") > -1) ? " target = \"_blank\"" : "";
   news += (Nnews[tic][1].indexOf("pdf") > -1) ? " target = \"_blank\"" : "";
   news += ">";
   news += (Nnews[tic][1] != "") ? "<span style = \"font-size: 11px; font-weight: bold; color: #cb0525; text-decoration: none;\">" + Nnews[tic][2] + "</span></a>" : "";
   news += Nnews[tic][3];
   news += "</nobr></span>";

   if (n4) {
      document.ticker.document.open();
      document.ticker.document.write(news);
      document.ticker.document.close();
   }

   if(ie4)
      document.all.ticker.innerHTML = news;

   if(n6 || op) {
      ticdom = document.getElementById("ticker");
      ticdom.className = "P0";
		
      var chno = ticdom.firstChild.nodeValue.length;

		if(chno != 0)
         ticdom.firstChild.deleteData(0,chno);
		for(ni = 0; ni <= 2; ni++)
         if(ticdom.hasChildNodes())
            ticdom.removeChild(ticdom.firstChild);
		
      newsin = document.createTextNode(Nnews[tic][0]);
		ticdom.appendChild(newsin);

		if(Nnews[tic][1] != ""){
			newslink = document.createElement("a");
			newslinktxt = document.createTextNode(Nnews[tic][2]);
			newslink.className = "p1b";
			newslink.appendChild(newslinktxt);
			newslink.href = Nnews[tic][1];
			if(Nnews[tic][1].indexOf("http") > -1){
				newslink.target = "_blank";
			}

			if(Nnews[tic][1].indexOf("pdf") > -1){
				newslink.target = "_blank";
			}
			ticdom.appendChild(newslink);
		}

		newsout = document.createTextNode(Nnews[tic][3]);
		ticdom.appendChild(newsout);
   }

   if (tic < Nnews.length-1)
      tic++;
   else
      tic = 0;
   blinker();
}

function blinker() {
   if(ie4)
      document.all.tickerbg.style.backgroundColor = "rgb(" + bli + "," + bli + ","+bli+")";

   if(n6 || op)
      document.getElementById("tickerbg").style.backgroundColor = "rgb(" + bli + "," + bli + ","+bli+")";

   if(n4)
      document.tickerbg.bgColor = ((bli*65536)+(bli*256)+bli);

   bli = bli + 255;

   if(bli > 256)
      bli = 0;

   ilb++;

   if(ilb < 8)
      window.setTimeout("blinker()", 4);
   else {
      ilb = 0;
      bli = 0;
      colors(10);
   }
}

function colors(stps) {

   spts = stps;
   
   rr = (Math.floor(ro + ((rx-ro)/stps) * cit));
   gg = (Math.floor(go + ((gx-go)/stps) * cit));
   bb = (Math.floor(bo + ((bx-bo)/stps) * cit));

   if(ie4)
      document.all.tickerbg.style.backgroundColor = "rgb(" + rr + "," + gg + "," + bb + ")";
   
   if(n6 || op)
      document.getElementById("tickerbg").style.backgroundColor = "rgb(" + rr + "," + gg + "," + bb + ")";
   
   if(n4)
      document.tickerbg.bgColor = ((rr * 65536) + (gg * 256) + bb);

   if(cit < stps){
      window.setTimeout('colors(spts)',22);
	   cit++;
   } else {
      tbstp = -8;
      barg = window.setInterval("bargrow()",33)
	}
}

var tbstp = 1;
var barg;

function bargrow() {

   if(ie4)
      document.all.tickerbar.style.visibility = "visible";
	if(n4)
      document.tickerbar.visibility = "show";
	if(n6 || op)
      document.getElementById("tickerbar").style.visibility = "visible";
	
   tbstp = tbstp + 8;

   if(ie4)
      document.all.tickerbar.style.clip = "rect(0px " + tbstp + "px 4px 0px)";
	if(n4)
      document.tickerbar.clip.right = tbstp;
	if(n6 || op)
      document.getElementById("tickerbar").style.clip = "rect(0px " + tbstp + "px 4px 0px)";

	if(tbstp > 558){
      window.clearInterval(barg);
      if(ie4)
         document.all.tickerbar.style.visibility = "hidden";
      
      if(n4)
         document.tickerbar.visibility = "hide";
      
      if(n6 || op)
         document.getElementById("tickerbar").style.visibility = "hidden";
      
      window.setTimeout("ticker()",1);
   }
}

// ###################################### //

var sag = "";

function ie4click() {
   if (ie4) {
      void(sag);
      return false;
   }
}

function nclick(e) {
   if(n4 || n6) {
      if (e.which == 2 || e.which == 3) {
         void(sag);
         return false;
      }
   }
}

if(n4) {
   document.captureEvents(Event.MOUSEDOWN);
   document.onmousedown = nclick;
} else {
   document.onmouseup = nclick;
   document.oncontextmenu = ie4click;
}

document.oncontextmenu = new Function("return false");

// ###################################### //

