﻿/*
 * 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(aj,an){function a9(){if(!ap.isReady){try{am.documentElement.doScroll("left")}catch(c){setTimeout(a9,1);return}ap.ready()}}function aw(s,c){c.src?ap.ajax({url:c.src,async:false,dataType:"script"}):ap.globalEval(c.text||c.textContent||c.innerHTML||"");c.parentNode&&c.parentNode.removeChild(c)}function B(G,F,K,J,c,s){var w=G.length;if(typeof F==="object"){for(var A in F){B(G,A,F[A],J,c,K)}return G}if(K!==an){J=!s&&J&&ap.isFunction(K);for(A=0;A<w;A++){c(G[A],F,J?K.call(G[A],A,c(G[A],F)):K,s)}return G}return w?c(G[0],F):an}function ac(){return(new Date).getTime()}function C(){return false}function y(){return true}function a6(w,s,c){c[0].type=w;return ap.event.handle.apply(s,c)}function a7(N){var L,P=[],O=[],c=arguments,A,G,K,F,J,s;G=ap.data(this,"events");if(!(N.liveFired===this||!G||!G.live||N.button&&N.type==="click")){N.liveFired=this;var w=G.live.slice(0);for(F=0;F<w.length;F++){G=w[F];G.origType.replace(ag,"")===N.type?O.push(G.selector):w.splice(F--,1)}A=ap(N.target).closest(O,N.currentTarget);J=0;for(s=A.length;J<s;J++){for(F=0;F<w.length;F++){G=w[F];if(A[J].selector===G.selector){K=A[J].elem;O=null;if(G.preType==="mouseenter"||G.preType==="mouseleave"){O=ap(N.relatedTarget).closest(G.selector)[0]}if(!O||O!==K){P.push({elem:K,handleObj:G})}}}}J=0;for(s=P.length;J<s;J++){A=P[J];N.currentTarget=A.elem;N.data=A.handleObj.data;N.handleObj=A.handleObj;if(A.handleObj.origHandler.apply(A.elem,c)===false){L=false;break}}return L}}function aW(s,c){return"live."+(s&&s!=="*"?s+".":"")+c.replace(/\./g,"`").replace(/ /g,"&")}function aX(c){return !c||!c.parentNode||c.parentNode.nodeType===11}function aU(w,s){var c=0;s.each(function(){if(this.nodeName===(w[c]&&w[c].nodeName)){var J=ap.data(w[c++]),F=ap.data(this,J);if(J=J&&J.events){delete F.handle;F.events={};for(var G in J){for(var A in J[G]){ap.event.add(this,G,J[G][A],J[G][A].data)}}}}})}function aV(F,A,s){var G,w,c;A=A&&A[0]?A[0].ownerDocument||A[0]:am;if(F.length===1&&typeof F[0]==="string"&&F[0].length<512&&A===am&&!a0.test(F[0])&&(ap.support.checkClone||!a1.test(F[0]))){w=true;if(c=ap.fragments[F[0]]){if(c!==1){G=c}}}if(!G){G=A.createDocumentFragment();ap.clean(F,A,G,s)}if(w){ap.fragments[F[0]]=c?G:1}return{fragment:G,cacheable:w}}function ad(w,s){var c={};ap.each(p.concat.apply([],p.slice(0,s)),function(){c[this]=w});return c}function aZ(c){return"scrollTo" in c&&c.document?c:c.nodeType===9?c.defaultView||c.parentWindow:false}var ap=function(s,c){return new ap.fn.init(s,c)},at=aj.jQuery,au=aj.$,am=aj.document,ab,az=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,aA=/^.[^:#\[\.,]*$/,ax=/\S/,ay=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,aq=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,I=navigator.userAgent,aR=false,M=[],ah,f=Object.prototype.toString,aC=Object.prototype.hasOwnProperty,bb=Array.prototype.push,H=Array.prototype.slice,aS=Array.prototype.indexOf;ap.fn=ap.prototype={init:function(w,s){var c,A;if(!w){return this}if(w.nodeType){this.context=this[0]=w;this.length=1;return this}if(w==="body"&&!s){this.context=am;this[0]=am.body;this.selector="body";this.length=1;return this}if(typeof w==="string"){if((c=az.exec(w))&&(c[1]||!s)){if(c[1]){A=s?s.ownerDocument||s:am;if(w=aq.exec(w)){if(ap.isPlainObject(s)){w=[am.createElement(w[1])];ap.fn.attr.call(w,s,true)}else{w=[A.createElement(w[1])]}}else{w=aV([c[1]],[A]);w=(w.cacheable?w.fragment.cloneNode(true):w.fragment).childNodes}return ap.merge(this,w)}else{if(s=am.getElementById(c[2])){if(s.id!==c[2]){return ab.find(w)}this.length=1;this[0]=s}this.context=am;this.selector=w;return this}}else{if(!s&&/^\w+$/.test(w)){this.selector=w;this.context=am;w=am.getElementsByTagName(w);return ap.merge(this,w)}else{return !s||s.jquery?(s||ab).find(w):ap(s).find(w)}}}else{if(ap.isFunction(w)){return ab.ready(w)}}if(w.selector!==an){this.selector=w.selector;this.context=w.context}return ap.makeArray(w,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return H.call(this,0)},get:function(c){return c==null?this.toArray():c<0?this.slice(c)[0]:this[c]},pushStack:function(w,s,c){var A=ap();ap.isArray(w)?bb.apply(A,w):ap.merge(A,w);A.prevObject=this;A.context=this.context;if(s==="find"){A.selector=this.selector+(this.selector?" ":"")+c}else{if(s){A.selector=this.selector+"."+s+"("+c+")"}}return A},each:function(s,c){return ap.each(this,s,c)},ready:function(c){ap.bindReady();if(ap.isReady){c.call(am,ap)}else{M&&M.push(c)}return this},eq:function(c){return c===-1?this.slice(c):this.slice(c,+c+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(H.apply(this,arguments),"slice",H.call(arguments).join(","))},map:function(c){return this.pushStack(ap.map(this,function(w,s){return c.call(w,s,w)}))},end:function(){return this.prevObject||ap(null)},push:bb,sort:[].sort,splice:[].splice};ap.fn.init.prototype=ap.fn;ap.extend=ap.fn.extend=function(){var G=arguments[0]||{},F=1,K=arguments.length,J=false,c,s,w,A;if(typeof G==="boolean"){J=G;G=arguments[1]||{};F=2}if(typeof G!=="object"&&!ap.isFunction(G)){G={}}if(K===F){G=this;--F}for(;F<K;F++){if((c=arguments[F])!=null){for(s in c){w=G[s];A=c[s];if(G!==A){if(J&&A&&(ap.isPlainObject(A)||ap.isArray(A))){w=w&&(ap.isPlainObject(w)||ap.isArray(w))?w:ap.isArray(A)?[]:{};G[s]=ap.extend(J,w,A)}else{if(A!==an){G[s]=A}}}}}}return G};ap.extend({noConflict:function(c){aj.$=au;if(c){aj.jQuery=at}return ap},isReady:false,ready:function(){if(!ap.isReady){if(!am.body){return setTimeout(ap.ready,13)}ap.isReady=true;if(M){for(var s,c=0;s=M[c++];){s.call(am,ap)}M=null}ap.fn.triggerHandler&&ap(am).triggerHandler("ready")}},bindReady:function(){if(!aR){aR=true;if(am.readyState==="complete"){return ap.ready()}if(am.addEventListener){am.addEventListener("DOMContentLoaded",ah,false);aj.addEventListener("load",ap.ready,false)}else{if(am.attachEvent){am.attachEvent("onreadystatechange",ah);aj.attachEvent("onload",ap.ready);var s=false;try{s=aj.frameElement==null}catch(c){}am.documentElement.doScroll&&s&&a9()}}}},isFunction:function(c){return f.call(c)==="[object Function]"},isArray:function(c){return f.call(c)==="[object Array]"},isPlainObject:function(s){if(!s||f.call(s)!=="[object Object]"||s.nodeType||s.setInterval){return false}if(s.constructor&&!aC.call(s,"constructor")&&!aC.call(s.constructor.prototype,"isPrototypeOf")){return false}var c;for(c in s){}return c===an||aC.call(s,c)},isEmptyObject:function(s){for(var c in s){return false}return true},error:function(c){throw c},parseJSON:function(c){if(typeof c!=="string"||!c){return null}c=ap.trim(c);if(/^[\],:{}\s]*$/.test(c.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){return aj.JSON&&aj.JSON.parse?aj.JSON.parse(c):(new Function("return "+c))()}else{ap.error("Invalid JSON: "+c)}},noop:function(){},globalEval:function(w){if(w&&ax.test(w)){var s=am.getElementsByTagName("head")[0]||am.documentElement,c=am.createElement("script");c.type="text/javascript";if(ap.support.scriptEval){c.appendChild(am.createTextNode(w))}else{c.text=w}s.insertBefore(c,s.firstChild);s.removeChild(c)}},nodeName:function(s,c){return s.nodeName&&s.nodeName.toUpperCase()===c.toUpperCase()},each:function(G,F,s){var J,w=0,c=G.length,A=c===an||ap.isFunction(G);if(s){if(A){for(J in G){if(F.apply(G[J],s)===false){break}}}else{for(;w<c;){if(F.apply(G[w++],s)===false){break}}}}else{if(A){for(J in G){if(F.call(G[J],J,G[J])===false){break}}}else{for(s=G[0];w<c&&F.call(s,w,s)!==false;s=G[++w]){}}}return G},trim:function(c){return(c||"").replace(ay,"")},makeArray:function(s,c){c=c||[];if(s!=null){s.length==null||typeof s==="string"||ap.isFunction(s)||typeof s!=="function"&&s.setInterval?bb.call(c,s):ap.merge(c,s)}return c},inArray:function(w,s){if(s.indexOf){return s.indexOf(w)}for(var c=0,A=s.length;c<A;c++){if(s[c]===w){return c}}return -1},merge:function(A,w){var c=A.length,F=0;if(typeof w.length==="number"){for(var s=w.length;F<s;F++){A[c++]=w[F]}}else{for(;w[F]!==an;){A[c++]=w[F++]}}A.length=c;return A},grep:function(F,A,s){for(var G=[],w=0,c=F.length;w<c;w++){!s!==!A(F[w],w)&&G.push(F[w])}return G},map:function(G,F,s){for(var J=[],w,c=0,A=G.length;c<A;c++){w=F(G[c],c,s);if(w!=null){J[J.length]=w}}return J.concat.apply([],J)},guid:1,proxy:function(w,s,c){if(arguments.length===2){if(typeof s==="string"){c=w;w=c[s];s=an}else{if(s&&!ap.isFunction(s)){c=s;s=an}}}if(!s&&w){s=function(){return w.apply(c||this,arguments)}}if(w){s.guid=w.guid=w.guid||s.guid||ap.guid++}return s},uaMatch:function(c){c=c.toLowerCase();c=/(webkit)[ \/]([\w.]+)/.exec(c)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(c)||/(msie) ([\w.]+)/.exec(c)||!/compatible/.test(c)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(c)||[];return{browser:c[1]||"",version:c[2]||"0"}},browser:{}});I=ap.uaMatch(I);if(I.browser){ap.browser[I.browser]=true;ap.browser.version=I.version}if(ap.browser.webkit){ap.browser.safari=true}if(aS){ap.inArray=function(s,c){return aS.call(c,s)}}ab=ap(am);if(am.addEventListener){ah=function(){am.removeEventListener("DOMContentLoaded",ah,false);ap.ready()}}else{if(am.attachEvent){ah=function(){if(am.readyState==="complete"){am.detachEvent("onreadystatechange",ah);ap.ready()}}}}(function(){ap.support={};var J=am.documentElement,G=am.createElement("script"),L=am.createElement("div"),K="script"+ac();L.style.display="none";L.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var c=L.getElementsByTagName("*"),s=L.getElementsByTagName("a")[0];if(!(!c||!c.length||!s)){ap.support={leadingWhitespace:L.firstChild.nodeType===3,tbody:!L.getElementsByTagName("tbody").length,htmlSerialize:!!L.getElementsByTagName("link").length,style:/red/.test(s.getAttribute("style")),hrefNormalized:s.getAttribute("href")==="/a",opacity:/^0.55$/.test(s.style.opacity),cssFloat:!!s.style.cssFloat,checkOn:L.getElementsByTagName("input")[0].value==="on",optSelected:am.createElement("select").appendChild(am.createElement("option")).selected,parentNode:L.removeChild(L.appendChild(am.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(am.createTextNode("window."+K+"=1;"))}catch(A){}J.insertBefore(G,J.firstChild);if(aj[K]){ap.support.scriptEval=true;delete aj[K]}try{delete G.test}catch(F){ap.support.deleteExpando=false}J.removeChild(G);if(L.attachEvent&&L.fireEvent){L.attachEvent("onclick",function w(){ap.support.noCloneEvent=false;L.detachEvent("onclick",w)});L.cloneNode(true).fireEvent("onclick")}L=am.createElement("div");L.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";J=am.createDocumentFragment();J.appendChild(L.firstChild);ap.support.checkClone=J.cloneNode(true).cloneNode(true).lastChild.checked;ap(function(){var N=am.createElement("div");N.style.width=N.style.paddingLeft="1px";am.body.appendChild(N);ap.boxModel=ap.support.boxModel=N.offsetWidth===2;am.body.removeChild(N).style.display="none"});J=function(P){var O=am.createElement("div");P="on"+P;var N=P in O;if(!N){O.setAttribute(P,"return;");N=typeof O[P]==="function"}return N};ap.support.submitBubbles=J("submit");ap.support.changeBubbles=J("change");J=G=L=c=s=null}})();ap.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var al="jQuery"+ac(),ar=0,aQ={};ap.extend({cache:{},expando:al,noData:{embed:true,object:true,applet:true},data:function(A,w,c){if(!(A.nodeName&&ap.noData[A.nodeName.toLowerCase()])){A=A==aj?aQ:A;var F=A[al],s=ap.cache;if(!F&&typeof w==="string"&&c===an){return null}F||(F=++ar);if(typeof w==="object"){A[al]=F;s[F]=ap.extend(true,{},w)}else{if(!s[F]){A[al]=F;s[F]={}}}A=s[F];if(c!==an){A[w]=c}return typeof w==="string"?A[w]:A}},removeData:function(A,w){if(!(A.nodeName&&ap.noData[A.nodeName.toLowerCase()])){A=A==aj?aQ:A;var c=A[al],F=ap.cache,s=F[c];if(w){if(s){delete s[w];ap.isEmptyObject(s)&&ap.removeData(A)}}else{if(ap.support.deleteExpando){delete A[ap.expando]}else{A.removeAttribute&&A.removeAttribute(ap.expando)}delete F[c]}}}});ap.fn.extend({data:function(w,s){if(typeof w==="undefined"&&this.length){return ap.data(this[0])}else{if(typeof w==="object"){return this.each(function(){ap.data(this,w)})}}var c=w.split(".");c[1]=c[1]?"."+c[1]:"";if(s===an){var A=this.triggerHandler("getData"+c[1]+"!",[c[0]]);if(A===an&&this.length){A=ap.data(this[0],w)}return A===an&&c[1]?this.data(c[0]):A}else{return this.trigger("setData"+c[1]+"!",[c[0],s]).each(function(){ap.data(this,w,s)})}},removeData:function(c){return this.each(function(){ap.removeData(this,c)})}});ap.extend({queue:function(w,s,c){if(w){s=(s||"fx")+"queue";var A=ap.data(w,s);if(!c){return A||[]}if(!A||ap.isArray(c)){A=ap.data(w,s,ap.makeArray(c))}else{A.push(c)}return A}},dequeue:function(w,s){s=s||"fx";var c=ap.queue(w,s),A=c.shift();if(A==="inprogress"){A=c.shift()}if(A){s==="fx"&&c.unshift("inprogress");A.call(w,function(){ap.dequeue(w,s)})}}});ap.fn.extend({queue:function(s,c){if(typeof s!=="string"){c=s;s="fx"}if(c===an){return ap.queue(this[0],s)}return this.each(function(){var w=ap.queue(this,s,c);s==="fx"&&w[0]!=="inprogress"&&ap.dequeue(this,s)})},dequeue:function(c){return this.each(function(){ap.dequeue(this,c)})},delay:function(s,c){s=ap.fx?ap.fx.speeds[s]||s:s;c=c||"fx";return this.queue(c,function(){var w=this;setTimeout(function(){ap.dequeue(w,c)},s)})},clearQueue:function(c){return this.queue(c||"fx",[])}});var aL=/[\n\t]/g,bc=/\s+/,ao=/\r/g,o=/href|src|style/,e=/(button|input)/i,b=/(button|input|object|select|textarea)/i,d=/^(a|area)$/i,aJ=/radio|checkbox/;ap.fn.extend({attr:function(s,c){return B(this,s,c,true,ap.attr)},removeAttr:function(c){return this.each(function(){ap.attr(this,c,"");this.nodeType===1&&this.removeAttribute(c)})},addClass:function(J){if(ap.isFunction(J)){return this.each(function(O){var N=ap(this);N.addClass(J.call(this,O,N.attr("class")))})}if(J&&typeof J==="string"){for(var G=(J||"").split(bc),L=0,K=this.length;L<K;L++){var c=this[L];if(c.nodeType===1){if(c.className){for(var s=" "+c.className+" ",A=c.className,F=0,w=G.length;F<w;F++){if(s.indexOf(" "+G[F]+" ")<0){A+=" "+G[F]}}c.className=ap.trim(A)}else{c.className=J}}}}return this},removeClass:function(G){if(ap.isFunction(G)){return this.each(function(N){var L=ap(this);L.removeClass(G.call(this,N,L.attr("class")))})}if(G&&typeof G==="string"||G===an){for(var F=(G||"").split(bc),K=0,J=this.length;K<J;K++){var c=this[K];if(c.nodeType===1&&c.className){if(G){for(var s=(" "+c.className+" ").replace(aL," "),w=0,A=F.length;w<A;w++){s=s.replace(" "+F[w]+" "," ")}c.className=ap.trim(s)}else{c.className=""}}}}return this},toggleClass:function(w,s){var c=typeof w,A=typeof s==="boolean";if(ap.isFunction(w)){return this.each(function(F){var G=ap(this);G.toggleClass(w.call(this,F,G.attr("class"),s),s)})}return this.each(function(){if(c==="string"){for(var G,K=0,F=ap(this),J=s,L=w.split(bc);G=L[K++];){J=A?J:!F.hasClass(G);F[J?"addClass":"removeClass"](G)}}else{if(c==="undefined"||c==="boolean"){this.className&&ap.data(this,"__className__",this.className);this.className=this.className||w===false?"":ap.data(this,"__className__")||""}}})},hasClass:function(w){w=" "+w+" ";for(var s=0,c=this.length;s<c;s++){if((" "+this[s].className+" ").replace(aL," ").indexOf(w)>-1){return true}}return false},val:function(G){if(G===an){var F=this[0];if(F){if(ap.nodeName(F,"option")){return(F.attributes.value||{}).specified?F.value:F.text}if(ap.nodeName(F,"select")){var K=F.selectedIndex,J=[],c=F.options;F=F.type==="select-one";if(K<0){return null}var s=F?K:0;for(K=F?K+1:c.length;s<K;s++){var w=c[s];if(w.selected){G=ap(w).val();if(F){return G}J.push(G)}}return J}if(aJ.test(F.type)&&!ap.support.checkOn){return F.getAttribute("value")===null?"on":F.value}return(F.value||"").replace(ao,"")}return an}var A=ap.isFunction(G);return this.each(function(P){var N=ap(this),L=G;if(this.nodeType===1){if(A){L=G.call(this,P,N.val())}if(typeof L==="number"){L+=""}if(ap.isArray(L)&&aJ.test(this.type)){this.checked=ap.inArray(N.val(),L)>=0}else{if(ap.nodeName(this,"select")){var O=ap.makeArray(L);ap("option",this).each(function(){this.selected=ap.inArray(ap(this).val(),O)>=0});if(!O.length){this.selectedIndex=-1}}else{this.value=L}}}})}});ap.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(F,A,s,G){if(!F||F.nodeType===3||F.nodeType===8){return an}if(G&&A in ap.attrFn){return ap(F)[A](s)}G=F.nodeType!==1||!ap.isXMLDoc(F);var w=s!==an;A=G&&ap.props[A]||A;if(F.nodeType===1){var c=o.test(A);if(A in F&&G&&!c){if(w){A==="type"&&e.test(F.nodeName)&&F.parentNode&&ap.error("type property can't be changed");F[A]=s}if(ap.nodeName(F,"form")&&F.getAttributeNode(A)){return F.getAttributeNode(A).nodeValue}if(A==="tabIndex"){return(A=F.getAttributeNode("tabIndex"))&&A.specified?A.value:b.test(F.nodeName)||d.test(F.nodeName)&&F.href?0:an}return F[A]}if(!ap.support.style&&G&&A==="style"){if(w){F.style.cssText=""+s}return F.style.cssText}w&&F.setAttribute(A,""+s);F=!ap.support.hrefNormalized&&G&&c?F.getAttribute(A,2):F.getAttribute(A);return F===null?an:F}return ap.style(F,A,s)}});var ag=/\.(.*)$/,h=function(c){return c.replace(/[^\w\s\.\|`]/g,function(s){return"\\"+s})};ap.event={add:function(O,N,Q,P){if(!(O.nodeType===3||O.nodeType===8)){if(O.setInterval&&O!==aj&&!O.frameElement){O=aj}var c,A;if(Q.handler){c=Q;Q=c.handler}if(!Q.guid){Q.guid=ap.guid++}if(A=ap.data(O)){var G=A.events=A.events||{},K=A.handle;if(!K){A.handle=K=function(){return typeof ap!=="undefined"&&!ap.event.triggered?ap.event.handle.apply(K.elem,arguments):an}}K.elem=O;N=N.split(" ");for(var F,J=0,s;F=N[J++];){A=c?ap.extend({},c):{handler:Q,data:P};if(F.indexOf(".")>-1){s=F.split(".");F=s.shift();A.namespace=s.slice(0).sort().join(".")}else{s=[];A.namespace=""}A.type=F;A.guid=Q.guid;var w=G[F],L=ap.event.special[F]||{};if(!w){w=G[F]=[];if(!L.setup||L.setup.call(O,P,s,K)===false){if(O.addEventListener){O.addEventListener(F,K,false)}else{O.attachEvent&&O.attachEvent("on"+F,K)}}}if(L.add){L.add.call(O,A);if(!A.handler.guid){A.handler.guid=Q.guid}}w.push(A);ap.event.global[F]=true}O=null}}},global:{},remove:function(Q,O,T,R){if(!(Q.nodeType===3||Q.nodeType===8)){var c,A=0,G,K,F,J,s,w,N=ap.data(Q),L=N&&N.events;if(N&&L){if(O&&O.type){T=O.handler;O=O.type}if(!O||typeof O==="string"&&O.charAt(0)==="."){O=O||"";for(c in L){ap.event.remove(Q,c+O)}}else{for(O=O.split(" ");c=O[A++];){J=c;G=c.indexOf(".")<0;K=[];if(!G){K=c.split(".");c=K.shift();F=new RegExp("(^|\\.)"+ap.map(K.slice(0).sort(),h).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(s=L[c]){if(T){J=ap.event.special[c]||{};for(P=R||0;P<s.length;P++){w=s[P];if(T.guid===w.guid){if(G||F.test(w.namespace)){R==null&&s.splice(P--,1);J.remove&&J.remove.call(Q,w)}if(R!=null){break}}}if(s.length===0||R!=null&&s.length===1){if(!J.teardown||J.teardown.call(Q,K)===false){aK(Q,c,N.handle)}delete L[c]}}else{for(var P=0;P<s.length;P++){w=s[P];if(G||F.test(w.namespace)){ap.event.remove(Q,J,w.handler,P);s.splice(P--,1)}}}}}if(ap.isEmptyObject(L)){if(O=N.handle){O.elem=null}delete N.events;delete N.handle;ap.isEmptyObject(N)&&ap.removeData(Q)}}}}},trigger:function(K,J,N,L){var c=K.type||K;if(!L){K=typeof K==="object"?K[al]?K:ap.extend(ap.Event(c),K):ap.Event(c);if(c.indexOf("!")>=0){K.type=c=c.slice(0,-1);K.exclusive=true}if(!N){K.stopPropagation();ap.event.global[c]&&ap.each(ap.cache,function(){this.events&&this.events[c]&&ap.event.trigger(K,J,this.handle.elem)})}if(!N||N.nodeType===3||N.nodeType===8){return an}K.result=an;K.target=N;J=ap.makeArray(J);J.unshift(K)}K.currentTarget=N;(L=ap.data(N,"handle"))&&L.apply(N,J);L=N.parentNode||N.ownerDocument;try{if(!(N&&N.nodeName&&ap.noData[N.nodeName.toLowerCase()])){if(N["on"+c]&&N["on"+c].apply(N,J)===false){K.result=false}}}catch(s){}if(!K.isPropagationStopped()&&L){ap.event.trigger(K,J,L,true)}else{if(!K.isDefaultPrevented()){L=K.target;var A,G=ap.nodeName(L,"a")&&c==="click",w=ap.event.special[c]||{};if((!w._default||w._default.call(N,K)===false)&&!G&&!(L&&L.nodeName&&ap.noData[L.nodeName.toLowerCase()])){try{if(L[c]){if(A=L["on"+c]){L["on"+c]=null}ap.event.triggered=true;L[c]()}}catch(F){}if(A){L["on"+c]=A}ap.event.triggered=false}}}},handle:function(G){var F,s,J,w;G=arguments[0]=ap.event.fix(G||aj.event);G.currentTarget=this;F=G.type.indexOf(".")<0&&!G.exclusive;if(!F){s=G.type.split(".");G.type=s.shift();J=new RegExp("(^|\\.)"+s.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}w=ap.data(this,"events");s=w[G.type];if(w&&s){s=s.slice(0);w=0;for(var c=s.length;w<c;w++){var A=s[w];if(F||J.test(A.namespace)){G.handler=A.handler;G.data=A.data;G.handleObj=A;A=A.handler.apply(this,arguments);if(A!==an){G.result=A;if(A===false){G.preventDefault();G.stopPropagation()}}if(G.isImmediatePropagationStopped()){break}}}}return G.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(w){if(w[al]){return w}var s=w;w=ap.Event(s);for(var c=this.props.length,A;c;){A=this.props[--c];w[A]=s[A]}if(!w.target){w.target=w.srcElement||am}if(w.target.nodeType===3){w.target=w.target.parentNode}if(!w.relatedTarget&&w.fromElement){w.relatedTarget=w.fromElement===w.target?w.toElement:w.fromElement}if(w.pageX==null&&w.clientX!=null){s=am.documentElement;c=am.body;w.pageX=w.clientX+(s&&s.scrollLeft||c&&c.scrollLeft||0)-(s&&s.clientLeft||c&&c.clientLeft||0);w.pageY=w.clientY+(s&&s.scrollTop||c&&c.scrollTop||0)-(s&&s.clientTop||c&&c.clientTop||0)}if(!w.which&&(w.charCode||w.charCode===0?w.charCode:w.keyCode)){w.which=w.charCode||w.keyCode}if(!w.metaKey&&w.ctrlKey){w.metaKey=w.ctrlKey}if(!w.which&&w.button!==an){w.which=w.button&1?1:w.button&2?3:w.button&4?2:0}return w},guid:100000000,proxy:ap.proxy,special:{ready:{setup:ap.bindReady,teardown:ap.noop},live:{add:function(c){ap.event.add(this,c.origType,ap.extend({},c,{handler:a7}))},remove:function(w){var s=true,c=w.origType.replace(ag,"");ap.each(ap.data(this,"events").live||[],function(){if(c===this.origType.replace(ag,"")){return s=false}});s&&ap.event.remove(this,w.origType,a7)}},beforeunload:{setup:function(w,s,c){if(this.setInterval){this.onbeforeunload=c}return false},teardown:function(s,c){if(this.onbeforeunload===c){this.onbeforeunload=null}}}}};var aK=am.removeEventListener?function(w,s,c){w.removeEventListener(s,c,false)}:function(w,s,c){w.detachEvent("on"+s,c)};ap.Event=function(c){if(!this.preventDefault){return new ap.Event(c)}if(c&&c.type){this.originalEvent=c;this.type=c.type}else{this.type=c}this.timeStamp=ac();this[al]=true};ap.Event.prototype={preventDefault:function(){this.isDefaultPrevented=y;var c=this.originalEvent;if(c){c.preventDefault&&c.preventDefault();c.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=y;var c=this.originalEvent;if(c){c.stopPropagation&&c.stopPropagation();c.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=y;this.stopPropagation()},isDefaultPrevented:C,isPropagationStopped:C,isImmediatePropagationStopped:C};var aO=function(w){var s=w.relatedTarget;try{for(;s&&s!==this;){s=s.parentNode}if(s!==this){w.type=w.data;ap.event.handle.apply(this,arguments)}}catch(c){}},aP=function(c){c.type=c.data;ap.event.handle.apply(this,arguments)};ap.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(s,c){ap.event.special[s]={setup:function(w){ap.event.add(this,c,w&&w.selector?aP:aO,s)},teardown:function(w){ap.event.remove(this,c,w&&w.selector?aP:aO)}}});if(!ap.support.submitBubbles){ap.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){ap.event.add(this,"click.specialSubmit",function(w){var s=w.target,c=s.type;if((c==="submit"||c==="image")&&ap(s).closest("form").length){return a6("submit",this,arguments)}});ap.event.add(this,"keypress.specialSubmit",function(w){var s=w.target,c=s.type;if((c==="text"||c==="password")&&ap(s).closest("form").length&&w.keyCode===13){return a6("submit",this,arguments)}})}else{return false}},teardown:function(){ap.event.remove(this,".specialSubmit")}}}if(!ap.support.changeBubbles){var bh=/textarea|input|select/i,bi,aM=function(w){var s=w.type,c=w.value;if(s==="radio"||s==="checkbox"){c=w.checked}else{if(s==="select-multiple"){c=w.selectedIndex>-1?ap.map(w.options,function(A){return A.selected}).join("-"):""}else{if(w.nodeName.toLowerCase()==="select"){c=w.selectedIndex}}}return c},aD=function(A,w){var c=A.target,F,s;if(!(!bh.test(c.nodeName)||c.readOnly)){F=ap.data(c,"_change_data");s=aM(c);if(A.type!=="focusout"||c.type!=="radio"){ap.data(c,"_change_data",s)}if(!(F===an||s===F)){if(F!=null||s){A.type="change";return ap.event.trigger(A,w,c)}}}};ap.event.special.change={filters:{focusout:aD,click:function(w){var s=w.target,c=s.type;if(c==="radio"||c==="checkbox"||s.nodeName.toLowerCase()==="select"){return aD.call(this,w)}},keydown:function(w){var s=w.target,c=s.type;if(w.keyCode===13&&s.nodeName.toLowerCase()!=="textarea"||w.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple"){return aD.call(this,w)}},beforeactivate:function(c){c=c.target;ap.data(c,"_change_data",aM(c))}},setup:function(){if(this.type==="file"){return false}for(var c in bi){ap.event.add(this,c+".specialChange",bi[c])}return bh.test(this.nodeName)},teardown:function(){ap.event.remove(this,".specialChange");return bh.test(this.nodeName)}};bi=ap.event.special.change.filters}am.addEventListener&&ap.each({focus:"focusin",blur:"focusout"},function(w,s){function c(A){A=ap.event.fix(A);A.type=s;return ap.event.handle.call(this,A)}ap.event.special[s]={setup:function(){this.addEventListener(w,c,true)},teardown:function(){this.removeEventListener(w,c,true)}}});ap.each(["bind","one"],function(s,c){ap.fn[c]=function(w,K,A){if(typeof w==="object"){for(var J in w){this[c](J,K,w[J],A)}return this}if(ap.isFunction(K)){A=K;K=an}var F=c==="one"?ap.proxy(A,function(L){ap(this).unbind(L,F);return A.apply(this,arguments)}):A;if(w==="unload"&&c!=="one"){this.one(w,K,A)}else{J=0;for(var G=this.length;J<G;J++){ap.event.add(this[J],w,F,K)}}return this}});ap.fn.extend({unbind:function(w,s){if(typeof w==="object"&&!w.preventDefault){for(var c in w){this.unbind(c,w[c])}}else{c=0;for(var A=this.length;c<A;c++){ap.event.remove(this[c],w,s)}}return this},delegate:function(w,s,c,A){return this.live(s,c,A,w)},undelegate:function(w,s,c){return arguments.length===0?this.unbind("live"):this.die(s,null,c,w)},trigger:function(s,c){return this.each(function(){ap.event.trigger(s,c,this)})},triggerHandler:function(s,c){if(this[0]){s=ap.Event(s);s.preventDefault();s.stopPropagation();ap.event.trigger(s,c,this[0]);return s.result}},toggle:function(w){for(var s=arguments,c=1;c<s.length;){ap.proxy(w,s[c++])}return this.click(ap.proxy(w,function(F){var A=(ap.data(this,"lastToggle"+w.guid)||0)%c;ap.data(this,"lastToggle"+w.guid,A+1);F.preventDefault();return s[A].apply(this,arguments)||false}))},hover:function(s,c){return this.mouseenter(s).mouseleave(c||s)}});var aN={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};ap.each(["live","die"],function(s,c){ap.fn[c]=function(P,O,w,G){var K,N=0,J,L,A=G||this.selector,F=G?this:ap(this.context);if(ap.isFunction(O)){w=O;O=an}for(P=(P||"").split(" ");(K=P[N++])!=null;){G=ag.exec(K);J="";if(G){J=G[0];K=K.replace(ag,"")}if(K==="hover"){P.push("mouseenter"+J,"mouseleave"+J)}else{L=K;if(K==="focus"||K==="blur"){P.push(aN[K]+J);K+=J}else{K=(aN[K]||K)+J}c==="live"?F.each(function(){ap.event.add(this,aW(K,A),{data:O,selector:A,handler:w,origType:K,origHandler:w,preType:L})}):F.unbind(aW(K,A),w)}}return this}});ap.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(s,c){ap.fn[c]=function(w){return w?this.bind(c,w):this.trigger(c)};if(ap.attrFn){ap.attrFn[c]=true}});aj.attachEvent&&!aj.addEventListener&&aj.attachEvent("onunload",function(){for(var s in ap.cache){if(ap.cache[s].handle){try{ap.event.remove(ap.cache[s].handle.elem)}catch(c){}}}});(function(){function N(Y){for(var Z="",aa,ba=0;Y[ba];ba++){aa=Y[ba];if(aa.nodeType===3||aa.nodeType===4){Z+=aa.nodeValue}else{if(aa.nodeType!==8){Z+=N(aa.childNodes)}}}return Z}function L(bo,bk,bl,bm,Z,Y){Z=0;for(var aa=bm.length;Z<aa;Z++){var ba=bm[Z];if(ba){ba=ba[bo];for(var bn=false;ba;){if(ba.sizcache===bl){bn=bm[ba.sizset];break}if(ba.nodeType===1&&!Y){ba.sizcache=bl;ba.sizset=Z}if(ba.nodeName.toLowerCase()===bk){bn=ba;break}ba=ba[bo]}bm[Z]=bn}}}function P(bo,bk,bl,bm,Z,Y){Z=0;for(var aa=bm.length;Z<aa;Z++){var ba=bm[Z];if(ba){ba=ba[bo];for(var bn=false;ba;){if(ba.sizcache===bl){bn=bm[ba.sizset];break}if(ba.nodeType===1){if(!Y){ba.sizcache=bl;ba.sizset=Z}if(typeof bk!=="string"){if(ba===bk){bn=true;break}}else{if(F.filter(bk,[ba]).length>0){bn=ba;break}}}ba=ba[bo]}bm[Z]=bn}}}var O=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,Q=0,A=Object.prototype.toString,G=false,K=true;[0,0].sort(function(){K=false;return 0});var F=function(bt,bm,bp,bq){bp=bp||[];var aa=bm=bm||am;if(bm.nodeType!==1&&bm.nodeType!==9){return[]}if(!bt||typeof bt!=="string"){return bp}for(var Z=[],ba,bk,bs,br,Y=true,bl=X(bm),bn=bt;(O.exec(""),ba=O.exec(bn))!==null;){bn=ba[3];Z.push(ba[1]);if(ba[2]){br=ba[3];break}}if(Z.length>1&&c.exec(bt)){if(Z.length===2&&J.relative[Z[0]]){bk=s(Z[0]+Z[1],bm)}else{for(bk=J.relative[Z[0]]?[bm]:F(Z.shift(),bm);Z.length;){bt=Z.shift();if(J.relative[bt]){bt+=Z.shift()}bk=s(bt,bk)}}}else{if(!bq&&Z.length>1&&bm.nodeType===9&&!bl&&J.match.ID.test(Z[0])&&!J.match.ID.test(Z[Z.length-1])){ba=F.find(Z.shift(),bm,bl);bm=ba.expr?F.filter(ba.expr,ba.set)[0]:ba.set[0]}if(bm){ba=bq?{expr:Z.pop(),set:W(bq)}:F.find(Z.pop(),Z.length===1&&(Z[0]==="~"||Z[0]==="+")&&bm.parentNode?bm.parentNode:bm,bl);bk=ba.expr?F.filter(ba.expr,ba.set):ba.set;if(Z.length>0){bs=W(bk)}else{Y=false}for(;Z.length;){var bo=Z.pop();ba=bo;if(J.relative[bo]){ba=Z.pop()}else{bo=""}if(ba==null){ba=bm}J.relative[bo](bs,ba,bl)}}else{bs=[]}}bs||(bs=bk);bs||F.error(bo||bt);if(A.call(bs)==="[object Array]"){if(Y){if(bm&&bm.nodeType===1){for(bt=0;bs[bt]!=null;bt++){if(bs[bt]&&(bs[bt]===true||bs[bt].nodeType===1&&V(bm,bs[bt]))){bp.push(bk[bt])}}}else{for(bt=0;bs[bt]!=null;bt++){bs[bt]&&bs[bt].nodeType===1&&bp.push(bk[bt])}}}else{bp.push.apply(bp,bs)}}else{W(bs,bp)}if(br){F(br,aa,bp,bq);F.uniqueSort(bp)}return bp};F.uniqueSort=function(Y){if(R){G=K;Y.sort(R);if(G){for(var Z=1;Z<Y.length;Z++){Y[Z]===Y[Z-1]&&Y.splice(Z--,1)}}}return Y};F.matches=function(Y,Z){return F(Y,null,null,Z)};F.find=function(bo,bk,bl){var bm,Z;if(!bo){return[]}for(var Y=0,aa=J.order.length;Y<aa;Y++){var ba=J.order[Y];if(Z=J.leftMatch[ba].exec(bo)){var bn=Z[1];Z.splice(1,1);if(bn.substr(bn.length-1)!=="\\"){Z[1]=(Z[1]||"").replace(/\\/g,"");bm=J.find[ba](Z,bk,bl);if(bm!=null){bo=bo.replace(J.match[ba],"");break}}}}bm||(bm=bk.getElementsByTagName("*"));return{set:bm,expr:bo}};F.filter=function(bv,bn,bq,br){for(var ba=bv,aa=[],bk=bn,bl,bt,bs=bn&&bn[0]&&X(bn[0]);bv&&bn.length;){for(var Z in J.filter){if((bl=J.leftMatch[Z].exec(bv))!=null&&bl[2]){var bm=J.filter[Z],bo,bp;bp=bl[1];bt=false;bl.splice(1,1);if(bp.substr(bp.length-1)!=="\\"){if(bk===aa){aa=[]}if(J.preFilter[Z]){if(bl=J.preFilter[Z](bl,bk,bq,aa,br,bs)){if(bl===true){continue}}else{bt=bo=true}}if(bl){for(var Y=0;(bp=bk[Y])!=null;Y++){if(bp){bo=bm(bp,bl,Y,bk);var bu=br^!!bo;if(bq&&bo!=null){if(bu){bt=true}else{bk[Y]=false}}else{if(bu){aa.push(bp);bt=true}}}}}if(bo!==an){bq||(bk=aa);bv=bv.replace(J.match[Z],"");if(!bt){return[]}break}}}}if(bv===ba){if(bt==null){F.error(bv)}else{break}}ba=bv}return bk};F.error=function(Y){throw"Syntax error, unrecognized expression: "+Y};var J=F.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(Y){return Y.getAttribute("href")}},relative:{"+":function(Y,Z){var ba=typeof Z==="string",bk=ba&&!/\W/.test(Z);ba=ba&&!bk;if(bk){Z=Z.toLowerCase()}bk=0;for(var bl=Y.length,aa;bk<bl;bk++){if(aa=Y[bk]){for(;(aa=aa.previousSibling)&&aa.nodeType!==1;){}Y[bk]=ba||aa&&aa.nodeName.toLowerCase()===Z?aa||false:aa===Z}}ba&&F.filter(Z,Y,true)},">":function(Y,Z){var ba=typeof Z==="string";if(ba&&!/\W/.test(Z)){Z=Z.toLowerCase();for(var bk=0,bl=Y.length;bk<bl;bk++){var aa=Y[bk];if(aa){ba=aa.parentNode;Y[bk]=ba.nodeName.toLowerCase()===Z?ba:false}}}else{bk=0;for(bl=Y.length;bk<bl;bk++){if(aa=Y[bk]){Y[bk]=ba?aa.parentNode:aa.parentNode===Z}}ba&&F.filter(Z,Y,true)}},"":function(Y,Z,ba){var bk=Q++,bl=P;if(typeof Z==="string"&&!/\W/.test(Z)){var aa=Z=Z.toLowerCase();bl=L}bl("parentNode",Z,bk,Y,aa,ba)},"~":function(Y,Z,ba){var bk=Q++,bl=P;if(typeof Z==="string"&&!/\W/.test(Z)){var aa=Z=Z.toLowerCase();bl=L}bl("previousSibling",Z,bk,Y,aa,ba)}},find:{ID:function(Y,Z,aa){if(typeof Z.getElementById!=="undefined"&&!aa){return(Y=Z.getElementById(Y[1]))?[Y]:[]}},NAME:function(Y,Z){if(typeof Z.getElementsByName!=="undefined"){var aa=[];Z=Z.getElementsByName(Y[1]);for(var ba=0,bk=Z.length;ba<bk;ba++){Z[ba].getAttribute("name")===Y[1]&&aa.push(Z[ba])}return aa.length===0?null:aa}},TAG:function(Y,Z){return Z.getElementsByTagName(Y[1])}},preFilter:{CLASS:function(Y,Z,ba,bk,bl,aa){Y=" "+Y[1].replace(/\\/g,"")+" ";if(aa){return Y}aa=0;for(var bm;(bm=Z[aa])!=null;aa++){if(bm){if(bl^(bm.className&&(" "+bm.className+" ").replace(/[\t\n]/g," ").indexOf(Y)>=0)){ba||bk.push(bm)}else{if(ba){Z[aa]=false}}}}return false},ID:function(Y){return Y[1].replace(/\\/g,"")},TAG:function(Y){return Y[1].toLowerCase()},CHILD:function(Y){if(Y[1]==="nth"){var Z=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(Y[2]==="even"&&"2n"||Y[2]==="odd"&&"2n+1"||!/\D/.test(Y[2])&&"0n+"+Y[2]||Y[2]);Y[2]=Z[1]+(Z[2]||1)-0;Y[3]=Z[3]-0}Y[0]=Q++;return Y},ATTR:function(Y,Z,ba,bk,bl,aa){Z=Y[1].replace(/\\/g,"");if(!aa&&J.attrMap[Z]){Y[1]=J.attrMap[Z]}if(Y[2]==="~="){Y[4]=" "+Y[4]+" "}return Y},PSEUDO:function(Y,Z,aa,ba,bk){if(Y[1]==="not"){if((O.exec(Y[3])||"").length>1||/^\w/.test(Y[3])){Y[3]=F(Y[3],null,null,Z)}else{Y=F.filter(Y[3],Z,aa,true^bk);aa||ba.push.apply(ba,Y);return false}}else{if(J.match.POS.test(Y[0])||J.match.CHILD.test(Y[0])){return true}}return Y},POS:function(Y){Y.unshift(true);return Y}},filters:{enabled:function(Y){return Y.disabled===false&&Y.type!=="hidden"},disabled:function(Y){return Y.disabled===true},checked:function(Y){return Y.checked===true},selected:function(Y){return Y.selected===true},parent:function(Y){return !!Y.firstChild},empty:function(Y){return !Y.firstChild},has:function(Y,Z,aa){return !!F(aa[3],Y).length},header:function(Y){return/h\d/i.test(Y.nodeName)},text:function(Y){return"text"===Y.type},radio:function(Y){return"radio"===Y.type},checkbox:function(Y){return"checkbox"===Y.type},file:function(Y){return"file"===Y.type},password:function(Y){return"password"===Y.type},submit:function(Y){return"submit"===Y.type},image:function(Y){return"image"===Y.type},reset:function(Y){return"reset"===Y.type},button:function(Y){return"button"===Y.type||Y.nodeName.toLowerCase()==="button"},input:function(Y){return/input|select|textarea|button/i.test(Y.nodeName)}},setFilters:{first:function(Y,Z){return Z===0},last:function(Y,Z,aa,ba){return Z===ba.length-1},even:function(Y,Z){return Z%2===0},odd:function(Y,Z){return Z%2===1},lt:function(Y,Z,aa){return Z<aa[3]-0},gt:function(Y,Z,aa){return Z>aa[3]-0},nth:function(Y,Z,aa){return aa[3]-0===Z},eq:function(Y,Z,aa){return aa[3]-0===Z}},filter:{PSEUDO:function(Y,Z,ba,bk){var bl=Z[1],aa=J.filters[bl];if(aa){return aa(Y,ba,Z,bk)}else{if(bl==="contains"){return(Y.textContent||Y.innerText||N([Y])||"").indexOf(Z[3])>=0}else{if(bl==="not"){Z=Z[3];ba=0;for(bk=Z.length;ba<bk;ba++){if(Z[ba]===Y){return false}}return true}else{F.error("Syntax error, unrecognized expression: "+bl)}}}},CHILD:function(Y,Z){var ba=Z[1],bk=Y;switch(ba){case"only":case"first":for(;bk=bk.previousSibling;){if(bk.nodeType===1){return false}}if(ba==="first"){return true}bk=Y;case"last":for(;bk=bk.nextSibling;){if(bk.nodeType===1){return false}}return true;case"nth":ba=Z[2];var bl=Z[3];if(ba===1&&bl===0){return true}Z=Z[0];var aa=Y.parentNode;if(aa&&(aa.sizcache!==Z||!Y.nodeIndex)){var bm=0;for(bk=aa.firstChild;bk;bk=bk.nextSibling){if(bk.nodeType===1){bk.nodeIndex=++bm}}aa.sizcache=Z}Y=Y.nodeIndex-bl;return ba===0?Y===0:Y%ba===0&&Y/ba>=0}},ID:function(Y,Z){return Y.nodeType===1&&Y.getAttribute("id")===Z},TAG:function(Y,Z){return Z==="*"&&Y.nodeType===1||Y.nodeName.toLowerCase()===Z},CLASS:function(Y,Z){return(" "+(Y.className||Y.getAttribute("class"))+" ").indexOf(Z)>-1},ATTR:function(Y,Z){var aa=Z[1];Y=J.attrHandle[aa]?J.attrHandle[aa](Y):Y[aa]!=null?Y[aa]:Y.getAttribute(aa);aa=Y+"";var ba=Z[2];Z=Z[4];return Y==null?ba==="!=":ba==="="?aa===Z:ba==="*="?aa.indexOf(Z)>=0:ba==="~="?(" "+aa+" ").indexOf(Z)>=0:!Z?aa&&Y!==false:ba==="!="?aa!==Z:ba==="^="?aa.indexOf(Z)===0:ba==="$="?aa.substr(aa.length-Z.length)===Z:ba==="|="?aa===Z||aa.substr(0,Z.length+1)===Z+"-":false},POS:function(Y,Z,aa,ba){var bk=J.setFilters[Z[2]];if(bk){return bk(Y,aa,Z,ba)}}}},c=J.match.POS;for(var w in J.match){J.match[w]=new RegExp(J.match[w].source+/(?![^\[]*\])(?![^\(]*\))/.source);J.leftMatch[w]=new RegExp(/(^(?:.|\r|\n)*?)/.source+J.match[w].source.replace(/\\(\d+)/g,function(Y,Z){return"\\"+(Z-0+1)}))}var W=function(Y,Z){Y=Array.prototype.slice.call(Y,0);if(Z){Z.push.apply(Z,Y);return Z}return Y};try{Array.prototype.slice.call(am.documentElement.childNodes,0)}catch(T){W=function(Y,Z){Z=Z||[];if(A.call(Y)==="[object Array]"){Array.prototype.push.apply(Z,Y)}else{if(typeof Y.length==="number"){for(var aa=0,ba=Y.length;aa<ba;aa++){Z.push(Y[aa])}}else{for(aa=0;Y[aa];aa++){Z.push(Y[aa])}}}return Z}}var R;if(am.documentElement.compareDocumentPosition){R=function(Y,Z){if(!Y.compareDocumentPosition||!Z.compareDocumentPosition){if(Y==Z){G=true}return Y.compareDocumentPosition?-1:1}Y=Y.compareDocumentPosition(Z)&4?-1:Y===Z?0:1;if(Y===0){G=true}return Y}}else{if("sourceIndex" in am.documentElement){R=function(Y,Z){if(!Y.sourceIndex||!Z.sourceIndex){if(Y==Z){G=true}return Y.sourceIndex?-1:1}Y=Y.sourceIndex-Z.sourceIndex;if(Y===0){G=true}return Y}}else{if(am.createRange){R=function(Y,Z){if(!Y.ownerDocument||!Z.ownerDocument){if(Y==Z){G=true}return Y.ownerDocument?-1:1}var aa=Y.ownerDocument.createRange(),ba=Z.ownerDocument.createRange();aa.setStart(Y,0);aa.setEnd(Y,0);ba.setStart(Z,0);ba.setEnd(Z,0);Y=aa.compareBoundaryPoints(Range.START_TO_END,ba);if(Y===0){G=true}return Y}}}}(function(){var Y=am.createElement("div"),Z="script"+(new Date).getTime();Y.innerHTML="<a name='"+Z+"'/>";var aa=am.documentElement;aa.insertBefore(Y,aa.firstChild);if(am.getElementById(Z)){J.find.ID=function(bl,bk,ba){if(typeof bk.getElementById!=="undefined"&&!ba){return(bk=bk.getElementById(bl[1]))?bk.id===bl[1]||typeof bk.getAttributeNode!=="undefined"&&bk.getAttributeNode("id").nodeValue===bl[1]?[bk]:an:[]}};J.filter.ID=function(bl,bk){var ba=typeof bl.getAttributeNode!=="undefined"&&bl.getAttributeNode("id");return bl.nodeType===1&&ba&&ba.nodeValue===bk}}aa.removeChild(Y);aa=Y=null})();(function(){var Y=am.createElement("div");Y.appendChild(am.createComment(""));if(Y.getElementsByTagName("*").length>0){J.find.TAG=function(Z,aa){aa=aa.getElementsByTagName(Z[1]);if(Z[1]==="*"){Z=[];for(var ba=0;aa[ba];ba++){aa[ba].nodeType===1&&Z.push(aa[ba])}aa=Z}return aa}}Y.innerHTML="<a href='#'></a>";if(Y.firstChild&&typeof Y.firstChild.getAttribute!=="undefined"&&Y.firstChild.getAttribute("href")!=="#"){J.attrHandle.href=function(Z){return Z.getAttribute("href",2)}}Y=null})();am.querySelectorAll&&function(){var Y=F,Z=am.createElement("div");Z.innerHTML="<p class='TEST'></p>";if(!(Z.querySelectorAll&&Z.querySelectorAll(".TEST").length===0)){F=function(bl,bk,ba,bm){bk=bk||am;if(!bm&&bk.nodeType===9&&!X(bk)){try{return W(bk.querySelectorAll(bl),ba)}catch(bn){}}return Y(bl,bk,ba,bm)};for(var aa in Y){F[aa]=Y[aa]}Z=null}}();(function(){var Y=am.createElement("div");Y.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!Y.getElementsByClassName||Y.getElementsByClassName("e").length===0)){Y.lastChild.className="e";if(Y.getElementsByClassName("e").length!==1){J.order.splice(1,0,"CLASS");J.find.CLASS=function(Z,aa,ba){if(typeof aa.getElementsByClassName!=="undefined"&&!ba){return aa.getElementsByClassName(Z[1])}};Y=null}}})();var V=am.compareDocumentPosition?function(Y,Z){return !!(Y.compareDocumentPosition(Z)&16)}:function(Y,Z){return Y!==Z&&(Y.contains?Y.contains(Z):true)},X=function(Y){return(Y=(Y?Y.ownerDocument||Y:0).documentElement)?Y.nodeName!=="HTML":false},s=function(Y,Z){var ba=[],bk="",bl;for(Z=Z.nodeType?[Z]:Z;bl=J.match.PSEUDO.exec(Y);){bk+=bl[0];Y=Y.replace(J.match.PSEUDO,"")}Y=J.relative[Y]?Y+"*":Y;bl=0;for(var aa=Z.length;bl<aa;bl++){F(Y,Z[bl],ba)}return F.filter(bk,ba)};ap.find=F;ap.expr=F.selectors;ap.expr[":"]=ap.expr.filters;ap.unique=F.uniqueSort;ap.text=N;ap.isXMLDoc=X;ap.contains=V})();var j=/Until$/,ae=/^(?:parents|prevUntil|prevAll)/,g=/,/;H=Array.prototype.slice;var aE=function(w,s,c){if(ap.isFunction(s)){return ap.grep(w,function(F,G){return !!s.call(F,G,F)===c})}else{if(s.nodeType){return ap.grep(w,function(F){return F===s===c})}else{if(typeof s==="string"){var A=ap.grep(w,function(F){return F.nodeType===1});if(aA.test(s)){return ap.filter(s,A,!c)}else{s=ap.filter(s,A)}}}}return ap.grep(w,function(F){return ap.inArray(F,s)>=0===c})};ap.fn.extend({find:function(G){for(var F=this.pushStack("","find",G),s=0,J=0,w=this.length;J<w;J++){s=F.length;ap.find(G,this[J],F);if(J>0){for(var c=s;c<F.length;c++){for(var A=0;A<s;A++){if(F[A]===F[c]){F.splice(c--,1);break}}}}}return F},has:function(s){var c=ap(s);return this.filter(function(){for(var w=0,A=c.length;w<A;w++){if(ap.contains(this,c[w])){return true}}})},not:function(c){return this.pushStack(aE(this,c,false),"not",c)},filter:function(c){return this.pushStack(aE(this,c,true),"filter",c)},is:function(c){return !!c&&ap.filter(c,this).length>0},closest:function(J,G){if(ap.isArray(J)){var L=[],K=this[0],c,s={},A;if(K&&J.length){c=0;for(var F=J.length;c<F;c++){A=J[c];s[A]||(s[A]=ap.expr.match.POS.test(A)?ap(A,G||this.context):A)}for(;K&&K.ownerDocument&&K!==G;){for(A in s){c=s[A];if(c.jquery?c.index(K)>-1:ap(K).is(c)){L.push({selector:A,elem:K});delete s[A]}}K=K.parentNode}}return L}var w=ap.expr.match.POS.test(J)?ap(J,G||this.context):null;return this.map(function(O,N){for(;N&&N.ownerDocument&&N!==G;){if(w?w.index(N)>-1:ap(N).is(J)){return N}N=N.parentNode}return null})},index:function(c){if(!c||typeof c==="string"){return ap.inArray(this[0],c?ap(c):this.parent().children())}return ap.inArray(c.jquery?c[0]:c,this)},add:function(s,c){s=typeof s==="string"?ap(s,c||this.context):ap.makeArray(s);c=ap.merge(this.get(),s);return this.pushStack(aX(s[0])||aX(c[0])?c:ap.unique(c))},andSelf:function(){return this.add(this.prevObject)}});ap.each({parent:function(c){return(c=c.parentNode)&&c.nodeType!==11?c:null},parents:function(c){return ap.dir(c,"parentNode")},parentsUntil:function(w,s,c){return ap.dir(w,"parentNode",c)},next:function(c){return ap.nth(c,2,"nextSibling")},prev:function(c){return ap.nth(c,2,"previousSibling")},nextAll:function(c){return ap.dir(c,"nextSibling")},prevAll:function(c){return ap.dir(c,"previousSibling")},nextUntil:function(w,s,c){return ap.dir(w,"nextSibling",c)},prevUntil:function(w,s,c){return ap.dir(w,"previousSibling",c)},siblings:function(c){return ap.sibling(c.parentNode.firstChild,c)},children:function(c){return ap.sibling(c.firstChild)},contents:function(c){return ap.nodeName(c,"iframe")?c.contentDocument||c.contentWindow.document:ap.makeArray(c.childNodes)}},function(s,c){ap.fn[s]=function(w,F){var A=ap.map(this,c,w);j.test(s)||(F=w);if(F&&typeof F==="string"){A=ap.filter(F,A)}A=this.length>1?ap.unique(A):A;if((this.length>1||g.test(F))&&ae.test(s)){A=A.reverse()}return this.pushStack(A,s,H.call(arguments).join(","))}});ap.extend({filter:function(w,s,c){if(c){w=":not("+w+")"}return ap.find.matches(w,s)},dir:function(w,s,c){var A=[];for(w=w[s];w&&w.nodeType!==9&&(c===an||w.nodeType!==1||!ap(w).is(c));){w.nodeType===1&&A.push(w);w=w[s]}return A},nth:function(w,s,c){s=s||1;for(var A=0;w;w=w[c]){if(w.nodeType===1&&++A===s){break}}return w},sibling:function(w,s){for(var c=[];w;w=w.nextSibling){w.nodeType===1&&w!==s&&c.push(w)}return c}});var aB=/ jQuery\d+="(?:\d+|null)"/g,S=/^\s+/,r=/(<([\w:]+)[^>]*?)\/>/g,bf=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,aH=/<([\w:]+)/,bg=/<tbody/i,bd=/<|&#?\w+;/,a0=/<script|<object|<embed|<option|<style/i,a1=/checked\s*(?:[^=]|=\s*.checked.)/i,aI=function(w,s,c){return bf.test(c)?w:s+"></"+c+">"},ak={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,"",""]};ak.optgroup=ak.option;ak.tbody=ak.tfoot=ak.colgroup=ak.caption=ak.thead;ak.th=ak.td;if(!ap.support.htmlSerialize){ak._default=[1,"div<div>","</div>"]}ap.fn.extend({text:function(c){if(ap.isFunction(c)){return this.each(function(w){var s=ap(this);s.text(c.call(this,w,s.text()))})}if(typeof c!=="object"&&c!==an){return this.empty().append((this[0]&&this[0].ownerDocument||am).createTextNode(c))}return ap.text(this)},wrapAll:function(s){if(ap.isFunction(s)){return this.each(function(w){ap(this).wrapAll(s.call(this,w))})}if(this[0]){var c=ap(s,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){for(var w=this;w.firstChild&&w.firstChild.nodeType===1;){w=w.firstChild}return w}).append(this)}return this},wrapInner:function(c){if(ap.isFunction(c)){return this.each(function(s){ap(this).wrapInner(c.call(this,s))})}return this.each(function(){var w=ap(this),s=w.contents();s.length?s.wrapAll(c):w.append(c)})},wrap:function(c){return this.each(function(){ap(this).wrapAll(c)})},unwrap:function(){return this.parent().each(function(){ap.nodeName(this,"body")||ap(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.appendChild(c)})},prepend:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.insertBefore(c,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(s){this.parentNode.insertBefore(s,this)})}else{if(arguments.length){var c=ap(arguments[0]);c.push.apply(c,this.toArray());return this.pushStack(c,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(s){this.parentNode.insertBefore(s,this.nextSibling)})}else{if(arguments.length){var c=this.pushStack(this,"after",arguments);c.push.apply(c,ap(arguments[0]).toArray());return c}}},remove:function(w,s){for(var c=0,A;(A=this[c])!=null;c++){if(!w||ap.filter(w,[A]).length){if(!s&&A.nodeType===1){ap.cleanData(A.getElementsByTagName("*"));ap.cleanData([A])}A.parentNode&&A.parentNode.removeChild(A)}}return this},empty:function(){for(var s=0,c;(c=this[s])!=null;s++){for(c.nodeType===1&&ap.cleanData(c.getElementsByTagName("*"));c.firstChild;){c.removeChild(c.firstChild)}}return this},clone:function(s){var c=this.map(function(){if(!ap.support.noCloneEvent&&!ap.isXMLDoc(this)){var w=this.outerHTML,A=this.ownerDocument;if(!w){w=A.createElement("div");w.appendChild(this.cloneNode(true));w=w.innerHTML}return ap.clean([w.replace(aB,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(S,"")],A)[0]}else{return this.cloneNode(true)}});if(s===true){aU(this,c);aU(this.find("*"),c.find("*"))}return c},html:function(w){if(w===an){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(aB,""):null}else{if(typeof w==="string"&&!a0.test(w)&&(ap.support.leadingWhitespace||!S.test(w))&&!ak[(aH.exec(w)||["",""])[1].toLowerCase()]){w=w.replace(r,aI);try{for(var s=0,c=this.length;s<c;s++){if(this[s].nodeType===1){ap.cleanData(this[s].getElementsByTagName("*"));this[s].innerHTML=w}}}catch(A){this.empty().append(w)}}else{ap.isFunction(w)?this.each(function(G){var J=ap(this),F=J.html();J.empty().append(function(){return w.call(this,G,F)})}):this.empty().append(w)}}return this},replaceWith:function(c){if(this[0]&&this[0].parentNode){if(ap.isFunction(c)){return this.each(function(w){var s=ap(this),A=s.html();s.replaceWith(c.call(this,w,A))})}if(typeof c!=="string"){c=ap(c).detach()}return this.each(function(){var w=this.nextSibling,s=this.parentNode;ap(this).remove();w?ap(w).before(c):ap(s).append(c)})}else{return this.pushStack(ap(ap.isFunction(c)?c():c),"replaceWith",c)}},detach:function(c){return this.remove(c,true)},domManip:function(L,K,O){function N(P){return ap.nodeName(P,"table")?P.getElementsByTagName("tbody")[0]||P.appendChild(P.ownerDocument.createElement("tbody")):P}var c,w,F=L[0],J=[],A;if(!ap.support.checkClone&&arguments.length===3&&typeof F==="string"&&a1.test(F)){return this.each(function(){ap(this).domManip(L,K,O,true)})}if(ap.isFunction(F)){return this.each(function(Q){var P=ap(this);L[0]=F.call(this,Q,K?P.html():an);P.domManip(L,K,O)})}if(this[0]){c=F&&F.parentNode;c=ap.support.parentNode&&c&&c.nodeType===11&&c.childNodes.length===this.length?{fragment:c}:aV(L,this,J);A=c.fragment;if(w=A.childNodes.length===1?(A=A.firstChild):A.firstChild){K=K&&ap.nodeName(w,"tr");for(var G=0,s=this.length;G<s;G++){O.call(K?N(this[G],w):this[G],G>0||c.cacheable||this.length>1?A.cloneNode(true):A)}}J.length&&ap.each(J,aw)}return this}});ap.fragments={};ap.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(s,c){ap.fn[s]=function(w){var J=[];w=ap(w);var A=this.length===1&&this[0].parentNode;if(A&&A.nodeType===11&&A.childNodes.length===1&&w.length===1){w[c](this[0]);return this}else{A=0;for(var G=w.length;A<G;A++){var F=(A>0?this.clone(true):this).get();ap.fn[c].apply(ap(w[A]),F);J=J.concat(F)}return this.pushStack(J,s,w.selector)}}});ap.extend({clean:function(L,K,O,N){K=K||am;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||am}for(var c=[],w=0,F;(F=L[w])!=null;w++){if(typeof F==="number"){F+=""}if(F){if(typeof F==="string"&&!bd.test(F)){F=K.createTextNode(F)}else{if(typeof F==="string"){F=F.replace(r,aI);var J=(aH.exec(F)||["",""])[1].toLowerCase(),A=ak[J]||ak._default,G=A[0],s=K.createElement("div");for(s.innerHTML=A[1]+F+A[2];G--;){s=s.lastChild}if(!ap.support.tbody){G=bg.test(F);J=J==="table"&&!G?s.firstChild&&s.firstChild.childNodes:A[1]==="<table>"&&!G?s.childNodes:[];for(A=J.length-1;A>=0;--A){ap.nodeName(J[A],"tbody")&&!J[A].childNodes.length&&J[A].parentNode.removeChild(J[A])}}!ap.support.leadingWhitespace&&S.test(F)&&s.insertBefore(K.createTextNode(S.exec(F)[0]),s.firstChild);F=s.childNodes}}if(F.nodeType){c.push(F)}else{c=ap.merge(c,F)}}}if(O){for(w=0;c[w];w++){if(N&&ap.nodeName(c[w],"script")&&(!c[w].type||c[w].type.toLowerCase()==="text/javascript")){N.push(c[w].parentNode?c[w].parentNode.removeChild(c[w]):c[w])}else{c[w].nodeType===1&&c.splice.apply(c,[w+1,0].concat(ap.makeArray(c[w].getElementsByTagName("script"))));O.appendChild(c[w])}}}return c},cleanData:function(J){for(var G,L,K=ap.cache,c=ap.event.special,s=ap.support.deleteExpando,A=0,F;(F=J[A])!=null;A++){if(L=F[ap.expando]){G=K[L];if(G.events){for(var w in G.events){c[w]?ap.event.remove(F,w):aK(F,w,G.handle)}}if(s){delete F[ap.expando]}else{F.removeAttribute&&F.removeAttribute(ap.expando)}delete K[L]}}}});var be=/z-?index|font-?weight|opacity|zoom|line-?height/i,aF=/alpha\([^)]*\)/,aG=/opacity=([^)]*)/,a4=/float/i,a5=/-([a-z])/ig,bj=/([A-Z])/g,a=/^-?\d+(?:px)?$/i,m=/^-?\d/,n={position:"absolute",visibility:"hidden",display:"block"},k=["Left","Right"],z=["Top","Bottom"],v=am.defaultView&&am.defaultView.getComputedStyle,av=ap.support.cssFloat?"cssFloat":"styleFloat",a2=function(s,c){return c.toUpperCase()};ap.fn.css=function(s,c){return B(this,s,c,true,function(w,F,A){if(A===an){return ap.curCSS(w,F)}if(typeof A==="number"&&!be.test(F)){A+="px"}ap.style(w,F,A)})};ap.extend({style:function(A,w,c){if(!A||A.nodeType===3||A.nodeType===8){return an}if((w==="width"||w==="height")&&parseFloat(c)<0){c=an}var F=A.style||A,s=c!==an;if(!ap.support.opacity&&w==="opacity"){if(s){F.zoom=1;w=parseInt(c,10)+""==="NaN"?"":"alpha(opacity="+c*100+")";A=F.filter||ap.curCSS(A,"filter")||"";F.filter=aF.test(A)?A.replace(aF,w):w}return F.filter&&F.filter.indexOf("opacity=")>=0?parseFloat(aG.exec(F.filter)[1])/100+"":""}if(a4.test(w)){w=av}w=w.replace(a5,a2);if(s){F[w]=c}return F[w]},css:function(G,F,s,J){if(F==="width"||F==="height"){var w,c=F==="width"?k:z;function A(){w=F==="width"?G.offsetWidth:G.offsetHeight;J!=="border"&&ap.each(c,function(){J||(w-=parseFloat(ap.curCSS(G,"padding"+this,true))||0);if(J==="margin"){w+=parseFloat(ap.curCSS(G,"margin"+this,true))||0}else{w-=parseFloat(ap.curCSS(G,"border"+this+"Width",true))||0}})}G.offsetWidth!==0?A():ap.swap(G,n,A);return Math.max(0,Math.round(w))}return ap.curCSS(G,F,s)},curCSS:function(F,A,s){var G,w=F.style;if(!ap.support.opacity&&A==="opacity"&&F.currentStyle){G=aG.test(F.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return G===""?"1":G}if(a4.test(A)){A=av}if(!s&&w&&w[A]){G=w[A]}else{if(v){if(a4.test(A)){A="float"}A=A.replace(bj,"-$1").toLowerCase();w=F.ownerDocument.defaultView;if(!w){return null}if(F=w.getComputedStyle(F,null)){G=F.getPropertyValue(A)}if(A==="opacity"&&G===""){G="1"}}else{if(F.currentStyle){s=A.replace(a5,a2);G=F.currentStyle[A]||F.currentStyle[s];if(!a.test(G)&&m.test(G)){A=w.left;var c=F.runtimeStyle.left;F.runtimeStyle.left=F.currentStyle.left;w.left=s==="fontSize"?"1em":G||0;G=w.pixelLeft+"px";w.left=A;F.runtimeStyle.left=c}}}}return G},swap:function(A,w,c){var F={};for(var s in w){F[s]=A.style[s];A.style[s]=w[s]}c.call(A);for(s in w){A.style[s]=F[s]}}});if(ap.expr&&ap.expr.filters){ap.expr.filters.hidden=function(w){var s=w.offsetWidth,c=w.offsetHeight,A=w.nodeName.toLowerCase()==="tr";return s===0&&c===0&&!A?true:s>0&&c>0&&!A?false:ap.curCSS(w,"display")==="none"};ap.expr.filters.visible=function(c){return !ap.expr.filters.hidden(c)}}var x=ac(),D=/<script(.|\s)*?\/script>/gi,E=/select|textarea/i,a8=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,af=/=\?(&|$)/,a3=/\?/,l=/(\?|&)_=.*?(&|$)/,aY=/^(\w+:)?\/\/([^\/?#]+)/,u=/%20/g,t=ap.fn.load;ap.fn.extend({load:function(F,A,s){if(typeof F!=="string"){return t.call(this,F)}else{if(!this.length){return this}}var G=F.indexOf(" ");if(G>=0){var w=F.slice(G,F.length);F=F.slice(0,G)}G="GET";if(A){if(ap.isFunction(A)){s=A;A=null}else{if(typeof A==="object"){A=ap.param(A,ap.ajaxSettings.traditional);G="POST"}}}var c=this;ap.ajax({url:F,type:G,dataType:"html",data:A,complete:function(J,K){if(K==="success"||K==="notmodified"){c.html(w?ap("<div />").append(J.responseText.replace(D,"")).find(w):J.responseText)}s&&c.each(s,[J.responseText,K,J])}});return this},serialize:function(){return ap.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?ap.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||E.test(this.nodeName)||a8.test(this.type))}).map(function(s,c){s=ap(this).val();return s==null?null:ap.isArray(s)?ap.map(s,function(w){return{name:c.name,value:w}}):{name:c.name,value:s}}).get()}});ap.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(s,c){ap.fn[c]=function(w){return this.bind(c,w)}});ap.extend({get:function(w,s,c,A){if(ap.isFunction(s)){A=A||c;c=s;s=null}return ap.ajax({type:"GET",url:w,data:s,success:c,dataType:A})},getScript:function(s,c){return ap.get(s,null,c,"script")},getJSON:function(w,s,c){return ap.get(w,s,c,"json")},post:function(w,s,c,A){if(ap.isFunction(s)){A=A||c;c=s;s={}}return ap.ajax({type:"POST",url:w,data:s,success:c,dataType:A})},ajaxSetup:function(c){ap.extend(ap.ajaxSettings,c)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:aj.XMLHttpRequest&&(aj.location.protocol!=="file:"||!aj.ActiveXObject)?function(){return new aj.XMLHttpRequest}:function(){try{return new aj.ActiveXObject("Microsoft.XMLHTTP")}catch(c){}},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(Q){function P(){W.success&&W.success.call(F,L,J,ba);W.global&&R("ajaxSuccess",[ba,W])}function V(){W.complete&&W.complete.call(F,ba,J);W.global&&R("ajaxComplete",[ba,W]);W.global&&!--ap.active&&ap.event.trigger("ajaxStop")}function R(bl,bk){(W.context?ap(W.context):ap.event).trigger(bl,bk)}var W=ap.extend(true,{},ap.ajaxSettings,Q),A,J,L,F=Q&&Q.context||W,K=W.type.toUpperCase();if(W.data&&W.processData&&typeof W.data!=="string"){W.data=ap.param(W.data,W.traditional)}if(W.dataType==="jsonp"){if(K==="GET"){af.test(W.url)||(W.url+=(a3.test(W.url)?"&":"?")+(W.jsonp||"callback")+"=?")}else{if(!W.data||!af.test(W.data)){W.data=(W.data?W.data+"&":"")+(W.jsonp||"callback")+"=?"}}W.dataType="json"}if(W.dataType==="json"&&(W.data&&af.test(W.data)||af.test(W.url))){A=W.jsonpCallback||"jsonp"+x++;if(W.data){W.data=(W.data+"").replace(af,"="+A+"$1")}W.url=W.url.replace(af,"="+A+"$1");W.dataType="script";aj[A]=aj[A]||function(bl){L=bl;P();V();aj[A]=an;try{delete aj[A]}catch(bk){}aa&&aa.removeChild(Y)}}if(W.dataType==="script"&&W.cache===null){W.cache=false}if(W.cache===false&&K==="GET"){var c=ac(),w=W.url.replace(l,"$1_="+c+"$2");W.url=w+(w===W.url?(a3.test(W.url)?"&":"?")+"_="+c:"")}if(W.data&&K==="GET"){W.url+=(a3.test(W.url)?"&":"?")+W.data}W.global&&!ap.active++&&ap.event.trigger("ajaxStart");c=(c=aY.exec(W.url))&&(c[1]&&c[1]!==location.protocol||c[2]!==location.host);if(W.dataType==="script"&&K==="GET"&&c){var aa=am.getElementsByTagName("head")[0]||am.documentElement,Y=am.createElement("script");Y.src=W.url;if(W.scriptCharset){Y.charset=W.scriptCharset}if(!A){var X=false;Y.onload=Y.onreadystatechange=function(){if(!X&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){X=true;P();V();Y.onload=Y.onreadystatechange=null;aa&&Y.parentNode&&aa.removeChild(Y)}}}aa.insertBefore(Y,aa.firstChild);return an}var Z=false,ba=W.xhr();if(ba){W.username?ba.open(K,W.url,W.async,W.username,W.password):ba.open(K,W.url,W.async);try{if(W.data||Q&&Q.contentType){ba.setRequestHeader("Content-Type",W.contentType)}if(W.ifModified){ap.lastModified[W.url]&&ba.setRequestHeader("If-Modified-Since",ap.lastModified[W.url]);ap.etag[W.url]&&ba.setRequestHeader("If-None-Match",ap.etag[W.url])}c||ba.setRequestHeader("X-Requested-With","XMLHttpRequest");ba.setRequestHeader("Accept",W.dataType&&W.accepts[W.dataType]?W.accepts[W.dataType]+", */*":W.accepts._default)}catch(s){}if(W.beforeSend&&W.beforeSend.call(F,ba,W)===false){W.global&&!--ap.active&&ap.event.trigger("ajaxStop");ba.abort();return false}W.global&&R("ajaxSend",[ba,W]);var T=ba.onreadystatechange=function(bl){if(!ba||ba.readyState===0||bl==="abort"){Z||V();Z=true;if(ba){ba.onreadystatechange=ap.noop}}else{if(!Z&&ba&&(ba.readyState===4||bl==="timeout")){Z=true;ba.onreadystatechange=ap.noop;J=bl==="timeout"?"timeout":!ap.httpSuccess(ba)?"error":W.ifModified&&ap.httpNotModified(ba,W.url)?"notmodified":"success";var bk;if(J==="success"){try{L=ap.httpData(ba,W.dataType,W)}catch(bm){J="parsererror";bk=bm}}if(J==="success"||J==="notmodified"){A||P()}else{ap.handleError(W,ba,J,bk)}V();bl==="timeout"&&ba.abort();if(W.async){ba=null}}}};try{var G=ba.abort;ba.abort=function(){ba&&G.call(ba);T("abort")}}catch(N){}W.async&&W.timeout>0&&setTimeout(function(){ba&&!Z&&T("timeout")},W.timeout);try{ba.send(K==="POST"||K==="PUT"||K==="DELETE"?W.data:null)}catch(O){ap.handleError(W,ba,null,O);V()}W.async||T();return ba}},handleError:function(w,s,c,A){if(w.error){w.error.call(w.context||w,s,c,A)}if(w.global){(w.context?ap(w.context):ap.event).trigger("ajaxError",[s,w,A])}},active:0,httpSuccess:function(s){try{return !s.status&&location.protocol==="file:"||s.status>=200&&s.status<300||s.status===304||s.status===1223||s.status===0}catch(c){}return false},httpNotModified:function(w,s){var c=w.getResponseHeader("Last-Modified"),A=w.getResponseHeader("Etag");if(c){ap.lastModified[s]=c}if(A){ap.etag[s]=A}return w.status===304||w.status===0},httpData:function(A,w,c){var F=A.getResponseHeader("content-type")||"",s=w==="xml"||!w&&F.indexOf("xml")>=0;A=s?A.responseXML:A.responseText;s&&A.documentElement.nodeName==="parsererror"&&ap.error("parsererror");if(c&&c.dataFilter){A=c.dataFilter(A,w)}if(typeof A==="string"){if(w==="json"||!w&&F.indexOf("json")>=0){A=ap.parseJSON(A)}else{if(w==="script"||!w&&F.indexOf("javascript")>=0){ap.globalEval(A)}}}return A},param:function(F,A){function s(J,K){if(ap.isArray(K)){ap.each(K,function(N,L){A||/\[\]$/.test(J)?G(J,L):s(J+"["+(typeof L==="object"||ap.isArray(L)?N:"")+"]",L)})}else{!A&&K!=null&&typeof K==="object"?ap.each(K,function(N,L){s(J+"["+N+"]",L)}):G(J,K)}}function G(J,K){K=ap.isFunction(K)?K():K;w[w.length]=encodeURIComponent(J)+"="+encodeURIComponent(K)}var w=[];if(A===an){A=ap.ajaxSettings.traditional}if(ap.isArray(F)||F.jquery){ap.each(F,function(){G(this.name,this.value)})}else{for(var c in F){s(c,F[c])}}return w.join("&").replace(u,"+")}});var ai={},aT=/toggle|show|hide/,q=/^([+-]=)?([\d+-.]+)(.*)$/,U,p=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];ap.fn.extend({show:function(A,w){if(A||A===0){return this.animate(ad("show",3),A,w)}else{A=0;for(w=this.length;A<w;A++){var c=ap.data(this[A],"olddisplay");this[A].style.display=c||"";if(ap.css(this[A],"display")==="none"){c=this[A].nodeName;var F;if(ai[c]){F=ai[c]}else{var s=ap("<"+c+" />").appendTo("body");F=s.css("display");if(F==="none"){F="block"}s.remove();ai[c]=F}ap.data(this[A],"olddisplay",F)}}A=0;for(w=this.length;A<w;A++){this[A].style.display=ap.data(this[A],"olddisplay")||""}return this}},hide:function(w,s){if(w||w===0){return this.animate(ad("hide",3),w,s)}else{w=0;for(s=this.length;w<s;w++){var c=ap.data(this[w],"olddisplay");!c&&c!=="none"&&ap.data(this[w],"olddisplay",ap.css(this[w],"display"))}w=0;for(s=this.length;w<s;w++){this[w].style.display="none"}return this}},_toggle:ap.fn.toggle,toggle:function(w,s){var c=typeof w==="boolean";if(ap.isFunction(w)&&ap.isFunction(s)){this._toggle.apply(this,arguments)}else{w==null||c?this.each(function(){var A=c?w:ap(this).is(":hidden");ap(this)[A?"show":"hide"]()}):this.animate(ad("toggle",3),w,s)}return this},fadeTo:function(w,s,c){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:s},w,c)},animate:function(A,w,c,F){var s=ap.speed(w,c,F);if(ap.isEmptyObject(A)){return this.each(s.complete)}return this[s.queue===false?"each":"queue"](function(){var L=ap.extend({},s),G,K=this.nodeType===1&&ap(this).is(":hidden"),N=this;for(G in A){var J=G.replace(a5,a2);if(G!==J){A[J]=A[G];delete A[G];G=J}if(A[G]==="hide"&&K||A[G]==="show"&&!K){return L.complete.call(this)}if((G==="height"||G==="width")&&this.style){L.display=ap.css(this,"display");L.overflow=this.style.overflow}if(ap.isArray(A[G])){(L.specialEasing=L.specialEasing||{})[G]=A[G][1];A[G]=A[G][0]}}if(L.overflow!=null){this.style.overflow="hidden"}L.curAnim=ap.extend({},A);ap.each(A,function(O,T){var Q=new ap.fx(N,L,O);if(aT.test(T)){Q[T==="toggle"?K?"show":"hide":T](A)}else{var V=q.exec(T),R=Q.cur(true)||0;if(V){T=parseFloat(V[2]);var P=V[3]||"px";if(P!=="px"){N.style[O]=(T||1)+P;R=(T||1)/Q.cur(true)*R;N.style[O]=R+P}if(V[1]){T=(V[1]==="-="?-1:1)*T+R}Q.custom(R,T,P)}else{Q.custom(R,T,"")}}});return true})},stop:function(w,s){var c=ap.timers;w&&this.queue([]);this.each(function(){for(var A=c.length-1;A>=0;A--){if(c[A].elem===this){s&&c[A](true);c.splice(A,1)}}});s||this.dequeue();return this}});ap.each({slideDown:ad("show",1),slideUp:ad("hide",1),slideToggle:ad("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(s,c){ap.fn[s]=function(w,A){return this.animate(c,w,A)}});ap.extend({speed:function(w,s,c){var A=w&&typeof w==="object"?w:{complete:c||!c&&s||ap.isFunction(w)&&w,duration:w,easing:c&&s||s&&!ap.isFunction(s)&&s};A.duration=ap.fx.off?0:typeof A.duration==="number"?A.duration:ap.fx.speeds[A.duration]||ap.fx.speeds._default;A.old=A.complete;A.complete=function(){A.queue!==false&&ap(this).dequeue();ap.isFunction(A.old)&&A.old.call(this)};return A},easing:{linear:function(w,s,c,A){return c+A*w},swing:function(w,s,c,A){return(-Math.cos(w*Math.PI)/2+0.5)*A+c}},timers:[],fx:function(w,s,c){this.options=s;this.elem=w;this.prop=c;if(!s.orig){s.orig={}}}});ap.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(ap.fx.step[this.prop]||ap.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(c){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}return(c=parseFloat(ap.css(this.elem,this.prop,c)))&&c>-10000?c:parseFloat(ap.curCSS(this.elem,this.prop))||0},custom:function(A,w,c){function F(G){return s.step(G)}this.startTime=ac();this.start=A;this.end=w;this.unit=c||this.unit||"px";this.now=this.start;this.pos=this.state=0;var s=this;F.elem=this.elem;if(F()&&ap.timers.push(F)&&!U){U=setInterval(ap.fx.tick,13)}},show:function(){this.options.orig[this.prop]=ap.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());ap(this.elem).show()},hide:function(){this.options.orig[this.prop]=ap.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(A){var w=ac(),c=true;if(A||w>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){c=false}}if(c){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;A=ap.data(this.elem,"olddisplay");this.elem.style.display=A?A:this.options.display;if(ap.css(this.elem,"display")==="none"){this.elem.style.display="block"}}this.options.hide&&ap(this.elem).hide();if(this.options.hide||this.options.show){for(var s in this.options.curAnim){ap.style(this.elem,s,this.options.orig[s])}}this.options.complete.call(this.elem)}return false}else{s=w-this.startTime;this.state=s/this.options.duration;A=this.options.easing||(ap.easing.swing?"swing":"linear");this.pos=ap.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||A](this.state,s,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};ap.extend(ap.fx,{tick:function(){for(var s=ap.timers,c=0;c<s.length;c++){s[c]()||s.splice(c--,1)}s.length||ap.fx.stop()},stop:function(){clearInterval(U);U=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(c){ap.style(c.elem,"opacity",c.now)},_default:function(c){if(c.elem.style&&c.elem.style[c.prop]!=null){c.elem.style[c.prop]=(c.prop==="width"||c.prop==="height"?Math.max(0,c.now):c.now)+c.unit}else{c.elem[c.prop]=c.now}}}});if(ap.expr&&ap.expr.filters){ap.expr.filters.animated=function(c){return ap.grep(ap.timers,function(s){return c===s.elem}).length}}ap.fn.offset="getBoundingClientRect" in am.documentElement?function(w){var s=this[0];if(w){return this.each(function(F){ap.offset.setOffset(this,w,F)})}if(!s||!s.ownerDocument){return null}if(s===s.ownerDocument.body){return ap.offset.bodyOffset(s)}var c=s.getBoundingClientRect(),A=s.ownerDocument;s=A.body;A=A.documentElement;return{top:c.top+(self.pageYOffset||ap.support.boxModel&&A.scrollTop||s.scrollTop)-(A.clientTop||s.clientTop||0),left:c.left+(self.pageXOffset||ap.support.boxModel&&A.scrollLeft||s.scrollLeft)-(A.clientLeft||s.clientLeft||0)}}:function(K){var J=this[0];if(K){return this.each(function(O){ap.offset.setOffset(this,K,O)})}if(!J||!J.ownerDocument){return null}if(J===J.ownerDocument.body){return ap.offset.bodyOffset(J)}ap.offset.initialize();var N=J.offsetParent,L=J,c=J.ownerDocument,s,A=c.documentElement,G=c.body;L=(c=c.defaultView)?c.getComputedStyle(J,null):J.currentStyle;for(var w=J.offsetTop,F=J.offsetLeft;(J=J.parentNode)&&J!==G&&J!==A;){if(ap.offset.supportsFixedPosition&&L.position==="fixed"){break}s=c?c.getComputedStyle(J,null):J.currentStyle;w-=J.scrollTop;F-=J.scrollLeft;if(J===N){w+=J.offsetTop;F+=J.offsetLeft;if(ap.offset.doesNotAddBorder&&!(ap.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.nodeName))){w+=parseFloat(s.borderTopWidth)||0;F+=parseFloat(s.borderLeftWidth)||0}L=N;N=J.offsetParent}if(ap.offset.subtractsBorderForOverflowNotVisible&&s.overflow!=="visible"){w+=parseFloat(s.borderTopWidth)||0;F+=parseFloat(s.borderLeftWidth)||0}L=s}if(L.position==="relative"||L.position==="static"){w+=G.offsetTop;F+=G.offsetLeft}if(ap.offset.supportsFixedPosition&&L.position==="fixed"){w+=Math.max(A.scrollTop,G.scrollTop);F+=Math.max(A.scrollLeft,G.scrollLeft)}return{top:w,left:F}};ap.offset={initialize:function(){var F=am.body,A=am.createElement("div"),s,G,w,c=parseFloat(ap.curCSS(F,"marginTop",true))||0;ap.extend(A.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});A.innerHTML="<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>";F.insertBefore(A,F.firstChild);s=A.firstChild;G=s.firstChild;w=s.nextSibling.firstChild.firstChild;this.doesNotAddBorder=G.offsetTop!==5;this.doesAddBorderForTableAndCells=w.offsetTop===5;G.style.position="fixed";G.style.top="20px";this.supportsFixedPosition=G.offsetTop===20||G.offsetTop===15;G.style.position=G.style.top="";s.style.overflow="hidden";s.style.position="relative";this.subtractsBorderForOverflowNotVisible=G.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=F.offsetTop!==c;F.removeChild(A);ap.offset.initialize=ap.noop},bodyOffset:function(w){var s=w.offsetTop,c=w.offsetLeft;ap.offset.initialize();if(ap.offset.doesNotIncludeMarginInBodyOffset){s+=parseFloat(ap.curCSS(w,"marginTop",true))||0;c+=parseFloat(ap.curCSS(w,"marginLeft",true))||0}return{top:s,left:c}},setOffset:function(G,F,s){if(/static/.test(ap.curCSS(G,"position"))){G.style.position="relative"}var J=ap(G),w=J.offset(),c=parseInt(ap.curCSS(G,"top",true),10)||0,A=parseInt(ap.curCSS(G,"left",true),10)||0;if(ap.isFunction(F)){F=F.call(G,s,w)}s={top:F.top-w.top+c,left:F.left-w.left+A};"using" in F?F.using.call(G,s):J.css(s)}};ap.fn.extend({position:function(){if(!this[0]){return null}var w=this[0],s=this.offsetParent(),c=this.offset(),A=/^body|html$/i.test(s[0].nodeName)?{top:0,left:0}:s.offset();c.top-=parseFloat(ap.curCSS(w,"marginTop",true))||0;c.left-=parseFloat(ap.curCSS(w,"marginLeft",true))||0;A.top+=parseFloat(ap.curCSS(s[0],"borderTopWidth",true))||0;A.left+=parseFloat(ap.curCSS(s[0],"borderLeftWidth",true))||0;return{top:c.top-A.top,left:c.left-A.left}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent||am.body;c&&!/^body|html$/i.test(c.nodeName)&&ap.css(c,"position")==="static";){c=c.offsetParent}return c})}});ap.each(["Left","Top"],function(w,s){var c="scroll"+s;ap.fn[c]=function(G){var A=this[0],F;if(!A){return null}if(G!==an){return this.each(function(){if(F=aZ(this)){F.scrollTo(!w?G:ap(F).scrollLeft(),w?G:ap(F).scrollTop())}else{this[c]=G}})}else{return(F=aZ(A))?"pageXOffset" in F?F[w?"pageYOffset":"pageXOffset"]:ap.support.boxModel&&F.document.documentElement[c]||F.document.body[c]:A[c]}}});ap.each(["Height","Width"],function(w,s){var c=s.toLowerCase();ap.fn["inner"+s]=function(){return this[0]?ap.css(this[0],c,false,"padding"):null};ap.fn["outer"+s]=function(A){return this[0]?ap.css(this[0],c,false,A?"margin":"border"):null};ap.fn[c]=function(F){var A=this[0];if(!A){return F==null?null:this}if(ap.isFunction(F)){return this.each(function(J){var G=ap(this);G[c](F.call(this,J,G[c]()))})}return"scrollTo" in A&&A.document?A.document.compatMode==="CSS1Compat"&&A.document.documentElement["client"+s]||A.document.body["client"+s]:A.nodeType===9?Math.max(A.documentElement["client"+s],A.body["scroll"+s],A.documentElement["scroll"+s],A.body["offset"+s],A.documentElement["offset"+s]):F===an?ap.css(A,c):this.css(c,typeof F==="string"?F:F+"px")}});aj.jQuery=aj.$=ap})(window);(function(a){a.fn.onImagesLoad=function(d){var b=this;b.opts=a.extend({},a.fn.onImagesLoad.defaults,d);b.bindEvents=function(j,h,g){if(j.length===0){b.opts.callbackIfNoImagesExist&&g&&g(h)}else{var k=[];j.jquery||(j=a(j));j.each(function(e){var f=this.src;if(!a.browser.msie){this.src=""}a(this).bind("load",function(){if(jQuery.inArray(e,k)<0){k.push(e);k.length==j.length&&g&&g.call(h,h)}});if(a.browser.msie){if(this.complete||this.complete===undefined){this.src=f}}else{this.src=f}})}};var c=[];b.each(function(){if(b.opts.itemCallback){var e;e=this.tagName=="IMG"?this:a("img",this);b.bindEvents(e,this,b.opts.itemCallback)}if(b.opts.selectorCallback){this.tagName=="IMG"?c.push(this):a("img",this).each(function(){c.push(this)})}});b.opts.selectorCallback&&b.bindEvents(c,this,b.opts.selectorCallback);return b.each(function(){})};a.fn.onImagesLoad.defaults={selectorCallback:null,itemCallback:null,callbackIfNoImagesExist:false}})(jQuery);(function(h){var f,b;var e=0;var j=32;var a;h.fn.TextAreaResizer=function(){return this.each(function(){f=h(this).addClass("processed"),b=null;h(this).wrap('<div class="resizable-textarea"><span></span></div>').parent().append(h('<div class="grippie"></div>').bind("mousedown",{el:this},d));var l=h("div.grippie",h(this).parent())[0];l.style.marginRight=(l.offsetWidth-h(this)[0].offsetWidth)+"px"})};function d(l){f=h(l.data.el);f.blur();e=c(l).y;b=f.height()-e;f.css("opacity",0.25);h(document).mousemove(k).mouseup(g);return false}function k(l){var n=c(l).y;var m=b+n;if(e>=(n)){m-=5}e=n;m=Math.max(j,m);f.height(m+"px");if(m<j){g(l)}return false}function g(l){h(document).unbind("mousemove",k).unbind("mouseup",g);f.css("opacity",1);f.focus();f=null;b=null;e=0}function c(l){return{x:l.clientX+document.documentElement.scrollLeft,y:l.clientY+document.documentElement.scrollTop}}})(jQuery);var Attacklab=Attacklab||{};Attacklab.showdown=Attacklab.showdown||{};Attacklab.showdown.converter=function(){var d;var C;var B;var u=0;this.makeHtml=function(J){d=new Array();C=new Array();B=new Array();J=J.replace(/~/g,"~T");J=J.replace(/\$/g,"~D");J=J.replace(/\r\n/g,"\n");J=J.replace(/\r/g,"\n");J="\n\n"+J+"\n\n";J=w(J);J=J.replace(/^[ \t]+$/mg,"");J=A(J);J=D(J);J=p(J);J=G(J);J=J.replace(/~D/g,"$$");J=J.replace(/~T/g,"~");return J};var D=function(J){var J=J.replace(/^[ ]{0,3}\[(.+)\]:[ \t]*\n?[ \t]*<?(\S+?)>?[ \t]*\n?[ \t]*(?:(\n*)["(](.+?)[")][ \t]*)?(?:\n+)/gm,function(N,M,O,K,L){M=M.toLowerCase();d[M]=y(O);if(K){return K+L}else{if(L){C[M]=L.replace(/"/g,"&quot;")}}return""});return J};var A=function(J){J=J.replace(/\n/g,"\n\n");var K="p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del";var L="p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math";J=J.replace(/^(<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del)\b[^\r]*?\n<\/\2>[ \t]*(?=\n+))/gm,n);J=J.replace(/^(<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math)\b[^\r]*?.*<\/\2>[ \t]*(?=\n+)\n)/gm,n);J=J.replace(/(\n[ ]{0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,n);J=J.replace(/(\n\n[ ]{0,3}<!(--[^\r]*?--\s*)+>[ \t]*(?=\n{2,}))/g,n);J=J.replace(/(?:\n\n)([ ]{0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,n);J=J.replace(/\n\n/g,"\n");return J};var n=function(L,K){var J=K;J=J.replace(/\n\n/g,"\n");J=J.replace(/^\n/,"");J=J.replace(/\n+$/g,"");J="\n\n~K"+(B.push(J)-1)+"K\n\n";return J};var p=function(K){K=b(K);var J=I("<hr />");K=K.replace(/^[ ]{0,2}([ ]?\*[ ]?){3,}[ \t]*$/gm,J);K=K.replace(/^[ ]{0,2}([ ]?-[ ]?){3,}[ \t]*$/gm,J);K=K.replace(/^[ ]{0,2}([ ]?_[ ]?){3,}[ \t]*$/gm,J);K=l(K);K=o(K);K=r(K);K=A(K);K=e(K);return K};var t=function(J){J=j(J);J=c(J);J=z(J);J=s(J);J=k(J);J=E(J);J=y(J);J=q(J);J=J.replace(/  +\n/g," <br />\n");return J};var c=function(K){var J=/(<[a-z\/!$]("[^"]*"|'[^']*'|[^'">])*>|<!(--.*?--\s*)+>)/gi;K=K.replace(J,function(M){var L=M.replace(/(.)<\/?code>(?=.)/g,"$1`");L=x(L,"\\`*_");return L});return K};var k=function(J){J=J.replace(/(\[((?:\[[^\]]*\]|[^\[\]])*)\][ ]?(?:\n[ ]*)?\[(.*?)\])()()()()/g,f);J=J.replace(/(\[((?:\[[^\]]*\]|[^\[\]])*)\]\([ \t]*()<?(.*?)>?[ \t]*((['"])(.*?)\6[ \t]*)?\))/g,f);J=J.replace(/(\[([^\[\]]+)\])()()()()()/g,f);return J};var f=function(Q,J,L,O,S,V,W,R){if(R==undefined){R=""}var P=J;var U=L;var K=O.toLowerCase();var T=S;var N=R;if(T==""){if(K==""){K=U.toLowerCase().replace(/ ?\n/g," ")}T="#"+K;if(d[K]!=undefined){T=d[K];if(C[K]!=undefined){N=C[K]}}else{if(P.search(/\(\s*\)$/m)>-1){T=""}else{return P}}}T=x(T,"*_");var M='<a href="'+T+'"';if(N!=""){N=N.replace(/"/g,"&quot;");N=x(N,"*_");M+=' title="'+N+'"'}M+=">"+U+"</a>";return M};var s=function(J){J=J.replace(/(!\[(.*?)\][ ]?(?:\n[ ]*)?\[(.*?)\])()()()()/g,a);J=J.replace(/(!\[(.*?)\]\s?\([ \t]*()<?(\S+?)>?[ \t]*((['"])(.*?)\6[ \t]*)?\))/g,a);return J};var g;var a=function(R,J,M,P,T,V,W,S){var Q=J;var K=M;var L=P.toLowerCase();var U=T;var O=S;if(!O){O=""}if(U==""){if(L==""){L=K.toLowerCase().replace(/ ?\n/g," ")}U="#"+L;if(d[L]!=undefined){U=d[L];if(C[L]!=undefined){O=C[L]}}else{return Q}}K=K.replace(/"/g,"&quot;");U=x(U,"*_");var N='<img style="width:100px" src="'+U+'" alt="'+K+'"';O=O.replace(/"/g,"&quot;");O=x(O,"*_");N+=' title="'+O+'"';N+=" />";return N};var b=function(J){J=J.replace(/^(.+)[ \t]*\n=+[ \t]*\n+/gm,function(L,K){return I("<h1>"+t(K)+"</h1>")});J=J.replace(/^(.+)[ \t]*\n-+[ \t]*\n+/gm,function(K,L){return I("<h2>"+t(L)+"</h2>")});J=J.replace(/^(\#{1,6})[ \t]*(.+?)[ \t]*\#*\n+/gm,function(M,K,N){var L=K.length;return I("<h"+L+">"+t(N)+"</h"+L+">")});return J};var v;var l=function(J){J+="~0";var K=/^(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm;if(u){J=J.replace(K,function(P,O,Q){var N=O;var L=(Q.search(/[*+-]/g)>-1)?"ul":"ol";N=N.replace(/\n{2,}/g,"\n\n\n");var M=v(N);M=M.replace(/\s+$/,"");M="<"+L+">"+M+"</"+L+">\n";return M})}else{K=/(\n\n|^\n?)(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/g;J=J.replace(K,function(R,L,N,Q){var S=L;var M=N;var P=(Q.search(/[*+-]/g)>-1)?"ul":"ol";var M=M.replace(/\n{2,}/g,"\n\n\n");var O=v(M);O=S+"<"+P+">\n"+O+"</"+P+">\n";return O})}J=J.replace(/~0/,"");return J};v=function(J){u++;J=J.replace(/\n{2,}$/,"\n");J+="~0";J=J.replace(/(\n)?(^[ \t]*)([*+-]|\d+[.])[ \t]+([^\r]+?(\n{1,2}))(?=\n*(~0|\2([*+-]|\d+[.])[ \t]+))/gm,function(O,K,L,M,Q){var R=Q;var N=K;var P=L;if(N||(R.search(/\n{2,}/)>-1)){R=p(H(R))}else{R=l(H(R));R=R.replace(/\n$/,"");R=t(R)}return"<li>"+R+"</li>\n"});J=J.replace(/~0/g,"");u--;return J};var o=function(J){J+="~0";J=J.replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=~0))/g,function(N,M,O){var K=M;var L=O;K=h(H(K));K=w(K);K=K.replace(/^\n+/g,"");K=K.replace(/\n+$/g,"");K="<pre><code>"+K+"\n</code></pre>";return I(K)+L});J=J.replace(/~0/,"");return J};var I=function(J){J=J.replace(/(^\n+|\n+$)/g,"");return"\n\n~K"+(B.push(J)-1)+"K\n\n"};var j=function(J){J=J.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(O,N,P,L,M){var K=L;K=K.replace(/^([ \t]*)/g,"");K=K.replace(/[ \t]*$/g,"");K=h(K);return N+"<code>"+K+"</code>"});return J};var h=function(J){J=J.replace(/&/g,"&amp;");J=J.replace(/</g,"&lt;");J=J.replace(/>/g,"&gt;");J=x(J,"*_{}[]\\",false);return J};var q=function(J){J=J.replace(/(\*\*|__)(?=\S)([^\r]*?\S[\*_]*)\1/g,"<strong>$2</strong>");J=J.replace(/(\*|_)(?=\S)([^\r]*?\S)\1/g,"<em>$2</em>");return J};var r=function(J){J=J.replace(/((^[ \t]*>[ \t]?.+\n(.+\n)*\n*)+)/gm,function(M,K){var L=K;L=L.replace(/^[ \t]*>[ \t]?/gm,"~0");L=L.replace(/~0/g,"");L=L.replace(/^[ \t]+$/gm,"");L=p(L);L=L.replace(/(^|\n)/g,"$1  ");L=L.replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,function(P,O){var N=O;N=N.replace(/^  /mg,"~0");N=N.replace(/~0/g,"");return N});return I("<blockquote>\n"+L+"\n</blockquote>")});return J};var e=function(M){M=M.replace(/^\n+/g,"");M=M.replace(/\n+$/g,"");var N=M.split(/\n{2,}/g);var O=new Array();var L=N.length;for(var K=0;K<L;K++){var P=N[K];if(P.search(/~K(\d+)K/g)>=0){O.push(P)}else{if(P.search(/\S/)>=0){P=t(P);P=P.replace(/^([ \t]*)/g,"<p>");P+="</p>";O.push(P)}}}L=O.length;for(var K=0;K<L;K++){while(O[K].search(/~K(\d+)K/)>=0){var J=B[RegExp.$1];J=J.replace(/\$/g,"$$$$");O[K]=O[K].replace(/~K\d+K/,J)}}return O.join("\n\n")};var y=function(J){J=J.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&amp;");J=J.replace(/<(?![a-z\/?\$!])/gi,"&lt;");return J};var z=function(J){J=J.replace(/\\(\\)/g,F);J=J.replace(/\\([`*_{}\[\]()>#+-.!])/g,F);return J};var E=function(J){J=J.replace(/<((https?|ftp|dict):[^'">\s]+)>/gi,'<a href="$1">$1</a>');J=J.replace(/<(?:mailto:)?([-.\w]+\@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,function(L,K){return m(G(K))});return J};var m=function(L){function J(O){var N="0123456789ABCDEF";var M=O.charCodeAt(0);return(N.charAt(M>>4)+N.charAt(M&15))}var K=[function(M){return"&#"+M.charCodeAt(0)+";"},function(M){return"&#x"+J(M)+";"},function(M){return M}];L="mailto:"+L;L=L.replace(/./g,function(N){if(N=="@"){N=K[Math.floor(Math.random()*2)](N)}else{if(N!=":"){var M=Math.random();N=(M>0.9?K[2](N):M>0.45?K[1](N):K[0](N))}}return N});L='<a href="'+L+'">'+L+"</a>";L=L.replace(/">.+:/g,'">');return L};var G=function(J){J=J.replace(/~E(\d+)E/g,function(M,L){var K=parseInt(L);return String.fromCharCode(K)});return J};var H=function(J){J=J.replace(/^(\t|[ ]{1,4})/gm,"~0");J=J.replace(/~0/g,"");return J};var w=function(J){J=J.replace(/\t(?=\t)/g,"    ");J=J.replace(/\t/g,"~A~B");J=J.replace(/~B(.+?)~A/g,function(O,N,P){var M=N;var L=4-M.length%4;for(var K=0;K<L;K++){M+=" "}return M});J=J.replace(/~A/g,"    ");J=J.replace(/~B/g,"");return J};var x=function(K,L,N){var M="(["+L.replace(/([\[\]\\])/g,"\\$1")+"])";if(N){M="\\\\"+M}var J=new RegExp(M,"g");K=K.replace(J,F);return K};var F=function(L,K){var J=K.charCodeAt(0);return"~E"+J+"E"}};var Showdown=Attacklab.showdown;if(Attacklab.fileLoaded){Attacklab.fileLoaded("showdown.js")}var Attacklab=Attacklab||{};Attacklab.wmdBase=function(){var q=top.Attacklab;var n=top.document;var s=top.RegExp;var c=top.navigator;q.Util={};q.Position={};q.Command={};q.Global={};var h=q.Util;var o=q.Position;var p=q.Command;var e=q.Global;e.isIE=/msie/.test(c.userAgent.toLowerCase());e.isIE_5or6=/msie 6/.test(c.userAgent.toLowerCase())||/msie 5/.test(c.userAgent.toLowerCase());e.isIE_7plus=e.isIE&&!e.isIE_5or6;e.isOpera=/opera/.test(c.userAgent.toLowerCase());e.isKonqueror=/konqueror/.test(c.userAgent.toLowerCase());var j="<p style='margin-top: 0px'><b>Enter the image URL.</b></p><p>You can also add a title, which will be displayed as a tool tip.</p><p>Example:<br />http://wmd-editor.com/images/cloud1.jpg   \"Optional title\"</p>";var f="<p style='margin-top: 0px'><b>Enter the web address.</b></p><p>You can also add a title, which will be displayed as a tool tip.</p><p>Example:<br />http://wmd-editor.com/   \"Optional title\"</p>";var r="http://";var b="http://";var m="images/";var l=500;var a=100;var d="http://wmd-editor.com/";var g="WMD website";var k="_blank";q.PanelCollection=function(){this.buttonBar=n.getElementById("wmd-button-bar");this.preview=n.getElementById("wmd-preview");this.output=n.getElementById("wmd-output");this.input=n.getElementById("wmdinput")};q.panels=undefined;q.ieCachedRange=null;q.ieRetardedClick=false;h.isVisible=function(t){if(window.getComputedStyle){return window.getComputedStyle(t,null).getPropertyValue("display")!=="none"}else{if(t.currentStyle){return t.currentStyle.display!=="none"}}};h.addEvent=function(u,v,t){if(u.attachEvent){u.attachEvent("on"+v,t)}else{u.addEventListener(v,t,false)}};h.removeEvent=function(u,v,t){if(u.detachEvent){u.detachEvent("on"+v,t)}else{u.removeEventListener(v,t,false)}};h.fixEolChars=function(t){t=t.replace(/\r\n/g,"\n");t=t.replace(/\r/g,"\n");return t};h.extendRegExp=function(u,x,v){if(x===null||x===undefined){x=""}if(v===null||v===undefined){v=""}var y=u.toString();var t="";var w=y.match(/\/([gim]*)$/);if(w===null){t=w[0]}else{t=""}y=y.replace(/(^\/|\/[gim]*$)/g,"");y=x+y+v;return new RegExp(y,t)};h.createImage=function(u){var v=m+u;var t=n.createElement("img");t.className="wmd-button";t.src=v;return t};h.prompt=function(x,B,y){var u;var C;var A;if(B===undefined){B=""}var v=function(D){var E=(D.charCode||D.keyCode);if(E===27){t(true)}};var t=function(D){h.removeEvent(n.body,"keydown",v);var E=A.value;if(D){E=null}else{E=E.replace("http://http://","http://");E=E.replace("http://https://","https://");E=E.replace("http://ftp://","ftp://");if(E.indexOf("http://")===-1&&E.indexOf("ftp://")===-1&&E.indexOf("https://")===-1){E="http://"+E}}u.parentNode.removeChild(u);C.parentNode.removeChild(C);y(E);return false};var z=function(){C=n.createElement("div");C.className="wmd-prompt-background";style=C.style;style.position="absolute";style.top="0";style.zIndex="1000";if(e.isKonqueror){style.backgroundColor="transparent"}else{if(e.isIE){style.filter="alpha(opacity=50)"}else{style.opacity="0.5"}}var D=o.getPageSize();style.height=D[1]+"px";if(e.isIE){style.left=n.documentElement.scrollLeft;style.width=n.documentElement.clientWidth}else{style.left="0";style.width="100%"}n.body.appendChild(C)};var w=function(){u=n.createElement("div");u.className="wmd-prompt-dialog";u.style.padding="10px;";u.style.position="fixed";u.style.width="400px";u.style.zIndex="1001";var F=n.createElement("div");F.innerHTML=x;F.style.padding="5px";u.appendChild(F);var D=n.createElement("form");D.onsubmit=function(){return t(false)};style=D.style;style.padding="0";style.margin="0";style.cssFloat="left";style.width="100%";style.textAlign="center";style.position="relative";u.appendChild(D);A=n.createElement("input");A.type="text";A.value=B;style=A.style;style.display="block";style.width="80%";style.marginLeft=style.marginRight="auto";D.appendChild(A);var G=n.createElement("input");G.type="button";G.onclick=function(){return t(false)};G.value="OK";style=G.style;style.margin="10px";style.display="inline";style.width="7em";var E=n.createElement("input");E.type="button";E.onclick=function(){return t(true)};E.value="Cancel";style=E.style;style.margin="10px";style.display="inline";style.width="7em";if(/mac/.test(c.platform.toLowerCase())){D.appendChild(E);D.appendChild(G)}else{D.appendChild(G);D.appendChild(E)}h.addEvent(n.body,"keydown",v);u.style.top="50%";u.style.left="50%";u.style.display="block";if(e.isIE_5or6){u.style.position="absolute";u.style.top=n.documentElement.scrollTop+200+"px";u.style.left="50%"}n.body.appendChild(u);u.style.marginTop=-(o.getHeight(u)/2)+"px";u.style.marginLeft=-(o.getWidth(u)/2)+"px"};z();top.setTimeout(function(){w();var D=B.length;if(A.selectionStart!==undefined){A.selectionStart=0;A.selectionEnd=D}else{if(A.createTextRange){var E=A.createTextRange();E.collapse(false);E.moveStart("character",-D);E.moveEnd("character",D);E.select()}}A.focus()},0)};o.getTop=function(u,v){var t=u.offsetTop;if(!v){while(u=u.offsetParent){t+=u.offsetTop}}return t};o.getHeight=function(t){return t.offsetHeight||t.scrollHeight};o.getWidth=function(t){return t.offsetWidth||t.scrollWidth};o.getPageSize=function(){var x,y;var u,t;if(self.innerHeight&&self.scrollMaxY){x=n.body.scrollWidth;y=self.innerHeight+self.scrollMaxY}else{if(n.body.scrollHeight>n.body.offsetHeight){x=n.body.scrollWidth;y=n.body.scrollHeight}else{x=n.body.offsetWidth;y=n.body.offsetHeight}}if(self.innerHeight){u=self.innerWidth;t=self.innerHeight}else{if(n.documentElement&&n.documentElement.clientHeight){u=n.documentElement.clientWidth;t=n.documentElement.clientHeight}else{if(n.body){u=n.body.clientWidth;t=n.body.clientHeight}}}var w=Math.max(x,u);var v=Math.max(y,t);return[w,v,u,t]};q.inputPoller=function(u,v){var C=this;var w=q.panels.input;var t;var z;var B;var y;this.tick=function(){if(!h.isVisible(w)){return}if(w.selectionStart||w.selectionStart===0){var E=w.selectionStart;var D=w.selectionEnd;if(E!=t||D!=z){t=E;z=D;if(B!=w.value){B=w.value;return true}}}return false};var x=function(){if(!h.isVisible(w)){return}if(C.tick()){u()}};var A=function(){y=top.setInterval(x,v)};this.destroy=function(){top.clearInterval(y)};A()};q.undoManager=function(v){var H=this;var D=[];var u=0;var E="none";var A;var w;var F;var I;var G=function(K,J){if(E!=K){E=K;if(!J){t()}}if(!e.isIE||E!="moving"){F=top.setTimeout(z,1)}else{I=null}};var z=function(){I=new q.TextareaState();w.tick();F=undefined};this.setCommandMode=function(){E="command";t();F=top.setTimeout(z,0)};this.canUndo=function(){return u>1};this.canRedo=function(){if(D[u+1]){return true}return false};this.undo=function(){if(H.canUndo()){if(A){A.restore();A=null}else{D[u]=new q.TextareaState();D[--u].restore();if(v){v()}}}E="none";q.panels.input.focus();z()};this.redo=function(){if(H.canRedo()){D[++u].restore();if(v){v()}}E="none";q.panels.input.focus();z()};var t=function(){var J=I||new q.TextareaState();if(!J){return false}if(E=="moving"){if(!A){A=J}return}if(A){if(D[u-1].text!=A.text){D[u++]=A}A=null}D[u++]=J;D[u+1]=null;if(v){v()}};var C=function(M){var J=false;if(M.ctrlKey||M.metaKey){var L=M.charCode||M.keyCode;var K=String.fromCharCode(L);switch(K){case"y":H.redo();J=true;break;case"z":if(!M.shiftKey){H.undo()}else{H.redo()}J=true;break}}if(J){if(M.preventDefault){M.preventDefault()}if(top.event){top.event.returnValue=false}return}};var x=function(K){if(!K.ctrlKey&&!K.metaKey){var J=K.keyCode;if((J>=33&&J<=40)||(J>=63232&&J<=63235)){G("moving")}else{if(J==8||J==46||J==127){G("deleting")}else{if(J==13){G("newlines")}else{if(J==27){G("escape")}else{if((J<16||J>20)&&J!=91){G("typing")}}}}}}};var B=function(){h.addEvent(q.panels.input,"keypress",function(K){if((K.ctrlKey||K.metaKey)&&(K.keyCode==89||K.keyCode==90)){K.preventDefault()}});var J=function(){if(e.isIE||(I&&I.text!=q.panels.input.value)){if(F==undefined){E="paste";t();z()}}};w=new q.inputPoller(J,a);h.addEvent(q.panels.input,"keydown",C);h.addEvent(q.panels.input,"keydown",x);h.addEvent(q.panels.input,"mousedown",function(){G("moving")});q.panels.input.onpaste=J;q.panels.input.ondrop=J};var y=function(){B();z();t()};this.destroy=function(){if(w){w.destroy()}};y()};q.editor=function(x){if(!x){x=function(){}}var z=q.panels.input;var F=0;var A=this;var H;var I;var v;var u;var w;var D=function(J){z.focus();if(J.textOp){if(w){w.setCommandMode()}var O=new q.TextareaState();if(!O){return}var M=O.getChunks();var N=function(){z.focus();if(M){O.setChunks(M)}O.restore();x()};var L=true;var K=J.textOp(M,N,L);if(!K){N()}}if(J.execute){J.execute(A)}};var B=function(){if(w){G(document.getElementById("wmd-undo-button"),w.canUndo());G(document.getElementById("wmd-redo-button"),w.canRedo())}};var G=function(J,N){var M="0px";var L="-20px";var K="-40px";if(N){J.style.backgroundPosition=J.XShift+" "+M;J.onmouseover=function(){this.style.backgroundPosition=this.XShift+" "+K};J.onmouseout=function(){this.style.backgroundPosition=this.XShift+" "+M};if(e.isIE){J.onmousedown=function(){q.ieRetardedClick=true;q.ieCachedRange=document.selection.createRange()}}if(!J.isHelp){J.onclick=function(){if(this.onmouseout){this.onmouseout()}D(this);return false}}}else{J.style.backgroundPosition=J.XShift+" "+L;J.onmouseover=J.onmouseout=J.onclick=function(){}}};var t=function(){var L=document.getElementById("wmd-button-bar");var Y="0px";var P="-20px";var O="-40px";var Q=document.createElement("ul");Q.id="wmd-button-row";Q=L.appendChild(Q);var R=document.createElement("li");R.className="wmd-button";R.id="wmd-bold-button";R.title="Fetstil <strong> Ctrl+B";R.XShift="0px";R.textOp=p.doBold;G(R,true);Q.appendChild(R);var Z=document.createElement("li");Z.className="wmd-button";Z.id="wmd-italic-button";Z.title="Kursiv <em> Ctrl+I";Z.XShift="-20px";Z.textOp=p.doItalic;G(Z,true);Q.appendChild(Z);var S=document.createElement("li");S.className="wmd-spacer";S.id="wmd-spacer1";Q.appendChild(S);var K=document.createElement("li");K.className="wmd-button";K.id="wmd-link-button";K.title="L"+unescape("%E4")+"nk <a> Ctrl+L";K.XShift="-40px";K.textOp=function(ad,af,ae){return p.doLinkOrImage(ad,af,false)};G(K,true);Q.appendChild(K);var ab=document.createElement("li");ab.className="wmd-button";ab.id="wmd-quote-button";ab.title="Citat <blockquote> Ctrl+Q";ab.XShift="-60px";ab.textOp=p.doBlockquote;G(ab,true);Q.appendChild(ab);var N=document.createElement("li");N.className="wmd-button";N.id="wmd-code-button";N.title="Kod <pre><code> Ctrl+K";N.XShift="-80px";N.textOp=p.doCode;G(N,true);Q.appendChild(N);var V=document.createElement("li");V.className="wmd-button";V.id="wmd-image-button";V.title="L"+unescape("%E4")+"nka bild <img> Ctrl+G";V.XShift="-100px";V.textOp=function(ad,af,ae){return p.doLinkOrImage(ad,af,true)};G(V,true);Q.appendChild(V);var U=document.createElement("li");U.className="wmd-spacer";U.id="wmd-spacer2";Q.appendChild(U);var X=document.createElement("li");X.className="wmd-button";X.id="wmd-olist-button";X.title="Numrerad Lista <ol> Ctrl+O";X.XShift="-120px";X.textOp=function(ad,af,ae){p.doList(ad,af,true,ae)};G(X,true);Q.appendChild(X);var M=document.createElement("li");M.className="wmd-button";M.id="wmd-ulist-button";M.title="Punktlista <ul> Ctrl+U";M.XShift="-140px";M.textOp=function(ad,af,ae){p.doList(ad,af,false,ae)};G(M,true);Q.appendChild(M);var W=document.createElement("li");W.className="wmd-button";W.id="wmd-heading-button";W.title="Rubrik <h1>/<h2> Ctrl+H";W.XShift="-160px";W.textOp=p.doHeading;G(W,true);Q.appendChild(W);var T=document.createElement("li");T.className="wmd-button";T.id="wmd-hr-button";T.title="Avgr"+unescape("%E4")+"nsare <hr> Ctrl+R";T.XShift="-180px";T.textOp=p.doHorizontalRule;G(T,true);Q.appendChild(T);var J=document.createElement("li");J.className="wmd-spacer";J.id="wmd-spacer3";Q.appendChild(J);var ac=document.createElement("li");ac.className="wmd-button";ac.id="wmd-undo-button";ac.title=unescape("%C5")+"ngra - Ctrl+Z";ac.XShift="-200px";ac.execute=function(ad){ad.undo()};G(ac,true);Q.appendChild(ac);var aa=document.createElement("li");aa.className="wmd-button";aa.id="wmd-redo-button";aa.title="G"+unescape("%F6")+"r om - Ctrl+Y";if(/win/.test(c.platform.toLowerCase())){aa.title="G"+unescape("%F6")+"r om - Ctrl+Y"}else{aa.title="G"+unescape("%F6")+"r om- Ctrl+Shift+Z"}aa.XShift="-220px";aa.execute=function(ad){ad.redo()};G(aa,true);Q.appendChild(aa);B()};var C=function(){if(/\?noundo/.test(n.location.href)){q.nativeUndo=true}if(!q.nativeUndo){w=new q.undoManager(function(){x();B()})}t();var J="keydown";if(e.isOpera){J="keypress"}h.addEvent(z,J,function(L){if(L.ctrlKey||L.metaKey){var N=L.charCode||L.keyCode;var M=String.fromCharCode(N).toLowerCase();switch(M){case"b":D(document.getElementById("wmd-bold-button"));break;case"i":D(document.getElementById("wmd-italic-button"));break;case"l":D(document.getElementById("wmd-link-button"));break;case"q":D(document.getElementById("wmd-quote-button"));break;case"k":D(document.getElementById("wmd-code-button"));break;case"g":D(document.getElementById("wmd-image-button"));break;case"o":D(document.getElementById("wmd-olist-button"));break;case"u":D(document.getElementById("wmd-ulist-button"));break;case"h":D(document.getElementById("wmd-heading-button"));break;case"r":D(document.getElementById("wmd-hr-button"));break;case"y":D(document.getElementById("wmd-redo-button"));break;case"z":if(L.shiftKey){D(document.getElementById("wmd-redo-button"))}else{D(document.getElementById("wmd-undo-button"))}break;default:return}if(L.preventDefault){L.preventDefault()}if(top.event){top.event.returnValue=false}}});h.addEvent(z,"keyup",function(L){if(!L.shiftKey&&!L.ctrlKey&&!L.metaKey){var M=L.charCode||L.keyCode;if(M===13){fakeButton={};fakeButton.textOp=p.doAutoindent;D(fakeButton)}}});if(e.isIE){h.addEvent(z,"keydown",function(L){var M=L.keyCode;if(M===27){return false}})}if(z.form){var K=z.form.onsubmit;z.form.onsubmit=function(){E();if(K){return K.apply(this,arguments)}}}};var E=function(){if(q.showdown){var L=new q.showdown.converter()}var K=z.value;var J=function(){z.value=K};if(!/markdown/.test(q.wmd_env.output.toLowerCase())){if(L){z.value=L.makeHtml(K);top.setTimeout(J,0)}}return true};this.undo=function(){if(w){w.undo()}};this.redo=function(){if(w){w.redo()}};var y=function(){C()};this.destroy=function(){if(w){w.destroy()}if(v.parentNode){v.parentNode.removeChild(v)}if(z){z.style.marginTop=""}top.clearInterval(u)};y()};q.TextareaState=function(){var u=this;var t=q.panels.input;this.init=function(){if(!h.isVisible(t)){return}this.setInputAreaSelectionStartEnd();this.scrollTop=t.scrollTop;if(!this.text&&t.selectionStart||t.selectionStart===0){this.text=t.value}};this.setInputAreaSelection=function(){if(!h.isVisible(t)){return}if(t.selectionStart!==undefined&&!e.isOpera){t.focus();t.selectionStart=u.start;t.selectionEnd=u.end;t.scrollTop=u.scrollTop}else{if(n.selection){if(n.activeElement&&n.activeElement!==t){return}t.focus();var v=t.createTextRange();v.moveStart("character",-t.value.length);v.moveEnd("character",-t.value.length);v.moveEnd("character",u.end);v.moveStart("character",u.start);v.select()}}};this.setInputAreaSelectionStartEnd=function(){if(t.selectionStart||t.selectionStart===0){u.start=t.selectionStart;u.end=t.selectionEnd}else{if(n.selection){u.text=h.fixEolChars(t.value);var z;if(q.ieRetardedClick&&q.ieCachedRange){z=q.ieCachedRange;q.ieRetardedClick=false}else{z=n.selection.createRange()}var y=h.fixEolChars(z.text);var w="\x07";var A=w+y+w;z.text=A;var v=h.fixEolChars(t.value);z.moveStart("character",-A.length);z.text=y;u.start=v.indexOf(w);u.end=v.lastIndexOf(w)-w.length;var x=u.text.length-h.fixEolChars(t.value).length;if(x){z.moveStart("character",-y.length);while(x--){y+="\n";u.end+=1}z.text=y}this.setInputAreaSelection()}}};this.restore=function(){if(u.text!=undefined&&u.text!=t.value){t.value=u.text}this.setInputAreaSelection();t.scrollTop=u.scrollTop};this.getChunks=function(){var v=new q.Chunks();v.before=h.fixEolChars(u.text.substring(0,u.start));v.startTag="";v.selection=h.fixEolChars(u.text.substring(u.start,u.end));v.endTag="";v.after=h.fixEolChars(u.text.substring(u.end));v.scrollTop=u.scrollTop;return v};this.setChunks=function(v){v.before=v.before+v.startTag;v.after=v.endTag+v.after;if(e.isOpera){v.before=v.before.replace(/\n/g,"\r\n");v.selection=v.selection.replace(/\n/g,"\r\n");v.after=v.after.replace(/\n/g,"\r\n")}this.start=v.before.length;this.end=v.before.length+v.selection.length;this.text=v.before+v.selection+v.after;this.scrollTop=v.scrollTop};this.init()};q.Chunks=function(){};q.Chunks.prototype.findTags=function(u,w){var v=this;var t;if(u){t=h.extendRegExp(u,"","$");this.before=this.before.replace(t,function(x){v.startTag=v.startTag+x;return""});t=h.extendRegExp(u,"^","");this.selection=this.selection.replace(t,function(x){v.startTag=v.startTag+x;return""})}if(w){t=h.extendRegExp(w,"","$");this.selection=this.selection.replace(t,function(x){v.endTag=x+v.endTag;return""});t=h.extendRegExp(w,"^","");this.after=this.after.replace(t,function(x){v.endTag=x+v.endTag;return""})}};q.Chunks.prototype.trimWhitespace=function(t){this.selection=this.selection.replace(/^(\s*)/,"");if(!t){this.before+=s.$1}this.selection=this.selection.replace(/(\s*)$/,"");if(!t){this.after=s.$1+this.after}};q.Chunks.prototype.addBlankLines=function(t,x,v){if(t===undefined){t=1}if(x===undefined){x=1}t++;x++;var u;var w;this.selection=this.selection.replace(/(^\n*)/,"");this.startTag=this.startTag+s.$1;this.selection=this.selection.replace(/(\n*$)/,"");this.endTag=this.endTag+s.$1;this.startTag=this.startTag.replace(/(^\n*)/,"");this.before=this.before+s.$1;this.endTag=this.endTag.replace(/(\n*$)/,"");this.after=this.after+s.$1;if(this.before){u=w="";while(t--){u+="\\n?";w+="\n"}if(v){u="\\n*"}this.before=this.before.replace(new s(u+"$",""),w)}if(this.after){u=w="";while(x--){u+="\\n?";w+="\n"}if(v){u="\\n*"}this.after=this.after.replace(new s(u,""),w)}};p.prefixes="(?:\\s{4,}|\\s*>|\\s*-\\s+|\\s*\\d+\\.|=|\\+|-|_|\\*|#|\\s*\\[[^\n]]+\\]:)";p.unwrap=function(t){var u=new s("([^\\n])\\n(?!(\\n|"+p.prefixes+"))","g");t.selection=t.selection.replace(u,"$1 $2")};p.wrap=function(t,v){p.unwrap(t);var u=new s("(.{1,"+v+"})( +|$\\n?)","gm");t.selection=t.selection.replace(u,function(x,w){if(new s("^"+p.prefixes,"").test(x)){return x}return w+"\n"});t.selection=t.selection.replace(/\s+$/,"")};p.doBold=function(t,v,u){return p.doBorI(t,2,"fet text")};p.doItalic=function(t,v,u){return p.doBorI(t,1,"kursiv text")};p.doBorI=function(z,y,u){z.trimWhitespace();z.selection=z.selection.replace(/\n{2,}/g,"\n");z.before.search(/(\**$)/);var w=s.$1;z.after.search(/(^\**)/);var A=s.$1;var x=Math.min(w.length,A.length);if((x>=y)&&(x!=2||y!=1)){z.before=z.before.replace(s("[*]{"+y+"}$",""),"");z.after=z.after.replace(s("^[*]{"+y+"}",""),"")}else{if(!z.selection&&A){z.after=z.after.replace(/^([*_]*)/,"");z.before=z.before.replace(/(\s?)$/,"");var t=s.$1;z.before=z.before+A+t}else{if(!z.selection&&!A){z.selection=u}var v=y<=1?"*":"**";z.before=z.before+v;z.after=v+z.after}}return};p.stripLinkDefs=function(t,u){t=t.replace(/^[ ]{0,3}\[(\d+)\]:[ \t]*\n?[ \t]*<?(\S+?)>?[ \t]*\n?[ \t]*(?:(\n*)["(](.+?)[")][ \t]*)?(?:\n+|$)/gm,function(x,z,v,w,y){u[z]=x.replace(/\s*$/,"");if(w){u[z]=x.replace(/["(](.+?)[")]$/,"");return w+y}return""});return t};p.addLinkDef=function(y,u){var v=0;var B={};y.before=p.stripLinkDefs(y.before,B);y.selection=p.stripLinkDefs(y.selection,B);y.after=p.stripLinkDefs(y.after,B);var z="";var A=/(\[(?:\[[^\]]*\]|[^\[\]])*\][ ]?(?:\n[ ]*)?\[)(\d+)(\])/g;var t=function(C){v++;C=C.replace(/^[ ]{0,3}\[(\d+)\]:/,"  ["+v+"]:");z+="\n"+C};var w=function(E,C,F,D){if(B[F]){t(B[F]);return C+v+D}return E};y.before=y.before.replace(A,w);if(u){t(u)}else{y.selection=y.selection.replace(A,w)}var x=v;y.after=y.after.replace(A,w);if(y.after){y.after=y.after.replace(/\n*$/,"")}if(!y.after){y.selection=y.selection.replace(/\n*$/,"")}y.after+="\n\n"+z;return x};p.doLinkOrImage=function(t,u,w){t.trimWhitespace();t.findTags(/\s*!?\[/,/\][ ]?(?:\n[ ]*)?(\[.*?\])?/);if(t.endTag.length>1){t.startTag=t.startTag.replace(/!?\[/,"");t.endTag="";p.addLinkDef(t,null)}else{if(/\n\n/.test(t.selection)){p.addLinkDef(t,null);return}var v=function(x){if(x!==null){t.startTag=t.endTag="";var y=" [999]: "+x;var z=p.addLinkDef(t,y);t.startTag=w?"![":"[";t.endTag="]["+z+"]";if(!t.selection){if(w){t.selection="alt text"}else{t.selection="link text"}}}u()};if(w){h.prompt(j,r,v)}else{h.prompt(f,b,v)}return true}};h.makeAPI=function(){q.wmd={};q.wmd.editor=q.editor;q.wmd.previewManager=q.previewManager};h.startEditor=function(){if(q.wmd_env.autostart===false){h.makeAPI();return}var t;var v;var u=function(){q.panels=new q.PanelCollection();v=new q.previewManager();var w=v.refresh;t=new q.editor(w);v.refresh(true)};h.addEvent(top,"load",u)};q.previewManager=function(){var y=this;var v;var w;var C;var x;var D;var F;var z=3000;var G="delayed";var E=function(L,M){h.addEvent(L,"input",M);L.onpaste=M;L.ondrop=M;h.addEvent(L,"keypress",M);h.addEvent(L,"keydown",M);h.addEvent(L,"focus",M);w=new q.inputPoller(M,l)};var t=function(){var L=0;if(top.innerHeight){L=top.pageYOffset}else{if(n.documentElement&&n.documentElement.scrollTop){L=n.documentElement.scrollTop}else{if(n.body){L=n.body.scrollTop}}}return L};var A=function(){if(!q.panels.preview&&!q.panels.output){return}var N=q.panels.input.value;if(N&&N==D){return}else{D=N}var M=new Date().getTime();if(!v&&q.showdown){v=new q.showdown.converter()}if(v){N=v.makeHtml(N)}var L=new Date().getTime();x=L-M;K(N);F=N};var B=function(){if(C){top.clearTimeout(C);C=undefined}if(G!=="manual"){var L=0;if(G==="delayed"){L=x}if(L>z){L=z}C=top.setTimeout(A,L)}};var J=function(L){if(L.scrollHeight<=L.clientHeight){return 1}return L.scrollTop/(L.scrollHeight-L.clientHeight)};var I=function(){if(q.panels.preview){q.panels.preview.scrollTop=(q.panels.preview.scrollHeight-q.panels.preview.clientHeight)*J(q.panels.preview)}if(q.panels.output){q.panels.output.scrollTop=(q.panels.output.scrollHeight-q.panels.output.clientHeight)*J(q.panels.output)}};this.refresh=function(L){if(L){D="";A()}else{B()}};this.processingTime=function(){return x};this.output=function(){return F};this.setUpdateMode=function(L){G=L;y.refresh()};var u=true;var K=function(M){var O=o.getTop(q.panels.input)-t();if(q.panels.output){if(q.panels.output.value!==undefined){q.panels.output.value=M;q.panels.output.readOnly=true}else{var N=M.replace(/&/g,"&amp;");N=N.replace(/</g,"&lt;");q.panels.output.innerHTML="<pre><code>"+N+"</code></pre>"}}if(q.panels.preview){q.panels.preview.innerHTML=M}I();if(u){u=false;return}var L=o.getTop(q.panels.input)-t();if(e.isIE){top.setTimeout(function(){top.scrollBy(0,L-O)},0)}else{top.scrollBy(0,L-O)}};var H=function(){E(q.panels.input,B);A();if(q.panels.preview){q.panels.preview.scrollTop=0}if(q.panels.output){q.panels.output.scrollTop=0}};this.destroy=function(){if(w){w.destroy()}};H()};p.doAutoindent=function(t,v,u){t.before=t.before.replace(/(\n|^)[ ]{0,3}([*+-]|\d+[.])[ \t]*\n$/,"\n\n");t.before=t.before.replace(/(\n|^)[ ]{0,3}>[ \t]*\n$/,"\n\n");t.before=t.before.replace(/(\n|^)[ \t]+\n$/,"\n\n");u=false;if(/(\n|^)[ ]{0,3}([*+-])[ \t]+.*\n$/.test(t.before)){if(p.doList){p.doList(t,v,false,true)}}if(/(\n|^)[ ]{0,3}(\d+[.])[ \t]+.*\n$/.test(t.before)){if(p.doList){p.doList(t,v,true,true)}}if(/(\n|^)[ ]{0,3}>[ \t]+.*\n$/.test(t.before)){if(p.doBlockquote){p.doBlockquote(t,v,u)}}if(/(\n|^)(\t|[ ]{4,}).*\n$/.test(t.before)){if(p.doCode){p.doCode(t,v,u)}}};p.doBlockquote=function(t,w,v){t.selection=t.selection.replace(/^(\n*)([^\r]+?)(\n*)$/,function(y,z,A,B){t.before+=z;t.after=B+t.after;return A});t.before=t.before.replace(/(>[ \t]*)$/,function(y,z){t.selection=z+t.selection;return""});var u=v?"Citat":"";t.selection=t.selection.replace(/^(\s|>)+$/,"");t.selection=t.selection||u;if(t.before){t.before=t.before.replace(/\n?$/,"\n")}if(t.after){t.after=t.after.replace(/^\n?/,"\n")}t.before=t.before.replace(/(((\n|^)(\n[ \t]*)*>(.+\n)*.*)+(\n[ \t]*)*$)/,function(y){t.startTag=y;return""});t.after=t.after.replace(/^(((\n|^)(\n[ \t]*)*>(.+\n)*.*)+(\n[ \t]*)*)/,function(y){t.endTag=y;return""});var x=function(y){var z=y?"> ":"";if(t.startTag){t.startTag=t.startTag.replace(/\n((>|\s)*)\n$/,function(B,A){return"\n"+A.replace(/^[ ]{0,3}>?[ \t]*$/gm,z)+"\n"})}if(t.endTag){t.endTag=t.endTag.replace(/^\n((>|\s)*)\n/,function(B,A){return"\n"+A.replace(/^[ ]{0,3}>?[ \t]*$/gm,z)+"\n"})}};if(/^(?![ ]{0,3}>)/m.test(t.selection)){p.wrap(t,q.wmd_env.lineLength-2);t.selection=t.selection.replace(/^/gm,"> ");x(true);t.addBlankLines()}else{t.selection=t.selection.replace(/^[ ]{0,3}> ?/gm,"");p.unwrap(t);x(false);if(!/^(\n|^)[ ]{0,3}>/.test(t.selection)&&t.startTag){t.startTag=t.startTag.replace(/\n{0,2}$/,"\n\n")}if(!/(\n|^)[ ]{0,3}>.*$/.test(t.selection)&&t.endTag){t.endTag=t.endTag.replace(/^\n{0,2}/,"\n\n")}}if(!/\n/.test(t.selection)){t.selection=t.selection.replace(/^(> *)/,function(z,y){t.startTag+=y;return""})}};p.doCode=function(t,w,v){var y=/\S[ ]*$/.test(t.before);var x=/^[ ]*\S/.test(t.after);if((!x&&!y)||/\n/.test(t.selection)){t.before=t.before.replace(/[ ]{4}$/,function(A){t.selection=A+t.selection;return""});var u=1;var z=1;if(/\n(\t|[ ]{4,}).*\n$/.test(t.before)||t.after===""){u=0}if(/^\n(\t|[ ]{4,})/.test(t.after)){z=0}t.addBlankLines(u,z);if(!t.selection){t.startTag="    ";t.selection=v?"skriv text":""}else{if(/^[ ]{0,3}\S/m.test(t.selection)){t.selection=t.selection.replace(/^/gm,"    ")}else{t.selection=t.selection.replace(/^[ ]{4}/gm,"")}}}else{t.trimWhitespace();t.findTags(/`/,/`/);if(!t.startTag&&!t.endTag){t.startTag=t.endTag="`";if(!t.selection){t.selection=v?"enter code here":""}}else{if(t.endTag&&!t.startTag){t.before+=t.endTag;t.endTag=""}else{t.startTag=t.endTag=""}}}};p.doList=function(D,B,F,u){var t=/(\n|^)(([ ]{0,3}([*+-]|\d+[.])[ \t]+.*)(\n.+|\n{2,}([*+-].*|\d+[.])[ \t]+.*|\n{2,}[ \t]+\S.*)*)\n*$/;var x=/^\n*(([ ]{0,3}([*+-]|\d+[.])[ \t]+.*)(\n.+|\n{2,}([*+-].*|\d+[.])[ \t]+.*|\n{2,}[ \t]+\S.*)*)\n*/;var v="-";var z=1;var y=function(){var I;if(F){I=" "+z+". ";z++}else{I=" "+v+" "}return I};var w=function(I){if(F===undefined){F=/^\s*\d/.test(I)}I=I.replace(/^[ ]{0,3}([*+-]|\d+[.])\s/gm,function(J){return y()});return I};D.findTags(/(\n|^)*[ ]{0,3}([*+-]|\d+[.])\s+/,null);if(D.before&&!/\n$/.test(D.before)&&!/^\n/.test(D.startTag)){D.before+=D.startTag;D.startTag=""}if(D.startTag){var H=/\d+[.]/.test(D.startTag);D.startTag="";D.selection=D.selection.replace(/\n[ ]{4}/g,"\n");p.unwrap(D);D.addBlankLines();if(H){D.after=D.after.replace(x,w)}if(F==H){return}}var G=1;D.before=D.before.replace(t,function(I){if(/^\s*([*+-])/.test(I)){v=s.$1}G=/[^\n]\n\n[^\n]/.test(I)?1:0;return w(I)});if(!D.selection){D.selection=u?"Text":" "}var C=y();var A=1;D.after=D.after.replace(x,function(I){A=/[^\n]\n\n[^\n]/.test(I)?1:0;return w(I)});D.trimWhitespace(true);D.addBlankLines(G,A,true);D.startTag=C;var E=C.replace(/./g," ");p.wrap(D,q.wmd_env.lineLength-E.length);D.selection=D.selection.replace(/\n/g,"\n"+E)};p.doHeading=function(t,w,v){t.selection=t.selection.replace(/\s+/g," ");t.selection=t.selection.replace(/(^\s+|\s+$)/g,"");if(!t.selection){t.startTag="## ";t.selection="Heading";t.endTag=" ##";return}var y=0;t.findTags(/#+[ ]*/,/[ ]*#+/);if(/#+/.test(t.startTag)){y=s.lastMatch.length}t.startTag=t.endTag="";t.findTags(null,/\s?(-+|=+)/);if(/=+/.test(t.endTag)){y=1}if(/-+/.test(t.endTag)){y=2}t.startTag=t.endTag="";t.addBlankLines(1,1);var u=y==0?2:y-1;if(u>0){var z=u>=2?"-":"=";var x=t.selection.length;if(x>q.wmd_env.lineLength){x=q.wmd_env.lineLength}t.endTag="\n";while(x--){t.endTag+=z}}};p.doHorizontalRule=function(t,v,u){t.startTag="----------\n";t.selection="";t.addBlankLines(2,1,true)}};Attacklab.wmd_env={};Attacklab.account_options={};Attacklab.wmd_defaults={version:1,output:"HTML",lineLength:40,delayLoad:false};if(!Attacklab.wmd){Attacklab.wmd=function(){Attacklab.loadEnv=function(){var b=function(c){if(!c){return}for(var d in c){Attacklab.wmd_env[d]=c[d]}};b(Attacklab.wmd_defaults);b(Attacklab.account_options);b(top.wmd_options);Attacklab.full=true;var a="bold italic link blockquote code image ol ul heading hr";Attacklab.wmd_env.buttons=Attacklab.wmd_env.buttons||a};Attacklab.loadEnv()}}(function(f,b){var c=function(g){var j,h=[];for(j in g){if(/string|number/.test(typeof g[j])&&g[j]!==""){h.push(j+'="'+g[j]+'"')}}return h[e]("")},a=function(g){var l,h,j=[],k;if(typeof g=="object"){for(l in g){if(typeof g[l]=="object"){k=[];for(h in g[l]){k.push([h,"=",encodeURIComponent(g[l][h])][e](""))}g[l]=k[e]("&amp;")}if(g[l]){j.push(['<param name="',l,'" value="',g[l],'" />'][e](""))}}g=j[e]("")}return g},d=false,e="join";f[b]=(function(){try{var g="0,0,0",j=navigator.plugins["Shockwave Flash"]||ActiveXObject;g=j.description||(function(){try{return(new j("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version")}catch(k){}}())}catch(h){}if(!g){g="0,0,0"}g=g.match(/^[A-Za-z\s]*?(\d+)[\.|,](\d+)(?:\s+[d|r]|,)(\d+)/);return{available:g[1]>0,activeX:j&&!j.name,version:{major:g[1]*1,minor:g[2]*1,release:g[3]*1},hasVersion:function(o){var l=this.version,k="major",n="minor",m="release";o=(/string|number/.test(typeof o))?o.toString().split("."):o||[0,0,0];o=[o[k]||o[0]||l[k],o[n]||o[1]||l[n],o[m]||o[2]||l[m]];return(o[0]<l[k])||(o[0]==l[k]&&o[1]<l[n])||(o[0]==l[k]&&o[1]==l[n]&&o[2]<=l[m])},expressInstall:"expressInstall.swf",create:function(k){if(!f[b].available||d||!typeof k=="object"||!k.swf){return false}if(k.hasVersion&&!f[b].hasVersion(k.hasVersion)){k={swf:k.expressInstall||f[b].expressInstall,attrs:{id:k.id||"SWFObjectExprInst",name:k.name,height:Math.max(k.height||137),width:Math.max(k.width||214)},params:{flashvars:{MMredirectURL:location.href,MMplayerType:(f[b].activeX)?"ActiveX":"PlugIn",MMdoctitle:document.title.slice(0,47)+" - Flash Player Installation"}}};d=true}else{k=f.extend(true,{attrs:{id:k.id,name:k.name,height:k.height||180,width:k.width||320},params:{wmode:k.wmode||"opaque",flashvars:k.flashvars}},k)}if(f[b].activeX){k.attrs.classid=k.attrs.classid||"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";k.params.movie=k.params.movie||k.swf}else{k.attrs.type=k.attrs.classid||"application/x-shockwave-flash";k.attrs.data=k.attrs.data||k.swf}return["<object ",c(k.attrs),">",a(k.params),"</object>"][e]("")}}}());f.fn[b]=function(g){if(typeof g=="object"){this.each(function(){var j=document.createElement(b);var h=f[b].create(g);if(h){j.innerHTML=h;if(j.childNodes[0]){this.appendChild(j.childNodes[0])}}})}else{if(typeof g=="function"){this.find("object").andSelf().filter("object").each(function(){var j=this,h="jsInteractionTimeoutMs";j[h]=j[h]||0;if(j[h]<660){if(j.clientWidth||j.clientHeight){g.call(this)}else{setTimeout(function(){f(j)[b](g)},j[h]+66)}}})}}return this}}(jQuery,"flash"));$.postJSON=function(a,c,d,b){$.ajax({type:"POST",url:a,contentType:"application/x-www-form-urlencoded; charset=utf-8",dataType:"json",data:c,success:d,error:b})};site={};site.reload;site.images={init:function(){site.images.initResize();$("#body").prepend('<div id="imgpop"></div>');$("#center img.thumb").hover(site.images.popup,function(){$("#imgpop").css("display","none")})},popup:function(a){var b=$(this).position();$("#imgpop").css("display","");$("#imgpop").css("left",a.pageX+20);$("#imgpop").css("top",a.pageY-35);$("#imgpop").html('<img src="'+$(this).attr("src")+'" />')},initResize:function(){var a=$("#center div.answer img:not(.processed)");a.after('<img class="processed" height="16" width="16" src="http://itstatic.com/GG/Images/forum/loadingimage.gif" />');a.css("width","25px");a.onImagesLoad({itemCallback:itemImagesLoaded_example3});a.addClass("processed");a.error(function(){$(this).next("img").remove();$(this).attr("src","http://itstatic.com/GG/Images/forum/imgerror.gif")})},initResizeSHOWDOWN:function(){if(site.reload){clearTimeout(site.reload)}site.reload=setTimeout(site.images.doSHOWDOWN,1000)},doSHOWDOWN:function(){var a=$("#center div.answer img:not(.processed)");a.each(site.images.imgonload)},imgonload:function(){var a=$(this);a.css("width","auto");a.next("img").remove();var f=a.width();var d=a.height();if(f>340){var b=(d/f);var e=340;var c=(e*b);a.height(c).width(e);a.wrap('<a target="_blank" href="'+a.attr("src")+'"></a>')}a.addClass("processed")},imgerror:function(){alert("e");var a=$(this);a.addClass("processed");a.next("img").remove()}};function itemImagesLoaded_example3(b){var a=$(b);a.css("width","auto");if(a.width()>340){a.width(340);a.next("img").remove();a.wrap('<a target="_blank" href="'+a.attr("src")+'"></a>')}else{a.next("img").remove()}}function setupAnswerItems(){$("#body").append('<div id="qtemp" style="display:none;"></div>');var a=$("#question").attr("data-tid");var c=parseInt($("#thread").attr("data-open"));$("#answers div.item:not(.processed),#question:not(.processed)").each(function(){var l=$(this).attr("data-comments");var n=$(this).attr("data-id");var m=$(this).attr("data-username");var o=/Citerar[^>]*>([^;]*;\d+:\d+)\s*</g;var j=$(this).html();match=o.exec(j);while(match!=null){var d=match[1].split(";");j=j.replace(match[1],'<a href="/forum/goto/'+d[1].replace(":","/")+'/">'+d[0]+"</a>");match=o.exec(j)}$(this).html(j);var f=$(this).find("h2:first");var e=f.attr("data-vote");if(e=="0"){e="+0"}f.addClass("head");if(m==un){$(this).addClass("own")}if(uid&&!$(this).attr("data-tid")){f.text("");var h=";"+$(this).attr("data-quotes")+";";if(h.indexOf(";"+un+";")>-1){alert(h);$(this).addClass("quoted")}}if(c==1){f.prepend('<div class="votebox"><div class="voteup" title="Givande inl&auml;gg" onclick="postvote(this,\'up\',\''+n+"')\"></div><div class=\"votedown\" onclick=\"postvote(this,'down','"+n+'\')" title="Inte givande inl&auml;gg"></div><div class="flag" onclick="abuse(this,\''+n+'\')" title="Flagga ol&auml;mpligt inneh&aring;ll"></div></div>')}f.prepend('<span><span id="vote'+n+'">'+e+"</span></span>");var p=$(this).find("div.answer:first");if(l>0){p.after('<div class="item_foot"><div class="answer_comments but">'+l+" kommentarer</div></div>");p.css("padding-bottom","0px")}$(this).addClass("processed");if(uid){var g=$(this).find("div.user");var k='<div class="options">';if(c==1){k=k+'<div class="quote but" onclick="qoute(\''+n+"','"+m+"')\" ></div>"}k=k+'<div class="erase but" onclick="erase(\''+n+"','"+m+"')\" ></div>";k=k+'<div class="edit but" onclick="edit(\''+n+"','"+m+"')\" ></div>";g.append(k)}});site.images.init();$("#debug_answer").text($("#question").html());var b=$("#thread").attr("data-userid");$("#answers a[data-userid="+b+"]").css("font-weight","bold").css("color","#fff")}function infobox(b,a){b.top=b.top+15;$("#tooltip").css(b);$("#tooltip").css("display","");$("#tooltiptext").html(a)}function infobox_hide(){$("#tooltip").css("display","none");$("#tooltiptext").html("")}function abuse(a,c){var b=$(a).offset();infobox(b,'<div style="padding:10px;"><b>Flagga detta inl&auml;gg som:</b><br><div style="padding:10px;"><input type="radio" name="group1" value="0"> Spam <br><input type="radio" name="group1" value="1"> Grovt missbruk / p&aring;hopp / olagligt<br><input type="radio" name="group1" value="3"> Mindre missbruk / on&ouml;digt / off topic</div> <input style="float:right" type="button" onclick="infobox_hide()" value="Flagga">  <input type="button" onclick="infobox_hide()" value="Avbryt"> </div>')}var lastdataid=null;function qoute(c,a){if(lastdataid==c){do_show("editorpanel","answerpan",true);return}var d=$("#qtemp");var b=$("#question").attr("data-tid");$("#qtemp").html($("div[data-id="+c+"]").find("div.answer").html().replace(/<img/g,"[Bild] <img"));$("#qtemp h2:first").text("");$("#qtemp blockquote").text("");$("#qtemp").text(trim($("#qtemp").text()));$("#qtemp").text($("#qtemp").text().replace(new RegExp("\\n\\n\\n","g"),"\n").replace(new RegExp("\\n","g"),"\n> "));$("#qtemp").prepend("> Citerar **"+a+";"+b+":"+c+"**  \n> ");$("#wmdinput").val($("#wmdinput").val()+"\n"+trim($("#qtemp").text())+"\n\n\n");lastdataid=c}function trim(a,b){return ltrim(rtrim(a,b),b)}function ltrim(a,b){b=b||"\\s\\n";return a.replace(new RegExp("^["+b+"]+","g"),"")}function rtrim(a,b){b=b||"\\s\\n";return a.replace(new RegExp("["+b+"]+$","g"),"")}function postvote(b,a,f){var d=document.getElementById("vote"+f);if(uid==0){d.innerHTML="Logga in f&ouml;rst!";return}var c=$("#question").attr("data-tid");var e="/forum/action/postvote/?vote="+a+"&tid="+c+"&iid="+f;$.getJSON(e,function(g){d.innerHTML=g.foo;b.style.backgroundPosition="16px 0px"})}function do_show(d,c,b){var a=$("#"+d);if(a.is(":hidden")){if(c){location.href="#"+c}a.slideDown("fast");$("textarea.resizable:not(.processed)").TextAreaResizer()}else{if(!c){a.slideUp("slow")}else{location.href="#"+c}}}var str_editor='<div class="round">  <div class="editbox">   <div class="resizable-textarea">    <div id="wmd-editor" class="wmd-panel">     <div id="wmd-button-bar"></div>      <textarea class="resizable editor" rows="2" cols="40" name="wmdinput" id="wmdinput"></textarea>      <input type="hidden" name="dataid" id="dataid" value="<%=thread_id %>" />     </div>  </div>  <img id="Postthread" class="fr but" src="http://itstatic.com/GG/Images/buttons/sv/post_answer.gif" />  <div id="rules" class="box_yellow">L&auml;s <u>Regler & Netikett</u> innan du postar.</div>   </div>  </div> <div class="anspreview">  <div onclick="alert(this.innerHTML);" class="answer" id="wmd-preview"></div><!--<div id="wmd-output" class="wmd-panel"></div>//--> </div> ';NavBar={loading:false,ClickedButton:null,Page:1,Pages:0,PageOffset:0,DisplayEndpage:false,UseAnchors:false,LoadContainer:null,Callback:null,init:function(){var a=$("#center div.navbar");var b=$("#center div.navref");b.addClass("navbar");b.html(a.html());if(!a.attr("data-loadcontainer")){return}NavBar.LoadContainer=$("#"+a.attr("data-loadcontainer"));if(NavBar.LoadContainer.length){NavBar.Page=parseInt(a.attr("data-currentpage"));NavBar.Pages=parseInt(a.attr("data-pages"));NavBar.PageOffset=parseInt(a.attr("data-pageoffset"));NavBar.DisplayEndpage=a.attr("data-displayendpage")==="true";NavBar.Callback=a.attr("data-callback");NavBar.UseAnchors=a.attr("data-anchors")==="true";$("#center div.navbar a").each(function(){$(this).click(NavBar.LoadPage)});if(window.location.hash.substr(0,5)=="#sida"){NavBar.LoadSelectedPage()}}},LoadPage:function(){if(!NavBar.loading&&NavBar.LoadContainer.length){var b=$(this).html();if(b=="&lt;"){b=NavBar.Page-1}if(b=="&gt;"){b=parseInt(NavBar.Page)+1}NavBar.Page=b;NavBar.loading=true;var a=baseurl+"action/ThreadNext/?page="+NavBar.Page;NavBar.ClickedButton=$(this);$(this).html('<img style="margin-top:2px;" src="http://itstatic.com/GG/Images/navbar/loader.gif" />');NavBar.LoadContainer.load(a,NavBar.LoadComplete);return false}},LoadSelectedPage:function(){if(!NavBar.loading&&NavBar.LoadContainer.length){NavBar.Page=window.location.hash.substr(5,1);NavBar.loading=true;alert(NavBar.Page);var a=NavBar.BaseUrl+"sida"+NavBar.Page+"/"+sitebase+"Next/";NavBar.ClickedButton=$('#center div.navbar a[html="'+NavBar.Page+'"]');NavBar.ClickedButton.html('<img style="margin-top:2px;"  src="http://itstatic.com/GG/Images/navbar/loader.gif" />');NavBar.LoadContainer.load(a,NavBar.LoadComplete);return false}},LoadComplete:function(response,status,xhr){if(status=="error"){var msg="Kunde inte ladda sidan - Felmeddelande: ";NavBar.LoadContainer.html(msg+xhr.status+" "+xhr.statusText)}if(NavBar.Callback.length){eval(NavBar.Callback)}$(window).scrollTop(NavBar.LoadContainer.position().top+0);NavBar.loading=false;NavBar.ClickedButton.html(NavBar.Page);if(NavBar.UseAnchors){window.location.hash="sida"+NavBar.Page}var nav="";var startpage=parseInt(NavBar.Page-NavBar.PageOffset);var endpage=(NavBar.Page*1)+NavBar.PageOffset;if(startpage<1){endpage=(endpage+1)-(startpage);startpage=1}if(endpage>NavBar.Pages){startpage=startpage-(endpage-NavBar.Pages);endpage=NavBar.Pages}if(startpage<1){startpage=1}if(endpage>NavBar.Pages){endpage=NavBar.Pages}if(startpage>1){nav='<a class="first" href="">1</a>'}if(startpage>1){nav=nav+'<a href="">&lt;</a>'}for(i=startpage;i<=endpage;i++){if(i==NavBar.Page){nav=nav+'<a class="current" href="">'+i+"</a>"}else{nav=nav+'<a href="">'+i+"</a>"}}if(endpage<NavBar.Pages){nav=nav+'<a class="" href="">&gt;</a>'}if(endpage<NavBar.Pages){nav=nav+'<a class="last" href="">'+NavBar.Pages+"</a>"}$("#center div.navbar").html(nav);$("#center div.navbar a").each(function(){$(this).click(NavBar.LoadPage)})}};function postanswer(){var c=$("#debug");var a=baseurl+"action/postanswer/";c.text(a);var b=$("#wmdinput").serialize();$.post(a,b,function(d){$("#wmd-preview").html(d.foo)},"json")}NavBar.init();$(document).ready(function(){if(sitebase=="Thread"){setupAnswerItems();if($("#editorpanel").attr("data-valid")=="true"){$("#editorpanel").html(str_editor);Attacklab.wmd();Attacklab.wmdBase();Attacklab.Util.startEditor();$("#Postthread").click(function(){postanswer()})}else{$("#editorpanel").html('<div class="round roc_yellow" style="padding:20px;font-size:15px;font-weight:bold;">'+$("#editorpanel").attr("data-valid")+"</div>")}}});var list_search_timer=null;var list_search_section=0;function UpIt_gue_progress(a,b){$("#uploading").html('<div style="height:20px;"><div style="float:left;width:200px;">Bild '+a+" av "+b+'</div><div style="border:1px solid green;width:200px; margin-left:200px;"><div style=" height:5px; background-color:green; width:'+(a/b)*100+'%"></div></div></div>');if(a==b){$("#uploading").html("")}}function UpIt_gue_error(c,b,a){$("#uploading_error").prepend("Fel: "+b+" -"+a+"<br>")}function UpIt_gue_start(){$("#uploading_error").html("")}function UpIt_file_done(a){$("#wmdinput").val($("#wmdinput").val()+"\n![ Beskrivning ]( http://itstatic.com/site/Data/"+trim(a)+" )");$("#wmdinput").focus()}function setuploadbutton(){$("#wmd-button-bar").append('<div titel="Ladda upp bild" id="wmd-upload-button"></div');$("#wmd-upload-button").flash({swf:"/uploader/set/UpIt.swf?2",id:"UpIt",height:10,width:10,titel:"test",flashvars:{button:"/content/images/flashbuttons/uploadbutton.gif",upload:"http://garagego.nu/upload/",session:"8978",maxWidth:"800",maxHeight:"800",skipsize:"50000",maxsize:"5000000",maxFiles:200,Quality:"90",allowEnlarging:false,encoding:-1}})}var searchterm;if((sitebase)=="List"){$(document).ready(function(){if($("#createpanel").length){wmd_options={output:"Markdown"};Attacklab.wmd();Attacklab.wmdBase();Attacklab.Util.startEditor()}list_search_section=$("#list_search").attr("data-section");$("#list_search_text").focus(function(){$(this).unbind("focus");$(this).attr("startval",$(this).val());$(this).val("");$(this).blur(function(){if($(this).val()==""){$(this).val($(this).attr("startval"));$(this).focus(function(){$(this).val("");$(this).unbind("focus");$("#threads").css("display","")})}})});$("#list_search_text").keypress(function(a){if(a.keyCode==13){if(searchterm!=$(this).val()){window.location="/sok/rubriker/"+encodeURIComponent(jQuery.trim($(this).val()));searchterm=$(this).val()}return false}});$("#list_search_submit").click(function(){if(searchterm!=$("#list_search_text").val()){window.location="/sok/rubriker/"+encodeURIComponent(jQuery.trim($("#list_search_text").val()));searchterm=$("#list_search_text").val()}return false})})}var MD5=function(j){function s(b,a){return(b<<a)|(b>>>(32-a))}function r(b,d){var x,F,k,a,c;k=(b&2147483648);a=(d&2147483648);x=(b&1073741824);F=(d&1073741824);c=(b&1073741823)+(d&1073741823);if(x&F){return(c^2147483648^k^a)}if(x|F){if(c&1073741824){return(c^3221225472^k^a)}else{return(c^1073741824^k^a)}}else{return(c^k^a)}}function K(b,c,a){return(b&c)|((~b)&a)}function L(b,c,a){return(b&a)|(c&(~a))}function B(b,c,a){return(b^c^a)}function C(b,c,a){return(c^(b|(~a)))}function U(ab,H,I,k,aa,F,G){ab=r(ab,r(r(K(H,I,k),aa),G));return r(s(ab,F),H)}function m(ab,H,I,k,aa,F,G){ab=r(ab,r(r(L(H,I,k),aa),G));return r(s(ab,F),H)}function Q(ab,H,I,k,aa,F,G){ab=r(ab,r(r(B(H,I,k),aa),G));return r(s(ab,F),H)}function D(ab,H,I,k,aa,F,G){ab=r(ab,r(r(C(H,I,k),aa),G));return r(s(ab,F),H)}function A(x){var d;var b=x.length;var F=b+8;var a=(F-(F%64))/64;var k=(a+1)*16;var G=Array(k-1);var c=0;var H=0;while(H<b){d=(H-(H%4))/4;c=(H%4)*8;G[d]=(G[d]|(x.charCodeAt(H)<<c));H++}d=(H-(H%4))/4;c=(H%4)*8;G[d]=G[d]|(128<<c);G[k-2]=b<<3;G[k-1]=b>>>29;return G}function E(k){var a="",c="",b,d;for(d=0;d<=3;d++){b=(k>>>(d*8))&255;c="0"+b.toString(16);a=a+c.substr(c.length-2,2)}return a}function T(d){d=d.replace(/\r\n/g,"\n");var b="";for(var a=0;a<d.length;a++){var k=d.charCodeAt(a);if(k<128){b+=String.fromCharCode(k)}else{if((k>127)&&(k<2048)){b+=String.fromCharCode((k>>6)|192);b+=String.fromCharCode((k&63)|128)}else{b+=String.fromCharCode((k>>12)|224);b+=String.fromCharCode(((k>>6)&63)|128);b+=String.fromCharCode((k&63)|128)}}}return b}var P=Array();var S,f,N,q,t,X,V,W,Z;var u=7,w=12,v=17,y=22;var l=5,n=9,z=14,o=20;var Y=4,p=11,e=16,h=23;var O=6,R=10,J=15,M=21;j=T(j);P=A(j);X=1732584193;V=4023233417;W=2562383102;Z=271733878;for(S=0;S<P.length;S+=16){f=X;N=V;q=W;t=Z;X=U(X,V,W,Z,P[S+0],u,3614090360);Z=U(Z,X,V,W,P[S+1],w,3905402710);W=U(W,Z,X,V,P[S+2],v,606105819);V=U(V,W,Z,X,P[S+3],y,3250441966);X=U(X,V,W,Z,P[S+4],u,4118548399);Z=U(Z,X,V,W,P[S+5],w,1200080426);W=U(W,Z,X,V,P[S+6],v,2821735955);V=U(V,W,Z,X,P[S+7],y,4249261313);X=U(X,V,W,Z,P[S+8],u,1770035416);Z=U(Z,X,V,W,P[S+9],w,2336552879);W=U(W,Z,X,V,P[S+10],v,4294925233);V=U(V,W,Z,X,P[S+11],y,2304563134);X=U(X,V,W,Z,P[S+12],u,1804603682);Z=U(Z,X,V,W,P[S+13],w,4254626195);W=U(W,Z,X,V,P[S+14],v,2792965006);V=U(V,W,Z,X,P[S+15],y,1236535329);X=m(X,V,W,Z,P[S+1],l,4129170786);Z=m(Z,X,V,W,P[S+6],n,3225465664);W=m(W,Z,X,V,P[S+11],z,643717713);V=m(V,W,Z,X,P[S+0],o,3921069994);X=m(X,V,W,Z,P[S+5],l,3593408605);Z=m(Z,X,V,W,P[S+10],n,38016083);W=m(W,Z,X,V,P[S+15],z,3634488961);V=m(V,W,Z,X,P[S+4],o,3889429448);X=m(X,V,W,Z,P[S+9],l,568446438);Z=m(Z,X,V,W,P[S+14],n,3275163606);W=m(W,Z,X,V,P[S+3],z,4107603335);V=m(V,W,Z,X,P[S+8],o,1163531501);X=m(X,V,W,Z,P[S+13],l,2850285829);Z=m(Z,X,V,W,P[S+2],n,4243563512);W=m(W,Z,X,V,P[S+7],z,1735328473);V=m(V,W,Z,X,P[S+12],o,2368359562);X=Q(X,V,W,Z,P[S+5],Y,4294588738);Z=Q(Z,X,V,W,P[S+8],p,2272392833);W=Q(W,Z,X,V,P[S+11],e,1839030562);V=Q(V,W,Z,X,P[S+14],h,4259657740);X=Q(X,V,W,Z,P[S+1],Y,2763975236);Z=Q(Z,X,V,W,P[S+4],p,1272893353);W=Q(W,Z,X,V,P[S+7],e,4139469664);V=Q(V,W,Z,X,P[S+10],h,3200236656);X=Q(X,V,W,Z,P[S+13],Y,681279174);Z=Q(Z,X,V,W,P[S+0],p,3936430074);W=Q(W,Z,X,V,P[S+3],e,3572445317);V=Q(V,W,Z,X,P[S+6],h,76029189);X=Q(X,V,W,Z,P[S+9],Y,3654602809);Z=Q(Z,X,V,W,P[S+12],p,3873151461);W=Q(W,Z,X,V,P[S+15],e,530742520);V=Q(V,W,Z,X,P[S+2],h,3299628645);X=D(X,V,W,Z,P[S+0],O,4096336452);Z=D(Z,X,V,W,P[S+7],R,1126891415);W=D(W,Z,X,V,P[S+14],J,2878612391);V=D(V,W,Z,X,P[S+5],M,4237533241);X=D(X,V,W,Z,P[S+12],O,1700485571);Z=D(Z,X,V,W,P[S+3],R,2399980690);W=D(W,Z,X,V,P[S+10],J,4293915773);V=D(V,W,Z,X,P[S+1],M,2240044497);X=D(X,V,W,Z,P[S+8],O,1873313359);Z=D(Z,X,V,W,P[S+15],R,4264355552);W=D(W,Z,X,V,P[S+6],J,2734768916);V=D(V,W,Z,X,P[S+13],M,1309151649);X=D(X,V,W,Z,P[S+4],O,4149444226);Z=D(Z,X,V,W,P[S+11],R,3174756917);W=D(W,Z,X,V,P[S+2],J,718787259);V=D(V,W,Z,X,P[S+9],M,3951481745);X=r(X,f);V=r(V,N);W=r(W,q);Z=r(Z,t)}var g=E(X)+E(V)+E(W)+E(Z);return g.toLowerCase()};var shiftPressed=false;function SetMenu(){var f=location.pathname.split("/");var e=false;var c="/"+f[1]+"/";for(i=2;i<=f.length;i=i+1){c=c+f[i]+"/";var a=$("#left a[href="+c+"]");if(a.length){e=true;if(i==2){$("#left a[href="+c+"]").addClass("onSingle")}$("#left a[href="+c+"]").addClass("on");$("#left a[href="+c+"]").next().addClass("on")}}if(!e){$("#left a[href=/"+f[1]+"/]").addClass("onSingle")}var d;var b;$("#left ul.menu li.sub").hover(function(){if(d){clearTimeout(d);d=null}b=$(this);d=setTimeout(function(){b.children("ul:first").addClass("on");b.children("a:first").addClass("gray")},30000)},function(){if(d){clearTimeout(d);d=null}})}if(uid==0){$("#username, #password").focus(function(){$(this).unbind("focus");$(this).attr("startval",$(this).val());$(this).val("");$(this).blur(function(){if($(this).val()==""){$(this).val($(this).attr("startval"));$(this).focus(function(){$(this).val("");$(this).unbind("focus")})}})});$("#username, #password").keypress(function(a){if(a.keyCode==13){login();alert("");a.preventDefault();return false}})}function post_return(a){alert(a[0].value)}$(document).ready(function(){$("#Login").click(function(){login()})});function login(){$("#passchk").val(MD5($("#password").val()));var a=$("#username").serialize();$.postJSON("/Functions/preLogin/",a,function(b){$("#passchk").val(MD5(MD5(MD5($("#password").val())+b.s1)+b.s2));a=$("#username,#passchk").serialize();$.post("/Functions/Login/",a,function(c){alert(c)})},function(c,b,d){alert(c.responseText)})}var items=document.getElementById("menutop").getElementsByTagName("*");var itemcount=items.length-1;for(i=0;i<=itemcount;i++){if(items[i].className=="drop"){items[i].parentNode.onmouseover=function(){this.className="open"};items[i].parentNode.onmouseout=function(){this.className=""}}}function presedit_setup(){if($("#pres").attr("data-change")!="True"){return}$("#pres").prepend('<div id="editbut" class="edit but"></div>');$("#editbut").click(function(){$(this).remove();var a=$("#pres").html();$("#pres").html('<form id="test"><textarea id="prestextarea" name="prestextarea">'+a+"</textarea></form>");$("#pres").prepend('<div id="editsave" class="save but"></div>');$("#editsave").click(function(){var b=baseurl+"pres/";var c=$("#test").serialize();$.postJSON(b,c,function(d){if(d.msg){alert(d.msg)}$("#pres").html(d.html);presedit_setup()},function(e,d,f){alert(e.responseText)})})})}$(document).ready(function(){if(sitebase=="pres"){presedit_setup()}});$(document).ready(function(){if(baseurl=="/admin/sections/"){$("#select_section").change(function(){location.href="/admin/sections/?sectionid="+$(this).find("option:selected").attr("id")});$("#save1").click(function(){var a=$("#form1").serialize();alert(a);$.postJSON("/admin/sections/",a,function(b){alert(b.msg)},function(c,b,d){alert(c.responseText)})})}});var imgbase="http://itstatic.com/gg/Images/";document.write('<div id="tooltip" style="display:none;"><table cellpadding="0" cellspacing="0"><tr><td><div class="bordertop"><!----></div><div id="tooltipbackground"><div style="height:2px;"><!----><div id="topright"><!----></div><div id="topleft"><!----></div></div><div id="tooltiptext"></div><div style="height:2px;"><!----><div id="botright"><!----></div><div id="botleft"><!----></div></div></div><div class="borderbottom"><!----></div></td><td width="5" id="shaderight"></td></tr><tr><td id="shadebottom"></td><td id="shadecorner"><div><!----></div></td></tr></table></div>');var mx;var my;SetMenu();doRound();toolTip();$(document).ready(function(){if($.browser.msie&&($.browser.version<7)){}else{}});function url2link(b){var a=/(\b(https?|ftp):\/\/[a-z0-9-]+(\.[a-z0-9-]+)+(\/[\w-]+)*\/[\w-]+\.(gif|png|jpg))/ig;return b.replace(a,"<img src='$1' width='30' height='30' style='float:left;'>")}var tooltip;var tooltiptext;var tooltipTimer=null;function toolTip(){tooltip=$("#tooltip");tooltiptext=$("#tooltiptext");$("a[data-tip!=undefined]").each(function(){$(this).attr("data-tip",$(this).attr("title"));$(this).attr("title","");if($(this).attr("rel").indexOf("tip")>-1){$(this).mousemove(function(a){mx=a.pageX;my=a.pageY});$(this).mouseenter(function(a){if(tooltipTimer){clearTimeout(tooltipTimer)}var b=$(this).attr("data-tip");if(b.indexOf("\n - ")>-1){b=b.replace("\n - ","</b><br>");b="<b>"+b}tooltiptext.html(b);tooltipTimer=setTimeout(function(){tooltip.css("left",(mx-10)+"px");tooltip.css("top",my+25+"px");tooltip.css("display","")},500)});$(this).mouseleave(function(){if(tooltipTimer){clearTimeout(tooltipTimer)}tooltip.css("display","none")})}})}function doRound(){$("#center div.round").each(function(){$(this).removeClass("round");this.className="rc "+this.className;$($(this).children()[0]).addClass("border rcMain");$(this).prepend('<div class="corner rcTL"><div class="corner rcTR"><div class="border rcTC"><!-- --></div></div></div>');$(this).append('<div class="corner rcBL"><div class="corner rcBR"><div class="border rcBC"><!-- --></div></div></div>')})}function FlashFix(){fls=document.getElementsByTagName("object");for(var b=0;b<fls.length;b++){fls[b].outerHTML=fls[b].outerHTML}}function urlEncodeCharacter(a){return"%"+a.charCodeAt(0).toString(16)}function urlDecodeCharacter(a,b){return String.fromCharCode(parseInt(b,16))}function urlEncode(a){return encodeURIComponent(a).replace(/\%20/g,"+").replace(/[!'()*~]/g,urlEncodeCharacter)}function urlDecode(a){return decodeURIComponent(a.replace(/\+/g,"%20")).replace(/\%([0-9a-f]{2})/g,urlDecodeCharacter)}if(sitebase=="search"){$("#list_search_text").keypress(function(b){if(b.keyCode==13){var a="";if($("#chkheadings").attr("checked")){a="rubriker/"}window.location="/sok/"+$("#search_section").val()+"/"+a+encodeURIComponent(jQuery.trim($(this).val()));return false}});$("#search_button").click(function(b){var a="";if($("#chkheadings").attr("checked")){a="rubriker/"}window.location="/sok/"+$("#search_section").val()+"/"+a+encodeURIComponent(jQuery.trim($("#list_search_text").val()));return false})}function ticker(a){a.style.overflow="hidden";this.speed=40;this.delay=4000;this.obj=a;this.id=a.id;this.height=parseInt(a.style.height);this.data=new Array();var b=this;setTimeout(function(){b.init()},2000)}ticker.prototype.init=function(){var c=0;var a=this.obj.getElementsByTagName("LI");for(i=0;i<=a.length-1;i++){if(a[i].tagName=="LI"){this.data[i]=a[i].innerHTML;c++}}this.obj.innerHTML='<div id="'+this.id+'-0"></div><div id="'+this.id+'-1"></div>';this.obj.style.position="relative";this.div0=document.getElementById(this.id+"-0");this.div1=document.getElementById(this.id+"-1");this.div0.width=this.obj.width;this.div0.height=this.obj.height;this.div0.style.position="absolute";this.div0.style.top=this.height+"px";this.div1.width=this.obj.width;this.div1.height=this.obj.height;this.div1.style.position="absolute";this.div1.style.top=this.height+"px";this.getcontent(this.div1);this.getcontent(this.div0);var b=this;setTimeout(function(){b.animate()},this.speed)};ticker.prototype.animate=function(){var c=this;var a=parseInt(this.div0.style.top);this.div0.style.top=a-1+"px";this.div1.style.top=a-1+this.height+"px";if(a==(-this.height)){var b=this.div1;this.div1=this.div0;this.div0=b;this.div0.style.top="0px";this.div1.style.top=this.height+"px";this.getcontent(this.div1);a=1}if(a==1){setTimeout(function(){c.animate()},this.delay)}else{setTimeout(function(){c.animate()},this.speed)}};ticker.prototype.getcontent=function(a){a.innerHTML=this.data[Math.floor(Math.random()*this.data.length)]};var items=document.getElementsByTagName("div");var itemcount=items.length-1;for(i=0;i<=items.length-1;i++){if(items[i].className=="ticker"){new ticker(items[i])}};