Project

General

Profile

Bug #1318

Wt internal error: Uncaught SyntaxError: Unexpected token )

Added by Gaetano Mendola over 8 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Target version:
Start date:
06/06/2012
Due date:
% Done:

0%

Estimated time:

Description

Hi all, I'm getting the error in subject, it's following the javascript giving the error,
the application is drawing a chart I guess it happens when some specific values
(may be NaN?) are passed to it. I will investigate if I can find those values.

if (typeof window.$ === 'undefined') {/*!

  • jQuery JavaScript Library v1.4b1pre
  • http://jquery.com/ *
  • Copyright 2010, John Resig
  • Dual licensed under the MIT or GPL Version 2 licenses.
  • http://docs.jquery.com/License *
  • Includes Sizzle.js
  • http://sizzlejs.com/
  • Copyright 2010, The Dojo Foundation
  • Released under the MIT, BSD, and GPL Licenses. *
  • Date: Thu Jan 7 14:26:06 2010 -0500 / (function(z,w){function la(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(la,1);return}c.ready()}}function Ia(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function Z(a,b,d,e,g,i){var k=a.length;if(typeof b==="object"){for(var o in b)Z(a,o,b[o],e,g,d);return a}if(d!==w){e=e&&c.isFunction(d);for(o=0;o-1){i=k.data;i.beforeFilter&&i.beforeFilter[a.type]&&!i.beforeFiltera.type||e.push(k.selector)}else delete u[p]}i=c(a.target).closest(e,a.currentTarget); n=0;for(l=i.length;n<l;n++)for(p in u){k=u[p];o=i[n].elem;e=null;if(i[n].selector===k.selector){if(k.live==="mouseenter"||k.live==="mouseleave")e=c(a.relatedTarget).closest(k.selector)[0];if(!e||e!==o)d.push({elem:o,fn:k})}}n=0;for(l=d.length;n<l;n++){i=d[n];a.currentTarget=i.elem;a.data=i.fn.data;if(i.fn.apply(i.elem,g)===false){b=false;break}}return b}function oa(a,b){return["live",a,b.replace(/./g,"`").replace(/ /g,"&")].join(".")}function pa(a,b){var d=0;b.each(function(){if(this.nodeName=== (a[d]&&a[d].nodeName)){var e=c.data(a[d++]),g=c.data(this,e);if(e=e&&e.events){delete g.handle;g.events={};for(var i in e)for(var k in e[i])c.event.add(this,i,e[i][k],e[i][k].data)}}})}function qa(a,b,d){var e,g,i;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&a[0].indexOf("<option")<0){g=true;if(i=c.fragments[a[0]])if(i!==1)e=i}if(!e){b=b&&b[0]?b[0].ownerDocument||b[0]:s;e=b.createDocumentFragment();c.clean(a,b,e,d)}if(g)c.fragments[a[0]]=i?e:1;return{fragment:e,cacheable:g}}function R(a){for(var b= 0,d,e;(d=a[b])!=null;b++)if(!c.noData[d.nodeName.toLowerCase()]&&(e=d[E]))delete c.cache[e]}function I(a,b){var d={};c.each(ra.concat.apply([],ra.slice(0,b)),function(){d[this]=a});return d}function sa(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var c=function(a,b){return new c.fn.init(a,b)},Ja=z.jQuery,Ka=z.$,s=z.document,S,La=/[<](<[\w\W]+>)[>]$|#([\w-]+)$/,Ma=/.[:#[.,]$/,Na=/\S/,Oa=/\|\u00A0)+|(\s|\u00A0)+$/g,Pa=/<(\w+)\s*\/?>(?:<\/\1>)?$/, N=navigator.userAgent,ta=false,O=[],J,ba=Object.prototype.toString,ca=Object.prototype.hasOwnProperty,da=Array.prototype.push,P=Array.prototype.slice,T=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,e;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(typeof a==="string")if((d=La.exec(a))&&(d[1]||!b))if(d[1]){e=b?b.ownerDocument||b:s;if(a=Pa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[e.createElement(a[1])]; else{a=qa([d[1]],[e]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}}else{if(b=s.getElementById(d[2])){if(b.id!==d[2])return S.find(a);this.length=1;this[0]=b}this.context=s;this.selector=a;return this}else if(!b&&/\w+$/.test(a)){this.selector=a;this.context=s;a=s.getElementsByTagName(a)}else return!b||b.jquery?(b||S).find(a):c(b).find(a);else if(c.isFunction(a))return S.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.isArray(a)?this.setArray(a): c.makeArray(a,this)},selector:"",jquery:"1.4b1pre",length:0,size:function(){return this.length},toArray:function(){return P.call(this,0)},get:function(a){return a==null?this.toArray():aa";var g=d.getElementsByTagName(""),i=d.getElementsByTagName("a")[0];if(!(!g||!g.length||!i)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(i.getAttribute("style")), hrefNormalized:i.getAttribute("href")==="/a",opacity:/0.55$/.test(i.style.opacity),cssFloat:!!i.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+e+"=1;"))}catch(k){}a.insertBefore(b,a.firstChild);if(z[e]){c.support.scriptEval=true;delete z[e]}a.removeChild(b);if(d.attachEvent&& d.fireEvent){d.attachEvent("onclick",function o(){c.support.noCloneEvent=false;d.detachEvent("onclick",o)});d.cloneNode(true).fireEvent("onclick")}c(function(){var o=s.createElement("div");o.style.width=o.style.paddingLeft="1px";s.body.appendChild(o);c.boxModel=c.support.boxModel=o.offsetWidth===2;s.body.removeChild(o).style.display="none"});a=function(o){var p=s.createElement("div");o="on"+o;var n=o in p;if(!n){p.setAttribute(o,"return;");n=typeof p[o]==="function"}return n};c.support.submitBubbles= a("submit");c.support.changeBubbles=a("change");a=b=d=g=i=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var e=c.data(a,b);if(!d)return e||[];if(!e||c.isArray(d))e=c.data(a,b,c.makeArray(d));else e.push(d);return e}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b), e=d.shift();if(e==="inprogress")e=d.shift();if(e){b==="fx"&&d.unshift("inprogress");e.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===w)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d, b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Qa=function(a){return a.replace(/[\w\s.|`]/g,function(b){return"\"+b})};c.event={add:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==z&&!a.frameElement)a=z;if(!d.guid)d.guid=c.guid++;if(e!==w){d=c.proxy(d);d.data=e}var g=c.data(a,"events")||c.data(a,"events",{}),i=c.data(a,"handle"),k;if(!i){k=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(k.elem,arguments):w}; i=c.data(a,"handle",k)}i.elem=a;b=b.split(/\s+/);for(var o,p=0;o=b[p++];){var n=o.split(".");o=n.shift();d.type=n.slice(0).sort().join(".");var u=g[o],y=this.special[o]||{};if(!u){u=g[o]={};if(!y.setup||y.setup.call(a,e,n,d)===false)if(a.addEventListener)a.addEventListener(o,i,false);else a.attachEvent&&a.attachEvent("on"+o,i)}if(y.add)if((n=y.add.call(a,d,e,n,u))&&c.isFunction(n)){n.guid=n.guid||d.guid;d=n}u[d.guid]=d;this.global[o]=true}a=null}},global:{},remove:function(a,b,d){if(!(a.nodeType=== 3||a.nodeType===8)){var e=c.data(a,"events"),g,i,k;if(e){if(b===w||typeof b==="string"&&b.charAt(0)===".")for(i in e)this.remove(a,i+(b||""));else{if(b.type){d=b.handler;b=b.type}b=b.split(/\s+/);for(var o=0;i=b[o++];){var p=i.split(".");i=p.shift();var n=!p.length,u=c.map(p.slice(0).sort(),Qa);u=new RegExp("(|\.)"+u.join("\.(?:.\.)?")+"(\.|$)");var y=this.special[i]||{};if(e[i]){if(d){k=e[i][d.guid];delete e[i][d.guid]}else for(var A in e[i])if(n||u.test(e[i][A].type))delete e[i][A];y.remove&& y.remove.call(a,p,k);for(g in e[i])break;if(!g){if(!y.teardown||y.teardown.call(a,p)===false)if(a.removeEventListener)a.removeEventListener(i,c.data(a,"handle"),false);else a.detachEvent&&a.detachEvent("on"+i,c.data(a,"handle"));g=null;delete e[i]}}}}for(g in e)break;if(!g){if(A=c.data(a,"handle"))A.elem=null;c.removeData(a,"events");c.removeData(a,"handle")}}}},trigger:function(a,b,d,e){var g=a.type||a;if(!e){a=typeof a==="object"?a[E]?a:c.extend(c.Event(g),a):c.Event(g);if(g.indexOf("!")>=0){a.type= g=g.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();this.global[g]&&c.each(c.cache,function(){this.events&&this.events[g]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return w;a.result=w;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;var i=c.data(d,"handle");i&&i.apply(d,b);var k,o;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()])){k=d[g];o=d["on"+g]}}catch(p){}i=c.nodeName(d,"a")&&g==="click";if(!e&&k&&!a.isDefaultPrevented()&&!i){this.triggered= true;try{dg}catch(n){}}else if(o&&d["on"+g].apply(d,b)===false)a.result=false;this.triggered=false;if(!a.isPropagationStopped())(d=d.parentNode||d.ownerDocument)&&c.event.trigger(a,b,d,true)},handle:function(a){var b,d;a=arguments[0]=c.event.fix(a||z.event);a.currentTarget=this;d=a.type.split(".");a.type=d.shift();b=!d.length&&!a.exclusive;var e=new RegExp("(|\.)"+d.slice(0).sort().join("\.(?:.*\.)?")+"(\.|$)");d=(c.data(this,"events")||{})[a.type];for(var g in d){var i=d[g];if(b||e.test(i.type)){a.handler= i;a.data=i.data;i=i.apply(this,arguments);if(i!==w){a.result=i;if(i===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "), fix:function(a){if(a[E])return a;var b=a;a=c.Event(b);for(var d=this.props.length,e;d;){e=this.props[--d];a[e]=b[e]}if(!a.target)a.target=a.srcElement||s;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=s.documentElement;d=s.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop|| d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==w)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a,b){c.extend(a,b||{});a.guid+=b.selector+b.live;c.event.add(this,b.live,na,b)},remove:function(a){if(a.length){var b=0,d=new RegExp("(|\.)"+ a[0]+"(\.|$)");c.each(c.data(this,"events").live||{},function(){d.test(this.type)&&b++});b-1?c.map(a.options,function(e){return e.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d}function fa(a,b){var d=a.target,e,g;if(!(!ea.test(d.nodeName)||d.readOnly)){e=c.data(d,"change_data");g=wa(d);if(g!==e){if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",g);if(d.type!=="select"&&(e!= null||g)){a.type="change";return c.event.trigger(a,b,this)}}}}c.event.special.change={filters:{focusout:fa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return fa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return fa.call(this,a)},beforeactivate:function(a){a=a.target;a.nodeName.toLowerCase()=== "input"&&a.type==="radio"&&c.data(a,"_change_data",wa(a))}},setup:function(a,b,d){for(var e in U)c.event.add(this,e+".specialChange."+d.guid,U[e]);return ea.test(this.nodeName)},remove:function(a,b){for(var d in U)c.event.remove(this,d+".specialChange"+(b?"."+b.guid:""),U[d]);return ea.test(this.nodeName)}};var U=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(e){e=c.event.fix(e);e.type=b;return c.event.handle.call(this,e)}c.event.special[b]= {setup:function(){this.addEventListener(a,d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,e,g){if(typeof d==="object"){for(var i in d)thisb;return this}if(c.isFunction(e)){thisObject=g;g=e;e=w}var k=b==="one"?c.proxy(g,function(o){c(this).unbind(o,k);return g.apply(this,arguments)}):g;d==="unload"&&b!=="one"?this.one(d,e,g,thisObject):(!this.selector&&!this.context?c(s):this).each(function(){c.event.add(this, d,k,e)});return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault){for(var d in a)this.unbind(d,a[d]);return this}(!this.selector&&!this.context?c(s):this).each(function(){c.event.remove(this,a,b)});return this},trigger:function(a,b){(!this.selector&&!this.context?c(s):this).each(function(){c.event.trigger(a,b,this)});return this},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}}, toggle:function(a){for(var b=arguments,d=1;d0){x=t;break}}t=t[f]}m[r]=x}}}var e=/((?:((?:([]+)|[]+)+)|[(?:<sup>[]|['"]['"]['"]|[[]'"]+)+]|\.|[^ >+~,([\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n))/g, g=0,i=Object.prototype.toString,k=false,o=true;[0,0].sort(function(){o=false;return 0});var p=function(f,h,j,m){j=j||[];var r=h=h||s;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!f||typeof f!=="string")return j;for(var q=[],v,t,x,Q,F=true,K=V(h),G=f;(e.exec(""),v=e.exec(G))!==null;){G=v[3];q.push(v[1]);if(v[2]){Q=v[3];break}}if(q.length>1&&u.exec(f))if(q.length===2&&n.relative[q[0]])t=ya(q[0]+q[1],h);else for(t=n.relative[q[0]]?[h]:p(q.shift(),h);q.length;){f=q.shift();if(n.relative[f])f+=q.shift(); t=ya(f,t)}else{if(!m&&q.length>1&&h.nodeType===9&&!K&&n.match.ID.test(q[0])&&!n.match.ID.test(q[q.length-1])){v=p.find(q.shift(),h,K);h=v.expr?p.filter(v.expr,v.set)[0]:v.set[0]}if(h){v=m?{expr:q.pop(),set:A(m)}:p.find(q.pop(),q.length===1&&(q[0]==="~"||q[0]==="+")&&h.parentNode?h.parentNode:h,K);t=v.expr?p.filter(v.expr,v.set):v.set;if(q.length>0)x=A(t);else F=false;for(;q.length;){var B=q.pop();v=B;if(n.relative[B])v=q.pop();else B="";if(v==null)v=h;n.relativeB}}else x=[]}x||(x=t);x||p.error(B|| f);if(i.call(x)==="[object Array]")if(F)if(h&&h.nodeType===1)for(f=0;x[f]!=null;f++){if(x[f]&&(x[f]===true||x[f].nodeType===1&&H(h,x[f])))j.push(t[f])}else for(f=0;x[f]!=null;f++)x[f]&&x[f].nodeType===1&&j.push(t[f]);else j.push.apply(j,x);else A(x,j);if(Q){p(Q,r,j,m);p.uniqueSort(j)}return j};p.uniqueSort=function(f){if(D){k=o;f.sort(D);if(k)for(var h=1;h<f.length;h++)f[h]===f[h-1]&&f.splice(h--,1)}return f};p.matches=function(f,h){return p(f,null,null,h)};p.find=function(f,h,j){var m,r;if(!f)return[]; for(var q=0,v=n.order.length;q<v;q++){var t=n.order[q];if(r=n.leftMatch[t].exec(f)){var x=r[1];r.splice(1,1);if(x.substr(x.length-1)!=="\"){r[1]=(r[1]||"").replace(/\/g,"");m=n.findt;if(m!=null){f=f.replace(n.match[t],"");break}}}}m||(m=h.getElementsByTagName(""));return{set:m,expr:f}};p.filter=function(f,h,j,m){for(var r=f,q=[],v=h,t,x,Q=h&&h[0]&&V(h[0]);f&&h.length;){for(var F in n.filter)if((t=n.leftMatch[F].exec(f))!=null&&t[2]){var K=n.filter[F],G,B;B=t[1];x=false;t.splice(1,1);if(B.substr(B.length- 1)!=="\"){if(v===q)q=[];if(n.preFilter[F])if(t=n.preFilterF){if(t===true)continue}else x=G=true;if(t)for(var W=0;(B=v[W])!=null;W++)if(B){G=K(B,t,W,v);var za=m!!G;if(j&&G!=null)if(za)x=true;else v[W]=false;else if(za){q.push(B);x=true}}if(G!==w){j||(v=q);f=f.replace(n.match[F],"");if(!x)return[];break}}}if(f===r)if(x==null)p.error(f);else break;r=f}return v};p.error=function(f){throw"Syntax error, unrecognized expression: "+f;};var n=p.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\.)+)/, CLASS:/.((?:[\w\u00c0-\uFFFF-]|\.)+)/,NAME:/[name=['"]((?:[\w\u00c0-\uFFFF-]|\.)+)['"]]/,ATTR:/[\s*((?:[\w\u00c0-\uFFFF-]|\.)+)\s*(?:(\S?=)\s*(['"])(.?)\3|)\s*]/,TAG:/(?:[\\u00c0-\uFFFF*-]|\.)+)/,CHILD:/:(only|nth|last|first)-child(?:((even|odd|[\dn+-])))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:((\d)))?(?=[-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\.)+)(?:((['"]?)((?:([)]+)|[()]*)+)\2))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(f){return f.getAttribute("href")}}, relative:{"+":function(f,h){var j=typeof h==="string",m=j&&!/\W/.test(h);j=j&&!m;if(m)h=h.toLowerCase();m=0;for(var r=f.length,q;m":function(f,h){var j=typeof h==="string";if(j&&!/\W/.test(h)){h=h.toLowerCase();for(var m=0,r=f.length;m=0))j||m.push(v);else if(j)h[q]=false;return false},ID:function(f){return f[1].replace(/\/g,"")},TAG:function(f){return f[1].toLowerCase()}, CHILD:function(f){if(f[1]==="nth"){var h=/(-?)(\d*)n((?:+|-)?\d*)/.exec(f[2]==="even"&&"2n"||f[2]==="odd"&&"2n+1"||!/\D/.test(f[2])&&"0n+"+f[2]||f[2]);f[2]=h[1]+(h[2]||1)-0;f[3]=h[3]-0}f[0]=g++;return f},ATTR:function(f,h,j,m,r,q){h=f[1].replace(/\/g,"");if(!q&&n.attrMap[h])f[1]=n.attrMap[h];if(f[2]==="~=")f[4]=" "+f[4]+" ";return f},PSEUDO:function(f,h,j,m,r){if(f[1]==="not")if((e.exec(f[3])||"").length>1||/\w/.test(f[3]))f[3]=p(f[3],null,null,h);else{f=p.filter(f[3],h,j,truer);j||m.push.apply(m, f);return false}else if(n.match.POS.test(f[0])||n.match.CHILD.test(f[0]))return true;return f},POS:function(f){f.unshift(true);return f}},filters:{enabled:function(f){return f.disabled===false&&f.type!=="hidden"},disabled:function(f){return f.disabled===true},checked:function(f){return f.checked===true},selected:function(f){return f.selected===true},parent:function(f){return!!f.firstChild},empty:function(f){return!f.firstChild},has:function(f,h,j){return!!p(j[3],f).length},header:function(f){return/h\d/i.test(f.nodeName)}, text:function(f){return"text"===f.type},radio:function(f){return"radio"===f.type},checkbox:function(f){return"checkbox"===f.type},file:function(f){return"file"===f.type},password:function(f){return"password"===f.type},submit:function(f){return"submit"===f.type},image:function(f){return"image"===f.type},reset:function(f){return"reset"===f.type},button:function(f){return"button"===f.type||f.nodeName.toLowerCase()==="button"},input:function(f){return/input|select|textarea|button/i.test(f.nodeName)}}, setFilters:{first:function(f,h){return h===0},last:function(f,h,j,m){return h===m.length-1},even:function(f,h){return h%2===0},odd:function(f,h){return h%2===1},lt:function(f,h,j){return hj[3]-0},nth:function(f,h,j){return j[3]-0===h},eq:function(f,h,j){return j[3]-0===h}},filter:{PSEUDO:function(f,h,j,m){var r=h[1],q=n.filters[r];if(q)return q(f,j,h,m);else if(r==="contains")return(f.textContent||f.innerText||a([f])||"").indexOf(h[3])>=0;else if(r==="not"){h= h[3];j=0;for(m=h.length;j=0}},ID:function(f,h){return f.nodeType===1&&f.getAttribute("id")===h},TAG:function(f,h){return h===""&&f.nodeType===1||f.nodeName.toLowerCase()===h},CLASS:function(f,h){return(" "+(f.className||f.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(f,h){var j=h[1];f=n.attrHandle[j]?n.attrHandlej:f[j]!=null?f[j]:f.getAttribute(j);j=f+"";var m=h[2];h=h[4];return f==null?m==="!=":m=== "="?j===h:m==="="?j.indexOf(h)>=0:m==="~="?(" "+j+" ").indexOf(h)>=0:!h?j&&f!==false:m==="!="?j!==h:m==="="?j.indexOf(h)===0:m==="$="?j.substr(j.length-h.length)===h:m==="|="?j===h||j.substr(0,h.length+1)===h+"-":false},POS:function(f,h,j,m){var r=n.setFilters[h[2]];if(r)return r(f,j,h,m)}}},u=n.match.POS;for(var y in n.match){n.match[y]=new RegExp(n.match[y].source+/(?![[]])(?![(]))/.source);n.leftMatch[y]=new RegExp(/(?:.|\|\n)?)/.source+n.match[y].source.replace(/\(\d+)/g,function(f, h){return"\"+(h-0+1)}))}var A=function(f,h){f=Array.prototype.slice.call(f,0);if(h){h.push.apply(h,f);return h}return f};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(L){A=function(f,h){h=h||[];if(i.call(f)==="[object Array]")Array.prototype.push.apply(h,f);else if(typeof f.length==="number")for(var j=0,m=f.length;j";var j=s.documentElement;j.insertBefore(f,j.firstChild);if(s.getElementById(h)){n.find.ID=function(m,r,q){if(typeof r.getElementById!=="undefined"&&!q)return(r=r.getElementById(m[1]))?r.id===m[1]||typeof r.getAttributeNode!=="undefined"&& r.getAttributeNode("id").nodeValue===m[1]?[r]:w:[]};n.filter.ID=function(m,r){var q=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&q&&q.nodeValue===r}}j.removeChild(f);j=f=null})();(function(){var f=s.createElement("div");f.appendChild(s.createComment(""));if(f.getElementsByTagName("").length>0)n.find.TAG=function(h,j){j=j.getElementsByTagName(h[1]);if(h[1]===""){h=[];for(var m=0;j[m];m++)j[m].nodeType===1&&h.push(j[m]);j=h}return j};f.innerHTML=""; if(f.firstChild&&typeof f.firstChild.getAttribute!=="undefined"&&f.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(h){return h.getAttribute("href",2)};f=null})();s.querySelectorAll&&function(){var f=p,h=s.createElement("div");h.innerHTML="";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){p=function(m,r,q,v){r=r||s;if(!v&&r.nodeType===9&&!V(r))try{return A(r.querySelectorAll(m),q)}catch(t){}return f(m,r,q,v)};for(var j in f)p[j]=f[j];h=null}}(); (function(){var f=s.createElement("div");f.innerHTML="";if(!(!f.getElementsByClassName||f.getElementsByClassName("e").length===0)){f.lastChild.className="e";if(f.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,j,m){if(typeof j.getElementsByClassName!=="undefined"&&!m)return j.getElementsByClassName(h[1])};f=null}}})();var H=s.compareDocumentPosition?function(f,h){return!!(f.compareDocumentPosition(h)&16)}: function(f,h){return f!==h&&(f.contains?f.contains(h):true)},V=function(f){return(f=(f?f.ownerDocument||f:0).documentElement)?f.nodeName!=="HTML":false},ya=function(f,h){var j=[],m="",r;for(h=h.nodeType?[h]:h;r=n.match.PSEUDO.exec(f);){m+=r[0];f=f.replace(n.match.PSEUDO,"")}f=n.relative[f]?f+"":f;r=0;for(var q=h.length;r=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0, e=0,g=this.length;e0)for(var i=d;i0},closest:function(a,b){if(c.isArray(a)){var d= [],e=this[0],g,i={},k;if(e&&a.length){g=0;for(var o=a.length;g-1:c(e).is(g)){d.push({selector:k,elem:e});delete i[k]}}e=e.parentNode}}return d}var p=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,u){for(;u&&u.ownerDocument&&u!==b;){if(p?p.index(u)>-1:c(u).is(a))return u;u=u.parentNode}return null})},index:function(a){if(!a|| typeof a==="string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(a[0]&&(a[0].setInterval||a[0].nodeType===9||a[0].parentNode&&a[0].parentNode.nodeType!==11)?c.unique(b):b)},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a, "parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)}, contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,e){var g=c.map(this,b,d);Ta.test(a)||(e=d);if(e&&typeof e==="string")g=c.filter(e,g);g=this.length>1?c.unique(g):g;if((this.length>1||Va.test(e))&&Ua.test(a))g=g.reverse();return this.pushStack(g,a,P.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var e=[];for(a= a[b];a&&a.nodeType!==9&&(d===w||!c(a).is(d));){a.nodeType===1&&e.push(a);a=a[b]}return e},nth:function(a,b,d){b=b||1;for(var e=0;a;a=a[d])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ba=/[\n\t]/g,ga=/\s+/,Wa=/\r/g,Xa=/href|src|style/,Ya=/(button|input)/i,Za=/(button|input|object|select|textarea)/i,$a=/a|area$/i,Ca=/radio|checkbox/;c.fn.extend({attr:function(a,b){return Z(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this, a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(p){var n=c(this);n.addClass(a.call(this,p,n.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ga),d=0,e=this.length;d<e;d++){var g=this[d];if(g.nodeType===1)if(g.className)for(var i=" "+g.className+" ",k=0,o=b.length;k<o;k++){if(i.indexOf(" "+b[k]+" ")<0)g.className+=" "+b[k]}else g.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(p){var n= c(this);n.removeClass(a.call(this,p,n.attr("class")))});if(a&&typeof a==="string"||a===w)for(var b=(a||"").split(ga),d=0,e=this.length;d<e;d++){var g=this[d];if(g.nodeType===1&&g.className)if(a){for(var i=(" "+g.className+" ").replace(Ba," "),k=0,o=b.length;k<o;k++)i=i.replace(" "+b[k]+" "," ");g.className=i.substring(1,i.length-1)}else g.className=""}return this},toggleClass:function(a,b){var d=typeof a,e=typeof b==="boolean";if(c.isFunction(a))return this.each(function(g){var i=c(this);i.toggleClass(a.call(this, g,i.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var g,i=0,k=c(this),o=b,p=a.split(ga);g=p[i++];){o=e?o:!k.hasClass(g);ko?"addClass":"removeClass"}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,"className",this.className);this.className=this.className||a===false?"":c.data(this,"className_")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b-1)return true;return false}, val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,e=[],g=b.options;b=b.type==="select-one";if(d=0;else if(c.nodeName(this,"select")){var y=c.makeArray(u);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),y)>=0});if(!y.length)this.selectedIndex=-1}else this.value=u}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a, b,d,e){if(!a||a.nodeType===3||a.nodeType===8)return w;if(e&&b in c.attrFn)return c(a)b;e=a.nodeType!==1||!c.isXMLDoc(a);var g=d!==w;b=e&&c.props[b]||b;if(a.nodeType===1){var i=Xa.test(b);if(b in a&&e&&!i){if(g){if(b==="type"&&Ya.test(a.nodeName)&&a.parentNode)throw"type property can't be changed";a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:Za.test(a.nodeName)||$a.test(a.nodeName)&& a.href?0:w;return a[b]}if(!c.support.style&&e&&b==="style"){if(g)a.style.cssText=""+d;return a.style.cssText}g&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&e&&i?a.getAttribute(b,2):a.getAttribute(b);return a===null?w:a}return c.style(a,b,d)}});var Da=/ jQuery\d+="(?:\d+|null)"/g,X=/\s+/,ab=/(<([\w:]+)[>]*?)\/>/g,bb=/?:area|br|col|embed|hr|img|input|link|meta|param$/i,Ea=/<([\w:]+)/,cb=/<tbody/i,db=/<|&\w+;/,eb=function(a,b,d){return bb.test(d)?a:b+"></"+d+">"},C={option:[1,"", ""],legend:[1,"",""],thead:[1,"",""],tr:[2,"",""],td:[3,"",""],col:[2,"",""],area:[1,"",""],_default:[0,"",""]};C.optgroup=C.option;C.tbody=C.tfoot=C.colgroup=C.caption=C.thead;C.th=C.td;if(!c.support.htmlSerialize)C._default=[1,"div",""];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d= c(this);return d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.getText(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this}, wrapInner:function(a){return this.each(function(){c(this).contents().wrapAll(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})}, before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray()); return a}},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,e=this.ownerDocument;if(!d){d=e.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Da,"").replace(X,"")],e)[0]}else return this.cloneNode(true)});if(a===true){pa(this,b);pa(this.find(""),b.find(""))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Da,""):null;else if(typeof a==="string"&& !/1||p>0?g.fragment.cloneNode(true):g.fragment)}o&&c.each(o,Ia)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var e=[];d=c(d);for(var g=0, i=d.length;g0?this.clone(true):this).get();c.fn[b].apply(c(d[g]),k);e=e.concat(k)}return this.pushStack(e,a,d.selector)}});c.each({remove:function(a,b){if(!a||c.filter(a,[this]).length){if(!b&&this.nodeType===1){R(this.getElementsByTagName(""));R([this])}this.parentNode&&this.parentNode.removeChild(this)}},empty:function(){for(this.nodeType===1&&R(this.getElementsByTagName(""));this.firstChild;)this.removeChild(this.firstChild)}},function(a,b){c.fn[a]=function(){return this.each(b, arguments)}});c.extend({clean:function(a,b,d,e){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;var g=[];c.each(a,function(i,k){if(typeof k==="number")k+="";if(k){if(typeof k==="string"&&!db.test(k))k=b.createTextNode(k);else if(typeof k==="string"){k=k.replace(ab,eb);var o=(Ea.exec(k)||["",""])[1].toLowerCase(),p=C[o]||C._default,n=p[0];i=b.createElement("div");for(i.innerHTML=p[1]+k+p[2];n--;)i=i.lastChild;if(!c.support.tbody){n=cb.test(k);o=o==="table"&& !n?i.firstChild&&i.firstChild.childNodes:p[1]===""&&!n?i.childNodes:[];for(p=o.length-1;p>=0;--p)c.nodeName(o[p],"tbody")&&!o[p].childNodes.length&&o[p].parentNode.removeChild(o[p])}!c.support.leadingWhitespace&&X.test(k)&&i.insertBefore(b.createTextNode(X.exec(k)[0]),i.firstChild);k=c.makeArray(i.childNodes)}if(k.nodeType)g.push(k);else g=c.merge(g,k)}});if(d)for(a=0;g[a];a++)if(e&&c.nodeName(g[a],"script")&&(!g[a].type||g[a].type.toLowerCase()==="text/javascript"))e.push(g[a].parentNode? g[a].parentNode.removeChild(g[a]):g[a]);else{g[a].nodeType===1&&g.splice.apply(g,[a+1,0].concat(c.makeArray(g[a].getElementsByTagName("script"))));d.appendChild(g[a])}return g}});var fb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Fa=/alpha([)])/,Ga=/opacity=([)])/,ha=/float/i,ia=/-([a-z])/ig,gb=/([A-Z])/g,hb=/-?\d+(?:px)?$/i,ib=/-?\d/,jb={position:"absolute",visibility:"hidden",display:"block"},kb=["Left","Right"],lb=["Top","Bottom"],mb=s.defaultView&&s.defaultView.getComputedStyle, Ha=c.support.cssFloat?"cssFloat":"styleFloat",ja=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return Z(this,a,b,true,function(d,e,g){if(g===w)return c.curCSS(d,e);if(typeof g==="number"&&!fb.test(e))g+="px";c.style(d,e,g)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return w;if((b==="width"||b==="height")&&parseFloat(d)=0?parseFloat(Ga.exec(e.filter)[1])/100+"":""}if(ha.test(b))b=Ha;b=b.replace(ia,ja);if(g)e[b]=d;return e[b]},css:function(a,b,d,e){if(b==="width"||b==="height"){var g,i=b==="width"?kb:lb;function k(){g=b==="width"?a.offsetWidth:a.offsetHeight;e!=="border"&&c.each(i,function(){e||(g-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(e==="margin")g+=parseFloat(c.curCSS(a,"margin"+ this,true))||0;else g-=parseFloat(c.curCSS(a,"border"+this+"Width",true))||0})}a.offsetWidth!==0?k():c.swap(a,jb,k);return Math.max(0,Math.round(g))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var e,g=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){e=Ga.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return e===""?"1":e}if(ha.test(b))b=Ha;if(!d&&g&&g[b])e=g[b];else if(mb){if(ha.test(b))b="float";b=b.replace(gb,"-$1").toLowerCase();g=a.ownerDocument.defaultView;if(!g)return null; if(a=g.getComputedStyle(a,null))e=a.getPropertyValue(b);if(b==="opacity"&&e==="")e="1"}else if(a.currentStyle){d=b.replace(ia,ja);e=a.currentStyle[b]||a.currentStyle[d];if(!hb.test(e)&&ib.test(e)){b=g.left;var i=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;g.left=d==="fontSize"?"1em":e||0;e=g.pixelLeft+"px";g.left=b;a.runtimeStyle.left=i}}return e},swap:function(a,b,d){var e={};for(var g in b){e[g]=a.style[g];a.style[g]=b[g]}d.call(a);for(g in b)a.style[g]=e[g]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden= function(a){var b=a.offsetWidth,d=a.offsetHeight,e=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!e?true:b>0&&d>0&&!e?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var ka={},nb=/toggle|show|hide/,ob=/[+-]=?([\d+-.]+)(.)$/,Y,ra="height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity";c.fn.extend({show:function(a,b){if(a!=null)return this.animate(I("show", 3),a,b);else{a=0;for(b=this.length;a").appendTo("body");e=g.css("display");if(e==="none")e="block";g.remove();ka[d]=e}c.data(this[a],"olddisplay",e)}}a=0;for(b=this.length;a=0;e--)if(d[e].elem===this){b&&de;d.splice(e,1)}});b||this.dequeue();return this}});c.each({slideDown:I("show",1),slideUp:I("hide",1),slideToggle:I("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,e){return this.animate(b,d,e)}});c.extend({speed:function(a,b,d){var e=a&&typeof a==="object"?a:{complete:d|| !d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};e.duration=c.fx.off?0:typeof e.duration==="number"?e.duration:c.fx.speeds[e.duration]||c.fx.speeds._default;e.old=e.complete;e.complete=function(){e.queue!==false&&c(this).dequeue();c.isFunction(e.old)&&e.old.call(this)};return e},easing:{linear:function(a,b,d,e){return d+e*a},swing:function(a,b,d,e){return(-Math.cos(a*Math.PI)/2+0.5)*e+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig= {}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a, b,d){function e(i){return g.step(i)}this.startTime=M();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;var g=this;e.elem=this.elem;if(e()&&c.timers.push(e)&&!Y)Y=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide= true;this.custom(this.cur(),0)},step:function(a){var b=M(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var e in this.options.curAnim)if(this.options.curAnim[e]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display= "block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var g in this.options.curAnim)c.style(this.elem,g,this.options.orig[g]);this.options.complete.call(this.elem)}return false}else{g=b-this.startTime;this.state=g/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easingthis.options.specialEasing&&this.options.specialEasing[this.prop]||a;this.now=this.start+(this.end-this.start)*this.pos; this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b";a.insertBefore(b,a.firstChild);d=b.firstChild;e=d.firstChild;g=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=e.offsetTop!==5;this.doesAddBorderForTableAndCells=g.offsetTop===5;e.style.position= "fixed";e.style.top="20px";this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15;e.style.position=e.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i;a.removeChild(b);c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))|| 0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var e=c(a),g=e.offset(),i=parseInt(c.curCSS(a,"top",true),10)||0,k=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a,d,g);d={top:b.top-g.top+i,left:b.left-g.left+k};"using"in b?b.using.call(a,d):e.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(), e=/body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;e.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;e.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent; return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(e){var g=this[0],i;if(!g)return null;if(e!==w)return this.each(function(){if(i=sa(this))i.scrollTo(!a?e:c(i).scrollLeft(),a?e:c(i).scrollTop());else this[d]=e});else return(i=sa(g))?"pageXOffset"in i?i[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&i.document.documentElement[d]||i.document.body[d]:g[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0], d,false,"padding"):null};c.fn["outer"+b]=function(e){return this[0]?c.css(this[0],d,false,e?"margin":"border"):null};c.fn[d]=function(e){var g=this[0];if(!g)return e==null?null:this;return"scrollTo"in g&&g.document?g.document.compatMode==="CSS1Compat"&&g.document.documentElement["client"+b]||g.document.body["client"+b]:g.nodeType===9?Math.max(g.documentElement["client"+b],g.body["scroll"+b],g.documentElement["scroll"+b],g.body["offset"+b],g.documentElement["offset"+b]):e===w?c.css(g,d):this.css(d, typeof e==="string"?e:e+"px")}});z.jQuery=z.$=c})(window); }/ Copyright (C) 2010 Emweb bvba, Kessel-Lo, Belgium.

For terms of use, see LICENSE.
Includes Array Remove - By John Resig (MIT Licensed)
Includes jQuery Caret Range plugin
Copyright (c) 2009 Matt Zabriskie
Released under the MIT and GPL licenses.

Includes Yahoo History Frameowork
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.5.2
/
;
if(!window.Wt3_2_1)window.Wt3_2_1=new (function(){function L(a){return a.split("/")[2]}function M(a,b,d){if(a=="auto"||a==null)return d;return(a=(a=b.exec(a))&&a.length==2?a[1]:null)?parseFloat(a):d}function E(a,b){return M(a,/\s
(-?\d+(?:.\d+)?)\s*\%\s*$/i,b)}function I(a){if(J==null)return null;if(!a)a=window.event;if(a){for(var b=a=g.target(a);b&&b!=J;)b=b.parentNode;return b==J?g.isIElt9?a:null:J}else return J}function P(a){var b=I(a);if(b&&!X){if(!a)a=window.event;X=true;if(g.isIElt9){g.firedTarget=
a.srcElement||b;b.fireEvent("onmousemove",a);g.firedTarget=null}else g.condCall(b,"onmousemove",a);return X=false}else return true}function Y(a){var b=I(a);g.capture(null);if(b){if(!a)a=window.event;if(g.isIElt9){g.firedTarget=a.srcElement||b;b.fireEvent("onmouseup",a);g.firedTarget=null}else g.condCall(b,"onmouseup",a);g.cancelEvent(a,g.CancelPropagate);return false}else return true}function ka(){if(!da){da=true;if(document.body.addEventListener){var a=document.body;a.addEventListener("mousemove",
P,true);a.addEventListener("mouseup",Y,true);g.isGecko&&window.addEventListener("mouseout",function(b){!b.relatedTarget&&g.hasTag(b.target,"HTML")&&Y(b)},true)}else{a=document.body;a.attachEvent("onmousemove",P);a.attachEvent("onmouseup",Y)}}}function ea(){if(!S){var a,b,d=document.styleSheets;a=0;for(b=d.length;a<![endif]-->",
h[0];);return b>4?b:a}(),Q=navigator.userAgent.toLowerCase();this.isIE=ga!==undefined;this.isIE6=ga===6;this.isIElt9=ga0)y=setTimeout(B,t);u.onreadystatechange=z;try{u.onload=function(){w(true)};u.onerror=function(){w(false)}}catch(R){}u.send(p)}var k=a;this.responseReceived=function(){};this.sendUpdate=function(p,s,q,t){return new j(p,s,q,t)};this.setUrl=function(p){k=p}}):new (function(){function j(s,q,t){function w(){b(1,null,q);z.parentNode.removeChild(z)}this.userData=q;var z=this.script=document.createElement("script");
z.id="script"+t;z.setAttribute("src",k+"&"+s);z.onerror=w;document.getElementsByTagName("head")[0].appendChild(z);this.abort=function(){z.parentNode.removeChild(z)}}var k=a,p=null;this.responseReceived=function(){if(p!=null){var s=p;p.script.parentNode.removeChild(p.script);p=null;b(0,"",s.userData)}};this.sendUpdate=function(s,q,t,w){return p=new j(s,q,t,w)};this.setUrl=function(s){k=s}})};this.setHtml=function(a,b,d){function h(k,p){var s,q,t;switch(k.nodeType){case 1:s=k.namespaceURI===null?document.createElement(k.nodeName):
document.createElementNS(k.namespaceURI,k.nodeName);if(k.attributes&&k.attributes.length>0){q=0;for(t=k.attributes.length;q0){q=0;for(t=k.childNodes.length;q"+b+"","application/xhtml+xml").documentElement;if(j.nodeType!=1)j=j.nextSibling;if(!d)a.innerHTML="";b=0;for(d=j.childNodes.length;b0){var h;b=0;for(h=a.attributes.length;b=8)b.className=a.className.substring(8);var d=a.getAttribute("style");if(d)g.isIE?b.style.setAttribute("cssText",d):b.setAttribute("style",d);a.parentNode.replaceChild(b,a)}};this.navigateInternalPath=function(a,b){a=a||window.event;if(!a.ctrlKey&&!a.metaKey&&g.button(a)<=1){g.history.navigate(b,true);g.cancelEvent(a,g.CancelDefaultAction)}};this.ajaxInternalPaths=function(a){$(".Wt-ip").each(function(){var b=this.getAttribute("href"),
d=b.lastIndexOf("?wtd");if(d===-1)d=b.lastIndexOf("&wtd");if(d!==-1)b=b.substr(0,d);var h;if(b.indexOf("://")!=-1){d=document.createElement("div");d.innerHTML='x';h=b.substr(d.firstChild.href.length-1)}else h=b.substr(a.length);if(h.substr(0,3)=="?=")h=h.substr(3);this.setAttribute("href",b);this.setAttribute("href",this.href);this.onclick=function(j){g.navigateInternalPath(j,h)};$(this).removeClass("Wt-ip")})};this.resolveRelativeAnchors=function(){$(".Wt-rr").each(function(){this.setAttribute("href",
this.href);$(this).removeClass("Wt-rr")})};var X=false;this.CancelPropagate=1;this.CancelDefaultAction=2;this.CancelAll=3;this.cancelEvent=function(a,b){if(!X){b=b===undefined?g.CancelAll:b;if(b&g.CancelDefaultAction)if(a.preventDefault)a.preventDefault();else a.returnValue=false;if(b&g.CancelPropagate){if(a.stopPropagation)a.stopPropagation();else a.cancelBubble=true;try{document.activeElement&&document.activeElement.blur&&g.hasTag(document.activeElement,"TEXTAREA")&&document.activeElement.blur()}catch(d){}}}};
this.getElement=function(a){var b=document.getElementById(a);if(!b)for(var d=0;da.parentNode.scrollWidth)b-=a.scrollLeft+a.parentNode.scrollWidth-a.scrollWidth}else b-=a.scrollLeft;d-=a.scrollTop}}while(a!=null&&a!=h)}}return{x:b,y:d}};this.widgetCoordinates=function(a,b){b=g.pageCoordinates(b);a=g.widgetPageCoordinates(a);return{x:b.x-a.x,y:b.y-a.y}};this.pageCoordinates=function(a){if(!a)a=window.event;var b=0,d=0;if(a.pageX||a.pageY){b=a.pageX;d=a.pageY}else if(a.clientX||a.clientY){b=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;
d=a.clientY+document.body.scrollTop+document.documentElement.scrollTop}return{x:b,y:d}};this.windowCoordinates=function(a){a=g.pageCoordinates(a);return{x:a.x-document.body.scrollLeft-document.documentElement.scrollLeft,y:a.y-document.body.scrollTop-document.documentElement.scrollTop}};this.wheelDelta=function(a){var b=0;if(a.wheelDelta)b=a.wheelDelta>0?1:-1;else if(a.detail)b=a.detail1){h-=b.text.length;if(hh.length)d=h.length;if(dd)b=d;a.focus();if(typeof a.selectionStart!=="undefined"){a.selectionStart=b;a.selectionEnd=d}else if(document.selection){a=
a.createTextRange();a.collapse(true);a.moveStart("character",b);a.moveEnd("character",d-b);a.select()}};this.isKeyPress=function(a){if(!a)a=window.event;if(a.altKey||a.ctrlKey||a.metaKey)return false;return(typeof a.charCode!=="undefined"?a.charCode:0)>0||g.isIE?true:g.isOpera?a.keyCode==13||a.keyCode==27||a.keyCode>=32&&a.keyCode125:a.keyCode==13||a.keyCode==27||a.keyCode==32||a.keyCode46&&a.keyCoded?d+1:a.style.styleFloat!=""?b-1:"auto"}else return"auto"};this.hide=function(a){g.getElement(a).style.display="none"};this.inline=function(a){g.getElement(a).style.display="inline"};this.block=function(a){g.getElement(a).style.display="block"};this.show=function(a){g.getElement(a).style.display=""};var J=null;this.firedTarget=null;this.target=function(a){return g.firedTarget||a.target||a.srcElement};var da=false;
this.capture=function(a){ka();if(!(J&&a)){J=a;var b=document.body;document.body.addEventListener||(a!=null?b.setCapture():b.releaseCapture());if(a!=null){$(b).addClass("unselectable");b.setAttribute("unselectable","on");b.onselectstart="return false;"}else{$(b).removeClass("unselectable");b.setAttribute("unselectable","off");b.onselectstart=""}}};this.checkReleaseCapture=function(a,b){b&&J&&a==J&&b.type=="mouseup"&&this.capture(null)};this.getElementsByClassName=function(a,b){if(document.getElementsByClassName)return b.getElementsByClassName(a);
else{b=b.getElementsByTagName("*");for(var d=[],h,j=0,k=b.length;j32768){d=document.createElement("style");b.parentNode.insertBefore(d,b);d.styleSheet.cssText=a}else d.styleSheet.cssText+=a}else{a=document.createTextNode(a);b.appendChild(a)}};this.getCssRule=function(a,b){a=a.toLowerCase();if(document.styleSheets)for(var d=0;d
0){b=b[b.length-1];b.parentNode.insertBefore(d,b.nextSibling)}else document.body.appendChild(d)}};this.windowSize=function(){var a,b;if(typeof window.innerWidth==="number"){a=window.innerWidth;b=window.innerHeight}else{a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}return{x:a,y:b}};this.fitToWindow=function(a,b,d,h,j){var k=g.windowSize(),p=document.body.scrollLeft+document.documentElement.scrollLeft,s=document.body.scrollTop+document.documentElement.scrollTop;if(a.offsetParent){var q=
g.widgetPageCoordinates(a.offsetParent),t=["left","right"],w=["top","bottom"],z=g.px(a,"maxWidth")||a.offsetWidth,B=g.px(a,"maxHeight")||a.offsetHeight;if(z>k.x){b=p;h=0}else if(b+z>p+k.x){h-=q.x;b=a.offsetParent.offsetWidth-(h+g.px(a,"marginRight"));h=1}else{b-=q.x;b-=g.px(a,"marginLeft");h=0}if(z>k.y){d=s;j=0}else if(d+B>s+k.y){if(j>s+k.y)j=s+k.y;j-=q.y;d=a.offsetParent.offsetHeight-(j+g.px(a,"marginBottom"));j=1}else{d-=q.y;d-=g.px(a,"marginTop");j=0}a.style[t[h]]=b+"px";a.style[t[1-h]]="";a.style[w[j]]=
d+"px";a.style[w[1-j]]=""}};this.positionXY=function(a,b,d){a=g.getElement(a);g.isHidden(a)||g.fitToWindow(a,b,d,b,d)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,d,h,j){a=g.getElement(a);if((b=g.getElement(b))&&a){var k=g.widgetPageCoordinates(b);if(h){a.parentNode.removeChild(a);$(".Wt-domRoot").get(0).appendChild(a)}a.style.position="absolute";if(j)a.style.display="block";if(d==g.Horizontal){d=k.x+b.offsetWidth;h=k.y;j=k.x;b=k.y+b.offsetHeight}else{d=k.x;h=k.y+b.offsetHeight;
j=k.x+b.offsetWidth;b=k.y}g.fitToWindow(a,d,h,j,b);a.style.visibility=""}};this.hasFocus=function(a){return a==document.activeElement};this.history=window.history&&window.history.pushState?function(){function a(p){j[k.location.pathname+k.location.search]=p}var b=null,d=null,h=null,j={},k=window;return{_initialize:function(){},_initTimeout:function(){},register:function(p,s){function q(t){t=t.state;if(t===null)t=j[k.location.pathname+k.location.search];if(t===null)a(b);else if(t!=b){b=t;s(b!=""?b:
"/")}}b=p;h=s;a(p);window.addEventListener("popstate",q,false)},initialize:function(p,s,q){g.resolveRelativeAnchors();d=q;if(d.length>=1&&d[d.length-1]=="/"){;d+="?
=";;}},navigate:function(p,s){g.resolveRelativeAnchors();b=p;var q=d+fa(p);if(d.length1)B=B.substr(1);var u=B.split("&"),y,o;B="";
y=0;for(o=u.length;y1)q+="&"+w.substr(1)}try{window.history.pushState(p?p:"",document.title,q)}catch(z){console.log(z.toString())}g.scrollIntoView(p);s&&h(p)},getCurrentState:function(){return b}}}():function(){function a(){var m,r;r=location.href;m=r.indexOf("#");return m>=0?r.substr(m+1):null}function b(){u.value=G+"|"+H;if(q)u.value+="|"+R.join(",")}function d(){var m,r;m=0;for(r=K.length;m<
r;++m)Km}function h(m){if(m){if(!m||H!==m){H=m||G;d()}}else{H=G;d()}}function j(m){var r;m=''+m+"";try{r=B.contentWindow.document;r.open();r.write(m);r.close();return true}catch(C){return false}}function k(){var m,r,C,A;if(!B.contentWindow||!B.contentWindow.document)setTimeout(k,10);else{m=B.contentWindow.document;C=(r=m.getElementById("state"))?r.innerText:null;A=a();setInterval(function(){var O,F;m=B.contentWindow.document;O=(r=m.getElementById("state"))?
r.innerText:null;F=a();if(O!==C){C=O;h(C);F=C?C:G;A=location.hash=F;b()}else if(F!==A){A=F;j(F)}},50);y=true;z!=null&&z()}}function p(){if(!t){var m=a(),r=history.length;o&&clearInterval(o);o=setInterval(function(){var C,A;C=a();A=history.length;if(C!==m){m=C;r=A;h(m);b()}else if(A!==r&&q){m=C;r=A;C=R[r-1];h(C);b()}},50)}}function s(){var m;m=u.value.split("|");if(m.length>1){G=m[0];H=m[1]}else G=H="";if(m.length>2)R=m[2].split(",");if(t)k();else{p();y=true;z!=null&&z()}}var q=false,t=g.isIElt9,w=
false,z=null,B=null,u=null,y=false,o=null,R=[],G,H,K=[];return{initialize:function(){u!=null&&s()},_initTimeout:function(){p()},register:function(m,r){if(!y)H=G=escape(m);K.push(r)},initialize:function(m,r){if(!y){var C=navigator.vendor||"";if(C!=="KDE")if(typeof window.opera!=="undefined")w=true;else if(!t&&C.indexOf("Apple Computer, Inc.")>-1)q=true;if(typeof m==="string")m=document.getElementById(m);if(!(!m||m.tagName.toUpperCase()!=="TEXTAREA"&&(m.tagName.toUpperCase()!=="INPUT"||m.type!=="hidden"&&
m.type!=="text"))){u=m;if(t){if(typeof r==="string")r=document.getElementById(r);!r||r.tagName.toUpperCase()!=="IFRAME"||(B=r)}}}},navigate:function(m,r){m=fa(m);if(y){m=m;if(t)j(m);else{if(m.length>0)location.hash=m;if(q){R[history.length]=m;b()}}r&&d()}},getCurrentState:function(){if(!y)return"";return unescape(H)}}}()});if(window.Wt)try{window.Wt._p
.quit()}catch(e$$27){}
window.Wt=new (function(){function L(c){c=o.pageCoordinates(c);R=c.x;G=c.y}function M(){var c=Wt3_2_1.history.getCurrentState();if(!(c.length>0&&c.substr(0,1)!="/"))if(K!=c){K=c;setTimeout(function(){a(null,"hash",null,true)},1)}}function E(c){if(!(K==c||!K&&c=="/")){K=c;o.history.navigate(c,false)}}function I(){window.onresize=function(){V()};document.body.ondragstart=function(){return false}}function P(c,e){var f=m;f.object=o.getElement(c.getAttribute("dwid"));if(f.object==null)return true;
f.sourceId=c.getAttribute("dsid");f.objectPrevStyle={position:f.object.style.position,display:f.object.style.display,left:f.object.style.left,top:f.object.style.top,className:f.object.className};f.object.parentNode.removeChild(f.object);f.object.style.position="absolute";f.object.className="";f.object.style["z-index"]="1000";document.body.appendChild(f.object);o.capture(null);o.capture(f.object);f.object.onmousemove=Y;f.object.onmouseup=ka;f.offsetX=-4;f.offsetY=-4;f.dropTarget=null;f.mimeType=c.getAttribute("dmt");
f.xy=o.pageCoordinates(e);o.cancelEvent(e,o.CancelPropagate);return false}function Y(c){if(m.object!=null){var e=m,f=o.pageCoordinates(c);if(e.object.style.display!=""&&e.xy.x!=f.x&&e.xy.y!=f.y)e.object.style.display="";e.object.style.left=f.x-e.offsetX+"px";e.object.style.top=f.y-e.offsetY+"px";f=e.dropTarget;var i=o.target(c),n="{"+e.mimeType+":",l=null;for(e.dropTarget=null;i;){l=i.getAttribute("amts");if(l!=null&&l.indexOf(n)!=-1){e.dropTarget=i;break}i=i.parentNode;if(!i.tagName||o.hasTag(i,
"HTML"))break}if(e.dropTarget!=f){if(e.dropTarget){i=l.indexOf(n)+n.length;var v=l.indexOf("}",i);l=l.substring(i,v);if(l.length!=0){e.dropTarget.setAttribute("dos",e.dropTarget.className);e.dropTarget.className=e.dropTarget.className+" "+l}}else e.object.styleClass="";if(f!=null){f.handleDragDrop&&f.handleDragDrop("end",e.object,c,"",n);l=f.getAttribute("dos");if(l!=null)f.className=l}}if(e.dropTarget)if(e.dropTarget.handleDragDrop)e.dropTarget.handleDragDrop("drag",e.object,c,"",n);else e.object.className=
"Wt-valid-drop";return false}return true}function ka(c){o.capture(null);var e=m;if(e.object){if(e.dropTarget){var f=e.dropTarget.getAttribute("dos");if(f!=null)e.dropTarget.className=f;e.dropTarget.handleDragDrop?e.dropTarget.handleDragDrop("drop",e.object,c,e.sourceId,e.mimeType):k(e.dropTarget,{name:"drop",eventObject:e.dropTarget,event:c},e.sourceId,e.mimeType)}e.object.style.position=e.objectPrevStyle.position;e.object.style.display=e.objectPrevStyle.display;e.object.style.left=e.objectPrevStyle.left;
e.object.style.top=e.objectPrevStyle.top;e.object.className=e.objectPrevStyle.className;e.object=null}}function ea(c,e,f){var i,n;n=c+"=";c=0;for(i=e.length;c0?"&e"+e:"&";f=e+"signal="+c.signal;if(c.id){f+=e+"id="+c.id+e+"name="+encodeURIComponent(c.name)+e+"an="+c.args.length;for(var n=0;n<c.args.length;++n)f+=
e+"a"+n+"="+encodeURIComponent(c.args[n])}for(var l=0;l<r.length;++l){var v=o.getElement(r[l]),D=null,ra;if(v!=null){if(v.wtEncodeValue)D=v.wtEncodeValue(v);else if(v.type=="select-multiple"){n=0;for(ra=v.options.length;n<ra;n++)if(v.options[n].selected)f+=e+r[l]+"="+encodeURIComponent(v.options[n].value)}else if(v.type=="checkbox"||v.type=="radio")if(v.indeterminate||v.style.opacity=="0.5")D="i";else{if(v.checked)D=v.value}else if(v.type!="file"){if($(v).hasClass("Wt-edit-emptyText"))D="";else{v.ed&&
v.ed.save();D=""+v.value}if(o.hasFocus(v)){n=o.getSelectionRange(v);f+=e+"selstart="+n.start+e+"selend="+n.end}}if(D!=null)f+=e+r[l]+"="+encodeURIComponent(D)}}try{if(document.activeElement)f+=e+"focus="+document.activeElement.id}catch(xa){}if(K!=null)f+=e+"
="+encodeURIComponent(K);if(!i){c.data=f;return c}for(l=o.target(i);l&&!l.id&&l.parentNode;)l=l.parentNode;if(l&&l.id)f+=e+"tid="+l.id;try{f+=e+"type="+i.type}catch(ya){}if(i.clientX||i.clientY)f+=e+"clientX="+i.clientX+e+"clientY="+i.clientY;
D=o.pageCoordinates(i);l=D.x;D=D.y;if(l||D){f+=e+"documentX="+l+e+"documentY="+D;f+=e+"dragdX="+(l-R)+e+"dragdY="+(D-G);n=o.wheelDelta(i);f+=e+"wheel="+n}if(i.screenX||i.screenY)f+=e+"screenX="+i.screenX+e+"screenY="+i.screenY;n={x:0,y:0};if(c.object&&c.object.nodeType!=9){n=o.widgetPageCoordinates(c.object);f+=e+"scrollX="+c.object.scrollLeft+e+"scrollY="+c.object.scrollTop+e+"width="+c.object.clientWidth+e+"height="+c.object.clientHeight+e+"widgetX="+(l-n.x)+e+"widgetY="+(D-n.y)}l=o.button(i);if(!l)if(o.buttons&
1)l=1;else if(o.buttons&2)l=2;else if(o.buttons&4)l=4;f+=e+"button="+l;if(typeof i.keyCode!=="undefined")f+=e+"keyCode="+i.keyCode;if(typeof i.charCode!=="undefined")f+=e+"charCode="+i.charCode;if(i.altKey)f+=e+"altKey=1";if(i.ctrlKey)f+=e+"ctrlKey=1";if(i.metaKey)f+=e+"metaKey=1";if(i.shiftKey)f+=e+"shiftKey=1";if(typeof i.touches!=="undefined")f+=ea(e+"touches",i.touches,n);if(typeof i.targetTouches!=="undefined")f+=ea(e+"ttouches",i.targetTouches,n);if(typeof i.changedTouches!=="undefined")f+=
ea(e+"ctouches",i.changedTouches,n);if(i.scale)f+=e+"scale="+i.scale;if(i.rotation)f+=e+"rotation="+i.rotation;c.data=f;return c}function g(){for(var c="",e=false,f=0;f0&&o.setHtml(c.get(0),"",false)}function ga(){o.history.initTimeout();ja==0&&a(null,"none",null,false)}function Q(c){if(!o.isIEMobile)document.title=c}function Z(c){if(!sa){if(c){if(!window.WtLoadWidgetTree)return;
o.history.initialize("Wt-history-field","Wt-history-iframe",H)}if(!("activeElement"in document)){function e(i){if(i&&i.target)document.activeElement=i.target==document?null:i.target}function f(){document.activeElement=null}document.addEventListener("focus",e,true);document.addEventListener("blur",f,true)}$(document).mousedown(o.mouseDown).mouseup(o.mouseUp);o.history._initialize();I();sa=true;c&&window.WtLoadWidgetTree();F||ia||(ia=setInterval(ga,300000))}}function X(c){clearTimeout(c);
document.body.style.cursor="auto";if(la!=null){try{la()}catch(e){}la=null}}function U(){document.body.style.cursor="wait";la=hideLoadingIndicator;showLoadingIndicator()}function aa(c){ta=c}function ha(){if(!na){na=true;setTimeout(function(){na=false;y._p
.autoJavaScript()},1)}}function V(c){if(c){c="(function() {"+c+"})();";window.execScript?window.execScript(c):window.eval(c)}y==window.Wt&&ha()}function J(c,e,f){if(!F){if(c==0){o.resolveRelativeAnchors();;
Uncaught SyntaxError: Unexpected token )
Uncaught SyntaxError: Unexpected token )
V(e);;f&&X(f)}else A=C.concat(A);C=[];if(W){clearTimeout(W);W=null}N=null;if(c>0)++ja;else ja=0;if(!F)if(ta||A.length>0)if(c==1){c=Math.min(12E4,Math.exp(ja)500);ba=setTimeout(function(){j()},c)}else j()}}function da(c){O=c.indexOf("://")!=-1||c[0]=="/"?c:H+c;ma&&ma.setUrl(c)}function S(){N.abort();
W=N=null;F||j()}function a(c,e,f,i){if(!oa){oa=true;o.checkReleaseCapture(c,f);;var n={},l=A.length;n.object=c;n.signal=e;n.event=window.fakeEvent||f;n.feedback=i;A[l]=fa(n,l);b();V();;oa=false}}function b(){if(!F){;if(N!=null&&W!=null){clearTimeout(W);N.abort();N=null}if(N==null)if(ba==null){ba=setTimeout(function(){j()},
o.updateDelay);ua=(new Date).getTime()}else if(ja){clearTimeout(ba);j()}else if((new Date).getTime()-ua>o.updateDelay){clearTimeout(ba);j()}}}function d(c,e){pa=e;qa=c;ma.responseReceived(c)}function h(c){va=c}function j(){if(y!=window.Wt)T();else if(!N){ba=null;if(F){if(!wa){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;wa=true}}else{var c,e,f;if(A.length>0){c=g();e=c.feedback?setTimeout(U,500):null;f=false}else{c=
{result:"&signal=poll"};e=null;f=true}c.result+="&ackId="+qa+"&pageId="+va;if(pa){var i="",n=$("#"+pa).get(0);if(n)for(n=n.parentNode;!o.hasTag(n,"BODY");n=n.parentNode)if(n.id){if(i!="")i+=",";i+=n.id}c.result+="&ackPuzzle="+encodeURIComponent(i)}c.result+="&";if(x.socket!=null&&x.socket.readyState==1){N=null;e!=null&&clearTimeout(e);f||x.socket.send(c.result)}else{N=ma.sendUpdate("request=jsupdate"+c.result,e,qa,-1);W=f?setTimeout(S,50000):null}}}}function k(c,e){var f=
{},i=A.length;f.signal="user";f.id=typeof c==="string"?c:c==y?"app":c.id;if(typeof e==="object"){f.name=e.name;f.object=e.eventObject;f.event=e.event}else{f.name=e;f.object=f.event=null}f.args=[];for(var n=2;n1)t(c,e,D-1);else{alert("Fatal error: failed loading "+c);T()}}var n=false;if(e!="")try{n=!eval("typeof "+e+" === 'undefined'")}catch(l){n=false}if(n)q(c);else{var v=document.createElement("script");v.setAttribute("src",c);v.onload=
function(){q(c)};v.onerror=i;v.onreadystatechange=function(){var D=v.readyState;if(D=="loaded")o.isOpera||o.isIE?q(c):i();else D=="complete"&&q(c)};document.getElementsByTagName("head")[0].appendChild(v)}}function w(c,e){this.callback=e;this.work=c.length;this.images=[];if(c.length==0)e(this.images);else for(e=0;e0){if(!b.isIE){a.style.position="relative";a=a.firstChild}a.style.width= g+"px";a.style.position="absolute"}}if(!d&&a.wtResize)a.wtResize(a,g,c);else if(a.style.height!=c+"px"){a.style.height=c+"px";if(a.className=="Wt-wrapdiv")if(b.isIE&&b.hasTag(a.firstChild,"TEXTAREA"))a.firstChild.style.height=c-b.pxself(a,"marginBottom")+"px"}}}};this.adjustRow=function(a,c){var d=[];if(a.style.height!=c+"px")a.style.height=c+"px";a=a.childNodes;var i,g,e,h;i=0;h=-1;for(g=a.length;ia?h:a}a=[];var s=h,t;for(d=g=0;g0){if(l!==-1){t=o.minheight[d];l=h*l/q;l=s>l?l:s;l=Math.round(t>l?t:l);s-=l}else l=e.offsetHeight;b.addAll(a,this.adjustRow(e,l))}++d}}g=0;for(i=a.length;gd)break}}if(t>0&&b.pxself(q,"width")!==t)q.style.width=t+"px"}++d}}return true};this.contains=function(a){var c=b.getElement(r);a=b.getElement(a.getId());return c&&a?b.contains(c,a):false}}
Wt.layouts = new (function(){var b=[],r=false;this.add=function(k){var o,y;o=0;for(y=b.length;o0)if(d.wtResize)d.wtResize(d,e,h);else{h=h+"px";if(d.style.height!=h)d.style.height=h}}}}).apply(Wt3_2_1, arguments) };Wt3_2_1.WStackedWidget = function(){function s(n,o,p,q,r){function u(e){var j=["Moz","Webkit"],k=document.createElement("div"),c,i;c=0;for(i=j.length;cc)return{valid:false,message:h};return{valid:true}}}
Wt3_2_1.WDoubleValidator = function(d,b,c,e,f,g,h){this.validate=function(a){if(a.length==0)return d?{valid:false,message:e}:{valid:true};a=Number(a);if(isNaN(a))return{valid:false,message:f};if(b!==null)if(ac)return{valid:false,message:h};return{valid:true}}}
Wt3_2_1.WTreeView = function(m,d,i,t,r){function p(c){var a=-1,b=null,e=false,h=false,g=null;for(c=f.target(c);c;){if(c.className.indexOf("c1 rh")==0){if(a==-1)a=0}else if(c.className.indexOf("Wt-tv-c")==0){if(c.className.indexOf("Wt-tv-c")==0)a=c.className.split(" ")[0].substring(7)*1;else if(a==-1)a=0;if(c.getAttribute("drop")==="true")h=true;g=c}else if(c.className=="Wt-tv-node"){b=c.id;break}if(c.className==="Wt-selected")e=true;c=c.parentNode;if(f.hasTag(c, "BODY"))break}return{columnId:a,nodeId:b,selected:e,drop:h,el:g}}function x(){if(s)if(d.offsetWidth!=0){s=false;var c=u.firstChild,a=l.firstChild,b=0,e=0,h=l.lastChild.className.split(" ")[0];e=f.getCssRule("#"+d.id+" ."+h);if(r)a=a.firstChild;if(!f.isHidden(d)){for(var g=0,k=a.childNodes.length;g0)e.style.width=h+"px"}}e=b+f.pxself(e,"width")+(f.isIE6?10:7);if(r){j=f.getCssRule("#"+d.id+" .Wt-tv-rowc");j.style.width=b+"px";f.isIE&&setTimeout(function(){$(d).find(".Wt-tv-rowc").css("width",b+"px").css("width","")},0);d.changed=true}else{l.style.width=c.style.width=e+"px";a.style.width=b+"px"}}}}jQuery.data(d,"obj",this); var u=i.firstChild,l=t.firstChild,v=this,f=m.WT;this.click=function(c,a){var b=p(a);b.columnId!=-1&&m.emit(d,{name:"itemEvent",eventObject:c,event:a},b.nodeId,b.columnId,"clicked","","")};this.dblClick=function(c,a){var b=p(a);b.columnId!=-1&&m.emit(d,{name:"itemEvent",eventObject:c,event:a},b.nodeId,b.columnId,"dblclicked","","")};this.mouseDown=function(c,a){f.capture(null);var b=p(a);if(b.columnId!=-1){m.emit(d,{name:"itemEvent",eventObject:c,event:a},b.nodeId,b.columnId,"mousedown","","");d.getAttribute("drag")=== "true"&&b.selected&&m.p.dragStart(d,a)}};this.mouseUp=function(c,a){var b=p(a);b.columnId!=-1&&m.emit(d,{name:"itemEvent",eventObject:c,event:a},b.nodeId,b.columnId,"mouseup","","")};this.resizeHandleMDown=function(c,a){var b=c.parentNode.className.split(" ")[0];if(b){var e=f.getCssRule("#"+d.id+" ."+b),h=f.pxself(e,"width"),g=-h,k=1E4,j=$(document.body).hasClass("Wt-rtl");if(j){var w=g;g=-k;k=-w}new f.SizeHandle(f,"h",c.offsetWidth,d.firstChild.offsetHeight,g,k,"Wt-hsh",function(n){n=h+(j?-n:n); var q=b.substring(7)*1;e.style.width=n+"px";v.adjustColumns();m.emit(d,"columnResized",q,parseInt(n))},c,d,a,-2,-1)}};var s=false;this.adjustColumns=function(){if(!s){s=true;setTimeout(x,0)}};var o=null;d.handleDragDrop=function(c,a,b,e,h){if(o){o.className=o.classNameOrig;o=null}if(c!="end"){var g=p(b);if(!g.selected&&g.drop&&g.columnId!=-1)if(c=="drop")m.emit(d,{name:"itemEvent",eventObject:a,event:b},g.nodeId,g.columnId,"drop",e,h);else{a.className="Wt-valid-drop";o=g.el;o.classNameOrig=o.className; o.className+=" Wt-drop-site"}else a.className=""}};this.autoJavaScript=function(){if(d.parentNode==null){d=i=t=u=l=null;this.autoJavaScript=function(){}}else if(!(f.isHidden(d)||d.offsetWidth==0)){x();var c=$(d),a,b=null,e=f.pxself(d,"width");if(e==0)e=d.clientWidth;else if(f.boxSizing(d)){e-=f.px(d,"borderLeftWidth");e-=f.px(d,"borderRightWidth")}var h=i.offsetWidth-i.clientWidth;if(i.clientWidth>0)e-=h;if(c.hasClass("column1")){a=c.find(".Wt-headerdiv").get(0).lastChild.className.split(" ")[0]; a=f.getCssRule("#"+d.id+" ."+a);b=f.pxself(a,"width")}if((!f.isIE||e>100)&&(e!=i.tw||b!=i.c0w||d.changed)){var g=!d.changed;i.tw=e;i.c0w=b;a=c.find(".Wt-headerdiv").get(0).lastChild.className.split(" ")[0];a=f.getCssRule("#"+d.id+" ."+a);var k=u.firstChild,j=f.getCssRule("#"+d.id+" .cwidth"),w=j.style.width==k.offsetWidth+1+"px",n=l.firstChild;j.style.width=e+"px";i.style.width=e+h+"px";if(!f.isIE)t.style.marginRight=h+"px";if(b!=null){b=e-b-(f.isIE6?10:7);if(b>0){var q=Math.min(b,f.pxself(f.getCssRule("#"+ d.id+" .Wt-tv-rowc"),"width"));e-=b-q;l.style.width=e+"px";k.style.width=e+"px";f.getCssRule("#"+d.id+" .Wt-tv-row").style.width=q+"px";f.isIE&&setTimeout(function(){c.find(" .Wt-tv-row").css("width",q+"px").css("width","")},0)}}else if(w){l.style.width=j.style.width;k.style.width=j.style.width}else l.style.width=k.offsetWidth+"px";if(!r&&k.offsetWidth-n.offsetWidth>=7)a.style.width=k.offsetWidth-n.offsetWidth-7+"px";d.changed=false;g&&v.adjustColumns()}}};this.scrollTo=function(c,a,b,e){if(a!=-1){a
= b;c=i.scrollTop;var h=i.clientHeight;if(e==0)if(c+h div.Wt-loading','position: fixed;');
Wt3_2_1.addCss('.Wt-notselected .Wt-popupmenu','visibility: hidden;');
Wt3_2_1.addCss('table.Wt-hcenter','margin: 0px auto;position: relative');
Wt3_2_1.addCss('#oiqgq0k .headerrh','height:20.0px;');
Wt3_2_1.addCss('.Wt-treeview .Wt-tv-rowc','position: relative;');
Wt3_2_1.addCss('.Wt-treeview .Wt-tv-br, .Wt-treeview .header .Wt-tv-row, .Wt-treeview .Wt-tv-node .Wt-tv-row .Wt-tv-c, .Wt-treeview .Wt-tv-node .Wt-tv-row','border-color: rgb(255,255,255)');
Wt3_2_1.addCss('#oiqgq0k .cwidth','');
Wt3_2_1.addCss('#oiqgq0k .rh','height:20.0px;line-height:20.0px;');
Wt3_2_1.addCss('#oiqgq0k .Wt-tv-row','');
Wt3_2_1.addCss('#oiqgq0k .Wt-tv-rowc','');
Wt3_2_1.addCss('#oiqgq0kdw','width: 32px; height: 32px;background: url(/resources/items-not-ok.gif);');
Wt3_2_1.addCss('#oiqgq0kdw.Wt-valid-drop','width: 32px; height: 32px;background: url(/resources/items-ok.gif);');
Wt3_2_1.addCss('#oiqgq0kdw','width: 32px; height: 32px;background: url(/resources/items-not-ok.gif);');
Wt3_2_1.addCss('#oiqgq0kdw.Wt-valid-drop','width: 32px; height: 32px;background: url(/resources/items-ok.gif);');
Wt3_2_1.addCss('#oiqgq0k .Wt-tv-c1','width:294.0px;');
Wt3_2_1.addCss('#oiqgq0k .Wt-tv-node .Wt-tv-c1','width: auto;text-overflow: ellipsis;overflow: hidden');
Wt3_2_1.addCss('#oiqgq0k .Wt-tv-c2','width:146.0px;');
Wt3_2_1.addCss('#oiqgq0k .Wt-tv-c3','width:28.0px;');
Wt3_2_1.addCss('#oiqgq3w .headerrh','height:20.0px;');
Wt3_2_1.addCss('.Wt-treeview .Wt-tv-br, .Wt-treeview .header .Wt-tv-row, .Wt-treeview .Wt-tv-node .Wt-tv-row .Wt-tv-c, .Wt-treeview .Wt-tv-node .Wt-tv-row','border-color: rgb(255,255,255)');
Wt3_2_1.addCss('#oiqgq3w .cwidth','');
Wt3_2_1.addCss('#oiqgq3w .rh','height:20.0px;line-height:20.0px;');
Wt3_2_1.addCss('#oiqgq3w .Wt-tv-row','');
Wt3_2_1.addCss('#oiqgq3w .Wt-tv-rowc','');
Wt3_2_1.addCss('#oiqgq3wdw','width: 32px; height: 32px;background: url(/resources/items-not-ok.gif);');
Wt3_2_1.addCss('#oiqgq3wdw.Wt-valid-drop','width: 32px; height: 32px;background: url(/resources/items-ok.gif);');
Wt3_2_1.addCss('#oiqgq3wdw','width: 32px; height: 32px;background: url(/resources/items-not-ok.gif);');
Wt3_2_1.addCss('#oiqgq3wdw.Wt-valid-drop','width: 32px; height: 32px;background: url(/resources/items-ok.gif);');
Wt3_2_1.addCss('#oiqgq3w .Wt-tv-c1','width:294.0px;');
Wt3_2_1.addCss('#oiqgq3w .Wt-tv-node .Wt-tv-c1','width: auto;text-overflow: ellipsis;overflow: hidden');
Wt3_2_1.addCss('#oiqgq3w .Wt-tv-c2','width:146.0px;');
Wt3_2_1.addCss('#oiqgq3w .Wt-tv-c3','width:28.0px;');
document.body.parentNode.className=' Wt-layout';document.body.className=' Wt-layout Wt-ltr';document.body.setAttribute('dir', 'LTR');var j214=document.createElement('div');document.body.appendChild(j214);
j214.setAttribute('id', 'oiqgpyi');
j214.className='Wt-domRoot';
j214.style.height='100.0%';
Wt3_2_1.setHtml(j214,' 1))return true;else{Wt3_2_1.cancelEvent(e,0x2);Wt.p.update(o,\'s21e\',e,true);}" class="Wt-rr">Simulations 1))return true;else{Wt3_2_1.cancelEvent(e,0x2);Wt.p.update(o,\'s2b1\',e,true);}" class="Wt-rr">Always On 1))return true;else{Wt3_2_1.cancelEvent(e,0x2);Wt.p.update(o,\'s320\',e,true);}" class="Wt-rr">Mapping System Demodulator 1))return true;else{Wt3_2_1.cancelEvent(e,0x2);Wt.p.update(o,\'s321\',e,true);}" class="Wt-rr">Radio Recorder 1))return true;else{Wt3_2_1.cancelEvent(e,0x2);Wt.p.update(o,\'s35a\',e,true);}" class="Wt-rr">Radio Utils 1))return true;else{Wt3_2_1.cancelEvent(e,0x2);Wt.p.update(o,\'s35b\',e,true);}" class="Wt-rr">AboutDisk used 2506 GiB / 5501 GiB: 46 %...2012-04-03 15:51:57Diressa2012-02-22 16:24:36Dir070220122012-02-17 11:05:28Dir080220122012-02-17 11:05:28Dir090220122012-02-17 11:09:07Dir0COLLECTOR2012-02-17 11:31:09Dir0CONTROLCHANNELAWGN2012-02-17 11:39:47Dir0CONTROLCHANNELNOAWGN2012-02-17 11:45:56Dir0LMS2012-03-05 12:02:16Dir0NOISEFLOOR_MODE12012-02-17 13:18:35Dir0NOISEFLOOR_MODE72012-02-17 13:54:58Dir0PHASELENGTH2012-02-17 14:43:35Dir0RDG2012-02-17 14:49:55Dir0SIGMA2012-02-17 14:59:00Dir0TESTMARCO2012-02-17 14:59:00Dir0TIMELENGTH2012-03-16 10:48:02Sim2000_BETA0_10_1350_001_bi2012-02-21 16:22:30Dir210220122012-03-07 10:33:10Dir4Annamaria2012-02-17 15:20:25DirAntonioForFHG2012-03-28 17:43:33DirDLR_Test12012-04-03 17:21:49DirDLR_Test22012-03-29 10:47:22DirFrancesco2012-03-29 11:27:23DirFrancescoCancellator2012-03-07 10:17:51DirOversampling162012-02-17 11:05:28DirT3_p3000_CNinf_sd3_120s.conf.ini2012-02-17 11:05:28DirT6_p6000_CNinf_sd3_120s.conf.ini2012-02-17 15:28:15DirTX_PISA_0012012-03-08 12:21:58SimTestPetrolinBRB50002012-03-08 12:21:58SimTestPetrolinBRB8002012-02-17 15:30:07DirTest_Folder12012-03-08 12:21:58Simtest2012-03-08 12:21:58Simtest2222222012-02-17 11:05:28Dirtexput.log2012-02-29 11:38:42DirxMarco...NewDuplicateDeleteRenameDownload TrafficUpload TrafficView ReportConfigure SimImport simulationsExport simulationsRun SimHelpver. 3.6.3.3-RC4 (build 34769)Loading...SimulationDirectory');
Wt.p.addTimerEvent('oiqgqo1', 1990,false);
Wt.p.addTimerEvent('oiqgr6o', 1996,false);
Wt.layouts.add(new Wt3_2_1.StdLayout( Wt3_2_1, 'oiqgq1a', 1, { stretch: [0,1], minheight: [0,0]}));Wt.layouts.add(new Wt3_2_1.StdLayout( Wt3_2_1, 'oiqgq1c', 0, { stretch: [0], minheight: [18]}));Wt.layouts.add(new Wt3_2_1.StdLayout( Wt3_2_1, 'oiqgpzv', 0, { stretch: [0,0,0,0,0,0,0,0,0,0,0,0,0,0], minheight: [9,6,6,6,6,6,6,6,6,6,6,6,6,15]}));$('#oiqgq2j').get(0).wtResize=Wt3_2_1.ChildrenResize;
$('#oiqgqra').get(0).wtResize=Wt3_2_1.ChildrenResize;
$('#oiqgr9x').get(0).wtResize=Wt3_2_1.ChildrenResize;
$('#oiqgra3').get(0).wtResize=Wt3_2_1.ChildrenResize;
$('#oiqgrfy').get(0).wtResize=Wt3_2_1.ChildrenResize;
$('#oiqgrg4').get(0).wtResize=Wt3_2_1.ChildrenResize;
$('#oiqgq2a').get(0).wtResize=Wt3_2_1.ChildrenResize;
$('#oiqgq29').get(0).wtResize=function(self, w, h) {self.style.height= h + 'px';var c = self.firstChild;var t = self.lastChild;h -= c.offsetHeight + Wt3_2_1.px(c, 'marginTop') + Wt3_2_1.px(c, 'marginBottom');if (h > 0)t.wtResize(t, w, h);};;
Wt.layouts.add(new Wt3_2_1.StdLayout( Wt3_2_1, 'oiqgq2g', 0, { stretch: [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], minheight: [9,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,15]}));
Wt.p.response(1593883676);Wt3_2_1.hide('oiqgpz7');
new Wt3_2_1.WTreeView(Wt,$('#oiqgq0k').get(0),$('#oiqgq17').get(0),$('#oiqgq16').get(0),0);
$('#oiqgq0k').data('obj').adjustColumns();

Wt.layouts.adjust('oiqgq1a');
Wt.layouts.adjust('oiqgq1a');
Wt.layouts.adjust('oiqgq1a');
function f217(event){ Wt3_2_1.cancelEvent(event||window.event);}
var j218=$('#SimSelector-RunButton_oiqgpzo').get(0);
j218.onclick=f217;
Wt.layouts.adjust('oiqgq1a');
function f221(event){ var e=event||window.event,o=this;Wt3_2_1.hide('oiqgpzr');
var j219=$('#oiqgq0c').get(0);
$('#oiqgq0c').addClass('Wt-item');$('#oiqgq0c').removeClass('Wt-selected');
var j220=$('#oiqgq0f').get(0);
$('#oiqgq0f').addClass('Wt-item');$('#oiqgq0f').removeClass('Wt-selected');
Wt.p.update(o,'s216',e,true);}
var j222=$('#oiqgq0c').get(0);
j222.onmouseup=f221;
function f223(event){ var e=event||window.event,o=this;Wt3_2_1.hide('oiqgpzr');
var j219=$('#oiqgq0c').get(0);
$('#oiqgq0c').addClass('Wt-item');$('#oiqgq0c').removeClass('Wt-selected');
var j220=$('#oiqgq0f').get(0);
$('#oiqgq0f').addClass('Wt-item');$('#oiqgq0f').removeClass('Wt-selected');
Wt.p.update(o,'s218',e,true);}
var j224=$('#oiqgq0f').get(0);
j224.onmouseup=f223;
Wt.layouts.adjust('oiqgq1a');
function f227(event){ var e=event||window.event,o=this;var j225=$('#oiqgq0c').get(0);
$('#oiqgq0c').addClass('Wt-selected');$('#oiqgq0c').removeClass('Wt-item');
var j226=$('#oiqgq0f').get(0);
$('#oiqgq0f').addClass('Wt-item');$('#oiqgq0f').removeClass('Wt-selected');
}
var j228=$('#oiqgq0c').get(0);
j228.onmouseover=f227;
Wt.layouts.adjust('oiqgq1a');
function f231(event){ var e=event||window.event,o=this;var j229=$('#oiqgq0c').get(0);
$('#oiqgq0c').addClass('Wt-item');$('#oiqgq0c').removeClass('Wt-selected');
var j230=$('#oiqgq0f').get(0);
$('#oiqgq0f').addClass('Wt-selected');$('#oiqgq0f').removeClass('Wt-item');
}
var j232=$('#oiqgq0f').get(0);
j232.onmouseover=f231;
Wt.layouts.adjust('oiqgq1a');
function f239(event){ var e=event||window.event,o=this;if(e.ctrlKey||e.metaKey||(Wt3_2_1.button(e) > 1))return true;else{Wt3_2_1.hide('oiqgqra');
Wt3_2_1.hide('oiqgr9x');
Wt3_2_1.hide('oiqgra3');
Wt3_2_1.hide('oiqgrfy');
Wt3_2_1.hide('oiqgrg4');
Wt3_2_1.show('oiqgq2j');
var j233=$('#oiqgq2l').get(0);
j233.className='itemselected';
var j234=$('#oiqgqrc').get(0);
j234.className='item';
var j235=$('#oiqgr9z').get(0);
j235.className='item';
var j236=$('#oiqgra5').get(0);
j236.className='item';
var j237=$('#oiqgrg0').get(0);
j237.className='item';
var j238=$('#oiqgrg6').get(0);
j238.className='item';
Wt3_2_1.cancelEvent(e,0x2);Wt.p.update(o,'s21e',e,true);}}
var j240=$('#oiqgq2m').get(0);
j240.onclick=f239;
Wt.layouts.adjust('oiqgq1a');
showLoadingIndicator = function() {var o=null,e=null;
Wt3_2_1.show('oiqgpz7');
};
hideLoadingIndicator = function() {var o=null,e=null;
Wt3_2_1.hide('oiqgpz7');
};
{var o=null,e=null;Wt3_2_1.hide('oiqgpz7');
}Wt.p.update(null, 'load', null, false);
};
Wt.p.setServerPush(true);$(document).ready(function() { Wt.p.load(true);});

#1

Updated by Gaetano Mendola over 8 years ago

I did beautify the code and put it in paste bin here:

http://pastebin.com/RpZjJex0

I hope it's now more readable

#2

Updated by Koen Deforche over 8 years ago

  • Status changed from New to Feedback

Hey,

Can you check again with very latest git ?

koen

#3

Updated by Gaetano Mendola over 8 years ago

We have tried yesterday and again today with very last git and our layout is ruined. I get lot of warnings:

WContainerWidget: setLayout(layout, alignment) is being deprecated (and does no longer have the special meaning it used to have). Use spacers or CSS instead to control alignment

For almost all our layout we perform a: setLayout(......., Wt::AlignTop|Wt::AlignCenter);

how shall we change that in order to achieve the same effect, solving that I can try again to see if we still get the internal error.

#4

Updated by Koen Deforche over 8 years ago

Hey Gaetano,

Ah, I spoke too quick --- I was thinking that it was because you were trying with a git version.

If you get it with 3.2.1, then the issue is different.

It is indeed so that wrong JavaScript will be produced if for example charts become too small. Do you think you can reproduce the problem in a test case ?

W.r.t. your layouts, I would be interested in learning why it fails horribly, and how it looks like ?

The old behaviour of setLayout(..., AlignTop|AlignCenter) was to not try to fit the widgets height in the parent height, but instead let the widgets get their preferred height and adjust the parent container's height accordingly.

With the new behaviour, we are deprecating setLayout(..., alignment). Nevertheless it still should behave the same w.r.t. to how children determine the parent container size. But in the new implementation, we encourage people to simply specify a maximum size for the container which is then used to get a combined effect (determine size up to a maximum, after which we start constraining children sizes).

So I would be interested in how it looks (wrong), in what it should look like (correctly) and if you can reproduce it in a small test case since it does sound like something we still miss in the new version.

Regards,

koen

#5

Updated by Gaetano Mendola over 8 years ago

I have been trying to hunt down the content of the model I pass to the chart but unfortunately is not that simple

because the model keeps changing (we do show a continuous changing graph) while the chart stops to work.

On how horribly fail this is how it should be:

http://picpaste.com/good_layout.png

and how it appears with git version:

http://picpaste.com/bad_layout.png

#6

Updated by Gaetano Mendola over 8 years ago

This code will show the internal error after 3 second, it's not using the Chart but the PaintedWidget, I do believe the problem is the same.

#include <Wt/WApplication>
#include <Wt/WPainter>
#include <Wt/WTimer>
#include <Wt/WServer>
#include <Wt/WPaintedWidget>
#include <Wt/WContainerWidget>


class TestPainter : public Wt::WPaintedWidget {
 public:
  TestPainter(Wt::WContainerWidget* aParent,
              Wt::WApplication*     aApplication)
      : Wt::WPaintedWidget(aParent),
        theCounter(0),
        theApplication(aApplication) {

    setHeight(400);
    setWidth(600);

  }
  ~TestPainter() {

  }

  void paint() {
    Wt::WServer::instance()->post(theApplication->sessionId(),
                                boost::bind(&TestPainter::privatePaint,
                                            this));
  }

 private:
  void privatePaint() {
    update();
    theApplication->triggerUpdate();
  }
  void paintEvent(Wt::WPaintDevice* aPaintDevice) {
    Wt::WPainter myPainter(aPaintDevice);

    float myPoint = 100.0f;

    if (theCounter>1) {
      std::cout << "BUG" << std::endl;
      const float myMin = 5.3f;
      const float myMax = 5.3f;
      myPoint = 10.0f/(myMin-myMax);
    }

    myPainter.drawEllipse(myPoint, myPoint, 50, 50);
    ++theCounter;
  }
  uint theCounter;

  Wt::WApplication*     theApplication;
};


class TestInternalError : public Wt::WApplication {
 public:
  TestInternalError(const Wt::WEnvironment& env)
      : Wt::WApplication(env),
        theTimer(new Wt::WTimer()),
        thePainter(new TestPainter(0, this)) {
    enableUpdates(true);

    root()->addWidget(thePainter);

    theTimer->setInterval(1000);
    theTimer->timeout().connect(this, &TestInternalError::redraw);
    theTimer->setSingleShot(false);
    theTimer->start();
  }
  ~TestInternalError() {
  }

 private:
  void redraw() {
    thePainter->paint();
  }

  Wt::WTimer* theTimer;
  TestPainter* thePainter;
};

Wt::WApplication *createApplication(const Wt::WEnvironment& env) {
  return new TestInternalError(env);
}

int main(int /*argc*/, char** /*argv*/) {
  try {
    static std::vector<const char*> myWtOptions;
    myWtOptions.push_back("remoteperformanceswebinterface");
    myWtOptions.push_back("--docroot");
    myWtOptions.push_back("/usr/local/share/Wt");
    myWtOptions.push_back("--http-address");
    myWtOptions.push_back("0.0.0.0");
    myWtOptions.push_back("--http-port");
    myWtOptions.push_back("1111");

    return Wt::WRun(myWtOptions.size(),
                    const_cast<char**>(&myWtOptions[0]),
                    &createApplication);

  } catch(const std::exception& e) {
    std::cout << "Error: " << e.what() << std::endl;
    return 1;
  } catch (...) {
    std::cout << "Error: unknown" << std::endl;
    return 1;
  }
  return 1;
}
#7

Updated by Gaetano Mendola over 8 years ago

And the below code shows you how the layout changes using the GIT,

look for example the appearance of the buttons inside the other tabs

#include <Wt/WApplication>
#include <Wt/WPainter>
#include <Wt/WTimer>
#include <Wt/WServer>
#include <Wt/WPaintedWidget>
#include <Wt/WContainerWidget>
#include <Wt/WTabWidget>
#include <Wt/WPushButton>
#include <Wt/WGridLayout>


class TestPainter : public Wt::WPaintedWidget {
 public:
  TestPainter(Wt::WContainerWidget* aParent,
              Wt::WApplication*     aApplication)
      : Wt::WPaintedWidget(aParent),
        theCounter(0),
        theApplication(aApplication) {

    setHeight(400);
    setWidth(600);

  }
  ~TestPainter() {

  }

  void paint() {
    Wt::WServer::instance()->post(theApplication->sessionId(),
                                boost::bind(&TestPainter::privatePaint,
                                            this));
  }

 private:
  void privatePaint() {
    update();
    theApplication->triggerUpdate();
  }
  void paintEvent(Wt::WPaintDevice* aPaintDevice) {
    Wt::WPainter myPainter(aPaintDevice);

    float myPoint = 100.0f;

    if (theCounter>100) {
      std::cout << "BUG" << std::endl;
      const float myMin = 5.3f;
      const float myMax = 5.3f;
      myPoint = 10.0f/(myMin-myMax);
    }

    myPainter.drawEllipse(myPoint, myPoint, 50, 50);
    ++theCounter;
  }
  uint theCounter;

  Wt::WApplication*     theApplication;
};


class TestInternalError : public Wt::WApplication {
 public:
  TestInternalError(const Wt::WEnvironment& env)
      : Wt::WApplication(env),
        theTimer(new Wt::WTimer()),
        thePainter(new TestPainter(0, this)),
        theTab(new Wt::WTabWidget()) {
    enableUpdates(true);

    Wt::WGridLayout* const myRootLayout = new Wt::WGridLayout;
    root()->setLayout(myRootLayout, Wt::AlignTop);
    root()->setOverflow(Wt::WContainerWidget::OverflowAuto);

    myRootLayout->addWidget(theTab, 0, 0);

    theTab->addTab(thePainter, "Test1");
    theTab->addTab(new Wt::WPushButton("Button2"), "Test2");
    theTab->addTab(new Wt::WPushButton("Button3"), "Test3");
    theTab->addTab(new Wt::WPushButton("Button4"), "Test3");

    theTimer->setInterval(1000);
    theTimer->timeout().connect(this, &TestInternalError::redraw);
    theTimer->setSingleShot(false);
    theTimer->start();
  }
  ~TestInternalError() {
  }

 private:
  void redraw() {
    thePainter->paint();
  }

  Wt::WTimer* theTimer;
  TestPainter* thePainter;
  Wt::WTabWidget* theTab;
};

Wt::WApplication *createApplication(const Wt::WEnvironment& env) {
  return new TestInternalError(env);
}

int main(int /*argc*/, char** /*argv*/) {
  try {
    static std::vector<const char*> myWtOptions;
    myWtOptions.push_back("remoteperformanceswebinterface");
    myWtOptions.push_back("--docroot");
    myWtOptions.push_back("/usr/local/share/Wt");
    myWtOptions.push_back("--http-address");
    myWtOptions.push_back("0.0.0.0");
    myWtOptions.push_back("--http-port");
    myWtOptions.push_back("1111");

    return Wt::WRun(myWtOptions.size(),
                    const_cast<char**>(&myWtOptions[0]),
                    &createApplication);

  } catch(const std::exception& e) {
    std::cout << "Error: " << e.what() << std::endl;
    return 1;
  } catch (...) {
    std::cout << "Error: unknown" << std::endl;
    return 1;
  }
  return 1;
}
#8

Updated by Wim Dumon over 8 years ago

When given invalid input (NaN, Infinity, etc are considered invalid), our float rendering functions give undefined output.

    if (theCounter>1) {
      std::cout << "BUG" << std::endl;
      const float myMin = 5.3f;
      const float myMax = 5.3f;
      myPoint = 10.0f/(myMin-myMax);
    }

Can you avoid doing divisions by zero?

Wim.

#9

Updated by Gaetano Mendola over 8 years ago

Sure I can avoid divisions by zero, but that's not the point, I did that on purpose to show you how to achieve an internal WT error.

Most of the time who produces the data to display (passed to a model for a chart) is us so we can avoid corner cases, but some time we

display data not produced by us so that would mean to check each time what we are going to put in a model, I do believe it should be

your responsability to avoid to produce a not valid JS (imho).

I'm still hunting the problem we have with a chart but I'm sure that the problem is very the same.

Consider also that in my first example if you trigger the division by zero in the first paintEvent call (not triggered by a timer) then

all stops to work even timer doesn't fire anymore...

#10

Updated by Wim Dumon over 8 years ago

We should probably fix something there - 'syntax error' is not a good message to get and does not make sense to the user/developer in this context.

Some ideas about having proper transfers of floats:

  • we could by default use atof() instead of our proprietary (faster) method, which was mainly intended for good performance on embedded systems
  • with typed arrays, we could consider to transfer the binary representation of the float from the server to the client. I've been doing successful experiments with JavaScript's new typed array API, (new Float32Array(new Uint32Array([0xabcdef]).buffer))[0];. (where 0xabcdef is *reinterpret_cast<uint32_t *>(&someFloat); result of a reinterpret-cast of a server-side float - machine-depending issues like endianness to be investigated).

Question remains: how will the canvas respond to NaN/Infinite values? Exceptions may still be thrown...

#11

Updated by Gaetano Mendola over 8 years ago

Transfer a float as his binary representation on wire is something very very dangerous, and you are asking for problem. It's true that today almost all system have adopted the IEEE754 for the floating point representation. We do it ourself on our systems but we have full control of the two peers. The problem is not easy to solve indeed there is no corresponding htons/ntohs/htonl/ntohl, the safest way to transmit float over wire I believe it's to transport them as string (!).

#12

Updated by Koen Deforche about 7 years ago

  • Status changed from Feedback to Resolved
  • Assignee set to Wim Dumon
  • Target version set to 3.3.0
#13

Updated by Koen Deforche about 7 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF