    sfHover = function() {
try {
    var sfEls = document.getElementById("topmenu").getElementsByTagName("li");
    for (var i=0; i<sfEls.length; i++) {
      sfEls[i].onmouseover=function() {
        this.className+=" sfhover";
      }
      sfEls[i].onmouseout=function() {
        this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
      }
    }
} catch(e) { }
  }
  if (window.attachEvent) 
  {
     window.attachEvent("onload", sfHover); 
  }



sfHover2 = function() {
try {
  var sfEls2 = document.getElementById("lefthandmenu").getElementsByTagName("li");
  for (var i=0; i<sfEls2.length; i++) {
    sfEls2[i].onmouseover=function() {
      this.className+=" sfhover";
    }
    sfEls2[i].onmouseout=function() {
     this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
    }
  }
} catch(e) { }
}
if (window.attachEvent) window.attachEvent("onload", sfHover2);


function winOpen(theURL,winName,features) 
{ 
winName = window.open(theURL,winName,features); 
if(winName == null || winName.closed){window.open(theURL,winName,features);} 
//else{winName.location.href = theURL;} 
if (!winName.closed) 
winName.focus(); 
}
function setBookmark()
{
  var brty = navigator.appName;
  var brve = navigator.appVersion;
  var url=parent.document.location.href; 
  var titel = document.title; 
  if (brty.indexOf("Explorer")>-1)
  {
    window.external.AddFavorite(url, unescape('Bayer Research'));
  }
  else
  {
    alert(unescape("Diese Funktion steht nur f%FCr Internet Explorer zur Verf%FCgung"));
  }
}
function setBookmark(lang)
{
  bookmarkurl = location.href;
  if (document.all) {
     window.external.AddFavorite(bookmarkurl,document.title);
     } else {
       alert('Your Browser does not support this feature');
    }
}

function Top()
{
 document.location.href="#pagetop";
}

function zoomimg(src, id) {
  var zoomdiv  = document.getElementById('zoomdiv');
  var caption = "";

  if(id != "")
  {
    caption = document.getElementById(id).innerHTML
    caption = "<div style='text-align:left; padding:0 .25em;'><span>" +caption+"</span></div>";
  }

  zoomdiv.innerHTML="<div><span>Fenster schlie&szlig;en</span><img src='/img/system/close_icon.gif' alt='schlie&szlig;en'></div><table style='width:5em;' cellspacing='0' cellpadding='0'><tr><td><img src='"+src+"' />"+caption+"</td></tr></table>";

  var body =document.body;
  if(body.scrollTop > 50) {
    zoomdiv.style.top = body.scrollTop + 50;
  } else {
    zoomdiv.style.top = 50;
  }
  zoomdiv.style.visibility = 'visible';
}

function zoomimgen(src, id) {
  var zoomdiv  = document.getElementById('zoomdiv');
  var caption = "";

  if(id != "")
  {
    caption = document.getElementById(id).innerHTML
    caption = "<div style='text-align:left; padding:0 .25em;'><span>" +caption+"</span></div>";
  }

  zoomdiv.innerHTML="<div><span>Close window</span><img src='/img/system/close_icon.gif' alt='close'></div><table style='width:5em;' cellspacing='0' cellpadding='0'><tr><td><img src='"+src+"' />"+caption+"</td></tr></table>";

  var body =document.body;
  if(body.scrollTop > 50) {
    zoomdiv.style.top = body.scrollTop + 50;
  } else {
    zoomdiv.style.top = 50;
  }
  zoomdiv.style.visibility = 'visible';
}



function print(PageId, args)
{
  var a='';
  if(args) {
    a = "&args=" + args;
  }
  var location = document.location.href;
  try {
    location = location.replace(/https?:\/\/.*?\//, '/');
  } catch(e) { }

  window.open("/module/print/Print.aspx?url=" +encodeURIComponent(location) + 
     "&pageid=" +PageId+a, "Drucken","width=775,height=750,scrollbars=yes");
}

	function zoomVideo(zoom, smallvideo, bigvideo, preview) {
		
		if(zoom == 'zoom'){
		document.getElementById('flashvideo').style.width = '35.625em';
			var s1 = new SWFObject("/swf/flv/flvplayer.swf","single","570","341","8");
			s1.addVariable("file",bigvideo);
			s1.addVariable("image",preview);
			s1.addVariable("width","570");
			s1.addVariable("height","341");
			s1.addVariable("clickTag","javascript:zoomVideo('unzoom','"+ smallvideo+"', '"+bigvideo+"');");
			s1.addVariable("iszoomed","true");
			s1.addVariable("autostart","true");
		}
		if(zoom == 'unzoom'){
		document.getElementById('flashvideo').style.width = '17.5em';
			var s1 = new SWFObject("/swf/flv/flvplayer.swf","single","280","178","8");
			s1.addVariable("file",smallvideo);
			s1.addVariable("image",preview);
			s1.addVariable("width","280");
			s1.addVariable("height","178");
			s1.addVariable("clickTag","javascript:zoomVideo('zoom','"+ smallvideo+"', '"+bigvideo+"');");
			s1.addVariable("iszoomed","false");
			s1.addVariable("autostart","false");
		}
			s1.addParam("wmode","transparent");
			s1.addVariable("showzoom","true");
			s1.write("flashvideo");
	}


function zoom(factor)
{
  var size = "100%";

  if (document.body.style.fontSize != null &&
      document.body.style.fontSize != "")
    { size = document.body.style.fontSize; }
    
  size = Number(String(size).substring(0, String(size).indexOf("%")))
  if (size > 20 && size < 400) size = size + factor;
  if (factor == 0) size = 100;

  setPersFontSize(size + "%");
  loadZoom();
  
  if (navigator.appName=="Netscape") {location.reload();}
}		

function loadZoom()
{
  var newSize = getPersFontSize();
  document.body.style.fontSize = newSize;
}

function setPersFontSize(fontSize)
{
    document.cookie = "fontSize=" + fontSize + ";";
}

function getPersFontSize()
{
  var fontSize = "100%";
	
	if (document.cookie) 
	{
	  var val = document.cookie
	  var idxStart = val.indexOf("fontSize=")
	  var idxEnd = val.indexOf(";", idxStart);

	  if (idxEnd < 0) { idxEnd = val.length; }
    if (idxStart >= 0) {fontSize = val.substring(idxStart + "fontSize=".length, idxEnd);}
  } 
  else 
  {
    setPersFontSize(fontSize);
  }

  return fontSize;
}



function Trim(str) {
  var x = 0;
  while(str.charAt(x) == ' ') ++x;
  return str.substring(x,str.length);
}

function GetCookie(Name) {
  var cookiefound = false;
  var start = 0;
  var end = 0;
  var cookiestring = document.cookie;
  var i = 0;
  var found = false;
  var n='';
  var v='';
  var t=''; 
  start = document.cookie;
  while (i <= document.cookie.length) {
    if((end = start.indexOf(";",i)) != -1) {
      t = start.substring(i,end);
      i = end+1;
      if((end = t.indexOf("=")) > -1) {
        n = Trim(t.substring(0,end));
        v = Trim(t.substring(end+1,t.length));
      } else {
        n = Trim(t);
        v = '';
      }
      if(n == Name) return v;				
    } else {
      if(i == document.cookie.length)
        break;
      t = start.substring(i,document.cookie.length);
      i = end+1;
      if((end = t.indexOf("=")) > -1) {
        n = Trim(t.substring(0,end));
        v = Trim(t.substring(end+1,t.length));
      } else {
        n = t;
        v = '';
      }
      i=document.cookie.length;
      if(n == Name) return v;
    }
  }
  return "";
}


// F?gt ein Dokument in die 'MyDocuments' Liste ein
function DownloadCenter_AddToMyDocuments(id) 
{
  downloadCenter.d_id.value=''+id;
  downloadCenter.cmd.value='dc_add';
  downloadCenter.submit();
}
// Entfernt ein Dokument aus der 'MyDocuments' Liste
function DownloadCenter_DelFromMyDocuments(id) 
{
  downloadCenter.d_id.value=''+id;
  downloadCenter.cmd.value='dc_del';
  downloadCenter.submit();
}
// Startet den Download von 'MyDocuments'
function DownloadCenter_GetMyDocuments(id) {
  downloadCenter.cmd.value='dc_get';
  downloadCenter.submit();
}
// -- muss raus
function DownloadCenter_ViewDocument(id) {
  var v = window.open("/DownloadCenter.aspx?cmd=dc_view&id=" + id, "Dokumentansicht","");
}
// Schreibt die Anzahl der im 'MyDocuments' gesammelten Dokumente in ein div
function DownloadCenter_GetCount(prefix,link,text) 
{
  if(document.cookie) {
    var c = GetCookie(prefix+"DownloadCenter_Count");
    var o = document.getElementById("DownloadCount");
    if(c == '') c = "0";
    if(c == 1) 
      o.innerHTML = '<span><a href="' + link + '">' +
        '<img src="/img/system/linkdot_marg.gif" alt="" />' + text + 
        '<strong>' + c + ' Download</strong></a></span>';
    else
      o.innerHTML = '<span><a href="' + link + '">' +
        '<img src="/img/system/linkdot_marg.gif" alt="" />' + text + 
        '<strong>' + c + ' Downloads</strong></a></span>'; 
  }
}
// Ruft den DownloadCenter aus der Marginalia auf
function DownloadCenter_View(action) 
{
  try {
    var o = document.getElementById("downloadCenterM");
    if(!o) return;
    o.action = action;
    o.cmd.value = "dc_view";
    o.submit();
  } catch(e) { }
}
// Dokument aus der Marginalia zu 'MyDocuments' hinzuf?gen
function DownloadCenter_AddToMyDocumentsM(id) {
  try { 
    var o = document.getElementById('downloadCenterM');
    if(!o) return;
    o.d_id.value=''+id;
    o.cmd.value='dc_add';
    o.submit();
  } catch(e) { }
}

function openPodcast(theURL)
{
    winName = window.open(theURL,'Podcast','location=no,menubar=no,resizable=no,scrollbars=yes,status=no,toolbar=no,width=938,height=756');
    if(winName == null || winName.closed){
    	window.open(theURL,winName,features);
    }
    else{winName.location.href = theURL;}
    if (!winName.closed)
    winName.focus();
}









