/*
 * jQuery JavaScript Library v1.6.2
 * http://jquery.com/
 *
 * Copyright 2011, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2011, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Thu Jun 30 14:16:56 2011 -0400
 */
(function(window,undefined){var document=window.document,navigator=window.navigator,location=window.location;var jQuery=(function(){var jQuery=function(selector,context){return new jQuery.fn.init(selector,context,rootjQuery)},_jQuery=window.jQuery,_$=window.$,rootjQuery,quickExpr=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,rnotwhite=/\S/,trimLeft=/^\s+/,trimRight=/\s+$/,rdigit=/\d/,rsingleTag=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,rvalidchars=/^[\],:{}\s]*$/,rvalidescape=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rvalidtokens=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rvalidbraces=/(?:^|:|,)(?:\s*\[)+/g,rwebkit=/(webkit)[ \/]([\w.]+)/,ropera=/(opera)(?:.*version)?[ \/]([\w.]+)/,rmsie=/(msie) ([\w.]+)/,rmozilla=/(mozilla)(?:.*? rv:([\w.]+))?/,rdashAlpha=/-([a-z])/ig,fcamelCase=function(all,letter){return letter.toUpperCase()},userAgent=navigator.userAgent,browserMatch,readyList,DOMContentLoaded,toString=Object.prototype.toString,hasOwn=Object.prototype.hasOwnProperty,push=Array.prototype.push,slice=Array.prototype.slice,trim=String.prototype.trim,indexOf=Array.prototype.indexOf,class2type={};jQuery.fn=jQuery.prototype={constructor:jQuery,init:function(selector,context,rootjQuery){var match,elem,ret,doc;if(!selector){return this}if(selector.nodeType){this.context=this[0]=selector;this.length=1;return this}if(selector==="body"&&!context&&document.body){this.context=document;this[0]=document.body;this.selector=selector;this.length=1;return this}if(typeof selector==="string"){if(selector.charAt(0)==="<"&&selector.charAt(selector.length-1)===">"&&selector.length>=3){match=[null,selector,null]}else{match=quickExpr.exec(selector)}if(match&&(match[1]||!context)){if(match[1]){context=context instanceof jQuery?context[0]:context;doc=(context?context.ownerDocument||context:document);ret=rsingleTag.exec(selector);if(ret){if(jQuery.isPlainObject(context)){selector=[document.createElement(ret[1])];jQuery.fn.attr.call(selector,context,true)}else{selector=[doc.createElement(ret[1])]}}else{ret=jQuery.buildFragment([match[1]],[doc]);selector=(ret.cacheable?jQuery.clone(ret.fragment):ret.fragment).childNodes}return jQuery.merge(this,selector)}else{elem=document.getElementById(match[2]);if(elem&&elem.parentNode){if(elem.id!==match[2]){return rootjQuery.find(selector)}this.length=1;this[0]=elem}this.context=document;this.selector=selector;return this}}else{if(!context||context.jquery){return(context||rootjQuery).find(selector)}else{return this.constructor(context).find(selector)}}}else{if(jQuery.isFunction(selector)){return rootjQuery.ready(selector)}}if(selector.selector!==undefined){this.selector=selector.selector;this.context=selector.context}return jQuery.makeArray(selector,this)},selector:"",jquery:"1.6.2",length:0,size:function(){return this.length},toArray:function(){return slice.call(this,0)},get:function(num){return num==null?this.toArray():(num<0?this[this.length+num]:this[num])},pushStack:function(elems,name,selector){var ret=this.constructor();if(jQuery.isArray(elems)){push.apply(ret,elems)}else{jQuery.merge(ret,elems)}ret.prevObject=this;ret.context=this.context;if(name==="find"){ret.selector=this.selector+(this.selector?" ":"")+selector}else{if(name){ret.selector=this.selector+"."+name+"("+selector+")"}}return ret},each:function(callback,args){return jQuery.each(this,callback,args)},ready:function(fn){jQuery.bindReady();readyList.done(fn);return this},eq:function(i){return i===-1?this.slice(i):this.slice(i,+i+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(slice.apply(this,arguments),"slice",slice.call(arguments).join(","))},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem)}))},end:function(){return this.prevObject||this.constructor(null)},push:push,sort:[].sort,splice:[].splice};jQuery.fn.init.prototype=jQuery.fn;jQuery.extend=jQuery.fn.extend=function(){var options,name,src,copy,copyIsArray,clone,target=arguments[0]||{},i=1,length=arguments.length,deep=false;if(typeof target==="boolean"){deep=target;target=arguments[1]||{};i=2}if(typeof target!=="object"&&!jQuery.isFunction(target)){target={}}if(length===i){target=this;--i}for(;i<length;i++){if((options=arguments[i])!=null){for(name in options){src=target[name];copy=options[name];if(target===copy){continue}if(deep&&copy&&(jQuery.isPlainObject(copy)||(copyIsArray=jQuery.isArray(copy)))){if(copyIsArray){copyIsArray=false;clone=src&&jQuery.isArray(src)?src:[]}else{clone=src&&jQuery.isPlainObject(src)?src:{}}target[name]=jQuery.extend(deep,clone,copy)}else{if(copy!==undefined){target[name]=copy}}}}}return target};jQuery.extend({noConflict:function(deep){if(window.$===jQuery){window.$=_$}if(deep&&window.jQuery===jQuery){window.jQuery=_jQuery}return jQuery},isReady:false,readyWait:1,holdReady:function(hold){if(hold){jQuery.readyWait++}else{jQuery.ready(true)}},ready:function(wait){if((wait===true&&!--jQuery.readyWait)||(wait!==true&&!jQuery.isReady)){if(!document.body){return setTimeout(jQuery.ready,1)}jQuery.isReady=true;if(wait!==true&&--jQuery.readyWait>0){return}readyList.resolveWith(document,[jQuery]);if(jQuery.fn.trigger){jQuery(document).trigger("ready").unbind("ready")}}},bindReady:function(){if(readyList){return}readyList=jQuery._Deferred();if(document.readyState==="complete"){return setTimeout(jQuery.ready,1)}if(document.addEventListener){document.addEventListener("DOMContentLoaded",DOMContentLoaded,false);window.addEventListener("load",jQuery.ready,false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",DOMContentLoaded);window.attachEvent("onload",jQuery.ready);var toplevel=false;try{toplevel=window.frameElement==null}catch(e){}if(document.documentElement.doScroll&&toplevel){doScrollCheck()}}}},isFunction:function(obj){return jQuery.type(obj)==="function"},isArray:Array.isArray||function(obj){return jQuery.type(obj)==="array"},isWindow:function(obj){return obj&&typeof obj==="object"&&"setInterval" in obj},isNaN:function(obj){return obj==null||!rdigit.test(obj)||isNaN(obj)},type:function(obj){return obj==null?String(obj):class2type[toString.call(obj)]||"object"},isPlainObject:function(obj){if(!obj||jQuery.type(obj)!=="object"||obj.nodeType||jQuery.isWindow(obj)){return false}if(obj.constructor&&!hasOwn.call(obj,"constructor")&&!hasOwn.call(obj.constructor.prototype,"isPrototypeOf")){return false}var key;for(key in obj){}return key===undefined||hasOwn.call(obj,key)},isEmptyObject:function(obj){for(var name in obj){return false}return true},error:function(msg){throw msg},parseJSON:function(data){if(typeof data!=="string"||!data){return null}data=jQuery.trim(data);if(window.JSON&&window.JSON.parse){return window.JSON.parse(data)}if(rvalidchars.test(data.replace(rvalidescape,"@").replace(rvalidtokens,"]").replace(rvalidbraces,""))){return(new Function("return "+data))()}jQuery.error("Invalid JSON: "+data)},parseXML:function(data,xml,tmp){if(window.DOMParser){tmp=new DOMParser();xml=tmp.parseFromString(data,"text/xml")}else{xml=new ActiveXObject("Microsoft.XMLDOM");xml.async="false";xml.loadXML(data)}tmp=xml.documentElement;if(!tmp||!tmp.nodeName||tmp.nodeName==="parsererror"){jQuery.error("Invalid XML: "+data)}return xml},noop:function(){},globalEval:function(data){if(data&&rnotwhite.test(data)){(window.execScript||function(data){window["eval"].call(window,data)})(data)}},camelCase:function(string){return string.replace(rdashAlpha,fcamelCase)},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()===name.toUpperCase()},each:function(object,callback,args){var name,i=0,length=object.length,isObj=length===undefined||jQuery.isFunction(object);if(args){if(isObj){for(name in object){if(callback.apply(object[name],args)===false){break}}}else{for(;i<length;){if(callback.apply(object[i++],args)===false){break}}}}else{if(isObj){for(name in object){if(callback.call(object[name],name,object[name])===false){break}}}else{for(;i<length;){if(callback.call(object[i],i,object[i++])===false){break}}}}return object},trim:trim?function(text){return text==null?"":trim.call(text)}:function(text){return text==null?"":text.toString().replace(trimLeft,"").replace(trimRight,"")},makeArray:function(array,results){var ret=results||[];if(array!=null){var type=jQuery.type(array);if(array.length==null||type==="string"||type==="function"||type==="regexp"||jQuery.isWindow(array)){push.call(ret,array)}else{jQuery.merge(ret,array)}}return ret},inArray:function(elem,array){if(indexOf){return indexOf.call(array,elem)}for(var i=0,length=array.length;i<length;i++){if(array[i]===elem){return i}}return -1},merge:function(first,second){var i=first.length,j=0;if(typeof second.length==="number"){for(var l=second.length;j<l;j++){first[i++]=second[j]}}else{while(second[j]!==undefined){first[i++]=second[j++]}}first.length=i;return first},grep:function(elems,callback,inv){var ret=[],retVal;inv=!!inv;for(var i=0,length=elems.length;i<length;i++){retVal=!!callback(elems[i],i);if(inv!==retVal){ret.push(elems[i])}}return ret},map:function(elems,callback,arg){var value,key,ret=[],i=0,length=elems.length,isArray=elems instanceof jQuery||length!==undefined&&typeof length==="number"&&((length>0&&elems[0]&&elems[length-1])||length===0||jQuery.isArray(elems));if(isArray){for(;i<length;i++){value=callback(elems[i],i,arg);if(value!=null){ret[ret.length]=value}}}else{for(key in elems){value=callback(elems[key],key,arg);if(value!=null){ret[ret.length]=value}}}return ret.concat.apply([],ret)},guid:1,proxy:function(fn,context){if(typeof context==="string"){var tmp=fn[context];context=fn;fn=tmp}if(!jQuery.isFunction(fn)){return undefined}var args=slice.call(arguments,2),proxy=function(){return fn.apply(context,args.concat(slice.call(arguments)))};proxy.guid=fn.guid=fn.guid||proxy.guid||jQuery.guid++;return proxy},access:function(elems,key,value,exec,fn,pass){var length=elems.length;if(typeof key==="object"){for(var k in key){jQuery.access(elems,k,key[k],exec,fn,value)}return elems}if(value!==undefined){exec=!pass&&exec&&jQuery.isFunction(value);for(var i=0;i<length;i++){fn(elems[i],key,exec?value.call(elems[i],i,fn(elems[i],key)):value,pass)}return elems}return length?fn(elems[0],key):undefined},now:function(){return(new Date()).getTime()},uaMatch:function(ua){ua=ua.toLowerCase();var match=rwebkit.exec(ua)||ropera.exec(ua)||rmsie.exec(ua)||ua.indexOf("compatible")<0&&rmozilla.exec(ua)||[];return{browser:match[1]||"",version:match[2]||"0"}},sub:function(){function jQuerySub(selector,context){return new jQuerySub.fn.init(selector,context)}jQuery.extend(true,jQuerySub,this);jQuerySub.superclass=this;jQuerySub.fn=jQuerySub.prototype=this();jQuerySub.fn.constructor=jQuerySub;jQuerySub.sub=this.sub;jQuerySub.fn.init=function init(selector,context){if(context&&context instanceof jQuery&&!(context instanceof jQuerySub)){context=jQuerySub(context)}return jQuery.fn.init.call(this,selector,context,rootjQuerySub)};jQuerySub.fn.init.prototype=jQuerySub.fn;var rootjQuerySub=jQuerySub(document);return jQuerySub},browser:{}});jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(i,name){class2type["[object "+name+"]"]=name.toLowerCase()});browserMatch=jQuery.uaMatch(userAgent);if(browserMatch.browser){jQuery.browser[browserMatch.browser]=true;jQuery.browser.version=browserMatch.version}if(jQuery.browser.webkit){jQuery.browser.safari=true}if(rnotwhite.test("\xA0")){trimLeft=/^[\s\xA0]+/;trimRight=/[\s\xA0]+$/}rootjQuery=jQuery(document);if(document.addEventListener){DOMContentLoaded=function(){document.removeEventListener("DOMContentLoaded",DOMContentLoaded,false);jQuery.ready()}}else{if(document.attachEvent){DOMContentLoaded=function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",DOMContentLoaded);jQuery.ready()}}}}function doScrollCheck(){if(jQuery.isReady){return}try{document.documentElement.doScroll("left")}catch(e){setTimeout(doScrollCheck,1);return}jQuery.ready()}return jQuery})();var promiseMethods="done fail isResolved isRejected promise then always pipe".split(" "),sliceDeferred=[].slice;jQuery.extend({_Deferred:function(){var callbacks=[],fired,firing,cancelled,deferred={done:function(){if(!cancelled){var args=arguments,i,length,elem,type,_fired;if(fired){_fired=fired;fired=0}for(i=0,length=args.length;i<length;i++){elem=args[i];type=jQuery.type(elem);if(type==="array"){deferred.done.apply(deferred,elem)}else{if(type==="function"){callbacks.push(elem)}}}if(_fired){deferred.resolveWith(_fired[0],_fired[1])}}return this},resolveWith:function(context,args){if(!cancelled&&!fired&&!firing){args=args||[];firing=1;try{while(callbacks[0]){callbacks.shift().apply(context,args)}}finally{fired=[context,args];firing=0}}return this},resolve:function(){deferred.resolveWith(this,arguments);return this},isResolved:function(){return !!(firing||fired)},cancel:function(){cancelled=1;callbacks=[];return this}};return deferred},Deferred:function(func){var deferred=jQuery._Deferred(),failDeferred=jQuery._Deferred(),promise;jQuery.extend(deferred,{then:function(doneCallbacks,failCallbacks){deferred.done(doneCallbacks).fail(failCallbacks);return this},always:function(){return deferred.done.apply(deferred,arguments).fail.apply(this,arguments)},fail:failDeferred.done,rejectWith:failDeferred.resolveWith,reject:failDeferred.resolve,isRejected:failDeferred.isResolved,pipe:function(fnDone,fnFail){return jQuery.Deferred(function(newDefer){jQuery.each({done:[fnDone,"resolve"],fail:[fnFail,"reject"]},function(handler,data){var fn=data[0],action=data[1],returned;if(jQuery.isFunction(fn)){deferred[handler](function(){returned=fn.apply(this,arguments);if(returned&&jQuery.isFunction(returned.promise)){returned.promise().then(newDefer.resolve,newDefer.reject)}else{newDefer[action](returned)}})}else{deferred[handler](newDefer[action])}})}).promise()},promise:function(obj){if(obj==null){if(promise){return promise}promise=obj={}}var i=promiseMethods.length;while(i--){obj[promiseMethods[i]]=deferred[promiseMethods[i]]}return obj}});deferred.done(failDeferred.cancel).fail(deferred.cancel);delete deferred.cancel;if(func){func.call(deferred,deferred)}return deferred},when:function(firstParam){var args=arguments,i=0,length=args.length,count=length,deferred=length<=1&&firstParam&&jQuery.isFunction(firstParam.promise)?firstParam:jQuery.Deferred();function resolveFunc(i){return function(value){args[i]=arguments.length>1?sliceDeferred.call(arguments,0):value;if(!(--count)){deferred.resolveWith(deferred,sliceDeferred.call(args,0))}}}if(length>1){for(;i<length;i++){if(args[i]&&jQuery.isFunction(args[i].promise)){args[i].promise().then(resolveFunc(i),deferred.reject)}else{--count}}if(!count){deferred.resolveWith(deferred,args)}}else{if(deferred!==firstParam){deferred.resolveWith(deferred,length?[firstParam]:[])}}return deferred.promise()}});jQuery.support=(function(){var div=document.createElement("div"),documentElement=document.documentElement,all,a,select,opt,input,marginDiv,support,fragment,body,testElementParent,testElement,testElementStyle,tds,events,eventName,i,isSupported;div.setAttribute("className","t");div.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";all=div.getElementsByTagName("*");a=div.getElementsByTagName("a")[0];if(!all||!all.length||!a){return{}}select=document.createElement("select");opt=select.appendChild(document.createElement("option"));input=div.getElementsByTagName("input")[0];support={leadingWhitespace:(div.firstChild.nodeType===3),tbody:!div.getElementsByTagName("tbody").length,htmlSerialize:!!div.getElementsByTagName("link").length,style:/top/.test(a.getAttribute("style")),hrefNormalized:(a.getAttribute("href")==="/a"),opacity:/^0.55$/.test(a.style.opacity),cssFloat:!!a.style.cssFloat,checkOn:(input.value==="on"),optSelected:opt.selected,getSetAttribute:div.className!=="t",submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true};input.checked=true;support.noCloneChecked=input.cloneNode(true).checked;select.disabled=true;support.optDisabled=!opt.disabled;try{delete div.test}catch(e){support.deleteExpando=false}if(!div.addEventListener&&div.attachEvent&&div.fireEvent){div.attachEvent("onclick",function(){support.noCloneEvent=false});div.cloneNode(true).fireEvent("onclick")}input=document.createElement("input");input.value="t";input.setAttribute("type","radio");support.radioValue=input.value==="t";input.setAttribute("checked","checked");div.appendChild(input);fragment=document.createDocumentFragment();fragment.appendChild(div.firstChild);support.checkClone=fragment.cloneNode(true).cloneNode(true).lastChild.checked;div.innerHTML="";div.style.width=div.style.paddingLeft="1px";body=document.getElementsByTagName("body")[0];testElement=document.createElement(body?"div":"body");testElementStyle={visibility:"hidden",width:0,height:0,border:0,margin:0};if(body){jQuery.extend(testElementStyle,{position:"absolute",left:-1000,top:-1000})}for(i in testElementStyle){testElement.style[i]=testElementStyle[i]}testElement.appendChild(div);testElementParent=body||documentElement;testElementParent.insertBefore(testElement,testElementParent.firstChild);support.appendChecked=input.checked;support.boxModel=div.offsetWidth===2;if("zoom" in div.style){div.style.display="inline";div.style.zoom=1;support.inlineBlockNeedsLayout=(div.offsetWidth===2);div.style.display="";div.innerHTML="<div style='width:4px;'></div>";support.shrinkWrapBlocks=(div.offsetWidth!==2)}div.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";tds=div.getElementsByTagName("td");isSupported=(tds[0].offsetHeight===0);tds[0].style.display="";tds[1].style.display="none";support.reliableHiddenOffsets=isSupported&&(tds[0].offsetHeight===0);div.innerHTML="";if(document.defaultView&&document.defaultView.getComputedStyle){marginDiv=document.createElement("div");marginDiv.style.width="0";marginDiv.style.marginRight="0";div.appendChild(marginDiv);support.reliableMarginRight=(parseInt((document.defaultView.getComputedStyle(marginDiv,null)||{marginRight:0}).marginRight,10)||0)===0}testElement.innerHTML="";testElementParent.removeChild(testElement);if(div.attachEvent){for(i in {submit:1,change:1,focusin:1}){eventName="on"+i;isSupported=(eventName in div);if(!isSupported){div.setAttribute(eventName,"return;");isSupported=(typeof div[eventName]==="function")}support[i+"Bubbles"]=isSupported}}testElement=fragment=select=opt=body=marginDiv=div=input=null;return support})();jQuery.boxModel=jQuery.support.boxModel;var rbrace=/^(?:\{.*\}|\[.*\])$/,rmultiDash=/([a-z])([A-Z])/g;jQuery.extend({cache:{},uuid:0,expando:"jQuery"+(jQuery.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(elem){elem=elem.nodeType?jQuery.cache[elem[jQuery.expando]]:elem[jQuery.expando];return !!elem&&!isEmptyDataObject(elem)},data:function(elem,name,data,pvt){if(!jQuery.acceptData(elem)){return}var internalKey=jQuery.expando,getByName=typeof name==="string",thisCache,isNode=elem.nodeType,cache=isNode?jQuery.cache:elem,id=isNode?elem[jQuery.expando]:elem[jQuery.expando]&&jQuery.expando;if((!id||(pvt&&id&&!cache[id][internalKey]))&&getByName&&data===undefined){return}if(!id){if(isNode){elem[jQuery.expando]=id=++jQuery.uuid}else{id=jQuery.expando}}if(!cache[id]){cache[id]={};if(!isNode){cache[id].toJSON=jQuery.noop}}if(typeof name==="object"||typeof name==="function"){if(pvt){cache[id][internalKey]=jQuery.extend(cache[id][internalKey],name)}else{cache[id]=jQuery.extend(cache[id],name)}}thisCache=cache[id];if(pvt){if(!thisCache[internalKey]){thisCache[internalKey]={}}thisCache=thisCache[internalKey]}if(data!==undefined){thisCache[jQuery.camelCase(name)]=data}if(name==="events"&&!thisCache[name]){return thisCache[internalKey]&&thisCache[internalKey].events}return getByName?thisCache[jQuery.camelCase(name)]||thisCache[name]:thisCache},removeData:function(elem,name,pvt){if(!jQuery.acceptData(elem)){return}var internalKey=jQuery.expando,isNode=elem.nodeType,cache=isNode?jQuery.cache:elem,id=isNode?elem[jQuery.expando]:jQuery.expando;if(!cache[id]){return}if(name){var thisCache=pvt?cache[id][internalKey]:cache[id];if(thisCache){delete thisCache[name];if(!isEmptyDataObject(thisCache)){return}}}if(pvt){delete cache[id][internalKey];if(!isEmptyDataObject(cache[id])){return}}var internalCache=cache[id][internalKey];if(jQuery.support.deleteExpando||cache!=window){delete cache[id]}else{cache[id]=null}if(internalCache){cache[id]={};if(!isNode){cache[id].toJSON=jQuery.noop}cache[id][internalKey]=internalCache}else{if(isNode){if(jQuery.support.deleteExpando){delete elem[jQuery.expando]}else{if(elem.removeAttribute){elem.removeAttribute(jQuery.expando)}else{elem[jQuery.expando]=null}}}}},_data:function(elem,name,data){return jQuery.data(elem,name,data,true)},acceptData:function(elem){if(elem.nodeName){var match=jQuery.noData[elem.nodeName.toLowerCase()];if(match){return !(match===true||elem.getAttribute("classid")!==match)}}return true}});jQuery.fn.extend({data:function(key,value){var data=null;if(typeof key==="undefined"){if(this.length){data=jQuery.data(this[0]);if(this[0].nodeType===1){var attr=this[0].attributes,name;for(var i=0,l=attr.length;i<l;i++){name=attr[i].name;if(name.indexOf("data-")===0){name=jQuery.camelCase(name.substring(5));dataAttr(this[0],name,data[name])}}}}return data}else{if(typeof key==="object"){return this.each(function(){jQuery.data(this,key)})}}var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined){data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);if(data===undefined&&this.length){data=jQuery.data(this[0],key);data=dataAttr(this[0],key,data)}return data===undefined&&parts[1]?this.data(parts[0]):data}else{return this.each(function(){var $this=jQuery(this),args=[parts[0],value];$this.triggerHandler("setData"+parts[1]+"!",args);jQuery.data(this,key,value);$this.triggerHandler("changeData"+parts[1]+"!",args)})}},removeData:function(key){return this.each(function(){jQuery.removeData(this,key)})}});function dataAttr(elem,key,data){if(data===undefined&&elem.nodeType===1){var name="data-"+key.replace(rmultiDash,"$1-$2").toLowerCase();data=elem.getAttribute(name);if(typeof data==="string"){try{data=data==="true"?true:data==="false"?false:data==="null"?null:!jQuery.isNaN(data)?parseFloat(data):rbrace.test(data)?jQuery.parseJSON(data):data}catch(e){}jQuery.data(elem,key,data)}else{data=undefined}}return data}function isEmptyDataObject(obj){for(var name in obj){if(name!=="toJSON"){return false}}return true}function handleQueueMarkDefer(elem,type,src){var deferDataKey=type+"defer",queueDataKey=type+"queue",markDataKey=type+"mark",defer=jQuery.data(elem,deferDataKey,undefined,true);if(defer&&(src==="queue"||!jQuery.data(elem,queueDataKey,undefined,true))&&(src==="mark"||!jQuery.data(elem,markDataKey,undefined,true))){setTimeout(function(){if(!jQuery.data(elem,queueDataKey,undefined,true)&&!jQuery.data(elem,markDataKey,undefined,true)){jQuery.removeData(elem,deferDataKey,true);defer.resolve()}},0)}}jQuery.extend({_mark:function(elem,type){if(elem){type=(type||"fx")+"mark";jQuery.data(elem,type,(jQuery.data(elem,type,undefined,true)||0)+1,true)}},_unmark:function(force,elem,type){if(force!==true){type=elem;elem=force;force=false}if(elem){type=type||"fx";var key=type+"mark",count=force?0:((jQuery.data(elem,key,undefined,true)||1)-1);if(count){jQuery.data(elem,key,count,true)}else{jQuery.removeData(elem,key,true);handleQueueMarkDefer(elem,type,"mark")}}},queue:function(elem,type,data){if(elem){type=(type||"fx")+"queue";var q=jQuery.data(elem,type,undefined,true);if(data){if(!q||jQuery.isArray(data)){q=jQuery.data(elem,type,jQuery.makeArray(data),true)}else{q.push(data)}}return q||[]}},dequeue:function(elem,type){type=type||"fx";var queue=jQuery.queue(elem,type),fn=queue.shift(),defer;if(fn==="inprogress"){fn=queue.shift()}if(fn){if(type==="fx"){queue.unshift("inprogress")}fn.call(elem,function(){jQuery.dequeue(elem,type)})}if(!queue.length){jQuery.removeData(elem,type+"queue",true);handleQueueMarkDefer(elem,type,"queue")}}});jQuery.fn.extend({queue:function(type,data){if(typeof type!=="string"){data=type;type="fx"}if(data===undefined){return jQuery.queue(this[0],type)}return this.each(function(){var queue=jQuery.queue(this,type,data);if(type==="fx"&&queue[0]!=="inprogress"){jQuery.dequeue(this,type)}})},dequeue:function(type){return this.each(function(){jQuery.dequeue(this,type)})},delay:function(time,type){time=jQuery.fx?jQuery.fx.speeds[time]||time:time;type=type||"fx";return this.queue(type,function(){var elem=this;setTimeout(function(){jQuery.dequeue(elem,type)},time)})},clearQueue:function(type){return this.queue(type||"fx",[])},promise:function(type,object){if(typeof type!=="string"){object=type;type=undefined}type=type||"fx";var defer=jQuery.Deferred(),elements=this,i=elements.length,count=1,deferDataKey=type+"defer",queueDataKey=type+"queue",markDataKey=type+"mark",tmp;function resolve(){if(!(--count)){defer.resolveWith(elements,[elements])}}while(i--){if((tmp=jQuery.data(elements[i],deferDataKey,undefined,true)||(jQuery.data(elements[i],queueDataKey,undefined,true)||jQuery.data(elements[i],markDataKey,undefined,true))&&jQuery.data(elements[i],deferDataKey,jQuery._Deferred(),true))){count++;tmp.done(resolve)}}resolve();return defer.promise()}});var rclass=/[\n\t\r]/g,rspace=/\s+/,rreturn=/\r/g,rtype=/^(?:button|input)$/i,rfocusable=/^(?:button|input|object|select|textarea)$/i,rclickable=/^a(?:rea)?$/i,rboolean=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,rinvalidChar=/\:|^on/,formHook,boolHook;jQuery.fn.extend({attr:function(name,value){return jQuery.access(this,name,value,true,jQuery.attr)},removeAttr:function(name){return this.each(function(){jQuery.removeAttr(this,name)})},prop:function(name,value){return jQuery.access(this,name,value,true,jQuery.prop)},removeProp:function(name){name=jQuery.propFix[name]||name;return this.each(function(){try{this[name]=undefined;delete this[name]}catch(e){}})},addClass:function(value){var classNames,i,l,elem,setClass,c,cl;if(jQuery.isFunction(value)){return this.each(function(j){jQuery(this).addClass(value.call(this,j,this.className))})}if(value&&typeof value==="string"){classNames=value.split(rspace);for(i=0,l=this.length;i<l;i++){elem=this[i];if(elem.nodeType===1){if(!elem.className&&classNames.length===1){elem.className=value}else{setClass=" "+elem.className+" ";for(c=0,cl=classNames.length;c<cl;c++){if(!~setClass.indexOf(" "+classNames[c]+" ")){setClass+=classNames[c]+" "}}elem.className=jQuery.trim(setClass)}}}}return this},removeClass:function(value){var classNames,i,l,elem,className,c,cl;if(jQuery.isFunction(value)){return this.each(function(j){jQuery(this).removeClass(value.call(this,j,this.className))})}if((value&&typeof value==="string")||value===undefined){classNames=(value||"").split(rspace);for(i=0,l=this.length;i<l;i++){elem=this[i];if(elem.nodeType===1&&elem.className){if(value){className=(" "+elem.className+" ").replace(rclass," ");for(c=0,cl=classNames.length;c<cl;c++){className=className.replace(" "+classNames[c]+" "," ")}elem.className=jQuery.trim(className)}else{elem.className=""}}}}return this},toggleClass:function(value,stateVal){var type=typeof value,isBool=typeof stateVal==="boolean";if(jQuery.isFunction(value)){return this.each(function(i){jQuery(this).toggleClass(value.call(this,i,this.className,stateVal),stateVal)})}return this.each(function(){if(type==="string"){var className,i=0,self=jQuery(this),state=stateVal,classNames=value.split(rspace);while((className=classNames[i++])){state=isBool?state:!self.hasClass(className);self[state?"addClass":"removeClass"](className)}}else{if(type==="undefined"||type==="boolean"){if(this.className){jQuery._data(this,"__className__",this.className)}this.className=this.className||value===false?"":jQuery._data(this,"__className__")||""}}})},hasClass:function(selector){var className=" "+selector+" ";for(var i=0,l=this.length;i<l;i++){if((" "+this[i].className+" ").replace(rclass," ").indexOf(className)>-1){return true}}return false},val:function(value){var hooks,ret,elem=this[0];if(!arguments.length){if(elem){hooks=jQuery.valHooks[elem.nodeName.toLowerCase()]||jQuery.valHooks[elem.type];if(hooks&&"get" in hooks&&(ret=hooks.get(elem,"value"))!==undefined){return ret}ret=elem.value;return typeof ret==="string"?ret.replace(rreturn,""):ret==null?"":ret}return undefined}var isFunction=jQuery.isFunction(value);return this.each(function(i){var self=jQuery(this),val;if(this.nodeType!==1){return}if(isFunction){val=value.call(this,i,self.val())}else{val=value}if(val==null){val=""}else{if(typeof val==="number"){val+=""}else{if(jQuery.isArray(val)){val=jQuery.map(val,function(value){return value==null?"":value+""})}}}hooks=jQuery.valHooks[this.nodeName.toLowerCase()]||jQuery.valHooks[this.type];if(!hooks||!("set" in hooks)||hooks.set(this,val,"value")===undefined){this.value=val}})}});jQuery.extend({valHooks:{option:{get:function(elem){var val=elem.attributes.value;return !val||val.specified?elem.value:elem.text}},select:{get:function(elem){var value,index=elem.selectedIndex,values=[],options=elem.options,one=elem.type==="select-one";if(index<0){return null}for(var i=one?index:0,max=one?index+1:options.length;i<max;i++){var option=options[i];if(option.selected&&(jQuery.support.optDisabled?!option.disabled:option.getAttribute("disabled")===null)&&(!option.parentNode.disabled||!jQuery.nodeName(option.parentNode,"optgroup"))){value=jQuery(option).val();if(one){return value}values.push(value)}}if(one&&!values.length&&options.length){return jQuery(options[index]).val()}return values},set:function(elem,value){var values=jQuery.makeArray(value);jQuery(elem).find("option").each(function(){this.selected=jQuery.inArray(jQuery(this).val(),values)>=0});if(!values.length){elem.selectedIndex=-1}return values}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attrFix:{tabindex:"tabIndex"},attr:function(elem,name,value,pass){var nType=elem.nodeType;if(!elem||nType===3||nType===8||nType===2){return undefined}if(pass&&name in jQuery.attrFn){return jQuery(elem)[name](value)}if(!("getAttribute" in elem)){return jQuery.prop(elem,name,value)}var ret,hooks,notxml=nType!==1||!jQuery.isXMLDoc(elem);if(notxml){name=jQuery.attrFix[name]||name;hooks=jQuery.attrHooks[name];if(!hooks){if(rboolean.test(name)){hooks=boolHook}else{if(formHook&&name!=="className"&&(jQuery.nodeName(elem,"form")||rinvalidChar.test(name))){hooks=formHook}}}}if(value!==undefined){if(value===null){jQuery.removeAttr(elem,name);return undefined}else{if(hooks&&"set" in hooks&&notxml&&(ret=hooks.set(elem,value,name))!==undefined){return ret}else{elem.setAttribute(name,""+value);return value}}}else{if(hooks&&"get" in hooks&&notxml&&(ret=hooks.get(elem,name))!==null){return ret}else{ret=elem.getAttribute(name);return ret===null?undefined:ret}}},removeAttr:function(elem,name){var propName;if(elem.nodeType===1){name=jQuery.attrFix[name]||name;if(jQuery.support.getSetAttribute){elem.removeAttribute(name)}else{jQuery.attr(elem,name,"");elem.removeAttributeNode(elem.getAttributeNode(name))}if(rboolean.test(name)&&(propName=jQuery.propFix[name]||name) in elem){elem[propName]=false}}},attrHooks:{type:{set:function(elem,value){if(rtype.test(elem.nodeName)&&elem.parentNode){jQuery.error("type property can't be changed")}else{if(!jQuery.support.radioValue&&value==="radio"&&jQuery.nodeName(elem,"input")){var val=elem.value;elem.setAttribute("type",value);if(val){elem.value=val}return value}}}},tabIndex:{get:function(elem){var attributeNode=elem.getAttributeNode("tabIndex");return attributeNode&&attributeNode.specified?parseInt(attributeNode.value,10):rfocusable.test(elem.nodeName)||rclickable.test(elem.nodeName)&&elem.href?0:undefined}},value:{get:function(elem,name){if(formHook&&jQuery.nodeName(elem,"button")){return formHook.get(elem,name)}return name in elem?elem.value:null},set:function(elem,value,name){if(formHook&&jQuery.nodeName(elem,"button")){return formHook.set(elem,value,name)}elem.value=value}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(elem,name,value){var nType=elem.nodeType;if(!elem||nType===3||nType===8||nType===2){return undefined}var ret,hooks,notxml=nType!==1||!jQuery.isXMLDoc(elem);if(notxml){name=jQuery.propFix[name]||name;hooks=jQuery.propHooks[name]}if(value!==undefined){if(hooks&&"set" in hooks&&(ret=hooks.set(elem,value,name))!==undefined){return ret}else{return(elem[name]=value)}}else{if(hooks&&"get" in hooks&&(ret=hooks.get(elem,name))!==undefined){return ret}else{return elem[name]}}},propHooks:{}});boolHook={get:function(elem,name){return jQuery.prop(elem,name)?name.toLowerCase():undefined},set:function(elem,value,name){var propName;if(value===false){jQuery.removeAttr(elem,name)}else{propName=jQuery.propFix[name]||name;if(propName in elem){elem[propName]=true}elem.setAttribute(name,name.toLowerCase())}return name}};if(!jQuery.support.getSetAttribute){jQuery.attrFix=jQuery.propFix;formHook=jQuery.attrHooks.name=jQuery.attrHooks.title=jQuery.valHooks.button={get:function(elem,name){var ret;ret=elem.getAttributeNode(name);return ret&&ret.nodeValue!==""?ret.nodeValue:undefined},set:function(elem,value,name){var ret=elem.getAttributeNode(name);if(ret){ret.nodeValue=value;return value}}};jQuery.each(["width","height"],function(i,name){jQuery.attrHooks[name]=jQuery.extend(jQuery.attrHooks[name],{set:function(elem,value){if(value===""){elem.setAttribute(name,"auto");return value}}})})}if(!jQuery.support.hrefNormalized){jQuery.each(["href","src","width","height"],function(i,name){jQuery.attrHooks[name]=jQuery.extend(jQuery.attrHooks[name],{get:function(elem){var ret=elem.getAttribute(name,2);return ret===null?undefined:ret}})})}if(!jQuery.support.style){jQuery.attrHooks.style={get:function(elem){return elem.style.cssText.toLowerCase()||undefined},set:function(elem,value){return(elem.style.cssText=""+value)}}}if(!jQuery.support.optSelected){jQuery.propHooks.selected=jQuery.extend(jQuery.propHooks.selected,{get:function(elem){var parent=elem.parentNode;if(parent){parent.selectedIndex;if(parent.parentNode){parent.parentNode.selectedIndex}}}})}if(!jQuery.support.checkOn){jQuery.each(["radio","checkbox"],function(){jQuery.valHooks[this]={get:function(elem){return elem.getAttribute("value")===null?"on":elem.value}}})}jQuery.each(["radio","checkbox"],function(){jQuery.valHooks[this]=jQuery.extend(jQuery.valHooks[this],{set:function(elem,value){if(jQuery.isArray(value)){return(elem.checked=jQuery.inArray(jQuery(elem).val(),value)>=0)}}})});var rnamespaces=/\.(.*)$/,rformElems=/^(?:textarea|input|select)$/i,rperiod=/\./g,rspaces=/ /g,rescape=/[^\w\s.|`]/g,fcleanup=function(nm){return nm.replace(rescape,"\\$&")};jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType===3||elem.nodeType===8){return}if(handler===false){handler=returnFalse}else{if(!handler){return}}var handleObjIn,handleObj;if(handler.handler){handleObjIn=handler;handler=handleObjIn.handler}if(!handler.guid){handler.guid=jQuery.guid++}var elemData=jQuery._data(elem);if(!elemData){return}var events=elemData.events,eventHandle=elemData.handle;if(!events){elemData.events=events={}}if(!eventHandle){elemData.handle=eventHandle=function(e){return typeof jQuery!=="undefined"&&(!e||jQuery.event.triggered!==e.type)?jQuery.event.handle.apply(eventHandle.elem,arguments):undefined}}eventHandle.elem=elem;types=types.split(" ");var type,i=0,namespaces;while((type=types[i++])){handleObj=handleObjIn?jQuery.extend({},handleObjIn):{handler:handler,data:data};if(type.indexOf(".")>-1){namespaces=type.split(".");type=namespaces.shift();handleObj.namespace=namespaces.slice(0).sort().join(".")}else{namespaces=[];handleObj.namespace=""}handleObj.type=type;if(!handleObj.guid){handleObj.guid=handler.guid}var handlers=events[type],special=jQuery.event.special[type]||{};if(!handlers){handlers=events[type]=[];if(!special.setup||special.setup.call(elem,data,namespaces,eventHandle)===false){if(elem.addEventListener){elem.addEventListener(type,eventHandle,false)}else{if(elem.attachEvent){elem.attachEvent("on"+type,eventHandle)}}}}if(special.add){special.add.call(elem,handleObj);if(!handleObj.handler.guid){handleObj.handler.guid=handler.guid}}handlers.push(handleObj);jQuery.event.global[type]=true}elem=null},global:{},remove:function(elem,types,handler,pos){if(elem.nodeType===3||elem.nodeType===8){return}if(handler===false){handler=returnFalse}var ret,type,fn,j,i=0,all,namespaces,namespace,special,eventType,handleObj,origType,elemData=jQuery.hasData(elem)&&jQuery._data(elem),events=elemData&&elemData.events;if(!elemData||!events){return}if(types&&types.type){handler=types.handler;types=types.type}if(!types||typeof types==="string"&&types.charAt(0)==="."){types=types||"";for(type in events){jQuery.event.remove(elem,type+types)}return}types=types.split(" ");while((type=types[i++])){origType=type;handleObj=null;all=type.indexOf(".")<0;namespaces=[];if(!all){namespaces=type.split(".");type=namespaces.shift();namespace=new RegExp("(^|\\.)"+jQuery.map(namespaces.slice(0).sort(),fcleanup).join("\\.(?:.*\\.)?")+"(\\.|$)")}eventType=events[type];if(!eventType){continue}if(!handler){for(j=0;j<eventType.length;j++){handleObj=eventType[j];if(all||namespace.test(handleObj.namespace)){jQuery.event.remove(elem,origType,handleObj.handler,j);eventType.splice(j--,1)}}continue}special=jQuery.event.special[type]||{};for(j=pos||0;j<eventType.length;j++){handleObj=eventType[j];if(handler.guid===handleObj.guid){if(all||namespace.test(handleObj.namespace)){if(pos==null){eventType.splice(j--,1)}if(special.remove){special.remove.call(elem,handleObj)}}if(pos!=null){break}}}if(eventType.length===0||pos!=null&&eventType.length===1){if(!special.teardown||special.teardown.call(elem,namespaces)===false){jQuery.removeEvent(elem,type,elemData.handle)}ret=null;delete events[type]}}if(jQuery.isEmptyObject(events)){var handle=elemData.handle;if(handle){handle.elem=null}delete elemData.events;delete elemData.handle;if(jQuery.isEmptyObject(elemData)){jQuery.removeData(elem,undefined,true)}}},customEvent:{getData:true,setData:true,changeData:true},trigger:function(event,data,elem,onlyHandlers){var type=event.type||event,namespaces=[],exclusive;if(type.indexOf("!")>=0){type=type.slice(0,-1);exclusive=true}if(type.indexOf(".")>=0){namespaces=type.split(".");type=namespaces.shift();namespaces.sort()}if((!elem||jQuery.event.customEvent[type])&&!jQuery.event.global[type]){return}event=typeof event==="object"?event[jQuery.expando]?event:new jQuery.Event(type,event):new jQuery.Event(type);event.type=type;event.exclusive=exclusive;event.namespace=namespaces.join(".");event.namespace_re=new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.)?")+"(\\.|$)");if(onlyHandlers||!elem){event.preventDefault();event.stopPropagation()}if(!elem){jQuery.each(jQuery.cache,function(){var internalKey=jQuery.expando,internalCache=this[internalKey];if(internalCache&&internalCache.events&&internalCache.events[type]){jQuery.event.trigger(event,data,internalCache.handle.elem)}});return}if(elem.nodeType===3||elem.nodeType===8){return}event.result=undefined;event.target=elem;data=data!=null?jQuery.makeArray(data):[];data.unshift(event);var cur=elem,ontype=type.indexOf(":")<0?"on"+type:"";do{var handle=jQuery._data(cur,"handle");event.currentTarget=cur;if(handle){handle.apply(cur,data)}if(ontype&&jQuery.acceptData(cur)&&cur[ontype]&&cur[ontype].apply(cur,data)===false){event.result=false;event.preventDefault()}cur=cur.parentNode||cur.ownerDocument||cur===event.target.ownerDocument&&window}while(cur&&!event.isPropagationStopped());if(!event.isDefaultPrevented()){var old,special=jQuery.event.special[type]||{};if((!special._default||special._default.call(elem.ownerDocument,event)===false)&&!(type==="click"&&jQuery.nodeName(elem,"a"))&&jQuery.acceptData(elem)){try{if(ontype&&elem[type]){old=elem[ontype];if(old){elem[ontype]=null}jQuery.event.triggered=type;elem[type]()}}catch(ieError){}if(old){elem[ontype]=old}jQuery.event.triggered=undefined}}return event.result},handle:function(event){event=jQuery.event.fix(event||window.event);var handlers=((jQuery._data(this,"events")||{})[event.type]||[]).slice(0),run_all=!event.exclusive&&!event.namespace,args=Array.prototype.slice.call(arguments,0);args[0]=event;event.currentTarget=this;for(var j=0,l=handlers.length;j<l;j++){var handleObj=handlers[j];if(run_all||event.namespace_re.test(handleObj.namespace)){event.handler=handleObj.handler;event.data=handleObj.data;event.handleObj=handleObj;var ret=handleObj.handler.apply(this,args);if(ret!==undefined){event.result=ret;if(ret===false){event.preventDefault();event.stopPropagation()}}if(event.isImmediatePropagationStopped()){break}}}return event.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 pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(event){if(event[jQuery.expando]){return event}var originalEvent=event;event=jQuery.Event(originalEvent);for(var i=this.props.length,prop;i;){prop=this.props[--i];event[prop]=originalEvent[prop]}if(!event.target){event.target=event.srcElement||document}if(event.target.nodeType===3){event.target=event.target.parentNode}if(!event.relatedTarget&&event.fromElement){event.relatedTarget=event.fromElement===event.target?event.toElement:event.fromElement}if(event.pageX==null&&event.clientX!=null){var eventDocument=event.target.ownerDocument||document,doc=eventDocument.documentElement,body=eventDocument.body;event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc&&doc.clientLeft||body&&body.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc&&doc.clientTop||body&&body.clientTop||0)}if(event.which==null&&(event.charCode!=null||event.keyCode!=null)){event.which=event.charCode!=null?event.charCode:event.keyCode}if(!event.metaKey&&event.ctrlKey){event.metaKey=event.ctrlKey}if(!event.which&&event.button!==undefined){event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)))}return event},guid:100000000,proxy:jQuery.proxy,special:{ready:{setup:jQuery.bindReady,teardown:jQuery.noop},live:{add:function(handleObj){jQuery.event.add(this,liveConvert(handleObj.origType,handleObj.selector),jQuery.extend({},handleObj,{handler:liveHandler,guid:handleObj.handler.guid}))},remove:function(handleObj){jQuery.event.remove(this,liveConvert(handleObj.origType,handleObj.selector),handleObj)}},beforeunload:{setup:function(data,namespaces,eventHandle){if(jQuery.isWindow(this)){this.onbeforeunload=eventHandle}},teardown:function(namespaces,eventHandle){if(this.onbeforeunload===eventHandle){this.onbeforeunload=null}}}}};jQuery.removeEvent=document.removeEventListener?function(elem,type,handle){if(elem.removeEventListener){elem.removeEventListener(type,handle,false)}}:function(elem,type,handle){if(elem.detachEvent){elem.detachEvent("on"+type,handle)}};jQuery.Event=function(src,props){if(!this.preventDefault){return new jQuery.Event(src,props)}if(src&&src.type){this.originalEvent=src;this.type=src.type;this.isDefaultPrevented=(src.defaultPrevented||src.returnValue===false||src.getPreventDefault&&src.getPreventDefault())?returnTrue:returnFalse}else{this.type=src}if(props){jQuery.extend(this,props)}this.timeStamp=jQuery.now();this[jQuery.expando]=true};function returnFalse(){return false}function returnTrue(){return true}jQuery.Event.prototype={preventDefault:function(){this.isDefaultPrevented=returnTrue;var e=this.originalEvent;if(!e){return}if(e.preventDefault){e.preventDefault()}else{e.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=returnTrue;var e=this.originalEvent;if(!e){return}if(e.stopPropagation){e.stopPropagation()}e.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=returnTrue;this.stopPropagation()},isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse};var withinElement=function(event){var related=event.relatedTarget,inside=false,eventType=event.type;event.type=event.data;if(related!==this){if(related){inside=jQuery.contains(this,related)}if(!inside){jQuery.event.handle.apply(this,arguments);event.type=eventType}}},delegate=function(event){event.type=event.data;jQuery.event.handle.apply(this,arguments)};jQuery.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(orig,fix){jQuery.event.special[orig]={setup:function(data){jQuery.event.add(this,fix,data&&data.selector?delegate:withinElement,orig)},teardown:function(data){jQuery.event.remove(this,fix,data&&data.selector?delegate:withinElement)}}});if(!jQuery.support.submitBubbles){jQuery.event.special.submit={setup:function(data,namespaces){if(!jQuery.nodeName(this,"form")){jQuery.event.add(this,"click.specialSubmit",function(e){var elem=e.target,type=elem.type;if((type==="submit"||type==="image")&&jQuery(elem).closest("form").length){trigger("submit",this,arguments)}});jQuery.event.add(this,"keypress.specialSubmit",function(e){var elem=e.target,type=elem.type;if((type==="text"||type==="password")&&jQuery(elem).closest("form").length&&e.keyCode===13){trigger("submit",this,arguments)}})}else{return false}},teardown:function(namespaces){jQuery.event.remove(this,".specialSubmit")}}}if(!jQuery.support.changeBubbles){var changeFilters,getVal=function(elem){var type=elem.type,val=elem.value;if(type==="radio"||type==="checkbox"){val=elem.checked}else{if(type==="select-multiple"){val=elem.selectedIndex>-1?jQuery.map(elem.options,function(elem){return elem.selected}).join("-"):""}else{if(jQuery.nodeName(elem,"select")){val=elem.selectedIndex}}}return val},testChange=function testChange(e){var elem=e.target,data,val;if(!rformElems.test(elem.nodeName)||elem.readOnly){return}data=jQuery._data(elem,"_change_data");val=getVal(elem);if(e.type!=="focusout"||elem.type!=="radio"){jQuery._data(elem,"_change_data",val)}if(data===undefined||val===data){return}if(data!=null||val){e.type="change";e.liveFired=undefined;jQuery.event.trigger(e,arguments[1],elem)}};jQuery.event.special.change={filters:{focusout:testChange,beforedeactivate:testChange,click:function(e){var elem=e.target,type=jQuery.nodeName(elem,"input")?elem.type:"";if(type==="radio"||type==="checkbox"||jQuery.nodeName(elem,"select")){testChange.call(this,e)}},keydown:function(e){var elem=e.target,type=jQuery.nodeName(elem,"input")?elem.type:"";if((e.keyCode===13&&!jQuery.nodeName(elem,"textarea"))||(e.keyCode===32&&(type==="checkbox"||type==="radio"))||type==="select-multiple"){testChange.call(this,e)}},beforeactivate:function(e){var elem=e.target;jQuery._data(elem,"_change_data",getVal(elem))}},setup:function(data,namespaces){if(this.type==="file"){return false}for(var type in changeFilters){jQuery.event.add(this,type+".specialChange",changeFilters[type])}return rformElems.test(this.nodeName)},teardown:function(namespaces){jQuery.event.remove(this,".specialChange");return rformElems.test(this.nodeName)}};changeFilters=jQuery.event.special.change.filters;changeFilters.focus=changeFilters.beforeactivate}function trigger(type,elem,args){var event=jQuery.extend({},args[0]);event.type=type;event.originalEvent={};event.liveFired=undefined;jQuery.event.handle.call(elem,event);if(event.isDefaultPrevented()){args[0].preventDefault()}}if(!jQuery.support.focusinBubbles){jQuery.each({focus:"focusin",blur:"focusout"},function(orig,fix){var attaches=0;jQuery.event.special[fix]={setup:function(){if(attaches++===0){document.addEventListener(orig,handler,true)}},teardown:function(){if(--attaches===0){document.removeEventListener(orig,handler,true)}}};function handler(donor){var e=jQuery.event.fix(donor);e.type=fix;e.originalEvent={};jQuery.event.trigger(e,null,e.target);if(e.isDefaultPrevented()){donor.preventDefault()}}})}jQuery.each(["bind","one"],function(i,name){jQuery.fn[name]=function(type,data,fn){var handler;if(typeof type==="object"){for(var key in type){this[name](key,data,type[key],fn)}return this}if(arguments.length===2||data===false){fn=data;data=undefined}if(name==="one"){handler=function(event){jQuery(this).unbind(event,handler);return fn.apply(this,arguments)};handler.guid=fn.guid||jQuery.guid++}else{handler=fn}if(type==="unload"&&name!=="one"){this.one(type,data,fn)}else{for(var i=0,l=this.length;i<l;i++){jQuery.event.add(this[i],type,handler,data)}}return this}});jQuery.fn.extend({unbind:function(type,fn){if(typeof type==="object"&&!type.preventDefault){for(var key in type){this.unbind(key,type[key])}}else{for(var i=0,l=this.length;i<l;i++){jQuery.event.remove(this[i],type,fn)}}return this},delegate:function(selector,types,data,fn){return this.live(types,data,fn,selector)},undelegate:function(selector,types,fn){if(arguments.length===0){return this.unbind("live")}else{return this.die(types,null,fn,selector)}},trigger:function(type,data){return this.each(function(){jQuery.event.trigger(type,data,this)})},triggerHandler:function(type,data){if(this[0]){return jQuery.event.trigger(type,data,this[0],true)}},toggle:function(fn){var args=arguments,guid=fn.guid||jQuery.guid++,i=0,toggler=function(event){var lastToggle=(jQuery.data(this,"lastToggle"+fn.guid)||0)%i;jQuery.data(this,"lastToggle"+fn.guid,lastToggle+1);event.preventDefault();return args[lastToggle].apply(this,arguments)||false};toggler.guid=guid;while(i<args.length){args[i++].guid=guid}return this.click(toggler)},hover:function(fnOver,fnOut){return this.mouseenter(fnOver).mouseleave(fnOut||fnOver)}});var liveMap={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};jQuery.each(["live","die"],function(i,name){jQuery.fn[name]=function(types,data,fn,origSelector){var type,i=0,match,namespaces,preType,selector=origSelector||this.selector,context=origSelector?this:jQuery(this.context);if(typeof types==="object"&&!types.preventDefault){for(var key in types){context[name](key,data,types[key],selector)}return this}if(name==="die"&&!types&&origSelector&&origSelector.charAt(0)==="."){context.unbind(origSelector);return this}if(data===false||jQuery.isFunction(data)){fn=data||returnFalse;data=undefined}types=(types||"").split(" ");while((type=types[i++])!=null){match=rnamespaces.exec(type);namespaces="";if(match){namespaces=match[0];type=type.replace(rnamespaces,"")}if(type==="hover"){types.push("mouseenter"+namespaces,"mouseleave"+namespaces);continue}preType=type;if(liveMap[type]){types.push(liveMap[type]+namespaces);type=type+namespaces}else{type=(liveMap[type]||type)+namespaces}if(name==="live"){for(var j=0,l=context.length;j<l;j++){jQuery.event.add(context[j],"live."+liveConvert(type,selector),{data:data,selector:selector,handler:fn,origType:type,origHandler:fn,preType:preType})}}else{context.unbind("live."+liveConvert(type,selector),fn)}}return this}});function liveHandler(event){var stop,maxLevel,related,match,handleObj,elem,j,i,l,data,close,namespace,ret,elems=[],selectors=[],events=jQuery._data(this,"events");if(event.liveFired===this||!events||!events.live||event.target.disabled||event.button&&event.type==="click"){return}if(event.namespace){namespace=new RegExp("(^|\\.)"+event.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")}event.liveFired=this;var live=events.live.slice(0);for(j=0;j<live.length;j++){handleObj=live[j];if(handleObj.origType.replace(rnamespaces,"")===event.type){selectors.push(handleObj.selector)}else{live.splice(j--,1)}}match=jQuery(event.target).closest(selectors,event.currentTarget);for(i=0,l=match.length;i<l;i++){close=match[i];for(j=0;j<live.length;j++){handleObj=live[j];if(close.selector===handleObj.selector&&(!namespace||namespace.test(handleObj.namespace))&&!close.elem.disabled){elem=close.elem;related=null;if(handleObj.preType==="mouseenter"||handleObj.preType==="mouseleave"){event.type=handleObj.preType;related=jQuery(event.relatedTarget).closest(handleObj.selector)[0];if(related&&jQuery.contains(elem,related)){related=elem}}if(!related||related!==elem){elems.push({elem:elem,handleObj:handleObj,level:close.level})}}}}for(i=0,l=elems.length;i<l;i++){match=elems[i];if(maxLevel&&match.level>maxLevel){break}event.currentTarget=match.elem;event.data=match.handleObj.data;event.handleObj=match.handleObj;ret=match.handleObj.origHandler.apply(match.elem,arguments);if(ret===false||event.isPropagationStopped()){maxLevel=match.level;if(ret===false){stop=false}if(event.isImmediatePropagationStopped()){break}}}return stop}function liveConvert(type,selector){return(type&&type!=="*"?type+".":"")+selector.replace(rperiod,"`").replace(rspaces,"&")}jQuery.each(("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error").split(" "),function(i,name){jQuery.fn[name]=function(data,fn){if(fn==null){fn=data;data=null}return arguments.length>0?this.bind(name,data,fn):this.trigger(name)};if(jQuery.attrFn){jQuery.attrFn[name]=true}});
/*
 * Sizzle CSS Selector Engine
 *  Copyright 2011, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true,rBackslash=/\\/g,rNonWord=/\W/;[0,0].sort(function(){baseHasDuplicate=false;return 0});var Sizzle=function(selector,context,results,seed){results=results||[];context=context||document;var origContext=context;if(context.nodeType!==1&&context.nodeType!==9){return[]}if(!selector||typeof selector!=="string"){return results}var m,set,checkSet,extra,ret,cur,pop,i,prune=true,contextXML=Sizzle.isXML(context),parts=[],soFar=selector;do{chunker.exec("");m=chunker.exec(soFar);if(m){soFar=m[3];parts.push(m[1]);if(m[2]){extra=m[3];break}}}while(m);if(parts.length>1&&origPOS.exec(selector)){if(parts.length===2&&Expr.relative[parts[0]]){set=posProcess(parts[0]+parts[1],context)}else{set=Expr.relative[parts[0]]?[context]:Sizzle(parts.shift(),context);while(parts.length){selector=parts.shift();if(Expr.relative[selector]){selector+=parts.shift()}set=posProcess(selector,set)}}}else{if(!seed&&parts.length>1&&context.nodeType===9&&!contextXML&&Expr.match.ID.test(parts[0])&&!Expr.match.ID.test(parts[parts.length-1])){ret=Sizzle.find(parts.shift(),context,contextXML);context=ret.expr?Sizzle.filter(ret.expr,ret.set)[0]:ret.set[0]}if(context){ret=seed?{expr:parts.pop(),set:makeArray(seed)}:Sizzle.find(parts.pop(),parts.length===1&&(parts[0]==="~"||parts[0]==="+")&&context.parentNode?context.parentNode:context,contextXML);set=ret.expr?Sizzle.filter(ret.expr,ret.set):ret.set;if(parts.length>0){checkSet=makeArray(set)}else{prune=false}while(parts.length){cur=parts.pop();pop=cur;if(!Expr.relative[cur]){cur=""}else{pop=parts.pop()}if(pop==null){pop=context}Expr.relative[cur](checkSet,pop,contextXML)}}else{checkSet=parts=[]}}if(!checkSet){checkSet=set}if(!checkSet){Sizzle.error(cur||selector)}if(toString.call(checkSet)==="[object Array]"){if(!prune){results.push.apply(results,checkSet)}else{if(context&&context.nodeType===1){for(i=0;checkSet[i]!=null;i++){if(checkSet[i]&&(checkSet[i]===true||checkSet[i].nodeType===1&&Sizzle.contains(context,checkSet[i]))){results.push(set[i])}}}else{for(i=0;checkSet[i]!=null;i++){if(checkSet[i]&&checkSet[i].nodeType===1){results.push(set[i])}}}}}else{makeArray(checkSet,results)}if(extra){Sizzle(extra,origContext,results,seed);Sizzle.uniqueSort(results)}return results};Sizzle.uniqueSort=function(results){if(sortOrder){hasDuplicate=baseHasDuplicate;results.sort(sortOrder);if(hasDuplicate){for(var i=1;i<results.length;i++){if(results[i]===results[i-1]){results.splice(i--,1)}}}}return results};Sizzle.matches=function(expr,set){return Sizzle(expr,null,null,set)};Sizzle.matchesSelector=function(node,expr){return Sizzle(expr,null,null,[node]).length>0};Sizzle.find=function(expr,context,isXML){var set;if(!expr){return[]}for(var i=0,l=Expr.order.length;i<l;i++){var match,type=Expr.order[i];if((match=Expr.leftMatch[type].exec(expr))){var left=match[1];match.splice(1,1);if(left.substr(left.length-1)!=="\\"){match[1]=(match[1]||"").replace(rBackslash,"");set=Expr.find[type](match,context,isXML);if(set!=null){expr=expr.replace(Expr.match[type],"");break}}}}if(!set){set=typeof context.getElementsByTagName!=="undefined"?context.getElementsByTagName("*"):[]}return{set:set,expr:expr}};Sizzle.filter=function(expr,set,inplace,not){var match,anyFound,old=expr,result=[],curLoop=set,isXMLFilter=set&&set[0]&&Sizzle.isXML(set[0]);while(expr&&set.length){for(var type in Expr.filter){if((match=Expr.leftMatch[type].exec(expr))!=null&&match[2]){var found,item,filter=Expr.filter[type],left=match[1];anyFound=false;match.splice(1,1);if(left.substr(left.length-1)==="\\"){continue}if(curLoop===result){result=[]}if(Expr.preFilter[type]){match=Expr.preFilter[type](match,curLoop,inplace,result,not,isXMLFilter);if(!match){anyFound=found=true}else{if(match===true){continue}}}if(match){for(var i=0;(item=curLoop[i])!=null;i++){if(item){found=filter(item,match,i,curLoop);var pass=not^!!found;if(inplace&&found!=null){if(pass){anyFound=true}else{curLoop[i]=false}}else{if(pass){result.push(item);anyFound=true}}}}}if(found!==undefined){if(!inplace){curLoop=result}expr=expr.replace(Expr.match[type],"");if(!anyFound){return[]}break}}}if(expr===old){if(anyFound==null){Sizzle.error(expr)}else{break}}old=expr}return curLoop};Sizzle.error=function(msg){throw"Syntax error, unrecognized expression: "+msg};var Expr=Sizzle.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|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(elem){return elem.getAttribute("href")},type:function(elem){return elem.getAttribute("type")}},relative:{"+":function(checkSet,part){var isPartStr=typeof part==="string",isTag=isPartStr&&!rNonWord.test(part),isPartStrNotTag=isPartStr&&!isTag;if(isTag){part=part.toLowerCase()}for(var i=0,l=checkSet.length,elem;i<l;i++){if((elem=checkSet[i])){while((elem=elem.previousSibling)&&elem.nodeType!==1){}checkSet[i]=isPartStrNotTag||elem&&elem.nodeName.toLowerCase()===part?elem||false:elem===part}}if(isPartStrNotTag){Sizzle.filter(part,checkSet,true)}},">":function(checkSet,part){var elem,isPartStr=typeof part==="string",i=0,l=checkSet.length;if(isPartStr&&!rNonWord.test(part)){part=part.toLowerCase();for(;i<l;i++){elem=checkSet[i];if(elem){var parent=elem.parentNode;checkSet[i]=parent.nodeName.toLowerCase()===part?parent:false}}}else{for(;i<l;i++){elem=checkSet[i];if(elem){checkSet[i]=isPartStr?elem.parentNode:elem.parentNode===part}}if(isPartStr){Sizzle.filter(part,checkSet,true)}}},"":function(checkSet,part,isXML){var nodeCheck,doneName=done++,checkFn=dirCheck;if(typeof part==="string"&&!rNonWord.test(part)){part=part.toLowerCase();nodeCheck=part;checkFn=dirNodeCheck}checkFn("parentNode",part,doneName,checkSet,nodeCheck,isXML)},"~":function(checkSet,part,isXML){var nodeCheck,doneName=done++,checkFn=dirCheck;if(typeof part==="string"&&!rNonWord.test(part)){part=part.toLowerCase();nodeCheck=part;checkFn=dirNodeCheck}checkFn("previousSibling",part,doneName,checkSet,nodeCheck,isXML)}},find:{ID:function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m&&m.parentNode?[m]:[]}},NAME:function(match,context){if(typeof context.getElementsByName!=="undefined"){var ret=[],results=context.getElementsByName(match[1]);for(var i=0,l=results.length;i<l;i++){if(results[i].getAttribute("name")===match[1]){ret.push(results[i])}}return ret.length===0?null:ret}},TAG:function(match,context){if(typeof context.getElementsByTagName!=="undefined"){return context.getElementsByTagName(match[1])}}},preFilter:{CLASS:function(match,curLoop,inplace,result,not,isXML){match=" "+match[1].replace(rBackslash,"")+" ";if(isXML){return match}for(var i=0,elem;(elem=curLoop[i])!=null;i++){if(elem){if(not^(elem.className&&(" "+elem.className+" ").replace(/[\t\n\r]/g," ").indexOf(match)>=0)){if(!inplace){result.push(elem)}}else{if(inplace){curLoop[i]=false}}}}return false},ID:function(match){return match[1].replace(rBackslash,"")},TAG:function(match,curLoop){return match[1].replace(rBackslash,"").toLowerCase()},CHILD:function(match){if(match[1]==="nth"){if(!match[2]){Sizzle.error(match[0])}match[2]=match[2].replace(/^\+|\s*/g,"");var test=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(match[2]==="even"&&"2n"||match[2]==="odd"&&"2n+1"||!/\D/.test(match[2])&&"0n+"+match[2]||match[2]);match[2]=(test[1]+(test[2]||1))-0;match[3]=test[3]-0}else{if(match[2]){Sizzle.error(match[0])}}match[0]=done++;return match},ATTR:function(match,curLoop,inplace,result,not,isXML){var name=match[1]=match[1].replace(rBackslash,"");if(!isXML&&Expr.attrMap[name]){match[1]=Expr.attrMap[name]}match[4]=(match[4]||match[5]||"").replace(rBackslash,"");if(match[2]==="~="){match[4]=" "+match[4]+" "}return match},PSEUDO:function(match,curLoop,inplace,result,not){if(match[1]==="not"){if((chunker.exec(match[3])||"").length>1||/^\w/.test(match[3])){match[3]=Sizzle(match[3],null,null,curLoop)}else{var ret=Sizzle.filter(match[3],curLoop,inplace,true^not);if(!inplace){result.push.apply(result,ret)}return false}}else{if(Expr.match.POS.test(match[0])||Expr.match.CHILD.test(match[0])){return true}}return match},POS:function(match){match.unshift(true);return match}},filters:{enabled:function(elem){return elem.disabled===false&&elem.type!=="hidden"},disabled:function(elem){return elem.disabled===true},checked:function(elem){return elem.checked===true},selected:function(elem){if(elem.parentNode){elem.parentNode.selectedIndex}return elem.selected===true},parent:function(elem){return !!elem.firstChild},empty:function(elem){return !elem.firstChild},has:function(elem,i,match){return !!Sizzle(match[3],elem).length},header:function(elem){return(/h\d/i).test(elem.nodeName)},text:function(elem){var attr=elem.getAttribute("type"),type=elem.type;return elem.nodeName.toLowerCase()==="input"&&"text"===type&&(attr===type||attr===null)},radio:function(elem){return elem.nodeName.toLowerCase()==="input"&&"radio"===elem.type},checkbox:function(elem){return elem.nodeName.toLowerCase()==="input"&&"checkbox"===elem.type},file:function(elem){return elem.nodeName.toLowerCase()==="input"&&"file"===elem.type},password:function(elem){return elem.nodeName.toLowerCase()==="input"&&"password"===elem.type},submit:function(elem){var name=elem.nodeName.toLowerCase();return(name==="input"||name==="button")&&"submit"===elem.type},image:function(elem){return elem.nodeName.toLowerCase()==="input"&&"image"===elem.type},reset:function(elem){var name=elem.nodeName.toLowerCase();return(name==="input"||name==="button")&&"reset"===elem.type},button:function(elem){var name=elem.nodeName.toLowerCase();return name==="input"&&"button"===elem.type||name==="button"},input:function(elem){return(/input|select|textarea|button/i).test(elem.nodeName)},focus:function(elem){return elem===elem.ownerDocument.activeElement}},setFilters:{first:function(elem,i){return i===0},last:function(elem,i,match,array){return i===array.length-1},even:function(elem,i){return i%2===0},odd:function(elem,i){return i%2===1},lt:function(elem,i,match){return i<match[3]-0},gt:function(elem,i,match){return i>match[3]-0},nth:function(elem,i,match){return match[3]-0===i},eq:function(elem,i,match){return match[3]-0===i}},filter:{PSEUDO:function(elem,match,i,array){var name=match[1],filter=Expr.filters[name];if(filter){return filter(elem,i,match,array)}else{if(name==="contains"){return(elem.textContent||elem.innerText||Sizzle.getText([elem])||"").indexOf(match[3])>=0}else{if(name==="not"){var not=match[3];for(var j=0,l=not.length;j<l;j++){if(not[j]===elem){return false}}return true}else{Sizzle.error(name)}}}},CHILD:function(elem,match){var type=match[1],node=elem;switch(type){case"only":case"first":while((node=node.previousSibling)){if(node.nodeType===1){return false}}if(type==="first"){return true}node=elem;case"last":while((node=node.nextSibling)){if(node.nodeType===1){return false}}return true;case"nth":var first=match[2],last=match[3];if(first===1&&last===0){return true}var doneName=match[0],parent=elem.parentNode;if(parent&&(parent.sizcache!==doneName||!elem.nodeIndex)){var count=0;for(node=parent.firstChild;node;node=node.nextSibling){if(node.nodeType===1){node.nodeIndex=++count}}parent.sizcache=doneName}var diff=elem.nodeIndex-last;if(first===0){return diff===0}else{return(diff%first===0&&diff/first>=0)}}},ID:function(elem,match){return elem.nodeType===1&&elem.getAttribute("id")===match},TAG:function(elem,match){return(match==="*"&&elem.nodeType===1)||elem.nodeName.toLowerCase()===match},CLASS:function(elem,match){return(" "+(elem.className||elem.getAttribute("class"))+" ").indexOf(match)>-1},ATTR:function(elem,match){var name=match[1],result=Expr.attrHandle[name]?Expr.attrHandle[name](elem):elem[name]!=null?elem[name]:elem.getAttribute(name),value=result+"",type=match[2],check=match[4];return result==null?type==="!=":type==="="?value===check:type==="*="?value.indexOf(check)>=0:type==="~="?(" "+value+" ").indexOf(check)>=0:!check?value&&result!==false:type==="!="?value!==check:type==="^="?value.indexOf(check)===0:type==="$="?value.substr(value.length-check.length)===check:type==="|="?value===check||value.substr(0,check.length+1)===check+"-":false},POS:function(elem,match,i,array){var name=match[2],filter=Expr.setFilters[name];if(filter){return filter(elem,i,match,array)}}}};var origPOS=Expr.match.POS,fescape=function(all,num){return"\\"+(num-0+1)};for(var type in Expr.match){Expr.match[type]=new RegExp(Expr.match[type].source+(/(?![^\[]*\])(?![^\(]*\))/.source));Expr.leftMatch[type]=new RegExp(/(^(?:.|\r|\n)*?)/.source+Expr.match[type].source.replace(/\\(\d+)/g,fescape))}var makeArray=function(array,results){array=Array.prototype.slice.call(array,0);if(results){results.push.apply(results,array);return results}return array};try{Array.prototype.slice.call(document.documentElement.childNodes,0)[0].nodeType}catch(e){makeArray=function(array,results){var i=0,ret=results||[];if(toString.call(array)==="[object Array]"){Array.prototype.push.apply(ret,array)}else{if(typeof array.length==="number"){for(var l=array.length;i<l;i++){ret.push(array[i])}}else{for(;array[i];i++){ret.push(array[i])}}}return ret}}var sortOrder,siblingCheck;if(document.documentElement.compareDocumentPosition){sortOrder=function(a,b){if(a===b){hasDuplicate=true;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition){return a.compareDocumentPosition?-1:1}return a.compareDocumentPosition(b)&4?-1:1}}else{sortOrder=function(a,b){if(a===b){hasDuplicate=true;return 0}else{if(a.sourceIndex&&b.sourceIndex){return a.sourceIndex-b.sourceIndex}}var al,bl,ap=[],bp=[],aup=a.parentNode,bup=b.parentNode,cur=aup;if(aup===bup){return siblingCheck(a,b)}else{if(!aup){return -1}else{if(!bup){return 1}}}while(cur){ap.unshift(cur);cur=cur.parentNode}cur=bup;while(cur){bp.unshift(cur);cur=cur.parentNode}al=ap.length;bl=bp.length;for(var i=0;i<al&&i<bl;i++){if(ap[i]!==bp[i]){return siblingCheck(ap[i],bp[i])}}return i===al?siblingCheck(a,bp[i],-1):siblingCheck(ap[i],b,1)};siblingCheck=function(a,b,ret){if(a===b){return ret}var cur=a.nextSibling;while(cur){if(cur===b){return -1}cur=cur.nextSibling}return 1}}Sizzle.getText=function(elems){var ret="",elem;for(var i=0;elems[i];i++){elem=elems[i];if(elem.nodeType===3||elem.nodeType===4){ret+=elem.nodeValue}else{if(elem.nodeType!==8){ret+=Sizzle.getText(elem.childNodes)}}}return ret};(function(){var form=document.createElement("div"),id="script"+(new Date()).getTime(),root=document.documentElement;form.innerHTML="<a name='"+id+"'/>";root.insertBefore(form,root.firstChild);if(document.getElementById(id)){Expr.find.ID=function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?m.id===match[1]||typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id").nodeValue===match[1]?[m]:undefined:[]}};Expr.filter.ID=function(elem,match){var node=typeof elem.getAttributeNode!=="undefined"&&elem.getAttributeNode("id");return elem.nodeType===1&&node&&node.nodeValue===match}}root.removeChild(form);root=form=null})();(function(){var div=document.createElement("div");div.appendChild(document.createComment(""));if(div.getElementsByTagName("*").length>0){Expr.find.TAG=function(match,context){var results=context.getElementsByTagName(match[1]);if(match[1]==="*"){var tmp=[];for(var i=0;results[i];i++){if(results[i].nodeType===1){tmp.push(results[i])}}results=tmp}return results}}div.innerHTML="<a href='#'></a>";if(div.firstChild&&typeof div.firstChild.getAttribute!=="undefined"&&div.firstChild.getAttribute("href")!=="#"){Expr.attrHandle.href=function(elem){return elem.getAttribute("href",2)}}div=null})();if(document.querySelectorAll){(function(){var oldSizzle=Sizzle,div=document.createElement("div"),id="__sizzle__";div.innerHTML="<p class='TEST'></p>";if(div.querySelectorAll&&div.querySelectorAll(".TEST").length===0){return}Sizzle=function(query,context,extra,seed){context=context||document;if(!seed&&!Sizzle.isXML(context)){var match=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(query);if(match&&(context.nodeType===1||context.nodeType===9)){if(match[1]){return makeArray(context.getElementsByTagName(query),extra)}else{if(match[2]&&Expr.find.CLASS&&context.getElementsByClassName){return makeArray(context.getElementsByClassName(match[2]),extra)}}}if(context.nodeType===9){if(query==="body"&&context.body){return makeArray([context.body],extra)}else{if(match&&match[3]){var elem=context.getElementById(match[3]);if(elem&&elem.parentNode){if(elem.id===match[3]){return makeArray([elem],extra)}}else{return makeArray([],extra)}}}try{return makeArray(context.querySelectorAll(query),extra)}catch(qsaError){}}else{if(context.nodeType===1&&context.nodeName.toLowerCase()!=="object"){var oldContext=context,old=context.getAttribute("id"),nid=old||id,hasParent=context.parentNode,relativeHierarchySelector=/^\s*[+~]/.test(query);if(!old){context.setAttribute("id",nid)}else{nid=nid.replace(/'/g,"\\$&")}if(relativeHierarchySelector&&hasParent){context=context.parentNode}try{if(!relativeHierarchySelector||hasParent){return makeArray(context.querySelectorAll("[id='"+nid+"'] "+query),extra)}}catch(pseudoError){}finally{if(!old){oldContext.removeAttribute("id")}}}}}return oldSizzle(query,context,extra,seed)};for(var prop in oldSizzle){Sizzle[prop]=oldSizzle[prop]}div=null})()}(function(){var html=document.documentElement,matches=html.matchesSelector||html.mozMatchesSelector||html.webkitMatchesSelector||html.msMatchesSelector;if(matches){var disconnectedMatch=!matches.call(document.createElement("div"),"div"),pseudoWorks=false;try{matches.call(document.documentElement,"[test!='']:sizzle")}catch(pseudoError){pseudoWorks=true}Sizzle.matchesSelector=function(node,expr){expr=expr.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!Sizzle.isXML(node)){try{if(pseudoWorks||!Expr.match.PSEUDO.test(expr)&&!/!=/.test(expr)){var ret=matches.call(node,expr);if(ret||!disconnectedMatch||node.document&&node.document.nodeType!==11){return ret}}}catch(e){}}return Sizzle(expr,null,null,[node]).length>0}}})();(function(){var div=document.createElement("div");div.innerHTML="<div class='test e'></div><div class='test'></div>";if(!div.getElementsByClassName||div.getElementsByClassName("e").length===0){return}div.lastChild.className="e";if(div.getElementsByClassName("e").length===1){return}Expr.order.splice(1,0,"CLASS");Expr.find.CLASS=function(match,context,isXML){if(typeof context.getElementsByClassName!=="undefined"&&!isXML){return context.getElementsByClassName(match[1])}};div=null})();function dirNodeCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){var match=false;elem=elem[dir];while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break}if(elem.nodeType===1&&!isXML){elem.sizcache=doneName;elem.sizset=i}if(elem.nodeName.toLowerCase()===cur){match=elem;break}elem=elem[dir]}checkSet[i]=match}}}function dirCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){var match=false;elem=elem[dir];while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break}if(elem.nodeType===1){if(!isXML){elem.sizcache=doneName;elem.sizset=i}if(typeof cur!=="string"){if(elem===cur){match=true;break}}else{if(Sizzle.filter(cur,[elem]).length>0){match=elem;break}}}elem=elem[dir]}checkSet[i]=match}}}if(document.documentElement.contains){Sizzle.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):true)}}else{if(document.documentElement.compareDocumentPosition){Sizzle.contains=function(a,b){return !!(a.compareDocumentPosition(b)&16)}}else{Sizzle.contains=function(){return false}}}Sizzle.isXML=function(elem){var documentElement=(elem?elem.ownerDocument||elem:0).documentElement;return documentElement?documentElement.nodeName!=="HTML":false};var posProcess=function(selector,context){var match,tmpSet=[],later="",root=context.nodeType?[context]:context;while((match=Expr.match.PSEUDO.exec(selector))){later+=match[0];selector=selector.replace(Expr.match.PSEUDO,"")}selector=Expr.relative[selector]?selector+"*":selector;for(var i=0,l=root.length;i<l;i++){Sizzle(selector,root[i],tmpSet)}return Sizzle.filter(later,tmpSet)};jQuery.find=Sizzle;jQuery.expr=Sizzle.selectors;jQuery.expr[":"]=jQuery.expr.filters;jQuery.unique=Sizzle.uniqueSort;jQuery.text=Sizzle.getText;jQuery.isXMLDoc=Sizzle.isXML;jQuery.contains=Sizzle.contains})();var runtil=/Until$/,rparentsprev=/^(?:parents|prevUntil|prevAll)/,rmultiselector=/,/,isSimple=/^.[^:#\[\.,]*$/,slice=Array.prototype.slice,POS=jQuery.expr.match.POS,guaranteedUnique={children:true,contents:true,next:true,prev:true};jQuery.fn.extend({find:function(selector){var self=this,i,l;if(typeof selector!=="string"){return jQuery(selector).filter(function(){for(i=0,l=self.length;i<l;i++){if(jQuery.contains(self[i],this)){return true}}})}var ret=this.pushStack("","find",selector),length,n,r;for(i=0,l=this.length;i<l;i++){length=ret.length;jQuery.find(selector,this[i],ret);if(i>0){for(n=length;n<ret.length;n++){for(r=0;r<length;r++){if(ret[r]===ret[n]){ret.splice(n--,1);break}}}}}return ret},has:function(target){var targets=jQuery(target);return this.filter(function(){for(var i=0,l=targets.length;i<l;i++){if(jQuery.contains(this,targets[i])){return true}}})},not:function(selector){return this.pushStack(winnow(this,selector,false),"not",selector)},filter:function(selector){return this.pushStack(winnow(this,selector,true),"filter",selector)},is:function(selector){return !!selector&&(typeof selector==="string"?jQuery.filter(selector,this).length>0:this.filter(selector).length>0)},closest:function(selectors,context){var ret=[],i,l,cur=this[0];if(jQuery.isArray(selectors)){var match,selector,matches={},level=1;if(cur&&selectors.length){for(i=0,l=selectors.length;i<l;i++){selector=selectors[i];if(!matches[selector]){matches[selector]=POS.test(selector)?jQuery(selector,context||this.context):selector}}while(cur&&cur.ownerDocument&&cur!==context){for(selector in matches){match=matches[selector];if(match.jquery?match.index(cur)>-1:jQuery(cur).is(match)){ret.push({selector:selector,elem:cur,level:level})}}cur=cur.parentNode;level++}}return ret}var pos=POS.test(selectors)||typeof selectors!=="string"?jQuery(selectors,context||this.context):0;for(i=0,l=this.length;i<l;i++){cur=this[i];while(cur){if(pos?pos.index(cur)>-1:jQuery.find.matchesSelector(cur,selectors)){ret.push(cur);break}else{cur=cur.parentNode;if(!cur||!cur.ownerDocument||cur===context||cur.nodeType===11){break}}}}ret=ret.length>1?jQuery.unique(ret):ret;return this.pushStack(ret,"closest",selectors)},index:function(elem){if(!elem||typeof elem==="string"){return jQuery.inArray(this[0],elem?jQuery(elem):this.parent().children())}return jQuery.inArray(elem.jquery?elem[0]:elem,this)},add:function(selector,context){var set=typeof selector==="string"?jQuery(selector,context):jQuery.makeArray(selector&&selector.nodeType?[selector]:selector),all=jQuery.merge(this.get(),set);return this.pushStack(isDisconnected(set[0])||isDisconnected(all[0])?all:jQuery.unique(all))},andSelf:function(){return this.add(this.prevObject)}});function isDisconnected(node){return !node||!node.parentNode||node.parentNode.nodeType===11}jQuery.each({parent:function(elem){var parent=elem.parentNode;return parent&&parent.nodeType!==11?parent:null},parents:function(elem){return jQuery.dir(elem,"parentNode")},parentsUntil:function(elem,i,until){return jQuery.dir(elem,"parentNode",until)},next:function(elem){return jQuery.nth(elem,2,"nextSibling")},prev:function(elem){return jQuery.nth(elem,2,"previousSibling")},nextAll:function(elem){return jQuery.dir(elem,"nextSibling")},prevAll:function(elem){return jQuery.dir(elem,"previousSibling")},nextUntil:function(elem,i,until){return jQuery.dir(elem,"nextSibling",until)},prevUntil:function(elem,i,until){return jQuery.dir(elem,"previousSibling",until)},siblings:function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem)},children:function(elem){return jQuery.sibling(elem.firstChild)},contents:function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes)}},function(name,fn){jQuery.fn[name]=function(until,selector){var ret=jQuery.map(this,fn,until),args=slice.call(arguments);if(!runtil.test(name)){selector=until}if(selector&&typeof selector==="string"){ret=jQuery.filter(selector,ret)}ret=this.length>1&&!guaranteedUnique[name]?jQuery.unique(ret):ret;if((this.length>1||rmultiselector.test(selector))&&rparentsprev.test(name)){ret=ret.reverse()}return this.pushStack(ret,name,args.join(","))}});jQuery.extend({filter:function(expr,elems,not){if(not){expr=":not("+expr+")"}return elems.length===1?jQuery.find.matchesSelector(elems[0],expr)?[elems[0]]:[]:jQuery.find.matches(expr,elems)},dir:function(elem,dir,until){var matched=[],cur=elem[dir];while(cur&&cur.nodeType!==9&&(until===undefined||cur.nodeType!==1||!jQuery(cur).is(until))){if(cur.nodeType===1){matched.push(cur)}cur=cur[dir]}return matched},nth:function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir]){if(cur.nodeType===1&&++num===result){break}}return cur},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType===1&&n!==elem){r.push(n)}}return r}});function winnow(elements,qualifier,keep){qualifier=qualifier||0;if(jQuery.isFunction(qualifier)){return jQuery.grep(elements,function(elem,i){var retVal=!!qualifier.call(elem,i,elem);return retVal===keep})}else{if(qualifier.nodeType){return jQuery.grep(elements,function(elem,i){return(elem===qualifier)===keep})}else{if(typeof qualifier==="string"){var filtered=jQuery.grep(elements,function(elem){return elem.nodeType===1});if(isSimple.test(qualifier)){return jQuery.filter(qualifier,filtered,!keep)}else{qualifier=jQuery.filter(qualifier,filtered)}}}}return jQuery.grep(elements,function(elem,i){return(jQuery.inArray(elem,qualifier)>=0)===keep})}var rinlinejQuery=/ jQuery\d+="(?:\d+|null)"/g,rleadingWhitespace=/^\s+/,rxhtmlTag=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,rtagName=/<([\w:]+)/,rtbody=/<tbody/i,rhtml=/<|&#?\w+;/,rnocache=/<(?:script|object|embed|option|style)/i,rchecked=/checked\s*(?:[^=]|=\s*.checked.)/i,rscriptType=/\/(java|ecma)script/i,rcleanScript=/^\s*<!(?:\[CDATA\[|\-\-)/,wrapMap={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};wrapMap.optgroup=wrapMap.option;wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead;wrapMap.th=wrapMap.td;if(!jQuery.support.htmlSerialize){wrapMap._default=[1,"div<div>","</div>"]}jQuery.fn.extend({text:function(text){if(jQuery.isFunction(text)){return this.each(function(i){var self=jQuery(this);self.text(text.call(this,i,self.text()))})}if(typeof text!=="object"&&text!==undefined){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text))}return jQuery.text(this)},wrapAll:function(html){if(jQuery.isFunction(html)){return this.each(function(i){jQuery(this).wrapAll(html.call(this,i))})}if(this[0]){var wrap=jQuery(html,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){wrap.insertBefore(this[0])}wrap.map(function(){var elem=this;while(elem.firstChild&&elem.firstChild.nodeType===1){elem=elem.firstChild}return elem}).append(this)}return this},wrapInner:function(html){if(jQuery.isFunction(html)){return this.each(function(i){jQuery(this).wrapInner(html.call(this,i))})}return this.each(function(){var self=jQuery(this),contents=self.contents();if(contents.length){contents.wrapAll(html)}else{self.append(html)}})},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html)})},unwrap:function(){return this.parent().each(function(){if(!jQuery.nodeName(this,"body")){jQuery(this).replaceWith(this.childNodes)}}).end()},append:function(){return this.domManip(arguments,true,function(elem){if(this.nodeType===1){this.appendChild(elem)}})},prepend:function(){return this.domManip(arguments,true,function(elem){if(this.nodeType===1){this.insertBefore(elem,this.firstChild)}})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(elem){this.parentNode.insertBefore(elem,this)})}else{if(arguments.length){var set=jQuery(arguments[0]);set.push.apply(set,this.toArray());return this.pushStack(set,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(elem){this.parentNode.insertBefore(elem,this.nextSibling)})}else{if(arguments.length){var set=this.pushStack(this,"after",arguments);set.push.apply(set,jQuery(arguments[0]).toArray());return set}}},remove:function(selector,keepData){for(var i=0,elem;(elem=this[i])!=null;i++){if(!selector||jQuery.filter(selector,[elem]).length){if(!keepData&&elem.nodeType===1){jQuery.cleanData(elem.getElementsByTagName("*"));jQuery.cleanData([elem])}if(elem.parentNode){elem.parentNode.removeChild(elem)}}}return this},empty:function(){for(var i=0,elem;(elem=this[i])!=null;i++){if(elem.nodeType===1){jQuery.cleanData(elem.getElementsByTagName("*"))}while(elem.firstChild){elem.removeChild(elem.firstChild)}}return this},clone:function(dataAndEvents,deepDataAndEvents){dataAndEvents=dataAndEvents==null?false:dataAndEvents;deepDataAndEvents=deepDataAndEvents==null?dataAndEvents:deepDataAndEvents;return this.map(function(){return jQuery.clone(this,dataAndEvents,deepDataAndEvents)})},html:function(value){if(value===undefined){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(rinlinejQuery,""):null}else{if(typeof value==="string"&&!rnocache.test(value)&&(jQuery.support.leadingWhitespace||!rleadingWhitespace.test(value))&&!wrapMap[(rtagName.exec(value)||["",""])[1].toLowerCase()]){value=value.replace(rxhtmlTag,"<$1></$2>");try{for(var i=0,l=this.length;i<l;i++){if(this[i].nodeType===1){jQuery.cleanData(this[i].getElementsByTagName("*"));this[i].innerHTML=value}}}catch(e){this.empty().append(value)}}else{if(jQuery.isFunction(value)){this.each(function(i){var self=jQuery(this);self.html(value.call(this,i,self.html()))})}else{this.empty().append(value)}}}return this},replaceWith:function(value){if(this[0]&&this[0].parentNode){if(jQuery.isFunction(value)){return this.each(function(i){var self=jQuery(this),old=self.html();self.replaceWith(value.call(this,i,old))})}if(typeof value!=="string"){value=jQuery(value).detach()}return this.each(function(){var next=this.nextSibling,parent=this.parentNode;jQuery(this).remove();if(next){jQuery(next).before(value)}else{jQuery(parent).append(value)}})}else{return this.length?this.pushStack(jQuery(jQuery.isFunction(value)?value():value),"replaceWith",value):this}},detach:function(selector){return this.remove(selector,true)},domManip:function(args,table,callback){var results,first,fragment,parent,value=args[0],scripts=[];if(!jQuery.support.checkClone&&arguments.length===3&&typeof value==="string"&&rchecked.test(value)){return this.each(function(){jQuery(this).domManip(args,table,callback,true)})}if(jQuery.isFunction(value)){return this.each(function(i){var self=jQuery(this);args[0]=value.call(this,i,table?self.html():undefined);self.domManip(args,table,callback)})}if(this[0]){parent=value&&value.parentNode;if(jQuery.support.parentNode&&parent&&parent.nodeType===11&&parent.childNodes.length===this.length){results={fragment:parent}}else{results=jQuery.buildFragment(args,this,scripts)}fragment=results.fragment;if(fragment.childNodes.length===1){first=fragment=fragment.firstChild}else{first=fragment.firstChild}if(first){table=table&&jQuery.nodeName(first,"tr");for(var i=0,l=this.length,lastIndex=l-1;i<l;i++){callback.call(table?root(this[i],first):this[i],results.cacheable||(l>1&&i<lastIndex)?jQuery.clone(fragment,true,true):fragment)}}if(scripts.length){jQuery.each(scripts,evalScript)}}return this}});function root(elem,cur){return jQuery.nodeName(elem,"table")?(elem.getElementsByTagName("tbody")[0]||elem.appendChild(elem.ownerDocument.createElement("tbody"))):elem}function cloneCopyEvent(src,dest){if(dest.nodeType!==1||!jQuery.hasData(src)){return}var internalKey=jQuery.expando,oldData=jQuery.data(src),curData=jQuery.data(dest,oldData);if((oldData=oldData[internalKey])){var events=oldData.events;curData=curData[internalKey]=jQuery.extend({},oldData);if(events){delete curData.handle;curData.events={};for(var type in events){for(var i=0,l=events[type].length;i<l;i++){jQuery.event.add(dest,type+(events[type][i].namespace?".":"")+events[type][i].namespace,events[type][i],events[type][i].data)}}}}}function cloneFixAttributes(src,dest){var nodeName;if(dest.nodeType!==1){return}if(dest.clearAttributes){dest.clearAttributes()}if(dest.mergeAttributes){dest.mergeAttributes(src)}nodeName=dest.nodeName.toLowerCase();if(nodeName==="object"){dest.outerHTML=src.outerHTML}else{if(nodeName==="input"&&(src.type==="checkbox"||src.type==="radio")){if(src.checked){dest.defaultChecked=dest.checked=src.checked}if(dest.value!==src.value){dest.value=src.value}}else{if(nodeName==="option"){dest.selected=src.defaultSelected}else{if(nodeName==="input"||nodeName==="textarea"){dest.defaultValue=src.defaultValue}}}}dest.removeAttribute(jQuery.expando)}jQuery.buildFragment=function(args,nodes,scripts){var fragment,cacheable,cacheresults,doc;if(nodes&&nodes[0]){doc=nodes[0].ownerDocument||nodes[0]}if(!doc.createDocumentFragment){doc=document}if(args.length===1&&typeof args[0]==="string"&&args[0].length<512&&doc===document&&args[0].charAt(0)==="<"&&!rnocache.test(args[0])&&(jQuery.support.checkClone||!rchecked.test(args[0]))){cacheable=true;cacheresults=jQuery.fragments[args[0]];if(cacheresults&&cacheresults!==1){fragment=cacheresults}}if(!fragment){fragment=doc.createDocumentFragment();jQuery.clean(args,doc,fragment,scripts)}if(cacheable){jQuery.fragments[args[0]]=cacheresults?fragment:1}return{fragment:fragment,cacheable:cacheable}};jQuery.fragments={};jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(selector){var ret=[],insert=jQuery(selector),parent=this.length===1&&this[0].parentNode;if(parent&&parent.nodeType===11&&parent.childNodes.length===1&&insert.length===1){insert[original](this[0]);return this}else{for(var i=0,l=insert.length;i<l;i++){var elems=(i>0?this.clone(true):this).get();jQuery(insert[i])[original](elems);ret=ret.concat(elems)}return this.pushStack(ret,name,insert.selector)}}});function getAll(elem){if("getElementsByTagName" in elem){return elem.getElementsByTagName("*")}else{if("querySelectorAll" in elem){return elem.querySelectorAll("*")}else{return[]}}}function fixDefaultChecked(elem){if(elem.type==="checkbox"||elem.type==="radio"){elem.defaultChecked=elem.checked}}function findInputs(elem){if(jQuery.nodeName(elem,"input")){fixDefaultChecked(elem)}else{if("getElementsByTagName" in elem){jQuery.grep(elem.getElementsByTagName("input"),fixDefaultChecked)}}}jQuery.extend({clone:function(elem,dataAndEvents,deepDataAndEvents){var clone=elem.cloneNode(true),srcElements,destElements,i;if((!jQuery.support.noCloneEvent||!jQuery.support.noCloneChecked)&&(elem.nodeType===1||elem.nodeType===11)&&!jQuery.isXMLDoc(elem)){cloneFixAttributes(elem,clone);srcElements=getAll(elem);destElements=getAll(clone);for(i=0;srcElements[i];++i){cloneFixAttributes(srcElements[i],destElements[i])}}if(dataAndEvents){cloneCopyEvent(elem,clone);if(deepDataAndEvents){srcElements=getAll(elem);destElements=getAll(clone);for(i=0;srcElements[i];++i){cloneCopyEvent(srcElements[i],destElements[i])}}}srcElements=destElements=null;return clone},clean:function(elems,context,fragment,scripts){var checkScriptType;context=context||document;if(typeof context.createElement==="undefined"){context=context.ownerDocument||context[0]&&context[0].ownerDocument||document}var ret=[],j;for(var i=0,elem;(elem=elems[i])!=null;i++){if(typeof elem==="number"){elem+=""}if(!elem){continue}if(typeof elem==="string"){if(!rhtml.test(elem)){elem=context.createTextNode(elem)}else{elem=elem.replace(rxhtmlTag,"<$1></$2>");var tag=(rtagName.exec(elem)||["",""])[1].toLowerCase(),wrap=wrapMap[tag]||wrapMap._default,depth=wrap[0],div=context.createElement("div");div.innerHTML=wrap[1]+elem+wrap[2];while(depth--){div=div.lastChild}if(!jQuery.support.tbody){var hasBody=rtbody.test(elem),tbody=tag==="table"&&!hasBody?div.firstChild&&div.firstChild.childNodes:wrap[1]==="<table>"&&!hasBody?div.childNodes:[];for(j=tbody.length-1;j>=0;--j){if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length){tbody[j].parentNode.removeChild(tbody[j])}}}if(!jQuery.support.leadingWhitespace&&rleadingWhitespace.test(elem)){div.insertBefore(context.createTextNode(rleadingWhitespace.exec(elem)[0]),div.firstChild)}elem=div.childNodes}}var len;if(!jQuery.support.appendChecked){if(elem[0]&&typeof(len=elem.length)==="number"){for(j=0;j<len;j++){findInputs(elem[j])}}else{findInputs(elem)}}if(elem.nodeType){ret.push(elem)}else{ret=jQuery.merge(ret,elem)}}if(fragment){checkScriptType=function(elem){return !elem.type||rscriptType.test(elem.type)};for(i=0;ret[i];i++){if(scripts&&jQuery.nodeName(ret[i],"script")&&(!ret[i].type||ret[i].type.toLowerCase()==="text/javascript")){scripts.push(ret[i].parentNode?ret[i].parentNode.removeChild(ret[i]):ret[i])}else{if(ret[i].nodeType===1){var jsTags=jQuery.grep(ret[i].getElementsByTagName("script"),checkScriptType);ret.splice.apply(ret,[i+1,0].concat(jsTags))}fragment.appendChild(ret[i])}}}return ret},cleanData:function(elems){var data,id,cache=jQuery.cache,internalKey=jQuery.expando,special=jQuery.event.special,deleteExpando=jQuery.support.deleteExpando;for(var i=0,elem;(elem=elems[i])!=null;i++){if(elem.nodeName&&jQuery.noData[elem.nodeName.toLowerCase()]){continue}id=elem[jQuery.expando];if(id){data=cache[id]&&cache[id][internalKey];if(data&&data.events){for(var type in data.events){if(special[type]){jQuery.event.remove(elem,type)}else{jQuery.removeEvent(elem,type,data.handle)}}if(data.handle){data.handle.elem=null}}if(deleteExpando){delete elem[jQuery.expando]}else{if(elem.removeAttribute){elem.removeAttribute(jQuery.expando)}}delete cache[id]}}}});function evalScript(i,elem){if(elem.src){jQuery.ajax({url:elem.src,async:false,dataType:"script"})}else{jQuery.globalEval((elem.text||elem.textContent||elem.innerHTML||"").replace(rcleanScript,"/*$0*/"))}if(elem.parentNode){elem.parentNode.removeChild(elem)}}var ralpha=/alpha\([^)]*\)/i,ropacity=/opacity=([^)]*)/,rupper=/([A-Z]|^ms)/g,rnumpx=/^-?\d+(?:px)?$/i,rnum=/^-?\d/,rrelNum=/^[+\-]=/,rrelNumFilter=/[^+\-\.\de]+/g,cssShow={position:"absolute",visibility:"hidden",display:"block"},cssWidth=["Left","Right"],cssHeight=["Top","Bottom"],curCSS,getComputedStyle,currentStyle;jQuery.fn.css=function(name,value){if(arguments.length===2&&value===undefined){return this}return jQuery.access(this,name,value,true,function(elem,name,value){return value!==undefined?jQuery.style(elem,name,value):jQuery.css(elem,name)})};jQuery.extend({cssHooks:{opacity:{get:function(elem,computed){if(computed){var ret=curCSS(elem,"opacity","opacity");return ret===""?"1":ret}else{return elem.style.opacity}}}},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":jQuery.support.cssFloat?"cssFloat":"styleFloat"},style:function(elem,name,value,extra){if(!elem||elem.nodeType===3||elem.nodeType===8||!elem.style){return}var ret,type,origName=jQuery.camelCase(name),style=elem.style,hooks=jQuery.cssHooks[origName];name=jQuery.cssProps[origName]||origName;if(value!==undefined){type=typeof value;if(type==="number"&&isNaN(value)||value==null){return}if(type==="string"&&rrelNum.test(value)){value=+value.replace(rrelNumFilter,"")+parseFloat(jQuery.css(elem,name));type="number"}if(type==="number"&&!jQuery.cssNumber[origName]){value+="px"}if(!hooks||!("set" in hooks)||(value=hooks.set(elem,value))!==undefined){try{style[name]=value}catch(e){}}}else{if(hooks&&"get" in hooks&&(ret=hooks.get(elem,false,extra))!==undefined){return ret}return style[name]}},css:function(elem,name,extra){var ret,hooks;name=jQuery.camelCase(name);hooks=jQuery.cssHooks[name];name=jQuery.cssProps[name]||name;if(name==="cssFloat"){name="float"}if(hooks&&"get" in hooks&&(ret=hooks.get(elem,true,extra))!==undefined){return ret}else{if(curCSS){return curCSS(elem,name)}}},swap:function(elem,options,callback){var old={};for(var name in options){old[name]=elem.style[name];elem.style[name]=options[name]}callback.call(elem);for(name in options){elem.style[name]=old[name]}}});jQuery.curCSS=jQuery.css;jQuery.each(["height","width"],function(i,name){jQuery.cssHooks[name]={get:function(elem,computed,extra){var val;if(computed){if(elem.offsetWidth!==0){return getWH(elem,name,extra)}else{jQuery.swap(elem,cssShow,function(){val=getWH(elem,name,extra)})}return val}},set:function(elem,value){if(rnumpx.test(value)){value=parseFloat(value);if(value>=0){return value+"px"}}else{return value}}}});if(!jQuery.support.opacity){jQuery.cssHooks.opacity={get:function(elem,computed){return ropacity.test((computed&&elem.currentStyle?elem.currentStyle.filter:elem.style.filter)||"")?(parseFloat(RegExp.$1)/100)+"":computed?"1":""},set:function(elem,value){var style=elem.style,currentStyle=elem.currentStyle;style.zoom=1;var opacity=jQuery.isNaN(value)?"":"alpha(opacity="+value*100+")",filter=currentStyle&&currentStyle.filter||style.filter||"";style.filter=ralpha.test(filter)?filter.replace(ralpha,opacity):filter+" "+opacity}}}jQuery(function(){if(!jQuery.support.reliableMarginRight){jQuery.cssHooks.marginRight={get:function(elem,computed){var ret;jQuery.swap(elem,{display:"inline-block"},function(){if(computed){ret=curCSS(elem,"margin-right","marginRight")}else{ret=elem.style.marginRight}});return ret}}}});if(document.defaultView&&document.defaultView.getComputedStyle){getComputedStyle=function(elem,name){var ret,defaultView,computedStyle;name=name.replace(rupper,"-$1").toLowerCase();if(!(defaultView=elem.ownerDocument.defaultView)){return undefined}if((computedStyle=defaultView.getComputedStyle(elem,null))){ret=computedStyle.getPropertyValue(name);if(ret===""&&!jQuery.contains(elem.ownerDocument.documentElement,elem)){ret=jQuery.style(elem,name)}}return ret}}if(document.documentElement.currentStyle){currentStyle=function(elem,name){var left,ret=elem.currentStyle&&elem.currentStyle[name],rsLeft=elem.runtimeStyle&&elem.runtimeStyle[name],style=elem.style;if(!rnumpx.test(ret)&&rnum.test(ret)){left=style.left;if(rsLeft){elem.runtimeStyle.left=elem.currentStyle.left}style.left=name==="fontSize"?"1em":(ret||0);ret=style.pixelLeft+"px";style.left=left;if(rsLeft){elem.runtimeStyle.left=rsLeft}}return ret===""?"auto":ret}}curCSS=getComputedStyle||currentStyle;function getWH(elem,name,extra){var val=name==="width"?elem.offsetWidth:elem.offsetHeight,which=name==="width"?cssWidth:cssHeight;if(val>0){if(extra!=="border"){jQuery.each(which,function(){if(!extra){val-=parseFloat(jQuery.css(elem,"padding"+this))||0}if(extra==="margin"){val+=parseFloat(jQuery.css(elem,extra+this))||0}else{val-=parseFloat(jQuery.css(elem,"border"+this+"Width"))||0}})}return val+"px"}val=curCSS(elem,name,name);if(val<0||val==null){val=elem.style[name]||0}val=parseFloat(val)||0;if(extra){jQuery.each(which,function(){val+=parseFloat(jQuery.css(elem,"padding"+this))||0;if(extra!=="padding"){val+=parseFloat(jQuery.css(elem,"border"+this+"Width"))||0}if(extra==="margin"){val+=parseFloat(jQuery.css(elem,extra+this))||0}})}return val+"px"}if(jQuery.expr&&jQuery.expr.filters){jQuery.expr.filters.hidden=function(elem){var width=elem.offsetWidth,height=elem.offsetHeight;return(width===0&&height===0)||(!jQuery.support.reliableHiddenOffsets&&(elem.style.display||jQuery.css(elem,"display"))==="none")};jQuery.expr.filters.visible=function(elem){return !jQuery.expr.filters.hidden(elem)}}var r20=/%20/g,rbracket=/\[\]$/,rCRLF=/\r?\n/g,rhash=/#.*$/,rheaders=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,rinput=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,rlocalProtocol=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,rnoContent=/^(?:GET|HEAD)$/,rprotocol=/^\/\//,rquery=/\?/,rscript=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,rselectTextarea=/^(?:select|textarea)/i,rspacesAjax=/\s+/,rts=/([?&])_=[^&]*/,rurl=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,_load=jQuery.fn.load,prefilters={},transports={},ajaxLocation,ajaxLocParts;try{ajaxLocation=location.href}catch(e){ajaxLocation=document.createElement("a");ajaxLocation.href="";ajaxLocation=ajaxLocation.href}ajaxLocParts=rurl.exec(ajaxLocation.toLowerCase())||[];function addToPrefiltersOrTransports(structure){return function(dataTypeExpression,func){if(typeof dataTypeExpression!=="string"){func=dataTypeExpression;dataTypeExpression="*"}if(jQuery.isFunction(func)){var dataTypes=dataTypeExpression.toLowerCase().split(rspacesAjax),i=0,length=dataTypes.length,dataType,list,placeBefore;for(;i<length;i++){dataType=dataTypes[i];placeBefore=/^\+/.test(dataType);if(placeBefore){dataType=dataType.substr(1)||"*"}list=structure[dataType]=structure[dataType]||[];list[placeBefore?"unshift":"push"](func)}}}}function inspectPrefiltersOrTransports(structure,options,originalOptions,jqXHR,dataType,inspected){dataType=dataType||options.dataTypes[0];inspected=inspected||{};inspected[dataType]=true;var list=structure[dataType],i=0,length=list?list.length:0,executeOnly=(structure===prefilters),selection;for(;i<length&&(executeOnly||!selection);i++){selection=list[i](options,originalOptions,jqXHR);if(typeof selection==="string"){if(!executeOnly||inspected[selection]){selection=undefined}else{options.dataTypes.unshift(selection);selection=inspectPrefiltersOrTransports(structure,options,originalOptions,jqXHR,selection,inspected)}}}if((executeOnly||!selection)&&!inspected["*"]){selection=inspectPrefiltersOrTransports(structure,options,originalOptions,jqXHR,"*",inspected)}return selection}jQuery.fn.extend({load:function(url,params,callback){if(typeof url!=="string"&&_load){return _load.apply(this,arguments)}else{if(!this.length){return this}}var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=url.slice(0,off)}var type="GET";if(params){if(jQuery.isFunction(params)){callback=params;params=undefined}else{if(typeof params==="object"){params=jQuery.param(params,jQuery.ajaxSettings.traditional);type="POST"}}}var self=this;jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(jqXHR,status,responseText){responseText=jqXHR.responseText;if(jqXHR.isResolved()){jqXHR.done(function(r){responseText=r});self.html(selector?jQuery("<div>").append(responseText.replace(rscript,"")).find(selector):responseText)}if(callback){self.each(callback,[responseText,status,jqXHR])}}});return this},serialize:function(){return jQuery.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?jQuery.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||rselectTextarea.test(this.nodeName)||rinput.test(this.type))}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:jQuery.isArray(val)?jQuery.map(val,function(val,i){return{name:elem.name,value:val.replace(rCRLF,"\r\n")}}):{name:elem.name,value:val.replace(rCRLF,"\r\n")}}).get()}});jQuery.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f)}});jQuery.each(["get","post"],function(i,method){jQuery[method]=function(url,data,callback,type){if(jQuery.isFunction(data)){type=type||callback;callback=data;data=undefined}return jQuery.ajax({type:method,url:url,data:data,success:callback,dataType:type})}});jQuery.extend({getScript:function(url,callback){return jQuery.get(url,undefined,callback,"script")},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json")},ajaxSetup:function(target,settings){if(!settings){settings=target;target=jQuery.extend(true,jQuery.ajaxSettings,settings)}else{jQuery.extend(true,target,jQuery.ajaxSettings,settings)}for(var field in {context:1,url:1}){if(field in settings){target[field]=settings[field]}else{if(field in jQuery.ajaxSettings){target[field]=jQuery.ajaxSettings[field]}}}return target},ajaxSettings:{url:ajaxLocation,isLocal:rlocalProtocol.test(ajaxLocParts[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":window.String,"text html":true,"text json":jQuery.parseJSON,"text xml":jQuery.parseXML}},ajaxPrefilter:addToPrefiltersOrTransports(prefilters),ajaxTransport:addToPrefiltersOrTransports(transports),ajax:function(url,options){if(typeof url==="object"){options=url;url=undefined}options=options||{};var s=jQuery.ajaxSetup({},options),callbackContext=s.context||s,globalEventContext=callbackContext!==s&&(callbackContext.nodeType||callbackContext instanceof jQuery)?jQuery(callbackContext):jQuery.event,deferred=jQuery.Deferred(),completeDeferred=jQuery._Deferred(),statusCode=s.statusCode||{},ifModifiedKey,requestHeaders={},requestHeadersNames={},responseHeadersString,responseHeaders,transport,timeoutTimer,parts,state=0,fireGlobals,i,jqXHR={readyState:0,setRequestHeader:function(name,value){if(!state){var lname=name.toLowerCase();name=requestHeadersNames[lname]=requestHeadersNames[lname]||name;requestHeaders[name]=value}return this},getAllResponseHeaders:function(){return state===2?responseHeadersString:null},getResponseHeader:function(key){var match;if(state===2){if(!responseHeaders){responseHeaders={};while((match=rheaders.exec(responseHeadersString))){responseHeaders[match[1].toLowerCase()]=match[2]}}match=responseHeaders[key.toLowerCase()]}return match===undefined?null:match},overrideMimeType:function(type){if(!state){s.mimeType=type}return this},abort:function(statusText){statusText=statusText||"abort";if(transport){transport.abort(statusText)}done(0,statusText);return this}};function done(status,statusText,responses,headers){if(state===2){return}state=2;if(timeoutTimer){clearTimeout(timeoutTimer)}transport=undefined;responseHeadersString=headers||"";jqXHR.readyState=status?4:0;var isSuccess,success,error,response=responses?ajaxHandleResponses(s,jqXHR,responses):undefined,lastModified,etag;if(status>=200&&status<300||status===304){if(s.ifModified){if((lastModified=jqXHR.getResponseHeader("Last-Modified"))){jQuery.lastModified[ifModifiedKey]=lastModified}if((etag=jqXHR.getResponseHeader("Etag"))){jQuery.etag[ifModifiedKey]=etag}}if(status===304){statusText="notmodified";isSuccess=true}else{try{success=ajaxConvert(s,response);statusText="success";isSuccess=true}catch(e){statusText="parsererror";error=e}}}else{error=statusText;if(!statusText||status){statusText="error";if(status<0){status=0}}}jqXHR.status=status;jqXHR.statusText=statusText;if(isSuccess){deferred.resolveWith(callbackContext,[success,statusText,jqXHR])}else{deferred.rejectWith(callbackContext,[jqXHR,statusText,error])}jqXHR.statusCode(statusCode);statusCode=undefined;if(fireGlobals){globalEventContext.trigger("ajax"+(isSuccess?"Success":"Error"),[jqXHR,s,isSuccess?success:error])}completeDeferred.resolveWith(callbackContext,[jqXHR,statusText]);if(fireGlobals){globalEventContext.trigger("ajaxComplete",[jqXHR,s]);if(!(--jQuery.active)){jQuery.event.trigger("ajaxStop")}}}deferred.promise(jqXHR);jqXHR.success=jqXHR.done;jqXHR.error=jqXHR.fail;jqXHR.complete=completeDeferred.done;jqXHR.statusCode=function(map){if(map){var tmp;if(state<2){for(tmp in map){statusCode[tmp]=[statusCode[tmp],map[tmp]]}}else{tmp=map[jqXHR.status];jqXHR.then(tmp,tmp)}}return this};s.url=((url||s.url)+"").replace(rhash,"").replace(rprotocol,ajaxLocParts[1]+"//");s.dataTypes=jQuery.trim(s.dataType||"*").toLowerCase().split(rspacesAjax);if(s.crossDomain==null){parts=rurl.exec(s.url.toLowerCase());s.crossDomain=!!(parts&&(parts[1]!=ajaxLocParts[1]||parts[2]!=ajaxLocParts[2]||(parts[3]||(parts[1]==="http:"?80:443))!=(ajaxLocParts[3]||(ajaxLocParts[1]==="http:"?80:443))))}if(s.data&&s.processData&&typeof s.data!=="string"){s.data=jQuery.param(s.data,s.traditional)}inspectPrefiltersOrTransports(prefilters,s,options,jqXHR);if(state===2){return false}fireGlobals=s.global;s.type=s.type.toUpperCase();s.hasContent=!rnoContent.test(s.type);if(fireGlobals&&jQuery.active++===0){jQuery.event.trigger("ajaxStart")}if(!s.hasContent){if(s.data){s.url+=(rquery.test(s.url)?"&":"?")+s.data}ifModifiedKey=s.url;if(s.cache===false){var ts=jQuery.now(),ret=s.url.replace(rts,"$1_="+ts);s.url=ret+((ret===s.url)?(rquery.test(s.url)?"&":"?")+"_="+ts:"")}}if(s.data&&s.hasContent&&s.contentType!==false||options.contentType){jqXHR.setRequestHeader("Content-Type",s.contentType)}if(s.ifModified){ifModifiedKey=ifModifiedKey||s.url;if(jQuery.lastModified[ifModifiedKey]){jqXHR.setRequestHeader("If-Modified-Since",jQuery.lastModified[ifModifiedKey])}if(jQuery.etag[ifModifiedKey]){jqXHR.setRequestHeader("If-None-Match",jQuery.etag[ifModifiedKey])}}jqXHR.setRequestHeader("Accept",s.dataTypes[0]&&s.accepts[s.dataTypes[0]]?s.accepts[s.dataTypes[0]]+(s.dataTypes[0]!=="*"?", */*; q=0.01":""):s.accepts["*"]);for(i in s.headers){jqXHR.setRequestHeader(i,s.headers[i])}if(s.beforeSend&&(s.beforeSend.call(callbackContext,jqXHR,s)===false||state===2)){jqXHR.abort();return false}for(i in {success:1,error:1,complete:1}){jqXHR[i](s[i])}transport=inspectPrefiltersOrTransports(transports,s,options,jqXHR);if(!transport){done(-1,"No Transport")}else{jqXHR.readyState=1;if(fireGlobals){globalEventContext.trigger("ajaxSend",[jqXHR,s])}if(s.async&&s.timeout>0){timeoutTimer=setTimeout(function(){jqXHR.abort("timeout")},s.timeout)}try{state=1;transport.send(requestHeaders,done)}catch(e){if(status<2){done(-1,e)}else{jQuery.error(e)}}}return jqXHR},param:function(a,traditional){var s=[],add=function(key,value){value=jQuery.isFunction(value)?value():value;s[s.length]=encodeURIComponent(key)+"="+encodeURIComponent(value)};if(traditional===undefined){traditional=jQuery.ajaxSettings.traditional}if(jQuery.isArray(a)||(a.jquery&&!jQuery.isPlainObject(a))){jQuery.each(a,function(){add(this.name,this.value)})}else{for(var prefix in a){buildParams(prefix,a[prefix],traditional,add)}}return s.join("&").replace(r20,"+")}});function buildParams(prefix,obj,traditional,add){if(jQuery.isArray(obj)){jQuery.each(obj,function(i,v){if(traditional||rbracket.test(prefix)){add(prefix,v)}else{buildParams(prefix+"["+(typeof v==="object"||jQuery.isArray(v)?i:"")+"]",v,traditional,add)}})}else{if(!traditional&&obj!=null&&typeof obj==="object"){for(var name in obj){buildParams(prefix+"["+name+"]",obj[name],traditional,add)}}else{add(prefix,obj)}}}jQuery.extend({active:0,lastModified:{},etag:{}});function ajaxHandleResponses(s,jqXHR,responses){var contents=s.contents,dataTypes=s.dataTypes,responseFields=s.responseFields,ct,type,finalDataType,firstDataType;for(type in responseFields){if(type in responses){jqXHR[responseFields[type]]=responses[type]}}while(dataTypes[0]==="*"){dataTypes.shift();if(ct===undefined){ct=s.mimeType||jqXHR.getResponseHeader("content-type")}}if(ct){for(type in contents){if(contents[type]&&contents[type].test(ct)){dataTypes.unshift(type);break}}}if(dataTypes[0] in responses){finalDataType=dataTypes[0]}else{for(type in responses){if(!dataTypes[0]||s.converters[type+" "+dataTypes[0]]){finalDataType=type;break}if(!firstDataType){firstDataType=type}}finalDataType=finalDataType||firstDataType}if(finalDataType){if(finalDataType!==dataTypes[0]){dataTypes.unshift(finalDataType)}return responses[finalDataType]}}function ajaxConvert(s,response){if(s.dataFilter){response=s.dataFilter(response,s.dataType)}var dataTypes=s.dataTypes,converters={},i,key,length=dataTypes.length,tmp,current=dataTypes[0],prev,conversion,conv,conv1,conv2;for(i=1;i<length;i++){if(i===1){for(key in s.converters){if(typeof key==="string"){converters[key.toLowerCase()]=s.converters[key]}}}prev=current;current=dataTypes[i];if(current==="*"){current=prev}else{if(prev!=="*"&&prev!==current){conversion=prev+" "+current;conv=converters[conversion]||converters["* "+current];if(!conv){conv2=undefined;for(conv1 in converters){tmp=conv1.split(" ");if(tmp[0]===prev||tmp[0]==="*"){conv2=converters[tmp[1]+" "+current];if(conv2){conv1=converters[conv1];if(conv1===true){conv=conv2}else{if(conv2===true){conv=conv1}}break}}}}if(!(conv||conv2)){jQuery.error("No conversion from "+conversion.replace(" "," to "))}if(conv!==true){response=conv?conv(response):conv2(conv1(response))}}}}return response}var jsc=jQuery.now(),jsre=/(\=)\?(&|$)|\?\?/i;jQuery.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return jQuery.expando+"_"+(jsc++)}});jQuery.ajaxPrefilter("json jsonp",function(s,originalSettings,jqXHR){var inspectData=s.contentType==="application/x-www-form-urlencoded"&&(typeof s.data==="string");if(s.dataTypes[0]==="jsonp"||s.jsonp!==false&&(jsre.test(s.url)||inspectData&&jsre.test(s.data))){var responseContainer,jsonpCallback=s.jsonpCallback=jQuery.isFunction(s.jsonpCallback)?s.jsonpCallback():s.jsonpCallback,previous=window[jsonpCallback],url=s.url,data=s.data,replace="$1"+jsonpCallback+"$2";if(s.jsonp!==false){url=url.replace(jsre,replace);if(s.url===url){if(inspectData){data=data.replace(jsre,replace)}if(s.data===data){url+=(/\?/.test(url)?"&":"?")+s.jsonp+"="+jsonpCallback}}}s.url=url;s.data=data;window[jsonpCallback]=function(response){responseContainer=[response]};jqXHR.always(function(){window[jsonpCallback]=previous;if(responseContainer&&jQuery.isFunction(previous)){window[jsonpCallback](responseContainer[0])}});s.converters["script json"]=function(){if(!responseContainer){jQuery.error(jsonpCallback+" was not called")}return responseContainer[0]};s.dataTypes[0]="json";return"script"}});jQuery.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(text){jQuery.globalEval(text);return text}}});jQuery.ajaxPrefilter("script",function(s){if(s.cache===undefined){s.cache=false}if(s.crossDomain){s.type="GET";s.global=false}});jQuery.ajaxTransport("script",function(s){if(s.crossDomain){var script,head=document.head||document.getElementsByTagName("head")[0]||document.documentElement;return{send:function(_,callback){script=document.createElement("script");script.async="async";if(s.scriptCharset){script.charset=s.scriptCharset}script.src=s.url;script.onload=script.onreadystatechange=function(_,isAbort){if(isAbort||!script.readyState||/loaded|complete/.test(script.readyState)){script.onload=script.onreadystatechange=null;if(head&&script.parentNode){head.removeChild(script)}script=undefined;if(!isAbort){callback(200,"success")}}};head.insertBefore(script,head.firstChild)},abort:function(){if(script){script.onload(0,1)}}}}});var xhrOnUnloadAbort=window.ActiveXObject?function(){for(var key in xhrCallbacks){xhrCallbacks[key](0,1)}}:false,xhrId=0,xhrCallbacks;function createStandardXHR(){try{return new window.XMLHttpRequest()}catch(e){}}function createActiveXHR(){try{return new window.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}jQuery.ajaxSettings.xhr=window.ActiveXObject?function(){return !this.isLocal&&createStandardXHR()||createActiveXHR()}:createStandardXHR;(function(xhr){jQuery.extend(jQuery.support,{ajax:!!xhr,cors:!!xhr&&("withCredentials" in xhr)})})(jQuery.ajaxSettings.xhr());if(jQuery.support.ajax){jQuery.ajaxTransport(function(s){if(!s.crossDomain||jQuery.support.cors){var callback;return{send:function(headers,complete){var xhr=s.xhr(),handle,i;if(s.username){xhr.open(s.type,s.url,s.async,s.username,s.password)}else{xhr.open(s.type,s.url,s.async)}if(s.xhrFields){for(i in s.xhrFields){xhr[i]=s.xhrFields[i]}}if(s.mimeType&&xhr.overrideMimeType){xhr.overrideMimeType(s.mimeType)}if(!s.crossDomain&&!headers["X-Requested-With"]){headers["X-Requested-With"]="XMLHttpRequest"}try{for(i in headers){xhr.setRequestHeader(i,headers[i])}}catch(_){}xhr.send((s.hasContent&&s.data)||null);callback=function(_,isAbort){var status,statusText,responseHeaders,responses,xml;try{if(callback&&(isAbort||xhr.readyState===4)){callback=undefined;if(handle){xhr.onreadystatechange=jQuery.noop;if(xhrOnUnloadAbort){delete xhrCallbacks[handle]}}if(isAbort){if(xhr.readyState!==4){xhr.abort()}}else{status=xhr.status;responseHeaders=xhr.getAllResponseHeaders();responses={};xml=xhr.responseXML;if(xml&&xml.documentElement){responses.xml=xml}responses.text=xhr.responseText;try{statusText=xhr.statusText}catch(e){statusText=""}if(!status&&s.isLocal&&!s.crossDomain){status=responses.text?200:404}else{if(status===1223){status=204}}}}}catch(firefoxAccessException){if(!isAbort){complete(-1,firefoxAccessException)}}if(responses){complete(status,statusText,responses,responseHeaders)}};if(!s.async||xhr.readyState===4){callback()}else{handle=++xhrId;if(xhrOnUnloadAbort){if(!xhrCallbacks){xhrCallbacks={};jQuery(window).unload(xhrOnUnloadAbort)}xhrCallbacks[handle]=callback}xhr.onreadystatechange=callback}},abort:function(){if(callback){callback(0,1)}}}}})}var elemdisplay={},iframe,iframeDoc,rfxtypes=/^(?:toggle|show|hide)$/,rfxnum=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,timerId,fxAttrs=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],fxNow,requestAnimationFrame=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame;jQuery.fn.extend({show:function(speed,easing,callback){var elem,display;if(speed||speed===0){return this.animate(genFx("show",3),speed,easing,callback)}else{for(var i=0,j=this.length;i<j;i++){elem=this[i];if(elem.style){display=elem.style.display;if(!jQuery._data(elem,"olddisplay")&&display==="none"){display=elem.style.display=""}if(display===""&&jQuery.css(elem,"display")==="none"){jQuery._data(elem,"olddisplay",defaultDisplay(elem.nodeName))}}}for(i=0;i<j;i++){elem=this[i];if(elem.style){display=elem.style.display;if(display===""||display==="none"){elem.style.display=jQuery._data(elem,"olddisplay")||""}}}return this}},hide:function(speed,easing,callback){if(speed||speed===0){return this.animate(genFx("hide",3),speed,easing,callback)}else{for(var i=0,j=this.length;i<j;i++){if(this[i].style){var display=jQuery.css(this[i],"display");if(display!=="none"&&!jQuery._data(this[i],"olddisplay")){jQuery._data(this[i],"olddisplay",display)}}}for(i=0;i<j;i++){if(this[i].style){this[i].style.display="none"}}return this}},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2,callback){var bool=typeof fn==="boolean";if(jQuery.isFunction(fn)&&jQuery.isFunction(fn2)){this._toggle.apply(this,arguments)}else{if(fn==null||bool){this.each(function(){var state=bool?fn:jQuery(this).is(":hidden");jQuery(this)[state?"show":"hide"]()})}else{this.animate(genFx("toggle",3),fn,fn2,callback)}}return this},fadeTo:function(speed,to,easing,callback){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:to},speed,easing,callback)},animate:function(prop,speed,easing,callback){var optall=jQuery.speed(speed,easing,callback);if(jQuery.isEmptyObject(prop)){return this.each(optall.complete,[false])}prop=jQuery.extend({},prop);return this[optall.queue===false?"each":"queue"](function(){if(optall.queue===false){jQuery._mark(this)}var opt=jQuery.extend({},optall),isElement=this.nodeType===1,hidden=isElement&&jQuery(this).is(":hidden"),name,val,p,display,e,parts,start,end,unit;opt.animatedProperties={};for(p in prop){name=jQuery.camelCase(p);if(p!==name){prop[name]=prop[p];delete prop[p]}val=prop[name];if(jQuery.isArray(val)){opt.animatedProperties[name]=val[1];val=prop[name]=val[0]}else{opt.animatedProperties[name]=opt.specialEasing&&opt.specialEasing[name]||opt.easing||"swing"}if(val==="hide"&&hidden||val==="show"&&!hidden){return opt.complete.call(this)}if(isElement&&(name==="height"||name==="width")){opt.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(jQuery.css(this,"display")==="inline"&&jQuery.css(this,"float")==="none"){if(!jQuery.support.inlineBlockNeedsLayout){this.style.display="inline-block"}else{display=defaultDisplay(this.nodeName);if(display==="inline"){this.style.display="inline-block"}else{this.style.display="inline";this.style.zoom=1}}}}}if(opt.overflow!=null){this.style.overflow="hidden"}for(p in prop){e=new jQuery.fx(this,opt,p);val=prop[p];if(rfxtypes.test(val)){e[val==="toggle"?hidden?"show":"hide":val]()}else{parts=rfxnum.exec(val);start=e.cur();if(parts){end=parseFloat(parts[2]);unit=parts[3]||(jQuery.cssNumber[p]?"":"px");if(unit!=="px"){jQuery.style(this,p,(end||1)+unit);start=((end||1)/e.cur())*start;jQuery.style(this,p,start+unit)}if(parts[1]){end=((parts[1]==="-="?-1:1)*end)+start}e.custom(start,end,unit)}else{e.custom(start,val,"")}}}return true})},stop:function(clearQueue,gotoEnd){if(clearQueue){this.queue([])}this.each(function(){var timers=jQuery.timers,i=timers.length;if(!gotoEnd){jQuery._unmark(true,this)}while(i--){if(timers[i].elem===this){if(gotoEnd){timers[i](true)}timers.splice(i,1)}}});if(!gotoEnd){this.dequeue()}return this}});function createFxNow(){setTimeout(clearFxNow,0);return(fxNow=jQuery.now())}function clearFxNow(){fxNow=undefined}function genFx(type,num){var obj={};jQuery.each(fxAttrs.concat.apply([],fxAttrs.slice(0,num)),function(){obj[this]=type});return obj}jQuery.each({slideDown:genFx("show",1),slideUp:genFx("hide",1),slideToggle:genFx("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(name,props){jQuery.fn[name]=function(speed,easing,callback){return this.animate(props,speed,easing,callback)}});jQuery.extend({speed:function(speed,easing,fn){var opt=speed&&typeof speed==="object"?jQuery.extend({},speed):{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&!jQuery.isFunction(easing)&&easing};opt.duration=jQuery.fx.off?0:typeof opt.duration==="number"?opt.duration:opt.duration in jQuery.fx.speeds?jQuery.fx.speeds[opt.duration]:jQuery.fx.speeds._default;opt.old=opt.complete;opt.complete=function(noUnmark){if(jQuery.isFunction(opt.old)){opt.old.call(this)}if(opt.queue!==false){jQuery.dequeue(this)}else{if(noUnmark!==false){jQuery._unmark(this)}}};return opt},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum}},timers:[],fx:function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;options.orig=options.orig||{}}});jQuery.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var parsed,r=jQuery.css(this.elem,this.prop);return isNaN(parsed=parseFloat(r))?!r||r==="auto"?0:r:parsed},custom:function(from,to,unit){var self=this,fx=jQuery.fx,raf;this.startTime=fxNow||createFxNow();this.start=from;this.end=to;this.unit=unit||this.unit||(jQuery.cssNumber[this.prop]?"":"px");this.now=this.start;this.pos=this.state=0;function t(gotoEnd){return self.step(gotoEnd)}t.elem=this.elem;if(t()&&jQuery.timers.push(t)&&!timerId){if(requestAnimationFrame){timerId=true;raf=function(){if(timerId){requestAnimationFrame(raf);fx.tick()}};requestAnimationFrame(raf)}else{timerId=setInterval(fx.tick,fx.interval)}}},show:function(){this.options.orig[this.prop]=jQuery.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());jQuery(this.elem).show()},hide:function(){this.options.orig[this.prop]=jQuery.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(gotoEnd){var t=fxNow||createFxNow(),done=true,elem=this.elem,options=this.options,i,n;if(gotoEnd||t>=options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();options.animatedProperties[this.prop]=true;for(i in options.animatedProperties){if(options.animatedProperties[i]!==true){done=false}}if(done){if(options.overflow!=null&&!jQuery.support.shrinkWrapBlocks){jQuery.each(["","X","Y"],function(index,value){elem.style["overflow"+value]=options.overflow[index]})}if(options.hide){jQuery(elem).hide()}if(options.hide||options.show){for(var p in options.animatedProperties){jQuery.style(elem,p,options.orig[p])}}options.complete.call(elem)}return false}else{if(options.duration==Infinity){this.now=t}else{n=t-this.startTime;this.state=n/options.duration;this.pos=jQuery.easing[options.animatedProperties[this.prop]](this.state,n,0,1,options.duration);this.now=this.start+((this.end-this.start)*this.pos)}this.update()}return true}};jQuery.extend(jQuery.fx,{tick:function(){for(var timers=jQuery.timers,i=0;i<timers.length;++i){if(!timers[i]()){timers.splice(i--,1)}}if(!timers.length){jQuery.fx.stop()}},interval:13,stop:function(){clearInterval(timerId);timerId=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(fx){jQuery.style(fx.elem,"opacity",fx.now)},_default:function(fx){if(fx.elem.style&&fx.elem.style[fx.prop]!=null){fx.elem.style[fx.prop]=(fx.prop==="width"||fx.prop==="height"?Math.max(0,fx.now):fx.now)+fx.unit}else{fx.elem[fx.prop]=fx.now}}}});if(jQuery.expr&&jQuery.expr.filters){jQuery.expr.filters.animated=function(elem){return jQuery.grep(jQuery.timers,function(fn){return elem===fn.elem}).length}}function defaultDisplay(nodeName){if(!elemdisplay[nodeName]){var body=document.body,elem=jQuery("<"+nodeName+">").appendTo(body),display=elem.css("display");elem.remove();if(display==="none"||display===""){if(!iframe){iframe=document.createElement("iframe");iframe.frameBorder=iframe.width=iframe.height=0}body.appendChild(iframe);if(!iframeDoc||!iframe.createElement){iframeDoc=(iframe.contentWindow||iframe.contentDocument).document;iframeDoc.write((document.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>");iframeDoc.close()}elem=iframeDoc.createElement(nodeName);iframeDoc.body.appendChild(elem);display=jQuery.css(elem,"display");body.removeChild(iframe)}elemdisplay[nodeName]=display}return elemdisplay[nodeName]}var rtable=/^t(?:able|d|h)$/i,rroot=/^(?:body|html)$/i;if("getBoundingClientRect" in document.documentElement){jQuery.fn.offset=function(options){var elem=this[0],box;if(options){return this.each(function(i){jQuery.offset.setOffset(this,options,i)})}if(!elem||!elem.ownerDocument){return null}if(elem===elem.ownerDocument.body){return jQuery.offset.bodyOffset(elem)}try{box=elem.getBoundingClientRect()}catch(e){}var doc=elem.ownerDocument,docElem=doc.documentElement;if(!box||!jQuery.contains(docElem,elem)){return box?{top:box.top,left:box.left}:{top:0,left:0}}var body=doc.body,win=getWindow(doc),clientTop=docElem.clientTop||body.clientTop||0,clientLeft=docElem.clientLeft||body.clientLeft||0,scrollTop=win.pageYOffset||jQuery.support.boxModel&&docElem.scrollTop||body.scrollTop,scrollLeft=win.pageXOffset||jQuery.support.boxModel&&docElem.scrollLeft||body.scrollLeft,top=box.top+scrollTop-clientTop,left=box.left+scrollLeft-clientLeft;return{top:top,left:left}}}else{jQuery.fn.offset=function(options){var elem=this[0];if(options){return this.each(function(i){jQuery.offset.setOffset(this,options,i)})}if(!elem||!elem.ownerDocument){return null}if(elem===elem.ownerDocument.body){return jQuery.offset.bodyOffset(elem)}jQuery.offset.initialize();var computedStyle,offsetParent=elem.offsetParent,prevOffsetParent=elem,doc=elem.ownerDocument,docElem=doc.documentElement,body=doc.body,defaultView=doc.defaultView,prevComputedStyle=defaultView?defaultView.getComputedStyle(elem,null):elem.currentStyle,top=elem.offsetTop,left=elem.offsetLeft;while((elem=elem.parentNode)&&elem!==body&&elem!==docElem){if(jQuery.offset.supportsFixedPosition&&prevComputedStyle.position==="fixed"){break}computedStyle=defaultView?defaultView.getComputedStyle(elem,null):elem.currentStyle;top-=elem.scrollTop;left-=elem.scrollLeft;if(elem===offsetParent){top+=elem.offsetTop;left+=elem.offsetLeft;if(jQuery.offset.doesNotAddBorder&&!(jQuery.offset.doesAddBorderForTableAndCells&&rtable.test(elem.nodeName))){top+=parseFloat(computedStyle.borderTopWidth)||0;left+=parseFloat(computedStyle.borderLeftWidth)||0}prevOffsetParent=offsetParent;offsetParent=elem.offsetParent}if(jQuery.offset.subtractsBorderForOverflowNotVisible&&computedStyle.overflow!=="visible"){top+=parseFloat(computedStyle.borderTopWidth)||0;left+=parseFloat(computedStyle.borderLeftWidth)||0}prevComputedStyle=computedStyle}if(prevComputedStyle.position==="relative"||prevComputedStyle.position==="static"){top+=body.offsetTop;left+=body.offsetLeft}if(jQuery.offset.supportsFixedPosition&&prevComputedStyle.position==="fixed"){top+=Math.max(docElem.scrollTop,body.scrollTop);left+=Math.max(docElem.scrollLeft,body.scrollLeft)}return{top:top,left:left}}}jQuery.offset={initialize:function(){var body=document.body,container=document.createElement("div"),innerDiv,checkDiv,table,td,bodyMarginTop=parseFloat(jQuery.css(body,"marginTop"))||0,html="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";jQuery.extend(container.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});container.innerHTML=html;body.insertBefore(container,body.firstChild);innerDiv=container.firstChild;checkDiv=innerDiv.firstChild;td=innerDiv.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(checkDiv.offsetTop!==5);this.doesAddBorderForTableAndCells=(td.offsetTop===5);checkDiv.style.position="fixed";checkDiv.style.top="20px";this.supportsFixedPosition=(checkDiv.offsetTop===20||checkDiv.offsetTop===15);checkDiv.style.position=checkDiv.style.top="";innerDiv.style.overflow="hidden";innerDiv.style.position="relative";this.subtractsBorderForOverflowNotVisible=(checkDiv.offsetTop===-5);this.doesNotIncludeMarginInBodyOffset=(body.offsetTop!==bodyMarginTop);body.removeChild(container);jQuery.offset.initialize=jQuery.noop},bodyOffset:function(body){var top=body.offsetTop,left=body.offsetLeft;jQuery.offset.initialize();if(jQuery.offset.doesNotIncludeMarginInBodyOffset){top+=parseFloat(jQuery.css(body,"marginTop"))||0;left+=parseFloat(jQuery.css(body,"marginLeft"))||0}return{top:top,left:left}},setOffset:function(elem,options,i){var position=jQuery.css(elem,"position");if(position==="static"){elem.style.position="relative"}var curElem=jQuery(elem),curOffset=curElem.offset(),curCSSTop=jQuery.css(elem,"top"),curCSSLeft=jQuery.css(elem,"left"),calculatePosition=(position==="absolute"||position==="fixed")&&jQuery.inArray("auto",[curCSSTop,curCSSLeft])>-1,props={},curPosition={},curTop,curLeft;if(calculatePosition){curPosition=curElem.position();curTop=curPosition.top;curLeft=curPosition.left}else{curTop=parseFloat(curCSSTop)||0;curLeft=parseFloat(curCSSLeft)||0}if(jQuery.isFunction(options)){options=options.call(elem,i,curOffset)}if(options.top!=null){props.top=(options.top-curOffset.top)+curTop}if(options.left!=null){props.left=(options.left-curOffset.left)+curLeft}if("using" in options){options.using.call(elem,props)}else{curElem.css(props)}}};jQuery.fn.extend({position:function(){if(!this[0]){return null}var elem=this[0],offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=rroot.test(offsetParent[0].nodeName)?{top:0,left:0}:offsetParent.offset();offset.top-=parseFloat(jQuery.css(elem,"marginTop"))||0;offset.left-=parseFloat(jQuery.css(elem,"marginLeft"))||0;parentOffset.top+=parseFloat(jQuery.css(offsetParent[0],"borderTopWidth"))||0;parentOffset.left+=parseFloat(jQuery.css(offsetParent[0],"borderLeftWidth"))||0;return{top:offset.top-parentOffset.top,left:offset.left-parentOffset.left}},offsetParent:function(){return this.map(function(){var offsetParent=this.offsetParent||document.body;while(offsetParent&&(!rroot.test(offsetParent.nodeName)&&jQuery.css(offsetParent,"position")==="static")){offsetParent=offsetParent.offsetParent}return offsetParent})}});jQuery.each(["Left","Top"],function(i,name){var method="scroll"+name;jQuery.fn[method]=function(val){var elem,win;if(val===undefined){elem=this[0];if(!elem){return null}win=getWindow(elem);return win?("pageXOffset" in win)?win[i?"pageYOffset":"pageXOffset"]:jQuery.support.boxModel&&win.document.documentElement[method]||win.document.body[method]:elem[method]}return this.each(function(){win=getWindow(this);if(win){win.scrollTo(!i?val:jQuery(win).scrollLeft(),i?val:jQuery(win).scrollTop())}else{this[method]=val}})}});function getWindow(elem){return jQuery.isWindow(elem)?elem:elem.nodeType===9?elem.defaultView||elem.parentWindow:false}jQuery.each(["Height","Width"],function(i,name){var type=name.toLowerCase();jQuery.fn["inner"+name]=function(){var elem=this[0];return elem&&elem.style?parseFloat(jQuery.css(elem,type,"padding")):null};jQuery.fn["outer"+name]=function(margin){var elem=this[0];return elem&&elem.style?parseFloat(jQuery.css(elem,type,margin?"margin":"border")):null};jQuery.fn[type]=function(size){var elem=this[0];if(!elem){return size==null?null:this}if(jQuery.isFunction(size)){return this.each(function(i){var self=jQuery(this);self[type](size.call(this,i,self[type]()))})}if(jQuery.isWindow(elem)){var docElemProp=elem.document.documentElement["client"+name];return elem.document.compatMode==="CSS1Compat"&&docElemProp||elem.document.body["client"+name]||docElemProp}else{if(elem.nodeType===9){return Math.max(elem.documentElement["client"+name],elem.body["scroll"+name],elem.documentElement["scroll"+name],elem.body["offset"+name],elem.documentElement["offset"+name])}else{if(size===undefined){var orig=jQuery.css(elem,type),ret=parseFloat(orig);return jQuery.isNaN(ret)?orig:ret}else{return this.css(type,typeof size==="string"?size:size+"px")}}}}});window.jQuery=window.$=jQuery})(window);
/*
 * jQuery UI 1.8.14
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI
 */
(function(c,j){function k(a,b){var d=a.nodeName.toLowerCase();if("area"===d){b=a.parentNode;d=b.name;if(!a.href||!d||b.nodeName.toLowerCase()!=="map"){return false}a=c("img[usemap=#"+d+"]")[0];return !!a&&l(a)}return(/input|select|textarea|button|object/.test(d)?!a.disabled:"a"==d?a.href||b:b)&&l(a)}function l(a){return !c(a).parents().andSelf().filter(function(){return c.curCSS(this,"visibility")==="hidden"||c.expr.filters.hidden(this)}).length}c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.14",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});c.fn.extend({_focus:c.fn.focus,focus:function(a,b){return typeof a==="number"?this.each(function(){var d=this;setTimeout(function(){c(d).focus();b&&b.call(d)},a)}):this._focus.apply(this,arguments)},scrollParent:function(){var a;a=c.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!a.length?c(document):a},zIndex:function(a){if(a!==j){return this.css("zIndex",a)}if(this.length){a=c(this[0]);for(var b;a.length&&a[0]!==document;){b=a.css("position");if(b==="absolute"||b==="relative"||b==="fixed"){b=parseInt(a.css("zIndex"),10);if(!isNaN(b)&&b!==0){return b}}a=a.parent()}}return 0},disableSelection:function(){return this.bind((c.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});c.each(["Width","Height"],function(a,b){function d(f,g,m,n){c.each(e,function(){g-=parseFloat(c.curCSS(f,"padding"+this,true))||0;if(m){g-=parseFloat(c.curCSS(f,"border"+this+"Width",true))||0}if(n){g-=parseFloat(c.curCSS(f,"margin"+this,true))||0}});return g}var e=b==="Width"?["Left","Right"]:["Top","Bottom"],h=b.toLowerCase(),i={innerWidth:c.fn.innerWidth,innerHeight:c.fn.innerHeight,outerWidth:c.fn.outerWidth,outerHeight:c.fn.outerHeight};c.fn["inner"+b]=function(f){if(f===j){return i["inner"+b].call(this)}return this.each(function(){c(this).css(h,d(this,f)+"px")})};c.fn["outer"+b]=function(f,g){if(typeof f!=="number"){return i["outer"+b].call(this,f)}return this.each(function(){c(this).css(h,d(this,f,true,g)+"px")})}});c.extend(c.expr[":"],{data:function(a,b,d){return !!c.data(a,d[3])},focusable:function(a){return k(a,!isNaN(c.attr(a,"tabindex")))},tabbable:function(a){var b=c.attr(a,"tabindex"),d=isNaN(b);return(d||b>=0)&&k(a,!d)}});c(function(){var a=document.body,b=a.appendChild(b=document.createElement("div"));c.extend(b.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});c.support.minHeight=b.offsetHeight===100;c.support.selectstart="onselectstart" in b;a.removeChild(b).style.display="none"});c.extend(c.ui,{plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];a.plugins[e].push([b,d[e]])}},call:function(a,b,d){if((b=a.plugins[b])&&a.element[0].parentNode){for(var e=0;e<b.length;e++){a.options[b[e][0]]&&b[e][1].apply(a.element,d)}}}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(a,b){if(c(a).css("overflow")==="hidden"){return false}b=b&&b==="left"?"scrollLeft":"scrollTop";var d=false;if(a[b]>0){return true}a[b]=1;d=a[b]>0;a[b]=0;return d},isOverAxis:function(a,b,d){return a>b&&a<b+d},isOver:function(a,b,d,e,h,i){return c.ui.isOverAxis(a,d,h)&&c.ui.isOverAxis(b,e,i)}})}})(jQuery);(function(d,C){function M(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._inDialog=this._datepickerShowing=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false};d.extend(this._defaults,this.regional[""]);this.dpDiv=N(d('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}function N(a){return a.bind("mouseout",function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");b.length&&b.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");if(!(d.datepicker._isDisabledDatepicker(J.inline?a.parent()[0]:J.input[0])||!b.length)){b.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");b.addClass("ui-state-hover");b.hasClass("ui-datepicker-prev")&&b.addClass("ui-datepicker-prev-hover");b.hasClass("ui-datepicker-next")&&b.addClass("ui-datepicker-next-hover")}})}function H(a,b){d.extend(a,b);for(var c in b){if(b[c]==null||b[c]==C){a[c]=b[c]}}return a}d.extend(d.ui,{datepicker:{version:"1.8.14"}});var A=(new Date).getTime(),J;d.extend(M.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){H(this._defaults,a||{});return this},_attachDatepicker:function(a,b){var c=null;for(var e in this._defaults){var f=a.getAttribute("date:"+e);if(f){c=c||{};try{c[e]=eval(f)}catch(h){c[e]=f}}}e=a.nodeName.toLowerCase();f=e=="div"||e=="span";if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var i=this._newInst(d(a),f);i.settings=d.extend({},b||{},c||{});if(e=="input"){this._connectDatepicker(a,i)}else{f&&this._inlineDatepicker(a,i)}},_newInst:function(a,b){return{id:a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:!b?this.dpDiv:N(d('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}},_connectDatepicker:function(a,b){var c=d(a);b.append=d([]);b.trigger=d([]);if(!c.hasClass(this.markerClassName)){this._attachments(c,b);c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});this._autoSize(b);d.data(a,"datepicker",b)}},_attachments:function(a,b){var c=this._get(b,"appendText"),e=this._get(b,"isRTL");b.append&&b.append.remove();if(c){b.append=d('<span class="'+this._appendClass+'">'+c+"</span>");a[e?"before":"after"](b.append)}a.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();c=this._get(b,"showOn");if(c=="focus"||c=="both"){a.focus(this._showDatepicker)}if(c=="button"||c=="both"){c=this._get(b,"buttonText");var f=this._get(b,"buttonImage");b.trigger=d(this._get(b,"buttonImageOnly")?d("<img/>").addClass(this._triggerClass).attr({src:f,alt:c,title:c}):d('<button type="button"></button>').addClass(this._triggerClass).html(f==""?c:d("<img/>").attr({src:f,alt:c,title:c})));a[e?"before":"after"](b.trigger);b.trigger.click(function(){d.datepicker._datepickerShowing&&d.datepicker._lastInput==a[0]?d.datepicker._hideDatepicker():d.datepicker._showDatepicker(a[0]);return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");if(c.match(/[DM]/)){var e=function(f){for(var h=0,i=0,g=0;g<f.length;g++){if(f[g].length>h){h=f[g].length;i=g}}return i};b.setMonth(e(this._get(a,c.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(e(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a,b){var c=d(a);if(!c.hasClass(this.markerClassName)){c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});d.data(a,"datepicker",b);this._setDate(b,this._getDefaultDate(b),true);this._updateDatepicker(b);this._updateAlternate(b);b.dpDiv.show()}},_dialogDatepicker:function(a,b,c,e,f){a=this._dialogInst;if(!a){this.uuid+=1;this._dialogInput=d('<input type="text" id="'+("dp"+this.uuid)+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');this._dialogInput.keydown(this._doKeyDown);d("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};d.data(this._dialogInput[0],"datepicker",a)}H(a.settings,e||{});b=b&&b.constructor==Date?this._formatDate(a,b):b;this._dialogInput.val(b);this._pos=f?f.length?f:[f.pageX,f.pageY]:null;if(!this._pos){this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)]}this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=c;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);d.blockUI&&d.blockUI(this.dpDiv);d.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();d.removeData(a,"datepicker");if(e=="input"){c.append.remove();c.trigger.remove();b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else{if(e=="div"||e=="span"){b.removeClass(this.markerClassName).empty()}}}},_enableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=false;c.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else{if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().removeClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")}}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f})}},_disableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=true;c.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else{if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().addClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")}}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a){return false}for(var b=0;b<this._disabledInputs.length;b++){if(this._disabledInputs[b]==a){return true}}return false},_getInst:function(a){try{return d.data(a,"datepicker")}catch(b){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(a,b,c){var e=this._getInst(a);if(arguments.length==2&&typeof b=="string"){return b=="defaults"?d.extend({},d.datepicker._defaults):e?b=="all"?d.extend({},e.settings):this._get(e,b):null}var f=b||{};if(typeof b=="string"){f={};f[b]=c}if(e){this._curInst==e&&this._hideDatepicker();var h=this._getDateDatepicker(a,true),i=this._getMinMaxDate(e,"min"),g=this._getMinMaxDate(e,"max");H(e.settings,f);if(i!==null&&f.dateFormat!==C&&f.minDate===C){e.settings.minDate=this._formatDate(e,i)}if(g!==null&&f.dateFormat!==C&&f.maxDate===C){e.settings.maxDate=this._formatDate(e,g)}this._attachments(d(a),e);this._autoSize(e);this._setDate(e,h);this._updateAlternate(e);this._updateDatepicker(e)}},_changeDatepicker:function(a,b,c){this._optionDatepicker(a,b,c)},_refreshDatepicker:function(a){(a=this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,b){if(a=this._getInst(a)){this._setDate(a,b);this._updateDatepicker(a);this._updateAlternate(a)}},_getDateDatepicker:function(a,b){(a=this._getInst(a))&&!a.inline&&this._setDateFromField(a,b);return a?this._getDate(a):null},_doKeyDown:function(a){var b=d.datepicker._getInst(a.target),c=true,e=b.dpDiv.is(".ui-datepicker-rtl");b._keyEvent=true;if(d.datepicker._datepickerShowing){switch(a.keyCode){case 9:d.datepicker._hideDatepicker();c=false;break;case 13:c=d("td."+d.datepicker._dayOverClass+":not(."+d.datepicker._currentClass+")",b.dpDiv);c[0]?d.datepicker._selectDay(a.target,b.selectedMonth,b.selectedYear,c[0]):d.datepicker._hideDatepicker();return false;case 27:d.datepicker._hideDatepicker();break;case 33:d.datepicker._adjustDate(a.target,a.ctrlKey?-d.datepicker._get(b,"stepBigMonths"):-d.datepicker._get(b,"stepMonths"),"M");break;case 34:d.datepicker._adjustDate(a.target,a.ctrlKey?+d.datepicker._get(b,"stepBigMonths"):+d.datepicker._get(b,"stepMonths"),"M");break;case 35:if(a.ctrlKey||a.metaKey){d.datepicker._clearDate(a.target)}c=a.ctrlKey||a.metaKey;break;case 36:if(a.ctrlKey||a.metaKey){d.datepicker._gotoToday(a.target)}c=a.ctrlKey||a.metaKey;break;case 37:if(a.ctrlKey||a.metaKey){d.datepicker._adjustDate(a.target,e?+1:-1,"D")}c=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey){d.datepicker._adjustDate(a.target,a.ctrlKey?-d.datepicker._get(b,"stepBigMonths"):-d.datepicker._get(b,"stepMonths"),"M")}break;case 38:if(a.ctrlKey||a.metaKey){d.datepicker._adjustDate(a.target,-7,"D")}c=a.ctrlKey||a.metaKey;break;case 39:if(a.ctrlKey||a.metaKey){d.datepicker._adjustDate(a.target,e?-1:+1,"D")}c=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey){d.datepicker._adjustDate(a.target,a.ctrlKey?+d.datepicker._get(b,"stepBigMonths"):+d.datepicker._get(b,"stepMonths"),"M")}break;case 40:if(a.ctrlKey||a.metaKey){d.datepicker._adjustDate(a.target,+7,"D")}c=a.ctrlKey||a.metaKey;break;default:c=false}}else{if(a.keyCode==36&&a.ctrlKey){d.datepicker._showDatepicker(this)}else{c=false}}if(c){a.preventDefault();a.stopPropagation()}},_doKeyPress:function(a){var b=d.datepicker._getInst(a.target);if(d.datepicker._get(b,"constrainInput")){b=d.datepicker._possibleChars(d.datepicker._get(b,"dateFormat"));var c=String.fromCharCode(a.charCode==C?a.keyCode:a.charCode);return a.ctrlKey||a.metaKey||c<" "||!b||b.indexOf(c)>-1}},_doKeyUp:function(a){a=d.datepicker._getInst(a.target);if(a.input.val()!=a.lastVal){try{if(d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,d.datepicker._getFormatConfig(a))){d.datepicker._setDateFromField(a);d.datepicker._updateAlternate(a);d.datepicker._updateDatepicker(a)}}catch(b){d.datepicker.log(b)}}return true},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input"){a=d("input",a.parentNode)[0]}if(!(d.datepicker._isDisabledDatepicker(a)||d.datepicker._lastInput==a)){var b=d.datepicker._getInst(a);if(d.datepicker._curInst&&d.datepicker._curInst!=b){d.datepicker._datepickerShowing&&d.datepicker._triggerOnClose(d.datepicker._curInst);d.datepicker._curInst.dpDiv.stop(true,true)}var c=d.datepicker._get(b,"beforeShow");H(b.settings,c?c.apply(a,[a,b]):{});b.lastVal=null;d.datepicker._lastInput=a;d.datepicker._setDateFromField(b);if(d.datepicker._inDialog){a.value=""}if(!d.datepicker._pos){d.datepicker._pos=d.datepicker._findPos(a);d.datepicker._pos[1]+=a.offsetHeight}var e=false;d(a).parents().each(function(){e|=d(this).css("position")=="fixed";return !e});if(e&&d.browser.opera){d.datepicker._pos[0]-=document.documentElement.scrollLeft;d.datepicker._pos[1]-=document.documentElement.scrollTop}c={left:d.datepicker._pos[0],top:d.datepicker._pos[1]};d.datepicker._pos=null;b.dpDiv.empty();b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});d.datepicker._updateDatepicker(b);c=d.datepicker._checkOffset(b,c,e);b.dpDiv.css({position:d.datepicker._inDialog&&d.blockUI?"static":e?"fixed":"absolute",display:"none",left:c.left+"px",top:c.top+"px"});if(!b.inline){c=d.datepicker._get(b,"showAnim");var f=d.datepicker._get(b,"duration"),h=function(){var i=b.dpDiv.find("iframe.ui-datepicker-cover");if(i.length){var g=d.datepicker._getBorders(b.dpDiv);i.css({left:-g[0],top:-g[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})}};b.dpDiv.zIndex(d(a).zIndex()+1);d.datepicker._datepickerShowing=true;d.effects&&d.effects[c]?b.dpDiv.show(c,d.datepicker._get(b,"showOptions"),f,h):b.dpDiv[c||"show"](c?f:null,h);if(!c||!f){h()}b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();d.datepicker._curInst=b}}},_updateDatepicker:function(a){this.maxRows=4;var b=d.datepicker._getBorders(a.dpDiv);J=a;a.dpDiv.empty().append(this._generateHTML(a));var c=a.dpDiv.find("iframe.ui-datepicker-cover");c.length&&c.css({left:-b[0],top:-b[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()});a.dpDiv.find("."+this._dayOverClass+" a").mouseover();b=this._getNumberOfMonths(a);c=b[1];a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");c>1&&a.dpDiv.addClass("ui-datepicker-multi-"+c).css("width",17*c+"em");a.dpDiv[(b[0]!=1||b[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a==d.datepicker._curInst&&d.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&a.input[0]!=document.activeElement&&a.input.focus();if(a.yearshtml){var e=a.yearshtml;setTimeout(function(){e===a.yearshtml&&a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);e=a.yearshtml=null},0)}},_getBorders:function(a){var b=function(c){return{thin:1,medium:2,thick:3}[c]||c};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkOffset:function(a,b,c){var e=a.dpDiv.outerWidth(),f=a.dpDiv.outerHeight(),h=a.input?a.input.outerWidth():0,i=a.input?a.input.outerHeight():0,g=document.documentElement.clientWidth+d(document).scrollLeft(),j=document.documentElement.clientHeight+d(document).scrollTop();b.left-=this._get(a,"isRTL")?e-h:0;b.left-=c&&b.left==a.input.offset().left?d(document).scrollLeft():0;b.top-=c&&b.top==a.input.offset().top+i?d(document).scrollTop():0;b.left-=Math.min(b.left,b.left+e>g&&g>e?Math.abs(b.left+e-g):0);b.top-=Math.min(b.top,b.top+f>j&&j>f?Math.abs(f+i):0);return b},_findPos:function(a){for(var b=this._get(this._getInst(a),"isRTL");a&&(a.type=="hidden"||a.nodeType!=1||d.expr.filters.hidden(a));){a=a[b?"previousSibling":"nextSibling"]}a=d(a).offset();return[a.left,a.top]},_triggerOnClose:function(a){var b=this._get(a,"onClose");if(b){b.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a])}},_hideDatepicker:function(a){var b=this._curInst;if(!(!b||a&&b!=d.data(a,"datepicker"))){if(this._datepickerShowing){a=this._get(b,"showAnim");var c=this._get(b,"duration"),e=function(){d.datepicker._tidyDialog(b);this._curInst=null};d.effects&&d.effects[a]?b.dpDiv.hide(a,d.datepicker._get(b,"showOptions"),c,e):b.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?c:null,e);a||e();d.datepicker._triggerOnClose(b);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(d.blockUI){d.unblockUI();d("body").append(this.dpDiv)}}this._inDialog=false}}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(d.datepicker._curInst){a=d(a.target);a[0].id!=d.datepicker._mainDivId&&a.parents("#"+d.datepicker._mainDivId).length==0&&!a.hasClass(d.datepicker.markerClassName)&&!a.hasClass(d.datepicker._triggerClass)&&d.datepicker._datepickerShowing&&!(d.datepicker._inDialog&&d.blockUI)&&d.datepicker._hideDatepicker()}},_adjustDate:function(a,b,c){a=d(a);var e=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(e,b+(c=="M"?this._get(e,"showCurrentAtPos"):0),c);this._updateDatepicker(e)}},_gotoToday:function(a){a=d(a);var b=this._getInst(a[0]);if(this._get(b,"gotoCurrent")&&b.currentDay){b.selectedDay=b.currentDay;b.drawMonth=b.selectedMonth=b.currentMonth;b.drawYear=b.selectedYear=b.currentYear}else{var c=new Date;b.selectedDay=c.getDate();b.drawMonth=b.selectedMonth=c.getMonth();b.drawYear=b.selectedYear=c.getFullYear()}this._notifyChange(b);this._adjustDate(a)},_selectMonthYear:function(a,b,c){a=d(a);var e=this._getInst(a[0]);e._selectingMonthYear=false;e["selected"+(c=="M"?"Month":"Year")]=e["draw"+(c=="M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);this._notifyChange(e);this._adjustDate(a)},_clickMonthYear:function(a){var b=this._getInst(d(a)[0]);b.input&&b._selectingMonthYear&&setTimeout(function(){b.input.focus()},0);b._selectingMonthYear=!b._selectingMonthYear},_selectDay:function(a,b,c,e){var f=d(a);if(!(d(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0]))){f=this._getInst(f[0]);f.selectedDay=f.currentDay=d("a",e).html();f.selectedMonth=f.currentMonth=b;f.selectedYear=f.currentYear=c;this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))}},_clearDate:function(a){a=d(a);this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,b){a=this._getInst(d(a)[0]);b=b!=null?b:this._formatDate(a);a.input&&a.input.val(b);this._updateAlternate(a);var c=this._get(a,"onSelect");if(c){c.apply(a.input?a.input[0]:null,[b,a])}else{a.input&&a.input.trigger("change")}if(a.inline){this._updateDatepicker(a)}else{this._hideDatepicker();this._lastInput=a.input[0];typeof a.input[0]!="object"&&a.input.focus();this._lastInput=null}},_updateAlternate:function(a){var b=this._get(a,"altField");if(b){var c=this._get(a,"altFormat")||this._get(a,"dateFormat"),e=this._getDate(a),f=this.formatDate(c,e,this._getFormatConfig(a));d(b).each(function(){d(this).val(f)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var b=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((b-a)/86400000)/7)+1},parseDate:function(a,b,c){if(a==null||b==null){throw"Invalid arguments"}b=typeof b=="object"?b.toString():b+"";if(b==""){return null}var e=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff;e=typeof e!="string"?e:(new Date).getFullYear()%100+parseInt(e,10);for(var f=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,h=(c?c.dayNames:null)||this._defaults.dayNames,i=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,g=(c?c.monthNames:null)||this._defaults.monthNames,j=c=-1,l=-1,u=-1,k=false,o=function(p){(p=B+1<a.length&&a.charAt(B+1)==p)&&B++;return p},m=function(p){var D=o(p);p=new RegExp("^\\d{1,"+(p=="@"?14:p=="!"?20:p=="y"&&D?4:p=="o"?3:2)+"}");p=b.substring(q).match(p);if(!p){throw"Missing number at position "+q}q+=p[0].length;return parseInt(p[0],10)},n=function(p,D,K){p=d.map(o(p)?K:D,function(w,x){return[[x,w]]}).sort(function(w,x){return -(w[1].length-x[1].length)});var E=-1;d.each(p,function(w,x){w=x[1];if(b.substr(q,w.length).toLowerCase()==w.toLowerCase()){E=x[0];q+=w.length;return false}});if(E!=-1){return E+1}else{throw"Unknown name at position "+q}},s=function(){if(b.charAt(q)!=a.charAt(B)){throw"Unexpected literal at position "+q}q++},q=0,B=0;B<a.length;B++){if(k){if(a.charAt(B)=="'"&&!o("'")){k=false}else{s()}}else{switch(a.charAt(B)){case"d":l=m("d");break;case"D":n("D",f,h);break;case"o":u=m("o");break;case"m":j=m("m");break;case"M":j=n("M",i,g);break;case"y":c=m("y");break;case"@":var v=new Date(m("@"));c=v.getFullYear();j=v.getMonth()+1;l=v.getDate();break;case"!":v=new Date((m("!")-this._ticksTo1970)/10000);c=v.getFullYear();j=v.getMonth()+1;l=v.getDate();break;case"'":if(o("'")){s()}else{k=true}break;default:s()}}}if(q<b.length){throw"Extra/unparsed characters found in date: "+b.substring(q)}if(c==-1){c=(new Date).getFullYear()}else{if(c<100){c+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c<=e?0:-100)}}if(u>-1){j=1;l=u;do{e=this._getDaysInMonth(c,j-1);if(l<=e){break}j++;l-=e}while(1)}v=this._daylightSavingAdjust(new Date(c,j-1,l));if(v.getFullYear()!=c||v.getMonth()+1!=j||v.getDate()!=l){throw"Invalid date"}return v},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*10000000,formatDate:function(a,b,c){if(!b){return""}var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,h=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort;c=(c?c.monthNames:null)||this._defaults.monthNames;var i=function(o){(o=k+1<a.length&&a.charAt(k+1)==o)&&k++;return o},g=function(o,m,n){m=""+m;if(i(o)){for(;m.length<n;){m="0"+m}}return m},j=function(o,m,n,s){return i(o)?s[m]:n[m]},l="",u=false;if(b){for(var k=0;k<a.length;k++){if(u){if(a.charAt(k)=="'"&&!i("'")){u=false}else{l+=a.charAt(k)}}else{switch(a.charAt(k)){case"d":l+=g("d",b.getDate(),2);break;case"D":l+=j("D",b.getDay(),e,f);break;case"o":l+=g("o",Math.round(((new Date(b.getFullYear(),b.getMonth(),b.getDate())).getTime()-(new Date(b.getFullYear(),0,0)).getTime())/86400000),3);break;case"m":l+=g("m",b.getMonth()+1,2);break;case"M":l+=j("M",b.getMonth(),h,c);break;case"y":l+=i("y")?b.getFullYear():(b.getYear()%100<10?"0":"")+b.getYear()%100;break;case"@":l+=b.getTime();break;case"!":l+=b.getTime()*10000+this._ticksTo1970;break;case"'":if(i("'")){l+="'"}else{u=true}break;default:l+=a.charAt(k)}}}}return l},_possibleChars:function(a){for(var b="",c=false,e=function(h){(h=f+1<a.length&&a.charAt(f+1)==h)&&f++;return h},f=0;f<a.length;f++){if(c){if(a.charAt(f)=="'"&&!e("'")){c=false}else{b+=a.charAt(f)}}else{switch(a.charAt(f)){case"d":case"m":case"y":case"@":b+="0123456789";break;case"D":case"M":return null;case"'":if(e("'")){b+="'"}else{c=true}break;default:b+=a.charAt(f)}}}return b},_get:function(a,b){return a.settings[b]!==C?a.settings[b]:this._defaults[b]},_setDateFromField:function(a,b){if(a.input.val()!=a.lastVal){var c=this._get(a,"dateFormat"),e=a.lastVal=a.input?a.input.val():null,f,h;f=h=this._getDefaultDate(a);var i=this._getFormatConfig(a);try{f=this.parseDate(c,e,i)||h}catch(g){this.log(g);e=b?"":e}a.selectedDay=f.getDate();a.drawMonth=a.selectedMonth=f.getMonth();a.drawYear=a.selectedYear=f.getFullYear();a.currentDay=e?f.getDate():0;a.currentMonth=e?f.getMonth():0;a.currentYear=e?f.getFullYear():0;this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(a,b,c){var e=function(h){var i=new Date;i.setDate(i.getDate()+h);return i},f=function(h){try{return d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),h,d.datepicker._getFormatConfig(a))}catch(i){}var g=(h.toLowerCase().match(/^c/)?d.datepicker._getDate(a):null)||new Date,j=g.getFullYear(),l=g.getMonth();g=g.getDate();for(var u=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,k=u.exec(h);k;){switch(k[2]||"d"){case"d":case"D":g+=parseInt(k[1],10);break;case"w":case"W":g+=parseInt(k[1],10)*7;break;case"m":case"M":l+=parseInt(k[1],10);g=Math.min(g,d.datepicker._getDaysInMonth(j,l));break;case"y":case"Y":j+=parseInt(k[1],10);g=Math.min(g,d.datepicker._getDaysInMonth(j,l));break}k=u.exec(h)}return new Date(j,l,g)};if(b=(b=b==null||b===""?c:typeof b=="string"?f(b):typeof b=="number"?isNaN(b)?c:e(b):new Date(b.getTime()))&&b.toString()=="Invalid Date"?c:b){b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}return this._daylightSavingAdjust(b)},_daylightSavingAdjust:function(a){if(!a){return null}a.setHours(a.getHours()>12?a.getHours()+2:0);return a},_setDate:function(a,b,c){var e=!b,f=a.selectedMonth,h=a.selectedYear;b=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();if((f!=a.selectedMonth||h!=a.selectedYear)&&!c){this._notifyChange(a)}this._adjustInstDate(a);if(a.input){a.input.val(e?"":this._formatDate(a))}},_getDate:function(a){return !a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(),b.getMonth(),b.getDate()));var c=this._get(a,"isRTL"),e=this._get(a,"showButtonPanel"),f=this._get(a,"hideIfNoPrevNext"),h=this._get(a,"navigationAsDateFormat"),i=this._getNumberOfMonths(a),g=this._get(a,"showCurrentAtPos"),j=this._get(a,"stepMonths"),l=i[0]!=1||i[1]!=1,u=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),k=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max");g=a.drawMonth-g;var m=a.drawYear;if(g<0){g+=12;m--}if(o){var n=this._daylightSavingAdjust(new Date(o.getFullYear(),o.getMonth()-i[0]*i[1]+1,o.getDate()));for(n=k&&n<k?k:n;this._daylightSavingAdjust(new Date(m,g,1))>n;){g--;if(g<0){g=11;m--}}}a.drawMonth=g;a.drawYear=m;n=this._get(a,"prevText");n=!h?n:this.formatDate(n,this._daylightSavingAdjust(new Date(m,g-j,1)),this._getFormatConfig(a));n=this._canAdjustMonth(a,-1,m,g)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+A+".datepicker._adjustDate('#"+a.id+"', -"+j+", 'M');\" title=\""+n+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"e":"w")+'">'+n+"</span></a>":f?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+n+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"e":"w")+'">'+n+"</span></a>";var s=this._get(a,"nextText");s=!h?s:this.formatDate(s,this._daylightSavingAdjust(new Date(m,g+j,1)),this._getFormatConfig(a));f=this._canAdjustMonth(a,+1,m,g)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+A+".datepicker._adjustDate('#"+a.id+"', +"+j+", 'M');\" title=\""+s+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"w":"e")+'">'+s+"</span></a>":f?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+s+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"w":"e")+'">'+s+"</span></a>";j=this._get(a,"currentText");s=this._get(a,"gotoCurrent")&&a.currentDay?u:b;j=!h?j:this.formatDate(j,s,this._getFormatConfig(a));h=!a.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+A+'.datepicker._hideDatepicker();">'+this._get(a,"closeText")+"</button>":"";e=e?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(c?h:"")+(this._isInRange(a,s)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+A+".datepicker._gotoToday('#"+a.id+"');\">"+j+"</button>":"")+(c?"":h)+"</div>":"";h=parseInt(this._get(a,"firstDay"),10);h=isNaN(h)?0:h;j=this._get(a,"showWeek");s=this._get(a,"dayNames");this._get(a,"dayNamesShort");var q=this._get(a,"dayNamesMin"),B=this._get(a,"monthNames"),v=this._get(a,"monthNamesShort"),p=this._get(a,"beforeShowDay"),D=this._get(a,"showOtherMonths"),K=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var E=this._getDefaultDate(a),w="",x=0;x<i[0];x++){var O="";this.maxRows=4;for(var G=0;G<i[1];G++){var P=this._daylightSavingAdjust(new Date(m,g,a.selectedDay)),t=" ui-corner-all",y="";if(l){y+='<div class="ui-datepicker-group';if(i[1]>1){switch(G){case 0:y+=" ui-datepicker-group-first";t=" ui-corner-"+(c?"right":"left");break;case i[1]-1:y+=" ui-datepicker-group-last";t=" ui-corner-"+(c?"left":"right");break;default:y+=" ui-datepicker-group-middle";t="";break}}y+='">'}y+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+t+'">'+(/all|left/.test(t)&&x==0?c?f:n:"")+(/all|right/.test(t)&&x==0?c?n:f:"")+this._generateMonthYearHeader(a,g,m,k,o,x>0||G>0,B,v)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var z=j?'<th class="ui-datepicker-week-col">'+this._get(a,"weekHeader")+"</th>":"";for(t=0;t<7;t++){var r=(t+h)%7;z+="<th"+((t+h+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+s[r]+'">'+q[r]+"</span></th>"}y+=z+"</tr></thead><tbody>";z=this._getDaysInMonth(m,g);if(m==a.selectedYear&&g==a.selectedMonth){a.selectedDay=Math.min(a.selectedDay,z)}t=(this._getFirstDayOfMonth(m,g)-h+7)%7;z=Math.ceil((t+z)/7);this.maxRows=z=l?this.maxRows>z?this.maxRows:z:z;r=this._daylightSavingAdjust(new Date(m,g,1-t));for(var Q=0;Q<z;Q++){y+="<tr>";var R=!j?"":'<td class="ui-datepicker-week-col">'+this._get(a,"calculateWeek")(r)+"</td>";for(t=0;t<7;t++){var I=p?p.apply(a.input?a.input[0]:null,[r]):[true,""],F=r.getMonth()!=g,L=F&&!K||!I[0]||k&&r<k||o&&r>o;R+='<td class="'+((t+h+6)%7>=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(r.getTime()==P.getTime()&&g==a.selectedMonth&&a._keyEvent||E.getTime()==r.getTime()&&E.getTime()==P.getTime()?" "+this._dayOverClass:"")+(L?" "+this._unselectableClass+" ui-state-disabled":"")+(F&&!D?"":" "+I[1]+(r.getTime()==u.getTime()?" "+this._currentClass:"")+(r.getTime()==b.getTime()?" ui-datepicker-today":""))+'"'+((!F||D)&&I[2]?' title="'+I[2]+'"':"")+(L?"":' onclick="DP_jQuery_'+A+".datepicker._selectDay('#"+a.id+"',"+r.getMonth()+","+r.getFullYear()+', this);return false;"')+">"+(F&&!D?"&#xa0;":L?'<span class="ui-state-default">'+r.getDate()+"</span>":'<a class="ui-state-default'+(r.getTime()==b.getTime()?" ui-state-highlight":"")+(r.getTime()==u.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+'" href="#">'+r.getDate()+"</a>")+"</td>";r.setDate(r.getDate()+1);r=this._daylightSavingAdjust(r)}y+=R+"</tr>"}g++;if(g>11){g=0;m++}y+="</tbody></table>"+(l?"</div>"+(i[0]>0&&G==i[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");O+=y}w+=O}w+=e+(d.browser.msie&&parseInt(d.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");a._keyEvent=false;return w},_generateMonthYearHeader:function(a,b,c,e,f,h,i,g){var j=this._get(a,"changeMonth"),l=this._get(a,"changeYear"),u=this._get(a,"showMonthAfterYear"),k='<div class="ui-datepicker-title">',o="";if(h||!j){o+='<span class="ui-datepicker-month">'+i[b]+"</span>"}else{i=e&&e.getFullYear()==c;var m=f&&f.getFullYear()==c;o+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+A+".datepicker._selectMonthYear('#"+a.id+"', this, 'M');\" onclick=\"DP_jQuery_"+A+".datepicker._clickMonthYear('#"+a.id+"');\">";for(var n=0;n<12;n++){if((!i||n>=e.getMonth())&&(!m||n<=f.getMonth())){o+='<option value="'+n+'"'+(n==b?' selected="selected"':"")+">"+g[n]+"</option>"}}o+="</select>"}u||(k+=o+(h||!(j&&l)?"&#xa0;":""));if(!a.yearshtml){a.yearshtml="";if(h||!l){k+='<span class="ui-datepicker-year">'+c+"</span>"}else{g=this._get(a,"yearRange").split(":");var s=(new Date).getFullYear();i=function(q){q=q.match(/c[+-].*/)?c+parseInt(q.substring(1),10):q.match(/[+-].*/)?s+parseInt(q,10):parseInt(q,10);return isNaN(q)?s:q};b=i(g[0]);g=Math.max(b,i(g[1]||""));b=e?Math.max(b,e.getFullYear()):b;g=f?Math.min(g,f.getFullYear()):g;for(a.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+A+".datepicker._selectMonthYear('#"+a.id+"', this, 'Y');\" onclick=\"DP_jQuery_"+A+".datepicker._clickMonthYear('#"+a.id+"');\">";b<=g;b++){a.yearshtml+='<option value="'+b+'"'+(b==c?' selected="selected"':"")+">"+b+"</option>"}a.yearshtml+="</select>";k+=a.yearshtml;a.yearshtml=null}}k+=this._get(a,"yearSuffix");if(u){k+=(h||!(j&&l)?"&#xa0;":"")+o}k+="</div>";return k},_adjustInstDate:function(a,b,c){var e=a.drawYear+(c=="Y"?b:0),f=a.drawMonth+(c=="M"?b:0);b=Math.min(a.selectedDay,this._getDaysInMonth(e,f))+(c=="D"?b:0);e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,f,b)));a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();if(c=="M"||c=="Y"){this._notifyChange(a)}},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");b=c&&b<c?c:b;return b=a&&b>a?a:b},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");if(b){b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])}},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,e){var f=this._getNumberOfMonths(a);c=this._daylightSavingAdjust(new Date(c,e+(b<0?b:f[0]*f[1]),1));b<0&&c.setDate(this._getDaysInMonth(c.getFullYear(),c.getMonth()));return this._isInRange(a,c)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!a||b.getTime()<=a.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,e){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(e,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});d.fn.datepicker=function(a){if(!this.length){return this}if(!d.datepicker.initialized){d(document).mousedown(d.datepicker._checkExternalClick).find("body").append(d.datepicker.dpDiv);d.datepicker.initialized=true}var b=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget")){return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b))}if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b))}return this.each(function(){typeof a=="string"?d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this].concat(b)):d.datepicker._attachDatepicker(this,a)})};d.datepicker=new M;d.datepicker.initialized=false;d.datepicker.uuid=(new Date).getTime();d.datepicker.version="1.8.14";window["DP_jQuery_"+A]=d})(jQuery);(function($){$.extend({jGFeed:function(url,fnk,num,key){if(url==null){return false}var gurl="http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&callback=?&q="+url;if(num!=null){gurl+="&num="+num}if(key!=null){gurl+="&key="+key}$.getJSON(gurl,function(data){if(typeof fnk=="function"){fnk.call(this,data.responseData.feed)}else{return false}})}})})(jQuery);(function(define){define([],function(){if(!document.getElementById){throw ("Browser not compatible")}if(window.Lightstreamer){throw ("Warning: Lightstreamer singleton already on the page; lscommons.js should be the first Lightstreamer file included")}var Lightstreamer=function(){};Lightstreamer={Dp:false,hV:" 29355 $",LC:false,uY:function(){},XJ:function(Xp){var gB="";for(var gb in Xp){if(!this[gb]){this[gb]=Xp[gb]}else{}}},tD:function(bL,Mg,qN){var Mc={};for(var gb in Mg.prototype){if(bL.prototype[gb]){if(!qN){var Il="super_"+gb;while(Mg.prototype["_"+Il]){Il="super_"+Il}bL.prototype["_"+Il]=Mg.prototype[gb]}else{if(qN==="O"){bL.prototype[gb]=Mg.prototype[gb]}}}else{if(gb.indexOf("_super_")!=0||!qN){bL.prototype[gb]=Mg.prototype[gb]}}}if(!qN){var OG="_super";while(bL.prototype[OG]){OG+="_super"}bL.prototype[OG]=Mg}if(!bL.prototype.ao){bL.prototype.ao=this.DP}if(!bL.prototype.eV){bL.prototype.eV=this.DU}},DP:function(vI,Jf){if(vI.prototype["_super_"+Jf]){while(vI.prototype["_super_"+Jf]){Jf="super_"+Jf}Jf="_"+Jf}else{return}if(this[Jf].apply){return this[Jf].apply(this,Lightstreamer.nV(arguments,2))}},DU:function(vI){var Jf="_super";if(vI.prototype[Jf]){while(vI.prototype[Jf+"_super"]){Jf+="_super"}if(this[Jf].apply){this[Jf].apply(this,Lightstreamer.nV(arguments,1))}}},nV:function(OK,ZM){var hn=[];for(var Bo=ZM,vS=OK.length;Bo<vS;Bo++){hn[Bo-ZM]=OK[Bo]}return hn},TC:[],getLogger:function(){return Lightstreamer.KN},Gc:function(){return new Date().getTime()}};(function(ls){var Qj="gi_buf";ls.XJ({sV:"CONNECTING",pC:"STREAMING",dN:"STALLED",Ba:"POLLING",tX:"DISCONNECTED",xn:{length:-1},xS:new RegExp("^[a-zA-Z0-9]*$"),bg:new RegExp("^[a-zA-Z0-9_]*$"),VZ:new RegExp("^[a-zA-Z0-9_.^]*$"),Vq:"LS4_",Ya:function(IU){var xi=[].concat(IU);if(typeof(xi[0])=="undefined"){return xi}return[null].concat(xi)},aE:function(eT){if(window.encodeURIComponent){return encodeURIComponent(eT)}else{eT=escape(eT);return eT.replace(ls.Qg,"%2B")}},jd:function(UX){if(window.decodeURIComponent){return decodeURIComponent(UX)}else{return unescape(UX)}},Oa:function(MV,PP,Ls){ls.QK(MV,function(PX){if(ls.LC){return}PP(PX)},Ls)},QK:function(MV,PP,Ls){if(typeof window.addEventListener!="undefined"){window.addEventListener(MV,PP,false);return true}else{if(typeof document.addEventListener!="undefined"&&!Ls){document.addEventListener(MV,PP,false);return true}else{if(typeof window.attachEvent!="undefined"){return window.attachEvent("on"+MV,PP)}else{return false}}}},BO:function(Fu,dL,em,MN,min,max){var Kg=new Number(Fu);var jm=this.sc?this.sc:ls.Lu;if(isNaN(Kg)){jm.dSW("This is a not valid value for "+dL+': "'+Fu+'". Please use a number',dL);return em}else{if(MN==true&&Kg!=Math.round(Kg)){jm.dSW("This is a not valid value for "+dL+": "+Fu+". Please use an integer",dL);return em}else{if(!isNaN(min)&&Kg<min){jm.dSW("This is a not valid value for "+dL+": "+Fu+". The minimum value allowed is "+min,dL);return em}else{if(!isNaN(max)&&Kg>max){jm.dSW("This is a not valid value for "+dL+": "+Fu+". The maximum value allowed is "+max,dL);return em}else{jm.log(dL,Kg);return Kg}}}}},Wb:function(Fu,dL,em){var jm=this.sc?this.sc:ls.Lu;if(Fu===true||Fu===false){jm.log(dL,Fu);return Fu}else{jm.dSW("This is a not valid value for "+dL+': "'+Fu+'". Please use true or false',dL);return em}},TJ:function(xA){if(this.ox!=null&&this.ox!=""){var MH=""+xA;var ml=""+this.ox;if(MH.toLowerCase().indexOf(ml.toLowerCase())==-1){return false}}return true},UG:function(Fu){if(typeof Fu!="undefined"){if(Fu===true||Fu===false){return Fu===true}else{if(Fu==null){return null}else{if(!isNaN(Fu)&&Fu!=""){return parseFloat(Fu,10)}else{if((Fu||Fu=="")&&Fu.toString){return Fu.toString()}else{if(isNaN(Fu)){return NaN}else{ls.Lu.dGc(false,"UG");return Fu}}}}}}return null},tQ:new RegExp("^\\s*([\\s\\S]*?)\\s*$"),Aq:function(mx){return mx.replace(ls.tQ,"$1")},iH:function(YW,jp){return !YW||(jp.toLowerCase()=="http:"&&YW==80)||(jp.toLowerCase()=="https:"&&YW==443)},Dw:function(fN,Bl){var NC=[];for(var xh=0,vS=fN.length;gb<vS;gb++){if(fN[xh]==null){NC[xh]=null}else{if(Bl){NC[xh]=new Number(fN[xh])}else{NC[xh]=new String(fN[xh])}}}return db},Sk:function(fN,Bl){var db={};for(var xh in fN){if(fN[xh]==null){db[xh]=null}else{if(Bl){db[xh]=new Number(fN[xh])}else{db[xh]=new String(fN[xh])}}}return db},MY:function(max){max=max?max:1000;return Math.round(Math.random()*max)},getClosureFor:function(Vr,hC){return function(){var OK=arguments;return function(){Vr.apply(hC,OK)}}},getClosureForNoParams:function(Vr,hC){return function(){Vr.apply(hC,arguments)}},Pb:function(){return navigator.onLine===false},RM:Qj.substring(1,2),Hj:Qj.substring(0,1),Gq:Qj.substring(0,2),Qg:new RegExp("\\+",ls.Gq)})})(Lightstreamer);Lightstreamer.avoidLSGlobals=false;Lightstreamer.XJ({nW:function(){this.BS(["ChartLine","ChartTable","DynaMetapushTable","DynaScrollTable","FieldNameDescriptor","FieldPositionDescriptor","GroupIdDescriptor","GroupListDescriptor","ItemNameDescriptor","ItemPositionDescriptor","LabelFormatter","MetapushTable","MultiDynaMetapushTable","NonVisualTable","OverwriteTable","PushPage","SchemaIdDescriptor","SchemaListDescriptor","ScreenTableHelper","ScrollTable","FlashBridge","MessageListener"],true,true)},BS:function(cc,UL,HD){for(var gb=0;gb<cc.length;gb++){this.ax(cc[gb])}if(UL){window.LS_cell=Lightstreamer.cellOverwrite;window.LS_cs=Lightstreamer.cellScroll;window.LS_cM=Lightstreamer.cellMetapush}if(HD){window.LS_fadeCell=Lightstreamer.kf}},ax:function(dL){if(Lightstreamer[dL]){window[dL]=Lightstreamer[dL]}},Mp:function(){var Au=document.getElementsByTagName("script");for(var gb=0;gb<Au.length;gb++){var KL=null;if((KL=/lspushpage\.js\?(.*)$/.exec(Au[gb].src))!=null){Lightstreamer.avoidLSGlobals=(KL[1]=="avoidLSGlobals=true")}}}});Lightstreamer.XJ({gG:null,Qr:null,PB:function(){if(this.gG!=null){return this.gG}if((document.childNodes)&&(!document.all)&&(!navigator.taintEnabled)&&(!navigator.accentColorName)){this.gG=true;return true}this.gG=false;return false},Uu:function(){if(this.Qr!=null){return this.Qr}if(this.PB()){cv=navigator.userAgent;if(cv){if(cv.indexOf(" Version/")>-1){if(cv.indexOf(" Version/3.0")<=-1){this.Qr=false;return false}}else{if(cv.indexOf("Chrome/")>-1){this.Qr=false;return false}}}this.Qr=true;return true}this.Qr=false;return false},VI:new RegExp("[^0-9.]+",Lightstreamer.Hj),oE:null,aI:function(ug,HI){if(window.opera){if(!ug){return true}if(this.oE===null){if(!window.opera.version){this.oE=7}else{var Mv=window.opera.version();Mv=Mv.replace(this.VI,"");this.oE=parseFloat(Mv)}}if(HI===true){return this.oE<=ug}else{if(HI===false){return this.oE>=ug}else{return this.oE==ug}}}return false},ss:new RegExp("msie([0-9]+)[.;]",Lightstreamer.Hj),Uv:null,Kp:function(ug,HI){if(window.ActiveXObject){if(this.Uv===null&&ug){var Fv=navigator.userAgent.toLowerCase();var KL=this.ss.exec(Fv);if(KL&&KL.length>=2){this.Uv=KL[1]}}if(this.Uv!==null&&ug){if(HI===true){return this.Uv<=ug}else{if(HI===false){return this.Uv>=ug}else{return this.Uv==ug}}}return true}return false},aP:null,xR:function(){if(this.aP!==null){return this.aP}var Fv=navigator.userAgent.toLowerCase();if(window.ScriptEngine&&(ScriptEngine().indexOf("InScript")>-1)){if(Fv.indexOf("icab")>-1){Lightstreamer.LT.log("xR","iCab");this.aP=true;return true}}if(document.all){iD=Fv.indexOf("msie");if(iD>-1){Ci=Fv.substring(iD+5,iD+8);if(Ci.indexOf(5)>-1){Lightstreamer.LT.log("xR","IE5");this.aP=true;return true}}}Lightstreamer.LT.log("xR",false);this.aP=false;return false},Np:{},mh:new RegExp("Firefox\\/(\\d+\\.?\\d*)"),CV:function(ug,HI){if(this.Np===null){return false}if(!ug){ug=-1;HI=false}else{HI=HI===true||HI===false?HI:""}if(this.Np[ug+""+HI]||this.Np[ug+""+HI]===false){return this.Np[ug+""+HI]}var dK=navigator.userAgent;if(dK.indexOf("Firefox")<=-1){this.Np=null;return false}var Sv=0;if(dK.indexOf("Firefox/")>-1){var IJ=this.mh.exec(dK);if(IJ){Sv=Number(IJ[1])}}var KL;if(HI===true){KL=Sv<=ug}else{if(HI===false){KL=Sv>=ug}else{KL=Sv==ug}}this.Np[ug+""+HI]=KL;return KL},XK:null,Jt:function(){if(this.XK!==null){return this.XK}var dK=navigator.userAgent;dK=dK.toLowerCase();this.XK=dK.indexOf("android")>-1&&dK.indexOf("webkit")>-1;return this.XK},Vc:null,Gj:function(){if(this.Vc!==null){return this.Vc}var dK=navigator.userAgent;this.Vc=dK.indexOf("Chrome/")>-1;return this.Vc}});(function(ls){ls.XJ({BY:function(Zn,kw){ls.FL.log("BY",Zn,kw);this.en(Zn,kw,"")},en:function(Zn,kw,YL){var og="";if(ls.ox!=null&&ls.ox!=""){og="domain=."+ls.ox+"; "}var Ka=ls.aE(Zn)+"="+kw+"; ";var SC=Ka+og+YL+"path=/;";document.cookie=SC;ls.FL.log("en",SC)},Fm:function(Zn){Zn=ls.aE(Zn)+"=";var sT=document.cookie.toString();sT=sT.split(";");var jm=ls.FL;for(var gb=0;gb<sT.length;gb++){sT[gb]=ls.Aq(sT[gb]);jm.log("Fm",Zn,"?",sT[gb]);if(sT[gb].indexOf(Zn)==0){var dW=sT[gb].substring(Zn.length,sT[gb].length);jm.log("Fm",Zn,dW);return dW}}jm.log("Fm",Zn,null);return null},fI:function(Zn){ls.FL.log("fI",Zn);var bI=new Date();bI.setTime(bI.getTime()-86400000);var YL="expires="+bI.toGMTString()+"; ";this.en(Zn,"deleting",YL)},OV:false,Vk:function(){var jm=ls.FL;jm.log("Vk",0);var Ib=ls.MY();var iL="LS__cookie_test"+Ib;this.BY(iL,"testing");var YA=this.Fm(iL);if(YA=="testing"){jm.log("Vk",1);this.fI(iL);YA=this.Fm(iL);if(YA==null){jm.log("Vk",2);this.OV=true}}},Am:1000,uf:200})})(Lightstreamer);Lightstreamer.XJ({Ie:"|",Fk:function(Zn){var ft=this.Fm(Zn);if(!ft){return null}var Bg=ft.split(this.Ie);if(Bg[0]==""){Bg.shift()}if(Bg[Bg.length-1]==""){Bg.pop()}return Bg.length>0?Bg:null},Rl:function(Zn,id){var kw=this.Fm(Zn);if(!kw){kw=this.Ie}else{if(kw.indexOf(this.Ie+id+this.Ie)>-1){return false}}kw+=id+this.Ie;this.BY(Zn,kw);return true},kO:function(Zn,id){var kw=this.Fm(Zn);if(!kw){return}var fn=this.Ie+id+this.Ie;if(kw.indexOf(fn)>-1){kw=kw.replace(fn,this.Ie);if(kw==this.Ie){this.fI(Zn)}else{this.BY(Zn,kw)}}},KK:function(Zn,Se){var kw=Se.join(this.Ie);this.BY(Zn,kw)}});(function(ls){ls.Ms=function(uI){this.nZ=null;if(typeof uI!="undefined"){this.nZ=uI}else{this.nZ={}}};ls.Ms.So=function(fN,Bl){var LN={};var nZ=fN.YT();for(var SK in nZ){LN[SK]={};for(var wm in nZ[SK]){if(nZ[SK][wm]==null){LN[SK][wm]=null}else{if(Bl){LN[SK][wm]=new Number(nZ[SK][wm])}else{LN[SK][wm]=new String(nZ[SK][wm])}}}}return new this(LN)};ls.Ms.prototype={TA:function(qq,SK,wm){if(!this.nZ[SK]){this.nZ[SK]={}}this.nZ[SK][wm]=qq},FS:function(SK,wm){if(!this.nZ[SK]){return null}if(typeof this.nZ[SK][wm]=="undefined"){return null}return this.nZ[SK][wm]},ek:function(SK,wm){if(!this.nZ[SK]){return}if(this.nZ[SK][wm]){delete (this.nZ[SK][wm])}for(var gb in this.nZ[SK]){return}delete (this.nZ[SK])},insertRow:function(Hf,SK){this.nZ[SK]=Hf},Qh:function(SK){if(!this.nZ[SK]){return null}return this.nZ[SK]},qC:function(SK){var uM=this.Qh(SK);this.BQ(SK);return uM},BQ:function(SK){if(!this.nZ[SK]){return}delete (this.nZ[SK])},YT:function(){return this.nZ}}})(Lightstreamer);Lightstreamer.bh=function(WS){this.Um=WS?WS:"GE"};Lightstreamer.bh.prototype={Px:function(pq){var KL=false;if(pq){KL=Lightstreamer.KN.Px(pq)}return KL||Lightstreamer.KN.Px(this.Um)},cg:function(QF){if(Lightstreamer.Mx){this.log(QF,arguments,Lightstreamer.Mx)}else{this.log(QF,arguments)}},log:function(QF){if(!this.Px()){return}if(Lightstreamer.obfMap){QF=Lightstreamer.obfMap.pgh(QF)}var fA=this.NQS(arguments);Lightstreamer.KN.XHj(this.Um,fA)},hu:function(EY,QF,Um,oB,OK){if(!this.Px(Um)){return}if(Lightstreamer.obfMap){OK[oB]=Lightstreamer.obfMap.pgh(OK[oB])}var fA=EY+" "+this.NQS(OK,oB);if(this.Um!=Um){Lightstreamer.KN.XHj(this.Um,fA,EY)}Lightstreamer.KN.XHj(Um,fA,EY)},MG:function(XW,QF){this.hu(this.upH(XW),QF,"EX",1,arguments)},JTF:function(QF,Ke){this.hu(Ke,QF,"EX",1,arguments)},error:function(EQ,QF){this.hu(EQ,QF,"ER",1,arguments)},dSW:function(EQ,QF){this.error(EQ,QF);throw (EQ)},GSR:function(EQ,QF){if(!this.Px("ER")){return}Lightstreamer.fJ.EHb(this.error,0,this,[EQ,QF])},PqW:function(XW,Ke,QF){this.hu(this.upH(XW,Ke),QF,"ER",2,arguments)},dGc:function(De,QF){if(!De){this.hu("",QF,"AS",1,arguments)}},NQS:function(OK,Lh){Lh=Lh?Lh:0;var fA=" ";for(var gb=Lh;gb<OK.length;gb++){try{var Ss=OK[gb];if(Ss==null){fA+="NULL"}else{if(Ss.prototype){fA+=Ss.apply()}else{if(Ss.length<0){fA+="*"}else{if(Ss.charAt!=null){fA+=Ss}else{if(Ss[0]==Ss){fA+=Ss}else{if(Ss.length!=null&&Ss.top==null){fA+="(";fA+=this.NQS(Ss);fA+=")"}else{fA+=Ss}}}}}}fA+=" "}catch(XW){fA+="missing-parameter "}}return fA},upH:function(XW,Ov){var ck=XW.message;if(typeof ck=="undefined"){if(XW.getMessage){ck=XW.getMessage()}if(typeof ck=="undefined"){ck=XW}}var KL="exception\n"+ck+" \n\n";if(Ov){KL+="thrown by your callback\n\n"+Ov}if(XW.stack){KL+=XW.stack;KL+="\n"}return KL}};(function(ls){ls.LogSystem=function(){this.hK="";this.gv={};this.gv.length=0;this.xY=0;this.UZ=new ls.BufferConsumer();this.addConsumer(this.UZ,true);this.UZ.Il++;this.UZ.wt[0]="START OF LOG";this.UZ.wt[0+"_C"]="GE";this.jK={};this.sc=this.getLogger("LS")};ls.LogSystem.prototype={getLogger:function(WS){if(!this.jK[WS]){this.jK[WS]=new ls.bh(WS)}return this.jK[WS]},getInternalLog:function(){return this.UZ},addConsumer:function(ka,LV){this.gv[this.gv.length]=ka;this.gv.length++;ka.Xk=this;if(LV!=true){this.UZ.sendLogToConsumer(ka)}var LP=ka.bP.split(" ");this.AK(LP)},removeConsumer:function(ka){Ei=false;var gb=0;while((gb<this.gv.length)&&(!Ei)){if(this.gv[gb]==ka){this.cP(gb);Ei=true}gb++}return Ei},cP:function(gb){Yv=this.gv.length-1;if(gb!=Yv){this.gv[gb]=this.gv[Yv]}delete (this.gv[Yv]);this.gv.length--;this.Sc()},Ys:function(Um){if(!Um){return}if(this.hK.indexOf(Um)>-1){return}if(this.hK==""){this.hK+=Um}else{this.hK+=" "+Um}this.UZ.addLogCategory(Um)},AK:function(bP){for(var Um in bP){this.Ys(bP[Um])}},Sc:function(){this.hK="";for(var gb=0;gb<this.gv.length;gb++){var LP=this.gv[gb].bP.split(" ");this.AK(LP)}},XHj:function(WS,fA,oO){if(!this.Px(WS)){return}var ZD=++this.xY;fA=this.amP(ZD)+WS+" "+fA;this.TL(WS,fA,oO);return fA},Px:function(WS){if(this.hK.length==0||this.hK.indexOf(WS)==-1){return false}return true},amP:function(ZD){var XC=new Date();var fA=window.name;fA+=" ";fA+=ZD;fA+=": ";fA+=XC.getHours();fA+=":";fA+=XC.getMinutes();fA+=":";fA+=XC.getSeconds();fA+=",";fA+=XC.getMilliseconds();fA+=" ";return fA},TL:function(WS,fA,oO){var gb;for(gb=0;gb<this.gv.length;gb++){var ka=this.gv[gb];try{if(ka.bP.indexOf(WS)>-1){if(ka.wN==true){ka.FIm(oO,WS)}else{ka.FIm(fA,WS)}}}catch(XW){}}},aJ:function(ka,qb){this.sc.error("Sorry, the "+ka+" is not compatible with this Browser",qb)},Vkt:function(Um){return(Um=="ER"||Um=="AS"||Um=="EX")},Hed:function(){for(var gb=0;gb<this.gv.length;gb++){if(this.gv[gb].Yc){this.gv[gb].Yc()}}},ANj:function(hC,Ke,EY){var Ui=true;if((typeof WN!="undefined")&&(WN)){Ui=!iO.fPl("onClientAlert","phZ",{Ke:Ke,EY:EY})}if(Ui&&hC.onClientAlert){try{hC.onClientAlert(Ke,EY)}catch(XW){this.sc.PqW(XW,hC.onClientAlert,"onClientAlert")}}},hSe:function(){var wt=new ls.BufferConsumer();wt.setHistoryDim(10);wt.addLogCategory("ER");wt.wN=true;ls.TX=wt;this.addConsumer(wt)},nYV:function(Mf,pH){with(Lightstreamer){if(Ve==null&&TX!=null){Ve=new FunctionConsumer(Mf,pH);Ve.addLogCategory("ER");Ve.wN=true;this.removeConsumer(TX);TX.sendLogToConsumer(Ve);this.addConsumer(Ve,true);TX=null}}}};ls.TC.push(function(){ls.KN=new ls.LogSystem();ls.KN.UZ.setHistoryDim(5)})})(Lightstreamer);Lightstreamer.XJ({Qc:null,Vj:null,Ve:null,TX:null});(function(ls){ls.LogConsumer=function(){this.Xk;this.bP="";this.wN=false};ls.LogConsumer.prototype={FIm:function(fA,Um){},isCompatible:function(){return false},addLogCategory:function(Um){if(!Um){return}if(this.bP.indexOf(Um)>-1){return}if(this.bP==""){this.bP+=Um}else{this.bP+=" "+Um}if(this.Xk){this.Xk.Ys(Um)}},getLogCategories:function(){return this.bP}}})(Lightstreamer);(function(ls){ls.BufferConsumer=function(){this.eV(ls.BufferConsumer);this.QX=0;this.Nw=0;this.Il=-1;this.wt={}};ls.BufferConsumer.prototype={isCompatible:function(){return true},extractLog:function(wf,Qd,qc,AN){var gb;var Cm=1;if(wf==null){gb=this.Nw}else{gb=this.Il-wf+1;if(gb<this.Nw){gb=this.Nw}}if(Qd==null){Qd="\n"}var fc="";AN=AN===true;while(gb<=this.Il){if(typeof qc!="undefined"&&qc){fc+=qc;if(AN){fc+=Cm+"="}}if(AN){fc+=ls.aE(this.wt[gb].replace(/[\n\r\f]/g,"||"))}else{fc+=this.wt[gb]}fc+=Qd;gb++;Cm++}return fc},sendLogToConsumer:function(ka){var gb=this.Nw;while(gb<=this.Il){if(ka.bP.indexOf(this.wt[gb+"_C"])>-1){ka.FIm(this.wt[gb],this.wt[gb+"_C"])}gb++}},setHistoryDim:function(If){this.QX=If},FIm:function(fA,Um){var ZD=++this.Il;var Lh=ZD-this.QX+1;while(this.Nw<Lh){delete (this.wt[this.Nw]);delete (this.wt[this.Nw+"_C"]);this.Nw++}this.wt[ZD]=fA;this.wt[ZD+"_C"]=Um}};ls.tD(ls.BufferConsumer,ls.LogConsumer)})(Lightstreamer);(function(ls){ls.RemoteConsumer=function(Ox,Nj,Fl){this.eV(ls.RemoteConsumer);this.Ox=Ox;this.Nj=Nj?Nj:0;this.Fl=Fl?Fl:0;this.QZ=0;this.cA=0;this.vW=100;this.wt=new ls.BufferConsumer();this.wt.setHistoryDim(this.Ox)};ls.RemoteConsumer.prototype={kPB:function(){var jg=false;if((typeof WN!="undefined")&&(WN)){jg=true}else{if(!ls.Db||!ls.Db.vk){if(this.cA<this.vW){this.wt.setHistoryDim(this.cA+1)}return}}var AQ=this.wt.extractLog(this.cA,"&","LS_log",true);if(AQ!=""){if(jg){WN.eFS(AQ)}else{ls.Db.BR("eFS",AQ)}}this.cA=0;this.wt=new ls.BufferConsumer();this.wt.setHistoryDim(this.Ox)},Yc:function(){ls.fJ.EHb(this.kPB,0,this)},FIm:function(fA,Um){if(this.Fl>0&&this.QZ>=this.Fl){if(this.cA>0){this.Yc()}return}if(this.Nj>0&&fA.length>this.Nj){fA=fA.substr(0,this.Nj)}this.cA++;this.wt.FIm(fA,Um);this.QZ++;if(this.cA>=this.Ox){this.Yc()}},VWh:function(Wf){if(!Wf){this.Nj=0}else{this.Nj=Wf}},NDJ:function(max){if(!max){this.Fl=0}else{this.Fl=max}},isCompatible:function(){return true}};ls.tD(ls.RemoteConsumer,ls.LogConsumer)})(Lightstreamer);(function(ls){ls.FunctionConsumer=function(Ua,Du,aY){this.eV(ls.FunctionConsumer);this.Ua=Ua;this.aY=aY?aY:Ua;this.Du=Du};ls.FunctionConsumer.prototype={isCompatible:function(){if(!this.Ua){return false}return(this.Ua.apply)?true:false},FIm:function(fA,Um){var vM=new Array(fA);var Jf=this.Ua;if(ls.KN.Vkt(Um)){Jf=this.aY}if(Jf.apply){try{Jf.apply(this.Du,vM)}catch(XW){}}}};ls.tD(ls.FunctionConsumer,ls.LogConsumer)})(Lightstreamer);(function(ls){ls.AlertConsumer=function(Ox){this.eV(ls.AlertConsumer);this.xu=Ox;this.cA=0;this.wt=new ls.BufferConsumer();this.wt.setHistoryDim(this.xu)};ls.AlertConsumer.prototype={isCompatible:function(){return window.alert},FIm:function(fA,Um){this.cA++;this.wt.FIm(fA,Um);if(this.cA>=this.xu){this.cA=0;ls.fJ.EHb(this.fsO,0,this,[this.wt.extractLog(this.xu,"\n")]);this.wt=new ls.BufferConsumer();this.wt.setHistoryDim(this.xu)}},fsO:function(text){alert(text)}};ls.tD(ls.AlertConsumer,ls.LogConsumer)})(Lightstreamer);(function(ls){var SJ="popup warning";ls.BP=function(ZG){this.tW=ZG;this.sc=ls.KN.getLogger("FM");this.Tw=ls.KN.getLogger("CE");this.jT=ls.KN.getLogger("M1")};ls.BP.prototype={ohO:function(jg,Rx){var KL=this.Fui(jg,Rx);this.Tw.cg("ohO",jg,Rx,KL.GN,KL.log,KL.qa);return KL},Fui:function(jg,Rx){var cH={};var wh=1;try{if(this.tW==null){wh=2;cH.log="null";cH.NR=1;cH.qa=true;return cH}else{if(this.tW.closed){wh=3;this.tW=null;cH.log="closed";cH.NR=2;cH.qa=true;return cH}else{if(!this.tW.Lightstreamer||(jg&&!this.tW.Lightstreamer.Dp)){wh=4;cH.log=(!this.tW.Lightstreamer)?"not global":"not active";cH.NR=(!this.tW.Lightstreamer)?3:4;this.tW=null;cH.qa=false;return cH}else{if(jg){if(this.tW.iO){wh=5;if(!this.tW.WN){wh=11;this.tW=null;cH.log="too young";cH.NR=5;cH.qa=false;return cH}else{if(Rx&&!this.tW.WN.dS){wh=6;this.tW=null;cH.log="wait conf";cH.NR=7;cH.qa=false;return cH}}}else{if(this.tW.Lightstreamer.Vp){if(this.tW.Lightstreamer.Vp.rl){wh=7;var SQ=this.tW.Lightstreamer.Vp.rl;if(ls.Vp){ls.Vp.rl=SQ}this.tW=SQ;var Wt=this.ohO(true);Wt.log="linked: "+Wt.log;cH.NR=8;return Wt}else{wh=8;this.tW=null;cH.log="linked w/o reference";cH.NR=9;cH.qa=false;return cH}}else{wh=9;this.sc.dGc(false,"ohO",this.tW);this.tW=null;cH.log="not engine";cH.NR=10;cH.qa=true;return cH}}}}}}wh=10;cH.log="OK";cH.NR=11;cH.GN=true;return cH}catch(XW){this.tW=null;cH.log="exception "+wh+" "+XW;cH.NR=12;cH.qa=true;return cH}},taf:function(Pr,Zr){var RG=Pr+"__TRASH";var kh=this.YvS(Pr,RG);var Zv='eval("'+kh+'; ")';this.sc.log("taf",1);var iq=ls.ZVw("javascript:"+Zv,Pr);this.sc.log("taf",2,iq);if(iq===false){return false}else{if(!iq){var iq=ls.ZVw(ls.dD,Pr);this.sc.log("taf",4,iq);if(iq===false){return false}else{if(iq==null){this.jT.log(SJ,1);return true}}}}try{this.sc.log("taf",5);if(iq.closed){return true}if(Zr){this.sc.log("taf",5.1);if(iq==iq.top&&!iq.Lightstreamer){this.sc.log("taf",5.2);this.jT.log(SJ,2);try{this.dn(iq,Pr,RG)}catch(XW){this.sc.MG(XW,"taf",22)}return true}iq=iq.parent;this.sc.log("taf",5.3);if(iq==null){return true}}this.sc.log("taf",6);if(!iq.Lightstreamer){return true}this.sc.log("taf",7);if(!iq.Lightstreamer.KN){return true}this.sc.log("taf",8);this.tW=iq}catch(XW){this.sc.MG(XW,"taf",11)}return true},vPQ:function(FX,jH){if(this.taf("LS__"+FX,true)===false){return false}var gB=this.ohO(true,!jH);return gB},YvS:function(dL,wa){var GA=function(dL,wa){if(window.name==dL){if(window==top&&!(window.Lightstreamer&&window.Lightstreamer.KN)){window.name=wa;window.close()}}};var kx="callFun";return"var "+kx+" = "+GA.toString()+"; "+kx+"('"+dL+"', '"+wa+"');"},dn:function(iq,Pr,RG){if(iq.name!=Pr&&iq.name!=RG){return}iq.close()}}})(Lightstreamer);Lightstreamer.XJ({CU:0,NG:0,hm:false,jUG:"You have Norton Internet Security or Norton\nPersonal Firewall installed on this computer.\nIf no real-time data show up, then you need\nto disable Ad Blocking in Norton Internet\nSecurity and then refresh this page",ZVw:function(DQ,Pr,qf){var cH=null;Lightstreamer.LT.log("ZVw",document.cookie);try{cH=this.dao(DQ,Pr,qf)}catch(XW){Lightstreamer.LT.MG(XW);return false}if(cH){try{this.NG++}catch(fp){this.LC=true}}return cH},dao:function(DQ,Pr,qf){if(window.SymError){var Tg=true;if((this.NG-this.CU)<-5){Tg=false}if(window.SymRealWinOpen&&Tg){this.CU++;Lightstreamer.LT.log("dao",1);return window.SymRealWinOpen(DQ,Pr,"height=100,width=100",true)}else{if(!this.hm){this.hm=true;Lightstreamer.LT.GSR(this.jUG,"window.open");var ST=null;if(window.WN){ST=WN}else{if(Lightstreamer.Vp){ST=Lightstreamer.Vp}}if(ST!=null){Lightstreamer.KN.ANj(ST,100,this.jUG)}}}Tg=true;this.CU=0;return null}else{if(!qf&&Lightstreamer.Gc()-Lightstreamer.mr>Lightstreamer.uP){return false}return window.open(DQ,Pr,"height=100,width=100",true)}}});Lightstreamer.XJ({EZZ:function(eC){var Zb=0;var dm=eC.length;for(var gb=0;gb<dm;gb++){Zb+=eC.charCodeAt(gb)}return parseInt(Zb)},hFx:function(gs,Zn,Lh,Hn,wJ){var EJ=3;var aD;var KM=Lh;var dk=Lh-Hn;var KL="";var Zb=this.EZZ(Zn.toString());if(Zb>0){var rh=gs.length;if(rh>0){var gb;for(gb=0;KM+EJ-gb<=rh;gb+=3){var hM=gb;if(dk>0){for(hM=Zb*3;hM>=dk;hM-=dk){}}var jD=gs.substring(gb,EJ-1);var Je=gs.substring(hM,hM+2);var Ji=gs.substring(KM,KM+EJ-gb);aD=parseInt(jD)-parseInt(Je)+wJ-parseInt(Ji);var HN=unescape("%"+aD.toString(16));KL=HN+KL;EJ+=3;KM+=3;Zb+=aD}}}return KL}});(function(ls){Lightstreamer.MessageListener=function(){};Lightstreamer.MessageListener.prototype={onAbort:function(){return},onError:function(){return},onDiscarded:function(){return},onDeny:function(code,message){return},onProcessed:function(){return}}})(Lightstreamer);(function(ls){ls.ZN=function(oC){this.name=null;this.parent=null;this.sc=ls.KN.getLogger("OP");if(oC){this.Aw(oC)}};ls.ZN.prototype={JnG:ls.BO,wia:ls.Wb,kdx:function(Xf,Fu){this[Xf]=ls.UG(Fu);if(this.parent==window.WN){this.TV(Xf)}},TV:function(HR,ZT,Ah){var PX="WPQ";var ji={pH:this.name,Xf:HR};ji.Fu=ls.UG(this[HR]);this.sc.log("TV",HR,(HR!="qW"?this[HR]:"[...]"));if(this.parent==window.WN){var vA=iO.qZs();for(var gb in vA){vA[gb].BR(PX,ji)}}else{if(!ls.Db.rtZ(PX,ji)){this.sc.error("The LightstreamerEngine instance is not available",ZT);this[HR]=Ah;return false}}return true},Aw:function(tv){var EM=this.BB;for(var gb=0;gb<EM.length;gb++){this[EM[gb]]=ls.UG(tv[EM[gb]])}}}})(Lightstreamer);Lightstreamer.ox=null;Lightstreamer.dD="lsblank.html?";(function(ls){var BB=["Ne","Up","ib","Nj","Fl"];Lightstreamer.Context=function(){this.Ne=null;this.Up=null;this.ib=null;this.Nj=0;this.Fl=0;this.KN=null;this.BB=BB;this.eV(ls.Context,arguments[0]);this.name="context"};Lightstreamer.Context.prototype={getLogger:function(){return this.KN},Aw:function(tv){this.ao(ls.Context,"Aw",tv);if(!this.KN&&tv.KN){this.KN=tv.KN}},bind:function(){if(this.parent&&this.parent!=window.WN){return}if(ls.ox!=null&&ls.ox!=""){document.domain=ls.ox;var Jc="domain="+ls.ox+"&";ls.dD+=Jc;if(ls.Wa){ls.Wa.xT=Jc}}ls.Iv=this;ls.Vk();return true},setDebugAlertsOnClientError:function(Zi){var Ah=this.Up;this.Up=Zi===true;if(this.parent==null){this.EW()}else{this.TV("Up","setDebugAlertsOnClientError",Ah)}},EW:function(){if(this.Up){if(!ls.Qc){var Qc=new ls.AlertConsumer(1);Qc.addLogCategory("ER");ls.KN.addConsumer(Qc,true);ls.Qc=Qc;this.sc.log("EW",1)}else{this.sc.log("EW",2)}}else{if(ls.Qc){ls.KN.removeConsumer(ls.Qc);ls.Qc=null;this.sc.log("EW",3)}else{this.sc.log("EW",4)}}},setRemoteAlertsOnClientError:function(Zi,Nj,Fl){var WH=this.ib;var lh=this.Fl;var nC=this.Nj;this.ib=Zi===true;if(Fl){this.Fl=this.JnG(Fl,"setRemoteAlertsOnClientError",this.Fl,true,0)}if(Nj){this.Nj=this.JnG(Nj,"setRemoteAlertsOnClientError",this.Nj,true,0)}if(this.parent==null){this.iU()}else{var KL=this.TV("Fl","setRemoteAlertsOnClientError");KL&=this.TV("Nj","setRemoteAlertsOnClientError");KL&=this.TV("ib","setRemoteAlertsOnClientError");if(!KL){this.ib=WH;this.Fl=lh;this.Nj=nC}}},iU:function(){if(this.ib){if(ls.Vj){ls.Vj.VWh(this.Nj);ls.Vj.NDJ(this.Fl);this.sc.log("iU",2)}else{var Vj=new ls.RemoteConsumer(1,this.Nj,this.Fl);Vj.addLogCategory("ER");ls.KN.addConsumer(Vj,true);ls.Vj=Vj;this.sc.log("iU",1)}}else{if(ls.Vj){ls.KN.removeConsumer(ls.Vj);ls.Vj=null;this.sc.log("iU",3)}else{this.sc.log("iU",4)}}},setDomain:function(domain){if(this.parent==window.WN||this.parent==null){if(domain!=null&&domain!=""&&ls.Iv!=this){ls.ox=domain;this.Ne=ls.ox;this.sc.log("setDomain",ls.ox)}if(!ls.TJ(location.hostname)){this.sc.error("The domain set is inconsistent with the hostname used","setDomain")}}}};ls.tD(ls.Context,ls.ZN);ls.TC.push(function(){ls.Uj=new ls.Context();ls.Uj.setDebugAlertsOnClientError(true);ls.Uj.KN=ls.KN})})(Lightstreamer);(function(ls){var BB=["vw","BM","Of","wd","cG","oj","Da","Gl","NH","vX","rd","jO","Ze","hU","Pi"];Lightstreamer.Policy=function(){this.vw=0;this.BM=NaN;this.Of=NaN;this.wd=2000;this.cG=3000;this.oj=NaN;this.Da=0;this.Gl=30000;this.NH=true;this.vX=true;this.rd=4000;this.jO=1000;this.Ze=300;this.hU=2000;this.Pi=4000;this.BB=BB;this.eV(ls.Policy,arguments[0]);this.name="policy"};Lightstreamer.Policy.prototype={setForceBindTimeout:function(Dc){var Ah=this.hU;this.hU=this.JnG(Dc,"setForceBindTimeout",this.setForceBindTimeout,true,0);this.TV("hU","setForceBindTimeout",Ah)},getForceBindTimeout:function(){return this.hU},setSwitchCheckTimeout:function(Dc){var Ah=this.Pi;this.Pi=this.JnG(Dc,"setSwitchCheckTimeout",this.setSwitchCheckTimeout,true,0);this.TV("Pi","setSwitchCheckTimeout",Ah)},getSwitchCheckTimeout:function(){return this.Pi},setRequestSerializationTimeout:function(Dc){var Ah=this.Ze;this.Ze=this.JnG(Dc,"setRequestSerializationTimeout",this.Ze,true,0);this.TV("Ze","setRequestSerializationTimeout",Ah)},getRequestSerializationTimeout:function(){return this.Ze},setMaxBandwidth:function(vw){var Ah=this.vw;var ce=new String(vw);if(ce.toLowerCase()=="unlimited"){this.vw=0}else{this.vw=this.JnG(vw,"setMaxBandwidth",this.vw,false,0)}this.TV("vw","setMaxBandwidth",Ah)},getMaxBandwidth:function(){return this.vw},setKeepaliveInterval:function(BM){var Ah=this.BM;this.BM=this.JnG(BM,"setKeepaliveInterval",this.BM,true,1);this.TV("BM","setKeepaliveInterval",Ah)},getKeepaliveInterval:function(){if(!isNaN(this.Of)){return this.Of}return this.BM},setTimeoutForStalled:function(wd){var Ah=this.wd;this.wd=this.JnG(wd,"setTimeoutForStalled",this.wd,true,1);this.TV("wd","setTimeoutForStalled",Ah)},getTimeoutForStalled:function(){return this.wd},setTimeoutForReconnect:function(cG){var Ah=this.cG;this.cG=this.JnG(cG,"setTimeoutForReconnect",this.cG,true,1);this.TV("cG","setTimeoutForReconnect",Ah)},getTimeoutForReconnect:function(){return this.cG},setPollingInterval:function(Da){var Ah=this.Da;this.Da=this.JnG(Da,"setPollingInterval",this.Da,true,0);this.TV("Da","setPollingInterval",Ah)},getPollingInterval:function(){if(!isNaN(this.oj)){return this.oj}return this.Da},setIdleTimeout:function(Gl){var Ah=this.Gl;this.Gl=this.JnG(Gl,"setIdleTimeout",this.Gl,true,0);this.TV("Gl","setIdleTimeout",Ah)},getIdleTimeout:function(){return this.Gl},setSlowingEnabled:function(NH){var Ah=this.NH;this.NH=this.wia(NH,"setSlowingEnabled",this.NH);this.TV("NH","setSlowingEnabled",Ah)},isSlowingEnabled:function(){return this.NH},setCanUseGetForStreaming:function(vX){var Ah=this.vX;this.vX=this.wia(vX,"setCanUseGetForStreaming",this.vX);this.TV("vX","setCanUseGetForStreaming",Ah)},canUseGetForStreaming:function(){return this.vX},setBufferedStreamingHandled:function(){},setConnectTimeout:function(eu){var Ah=this.rd;this.rd=this.JnG(eu,"setConnectTimeout",this.rd,true,1);this.TV("rd","setConnectTimeout",Ah)},getConnectTimeout:function(){return this.rd},setFirstPollInterval:function(xt){var Ah=this.jO;this.jO=this.JnG(xt,"setFirstPollInterval",this.jO,true,0);this.TV("jO","setFirstPollInterval",Ah)},getFirstPollInterval:function(){return this.jO}};ls.tD(ls.Policy,ls.ZN)})(Lightstreamer);(function(ls){var Bm="/lightstreamer";var BB=["fu","pj","bs","FA","qI","IE","qW","Uh"];Lightstreamer.Connection=function(){this.fu=Bm;this.pj=false;this.bs=location.hostname;this.FA=location.port;this.qI=null;this.Uh="STREAMING_IN_PROGRESS";this.IE=null;this.qW=null;this.BB=BB;this.eV(ls.Connection,arguments[0]);this.name="connection"};Lightstreamer.Connection.prototype={setServerUrlPath:function(dj){var Ah=this.fu;if(dj){if(dj.indexOf("/")!=0){dj="/"+dj}while(dj.length>0&&dj.lastIndexOf("/")==dj.length-1){dj=dj.substring(0,dj.length-1)}this.fu=dj}else{this.fu=Bm}this.TV("fu","setServerUrlPath",Ah)},getServerUrlPath:function(){return this.fu},setLSHost:function(Ub){var xH=this.bs;if(Ub){if(Ub.indexOf("://")>0){Ub=Ub.substring(Ub.indexOf("://")+3)}if(!ls.TJ(Ub)&&arguments[1]!==true){this.sc.error("Lightstreamer Server hostname inconsistent with the domain set","setLSHost")}this.bs=Ub;bp=Ub}else{this.bs=location.hostname;bp=location.hostname}this.TV("bs","setLSHost",xH)},getLSHost:function(){return this.bs},setLSPort:function(port){var Ah=this.FA;if(port){this.FA=this.JnG(port,"setLSPort",this.FA,true,0)}else{this.FA=location.port}this.TV("FA","setLSPort",Ah)},getLSPort:function(){return this.FA},setAdapterName:function(qI){var Ah=this.qI;this.qI=qI;this.TV("qI","setAdapterName",Ah)},getAdapterName:function(){return this.qI},setStatusBarUrlPortion:function(RZ){var Ah=this.Uh;this.Uh=ls.aE("_"+RZ);this.TV("Uh","setStatusBarUrlPortion",Ah)},getStatusBarUrlPortion:function(){return this.Uh},setUserName:function(IE){var Ah=this.IE;this.IE=IE;this.TV("IE","setUserName",Ah)},setPassword:function(ec){var Ah=this.qW;this.qW=ec;this.TV("qW","setPassword",Ah)}};ls.tD(ls.Connection,ls.ZN)})(Lightstreamer);(function(ls){var BB=["HY","sa","Fr","nH"];ls.Dj=function(oC){this.HY=false;this.sa=null;this.Fr=null;this.nH=ls.tX;this.BB=BB;this.eV(ls.Dj,oC);this.name="iJ"};ls.tD(ls.Dj,ls.ZN)})(Lightstreamer);(function(ls){ls.Jn=function(Ja,Gi,fJ,iS,lo){this.re=iS===true;this.Ja=Ja;this.vH=Gi;this.uH=(this.re)?[]:{readId:0,writeId:0,firstId:0};this.lo=lo||false;this.fJ=fJ;this.sc=ls.KN.getLogger("XS");if(!this.re){this.wW=ls.Jn.cu++;ls.Jn.HT[this.wW]=this;if(!ls.Jn.oF){ls.Jn.oF=true;this.fJ.UwB(ls.Jn.Yd,50,ls.Jn)}}this.sc.log("Jn")};ls.Jn.oF=false;ls.Jn.HT={};ls.Jn.cu=0;ls.Jn.Yd=function(){for(var gb in this.HT){this.HT[gb].Yd()}};ls.Jn.remove=function(Lg){delete (this.HT[Lg.wW])};ls.Jn.prototype={HeS:function(GG,OL,Lf,Un){if(this.re){this.fJ.EHb(this.Yo,0,this,[GG,OL,Lf,Un])}else{this.Yo(GG,OL,Lf,Un)}if(this.lo){ls.TS.Dt()}},Yo:function(GG,OL,Lf,Un){if(this.re){this.uH.push(new ls.Jn.pr(GG,OL,Lf,Un));this.Yd()}else{this.PR();var ku=this.uH.writeId;this.uH[ku]=new ls.Jn.pr(GG,OL,Lf,Un);this.uH.writeId++;this.fQ()}},fQ:function(){var At=this.uH.readId;for(;this.uH.firstId<At;this.uH.firstId++){delete (this.uH[this.uH.firstId])}},PR:function(){if(this.uH.firstId==this.uH.readId&&this.uH.firstId==this.uH.writeId){this.uH.writeId=0;this.uH.readId=0;this.uH.firstId=0;this.uH={readId:0,writeId:0,firstId:0};this.sc.log("PR")}},Yd:function(){if(this.re){while(this.uH.length>0){var GG=this.uH.shift();this.cD(GG)}}else{var ku=this.uH.readId;while(ku<this.uH.writeId){var GG=this.uH[ku];this.cD(GG);ku++}this.uH.readId=ku}},cD:function(GG){try{if(!this.Ja.RmT(GG.OL,GG.Un)){return}if(this.vH[GG.GG]){this.vH[GG.GG](GG.Lf)}else{this.sc.JTF("cD",3,GG)}}catch(XW){this.sc.MG(XW,"cD",GG)}}};ls.Jn.pr=function(GG,nE,li,LM){this.GG=GG;this.OL=nE;this.Lf=li;this.Un=LM};ls.Jn.pr.prototype.toString=function(){return["[","Jn.Event",this.GG,this.OL,this.Lf,this.Un,"]"].join("|")}})(Lightstreamer);(function(ls){ls.TS=function(){this.sc=ls.KN.getLogger("XX");this.pM=50;this.EL=[];this.XC=ls.Gc();this.Jb()};ls.TS.XO=function(HL,kU){return HL.jw-kU.jw};ls.TS.SL=0;ls.TS.Dt=function(){if(ls.TS.SL==0){ls.TS.SL++;if(window.postMessage){window.postMessage("Lightstreamer.run","*")}}};ls.TS.prototype={toString:function(){return["[","TS",this.pM,this.EL.length,"]"].join("|")},Jb:function(){this.sc.log("Jb",1);if(this.qO){clearInterval(this.qO);this.sc.log("Jb",2)}this.start()},start:function(){var vc=this;this.qO=setInterval(function(){vc.MBB()},this.pM);if(window.postMessage){ls.Oa("message",function(event){if(event.data=="Lightstreamer.run"){ls.TS.SL--;vc.MBB()}},true)}},wOx:function(QF,context,Lf){var AE={QF:QF};if(context){AE.context=context}if(Lf){AE.Lf=Lf}return AE},bi:function(AE,jw,gm){this.sc.log("bi",1,jw,gm);AE.pM=gm?jw:null;AE.jw=this.XC+parseInt(jw);this.EL.push(AE)},UwB:function(QF,oF,context,Lf){return this.EHb(QF,oF,context,Lf,true)},mNt:function(AE){if(!AE){return}AE.QF=null;AE.pM=null},EHb:function(QF,jw,context,Lf,gm){this.sc.log("EHb",1);var AE=this.wOx(QF,context,Lf);this.bi(AE,jw,gm);return AE},MBB:function(){if(ls.LC){clearInterval(this.qO);return}var Il=this.XC;this.XC=ls.Gc();var fs=[];if(this.EL.length>0){this.EL.sort(ls.TS.XO);while(this.EL.length>0&&this.EL[0].jw<=this.XC&&!ls.LC){var FO=this.EL.shift();if(FO.QF){this.PT(FO);if(FO.pM){fs.push(FO)}}}}for(var gb=0;gb<fs.length;gb++){fs[gb].jw=this.XC+fs[gb].pM;this.EL.push(fs[gb])}},PT:function(AE){try{if(AE.context){if(AE.Lf){AE.QF.apply(AE.context,AE.Lf)}else{AE.QF.apply(AE.context)}}else{if(AE.Lf){AE.QF.apply(null,AE.Lf)}else{AE.QF()}}}catch(XW){var cf=null;try{cf=AE.QF.name||AE.QF.toString()}catch(pP){}this.sc.MG(XW,"PT",cf)}}};ls.TC.push(function(){ls.fJ=new ls.TS()})})(Lightstreamer);(function(ls){for(var gb=0;gb<ls.TC.length;gb++){ls.TC[gb]()}ls.TC=[];ls.Lu=ls.KN.getLogger("OP");ls.LT=ls.KN.getLogger("FM");ls.FL=ls.KN.getLogger("CH");ls.El=ls.KN.getLogger("PC");ls.Qm=ls.KN.getLogger("PF");ls.tA=ls.KN.getLogger("LC");ls.version="5.0.1446.6";ls.toString=function(){return"[Lightstreamer web client version "+this.version+"]"};if(window.OpenAjax){if(OpenAjax.hub){OpenAjax.hub.registerLibrary("Lightstreamer","http://www.lightstreamer.com/","5.0")}else{OpenAjax.registerLibrary("Lightstreamer","http://www.lightstreamer.com/","5.0");OpenAjax.registerGlobals("Lightstreamer",["Lightstreamer"])}}})(Lightstreamer);return Lightstreamer})})(window.define||function(KR,hj){window.Lightstreamer=hj()});(function(define){define(["./lscommons"],function(Lightstreamer){if(!Lightstreamer){throw ("Warning: lscommons.js not included before lspushpage.js")}Lightstreamer.sq=" 30417 $";Lightstreamer.tA.log("pushpage",window.name);(function(ls){Lightstreamer.GroupDescriptor=function(){this.sc=ls.KN.getLogger("TL")};ls.GroupDescriptor.prototype={ncf:function(ht){if(ht==null){return null}else{if(ht.Rm){return ht.Rm}else{if(ht.rS){if(this.Lt){return this.Lt[ht.rS]}else{return null}}else{var DZ=Number(ht);if(!isNaN(DZ)){return DZ}else{if(this.Lt){ht=ht.toString();return this.Lt[ht]}else{return null}}}}}}};ls.GroupDescriptor.uc=function(DE){if(DE==null){return null}else{if(DE.vb){return DE}else{if(DE.CE){return DE}else{if(DE.join&&typeof(DE.join)=="function"){return new ls.GroupListDescriptor(DE)}else{return new ls.GroupIdDescriptor(DE)}}}}}})(Lightstreamer);(function(ls){Lightstreamer.GroupIdDescriptor=function(vb){this.eV(ls.GroupIdDescriptor);this.vb=String(vb)};Lightstreamer.GroupIdDescriptor.prototype={QPW:function(Rm){return null},mcn:function(){return this.vb},getId:function(){return this.vb}};ls.tD(ls.GroupIdDescriptor,ls.GroupDescriptor)})(Lightstreamer);(function(ls){var om="item_name_error";var UH="GroupListDescriptor";Lightstreamer.GroupListDescriptor=function(Ho){this.eV(ls.GroupListDescriptor);this.CE=ls.Ya(Ho);this.Lt={};for(var gb=1;gb<this.CE.length;gb++){if(!this.NYS(this.CE[gb])){this.CE[gb]=om}this.Lt[this.CE[gb]]=gb}};Lightstreamer.GroupListDescriptor.prototype={NYS:function(rS){if(!rS){this.sc.error("Item names cannot be empty",UH);return false}if(!isNaN(rS)){this.sc.error("Item names cannot be numbers",UH);return false}if(rS.indexOf("|")!=-1||rS.indexOf(" ")!=-1){this.sc.error("Item names should be alphanumeric(underscore, caret and dot also allowed)",UH);return false}return true},QPW:function(Rm){return this.CE[Rm]},mcn:function(){this.CE.shift();var name=this.CE.join(" ");this.CE=[null].concat(this.CE);return name},getList:function(){return this.CE}};ls.tD(ls.GroupListDescriptor,ls.GroupDescriptor)})(Lightstreamer);(function(ls){Lightstreamer.SchemaDescriptor=function(){this.sc=ls.KN.getLogger("TL");this.Cc;this.length=0};ls.SchemaDescriptor.prototype={DWD:function(pO,XX){if(!pO){return null}else{if(pO.XA){return pO.XA}else{if(pO.iu){return this.qcL(pO.iu,XX)}else{var DZ=Number(pO);if(!isNaN(DZ)){return DZ}else{return this.qcL(pO,XX)}}}}},XgF:function(XA,XX){if(typeof(XA)=="string"){return true}else{if(!XX&&this.Cc){return XA>this.length+this.Cc.length}else{return XA>this.length}}},sfB:function(){this.Cc=null},Zfa:function(Cc){if(!this.Cc){this.Cc=ls.SchemaDescriptor.lk(Cc)}}};ls.SchemaDescriptor.lk=function(Zl){if(!Zl){return null}else{if(Zl.kT){return Zl}else{if(Zl.ln){return Zl}else{if(Zl.join&&typeof(Zl.join)=="function"){return new ls.SchemaListDescriptor(Zl)}else{return new ls.SchemaIdDescriptor(Zl)}}}}}})(Lightstreamer);(function(ls){Lightstreamer.SchemaIdDescriptor=function(kT){this.eV(ls.SchemaIdDescriptor);this.kT=kT};Lightstreamer.SchemaIdDescriptor.prototype={getId:function(){return this.kT},cCY:function(XA,XX){if(typeof(XA)=="string"){return XA}else{if(XA>this.length&&this.Cc&&!XX){return this.Cc.cCY(XA)}}return null},qcL:function(iu,XX){if(this.Cc&&!XX){var RR=this.Cc.qcL(iu);if(isNaN(RR)){return RR}return this.length+RR}return iu},bdG:function(size){if(!this.length){this.length=size}},reset:function(){this.length=0},FoJ:function(){return this.kT}};ls.tD(ls.SchemaIdDescriptor,ls.SchemaDescriptor)})(Lightstreamer);(function(ls){var UH="SchemaListDescriptor";var Us="Field names cannot be ";var me=this.Us+"empty";var Ha=this.Us+"numbers";var PE="Field names should be alphanumeric(underscore, caret and dot also allowed)";var ZQ="Names starting with '#' cannot be used for subscribed fields";var om="field_name_error";Lightstreamer.SchemaListDescriptor=function(cL){this.eV(ls.SchemaListDescriptor);this.ln=ls.Ya(cL);this.Lt={};for(var gb=1;gb<this.ln.length;gb++){if(!this.eLL(this.ln[gb])){this.ln[gb]=om}this.Lt[this.ln[gb]]=gb}this.length=this.ln.length-1};Lightstreamer.SchemaListDescriptor.prototype={getList:function(){return this.ln},cCY:function(XA,XX){if(typeof(XA)=="string"){return XA}else{if(XA<=this.length){return this.ln[XA]}else{if(this.Cc&&!XX){var js=this.Cc.cCY(XA-this.length);if(this.Lt[js]){return"$"+js}return js}}}return null},qcL:function(iu,XX){if(this.Lt[iu]){return this.Lt[iu]}else{if(!this.Cc||XX){return iu}}if(iu.indexOf("$")==0){iu=iu.substring(1)}var RR=this.Cc.qcL(iu);if(isNaN(RR)){return RR}return this.length+RR},eLL:function(iu){if(!iu){this.sc.error(me,UH);return false}if(!isNaN(iu)){this.sc.error(Ha,UH);return false}if(iu.indexOf("#")==0){this.sc.error(ZQ,UH);return false}if(iu.indexOf("|")!=-1||iu.indexOf(" ")!=-1){this.sc.error(PE,UH);return false}return true},bdG:function(size){},reset:ls.uY,FoJ:function(){this.ln.shift();var name=this.ln.join(" ");this.ln=[null].concat(this.ln);return name}};ls.tD(ls.SchemaListDescriptor,ls.SchemaDescriptor)})(Lightstreamer);Lightstreamer.ItemDescriptor=function(){};Lightstreamer.ItemDescriptor.prototype={};(function(ls){Lightstreamer.ItemNameDescriptor=function(rS){this.eV(ls.ItemNameDescriptor);this.rS=String(rS)};Lightstreamer.ItemNameDescriptor.prototype={toString:function(){return this.rS},getName:function(){return this.rS}};ls.tD(ls.ItemNameDescriptor,ls.ItemDescriptor)})(Lightstreamer);(function(ls){Lightstreamer.ItemPositionDescriptor=function(Rm){this.eV(ls.ItemPositionDescriptor);this.Rm=Number(Rm)};Lightstreamer.ItemPositionDescriptor.prototype={toString:function(){return String(this.Rm)},getPosition:function(){return this.Rm}};ls.tD(ls.ItemPositionDescriptor,ls.ItemDescriptor)})(Lightstreamer);Lightstreamer.FieldDescriptor=function(){};Lightstreamer.FieldDescriptor.prototype={};(function(ls){Lightstreamer.FieldNameDescriptor=function(iu){this.eV(Lightstreamer.FieldNameDescriptor);this.iu=String(iu)};Lightstreamer.FieldNameDescriptor.prototype={toString:function(){return this.iu},getName:function(){return this.iu}};ls.tD(ls.FieldNameDescriptor,ls.FieldDescriptor)})(Lightstreamer);(function(ls){Lightstreamer.FieldPositionDescriptor=function(XA){this.eV(ls.FieldPositionDescriptor);this.XA=Number(XA)};Lightstreamer.FieldPositionDescriptor.prototype={toString:function(){return String(this.XA)},getPosition:function(){return this.XA}};ls.tD(ls.FieldPositionDescriptor,ls.FieldDescriptor)})(Lightstreamer);(function(ls){var valueType={input:true,textarea:true};ls.pv=function(dF,mZ){this.rf=dF;if(!mZ){mZ=dF.getAttribute("update")}if(mZ){if(mZ.toLowerCase().indexOf("style.")==0){var sO=mZ.slice(6);this.NB=YZ(sO);this.Aj=XQ(sO)}else{this.NB=ZJ(mZ);this.Aj=Rd(mZ)}}else{var xN=dF.nodeName.toLowerCase();if(xN in valueType){this.NB=ZJ("value");this.Aj=Rd("value")}else{this.NB=od;this.Aj=Id}}this.bO=ku++;this.LW=null;this.rR=null;this.xF=0;this.bB=0};function YZ(mZ){return function(kw){this.rf.style[mZ]=kw===ls.aIu?null:kw}}function XQ(jJ){return function(){return this.rf.style[jJ]||""}}function ZJ(mZ){return function(kw){if(!kw||kw===ls.aIu){this.rf.removeAttribute(mZ)}else{this.rf.setAttribute(mZ,kw)}}}function Rd(jJ){return function(){this.rf.getAttribute(jJ)}}function od(kw,Xq){if(Xq){this.rf.innerHTML=kw}else{if(this.rf.childNodes.length!=1||this.rf.firstChild.nodeType!=3){if(this.rf.firstChild!=null){this.rf.innerHTML=""}this.rf.appendChild(document.createTextNode(kw))}else{this.rf.firstChild.nodeValue=kw}}}function Id(nw){if(nw){return this.rf.innerHTML}else{if(this.rf.firstChild){return this.rf.firstChild.nodeValue}}return""}var ku=0;function ej(Lj){var mx=Lj.getAttribute(ls.ei);return mx&&mx.toUpperCase()==ls.di}ls.pv.rF=function(UI,dJ){var fa=[];if(!dJ){dJ=["*"]}for(var gb=0;gb<dJ.length;gb++){var qj=UI.getElementsByTagName(dJ[gb]);for(var xj=0;xj<qj.length;xj++){if(ej(qj[xj])){fa.push(new ls.pv(qj[xj]))}}}return fa};ls.pv.Ld=function(Oh){var Uo=null;var Oo=Oh;while(Oo!=null&&Oo!=document){Uo=Oo;Oo=Oo.parentNode}if(Oo==null){if(Uo!=null&&Uo.nodeName=="HTML"){return true}else{return false}}else{return true}};ls.pv.prototype={AmA:function(JV){if(JV!=null&&this.rf.className!=JV){this.rf.className=JV}},VKs:function(hf){for(var Ir in hf){this.rf.style[Ir]=hf[Ir]}},Ld:function(){return ls.pv.Ld(this.rf)},DvP:function(){if(!this.rf.id){return this.Ld(this.rf)}var Ei=document.getElementById(this.rf.id);return(Ei===this.rf)},fQ:function(){if(this.rf){delete (this.rf)}}}})(Lightstreamer);(function(ls){ls.XJ({cellOverwrite:function(SX,nv,wm,fC,QV,Kw,ok,ZZ){ls.fuO(ls.dCL,SX,nv,wm,fC,QV,Kw,ok,ZZ,"cellOverwrite")},cellScroll:function(SX,row,wm,fC,QV,Kw,ok,ZZ){ls.fuO(ls.ZSN,SX,row,wm,fC,QV,Kw,ok,ZZ,"cellScroll")},cellMetapush:function(SX,row,wm,fC,QV,Kw,ok,ZZ){ls.fuO(ls.ZFs,SX,row,wm,fC,QV,Kw,ok,ZZ,"cellMetapush")},fuO:function(fg,SX,ti,wm,fC,QV,Kw,ok,ZZ,le){ls.El.log("fuO",arguments);var QP=wm.toString();var HG=ti;if(fg==ls.dCL){HG=HG.toString()}var tk=ls.MD.Spr(SX);tk.Gu.TA(QV,HG,QP);tk.OQ.TA(fC,HG,QP);var pA=ls.MD.qdt(fC,QV,ok,ZZ);tk.qYB(pA,HG,QP,fg)}})})(Lightstreamer);(function(ls){ls.XJ({wEn:new RegExp("^https?:\\/\\/",ls.RM),WRM:function(Hh){var GV;if(this.wEn.test(Hh)){return Hh}else{GV=location.protocol+"//"+location.hostname;if(location.port&&!ls.iH(location.port,location.protocol)){GV+=":"+location.port}if(Hh.indexOf("/")!=0){GV+=location.pathname;var mN=GV.lastIndexOf("/");if(mN!=GV.length-1){GV=GV.substring(0,mN+1)}}GV+=Hh;return GV}},PCf:new RegExp(","),wSk:new RegExp("\\."),UQU:function(kw,KF){if(kw){if(!kw.replace){return kw}if(KF){kw=kw.replace(this.wSk,"");kw=kw.replace(this.PCf,".")}else{kw=kw.replace(this.PCf,"")}return new Number(kw)}return 0},Mx:function(){return ls.Db.toString()}})})(Lightstreamer);Lightstreamer.XJ({RPo:"&nbsp;",aIu:"\u00A0",dCL:"H",ZSN:"V",Gpp:"AV",ZFs:"X",nWs:"Z",NNs:"K",Cdn:"AX",asO:"AXZ",gas:"M",dqv:"O",ebL:"OX",TnW:"OXZ",Uqv:"A",XNL:"A",RIC:"B",phx:"D",IoB:"C",HZ:1,WEW:2,JlV:3,gvh:4,mcF:5});(function(ls){ls.pF=function(){this.pK={};this.Fh={};this.HE=0;this.Oc=false;this.VS=-1;this.hL={};this.pk=0;this.sc=ls.KN.getLogger("LC");this.sc.log("pF","new PageContext")};ls.pF.prototype={Spr:function(wW,il){if(!this.pK[wW]){if(il==ls.gas){this.pK[wW]=new ls.RB(wW)}else{this.pK[wW]=new ls.IZ(wW)}}return this.pK[wW]},snX:function(OK,Xc){this.sc.cg("snX",arguments);ls.KN.getLogger("UP").cg("snX",arguments);var jZ=OK[0];var Nn=ls.ol.rwe(jZ);if(!Nn){return true}Nn.cAj(OK,Xc,false);return true},nnw:function(ke){this.VS++;this.hL[this.VS]=ke;this.pk++;var Lg={};Lg.bt=ls.Db.NM;Lg.mR=this.VS;return Lg},ve:function(bx,Ke,gs){if(this.hL[bx]){var ke=this.hL[bx];if(Ke==1){PX="onProcessed"}else{if(Ke==38){PX="onDiscarded"}else{if(Ke==30){PX="onAbort"}else{if(Ke<=0){PX="onDeny"}else{PX="onError"}}}}try{if(Ke<=0){ke.onDeny(Ke,gs)}else{ke[PX]()}}catch(XW){this.sc.MG(XW,PX)}delete this.hL[bx];this.pk--}},Eoq:function(){var pL={};var mR=0;for(var gb=this.VS;gb>=0;gb--){if(mR==this.pk){break}if(this.hL[gb]){pL[mR]=gb;mR++}}for(var gb=mR-1;gb>=0;gb--){this.ve(pL[gb],30,null)}this.sc.dGc(this.pk==0,"Eoq");this.VS=-1;this.hL={};this.pk=0},fQ:function(){for(var gb in this.pK){this.pK[gb].fQ()}}}})(Lightstreamer);(function(ls){ls.Ar=function(kL){this.aA=false;this.jr=false;this.PU=this.CGg(kL);this.sA=1000;this.bM=false;this.sc=ls.KN.getLogger("LC");this.td()};ls.Ar.prototype={CGg:function(kL){var vc=this;return function(){if(vc.aA){return}vc.jr=true;if(kL&&kL.length){for(var gb=0;gb<kL.length;gb++){try{kL[gb]()}catch(XW){this.sc.MG(XW,"PU",kL[gb])}}}vc.jr=false;vc.aA=true}},eiI:function(){return !(this.aA||this.jr)},td:function(){if(document&&typeof document.readyState!="undefined"){var WA=document.readyState;if(WA.toUpperCase()=="COMPLETE"){this.sc.log("td",1);this.oR();return}else{this.sc.log("td",2);ls.fJ.EHb(this.Wvx,this.sA,this)}}else{if(this.wUQ()){this.sc.log("td",3);this.oR();return}}if(typeof window.OpenAjax!="undefined"){if(typeof OpenAjax.addOnLoad!="undefined"){this.sc.log("td",4);OpenAjax.addOnLoad(this.PU,null,"library");return}}var am=ls.Oa("load",this.PU);if(!am){this.sc.log("td",5);this.oR()}else{if(ls.aI()){var Fp=true;if(!ls.Oa("DOMContentLoaded",this.Xui())){this.sc.log("td",6);Fp=false}else{this.sc.log("td",7,window.opera.version);if(ls.aI(7,true)){return}else{if(ls.aI(8,true)){Fp=false}}}ls.fJ.EHb(this.qKt,this.sA,this,[Fp])}}},oR:function(){ls.fJ.EHb(this.PU,0)},Wvx:function(){if(!this.aA){var WA=document.readyState;if(WA.toUpperCase()=="COMPLETE"){this.PU()}else{ls.fJ.EHb(this.Wvx,this.sA,this)}}},qKt:function(Fp){if(!this.aA){if(this.RS||!Fp&&this.wUQ()){if(ls.Vp&&ls.Vp.XF){this.bM=true;return}this.PU()}else{ls.fJ.EHb(this.qKt,this.sA,this,[Fp])}}},Xui:function(){var vc=this;return function(){vc.RS=true}},wUQ:function(){return(typeof document.getElementsByTagName!="undefined"&&typeof document.getElementById!="undefined"&&(document.getElementsByTagName("body")[0]!=null||document.body!=null))}}})(Lightstreamer);(function(ls){ls.Sa=function(){this.xq=false;this.cZ=null;this.Ef=0;this.sc=ls.KN.getLogger("EL")};ls.Sa.prototype={Fca:function(JH){this.sc.log("Fca",ls.Vp.IR.iJ,ls.Vp.Fr);if((ls.Vp.IR.iJ.Fr||ls.Vp.Fr)){if(ls.Vp.IR.iJ.sa=="S"){this.xq=true;var XC=ls.Gc();if(this.cZ===null||XC-this.cZ>=2000){this.cZ=XC;var WW=ls.MY();this.sc.log("Fca",2,WW);this.Ef++;ls.fJ.EHb(this.dXc,WW,this);ls.Vp.wG(ls.Vp.iZ,null)}}else{if(JH){this.sc.log("Fca",3)}}}},dXc:function(){this.Ef--;this.sc.log("dXc",1);lc=ls.Vp.Fr?ls.Vp.Fr:ls.Vp.IR.iJ.Fr;ls.Vp.wp(ls.Vp.iZ,lc,ls.Vp.IR.iJ.sa,ls.Vp.IR.iJ.HY,true)},kr:function(){this.xq=false}}})(Lightstreamer);(function(ls){ls.bR=function(){};ls.bR.prototype={nLb:function(jP,jZ){this.sc.cg("nLb",arguments);if(jP==6){var wX=ls.ol.rwe(jZ);if(wX){wX.CQR()}}else{if(jP==7){}else{if(jP==8){}else{if(jP==9){var OT=ls.ol.rwe(jZ);if(OT&&OT.uo){if(ls.Vp&&ls.Vp.IR&&ls.Vp.IR.getStatus()==ls.sV){OT.dU*=2;OT.dU+=500}ls.fJ.bi(OT.uo,OT.dU);delete (OT.uo);delete (OT.dU)}}}}}},cPw:function(jP,gs,jZ){this.sc.cg("cPw",arguments);this.Oc=true;var Nn=ls.ol.rwe(jZ);if(!Nn){return}var hY;var EA;var fE;if(Nn.il==ls.NNs){EA=Nn.PC;fE=Nn.sF.vb;Nn=Nn.cS;hY=Nn.sF.QPW(EA)}if(ls.Vp.onServerDeny){try{ls.Vp.onServerDeny(jP,gs,Nn,EA,hY,fE)}catch(XW){this.sc.PqW(XW,ls.Vp.onServerDeny,"onServerDeny")}}},onLostUpdates:function(OK){this.sc.cg("onLostUpdates",arguments);var jZ=OK[0];var nv=OK[1];var qu=OK[2];var Nn=ls.ol.rwe(jZ);if(!Nn){return false}var fE;if(Nn.il==ls.NNs){fE=Nn.sF.vb;nv=Nn.PC;Nn=Nn.cS}if(Nn.onLostUpdates){var dL=Nn.sF.QPW(nv);try{Nn.onLostUpdates(nv,qu,dL,fE)}catch(Jq){this.sc.PqW(XW,Nn.onLostUpdates,"onLostUpdates")}}return true},onEndOfSnapshot:function(OK){this.sc.cg("onEndOfSnapshot",arguments);var jZ=OK[0];var nv=OK[1];var Nn=ls.ol.rwe(jZ);if(!Nn){return false}if(Nn.il.indexOf(ls.Cdn)>-1){Nn.IP=true}if(Nn.onEndOfSnapshot){var dL=Nn.sF.QPW(nv);try{Nn.onEndOfSnapshot(nv,dL)}catch(XW){this.sc.PqW(XW,Nn.onEndOfSnapshot,"onEndOfSnapshot")}}return true}};ls.tD(ls.pF,ls.bR)})(Lightstreamer);(function(ls){var kp="Crl";ls.kP=function(){this.TT=new ls.BP(null);this.ZL={};this.XI={};this.Om=0;this.wT=false;this.Ma=5000;this.Hp=false;this.GK=0;this.Sj=0;this.Tl=false;this.lX=true;this.xp=false;this.pG=-1;ls.fJ.UwB(this.Oac,60000,this);this.sc=ls.KN.getLogger("EP");this.Tw=ls.KN.getLogger("CE")};ls.kP.prototype={pHW:function(){if(!ls.Vp){return null}if(this.TT.tW!=null){var cH=this.TT.ohO(true);this.Tw.log("pHW",1,cH.log);if(this.TT.tW!==null){return this.TT.tW}else{return null}}else{return null}},xJT:function(){var VE=null;var md=ls.Vp;if(ls.Kp()&&md.Fe){this.TT.tW=md.rl;this.sc.log("xJT",1)}else{if((this.Tl||md.rl==null)&&this.lX&&!md.XF){VE=this.enP();this.sc.log("xJT",2,VE);this.Tl=false}else{if(md.rl!=null){this.TT.tW=md.rl;this.sc.log("xJT",3);this.Tl=true}else{if(this.Om==10){if(!this.wT){this.sc.GSR("No way to find the Engine. Please check your configuration","seekEngine")}}if(this.Om<=10){this.Om++}this.sc.log("xJT",4,this.Om);return null}}}var cH=this.TT.ohO(true,!md.XF);this.sc.log("xJT",5,cH.log);if(this.TT.tW!=null){this.Sj=0;try{this.ZL[this.TT.tW.WN.getEngineFrameName()]="OK";return this.TT.tW}catch(XW){this.sc.log("xJT",10)}}if(ls.aI()&&md.Zxb()&&VE&&VE.log=="null"){this.sc.log("xJT",6);md.LBK();return null}this.Sj++;if(this.Sj>=(md.XF?20:10)){this.Sj=0;if(ls.mK.xq){this.sc.log("xJT",7);ls.mK.Fca()}else{if(md.Zxb()&&this.dNs()&&!md.XF){this.sc.log("xJT",8);md.LBK()}else{this.sc.log("xJT",9);this.Hp=true}}}return null},dNs:function(){if(ls.CV(2)&&this.Ff){this.sc.log("dNs",1);return true}else{if(ls.aI()){this.sc.log("dNs",2);return true}else{if(ls.Gj()){this.sc.log("dNs",3);return true}}}},enP:function(){var gt=this.Crl();if(!gt){this.sc.log("enP",1);return false}var cK=gt[2];var KL=this.TT.vPQ(cK,ls.Vp.XF);if(KL===false||(!KL.GN&&KL.qa==false)){this.ZL[cK]=false}else{this.ZL[cK]=KL.log?KL.log:"unknown"}this.sc.log("enP",3,cK,KL.log);if(gt[3]&&gt[3]!=location.host){this.Ff=true}return KL},Crl:function(){if(!ls.OV){this.sc.log(kp,1);return null}var OY=ls.Am+(ls.Vp.GH?ls.uf:0);var ds=ls.Fk(ls.Vq+ls.Vp.iZ);if(!ds){this.sc.log(kp,2);return null}for(var gb=0;gb<ds.length;gb++){var Xg=ds[gb]+"_"+ls.Vp.iZ;var Se=ls.Fk(ls.Vq+Xg);if(!Se||Se.length<=2){this.sc.log(kp,3,ds[gb]);continue}if(Se[1]!="S"&&!this.xp){this.sc.log(kp,4,ds[gb],Se[1]);continue}if(this.ZL[Se[2]]){this.sc.log(kp,5,ds[gb],Se[2]);continue}var oi=ls.Gc();var eA=oi-parseInt(Se[0]);var oS=1000-eA;if(eA>OY){if(this.XI[Xg]){if(eA>ls.Am*2){this.XI[Xg]=null;this.sc.log(kp,6.1,ds[gb],eA)}else{this.XI[Xg]=Se[0];ls.Vp.LvC(oS);this.sc.log(kp,6.2,ds[gb],eA)}}else{this.sc.log(kp,6,ds[gb],eA)}continue}if(ls.Vp.GH){if(!this.XI[Xg]){this.sc.log(kp,7,Se[0],eA);this.XI[Xg]=Se[0];ls.Vp.LvC(oS);continue}else{if(this.XI[Xg]==Se[0]){this.sc.log(kp,8,Se[0],eA);ls.Vp.LvC(oS);continue}}}ls.mr=oi;ls.uP=ls.Am-eA;if(eA>100){this.sc.log(kp,9,eA)}this.sc.log(kp,10,ds[gb],Se);return Se}return null},xHe:function(){if(this.Qu){return}this.sc.log("xHe");this.Qu=ls.fJ.UwB(this.QIE,this.Ma,this)},KiL:function(){this.sc.log("KiL");ls.fJ.mNt(this.Qu);delete (this.Qu)},QIE:function(){this.Tw.cg("QIE");if(ls.Db.vk){var WN=this.pHW();if(WN===null){this.sc.log("QIE",1);ls.Db.oQ();return false}this.Tw.log("QIE",2);return ls.Db.nXj()}return false},lgZ:function(gi){if(ls.nR.wT){return}if(this.Hp&&gi==this.GK){if(!ls.Db.vk){var Gb;if(ls.Vp.XF){Gb="Unable to create the Engine."}else{Gb="Unable to find the Engine. "}if(ls.Vp.Zxb()){Gb+="Creating a new Engine."}else{Gb+="Retrying. If the problem persists, please check your configuration."}this.sc.GSR(Gb,"bind");ls.Vp.LBK()}}},xjw:function(){this.Hp=false;ls.fJ.EHb(this.lgZ,20000,this,[new Number(++this.GK)])},Oac:function(){var Vl=document.cookie.toString();this.MA(Vl);this.RN(Vl)},MA:function(Vl){var DI=this.ZL;this.ZL={};for(var uK in DI){if(DI[uK]&&Vl.indexOf(uK)>-1){this.ZL[uK]=DI[uK]}}},RN:function(Vl){var RE=this.XI;this.XI={};for(var uK in RE){if(RE[uK]&&Vl.indexOf(uK)>-1){this.XI[uK]=RE[uK]}}},bxW:function(uv){var WN=this.pHW();if(WN!=null){try{WN.document.bgColor=uv;var Cp=WN.document.bgColor;return Cp}catch(BE){}}return null}}})(Lightstreamer);(function(ls){Lightstreamer.UpdateItemInfo=function(){this.sc=ls.KN.getLogger("IC")};Lightstreamer.UpdateItemInfo.prototype={Wx:function(uR,Zn,OK,Xc){this.jW=OK;this.uR=uR;this.Zn=Zn;this.Xc=Xc},isValueChanged:function(field){this.sc.log("isValueChanged",arguments);var mj=this.uR.Tj.DWD(field);return this.hhg(mj,this.uR.Tj.XgF(mj))},hhg:function(mj,TP){if(!TP){if(this.jW[mj+1]==null){return true}else{return(this.jW[mj+1].length>-1)}}else{if(this.uR.OI.Qh(this.Zn)){var gJ="";if(this.uR.OI.FS(this.Zn,mj)){gJ=mj}else{if(this.uR.OI.FS(this.Zn,mj+"|rem")){gJ=mj+"|rem"}}if(gJ!=""){if(this.uR.OI.FS(this.Zn,gJ)!=this.uR.KE.FS(this.Zn,mj)){return true}else{return false}}}}if(this.uR.KE.FS(this.Zn,mj)){return true}else{return false}},isSnapshot:function(){this.sc.log("isSnapshot",arguments);return this.Xc},getNewValue:function(field){this.sc.log("getNewValue",arguments);var mj=this.uR.Tj.DWD(field);var TP=this.uR.Tj.XgF(mj);if(this.hhg(mj,TP)){if(!TP){return this.jW[mj+1]}else{if(!this.uR.OI.Qh(this.Zn)){return null}var mM=this.uR.OI.FS(this.Zn,mj);var uM=(mM)?mM:this.uR.OI.FS(this.Zn,mj+"|rem");if(!uM){return null}else{return uM}}}else{return this.KJw(mj)}},getOldValue:function(field){this.sc.log("getOldValue",arguments);var mj=this.uR.Tj.DWD(field);return this.KJw(mj)},KJw:function(mj){return this.uR.KE.FS(this.Zn,mj)},getNumFields:function(){if(this.uR.DG){if(this.uR.DG.length==0){return null}else{this.uR.Tj.length+this.uR.DG.length}}return this.uR.Tj.length},addField:function(field,value,eg){this.sc.log("addField",arguments);if(typeof eg=="undefined"){eg=true}var mj=this.uR.Tj.DWD(field);if(!this.uR.Tj.XgF(mj)){var WR=this.getNumFields();if(WR==null){WR=this.uR.Tj.length}this.sc.dSW("addField() method can only add fields that are not part of the subscription schema. Please use a value greater than "+WR,"addField")}if(eg){this.uR.OI.TA(value,this.Zn,mj+"|rem")}else{this.uR.OI.TA(value,this.Zn,mj);this.uR.OI.ek(this.Zn,mj+"|rem")}},forEachChangedField:function(Jo){var ch=this.jW.Cn;for(var gb=0;gb<ch.length;gb++){var name=this.uR.Tj.cCY(ch[gb]);var Qq=this.KJw(ch[gb]);var bG=this.jW[ch[gb]+1];try{Jo(ch[gb],name,Qq,bG,this)}catch(XW){this.sc.PqW(XW,Jo,"forEachChangedField")}}}}})(Lightstreamer);(function(ls){Lightstreamer.VisualUpdateInfo=function(){this.SK=null;this.kb=1200;this.sf=0;this.Uc=0;this.sc=ls.KN.getLogger("IC")};Lightstreamer.VisualUpdateInfo.prototype={JnG:ls.BO,Wx:function(uR,Zn,OK,xa){this.jW=OK;this.xa=xa;this.uR=uR;this.Zn=Zn;this.mR=Zn;this.kb=1200;this.sf=0;this.Uc=0},getFormattedValue:function(field){var mj=this.uR.Tj.DWD(field);var Ku=this.uR.rt.FS(this.Zn,mj);return Ku},setFormattedValue:function(field,value){var mj=this.uR.Tj.DWD(field);this.uR.rt.TA(value,this.Zn,mj)},getServerValue:function(field){var mj=this.uR.Tj.DWD(field);if(this.xa){if(typeof(mj)=="number"){return this.jW[mj+1]}else{return this.jW[mj]}}else{if(!this.uR.Tj.XgF(mj)){if(this.jW[mj+1]==null||this.jW[mj+1].length>-1){return this.jW[mj+1]}}}return this.uR.KE.FS(this.Zn,mj)},setHotTime:function(kw){this.kb=this.JnG(kw,"setHotTime",1200,true,0)},setColdToHotTime:function(kw){if(this.uR.il!=ls.ZSN&&this.uR.il!=ls.ZFs){this.sf=this.JnG(kw,"setColdToHotTime",0,true,0)}else{this.sf=0}},setHotToColdTime:function(kw){if(this.uR.il!=ls.ZSN&&this.uR.il!=ls.ZFs){this.Uc=this.JnG(kw,"setHotToColdTime",0,true,0)}else{this.Uc=0}},Vd:function(mj,eW,Kd,fg){this.sc.log("Vd",arguments);var QP=this.uR.wg[mj];if(QP==null){return}var gH=this.uR.rY.xlW(this.SK,QP);if(gH==null){return}eW=(eW)?eW:"";Kd=(Kd)?Kd:"";if(gH.LW==null){gH.LW={};gH.rR={}}gH.LW[fg]=eW;gH.rR[fg]=Kd},setRowAttribute:function(eW,Kd,Ir){this.pX(eW,Kd,Ir)},setRowStyle:function(BI,KZ){this.pX(BI,KZ,"CLASS")},setAttribute:function(field,eW,Kd,Ir){var mj=this.uR.Tj.DWD(field);this.Vd(mj,eW,Kd,Ir);if(this.uR.il==ls.ZSN||this.uR.il==ls.ZFs){var tk=this.uR.rY;var QP=this.uR.wg[mj];if(QP==null){return}var Wl=tk.jF.FS(this.SK,QP);if(!Wl){Wl={};tk.jF.TA(Wl,this.SK,QP)}Wl[Ir]=1}},setStyle:function(field,BI,KZ){var mj=this.uR.Tj.DWD(field);this.Vd(mj,BI,KZ,"CLASS")},pX:function(eW,Kd,fg){var wE=this.SK;eW=(eW)?eW:"";Kd=(Kd)?Kd:"";var Cx=this.uR.rY;Cx.mF.TA(eW,wE,fg);Cx.DF.TA(Kd,wE,fg);if(this.uR.il==ls.ZSN||this.uR.il==ls.ZFs){if(fg!="CLASS"){if(!Cx.QA.FS(wE,fg)){Cx.QA.TA(1,wE,fg)}}}},forEachChangedField:function(Jo){var ch=this.uR.gg;for(var gb=0;gb<ch.length;gb++){var name=this.uR.Tj.cCY(ch[gb]);var uF=this.uR.rt.FS(this.Zn,ch[gb]);var Ow=typeof(ch[gb])=="number"?this.jW[ch[gb]+1]:this.jW[ch[gb]];if(typeof(Ow)=="undefined"){Ow=this.uR.KE.FS(this.Zn,ch[gb])}if(Ow&&Ow.length<=-1&&(this.uR.il==ls.Gpp||this.uR.il==ls.ZSN)){Ow=this.uR.KE.FS(this.Zn,ch[gb])}try{Jo(ch[gb],name,Ow,uF,this)}catch(XW){this.sc.PqW(XW,Jo,"forEachChangedField")}}}}})(Lightstreamer);Lightstreamer.RowInfo=function(){};Lightstreamer.RowInfo.prototype={Wx:function(Nn,Zn,DT){this.uR=Nn;this.Zn=Zn;if(DT){this.DT=DT}else{this.DT=this.uR.rY.mA[Zn]}},getServerValue:function(field){var wm=field;var tk=this.uR.rY;var mj=this.uR.Tj.DWD(wm);var QP=this.uR.wg[mj];if(QP==null){return null}var UY=tk.pB.FS(this.DT,QP);if(!UY){return null}return UY},getCellValue:function(field){var wm=field;var tk=this.uR.rY;var mj=this.uR.Tj.DWD(wm);var QP=this.uR.wg[mj];if(QP==null){return null}var ll=tk.VD.FS(this.DT,QP);if(ll===null){return tk.OQ.FS(this.DT,QP)}return ll}};(function(ls){ls.He=function(){};ls.He.prototype={qdt:function(kw,EZ,ok,ZZ){var xg="Lightstreamer|temp|id";var RT=0;while(document.getElementById(xg)&&RT<100){xg+=ls.MY();RT++}ok=ok||"div";var lD="<"+ok+" id='"+xg+"'";if(EZ){lD+=" class='"+EZ+"'"}lD+=">"+kw+"</"+ok+">";document.write(lD);var jH=document.getElementById(xg);jH.removeAttribute("id");return new ls.pv(jH,ZZ)},VEW:function(wW){var xE=this.Spr(wW).rKF();for(var SK in xE){var NS=xE[SK];var Ei=false;for(var wm in NS){var Uo;var Oo=NS[wm];var JS=Oo.DvP();if(JS){Ei=true}else{delete NS[wm]}}if(!Ei){delete xE[SK]}}},hVn:function(Te,aq){if(Te.CLASS){return Te}else{for(var fg in aq){if(!Te[fg]){Te[fg]=aq[fg]}}return Te}},ode:function(It,Zn,ov,mR,wm,hI,eY){var Nn=ls.ol.pPq(It);if(!Nn||eY!=Nn.eY){return}var fm=Nn.rY;if((fm.il==ls.ZSN||fm.il==ls.ZFs)&&fm.mA){ov=fm.mA[mR]}var kw=null;var SK=ov;var QP=Nn.wg[wm];if(QP==null){return}if(Nn.il==ls.Gpp){var gH=fm.xlW(SK,QP);if(gH){kw=gH.On;gH.On=null}}var St=false;if(kw==null){var JC=Nn.rt.FS(Zn,wm);if(JC==null){if(!hI){return false}else{kw=fm.OQ.FS(ov,QP);St=true}}else{kw=JC}}Nn.HQ.ek(Zn,wm);var ot=kw;if(ot==""){ot=ls.aIu}var kJ=fm.kQ.Qh(ov);this.sm(It,SK,QP,ot,ls.XNL,kJ,St);return true},sm:function(It,ov,QP,kw,IK,Le,jf){var fm=this.Spr(It);var Xq=jf?true:fm.Xq;var gH=fm.xlW(ov,QP);if(gH==null){return true}var hf=null;var JV=null;if(IK==ls.XNL){hf=gH.VT;gH.VT=null}else{if(IK==ls.RIC||IK==ls.phx){hf=gH.Qi;gH.Qi=null;gH.VT=null}}if(IK==ls.phx){var kH=fm.Gu.FS(ov,QP);if(hf==null&&kH){hf={};hf.CLASS=kH}else{if(kH){hf.CLASS=kH}}}if(hf!=null){hf=this.hVn(hf,Le)}else{if(Le){hf=Le}}if(hf!=null){if(typeof hf.CLASS!="undefined"){JV=hf.CLASS}}gH.NB(kw,Xq);gH.AmA(JV);gH.VKs(hf);return true},pSS:function(It,ov,mR,QP,mv,xF){var YF=this.Spr(It);if((YF.il==ls.ZSN||YF.il==ls.ZFs)&&YF.mA){ov=YF.mA[mR]}var gH=YF.xlW(ov,QP);if(gH==null){return}if(gH.xF!=xF){return}var Le=null;if(mv){Le=YF.kQ.Qh(ov)}else{Le=YF.JE.Qh(ov)}var hf=null;var JV=null;if(mv){hf=gH.VT;gH.VT=null}else{hf=gH.Qi;gH.Qi=null}if(hf!=null){hf=this.hVn(hf,Le)}else{if(Le){hf=Le}}if(hf!=null){if(typeof hf.CLASS!="undefined"){JV=hf.CLASS}}else{return true}gH.AmA(JV);gH.VKs(hf);return true}};ls.tD(ls.pF,ls.He)})(Lightstreamer);(function(ls){ls.MU=function(gH,fl,Lc,kv,gr,gi,GP){this.Wx(gH,fl,Lc,kv,gr,gi,GP)};ls.MU.prototype={Wx:function(gH,fl,Lc,kv,gr,gi,GP){this.GP=(GP)?GP:null;this.fl=fl;this.gH=gH;this.Lc=(Lc)?ls.YM.JWZ(Lc):null;this.kv=(kv)?ls.YM.JWZ(kv):null;this.gr=gr;this.gi=gi;this.gZ=0}}})(Lightstreamer);(function(ls){ls.lu=function(){this.length=0;this.VW={}};ls.lu.prototype={xhc:function(wW){this.VW[this.length]=wW;this.length++},FS:function(){if(this.length<=0){return null}this.length--;return this.VW[this.length]}}})(Lightstreamer);(function(ls){ls.gc=function(oF){this.Ll=oF;this.ut=new ls.lu();this.Pc=0;this.UR={};this.uV=false;this.ar={}};ls.gc.prototype={cOx:function(gH,fl,Lc,kv,tM,GP){var gr=this.EAH(tM);var aT=++gH.bB;var OZ=this.ut.FS();if(OZ==null){this.UR[this.Pc]=new ls.MU(gH,fl,Lc,kv,gr,aT,GP);return this.Pc++}else{this.UR[OZ].Wx(gH,fl,Lc,kv,gr,aT,GP);return OZ}},EAH:function(jw){var gr=jw/this.Ll;return(gr>1)?gr:1},MfK:function(wW){var xd=this.UR[wW];if(xd.gi<xd.gH.bB){return}var pt=this.ar[xd.gH.bO];var Nm=this.UR[pt];if(Nm){if(!Nm.fl){if(xd.fl){if(Nm.GP){ls.fJ.PT(Nm.GP)}}else{xd.gZ=Nm.gZ;if(xd.gr<Nm.gr){xd.gr=Nm.gr}}}this.ut.xhc(pt)}this.ar[xd.gH.bO]=wW;if(xd.Lc){xd.WX=ls.YM.CNl(xd.gH.rf,"backgroundColor")}if(xd.kv){xd.Ud=ls.YM.CNl(xd.gH.rf,"color")}if(!this.uV){this.gI(this.Ll)}},cmE:function(gH){var pt=this.ar[gH.bO];if(pt){delete (this.ar[gH.bO]);this.ut.xhc(pt)}},Elj:function(aV){var lF=ls.Gc();var ks=0;if(aV){ks=lF-(aV+this.Ll)}var Co=false;for(var Bo in this.ar){var eO=this.ar[Bo];var xd=this.UR[eO];if(xd.gZ>xd.gr){this.ut.xhc(eO);delete (this.ar[Bo]);if(xd.GP){ls.fJ.bi(xd.GP,0)}}else{if(xd.Lc){xd.gH.rf.style.backgroundColor="rgb("+this.Tt(xd.WX[0],xd.Lc[0],xd.gr,xd.gZ)+","+this.Tt(xd.WX[1],xd.Lc[1],xd.gr,xd.gZ)+","+this.Tt(xd.WX[2],xd.Lc[2],xd.gr,xd.gZ)+")"}if(xd.kv){xd.gH.rf.style.color="rgb("+this.Tt(xd.Ud[0],xd.kv[0],xd.gr,xd.gZ)+","+this.Tt(xd.Ud[1],xd.kv[1],xd.gr,xd.gZ)+","+this.Tt(xd.Ud[2],xd.kv[2],xd.gr,xd.gZ)+")"}Co=true}xd.gZ++}if(!Co){this.uV=false}else{var cR=ls.Gc();var fe=(cR-lF);var mQ=fe+ks;if(mQ>this.Ll){var ZX=mQ/this.Ll;var NW=Math.floor(ZX);var XH=ZX-NW;this.VV(NW);mQ=this.Ll*XH}this.Eg(this.Ll-mQ,cR)}},Eg:function(pV,aV){ls.fJ.EHb(this.Elj,pV,this,[aV])},VV:function(NW){for(var Bo in this.ar){var eO=this.ar[Bo];var xd=this.UR[eO];if(xd.gZ>xd.gr){}else{if(xd.gZ+NW<xd.gr){xd.gZ+=NW}else{xd.gZ=xd.gr}}}},gI:function(Dc){if(this.uV==true){return}this.uV=true;this.Eg(Dc)},Tt:function(cw,XT,QN,lA){cw=new Number(cw);XT=new Number(XT);var UE=XT-cw;var cI=cw+(((1/QN)*lA)*UE);return Math.ceil(cI)}}})(Lightstreamer);(function(ls){ls.kf=function(Pj,wC,BG,jt,GP){var Qk;if(typeof GP=="string"){Qk=function(){eval(GP)}}else{Qk=GP}var Zt=ls.fJ.wOx(Qk);var pA=new ls.pv(Pj);var XG=ls.Xa.cOx(pA,false,wC,BG,jt,Zt);ls.Xa.MfK(XG)}})(Lightstreamer);(function(ls){ls.Lb=function(){this.Tk={};this.ki="An RGB color value must be in the form 'rgb(x, y, z)' or 'rgba(x, y, z, a)'. ";this.ih=" is not a valid color";this.xV=" is not a valid value";this.sc=ls.KN.getLogger("CC")};ls.Lb.prototype={uGC:function(mx){if((mx>=0)&&(mx<=9)){return new Number(mx)}mx=mx.toUpperCase();if(mx=="A"){return 10}else{if(mx=="B"){return 11}else{if(mx=="C"){return 12}else{if(mx=="D"){return 13}else{if(mx=="E"){return 14}else{if(mx=="F"){return 15}else{this.sc.error("A hexadecimal number must contain numbers between 0 and 9 and letters between A and F. "+mx+this.xV,"setStyle");return null}}}}}}},JWZ:function(kw){if(kw.indexOf("rgb")==0){return this.MuC(kw)}else{if(kw.indexOf("#")==0){return this.AAh(kw)}else{return this.tpH(kw)}}},qLG:function(LU){var KL=0;var vY=0;var gb;for(gb=LU.length;gb>=1;gb--){var Kg=this.uGC(LU.substring(gb-1,gb));if(Kg==null){return null}var x;for(x=1;x<=vY;x++){Kg*=16}vY++;KL+=Kg}return KL},AAh:function(wc){if(wc.indexOf("#")==0){wc=wc.substring(1,wc.length)}if(wc.length==3){wc=wc.charAt(0)+wc.charAt(0)+wc.charAt(1)+wc.charAt(1)+wc.charAt(2)+wc.charAt(2)}else{if(wc.length!=6){this.sc.error("A hexadecimal color value must be 6 character long. "+wc+this.ih,"setStyle");return null}}var lJ=wc.substring(0,2);var al=wc.substring(2,4);var Nr=wc.substring(4,6);Av=this.qLG(lJ);iW=this.qLG(al);AJ=this.qLG(Nr);if(Av==null||iW==null||AJ==null){return null}return[Av,iW,AJ]},mDv:function(uv){var cC=document.createElement("DIV");cC.style.backgroundColor=uv;var kw=this.CNl(cC,"backgroundColor",uv);if(kw[0]==255&&kw[1]==255&&kw[2]==255){if(uv.toUpperCase()!="WHITE"){var AI=document.getElementsByTagName("BODY")[0];if(AI){AI.appendChild(cC);kw=this.CNl(cC,"backgroundColor",uv);AI.removeChild(cC)}}}this.Tk[uv]=kw;return this.Tk[uv]},tpH:function(uv){var KL="";if(this.Tk[uv]){return this.Tk[uv]}if(!ls.Kp()){return this.mDv(uv)}else{KL=ls.nR.bxW(uv)}if(!KL||KL==""||KL==uv){var YC=document.bgColor;document.bgColor=uv;KL=document.bgColor;document.bgColor=YC}if(!KL||KL==""||KL==uv){return this.mDv(uv)}this.Tk[uv]=this.AAh(KL);return this.Tk[uv]},MuC:function(Os){var DW;var MS;if(Os.indexOf("rgb(")==0){DW=4;MS=")"}else{if(Os.indexOf("rgba(")==0){DW=5;MS=","}else{this.sc.error(this.ki+Os+this.ih,"setStyle");return null}}Os=Os.substring(DW,Os.length);var MW=Os.indexOf(",");var Av=this.QGQ(Os.substring(0,MW));var Vm=Os.indexOf(",",MW+1);var iW=this.QGQ(Os.substring(MW+1,Vm));var FW=Os.indexOf(MS,Vm+1);var AJ=this.QGQ(Os.substring(Vm+1,FW));if(Av==null||iW==null||AJ==null){return null}return[Av,iW,AJ]},QGQ:function(tj){if(tj.indexOf("%")==tj.length-1){tj=parseFloat(tj.substring(0,tj.length-1));if(tj>100|tj<0){this.sc.error("An rgb element must be a number >=0 and <=255 or a percentile >=0 and <=100. "+tj+this.xV,"setStyle");return null}tj=2.55*tj}return tj},CNl:function(cC,RH,DR){if(cC==null){return[255,255,255]}var kw="";try{if(window.getComputedStyle||(document.defaultView&&document.defaultView.getComputedStyle)){var eq=document.defaultView.getComputedStyle(cC,null);if(eq){var PF=RH=="backgroundColor"?"background-color":RH;kw=eq.getPropertyValue(PF)}}}catch(XW){}try{if(!this.jqi(kw,DR)&&cC.currentStyle){var oT=RH=="background-color"?"backgroundColor":RH;kw=cC.currentStyle[oT]}}catch(XW){}try{if(!this.jqi(kw,DR)){var jc=RH=="background-color"?"backgroundColor":RH;if(cC.style[jc]!=""){kw=cC.style[jc]}else{return[255,255,255]}}}catch(XW){}if(kw=="transparent"&&cC.parentNode){return this.CNl(cC.parentNode,RH)}else{if(kw=="transparent"){return[255,255,255]}}if(!this.jqi(kw,DR)){return[255,255,255]}return this.JWZ(kw)},jqi:function(nx,DR){if(!nx||nx==""){return false}else{if(!DR){return true}else{if(nx!=DR){return true}else{return false}}}}}})(Lightstreamer);(function(ls){ls.Tq=function(){};ls.Tq.prototype={Wx:function(){this.length=0;this.sG={};if(!this.Mr){this.BT={}}}}})(Lightstreamer);(function(ls){ls.tF=function(uW,EV,oB){this.eV(ls.tF);this.TO=uW;this.nl=EV;this.kY=oB;this.Mr=true;this.Wx()};ls.tF.prototype={removeChild:function(uW){if(this.length<=0){return}this.length--;delete (this.sG[uW.wW]);this.TO.removeChild(uW.Ss());uW.parentNode=null},insertBefore:function(XM,uW){if(uW==XM){return}if(!XM){return}if(!uW){this.appendChild(XM);return}if(this.sG[uW.wW]==null){this.appendChild(XM);return}this.qo(XM);this.TO.insertBefore(XM.Ss(),uW.Ss())},appendChild:function(uW){if(!uW){return}this.qo(uW);if(!this.nl){this.TO.appendChild(uW.Ss())}else{this.TO.insertBefore(uW.Ss(),this.nl)}},qo:function(uW){if(uW.parentNode==this){return}this.length++;this.sG[uW.wW]=uW;if(uW.parentNode){uW.parentNode.removeChild(uW)}uW.parentNode=this},oBH:function(wE){if(this.length<=wE){return null}wE+=this.kY;var sp=this.TO.childNodes[wE].getAttribute("id");return this.getElementById(sp)},getElementById:function(wW){return this.sG[wW]},fQ:function(){if(this.TO){delete (this.TO)}if(this.nl){delete (this.nl)}for(var gb in this.sG){this.sG[gb].fQ()}}};ls.tD(ls.tF,ls.Tq)})(Lightstreamer);(function(ls){ls.ED=function(){this.eV(ls.ED);this.Mr=false;this.Wx()};ls.ED.prototype={removeChild:function(uW){if(this.length<=0){return}this.length--;var wE=this.sG[uW.wW];var Ye;for(Ye=wE;Ye<this.length;Ye++){this.BT[Ye]=this.BT[Ye+1];this.sG[this.BT[Ye].wW]=Ye}this.sG[uW.wW]=null;this.BT[this.length]=null;uW.parentNode=null},insertBefore:function(XM,uW){if(uW==XM){return}if(!XM){return}if(!uW){this.appendChild(XM);return}if(this.sG[uW.wW]==null){this.appendChild(XM);return}if(XM.parentNode){XM.parentNode.removeChild(XM)}var tf=this.sG[uW.wW];for(Ye=this.length;Ye>=tf+1;Ye--){this.BT[Ye]=this.BT[Ye-1];this.sG[this.BT[Ye].wW]=Ye}this.qo(XM,tf)},appendChild:function(uW){if(!uW){return}if(uW.parentNode){uW.parentNode.removeChild(uW)}var wE=this.length;this.qo(uW,wE)},qo:function(uW,wE){this.length++;this.sG[uW.wW]=wE;this.BT[wE]=uW;uW.parentNode=this;uW.ZRV()},oBH:function(wE){return this.BT[wE]},getElementById:function(wW){return this.BT[this.sG[wW]]},fQ:function(){for(var gb=0;gb<this.length;gb++){this.BT[gb].fQ()}}};ls.tD(ls.ED,ls.Tq)})(Lightstreamer);(function(ls){ls.vp=function(tp,Ih,aC,keyCode){this.wW="a|"+tp+"|"+aC;this.It=tp;this.Zn=aC;this.keyCode=keyCode;this.nv=Ih;this.parentNode=null;this.uW=null};ls.vp.prototype={ZRV:function(){if(this.uW==null){return}},Ss:function(){if(this.uW!=null){return this.uW}var tk=ls.MD.Spr(this.It);this.uW=tk.Vf.cloneNode(true);this.uW.setAttribute("id",this.wW);var fa=ls.pv.rF(this.uW);for(var Ye=0;Ye<fa.length;Ye++){var Oo=fa[Ye];var sb=Oo.rf.getAttribute("FIELD");if(!sb){continue}tk.qYB(Oo,this.Zn,sb,tk.il)}return this.uW},fQ:function(){if(this.uW){delete (this.uW)}}}})(Lightstreamer);(function(ls){ls.iI=function(WF,connection,context,policy,iJ){this.oC=WF;this.Ip="The LightstreamerEngine instance is not available";this.rJ=null;this.MO=null;this.mq=null;this.onStatusChange;this.onServerError;this.onClientError;this.onClientAlert;this.context=new ls.Context(context);this.context.parent=this;this.policy=new ls.Policy(policy);this.policy.parent=this;this.connection=new ls.Connection(connection);this.connection.parent=this;this.iJ=new ls.Dj(iJ);this.iJ.parent=this;this.sc=ls.KN.getLogger("EH")};ls.iI.prototype={ZlS:function(eR){if(ls.Db.vk){return true}else{this.sc.dSW(this.Ip,eR);return false}},rTH:function(eR){if(this.ZlS(eR)){try{return this.oC[eR]()}catch(XW){this.sc.MG(XW,eR);this.sc.error(this.Ip,eR);ls.fJ.EHb(ls.Db.nXj,0,ls.Db)}}return null},ZIn:function(WD){this.mq=WD},TVa:function(rJ,MO){this.rJ=rJ;this.MO=MO},changeStatus:function(ee){if(!(ee==ls.pC||ee==ls.tX||ee==ls.Ba)){this.sc.dSW("Please use one of: POLLING, STREAMING, DISCONNECTED","changeStatus");return}if(this.ZlS("changeStatus")){this.sc.log("changeStatus",ee);ls.Db.rtZ("DrT",ee)}},Thd:function(){this.changeStatus(ls.pC)},mTj:function(){this.changeStatus(ls.tX)},gIM:function(){this.changeStatus(ls.Ba)},getStatus:function(){if(this.ZlS("getStatus")){return this.mq}else{return null}},getApplicationName:function(){if(this.ZlS("getApplicationName")){return ls.Vp.iZ}else{return null}},getSessionServerName:function(){if(this.ZlS("getSessionServerName")){return this.rJ}else{return null}},getSessionServerAddress:function(){if(this.ZlS("getSessionServerAddress")){return this.MO}else{return null}},getPushPages:function(){var IM=this.rTH("getPushPages");if(IM==null){return[]}},sendMessage:function(gs,Bt,ke,Dc){if(this.ZlS("sendMessage")){if(ke){ke=ls.MD.nnw(ke)}if(!ls.Db.Ng){return false}if(!Bt&&Bt!=0){Bt=""}else{if(!ls.bg.test(Bt)){this.sc.dSW("The given sequence name("+Bt+") is not valid: use only alphanumeric characters plus underscore, or null","sendMessage");return false}}if((Dc&&isNaN(Dc))||Dc===""){this.sc.dSW("The given timeout("+Dc+") is not valid: use a number or null","sendMessage");return false}ls.Db.ZOa("HRm",{gs:gs,Bt:Bt,ke:ke,Dc:Dc});return true}return false},NBZ:function(){if(this.ZlS("NBZ")){ls.Db.BR("NBZ")}}}})(Lightstreamer);(function(ls){ls.iv=function(xc,wB){this.wB=wB;this.xc=xc;ls.Oa("unload",ls.getClosureForNoParams(this.sqT,this))};ls.iv.prototype={sqT:function(){try{this.xc.removeChild(this.wB);delete (this.wB);delete (this.xc)}catch(XW){}}}})(Lightstreamer);(function(ls){ls.eB=function(){this.Qx=null;this.be=null;this.vh=0;this.mS=0;this.sc=ls.KN.getLogger("EW")};ls.eB.prototype={fF:function(CP,Po,gi){if(this.mS!=gi){this.sc.log("fF",0);return}var tB=false;var hQ=null;if(ls.Db.vk){this.sc.log("fF",1);return}if(!CP){this.sc.log("fF",5);return}this.vh++;tB=!this.xQu(CP);if(!tB){if(CP.Lightstreamer.nR){hQ=CP.Lightstreamer.nR}else{if(CP.Zh){hQ=CP.Zh}else{this.sc.log("fF",6);tB=true}}}if(!tB){if(!hQ){this.sc.log("fF",8);tB=true}if(!hQ.pHW){this.sc.log("fF",7)}else{if(hQ.wT==true){ls.nR.lX=false;ls.nR.wT=true;if(ls.nR.pHW()==null){this.sc.GSR("This Push-page can't receive real-time data because the corresponding engine could not start")}else{this.sc.dGc(false,"fF")}this.sc.log("fF",4);return}var Ct=hQ.pHW();if(Ct==null){this.sc.log("fF",2);tB=true}else{this.sc.log("fF",3);Po.rl=Ct;ls.nR.Tl=false}}}if(tB){ls.fJ.EHb(this.fF,this.vh<=30?1000:10000,this,[CP,Po,gi])}},GZH:function(CP,Po){this.mS++;this.vh=0;this.fF(CP,Po,this.mS)},xQu:function(CP){try{if(CP.Lightstreamer){}this.sc.log("xQu",0);return true}catch(XW){this.sc.MG(XW,"xQu",document.domain);return false}},Ksn:function(){if(!document.getElementsByTagName){return false}if(this.be){this.sc.log("Ksn",7);return false}var OC=ls.aI(9,false)?ls.Vp.Fr+ls.dD:"about:blank";this.sc.log("Ksn",6,OC);var dA="LS__"+ls.MY();this.Qx=dA;this.sc.log("Ksn",dA);var GS=document.getElementsByTagName("BODY")[0];if(!GS){this.sc.error("The createEngine() method should be called in the BODY part of the page, not in the HEAD","createEngine");return false}var wB;try{wB=document.createElement("iframe");wB.style.visibility="hidden";wB.style.height="0px";wB.style.width="0px";wB.name=dA;if(ls.Kp()){wB.src=ls.Vp.Dk;GS.appendChild(wB)}else{GS.appendChild(wB);wB.src=ls.Vp.Dk}this.be=new ls.iv(GS,wB)}catch(XW){this.sc.MG(XW,"Ksn",5);return null}try{if(wB.contentWindow){this.sc.log("Ksn",1);try{wB.contentWindow.name=dA}catch(ob){}return wB.contentWindow}else{if(document.frames&&document.frames[dA]){this.sc.log("Ksn",2);return document.frames[this.Qx]}else{this.sc.log("Ksn",3);return self}}}catch(XW){this.sc.MG(XW,"Ksn",4);return self}}}})(Lightstreamer);(function(ls){Lightstreamer.PushPage=function(){this.context=ls.Uj;this.IR=null;this.BZ=window;this.si=2000;this.Fr=null;this.sa=null;this.HY=false;this.WB=0;this.Zh=ls.nR;this.oM=0;this.PY=ls.Ce;this.kE=true;this.wR=0;this.XF=false;this.Gw=0;this.Fe=false;this.Nf=null;this.LI=0;this.Jr="The application name is missing";this.vV="createEngine() has already been called";this.Ft=true;this.Dk=null;this.iZ=null;this.rl=null;this.MD=ls.MD;this.lp=ls.ol;this.dC=null;this.CR=null;this.GH=true;this.jQ=null;this.sc=ls.KN.getLogger("PP")};Lightstreamer.PushPage.prototype={JnG:ls.BO,setControlRequestTimeout:function(Dc){this.lp.Pt=this.JnG(Dc,"setControlRequestTimeout",this.lp.Pt,true,10)},useFragmentToConfEngine:function(jR){this.Ft=jR!==false},ARo:function(tV){this.sc.log("ARo",tV);if(!this.MD.Fh[tV]){this.sc.error("No such ScreenTableHelper to be deleted: "+tV,"ARo");return}delete (this.MD.Fh[tV])},wp:function(applicationName,Hh,ou,HY,Td){this.Zh.lX=ou=="S";this.iZ=applicationName;if(Hh.charAt(Hh.length-1)!="/"){Hh+="/"}this.Fr=Hh;this.sa=ou;this.HY=(HY===true);Hh+="lsengine.html?v1";this.sc.log("wp",ls.OV,ou);if(ls.OV&&ou!="N"){var KL;if((KL=this.tbG(ou,applicationName))!=false){this.sc.log("wp",1,applicationName,ou);this.WB++;ls.fJ.EHb(this.jXS,KL.jG,this,[applicationName,Hh,ou,KL,Td,this.HY]);this.wG(this.iZ,null);return false}}this.sc.log("wp",0,applicationName,ou);this.KU(Hh,applicationName,Td,this.HY,ou);return true},tbG:function(Mn,applicationName,wS){var iK={};iK.jG=0;var JW=false;var FR=ls.Gc();var ds=ls.Fk(ls.Vq+applicationName);if(!ds){this.sc.log("tbG",1);return false}for(var gb=0;gb<ds.length;gb++){var Se=ls.Fk(ls.Vq+ds[gb]+"_"+applicationName);this.sc.log("tbG",2,ds[gb],Se);if(!Se||Se.length<2){this.hF(ds[gb],applicationName);continue}else{if(Mn=="S"&&Se[1]!="S"){continue}}if(wS&&wS[ds[gb]]){if(Se[0]!=wS[ds[gb]]){this.sc.log("tbG",3,Se[0],wS[ds[gb]]);return true}this.sc.log("tbG",4);continue}var Ut=Number(Se[0])+ls.Am+2000;var MP=Ut-FR;this.sc.log("tbG",5,ds[gb],MP);if(MP<=-60000){this.hF(ds[gb],applicationName);continue}if(MP<this.si){MP=this.si}iK[ds[gb]]=Se[0];JW=true;iK.jG=iK.jG>MP?iK.jG:MP}if(JW){this.sc.log("tbG",6,iK);return iK}else{this.sc.log("tbG",7);return false}},hF:function(id,pa){ls.fI(ls.Vq+id+"_"+pa);ls.kO(ls.Vq+pa,id)},Eap:function(){if(this.XF){this.hF(this.dC,this.iZ)}},Ugb:function(fT){var oD=ls.Rl(ls.Vq+this.iZ,this.dC);if(fT&&!oD){return false}var SN=ls.Fk(ls.Vq+this.dC+"_"+this.iZ);if(fT&&SN){return false}else{if(SN&&SN.length>2){this.sc.log("Ugb",1,SN);this.eD()}else{ls.KK(ls.Vq+this.dC+"_"+this.iZ,[ls.Gc(),this.sa])}}return true},IL:function(){this.CR=ls.fJ.UwB(this.Ugb,ls.Am,this)},eD:function(){if(this.CR){ls.fJ.mNt(this.CR);delete (this.CR)}},KU:function(Xb,iZ,Td,HY,ou){var bT=ls.Db;if(bT.vk){return}else{if(bT.rL){this.sc.log("KU",2);ls.fJ.EHb(this.KU,bT.Bv,this,[Xb,iZ,Td,HY,ou]);return}}this.Ww();this.dC=ls.MY();this.Zh.wT=false;if(ls.OV){while(!this.Ugb(true)){this.dC=ls.MY()}this.IL()}var Dx=this.Ft?"#":"?";Dx+="build=1446.6&";Dx+="id="+this.dC+"&";if(ls.ox!=null&&ls.ox!=""){Dx+=("domain="+ls.ox+"&")}if(iZ){Dx+=("engineName="+iZ+"&")}if(HY){Dx+="suppressDefaultStatusChangeHandler=true&"}if(Td&&this.IR){if(!this.IR.context.Up){Dx+=("debugAlerts=false&")}if(!this.IR.context.ib){Dx+=("remoteDebug=false&")}}else{if(!this.context.Up){Dx+=("debugAlerts=false&")}if(!this.context.ib){Dx+=("remoteDebug=false&")}}if(ls.ObjectTree){Dx+=("d=true&")}this.Dk=Xb+Dx;this.rl=self;this.XF=true;this.Gw=0;this.wR++;bT.Wx(true);this.sc.log("KU",1,this.wR);this.oH(this.wR)},LvC:function(iM){if(iM>2500){iM=2500}else{if(iM<50){iM=50}}this.jQ=this.jQ&&this.jQ<iM?this.jQ:iM;return this.jQ},enableFasterSeekEngine:function(enabled){this.GH=!enabled},Re:function(Dc){var inc=100;var XC=ls.Gc();if(Dc&&this.Nf){inc+=XC-this.Nf-Dc}this.Nf=XC;Dc=this.LvC(Dc?Dc+inc:100);this.jQ=null;this.sc.log("Re",1,inc,Dc);var ac=this.wR;this.LI++;ls.fJ.EHb(this.oH,Dc,this,[ac,Dc])},oH:function(ac,Dc){if(Dc){this.LI--}if(ac!=this.wR||ls.Db.vk){this.sc.cg("oH",5);return}this.kB();if(this.rl==self){this.sc.log("oH",1);this.Re(Dc);return}var HA=this.Zh.xJT();if(!HA){this.sc.log("oH",3);this.Re(Dc);return}this.sc.log("oH",4);this.wR++;ls.Db.gcw(HA,this.XF)},kB:function(){if(this.kE){this.kE=false;this.Zh.xjw();this.sc.log("kB",11)}if(this.rl!=self||this.Zh.wT){this.sc.dGc((this.rl!=self||this.Zh.wT!=true),"kB");this.sc.log("kB",1);return}if(!this.PY.be){if(!ls.Ii.eiI()||!ls.Kp()){var MI=this.PY.Ksn();if(!MI){this.sc.log("kB",3);return}else{if(MI!=self){this.rl=MI;this.Fe=true;this.sc.log("kB",4);return}}}}if(this.rl==self&&this.PY.be){if(ls.Uu()){try{if(window.frames[this.PY.Qx]){this.rl=window.frames[this.PY.Qx];var ff=""+this.rl.location;this.sc.log("kB",8,ff,this.Dk);if(ff.indexOf("lsengine.html")<0){this.rl.location=this.Dk}}else{this.sc.log("kB",9)}return}catch(XW){this.sc.MG(XW,"kB",10);this.rl=self}}else{if(!ls.Kp()){this.rl=ls.ZVw(this.Dk,this.PY.Qx,true);this.sc.log("kB",5);if(this.rl===false){this.rl=self}else{if(this.rl==null&&this.Gw<=10){this.Gw++;this.rl=self;this.sc.log("kB",6);return}}}}}this.sc.log("kB",7)},wG:function(applicationName,CP){var bT=ls.Db;if(bT.vk){return}else{if(bT.rL){this.sc.log("seekEngine",1);ls.fJ.EHb(this.wG,bT.Bv,this,[applicationName,CP]);return}}this.Ww();this.wR++;this.sc.log("seekEngine",applicationName,this.wR);this.Zh.wT=false;this.Zh.lX=true;this.Zh.xp=false;this.iZ=applicationName;bT.Wx(true);this.PY.GZH(CP,this);this.oH(this.wR)},jXS:function(applicationName,Hh,ou,Qp,Td,HY){this.WB--;if(this.sa=="N"){this.sc.log("jXS",1);return}if(this.tbG(ou,applicationName,Qp)){if(ou=="S"){this.wG(applicationName,null)}else{this.sc.error("An application with this engine name("+applicationName+") already exists within this browser.\nThis Push-page can't receive real-time data because the corresponding engine could not start","createEngine");if(this.onEngineCreation){try{this.onEngineCreation(null)}catch(XW){this.sc.PqW(XW,this.onEngineCreation,"onEngineCreation")}}this.Zh.wT=true}}else{if(this.XF&&!Td){this.sc.error(this.vV,"createEngine")}else{this.KU(Hh,applicationName,Td,HY,ou)}}},SFJ:function(gh){if(gh){this.si=10000}else{this.si=2000}this.IR.context.KN=null;this.Ww()},Ww:function(){this.Fe=false;this.XF=false;this.rl=null;var eP=this.PY.be;if(eP){this.PY.be=null;ls.fJ.EHb(eP.sqT,60000,eP)}this.eD()},Zxb:function(){return this.Fr&&!this.XF&&this.sa=="S"},LBK:function(){if(this.Zxb()){this.wp(this.iZ,this.Fr,"N",this.HY,false)}},vr:function(fA){if(this.onClientError){try{this.onClientError(fA)}catch(XW){this.sc.MG(XW,"vr")}}}};Lightstreamer.PushPage.prototype.isMasterPushPage=function(){return ls.Db.RI};Lightstreamer.PushPage.prototype.onEngineLost=function(){return};Lightstreamer.PushPage.prototype.setCheckEngineTimeout=function(Ma){this.Zh.Ma=this.JnG(Ma,"setCheckEngineTimeout",Ma,true,10)};Lightstreamer.PushPage.prototype.getTable=function(id){var It=this.lp.pPq(id);if(It&&It.il!==ls.NNs){return It}return null};Lightstreamer.PushPage.prototype.getTables=function(){var BT={};for(var wW in this.lp.lV){var LZ=this.lp.pPq(wW);if(LZ&&LZ.il!==ls.NNs){BT[wW]=LZ}}return BT};Lightstreamer.PushPage.prototype.onServerDeny=function(code,message,OT,iR,qt,sH){alert("Subscription Error.\n"+message+"(code "+code+").")};Lightstreamer.PushPage.prototype.onClientError=function(XY){return};Lightstreamer.PushPage.prototype.onClientAlert=function(code,XY){ls.fJ.EHb(alert,0,null,["Warning "+code+"\n"+XY])};Lightstreamer.PushPage.prototype.createEngine=function(applicationName,Hh,ou,HY){if(this.Vh){this.sc.dSW(this.vV,"createEngine");return}if(!applicationName){this.sc.dSW(this.Jr,"createEngine")}else{if(!ls.xS.test(applicationName)){this.sc.dSW("The given engine name("+applicationName+") is not valid: use only alphanumeric characters","createEngine")}else{if(!Hh){this.sc.dSW("Cannot load the Engine without a path","createEngine")}else{if(ls.Vp==null){this.sc.dSW("Can't create the Engine if PushPage is not bound. Please call the bind() method of PushPage before","createEngine")}else{if(ls.Vp!=this){this.sc.dSW("There should be only one instance of PushPage per each HTML page. Can't create the Engine if a different PushPage is bound. Please call the createEngine() of that PushPage","createEngine")}else{if(ou!="SHARE_SESSION"&&ou!="FAIL"&&ou!="NEW_SESSION"){if(typeof ou!="undefined"){this.sc.dSW("onSimilarEngineFound must be one of: SHARE_SESSION, FAIL, NEW_SESSION.","createEngine")}ou="NEW_SESSION"}}}}}}ou=ou.substr(0,1);this.Vh=true;this.wp(applicationName,Hh,ou,HY,false)};Lightstreamer.PushPage.prototype.seekEngine=function(applicationName,CP){if(this.Vh){this.sc.dSW(this.vV,"seekEngine");return}if(!applicationName){this.sc.dSW(this.Jr,"seekEngine")}else{if(!ls.xS.test(applicationName)){this.sc.dSW("The given engine name("+applicationName+") is not valid: use only alphanumeric characters","createEngine")}}this.Vh=true;this.wG(applicationName,CP)};Lightstreamer.PushPage.prototype.bind=function(){this.sc.cg("bind");ls.XJ({oOL:"28442324223623531823424",RxT:"52312352492633183053182",extraN1:"58412404420380382389392"});ls.ei=ls.hFx(""+ls.oOL+ls.RxT+ls.extraN1,"document",51,6,500);ls.XJ({extraV1:"93449415449423434431426",extraV2:"40141541541141541443278"});ls.di=ls.hFx(""+ls.oOL+ls.RxT+ls.extraN1+ls.extraV1+ls.extraV2,"document",74,5,500);if(ls.Vp==this){this.sc.error("This object is already bound","bind");return false}if(this.context.bind()){ls.Vp=this;ls.KN.nYV(this.vr,this);if(window.console&&window.console.firebug){ls.KN.ANj(this,130,"Firebug is known to cause performance and memory issues with Lightstreamer.")}if(ls.FlashBridge){for(var gb in ls.FlashBridge.bridges){ls.FlashBridge.bridges[gb].lL()}}return true}else{return false}};Lightstreamer.PushPage.prototype.getWindowReference=function(){return this.BZ};Lightstreamer.PushPage.prototype.cellOverwrite=function(SX,item,field,fC,QV,Kw,ok,KS){ls.cellOverwrite(SX,item,field,fC,QV,Kw,ok,KS)};Lightstreamer.PushPage.prototype.cellScroll=function(SX,row,field,fC,QV,Kw,ok,KS){ls.cellScroll(SX,row,field,fC,QV,Kw,ok,KS)};Lightstreamer.PushPage.prototype.cellMetapush=function(SX,row,field,fC,QV,Kw,ok,KS){ls.cellMetapush(SX,row,field,fC,QV,Kw,ok,KS)};Lightstreamer.PushPage.prototype.addTable=function(wL,id){if(!wL||(!id&&id!==0)){this.sc.dSW("Table Object And/Or Table id is null","addTable")}if(wL.Ns!="COMMAND"&&wL.Ns!="MERGE"&&wL.Ns!="DISTINCT"&&wL.Ns!="RAW"){this.sc.dSW(wL.Ns+" is not a valid subscription mode. Admitted values are MERGE, DISTINCT, RAW, COMMAND","addTable")}if(ls.Vp==null){this.sc.dSW("Can't add a table if PushPage is not bound. Please call the bind() method of PushPage before adding tables","addTable")}return this.lp.vZt(wL,id)};Lightstreamer.PushPage.prototype.addScreenTableHelper=function(rx){this.sc.log("addScreenTableHelper",rx);if(this.MD.Fh[rx.SX]){this.sc.error("ScreenTableHelper already set for "+rx.SX+", add new cells to the previously provided ScreenTableHelper","addScreenTableHelper");return}this.MD.Fh[rx.SX]=rx};Lightstreamer.PushPage.prototype.removeTable=function(id){this.sc.log("removeTable",1,id);var Nn=this.lp.pPq(id);if(!Nn){this.sc.error("No table to delete with id "+id,"removeTable");return null}return this.lp.YcC(id)};Lightstreamer.PushPage.prototype.onEngineCreation=function(engine){return};Lightstreamer.PushPage.prototype.onEngineReady=function(engine){return}})(Lightstreamer);(function(ls){ls.hA=function(Db){this.lV={};this.Gg={};this.oM=1;this.bT=Db;this.Pt=2000;this.sc=ls.KN.getLogger("TL")};ls.hA.prototype={rwe:function(YN){return this.pPq(this.Gg[YN])},pPq:function(wW){if(wW&&this.lV[wW]){return this.lV[wW]}return null},vZt:function(OW,wW){if(OW.Yp!=ls.QVW){this.sc.error("Can't add a table that is already in 'running' state. Please add the table instance only once ["+wW+"]","addTable");return null}this.sc.log("vZt",0,OW,wW);var Bh=this.lV[wW];if(Bh){Bh=this.YcC(wW)}if(!OW.SaY(wW,++this.oM)){this.sc.log("vZt",1);OW.ZVI();return Bh}this.lV[wW]=OW;OW.QeM();if(this.bT.Ng){this.Bs(OW)}this.sc.log("vZt",2);return Bh},YcC:function(wW){var kg=this.lV[wW];if(!kg){this.sc.JTF("YcC",wW,1);return null}if(kg.Yp==ls.QVW){this.sc.JTF("YcC",wW,2);return null}else{if(kg.Yp==ls.MWN||kg.Yp==ls.sZQ){this.sc.dGc(this.bT.vk,"YcC",4,wW);this.sc.log("YcC",2,wW,kg);if(kg.kR){this.bT.Jet("RO",{YN:kg.kR})}else{this.bT.Jet("RO",{SX:wW,bt:this.bT.NM})}}}if(kg.kR){delete (this.Gg[kg.kR])}kg.ZVI();delete (this.lV[wW]);return kg},Bs:function(OW,vj,sR){if(vj){if(OW.Yp!=ls.Abp){this.sc.log("Bs",1);return}if(vj!=this.bT.AW){this.sc.log("Bs",2);return}if(sR!=OW.xJ){this.sc.log("Bs",3);return}}else{if(OW.Yp!=ls.Wwp){this.sc.dGc(false,"Bs")}OW.tUj()}this.sc.log("Bs",4);ls.fJ.EHb(this.Bs,this.Pt,this,[OW,this.bT.AW,OW.xJ]);this.bT.Jet("jYY",{eY:OW.eY,SX:OW.wW,xJ:OW.xJ,bt:this.bT.NM,xX:OW.xX,AI:OW.Me})},mxW:function(SX,YN,eY,xJ){var Jj=this.lV[SX];if(!Jj||Jj.Yp!=ls.Abp||Jj.eY!=eY||Jj.xJ!=xJ){this.sc.log("mxW",1,eY,xJ,Jj);return}Jj.mxW(YN);this.Gg[YN]=SX;this.Ts(Jj)},Ts:function(OW,vj,dY,eY,xJ,cd){if(OW.Yp!=ls.MWN){this.sc.log("Ts",1);return}if(vj){if(vj!=this.bT.AW||OW.eY!=eY||OW.xJ!=xJ){this.sc.log("Ts",1,vj,this.bT);return false}cd++}else{cd=1}var Bq=dY?dY*2:this.Pt;this.sc.log("Ts",3,Bq,OW);OW.uo=ls.fJ.wOx(this.Ts,this,[OW,this.bT.AW,Bq,OW.eY,OW.xJ,cd]);OW.dU=Bq;var ji=this.bT.Jet("hLI",{bt:this.bT.NM,YN:OW.kR,QB:cd})},uuN:function(){this.sc.log("uuN");for(var wW in this.lV){this.Bs(this.lV[wW])}},lK:function(It){if(It.Yp==ls.QVW||It.il===ls.NNs){this.sc.log("lK",1,It);this.sc.dGc(It.Yp!=ls.QVW,"lK");return}this.sc.log("lK",2,It);delete (this.Gg[It.kR]);It.kqO()},YUX:function(){this.sc.log("YUX",1);for(var wW in this.lV){this.lK(this.lV[wW])}this.Gg={}}}})(Lightstreamer);(function(ls){Lightstreamer.ScreenTableHelper=function(id,iC){this.SX=id;this.sc=ls.KN.getLogger("TL");this.TB=false;this.iC=[];if(iC){for(var gb=0;gb<iC.length;gb++){this.addCell(iC[gb])}}this.an=ui;this.eS=document};Lightstreamer.ScreenTableHelper.prototype={addCell:function(JA){var It=JA.getAttribute("table");if(!It||It!=this.SX){this.sc.dSW("The cell does not belong to the '"+this.SX+"' screen table","addCell");return}this.TB=true;this.iC[this.iC.length]=new ls.pv(JA)},setNodeTypes:function(dJ){if(dJ&&dJ.length>0){this.an=dJ}else{this.sc.dSW("The given array is not valid or empty","setNodeTypes")}},setRootNode:function(BU){if(BU&&BU.getElementsByTagName){this.eS=BU}else{this.sc.dSW("The given root element is not valid","setRootNode")}}};var ui=["div","span","input"];ls.ScreenTableHelper.ui=ui})(Lightstreamer);(function(ls){ls.IZ=function(wW){this.wW=wW;this.il=null;this.rY=null;this.Lo=0;this.xE=new ls.Ms();this.mF=new ls.Ms();this.DF=new ls.Ms();this.kQ=new ls.Ms();this.JE=new ls.Ms();this.OQ=new ls.Ms();this.Gu=new ls.Ms();this.DA=0;this.jF=new ls.Ms();this.QA=new ls.Ms();this.VD=new ls.Ms();this.pB=new ls.Ms();this.mA={};this.nt={};this.qs=1;this.Nk=[];this.rv={};this.cq={};this.GF;this.dE;this.kY;this.DL;this.Vf;this.qH;this.Dq;this.Xo;this.HX=0;this.sc=ls.KN.getLogger("ST")};ls.IZ.prototype={eTu:function(VO){if(this.il!=null){if(this.il!=VO.il){this.sc.error("A Data Table cannot be associated with a Screen Table that was previously associated with a Data Table of a different type","addTable");return false}}this.rY=VO;this.Xq=VO.Xq;if(this.il==null){this.il=VO.il}return true},qYB:function(pA,SK,wm,fg){if((fg.indexOf(ls.ZSN)>-1)||(fg.indexOf(ls.ZFs)>-1)){if(this.DA<SK){this.DA=SK}}this.Lo++;this.insertCell(pA,SK,wm)},insertCell:function(pA,SK,wm){this.xE.TA(pA,SK,wm)},xlW:function(SK,wm){return this.xE.FS(SK,wm)},deleteCell:function(SK,wm){this.xE.ek(SK,wm)},TbO:function(SK,Zk){ot=this.OQ.FS(SK,Zk);if(!ot){ot=ls.aIu}ls.MD.sm(this.wW,SK,Zk,ot,ls.phx,this.JE.Qh(SK),true)},dpi:function(SK){return this.xE.Qh(SK)},rKF:function(){return this.xE.YT()},BC:function(SK,kt){if(kt){this.xE.BQ(SK)}this.VD.BQ(SK);this.pB.BQ(SK);this.jF.BQ(SK);this.mF.BQ(SK);this.DF.BQ(SK);this.JE.BQ(SK);this.kQ.BQ(SK);this.QA.BQ(SK);delete (this.rv[SK]);delete (this.cq[SK]);var Zn=this.nt[SK];if(Zn){delete this.mA[Zn];delete this.nt[SK]}},PbA:function(RT){if(RT==0){return}var kM=this.HX-this.qs+1;if(kM<=RT){return}var TZ=kM-RT;for(var gb=1;gb<=TZ;gb++){this.rW()}},rW:function(){this.sc.dGc(this.rY,"rW");var kM=this.HX-this.qs+1;if(kM<=0){return 0}var RJ=this.Nk.shift();if(this.rY&&this.rY.onChangingValues){try{this.rY.onChangingValues(RJ,null)}catch(XW){this.sc.PqW(XW,this.rY.onChangingValues,"onChangingValues")}}if(RJ&&ls.pv.Ld(RJ)){RJ.parentNode.removeChild(RJ)}this.BC(this.qs,true);this.qs++;return kM-1},vuT:function(Zn,vu,hI){var It=this.rY;var pg=It.rt.Qh(Zn);for(var Zk in pg){var hr=It.wg[Zk];if(hr==null){continue}this.pB.TA(It.KE.FS(Zn,Zk),vu,hr);if(pg[Zk]!==null){this.VD.TA(pg[Zk],vu,hr)}else{if(!hI){}else{this.VD.TA(null,vu,hr)}}}},vHa:function(Lh,EN,Hk,CX){if(Lh==EN){return}var TN;if(CX){TN=this.cB(Lh,null)}var gb=Lh;do{var dp=gb;gb+=Hk;var Ia=gb;this.cB(Ia,dp)}while(gb!=EN);if(CX){this.sc.dGc(this.il==ls.ZFs,"vHa",1);this.cB(null,EN,TN)}},cB:function(Ia,dp,YO){var tY={};tY.FI={};var xk;if(Ia){xk=this.VD.Qh(Ia)}else{xk=YO.VD}for(var QP in xk){if(YO&&YO.FI[QP]){tY.FI[QP]=this.Unj(Ia,dp,QP,YO.FI[QP])}else{tY.FI[QP]=this.Unj(Ia,dp,QP)}}var Yn;var Su;var Oq;var qr;var FV;var VC;var QW;var Wl;if(Ia){Yn=this.kQ.qC(Ia);Su=this.JE.qC(Ia);qr=this.mF.qC(Ia);Oq=this.DF.qC(Ia);VC=this.VD.qC(Ia);QW=this.pB.qC(Ia);Wl=this.jF.qC(Ia);bY=this.QA.qC(Ia);if(this.rY.jY){FV=this.rY.jY[Ia]}}else{Yn=YO.kQ;Su=YO.JE;qr=YO.mF;Oq=YO.DF;VC=YO.VD;QW=YO.pB;Wl=YO.jF;bY=YO.QA;if(this.rY.jY){FV=YO.jY}}if(dp){this.kQ.insertRow(Yn,dp);this.JE.insertRow(Su,dp);this.mF.insertRow(qr,dp);this.DF.insertRow(Oq,dp);this.VD.insertRow(VC,dp);this.pB.insertRow(QW,dp);this.jF.insertRow(Wl,dp);this.QA.insertRow(bY,dp);if(this.rY.jY){this.rY.jY[dp]=FV}}else{tY.kQ=Yn;tY.JE=Su;tY.mF=qr;tY.DF=Oq;tY.VD=VC;tY.pB=QW;tY.jF=Wl;tY.QA=bY;if(this.rY.jY){tY.jY=FV}}if(Ia&&dp&&this.rY){var fd=ls.Lq;fd.Wx(this.rY,this.nt[dp],dp);if(this.rY.onRowUpdate){try{this.rY.onRowUpdate(dp,fd)}catch(XW){this.sc.PqW(XW,this.rY.onRowUpdate,"onRowUpdate")}}}return tY},Unj:function(Ia,dp,QP,sP){var Ee;if(Ia){Ee=this.xlW(Ia,QP)}else{Ee=sP}var pW;if(dp){pW=this.xlW(dp,QP)}if(!pW){var mp=document.createElement("div");pW=new ls.pv(mp)}if(dp){this.insertCell(pW,dp,QP)}var ZV;var gN;var jf=false;if(Ia){ZV=this.jF.FS(Ia,QP);var qJ=this.QA.Qh(Ia);if(!ZV){ZV=qJ}else{for(var HR in qJ){if(!ZV[HR]){ZV[HR]=1}}}gN=this.VD.FS(Ia,QP);if(gN===null){if(dp){gN=this.OQ.FS(dp,QP)}else{}jf=true}}else{ZV=Ee.iN;if(Ee.fD){gN=null}else{gN=Ee.Aj()}}pW.VT=Ee.VT;pW.Qi=Ee.Qi;pW.LW=Ee.LW;pW.rR=Ee.rR;pW.xF=Ee.xF;pW.rf.className=Ee.rf.className;for(var HR in ZV){pW.rf.style[HR]=Ee.rf.style[HR]}if(dp){var Im=this.jF.FS(dp,QP);for(var HR in Im){if(!ZV[HR]){pW.rf.style[HR]=""}}if(gN===null){gN=this.OQ.FS(dp,QP)}ls.MD.sm(this.wW,dp,QP,gN,ls.IoB,null,jf)}else{var fD=null;pW.fD=(gN==null);if(!pW.fD){pW.NB(gN)}pW.iN=ZV}return pW},fQ:function(){if(this.rY&&this.rY.Nc&&this.rY.Nc.appendChild){delete (this.rY.Nc)}var nZ=this.rKF();for(var gb in nZ){for(var hM in nZ[gb]){nZ[gb][hM].fQ()}}if(this.DL){delete (this.DL)}if(this.qH){delete (this.qH)}if(this.Vf){delete (this.Vf)}if(this.MR){delete (this.MR)}if(this.Xo){delete (this.Xo)}if(this.Dq){if(this.Dq.fQ){this.Dq.fQ()}else{delete (this.Dq)}}if(this.dE){this.dE.fQ()}if(this.GF){this.GF.fQ()}for(var gb in this.rv){if(this.rv[gb]&&this.rv[gb].fQ){this.rv[gb].fQ()}}}}})(Lightstreamer);(function(ls){ls.RB=function(wW){this.eV(ls.RB,wW);this.il=ls.gas};ls.RB.prototype={eTu:function(VO){if(VO.il!=ls.gas){this.sc.error("A Data Table cannot be associated with a Screen Table that was previously associated with a Data Table of a different type","addTable");return false}this.rY=VO;return true}};ls.tD(ls.RB,ls.IZ)})(Lightstreamer);Lightstreamer.XJ({QVW:1,Abp:2,MWN:3,sZQ:4,Wwp:5});(function(ls){Lightstreamer.Table=function(FK,eH,gT){this.sF=FK?ls.GroupDescriptor.uc(FK):null;this.Tj=eH?ls.SchemaDescriptor.lk(eH):null;this.Ns=new String(gT).toUpperCase();this.SP=false;this.cQ=null;this.Sm=null;this.Lh=null;this.EN=null;this.Ek=null;this.qi=null;this.kR=null;this.KE=new ls.Ms();this.OI=new ls.Ms();this.rt=new ls.Ms();this.gg=null;this.HQ=new ls.Ms();this.Yp=ls.QVW;this.wW=null;this.Me="";this.xJ=0;this.eY=null;this.xF=0;this.KG=3000;this.xX=0;this.uo;this.dU;this.il=null;var oh=" See the documentation for further details";this.sD="This method must be called at runtime."+oh;this.su="This method cannot be called at runtime."+oh;this.sc=ls.KN.getLogger("TL");this.tN=0};Lightstreamer.Table.prototype={JnG:ls.BO,wia:ls.Wb,SaY:function(wW,eY){this.sc.log("SaY",wW,eY);this.Yp=ls.Wwp;this.eY=eY;this.wW=wW;this.xJ++;this.tN++;this.sc.dGc(this.tN==1,"SaY",1,this.tN,this);return true},tUj:function(){this.kR=null;this.xJ++;this.uo=null;this.dU=null;this.Yp=ls.Abp;this.sc.log("tUj",this)},mxW:function(YN){this.sc.log("mxW",YN);this.kR=YN;this.Yp=ls.MWN},kqO:function(){this.Yp=ls.Wwp;this.TK();this.sc.log("kqO",this)},ZVI:function(){this.Yp=ls.QVW;this.eY=null;this.TK();delete (this.Me);this.tN--;this.sc.dGc(this.tN==0,"ZVI",1,this.tN,this);this.sc.log("ZVI",this)},TK:function(){this.kR=null;if(this.Tj){this.Tj.reset()}this.uo=null;this.dU=null;this.sc.log("TK",this)},CQR:function(){this.Yp=ls.sZQ;if(this.onStart){try{this.onStart()}catch(XW){this.sc.PqW(XW,this.onStart,"onStart")}}},wic:function(){return this.Yp!=ls.QVW},CtB:function(){return this.Yp==ls.sZQ},gk:function(){if(!this.sF){this.sc.dSW("Cannot initiate a "+this.getClassName()+" without a group",this.getClassName())}},QC:function(){if(!this.Tj){this.sc.dSW("Cannot initiate a "+this.getClassName()+" without a schema",this.getClassName())}},QeM:function(){this.Me="LS_mode="+this.Ns+"&LS_id="+ls.aE(this.sF.mcn())+"&LS_schema="+ls.aE(this.Tj.FoJ())+"&";if(this.qi!=null){this.Me+=("LS_data_adapter="+ls.aE(this.qi)+"&")}if(this.Ek!=null){this.Me+=("LS_selector="+ls.aE(this.Ek)+"&")}if(this.Lh!=null){this.Me+=("LS_start="+this.Lh+"&")}if(this.EN!=null){this.Me+=("LS_end="+this.EN+"&")}if(this.SP!=null&&this.SP!=false){this.Me+=("LS_snapshot="+this.SP+"&")}if(this.cQ!=null){var Wm=this.cQ;if(Wm=="unfiltered"){this.Me+=("LS_requested_max_frequency="+Wm+"&")}else{if(Wm!="unlimited"&&Wm>0){this.Me+=("LS_requested_max_frequency="+Wm+"&")}}}if(this.il.indexOf(ls.nWs)>-1){this.lm=this.cQ}if(this.Sm!=null){var ip=this.Sm;if(ip!="unlimited"&&ip>0){this.Me+=("LS_requested_buffer_size="+ip+"&")}}this.sc.log("QeM",this.Me);return},getSchema:function(){return this.Tj},getGroup:function(){return this.sF},setDataAdapter:function(qi){this.sc.log("setDataAdapter",arguments);this.qi=qi},getId:function(){return this.wW},setSelector:function(selector){this.sc.log("setSelector",arguments);this.Ek=selector},NXG:function(){return this.Ek},setItemsRange:function(start,EN){this.Lh=this.JnG(start,"setItemsRange",this.Lh,true,1);this.EN=this.JnG(EN,"setItemsRange",this.EN,true,this.Lh)},uWk:function(){return[this.Lh,this.EN]},setRequestedMaxFrequency:function(tP){tP=new String(tP);tP=tP.toLowerCase();if(tP=="unfiltered"||tP=="unlimited"){this.cQ=tP}else{this.cQ=this.JnG(tP,"setRequestedMaxFrequency",this.cQ,false,0)}},swX:function(){return this.cQ},setRequestedBufferSize:function(size){size=new String(size);size=size.toLowerCase();if(size=="unlimited"){this.Sm=size}else{this.Sm=this.JnG(size,"setRequestedBufferSize",this.Sm,true,0)}},Fhd:function(){return this.Sm},setSnapshotRequired:function(mm){if(mm===true||mm===false){this.SP=mm}else{if(this.Ns=="DISTINCT"){this.SP=this.JnG(mm,"setSnapshotRequired",this.SP,true,0)}else{this.sc.dSW("Numeric values are only allowed when the subscription mode is DISTINCT","setSnapshotRequired");return}}},iMa:function(){return this.SP},onItemUpdate:function(Rm,Mu,rS){return},onLostUpdates:function(Rm,qu,rS,sH){return},onEndOfSnapshot:function(Rm,rS){return},onStart:function(){return},getClassName:function(){return null},cAj:function(OK,Xc,Pl){if(this.il==ls.NNs){this.cS.DG.bdG(OK.length-2);OK=this.euf(OK);if(OK==null){return true}return this.cS.cAj(OK,Xc,true)}if(!Pl){this.Tj.bdG(OK.length-2)}this.xF++;if(this.xF>=this.KG){this.xF=0;if(this.lZ){this.lZ()}}var nv=OK[1];var Zn=new String(nv);if(this.il.indexOf(ls.ZFs)>-1){Zn=this.RTO(OK,nv,Pl);if(Zn==null){return Zn}}if(this.il.indexOf(ls.nWs)>-1&&!Pl){this.EX(OK)}this.Al(Zn);if(this.onItemUpdate){ls.Mu.Wx(this,Zn,OK,Xc);var dL=this.sF.QPW(nv);try{this.onItemUpdate(nv,ls.Mu,dL)}catch(XW){this.sc.PqW(XW,this.onItemUpdate,"onItemUpdate")}}if(!this.wic()){return Zn}this.iX(Zn,OK);return Zn},Al:function(Zn){var TN=this.OI.Qh(Zn);for(var Pk in TN){var IG=Pk;var oS=false;var Yl=Pk.indexOf("|rem");if((Yl>-1)&&(Yl==Pk.length-4)){IG=Pk.substring(0,Pk.length-4);if(this.il.indexOf(ls.ZSN)>-1){this.rt.TA(this.OI.FS(Zn,Pk),Zn,IG)}else{this.rt.TA(null,Zn,IG)}}else{this.OI.ek(Zn,Pk);this.lS(null,Zn,Pk)}}},CTW:function(kw){if(kw==null){return""}else{if(kw.length===-1){return null}else{return kw}}},lS:function(iM,Zn,wm){var Ab=this.CTW(iM);if(Ab!=null){this.gg.push(wm)}this.rt.TA(Ab,Zn,wm)},iX:function(Zn,OK){this.gg=[];var Wf=OK.length-2;var wm=1;var XR=2;for(;wm<=Wf;wm++,XR++){if(OK[XR]==null){this.KE.TA(null,Zn,wm)}else{if(OK[XR]!==ls.xn){this.KE.TA(OK[XR],Zn,wm)}}this.lS(OK[XR],Zn,wm)}var PV={};var TN=this.OI.Qh(Zn);for(var wm in TN){var wm=wm;var Yl=wm.indexOf("|rem");if((Yl>-1)&&(Yl==wm.length-4)){wm=wm.substring(0,wm.length-4)}PV[wm]=true;this.FU(Zn,wm,TN)}var PO=this.rt.Qh(Zn);for(var wm in PO){if(wm<=Wf){continue}if(PV[wm]==true){continue}this.FU(Zn,wm,TN)}},FU:function(Zn,wm,TN){var nj;if(!TN){nj=null}else{nj=TN[wm];if(typeof nj=="undefined"){nj=TN[wm+"|rem"];if(typeof nj=="undefined"){nj=null}}}if(this.KE.FS(Zn,wm)==nj){this.lS(ls.xn,Zn,wm)}else{this.KE.TA(nj,Zn,wm);this.lS(nj,Zn,wm)}}}})(Lightstreamer);(function(ls){Lightstreamer.VisualTable=function(FK,eH,gT){this.eV(ls.VisualTable,FK,eH,gT);this.cX=this.Tj?false:true;this.rY=null;this.Xq=false;this.vt=true;this.SH=false;this.hl=false;this.nF=null;this.wg=null;this.il=null;this.Mq=true;this.GZ=false;this.sc.log("VisualTable",arguments)};Lightstreamer.VisualTable.prototype={SaY:function(wW,eY){if(!this.ao(ls.VisualTable,"SaY",wW,eY)){return false}if(!this.IOY()){return false}if(!this.hJA()){return false}this.SU();this.GZ=false;if(this.vt){this.Fb()}return true},SU:function(){},hJA:function(){},ZVI:function(){this.ao(ls.VisualTable,"ZVI");if(this.SH){this.Fb()}if(this.cX){this.Tj=null}else{this.Tj.sfB()}this.rY=null},kqO:function(){this.ao(ls.VisualTable,"kqO");this.GZ=true;if(this.hl){this.Fb()}},Fb:function(){if(this.Mq){}this.Mq=true;this.KE=new ls.Ms();this.OI=new ls.Ms();this.rt=new ls.Ms();this.HQ=new ls.Ms();return true},CQR:function(){this.ao(ls.VisualTable,"CQR");if(this.GZ&&this.vt){this.Fb()}this.Mq=false},setClearOnRemove:function(clear){if(clear){this.SH=true}else{this.SH=false}},KnS:function(){return this.SH},setClearOnDisconnected:function(clear){if(clear){this.hl=true}else{this.hl=false}},wlB:function(){return this.hl},setClearOnAdd:function(clear){if(clear){this.vt=true}else{this.vt=false}},rMd:function(){return this.vt},setPushedHtmlEnabled:function(Zi){if(this.wic()){this.sc.dSW(this.su,"setPushedHtmlEnabled")}this.Xq=this.wia(Zi,"setPushedHtmlEnabled",this.Xq)},isPushedHtmlEnabled:function(){return this.Xq},showValues:function(item,EB){if(!this.wic()){this.sc.dSW(this.sD,"showValues")}this.gg=[];this.Mq=false;var qQ=this.sF.ncf(item);var Zn=qQ;var kl=[];var jj={};for(var vn in EB){var Ke=this.Tj.DWD(vn);jj[Ke]=this.cBO(EB[vn]);this.gg.push(Ke);if(typeof(Ke)=="number"){Ke+=1}kl[Ke]=EB[vn]}var Eq="For Metapush and DynaMetapush tables, only UPDATE commands are admitted in showValues";if(this.il.indexOf(ls.ZFs)>-1){if(typeof kl[this.keyCode+1]=="undefined"){this.sc.dSW("Key position is not set correctly","showValues")}else{if(typeof kl[this.WL+1]=="undefined"){this.sc.dSW("Command position is not set correctly","showValues")}else{if(kl[this.WL+1]=="DELETE"){this.sc.dSW(Eq,"showValues")}}}Zn=qQ+"|"+kl[this.keyCode+1];if(this.il.indexOf(ls.Cdn)>-1){var GJ=this.rY.rv[Zn];if(!GJ){this.sc.dSW(Eq,"showValues")}}else{var HH=this.rY.mA[Zn];if(!HH){this.sc.dSW(Eq,"showValues")}}}this.rt.insertRow(jj,Zn);this.HQ.BQ(Zn);this.kC(Zn,kl,true)},cBO:function(kw){if(typeof kw=="undefined"){return null}if(kw==null){return""}else{return kw}},IOY:function(){var rx=ls.MD.Spr(this.wW,this.il);this.rY=rx;if(!rx.eTu(this)){return false}this.sc.log("IOY",2,this.Xq);return true},lZ:function(){var Jg=new String(this.Me);delete (this.Me);this.Me=Jg;var qB=null;qB=ls.Ms.So(this.KE,false);delete (this.KE);this.KE=qB;var ML=null;ML=ls.Ms.So(this.OI,false);delete (this.OI);this.OI=ML;var rD=null;rD=ls.Ms.So(this.rt,false);delete (this.rt);this.rt=rD;var fw=null;fw=ls.Ms.So(this.HQ,false);delete (this.HQ);this.HQ=fw;if(this.nF){var RF=null;RF=ls.Sk(this.nF,false);delete (this.nF);this.nF=RF}if(this.wg){var CQ=null;CQ=ls.Sk(this.wg,false);delete (this.wg);this.wg=CQ}if(this.jY){var vs=null;vs=ls.Dw(this.jY,false);delete (this.jY);this.jY=vs}},cAj:function(OK,Xc,Pl){var Zn=this.ao(ls.VisualTable,"cAj",OK,Xc,Pl);this.kC(Zn,OK,false);return Zn},UQ:function(Vg){var Iu=[];if(this.Ns=="COMMAND"){if(!Vg.command){Iu.push("command")}if(!Vg.key){Iu.push("key")}}for(var QP in Vg){if(QP.indexOf("#")==0){}else{if(QP.indexOf("$")==0&&this.il.indexOf(ls.nWs)>-1){}else{Iu.push(QP)}}}this.Tj=new ls.SchemaListDescriptor(Iu)},Ds:function(Vg){var Jp=[];for(var QP in Vg){if(QP.indexOf("$")==0){Jp.push(QP.substr(1))}}this.DG=new ls.SchemaListDescriptor(Jp)},lH:function(){var Vg=this.CDf();if(this.cX){this.UQ(Vg)}if(this.AV){this.Ds(Vg)}if(this.DG){this.Tj.Zfa(this.DG)}this.wg={};for(var QP in Vg){var XA=this.Tj.DWD(QP);this.wg[XA]=QP}},Qf:function(Zn,ov,mR,hI,kX){var It=this.wW;var rO=kX.sf;var lW=rO+kX.kb;var IF=lW+kX.Uc;var eb=[];var XZ=ls.MD;var lM=ls.fJ;var UD=ls.Xa;var lg=this.rY;var Rp=lg.mF.Qh(ov);var bS=lg.DF.Qh(ov);if(Rp!=null){lg.kQ.insertRow(Rp,ov);lg.mF.BQ(ov);lg.JE.insertRow(bS,ov);lg.DF.BQ(ov)}else{Rp=lg.kQ.Qh(ov);bS=lg.JE.Qh(ov)}var HC=false;var as;var Or;var Pa;var Sb;if(Rp!=null){if(Rp.backgroundColor){HC=true;as=Rp.backgroundColor;Or=bS.backgroundColor}if(Rp.color){HC=true;Pa=Rp.color;Sb=bS.color}}var pg=this.rt.Qh(Zn);for(var Zk in pg){var CL=pg[Zk];var mu=this.HQ.FS(Zn,Zk);if(CL==null&&mu){this.rt.TA(mu,Zn,Zk)}else{this.rt.TA(CL,Zn,Zk);this.HQ.TA(CL,Zn,Zk)}if(this.rt.FS(Zn,Zk)==null){if(!hI){continue}}var hr=this.wg[Zk];if(hr==null){continue}var gH=lg.xlW(ov,hr);if(gH==null){var dV=document.createElement("div");gH=new ls.pv(dV);lg.insertCell(gH,ov,hr)}if(this.il==ls.Gpp){gH.On=CL}gH.VT=gH.LW;gH.Qi=gH.rR;gH.LW=null;gH.rR=null;gH.xF++;if(gH.VT||(lg.kQ.Qh(ov)!=null)){var eQ=false;var vi=false;var XL=false;var Cu=as;var vO=Or;var Wu=Pa;var gq=Sb;if(gH.VT){if(gH.VT.backgroundColor){eQ=true;Cu=gH.VT.backgroundColor;vO=gH.Qi.backgroundColor}if(gH.VT.color){eQ=true;Wu=gH.VT.color;gq=gH.Qi.color}}if(eQ||HC){if(kX.sf>0){var HP=lM.wOx(XZ.ode,XZ,[It,Zn,ov,mR,Zk,hI,this.eY]);var XG=UD.cOx(gH,false,Cu,Wu,kX.sf,HP);UD.MfK(XG);vi=true}else{UD.cmE(gH)}if(kX.Uc>0){var hr=this.wg[Zk];var uL=lM.wOx(XZ.pSS,XZ,[It,ov,mR,hr,false,gH.xF]);var XG=UD.cOx(gH,true,vO,gq,kX.Uc,uL);lM.EHb(UD.MfK,lW,UD,[XG]);XL=true}}if(!vi){var fR=[It,Zn,ov,mR,Zk,hI,this.eY];if(rO>0){lM.EHb(XZ.ode,rO,XZ,fR)}else{var dc=lM.wOx(XZ.ode,XZ,fR);eb.push(dc)}}if(!XL){lM.EHb(XZ.pSS,IF,XZ,[It,ov,mR,hr,false,gH.xF])}}else{var fR=[It,Zn,ov,mR,Zk,hI,this.eY];if(rO>0){lM.EHb(XZ.ode,rO,XZ,fR)}else{var dc=lM.wOx(XZ.ode,XZ,fR);eb.push(dc)}}}for(var HN=0;HN<eb.length;HN++){lM.PT(eb[HN])}}};ls.tD(ls.VisualTable,ls.Table)})(Lightstreamer);(function(ls){ls.TI=function(){};ls.TI.XO=function(HL,kU){return HL-kU};ls.TI.prototype={Js:function(){if(this.il.indexOf(ls.ZFs)>-1){if(this.cX){this.WL=null;this.keyCode=null}if(this.WL==null){this.WL=this.Tj.qcL("command")}if(this.keyCode==null){this.keyCode=this.Tj.qcL("key")}if(this.keyCode==null){this.sc.error("Key position is not set correctly for a COMMAND mode subscription. Please specify a field that represents the Key","addTable")}else{if(this.WL==null){this.sc.error("Command position is not set correctly for a COMMAND mode subscription. Please specify a field that represents the Command","addTable")}}}},JM:function(Ig,SR){this.sc.log("JM",arguments);if(this.wic()){this.sc.dSW(this.su,"setMetapushFields")}this.WL=this.JnG(Ig,"setMetapushFields",this.WL,true,1);this.keyCode=this.JnG(SR,"setMetapushFields",this.keyCode,true,1)},RTO:function(OK,nv,Pl){var Zn;if((typeof OK[this.keyCode+1]=="undefined")||(typeof OK[this.WL+1]=="undefined")){this.sc.GSR("Command or Key position is not set correctly","Server Update");return null}if(OK[this.keyCode+1].length==-1){Zn=nv+"|"+this.KE.FS(nv,this.keyCode)}else{Zn=nv+"|"+OK[this.keyCode+1]}if(!Pl){OK.Cn=[];for(var gb=2;gb<OK.length;gb++){if(OK[gb]&&OK[gb].length==-1){OK[gb]=this.KE.FS(nv,(gb-1))}else{this.KE.TA(OK[gb],nv,(gb-1))}if(OK[gb]==this.KE.FS(Zn,(gb-1))){OK[gb]=ls.xn}else{OK.Cn.push(gb-1)}}if(this.il.indexOf(ls.nWs)>-1){var Vo=this.Tj.length+this.Tj.Cc.length+2;if(Vo>OK.length){for(var gb=OK.length;gb<Vo;gb++){OK[gb]=ls.xn}}}}else{OK[this.keyCode+1]=ls.xn;if(OK[this.WL+1]==this.KE.FS(Zn,this.WL)){OK[this.WL+1]=ls.xn}else{OK.Cn.push(this.WL);OK.Cn.sort(ls.TI.XO)}}return Zn}}})(Lightstreamer);(function(ls){ls.nm=function(){};ls.nm.prototype={SU:function(){this.sc.log("SU");this.lH();this.Js()},nA:function(aS,sJ,SW,KF){this.sc.log("nA",arguments);if(!aS){this.rZ=null;return}this.rZ=this.Tj.DWD(aS);if(sJ){this.sJ=true}else{this.sJ=false}if(SW){this.SW=true}else{this.SW=false}if(KF){this.KF=true}else{this.KF=false}if(this.wic()&&this.il.indexOf(ls.Cdn)>-1){this.YD()}},DAc:function(){if(!this.rZ||typeof(this.rZ)=="string"){return null}else{return this.rZ}},qVw:function(){if(this.rZ==null){return null}else{return this.Tj.cCY(this.rZ)}},hHQ:function(){if(this.rZ==null){return null}else{return this.sJ}},BGh:function(){if(this.rZ==null){return null}else{return this.SW}},CRJ:function(){if(this.rZ==null||!this.SW){return null}else{return this.KF}},kkf:function(){return this.WL},PZp:function(){return this.keyCode},Pcx:function(kw){if(this.SW){return ls.UQU(kw,this.KF)}else{return kw}},fTc:function(dw,aL){if(dw==null||aL==null){if(dw!=aL){if(dw==null){return !this.sJ}else{return this.sJ}}}if(this.sJ){return dw>aL}else{return dw<aL}}};ls.tD(ls.nm,ls.TI,"O")})(Lightstreamer);(function(ls){ls.hZ=function(){};ls.hZ.prototype={ZC:function(Sl){var aw=this.il.indexOf(ls.dqv)>-1;if(Sl!=null){this.DG=ls.SchemaDescriptor.lk(Sl)}else{if(!aw){this.AV=true}else{this.sc.dSW("You must specify the under schema for NonVisualTable objects","NonVisualTable")}}var Br=aw?"NonVisualTable":"MultiDynaMetapushTable";if(!(((this.cX||this.Tj.getList)&&(this.AV||(this.DG&&this.DG.getList)))||(this.Tj.getId&&(this.DG&&this.DG.getId)))){this.sc.dSW("Schema and UnderSchema should be of the same type","MultiDynaMetapushTable")}},wr:function(){for(var gb in this.iF){for(var hM in this.iF[gb]){this.mI(gb,hM)}}},EX:function(OK){var nv=OK[1];var kN=(OK[this.keyCode+1].length==-1)?this.KE.FS(nv,this.keyCode):OK[this.keyCode+1];var ta=OK[this.WL+1];if(this.iF[nv]&&this.iF[nv][kN]&&ta=="DELETE"){this.mI(nv,kN)}else{if((!this.iF[nv]||!this.iF[nv][kN])&&ta!="DELETE"){var tk=new ls.NonVisualTable(kN,this.DG,"MERGE");tk.setDataAdapter(this.vg);tk.setSnapshotRequired(true);tk.cQ=this.lm;tk.PC=nv;tk.il=ls.NNs;tk.cS=this;if(!this.iF[nv]){this.iF[nv]={}}this.iF[nv][kN]=tk;ls.ol.vZt(tk,this.getId()+"$"+nv+"|"+kN)}}},mI:function(nv,Zn){if(this.Yp==ls.Wwp){this.iF[nv][Zn].kqO()}ls.ol.YcC(this.iF[nv][Zn].getId());delete (this.iF[nv][Zn])}}})(Lightstreamer);(function(ls){ls.IH=function(){};ls.IH.prototype={hJA:function(){this.sc.log("hJA",1,this);var wW=this.wW;ls.MD.VEW(wW);var fa;var UB=ls.MD.Fh[wW];if(UB){if(UB.TB){fa=UB.iC;UB.iC=[]}else{fa=ls.pv.rF(UB.eS,UB.an)}}else{fa=ls.pv.rF(document,ls.ScreenTableHelper.ui)}var tk=ls.MD.Spr(wW);var hM=0;for(hM=0;hM<fa.length;hM++){var It=fa[hM].rf.getAttribute("table");if(!It||It!=wW){continue}var IB;if(this.il==ls.dCL){var nn=fa[hM].rf.getAttribute("lsitem");if((nn==null)||(nn=="")){nn=fa[hM].rf.getAttribute("item");if((nn==null)||(nn=="")){continue}}IB=nn}else{var kq=fa[hM].rf.getAttribute("row");if((kq==null)||(kq=="")){kq=fa[hM].rf.getAttribute("position")}if((kq==null)||(kq=="")){continue}IB=Number(kq);if(isNaN(IB)){continue}}var QP=fa[hM].rf.getAttribute("field");if((QP==null)||(QP=="")){continue}var dt=tk.xlW(IB,QP);if(dt&&dt.rf==fa[hM].rf){continue}var fC=fa[hM].Aj();var io=fa[hM].rf.className;tk.Gu.TA(io,IB,QP);tk.OQ.TA(fC,IB,QP);tk.qYB(fa[hM],IB,QP,this.il)}if(tk.Lo<=0){this.sc.error("No cells defined for table "+wW,"addTable");return false}return true},CDf:function(){var xE=this.rY.rKF();var Vg={};for(var nn in xE){for(var QP in xE[nn]){Vg[QP]=1}}return Vg}}})(Lightstreamer);(function(ls){ls.rQ=function(){};ls.rQ.prototype={Sn:function(){var xE=this.rY.rKF();for(var SK in xE){if(this.onRowUpdate){try{this.onRowUpdate(SK,null)}catch(XW){this.sc.PqW(XW,this.onRowUpdate,"onRowUpdate")}}for(var wm in xE[SK]){this.rY.TbO(SK,wm)}this.rY.BC(SK,false)}},Aa:function(tL,kV,hN,CX){if(tL==kV){return}var Lh;var EN;var Hk;if(!hN){Lh=kV;EN=tL;Hk=-1}else{Lh=tL;EN=kV;Hk=1}for(var Zn in this.rY.mA){if(this.rY.mA[Zn]<tL||this.rY.mA[Zn]>kV){continue}var qA=-1;if(CX&&this.rY.mA[Zn]==Lh){qA=EN}else{qA=this.rY.mA[Zn]-Hk}if(qA<tL||qA>kV){continue}this.rY.nt[qA]=Zn;this.rY.mA[Zn]=qA;if(this.il==ls.ZSN){if(qA>this.DA||qA<=0){delete this.rY.nt[qA];delete this.rY.mA[Zn]}}}this.rY.vHa(Lh,EN,Hk,CX)}}})(Lightstreamer);(function(ls){ls.pw=function(){};ls.pw.prototype={SU:function(){this.sc.log("SU");this.lH()},Hi:function(Zf){this.sc.log("Hi",arguments);if(this.wic()){this.sc.dSW(this.su,"setUpwardScroll")}if(Zf){this.je=true}else{this.je=false}},lS:function(iM,Zn,wm){this.gg.push(wm);if(iM===ls.xn){iM=this.KE.FS(Zn,wm)}this.rt.TA(iM,Zn,wm)}}})(Lightstreamer);(function(ls){ls.Ao=function(){};ls.Ao.prototype={hJA:function(){this.sc.log("hJA",1,this);var wW=this.wW;this.Bn();var Cx=ls.MD.Spr(wW);var ZS;var BD=Cx.DL;if(BD){if(ls.pv.Ld(BD)){return true}else{Cx.DL=null;Cx.Vf=null;Cx.MR=null;Cx.Xo=null;Cx.Dq=null;Cx.dE=null;Cx.GF=null}}BD=document.getElementById(wW);if(!this.MvQ(BD)){return false}var nQ=BD.cloneNode(true);nQ.removeAttribute("id");ZS=BD.parentNode;Cx.DL=BD;Cx.qH=ZS;Cx.Vf=nQ;BD.style.display="none";var wZ=ZS.childNodes;var gb=0;var kY=0;for(gb=0;gb<wZ.length;gb++){if(wZ[gb]==BD){if(wZ[gb+1]){Cx.MR=wZ[gb+1];Cx.Xo=wZ[gb+1]}else{Cx.MR=null;Cx.Xo=null}kY=gb+1;break}}if(this.il==ls.Gpp){Cx.Dq=ZS}else{Cx.Dq=new ls.tF(Cx.qH,Cx.Xo,kY);Cx.dE=new ls.ED();Cx.GF=new ls.ED()}return true},MvQ:function(Vf){if(!Vf){this.sc.error("No template defined for table "+this.wW,"addTable");return false}var mx=Vf.getAttribute(ls.ei);if(!mx||mx.toUpperCase()!=ls.di){this.sc.error("The template defined for table "+this.wW+" does not define the 'source' attribute.","addTable");return false}var hG=[];var po=false;var fa=ls.pv.rF(Vf);for(var Ye=0;Ye<fa.length;Ye++){if(!fa[Ye].rf.getAttribute("FIELD")){if(!po){this.sc.error("Warning, there are elements in the template for table "+this.wW+" that do not define the 'field' attribute","addTable");po=true}}else{hG.push(fa[Ye])}}if(hG.length<=0){this.sc.error("No valid cells defined for table "+this.wW,"addTable");return false}return true},CDf:function(){var Vf=this.rY.Vf;var fa=ls.pv.rF(Vf);var Vg={};var hM=0;for(hM=0;hM<fa.length;hM++){var QP=fa[hM].rf.getAttribute("FIELD");if(QP){Vg[QP]=1}}return Vg},fO:function(fg,XU){this.sc.log("fO",arguments);if(!fg){this.sc.dSW("No type selected, please select one: OFF, ELEMENT, PAGE","setAutoScroll");return}fg=new String(fg);fg=fg.toUpperCase();if(fg=="ELEMENT"){if(!XU){this.sc.dSW("Please specify an element id in order to use ELEMENT autoscroll","setAutoScroll");return}else{this.Nc=XU}}else{if(fg!="PAGE"&&fg!="OFF"){this.sc.dSW(fg+" is not a valid scroll type. Admitted values are OFF, ELEMENT, PAGE","setAutoScroll");return}}this.iE=fg;if(this.wic()){this.Bn()}},Bn:function(){if(this.iE=="ELEMENT"){if(this.Nc&&this.Nc.appendChild){}else{var Ue=document.getElementById(this.Nc);if(!Ue){this.sc.error("Cannot find the element with "+this.Nc+" as id.","setAutoScroll");this.iE="OFF"}else{this.Nc=Ue}}}},hT:function(JJ){this.sc.log("hT",arguments);JJ=new String(JJ);JJ=JJ.toLowerCase();if(JJ=="unlimited"){this.JJ=0}else{this.JJ=this.JnG(JJ,"hT",this.JJ,true,1)}},DZb:function(){if(this.JJ==0){return"unlimited"}return this.JJ},pI:function(rf){if(this.iE=="OFF"){return}var At=null;if(this.iE=="ELEMENT"){At=this.Nc}var ZU=rf.offsetTop;rf=rf.offsetParent;while((rf!=At)&&(rf!=null)){ZU+=rf.offsetTop;rf=rf.offsetParent}this.sc.log("pI",this.iE,ZU);if(this.iE=="PAGE"){window.scrollTo(0,ZU)}else{this.Nc.scrollTop=ZU}}}})(Lightstreamer);(function(ls){ls.Zs=function(){};ls.Zs.prototype={Cs:function(mx){if(mx==null){return null}else{return mx.toString()}},TPB:function(Lf){ls.Db.TPB(parseInt(Lf.win),parseInt(Lf.AW),this.Cs(Lf.status),Lf.connection,Lf.context,Lf.policy,Lf.iJ,parseInt(Lf.ZR),Lf.Ng===true,this.Cs(Lf.rJ),this.Cs(Lf.MO))},WPQ:function(Lf){ls.Vp.IR[Lf.pH].kdx(this.Cs(Lf.Xf),Lf.Fu)},Dnp:function(Lf){ls.Db.Dnp(this.Cs(Lf.status))},Ofr:function(Lf){ls.Db.RSG(ls.UG(Lf.gi),this.Cs(Lf.rJ),this.Cs(Lf.MO))},etw:function(Lf){ls.Db.Eco(ls.UG(Lf.gi))},SZr:function(Lf){ls.Db.oQ(Lf.Ge===true)},ij:function(){if(ls.nR.QIE()){ls.fJ.EHb(ls.nR.QIE,1000,ls.nR)}},Uho:function(Lf){ls.ol.mxW(this.Cs(Lf.SX),parseInt(Lf.YN),parseInt(Lf.eY),parseInt(Lf.xJ))},OSX:function(Lf){var OK=Lf.OK;var TW=[];TW.Cn=[];TW[0]=parseInt(OK[0]);TW[1]=parseInt(OK[1]);for(var gb=2,vS=OK.length;gb<vS;gb++){if(!OK[gb]){if(OK[gb]===""){TW[gb]=""}else{TW[gb]=null}TW.Cn.push(gb-1)}else{if(OK[gb].length==-1){TW[gb]=ls.xn}else{TW[gb]=OK[gb].toString();TW.Cn.push(gb-1)}}}ls.MD.snX(TW,Lf.Xc?true:false)},uKD:function(Lf){var TW=[];TW[0]=parseInt(Lf[0]);TW[1]=parseInt(Lf[1]);TW[2]=parseInt(Lf[2]);ls.MD.onLostUpdates(TW)},hZc:function(Lf){var TW=[];TW[0]=parseInt(Lf[0]);TW[1]=parseInt(Lf[1]);ls.MD.onEndOfSnapshot(TW)},HBE:function(Lf){ls.MD.cPw(parseInt(Lf.jP),this.Cs(Lf.gs),parseInt(Lf.YN))},Oc:function(Lf){ls.Db.ig("onServerError",parseInt(Lf.jP),this.Cs(Lf.gs))},HAc:function(Lf){ls.MD.nLb(parseInt(Lf.jP),parseInt(Lf.YN))},phZ:function(Lf){ls.Db.ig("onClientAlert",parseInt(Lf.Ke),this.Cs(Lf.EY))},PVf:function(Lf){ls.Db.ig("onClientError",Lf)},flt:function(Lf){ls.MD.nLb(9,this.Cs(Lf))},tZD:function(Lf){ls.MD.ve(parseInt(Lf.mR),parseInt(Lf.Ke),this.Cs(Lf.gs))}}})(Lightstreamer);(function(ls){ls.kS=function(){this.sc=ls.KN.getLogger("EH");this.Bv=2000;this.Wx()};ls.kS.prototype={Wx:function(Tn){this.vk=false;this.ZR=null;this.rL=false;this.RI=false;this.kr=false;this.Ng=false;this.NM=null;this.AW=null;this.NQ=Tn?this.NQ+1:ls.MY()+1;this.YI=null;this.Di=false;this.ct=false;this.sc.log("Wx",this)},toString:function(){return["[","kS",this.NM,this.rL,this.vk,this.ZR,this.RI,this.kr,this.Ng,this.ct,this.AW,this.NQ,this.Di,"]"].join("|")},RmT:function(OL,Un){if(Un){return OL==this.NQ&&Un==this.AW}else{return OL==this.NQ}},nXj:function(){var IT=false;try{IT=this.YI.iO.RmT(this.NM)}catch(XW){this.sc.MG(XW,"nXj");IT=false}if(!IT){this.oQ()}return IT},BR:function(GG,Lf){return this.MF(GG,Lf,false,false)},ZOa:function(GG,Lf){return this.MF(GG,Lf,true,false)},rtZ:function(GG,Lf){return this.MF(GG,Lf,false,true)},Jet:function(GG,Lf){return this.MF(GG,Lf,true,true)},MF:function(GG,Lf,iT,NK){if(!this.vk){return false}this.sc.log("MF",GG,iT);try{if(NK){var OA=this.YI.iO.ZWE(this.NM);OA.CI.HeS(GG,this.NM,Lf,iT?this.AW:null)}else{this.YI.Qs.HeS(GG,this.NM,Lf,iT?this.AW:null)}}catch(XW){this.vF(XW);return false}return true},gcw:function(HA,Sw){if(this.vk||this.rL){this.sc.dGc(false,"gcw",1)}this.rL=true;this.NQ++;this.RI=Sw===true;try{this.YI=HA;var Wo=null;if(this.RI){var Fr=ls.WRM(ls.Vp.Fr);if(ls.mK.xq){var Hc=ls.Vp.IR;Hc.iJ.Fr=Fr;Wo={iJ:new ls.Dj(Hc.iJ),policy:new ls.Policy(Hc.policy),connection:new ls.Connection(Hc.connection),context:new ls.Context(Hc.context)};this.sc.log("gcw",1)}else{Wo={Fr:Fr};this.sc.log("gcw",2)}}else{this.sc.log("gcw",3)}var cW=null;HA.Qs.HeS("HDj",-1,{win:window,ac:this.NQ,cW:Wo})}catch(XW){this.Wx(true);ls.Vp.Re();return}var ac=ls.Vp.wR;ls.fJ.EHb(this.tvi,this.Bv,this,[ac]);this.Bv+=500},tvi:function(ac){var md=ls.Vp;if(ac==md.wR){this.Wx(true);this.sc.log("tvi");md.oH(ac)}},TPB:function(tj,Yg,WD,connection,context,policy,iJ,ZR,lq,rJ,MO){this.vk=true;this.NM=tj;this.AW=Yg;this.ZR=ZR;if(ls.mK.xq){this.kr=true}this.Bv=2000;ls.Vp.wR++;this.Ng=lq;this.sc.log("TPB",this);var Vp=ls.Vp;ls.mK.kr();ls.nR.xHe();var IR=new ls.iI(this.YI.WN,connection,context,policy,iJ);Vp.IR=IR;Vp.IR.ZIn(WD);if(this.Ng){Vp.IR.TVa(rJ,MO)}if(this.RI&&!this.kr){try{Vp.onEngineCreation(IR)}catch(XW){this.sc.PqW(XW,Vp.onEngineCreation,"onEngineCreation")}}try{Vp.onEngineReady(IR)}catch(XW){this.sc.PqW(XW,Vp.onEngineReady,"onEngineReady")}ls.KN.Hed();this.Bw(WD);if(this.Ng){this.pT()}},pT:function(){this.sc.log("pT");ls.ol.uuN()},Ax:function(){this.sc.log("Ax");ls.ol.YUX();ls.MD.Eoq()},RSG:function(gi,rJ,MO){this.sc.dGc(!this.Ng,"RSG");this.AW=gi;this.Ng=true;ls.Vp.IR.TVa(rJ,MO);this.pT()},Eco:function(gi){this.AW=gi;if(this.Ng){this.Ng=false;this.Ax()}},Dnp:function(WD){ls.Vp.IR.ZIn(WD);this.ig("onStatusChange",WD);this.Bw(WD)},Bw:function(WD){if(ls.FlashBridge){for(var gb in ls.FlashBridge.bridges){var TF=ls.FlashBridge.bridges[gb];if(TF&&TF.oJ){TF.oJ(WD)}}}},ig:function(UV,xv,Bb){var IR=ls.Vp.IR;if(IR[UV]){try{IR[UV](xv,Bb)}catch(XW){this.sc.PqW(XW,IR[UV],UV)}}},oQ:function(Ge){this.sc.log("oQ",Ge,this);if(!this.vk){return}var fp=this.RI&&!Ge;ls.nR.KiL();ls.nR.tW=null;this.Wx(true);this.ct=fp;ls.Vp.SFJ(Ge);this.Ax();var Vp=ls.Vp;try{Vp.onEngineLost()}catch(XW){this.sc.PqW(XW,Vp.onEngineLost,"onEngineLost")}this.Bw("WAITING");ls.mK.Fca(fp)},vF:function(XW){if(!this.Di){this.sc.MG(XW,"vF")}this.Di=true;ls.fJ.EHb(ls.nR.QIE,0,ls.nR)},sRP:function(){if(this.vk&&this.NM){this.BR("wJA",this.NM)}}}})(Lightstreamer);(function(ls){Lightstreamer.NonVisualTable=function(FK,eH,gT){this.eV(ls.NonVisualTable,FK,eH,gT);this.QC();this.gk();this.il=ls.dqv;this.WL=null;this.keyCode=null;this.vg=null;this.iF={};this.DG=null;this.sc.log(this.getClassName(),arguments)};Lightstreamer.NonVisualTable.prototype={toString:function(){return["[",this.getClassName(),this.Yp,this.wW,this.eY,this.kR,this.xJ,"]"].join("|")},getClassName:function(){return"NonVisualTable"},SaY:function(wW,eY){if(!this.ao(ls.NonVisualTable,"SaY",wW,eY)){return false}if(this.il==ls.ebL||this.il==ls.TnW){this.Js();if(this.DG){this.Tj.Zfa(this.DG)}}return true},ZVI:function(){this.ao(ls.NonVisualTable,"ZVI");this.Tj.sfB()},tUj:function(){this.ao(ls.NonVisualTable,"tUj");this.KE=new ls.Ms();this.OI=new ls.Ms();this.rt=new ls.Ms();this.HQ=new ls.Ms()},TK:function(){this.ao(ls.NonVisualTable,"TK");if(this.il==ls.TnW){this.wr()}},setCommandLogic:function(jP,Ig,SR,DG,vg){if(jP=="MULTI"){if(!DG){this.sc.dSW("The schema for the underlying tables cannot be null","setCommandLogic");return}this.il=ls.TnW;if(Ig){this.JM(Ig,SR)}this.ZC(DG);this.vg=vg}else{if(jP){this.il=ls.ebL;if(Ig){this.JM(Ig,SR)}}else{this.il=ls.dqv}}},getUnderlyingSchema:function(){return this.DG},euf:function(OK){var cS=this.cS;if(!cS.iF[this.PC]||!cS.iF[this.PC][this.sF.vb]){return null}var nv=this.PC;var hn={};hn[0]=cS.kR;hn[1]=nv;hn.length=2;hn.Cn=[];var aK=cS.Tj.length+this.Tj.length+2;var y=2;var gb;for(;hn.length<aK;hn.length++){gb=hn.length;if(gb==(cS.keyCode+1)){hn[gb]=this.sF.vb}else{if(gb==(cS.WL+1)){hn[gb]="UPDATE"}else{if(gb<=(cS.Tj.length+1)){hn[gb]=ls.xn}else{if(OK[y].length>-1){hn[gb]=OK[y];hn.Cn.push(gb-1);y++}else{hn[gb]=OK[y];y++}}}}}return hn}};ls.tD(ls.NonVisualTable,ls.Table);ls.tD(ls.NonVisualTable,ls.TI,"O");ls.tD(ls.NonVisualTable,ls.hZ,"O")})(Lightstreamer);(function(ls){Lightstreamer.OverwriteTable=function(FK,eH,gT){this.eV(ls.OverwriteTable,FK,eH,gT);this.AZ=this.sF?false:true;this.il=ls.dCL;this.sc.log(this.getClassName(),arguments)};Lightstreamer.OverwriteTable.prototype={toString:function(){return["[",this.getClassName(),this.Yp,this.wW,this.eY,this.kR,this.xJ,"]"].join("|")},getClassName:function(){return"OverwriteTable"},ZVI:function(){this.ao(ls.OverwriteTable,"ZVI");this.sc.log("ZVI");if(this.AZ){this.sF=null}this.nF=null;this.wg=null},SU:function(){this.sc.log("SU");this.OM();this.lH()},Fb:function(){this.ao(ls.OverwriteTable,"Fb");var Cx=this.rY;var xE=Cx.rKF();for(var SK in xE){var qQ=this.sF.ncf(SK);if(this.onChangingValues){try{this.onChangingValues(qQ,null,SK)}catch(XW){this.sc.PqW(XW,this.onChangingValues,"onChangingValues")}}for(var wm in xE[SK]){Cx.TbO(SK,wm)}}},OM:function(){var xE=this.rY.rKF();if(this.AZ){var hW=[];for(var nn in xE){hW[hW.length]=nn}this.sF=new ls.GroupListDescriptor(hW)}this.nF={};for(var nn in xE){var Rm=this.sF.ncf(nn);this.nF[Rm]=nn}},onChangingValues:function(Rm,Mu,rS){return},kC:function(nv,OK,xa){var Zn=nv;var nn=this.nF[nv];if(nn==null){return}var kX=ls.kk;kX.Wx(this,Zn,OK,xa);kX.SK=nn;if(this.onChangingValues){var dL=this.sF.QPW(nv);try{this.onChangingValues(nv,kX,dL)}catch(XW){this.sc.PqW(XW,this.onChangingValues,"onChangingValues")}}if(!this.wic()){return true}this.Qf(Zn,nn,Zn,false,kX)}};ls.tD(ls.OverwriteTable,ls.VisualTable);ls.tD(ls.OverwriteTable,ls.IH,"O")})(Lightstreamer);(function(ls){Lightstreamer.ScrollTable=function(FK,eH,gT){this.eV(ls.ScrollTable,FK,eH,gT);this.gk();this.DA=0;this.Oi=1;this.YG=1;this.je=false;this.fo=-1;this.il=ls.ZSN;this.sc.log(this.getClassName(),arguments)};Lightstreamer.ScrollTable.prototype={toString:function(){return["[",this.getClassName(),this.Yp,this.wW,this.eY,this.kR,this.xJ,"]"].join("|")},getClassName:function(){return"ScrollTable"},tUj:function(){this.ao(ls.ScrollTable,"tUj");this.Oi=1;this.YG=1;if(this.rY.DA>this.fo&&this.fo>-1){this.DA=this.fo}else{this.DA=this.rY.DA}},ZVI:function(){this.ao(ls.ScrollTable,"ZVI");this.wg=null},Fb:function(){this.ao(ls.ScrollTable,"Fb");this.Sn()},onChangingValues:function(Mu){return},onRowUpdate:function(YR,Lq){return},setUpwardScroll:function(Zf){this.Hi(Zf)},Zf:function(){return this.je},setLastVisibleRow:function(YR){this.fo=this.JnG(YR,"setLastVisibleRow",this.fo,true,-1)},tFi:function(){return this.fo},kC:function(nv,OK,xa){var tL=null;var kV=null;var Xm=null;var Vt=null;var vu;var rp;if(!this.je){vu=1;rp=this.YG;if(this.YG<this.DA){this.YG++}tL=vu;kV=this.DA}else{vu=this.DA;rp=1;tL=rp;kV=vu}var Zn=this.Oi;this.Oi++;this.Aa(tL,kV,this.je,false);var kX=ls.kk;kX.Wx(this,nv,OK,xa);kX.SK=vu;kX.mR=Zn;if(this.onChangingValues){try{this.onChangingValues(kX)}catch(XW){this.sc.PqW(XW,this.onChangingValues,"onChangingValues")}}if(!this.wic()){return true}this.rY.vuT(nv,vu,true);this.rY.mA[Zn]=vu;this.rY.nt[vu]=Zn;this.Qf(nv,vu,Zn,true,kX);var fd=ls.Lq;fd.Wx(this,Zn,vu);if(this.onRowUpdate){try{this.onRowUpdate(vu,fd)}catch(XW){this.sc.PqW(XW,this.onRowUpdate,"onRowUpdate")}}if(!this.wic()){return true}}};ls.tD(ls.ScrollTable,ls.VisualTable);ls.tD(ls.ScrollTable,ls.IH,"O");ls.tD(ls.ScrollTable,ls.rQ,"O");ls.tD(ls.ScrollTable,ls.pw,"O")})(Lightstreamer);(function(ls){Lightstreamer.DynaScrollTable=function(FK,eH,gT){this.eV(ls.DynaScrollTable,FK,eH,gT);this.gk();this.JJ=0;this.Ob=0;this.je=false;this.Nc=null;this.iE="OFF";this.hb=false;this.il=ls.Gpp;this.sc.log(this.getClassName(),arguments)};Lightstreamer.DynaScrollTable.prototype={toString:function(){return["[",this.getClassName(),this.Yp,this.wW,this.eY,this.kR,this.xJ,"]"].join("|")},getClassName:function(){return"DynaScrollTable"},tUj:function(){this.ao(ls.ScrollTable,"tUj");this.Ob=0;this.hb=false},ZVI:function(){this.ao(ls.DynaScrollTable,"ZVI");this.sc.log("ZVI");this.wg=null},Fb:function(){this.ao(ls.DynaScrollTable,"Fb");var Cx=this.rY;while(Cx.rW()>0){}Cx.HX=0;Cx.qs=1;Cx.Nk=[];Cx.Xo=this.rY.MR},setUpwardScroll:function(Zf){this.Hi(Zf)},Zf:function(){return this.je},onChangingValues:function(TO,Mu){return},setAutoScroll:function(type,XU){this.fO(type,XU)},setMaxDynaRows:function(JJ){this.hT(JJ);if(this.wic()&&this.JJ>0){this.rY.PbA(this.JJ)}},getMaxDynaRows:function(){return this.DZb()},kC:function(nv,OK,xa){var fm=this.rY;fm.HX++;var Nl=fm.HX;var Zn=nv;var kX=ls.kk;kX.Wx(this,Zn,OK,xa);kX.SK=Nl;var kW=fm.Dq;var Ss=fm.Vf.cloneNode(true);fm.Nk.push(Ss);var rK=this.JXU();fa=ls.pv.rF(Ss);var hM=0;for(hM=0;hM<fa.length;hM++){var Oo=fa[hM];var sb=Oo.rf.getAttribute("FIELD");if(!sb){continue}fm.qYB(Oo,Nl,sb,fm.il)}if(this.onChangingValues){try{this.onChangingValues(Ss,kX)}catch(XW){this.sc.PqW(XW,this.onChangingValues,"onChangingValues")}}if(!this.wic()){return true}if(fm.Xo==null||fm.Xo.parentNode==null){kW.appendChild(Ss)}else{kW.insertBefore(Ss,fm.Xo)}this.Qf(Zn,Nl,Zn,false,kX);if(rK){this.pI(Ss)}if(!this.je){fm.Xo=Ss}var Vt=null;this.rY.PbA(this.JJ)},JXU:function(){if(this.iE=="OFF"){return false}if(ls.aI()){return true}var vD=null;if(this.iE=="ELEMENT"){vD=this.Nc}else{vD=document.body}if(vD.scrollTop<this.Ob){this.hb=true}this.Ob=vD.scrollTop;if(!this.hb){return true}if((vD.clientHeight+vD.scrollTop)!=vD.scrollHeight){return false}else{return true}}};ls.tD(ls.DynaScrollTable,ls.VisualTable);ls.tD(ls.DynaScrollTable,ls.pw,"O");ls.tD(ls.DynaScrollTable,ls.Ao,"O")})(Lightstreamer);(function(ls){Lightstreamer.MetapushTable=function(FK,eH,gT){this.eV(ls.MetapushTable,FK,eH,gT);this.gk();this.DA=0;this.Lx=0;this.WL=null;this.keyCode=null;this.rZ=null;this.sJ=false;this.SW=false;this.KF=false;this.fo=-1;this.jY={};this.il=ls.ZFs;this.sc.log(this.getClassName(),arguments)};Lightstreamer.MetapushTable.prototype={toString:function(){return["[",this.getClassName(),this.Yp,this.wW,this.eY,this.kR,this.xJ,"]"].join("|")},getClassName:function(){return"MetapushTable"},tUj:function(wW,eY){this.ao(ls.MetapushTable,"tUj");if(this.rY.DA>this.fo&&this.fo>-1){this.DA=this.fo}else{this.DA=this.rY.DA}this.Lx=0;this.jY=[];return true},ZVI:function(){this.ao(ls.MetapushTable,"ZVI");this.sc.log("ZVI");this.wg=null},Fb:function(){this.ao(ls.MetapushTable,"Fb");this.Sn()},setClearOnAdd:ls.uY,getMetapushSortField:function(){return this.DAc()},getMetapushSortFieldName:function(){return this.qVw()},isDescendingSort:function(){return this.hHQ()},isNumericSort:function(){return this.BGh()},isCommaAsDecimalSeparator:function(){return this.CRJ()},setLastVisibleRow:function(YR){this.fo=this.JnG(YR,"setLastVisibleRow",this.fo,true,-1)},tFi:function(){return this.fo},onChangingValues:function(Mu){return},onRowUpdate:function(YR,Lq){return},setMetapushFields:function(Ig,SR){this.JM(Ig,SR)},setMetapushSort:function(aS,sJ,SW,KF){this.nA(aS,sJ,SW,KF)},kC:function(Zn,OK,xa){var FT=this.KE.FS(Zn,this.WL);var pb=1;if(this.rZ!=null){pb=this.KE.FS(Zn,this.rZ)}var tL=null;var kV=null;if(FT=="DELETE"){this.Aa(this.rY.mA[Zn],this.Lx,true,false);this.sc.dGc(!xa,"kC",1);var ef=this.rY.dpi(this.Lx);for(var wg in ef){this.rY.TbO(this.Lx,wg)}delete this.rY.nt[this.Lx];delete this.jY[this.Lx];delete this.rY.mA[Zn];this.rt.BQ(Zn);this.HQ.BQ(Zn);this.OI.BQ(Zn);this.KE.BQ(Zn);if(this.Lx>this.DA){this.rY.BC(this.Lx,true)}else{this.rY.BC(this.Lx,false)}if(this.onRowUpdate){try{this.onRowUpdate(this.Lx,null)}catch(XW){this.sc.PqW(XW,this.onRowUpdate,"onRowUpdate")}}if(!this.wic()){return true}this.Lx--}else{pb=this.Pcx(pb);var HH=this.rY.mA[Zn];var oc=true;if(HH){var RD=this.jY[HH];if(RD.toString()==pb.toString()){oc=false}}else{HH=-1;this.Lx++}var hI=(HH==-1);var qA=HH;if(oc){qA=1;var SK;for(SK=1;SK<=this.Lx;SK++){if(SK==HH){continue}var sn=this.jY[SK];if(!sn){break}if(this.fTc(pb,sn)){break}qA++}if(qA!=HH){var hN=false;var jC=false;if(!hI){jC=true;if(qA<HH){tL=qA;kV=HH}else{tL=HH;kV=qA;hN=true}}else{tL=qA;kV=this.Lx}this.Aa(tL,kV,hN,jC);this.rY.mA[Zn]=qA;this.rY.nt[qA]=Zn}this.jY[qA]=pb}var kX=ls.kk;kX.Wx(this,Zn,OK,xa);kX.SK=this.rY.mA[Zn];if(this.onChangingValues){try{this.onChangingValues(kX)}catch(XW){this.sc.PqW(XW,this.onChangingValues,"onChangingValues")}}if(!this.wic()){return true}this.rY.vuT(Zn,qA,hI);this.Qf(Zn,this.rY.mA[Zn],Zn,hI,kX);var fd=ls.Lq;fd.Wx(this,Zn);if(this.onRowUpdate){try{this.onRowUpdate(this.rY.mA[Zn],fd)}catch(XW){this.sc.PqW(XW,this.onRowUpdate,"onRowUpdate")}}if(!this.wic()){return true}}}};ls.tD(ls.MetapushTable,ls.VisualTable);ls.tD(ls.MetapushTable,ls.IH,"O");ls.tD(ls.MetapushTable,ls.nm,"O");ls.tD(ls.MetapushTable,ls.rQ,"O")})(Lightstreamer);(function(ls){Lightstreamer.DynaMetapushTable=function(FK,eH,gT){this.eV(ls.DynaMetapushTable,FK,eH,gT);this.gk();this.WL=null;this.keyCode=null;this.rZ=null;this.sJ=false;this.SW=false;this.KF=false;this.Nc=null;this.iE="OFF";this.JJ=0;this.NM=1;this.Em=0;this.IP=false;this.il=ls.Cdn;this.sc.log(this.getClassName(),arguments)};Lightstreamer.DynaMetapushTable.prototype={toString:function(){return["[",this.getClassName(),this.Yp,this.wW,this.eY,this.kR,this.xJ,"]"].join("|")},getClassName:function(){return"DynaMetapushTable"},ZVI:function(){this.ao(ls.DynaMetapushTable,"ZVI");this.sc.log("ZVI");this.wg=null},TK:function(){this.ao(ls.DynaMetapushTable,"TK");this.NM=1;this.Em=0;this.IP=false},Fb:function(){this.ao(ls.DynaMetapushTable,"Fb");var Za=null;var Cx=this.rY;for(var Zn in Cx.rv){var Za=Cx.rv[Zn];if(this.onChangingValues){try{this.onChangingValues(Za.Ss(),null)}catch(XW){this.sc.PqW(XW,this.onChangingValues,"onChangingValues")}}Za.parentNode.removeChild(Za);Cx.BC(Zn,true)}Cx.HX=0;Cx.Xo=Cx.MR},setClearOnAdd:ls.uY,setMetapushFields:function(Ig,SR){this.sc.log("setMetapushFields",arguments);if(this.wic()){this.sc.dSW(this.su,"setMetapushFields")}this.WL=this.JnG(Ig,"setMetapushFields",this.WL,true,1);this.keyCode=this.JnG(SR,"setMetapushFields",this.keyCode,true,1)},onChangingValues:function(TO,Mu){return},setAutoScroll:function(type,XU){this.fO(type,XU)},setMetapushSort:function(aS,sJ,SW,KF){this.nA(aS,sJ,SW,KF)},getMetapushSortField:function(){return this.DAc()},getMetapushSortFieldName:function(){return this.qVw()},isDescendingSort:function(){return this.hHQ()},isNumericSort:function(){return this.BGh()},isCommaAsDecimalSeparator:function(){return this.CRJ()},setMaxDynaRows:function(JJ){this.hT(JJ);if(this.wic()){this.jv();this.YD();this.hi(1)}},getMaxDynaRows:function(){return this.DZb()},onCurrentPagesChanged:function(UT){return},goToPage:function(NM){if(!this.wic()){this.sc.dSW(this.sD,"goToPage")}if(this.JJ==0){this.sc.dSW("Can't switch pages while 'no-page mode' is used","goToPage")}var Bu=new Number(NM);if(isNaN(Bu)){this.sc.dSW("A page number must be provided. "+NM+" is not a valid value","goToPage")}if(Bu<=0){this.sc.dSW("A page number must be greater than 0. "+NM+" is not a valid value","goToPage")}this.hi(Bu)},getDisplayedPage:function(){if(this.JJ==0){return 1}else{return this.NM}},getCurrentPages:function(){return this.Em},kC:function(Zn,OK,xa){var lg=this.rY;var FT=this.KE.FS(Zn,this.WL);var pb;if(this.rZ!=null){pb=this.Pcx(this.KE.FS(Zn,this.rZ))}var Lv=null;var gl=null;var kW=lg.Dq;var Cq=lg.dE;var GF=lg.GF;var GJ=lg.rv[Zn];var rK=true;if(!this.IP||this.JJ>0){rK=false}var Ri=false;var Ss=null;if(FT=="DELETE"){rK=false;if(GJ){lg.HX--;Ri=true;if(this.onChangingValues){try{this.onChangingValues(GJ.Ss(),null)}catch(XW){this.sc.PqW(XW,this.onChangingValues,"onChangingValues")}}if(!this.wic()){return true}if(GJ.parentNode==kW){kW.removeChild(GJ);this.bn(Cq,kW,this.JJ)}else{if(GJ.parentNode==Cq){Cq.removeChild(GJ)}else{GF.removeChild(GJ);if(this.bn(kW,GF,this.JJ*(this.NM-1))){this.bn(Cq,kW,this.JJ)}}}this.sc.dGc(!xa,"kC",3);this.rt.BQ(Zn);this.HQ.BQ(Zn);this.OI.BQ(Zn);this.KE.BQ(Zn);lg.BC(Zn,true)}}else{var tr=false;var bd;if(!GJ){Ss=new ls.vp(this.wW,Zn,Zn,this.keyCode);lg.rv[Zn]=Ss}else{Ss=lg.rv[Zn];Lv=Ss.parentNode;bd=this.pqX(Ss);if(this.rZ!=null){if(bd!=null&&pb!=null){if(bd.toString()==pb.toString()){tr=true}}else{if(bd==null&&pb==null){tr=true}}}}var kX=ls.kk;kX.Wx(this,Zn,OK,xa);kX.SK=Zn;if(this.onChangingValues){try{this.onChangingValues(Ss.Ss(),kX)}catch(XW){this.sc.PqW(XW,this.onChangingValues,"onChangingValues")}}if(!this.wic()){return true}if(this.rZ!=null&&tr==false){lg.cq[Zn]=pb;var aB=1;var Xh=lg.HX;var WK=-1;var hM=-1;while(aB<Xh){hM=Math.floor((aB+Xh)/2);var PN=null;if(hM<=lg.HX){var ZH=this.iWo(hM);if(ZH==Ss){PN=bd;WK=hM}else{PN=this.pqX(ZH)}}if(this.fTc(pb,PN)){Xh=hM-1}else{aB=hM+1}}var vP=-1;if(aB==Xh){var ZH=this.iWo(aB);var sn=this.pqX(ZH);if(this.fTc(pb,sn)){vP=aB}else{vP=aB+1}}else{vP=aB}this.RL(vP,Ss);if(!GJ){lg.HX++;Ri=true}}if(this.rZ==null){if(!GJ){lg.HX++;Ri=true;if(Cq.length>0||(kW.length==this.JJ&&this.JJ>0)){Cq.appendChild(Ss)}else{if(kW.length>0||GF.length==(this.JJ*(this.NM-1))){kW.appendChild(Ss)}else{GF.appendChild(Ss)}}}}this.Qf(Zn,Zn,Zn,false,kX)}if(Ss){if(Ss.uW){if(rK){this.pI(Ss.uW)}}}if(Ri){this.jv()}},YD:function(){var JX=this.rZ;var QI=new ls.ED();var va=this.rY;var kW=va.Dq;var Cq=va.dE;var GF=va.GF;var x=1;while(va.HX>0){var Nw=this.iWo(x);if(!Nw){va.HX--;x++;continue}if(JX==null){QI.appendChild(Nw);va.HX--;continue}var qd=Nw.Zn;if(qd==""){va.HX--;x++;continue}var pb=this.KE.FS(qd,this.rZ);pb=this.Pcx(pb);va.cq[qd]=pb;var aB=0;var Xh=QI.length-1;while(aB<Xh){var hM=Math.floor((aB+Xh)/2);var ZH=QI.oBH(hM);var AG=this.pqX(ZH);if(!AG){this.sc.dGc(false,"YD",1)}if(this.fTc(pb,AG)){Xh=hM-1}else{aB=hM+1}}var ZH=QI.oBH(aB);if(aB==Xh){var sn=this.pqX(ZH);if(this.fTc(pb,sn)){QI.insertBefore(Nw,ZH)}else{var XE=QI.oBH(Xh+1);if(!XE){QI.appendChild(Nw)}else{QI.insertBefore(Nw,XE)}}}else{if(ZH){QI.insertBefore(Nw,ZH)}else{QI.appendChild(Nw)}}va.HX--}var ga=0;while(ga<QI.length){va.HX++;var rf=QI.oBH(ga);var PN=rf.Zn;if(va.HX<=(this.JJ*(this.NM-1))){GF.appendChild(rf)}else{if((this.JJ<=0)||(va.HX<=(this.JJ*this.NM))){kW.appendChild(rf)}else{Cq.appendChild(rf)}}}},pqX:function(ZH){if(!ZH){return null}var sn=ZH.Zn;if(sn==""){return null}return this.rY.cq[sn]},hi:function(ZW){var cO=this.rY;var kW=cO.Dq;var Cq=cO.dE;var GF=cO.GF;var Hw=this.NM;if(Hw>=ZW){while(this.Dh(GF,kW,(ZW-1)*this.JJ)){this.Dh(kW,Cq,this.JJ)}}else{while(this.bn(kW,GF,(ZW-1)*this.JJ)){this.bn(Cq,kW,this.JJ)}}this.NM=ZW},RL:function(gb,uW){var Cx=this.rY;if(gb>Cx.HX+1){return}else{if(gb<=0){return}}if(uW==this.iWo(gb)){return}var Lv=uW.parentNode;var PM;var kW=Cx.Dq;var Cq=Cx.dE;var GF=Cx.GF;var FP=this.iWo(gb);if(FP==null){if(Cq.length>0||(kW.length==this.JJ&&this.JJ>0)){Cq.appendChild(uW);PM=Cq}else{if(this.JJ==0||kW.length>0||GF.length==(this.JJ*(this.NM-1))){kW.appendChild(uW);PM=kW}else{GF.appendChild(uW);PM=GF}}}else{PM=FP.parentNode;PM.insertBefore(uW,FP)}if(PM==kW){if((!Lv)||(Lv==Cq)){this.Dh(kW,Cq,this.JJ)}else{if(Lv==GF){this.bn(kW,GF,this.JJ*(this.NM-1))}}}else{if(PM==GF){if(Lv!=GF){if(this.Dh(GF,kW,this.JJ*(this.NM-1))){this.Dh(kW,Cq,this.JJ)}}}else{if(PM==Cq){if(Lv==GF){this.bn(kW,GF,this.JJ*(this.NM-1))}this.bn(Cq,kW,this.JJ)}}}},bn:function(pJ,Zd,KO){if(this.JJ<=0){return false}if(Zd.length<KO&&pJ.length>0){var sr=pJ.oBH(0);Zd.appendChild(sr);return true}return false},Dh:function(pJ,Zd,jM){if(this.JJ<=0){return false}if(pJ.length>jM){var sr=pJ.oBH(pJ.length-1);Zd.insertBefore(sr,Zd.oBH(0));return true}return false},iWo:function(gb){var Cx=this.rY;var kW=Cx.Dq;var Cq=Cx.dE;var GF=Cx.GF;if(gb>Cx.HX){return null}else{if(gb<=0){return null}}if(gb<=GF.length){return GF.oBH(gb-1)}else{gb-=GF.length;if(gb<=kW.length){return kW.oBH(gb-1)}else{gb-=kW.length;return Cq.oBH(gb-1)}}this.sc.dGc(false,"iWo",gb,this);return null},jv:function(){var eE=0;if(this.JJ<=0){eE=1}else{eE=Math.ceil(this.rY.HX/this.JJ)}if(this.Em!=eE){this.Em=eE;if(this.onCurrentPagesChanged){try{this.onCurrentPagesChanged(this.Em)}catch(XW){this.sc.PqW(XW,this.onCurrentPagesChanged,"onCurrentPagesChanged")}}}return eE}};ls.tD(ls.DynaMetapushTable,ls.VisualTable);ls.tD(ls.DynaMetapushTable,ls.nm,"O");ls.tD(ls.DynaMetapushTable,ls.Ao,"O")})(Lightstreamer);(function(ls){Lightstreamer.MultiDynaMetapushTable=function(FK,eH,gT,Sl){this.eV(ls.MultiDynaMetapushTable,FK,eH,gT);this.vg=null;this.iF={};this.AV=false;this.DG=null;this.il=ls.asO;this.ZC(Sl);this.sc.log(this.getClassName(),arguments)};Lightstreamer.MultiDynaMetapushTable.prototype={toString:function(){return["[",this.getClassName(),this.Yp,this.wW,this.eY,this.kR,this.xJ,"]"].join("|")},getClassName:function(){return"MultiDynaMetapushTable"},getUnderlyingSchema:function(){return this.DG},setUnderDataAdapter:function(qi){this.sc.log("setUnderDataAdapter",arguments);this.vg=qi},ZVI:function(){this.ao(ls.MultiDynaMetapushTable,"ZVI");this.sc.log("ZVI");if(this.AV){this.DG=null}},TK:function(){this.ao(ls.MultiDynaMetapushTable,"TK");this.wr()}};ls.tD(ls.MultiDynaMetapushTable,ls.DynaMetapushTable);ls.tD(ls.MultiDynaMetapushTable,ls.hZ,"O")})(Lightstreamer);(function(ls){ls.ja=function(){};ls.ja.prototype={NBI:function(Fu,uG,Hk){var kw=new Number(Fu);var ZM=(kw-uG)/Hk;return Math.round(ZM)},rXI:function(Fu,uG,Hk){return(Fu*Hk)+uG},TR:function(){for(var vS=0;vS<this.OD.length;vS++){if(this.OD[vS]&&ls.pv.Ld(this.OD[vS])){this.OD[vS].parentNode.removeChild(this.OD[vS])}}this.OD=[]}}})(Lightstreamer);(function(ls){Lightstreamer.ChartTable=function(FK,eH,gT){this.eV(ls.ChartTable,FK,eH,gT);this.gk();this.QC();this.ap=null;this.mX=document.createElement("div");this.mX.style.position="relative";this.mX.style.overflow="visible";this.offsetY=0;this.offsetX=0;this.screenX=null;this.screenY=null;this.Pg={};this.OD=[];this.xs=new ls.LabelFormatter();this.er=false;this.Xx=0;this.fU=null;this.vR=null;this.vU=null;this.AB=null;this.il=ls.gas;this.sc.log(this.getClassName(),arguments)};Lightstreamer.ChartTable.prototype={toString:function(){return["[",this.getClassName(),this.Yp,this.wW,this.eY,this.kR,this.xJ,"]"].join("|")},getClassName:function(){return"ChartTable"},Spr:function(){return ls.MD.Spr(this.wW,this.il)},hJA:function(wW){this.sc.log("hJA",1,this);var wW=this.wW;var fa;fa=ls.pv.rF(document,["div","span"]);var hM=0;for(hM=0;hM<fa.length;hM++){var It=fa[hM].rf.getAttribute("table");if(!It||It!=wW){continue}this.Mm(fa[hM].rf);return true}this.RV();return false},Fb:function(){this.ao(ls.ChartTable,"Fb");this.TR();for(var fA in this.Pg){this.Pg[fA].TR();delete (this.Pg[fA])}if(this.ap&&ls.pv.Ld(this.ap)){this.ap.parentNode.removeChild(this.ap)}delete (this.ap);this.Mm(this.mX.parentNode,true)},setAreaClass:function(bJ){if(!this.ap){this.bJ=bJ}else{this.ap.className=bJ}this.sc.log("setAreaClass",bJ)},setAreaTop:function(top){this.offsetY=this.JnG(top,"setAreaTop",this.offsetY,false,0);if(this.ap){this.ap.style.top=this.offsetY}},setAreaLeft:function(left){this.offsetX=this.JnG(left,"setAreaLeft",this.offsetX,false,0);if(this.ap){this.ap.style.left=this.offsetX}},setAreaWidth:function(width){this.screenX=this.JnG(width,"setAreaWidth",this.screenX,false,0);if(this.ap){this.ap.style.width=this.screenX;if(this.vU!=null){this.sS();this.Fn();for(var kU in this.Pg){if(!this.Pg[kU]){continue}else{if(this.Pg[kU].Pv.length>0){this.Pg[kU].Dd()}}}}}},setAreaHeight:function(height){this.screenY=this.JnG(height,"setAreaHeight",this.screenY,false,0);if(this.ap){this.ap.style.height=this.screenY;for(var kU in this.Pg){if(!this.Pg[kU]){continue}else{if(this.Pg[kU].Fw!=null){this.Pg[kU].HK();this.Pg[kU].IV();if(this.Pg[kU].Pv.length>0){this.Pg[kU].Dd()}}}}}},wi:function(){this.ap=document.createElement("div");this.ap.style.position="absolute";this.ap.style.overflow="hidden";this.mX.appendChild(this.ap);if(this.bJ){this.ap.className=this.bJ}this.ap.style.top=this.offsetY+"px";this.ap.style.left=this.offsetX+"px";if(this.screenX!==null){this.ap.style.width=this.screenX+"px"}if(this.scrrenY!==null){this.ap.style.height=this.screenY+"px"}},Mm:function(EE,AM){if(this.ap){return}if(EE&&EE.appendChild){this.wi();if(this.mX.parentNode!=EE){EE.appendChild(this.mX)}if(this.screenX==null){this.screenX=EE.offsetWidth}if(this.screenY==null){this.screenY=EE.offsetHeight}if(this.vU!=null){this.sS();this.Fn()}for(var kU in this.Pg){if(!this.Pg[kU]){continue}else{if(this.Pg[kU].Fw!=null){this.Pg[kU].HK();this.Pg[kU].IV()}}}this.sc.log("Mm",EE)}else{if(!AM){this.RV()}}},RV:function(){this.sc.error("A DOM element must be provided as an anchor for the chart","addTable")},SLK:function(){if(this.ap){return this.ap.cloneNode(true)}else{this.sc.error("Sorry, nothing to photograph","SLK")}},removeLine:function(id){if(this.Pg[id]){this.Pg[id].YB();this.Pg[id].TR();this.Pg[id]=null}else{this.sc.error("No line to remove with id "+id,"removeLine")}},pEv:function(co,tO,nh,Wg){this.sc.log("pEv",arguments);var Ij=document.createElement("div");if(co!=null){Ij.className=co}Ij.style.position="absolute";var rN=document.createTextNode(tO);Ij.appendChild(rN);this.mX.appendChild(Ij);var Xt=Ij.offsetWidth;if(Wg.toUpperCase()=="X"){Ij.style.top=(this.screenY+5+this.offsetY)+"px";Ij.style.left=(nh-(Ij.offsetWidth/2)+this.offsetX)+"px"}else{if(Wg.toUpperCase()=="Y"){Ij.style.left=(this.offsetX-Xt)+"px";Ij.style.top=((this.screenY-nh)-(Ij.offsetHeight/2)+this.offsetY)+"px"}}return Ij},addLine:function(ql,id){this.sc.log("addLine",ql);ql.WaY(this);if(this.Pg[id]!=null){this.sc.error("A line with this id already exists. Overwriting","addLine")}ql.Fch(id);ql.Rm=this.sF.ncf(ql.ht);ql.rb=this.Tj.DWD(ql.pO);if(!ql.Fw||!ql.Hx||!ql.rb){this.sc.dSW("Cannot create line. Please declare the Y axis","addLine");return}if(this.screenY!=null&&this.ap){ql.HK();ql.IV()}this.Pg[id]=ql},ea:function(wb,Pu,Vn){this.sc.log("ea",arguments);var lx=this.Pg[Vn];var FF=this.xdA(wb);var Si=lx.bdf(Pu);if(lx.mk==null){lx.mk=FF;lx.cp=Si;return}this.sc.log("ea",0,lx.mk,lx.cp,FF,Si);var IN=FF-lx.mk;var Rf=Si-lx.cp;this.sc.log("ea",1,"X",IN,"Y",Rf);var Lk=Math.abs(IN);var sZ=Math.abs(Rf);var or=null;var EN=0;var ah=0;var Kn=0;if(Lk>=sZ){Kn=Rf/IN;EN=IN;ah=IN>=0?1:-1}else{Kn=IN/Rf;EN=Rf;ah=Rf>=0?1:-1}var gj=0;var QR=0;var Do=null;var Vb=null;var ia=true;var at=true;if(Lk<sZ){at=false}for(var gb=0;gb!=EN;gb+=ah){var nb=0;var qG=0;var mb=0;var qx=0;var lI=false;this.sc.log("ea",2);if((gb+ah)==EN){this.sc.log("ea",6);lI=true;ia=true}or=document.createElement("div");if(lI){or.className=lx.is}else{or.className=lx.xM}or.style.position="absolute";or.style.fontSize="0px";this.ap.appendChild(or);lx.fr[lx.fr.length]=or;if(ia){ia=false;Do=Math.ceil(or.offsetWidth/2);Vb=Math.ceil(or.offsetHeight/2);gj=or.offsetWidth;QR=or.offsetHeight;this.sc.log("ea",3,gj,QR)}mb=gj;qx=QR;if(at){nb=Math.round(gb+lx.mk);qG=Math.round(this.screenY-(Kn*gb+lx.cp));if(!lI){var nk=0;while(((gb+ah)!=(EN-ah))&&(qG==Math.round(this.screenY-(Kn*(gb+ah)+lx.cp)))){gb+=ah;nk++}this.sc.log("ea",4,nk);var QT=Do*nk;mb=gj+QT;if(ah<0){nb-=QT}}}else{nb=Math.round(Kn*gb+lx.mk);qG=Math.round(this.screenY-(gb+lx.cp));if(!lI){var nk=0;while(((gb+ah)!=(EN-ah))&&(nb==Math.round(Kn*(gb+ah)+lx.mk))){gb+=ah;nk++}this.sc.log("ea",5,nk);var QT=Vb*nk;qx=QR+QT;if(ah>0){qG-=QT}}}nb-=Math.floor(Do/2);qG-=Math.floor(Vb/2);or.style.left=nb+"px";or.style.top=qG+"px";or.style.width=mb+"px";or.style.height=qx+"px";this.sc.log("ea",7,or.style.left,or.style.top,or.style.width,or.style.height);this.sc.log("ea",8,or.offsetLeft,or.offsetTop,or.offsetWidth,or.offsetHeight)}this.sc.log("ea",10);lx.mk=FF;lx.cp=Si},setXAxis:function(field,KF){this.sc.log("setXAxis",arguments);this.fU=this.Tj.DWD(field);if(KF){this.er=true}else{this.er=false}},positionXAxis:function(min,max){this.sc.log("positionXAxis",arguments);this.vU=this.JnG(max,"positionXAxis",this.vU);this.vR=this.JnG(min,"positionXAxis",this.vR);if(this.ap){if(this.screenX!=null){this.sS();this.Fn()}for(var kU in this.Pg){if(!this.Pg[kU]){continue}else{if(this.Pg[kU].Pv.length>0){this.Pg[kU].Dd()}}}}this.sc.log("positionXAxis",2)},sS:function(){this.AB=(this.vU-this.vR)/this.screenX;this.sc.log("sS",this.AB)},setXLabels:function(Ap,VQ,xs){this.Xx=Ap;this.VK=VQ;if(xs!=null){this.xs=xs}if(this.AB!=null&&this.ap){this.Fn()}this.sc.log("setXLabels",arguments)},Fn:function(){this.TR();var PH="";var nh=-1;if(this.Xx<=0){return}if(this.Xx>0){PH=this.xs.formatValue(this.vR);nh=this.xdA(this.vR);this.OD[this.OD.length]=this.pEv(this.VK,PH,nh,"X")}if(this.Xx>1){PH=this.xs.formatValue(this.vU);nh=this.xdA(this.vU);this.OD[this.OD.length]=this.pEv(this.VK,PH,nh,"X")}if(this.Xx>2){var Qn=this.Xx-1;var pM=(this.vU-this.vR)/Qn;var tl=this.vR;for(var tH=1;tH<Qn;tH++){tl+=pM;PH=this.xs.formatValue(tl);nh=this.xdA(tl);this.OD[this.OD.length]=this.pEv(this.VK,PH,nh,"X")}}this.sc.log("Fn",arguments)},onXOverflow:function(mk,ue,Ps){this.sc.log("onXOverflow",arguments);if(mk>Ps){var jN=(Ps+ue)/2;var eA=Ps-ue;this.positionXAxis(jN,jN+eA)}else{}},xdA:function(Fu){return this.NBI(Fu,this.vR,this.AB)},kC:function(nv,OK,xa){var Zn=nv;for(var kU in this.Pg){if(!this.Pg[kU]){continue}else{if(nv==this.Pg[kU].Rm){var kA=null;var Fu=this.KE.FS(nv,this.fU);kA=ls.UQU(Fu,this.er);if(kA<this.vR){continue}if(kA>this.vU){if(this.onXOverflow){try{this.onXOverflow(kA,this.vR,this.vU)}catch(XW){this.sc.PqW(XW,this.onXOverflow,"onXOverflow")}}if(!this.wic()){return}}var mB=null;var Fu=this.KE.FS(nv,this.Pg[kU].rb);mB=ls.UQU(Fu,this.RC);if(mB>this.Pg[kU].Fw||mB<this.Pg[kU].Hx){if(this.Pg[kU].onYOverflow){try{this.Pg[kU].onYOverflow(mB,this.Pg[kU].Hx,this.Pg[kU].Fw)}catch(XW){this.sc.PqW(XW,this.Pg[kU].onYOverflow,"onYOverflow")}}if(!this.wic()){return}}var BF=this.Pg[kU].Pv.length;this.Pg[kU].Pv[BF]=kA;BF=this.Pg[kU].Hm.length;this.Pg[kU].Hm[BF]=mB;this.ea(kA,mB,kU)}}}}};ls.tD(ls.ChartTable,ls.VisualTable);ls.tD(ls.ChartTable,ls.ja,"O")})(Lightstreamer);(function(ls){Lightstreamer.ChartLine=function(){this.kW=null;this.ht=null;this.Rm=null;this.wW=null;this.is="";this.xM="";this.RC=false;this.Nq=null;this.rb=null;this.Hx=null;this.Fw=null;this.VP=null;this.As=0;this.xs=new ls.LabelFormatter();this.fr=[];this.Pv=[];this.Hm=[];this.OD=[];this.mk=null;this.cp=null;this.sc=ls.KN.getLogger("TL");this.sc.log("ChartLine",arguments)};Lightstreamer.ChartLine.prototype={JnG:ls.BO,YB:function(){this.sc.log("YB",this.wW);if(this.fr[0]&&ls.pv.Ld(this.fr[0])){for(var wF=0;wF<this.fr.length;wF++){this.fr[wF].parentNode.removeChild(this.fr[wF])}}this.fr=[];this.Hm=[];this.Pv=[];this.mk=null;this.cp=null},Dd:function(){this.sc.log("Dd",1);var xr=this.Pv;var NZ=this.Hm;this.YB();var Lv=false;var EO,no;while(xr.length>0){if((xr.length>1&&xr[1]>=this.kW.vR)||xr[0]>=this.kW.vR){this.kW.ea(xr[0],NZ[0],this.wW);this.Pv[this.Pv.length]=xr[0];this.Hm[this.Hm.length]=NZ[0]}xr.shift();NZ.shift()}this.sc.log("Dd",2)},WaY:function(kW){this.kW=kW;this.sc.log("WaY",kW)},Fch:function(wW){this.wW=wW;this.sc.log("Fch",wW)},setPointClass:function(TE){this.is=TE;this.sc.log("setPointClass",TE)},setLineClass:function(uh){this.xM=uh;this.sc.log("setLineClass",uh)},setYAxis:function(item,field,KF){this.sc.log("setYAxis",arguments);this.ht=item;this.pO=field;if(KF){this.RC=true}else{this.RC=false}},positionYAxis:function(min,max){this.sc.log("positionYAxis",arguments);this.Fw=this.JnG(max,"positionYAxis",this.Fw);this.Hx=this.JnG(min,"positionYAxis",this.Hx);if(this.kW&&this.kW.screenY!=null&&this.kW.ap&&this.kW.ap.parentNode){this.HK();this.IV();if(this.Pv.length>0){this.Dd()}}this.sc.log("positionYAxis",2)},HK:function(){this.VP=(this.Fw-this.Hx)/this.kW.screenY;this.sc.log("HK",this.VP)},setYLabels:function(Ap,VQ,xs){this.As=Ap;this.XP=VQ;if(xs!=null){this.xs=xs}if(this.VP!=null&&this.kW&&this.kW.ap&&this.kW.ap.parentNode){this.IV()}this.sc.log("setYLabels",arguments)},IV:function(){this.TR();var PH="";var nh=-1;if(this.As<=0){return}if(this.As>0){PH=this.xs.formatValue(this.Hx);nh=this.bdf(this.Hx);this.OD[this.OD.length]=this.kW.pEv(this.XP,PH,nh,"Y")}if(this.As>1){PH=this.xs.formatValue(this.Fw);nh=this.bdf(this.Fw);this.OD[this.OD.length]=this.kW.pEv(this.XP,PH,nh,"Y")}if(this.As>2){var Qn=this.As-1;var pM=(this.Fw-this.Hx)/Qn;var tl=this.Hx;for(var tH=1;tH<Qn;tH++){tl+=pM;PH=this.xs.formatValue(tl);nh=this.bdf(tl);this.OD[this.OD.length]=this.kW.pEv(this.XP,PH,nh,"Y")}}this.sc.log("IV",arguments)},onYOverflow:function(cp,LD,sL){this.sc.log("onYOverflow",arguments);var sE=(sL-LD)/2;if(cp>sL){var tC=sL+sE;if(cp>tC){tC=cp}this.positionYAxis(LD,tC)}else{if(cp<LD){var JR=LD-sE;if(cp<JR){JR=cp}this.positionYAxis(JR,sL)}}},bdf:function(Fu){return this.NBI(Fu,this.Hx,this.VP)}};ls.tD(ls.ChartLine,ls.ja,"O")})(Lightstreamer);Lightstreamer.LabelFormatter=function(){};Lightstreamer.LabelFormatter.prototype={formatValue:function(kw){return kw}};(function(ls){ls.Vp=null;ls.MD=new ls.pF();ls.Db=new ls.kS();ls.KD=new ls.Jn(ls.Db,new ls.Zs(),ls.fJ,false);ls.nR=new ls.kP();ls.ol=new ls.hA(ls.Db);var VN=[function(){if(ls.Vp){ls.Vp.kB()}},function(){if(ls.FlashBridge){ls.FlashBridge.qM()}}];ls.Ii=new ls.Ar(VN);ls.KN.hSe();ls.Oa("beforeunload",function(){if(ls.Vp){ls.Vp.Eap()}});ls.Oa("unload",function(){ls.MD.fQ();ls.Db.sRP();ls.LC=true});ls.YM=new ls.Lb();ls.Ce=new ls.eB();ls.mK=new ls.Sa();if(ls.gc){ls.Xa=new ls.gc(20)}ls.Mp();if(window.Lightstreamer===ls){if(!ls.avoidLSGlobals){ls.nW()}}else{window.Lightstreamer=ls;ls.avoidLSGlobals=true}ls.Lq=new ls.RowInfo();ls.Mu=new ls.UpdateItemInfo();ls.kk=new ls.VisualUpdateInfo();ls.tA.log("pushpage","pushpage parsed")})(Lightstreamer);return Lightstreamer})})(window.define||function(KR,hj){hj(window.Lightstreamer)});if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1)}if(id){this.setAttribute("id",id)}if(w){this.setAttribute("width",w)}if(h){this.setAttribute("height",h)}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(c){this.addParam("bgcolor",c)}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9)}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true)},setAttribute:function(_e,_f){this.attributes[_e]=_f},getAttribute:function(_10){return this.attributes[_10]},addParam:function(_11,_12){this.params[_11]=_12},getParams:function(){return this.params},addVariable:function(_13,_14){this.variables[_13]=_14},getVariable:function(_15){return this.variables[_15]},getVariables:function(){return this.variables},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key]}return _16},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}_19='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';_19+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var _1a=this.getParams();for(var key in _1a){_19+=[key]+'="'+_1a[key]+'" '}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+='flashvars="'+_1c+'"'}_19+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}_19='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';_19+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var _1d=this.getParams();for(var key in _1d){_19+='<param name="'+key+'" value="'+_1d[key]+'" />'}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+='<param name="flashvars" value="'+_1f+'" />'}_19+="</object>"}return _19},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0])}catch(e){axo=null}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always"}catch(e){if(_23.major==6){return _23}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","))}}}return _23};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false}if(this.major>fv.major){return true}if(this.minor<fv.minor){return false}if(this.minor>fv.minor){return true}if(this.rev<fv.rev){return false}return true};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;if(typeof Bel=="undefined"){window.Bel={}}Bel.NewsLetter={open:function(){var url="/nieuwsbrief/aanmelden";var email=$("#newslettertext").val();if(email!==undefined&&email!=""){url+="?email="+email}$.ajax({url:url,dataType:"html",success:Bel.NewsLetter.update})},update:function(e){content=e;Bel.lightBox.create(content,"welcome",755,555)}};Bel.lightBox={close:function(id){$("#"+id+"_overlay").remove();$("#"+id+"_container").remove()},create:function(payload,id,width,height){var id=id+"_popup";var overlay=Bel.lightBox.createOverlay();var container=Bel.lightBox.createContainer(width,height);overlay.attr("id",id+"_overlay");container.attr("id",id+"_container");container.append(payload);$("#pageheader").append(overlay);$("#pageheader").append(container);$(".popup_close").click(function(){Bel.lightBox.close(id)})},createContainer:function(width,height){return $("<div></div>").css({zIndex:1001,position:"fixed",top:"50%",right:0,bottom:0,left:"50%",marginLeft:"-"+(Math.floor(width/2))+"px",marginTop:"-"+(Math.floor(height/2))+"px",cursor:"pointer",width:width+"px",height:height+26+"px","background-color":"#FFF"})},createOverlay:function(){return $('<div class="popup_close" ></div>').css({zIndex:1000,backgroundColor:"#000",position:"fixed",top:0,left:0,right:0,bottom:0,opacity:0.7,cursor:"pointer"})}};if(typeof Bel=="undefined"){window.Bel={}}Bel.Belegger={pageLoaded:function(){Bel.Belegger.checkForLoggedInUser()},checkForLoggedInUser:function(){var loggedInElement=$("div#pageheader div.account div.loggedinText");if(Bel.Belegger.isLoggedIn()){loggedInElement.text("Ingelogd als:");loggedInElement.append($("<span></span>").append($('<a href="/mijnbelegger/profiel"></a>').text(Bel.Belegger.getUsername())));$("div#pageheader ul.options a.logoutlink").show();$("div#pageheader ul.options a.logoutlink").removeClass("hidden")}else{loggedInElement.text("Niet ingelogd");$("div#pageheader ul.options a.loginlink").show();$("div#pageheader ul.options a.loginlink").removeClass("hidden")}},isLoggedIn:function(){return this.getUsername()!=null},getUsername:function(){if(typeof(this.username)=="undefined"){this.username=this.getCookieValue("username")}return this.username},getCookieValue:function(name){var cookies=document.cookie.split(";");for(var i=0;i<cookies.length;i++){var parts=cookies[i].split("=");if(parts.length<2){continue}var key=parts[0].replace(/^\s+|\s+$/g,"");var value=parts[1].replace(/^\s+|\s+$/g,"");if(key==name){return value}}return null},setCookie:function(name,value,year,month,day){var cookie_date=new Date(year,month,day);document.cookie=name+"="+value+"; expires="+cookie_date.toGMTString();return true},setShortCookie:function(name,value,minutes){var cookie_date=new Date();cookie_date.setMinutes(cookie_date.getMinutes()+minutes);document.cookie=name+"="+value+"; expires="+cookie_date.toGMTString();return true}};$(document).ready(function(){Bel.Belegger.pageLoaded()});if(typeof Bel=="undefined"){window.Bel={}}Bel.Encyclopedia={init:function(){$("div.encyclopedia-searchbox input.searchtermfield").focus(function(){if($(this).val()=="Voer zoekterm in..."){$(this).val("")}});$("div.encyclopedia-searchbox input.searchtermfield").blur(function(){if($(this).val()==""){$(this).val("Voer zoekterm in...")}})}};if(typeof Bel=="undefined"){window.Bel={}}Bel.StockChart={INTRADAY:1,MONTH:2,YEAR:3,FIVE_YEAR:4,FIFTEEN_YEAR:5,updateStockChart:function(id,type,width,height,element){var interval=0;var intervalType="i";var name="INTRADAY";switch(type){case Bel.StockChart.MONTH:intervalType="d";interval=1;name="MAAND";break;case Bel.StockChart.YEAR:intervalType="w";interval=12;name="JAAR";break;case Bel.StockChart.FIVE_YEAR:intervalType="m";interval=60;name="5 JAAR";break;case Bel.StockChart.FIFTEEN_YEAR:intervalType="m";interval=180;name="15 JAAR";break;case Bel.StockChart.INTRADAY:default:intervalType="i";interval=0;name="INTRADAY";break}$("#stockchart").attr("src","http://ichart.quintrics.nl/GetIChart.aspx?lid="+id+"&tfn=beleggerNL.ten&w="+width+"&h="+height+"&i="+intervalType+"&p="+interval+"&pc=n");$(".grafieken li.selected").removeClass("selected");var chartNameElement=$("#chartname");if(chartNameElement!=undefined){chartNameElement.html(name)}$(element).parent("li").addClass("selected")}};Bel.StockNavigation={navigateStock:function(event){if(event.currentTarget.value=="all"){window.location="/koersen-"+$(".koersen #indexnav option:selected").val()+".index"}else{window.location="/aandeel-"+event.currentTarget.value+".koersen"}},navigateIndex:function(event){window.location="/koersen-"+event.currentTarget.value+".index"}};Bel.StockLightstreamerLoader={load:function(ic){$.ajax({url:"/loadlightstreamer",type:"POST",data:{instrumentCodes:ic},dataType:"html",success:function(data){$("#lightstreamerresult").html(data)}})}};if(typeof Bel=="undefined"){window.Bel={}}Bel.WeekCalendar={init:function(){$("div.calendar ul.submenu li a").click(function(){Bel.WeekCalendar.dayClicked($(this))});if(window.location.hash){var selector=window.location.hash.replace("#","dateselect-");$("div.calendar ul.submenu li a."+selector).each(function(){Bel.WeekCalendar.dayClicked($(this))})}},dayClicked:function(linkElement){var linkHref=linkElement.attr("href");var divClass=linkHref.replace(/#/,"calendar-day-");linkElement.parents("ul").find("li.selected").removeClass("selected");linkElement.parents("li").addClass("selected");$("div.calendar div.calendarday").addClass("hidden");$("div.calendar div."+divClass).removeClass("hidden")}};if(typeof Bel=="undefined"){window.Bel={}}Bel.SearchCalendar={init:function(){$("div.calendarsearch form input.searchquery").focus(function(){var inputElement=$(this);if(inputElement.val()=="Voer een zoekterm in..."){inputElement.val("")}});$("div.calendarsearch form input.searchquery").blur(function(){var inputElement=$(this);if(inputElement.val()==""){inputElement.val("Voer een zoekterm in...")}});$("div.calendarsearch form").submit(function(event){var form=$(this);var query=$.trim($("input.searchquery",form).val());var error="";if(query==""||query=="Voer een zoekterm in..."){error="Voer een zoekterm in."}else{if(query.length<3){error="Zoekterm te kort. Voer een zoekterm in van minimaal 3 tekens lang."}}$("div.calendarsearch p.error").text(error);if(error!=""){event.preventDefault();return false}else{return true}})}};if(typeof Bel=="undefined"){window.Bel={}}Bel.Form={initLoginForm:function(){$("div.loginbox form").submit(function(event){var form=$(this);var username=$.trim($("input.username",form).val());var password=$("input.password",form).val();$("span.error",form).text("");if(username==""||password==""){$("span.error",form).text("Vul je gebruikersnaam en wachtwoord in");event.preventDefault();return false}if(username.length<6||username.length>25){$("span.error",form).text("Je gebruikersnaam moet tussen de 6 en 25 tekens lang zijn");event.preventDefault();return false}return true})},initResetPasswordForm:function(){$("div.mijnbelegger form").submit(function(event){var form=$(this);var email=$.trim($("input.email",form).val());$("div.error",form).text("");if(email==""){$("div.error",form).text("Vul je e-mailadres in");event.preventDefault();return false}return true})},initConfirmResetPasswordForm:function(){$("div.mijnbelegger-confirmresetpassword form").submit(function(event){var form=$(this);var password=$("input.password",form).val();var passwordAgain=$("input.password_again",form).val();var error="";if(password==""){error="Vul het wachtwoord in dat je wenst te gebruiken"}else{if(passwordAgain==""){error="Herhaal het wachtwoord"}else{if(password!=passwordAgain){error="De twee wachtwoorden komen niet overeen"}else{if(password.length<6||password.length>25){error="Het wachtwoord moet tussen de 6 en 25 tekens lang zijn"}}}}$("ul.error",form).html($("<li></li>").text(error));if(error!=""){event.preventDefault();return false}else{return true}})},initLeadForm:function(){$("div.leadform form").submit(function(event){var hasErrors=false;var form=$(this);var email=$("input.email",form).val();var name=$("input.naam",form).val();var adres=$("input.adres",form).val();var tel=$("input.tel",form).val();var postcode=$("input.postcode",form).val();$("ul.errors",form).html("");$("input.email",form).parent("label").removeClass("error");$("input.naam",form).parent("label").removeClass("error");$("input.adres",form).parent("label").removeClass("error");$("input.postcode",form).parent("label").removeClass("error");if(email==""){$("ul.errors",form).html($("ul.errors",form).html()+"<li>E-mailadres is een verplicht veld</li>");$("input.email",form).parent("label").addClass("error");hasErrors=true}else{if(Bel.Form.validateEmailAddress(email)==false){$("ul.errors",form).html($("ul.errors",form).html()+"<li>Het opgegeven e-mail adres is ongeldig</li>");$("input.email",form).parent("label").addClass("error");hasErrors=true}}if(name==""){$("ul.errors",form).html($("ul.errors",form).html()+"<li>Naam is een verplicht veld</li>");$("input.naam",form).parent("label").addClass("error");hasErrors=true}if(adres==""){$("ul.errors",form).html($("ul.errors",form).html()+"<li>Adres + huisnummer is een verplicht veld</li>");$("input.adres",form).parent("label").addClass("error");hasErrors=true}if(tel==""){$("ul.errors",form).html($("ul.errors",form).html()+"<li>Telefoonnummer is een verplicht veld</li>");$("input.tel",form).parent("label").addClass("error");hasErrors=true}else{if(Bel.Form.validatePhoneNumber(tel)==false){$("ul.errors",form).html($("ul.errors",form).html()+"<li>Ongeldig telefoonnummer opgegeven</li>");$("input.tel",form).parent("label").addClass("error");hasErrors=true}}if(postcode==""){$("ul.errors",form).html($("ul.errors",form).html()+"<li>Postcode + plaats is een verplicht veld</li>");$("input.postcode",form).parent("label").addClass("error");hasErrors=true}if(hasErrors==true){event.preventDefault();return false}else{return true}})},validateCommentForm:function(){var hasErrors=false;var form=$("#comment");var email=$("input.email",form).val();var name=$("input.name",form).val();var captcha=$("input.captcha",form).val();var comment=$("textarea.comment",form).val();$("ul.errors",form).html("");$("input.email",form).closest("fieldset").find("label").removeClass("error");$("input.name",form).closest("fieldset").find("label").removeClass("error");$("textarea.comment",form).closest("fieldset").find("label").removeClass("error");$("input.captcha",form).closest("fieldset").find("label").removeClass("error");if(name==""){$("ul.errors",form).html($("ul.errors",form).html()+"<li>Naam is een verplicht veld</li>");$("input.name",form).closest("fieldset").find("label").addClass("error");hasErrors=true}if(email==""){$("ul.errors",form).html($("ul.errors",form).html()+"<li>E-mail is een verplicht veld</li>");$("input.email",form).closest("fieldset").find("label").addClass("error");hasErrors=true}else{if(Bel.Form.validateEmailAddress(email)==false){$("ul.errors",form).html($("ul.errors",form).html()+"<li>Het opgegeven e-mail adres is ongeldig</li>");$("input.email",form).closest("fieldset").find("label").addClass("error");hasErrors=true}}if(comment==""){$("ul.errors",form).html($("ul.errors",form).html()+"<li>U heeft geen reactie ingevoerd</li>");$("textarea.comment",form).closest("fieldset").find("label").addClass("error");hasErrors=true}else{if(Bel.Form.validateLength(comment,255)==false){$("ul.errors",form).html($("ul.errors",form).html()+"<li>Uw reactie bevat meer dan 255 tekens</li>");$("textarea.comment",form).closest("fieldset").find("label").addClass("error");hasErrors=true}}return(hasErrors==false)},validateEmailAddress:function(address){var reg=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;return reg.test(address)},validatePhoneNumber:function(tel){var reg=/^([0-9\-\+\(\) ]+)$/;if(reg.test(tel)==false){return false}return true},validateLength:function(text,length){if(text.length>length){return false}return true},validateFloat:function(enteredFloat){var regExpDecDot=/^\d{1,3}(,?\d{3})*?(\.\d+)?$/g;var regExpDecComma="/^\d{1,3}(.?\d{3})*?(,\d+)?$/g";var isFloat=(regExpDecDot.test(enteredFloat)||regExpDecComma.test(enteredFloat));return isFloat},limitText:function(limitField,limitNum){if(limitField.value.length>limitNum-1){limitField.value=limitField.value.substring(0,limitNum-1)}},validatePortfolioForm:function(){var hasErrors=false;var form=$("#portfoliobuystock");var date=$("input.datepicker",form).val();var rate=$("input.rate",form).val();var amount=$("input.amount",form).val();var transcost=$("input.amounttrans",form).val();var stock=$("select.portfoliostock",form).val();$("ul.errors",form).html("");$("input.datepicker",form).closest("fieldset").find("label").removeClass("error");$("input.rate",form).closest("fieldset").find("label").removeClass("error");$("input.amount",form).closest("fieldset").find("label").removeClass("error");$("input.transcost",form).closest("fieldset").find("label").removeClass("error");$("select.amounttrans",form).closest("fieldset").find("label").removeClass("error");if(rate==""){$("ul.errors",form).html($("ul.errors",form).html()+"<li>Aankoop koers is een verplicht veld</li>");$("input.rate",form).closest("fieldset").find("label").addClass("error");hasErrors=true}else{if(!Bel.Form.validateFloat(Bel.Form.saveNumberFormat(rate))){$("ul.errors",form).html($("ul.errors",form).html()+"<li>Aankoop koers moet een getal zijn</li>");$("input.rate",form).closest("fieldset").find("label").addClass("error");hasErrors=true}else{if(Bel.Form.saveNumberFormat(rate)<0){$("ul.errors",form).html($("ul.errors",form).html()+"<li>Aankoop koers moet een positief getal zijn</li>");$("input.rate",form).closest("fieldset").find("label").addClass("error");hasErrors=true}}}if(date==""){$("ul.errors",form).html($("ul.errors",form).html()+"<li>Datum is een verplicht veld</li>");$("input.datepicker",form).closest("fieldset").find("label").addClass("error");hasErrors=true}if(amount==""){$("ul.errors",form).html($("ul.errors",form).html()+"<li>Aantal is een verplicht veld</li>");$("input.amount",form).closest("fieldset").find("label").addClass("error");hasErrors=true}else{if(isNaN(amount)){$("ul.errors",form).html($("ul.errors",form).html()+"<li>Aantal moet een getal zijn</li>");$("input,amount",form).closest("fieldset").find("label").addClass("error");hasErrors=true}else{if(amount<0){$("ul.errors",form).html($("ul.errors",form).html()+"<li>Aantal moet een positief getal zijn</li>");$("input.amount",form).closest("fieldset").find("label").addClass("error");hasErrors=true}}}if(stock==""||stock==0||typeof stock=="undefined"){$("ul.errors",form).html($("ul.errors",form).html()+"<li>Er moet een aandeel gekozen zijn</li>");$("input.amount",form).closest("fieldset").find("label").addClass("error");hasErrors=true}return(hasErrors==false)},validatePortfolioSellForm:function(){var hasErrors=false;var form=$("#portfoliosellstock");var date=$("input.datepicker",form).val();var rate=$("input.rate",form).val();var amount=$("input.amount",form).val();var transcost=$("input.amounttrans",form).val();var stock=$("select.portfoliostock",form).val();$("ul.errors",form).html("");$("input.datepicker",form).closest("fieldset").find("label").removeClass("error");$("input.rate",form).closest("fieldset").find("label").removeClass("error");$("input.amount",form).closest("fieldset").find("label").removeClass("error");$("input.transcost",form).closest("fieldset").find("label").removeClass("error");$("select.amounttrans",form).closest("fieldset").find("label").removeClass("error");if(rate==""){$("ul.errors",form).html($("ul.errors",form).html()+"<li>Aankoop koers is een verplicht veld</li>");$("input.rate",form).closest("fieldset").find("label").addClass("error");hasErrors=true}else{if(!Bel.Form.validateFloat(Bel.Form.saveNumberFormat(rate))){$("ul.errors",form).html($("ul.errors",form).html()+"<li>Verkoop koers moet een getal zijn</li>");$("input.rate",form).closest("fieldset").find("label").addClass("error");hasErrors=true}else{if(Bel.Form.saveNumberFormat(rate)<0){$("ul.errors",form).html($("ul.errors",form).html()+"<li>Verkoop koers moet een positief getal zijn</li>");$("input.rate",form).closest("fieldset").find("label").addClass("error");hasErrors=true}}}if(date==""){$("ul.errors",form).html($("ul.errors",form).html()+"<li>Datum is een verplicht veld</li>");$("input.datepicker",form).closest("fieldset").find("label").addClass("error");hasErrors=true}if(amount==""){$("ul.errors",form).html($("ul.errors",form).html()+"<li>Aantal is een verplicht veld</li>");$("input.amount",form).closest("fieldset").find("label").addClass("error");hasErrors=true}else{if(isNaN(Bel.Form.saveNumberFormat(amount))){$("ul.errors",form).html($("ul.errors",form).html()+"<li>Aantal moet een getal zijn</li>");$("input,amount",form).closest("fieldset").find("label").addClass("error");hasErrors=true}else{if(parseInt($("span.quantity",form).text())<parseInt(amount)){$("ul.errors",form).html($("ul.errors",form).html()+"<li>Kan niet meer verkopen dan gekocht</li>");$("input,amount",form).closest("fieldset").find("label").addClass("error");hasErrors=true}else{if(amount<0){$("ul.errors",form).html($("ul.errors",form).html()+"<li>Aantal moet een positief getal zijn</li>");$("input.amount",form).closest("fieldset").find("label").addClass("error");hasErrors=true}}}}if(stock==""||stock==0||typeof stock=="undefined"){$("ul.errors",form).html($("ul.errors",form).html()+"<li>Er moet een aandeel gekozen zijn</li>");$("input.amount",form).closest("fieldset").find("label").addClass("error");hasErrors=true}return(hasErrors==false)},displayNumberFormat:function(val){return val.replace(".",",")},saveNumberFormat:function(val){var saveVal=val;var regExp=/^\d{1,3}(\.?\d{3})*?(,\d+)?$/g;if(regExp.test(saveVal)){saveVal=saveVal.replace(".","")}saveVal=saveVal.replace(",",".");return saveVal}};if(typeof Bel=="undefined"){window.Bel={}}Bel.GL={select:function(index){$.ajax({url:"/gl/"+index+".html",dataType:"html",success:Bel.GL.update})},update:function(e){$(".upsdowns").html(e)}};function abnamroRss(){var FEEDS_URL="http://www.abnamromarkets.nl/rss.xml";var REFRESH_TIME=300*1000;var STUB_LEN=50;var _self=null;this.init=function(){_self=this;this.getFeeds();setInterval(function(){_self.getFeeds()},REFRESH_TIME)};this.getFeeds=function(){var entry="";var content=$("#abnamroRssContainer ul").children("li");var blockCount=0;$.jGFeed(FEEDS_URL,function(feeds){if(!feeds){return false}var content=$("#abnamroRssContainer ul").children("li");for(var i=0;i<feeds.entries.length;i++){entry=feeds.entries[i];content.eq(blockCount).html('<a href="'+entry.link+'" target="_blank">'+formatDate(entry.publishedDate)+" - "+stub(entry.title,STUB_LEN)+"</a>");blockCount++}},3)};function getMonthAsStr(m){var month=new Array(12);month[0]="jan";month[1]="feb";month[2]="mrt";month[3]="apr";month[4]="mei";month[5]="jun";month[6]="jul";month[7]="aug";month[8]="sep";month[9]="okt";month[10]="nov";month[11]="dec";return month[m]}function formatDate(date){var dateObj=new Date(date);var formattedDate=dateObj.getDate()+" "+getMonthAsStr(dateObj.getMonth());return formattedDate}function stub(srcStr,len){var maxLen=255;var stubString="...";var newStr=srcStr;if(len){maxLen=len}if(srcStr.length>maxLen){newStr=srcStr.substring(0,maxLen)+stubString}return newStr}this.init()}$(document).ready(function(){var aar=new abnamroRss()});if(typeof Bel=="undefined"){window.Bel={}}Bel.Tv={initHomepage:function(){$("ul.submenu li").click(function(){Bel.Tv.switchHomepageSourceTab($(this))});$("div.videoheadlines ul.nav a").click(function(e){e.preventDefault();Bel.Tv.switchPromoVideo($(this))})},switchHomepageSourceTab:function(tabElement){var tabNumber=tabElement.attr("class").match(/source_tab_([\d]+).*/)[1];tabElement.closest("ul").find("li").removeClass("selected");tabElement.closest("ul").find("li.source_tab_"+tabNumber).addClass("selected");tabElement.closest("div.panel").find("div.sourcevideos").addClass("hidden");tabElement.closest("div.panel").find("div.source_"+tabNumber).removeClass("hidden")},switchPromoVideo:function(promoNavElement){var promoVideoNumber=promoNavElement.closest("li").attr("class").match(/video_([\d]+).*/)[1];promoNavElement.closest("ul").find("li").removeClass("selected");promoNavElement.closest("li").addClass("selected");$("div.videoheadlines>div").addClass("hidden");$("div.videoheadlines>div.video_"+promoVideoNumber).removeClass("hidden")},initOverview:function(){$("div.videos div.filter select").change(function(){Bel.Tv.updateOverviewFilter()})},updateOverviewFilter:function(){var category=$("select#video_filter_category").val();var source=$("select#video_filter_source").val();var sort=$("select#video_filter_sort").val();var qs=[];if(category!=""){qs.push("onderwerp="+category)}if(source!=""){qs.push("bron="+source)}if(sort!=""&&sort!="datum"){qs.push("volgorde="+sort)}var queryString=qs.join("&");var url=document.location.pathname;if(queryString!=""){url+="?"+queryString}document.location=url},initEmbedButton:function(){$("a#video-embed-link").click(function(e){e.preventDefault();var popupDiv=$("div#video-embed-popup");if(popupDiv.hasClass("hidden")){popupDiv.removeClass("hidden");$("div#video-embed-popup textarea").select()}else{popupDiv.addClass("hidden")}});$("div#video-embed-popup textarea").click(function(){$(this).select()})}};Bel.RendementNavigation={navigateStock:function(event){window.location="?index="+event.currentTarget.value},navigateIndex:function(event){window.location="?index="+event.currentTarget.value}};if(typeof Bel=="undefined"){window.Bel={}}Bel.Rating={average:0,voteCasted:-1,previouslyVoted:-1,controlsEnabled:true,initRating:function(entity,identifier,currentAverage){Bel.Rating.average=currentAverage;var cookieAverage=Bel.Rating.getVoteAvgCookie(entity,identifier);if(cookieAverage!=null){Bel.Rating.average=cookieAverage;Bel.Rating.drawStars(0)}var cookieVote=Bel.Rating.getVoteCastedCookie(entity,identifier);if(cookieVote!=null){Bel.Rating.previouslyVoted=cookieVote;var feedbackElem=$("div.rating span.feedback");feedbackElem.text("(Uw waardering: "+cookieVote+")");Bel.Rating.disableControls();return}$("div.rating div.stars span").mouseover(function(){if(!Bel.Rating.controlsEnabled){return}var mouseOverStarNo=$(this).attr("id").replace(/rating_average_star_/,"");Bel.Rating.drawStars(Number(mouseOverStarNo))});$("div.rating div.stars span").mouseout(function(){if(!Bel.Rating.controlsEnabled){return}Bel.Rating.drawStars(0)});$("div.rating div.stars span").click(function(){if(!Bel.Rating.controlsEnabled){return}var mouseOverStarNo=$(this).attr("id").replace(/rating_average_star_/,"");Bel.Rating.castVote(entity,identifier,mouseOverStarNo)})},drawStars:function(mouseOverStarNo){for(var starNo=1;starNo<=5;starNo++){var cls="gray";if(starNo<=mouseOverStarNo||(Bel.Rating.voteCasted>0&&starNo<=Bel.Rating.voteCasted)){cls="red"}else{if(starNo<=Bel.Rating.average){cls="yellow"}}var starElem=$("#rating_average_star_"+starNo);starElem.attr("class",cls)}},castVote:function(entity,identifier,vote){var feedbackElem=$("div.rating span.feedback");feedbackElem.hide();$.ajax({url:"/castvote/"+entity+"/"+identifier,type:"POST",data:{vote:vote},dataType:"json",success:function(msg){Bel.Rating.voteCasted=vote;Bel.Rating.setVoteCastedCookie(entity,identifier,vote);Bel.Rating.average=Math.round(msg.rating);Bel.Rating.setVoteAvgCookie(entity,identifier,Bel.Rating.average);Bel.Rating.drawStars(0);Bel.Rating.disableControls();feedbackElem.text("(Waardering opgeslagen)");feedbackElem.show()}})},setVoteCastedCookie:function(entity,identifier,vote){var cookie_date=new Date();cookie_date.setYear(cookie_date.getFullYear()+1);var cookieName="rating_"+entity+"_"+identifier;Bel.Belegger.setCookie(cookieName,vote,cookie_date.getFullYear(),cookie_date.getMonth(),cookie_date.getDate())},getVoteCastedCookie:function(entity,identifier){var cookieName="rating_"+entity+"_"+identifier;return Bel.Belegger.getCookieValue(cookieName)},setVoteAvgCookie:function(entity,identifier,avg){var cookieName="ratingavg_"+entity+"_"+identifier;Bel.Belegger.setShortCookie(cookieName,avg,5)},getVoteAvgCookie:function(entity,identifier){var cookieName="ratingavg_"+entity+"_"+identifier;return Bel.Belegger.getCookieValue(cookieName)},disableControls:function(){Bel.Rating.controlsEnabled=false;$("div.rating div.stars").addClass("disabled")}};if(typeof Bel=="undefined"){window.Bel={}}Bel.Comments={init:function(){$("form#comment textarea.comment").keydown(function(){Bel.Form.limitText(this,255)});$("form#comment").submit(function(e){e.preventDefault();return Bel.Comments.submit()})},initCaptcha:function(){$.ajax({url:"/getcaptcha/",dataType:"html",cache:false,success:Bel.Comments.update})},update:function(e){$("#captchadv").html(e)},submit:function(){if(!Bel.Form.validateCommentForm()){return}var values=$("form#comment").serialize();$.ajax({url:"/addcomment/",dataType:"json",cache:false,success:Bel.Comments.updateComments,data:values,type:"POST"})},updateComments:function(e){var form=$("form#comment");if(e.hasError==true){$("ul.errors",form).html("");$.each(e.errors,function(key,value){$("ul.errors",form).html($("ul.errors",form).html()+"<li>"+value+"</li>");$("."+key,form).closest("fieldset").find("label").addClass("error");if(key=="captcha"){Bel.Comments.initCaptcha()}})}else{Bel.Comments.addFormdataToCookie(e.form);form.replaceWith("");$("div.commentform div.success").show();$("div.commentform div.success").removeClass("hidden")}},addCommentToList:function(formData){var newComment=$("<div></div>").addClass("comment");var header=$("<div></div>").addClass("header");header.append($("<span></span>").addClass("author").text(formData.name));header.append($("<span></span>").addClass("datetime").text(formData.added));newComment.append(header);newComment.append($("<div></div>").addClass("article").html(formData.comment_escaped));newComment.hide();var commentDiv=$("div#commentslist");commentDiv.append(newComment);var commentCount=commentDiv.find("h2>span").text();commentDiv.find("h2>span").text(Number(commentCount)+1);commentDiv.show();newComment.show("slow")},addFormdataToCookie:function(formData){var data={added:formData.added,comment_escaped:formData.comment_escaped,name:formData.name}}};if(typeof Bel=="undefined"){window.Bel={}}Bel.Homepage={headlinePosition:0,headlineInterval:null,headlineNumberOfItems:null,headlineSlideshowInterval:5000,init:function(){Bel.Homepage.initPopularLists();Bel.Homepage.initHeadlines()},initPopularLists:function(){$("div.popularpanel ul.submenu li.mostread").click(function(e){e.preventDefault();$("#popularpanel_mostcomments").addClass("hidden");$("#popularpanel_mostread").removeClass("hidden");$("div.popularpanel ul.submenu li.mostread").addClass("selected");$("div.popularpanel ul.submenu li.mostcomments").removeClass("selected")});$("div.popularpanel ul.submenu li.mostcomments").click(function(e){e.preventDefault();$("#popularpanel_mostread").addClass("hidden");$("#popularpanel_mostcomments").removeClass("hidden");$("div.popularpanel ul.submenu li.mostcomments").addClass("selected");$("div.popularpanel ul.submenu li.mostread").removeClass("selected")})},initHeadlines:function(){Bel.Homepage.numberOfItems=$("ul.headlineList li").length;$("ul.headlineList li").mouseover(function(){Bel.Homepage.stopTimer();Bel.Homepage.headlinePosition=Number($(this).attr("id").replace(/headline_pos_link_/,""));Bel.Homepage.updateView()});$("ul.headlineList li").mouseout(function(){Bel.Homepage.startTimer()});Bel.Homepage.startTimer()},updateView:function(){$("ul.headlineList li.selected").removeClass("selected");$("ul.headlineList li#headline_pos_link_"+Bel.Homepage.headlinePosition).addClass("selected");$("div.headlines>div").addClass("hidden");$("div.headlines>div#headline_pos_"+Bel.Homepage.headlinePosition).removeClass("hidden")},stopTimer:function(){window.clearInterval(Bel.Homepage.headlineInterval)},startTimer:function(){Bel.Homepage.headlineInterval=window.setInterval(Bel.Homepage.timerTick,Bel.Homepage.headlineSlideshowInterval)},timerTick:function(){Bel.Homepage.headlinePosition=(Bel.Homepage.headlinePosition+1)%Bel.Homepage.numberOfItems;Bel.Homepage.updateView()}};if(typeof Bel=="undefined"){window.Bel={}}Bel.WatchListNavigation={navigateStock:function(event){$(".addproducts fieldset span.placeholder").text($("#watchliststocknav option:selected").text())},navigateIndex:function(event){$.ajax({url:"/mijnbelegger/watchlist/stock",data:{index:event.currentTarget.value,type:"exchange"},dataType:"json",cache:false,success:Bel.WatchListNavigation.update})},navigateGroup:function(event){$.ajax({url:"/mijnbelegger/watchlist/stock",data:{index:event.currentTarget.value,type:"group"},dataType:"json",cache:false,success:Bel.WatchListNavigation.update})},update:function(e){$("#watchlistindexnav").removeAttr("disabled");$("#watchliststocknav").attr("disabled","disabled");if(e.rtype==="group"){$("#watchlistindexnav").text("");$("#watchlistindexnav").append("<option value=0>Selecteer beurs</option>");$(e.exchangeIndexes).each(function(e,data){$("#watchlistindexnav").append("<option value="+Bel.WatchListNavigation.encodeString(data.name)+">"+data.name+"</option>")})}$("#watchliststocknav").text("");$("#watchliststocknav").append("<option value=0>Selecteer aandeel</option>");if(e.rtype!="group"){$("#watchliststocknav").removeAttr("disabled");$(e.stocks).each(function(e,data){$("#watchliststocknav").append("<option value="+Bel.WatchListNavigation.encodeString(data.id)+">"+data.name+"</option>")})}},encodeString:function(str){var escaped=str.replace(/ |\/|&/g,"_");return encodeURI(escaped)},addToWatchlist:function(){$.ajax({url:"/mijnbelegger/watchlist/addwatch",data:{stock:$("#watchliststocknav option:selected").val(),formtoken:$("#formtoken").val()},dataType:"json",cache:false,success:Bel.WatchListNavigation.updateWatchList})},deleteFromWatchlist:function(id){$.ajax({url:"/mijnbelegger/watchlist/deletewatch",data:{watch:id,formtoken:$("#formtoken").val()},dataType:"json",cache:false,success:Bel.WatchListNavigation.updateWatchList})},updateWatchList:function(e){if(typeof e.message!=undefined&&e.message!=""){if(e.success==true){$(".addproducts .message").text(e.message)}else{$(".addproducts .message").html("<span class='error'>"+e.message+"</span>")}}if(typeof e.data!=undefined&&e.data!=""){$("#watchlistremove").html(e.data)}}};if(typeof Bel=="undefined"){window.Bel={}}Bel.Search={init:function(){$("input#searchinput").focus(function(){var inputElement=$(this);if(inputElement.val()=="Zoeken op Belegger.nl"){inputElement.val("")}});$("input#searchinput").blur(function(){var inputElement=$(this);if(inputElement.val()==""){inputElement.val("Zoeken op Belegger.nl")}});$("input#searchinput").closest("form").submit(function(e){var inputElement=$("input#searchinput");if(inputElement.val()=="Zoeken op Belegger.nl"){inputElement.val("")}if($.trim(inputElement.val())==""){$("div.generalerror").addClass("hidden");$("div#nosearchtermerror").removeClass("hidden");e.preventDefault();return false}else{$("div#nosearchtermerror").addClass("hidden");return true}})}};if(typeof Bel=="undefined"){window.Bel={}}Bel.PortfolioNavigation={navigateStock:function(event){var data=event.currentTarget.value.split("~~");var sign="€";if($("#portfoliogroupnav option:selected").text().toLowerCase()=="newyork"){sign="$"}if($("#portfoliogroupnav option:selected").text().toLowerCase()=="londen"){sign="p"}$(".stockactions fieldset span.placeholder").text(sign+" "+Bel.PortfolioNavigation._numberFormat(data[1],2,",","."));$(".stockactions fieldset input#buyrate").val(Bel.PortfolioNavigation._numberFormat(data[1],2,",","."))},navigateIndex:function(event){$.ajax({url:"/mijnbelegger/portefeuille/stock",data:{index:event.currentTarget.value,type:"exchange"},dataType:"json",cache:false,success:Bel.PortfolioNavigation.update})},navigateGroup:function(event){$.ajax({url:"/mijnbelegger/portefeuille/stock",data:{index:event.currentTarget.value,type:"group"},dataType:"json",cache:false,success:Bel.PortfolioNavigation.update})},encodeString:function(str){var escaped=str.replace(/ |\/|&/g,"_");return encodeURI(escaped)},update:function(e){$("#portfolioindexnav").removeAttr("disabled");$("#portfoliostocknav").attr("disabled","disabled");if(e.rtype==="group"){$("#portfolioindexnav").text("");$("#portfolioindexnav").append("<option value=0>Selecteer beurs</option>");$(e.exchangeIndexes).each(function(e,data){$("#portfolioindexnav").append("<option value="+Bel.PortfolioNavigation.encodeString(data.name)+">"+data.name+"</option>")})}$("#portfoliostocknav").text("");$("#portfoliostocknav").append("<option value=''>Selecteer aandeel</option>");if(e.rtype!="group"){$("#portfoliostocknav").removeAttr("disabled");$(e.stocks).each(function(e,data){$("#portfoliostocknav").append("<option value="+Bel.PortfolioNavigation.encodeString(data.id)+"~~"+Bel.PortfolioNavigation.encodeString(data.rate_current)+">"+data.name+"</option>")})}},updateSellData:function(e){var selectedPortFolio=$(".mijnbelegger .walletsell fieldset #portfoliosellstocknav option:selected").val();$.ajax({url:"/mijnbelegger/portefeuille.verkopen/select",data:{stock:e.currentTarget.value,portfolio:selectedPortFolio},dataType:"html",cache:false,success:Bel.PortfolioNavigation.updateSellResult,type:"POST"})},updateSellResult:function(e){$(".walletsell #walletsellcontainer").html(e);$("#portfoliostock").change(function(e){Bel.Portfolio.updateStockSellData(e)})},updateTransactionList:function(e){window.location="/mijnbelegger/portefeuille.transacties?portfolio="+e.currentTarget.value},_numberFormat:function(number,decimals,dec_point,thousands_sep){number=(number+"").replace(/[^0-9+\-Ee.]/g,"");var n=!isFinite(+number)?0:+number,prec=!isFinite(+decimals)?0:Math.abs(decimals),sep=(typeof thousands_sep==="undefined")?",":thousands_sep,dec=(typeof dec_point==="undefined")?".":dec_point,s="",toFixedFix=function(n,prec){var k=Math.pow(10,prec);return""+Math.round(n*k)/k};s=(prec?toFixedFix(n,prec):""+Math.round(n)).split(".");if(s[0].length>3){s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,sep)}if((s[1]||"").length<prec){s[1]=s[1]||"";s[1]+=new Array(prec-s[1].length+1).join("0")}return s.join(dec)}};Bel.Portfolio={addPortfolio:function(form){$.ajax({url:"/mijnbelegger/portefeuille.beheer/add",data:{name:$("#portfolioname",form).val(),formtoken:$("#formtoken").val()},dataType:"json",cache:false,success:function(e){if(typeof e.message!=undefined&&e.message!=""){if(e.success==true){$(".addproducts .message").text(e.message)}else{$(".addproducts .message").html("<span class='error'>"+e.message+"</span>")}}if(typeof e.data!=undefined&&e.data!=""){$("#portfolioremoveproducts").html(e.data)}},type:"POST"})},deletePortfolio:function(id){var answer=confirm("Weet u zeker dat u de portefeuille wilt verwijderen?");if(answer==false){return}$.ajax({url:"/mijnbelegger/portefeuille.beheer/delete",data:{portfolio:id,formtoken:$("#formtoken").val()},dataType:"json",cache:false,success:function(e){if(typeof e.message!=undefined&&e.message!=""){if(e.success==true){$(".addproducts .message").text(e.message)}else{$(".addproducts .message").html("<span class='error'>"+e.message+"</span>")}}if(typeof e.data!=undefined&&e.data!=""){$("#portfolioremoveproducts").html(e.data)}},type:"POST"})},addStockToPortfolio:function(form){$(".stockactions .message").text("");if(Bel.Form.validatePortfolioForm()){var selectedPortFolio=$(".mijnbelegger .walletbuy fieldset #portfolioselect option:selected").val();var form=$("#portfoliobuystock");var date=$("input.datepicker",form).val();var rate=$("input.rate",form).val();var amount=$("input.amount",form).val();var transcost=$("input.amounttrans",form).val();var stock=$("select.portfoliostock",form).val().split("~~")[0];$.ajax({url:"/mijnbelegger/portefeuille.kopen/add",data:{portfolio:selectedPortFolio,amount:amount,date:date,rate:rate,transcost:transcost,stock:stock,formtoken:$("#formtoken").val()},dataType:"json",cache:false,success:Bel.Portfolio.addPortfolioUpdate,type:"POST"})}},removeStockFromPortfolio:function(form){$(".stockactions .message").text("");if(Bel.Form.validatePortfolioSellForm()){var selectedPortFolio=$(".mijnbelegger .walletsell fieldset #portfoliosellstocknav option:selected").val();var form=$("#portfoliosellstock");var date=$("input.datepicker",form).val();var rate=Bel.Form.saveNumberFormat($("input.rate",form).val());var amount=$("input.amount",form).val();var transcost=Bel.Form.saveNumberFormat($("input.amounttrans",form).val());var stock=$("select.portfoliostock",form).val().split("~~")[0];$.ajax({url:"/mijnbelegger/portefeuille.verkopen/sell",data:{portfolio:selectedPortFolio,amount:amount,date:date,rate:rate,transcost:transcost,stock:stock,formtoken:$("#formtoken").val()},dataType:"json",cache:false,success:Bel.Portfolio.removePortfolioUpdate,type:"POST"})}},addPortfolioUpdate:function(e){if(typeof e.message!=undefined&&e.message!=""){if(e.success==true){$(".stockactions .message").text(e.message)}else{$(".stockactions .message").html("<span class='error'>"+e.message+"</span>")}}$("#portfoliostocknav option:first-child").attr("selected","selected")},removePortfolioUpdate:function(e){$(".walletsell #walletsellcontainer").html(e.data);if(typeof e.message!=undefined&&e.message!=""){if(e.success==true){$("#walletsellcontainer .message").text(e.message)}else{$("#walletsellcontainer .message").html("<span class='error'>"+e.message+"</span>")}}$("#portfoliostocknav option:first-child").attr("selected","selected")},changePortFolio:function(e){$.ajax({url:"/mijnbelegger/portefeuille/portfolio",data:{portfolio:e.currentTarget.value},dataType:"html",cache:false,success:Bel.Portfolio.updatePortfolioList,type:"POST"})},updatePortfolioList:function(e){$("#portfoliostocks").html(e)},updateStockSellData:function(e){var selectedPortFolio=$(".mijnbelegger .walletsell fieldset #portfoliosellstocknav option:selected").val();$.ajax({url:"/mijnbelegger/portefeuille.verkopen/data",data:{portfolio:selectedPortFolio,stock:e.currentTarget.value},dataType:"json",cache:false,success:Bel.Portfolio.updatePortfolio,type:"POST"})},updatePortfolio:function(e){var sign="€";if(e.country!=null&&e.country.toLowerCase()=="us"){sign="$"}if(e.country!=null&&e.country.toLowerCase()=="gb"){sign="p"}$(".stockactions .quantity").text(e.quantity);$(".stockactions .bought").text(sign+" "+Bel.Form.displayNumberFormat(parseFloat(e.rate_bought).toFixed(2)));$(".stockactions .current").text(sign+" "+Bel.Form.displayNumberFormat(parseFloat(e.rate_current).toFixed(2)));$(".stockactions #sellrate").val(Bel.Form.displayNumberFormat(parseFloat(e.rate_current).toFixed(2)))},updatePortfolioSaldo:function(e){var selectedPortFolio=$(".mijnbelegger .walletsell fieldset #portfoliosaldostocknav option:selected").val();$.ajax({url:"/mijnbelegger/portefeuille.saldo/portfolio",data:{portfolio:selectedPortFolio,stock:e.currentTarget.value},dataType:"json",cache:false,success:function(e){$(".stockactions .currentsaldo").text("€ "+Bel.Form.displayNumberFormat(e.credit));$(".stockactions input.saldo").val(e.credit);var credit=parseFloat(e.credit);var buy=parseFloat(Bel.Form.saveNumberFormat($(".stockactions .sellsaldo").val()));var total=credit;if(!isNaN(buy)){if($(".stockactions input:radio[name=type]:checked").val()=="s"){total=buy+credit}else{total=credit-buy}}$(".stockactions .newsaldo").text("€ "+Bel.Form.displayNumberFormat(total.toFixed(2)))},error:function(e){$(".walletsell span.message").html('<span class="error"> Er is een fout opgetreden tijdens het wisselen van je portefeuilles, probeer het nog een keer </span>')},type:"POST"})},updateSaldoField:function(e){var credit=parseFloat($(".stockactions input.saldo").val());var buy=parseFloat(Bel.Form.saveNumberFormat($(".stockactions .sellsaldo").val()));var total=credit;if(!isNaN(buy)){if($(".stockactions input:radio[name=type]:checked").val()=="s"){total=buy+credit}else{total=credit-buy}}$(".stockactions .newsaldo").text("€ "+Bel.Form.displayNumberFormat(total.toFixed(2)))},updateSaldo:function(e){var credit=parseFloat($(".stockactions input.saldo").val());var buy=parseFloat(Bel.Form.saveNumberFormat($(".stockactions .sellsaldo").val()));var total=credit;if(!isNaN(buy)){if($(".stockactions input:radio[name=type]:checked").val()=="s"){total=buy+credit}else{total=credit-buy}}var selectedPortFolio=$(".mijnbelegger .walletsell fieldset #portfoliosaldostocknav option:selected").val();$.ajax({url:"/mijnbelegger/portefeuille.saldo/change",data:{portfolio:selectedPortFolio,saldo:total,formtoken:$("#formtoken").val()},dataType:"html",cache:false,success:function(e){$(".walletsell span.message").html(e);$(".stockactions .currentsaldo").text("€ "+Bel.Form.displayNumberFormat(total.toFixed(2)));$(".stockactions input.saldo").val(total)},error:function(e){$(".walletsell span.message").html('<span class="error"> Er is een fout opgetreden tijdens het wisselen van je portefeuilles, probeer het nog een keer </span>')},type:"POST"})}};
