var fixed_elementsX=new Array();var fixed_elementsY=new Array();var fixed_loaded=false;function setAttributeOnArray(obj,attribut,value){for(var i=0;i<obj.length;i++){eval("obj [ i ]."+attribut+" = value;")}}function WindowAttachEvent(eventName,functionCall){eval("var formerOnload = window."+eventName);var tempFunctionCall="";var tempSeparator="";tempFunctionCall+="window."+eventName+" = function () { formerOnload ? formerOnload ():''; functionCall (";for(var i=2;i<arguments.length;i++){tempFunctionCall+=tempSeparator+"'"+arguments[i]+"'";tempSeparator=","}tempFunctionCall+="); }";eval(tempFunctionCall)}sfHover_NoHide_selects=new Array("SiteLocatorLinks");function hideTags(g,f){for(var d=0;d<g.length;d++){for(var c=0;c<document.getElementsByTagName(g[d]).length;c++){if(f.length>0){var h=false;for(var b=0;b<f.length;b++){if(document.getElementsByTagName(g[d])[c].name==f[b]){h=true}}if(!h){document.getElementsByTagName(g[d])[c].style.visibility="hidden"}}else{document.getElementsByTagName(g[d])[c].style.visibility="hidden"}}}}function showTags(g,f){for(var d=0;d<g.length;d++){for(var c=0;c<document.getElementsByTagName(g[d]).length;c++){if(f.length>0){var h=false;for(var b=0;b<f.length;b++){if(document.getElementsByTagName(g[d])[c].name==f[b]){h=true}}if(!h){document.getElementsByTagName(g[d])[c].style.visibility="visible"}}else{document.getElementsByTagName(g[d])[c].style.visibility="visible"}}}}String.prototype.leftTrim=function(){return(this.replace(/^\s+/,""))};String.prototype.rightTrim=function(){return(this.replace(/\s+$/,""))};String.prototype.Trim=function(){return(this.replace(/\s+$/,"").replace(/^\s+/,""))};String.prototype.superTrim=function(){return(this.replace(/\s+/g," ").replace(/\s+$/,"").replace(/^\s+/,""))};String.prototype.removeWhiteSpaces=function(){return(this.replace(/\s+/g,""))};function getObjInnerText(b){if(b.innerText){return b.innerText}else{if(b.textContent){return b.textContent}else{return false}}}function moveCurrentOpacity(f,b,d){if(document.getElementById(f)){if(!d){var d=250
}var c=100;if(document.getElementById(f).style.opacity<100){c=document.getElementById(f).style.opacity*100}moveOpacity(f,c,b,d)}}function moveOpacity(h,f,b,c){if(document.getElementById(h)){if(!c){var c=1000}var d=Math.round(c/100);var g=0;if(f>b){for(i=f;i>=b;i-=5){setTimeout("changeOpacity ( '"+h+"', "+i+" )",(g*d));g++}}else{if(f<b){for(i=f;i<=b;i++){setTimeout("changeOpacity ( '"+h+"', "+i+" )",(g*d));g++}}}}}function changeOpacity(d,c){if(document.getElementById(d)){if(window.XMLHttpRequest&&window.ActiveXObject){}else{var b=document.getElementById(d).style;b.opacity=(c/100);b.MozOpacity=(c/100);b.KhtmlOpacity=(c/100);b.filter="alpha(opacity="+c+")";if(c==100){b.filter=""}}}}function blendImage(f,b,d,c){if(!c){var c=1000}if(!document.getElementById(f)||!document.getElementById(b)){return false}document.getElementById(f).style.backgroundImage="url("+document.getElementById(b).src+")";changeOpacity(b,0);document.getElementById(b).src=d;moveCurrentOpacity(b,100,c);return true}var openPopupLeft=0;var openPopupTop=0;var openPopupDefaultClass="";var PopupOpened=false;function openPopup(b){if(PopupOpened){noFade=true;closePopup(noFade)}PopupOpened=true;changeOpacity("Popup",0);document.getElementById("Popup").style.display="block";openPopupLeft=document.getElementById("Popup").offsetLeft;openPopupTop=document.getElementById("Popup").offsetTop;document.getElementById("Popup").style.left=openPopupLeft+getScrollX()+"px";document.getElementById("Popup").style.top=openPopupTop+getScrollY()+"px";if(document.all){hideTags(new Array("select"),new Array())}if(!b){moveCurrentOpacity("Main",30);moveCurrentOpacity("Popup",100)}else{changeOpacity("Popup",100)}}function closePopup(b){if(PopupOpened){document.getElementById("Popup").innerHTML="";document.getElementById("Popup").style.left=openPopupLeft+"px";document.getElementById("Popup").style.top=openPopupTop+"px";document.getElementById("Popup").style.display="none";if(document.all){showTags(new Array("select"),new Array())}if(!b){moveCurrentOpacity("Main",100);
moveCurrentOpacity("Popup",0)}}PopupOpened=false}var GlobalErrors=new Array();GlobalErrors.DE=new Array();GlobalErrors.EN=new Array();GlobalErrors.FR=new Array();GlobalErrors.ES=new Array();GlobalErrors.DE["addBookmark"]="Bookmark setzen nicht möglich!";GlobalErrors.EN["addBookmark"]="Unable to create Bookmark";GlobalErrors.FR["addBookmark"]="Bookmark setzen nicht möglich!";GlobalErrors.ES["addBookmark"]="Bookmark setzen nicht möglich!";function getError(b){if(typeof(navigator.language)!="undefined"){var c=navigator.language.toUpperCase()}else{if(typeof(navigator.browserLanguage)!="undefined"){var c=navigator.browserLanguage.toUpperCase()}else{var c="EN"}}if(c="EN-US"){c="EN"}if(GlobalErrors[c]){if(GlobalErrors[c][b]){return GlobalErrors[c][b]}}return"Error ("+c+"): "+b}function openPDF(c,f,b,d,g){if(!d){var d="dependent=yes,resizable=yes,status=yes"}if(!g){var g="New_PDF_Window"}openHTML(c,f,b,d,g)}function openDOC(c,f,b,d,g){if(!d){var d="dependent=yes,resizable=yes,status=yes"}if(!g){var g="New_DOC_Window"}openHTML(c,f,b,d,g)}function openXLS(c,f,b,d,g){if(!d){var d="dependent=yes,resizable=yes,status=yes"}if(!g){var g="New_XLS_Window"}openHTML(c,f,b,d,g)}function openIMG(b,c){if(!c){var c=b}document.getElementById("Popup").innerHTML='<div class="PopupIMG"><div class="CloseButton" onClick="closePopup()"><div class="PopupTitle">'+c+'</div></div><div class="Image">  <img src="'+b+'" alt="['+c+']" onClick="closePopup()"></div></div>';openPopup()}function openHTML(c,f,b,d,g){if(!d){var d="dependent=yes,resizable=yes,status=yes,scrollbars=yes,menubar=yes,location=yes,toolbar=yes"}if(f>0){d=d+",width="+f}if(b>0){d=d+",height="+b}if(!g){var g="New_HTML_Window"}var h=window.open("/icons/ecblank.gif",g,d);h.location.href=c;h.focus()}function addBookmark(d){if(!d||d==""){var d=window.title}var c=location.href;if(window.sidebar){window.sidebar.addPanel(d,c,"")}else{if(window.opera&&window.print){var b=document.createElement("a");b.setAttribute("rel","sidebar");b.setAttribute("href",c);
b.setAttribute("title",d);b.click()}else{if(document.all){window.external.AddFavorite(c,d)}else{alert(getError("addBookmark"))}}}}function getScrollX(){if(document.all){if(document.documentElement&&document.documentElement.scrollTop){return document.documentElement.scrollLeft}else{if(document.body){return document.body.scrollLeft}else{return false}}}else{return window.pageXOffset}}function getScrollY(){if(document.all){if(document.documentElement&&document.documentElement.scrollTop){return document.documentElement.scrollTop}else{if(document.body){return document.body.scrollTop}else{return false}}}else{return window.pageYOffset}}function setCookie(d,g,b,j,f,h){var c=d+"="+escape(g)+((b)?"; expires="+b.toGMTString():"")+((j)?"; path="+j:"")+((f)?"; domain="+f:"")+((h)?"; secure":"");document.cookie=c}function getCookie(d){var c=document.cookie;var g=d+"=";var f=c.indexOf("; "+g);if(f==-1){f=c.indexOf(g);if(f!=0){return null}}else{f+=2}var b=document.cookie.indexOf(";",f);if(b==-1){b=c.length}return unescape(c.substring(f+g.length,b))}function deleteCookie(b,d,c){if(getCookie(b)){document.cookie=b+"="+((d)?"; path="+d:"")+((c)?"; domain="+c:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT"}}function fixDate(c){var d=new Date(0);var b=d.getTime();if(b>0){c.setTime(c.getTime()-b)}}function directFWD(b){window.location.replace(b)}function getUrlParameter(c){c=c.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var b="[\\?&]"+c+"=([^&#]*)";var f=new RegExp(b);var d=f.exec(window.location.href);if(d==null){return""}else{return d[1]}}function switchDesign(b){setCookie("currentDesign",b);self.location.reload()}function flippDesign(){if(getCookie("currentDesign")!="em"){setCookie("currentDesign","em")}else{setCookie("currentDesign","")}self.location.reload()}
/*!Do not delete this function!!.
You need this function to use the validation of the formulargenerator.*/
function getFieldValue(b,f){theValue="";sep=";";hits=0;f=f.toLowerCase();if(f=="text"){return(b.value)}if(f=="textarea"){return(b.value)
}if(f=="select"){for(i=0;i<b.options.length;i++){if(b.options[i].selected){hits++;if(b.options[i].value==""){e=b.options[i].text}else{e=b.options[i].value}if(hits==1){theValue=e}else{theValue+=sep+e}}}return(theValue)}if(f=="dropdown"){if(b.options[0].selected){return("")}return("True")}if(f=="mail"){var c=b.value;if(c==""){return("")}else{var d=c.search(/.+@..+\...+/);if(d==-1){return("")}var d=c.search(/\s/);if(d!=-1){return("")}}return(c)}if(f=="checkbox"||f=="radiobutton"){if(b.value==null){for(i=0;i<b.length;i++){if(b[i].checked){hits++;if(hits==1){theValue=b[i].value}else{theValue+=sep+b[i].value}}}}else{if(b.checked){theValue=b.value}}return theValue}else{return(b.value)}}function SelectBoxNavi(b){this.create=function(){b.className+=" ContextNavigationSelectBox";var f=b.getElementsByTagName("UL")[0];var d=this.getLI(f);f.innerHTML="<select onchange=\"window.open(this.value,'_top','dependent=yes,resizable=yes,status=yes,scrollbars=yes,menubar=yes,toolbar=yes,location=yes');\"></select>";f.getElementsByTagName("SELECT")[0].options[0]=new Option("please choose","");for(var c=0;c<d.length;c+=2){f.getElementsByTagName("SELECT")[0].options[c/2+1]=new Option(d[c],d[c+1])}};this.getLI=function(c,l){var j=new Array();var f=c.firstChild;if(!l){l=0}var g="";for(var h=0;h<l;h++){g+=this.hierarchyPrefix}while(f!=null){if(f.nodeName=="LI"){var k=f.getElementsByTagName("UL");var d=f.getElementsByTagName("A");if(d.length>0){j.push(g+getObjInnerText(d[0]).superTrim(),d[0].href)}if(k.length>0){j=j.concat(this.getLI(k[0],l+1))}}f=f.nextSibling}return j};this.hierarchyPrefix="  "}function oscClass(){this.originalSrc=""}oscClass.prototype.getOSCParams=function(){var b;var o,j;b="";if(self.innerHeight){o=self.innerWidth;j=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){o=document.documentElement.clientWidth;j=document.documentElement.clientHeight}else{if(document.body){o=document.body.clientWidth;j=document.body.clientHeight}}}var f;if(navigator.language){f=navigator.language
}else{f=navigator.browserLanguage}if(navigator.cookieEnabled==true){var h;var n=false;if(document.cookie){h=document.cookie;var k=h.indexOf("osc=");if(k>-1){var m=h.indexOf(";",k+4);if(m>-1){h=h.substring(k+4,h.indexOf(";",k))}else{h=h.substring(k+4)}n=true}}if(!n){var g=new Date();h=g.getTime().toString()+Math.floor(100000*Math.random()).toString()}var g=new Date();a=new Date(g.getTime()+1000*60*30);document.cookie="osc="+h+"; PATH=/; expires="+a.toGMTString()+";";b="&osc="+escape(h)}b+="&sw="+screen.width;b+="&sh="+screen.height;b+="&cd="+screen.colorDepth;b+="&ww="+o;b+="&wh="+j;b+="&bl="+escape(f);b+="&ua="+escape(navigator.userAgent);b+="&ref="+escape(document.referrer);b+="&url="+escape(document.URL);return b};oscClass.prototype.img=function(d){var c="http://bayercropscience.odoscope.com/sp2.gif?"+d+osc.getOSCParams();osc.originalSrc=c;var b=document.getElementById("oscImg");if(b==null){document.write('<img id="oscImg" src="'+c+'" alt="oscImg" />')}else{b.src=c}};oscClass.prototype.evt=function(b,d){var c=document.getElementById("oscImg");if(c!=null){c.src=osc.originalSrc+"&"+escape(b)+"="+escape(d)}return true};oscClass.prototype.ContentLinkChecker=function(){$('.Content a[href*=/$file/]:not([onclick*="osc.evt"]):not([onclick*=openHTML]):not([onclick*=openPDF]):not([onclick*=openDOC]):not([onclick*=openIMG]):not([href^="javascript:"]):not([class*=noOdoscopeRewrite])').each(function(b){$(this).bind("click",function(){osc.evt("Download",this.href)})});$('.TC a[href*=/$file/]:not([onclick*="osc.evt"]):not([onclick*=openHTML]):not([onclick*=openPDF]):not([onclick*=openDOC]):not([onclick*=openIMG]):not([href^="javascript:"]):not([class*=noOdoscopeRewrite])').each(function(b){$(this).bind("click",function(){osc.evt("Download",this.href)})})};function OdoscopeParameter(f){var o,k;if(self.innerHeight){o=self.innerWidth;k=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){o=document.documentElement.clientWidth;k=document.documentElement.clientHeight
}else{if(document.body){o=document.body.clientWidth;k=document.body.clientHeight}}}var b;if(navigator.language){b=navigator.language}else{b=navigator.browserLanguage}if(navigator.cookieEnabled==true){var j;var h=true;if(document.cookie){j=document.cookie;var m=j.indexOf("osc=");if(m>-1){var n=j.indexOf(";",m+4);if(n>-1){j=j.substring(m+4,j.indexOf(";",m))}else{j=j.substring(m+4)}h=false}}if(h){var g=new Date();j=g.getTime().toString()+Math.floor(100000*Math.random()).toString();document.cookie="osc="+j+"; PATH=/"}f+="&osc="+escape(j)}f+="&sw="+screen.width;f+="&sh="+screen.height;f+="&cd="+screen.colorDepth;f+="&ww="+o;f+="&wh="+k;f+="&bl="+escape(b);f+="&ua="+escape(navigator.userAgent);f+="&ref="+escape(document.referrer);f+="&url="+escape(document.URL);return f}if(typeof BCSNU==="undefined"){var BCSNU={}}BCSNU.Ajax={Options:{Cache:true},LOADING:'<div class="AjaxLoading"><img src="../files/ico/$file/loading.gif" class="Loading" alt=""></div>',oSource:this,get:function(d,f,b,c){this.oSource.handleRequest=c;$("#"+b).html(this.LOADING);$.ajax({type:"GET",url:d,cache:BCSNU.Ajax.Options.Cache,timeout:60000,success:function(g){BCSNU.Ajax.oSource.handleRequest(b,g)},error:function(g,j,h){$("#"+b).html('<div class="ajax-error">'+ttw_labels.ajax.error+"</div>")}})},getHTML:function(b){var g=b.Url;var d=b.ID;var c=b.CallBackFunction;if(c===""){fCallBack=c}else{fCallBack=BCSNU.DOM.setContentByID}var f=b.Cache;if(f!==true){BCSNU.Ajax.Options.Cache=f}this.get(g,"html",d,fCallBack)}};BCSNU.DOM={setContentByID:function(b,c){if($("#"+b).length>0){$("#"+b).html(c)}},appendContentByID:function(b,c){if($("#"+b).length>0){$("#"+b).append(c)}}};BCSNU.Search={submit:function(d,b){var c=d.elements[b].value.toLowerCase();if(c!==""&&c!=="quicksearch"){return true}else{alert(BCSNU_Labels.search_validation_error);return false}}};BCSNU.Form={openElementLink:function(b){var c=getFieldValue(b,"select");if(c.indexOf("http://")!==-1){location.href=c}else{if((c!=="")&&(c!=="#")){location.href=BCSdefault.dbpath+"/id/"+c
}else{}}},encodeMail:function(b,h){var g=new Array("@",".","-","a","e","i","o","u");var f=new Array("#1*","#2*","#3*","#10*","#11*","#12*","#13*","#14*");var d=0;for(var c=0;c<g.length;c++){d=0;while((b.indexOf(f[c])>-1)||(d>500)){var b=b.replace(f[c],g[c]);d++}}location.href="mailto:"+b;if(h===true){}else{return false}}};BCSNU.Picture={enlarge:function(f,d){var b="width=850,height=650,scrollbars=auto,resizable=yes,menubar=no,location=no,toolbar=no,status=no";var c="../id/ImagePopUp?open&l="+BCSdefault.language+"&imgdocid="+f+"&pdocid="+d;bigpicwin=window.open(c,"NewsPictureBig",b);bigpicwin.focus();return false}};BCSNU.NewWindow={open:function(b){openNewWindow(b,"400","200","0","0","scrollbars=no,resizable=no")}};BCSNU.Crops={openContactsAll:function(f,g,d,c){var b={};b.Url="../id/CropSalesPeopleByAreaCountry?open&l="+c+"&cpl="+f+"&cpc="+g+"&cpn="+d;b.ID="SalesContactsAll";BCSNU.Ajax.getHTML(b);return false},setContentTableByID:function(b,c){BCSNU.DOM.setContentByID(b,c)},setCropTable:function(d,c){if(d===""){alert(BCSNU_Labels.crops_error_crop_type)}else{var b={};b.Url="../id/CropTable?open&tcl="+BCSdefault.language+"&tcp="+d+"&tcd="+c;b.ID="CropTableContainer";BCSNU.Ajax.getHTML(b)}},showSalesContactsAll:function(){$("#SalesContactsAllContainer").hide()}};BCSNU.CountryContacts={setOverview:function(c){var b={};b.Url="../id/CountryContactsOverview?open&l="+BCSdefault.language+"&country="+c;b.ID="CountryContactsContainer";BCSNU.Ajax.getHTML(b)}};BCSNU.Log={setQuery:function(d){var b="";for(var c in d){b=b+"&"+c+"="+d[c]}return b},createDocument:function handleerror(d,c,b){jQuery.post(TTW.dbpath+"/LogJSError?openAgent",{msg:d,url:c,line:b,useragent:navigator.userAgent,appcodename:navigator.appCodeName,appname:navigator.appName,appversion:navigator.appVersion,applanguage:navigator.language,platform:navigator.platform,cookieenabled:navigator.cookieEnabled});return true}};

