/*<script type="text/javascript" charset="utf-8" src="/scripts/standard.js"></script>*/
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 videoOpen(theURL) 
{ 
winName = window.open(theURL,'BayerWebMedia','location=no,menubar=no,resizable=no,scrollbars=yes,status=no,toolbar=no,width=937,height=730'); 
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 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();
}


toggleStyleStart();

function toggleStyle() {

  var title = getActiveStyleSheet();

if(title == "contrast"){
  createCookie("style", "color", 365);
  setActiveStyleSheet("color")
}
else
{
  createCookie("style", "contrast", 365);
  setActiveStyleSheet("contrast")
}
}


function toggleStyleStart(title) {


var cookie = readCookie("style");
var title = "color";

if(cookie != null && cookie.length > 0)
{
  title = cookie;
}

if(title == "contrast"){
  setActiveStyleSheet("contrast")
}
else
{
  setActiveStyleSheet("color")
}
}

function setActiveStyleSheet(title) {
  
if(title == "contrast")
{
  //alert("setze contrast");
  document.getElementById("style_color").href = "/styles/contrast.css";
}
else
{
  //alert("setze color");
  document.getElementById("style_color").href = "/styles/color.css";
} 

}



function getActiveStyleSheet()
  {
    var temp;
    temp = document.getElementById("style_color").href;
    if(temp.indexOf("color") != -1)
    {
      return "color";      
    }
    else
    {
      return "contrast";
    }  
  return null;
}

function getPreferredStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1
       && a.getAttribute("rel").indexOf("alt") == -1
       && a.getAttribute("title")
       ) return a.getAttribute("title");
  }
  return null;
}

function createCookie(name,value,days) {
  if (days) {
    var date = new Date();
    date.setTime(date.getTime()+(days*24*60*60*1000));
    var expires = "; expires="+date.toGMTString();
  }
  else expires = "";
  document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
  var nameEQ = name + "=";
  var ca = document.cookie.split(';');
  for(var i=0;i < ca.length;i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') c = c.substring(1,c.length);
    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
  }
  return null;
}




/*swfobject.js*/
/**
 * SWFObject v1.4: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
 *
 * SWFObject is (c) 2006 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 * **SWFObject is the SWF embed script formerly known as FlashObject. The name was changed for
 *   legal reasons.
 */
if(typeof deconcept=="undefined"){var deconcept=new Object();}
if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}
if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}
deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){
if(!document.createElement||!document.getElementById){return;}
this.DETECT_KEY=_b?_b:"detectflash";
this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);
this.params=new Object();
this.variables=new Object();
this.attributes=new Array();
if(_1){this.setAttribute("swf",_1);}
if(id){this.setAttribute("id",id);}
if(w){this.setAttribute("width",w);}
if(h){this.setAttribute("height",h);}
if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}
this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion(this.getAttribute("version"),_7);
if(c){this.addParam("bgcolor",c);}
var q=_8?_8:"high";
this.addParam("quality",q);
this.setAttribute("useExpressInstall",_7);
this.setAttribute("doExpressInstall",false);
var _d=(_9)?_9:window.location;
this.setAttribute("xiRedirectUrl",_d);
this.setAttribute("redirectUrl","");
if(_a){this.setAttribute("redirectUrl",_a);}};
deconcept.SWFObject.prototype={setAttribute:function(_e,_f){
this.attributes[_e]=_f;
},getAttribute:function(_10){
return this.attributes[_10];
},addParam:function(_11,_12){
this.params[_11]=_12;
},getParams:function(){
return this.params;
},addVariable:function(_13,_14){
this.variables[_13]=_14;
},getVariable:function(_15){
return this.variables[_15];
},getVariables:function(){
return this.variables;
},getVariablePairs:function(){
var _16=new Array();
var key;
var _18=this.getVariables();
for(key in _18){
_16.push(key+"="+_18[key]);}
return _16;
},getSWFHTML:function(){
var _19="";
if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){
if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");}
_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
var _1a=this.getParams();
for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}
var _1c=this.getVariablePairs().join("&");
if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}
_19+="/>";
}else{
if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");}
_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
var _1d=this.getParams();
for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}
var _1f=this.getVariablePairs().join("&");
if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}
_19+="</object>";}
return _19;
},write:function(_20){
if(this.getAttribute("useExpressInstall")){
var _21=new deconcept.PlayerVersion([6,0,65]);
if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){
this.setAttribute("doExpressInstall",true);
this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));
document.title=document.title.slice(0,47)+" - Flash Player Installation";
this.addVariable("MMdoctitle",document.title);}}
if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){
var n=(typeof _20=="string")?document.getElementById(_20):_20;
n.innerHTML=this.getSWFHTML();
return true;
}else{
if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}
return false;}};
deconcept.SWFObjectUtil.getPlayerVersion=function(_23,_24){
var _25=new deconcept.PlayerVersion([0,0,0]);
if(navigator.plugins&&navigator.mimeTypes.length){
var x=navigator.plugins["Shockwave Flash"];
if(x&&x.description){_25=new deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}
}else{try{
var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
for(var i=3;axo!=null;i++){
axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);
_25=new deconcept.PlayerVersion([i,0,0]);}}
catch(e){}
if(_23&&_25.major>_23.major){return _25;}
if(!_23||((_23.minor!=0||_23.rev!=0)&&_25.major==_23.major)||_25.major!=6||_24){
try{_25=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}
catch(e){}}}
return _25;};
deconcept.PlayerVersion=function(_29){
this.major=parseInt(_29[0])!=null?parseInt(_29[0]):0;
this.minor=parseInt(_29[1])||0;
this.rev=parseInt(_29[2])||0;};
deconcept.PlayerVersion.prototype.versionIsValid=function(fv){
if(this.major<fv.major){return false;}
if(this.major>fv.major){return true;}
if(this.minor<fv.minor){return false;}
if(this.minor>fv.minor){return true;}
if(this.rev<fv.rev){return false;}return true;};
deconcept.util={getRequestParameter:function(_2b){
var q=document.location.search||document.location.hash;
if(q){
var _2d=q.indexOf(_2b+"=");
var _2e=(q.indexOf("&",_2d)>-1)?q.indexOf("&",_2d):q.length;
if(q.length>1&&_2d>-1){
return q.substring(q.indexOf("=",_2d)+1,_2e);
}}return "";}};
if(Array.prototype.push==null){
Array.prototype.push=function(_2f){
this[this.length]=_2f;
return this.length;};}
var getQueryParamValue=deconcept.util.getRequestParameter;
var FlashObject=deconcept.SWFObject; // for backwards compatibility
var SWFObject=deconcept.SWFObject;


/*menu.js*/
    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); 
  }

/*lefthandmenu.js*/
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);


/*zoom.js*/
function zoom(factor)
{
  var size = "100%";
  var obj = document.getElementById("BaseContent");

  if (obj.style.fontSize != null &&
      obj.style.fontSize != "")
    { size = obj.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();
  var obj = document.getElementById("BaseContent");
  obj.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;
}



/*support.js*/
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 "";
}




/*downloadcenter.js*/
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>'; 
  }
}
function DownloadCenter_View(action) {
  var o = document.forms["downloadCenterM"];
  o.action = action;
  o.cmd.value = "dc_view";
  o.submit();
}





















(function($){var q=function(a){var b=a.rows;var d=b.length;var e=[];for(var i=0;i<d;i++){var f=b[i].cells;var g=f.length;for(var j=0;j<g;j++){var c=f[j];var h=c.rowSpan||1;var n=c.colSpan||1;var o=-1;if(!e[i]){e[i]=[]}var m=e[i];while(m[++o]){}c.realIndex=o;for(var k=i;k<i+h;k++){if(!e[k]){e[k]=[]}var p=e[k];for(var l=o;l<o+n;l++){p[l]=1}}}}};$.fn.columnHover=function(e){var f=$.extend({hoverClass:'hover',eachCell:false,includeSpans:true,ignoreCols:[]},e);var g=function(b,c,d){var a=c[b.realIndex];var i=0;if($(f.ignoreCols).index(b.realIndex+1)!=-1){return}while(++i<b.colSpan){a=a.concat(c[b.realIndex+i])}if(d){$(a).addClass(f.hoverClass)}else{$(a).removeClass(f.hoverClass)}};var h=function(a,b){a.bind('mouseover',function(){g(this,b,true)}).bind('mouseout',function(){g(this,b,false)})};return this.each(function(){var a=[];var b=this;var d,row,c,tboI,rowI,cI,rI,s;if(!b.tBodies||!b.tBodies.length||!b.tHead||!f.hoverClass.length){return}q(b);for(tboI=0;tboI<b.tBodies.length;tboI++){d=b.tBodies[tboI];for(rowI=0;rowI<d.rows.length;rowI++){row=d.rows[rowI];for(cI=0;cI<row.cells.length;cI++){c=row.cells[cI];if(!f.includeSpans&&c.colSpan>1){continue}s=(f.includeSpans)?c.colSpan:1;while(--s>=0){rI=c.realIndex+s;if(!a[rI]){a[rI]=[]}a[rI].push(c)}if(f.eachCell){h($(c),a)}}}}h($('td, th',b.tHead),a);if(f.eachCell&&b.tFoot){h($('td, th',b.tFoot),a)}})}})(jQuery);














jQuery.noConflict();


function striper(parentElementTag, parentElementClass, childElementTag, styleClasses) {
	var l=0,styles = styleClasses.split(',');
	jQuery.each( jQuery(parentElementTag+"."+parentElementClass), function(j, m){	
		jQuery.each( jQuery(m).children(childElementTag), function(i, n){	
		l = (i+(styles.length)) % styles.length;
		jQuery(this).addClass(styles[l]);
		});	
	});	

}
function simpleStriper(ElementTag, ElementClass, styleClasses) {
	var l=0,styles = styleClasses.split(',');
	jQuery.each( jQuery(ElementTag+"."+ElementClass), function(i, n){
		l = (i+(styles.length)) % styles.length;
		jQuery(this).addClass(styles[l]);
	});	
}
function specialstriper(parentElementTag, parentElementClass, childElementTag, styleClasses) {
	var l=0,styles = styleClasses.split(',');
	jQuery.each( jQuery(parentElementTag+"."+parentElementClass), function(j, m){	
		jQuery.each( jQuery("div.checked > div > ul").children(childElementTag), function(i, n){	
		l = (i+(styles.length)) % styles.length;
		jQuery(this).addClass(styles[l]);
		});	
	});	

}


function addEvent(obj, evType, fn){ 
  if (obj.addEventListener){ 
    obj.addEventListener(evType, fn, false); 
    return true; 
  } else if (obj.attachEvent){ 
    var r = obj.attachEvent("on"+evType, fn); 
    return r; 
  } else { 
    return false; 
  } 
}
// if the browser can deal with DOM, addEventlisteners  
if(document.getElementById && document.createTextNode){
  addEvent(window, 'load', initBehaviourLayer);
}
function initBehaviourLayer(){

	/*striper('tbody', 'striped', 'tr', 'even,odd');
	simpleStriper('div', 'news', 'even,odd');
	simpleStriper('ul', 'checked', 'even,odd');
  specialstriper('div', 'checked', 'li', 'even,odd');*/

	//jQuery('.newtable > table > tbody > tr > td:last-child').css({backgroundColor: '#ebf6fa'});
	
/*  jQuery(".newtable > tbody > tr").not(":last-child")
.children("td:last-child").addClass("em");*/

  jQuery(".emphlast > tbody > tr").children("td:last-child").addClass("em");
  jQuery(".newtable > tbody > tr > td > p.x0-allgem-fussnote-5-5pt").parent().addClass("newlegal");


for (i = 1; i <= 40; i++) {
  jQuery(".col"+i+"emph > tbody > tr").children("td:nth-child("+i+")").addClass("em");
  jQuery(".col"+i+"borderright > tbody > tr").children("td:nth-child("+i+")").addClass("borderright");
  jQuery(".colth"+i+"borderright > tbody > tr").children("th:nth-child("+i+")").addClass("borderright");
}
  jQuery("table.separate").css({"border-collapse" : "separate"});
  jQuery("table.separate").attr({"cellpadding" : "0"});
  jQuery("table.separate").attr({"cellspacing" : "0"});


  jQuery("table.separate > tbody > tr.bold").next("tr.bold").children("td").css({"border-top" : "0"});


jQuery("td:empty").text(" ");

	jQuery(".newtable > tbody > tr:first").addClass("em");

  jQuery("table.newtable > tbody > tr > td:first-child").addClass("leftaligned");
  jQuery("table.newtable > tbody > tr > th:first-child").addClass("leftaligned");

	//jQuery('.newtable > table > thead > tr:first').css({backgroundColor: '#ebf6fa'});


jQuery(".newtable > tbody > tr:not(.blank) > td").hover(
      function () {
        jQuery(this).parent("tr").addClass("betterhover");
      }, 
      function () {
        jQuery(this).parent("tr").removeClass("betterhover");
      }
    );


    jQuery("#divfixed").click(function () { 
      jQuery(this).hide();
      jQuery("#container").hide();
      jQuery("#container").empty();
      jQuery("body").css({ overflow:"auto" });
    });



	try {document.execCommand("BackgroundImageCache", false, true);} catch(err) {}
	
	
}




function perform(){
  if(document.getElementById && document.createTextNode){
    document.write('<style type="text/css">');
    document.write('#navi{display:none;}');
    document.write('.tabber{display:none;}');
    /* Optional: Temporarily hide Navigation and Tabs */
    document.write('#jswarning{display:none;}');

    document.write('<\/style>');

  }
}

