function euro_calc(b){var a=parseFloat(b.value.replace(",",".")),c=30.126;if(b.name=="kalk_froma"){var d=1;c=c;b=b.form.conv_to}else{d=c;c=1;b=b.form.kalk_froma}if(isNaN(a))b.value="";else{result=a*d/c;if(isNaN(result))b.value="";else{rr=Math.round(result*10000)/10000;srr=String(rr);srr=srr.replace(".",",");a=srr.indexOf(",");if(a==-1)srr+=",0000";else{a=6-srr.length+a;if(a>0){a=(new Array(a)).join("0");srr+=a}}b.value=srr}}};function marqueeInit(g){if(document.createElement){marqueeInit.ar.push(g);marqueeInit.run(g.uniqueid)}}(function(){if(document.createElement){function g(){for(var b,a,c=0;c<marqueeInit.ar.length;++c)if(marqueeInit.ar[c]&&marqueeInit.ar[c].setup){a=marqueeInit.ar[c].setup;b=a.mq.moveatleast?Math.max(a.mq.moveatleast,a.sinc):a.sinc||a.mq.inc;a.c.style.width=a.mq.style.width;for(a.cw[0]=a.cw.length>1?parseInt(a.mq.style.width):"a";a.c.offsetWidth>a.w-b;)a.c.style.width=isNaN(a.cw[0])?a.w-b+"px":--a.cw[0]+a.cw[1]}}function f(b,a){var c,d,e,h,j=this;this.mq=marqueeInit.ar[b];for(c in m)if(this.mq.hasOwnProperty&&!this.mq.hasOwnProperty(c)||!this.mq.hasOwnProperty&&!this.mq[c])this.mq[c]=m[c];this.mq.style.width=!this.mq.style.width||isNaN(parseInt(this.mq.style.width))?"100%":this.mq.style.width;this.mq.style.height=a.getElementsByTagName("img")[0]?!this.mq.style.height||isNaN(parseInt(this.mq.style.height))?"auto":this.mq.style.height:!this.mq.style.height||isNaN(parseInt(this.mq.style.height))?a.offsetHeight+3+"px":this.mq.style.height;d=this.mq.style.width.split(/\d/);this.cw=this.mq.style.width?[parseInt(this.mq.style.width),d[d.length-1]]:["a"];d=p(a);a.className=a.id="";a.removeAttribute("class",0);a.removeAttribute("id",0);k&&a.removeAttribute("className",0);a.appendChild(a.cloneNode(false));a.className=["marquee",b].join("");a.style.overflow="hidden";this.c=a.firstChild;this.c.appendChild(this.c.cloneNode(false));this.c.style.visibility="hidden";b=[[q,this.c.style],[this.mq.style,this.c.style]];for(a=b.length-1;a>-1;--a)for(c in b[a][0])if(b[a][0].hasOwnProperty&&b[a][0].hasOwnProperty(c)||!b[a][0].hasOwnProperty)b[a][1][c.encamel()]=b[a][0][c];this.m=this.c.firstChild;if(this.mq.mouse=="pause"){this.c.onmouseover=function(){j.mq.stopped=true};this.c.onmouseout=function(){j.mq.stopped=false}}this.m.style.position="absolute";this.m.style.left="-10000000px";this.m.style.whiteSpace="nowrap";if(l)this.c.firstChild.appendChild(this.m=document.createElement("nobr"));this.mq.noAddedSpace||this.m.appendChild(document.createTextNode("\u00a0"));for(a=0;d[a];++a)this.m.appendChild(d[a]);if(l)this.m=this.c.firstChild;e=this.m.getElementsByTagName("img");if(e.length)for(a=h=0;a<e.length;++a){e[a].style.display="inline";e[a].style.verticalAlign=e[a].style.verticalAlign||"top";if(typeof e[a].complete=="boolean"&&e[a].complete)h++;else e[a].onload=function(){++h==e.length&&j.setup()};h==e.length&&this.setup()}else this.setup()}function p(b){for(var a=[],c=0,d;(d=b.firstChild)&&d.nodeType==3&&i[0].test(d.nodeValue);)b.removeChild(d);for(;(d=b.lastChild)&&d.nodeType==3&&i[0].test(d.nodeValue);)b.removeChild(d);if((d=b.firstChild)&&d.nodeType==3)d.nodeValue=d.nodeValue.replace(i[1],"");if((d=b.lastChild)&&d.nodeType==3)d.nodeValue=d.nodeValue.replace(i[2],"");for(;d=b.firstChild;)a[c++]=b.removeChild(d);return a}function r(b){for(;b=b.parentNode;)if(b.tagName&&b.tagName.toLowerCase()==="table")return true;return false}marqueeInit.ar=[];document.write('<style type="text/css">.marquee{white-space:nowrap;overflow:hidden;visibility:hidden;}#marq_kill_marg_bord{border:none!important;margin:0!important;}</style>');var s=0,i=[/^\s*$/,/^\s*/,/\s*$/],q={position:"relative",overflow:"hidden"},m={style:{margin:"0 auto"},direction:"left",inc:2,mouse:"pause"},n,k=false,t=0,l=false,o=0;if(!l){n=new RegExp("-(.)","g");function u(b,a){return a.toUpperCase()}String.prototype.encamel=function(){return this.replace(n,u)}}if(k&&o<8){marqueeInit.table=[];window.attachEvent("onload",function(){marqueeInit.OK=true;for(var b=0;b<marqueeInit.table.length;++b)marqueeInit.run(marqueeInit.table[b])})}marqueeInit.run=function(b){if(k&&!marqueeInit.OK&&o<8&&r(document.getElementById(b)))marqueeInit.table.push(b);else if(document.getElementById(b))new f(s++,document.getElementById(b));else setTimeout(function(){marqueeInit.run(b)},300)};f.prototype.setup=function(){if(!this.mq.setup){this.mq.setup=this;var b,a=this;if(this.c.style.height==="auto")this.c.style.height=this.m.offsetHeight+4+"px";this.c.appendChild(this.m.cloneNode(true));this.m=[this.m,this.m.nextSibling];if(this.mq.mouse=="cursor driven"){this.r=this.mq.neutral||16;this.sinc=this.mq.inc;this.c.onmousemove=function(c){a.mq.stopped=false;a.directspeed(c)};if(this.mq.moveatleast){this.mq.inc=this.mq.moveatleast;if(this.mq.savedirection)if(this.mq.savedirection=="reverse")this.c.onmouseout=function(c){if(!a.contains(c)){a.mq.inc=a.mq.moveatleast;a.mq.direction=a.mq.direction=="right"?"left":"right"}};else{this.mq.savedirection=this.mq.direction;this.c.onmouseout=function(c){if(!a.contains(c)){a.mq.inc=a.mq.moveatleast;a.mq.direction=a.mq.savedirection}}}else this.c.onmouseout=function(c){if(!a.contains(c))a.mq.inc=a.mq.moveatleast}}else this.c.onmouseout=function(c){a.contains(c)||a.slowdeath()}}this.w=this.m[0].offsetWidth;this.m[0].style.left=0;this.c.id="marq_kill_marg_bord";this.m[0].style.top=this.m[1].style.top=Math.floor((this.c.offsetHeight-this.m[0].offsetHeight)/2-t)+"px";this.c.id="";this.c.removeAttribute("id",0);this.m[1].style.left=this.w+"px";for(b=this.mq.moveatleast?Math.max(this.mq.moveatleast,this.sinc):this.sinc||this.mq.inc;this.c.offsetWidth>this.w-b;)this.c.style.width=isNaN(this.cw[0])?this.w-b+"px":--this.cw[0]+this.cw[1];this.c.style.visibility="visible";this.runit()}};f.prototype.slowdeath=function(){var b=this;if(this.mq.inc){this.mq.inc-=1;this.timer=setTimeout(function(){b.slowdeath()},100)}};f.prototype.runit=function(){var b=this,a=this.mq.direction=="right"?1:-1;if(this.mq.stopped||this.mq.stopMarquee)setTimeout(function(){b.runit()},300);else{if(this.mq.mouse!="cursor driven")this.mq.inc=Math.max(1,this.mq.inc);if(a*parseInt(this.m[0].style.left)>=this.w)this.m[0].style.left=parseInt(this.m[1].style.left)-a*this.w+"px";if(a*parseInt(this.m[1].style.left)>=this.w)this.m[1].style.left=parseInt(this.m[0].style.left)-a*this.w+"px";this.m[0].style.left=parseInt(this.m[0].style.left)+a*this.mq.inc+"px";this.m[1].style.left=parseInt(this.m[1].style.left)+a*this.mq.inc+"px";setTimeout(function(){b.runit()},30+(this.mq.addDelay||0))}};f.prototype.directspeed=function(b){b=b||window.event;this.timer&&clearTimeout(this.timer);var a=this.c,c=a.offsetWidth,d=a.offsetLeft;b=(typeof b.pageX=="number"?b.pageX:b.clientX+document.body.scrollLeft+document.documentElement.scrollLeft)-d;d=(c-this.r)/2;for(c=(c+this.r)/2;a=a.offsetParent;)b-=a.offsetLeft;this.mq.direction=b>c?"left":"right";this.mq.inc=Math.round((b>c?b-c:b<d?d-b:0)/d*this.sinc)};f.prototype.contains=function(b){if(b&&b.relatedTarget){b=b.relatedTarget;if(b==this.c)return true;for(;b=b.parentNode;)if(b==this.c)return true}return false};if(window.addEventListener)window.addEventListener("resize",g,false);else window.attachEvent&&window.attachEvent("onresize",g)}})();