//*******************************************************************************
//* inc.main.js
//*******************************************************************************
//* http://www.maaax.com/maxetlulu/ - Copyright © 2010
//* LogBook - Copyright © 2004, 2010
//* Maxime MARCONATO / MaaaX (maxime@maaax.com).
//* 
//* Notice : This computer program is not a freeware. It is protected by
//* copyright laws and international treaties. Unauthorized reproduction or
//* distribution of this program, or any portion of it, may result in severe
//* civil and criminal penalties, and will be prosecuted to the maximum extent
//* possible under the law.
//* Notice: This javascript Library is a fork of the LogBook project and is the
//* entire property of its authors. It can not be saled without their agree.
//*******************************************************************************
var undefined;if(!Object.prototype.hasOwnProperty){Object.prototype.hasOwnProperty=function(p){try{if($Au.isUndefined(this[p]))return false;var a=this.constructor.prototype;while(a){if(a[p]==this[p])return false;a=a.prototype;}return true;}catch(X){return false;}};}if(!Function.prototype.call){Function.prototype.call=function(o){var a=[];for(var i=1;i<arguments.length;i++)a[a.length]='arguments['+i+']';o._function_prototype_call_f=this;var r=eval('o._function_prototype_call_f('+ a.join(',')+')');delete o._function_prototype_call_f;return r;};}if(!Function.prototype.apply){Function.prototype.apply=function(o,p){o._function_prototype_apply_f=this;var a=[];if(p)for(var i=0;i<p.length;i++)a[a.length]='p['+i+']';var r=eval('o._function_prototype_apply_f('+a.join(',')+')');delete o._function_prototype_apply_f;return r;};}if(!Array.prototype.pop){Array.prototype.pop=function(){var l;if(this.length){l=this[this.length-1];this.length-=1;}return l;};}if(!Array.prototype.push){Array.prototype.push=function(){for(var i=0;i<arguments.length;i++)this[this.length]=arguments[i];return this.length;};}if(!Array.prototype.shift){Array.prototype.shift=function(){var f;if(this.length){f=this[0];for(var i=0;i<this.length-1;i++)this[i]=this[i+1];this.length-=1;}return f;};}if(!Array.prototype.unshift){Array.prototype.unshift=function(){if(arguments.length){var i,l=arguments.length;for(i=this.length+l-1;i>=l;i--)this[i]=this[i-l];for(i=0;i<l;i++)this[i]=arguments[i];}return this.length;};}if(!Array.prototype.splice){Array.prototype.splice=function(i,n){var e=[],r=[],j;for(j=2;j<arguments.length;j++)e.push(arguments[j]);for(j=i;(j<i+n) && (j<this.length);j++)r.push(this[j]);for(j=i+n;j<this.length;j++)this[j-n]=this[j];this.length-=r.length;for(j=this.length+e.length-1;j>=i+e.length;j--)this[j]=this[j-e.length];for(j=0;j<e.length;j++)this[i+j]=e[j];return r;};}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(s,f){if(!f)f=0;for(var i=f;i<this.length;i++)if(this[i]==s)return i;return-1;};}if(!Array.prototype.insertBefore){Array.prototype.insertBefore=function(v,i){for(var j=this.length;j>i;j--)this[j]=this[j-1];this[i]=v;};}if(!Array.prototype.insertAfter){Array.prototype.insertAfter=function(v,i){for(var j=this.length;j>i+1;j--)this[j]=this[j-1];this[i+1]=v;};}if(!String.prototype.isStyle){String.prototype.isStyle=function (){return (/^([a-z\-_]{1}[a-z0-9\-_]{2,}\s*:[a-z0-9\s\-_=,\.:#%\(\)\/']+;?)+$/i.test(this));};}if(!String.prototype.isClass){String.prototype.isClass=function (){return (/^[a-z_]{1}[a-z0-9\-_]*$/i.test(this));};}if(!String.prototype.contains){String.prototype.contains=function(){for(var i=0;i<arguments.length;i++)if(this.indexOf(arguments[i])>-1)return true;return false;};}if(!String.prototype.equals){String.prototype.equals=function(){for(var i=0;i<arguments.length;i++)if(this==arguments[i])return true;return false;};}if(!String.prototype.startsWith){String.prototype.startsWith=function(){for(var i=0;i<arguments.length;i++)if(this.substr(0,arguments[i].length)==arguments[i])return true;return false;};}if(!String.prototype.endsWith){String.prototype.endsWith=function(){for(var i=0;i<arguments.length;i++)if(this.substr(this.length-arguments[i].length,arguments[i].length)==arguments[i])return true;return false;};}if(!String.prototype.remove){String.prototype.remove=function(s,l){var r='';if(s>0)r=this.substring(0,s);if((s+l)<this.length)r+=this.substring(s+l,this.length);return r;};}if(!String.prototype.trim){String.prototype.trim=function(){return this.replace(/^\s*|\s*$/g,'');};}if(!String.prototype.lTrim){String.prototype.lTrim=function(){return this.replace(/^\s*/g,'');};}if(!String.prototype.rTrim){String.prototype.rTrim=function(){return this.replace(/\s*$/g,'');};}if(!String.prototype.replaceNewLineChars){String.prototype.replaceNewLineChars=function(r){return this.replace(/\r?\n/g,''+r);};}var LOGBOOK=function(){if(window.onerror)window.onerror=function(){return true;};return {};},$A=LOGBOOK;var $LBe=LOGBOOK.env=function(){return {undefined:undefined,modules:[],listeners:[],ua:function(){var b={ie:0,op:0,gk:0,wk:0};{var u=navigator.userAgent,m;if(/KHTML/i.test(u))b.wk=1;m=u.match(/WebKit\/([^\s]*)/i);if(m && m[1])b.wk=parseFloat(m[1]);if(!b.wk){m=u.match(/Opera[\s\/]([^\s]*)/i);if(m && m[1])b.op=parseFloat(m[1]);else {m=u.match(/MSIE\s([^;]*)/i);if(m && m[1])b.ie=parseFloat(m[1]);else {m=u.match(/Gecko\/([^\s]*)/i);if(m){b.gk=1;m=u.match(/rv:([^\s\)]*)/i);if(m && m[1])b.gk=parseFloat(m[1]);}}}}return b;}}(),os:function(){var o={wn:false,mc:false,ux:false};{var u=navigator.userAgent;if(/windows|win[0-9]+/i.test(u))o.wn=true;else if(/darwin|apple|mac/i.test(u))o.mc=true;else if(/bsd|linux|sunos|irix|unix/i.test(u))o.ux=true;return o;}}()};}();var $Au=LOGBOOK.utl=function(){return {isArray:function(o){ if(o)return $Au.isNumber(o.length) && $Au.isFunction(o.splice) && !$Au.hasOwnProperty(o.length);return false;},isBoolean:function(o){return typeof o==='boolean';},isFunction:function(o){return typeof o==='function';},isNull:function(o){return o===null;},isNumber:function(o){return typeof o==='number' && isFinite(o);},isObject:function(o){return (o && (typeof o==='object' || $Au.isFunction(o))) || false;},isString:function(o){return typeof o==='string';},isUndefined:function(o){return typeof o==='undefined';},isValue:function(o){return ($Au.isObject(o) || $Au.isString(o) || $Au.isNumber(o) || $Au.isBoolean(o));},write:function(t){document.write(''+t);},namespace:function(){var a=arguments,o=null,i,j,d;for(i=0;i<a.length;i=i+1){d=a[i].split('.');o=LOGBOOK;for(j=(d[0]=='LOGBOOK') ? 1:0;j<d.length;j++){o[d[j]]=o[d[j]] || {};o=o[d[j]];}}return o;},log:function(m,c,s){if($Aw && $Aw.log)return $Aw.log(m,c,s);return false;},register:function(n,c,i){if(!c)$Au.log('main class is undefined formodule '+n,'warn');var m=$LBe.modules,l=$LBe.listeners;if(!m[n])m[n]={n:'',c:function(){},i:{}};var o=m[n];o.n=n || '';o.c=c || function(){};o.i=i || {};for(var i=0;i<l.length;i++)l[i](o);},_fixEnum:function(r,s){if($LBe.ua.ie){var add=['toString','valueOf'];for(var i=0;i<add.length;i=i+1){var fname=add[i],f=s[fname];if($Au.isFunction(f) && f!=Object.prototype[fname])r[fname]=f;}}},extend:function(c,s,v){var i=function(){};i.prototype=s.prototype;c.prototype=new i();c.prototype.constructor=c;c.superConstructor=s;c.superClass=s.prototype;if(s.prototype.constructor==Object.prototype.constructor)s.prototype.constructor=s;if(o){for(var i in v)c.prototype[i]=v[i];$Au._fixEnum(c.prototype,v);}},augment:function(r,s){var a=arguments,i,p,v=a[2];if(v && v!==true)for(i=2;i<a.length;i++)c[a[i]]=s[a[i]];else {for(p in s)if(v || !c[p])c[p]=s[p];$Au._fixEnum(c,s);}},_uidCounters:{},getUID:function(p){p+='';if(!_uidCounters[p])_uidCounters[p]=0;r='_LOGBOOK_utl_uid_'+(p!=''?p+'_':'')+_uidCounters[p];_uidCounters[p]++;return r;},decToHex:function(d){return d.toString(16);},hexToDec:function(h){ return parseInt(''+h,16);}};}();var $Ac=LOGBOOK.cls=function(){return {};}();$Ac.CustomEvent=function(t,s,m,g){this.type=t;this.scope=s || window;this.silent=m?true:false;this.signature=(g==$Ac.CustomEvent.FLAT)?$Ac.CustomEvent.FLAT:$Ac.CustomEvent.LIST;this.subscribers=[];var _onSubscribeType='_LOGBOOK_cls_CustomEvent_onSubscribe';if(t!==_onSubscribeType){this.subscribeEvent=new LOGBOOK.cls.CustomEvent(_onSubscribeType,this,true);} };$Ac.CustomEvent.LIST=0;$Ac.CustomEvent.FLAT=1;$Ac.CustomEvent.prototype={subscribe:function(f,o,s){if(!f)throw new Error('Invalid callback forsubscriber to \''+this.type+'\'');if(this.subscribeEvent)this.subscribeEvent.fire(f,o,s);this.subscribers.push(new $Ac.EventSubscriber(f,o,s));},unsubscribe:function(f,o){if(!f)return this.unsubscribeAll();var r=false;for(var i=0,l=this.subscribers.length;i<l;i++){var s=this.subscribers[i];if(s && s.contains(f,o)){this._delete(i);r=true;}}return r;},fire:function(){var l=this.subscribers.length;if(!l && this.silent)return true;var a=[],r=true,i,b=false;for(i=0;i<arguments.length;i++)a.push(arguments[i]);var n=a.length;for(i=0;i<l;i++){var s=this.subscribers[i];if(!s)b=true;else {var c=s.getScope(this.scope);if(this.signature==$Ac.CustomEvent.FLAT){var p=null;if(a.length>0)p=a[0];r=s.fn.call(c,p,s.obj);}else r=s.fn.call(c,this.type,a,s.obj);if(false===r)return false;}}if(b){var m=[],t=this.subscribers;for(i=0,l=t.length;i<l;i++){s=t[i];m.push(t[i]);}this.subscribers=m;}return true;},unsubscribeAll:function(){for(var i=0,l=this.subscribers.length;i<l;i++)this._delete(l-1-i);this.subscribers=[];return i;},_delete:function(i){var s=this.subscribers[i];if(s){delete s.fn;delete s.obj;}this.subscribers[i]=null;},toString:function(){return 'CustomEvent: '+'\''+this.type+'\', scope: '+this.scope;}};$Ac.EventSubscriber=function(f,o,v){this.fn=f;this.obj=$Au.isUndefined(o)?null:o;this.override=v;};$Ac.EventSubscriber.prototype={getScope:function(s){if(this.override){if(this.override===true)return this.obj;return this.override;}return s;},contains:function(f,o){if(o)return (this.fn==f && this.obj==o);return (this.fn==f);},toString:function(){return 'EventSubscriber { obj: '+this.obj+', override: '+(this.override||'no')+' }';}};var $Ai=LOGBOOK.itf=function(){return {};}();$Ai.EventProvider=function(){};$Ai.EventProvider.prototype={_events:null,_subscribers:null,subscribe:function(t,f,o,v){this._events=this._events || {};var c=this._events[t];if(c)c.subscribe(f,o,v);else {this._subscribers=this._subscribers || {};var s=this._subscribers;if(!s[t])s[t]=[];s[t].push({fn:f,obj:o,override:v});}},unsubscribe:function(t,f,o){var e=this._events=this._events || {};;if(t){var c=e[t];if(c)return c.unsubscribe(f,o);}else {for(var i in e){var r=true;if($Au.hasOwnProperty(e,i))r=e[i].unsubscribe(f,o) && r;}return r;}return false;},unsubscribeAll:function(t){return this.unsubscribe(t);},createEvent:function(t,c){var e=this._events=this._events || {};;var o=c || {};if(!e[t]){var s=o.scope || this;var m=(o.silent);var d=new $Ac.CustomEvent(t,s,m,$Ac.CustomEvent.FLAT);e[t]=ce;if(o.onSubscribeCallback)d.subscribeEvent.subscribe(o.onSubscribeCallback);this._subscribers=this._subscribers || {};var q=this._subscribers[t];if(q)for(var i=0;i<q.length;i++)d.subscribe(q[i].fn,q[i].obj,q[i].override);}return e[t];},fireEvent:function(t){this._events=this._events || {};var c=this._events[t];if(!c)return null;var a=[];for(var i=1;i<arguments.length;i++)a.push(arguments[i]);return c.fire.apply(c,a);},hasEvent:function(t){if(this._events && this._events[t])return true;return false;}};$Ai.KeyListener=function(n,k,h,e){var _keyEvent=new $Ac.CustomEvent('keyPressed');var _enabledEvent=new $Ac.CustomEvent('enabled');var _disabledEvent=new $Ac.CustomEvent('disabled');var _enabled=false;var _handleKeyPress=function(e,o){if(!k.shift)k.shift=false;if(!k.alt)k.alt=false;if(!k.ctrl)k.ctrl=false;if(e.shiftKey==k.shift && e.altKey==k.alt && e.ctrlKey==k.ctrl){var d;if(k.keys instanceof Array){for(var i=0;i<k.keys.length;i++){d=k.keys[i];if(d==e.charCode){_keyEvent.fire(e.charCode,e);break;}else if(d==e.keyCode){_keyEvent.fire(e.keyCode,e);break;}}}else {d=k.keys;if(d==e.charCode)_keyEvent.fire(e.charCode,e);else if(d==e.keyCode)_keyEvent.fire(e.keyCode,e);}}};if(!e)e=$Ai.KeyListener.KEYDOWN;if(typeof n=='string')n=$Aud.getElementById(n);if(typeof h=='function')_keyEvent.subscribe(h);else _keyEvent.subscribe(h.fn,h.scope,h.correctScope);this.enable=function(){if(!_enabled){$Aue.addListener(n,e,_handleKeyPress);_enabledEvent.fire(k);}_enabled=true;};this.disable=function(){if(_enabled){$Aue.removeListener(n,e,_handleKeyPress);_disabledEvent.fire(k);}_enabled=false;};};$Ai.KeyListener.KEYDOWN='keydown';$Ai.KeyListener.KEYUP='keyup';var $Aud=LOGBOOK.utl.dom=function(){if(!window.Node){window.Node={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12};}return {minZIndex:-1000000,maxZIndex:1000000,_scrollbarWidth:0,_scrollbarHeight:0,_init:function(e){var d=document,h=d.getElementsByTagName('html')[0],b=d.getElementsByTagName('body')[0],ta=b.firstChild;while(ta && ta.nodeType==Node.TEXT_NODE)if(ta.nodeValue.match(/^\s*$/))ta=ta.nextSibling;else break;if(ta && ta.tagName && ta.tagName.toLowerCase()=='table' && ta.dir.match(/^ltr|rtl$/))var dir=$Aud.getDir(ta);else {var dir=$Aud.getDir();ta=null;}var w=window,d=document,h=d.getElementsByTagName('html')[0],b=d.getElementsByTagName('body')[0];ta=b.firstChild;while(ta && ta.nodeType==Node.TEXT_NODE)if(ta.nodeValue.match(/^\s*$/))ta=ta.nextSibling;else break;if(ta && ta.tagName && ta.tagName.toLowerCase()=='table' && ta.dir.match(/^ltr|rtl$/))var dir=$Aud.getDir(ta);else {var dir=$Aud.getDir();ta=null;}h.dir='ltr';b.style.padding='';b.style.margin='';$Aud.removeAttribute(b,'dir');d.dir='ltr';$Aud._fixImage();var s0=$Aud.getScrollXYWH();var n=$Aud.createElement('div');n.style.id='_LOGBOOK_utl_dom_init_div';n.style.position='absolute';n.style.margin='0';n.style.padding='0';n.style.left='0';n.style.top='0';n.style.width='1px';n.style.height='1px';n.style.zIndex='0';b.appendChild(n);var minZ=0,varZ=1000000000;while(varZ>=1){try{n.style.zIndex=''+(minZ-varZ);}catch(X){}if(''+n.style.zIndex!=''+(minZ-varZ))varZ/=10;else minZ-=varZ;}var maxZ=0;varZ=1000000000;while(varZ>=1){try{n.style.zIndex=''+(maxZ+varZ);}catch(X){}if(''+n.style.zIndex!=''+(maxZ+varZ))varZ/=10;else maxZ+=varZ;}$Aud.minZIndex=minZ;$Aud.maxZIndex=maxZ;if($LBe.ua.ie){$Aud._scrollbarWidth=-2;$Aud._scrollbarHeight=-2;}else {n.style.width='0';n.style.height='0';n.style.zIndex='0';$Aud.setScrollXY(0,0);var c=$Aud.getClientWH();n.style.width=(c.w+100)+'px';n.style.height=(c.h+100)+'px';$Aud.setScrollXY(1000,1000);var s1=$Aud.getScrollXY();$Aud._scrollbarWidth=s1.x-100;$Aud._scrollbarHeight=s1.y-100;}$Aud.destroyElement(n);$Aud.setScrollXY(dir=='rtl'?s0.w:0,0);var f=function(n){while(n){if(n.style && n.style.overflow && (n.style.overflow=='scroll' || n.style.overflow=='auto'))$Aud.setScrollXY(dir=='rtl'?$Aud.getScrollWH(n).w:0,0,n);if(n.firstChild)f(n.firstChild);n=n.nextSibling;}};if(b.firstChild)f(b.firstChild);if(window.location.hash!='')window.location.replace(window.location.hash);else $Aud.setScrollY(s0.y);},_fixImage:function(e){if($LBe.ua.ie>=5.5 && $LBe.ua.ie<7){if(e){if(!e.src || e.src=='')e.src='pictures/blank.gif';if(e['_LOGBOOK_utl_dom__fixImage_fixed']!='true'){e.onpropertychange=null;$Aud.setStyle(e,'opacity','');$Aud.setAttribute(e,'_LOGBOOK_utl_dom__fixImage_src',e.src);$Aud.setAttribute(e,'_LOGBOOK_utl_dom__fixImage_timer',null);e.runtimeStyle.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+e.src+'\',sizingMethod=\'scale\')';e.src='pictures/blank.gif';var f=function(){if(event.propertyName=='src'){clearTimeout(e['_LOGBOOK_utl_dom__fixImage_timer']);$Aud.setAttribute(e,'_LOGBOOK_utl_dom__fixImage_fixed','false');$Aud._fixImage(e);}};e.oncontextmenu=function(){e.onpropertychange=null;e.src=$Aud.getAttribute(e,'_LOGBOOK_utl_dom__fixImage_src');e.runtimeStyle.filter='';$Aud.setAttribute(e,'_LOGBOOK_utl_dom__fixImage_fixed','false');$Aud.setAttribute(e,'_LOGBOOK_utl_dom__fixImage_timer',setTimeout(function(){$Aud._fixImage(e);},5000));e.onpropertychange=f;};$Aud.setAttribute(e,'_LOGBOOK_utl_dom__fixImage_fixed','true');e.onpropertychange=f;}}else {for(var i=0;i<document.images.length;i++)$Aud._fixImage(document.images[i]);}}else {for(var i=0;i<document.images.length;i++)$Aud.setStyle(document.images[i],'opacity','')}},getNamespace:function(d){d=d || document;var n=null,h=d.getElementsByTagName('html');if(h && h[0] && h[0].attributes['xmlns'] && h[0].attributes['xmlns'].value && h[0].attributes['xmlns'].value!='')n=h[0].attributes['xmlns'].value;return n;},createElement:function(t,p,d){var e=null,d=d || document;if(d.createElementNS)e=d.createElementNS($Aud.getNamespace(d),t);else e=d.createElement(t);if(/^img$/i.test(e.tagName))$Aud._fixImage(e);if(p && p.appendChild)p.appendChild(e);return e;},getElementById:function(e,d){if(!e || e.tagName || e.item)return e;var r;d=d || document;if(d.getElementById){r=d.getElementById(e);if($Au.isObject(r))return r;}if(d.all){r=d.all[e];if($Au.isObject(r))return r;}if(d[e]){r=d[e];if($Au.isObject(r))return r;}return null;},destroyElement:function(e){if(e && e.tagName && e.parentNode){e.parentNode.removeChild(e);for(var i=$Aud._attributesToDestroyOnUnload.length-1;i>=0;i--){var j=$Aud._attributesToDestroyOnUnload[i];if(j[0]===e){j[0][j[1]]=null;j[0]=null;}}e=null;}},_attributesToDestroyOnUnload:[],setAttribute:function(e,a,v){if($Au.isUndefined(e[a]))$Aud._attributesToDestroyOnUnload.push([e,a]);if(e.setAttributeNS)e.setAttributeNS($Aud.getNamespace($Aud.getDocument(e)),a,v);else if(e.setAttribute)e.setAttribute(a,v);else e[a]=v;},hasAttribute:function(e,a){if(e.hasAttributeNS)return e.hasAttributeNS($Aud.getNamespace($Aud.getDocument(e)),a);if(e.hasAttribute)return e.hasAttribute(a);return e[a]?true:false;},getAttribute:function(e,a){if(e.getAttributeNS)return e.getAttributeNS($Aud.getNamespace($Aud.getDocument(e)),a);if(e.getAttribute)return e.getAttribute(a);return e[a]?e[a]:null;},removeAttribute:function(e,a){if(!$Aud.hasAttribute(e,a))return;if(e.removeAttributeNS)e.removeAttributeNS($Aud.getNamespace($Aud.getDocument(e)),a);else if(e.removeAttribute)e.removeAttribute(a);else e[a]=undefined;},getTextElement:function(n){if(n && n.nodeType && n.nodeType==Node.TEXT_NODE && n.parentNode)return n.parentNode;else if(n && n.tagName)return n;return null;},getElementText:function(e){var f=function(e,t){if(!(/^script|style$/i.test(e.tagName))){if(e.nodeType==Node.TEXT_NODE){var d=e.data.replace(/^[ \t\r\n]*|[ \t\r\n]$/,'');if(d!='')t.push(d);return t;}else {var c=e.firstChild;while(c){t=f(c,t);c=c.nextSibling;}}}return t;},t=f(e,[]);return t.join(' ');},getDocument:function(e){return e.ownerDocument || e.document || null;},_fixParentWindow:function(w){w.document.parentWindow=w;for(var i=0;i<w.frames.length;i++)$Aud._fixParentWindow(w.frames[i]);},getWindow:function(e){e=e || document;if(!e.nodeType || e.nodeType==Node.DOCUMENT_NODE){if(!e.parentWindow && !e.defaultView)$Aud._fixParentWindow(window.top);return e.parentWindow || e.defaultView;}return $Aud.getWindow($Aud.getDocument(e));},getDir:function(e,r){e=e || document;r=r || true;var d='';while(d==''){if(e.dir && e.dir.match(/^ltr|rtl$/))d=e.dir;else {e=e.parentNode;if(!e || !r)d='ltr';}}return d;},_convertedStyles:{},_convertStyle:function(p){p=(''+p).toLowerCase();if(!$Aud._convertedStyles[p]){var n=p;while(/(-[a-z])/i.exec(n))n=n.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase());$Aud._convertedStyles[p]=n;}return $Aud._convertedStyles[p];},getComputedStyle:function(){if($LBe.ua.ie){return function(e,p){p=$Aud._convertStyle(p);if(p=='opacity'){var o=100,m=(''+e.style.filter).match(/alpha\s*\([^\)]*opacity\s*\=\s*([0-9]{1,3})[^\)]*\)/i);if(m && m[1])o=parseInt(m[1]);return ''+(o/100);}if(p=='float')p='styleFloat';var s=e.style[p] || e.currentStyle?e.currentStyle[p]:null;if(p=='cursor' && (''+s).toLowerCase()=='hand')s='pointer';return s;};}else if(document.defaultView && document.defaultView.getComputedStyle){return function(e,p){p=$Aud._convertStyle(p);if(p=='opacity')return e.style['opacity'] || e.style['MozOpacity'] || e.style['KhtmlOpacity'] || '1';if(p=='float')p='cssFloat';try{return e.style[p] || $Aud.getDocument(e).defaultView.getComputedStyle(e,'').getPropertyValue(p) || null;}catch (X){return null;}};}else {return function(e,p){p=$Aud._convertStyle(p);if(p=='opacity')return e.style['opacity'] || e.style['MozOpacity'] || e.style['KhtmlOpacity'] || '1';if(p=='float')p='cssFloat';return e.style[p] || null;};}}(),getStyle:function(){if($LBe.ua.ie){return function(e,p){p=$Aud._convertStyle(p);if(p=='opacity'){var o=100,m=(''+e.style.filter).match(/alpha\s*\([^\)]*opacity\s*\=\s*([0-9]{1,3})[^\)]*\)/i);if(m && m[1])o=parseInt(m[1]);return ''+(o/100);}if(p=='float')p='styleFloat';var s=e.style[p] || null;if(p=='cursor' && (''+s).toLowerCase()=='hand')s='pointer';return s;};}else {return function(e,p){p=$Aud._convertStyle(p);if(p=='opacity')return e.style['opacity'] || e.style['MozOpacity'] || e.style['KhtmlOpacity'] || '1';if(p=='float')p='cssFloat';return e.style[p] || null;};}}(),setStyle:function(){if($LBe.ua.ie){return function(e,p,v){p=$Aud._convertStyle(p);if(p=='opacity'){if(/^img$/i.test(e.tagName))v='';if(v==''){try{e.style.filter=(''+e.style.filter).replace(/alpha\s*\([^\)]*opacity\s*[:=]\s*[0-9]+[^\)]*\)/i,'');}catch(X){}}else {try{var m=/((alpha\s*\([^\)]*opacity\s*[:=]\s*)[0-9]+([^\)]*\)))/i.exec(''+e.style.filter);if(!RegExp.$1)e.style.filter+=(e.style.filter!=''?' ':'')+'alpha(opacity='+parseInt(v*100)+')';else e.style.filter=(''+e.style.filter).replace(RegExp.$1,''+RegExp.$2+parseInt(v*100)+RegExp.$3);}catch(X){}}try{if(!e.currentStyle || !e.currentStyle.hasLayout)e.style.zoom=1;}catch(X){}}else {if(p=='float')p='styleFloat';else if(p=='clip' && v==''){v='rect(auto,auto,auto,auto)';}try{e.style[p]=v;}catch(X){}if(p=='cursor' && v=='pointer' && e.style[p]!=v){try{e.style[p]='hand';}catch(X){}}}};}else {return function(e,p,v){p=$Aud._convertStyle(p);var s=$Aud.getScrollXY();if(p=='opacity'){if(/^img$/i.test(e.tagName))v='';try{e.style['opacity']=v;}catch(X){}if(e.style['MozOpacity']){try{e.style['MozOpacity']=v;}catch(X){}}if(e.style['KhtmlOpacity']){try{e.style['KhtmlOpacity']=v;}catch(X){}}}else {if(p=='float')p='cssFloat';else if(p=='clip' && v=='')v='rect(auto, auto, auto, auto)';try{e.style[p]=v;}catch(X){}}$Aud.setScrollXY(s.x,s.y)};}}(),_cacheClassRegExp:{},_getClassRegExp:function(c){if(!$Aud._cacheClassRegExp[c])$Aud._cacheClassRegExp[c]=new RegExp('(?:^|\\s+)'+c+'(?:\\s+|$)');return $Aud._cacheClassRegExp[c];},addClass:function(e,c){if($Aud.hasClass(e,c))return;e.className=[e.className,c].join(' ').trim();},hasClass:function(e,c){return $Aud._getClassRegExp(c).test(e.className)},removeClass:function(e,c){if(!$Aud.hasClass(e,c))return;e.className=e.className.replace($Aud._getClassRegExp(c),' ');if($Aud.hasClass(e,c))$Aud.removeClass(e,c);e.className=e.className.trim();},replaceClass:function(e,o,n){if(!n || o===n)return;if(!$Aud.hasClass(e,o))return $Aud.addClass(e,n);e.className=e.className.replace($Aud._getClassRegExp(o),' '+n+' ');if($Aud.hasClass(e,o))$Aud.replaceClass(e,o,n);e.className=e.className.trim();},getScreenW:function(w){return $Aud.getScreenWH(w).w;},getScreenH:function(w){return $Aud.getScreenWH(w).h;},getScreenWH:function(w){w=w || window;return {w:w.screen.availWidth || w.screen.width || 1024,h:w.screen.availHeight || w.screen.height || 768};},getOriginX:function(){if($LBe.ua.ie>=5.5)return function(e){e=e || document;if($Aud.getDir(e)=='rtl'){if($LBe.ua.ie && $LBe.ua.ie<7 && e.body && (e.body.scrollWidth || e.body.scrollWidth===0) && (e.body.clientWidth || e.body.clientWidth===0))return e.body.scrollWidth-e.body.clientWidth;if(e.documentElement && (e.documentElement.scrollWidth || e.documentElement.scrollWidth===0) && (e.documentElement.clientWidth || e.documentElement.clientWidth===0))return e.documentElement.scrollWidth-e.documentElement.clientWidth;if((e.scrollWidth || e.scrollWidth===0) && (e.clientWidth || e.clientWidth===0))return e.scrollWidth-e.clientWidth;}return 0;};return function(e){return 0;};}(),getOriginY:function(e){return 0;},getOriginXY:function(e){return {x:$Aud.getOriginX(e),y:$Aud.getOriginY(e)};},getScrollX:function(e){e=e || document,w=$Aud.getWindow(e);if((!e.nodeType || e.nodeType==Node.DOCUMENT_NODE) && w.pageXOffset)return w.pageXOffset;if($LBe.ua.ie && $LBe.ua.ie<7 && e.body && e.body.scrollLeft)return e.body.scrollLeft;if(e.documentElement && e.documentElement.scrollLeft)return e.documentElement.scrollLeft;if(e.scrollLeft)return e.scrollLeft;return 0;},getScrollY:function(e){e=e || document,w=$Aud.getWindow(e);if((!e.nodeType || e.nodeType==Node.DOCUMENT_NODE) && w.pageYOffset)return w.pageYOffset;if($LBe.ua.ie && $LBe.ua.ie<7 && e.body && e.body.scrollTop)return e.body.scrollTop;if(e.documentElement && e.documentElement.scrollTop)return e.documentElement.scrollTop;if(e.scrollTop)return e.scrollTop;return 0;},getScrollXY:function(e){return {x:$Aud.getScrollX(e),y:$Aud.getScrollY(e)};},getScrollW:function(e){e=e || document;if($LBe.ua.ie && $LBe.ua.ie<7 && e.body && e.body.scrollWidth)return e.body.scrollWidth;if(e.documentElement && e.documentElement.scrollWidth)return e.documentElement.scrollWidth;if(e.scrollWidth)return e.scrollWidth;return 0;},getScrollH:function(e){e=e || document;if($LBe.ua.ie && $LBe.ua.ie<7 && e.body && e.body.scrollHeight)return e.body.scrollHeight;if(e.documentElement && e.documentElement.scrollHeight)return e.documentElement.scrollHeight;if(e.scrollHeight)return e.scrollHeight;return 0;},getScrollWH:function(e){return {w:$Aud.getScrollW(e),h:$Aud.getScrollH(e)};},getScrollXYWH:function(e){return {x:$Aud.getScrollX(e),y:$Aud.getScrollY(e),w:$Aud.getScrollW(e),h:$Aud.getScrollH(e)};},setScrollX:function(x,e){e=e || document;x=0+parseInt(x);try{if(e.body && (e.body.scrollLeft || e.body.scrollLeft===0))e.body.scrollLeft=x;}catch(X){}try{if(e.documentElement && (e.documentElement.scrollLeft || e.documentElement.scrollLeft===0))e.documentElement.scrollLeft=x;}catch(X){}try{if(e.scrollLeft || e.scrollLeft===0)e.scrollLeft=x;}catch(X){}},setScrollY:function(y,e){e=e || document;y=0+parseInt(y);try{if(e.body && (e.body.scrollTop || e.body.scrollTop===0))e.body.scrollTop=y;}catch(X){}try{if(e.documentElement && (e.documentElement.scrollTop || e.documentElement.scrollTop===0))e.documentElement.scrollTop=y;}catch(X){}try{if(e.scrollTop || e.scrollTop===0)e.scrollTop=y;}catch(X){}},setScrollXY:function(x,y,e){$Aud.setScrollX(x,e);$Aud.setScrollY(y,e);},getOffsetX:function(e){return e.offsetLeft;},getOffsetY:function(e){return e.offsetTop;},getOffsetXY:function(e){return {x:$Aud.getOffsetX(e),y:$Aud.getOffsetY(e)};},getDocumentX:function(e){if((e.parentNode===null || e.offsetParent===null || $Aud.getStyle(e,'display')=='none') && e!=document.body)return false;if(e.getBoundingClientRect)return e.getBoundingClientRect().left+$Aud.getScrollX($Aud.getDocument(e));var x=e.offsetLeft;p=e.offsetParent;var a=$Aud.getStyle(e,'position')=='absolute';if(p!=e)while(p){x+=p.offsetLeft;if($LBe.ua.wk && !a &&  $Aud.getStyle(p,'position')=='absolute')a=true;p=p.offsetParent;}if($LBe.ua.wk && a)x-=$Aud.getDocument(e).body.offsetLeft;p=e.parentNode;while(p.tagName && !(/^body|html$/i.test(p.tagName))) {if((''+$Aud.getComputedStyle(p,'display')).search(/^inline|table-row.*$/i))x-=$Aud.getScrollX(p);p=p.parentNode;}return x;},getDocumentY:function(e){if((e.parentNode===null || e.offsetParent===null || $Aud.getStyle(e,'display')=='none') && e!=document.body)return false;if(e.getBoundingClientRect)return e.getBoundingClientRect().top+$Aud.getScrollY($Aud.getDocument(e));var y=e.offsetTop;p=e.offsetParent;var a=$Aud.getStyle(e,'position')=='absolute';if(p!=e)while(p){y+=p.offsetTop;if($LBe.ua.wk && !a &&  $Aud.getStyle(p,'position')=='absolute')a=true;p=p.offsetParent;}if($LBe.ua.wk && a)y-=$Aud.getDocument(e).body.offsetTop;p=e.parentNode;while(p.tagName && !(/^body|html$/i.test(p.tagName))) {if((''+$Aud.getComputedStyle(p,'display')).search(/^inline|table-row.*$/i))y-=$Aud.getScrollY(p);p=p.parentNode;}return y;},getDocumentXY:function(e){return {x:$Aud.getDocumentX(e),y:$Aud.getDocumentY(e)};},getClientX:function(e){if((e.parentNode===null || e.offsetParent===null || $Aud.getStyle(e,'display')=='none') && e!=document.body)return false;return $Aud.getDocumentX(e)-$Aud.getScrollX(e?$Aud.getDocument(e):null);},getClientY:function(e){if((e.parentNode===null || e.offsetParent===null || $Aud.getStyle(e,'display')=='none') && e!=document.body)return false;return $Aud.getDocumentY(e)-$Aud.getScrollY(e?$Aud.getDocument(e):null);},getClientXY:function(e){return {x:$Aud.getClientX(e),y:$Aud.getClientY(e)};},getClientW:function(d,t){d=d || document;var w=$Aud.getWindow(d);if(w.innerWidth || w.innerWidth===0)return w.innerWidth;if($LBe.ua.ie && $LBe.ua.ie<7 && d.body && (d.body.clientWidth || d.body.clientWidth===0))return d.body.clientWidth;if(d.documentElement && d.documentElement.clientWidth)return d.documentElement.clientWidth;return 0;},getClientH:function(d){d=d || document;var w=$Aud.getWindow(d);if(w.innerHeight || w.innerHeight===0)return w.innerHeight;if($LBe.ua.ie && $LBe.ua.ie<7 && d.body && (d.body.clientHeight || d.body.clientHeight===0))return d.body.clientHeight;if(d.documentElement && d.documentElement.clientHeight)return d.documentElement.clientHeight;return 0;},getClientWH:function(d){return {w:$Aud.getClientW(d),h:$Aud.getClientH(d)};},getDocumentW:function(d){return Math.max($Aud.getScrollW(d),$Aud.getClientW(d));},getDocumentH:function(d){return Math.max($Aud.getScrollH(d),$Aud.getClientH(d));},getDocumentWH:function(d){return {w:$Aud.getDocumentW(d),h:$Aud.getDocumentH(d)};},getElementW:function(e){return e.offsetWidth;},getElementH:function(e){return e.offsetHeight;},getElementWH:function(e){return {w:$Aud.getElementW(e),h:$Aud.getElementH(e)};},setElementW:function(e,w,r){w=0+w;if(w<1)w=1;try{e.style.width=w+'px';}catch(X){}if(!r){var d=e.offsetWidth;if(w!=d)$Aud.setElementW(e,2*w-d,true);}},setElementH:function(e,h,r){h=0+h;if(h<1)h=1;try{e.style.height=h+'px';}catch(X){}if(!r){var d=e.offsetHeight;if(h!=d)$Aud.setElementH(e,2*h-d,true);}},setElementWH:function(e,w,h){$Aud.setElementW(e,w);$Aud.setElementH(e,h);},setDocumentX:function(e,x,r){x=0+x;var s=$Aud.getStyle(e,'position');if(!s || s=='' || s=='static'){$Aud.setStyle(e,'position','relative');s='relative';}var p=$Aud.getDocumentX(e),d=parseInt($Aud.getStyle(e,'left'),10);if(!$Au.isNumber(d))d=s=='relative'?0:e.offsetLeft;try{e.style.left=(x-p+d)+'px';}catch(X){}if(!r){p=$Aud.getDocumentX(e);if(p!=x)$Aud.setDocumentX(e,x,true);}},setDocumentY:function(e,y,r){y=0+y;var s=$Aud.getStyle(e,'position');if(!s || s=='' || s=='static'){$Aud.setStyle(e,'position','relative');s='relative';}var p=$Aud.getDocumentY(e),d=parseInt($Aud.getStyle(e,'top'),10);if(!$Au.isNumber(d))d=s=='relative'?0:e.offsetTop;try{e.style.top=(y-p+d)+'px';}catch(X){}if(!r){p=$Aud.getDocumentY(e);if(p!=y)$Aud.setDocumentY(e,y,true);}},setDocumentXY:function(e,x,y){$Aud.setDocumentX(e,x);$Aud.setDocumentY(e,y);},setClientX:function(e,x,r){x=0+x;var s=$Aud.getStyle(e,'position');if(!s || s=='' || s=='static'){$Aud.setStyle(e,'position','relative');s='relative';}var p=$Aud.getClientX(e),s=$Aud.getScrollX(e),d=parseInt($Aud.getStyle(e,'left'),10);if(!$Au.isNumber(d))d=s=='relative'?0:e.offsetLeft;try{e.style.left=(x-p+d+s)+'px';}catch(X){}if(!r){p=$Aud.getClientX(e);if(p!=x)$Aud.setClientX(e,x,true);}},setClientY:function(e,y,r){y=0+y;var s=$Aud.getStyle(e,'position');if(!s || s=='' || s=='static'){$Aud.setStyle(e,'position','relative');s='relative';}var p=$Aud.getClientY(e),s=$Aud.getScrollY(e),d=parseInt($Aud.getStyle(e,'top'),10);if(!$Au.isNumber(d))d=s=='relative'?0:e.offsetTop;try{e.style.top=(y-p+d+s)+'px';}catch(X){}if(!r){p=$Aud.getClientY(e);if(p!=y)$Aud.setClientY(e,y,true);}},setClientXY:function(e,x,y){$Aud.setClientX(e,x);$Aud.setClientY(e,y);}};}();$=$Aud.getElementById;var $Aue=LOGBOOK.utl.evt=function(){var _domReady=false;var _loadComplete=false;var _listeners=[];var _unloadListeners=[];var _legacyEvents=[];var _legacyHandlers=[];var _legacyMap=[];var _retryCount=0;var _onAvailableListeners=[];var _wkKeymap={63232:38,63233:40,63234:37,63235:39};var _locked=false;return {POLL_RETRYS:4000,POLL_INTERVAL:10,EL:0,TYPE:1,FN:2,WFN:3,OBJ:3,ADJ_SCOPE:4,lastError:null,_interval:null,_startInterval:function(){if(!$Aue._interval){var t=$Aue;var c=function(){t._tryPreloadAttach();};$Aue._interval=setInterval(c,$Aue.POLL_INTERVAL);}},onAvailable:function(i,f,o,v){_onAvailableListeners.push({id:i,fn:f,obj:o,override:v,checkReady:false});_retryCount=$Aue.POLL_RETRYS;$Aue._startInterval();},onDomReady:function(f,o,v){if(_domReady){setTimeout(function(){var s=window;if(v){if(v===true)s=o;else s=v;}f.call(s,'DOMReady',[],o);},0);}else $Aue._domReadyEvent.subscribe(f,o,v);},onContentReady:function(i,f,o,v){_onAvailableListeners.push({id:i,fn:f,obj:o,override:v,checkReady:true});_retryCount=$Aue.POLL_RETRYS;$Aue._startInterval();},_domReadyEvent:new LOGBOOK.cls.CustomEvent('DOMReady',$Aue),_simpleAdd:function(){if(window.addEventListener){return function(e,t,f,c){e.addEventListener(t,f,(c));};}else if(window.attachEvent){return function(e,t,f,c){e.attachEvent('on'+t,f);};}else {return function(e,t,f,c){};}}(),_simpleRemove:function(){if(window.removeEventListener){return function(e,t,f,c){e.removeEventListener(t,f,(c));};}else if(window.detachEvent){return function(e,t,f,c){e.detachEvent('on'+t,f);};}else {return function(e,t,f,c){};}}(),getEvent:function(e){var e=e || window.event;if(!e){var c=$Aue.getEvent.caller;while(c){e=c.arguments[0];if(e && e.constructor==Event)break;c=c.caller;}}return e;},getTarget:function(e){e=$Aue.getEvent(e);var t=e.target || e.srcElement;return $Aud.getTextElement(t);},getRelatedTarget:function(e){e=$Aue.getEvent(e);var t=e.relatedTarget;if(!t){if(e.type=='mouseout')t=e.toElement;else if(e.type=='mouseover')t=e.fromElement;}return $Aud.getTextElement(t);},getTime:function(e){e=$Aue.getEvent(e);if(!e.time){var t=new Date().getTime();try{e.time=t;}catch(X){ $Aue.lastError=X;return t;}}return e.time;},getDocumentX:function(e){e=$Aue.getEvent(e);var p=e.pageX,c=e.clientX;if(!p && p!==0)r=c+$Aud.getScrollX();else r=p;return r;},getDocumentY:function(e){e=$Aue.getEvent(e);var p=e.pageY,c=e.clientY;if(!p && p!==0)r=c+$Aud.getScrollY();else r=p;return r;},getDocumentXY:function(e){return {x:$Aue.getDocumentX(e),y:$Aue.getDocumentY(e)};},getClientX:function(e){e=$Aue.getEvent(e);var p=e.pageX,c=e.clientX;if(!c && c!==0)r=p-$Aud.getScrollX();else r=c;if($LBe.ua.ie){if($Aud.getDir()=='rtl')r-=15;else r-=2;}return r;},getClientY:function(e){e=$Aue.getEvent(e);var p=e.pageY,c=e.clientY;if(!c && c!==0)r=p-$Aud.getScrollY();else r=c;if($LBe.ua.ie)r-=2;return r;},getClientXY:function(e){return {x:$Aue.getClientX(e),y:$Aue.getClientY(e)};},getCharCode:function(e){e=$Aue.getEvent(e);var c=e.keyCode || e.charCode || 0;if($LBe.ua.wk && (c in _wkKeymap))c=_wkKeymap[c];return c;},stopEvent:function(e){$Aue.stopPropagation(e);$Aue.preventDefault(e);},stopPropagation:function(e){if(e.stopPropagation)e.stopPropagation();else e.cancelBubble=true;},preventDefault:function(e){if(e.preventDefault)e.preventDefault();else e.returnValue=false;},_isValidCollection:function(o){try{return (o&& o.length&& typeof o!='string'&& !o.tagName&& !o.alert&& typeof o[0]!='undefined');}catch(X){return false;}},addListener:function(e,t,f,o,v){if(!f || !f.call)return false;if($Aue._isValidCollection(e)){var r=true;for(var i=0,l=e.length;i<l;i++)r=$Aue.addListener(e[i],t,f,o,v) && r;return r;}else if($Au.isString(e)){var g=$Aud.getElementById(e);if(g)e=g;else {$Aue.onAvailable(e,function(){$Aue.addListener(e,t,f,o,v);});return true;}}if(!e)return false;if(t=='unload' && o!==$Aue){_unloadListeners[_unloadListeners.length]=[e,t,f,o,v];return true;}var s=e;if(v){if(v===true)s=o;else s=v;}var w=function(p){return f.call(s,$Aue.getEvent(p),o);};var a=[e,t,f,w,s];var i=_listeners.length;_listeners[i]=a;if($Aue._useLegacyEvent(e,t)){var i=$Aue._getLegacyIndex(e,t);if(i==-1 || _legacyEvents[i][$Aue.EL]!=e){i=_legacyEvents.length;_legacyMap[e.id+t]=i;_legacyEvents[i]=[e,t,e['on'+t]];_legacyHandlers[i]=[];e['on'+t]=function(p){$Aue._fireLegacyEvent($Aue.getEvent(p),i);};}_legacyHandlers[i].push(a);}else {try{$Aue._simpleAdd(e,t,w,false);}catch(X){$Aue.lastError=X;$Aue.removeListener(e,t,f);return false;}}return true;},removeListener:function(e,t,f){var i,l;if($Au.isString(e))e=$Aud.getElementById(e);else if($Aue._isValidCollection(e)){var r=true;for(i=0,l=e.length;i<l;i++)r=$Aue.removeListener(e[i],t,f) && r;return r;}if(!f || !f.call)return $Aue.purgeElement(e,false,t);if(t=='unload'){for(i=0,l=_unloadListeners.l;i<l;i++){var j=_unloadListeners[i];if(j && j[$Aue.EL]==e && j[$Aue.TYPE]==t && j[$Aue.FN]==f){_unloadListeners[i]=null;return true;}}return false;}var c=null;var i=arguments[3];if(typeof i=='undefined')i=$Aue._getCacheIndex(e,t,f);if(i>=0)c=_listeners[i];if(!e || !c)return false;if($Aue._useLegacyEvent(e,t)){var j=$Aue._getLegacyIndex(e,t);var a=_legacyHandlers[j];if(a){for(i=0,l=a.length;i<l;i++){k=a[i];if(k && k[$Aue.EL]==e && k[$Aue.TYPE]==t && k[$Aue.FN]==f){a[i]=null;break;}}}}else {try{$Aue._simpleRemove(e,t,c[$Aue.WFN],false);}catch(X){$Aue.lastError=X;return false;}}delete _listeners[i][$Aue.WFN];delete _listeners[i][$Aue.FN];_listeners[i]=null;return true;},_getID:function(e){var r=e.id;if(!r)e.id=r=$Au.getUID('evt');return r;},_getCacheIndex:function(e,t,f){for(var i=0,l=listeners.length;i<l;i++){var a=listeners[i];if(a && a[$Aue.FN]==f && a[$Aue.EL]==e && a[$Aue.TYPE]==t)return i;}return-1;},_fireLegacyEvent:function(e,i){var r=true,e,h=_legacyHandlers[i],j,s,u;for(var k=0,l=h.length;k<l;k++){j=h[k];if(j && j[$Aue.WFN]){s=j[$Aue.ADJ_SCOPE];u=j[$Aue.WFN].call(s,e);r=r && u;}}v=_legacyEvents[i];if(e && e[2])e[2](v);return r;},_getLegacyIndex:function(e,t){var k=$Aue._getID(e)+y;if(typeof _legacyMap[k]=='undefined')return-1;return _legacyMap[k];},_useLegacyEvent:function(e,t){var wk=$LBe.ua.wk;if(wk && (t=='click' || t=='dblclick')){var v=parseInt(wk,10);if(!isNaN(v) && v<418)return true;}return false;},_ready:function(e){if(!_domReady){$Aud._init(e);_domReady=true;$Aue._domReadyEvent.fire();$Aue._simpleRemove(document,'DOMContentLoaded',$Aue._ready);}},_load:function(e){if(!_loadComplete){_loadComplete=true;$Aue._ready();$Aue._tryPreloadAttach();}},_unload:function(e){var i,j,k,l,m;for(i=0,k=_unloadListeners.length;i<k;i++){l=_unloadListeners[i];if(l){var s=window;if(l[$Aue.ADJ_SCOPE]){if(l[$Aue.ADJ_SCOPE]===true)s=l[$Aue.OBJ];else s=l[$Aue.ADJ_SCOPE];}l[$Aue.FN].call(s,$Aue.getEvent(e),l[$Aue.OBJ]);_unloadListeners[i]=null;l=null;s=null;}}_unloadListeners=null;if(_listeners && _listeners.length>0){j=_listeners.length;while(j){m=j-1;l=_listeners[k];if(l)$Aue.removeListener(l[$Aue.EL],l[$Aue.TYPE],l[$Aue.FN],m);j=j-1;}l=null;}for(i=0,k=_legacyEvents.length;i<k;i++){_legacyEvents[i][0]=null;_legacyEvents[i]=null;}_legacyEvents=null;for(i=$Aud._attributesToDestroyOnUnload.length-1;i>=0;i--){var j=$Aud._attributesToDestroyOnUnload[i];j[0][j[1]]=null;j[0]=null;}$Aue._simpleRemove(window,'unload',$Aue._unload);},_tryPreloadAttach:function(){if(_locked)return false;if($LBe.ua.ie>0 && !_domReady){$Aue._startInterval();return false;}_locked=true;var t=!_loadComplete,n=[],i,l,t,e,f=function (e,o){var s=e;if(o.override){if(o.override===true)s=o.obj;else s=o.override;}o.fn.call(s,o.obj);};if(!t)t=(_retryCount>0);for(i=0,l=_onAvailableListeners.length;i<l;i++){t=_onAvailableListeners[i];if(t && !t.checkReady){e=$Aud.getElementById(t.id);if(e){f(e,t);_onAvailableListeners[i]=null;}else n.push(t);}}for(i=0,l=_onAvailableListeners.length;i<l;i++){t=_onAvailableListeners[i];if(t && t.checkReady){e=$Aud.getElementById(t.id);if(e){if(_loadComplete || e.nextSibling){f(e,t);_onAvailableListeners[i]=null;}}else n.push(t);}}_retryCount=(n.length===0)?0:_retryCount-1;if(t)$Aue._startInterval();else {clearInterval($Aue._interval);$Aue._interval=null;}_locked=false;return true;},getListeners:function(e,t){var r=[],s;if(!t)s=[_listeners,_unloadListeners];else if(t=='unload')s=[_unloadListeners];else s=[_listeners];for(var j=0;j<s.length;j++){var a=s[j];if(a && a.length>0){for(var i=0,n=a.length;i<n;i++){var l=a[i];if(l  && l[$Aue.EL]===el && (!t || t===l[$Aue.TYPE]))r.push({type:l[$Aue.TYPE],fn:l[$Aue.FN],obj:l[$Aue.OBJ],adjust:l[$Aue.ADJ_SCOPE],index:i});}}}return (r.length)?r:null;},purgeElement:function(e,r,t){var a=$Aue.getListeners(e,t);if(a){for(var i=0,l=a.length;i<l;i++){var m=a[i];$Aue.removeListener(e,m.type,m.fn,m.index);}}if(r && e && e.childNodes){for(i=0,l=e.childNodes.length;i<l;i++)$Aue.purgeElement(e.childNodes[i],r,t);}}};}();if($LBe.ua.ie){$Aue.onDomReady($Aue._tryPreloadAttach,$Aue,true);document.write('<s'+'cript id="_LOGBOOK_utl_evt_defer" defer="true" src="//:"></s'+'cript>');e=document.getElementById('_LOGBOOK_utl_evt_defer');if(e){e.onreadystatechange=function(){if(this.readyState==='complete'){this.parentNode.removeChild(this);$Aue._ready();}};}e=null;}else if($LBe.ua.wk){$Aue._documentReadyWatcher=setInterval(function(){var r=document.readyState;if(r=='loaded' || r=='complete'){clearInterval($Aue._documentReadyWatcher);$Aue._documentReadyWatcher=null;$Aue._ready();}},$Aue._POLL_INTERVAL);}else $Aue._simpleAdd(document,'DOMContentLoaded',$Aue._ready);$Aue._simpleAdd(window,'load',$Aue._load);$Aue._simpleAdd(window,'unload',$Aue._unload);$Aue._tryPreloadAttach();var $Aua=LOGBOOK.utl.ahr=function(){var _msxmlhttp=null;var _msxmldom=null;if(typeof ActiveXObject!='undefined'){var pickActiveXVersion=function(v){for(var i=0;i<v.length;i++){try{var d=new ActiveXObject(v[i]);return v[i];}catch(X){};}return null;};_msxmlhttp=pickActiveXVersion(['Msxml2.XMLHTTP.6.0','Msxml2.XMLHTTP.5.0','Msxml2.XMLHTTP.4.0','MSXML2.XMLHTTP.3.0','MSXML2.XMLHTTP','MSXML.XMLHTTP','Microsoft.XMLHTTP']);_msxmldom=pickActiveXVersion(['MSXML2.DOMDocument.6.0','MSXML2.DOMDocument.5.0','MSXML2.DOMDocument.4.0','MSXML2.DOMDocument.3.0','MSXML2.DOMDocument','Microsoft.XMLDOM']);pickActiveXVersion=null;}return {XMLHTTP:_msxmlhttp,XMLDOM:_msxmldom,_http_headers:{},_has_http_headers:false,_use_default_post_header:true,_default_post_header:'application/x-www-form-urlencoded;charset=UTF-8',_use_default_xhr_header:true,_default_xhr_header:'XMLHttpRequest',_has_default_headers:true,_default_headers:{},_isFormSubmit:false,_isFileUpload:false,_formNode:null,_sFormData:null,_poll:{},_timeOut:{},_polling_interval:50,_transaction_id:0,_submitElementValue:null,_hasSubmitListener:(function() {if($Aue){$Aue.addListener(document,'click',function(e){var obj=$Aue.getTarget(e);if(obj.type=='submit')$Aua._submitElementValue=encodeURIComponent(obj.name)+'='+encodeURIComponent(obj.value);});return true;}return false;})(),startEvent:new $Ac.CustomEvent('start'),completeEvent:new $Ac.CustomEvent('complete'),successEvent:new $Ac.CustomEvent('success'),failureEvent:new $Ac.CustomEvent('failure'),uploadEvent:new $Ac.CustomEvent('upload'),abortEvent:new $Ac.CustomEvent('abort'),_customEvents:{onStart:['startEvent','start'],onComplete:['completeEvent','complete'],onSuccess:['successEvent','success'],onFailure:['failureEvent','failure'],onUpload:['uploadEvent','upload'],onAbort:['abortEvent','abort']},setDefaultPostHeader:function(b){this._use_default_post_header=b;},setDefaultXhrHeader:function(b){this._use_default_xhr_header=b;},setPollingInterval:function(i){if(typeof i=='number' && isFinite(i))this._polling_interval=i;},createXhrObject:function(transactionId){if(typeof XMLHttpRequest!='undefined'){try{return {conn:new XMLHttpRequest(),tId:transactionId};}catch (X){};}if(typeof ActiveXObject!='undefined'){try{return {conn:new ActiveXObject(this.XMLHTTP),tId:transactionId};}catch (X){};}return null;},getConnectionObject:function(isFileUpload){var o,tId=this._transaction_id;try{if(!isFileUpload)o=this.createXhrObject(tId);else o={tId:tId,isUpload:true};if(o)this._transaction_id++;}catch(X){}return o;},asyncRequest:function(method,uri,callback,postData){var o=(this._isFileUpload)?this.getConnectionObject(true):this.getConnectionObject();if(!o)return null;else{if(callback && callback.customevents)this.initCustomEvents(o,callback);if(this._isFormSubmit){if(this._isFileUpload){this.uploadFile(o,callback,uri,postData);return o;}if(method.toUpperCase()=='GET'){if(this._sFormData.length!==0)uri+=((uri.indexOf('?')==-1)?'?':'&')+this._sFormData;else uri+="?"+this._sFormData;}else if(method.toUpperCase()=='POST')postData=postData?this._sFormData+"&"+postData:this._sFormData;}o.conn.open(method,uri,true);if(this._use_default_xhr_header && !this._default_headers['X-Requested-With'])this.initHeader('X-Requested-With',this._default_xhr_header,true);if(this._isFormSubmit || (postData && this._use_default_post_header)){this.initHeader('Content-Type',this._default_post_header);if(this._isFormSubmit)this.resetFormState();}if(this._has_default_headers || this._has_http_headers)this.setHeader(o);this.handleReadyState(o,callback);o.conn.send(postData || null);this.startEvent.fire(o);if(o.startEvent)o.startEvent.fire(o);return o;}},initCustomEvents:function(o,callback){for(var prop in callback.customevents){if(this._customEvents[prop][0]){o[this._customEvents[prop][0]]=new $Ac.CustomEvent(this._customEvents[prop][1],(callback.scope)?callback.scope:null);o[this._customEvents[prop][0]].subscribe(callback.customevents[prop]);}}},handleReadyState:function(o,callback){var oConn=this;if(callback && callback.timeout)this._timeOut[o.tId]=window.setTimeout(function(){oConn.abort(o,callback,true);},callback.timeout);this._poll[o.tId]=window.setInterval(function(){if(o.conn && o.conn.readyState===4){window.clearInterval(oConn._poll[o.tId]);delete oConn._poll[o.tId];if(callback && callback.timeout){window.clearTimeout(oConn._timeOut[o.tId]);delete oConn._timeOut[o.tId];}oConn.completeEvent.fire(o);if(o.completeEvent)o.completeEvent.fire(o);oConn.handleTransactionResponse(o,callback);}},this._polling_interval);},handleTransactionResponse:function(o,callback,isAbort){if(!callback){this.releaseObject(o);return;}var httpStatus,responseObject;try{if(o.conn.status!==undefined && o.conn.status!==0)httpStatus=o.conn.status;else httpStatus=13030;}catch(X){httpStatus=13030;}if(httpStatus>=200 && httpStatus<300 || httpStatus===1223){responseObject=this.createResponseObject(o,callback.argument);if(callback.success){if(!callback.scope)callback.success(responseObject);else callback.success.apply(callback.scope,[responseObject]);}this.successEvent.fire(responseObject);if(o.successEvent)o.successEvent.fire(responseObject);}else {switch(httpStatus){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:responseObject=this.createExceptionObject(o.tId,callback.argument,(isAbort?isAbort:false));if(callback.failure){if(!callback.scope)callback.failure(responseObject);else callback.failure.apply(callback.scope,[responseObject]);}break;default:responseObject=this.createResponseObject(o,callback.argument);if(callback.failure){if(!callback.scope)callback.failure(responseObject);else callback.failure.apply(callback.scope,[responseObject]);}}this.failureEvent.fire(responseObject);if(o.failureEvent)o.failureEvent.fire(responseObject);}this.releaseObject(o);responseObject=null;},createResponseObject:function(o,callbackArg){var obj={};var headerObj={};try{var headerStr=o.conn.getAllResponseHeaders();var header=headerStr.split('\n');for(var i=0;i<header.length;i++){var delimitPos=header[i].indexOf(':');if(delimitPos!=-1)headerObj[header[i].substring(0,delimitPos)]=header[i].substring(delimitPos+2);}}catch(X){}obj.tId=o.tId;obj.status=(o.conn.status==1223)?204:o.conn.status;obj.statusText=(o.conn.status==1223)?'No Content':o.conn.statusText;obj.getResponseHeader=headerObj;obj.getAllResponseHeaders=headerStr;obj.responseText=o.conn.responseText;obj.responseXML=o.conn.responseXML;if(typeof callbackArg!==undefined)obj.argument=callbackArg;return obj;},createExceptionObject:function(tId,callbackArg,isAbort){var COMM_CODE=0;var COMM_ERROR='communication failure';var ABORT_CODE=-1;var ABORT_ERROR='transaction aborted';var obj={};obj.tId=tId;if(isAbort){obj.status=ABORT_CODE;obj.statusText=ABORT_ERROR;}else{obj.status=COMM_CODE;obj.statusText=COMM_ERROR;}if(callbackArg)obj.argument=callbackArg;return obj;},initHeader:function(label,value,isDefault){var headerObj=(isDefault)?this._default_headers:this._http_headers;if(headerObj[label]===undefined)headerObj[label]=value;else headerObj[label]=value+','+headerObj[label];if(isDefault)this._has_default_headers=true;else this._has_http_headers=true;},setHeader:function(o){if(this._has_http_headers){delete this._http_headers;this._http_headers={};this._has_http_headers=false;}},resetDefaultHeaders:function(){delete this._default_headers;this._default_headers={};this._has_default_headers=false;},setForm:function(formId,isUpload,secureUri){this.resetFormState();var oForm;if(typeof formId=='string')oForm=(document.getElementById(formId) || document.forms[formId]);else if(typeof formId=='object')oForm=formId;else return;if(isUpload){var io=this.createFrame(secureUri?secureUri:null);this._isFormSubmit=true;this._isFileUpload=true;this._formNode = oForm;return;}var oElement,oName,oValue,oDisabled;var hasSubmit=false;for(var i=0;i<oForm.elements.length;i++){oElement=oForm.elements[i];oDisabled=oForm.elements[i].disabled;oName=oForm.elements[i].name;oValue=oForm.elements[i].value;if(!oDisabled && oName){switch(oElement.type){case 'select-one':case 'select-multiple':for(var j=0;j<oElement.options.length;j++)if(oElement.options[j].selected){if(window.ActiveXObject)this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oElement.options[j].attributes['value'].specified?oElement.options[j].value:oElement.options[j].text)+'&';else this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oElement.options[j].hasAttribute('value')?oElement.options[j].value:oElement.options[j].text)+'&';}break;case 'radio':case 'checkbox':if(oElement.checked)this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oValue)+'&';break;case 'file':case undefined:case 'reset':case 'button':break;case 'submit':if(hasSubmit===false){if(this._hasSubmitListener && this._submitElementValue)this._sFormData+=this._submitElementValue+'&';else this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oValue)+'&';hasSubmit=true;}break;default:this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oValue)+'&';}}}this._isFormSubmit=true;this._sFormData=this._sFormData.substr(0,this._sFormData.length-1);return this._sFormData;},resetFormState:function(){this._isFormSubmit=false;this._isFileUpload=false;this._formNode=null;this._sFormData='';},createFrame:function(secureUri){var frameId='lbuilO'+this._transaction_id;var io;if(window.ActiveXObject){io=document.createElement('<iframe id="'+frameId+'" name="'+frameId+'"/>');if(typeof secureUri=='boolean')io.src='javascript:false';else if(typeof secureURI=='string')io.src=secureUri;}else{io=document.createElement('iframe');io.id=frameId;io.name=frameId;}io.style.position='absolute';io.style.top='-1000px';io.style.left='-1000px';document.body.appendChild(io);},appendPostData:function(postData){var formElements=[];var postMessage=postData.split('&');for(var i=0;i<postMessage.length;i++){var delimitPos=postMessage[i].indexOf('=');if(delimitPos!=-1){formElements[i]=document.createElement('input');formElements[i].type='hidden';formElements[i].name=postMessage[i].substring(0,delimitPos);formElements[i].value=postMessage[i].substring(delimitPos+1);this._formNode.appendChild(formElements[i]);}}return formElements;},uploadFile:function(o,callback,uri,postData){var frameId='lbuilO'+o.tId;var uploadEncoding='multipart/form-data';var io=document.getElementById(frameId);var oConn=this;var rawFormAttributes={action:this._formNode.getAttribute('action'),method:this._formNode.getAttribute('method'),target:this._formNode.getAttribute('target')};this._formNode.setAttribute('action',uri);this._formNode.setAttribute('method','POST');this._formNode.setAttribute('target',frameId);if(this._formNode.encoding)this._formNode.setAttribute('encoding',uploadEncoding);else this._formNode.setAttribute('enctype',uploadEncoding);if(postData)var oElements=this.appendPostData(postData);this._formNode.submit();this.startEvent.fire(o);if(o.startEvent)o.startEvent.fire(o);if(callback && callback.timeout)this._timeOut[o.tId]=window.setTimeout(function(){oConn.abort(o,callback,true);},callback.timeout);if(oElements && oElements.length>0)for(var i=0;i<oElements.length;i++)this._formNode.removeChild(oElements[i]);this.resetFormState();var uploadCallback=function(){if(callback && callback.timeout){window.clearTimeout(oConn._timeOut[o.tId]);delete oConn._timeOut[o.tId];}oConn.completeEvent.fire(o);if(o.completeEvent)o.completeEvent.fire(o);var obj={};obj.tId=o.tId;obj.argument=callback.argument;try{obj.responseText=io.contentWindow.document.body?io.contentWindow.document.body.innerHTML:io.contentWindow.document.documentElement.textContent;obj.responseXML=io.contentWindow.document.XMLDocument?io.contentWindow.document.XMLDocument:io.contentWindow.document;}catch(X){}if(callback && callback.upload){if(!callback.scope)callback.upload(obj);else callback.upload.apply(callback.scope,[obj]);}oConn.uploadEvent.fire(obj);if(o.uploadEvent)o.uploadEvent.fire(obj);if($Aue)$Aue.removeListener(io,'load',uploadCallback);else if(window.detachEvent)io.detachEvent('onload',uploadCallback);else io.removeEventListener('load',uploadCallback,false);setTimeout(function(){document.body.removeChild(io);oConn.releaseObject(o);},100);};if($Aue)$Aue.addListener(io,'load',uploadCallback);else if(window.attachEvent)io.attachEvent('onload',uploadCallback);else io.addEventListener('load',uploadCallback,false);},abort:function(o,callback,isTimeout){var abortStatus;if(o.conn){if(this.isCallInProgress(o)){o.conn.abort();window.clearInterval(this._poll[o.tId]);delete this._poll[o.tId];if(isTimeout){window.clearTimeout(this._timeOut[o.tId]);delete this._timeOut[o.tId];}abortStatus=true;}}else if(o.isUpload===true){var frameId='lbuilO'+o.tId;var io=document.getElementById(frameId);if(io){document.body.removeChild(io);if(isTimeout){window.clearTimeout(this._timeOut[o.tId]);delete this._timeOut[o.tId];}abortStatus=true;}}else abortStatus=false;if(abortStatus===true){this.abortEvent.fire(o);if(o.abortEvent)o.abortEvent.fire(o);this.handleTransactionResponse(o,callback,true);}return abortStatus;},isCallInProgress:function(o){if(o && o.conn)return o.conn.readyState!==4 && o.conn.readyState!==0;else if(o && o.isUpload===true){var frameId='lbuilO'+o.tId;return document.getElementById(frameId)?true:false;}else return false;},releaseObject:function(o){if(o.conn)o.conn=null;o=null;}};}();$Au.register('LogBook',LOGBOOK);
