this.UserAgent=function(){this.getApp();this.getVersion();this.name=this.app+" "+this.version;
/*@cc_on
    try {
        if (typeof document.execCommand != 'undefined') {
            document.execCommand("BackgroundImageCache",false,true);
        }
        throw true;
    } catch (e) {
        return;
    }
    @*/
};this.UserAgent.prototype.id=this.navigator.userAgent;this.UserAgent.prototype.getApp=function(){
/*@cc_on this.app = 'MSIE';return;@*/
if(this.id.indexOf("Firefox")>-1){this.app="Firefox";}else{if(this.id.indexOf("Opera")>-1){this.app="Opera";}else{if(this.id.indexOf("Chromium/")>-1){this.app="Chromium";}else{if(this.id.indexOf("Chrome/")>-1){this.app="Chrome";}else{if(this.id.indexOf("AppleWebKit/")>-1){this.app="Safari";}else{if(this.id.indexOf("KHTML")>-1){this.app="Konqueror";}else{if(this.id.match(/Apple.*Mobile.*Safari/)){this.app="iSafari";}}}}}}}};this.UserAgent.prototype.getVersion=function(){switch(this.app){case"Firefox":/([0-9.]*)$/.test(this.id);break;case"Opera":/^Opera\/([0-9.]*)/.test(this.id);break;case"MSIE":/MSIE ([^;]*);/.test(this.id);break;case"Konqueror":/KHTML\/([0-9.]*)/.test(this.id);break;case"Chromium":/Chromium\/([0-9.]*)/.test(this.id);break;case"Chrome":/Chrome\/([0-9.]*)/.test(this.id);break;case"Safari":/Version\/([0-9.]*)/.test(this.id);break;}this.version=RegExp.$1;};this.userAgent=new this.UserAgent();this.location.getParameter=function(b){var a=new RegExp("^\\?.*&?"+b+"=([^&]*).*$");return this.search.match(a)?RegExp.$1:false;};var LibArray=function(){};LibArray.prototype.inArray=function(d,c){var a=0,b=c.length;for(a;a<b;a++){if(c[a]==d){return true;}}return false;};window.libArray=new LibArray();var ArrayA=function(){var b;if(arguments.length==1&&arguments[0] instanceof Array){b=arguments[0];}else{if(arguments.length==1&&arguments[0] instanceof Object){b=Array.prototype.slice.apply(arguments[0]);}else{b=Array.prototype.slice.apply(arguments);}}for(var a in this.Functions){b[a]=this.Functions[a];}return b;};ArrayA.prototype.Functions={index:0,rewind:function(a){a=a||0;this.index=0+a;return this.index;},step:function(){return this[this.index++];},valid:function(a){a=a||0;return this.index<this.length-a?true:false;},current:function(){return this[this.index];},get:function(){var b=[];this.foreach(function(a){b.push(a);});return b;},inArray:function(a){var b=false;this.foreach(function(c){if(c==a){b=true;}});return b;},foreach:function(b){if(typeof b=="function"){var a=0;while(a<this.length){value=this[a];if(typeof value!="undefined"){b(value,a,this);}a++;}}else{throw (new Error("No callback function given."));}}};var EventHandler=function(){};EventHandler.prototype.predefined=["resize","abort","blur","change","click","dblclick","error","focus","keydown","keypress","keyup","load","mousedown","mousemove","mouseout","mouseover","mouseup","mousewheel","reset","select","submit","unload"];EventHandler.prototype.userDefinedEvents=[];EventHandler.prototype.buffer=[];EventHandler.prototype.getEvent=function(a){a=a||window.event;if(!a.preventDefault){a.preventDefault=function(){this.returnValue=false;};}if(!a.stopPropagation){a.stopPropagation=function(){this.cancelBubble=true;};}return a;};EventHandler.prototype.addLoadEvent=function(a){var b=window.onload;if(typeof window.onload!="function"){window.onload=a;}else{window.onload=function(){if(b){b();}a();};}};EventHandler.prototype.addEvent=function(d,b,a){this.buffer.push(d);var c;if(!libArray.inArray(b,this.predefined)){d.userDefinedEvents=d.userDefinedEvents||[];d.userDefinedEvents["on"+b]=d.userDefinedEvents["on"+b]||[];d.userDefinedEvents["on"+b].push(a);a.registeredEventIndex=d.userDefinedEvents["on"+b].length-1;if(typeof d["on"+b]!="function"){d["on"+b]=function(h){var g=d.userDefinedEvents["on"+b].length,f=0;for(f;f<g;f++){if(typeof d.userDefinedEvents["on"+b][f]=="function"){d.userDefinedEvents["on"+b][f](h);}}};}return;}else{d.preDefinedEvents=d.preDefinedEvents||[];d.preDefinedEvents["on"+b]=d.preDefinedEvents["on"+b]||[];d.preDefinedEvents["on"+b].push(a);}if(b=="mousewheel"){a=this.buildWheelHandler(d,a);}if(d.addEventListener){if(b=="mousewheel"&&userAgent.app=="Firefox"){b="DOMMouseScroll";}d.addEventListener(b,a,false);}else{if(d.attachEvent){d["e"+b+a]=a;d[b+a]=function(){d["e"+b+a](window.event);};d.attachEvent("on"+b,d[b+a]);}}};EventHandler.prototype.buildWheelHandler=function(c,a){var b=function(g,f){var h=0;g=g||window.event;if(g.wheelDelta){h=g.wheelDelta/120;if(window.opera){h=-h;}}else{if(g.detail){h=-g.detail/3;}}if(g.preventDefault){g.preventDefault();}else{window.event.returnValue=false;}f.call(c,h);};var d=function(f){f=f||window.event;b.call(c,f,a);};return d;};EventHandler.prototype.removeEvent=function(d,c,b){if(!libArray.inArray(c,this.predefined)){var a=0;l=d.userDefinedEvents["on"+c].length;if(typeof d.userDefinedEvents["on"+c][b.registeredEventIndex]=="function"){d.userDefinedEvents["on"+c][b.registeredEventIndex]=undefined;}for(a;a<l;a++){if(typeof d.userDefinedEvents["on"+c][a]=="function"){return;}}d.userDefinedEvents["on"+c]=[];c="on"+c;d[c]=undefined;return;}if(d.removeEventListener){if(c=="mousewheel"){c="DOMMouseScroll";}d.removeEventListener(c,b,false);}else{if(d.detachEvent){d.detachEvent("on"+c,d[c+b]);d[c+b]=null;d["e"+c+b]=null;}}};EventHandler.prototype.getKeyCode=function(b){b=this.getEvent(b);var a=b.which||b.keyCode;return a;};EventHandler.prototype.flush=function(g){var f=null,d,c,a,h,b=new Array();b.push("userDefinedEvents");b.push("preDefinedEvents");for(h=0;h<b.length;h++){if(typeof g[b[h]]!="undefined"){for(f in g[b[h]]){d=f.replace(/^on/,"");a=g[b[h]][f].length;for(c=0;c<a;c++){if(typeof g[b[h]][f][c]=="function"){this.removeEvent(g,d,g[b[h]][f][c]);}}}}}};EventHandler.prototype.flushAll=function(){for(var a=0;a<this.buffer.length;a++){this.flush(this.buffer[a]);}};window.eventHandler=new EventHandler();var LibObject=function(){};LibObject.prototype.isMember=function(c,b){for(var a in b){if(a==c){return true;}}return false;};LibObject.prototype.getMember=function(c,b){for(var a in b){if(a==c){return b[a];}}return false;};LibObject.prototype.toString=function(c){var d=[];for(var a in c){var b=(Number(c[a])==c[a]&&Number(c[a]).length==c[a].length)?true:false;d.push('"'+a+'":'+(parseFloat(c[a])===c[a]?c[a]:'"'+c[a]+'"'));}return"{"+d.join(",")+"}";};window.libObject=new LibObject();if(!this.JSON){this.JSON={};}(function(){function f(n){return n<10?"0"+n:n;}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null;};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf();};}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4);})+'"':'"'+string+'"';}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key);}if(typeof rep==="function"){value=rep.call(holder,key,value);}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null";}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null";}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v;}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==="string"){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v);}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v);}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v;}return null;}if(typeof JSON.stringify!=="function"){JSON.stringify=function(value,replacer,space){var i;gap="";indent="";if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" ";}}else{if(typeof space==="string"){indent=space;}}rep=replacer;if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("JSON.stringify");}return str("",{"":value});};}if(typeof JSON.parse!=="function"){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v;}else{delete value[k];}}}}return reviver.call(holder,key,value);}cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4);});}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j;}throw new SyntaxError("JSON.parse");};}}());var Loader=function(){this.dir="core/js/opt/";this.documentHead=document.getElementsByTagName("head")[0];this.documentScripts=this.documentHead.getElementsByTagName("script");};Loader.prototype.test=function(a){var c=new RegExp(".*"+this.dir+a+".js");for(var b=0;b<this.documentScripts.length;b++){if(typeof this.documentScripts[b].src!="undefined"&&this.documentScripts[b].src.match(c)){return true;}}return false;};Loader.prototype.instantiate=function(h,f,k){var g=0,j=new Date(),a,c;a=j.getMilliseconds();if(!this.test(h)){var b=document.createElement("SCRIPT");b.src=this.dir+h+".js";b.type="text/javascript";this.documentHead.appendChild(b);}c=window.setInterval(function(){try{if(typeof window[h]=="function"&&typeof window[h].prototype.init!="undefined"){this[a]=new window[h]();if(this[a] instanceof window[h]){this[a].init.apply(this[a],f);throw true;}else{throw false;}}else{throw false;}}catch(d){if(d){window.clearInterval(c);if(typeof k=="function"){k(this[a]);}}}g++;if(g>=100){window.clearInterval(c);}}.bindTo(this),100);};eventHandler.addLoadEvent(function(){window.loader=new Loader();});CSSHandler=function(){var a=document.createElement("div");this.useOpacity=(typeof a.style.opacity!="undefined");this.useMSIEFilter=!this.useOpacity&&(typeof a.style.filter!="undefined");delete a;};CSSHandler.prototype.getCSSValue=function(a,d,b){var c;if(typeof a.tagName=="undefined"){return false;}else{if(typeof(window.getComputedStyle)=="function"){c=window.getComputedStyle(a,null)[d];}else{if(a.currentStyle){c=a.currentStyle[d];}else{return false;}}}switch(b){case"int":c=Math.round(parseFloat(c))||0;break;case"float":c=parseFloat(c)||0;break;case"string":break;default:break;}return c;};CSSHandler.prototype.getMaxZIndex=function(b){b=b||document.body;var c=1,a=0,d=0;for(a;a<b.childNodes.length;a++){d=cssHandler.getCSSValue(b.childNodes[a],"zIndex","int");c=Math.max(d,c);}return c;};CSSHandler.prototype.setOpacity=function(b,a){a=a>1?1:a<0?0:a;if(this.useMSIEFilter){a=Math.round(a*100);try{if(b.filters.item("DXImageTransform.Microsoft.Alpha").enabled){throw true;}else{throw false;}}catch(c){if(c==true){if(a>=100){b.style.filter=b.style.filter.replace(/ ?DXImageTransform.Microsoft.Alpha\(opacity:[0-9]+\);/,"");if(b.style.filter=="progid:"){b.style.filter="";}return;}b.filters.item("DXImageTransform.Microsoft.Alpha").opacity=a;}else{if(b.style.filter.indexOf("progid:")>-1){b.style.filter+=" DXImageTransform.Microsoft.Alpha(opacity:"+a+");";}else{b.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity:"+a+");";}}}}else{b.style.opacity=a;}};CSSHandler.prototype.getOpacity=function(b){var a=1;if(this.useMSIEFilter){try{if(b.filters.item("DXImageTransform.Microsoft.Alpha").enabled){throw true;}else{throw false;}}catch(c){if(c==true){a=b.filters.item("DXImageTransform.Microsoft.Alpha").opacity/100;}}}else{a=this.getCSSValue(b,"opacity","float");}return a;};CSSHandler.prototype.clip=function(c,f,b,a,d){var g;if(userAgent.app=="MSIE"){g=f+","+b+","+a+","+d;}else{g=f+" "+b+" "+a+" "+d;}c.style.clip="rect("+g+")";};CSSHandler.prototype.isClipped=function(b){var a=false;if(userAgent.app=="MSIE"&&userAgent.version<=8){if(this.getCSSValue(b,"clipTop")=="auto"&&this.getCSSValue(b,"clipRight")=="auto"&&this.getCSSValue(b,"clipBottom")=="auto"&&this.getCSSValue(b,"clipLeft")=="auto"){a=false;}else{a=true;}}else{a=this.getCSSValue(b,"clip")=="auto"?false:true;}return a;};CSSHandler.prototype.unclip=function(a){if(userAgent.app=="MSIE"&&userAgent.version<=8){a.style.clip="rect(auto)";}else{a.style.clip="auto";}};CSSHandler.prototype.getSheet=function(a){for(var b=0;b<document.styleSheets.length;b++){if(document.styleSheets[b].href&&document.styleSheets[b].href.indexOf(a)>-1){return document.styleSheets[b];}}return false;};CSSHandler.prototype.insertSheet=function(){var a=document.createElement("style");a.setAttribute("type","text/css");if(typeof document.getElementsByTagName("head")[0]){document.getElementsByTagName("head")[0].appendChild(a);}return document.styleSheets[document.styleSheets.length-1];};CSSHandler.prototype.insertRule=function(c,a,b){if(c.cssRules){c.insertRule(a+" { "+b+" }",0);}else{if(c.rules){c.addRule(a,b);}}};CSSHandler.prototype.modifyRule=function(c,b,a){c.style[b]=a;};CSSHandler.prototype.getRule=function(a,f){var b,c=0,d=false;if(!f){if(document.styleSheets){b=document.styleSheets.length;for(c;c<b;c++){d=this._searchSelectorInSheet(a,document.styleSheets[c]);if(d){break;}}}}else{d=this._searchSelectorInSheet(a,f);}return d;};CSSHandler.prototype._searchSelectorInSheet=function(a,b){var c=false,d=0;do{if(b.cssRules){c=b.cssRules[d];}else{c=b.rules[d];}if(typeof c!="undefined"&&typeof c.selectorText!="undefined"&&c.selectorText==a){return c;}d++;}while(c);return false;};window.cssHandler=new CSSHandler();this.LibScreen=function(){};this.LibScreen.prototype.screen=this.document.getElementsByTagName("HEAD")[0].parentNode;this.LibScreen.prototype.dim=function(b,h,g){var d=b||document.body,a,f;b=b||document.getElementsByTagName("head")[0].parentNode;h=h||cssHandler.getMaxZIndex(b);if(this.ov){eventHandler.addEvent(this.ov,"fadeready",f=function(){if(g){g();}eventHandler.flush(this.ov);this.ov=undefined;}.bindTo(this));this.ov.remove("fade");}else{a={setDim:function(){this.style.width="1px";this.style.height="1px";this.style.width=b.scrollWidth+"px";this.style.height=b.scrollHeight+"px";},style:{position:"absolute",top:0,left:0,background:"black",zIndex:h||65536},oncreate:function(){this.setDim();eventHandler.addEvent(window,"resize",this.resizeListener=function(){this.setDim();}.bindTo(this));},onremove:function(){eventHandler.removeEvent(window,"resize",this.resizeListener);}};this.ov=renderer.createElement("div",a);cssHandler.setOpacity(this.ov,0);eventHandler.addEvent(this.ov,"fadeready",f=function(){if(g){g();}eventHandler.flush(this.ov);}.bindTo(this));this.ov.renderIn(d,"fade",{"stopOpacity":{"in":0.7}});}};this.LibScreen.prototype.removeCallback=function(a){eventHandler.removeEvent(this.ov,"fadeready",a);};this.LibScreen.prototype.getScollSize=function(){return{"x":this.screen.scrollWidth,"y":this.screen.scrollHeight};};this.LibScreen.prototype.getOffsetSize=function(){return{"x":this.screen.offsetWidth,"y":this.screen.offsetHeight};};this.LibScreen.prototype.getClientSize=function(){return{"x":this.screen.clientWidth,"y":this.screen.clientHeight};};this.LibScreen.prototype.getScrollOffset=function(){var b=0,a=0;if(typeof window.pageYOffset=="number"){a=window.pageYOffset;b=window.pageXOffset;}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){a=document.body.scrollTop;b=document.body.scrollLeft;}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){a=document.documentElement.scrollTop;b=document.documentElement.scrollLeft;}}}return{"x":b,"y":a};};this.libScreen=new this.LibScreen();Renderer=function(){};Renderer.prototype.fade=function(d,c,h,g,f,a){if(typeof d.rendererFadeInterval!="undefined"){window.clearInterval(d.rendererFadeInterval);}d.fading=true;var b=cssHandler.getOpacity(d);c=c||(b===0?"in":"out");h=h||this.defaultEffectSettings.fade.fps;g=g||this.defaultEffectSettings.fade.stepping;f=!isNaN(f)?f:this.defaultEffectSettings.fade.stopOpacity[c];d.rendererFadeInterval=window.setInterval(function(){b=c=="out"?b-g:b+g;b=b<1?b<0.000001?0:b:1;if((c=="in"&&b>=f)||(c=="out"&&b<=f)){cssHandler.setOpacity(d,f);window.clearInterval(d.rendererFadeInterval);if(typeof d.onfadeready=="function"){d.onfadeready();}if(typeof d.oneffectready=="function"){d.oneffectready();}d.fading=undefined;if(a){d.remove.finalize(d);}}else{if(b<0.000001){b=0;}cssHandler.setOpacity(d,b);}},Math.round(1000/h));};Renderer.prototype.move=function(d,m,o,j,f,w){if(typeof d.rendererMoveInterval!="undefined"){window.clearInterval(d.rendererMoveInterval);}d.moving=true;f=f||this.defaultEffectSettings.move.fps;j=j||this.defaultEffectSettings.move.stepping;o=o||this.defaultEffectSettings.move.easing;var p,t;startPos={"x":parseInt(cssHandler.getCSSValue(d,"left"),10),"y":parseInt(cssHandler.getCSSValue(d,"top"),10)};t={"x":parseInt(cssHandler.getCSSValue(d,"left"),10),"y":parseInt(cssHandler.getCSSValue(d,"top"),10)};var u=Math.max(startPos.x,m.x)-Math.min(startPos.x,m.x);var r=Math.max(startPos.y,m.y)-Math.min(startPos.y,m.y);var s=startPos.x>m.x?"left":"right";var q=startPos.y>m.y?"up":"down";var g=u>=r?"x":"y";var k=u>=r?r/u:u/r;var h=startPos;var c=function(){var v,z;if(u>r){v=s=="right"?t.x+=j:v=t.x-=j;z=q=="down"?t.y+=j*k:t.y-=j*k;}else{z=q=="down"?t.y+=j:z=t.y-=j;v=s=="right"?t.x+=j*k:t.x-=j*k;}return{"x":Math.round(v),"y":Math.round(z)};};var i=0;var a=j;while(a/2>0){i+=a;a=Math.floor(a/2);}a=j;var b=0;d.rendererMoveInterval=window.setInterval(function(){var x=Math.max(Math.abs(h[g]),Math.abs(m[g]))-Math.min(Math.abs(h[g]),Math.abs(m[g]));if(o===true&&x<i){var v=Math.ceil(j/2);if(j==a){j=j-(i-x)>v?j-(i-x):v;}else{v=Math.ceil(x/2);j=v>=1?v:1;}}if(x<=(o===true?1:j)){window.clearInterval(d.rendererMoveInterval);d.style.left=m.x+"px";d.style.top=m.y+"px";if(typeof d.onmoveready=="function"){d.onmoveready();}if(typeof d.oneffectready=="function"){d.oneffectready();}d.moving=undefined;if(w){d.remove.finalize(d);}}else{h=c();d.style.left=h.x+"px";d.style.top=h.y+"px";h.stepIndex=b++;h.stepWidth=j;h.delta=x;if(typeof d.onmove=="function"){d.onmove(h);}}},Math.round(1000/f));};Renderer.prototype.grow=function(g,j,d){var b=g.offsetWidth+g.getCSSValue("paddingLeft","int")+g.getCSSValue("paddingRight","int");var m=g.offsetHeight+g.getCSSValue("paddingTop","int")+g.getCSSValue("paddingBottom","int"),c,a;var f=Math.floor(m/2);var i=Math.floor(b/2);var h=Math.ceil(m/2);var k=Math.ceil(b/2);g.style.clip="rect("+f+"px, "+i+"px, "+h+"px, "+k+"px)";c=(b>m?b:m)/j;a=Math.ceil((c*(b>m?m:b)/(b>m?b:m))/2);c=Math.ceil(c/2);g.rendererGrowInterval=window.setInterval(function(){if(f-(b>m?a:c)>0){f-=(b>m?a:c);}else{f=0;}if(i+(b>m?c:a)<b){i+=(b>m?c:a);}else{i=b;}if(h+(b>m?a:c)<m){h+=(b>m?a:c);}else{h=m;}if(k-(b>m?c:a)>0){k-=(b>m?c:a);}else{k=0;}g.style.clip="rect("+f+"px "+i+"px "+h+"px "+k+"px)";if(k===0){g.unclip();window.clearInterval(g.rendererGrowInterval);if(typeof g.ongrowready=="function"){g.ongrowready();}if(typeof g.oneffectready=="function"){g.oneffectready();}}}.bindTo(this),Math.round(1000/d));};Renderer.prototype.pushIn=function(element,fps,steps){var wrapper=this.createElement("div");with(wrapper.style){position="relative";lineHeight=0;height=0;overflow="hidden";}with(element.style){position="absolute";left=0;bottom=0;}element.parentNode.replaceChild(wrapper,element);element.renderIn(wrapper);stepping=Math.ceil(element.offsetHeight/steps);var I=window.setInterval(function(){var newHeight=wrapper.offsetHeight+stepping;if(newHeight<element.offsetHeight){wrapper.style.height=newHeight+"px";}else{wrapper.style.height=element.offsetHeight+"px";element.style.position="relative";wrapper.parentNode.replaceChild(element,wrapper);window.clearInterval(I);if(typeof element.oneffectready=="function"){element.oneffectready();}}if(typeof(element.onpushingin=="function")){element.onpushingin();}}.bindTo(this),1000/fps);};Renderer.prototype.defaultEffectSettings={fade:{startOpacity:{"in":0,"out":1},stopOpacity:{"in":1,"out":0},fps:25,stepping:0.1},move:{fps:25,stepping:25,easing:false,stopPos:{"x":0,"y":0}},grow:{fps:25,steps:5},slideIn:{fps:25,stepping:25,easing:true,stopPos:{"x":0,"y":0}},slideOut:{fps:25,stepping:25,easing:true},pushIn:{fps:25,steps:5}};Renderer.prototype.getEffectSettings=function(c,a){c=libObject.isMember(c,this.defaultEffectSettings)?c:null;if(c!==null){a=a||this.defaultEffectSettings[c];}for(var b in this.defaultEffectSettings[c]){if(typeof a[b]=="undefined"){a[b]=this.defaultEffectSettings[c][b];}}return a;};Renderer.prototype.elementMethods={renderIn:function(b,d,a){if(d){a=this.renderer.getEffectSettings(d,a);}switch(d){case"pushIn":b.appendChild(this);this.renderer.pushIn(this,a.fps,a.steps);break;case"fade":cssHandler.setOpacity(this,a.startOpacity["in"]);b.appendChild(this);this.renderer.fade(this,"in",a.fps,a.stepping,a.stopOpacity["in"]);break;case"slideIn":this.style.position="absolute";b.appendChild(this);var c={"style":{"left":-this.offsetWidth+"px","top":-this.offsetHeight+"px"}};var g={"x":0,"y":0};if(typeof a.startPos!="undefined"){switch(typeof a.startPos){case"string":if(a.startPos=="rand"){if(typeof this.lastSlideInStartPos=="undefined"){this.lastSlideInStartPos=a.startPos;}var f=["top","topRight","right","bottomRight","bottom","bottomLeft","left","topLeft"];do{a.startPos=f[Math.round(Math.random()*(f.length-1))];}while(this.lastSlideInStartPos==a.startPos);this.lastSlideInStartPos=a.startPos;}switch(a.startPos){case"top":c.style.left=Math.floor((b.clientWidth)/2)-Math.floor(this.offsetWidth/2)+"px";c.style.top=-this.offsetHeight+"px";g.x=Math.floor((b.clientWidth)/2)-Math.floor(this.offsetWidth/2);g.y=0;break;case"topRight":c.style.left=b.clientWidth+"px";c.style.top=-this.offsetHeight+"px";g.x=b.clientWidth-this.offsetWidth;g.y="0";break;case"right":c.style.left=b.clientWidth+"px";c.style.top=Math.floor(b.clientHeight/2-this.offsetHeight/2)+"px";g.x=b.clientWidth-this.offsetWidth;g.y=Math.floor(b.clientHeight/2-this.offsetHeight/2);break;case"bottomRight":c.style.left=b.clientWidth+"px";c.style.top=b.clientHeight+"px";g.x=b.clientWidth-this.offsetWidth;g.y=b.clientHeight-this.offsetHeight;break;case"bottom":c.style.left=Math.floor(b.clientWidth/2-this.offsetWidth/2)+"px";c.style.top=b.clientHeight+"px";g.x=parseInt(Math.floor(b.clientWidth/2-this.offsetWidth/2),10);g.y=b.clientHeight-this.offsetHeight;break;case"bottomLeft":c.style.left=-this.offsetWidth+"px";c.style.top=b.clientHeight+"px";g.x="0";g.y=b.clientHeight-this.offsetHeight;break;case"left":c.style.left=-this.offsetWidth+"px";c.style.top=Math.floor(b.clientHeight/2-this.offsetHeight/2)+"px";g.x="0";g.y=Math.floor(b.clientHeight/2-this.offsetHeight/2);break;case"topLeft":break;default:break;}break;default:break;}}this.setProperties(c);this.renderer.move(this,g,a.easing,a.stepping,a.fps);break;case"grow":b.appendChild(this);this.renderer.grow(this,a.steps,a.fps);break;default:b.appendChild(this);}if(typeof this.onrender=="function"){this.onrender();}},remove:function(b,a){if(b){a=this.renderer.getEffectSettings(b,a);}this.remove.finalize=function(d){if(d.parentNode){d.parentNode.removeChild(d);}if(typeof d.onremove=="function"){d.onremove();}}.bindTo(this);switch(b){case"fade":this.renderer.fade(this,"out",a.fps,a.stepping,a.stopOpacity.out,true);break;case"slideOut":this.style.position="absolute";var c={"x":-this.offsetWidth,"y":-this.offsetHeight};if(typeof a.stopPos!="undefined"){switch(typeof a.stopPos){case"string":switch(a.stopPos){case"top":c.x=this.offsetLeft;c.y=-this.offsetHeight;break;case"topRight":c.x=this.parentNode.clientWidth;c.y=-this.offsetHeight;break;case"right":c.x=this.parentNode.clientWidth;c.y=Math.floor(this.parentNode.clientHeight/2-this.offsetHeight/2);break;case"bottomRight":c.x=this.parentNode.clientWidth;c.y=this.parentNode.clientHeight;break;case"bottom":c.x=parseInt(Math.floor(this.parentNode.clientWidth/2-this.offsetWidth/2),10);c.y=this.parentNode.clientHeight;break;case"bottomLeft":c.x=-this.offsetWidth;c.y=this.parentNode.clientHeight;break;case"left":c.x=-this.offsetWidth;c.y=Math.floor(this.parentNode.clientHeight/2-this.offsetHeight/2);break;case"topLeft":break;default:break;}break;default:break;}}this.renderer.move(this,c,a.easing,a.stepping,a.fps,true);break;default:if(this.parentNode){this.remove.finalize(this);}}},write:function(a){this.appendChild(document.createTextNode(a));return this;},createChild:function(a,b){return this.appendChild(this.renderer.createElement(a,b));},move:function(a){a=this.renderer.getEffectSettings("move",a);this.renderer.move(this,a.stopPos,a.easing,a.stepping,a.fps);},fade:function(a){a=this.renderer.getEffectSettings("fade",a);this.renderer.fade(this,a.dir,a.fps,a.stepping,a.stopOpacity);},setOpacity:function(a){cssHandler.setOpacity(this,a);},getOpacity:function(){return cssHandler.getOpacity(this);},getCSSValue:function(b,a){return cssHandler.getCSSValue(this,b,a);},clip:function(d,b,a,c){cssHandler.clip(this,d,b,a,c);},isClipped:function(){return cssHandler.isClipped(this);},unclip:function(){cssHandler.unclip(this);},getScreenOffset:function(){return this.renderer.getScreenOffset(this);},getCustomOffset:function(a){return this.renderer.getCustomOffset(this,a);},getOffsetSize:function(){return{Width:this.offsetWidth,Height:this.offsetHeight};},getClientSize:function(){return{Width:this.clientWidth,Height:this.clientHeight};},setProperties:function(b,a){a=a||this;this.renderer.setProperties(b,a);},empty:function(){this.renderer.empty(this);},appendImage:function(a){this.renderer.appendImage(a,this);},addClassName:function(a){this.renderer.addClassName(a,this);},removeClassName:function(a){this.renderer.removeClassName(a,this);},hasClassName:function(a){return this.renderer.hasClassName(a,this);},getElement:function(a,c){var b=this.renderer.getElement(a,this);if(b&&typeof c=="function"){c(b);}return b;},getElements:function(b,c){var a=this.renderer.getElements(b,this);if(typeof c=="function"){a.foreach(function(f,d,g){c(f,d,g);});}return a;},mouseover:function(){return this.renderer.mouseover(this);},getMouseOffset:function(){return this.renderer.getMouseOffset(this);}};Renderer.prototype.addClassName=function(a,b){b.className+=b.className!=""?" "+a:a;};Renderer.prototype.removeClassName=function(a,b){var c=new RegExp("(^"+a+" ?| "+a+")");b.className=b.className.replace(c,"");c=undefined;};Renderer.prototype.hasClassName=function(a,b){var c=new RegExp("(?:^| )("+a+") ?");return b.className.match(c,"")?RegExp.$1:false;};Renderer.prototype.getScreenOffset=function(c){var b=libScreen.getScrollOffset();var a=c.offsetLeft;var f=c.offsetTop;var d=c.offsetParent;while(d!==null){a+=d.offsetLeft;f+=d.offsetTop;a+=cssHandler.getCSSValue(d,"borderLeftWidth","int");f+=cssHandler.getCSSValue(d,"borderTopWidth","int");d=d.offsetParent;}return{x:a-b.x,y:f-b.y};};Renderer.prototype.getCustomOffset=function(c,b){var a=c.offsetLeft;var f=c.offsetTop;var d=c.offsetParent;while(d!==null&&d!=b){a+=d.offsetLeft;a+=cssHandler.getCSSValue(d,"borderLeftWidth","int");f+=d.offsetTop;f+=cssHandler.getCSSValue(d,"borderTopWidth","int");d=d.offsetParent;}return{x:a,y:f};};Renderer.prototype.appendImage=function(a,b){var c=this.createElement("IMG");if(typeof a=="object"){this.setProperties(a,c);}c.renderIn(b);};Renderer.prototype.empty=function(a){while(a.hasChildNodes()){a.removeChild(a.firstChild);}};Renderer.prototype.setProperties=function(b,a){for(var c in b){if(typeof b[c]=="object"&&typeof a[c]!="undefined"){this.setProperties(b[c],a[c]);}else{a[c]=b[c];}}};Renderer.prototype.createElement=function(a,b){var d=a.toLowerCase()=="img"?new Image():document.createElement(a);d.renderer=this;for(var c in this.elementMethods){d[c]=this.elementMethods[c];}if(b){d.setProperties(b);}if(typeof d.oncreate=="function"){d.oncreate();}return d;};Renderer.prototype.getElement=function(d,f){f=f||document;var a,g,c=0,b;d.match(/^([^.#]*)?([.#])?(.*)$/);if(RegExp.$2=="."){a=window.getElementsByClassName(RegExp.$3,RegExp.$1,f);}else{if(RegExp.$2=="#"){a=document.getElementById(RegExp.$3);}else{if(typeof RegExp.$2=="undefined"||RegExp.$2==""){if(typeof f.getElementsByTagName!="undefined"){b=f.getElementsByTagName(RegExp.$1);g=b.length;a=[];for(c;c<g;c++){a.push(b[c]);}}else{throw"parent.getElementsByTagName is not a function, renderer.getElement";}}}}return a instanceof Array?a.length==1?a[0]:false:a;};Renderer.prototype.getElements=function(d,f){f=f||document;var a,g,c=0,b;d.match(/^([^.]*)?([.])?(.*)$/);if(RegExp.$2=="."){return new ArrayA(window.getElementsByClassName(RegExp.$3,RegExp.$1,f));}else{if(typeof RegExp.$2=="undefined"||RegExp.$2==""){if(typeof f.getElementsByTagName!="undefined"){b=f.getElementsByTagName(RegExp.$1);g=b.length;a=[];for(c;c<g;c++){a.push(b[c]);}return new ArrayA(a);}else{throw"parent.getElementsByTagName is not a function, renderer.getElement";}}}return false;};Renderer.prototype.mouseover=function(b){if(!b.renderer){this.assimilate(b);}var c=this.getScreenOffset(b);var a=b.getOffsetSize();if(this.currentMousePos.x>=c.x&&this.currentMousePos.x<=c.x+a.Width&&this.currentMousePos.y>=c.y&&this.currentMousePos.y<=c.y+a.Height){return true;}else{return false;}};Renderer.prototype.getMouseOffset=function(b){var c=this.getCustomOffset(b),a=libScreen.getScrollOffset();return{"x":this.currentMousePos.x+a.x-c.x,"y":this.currentMousePos.y+a.y-c.y};};Renderer.prototype.getWindowSize=function(){var a=document.getElementsByTagName("HEAD")[0].parentNode;return{"width":a.clientWidth,"height":a.clientHeight};};Renderer.prototype.assimilate=function(d,b){if(d instanceof Array){var a=d.length;for(n=0;n<a;n++){d[n].renderer=this;for(var c in this.elementMethods){d[n][c]=this.elementMethods[c];}if(b){d[n].setProperties(b);}}}else{d.renderer=this;for(var c in this.elementMethods){d[c]=this.elementMethods[c];}if(b){d.setProperties(b);}}return d;};Renderer.prototype.currentMousePos={"x":0,"y":0};window.renderer=new Renderer();eventHandler.addEvent(document,"mousemove",function(a){a=eventHandler.getEvent(a);Renderer.prototype.currentMousePos={"x":a.clientX,"y":a.clientY};});Draggable=function(a){this.border=a.border||null;this.borderPadding=a.borderPadding||0;this.buffer={};this.draggable=a.element||renderer.createElement("DIV");this.draggable.style.position="absolute";this.border.style.position="relative";eventHandler.addEvent(this.draggable,"mousedown",function(b){this.initDrag(b);}.bindAsEventListener(this));return this.draggable;};Draggable.prototype.getCurrentRelativePos=function(){return{x:this.draggable.element.offsetLeft,y:this.draggable.element.offsetTop};};Draggable.prototype.getCurrentScreenPos=function(){var a=this.draggable.element.getScreenOffset();return{x:a.x,y:a.y};};Draggable.prototype.initDrag=function(a){a=this.getEvent(a);this.buffer.screenOffset=this.draggable.getScreenOffset();if(typeof this.draggable.ondragbegin=="function"){a.startAt={"relative":{"x":this.draggable.offsetLeft,"y":this.draggable.offsetTop},"absolute":this.buffer.screenOffset};this.draggable.ondragbegin(a);}this.buffer.mouseOffset=this.getMouseOffset(a);eventHandler.addEvent(document,"mousemove",this.triggerCalcNewPos=function(b){this.calcNewPosition(b);}.bindAsEventListener(this));eventHandler.addEvent(document,"mouseup",this.triggerDrop=function(b){this.drop(b);}.bindAsEventListener(this));};Draggable.prototype.calcNewPosition=function(d){d=this.getEvent(d);var b=d.clientX-this.buffer.screenOffset.x-this.buffer.mouseOffset.x;var a=d.clientY-this.buffer.screenOffset.y-this.buffer.mouseOffset.y;var c={"x":this.draggable.offsetLeft+b,"y":this.draggable.offsetTop+a};if(this.border){if(c.x<this.borderPadding){c.x=this.borderPadding;}else{if(c.x+this.draggable.offsetWidth+this.borderPadding>this.border.clientWidth){c.x=this.border.clientWidth-this.draggable.offsetWidth-this.borderPadding;}}if(c.y<this.borderPadding){c.y=this.borderPadding;}else{if(c.y+this.draggable.offsetHeight+this.borderPadding>this.border.clientHeight){c.y=this.border.clientHeight-this.draggable.offsetHeight-this.borderPadding;}}}this.draggable.style.left=c.x+"px";this.draggable.style.top=c.y+"px";this.buffer.screenOffset=this.draggable.getScreenOffset();if(typeof this.draggable.ondrag=="function"){d.draggedTo={"relative":{"x":c.x,"y":c.y},"absolute":this.buffer.screenOffset};this.draggable.ondrag(d);}};Draggable.prototype.drop=function(a){a=this.getEvent(a);eventHandler.removeEvent(document,"mousemove",this.triggerCalcNewPos);eventHandler.removeEvent(document,"mouseup",this.triggerDrop);this.triggerDropEvent(a);};Draggable.prototype.moveTo=function(a,b){if(typeof b=="undefined"){b=true;}a=a||{"left":this.borderPadding,"top":this.borderPadding};a.left=parseInt(a.left)+"px";a.top=parseInt(a.top)+"px";this.setProperties(this.draggable,{"style":{"left":a.left,"top":a.top}});if(b==true){e={};this.triggerDropEvent(e);}};Draggable.prototype.triggerDropEvent=function(a){if(typeof this.draggable.ondrop=="function"){a.droppedAt={"relative":{"x":this.draggable.offsetLeft,"y":this.draggable.offsetTop},"absolute":this.buffer.screenOffset};this.draggable.ondrop(a);}};Draggable.prototype.getMouseOffset=function(b){var a=b.clientX-this.buffer.screenOffset.x;var c=b.clientY-this.buffer.screenOffset.y;return{x:a,y:c};};Draggable.prototype.getEvent=function(a){a=a||window.event;if(a.preventDefault){a.preventDefault();}else{a.returnValue=false;}return a;};var HttpRequest=function(){var a=null;this.method="GET";this.tries=0;this.timeout=10000;this.asynchron=true;this.send=null;this.loading=false;this.init=function(b){if(window.XMLHttpRequest){a=new XMLHttpRequest();if(a.overrideMimeType){}}else{if(window.ActiveXObject){a=new ActiveXObject("Microsoft.XMLHTTP");}}if(b){a.onreadystatechange=function(){if(typeof this.onloadstart=="function"&&a.readyState==1){this.onloadstart();}if(a.readyState==4){if(this.timeout){window.clearTimeout(this.timeout);}try{if(a.status){throw true;}else{throw false;}}catch(c){if(c===true){if(a.status==200){b(a.responseText,true);}else{b(a.responseText);}}else{b('{"status":'+a.status+"}");}this.loading=false;}}}.bindTo(this);}};this.toggleSync=function(){this.asynchron=!this.asynchron;};this.load=function(b){this.loading=true;this.url=b;a.open(this.method,b,this.asynchron);if(this.method=="POST"){a.setRequestHeader("Content-type","application/x-www-form-urlencoded");a.setRequestHeader("Content-length",this.send.length);a.setRequestHeader("Connection","close");}a.send(this.send);this.timeout=window.setTimeout(function(){if(this.tries<3){this.abort();this.load(this.url);this.tries++;}}.bindTo(this),60000);if(this.asynchron===false){this.loading=false;return a.responseText;}return true;};this.abort=function(){a.abort();this.loading=false;};};eventHandler.addLoadEvent(function(){window.httpRequest=new HttpRequest();});this.WatchDog=function(a){this.satisfied={};for(var b in a){this.satisfied[b]=false;}this.init();};this.WatchDog.prototype.action=function(){return false;};this.WatchDog.prototype.init=function(){this.stroke=function(a,b){this.action=typeof b=="function"?b:this.action;this.satisfied[a]=true;for(var c in this.satisfied){if(this.satisfied[c]===false){return false;}}this.action();return true;};};function $A(a){return Array.prototype.slice.apply(a);}Function.prototype.bindAsTimer=function(){var d=this;var b=Array.prototype.slice.apply(arguments);var a=b.shift();var c=function(){return d.apply(a,b);};return c;};Function.prototype.bindAsEventListener=function(a,b){var d=this;this.activator=b;var c=function(g){var f=g||window.event;return d.call(a,f);};return c;};Function.prototype.bindTo=function(){var f=this,c,b=Array.prototype.slice.apply(arguments),a=b.shift();var d=function(){if(arguments){var g=Array.prototype.slice.apply(arguments);c=g.concat(b);}else{c=b;}return f.apply(a,c);};return d;};var getElementsByClassName=function(b,a,c){if(document.getElementsByClassName){getElementsByClassName=function(k,p,j){j=j||document;var d=j.getElementsByClassName(k),o=(p)?new RegExp("\\b"+p+"\\b","i"):null,f=[],h;for(var g=0,m=d.length;g<m;g+=1){h=d[g];if(!o||o.test(h.nodeName)){f.push(h);}}return f;};}else{if(document.evaluate){getElementsByClassName=function(q,t,p){t=t||"*";p=p||document;var g=q.split(" "),r="",m="http://www.w3.org/1999/xhtml",s=(document.documentElement.namespaceURI===m)?m:null,h=[],d,f;for(var i=0,k=g.length;i<k;i+=1){r+="[contains(concat(' ', @class, ' '), ' "+g[i]+" ')]";}try{d=document.evaluate(".//"+t+r,p,s,0,null);}catch(o){d=document.evaluate(".//"+t+r,p,null,0,null);}while((f=d.iterateNext())){h.push(f);}return h;};}else{getElementsByClassName=function(t,w,s){w=w||"*";s=s||document;var i=t.split(" "),v=[],d=(w==="*"&&s.all)?s.all:s.getElementsByTagName(w),r,o=[],q;for(var j=0,f=i.length;j<f;j+=1){v.push(new RegExp("(^|\\s)"+i[j]+"(\\s|$)"));}for(var h=0,u=d.length;h<u;h+=1){r=d[h];q=false;for(var g=0,p=v.length;g<p;g+=1){q=v[g].test(r.className);if(!q){break;}}if(q){o.push(r);}}return o;};}}return getElementsByClassName(b,a,c);};var SortableTable=function(table){table.sortable=this;this.table=table;this.trs=[];this.indicatorColor=renderer.hasClassName("indicatorColor_[^ ]*",this.table);this.indicatorBorderColor=renderer.hasClassName("indicatorBorderColor_[^ ]*",this.table);this.indicatorClassName="sortDirIndicator";this.oddRow=renderer.hasClassName("oddRow_[^ ]*",this.table);this.evenRow=renderer.hasClassName("oddRow_[^ ]*",this.table);try{this.th=this.table.getElementsByTagName("th");if(!this.th){throw false;}else{throw true;}}catch(e){if(e!==true){if(typeof console!="undefined"&&typeof console.trace=="function"){console.trace();}throw"TH for any col is mandatory - SortableTable";}}try{this.tb=this.table.getElementsByTagName("tbody")[0];if(!this.tb){throw false;}else{throw true;}}catch(e){if(e!==true){if(typeof console!="undefined"&&typeof console.trace=="function"){console.trace();}throw"TBODY is mandatory - SortableTable";}}var l,i=0,n=0,s=0,sil,thl=this.th.length,trTmp=this.tb.getElementsByTagName("tr"),indicator=renderer.hasClassName("indicate",table);this.indicatorColor=this.indicatorColor?this.indicatorColor.replace(/indicatorColor_/,""):"red";this.indicatorBorderColor=this.indicatorBorderColor?this.indicatorBorderColor.replace(/indicatorBorderColor_/,""):"white";this.oddRow=this.oddRow?this.oddRow.replace(/oddRow_/,""):"odd";this.evenRow=this.evenRow?this.evenRow.replace(/evenRow_/,""):"even";for(i;i<trTmp.length;i++){this.trs.push(trTmp[i]);}trTmp=undefined;l=this.trs.length;i=0;for(i;i<thl;i++){if(renderer.hasClassName("dontSort",this.th[i])){continue;}this.th[i].sorted=false;if(indicator){this.th[i].relWrapper=this.th[i].appendChild(renderer.createElement("div"));while(this.th[i].firstChild!=this.th[i].relWrapper){this.th[i].relWrapper.appendChild(this.th[i].firstChild);}with(this.th[i].relWrapper.style){position="relative";padding="0";margin="0";paddingRight="1.5em";width="auto";height="auto";border="none";}this.th[i].title="Aufwärts sortieren";}this.th[i].style.cursor="default";eventHandler.addEvent(this.th[i],"click",function(i){return function(){var sortDirIndicator,e;this.th[i].sorted=this.th[i].sorted=="ASC"?"DESC":"ASC";if(renderer.hasClassName("numeric",this.th[i])){this.sortNumeric(i);}else{if(renderer.hasClassName("varchar",this.th[i])){this.sortLex(i);}else{if(renderer.hasClassName("date",this.th[i])){this.sortDate(i);}else{this.sortLex(i);}}}if(this.th[i].sorted=="DESC"){this.trs.reverse();}for(var x=0;x<l;x++){renderer.removeClassName(this.oddRow,this.trs[x]);renderer.removeClassName(this.evenRow,this.trs[x]);renderer.addClassName((x%2==0?this.evenRow:this.oddRow),this.trs[x]);this.tb.appendChild(this.trs[x]);}if(indicator){this.th[i].title=this.th[i].sorted=="ASC"?"Abwärts sortieren":"Aufwärts sortieren";for(n=0;n<thl;n++){sortDirIndicators=renderer.getElements("."+this.indicatorClassName,this.th[n]);if(sortDirIndicators){sil=sortDirIndicators.length;for(s=0;s<sil;s++){sortDirIndicators[s].remove();}}}sortDirIndicator=renderer.createElement("div",{"className":this.indicatorClassName});with(sortDirIndicator.style){position="absolute";right=".2em";top=".15em";fontSize=".9em";lineHeight="0";width="0";height="0";padding="0";margin="0";borderWidth="1em .5em";borderStyle="none solid solid";borderColor=this.indicatorBorderColor+" transparent";if(userAgent.app=="MSIE"&&userAgent.version<7){borderColor=cssHandler.getCSSValue(this.th[i],"backgroundColor")!=this.indicatorColor?this.indicatorColor:this.indicatorBorderColor;borderRightColor=cssHandler.getCSSValue(this.th[i],"backgroundColor");borderRightColor=borderRightColor=="transparent"?"white":borderRightColor;borderLeftColor=cssHandler.getCSSValue(this.th[i],"backgroundColor");borderLeftColor=borderLeftColor=="transparent"?"white":borderLeftColor;if(!borderColor){borderColor=this.indicatorColor+" "+this.indicatorBorderColor;}}if(this.th[i].sorted=="DESC"){borderStyle="solid solid none";top=".25em";}}if(userAgent.app!="MSIE"||userAgent.version>6){sortDirIndicator.appendChild(sortDirIndicator.cloneNode(true));with(sortDirIndicator.firstChild.style){fontSize="1em";left="-.3em";top=".3em";borderWidth=".6em .3em";borderStyle="none solid solid";borderColor=this.indicatorColor+" transparent";if(this.th[i].sorted=="DESC"){borderStyle="solid solid none";top="-.84em";}}sortDirIndicator.firstChild.className="";}sortDirIndicator.renderIn(this.th[i].firstChild);}if(typeof this.callback=="function"){e={sortable:this,trigger:this.th[i],dir:this.th[i].sorted};this.callback(e);e=undefined;}}.bindTo(this);}.call(this,i));}};SortableTable.prototype.parseFormattedNumber=function(d,b,a){var c;b=b||",";a=a||".";if(b=="."){b="\\.";}c=new RegExp(b);d=d.replace(c,"decPoint");if(a=="."){a="\\.";}c=new RegExp(a);d=d.replace(c,"");d=d.replace(/decPoint/,".");return parseFloat(d);};SortableTable.prototype.sortNumeric=function(c){var b=renderer.hasClassName("decPoint[.,]",this.th[c]),a=renderer.hasClassName("thousandsSep[ .,]",this.th[c]);if(b){b.match(/([.,])$/);b=RegExp.$1;}if(a){a.match(/([ .,])$/);a=RegExp.$1;}this.trs.sort(function(d,f){return function(){if(typeof d.getElementsByTagName("td")[c].innerText!="undefined"){d=d.getElementsByTagName("td")[c].innerText;}else{d=d.getElementsByTagName("td")[c].textContent;}if(typeof f.getElementsByTagName("td")[c].innerText!="undefined"){f=f.getElementsByTagName("td")[c].innerText;}else{f=f.getElementsByTagName("td")[c].textContent;}d=this.parseFormattedNumber(d,b,a);f=this.parseFormattedNumber(f,b,a);return d-f;}.apply(this);}.bindTo(this));};SortableTable.prototype.sortLex=function(a){this.trs.sort(function(b,c){return function(){var d=[];if(typeof b.getElementsByTagName("td")[a].innerText!="undefined"){b=b.getElementsByTagName("td")[a].innerText.toLowerCase().replace(/[\s\r\n\t]/g,"");}else{b=b.getElementsByTagName("td")[a].textContent.toLowerCase().replace(/[\s\r\n\t]/g,"");}d.push(b);if(typeof c.getElementsByTagName("td")[a].innerText!="undefined"){c=c.getElementsByTagName("td")[a].innerText.toLowerCase().replace(/[\s\r\n\t]/g,"");}else{c=c.getElementsByTagName("td")[a].textContent.toLowerCase().replace(/[\s\r\n\t]/g,"");}d.push(c);d.sort();if(d[0]==b){d=undefined;return -1;}else{d=undefined;return 1;}}();});};SortableTable.prototype.sortDate=function(d){var f,a=false,c,b;if(renderer.hasClassName("dateformat_dd.mm.yyyy",this.th[d])){f=new RegExp("(([0-9]{2}).([0-9]{2}).([0-9]{4}))");a={"year":"$4","month":"$3","day":"$2","hour":"$5","minute":"$6","second":"$7"};}else{f=new RegExp("(([0-9]{2}).([0-9]{2}).([0-9]{4}))");a={"year":"$4","month":"$3","day":"$2","hour":"$5","minute":"$6","second":"$7"};}if(a){this.trs.sort(function(g,h){return function(){var m,o,j,i,p,k;if(typeof g.getElementsByTagName("td")[d].innerText!="undefined"){f.test(g.getElementsByTagName("td")[d].innerText);}else{f.test(g.getElementsByTagName("td")[d].textContent);}m=parseInt(RegExp[a.year],10);o=parseInt(RegExp[a.month],10);j=parseInt(RegExp[a.day],10);i=parseInt(RegExp[a.hour],10);p=parseInt(RegExp[a.minute],10);k=parseInt(RegExp[a.second],10);c=new Date(isNaN(m)?"0":m,isNaN(o)?"0":o-1,isNaN(j)?"0":j,isNaN(i)?"0":i,isNaN(p)?"0":p,isNaN(k)?"0":k);if(typeof h.getElementsByTagName("td")[d].innerText!="undefined"){f.test(h.getElementsByTagName("td")[d].innerText);}else{f.test(h.getElementsByTagName("td")[d].textContent);}m=parseInt(RegExp[a.year],10);o=parseInt(RegExp[a.month],10);j=parseInt(RegExp[a.day],10);i=parseInt(RegExp[a.hour],10);p=parseInt(RegExp[a.minute],10);k=parseInt(RegExp[a.second],10);b=new Date(isNaN(m)?"0":m,isNaN(o)?"0":o-1,isNaN(j)?"0":j,isNaN(i)?"0":i,isNaN(p)?"0":p,isNaN(k)?"0":k);return c.getTime()-b.getTime();}();});}};eventHandler.addLoadEvent(function(){var c=document.getElementsByTagName("table"),a;a=c.length;for(var b=0;b<a;b++){if(renderer.hasClassName("sortable",c[b])){new SortableTable(c[b]);}}});String.prototype.bdpUcFirst=function(){var a=this[0].toUpperCase();for(var b=1;b<this.length;b++){a+=this[b];}return a;};String.prototype.bdpTrim=function(){return this.replace(/^[\s\r\x00]+/,"").replace(/[\s\r\x00]+$/,"");};
