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("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;}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=["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.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){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;}if(b=="mousewheel"){c=this.buildWheelHandler(d,a);}else{c=a;}if(d.addEventListener){if(b=="mousewheel"){b="DOMMouseScroll";}d.addEventListener(b,c,false);}else{if(d.attachEvent){d["e"+b+c]=c;d[b+c]=function(){d["e"+b+c](window.event);};d.attachEvent("on"+b,d[b+c]);}}};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(c,b,a){if(!libArray.inArray(b,this.predefined)){if(typeof c.userDefinedEvents["on"+b][a.registeredEventIndex]=="function"){c.userDefinedEvents["on"+b][a.registeredEventIndex]=undefined;}return;}if(c.removeEventListener){if(b=="mousewheel"){b="DOMMouseScroll";}c.removeEventListener(b,a,false);}else{if(c.detachEvent){c.detachEvent("on"+b,c[b+a]);c[b+a]=null;c["e"+b+a]=null;}}};EventHandler.prototype.getKeyCode=function(b){b=this.getEvent(b);var a=b.which||b.keyCode;return 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(d,b,f){if(!this.test(d)){var a=document.createElement("SCRIPT");a.src=this.dir+d+".js";a.type="text/javascript";this.documentHead.appendChild(a);}var c=0;this.interval=window.setInterval(function(){try{if(typeof window[d]=="function"&&typeof window[d].prototype.init!="undefined"){this.obj=new window[d]();if(this.obj instanceof window[d]){this.obj.init.apply(this.obj,b);throw true;}else{throw false;}}else{throw false;}}catch(g){if(g){window.clearInterval(this.interval);if(typeof f=="function"){f(this.obj);}}}c++;if(c>=100){window.clearInterval(this.interval);}}.bindTo(this),100);return this.obj;};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(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.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){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"){a=this.getCSSValue(b,"clip")=="rect(auto)"?false: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.insertSheet=function(){var a=document.createElement("style");a.setAttribute("type","text/css");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);}}};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;b=b||document.getElementsByTagName("head")[0].parentNode;if(this.ov){this.ov.remove("fade");this.ov=undefined;}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);var f;eventHandler.addEvent(this.ov,"fadeready",f=function(){if(g){g();}var c=function(){this.removeCallback(f);}.call(this);}.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(c,b,g,f,d){if(typeof c.rendererFadeInterval!="undefined"){window.clearInterval(c.rendererFadeInterval);}c.fading=true;var a=cssHandler.getOpacity(c);b=b||(a===0?"in":"out");g=g||this.defaultEffectSettings.fade.fps;f=f||this.defaultEffectSettings.fade.stepping;d=!isNaN(d)?d:this.defaultEffectSettings.fade.stopOpacity[b];c.rendererFadeInterval=window.setInterval(function(){a=b=="out"?a-f:a+f;if((b=="in"&&a>=d)||(b=="out"&&a<=d)){cssHandler.setOpacity(c,d);window.clearInterval(c.rendererFadeInterval);if(typeof c.onfadeready=="function"){c.onfadeready();}if(typeof c.oneffectready=="function"){c.oneffectready();}c.fading=undefined;}else{cssHandler.setOpacity(c,a);}},Math.round(1000/g));};Renderer.prototype.move=function(d,l,m,j,f){if(typeof d.rendererMoveInterval!="undefined"){window.clearInterval(d.rendererMoveInterval);}d.moving=true;f=f||this.defaultEffectSettings.move.fps;j=j||this.defaultEffectSettings.move.stepping;m=m||this.defaultEffectSettings.move.easing;var o,s;startPos={"x":parseInt(cssHandler.getCSSValue(d,"left"),10),"y":parseInt(cssHandler.getCSSValue(d,"top"),10)};s={"x":parseInt(cssHandler.getCSSValue(d,"left"),10),"y":parseInt(cssHandler.getCSSValue(d,"top"),10)};var t=Math.max(startPos.x,l.x)-Math.min(startPos.x,l.x);var q=Math.max(startPos.y,l.y)-Math.min(startPos.y,l.y);var r=startPos.x>l.x?"left":"right";var p=startPos.y>l.y?"up":"down";var g=t>=q?"x":"y";var k=t>=q?q/t:t/q;var h=startPos;var c=function(){var u,v;if(t>q){u=r=="right"?s.x+=j:u=s.x-=j;v=p=="down"?s.y+=j*k:s.y-=j*k;}else{v=p=="down"?s.y+=j:v=s.y-=j;u=r=="right"?s.x+=j*k:s.x-=j*k;}return{"x":Math.round(u),"y":Math.round(v)};};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 v=Math.max(Math.abs(h[g]),Math.abs(l[g]))-Math.min(Math.abs(h[g]),Math.abs(l[g]));if(m===true&&v<i){var u=Math.ceil(j/2);if(j==a){j=j-(i-v)>u?j-(i-v):u;}else{u=Math.ceil(v/2);j=u>=1?u:1;}}if(v<=(m===true?1:j)){window.clearInterval(d.rendererMoveInterval);d.style.left=l.x+"px";d.style.top=l.y+"px";if(typeof d.onmoveready=="function"){d.onmoveready();}if(typeof d.oneffectready=="function"){d.oneffectready();}d.moving=undefined;}else{h=c();d.style.left=h.x+"px";d.style.top=h.y+"px";h.stepIndex=b++;h.stepWidth=j;h.delta=v;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 l=g.offsetHeight+g.getCSSValue("paddingTop","int")+g.getCSSValue("paddingBottom","int"),c,a;var f=Math.floor(l/2);var i=Math.floor(b/2);var h=Math.ceil(l/2);var k=Math.ceil(b/2);g.style.clip="rect("+f+"px, "+i+"px, "+h+"px, "+k+"px)";c=(b>l?b:l)/j;a=Math.ceil((c*(b>l?l:b)/(b>l?b:l))/2);c=Math.ceil(c/2);g.rendererGrowInterval=window.setInterval(function(){if(f-(b>l?a:c)>0){f-=(b>l?a:c);}else{f=0;}if(i+(b>l?c:a)<b){i+=(b>l?c:a);}else{i=b;}if(h+(b>l?a:c)<l){h+=(b>l?a:c);}else{h=l;}if(k-(b>l?c:a)>0){k-=(b>l?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.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}};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"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);}switch(b){case"fade":eventHandler.addEvent(this,"fadeready",this.fadeready=function(){var d=function(){eventHandler.removeEvent(this,"fadeready",this.fadeready);}.call(this);if(this.parentNode){this.parentNode.removeChild(this);}}.bindAsEventListener(this));this.renderer.fade(this,"out",a.fps,a.stepping,a.stopOpacity.out);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;}}eventHandler.addEvent(this,"moveready",this.moveready=function(){eventHandler.removeEvent(this,"moveready",this.moveready);if(this.parentNode){this.parentNode.removeChild(this);}}.bindAsEventListener(this));this.renderer.move(this,c,a.easing,a.stepping,a.fps);break;default:if(this.parentNode){this.parentNode.removeChild(this);}}if(typeof this.onremove=="function"){this.onremove();}},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.className+=this.className!=""?" "+a:a;},removeClassName:function(a){var b=new RegExp("(^"+a+" ?| "+a+")");this.className=this.className.replace(b,"");b=undefined;},hasClassName:function(a){return this.renderer.hasClassName(a,this);},getElement:function(a){return this.renderer.getElement(a,this);},getElements:function(a){return this.renderer.getElements(a,this);},mouseover:function(){return this.renderer.mouseover(this);}};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(c,a);}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(b,c){c=c||document;var a;b.match(/^([^.#]*)?([.#])?(.*)$/);if(RegExp.$2=="."){a=window.getElementsByClassName(RegExp.$3,RegExp.$1,c);}else{if(RegExp.$2=="#"){a=document.getElementById(RegExp.$3);}else{if(typeof RegExp.$2=="undefined"||RegExp.$2==""){if(typeof c.getElementsByTagName!="undefined"){a=c.getElementsByTagName(RegExp.$1);}else{throw"parent.getElementsByTagName is not a function, renderer.getElement";}}}}return typeof a.length!="undefined"?a.length==1?a[0]:false:a;};Renderer.prototype.getElements=function(a,b){b=b||document;a.match(/^([^.]*)?([.])?(.*)$/);if(RegExp.$2=="."){return window.getElementsByClassName(RegExp.$3,RegExp.$1,b);}else{if(typeof RegExp.$2=="undefined"||RegExp.$2==""){if(typeof b.getElementsByTagName!="undefined"){return b.getElementsByTagName(RegExp.$1);}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.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;};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(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,o,j){j=j||document;var d=j.getElementsByClassName(k),m=(o)?new RegExp("\\b"+o+"\\b","i"):null,f=[],h;for(var g=0,l=d.length;g<l;g+=1){h=d[g];if(!m||m.test(h.nodeName)){f.push(h);}}return f;};}else{if(document.evaluate){getElementsByClassName=function(p,s,o){s=s||"*";o=o||document;var g=p.split(" "),q="",l="http://www.w3.org/1999/xhtml",r=(document.documentElement.namespaceURI===l)?l:null,h=[],d,f;for(var i=0,k=g.length;i<k;i+=1){q+="[contains(concat(' ', @class, ' '), ' "+g[i]+" ')]";}try{d=document.evaluate(".//"+s+q,o,r,0,null);}catch(m){d=document.evaluate(".//"+s+q,o,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";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";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++){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 l,m,j,i,o,k;if(typeof g.getElementsByTagName("td")[d].innerText!="undefined"){f.test(g.getElementsByTagName("td")[d].innerText);}else{f.test(g.getElementsByTagName("td")[d].textContent);}l=parseInt(RegExp[a.year],10);m=parseInt(RegExp[a.month],10);j=parseInt(RegExp[a.day],10);i=parseInt(RegExp[a.hour],10);o=parseInt(RegExp[a.minute],10);k=parseInt(RegExp[a.second],10);c=new Date(isNaN(l)?"0":l,isNaN(m)?"0":m-1,isNaN(j)?"0":j,isNaN(i)?"0":i,isNaN(o)?"0":o,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);}l=parseInt(RegExp[a.year],10);m=parseInt(RegExp[a.month],10);j=parseInt(RegExp[a.day],10);i=parseInt(RegExp[a.hour],10);o=parseInt(RegExp[a.minute],10);k=parseInt(RegExp[a.second],10);b=new Date(isNaN(l)?"0":l,isNaN(m)?"0":m-1,isNaN(j)?"0":j,isNaN(i)?"0":i,isNaN(o)?"0":o,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]+$/,"");};