/*(c) Copyright 2005-2007 okova GmbH & co. OhG*/var LIlili=new Object();LIlili["de"]={close:"Schliessen",max:"Maximieren",min:"Verkleinern"};LIlili["en"]={close:"close",max:"maximise",min:""};wM=new Object();wM.IllIii=new Object();wM.IIIlii=null;wM.Iii=function(){var lii=new Array(),LIliLi;for(LIliLi in wM.IllIii){lii.push(wM.IllIii[LIliLi]);}lii.sort(iIi);var zIndex="100000";for(LIliLi=(0x6ed+3993-0x1686);LIliLi<lii.length;LIliLi++){lii[LIliLi].style.zIndex=zIndex;zIndex++;}};wM.IIi=function(e){if(wM.IIIlii!==null){wM.IIIlii.lIi(e);}};wM.LIi=function(e){if(wM.IIIlii!==null){wM.IIIlii.lIIiii(e);}};wM.lllIii=function(Ililii){if(wM.IIIlii!=Ililii){Ililii.style.zIndex="999999";if(wM.IIIlii!==null){wM.IIIlii.blur();}wM.IIIlii=Ililii;wM.Iii();return true;}return false;};wM.iLlIii=function(Ililii){if(wM.IIIlii==Ililii){wM.IIIlii=null;return true;}return false;};function iIi(a,b){return a.style.zIndex-b.style.zIndex;}var iLi=new Array();var ILi="";var screenX,screenY;var LIILIi={x:(0x23d+6904-0x1d35),y:(0xf93+605-0x11f0)};function IIilii(id,options){options=Object.illLIi({IiI:true,lIilii:true,LiI:true},options);if(typeof id!="string"||id===""){id="win_"+(new Date()).getTime().toString();}if(typeof wM.IllIii[id]=="undefined"){var Ililii=document.createElement("table");Ililii.id=id;Ililii.className="okova_menu_outer";document.getElementsByTagName("body")[(0xf3d+3904-0x1e7d)].appendChild(Ililii);Object.illLIi(Ililii,this);Ililii.style.display="block";Ililii.style.position="absolute";Ililii.style.top=Math.max(options.top,(0x1496+2840-0x1fae))||(0x1bca+1920-0x234a);Ililii.style.left=Math.max(options.left,(0x1af6+1349-0x203b))||(0x110f+5515-0x269a);Ililii.iII=false;IillLi(Ililii,"mousedown",Ililii.focus);if(options.lIilii){IillLi(Ililii,"mouseover",Ililii.lII);IillLi(Ililii,"mousemove",Ililii.lII);IillLi(Ililii,"mouseout",function(e){if(this.iII===false){Ililii=Event.element(e);if(Ililii.tagName!="TABLE"){return;}Event.element(e).style.cursor="default";}else{this.lIi(e);}});IillLi(Ililii,"mousedown",Ililii.Iill);IillLi(Ililii,"mouseup",Ililii.lIIiii);}ilI=document.createElement("tbody");Ililii.appendChild(ilI);IlI=document.createElement("tr");if(!options.IiI){IlI.style.display="none";}IlI.style.height="16px";IlI.className="TitleBar";LLll(IlI,Ililii);IillLi(IlI,"selectstart",function(){return false;});title=document.createElement("td");title.style.overflow="hidden";title.className="WindowTitle";title.style.cursor="move";if(typeof options.icon=="string"){var ilILL=document.createElement("img");ilILL.src=options.icon;ilILL.style.width="16px";ilILL.style.height="16px";ilILL.style.verticalAlign="middle";ilILL.style.marginRight="4px";ilILL.style.cursor="default";title.appendChild(ilILL);}if(typeof options.title=="string"){title.innerHTML+=options.title;Ililii.title=options.title;}var iLI=(0xf78+200-0x1040);if(options.LiI){title.innerHTML+='<img src="/okova/design/window/close.png" style="width:16px; height:16px; margin: 2px; position: absolute; top: 0px; right: 1px; cursor: default;" onClick="this.parentNode.parentNode.parentNode.parentNode.close(); Event.stop(event);" onmousedown="Event.stop(event)"/>';iLI+=(0x1e4a+649-0x20bf);}if(options.lIilii){title.innerHTML+='<img src="/okova/design/window/max.png" style="width:16px; height:16px; margin: 2px; position: absolute; top: 0px; right: '+iLI+'px; cursor: default;" onClick="this.parentNode.parentNode.parentNode.parentNode.lll(); Event.stop(event);" onmousedown="Event.stop(event)"/>';iLI+=(0x3ed+1106-0x82b);}if(typeof options.iIIlii=="number"){title.innerHTML+='<img src="/okova/design/window/help.png" style="width:16px; height:16px; margin: 2px; position: absolute; top: 0px; right: '+iLI+'px; cursor: default;" onClick="ILlili.lIIlii(this.parentNode.parentNode.parentNode.parentNode.iIIlii,iLilii(event))"; Event.stop(event);" onmousedown="Event.stop(event)"/>';Ililii.iIIlii=options.iIIlii;}IlI.appendChild(title);lLI=document.createElement("tr");lLI.style.border="2px solid green";LLI=document.createElement("td");LLI.id="app";LLI.style.cursor="default";LLI.className="okova_menu_inner";lLI.appendChild(LLI);ilI.appendChild(IlI);ilI.appendChild(lLI);var content=document.createElement(typeof(options.url)=="string"?"iframe":"div");if(typeof options.innerWidth=="number"){content.style.width=options.innerWidth;}if(typeof options.innerHeight=="number"){content.style.height=options.innerHeight;}content.style.border="0";content.name=id;if(typeof(options.url)=="string"){content.src=options.url;}else{if(typeof options.content=="string"){content.innerHTML=options.content;}else if(typeof options.content=="object"){try{options.content.parentNode.removeChild(options.content);}catch(e){}content.appendChild(options.content);}if(options.lIilii===true){content.style.overflow="auto";}}LLI.appendChild(content);if(options.IIliii){Ililii.IIliii();}document.getElementsByTagName("body")[(0x26c+3527-0x1033)].appendChild(Ililii);if(typeof(options.url)=="string"&&typeof frames!="undefined"&&frames.length>(0x1f7+292-0x31b)&&frames[frames.length-(0x58d+749-0x879)].name==""){frames[frames.length-(0xfaf+2140-0x180a)].name=id;}if(typeof options.iLLLl!="undefined"&&options.iLLLl===true){Ililii.lil=lIll("default",(0x1b1+5252-0x1635));}Ililii.content=content;wM.IllIii[id]=Ililii;}if(typeof options.url!="undefined"&&wM.IllIii[id].content.tagName=="IFRAME"){wM.IllIii[id].content.src=options.url;}wM.IllIii[id].focus();return wM.IllIii[id];}IIilii.prototype.focus=function(){if(wM.lllIii(this)){if(typeof this.iIIii=="function")this.iIIii();iLIIIi.lLlIIi(this,"activeWindow");if(typeof this.lil!="undefined"){this.lil.style.zIndex=this.style.zIndex-(0x1737+1604-0x1d7a);}}};IIilii.prototype.blur=function(){if(typeof this.liIii=="function")this.liIii();wM.iLlIii(this);iLIIIi.LLlIIi(this,"activeWindow");};IIilii.prototype.close=function(e){if(wM.IIIlii==this){wM.IIIlii=null;}if(typeof this.lILIii=="function")this.lILIii();if(typeof this.lil!="undefined"){iLIIIi.remove(this.lil);}iLIIIi.remove(this);delete wM.IllIii[this.id];};IIilii.prototype.lll=function(e){var content=this.Lll().content;if(!this.iLl==true){var ilLLI=iLIIIi.lILIIi(content);this.LLl={left:iLIIIi.liLIIi(this,"left"),top:iLIIIi.liLIIi(this,"top"),width:ilLLI.width,height:ilLLI.height};this.style.left="0px";this.style.top="20px";var LiLiii=iILiii();content.style.width=LiLiii[(0xa19+400-0xba9)]-(0xbc+1871-0x7ed);content.style.height=LiLiii[(0x5cf+986-0x9a8)]-(0x1490+3664-0x22b8);}else{this.style.left=this.LLl.left;this.style.top=this.LLl.top;content.style.width=this.LLl.width;content.style.height=this.LLl.height;}this.iLl=!this.iLl;};IIilii.prototype.lII=function(e){if(this.iII===false&&!this.iLl==true){var LiL=(0x78f+3201-0x13fc);var illlli=Event.iiiLIi(e)-parseInt(iLIIIi.liLIIi(this,"left"),(0x22b+8672-0x2401));var Illlli=Event.IiiLIi(e)-parseInt(iLIIIi.liLIIi(this,"top"),(0xaeb+6740-0x2535));var ilLLI=iLIIIi.lILIIi(this);var cursor="";if(illlli<=LiL&&Illlli<=LiL){cursor="nw";}else if(illlli>=ilLLI.width-LiL&&Illlli>=ilLLI.height-LiL){cursor="se";}else if(illlli>=ilLLI.width-LiL&&Illlli<=LiL){cursor="ne";}else if(illlli<=LiL&&Illlli>=ilLLI.height-LiL){cursor="sw";}else if(illlli>LiL&&illlli<ilLLI.width-LiL&&(Illlli<=LiL||Illlli>=ilLLI.height-LiL)){if(Illlli<=LiL){cursor="n";}else{cursor="s";}}else if(illlli<=LiL||illlli>=ilLLI.width-LiL){if(illlli<=LiL){cursor="w";}else{cursor="e";}}else{this.style.cursor="default";return false;}this.style.cursor=cursor+"-resize";return cursor;}else{this.lIi(e);}};IIilii.prototype.lIi=function(e){if(this.iII!==false){var illlli=screenX-e.screenX;var Illlli=screenY-e.screenY;var ilL=this.Lll();var content=ilL.content;var IlL=ilL.llL;for(var LIliLi=(0xf0+4751-0x137e);LIliLi<=(0xab6+1862-0x11fa);LIliLi++){var LlL=(0x5e3+608-0x842);var iLL=(0x536+4258-0x15d7);var loop=false;var ILL;if(this.iII.search(/n/)!=-(0x8fa+114-0x96b)){if((LIILIi.y==(0x1e84+844-0x21d0)||LIliLi!=(0x13c3+4247-0x2459))){this.style.top=parseInt(this.style.top,(0x1509+563-0x1732))-Illlli+"px";}iLL=-(0x1785+3823-0x2673);}if(this.iII.search(/w/)!=-(0xa5a+6588-0x2415)){if((LIILIi.x==(0xed1+655-0x1160)||LIliLi!=(0x600+4149-0x1634))){this.style.left=parseInt(this.style.left,(0x7e9+2620-0x121b))-illlli+"px";}LlL=-(0xa1d+5785-0x20b5);}if(this.iII.search(/[we]/)!=-(0x23c1+189-0x247d)){if(LIILIi.x==(0x1bf9+2477-0x25a6)||LIliLi!=(0x3e6+656-0x675)){content.style.width=parseInt(iLIIIi.liLIIi(content,"width")||content.parentNode.clientWidth,(0xd48+598-0xf94))-illlli*LlL+"px";if(LIliLi==(0xeab+4433-0x1ffb)&&content.parentNode.clientWidth!=IlL.width-illlli*LlL){loop=true;illlli=(content.parentNode.clientWidth-(IlL.width-illlli*LlL))*LlL*-(0x125a+2118-0x1a9f);LIILIi.x+=illlli*LlL;}}else{ILL=LIILIi.x-(illlli*LlL);if((LIILIi.x>(0xb7+8231-0x20de)&&ILL<(0x22f7+775-0x25fe))||(LIILIi.x<(0x362+3320-0x105a)&&ILL>(0x1486+3077-0x208b))){illlli=ILL;LIILIi.x=(0xd7b+768-0x107b);loop=true;}else{LIILIi.x=ILL;}}}if(this.iII.search(/[ns]/)!=-(0x1884+1362-0x1dd5)){if(LIILIi.y==(0x2073+161-0x2114)||LIliLi!=(0x1127+5104-0x2516)){content.style.height=parseInt(iLIIIi.liLIIi(content,"height")||content.parentNode.clientHeight,(0xea+3868-0xffc))-Illlli*iLL+"px";if(LIliLi==(0x5b5+6308-0x1e58)&&content.parentNode.clientHeight!=IlL.height-Illlli*iLL){loop=true;Illlli=(content.parentNode.clientHeight-(IlL.height-Illlli*iLL))*LlL*-(0x119+4161-0x1159);LIILIi.y+=Illlli*iLL;}}else{ILL=LIILIi.y-Illlli*iLL;if((LIILIi.y>(0x31c+3106-0xf3e)&&ILL<(0x728+1199-0xbd7))||(LIILIi.y<(0x165b+1427-0x1bee)&&ILL>(0x7a+7518-0x1dd8))){Illlli=ILL;LIILIi.y=(0x916+4954-0x1c70);loop=true;}else LIILIi.y=ILL;}}if(!loop){break;}}screenX=e.screenX;screenY=e.screenY;}};IIilii.prototype.Lll=function(){var content=this.getElementsByTagName("tr")[(0xba0+4745-0x1e28)].firstChild.firstChild;var IlL={width:content.parentNode.clientWidth,height:content.parentNode.clientHeight};if(iLIIIi.liLIIi(content,"width")=="auto"){content.style.width=IlL.width;}if(iLIIIi.liLIIi(content,"height")=="auto"){content.style.height=IlL.height;}return{content:content,llL:IlL};};IIilii.prototype.lIIiii=function(){if(this.iII!=false){IiiLL(wM.IIll,"mousemove",wM.IIi);IiiLL(wM.IIll,"mouseup",wM.LIi);this.iII=false;LIILIi={x:(0x1803+3393-0x2544),y:(0xcc2+5769-0x234b)};iLIIIi.remove(wM.IIll);}};IIilii.prototype.Iill=function(e){if(Event.element(e).tagName!="TABLE"){return;}this.iII=this.lII(e);wM.IIll=lIll(this.iII+"-resize",iLIIIi.liLIIi(this,"z-index")+(0x386+6428-0x1ca1));screenX=e.screenX;screenY=e.screenY;IillLi(wM.IIll,"mousemove",wM.IIi);IillLi(wM.IIll,"mouseup",wM.LIi);Event.stop(e);};IIilii.prototype.IIliii=function(){var iiii=iILiii();this.style.top=Math.max((iiii[(0x3cd+6114-0x1bae)]-this.clientHeight)/(0x27d+386-0x3fd)+document.body.scrollTop,(0x22+3388-0xd5e));this.style.left=Math.max((iiii[(0xf7c+5723-0x25d7)]-this.clientWidth)/(0x327+8601-0x24be)+document.body.scrollLeft,(0xd00+6160-0x2510));};IIilii.prototype.iIIii=function(){};IIilii.prototype.liIii=function(){};IIilii.prototype.lILIii=function(){};function IILIii(content,title,type,IIiLl){var Liilii;if(type=="warning"||type=="critical"||type=="info"){Liilii=type+".png";}if(typeof title!="string")title="";if(typeof IIiLl!="object")IIiLl=["OK"];iIii='<table border="0" height="100px" width="300px"><tr><td align="center" valign="middle" width="48px">';if(Liilii)iIii+='<img src="/okova/design/messagebox/'+Liilii+'"></td><td valign="middle">';iIii+=content+'</td></tr></table>';iIii+='<center>';for(var LIliLi=(0xa07+4540-0x1bc3);LIliLi<IIiLl.length;LIliLi++){iIii+='<button name="'+LIliLi+'" type="button" onClick="wM.IIIlii.lIii(this);">'+IIiLl[LIliLi]+'</button>';}iIii+='</center>';var options={title:title,content:iIii,lIilii:false,iLLLl:true,IIliii:true};if(Liilii)options.icon='/okova/design/messagebox/icons/'+Liilii;var iILIii=new IIilii("",options);iILIii.button=(0x106b+427-0x1216);iILIii.lIii=function(LIii){this.button=parseInt(LIii.name,(0x18cd+2742-0x2379))+(0x153a+2433-0x1eba);this.close();};LIIIii(iILIii);return iILIii;}function lLLIl(llii,title,options){this.options=Object.illLIi({width:(0x2f8+8112-0x21e0),height:(0x1387+3496-0x2111),title:null},options);this.llii=(typeof llii!="number")?(0x2116+216-0x218a):llii;var content=document.createElement("div");content.style.width=this.options.width+"px";content.style.height=this.options.height+"px";content.className="progress_outer";this.pb=document.createElement("div");this.pb.style.width="0px";this.pb.style.height=this.options.height+"px";this.pb.className="progress_bar";content.appendChild(this.pb);var Llii={title:this.options.title,content:content,lIilii:false,iLLLl:true,IIliii:true,LiI:false};Llii.IiI=typeof this.options.title=="string";var iILIii=Object.illLIi(new IIilii("",Llii),this);LIIIii(iILIii);return iILIii;}lLLIl.prototype.LLLIl=function(value){this.pb.style.width=Math.min((this.options.width/this.llii*value).toFixed((0xee6+424-0x108e)),this.options.width)+"px";IIIIii("Set:"+this.pb.style.width);};lLLIl.prototype.LIlIli=function(){this.LLii=(0x97b+2351-0x12aa);this.options.llii=(0x3d9+2288-0xc65);this.pb.style.position="relative";this.iiIi();};lLLIl.prototype.iiIi=function(){if(this.LLii>this.options.width-parseInt(this.pb.style.width,(0xc48+5530-0x21d8))){this.LLii=(0x824+1038-0xc32);}this.pb.style.left=this.LLii+"px";this.LLii++;setTimeout(this.iiIi.ilILii(this),(0x1ae2+2114-0x2323));};
