var _selectHeight=27;var _forms=document.getElementsByTagName("fieldset");var inputs=new Array();var selects=new Array();var labels=new Array();var radios=new Array();var radioLabels=new Array();var checkboxes=new Array();var checkboxLabels=new Array();var buttons=new Array();var all_selects=false;var active_select=null;var agt=navigator.userAgent.toLowerCase();var selectText="---";var IN_CFORMS=true;function initCustomForms(){if(!document.getElementById){return false}getElements();separateElements();replaceRadios();replaceCheckboxes();replaceSelects();var c=document.getElementsByTagName("select");var a=[];if(c){for(var d=0;d<c.length;d++){if(c[d].className!=""&&c[d].className!="outtaHere"){a[d]=" drop-"+c[d].className}}for(var d=0;d<a.length;d++){var b=document.getElementById("optionsDiv"+d);if(b){if(a[d]){b.className+=a[d]}}}}}function getElements(){for(var a=0;a<document.getElementsByTagName("fieldset").length;a++){for(var b=0;b<document.forms[a].getElementsByTagName("input").length;b++){inputs.push(document.forms[a].getElementsByTagName("input")[b])}for(var c=0;c<document.forms[a].getElementsByTagName("label").length;c++){labels.push(document.forms[a].getElementsByTagName("label")[c])}for(var d=0;d<document.forms[a].getElementsByTagName("select").length;d++){selects.push(document.forms[a].getElementsByTagName("select")[d])}}}function separateElements(){var g=0;var d=0;var i=0;var h=0;var e=0;var j=0;var a=0;for(var f=0;f<inputs.length;f++){if(inputs[f].type=="radio"){radios[g]=inputs[f];++g;for(var k=0;k<labels.length;k++){if((inputs[f].id)&&labels[k].htmlFor==inputs[f].id){radioLabels[h]=labels[k];++h}}}if(inputs[f].type=="checkbox"){checkboxes[d]=inputs[f];++d;for(var k=0;k<labels.length;k++){if((inputs[f].id)&&(labels[k].htmlFor==inputs[f].id)){checkboxLabels[e]=labels[k];++e}}}if((inputs[f].type=="submit")||(inputs[f].type=="button")){buttons[a]=inputs[f];++a}}}function replaceRadios(){for(var a=0;a<radios.length;a++){radios[a].className+=" outtaHere";var b=document.createElement("div");if(radios[a].checked){b.className="radioAreaChecked"}else{b.className="radioArea"}b.id="myRadio"+a;radios[a].parentNode.insertBefore(b,radios[a]);radios[a]._ra=b;b.onclick=new Function("rechangeRadios("+a+")");if(radioLabels[a]){radioLabels[a].onclick=new Function("rechangeRadios("+a+")")}}return true}function checkRadios(c){var b=radios[c]._ra;for(var a=0;a<radios.length;a++){if((radios[a]._ra.className=="radioAreaChecked")&&(radios[a]._ra.nextSibling.name==radios[c].name)){radios[a]._ra.className="radioArea"}}b.className="radioAreaChecked"}function changeRadios(b){if(radios[b].checked){for(var a=0;a<radios.length;a++){if(radios[a].name==radios[b].name){radios[a].checked=false}radios[b].checked=true;checkRadios(b)}}}function rechangeRadios(b){if(!radios[b].checked){for(var a=0;a<radios.length;a++){if(radios[a].name==radios[b].name){radios[a].checked=false}radios[b].checked=true;checkRadios(b)}}}function replaceCheckboxes(){for(var b=0;b<checkboxes.length;b++){checkboxes[b].className+=" outtaHere";var a=document.createElement("div");if(checkboxes[b].checked){a.className="checkboxAreaChecked"}else{a.className="checkboxArea"}a.id="myCheckbox"+b;checkboxes[b].parentNode.insertBefore(a,checkboxes[b]);checkboxes[b]._ca=a;a.onclick=a.onclick2=new Function("rechangeCheckboxes("+b+")");if(checkboxLabels[b]){checkboxLabels[b].onclick=new Function("changeCheckboxes("+b+")")}checkboxes[b].onkeydown=checkEvent}return true}function checkCheckboxes(c,a){var b=checkboxes[c]._ca;if(a==true){b.className="checkboxAreaChecked";b.checked=true}if(a==false){b.className="checkboxArea";b.checked=false}}function changeCheckboxes(a){if(checkboxes[a].checked){checkCheckboxes(a,false)}else{checkCheckboxes(a,true)}}function rechangeCheckboxes(b){var a=false;if(checkboxes[b].checked==true){a=false}else{a=true}checkboxes[b].checked=a;checkCheckboxes(b,a)}function checkEvent(a){if(!a){var a=window.event}if(a.keyCode==32){for(var b=0;b<checkboxes.length;b++){if(this==checkboxes[b]){changeCheckboxes(b)}}}}function replaceSelects(){for(var g=0;g<selects.length;g++){if(!selects[g].replaced&&selects[g].offsetWidth){selects[g]._number=g;var i=document.createElement("div");var d=document.createElement("span");d.className="left";i.appendChild(d);var c=document.createElement("span");c.className="disabled";i.appendChild(c);selects[g]._disabled=c;var b=document.createElement("span");var a=document.createElement("a");var k=document.createTextNode(selectText);b.id="mySelectText"+g;var j=selects[g].offsetWidth;i.style.width=j+"px";if(selects[g].parentNode.className.indexOf("type2")!=-1){a.href="javascript:showOptions("+g+",true)"}else{a.href="javascript:showOptions("+g+",false)"}a.className="selectButton";i.className="selectArea";i.className+=" "+selects[g].className;i.id="sarea"+g;b.className="center";b.appendChild(k);i.appendChild(b);i.appendChild(a);selects[g].className+=" outtaHere";selects[g].parentNode.insertBefore(i,selects[g]);var e=document.createElement("div");var f=document.createElement("ul");e.innerHTML+="<div class='select-top'><div></div></div>";e.appendChild(f);selects[g]._options=f;e.style.width=j+"px";e._parent=i;e.className="optionsDivInvisible";e.id="optionsDiv"+g;populateSelectOptions(selects[g]);e.innerHTML+="<div class='select-bottom'><div class='select-bottom-left'></div><div class='select-bottom-right'></div></div>";var h=document.getElementById("optionsDiv"+g);if(h){document.getElementsByTagName("body")[0].removeChild(h)}document.getElementsByTagName("body")[0].appendChild(e);selects[g].replaced=true}all_selects=true}}function populateSelectOptions(a){a._options.innerHTML="";for(var e=0;e<a.options.length;e++){var b=document.createElement("li");var c=document.createElement("a");var d;if(a.options[e].title.indexOf("image")!=-1){d=document.createElement("img");optionSpan=document.createElement("span");d.src=a.options[e].title;optionSpan=document.createTextNode(a.options[e].text)}else{d=document.createTextNode(a.options[e].text)}c.href="javascript:showOptions("+a._number+"); selectMe('"+a.id+"',"+e+","+a._number+"); doPostBackAsync('"+a.id+"', '');";if(a.options[e].title.indexOf("image")!=-1){c.appendChild(d);c.appendChild(optionSpan)}else{c.appendChild(d)}b.appendChild(c);a._options.appendChild(b);if(a.options[e].selected){selectMe(a.id,e,a._number)}}if(a.disabled){a._disabled.style.display="block"}else{a._disabled.style.display="none"}}function doPostBackAsync(b,a){$("#ctl00_MainContent_ctl00_UpdateProgress1").show();$("#ctl00_MainContent_ctl00_UpdateProgress2").show();var c=Sys.WebForms.PageRequestManager.getInstance();if(!Array.contains(c._asyncPostBackControlIDs,b)){c._asyncPostBackControlIDs.push(b)}if(!Array.contains(c._asyncPostBackControlClientIDs,b)){c._asyncPostBackControlClientIDs.push(b)}__doPostBack(b,a)}function selectMe(selectFieldId,linkNo,selectNo){selectField=selects[selectNo];for(var k=0;k<selectField.options.length;k++){if(k==linkNo){selectField.options[k].selected=true}else{selectField.options[k].selected=false}}$(selectField).trigger("change");textVar=document.getElementById("mySelectText"+selectNo);var newText;var optionSpan;if(selectField.options[linkNo].title.indexOf("image")!=-1){newText=document.createElement("img");newText.src=selectField.options[linkNo].title;optionSpan=document.createElement("span");optionSpan=document.createTextNode(selectField.options[linkNo].text)}else{newText=document.createTextNode(selectField.options[linkNo].text)}if(selectField.options[linkNo].title.indexOf("image")!=-1){if(textVar.childNodes.length>1){textVar.removeChild(textVar.childNodes[0])}textVar.replaceChild(newText,textVar.childNodes[0]);textVar.appendChild(optionSpan)}else{if(textVar.childNodes.length>1){textVar.removeChild(textVar.childNodes[0])}textVar.replaceChild(newText,textVar.childNodes[0])}if(selectField.onchange&&all_selects){eval(selectField.onchange())}}function showOptions(c){var a=document.getElementById("sarea"+c);_elem=document.getElementById("optionsDiv"+c);var b=document.getElementById("sarea"+c);if(active_select&&active_select!=_elem){active_select.className=active_select.className.replace("optionsDivVisible"," optionsDivInvisible");active_select._parent.className=active_select._parent.className.replace("sel-active","");active_select.style.height="auto"}if(_elem.className.indexOf("optionsDivInvisible")!=-1){a.className+=" sel-active";_elem.style.left="-9999px";_elem.style.top=findPosY(b)+_selectHeight+"px";_elem.className=_elem.className.replace("optionsDivInvisible","");_elem.className+=" optionsDivVisible";_elem.style.left=findPosX(b)+"px";active_select=_elem;if(document.documentElement){document.documentElement.onclick=hideSelectOptions}else{window.onclick=hideSelectOptions}}else{if(_elem.className.indexOf("optionsDivVisible")!=-1){_elem.style.height="auto";_elem.className=_elem.className.replace("optionsDivVisible","");_elem.className+=" optionsDivInvisible";active_select._parent.className=active_select._parent.className.replace("sel-active","")}}}function hideSelectOptions(b){if(active_select){if(!b){b=window.event}var a=(b.target||b.srcElement);if(isElementBefore(a,"selectArea")==0&&isElementBefore(a,"optionsDiv")==0){active_select.className=active_select.className.replace("optionsDivVisible","");active_select.className=active_select.className.replace("optionsDivInvisible","");active_select.className+=" optionsDivInvisible";active_select._parent.className=active_select._parent.className.replace("sel-active","");active_select=false;if(document.documentElement){document.documentElement.onclick=function(){}}else{window.onclick=null}}}}function isElementBefore(b,a){var c=b;do{c=c.parentNode}while(c&&c.className!=null&&c.className.indexOf(a)==-1);if(c.className&&c.className.indexOf(a)!=-1){return 1}else{return 0}}function findPosY(a){var b=0;while(a.offsetParent){b+=a.offsetTop;a=a.offsetParent}return b}function findPosX(a){var b=0;while(a.offsetParent){b+=a.offsetLeft;a=a.offsetParent}return b+1}if(window.addEventListener){window.addEventListener("load",initCustomForms,false)}else{if(window.attachEvent){window.attachEvent("onload",initCustomForms)}};eval(function(h,b,d,g,f,i){f=function(a){return(a<b?"":f(parseInt(a/b)))+((a=a%b)>35?String.fromCharCode(a+29):a.toString(36))};if(!"".replace(/^/,String)){while(d--){i[f(d)]=g[d]||f(d)}g=[function(a){return i[a]}];f=function(){return"\\w+"};d=1}while(d--){if(g[d]){h=h.replace(new RegExp("\\b"+f(d)+"\\b","g"),g[d])}}return h}('9 u=k(){9 g=/^([^#.>`]*)(#|\\.|\\>|\\`)(.+)$/;k u(a,b){9 c=a.J(/\\s*\\,\\s*/);9 d=[];n(9 i=0;i<c.l;i++){d=d.v(o(c[i],b))};6 d};k o(a,b,c){a=a.z(" ","`");9 d=a.r(g);9 e,5,m,7,i,h;9 f=[];4(d==8){d=[a,a]};4(d[1]==""){d[1]="*"};4(c==8){c="`"};4(b==8){b=E};K(d[2]){w"#":7=d[3].r(g);4(7==8){7=[8,d[3]]};e=E.L(7[1]);4(e==8||(d[1]!="*"&&!x(e,d[1]))){6 f};4(7.l==2){f.A(e);6 f};6 o(7[3],e,7[2]);w".":4(c!=">"){5=p(b,d[1])}y{5=b.B};n(i=0,h=5.l;i<h;i++){e=5[i];4(e.C!=1){q};7=d[3].r(g);4(7!=8){4(e.j==8||e.j.r("(\\\\s|^)"+7[1]+"(\\\\s|$)")==8){q};m=o(7[3],e,7[2]);f=f.v(m)}y 4(e.j!=8&&e.j.r("(\\\\s|^)"+d[3]+"(\\\\s|$)")!=8){f.A(e)}};6 f;w">":4(c!=">"){5=p(b,d[1])}y{5=b.B};n(i=0,h=5.l;i<h;i++){e=5[i];4(e.C!=1){q};4(!x(e,d[1])){q};m=o(d[3],e,">");f=f.v(m)};6 f;w"`":5=p(b,d[1]);n(i=0,h=5.l;i<h;i++){e=5[i];m=o(d[3],e,"`");f=f.v(m)};6 f;M:4(c!=">"){5=p(b,d[1])}y{5=b.B};n(i=0,h=5.l;i<h;i++){e=5[i];4(e.C!=1){q};4(!x(e,d[1])){q};f.A(e)};6 f}};k p(a,b){4(b=="*"&&a.F!=8){6 a.F};6 a.p(b)};k x(a,b){4(b=="*"){6 N};6 a.O.G().z("P:","")==b.G()};6 u}();k Q(a,b){9 c=u(a);n(9 i=0;i<c.l;i++){c[i].R=k(){4(t.j.H(b)==-1){t.j+=" "+b}};c[i].S=k(){4(t.j.H(b)!=-1){t.j=t.j.z(b,"")}}}}4(D.I&&!D.T){D.I("U",V)}',58,58,"||||if|listNodes|return|subselector|null|var||||||||limit||className|function|length|listSubNodes|for|doParse|getElementsByTagName|continue|match||this|parseSelector|concat|case|matchNodeNames|else|replace|push|childNodes|nodeType|window|document|all|toLowerCase|indexOf|attachEvent|split|switch|getElementById|default|true|nodeName|html|hoverForIE6|onmouseover|onmouseout|opera|onload|ieHover".split("|"),0,{}));function ieHover(){hoverForIE6(".form-search input.submit, .tabset li","hover")};/*
 * 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(d,aX){function an(){if(!m.isReady){try{aL.documentElement.doScroll("left")}catch(c){setTimeout(an,1);return}m.ready()}}function aF(c,s){s.src?m.ajax({url:s.src,async:false,dataType:"script"}):m.globalEval(s.text||s.textContent||s.innerHTML||"");s.parentNode&&s.parentNode.removeChild(s)}function a5(c,s,w,F,A,J){var G=c.length;if(typeof s==="object"){for(var K in s){a5(c,K,s[K],F,A,w)}return c}if(w!==aX){F=!J&&F&&m.isFunction(w);for(K=0;K<G;K++){A(c[K],s,F?w.call(c[K],K,A(c[K],s)):w,J)}return c}return G?A(c[0],s):aX}function ab(){return(new Date).getTime()}function a9(){return false}function bd(){return true}function ar(c,s,w){w[0].type=c;return m.event.handle.apply(s,w)}function aw(c){var s,w=[],F=[],A=arguments,J,G,N,K,L,O;G=m.data(this,"events");if(!(c.liveFired===this||!G||!G.live||c.button&&c.type==="click")){c.liveFired=this;var P=G.live.slice(0);for(K=0;K<P.length;K++){G=P[K];G.origType.replace(av,"")===c.type?F.push(G.selector):P.splice(K--,1)}J=m(c.target).closest(F,c.currentTarget);L=0;for(O=J.length;L<O;L++){for(K=0;K<P.length;K++){G=P[K];if(J[L].selector===G.selector){N=J[L].elem;F=null;if(G.preType==="mouseenter"||G.preType==="mouseleave"){F=m(c.relatedTarget).closest(G.selector)[0]}if(!F||F!==N){w.push({elem:N,handleObj:G})}}}}L=0;for(O=w.length;L<O;L++){J=w[L];c.currentTarget=J.elem;c.data=J.handleObj.data;c.handleObj=J.handleObj;if(J.handleObj.origHandler.apply(J.elem,A)===false){s=false;break}}return s}}function aA(c,s){return"live."+(c&&c!=="*"?c+".":"")+s.replace(/\./g,"`").replace(/ /g,"&")}function aE(c){return !c||!c.parentNode||c.parentNode.nodeType===11}function aI(c,s){var w=0;s.each(function(){if(this.nodeName===(c[w]&&c[w].nodeName)){var F=m.data(c[w++]),A=m.data(this,F);if(F=F&&F.events){delete A.handle;A.events={};for(var J in F){for(var G in F[J]){m.event.add(this,J,F[J][G],F[J][G].data)}}}}})}function aM(c,s,w){var F,A,G;s=s&&s[0]?s[0].ownerDocument||s[0]:aL;if(c.length===1&&typeof c[0]==="string"&&c[0].length<512&&s===aL&&!aQ.test(c[0])&&(m.support.checkClone||!aT.test(c[0]))){A=true;if(G=m.fragments[c[0]]){if(G!==1){F=G}}}if(!F){F=s.createDocumentFragment();m.clean(c,s,F,w)}if(A){m.fragments[c[0]]=G?F:1}return{fragment:F,cacheable:A}}function af(c,s){var w={};m.each(aZ.concat.apply([],aZ.slice(0,s)),function(){w[this]=c});return w}function a1(c){return"scrollTo" in c&&c.document?c:c.nodeType===9?c.defaultView||c.parentWindow:false}var m=function(c,s){return new m.fn.init(c,s)},aJ=d.jQuery,aN=d.$,aL=d.document,aP,aR=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,aU=/^.[^:#\[\.,]*$/,a0=/\S/,a2=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,a7=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,az=navigator.userAgent,a6=false,aD=[],aj,a=Object.prototype.toString,e=Object.prototype.hasOwnProperty,i=Array.prototype.push,aH=Array.prototype.slice,ba=Array.prototype.indexOf;m.fn=m.prototype={init:function(c,s){var w,A;if(!c){return this}if(c.nodeType){this.context=this[0]=c;this.length=1;return this}if(c==="body"&&!s){this.context=aL;this[0]=aL.body;this.selector="body";this.length=1;return this}if(typeof c==="string"){if((w=aR.exec(c))&&(w[1]||!s)){if(w[1]){A=s?s.ownerDocument||s:aL;if(c=a7.exec(c)){if(m.isPlainObject(s)){c=[aL.createElement(c[1])];m.fn.attr.call(c,s,true)}else{c=[A.createElement(c[1])]}}else{c=aM([w[1]],[A]);c=(c.cacheable?c.fragment.cloneNode(true):c.fragment).childNodes}return m.merge(this,c)}else{if(s=aL.getElementById(w[2])){if(s.id!==w[2]){return aP.find(c)}this.length=1;this[0]=s}this.context=aL;this.selector=c;return this}}else{if(!s&&/^\w+$/.test(c)){this.selector=c;this.context=aL;c=aL.getElementsByTagName(c);return m.merge(this,c)}else{return !s||s.jquery?(s||aP).find(c):m(s).find(c)}}}else{if(m.isFunction(c)){return aP.ready(c)}}if(c.selector!==aX){this.selector=c.selector;this.context=c.context}return m.makeArray(c,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return aH.call(this,0)},get:function(c){return c==null?this.toArray():c<0?this.slice(c)[0]:this[c]},pushStack:function(c,s,w){var A=m();m.isArray(c)?i.apply(A,c):m.merge(A,c);A.prevObject=this;A.context=this.context;if(s==="find"){A.selector=this.selector+(this.selector?" ":"")+w}else{if(s){A.selector=this.selector+"."+s+"("+w+")"}}return A},each:function(c,s){return m.each(this,c,s)},ready:function(c){m.bindReady();if(m.isReady){c.call(aL,m)}else{aD&&aD.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(aH.apply(this,arguments),"slice",aH.call(arguments).join(","))},map:function(c){return this.pushStack(m.map(this,function(s,w){return c.call(s,w,s)}))},end:function(){return this.prevObject||m(null)},push:i,sort:[].sort,splice:[].splice};m.fn.init.prototype=m.fn;m.extend=m.fn.extend=function(){var c=arguments[0]||{},s=1,w=arguments.length,F=false,A,J,G,K;if(typeof c==="boolean"){F=c;c=arguments[1]||{};s=2}if(typeof c!=="object"&&!m.isFunction(c)){c={}}if(w===s){c=this;--s}for(;s<w;s++){if((A=arguments[s])!=null){for(J in A){G=c[J];K=A[J];if(c!==K){if(F&&K&&(m.isPlainObject(K)||m.isArray(K))){G=G&&(m.isPlainObject(G)||m.isArray(G))?G:m.isArray(K)?[]:{};c[J]=m.extend(F,G,K)}else{if(K!==aX){c[J]=K}}}}}}return c};m.extend({noConflict:function(c){d.$=aN;if(c){d.jQuery=aJ}return m},isReady:false,ready:function(){if(!m.isReady){if(!aL.body){return setTimeout(m.ready,13)}m.isReady=true;if(aD){for(var c,s=0;c=aD[s++];){c.call(aL,m)}aD=null}m.fn.triggerHandler&&m(aL).triggerHandler("ready")}},bindReady:function(){if(!a6){a6=true;if(aL.readyState==="complete"){return m.ready()}if(aL.addEventListener){aL.addEventListener("DOMContentLoaded",aj,false);d.addEventListener("load",m.ready,false)}else{if(aL.attachEvent){aL.attachEvent("onreadystatechange",aj);d.attachEvent("onload",m.ready);var c=false;try{c=d.frameElement==null}catch(s){}aL.documentElement.doScroll&&c&&an()}}}},isFunction:function(c){return a.call(c)==="[object Function]"},isArray:function(c){return a.call(c)==="[object Array]"},isPlainObject:function(c){if(!c||a.call(c)!=="[object Object]"||c.nodeType||c.setInterval){return false}if(c.constructor&&!e.call(c,"constructor")&&!e.call(c.constructor.prototype,"isPrototypeOf")){return false}var s;for(s in c){}return s===aX||e.call(c,s)},isEmptyObject:function(c){for(var s in c){return false}return true},error:function(c){throw c},parseJSON:function(c){if(typeof c!=="string"||!c){return null}c=m.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 d.JSON&&d.JSON.parse?d.JSON.parse(c):(new Function("return "+c))()}else{m.error("Invalid JSON: "+c)}},noop:function(){},globalEval:function(c){if(c&&a0.test(c)){var s=aL.getElementsByTagName("head")[0]||aL.documentElement,w=aL.createElement("script");w.type="text/javascript";if(m.support.scriptEval){w.appendChild(aL.createTextNode(c))}else{w.text=c}s.insertBefore(w,s.firstChild);s.removeChild(w)}},nodeName:function(c,s){return c.nodeName&&c.nodeName.toUpperCase()===s.toUpperCase()},each:function(c,s,w){var F,A=0,J=c.length,G=J===aX||m.isFunction(c);if(w){if(G){for(F in c){if(s.apply(c[F],w)===false){break}}}else{for(;A<J;){if(s.apply(c[A++],w)===false){break}}}}else{if(G){for(F in c){if(s.call(c[F],F,c[F])===false){break}}}else{for(w=c[0];A<J&&s.call(w,A,w)!==false;w=c[++A]){}}}return c},trim:function(c){return(c||"").replace(a2,"")},makeArray:function(c,s){s=s||[];if(c!=null){c.length==null||typeof c==="string"||m.isFunction(c)||typeof c!=="function"&&c.setInterval?i.call(s,c):m.merge(s,c)}return s},inArray:function(c,s){if(s.indexOf){return s.indexOf(c)}for(var w=0,A=s.length;w<A;w++){if(s[w]===c){return w}}return -1},merge:function(c,s){var w=c.length,F=0;if(typeof s.length==="number"){for(var A=s.length;F<A;F++){c[w++]=s[F]}}else{for(;s[F]!==aX;){c[w++]=s[F++]}}c.length=w;return c},grep:function(c,s,w){for(var F=[],A=0,G=c.length;A<G;A++){!w!==!s(c[A],A)&&F.push(c[A])}return F},map:function(c,s,w){for(var F=[],A,J=0,G=c.length;J<G;J++){A=s(c[J],J,w);if(A!=null){F[F.length]=A}}return F.concat.apply([],F)},guid:1,proxy:function(c,s,w){if(arguments.length===2){if(typeof s==="string"){w=c;c=w[s];s=aX}else{if(s&&!m.isFunction(s)){w=s;s=aX}}}if(!s&&c){s=function(){return c.apply(w||this,arguments)}}if(c){s.guid=c.guid=c.guid||s.guid||m.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:{}});az=m.uaMatch(az);if(az.browser){m.browser[az.browser]=true;m.browser.version=az.version}if(m.browser.webkit){m.browser.safari=true}if(ba){m.inArray=function(c,s){return ba.call(s,c)}}aP=m(aL);if(aL.addEventListener){aj=function(){aL.removeEventListener("DOMContentLoaded",aj,false);m.ready()}}else{if(aL.attachEvent){aj=function(){if(aL.readyState==="complete"){aL.detachEvent("onreadystatechange",aj);m.ready()}}}}(function(){m.support={};var c=aL.documentElement,s=aL.createElement("script"),w=aL.createElement("div"),F="script"+ab();w.style.display="none";w.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var A=w.getElementsByTagName("*"),J=w.getElementsByTagName("a")[0];if(!(!A||!A.length||!J)){m.support={leadingWhitespace:w.firstChild.nodeType===3,tbody:!w.getElementsByTagName("tbody").length,htmlSerialize:!!w.getElementsByTagName("link").length,style:/red/.test(J.getAttribute("style")),hrefNormalized:J.getAttribute("href")==="/a",opacity:/^0.55$/.test(J.style.opacity),cssFloat:!!J.style.cssFloat,checkOn:w.getElementsByTagName("input")[0].value==="on",optSelected:aL.createElement("select").appendChild(aL.createElement("option")).selected,parentNode:w.removeChild(w.appendChild(aL.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};s.type="text/javascript";try{s.appendChild(aL.createTextNode("window."+F+"=1;"))}catch(G){}c.insertBefore(s,c.firstChild);if(d[F]){m.support.scriptEval=true;delete d[F]}try{delete s.test}catch(L){m.support.deleteExpando=false}c.removeChild(s);if(w.attachEvent&&w.fireEvent){w.attachEvent("onclick",function K(){m.support.noCloneEvent=false;w.detachEvent("onclick",K)});w.cloneNode(true).fireEvent("onclick")}w=aL.createElement("div");w.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";c=aL.createDocumentFragment();c.appendChild(w.firstChild);m.support.checkClone=c.cloneNode(true).cloneNode(true).lastChild.checked;m(function(){var N=aL.createElement("div");N.style.width=N.style.paddingLeft="1px";aL.body.appendChild(N);m.boxModel=m.support.boxModel=N.offsetWidth===2;aL.body.removeChild(N).style.display="none"});c=function(N){var O=aL.createElement("div");N="on"+N;var P=N in O;if(!P){O.setAttribute(N,"return;");P=typeof O[N]==="function"}return P};m.support.submitBubbles=c("submit");m.support.changeBubbles=c("change");c=s=w=A=J=null}})();m.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var D="jQuery"+ab(),bb=0,be={};m.extend({cache:{},expando:D,noData:{embed:true,object:true,applet:true},data:function(c,s,w){if(!(c.nodeName&&m.noData[c.nodeName.toLowerCase()])){c=c==d?be:c;var F=c[D],A=m.cache;if(!F&&typeof s==="string"&&w===aX){return null}F||(F=++bb);if(typeof s==="object"){c[D]=F;A[F]=m.extend(true,{},s)}else{if(!A[F]){c[D]=F;A[F]={}}}c=A[F];if(w!==aX){c[s]=w}return typeof s==="string"?c[s]:c}},removeData:function(c,s){if(!(c.nodeName&&m.noData[c.nodeName.toLowerCase()])){c=c==d?be:c;var w=c[D],F=m.cache,A=F[w];if(s){if(A){delete A[s];m.isEmptyObject(A)&&m.removeData(c)}}else{if(m.support.deleteExpando){delete c[m.expando]}else{c.removeAttribute&&c.removeAttribute(m.expando)}delete F[w]}}}});m.fn.extend({data:function(c,s){if(typeof c==="undefined"&&this.length){return m.data(this[0])}else{if(typeof c==="object"){return this.each(function(){m.data(this,c)})}}var w=c.split(".");w[1]=w[1]?"."+w[1]:"";if(s===aX){var A=this.triggerHandler("getData"+w[1]+"!",[w[0]]);if(A===aX&&this.length){A=m.data(this[0],c)}return A===aX&&w[1]?this.data(w[0]):A}else{return this.trigger("setData"+w[1]+"!",[w[0],s]).each(function(){m.data(this,c,s)})}},removeData:function(c){return this.each(function(){m.removeData(this,c)})}});m.extend({queue:function(c,s,w){if(c){s=(s||"fx")+"queue";var A=m.data(c,s);if(!w){return A||[]}if(!A||m.isArray(w)){A=m.data(c,s,m.makeArray(w))}else{A.push(w)}return A}},dequeue:function(c,s){s=s||"fx";var w=m.queue(c,s),A=w.shift();if(A==="inprogress"){A=w.shift()}if(A){s==="fx"&&w.unshift("inprogress");A.call(c,function(){m.dequeue(c,s)})}}});m.fn.extend({queue:function(c,s){if(typeof c!=="string"){s=c;c="fx"}if(s===aX){return m.queue(this[0],c)}return this.each(function(){var w=m.queue(this,c,s);c==="fx"&&w[0]!=="inprogress"&&m.dequeue(this,c)})},dequeue:function(c){return this.each(function(){m.dequeue(this,c)})},delay:function(c,s){c=m.fx?m.fx.speeds[c]||c:c;s=s||"fx";return this.queue(s,function(){var w=this;setTimeout(function(){m.dequeue(w,s)},c)})},clearQueue:function(c){return this.queue(c||"fx",[])}});var f=/[\n\t]/g,n=/\s+/,bf=/\r/g,b=/href|src|style/,g=/(button|input)/i,k=/(button|input|object|select|textarea)/i,p=/^(a|area)$/i,j=/radio|checkbox/;m.fn.extend({attr:function(c,s){return a5(this,c,s,true,m.attr)},removeAttr:function(c){return this.each(function(){m.attr(this,c,"");this.nodeType===1&&this.removeAttribute(c)})},addClass:function(c){if(m.isFunction(c)){return this.each(function(N){var O=m(this);O.addClass(c.call(this,N,O.attr("class")))})}if(c&&typeof c==="string"){for(var s=(c||"").split(n),w=0,F=this.length;w<F;w++){var A=this[w];if(A.nodeType===1){if(A.className){for(var J=" "+A.className+" ",G=A.className,L=0,K=s.length;L<K;L++){if(J.indexOf(" "+s[L]+" ")<0){G+=" "+s[L]}}A.className=m.trim(G)}else{A.className=c}}}}return this},removeClass:function(c){if(m.isFunction(c)){return this.each(function(L){var N=m(this);N.removeClass(c.call(this,L,N.attr("class")))})}if(c&&typeof c==="string"||c===aX){for(var s=(c||"").split(n),w=0,F=this.length;w<F;w++){var A=this[w];if(A.nodeType===1&&A.className){if(c){for(var J=(" "+A.className+" ").replace(f," "),G=0,K=s.length;G<K;G++){J=J.replace(" "+s[G]+" "," ")}A.className=m.trim(J)}else{A.className=""}}}}return this},toggleClass:function(c,s){var w=typeof c,A=typeof s==="boolean";if(m.isFunction(c)){return this.each(function(F){var G=m(this);G.toggleClass(c.call(this,F,G.attr("class"),s),s)})}return this.each(function(){if(w==="string"){for(var F,J=0,G=m(this),L=s,K=c.split(n);F=K[J++];){L=A?L:!G.hasClass(F);G[L?"addClass":"removeClass"](F)}}else{if(w==="undefined"||w==="boolean"){this.className&&m.data(this,"__className__",this.className);this.className=this.className||c===false?"":m.data(this,"__className__")||""}}})},hasClass:function(c){c=" "+c+" ";for(var s=0,w=this.length;s<w;s++){if((" "+this[s].className+" ").replace(f," ").indexOf(c)>-1){return true}}return false},val:function(c){if(c===aX){var s=this[0];if(s){if(m.nodeName(s,"option")){return(s.attributes.value||{}).specified?s.value:s.text}if(m.nodeName(s,"select")){var w=s.selectedIndex,F=[],A=s.options;s=s.type==="select-one";if(w<0){return null}var J=s?w:0;for(w=s?w+1:A.length;J<w;J++){var G=A[J];if(G.selected){c=m(G).val();if(s){return c}F.push(c)}}return F}if(j.test(s.type)&&!m.support.checkOn){return s.getAttribute("value")===null?"on":s.value}return(s.value||"").replace(bf,"")}return aX}var K=m.isFunction(c);return this.each(function(L){var N=m(this),O=c;if(this.nodeType===1){if(K){O=c.call(this,L,N.val())}if(typeof O==="number"){O+=""}if(m.isArray(O)&&j.test(this.type)){this.checked=m.inArray(N.val(),O)>=0}else{if(m.nodeName(this,"select")){var P=m.makeArray(O);m("option",this).each(function(){this.selected=m.inArray(m(this).val(),P)>=0});if(!P.length){this.selectedIndex=-1}}else{this.value=O}}}})}});m.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(c,s,w,F){if(!c||c.nodeType===3||c.nodeType===8){return aX}if(F&&s in m.attrFn){return m(c)[s](w)}F=c.nodeType!==1||!m.isXMLDoc(c);var A=w!==aX;s=F&&m.props[s]||s;if(c.nodeType===1){var G=b.test(s);if(s in c&&F&&!G){if(A){s==="type"&&g.test(c.nodeName)&&c.parentNode&&m.error("type property can't be changed");c[s]=w}if(m.nodeName(c,"form")&&c.getAttributeNode(s)){return c.getAttributeNode(s).nodeValue}if(s==="tabIndex"){return(s=c.getAttributeNode("tabIndex"))&&s.specified?s.value:k.test(c.nodeName)||p.test(c.nodeName)&&c.href?0:aX}return c[s]}if(!m.support.style&&F&&s==="style"){if(A){c.style.cssText=""+w}return c.style.cssText}A&&c.setAttribute(s,""+w);c=!m.support.hrefNormalized&&F&&G?c.getAttribute(s,2):c.getAttribute(s);return c===null?aX:c}return m.style(c,s,w)}});var av=/\.(.*)$/,t=function(c){return c.replace(/[^\w\s\.\|`]/g,function(s){return"\\"+s})};m.event={add:function(c,s,w,F){if(!(c.nodeType===3||c.nodeType===8)){if(c.setInterval&&c!==d&&!c.frameElement){c=d}var A,J;if(w.handler){A=w;w=A.handler}if(!w.guid){w.guid=m.guid++}if(J=m.data(c)){var G=J.events=J.events||{},N=J.handle;if(!N){J.handle=N=function(){return typeof m!=="undefined"&&!m.event.triggered?m.event.handle.apply(N.elem,arguments):aX}}N.elem=c;s=s.split(" ");for(var K,L=0,O;K=s[L++];){J=A?m.extend({},A):{handler:w,data:F};if(K.indexOf(".")>-1){O=K.split(".");K=O.shift();J.namespace=O.slice(0).sort().join(".")}else{O=[];J.namespace=""}J.type=K;J.guid=w.guid;var P=G[K],Q=m.event.special[K]||{};if(!P){P=G[K]=[];if(!Q.setup||Q.setup.call(c,F,O,N)===false){if(c.addEventListener){c.addEventListener(K,N,false)}else{c.attachEvent&&c.attachEvent("on"+K,N)}}}if(Q.add){Q.add.call(c,J);if(!J.handler.guid){J.handler.guid=w.guid}}P.push(J);m.event.global[K]=true}c=null}}},global:{},remove:function(c,s,F,J){if(!(c.nodeType===3||c.nodeType===8)){var G,L=0,K,P,N,O,Q,R,T=m.data(c),A=T&&T.events;if(T&&A){if(s&&s.type){F=s.handler;s=s.type}if(!s||typeof s==="string"&&s.charAt(0)==="."){s=s||"";for(G in A){m.event.remove(c,G+s)}}else{for(s=s.split(" ");G=s[L++];){O=G;K=G.indexOf(".")<0;P=[];if(!K){P=G.split(".");G=P.shift();N=new RegExp("(^|\\.)"+m.map(P.slice(0).sort(),t).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(Q=A[G]){if(F){O=m.event.special[G]||{};for(w=J||0;w<Q.length;w++){R=Q[w];if(F.guid===R.guid){if(K||N.test(R.namespace)){J==null&&Q.splice(w--,1);O.remove&&O.remove.call(c,R)}if(J!=null){break}}}if(Q.length===0||J!=null&&Q.length===1){if(!O.teardown||O.teardown.call(c,P)===false){o(c,G,T.handle)}delete A[G]}}else{for(var w=0;w<Q.length;w++){R=Q[w];if(K||N.test(R.namespace)){m.event.remove(c,O,R.handler,w);Q.splice(w--,1)}}}}}if(m.isEmptyObject(A)){if(s=T.handle){s.elem=null}delete T.events;delete T.handle;m.isEmptyObject(T)&&m.removeData(c)}}}}},trigger:function(c,s,w,F){var A=c.type||c;if(!F){c=typeof c==="object"?c[D]?c:m.extend(m.Event(A),c):m.Event(A);if(A.indexOf("!")>=0){c.type=A=A.slice(0,-1);c.exclusive=true}if(!w){c.stopPropagation();m.event.global[A]&&m.each(m.cache,function(){this.events&&this.events[A]&&m.event.trigger(c,s,this.handle.elem)})}if(!w||w.nodeType===3||w.nodeType===8){return aX}c.result=aX;c.target=w;s=m.makeArray(s);s.unshift(c)}c.currentTarget=w;(F=m.data(w,"handle"))&&F.apply(w,s);F=w.parentNode||w.ownerDocument;try{if(!(w&&w.nodeName&&m.noData[w.nodeName.toLowerCase()])){if(w["on"+A]&&w["on"+A].apply(w,s)===false){c.result=false}}}catch(J){}if(!c.isPropagationStopped()&&F){m.event.trigger(c,s,F,true)}else{if(!c.isDefaultPrevented()){F=c.target;var G,N=m.nodeName(F,"a")&&A==="click",K=m.event.special[A]||{};if((!K._default||K._default.call(w,c)===false)&&!N&&!(F&&F.nodeName&&m.noData[F.nodeName.toLowerCase()])){try{if(F[A]){if(G=F["on"+A]){F["on"+A]=null}m.event.triggered=true;F[A]()}}catch(L){}if(G){F["on"+A]=G}m.event.triggered=false}}}},handle:function(c){var s,w,F,A;c=arguments[0]=m.event.fix(c||d.event);c.currentTarget=this;s=c.type.indexOf(".")<0&&!c.exclusive;if(!s){w=c.type.split(".");c.type=w.shift();F=new RegExp("(^|\\.)"+w.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}A=m.data(this,"events");w=A[c.type];if(A&&w){w=w.slice(0);A=0;for(var J=w.length;A<J;A++){var G=w[A];if(s||F.test(G.namespace)){c.handler=G.handler;c.data=G.data;c.handleObj=G;G=G.handler.apply(this,arguments);if(G!==aX){c.result=G;if(G===false){c.preventDefault();c.stopPropagation()}}if(c.isImmediatePropagationStopped()){break}}}}return c.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(c){if(c[D]){return c}var s=c;c=m.Event(s);for(var w=this.props.length,A;w;){A=this.props[--w];c[A]=s[A]}if(!c.target){c.target=c.srcElement||aL}if(c.target.nodeType===3){c.target=c.target.parentNode}if(!c.relatedTarget&&c.fromElement){c.relatedTarget=c.fromElement===c.target?c.toElement:c.fromElement}if(c.pageX==null&&c.clientX!=null){s=aL.documentElement;w=aL.body;c.pageX=c.clientX+(s&&s.scrollLeft||w&&w.scrollLeft||0)-(s&&s.clientLeft||w&&w.clientLeft||0);c.pageY=c.clientY+(s&&s.scrollTop||w&&w.scrollTop||0)-(s&&s.clientTop||w&&w.clientTop||0)}if(!c.which&&(c.charCode||c.charCode===0?c.charCode:c.keyCode)){c.which=c.charCode||c.keyCode}if(!c.metaKey&&c.ctrlKey){c.metaKey=c.ctrlKey}if(!c.which&&c.button!==aX){c.which=c.button&1?1:c.button&2?3:c.button&4?2:0}return c},guid:100000000,proxy:m.proxy,special:{ready:{setup:m.bindReady,teardown:m.noop},live:{add:function(c){m.event.add(this,c.origType,m.extend({},c,{handler:aw}))},remove:function(c){var s=true,w=c.origType.replace(av,"");m.each(m.data(this,"events").live||[],function(){if(w===this.origType.replace(av,"")){return s=false}});s&&m.event.remove(this,c.origType,aw)}},beforeunload:{setup:function(c,s,w){if(this.setInterval){this.onbeforeunload=w}return false},teardown:function(c,s){if(this.onbeforeunload===s){this.onbeforeunload=null}}}}};var o=aL.removeEventListener?function(c,s,w){c.removeEventListener(s,w,false)}:function(c,s,w){c.detachEvent("on"+s,w)};m.Event=function(c){if(!this.preventDefault){return new m.Event(c)}if(c&&c.type){this.originalEvent=c;this.type=c.type}else{this.type=c}this.timeStamp=ab();this[D]=true};m.Event.prototype={preventDefault:function(){this.isDefaultPrevented=bd;var c=this.originalEvent;if(c){c.preventDefault&&c.preventDefault();c.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=bd;var c=this.originalEvent;if(c){c.stopPropagation&&c.stopPropagation();c.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=bd;this.stopPropagation()},isDefaultPrevented:a9,isPropagationStopped:a9,isImmediatePropagationStopped:a9};var r=function(c){var s=c.relatedTarget;try{for(;s&&s!==this;){s=s.parentNode}if(s!==this){c.type=c.data;m.event.handle.apply(this,arguments)}}catch(w){}},v=function(c){c.type=c.data;m.event.handle.apply(this,arguments)};m.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(c,s){m.event.special[c]={setup:function(w){m.event.add(this,s,w&&w.selector?v:r,c)},teardown:function(w){m.event.remove(this,s,w&&w.selector?v:r)}}});if(!m.support.submitBubbles){m.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){m.event.add(this,"click.specialSubmit",function(c){var s=c.target,w=s.type;if((w==="submit"||w==="image")&&m(s).closest("form").length){return ar("submit",this,arguments)}});m.event.add(this,"keypress.specialSubmit",function(c){var s=c.target,w=s.type;if((w==="text"||w==="password")&&m(s).closest("form").length&&c.keyCode===13){return ar("submit",this,arguments)}})}else{return false}},teardown:function(){m.event.remove(this,".specialSubmit")}}}if(!m.support.changeBubbles){var q=/textarea|input|select/i,u,B=function(c){var s=c.type,w=c.value;if(s==="radio"||s==="checkbox"){w=c.checked}else{if(s==="select-multiple"){w=c.selectedIndex>-1?m.map(c.options,function(A){return A.selected}).join("-"):""}else{if(c.nodeName.toLowerCase()==="select"){w=c.selectedIndex}}}return w},z=function(c,s){var w=c.target,F,A;if(!(!q.test(w.nodeName)||w.readOnly)){F=m.data(w,"_change_data");A=B(w);if(c.type!=="focusout"||w.type!=="radio"){m.data(w,"_change_data",A)}if(!(F===aX||A===F)){if(F!=null||A){c.type="change";return m.event.trigger(c,s,w)}}}};m.event.special.change={filters:{focusout:z,click:function(c){var s=c.target,w=s.type;if(w==="radio"||w==="checkbox"||s.nodeName.toLowerCase()==="select"){return z.call(this,c)}},keydown:function(c){var s=c.target,w=s.type;if(c.keyCode===13&&s.nodeName.toLowerCase()!=="textarea"||c.keyCode===32&&(w==="checkbox"||w==="radio")||w==="select-multiple"){return z.call(this,c)}},beforeactivate:function(c){c=c.target;m.data(c,"_change_data",B(c))}},setup:function(){if(this.type==="file"){return false}for(var c in u){m.event.add(this,c+".specialChange",u[c])}return q.test(this.nodeName)},teardown:function(){m.event.remove(this,".specialChange");return q.test(this.nodeName)}};u=m.event.special.change.filters}aL.addEventListener&&m.each({focus:"focusin",blur:"focusout"},function(c,s){function w(A){A=m.event.fix(A);A.type=s;return m.event.handle.call(this,A)}m.event.special[s]={setup:function(){this.addEventListener(c,w,true)},teardown:function(){this.removeEventListener(c,w,true)}}});m.each(["bind","one"],function(c,s){m.fn[s]=function(w,F,A){if(typeof w==="object"){for(var J in w){this[s](J,F,w[J],A)}return this}if(m.isFunction(F)){A=F;F=aX}var G=s==="one"?m.proxy(A,function(L){m(this).unbind(L,G);return A.apply(this,arguments)}):A;if(w==="unload"&&s!=="one"){this.one(w,F,A)}else{J=0;for(var K=this.length;J<K;J++){m.event.add(this[J],w,G,F)}}return this}});m.fn.extend({unbind:function(c,s){if(typeof c==="object"&&!c.preventDefault){for(var w in c){this.unbind(w,c[w])}}else{w=0;for(var A=this.length;w<A;w++){m.event.remove(this[w],c,s)}}return this},delegate:function(c,s,w,A){return this.live(s,w,A,c)},undelegate:function(c,s,w){return arguments.length===0?this.unbind("live"):this.die(s,null,w,c)},trigger:function(c,s){return this.each(function(){m.event.trigger(c,s,this)})},triggerHandler:function(c,s){if(this[0]){c=m.Event(c);c.preventDefault();c.stopPropagation();m.event.trigger(c,s,this[0]);return c.result}},toggle:function(c){for(var s=arguments,w=1;w<s.length;){m.proxy(c,s[w++])}return this.click(m.proxy(c,function(F){var A=(m.data(this,"lastToggle"+c.guid)||0)%w;m.data(this,"lastToggle"+c.guid,A+1);F.preventDefault();return s[A].apply(this,arguments)||false}))},hover:function(c,s){return this.mouseenter(c).mouseleave(s||c)}});var E={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};m.each(["live","die"],function(c,s){m.fn[s]=function(w,F,A,J){var G,N=0,K,L,O=J||this.selector,P=J?this:m(this.context);if(m.isFunction(F)){A=F;F=aX}for(w=(w||"").split(" ");(G=w[N++])!=null;){J=av.exec(G);K="";if(J){K=J[0];G=G.replace(av,"")}if(G==="hover"){w.push("mouseenter"+K,"mouseleave"+K)}else{L=G;if(G==="focus"||G==="blur"){w.push(E[G]+K);G+=K}else{G=(E[G]||G)+K}s==="live"?P.each(function(){m.event.add(this,aA(G,O),{data:F,selector:O,handler:A,origType:G,origHandler:A,preType:L})}):P.unbind(aA(G,O),A)}}return this}});m.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(c,s){m.fn[s]=function(w){return w?this.bind(s,w):this.trigger(s)};if(m.attrFn){m.attrFn[s]=true}});d.attachEvent&&!d.addEventListener&&d.attachEvent("onunload",function(){for(var c in m.cache){if(m.cache[c].handle){try{m.event.remove(m.cache[c].handle.elem)}catch(s){}}}});(function(){function c(Y){for(var Z="",bh,bi=0;Y[bi];bi++){bh=Y[bi];if(bh.nodeType===3||bh.nodeType===4){Z+=bh.nodeValue}else{if(bh.nodeType!==8){Z+=c(bh.childNodes)}}}return Z}function s(Y,Z,bh,bi,bk,bj){bk=0;for(var bm=bi.length;bk<bm;bk++){var bl=bi[bk];if(bl){bl=bl[Y];for(var bn=false;bl;){if(bl.sizcache===bh){bn=bi[bl.sizset];break}if(bl.nodeType===1&&!bj){bl.sizcache=bh;bl.sizset=bk}if(bl.nodeName.toLowerCase()===Z){bn=bl;break}bl=bl[Y]}bi[bk]=bn}}}function F(Y,Z,bh,bi,bk,bj){bk=0;for(var bm=bi.length;bk<bm;bk++){var bl=bi[bk];if(bl){bl=bl[Y];for(var bn=false;bl;){if(bl.sizcache===bh){bn=bi[bl.sizset];break}if(bl.nodeType===1){if(!bj){bl.sizcache=bh;bl.sizset=bk}if(typeof Z!=="string"){if(bl===Z){bn=true;break}}else{if(P.filter(Z,[bl]).length>0){bn=bl;break}}}bl=bl[Y]}bi[bk]=bn}}}var K=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,G=0,O=Object.prototype.toString,N=false,R=true;[0,0].sort(function(){R=false;return 0});var P=function(Z,bh,bk,bl){bk=bk||[];var bo=bh=bh||aL;if(bh.nodeType!==1&&bh.nodeType!==9){return[]}if(!Z||typeof Z!=="string"){return bk}for(var bn=[],br,bq,bs,bp,bi=true,bm=W(bh),bj=Z;(K.exec(""),br=K.exec(bj))!==null;){bj=br[3];bn.push(br[1]);if(br[2]){bp=br[3];break}}if(bn.length>1&&T.exec(Z)){if(bn.length===2&&Q.relative[bn[0]]){bq=L(bn[0]+bn[1],bh)}else{for(bq=Q.relative[bn[0]]?[bh]:P(bn.shift(),bh);bn.length;){Z=bn.shift();if(Q.relative[Z]){Z+=bn.shift()}bq=L(Z,bq)}}}else{if(!bl&&bn.length>1&&bh.nodeType===9&&!bm&&Q.match.ID.test(bn[0])&&!Q.match.ID.test(bn[bn.length-1])){br=P.find(bn.shift(),bh,bm);bh=br.expr?P.filter(br.expr,br.set)[0]:br.set[0]}if(bh){br=bl?{expr:bn.pop(),set:X(bl)}:P.find(bn.pop(),bn.length===1&&(bn[0]==="~"||bn[0]==="+")&&bh.parentNode?bh.parentNode:bh,bm);bq=br.expr?P.filter(br.expr,br.set):br.set;if(bn.length>0){bs=X(bq)}else{bi=false}for(;bn.length;){var Y=bn.pop();br=Y;if(Q.relative[Y]){br=bn.pop()}else{Y=""}if(br==null){br=bh}Q.relative[Y](bs,br,bm)}}else{bs=[]}}bs||(bs=bq);bs||P.error(Y||Z);if(O.call(bs)==="[object Array]"){if(bi){if(bh&&bh.nodeType===1){for(Z=0;bs[Z]!=null;Z++){if(bs[Z]&&(bs[Z]===true||bs[Z].nodeType===1&&J(bh,bs[Z]))){bk.push(bq[Z])}}}else{for(Z=0;bs[Z]!=null;Z++){bs[Z]&&bs[Z].nodeType===1&&bk.push(bq[Z])}}}else{bk.push.apply(bk,bs)}}else{X(bs,bk)}if(bp){P(bp,bo,bk,bl);P.uniqueSort(bk)}return bk};P.uniqueSort=function(Y){if(w){N=R;Y.sort(w);if(N){for(var Z=1;Z<Y.length;Z++){Y[Z]===Y[Z-1]&&Y.splice(Z--,1)}}}return Y};P.matches=function(Y,Z){return P(Y,null,null,Z)};P.find=function(Y,Z,bh){var bi,bk;if(!Y){return[]}for(var bj=0,bm=Q.order.length;bj<bm;bj++){var bl=Q.order[bj];if(bk=Q.leftMatch[bl].exec(Y)){var bn=bk[1];bk.splice(1,1);if(bn.substr(bn.length-1)!=="\\"){bk[1]=(bk[1]||"").replace(/\\/g,"");bi=Q.find[bl](bk,Z,bh);if(bi!=null){Y=Y.replace(Q.match[bl],"");break}}}}bi||(bi=Z.getElementsByTagName("*"));return{set:bi,expr:Y}};P.filter=function(Z,bh,bl,bm){for(var bp=Z,bo=[],bt=bh,br,bu,bq=bh&&bh[0]&&W(bh[0]);Z&&bh.length;){for(var bi in Q.filter){if((br=Q.leftMatch[bi].exec(Z))!=null&&br[2]){var bn=Q.filter[bi],bk,Y;Y=br[1];bu=false;br.splice(1,1);if(Y.substr(Y.length-1)!=="\\"){if(bt===bo){bo=[]}if(Q.preFilter[bi]){if(br=Q.preFilter[bi](br,bt,bl,bo,bm,bq)){if(br===true){continue}}else{bu=bk=true}}if(br){for(var bs=0;(Y=bt[bs])!=null;bs++){if(Y){bk=bn(Y,br,bs,bt);var bj=bm^!!bk;if(bl&&bk!=null){if(bj){bu=true}else{bt[bs]=false}}else{if(bj){bo.push(Y);bu=true}}}}}if(bk!==aX){bl||(bt=bo);Z=Z.replace(Q.match[bi],"");if(!bu){return[]}break}}}}if(Z===bp){if(bu==null){P.error(Z)}else{break}}bp=Z}return bt};P.error=function(Y){throw"Syntax error, unrecognized expression: "+Y};var Q=P.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\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 bh=typeof Z==="string",bi=bh&&!/\W/.test(Z);bh=bh&&!bi;if(bi){Z=Z.toLowerCase()}bi=0;for(var bk=Y.length,bj;bi<bk;bi++){if(bj=Y[bi]){for(;(bj=bj.previousSibling)&&bj.nodeType!==1;){}Y[bi]=bh||bj&&bj.nodeName.toLowerCase()===Z?bj||false:bj===Z}}bh&&P.filter(Z,Y,true)},">":function(Y,Z){var bh=typeof Z==="string";if(bh&&!/\W/.test(Z)){Z=Z.toLowerCase();for(var bi=0,bk=Y.length;bi<bk;bi++){var bj=Y[bi];if(bj){bh=bj.parentNode;Y[bi]=bh.nodeName.toLowerCase()===Z?bh:false}}}else{bi=0;for(bk=Y.length;bi<bk;bi++){if(bj=Y[bi]){Y[bi]=bh?bj.parentNode:bj.parentNode===Z}}bh&&P.filter(Z,Y,true)}},"":function(Y,Z,bh){var bi=G++,bk=F;if(typeof Z==="string"&&!/\W/.test(Z)){var bj=Z=Z.toLowerCase();bk=s}bk("parentNode",Z,bi,Y,bj,bh)},"~":function(Y,Z,bh){var bi=G++,bk=F;if(typeof Z==="string"&&!/\W/.test(Z)){var bj=Z=Z.toLowerCase();bk=s}bk("previousSibling",Z,bi,Y,bj,bh)}},find:{ID:function(Y,Z,bh){if(typeof Z.getElementById!=="undefined"&&!bh){return(Y=Z.getElementById(Y[1]))?[Y]:[]}},NAME:function(Y,Z){if(typeof Z.getElementsByName!=="undefined"){var bh=[];Z=Z.getElementsByName(Y[1]);for(var bi=0,bj=Z.length;bi<bj;bi++){Z[bi].getAttribute("name")===Y[1]&&bh.push(Z[bi])}return bh.length===0?null:bh}},TAG:function(Y,Z){return Z.getElementsByTagName(Y[1])}},preFilter:{CLASS:function(Y,Z,bh,bi,bk,bj){Y=" "+Y[1].replace(/\\/g,"")+" ";if(bj){return Y}bj=0;for(var bl;(bl=Z[bj])!=null;bj++){if(bl){if(bk^(bl.className&&(" "+bl.className+" ").replace(/[\t\n]/g," ").indexOf(Y)>=0)){bh||bi.push(bl)}else{if(bh){Z[bj]=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]=G++;return Y},ATTR:function(Y,Z,bh,bi,bk,bj){Z=Y[1].replace(/\\/g,"");if(!bj&&Q.attrMap[Z]){Y[1]=Q.attrMap[Z]}if(Y[2]==="~="){Y[4]=" "+Y[4]+" "}return Y},PSEUDO:function(Y,Z,bh,bi,bj){if(Y[1]==="not"){if((K.exec(Y[3])||"").length>1||/^\w/.test(Y[3])){Y[3]=P(Y[3],null,null,Z)}else{Y=P.filter(Y[3],Z,bh,true^bj);bh||bi.push.apply(bi,Y);return false}}else{if(Q.match.POS.test(Y[0])||Q.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,bh){return !!P(bh[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,bh,bi){return Z===bi.length-1},even:function(Y,Z){return Z%2===0},odd:function(Y,Z){return Z%2===1},lt:function(Y,Z,bh){return Z<bh[3]-0},gt:function(Y,Z,bh){return Z>bh[3]-0},nth:function(Y,Z,bh){return bh[3]-0===Z},eq:function(Y,Z,bh){return bh[3]-0===Z}},filter:{PSEUDO:function(Y,Z,bh,bi){var bk=Z[1],bj=Q.filters[bk];if(bj){return bj(Y,bh,Z,bi)}else{if(bk==="contains"){return(Y.textContent||Y.innerText||c([Y])||"").indexOf(Z[3])>=0}else{if(bk==="not"){Z=Z[3];bh=0;for(bi=Z.length;bh<bi;bh++){if(Z[bh]===Y){return false}}return true}else{P.error("Syntax error, unrecognized expression: "+bk)}}}},CHILD:function(Y,Z){var bh=Z[1],bi=Y;switch(bh){case"only":case"first":for(;bi=bi.previousSibling;){if(bi.nodeType===1){return false}}if(bh==="first"){return true}bi=Y;case"last":for(;bi=bi.nextSibling;){if(bi.nodeType===1){return false}}return true;case"nth":bh=Z[2];var bk=Z[3];if(bh===1&&bk===0){return true}Z=Z[0];var bj=Y.parentNode;if(bj&&(bj.sizcache!==Z||!Y.nodeIndex)){var bl=0;for(bi=bj.firstChild;bi;bi=bi.nextSibling){if(bi.nodeType===1){bi.nodeIndex=++bl}}bj.sizcache=Z}Y=Y.nodeIndex-bk;return bh===0?Y===0:Y%bh===0&&Y/bh>=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 bh=Z[1];Y=Q.attrHandle[bh]?Q.attrHandle[bh](Y):Y[bh]!=null?Y[bh]:Y.getAttribute(bh);bh=Y+"";var bi=Z[2];Z=Z[4];return Y==null?bi==="!=":bi==="="?bh===Z:bi==="*="?bh.indexOf(Z)>=0:bi==="~="?(" "+bh+" ").indexOf(Z)>=0:!Z?bh&&Y!==false:bi==="!="?bh!==Z:bi==="^="?bh.indexOf(Z)===0:bi==="$="?bh.substr(bh.length-Z.length)===Z:bi==="|="?bh===Z||bh.substr(0,Z.length+1)===Z+"-":false},POS:function(Y,Z,bh,bi){var bj=Q.setFilters[Z[2]];if(bj){return bj(Y,bh,Z,bi)}}}},T=Q.match.POS;for(var V in Q.match){Q.match[V]=new RegExp(Q.match[V].source+/(?![^\[]*\])(?![^\(]*\))/.source);Q.leftMatch[V]=new RegExp(/(^(?:.|\r|\n)*?)/.source+Q.match[V].source.replace(/\\(\d+)/g,function(Y,Z){return"\\"+(Z-0+1)}))}var X=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(aL.documentElement.childNodes,0)}catch(A){X=function(Y,Z){Z=Z||[];if(O.call(Y)==="[object Array]"){Array.prototype.push.apply(Z,Y)}else{if(typeof Y.length==="number"){for(var bh=0,bi=Y.length;bh<bi;bh++){Z.push(Y[bh])}}else{for(bh=0;Y[bh];bh++){Z.push(Y[bh])}}}return Z}}var w;if(aL.documentElement.compareDocumentPosition){w=function(Y,Z){if(!Y.compareDocumentPosition||!Z.compareDocumentPosition){if(Y==Z){N=true}return Y.compareDocumentPosition?-1:1}Y=Y.compareDocumentPosition(Z)&4?-1:Y===Z?0:1;if(Y===0){N=true}return Y}}else{if("sourceIndex" in aL.documentElement){w=function(Y,Z){if(!Y.sourceIndex||!Z.sourceIndex){if(Y==Z){N=true}return Y.sourceIndex?-1:1}Y=Y.sourceIndex-Z.sourceIndex;if(Y===0){N=true}return Y}}else{if(aL.createRange){w=function(Y,Z){if(!Y.ownerDocument||!Z.ownerDocument){if(Y==Z){N=true}return Y.ownerDocument?-1:1}var bh=Y.ownerDocument.createRange(),bi=Z.ownerDocument.createRange();bh.setStart(Y,0);bh.setEnd(Y,0);bi.setStart(Z,0);bi.setEnd(Z,0);Y=bh.compareBoundaryPoints(Range.START_TO_END,bi);if(Y===0){N=true}return Y}}}}(function(){var Y=aL.createElement("div"),Z="script"+(new Date).getTime();Y.innerHTML="<a name='"+Z+"'/>";var bh=aL.documentElement;bh.insertBefore(Y,bh.firstChild);if(aL.getElementById(Z)){Q.find.ID=function(bi,bk,bj){if(typeof bk.getElementById!=="undefined"&&!bj){return(bk=bk.getElementById(bi[1]))?bk.id===bi[1]||typeof bk.getAttributeNode!=="undefined"&&bk.getAttributeNode("id").nodeValue===bi[1]?[bk]:aX:[]}};Q.filter.ID=function(bi,bk){var bj=typeof bi.getAttributeNode!=="undefined"&&bi.getAttributeNode("id");return bi.nodeType===1&&bj&&bj.nodeValue===bk}}bh.removeChild(Y);bh=Y=null})();(function(){var Y=aL.createElement("div");Y.appendChild(aL.createComment(""));if(Y.getElementsByTagName("*").length>0){Q.find.TAG=function(Z,bh){bh=bh.getElementsByTagName(Z[1]);if(Z[1]==="*"){Z=[];for(var bi=0;bh[bi];bi++){bh[bi].nodeType===1&&Z.push(bh[bi])}bh=Z}return bh}}Y.innerHTML="<a href='#'></a>";if(Y.firstChild&&typeof Y.firstChild.getAttribute!=="undefined"&&Y.firstChild.getAttribute("href")!=="#"){Q.attrHandle.href=function(Z){return Z.getAttribute("href",2)}}Y=null})();aL.querySelectorAll&&function(){var Y=P,Z=aL.createElement("div");Z.innerHTML="<p class='TEST'></p>";if(!(Z.querySelectorAll&&Z.querySelectorAll(".TEST").length===0)){P=function(bi,bk,bj,bm){bk=bk||aL;if(!bm&&bk.nodeType===9&&!W(bk)){try{return X(bk.querySelectorAll(bi),bj)}catch(bl){}}return Y(bi,bk,bj,bm)};for(var bh in Y){P[bh]=Y[bh]}Z=null}}();(function(){var Y=aL.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){Q.order.splice(1,0,"CLASS");Q.find.CLASS=function(Z,bh,bi){if(typeof bh.getElementsByClassName!=="undefined"&&!bi){return bh.getElementsByClassName(Z[1])}};Y=null}}})();var J=aL.compareDocumentPosition?function(Y,Z){return !!(Y.compareDocumentPosition(Z)&16)}:function(Y,Z){return Y!==Z&&(Y.contains?Y.contains(Z):true)},W=function(Y){return(Y=(Y?Y.ownerDocument||Y:0).documentElement)?Y.nodeName!=="HTML":false},L=function(Y,Z){var bh=[],bi="",bk;for(Z=Z.nodeType?[Z]:Z;bk=Q.match.PSEUDO.exec(Y);){bi+=bk[0];Y=Y.replace(Q.match.PSEUDO,"")}Y=Q.relative[Y]?Y+"*":Y;bk=0;for(var bj=Z.length;bk<bj;bk++){P(Y,Z[bk],bh)}return P.filter(bi,bh)};m.find=P;m.expr=P.selectors;m.expr[":"]=m.expr.filters;m.unique=P.uniqueSort;m.text=c;m.isXMLDoc=W;m.contains=J})();var x=/Until$/,C=/^(?:parents|prevUntil|prevAll)/,H=/,/;aH=Array.prototype.slice;var U=function(c,s,w){if(m.isFunction(s)){return m.grep(c,function(F,G){return !!s.call(F,G,F)===w})}else{if(s.nodeType){return m.grep(c,function(F){return F===s===w})}else{if(typeof s==="string"){var A=m.grep(c,function(F){return F.nodeType===1});if(aU.test(s)){return m.filter(s,A,!w)}else{s=m.filter(s,A)}}}}return m.grep(c,function(F){return m.inArray(F,s)>=0===w})};m.fn.extend({find:function(c){for(var s=this.pushStack("","find",c),w=0,F=0,A=this.length;F<A;F++){w=s.length;m.find(c,this[F],s);if(F>0){for(var J=w;J<s.length;J++){for(var G=0;G<w;G++){if(s[G]===s[J]){s.splice(J--,1);break}}}}}return s},has:function(c){var s=m(c);return this.filter(function(){for(var w=0,A=s.length;w<A;w++){if(m.contains(this,s[w])){return true}}})},not:function(c){return this.pushStack(U(this,c,false),"not",c)},filter:function(c){return this.pushStack(U(this,c,true),"filter",c)},is:function(c){return !!c&&m.filter(c,this).length>0},closest:function(c,s){if(m.isArray(c)){var w=[],F=this[0],A,J={},G;if(F&&c.length){A=0;for(var L=c.length;A<L;A++){G=c[A];J[G]||(J[G]=m.expr.match.POS.test(G)?m(G,s||this.context):G)}for(;F&&F.ownerDocument&&F!==s;){for(G in J){A=J[G];if(A.jquery?A.index(F)>-1:m(F).is(A)){w.push({selector:G,elem:F});delete J[G]}}F=F.parentNode}}return w}var K=m.expr.match.POS.test(c)?m(c,s||this.context):null;return this.map(function(N,O){for(;O&&O.ownerDocument&&O!==s;){if(K?K.index(O)>-1:m(O).is(c)){return O}O=O.parentNode}return null})},index:function(c){if(!c||typeof c==="string"){return m.inArray(this[0],c?m(c):this.parent().children())}return m.inArray(c.jquery?c[0]:c,this)},add:function(c,s){c=typeof c==="string"?m(c,s||this.context):m.makeArray(c);s=m.merge(this.get(),c);return this.pushStack(aE(c[0])||aE(s[0])?s:m.unique(s))},andSelf:function(){return this.add(this.prevObject)}});m.each({parent:function(c){return(c=c.parentNode)&&c.nodeType!==11?c:null},parents:function(c){return m.dir(c,"parentNode")},parentsUntil:function(c,s,w){return m.dir(c,"parentNode",w)},next:function(c){return m.nth(c,2,"nextSibling")},prev:function(c){return m.nth(c,2,"previousSibling")},nextAll:function(c){return m.dir(c,"nextSibling")},prevAll:function(c){return m.dir(c,"previousSibling")},nextUntil:function(c,s,w){return m.dir(c,"nextSibling",w)},prevUntil:function(c,s,w){return m.dir(c,"previousSibling",w)},siblings:function(c){return m.sibling(c.parentNode.firstChild,c)},children:function(c){return m.sibling(c.firstChild)},contents:function(c){return m.nodeName(c,"iframe")?c.contentDocument||c.contentWindow.document:m.makeArray(c.childNodes)}},function(c,s){m.fn[c]=function(w,F){var A=m.map(this,s,w);x.test(c)||(F=w);if(F&&typeof F==="string"){A=m.filter(F,A)}A=this.length>1?m.unique(A):A;if((this.length>1||H.test(F))&&C.test(c)){A=A.reverse()}return this.pushStack(A,c,aH.call(arguments).join(","))}});m.extend({filter:function(c,s,w){if(w){c=":not("+c+")"}return m.find.matches(c,s)},dir:function(c,s,w){var A=[];for(c=c[s];c&&c.nodeType!==9&&(w===aX||c.nodeType!==1||!m(c).is(w));){c.nodeType===1&&A.push(c);c=c[s]}return A},nth:function(c,s,w){s=s||1;for(var A=0;c;c=c[w]){if(c.nodeType===1&&++A===s){break}}return c},sibling:function(c,s){for(var w=[];c;c=c.nextSibling){c.nodeType===1&&c!==s&&w.push(c)}return w}});var ad=/ jQuery\d+="(?:\d+|null)"/g,aW=/^\s+/,ah=/(<([\w:]+)[^>]*?)\/>/g,M=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,al=/<([\w:]+)/,aa=/<tbody/i,ae=/<|&#?\w+;/,aQ=/<script|<object|<embed|<option|<style/i,aT=/checked\s*(?:[^=]|=\s*.checked.)/i,ao=function(c,s,w){return M.test(w)?c:s+"></"+w+">"},y={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,"",""]};y.optgroup=y.option;y.tbody=y.tfoot=y.colgroup=y.caption=y.thead;y.th=y.td;if(!m.support.htmlSerialize){y._default=[1,"div<div>","</div>"]}m.fn.extend({text:function(c){if(m.isFunction(c)){return this.each(function(s){var w=m(this);w.text(c.call(this,s,w.text()))})}if(typeof c!=="object"&&c!==aX){return this.empty().append((this[0]&&this[0].ownerDocument||aL).createTextNode(c))}return m.text(this)},wrapAll:function(c){if(m.isFunction(c)){return this.each(function(w){m(this).wrapAll(c.call(this,w))})}if(this[0]){var s=m(c,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&s.insertBefore(this[0]);s.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(m.isFunction(c)){return this.each(function(s){m(this).wrapInner(c.call(this,s))})}return this.each(function(){var s=m(this),w=s.contents();w.length?w.wrapAll(c):s.append(c)})},wrap:function(c){return this.each(function(){m(this).wrapAll(c)})},unwrap:function(){return this.parent().each(function(){m.nodeName(this,"body")||m(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=m(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,m(arguments[0]).toArray());return c}}},remove:function(c,s){for(var w=0,A;(A=this[w])!=null;w++){if(!c||m.filter(c,[A]).length){if(!s&&A.nodeType===1){m.cleanData(A.getElementsByTagName("*"));m.cleanData([A])}A.parentNode&&A.parentNode.removeChild(A)}}return this},empty:function(){for(var c=0,s;(s=this[c])!=null;c++){for(s.nodeType===1&&m.cleanData(s.getElementsByTagName("*"));s.firstChild;){s.removeChild(s.firstChild)}}return this},clone:function(c){var s=this.map(function(){if(!m.support.noCloneEvent&&!m.isXMLDoc(this)){var w=this.outerHTML,A=this.ownerDocument;if(!w){w=A.createElement("div");w.appendChild(this.cloneNode(true));w=w.innerHTML}return m.clean([w.replace(ad,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(aW,"")],A)[0]}else{return this.cloneNode(true)}});if(c===true){aI(this,s);aI(this.find("*"),s.find("*"))}return s},html:function(c){if(c===aX){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ad,""):null}else{if(typeof c==="string"&&!aQ.test(c)&&(m.support.leadingWhitespace||!aW.test(c))&&!y[(al.exec(c)||["",""])[1].toLowerCase()]){c=c.replace(ah,ao);try{for(var s=0,w=this.length;s<w;s++){if(this[s].nodeType===1){m.cleanData(this[s].getElementsByTagName("*"));this[s].innerHTML=c}}}catch(A){this.empty().append(c)}}else{m.isFunction(c)?this.each(function(F){var J=m(this),G=J.html();J.empty().append(function(){return c.call(this,F,G)})}):this.empty().append(c)}}return this},replaceWith:function(c){if(this[0]&&this[0].parentNode){if(m.isFunction(c)){return this.each(function(s){var w=m(this),A=w.html();w.replaceWith(c.call(this,s,A))})}if(typeof c!=="string"){c=m(c).detach()}return this.each(function(){var s=this.nextSibling,w=this.parentNode;m(this).remove();s?m(s).before(c):m(w).append(c)})}else{return this.pushStack(m(m.isFunction(c)?c():c),"replaceWith",c)}},detach:function(c){return this.remove(c,true)},domManip:function(c,s,w){function F(P){return m.nodeName(P,"table")?P.getElementsByTagName("tbody")[0]||P.appendChild(P.ownerDocument.createElement("tbody")):P}var A,J,G=c[0],N=[],K;if(!m.support.checkClone&&arguments.length===3&&typeof G==="string"&&aT.test(G)){return this.each(function(){m(this).domManip(c,s,w,true)})}if(m.isFunction(G)){return this.each(function(P){var Q=m(this);c[0]=G.call(this,P,s?Q.html():aX);Q.domManip(c,s,w)})}if(this[0]){A=G&&G.parentNode;A=m.support.parentNode&&A&&A.nodeType===11&&A.childNodes.length===this.length?{fragment:A}:aM(c,this,N);K=A.fragment;if(J=K.childNodes.length===1?(K=K.firstChild):K.firstChild){s=s&&m.nodeName(J,"tr");for(var L=0,O=this.length;L<O;L++){w.call(s?F(this[L],J):this[L],L>0||A.cacheable||this.length>1?K.cloneNode(true):K)}}N.length&&m.each(N,aF)}return this}});m.fragments={};m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(c,s){m.fn[c]=function(w){var F=[];w=m(w);var A=this.length===1&&this[0].parentNode;if(A&&A.nodeType===11&&A.childNodes.length===1&&w.length===1){w[s](this[0]);return this}else{A=0;for(var J=w.length;A<J;A++){var G=(A>0?this.clone(true):this).get();m.fn[s].apply(m(w[A]),G);F=F.concat(G)}return this.pushStack(F,c,w.selector)}}});m.extend({clean:function(c,s,w,F){s=s||aL;if(typeof s.createElement==="undefined"){s=s.ownerDocument||s[0]&&s[0].ownerDocument||aL}for(var A=[],J=0,G;(G=c[J])!=null;J++){if(typeof G==="number"){G+=""}if(G){if(typeof G==="string"&&!ae.test(G)){G=s.createTextNode(G)}else{if(typeof G==="string"){G=G.replace(ah,ao);var N=(al.exec(G)||["",""])[1].toLowerCase(),K=y[N]||y._default,L=K[0],O=s.createElement("div");for(O.innerHTML=K[1]+G+K[2];L--;){O=O.lastChild}if(!m.support.tbody){L=aa.test(G);N=N==="table"&&!L?O.firstChild&&O.firstChild.childNodes:K[1]==="<table>"&&!L?O.childNodes:[];for(K=N.length-1;K>=0;--K){m.nodeName(N[K],"tbody")&&!N[K].childNodes.length&&N[K].parentNode.removeChild(N[K])}}!m.support.leadingWhitespace&&aW.test(G)&&O.insertBefore(s.createTextNode(aW.exec(G)[0]),O.firstChild);G=O.childNodes}}if(G.nodeType){A.push(G)}else{A=m.merge(A,G)}}}if(w){for(J=0;A[J];J++){if(F&&m.nodeName(A[J],"script")&&(!A[J].type||A[J].type.toLowerCase()==="text/javascript")){F.push(A[J].parentNode?A[J].parentNode.removeChild(A[J]):A[J])}else{A[J].nodeType===1&&A.splice.apply(A,[J+1,0].concat(m.makeArray(A[J].getElementsByTagName("script"))));w.appendChild(A[J])}}}return A},cleanData:function(c){for(var s,w,F=m.cache,A=m.event.special,J=m.support.deleteExpando,G=0,L;(L=c[G])!=null;G++){if(w=L[m.expando]){s=F[w];if(s.events){for(var K in s.events){A[K]?m.event.remove(L,K):o(L,K,s.handle)}}if(J){delete L[m.expando]}else{L.removeAttribute&&L.removeAttribute(m.expando)}delete F[w]}}}});var ai=/z-?index|font-?weight|opacity|zoom|line-?height/i,at=/alpha\([^)]*\)/,ax=/opacity=([^)]*)/,I=/float/i,S=/-([a-z])/ig,am=/([A-Z])/g,ap=/^-?\d+(?:px)?$/i,au=/^-?\d/,ay={position:"absolute",visibility:"hidden",display:"block"},aC=["Left","Right"],aG=["Top","Bottom"],aK=aL.defaultView&&aL.defaultView.getComputedStyle,aB=m.support.cssFloat?"cssFloat":"styleFloat",ac=function(c,s){return s.toUpperCase()};m.fn.css=function(c,s){return a5(this,c,s,true,function(w,F,A){if(A===aX){return m.curCSS(w,F)}if(typeof A==="number"&&!ai.test(F)){A+="px"}m.style(w,F,A)})};m.extend({style:function(c,s,w){if(!c||c.nodeType===3||c.nodeType===8){return aX}if((s==="width"||s==="height")&&parseFloat(w)<0){w=aX}var F=c.style||c,A=w!==aX;if(!m.support.opacity&&s==="opacity"){if(A){F.zoom=1;s=parseInt(w,10)+""==="NaN"?"":"alpha(opacity="+w*100+")";c=F.filter||m.curCSS(c,"filter")||"";F.filter=at.test(c)?c.replace(at,s):s}return F.filter&&F.filter.indexOf("opacity=")>=0?parseFloat(ax.exec(F.filter)[1])/100+"":""}if(I.test(s)){s=aB}s=s.replace(S,ac);if(A){F[s]=w}return F[s]},css:function(c,s,w,F){if(s==="width"||s==="height"){var A,J=s==="width"?aC:aG;function G(){A=s==="width"?c.offsetWidth:c.offsetHeight;F!=="border"&&m.each(J,function(){F||(A-=parseFloat(m.curCSS(c,"padding"+this,true))||0);if(F==="margin"){A+=parseFloat(m.curCSS(c,"margin"+this,true))||0}else{A-=parseFloat(m.curCSS(c,"border"+this+"Width",true))||0}})}c.offsetWidth!==0?G():m.swap(c,ay,G);return Math.max(0,Math.round(A))}return m.curCSS(c,s,w)},curCSS:function(c,s,w){var F,A=c.style;if(!m.support.opacity&&s==="opacity"&&c.currentStyle){F=ax.test(c.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return F===""?"1":F}if(I.test(s)){s=aB}if(!w&&A&&A[s]){F=A[s]}else{if(aK){if(I.test(s)){s="float"}s=s.replace(am,"-$1").toLowerCase();A=c.ownerDocument.defaultView;if(!A){return null}if(c=A.getComputedStyle(c,null)){F=c.getPropertyValue(s)}if(s==="opacity"&&F===""){F="1"}}else{if(c.currentStyle){w=s.replace(S,ac);F=c.currentStyle[s]||c.currentStyle[w];if(!ap.test(F)&&au.test(F)){s=A.left;var G=c.runtimeStyle.left;c.runtimeStyle.left=c.currentStyle.left;A.left=w==="fontSize"?"1em":F||0;F=A.pixelLeft+"px";A.left=s;c.runtimeStyle.left=G}}}}return F},swap:function(c,s,w){var F={};for(var A in s){F[A]=c.style[A];c.style[A]=s[A]}w.call(c);for(A in s){c.style[A]=F[A]}}});if(m.expr&&m.expr.filters){m.expr.filters.hidden=function(c){var s=c.offsetWidth,w=c.offsetHeight,A=c.nodeName.toLowerCase()==="tr";return s===0&&w===0&&!A?true:s>0&&w>0&&!A?false:m.curCSS(c,"display")==="none"};m.expr.filters.visible=function(c){return !m.expr.filters.hidden(c)}}var aO=ab(),aS=/<script(.|\s)*?\/script>/gi,aV=/select|textarea/i,a3=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,aq=/=\?(&|$)/,ag=/\?/,a4=/(\?|&)_=.*?(&|$)/,a8=/^(\w+:)?\/\/([^\/?#]+)/,bc=/%20/g,bg=m.fn.load;m.fn.extend({load:function(c,s,w){if(typeof c!=="string"){return bg.call(this,c)}else{if(!this.length){return this}}var F=c.indexOf(" ");if(F>=0){var A=c.slice(F,c.length);c=c.slice(0,F)}F="GET";if(s){if(m.isFunction(s)){w=s;s=null}else{if(typeof s==="object"){s=m.param(s,m.ajaxSettings.traditional);F="POST"}}}var G=this;m.ajax({url:c,type:F,dataType:"html",data:s,complete:function(J,K){if(K==="success"||K==="notmodified"){G.html(A?m("<div />").append(J.responseText.replace(aS,"")).find(A):J.responseText)}w&&G.each(w,[J.responseText,K,J])}});return this},serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?m.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||aV.test(this.nodeName)||a3.test(this.type))}).map(function(c,s){c=m(this).val();return c==null?null:m.isArray(c)?m.map(c,function(w){return{name:s.name,value:w}}):{name:s.name,value:c}}).get()}});m.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(c,s){m.fn[s]=function(w){return this.bind(s,w)}});m.extend({get:function(c,s,w,A){if(m.isFunction(s)){A=A||w;w=s;s=null}return m.ajax({type:"GET",url:c,data:s,success:w,dataType:A})},getScript:function(c,s){return m.get(c,null,s,"script")},getJSON:function(c,s,w){return m.get(c,s,w,"json")},post:function(c,s,w,A){if(m.isFunction(s)){A=A||w;w=s;s={}}return m.ajax({type:"POST",url:c,data:s,success:w,dataType:A})},ajaxSetup:function(c){m.extend(m.ajaxSettings,c)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:d.XMLHttpRequest&&(d.location.protocol!=="file:"||!d.ActiveXObject)?function(){return new d.XMLHttpRequest}:function(){try{return new d.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(c){function s(){G.success&&G.success.call(R,X,P,bh);G.global&&K("ajaxSuccess",[bh,G])}function F(){G.complete&&G.complete.call(R,bh,P);G.global&&K("ajaxComplete",[bh,G]);G.global&&!--m.active&&m.event.trigger("ajaxStop")}function K(bk,bj){(G.context?m(G.context):m.event).trigger(bk,bj)}var G=m.extend(true,{},m.ajaxSettings,c),Q,P,X,R=c&&c.context||G,W=G.type.toUpperCase();if(G.data&&G.processData&&typeof G.data!=="string"){G.data=m.param(G.data,G.traditional)}if(G.dataType==="jsonp"){if(W==="GET"){aq.test(G.url)||(G.url+=(ag.test(G.url)?"&":"?")+(G.jsonp||"callback")+"=?")}else{if(!G.data||!aq.test(G.data)){G.data=(G.data?G.data+"&":"")+(G.jsonp||"callback")+"=?"}}G.dataType="json"}if(G.dataType==="json"&&(G.data&&aq.test(G.data)||aq.test(G.url))){Q=G.jsonpCallback||"jsonp"+aO++;if(G.data){G.data=(G.data+"").replace(aq,"="+Q+"$1")}G.url=G.url.replace(aq,"="+Q+"$1");G.dataType="script";d[Q]=d[Q]||function(bk){X=bk;s();F();d[Q]=aX;try{delete d[Q]}catch(bj){}bi&&bi.removeChild(A)}}if(G.dataType==="script"&&G.cache===null){G.cache=false}if(G.cache===false&&W==="GET"){var Y=ab(),Z=G.url.replace(a4,"$1_="+Y+"$2");G.url=Z+(Z===G.url?(ag.test(G.url)?"&":"?")+"_="+Y:"")}if(G.data&&W==="GET"){G.url+=(ag.test(G.url)?"&":"?")+G.data}G.global&&!m.active++&&m.event.trigger("ajaxStart");Y=(Y=a8.exec(G.url))&&(Y[1]&&Y[1]!==location.protocol||Y[2]!==location.host);if(G.dataType==="script"&&W==="GET"&&Y){var bi=aL.getElementsByTagName("head")[0]||aL.documentElement,A=aL.createElement("script");A.src=G.url;if(G.scriptCharset){A.charset=G.scriptCharset}if(!Q){var w=false;A.onload=A.onreadystatechange=function(){if(!w&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){w=true;s();F();A.onload=A.onreadystatechange=null;bi&&A.parentNode&&bi.removeChild(A)}}}bi.insertBefore(A,bi.firstChild);return aX}var J=false,bh=G.xhr();if(bh){G.username?bh.open(W,G.url,G.async,G.username,G.password):bh.open(W,G.url,G.async);try{if(G.data||c&&c.contentType){bh.setRequestHeader("Content-Type",G.contentType)}if(G.ifModified){m.lastModified[G.url]&&bh.setRequestHeader("If-Modified-Since",m.lastModified[G.url]);m.etag[G.url]&&bh.setRequestHeader("If-None-Match",m.etag[G.url])}Y||bh.setRequestHeader("X-Requested-With","XMLHttpRequest");bh.setRequestHeader("Accept",G.dataType&&G.accepts[G.dataType]?G.accepts[G.dataType]+", */*":G.accepts._default)}catch(N){}if(G.beforeSend&&G.beforeSend.call(R,bh,G)===false){G.global&&!--m.active&&m.event.trigger("ajaxStop");bh.abort();return false}G.global&&K("ajaxSend",[bh,G]);var L=bh.onreadystatechange=function(bk){if(!bh||bh.readyState===0||bk==="abort"){J||F();J=true;if(bh){bh.onreadystatechange=m.noop}}else{if(!J&&bh&&(bh.readyState===4||bk==="timeout")){J=true;bh.onreadystatechange=m.noop;P=bk==="timeout"?"timeout":!m.httpSuccess(bh)?"error":G.ifModified&&m.httpNotModified(bh,G.url)?"notmodified":"success";var bj;if(P==="success"){try{X=m.httpData(bh,G.dataType,G)}catch(bl){P="parsererror";bj=bl}}if(P==="success"||P==="notmodified"){Q||s()}else{m.handleError(G,bh,P,bj)}F();bk==="timeout"&&bh.abort();if(G.async){bh=null}}}};try{var O=bh.abort;bh.abort=function(){bh&&O.call(bh);L("abort")}}catch(T){}G.async&&G.timeout>0&&setTimeout(function(){bh&&!J&&L("timeout")},G.timeout);try{bh.send(W==="POST"||W==="PUT"||W==="DELETE"?G.data:null)}catch(V){m.handleError(G,bh,null,V);F()}G.async||L();return bh}},handleError:function(c,s,w,A){if(c.error){c.error.call(c.context||c,s,w,A)}if(c.global){(c.context?m(c.context):m.event).trigger("ajaxError",[s,c,A])}},active:0,httpSuccess:function(c){try{return !c.status&&location.protocol==="file:"||c.status>=200&&c.status<300||c.status===304||c.status===1223||c.status===0}catch(s){}return false},httpNotModified:function(c,s){var w=c.getResponseHeader("Last-Modified"),A=c.getResponseHeader("Etag");if(w){m.lastModified[s]=w}if(A){m.etag[s]=A}return c.status===304||c.status===0},httpData:function(c,s,w){var F=c.getResponseHeader("content-type")||"",A=s==="xml"||!s&&F.indexOf("xml")>=0;c=A?c.responseXML:c.responseText;A&&c.documentElement.nodeName==="parsererror"&&m.error("parsererror");if(w&&w.dataFilter){c=w.dataFilter(c,s)}if(typeof c==="string"){if(s==="json"||!s&&F.indexOf("json")>=0){c=m.parseJSON(c)}else{if(s==="script"||!s&&F.indexOf("javascript")>=0){m.globalEval(c)}}}return c},param:function(c,s){function w(J,K){if(m.isArray(K)){m.each(K,function(L,N){s||/\[\]$/.test(J)?F(J,N):w(J+"["+(typeof N==="object"||m.isArray(N)?L:"")+"]",N)})}else{!s&&K!=null&&typeof K==="object"?m.each(K,function(L,N){w(J+"["+L+"]",N)}):F(J,K)}}function F(J,K){K=m.isFunction(K)?K():K;A[A.length]=encodeURIComponent(J)+"="+encodeURIComponent(K)}var A=[];if(s===aX){s=m.ajaxSettings.traditional}if(m.isArray(c)||c.jquery){m.each(c,function(){F(this.name,this.value)})}else{for(var G in c){w(G,c[G])}}return A.join("&").replace(bc,"+")}});var ak={},h=/toggle|show|hide/,l=/^([+-]=)?([\d+-.]+)(.*)$/,aY,aZ=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];m.fn.extend({show:function(c,s){if(c||c===0){return this.animate(af("show",3),c,s)}else{c=0;for(s=this.length;c<s;c++){var w=m.data(this[c],"olddisplay");this[c].style.display=w||"";if(m.css(this[c],"display")==="none"){w=this[c].nodeName;var F;if(ak[w]){F=ak[w]}else{var A=m("<"+w+" />").appendTo("body");F=A.css("display");if(F==="none"){F="block"}A.remove();ak[w]=F}m.data(this[c],"olddisplay",F)}}c=0;for(s=this.length;c<s;c++){this[c].style.display=m.data(this[c],"olddisplay")||""}return this}},hide:function(c,s){if(c||c===0){return this.animate(af("hide",3),c,s)}else{c=0;for(s=this.length;c<s;c++){var w=m.data(this[c],"olddisplay");!w&&w!=="none"&&m.data(this[c],"olddisplay",m.css(this[c],"display"))}c=0;for(s=this.length;c<s;c++){this[c].style.display="none"}return this}},_toggle:m.fn.toggle,toggle:function(c,s){var w=typeof c==="boolean";if(m.isFunction(c)&&m.isFunction(s)){this._toggle.apply(this,arguments)}else{c==null||w?this.each(function(){var A=w?c:m(this).is(":hidden");m(this)[A?"show":"hide"]()}):this.animate(af("toggle",3),c,s)}return this},fadeTo:function(c,s,w){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:s},c,w)},animate:function(c,s,w,F){var A=m.speed(s,w,F);if(m.isEmptyObject(c)){return this.each(A.complete)}return this[A.queue===false?"each":"queue"](function(){var J=m.extend({},A),G,N=this.nodeType===1&&m(this).is(":hidden"),K=this;for(G in c){var L=G.replace(S,ac);if(G!==L){c[L]=c[G];delete c[G];G=L}if(c[G]==="hide"&&N||c[G]==="show"&&!N){return J.complete.call(this)}if((G==="height"||G==="width")&&this.style){J.display=m.css(this,"display");J.overflow=this.style.overflow}if(m.isArray(c[G])){(J.specialEasing=J.specialEasing||{})[G]=c[G][1];c[G]=c[G][0]}}if(J.overflow!=null){this.style.overflow="hidden"}J.curAnim=m.extend({},c);m.each(c,function(R,T){var V=new m.fx(K,J,R);if(h.test(T)){V[T==="toggle"?N?"show":"hide":T](c)}else{var P=l.exec(T),O=V.cur(true)||0;if(P){T=parseFloat(P[2]);var Q=P[3]||"px";if(Q!=="px"){K.style[R]=(T||1)+Q;O=(T||1)/V.cur(true)*O;K.style[R]=O+Q}if(P[1]){T=(P[1]==="-="?-1:1)*T+O}V.custom(O,T,Q)}else{V.custom(O,T,"")}}});return true})},stop:function(c,s){var w=m.timers;c&&this.queue([]);this.each(function(){for(var A=w.length-1;A>=0;A--){if(w[A].elem===this){s&&w[A](true);w.splice(A,1)}}});s||this.dequeue();return this}});m.each({slideDown:af("show",1),slideUp:af("hide",1),slideToggle:af("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(c,s){m.fn[c]=function(w,A){return this.animate(s,w,A)}});m.extend({speed:function(c,s,w){var A=c&&typeof c==="object"?c:{complete:w||!w&&s||m.isFunction(c)&&c,duration:c,easing:w&&s||s&&!m.isFunction(s)&&s};A.duration=m.fx.off?0:typeof A.duration==="number"?A.duration:m.fx.speeds[A.duration]||m.fx.speeds._default;A.old=A.complete;A.complete=function(){A.queue!==false&&m(this).dequeue();m.isFunction(A.old)&&A.old.call(this)};return A},easing:{linear:function(c,s,w,A){return w+A*c},swing:function(c,s,w,A){return(-Math.cos(c*Math.PI)/2+0.5)*A+w}},timers:[],fx:function(c,s,w){this.options=s;this.elem=c;this.prop=w;if(!s.orig){s.orig={}}}});m.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(m.fx.step[this.prop]||m.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(m.css(this.elem,this.prop,c)))&&c>-10000?c:parseFloat(m.curCSS(this.elem,this.prop))||0},custom:function(c,s,w){function F(G){return A.step(G)}this.startTime=ab();this.start=c;this.end=s;this.unit=w||this.unit||"px";this.now=this.start;this.pos=this.state=0;var A=this;F.elem=this.elem;if(F()&&m.timers.push(F)&&!aY){aY=setInterval(m.fx.tick,13)}},show:function(){this.options.orig[this.prop]=m.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());m(this.elem).show()},hide:function(){this.options.orig[this.prop]=m.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(c){var s=ab(),w=true;if(c||s>=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){w=false}}if(w){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;c=m.data(this.elem,"olddisplay");this.elem.style.display=c?c:this.options.display;if(m.css(this.elem,"display")==="none"){this.elem.style.display="block"}}this.options.hide&&m(this.elem).hide();if(this.options.hide||this.options.show){for(var A in this.options.curAnim){m.style(this.elem,A,this.options.orig[A])}}this.options.complete.call(this.elem)}return false}else{A=s-this.startTime;this.state=A/this.options.duration;c=this.options.easing||(m.easing.swing?"swing":"linear");this.pos=m.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||c](this.state,A,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};m.extend(m.fx,{tick:function(){for(var c=m.timers,s=0;s<c.length;s++){c[s]()||c.splice(s--,1)}c.length||m.fx.stop()},stop:function(){clearInterval(aY);aY=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(c){m.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(m.expr&&m.expr.filters){m.expr.filters.animated=function(c){return m.grep(m.timers,function(s){return c===s.elem}).length}}m.fn.offset="getBoundingClientRect" in aL.documentElement?function(c){var s=this[0];if(c){return this.each(function(F){m.offset.setOffset(this,c,F)})}if(!s||!s.ownerDocument){return null}if(s===s.ownerDocument.body){return m.offset.bodyOffset(s)}var w=s.getBoundingClientRect(),A=s.ownerDocument;s=A.body;A=A.documentElement;return{top:w.top+(self.pageYOffset||m.support.boxModel&&A.scrollTop||s.scrollTop)-(A.clientTop||s.clientTop||0),left:w.left+(self.pageXOffset||m.support.boxModel&&A.scrollLeft||s.scrollLeft)-(A.clientLeft||s.clientLeft||0)}}:function(c){var s=this[0];if(c){return this.each(function(O){m.offset.setOffset(this,c,O)})}if(!s||!s.ownerDocument){return null}if(s===s.ownerDocument.body){return m.offset.bodyOffset(s)}m.offset.initialize();var w=s.offsetParent,F=s,A=s.ownerDocument,J,G=A.documentElement,N=A.body;F=(A=A.defaultView)?A.getComputedStyle(s,null):s.currentStyle;for(var K=s.offsetTop,L=s.offsetLeft;(s=s.parentNode)&&s!==N&&s!==G;){if(m.offset.supportsFixedPosition&&F.position==="fixed"){break}J=A?A.getComputedStyle(s,null):s.currentStyle;K-=s.scrollTop;L-=s.scrollLeft;if(s===w){K+=s.offsetTop;L+=s.offsetLeft;if(m.offset.doesNotAddBorder&&!(m.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(s.nodeName))){K+=parseFloat(J.borderTopWidth)||0;L+=parseFloat(J.borderLeftWidth)||0}F=w;w=s.offsetParent}if(m.offset.subtractsBorderForOverflowNotVisible&&J.overflow!=="visible"){K+=parseFloat(J.borderTopWidth)||0;L+=parseFloat(J.borderLeftWidth)||0}F=J}if(F.position==="relative"||F.position==="static"){K+=N.offsetTop;L+=N.offsetLeft}if(m.offset.supportsFixedPosition&&F.position==="fixed"){K+=Math.max(G.scrollTop,N.scrollTop);L+=Math.max(G.scrollLeft,N.scrollLeft)}return{top:K,left:L}};m.offset={initialize:function(){var c=aL.body,s=aL.createElement("div"),w,F,A,G=parseFloat(m.curCSS(c,"marginTop",true))||0;m.extend(s.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});s.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>";c.insertBefore(s,c.firstChild);w=s.firstChild;F=w.firstChild;A=w.nextSibling.firstChild.firstChild;this.doesNotAddBorder=F.offsetTop!==5;this.doesAddBorderForTableAndCells=A.offsetTop===5;F.style.position="fixed";F.style.top="20px";this.supportsFixedPosition=F.offsetTop===20||F.offsetTop===15;F.style.position=F.style.top="";w.style.overflow="hidden";w.style.position="relative";this.subtractsBorderForOverflowNotVisible=F.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=c.offsetTop!==G;c.removeChild(s);m.offset.initialize=m.noop},bodyOffset:function(c){var s=c.offsetTop,w=c.offsetLeft;m.offset.initialize();if(m.offset.doesNotIncludeMarginInBodyOffset){s+=parseFloat(m.curCSS(c,"marginTop",true))||0;w+=parseFloat(m.curCSS(c,"marginLeft",true))||0}return{top:s,left:w}},setOffset:function(c,s,w){if(/static/.test(m.curCSS(c,"position"))){c.style.position="relative"}var F=m(c),A=F.offset(),J=parseInt(m.curCSS(c,"top",true),10)||0,G=parseInt(m.curCSS(c,"left",true),10)||0;if(m.isFunction(s)){s=s.call(c,w,A)}w={top:s.top-A.top+J,left:s.left-A.left+G};"using" in s?s.using.call(c,w):F.css(w)}};m.fn.extend({position:function(){if(!this[0]){return null}var c=this[0],s=this.offsetParent(),w=this.offset(),A=/^body|html$/i.test(s[0].nodeName)?{top:0,left:0}:s.offset();w.top-=parseFloat(m.curCSS(c,"marginTop",true))||0;w.left-=parseFloat(m.curCSS(c,"marginLeft",true))||0;A.top+=parseFloat(m.curCSS(s[0],"borderTopWidth",true))||0;A.left+=parseFloat(m.curCSS(s[0],"borderLeftWidth",true))||0;return{top:w.top-A.top,left:w.left-A.left}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent||aL.body;c&&!/^body|html$/i.test(c.nodeName)&&m.css(c,"position")==="static";){c=c.offsetParent}return c})}});m.each(["Left","Top"],function(c,s){var w="scroll"+s;m.fn[w]=function(F){var A=this[0],G;if(!A){return null}if(F!==aX){return this.each(function(){if(G=a1(this)){G.scrollTo(!c?F:m(G).scrollLeft(),c?F:m(G).scrollTop())}else{this[w]=F}})}else{return(G=a1(A))?"pageXOffset" in G?G[c?"pageYOffset":"pageXOffset"]:m.support.boxModel&&G.document.documentElement[w]||G.document.body[w]:A[w]}}});m.each(["Height","Width"],function(c,s){var w=s.toLowerCase();m.fn["inner"+s]=function(){return this[0]?m.css(this[0],w,false,"padding"):null};m.fn["outer"+s]=function(A){return this[0]?m.css(this[0],w,false,A?"margin":"border"):null};m.fn[w]=function(F){var A=this[0];if(!A){return F==null?null:this}if(m.isFunction(F)){return this.each(function(J){var G=m(this);G[w](F.call(this,J,G[w]()))})}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===aX?m.css(A,w):this.css(w,typeof F==="string"?F:F+"px")}});d.jQuery=d.$=m})(window);eval(function(h,b,d,g,f,i){f=function(a){return(a<b?"":f(parseInt(a/b)))+((a=a%b)>35?String.fromCharCode(a+29):a.toString(36))};if(!"".replace(/^/,String)){while(d--){i[f(d)]=g[d]||f(d)}g=[function(a){return i[a]}];f=function(){return"\\w+"};d=1}while(d--){if(g[d]){h=h.replace(new RegExp("\\b"+f(d)+"\\b","g"),g[d])}}return h}("a(37.b&&!37.b.38){(9(b){6 m=9(s,A,f){5.1M=[];5.1u={};5.2p=E;5.1N={};5.1c={};5.f=b.1m({1Z:1f,3a:1O,2q:1f,2r:1f,3b:1O,3c:1O},f);5.1v=(5.f.1v!==F)?(5.f.1v):(13.20);5.Y=(5.f.Y!==F)?(5.f.Y):(13.3d);5.3e(s,A);a(s){5.1w(5.1c['21'],A,5.f)}5.1c=E};m.y.2s='0.7.8';m.R=1O;m.y.3e=9(s,A){6 2t=/\\{#14 *(\\w*?)( .*)*\\}/g;6 22,1x,M;6 1y=E;6 2u=[];2v((22=2t.3N(s))!=E){1y=2t.1y;1x=22[1];M=s.2w('{#/14 '+1x+'}',1y);a(M==-1){C j Z('15: m \"'+1x+'\" 2x 23 3O.');}5.1c[1x]=s.2y(1y,M);2u[1x]=13.2z(22[2])}a(1y===E){5.1c['21']=s;c}N(6 i 24 5.1c){a(i!='21'){5.1N[i]=j m()}}N(6 i 24 5.1c){a(i!='21'){5.1N[i].1w(5.1c[i],b.1m({},A||{},5.1N||{}),b.1m({},5.f,2u[i]));5.1c[i]=E}}};m.y.1w=9(s,A,f){a(s==F){5.1M.B(j 1g('',1,5));c}s=s.U(/[\\n\\r]/g,'');s=s.U(/\\{\\*.*?\\*\\}/g,'');5.2p=b.1m({},5.1N||{},A||{});5.f=j 2A(f);6 p=5.1M;6 1P=s.1h(/\\{#.*?\\}/g);6 16=0,M=0;6 e;6 1i=0;6 25=0;N(6 i=0,l=(1P)?(1P.V):(0);i<l;++i){6 17=1P[i];a(1i){M=s.2w('{#/1z}');a(M==-1){C j Z(\"15: 3P 1Q 3f 1z.\");}a(M>16){p.B(j 1g(s.2y(16,M),1,5))}16=M+11;1i=0;i=b.3Q('{#/1z}',1P);1R}M=s.2w(17,16);a(M>16){p.B(j 1g(s.2y(16,M),1i,5))}6 3R=17.1h(/\\{#([\\w\\/]+).*?\\}/);6 26=I.$1;2B(26){q'3S':++25;p.27();q'a':e=j 1A(17,p);p.B(e);p=e;D;q'J':p.27();D;q'/a':2v(25){p=p.28();--25}q'/N':q'/29':p=p.28();D;q'29':e=j 1n(17,p,5);p.B(e);p=e;D;q'N':e=2a(17,p,5);p.B(e);p=e;D;q'1R':q'D':p.B(j 18(26));D;q'2C':p.B(j 2D(17,5.2p));D;q'h':p.B(j 2E(17));D;q'2F':p.B(j 2G(17));D;q'3T':p.B(j 1g('{',1,5));D;q'3U':p.B(j 1g('}',1,5));D;q'1z':1i=1;D;q'/1z':a(m.R){C j Z(\"15: 3V 2H 3f 1z.\");}D;2I:a(m.R){C j Z('15: 3W 3X: '+26+'.');}}16=M+17.V}a(s.V>16){p.B(j 1g(s.3Y(16),1i,5))}};m.y.K=9(d,h,z,H){++H;6 $T=d,2b,2c;a(5.f.3b){$T=5.1v(d,{2d:(5.f.3a&&H==1),1S:5.f.1Z},5.Y)}a(!5.f.3c){2b=5.1u;2c=h}J{2b=5.1v(5.1u,{2d:(5.f.2q),1S:1f},5.Y);2c=5.1v(h,{2d:(5.f.2q&&H==1),1S:1f},5.Y)}6 $P=b.1m({},2b,2c);6 $Q=(z!=F)?(z):({});$Q.2s=5.2s;6 19='';N(6 i=0,l=5.1M.V;i<l;++i){19+=5.1M[i].K($T,$P,$Q,H)}--H;c 19};m.y.2J=9(1T,1o){5.1u[1T]=1o};13=9(){};13.3d=9(3g){c 3g.U(/&/g,'&3Z;').U(/>/g,'&3h;').U(/</g,'&3i;').U(/\"/g,'&40;').U(/'/g,'&#39;')};13.20=9(d,1B,Y){a(d==E){c d}2B(d.2K){q 2A:6 o={};N(6 i 24 d){o[i]=13.20(d[i],1B,Y)}a(!1B.1S){a(d.41(\"2L\"))o.2L=d.2L}c o;q 42:6 o=[];N(6 i=0,l=d.V;i<l;++i){o[i]=13.20(d[i],1B,Y)}c o;q 2M:c(1B.2d)?(Y(d)):(d);q 43:a(1B.1S){a(m.R)C j Z(\"15: 44 45 23 46.\");J c F}2I:c d}};13.2z=9(2e){a(2e===E||2e===F){c{}}6 o=2e.47(/[= ]/);a(o[0]===''){o.48()}6 2N={};N(6 i=0,l=o.V;i<l;i+=2){2N[o[i]]=o[i+1]}c 2N};6 1g=9(2O,1i,14){5.2f=2O;5.3j=1i;5.1d=14};1g.y.K=9(d,h,z,H){6 2g=5.2f;a(!5.3j){6 2P=5.1d;6 $T=d;6 $P=h;6 $Q=z;2g=2g.U(/\\{(.*?)\\}/g,9(49,3k){1C{6 1D=10(3k);a(1E 1D=='9'){a(2P.f.1Z||!2P.f.2r){c''}J{1D=1D($T,$P,$Q)}}c(1D===F)?(\"\"):(2M(1D))}1F(e){a(m.R){a(e 1G 18)e.1j=\"4a\";C e;}c\"\"}})}c 2g};6 1A=9(L,1H){5.2h=1H;L.1h(/\\{#(?:J)*a (.*?)\\}/);5.3l=I.$1;5.1p=[];5.1q=[];5.1I=5.1p};1A.y.B=9(e){5.1I.B(e)};1A.y.28=9(){c 5.2h};1A.y.27=9(){5.1I=5.1q};1A.y.K=9(d,h,z,H){6 $T=d;6 $P=h;6 $Q=z;6 19='';1C{6 2Q=(10(5.3l))?(5.1p):(5.1q);N(6 i=0,l=2Q.V;i<l;++i){19+=2Q[i].K(d,h,z,H)}}1F(e){a(m.R||(e 1G 18))C e;}c 19};2a=9(L,1H,14){a(L.1h(/\\{#N (\\w+?) *= *(\\S+?) +4b +(\\S+?) *(?:12=(\\S+?))*\\}/)){L='{#29 2a.3m 3n '+I.$1+' 2H='+(I.$2||0)+' 1Q='+(I.$3||-1)+' 12='+(I.$4||1)+' u=$T}';c j 1n(L,1H,14)}J{C j Z('15: 4c 4d \"3o\": '+L);}};2a.3m=9(i){c i};6 1n=9(L,1H,14){5.2h=1H;5.1d=14;L.1h(/\\{#29 (.+?) 3n (\\w+?)( .+)*\\}/);5.3p=I.$1;5.x=I.$2;5.W=I.$3||E;5.W=13.2z(5.W);5.1p=[];5.1q=[];5.1I=5.1p};1n.y.B=9(e){5.1I.B(e)};1n.y.28=9(){c 5.2h};1n.y.27=9(){5.1I=5.1q};1n.y.K=9(d,h,z,H){1C{6 $T=d;6 $P=h;6 $Q=z;6 1r=10(5.3p);6 1U=[];6 1J=1E 1r;a(1J=='3q'){6 2R=[];b.1e(1r,9(k,v){1U.B(k);2R.B(v)});1r=2R}6 u=(5.W.u!==F)?(10(5.W.u)):(($T!=E)?($T):({}));6 s=1V(10(5.W.2H)||0),e;6 12=1V(10(5.W.12)||1);a(1J!='9'){e=1r.V}J{a(5.W.1Q===F||5.W.1Q===E){e=1V.4e}J{e=1V(10(5.W.1Q))+((12>0)?(1):(-1))}}6 19='';6 i,l;a(5.W.1W){6 2S=s+1V(10(5.W.1W));e=(2S>e)?(e):(2S)}a((e>s&&12>0)||(e<s&&12<0)){6 1K=0;6 3r=(1J!='9')?(4f.4g((e-s)/12)):F;6 1s,1k;N(;((12>0)?(s<e):(s>e));s+=12,++1K){1s=1U[s];a(1J!='9'){1k=1r[s]}J{1k=1r(s);a(1k===F||1k===E){D}}a((1E 1k=='9')&&(5.1d.f.1Z||!5.1d.f.2r)){1R}a((1J=='3q')&&(1s 24 2A)){1R}6 3s=u[5.x];u[5.x]=1k;u[5.x+'$3t']=s;u[5.x+'$1K']=1K;u[5.x+'$3u']=(1K==0);u[5.x+'$3v']=(s+12>=e);u[5.x+'$3w']=3r;u[5.x+'$1U']=(1s!==F&&1s.2K==2M)?(5.1d.Y(1s)):(1s);u[5.x+'$1E']=1E 1k;N(i=0,l=5.1p.V;i<l;++i){1C{19+=5.1p[i].K(u,h,z,H)}1F(2T){a(2T 1G 18){2B(2T.1j){q'1R':i=l;D;q'D':i=l;s=e;D;2I:C e;}}J{C e;}}}1l u[5.x+'$3t'];1l u[5.x+'$1K'];1l u[5.x+'$3u'];1l u[5.x+'$3v'];1l u[5.x+'$3w'];1l u[5.x+'$1U'];1l u[5.x+'$1E'];1l u[5.x];u[5.x]=3s}}J{N(i=0,l=5.1q.V;i<l;++i){19+=5.1q[i].K($T,h,z,H)}}c 19}1F(e){a(m.R||(e 1G 18))C e;c\"\"}};6 18=9(1j){5.1j=1j};18.y=Z;18.y.K=9(d){C 5;};6 2D=9(L,A){L.1h(/\\{#2C (.*?)(?: 4h=(.*?))?\\}/);5.1d=A[I.$1];a(5.1d==F){a(m.R)C j Z('15: 4i 3o 2C: '+I.$1);}5.3x=I.$2};2D.y.K=9(d,h,z,H){6 $T=d;6 $P=h;1C{c 5.1d.K(10(5.3x),h,z,H)}1F(e){a(m.R||(e 1G 18))C e;}c''};6 2E=9(L){L.1h(/\\{#h 1T=(\\w*?) 1o=(.*?)\\}/);5.x=I.$1;5.2f=I.$2};2E.y.K=9(d,h,z,H){6 $T=d;6 $P=h;6 $Q=z;1C{h[5.x]=10(5.2f)}1F(e){a(m.R||(e 1G 18))C e;h[5.x]=F}c''};6 2G=9(L){L.1h(/\\{#2F 4j=(.*?)\\}/);5.2U=10(I.$1);5.2V=5.2U.V;a(5.2V<=0){C j Z('15: 2F 4k 4l 4m');}5.2W=0;5.2X=-1};2G.y.K=9(d,h,z,H){6 2Y=b.O(z,'1X');a(2Y!=5.2X){5.2X=2Y;5.2W=0}6 i=5.2W++%5.2V;c 5.2U[i]};b.1a.1w=9(s,A,f){a(s.2K===m){c b(5).1e(9(){b.O(5,'2i',s);b.O(5,'1X',0)})}J{c b(5).1e(9(){b.O(5,'2i',j m(s,A,f));b.O(5,'1X',0)})}};b.1a.4n=9(1L,A,f){6 s=b.2Z({1t:1L,1Y:1f}).3y;c b(5).1w(s,A,f)};b.1a.4o=9(30,A,f){6 s=b('#'+30).2O();a(s==E){s=b('#'+30).3z();s=s.U(/&3i;/g,\"<\").U(/&3h;/g,\">\")}s=b.4p(s);s=s.U(/^<\\!\\[4q\\[([\\s\\S]*)\\]\\]>$/3A,'$1');s=s.U(/^<\\!--([\\s\\S]*)-->$/3A,'$1');c b(5).1w(s,A,f)};b.1a.4r=9(){6 1W=0;b(5).1e(9(){a(b.2j(5)){++1W}});c 1W};b.1a.4s=9(){b(5).3B();c b(5).1e(9(){b.3C(5,'2i')})};b.1a.2J=9(1T,1o){c b(5).1e(9(){6 t=b.2j(5);a(t===F){a(m.R)C j Z('15: m 2x 23 3D.');J c}t.2J(1T,1o)})};b.1a.31=9(d,h){c b(5).1e(9(){6 t=b.2j(5);a(t===F){a(m.R)C j Z('15: m 2x 23 3D.');J c}b.O(5,'1X',b.O(5,'1X')+1);b(5).3z(t.K(d,h,5,0))})};b.1a.4t=9(1L,h,G){6 X=5;G=b.1m({1j:'4u',1Y:1O,32:1f},G);b.2Z({1t:1L,1j:G.1j,O:G.O,3E:G.3E,1Y:G.1Y,32:G.32,3F:G.3F,4v:'4w',4x:9(d){6 r=b(X).31(d,h);a(G.2k){G.2k(r)}},4y:G.4z,4A:G.4B});c 5};6 2l=9(1t,h,2m,2n,1b,G){5.3G=1t;5.1u=h;5.3H=2m;5.3I=2n;5.1b=1b;5.3J=E;5.33=G||{};6 X=5;b(1b).1e(9(){b.O(5,'34',X)});5.35()};2l.y.35=9(){5.3K();a(5.1b.V==0){c}6 X=5;b.4C(5.3G,5.3I,9(d){6 r=b(X.1b).31(d,X.1u);a(X.33.2k){X.33.2k(r)}});5.3J=4D(9(){X.35()},5.3H)};2l.y.3K=9(){5.1b=b.3L(5.1b,9(o){a(b.4E.4F){6 n=o.36;2v(n&&n!=4G){n=n.36}c n!=E}J{c o.36!=E}})};b.1a.4H=9(1t,h,2m,2n,G){c j 2l(1t,h,2m,2n,5,G)};b.1a.3B=9(){c b(5).1e(9(){6 2o=b.O(5,'34');a(2o==E){c}6 X=5;2o.1b=b.3L(2o.1b,9(o){c o!=X});b.3C(5,'34')})};b.1m({38:9(s,A,f){c j m(s,A,f)},4I:9(1L,A,f){6 s=b.2Z({1t:1L,1Y:1f}).3y;c j m(s,A,f)},2j:9(z){c b.O(z,'2i')},4J:9(14,O,3M){c 14.K(O,3M,F,0)},4K:9(1o){m.R=1o}})})(b)}",62,295,"|||||this|var|||function|if|jQuery|return|||settings||param||new|||Template|||node|case||||extData|||_name|prototype|element|includes|push|throw|break|null|undefined|options|deep|RegExp|else|get|oper|se|for|data|||DEBUG_MODE|||replace|length|_option|that|f_escapeString|Error|eval||step|TemplateUtils|template|jTemplates|ss|this_op|JTException|ret|fn|objs|_templates_code|_template|each|false|TextNode|match|literalMode|type|cval|delete|extend|opFOREACH|value|_onTrue|_onFalse|fcount|ckey|url|_param|f_cloneData|setTemplate|tname|lastIndex|literal|opIF|filter|try|__tmp|typeof|catch|instanceof|par|_currentState|mode|iteration|url_|_tree|_templates|true|op|end|continue|noFunc|name|key|Number|count|jTemplateSID|async|disallow_functions|cloneData|MAIN|iter|not|in|elseif_level|op_|switchToElse|getParent|foreach|opFORFactory|_param1|_param2|escapeData|optionText|_value|__t|_parent|jTemplate|getTemplate|on_success|Updater|interval|args|updater|_includes|filter_params|runnable_functions|version|reg|_template_settings|while|indexOf|is|substring|optionToObject|Object|switch|include|Include|UserParam|cycle|Cycle|begin|default|setParam|constructor|toString|String|obj|val|__template|tab|arr|tmp|ex|_values|_length|_index|_lastSessionID|sid|ajax|elementName|processTemplate|cache|_options|jTemplateUpdater|run|parentNode|window|createTemplate||filter_data|clone_data|clone_params|escapeHTML|splitTemplates|of|txt|gt|lt|_literalMode|__1|_cond|funcIterator|as|find|_arg|object|_total|prevValue|index|first|last|total|_root|responseText|html|im|processTemplateStop|removeData|defined|dataFilter|timeout|_url|_interval|_args|timer|detectDeletedNodes|grep|parameter|exec|closed|No|inArray|ppp|elseif|ldelim|rdelim|Missing|unknown|tag|substr|amp|quot|hasOwnProperty|Array|Function|Functions|are|allowed|split|shift|__0|subtemplate|to|Operator|failed|MAX_VALUE|Math|ceil|root|Cannot|values|has|no|elements|setTemplateURL|setTemplateElement|trim|CDATA|hasTemplate|removeTemplate|processTemplateURL|GET|dataType|json|success|error|on_error|complete|on_complete|getJSON|setTimeout|browser|msie|document|processTemplateStart|createTemplateURL|processTemplateToText|jTemplatesDebugMode".split("|"),0,{}));$(document).ready(function(){$(".slider").tabSlide({btNext:"a.btn-next",btPrev:"a.btn-prev",tabsNews:"ul.tabset a",holderList:".tab-wrapper",scrollElParent:".list-wrapper",scrollEl:">ul",autoSlide:false,otherLinks:"a.tab",animateContentHeight:true});$("div.gallery").gallery({duration:700,autoSlide:false,slideElement:3,effect:false,fadeEl:"ul",switcher:"ul > li",disableBtn:"disable",next:"a.link-next, a.btn-next, a.next",prev:"a.link-prev, a.btn-prev, a.prev",circle:false});$("div.gallerysmall").gallery({duration:300,autoSlide:false,slideElement:1,effect:false,fadeEl:"ul",switcher:"ul > li",disableBtn:"disable",next:"a.link-next, a.btn-next, a.next",prev:"a.link-prev, a.btn-prev, a.prev",circle:false})});jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(h,g,a,e,f){return jQuery.easing[jQuery.easing.def](h,g,a,e,f)},easeInQuad:function(h,g,a,e,f){return e*(g/=f)*g+a},easeOutQuad:function(h,g,a,e,f){return -e*(g/=f)*(g-2)+a},easeInOutQuad:function(h,g,a,e,f){if((g/=f/2)<1){return e/2*g*g+a}return -e/2*((--g)*(g-2)-1)+a},easeInCubic:function(h,g,a,e,f){return e*(g/=f)*g*g+a},easeOutCubic:function(h,g,a,e,f){return e*((g=g/f-1)*g*g+1)+a},easeInOutCubic:function(h,g,a,e,f){if((g/=f/2)<1){return e/2*g*g*g+a}return e/2*((g-=2)*g*g+2)+a},easeInQuart:function(h,g,a,e,f){return e*(g/=f)*g*g*g+a},easeOutQuart:function(h,g,a,e,f){return -e*((g=g/f-1)*g*g*g-1)+a},easeInOutQuart:function(h,g,a,e,f){if((g/=f/2)<1){return e/2*g*g*g*g+a}return -e/2*((g-=2)*g*g*g-2)+a},easeInQuint:function(h,g,a,e,f){return e*(g/=f)*g*g*g*g+a},easeOutQuint:function(h,g,a,e,f){return e*((g=g/f-1)*g*g*g*g+1)+a},easeInOutQuint:function(h,g,a,e,f){if((g/=f/2)<1){return e/2*g*g*g*g*g+a}return e/2*((g-=2)*g*g*g*g+2)+a},easeInSine:function(h,g,a,e,f){return -e*Math.cos(g/f*(Math.PI/2))+e+a},easeOutSine:function(h,g,a,e,f){return e*Math.sin(g/f*(Math.PI/2))+a},easeInOutSine:function(h,g,a,e,f){return -e/2*(Math.cos(Math.PI*g/f)-1)+a},easeInExpo:function(h,g,a,e,f){return(g==0)?a:e*Math.pow(2,10*(g/f-1))+a},easeOutExpo:function(h,g,a,e,f){return(g==f)?a+e:e*(-Math.pow(2,-10*g/f)+1)+a},easeInOutExpo:function(h,g,a,e,f){if(g==0){return a}if(g==f){return a+e}if((g/=f/2)<1){return e/2*Math.pow(2,10*(g-1))+a}return e/2*(-Math.pow(2,-10*--g)+2)+a},easeInCirc:function(h,g,a,e,f){return -e*(Math.sqrt(1-(g/=f)*g)-1)+a},easeOutCirc:function(h,g,a,e,f){return e*Math.sqrt(1-(g=g/f-1)*g)+a},easeInOutCirc:function(h,g,a,e,f){if((g/=f/2)<1){return -e/2*(Math.sqrt(1-g*g)-1)+a}return(e/2)*(Math.sqrt(1-(g-=2)*g)+1)+a},easeInElastic:function(l,k,f,g,h){var j=1.70158;var i=0;var e=g;if(k==0){return f}if((k/=h)==1){return f+g}if(!i){i=h*0.3}if(e<Math.abs(g)){e=g;var j=i/4}else{var j=i/(2*Math.PI)*Math.asin(g/e)}return -(e*Math.pow(2,10*(k-=1))*Math.sin((k*h-j)*(2*Math.PI)/i))+f},easeOutElastic:function(l,k,f,g,h){var j=1.70158;var i=0;var e=g;if(k==0){return f}if((k/=h)==1){return f+g}if(!i){i=h*0.3}if(e<Math.abs(g)){e=g;var j=i/4}else{var j=i/(2*Math.PI)*Math.asin(g/e)}return e*Math.pow(2,-10*k)*Math.sin((k*h-j)*(2*Math.PI)/i)+g+f},easeInOutElastic:function(l,k,f,g,h){var j=1.70158;var i=0;var e=g;if(k==0){return f}if((k/=h/2)==2){return f+g}if(!i){i=h*(0.3*1.5)}if(e<Math.abs(g)){e=g;var j=i/4}else{var j=i/(2*Math.PI)*Math.asin(g/e)}if(k<1){return -0.5*(e*Math.pow(2,10*(k-=1))*Math.sin((k*h-j)*(2*Math.PI)/i))+f}return e*Math.pow(2,-10*(k-=1))*Math.sin((k*h-j)*(2*Math.PI)/i)*0.5+g+f},easeInBack:function(i,h,a,e,f,g){if(g==undefined){g=1.70158}return e*(h/=f)*h*((g+1)*h-g)+a},easeOutBack:function(i,h,a,e,f,g){if(g==undefined){g=1.70158}return e*((h=h/f-1)*h*((g+1)*h+g)+1)+a},easeInOutBack:function(i,h,a,e,f,g){if(g==undefined){g=1.70158}if((h/=f/2)<1){return e/2*(h*h*(((g*=(1.525))+1)*h-g))+a}return e/2*((h-=2)*h*(((g*=(1.525))+1)*h+g)+2)+a},easeInBounce:function(h,g,a,e,f){return e-jQuery.easing.easeOutBounce(h,f-g,0,e,f)+a},easeOutBounce:function(h,g,a,e,f){if((g/=f)<(1/2.75)){return e*(7.5625*g*g)+a}else{if(g<(2/2.75)){return e*(7.5625*(g-=(1.5/2.75))*g+0.75)+a}else{if(g<(2.5/2.75)){return e*(7.5625*(g-=(2.25/2.75))*g+0.9375)+a}else{return e*(7.5625*(g-=(2.625/2.75))*g+0.984375)+a}}}},easeInOutBounce:function(h,g,a,e,f){if(g<f/2){return jQuery.easing.easeInBounce(h,g*2,0,e,f)*0.5+a}return jQuery.easing.easeOutBounce(h,g*2-f,0,e,f)*0.5+e*0.5+a}});jQuery.fn.tabSlide=function(a){var a=jQuery.extend({btPrev:"a.prev",btNext:"a.next",tabs:"ul.tabset a",holderList:"div",scrollElParent:"ul",scrollEl:"li",duration:1000,autoSlide:false,startAfterClick:10000,otherLinks:false,animateContentHeight:false},a);return this.each(function(){var q=$(this);var f=$(a.holderList,q);var i=$(a.scrollElParent,f);var m=$(a.scrollEl,i);var j=$(a.btNext,q);var l=$(a.btPrev,q);var p=$(a.tabs,q);var k=$(a.otherLinks,q);var h=0;var e=a.duration;var d=0;var o=f.innerWidth();var g=m.length;var b=false,c,w=[];var y=q.find(".buttons>strong");var x=[];m.each(function(){x.push($(this).attr("title"));$(this).removeAttr("title")});y.html(x[d]);var n=false;if(a.autoSlide){n=setInterval(function(){u()},a.autoSlide)}m.each(function(z,A){if(z==0){c=$(A).outerHeight(true)}w[z]=$(A).outerHeight(true)});f.css({overflow:"hidden",height:c});if(a.btNext){j.click(function(){t();u();return false})}if(a.btPrev){l.click(function(){t();d-=1;if(d<0){d=g-1}h=o*d;s();r(d);v();return false})}if(a.tabs){if(!p.parent().filter(".active").length){p.eq(0).parent().addClass("active")}p.each(function(z,A){if($(A).parent().hasClass("active")){h=o*z;i.css({marginLeft:-h});d=z}});p.click(function(){var z=p.index(this);t();p.parent().removeClass("active");h=o*z;s();r(z);d=z;$(this).parent().addClass("active");return false})}if(a.otherLinks){k.click(function(){t();d=parseInt(this.href.substr(this.href.indexOf("#")+1))-1;h=o*d;s();r(d);v();return false})}function t(){if(n){clearInterval(n)}if(b){clearTimeout(b)}if(a.autoSlide&&a.startAfterClick){b=setTimeout(function(){n=setInterval(function(){u()},a.autoSlide)},a.startAfterClick-a.autoSlide)}}function u(){d+=1;if(d>=g){d=0}h=o*d;v();s();r(d);return false}function s(){i.animate({marginLeft:-h},{duration:e,queue:false,easing:"easeOutExpo",complete:function(){y.html(x[d])}})}function r(z){if(a.animateContentHeight){f.animate({height:w[z]},{duration:e,queue:false,easing:"easeOutExpo"})}}function v(){if(a.tabs){p.parent().removeClass("active");p.eq(d).parent().addClass("active")}}})};jQuery.fn.gallery=function(a){var a=jQuery.extend({duration:700,autoSlide:false,slideElement:1,effect:false,fadeEl:"ul",switcher:"ul > li",disableBtn:false,next:"a.link-next, a.btn-next, a.next",prev:"a.link-prev, a.btn-prev, a.prev",circle:true},a);return this.each(function(){var e=$(this);if(!a.effect){var j=a.duration}else{var j=$.browser.msie?0:a.duration}var l=a.autoSlide;var i=a.slideElement;var n=e.find(a.fadeEl);var d=e.find(a.switcher);var g=e.find(a.next);var h=e.find(a.prev);var c=d.index(d.filter(":last"));var m=d.outerWidth(true);var o=Math.ceil(n.parent().width()/m);if(((o-1)*m+m/2)>n.parent().width()){o--}if(l){var k}var b=d.index(d.filter(".active:eq(0)"));if(b<0){b=0}var f=b;if(!a.effect){var q=c-o+1}else{var q=c}if(!a.effect){n.css({marginLeft:-(m*b)})}else{n.css({opacity:0}).removeClass("active").eq(b).addClass("active").css({opacity:1}).css("opacity","auto");d.removeClass("active").eq(b).addClass("active")}if(a.disableBtn){if(c<o){g.addClass(a.disableBtn)}h.addClass(a.disableBtn)}function p(){n.eq(f).animate({opacity:0},{queue:false,duration:j,easing:"linear"});n.removeClass("active").eq(b).addClass("active").animate({opacity:1},{queue:false,duration:j,complete:function(){$(this).css("opacity","auto")},easing:"linear"});d.removeClass("active").eq(b).addClass("active");f=b}function s(){n.animate({marginLeft:-(m*b)},{queue:false,duration:j,easing:"linear"})}function t(){if(a.disableBtn&&(c>o)){h.removeClass(a.disableBtn)}if(a.disableBtn&&(c>o)){g.removeClass(a.disableBtn)}if((b==q)&&a.circle){b=-i}for(var u=0;u<i;u++){b++;if(b>q){b--;if(a.disableBtn&&(c>o)){g.addClass(a.disableBtn)}}}if(b==q){if(a.disableBtn&&(c>o)){g.addClass(a.disableBtn)}}if(b==0){if(a.disableBtn&&(c>o)){h.addClass(a.disableBtn)}}if(!a.effect){s()}else{p()}}function r(){k=setInterval(function(){t()},l)}g.click(function(){if(k){clearTimeout(k)}t();if(l){r()}return false});h.click(function(){if(k){clearTimeout(k)}if(a.disableBtn&&(c>o)){g.removeClass(a.disableBtn)}if((b==0)&&a.circle){b=q+i}for(var u=0;u<i;u++){b--;if(b<0){b++;if(a.disableBtn&&(c>o)){h.addClass(a.disableBtn)}}}if(b==0){if(a.disableBtn&&(c>o)){h.addClass(a.disableBtn)}}if(!a.effect){s()}else{p()}if(l){r()}return false});if(a.effect){d.click(function(){b=d.index($(this));if(k){clearTimeout(k)}p();if(l){r()}return false})}if(l){r()}})};$(document).ready(function(){$jScroller.add("#scroller_container","#scroller","left",3,true);$jScroller.start()});if(!this.JSON){this.JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null"}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==="string"){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v}}if(typeof JSON.stringify!=="function"){JSON.stringify=function(value,replacer,space){var i;gap="";indent="";if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" "}}else{if(typeof space==="string"){indent=space}}rep=replacer;if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("JSON.stringify")}return str("",{"":value})}}if(typeof JSON.parse!=="function"){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}text=String(text);cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("JSON.parse")}}}());(function(){function log(){if(typeof(console)!="undefined"&&typeof(console.log)=="function"){Array.prototype.unshift.call(arguments,"[Ajax Upload]");console.log(Array.prototype.join.call(arguments," "))}}function addEvent(el,type,fn){if(el.addEventListener){el.addEventListener(type,fn,false)}else{if(el.attachEvent){el.attachEvent("on"+type,function(){fn.call(el)})}else{throw new Error("not supported or DOM not loaded")}}}function addResizeEvent(fn){var timeout;addEvent(window,"resize",function(){if(timeout){clearTimeout(timeout)}timeout=setTimeout(fn,100)})}if(document.documentElement.getBoundingClientRect){var getOffset=function(el){var box=el.getBoundingClientRect();var doc=el.ownerDocument;var body=doc.body;var docElem=doc.documentElement;var clientTop=docElem.clientTop||body.clientTop||0;var clientLeft=docElem.clientLeft||body.clientLeft||0;var zoom=1;if(body.getBoundingClientRect){var bound=body.getBoundingClientRect();zoom=(bound.right-bound.left)/body.clientWidth}if(zoom>1){clientTop=0;clientLeft=0}var top=box.top/zoom+(window.pageYOffset||docElem&&docElem.scrollTop/zoom||body.scrollTop/zoom)-clientTop,left=box.left/zoom+(window.pageXOffset||docElem&&docElem.scrollLeft/zoom||body.scrollLeft/zoom)-clientLeft;return{top:top,left:left}}}else{var getOffset=function(el){var top=0,left=0;do{top+=el.offsetTop||0;left+=el.offsetLeft||0;el=el.offsetParent}while(el);return{left:left,top:top}}}function getBox(el){var left,right,top,bottom;var offset=getOffset(el);left=offset.left;top=offset.top;right=left+el.offsetWidth;bottom=top+el.offsetHeight;return{left:left,right:right,top:top,bottom:bottom}}function addStyles(el,styles){for(var name in styles){if(styles.hasOwnProperty(name)){el.style[name]=styles[name]}}}function copyLayout(from,to){var box=getBox(from);addStyles(to,{position:"absolute",left:box.left+"px",top:box.top+"px",width:from.offsetWidth+"px",height:from.offsetHeight+"px"})}var toElement=(function(){var div=document.createElement("div");return function(html){div.innerHTML=html;var el=div.firstChild;return div.removeChild(el)}})();var getUID=(function(){var id=0;return function(){return"ValumsAjaxUpload"+id++}})();function fileFromPath(file){return file.replace(/.*(\/|\\)/,"")}function getExt(file){return(-1!==file.indexOf("."))?file.replace(/.*[.]/,""):""}function hasClass(el,name){var re=new RegExp("\\b"+name+"\\b");return re.test(el.className)}function addClass(el,name){if(!hasClass(el,name)){el.className+=" "+name}}function removeClass(el,name){var re=new RegExp("\\b"+name+"\\b");el.className=el.className.replace(re,"")}function removeNode(el){el.parentNode.removeChild(el)}window.AjaxUpload=function(button,options){this._settings={action:"upload.php",name:"userfile",data:{},autoSubmit:true,responseType:false,hoverClass:"hover",disabledClass:"disabled",onChange:function(file,extension){},onSubmit:function(file,extension){},onComplete:function(file,response){}};for(var i in options){if(options.hasOwnProperty(i)){this._settings[i]=options[i]}}if(button.jquery){button=button[0]}else{if(typeof button=="string"){if(/^#.*/.test(button)){button=button.slice(1)}button=document.getElementById(button)}}if(!button||button.nodeType!==1){throw new Error("Please make sure that you're passing a valid element")}if(button.nodeName.toUpperCase()=="A"){addEvent(button,"click",function(e){if(e&&e.preventDefault){e.preventDefault()}else{if(window.event){window.event.returnValue=false}}})}this._button=button;this._input=null;this._disabled=false;this.enable();this._rerouteClicks()};AjaxUpload.prototype={setData:function(data){this._settings.data=data},disable:function(){addClass(this._button,this._settings.disabledClass);this._disabled=true;var nodeName=this._button.nodeName.toUpperCase();if(nodeName=="INPUT"||nodeName=="BUTTON"){this._button.setAttribute("disabled","disabled")}if(this._input){this._input.parentNode.style.visibility="hidden"}},enable:function(){removeClass(this._button,this._settings.disabledClass);this._button.removeAttribute("disabled");this._disabled=false},_createInput:function(){var self=this;var input=document.createElement("input");input.setAttribute("type","file");input.setAttribute("name",this._settings.name);addStyles(input,{position:"absolute",right:0,margin:0,padding:0,fontSize:"480px",cursor:"pointer"});var div=document.createElement("div");addStyles(div,{display:"block",position:"absolute",overflow:"hidden",margin:0,padding:0,opacity:0,direction:"ltr",zIndex:2147483583});if(div.style.opacity!=="0"){if(typeof(div.filters)=="undefined"){throw new Error("Opacity not supported by the browser")}div.style.filter="alpha(opacity=0)"}addEvent(input,"change",function(){if(!input||input.value===""){return}var file=fileFromPath(input.value);if(false===self._settings.onChange.call(self,file,getExt(file))){self._clearInput();return}if(self._settings.autoSubmit){self.submit()}});addEvent(input,"mouseover",function(){addClass(self._button,self._settings.hoverClass)});addEvent(input,"mouseout",function(){removeClass(self._button,self._settings.hoverClass);input.parentNode.style.visibility="hidden"});div.appendChild(input);document.body.appendChild(div);this._input=input},_clearInput:function(){if(!this._input){return}removeNode(this._input.parentNode);this._input=null;this._createInput();removeClass(this._button,this._settings.hoverClass)},_rerouteClicks:function(){var self=this;addEvent(self._button,"mouseover",function(){if(self._disabled){return}if(!self._input){self._createInput()}var div=self._input.parentNode;copyLayout(self._button,div);div.style.visibility="visible"})},_createIframe:function(){var id=getUID();var iframe=toElement('<iframe src="javascript:false;" name="'+id+'" />');iframe.setAttribute("id",id);iframe.style.display="none";document.body.appendChild(iframe);return iframe},_createForm:function(iframe){var settings=this._settings;var form=toElement('<form method="post" enctype="multipart/form-data"></form>');form.setAttribute("action",settings.action);form.setAttribute("target",iframe.name);form.style.display="none";document.body.appendChild(form);for(var prop in settings.data){if(settings.data.hasOwnProperty(prop)){var el=document.createElement("input");el.setAttribute("type","hidden");el.setAttribute("name",prop);el.setAttribute("value",settings.data[prop]);form.appendChild(el)}}return form},_getResponse:function(iframe,file){var toDeleteFlag=false,self=this,settings=this._settings;addEvent(iframe,"load",function(){if(iframe.src=="javascript:'%3Chtml%3E%3C/html%3E';"||iframe.src=="javascript:'<html></html>';"){if(toDeleteFlag){setTimeout(function(){removeNode(iframe)},0)}return}var doc=iframe.contentDocument?iframe.contentDocument:window.frames[iframe.id].document;if(doc.readyState&&doc.readyState!="complete"){return}if(doc.body&&doc.body.innerHTML=="false"){return}var response;if(doc.XMLDocument){response=doc.XMLDocument}else{if(doc.body){response=doc.body.innerHTML;if(settings.responseType&&settings.responseType.toLowerCase()=="json"){if(doc.body.firstChild&&doc.body.firstChild.nodeName.toUpperCase()=="PRE"){response=doc.body.firstChild.firstChild.nodeValue}if(response){response=eval("("+response+")")}else{response={}}}}else{response=doc}}settings.onComplete.call(self,file,response);toDeleteFlag=true;iframe.src="javascript:'<html></html>';"})},submit:function(){var self=this,settings=this._settings;if(!this._input||this._input.value===""){return}var file=fileFromPath(this._input.value);if(false===settings.onSubmit.call(this,file,getExt(file))){this._clearInput();return}var iframe=this._createIframe();var form=this._createForm(iframe);removeNode(this._input.parentNode);removeClass(self._button,self._settings.hoverClass);form.appendChild(this._input);form.submit();removeNode(form);form=null;removeNode(this._input);this._input=null;this._getResponse(iframe,file);this._createInput()}}})();function setFlashSize(b,a){var c=[0,0];if(typeof(window.innerWidth)=="number"){c=[window.innerWidth,window.innerHeight]}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){c=[document.documentElement.clientWidth,document.documentElement.clientHeight]}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){c=[document.body.clientWidth,document.body.clientHeight]}}}document.getElementById("videoContent").style.minWidth=b+"px";document.getElementById("videoContent").style.minHeight=a+"px";document.getElementById("videoContent").style.width=c[0]<b?b+"px":"100%";document.getElementById("videoContent").style.height=c[1]<a?a+"px":"100%"}function registerNextPrev(a){$(a+" a.next").click(function(){var b=$(this).parent().find(".active").parent().next();if(b.index()!=-1){b.find("a").click()}else{$(this).parent().find(".active").parent().parent().find("li").first().find("a").click()}});$(a+" a.prev").click(function(){var b=$(this).parent().find(".active").parent().prev();if(b.index()!=-1){b.find("a").click()}else{$(this).parent().find(".active").parent().parent().find("li").last().find("a").click()}})}function initTabs(){setTimeout(function(){var g=document.getElementsByTagName("ul");for(var b=0;b<g.length;b++){if(g[b].className.indexOf("tabset")!=-1){var h=[];var e=g[b].getElementsByTagName("a");for(var d=0;d<e.length;d++){if(e[d].className.indexOf("tab")!=-1){h.push(e[d]);e[d].tabs=h;var a=document.getElementById(e[d].href.substr(e[d].href.indexOf("#")+1));if(a){if(e[d].className.indexOf("active")!=-1){a.style.display="block"}else{a.style.display="none"}}e[d].onclick=function(){var k=document.getElementById(this.href.substr(this.href.indexOf("#")+1));if(k){for(var m=0;m<this.tabs.length;m++){var p=document.getElementById(this.tabs[m].href.substr(this.tabs[m].href.indexOf("#")+1));if(p){p.style.display="none"}this.tabs[m].className=this.tabs[m].className.replace("active","")}this.className+=" active";k.style.display="block";if(this.href.substr(this.href.indexOf("#tab")+4)==2){initialize(0)}else{if(this.href.indexOf("#tab2-")!=-1){var n=this.href.substr(this.href.indexOf("#tab2-")+6)-1;initialize(n)}else{if(this.href.substr(this.href.indexOf("#tab")+4)==3){$("#tab3 h1").html(this.innerHTML);var l={};var o={wmode:"opaque"};var j={};swfobject.embedSWF(this.rel,"videoContent","100%","100%","9.0.0","../expressInstall.swf",l,o,j);setFlashSize(600,400)}}}return false}}}}}}var f=document.getElementsByTagName("div");for(var b=0;b<f.length;b++){if(f[b].className.indexOf("scoreboard-pager")!=-1){var h=[];var e=f[b].getElementsByTagName("a");for(var d=0;d<e.length;d++){if(e[d].className.indexOf("prev")!=-1){e[d].onclick=function(){var i=$(this).parent().find(".active").parent().prev();if(i.index()!=-1){i.find("a").click()}else{$(this).parent().find(".active").parent().parent().find("li").last().find("a").click()}}}else{if(e[d].className.indexOf("next")!=-1){e[d].onclick=function(){var i=$(this).parent().find(".active").parent().next();if(i.index()!=-1){i.find("a").click()}else{$(this).parent().find(".active").parent().parent().find("li").first().find("a").click()}}}}}}}},50)}if(window.addEventListener){window.addEventListener("load",initTabs,false)}else{if(window.attachEvent&&!window.opera){window.attachEvent("onload",initTabs)}};(function(av){var V=av(window),at,W,X=-1,al,aw,T,au,ax,aj,ap,ak=!window.XMLHttpRequest,aq=[],ai=document.documentElement,ag={},ar=new Image(),af=new Image(),ab,M,Y,an,ad,S,Z,Q,N,ah;av(function(){av("body").append(av([ab=av('<div id="lbOverlay" />')[0],M=av('<div id="lbCenter" />')[0],Z=av('<div id="lbBottomContainer" />')[0]]).css("display","none"));Y=av('<div id="lbImage" />').appendTo(M).append(an=av('<div style="position: relative;" />').append([ad=av('<a id="lbPrevLink" href="#" />').click(P)[0],S=av('<a id="lbNextLink" href="#" />').click(U)[0]])[0])[0];Q=av('<div id="lbBottom" />').appendTo(Z).append([av('<a id="lbCloseLink" href="#" />').add(ab).click(R)[0],N=av('<div id="lbCaption" />')[0],ah=av('<div id="lbNumber" />')[0],av('<div style="clear: both;" />')[0]])[0]});av.slimbox=function(c,b,a){at=av.extend({loop:false,overlayOpacity:0.8,overlayFadeDuration:400,resizeDuration:400,resizeEasing:"swing",initialWidth:250,initialHeight:250,imageFadeDuration:400,captionAnimationDuration:400,counterText:"Image {x} of {y}",closeKeys:[27,88,67],previousKeys:[37,80],nextKeys:[39,78]},a);if(typeof c=="string"){c=[[c,b]];b=0}ax=V.scrollTop()+(V.height()/2);aj=at.initialWidth;ap=at.initialHeight;av(M).css({top:Math.max(0,ax-(ap/2)),width:aj,height:ap,marginLeft:-aj/2}).show();au=ak||(ab.currentStyle&&(ab.currentStyle.position!="fixed"));if(au){ab.style.position="absolute"}av(ab).css("opacity",at.overlayOpacity).fadeIn(at.overlayFadeDuration);ay();ae(1);W=c;at.loop=at.loop&&(W.length>1);return O(b)};av.fn.slimbox=function(a,d,c){d=d||function(e){return[e.href,e.title]};c=c||function(){return true};var b=this;return b.unbind("click").click(function(){var g=this,i=0,h,e=0,f;h=av.grep(b,function(k,j){return c.call(g,k,j)});for(f=h.length;e<f;++e){if(h[e]==g){i=e}h[e]=d(h[e],e)}return av.slimbox(h,i,a)})};function ay(){var b=V.scrollLeft(),a=V.width();av([M,Z]).css("left",b+(a/2));if(au){av(ab).css({left:b,top:V.scrollTop(),width:a,height:V.height()})}}function ae(a){if(a){av("object").add(ak?"select":"embed").each(function(c,d){aq[c]=[d,d.style.visibility];d.style.visibility="hidden"})}else{av.each(aq,function(c,d){d[0].style.visibility=d[1]});aq=[]}var b=a?"bind":"unbind";V[b]("scroll resize",ay);av(document)[b]("keydown",am)}function am(c){var b=c.keyCode,a=av.inArray;return(a(b,at.closeKeys)>=0)?R():(a(b,at.nextKeys)>=0)?U():(a(b,at.previousKeys)>=0)?P():false}function P(){return O(aw)}function U(){return O(T)}function O(a){if(a>=0){X=a;al=W[X][0];aw=(X||(at.loop?W.length:0))-1;T=((X+1)%W.length)||(at.loop?0:-1);ao();M.className="lbLoading";ag=new Image();ag.onload=ac;ag.src=al}return false}function ac(){M.className="";av(Y).css({backgroundImage:"url("+al+")",visibility:"hidden",display:""});av(an).width(ag.width);av([an,ad,S]).height(ag.height);av(N).html(W[X][1]||"");av(ah).html((((W.length>1)&&at.counterText)||"").replace(/{x}/,X+1).replace(/{y}/,W.length));if(aw>=0){ar.src=W[aw][0]}if(T>=0){af.src=W[T][0]}aj=Y.offsetWidth;ap=Y.offsetHeight;var a=Math.max(0,ax-(ap/2));if(M.offsetHeight!=ap){av(M).animate({height:ap,top:a},at.resizeDuration,at.resizeEasing)}if(M.offsetWidth!=aj){av(M).animate({width:aj,marginLeft:-aj/2},at.resizeDuration,at.resizeEasing)}av(M).queue(function(){av(Z).css({width:aj,top:a+ap,marginLeft:-aj/2,visibility:"hidden",display:""});av(Y).css({display:"none",visibility:"",opacity:""}).fadeIn(at.imageFadeDuration,aa)})}function aa(){if(aw>=0){av(ad).show()}if(T>=0){av(S).show()}av(Q).css("marginTop",-Q.offsetHeight).animate({marginTop:0},at.captionAnimationDuration);Z.style.visibility=""}function ao(){ag.onload=null;ag.src=ar.src=af.src=al;av([M,Y,Q]).stop(true);av([ad,S,Y,Z]).hide()}function R(){if(X>=0){ao();X=aw=T=-1;av(M).hide();av(ab).stop().fadeOut(at.overlayFadeDuration,ae)}return false}})(jQuery);if(!/android|iphone|ipod|series60|symbian|windows ce|blackberry/i.test(navigator.userAgent)){jQuery(function(a){a("a[rel^='lightbox']").slimbox({counterText:"Bild {x} av {y}"},function(b){var d=a(b).parent().find("p.boattitle").html();var c=a(b).parent().find("p.boatid").html();if(b.title!=""&&b.title!=null&&c!=""&&c!=null){d=d+'<br /><span style="font-weight:normal;">Postad av: <a href="'+c+'">'+b.title+"</a></span>"}if(d==null||d.length==0){d=b.title}return[b.href,d]},function(b){return(this==b)||((this.rel.length>8)&&(this.rel==b.rel))})})};eval(function(h,b,d,g,f,i){f=function(a){return(a<b?"":f(parseInt(a/b)))+((a=a%b)>35?String.fromCharCode(a+29):a.toString(36))};if(!"".replace(/^/,String)){while(d--){i[f(d)]=g[d]||f(d)}g=[function(a){return i[a]}];f=function(){return"\\w+"};d=1}while(d--){if(g[d]){h=h.replace(new RegExp("\\b"+f(d)+"\\b","g"),g[d])}}return h}("$2={Q:{R:\"S 2 T w U\",V:0.4,W:\"X Y (Z://10.11)\",12:\"13 14 15\"},5:{g:[],x:16,s:{6:/([0-9,.\\-]+)6/}},h:{m:0,y:0},17:j(a,b,c,d,e){3($(a).F&&$(b).F&&c&&d>=1){$(a).k({18:'19'});$(b).k({1a:'1b',7:0,8:0});3(e){$(b).1c(j(){$2.n($(b),1d)},j(){$2.n($(b),G)})}$2.5.g.1e({z:$(a),f:$(b),H:c,o:d,n:G})}},n:j(a,b){3(a&&I b!=='J'){w(t i K $2.5.g){3($2.5.g[i].f.L(\"M\")===a.L(\"M\")){$2.5.g[i].n=b}}}},p:j(){3($2.h.m===0&&$2.5.x>0){$2.h.m=l.1f($2.A,$2.5.x)}3(!$2.h.y){$(l).1g($2.N);$(l).O($2.p);$(l).1h($2.p);$(l).A($2.p);$(1i).1j($2.p);3($.1k.1l){l.O()}$2.h.y=1}},N:j(){3($2.h.m){l.1m($2.h.m);$2.h.m=0}},B:{6:j(a){t b='';3(a){3(a.C($2.5.s.6)){3(I a.C($2.5.s.6)[1]!=='J'){b=a.C($2.5.s.6)[1]}}}1n b}},A:j(){w(t i K $2.5.g){3($2.5.g.1o(i)){t a=$2.5.g[i],7=P(($2.B.6(a.f.k('7'))||0)),8=P(($2.B.6(a.f.k('8'))||0)),D=a.z.q(),E=a.z.r(),q=a.f.q(),r=a.f.r();3(!a.n){1p(a.H){u'1q':3(8<=-1*q){8=D}a.f.k('8',8-a.o+'6');v;u'1r':3(7>=E){7=-1*r}a.f.k('7',7+a.o+'6');v;u'7':3(7<=-1*r){7=E}a.f.k('7',7-a.o+'6');v;u'1s':3(8>=D){8=-1*q}a.f.k('8',8+a.o+'6');v}}}}}};",62,91,"||jScroller|if||config|px|left|top|||||||child|obj|cache||function|css|window|timer|pause|speed|start|height|width|regExp|var|case|break|for|refresh|init|parent|scroll|get|match|min_height|min_width|length|false|direction|typeof|undefined|in|attr|id|stop|focus|Number|info|Name|ByRei|Plugin|jQuery|Version|Author|Markus|Bordihn|http|markusbordihn|de|Description|Next|Generation|Autoscroller|120|add|overflow|hidden|position|absolute|hover|true|push|setInterval|blur|resize|document|mousemove|browser|msie|clearInterval|return|hasOwnProperty|switch|up|right|down".split("|"),0,{}));var swfobject=function(){var ae="undefined",aG="object",aJ="Shockwave Flash",aR="ShockwaveFlash.ShockwaveFlash",aE="application/x-shockwave-flash",aH="SWFObjectExprInst",aS="onreadystatechange",aB=window,ap=document,aK=navigator,aL=false,aN=[al],aA=[],az=[],ao=[],au,aF,ag,aa,aq=false,X=false,ay,ak,aw=true,ax=function(){var a=typeof ap.getElementById!=ae&&typeof ap.getElementsByTagName!=ae&&typeof ap.createElement!=ae,h=aK.userAgent.toLowerCase(),j=aK.platform.toLowerCase(),e=j?/win/.test(j):/win/.test(h),c=j?/mac/.test(j):/mac/.test(h),f=/webkit/.test(h)?parseFloat(h.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,i=!+"\v1",g=[0,0,0],b=null;if(typeof aK.plugins!=ae&&typeof aK.plugins[aJ]==aG){b=aK.plugins[aJ].description;if(b&&!(typeof aK.mimeTypes!=ae&&aK.mimeTypes[aE]&&!aK.mimeTypes[aE].enabledPlugin)){aL=true;i=false;b=b.replace(/^.*\s+(\S+\s+\S+$)/,"$1");g[0]=parseInt(b.replace(/^(.*)\..*$/,"$1"),10);g[1]=parseInt(b.replace(/^.*\.(.*)\s.*$/,"$1"),10);g[2]=/[a-zA-Z]/.test(b)?parseInt(b.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof aB.ActiveXObject!=ae){try{var d=new ActiveXObject(aR);if(d){b=d.GetVariable("$version");if(b){i=true;b=b.split(" ")[1].split(",");g=[parseInt(b[0],10),parseInt(b[1],10),parseInt(b[2],10)]}}}catch(k){}}}return{w3:a,pv:g,wk:f,ie:i,win:e,mac:c}}(),ar=function(){if(!ax.w3){return}if((typeof ap.readyState!=ae&&ap.readyState=="complete")||(typeof ap.readyState==ae&&(ap.getElementsByTagName("body")[0]||ap.body))){ah()}if(!aq){if(typeof ap.addEventListener!=ae){ap.addEventListener("DOMContentLoaded",ah,false)}if(ax.ie&&ax.win){ap.attachEvent(aS,function(){if(ap.readyState=="complete"){ap.detachEvent(aS,arguments.callee);ah()}});if(aB==top){(function(){if(aq){return}try{ap.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}ah()})()}}if(ax.wk){(function(){if(aq){return}if(!/loaded|complete/.test(ap.readyState)){setTimeout(arguments.callee,0);return}ah()})()}aI(ah)}}();function ah(){if(aq){return}try{var d=ap.getElementsByTagName("body")[0].appendChild(ac("span"));d.parentNode.removeChild(d)}catch(a){return}aq=true;var b=aN.length;for(var c=0;c<b;c++){aN[c]()}}function at(a){if(aq){a()}else{aN[aN.length]=a}}function aI(b){if(typeof aB.addEventListener!=ae){aB.addEventListener("load",b,false)}else{if(typeof ap.addEventListener!=ae){ap.addEventListener("load",b,false)}else{if(typeof aB.attachEvent!=ae){an(aB,"onload",b)}else{if(typeof aB.onload=="function"){var a=aB.onload;aB.onload=function(){a();b()}}else{aB.onload=b}}}}}function al(){if(aL){aP()}else{am()}}function aP(){var b=ap.getElementsByTagName("body")[0];var a=ac(aG);a.setAttribute("type",aE);var d=b.appendChild(a);if(d){var c=0;(function(){if(typeof d.GetVariable!=ae){var e=d.GetVariable("$version");if(e){e=e.split(" ")[1].split(",");ax.pv=[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10)]}}else{if(c<10){c++;setTimeout(arguments.callee,10);return}}b.removeChild(a);d=null;am()})()}else{am()}}function am(){var g=aA.length;if(g>0){for(var f=0;f<g;f++){var k=aA[f].id;var b=aA[f].callbackFn;var a={success:false,id:k};if(ax.pv[0]>0){var e=ab(k);if(e){if(ai(aA[f].swfVersion)&&!(ax.wk&&ax.wk<312)){aQ(k,true);if(b){a.success=true;a.ref=aU(k);b(a)}}else{if(aA[f].expressInstall&&Y()){var i={};i.data=aA[f].expressInstall;i.width=e.getAttribute("width")||"0";i.height=e.getAttribute("height")||"0";if(e.getAttribute("class")){i.styleclass=e.getAttribute("class")}if(e.getAttribute("align")){i.align=e.getAttribute("align")}var h={};var j=e.getElementsByTagName("param");var c=j.length;for(var d=0;d<c;d++){if(j[d].getAttribute("name").toLowerCase()!="movie"){h[j[d].getAttribute("name")]=j[d].getAttribute("value")}}aD(i,h,k,b)}else{aC(e);if(b){b(a)}}}}}else{aQ(k,true);if(b){var l=aU(k);if(l&&typeof l.SetVariable!=ae){a.success=true;a.ref=l}b(a)}}}}}function aU(a){var b=null;var c=ab(a);if(c&&c.nodeName=="OBJECT"){if(typeof c.SetVariable!=ae){b=c}else{var d=c.getElementsByTagName(aG)[0];if(d){b=d}}}return b}function Y(){return !X&&ai("6.0.65")&&(ax.win||ax.mac)&&!(ax.wk&&ax.wk<312)}function aD(a,b,f,h){X=true;ag=h||null;aa={success:false,id:f};var e=ab(f);if(e){if(e.nodeName=="OBJECT"){au=aj(e);aF=null}else{au=e;aF=f}a.id=aH;if(typeof a.width==ae||(!/%$/.test(a.width)&&parseInt(a.width,10)<310)){a.width="310"}if(typeof a.height==ae||(!/%$/.test(a.height)&&parseInt(a.height,10)<137)){a.height="137"}ap.title=ap.title.slice(0,47)+" - Flash Player Installation";var d=ax.ie&&ax.win?"ActiveX":"PlugIn",c="MMredirectURL="+aB.location.toString().replace(/&/g,"%26")+"&MMplayerType="+d+"&MMdoctitle="+ap.title;if(typeof b.flashvars!=ae){b.flashvars+="&"+c}else{b.flashvars=c}if(ax.ie&&ax.win&&e.readyState!=4){var g=ac("div");f+="SWFObjectNew";g.setAttribute("id",f);e.parentNode.insertBefore(g,e);e.style.display="none";(function(){if(e.readyState==4){e.parentNode.removeChild(e)}else{setTimeout(arguments.callee,10)}})()}aM(a,b,f)}}function aC(b){if(ax.ie&&ax.win&&b.readyState!=4){var a=ac("div");b.parentNode.insertBefore(a,b);a.parentNode.replaceChild(aj(b),a);b.style.display="none";(function(){if(b.readyState==4){b.parentNode.removeChild(b)}else{setTimeout(arguments.callee,10)}})()}else{b.parentNode.replaceChild(aj(b),b)}}function aj(b){var a=ac("div");if(ax.win&&ax.ie){a.innerHTML=b.innerHTML}else{var e=b.getElementsByTagName(aG)[0];if(e){var c=e.childNodes;if(c){var d=c.length;for(var f=0;f<d;f++){if(!(c[f].nodeType==1&&c[f].nodeName=="PARAM")&&!(c[f].nodeType==8)){a.appendChild(c[f].cloneNode(true))}}}}}return a}function aM(i,g,k){var j,a=ab(k);if(ax.wk&&ax.wk<312){return j}if(a){if(typeof i.id==ae){i.id=k}if(ax.ie&&ax.win){var h="";for(var e in i){if(i[e]!=Object.prototype[e]){if(e.toLowerCase()=="data"){g.movie=i[e]}else{if(e.toLowerCase()=="styleclass"){h+=' class="'+i[e]+'"'}else{if(e.toLowerCase()!="classid"){h+=" "+e+'="'+i[e]+'"'}}}}}var f="";for(var d in g){if(g[d]!=Object.prototype[d]){f+='<param name="'+d+'" value="'+g[d]+'" />'}}a.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+h+">"+f+"</object>";az[az.length]=i.id;j=ab(i.id)}else{var l=ac(aG);l.setAttribute("type",aE);for(var c in i){if(i[c]!=Object.prototype[c]){if(c.toLowerCase()=="styleclass"){l.setAttribute("class",i[c])}else{if(c.toLowerCase()!="classid"){l.setAttribute(c,i[c])}}}}for(var b in g){if(g[b]!=Object.prototype[b]&&b.toLowerCase()!="movie"){af(l,b,g[b])}}a.parentNode.replaceChild(l,a);j=l}}return j}function af(d,b,c){var a=ac("param");a.setAttribute("name",b);a.setAttribute("value",c);d.appendChild(a)}function aT(b){var a=ab(b);if(a&&a.nodeName=="OBJECT"){if(ax.ie&&ax.win){a.style.display="none";(function(){if(a.readyState==4){Z(b)}else{setTimeout(arguments.callee,10)}})()}else{a.parentNode.removeChild(a)}}}function Z(c){var b=ab(c);if(b){for(var a in b){if(typeof b[a]=="function"){b[a]=null}}b.parentNode.removeChild(b)}}function ab(c){var a=null;try{a=ap.getElementById(c)}catch(b){}return a}function ac(a){return ap.createElement(a)}function an(c,a,b){c.attachEvent(a,b);ao[ao.length]=[c,a,b]}function ai(c){var b=ax.pv,a=c.split(".");a[0]=parseInt(a[0],10);a[1]=parseInt(a[1],10)||0;a[2]=parseInt(a[2],10)||0;return(b[0]>a[0]||(b[0]==a[0]&&b[1]>a[1])||(b[0]==a[0]&&b[1]==a[1]&&b[2]>=a[2]))?true:false}function aO(c,f,d,b){if(ax.ie&&ax.mac){return}var a=ap.getElementsByTagName("head")[0];if(!a){return}var e=(d&&typeof d=="string")?d:"screen";if(b){ay=null;ak=null}if(!ay||ak!=e){var g=ac("style");g.setAttribute("type","text/css");g.setAttribute("media",e);ay=a.appendChild(g);if(ax.ie&&ax.win&&typeof ap.styleSheets!=ae&&ap.styleSheets.length>0){ay=ap.styleSheets[ap.styleSheets.length-1]}ak=e}if(ax.ie&&ax.win){if(ay&&typeof ay.addRule==aG){ay.addRule(c,f)}}else{if(ay&&typeof ap.createTextNode!=ae){ay.appendChild(ap.createTextNode(c+" {"+f+"}"))}}}function aQ(c,a){if(!aw){return}var b=a?"visible":"hidden";if(aq&&ab(c)){ab(c).style.visibility=b}else{aO("#"+c,"visibility:"+b)}}function av(b){var c=/[\\\"<>\.;]/;var a=c.exec(b)!=null;return a&&typeof encodeURIComponent!=ae?encodeURIComponent(b):b}var ad=function(){if(ax.ie&&ax.win){window.attachEvent("onunload",function(){var c=ao.length;for(var b=0;b<c;b++){ao[b][0].detachEvent(ao[b][1],ao[b][2])}var f=az.length;for(var a=0;a<f;a++){aT(az[a])}for(var e in ax){ax[e]=null}ax=null;for(var d in swfobject){swfobject[d]=null}swfobject=null})}}();return{registerObject:function(b,c,a,e){if(ax.w3&&b&&c){var d={};d.id=b;d.swfVersion=c;d.expressInstall=a;d.callbackFn=e;aA[aA.length]=d;aQ(b,false)}else{if(e){e({success:false,id:b})}}},getObjectById:function(a){if(ax.w3){return aU(a)}},embedSWF:function(b,h,e,g,j,a,k,d,f,c){var i={success:false,id:h};if(ax.w3&&!(ax.wk&&ax.wk<312)&&b&&h&&e&&g&&j){aQ(h,false);at(function(){e+="";g+="";var m={};if(f&&typeof f===aG){for(var o in f){m[o]=f[o]}}m.data=b;m.width=e;m.height=g;var p={};if(d&&typeof d===aG){for(var n in d){p[n]=d[n]}}if(k&&typeof k===aG){for(var l in k){if(typeof p.flashvars!=ae){p.flashvars+="&"+l+"="+k[l]}else{p.flashvars=l+"="+k[l]}}}if(ai(j)){var q=aM(m,p,h);if(m.id==h){aQ(h,true)}i.success=true;i.ref=q}else{if(a&&Y()){m.data=a;aD(m,p,h,c);return}else{aQ(h,true)}}if(c){c(i)}})}else{if(c){c(i)}}},switchOffAutoHideShow:function(){aw=false},ua:ax,getFlashPlayerVersion:function(){return{major:ax.pv[0],minor:ax.pv[1],release:ax.pv[2]}},hasFlashPlayerVersion:ai,createSWF:function(c,b,a){if(ax.w3){return aM(c,b,a)}else{return undefined}},showExpressInstall:function(d,a,b,c){if(ax.w3&&Y()){aD(d,a,b,c)}},removeSWF:function(a){if(ax.w3){aT(a)}},createCSS:function(a,d,c,b){if(ax.w3){aO(a,d,c,b)}},addDomLoadEvent:at,addLoadEvent:aI,getQueryParamValue:function(a){var d=ap.location.search||ap.location.hash;if(d){if(/\?/.test(d)){d=d.split("?")[1]}if(a==null){return av(d)}var c=d.split("&");for(var b=0;b<c.length;b++){if(c[b].substring(0,c[b].indexOf("="))==a){return av(c[b].substring((c[b].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(X){var a=ab(aH);if(a&&au){a.parentNode.replaceChild(au,a);if(aF){aQ(aF,true);if(ax.ie&&ax.win){au.style.display="block"}}if(ag){ag(aa)}}X=false}}}}();(function(d){function l(b,a,c){a="("+c.replace(m,"\\$1")+")";return b.replace(new RegExp(a,"gi"),"<strong>$1</strong>")}function i(b,a){this.el=d(b);this.el.attr("autocomplete","off");this.suggestions=[];this.data=[];this.badQueries=[];this.selectedIndex=-1;this.currentValue=this.el.val();this.intervalId=0;this.cachedResponse=[];this.onChangeInterval=null;this.ignoreValueChange=false;this.serviceUrl=a.serviceUrl;this.isLocal=false;this.options={autoSubmit:false,minChars:1,maxHeight:300,deferRequestBy:0,width:0,highlight:true,params:{},fnFormatResult:l,delimiter:null,zIndex:9999};this.initialize();this.setOptions(a)}var m=new RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\)","g");d.fn.autocomplete=function(b){return new i(this.get(0)||d("<input />"),b)};i.prototype={killerFn:null,initialize:function(){var b,a,c;b=this;a=Math.floor(Math.random()*1048576).toString(16);c="Autocomplete_"+a;this.killerFn=function(e){if(d(e.target).parents(".autocomplete").size()===0){b.killSuggestions();b.disableKillerFn()}};if(!this.options.width){this.options.width=this.el.width()}this.mainContainerId="AutocompleteContainter_"+a;d('<div id="'+this.mainContainerId+'" style="position:absolute;z-index:9999;"><div class="autocomplete-w1"><span class="ltop"></span><span class="rtop"></span><div class="autocomplete" id="'+c+'" style="display:none; width:300px;"></div><span class="lbot"></span><span class="rbot"></span></div></div>').appendTo("body");this.container=d("#"+c);this.fixPosition();window.opera?this.el.keypress(function(e){b.onKeyPress(e)}):this.el.keydown(function(e){b.onKeyPress(e)});this.el.keyup(function(e){b.onKeyUp(e)});this.el.blur(function(){b.enableKillerFn()});this.el.focus(function(){b.fixPosition()})},setOptions:function(b){var a=this.options;d.extend(a,b);if(a.lookup){this.isLocal=true;if(d.isArray(a.lookup)){a.lookup={suggestions:a.lookup,data:[]}}}d("#"+this.mainContainerId).css({zIndex:a.zIndex});this.container.css({maxHeight:a.maxHeight+"px",width:a.width+47})},clearCache:function(){this.cachedResponse=[];this.badQueries=[]},disable:function(){this.disabled=true},enable:function(){this.disabled=false},fixPosition:function(){var b=this.el.offset();d("#"+this.mainContainerId).css({top:b.top+this.el.innerHeight()-32+"px",left:b.left-23+"px"})},enableKillerFn:function(){d(document).bind("click",this.killerFn)},disableKillerFn:function(){d(document).unbind("click",this.killerFn)},killSuggestions:function(){var b=this;this.stopKillSuggestions();this.intervalId=window.setInterval(function(){b.hide();b.stopKillSuggestions()},300)},stopKillSuggestions:function(){window.clearInterval(this.intervalId)},onKeyPress:function(b){if(!(this.disabled||!this.enabled)){switch(b.keyCode){case 27:this.el.val(this.currentValue);this.hide();break;case 9:case 13:if(this.selectedIndex===-1||b.keyCode===9){this.hide();return}var bt=document.getElementById("QuickSearchSubmitBtn");bt.focus();bt.click();this.select(this.selectedIndex);break;case 38:this.moveUp();break;case 40:this.moveDown();break;default:return}b.stopImmediatePropagation();b.preventDefault()}},onKeyUp:function(b){if(!this.disabled){switch(b.keyCode){case 38:case 40:return}clearInterval(this.onChangeInterval);if(this.currentValue!==this.el.val()){if(this.options.deferRequestBy>0){var a=this;this.onChangeInterval=setInterval(function(){a.onValueChange()},this.options.deferRequestBy)}else{this.onValueChange()}}}},onValueChange:function(){clearInterval(this.onChangeInterval);this.currentValue=this.el.val();var b=this.getQuery(this.currentValue);this.selectedIndex=-1;if(this.ignoreValueChange){this.ignoreValueChange=false}else{b===""||b.length<this.options.minChars?this.hide():this.getSuggestions(b)}},getQuery:function(b){var a;a=this.options.delimiter;if(!a){return d.trim(b)}b=b.split(a);return d.trim(b[b.length-1])},getSuggestionsLocal:function(b){var a,c,e,g,f;c=this.options.lookup;e=c.suggestions.length;a={suggestions:[],data:[]};b=b.toLowerCase();for(f=0;f<e;f++){g=c.suggestions[f];if(g.toLowerCase().indexOf(b)===0){a.suggestions.push(g);a.data.push(c.data[f])}}return a},getSuggestions:function(b){var a,c;if((a=this.isLocal?this.getSuggestionsLocal(b):this.cachedResponse[b])&&d.isArray(a.suggestions)){this.suggestions=a.suggestions;this.data=a.data;this.suggest()}else{if(!this.isBadQuery(b)){c=this;c.options.params.query=b;d.get(this.serviceUrl,c.options.params,function(e){c.processResponse(e)},"text")}}},isBadQuery:function(b){for(var a=this.badQueries.length;a--;){if(b.indexOf(this.badQueries[a])===0){return true}}return false},hide:function(){this.enabled=false;this.selectedIndex=-1;this.container.hide();$(".autocomplete-w1 span").hide()},suggest:function(){if(this.suggestions.length===0){this.hide();$(".autocomplete-w1 span").hide()}else{var b,a,c,e,g,f,j,k;$(".autocomplete-w1 span").show();b=this;a=this.suggestions.length;e=this.options.fnFormatResult;g=this.getQuery(this.currentValue);j=function(h){return function(){b.activate(h)}};k=function(h){return function(){b.select(h)}};this.container.hide().empty();for(f=0;f<a;f++){c=this.suggestions[f];c=d((b.selectedIndex===f?'<div class="selected"':"<div")+' title="'+c+'">'+e(c,this.data[f],g)+"</div>");c.mouseover(j(f));c.click(k(f));this.container.append(c)}this.enabled=true;this.container.show()}},processResponse:function(b){var a;try{a=eval("("+b+")")}catch(c){return}if(!d.isArray(a.data)){a.data=[]}if(!this.options.noCache){this.cachedResponse[a.query]=a;a.suggestions.length===0&&this.badQueries.push(a.query)}if(a.query===this.getQuery(this.currentValue)){this.suggestions=a.suggestions;this.data=a.data;this.suggest()}},activate:function(b){var a,c;a=this.container.children();this.selectedIndex!==-1&&a.length>this.selectedIndex&&d(a.get(this.selectedIndex)).removeClass();this.selectedIndex=b;if(this.selectedIndex!==-1&&a.length>this.selectedIndex){c=a.get(this.selectedIndex);d(c).addClass("selected")}return c},deactivate:function(b,a){b.className="";if(this.selectedIndex===a){this.selectedIndex=-1}},select:function(b){var a;if(a=this.suggestions[b]){this.el.val(a);if(this.options.autoSubmit){var bt=document.getElementById("QuickSearchSubmitBtn");bt.focus();bt.click()}this.ignoreValueChange=true;this.hide();this.onSelect(b)}},moveUp:function(){if(this.selectedIndex!==-1){if(this.selectedIndex===0){this.container.children().get(0).className="";this.selectedIndex=-1;this.el.val(this.currentValue)}else{this.adjustScroll(this.selectedIndex-1)}}},moveDown:function(){this.selectedIndex!==this.suggestions.length-1&&this.adjustScroll(this.selectedIndex+1)},adjustScroll:function(b){var a,c,e;a=this.activate(b).offsetTop;c=this.container.scrollTop();e=c+this.options.maxHeight-25;if(a<c){this.container.scrollTop(a)}else{a>e&&this.container.scrollTop(a-this.options.maxHeight+25)}this.el.val(this.getValue(this.suggestions[b]))},onSelect:function(b){var a,c;a=this.options.onSelect;c=this.suggestions[b];b=this.data[b];this.el.val(this.getValue(c));d.isFunction(a)&&a(c,b,this.el)},getValue:function(b){var a,c;a=this.options.delimiter;if(!a){return b}c=this.currentValue;a=c.split(a);if(a.length===1){return b}return c.substr(0,c.length-a[a.length-1].length)+b}}})(jQuery);$(document).ready(function(){$("#QuickSearchInput").autocomplete({serviceUrl:"/services/Presentation.svc/SearchBoatInActiveRace",minChars:2,autoSubmit:true,deferRequestBy:10,zIndex:9998})});function initialize(e){var b=$("#GoogleMapsBoatId").val().split(";");var a=b[e].split(",");var f=13;var g;var c=document.getElementById("ClassListPosition");if(c&&c.options[c.selectedIndex].text=="VIEW ALL"){g=true}else{g=false}var d=["#e42124","#cbce21","#fdcf18","#d412fd","#1793fc","#00d8ff","#fe9519","#151515","#32ab16","#5d27e8","#ffffff","#a2a2a2","#ff00ae","#72ff00","#00d8ff"];if(a!=""&&a.length>0&&f!=""){$.each($("div.map-holder, div.map-holder-small,div.map-holder-big"),function(j,n){var k=new google.maps.LatLng(59.288957,18.91722);var m={zoom:7,center:k,mapTypeId:google.maps.MapTypeId.ROADMAP};var l=new google.maps.Map(n,m);if(a.length>1){var k=new google.maps.LatLng(59,18);var m={zoom:8,center:k,mapTypeId:google.maps.MapTypeId.ROADMAP};l.setOptions(m)}else{if(a.length==1){var i={raceId:f,boatId:a[0]};$.ajax({url:"/Services/Presentation.svc/GetParticipantMicroBlog",data:JSON.stringify(i),contentType:"application/json; charset=utf-8",dataType:"json",type:"POST",success:function(t){var v=t.GetParticipantMicroBlogResult;var r="/assets/images/message.png";for(var q=0;q<v.length;q++){var u=v[q];var p=new google.maps.LatLng(u.Latitude,u.Longitude);var o=new google.maps.Marker({position:p,icon:r,map:l});var s="";if(u.ImageUrl!=""&&u.ImageUrl!=null){s+='<a href="'+u.ImageUrl+'" class="lightboxtweet"><img src="'+u.SmallImageUrl+'" style="float:left;margin:0 5px 0 0;" alt="img" /></a>'}s+="<strong>"+u.Timestamp+"</strong><br />"+u.Message;attachMessage(l,o,s)}},error:function(q,p,o){alert(q.status)}})}}var h=new google.maps.LatLngBounds();var i={viewAll:g,boatIds:a,raceId:f};$.ajax({url:"/Services/Presentation.svc/GetParticipantRaceLog",data:JSON.stringify(i),contentType:"application/json; charset=utf-8",dataType:"json",type:"POST",success:function(B){var s=B.GetParticipantRaceLogResult;var z=$("#MaxMinutesBetweenMapLines").val();for(var w=0;w<s.length;w++){var E=s[w].coordList;var u=s[w].currentIndex;if(E.length>1||g){if(E[0].Latitude!="Null"){var y=new google.maps.LatLng(E[0].Latitude,E[0].Longitude);if(a.length==1){var D={zoom:7,center:y,mapTypeId:google.maps.MapTypeId.ROADMAP};l.setOptions(D)}h.extend(y)}var r;if(g){r=8}else{r=u}var v="/imagemod/GoogleMaps/mapBoat_"+r+"-"+E[0].TrueHeading+".png";var C;if(E[0].Latitude=="Null"){}else{C=new google.maps.LatLng(E[0].Latitude-6e-06,E[0].Longitude);var p=new google.maps.Marker({position:C,icon:v,map:l});var A="";var F="green";if(s[w].LastPositionReportTimeInMinutes>z){F="red"}if(s[w].ImageUrl!=""&&s[w].ImageUrl!=null){A+='<a href="'+s[w].ImageUrl+'" class="lightboxtweet"><img src="'+s[w].SmallImageUrl+'" style="float:left;margin:0 5px 0 0;" alt="img" /></a>'}A+="<strong>"+s[w].name+'</strong><span style="float:right"></span><br />B&aring;t: '+s[w].BoatType+"<br />Skeppare: "+s[w].SkipperName+"<br />Rapportmetod: "+s[w].ReportMethod;if(E[0].SpeedOverGround>-1){A+="<br />Hastighet: "+E[0].SpeedOverGround}if(E[0].TrueHeading=="511"){E[0].TrueHeading="n/a"}else{E[0].TrueHeading+="&deg;"}A+="<br />Aktuell kurs: "+E[0].TrueHeading+'<br /><span style="color:'+F+'">'+s[w].TimeSailed+"</span> sen senaste positionsrapportering<br />";attachMessage(l,p,A)}if(!g){var o=new Array();var q;var x=0;for(var t=0;t<E.length;t++){if(t==0){x=0}else{x=E[t-1].TimeDiff}if(E[t].TimeDiff-x<z){o[o.length]=new google.maps.LatLng(E[t].Latitude,E[t].Longitude)}else{q=new google.maps.Polyline({path:o,strokeColor:d[u-1],strokeOpacity:0.6,strokeWeight:2});q.setMap(l);o=new Array()}}if(o.length>0){q=new google.maps.Polyline({path:o,strokeColor:d[u-1],strokeOpacity:0.6,strokeWeight:2});q.setMap(l)}}}if(a.length>1||g){l.fitBounds(h)}}},error:function(q,p,o){alert(q.status)}});if(!g){var i={boatId:a[0],raceId:f};$.ajax({url:"/Services/Presentation.svc/GetRoundingsForRaceClass",data:JSON.stringify(i),contentType:"application/json; charset=utf-8",dataType:"json",type:"POST",success:function(r){var t=r.GetRoundingsForRaceClassResult;var q="/Assets/images/rounding_point.png";for(var p=0;p<t.length;p++){var s=new google.maps.LatLng(t[p].Latitude,t[p].Longitude);var o=new google.maps.Marker({position:s,icon:q,map:l});attachMessage(l,o,t[p].Name)}},error:function(q,p,o){alert(q.status)}})}})}else{$.each($("div.map-holder, div.map-holder-small,div.map-holder-big"),function(h,l){var i=new google.maps.LatLng(59.288957,18.91722);var k={zoom:7,center:i,mapTypeId:google.maps.MapTypeId.ROADMAP};var j=new google.maps.Map(l,k)})}}function attachMessage(b,c,d){var a=new google.maps.InfoWindow({content:d,size:new google.maps.Size(50,50)});google.maps.event.addListener(c,"mouseover",function(){a.open(b,c);$(".lightboxtweet").slimbox({counterText:"Bild {x} av {y}"},null,function(e){return(this==e)||((this.rel.length>8)&&(this.rel==e.rel))})});google.maps.event.addListener(c,"mouseout",function(){a.close()})};/*
 * jQuery Countdown plugin v1.0
 * http://www.littlewebthings.com/projects/countdown/
 *
 * Copyright 2010, Vassilis Dourdounis
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
(function(a){a.fn.countDown=function(b){config={};a.extend(config,b);diffSecs=this.setCountDown(config);if(config.onComplete){a.data(a(this)[0],"callback",config.onComplete)}if(config.omitWeeks){a.data(a(this)[0],"omitWeeks",config.omitWeeks)}a("#"+a(this).attr("id")+" .digit").html('<div class="top"></div><div class="bottom"></div><div class="hidden" style="display:none"></div>');a(this).doCountDown(a(this).attr("id"),diffSecs,500);return this};a.fn.stopCountDown=function(){clearTimeout(a.data(this[0],"timer"))};a.fn.startCountDown=function(){this.doCountDown(a(this).attr("id"),a.data(this[0],"diffSecs"),500)};a.fn.setCountDown=function(c){var d=new Date();if(c.targetDate){d=new Date(c.targetDate.month+"/"+c.targetDate.day+"/"+c.targetDate.year+" "+c.targetDate.hour+":"+c.targetDate.min+":"+c.targetDate.sec+(c.targetDate.utc?" UTC":""))}else{if(c.targetOffset){d.setFullYear(c.targetOffset.year+d.getFullYear());d.setMonth(c.targetOffset.month+d.getMonth());d.setDate(c.targetOffset.day+d.getDate());d.setHours(c.targetOffset.hour+d.getHours());d.setMinutes(c.targetOffset.min+d.getMinutes());d.setSeconds(c.targetOffset.sec+d.getSeconds())}}var b=new Date();diffSecs=Math.floor((d.valueOf()-b.valueOf())/1000);a.data(this[0],"diffSecs",diffSecs);return diffSecs};a.fn.doCountDown=function(d,b,c){$this=a("#"+d);if(b<=0){b=0;if(a.data($this[0],"timer")){clearTimeout(a.data($this[0],"timer"))}}secs=b%60;mins=Math.floor(b/60)%60;hours=Math.floor(b/60/60)%24;if(a.data($this[0],"omitWeeks")==true){days=Math.floor(b/60/60/24);weeks=Math.floor(b/60/60/24/7)}else{days=Math.floor(b/60/60/24)%7;weeks=Math.floor(b/60/60/24/7)}$this.dashChangeTo(d,"seconds_dash",secs,c?c:800);$this.dashChangeTo(d,"minutes_dash",mins,c?c:1200);$this.dashChangeTo(d,"hours_dash",hours,c?c:1200);$this.dashChangeTo(d,"days_dash",days,c?c:1200);$this.dashChangeTo(d,"weeks_dash",weeks,c?c:1200);a.data($this[0],"diffSecs",b);if(b>0){e=$this;t=setTimeout(function(){e.doCountDown(d,b-1)},1000);a.data(e[0],"timer",t)}else{if(cb=a.data($this[0],"callback")){a.data($this[0],"callback")()}}};a.fn.dashChangeTo=function(h,c,j,f){$this=a("#"+h);for(var g=($this.find("."+c+" .digit").length-1);g>=0;g--){var b=j%10;j=(j-b)/10;$this.digitChangeTo("#"+$this.attr("id")+" ."+c+" .digit:eq("+g+")",b,f)}};a.fn.digitChangeTo=function(b,d,c){if(!c){c=800}var f="<img src='/assets/images/ksss_siffra_"+(d?d:"0")+".png' />";if(a(b+" div.hidden").html()!=d+""){a(b+" div.top").css({display:"none"});a(b+" div.top").html(f).slideDown(c);a(b+" div.hidden").html((d?d:"0"));a(b+" div.bottom").animate({height:""},c,function(){a(b+" div.bottom").html(a(b+" div.top").html());a(b+" div.bottom").css({display:"block",height:""});a(b+" div.top").hide().slideUp(10)})}}})(jQuery);
