var xOp7Up,xOp6Dn,xIE,xIE4Up,xIE4,xIE5,xIE7,xSafari,xNN4,xUA=navigator.userAgent.toLowerCase();if(window.opera){var i=xUA.indexOf('opera');if(i!=-1){var v=parseInt(xUA.charAt(i+6));xOp7Up=v>=7;xOp6Dn=v<7;}}else if(navigator.vendor!='KDE'&&document.all&&xUA.indexOf('msie')!=-1){xIE=true;xIE4Up=parseFloat(navigator.appVersion)>=4;xIE4=xUA.indexOf('msie 4')!=-1;xIE5=xUA.indexOf('msie 5')!=-1;xIE7=xUA.indexOf('msie 7')!=-1;}else if(xUA.indexOf('safari')!=-1){xSafari=true;}else if(document.layers){xNN4=true;}function $(e){if(typeof(e)!='string'){return e;}if(document.getElementById){return document.getElementById(e);}else if(document.all){return document.all[e];}else{return null;}}function xX(obj){var x=0;do{x+=obj.offsetLeft;obj=obj.offsetParent;}while(obj);return x;}function xY(obj){var y=0;do{y+=obj.offsetTop;obj=obj.offsetParent;}while(obj);return y;}function addAnEvent(el, evname, func) {if (el.attachEvent) {el.attachEvent("on" + evname, func);} else if (el.addEventListener) {el.addEventListener(evname, func, true);} else {el["on" + evname] = func;}}function xCH(){if(xSafari){return window.innerHeight-15;}var h=0;if(xOp6Dn) h=window.innerHeight;else if(document.compatMode=='CSS1Compat'&&!window.opera&&document.documentElement&&document.documentElement.clientHeight)h=document.documentElement.clientHeight;else if(document.body&&document.body.clientHeight)h=document.body.clientHeight;else if(xD(window.innerWidth,window.innerHeight,document.width)) {h=window.innerHeight;if(document.width>window.innerWidth) h-=16;}return h;}function xCW(){if(xSafari){return window.innerWidth-15;}var w=0;if(xOp6Dn) w=window.innerWidth;else if(document.compatMode=='CSS1Compat'&&!window.opera&&document.documentElement&&document.documentElement.clientWidth)w=document.documentElement.clientWidth;else if(document.body&&document.body.clientWidth)w=document.body.clientWidth;else if(xD(window.innerWidth,window.innerHeight,document.height)) {w=window.innerWidth;if(document.height>window.innerHeight) w-=16;}return w;}function xPI(v){var v=parseInt(v,10);if(isNaN(v)){v=0;}return v;}var iframeObj=null;var iframe=null;function loadFrameContent(){if(!iframeObj.contentWindow){setTimeout(loadFrameContent,25);return false;}else{iframe=iframeObj.contentWindow;}}var lNavCnt=0;var rNavCnt=0;function lNav(id){if($("l"+id).style.display=='block'){$("l"+id+"t").className='legende boxMax';$("l"+id).style.display='none';}else{$("l"+id+"t").className='legende boxMin';$("l"+id).style.display='block';for(var i=1;i<=lNavCnt;i++){if(i!=id){$("l"+i+"t").className='legende boxMax';$("l"+i).style.display='none';}}}}function rNav(id){if($("r"+id).style.display=='block'){$("r"+id+"t").className='legende boxMax';$("r"+id).style.display='none';}else{$("r"+id+"t").className='legende boxMin';$("r"+id).style.display='block';for(var i=1;i<=rNavCnt;i++){if(i!=id){$("r"+i+"t").className='legende boxMax';$("r"+i).style.display='none';}}}}var menu=[];function showMenu(obj,id,rightalign){ hideMenuAll(id);keepMenu(id);var p=$(id);p.style.display="block";if(rightalign){p.style.left=(xX(obj)+xW(obj)-xW(p))+"px";}else{p.style.left=xX(obj)+"px";}p.style.top=(xY(obj)+24)+"px";}function keepMenu(id){clearTimeout(menu[id]);}function hideMenu(id) {clearTimeout(menu[id]);menu[id]=setTimeout("hideMenuGo(\""+id+"\")",300);}function hideMenuGo(id){$(id).style.display="none";}function hideMenuAll(id){var i=menu.length;while(i--){if(id&&id!=i){$(menu[i]).style.display="none";}}}function newsTicker(id,speed,delay){var scroller=$(id);var inner=$(id+"Inner");var limit=inner.getElementsByTagName('div').length*xPI(scroller.style.height);var me=this;setTimeout(function(){me.tick(id);},xPI(speed));this.tick=function(id){nextTick=speed;if(!inner.style.top){inner.style.top="0px";}if(xPI(inner.style.top)<-limit){inner.style.top=xPI(scroller.style.height)+"px";}else{inner.style.top=(xPI(inner.style.top)-1)+"px";}if(!(xPI(inner.style.top)==xPI(scroller.style.height))&&!(xPI(inner.style.top)==-limit)&&(xPI(inner.style.top)%xPI(scroller.style.height))==0){nextTick=delay;}var me=this;setTimeout(function(){me.tick(id);},xPI(nextTick));};}
