/*
 * jQuery 1.2.6 - New Wave Javascript
 *
 * Copyright (c) 2008 John Resig (jquery.com)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * $Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008) $
 * $Rev: 5685 $
 */
(function(){var _jQuery=window.jQuery,_$=window.$;var jQuery=window.jQuery=window.$=function(selector,context){return new jQuery.fn.init(selector,context);};var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,isSimple=/^.[^:#\[\.]*$/,undefined;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;return this;}if(typeof selector=="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1])selector=jQuery.clean([match[1]],context);else{var elem=document.getElementById(match[3]);if(elem){if(elem.id!=match[3])return jQuery().find(selector);return jQuery(elem);}selector=[];}}else
return jQuery(context).find(selector);}else if(jQuery.isFunction(selector))return jQuery(document)[jQuery.fn.ready?"ready":"load"](selector);return this.setArray(jQuery.makeArray(selector));},jquery:"1.2.6",size:function(){return this.length;},length:0,get:function(num){return num==undefined?jQuery.makeArray(this):this[num];},pushStack:function(elems){var ret=jQuery(elems);ret.prevObject=this;return ret;},setArray:function(elems){this.length=0;Array.prototype.push.apply(this,elems);return this;},each:function(callback,args){return jQuery.each(this,callback,args);},index:function(elem){var ret=-1;return jQuery.inArray(elem&&elem.jquery?elem[0]:elem,this);},attr:function(name,value,type){var options=name;if(name.constructor==String)if(value===undefined)return this[0]&&jQuery[type||"attr"](this[0],name);else{options={};options[name]=value;}return this.each(function(i){for(name in options)jQuery.attr(type?this.style:this,name,jQuery.prop(this,options[name],type,i,name));});},css:function(key,value){if((key=='width'||key=='height')&&parseFloat(value)<0)value=undefined;return this.attr(key,value,"curCSS");},text:function(text){if(typeof text!="object"&&text!=null)return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text));var ret="";jQuery.each(text||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8)ret+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this]);});});return ret;},wrapAll:function(html){if(this[0])jQuery(html,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var elem=this;while(elem.firstChild)elem=elem.firstChild;return elem;}).append(this);return this;},wrapInner:function(html){return this.each(function(){jQuery(this).contents().wrapAll(html);});},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html);});},append:function(){return this.domManip(arguments,true,false,function(elem){if(this.nodeType==1)this.appendChild(elem);});},prepend:function(){return this.domManip(arguments,true,true,function(elem){if(this.nodeType==1)this.insertBefore(elem,this.firstChild);});},before:function(){return this.domManip(arguments,false,false,function(elem){this.parentNode.insertBefore(elem,this);});},after:function(){return this.domManip(arguments,false,true,function(elem){this.parentNode.insertBefore(elem,this.nextSibling);});},end:function(){return this.prevObject||jQuery([]);},find:function(selector){var elems=jQuery.map(this,function(elem){return jQuery.find(selector,elem);});return this.pushStack(/[^+>] [^+>]/.test(selector)||selector.indexOf("..")>-1?jQuery.unique(elems):elems);},clone:function(events){var ret=this.map(function(){if(jQuery.browser.msie&&!jQuery.isXMLDoc(this)){var clone=this.cloneNode(true),container=document.createElement("div");container.appendChild(clone);return jQuery.clean([container.innerHTML])[0];}else
return this.cloneNode(true);});var clone=ret.find("*").andSelf().each(function(){if(this[expando]!=undefined)this[expando]=null;});if(events===true)this.find("*").andSelf().each(function(i){if(this.nodeType==3)return;var events=jQuery.data(this,"events");for(var type in events)for(var handler in events[type])jQuery.event.add(clone[i],type,events[type][handler],events[type][handler].data);});return ret;},filter:function(selector){return this.pushStack(jQuery.isFunction(selector)&&jQuery.grep(this,function(elem,i){return selector.call(elem,i);})||jQuery.multiFilter(selector,this));},not:function(selector){if(selector.constructor==String)if(isSimple.test(selector))return this.pushStack(jQuery.multiFilter(selector,this,true));else
selector=jQuery.multiFilter(selector,this);var isArrayLike=selector.length&&selector[selector.length-1]!==undefined&&!selector.nodeType;return this.filter(function(){return isArrayLike?jQuery.inArray(this,selector)<0:this!=selector;});},add:function(selector){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),typeof selector=='string'?jQuery(selector):jQuery.makeArray(selector))));},is:function(selector){return!!selector&&jQuery.multiFilter(selector,this).length>0;},hasClass:function(selector){return this.is("."+selector);},val:function(value){if(value==undefined){if(this.length){var elem=this[0];if(jQuery.nodeName(elem,"select")){var 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){value=jQuery.browser.msie&&!option.attributes.value.specified?option.text:option.value;if(one)return value;values.push(value);}}return values;}else
return(this[0].value||"").replace(/\r/g,"");}return undefined;}if(value.constructor==Number)value+='';return this.each(function(){if(this.nodeType!=1)return;if(value.constructor==Array&&/radio|checkbox/.test(this.type))this.checked=(jQuery.inArray(this.value,value)>=0||jQuery.inArray(this.name,value)>=0);else if(jQuery.nodeName(this,"select")){var values=jQuery.makeArray(value);jQuery("option",this).each(function(){this.selected=(jQuery.inArray(this.value,values)>=0||jQuery.inArray(this.text,values)>=0);});if(!values.length)this.selectedIndex=-1;}else
this.value=value;});},html:function(value){return value==undefined?(this[0]?this[0].innerHTML:null):this.empty().append(value);},replaceWith:function(value){return this.after(value).remove();},eq:function(i){return this.slice(i,i+1);},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments));},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem);}));},andSelf:function(){return this.add(this.prevObject);},data:function(key,value){var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);if(data===undefined&&this.length)data=jQuery.data(this[0],key);return data===undefined&&parts[1]?this.data(parts[0]):data;}else
return this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){jQuery.data(this,key,value);});},removeData:function(key){return this.each(function(){jQuery.removeData(this,key);});},domManip:function(args,table,reverse,callback){var clone=this.length>1,elems;return this.each(function(){if(!elems){elems=jQuery.clean(args,this.ownerDocument);if(reverse)elems.reverse();}var obj=this;if(table&&jQuery.nodeName(this,"table")&&jQuery.nodeName(elems[0],"tr"))obj=this.getElementsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody"));var scripts=jQuery([]);jQuery.each(elems,function(){var elem=clone?jQuery(this).clone(true)[0]:this;if(jQuery.nodeName(elem,"script"))scripts=scripts.add(elem);else{if(elem.nodeType==1)scripts=scripts.add(jQuery("script",elem).remove());callback.call(obj,elem);}});scripts.each(evalScript);});}};jQuery.fn.init.prototype=jQuery.fn;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||"");if(elem.parentNode)elem.parentNode.removeChild(elem);}function now(){return+new Date;}jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(target.constructor==Boolean){deep=target;target=arguments[1]||{};i=2;}if(typeof target!="object"&&typeof target!="function")target={};if(length==i){target=this;--i;}for(;i<length;i++)if((options=arguments[i])!=null)for(var name in options){var src=target[name],copy=options[name];if(target===copy)continue;if(deep&&copy&&typeof copy=="object"&&!copy.nodeType)target[name]=jQuery.extend(deep,src||(copy.length!=null?[]:{}),copy);else if(copy!==undefined)target[name]=copy;}return target;};var expando="jQuery"+now(),uuid=0,windowData={},exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i,defaultView=document.defaultView||{};jQuery.extend({noConflict:function(deep){window.$=_$;if(deep)window.jQuery=_jQuery;return jQuery;},isFunction:function(fn){return!!fn&&typeof fn!="string"&&!fn.nodeName&&fn.constructor!=Array&&/^[\s[]?function/.test(fn+"");},isXMLDoc:function(elem){return elem.documentElement&&!elem.body||elem.tagName&&elem.ownerDocument&&!elem.ownerDocument.body;},globalEval:function(data){data=jQuery.trim(data);if(data){var head=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(jQuery.browser.msie)script.text=data;else
script.appendChild(document.createTextNode(data));head.insertBefore(script,head.firstChild);head.removeChild(script);}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase();},cache:{},data:function(elem,name,data){elem=elem==window?windowData:elem;var id=elem[expando];if(!id)id=elem[expando]=++uuid;if(name&&!jQuery.cache[id])jQuery.cache[id]={};if(data!==undefined)jQuery.cache[id][name]=data;return name?jQuery.cache[id][name]:id;},removeData:function(elem,name){elem=elem==window?windowData:elem;var id=elem[expando];if(name){if(jQuery.cache[id]){delete jQuery.cache[id][name];name="";for(name in jQuery.cache[id])break;if(!name)jQuery.removeData(elem);}}else{try{delete elem[expando];}catch(e){if(elem.removeAttribute)elem.removeAttribute(expando);}delete jQuery.cache[id];}},each:function(object,callback,args){var name,i=0,length=object.length;if(args){if(length==undefined){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(length==undefined){for(name in object)if(callback.call(object[name],name,object[name])===false)break;}else
for(var value=object[0];i<length&&callback.call(value,i,value)!==false;value=object[++i]){}}return object;},prop:function(elem,value,type,i,name){if(jQuery.isFunction(value))value=value.call(elem,i);return value&&value.constructor==Number&&type=="curCSS"&&!exclude.test(name)?value+"px":value;},className:{add:function(elem,classNames){jQuery.each((classNames||"").split(/\s+/),function(i,className){if(elem.nodeType==1&&!jQuery.className.has(elem.className,className))elem.className+=(elem.className?" ":"")+className;});},remove:function(elem,classNames){if(elem.nodeType==1)elem.className=classNames!=undefined?jQuery.grep(elem.className.split(/\s+/),function(className){return!jQuery.className.has(classNames,className);}).join(" "):"";},has:function(elem,className){return jQuery.inArray(className,(elem.className||elem).toString().split(/\s+/))>-1;}},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(var name in options)elem.style[name]=old[name];},css:function(elem,name,force){if(name=="width"||name=="height"){var val,props={position:"absolute",visibility:"hidden",display:"block"},which=name=="width"?["Left","Right"]:["Top","Bottom"];function getWH(){val=name=="width"?elem.offsetWidth:elem.offsetHeight;var padding=0,border=0;jQuery.each(which,function(){padding+=parseFloat(jQuery.curCSS(elem,"padding"+this,true))||0;border+=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0;});val-=Math.round(padding+border);}if(jQuery(elem).is(":visible"))getWH();else
jQuery.swap(elem,props,getWH);return Math.max(0,val);}return jQuery.curCSS(elem,name,force);},curCSS:function(elem,name,force){var ret,style=elem.style;function color(elem){if(!jQuery.browser.safari)return false;var ret=defaultView.getComputedStyle(elem,null);return!ret||ret.getPropertyValue("color")=="";}if(name=="opacity"&&jQuery.browser.msie){ret=jQuery.attr(style,"opacity");return ret==""?"1":ret;}if(jQuery.browser.opera&&name=="display"){var save=style.outline;style.outline="0 solid black";style.outline=save;}if(name.match(/float/i))name=styleFloat;if(!force&&style&&style[name])ret=style[name];else if(defaultView.getComputedStyle){if(name.match(/float/i))name="float";name=name.replace(/([A-Z])/g,"-$1").toLowerCase();var computedStyle=defaultView.getComputedStyle(elem,null);if(computedStyle&&!color(elem))ret=computedStyle.getPropertyValue(name);else{var swap=[],stack=[],a=elem,i=0;for(;a&&color(a);a=a.parentNode)stack.unshift(a);for(;i<stack.length;i++)if(color(stack[i])){swap[i]=stack[i].style.display;stack[i].style.display="block";}ret=name=="display"&&swap[stack.length-1]!=null?"none":(computedStyle&&computedStyle.getPropertyValue(name))||"";for(i=0;i<swap.length;i++)if(swap[i]!=null)stack[i].style.display=swap[i];}if(name=="opacity"&&ret=="")ret="1";}else if(elem.currentStyle){var camelCase=name.replace(/\-(\w)/g,function(all,letter){return letter.toUpperCase();});ret=elem.currentStyle[name]||elem.currentStyle[camelCase];if(!/^\d+(px)?$/i.test(ret)&&/^\d/.test(ret)){var left=style.left,rsLeft=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;style.left=ret||0;ret=style.pixelLeft+"px";style.left=left;elem.runtimeStyle.left=rsLeft;}}return ret;},clean:function(elems,context){var ret=[];context=context||document;if(typeof context.createElement=='undefined')context=context.ownerDocument||context[0]&&context[0].ownerDocument||document;jQuery.each(elems,function(i,elem){if(!elem)return;if(elem.constructor==Number)elem+='';if(typeof elem=="string"){elem=elem.replace(/(<(\w+)[^>]*?)\/>/g,function(all,front,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:front+"></"+tag+">";});var tags=jQuery.trim(elem).toLowerCase(),div=context.createElement("div");var wrap=!tags.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!tags.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||tags.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!tags.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!tags.indexOf("<td")||!tags.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!tags.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||jQuery.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];div.innerHTML=wrap[1]+elem+wrap[2];while(wrap[0]--)div=div.lastChild;if(jQuery.browser.msie){var tbody=!tags.indexOf("<table")&&tags.indexOf("<tbody")<0?div.firstChild&&div.firstChild.childNodes:wrap[1]=="<table>"&&tags.indexOf("<tbody")<0?div.childNodes:[];for(var j=tbody.length-1;j>=0;--j)if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length)tbody[j].parentNode.removeChild(tbody[j]);if(/^\s/.test(elem))div.insertBefore(context.createTextNode(elem.match(/^\s*/)[0]),div.firstChild);}elem=jQuery.makeArray(div.childNodes);}if(elem.length===0&&(!jQuery.nodeName(elem,"form")&&!jQuery.nodeName(elem,"select")))return;if(elem[0]==undefined||jQuery.nodeName(elem,"form")||elem.options)ret.push(elem);else
ret=jQuery.merge(ret,elem);});return ret;},attr:function(elem,name,value){if(!elem||elem.nodeType==3||elem.nodeType==8)return undefined;var notxml=!jQuery.isXMLDoc(elem),set=value!==undefined,msie=jQuery.browser.msie;name=notxml&&jQuery.props[name]||name;if(elem.tagName){var special=/href|src|style/.test(name);if(name=="selected"&&jQuery.browser.safari)elem.parentNode.selectedIndex;if(name in elem&&notxml&&!special){if(set){if(name=="type"&&jQuery.nodeName(elem,"input")&&elem.parentNode)throw"type property can't be changed";elem[name]=value;}if(jQuery.nodeName(elem,"form")&&elem.getAttributeNode(name))return elem.getAttributeNode(name).nodeValue;return elem[name];}if(msie&&notxml&&name=="style")return jQuery.attr(elem.style,"cssText",value);if(set)elem.setAttribute(name,""+value);var attr=msie&&notxml&&special?elem.getAttribute(name,2):elem.getAttribute(name);return attr===null?undefined:attr;}if(msie&&name=="opacity"){if(set){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(value)+''=="NaN"?"":"alpha(opacity="+value*100+")");}return elem.filter&&elem.filter.indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100)+'':"";}name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase();});if(set)elem[name]=value;return elem[name];},trim:function(text){return(text||"").replace(/^\s+|\s+$/g,"");},makeArray:function(array){var ret=[];if(array!=null){var i=array.length;if(i==null||array.split||array.setInterval||array.call)ret[0]=array;else
while(i)ret[--i]=array[i];}return ret;},inArray:function(elem,array){for(var i=0,length=array.length;i<length;i++)if(array[i]===elem)return i;return-1;},merge:function(first,second){var i=0,elem,pos=first.length;if(jQuery.browser.msie){while(elem=second[i++])if(elem.nodeType!=8)first[pos++]=elem;}else
while(elem=second[i++])first[pos++]=elem;return first;},unique:function(array){var ret=[],done={};try{for(var i=0,length=array.length;i<length;i++){var id=jQuery.data(array[i]);if(!done[id]){done[id]=true;ret.push(array[i]);}}}catch(e){ret=array;}return ret;},grep:function(elems,callback,inv){var ret=[];for(var i=0,length=elems.length;i<length;i++)if(!inv!=!callback(elems[i],i))ret.push(elems[i]);return ret;},map:function(elems,callback){var ret=[];for(var i=0,length=elems.length;i<length;i++){var value=callback(elems[i],i);if(value!=null)ret[ret.length]=value;}return ret.concat.apply([],ret);}});var userAgent=navigator.userAgent.toLowerCase();jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};var styleFloat=jQuery.browser.msie?"styleFloat":"cssFloat";jQuery.extend({boxModel:!jQuery.browser.msie||document.compatMode=="CSS1Compat",props:{"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing"}});jQuery.each({parent:function(elem){return elem.parentNode;},parents:function(elem){return jQuery.dir(elem,"parentNode");},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");},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(selector){var ret=jQuery.map(this,fn);if(selector&&typeof selector=="string")ret=jQuery.multiFilter(selector,ret);return this.pushStack(jQuery.unique(ret));};});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(){var args=arguments;return this.each(function(){for(var i=0,length=args.length;i<length;i++)jQuery(args[i])[original](this);});};});jQuery.each({removeAttr:function(name){jQuery.attr(this,name,"");if(this.nodeType==1)this.removeAttribute(name);},addClass:function(classNames){jQuery.className.add(this,classNames);},removeClass:function(classNames){jQuery.className.remove(this,classNames);},toggleClass:function(classNames){jQuery.className[jQuery.className.has(this,classNames)?"remove":"add"](this,classNames);},remove:function(selector){if(!selector||jQuery.filter(selector,[this]).r.length){jQuery("*",this).add(this).each(function(){jQuery.event.remove(this);jQuery.removeData(this);});if(this.parentNode)this.parentNode.removeChild(this);}},empty:function(){jQuery(">*",this).remove();while(this.firstChild)this.removeChild(this.firstChild);}},function(name,fn){jQuery.fn[name]=function(){return this.each(fn,arguments);};});jQuery.each(["Height","Width"],function(i,name){var type=name.toLowerCase();jQuery.fn[type]=function(size){return this[0]==window?jQuery.browser.opera&&document.body["client"+name]||jQuery.browser.safari&&window["inner"+name]||document.compatMode=="CSS1Compat"&&document.documentElement["client"+name]||document.body["client"+name]:this[0]==document?Math.max(Math.max(document.body["scroll"+name],document.documentElement["scroll"+name]),Math.max(document.body["offset"+name],document.documentElement["offset"+name])):size==undefined?(this.length?jQuery.css(this[0],type):null):this.css(type,size.constructor==String?size:size+"px");};});function num(elem,prop){return elem[0]&&parseInt(jQuery.curCSS(elem[0],prop,true),10)||0;}var chars=jQuery.browser.safari&&parseInt(jQuery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uFFFF*_-]|\\\\.)",quickChild=new RegExp("^>\\s*("+chars+"+)"),quickID=new RegExp("^("+chars+"+)(#)("+chars+"+)"),quickClass=new RegExp("^([#.]?)("+chars+"*)");jQuery.extend({expr:{"":function(a,i,m){return m[2]=="*"||jQuery.nodeName(a,m[2]);},"#":function(a,i,m){return a.getAttribute("id")==m[2];},":":{lt:function(a,i,m){return i<m[3]-0;},gt:function(a,i,m){return i>m[3]-0;},nth:function(a,i,m){return m[3]-0==i;},eq:function(a,i,m){return m[3]-0==i;},first:function(a,i){return i==0;},last:function(a,i,m,r){return i==r.length-1;},even:function(a,i){return i%2==0;},odd:function(a,i){return i%2;},"first-child":function(a){return a.parentNode.getElementsByTagName("*")[0]==a;},"last-child":function(a){return jQuery.nth(a.parentNode.lastChild,1,"previousSibling")==a;},"only-child":function(a){return!jQuery.nth(a.parentNode.lastChild,2,"previousSibling");},parent:function(a){return a.firstChild;},empty:function(a){return!a.firstChild;},contains:function(a,i,m){return(a.textContent||a.innerText||jQuery(a).text()||"").indexOf(m[3])>=0;},visible:function(a){return"hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden";},hidden:function(a){return"hidden"==a.type||jQuery.css(a,"display")=="none"||jQuery.css(a,"visibility")=="hidden";},enabled:function(a){return!a.disabled;},disabled:function(a){return a.disabled;},checked:function(a){return a.checked;},selected:function(a){return a.selected||jQuery.attr(a,"selected");},text:function(a){return"text"==a.type;},radio:function(a){return"radio"==a.type;},checkbox:function(a){return"checkbox"==a.type;},file:function(a){return"file"==a.type;},password:function(a){return"password"==a.type;},submit:function(a){return"submit"==a.type;},image:function(a){return"image"==a.type;},reset:function(a){return"reset"==a.type;},button:function(a){return"button"==a.type||jQuery.nodeName(a,"button");},input:function(a){return/input|select|textarea|button/i.test(a.nodeName);},has:function(a,i,m){return jQuery.find(m[3],a).length;},header:function(a){return/h\d/i.test(a.nodeName);},animated:function(a){return jQuery.grep(jQuery.timers,function(fn){return a==fn.elem;}).length;}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+chars+"+)")],multiFilter:function(expr,elems,not){var old,cur=[];while(expr&&expr!=old){old=expr;var f=jQuery.filter(expr,elems,not);expr=f.t.replace(/^\s*,\s*/,"");cur=not?elems=f.r:jQuery.merge(cur,f.r);}return cur;},find:function(t,context){if(typeof t!="string")return[t];if(context&&context.nodeType!=1&&context.nodeType!=9)return[];context=context||document;var ret=[context],done=[],last,nodeName;while(t&&last!=t){var r=[];last=t;t=jQuery.trim(t);var foundToken=false,re=quickChild,m=re.exec(t);if(m){nodeName=m[1].toUpperCase();for(var i=0;ret[i];i++)for(var c=ret[i].firstChild;c;c=c.nextSibling)if(c.nodeType==1&&(nodeName=="*"||c.nodeName.toUpperCase()==nodeName))r.push(c);ret=r;t=t.replace(re,"");if(t.indexOf(" ")==0)continue;foundToken=true;}else{re=/^([>+~])\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var merge={};nodeName=m[2].toUpperCase();m=m[1];for(var j=0,rl=ret.length;j<rl;j++){var n=m=="~"||m=="+"?ret[j].nextSibling:ret[j].firstChild;for(;n;n=n.nextSibling)if(n.nodeType==1){var id=jQuery.data(n);if(m=="~"&&merge[id])break;if(!nodeName||n.nodeName.toUpperCase()==nodeName){if(m=="~")merge[id]=true;r.push(n);}if(m=="+")break;}}ret=r;t=jQuery.trim(t.replace(re,""));foundToken=true;}}if(t&&!foundToken){if(!t.indexOf(",")){if(context==ret[0])ret.shift();done=jQuery.merge(done,ret);r=ret=[context];t=" "+t.substr(1,t.length);}else{var re2=quickID;var m=re2.exec(t);if(m){m=[0,m[2],m[3],m[1]];}else{re2=quickClass;m=re2.exec(t);}m[2]=m[2].replace(/\\/g,"");var elem=ret[ret.length-1];if(m[1]=="#"&&elem&&elem.getElementById&&!jQuery.isXMLDoc(elem)){var oid=elem.getElementById(m[2]);if((jQuery.browser.msie||jQuery.browser.opera)&&oid&&typeof oid.id=="string"&&oid.id!=m[2])oid=jQuery('[@id="'+m[2]+'"]',elem)[0];ret=r=oid&&(!m[3]||jQuery.nodeName(oid,m[3]))?[oid]:[];}else{for(var i=0;ret[i];i++){var tag=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];if(tag=="*"&&ret[i].nodeName.toLowerCase()=="object")tag="param";r=jQuery.merge(r,ret[i].getElementsByTagName(tag));}if(m[1]==".")r=jQuery.classFilter(r,m[2]);if(m[1]=="#"){var tmp=[];for(var i=0;r[i];i++)if(r[i].getAttribute("id")==m[2]){tmp=[r[i]];break;}r=tmp;}ret=r;}t=t.replace(re2,"");}}if(t){var val=jQuery.filter(t,r);ret=r=val.r;t=jQuery.trim(val.t);}}if(t)ret=[];if(ret&&context==ret[0])ret.shift();done=jQuery.merge(done,ret);return done;},classFilter:function(r,m,not){m=" "+m+" ";var tmp=[];for(var i=0;r[i];i++){var pass=(" "+r[i].className+" ").indexOf(m)>=0;if(!not&&pass||not&&!pass)tmp.push(r[i]);}return tmp;},filter:function(t,r,not){var last;while(t&&t!=last){last=t;var p=jQuery.parse,m;for(var i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,"");break;}}if(!m)break;if(m[1]==":"&&m[2]=="not")r=isSimple.test(m[3])?jQuery.filter(m[3],r,true).r:jQuery(r).not(m[3]);else if(m[1]==".")r=jQuery.classFilter(r,m[2],not);else if(m[1]=="["){var tmp=[],type=m[3];for(var i=0,rl=r.length;i<rl;i++){var a=r[i],z=a[jQuery.props[m[2]]||m[2]];if(z==null||/href|src|selected/.test(m[2]))z=jQuery.attr(a,m[2])||'';if((type==""&&!!z||type=="="&&z==m[5]||type=="!="&&z!=m[5]||type=="^="&&z&&!z.indexOf(m[5])||type=="$="&&z.substr(z.length-m[5].length)==m[5]||(type=="*="||type=="~=")&&z.indexOf(m[5])>=0)^not)tmp.push(a);}r=tmp;}else if(m[1]==":"&&m[2]=="nth-child"){var merge={},tmp=[],test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"0n+"+m[3]||m[3]),first=(test[1]+(test[2]||1))-0,last=test[3]-0;for(var i=0,rl=r.length;i<rl;i++){var node=r[i],parentNode=node.parentNode,id=jQuery.data(parentNode);if(!merge[id]){var c=1;for(var n=parentNode.firstChild;n;n=n.nextSibling)if(n.nodeType==1)n.nodeIndex=c++;merge[id]=true;}var add=false;if(first==0){if(node.nodeIndex==last)add=true;}else if((node.nodeIndex-last)%first==0&&(node.nodeIndex-last)/first>=0)add=true;if(add^not)tmp.push(node);}r=tmp;}else{var fn=jQuery.expr[m[1]];if(typeof fn=="object")fn=fn[m[2]];if(typeof fn=="string")fn=eval("false||function(a,i){return "+fn+";}");r=jQuery.grep(r,function(elem,i){return fn(elem,i,m,r);},not);}}return{r:r,t:t};},dir:function(elem,dir){var matched=[],cur=elem[dir];while(cur&&cur!=document){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;}});jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType==3||elem.nodeType==8)return;if(jQuery.browser.msie&&elem.setInterval)elem=window;if(!handler.guid)handler.guid=this.guid++;if(data!=undefined){var fn=handler;handler=this.proxy(fn,function(){return fn.apply(this,arguments);});handler.data=data;}var events=jQuery.data(elem,"events")||jQuery.data(elem,"events",{}),handle=jQuery.data(elem,"handle")||jQuery.data(elem,"handle",function(){if(typeof jQuery!="undefined"&&!jQuery.event.triggered)return jQuery.event.handle.apply(arguments.callee.elem,arguments);});handle.elem=elem;jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];handler.type=parts[1];var handlers=events[type];if(!handlers){handlers=events[type]={};if(!jQuery.event.special[type]||jQuery.event.special[type].setup.call(elem)===false){if(elem.addEventListener)elem.addEventListener(type,handle,false);else if(elem.attachEvent)elem.attachEvent("on"+type,handle);}}handlers[handler.guid]=handler;jQuery.event.global[type]=true;});elem=null;},guid:1,global:{},remove:function(elem,types,handler){if(elem.nodeType==3||elem.nodeType==8)return;var events=jQuery.data(elem,"events"),ret,index;if(events){if(types==undefined||(typeof types=="string"&&types.charAt(0)=="."))for(var type in events)this.remove(elem,type+(types||""));else{if(types.type){handler=types.handler;types=types.type;}jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];if(events[type]){if(handler)delete events[type][handler.guid];else
for(handler in events[type])if(!parts[1]||events[type][handler].type==parts[1])delete events[type][handler];for(ret in events[type])break;if(!ret){if(!jQuery.event.special[type]||jQuery.event.special[type].teardown.call(elem)===false){if(elem.removeEventListener)elem.removeEventListener(type,jQuery.data(elem,"handle"),false);else if(elem.detachEvent)elem.detachEvent("on"+type,jQuery.data(elem,"handle"));}ret=null;delete events[type];}}});}for(ret in events)break;if(!ret){var handle=jQuery.data(elem,"handle");if(handle)handle.elem=null;jQuery.removeData(elem,"events");jQuery.removeData(elem,"handle");}}},trigger:function(type,data,elem,donative,extra){data=jQuery.makeArray(data);if(type.indexOf("!")>=0){type=type.slice(0,-1);var exclusive=true;}if(!elem){if(this.global[type])jQuery("*").add([window,document]).trigger(type,data);}else{if(elem.nodeType==3||elem.nodeType==8)return undefined;var val,ret,fn=jQuery.isFunction(elem[type]||null),event=!data[0]||!data[0].preventDefault;if(event){data.unshift({type:type,target:elem,preventDefault:function(){},stopPropagation:function(){},timeStamp:now()});data[0][expando]=true;}data[0].type=type;if(exclusive)data[0].exclusive=true;var handle=jQuery.data(elem,"handle");if(handle)val=handle.apply(elem,data);if((!fn||(jQuery.nodeName(elem,'a')&&type=="click"))&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false)val=false;if(event)data.shift();if(extra&&jQuery.isFunction(extra)){ret=extra.apply(elem,val==null?data:data.concat(val));if(ret!==undefined)val=ret;}if(fn&&donative!==false&&val!==false&&!(jQuery.nodeName(elem,'a')&&type=="click")){this.triggered=true;try{elem[type]();}catch(e){}}this.triggered=false;}return val;},handle:function(event){var val,ret,namespace,all,handlers;event=arguments[0]=jQuery.event.fix(event||window.event);namespace=event.type.split(".");event.type=namespace[0];namespace=namespace[1];all=!namespace&&!event.exclusive;handlers=(jQuery.data(this,"events")||{})[event.type];for(var j in handlers){var handler=handlers[j];if(all||handler.type==namespace){event.handler=handler;event.data=handler.data;ret=handler.apply(this,arguments);if(val!==false)val=ret;if(ret===false){event.preventDefault();event.stopPropagation();}}}return val;},fix:function(event){if(event[expando]==true)return event;var originalEvent=event;event={originalEvent:originalEvent};var props="altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which".split(" ");for(var i=props.length;i;i--)event[props[i]]=originalEvent[props[i]];event[expando]=true;event.preventDefault=function(){if(originalEvent.preventDefault)originalEvent.preventDefault();originalEvent.returnValue=false;};event.stopPropagation=function(){if(originalEvent.stopPropagation)originalEvent.stopPropagation();originalEvent.cancelBubble=true;};event.timeStamp=event.timeStamp||now();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 doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.clientTop||0);}if(!event.which&&((event.charCode||event.charCode===0)?event.charCode:event.keyCode))event.which=event.charCode||event.keyCode;if(!event.metaKey&&event.ctrlKey)event.metaKey=event.ctrlKey;if(!event.which&&event.button)event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)));return event;},proxy:function(fn,proxy){proxy.guid=fn.guid=fn.guid||proxy.guid||this.guid++;return proxy;},special:{ready:{setup:function(){bindReady();return;},teardown:function(){return;}},mouseenter:{setup:function(){if(jQuery.browser.msie)return false;jQuery(this).bind("mouseover",jQuery.event.special.mouseenter.handler);return true;},teardown:function(){if(jQuery.browser.msie)return false;jQuery(this).unbind("mouseover",jQuery.event.special.mouseenter.handler);return true;},handler:function(event){if(withinElement(event,this))return true;event.type="mouseenter";return jQuery.event.handle.apply(this,arguments);}},mouseleave:{setup:function(){if(jQuery.browser.msie)return false;jQuery(this).bind("mouseout",jQuery.event.special.mouseleave.handler);return true;},teardown:function(){if(jQuery.browser.msie)return false;jQuery(this).unbind("mouseout",jQuery.event.special.mouseleave.handler);return true;},handler:function(event){if(withinElement(event,this))return true;event.type="mouseleave";return jQuery.event.handle.apply(this,arguments);}}}};jQuery.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&&data);});},one:function(type,data,fn){var one=jQuery.event.proxy(fn||data,function(event){jQuery(this).unbind(event,one);return(fn||data).apply(this,arguments);});return this.each(function(){jQuery.event.add(this,type,one,fn&&data);});},unbind:function(type,fn){return this.each(function(){jQuery.event.remove(this,type,fn);});},trigger:function(type,data,fn){return this.each(function(){jQuery.event.trigger(type,data,this,true,fn);});},triggerHandler:function(type,data,fn){return this[0]&&jQuery.event.trigger(type,data,this[0],false,fn);},toggle:function(fn){var args=arguments,i=1;while(i<args.length)jQuery.event.proxy(fn,args[i++]);return this.click(jQuery.event.proxy(fn,function(event){this.lastToggle=(this.lastToggle||0)%i;event.preventDefault();return args[this.lastToggle++].apply(this,arguments)||false;}));},hover:function(fnOver,fnOut){return this.bind('mouseenter',fnOver).bind('mouseleave',fnOut);},ready:function(fn){bindReady();if(jQuery.isReady)fn.call(document,jQuery);else
jQuery.readyList.push(function(){return fn.call(this,jQuery);});return this;}});jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady){jQuery.isReady=true;if(jQuery.readyList){jQuery.each(jQuery.readyList,function(){this.call(document);});jQuery.readyList=null;}jQuery(document).triggerHandler("ready");}}});var readyBound=false;function bindReady(){if(readyBound)return;readyBound=true;if(document.addEventListener&&!jQuery.browser.opera)document.addEventListener("DOMContentLoaded",jQuery.ready,false);if(jQuery.browser.msie&&window==top)(function(){if(jQuery.isReady)return;try{document.documentElement.doScroll("left");}catch(error){setTimeout(arguments.callee,0);return;}jQuery.ready();})();if(jQuery.browser.opera)document.addEventListener("DOMContentLoaded",function(){if(jQuery.isReady)return;for(var i=0;i<document.styleSheets.length;i++)if(document.styleSheets[i].disabled){setTimeout(arguments.callee,0);return;}jQuery.ready();},false);if(jQuery.browser.safari){var numStyles;(function(){if(jQuery.isReady)return;if(document.readyState!="loaded"&&document.readyState!="complete"){setTimeout(arguments.callee,0);return;}if(numStyles===undefined)numStyles=jQuery("style, link[rel=stylesheet]").length;if(document.styleSheets.length!=numStyles){setTimeout(arguments.callee,0);return;}jQuery.ready();})();}jQuery.event.add(window,"load",jQuery.ready);}jQuery.each(("blur,focus,load,resize,scroll,unload,click,dblclick,"+"mousedown,mouseup,mousemove,mouseover,mouseout,change,select,"+"submit,keydown,keypress,keyup,error").split(","),function(i,name){jQuery.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name);};});var withinElement=function(event,elem){var parent=event.relatedTarget;while(parent&&parent!=elem)try{parent=parent.parentNode;}catch(error){parent=elem;}return parent==elem;};jQuery(window).bind("unload",function(){jQuery("*").add(document).unbind();});jQuery.fn.extend({_load:jQuery.fn.load,load:function(url,params,callback){if(typeof url!='string')return this._load(url);var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=url.slice(0,off);}callback=callback||function(){};var type="GET";if(params)if(jQuery.isFunction(params)){callback=params;params=null;}else{params=jQuery.param(params);type="POST";}var self=this;jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(status=="success"||status=="notmodified")self.html(selector?jQuery("<div/>").append(res.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(selector):res.responseText);self.each(callback,[res.responseText,status,res]);}});return this;},serialize:function(){return jQuery.param(this.serializeArray());},serializeArray:function(){return this.map(function(){return jQuery.nodeName(this,"form")?jQuery.makeArray(this.elements):this;}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type));}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:val.constructor==Array?jQuery.map(val,function(val,i){return{name:elem.name,value:val};}):{name:elem.name,value:val};}).get();}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f);};});var jsc=now();jQuery.extend({get:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data=null;}return jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type});},getScript:function(url,callback){return jQuery.get(url,null,callback,"script");},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json");},post:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data={};}return jQuery.ajax({type:"POST",url:url,data:data,success:callback,dataType:type});},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings);},ajaxSettings:{url:location.href,global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null,username:null,password:null,accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(s){s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));var jsonp,jsre=/=\?(&|$)/g,status,data,type=s.type.toUpperCase();if(s.data&&s.processData&&typeof s.data!="string")s.data=jQuery.param(s.data);if(s.dataType=="jsonp"){if(type=="GET"){if(!s.url.match(jsre))s.url+=(s.url.match(/\?/)?"&":"?")+(s.jsonp||"callback")+"=?";}else if(!s.data||!s.data.match(jsre))s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?";s.dataType="json";}if(s.dataType=="json"&&(s.data&&s.data.match(jsre)||s.url.match(jsre))){jsonp="jsonp"+jsc++;if(s.data)s.data=(s.data+"").replace(jsre,"="+jsonp+"$1");s.url=s.url.replace(jsre,"="+jsonp+"$1");s.dataType="script";window[jsonp]=function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{delete window[jsonp];}catch(e){}if(head)head.removeChild(script);};}if(s.dataType=="script"&&s.cache==null)s.cache=false;if(s.cache===false&&type=="GET"){var ts=now();var ret=s.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+ts+"$2");s.url=ret+((ret==s.url)?(s.url.match(/\?/)?"&":"?")+"_="+ts:"");}if(s.data&&type=="GET"){s.url+=(s.url.match(/\?/)?"&":"?")+s.data;s.data=null;}if(s.global&&!jQuery.active++)jQuery.event.trigger("ajaxStart");var remote=/^(?:\w+:)?\/\/([^\/?#]+)/;if(s.dataType=="script"&&type=="GET"&&remote.test(s.url)&&remote.exec(s.url)[1]!=location.host){var head=document.getElementsByTagName("head")[0];var script=document.createElement("script");script.src=s.url;if(s.scriptCharset)script.charset=s.scriptCharset;if(!jsonp){var done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){done=true;success();complete();head.removeChild(script);}};}head.appendChild(script);return undefined;}var requestDone=false;var xhr=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();if(s.username)xhr.open(type,s.url,s.async,s.username,s.password);else
xhr.open(type,s.url,s.async);try{if(s.data)xhr.setRequestHeader("Content-Type",s.contentType);if(s.ifModified)xhr.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT");xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");xhr.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._default);}catch(e){}if(s.beforeSend&&s.beforeSend(xhr,s)===false){s.global&&jQuery.active--;xhr.abort();return false;}if(s.global)jQuery.event.trigger("ajaxSend",[xhr,s]);var onreadystatechange=function(isTimeout){if(!requestDone&&xhr&&(xhr.readyState==4||isTimeout=="timeout")){requestDone=true;if(ival){clearInterval(ival);ival=null;}status=isTimeout=="timeout"&&"timeout"||!jQuery.httpSuccess(xhr)&&"error"||s.ifModified&&jQuery.httpNotModified(xhr,s.url)&&"notmodified"||"success";if(status=="success"){try{data=jQuery.httpData(xhr,s.dataType,s.dataFilter);}catch(e){status="parsererror";}}if(status=="success"){var modRes;try{modRes=xhr.getResponseHeader("Last-Modified");}catch(e){}if(s.ifModified&&modRes)jQuery.lastModified[s.url]=modRes;if(!jsonp)success();}else
jQuery.handleError(s,xhr,status);complete();if(s.async)xhr=null;}};if(s.async){var ival=setInterval(onreadystatechange,13);if(s.timeout>0)setTimeout(function(){if(xhr){xhr.abort();if(!requestDone)onreadystatechange("timeout");}},s.timeout);}try{xhr.send(s.data);}catch(e){jQuery.handleError(s,xhr,null,e);}if(!s.async)onreadystatechange();function success(){if(s.success)s.success(data,status);if(s.global)jQuery.event.trigger("ajaxSuccess",[xhr,s]);}function complete(){if(s.complete)s.complete(xhr,status);if(s.global)jQuery.event.trigger("ajaxComplete",[xhr,s]);if(s.global&&!--jQuery.active)jQuery.event.trigger("ajaxStop");}return xhr;},handleError:function(s,xhr,status,e){if(s.error)s.error(xhr,status,e);if(s.global)jQuery.event.trigger("ajaxError",[xhr,s,e]);},active:0,httpSuccess:function(xhr){try{return!xhr.status&&location.protocol=="file:"||(xhr.status>=200&&xhr.status<300)||xhr.status==304||xhr.status==1223||jQuery.browser.safari&&xhr.status==undefined;}catch(e){}return false;},httpNotModified:function(xhr,url){try{var xhrRes=xhr.getResponseHeader("Last-Modified");return xhr.status==304||xhrRes==jQuery.lastModified[url]||jQuery.browser.safari&&xhr.status==undefined;}catch(e){}return false;},httpData:function(xhr,type,filter){var ct=xhr.getResponseHeader("content-type"),xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.tagName=="parsererror")throw"parsererror";if(filter)data=filter(data,type);if(type=="script")jQuery.globalEval(data);if(type=="json")data=eval("("+data+")");return data;},param:function(a){var s=[];if(a.constructor==Array||a.jquery)jQuery.each(a,function(){s.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value));});else
for(var j in a)if(a[j]&&a[j].constructor==Array)jQuery.each(a[j],function(){s.push(encodeURIComponent(j)+"="+encodeURIComponent(this));});else
s.push(encodeURIComponent(j)+"="+encodeURIComponent(jQuery.isFunction(a[j])?a[j]():a[j]));return s.join("&").replace(/%20/g,"+");}});jQuery.fn.extend({show:function(speed,callback){return speed?this.animate({height:"show",width:"show",opacity:"show"},speed,callback):this.filter(":hidden").each(function(){this.style.display=this.oldblock||"";if(jQuery.css(this,"display")=="none"){var elem=jQuery("<"+this.tagName+" />").appendTo("body");this.style.display=elem.css("display");if(this.style.display=="none")this.style.display="block";elem.remove();}}).end();},hide:function(speed,callback){return speed?this.animate({height:"hide",width:"hide",opacity:"hide"},speed,callback):this.filter(":visible").each(function(){this.oldblock=this.oldblock||jQuery.css(this,"display");this.style.display="none";}).end();},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){return jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle.apply(this,arguments):fn?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},fn,fn2):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]();});},slideDown:function(speed,callback){return this.animate({height:"show"},speed,callback);},slideUp:function(speed,callback){return this.animate({height:"hide"},speed,callback);},slideToggle:function(speed,callback){return this.animate({height:"toggle"},speed,callback);},fadeIn:function(speed,callback){return this.animate({opacity:"show"},speed,callback);},fadeOut:function(speed,callback){return this.animate({opacity:"hide"},speed,callback);},fadeTo:function(speed,to,callback){return this.animate({opacity:to},speed,callback);},animate:function(prop,speed,easing,callback){var optall=jQuery.speed(speed,easing,callback);return this[optall.queue===false?"each":"queue"](function(){if(this.nodeType!=1)return false;var opt=jQuery.extend({},optall),p,hidden=jQuery(this).is(":hidden"),self=this;for(p in prop){if(prop[p]=="hide"&&hidden||prop[p]=="show"&&!hidden)return opt.complete.call(this);if(p=="height"||p=="width"){opt.display=jQuery.css(this,"display");opt.overflow=this.style.overflow;}}if(opt.overflow!=null)this.style.overflow="hidden";opt.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(/toggle|show|hide/.test(val))e[val=="toggle"?hidden?"show":"hide":val](prop);else{var parts=val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),start=e.cur(true)||0;if(parts){var end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!="px"){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[name]=start+unit;}if(parts[1])end=((parts[1]=="-="?-1:1)*end)+start;e.custom(start,end,unit);}else
e.custom(start,val,"");}});return true;});},queue:function(type,fn){if(jQuery.isFunction(type)||(type&&type.constructor==Array)){fn=type;type="fx";}if(!type||(typeof type=="string"&&!fn))return queue(this[0],type);return this.each(function(){if(fn.constructor==Array)queue(this,type,fn);else{queue(this,type).push(fn);if(queue(this,type).length==1)fn.call(this);}});},stop:function(clearQueue,gotoEnd){var timers=jQuery.timers;if(clearQueue)this.queue([]);this.each(function(){for(var i=timers.length-1;i>=0;i--)if(timers[i].elem==this){if(gotoEnd)timers[i](true);timers.splice(i,1);}});if(!gotoEnd)this.dequeue();return this;}});var queue=function(elem,type,array){if(elem){type=type||"fx";var q=jQuery.data(elem,type+"queue");if(!q||array)q=jQuery.data(elem,type+"queue",jQuery.makeArray(array));}return q;};jQuery.fn.dequeue=function(type){type=type||"fx";return this.each(function(){var q=queue(this,type);q.shift();if(q.length)q[0].call(this);});};jQuery.extend({speed:function(speed,easing,fn){var opt=speed&&speed.constructor==Object?speed:{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&easing.constructor!=Function&&easing};opt.duration=(opt.duration&&opt.duration.constructor==Number?opt.duration:jQuery.fx.speeds[opt.duration])||jQuery.fx.speeds.def;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false)jQuery(this).dequeue();if(jQuery.isFunction(opt.old))opt.old.call(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:[],timerId:null,fx:function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;if(!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);if(this.prop=="height"||this.prop=="width")this.elem.style.display="block";},cur:function(force){if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null)return this.elem[this.prop];var r=parseFloat(jQuery.css(this.elem,this.prop,force));return r&&r>-10000?r:parseFloat(jQuery.curCSS(this.elem,this.prop))||0;},custom:function(from,to,unit){this.startTime=now();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;this.update();var self=this;function t(gotoEnd){return self.step(gotoEnd);}t.elem=this.elem;jQuery.timers.push(t);if(jQuery.timerId==null){jQuery.timerId=setInterval(function(){var timers=jQuery.timers;for(var i=0;i<timers.length;i++)if(!timers[i]())timers.splice(i--,1);if(!timers.length){clearInterval(jQuery.timerId);jQuery.timerId=null;}},13);}},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(0,this.cur());if(this.prop=="width"||this.prop=="height")this.elem.style[this.prop]="1px";jQuery(this.elem).show();},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0);},step:function(gotoEnd){var t=now();if(gotoEnd||t>this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var done=true;for(var i in this.options.curAnim)if(this.options.curAnim[i]!==true)done=false;if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(jQuery.css(this.elem,"display")=="none")this.elem.style.display="block";}if(this.options.hide)this.elem.style.display="none";if(this.options.hide||this.options.show)for(var p in this.options.curAnim)jQuery.attr(this.elem.style,p,this.options.orig[p]);}if(done)this.options.complete.call(this.elem);return false;}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update();}return true;}};jQuery.extend(jQuery.fx,{speeds:{slow:600,fast:200,def:400},step:{scrollLeft:function(fx){fx.elem.scrollLeft=fx.now;},scrollTop:function(fx){fx.elem.scrollTop=fx.now;},opacity:function(fx){jQuery.attr(fx.elem.style,"opacity",fx.now);},_default:function(fx){fx.elem.style[fx.prop]=fx.now+fx.unit;}}});jQuery.fn.offset=function(){var left=0,top=0,elem=this[0],results;if(elem)with(jQuery.browser){var parent=elem.parentNode,offsetChild=elem,offsetParent=elem.offsetParent,doc=elem.ownerDocument,safari2=safari&&parseInt(version)<522&&!/adobeair/i.test(userAgent),css=jQuery.curCSS,fixed=css(elem,"position")=="fixed";if(elem.getBoundingClientRect){var box=elem.getBoundingClientRect();add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));add(-doc.documentElement.clientLeft,-doc.documentElement.clientTop);}else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent){add(offsetParent.offsetLeft,offsetParent.offsetTop);if(mozilla&&!/^t(able|d|h)$/i.test(offsetParent.tagName)||safari&&!safari2)border(offsetParent);if(!fixed&&css(offsetParent,"position")=="fixed")fixed=true;offsetChild=/^body$/i.test(offsetParent.tagName)?offsetChild:offsetParent;offsetParent=offsetParent.offsetParent;}while(parent&&parent.tagName&&!/^body|html$/i.test(parent.tagName)){if(!/^inline|table.*$/i.test(css(parent,"display")))add(-parent.scrollLeft,-parent.scrollTop);if(mozilla&&css(parent,"overflow")!="visible")border(parent);parent=parent.parentNode;}if((safari2&&(fixed||css(offsetChild,"position")=="absolute"))||(mozilla&&css(offsetChild,"position")!="absolute"))add(-doc.body.offsetLeft,-doc.body.offsetTop);if(fixed)add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));}results={top:top,left:left};}function border(elem){add(jQuery.curCSS(elem,"borderLeftWidth",true),jQuery.curCSS(elem,"borderTopWidth",true));}function add(l,t){left+=parseInt(l,10)||0;top+=parseInt(t,10)||0;}return results;};jQuery.fn.extend({position:function(){var left=0,top=0,results;if(this[0]){var offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=/^body|html$/i.test(offsetParent[0].tagName)?{top:0,left:0}:offsetParent.offset();offset.top-=num(this,'marginTop');offset.left-=num(this,'marginLeft');parentOffset.top+=num(offsetParent,'borderTopWidth');parentOffset.left+=num(offsetParent,'borderLeftWidth');results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left};}return results;},offsetParent:function(){var offsetParent=this[0].offsetParent;while(offsetParent&&(!/^body|html$/i.test(offsetParent.tagName)&&jQuery.css(offsetParent,'position')=='static'))offsetParent=offsetParent.offsetParent;return jQuery(offsetParent);}});jQuery.each(['Left','Top'],function(i,name){var method='scroll'+name;jQuery.fn[method]=function(val){if(!this[0])return;return val!=undefined?this.each(function(){this==window||this==document?window.scrollTo(!i?val:jQuery(window).scrollLeft(),i?val:jQuery(window).scrollTop()):this[method]=val;}):this[0]==window||this[0]==document?self[i?'pageYOffset':'pageXOffset']||jQuery.boxModel&&document.documentElement[method]||document.body[method]:this[0][method];};});jQuery.each(["Height","Width"],function(i,name){var tl=i?"Left":"Top",br=i?"Right":"Bottom";jQuery.fn["inner"+name]=function(){return this[name.toLowerCase()]()+num(this,"padding"+tl)+num(this,"padding"+br);};jQuery.fn["outer"+name]=function(margin){return this["inner"+name]()+num(this,"border"+tl+"Width")+num(this,"border"+br+"Width")+(margin?num(this,"margin"+tl)+num(this,"margin"+br):0);};});})();;jQuery(function($) { //Mootools conflict


//-------------------------------------------------------------------------
// Individual profile pages
//-------------------------------------------------------------------------
if ($("div#controls").length) {

$("div#controls ul li a img").bind('mouseover focus', function(event) {
	$(this).attr("src",$(this).attr("src").split('_f1').join('_f2'))
}).bind('mouseout blur', function(event) {
	$(this).attr("src",$(this).attr("src").split('_f2').join('_f1'))
});

}


//-------------------------------------------------------------------------
// Main pages with profile picture thumbnails
//-------------------------------------------------------------------------
if ($("ul.profiles").length) {

//JSON object. Edit to change committee members
var committees = {
	management : [
		{			 
			name: "disclosure",
			members: ["laidlaw","dawson","luff"]
		},
		{			 
			name: "board",
			members: ["carr","laidlaw", "francis","alexander","bentley","hanafin","luff","mackenzie","rayner","weston"]
			
		},
		{			 
			name: "executive",
			members: ["laidlaw","bentley","dawson","hanafin","luff","may","minto","weston"]
			
		},
		{			 
			name: "audit",
			members: ["rayner","alexander","francis","mackenzie"]
		},
		{			 
			name: "cr",
			members: ["francis","bentley","laidlaw","mackenzie","may","weston"]
			
		},
		{			 
			name: "nominations",
			members: ["carr","alexander","francis","laidlaw","mackenzie","rayner"]
			
		},
		{			 
			name: "remuneration",
			members: ["alexander","carr","francis","mackenzie","rayner"]
		}
	]
};

	
//---------------------------------
// Functions
//---------------------------------

/*
* Check if any profile images are using a faded image
* and change to use the normal image version (_b) that 
* is faded to 0.2 opacity using javascript
*/
function switchImages() {
$("#profiles_wrapper").find("img").each(function(){
	if ($(this).attr("src").indexOf("_faded") !== -1) {
		$(this)
			.attr("src",$(this).attr("src").split('_faded').join('_b'))
			.fadeTo(1, 0.2)
			//remember which images should be faded on this page by default
			.parent().parent().addClass('faded');
	}
});
//show profile lists now that image switching has finished
$("#profiles_wrapper").find("ul.profiles").show();
}


/*
* Adds committee class to profile li 
*/
function addMemberClasses(committeeMember,committeeName) {
	$("ul.profiles li."+committeeMember)
		.addClass(committeeName);
}


/*
* fade profile pictures when hovering over comittee side navigation
*/
function pictureFade() {
$("div.committees ul li a").bind('mouseover focus', function(event) {
	//do nothing if this committee (correct profiles are faded by default)
	if ( $(this).parent().hasClass("lit") ) {return false;}
	
	$("div.committees ul li a").each(function (i) {
		if ( $(this).parent().hasClass('lit') ) {
			$(this).parent().removeClass('lit').addClass('lit3');
		}
	});
	
	/*
	* check if the committee item class matches with the li profile picture
	* remove white-space to please IE
	*/
	var thisCommittee = $(this).parent().attr("class").replace(/ /g,'');
	$("ul.profiles li").each(function (i) {
		if ( $(this).hasClass(thisCommittee) ) {
			$(this)
			.find("img")
				.stop()
				.fadeTo("slow",1);
		} else {
			$(this)
			.find("img")
				.stop()
				.fadeTo("slow",0.2);		
		}
	
	});
}).bind('mouseout blur', function(event) {
	
	$("div.committees ul li a").each(function (i) {
		if ( $(this).parent().hasClass('lit3') ) {
			$(this).parent().removeClass('lit3').addClass('lit');
		}
	});
	
	var thisCommittee = $(this).attr("class");
	$("ul.profiles li").each(function (i) {
	//check which images should be faded by default
	if ( $(this).hasClass("faded") ) {
		$(this)
		.find("img")
			.stop()
			.fadeTo("slow", 0.2)	
	} else {
		$(this)
		.find("img")
			.stop()
			.fadeTo("slow", 1)
	}
	});	
});//end .bind
}


/*
* change lit classes of committee menu when hovered over a profile
*/
function changeCommitteeMenu() {
//hover over images and make correct committee highlight in side menu
$("ul.profiles li a").bind('mouseover focus', function(event) {
	var imageItemClasses = $(this).parent().attr("class");
	//get classes from picture image and convert into an array
	imageItemClasses = imageItemClasses.split(' ');
	
	//remove 'last' and 'faded' from array
	imageItemClasses = $.map(imageItemClasses, function(i) {
		if (i === "last" || i === "faded") { 
			return null;
		}
			return i;
	});
	
	/*
	* remove first item (carr, laidlaw...) to leave just the committees
	* join into one long string e.g. disclosureboardauditcrnominations
	*/
	imageItemClasses.shift();
	imageItemClasses = imageItemClasses.join('');
	
	$("div.committees ul li").each(function (i) {
		var committeeMenuItemClasses = $(this).attr("class");
		committeeMenuItemClasses = committeeMenuItemClasses.split(' ');
		/*Remove lit from array to leave just the committee name */
		committeeMenuItemClasses = $.map(committeeMenuItemClasses, function(i) {
		if (i === "lit") { 
			return null;
		}
			return i;
		});
		committeeMenuItemClass = committeeMenuItemClasses.join('');
		//console.log('committee highlight check: is '+committeeMenuItemClasses+' in '+imageItemClasses+' ?')
		
		/*
		* check if each member of the committeeMenuItemClasses array is in imageItemClasses 
		* e.g. is audit in disclosureboardauditcrnominations ?
		*/
		if (imageItemClasses.indexOf(committeeMenuItemClasses) !== -1) {
			$(this).addClass("lit2");
		}
		
		/*
		* if they are not a member of the highlighted page item change to lit3
		* lit3 = black arrow grey background (you are on this committee page ,but
		* they are not a member of it)
		*/
		if ($(this).hasClass("lit") && !$(this).hasClass("lit2")) {
			$(this).removeClass("lit").addClass("lit3");
		}
		

	});
}).bind('mouseout blur', function(event) {
	$("div.committees ul li").each(function (i) {
		$(this).removeClass("lit2");
		
		//return current committee item back
		if ($(this).hasClass("lit3")) {
			$(this).removeClass("lit3").addClass("lit");
		}
	});
});	
} 

//---------------------------------
// Main Code
//---------------------------------

$("#profiles_wrapper").find("ul.profiles").hide(1, switchImages);

//add committee classes to profile li's using JSON object
for (var i = 0, l = committees.management.length; i < l; i++) {
	var committeeName = committees.management[i].name;
	//for each management object cycle through each members value
	for (var j = 0, le = committees.management[i].members.length; j < le; j++) {
		addMemberClasses(committees.management[i].members[j],committeeName);
	}
}

pictureFade();
changeCommitteeMenu();

}/*end ul.profiles length*/
}); //end jQuery

// this tells jquery to run the function below once the DOM is ready. Also to stop conflict between mootools and jQuery

jQuery(document).ready(function($){

// choose text for the show/hide link
var showText="Show all";
var hideText="Hide all";

$('.collapse').hide();

$("ul#togglelist").before('<p class="show_hide"><a href="#">'+showText+'</a></p>');

// hide all of the elements with a class of 'collapse'
$("p.show_hide a").click(function() {
								  
var currentitem=$(this);
if($(currentitem).html() == showText){$(currentitem).html(hideText);
$('.collapse').slideDown('slow');
} else {$(currentitem).html(showText);
$('.collapse').slideUp('slow');

}
								  
return false;

});

$('ul#togglelist li h3 a.lit').parent().next('.collapse').show();
$('ul.togglelist li h3 a.lit').parent().next('.collapse').show();

var togglelist = $('ul#togglelist li h3 a');
var togglelist2 = $('ul.togglelist li h3 a');


// capture clicks on the toggle links
$(togglelist).click(function() {

var currentitem = $(this).parent().parent();
$(this).toggleClass("lit");
$(".collapse",currentitem).slideToggle('slow');
	// metrics code starts
	function getParameterByName(name)
		{
		  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
		  var regexS = "[\\?&]"+name+"=([^&#]*)";
		  var regex = new RegExp( regexS );
		  var results = regex.exec( window.location.href );
		  if( results == null )
			return "";
		  else
			return results[1];
		}
		if( typeof(s) != 'undefined' ) {
			$metricsitemname=$(this).html().replace(/[’'"]/g,'');
			s.tl(true,'o','Toggle ID '+getParameterByName("pageid")+' '+$metricsitemname);
		}
	// metrics code ends

	// return false so any link destination is not followed
	return false;
});

$(togglelist2).click(function() {

var currentitem = $(this).parent().parent();
$(this).toggleClass("lit");
$(".collapse",currentitem).slideToggle('slow');

// return false so any link destination is not followed
return false;

});
});//MooTools, My Object Oriented Javascript Tools. Copyright (c) 2006-2007 Valerio Proietti, <http://mad4milk.net>, MIT Style License.

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('o bQ={bL:\'1.11\'};k $7a(18){m(18!=90)};k $C(18){u(!$7a(18))m M;u(18.52)m\'F\';o C=6z 18;u(C==\'3a\'&&18.bM){2a(18.8z){12 1:m\'F\';12 3:m(/\\S/).2A(18.9J)?\'bU\':\'bV\'}}u(C==\'3a\'||C==\'k\'){2a(18.8U){12 2u:m\'1w\';12 8a:m\'5q\';12 17:m\'4Y\'}u(6z 18.U==\'4P\'){u(18.3f)m\'c5\';u(18.8I)m\'1a\'}}m C};k $2t(){o 5e={};K(o i=0;i<1a.U;i++){K(o J 1d 1a[i]){o ap=1a[i][J];o 70=5e[J];u(70&&$C(ap)==\'3a\'&&$C(70)==\'3a\')5e[J]=$2t(70,ap);W 5e[J]=ap}}m 5e};o $Q=k(){o 1n=1a;u(!1n[1])1n=[c,1n[0]];K(o J 1d 1n[1])1n[0][J]=1n[1][J];m 1n[0]};o $4T=k(){K(o i=0,l=1a.U;i<l;i++){1a[i].Q=k(1S){K(o 1Q 1d 1S){u(!c.1J[1Q])c.1J[1Q]=1S[1Q];u(!c[1Q])c[1Q]=$4T.6F(1Q)}}}};$4T.6F=k(1Q){m k(T){m c.1J[1Q].4S(T,2u.1J.9d.1P(1a,1))}};$4T(7h,2u,8J,99);k $2v(18){m!!(18||18===0)};k $51(18,8V){m $7a(18)?18:8V};k $8s(3o,1y){m 19.aX(19.8s()*(1y-3o+1)+3o)};k $3s(){m I az().aD()};k $55(1D){bt(1D);bs(1D);m 1o};o 3B=k(18){18=18||{};18.Q=$Q;m 18};o bu=I 3B(P);o bx=I 3B(N);N.6i=N.2V(\'6i\')[0];P.44=!!(N.9C);u(P.ah)P.2K=P[P.6a?\'bw\':\'8X\']=1f;W u(N.9i&&!N.bW&&!d1.cJ)P.4y=P[P.44?\'c9\':\'5S\']=1f;W u(N.cD!=1o)P.8G=1f;P.cF=P.4y;8t.Q=$Q;u(6z 5F==\'90\'){o 5F=k(){};u(P.4y)N.96("cY");5F.1J=(P.4y)?P["[[cZ.1J]]"]:{}}5F.1J.52=k(){};u(P.8X)4N{N.d0("cW",M,1f)}58(e){};o 17=k(1F){o 5z=k(){m(1a[0]!==1o&&c.1i&&$C(c.1i)==\'k\')?c.1i.4S(c,1a):c};$Q(5z,c);5z.1J=1F;5z.8U=17;m 5z};17.1m=k(){};17.1J={Q:k(1F){o 7b=I c(1o);K(o J 1d 1F){o 9c=7b[J];7b[J]=17.9b(9c,1F[J])}m I 17(7b)},3q:k(){K(o i=0,l=1a.U;i<l;i++)$Q(c.1J,1a[i])}};17.9b=k(2f,2i){u(2f&&2f!=2i){o C=$C(2i);u(C!=$C(2f))m 2i;2a(C){12\'k\':o 8D=k(){c.1t=1a.8I.1t;m 2i.4S(c,1a)};8D.1t=2f;m 8D;12\'3a\':m $2t(2f,2i)}}m 2i};o 7y=I 17({ck:k(R){c.4D=c.4D||[];c.4D.1j(R);m c},7l:k(){u(c.4D&&c.4D.U)c.4D.9j().2g(10,c)},cl:k(){c.4D=[]}});o 2o=I 17({1B:k(C,R){u(R!=17.1m){c.$15=c.$15||{};c.$15[C]=c.$15[C]||[];c.$15[C].5s(R)}m c},1h:k(C,1n,2g){u(c.$15&&c.$15[C]){c.$15[C].1r(k(R){R.34({\'T\':c,\'2g\':2g,\'1a\':1n})()},c)}m c},4o:k(C,R){u(c.$15&&c.$15[C])c.$15[C].3d(R);m c}});o 3W=I 17({2Q:k(){c.B=$2t.4S(1o,[c.B].Q(1a));u(c.1B){K(o 3t 1d c.B){u($C(c.B[3t]==\'k\')&&(/^5U[A-Z]/).2A(3t))c.1B(3t,c.B[3t])}}m c}});2u.Q({6w:k(R,T){K(o i=0,j=c.U;i<j;i++)R.1P(T,c[i],i,c)},3b:k(R,T){o 4Z=[];K(o i=0,j=c.U;i<j;i++){u(R.1P(T,c[i],i,c))4Z.1j(c[i])}m 4Z},2H:k(R,T){o 4Z=[];K(o i=0,j=c.U;i<j;i++)4Z[i]=R.1P(T,c[i],i,c);m 4Z},4v:k(R,T){K(o i=0,j=c.U;i<j;i++){u(!R.1P(T,c[i],i,c))m M}m 1f},ce:k(R,T){K(o i=0,j=c.U;i<j;i++){u(R.1P(T,c[i],i,c))m 1f}m M},3e:k(3f,Y){o 3x=c.U;K(o i=(Y<0)?19.1y(0,3x+Y):Y||0;i<3x;i++){u(c[i]===3f)m i}m-1},8N:k(1e,U){1e=1e||0;u(1e<0)1e=c.U+1e;U=U||(c.U-1e);o 8x=[];K(o i=0;i<U;i++)8x[i]=c[1e++];m 8x},3d:k(3f){o i=0;o 3x=c.U;6b(i<3x){u(c[i]===3f){c.67(i,1);3x--}W{i++}}m c},1g:k(3f,Y){m c.3e(3f,Y)!=-1},cn:k(2b){o 18={},U=19.3o(c.U,2b.U);K(o i=0;i<U;i++)18[2b[i]]=c[i];m 18},Q:k(1w){K(o i=0,j=1w.U;i<j;i++)c.1j(1w[i]);m c},2t:k(1w){K(o i=0,l=1w.U;i<l;i++)c.5s(1w[i]);m c},5s:k(3f){u(!c.1g(3f))c.1j(3f);m c},cw:k(){m c[$8s(0,c.U-1)]||1o},7q:k(){m c[c.U-1]||1o}});2u.1J.1r=2u.1J.6w;2u.1r=2u.6w;k $A(1w){m 2u.8N(1w)};k $1r(41,R,T){u(41&&6z 41.U==\'4P\'&&$C(41)!=\'3a\'){2u.6w(41,R,T)}W{K(o 1I 1d 41)R.1P(T||41,41[1I],1I)}};2u.1J.2A=2u.1J.1g;8J.Q({2A:k(6q,2R){m(($C(6q)==\'3n\')?I 8a(6q,2R):6q).2A(c)},2W:k(){m 5A(c,10)},98:k(){m 5m(c)},86:k(){m c.3J(/-\\D/g,k(2O){m 2O.8q(1).7o()})},9I:k(){m c.3J(/\\w[A-Z]/g,k(2O){m(2O.8q(0)+\'-\'+2O.8q(1).5E())})},8g:k(){m c.3J(/\\b[a-z]/g,k(2O){m 2O.7o()})},5N:k(){m c.3J(/^\\s+|\\s+$/g,\'\')},8b:k(){m c.3J(/\\s{2,}/g,\' \').5N()},5w:k(1w){o 1q=c.2O(/\\d{1,3}/g);m(1q)?1q.5w(1w):M},5W:k(1w){o 3L=c.2O(/^#?(\\w{1,2})(\\w{1,2})(\\w{1,2})$/);m(3L)?3L.9d(1).5W(1w):M},1g:k(3n,s){m(s)?(s+c+s).3e(s+3n+s)>-1:c.3e(3n)>-1},aI:k(){m c.3J(/([.*+?^${}()|[\\]\\/\\\\])/g,\'\\\\$1\')}});2u.Q({5w:k(1w){u(c.U<3)m M;u(c.U==4&&c[3]==0&&!1w)m\'cy\';o 3L=[];K(o i=0;i<3;i++){o 5b=(c[i]-0).cz(16);3L.1j((5b.U==1)?\'0\'+5b:5b)}m 1w?3L:\'#\'+3L.2l(\'\')},5W:k(1w){u(c.U!=3)m M;o 1q=[];K(o i=0;i<3;i++){1q.1j(5A((c[i].U==1)?c[i]+c[i]:c[i],16))}m 1w?1q:\'1q(\'+1q.2l(\',\')+\')\'}});7h.Q({34:k(B){o R=c;B=$2t({\'T\':R,\'G\':M,\'1a\':1o,\'2g\':M,\'3Y\':M,\'6u\':M},B);u($2v(B.1a)&&$C(B.1a)!=\'1w\')B.1a=[B.1a];m k(G){o 1n;u(B.G){G=G||P.G;1n=[(B.G===1f)?G:I B.G(G)];u(B.1a)1n.Q(B.1a)}W 1n=B.1a||1a;o 3E=k(){m R.4S($51(B.T,R),1n)};u(B.2g)m aC(3E,B.2g);u(B.3Y)m cu(3E,B.3Y);u(B.6u)4N{m 3E()}58(co){m M};m 3E()}},cr:k(1n,T){m c.34({\'1a\':1n,\'T\':T})},6u:k(1n,T){m c.34({\'1a\':1n,\'T\':T,\'6u\':1f})()},T:k(T,1n){m c.34({\'T\':T,\'1a\':1n})},cs:k(T,1n){m c.34({\'T\':T,\'G\':1f,\'1a\':1n})},2g:k(2g,T,1n){m c.34({\'2g\':2g,\'T\':T,\'1a\':1n})()},3Y:k(9f,T,1n){m c.34({\'3Y\':9f,\'T\':T,\'1a\':1n})()}});99.Q({2W:k(){m 5A(c)},98:k(){m 5m(c)},1A:k(3o,1y){m 19.3o(1y,19.1y(3o,c))},2k:k(5R){5R=19.3r(10,5R||0);m 19.2k(c*5R)/5R},cH:k(R){K(o i=0;i<c;i++)R(i)}});o L=I 17({1i:k(el,1S){u($C(el)==\'3n\'){u(P.2K&&1S&&(1S.1I||1S.C)){o 1I=(1S.1I)?\' 1I="\'+1S.1I+\'"\':\'\';o C=(1S.C)?\' C="\'+1S.C+\'"\':\'\';5C 1S.1I;5C 1S.C;el=\'<\'+el+1I+C+\'>\'}el=N.96(el)}el=$(el);m(!1S||!el)?el:el.2B(1S)}});o 22=I 17({1i:k(O){m(O)?$Q(O,c):c}});22.Q=k(1S){K(o 1Q 1d 1S){c.1J[1Q]=1S[1Q];c[1Q]=$4T.6F(1Q)}};k $(el){u(!el)m 1o;u(el.52)m 2C.4O(el);u([P,N].1g(el))m el;o C=$C(el);u(C==\'3n\'){el=N.71(el);C=(el)?\'F\':M}u(C!=\'F\')m 1o;u(el.52)m 2C.4O(el);u([\'3a\',\'cq\'].1g(el.6o.5E()))m el;$Q(el,L.1J);el.52=k(){};m 2C.4O(el)};N.6T=N.2V;k $$(){o O=[];K(o i=0,j=1a.U;i<j;i++){o 1L=1a[i];2a($C(1L)){12\'F\':O.1j(1L);12\'cp\':1C;12 M:1C;12\'3n\':1L=N.6T(1L,1f);5y:O.Q(1L)}}m $$.5X(O)};$$.5X=k(1w){o O=[];K(o i=0,l=1w.U;i<l;i++){u(1w[i].$6N)77;o F=$(1w[i]);u(F&&!F.$6N){F.$6N=1f;O.1j(F)}}K(o n=0,d=O.U;n<d;n++)O[n].$6N=1o;m I 22(O)};22.6L=k(J){m k(){o 1n=1a;o 1v=[];o O=1f;K(o i=0,j=c.U,3E;i<j;i++){3E=c[i][J].4S(c[i],1n);u($C(3E)!=\'F\')O=M;1v.1j(3E)};m(O)?$$.5X(1v):1v}};L.Q=k(1F){K(o J 1d 1F){5F.1J[J]=1F[J];L.1J[J]=1F[J];L[J]=$4T.6F(J);o 93=(2u.1J[J])?J+\'22\':J;22.1J[93]=22.6L(J)}};L.Q({2B:k(1S){K(o 1Q 1d 1S){o 4h=1S[1Q];2a(1Q){12\'81\':c.4x(4h);1C;12\'15\':u(c.6j)c.6j(4h);1C;12\'1F\':c.61(4h);1C;5y:c.73(1Q,4h)}}m c},1X:k(el,94){el=$(el);2a(94){12\'9e\':el.3p.7O(c,el);1C;12\'91\':o 3A=el.8n();u(!3A)el.3p.89(c);W el.3p.7O(c,3A);1C;12\'1k\':o 7L=el.7K;u(7L){el.7O(c,7L);1C}5y:el.89(c)}m c},8y:k(el){m c.1X(el,\'9e\')},6y:k(el){m c.1X(el,\'91\')},cd:k(el){m c.1X(el,\'3N\')},cc:k(el){m c.1X(el,\'1k\')},b9:k(){o O=[];$1r(1a,k(4k){O=O.7v(4k)});$$(O).1X(c);m c},3d:k(){m c.3p.9K(c)},aa:k(8Y){o el=$(c.ca(8Y!==M));u(!el.$15)m el;el.$15={};K(o C 1d c.$15)el.$15[C]={\'2b\':$A(c.$15[C].2b),\'1T\':$A(c.$15[C].1T)};m el.68()},cb:k(el){el=$(el);c.3p.cf(el,c);m el},9S:k(1G){c.89(N.cg(1G));m c},8c:k(1x){m c.1x.1g(1x,\' \')},9N:k(1x){u(!c.8c(1x))c.1x=(c.1x+\' \'+1x).8b();m c},a3:k(1x){c.1x=c.1x.3J(I 8a(\'(^|\\\\s)\'+1x+\'(?:\\\\s|$)\'),\'$1\').8b();m c},ch:k(1x){m c.8c(1x)?c.a3(1x):c.9N(1x)},1O:k(J,H){2a(J){12\'1U\':m c.9O(5m(H));12\'ci\':J=(P.2K)?\'cA\':\'cB\'}J=J.86();2a($C(H)){12\'4P\':u(![\'cU\',\'9P\'].1g(J))H+=\'4M\';1C;12\'1w\':H=\'1q(\'+H.2l(\',\')+\')\'}c.1H[J]=H;m c},4x:k(1W){2a($C(1W)){12\'3a\':L.62(c,\'1O\',1W);1C;12\'3n\':c.1H.7M=1W}m c},9O:k(1U){u(1U==0){u(c.1H.4m!="4e")c.1H.4m="4e"}W{u(c.1H.4m!="7U")c.1H.4m="7U"}u(!c.6r||!c.6r.cS)c.1H.9P=1;u(P.2K)c.1H.3b=(1U==1)?\'\':"6Z(1U="+1U*2X+")";c.1H.1U=c.$1R.1U=1U;m c},2h:k(J){J=J.86();o 1K=c.1H[J];u(!$2v(1K)){u(J==\'1U\')m c.$1R.1U;1K=[];K(o 1H 1d L.42){u(J==1H){L.42[1H].1r(k(s){o 1H=c.2h(s);1K.1j(5A(1H)?1H:\'9X\')},c);u(J==\'2P\'){o 4v=1K.4v(k(5b){m(5b==1K[0])});m(4v)?1K[0]:M}m 1K.2l(\' \')}}u(J.1g(\'2P\')){u(L.42.2P.1g(J)){m[\'9Y\',\'7d\',\'2F\'].2H(k(p){m c.2h(J+p)},c).2l(\' \')}W u(L.9p.1g(J)){m[\'9T\',\'9U\',\'9W\',\'9G\'].2H(k(p){m c.2h(\'2P\'+p+J.3J(\'2P\',\'\'))},c).2l(\' \')}}u(N.9H)1K=N.9H.cR(c,1o).cV(J.9I());W u(c.6r)1K=c.6r[J]}u(P.2K)1K=L.a2(J,1K,c);u(1K&&J.2A(/2E/i)&&1K.1g(\'1q\')){m 1K.5G(\'1q\').67(1,4).2H(k(2E){m 2E.5w()}).2l(\' \')}m 1K},bf:k(){m L.7X(c,\'2h\',1a)},5J:k(6B,1e){6B+=\'cX\';o el=(1e)?c[1e]:c[6B];6b(el&&$C(el)!=\'F\')el=el[6B];m $(el)},a5:k(){m c.5J(\'2f\')},8n:k(){m c.5J(\'3A\')},cP:k(){m c.5J(\'3A\',\'7K\')},7q:k(){m c.5J(\'2f\',\'cO\')},cG:k(){m $(c.3p)},7P:k(){m $$(c.9i)},8v:k(el){m!!$A(c.2V(\'*\')).1g(el)},5Y:k(J){o 1Z=L.6W[J];u(1Z)m c[1Z];o 7R=L.9q[J]||0;u(!P.2K||7R)m c.cE(J,7R);o 7S=c.cC[J];m(7S)?7S.9J:1o},cI:k(J){o 1Z=L.6W[J];u(1Z)c[1Z]=\'\';W c.aq(J);m c},cN:k(){m L.7X(c,\'5Y\',1a)},73:k(J,H){o 1Z=L.6W[J];u(1Z)c[1Z]=H;W c.cM(J,H);m c},61:k(1W){m L.62(c,\'73\',1W)},5Q:k(){c.a0=$A(1a).2l(\'\');m c},cL:k(1G){o 3k=c.4p();u([\'1H\',\'2s\'].1g(3k)){u(P.2K){u(3k==\'1H\')c.9Z.7M=1G;W u(3k==\'2s\')c.73(\'1G\',1G);m c}W{c.9K(c.7K);m c.9S(1G)}}c[$7a(c.7N)?\'7N\':\'a1\']=1G;m c},cK:k(){o 3k=c.4p();u([\'1H\',\'2s\'].1g(3k)){u(P.2K){u(3k==\'1H\')m c.9Z.7M;W u(3k==\'2s\')m c.5Y(\'1G\')}W{m c.a0}}m($51(c.7N,c.a1))},4p:k(){m c.6o.5E()},1m:k(){2C.47(c.2V(\'*\'));m c.5Q(\'\')}});L.a2=k(J,1K,F){u($2v(5A(1K)))m 1K;u([\'2J\',\'2w\'].1g(J)){o 1T=(J==\'2w\')?[\'1p\',\'4A\']:[\'1k\',\'3N\'];o 3c=0;1T.1r(k(H){3c+=F.2h(\'2P-\'+H+\'-2w\').2W()+F.2h(\'4z-\'+H).2W()});m F[\'1z\'+J.8g()]-3c+\'4M\'}W u(J.2A(/2P(.+)9Y|2Y|4z/)){m\'9X\'}m 1K};L.42={\'2P\':[],\'4z\':[],\'2Y\':[]};[\'9T\',\'9U\',\'9W\',\'9G\'].1r(k(9F){K(o 1H 1d L.42)L.42[1H].1j(1H+9F)});L.9p=[\'bz\',\'bE\',\'bq\'];L.7X=k(el,2j,2b){o 1K={};$1r(2b,k(21){1K[21]=el[2j](21)});m 1K};L.62=k(el,2j,7Y){K(o 21 1d 7Y)el[2j](21,7Y[21]);m el};L.6W=I 3B({\'4Y\':\'1x\',\'K\':\'bG\',\'bl\':\'bk\',\'bp\':\'bn\',\'bo\':\'bm\',\'bF\':\'c8\',\'c0\':\'bZ\',\'bH\':\'bX\',\'c1\':\'c2\',\'H\':\'H\',\'7E\':\'7E\',\'7x\':\'7x\',\'7n\':\'7n\',\'7m\':\'7m\'});L.9q={\'4u\':2,\'4F\':2};L.2Z={6C:{2z:k(C,R){u(c.8B)c.8B(C,R,M);W c.c6(\'5U\'+C,R);m c},3h:k(C,R){u(c.9o)c.9o(C,R,M);W c.c4(\'5U\'+C,R);m c}}};P.Q(L.2Z.6C);N.Q(L.2Z.6C);L.Q(L.2Z.6C);o 2C={O:[],4O:k(el){u(!el.$1R){2C.O.1j(el);el.$1R={\'1U\':1}}m el},47:k(O){K(o i=0,j=O.U,el;i<j;i++){u(!(el=O[i])||!el.$1R)77;u(el.$15)el.1h(\'47\').68();K(o p 1d el.$1R)el.$1R[p]=1o;K(o d 1d L.1J)el[d]=1o;2C.O[2C.O.3e(el)]=1o;el.52=el.$1R=el=1o}2C.O.3d(1o)},1m:k(){2C.4O(P);2C.4O(N);2C.47(2C.O)}};P.2z(\'9x\',k(){P.2z(\'7f\',2C.1m);u(P.2K)P.2z(\'7f\',bI)});o 2M=I 17({1i:k(G){u(G&&G.$9n)m G;c.$9n=1f;G=G||P.G;c.G=G;c.C=G.C;c.3M=G.3M||G.bN;u(c.3M.8z==3)c.3M=c.3M.3p;c.9j=G.bT;c.bS=G.bR;c.bP=G.d2;c.cj=G.dy;u([\'8S\',\'54\'].1g(c.C)){c.eV=(G.9k)?G.9k/eX:-(G.eY||0)/3}W u(c.C.1g(\'21\')){c.6f=G.9A||G.eR;K(o 1I 1d 2M.2b){u(2M.2b[1I]==c.6f){c.21=1I;1C}}u(c.C==\'9y\'){o 6h=c.6f-eZ;u(6h>0&&6h<13)c.21=\'f\'+6h}c.21=c.21||8J.eQ(c.6f).5E()}W u(c.C.2A(/(6P|3i|ew)/)){c.1V={\'x\':G.8u||G.9D+N.2S.5D,\'y\':G.8C||G.9E+N.2S.5I};c.aN={\'x\':G.8u?G.8u-P.8W:G.9D,\'y\':G.8C?G.8C-P.9h:G.9E};c.eo=(G.9A==3)||(G.eq==2);2a(c.C){12\'8K\':c.2m=G.2m||G.ez;1C;12\'7C\':c.2m=G.2m||G.8d}c.9z()}m c},1N:k(){m c.6n().6m()},6n:k(){u(c.G.6n)c.G.6n();W c.G.eA=1f;m c},6m:k(){u(c.G.6m)c.G.6m();W c.G.eI=M;m c}});2M.65={2m:k(){u(c.2m&&c.2m.8z==3)c.2m=c.2m.3p},9v:k(){4N{2M.65.2m.1P(c)}58(e){c.2m=c.3M}}};2M.1J.9z=(P.8G)?2M.65.9v:2M.65.2m;2M.2b=I 3B({\'eH\':13,\'6H\':38,\'eB\':40,\'1p\':37,\'4A\':39,\'eD\':27,\'eu\':32,\'eF\':8,\'eE\':9,\'5C\':46});L.2Z.2o={1B:k(C,R){c.$15=c.$15||{};c.$15[C]=c.$15[C]||{\'2b\':[],\'1T\':[]};u(c.$15[C].2b.1g(R))m c;c.$15[C].2b.1j(R);o 64=C;o 2r=L.2o[C];u(2r){u(2r.7z)2r.7z.1P(c,R);u(2r.2H)R=2r.2H;u(2r.C)64=2r.C}u(!c.8B)R=R.34({\'T\':c,\'G\':1f});c.$15[C].1T.1j(R);m(L.8R.1g(64))?c.2z(64,R):c},4o:k(C,R){u(!c.$15||!c.$15[C])m c;o 1l=c.$15[C].2b.3e(R);u(1l==-1)m c;o 21=c.$15[C].2b.67(1l,1)[0];o H=c.$15[C].1T.67(1l,1)[0];o 2r=L.2o[C];u(2r){u(2r.3d)2r.3d.1P(c,R);u(2r.C)C=2r.C}m(L.8R.1g(C))?c.3h(C,H):c},6j:k(1W){m L.62(c,\'1B\',1W)},68:k(C){u(!c.$15)m c;u(!C){K(o 6c 1d c.$15)c.68(6c);c.$15=1o}W u(c.$15[C]){c.$15[C].2b.1r(k(R){c.4o(C,R)},c);c.$15[C]=1o}m c},1h:k(C,1n,2g){u(c.$15&&c.$15[C]){c.$15[C].2b.1r(k(R){R.34({\'T\':c,\'2g\':2g,\'1a\':1n})()},c)}m c},9w:k(Y,C){u(!Y.$15)m c;u(!C){K(o 6c 1d Y.$15)c.9w(Y,6c)}W u(Y.$15[C]){Y.$15[C].2b.1r(k(R){c.1B(C,R)},c)}m c}};P.Q(L.2Z.2o);N.Q(L.2Z.2o);L.Q(L.2Z.2o);L.2o=I 3B({\'7Z\':{C:\'8K\',2H:k(G){G=I 2M(G);u(G.2m!=c&&!c.8v(G.2m))c.1h(\'7Z\',G)}},\'7W\':{C:\'7C\',2H:k(G){G=I 2M(G);u(G.2m!=c&&!c.8v(G.2m))c.1h(\'7W\',G)}},\'54\':{C:(P.8G)?\'8S\':\'54\'}});L.8R=[\'6P\',\'ep\',\'5K\',\'5a\',\'54\',\'8S\',\'8K\',\'7C\',\'2G\',\'9y\',\'f1\',\'f6\',\'4J\',\'7f\',\'9x\',\'f8\',\'4V\',\'eS\',\'f0\',\'3y\',\'eO\',\'eP\',\'3T\',\'aF\',\'8P\',\'eT\',\'2D\'];7h.Q({31:k(T,1n){m c.34({\'T\':T,\'1a\':1n,\'G\':2M})}});22.Q({em:k(3k){m I 22(c.3b(k(el){m(L.4p(el)==3k)}))},9u:k(1x,2x){o O=c.3b(k(el){m(el.1x&&el.1x.1g(1x,\' \'))});m(2x)?O:I 22(O)},9B:k(4j,2x){o O=c.3b(k(el){m(el.4j==4j)});m(2x)?O:I 22(O)},9t:k(1I,7w,H,2x){o O=c.3b(k(el){o 2i=L.5Y(el,1I);u(!2i)m M;u(!7w)m 1f;2a(7w){12\'=\':m(2i==H);12\'*=\':m(2i.1g(H));12\'^=\':m(2i.6O(0,H.U)==H);12\'$=\':m(2i.6O(2i.U-H.U)==H);12\'!=\':m(2i!=H);12\'~=\':m 2i.1g(H,\' \')}m M});m(2x)?O:I 22(O)}});k $E(1L,3b){m($(3b)||N).9V(1L)};k $dv(1L,3b){m($(3b)||N).6T(1L)};$$.3P={\'5q\':/^(\\w*|\\*)(?:#([\\w-]+)|\\.([\\w-]+))?(?:\\[(\\w+)(?:([!*^$]?=)["\']?([^"\'\\]]*)["\']?)?])?$/,\'44\':{7s:k(1v,33,1b,i){o 2n=[33.dw?\'7p:\':\'\',1b[1]];u(1b[2])2n.1j(\'[@4j="\',1b[2],\'"]\');u(1b[3])2n.1j(\'[1g(7v(" ", @4Y, " "), " \',1b[3],\' ")]\');u(1b[4]){u(1b[5]&&1b[6]){2a(1b[5]){12\'*=\':2n.1j(\'[1g(@\',1b[4],\', "\',1b[6],\'")]\');1C;12\'^=\':2n.1j(\'[dt-ds(@\',1b[4],\', "\',1b[6],\'")]\');1C;12\'$=\':2n.1j(\'[dp(@\',1b[4],\', 3n-U(@\',1b[4],\') - \',1b[6].U,\' + 1) = "\',1b[6],\'"]\');1C;12\'=\':2n.1j(\'[@\',1b[4],\'="\',1b[6],\'"]\');1C;12\'!=\':2n.1j(\'[@\',1b[4],\'!="\',1b[6],\'"]\')}}W{2n.1j(\'[@\',1b[4],\']\')}}1v.1j(2n.2l(\'\'));m 1v},7u:k(1v,33,2x){o O=[];o 44=N.9C(\'.//\'+1v.2l(\'//\'),33,$$.3P.9m,dr.dx,1o);K(o i=0,j=44.en;i<j;i++)O.1j(44.dE(i));m(2x)?O:I 22(O.2H($))}},\'9s\':{7s:k(1v,33,1b,i){u(i==0){u(1b[2]){o el=33.71(1b[2]);u(!el||((1b[1]!=\'*\')&&(L.4p(el)!=1b[1])))m M;1v=[el]}W{1v=$A(33.2V(1b[1]))}}W{1v=$$.3P.2V(1v,1b[1]);u(1b[2])1v=22.9B(1v,1b[2],1f)}u(1b[3])1v=22.9u(1v,1b[3],1f);u(1b[4])1v=22.9t(1v,1b[4],1b[5],1b[6],1f);m 1v},7u:k(1v,33,2x){m(2x)?1v:$$.5X(1v)}},9m:k(9l){m(9l==\'7p\')?\'at://a7.dD.dC/dz/7p\':M},2V:k(33,6o){o 7r=[];K(o i=0,j=33.U;i<j;i++)7r.Q(33[i].2V(6o));m 7r}};$$.3P.2j=(P.44)?\'44\':\'9s\';L.2Z.7k={74:k(1L,2x){o 1v=[];1L=1L.5N().5G(\' \');K(o i=0,j=1L.U;i<j;i++){o 9r=1L[i];o 1b=9r.2O($$.3P.5q);u(!1b)1C;1b[1]=1b[1]||\'*\';o 2n=$$.3P[$$.3P.2j].7s(1v,c,1b,i);u(!2n)1C;1v=2n}m $$.3P[$$.3P.2j].7u(1v,c,2x)},9V:k(1L){m $(c.74(1L,1f)[0]||M)},6T:k(1L,2x){o O=[];1L=1L.5G(\',\');K(o i=0,j=1L.U;i<j;i++)O=O.7v(c.74(1L[i],1f));m(2x)?O:$$.5X(O)}};L.Q({71:k(4j){o el=N.71(4j);u(!el)m M;K(o 1t=el.3p;1t!=c;1t=1t.3p){u(!1t)m M}m el},dj:k(1x){m c.74(\'.\'+1x)}});N.Q(L.2Z.7k);L.Q(L.2Z.7k);L.Q({3V:k(){2a(c.4p()){12\'3T\':o 1T=[];$1r(c.B,k(3t){u(3t.7m)1T.1j($51(3t.H,3t.1G))});m(c.7n)?1T:1T[0];12\'9L\':u(!(c.7x&&[\'di\',\'dh\'].1g(c.C))&&![\'4e\',\'1G\',\'de\'].1g(c.C))1C;12\'9M\':m c.H}m M},9Q:k(){m $$(c.2V(\'9L\'),c.2V(\'3T\'),c.2V(\'9M\'))},5V:k(){o 5f=[];c.9Q().1r(k(el){o 1I=el.1I;o H=el.3V();u(H===M||!1I||el.7E)m;o 7D=k(4h){5f.1j(1I+\'=\'+66(4h))};u($C(H)==\'1w\')H.1r(7D);W 7D(H)});m 5f.2l(\'&\')}});L.Q({3G:k(x,y){c.5D=x;c.5I=y},76:k(){m{\'2D\':{\'x\':c.5D,\'y\':c.5I},\'3c\':{\'x\':c.48,\'y\':c.3u},\'78\':{\'x\':c.6p,\'y\':c.5x}}},3j:k(2c){2c=2c||[];o el=c,1p=0,1k=0;do{1p+=el.e9||0;1k+=el.ea||0;el=el.e7}6b(el);2c.1r(k(F){1p-=F.5D||0;1k-=F.5I||0});m{\'x\':1p,\'y\':1k}},ak:k(2c){m c.3j(2c).y},ao:k(2c){m c.3j(2c).x},4G:k(2c){o 1s=c.3j(2c);o 18={\'2w\':c.48,\'2J\':c.3u,\'1p\':1s.x,\'1k\':1s.y};18.4A=18.1p+18.2w;18.3N=18.1k+18.2J;m 18}});L.2o.7B={7z:k(R){u(P.6J){R.1P(c);m}o 5O=k(){u(P.6J)m;P.6J=1f;P.1D=$55(P.1D);c.1h(\'7B\')}.T(c);u(N.4L&&P.4y){P.1D=k(){u([\'6J\',\'8F\'].1g(N.4L))5O()}.3Y(50)}W u(N.4L&&P.2K){u(!$(\'7A\')){o 4F=(P.5d.e3==\'e4:\')?\'://0\':\'8w:e5(0)\';N.eb(\'<2s 4j="7A" ei 4F="\'+4F+\'"><\\/2s>\');$(\'7A\').6l=k(){u(c.4L==\'8F\')5O()}}}W{P.2z("4J",5O);N.2z("ek",5O)}}};P.eh=k(R){m c.1B(\'7B\',R)};P.Q({8r:k(){u(c.5S)m c.ed;u(c.8T)m N.4l.95;m N.2S.95},8L:k(){u(c.5S)m c.ef;u(c.8T)m N.4l.8Z;m N.2S.8Z},9g:k(){u(c.2K)m 19.1y(N.2S.48,N.2S.6p);u(c.4y)m N.4l.6p;m N.2S.6p},9a:k(){u(c.2K)m 19.1y(N.2S.3u,N.2S.5x);u(c.4y)m N.4l.5x;m N.2S.5x},8O:k(){m c.8W||N.2S.5D},8Q:k(){m c.9h||N.2S.5I},76:k(){m{\'3c\':{\'x\':c.8r(),\'y\':c.8L()},\'78\':{\'x\':c.9g(),\'y\':c.9a()},\'2D\':{\'x\':c.8O(),\'y\':c.8Q()}}},3j:k(){m{\'x\':0,\'y\':0}}});o 1c={};1c.2U=I 17({B:{3U:17.1m,1Y:17.1m,7I:17.1m,29:k(p){m-(19.bj(19.7H*p)-1)/2},4a:dS,2q:\'4M\',3z:1f,92:50},1i:k(B){c.F=c.F||1o;c.2Q(B);u(c.B.1i)c.B.1i.1P(c)},2e:k(){o 3s=$3s();u(3s<c.3s+c.B.4a){c.4E=c.B.29((3s-c.3s)/c.B.4a);c.4s();c.4n()}W{c.1N(1f);c.2B(c.14);c.1h(\'1Y\',c.F,10);c.7l()}},2B:k(14){c.V=14;c.4n();m c},4s:k(){c.V=c.4t(c.Y,c.14)},4t:k(Y,14){m(14-Y)*c.4E+Y},1e:k(Y,14){u(!c.B.3z)c.1N();W u(c.1D)m c;c.Y=Y;c.14=14;c.3y=c.14-c.Y;c.3s=$3s();c.1D=c.2e.3Y(19.2k(aE/c.B.92),c);c.1h(\'3U\',c.F);m c},1N:k(25){u(!c.1D)m c;c.1D=$55(c.1D);u(!25)c.1h(\'7I\',c.F);m c},2r:k(Y,14){m c.1e(Y,14)},dZ:k(25){m c.1N(25)}});1c.2U.3q(I 7y,I 2o,I 3W);1c.3l={3T:k(J,14){u(J.2A(/2E/i))m c.2F;o C=$C(14);u((C==\'1w\')||(C==\'3n\'&&14.1g(\' \')))m c.6L;m c.97},2L:k(el,J,56){u(!56.1j)56=[56];o Y=56[0],14=56[1];u(!$2v(14)){14=Y;Y=el.2h(J)}o 1u=c.3T(J,14);m{\'Y\':1u.2L(Y),\'14\':1u.2L(14),\'1u\':1u}}};1c.3l.97={2L:k(H){m 5m(H)},57:k(Y,14,2I){m 2I.4t(Y,14)},3V:k(H,2q,J){u(2q==\'4M\'&&J!=\'1U\')H=19.2k(H);m H+2q}};1c.3l.6L={2L:k(H){m H.1j?H:H.5G(\' \').2H(k(v){m 5m(v)})},57:k(Y,14,2I){o V=[];K(o i=0;i<Y.U;i++)V[i]=2I.4t(Y[i],14[i]);m V},3V:k(H,2q,J){u(2q==\'4M\'&&J!=\'1U\')H=H.2H(19.2k);m H.2l(2q+\' \')+2q}};1c.3l.2F={2L:k(H){m H.1j?H:H.5W(1f)},57:k(Y,14,2I){o V=[];K(o i=0;i<Y.U;i++)V[i]=19.2k(2I.4t(Y[i],14[i]));m V},3V:k(H){m\'1q(\'+H.2l(\',\')+\')\'}};1c.7d=1c.2U.Q({1i:k(el,J,B){c.F=$(el);c.J=J;c.1t(B)},43:k(){m c.2B(0)},4s:k(){c.V=c.1u.57(c.Y,c.14,c)},2B:k(14){c.1u=1c.3l.3T(c.J,14);m c.1t(c.1u.2L(14))},1e:k(Y,14){u(c.1D&&c.B.3z)m c;o 26=1c.3l.2L(c.F,c.J,[Y,14]);c.1u=26.1u;m c.1t(26.Y,26.14)},4n:k(){c.F.1O(c.J,c.1u.3V(c.V,c.B.2q,c.J))}});L.Q({dW:k(J,B){m I 1c.7d(c,J,B)}});1c.42=1c.2U.Q({1i:k(el,B){c.F=$(el);c.1t(B)},4s:k(){K(o p 1d c.Y)c.V[p]=c.1u[p].57(c.Y[p],c.14[p],c)},2B:k(14){o 26={};c.1u={};K(o p 1d 14){c.1u[p]=1c.3l.3T(p,14[p]);26[p]=c.1u[p].2L(14[p])}m c.1t(26)},1e:k(18){u(c.1D&&c.B.3z)m c;c.V={};c.1u={};o Y={},14={};K(o p 1d 18){o 26=1c.3l.2L(c.F,p,18[p]);Y[p]=26.Y;14[p]=26.14;c.1u[p]=26.1u}m c.1t(Y,14)},4n:k(){K(o p 1d c.V)c.F.1O(p,c.1u[p].3V(c.V[p],c.B.2q,p))}});L.Q({3O:k(B){m I 1c.42(c,B)}});1c.22=1c.2U.Q({1i:k(O,B){c.O=$$(O);c.1t(B)},4s:k(){K(o i 1d c.Y){o 5h=c.Y[i],3Z=c.14[i],3C=c.1u[i],5u=c.V[i]={};K(o p 1d 5h)5u[p]=3C[p].57(5h[p],3Z[p],c)}},2B:k(14){o 26={};c.1u={};K(o i 1d 14){o 3Z=14[i],3C=c.1u[i]={},9R=26[i]={};K(o p 1d 3Z){3C[p]=1c.3l.3T(p,3Z[p]);9R[p]=3C[p].2L(3Z[p])}}m c.1t(26)},1e:k(18){u(c.1D&&c.B.3z)m c;c.V={};c.1u={};o Y={},14={};K(o i 1d 18){o 7g=18[i],5h=Y[i]={},3Z=14[i]={},3C=c.1u[i]={};K(o p 1d 7g){o 26=1c.3l.2L(c.O[i],p,7g[p]);5h[p]=26.Y;3Z[p]=26.14;3C[p]=26.1u}}m c.1t(Y,14)},4n:k(){K(o i 1d c.V){o 5u=c.V[i],3C=c.1u[i];K(o p 1d 5u)c.O[i].1O(p,3C[p].3V(5u[p],c.B.2q,p))}}});1c.ac=1c.2U.Q({B:{2c:[],1z:{\'x\':0,\'y\':0},aG:1f},1i:k(F,B){c.V=[];c.F=$(F);c.1E={\'1N\':c.1N.T(c,M)};c.1t(B);u(c.B.aG){c.1B(\'3U\',k(){N.1B(\'54\',c.1E.1N)}.T(c));c.1B(\'1Y\',k(){N.4o(\'54\',c.1E.1N)}.T(c))}},4s:k(){K(o i=0;i<2;i++)c.V[i]=c.4t(c.Y[i],c.14[i])},3G:k(x,y){u(c.1D&&c.B.3z)m c;o el=c.F.76();o 1T={\'x\':x,\'y\':y};K(o z 1d el.3c){o 1y=el.78[z]-el.3c[z];u($2v(1T[z]))1T[z]=($C(1T[z])==\'4P\')?1T[z].1A(0,1y):1y;W 1T[z]=el.2D[z];1T[z]+=c.B.1z[z]}m c.1e([el.2D.x,el.2D.y],[1T.x,1T.y])},dV:k(){m c.3G(M,0)},dU:k(){m c.3G(M,\'b7\')},dT:k(){m c.3G(0,M)},dX:k(){m c.3G(\'b7\',M)},8d:k(el){o 1t=c.F.3j(c.B.2c);o 3M=$(el).3j(c.B.2c);m c.3G(3M.x-1t.x,3M.y-1t.y)},4n:k(){c.F.3G(c.V[0],c.V[1])}});1c.e0=1c.2U.Q({B:{28:\'8h\'},1i:k(el,B){c.F=$(el);c.36=I L(\'4X\',{\'81\':$Q(c.F.bf(\'2Y\'),{\'ba\':\'4e\'})}).6y(c.F).b9(c.F);c.F.1O(\'2Y\',0);c.2Q(B);c.V=[];c.1t(c.B);c.4H=1f;c.1B(\'1Y\',k(){c.4H=(c.V[0]===0)});u(P.5S)c.1B(\'1Y\',k(){u(c.4H)c.F.3d().1X(c.36)})},4s:k(){K(o i=0;i<2;i++)c.V[i]=c.4t(c.Y[i],c.14[i])},8h:k(){c.2Y=\'2Y-1k\';c.5H=\'2J\';c.1z=c.F.3u},8i:k(){c.2Y=\'2Y-1p\';c.5H=\'2w\';c.1z=c.F.48},bh:k(28){c[28||c.B.28]();m c.1e([c.F.2h(c.2Y).2W(),c.36.2h(c.5H).2W()],[0,c.1z])},bi:k(28){c[28||c.B.28]();m c.1e([c.F.2h(c.2Y).2W(),c.36.2h(c.5H).2W()],[-c.1z,0])},43:k(28){c[28||c.B.28]();c.4H=M;m c.2B([-c.1z,0])},3Q:k(28){c[28||c.B.28]();c.4H=1f;m c.2B([0,c.1z])},dY:k(28){u(c.36.3u==0||c.36.48==0)m c.bh(28);m c.bi(28)},4n:k(){c.F.1O(c.2Y,c.V[0]+c.B.2q);c.36.1O(c.5H,c.V[1]+c.B.2q)}});1c.7j=k(29,2R){2R=2R||[];u($C(2R)!=\'1w\')2R=[2R];m $Q(29,{dR:k(1l){m 29(1l,2R)},dL:k(1l){m 1-29(1-1l,2R)},dK:k(1l){m(1l<=0.5)?29(2*1l,2R)/2:(2-29(2*(1-1l),2R))/2}})};1c.3m=I 3B({dJ:k(p){m p}});1c.3m.Q=k(7i){K(o 29 1d 7i){1c.3m[29]=I 1c.7j(7i[29]);1c.3m.7F(29)}};1c.3m.7F=k(29){[\'dM\',\'dN\',\'dQ\'].1r(k(7J){1c.3m[29.5E()+7J]=1c.3m[29][\'dP\'+7J]})};1c.3m.Q({dO:k(p,x){m 19.3r(p,x[0]||6)},e1:k(p){m 19.3r(2,8*(p-1))},e2:k(p){m 1-19.bb(19.ee(p))},eg:k(p){m 1-19.bb((1-p)*19.7H/2)},ej:k(p,x){x=x[0]||1.ec;m 19.3r(p,2)*((x+1)*p-x)},e6:k(p){o H;K(o a=0,b=1;1;a+=b,b/=2){u(p>=(7-4*a)/11){H=-19.3r((11-6*a-11*p)/4,2)+b*b;1C}}m H},e8:k(p,x){m 19.3r(2,10*--p)*19.bj(20*p*19.7H*(x[0]||1)/3)}});[\'dI\',\'dH\',\'dg\',\'df\'].1r(k(29,i){1c.3m[29]=I 1c.7j(k(p){m 19.3r(p,[i+2])});1c.3m.7F(29)});o 3R={};3R.2U=I 17({B:{3I:M,2q:\'4M\',3U:17.1m,an:17.1m,1Y:17.1m,aj:17.1m,8k:17.1m,1A:M,3w:{x:\'1p\',y:\'1k\'},4q:M,6E:6},1i:k(el,B){c.2Q(B);c.F=$(el);c.3I=$(c.B.3I)||c.F;c.3i={\'V\':{},\'1l\':{}};c.H={\'1e\':{},\'V\':{}};c.1E={\'1e\':c.1e.31(c),\'4b\':c.4b.31(c),\'3F\':c.3F.31(c),\'1N\':c.1N.T(c)};c.6G();u(c.B.1i)c.B.1i.1P(c)},6G:k(){c.3I.1B(\'5a\',c.1E.1e);m c},af:k(){c.3I.4o(\'5a\',c.1E.1e);m c},1e:k(G){c.1h(\'an\',c.F);c.3i.1e=G.1V;o 1A=c.B.1A;c.1A={\'x\':[],\'y\':[]};K(o z 1d c.B.3w){u(!c.B.3w[z])77;c.H.V[z]=c.F.2h(c.B.3w[z]).2W();c.3i.1l[z]=G.1V[z]-c.H.V[z];u(1A&&1A[z]){K(o i=0;i<2;i++){u($2v(1A[z][i]))c.1A[z][i]=($C(1A[z][i])==\'k\')?1A[z][i]():1A[z][i]}}}u($C(c.B.4q)==\'4P\')c.B.4q={\'x\':c.B.4q,\'y\':c.B.4q};N.2z(\'2G\',c.1E.4b);N.2z(\'5K\',c.1E.1N);c.1h(\'3U\',c.F);G.1N()},4b:k(G){o al=19.2k(19.dl(19.3r(G.1V.x-c.3i.1e.x,2)+19.3r(G.1V.y-c.3i.1e.y,2)));u(al>c.B.6E){N.3h(\'2G\',c.1E.4b);N.2z(\'2G\',c.1E.3F);c.3F(G);c.1h(\'aj\',c.F)}G.1N()},3F:k(G){c.5o=M;c.3i.V=G.1V;K(o z 1d c.B.3w){u(!c.B.3w[z])77;c.H.V[z]=c.3i.V[z]-c.3i.1l[z];u(c.1A[z]){u($2v(c.1A[z][1])&&(c.H.V[z]>c.1A[z][1])){c.H.V[z]=c.1A[z][1];c.5o=1f}W u($2v(c.1A[z][0])&&(c.H.V[z]<c.1A[z][0])){c.H.V[z]=c.1A[z][0];c.5o=1f}}u(c.B.4q[z])c.H.V[z]-=(c.H.V[z]%c.B.4q[z]);c.F.1O(c.B.3w[z],c.H.V[z]+c.B.2q)}c.1h(\'8k\',c.F);G.1N()},1N:k(){N.3h(\'2G\',c.1E.4b);N.3h(\'2G\',c.1E.3F);N.3h(\'5K\',c.1E.1N);c.1h(\'1Y\',c.F)}});3R.2U.3q(I 2o,I 3W);L.Q({dk:k(B){m I 3R.2U(c,$2t({3w:{x:\'2w\',y:\'2J\'}},B))}});3R.as=3R.2U.Q({B:{7c:[],23:M,2c:[]},1i:k(el,B){c.2Q(B);c.F=$(el);c.7c=$$(c.B.7c);c.23=$(c.B.23);c.1s={\'F\':c.F.2h(\'1s\'),\'23\':M};u(c.23)c.1s.23=c.23.2h(\'1s\');u(![\'6A\',\'4d\',\'4Q\'].1g(c.1s.F))c.1s.F=\'4d\';o 1k=c.F.2h(\'1k\').2W();o 1p=c.F.2h(\'1p\').2W();u(c.1s.F==\'4d\'&&![\'6A\',\'4d\',\'4Q\'].1g(c.1s.23)){1k=$2v(1k)?1k:c.F.ak(c.B.2c);1p=$2v(1p)?1p:c.F.ao(c.B.2c)}W{1k=$2v(1k)?1k:0;1p=$2v(1p)?1p:0}c.F.4x({\'1k\':1k,\'1p\':1p,\'1s\':c.1s.F});c.1t(c.F)},1e:k(G){c.35=1o;u(c.23){o 4r=c.23.4G();o el=c.F.4G();u(c.1s.F==\'4d\'&&![\'6A\',\'4d\',\'4Q\'].1g(c.1s.23)){c.B.1A={\'x\':[4r.1p,4r.4A-el.2w],\'y\':[4r.1k,4r.3N-el.2J]}}W{c.B.1A={\'y\':[0,4r.2J-el.2J],\'x\':[0,4r.2w-el.2w]}}}c.1t(G)},3F:k(G){c.1t(G);o 35=c.5o?M:c.7c.3b(c.av,c).7q();u(c.35!=35){u(c.35)c.35.1h(\'dd\',[c.F,c]);c.35=35?35.1h(\'dc\',[c.F,c]):1o}m c},av:k(el){el=el.4G(c.B.2c);o V=c.3i.V;m(V.x>el.1p&&V.x<el.4A&&V.y<el.3N&&V.y>el.1k)},1N:k(){u(c.35&&!c.5o)c.35.1h(\'d6\',[c.F,c]);W c.F.1h(\'d5\',c);c.1t();m c}});L.Q({d4:k(B){m I 3R.as(c,B)}});o 7e=I 17({B:{2j:\'5c\',ag:1f,ax:17.1m,5n:17.1m,6g:17.1m,a4:1f,5v:\'d3-8\',ab:M,4B:{}},7G:k(){c.2p=(P.6a)?I 6a():(P.2K?I ah(\'d7.d8\'):M);m c},1i:k(B){c.7G().2Q(B);c.B.5T=c.B.5T||c.5T;c.4B={};u(c.B.a4&&c.B.2j==\'5c\'){o 5v=(c.B.5v)?\'; db=\'+c.B.5v:\'\';c.5t(\'aV-C\',\'aS/x-a7-da-d9\'+5v)}u(c.B.1i)c.B.1i.1P(c)},aZ:k(){u(c.2p.4L!=4||!c.4K)m;c.4K=M;o 4f=0;4N{4f=c.2p.4f}58(e){};u(c.B.5T.1P(c,4f))c.5n();W c.6g();c.2p.6l=17.1m},5T:k(4f){m((4f>=dm)&&(4f<dn))},5n:k(){c.4c={\'1G\':c.2p.dB,\'5p\':c.2p.dA};c.1h(\'5n\',[c.4c.1G,c.4c.5p]);c.7l()},6g:k(){c.1h(\'6g\',c.2p)},5t:k(1I,H){c.4B[1I]=H;m c},63:k(3v,1M){u(c.B.ab)c.aP();W u(c.4K)m c;c.4K=1f;u(1M&&c.B.2j==\'6Q\'){3v=3v+(3v.1g(\'?\')?\'&\':\'?\')+1M;1M=1o}c.2p.4H(c.B.2j.7o(),3v,c.B.ag);c.2p.6l=c.aZ.T(c);u((c.B.2j==\'5c\')&&c.2p.dG)c.5t(\'dF\',\'dq\');$Q(c.4B,c.B.4B);K(o C 1d c.4B)4N{c.2p.du(C,c.4B[C])}58(e){};c.1h(\'ax\');c.2p.63($51(1M,1o));m c},aP:k(){u(!c.4K)m c;c.4K=M;c.2p.8P();c.2p.6l=17.1m;c.7G();c.1h(\'7I\');m c}});7e.3q(I 7y,I 2o,I 3W);o aA=7e.Q({B:{1M:1o,85:1o,1Y:17.1m,69:M,8M:M},1i:k(3v,B){c.1B(\'5n\',c.1Y);c.2Q(B);c.B.1M=c.B.1M||c.B.eC;u(![\'5c\',\'6Q\'].1g(c.B.2j)){c.5g=\'5g=\'+c.B.2j;c.B.2j=\'5c\'}c.1t();c.5t(\'X-eU-f7\',\'6a\');c.5t(\'f5\',\'1G/8w, 1G/f4, aS/5p, 1G/5p, */*\');c.3v=3v},1Y:k(){u(c.B.85)$(c.B.85).1m().5Q(c.4c.1G);u(c.B.69||c.B.8M)c.69();c.1h(\'1Y\',[c.4c.1G,c.4c.5p],20)},ay:k(1M){1M=1M||c.B.1M;2a($C(1M)){12\'F\':1M=$(1M).5V();1C;12\'3a\':1M=8t.5V(1M)}u(c.5g)1M=(1M)?[c.5g,1M].2l(\'&\'):c.5g;m c.63(c.3v,1M)},69:k(){o 2s,3H;u(c.B.8M||(/(ev|eN)2s/).2A(c.aB(\'aV-C\')))3H=c.4c.1G;W{3H=[];o 5q=/<2s[^>]*>([\\s\\S]*?)<\\/2s>/er;6b((2s=5q.es(c.4c.1G)))3H.1j(2s[1]);3H=3H.2l(\'\\n\')}u(3H)(P.aK)?P.aK(3H):P.aC(3H,0)},aB:k(1I){4N{m c.2p.eJ(1I)}58(e){};m 1o}});8t.5V=k(1W){o 5f=[];K(o J 1d 1W)5f.1j(66(J)+\'=\'+66(1W[J]));m 5f.2l(\'&\')};L.Q({63:k(B){m I aA(c.5Y(\'eG\'),$2t({1M:c.5V()},B,{2j:\'5c\'})).ay()}});o eL=I 3B({B:{6d:M,6e:M,4a:M,8E:M},2B:k(21,H,B){B=$2t(c.B,B);H=66(H);u(B.6d)H+=\'; 6d=\'+B.6d;u(B.6e)H+=\'; 6e=\'+B.6e;u(B.4a){o 6k=I az();6k.eK(6k.aD()+B.4a*24*60*60*aE);H+=\'; et=\'+6k.ey()}u(B.8E)H+=\'; 8E\';N.4C=21+\'=\'+H;m $Q(B,{\'21\':21,\'H\':H})},6Q:k(21){o H=N.4C.2O(\'(?:^|;)\\\\s*\'+21.aI()+\'=([^;]*)\');m H?ex(H[1]):M},3d:k(4C,B){u($C(4C)==\'3a\')c.2B(4C.21,\'\',$2t(4C,{4a:-1}));W c.2B(4C,\'\',$2t(B,{4a:-1}))}});o aH=I 3B({8w:k(1W,1F){1F=$2t({\'5B\':17.1m},1F);o 2s=I L(\'2s\',{\'4F\':1W}).6j({\'4J\':1F.5B,\'eM\':k(){u(c.4L==\'8F\')c.1h(\'4J\')}});5C 1F.5B;m 2s.61(1F).1X(N.6i)},1u:k(1W,1F){m I L(\'4g\',$2t({\'au\':\'f2\',\'f3\':\'eW\',\'C\':\'1G/1u\',\'4u\':1W},1F)).1X(N.6i)},4W:k(1W,1F){1F=$2t({\'5B\':17.1m,\'bO\':17.1m,\'bJ\':17.1m},1F);o 4W=I bK();4W.4F=1W;o F=I L(\'8H\',{\'4F\':1W});[\'4J\',\'8P\',\'aF\'].1r(k(C){o G=1F[\'5U\'+C];5C 1F[\'5U\'+C];F.1B(C,k(){c.4o(C,1a.8I);G.1P(c)})});u(4W.2w&&4W.2J)F.1h(\'4J\',F,1);m F.61(1F)},6Y:k(59,B){B=$2t({1Y:17.1m,aJ:17.1m},B);u(!59.1j)59=[59];o 6Y=[];o 6X=0;59.1r(k(1W){o 8H=I aH.4W(1W,{\'5B\':k(){B.aJ.1P(c,6X);6X++;u(6X==59.U)B.1Y()}});6Y.1j(8H)});m I 22(6Y)}});o 2F=I 17({1i:k(2E,C){C=C||(2E.1j?\'1q\':\'3L\');o 1q,2d;2a(C){12\'1q\':1q=2E;2d=1q.80();1C;12\'2d\':1q=2E.aL();2d=2E;1C;5y:1q=2E.5W(1f);2d=1q.80()}1q.2d=2d;1q.3L=1q.5w();m $Q(1q,2F.1J)},5e:k(){o 5Z=$A(1a);o 6Z=($C(5Z[5Z.U-1])==\'4P\')?5Z.c3():50;o 1q=c.8N();5Z.1r(k(2E){2E=I 2F(2E);K(o i=0;i<3;i++)1q[i]=19.2k((1q[i]/ 2X * (2X - 6Z)) + (2E[i] /2X*6Z))});m I 2F(1q,\'1q\')},c7:k(){m I 2F(c.2H(k(H){m 4I-H}))},bB:k(H){m I 2F([H,c.2d[1],c.2d[2]],\'2d\')},bA:k(6R){m I 2F([c.2d[0],6R,c.2d[2]],\'2d\')},bC:k(6R){m I 2F([c.2d[0],c.2d[1],6R],\'2d\')}});k $bD(r,g,b){m I 2F([r,g,b],\'1q\')};k $by(h,s,b){m I 2F([h,s,b],\'2d\')};2u.Q({80:k(){o 5j=c[0],5i=c[1],6U=c[2];o 2T,72,7V;o 1y=19.1y(5j,5i,6U),3o=19.3o(5j,5i,6U);o 4E=1y-3o;7V=1y/4I;72=(1y!=0)?4E/1y:0;u(72==0){2T=0}W{o 82=(1y-5j)/4E;o 83=(1y-5i)/4E;o br=(1y-6U)/4E;u(5j==1y)2T=br-83;W u(5i==1y)2T=2+82-br;W 2T=4+83-82;2T/=6;u(2T<0)2T++}m[19.2k(2T*aU),19.2k(72*2X),19.2k(7V*2X)]},aL:k(){o br=19.2k(c[2]/2X*4I);u(c[1]==0){m[br,br,br]}W{o 2T=c[0]%aU;o f=2T%60;o p=19.2k((c[2]*(2X-c[1]))/bv*4I);o q=19.2k((c[2]*(aT-c[1]*f))/aW*4I);o t=19.2k((c[2]*(aT-c[1]*(60-f)))/aW*4I);2a(19.aX(2T/60)){12 0:m[br,t,p];12 1:m[q,br,p];12 2:m[p,br,t];12 3:m[p,q,br];12 4:m[t,p,br];12 5:m[br,p,q]}}m M}});o aM=I 17({B:{5M:20,84:1,6D:k(x,y){c.F.3G(x,y)}},1i:k(F,B){c.2Q(B);c.F=$(F);c.7Q=([P,N].1g(F))?$(N.4l):c.F},1e:k(){c.7T=c.aR.31(c);c.7Q.2z(\'2G\',c.7T)},1N:k(){c.7Q.3h(\'2G\',c.7T);c.1D=$55(c.1D)},aR:k(G){c.1V=(c.F==P)?G.aN:G.1V;u(!c.1D)c.1D=c.2D.3Y(50,c)},2D:k(){o el=c.F.76();o 1l=c.F.3j();o 3y={\'x\':0,\'y\':0};K(o z 1d c.1V){u(c.1V[z]<(c.B.5M+1l[z])&&el.2D[z]!=0)3y[z]=(c.1V[z]-c.B.5M-1l[z])*c.B.84;W u(c.1V[z]+c.B.5M>(el.3c[z]+1l[z])&&el.2D[z]+el.3c[z]!=el.78[z])3y[z]=(c.1V[z]-el.3c[z]+c.B.5M-1l[z])*c.B.84}u(3y.y||3y.x)c.1h(\'6D\',[el.2D.x+3y.x,el.2D.y+3y.y])}});aM.3q(I 2o,I 3W);o 87=I 17({B:{6D:17.1m,1Y:17.1m,8m:k(1l){c.3S.1O(c.p,1l)},28:\'8i\',6M:2X,1z:0},1i:k(el,3S,B){c.F=$(el);c.3S=$(3S);c.2Q(B);c.8l=-1;c.8f=-1;c.2e=-1;c.F.1B(\'5a\',c.aO.31(c));o 6v,1z;2a(c.B.28){12\'8i\':c.z=\'x\';c.p=\'1p\';6v={\'x\':\'1p\',\'y\':M};1z=\'48\';1C;12\'8h\':c.z=\'y\';c.p=\'1k\';6v={\'x\':M,\'y\':\'1k\'};1z=\'3u\'}c.1y=c.F[1z]-c.3S[1z]+(c.B.1z*2);c.aw=c.3S[1z]/2;c.aQ=c.F[\'6Q\'+c.p.8g()].T(c.F);c.3S.1O(\'1s\',\'6A\').1O(c.p,-c.B.1z);o 8j={};8j[c.z]=[-c.B.1z,c.1y-c.B.1z];c.3F=I 3R.2U(c.3S,{1A:8j,3w:6v,6E:0,3U:k(){c.6s()}.T(c),8k:k(){c.6s()}.T(c),1Y:k(){c.6s();c.25()}.T(c)});u(c.B.1i)c.B.1i.1P(c)},2B:k(2e){c.2e=2e.1A(0,c.B.6M);c.6t();c.25();c.1h(\'8m\',c.ad(c.2e));m c},aO:k(G){o 1s=G.1V[c.z]-c.aQ()-c.aw;1s=1s.1A(-c.B.1z,c.1y-c.B.1z);c.2e=c.88(1s);c.6t();c.25();c.1h(\'8m\',1s)},6s:k(){c.2e=c.88(c.3F.H.V[c.z]);c.6t()},6t:k(){u(c.8l!=c.2e){c.8l=c.2e;c.1h(\'6D\',c.2e)}},25:k(){u(c.8f!==c.2e){c.8f=c.2e;c.1h(\'1Y\',c.2e+\'\')}},88:k(1s){m 19.2k((1s+c.B.1z)/c.1y*c.B.6M)},ad:k(2e){m c.1y*2e/c.B.6M}});87.3q(I 2o);87.3q(I 3W);o cQ=1c.ac.Q({1i:k(B){c.1t(P,B);c.5k=(c.B.5k)?$$(c.B.5k):$$(N.5k);o 5d=P.5d.4u.2O(/^[^#]*/)[0]+\'#\';c.5k.1r(k(4g){u(4g.4u.3e(5d)!=0)m;o 3D=4g.4u.6O(5d.U);u(3D&&$(3D))c.ae(4g,3D)},c);u(!P.5S)c.1B(\'1Y\',k(){P.5d.cT=c.3D})},ae:k(4g,3D){4g.1B(\'6P\',k(G){c.3D=3D;c.8d(3D);G.1N()}.31(c))}});o ai=I 17({B:{4i:M,3U:17.1m,1Y:17.1m,2N:1f,6E:3,a6:k(F,2N){2N.1O(\'1U\',0.7);F.1O(\'1U\',0.7)},a9:k(F,2N){F.1O(\'1U\',1);2N.3d();c.47.3d()}},1i:k(4U,B){c.2Q(B);c.4U=$(4U);c.O=c.4U.7P();c.4i=(c.B.4i)?$$(c.B.4i):c.O;c.1E={\'1e\':[],\'5L\':c.5L.31(c)};K(o i=0,l=c.4i.U;i<l;i++){c.1E.1e[i]=c.1e.31(c,c.O[i])}c.6G();u(c.B.1i)c.B.1i.1P(c);c.1E.4V=c.4V.31(c);c.1E.25=c.25.T(c)},6G:k(){c.4i.1r(k(3I,i){3I.1B(\'5a\',c.1E.1e[i])},c)},af:k(){c.4i.1r(k(3I,i){3I.4o(\'5a\',c.1E.1e[i])},c)},1e:k(G,el){c.4w=el;c.8e=c.4U.4G();u(c.B.2N){o 1s=el.3j();c.1z=G.1V.y-1s.y;c.47=I L(\'4X\').1X(N.4l);c.2N=el.aa().1X(c.47).4x({\'1s\':\'4d\',\'1p\':1s.x,\'1k\':G.1V.y-c.1z});N.2z(\'2G\',c.1E.5L);c.1h(\'a6\',[el,c.2N])}N.2z(\'2G\',c.1E.4V);N.2z(\'5K\',c.1E.25);c.1h(\'3U\',el);G.1N()},5L:k(G){o H=G.1V.y-c.1z;H=H.1A(c.8e.1k,c.8e.3N-c.2N.3u);c.2N.1O(\'1k\',H);G.1N()},4V:k(G){o V=G.1V.y;c.2f=c.2f||V;o 6H=((c.2f-V)>0);o 6I=c.4w.a5();o 3A=c.4w.8n();u(6I&&6H&&V<6I.4G().3N)c.4w.8y(6I);u(3A&&!6H&&V>3A.4G().1k)c.4w.6y(3A);c.2f=V},cm:k(a8){m c.4U.7P().2H(a8||k(el){m c.O.3e(el)},c)},25:k(){c.2f=1o;N.3h(\'2G\',c.1E.4V);N.3h(\'5K\',c.1E.25);u(c.B.2N){N.3h(\'2G\',c.1E.5L);c.1h(\'a9\',[c.4w,c.2N])}c.1h(\'1Y\',c.4w)}});ai.3q(I 2o,I 3W);o b5=I 17({B:{b1:k(3X){3X.1O(\'4m\',\'7U\')},b0:k(3X){3X.1O(\'4m\',\'4e\')},8p:30,aY:2X,be:2X,1x:\'cx\',5l:{\'x\':16,\'y\':16},4Q:M},1i:k(O,B){c.2Q(B);c.49=I L(\'4X\',{\'4Y\':c.B.1x+\'-3X\',\'81\':{\'1s\':\'4d\',\'1k\':\'0\',\'1p\':\'0\',\'4m\':\'4e\'}}).1X(N.4l);c.36=I L(\'4X\').1X(c.49);$$(O).1r(c.ar,c);u(c.B.1i)c.B.1i.1P(c)},ar:k(el){el.$1R.45=(el.4u&&el.4p()==\'a\')?el.4u.3J(\'at://\',\'\'):(el.au||M);u(el.4R){o 6K=el.4R.5G(\'::\');u(6K.U>1){el.$1R.45=6K[0].5N();el.$1R.5P=6K[1].5N()}W{el.$1R.5P=el.4R}el.aq(\'4R\')}W{el.$1R.5P=M}u(el.$1R.45&&el.$1R.45.U>c.B.8p)el.$1R.45=el.$1R.45.6O(0,c.B.8p-1)+"&ct;";el.1B(\'7Z\',k(G){c.1e(el);u(!c.B.4Q)c.8o(G);W c.1s(el)}.T(c));u(!c.B.4Q)el.1B(\'2G\',c.8o.31(c));o 25=c.25.T(c);el.1B(\'7W\',25);el.1B(\'47\',25)},1e:k(el){c.36.1m();u(el.$1R.45){c.4R=I L(\'am\').1X(I L(\'4X\',{\'4Y\':c.B.1x+\'-4R\'}).1X(c.36)).5Q(el.$1R.45)}u(el.$1R.5P){c.1G=I L(\'am\').1X(I L(\'4X\',{\'4Y\':c.B.1x+\'-1G\'}).1X(c.36)).5Q(el.$1R.5P)}$55(c.1D);c.1D=c.3Q.2g(c.B.aY,c)},25:k(G){$55(c.1D);c.1D=c.43.2g(c.B.be,c)},1s:k(F){o 1l=F.3j();c.49.4x({\'1p\':1l.x+c.B.5l.x,\'1k\':1l.y+c.B.5l.y})},8o:k(G){o bd={\'x\':P.8r(),\'y\':P.8L()};o 2D={\'x\':P.8O(),\'y\':P.8Q()};o 3X={\'x\':c.49.48,\'y\':c.49.3u};o 1Q={\'x\':\'1p\',\'y\':\'1k\'};K(o z 1d 1Q){o 1l=G.1V[z]+c.B.5l[z];u((1l+3X[z]-2D[z])>bd[z])1l=G.1V[z]-c.B.5l[z]-3X[z];c.49.1O(1Q[z],1l)}},3Q:k(){u(c.B.b2)c.1D=c.43.2g(c.B.b2,c);c.1h(\'b1\',[c.49])},43:k(){c.1h(\'b0\',[c.49])}});b5.3q(I 2o,I 3W);o cv=I 17({1i:k(){c.6x=$A(1a);c.15={};c.53={}},1B:k(C,R){c.53[C]=c.53[C]||{};c.15[C]=c.15[C]||[];u(c.15[C].1g(R))m M;W c.15[C].1j(R);c.6x.1r(k(5r,i){5r.1B(C,c.4b.T(c,[C,5r,i]))},c);m c},4b:k(C,5r,i){c.53[C][i]=1f;o 4v=c.6x.4v(k(2i,j){m c.53[C][j]||M},c);u(!4v)m;c.53[C]={};c.15[C].1r(k(G){G.1P(c,c.6x,5r)},c)}});o 7t=1c.22.Q({B:{8A:17.1m,b4:17.1m,3K:0,3Q:M,2J:1f,2w:M,1U:1f,6S:M,79:M,3z:M,6V:M},1i:k(){o B,2y,O,23;$1r(1a,k(4k,i){2a($C(4k)){12\'3a\':B=4k;1C;12\'F\':23=$(4k);1C;5y:o 2n=$$(4k);u(!2y)2y=2n;W O=2n}});c.2y=2y||[];c.O=O||[];c.23=$(23);c.2Q(B);c.2f=-1;u(c.B.6V)c.B.3z=1f;u($2v(c.B.3Q)){c.B.3K=M;c.2f=c.B.3Q}u(c.B.1e){c.B.3K=M;c.B.3Q=M}c.3O={};u(c.B.1U)c.3O.1U=\'b8\';u(c.B.2w)c.3O.2w=c.B.79?\'bc\':\'48\';u(c.B.2J)c.3O.2J=c.B.6S?\'bg\':\'5x\';K(o i=0,l=c.2y.U;i<l;i++)c.b3(c.2y[i],c.O[i]);c.O.1r(k(el,i){u(c.B.3Q===i){c.1h(\'8A\',[c.2y[i],el])}W{K(o 2I 1d c.3O)el.1O(2I,0)}},c);c.1t(c.O);u($2v(c.B.3K))c.3K(c.B.3K)},b3:k(3g,F,1l){3g=$(3g);F=$(F);o 2A=c.2y.1g(3g);o 3x=c.2y.U;c.2y.5s(3g);c.O.5s(F);u(3x&&(!2A||1l)){1l=$51(1l,3x-1);3g.8y(c.2y[1l]);F.6y(3g)}W u(c.23&&!2A){3g.1X(c.23);F.1X(c.23)}o b6=c.2y.3e(3g);3g.1B(\'6P\',c.3K.T(c,b6));u(c.B.2J)F.4x({\'4z-1k\':0,\'2P-1k\':\'75\',\'4z-3N\':0,\'2P-3N\':\'75\'});u(c.B.2w)F.4x({\'4z-1p\':0,\'2P-1p\':\'75\',\'4z-4A\':0,\'2P-4A\':\'75\'});F.b8=1;u(c.B.79)F.bc=c.B.79;u(c.B.6S)F.bg=c.B.6S;F.1O(\'ba\',\'4e\');u(!2A){K(o 2I 1d c.3O)F.1O(2I,0)}m c},3K:k(1Z){1Z=($C(1Z)==\'F\')?c.O.3e(1Z):1Z;u((c.1D&&c.B.3z)||(1Z===c.2f&&!c.B.6V))m c;c.2f=1Z;o 18={};c.O.1r(k(el,i){18[i]={};o 43=(i!=1Z)||(c.B.6V&&(el.3u>0));c.1h(43?\'b4\':\'8A\',[c.2y[i],el]);K(o 2I 1d c.3O)18[i][2I]=43?0:el[c.3O[2I]]},c);m c.1e(18)},bY:k(1Z){m c.3K(1Z)}});1c.7t=7t;',62,939,'||||||||||||this||||||||function||return||var||||||if|||||||options|type|||element|event|value|new|property|for|Element|false|document|elements|window|extend|fn||bind|length|now|else||from||||case||to|events||Class|obj|Math|arguments|param|Fx|in|start|true|contains|fireEvent|initialize|push|top|pos|empty|args|null|left|rgb|each|position|parent|css|items|array|className|max|offset|limit|addEvent|break|timer|bound|properties|text|style|name|prototype|result|selector|data|stop|setStyle|call|prop|tmp|props|values|opacity|page|source|inject|onComplete|index||key|Elements|container||end|parsed||mode|transition|switch|keys|overflown|hsb|step|previous|delay|getStyle|current|method|round|join|relatedTarget|temp|Events|transport|unit|custom|script|merge|Array|chk|width|nocash|togglers|addListener|test|set|Garbage|scroll|color|Color|mousemove|map|fx|height|ie|parse|Event|ghost|match|border|setOptions|params|documentElement|hue|Base|getElementsByTagName|toInt|100|margin|Methods||bindWithEvent||context|create|overed|wrapper||||object|filter|size|remove|indexOf|item|toggler|removeListener|mouse|getPosition|tag|CSS|Transitions|string|min|parentNode|implement|pow|time|option|offsetHeight|url|modifiers|len|change|wait|next|Abstract|iCss|anchor|returns|drag|scrollTo|scripts|handle|replace|display|hex|target|bottom|effects|shared|show|Drag|knob|select|onStart|getValue|Options|tip|periodical|iTo||iterable|Styles|hide|xpath|myTitle||trash|offsetWidth|toolTip|duration|check|response|absolute|hidden|status|link|val|handles|id|argument|body|visibility|increase|removeEvent|getTag|grid|cont|setNow|compute|href|every|active|setStyles|webkit|padding|right|headers|cookie|chains|delta|src|getCoordinates|open|255|load|running|readyState|px|try|collect|number|fixed|title|apply|native|list|move|image|div|class|results||pick|htmlElement|checker|mousewheel|clear|fromTo|getNow|catch|sources|mousedown|bit|post|location|mix|queryString|_method|iFrom|green|red|links|offsets|parseFloat|onSuccess|out|xml|regexp|instance|include|setHeader|iNow|encoding|rgbToHex|scrollHeight|default|klass|parseInt|onload|delete|scrollLeft|toLowerCase|HTMLElement|split|layout|scrollTop|walk|mouseup|moveGhost|area|trim|domReady|myText|setHTML|precision|webkit419|isSuccess|on|toQueryString|hexToRgb|unique|getProperty|colors||setProperties|setMany|send|realType|fix|encodeURIComponent|splice|removeEvents|evalScripts|XMLHttpRequest|while|evType|domain|path|code|onFailure|fKey|head|addEvents|date|onreadystatechange|preventDefault|stopPropagation|tagName|scrollWidth|regex|currentStyle|draggedKnob|checkStep|attempt|mod|forEach|instances|injectAfter|typeof|relative|brother|Listeners|onChange|snap|generic|attach|up|prev|loaded|dual|Multi|steps|included|substr|click|get|percent|fixedHeight|getElementsBySelector|blue|alwaysHide|Properties|counter|images|alpha|mp|getElementById|saturation|setProperty|getElements|none|getSize|continue|scrollSize|fixedWidth|defined|proto|droppables|Style|XHR|unload|iProps|Function|transitions|Transition|Dom|callChain|selected|multiple|toUpperCase|xhtml|getLast|found|getParam|Accordion|getItems|concat|operator|checked|Chain|add|ie_ready|domready|mouseout|qs|disabled|compat|setTransport|PI|onCancel|easeType|firstChild|first|cssText|innerText|insertBefore|getChildren|mousemover|flag|node|coord|visible|brightness|mouseleave|getMany|pairs|mouseenter|rgbToHsb|styles|rr|gr|velocity|update|camelCase|Slider|toStep|appendChild|RegExp|clean|hasClass|toElement|coordinates|previousEnd|capitalize|vertical|horizontal|lim|onDrag|previousChange|onTick|getNext|locate|maxTitleChars|charAt|getWidth|random|Object|pageX|hasChild|javascript|newArray|injectBefore|nodeType|onActive|addEventListener|pageY|merged|secure|complete|gecko|img|callee|String|mouseover|getHeight|evalResponse|copy|getScrollLeft|abort|getScrollTop|NativeEvents|DOMMouseScroll|opera|constructor|picked|pageXOffset|ie6|contents|clientHeight|undefined|after|fps|elementsProperty|where|clientWidth|createElement|Single|toFloat|Number|getScrollHeight|Merge|pp|slice|before|interval|getScrollWidth|pageYOffset|childNodes|shift|wheelDelta|prefix|resolver|extended|removeEventListener|borderShort|PropertiesIFlag|sel|normal|filterByAttribute|filterByClass|relatedTargetGecko|cloneEvents|beforeunload|keydown|fixRelatedTarget|which|filterById|evaluate|clientX|clientY|direction|Left|defaultView|hyphenate|nodeValue|removeChild|input|textarea|addClass|setOpacity|zoom|getFormElements|iParsed|appendText|Top|Right|getElement|Bottom|0px|Width|styleSheet|innerHTML|textContent|fixStyle|removeClass|urlEncoded|getPrevious|onDragStart|www|converter|onDragComplete|clone|autoCancel|Scroll|toPosition|useLink|detach|async|ActiveXObject|Sortables|onSnap|getTop|distance|span|onBeforeStart|getLeft||removeAttribute|build|Move|http|rel|checkAgainst|half|onRequest|request|Date|Ajax|getHeader|setTimeout|getTime|1000|error|wheelStops|Asset|escapeRegExp|onProgress|execScript|hsbToRgb|Scroller|client|clickedElement|cancel|getPos|getCoords|application|6000|360|Content|600000|floor|showDelay|onStateChange|onHide|onShow|timeout|addSection|onBackground|Tips|idx|full|fullOpacity|adopt|overflow|sin|fullWidth|win|hideDelay|getStyles|fullHeight|slideIn|slideOut|cos|colSpan|colspan|accessKey|rowSpan|accesskey|rowspan|borderColor||clearInterval|clearTimeout|Window|10000|ie7|Document|HSB|borderWidth|setSaturation|setHue|setBrightness|RGB|borderStyle|tabindex|htmlFor|readonly|CollectGarbage|onerror|Image|version|nodeName|srcElement|onabort|alt|MooTools|ctrlKey|control|shiftKey|textnode|whitespace|all|readOnly|showThisHideOpen|maxLength|maxlength|frameborder|frameBorder|pop|detachEvent|collection|attachEvent|invert|tabIndex|webkit420|cloneNode|replaceWith|injectTop|injectInside|some|replaceChild|createTextNode|toggleClass|float|meta|chain|clearChain|serialize|associate|err|boolean|embed|pass|bindAsEventListener|hellip|setInterval|Group|getRandom|tool|transparent|toString|styleFloat|cssFloat|attributes|getBoxObjectFor|getAttribute|khtml|getParent|times|removeProperty|taintEnabled|getText|setText|setAttribute|getProperties|lastChild|getFirst|SmoothScroll|getComputedStyle|hasLayout|hash|zIndex|getPropertyValue|BackgroundImageCache|Sibling|iframe|DOMElement|execCommand|navigator|altKey|utf|makeDraggable|emptydrop|drop|Microsoft|XMLHTTP|urlencoded|form|charset|over|leave|password|Quint|Quart|radio|checkbox|getElementsByClassName|makeResizable|sqrt|200|300||substring|close|XPathResult|with|starts|setRequestHeader|ES|namespaceURI|UNORDERED_NODE_SNAPSHOT_TYPE|metaKey|1999|responseXML|responseText|org|w3|snapshotItem|Connection|overrideMimeType|Cubic|Quad|linear|easeInOut|easeOut|In|Out|Pow|ease|InOut|easeIn|500|toLeft|toBottom|toTop|effect|toRight|toggle|clearTimer|Slide|Expo|Circ|protocol|https|void|Bounce|offsetParent|Elastic|offsetLeft|offsetTop|write|618|innerWidth|acos|innerHeight|Sine|onDomReady|defer|Back|DOMContentLoaded||filterByTag|snapshotLength|rightClick|dblclick|button|gi|exec|expires|space|ecma|menu|decodeURIComponent|toGMTString|fromElement|cancelBubble|down|postBody|esc|tab|backspace|action|enter|returnValue|getResponseHeader|setTime|Cookie|readystatechange|java|submit|reset|fromCharCode|keyCode|focus|contextmenu|Requested|wheel|screen|120|detail|111|blur|keypress|stylesheet|media|html|Accept|keyup|With|resize'.split('|'),0,{}))
/*
Script: MooTips.js
	Tooltips, BubbleTips, whatever they are, they will appear on mouseover

License:
	MIT-style license.

Credits:
	The idea behind Tips.js is based on Bubble Tooltips (<http://web-graphics.com/mtarchive/001717.php>) by Alessandro Fulcitiniti <http://web-graphics.com>
	MooTips.js is based on Tips.js.
		Modified by razvan@e-magine.ro (<http://www.e-magine.ro/>): 
			allow AJAX and DOM usage
		Modified by Vladimir Prieto (<http://vladimirprieto.blogspot.com>): 
			prevent "fixed" tips from hiding onmouseenter of the tip
		Modified by uhleeka@gmail.com:
			allow EVAL usage
*/

/*
Script: MooTips.js
	Tooltips, BubbleTips, whatever they are, they will appear on mouseover

License:
	MIT-style license.

Credits:
	The idea behind Tips.js is based on Bubble Tooltips (<http://web-graphics.com/mtarchive/001717.php>) by Alessandro Fulcitiniti <http://web-graphics.com>
	MooTips.js is based on Tips.js.
		Modified by razvan@e-magine.ro (<http://www.e-magine.ro/>): 
			allow AJAX and DOM usage
		Modified by Vladimir Prieto (<http://vladimirprieto.blogspot.com>): 
			prevent "fixed" tips from hiding onmouseenter of the tip
		Modified by uhleeka@gmail.com:
			allow EVAL usage

Class: MooTips
	Display a tip on any element with a title and/or href.

Note:
	Tips requires an XHTML doctype.

Arguments:
	elements - a collection of elements to apply the tooltips to on mouseover.
	options - an object. See options Below.

Options:
	showOnClick - set to true to display the tooltip onclick; defaults to false;
	showOnMouseEnter - set to false to prevent the tooltip from displaying onmouseenter; defaults to true;
	
	maxTitleChars - the maximum number of characters to display in the title of the tip. defaults to 30.

	onShow - optionally you can alter the default onShow behaviour with this option (like displaying a fade in effect);
	onHide - optionally you can alter the default onHide behaviour with this option (like displaying a fade out effect);

	showDelay - the delay the onShow method is called. (defaults to 100 ms)
	hideDelay - the delay the onHide method is called. (defaults to 100 ms)

	className - the prefix for your tooltip classNames. defaults to 'tool'.

		the whole tooltip will have as classname: tool-tip

		the title will have as classname: tool-title

		the text will have as classname: tool-text

	offsets - the distance of your tooltip from the mouse. an Object with x/y properties.
	fixed - if set to true, the toolTip will not follow the mouse.
	
	loadingText - text to display as a title while loading an AJAX tooltip.
	
	errTitle, errText - text to display when there's a problem with the AJAX request.

	evalAlways - set to true when using the AJAX or EVAL methods to handle the request on every mouseover; set to false to cache the value of the first attempt; defaults to false;

Example:
	(start code)
	<div>
	<img src="images/moo.png" title="Title::The content of the tooltip is stored in the &quot;title&quot; attribute" class="toolTipImg"/>
	<h4>Title</h4>
	
	<img src="images/moo.png" title="EVAL:'Eval Title\:\:' + Date() + '<br /><br />[Note the escaped delimiters]'" class="toolTipImgEVAL1"/>
	<h4>EVAL (click me)</h4>
	
	<img src="images/moo.png" title="AJAX:lipsum.htm" class="toolTipImgAJAX"/>
	<h4>AJAX</h4>
	
	<img src="images/moo.png" title="DOM:HiddenElementID" class="toolTipImgDOM"/>
		<div style="display:none;" id="HiddenElementID">DOM Title::DOM Tooltip body<br /><br /><img src="images/moo.png" width="124" /></div>
	<h4>DOM</h4>
	
	<img src="images/moo.png" title="EVAL:myEvalFunction()" class="toolTipImgEVAL2"/>
	<h4>EVAL</h4>
	
	<img src="images/moo.png" title="AJAX:invalidurl.htm" class="toolTipImgAJAX_Err"/>
	<h4>AJAX (error)</h4>
	</div>
	<script>
		window.onload = function() {
			var myTips1 = new MooTips($$('.toolTipImg'), {
				maxTitleChars: 50		// long caption
			});
			var myTips2 = new MooTips($$('.toolTipImgDOM'), {
				showDelay: 500			// Delay for 500 milliseconds
			});
			var myTips3 = new MooTips($$('.toolTipImgAJAX'), {
				maxTitleChars: 100,		// very long caption
				fixed: true,			// fixed in place; note tip mouseover does not hide tip
				offsets: {'x':100,'y':100} // offset by 100,100
			});
			var myTips4 = new MooTips($$('.toolTipImgEVAL1'), {
				evalAlways: true,		// always run the eval statement
				showOnClick: true,		// click image to show tooltip
				showOnMouseEnter: false	// do not show on mouse enter
			});
			var myTips5 = new MooTips($$('.toolTipImgEVAL2'), {});
		}
		function myEvalFunction() {
			return 'Eval Function Title::Text to be displayed in the body of the tooltip';
		}
	</script>
	(end)

Note:
	The title of the element will always be used as the tooltip body. If you put :: on your title, the text before :: will become the tooltip title.
	If you put DOM:someElementID in your title, $('someElementID').innerHTML will be used as the tooltip contents (same syntax as above).
	If you put AJAX:http://www.example.com/path/to/ajax_file.php in your title, the response text will be used as the tooltip contents (same syntax as above). Either absolute or relative paths are ok.
	If you put EVAL:somethingToEval in your title, the eval(somethingToEval) response text will be used as the tooltip contents (same syntax as above).
	
*/

var MooTips = new Class({

	options: { // modded for X3
		onShow: function(tip){
			tip.setStyle('visibility', 'visible');
		},
		onHide: function(tip){
			tip.setStyle('visibility', 'hidden');
		},
		showOnClick: false,
		showOnMouseEnter: true,
		maxTitleChars: 30,
		showDelay: 100,
		hideDelay: 100,
		className: 'tool',
		offsets: {'x': 16, 'y': 16},
		fixed: false,
		loadingText: 'Loading...',
		errTitle: 'Error...',
		errText: 'There was a problem retrieving the contents of this tooltip.',
		evalAlways: false
	},

	initialize: function(elements, options){
		this.setOptions(options);
		this.toolTip = new Element('div', {
			'class': this.options.className + '-tip',
			'styles': {
				'position': 'absolute',
				'top': '0',
				'left': '0',
				'visibility': 'hidden'
			},
			'events': {
					'mouseenter': function(event){
						//setting state property, needed on end function
						this.setProperty('state','mouseenter');
					},
					'mouseleave': function(event){
						//setting state property, needed on end function
						this.setProperty('state','mouseleave');
						this.pather.end(event);
					}
			}
		}).inject(document.body);
		
		//didn't find other way to get owner of toolTip inside toolTip
		this.toolTip.pather = this;
			
		this.wrapper = new Element('div').inject(this.toolTip);
		$$(elements).each(this.buildEvents, this);
		$$(elements).each(this.build, this);
		if (this.options.initialize) this.options.initialize.call(this);
	},
	
	buildEvents: function(el) {
		//code with errors but works
		//that's why showOnClick option is false by default
		if (this.options.showOnClick) {
			el.addEvent('click', function(event){
				this.start(el);
				if (!this.options.fixed) this.locate(event);
				else this.position(el);
			}.bindWithEvent(this));
		}
		
		if (this.options.showOnMouseEnter) {
			el.addEvent('mouseenter', function(event){
				this.start(el);
				if (!this.options.fixed) this.locate(event);
				else this.position(el);
			}.bind(this));
		}
		
		if (!this.options.fixed) el.addEvent('mousemove', this.locate.bindWithEvent(this));
		var end = this.end.bind(this);
		el.addEvent('mouseleave', end);
		el.addEvent('trash', end);
	},

	build: function(el){ // modded for X3
		el.$tmp.myTitle = (el.href && el.getTag() == 'a') ? el.href.replace('http://', '') : (el.rel || false);
		if (el.title){
			
			if (el.title.test('^DOM:', 'i')) { // check if we need to extract contents from a DOM element
				el.title = $(el.title.split(':')[1].trim()).innerHTML;				
			} else if (el.title.test('^AJAX:', 'i')) { // check for an URL to retrieve content from
				el.title = this.options.loadingText + '::' + el.title;
			} else if (el.title.test('^EVAL:', 'i')) { // check for a statement to eval
				el.title = this.options.loadingText + '::' + el.title;
			}
								
			var dual = el.title.split('::');
			if (dual.length > 1) {
				el.$tmp.myTitle = dual[0].trim();
				el.$tmp.myText = dual[1].trim();
			} else {
				el.$tmp.myTitle = false;
				el.$tmp.myText = el.title;
			}					
			el.removeAttribute('title');
		} else {
			el.$tmp.myText = false;
		}
		if (el.$tmp.myTitle && el.$tmp.myTitle.length > this.options.maxTitleChars) el.$tmp.myTitle = el.$tmp.myTitle.substr(0, this.options.maxTitleChars - 1) + "&hellip;";
	},

	start: function(el){ // modded for X3
		this.wrapper.empty();
			
		// check if we have an AJAX request - if so, show a loading animation and launch the request		
		if (el.$tmp.myText && el.$tmp.myText.test('^AJAX:', 'i')) {
			//if (this.ajax) this.ajax.cancel();
			if(this.options.evalAlways) {
				// save original text
				el.$tmp.myEvalAlwaysText = el.$tmp.myText;
			}
			this.ajax = new Ajax (el.$tmp.myText.replace(/AJAX:/i,''), {
				onComplete: function (responseText, responseXML) {
					el.title = responseText;
					this.build(el);
					this.start(el);
					}.bind(this),
				onFailure: function () {
					el.title = this.options.errTitle + '::' + this.options.errText;
					this.build(el);
					this.start(el);
					}.bind(this),
				method: 'get'
				}).request();				
			el.$tmp.myText = '<div class="' + this.options.className + '-loading">&nbsp;</div>';			
		} else if (el.$tmp.myText && el.$tmp.myText.test('^EVAL:', 'i')) {
			var tmp;
			
			if(this.options.evalAlways) {
				// save original text to reevaluate on the fly (AJAX or EVAL only)
				el.$tmp.myEvalAlwaysText = el.$tmp.myText;
			}
			try {
				eval('tmp = ' + el.$tmp.myText.replace(/EVAL:/i, '') + ';');
				var dual = tmp.split('::');
				if (dual.length > 1) {
					el.$tmp.myTitle = dual[0].trim();
					el.$tmp.myText = dual[1].trim();
				} else {
					el.$tmp.myTitle = false;
					el.$tmp.myText = tmp;
				}
			} catch(err) {
				el.$tmp.myTitle = this.options.errTitle;
				el.$tmp.myText = this.options.errText + '<br />--------<br />' + err.description;
			}
		}
	
		if (el.$tmp.myTitle){
			this.title = new Element('span').inject(
				new Element('div', {'class': this.options.className + '-title'}).inject(this.wrapper)
			).setHTML(el.$tmp.myTitle);
		}
		if (el.$tmp.myText){
			this.text = new Element('span').inject(
				new Element('div', {'class': this.options.className + '-text'}).inject(this.wrapper)
			).setHTML(el.$tmp.myText);
			
			if((this.options.evalAlways) && (el.$tmp.myEvalAlwaysText)) {
				// reset text so that it will evaluate again
				el.$tmp.myText = el.$tmp.myEvalAlwaysText;
			}
		}
		$clear(this.timer);
		
		// setting initial state of tip
		this.toolTip.setProperty('state','mouseleave');
		
		this.timer = this.show.delay(this.options.showDelay, this);
	},

	end: function(event){
		$clear(this.timer);
		this.timer = this.hide.delay(this.options.hideDelay, this);
	},

	position: function(element){
		var pos = element.getPosition();
		this.toolTip.setStyles({
			'left': pos.x + this.options.offsets.x,
			'top': pos.y + this.options.offsets.y
		});
	},

	locate: function(event){
		var win = {'x': window.getWidth(), 'y': window.getHeight()};
		var scroll = {'x': window.getScrollLeft(), 'y': window.getScrollTop()};
		var tip = {'x': this.toolTip.offsetWidth, 'y': this.toolTip.offsetHeight};
		var prop = {'x': 'left', 'y': 'top'};
		for (var z in prop){
			var pos = event.page[z] + this.options.offsets[z];
			if ((pos + tip[z] - scroll[z]) > win[z]) pos = event.page[z] - this.options.offsets[z] - tip[z];
			this.toolTip.setStyle(prop[z], pos);
		};
	},

	show: function(){
		if (this.options.timeout) this.timer = this.hide.delay(this.options.timeout, this);
		this.fireEvent('onShow', [this.toolTip]);
	},

	hide: function(){
		// if "fixed", tooltip is only hidden when mouse leaves the tooltip (itself)
		if ((this.toolTip.getProperty('state') == 'mouseleave') || (!this.options.fixed))
			this.fireEvent('onHide', [this.toolTip]);
	}
});

MooTips.implement(new Events, new Options);function glossary_tooltip() {
	var glossaryTips = new MooTips($$('.tooltip'), {
		evalAlways: true,		// always run the statement
		maxTitleChars: 100,		// very long caption
		fixed: true,			// fixed in place; note tip mouseover does not hide tip
		//showOnClick: true, 
		//showOnMouseEnter:false,
		offsets: {'x':0,'y':18} // offset
	});
	
	
	var Tips1 = new Tips($$('.Tips1'), {
		showDelay: 400,
		hideDelay: 400,
		fixed: true,
		className: 'custom'
	});


}
addLoadEvent(glossary_tooltip);	
/***********************************************
* Ajax Includes script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Modified by The Group
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

//To include a page, invoke ajaxinclude("afile.htm") in the BODY of page
//Included file MUST be from the same domain as the page displaying it.

var rootdomain="http://"+window.location.hostname

function ajaxinclude(url,id) {
var page_request = false
if (window.XMLHttpRequest) // if Mozilla, Safari etc
	page_request = new XMLHttpRequest()
else if (window.ActiveXObject){ // if IE
  try {
	page_request = new ActiveXObject("Msxml2.XMLHTTP")
  } 
  catch (e){
  try{
	page_request = new ActiveXObject("Microsoft.XMLHTTP")
  }
  catch (e){}
  }
}
else
return false
page_request.open('GET', url, false) //get page synchronously 
page_request.send(null)
writecontent(page_request,id)
}

function writecontent(page_request,id){
if (window.location.href.indexOf("http")==-1 || page_request.status==200)
document.getElementById(id).innerHTML = page_request.responseText
//document.write(page_request.responseText)
}
