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(n,b,o,e,k,l,g,f,d,m){if(!document.getElementById){return}this.DETECT_KEY=m?m:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(n){this.setAttribute("swf",n)}if(b){this.setAttribute("id",b)}if(o){this.setAttribute("width",o)}if(e){this.setAttribute("height",e)}if(k){this.setAttribute("version",new deconcept.PlayerVersion(k.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(l){this.addParam("bgcolor",l)}var a=g?g:"high";this.addParam("quality",a);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var j=(f)?f:window.location;this.setAttribute("xiRedirectUrl",j);this.setAttribute("redirectUrl","");if(d){this.setAttribute("redirectUrl",d)}};deconcept.SWFObject.prototype={useExpressInstall:function(a){this.xiSWFPath=!a?"expressinstall.swf":a;this.setAttribute("useExpressInstall",true)},setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return(this.attributes[a])?this.attributes[a]:""},addParam:function(b,a){this.params[b]=a},getParams:function(){return this.params},addVariable:function(b,a){this.variables[b]=a},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var c=new Array();var b;var a=this.getVariables();for(b in a){c[c.length]=b+"="+a[b]}return c},getSWFHTML:function(){var b="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}b='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';b+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var f=this.getParams();for(var e in f){b+=[e]+'="'+f[e]+'" '}var d=this.getVariablePairs().join("&");if(d.length>0){b+='flashvars="'+d+'"'}b+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}b='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';b+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var c=this.getParams();for(var e in c){b+='<param name="'+e+'" value="'+c[e]+'" />'}var a=this.getVariablePairs().join("&");if(a.length>0){b+='<param name="flashvars" value="'+a+'" />'}b+="</object>"}return b},write:function(b){if(this.getAttribute("useExpressInstall")){var a=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(a)&&!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 c=(typeof b=="string")?document.getElementById(b):b;c.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var f=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var a=navigator.plugins["Shockwave Flash"];if(a&&a.description){f=new deconcept.PlayerVersion(a.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var b=1;var c=3;while(b){try{c++;b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+c);f=new deconcept.PlayerVersion([c,0,0])}catch(d){b=null}}}else{try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(d){try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");f=new deconcept.PlayerVersion([6,0,21]);b.AllowScriptAccess="always"}catch(d){if(f.major==6){return f}}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(d){}}if(b!=null){f=new deconcept.PlayerVersion(b.GetVariable("$version").split(" ")[1].split(","))}}}return f};deconcept.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major){return false}if(this.major>a.major){return true}if(this.minor<a.minor){return false}if(this.minor>a.minor){return true}if(this.rev<a.rev){return false}return true};deconcept.util={getRequestParameter:function(c){var d=document.location.search||document.location.hash;if(c==null){return d}if(d){var b=d.substring(1).split("&");for(var a=0;a<b.length;a++){if(b[a].substring(0,b[a].indexOf("="))==c){return b[a].substring((b[a].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var b=document.getElementsByTagName("OBJECT");for(var c=b.length-1;c>=0;c--){b[c].style.display="none";for(var a in b[c]){if(typeof b[c][a]=="function"){b[c][a]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(a){return document.all[a]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;var Behaviour={list:new Array,register:function(a){Behaviour.list.push(a)},start:function(){Behaviour.addLoadEvent(function(){Behaviour.apply()})},apply:function(){for(h=0;sheet=Behaviour.list[h];h++){for(selector in sheet){list=document.getElementsBySelector(selector);if(!list){continue}for(i=0;element=list[i];i++){sheet[selector](element)}}}},addLoadEvent:function(a){var b=window.onload;if(typeof window.onload!="function"){window.onload=a}else{window.onload=function(){b();a()}}}};Behaviour.start();function getAllChildren(a){return a.all?a.all:a.getElementsByTagName("*")}document.getElementsBySelector=function(u){if(!document.getElementsByTagName){return new Array()}var o=u.split(" ");var f=new Array(document);for(var w=0;w<o.length;w++){token=o[w].replace(/^\s+/,"").replace(/\s+$/,"");if(token.indexOf("#")>-1){var r=token.split("#");var d=r[0];var q=r[1];var b=document.getElementById(q);if(d&&b.nodeName.toLowerCase()!=d){return new Array()}f=new Array(b);continue}if(token.indexOf(".")>-1){var r=token.split(".");var d=r[0];var c=r[1];if(!d){d="*"}var l=new Array;var g=0;for(var x=0;x<f.length;x++){var m;if(d=="*"){m=getAllChildren(f[x])}else{m=f[x].getElementsByTagName(d)}for(var t=0;t<m.length;t++){l[g++]=m[t]}}f=new Array;var p=0;for(var s=0;s<l.length;s++){if(l[s].className&&l[s].className.match(new RegExp("\\b"+c+"\\b"))){f[p++]=l[s]}}continue}if(token.match(/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/)){var d=RegExp.$1;var v=RegExp.$2;var a=RegExp.$3;var n=RegExp.$4;if(!d){d="*"}var l=new Array;var g=0;for(var x=0;x<f.length;x++){var m;if(d=="*"){m=getAllChildren(f[x])}else{m=f[x].getElementsByTagName(d)}for(var t=0;t<m.length;t++){l[g++]=m[t]}}f=new Array;var p=0;var e;switch(a){case"=":e=function(j){return(j.getAttribute(v)==n)};break;case"~":e=function(j){return(j.getAttribute(v).match(new RegExp("\\b"+n+"\\b")))};break;case"|":e=function(j){return(j.getAttribute(v).match(new RegExp("^"+n+"-?")))};break;case"^":e=function(j){return(j.getAttribute(v).indexOf(n)==0)};break;case"$":e=function(j){return(j.getAttribute(v).lastIndexOf(n)==j.getAttribute(v).length-n.length)};break;case"*":e=function(j){return(j.getAttribute(v).indexOf(n)>-1)};break;default:e=function(j){return j.getAttribute(v)}}f=new Array;var p=0;for(var s=0;s<l.length;s++){if(e(l[s])){f[p++]=l[s]}}continue}if(!f[0]){return}d=token;var l=new Array;var g=0;for(var x=0;x<f.length;x++){var m=f[x].getElementsByTagName(d);for(var t=0;t<m.length;t++){l[g++]=m[t]}}f=l}return f};var DEF_VAL="suchen";var AUTOSAVE_URL="www.alnatura.de";var NUM_RESULTS=5;var isSafari=((parseInt(navigator.productSub)>=20020000)&&(navigator.vendor.indexOf("Apple Computer")!=-1));var myrules={"input.search":function(a){if(isSafari){d_style("wrapper_div_top_search").background="none";d_style("wrapper_div_top_search").paddingTop="0";d_style("wrapper_div_top_search").paddingLeft="0";d_style("wrapper_div_top_search").marginRight="2px";d_style("input_top_search").width="133px";a.setAttribute("type","search");a.setAttribute("placeholder",DEF_VAL);a.setAttribute("autosave",AUTOSAVE_URL);a.setAttribute("results",NUM_RESULTS)}else{a.onfocus=function(){if(this.value==DEF_VAL){this.value=""}};a.onblur=function(){if(this.value==""){this.value=DEF_VAL}};if(a.value==""){a.value=DEF_VAL}}}};Behaviour.register(myrules);function getfiletype(a){a=a.substring(a.lastIndexOf(".")+1,a.length);document.write(a)}function stripsize(a){a=(a.replace(/,[0-9]*/,""));a=(a.replace(/\.[0-9]*/,""));document.write(a)}function markingField(a){d_obj(a).className="red";fieldsValid=false}function clearField(a){d_obj(a).className="normal"}function markingRadioSet(a){d_obj(a).className="radio_red";fieldsValid=false}function clearRadioSet(a){d_obj(a).className="radio_normal"}function addEvent(c,b,a){if(c.addEventListener){c.addEventListener(b,a,false)}else{if(c.attachEvent){c["e"+b+a]=a;c[b+a]=function(){c["e"+b+a](window.event)};c.attachEvent("on"+b,c[b+a])}}}function openNewWindow(a,c,b){a=a.replace(/#/g,"&");window.location.href=a}var ss={fixAllLinks:function(){var a=new Array();var d=document.getElementsByTagName("a");for(var b=0;b<d.length;b++){a.push(d[b])}var c=document.getElementsByTagName("area");for(var b=0;b<c.length;b++){a.push(c[b])}for(var b=0;b<a.length;b++){var e=a[b];if(e.href&&e.href.indexOf("#calendar_blatt")==-1){if((e.href&&e.href.indexOf("#")!=-1)&&((e.pathname==location.pathname)||("/"+e.pathname==location.pathname))&&(e.search==location.search)){ss.addEvent(e,"click",ss.smoothScroll)}}}},smoothScroll:function(j){if(window.event){target=window.event.srcElement}else{if(j){target=j.target}else{return}}if((target.nodeName.toLowerCase()!="a")&&(target.nodeName.toLowerCase()!="area")){target=target.parentNode}if((target.nodeName.toLowerCase()!="a")&&(target.nodeName.toLowerCase()!="area")){return}anchor=target.hash.substr(1);var g=document.getElementsByTagName("a");var a=null;for(var f=0;f<g.length;f++){var k=g[f];if(k.name&&(k.name==anchor)){a=k;break}}if(!a){a=document.getElementById(anchor)}if(!a){return true}var c=a.offsetLeft;var b=a.offsetTop;var d=a;while(d.offsetParent&&(d.offsetParent!=document.body)){d=d.offsetParent;c+=d.offsetLeft;b+=d.offsetTop}clearInterval(ss.INTERVAL);cypos=ss.getCurrentYPos();ss_stepsize=parseInt((b-cypos)/ss.STEPS);ss.INTERVAL=setInterval("ss.scrollWindow("+ss_stepsize+","+b+',"'+anchor+'")',10);if(window.event){window.event.cancelBubble=true;window.event.returnValue=false}if(j&&j.preventDefault&&j.stopPropagation){j.preventDefault();j.stopPropagation()}},scrollWindow:function(a,c,b){wascypos=ss.getCurrentYPos();isAbove=(wascypos<c);window.scrollTo(0,wascypos+a);iscypos=ss.getCurrentYPos();isAboveNow=(iscypos<c);if((isAbove!=isAboveNow)||(wascypos==iscypos)){window.scrollTo(0,c);clearInterval(ss.INTERVAL);location.hash=b}},getCurrentYPos:function(){if(document.body&&document.body.scrollTop){return document.body.scrollTop}if(document.documentElement&&document.documentElement.scrollTop){return document.documentElement.scrollTop}if(window.pageYOffset){return window.pageYOffset}return 0},addEvent:function(e,d,b,a){if(e.addEventListener){e.addEventListener(d,b,a);return true}else{if(e.attachEvent){var c=e.attachEvent("on"+d,b);return c}else{alert("Handler could not be removed")}}}};ss.STEPS=25;ss.addEvent(window,"load",ss.fixAllLinks);