/*
 * jQuery JavaScript Library v1.4.2
 * http://jquery.com/
 *
 * Copyright 2010, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2010, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Sat Feb 13 22:33:48 2010 -0500
 */
(function(ai,af){var L=function(aZ,aY){return new L.fn.init(aZ,aY)},D=ai.jQuery,T=ai.$,aS=ai.document,au,aL=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,aK=/^.[^:#\[\.,]*$/,Q=/\S/,ah=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,o=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,ak=navigator.userAgent,aq,aT=false,N=[],aJ,ae=Object.prototype.toString,S=Object.prototype.hasOwnProperty,ag=Array.prototype.push,X=Array.prototype.slice,Y=Array.prototype.indexOf;L.fn=L.prototype={init:function(a1,a0){var aY,aZ,a3,a2;if(!a1){return this}if(a1.nodeType){this.context=this[0]=a1;this.length=1;return this}if(a1==="body"&&!a0){this.context=aS;this[0]=aS.body;this.selector="body";this.length=1;return this}if(typeof a1==="string"){aY=aL.exec(a1);if(aY&&(aY[1]||!a0)){if(aY[1]){a2=(a0?a0.ownerDocument||a0:aS);a3=o.exec(a1);if(a3){if(L.isPlainObject(a0)){a1=[aS.createElement(a3[1])];L.fn.attr.call(a1,a0,true)}else{a1=[a2.createElement(a3[1])]}}else{a3=d([aY[1]],[a2]);a1=(a3.cacheable?a3.fragment.cloneNode(true):a3.fragment).childNodes}return L.merge(this,a1)}else{aZ=aS.getElementById(aY[2]);if(aZ){if(aZ.id!==aY[2]){return au.find(a1)}this.length=1;this[0]=aZ}this.context=aS;this.selector=a1;return this}}else{if(!a0&&/^\w+$/.test(a1)){this.selector=a1;this.context=aS;a1=aS.getElementsByTagName(a1);return L.merge(this,a1)}else{if(!a0||a0.jquery){return(a0||au).find(a1)}else{return L(a0).find(a1)}}}}else{if(L.isFunction(a1)){return au.ready(a1)}}if(a1.selector!==af){this.selector=a1.selector;this.context=a1.context}return L.makeArray(a1,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return X.call(this,0)},get:function(aY){return aY==null?this.toArray():(aY<0?this.slice(aY)[0]:this[aY])},pushStack:function(a1,aY,a0){var aZ=L();if(L.isArray(a1)){ag.apply(aZ,a1)}else{L.merge(aZ,a1)}aZ.prevObject=this;aZ.context=this.context;if(aY==="find"){aZ.selector=this.selector+(this.selector?" ":"")+a0}else{if(aY){aZ.selector=this.selector+"."+aY+"("+a0+")"}}return aZ},each:function(aZ,aY){return L.each(this,aZ,aY)},ready:function(aY){L.bindReady();if(L.isReady){aY.call(aS,L)}else{if(N){N.push(aY)}}return this},eq:function(aY){return aY===-1?this.slice(aY):this.slice(aY,+aY+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(X.apply(this,arguments),"slice",X.call(arguments).join(","))},map:function(aY){return this.pushStack(L.map(this,function(aZ,a0){return aY.call(aZ,a0,aZ)}))},end:function(){return this.prevObject||L(null)},push:ag,sort:[].sort,splice:[].splice};L.fn.init.prototype=L.fn;L.extend=L.fn.extend=function(){var a4=arguments[0]||{},a2=1,a3=arguments.length,a0=false,aY,aZ,a6,a1;if(typeof a4==="boolean"){a0=a4;a4=arguments[1]||{};a2=2}if(typeof a4!=="object"&&!L.isFunction(a4)){a4={}}if(a3===a2){a4=this;--a2}for(;a2<a3;a2++){if((aY=arguments[a2])!=null){for(aZ in aY){a6=a4[aZ];a1=aY[aZ];if(a4===a1){continue}if(a0&&a1&&(L.isPlainObject(a1)||L.isArray(a1))){var a5=a6&&(L.isPlainObject(a6)||L.isArray(a6))?a6:L.isArray(a1)?[]:{};a4[aZ]=L.extend(a0,a5,a1)}else{if(a1!==af){a4[aZ]=a1}}}}}return a4};L.extend({noConflict:function(aY){ai.$=T;if(aY){ai.jQuery=D}return L},isReady:false,ready:function(){if(!L.isReady){if(!aS.body){return setTimeout(L.ready,13)}L.isReady=true;if(N){var aY,aZ=0;while((aY=N[aZ++])){aY.call(aS,L)}N=null}if(L.fn.triggerHandler){L(aS).triggerHandler("ready")}}},bindReady:function(){if(aT){return}aT=true;if(aS.readyState==="complete"){return L.ready()}if(aS.addEventListener){aS.addEventListener("DOMContentLoaded",aJ,false);ai.addEventListener("load",L.ready,false)}else{if(aS.attachEvent){aS.attachEvent("onreadystatechange",aJ);ai.attachEvent("onload",L.ready);var aY=false;try{aY=ai.frameElement==null}catch(aZ){}if(aS.documentElement.doScroll&&aY){F()}}}},isFunction:function(aY){return ae.call(aY)==="[object Function]"},isArray:function(aY){return ae.call(aY)==="[object Array]"},isPlainObject:function(aZ){if(!aZ||ae.call(aZ)!=="[object Object]"||aZ.nodeType||aZ.setInterval){return false}if(aZ.constructor&&!S.call(aZ,"constructor")&&!S.call(aZ.constructor.prototype,"isPrototypeOf")){return false}var aY;for(aY in aZ){}return aY===af||S.call(aZ,aY)},isEmptyObject:function(aZ){for(var aY in aZ){return false}return true},error:function(aY){throw aY},parseJSON:function(aY){if(typeof aY!=="string"||!aY){return null}aY=L.trim(aY);if(/^[\],:{}\s]*$/.test(aY.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){return ai.JSON&&ai.JSON.parse?ai.JSON.parse(aY):(new Function("return "+aY))()}else{L.error("Invalid JSON: "+aY)}},noop:function(){},globalEval:function(a0){if(a0&&Q.test(a0)){var aY=aS.getElementsByTagName("head")[0]||aS.documentElement,aZ=aS.createElement("script");aZ.type="text/javascript";if(L.support.scriptEval){aZ.appendChild(aS.createTextNode(a0))}else{aZ.text=a0}aY.insertBefore(aZ,aY.firstChild);aY.removeChild(aZ)}},nodeName:function(aZ,aY){return aZ.nodeName&&aZ.nodeName.toUpperCase()===aY.toUpperCase()},each:function(a0,a5,a2){var a1,aY=0,a3=a0.length,a4=a3===af||L.isFunction(a0);if(a2){if(a4){for(a1 in a0){if(a5.apply(a0[a1],a2)===false){break}}}else{for(;aY<a3;){if(a5.apply(a0[aY++],a2)===false){break}}}}else{if(a4){for(a1 in a0){if(a5.call(a0[a1],a1,a0[a1])===false){break}}}else{for(var aZ=a0[0];aY<a3&&a5.call(aZ,aY,aZ)!==false;aZ=a0[++aY]){}}}return a0},trim:function(aY){return(aY||"").replace(ah,"")},makeArray:function(aZ,aY){var a0=aY||[];if(aZ!=null){if(aZ.length==null||typeof aZ==="string"||L.isFunction(aZ)||(typeof aZ!=="function"&&aZ.setInterval)){ag.call(a0,aZ)}else{L.merge(a0,aZ)}}return a0},inArray:function(aZ,a1){if(a1.indexOf){return a1.indexOf(aZ)}for(var a0=0,aY=a1.length;a0<aY;a0++){if(a1[a0]===aZ){return a0}}return -1},merge:function(aY,aZ){var a0=aY.length,a1=0;if(typeof aZ.length==="number"){for(var a2=aZ.length;a1<a2;a1++){aY[a0++]=aZ[a1]}}else{while(aZ[a1]!==af){aY[a0++]=aZ[a1++]}}aY.length=a0;return aY},grep:function(a3,aY,aZ){var a0=[];for(var a1=0,a2=a3.length;a1<a2;a1++){if(!aZ!==!aY(a3[a1],a1)){a0.push(a3[a1])}}return a0},map:function(a4,aY,a2){var a0=[],aZ;for(var a1=0,a3=a4.length;a1<a3;a1++){aZ=aY(a4[a1],a1,a2);if(aZ!=null){a0[a0.length]=aZ}}return a0.concat.apply([],a0)},guid:1,proxy:function(aY,a0,aZ){if(arguments.length===2){if(typeof a0==="string"){aZ=aY;aY=aZ[a0];a0=af}else{if(a0&&!L.isFunction(a0)){aZ=a0;a0=af}}}if(!a0&&aY){a0=function(){return aY.apply(aZ||this,arguments)}}if(aY){a0.guid=aY.guid=aY.guid||a0.guid||L.guid++}return a0},uaMatch:function(aZ){aZ=aZ.toLowerCase();var aY=/(webkit)[ \/]([\w.]+)/.exec(aZ)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(aZ)||/(msie) ([\w.]+)/.exec(aZ)||!/compatible/.test(aZ)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(aZ)||[];return{browser:aY[1]||"",version:aY[2]||"0"}},browser:{}});aq=L.uaMatch(ak);if(aq.browser){L.browser[aq.browser]=true;L.browser.version=aq.version}if(L.browser.webkit){L.browser.safari=true}if(Y){L.inArray=function(aY,aZ){return Y.call(aZ,aY)}}au=L(aS);if(aS.addEventListener){aJ=function(){aS.removeEventListener("DOMContentLoaded",aJ,false);L.ready()}}else{if(aS.attachEvent){aJ=function(){if(aS.readyState==="complete"){aS.detachEvent("onreadystatechange",aJ);L.ready()}}}}function F(){if(L.isReady){return}try{aS.documentElement.doScroll("left")}catch(aY){setTimeout(F,1);return}L.ready()}function K(aZ,aY){if(aY.src){L.ajax({url:aY.src,async:false,dataType:"script"})}else{L.globalEval(aY.text||aY.textContent||aY.innerHTML||"")}if(aY.parentNode){aY.parentNode.removeChild(aY)}}function O(a2,a0,a1,a3,a6,a5){var a4=a2.length;if(typeof a0==="object"){for(var aZ in a0){O(a2,aZ,a0[aZ],a3,a6,a1)}return a2}if(a1!==af){a3=!a5&&a3&&L.isFunction(a1);for(var aY=0;aY<a4;aY++){a6(a2[aY],a0,a3?a1.call(a2[aY],aY,a6(a2[aY],a0)):a1,a5)}return a2}return a4?a6(a2[0],a0):af}function C(){return(new Date).getTime()}(function(){L.support={};var a1=aS.documentElement,a3=aS.createElement("script"),a7=aS.createElement("div"),aY="script"+C();a7.style.display="none";a7.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var a4=a7.getElementsByTagName("*"),a0=a7.getElementsByTagName("a")[0];if(!a4||!a4.length||!a0){return}L.support={leadingWhitespace:a7.firstChild.nodeType===3,tbody:!a7.getElementsByTagName("tbody").length,htmlSerialize:!!a7.getElementsByTagName("link").length,style:/red/.test(a0.getAttribute("style")),hrefNormalized:a0.getAttribute("href")==="/a",opacity:/^0.55$/.test(a0.style.opacity),cssFloat:!!a0.style.cssFloat,checkOn:a7.getElementsByTagName("input")[0].value==="on",optSelected:aS.createElement("select").appendChild(aS.createElement("option")).selected,parentNode:a7.removeChild(a7.appendChild(aS.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};a3.type="text/javascript";try{a3.appendChild(aS.createTextNode("window."+aY+"=1;"))}catch(a2){}a1.insertBefore(a3,a1.firstChild);if(ai[aY]){L.support.scriptEval=true;delete ai[aY]}try{delete a3.test}catch(a2){L.support.deleteExpando=false}a1.removeChild(a3);if(a7.attachEvent&&a7.fireEvent){a7.attachEvent("onclick",function a6(){L.support.noCloneEvent=false;a7.detachEvent("onclick",a6)});a7.cloneNode(true).fireEvent("onclick")}a7=aS.createElement("div");a7.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";var aZ=aS.createDocumentFragment();aZ.appendChild(a7.firstChild);L.support.checkClone=aZ.cloneNode(true).cloneNode(true).lastChild.checked;L(function(){var a8=aS.createElement("div");a8.style.width=a8.style.paddingLeft="1px";aS.body.appendChild(a8);L.boxModel=L.support.boxModel=a8.offsetWidth===2;aS.body.removeChild(a8).style.display="none";a8=null});var a5=function(a9){var a8=aS.createElement("div");a9="on"+a9;var ba=(a9 in a8);if(!ba){a8.setAttribute(a9,"return;");ba=typeof a8[a9]==="function"}a8=null;return ba};L.support.submitBubbles=a5("submit");L.support.changeBubbles=a5("change");a1=a3=a7=a4=a0=null})();L.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var w="jQuery"+C(),E=0,ad={};L.extend({cache:{},expando:w,noData:{embed:true,object:true,applet:true},data:function(a0,aZ,a3){if(a0.nodeName&&L.noData[a0.nodeName.toLowerCase()]){return}a0=a0==ai?ad:a0;var a1=a0[w],a2=L.cache,aY;if(!a1&&typeof aZ==="string"&&a3===af){return null}if(!a1){a1=++E}if(typeof aZ==="object"){a0[w]=a1;aY=a2[a1]=L.extend(true,{},aZ)}else{if(!a2[a1]){a0[w]=a1;a2[a1]={}}}aY=a2[a1];if(a3!==af){aY[aZ]=a3}return typeof aZ==="string"?aY[aZ]:aY},removeData:function(a0,aZ){if(a0.nodeName&&L.noData[a0.nodeName.toLowerCase()]){return}a0=a0==ai?ad:a0;var a1=a0[w],a2=L.cache,aY=a2[a1];if(aZ){if(aY){delete aY[aZ];if(L.isEmptyObject(aY)){L.removeData(a0)}}}else{if(L.support.deleteExpando){delete a0[L.expando]}else{if(a0.removeAttribute){a0.removeAttribute(L.expando)}}delete a2[a1]}}});L.fn.extend({data:function(aZ,aY){if(typeof aZ==="undefined"&&this.length){return L.data(this[0])}else{if(typeof aZ==="object"){return this.each(function(){L.data(this,aZ)})}}var a0=aZ.split(".");a0[1]=a0[1]?"."+a0[1]:"";if(aY===af){var a1=this.triggerHandler("getData"+a0[1]+"!",[a0[0]]);if(a1===af&&this.length){a1=L.data(this[0],aZ)}return a1===af&&a0[1]?this.data(a0[0]):a1}else{return this.trigger("setData"+a0[1]+"!",[a0[0],aY]).each(function(){L.data(this,aZ,aY)})}},removeData:function(aY){return this.each(function(){L.removeData(this,aY)})}});L.extend({queue:function(aY,aZ,a1){if(!aY){return}aZ=(aZ||"fx")+"queue";var a0=L.data(aY,aZ);if(!a1){return a0||[]}if(!a0||L.isArray(a1)){a0=L.data(aY,aZ,L.makeArray(a1))}else{a0.push(a1)}return a0},dequeue:function(aZ,a0){a0=a0||"fx";var a1=L.queue(aZ,a0),aY=a1.shift();if(aY==="inprogress"){aY=a1.shift()}if(aY){if(a0==="fx"){a1.unshift("inprogress")}aY.call(aZ,function(){L.dequeue(aZ,a0)})}}});L.fn.extend({queue:function(aY,aZ){if(typeof aY!=="string"){aZ=aY;aY="fx"}if(aZ===af){return L.queue(this[0],aY)}return this.each(function(a2,a1){var a0=L.queue(this,aY,aZ);if(aY==="fx"&&a0[0]!=="inprogress"){L.dequeue(this,aY)}})},dequeue:function(aY){return this.each(function(){L.dequeue(this,aY)})},delay:function(aZ,aY){aZ=L.fx?L.fx.speeds[aZ]||aZ:aZ;aY=aY||"fx";return this.queue(aY,function(){var a0=this;setTimeout(function(){L.dequeue(a0,aY)},aZ)})},clearQueue:function(aY){return this.queue(aY||"fx",[])}});var c=/[\n\t]/g,aB=/\s+/,aI=/\r/g,z=/href|src|style/,f=/(button|input)/i,aA=/(button|input|object|select|textarea)/i,u=/^(a|area)$/i,at=/radio|checkbox/;L.fn.extend({attr:function(aY,aZ){return O(this,aY,aZ,true,L.attr)},removeAttr:function(aZ,aY){return this.each(function(){L.attr(this,aZ,"");if(this.nodeType===1){this.removeAttribute(aZ)}})},addClass:function(a1){if(L.isFunction(a1)){return this.each(function(a8){var a7=L(this);a7.addClass(a1.call(this,a8,a7.attr("class")))})}if(a1&&typeof a1==="string"){var aZ=(a1||"").split(aB);for(var aY=0,a0=this.length;aY<a0;aY++){var a5=this[aY];if(a5.nodeType===1){if(!a5.className){a5.className=a1}else{var a6=" "+a5.className+" ",a4=a5.className;for(var a3=0,a2=aZ.length;a3<a2;a3++){if(a6.indexOf(" "+aZ[a3]+" ")<0){a4+=" "+aZ[a3]}}a5.className=L.trim(a4)}}}}return this},removeClass:function(a1){if(L.isFunction(a1)){return this.each(function(a7){var a6=L(this);a6.removeClass(a1.call(this,a7,a6.attr("class")))})}if((a1&&typeof a1==="string")||a1===af){var aZ=(a1||"").split(aB);for(var aY=0,a0=this.length;aY<a0;aY++){var a4=this[aY];if(a4.nodeType===1&&a4.className){if(a1){var a5=(" "+a4.className+" ").replace(c," ");for(var a3=0,a2=aZ.length;a3<a2;a3++){a5=a5.replace(" "+aZ[a3]+" "," ")}a4.className=L.trim(a5)}else{a4.className=""}}}}return this},toggleClass:function(aY,aZ){var a0=typeof aY,a1=typeof aZ==="boolean";if(L.isFunction(aY)){return this.each(function(a3){var a2=L(this);a2.toggleClass(aY.call(this,a3,a2.attr("class"),aZ),aZ)})}return this.each(function(){if(a0==="string"){var a3,a5=0,a4=L(this),a2=aZ,a6=aY.split(aB);while((a3=a6[a5++])){a2=a1?a2:!a4.hasClass(a3);a4[a2?"addClass":"removeClass"](a3)}}else{if(a0==="undefined"||a0==="boolean"){if(this.className){L.data(this,"__className__",this.className)}this.className=this.className||aY===false?"":L.data(this,"__className__")||""}}})},hasClass:function(aZ){var aY=" "+aZ+" ";for(var a0=0,a1=this.length;a0<a1;a0++){if((" "+this[a0].className+" ").replace(c," ").indexOf(aY)>-1){return true}}return false},val:function(a0){if(a0===af){var a6=this[0];if(a6){if(L.nodeName(a6,"option")){return(a6.attributes.value||{}).specified?a6.value:a6.text}if(L.nodeName(a6,"select")){var a1=a6.selectedIndex,a2=[],aY=a6.options,a5=a6.type==="select-one";if(a1<0){return null}for(var a4=a5?a1:0,a7=a5?a1+1:aY.length;a4<a7;a4++){var a3=aY[a4];if(a3.selected){a0=L(a3).val();if(a5){return a0}a2.push(a0)}}return a2}if(at.test(a6.type)&&!L.support.checkOn){return a6.getAttribute("value")===null?"on":a6.value}return(a6.value||"").replace(aI,"")}return af}var aZ=L.isFunction(a0);return this.each(function(a9){var a8=L(this),ba=a0;if(this.nodeType!==1){return}if(aZ){ba=a0.call(this,a9,a8.val())}if(typeof ba==="number"){ba+=""}if(L.isArray(ba)&&at.test(this.type)){this.checked=L.inArray(a8.val(),ba)>=0}else{if(L.nodeName(this,"select")){var bb=L.makeArray(ba);L("option",this).each(function(){this.selected=L.inArray(L(this).val(),bb)>=0});if(!bb.length){this.selectedIndex=-1}}else{this.value=ba}}})}});L.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a3,aZ,a1,aY){if(!a3||a3.nodeType===3||a3.nodeType===8){return af}if(aY&&aZ in L.attrFn){return L(a3)[aZ](a1)}var a7=a3.nodeType!==1||!L.isXMLDoc(a3),a0=a1!==af;aZ=a7&&L.props[aZ]||aZ;if(a3.nodeType===1){var a6=z.test(aZ);if(aZ==="selected"&&!L.support.optSelected){var a5=a3.parentNode;if(a5){a5.selectedIndex;if(a5.parentNode){a5.parentNode.selectedIndex}}}if(aZ in a3&&a7&&!a6){if(a0){if(aZ==="type"&&f.test(a3.nodeName)&&a3.parentNode){L.error("type property can't be changed")}a3[aZ]=a1}if(L.nodeName(a3,"form")&&a3.getAttributeNode(aZ)){return a3.getAttributeNode(aZ).nodeValue}if(aZ==="tabIndex"){var a4=a3.getAttributeNode("tabIndex");return a4&&a4.specified?a4.value:aA.test(a3.nodeName)||u.test(a3.nodeName)&&a3.href?0:af}return a3[aZ]}if(!L.support.style&&a7&&aZ==="style"){if(a0){a3.style.cssText=""+a1}return a3.style.cssText}if(a0){a3.setAttribute(aZ,""+a1)}var a2=!L.support.hrefNormalized&&a7&&a6?a3.getAttribute(aZ,2):a3.getAttribute(aZ);return a2===null?af:a2}return L.style(a3,aZ,a1)}});var aR=/\.(.*)$/,al=function(aY){return aY.replace(/[^\w\s\.\|`]/g,function(aZ){return"\\"+aZ})};L.event={add:function(ba,a1,bb,a5){if(ba.nodeType===3||ba.nodeType===8){return}if(ba.setInterval&&(ba!==ai&&!ba.frameElement)){ba=ai}var a2,a3;if(bb.handler){a2=bb;bb=a2.handler}if(!bb.guid){bb.guid=L.guid++}var a7=L.data(ba);if(!a7){return}var a4=a7.events=a7.events||{},a8=a7.handle,a8;if(!a8){a7.handle=a8=function(){return typeof L!=="undefined"&&!L.event.triggered?L.event.handle.apply(a8.elem,arguments):af}}a8.elem=ba;a1=a1.split(" ");var aZ,aY=0,a6;while((aZ=a1[aY++])){a3=a2?L.extend({},a2):{handler:bb,data:a5};if(aZ.indexOf(".")>-1){a6=aZ.split(".");aZ=a6.shift();a3.namespace=a6.slice(0).sort().join(".")}else{a6=[];a3.namespace=""}a3.type=aZ;a3.guid=bb.guid;var a0=a4[aZ],a9=L.event.special[aZ]||{};if(!a0){a0=a4[aZ]=[];if(!a9.setup||a9.setup.call(ba,a5,a6,a8)===false){if(ba.addEventListener){ba.addEventListener(aZ,a8,false)}else{if(ba.attachEvent){ba.attachEvent("on"+aZ,a8)}}}}if(a9.add){a9.add.call(ba,a3);if(!a3.handler.guid){a3.handler.guid=bb.guid}}a0.push(a3);L.event.global[aZ]=true}ba=null},global:{},remove:function(aY,a9,bd,bf){if(aY.nodeType===3||aY.nodeType===8){return}var a1,aZ,a8,a3=0,ba,a6,be,a2,a0,a7,bb,bg=L.data(aY),bc=bg&&bg.events;if(!bg||!bc){return}if(a9&&a9.type){bd=a9.handler;a9=a9.type}if(!a9||typeof a9==="string"&&a9.charAt(0)==="."){a9=a9||"";for(aZ in bc){L.event.remove(aY,aZ+a9)}return}a9=a9.split(" ");while((aZ=a9[a3++])){bb=aZ;a7=null;ba=aZ.indexOf(".")<0;a6=[];if(!ba){a6=aZ.split(".");aZ=a6.shift();be=new RegExp("(^|\\.)"+L.map(a6.slice(0).sort(),al).join("\\.(?:.*\\.)?")+"(\\.|$)")}a0=bc[aZ];if(!a0){continue}if(!bd){for(var a4=0;a4<a0.length;a4++){a7=a0[a4];if(ba||be.test(a7.namespace)){L.event.remove(aY,bb,a7.handler,a4);a0.splice(a4--,1)}}continue}a2=L.event.special[aZ]||{};for(var a4=bf||0;a4<a0.length;a4++){a7=a0[a4];if(bd.guid===a7.guid){if(ba||be.test(a7.namespace)){if(bf==null){a0.splice(a4--,1)}if(a2.remove){a2.remove.call(aY,a7)}}if(bf!=null){break}}}if(a0.length===0||bf!=null&&a0.length===1){if(!a2.teardown||a2.teardown.call(aY,a6)===false){r(aY,aZ,bg.handle)}a1=null;delete bc[aZ]}}if(L.isEmptyObject(bc)){var a5=bg.handle;if(a5){a5.elem=null}delete bg.events;delete bg.handle;if(L.isEmptyObject(bg)){L.removeData(aY)}}},trigger:function(a2,a3,a8){var a0=a2.type||a2,a4=arguments[3];if(!a4){a2=typeof a2==="object"?a2[w]?a2:L.extend(L.Event(a0),a2):L.Event(a0);if(a0.indexOf("!")>=0){a2.type=a0=a0.slice(0,-1);a2.exclusive=true}if(!a8){a2.stopPropagation();if(L.event.global[a0]){L.each(L.cache,function(){if(this.events&&this.events[a0]){L.event.trigger(a2,a3,this.handle.elem)}})}}if(!a8||a8.nodeType===3||a8.nodeType===8){return af}a2.result=af;a2.target=a8;a3=L.makeArray(a3);a3.unshift(a2)}a2.currentTarget=a8;var a6=L.data(a8,"handle");if(a6){a6.apply(a8,a3)}var a7=a8.parentNode||a8.ownerDocument;try{if(!(a8&&a8.nodeName&&L.noData[a8.nodeName.toLowerCase()])){if(a8["on"+a0]&&a8["on"+a0].apply(a8,a3)===false){a2.result=false}}}catch(a5){}if(!a2.isPropagationStopped()&&a7){L.event.trigger(a2,a3,a7,true)}else{if(!a2.isDefaultPrevented()){var aY=a2.target,aZ,a9=L.nodeName(aY,"a")&&a0==="click",a1=L.event.special[a0]||{};if((!a1._default||a1._default.call(a8,a2)===false)&&!a9&&!(aY&&aY.nodeName&&L.noData[aY.nodeName.toLowerCase()])){try{if(aY[a0]){aZ=aY["on"+a0];if(aZ){aY["on"+a0]=null}L.event.triggered=true;aY[a0]()}}catch(a5){}if(aZ){aY["on"+a0]=aZ}L.event.triggered=false}}}},handle:function(a2){var a6,a5,a4,aZ,a3;a2=arguments[0]=L.event.fix(a2||ai.event);a2.currentTarget=this;a6=a2.type.indexOf(".")<0&&!a2.exclusive;if(!a6){a4=a2.type.split(".");a2.type=a4.shift();aZ=new RegExp("(^|\\.)"+a4.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var a3=L.data(this,"events"),a5=a3[a2.type];if(a3&&a5){a5=a5.slice(0);for(var aY=0,a0=a5.length;aY<a0;aY++){var a7=a5[aY];if(a6||aZ.test(a7.namespace)){a2.handler=a7.handler;a2.data=a7.data;a2.handleObj=a7;var a1=a7.handler.apply(this,arguments);if(a1!==af){a2.result=a1;if(a1===false){a2.preventDefault();a2.stopPropagation()}}if(a2.isImmediatePropagationStopped()){break}}}}return a2.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(a1){if(a1[w]){return a1}var a0=a1;a1=L.Event(a0);for(var a2=this.props.length,a3;a2;){a3=this.props[--a2];a1[a3]=a0[a3]}if(!a1.target){a1.target=a1.srcElement||aS}if(a1.target.nodeType===3){a1.target=a1.target.parentNode}if(!a1.relatedTarget&&a1.fromElement){a1.relatedTarget=a1.fromElement===a1.target?a1.toElement:a1.fromElement}if(a1.pageX==null&&a1.clientX!=null){var aZ=aS.documentElement,aY=aS.body;a1.pageX=a1.clientX+(aZ&&aZ.scrollLeft||aY&&aY.scrollLeft||0)-(aZ&&aZ.clientLeft||aY&&aY.clientLeft||0);a1.pageY=a1.clientY+(aZ&&aZ.scrollTop||aY&&aY.scrollTop||0)-(aZ&&aZ.clientTop||aY&&aY.clientTop||0)}if(!a1.which&&((a1.charCode||a1.charCode===0)?a1.charCode:a1.keyCode)){a1.which=a1.charCode||a1.keyCode}if(!a1.metaKey&&a1.ctrlKey){a1.metaKey=a1.ctrlKey}if(!a1.which&&a1.button!==af){a1.which=(a1.button&1?1:(a1.button&2?3:(a1.button&4?2:0)))}return a1},guid:100000000,proxy:L.proxy,special:{ready:{setup:L.bindReady,teardown:L.noop},live:{add:function(aY){L.event.add(this,aY.origType,L.extend({},aY,{handler:ao}))},remove:function(a0){var aZ=true,aY=a0.origType.replace(aR,"");L.each(L.data(this,"events").live||[],function(){if(aY===this.origType.replace(aR,"")){aZ=false;return false}});if(aZ){L.event.remove(this,a0.origType,ao)}}},beforeunload:{setup:function(a0,aY,aZ){if(this.setInterval){this.onbeforeunload=aZ}return false},teardown:function(aY,aZ){if(this.onbeforeunload===aZ){this.onbeforeunload=null}}}}};var r=aS.removeEventListener?function(aY,aZ,a0){aY.removeEventListener(aZ,a0,false)}:function(aY,aZ,a0){aY.detachEvent("on"+aZ,a0)};L.Event=function(aY){if(!this.preventDefault){return new L.Event(aY)}if(aY&&aY.type){this.originalEvent=aY;this.type=aY.type}else{this.type=aY}this.timeStamp=C();this[w]=true};function aE(){return false}function aa(){return true}L.Event.prototype={preventDefault:function(){this.isDefaultPrevented=aa;var aY=this.originalEvent;if(!aY){return}if(aY.preventDefault){aY.preventDefault()}aY.returnValue=false},stopPropagation:function(){this.isPropagationStopped=aa;var aY=this.originalEvent;if(!aY){return}if(aY.stopPropagation){aY.stopPropagation()}aY.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=aa;this.stopPropagation()},isDefaultPrevented:aE,isPropagationStopped:aE,isImmediatePropagationStopped:aE};var P=function(aZ){var aY=aZ.relatedTarget;try{while(aY&&aY!==this){aY=aY.parentNode}if(aY!==this){aZ.type=aZ.data;L.event.handle.apply(this,arguments)}}catch(a0){}},aV=function(aY){aY.type=aY.data;L.event.handle.apply(this,arguments)};L.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(aZ,aY){L.event.special[aZ]={setup:function(a0){L.event.add(this,aY,a0&&a0.selector?aV:P,aZ)},teardown:function(a0){L.event.remove(this,aY,a0&&a0.selector?aV:P)}}});if(!L.support.submitBubbles){L.event.special.submit={setup:function(aZ,aY){if(this.nodeName.toLowerCase()!=="form"){L.event.add(this,"click.specialSubmit",function(a2){var a0=a2.target,a1=a0.type;if((a1==="submit"||a1==="image")&&L(a0).closest("form").length){return H("submit",this,arguments)}});L.event.add(this,"keypress.specialSubmit",function(a2){var a0=a2.target,a1=a0.type;if((a1==="text"||a1==="password")&&L(a0).closest("form").length&&a2.keyCode===13){return H("submit",this,arguments)}})}else{return false}},teardown:function(aY){L.event.remove(this,".specialSubmit")}}}if(!L.support.changeBubbles){var aQ=/textarea|input|select/i,aW,g=function(aY){var aZ=aY.type,a0=aY.value;if(aZ==="radio"||aZ==="checkbox"){a0=aY.checked}else{if(aZ==="select-multiple"){a0=aY.selectedIndex>-1?L.map(aY.options,function(a1){return a1.selected}).join("-"):""}else{if(aY.nodeName.toLowerCase()==="select"){a0=aY.selectedIndex}}}return a0},aX=function aX(aZ){var aY=aZ.target,a1,a0;if(!aQ.test(aY.nodeName)||aY.readOnly){return}a1=L.data(aY,"_change_data");a0=g(aY);if(aZ.type!=="focusout"||aY.type!=="radio"){L.data(aY,"_change_data",a0)}if(a1===af||a0===a1){return}if(a1!=null||a0){aZ.type="change";return L.event.trigger(aZ,arguments[1],aY)}};L.event.special.change={filters:{focusout:aX,click:function(a0){var aY=a0.target,aZ=aY.type;if(aZ==="radio"||aZ==="checkbox"||aY.nodeName.toLowerCase()==="select"){return aX.call(this,a0)}},keydown:function(a0){var aY=a0.target,aZ=aY.type;if((a0.keyCode===13&&aY.nodeName.toLowerCase()!=="textarea")||(a0.keyCode===32&&(aZ==="checkbox"||aZ==="radio"))||aZ==="select-multiple"){return aX.call(this,a0)}},beforeactivate:function(aZ){var aY=aZ.target;L.data(aY,"_change_data",g(aY))}},setup:function(a0,aY){if(this.type==="file"){return false}for(var aZ in aW){L.event.add(this,aZ+".specialChange",aW[aZ])}return aQ.test(this.nodeName)},teardown:function(aY){L.event.remove(this,".specialChange");return aQ.test(this.nodeName)}};aW=L.event.special.change.filters}function H(a0,aZ,aY){aY[0].type=a0;return L.event.handle.apply(aZ,aY)}if(aS.addEventListener){L.each({focus:"focusin",blur:"focusout"},function(aZ,aY){L.event.special[aY]={setup:function(){this.addEventListener(aZ,a0,true)},teardown:function(){this.removeEventListener(aZ,a0,true)}};function a0(a1){a1=L.event.fix(a1);a1.type=aY;return L.event.handle.call(this,a1)}})}L.each(["bind","one"],function(aZ,aY){L.fn[aY]=function(a3,a6,a0){if(typeof a3==="object"){for(var a1 in a3){this[aY](a1,a6,a3[a1],a0)}return this}if(L.isFunction(a6)){a0=a6;a6=af}var a2=aY==="one"?L.proxy(a0,function(a7){L(this).unbind(a7,a2);return a0.apply(this,arguments)}):a0;if(a3==="unload"&&aY!=="one"){this.one(a3,a6,a0)}else{for(var a5=0,a4=this.length;a5<a4;a5++){L.event.add(this[a5],a3,a2,a6)}}return this}});L.fn.extend({unbind:function(a0,aY){if(typeof a0==="object"&&!a0.preventDefault){for(var aZ in a0){this.unbind(aZ,a0[aZ])}}else{for(var a1=0,a2=this.length;a1<a2;a1++){L.event.remove(this[a1],a0,aY)}}return this},delegate:function(aZ,a0,a1,aY){return this.live(a0,a1,aY,aZ)},undelegate:function(aZ,a0,aY){if(arguments.length===0){return this.unbind("live")}else{return this.die(a0,null,aY,aZ)}},trigger:function(aY,aZ){return this.each(function(){L.event.trigger(aY,aZ,this)})},triggerHandler:function(aZ,a0){if(this[0]){var aY=L.Event(aZ);aY.preventDefault();aY.stopPropagation();L.event.trigger(aY,a0,this[0]);return aY.result}},toggle:function(aY){var aZ=arguments,a0=1;while(a0<aZ.length){L.proxy(aY,aZ[a0++])}return this.click(L.proxy(aY,function(a2){var a1=(L.data(this,"lastToggle"+aY.guid)||0)%a0;L.data(this,"lastToggle"+aY.guid,a1+1);a2.preventDefault();return aZ[a1].apply(this,arguments)||false}))},hover:function(aZ,aY){return this.mouseenter(aZ).mouseleave(aY||aZ)}});var s={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};L.each(["live","die"],function(aZ,aY){L.fn[aY]=function(a2,a5,a3,ba){var a4,a0=0,a7,a6,a1,a9=ba||this.selector,a8=ba?this:L(this.context);if(L.isFunction(a5)){a3=a5;a5=af}a2=(a2||"").split(" ");while((a4=a2[a0++])!=null){a7=aR.exec(a4);a6="";if(a7){a6=a7[0];a4=a4.replace(aR,"")}if(a4==="hover"){a2.push("mouseenter"+a6,"mouseleave"+a6);continue}a1=a4;if(a4==="focus"||a4==="blur"){a2.push(s[a4]+a6);a4=a4+a6}else{a4=(s[a4]||a4)+a6}if(aY==="live"){a8.each(function(){L.event.add(this,B(a4,a9),{data:a5,selector:a9,handler:a3,origType:a4,origHandler:a3,preType:a1})})}else{a8.unbind(B(a4,a9),a3)}}return this}});function ao(a2){var aZ,a3=[],a7=[],a6=arguments,bb,a8,ba,a4,a9,aY,a0,a1,a5=L.data(this,"events");if(a2.liveFired===this||!a5||!a5.live||a2.button&&a2.type==="click"){return}a2.liveFired=this;var bc=a5.live.slice(0);for(a9=0;a9<bc.length;a9++){ba=bc[a9];if(ba.origType.replace(aR,"")===a2.type){a7.push(ba.selector)}else{bc.splice(a9--,1)}}a8=L(a2.target).closest(a7,a2.currentTarget);for(aY=0,a0=a8.length;aY<a0;aY++){for(a9=0;a9<bc.length;a9++){ba=bc[a9];if(a8[aY].selector===ba.selector){a4=a8[aY].elem;bb=null;if(ba.preType==="mouseenter"||ba.preType==="mouseleave"){bb=L(a2.relatedTarget).closest(ba.selector)[0]}if(!bb||bb!==a4){a3.push({elem:a4,handleObj:ba})}}}}for(aY=0,a0=a3.length;aY<a0;aY++){a8=a3[aY];a2.currentTarget=a8.elem;a2.data=a8.handleObj.data;a2.handleObj=a8.handleObj;if(a8.handleObj.origHandler.apply(a8.elem,a6)===false){aZ=false;break}}return aZ}function B(aY,aZ){return"live."+(aY&&aY!=="*"?aY+".":"")+aZ.replace(/\./g,"`").replace(/ /g,"&")}L.each(("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error").split(" "),function(aZ,aY){L.fn[aY]=function(a0){return a0?this.bind(aY,a0):this.trigger(aY)};if(L.attrFn){L.attrFn[aY]=true}});if(ai.attachEvent&&!ai.addEventListener){ai.attachEvent("onunload",function(){for(var aZ in L.cache){if(L.cache[aZ].handle){try{L.event.remove(L.cache[aZ].handle.elem)}catch(aY){}}}});
/*
 * Sizzle CSS Selector Engine - v1.0
 *  Copyright 2009, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
}(function(){var bd=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,a0=0,a1=Object.prototype.toString,a9=false,ba=true;[0,0].sort(function(){ba=false;return 0});var aZ=function(bs,bv,bh,bi){bh=bh||[];var bt=bv=bv||aS;if(bv.nodeType!==1&&bv.nodeType!==9){return[]}if(!bs||typeof bs!=="string"){return bh}var br=[],bn,bq,bu,bm,bk=true,bw=a2(bv),bo=bs;while((bd.exec(""),bn=bd.exec(bo))!==null){bo=bn[3];br.push(bn[1]);if(bn[2]){bm=bn[3];break}}if(br.length>1&&bc.exec(bs)){if(br.length===2&&a4.relative[br[0]]){bq=a5(br[0]+br[1],bv)}else{bq=a4.relative[br[0]]?[bv]:aZ(br.shift(),bv);while(br.length){bs=br.shift();if(a4.relative[bs]){bs+=br.shift()}bq=a5(bs,bq)}}}else{if(!bi&&br.length>1&&bv.nodeType===9&&!bw&&a4.match.ID.test(br[0])&&!a4.match.ID.test(br[br.length-1])){var bj=aZ.find(br.shift(),bv,bw);bv=bj.expr?aZ.filter(bj.expr,bj.set)[0]:bj.set[0]}if(bv){var bj=bi?{expr:br.pop(),set:bb(bi)}:aZ.find(br.pop(),br.length===1&&(br[0]==="~"||br[0]==="+")&&bv.parentNode?bv.parentNode:bv,bw);bq=bj.expr?aZ.filter(bj.expr,bj.set):bj.set;if(br.length>0){bu=bb(bq)}else{bk=false}while(br.length){var bg=br.pop(),bp=bg;if(!a4.relative[bg]){bg=""}else{bp=br.pop()}if(bp==null){bp=bv}a4.relative[bg](bu,bp,bw)}}else{bu=br=[]}}if(!bu){bu=bq}if(!bu){aZ.error(bg||bs)}if(a1.call(bu)==="[object Array]"){if(!bk){bh.push.apply(bh,bu)}else{if(bv&&bv.nodeType===1){for(var bl=0;bu[bl]!=null;bl++){if(bu[bl]&&(bu[bl]===true||bu[bl].nodeType===1&&a7(bv,bu[bl]))){bh.push(bq[bl])}}}else{for(var bl=0;bu[bl]!=null;bl++){if(bu[bl]&&bu[bl].nodeType===1){bh.push(bq[bl])}}}}}else{bb(bu,bh)}if(bm){aZ(bm,bt,bh,bi);aZ.uniqueSort(bh)}return bh};aZ.uniqueSort=function(bh){if(a3){a9=ba;bh.sort(a3);if(a9){for(var bg=1;bg<bh.length;bg++){if(bh[bg]===bh[bg-1]){bh.splice(bg--,1)}}}}return bh};aZ.matches=function(bh,bg){return aZ(bh,null,null,bg)};aZ.find=function(bo,bn,bl){var bj,bm;if(!bo){return[]}for(var bg=0,bi=a4.order.length;bg<bi;bg++){var bk=a4.order[bg],bm;if((bm=a4.leftMatch[bk].exec(bo))){var bh=bm[1];bm.splice(1,1);if(bh.substr(bh.length-1)!=="\\"){bm[1]=(bm[1]||"").replace(/\\/g,"");bj=a4.find[bk](bm,bn,bl);if(bj!=null){bo=bo.replace(a4.match[bk],"");break}}}}if(!bj){bj=bn.getElementsByTagName("*")}return{set:bj,expr:bo}};aZ.filter=function(bi,bk,bt,bj){var bo=bi,bp=[],bg=bk,br,bu,bl=bk&&bk[0]&&a2(bk[0]);while(bi&&bk.length){for(var bh in a4.filter){if((br=a4.leftMatch[bh].exec(bi))!=null&&br[2]){var bq=a4.filter[bh],bm,bs,bw=br[1];bu=false;br.splice(1,1);if(bw.substr(bw.length-1)==="\\"){continue}if(bg===bp){bp=[]}if(a4.preFilter[bh]){br=a4.preFilter[bh](br,bg,bt,bp,bj,bl);if(!br){bu=bm=true}else{if(br===true){continue}}}if(br){for(var bn=0;(bs=bg[bn])!=null;bn++){if(bs){bm=bq(bs,br,bn,bg);var bv=bj^!!bm;if(bt&&bm!=null){if(bv){bu=true}else{bg[bn]=false}}else{if(bv){bp.push(bs);bu=true}}}}}if(bm!==af){if(!bt){bg=bp}bi=bi.replace(a4.match[bh],"");if(!bu){return[]}break}}}if(bi===bo){if(bu==null){aZ.error(bi)}else{break}}bo=bi}return bg};aZ.error=function(bg){throw"Syntax error, unrecognized expression: "+bg};var a4=aZ.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(bg){return bg.getAttribute("href")}},relative:{"+":function(bn,bj){var bk=typeof bj==="string",bl=bk&&!/\W/.test(bj),bh=bk&&!bl;if(bl){bj=bj.toLowerCase()}for(var bg=0,bi=bn.length,bm;bg<bi;bg++){if((bm=bn[bg])){while((bm=bm.previousSibling)&&bm.nodeType!==1){}bn[bg]=bh||bm&&bm.nodeName.toLowerCase()===bj?bm||false:bm===bj}}if(bh){aZ.filter(bj,bn,true)}},">":function(bj,bk){var bl=typeof bk==="string";if(bl&&!/\W/.test(bk)){bk=bk.toLowerCase();for(var bh=0,bm=bj.length;bh<bm;bh++){var bi=bj[bh];if(bi){var bg=bi.parentNode;bj[bh]=bg.nodeName.toLowerCase()===bk?bg:false}}}else{for(var bh=0,bm=bj.length;bh<bm;bh++){var bi=bj[bh];if(bi){bj[bh]=bl?bi.parentNode:bi.parentNode===bk}}if(bl){aZ.filter(bk,bj,true)}}},"":function(bi,bj,bl){var bh=a0++,bg=a8;if(typeof bj==="string"&&!/\W/.test(bj)){var bk=bj=bj.toLowerCase();bg=be}bg("parentNode",bj,bh,bi,bk,bl)},"~":function(bi,bj,bl){var bh=a0++,bg=a8;if(typeof bj==="string"&&!/\W/.test(bj)){var bk=bj=bj.toLowerCase();bg=be}bg("previousSibling",bj,bh,bi,bk,bl)}},find:{ID:function(bh,bj,bg){if(typeof bj.getElementById!=="undefined"&&!bg){var bi=bj.getElementById(bh[1]);return bi?[bi]:[]}},NAME:function(bg,bk){if(typeof bk.getElementsByName!=="undefined"){var bl=[],bj=bk.getElementsByName(bg[1]);for(var bi=0,bh=bj.length;bi<bh;bi++){if(bj[bi].getAttribute("name")===bg[1]){bl.push(bj[bi])}}return bl.length===0?null:bl}},TAG:function(bg,bh){return bh.getElementsByTagName(bg[1])}},preFilter:{CLASS:function(bl,bn,bi,bh,bj,bk){bl=" "+bl[1].replace(/\\/g,"")+" ";if(bk){return bl}for(var bg=0,bm;(bm=bn[bg])!=null;bg++){if(bm){if(bj^(bm.className&&(" "+bm.className+" ").replace(/[\t\n]/g," ").indexOf(bl)>=0)){if(!bi){bh.push(bm)}}else{if(bi){bn[bg]=false}}}}return false},ID:function(bg){return bg[1].replace(/\\/g,"")},TAG:function(bg,bh){return bg[1].toLowerCase()},CHILD:function(bg){if(bg[1]==="nth"){var bh=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(bg[2]==="even"&&"2n"||bg[2]==="odd"&&"2n+1"||!/\D/.test(bg[2])&&"0n+"+bg[2]||bg[2]);bg[2]=(bh[1]+(bh[2]||1))-0;bg[3]=bh[3]-0}bg[0]=a0++;return bg},ATTR:function(bj,bk,bm,bi,bh,bg){var bl=bj[1].replace(/\\/g,"");if(!bg&&a4.attrMap[bl]){bj[1]=a4.attrMap[bl]}if(bj[2]==="~="){bj[4]=" "+bj[4]+" "}return bj},PSEUDO:function(bi,bj,bk,bh,bg){if(bi[1]==="not"){if((bd.exec(bi[3])||"").length>1||/^\w/.test(bi[3])){bi[3]=aZ(bi[3],null,null,bj)}else{var bl=aZ.filter(bi[3],bj,bk,true^bg);if(!bk){bh.push.apply(bh,bl)}return false}}else{if(a4.match.POS.test(bi[0])||a4.match.CHILD.test(bi[0])){return true}}return bi},POS:function(bg){bg.unshift(true);return bg}},filters:{enabled:function(bg){return bg.disabled===false&&bg.type!=="hidden"},disabled:function(bg){return bg.disabled===true},checked:function(bg){return bg.checked===true},selected:function(bg){bg.parentNode.selectedIndex;return bg.selected===true},parent:function(bg){return !!bg.firstChild},empty:function(bg){return !bg.firstChild},has:function(bh,bi,bg){return !!aZ(bg[3],bh).length},header:function(bg){return/h\d/i.test(bg.nodeName)},text:function(bg){return"text"===bg.type},radio:function(bg){return"radio"===bg.type},checkbox:function(bg){return"checkbox"===bg.type},file:function(bg){return"file"===bg.type},password:function(bg){return"password"===bg.type},submit:function(bg){return"submit"===bg.type},image:function(bg){return"image"===bg.type},reset:function(bg){return"reset"===bg.type},button:function(bg){return"button"===bg.type||bg.nodeName.toLowerCase()==="button"},input:function(bg){return/input|select|textarea|button/i.test(bg.nodeName)}},setFilters:{first:function(bg,bh){return bh===0},last:function(bh,bi,bg,bj){return bi===bj.length-1},even:function(bg,bh){return bh%2===0},odd:function(bg,bh){return bh%2===1},lt:function(bh,bi,bg){return bi<bg[3]-0},gt:function(bh,bi,bg){return bi>bg[3]-0},nth:function(bh,bi,bg){return bg[3]-0===bi},eq:function(bh,bi,bg){return bg[3]-0===bi}},filter:{PSEUDO:function(bm,bl,bg,bk){var bj=bl[1],bh=a4.filters[bj];if(bh){return bh(bm,bg,bl,bk)}else{if(bj==="contains"){return(bm.textContent||bm.innerText||bf([bm])||"").indexOf(bl[3])>=0}else{if(bj==="not"){var bi=bl[3];for(var bg=0,bn=bi.length;bg<bn;bg++){if(bi[bg]===bm){return false}}return true}else{aZ.error("Syntax error, unrecognized expression: "+bj)}}}},CHILD:function(bn,bl){var bh=bl[1],bg=bn;switch(bh){case"only":case"first":while((bg=bg.previousSibling)){if(bg.nodeType===1){return false}}if(bh==="first"){return true}bg=bn;case"last":while((bg=bg.nextSibling)){if(bg.nodeType===1){return false}}return true;case"nth":var bp=bl[2],bm=bl[3];if(bp===1&&bm===0){return true}var bk=bl[0],bj=bn.parentNode;if(bj&&(bj.sizcache!==bk||!bn.nodeIndex)){var bo=0;for(bg=bj.firstChild;bg;bg=bg.nextSibling){if(bg.nodeType===1){bg.nodeIndex=++bo}}bj.sizcache=bk}var bi=bn.nodeIndex-bm;if(bp===0){return bi===0}else{return(bi%bp===0&&bi/bp>=0)}}},ID:function(bh,bg){return bh.nodeType===1&&bh.getAttribute("id")===bg},TAG:function(bh,bg){return(bg==="*"&&bh.nodeType===1)||bh.nodeName.toLowerCase()===bg},CLASS:function(bh,bg){return(" "+(bh.className||bh.getAttribute("class"))+" ").indexOf(bg)>-1},ATTR:function(bi,bg){var bl=bg[1],bh=a4.attrHandle[bl]?a4.attrHandle[bl](bi):bi[bl]!=null?bi[bl]:bi.getAttribute(bl),bm=bh+"",bj=bg[2],bk=bg[4];return bh==null?bj==="!=":bj==="="?bm===bk:bj==="*="?bm.indexOf(bk)>=0:bj==="~="?(" "+bm+" ").indexOf(bk)>=0:!bk?bm&&bh!==false:bj==="!="?bm!==bk:bj==="^="?bm.indexOf(bk)===0:bj==="$="?bm.substr(bm.length-bk.length)===bk:bj==="|="?bm===bk||bm.substr(0,bk.length+1)===bk+"-":false},POS:function(bi,bg,bj,bl){var bh=bg[2],bk=a4.setFilters[bh];if(bk){return bk(bi,bj,bg,bl)}}}};var bc=a4.match.POS;for(var aY in a4.match){a4.match[aY]=new RegExp(a4.match[aY].source+/(?![^\[]*\])(?![^\(]*\))/.source);a4.leftMatch[aY]=new RegExp(/(^(?:.|\r|\n)*?)/.source+a4.match[aY].source.replace(/\\(\d+)/g,function(bg,bh){return"\\"+(bh-0+1)}))}var bb=function(bh,bg){bh=Array.prototype.slice.call(bh,0);if(bg){bg.push.apply(bg,bh);return bg}return bh};try{Array.prototype.slice.call(aS.documentElement.childNodes,0)[0].nodeType}catch(a6){bb=function(bj,bi){var bk=bi||[];if(a1.call(bj)==="[object Array]"){Array.prototype.push.apply(bk,bj)}else{if(typeof bj.length==="number"){for(var bh=0,bg=bj.length;bh<bg;bh++){bk.push(bj[bh])}}else{for(var bh=0;bj[bh];bh++){bk.push(bj[bh])}}}return bk}}var a3;if(aS.documentElement.compareDocumentPosition){a3=function(bg,bh){if(!bg.compareDocumentPosition||!bh.compareDocumentPosition){if(bg==bh){a9=true}return bg.compareDocumentPosition?-1:1}var bi=bg.compareDocumentPosition(bh)&4?-1:bg===bh?0:1;if(bi===0){a9=true}return bi}}else{if("sourceIndex" in aS.documentElement){a3=function(bg,bh){if(!bg.sourceIndex||!bh.sourceIndex){if(bg==bh){a9=true}return bg.sourceIndex?-1:1}var bi=bg.sourceIndex-bh.sourceIndex;if(bi===0){a9=true}return bi}}else{if(aS.createRange){a3=function(bh,bi){if(!bh.ownerDocument||!bi.ownerDocument){if(bh==bi){a9=true}return bh.ownerDocument?-1:1}var bj=bh.ownerDocument.createRange(),bg=bi.ownerDocument.createRange();bj.setStart(bh,0);bj.setEnd(bh,0);bg.setStart(bi,0);bg.setEnd(bi,0);var bk=bj.compareBoundaryPoints(Range.START_TO_END,bg);if(bk===0){a9=true}return bk}}}}function bf(bj){var bh="",bg;for(var bi=0;bj[bi];bi++){bg=bj[bi];if(bg.nodeType===3||bg.nodeType===4){bh+=bg.nodeValue}else{if(bg.nodeType!==8){bh+=bf(bg.childNodes)}}}return bh}(function(){var bh=aS.createElement("div"),bi="script"+(new Date).getTime();bh.innerHTML="<a name='"+bi+"'/>";var bg=aS.documentElement;bg.insertBefore(bh,bg.firstChild);if(aS.getElementById(bi)){a4.find.ID=function(bk,bm,bj){if(typeof bm.getElementById!=="undefined"&&!bj){var bl=bm.getElementById(bk[1]);return bl?bl.id===bk[1]||typeof bl.getAttributeNode!=="undefined"&&bl.getAttributeNode("id").nodeValue===bk[1]?[bl]:af:[]}};a4.filter.ID=function(bk,bj){var bl=typeof bk.getAttributeNode!=="undefined"&&bk.getAttributeNode("id");return bk.nodeType===1&&bl&&bl.nodeValue===bj}}bg.removeChild(bh);bg=bh=null})();(function(){var bg=aS.createElement("div");bg.appendChild(aS.createComment(""));if(bg.getElementsByTagName("*").length>0){a4.find.TAG=function(bi,bl){var bk=bl.getElementsByTagName(bi[1]);if(bi[1]==="*"){var bj=[];for(var bh=0;bk[bh];bh++){if(bk[bh].nodeType===1){bj.push(bk[bh])}}bk=bj}return bk}}bg.innerHTML="<a href='#'></a>";if(bg.firstChild&&typeof bg.firstChild.getAttribute!=="undefined"&&bg.firstChild.getAttribute("href")!=="#"){a4.attrHandle.href=function(bh){return bh.getAttribute("href",2)}}bg=null})();if(aS.querySelectorAll){(function(){var bg=aZ,bh=aS.createElement("div");bh.innerHTML="<p class='TEST'></p>";if(bh.querySelectorAll&&bh.querySelectorAll(".TEST").length===0){return}aZ=function(bl,bj,bn,bk){bj=bj||aS;if(!bk&&bj.nodeType===9&&!a2(bj)){try{return bb(bj.querySelectorAll(bl),bn)}catch(bm){}}return bg(bl,bj,bn,bk)};for(var bi in bg){aZ[bi]=bg[bi]}bh=null})()}(function(){var bg=aS.createElement("div");bg.innerHTML="<div class='test e'></div><div class='test'></div>";if(!bg.getElementsByClassName||bg.getElementsByClassName("e").length===0){return}bg.lastChild.className="e";if(bg.getElementsByClassName("e").length===1){return}a4.order.splice(1,0,"CLASS");a4.find.CLASS=function(bi,bj,bh){if(typeof bj.getElementsByClassName!=="undefined"&&!bh){return bj.getElementsByClassName(bi[1])}};bg=null})();function be(bi,bk,bm,bp,bn,bl){for(var bg=0,bh=bp.length;bg<bh;bg++){var bo=bp[bg];if(bo){bo=bo[bi];var bj=false;while(bo){if(bo.sizcache===bm){bj=bp[bo.sizset];break}if(bo.nodeType===1&&!bl){bo.sizcache=bm;bo.sizset=bg}if(bo.nodeName.toLowerCase()===bk){bj=bo;break}bo=bo[bi]}bp[bg]=bj}}}function a8(bi,bk,bm,bp,bn,bl){for(var bg=0,bh=bp.length;bg<bh;bg++){var bo=bp[bg];if(bo){bo=bo[bi];var bj=false;while(bo){if(bo.sizcache===bm){bj=bp[bo.sizset];break}if(bo.nodeType===1){if(!bl){bo.sizcache=bm;bo.sizset=bg}if(typeof bk!=="string"){if(bo===bk){bj=true;break}}else{if(aZ.filter(bk,[bo]).length>0){bj=bo;break}}}bo=bo[bi]}bp[bg]=bj}}}var a7=aS.compareDocumentPosition?function(bg,bh){return !!(bg.compareDocumentPosition(bh)&16)}:function(bg,bh){return bg!==bh&&(bg.contains?bg.contains(bh):true)};var a2=function(bh){var bg=(bh?bh.ownerDocument||bh:0).documentElement;return bg?bg.nodeName!=="HTML":false};var a5=function(bk,bn){var bj=[],bl="",bm,bh=bn.nodeType?[bn]:bn;while((bm=a4.match.PSEUDO.exec(bk))){bl+=bm[0];bk=bk.replace(a4.match.PSEUDO,"")}bk=a4.relative[bk]?bk+"*":bk;for(var bg=0,bi=bh.length;bg<bi;bg++){aZ(bk,bh[bg],bj)}return aZ.filter(bl,bj)};L.find=aZ;L.expr=aZ.selectors;L.expr[":"]=L.expr.filters;L.unique=aZ.uniqueSort;L.text=bf;L.isXMLDoc=a2;L.contains=a7;return;ai.Sizzle=aZ})();var aj=/Until$/,l=/^(?:parents|prevUntil|prevAll)/,aF=/,/,X=Array.prototype.slice;var J=function(aZ,a0,a1){if(L.isFunction(a0)){return L.grep(aZ,function(a2,a3){return !!a0.call(a2,a3,a2)===a1})}else{if(a0.nodeType){return L.grep(aZ,function(a2,a3){return(a2===a0)===a1})}else{if(typeof a0==="string"){var aY=L.grep(aZ,function(a2){return a2.nodeType===1});if(aK.test(a0)){return L.filter(a0,aY,!a1)}else{a0=L.filter(a0,aY)}}}}return L.grep(aZ,function(a2,a3){return(L.inArray(a2,a0)>=0)===a1})};L.fn.extend({find:function(a1){var a4=this.pushStack("","find",a1),a3=0;for(var a2=0,a0=this.length;a2<a0;a2++){a3=a4.length;L.find(a1,this[a2],a4);if(a2>0){for(var aZ=a3;aZ<a4.length;aZ++){for(var aY=0;aY<a3;aY++){if(a4[aY]===a4[aZ]){a4.splice(aZ--,1);break}}}}}return a4},has:function(aZ){var aY=L(aZ);return this.filter(function(){for(var a0=0,a1=aY.length;a0<a1;a0++){if(L.contains(this,aY[a0])){return true}}})},not:function(aY){return this.pushStack(J(this,aY,false),"not",aY)},filter:function(aY){return this.pushStack(J(this,aY,true),"filter",aY)},is:function(aY){return !!aY&&L.filter(aY,this).length>0},closest:function(a4,a6){if(L.isArray(a4)){var aZ=[],a3=this[0],a5,aY={},a0;if(a3&&a4.length){for(var a1=0,a7=a4.length;a1<a7;a1++){a0=a4[a1];if(!aY[a0]){aY[a0]=L.expr.match.POS.test(a0)?L(a0,a6||this.context):a0}}while(a3&&a3.ownerDocument&&a3!==a6){for(a0 in aY){a5=aY[a0];if(a5.jquery?a5.index(a3)>-1:L(a3).is(a5)){aZ.push({selector:a0,elem:a3});delete aY[a0]}}a3=a3.parentNode}}return aZ}var a2=L.expr.match.POS.test(a4)?L(a4,a6||this.context):null;return this.map(function(a8,a9){while(a9&&a9.ownerDocument&&a9!==a6){if(a2?a2.index(a9)>-1:L(a9).is(a4)){return a9}a9=a9.parentNode}return null})},index:function(aY){if(!aY||typeof aY==="string"){return L.inArray(this[0],aY?L(aY):this.parent().children())}return L.inArray(aY.jquery?aY[0]:aY,this)},add:function(a0,aZ){var aY=typeof a0==="string"?L(a0,aZ||this.context):L.makeArray(a0),a1=L.merge(this.get(),aY);return this.pushStack(aC(aY[0])||aC(a1[0])?a1:L.unique(a1))},andSelf:function(){return this.add(this.prevObject)}});function aC(aY){return !aY||!aY.parentNode||aY.parentNode.nodeType===11}L.each({parent:function(aZ){var aY=aZ.parentNode;return aY&&aY.nodeType!==11?aY:null},parents:function(aY){return L.dir(aY,"parentNode")},parentsUntil:function(aZ,a0,aY){return L.dir(aZ,"parentNode",aY)},next:function(aY){return L.nth(aY,2,"nextSibling")},prev:function(aY){return L.nth(aY,2,"previousSibling")},nextAll:function(aY){return L.dir(aY,"nextSibling")},prevAll:function(aY){return L.dir(aY,"previousSibling")},nextUntil:function(aZ,a0,aY){return L.dir(aZ,"nextSibling",aY)},prevUntil:function(aZ,a0,aY){return L.dir(aZ,"previousSibling",aY)},siblings:function(aY){return L.sibling(aY.parentNode.firstChild,aY)},children:function(aY){return L.sibling(aY.firstChild)},contents:function(aY){return L.nodeName(aY,"iframe")?aY.contentDocument||aY.contentWindow.document:L.makeArray(aY.childNodes)}},function(aZ,aY){L.fn[aZ]=function(a0,a1){var a2=L.map(this,aY,a0);if(!aj.test(aZ)){a1=a0}if(a1&&typeof a1==="string"){a2=L.filter(a1,a2)}a2=this.length>1?L.unique(a2):a2;if((this.length>1||aF.test(a1))&&l.test(aZ)){a2=a2.reverse()}return this.pushStack(a2,aZ,X.call(arguments).join(","))}});L.extend({filter:function(aZ,a0,aY){if(aY){aZ=":not("+aZ+")"}return L.find.matches(aZ,a0)},dir:function(a0,aY,aZ){var a1=[],a2=a0[aY];while(a2&&a2.nodeType!==9&&(aZ===af||a2.nodeType!==1||!L(a2).is(aZ))){if(a2.nodeType===1){a1.push(a2)}a2=a2[aY]}return a1},nth:function(a1,aZ,aY,a0){aZ=aZ||1;var a2=0;for(;a1;a1=a1[aY]){if(a1.nodeType===1&&++a2===aZ){break}}return a1},sibling:function(aZ,a0){var aY=[];for(;aZ;aZ=aZ.nextSibling){if(aZ.nodeType===1&&aZ!==a0){aY.push(aZ)}}return aY}});var av=/ jQuery\d+="(?:\d+|null)"/g,aD=/^\s+/,W=/(<([\w:]+)[^>]*?)\/>/g,R=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,ap=/<([\w:]+)/,h=/<tbody/i,i=/<|&#?\w+;/,A=/<script|<object|<embed|<option|<style/i,ac=/checked\s*(?:[^=]|=\s*.checked.)/i,G=function(aZ,a0,aY){return R.test(aY)?aZ:a0+"></"+aY+">"},ab={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};ab.optgroup=ab.option;ab.tbody=ab.tfoot=ab.colgroup=ab.caption=ab.thead;ab.th=ab.td;if(!L.support.htmlSerialize){ab._default=[1,"div<div>","</div>"]}L.fn.extend({text:function(aY){if(L.isFunction(aY)){return this.each(function(a0){var aZ=L(this);aZ.text(aY.call(this,a0,aZ.text()))})}if(typeof aY!=="object"&&aY!==af){return this.empty().append((this[0]&&this[0].ownerDocument||aS).createTextNode(aY))}return L.text(this)},wrapAll:function(aY){if(L.isFunction(aY)){return this.each(function(a0){L(this).wrapAll(aY.call(this,a0))})}if(this[0]){var aZ=L(aY,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){aZ.insertBefore(this[0])}aZ.map(function(){var a0=this;while(a0.firstChild&&a0.firstChild.nodeType===1){a0=a0.firstChild}return a0}).append(this)}return this},wrapInner:function(aY){if(L.isFunction(aY)){return this.each(function(aZ){L(this).wrapInner(aY.call(this,aZ))})}return this.each(function(){var aZ=L(this),a0=aZ.contents();if(a0.length){a0.wrapAll(aY)}else{aZ.append(aY)}})},wrap:function(aY){return this.each(function(){L(this).wrapAll(aY)})},unwrap:function(){return this.parent().each(function(){if(!L.nodeName(this,"body")){L(this).replaceWith(this.childNodes)}}).end()},append:function(){return this.domManip(arguments,true,function(aY){if(this.nodeType===1){this.appendChild(aY)}})},prepend:function(){return this.domManip(arguments,true,function(aY){if(this.nodeType===1){this.insertBefore(aY,this.firstChild)}})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(aZ){this.parentNode.insertBefore(aZ,this)})}else{if(arguments.length){var aY=L(arguments[0]);aY.push.apply(aY,this.toArray());return this.pushStack(aY,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(aZ){this.parentNode.insertBefore(aZ,this.nextSibling)})}else{if(arguments.length){var aY=this.pushStack(this,"after",arguments);aY.push.apply(aY,L(arguments[0]).toArray());return aY}}},remove:function(a0,aZ){for(var a1=0,aY;(aY=this[a1])!=null;a1++){if(!a0||L.filter(a0,[aY]).length){if(!aZ&&aY.nodeType===1){L.cleanData(aY.getElementsByTagName("*"));L.cleanData([aY])}if(aY.parentNode){aY.parentNode.removeChild(aY)}}}return this},empty:function(){for(var aZ=0,aY;(aY=this[aZ])!=null;aZ++){if(aY.nodeType===1){L.cleanData(aY.getElementsByTagName("*"))}while(aY.firstChild){aY.removeChild(aY.firstChild)}}return this},clone:function(aY){var aZ=this.map(function(){if(!L.support.noCloneEvent&&!L.isXMLDoc(this)){var a2=this.outerHTML,a1=this.ownerDocument;if(!a2){var a0=a1.createElement("div");a0.appendChild(this.cloneNode(true));a2=a0.innerHTML}return L.clean([a2.replace(av,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(aD,"")],a1)[0]}else{return this.cloneNode(true)}});if(aY===true){I(this,aZ);I(this.find("*"),aZ.find("*"))}return aZ},html:function(aY){if(aY===af){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(av,""):null}else{if(typeof aY==="string"&&!A.test(aY)&&(L.support.leadingWhitespace||!aD.test(aY))&&!ab[(ap.exec(aY)||["",""])[1].toLowerCase()]){aY=aY.replace(W,G);try{for(var aZ=0,a1=this.length;aZ<a1;aZ++){if(this[aZ].nodeType===1){L.cleanData(this[aZ].getElementsByTagName("*"));this[aZ].innerHTML=aY}}}catch(a0){this.empty().append(aY)}}else{if(L.isFunction(aY)){this.each(function(a4){var a3=L(this),a2=a3.html();a3.empty().append(function(){return aY.call(this,a4,a2)})})}else{this.empty().append(aY)}}}return this},replaceWith:function(aY){if(this[0]&&this[0].parentNode){if(L.isFunction(aY)){return this.each(function(a1){var a0=L(this),aZ=a0.html();a0.replaceWith(aY.call(this,a1,aZ))})}if(typeof aY!=="string"){aY=L(aY).detach()}return this.each(function(){var a0=this.nextSibling,aZ=this.parentNode;L(this).remove();if(a0){L(a0).before(aY)}else{L(aZ).append(aY)}})}else{return this.pushStack(L(L.isFunction(aY)?aY():aY),"replaceWith",aY)}},detach:function(aY){return this.remove(aY,true)},domManip:function(a5,aY,a9){var a4,a6,a2=a5[0],a3=[],a0,a8;if(!L.support.checkClone&&arguments.length===3&&typeof a2==="string"&&ac.test(a2)){return this.each(function(){L(this).domManip(a5,aY,a9,true)})}if(L.isFunction(a2)){return this.each(function(bb){var ba=L(this);a5[0]=a2.call(this,bb,aY?ba.html():af);ba.domManip(a5,aY,a9)})}if(this[0]){a8=a2&&a2.parentNode;if(L.support.parentNode&&a8&&a8.nodeType===11&&a8.childNodes.length===this.length){a4={fragment:a8}}else{a4=d(a5,this,a3)}a0=a4.fragment;if(a0.childNodes.length===1){a6=a0=a0.firstChild}else{a6=a0.firstChild}if(a6){aY=aY&&L.nodeName(a6,"tr");for(var a7=0,a1=this.length;a7<a1;a7++){a9.call(aY?aZ(this[a7],a6):this[a7],a7>0||a4.cacheable||this.length>1?a0.cloneNode(true):a0)}}if(a3.length){L.each(a3,K)}}return this;function aZ(ba,bb){return L.nodeName(ba,"table")?(ba.getElementsByTagName("tbody")[0]||ba.appendChild(ba.ownerDocument.createElement("tbody"))):ba}}});function I(aY,a0){var aZ=0;a0.each(function(){if(this.nodeName!==(aY[aZ]&&aY[aZ].nodeName)){return}var a1=L.data(aY[aZ++]),a5=L.data(this,a1),a3=a1&&a1.events;if(a3){delete a5.handle;a5.events={};for(var a4 in a3){for(var a2 in a3[a4]){L.event.add(this,a4,a3[a4][a2],a3[a4][a2].data)}}}})}function d(aZ,a1,a2){var a4,aY,a0,a3=(a1&&a1[0]?a1[0].ownerDocument||a1[0]:aS);if(aZ.length===1&&typeof aZ[0]==="string"&&aZ[0].length<512&&a3===aS&&!A.test(aZ[0])&&(L.support.checkClone||!ac.test(aZ[0]))){aY=true;a0=L.fragments[aZ[0]];if(a0){if(a0!==1){a4=a0}}}if(!a4){a4=a3.createDocumentFragment();L.clean(aZ,a3,a4,a2)}if(aY){L.fragments[aZ[0]]=a0?a4:1}return{fragment:a4,cacheable:aY}}L.fragments={};L.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(aZ,aY){L.fn[aZ]=function(a3){var a6=[],a2=L(a3),a1=this.length===1&&this[0].parentNode;if(a1&&a1.nodeType===11&&a1.childNodes.length===1&&a2.length===1){a2[aY](this[0]);return this}else{for(var a4=0,a0=a2.length;a4<a0;a4++){var a5=(a4>0?this.clone(true):this).get();L.fn[aY].apply(L(a2[a4]),a5);a6=a6.concat(a5)}return this.pushStack(a6,aZ,a2.selector)}}});L.extend({clean:function(a5,a9,a0,bb){a9=a9||aS;if(typeof a9.createElement==="undefined"){a9=a9.ownerDocument||a9[0]&&a9[0].ownerDocument||aS}var a1=[];for(var aY=0,ba;(ba=a5[aY])!=null;aY++){if(typeof ba==="number"){ba+=""}if(!ba){continue}if(typeof ba==="string"&&!i.test(ba)){ba=a9.createTextNode(ba)}else{if(typeof ba==="string"){ba=ba.replace(W,G);var a6=(ap.exec(ba)||["",""])[1].toLowerCase(),a2=ab[a6]||ab._default,aZ=a2[0],a3=a9.createElement("div");a3.innerHTML=a2[1]+ba+a2[2];while(aZ--){a3=a3.lastChild}if(!L.support.tbody){var a8=h.test(ba),a4=a6==="table"&&!a8?a3.firstChild&&a3.firstChild.childNodes:a2[1]==="<table>"&&!a8?a3.childNodes:[];for(var a7=a4.length-1;a7>=0;--a7){if(L.nodeName(a4[a7],"tbody")&&!a4[a7].childNodes.length){a4[a7].parentNode.removeChild(a4[a7])}}}if(!L.support.leadingWhitespace&&aD.test(ba)){a3.insertBefore(a9.createTextNode(aD.exec(ba)[0]),a3.firstChild)}ba=a3.childNodes}}if(ba.nodeType){a1.push(ba)}else{a1=L.merge(a1,ba)}}if(a0){for(var aY=0;a1[aY];aY++){if(bb&&L.nodeName(a1[aY],"script")&&(!a1[aY].type||a1[aY].type.toLowerCase()==="text/javascript")){bb.push(a1[aY].parentNode?a1[aY].parentNode.removeChild(a1[aY]):a1[aY])}else{if(a1[aY].nodeType===1){a1.splice.apply(a1,[aY+1,0].concat(L.makeArray(a1[aY].getElementsByTagName("script"))))}a0.appendChild(a1[aY])}}}return a1},cleanData:function(a3){var a1,aZ,a5=L.cache,a6=L.event.special,a0=L.support.deleteExpando;for(var aY=0,a4;(a4=a3[aY])!=null;aY++){aZ=a4[L.expando];if(aZ){a1=a5[aZ];if(a1.events){for(var a2 in a1.events){if(a6[a2]){L.event.remove(a4,a2)}else{r(a4,a2,a1.handle)}}}if(a0){delete a4[L.expando]}else{if(a4.removeAttribute){a4.removeAttribute(L.expando)}}delete a5[aZ]}}}});var n=/z-?index|font-?weight|opacity|zoom|line-?height/i,aO=/alpha\([^)]*\)/,b=/opacity=([^)]*)/,x=/float/i,an=/-([a-z])/ig,am=/([A-Z])/g,az=/^-?\d+(?:px)?$/i,aP=/^-?\d/,aM={position:"absolute",visibility:"hidden",display:"block"},ar=["Left","Right"],k=["Top","Bottom"],v=aS.defaultView&&aS.defaultView.getComputedStyle,U=L.support.cssFloat?"cssFloat":"styleFloat",p=function(aZ,aY){return aY.toUpperCase()};L.fn.css=function(aY,aZ){return O(this,aY,aZ,true,function(a1,a0,a2){if(a2===af){return L.curCSS(a1,a0)}if(typeof a2==="number"&&!n.test(a0)){a2+="px"}L.style(a1,a0,a2)})};L.extend({style:function(a1,aZ,a4){if(!a1||a1.nodeType===3||a1.nodeType===8){return af}if((aZ==="width"||aZ==="height")&&parseFloat(a4)<0){a4=af}var a0=a1.style||a1,aY=a4!==af;if(!L.support.opacity&&aZ==="opacity"){if(aY){a0.zoom=1;var a2=parseInt(a4,10)+""==="NaN"?"":"alpha(opacity="+a4*100+")";var a3=a0.filter||L.curCSS(a1,"filter")||"";a0.filter=aO.test(a3)?a3.replace(aO,a2):a2}return a0.filter&&a0.filter.indexOf("opacity=")>=0?(parseFloat(b.exec(a0.filter)[1])/100)+"":""}if(x.test(aZ)){aZ=U}aZ=aZ.replace(an,p);if(aY){a0[aZ]=a4}return a0[aZ]},css:function(a3,a2,a5,a4){if(a2==="width"||a2==="height"){var a1,a0=aM,aZ=a2==="width"?ar:k;function aY(){a1=a2==="width"?a3.offsetWidth:a3.offsetHeight;if(a4==="border"){return}L.each(aZ,function(){if(!a4){a1-=parseFloat(L.curCSS(a3,"padding"+this,true))||0}if(a4==="margin"){a1+=parseFloat(L.curCSS(a3,"margin"+this,true))||0}else{a1-=parseFloat(L.curCSS(a3,"border"+this+"Width",true))||0}})}if(a3.offsetWidth!==0){aY()}else{L.swap(a3,a0,aY)}return Math.max(0,Math.round(a1))}return L.curCSS(a3,a2,a5)},curCSS:function(a6,a1,a8){var aY,a7=a6.style,a0;if(!L.support.opacity&&a1==="opacity"&&a6.currentStyle){aY=b.test(a6.currentStyle.filter||"")?(parseFloat(RegExp.$1)/100)+"":"";return aY===""?"1":aY}if(x.test(a1)){a1=U}if(!a8&&a7&&a7[a1]){aY=a7[a1]}else{if(v){if(x.test(a1)){a1="float"}a1=a1.replace(am,"-$1").toLowerCase();var a3=a6.ownerDocument.defaultView;if(!a3){return null}var a5=a3.getComputedStyle(a6,null);if(a5){aY=a5.getPropertyValue(a1)}if(a1==="opacity"&&aY===""){aY="1"}}else{if(a6.currentStyle){var a2=a1.replace(an,p);aY=a6.currentStyle[a1]||a6.currentStyle[a2];if(!az.test(aY)&&aP.test(aY)){var aZ=a7.left,a4=a6.runtimeStyle.left;a6.runtimeStyle.left=a6.currentStyle.left;a7.left=a2==="fontSize"?"1em":(aY||0);aY=a7.pixelLeft+"px";a7.left=aZ;a6.runtimeStyle.left=a4}}}}return aY},swap:function(a0,a1,a2){var aY={};for(var aZ in a1){aY[aZ]=a0.style[aZ];a0.style[aZ]=a1[aZ]}a2.call(a0);for(var aZ in a1){a0.style[aZ]=aY[aZ]}}});if(L.expr&&L.expr.filters){L.expr.filters.hidden=function(a0){var aZ=a0.offsetWidth,aY=a0.offsetHeight,a1=a0.nodeName.toLowerCase()==="tr";return aZ===0&&aY===0&&!a1?true:aZ>0&&aY>0&&!a1?false:L.curCSS(a0,"display")==="none"};L.expr.filters.visible=function(aY){return !L.expr.filters.hidden(aY)}}var M=C(),q=/<script(.|\s)*?\/script>/gi,e=/select|textarea/i,ax=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,aU=/=\?(&|$)/,ay=/\?/,Z=/(\?|&)_=.*?(&|$)/,m=/^(\w+:)?\/\/([^\/?#]+)/,t=/%20/g,y=L.fn.load;L.fn.extend({load:function(a1,aY,a4){if(typeof a1!=="string"){return y.call(this,a1)}else{if(!this.length){return this}}var aZ=a1.indexOf(" ");if(aZ>=0){var a2=a1.slice(aZ,a1.length);a1=a1.slice(0,aZ)}var a0="GET";if(aY){if(L.isFunction(aY)){a4=aY;aY=null}else{if(typeof aY==="object"){aY=L.param(aY,L.ajaxSettings.traditional);a0="POST"}}}var a3=this;L.ajax({url:a1,type:a0,dataType:"html",data:aY,complete:function(a6,a5){if(a5==="success"||a5==="notmodified"){a3.html(a2?L("<div />").append(a6.responseText.replace(q,"")).find(a2):a6.responseText)}if(a4){a3.each(a4,[a6.responseText,a5,a6])}}});return this},serialize:function(){return L.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?L.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||e.test(this.nodeName)||ax.test(this.type))}).map(function(aZ,aY){var a0=L(this).val();return a0==null?null:L.isArray(a0)?L.map(a0,function(a2,a1){return{name:aY.name,value:a2}}):{name:aY.name,value:a0}}).get()}});L.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(aZ,aY){L.fn[aY]=function(a0){return this.bind(aY,a0)}});L.extend({get:function(a0,a1,aY,aZ){if(L.isFunction(a1)){aZ=aZ||aY;aY=a1;a1=null}return L.ajax({type:"GET",url:a0,data:a1,success:aY,dataType:aZ})},getScript:function(aY,aZ){return L.get(aY,null,aZ,"script")},getJSON:function(aZ,a0,aY){return L.get(aZ,a0,aY,"json")},post:function(a0,a1,aY,aZ){if(L.isFunction(a1)){aZ=aZ||aY;aY=a1;a1={}}return L.ajax({type:"POST",url:a0,data:a1,success:aY,dataType:aZ})},ajaxSetup:function(aY){L.extend(L.ajaxSettings,aY)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:ai.XMLHttpRequest&&(ai.location.protocol!=="file:"||!ai.ActiveXObject)?function(){return new ai.XMLHttpRequest()}:function(){try{return new ai.ActiveXObject("Microsoft.XMLHTTP")}catch(aY){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a7){var a3=L.extend(true,{},L.ajaxSettings,a7);var aZ,a5,a6,bh=a7&&a7.context||a3,a0=a3.type.toUpperCase();if(a3.data&&a3.processData&&typeof a3.data!=="string"){a3.data=L.param(a3.data,a3.traditional)}if(a3.dataType==="jsonp"){if(a0==="GET"){if(!aU.test(a3.url)){a3.url+=(ay.test(a3.url)?"&":"?")+(a3.jsonp||"callback")+"=?"}}else{if(!a3.data||!aU.test(a3.data)){a3.data=(a3.data?a3.data+"&":"")+(a3.jsonp||"callback")+"=?"}}a3.dataType="json"}if(a3.dataType==="json"&&(a3.data&&aU.test(a3.data)||aU.test(a3.url))){aZ=a3.jsonpCallback||("jsonp"+M++);if(a3.data){a3.data=(a3.data+"").replace(aU,"="+aZ+"$1")}a3.url=a3.url.replace(aU,"="+aZ+"$1");a3.dataType="script";ai[aZ]=ai[aZ]||function(bk){a6=bk;a8();bd();ai[aZ]=af;try{delete ai[aZ]}catch(bl){}if(bj){bj.removeChild(bg)}}}if(a3.dataType==="script"&&a3.cache===null){a3.cache=false}if(a3.cache===false&&a0==="GET"){var aY=C();var a2=a3.url.replace(Z,"$1_="+aY+"$2");a3.url=a2+((a2===a3.url)?(ay.test(a3.url)?"&":"?")+"_="+aY:"")}if(a3.data&&a0==="GET"){a3.url+=(ay.test(a3.url)?"&":"?")+a3.data}if(a3.global&&!L.active++){L.event.trigger("ajaxStart")}var bi=m.exec(a3.url),a4=bi&&(bi[1]&&bi[1]!==location.protocol||bi[2]!==location.host);if(a3.dataType==="script"&&a0==="GET"&&a4){var bj=aS.getElementsByTagName("head")[0]||aS.documentElement;var bg=aS.createElement("script");bg.src=a3.url;if(a3.scriptCharset){bg.charset=a3.scriptCharset}if(!aZ){var a1=false;bg.onload=bg.onreadystatechange=function(){if(!a1&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){a1=true;a8();bd();bg.onload=bg.onreadystatechange=null;if(bj&&bg.parentNode){bj.removeChild(bg)}}}}bj.insertBefore(bg,bj.firstChild);return af}var be=false;var ba=a3.xhr();if(!ba){return}if(a3.username){ba.open(a0,a3.url,a3.async,a3.username,a3.password)}else{ba.open(a0,a3.url,a3.async)}try{if(a3.data||a7&&a7.contentType){ba.setRequestHeader("Content-Type",a3.contentType)}if(a3.ifModified){if(L.lastModified[a3.url]){ba.setRequestHeader("If-Modified-Since",L.lastModified[a3.url])}if(L.etag[a3.url]){ba.setRequestHeader("If-None-Match",L.etag[a3.url])}}if(!a4){ba.setRequestHeader("X-Requested-With","XMLHttpRequest")}ba.setRequestHeader("Accept",a3.dataType&&a3.accepts[a3.dataType]?a3.accepts[a3.dataType]+", */*":a3.accepts._default)}catch(a9){}if(a3.beforeSend&&a3.beforeSend.call(bh,ba,a3)===false){if(a3.global&&!--L.active){L.event.trigger("ajaxStop")}ba.abort();return false}if(a3.global){bb("ajaxSend",[ba,a3])}var bc=ba.onreadystatechange=function(bk){if(!ba||ba.readyState===0||bk==="abort"){if(!be){bd()}be=true;if(ba){ba.onreadystatechange=L.noop}}else{if(!be&&ba&&(ba.readyState===4||bk==="timeout")){be=true;ba.onreadystatechange=L.noop;a5=bk==="timeout"?"timeout":!L.httpSuccess(ba)?"error":a3.ifModified&&L.httpNotModified(ba,a3.url)?"notmodified":"success";var bm;if(a5==="success"){try{a6=L.httpData(ba,a3.dataType,a3)}catch(bl){a5="parsererror";bm=bl}}if(a5==="success"||a5==="notmodified"){if(!aZ){a8()}}else{L.handleError(a3,ba,a5,bm)}bd();if(bk==="timeout"){ba.abort()}if(a3.async){ba=null}}}};try{var bf=ba.abort;ba.abort=function(){if(ba){bf.call(ba)}bc("abort")}}catch(a9){}if(a3.async&&a3.timeout>0){setTimeout(function(){if(ba&&!be){bc("timeout")}},a3.timeout)}try{ba.send(a0==="POST"||a0==="PUT"||a0==="DELETE"?a3.data:null)}catch(a9){L.handleError(a3,ba,null,a9);bd()}if(!a3.async){bc()}function a8(){if(a3.success){a3.success.call(bh,a6,a5,ba)}if(a3.global){bb("ajaxSuccess",[ba,a3])}}function bd(){if(a3.complete){a3.complete.call(bh,ba,a5)}if(a3.global){bb("ajaxComplete",[ba,a3])}if(a3.global&&!--L.active){L.event.trigger("ajaxStop")}}function bb(bl,bk){(a3.context?L(a3.context):L.event).trigger(bl,bk)}return ba},handleError:function(aY,a1,aZ,a0){if(aY.error){aY.error.call(aY.context||aY,a1,aZ,a0)}if(aY.global){(aY.context?L(aY.context):L.event).trigger("ajaxError",[a1,aY,a0])}},active:0,httpSuccess:function(aZ){try{return !aZ.status&&location.protocol==="file:"||(aZ.status>=200&&aZ.status<300)||aZ.status===304||aZ.status===1223||aZ.status===0}catch(aY){}return false},httpNotModified:function(a1,aZ){var a0=a1.getResponseHeader("Last-Modified"),aY=a1.getResponseHeader("Etag");if(a0){L.lastModified[aZ]=a0}if(aY){L.etag[aZ]=aY}return a1.status===304||a1.status===0},httpData:function(a2,a0,aY){var a1=a2.getResponseHeader("content-type")||"",aZ=a0==="xml"||!a0&&a1.indexOf("xml")>=0,a3=aZ?a2.responseXML:a2.responseText;if(aZ&&a3.documentElement.nodeName==="parsererror"){L.error("parsererror")}if(aY&&aY.dataFilter){a3=aY.dataFilter(a3,a0)}if(typeof a3==="string"){if(a0==="json"||!a0&&a1.indexOf("json")>=0){a3=L.parseJSON(a3)}else{if(a0==="script"||!a0&&a1.indexOf("javascript")>=0){L.globalEval(a3)}}}return a3},param:function(a1,a3){var aZ=[];if(a3===af){a3=L.ajaxSettings.traditional}if(L.isArray(a1)||a1.jquery){L.each(a1,function(){a0(this.name,this.value)})}else{for(var a2 in a1){aY(a2,a1[a2])}}return aZ.join("&").replace(t,"+");function aY(a4,a5){if(L.isArray(a5)){L.each(a5,function(a7,a6){if(a3||/\[\]$/.test(a4)){a0(a4,a6)}else{aY(a4+"["+(typeof a6==="object"||L.isArray(a6)?a7:"")+"]",a6)}})}else{if(!a3&&a5!=null&&typeof a5==="object"){L.each(a5,function(a7,a6){aY(a4+"["+a7+"]",a6)})}else{a0(a4,a5)}}}function a0(a5,a4){a4=L.isFunction(a4)?a4():a4;aZ[aZ.length]=encodeURIComponent(a5)+"="+encodeURIComponent(a4)}}});var aN={},aH=/toggle|show|hide/,aG=/^([+-]=)?([\d+-.]+)(.*)$/,aw,V=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];L.fn.extend({show:function(a2,a7){if(a2||a2===0){return this.animate(a("show",3),a2,a7)}else{for(var aY=0,a1=this.length;aY<a1;aY++){var a3=L.data(this[aY],"olddisplay");this[aY].style.display=a3||"";if(L.css(this[aY],"display")==="none"){var a6=this[aY].nodeName,a4;if(aN[a6]){a4=aN[a6]}else{var a5=L("<"+a6+" />").appendTo("body");a4=a5.css("display");if(a4==="none"){a4="block"}a5.remove();aN[a6]=a4}L.data(this[aY],"olddisplay",a4)}}for(var aZ=0,a0=this.length;aZ<a0;aZ++){this[aZ].style.display=L.data(this[aZ],"olddisplay")||""}return this}},hide:function(aZ,a4){if(aZ||aZ===0){return this.animate(a("hide",3),aZ,a4)}else{for(var a1=0,a0=this.length;a1<a0;a1++){var aY=L.data(this[a1],"olddisplay");if(!aY&&aY!=="none"){L.data(this[a1],"olddisplay",L.css(this[a1],"display"))}}for(var a2=0,a3=this.length;a2<a3;a2++){this[a2].style.display="none"}return this}},_toggle:L.fn.toggle,toggle:function(aY,aZ){var a0=typeof aY==="boolean";if(L.isFunction(aY)&&L.isFunction(aZ)){this._toggle.apply(this,arguments)}else{if(aY==null||a0){this.each(function(){var a1=a0?aY:L(this).is(":hidden");L(this)[a1?"show":"hide"]()})}else{this.animate(a("toggle",3),aY,aZ)}}return this},fadeTo:function(aZ,aY,a0){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:aY},aZ,a0)},animate:function(a2,a0,aY,aZ){var a1=L.speed(a0,aY,aZ);if(L.isEmptyObject(a2)){return this.each(a1.complete)}return this[a1.queue===false?"each":"queue"](function(){var a7=L.extend({},a1),a6,a4=this.nodeType===1&&L(this).is(":hidden"),a5=this;for(a6 in a2){var a3=a6.replace(an,p);if(a6!==a3){a2[a3]=a2[a6];delete a2[a6];a6=a3}if(a2[a6]==="hide"&&a4||a2[a6]==="show"&&!a4){return a7.complete.call(this)}if((a6==="height"||a6==="width")&&this.style){a7.display=L.css(this,"display");a7.overflow=this.style.overflow}if(L.isArray(a2[a6])){(a7.specialEasing=a7.specialEasing||{})[a6]=a2[a6][1];a2[a6]=a2[a6][0]}}if(a7.overflow!=null){this.style.overflow="hidden"}a7.curAnim=L.extend({},a2);L.each(a2,function(a8,be){var bd=new L.fx(a5,a7,a8);if(aH.test(be)){bd[be==="toggle"?a4?"show":"hide":be](a2)}else{var bc=aG.exec(be),ba=bd.cur(true)||0;if(bc){var bb=parseFloat(bc[2]),a9=bc[3]||"px";if(a9!=="px"){a5.style[a8]=(bb||1)+a9;ba=((bb||1)/bd.cur(true))*ba;a5.style[a8]=ba+a9}if(bc[1]){bb=((bc[1]==="-="?-1:1)*bb)+ba}bd.custom(ba,bb,a9)}else{bd.custom(ba,be,"")}}});return true})},stop:function(aY,a0){var aZ=L.timers;if(aY){this.queue([])}this.each(function(){for(var a1=aZ.length-1;a1>=0;a1--){if(aZ[a1].elem===this){if(a0){aZ[a1](true)}aZ.splice(a1,1)}}});if(!a0){this.dequeue()}return this}});L.each({slideDown:a("show",1),slideUp:a("hide",1),slideToggle:a("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(aZ,aY){L.fn[aZ]=function(a0,a1){return this.animate(aY,a0,a1)}});L.extend({speed:function(a0,aZ,aY){var a1=a0&&typeof a0==="object"?a0:{complete:aY||!aY&&aZ||L.isFunction(a0)&&a0,duration:a0,easing:aY&&aZ||aZ&&!L.isFunction(aZ)&&aZ};a1.duration=L.fx.off?0:typeof a1.duration==="number"?a1.duration:L.fx.speeds[a1.duration]||L.fx.speeds._default;a1.old=a1.complete;a1.complete=function(){if(a1.queue!==false){L(this).dequeue()}if(L.isFunction(a1.old)){a1.old.call(this)}};return a1},easing:{linear:function(a0,aY,a1,aZ){return a1+aZ*a0},swing:function(a0,aY,a1,aZ){return((-Math.cos(a0*Math.PI)/2)+0.5)*aZ+a1}},timers:[],fx:function(aY,aZ,a0){this.options=aZ;this.elem=aY;this.prop=a0;if(!aZ.orig){aZ.orig={}}}});L.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(L.fx.step[this.prop]||L.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(aZ){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var aY=parseFloat(L.css(this.elem,this.prop,aZ));return aY&&aY>-10000?aY:parseFloat(L.curCSS(this.elem,this.prop))||0},custom:function(aY,aZ,a0){this.startTime=C();this.start=aY;this.end=aZ;this.unit=a0||this.unit||"px";this.now=this.start;this.pos=this.state=0;var a1=this;function a2(a3){return a1.step(a3)}a2.elem=this.elem;if(a2()&&L.timers.push(a2)&&!aw){aw=setInterval(L.fx.tick,13)}},show:function(){this.options.orig[this.prop]=L.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());L(this.elem).show()},hide:function(){this.options.orig[this.prop]=L.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(aZ){var a5=C(),a6=true;if(aZ||a5>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var aY in this.options.curAnim){if(this.options.curAnim[aY]!==true){a6=false}}if(a6){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;var a0=L.data(this.elem,"olddisplay");this.elem.style.display=a0?a0:this.options.display;if(L.css(this.elem,"display")==="none"){this.elem.style.display="block"}}if(this.options.hide){L(this.elem).hide()}if(this.options.hide||this.options.show){for(var a4 in this.options.curAnim){L.style(this.elem,a4,this.options.orig[a4])}}this.options.complete.call(this.elem)}return false}else{var a1=a5-this.startTime;this.state=a1/this.options.duration;var a3=this.options.specialEasing&&this.options.specialEasing[this.prop];var a2=this.options.easing||(L.easing.swing?"swing":"linear");this.pos=L.easing[a3||a2](this.state,a1,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};L.extend(L.fx,{tick:function(){var aY=L.timers;for(var aZ=0;aZ<aY.length;aZ++){if(!aY[aZ]()){aY.splice(aZ--,1)}}if(!aY.length){L.fx.stop()}},stop:function(){clearInterval(aw);aw=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(aY){L.style(aY.elem,"opacity",aY.now)},_default:function(aY){if(aY.elem.style&&aY.elem.style[aY.prop]!=null){aY.elem.style[aY.prop]=(aY.prop==="width"||aY.prop==="height"?Math.max(0,aY.now):aY.now)+aY.unit}else{aY.elem[aY.prop]=aY.now}}}});if(L.expr&&L.expr.filters){L.expr.filters.animated=function(aY){return L.grep(L.timers,function(aZ){return aY===aZ.elem}).length}}function a(aZ,a0){var aY={};L.each(V.concat.apply([],V.slice(0,a0)),function(){aY[this]=aZ});return aY}if("getBoundingClientRect" in aS.documentElement){L.fn.offset=function(aY){var a7=this[0];if(aY){return this.each(function(a8){L.offset.setOffset(this,aY,a8)})}if(!a7||!a7.ownerDocument){return null}if(a7===a7.ownerDocument.body){return L.offset.bodyOffset(a7)}var a1=a7.getBoundingClientRect(),a3=a7.ownerDocument,a6=a3.body,a4=a3.documentElement,a5=a4.clientTop||a6.clientTop||0,aZ=a4.clientLeft||a6.clientLeft||0,a0=a1.top+(self.pageYOffset||L.support.boxModel&&a4.scrollTop||a6.scrollTop)-a5,a2=a1.left+(self.pageXOffset||L.support.boxModel&&a4.scrollLeft||a6.scrollLeft)-aZ;return{top:a0,left:a2}}}else{L.fn.offset=function(aY){var a9=this[0];if(aY){return this.each(function(ba){L.offset.setOffset(this,aY,ba)})}if(!a9||!a9.ownerDocument){return null}if(a9===a9.ownerDocument.body){return L.offset.bodyOffset(a9)}L.offset.initialize();var a8=a9.offsetParent,aZ=a9,a5=a9.ownerDocument,a2,a6=a5.documentElement,a7=a5.body,a3=a5.defaultView,a4=a3?a3.getComputedStyle(a9,null):a9.currentStyle,a0=a9.offsetTop,a1=a9.offsetLeft;while((a9=a9.parentNode)&&a9!==a7&&a9!==a6){if(L.offset.supportsFixedPosition&&a4.position==="fixed"){break}a2=a3?a3.getComputedStyle(a9,null):a9.currentStyle;a0-=a9.scrollTop;a1-=a9.scrollLeft;if(a9===a8){a0+=a9.offsetTop;a1+=a9.offsetLeft;if(L.offset.doesNotAddBorder&&!(L.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(a9.nodeName))){a0+=parseFloat(a2.borderTopWidth)||0;a1+=parseFloat(a2.borderLeftWidth)||0}aZ=a8,a8=a9.offsetParent}if(L.offset.subtractsBorderForOverflowNotVisible&&a2.overflow!=="visible"){a0+=parseFloat(a2.borderTopWidth)||0;a1+=parseFloat(a2.borderLeftWidth)||0}a4=a2}if(a4.position==="relative"||a4.position==="static"){a0+=a7.offsetTop;a1+=a7.offsetLeft}if(L.offset.supportsFixedPosition&&a4.position==="fixed"){a0+=Math.max(a6.scrollTop,a7.scrollTop);a1+=Math.max(a6.scrollLeft,a7.scrollLeft)}return{top:a0,left:a1}}}L.offset={initialize:function(){var a3=aS.body,a0=aS.createElement("div"),a5,a2,aY,a4,aZ=parseFloat(L.curCSS(a3,"marginTop",true))||0,a1="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";L.extend(a0.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});a0.innerHTML=a1;a3.insertBefore(a0,a3.firstChild);a5=a0.firstChild;a2=a5.firstChild;a4=a5.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(a2.offsetTop!==5);this.doesAddBorderForTableAndCells=(a4.offsetTop===5);a2.style.position="fixed",a2.style.top="20px";this.supportsFixedPosition=(a2.offsetTop===20||a2.offsetTop===15);a2.style.position=a2.style.top="";a5.style.overflow="hidden",a5.style.position="relative";this.subtractsBorderForOverflowNotVisible=(a2.offsetTop===-5);this.doesNotIncludeMarginInBodyOffset=(a3.offsetTop!==aZ);a3.removeChild(a0);a3=a0=a5=a2=aY=a4=null;L.offset.initialize=L.noop},bodyOffset:function(aY){var aZ=aY.offsetTop,a0=aY.offsetLeft;L.offset.initialize();if(L.offset.doesNotIncludeMarginInBodyOffset){aZ+=parseFloat(L.curCSS(aY,"marginTop",true))||0;a0+=parseFloat(L.curCSS(aY,"marginLeft",true))||0}return{top:aZ,left:a0}},setOffset:function(a5,aY,a4){if(/static/.test(L.curCSS(a5,"position"))){a5.style.position="relative"}var a2=L(a5),a3=a2.offset(),a1=parseInt(L.curCSS(a5,"top",true),10)||0,a0=parseInt(L.curCSS(a5,"left",true),10)||0;if(L.isFunction(aY)){aY=aY.call(a5,a4,a3)}var aZ={top:(aY.top-a3.top)+a1,left:(aY.left-a3.left)+a0};if("using" in aY){aY.using.call(a5,aZ)}else{a2.css(aZ)}}};L.fn.extend({position:function(){if(!this[0]){return null}var aZ=this[0],a1=this.offsetParent(),a0=this.offset(),aY=/^body|html$/i.test(a1[0].nodeName)?{top:0,left:0}:a1.offset();a0.top-=parseFloat(L.curCSS(aZ,"marginTop",true))||0;a0.left-=parseFloat(L.curCSS(aZ,"marginLeft",true))||0;aY.top+=parseFloat(L.curCSS(a1[0],"borderTopWidth",true))||0;aY.left+=parseFloat(L.curCSS(a1[0],"borderLeftWidth",true))||0;return{top:a0.top-aY.top,left:a0.left-aY.left}},offsetParent:function(){return this.map(function(){var aY=this.offsetParent||aS.body;while(aY&&(!/^body|html$/i.test(aY.nodeName)&&L.css(aY,"position")==="static")){aY=aY.offsetParent}return aY})}});L.each(["Left","Top"],function(a0,aY){var aZ="scroll"+aY;L.fn[aZ]=function(a3){var a1=this[0],a2;if(!a1){return null}if(a3!==af){return this.each(function(){a2=j(this);if(a2){a2.scrollTo(!a0?a3:L(a2).scrollLeft(),a0?a3:L(a2).scrollTop())}else{this[aZ]=a3}})}else{a2=j(a1);return a2?("pageXOffset" in a2)?a2[a0?"pageYOffset":"pageXOffset"]:L.support.boxModel&&a2.document.documentElement[aZ]||a2.document.body[aZ]:a1[aZ]}}});function j(aY){return("scrollTo" in aY&&aY.document)?aY:aY.nodeType===9?aY.defaultView||aY.parentWindow:false}L.each(["Height","Width"],function(a0,aY){var aZ=aY.toLowerCase();L.fn["inner"+aY]=function(){return this[0]?L.css(this[0],aZ,false,"padding"):null};L.fn["outer"+aY]=function(a1){return this[0]?L.css(this[0],aZ,false,a1?"margin":"border"):null};L.fn[aZ]=function(a1){var a2=this[0];if(!a2){return a1==null?null:this}if(L.isFunction(a1)){return this.each(function(a4){var a3=L(this);a3[aZ](a1.call(this,a4,a3[aZ]()))})}return("scrollTo" in a2&&a2.document)?a2.document.compatMode==="CSS1Compat"&&a2.document.documentElement["client"+aY]||a2.document.body["client"+aY]:(a2.nodeType===9)?Math.max(a2.documentElement["client"+aY],a2.body["scroll"+aY],a2.documentElement["scroll"+aY],a2.body["offset"+aY],a2.documentElement["offset"+aY]):a1===af?L.css(a2,aZ):this.css(aZ,typeof a1==="string"?a1:a1+"px")}});ai.jQuery=ai.$=L})(window);(function(g){g.tools=g.tools||{};g.tools.overlay={version:"1.1.2",addEffect:function(a,b,c){f[a]=[b,c]},conf:{top:"10%",left:"center",absolute:false,speed:"normal",closeSpeed:"fast",effect:"default",close:null,oneInstance:true,closeOnClick:true,closeOnEsc:true,api:false,expose:null,target:null}};var f={};g.tools.overlay.addEffect("default",function(a){this.getOverlay().fadeIn(this.getConf().speed,a)},function(a){this.getOverlay().fadeOut(this.getConf().closeSpeed,a)});var h=[];function e(u,c){var r=this,p=g(this),q=g(window),b,a,v,s=c.expose&&g.tools.expose.version;var t=c.target||u.attr("rel");a=t?g(t):null||u;if(!a.length){throw"Could not find Overlay: "+t}if(u&&u.index(a)==-1){u.click(function(i){r.load(i);return i.preventDefault()})}g.each(c,function(i,j){if(g.isFunction(j)){p.bind(i,j)}});g.extend(r,{load:function(l){if(r.isOpened()){return r}var i=f[c.effect];if(!i){throw'Overlay: cannot find effect : "'+c.effect+'"'}if(c.oneInstance){g.each(h,function(){this.close(l)})}l=l||g.Event();l.type="onBeforeLoad";p.trigger(l);if(l.isDefaultPrevented()){return r}v=true;if(s){a.expose().load(l)}var k=c.top;var j=c.left;var m=a.outerWidth({margin:true});var n=a.outerHeight({margin:true});if(typeof k=="string"){k=k=="center"?Math.max((q.height()-n)/2,0):parseInt(k,10)/100*q.height()}if(j=="center"){j=Math.max((q.width()-m)/2,0)}if(!c.absolute){k+=q.scrollTop();j+=q.scrollLeft()}a.css({top:k,left:j,position:"absolute"});l.type="onStart";p.trigger(l);i[0].call(r,function(){if(v){l.type="onLoad";p.trigger(l)}});if(c.closeOnClick){g(document).bind("click.overlay",function(x){if(!r.isOpened()){return}var o=g(x.target);if(o.parents(a).length>1){return}g.each(h,function(){this.close(x)})})}if(c.closeOnEsc){g(document).unbind("keydown.overlay").bind("keydown.overlay",function(o){if(o.keyCode==27){g.each(h,function(){this.close(o)})}})}return r},close:function(j){if(!r.isOpened()){return r}j=j||g.Event();j.type="onBeforeClose";p.trigger(j);if(j.isDefaultPrevented()){return}v=false;f[c.effect][1].call(r,function(){j.type="onClose";p.trigger(j)});var i=true;g.each(h,function(){if(this.isOpened()){i=false}});if(i){g(document).unbind("click.overlay").unbind("keydown.overlay")}return r},getContent:function(){return a},getOverlay:function(){return a},getTrigger:function(){return u},getClosers:function(){return b},isOpened:function(){return v},getConf:function(){return c},bind:function(i,j){p.bind(i,j);return r},unbind:function(i){p.unbind(i);return r}});g.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),function(i,j){r[j]=function(k){return r.bind(j,k)}});if(s){if(typeof c.expose=="string"){c.expose={color:c.expose}}g.extend(c.expose,{api:true,closeOnClick:c.closeOnClick,closeOnEsc:false});var d=a.expose(c.expose);d.onBeforeClose(function(i){r.close(i)});r.onClose(function(i){d.close(i)})}b=a.find(c.close||".close");if(!b.length&&!c.close){b=g('<div class="close"></div>');a.prepend(b)}b.click(function(i){r.close(i)})}g.fn.overlay=function(a){var b=this.eq(typeof a=="number"?a:0).data("overlay");if(b){return b}if(g.isFunction(a)){a={onBeforeLoad:a}}var c=g.extend({},g.tools.overlay.conf);a=g.extend(true,c,a);this.each(function(){b=new e(g(this),a);h.push(b);g(this).data("overlay",b)});return a.api?b:this}})(jQuery);(function(e){e.tools=e.tools||{};e.tools.expose={version:"1.0.5",conf:{maskId:null,loadSpeed:"slow",closeSpeed:"fast",closeOnClick:true,closeOnEsc:true,zIndex:9998,opacity:0.8,color:"#456",api:false}};function d(){if(e.browser.msie){var b=e(document).height(),a=e(window).height();return[window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,b-a<20?a:b]}return[e(window).width(),e(document).height()]}function f(c,n){var l=this,b=e(this),k=null,m=false,a=0;e.each(n,function(g,h){if(e.isFunction(h)){b.bind(g,h)}});e(window).resize(function(){l.fit()});e.extend(this,{getMask:function(){return k},getExposed:function(){return c},getConf:function(){return n},isLoaded:function(){return m},load:function(h){if(m){return l}a=c.eq(0).css("zIndex");if(n.maskId){k=e("#"+n.maskId)}if(!k||!k.length){var j=d();k=e("<div/>").css({position:"absolute",top:0,left:0,width:j[0],height:j[1],display:"none",opacity:0,zIndex:n.zIndex});if(n.maskId){k.attr("id",n.maskId)}e("body").append(k);var i=k.css("backgroundColor");if(!i||i=="transparent"||i=="rgba(0, 0, 0, 0)"){k.css("backgroundColor",n.color)}if(n.closeOnEsc){e(document).bind("keydown.unexpose",function(p){if(p.keyCode==27){l.close()}})}if(n.closeOnClick){k.bind("click.unexpose",function(p){l.close(p)})}}h=h||e.Event();h.type="onBeforeLoad";b.trigger(h);if(h.isDefaultPrevented()){return l}e.each(c,function(){var p=e(this);if(!/relative|absolute|fixed/i.test(p.css("position"))){p.css("position","relative")}});c.css({zIndex:Math.max(n.zIndex+1,a=="auto"?0:a)});var g=k.height();if(!this.isLoaded()){k.css({opacity:0,display:"block"}).fadeTo(n.loadSpeed,n.opacity,function(){if(k.height()!=g){k.css("height",g)}h.type="onLoad";b.trigger(h)})}m=true;return l},close:function(g){if(!m){return l}g=g||e.Event();g.type="onBeforeClose";b.trigger(g);if(g.isDefaultPrevented()){return l}k.fadeOut(n.closeSpeed,function(){g.type="onClose";b.trigger(g);c.css({zIndex:e.browser.msie?a:null})});m=false;return l},fit:function(){if(k){var g=d();k.css({width:g[0],height:g[1]})}},bind:function(g,h){b.bind(g,h);return l},unbind:function(g){b.unbind(g);return l}});e.each("onBeforeLoad,onLoad,onBeforeClose,onClose".split(","),function(g,h){l[h]=function(i){return l.bind(h,i)}})}e.fn.expose=function(a){var b=this.eq(typeof a=="number"?a:0).data("expose");if(b){return b}if(typeof a=="string"){a={color:a}}var c=e.extend({},e.tools.expose.conf);a=e.extend(c,a);this.each(function(){b=new f(e(this),a);e(this).data("expose",b)});return a.api?b:this}})(jQuery);var dialogWidth=400;var dialogHeight=300;var triggers;function openDialog(){setupDialog("");var c=arguments[0];var a=$(".AvanDialog_Args");if(c&&a){var d="";for(var b=0;b<arguments.length;b++){d+=arguments[b];if(b+1<arguments.length){d+="|"}}a.val(d);$(".AvanDialog_Open").click()}dialogWidth=(arguments[1]!=null)?arguments[1]:400;dialogHeight=(arguments[2]!=null)?arguments[2]:300}function setupDialog(a){triggers=$("#dialogdiv").overlay({expose:{color:"#000",loadSpeed:200,opacity:0.9},closeOnClick:true,onClose:function(){closeDialog()}}).load()}function closeDialog(){triggers.close();$(".AvanDialog_Args").val("")};$(function(){$(".ico-print").click(function(){window.print()});$(".ico-mail").click(function(){openDialog("TipFriend","260","540")});$(".ddl_Searchbox").selectbox();var b=$("#ctl00_SearchControl_searchBox");var a=$("#topSearchButton");b.not(".noblur").focus(function(){if($.trim(this.value)==this.defaultValue){this.value=""}});b.not(".noblur").blur(function(){if($.trim(this.value)==""){this.value=(this.defaultValue)?this.defaultValue:""}})});(function(a){jQuery.fn.Disposable=function(b){return this.each(function(){var c=this;if(!c.dispose){c.dispose=d;a(window).bind("unload",d)}function d(){if(!c){return}a(c).unbind();a(window).unbind("unload",d);c.dispose=null;c=null}})}})(jQuery);AvanSearch=function(){var a=null;var c=function(){a=AvanSearch;a.def_s=a.s;a.$sort=$(".search-rb-list");searchString=a.$tb.val().trim();if(searchString!=""){b(searchString,1,a.s,true);d(searchString)}a.$sb.click(function(f){f.preventDefault();txt=a.$tb.val().trim();if(txt!=""){a.$rl.empty();b(txt,1,a.def_s,false);d(txt)}}).Disposable();a.$tb.keypress(function(f){if(f.keyCode==13){f.preventDefault();a.$sb.click();return false}}).Disposable();if(a.$more.length){a.$more.find("a").click(function(f){f.preventDefault();txt=a.$tb.val();var g=parseInt($(".item").size()/10)+1;b(txt,g,a.s,false);return false}).Disposable()}Sys.Application.add_navigate(function(f,g){if(a.ui){var h=g.get_state();if(h.q){a.$tb.val(h.q||"");a.$rl.empty();a.s=h.s;txt=a.$tb.val();if(txt!=""){b(txt,h.p,h.s,true);d(txt)}else{a.$fb.empty().append("Din sökning gav inget resultat.");a.$more.hide()}}}});Sys.Application._navigate(Sys.Application.get_stateString())};var b=function(f,h,e,g){$.ajax({type:"POST",url:"/Templates/WebServices/Search.asmx/GetResult",data:"{text:'"+unescape(f)+"',startat:'"+h+"',scope:'"+e+"',sort:'"+a.$sort.find(":checked").val()+"',getall:'"+g+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(j){var k="";var i=g?1:((h-1)*10+1);$.each(j.d.L,function(q,m){var o="";var l="path";var p=m.P.slice(m.P.lastIndexOf(".")+1).toLowerCase();if(p.length<=4&&p.length>=3){if(p=="xlsx"){o="xls"}else{if(p=="docx"){o="doc"}else{o=p}}l="docpath"}k+='<div class="item"><em class="num">'+(i+q)+'. </em><div class="'+o+'"> <h2><a href="'+m.P+'">'+m.T+"</a></h2><p>"+m.S+'</p></div><span class="'+l+'">Hem '+m.B+"</span></div>"});if(j.d.T>0){SendCatalystData(true,{Prop3:f,Prop4:"Ja"});$(k).hide().appendTo(a.$rl).slideDown();a.$fb.empty().append("Din sökning på <b>"+f+"</b> resulterade i "+(j.d.E?"":"ca ")+"<b>"+j.d.T+"</b> träff"+(j.d.T>1?"ar":"")+" på <b>"+e+"</b>")}else{SendCatalystData(true,{Prop3:f,Prop4:"Nej"});a.$fb.empty().append(a.fbtxt)}(j.d.C<10||j.d.T==j.d.C)?a.$more.hide():a.$more.show()}})};var d=function(e){$.ajax({type:"POST",url:"/Templates/WebServices/Search.asmx/GetCategories",data:"{text:'"+unescape(e)+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(f){var g="";$.each(f.d.L,function(j,h){g+='<li><a href="/" rel="'+h.N+'">'+h.N+" ("+h.H+")</a></li>"});if(f.d.C==0){a.$so.hide()}else{a.$so.show().find("ul").empty().append(g).find("a").click(function(h){h.preventDefault();e=a.$tb.val();a.s=$(this).attr("rel");a.$rl.empty();b(e,1,a.s,false);a.$so.find("a").parent().removeClass("active");$(this).parent().addClass("active")});a.$so.find("a:first").parent().addClass("active")}}})};return{$tb:null,$sb:null,$fb:null,$rl:null,$more:null,$so:null,$sort:null,fbtxt:"",pn:"",s:"",def_s:"",ui:true,init:c}}();var swfobject=function(){var aq="undefined",aA="object",aa="Shockwave Flash",ae="ShockwaveFlash.ShockwaveFlash",az="application/x-shockwave-flash",Z="SWFObjectExprInst",av="onreadystatechange",am=window,aI=document,aC=navigator,ab=false,ac=[aG],aN=[],al=[],ag=[],aK,Y,ar,ao,ah=false,aO=false,aM,au,aL=true,ak=function(){var c=typeof aI.getElementById!=aq&&typeof aI.getElementsByTagName!=aq&&typeof aI.createElement!=aq,g=aC.userAgent.toLowerCase(),j=aC.platform.toLowerCase(),h=j?/win/.test(j):/win/.test(g),a=j?/mac/.test(j):/mac/.test(g),b=/webkit/.test(g)?parseFloat(g.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,i=!+"\v1",e=[0,0,0],f=null;if(typeof aC.plugins!=aq&&typeof aC.plugins[aa]==aA){f=aC.plugins[aa].description;if(f&&!(typeof aC.mimeTypes!=aq&&aC.mimeTypes[az]&&!aC.mimeTypes[az].enabledPlugin)){ab=true;i=false;f=f.replace(/^.*\s+(\S+\s+\S+$)/,"$1");e[0]=parseInt(f.replace(/^(.*)\..*$/,"$1"),10);e[1]=parseInt(f.replace(/^.*\.(.*)\s.*$/,"$1"),10);e[2]=/[a-zA-Z]/.test(f)?parseInt(f.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof am.ActiveXObject!=aq){try{var d=new ActiveXObject(ae);if(d){f=d.GetVariable("$version");if(f){i=true;f=f.split(" ")[1].split(",");e=[parseInt(f[0],10),parseInt(f[1],10),parseInt(f[2],10)]}}}catch(k){}}}return{w3:c,pv:e,wk:b,ie:i,win:h,mac:a}}(),aJ=function(){if(!ak.w3){return}if((typeof aI.readyState!=aq&&aI.readyState=="complete")||(typeof aI.readyState==aq&&(aI.getElementsByTagName("body")[0]||aI.body))){aT()}if(!ah){if(typeof aI.addEventListener!=aq){aI.addEventListener("DOMContentLoaded",aT,false)}if(ak.ie&&ak.win){aI.attachEvent(av,function(){if(aI.readyState=="complete"){aI.detachEvent(av,arguments.callee);aT()}});if(am==top){(function(){if(ah){return}try{aI.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}aT()})()}}if(ak.wk){(function(){if(ah){return}if(!/loaded|complete/.test(aI.readyState)){setTimeout(arguments.callee,0);return}aT()})()}aB(aT)}}();function aT(){if(ah){return}try{var d=aI.getElementsByTagName("body")[0].appendChild(ap("span"));d.parentNode.removeChild(d)}catch(a){return}ah=true;var b=ac.length;for(var c=0;c<b;c++){ac[c]()}}function ai(a){if(ah){a()}else{ac[ac.length]=a}}function aB(b){if(typeof am.addEventListener!=aq){am.addEventListener("load",b,false)}else{if(typeof aI.addEventListener!=aq){aI.addEventListener("load",b,false)}else{if(typeof am.attachEvent!=aq){aH(am,"onload",b)}else{if(typeof am.onload=="function"){var a=am.onload;am.onload=function(){a();b()}}else{am.onload=b}}}}}function aG(){if(ab){ad()}else{af()}}function ad(){var b=aI.getElementsByTagName("body")[0];var a=ap(aA);a.setAttribute("type",az);var d=b.appendChild(a);if(d){var c=0;(function(){if(typeof d.GetVariable!=aq){var e=d.GetVariable("$version");if(e){e=e.split(" ")[1].split(",");ak.pv=[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10)]}}else{if(c<10){c++;setTimeout(arguments.callee,10);return}}b.removeChild(a);d=null;af()})()}else{af()}}function af(){var f=aN.length;if(f>0){for(var c=0;c<f;c++){var k=aN[c].id;var g=aN[c].callbackFn;var d={success:false,id:k};if(ak.pv[0]>0){var i=aQ(k);if(i){if(at(aN[c].swfVersion)&&!(ak.wk&&ak.wk<312)){aF(k,true);if(g){d.success=true;d.ref=ax(k);g(d)}}else{if(aN[c].expressInstall&&an()){var b={};b.data=aN[c].expressInstall;b.width=i.getAttribute("width")||"0";b.height=i.getAttribute("height")||"0";if(i.getAttribute("class")){b.styleclass=i.getAttribute("class")}if(i.getAttribute("align")){b.align=i.getAttribute("align")}var h={};var j=i.getElementsByTagName("param");var a=j.length;for(var e=0;e<a;e++){if(j[e].getAttribute("name").toLowerCase()!="movie"){h[j[e].getAttribute("name")]=j[e].getAttribute("value")}}X(b,h,k,g)}else{ay(i);if(g){g(d)}}}}}else{aF(k,true);if(g){var l=ax(k);if(l&&typeof l.SetVariable!=aq){d.success=true;d.ref=l}g(d)}}}}}function ax(a){var b=null;var c=aQ(a);if(c&&c.nodeName=="OBJECT"){if(typeof c.SetVariable!=aq){b=c}else{var d=c.getElementsByTagName(aA)[0];if(d){b=d}}}return b}function an(){return !aO&&at("6.0.65")&&(ak.win||ak.mac)&&!(ak.wk&&ak.wk<312)}function X(b,d,f,h){aO=true;ar=h||null;ao={success:false,id:f};var e=aQ(f);if(e){if(e.nodeName=="OBJECT"){aK=aU(e);Y=null}else{aK=e;Y=f}b.id=Z;if(typeof b.width==aq||(!/%$/.test(b.width)&&parseInt(b.width,10)<310)){b.width="310"}if(typeof b.height==aq||(!/%$/.test(b.height)&&parseInt(b.height,10)<137)){b.height="137"}aI.title=aI.title.slice(0,47)+" - Flash Player Installation";var c=ak.ie&&ak.win?"ActiveX":"PlugIn",a="MMredirectURL="+am.location.toString().replace(/&/g,"%26")+"&MMplayerType="+c+"&MMdoctitle="+aI.title;if(typeof d.flashvars!=aq){d.flashvars+="&"+a}else{d.flashvars=a}if(ak.ie&&ak.win&&e.readyState!=4){var g=ap("div");f+="SWFObjectNew";g.setAttribute("id",f);e.parentNode.insertBefore(g,e);e.style.display="none";(function(){if(e.readyState==4){e.parentNode.removeChild(e)}else{setTimeout(arguments.callee,10)}})()}aD(b,d,f)}}function ay(b){if(ak.ie&&ak.win&&b.readyState!=4){var a=ap("div");b.parentNode.insertBefore(a,b);a.parentNode.replaceChild(aU(b),a);b.style.display="none";(function(){if(b.readyState==4){b.parentNode.removeChild(b)}else{setTimeout(arguments.callee,10)}})()}else{b.parentNode.replaceChild(aU(b),b)}}function aU(f){var a=ap("div");if(ak.win&&ak.ie){a.innerHTML=f.innerHTML}else{var c=f.getElementsByTagName(aA)[0];if(c){var e=c.childNodes;if(e){var b=e.length;for(var d=0;d<b;d++){if(!(e[d].nodeType==1&&e[d].nodeName=="PARAM")&&!(e[d].nodeType==8)){a.appendChild(e[d].cloneNode(true))}}}}}return a}function aD(b,f,k){var j,d=aQ(k);if(ak.wk&&ak.wk<312){return j}if(d){if(typeof b.id==aq){b.id=k}if(ak.ie&&ak.win){var h="";for(var i in b){if(b[i]!=Object.prototype[i]){if(i.toLowerCase()=="data"){f.movie=b[i]}else{if(i.toLowerCase()=="styleclass"){h+=' class="'+b[i]+'"'}else{if(i.toLowerCase()!="classid"){h+=" "+i+'="'+b[i]+'"'}}}}}var c="";for(var e in f){if(f[e]!=Object.prototype[e]){c+='<param name="'+e+'" value="'+f[e]+'" />'}}d.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+h+">"+c+"</object>";al[al.length]=b.id;j=aQ(b.id)}else{var l=ap(aA);l.setAttribute("type",az);for(var a in b){if(b[a]!=Object.prototype[a]){if(a.toLowerCase()=="styleclass"){l.setAttribute("class",b[a])}else{if(a.toLowerCase()!="classid"){l.setAttribute(a,b[a])}}}}for(var g in f){if(f[g]!=Object.prototype[g]&&g.toLowerCase()!="movie"){aS(l,g,f[g])}}d.parentNode.replaceChild(l,d);j=l}}return j}function aS(d,b,c){var a=ap("param");a.setAttribute("name",b);a.setAttribute("value",c);d.appendChild(a)}function aw(b){var a=aQ(b);if(a&&a.nodeName=="OBJECT"){if(ak.ie&&ak.win){a.style.display="none";(function(){if(a.readyState==4){aP(b)}else{setTimeout(arguments.callee,10)}})()}else{a.parentNode.removeChild(a)}}}function aP(c){var b=aQ(c);if(b){for(var a in b){if(typeof b[a]=="function"){b[a]=null}}b.parentNode.removeChild(b)}}function aQ(c){var a=null;try{a=aI.getElementById(c)}catch(b){}return a}function ap(a){return aI.createElement(a)}function aH(c,a,b){c.attachEvent(a,b);ag[ag.length]=[c,a,b]}function at(c){var b=ak.pv,a=c.split(".");a[0]=parseInt(a[0],10);a[1]=parseInt(a[1],10)||0;a[2]=parseInt(a[2],10)||0;return(b[0]>a[0]||(b[0]==a[0]&&b[1]>a[1])||(b[0]==a[0]&&b[1]==a[1]&&b[2]>=a[2]))?true:false}function aE(f,c,e,g){if(ak.ie&&ak.mac){return}var a=aI.getElementsByTagName("head")[0];if(!a){return}var b=(e&&typeof e=="string")?e:"screen";if(g){aM=null;au=null}if(!aM||au!=b){var d=ap("style");d.setAttribute("type","text/css");d.setAttribute("media",b);aM=a.appendChild(d);if(ak.ie&&ak.win&&typeof aI.styleSheets!=aq&&aI.styleSheets.length>0){aM=aI.styleSheets[aI.styleSheets.length-1]}au=b}if(ak.ie&&ak.win){if(aM&&typeof aM.addRule==aA){aM.addRule(f,c)}}else{if(aM&&typeof aI.createTextNode!=aq){aM.appendChild(aI.createTextNode(f+" {"+c+"}"))}}}function aF(c,a){if(!aL){return}var b=a?"visible":"hidden";if(ah&&aQ(c)){aQ(c).style.visibility=b}else{aE("#"+c,"visibility:"+b)}}function aj(b){var c=/[\\\"<>\.;]/;var a=c.exec(b)!=null;return a&&typeof encodeURIComponent!=aq?encodeURIComponent(b):b}var aR=function(){if(ak.ie&&ak.win){window.attachEvent("onunload",function(){var e=ag.length;for(var f=0;f<e;f++){ag[f][0].detachEvent(ag[f][1],ag[f][2])}var d=al.length;for(var a=0;a<d;a++){aw(al[a])}for(var c in ak){ak[c]=null}ak=null;for(var b in swfobject){swfobject[b]=null}swfobject=null})}}();return{registerObject:function(e,b,a,d){if(ak.w3&&e&&b){var c={};c.id=e;c.swfVersion=b;c.expressInstall=a;c.callbackFn=d;aN[aN.length]=c;aF(e,false)}else{if(d){d({success:false,id:e})}}},getObjectById:function(a){if(ak.w3){return ax(a)}},embedSWF:function(f,g,h,e,j,c,k,d,b,a){var i={success:false,id:g};if(ak.w3&&!(ak.wk&&ak.wk<312)&&f&&g&&h&&e&&j){aF(g,false);ai(function(){h+="";e+="";var m={};if(b&&typeof b===aA){for(var q in b){m[q]=b[q]}}m.data=f;m.width=h;m.height=e;var p={};if(d&&typeof d===aA){for(var l in d){p[l]=d[l]}}if(k&&typeof k===aA){for(var n in k){if(typeof p.flashvars!=aq){p.flashvars+="&"+n+"="+k[n]}else{p.flashvars=n+"="+k[n]}}}if(at(j)){var o=aD(m,p,g);if(m.id==g){aF(g,true)}i.success=true;i.ref=o}else{if(c&&an()){m.data=c;X(m,p,g,a);return}else{aF(g,true)}}if(a){a(i)}})}else{if(a){a(i)}}},switchOffAutoHideShow:function(){aL=false},ua:ak,getFlashPlayerVersion:function(){return{major:ak.pv[0],minor:ak.pv[1],release:ak.pv[2]}},hasFlashPlayerVersion:at,createSWF:function(c,b,a){if(ak.w3){return aD(c,b,a)}else{return undefined}},showExpressInstall:function(d,a,b,c){if(ak.w3&&an()){X(d,a,b,c)}},removeSWF:function(a){if(ak.w3){aw(a)}},createCSS:function(a,d,c,b){if(ak.w3){aE(a,d,c,b)}},addDomLoadEvent:ai,addLoadEvent:aB,getQueryParamValue:function(a){var d=aI.location.search||aI.location.hash;if(d){if(/\?/.test(d)){d=d.split("?")[1]}if(a==null){return aj(d)}var c=d.split("&");for(var b=0;b<c.length;b++){if(c[b].substring(0,c[b].indexOf("="))==a){return aj(c[b].substring((c[b].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(aO){var a=aQ(Z);if(a&&aK){a.parentNode.replaceChild(aK,a);if(Y){aF(Y,true);if(ak.ie&&ak.win){aK.style.display="block"}}if(ar){ar(ao)}}aO=false}}}}();if(window.jQuery&&!window.jQuery.createTemplate){(function(jQuery){var Template=function(s,includes,settings){this._tree=[];this._param={};this._includes=null;this._templates={};this._templates_code={};this.settings=jQuery.extend({disallow_functions:false,filter_data:true,filter_params:false,runnable_functions:false,clone_data:true,clone_params:true},settings);this.f_cloneData=(this.settings.f_cloneData!==undefined)?(this.settings.f_cloneData):(TemplateUtils.cloneData);this.f_escapeString=(this.settings.f_escapeString!==undefined)?(this.settings.f_escapeString):(TemplateUtils.escapeHTML);this.splitTemplates(s,includes);if(s){this.setTemplate(this._templates_code.MAIN,includes,this.settings)}this._templates_code=null};Template.prototype.version="0.7.8";Template.DEBUG_MODE=true;Template.prototype.splitTemplates=function(s,includes){var reg=/\{#template *(\w*?)( .*)*\}/g;var iter,tname,se;var lastIndex=null;var _template_settings=[];while((iter=reg.exec(s))!=null){lastIndex=reg.lastIndex;tname=iter[1];se=s.indexOf("{#/template "+tname+"}",lastIndex);if(se==-1){throw new Error('jTemplates: Template "'+tname+'" is not closed.')}this._templates_code[tname]=s.substring(lastIndex,se);_template_settings[tname]=TemplateUtils.optionToObject(iter[2])}if(lastIndex===null){this._templates_code.MAIN=s;return}for(var i in this._templates_code){if(i!="MAIN"){this._templates[i]=new Template()}}for(var i in this._templates_code){if(i!="MAIN"){this._templates[i].setTemplate(this._templates_code[i],jQuery.extend({},includes||{},this._templates||{}),jQuery.extend({},this.settings,_template_settings[i]));this._templates_code[i]=null}}};Template.prototype.setTemplate=function(s,includes,settings){if(s==undefined){this._tree.push(new TextNode("",1,this));return}s=s.replace(/[\n\r]/g,"");s=s.replace(/\{\*.*?\*\}/g,"");this._includes=jQuery.extend({},this._templates||{},includes||{});this.settings=new Object(settings);var node=this._tree;var op=s.match(/\{#.*?\}/g);var ss=0,se=0;var e;var literalMode=0;var elseif_level=0;for(var i=0,l=(op)?(op.length):(0);i<l;++i){var this_op=op[i];if(literalMode){se=s.indexOf("{#/literal}");if(se==-1){throw new Error("jTemplates: No end of literal.")}if(se>ss){node.push(new TextNode(s.substring(ss,se),1,this))}ss=se+11;literalMode=0;i=jQuery.inArray("{#/literal}",op);continue}se=s.indexOf(this_op,ss);if(se>ss){node.push(new TextNode(s.substring(ss,se),literalMode,this))}var ppp=this_op.match(/\{#([\w\/]+).*?\}/);var op_=RegExp.$1;switch(op_){case"elseif":++elseif_level;node.switchToElse();case"if":e=new opIF(this_op,node);node.push(e);node=e;break;case"else":node.switchToElse();break;case"/if":while(elseif_level){node=node.getParent();--elseif_level}case"/for":case"/foreach":node=node.getParent();break;case"foreach":e=new opFOREACH(this_op,node,this);node.push(e);node=e;break;case"for":e=opFORFactory(this_op,node,this);node.push(e);node=e;break;case"continue":case"break":node.push(new JTException(op_));break;case"include":node.push(new Include(this_op,this._includes));break;case"param":node.push(new UserParam(this_op));break;case"cycle":node.push(new Cycle(this_op));break;case"ldelim":node.push(new TextNode("{",1,this));break;case"rdelim":node.push(new TextNode("}",1,this));break;case"literal":literalMode=1;break;case"/literal":if(Template.DEBUG_MODE){throw new Error("jTemplates: Missing begin of literal.")}break;default:if(Template.DEBUG_MODE){throw new Error("jTemplates: unknown tag: "+op_+".")}}ss=se+this_op.length}if(s.length>ss){node.push(new TextNode(s.substr(ss),literalMode,this))}};Template.prototype.get=function(d,param,element,deep){++deep;var $T=d,_param1,_param2;if(this.settings.clone_data){$T=this.f_cloneData(d,{escapeData:(this.settings.filter_data&&deep==1),noFunc:this.settings.disallow_functions},this.f_escapeString)}if(!this.settings.clone_params){_param1=this._param;_param2=param}else{_param1=this.f_cloneData(this._param,{escapeData:(this.settings.filter_params),noFunc:false},this.f_escapeString);_param2=this.f_cloneData(param,{escapeData:(this.settings.filter_params&&deep==1),noFunc:false},this.f_escapeString)}var $P=jQuery.extend({},_param1,_param2);var $Q=(element!=undefined)?(element):({});$Q.version=this.version;var ret="";for(var i=0,l=this._tree.length;i<l;++i){ret+=this._tree[i].get($T,$P,$Q,deep)}--deep;return ret};Template.prototype.setParam=function(name,value){this._param[name]=value};TemplateUtils=function(){};TemplateUtils.escapeHTML=function(txt){return txt.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")};TemplateUtils.cloneData=function(d,filter,f_escapeString){if(d==null){return d}switch(d.constructor){case Object:var o={};for(var i in d){o[i]=TemplateUtils.cloneData(d[i],filter,f_escapeString)}if(!filter.noFunc){if(d.hasOwnProperty("toString")){o.toString=d.toString}}return o;case Array:var o=[];for(var i=0,l=d.length;i<l;++i){o[i]=TemplateUtils.cloneData(d[i],filter,f_escapeString)}return o;case String:return(filter.escapeData)?(f_escapeString(d)):(d);case Function:if(filter.noFunc){if(Template.DEBUG_MODE){throw new Error("jTemplates: Functions are not allowed.")}else{return undefined}}default:return d}};TemplateUtils.optionToObject=function(optionText){if(optionText===null||optionText===undefined){return{}}var o=optionText.split(/[= ]/);if(o[0]===""){o.shift()}var obj={};for(var i=0,l=o.length;i<l;i+=2){obj[o[i]]=o[i+1]}return obj};var TextNode=function(val,literalMode,template){this._value=val;this._literalMode=literalMode;this._template=template};TextNode.prototype.get=function(d,param,element,deep){var __t=this._value;if(!this._literalMode){var __template=this._template;var $T=d;var $P=param;var $Q=element;__t=__t.replace(/\{(.*?)\}/g,function(__0,__1){try{var __tmp=eval(__1);if(typeof __tmp=="function"){if(__template.settings.disallow_functions||!__template.settings.runnable_functions){return""}else{__tmp=__tmp($T,$P,$Q)}}return(__tmp===undefined)?(""):(String(__tmp))}catch(e){if(Template.DEBUG_MODE){if(e instanceof JTException){e.type="subtemplate"}throw e}return""}})}return __t};var opIF=function(oper,par){this._parent=par;oper.match(/\{#(?:else)*if (.*?)\}/);this._cond=RegExp.$1;this._onTrue=[];this._onFalse=[];this._currentState=this._onTrue};opIF.prototype.push=function(e){this._currentState.push(e)};opIF.prototype.getParent=function(){return this._parent};opIF.prototype.switchToElse=function(){this._currentState=this._onFalse};opIF.prototype.get=function(d,param,element,deep){var $T=d;var $P=param;var $Q=element;var ret="";try{var tab=(eval(this._cond))?(this._onTrue):(this._onFalse);for(var i=0,l=tab.length;i<l;++i){ret+=tab[i].get(d,param,element,deep)}}catch(e){if(Template.DEBUG_MODE||(e instanceof JTException)){throw e}}return ret};opFORFactory=function(oper,par,template){if(oper.match(/\{#for (\w+?) *= *(\S+?) +to +(\S+?) *(?:step=(\S+?))*\}/)){oper="{#foreach opFORFactory.funcIterator as "+RegExp.$1+" begin="+(RegExp.$2||0)+" end="+(RegExp.$3||-1)+" step="+(RegExp.$4||1)+" extData=$T}";return new opFOREACH(oper,par,template)}else{throw new Error('jTemplates: Operator failed "find": '+oper)}};opFORFactory.funcIterator=function(i){return i};var opFOREACH=function(oper,par,template){this._parent=par;this._template=template;oper.match(/\{#foreach (.+?) as (\w+?)( .+)*\}/);this._arg=RegExp.$1;this._name=RegExp.$2;this._option=RegExp.$3||null;this._option=TemplateUtils.optionToObject(this._option);this._onTrue=[];this._onFalse=[];this._currentState=this._onTrue};opFOREACH.prototype.push=function(e){this._currentState.push(e)};opFOREACH.prototype.getParent=function(){return this._parent};opFOREACH.prototype.switchToElse=function(){this._currentState=this._onFalse};opFOREACH.prototype.get=function(d,param,element,deep){try{var $T=d;var $P=param;var $Q=element;var fcount=eval(this._arg);var key=[];var mode=typeof fcount;if(mode=="object"){var arr=[];jQuery.each(fcount,function(k,v){key.push(k);arr.push(v)});fcount=arr}var extData=(this._option.extData!==undefined)?(eval(this._option.extData)):(($T!=null)?($T):({}));var s=Number(eval(this._option.begin)||0),e;var step=Number(eval(this._option.step)||1);if(mode!="function"){e=fcount.length}else{if(this._option.end===undefined||this._option.end===null){e=Number.MAX_VALUE}else{e=Number(eval(this._option.end))+((step>0)?(1):(-1))}}var ret="";var i,l;if(this._option.count){var tmp=s+Number(eval(this._option.count));e=(tmp>e)?(e):(tmp)}if((e>s&&step>0)||(e<s&&step<0)){var iteration=0;var _total=(mode!="function")?(Math.ceil((e-s)/step)):undefined;var ckey,cval;for(;((step>0)?(s<e):(s>e));s+=step,++iteration){ckey=key[s];if(mode!="function"){cval=fcount[s]}else{cval=fcount(s);if(cval===undefined||cval===null){break}}if((typeof cval=="function")&&(this._template.settings.disallow_functions||!this._template.settings.runnable_functions)){continue}if((mode=="object")&&(ckey in Object)){continue}var prevValue=extData[this._name];extData[this._name]=cval;extData[this._name+"$index"]=s;extData[this._name+"$iteration"]=iteration;extData[this._name+"$first"]=(iteration==0);extData[this._name+"$last"]=(s+step>=e);extData[this._name+"$total"]=_total;extData[this._name+"$key"]=(ckey!==undefined&&ckey.constructor==String)?(this._template.f_escapeString(ckey)):(ckey);extData[this._name+"$typeof"]=typeof cval;for(i=0,l=this._onTrue.length;i<l;++i){try{ret+=this._onTrue[i].get(extData,param,element,deep)}catch(ex){if(ex instanceof JTException){switch(ex.type){case"continue":i=l;break;case"break":i=l;s=e;break;default:throw e}}else{throw e}}}delete extData[this._name+"$index"];delete extData[this._name+"$iteration"];delete extData[this._name+"$first"];delete extData[this._name+"$last"];delete extData[this._name+"$total"];delete extData[this._name+"$key"];delete extData[this._name+"$typeof"];delete extData[this._name];extData[this._name]=prevValue}}else{for(i=0,l=this._onFalse.length;i<l;++i){ret+=this._onFalse[i].get($T,param,element,deep)}}return ret}catch(e){if(Template.DEBUG_MODE||(e instanceof JTException)){throw e}return""}};var JTException=function(type){this.type=type};JTException.prototype=Error;JTException.prototype.get=function(d){throw this};var Include=function(oper,includes){oper.match(/\{#include (.*?)(?: root=(.*?))?\}/);this._template=includes[RegExp.$1];if(this._template==undefined){if(Template.DEBUG_MODE){throw new Error("jTemplates: Cannot find include: "+RegExp.$1)}}this._root=RegExp.$2};Include.prototype.get=function(d,param,element,deep){var $T=d;var $P=param;try{return this._template.get(eval(this._root),param,element,deep)}catch(e){if(Template.DEBUG_MODE||(e instanceof JTException)){throw e}}return""};var UserParam=function(oper){oper.match(/\{#param name=(\w*?) value=(.*?)\}/);this._name=RegExp.$1;this._value=RegExp.$2};UserParam.prototype.get=function(d,param,element,deep){var $T=d;var $P=param;var $Q=element;try{param[this._name]=eval(this._value)}catch(e){if(Template.DEBUG_MODE||(e instanceof JTException)){throw e}param[this._name]=undefined}return""};var Cycle=function(oper){oper.match(/\{#cycle values=(.*?)\}/);this._values=eval(RegExp.$1);this._length=this._values.length;if(this._length<=0){throw new Error("jTemplates: cycle has no elements")}this._index=0;this._lastSessionID=-1};Cycle.prototype.get=function(d,param,element,deep){var sid=jQuery.data(element,"jTemplateSID");if(sid!=this._lastSessionID){this._lastSessionID=sid;this._index=0}var i=this._index++%this._length;return this._values[i]};jQuery.fn.setTemplate=function(s,includes,settings){if(s.constructor===Template){return jQuery(this).each(function(){jQuery.data(this,"jTemplate",s);jQuery.data(this,"jTemplateSID",0)})}else{return jQuery(this).each(function(){jQuery.data(this,"jTemplate",new Template(s,includes,settings));jQuery.data(this,"jTemplateSID",0)})}};jQuery.fn.setTemplateURL=function(url_,includes,settings){var s=jQuery.ajax({url:url_,async:false}).responseText;return jQuery(this).setTemplate(s,includes,settings)};jQuery.fn.setTemplateElement=function(elementName,includes,settings){var s=jQuery("#"+elementName).val();if(s==null){s=jQuery("#"+elementName).html();s=s.replace(/&lt;/g,"<").replace(/&gt;/g,">")}s=jQuery.trim(s);s=s.replace(/^<\!\[CDATA\[([\s\S]*)\]\]>$/im,"$1");s=s.replace(/^<\!--([\s\S]*)-->$/im,"$1");return jQuery(this).setTemplate(s,includes,settings)};jQuery.fn.hasTemplate=function(){var count=0;jQuery(this).each(function(){if(jQuery.getTemplate(this)){++count}});return count};jQuery.fn.removeTemplate=function(){jQuery(this).processTemplateStop();return jQuery(this).each(function(){jQuery.removeData(this,"jTemplate")})};jQuery.fn.setParam=function(name,value){return jQuery(this).each(function(){var t=jQuery.getTemplate(this);if(t===undefined){if(Template.DEBUG_MODE){throw new Error("jTemplates: Template is not defined.")}else{return}}t.setParam(name,value)})};jQuery.fn.processTemplate=function(d,param){return jQuery(this).each(function(){var t=jQuery.getTemplate(this);if(t===undefined){if(Template.DEBUG_MODE){throw new Error("jTemplates: Template is not defined.")}else{return}}jQuery.data(this,"jTemplateSID",jQuery.data(this,"jTemplateSID")+1);jQuery(this).html(t.get(d,param,this,0))})};jQuery.fn.processTemplateURL=function(url_,param,options){var that=this;options=jQuery.extend({type:"GET",async:true,cache:false},options);jQuery.ajax({url:url_,type:options.type,data:options.data,dataFilter:options.dataFilter,async:options.async,cache:options.cache,timeout:options.timeout,dataType:"json",success:function(d){var r=jQuery(that).processTemplate(d,param);if(options.on_success){options.on_success(r)}},error:options.on_error,complete:options.on_complete});return this};var Updater=function(url,param,interval,args,objs,options){this._url=url;this._param=param;this._interval=interval;this._args=args;this.objs=objs;this.timer=null;this._options=options||{};var that=this;jQuery(objs).each(function(){jQuery.data(this,"jTemplateUpdater",that)});this.run()};Updater.prototype.run=function(){this.detectDeletedNodes();if(this.objs.length==0){return}var that=this;jQuery.getJSON(this._url,this._args,function(d){var r=jQuery(that.objs).processTemplate(d,that._param);if(that._options.on_success){that._options.on_success(r)}});this.timer=setTimeout(function(){that.run()},this._interval)};Updater.prototype.detectDeletedNodes=function(){this.objs=jQuery.grep(this.objs,function(o){if(jQuery.browser.msie){var n=o.parentNode;while(n&&n!=document){n=n.parentNode}return n!=null}else{return o.parentNode!=null}})};jQuery.fn.processTemplateStart=function(url,param,interval,args,options){return new Updater(url,param,interval,args,this,options)};jQuery.fn.processTemplateStop=function(){return jQuery(this).each(function(){var updater=jQuery.data(this,"jTemplateUpdater");if(updater==null){return}var that=this;updater.objs=jQuery.grep(updater.objs,function(o){return o!=that});jQuery.removeData(this,"jTemplateUpdater")})};jQuery.extend({createTemplate:function(s,includes,settings){return new Template(s,includes,settings)},createTemplateURL:function(url_,includes,settings){var s=jQuery.ajax({url:url_,async:false}).responseText;return new Template(s,includes,settings)},getTemplate:function(element){return jQuery.data(element,"jTemplate")},processTemplateToText:function(template,data,parameter){return template.get(data,parameter,undefined,0)},jTemplatesDebugMode:function(value){Template.DEBUG_MODE=value}})})(jQuery)};var $tableList=null;var $ajaxMenu=null;var $pager=null;var $breadcrumb=null;var _docTypeId=0;var _statAreaId=0;var _traffAreaId=0;var _year=0;var _docTypeIDs=null;var totalPages=0;var pageSize=10;var currentPageNumber=0;function init(a){_docTypeIDs=a;$tableList=$(".table-list");$ajaxMenu=$(".ajax-menu");$pager=$("#paging");$breadcrumb=$("ul.breadcrumbs");filterBoxes();documentListSetup();if(_docTypeIDs==null){applyTemplate("{}","#documentTypeTemplate",$("div.col:eq(0)",$ajaxMenu),"GetDocumentTypes",false,null)}else{applyTemplate("{docTypeIDs:'"+_docTypeIDs+"'}","#documentTypeTemplate",$("div.col:eq(0)",$ajaxMenu),"GetDocumentTypesFromIDs",false,null)}}function formatDateTime(e){var c=e.indexOf("(")+1;var b=e.indexOf(")")-6;var f=new Date(parseInt(e.substr(c,b)));var d=f.getFullYear();var a=(f.getMonth()<9)?"0"+(f.getMonth()+1):f.getMonth()+1;var g=(f.getDate()<10)?"0"+f.getDate():f.getDate();return d+"-"+a+"-"+g}function processTemplate(d,f,b,a,h){var g=$(f).html();b.setTemplate(g,null,{filter_data:false});var e=b.html();var c=b.processTemplate(d).html();if(a){b.append(c)}else{b.html(c)}if(typeof h=="function"){return h()}}function applyTemplate(b,e,a,c,d,f){$.ajax({type:"POST",url:"/Templates/WebServices/DocumentService.asmx/"+c,data:b,contentType:"application/json; charset=utf-8",dataType:"json",cache:false,success:function(g){if(g.d!=""){processTemplate(g,e,a,d,f);a.show()}},error:function(g){alert("Error: "+g)}})}function initOpenClose(){$("li a.doc-item-link",$tableList).live("click",function(){var n=$(this);var f=$(".slider",n.parents("li"));var e=$("a.open",n.parents("li"));var b=$("a.close",n.parents("li"));var l=n.parents("li");var g=400;var k=167;if($.trim(f.html())==""){var a="{id:'"+n.attr("rel")+"'}";applyTemplate(a,"#documentInfoTemplate",f,"GetDocumentById",false,null)}if(l.hasClass("active")){f.hide();l.removeClass("active")}else{f.show();var c=$(this).html();var j=$(this).parent().find(".hiddenFileName").val();var m=c+"("+j+")";SendCatalystData(true,{Prop6:m});l.addClass("active")}})}function filterBoxes(){$("a",$ajaxMenu).live("click",function(){var d=$(this);var c=d.attr("rel").split(",");var b=c[0];var a=c[1];d.parents("div.col:eq(0)").find("li").removeClass("active");d.parent().addClass("active");d.parents("div.col:eq(0)").nextAll().hide();if(d.parent().hasClass("active")&&b>0){currentPageNumber=0;switch(a){case"DocType":_docTypeId=b;_statAreaId=0;_traffAreaId=0;_year=0;_docTypeIDs=null;appendStatisticAreaBox();documentListSetup();break;case"StatArea":_statAreaId=b;_traffAreaId=0;_year=0;_docTypeIDs=null;appendTrafficAreaBox();documentListSetup();break;case"TraffArea":_traffAreaId=b;_year=0;_docTypeIDs=null;documentListSetup();break;case"Year":_year=b;_docTypeIDs=null;documentListSetup();break}}})}function buildBreadCrumb(){var c="";var b=$ajaxMenu.children("div.col:eq(0)");if(b.is(":visible")){c=c+"<li>"+b.find("li[class^=active]").text()+"</li>"}var e=$ajaxMenu.children("div.col:eq(1)");if(e.is(":visible")){c=c+"<li>"+e.find("li[class^=active]").text()+"</li>"}var d=$ajaxMenu.children("div.col:eq(2)");if(d.is(":visible")){c=c+"<li>"+d.find("li[class^=active]").text()+"</li>"}var a=$ajaxMenu.children("div.col:eq(3)");if(a.is(":visible")){c=c+"<li>"+a.find("li[class^=active]").text()+"</li>"}$breadcrumb.html(c)}function populateDocuments(){var c=(_docTypeIDs==null)?_docTypeId:_docTypeIDs;var b=(_docTypeIDs==null)?"FindDocumentsLite":"FindDocuments";var a="{documentType:'"+c+"', statisticArea:'"+_statAreaId+"', trafficArea:'"+_traffAreaId+"', year:'"+_year+"', pageNumber:'"+currentPageNumber+"', pageSize:'"+pageSize+"'}";applyTemplate(a,"#documentListTemplate",$tableList,b,false,null)}function appendStatisticAreaBox(){var a="{docTypeId:'"+_docTypeId+"'}";applyTemplate(a,"#statisticAreaTemple",$("div.col:eq(1)",$ajaxMenu),"GetStatisticAreas",false,null)}function appendTrafficAreaBox(){var a="{docTypeId:'"+_docTypeId+"', statAreaId:'"+_statAreaId+"'}";applyTemplate(a,"#trafficAreaTemplate",$("div.col:eq(2)",$ajaxMenu),"GetTrafficAreas",false,null)}function appendYearBox(){if(_docTypeIDs==null){var a="{docTypeId:'"+_docTypeId+"', statAreaId:'"+_statAreaId+"', traffAreaId:'"+_traffAreaId+"'}";applyTemplate(a,"#yearTemplate",$("div.col:eq(3)",$ajaxMenu),"GetYears",false,null)}else{var a="{docTypeIDs:'"+_docTypeIDs+"', statAreaId:'"+_statAreaId+"', traffAreaId:'"+_traffAreaId+"'}";applyTemplate(a,"#yearTemplate",$("div.col:eq(3)",$ajaxMenu),"GetYearsFromIDs",false,null)}}function documentListSetup(){initOpenClose();var b=(_docTypeIDs==null)?_docTypeId:_docTypeIDs;var a=(_docTypeIDs==null)?"GetDocumentsTotal":"GetDocumentsTotal2";$.ajax({type:"POST",url:"/Templates/WebServices/DocumentService.asmx/"+a,data:"{documentType:'"+b+"', statisticArea:'"+_statAreaId+"', trafficArea:'"+_traffAreaId+"', year:'"+_year+"'}",contentType:"application/json; charset=utf-8",dataType:"json",cache:false,success:function(c){if(c.d>0){totalPages=Math.ceil(c.d/pageSize);populateDocuments();fillPager();appendYearBox();buildBreadCrumb()}else{$pager.hide();$tableList.hide()}},error:function(c){alert("Error: "+c)}})}function documentListSetup2(){initOpenClose();$.ajax({type:"POST",url:"/Templates/WebServices/DocumentService.asmx/GetDocumentsTotal2",data:"{documentType:'"+_docTypeId+"', statisticArea:'"+_statAreaId+"', trafficArea:'"+_traffAreaId+"', year:'"+_year+"'}",contentType:"application/json; charset=utf-8",dataType:"json",cache:false,success:function(a){if(a.d>0){totalPages=Math.ceil(a.d/pageSize);populateDocuments2();fillPager2()}else{$pager.hide();$tableList.hide()}},error:function(a){alert("Error: "+a)}})}function populateDocuments2(){var a="{documentType:'"+_docTypeId+"', statisticArea:'"+_statAreaId+"', trafficArea:'"+_traffAreaId+"', year:'"+_year+"', pageNumber:'"+currentPageNumber+"', pageSize:'"+pageSize+"'}";applyTemplate(a,"#documentListTemplate",$tableList,"FindDocuments",false,null)}function fillPager2(){$pager.empty();var a=Math.max(0,((totalPages-currentPageNumber)<5?totalPages-9:currentPageNumber-4));var b=Math.min(totalPages,a+10);var c='<span class="page">Sida: </span><span class="pager">';if(a>0){c+='<a href="javascript:void();">1</a><span>...</span>'}for(i=a;i<b;i++){c+='<a href="javascript:void();" rel='+(i+1)+">"+(i+1)+"</a>"}if(b<(totalPages)){c+='<span>...</span><a href="javascript:void();">'+totalPages+"</a>"}c+="</span>";$pager.append(c);$pager.find("a").click(function(f){f.preventDefault();var d=parseInt($(this).text())-1;if(currentPageNumber!=d){currentPageNumber=d;populateDocuments2();fillPager2()}});$pager.find("a").removeClass("select").filter("a[rel="+(currentPageNumber+1)+"]").addClass("select")}function fillPager(){$pager.empty();var a=Math.max(0,((totalPages-currentPageNumber)<5?totalPages-9:currentPageNumber-4));var b=Math.min(totalPages,a+10);var c='<span class="page">Sida: </span><span class="pager">';if(a>0){c+='<a href="javascript:void();">1</a><span>...</span>'}for(i=a;i<b;i++){c+='<a href="javascript:void();" rel='+(i+1)+">"+(i+1)+"</a>"}if(b<(totalPages)){c+='<span>...</span><a href="javascript:void();">'+totalPages+"</a>"}c+="</span>";$pager.append(c);$pager.find("a").click(function(f){f.preventDefault();var d=parseInt($(this).text())-1;if(currentPageNumber!=d){currentPageNumber=d;populateDocuments();fillPager()}});$pager.find("a").removeClass("select").filter("a[rel="+(currentPageNumber+1)+"]").addClass("select")};jQuery.fn.extend({selectbox:function(a){return this.each(function(){new jQuery.SelectBox(this,a)})}});if(!window.console){var console={log:function(a){}}}jQuery.SelectBox=function(k,g){var j=g||{};j.inputType=j.inputType||"input";j.inputClass=j.inputClass||"selectbox";j.inputDownClass=j.inputDownClass||"selectbox-down";j.containerClass=j.containerClass||"selectbox-wrapper";j.hoverClass=j.hoverClass||"current";j.currentClass=j.currentClass||"selected";j.groupClass=j.groupClass||"groupname";j.maxHeight=j.maxHeight||200;j.loopnoStep=j.loopnoStep||false;j.onChangeCallback=j.onChangeCallback||false;j.onChangeParams=j.onChangeParams||false;j.debug=j.debug||false;var p=k.id;var f=0;var q=false;var n=0;var l=jQuery(k);var b=a(j);var e=d(j);l.hide().before(e).before(b);o();e.click(function(){if(!q){b.toggle()}}).focus(function(){if(b.not(":visible")){q=true;jQuery(this).removeClass("selectbox");jQuery(this).addClass("selectbox-down");b.show()}}).keydown(function(u){switch(u.keyCode){case 38:u.preventDefault();h(-1);break;case 40:u.preventDefault();h(1);break;case 13:u.preventDefault();$("li."+j.hoverClass).trigger("click");break;case 27:s();break}}).blur(function(){if(b.is(":visible")&&n>0){if(j.debug){console.log("container visible and has focus")}}else{s()}});function s(){n=0;jQuery(e).addClass("selectbox");jQuery(e).removeClass("selectbox-down");b.hide()}function o(){b.append(m(e.attr("id"))).hide();var u=e.css("width");if(b.height()>j.maxHeight){b.width(parseInt(u)+parseInt(e.css("paddingRight"))+parseInt(e.css("paddingLeft")));b.height(j.maxHeight)}else{b.width(u)}}function a(v){var u=document.createElement("div");b=jQuery(u);b.attr("id",p+"_container");b.addClass(v.containerClass);b.css("display","none");return b}function d(v){if(j.inputType=="span"){var u=document.createElement("span");var w=jQuery(u);w.attr("id",p+"_input");w.addClass(v.inputClass);w.attr("tabIndex",l.attr("tabindex"))}else{var u=document.createElement("input");var w=jQuery(u);w.attr("id",p+"_input");w.attr("type","text");w.addClass(v.inputClass);w.attr("autocomplete","off");w.attr("readonly","readonly");w.attr("tabIndex",l.attr("tabindex"));w.css("width",l.css("width"))}return w}function h(u){var v=jQuery("li",b);if(!v||v.length==0){return false}firstchoice=0;while($(v[firstchoice]).hasClass(j.groupClass)){firstchoice++}f+=u;if($(v[f]).hasClass(j.groupClass)){f+=u}if(f<firstchoice){(j.loopnoStep?f=v.size()-1:f=v.size())}else{if(j.loopnoStep&&f>v.size()-1){f=firstchoice}else{if(f>v.size()){f=firstchoice}}}t(v,f);v.removeClass(j.hoverClass);jQuery(v[f]).addClass(j.hoverClass)}function t(v,w){var u=jQuery(v[w]).get(0);var v=b.get(0);if(u.offsetTop+u.offsetHeight>v.scrollTop+v.clientHeight){v.scrollTop=u.offsetTop+u.offsetHeight-v.clientHeight}else{if(u.offsetTop<v.scrollTop){v.scrollTop=u.offsetTop}}}function c(){var u=jQuery("li."+j.currentClass,b).get(0);var w=(""+u.id).split("_");var v=w[w.length-1];if(j.onChangeCallback){l.get(0).selectedIndex=$("li",b).index(u);j.onChangeParams={selectedVal:l.val()};j.onChangeCallback(j.onChangeParams)}else{l.val(v);l.change()}if(j.inputType=="span"){e.html($(u).html())}else{e.val($(u).html())}return true}function r(){return l.val()}function i(){return e.val()}function m(v){var w=new Array();var z=document.createElement("ul");w=l.children("option");if(w.length==0){var y=new Array();y=l.children("optgroup");for(x=0;x<y.length;x++){w=$("#"+y[x].id).children("option");var u=document.createElement("li");u.setAttribute("id",v+"_"+$(this).val());u.innerHTML=$("#"+y[x].id).attr("label");u.className=j.groupClass;z.appendChild(u);w.each(function(){var A=document.createElement("li");A.setAttribute("id",v+"_"+$(this).val());A.innerHTML=$(this).html();if($(this).is(":selected")){e.html($(this).html());$(A).addClass(j.currentClass)}z.appendChild(A);$(A).mouseover(function(B){n=1;if(j.debug){console.log("over on : "+this.id)}jQuery(B.target,b).addClass(j.hoverClass)}).mouseout(function(B){n=-1;if(j.debug){console.log("out on : "+this.id)}jQuery(B.target,b).removeClass(j.hoverClass)}).click(function(C){var B=$("li."+j.hoverClass,b).get(0);if(j.debug){console.log("click on :"+this.id)}$("li."+j.currentClass,b).removeClass(j.currentClass);$(this).addClass(j.currentClass);c();l.get(0).blur();s()})})}}else{w.each(function(){var A=document.createElement("li");A.setAttribute("id",v+"_"+$(this).val());A.innerHTML=$(this).html();if($(this).is(":selected")){e.val($(this).html());$(A).addClass(j.currentClass)}z.appendChild(A);$(A).mouseover(function(B){n=1;if(j.debug){console.log("over on : "+this.id)}jQuery(B.target,b).addClass(j.hoverClass)}).mouseout(function(B){n=-1;if(j.debug){console.log("out on : "+this.id)}jQuery(B.target,b).removeClass(j.hoverClass)}).click(function(C){var B=$("li."+j.hoverClass,b).get(0);if(j.debug){console.log("click on :"+this.id)}$("li."+j.currentClass,b).removeClass(j.currentClass);$(this).addClass(j.currentClass);c();l.get(0).blur();s()})})}return z}};
