//Thu Dec 8 10:10:33 CET 2011
var a,debugLog=[];function logDebug(b){debugLog.push(b)}var errorLog=[];function logError(b,c,d){errorLog.push(b)}function setCookie(b,c,d,f,g,h){var k=new Date;k.setTime(k.getTime());if(d)d=d*1E3*60*60*24;k=new Date(k.getTime()+d);document.cookie=b+"="+escape(c)+(d?";expires="+k.toGMTString():"")+(f?";path="+f:"")+(g?";domain="+g:"")+(h?";secure":"")}
function getCookie(b){var c=document.cookie.indexOf(b+"="),d=c+b.length+1;if(!c&&b!=document.cookie.substring(0,b.length))return null;if(c==-1)return null;b=document.cookie.indexOf(";",d);if(b==-1)b=document.cookie.length;return unescape(document.cookie.substring(d,b))}
var agt=navigator.userAgent.toLowerCase(),is_major=parseInt(navigator.appVersion),is_minor=parseFloat(navigator.appVersion),is_nav=agt.indexOf("mozilla")!=-1&&agt.indexOf("spoofer")==-1&&agt.indexOf("compatible")==-1&&agt.indexOf("opera")==-1&&agt.indexOf("webtv")==-1&&agt.indexOf("hotjava")==-1,is_nav2=is_nav&&is_major==2,is_nav3=is_nav&&is_major==3,is_nav4=is_nav&&is_major==4,is_nav4up=is_nav&&is_major>=4,is_navonly=is_nav&&(agt.indexOf(";nav")!=-1||agt.indexOf("; nav")!=-1),is_nav6=is_nav&&is_major==
5,is_nav6up=is_nav&&is_major>=5,is_gecko=agt.indexOf("gecko")!=-1,is_ff2=agt.indexOf("firefox/2")!=-1,is_ff3=agt.indexOf("firefox/3")!=-1,is_ie=agt.indexOf("msie")!=-1&&agt.indexOf("opera")==-1,is_ie3=is_ie&&is_major<4,is_ie4=is_ie&&is_major==4&&agt.indexOf("msie 4")!=-1,is_ie4up=is_ie&&is_major>=4,is_ie5=is_ie&&is_major==4&&agt.indexOf("msie 5.0")!=-1,is_ie5_5=is_ie&&is_major==4&&agt.indexOf("msie 5.5")!=-1,is_ie5up=is_ie&&!is_ie3&&!is_ie4,is_ie5_5up=is_ie&&!is_ie3&&!is_ie4&&!is_ie5,is_ie6=is_ie&&
is_major==4&&agt.indexOf("msie 6.")!=-1,is_ie6up=is_ie&&!is_ie3&&!is_ie4&&!is_ie5&&!is_ie5_5,is_ie7=is_ie&&is_major==4&&agt.indexOf("msie 7.")!=-1,is_ie7up=is_ie&&!is_ie3&&!is_ie4&&!is_ie5&&!is_ie5_5&&!is_ie6,is_ie8=is_ie&&is_major==4&&agt.indexOf("msie 8.")!=-1,is_ie8up=is_ie&&!is_ie3&&!is_ie4&&!is_ie5&&!is_ie5_5&&!is_ie6&&!is_ie7,is_aol=agt.indexOf("aol")!=-1,is_opera=agt.indexOf("opera")!=-1,is_opera2=agt.indexOf("opera 2")!=-1||agt.indexOf("opera/2")!=-1,is_opera3=agt.indexOf("opera 3")!=-1||
agt.indexOf("opera/3")!=-1,is_opera4=agt.indexOf("opera 4")!=-1||agt.indexOf("opera/4")!=-1,is_opera5=agt.indexOf("opera 5")!=-1||agt.indexOf("opera/5")!=-1,is_opera5up=is_opera&&!is_opera2&&!is_opera3&&!is_opera4,is_opera6=agt.indexOf("opera 6")!=-1||agt.indexOf("opera/6")!=-1,is_opera6up=is_opera&&!is_opera2&&!is_opera3&&!is_opera4&&!is_opera5,is_opera7=agt.indexOf("opera 7")!=-1||agt.indexOf("opera/7")!=-1,is_opera7up=is_opera&&!is_opera2&&!is_opera3&&!is_opera4&&!is_opera5&&!is_opera6,is_opera8=
agt.indexOf("opera 8")!=-1||agt.indexOf("opera/8")!=-1,is_opera8up=is_opera&&!is_opera2&&!is_opera3&&!is_opera4&&!is_opera5&&!is_opera6&&!is_opera7,is_opera9=(agt.indexOf("opera 9")!=-1||agt.indexOf("opera/9")!=-1)&&agt.indexOf("opera/9.8")==-1,is_opera9up=is_opera&&!is_opera2&&!is_opera3&&!is_opera4&&!is_opera5&&!is_opera6&&!is_opera7&&!is_opera8,is_opera10=agt.indexOf("opera/9.80")!=-1&&agt.indexOf("version/10")!=-1,is_opera10up=is_opera&&!is_opera2&&!is_opera3&&!is_opera4&&!is_opera5&&!is_opera6&&
!is_opera7&&!is_opera8&&!is_opera9,is_konqueror=agt.indexOf("konqueror")!=-1,is_chrome=agt.indexOf("chrome")!=-1,is_safari=agt.indexOf("safari")!=-1&&!is_chrome,is_webkit=is_safari||is_chrome,is_android=agt.indexOf("android")!=-1,is_android_2up=agt.indexOf("android 2")!=-1,is_iphone=agt.indexOf("iphone")!=-1||agt.indexOf("ipod")!=-1,is_symbian=agt.indexOf("series60")!=-1||agt.search("symbian")!=-1,is_wince=agt.indexOf("windows ce")!=-1,is_winp7=agt.indexOf("windows phone os")!=-1,is_bb=agt.indexOf("blackberry")!=
-1,is_win=agt.indexOf("win")!=-1,is_mac=agt.indexOf("mac")!=-1,xsltOutput="html",browserEngine;if(is_safari)browserEngine="webkit";else if(is_konqueror)browserEngine="khtml";else if(is_opera){browserEngine="presto";is_opera9up||(xsltOutput="xml")}else if(is_gecko)browserEngine="gecko";else if(is_nav)browserEngine="gecko";else if(is_ie){browserEngine="trident";xsltOutput="xml"}else browserEngine="unknown";var tmp=getCookie("browserEngine");tmp&&tmp!=""&&tmp!="unknown"||setCookie("browserEngine",browserEngine);
if(!pda&&!getCookie("redirect")&&application=="dict")if(is_iphone)window.location="http://pda.leo.org/iphone/?lp="+lp;else if(is_android)window.location="http://pda.leo.org/?redirect=1&lp="+lp;else if(is_symbian)window.location="http://pda.leo.org/?redirect=1&lp="+lp;else if(is_wince||is_winp7)window.location="http://pda.leo.org/?redirect=1&lp="+lp;else if(is_bb)window.location="http://pda.leo.org/?redirect=1&lp="+lp;
if(pda){if(application=="forum")if(is_android)document.write('<link rel="stylesheet" type="text/css" href="css/android.css"/>');else if(is_gecko)document.write('<link rel="stylesheet" type="text/css" href="css/gecko.css"/>');else is_opera&&document.write('<link rel="stylesheet" type="text/css" href="css/opera.css"/>')}else{if(is_ie||is_aol){document.write('<link rel="stylesheet" type="text/css" href="/css/ie.css">');if(!is_ie8up||is_aol)document.write('<link rel="stylesheet" type="text/css" href="/css/ie5-6-7.css">');
if(!is_ie7up||is_aol)document.write('<link rel="stylesheet" type="text/css" href="/css/ie5-6.css">')}is_safari&&document.write('<link rel="stylesheet" type="text/css" href="/css/safari.css">');is_chrome&&document.write('<link rel="stylesheet" type="text/css" href="/css/chrome.css">');is_opera&&document.write('<link rel="stylesheet" type="text/css" href="/css/geckoWin.css">');is_gecko&&is_ff2&&document.write('<link rel="stylesheet" type="text/css" href="/css/ff2.css">')}
if(is_gecko)Node.prototype.outerHTML=function(){var b=document.createElement("div");b.appendChild(this.cloneNode(true));return b.innerHTML};if(typeof XSLTProcessor=="undefined"||typeof document.evaluate=="undefined"||is_safari)try{tmp=new ActiveXObject("MSXML2.FreeThreadedDOMDocument");tmp=new ActiveXObject("MSXML2.XSLTemplate");tmp=new ActiveXObject("Microsoft.XMLDOM")}catch(e){document.write('<script language="javascript" type="text/javascript" src="/js/top-dom.js" type="text/javascript"><\/script>')}
var innerHeight=0,innerWidth=0;
function setCss(){if(document.getElementById("fp"))document.getElementById("fp").value=hash;document.getElementById("testResult")&&typeof startTest!="undefined"&&startTest();var b=0;if(window.innerHeight){b=window.innerHeight;innerWidth=window.innerWidth}else if(document.documentElement&&document.documentElement.clientHeight){b=document.documentElement.clientHeight;innerWidth=document.documentElement.clientWidth}else if(document.body){b=document.body.clientHeight;innerWidth=document.body.clientWidth}b=
b-350;if(b<380)b=380;else if(b>540)b=540;var c=innerWidth-178;if(c<816)c=815;else if(c>1025)c=1025;if(document.styleSheets[0].cssRules)for(var d=0;d<document.styleSheets[0].cssRules.length;d++){if(document.styleSheets[0].cssRules[d].selectorText=="div.container .content"){document.styleSheets[0].cssRules[d].style.height=b+"px";document.styleSheets[0].cssRules[d].style.width=c+"px"}if(document.styleSheets[0].cssRules[d].selectorText==".content tbody.overflow")document.styleSheets[0].cssRules[d].style.height=
b-22+"px";if(document.styleSheets[0].cssRules[d].selectorText=="div.container .content .left"||document.styleSheets[0].cssRules[d].selectorText=="div.container .content .right")document.styleSheets[0].cssRules[d].style.height=b+"px"}else if(document.styleSheets[0].rules)for(d=0;d<document.styleSheets[0].rules.length;d++){if(document.styleSheets[0].rules[d].selectorText.toLowerCase()=="div.container .content"){document.styleSheets[0].rules[d].style.height=b+"px";document.styleSheets[0].rules[d].style.width=
c+"px"}if(document.styleSheets[0].rules[d].selectorText.toLowerCase()==".content tbody.overflow")document.styleSheets[0].rules[d].style.height=b-22+"px";if(document.styleSheets[0].rules[d].selectorText.toLowerCase()=="div.container .content .left"||document.styleSheets[0].rules[d].selectorText.toLowerCase()=="div.container .content .right")document.styleSheets[0].rules[d].style.height=b+"px"}typeof onForumLoad!="undefined"&&onForumLoad();onLoad()};var hash="";
try{hash=navigator.userAgent.toLowerCase()+"#";hash+=typeof GeckoActiveXObject!="undefined"?"1":typeof window.ActiveXObject!="undefined"?"2":"0";if(typeof navigator.plugins!="undefined")for(var i=0;i<navigator.plugins.length;i++)hash+=navigator.plugins[i].description.substring(navigator.plugins[i].description);if(typeof navigator.cpuClass!="undefined"&&navigator.cpuClass!="")hash+=navigator.cpuClass;if(typeof document.defaultCharset=="string")hash+=document.defaultCharset;if(navigator.mimeTypes){var numMimeTypes=navigator.mimeTypes.length;
if(numMimeTypes)for(i=0;i<numMimeTypes;i++){var mimetype=navigator.mimeTypes[i];hash+=mimetype.description?mimetype.description:"Unknown type"+mimetype.type+mimetype.suffixes?mimetype.suffixes:"None"}}if(typeof crypto!="undefined"&&typeof crypto.version=="string")hash+=crypto.version;if(typeof screen.width=="number")hash+=screen.width;if(typeof screen.height=="number")hash+=screen.height;if(typeof screen.availHeight=="number")hash+=screen.availHeight;if(typeof screen.availWidth=="number")hash+=screen.availWidth;
if(typeof screen.deviceXDPI=="number")hash+=screen.deviceXDPI;if(typeof screen.deviceYDPI=="number")hash+=screen.deviceYDPI;if(typeof screen.logicalXDPI=="number")hash+=screen.logicalXDPI;if(typeof screen.logicalYDPI=="number")hash+=screen.logicalYDPI;if(typeof window.fullScreen=="boolean")hash+=window.fullScreen;if(typeof screen.pixelDepth=="number")hash+=screen.pixelDepth;if(typeof screen.colorDepth=="number")hash+=screen.colorDepth;if(typeof screen.fontSmoothingEnabled=="boolean")hash+=screen.fontSmoothingEnabled;
if(typeof screen.bufferDepth!="undefined")hash+=screen.bufferDepth;hash=crc32(hash)}catch(e$$1){}
function crc32(b){function c(h){h=h.replace(/\r\n/g,"\n");for(var k="",l=0;l<h.length;l++){var n=h.charCodeAt(l);if(n<128)k+=String.fromCharCode(n);else{if(n>127&&n<2048)k+=String.fromCharCode(n>>6|192);else{k+=String.fromCharCode(n>>12|224);k+=String.fromCharCode(n>>6&63|128)}k+=String.fromCharCode(n&63|128)}}return k}b=c(b);if(typeof crc=="undefined")crc=0;var d=0;d=0;crc^=-1;for(var f=0,g=b.length;f<g;f++){d=(crc^b.charCodeAt(f))&255;d="0x"+"00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D".substr(d*
9,8);crc=crc>>>8^d}return crc^-1};var server=window.location.protocol+"//"+window.location.host,url=server+"/forum/ajax.php",trainerPath="/trainer/",forumPath="/forum/",lang="en",lp="ende",clear=true;function help(b,c){if(c.style.display=="none"||c.style.display==""){positionRight(b,c);c.style.display="block"}else c.style.display="none"}
function setFocus(b){if(b){ajaxGetPopUp.url=server+trainerPath+"saveVocable.php?ajax=form";document.dict.search.focus();document.dict.search.select();vrweb_sndspeed="80"}if(is_opera&&is_mac)document.onkeypress=autoFocus;else document.onkeydown=autoFocus}
function autoFocus(b){try{if(!(getCookie("setFocus")&&getCookie("setFocus")=="false")){b=b?b:event?event:null;var c=b.target?b.target:b.srcElement;if(!b.metaKey&&!b.altKey&&!b.ctrlKey&&isChar(b.keyCode)&&(c.nodeName!="INPUT"||c.type.toLowerCase()!="text"&&c.type.toLowerCase()!="password"&&c.type.toLowerCase()!="search")&&c.nodeName!="TEXTAREA"){setFocusPosition(document.dict.search,document.dict.search.value.length);document.dict.search.value="";document.dict.search.focus()}else if(b.keyCode==13&&
(c.nodeName!="INPUT"||c.type.toLowerCase()!="text"&&c.type.toLowerCase()!="password"&&c.type.toLowerCase()!="search")&&c.nodeName!="TEXTAREA"){var d=typeof window.getSelection!="undefined"?window.getSelection():document.selection.createRange().text;startDictRequest(d)}}}catch(f){}}
function setFocusPosition(b,c){if(document.selection){b.focus();var d=document.selection.createRange();d.moveStart("character",-b.value.length);d.moveStart("character",c);d.moveEnd("character",0)}else if(b.selectionStart||b.selectionStart=="0"){b.selectionStart=c;b.selectionEnd=c;b.focus()}}function isChar(b){if(b>=65&&b<=90)return true;else if(is_opera&&is_mac&&b>=97&&b<123)return true;else if(b>=192)return true;return b==0}var translate;
function clearForm(){document.dict.search.defaultValue="";document.dict.search.value="";document.dict.search.focus()}function onLoad(){is_ie&&!is_ie7up&&typeof initIE6=="function"&&initIE6()}function setClear(){clear=false}function addPanel(){typeof window.sidebar=="object"&&typeof window.sidebar.addPanel=="function"&&window.sidebar.addPanel("LEO",server+"/dict/sidebar.html","")}
function openTree(b){try{$(b).siblings("div").slideToggle(0)}catch(c){if(b.nextSibling)if(is_ie)if(b.nextSibling.style.display&&b.nextSibling.style.display.toLowerCase()=="block")for(b=b.nextSibling;b;){b.style.display="none";b=b.nextSibling}else for(b=b.nextSibling;b;){b.style.display="block";b=b.nextSibling}else{var d=new XPath;d.evaluate("following-sibling::div",document,b);b=d.iterateNext();if(b.style.display.toLowerCase()=="block")for(;b;){if(b.nodeType==1)b.style.display="none";b=b.nextSibling}else for(;b;){if(b.nodeType==
1)b.style.display="block";b=b.nextSibling}}}}function upFolder(b){b=b.parentNode;for(var c=b.firstChild;c!=null;){if(c.nodeName=="H2")c.style.display="block";if(c.nodeName=="DIV")c.style.display="none";c=c.nextSibling}for(c=b.parentNode.firstChild;c!=null;){if(c!=b){if(c.nodeName=="H2")c.style.display="none";if(c.nodeName=="DIV")c.style.display="block"}c=c.nextSibling}}
function selectOption(b,c,d){try{for(var f=b.parentNode;f.parentNode.nodeName.toLowerCase()=="ul"||f.parentNode.nodeName.toLowerCase()=="li";)f=f.parentNode;f=f.firstChild;markOption(f,b)}catch(g){}b=0;for(f=document.getElementById(c+b);f!=null;){f.style.display=b!=d?"none":"block";b++;f=document.getElementById(c+b)}}
function markOption(b,c){for(;b!=null;){if(b.nodeName.toLowerCase()=="li"&&b.childNodes.length==1)try{b.style.backgroundColor=b!=c?"transparent":"#E4E9FF"}catch(d){}b.childNodes.length>0&&markOption(b.firstChild,c);b=b.nextSibling}}function getMoreInfo(b,c){ajaxGetMoreInfo.request(b,c)}function getForumInfo(b,c){ajaxGetForumInfo.request(b,c)}function position(b,c){(b.pageX?b.pageX:b.clientX)>c.clientWidth?positionRight(b,c):positionLeft(b,c)}
function positionLeft(b,c){var d;if(self.pageYOffset)d=self.pageYOffset;else if(document.documentElement&&document.documentElement.scrollTop)d=document.documentElement.scrollTop;else if(document.body)d=document.body.scrollTop;if(b.pageX){var f=b.pageX;b=b.pageY}else{f=b.clientX;b=b.clientY+d}c.style.right="";c.style.left=f-10+"px";c.style.top=b-10+"px"}
function positionRight(b,c){c.style.left="";var d,f,g;if(self.pageYOffset)f=self.pageYOffset;else if(document.documentElement&&document.documentElement.scrollTop)f=document.documentElement.scrollTop;else if(document.body)f=document.body.scrollTop;if(b.pageX){g=b.pageX;f=b.pageY}else{g=b.clientX;f=b.clientY+f}if(self.innerHeight&&self.innerWidth){d=self.innerWidth;innerHeight=self.innerHeight}else if(document.documentElement&&document.documentElement.clientHeight){d=document.documentElement.clientWidth;
innerHeight=document.documentElement.clientHeight}else if(document.body){d=document.body.clientWidth;innerHeight=document.body.clientHeight}if(g>320)c.style.right=d-g-30+"px";else positionLeft(b,c);c.style.top=f>600?f-320+"px":f-10+"px"}
function postBackString(b,c){if(b)var d=b.target?b.target.value:b.srcElement.value;eval("var fields = new Array();");if(c){for(b=0;b<eval("document."+c+".elements.length");b++){var f=eval("document."+c+".elements["+b+"].type");if(f=="submit"||f=="button")eval("document."+c+".elements["+b+"].value")==d&&eval("fields.push(encodeURIComponent(document."+c+".elements["+b+"].name)+'='+encodeURIComponent(document."+c+".elements["+b+"].value));");else if(f=="checkbox")document.forms[c].elements[b].checked==
true&&eval("fields.push(encodeURIComponent(document."+c+".elements["+b+"].name)+'='+encodeURIComponent(document."+c+".elements["+b+"].value));");else if(f=="radio")document.forms[c].elements[b].checked==true&&eval("fields.push(encodeURIComponent(document."+c+".elements["+b+"].name)+'='+encodeURIComponent(document."+c+".elements["+b+"].value));");else eval("fields.push(encodeURIComponent(document."+c+".elements["+b+"].name)+'='+encodeURIComponent(document."+c+".elements["+b+"].value));")}eval("var iframes = document."+
c+".getElementsByTagName('IFRAME');");for(c=0;c<iframes.length;c++)if(iframes[c].contentDocument&&iframes[c].contentDocument.designMode=="on")if(is_safari){d=iframes[c].contentDocument.body;convertCssToHtml(d,iframes[c].contentDocument);fields.push(encodeURIComponent(iframes[c].id)+"="+encodeURIComponent(d.innerHTML))}else fields.push(encodeURIComponent(iframes[c].id)+"="+encodeURIComponent(iframes[c].contentDocument.body.innerHTML));else iframes[c].document&&iframes[c].contentWindow.document.body.contentEditable&&
fields.push(encodeURIComponent(iframes[c].id)+"="+encodeURIComponent(iframes[c].contentWindow.document.body.innerHTML))}return fields.join("&")}function decodeEntities(b){var c=b.match(/&#x(\w)+;/g);if(c)for(var d=0;d<c.length;d++){var f="0"+c[d].replace(/\W+/g,"");f=String.fromCharCode(f);b=b.replace(/&#(\w)+;/,f)}return b}function addToField(b){try{if(field){field.value+=b;field.focus()}}catch(c){}}function doNotSubmit(b){b=b?b:event?event:null;b.keyCode==13&&cancelEvent(b)}
function cancelEvent(b){b=b?b:window.event;b.stopPropagation&&b.stopPropagation();b.preventDefault&&b.preventDefault();b.cancelBubble=true;b.cancel=true;return b.returnValue=false}
function activateTab(b,c){var d=document.getElementById(b+"0"),f=0;if(document.getElementById("assistance")&&b!="assistance")document.getElementById("assistance").style.display="none";for(;d;){if(f==c){d.className=d.className.replace(/inactive/,"active");document.getElementById(b+"Content"+f).style.display="block"}else{d.className=d.className.replace(/(^| )active/,"inactive");document.getElementById(b+"Content"+f).style.display="none"}f++;d=document.getElementById(b+f)}}
function convertCssToHtml(b,c){for(var d=b.firstChild;d;){convertCssToHtml(d,c);d=d.nextSibling}if(b.style&&b.style.verticalAlign=="super"){c=c.createElement("sup");for(d=b.firstChild;d;){c.appendChild(d);d=d.nextSibling}b.parentNode.replaceChild(c,b)}else if(b.style&&b.style.textDecoration=="underline"){c=c.createElement("u");for(d=b.firstChild;d;){c.appendChild(d);d=d.nextSibling}b.parentNode.replaceChild(c,b)}else if(b.style&&b.style.textDecoration=="line-through"){c=c.createElement("strike");
for(d=b.firstChild;d;){c.appendChild(d);d=d.nextSibling}b.parentNode.replaceChild(c,b)}}
function convertIEHtmlToGeckoHtml(b,c){for(var d=b.firstChild;d;){convertCssToHtml(d,c);d=d.nextSibling}if(b.style&&b.style.verticalAlign=="super"){c=c.createElement("sup");for(d=b.firstChild;d;){c.appendChild(d);d=d.nextSibling}b.parentNode.replaceChild(c,b)}else if(b.style&&b.style.textDecoration=="underline"){c=c.createElement("u");for(d=b.firstChild;d;){c.appendChild(d);d=d.nextSibling}b.parentNode.replaceChild(c,b)}else if(b.style&&b.style.textDecoration=="line-through"){c=c.createElement("strike");
for(d=b.firstChild;d;){c.appendChild(d);d=d.nextSibling}b.parentNode.replaceChild(c,b)}}Array.prototype.inArray=function(b){for(var c=0;c<this.length;c++)if(typeof b=="object"&&typeof b.isEqual=="function"){if(b.isEqual(this[c]))return true}else if(this[c]===b)return true;return false};Array.prototype.position=function(b){for(var c=0;c<this.length;c++)if(typeof b=="object"&&typeof b.isEqual=="function"){if(b.isEqual(this[c]))return c}else if(this[c]===b)return c;return-1};
Array.prototype.remove=function(b){for(var c=0;c<this.length;c++)this[c]===b&&this.splice(c,1);return false};String.prototype.trim=function(){return this.replace(/^(\s|\n|\r)*/,"").replace(/(\s|\n|\r)*$/,"")};function Option(){this.height=280;this.panels=[]}var actOptions;
Option.prototype.toggle=function(b,c){actOptions&&actOptions!=this&&actOptions.hideOthers(null);if(!this.panels[c]){var d=new XPath;d.evaluate("ancestor::div[@class='options']/div[@class='panel']",document,b);var f=d.iterateNext();d.evaluate("ancestor::div[@class='options']",document,b);b=d.iterateNext();f.style.left=b.offsetLeft+"px";f.style.top=b.offsetTop+24+"px";d=(new Animator).addSubject(new CSSStyleSubject(f,"height: 0px; display: none;","height: "+this.height+"px; display: block;"));this.panels[c]=
new Panel(b,d)}this.hideOthers(this.panels[c]);this.panels[c].display?this.panels[c].hide():this.panels[c].show();actOptions=this};
Option.prototype.toggleGotoPage=function(b){var c=new XPath;c.evaluate("ancestor::div[@class='paging']/div[@class='panel']",document,b);c=c.iterateNext();if(is_ie)c.style.right="0px";else c.style.left=b.offsetLeft-102+"px";c.style.top=b.offsetTop+20+"px";var d=(new Animator).addSubject(new CSSStyleSubject(c,"height: 0px; display: none;","height: 80px; display: block;"));if(c.style.display!="block"){d.play();b.parentNode.style.backgroundColor="#6181FF"}else{d.reverse();b.parentNode.style.backgroundColor=
"transparent"}};Option.prototype.hideOthers=function(b){for(var c in this.panels)b!=this.panels[c]&&this.panels[c].display&&this.panels[c].hide()};function Panel(b,c){this.node=b;this.anim=c;this.display=false;this.trees=[]}Panel.prototype.show=function(){this.display=true;this.anim.play();this.node.style.backgroundColor="#6181FF"};Panel.prototype.hide=function(){this.display=false;this.anim.reverse();this.node.style.backgroundColor="transparent"};
Option.prototype.setOptions=function(b){var c=new XPath;for(c.evaluate("../div[@class='content']/select",document,b);obj=c.iterateNext();){if(obj.id.search(/orderbylisting/)!=-1)this.orderBy=obj.value;if(obj.id.search(/limitlisting/)!=-1)this.limit=obj.value}};Option.prototype.setSortField=function(b){this.orderBy=this.orderBy==b+" desc"?b+" asc":b+" desc"};
Option.prototype.setFilters=function(b){this.filters=[];var c=new XPath;for(c.evaluate("../div[@class='content']//input[@type='checkbox']",document,b);obj=c.iterateNext();)if(obj.checked){b=obj.name.split("][");b=b[b.length-2];this.filters[b]||(this.filters[b]=[]);this.filters[b].push(obj.value)}};Option.prototype.resetFilters=function(b){this.filters=[];var c=new XPath;for(c.evaluate("../div[@class='content']//input[@type='checkbox']",document,b);obj=c.iterateNext();)obj.checked=false};
Panel.prototype.openTree=function(b,c){if(this.trees[b])this.trees[b].toggle();else{var d=new XPath;d.evaluate("../ul",document,c);for(var f=d.iterateNext(),g=5,h=f.firstChild;h;){if(h.nodeName.toLowerCase()=="li")g+=h.offsetHeight;h=h.nextSibling}h=new Animator;h.addSubject(new CSSStyleSubject(f,"height: 0px;","height: "+g+"px"));d.evaluate("./img[@class='closed']",document,c);f=d.iterateNext();h.addSubject(new DiscreteStyleSubject(f,"display","inline-block","none",0.5));d.evaluate("./img[@class='open']",
document,c);f=d.iterateNext();h.addSubject(new DiscreteStyleSubject(f,"display","none","inline-block",0.5));this.trees[b]=h;this.trees[b].play()}};
Option.prototype.toString=function(){var b="";if(this.page&&!isNaN(this.page))b+="&page="+this.page;if(this.limit&&!isNaN(this.limit))b+="&limit="+this.limit;if(this.orderBy)b+="&orderBy="+this.orderBy;for(var c in this.filters)if(typeof this.filters[c]=="object")for(var d=0;d<this.filters[c].length;d++)b+="&value["+this.obj+"][0]["+c+"listing][0]["+c+"]["+this.filters[c][d]+"]="+this.filters[c][d];if(document.getElementById("value["+this.obj+"][0][search][0]")&&document.getElementById("value["+this.obj+
"][0][search][0]").value!="")b+="&value["+this.obj+"][0][search][0]="+document.getElementById("value["+this.obj+"][0][search][0]").value;if(document.getElementById("value["+this.obj+"][0][languagea][0]")&&document.getElementById("value["+this.obj+"][0][languagea][0]").value!=""){b+="&value["+this.obj+"][0][search][0]="+document.getElementById("value["+this.obj+"][0][languagea][0]").value;if(document.getElementById("value["+this.obj+"][0][languageb][0]")&&document.getElementById("value["+this.obj+
"][0][languageb][0]").value!="")b+=" "+document.getElementById("value["+this.obj+"][0][languageb][0]").value;if(b.search(/ $/)==-1)b+="*"}else if(document.getElementById("value["+this.obj+"][0][languageb][0]")&&document.getElementById("value["+this.obj+"][0][languageb][0]").value!=""){b+="&value["+this.obj+"][0][search][0]="+document.getElementById("value["+this.obj+"][0][languageb][0]").value;if(b.search(/ $/)==-1)b+="*"}if(document.getElementById("value["+this.obj+"][0][subject][0]")&&document.getElementById("value["+
this.obj+"][0][subject][0]").value!="")b+="&value["+this.obj+"][0][search][0]="+document.getElementById("value["+this.obj+"][0][subject][0]").value;return b};var dict=false,forum=false,trainer=false;function addScript(b){script=document.createElement("script");script.setAttribute("type","text/javascript");script.setAttribute("src",b);document.getElementsByTagName("head")[0].appendChild(script)}
function Ajax(){this.asyncron=true;this.xmlHttpReq=false;if(typeof XMLHttpRequest!="undefined")this.xmlHttpReq=new XMLHttpRequest;else try{this.xmlHttpReq=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{this.xmlHttpReq=new ActiveXObject("Microsoft.XMLHTTP")}catch(c){this.xmlHttpReq=false}}this.startGetRequest=function(d){if(this.xmlHttpReq){this.showLoader();this.xmlHttpReq.open("GET",this.url+"&"+d,true);this.xmlHttpReq.onreadystatechange=this.update;this.xmlHttpReq.send(null)}else document.open(this.url+
"&"+d+"&lang="+document.dict.lang.value+"&lp="+document.dict.lp.value+"&ajax=false","PopUpInfo","width=500,height=400,left=0,top=0, menubar=yes, resizable=yes, scrollbars=yes, location=yes, toolbar=yes, status=yes")};this.showLoader=function(){if(this.resultObject&&!is_ie)this.resultObject.innerHTML="<table class='loading'><tr><td><img src='/trainer/img/ajax_loader_32x32.gif' alt='loading ...'/></td></tr></table>"};this.startPostRequest=function(d){if(this.xmlHttpReq){this.showLoader();this.xmlHttpReq.open("POST",
this.url,this.asyncron);this.xmlHttpReq.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(this.asyncron){this.xmlHttpReq.onreadystatechange=this.update;this.xmlHttpReq.send(d)}else{this.xmlHttpReq.send(d);this.update()}}else document.open(this.url+"&"+d+"&lang="+document.dict.lang.value+"&lp="+document.dict.lp.value+"&ajax=false","PopUpInfo","width=500,height=400,left=0,top=0, menubar=yes, resizable=yes, scrollbars=yes, location=yes, toolbar=yes, status=yes")};this.update=function(){}}
function AjaxGetSelectedVocables(){this.url="?ajax=info";this.xslt=new Xslt;this.xslt.init("/trainer/Xsl/AJAX/displayVocables.php");this.update=function(){ajaxGetSelectedVocables.resultObject=document.getElementById("contentDisplayVocvables");if(ajaxGetSelectedVocables.xmlHttpReq.readyState==4){var b=ajaxGetSelectedVocables.xmlHttpReq.responseXML;ajaxGetSelectedVocables.xslt.setParameter("mode","preview");ajaxGetSelectedVocables.xslt.setParameter("side","2");if(document.getElementsByName("value[editcycleforlearning][0][cycle][0][direction][0]").length>
0)document.getElementsByName("value[editcycleforlearning][0][cycle][0][direction][0]")[0].checked||ajaxGetSelectedVocables.xslt.setParameter("side","1");if(document.getElementsByName("value[editcycleforquery][0][cycle][0][direction][0]").length>0)document.getElementsByName("value[editcycleforquery][0][cycle][0][direction][0]")[0].checked||ajaxGetSelectedVocables.xslt.setParameter("side","1");result=ajaxGetSelectedVocables.xslt.transformToDocument(b.documentElement);ajaxGetSelectedVocables.xslt.setParameter("side",
"2");ajaxGetSelectedVocables.xslt.setParameter("mode","");ajaxGetSelectedVocables.resultObject.innerHTML="";b.documentElement.firstChild.childNodes.length!=0&&appendXSLTResult(ajaxGetSelectedVocables.resultObject,result)}};this.request=function(b,c){this.startPostRequest("ajax=info&"+postBackString(b,c))};this.loadLearningLection=function(b){this.startPostRequest("ajax=info&postBack=managecontent&value[savecontent][0][idLearningLection]="+b)}}AjaxGetSelectedVocables.prototype=new Ajax;
function AjaxSendTrainerResults(){this.resultObject=null;this.update=function(){};this.request=function(b){this.startPostRequest(b)}}AjaxSendTrainerResults.prototype=new Ajax;var ajaxSendTrainerResults=new AjaxSendTrainerResults;
function AjaxGetMoreInfo(){this.update=function(){if(ajaxGetMoreInfo.xmlHttpReq.readyState==4){ajaxGetMoreInfo.resultObject.innerHTML=ajaxGetMoreInfo.xmlHttpReq.responseText;this.xPath=new XPath;this.xPath.evaluate("//a[@id='pronlink']",ajaxGetMoreInfo.xmlHttpReq.responseXML);if(obj=this.xPath.iterateNext()){var b=new SWFObject("/trainer/img/mp3player.swf","line","130","20","7");b.addVariable("file",unescape(obj.getAttribute("href")));b.addVariable("repeat","false");b.addVariable("showdigits","false");
b.addVariable("showdownload","false");b.write("player")}this.xPath.evaluate("//div[@id='linguatecplayer']",ajaxGetMoreInfo.xmlHttpReq.responseXML);if(obj=this.xPath.iterateNext()){this.player=new LinguatecPlayer("linguatecplayer",obj.getAttribute("lang"));this.player.getTextFromNode(obj);this.player.speed=75;this.player.write()}}};this.request=function(b,c){this.url=server+"/"+lp+"/j?ajax";var d=null;if(c.search(/_b/)!=-1)this.activateForumInfo(b);else{if(b.target&&b.target.previousSibling)d=b.target.previousSibling.value;
this.resultObject=document.getElementById("divMoreInfo");this.resultObject.style.display="block";this.resultObject.style.visibility="visible";position(b,this.resultObject)}this.startGetRequest("lp="+document.dict.lp.value+"&lang="+document.dict.lang.value+"&offset="+c+"&idWord="+d)};this.history=[];this.requestFinan=function(b){this.url=server+"/"+b+"?";this.history.push(this.url);ajaxGetMoreInfo.startGetRequest("lp="+document.dict.lp.value+"&lang="+document.dict.lang.value)};this.backFinan=function(){this.history.pop();
if(this.history.length>0){this.url=this.history[this.history.length-1];ajaxGetMoreInfo.startGetRequest("lp="+document.dict.lp.value+"&lang="+document.dict.lang.value)}};this.activateForumInfo=function(b){this.resultObject=document.getElementById("divForumInfo");positionRight(b,this.resultObject);this.resultObject.style.left="150px";try{this.resultObject.style.top=parseInt(this.resultObject.style.top.replace(/\s*px/,""))-100+"px"}catch(c){}this.resultObject.style.visibility="visible";this.resultObject.style.display=
"block";this.resultObject=document.getElementById("divForumInfo")};this.showAnimatedStroke=function(b,c){document.getElementById("divForumInfo").className="popup";this.activateForumInfo(b);this.resultObject.innerHTML="<div><h1 onmousedown=\"makeDraggable(document.getElementById('divForumInfo'));\" class=\"drag\">&#160;<img src=\"/trainer/img/fileclose.png\" alt=\"Close\" onclick=\"document.getElementById('divForumInfo').style.display='none';\"/></h1><div style='padding:3px;'>Radikale sind blau dargestellt, zus\u00e4tzliche Striche rot. Wird mehr als eine Pinyin-Silbe angezeigt, so besitzt das Zeichen die durch die Silben angezeigten Aussprachealternativen.</div><div style='padding:3px;'>\u7528\u84dd\u8272\u4e66\u5199\u7684\uff0c\u8868\u793a\u8be5\u6c49\u5b57\u7684\u90e8\u9996\u3002\u7528\u7ea2\u8272\u4e66\u5199\u7684\uff0c\u8868\u793a\u8be5\u6c49\u5b57\u7684\u5269\u4f59\u7b14\u753b\u3002\u5982\u679c\u8be5\u6c49\u5b57\u4e3a\u591a\u97f3\u5b57\uff0c\u5c06\u4f1a\u663e\u793a\u8be5\u5b57\u6240\u6709\u8bfb\u97f3\u7684\u62fc\u97f3\u97f3\u8282\u3002</div><iframe src='"+
c+"' style='border: 0px solid black; width: 778px; height:345px;'></iframe>Die Darstellungen basiert auf der <i>eStroke Online</i>-Software  <a href='http://www.eon.com.hk/'>EON Media Limited</a>.<br/>\u6c49\u5b57\u7b14\u987a\u89c4\u8303\u6f14\u793a\u662f\u5728<a href='http://www.eon.com.hk/'>EON Media Limited</a>\u516c\u53f8\u7814\u53d1\u7684\u8f6f\u4ef6<i>eStroke Online</i>-Software\u57fa\u7840\u4e0a\u5236\u4f5c\u7684\u3002<br/><br/></div>"};this.showExtendedStroke=function(b,c){document.getElementById("divForumInfo").className=
"popup";this.activateForumInfo(b);this.resultObject.innerHTML="<div><h1 onmousedown=\"makeDraggable(document.getElementById('divForumInfo'));\" class=\"drag\">&#160;<img src=\"/trainer/img/fileclose.png\" alt=\"Close\" onclick=\"document.getElementById('divForumInfo').style.display='none';\"/></h1><div style='padding:3px;'>Radikale sind blau dargestellt, zus\u00e4tzliche Striche rot. Wird mehr als eine Pinyin-Silbe angezeigt, so besitzt das Zeichen die durch die Silben angezeigten Aussprachealternativen.</div><div style='padding:3px;'>\u7528\u84dd\u8272\u4e66\u5199\u7684\uff0c\u8868\u793a\u8be5\u6c49\u5b57\u7684\u90e8\u9996\u3002\u7528\u7ea2\u8272\u4e66\u5199\u7684\uff0c\u8868\u793a\u8be5\u6c49\u5b57\u7684\u5269\u4f59\u7b14\u753b\u3002\u5982\u679c\u8be5\u6c49\u5b57\u4e3a\u591a\u97f3\u5b57\uff0c\u5c06\u4f1a\u663e\u793a\u8be5\u5b57\u6240\u6709\u8bfb\u97f3\u7684\u62fc\u97f3\u97f3\u8282\u3002</div><iframe src='"+
c+"' style='border: 0px solid black; width: 778px; height:345px;'></iframe>Die Darstellungen basiert auf der <i>eStroke Online</i>-Software  <a href='http://www.eon.com.hk/'>EON Media Limited</a>.<br/>\u6c49\u5b57\u7b14\u987a\u89c4\u8303\u6f14\u793a\u662f\u5728<a href='http://www.eon.com.hk/'>EON Media Limited</a>\u516c\u53f8\u7814\u53d1\u7684\u8f6f\u4ef6<i>eStroke Online</i>-Software\u57fa\u7840\u4e0a\u5236\u4f5c\u7684\u3002<br/><br/></div>"}}AjaxGetMoreInfo.prototype=new Ajax;
var ajaxGetMoreInfo=new AjaxGetMoreInfo;
function AjaxGetForumInfo(){this.update=function(){if(ajaxGetForumInfo.xmlHttpReq.readyState==4){document.getElementById("forumContent").innerHTML="";document.getElementById("forumNavigation").innerHTML="";this.xmlDoc=ajaxGetForumInfo.xmlHttpReq.responseXML;this.xPath=new XPath;this.xPath.evaluate("/threads/body",this.xmlDoc);for(var b,c=0;b=this.xPath.iterateNext();){c++;var d=new XPath;d.evaluate(".//td[@id='middle']/form//div[@class='content']",this.xmlDoc,b);if(b=d.iterateNext())appendXSLTObject(document.getElementById("forumContent"),
b);b="<li><span id='thread"+(c-1)+"' onclick='activateTab(\"thread\", "+(c-1)+");'";b+=c==1?" class='active' ":" class='inactive' ";b+=">Faden "+c+"</span></li>";document.getElementById("forumNavigation").innerHTML+=b}document.getElementById("forumContent").innerHTML=document.getElementById("forumContent").innerHTML;b=document.getElementById("forumContent").firstChild;for(c=0;b;){c++;b.setAttribute("id","threadContent"+(c-1));b=b.nextSibling}}};this.request=function(b,c){this.url=server+"/m-html/conf/"+
lp+"/html.conf/fLinkResolve.html?offset="+c;this.activateForumInfo(b);this.startGetRequest("")};this.activateForumInfo=function(b){this.resultObject=document.getElementById("divForumInfo");positionRight(b,this.resultObject);this.resultObject.style.left="150px";try{this.resultObject.style.top=parseInt(this.resultObject.style.top.replace(/\s*px/,""))-100+"px"}catch(c){}this.resultObject.style.visibility="visible";this.resultObject.style.display="block";this.resultObject=document.getElementById("forumContent")}}
AjaxGetForumInfo.prototype=new Ajax;var ajaxGetForumInfo=new AjaxGetForumInfo;
function AjaxGetForm(){this.resultObject=null;this.url="?ajax=form";this.update=function(){if(ajaxGetForm.xmlHttpReq.readyState==4){var b=ajaxGetForm.xmlHttpReq.responseXML;b=b.documentElement;var c=null;for(i=0;i<b.childNodes.length;i++){if(b.childNodes[i].nodeName=="url")ajaxGetForm.url=b.childNodes[i].firstChild.nodeValue+"?ajax=form";if(b.childNodes[i].nodeName=="remove"){node=document.getElementById(b.childNodes[i].firstChild.nodeValue);c=node.parentNode;node&&node.parentNode&&node.parentNode.removeChild&&
node.parentNode.removeChild(node)}if(b.childNodes[i].nodeName=="append"){node=c?c:document.getElementById(b.childNodes[i].firstChild.firstChild.nodeValue);node.innerHTML+=b.childNodes[i].firstChild.nextSibling.firstChild.nodeValue}b.childNodes[i].nodeName=="eval"&&eval(b.childNodes[i].firstChild.firstChild.nodeValue);b.childNodes[i].nodeName=="error"&&alert(b.childNodes[i].firstChild.nodeValue)}}};this.request=function(b,c){this.startPostRequest(postBackString(b,c))}}AjaxGetForm.prototype=new Ajax;
var ajaxGetForm=new AjaxGetForm;
function AjaxGetPopUp(){this.update=function(){if(ajaxGetPopUp.xmlHttpReq.readyState==4){var b=ajaxGetPopUp.xmlHttpReq.responseXML;b=b.documentElement;for(var c=0;c<b.childNodes.length;c++){if(b.childNodes[c].nodeName=="remove"){var d=document.getElementById(b.childNodes[c].firstChild.nodeValue);if(d){targetNode=d.parentNode;d&&d.parentNode&&d.parentNode.removeChild&&d.parentNode.removeChild(d);document.getElementById("popup").style.display="none"}}if(b.childNodes[c].nodeName=="url")ajaxGetPopUp.url=
b.childNodes[c].firstChild.nodeValue+"?ajax=form";if(b.childNodes[c].nodeName=="append"){d=document.getElementById(b.childNodes[c].firstChild.firstChild.nodeValue);d.innerHTML="";importNode(loadXMLString(b.childNodes[c].firstChild.nextSibling.firstChild.nodeValue).documentElement,document,true);d.innerHTML=b.childNodes[c].firstChild.nextSibling.firstChild.nodeValue;document.getElementById("popup").style.display="block"}if(b.childNodes[c].nodeName=="replace"){d=document.getElementById(b.childNodes[c].firstChild.firstChild.nodeValue);
var f=document.createElement("div");f.innerHTML=b.childNodes[c].firstChild.nextSibling.firstChild.nodeValue;d.parentNode.replaceChild(f,d)}b.childNodes[c].nodeName=="eval"&&eval(b.childNodes[c].firstChild.firstChild.nodeValue);b.childNodes[c].nodeName=="error"&&alert(b.childNodes[c].firstChild.nodeValue)}}}}AjaxGetPopUp.prototype=new AjaxGetForm;var ajaxGetPopUp=new AjaxGetPopUp;
function AjaxRegister(){this.url="?ajax=info";this.update=function(){if(ajaxRegister.xmlHttpReq.readyState==4){var b=ajaxRegister.xmlHttpReq.responseXML;b=b.documentElement;for(var c=0;c<b.childNodes.length;c++){if(b.childNodes[c].nodeName=="loginack"){ajaxRegister.login.style.borderColor="green";document.getElementById("loginHelper").style.display="none"}if(b.childNodes[c].nodeName=="loginnoack"){ajaxRegister.login.style.borderColor="red";document.getElementById("loginHelperContent").innerHTML=ajaxRegister.xmlHttpReq.responseText;
document.getElementById("loginHelper").style.display="block"}if(b.childNodes[c].nodeName=="nickack"){ajaxRegister.nick.style.borderColor="green";document.getElementById("nickHelper").style.display="none"}if(b.childNodes[c].nodeName=="nicknoack"){ajaxRegister.nick.style.borderColor="red";document.getElementById("nickHelperContent").innerHTML=ajaxRegister.xmlHttpReq.responseText;document.getElementById("nickHelper").style.display="block"}}}}}AjaxRegister.prototype=new Ajax;var ajaxRegister;
AjaxRegister.prototype.checkLogin=function(b){this.login=b;this.startPostRequest("postBack="+b.form.name+"&value[action]=login&value[object]=login&value[value]="+encodeURIComponent(b.value))};AjaxRegister.prototype.setLogin=function(b){this.login.value=b.textContent;this.login.style.borderColor="green";document.getElementById("loginHelper").style.display="none"};
AjaxRegister.prototype.checkNick=function(b){this.nick=b;this.startPostRequest("postBack="+b.form.name+"&value[action]=login&value[object]=nick&value[value]="+encodeURIComponent(b.value))};AjaxRegister.prototype.setNick=function(b){this.nick.value=b.textContent;this.nick.style.borderColor="green";document.getElementById("nickHelper").style.display="none"};
function Translate(){this.url=server+"/api/text-1.1.php";this.xPath=new XPath;this.asyncron=false;this.xslt=new Xslt;this.xslt.init("/trainer/Xsl/AJAX/query.php");this.xslt.setLangParameter();this.option=new Option;this.option.height=260;lang=document.dict.lang.value;switch(lp){case "frde":this.xslt.setParameter("from","fr");break;case "esde":this.xslt.setParameter("from","es");break;case "itde":this.xslt.setParameter("from","it");break;case "chde":this.xslt.setParameter("from","ch");break;case "rude":this.xslt.setParameter("from",
"ru");break;default:this.xslt.setParameter("from","en");break}this.resultObject=document.getElementById("queryResult")}Translate.prototype=new Ajax;Translate.prototype.update=function(){translate.xmlHttpReq.readyState==4&&translate.render(translate.xmlHttpReq.responseXML)};
Translate.prototype.render=function(b){b=this.xslt.transformToDocument(b);translate.resultObject.innerHTML="";appendXSLTResult(translate.resultObject,b);document.result.lang.value=lang;document.result.lp.value=lp;b=translate.resultObject.getElementsByTagName("td");for(var c=b.length,d=0;d<c;d++)if(b[d].lang)for(var f=b[d].firstChild;f;)if(f.nodeType==3){for(var g=document.createElement("span"),h=f.data.split(/ /),k=0;k<h.length;k++)if(h[k].match(/\[.+\]/))g.appendChild(document.createTextNode(h[k]+
" "));else{var l=document.createElement("span");l.onclick=relink;l.setAttribute("class","link");l.appendChild(document.createTextNode(h[k]+" "));g.appendChild(l)}h=f.nextSibling;f.parentNode.replaceChild(g,f);f=h}else f=f.nextSibling};function relink(b){b||(b=event);if(b=b.target?b.target:b.srcElement){var c=-1;if(b.parentNode.parentNode.getAttribute("lang")=="de")c=1;translate.queryDict(b.firstChild.data,c)}}a=Translate.prototype;
a.insertLinks=function(){var b=document.getElementById("results").getElementsByTagName("tr");for(i=0;i<b.length;i++)if(b[i].vAlign=="top")if(document.inserttext.direction[1].checked){var c=b[i].getElementsByTagName("td")[1].textContent;b[i].getElementsByTagName("td")[0].innerHTML="<img src='/trainer/img/pfeil_l.gif' onclick='translate.replace(\""+c+"\");'/>"+b[i].getElementsByTagName("td")[0].innerHTML}else{c=b[i].getElementsByTagName("td")[3].textContent;b[i].getElementsByTagName("td")[4].innerHTML+=
"<img src='/trainer/img/pfeil_r.gif' onclick='translate.replace(\""+c+"\");'/>"}};
a.replace=function(b){var c=this.field.createElement("span");c.lang="de";c.appendChild(this.field.createTextNode(b));b=this.win.getSelection();var d=b.getRangeAt(0);b.removeAllRanges();d.deleteContents();var f=d.startContainer,g=d.startOffset;d=document.createRange();if(f.nodeType==3&&c.nodeType==3){f.insertData(g,c.nodeValue);d.setEnd(f,g+c.length);d.setStart(f,g+c.length)}else{if(f.nodeType==3){var h=f;f=h.parentNode;var k=h.nodeValue,l=k.substr(0,g);g=k.substr(g);l=document.createTextNode(l);g=
document.createTextNode(g);f.insertBefore(g,h);f.insertBefore(c,g);f.insertBefore(l,c);f.removeChild(h)}else{g=f.childNodes[g];f.insertBefore(c,g)}d.setEnd(g,0);d.setStart(g,0)}b.addRange(d)};
a.queryDict=function(b,c){if(document.dict.search.value!=b){if(!c)c=document.inserttext.searchLoc.value;this.resultObject=document.getElementById("queryResult");for(var d=[],f=0;f<eval("document.inserttext.elements.length");f++)eval("document.inserttext.elements["+f+"].type")=="checkbox"&&document.forms.inserttext.elements[f].checked==true&&d.push(encodeURIComponent(document.inserttext.elements[f].name)+"="+encodeURIComponent(document.inserttext.elements[f].value));this.startPostRequest("search="+
encodeURIComponent(b)+"&where="+c+"&lp="+lp+"&lang="+lang+"&"+d.join("&"));document.dict.search.value=b}};a.more=function(b,c){var d;if(!d)d=document.inserttext.searchLoc.value;this.startPostRequest("search="+encodeURIComponent(document.dict.search.value)+"&where="+d+"&min="+b+"&fixedSect="+c+"&lp="+lp+"&lang="+lang)};
a.less=function(b,c){var d;if(!d)d=document.inserttext.searchLoc.value;this.startPostRequest("search="+encodeURIComponent(document.dict.search.value)+"&where="+d+"&max="+b+"&fixedSect="+c+"&lp="+lp+"&lang="+lang)};
a.displaySearchResults=function(b){if(b&&b.documentElement){this.resultXml=b;this.xslt.setParameter("mode","bigresult");b=this.xslt.transformToDocument(b.documentElement);this.xslt.setParameter("mode","");document.getElementById("queryResult").innerHTML="";appendXSLTResult(document.getElementById("queryResult"),b.documentElement)}else{document.getElementById("queryResult").innerHTML="";alert("Fehler bei der Anfrage")}};
a.display=function(){if(document.getElementById("subnavigation").style.display.toLowerCase()=="table"||document.getElementById("subnavigation").style.display.toLowerCase()==""){document.getElementById("subnavigation").style.display="none";document.getElementById("singleword").style.display="none";document.getElementById("results")&&document.getElementById("results").parentNode.removeChild(document.getElementById("results"));document.getElementById("multiword").style.display="block";document.getElementById("iframe").src=
"/forum/translator.php?"+Math.random();this.field=document.getElementById("iframe").contentDocument;this.win=document.getElementById("iframe").contentWindow}};a.showLoader=function(){if(this.resultObject&&!is_ie)this.resultObject.innerHTML="<div style='width: 100%;height: 300px;'><table class='loading' style='width: 100%;height: 300px;'><tr><td>&#160;<img src='/trainer/img/ajax_loader_32x32.gif' alt='loading ...'/>&#160;</td></tr></table></div>"};
function initTranslate(){translate||(translate=new Translate)}function importNode(b,c,d){try{return c.importNode(b,d)}catch(f){return b}}function loadXMLString(b){try{return d=(new DOMParser).parseFromString(htmlEntityDecode(b.trim()),"text/xml")}catch(c){try{var d=new ActiveXObject("Microsoft.XMLDOM");d.async="false";d.loadXML(htmlEntityDecode(b.trim()));return d}catch(f){}}return null}
function htmlEntityDecode(b){var c=document.createElement("textarea");c.innerHTML=b.replace(/</g,"&lt;").replace(/>/g,"&gt;");return c.value}function Dictionary(){this.option=new Option;this.option.height=350}var dictionary=new Dictionary;function Loader(b,c){this.url=server+c;this.asyncron=true;this.target=b}Loader.prototype=new Ajax;Loader.prototype.update=function(){if(loader.xmlHttpReq.readyState==4)loader.target.innerHTML+=loader.xmlHttpReq.responseText};var loader;var filterObj,sortObj,row=0;function sortTable(b,c){for(direction*=-1;b.nodeName.toLowerCase()!="td"&&b.nodeName.toLowerCase()!="th";)b=b.parentNode;for(var d=b.parentNode;d.nodeName.toLowerCase()!="table";)d=d.parentNode;d=new Table(d);d.evalRow(b);d.readRows();d.sort(c);d.writeTable()}function sortOtherTable(b,c,d){direction*=-1;d=new Table(d);d.evalRow(b);d.readRows();d.sort(c);d.writeTable()}
function Table(b){this.table=b;this.row=0;this.rows=[];this.evalRow=function(c){if(c.getAttribute("colspan")&&c.getAttribute("colspan")>1)this.row+=parseInt(c.getAttribute("colspan"))-1;for(c=c.previousSibling;c;){if(c.getAttribute("colspan")&&c.getAttribute("colspan")>1)this.row+=parseInt(c.getAttribute("colspan"));else this.row++;c=c.previousSibling}};this.readRows=function(){for(var c=this.table.getElementsByTagName("tbody")[0],d=c.childNodes.length;c.childNodes.length>0;){this.rows.push(c.childNodes[0].cloneNode(true));
c.removeChild(c.childNodes[0])}};this.sort=function(c){row=this.row;eval("this.rows = this.rows.sort("+c+");")};this.writeTable=function(){var c=this.table.getElementsByTagName("tbody")[0];for(i=0;i<this.rows.length;i++){for(var d=this.rows[i].firstChild;d;){d.setAttribute("class","");d=d.nextSibling}getActCell(this.rows[i]).setAttribute("class","highlight");i%2==0?this.rows[i].setAttribute("class","uneven"):this.rows[i].setAttribute("class","even");c.appendChild(this.rows[i])}}}
this.getActCell=function(b){for(var c=0,d=0,f=b.childNodes[d];c<row&&f;){if(f.getAttribute("colspan")&&f.getAttribute("colspan")>1)c+=parseInt(f.getAttribute("colspan"));else c++;d++;f=b.childNodes[d]}return f};this.sortByName=function(b,c){b=this.getActCell(b);c=this.getActCell(c);var d=/(<.*?>)*(.*)(<\/.*>)?/;d.exec(b.innerHTML);b=RegExp.$2;d.exec(c.innerHTML);c=RegExp.$2;if(b.toLowerCase()>=c.toLowerCase())return 1*direction;return-1*direction};
this.sortByDate=function(b,c){aCell=this.getActCell(b);bCell=this.getActCell(c);b=new Array(/Jan/,/Feb/,/Mar/,/Apr/,/Mai/,/Jun/,/Jul/,/Aug/,/Sep/,/Oct/,/Nov/,/Dec/);c=aCell.innerHTML;for(i=0;i<b.length;i++)c=c.replace(b[i],i+1);c=c.replace(/\./,"");c=c.split(" ");var d=bCell.innerHTML;for(i=0;i<b.length;i++)d=d.replace(b[i],i+1);d=d.replace(/\./,"");d=d.split(" ");if(c=="")return 1*direction;if(d=="")return-1*direction;if(parseInt(c[2])>parseInt(d[2]))return 1*direction;else if(parseInt(c[2])==parseInt(d[2]))if(parseInt(c[1])>
parseInt(d[1]))return 1*direction;else if(parseInt(c[1])==parseInt(d[1]))if(parseInt(c[0])>parseInt(d[0]))return 1*direction;else if(parseInt(c[0])==parseInt(d[0])&&c.length>3&&d.length>3)if(c[3]>d[3])return 1*direction;return-1*direction};var dummerCounter=0;
this.sortByNumber=function(b,c){try{dummerCounter++;var d=this.getActCell(b),f=this.getActCell(c);b=/(<.*?>)*(-?\d+)/;var g,h=b.exec(d.innerHTML);if(h)g=parseFloat(RegExp.$2);h=b.exec(f.innerHTML);var k;if(h)k=parseFloat(RegExp.$2);if(isNaN(g)){if(isNaN(k))return 1*direction}else if(isNaN(k))return 1*direction;else if(g-k>=0)return 1*direction;return-1*direction}catch(l){return 1*direction}};
function FilterTable(){this.row=0;this.options=[];this.specialOption="<span class='spirit s_remove_filter' onclick='filterObj.unFilterTable();'>&#160;</span>";this.getTable=function(b){for(;b.nodeName.toLowerCase()!="table";)b=b.parent};this.getRow=function(b){for(var c=0;c<b.parent.childNodes.length;c++)if(b.parent.childNodes[c]===b){this.row++;break}else if(b.parent.childNodes[c].colSpan>0)this.row+=b.parent.childNodes[c].colSpan;else this.row++};this.filterTable=function(){var b=[];for(d=0;d<document.filter.elements.length;d++)document.filter.elements[d].checked&&
b.push(this.options[d]);if(b.length==0)this.unFilterTable();else for(var c=true,d=this.startRow;d<this.tableBody.childNodes.length;d++)if(this.tableBody.childNodes[d].nodeName.toLowerCase()=="tr")try{if(this.checkOption(this.tableBody.childNodes[d],b)){this.showRow(d,c);c=c==false}else this.hideRow(d)}catch(f){this.hideRow(d)}};this.showRow=function(b){try{this.tableBody.childNodes[b].style.display="table-row"}catch(c){this.tableBody.childNodes[b].style.display="block"}};this.hideRow=function(b){this.tableBody.childNodes[b].style.display=
"none"};this.unFilterTable=function(){for(b=0;b<document.filter.elements.length;b++)document.filter.elements[b].checked=false;for(var b=1;b<this.tableBody.childNodes.length;b++)if(this.tableBody.childNodes[b].nodeName.toLowerCase()=="tr")try{this.tableBody.childNodes[b].style.display="table-row"}catch(c){this.tableBody.childNodes[b].style.display="block"}};this.displayFilterOptions=function(b){this.filter=document.getElementById("filter");this.filterContent=document.getElementById("filterContent");
this.filterContent.innerHTML="";for(var c=0;c<this.options.length;c++){var d=document.createElement("input"),f=document.createAttribute("type");f.nodeValue="checkbox";d.setAttributeNode(f);f=document.createAttribute("onclick");f.nodeValue="filterObj.filterTable();";d.setAttributeNode(f);f=document.createAttribute("name");f.nodeValue="filterOption";d.setAttributeNode(f);f=document.createAttribute("value");f.nodeValue=this.options[c].value;d.setAttributeNode(f);this.filterContent.appendChild(d);this.filterContent.appendChild(document.createTextNode(this.options[c].title));
this.filterContent.appendChild(document.createElement("br"))}this.filterContent.innerHTML+=this.specialOption;this.filter.style.display="block";positionElement(b,this.filter,this.row)};this.getFilterOptions=function(){for(var b=3;b<this.table.firstChild.childNodes.length;b++)if(this.table.firstChild.childNodes[b].nodeName.toLowerCase()=="tr"&&this.table.firstChild.childNodes[b].getAttributeNode("valign"))try{var c=this.getFilterOption(this.table.firstChild.childNodes[b].childNodes[this.row]);c&&!this.options.inArray(c)&&
this.options.push(c)}catch(d){}}}function FilterByImg(){this.table=this.getTable(cell);this.row=this.getRow(cell);this.getFilterOption=function(){return new FilterOption(node.firstChild.title,node.firstChild.title)}}FilterByImg.prototype=new FilterTable;
function FilterLection(b){this.table=b;this.tableBody=this.table.getElementsByTagName("tbody")[0];this.nonSorted=false;this.startRow=0;this.specialOption="<div><a href='#' onclick='filterObj.filterUnSorted();'>Nicht eingeteilte Vokabeln</a></div>"+this.specialOption;this.filterUnSorted=function(){for(var c=this.startRow;c<this.tableBody.childNodes.length;c++)if(this.tableBody.childNodes[c].nodeName.toLowerCase()=="tr")try{this.isUnSorted(this.tableBody.childNodes[c])?this.showRow(c,true):this.hideRow(c)}catch(d){this.hideRow(c)}};
this.isUnSorted=function(c){for(var d=0;d<c.childNodes.length;d++)try{var f=c.childNodes[d];if(f.firstChild.nodeName.toLowerCase()=="input"&&f.firstChild.checked)return false}catch(g){}return true};this.getFilterOptions=function(){var c=document.getElementById("arrangeTableHeader").getElementsByTagName("tbody")[0];for(i=3;i<c.childNodes[0].childNodes.length-1;i++)try{this.options.push(new FilterOption(c.childNodes[0].childNodes[i].innerHTML,i+2))}catch(d){}};this.checkOption=function(c,d){for(var f=
0;f<d.length;f++){var g=c.childNodes[d[f].value];if(g.firstChild.nodeName.toLowerCase()=="input"&&g.firstChild.checked)return true}return false};this.getFilterOptions()}FilterLection.prototype=new FilterTable;function FilterName(b){this.table=this.getTable(b);this.row=this.getRow(b);this.getFilterOption=function(c){return new FilterOption(c.innerHTML,c.innerHTML)}}FilterByImg.prototype=new FilterTable;
function FilterDomain(){this.getFilterOption=function(b){return new FilterOption(b.innerHTML.match(/\[(\<\w+\>)?\w*\.?(<\/\w+\>)?\]/)[0].replace(/(\<\w+\>)|(<\/\w+\>)/g,""),b.innerHTML.match(/\[(\<\w+\>)?\w*\.?(<\/\w+\>)?\]/)[0].replace(/(\<\w+\>)|(<\/\w+\>)/g,""))};this.checkOption=function(b,c){b=this.getFilterOption(b.childNodes[this.row]);return c.inArray(b)}}FilterDomain.prototype=new FilterTable;
function FilterOption(b,c){this.title=b;this.value=c;this.isEqual=function(d){if(typeof this==typeof d&&this.title==d.title&&this.value==d.value)return true;return false}}
function positionElement(b,c,d){var f;if(self.pageYOffset)f=self.pageYOffset;else if(document.documentElement&&document.documentElement.scrollTop)f=document.documentElement.scrollTop;else if(document.body)f=document.body.scrollTop;if(b.pageX){var g=b.pageX;f=b.pageY}else{g=b.clientX;f=b.clientY+f}c.style.right="";if(d>0)c.style.left=g-10+"px";else{c.style.left="";var h;g=b.pageX?b.pageX:b.clientX;if(self.innerHeight)h=self.innerWidth;else if(document.documentElement&&document.documentElement.clientHeight)h=
document.documentElement.clientWidth;else if(document.body)h=document.body.clientWidth;if(!is_opera||is_opera9up)c.style.right=h-g-30+"px";else c.style.left=g-10+"px"}c.style.top=f-10+"px"}
function displayFilterOptionsTable(b,c,d,f){if(filterObj&&filterObj instanceof FilterDomain&&d==filterObj.row)filterObj.filter.style.display="block";else{filterObj&&filterObj instanceof FilterDomain&&filterObj.unFilterTable();filterObj=new FilterDomain;filterObj.table=document.getElementById(c);filterObj.row=d;filterObj.getFilterOptions();filterObj.tableBody=filterObj.table.firstChild;filterObj.startRow=3;filterObj.displayFilterOptions(b)}};row=0;var direction=1,evalStr="";function login(){var b=MD5(document.loginperson.elements[9].value);document.loginperson.elements[9].value=b;return true}function clearSubForm(b){if(b.nodeName.toLowerCase()=="input"&&b.getAttribute("type").toLowerCase()=="text"||b.nodeName.toLowerCase()=="textarea")b.value="";if(b.nodeName.toLowerCase()=="option")b.selected=false;if(b.hasChildNodes())for(b=b.firstChild;b!=null;){clearSubForm(b);b=b.nextSibling}}
function removeSubForm(b,c){var d=document.getElementById(b);if(d.childNodes.length>1)d.removeChild(c);else if(d.firstChild){d.firstChild.style.display="none";document.getElementById("restore"+b).style.display="block"}}function restoreSubForm(b){var c=document.getElementById(b);if(c.firstChild){c.firstChild.style.display="block";document.getElementById("restore"+b).style.display="none"}}
function duplicateSubForm(b,c){var d=document.getElementById(b).cloneNode(true);c=document.getElementById(c);for(var f=b.substr(0,b.length-3).substr(b.indexOf("[")),g=0,h=document.getElementById(b.substr(0,b.length-3)+"["+g+"]");h;){g++;h=document.getElementById(b.substr(0,b.length-3)+"["+g+"]")}updateName(d,b.substr(b.indexOf("[")),f+"["+g+"]",g);document.getElementById(b).parentNode.appendChild(d,c.nextSibling);eval(evalStr);evalStr=""}
function updateName(b,c,d,f){if(b.attributes)for(i=0;i<b.attributes.length;i++)if(b.attributes[i].nodeName.toLowerCase()=="href"&&b.attributes[i].nodeValue.search(/fxEffect/)!=-1){b.attributes[i].nodeValue=b.attributes[i].nodeValue.replace(/\d\./gi,f+".");evalStr+="fxEffectCorrection"+f+' = new fx.Height(document.getElementById("table'+d+'") , {duration: 400, onComplete: function() { toggle("atable'+d+'");}});'}else try{if(b.attributes[i].nodeValue&&b.attributes[i].nodeValue!="")b.attributes[i].nodeValue=
b.attributes[i].nodeValue.replace(c,d)}catch(g){}if(b.hasChildNodes())for(b=b.firstChild;b!=null;){updateName(b,c,d,f);b=b.nextSibling}}function show(b){if(document.getElementById(b).style.display=="none"||document.getElementById(b).style.display==""){document.getElementById("a"+b).firstChild.data="<<";document.getElementById(b).style.display="block"}else{document.getElementById("a"+b).firstChild.data=">>";document.getElementById(b).style.display="none"}}
function toggle(b){if(document.getElementById(b).firstChild.data==">>")document.getElementById(b).firstChild.data="<<";else document.getElementById(b).firstChild.data=">>"}
function insertString(b,c){if(typeof c.selectionStart!="undefined"){var d=c.value.substr(0,c.selectionStart),f=c.value.substr(c.selectionStart);c.value=d+b+f;c.setSelectionRange(d.length+1,d.length+1)}else if(typeof c.caretPos!="undefined"){d=c.value.substr(0,c.caretPos);f=c.value.substr(c.caretPos);c.value=d+b+f;c.caretPos.select()}c.focus()}function Assistance(){this.assistance=document.getElementById("assistance");this.leftOffset=-10}Assistance.prototype.init=function(b,c){this.field=c;this.position()};
Assistance.prototype.position=function(){this.assistance.style.display="block";var b=getPosition(this.field);this.assistance.style.left=b.x+this.leftOffset+"px";if(b.y<this.assistance.clientHeight+30){this.assistance.style.top=lp=="rude"&&!(forum||trainer)?b.y+this.field.clientHeight+32+"px":b.y+this.field.clientHeight+12+"px";this.assistance.style.bottom="auto";this.assistance.getElementsByTagName("img")[0].src="/trainer/img/notice.gif";this.assistance.getElementsByTagName("img")[0].style.top="-10px";
this.assistance.getElementsByTagName("img")[0].style.bottom="auto";if(this.assistance.getElementsByTagName("img")[1]){this.assistance.getElementsByTagName("img")[1].style.top="auto";this.assistance.getElementsByTagName("img")[1].style.left="auto";this.assistance.getElementsByTagName("img")[1].style.bottom="3px";this.assistance.getElementsByTagName("img")[1].style.right="3px"}}else{this.assistance.style.top=b.y-this.assistance.clientHeight-12+"px";this.assistance.style.bottom="auto";this.assistance.getElementsByTagName("img")[0].src=
"/trainer/img/noticeTop.gif";this.assistance.getElementsByTagName("img")[0].style.bottom="-10px";this.assistance.getElementsByTagName("img")[0].style.top="auto";this.assistance.getElementsByTagName("img")[1].style.top="3px";this.assistance.getElementsByTagName("img")[1].style.right="3px";this.assistance.getElementsByTagName("img")[1].style.bottom="auto";this.assistance.getElementsByTagName("img")[1].style.left="auto"}};
function InputAssistance(){this.leftOffset=30;this.assistance=document.getElementById("assistance");try{if(typeof document.evaluate!="undefined"&&!is_safari){var b=new XPath;b.evaluate("//div[@id='assistance']//div[@class='result']",document);this.assistance.result=b.iterateNext()}else{var c=getElementsByClass("result",document.getElementById("assistance"),"div");if(c&&c.length>0)this.assistance.result=c[0]}}catch(d){}this.chars=/([a-z]|[A-Z]|[0-9])+$/}InputAssistance.prototype=new Assistance;var inputAssistance;
a=InputAssistance.prototype;
a.init=function(b,c,d,f,g,h){this.field=c;this.subst=-1;this.side=2;if(lp=="rude"&&!(forum||trainer)){this.keyCodes=[];this.keyCodes[0]=new Array("a","A","\u0444","\u0424");this.keyCodes[1]=new Array("b","B","\u0438","\u0418");this.keyCodes[2]=new Array("c","C","\u0441","\u0421");this.keyCodes[3]=new Array("d","D","\u0432","\u0412");this.keyCodes[4]=new Array("e","E","\u0443","\u0423");this.keyCodes[5]=new Array("f","F","\u0430","\u0410");this.keyCodes[6]=new Array("g","G","\u043f","\u041f");this.keyCodes[7]=
new Array("h","H","\u0440","\u0420");this.keyCodes[8]=new Array("i","I","\u0448","\u0428");this.keyCodes[9]=new Array("j","J","\u043e","\u041e");this.keyCodes[10]=new Array("k","K","\u043b","\u041b");this.keyCodes[11]=new Array("l","L","\u0434","\u0414");this.keyCodes[12]=new Array("m","M","\u044c","\u042c");this.keyCodes[13]=new Array("n","N","\u0442","\u0422");this.keyCodes[14]=new Array("o","O","\u0449","\u0429");this.keyCodes[15]=new Array("p","P","\u0437","\u0417");this.keyCodes[16]=new Array("q",
"Q","\u0439","\u0419");this.keyCodes[17]=new Array("r","R","\u043a","\u041a");this.keyCodes[18]=new Array("s","S","\u044b","\u042b");this.keyCodes[19]=new Array("t","T","\u0435","\u0415");this.keyCodes[20]=new Array("u","U","\u0433","\u0413");this.keyCodes[21]=new Array("v","V","\u043c","\u041c");this.keyCodes[22]=new Array("w","W","\u0446","\u0426");this.keyCodes[23]=new Array("x","U","\u0447","\u0427");this.keyCodes[24]=new Array("y","V","\u044f","\u042f");this.keyCodes[25]=new Array("z","W","\u043d",
"\u041d");this.keyCodes[26]=new Array(",",";","\u0431","\u0411");this.keyCodes[27]=new Array(".",":","\u044e","\u042e");this.keyCodes[28]=new Array("\u00f6","\u00d6","\u0436","\u0416");this.keyCodes[29]=new Array("\u00e4","\u00c4","\u044d","\u042d");this.keyCodes[30]=new Array("\u00fc","\u00dc","\u0445","\u0425");this.keyCodes[31]=new Array("+","*","\u044a","\u042a");this.keyCodes[32]=new Array("^","\u00b0","\u0451","\u0401");this.writeTranslit(0)}else{if(typeof document.evaluate!="undefined"&&!is_safari){b=
new XPath;b.evaluate("//div[@id='assistance']//span[@class='format']",document);if(d)b.iterateNext().style.display="inline";else b.iterateNext().style.display="none";b.evaluate("//div[@id='assistance']//span[@class='mark']",document);if(f)b.iterateNext().style.display="inline";else b.iterateNext().style.display="none";b.evaluate("//div[@id='assistance']//span[@class='multiplechoice']",document);if(g)b.iterateNext().style.display="inline";else b.iterateNext().style.display="none";b.evaluate("//div[@id='assistance']//span[@class='cloze']",
document);if(h)b.iterateNext().style.display="inline";else b.iterateNext().style.display="none"}else{if((b=getElementsByClass("format",document.getElementById("assistance")))&&b.length>0)b[0].style.display=d?"inline":"none";if((b=getElementsByClass("mark",document.getElementById("assistance")))&&b.length>0)b[0].style.display=f?"inline":"none";if((b=getElementsByClass("multiplechoice",document.getElementById("assistance")))&&b.length>0)b[0].style.display=g?"inline":"none";if((b=getElementsByClass("cloze",
document.getElementById("assistance")))&&b.length>0)b[0].style.display=h?"inline":"none"}try{this.assistance.result.innerHTML=""}catch(k){}}this.position()};
a.writeTranslit=function(b){for(var c=document.getElementById("assistanceContent0"),d="<tr>",f="<tr>",g=0;g<this.keyCodes.length;g++)if(this.keyCodes[g]){d+="<td onclick='inputAssistance.insert(\""+this.keyCodes[g][b]+"\");'>"+this.keyCodes[g][b]+"</td>";f+="<td onclick='inputAssistance.insert(\""+this.keyCodes[g][b+2]+"\");'>"+this.keyCodes[g][b+2]+"</td>"}c.innerHTML="<table class='keyboard'><tbody>"+d+f+"</tbody></table>"};
a.insert=function(b){this.field.focus();if(typeof this.field.selectionStart!="undefined"&&!is_ie){var c=this.field.value.substr(0,this.field.selectionStart),d=this.field.value.substr(this.field.selectionStart);this.field.value=c+b+d;this.field.setSelectionRange(c.length+b.length,c.length+b.length)}else if(this.field.nodeName.toLowerCase()=="input")this.field.value+=b;else if(typeof document.selection!="undefined"){c=document.selection.createRange();c.text=b;c=document.selection.createRange();c.move("character",
0);c.select()}};
a.translate=function(b){if(this.field){if(b.ctrlKey)try{var c=parseInt(String.fromCharCode(b.keyCode))-1;if(!isNaN(c)){this.subst=c;this.appendSign()}return}catch(d){this.subst=-1;return}else switch(b.keyCode){case 38:this.subst--;this.appendSign();return;case 40:this.subst++;this.appendSign();return;case 27:this.assistance.style.display="none";return}var f=this.chars.exec(this.field.value);try{f=f[0]}catch(g){f=""}if(f!=""){eval("this.codeTable = codeTable"+f.substr(0,1).toUpperCase());this.assistance.result.innerHTML=
"Direkte Treffer:<br/>";this.subst=-1;signs=[];b=[];for(c=0;c<this.codeTable.length;c++)if(f==this.codeTable[c].pinjin.substr(0,f.length))if(f==this.codeTable[c].pinjin){signs.push(c);var h='<span onclick="inputAssistance.subst = '+(signs.length-1)+';inputAssistance.appendSign();">';h+=signs.length<=9?signs.length+") ":"&#160;&#160;&#160;&#160;";h+=this.codeTable[c].sign+"&#160;&#160;"+this.codeTable[c].pinjin+"</span>";this.assistance.result.innerHTML+=h;this.assistance.result.innerHTML+="<br/>"}else signs.length<
9&&b.length<9&&b.push(c);this.assistance.result.innerHTML+="------<br/>Teiltreffer:<br/>";for(f=signs.length;f<9&&f<b.length;f++){c=b[f];signs.push(c);h='<span onclick="inputAssistance.subst = '+(signs.length-1)+';inputAssistance.appendSign();">';h+=signs.length<=9?signs.length+") ":"&#160;&#160;&#160;&#160;";h+=this.codeTable[c].sign+"&#160;&#160;"+this.codeTable[c].pinjin+"</span>";this.assistance.result.innerHTML+=h;this.assistance.result.innerHTML+="<br/>"}}}};
a.disable=function(){if(confirm("Eingabehelfer wirklich deaktivieren?\r\nSie k\u00f6nnen den Eingabehelfer jederzeit unter Suchtips wieder aktivieren.")){setCookie("assistance",false,1E4,"/");this.assistance.style.display="none";inputAssistance=new InputAssistanceDummy}};a.translitDown=function(b){this.field&&b.keyCode==16&&this.writeTranslit(1)};
a.translit=function(b){if(document.getElementById("assistance").style.display=="block")if(this.field){b.keyCode==16&&this.writeTranslit(0);var c=this.field.value.substr(this.field.value.length-1,1);if(b.shiftKey)for(b=0;b<this.keyCodes.length;b++){if(c==this.keyCodes[b][3]){this.field.value=this.field.value.substr(0,this.field.value.length-1);this.insert(this.keyCodes[b][1]);return}if(c==this.keyCodes[b][1]){this.field.value=this.field.value.substr(0,this.field.value.length-1);this.insert(this.keyCodes[b][3]);
return}}else for(b=0;b<this.keyCodes.length;b++){if(c==this.keyCodes[b][2]){this.field.value=this.field.value.substr(0,this.field.value.length-1);this.insert(this.keyCodes[b][0]);return}if(c==this.keyCodes[b][0]){this.field.value=this.field.value.substr(0,this.field.value.length-1);this.insert(this.keyCodes[b][2]);return}}}};
a.appendSign=function(){if(this.subst<0)this.subst=signs.length-1;else if(this.subst>=signs.length)this.subst=0;var b=this.chars.exec(this.field.value);if(b&&b[0]!=""){b=b[0];this.field.value=this.field.value.substr(0,this.field.value.length-b.length)+this.codeTable[signs[this.subst]].sign}else try{this.field.value=this.field.value.substr(0,this.field.value.length-1)+this.codeTable[signs[this.subst]].sign}catch(c){}b=this.assistance.result.getElementsByTagName("span");for(i=0;i<b.length;i++)b[i].style.backgroundColor=
i==this.subst?"#6181FF":"transparent";setFocusPosition(this.field,this.field.value.length)};
a.tagText=function(b){if(typeof document.selection!="undefined"&&this.field.createTextRange&&!is_opera){this.field.focus();var c=document.selection.createRange(),d=c.text;c.text="["+b+"]"+d+"[/"+b+"]";c=document.selection.createRange();d.length==0?c.move("character",-("[/"+b+"]").length):c.moveStart("character",("["+b+"]").length+d.length+("[/"+b+"]").length);c.select()}else if(typeof this.field.selectionStart!="undefined"){c=this.field.value.substr(0,this.field.selectionStart);d=this.field.value.substr(this.field.selectionStart,
this.field.selectionEnd-this.field.selectionStart);var f=this.field.value.substr(this.field.selectionEnd),g=this.field.selectionStart,h=this.field.scrollTop;this.field.value=c+"["+b+"]"+d+"[/"+b+"]"+f;if(this.field.setSelectionRange){d.length==0?this.field.setSelectionRange(g+("["+b+"]").length,g+("["+b+"]").length):this.field.setSelectionRange(g,g+("["+b+"]").length+d.length+("[/"+b+"]").length);this.field.focus()}this.field.scrollTop=h}else{this.field.value+="["+b+"][/"+b+"]";this.field.focus(this.field.value.length-
1)}};function InputAssistanceDummy(){this.appendSign=function(){};this.insert=function(){};this.translate=function(){};this.init=function(){}}RichtextInputAssistance=function(){};RichtextInputAssistance.prototype.insert=function(b){this.field.getElementById("body").focus();this.field.execCommand("insertHTML",false,b)};function initAssistence(){inputAssistance=getCookie("assistance")&&getCookie("assistance")=="false"?new InputAssistanceDummy:new InputAssistance}
function initRichtextInputAssistence(b){if(inputAssistance.assistance)inputAssistance.assistance.style.display="none";inputAssistance=new RichtextInputAssistance;inputAssistance.field=b}document.onmousemove=mouseMove;document.onmouseup=mouseUp;var dragObject=null,dragItem=null,mouseOffset=null;function getMouseOffset(b,c){c=c||window.event;b=getPosition(b);c=mouseCoords(c);return{x:c.x-b.x,y:c.y-b.y}}
function getPosition(b){for(var c=0,d=0;b.offsetParent;){c+=b.offsetLeft;d+=b.offsetTop;b=b.offsetParent}c+=b.offsetLeft;d+=b.offsetTop;return{x:c,y:d}}function mouseMove(b){b=b||window.event;b=mouseCoords(b);if(dragObject&&b){dragObject.style.position="absolute";if(b.y-mouseOffset.y>=0)dragObject.style.top=b.y-mouseOffset.y+"px";if(b.x-mouseOffset.x>=0)dragObject.style.left=b.x-mouseOffset.x+"px";dragObject.style.right="auto";dragObject.style.bottom="auto";return false}}
function mouseCoords(b){try{if(b.pageX||b.pageY)return{x:b.pageX,y:b.pageY};return{x:b.clientX+document.body.scrollLeft-document.body.clientLeft,y:b.clientY+document.body.scrollTop-document.body.clientTop}}catch(c){return null}}function mouseUp(){if(dragObject)dragObject.onmousedown=function(){return false};if(dragItem)dragItem.onmousedown=null;dragObject=null}
function makeDraggable(b){if(b){dragObject=this;b.onmousedown=function(c){dragObject=this;mouseOffset=getMouseOffset(this,c);return false};dragItem=b}}AC_FL_RunContent=0;function addEvent(b,c,d){if(b.attachEvent){b["e"+c+d]=d;b[c+d]=function(){b["e"+c+d](window.event)};b.attachEvent("on"+c,b[c+d])}else b.addEventListener(c,d,false)}function removeEvent(b,c,d){if(b.detachEvent){b.detachEvent("on"+c,b[c+d]);b[c+d]=null}else b.removeEventListener(c,d,false)}
function showContent(b,c){if(openTree(b)){document.getElementById("learningcontent0").style.display="none";document.getElementById("learningcontent"+c).style.display="block"}else{document.getElementById("learningcontent"+c).style.display="none";document.getElementById("learningcontent0").style.display="block"}}
function getElementsByClass(b,c,d){var f=[];if(c==null)c=document;if(d==null)d="*";c=c.getElementsByTagName(d);d=c.length;b=new RegExp("(^|\\s)"+b+"(\\s|$)");for(j=i=0;i<d;i++)if(b.test(c[i].className)){f[j]=c[i];j++}return f}function showMore(b){b=b.nextSibling;var c=b.innerHeight;b.style.height="0px";b.style.display="block";c=new Animator;c.addSubject(new CSSStyleSubject(b,"height: 0px;","height: 300px"));c.play()}function Page(){this.page=1;this.name="page";this.lastPage=1}
Page.prototype.nextPage=function(){document.getElementById(this.name+this.page).style.display="none";if(document.getElementById(this.name+"-thumb-"+this.page))document.getElementById(this.name+"-thumb-"+this.page).className="inactive";this.page++;document.getElementById(this.name+this.page).style.display="block";if(this.page==this.lastPage)document.getElementById(this.name+"-next").style.display="none";document.getElementById(this.name+"-prev").style.display="block";if(document.getElementById(this.name+
"-thumb-"+this.page))document.getElementById(this.name+"-thumb-"+this.page).className="active"};
Page.prototype.prevPage=function(){document.getElementById(this.name+this.page).style.display="none";if(document.getElementById(this.name+"-thumb-"+this.page))document.getElementById(this.name+"-thumb-"+this.page).className="inactive";this.page--;document.getElementById(this.name+this.page).style.display="block";if(this.page==1)document.getElementById(this.name+"-prev").style.display="none";document.getElementById(this.name+"-next").style.display="block";if(document.getElementById(this.name+"-thumb-"+
this.page))document.getElementById(this.name+"-thumb-"+this.page).className="active"};
Page.prototype.gotoPage=function(b){document.getElementById(this.name+this.page).style.display="none";if(document.getElementById(this.name+"-thumb-"+this.page))if(document.getElementById(this.name+"-thumb-"+this.page).className.search(/active/)>=0){var c=document.getElementById(this.name+"-thumb-"+this.page).className.replace(/(\s|^)active/g," inactive");document.getElementById(this.name+"-thumb-"+this.page).className=c}else document.getElementById(this.name+"-thumb-"+this.page).className="inactive";
this.page=b;document.getElementById(this.name+this.page).style.display="block";if(this.page==1&&document.getElementById(this.name+"-prev"))document.getElementById(this.name+"-prev").style.display="none";if(document.getElementById(this.name+"-next"))document.getElementById(this.name+"-next").style.display="block";if(document.getElementById(this.name+"-thumb-"+this.page))if(document.getElementById(this.name+"-thumb-"+this.page).className.search(/active/)>=0){c=document.getElementById(this.name+"-thumb-"+
this.page).className.replace(/(\s|^)inactive/g," active");document.getElementById(this.name+"-thumb-"+this.page).className=c}else document.getElementById(this.name+"-thumb-"+this.page).className="active";if(this.page!=1&&document.getElementById(this.name+"-prev"))document.getElementById(this.name+"-prev").style.display="block";if(this.page==1&&document.getElementById(this.name+"-prev"))document.getElementById(this.name+"-prev").style.display="none";if(this.page!=this.lastPage&&document.getElementById(this.name+
"-next"))document.getElementById(this.name+"-next").style.display="block";if(this.page==this.lastPage&&document.getElementById(this.name+"-next"))document.getElementById(this.name+"-next").style.display="none"};function minMaxWidth(b,c){var d="auto",f=document.body.clientWidth+1;if(f>c)d=c+"px";f-=2;if(f<b)d=b+"px";return d};function assert(b){if(!b)throw new Error("Failed Assertion");}function TestSuite(){this.tests=Array();this.catcherrors=false}TestSuite.prototype.add=function(b){this.tests.push(b)};if(is_nav)Error.prototype.errinfo=function(){return"At <"+this.fileName+":"+this.lineNumber+">, stack:\n"+this.stack};function RemoteError(b,c){Error.call(this);this.name=b;this.msg=c}RemoteError.prototype=new Error;RemoteError.prototype.errinfo=function(){return this.msg};
TestSuite.prototype.run=function(b){var c=0,d=0;b.innerHTML="Testing...";for(var f in this.tests)if(this.catcherrors)try{this.tests[f]();d+=1}catch(g){c+=1;var h='<p class="testfailed">Test '+f+" failed: "+g;if(g instanceof Error)h+="<br/>"+g.errinfo();h+="</p>";b.innerHTML+=h}else{this.tests[f]();d+=1}b.innerHTML+=c?"<p>FAILED: "+c+" Test(s) failed, "+d+" Test(s) succeeded.</p>":"<p>OK: All "+d+" Tests succeeded</p>"};var testSuite=new TestSuite;function noaction(){}function isdefined(b){return b!=undefined}function copyToArray(b){for(var c=[],d=b.length;d;d--)c[d]=b[d];return c}$A=copyToArray;Function.prototype.tie=function(){var b=this,c=copyToArray(arguments),d=c.shift();return function(){return b.apply(d,c.concat(copyToArray(arguments)))}};function dump(b){if(b instanceof Object){var c="{";for(var d in b)c+=d+":"+typeof b[d]+", ";c+="}";return c}else return"<external object>"+typeof b}
var ActiveX_XMLDOM="MSXML2.DOMDocument",ActiveX_XMLHTTP="MSXML2.XMLHTTP",ActiveX_XSLStylesheet="MSXML2.FreeThreadedDOMDocument",ActiveX_XSLTemplate="MSXML2.XSLTemplate";function firstUp(b){if(!b)return b;return b.substr(0,1).toUpperCase()+b.substr(1)}var enable_timing=0;function Counter(b){this.name=b;this.time=this.calls=0}Counter.prototype.avg=function(){return this.time/this.calls};Counter.bytime=function(b,c){return c.time-b.time};Counter.byavgtime=function(b,c){return c.avg()-b.avg()};
var timing=new function(){this.names=[];this.counters=[]};timing.add=function(b,c){if(this.counters[b]===undefined){this.names.push(b);this.counters[b]=new Counter(b)}b=this.counters[b];b.calls++;b.time+=c};timing.stats=function(b){var c=b+" (timing stats):\n",d=[];for(b=0;b<this.names.length;b++)d.push(this.counters[this.names[b]]);d.sort(Counter.bytime);for(b=0;b<d.length;b++){var f=d[b];c+=f.time+"ms: "+f.name+" ("+f.calls+" calls, avg "+f.avg().toFixed(1)+"ms)\n"}alert(c)};
function timed(b,c){if(!enable_timing)return c;return function(){var d=(new Date).getTime(),f=c.apply(this,arguments);d=(new Date).getTime()-d;timing.add(b,d);return f}};function XmlDoc_Native(){}XmlDoc_Native.create=function(){return document.implementation.createDocument("","xml",null)};function XmlDoc_MS(){}XmlDoc_MS.create=function(){var b=new ActiveXObject("Microsoft.XMLDOM");b.appendChild(b.createElement("xml"));return b};function getXmlDocClass(){return document.implementation&&document.implementation.createDocument?XmlDoc_Native:XmlDoc_MS}var XmlDocument=getXmlDocClass();function XsltBase(){}
XsltBase.prototype.mkXslUrl=function(b){return b+"?lang="+lang+"&xsltOutput="+xsltOutput+"&PHPSESSID="+getCookie("PHPSESSID")};function Xslt_Native(){this.processor=null}Xslt_Native.prototype=new XsltBase;
Xslt_Native.prototype.init=function(b){b=this.mkXslUrl(b);this.processor=new XSLTProcessor;var c;try{c=document.implementation.createDocument("http://www.w3.org/1999/XSL/Transform","xsl",null);c.async=false;c.load(b);this.processor.importStylesheet(c)}catch(d){c=new Ajax;c.asyncron=false;c.url=b;c.startPostRequest("");this.processor.importStylesheet(c.xmlHttpReq.responseXML)}};Xslt_Native.prototype.setParameter=function(b,c){this.processor.setParameter(null,b,c)};
Xslt_Native.prototype.transformToDocument=function(b){return this.processor.transformToDocument(b)};function Xslt_Google(){this.processor=null}Xslt_Google.prototype=new XsltBase;Xslt_Google.prototype.init=function(b){b=this.mkXslUrl(b);try{var c=document.implementation.createDocument("http://www.w3.org/1999/XSL/Transform","xsl",null);c.async=false;c.load(b);this.processor=c}catch(d){c=new Ajax;c.asynchron=false;c.url=b;c.startPostRequest("");this.processor=c.xmlHttpReq.responseXML}this.cache={}};
Xslt_Google.prototype.setParameter=function(b,c){if(this.cache[b])this.cache[b].setAttribute("select","'"+c+"'");else{var d="//xsl:param[@name='"+b+"']",f=new XPath;f.evaluate(d,this.processor);if(d=f.iterateNext()){this.cache[b]=d;d.setAttribute("select","'"+c+"'")}}};Xslt_Google.prototype.transformToDocument=function(b){if(b.ownerDocument)return xsltProcess(b,this.processor.documentElement);else if(b.documentElement)return xsltProcess(b.documentElement,this.processor.documentElement)};
function Xslt_MS(){this.processor=null}Xslt_MS.prototype=new XsltBase;Xslt_MS.prototype.init=function(b){b=this.mkXslUrl(b);var c;try{c=new ActiveXObject(ActiveX_XSLStylesheet)}catch(d){throw d;}c.async=false;c.load(b);if(c.parseError.errorCode!=0)return false;var f;try{f=new ActiveXObject(ActiveX_XSLTemplate)}catch(g){throw g;}f.stylesheet=c;this.processor=f.createProcessor()};Xslt_MS.prototype.setParameter=function(b,c){this.processor.addParameter(b,c)};
Xslt_MS.prototype.transformToDocument=function(b){this.processor.input=b;this.processor.transform();b=this.processor.output;try{var c;try{c=new ActiveXObject(ActiveX_XMLDOM)}catch(d){logExpt(d,"Creating "+ActiveX_XMLDOM+" failed (passed on)");throw d;}c.asyncron=false;c.loadXML(b);if(c.parseError.errorCode!=0)return b;return c}catch(f){return b}};function Xslt_None(){this.processor=null}Xslt_None.prototype=new XsltBase;Xslt_None.prototype.init=function(){};Xslt_None.prototype.setParameter=function(){};
Xslt_None.prototype.transformToDocument=function(){return null};function getXsltClass(){if(typeof XSLTProcessor!="undefined")return Xslt_Native;if(typeof XsltProcess!="undefined")return Xslt_Google;if(typeof ActiveXObject!="undefined")return Xslt_MS;return Xslt_None}var Xslt=getXsltClass();
Xslt.prototype.setLangParameter=function(b){var c="_from",d="_to";if(b&&b!=1){c="_to";d="_from"}switch(lp){case "ende":this.setParameter(c,"en");this.setParameter(d,"de");break;case "frde":this.setParameter(c,"fr");this.setParameter(d,"de");break;case "esde":this.setParameter(c,"es");this.setParameter(d,"de");break;case "itde":this.setParameter(c,"it");this.setParameter(d,"de");break;case "chde":this.setParameter(c,"ch");this.setParameter(d,"de");break;case "rude":this.setParameter(c,"ru");this.setParameter(d,
"de");break}};function XPathBase(){}function XPath_Native(){this.XPathResult=null}XPath_Native.prototype=new XPathBase;XPath_Native.prototype.evaluate=function(b,c,d){this.xpexpr=b;d||(d=c);this.xPathResult=c.evaluate(b,d,null,XPathResult.ANY_TYPE,null)};XPath_Native.prototype.iterateNext=function(){return this.xPathResult.iterateNext()};function XPath_Manual(){this.foundNodes=null;this.foundIdx=0}
XPath_Manual.prototype.fallback=function(b,c,d){if(!this.FallbackClass)throw new Exception("Can't handle XPath and no fallback: "+b);var f=new this.FallbackClass;f.evaluate(b,c,d);this.foundIdx=0;for(this.foundNodes=[];b=f.iterateNext();)this.foundNodes.push(b)};
XPath_Manual.prototype.evaluate=function(b,c,d){var f=/^(\*|\w*)\[@id='(.*?)'\]$/,g=/^id\('(.*)'\)$/,h=/^(\*|\w+)(?:\[@(\w+)='(.*?)'\])?$/,k=null,l=b.split("/");if(k=l[0].match(/^ancestor::(\*|\w+)(?:\[@(\w+)='(.*?)'\])?/))for(d=d.parentNode;d;){if(d.nodeName.toLowerCase()==k[1]&&d.className.toLowerCase()==k[3]){l[0]=".";break}d=d.parentNode}if(l[0]=="."){k=d;l.shift()}else if(l[0]==".."){k=d.parentNode;l.shift()}else if(k=l[0].match(g)){k=c.getElementById(k[1]);l.shift()}else if(l[0]===""&&l[1]===
""&&(k=l[2].match(f))){k=c.getElementById(k[2]);l.shift();l.shift();l.shift()}else return this.fallback(b,c,d);f=[k];for(g=0;g<l.length;g++){k=[];var n=l[g]==="";if(n){g++;if(g>=l.length)return this.fallback(b,c,d)}var m=l[g].match(h);if(!m)return this.fallback(b,c,d);if(m[2]=="class"&&!is_ie8up)m[2]="className";for(var p=0;p<f.length;p++)for(var o=f[p].firstChild;o;o=o.nextSibling){n&&f.push(o);if(m[1]!="*")if(o.nodeName.toLowerCase()!=m[1].toLowerCase())continue;if(m.length>1&&m[2]!=""&&m[3]!="")if(o.getAttribute(m[2])!==
m[3])continue;k.push(o)}f=k}self.foundNodes=f;self.foundIdx=0};XPath_Manual.prototype.iterateNext=function(){return self.foundNodes[self.foundIdx++]};XPath_Manual.prototype.FallbackClass=XPath_Native;function XPath_Google(){this.xPathResult=null}XPath_Google.prototype=new XPathBase;XPath_Google.prototype.evaluate=function(b,c,d){var f=null;f=d?new ExprContext(d):new ExprContext(c);this.iterator=0;this.xPathResult=xpathEval(b,f).nodeSetValue()};
XPath_Google.prototype.iterateNext=function(){if(this.xPathResult.constructor==Array&&this.xPathResult.length>0)return this.xPathResult.shift();if(typeof this.xPathResult=="object"&&this.xPathResult.length>this.iterator){this.iterator++;return this.xPathResult[this.iterator-1]}};function XPath_MS(){this.XPathResult=null}XPath_MS.prototype=new XPathBase;XPath_MS.prototype.evaluate=function(b,c,d){c.setProperty("SelectionLanguage","XPath");this.iterator=0;this.xPathResult=d?d.selectNodes(b):c.selectNodes(b)};
XPath_MS.prototype.iterateNext=function(){if(this.xPathResult.constructor==Array&&this.xPathResult.length>0)return this.xPathResult.pop();if(typeof this.xPathResult=="object"&&this.xPathResult.length>this.iterator){this.iterator++;return this.xPathResult[this.iterator-1]}};var XPath_MS_HTML=XPath_Manual;function XPath_MS_Dispatch(){}XPath_MS_Dispatch.prototype.log=noaction;
XPath_MS_Dispatch.prototype.evaluate=function(b,c,d){this.worker=null;if(c==document){this.log("XPath-Dispatch: evaluating with XPath_MS_HTML");this.worker=new XPath_MS_HTML}else{this.log("XPath-Dispatch: evaluating with XPath_MS");this.worker=new XPath_MS}return this.worker.evaluate(b,c,d)};XPath_MS_Dispatch.prototype.iterateNext=function(){return this.worker.iterateNext()};function XPath_None(){}XPath_None.prototype=new XPathBase;XPath_None.prototype.evaluate=function(){};
XPath_None.prototype.iterateNext=function(){return null};function getXPathClass(){if(typeof document.evaluate!="undefined"&&typeof document.evaluate.emulated=="undefined")return XPath_Native;if(typeof XsltProcess!="undefined")return XPath_Google;if(typeof ActiveXObject!="undefined"){document.write('<script src="/js/html-xpath/html-xpath.js">\n<\/script>');return XPath_MS_Dispatch}return XPath_None}var XPath=getXPathClass();
XPath.getSingleNode=function(b,c,d){var f=new XPath;f.evaluate(b,c,d);b=f.iterateNext();if(f.iterateNext()!=null)throw new Error("XPath single node search returned more than one result");return b};
var appendXSLTResult=function(b,c){if(typeof c=="object")try{if(c.documentElement.nodeName.toLowerCase()=="html"){var d=new XPath;d.evaluate("/html/body/*",c);for(var f;f=d.iterateNext();)appendXSLTObject(b,f)}else appendXSLTObject(b,c.documentElement)}catch(g){b.innerHTML+=c.xml}else if(typeof c=="string")b.innerHTML+=c};
function appendXSLTObject(b,c){var d=null;if(b.ownerDocument)if(b.ownerDocument.importNode)d=b.ownerDocument.importNode(c,true);else{b.innerHTML=c.xml;return}else d=c;for(;d.attributes.length>0;)d.removeAttributeNode(d.attributes[0]);if(d.nodeName=="transformiix:result")for(c=d.firstChild;c;){b.appendChild(c.cloneNode(true));c=c.nextSibling}else b.appendChild(d)}function importNode(b,c,d){try{return c.importNode(b,d)}catch(f){return b}}
function setCookie(b,c,d,f,g,h){var k=new Date;k.setTime(k.getTime());if(d)d=d*1E3*60*60*24;k=new Date(k.getTime()+d);document.cookie=b+"="+escape(c)+(d?";expires="+k.toGMTString():"")+(f?";path="+f:"")+(g?";domain="+g:"")+(h?";secure":"")}
function getCookie(b){var c=document.cookie.indexOf(b+"="),d=c+b.length+1;if(!c&&b!=document.cookie.substring(0,b.length))return null;if(c==-1)return null;b=document.cookie.indexOf(";",d);if(b==-1)b=document.cookie.length;return unescape(document.cookie.substring(d,b))}
function _importNode(b,c){var d;if(b.nodeType==1){d=document.createElement(b.nodeName);for(var f=0;f<b.attributes.length;f++)if(b.attributes[f].nodeValue!=null&&b.attributes[f].nodeValue!=""){var g=b.attributes[f].name;g=="class"?d.setAttribute("className",b.attributes[f].value):d.setAttribute(g,b.attributes[f].value)}if(b.style!=null&&b.style.cssText!=null)d.style.cssText=b.style.cssText}else if(b.nodeType==3)d=document.createTextNode(b.nodeValue);if(c&&b.hasChildNodes())for(b=b.firstChild;b;b=b.nextSibling)d.appendChild(document._importNode(b,
true));return d};function google_ad_request_done(b){var c="",d;if(b.length!=0){if(b[0].type=="html")c+=b[0].snippet;else if(b.length==1)c+='<a href="'+google_info.feedback_url+'"><img width="94" height="16" border="0" src="http://pagead2.googlesyndication.com/pagead/abglogo/abg-de-100c-000000.png" alt="Google-Anzeigen"/></a><br> <a style="color:#CC0000;text-decoration:none;font-size:0.9em;" href="'+b[d].url+'" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to '+b[d].visible_url+'\';return true"> <span style="text-decoration:underline"> <b>'+
b[d].line1+'</b><br></span></a> <span style="color:#000000">'+b[d].line2+"<br>"+b[d].line3+'<br></span> <span><a style="color:#008000;text-decoration:none;font-size:11px;" href="'+b[d].url+'" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to '+b[d].visible_url+"';return true\">"+b[d].visible_url+"</span></a><br></div>";else if(b.length>1){c+='<div style="padding:5px"><a href="'+google_info.feedback_url+'"><img width="94" height="16" border="0" src="http://pagead2.googlesyndication.com/pagead/abglogo/abg-de-100c-000000.png" alt="Google-Anzeigen"/></a><br>';
for(d=0;d<b.length;++d)c+='<br><a style="color:#CC0000;text-decoration:none;font-size:0.9em;" href="'+b[d].url+'" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to '+b[d].visible_url+'\';return true"> <span style="text-decoration:underline"> <b>'+b[d].line1+'</b><br></span></a> <span style="color:#000000;font-size:0.9em">'+b[d].line2+"<br>"+b[d].line3+'<br></span> <span><a style="color:#008000;text-decoration:none;font-size:11px;" href="'+b[d].url+'" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to '+
b[d].visible_url+"';return true\">"+b[d].visible_url+"</span></a><br>";c+="</div>"}document.write(c)}}google_ad_client="pub-3426494319803874";google_ad_channel="1461182824";google_ad_output="js";google_max_num_ads="4";google_ad_type="text_html";google_feedback="on";var isIE=navigator.appVersion.indexOf("MSIE")!=-1?true:false,isWin=navigator.appVersion.toLowerCase().indexOf("win")!=-1?true:false,isOpera=navigator.userAgent.indexOf("Opera")!=-1?true:false;
function ControlVersion(){var b,c;try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");b=c.GetVariable("$version")}catch(d){}if(!b)try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");b="WIN 6,0,21,0";c.AllowScriptAccess="always";b=c.GetVariable("$version")}catch(f){}if(!b)try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");b=c.GetVariable("$version")}catch(g){}if(!b)try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");b="WIN 3,0,18,0"}catch(h){}if(!b)try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
b="WIN 2,0,0,11"}catch(k){b=-1}return b}
function GetSwfVer(){var b=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){b=navigator.plugins["Shockwave Flash"+(navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"")].description.split(" ");var c=b[2].split("."),d=c[0];c=c[1];var f=b[3];if(f=="")f=b[4];if(f[0]=="d")f=f.substring(1);else if(f[0]=="r"){f=f.substring(1);if(f.indexOf("d")>0)f=f.substring(0,f.indexOf("d"))}b=d+"."+c+"."+f}}else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=
-1)b=4;else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1)b=3;else if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1)b=2;else if(isIE&&isWin&&!isOpera)b=ControlVersion();return b}
function DetectFlashVer(b,c,d){versionStr=GetSwfVer();if(versionStr==-1)return false;else if(versionStr!=0){if(isIE&&isWin&&!isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",")}else versionArray=versionStr.split(".");var f=versionArray[0],g=versionArray[1],h=versionArray[2];if(f>parseFloat(b))return true;else if(f==parseFloat(b))if(g>parseFloat(c))return true;else if(g==parseFloat(c))if(h>=parseFloat(d))return true;return false}}
function LinguatecPlayer(b,c){this.name=b;this.lang=c;this.speed=100;this.text="";this.voice=this.lang=="en"?this.lang+"-gb":this.lang=="ch"?"zh-cn":this.lang+"-"+this.lang}a=LinguatecPlayer.prototype;a.AC_AddExtension=function(b,c){return b.indexOf("?")!=-1?b.replace(/\?/,c+"?"):b+c};
a.AC_Generateobj=function(b,c,d){var f="";if(isIE&&isWin&&!isOpera){f+="<object ";for(var g in b)f+=g+'="'+b[g]+'" ';f+=">";for(g in c)f+='<param name="'+g+'" value="'+c[g]+'" /> ';f+="</object>"}else{f+="<embed ";for(g in d)f+=g+'="'+d[g]+'" ';f+="> </embed>"}document.getElementById(this.name).innerHTML=f};
a.AC_FL_RunContent=function(){var b=this.AC_GetArgs(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");this.AC_Generateobj(b.objAttrs,b.params,b.embedAttrs)};a.AC_SW_RunContent=function(){var b=this.AC_GetArgs(arguments,".dcr","src","clsid:166B1BCA-3F9C-11CF-8075-444553540000",null);this.AC_Generateobj(b.objAttrs,b.params,b.embedAttrs)};
a.AC_GetArgs=function(b,c,d,f,g){var h={};h.embedAttrs={};h.params={};h.objAttrs={};for(var k=0;k<b.length;k+=2)switch(b[k].toLowerCase()){case "classid":break;case "pluginspage":h.embedAttrs[b[k]]=b[k+1];break;case "src":case "movie":b[k+1]=this.AC_AddExtension(b[k+1],c);h.embedAttrs.src=b[k+1];h.params[d]=b[k+1];break;case "onafterupdate":case "onbeforeupdate":case "onblur":case "oncellchange":case "onclick":case "ondblclick":case "ondrag":case "ondragend":case "ondragenter":case "ondragleave":case "ondragover":case "ondrop":case "onfinish":case "onfocus":case "onhelp":case "onmousedown":case "onmouseup":case "onmouseover":case "onmousemove":case "onmouseout":case "onkeypress":case "onkeydown":case "onkeyup":case "onload":case "onlosecapture":case "onpropertychange":case "onreadystatechange":case "onrowsdelete":case "onrowenter":case "onrowexit":case "onrowsinserted":case "onstart":case "onscroll":case "onbeforeeditfocus":case "onactivate":case "onbeforedeactivate":case "ondeactivate":case "type":case "codebase":case "id":h.objAttrs[b[k]]=
b[k+1];break;case "width":case "height":case "align":case "vspace":case "hspace":case "class":case "title":case "accesskey":case "name":case "tabindex":h.embedAttrs[b[k]]=h.objAttrs[b[k]]=b[k+1];break;default:h.embedAttrs[b[k]]=h.params[b[k]]=b[k+1]}h.objAttrs.classid=f;if(g)h.embedAttrs.type=g;return h};a.getTextFromNode=function(b){this.text=convertHTMLToLinguatec(b)};
a.write=function(){if(this.AC_FL_RunContent==0)alert('Diese Seite erfordert die Datei "AC_RunActiveContent.js".');else{var b="vrserver3.linguatec.net";if(lp!="ende")b="vrserver1.linguatec.net";this.AC_FL_RunContent("codebase","http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0","width","143","height","47","src","http://www.linguatec.net/flash/vrweb/linguatec_player_amf_leo","quality","high","pluginspage","http://www.macromedia.com/go/getflashplayer","align","middle",
"play","true","loop","true","scale","showall","wmode","window","devicefont","false","id","linguatec_player","bgcolor","#ffffff","FlashVars","vrplayer_bgautostart=0&vrwebplayer_bgid=1&vrplayer_autostart=0&vrplayer_path=http://www.linguatec.net/flash/vrweb/&vrplayer_skin=1&vrplayer_guilang=de&vrplayer_js_srctxt=&vrplayer_js_srcurl=&vrwebsrv_srctext="+encodeURIComponent(this.text)+"&vrwebsrv_lang="+this.voice+"&vrwebsrv_guilang=de-de&vrwebsrv_srctype=text&vrwebsrv_readcontent=all&vrwebsrv_srccharset=utf8&vrwebsrv_readelementsclass=&vrwebsrv_readelementsname=&vrwebsrv_exclelementsclass=&vrwebsrv_exclelementsname=&vrwebsrv_srcurl=&vrwebsrv_cache=0&vrwebsrv_mp3download=0&vrwebsrv_sndtype=1&vrwebsrv_sndquality=4&vrwebsrv_sndpitch=100&vrwebsrv_sndspeed=100&vrwebsrv_sndgender=W&vrwebsrv_cid=10011&vrwebsrv_simpleparse=0&vrwebsrv_amf="+
b+"/Server/vrwebamf.pl","name","linguatec_player","menu","true","allowFullScreen","false","allowScriptAccess","sameDomain","movie","http://www.linguatec.net/flash/vrweb/linguatec_player_amf_leo","salign","")}};function convertHTMLToLinguatec(b){if(b.nodeType==3)return b.data;else if(b.nodeName.toLowerCase()=="br")return b.nextSibling&&b.nextSibling.nodeName.toLowerCase()=="br"?" . ":" ";else{var c="";for(b=b.firstChild;b;){c+=convertHTMLToLinguatec(b);b=b.nextSibling}return c}};function Animator(b){this.setOptions(b);var c=this;this.timerDelegate=function(){c.onTimerEvent()};this.subjects=[];this.state=this.target=0;this.lastTime=null}
Animator.prototype={setOptions:function(b){this.options=Animator.applyDefaults({interval:20,duration:400,onComplete:function(){},onStep:function(){},transition:Animator.tx.easeInOut},b)},seekTo:function(b){this.seekFromTo(this.state,b)},seekFromTo:function(b,c){if(is_webkit&&pda){b=1;if(is_iphone)b=2;if(is_android)b=1;this.seekFromToWithTransition("webkit",b)}else{this.target=Math.max(0,Math.min(1,c));this.state=Math.max(0,Math.min(1,b));this.lastTime=(new Date).getTime();if(!this.intervalId)this.intervalId=
window.setInterval(this.timerDelegate,this.options.interval)}},seekFromToWithTransition:function(b,c){this.prefix=b;for(var d=0;d<this.subjects.length;d++)for(var f=0;f<this.subjects[d].els.length;f++){this.subjects[d].els[f].style[this.subjects[d].property]=this.subjects[d].from+this.subjects[d].units;d==this.subjects.length-1&&f==this.subjects[d].els.length-1&&this.subjects[d].els[f].addEventListener(b+"TransitionEnd",this.options.onComplete.tie(this),false);this.subjects[d].els[f].style["-"+b+
"-transition-property"]=this.subjects[d].property;this.subjects[d].els[f].style["-"+b+"-transition-duration"]=this.options.duration*c+"ms";this.subjects[d].els[f].style[this.subjects[d].property]=this.subjects[d].to+this.subjects[d].units}},jumpTo:function(b){this.target=this.state=Math.max(0,Math.min(1,b));this.propagate()},toggle:function(){this.seekTo(1-this.target)},addSubject:function(b){this.subjects[this.subjects.length]=b;return this},clearSubjects:function(){this.subjects=[]},propagate:function(){for(var b=
this.options.transition(this.state),c=0;c<this.subjects.length;c++)this.subjects[c].setState?this.subjects[c].setState(b):this.subjects[c](b)},onTimerEvent:function(){var b=(new Date).getTime(),c=b-this.lastTime;this.lastTime=b;b=c/this.options.duration*(this.state<this.target?1:-1);if(Math.abs(b)>=Math.abs(this.state-this.target))this.state=this.target;else this.state+=b;try{this.propagate()}finally{this.options.onStep.call(this);if(this.target==this.state){window.clearInterval(this.intervalId);
this.intervalId=null;this.options.onComplete.call(this)}}},play:function(){this.seekFromTo(0,1)},reverse:function(){this.seekFromTo(1,0)},inspect:function(){for(var b="#<Animator:\n",c=0;c<this.subjects.length;c++)b+=this.subjects[c].inspect();b+=">";return b}};Animator.applyDefaults=function(b,c){c=c||{};var d,f={};for(d in b)f[d]=c[d]!==undefined?c[d]:b[d];return f};
Animator.makeArray=function(b){if(b==null)return[];if(!b.length)return[b];if(b.nodeName&&b.nodeName.toLowerCase()=="form")return[b];for(var c=[],d=0;d<b.length;d++)c[d]=b[d];return c};Animator.camelize=function(b){var c=b.split("-");if(c.length==1)return c[0];b=b.indexOf("-")==0?c[0].charAt(0).toUpperCase()+c[0].substring(1):c[0];for(var d=1,f=c.length;d<f;d++){var g=c[d];b+=g.charAt(0).toUpperCase()+g.substring(1)}return b};
Animator.apply=function(b,c,d){if(c instanceof Array)return(new Animator(d)).addSubject(new CSSStyleSubject(b,c[0],c[1]));return(new Animator(d)).addSubject(new CSSStyleSubject(b,c))};Animator.makeEaseIn=function(b){return function(c){return Math.pow(c,b*2)}};Animator.makeEaseOut=function(b){return function(c){return 1-Math.pow(1-c,b*2)}};Animator.makeElastic=function(b){return function(c){c=Animator.tx.easeInOut(c);return(1-Math.cos(c*Math.PI*b))*(1-c)+c}};
Animator.makeADSR=function(b,c,d,f){if(f==null)f=0.5;return function(g){if(g<b)return g/b;if(g<c)return 1-(g-b)/(c-b)*(1-f);if(g<d)return f;return f*(1-(g-d)/(1-d))}};Animator.makeBounce=function(b){var c=Animator.makeElastic(b);return function(d){d=c(d);return d<=1?d:2-d}};
Animator.tx={easeInOut:function(b){return-Math.cos(b*Math.PI)/2+0.5},linear:function(b){return b},easeIn:Animator.makeEaseIn(1.5),easeOut:Animator.makeEaseOut(1.5),strongEaseIn:Animator.makeEaseIn(2.5),strongEaseOut:Animator.makeEaseOut(2.5),elastic:Animator.makeElastic(1),veryElastic:Animator.makeElastic(3),bouncy:Animator.makeBounce(1),veryBouncy:Animator.makeBounce(3)};
function NumericalStyleSubject(b,c,d,f,g){this.els=Animator.makeArray(b);this.property=c=="opacity"&&window.ActiveXObject?"filter":Animator.camelize(c);this.from=parseFloat(d);this.to=parseFloat(f);this.units=g!=null?g:"px"}
NumericalStyleSubject.prototype={setState:function(b){b=this.getStyle(b);for(var c=0,d=0;d<this.els.length;d++){try{this.els[d].style[this.property]=b}catch(f){if(this.property!="fontWeight")throw f;}if(c++>20)return}},getStyle:function(b){b=this.from+(this.to-this.from)*b;if(this.property=="filter")return"alpha(opacity="+Math.round(b*100)+")";if(this.property=="opacity")return b;return Math.round(b)+this.units},inspect:function(){return"\t"+this.property+"("+this.from+this.units+" to "+this.to+this.units+
")\n"}};function ColorStyleSubject(b,c,d,f){this.els=Animator.makeArray(b);this.property=Animator.camelize(c);this.to=this.expandColor(f);this.from=this.expandColor(d);this.origFrom=d;this.origTo=f}
ColorStyleSubject.prototype={expandColor:function(b){var c,d;if(c=ColorStyleSubject.parseColor(b)){b=parseInt(c.slice(1,3),16);d=parseInt(c.slice(3,5),16);c=parseInt(c.slice(5,7),16);return[b,d,c]}window.DEBUG&&alert("Invalid colour: '"+b+"'")},getValueForState:function(b,c){return Math.round(this.from[b]+(this.to[b]-this.from[b])*c)},setState:function(b){b="#"+ColorStyleSubject.toColorPart(this.getValueForState(0,b))+ColorStyleSubject.toColorPart(this.getValueForState(1,b))+ColorStyleSubject.toColorPart(this.getValueForState(2,
b));for(var c=0;c<this.els.length;c++)this.els[c].style[this.property]=b},inspect:function(){return"\t"+this.property+"("+this.origFrom+" to "+this.origTo+")\n"}};
ColorStyleSubject.parseColor=function(b){var c="#",d;if(d=ColorStyleSubject.parseColor.rgbRe.exec(b)){for(var f=1;f<=3;f++){b=Math.max(0,Math.min(255,parseInt(d[f])));c+=ColorStyleSubject.toColorPart(b)}return c}if(d=ColorStyleSubject.parseColor.hexRe.exec(b)){if(d[1].length==3){for(f=0;f<3;f++)c+=d[1].charAt(f)+d[1].charAt(f);return c}return"#"+d[1]}return false};ColorStyleSubject.toColorPart=function(b){if(b>255)b=255;var c=b.toString(16);if(b<16)return"0"+c;return c};
ColorStyleSubject.parseColor.rgbRe=/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i;ColorStyleSubject.parseColor.hexRe=/^\#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;function DiscreteStyleSubject(b,c,d,f,g){this.els=Animator.makeArray(b);this.property=Animator.camelize(c);this.from=d;this.to=f;this.threshold=g||0.5}
DiscreteStyleSubject.prototype={setState:function(b){for(var c=0;c<this.els.length;c++)this.els[c].style[this.property]=b<=this.threshold?this.from:this.to},inspect:function(){return"\t"+this.property+"("+this.from+" to "+this.to+" @ "+this.threshold+")\n"}};
function CSSStyleSubject(b,c,d){b=Animator.makeArray(b);this.subjects=[];if(b.length!=0){var f;if(d){c=this.parseStyle(c,b[0]);d=this.parseStyle(d,b[0])}else{d=this.parseStyle(c,b[0]);c={};for(f in d)c[f]=CSSStyleSubject.getStyle(b[0],f)}for(f in c)if(c[f]==d[f]){delete c[f];delete d[f]}var g,h,k,l;for(f in c){var n=String(c[f]),m=String(d[f]);if(d[f]==null)window.DEBUG&&alert("No to style provided for '"+f+'"');else{if(k=ColorStyleSubject.parseColor(n)){l=ColorStyleSubject.parseColor(m);h=ColorStyleSubject}else if(n.match(CSSStyleSubject.numericalRe)&&
m.match(CSSStyleSubject.numericalRe)){k=parseFloat(n);l=parseFloat(m);h=NumericalStyleSubject;g=CSSStyleSubject.numericalRe.exec(n);m=CSSStyleSubject.numericalRe.exec(m);g=g[1]!=null?g[1]:m[1]!=null?m[1]:m}else if(n.match(CSSStyleSubject.discreteRe)&&m.match(CSSStyleSubject.discreteRe)){k=n;l=m;h=DiscreteStyleSubject;g=0}else{window.DEBUG&&alert("Unrecognised format for value of "+f+": '"+c[f]+"'");continue}this.subjects[this.subjects.length]=new h(b,f,k,l,g)}}}}
CSSStyleSubject.prototype={parseStyle:function(b,c){var d={};if(b.indexOf(":")!=-1){c=b.split(";");for(b=0;b<c.length;b++){var f=CSSStyleSubject.ruleRe.exec(c[b]);if(f)d[f[1]]=f[2]}}else{var g,h;f=c.className;c.className=b;for(b=0;b<CSSStyleSubject.cssProperties.length;b++){g=CSSStyleSubject.cssProperties[b];h=CSSStyleSubject.getStyle(c,g);if(h!=null)d[g]=h}c.className=f}return d},setState:function(b){for(var c=0;c<this.subjects.length;c++)this.subjects[c].setState(b)},inspect:function(){for(var b=
"",c=0;c<this.subjects.length;c++)b+=this.subjects[c].inspect();return b}};CSSStyleSubject.getStyle=function(b,c){var d;if(document.defaultView&&document.defaultView.getComputedStyle)if(d=document.defaultView.getComputedStyle(b,"").getPropertyValue(c))return d;c=Animator.camelize(c);if(b.currentStyle)d=b.currentStyle[c];return d||b.style[c]};CSSStyleSubject.ruleRe=/^\s*([a-zA-Z\-]+)\s*:\s*(\S(.+\S)?)\s*$/;CSSStyleSubject.numericalRe=/^-?\d+(?:\.\d+)?(%|[a-zA-Z]{2})?$/;CSSStyleSubject.discreteRe=/^\w+$/;
CSSStyleSubject.cssProperties=["azimuth","background","background-attachment","background-color","background-image","background-position","background-repeat","border-collapse","border-color","border-spacing","border-style","border-top","border-top-color","border-right-color","border-bottom-color","border-left-color","border-top-style","border-right-style","border-bottom-style","border-left-style","border-top-width","border-right-width","border-bottom-width","border-left-width","border-width","bottom",
"clear","clip","color","content","cursor","direction","display","elevation","empty-cells","css-float","font","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","height","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-top","margin-right","margin-bottom","margin-left","max-height","max-width","min-height","min-width","orphans","outline","outline-color","outline-style","outline-width",
"overflow","padding","padding-top","padding-right","padding-bottom","padding-left","pause","position","right","size","table-layout","text-align","text-decoration","text-indent","text-shadow","text-transform","top","vertical-align","visibility","white-space","width","word-spacing","z-index","opacity","outline-offset","overflow-x","overflow-y"];
function AnimatorChain(b,c){this.animators=b;this.setOptions(c);for(b=0;b<this.animators.length;b++)this.listenTo(this.animators[b]);this.forwards=false;this.current=0}
AnimatorChain.prototype={setOptions:function(b){this.options=Animator.applyDefaults({resetOnPlay:true},b)},play:function(){this.forwards=true;this.current=-1;if(this.options.resetOnPlay)for(var b=0;b<this.animators.length;b++)this.animators[b].jumpTo(0);this.advance()},reverse:function(){this.forwards=false;this.current=this.animators.length;if(this.options.resetOnPlay)for(var b=0;b<this.animators.length;b++)this.animators[b].jumpTo(1);this.advance()},toggle:function(){this.forwards?this.seekTo(0):
this.seekTo(1)},listenTo:function(b){var c=b.options.onComplete,d=this;b.options.onComplete=function(){c&&c.call(b);d.advance()}},advance:function(){if(this.forwards){if(this.animators[this.current+1]!=null){this.current++;this.animators[this.current].play()}}else if(this.animators[this.current-1]!=null){this.current--;this.animators[this.current].reverse()}},seekTo:function(b){if(b<=0){this.forwards=false;this.animators[this.current].seekTo(0)}else{this.forwards=true;this.animators[this.current].seekTo(1)}}};
function Accordion(b){this.setOptions(b);b=this.options.initialSection;var c;if(this.options.rememberance)c=document.location.hash.substring(1);this.rememberanceTexts=[];this.ans=[];for(var d=this,f=0;f<this.options.sections.length;f++){var g=this.options.sections[f],h=new Animator(this.options.animatorOptions);h.addSubject(new NumericalStyleSubject(g,this.options.property,this.options.from+this.options.shift*f,this.options.to+this.options.shift*f,this.options.units));h.jumpTo(0);g=this.options.getActivator(g);
g.index=f;g.onclick=function(){d.show(this.index)};this.ans[this.ans.length]=h;this.rememberanceTexts[f]=g.innerHTML.replace(/\s/g,"");if(this.rememberanceTexts[f]===c)b=f}this.show(b)}
Accordion.prototype={setOptions:function(b){this.options=Object.extend({sections:null,getActivator:function(c){return document.getElementById(c.getAttribute("activator"))},shift:0,initialSection:0,rememberance:true,animatorOptions:{}},b||{})},show:function(b){for(var c=0;c<this.ans.length;c++)this.ans[c].seekTo(c>b?1:0);if(this.options.rememberance)document.location.hash=this.rememberanceTexts[b]}};if(typeof deconcept=="undefined")var deconcept={};if(typeof deconcept.util=="undefined")deconcept.util={};if(typeof deconcept.SWFObjectUtil=="undefined")deconcept.SWFObjectUtil={};
deconcept.SWFObject=function(b,c,d,f,g,h,k,l,n,m){if(document.getElementById){this.DETECT_KEY=m?m:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params={};this.variables={};this.attributes=[];b&&this.setAttribute("swf",b);c&&this.setAttribute("id",c);d&&this.setAttribute("width",d);f&&this.setAttribute("height",f);g&&this.setAttribute("version",new deconcept.PlayerVersion(g.toString().split(".")));this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();
if(!window.opera&&document.all&&this.installedVer.major>7)deconcept.SWFObject.doPrepUnload=true;h&&this.addParam("bgcolor",h);this.addParam("quality",k?k:"high");this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);this.setAttribute("xiRedirectUrl",l?l:window.location);this.setAttribute("redirectUrl","");n&&this.setAttribute("redirectUrl",n)}};
deconcept.SWFObject.prototype={useExpressInstall:function(b){this.xiSWFPath=!b?"expressinstall.swf":b;this.setAttribute("useExpressInstall",true)},setAttribute:function(b,c){this.attributes[b]=c},getAttribute:function(b){return this.attributes[b]},addParam:function(b,c){this.params[b]=c},getParams:function(){return this.params},addVariable:function(b,c){this.variables[b]=c},getVariable:function(b){return this.variables[b]},getVariables:function(){return this.variables},getVariablePairs:function(){var b=
[],c,d=this.getVariables();for(c in d)b[b.length]=c+"="+d[c];return b},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 c=this.getParams();for(var d in c)b+=[d]+'="'+c[d]+'" ';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")+'" />';c=this.getParams();for(d in c)b+='<param name="'+d+'" value="'+c[d]+'" />';d=this.getVariablePairs().join("&");if(d.length>0)b+='<param name="flashvars" value="'+d+'" />';b+="</object>"}return b},write:function(b){if(this.getAttribute("useExpressInstall"))if(this.installedVer.versionIsValid(new deconcept.PlayerVersion([6,0,65]))&&!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"))){(typeof b=="string"?document.getElementById(b):b).innerHTML=this.getSWFHTML();return true}else this.getAttribute("redirectUrl")!=""&&document.location.replace(this.getAttribute("redirectUrl"));
return false}};
deconcept.SWFObjectUtil.getPlayerVersion=function(){var b=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var c=navigator.plugins["Shockwave Flash"];if(c&&c.description)b=new deconcept.PlayerVersion(c.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}else if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){c=1;for(var d=3;c;)try{d++;c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+d);b=new deconcept.PlayerVersion([d,
0,0])}catch(f){c=null}}else{try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(g){try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");b=new deconcept.PlayerVersion([6,0,21]);c.AllowScriptAccess="always"}catch(h){if(b.major==6)return b}try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(k){}}if(c!=null)b=new deconcept.PlayerVersion(c.GetVariable("$version").split(" ")[1].split(","))}return b};
deconcept.PlayerVersion=function(b){this.major=b[0]!=null?parseInt(b[0]):0;this.minor=b[1]!=null?parseInt(b[1]):0;this.rev=b[2]!=null?parseInt(b[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(b){if(this.major<b.major)return false;if(this.major>b.major)return true;if(this.minor<b.minor)return false;if(this.minor>b.minor)return true;if(this.rev<b.rev)return false;return true};
deconcept.util={getRequestParameter:function(b){var c=document.location.search||document.location.hash;if(b==null)return c;if(c){c=c.substring(1).split("&");for(var d=0;d<c.length;d++)if(c[d].substring(0,c[d].indexOf("="))==b)return c[d].substring(c[d].indexOf("=")+1)}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){for(var b=document.getElementsByTagName("OBJECT"),c=b.length-1;c>=0;c--){b[c].style.display="none";for(var d in b[c])if(typeof b[c][d]=="function")b[c][d]=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(b){return document.all[b]};
var getQueryParamValue=deconcept.util.getRequestParameter,FlashObject=deconcept.SWFObject,SWFObject=deconcept.SWFObject;function array(b){for(i=0;i<b;i++)this[i]=0;this.length=b}function integer(b){return b%4294967296}function shr(b,c){b=integer(b);c=integer(c);if(b-2147483648>=0){b%=2147483648;b>>=c;b+=1073741824>>c-1}else b>>=c;return b}function shl1(b){b%=2147483648;if(b&true){b-=1073741824;b*=2;b+=2147483648}else b*=2;return b}function shl(b,c){b=integer(b);c=integer(c);for(var d=0;d<c;d++)b=shl1(b);return b}
function and(b,c){b=integer(b);c=integer(c);var d=b-2147483648,f=c-2147483648;return d>=0?f>=0?(d&f)+2147483648:d&c:f>=0?b&f:b&c}function or(b,c){b=integer(b);c=integer(c);var d=b-2147483648,f=c-2147483648;return d>=0?f>=0?(d|f)+2147483648:(d|c)+2147483648:f>=0?(b|f)+2147483648:b|c}function xor(b,c){b=integer(b);c=integer(c);var d=b-2147483648,f=c-2147483648;return d>=0?f>=0?d^f:(d^c)+2147483648:f>=0?(b^f)+2147483648:b^c}function not(b){b=integer(b);return 4294967295-b}
var state=new array(4),count=new array(2);count[0]=0;count[1]=0;var buffer=new array(64),transformBuffer=new array(16),digestBits=new array(16),S11=7,S12=12,S13=17,S14=22,S21=5,S22=9,S23=14,S24=20,S31=4,S32=11,S33=16,S34=23,S41=6,S42=10,S43=15,S44=21;function F(b,c,d){return or(and(b,c),and(not(b),d))}function G(b,c,d){return or(and(b,d),and(c,not(d)))}function H(b,c,d){return xor(xor(b,c),d)}function I(b,c,d){return xor(c,or(b,not(d)))}function rotateLeft(b,c){return or(shl(b,c),shr(b,32-c))}
function FF(b,c,d,f,g,h,k){b=b+F(c,d,f)+g+k;b=rotateLeft(b,h);b+=c;return b}function GG(b,c,d,f,g,h,k){b=b+G(c,d,f)+g+k;b=rotateLeft(b,h);b+=c;return b}function HH(b,c,d,f,g,h,k){b=b+H(c,d,f)+g+k;b=rotateLeft(b,h);b+=c;return b}function II(b,c,d,f,g,h,k){b=b+I(c,d,f)+g+k;b=rotateLeft(b,h);b+=c;return b}
function transform(b,c){var d=0,f=0,g=0,h=0,k=transformBuffer;d=state[0];f=state[1];g=state[2];h=state[3];for(i=0;i<16;i++){k[i]=and(b[i*4+c],255);for(j=1;j<4;j++)k[i]+=shl(and(b[i*4+j+c],255),j*8)}d=FF(d,f,g,h,k[0],S11,3614090360);h=FF(h,d,f,g,k[1],S12,3905402710);g=FF(g,h,d,f,k[2],S13,606105819);f=FF(f,g,h,d,k[3],S14,3250441966);d=FF(d,f,g,h,k[4],S11,4118548399);h=FF(h,d,f,g,k[5],S12,1200080426);g=FF(g,h,d,f,k[6],S13,2821735955);f=FF(f,g,h,d,k[7],S14,4249261313);d=FF(d,f,g,h,k[8],S11,1770035416);
h=FF(h,d,f,g,k[9],S12,2336552879);g=FF(g,h,d,f,k[10],S13,4294925233);f=FF(f,g,h,d,k[11],S14,2304563134);d=FF(d,f,g,h,k[12],S11,1804603682);h=FF(h,d,f,g,k[13],S12,4254626195);g=FF(g,h,d,f,k[14],S13,2792965006);f=FF(f,g,h,d,k[15],S14,1236535329);d=GG(d,f,g,h,k[1],S21,4129170786);h=GG(h,d,f,g,k[6],S22,3225465664);g=GG(g,h,d,f,k[11],S23,643717713);f=GG(f,g,h,d,k[0],S24,3921069994);d=GG(d,f,g,h,k[5],S21,3593408605);h=GG(h,d,f,g,k[10],S22,38016083);g=GG(g,h,d,f,k[15],S23,3634488961);f=GG(f,g,h,d,k[4],S24,
3889429448);d=GG(d,f,g,h,k[9],S21,568446438);h=GG(h,d,f,g,k[14],S22,3275163606);g=GG(g,h,d,f,k[3],S23,4107603335);f=GG(f,g,h,d,k[8],S24,1163531501);d=GG(d,f,g,h,k[13],S21,2850285829);h=GG(h,d,f,g,k[2],S22,4243563512);g=GG(g,h,d,f,k[7],S23,1735328473);f=GG(f,g,h,d,k[12],S24,2368359562);d=HH(d,f,g,h,k[5],S31,4294588738);h=HH(h,d,f,g,k[8],S32,2272392833);g=HH(g,h,d,f,k[11],S33,1839030562);f=HH(f,g,h,d,k[14],S34,4259657740);d=HH(d,f,g,h,k[1],S31,2763975236);h=HH(h,d,f,g,k[4],S32,1272893353);g=HH(g,h,
d,f,k[7],S33,4139469664);f=HH(f,g,h,d,k[10],S34,3200236656);d=HH(d,f,g,h,k[13],S31,681279174);h=HH(h,d,f,g,k[0],S32,3936430074);g=HH(g,h,d,f,k[3],S33,3572445317);f=HH(f,g,h,d,k[6],S34,76029189);d=HH(d,f,g,h,k[9],S31,3654602809);h=HH(h,d,f,g,k[12],S32,3873151461);g=HH(g,h,d,f,k[15],S33,530742520);f=HH(f,g,h,d,k[2],S34,3299628645);d=II(d,f,g,h,k[0],S41,4096336452);h=II(h,d,f,g,k[7],S42,1126891415);g=II(g,h,d,f,k[14],S43,2878612391);f=II(f,g,h,d,k[5],S44,4237533241);d=II(d,f,g,h,k[12],S41,1700485571);
h=II(h,d,f,g,k[3],S42,2399980690);g=II(g,h,d,f,k[10],S43,4293915773);f=II(f,g,h,d,k[1],S44,2240044497);d=II(d,f,g,h,k[8],S41,1873313359);h=II(h,d,f,g,k[15],S42,4264355552);g=II(g,h,d,f,k[6],S43,2734768916);f=II(f,g,h,d,k[13],S44,1309151649);d=II(d,f,g,h,k[4],S41,4149444226);h=II(h,d,f,g,k[11],S42,3174756917);g=II(g,h,d,f,k[2],S43,718787259);f=II(f,g,h,d,k[9],S44,3951481745);state[0]+=d;state[1]+=f;state[2]+=g;state[3]+=h}
function init(){count[0]=count[1]=0;state[0]=1732584193;state[1]=4023233417;state[2]=2562383102;state[3]=271733878;for(i=0;i<digestBits.length;i++)digestBits[i]=0}function update(b){var c;c=and(shr(count[0],3),63);if(!(count[0]<4294967288)){count[1]++;count[0]-=4294967296}count[0]+=8;buffer[c]=and(b,255);c>=63&&transform(buffer,0)}
function finish(){var b=new array(8),c,d=0,f=c=0;for(d=0;d<4;d++)b[d]=and(shr(count[0],d*8),255);for(d=0;d<4;d++)b[d+4]=and(shr(count[1],d*8),255);c=and(shr(count[0],3),63);f=c<56?56-c:120-c;c=new array(64);c[0]=128;for(d=0;d<f;d++)update(c[d]);for(d=0;d<8;d++)update(b[d]);for(d=0;d<4;d++)for(j=0;j<4;j++)digestBits[d*4+j]=and(shr(state[d],j*8),255)}function hexa(b){var c="";b=b;for(hexa_i=0;hexa_i<8;hexa_i++){c="0123456789abcdef".charAt(Math.abs(b)%16)+c;b=Math.floor(b/16)}return c}var ascii="01234567890123456789012345678901 !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~";
function MD5(b){var c,d,f;init();for(d=0;d<b.length;d++){c=b.charAt(d);update(ascii.lastIndexOf(c))}finish();for(i=b=c=d=f=0;i<4;i++)b+=shl(digestBits[15-i],i*8);for(i=4;i<8;i++)c+=shl(digestBits[15-i],(i-4)*8);for(i=8;i<12;i++)d+=shl(digestBits[15-i],(i-8)*8);for(i=12;i<16;i++)f+=shl(digestBits[15-i],(i-12)*8);return hexa(f)+hexa(d)+hexa(c)+hexa(b)};

