function MM_findObj(b,a){var c,e,f;if(!a){a=document}if((c=b.indexOf("?"))>0&&parent.frames.length){a=parent.frames[b.substring(c+1)].document;b=b.substring(0,c)}if(!(f=a[b])&&a.all){f=a.all[b]}for(e=0;!f&&e<a.forms.length;e++){f=a.forms[e][b]}for(e=0;!f&&a.layers&&e<a.layers.length;e++){f=MM_findObj(b,a.layers[e].document)}if(!f&&a.getElementById){f=a.getElementById(b)}return f}function MM_swapImage(){var c,e=0,d,b=MM_swapImage.arguments;document.MM_sr=new Array;for(c=0;c<(b.length-2);c+=4){if((d=MM_findObj(b[c]))!=null){document.MM_sr[e++]=d;if(!d.oSrc){d.oSrc=d.src}d.src=b[c+2]}}}function allTab2_Off(){s$("group2_tab1").style.display="none";s$("group2_tab1_div").className="tab-1a";s$("group2_tab2").style.display="none";s$("group2_tab2_div").className="tab-1a";s$("group2_tab3").style.display="none";s$("group2_tab3_div").className="tab-1a";s$("group2_tab4").style.display="none";s$("group2_tab4_div").className="tab-1a";s$("group2_tab5").style.display="none";s$("group2_tab5_div").className="tab-1a"}function tab_geral(){allTab2_Off();s$("group2_tab1").style.display="block";s$("group2_tab1_div").className="tab-1a-hi"}function tab_equipamento(){allTab2_Off();s$("group2_tab2").style.display="block";s$("group2_tab2_div").className="tab-1a-hi"}function tab_fotosdet(){allTab2_Off();s$("group2_tab3").style.display="block";s$("group2_tab3_div").className="tab-1a-hi"}function tab_videodet(){allTab2_Off();s$("group2_tab4").style.display="block";s$("group2_tab4_div").className="tab-1a-hi"}function tab_vendedor(){allTab2_Off();s$("group2_tab5").style.display="block";s$("group2_tab5_div").className="tab-1a-hi";if(s$("sellerMap")!==null){ShowMap()}}function allTab3_Off(){s$("group3_tab1").style.display="none";s$("group3_tab1_div").className="tab-1a";s$("group3_tab2").style.display="none";s$("group3_tab2_div").className="tab-1a";s$("group3_tab3").style.display="none";s$("group3_tab3_div").className="tab-1a"}function tab_viaturas(){allTab3_Off();s$("group3_tab1").style.display="block";s$("group3_tab1_div").className="tab-1a-hi"}function tab_alertas(){allTab3_Off();s$("group3_tab2").style.display="block";s$("group3_tab2_div").className="tab-1a-hi"}function tab_mensagens(){allTab3_Off();s$("group3_tab3").style.display="block";s$("group3_tab3_div").className="tab-1a-hi"}function allTab4_Off(){s$("group4_tab1").style.display="none";s$("group4_tab1_div").className="tab-1a2";s$("group4_tab2").style.display="none";s$("group4_tab2_div").className="tab-1a2";s$("group4_tab3").style.display="none";s$("group4_tab3_div").className="tab-1a2";s$("group4_tab4").style.display="none";s$("group4_tab4_div").className="tab-1a2"}function tab_marcamodelo(){allTab4_Off();s$("group4_tab1").style.display="block";s$("group4_tab1_div").className="tab-1a-hi2"}function tab_tipo(){allTab4_Off();s$("group4_tab2").style.display="block";s$("group4_tab2_div").className="tab-1a-hi2"}function tab_estilo(){allTab4_Off();s$("group4_tab3").style.display="block";s$("group4_tab3_div").className="tab-1a-hi2"}function tab_livre(){allTab4_Off();s$("group4_tab4").style.display="block";s$("group4_tab4_div").className="tab-1a-hi2"}function allTab5_Off(){s$("group5_tab1").style.display="none";s$("group5_tab1_div").className="tab-1a2";s$("group5_tab2").style.display="none";s$("group5_tab2_div").className="tab-1a2";s$("group5_tab3").style.display="none";s$("group5_tab3_div").className="tab-1a2"}function tab_marcamodelo2(){allTab5_Off();s$("group5_tab1").style.display="block";s$("group5_tab1_div").className="tab-1a-hi2"}function tab_tipo2(){allTab5_Off();s$("group5_tab2").style.display="block";s$("group5_tab2_div").className="tab-1a-hi2"}function tab_livre2(){allTab5_Off();s$("group5_tab3").style.display="block";s$("group5_tab3_div").className="tab-1a-hi2"}function allTab6_Off(){s$("group6_tab1").style.display="none";s$("group6_tab1_div").className="tab-1a3";s$("group6_tab2").style.display="none";s$("group6_tab2_div").className="tab-1a3"}function tab_prof(){allTab6_Off();s$("group6_tab1").style.display="block";s$("group6_tab1_div").className="tab-1a-hi3"}function tab_part(){allTab6_Off();s$("group6_tab2").style.display="block";s$("group6_tab2_div").className="tab-1a-hi3"}var lastDiv="";function showDiv(a){if(lastDiv){document.getElementById(lastDiv).className="none"}if(a&&document.getElementById(a)){document.getElementById(a).className="block";lastDiv=a}}function HideLayer(a){var b=document.getElementById(a);if(b!=null){b.style.display="none"}}function ShowLayer(a){var b=document.getElementById(a);if(b!=null){b.style.display="block"}}function HideLayer2(a){var b=document.getElementById(a);if(b!=null){b.style.visibility="hidden"}}function ShowLayer2(a){var b=document.getElementById(a);if(b!=null){b.style.visibility="visible"}}function addLoadEvent(a){var b=window.onload;if(typeof window.onload!="function"){try{window.onload=a}catch(c){}}else{window.onload=function(){if(b){b()}a()}}}function addPhoto(){for(var a=0;a<photoList.length;a++){if(photoList[a]==false){photoList[a]=true;ShowLayer("dFoto"+a.toString());break}}hideAddPhotosDiv()}function removePhoto(a){document.getElementById("addPhotosDiv").style.visibility="visible";photoList[a]=false;HideLayer("dFoto"+a.toString())}function initializeArray(){for(var a=0;a<count;a++){photoList[a]=true}}function hideAddPhotosDiv(){var b=true;for(var a=0;a<photoList.length;a++){if(photoList[a]==false){b=false;break}}if(b){document.getElementById("addPhotosDiv").style.visibility="hidden"}}function ShowMRec(a){if(document.getElementById(a)==null){return}document.getElementById(a).style.display="block"}function HideMRec(a){if(document.getElementById(a)==null){return}document.getElementById(a).style.display="none"}function HideModal(a,b){if(document.getElementById(a)==null){return}document.getElementById(a).style.display="none";ShowMRec(b)}function ShowModal(a,b){if(document.getElementById(a)==null){return}document.getElementById(a).style.display="block";HideMRec(b)}function HideObjects(){document.getElementById("divMrec").style.display="none"}function ShowObjects(){document.getElementById("divMrec").style.display="block"}function revealSimpleModal(a){window.onscroll=function(){document.getElementById(a).style.top=document.body.scrollTop};document.getElementById(a).style.display="block";document.getElementById(a).style.top=document.body.scrollTop}function hideSimpleModal(a){document.getElementById(a).style.display="none"}function hideParentSimpleModal(a){window.parent.document.getElementById(a).style.display="none"}function getPageSize(){var h,g;if(window.innerHeight&&window.scrollMaxY){h=window.innerWidth+window.scrollMaxX;g=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){h=document.body.scrollWidth;g=document.body.scrollHeight}else{h=document.body.offsetWidth;g=document.body.offsetHeight}}var e,f;if(self.innerHeight){if(document.documentElement.clientWidth){e=document.documentElement.clientWidth}else{e=self.innerWidth}f=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){e=document.documentElement.clientWidth;f=document.documentElement.clientHeight}else{if(document.body){e=document.body.clientWidth;f=document.body.clientHeight}}}if(g<f){pageHeight=f}else{pageHeight=g}if(h<e){pageWidth=h}else{pageWidth=e}return[pageWidth,pageHeight]}function JSONscriptRequest(a){this.fullUrl=a;this.noCacheIE="&noCacheIE="+(new Date()).getTime();this.headLoc=document.getElementsByTagName("head").item(0);this.scriptId="JscriptId"+JSONscriptRequest.scriptCounter++}JSONscriptRequest.scriptCounter=1;JSONscriptRequest.prototype.buildScriptTag=function(){this.scriptObj=document.createElement("script");this.scriptObj.setAttribute("type","text/javascript");this.scriptObj.setAttribute("charset","utf-8");this.scriptObj.setAttribute("src",this.fullUrl+this.noCacheIE);this.scriptObj.setAttribute("id",this.scriptId)};JSONscriptRequest.prototype.removeScriptTag=function(){this.headLoc.removeChild(this.scriptObj)};JSONscriptRequest.prototype.addScriptTag=function(){this.headLoc.appendChild(this.scriptObj)};function DoCall(a){articleJsonObject=null;articleJsonObject=new JSONscriptRequest(a);articleJsonObject.buildScriptTag();articleJsonObject.addScriptTag()}function DoImg(a,b){document.getElementById(b).value=a.c.code;document.getElementById("img").src="http://services.sapo.pt/Captcha/Show?id="+a.c.i+"&noCacheIE="+(new Date()).getTime()}function DoCallWithReturn(a){articleJsonObject=null;articleJsonObject=new JSONscriptRequest(a);articleJsonObject.buildScriptTag();articleJsonObject.addScriptTag();return articleJsonObject}var idNotSelected=0;function ddl_ClientValidate(b,d){if(d.Value==idNotSelected){d.IsValid=false;var a=b.parentNode.getElementsByTagName("select");a[0].style.backgroundColor="#F2C6C6";try{a[1].style.backgroundColor="#F2C6C6"}catch(c){}return}d.IsValid=true;return}function FocusEvaluation(c){var b=c.innerevaluationfunction(c);var a=document.getElementById(c.controltovalidate);if(a.firstvalidator==c){a.isvalid=true}a.isvalid&=b;if(a.lastvalidator!=c){return b}if(false==a.isvalid){a.style.backgroundColor="#F2C6C6"}if(a.isvalid){a.style.csstext="";a.style.backgroundColor="#FFFFFF"}return b}function initValidators(){if(typeof(Page_Validators)=="undefined"){return}for(var a=0;a<Page_Validators.length;++a){var b=document.getElementById(Page_Validators[a].controltovalidate);if(b!=null){b.lastvalidator=Page_Validators[a];if(undefined==b.firstvalidator){b.firstvalidator=Page_Validators[a]}Page_Validators[a].innerevaluationfunction=Page_Validators[a].evaluationfunction;Page_Validators[a].evaluationfunction=FocusEvaluation}}}addLoadEvent(initValidators);if(typeof(SAPO)=="undefined"){window.SAPO={}}else{window.SAPO=window.SAPO}SAPO.namespace=function(b){if(!b||!b.length){return null}var a=b.split(".");var d=SAPO;for(var c=(a[0]=="SAPO")?1:0;c<a.length;++c){d[a[c]]=d[a[c]]||{};d=d[a[c]]}return d};SAPO.extend=function(b,c){var a=function(){};a.prototype=c.prototype;b.prototype=new a();b.prototype.constructor=b;b.superclass=c.prototype;if(c.prototype.constructor==Object.prototype.constructor){c.prototype.constructor=c}};function s$(d){if(arguments.length>1){for(var a=0,c=[],b=arguments.length;a<b;a++){c.push(s$(arguments[a]))}return c}if(typeof(d)=="string"){d=document.getElementById(d)}return d}Function.prototype.createCallback=function(){var b=arguments;var a=this;return function(){return a.apply(window,b)}};Function.prototype.bindObj=function(){if(arguments.length<2&&arguments[0]===undefined){return this}var d=this;var e=[];for(var a=0,b=arguments.length;a<b;a++){e.push(arguments[a])}var c=e.shift();return function(){return d.apply(c,e.concat(function(f){var h=[];for(var k=0,g=f.length;k<g;k++){h.push(f[k])}return h}(arguments)))}};Function.prototype.bindObjEvent=function(){var c=this;var d=[];for(var a=0;a<arguments.length;a++){d.push(arguments[a])}var b=d.shift();return function(e){return c.apply(b,[e||window.event].concat(d))}};Object.extend=function(a,b){for(var c in b){a[c]=b[c]}return a};if(typeof(SAPO.Browser)=="undefined"){SAPO.Browser={IE:false,GECKO:false,OPERA:false,SAFARI:false,KONQUEROR:false,model:false,version:false,userAgent:false,init:function(){this.detectBrowser();this.setDimensions();this.setReferrer()},setDimensions:function(){var a=0,b=0;if(typeof(window.innerWidth)=="number"){a=window.innerWidth;b=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){a=document.body.clientWidth;b=document.body.clientHeight}}}this.windowWidth=a;this.windowHeight=b},setReferrer:function(){this.referrer=document.referrer!==undefined?document.referrer.length>0?escape(document.referrer):false:false},detectBrowser:function(){var b=navigator.userAgent;this.userAgent=b;b=b.toLowerCase();if((new RegExp("applewebkit/")).test(b)){this.SAFARI=true;this.model="safari";this.version=b.replace(new RegExp("(.*)applewebkit/([^\\s]+)(.*)"),"$2")}else{if((new RegExp("opera")).test(b)){this.OPERA=true;this.model="opera";this.version=b.replace(new RegExp("(.*)opera.([^\\s$]+)(.*)"),"$2")}else{if((new RegExp("konqueror")).test(b)){this.KONQUEROR=true;this.model="konqueror";this.version=b.replace(new RegExp("(.*)konqueror/([^;]+);(.*)"),"$2")}else{if((new RegExp("msie ")).test(b)){this.IE=true;this.model="ie";this.version=b.replace(new RegExp("(.*)\\smsie\\s([^;]+);(.*)"),"$2")}else{if((new RegExp("gecko")).test(b)){this.GECKO=true;var a=new RegExp("(camino|chimera|epiphany|minefield|firefox|firebird|phoenix|galeon|iceweasel|k-meleon|seamonkey|netscape|songbird|sylera)");if(a.test(b)){this.model=b.match(a)[1];this.version=b.replace(new RegExp("(.*)"+this.model+"/([^;\\s$]+)(.*)"),"$2")}else{this.model="mozilla";var c=new RegExp("(.*)rv:([^)]+)(.*)");if(c.test(b)){this.version=b.replace(c,"$2")}}}}}}}},debug:function(){var a="known browsers: (ie, gecko, opera, safari, konqueror) \n";a+=[this.IE,this.GECKO,this.OPERA,this.SAFARI,this.KONQUEROR]+"\n";a+="model -> "+this.model+"\n";a+="version -> "+this.version+"\n";a+="\n";a+="original UA -> "+this.userAgent;alert(a)}};SAPO.Browser.init()}SAPO.logReferer=function(a,c){var d={s:(typeof(c)=="object"&&c.s)?c.s:"js.sapo.pt",swakt:(typeof(c)=="object"&&c.swakt)?c.swakt:"59a97a5f-0924-3720-a62e-0c44d9ea4f16"};if(typeof(a)!="undefined"){var e="http://wa.sl.pt/wa.gif?";var b=["pg="+encodeURIComponent(a),"swasection="+encodeURIComponent(a),"s="+d.s,"ref="+encodeURIComponent(location.href),"swakt="+d.swakt,"etype=libsapojs-view","swav=1","swauv=1","bcs=1","bsr=1","bul=1","bje=1","bfl=1",""];var f=new Image();f.src=e+b.join("&")}};function equipmentSelected_click(a){if(a.checked){a.nextSibling.nextSibling.style.fontWeight="bold"}else{a.nextSibling.nextSibling.style.fontWeight="normal"}}if(!SAPO.Utility&&typeof(SAPO.Utility)=="undefined"){SAPO.namespace("Utility")}SAPO.Utility.Cookie={get:function(){var e=document.cookie||false;var a={};if(e){e=e.replace(new RegExp("; ","g"),";");var b=e.split(";");var d=[];if(b.length>0){for(var c=0;c<b.length;c++){d=b[c].split("=");if(d.length==2){a[d[0]]=decodeURIComponent(d[1])}d=[]}}}return a},set:function(q,p,m,h,o,k){if(!q||p===false||typeof(q)=="undefined"||typeof(p)=="undefined"){return false}else{var e=q+"="+encodeURIComponent(p)}var l=false;var a=false;var c=false;var d=false;if(m&&typeof(m)!="undefined"&&!isNaN(m)){var g=new Date();var j=(parseInt(Number(g.valueOf()))+(Number(parseInt(m))*1000));var n=new Date(j);var f=n.toGMTString();var r=new RegExp("([^\\s]+)(\\s\\d\\d)\\s(\\w\\w\\w)\\s(.*)");f=f.replace(r,"$1$2-$3-$4");l="expires="+f}else{if(typeof(m)!="undefined"&&!isNaN(m)&&Number(parseInt(m))===0){l=""}else{l="expires=Thu, 01-Jan-2037 00:00:01 GMT"}}if(h&&typeof(h)!="undefined"){a="path="+h}else{a="path=/"}if(o&&typeof(o)!="undefined"){c="domain="+o}else{var b=new RegExp(":(.*)");c="domain="+window.location.host;c=c.replace(b,"")}if(k&&typeof(k)!="undefined"){d=k}else{d=false}document.cookie=e+"; "+l+"; "+a+"; "+c+"; "+d},remove:function(d,f,e){var a=false;var c=false;var b=-999999999;if(f&&typeof(f)!="undefined"){a=f}else{a="/"}if(e&&typeof(e)!="undefined"){c=e}else{c=window.location.host}this.set(d,"deleted",b,a,c)},debug:function(){}};function Compare(h,a){try{var e=document.getElementById("iFrmCompare");var c=document.getElementById(h);var d=SAPO.Utility.Cookie.get();var b="";if(c!=null&&c.checked){if(d!=null&&d.vids!=null){b=a+","+d.vids.toString();var g=b.split(",");b="";for(i=0;i<g.length&&i<3;i++){b+=g[i]+","}}else{b=a+","}}else{if(d!=null&&d.vids!=null){var g=d.vids.toString();b=g.replace(a,"")}}b=b.replace(",,",",");if(b.indexOf(",")==0){b=b.substring(1)}if(b.lastIndexOf(",")==b.length-1){b=b.substring(0,b.length-1)}if(b.length>0){SAPO.Utility.Cookie.set("vids",b,3600)}else{SAPO.Utility.Cookie.remove("vids")}if(b.length>0){e.style.display="block"}else{e.style.display="none"}if(e!=null){e.src="/Iframe/compare.aspx"}}catch(f){}}function goCompare(){window.parent.location="/Comparar-Viaturas.aspx"}function updateIframeCompareSize(){var c=SAPO.Utility.Cookie.get();var b="";if(c!=null&&c.vids!=null){b=c.vids}b=b.replace(",,",",");if(b.indexOf(",")==0){b=b.substring(1)}if(b.lastIndexOf(",")==b.length-1){b=b.substring(0,b.length-1)}if(b.length>0){SAPO.Utility.Cookie.set("vids",b,3600)}else{SAPO.Utility.Cookie.remove("vids")}var a=document.getElementById("iFrmCompare");if(b.length>0){a.style.display="block"}else{a.style.display="none"}if(a!=null){a.src="/Iframe/compare.aspx"}}function clearEmail(a){if(a.value=="Insira aqui o seu e-mail"){a.value=""}}function highlightCB(a,c){var b=document.getElementById(c);if(null==b){return}if(a.checked==true){b.style.fontWeight="bold"}else{b.style.fontWeight="normal"}}function clearSearchText(a){if(a.value=="insira viatura a pesquisar"){a.value=""}}(function(aj,an){function a9(){if(!ap.isReady){try{am.documentElement.doScroll("left")}catch(c){setTimeout(a9,1);return}ap.ready()}}function aw(s,c){c.src?ap.ajax({url:c.src,async:false,dataType:"script"}):ap.globalEval(c.text||c.textContent||c.innerHTML||"");c.parentNode&&c.parentNode.removeChild(c)}function B(G,F,K,J,c,s){var w=G.length;if(typeof F==="object"){for(var A in F){B(G,A,F[A],J,c,K)}return G}if(K!==an){J=!s&&J&&ap.isFunction(K);for(A=0;A<w;A++){c(G[A],F,J?K.call(G[A],A,c(G[A],F)):K,s)}return G}return w?c(G[0],F):an}function ac(){return(new Date).getTime()}function C(){return false}function y(){return true}function a6(w,s,c){c[0].type=w;return ap.event.handle.apply(s,c)}function a7(N){var L,P=[],O=[],c=arguments,A,G,K,F,J,s;G=ap.data(this,"events");if(!(N.liveFired===this||!G||!G.live||N.button&&N.type==="click")){N.liveFired=this;var w=G.live.slice(0);for(F=0;F<w.length;F++){G=w[F];G.origType.replace(ag,"")===N.type?O.push(G.selector):w.splice(F--,1)}A=ap(N.target).closest(O,N.currentTarget);J=0;for(s=A.length;J<s;J++){for(F=0;F<w.length;F++){G=w[F];if(A[J].selector===G.selector){K=A[J].elem;O=null;if(G.preType==="mouseenter"||G.preType==="mouseleave"){O=ap(N.relatedTarget).closest(G.selector)[0]}if(!O||O!==K){P.push({elem:K,handleObj:G})}}}}J=0;for(s=P.length;J<s;J++){A=P[J];N.currentTarget=A.elem;N.data=A.handleObj.data;N.handleObj=A.handleObj;if(A.handleObj.origHandler.apply(A.elem,c)===false){L=false;break}}return L}}function aW(s,c){return"live."+(s&&s!=="*"?s+".":"")+c.replace(/\./g,"`").replace(/ /g,"&")}function aX(c){return !c||!c.parentNode||c.parentNode.nodeType===11}function aU(w,s){var c=0;s.each(function(){if(this.nodeName===(w[c]&&w[c].nodeName)){var J=ap.data(w[c++]),F=ap.data(this,J);if(J=J&&J.events){delete F.handle;F.events={};for(var G in J){for(var A in J[G]){ap.event.add(this,G,J[G][A],J[G][A].data)}}}}})}function aV(F,A,s){var G,w,c;A=A&&A[0]?A[0].ownerDocument||A[0]:am;if(F.length===1&&typeof F[0]==="string"&&F[0].length<512&&A===am&&!a0.test(F[0])&&(ap.support.checkClone||!a1.test(F[0]))){w=true;if(c=ap.fragments[F[0]]){if(c!==1){G=c}}}if(!G){G=A.createDocumentFragment();ap.clean(F,A,G,s)}if(w){ap.fragments[F[0]]=c?G:1}return{fragment:G,cacheable:w}}function ad(w,s){var c={};ap.each(p.concat.apply([],p.slice(0,s)),function(){c[this]=w});return c}function aZ(c){return"scrollTo" in c&&c.document?c:c.nodeType===9?c.defaultView||c.parentWindow:false}var ap=function(s,c){return new ap.fn.init(s,c)},at=aj.jQuery,au=aj.$,am=aj.document,ab,az=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,aA=/^.[^:#\[\.,]*$/,ax=/\S/,ay=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,aq=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,I=navigator.userAgent,aR=false,M=[],ah,f=Object.prototype.toString,aC=Object.prototype.hasOwnProperty,bb=Array.prototype.push,H=Array.prototype.slice,aS=Array.prototype.indexOf;ap.fn=ap.prototype={init:function(w,s){var c,A;if(!w){return this}if(w.nodeType){this.context=this[0]=w;this.length=1;return this}if(w==="body"&&!s){this.context=am;this[0]=am.body;this.selector="body";this.length=1;return this}if(typeof w==="string"){if((c=az.exec(w))&&(c[1]||!s)){if(c[1]){A=s?s.ownerDocument||s:am;if(w=aq.exec(w)){if(ap.isPlainObject(s)){w=[am.createElement(w[1])];ap.fn.attr.call(w,s,true)}else{w=[A.createElement(w[1])]}}else{w=aV([c[1]],[A]);w=(w.cacheable?w.fragment.cloneNode(true):w.fragment).childNodes}return ap.merge(this,w)}else{if(s=am.getElementById(c[2])){if(s.id!==c[2]){return ab.find(w)}this.length=1;this[0]=s}this.context=am;this.selector=w;return this}}else{if(!s&&/^\w+$/.test(w)){this.selector=w;this.context=am;w=am.getElementsByTagName(w);return ap.merge(this,w)}else{return !s||s.jquery?(s||ab).find(w):ap(s).find(w)}}}else{if(ap.isFunction(w)){return ab.ready(w)}}if(w.selector!==an){this.selector=w.selector;this.context=w.context}return ap.makeArray(w,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return H.call(this,0)},get:function(c){return c==null?this.toArray():c<0?this.slice(c)[0]:this[c]},pushStack:function(w,s,c){var A=ap();ap.isArray(w)?bb.apply(A,w):ap.merge(A,w);A.prevObject=this;A.context=this.context;if(s==="find"){A.selector=this.selector+(this.selector?" ":"")+c}else{if(s){A.selector=this.selector+"."+s+"("+c+")"}}return A},each:function(s,c){return ap.each(this,s,c)},ready:function(c){ap.bindReady();if(ap.isReady){c.call(am,ap)}else{M&&M.push(c)}return this},eq:function(c){return c===-1?this.slice(c):this.slice(c,+c+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(H.apply(this,arguments),"slice",H.call(arguments).join(","))},map:function(c){return this.pushStack(ap.map(this,function(w,s){return c.call(w,s,w)}))},end:function(){return this.prevObject||ap(null)},push:bb,sort:[].sort,splice:[].splice};ap.fn.init.prototype=ap.fn;ap.extend=ap.fn.extend=function(){var G=arguments[0]||{},F=1,K=arguments.length,J=false,c,s,w,A;if(typeof G==="boolean"){J=G;G=arguments[1]||{};F=2}if(typeof G!=="object"&&!ap.isFunction(G)){G={}}if(K===F){G=this;--F}for(;F<K;F++){if((c=arguments[F])!=null){for(s in c){w=G[s];A=c[s];if(G!==A){if(J&&A&&(ap.isPlainObject(A)||ap.isArray(A))){w=w&&(ap.isPlainObject(w)||ap.isArray(w))?w:ap.isArray(A)?[]:{};G[s]=ap.extend(J,w,A)}else{if(A!==an){G[s]=A}}}}}}return G};ap.extend({noConflict:function(c){aj.$=au;if(c){aj.jQuery=at}return ap},isReady:false,ready:function(){if(!ap.isReady){if(!am.body){return setTimeout(ap.ready,13)}ap.isReady=true;if(M){for(var s,c=0;s=M[c++];){s.call(am,ap)}M=null}ap.fn.triggerHandler&&ap(am).triggerHandler("ready")}},bindReady:function(){if(!aR){aR=true;if(am.readyState==="complete"){return ap.ready()}if(am.addEventListener){am.addEventListener("DOMContentLoaded",ah,false);aj.addEventListener("load",ap.ready,false)}else{if(am.attachEvent){am.attachEvent("onreadystatechange",ah);aj.attachEvent("onload",ap.ready);var s=false;try{s=aj.frameElement==null}catch(c){}am.documentElement.doScroll&&s&&a9()}}}},isFunction:function(c){return f.call(c)==="[object Function]"},isArray:function(c){return f.call(c)==="[object Array]"},isPlainObject:function(s){if(!s||f.call(s)!=="[object Object]"||s.nodeType||s.setInterval){return false}if(s.constructor&&!aC.call(s,"constructor")&&!aC.call(s.constructor.prototype,"isPrototypeOf")){return false}var c;for(c in s){}return c===an||aC.call(s,c)},isEmptyObject:function(s){for(var c in s){return false}return true},error:function(c){throw c},parseJSON:function(c){if(typeof c!=="string"||!c){return null}c=ap.trim(c);if(/^[\],:{}\s]*$/.test(c.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){return aj.JSON&&aj.JSON.parse?aj.JSON.parse(c):(new Function("return "+c))()}else{ap.error("Invalid JSON: "+c)}},noop:function(){},globalEval:function(w){if(w&&ax.test(w)){var s=am.getElementsByTagName("head")[0]||am.documentElement,c=am.createElement("script");c.type="text/javascript";if(ap.support.scriptEval){c.appendChild(am.createTextNode(w))}else{c.text=w}s.insertBefore(c,s.firstChild);s.removeChild(c)}},nodeName:function(s,c){return s.nodeName&&s.nodeName.toUpperCase()===c.toUpperCase()},each:function(G,F,s){var J,w=0,c=G.length,A=c===an||ap.isFunction(G);if(s){if(A){for(J in G){if(F.apply(G[J],s)===false){break}}}else{for(;w<c;){if(F.apply(G[w++],s)===false){break}}}}else{if(A){for(J in G){if(F.call(G[J],J,G[J])===false){break}}}else{for(s=G[0];w<c&&F.call(s,w,s)!==false;s=G[++w]){}}}return G},trim:function(c){return(c||"").replace(ay,"")},makeArray:function(s,c){c=c||[];if(s!=null){s.length==null||typeof s==="string"||ap.isFunction(s)||typeof s!=="function"&&s.setInterval?bb.call(c,s):ap.merge(c,s)}return c},inArray:function(w,s){if(s.indexOf){return s.indexOf(w)}for(var c=0,A=s.length;c<A;c++){if(s[c]===w){return c}}return -1},merge:function(A,w){var c=A.length,F=0;if(typeof w.length==="number"){for(var s=w.length;F<s;F++){A[c++]=w[F]}}else{for(;w[F]!==an;){A[c++]=w[F++]}}A.length=c;return A},grep:function(F,A,s){for(var G=[],w=0,c=F.length;w<c;w++){!s!==!A(F[w],w)&&G.push(F[w])}return G},map:function(G,F,s){for(var J=[],w,c=0,A=G.length;c<A;c++){w=F(G[c],c,s);if(w!=null){J[J.length]=w}}return J.concat.apply([],J)},guid:1,proxy:function(w,s,c){if(arguments.length===2){if(typeof s==="string"){c=w;w=c[s];s=an}else{if(s&&!ap.isFunction(s)){c=s;s=an}}}if(!s&&w){s=function(){return w.apply(c||this,arguments)}}if(w){s.guid=w.guid=w.guid||s.guid||ap.guid++}return s},uaMatch:function(c){c=c.toLowerCase();c=/(webkit)[ \/]([\w.]+)/.exec(c)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(c)||/(msie) ([\w.]+)/.exec(c)||!/compatible/.test(c)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(c)||[];return{browser:c[1]||"",version:c[2]||"0"}},browser:{}});I=ap.uaMatch(I);if(I.browser){ap.browser[I.browser]=true;ap.browser.version=I.version}if(ap.browser.webkit){ap.browser.safari=true}if(aS){ap.inArray=function(s,c){return aS.call(c,s)}}ab=ap(am);if(am.addEventListener){ah=function(){am.removeEventListener("DOMContentLoaded",ah,false);ap.ready()}}else{if(am.attachEvent){ah=function(){if(am.readyState==="complete"){am.detachEvent("onreadystatechange",ah);ap.ready()}}}}(function(){ap.support={};var J=am.documentElement,G=am.createElement("script"),L=am.createElement("div"),K="script"+ac();L.style.display="none";L.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var c=L.getElementsByTagName("*"),s=L.getElementsByTagName("a")[0];if(!(!c||!c.length||!s)){ap.support={leadingWhitespace:L.firstChild.nodeType===3,tbody:!L.getElementsByTagName("tbody").length,htmlSerialize:!!L.getElementsByTagName("link").length,style:/red/.test(s.getAttribute("style")),hrefNormalized:s.getAttribute("href")==="/a",opacity:/^0.55$/.test(s.style.opacity),cssFloat:!!s.style.cssFloat,checkOn:L.getElementsByTagName("input")[0].value==="on",optSelected:am.createElement("select").appendChild(am.createElement("option")).selected,parentNode:L.removeChild(L.appendChild(am.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(am.createTextNode("window."+K+"=1;"))}catch(A){}J.insertBefore(G,J.firstChild);if(aj[K]){ap.support.scriptEval=true;delete aj[K]}try{delete G.test}catch(F){ap.support.deleteExpando=false}J.removeChild(G);if(L.attachEvent&&L.fireEvent){L.attachEvent("onclick",function w(){ap.support.noCloneEvent=false;L.detachEvent("onclick",w)});L.cloneNode(true).fireEvent("onclick")}L=am.createElement("div");L.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";J=am.createDocumentFragment();J.appendChild(L.firstChild);ap.support.checkClone=J.cloneNode(true).cloneNode(true).lastChild.checked;ap(function(){var N=am.createElement("div");N.style.width=N.style.paddingLeft="1px";am.body.appendChild(N);ap.boxModel=ap.support.boxModel=N.offsetWidth===2;am.body.removeChild(N).style.display="none"});J=function(P){var O=am.createElement("div");P="on"+P;var N=P in O;if(!N){O.setAttribute(P,"return;");N=typeof O[P]==="function"}return N};ap.support.submitBubbles=J("submit");ap.support.changeBubbles=J("change");J=G=L=c=s=null}})();ap.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var al="jQuery"+ac(),ar=0,aQ={};ap.extend({cache:{},expando:al,noData:{embed:true,object:true,applet:true},data:function(A,w,c){if(!(A.nodeName&&ap.noData[A.nodeName.toLowerCase()])){A=A==aj?aQ:A;var F=A[al],s=ap.cache;if(!F&&typeof w==="string"&&c===an){return null}F||(F=++ar);if(typeof w==="object"){A[al]=F;s[F]=ap.extend(true,{},w)}else{if(!s[F]){A[al]=F;s[F]={}}}A=s[F];if(c!==an){A[w]=c}return typeof w==="string"?A[w]:A}},removeData:function(A,w){if(!(A.nodeName&&ap.noData[A.nodeName.toLowerCase()])){A=A==aj?aQ:A;var c=A[al],F=ap.cache,s=F[c];if(w){if(s){delete s[w];ap.isEmptyObject(s)&&ap.removeData(A)}}else{if(ap.support.deleteExpando){delete A[ap.expando]}else{A.removeAttribute&&A.removeAttribute(ap.expando)}delete F[c]}}}});ap.fn.extend({data:function(w,s){if(typeof w==="undefined"&&this.length){return ap.data(this[0])}else{if(typeof w==="object"){return this.each(function(){ap.data(this,w)})}}var c=w.split(".");c[1]=c[1]?"."+c[1]:"";if(s===an){var A=this.triggerHandler("getData"+c[1]+"!",[c[0]]);if(A===an&&this.length){A=ap.data(this[0],w)}return A===an&&c[1]?this.data(c[0]):A}else{return this.trigger("setData"+c[1]+"!",[c[0],s]).each(function(){ap.data(this,w,s)})}},removeData:function(c){return this.each(function(){ap.removeData(this,c)})}});ap.extend({queue:function(w,s,c){if(w){s=(s||"fx")+"queue";var A=ap.data(w,s);if(!c){return A||[]}if(!A||ap.isArray(c)){A=ap.data(w,s,ap.makeArray(c))}else{A.push(c)}return A}},dequeue:function(w,s){s=s||"fx";var c=ap.queue(w,s),A=c.shift();if(A==="inprogress"){A=c.shift()}if(A){s==="fx"&&c.unshift("inprogress");A.call(w,function(){ap.dequeue(w,s)})}}});ap.fn.extend({queue:function(s,c){if(typeof s!=="string"){c=s;s="fx"}if(c===an){return ap.queue(this[0],s)}return this.each(function(){var w=ap.queue(this,s,c);s==="fx"&&w[0]!=="inprogress"&&ap.dequeue(this,s)})},dequeue:function(c){return this.each(function(){ap.dequeue(this,c)})},delay:function(s,c){s=ap.fx?ap.fx.speeds[s]||s:s;c=c||"fx";return this.queue(c,function(){var w=this;setTimeout(function(){ap.dequeue(w,c)},s)})},clearQueue:function(c){return this.queue(c||"fx",[])}});var aL=/[\n\t]/g,bc=/\s+/,ao=/\r/g,o=/href|src|style/,e=/(button|input)/i,b=/(button|input|object|select|textarea)/i,d=/^(a|area)$/i,aJ=/radio|checkbox/;ap.fn.extend({attr:function(s,c){return B(this,s,c,true,ap.attr)},removeAttr:function(c){return this.each(function(){ap.attr(this,c,"");this.nodeType===1&&this.removeAttribute(c)})},addClass:function(J){if(ap.isFunction(J)){return this.each(function(O){var N=ap(this);N.addClass(J.call(this,O,N.attr("class")))})}if(J&&typeof J==="string"){for(var G=(J||"").split(bc),L=0,K=this.length;L<K;L++){var c=this[L];if(c.nodeType===1){if(c.className){for(var s=" "+c.className+" ",A=c.className,F=0,w=G.length;F<w;F++){if(s.indexOf(" "+G[F]+" ")<0){A+=" "+G[F]}}c.className=ap.trim(A)}else{c.className=J}}}}return this},removeClass:function(G){if(ap.isFunction(G)){return this.each(function(N){var L=ap(this);L.removeClass(G.call(this,N,L.attr("class")))})}if(G&&typeof G==="string"||G===an){for(var F=(G||"").split(bc),K=0,J=this.length;K<J;K++){var c=this[K];if(c.nodeType===1&&c.className){if(G){for(var s=(" "+c.className+" ").replace(aL," "),w=0,A=F.length;w<A;w++){s=s.replace(" "+F[w]+" "," ")}c.className=ap.trim(s)}else{c.className=""}}}}return this},toggleClass:function(w,s){var c=typeof w,A=typeof s==="boolean";if(ap.isFunction(w)){return this.each(function(F){var G=ap(this);G.toggleClass(w.call(this,F,G.attr("class"),s),s)})}return this.each(function(){if(c==="string"){for(var G,K=0,F=ap(this),J=s,L=w.split(bc);G=L[K++];){J=A?J:!F.hasClass(G);F[J?"addClass":"removeClass"](G)}}else{if(c==="undefined"||c==="boolean"){this.className&&ap.data(this,"__className__",this.className);this.className=this.className||w===false?"":ap.data(this,"__className__")||""}}})},hasClass:function(w){w=" "+w+" ";for(var s=0,c=this.length;s<c;s++){if((" "+this[s].className+" ").replace(aL," ").indexOf(w)>-1){return true}}return false},val:function(G){if(G===an){var F=this[0];if(F){if(ap.nodeName(F,"option")){return(F.attributes.value||{}).specified?F.value:F.text}if(ap.nodeName(F,"select")){var K=F.selectedIndex,J=[],c=F.options;F=F.type==="select-one";if(K<0){return null}var s=F?K:0;for(K=F?K+1:c.length;s<K;s++){var w=c[s];if(w.selected){G=ap(w).val();if(F){return G}J.push(G)}}return J}if(aJ.test(F.type)&&!ap.support.checkOn){return F.getAttribute("value")===null?"on":F.value}return(F.value||"").replace(ao,"")}return an}var A=ap.isFunction(G);return this.each(function(P){var N=ap(this),L=G;if(this.nodeType===1){if(A){L=G.call(this,P,N.val())}if(typeof L==="number"){L+=""}if(ap.isArray(L)&&aJ.test(this.type)){this.checked=ap.inArray(N.val(),L)>=0}else{if(ap.nodeName(this,"select")){var O=ap.makeArray(L);ap("option",this).each(function(){this.selected=ap.inArray(ap(this).val(),O)>=0});if(!O.length){this.selectedIndex=-1}}else{this.value=L}}}})}});ap.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(F,A,s,G){if(!F||F.nodeType===3||F.nodeType===8){return an}if(G&&A in ap.attrFn){return ap(F)[A](s)}G=F.nodeType!==1||!ap.isXMLDoc(F);var w=s!==an;A=G&&ap.props[A]||A;if(F.nodeType===1){var c=o.test(A);if(A in F&&G&&!c){if(w){A==="type"&&e.test(F.nodeName)&&F.parentNode&&ap.error("type property can't be changed");F[A]=s}if(ap.nodeName(F,"form")&&F.getAttributeNode(A)){return F.getAttributeNode(A).nodeValue}if(A==="tabIndex"){return(A=F.getAttributeNode("tabIndex"))&&A.specified?A.value:b.test(F.nodeName)||d.test(F.nodeName)&&F.href?0:an}return F[A]}if(!ap.support.style&&G&&A==="style"){if(w){F.style.cssText=""+s}return F.style.cssText}w&&F.setAttribute(A,""+s);F=!ap.support.hrefNormalized&&G&&c?F.getAttribute(A,2):F.getAttribute(A);return F===null?an:F}return ap.style(F,A,s)}});var ag=/\.(.*)$/,h=function(c){return c.replace(/[^\w\s\.\|`]/g,function(s){return"\\"+s})};ap.event={add:function(O,N,Q,P){if(!(O.nodeType===3||O.nodeType===8)){if(O.setInterval&&O!==aj&&!O.frameElement){O=aj}var c,A;if(Q.handler){c=Q;Q=c.handler}if(!Q.guid){Q.guid=ap.guid++}if(A=ap.data(O)){var G=A.events=A.events||{},K=A.handle;if(!K){A.handle=K=function(){return typeof ap!=="undefined"&&!ap.event.triggered?ap.event.handle.apply(K.elem,arguments):an}}K.elem=O;N=N.split(" ");for(var F,J=0,s;F=N[J++];){A=c?ap.extend({},c):{handler:Q,data:P};if(F.indexOf(".")>-1){s=F.split(".");F=s.shift();A.namespace=s.slice(0).sort().join(".")}else{s=[];A.namespace=""}A.type=F;A.guid=Q.guid;var w=G[F],L=ap.event.special[F]||{};if(!w){w=G[F]=[];if(!L.setup||L.setup.call(O,P,s,K)===false){if(O.addEventListener){O.addEventListener(F,K,false)}else{O.attachEvent&&O.attachEvent("on"+F,K)}}}if(L.add){L.add.call(O,A);if(!A.handler.guid){A.handler.guid=Q.guid}}w.push(A);ap.event.global[F]=true}O=null}}},global:{},remove:function(Q,O,T,R){if(!(Q.nodeType===3||Q.nodeType===8)){var c,A=0,G,K,F,J,s,w,N=ap.data(Q),L=N&&N.events;if(N&&L){if(O&&O.type){T=O.handler;O=O.type}if(!O||typeof O==="string"&&O.charAt(0)==="."){O=O||"";for(c in L){ap.event.remove(Q,c+O)}}else{for(O=O.split(" ");c=O[A++];){J=c;G=c.indexOf(".")<0;K=[];if(!G){K=c.split(".");c=K.shift();F=new RegExp("(^|\\.)"+ap.map(K.slice(0).sort(),h).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(s=L[c]){if(T){J=ap.event.special[c]||{};for(P=R||0;P<s.length;P++){w=s[P];if(T.guid===w.guid){if(G||F.test(w.namespace)){R==null&&s.splice(P--,1);J.remove&&J.remove.call(Q,w)}if(R!=null){break}}}if(s.length===0||R!=null&&s.length===1){if(!J.teardown||J.teardown.call(Q,K)===false){aK(Q,c,N.handle)}delete L[c]}}else{for(var P=0;P<s.length;P++){w=s[P];if(G||F.test(w.namespace)){ap.event.remove(Q,J,w.handler,P);s.splice(P--,1)}}}}}if(ap.isEmptyObject(L)){if(O=N.handle){O.elem=null}delete N.events;delete N.handle;ap.isEmptyObject(N)&&ap.removeData(Q)}}}}},trigger:function(K,J,N,L){var c=K.type||K;if(!L){K=typeof K==="object"?K[al]?K:ap.extend(ap.Event(c),K):ap.Event(c);if(c.indexOf("!")>=0){K.type=c=c.slice(0,-1);K.exclusive=true}if(!N){K.stopPropagation();ap.event.global[c]&&ap.each(ap.cache,function(){this.events&&this.events[c]&&ap.event.trigger(K,J,this.handle.elem)})}if(!N||N.nodeType===3||N.nodeType===8){return an}K.result=an;K.target=N;J=ap.makeArray(J);J.unshift(K)}K.currentTarget=N;(L=ap.data(N,"handle"))&&L.apply(N,J);L=N.parentNode||N.ownerDocument;try{if(!(N&&N.nodeName&&ap.noData[N.nodeName.toLowerCase()])){if(N["on"+c]&&N["on"+c].apply(N,J)===false){K.result=false}}}catch(s){}if(!K.isPropagationStopped()&&L){ap.event.trigger(K,J,L,true)}else{if(!K.isDefaultPrevented()){L=K.target;var A,G=ap.nodeName(L,"a")&&c==="click",w=ap.event.special[c]||{};if((!w._default||w._default.call(N,K)===false)&&!G&&!(L&&L.nodeName&&ap.noData[L.nodeName.toLowerCase()])){try{if(L[c]){if(A=L["on"+c]){L["on"+c]=null}ap.event.triggered=true;L[c]()}}catch(F){}if(A){L["on"+c]=A}ap.event.triggered=false}}}},handle:function(G){var F,s,J,w;G=arguments[0]=ap.event.fix(G||aj.event);G.currentTarget=this;F=G.type.indexOf(".")<0&&!G.exclusive;if(!F){s=G.type.split(".");G.type=s.shift();J=new RegExp("(^|\\.)"+s.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}w=ap.data(this,"events");s=w[G.type];if(w&&s){s=s.slice(0);w=0;for(var c=s.length;w<c;w++){var A=s[w];if(F||J.test(A.namespace)){G.handler=A.handler;G.data=A.data;G.handleObj=A;A=A.handler.apply(this,arguments);if(A!==an){G.result=A;if(A===false){G.preventDefault();G.stopPropagation()}}if(G.isImmediatePropagationStopped()){break}}}}return G.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(w){if(w[al]){return w}var s=w;w=ap.Event(s);for(var c=this.props.length,A;c;){A=this.props[--c];w[A]=s[A]}if(!w.target){w.target=w.srcElement||am}if(w.target.nodeType===3){w.target=w.target.parentNode}if(!w.relatedTarget&&w.fromElement){w.relatedTarget=w.fromElement===w.target?w.toElement:w.fromElement}if(w.pageX==null&&w.clientX!=null){s=am.documentElement;c=am.body;w.pageX=w.clientX+(s&&s.scrollLeft||c&&c.scrollLeft||0)-(s&&s.clientLeft||c&&c.clientLeft||0);w.pageY=w.clientY+(s&&s.scrollTop||c&&c.scrollTop||0)-(s&&s.clientTop||c&&c.clientTop||0)}if(!w.which&&(w.charCode||w.charCode===0?w.charCode:w.keyCode)){w.which=w.charCode||w.keyCode}if(!w.metaKey&&w.ctrlKey){w.metaKey=w.ctrlKey}if(!w.which&&w.button!==an){w.which=w.button&1?1:w.button&2?3:w.button&4?2:0}return w},guid:100000000,proxy:ap.proxy,special:{ready:{setup:ap.bindReady,teardown:ap.noop},live:{add:function(c){ap.event.add(this,c.origType,ap.extend({},c,{handler:a7}))},remove:function(w){var s=true,c=w.origType.replace(ag,"");ap.each(ap.data(this,"events").live||[],function(){if(c===this.origType.replace(ag,"")){return s=false}});s&&ap.event.remove(this,w.origType,a7)}},beforeunload:{setup:function(w,s,c){if(this.setInterval){this.onbeforeunload=c}return false},teardown:function(s,c){if(this.onbeforeunload===c){this.onbeforeunload=null}}}}};var aK=am.removeEventListener?function(w,s,c){w.removeEventListener(s,c,false)}:function(w,s,c){w.detachEvent("on"+s,c)};ap.Event=function(c){if(!this.preventDefault){return new ap.Event(c)}if(c&&c.type){this.originalEvent=c;this.type=c.type}else{this.type=c}this.timeStamp=ac();this[al]=true};ap.Event.prototype={preventDefault:function(){this.isDefaultPrevented=y;var c=this.originalEvent;if(c){c.preventDefault&&c.preventDefault();c.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=y;var c=this.originalEvent;if(c){c.stopPropagation&&c.stopPropagation();c.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=y;this.stopPropagation()},isDefaultPrevented:C,isPropagationStopped:C,isImmediatePropagationStopped:C};var aO=function(w){var s=w.relatedTarget;try{for(;s&&s!==this;){s=s.parentNode}if(s!==this){w.type=w.data;ap.event.handle.apply(this,arguments)}}catch(c){}},aP=function(c){c.type=c.data;ap.event.handle.apply(this,arguments)};ap.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(s,c){ap.event.special[s]={setup:function(w){ap.event.add(this,c,w&&w.selector?aP:aO,s)},teardown:function(w){ap.event.remove(this,c,w&&w.selector?aP:aO)}}});if(!ap.support.submitBubbles){ap.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){ap.event.add(this,"click.specialSubmit",function(w){var s=w.target,c=s.type;if((c==="submit"||c==="image")&&ap(s).closest("form").length){return a6("submit",this,arguments)}});ap.event.add(this,"keypress.specialSubmit",function(w){var s=w.target,c=s.type;if((c==="text"||c==="password")&&ap(s).closest("form").length&&w.keyCode===13){return a6("submit",this,arguments)}})}else{return false}},teardown:function(){ap.event.remove(this,".specialSubmit")}}}if(!ap.support.changeBubbles){var bh=/textarea|input|select/i,bi,aM=function(w){var s=w.type,c=w.value;if(s==="radio"||s==="checkbox"){c=w.checked}else{if(s==="select-multiple"){c=w.selectedIndex>-1?ap.map(w.options,function(A){return A.selected}).join("-"):""}else{if(w.nodeName.toLowerCase()==="select"){c=w.selectedIndex}}}return c},aD=function(A,w){var c=A.target,F,s;if(!(!bh.test(c.nodeName)||c.readOnly)){F=ap.data(c,"_change_data");s=aM(c);if(A.type!=="focusout"||c.type!=="radio"){ap.data(c,"_change_data",s)}if(!(F===an||s===F)){if(F!=null||s){A.type="change";return ap.event.trigger(A,w,c)}}}};ap.event.special.change={filters:{focusout:aD,click:function(w){var s=w.target,c=s.type;if(c==="radio"||c==="checkbox"||s.nodeName.toLowerCase()==="select"){return aD.call(this,w)}},keydown:function(w){var s=w.target,c=s.type;if(w.keyCode===13&&s.nodeName.toLowerCase()!=="textarea"||w.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple"){return aD.call(this,w)}},beforeactivate:function(c){c=c.target;ap.data(c,"_change_data",aM(c))}},setup:function(){if(this.type==="file"){return false}for(var c in bi){ap.event.add(this,c+".specialChange",bi[c])}return bh.test(this.nodeName)},teardown:function(){ap.event.remove(this,".specialChange");return bh.test(this.nodeName)}};bi=ap.event.special.change.filters}am.addEventListener&&ap.each({focus:"focusin",blur:"focusout"},function(w,s){function c(A){A=ap.event.fix(A);A.type=s;return ap.event.handle.call(this,A)}ap.event.special[s]={setup:function(){this.addEventListener(w,c,true)},teardown:function(){this.removeEventListener(w,c,true)}}});ap.each(["bind","one"],function(s,c){ap.fn[c]=function(w,K,A){if(typeof w==="object"){for(var J in w){this[c](J,K,w[J],A)}return this}if(ap.isFunction(K)){A=K;K=an}var F=c==="one"?ap.proxy(A,function(L){ap(this).unbind(L,F);return A.apply(this,arguments)}):A;if(w==="unload"&&c!=="one"){this.one(w,K,A)}else{J=0;for(var G=this.length;J<G;J++){ap.event.add(this[J],w,F,K)}}return this}});ap.fn.extend({unbind:function(w,s){if(typeof w==="object"&&!w.preventDefault){for(var c in w){this.unbind(c,w[c])}}else{c=0;for(var A=this.length;c<A;c++){ap.event.remove(this[c],w,s)}}return this},delegate:function(w,s,c,A){return this.live(s,c,A,w)},undelegate:function(w,s,c){return arguments.length===0?this.unbind("live"):this.die(s,null,c,w)},trigger:function(s,c){return this.each(function(){ap.event.trigger(s,c,this)})},triggerHandler:function(s,c){if(this[0]){s=ap.Event(s);s.preventDefault();s.stopPropagation();ap.event.trigger(s,c,this[0]);return s.result}},toggle:function(w){for(var s=arguments,c=1;c<s.length;){ap.proxy(w,s[c++])}return this.click(ap.proxy(w,function(F){var A=(ap.data(this,"lastToggle"+w.guid)||0)%c;ap.data(this,"lastToggle"+w.guid,A+1);F.preventDefault();return s[A].apply(this,arguments)||false}))},hover:function(s,c){return this.mouseenter(s).mouseleave(c||s)}});var aN={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};ap.each(["live","die"],function(s,c){ap.fn[c]=function(P,O,w,G){var K,N=0,J,L,A=G||this.selector,F=G?this:ap(this.context);if(ap.isFunction(O)){w=O;O=an}for(P=(P||"").split(" ");(K=P[N++])!=null;){G=ag.exec(K);J="";if(G){J=G[0];K=K.replace(ag,"")}if(K==="hover"){P.push("mouseenter"+J,"mouseleave"+J)}else{L=K;if(K==="focus"||K==="blur"){P.push(aN[K]+J);K+=J}else{K=(aN[K]||K)+J}c==="live"?F.each(function(){ap.event.add(this,aW(K,A),{data:O,selector:A,handler:w,origType:K,origHandler:w,preType:L})}):F.unbind(aW(K,A),w)}}return this}});ap.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(s,c){ap.fn[c]=function(w){return w?this.bind(c,w):this.trigger(c)};if(ap.attrFn){ap.attrFn[c]=true}});aj.attachEvent&&!aj.addEventListener&&aj.attachEvent("onunload",function(){for(var s in ap.cache){if(ap.cache[s].handle){try{ap.event.remove(ap.cache[s].handle.elem)}catch(c){}}}});(function(){function N(Y){for(var Z="",aa,ba=0;Y[ba];ba++){aa=Y[ba];if(aa.nodeType===3||aa.nodeType===4){Z+=aa.nodeValue}else{if(aa.nodeType!==8){Z+=N(aa.childNodes)}}}return Z}function L(bo,bk,bl,bm,Z,Y){Z=0;for(var aa=bm.length;Z<aa;Z++){var ba=bm[Z];if(ba){ba=ba[bo];for(var bn=false;ba;){if(ba.sizcache===bl){bn=bm[ba.sizset];break}if(ba.nodeType===1&&!Y){ba.sizcache=bl;ba.sizset=Z}if(ba.nodeName.toLowerCase()===bk){bn=ba;break}ba=ba[bo]}bm[Z]=bn}}}function P(bo,bk,bl,bm,Z,Y){Z=0;for(var aa=bm.length;Z<aa;Z++){var ba=bm[Z];if(ba){ba=ba[bo];for(var bn=false;ba;){if(ba.sizcache===bl){bn=bm[ba.sizset];break}if(ba.nodeType===1){if(!Y){ba.sizcache=bl;ba.sizset=Z}if(typeof bk!=="string"){if(ba===bk){bn=true;break}}else{if(F.filter(bk,[ba]).length>0){bn=ba;break}}}ba=ba[bo]}bm[Z]=bn}}}var O=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,Q=0,A=Object.prototype.toString,G=false,K=true;[0,0].sort(function(){K=false;return 0});var F=function(bt,bm,bp,bq){bp=bp||[];var aa=bm=bm||am;if(bm.nodeType!==1&&bm.nodeType!==9){return[]}if(!bt||typeof bt!=="string"){return bp}for(var Z=[],ba,bk,bs,br,Y=true,bl=X(bm),bn=bt;(O.exec(""),ba=O.exec(bn))!==null;){bn=ba[3];Z.push(ba[1]);if(ba[2]){br=ba[3];break}}if(Z.length>1&&c.exec(bt)){if(Z.length===2&&J.relative[Z[0]]){bk=s(Z[0]+Z[1],bm)}else{for(bk=J.relative[Z[0]]?[bm]:F(Z.shift(),bm);Z.length;){bt=Z.shift();if(J.relative[bt]){bt+=Z.shift()}bk=s(bt,bk)}}}else{if(!bq&&Z.length>1&&bm.nodeType===9&&!bl&&J.match.ID.test(Z[0])&&!J.match.ID.test(Z[Z.length-1])){ba=F.find(Z.shift(),bm,bl);bm=ba.expr?F.filter(ba.expr,ba.set)[0]:ba.set[0]}if(bm){ba=bq?{expr:Z.pop(),set:W(bq)}:F.find(Z.pop(),Z.length===1&&(Z[0]==="~"||Z[0]==="+")&&bm.parentNode?bm.parentNode:bm,bl);bk=ba.expr?F.filter(ba.expr,ba.set):ba.set;if(Z.length>0){bs=W(bk)}else{Y=false}for(;Z.length;){var bo=Z.pop();ba=bo;if(J.relative[bo]){ba=Z.pop()}else{bo=""}if(ba==null){ba=bm}J.relative[bo](bs,ba,bl)}}else{bs=[]}}bs||(bs=bk);bs||F.error(bo||bt);if(A.call(bs)==="[object Array]"){if(Y){if(bm&&bm.nodeType===1){for(bt=0;bs[bt]!=null;bt++){if(bs[bt]&&(bs[bt]===true||bs[bt].nodeType===1&&V(bm,bs[bt]))){bp.push(bk[bt])}}}else{for(bt=0;bs[bt]!=null;bt++){bs[bt]&&bs[bt].nodeType===1&&bp.push(bk[bt])}}}else{bp.push.apply(bp,bs)}}else{W(bs,bp)}if(br){F(br,aa,bp,bq);F.uniqueSort(bp)}return bp};F.uniqueSort=function(Y){if(R){G=K;Y.sort(R);if(G){for(var Z=1;Z<Y.length;Z++){Y[Z]===Y[Z-1]&&Y.splice(Z--,1)}}}return Y};F.matches=function(Y,Z){return F(Y,null,null,Z)};F.find=function(bo,bk,bl){var bm,Z;if(!bo){return[]}for(var Y=0,aa=J.order.length;Y<aa;Y++){var ba=J.order[Y];if(Z=J.leftMatch[ba].exec(bo)){var bn=Z[1];Z.splice(1,1);if(bn.substr(bn.length-1)!=="\\"){Z[1]=(Z[1]||"").replace(/\\/g,"");bm=J.find[ba](Z,bk,bl);if(bm!=null){bo=bo.replace(J.match[ba],"");break}}}}bm||(bm=bk.getElementsByTagName("*"));return{set:bm,expr:bo}};F.filter=function(bv,bn,bq,br){for(var ba=bv,aa=[],bk=bn,bl,bt,bs=bn&&bn[0]&&X(bn[0]);bv&&bn.length;){for(var Z in J.filter){if((bl=J.leftMatch[Z].exec(bv))!=null&&bl[2]){var bm=J.filter[Z],bo,bp;bp=bl[1];bt=false;bl.splice(1,1);if(bp.substr(bp.length-1)!=="\\"){if(bk===aa){aa=[]}if(J.preFilter[Z]){if(bl=J.preFilter[Z](bl,bk,bq,aa,br,bs)){if(bl===true){continue}}else{bt=bo=true}}if(bl){for(var Y=0;(bp=bk[Y])!=null;Y++){if(bp){bo=bm(bp,bl,Y,bk);var bu=br^!!bo;if(bq&&bo!=null){if(bu){bt=true}else{bk[Y]=false}}else{if(bu){aa.push(bp);bt=true}}}}}if(bo!==an){bq||(bk=aa);bv=bv.replace(J.match[Z],"");if(!bt){return[]}break}}}}if(bv===ba){if(bt==null){F.error(bv)}else{break}}ba=bv}return bk};F.error=function(Y){throw"Syntax error, unrecognized expression: "+Y};var J=F.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(Y){return Y.getAttribute("href")}},relative:{"+":function(Y,Z){var ba=typeof Z==="string",bk=ba&&!/\W/.test(Z);ba=ba&&!bk;if(bk){Z=Z.toLowerCase()}bk=0;for(var bl=Y.length,aa;bk<bl;bk++){if(aa=Y[bk]){for(;(aa=aa.previousSibling)&&aa.nodeType!==1;){}Y[bk]=ba||aa&&aa.nodeName.toLowerCase()===Z?aa||false:aa===Z}}ba&&F.filter(Z,Y,true)},">":function(Y,Z){var ba=typeof Z==="string";if(ba&&!/\W/.test(Z)){Z=Z.toLowerCase();for(var bk=0,bl=Y.length;bk<bl;bk++){var aa=Y[bk];if(aa){ba=aa.parentNode;Y[bk]=ba.nodeName.toLowerCase()===Z?ba:false}}}else{bk=0;for(bl=Y.length;bk<bl;bk++){if(aa=Y[bk]){Y[bk]=ba?aa.parentNode:aa.parentNode===Z}}ba&&F.filter(Z,Y,true)}},"":function(Y,Z,ba){var bk=Q++,bl=P;if(typeof Z==="string"&&!/\W/.test(Z)){var aa=Z=Z.toLowerCase();bl=L}bl("parentNode",Z,bk,Y,aa,ba)},"~":function(Y,Z,ba){var bk=Q++,bl=P;if(typeof Z==="string"&&!/\W/.test(Z)){var aa=Z=Z.toLowerCase();bl=L}bl("previousSibling",Z,bk,Y,aa,ba)}},find:{ID:function(Y,Z,aa){if(typeof Z.getElementById!=="undefined"&&!aa){return(Y=Z.getElementById(Y[1]))?[Y]:[]}},NAME:function(Y,Z){if(typeof Z.getElementsByName!=="undefined"){var aa=[];Z=Z.getElementsByName(Y[1]);for(var ba=0,bk=Z.length;ba<bk;ba++){Z[ba].getAttribute("name")===Y[1]&&aa.push(Z[ba])}return aa.length===0?null:aa}},TAG:function(Y,Z){return Z.getElementsByTagName(Y[1])}},preFilter:{CLASS:function(Y,Z,ba,bk,bl,aa){Y=" "+Y[1].replace(/\\/g,"")+" ";if(aa){return Y}aa=0;for(var bm;(bm=Z[aa])!=null;aa++){if(bm){if(bl^(bm.className&&(" "+bm.className+" ").replace(/[\t\n]/g," ").indexOf(Y)>=0)){ba||bk.push(bm)}else{if(ba){Z[aa]=false}}}}return false},ID:function(Y){return Y[1].replace(/\\/g,"")},TAG:function(Y){return Y[1].toLowerCase()},CHILD:function(Y){if(Y[1]==="nth"){var Z=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(Y[2]==="even"&&"2n"||Y[2]==="odd"&&"2n+1"||!/\D/.test(Y[2])&&"0n+"+Y[2]||Y[2]);Y[2]=Z[1]+(Z[2]||1)-0;Y[3]=Z[3]-0}Y[0]=Q++;return Y},ATTR:function(Y,Z,ba,bk,bl,aa){Z=Y[1].replace(/\\/g,"");if(!aa&&J.attrMap[Z]){Y[1]=J.attrMap[Z]}if(Y[2]==="~="){Y[4]=" "+Y[4]+" "}return Y},PSEUDO:function(Y,Z,aa,ba,bk){if(Y[1]==="not"){if((O.exec(Y[3])||"").length>1||/^\w/.test(Y[3])){Y[3]=F(Y[3],null,null,Z)}else{Y=F.filter(Y[3],Z,aa,true^bk);aa||ba.push.apply(ba,Y);return false}}else{if(J.match.POS.test(Y[0])||J.match.CHILD.test(Y[0])){return true}}return Y},POS:function(Y){Y.unshift(true);return Y}},filters:{enabled:function(Y){return Y.disabled===false&&Y.type!=="hidden"},disabled:function(Y){return Y.disabled===true},checked:function(Y){return Y.checked===true},selected:function(Y){return Y.selected===true},parent:function(Y){return !!Y.firstChild},empty:function(Y){return !Y.firstChild},has:function(Y,Z,aa){return !!F(aa[3],Y).length},header:function(Y){return/h\d/i.test(Y.nodeName)},text:function(Y){return"text"===Y.type},radio:function(Y){return"radio"===Y.type},checkbox:function(Y){return"checkbox"===Y.type},file:function(Y){return"file"===Y.type},password:function(Y){return"password"===Y.type},submit:function(Y){return"submit"===Y.type},image:function(Y){return"image"===Y.type},reset:function(Y){return"reset"===Y.type},button:function(Y){return"button"===Y.type||Y.nodeName.toLowerCase()==="button"},input:function(Y){return/input|select|textarea|button/i.test(Y.nodeName)}},setFilters:{first:function(Y,Z){return Z===0},last:function(Y,Z,aa,ba){return Z===ba.length-1},even:function(Y,Z){return Z%2===0},odd:function(Y,Z){return Z%2===1},lt:function(Y,Z,aa){return Z<aa[3]-0},gt:function(Y,Z,aa){return Z>aa[3]-0},nth:function(Y,Z,aa){return aa[3]-0===Z},eq:function(Y,Z,aa){return aa[3]-0===Z}},filter:{PSEUDO:function(Y,Z,ba,bk){var bl=Z[1],aa=J.filters[bl];if(aa){return aa(Y,ba,Z,bk)}else{if(bl==="contains"){return(Y.textContent||Y.innerText||N([Y])||"").indexOf(Z[3])>=0}else{if(bl==="not"){Z=Z[3];ba=0;for(bk=Z.length;ba<bk;ba++){if(Z[ba]===Y){return false}}return true}else{F.error("Syntax error, unrecognized expression: "+bl)}}}},CHILD:function(Y,Z){var ba=Z[1],bk=Y;switch(ba){case"only":case"first":for(;bk=bk.previousSibling;){if(bk.nodeType===1){return false}}if(ba==="first"){return true}bk=Y;case"last":for(;bk=bk.nextSibling;){if(bk.nodeType===1){return false}}return true;case"nth":ba=Z[2];var bl=Z[3];if(ba===1&&bl===0){return true}Z=Z[0];var aa=Y.parentNode;if(aa&&(aa.sizcache!==Z||!Y.nodeIndex)){var bm=0;for(bk=aa.firstChild;bk;bk=bk.nextSibling){if(bk.nodeType===1){bk.nodeIndex=++bm}}aa.sizcache=Z}Y=Y.nodeIndex-bl;return ba===0?Y===0:Y%ba===0&&Y/ba>=0}},ID:function(Y,Z){return Y.nodeType===1&&Y.getAttribute("id")===Z},TAG:function(Y,Z){return Z==="*"&&Y.nodeType===1||Y.nodeName.toLowerCase()===Z},CLASS:function(Y,Z){return(" "+(Y.className||Y.getAttribute("class"))+" ").indexOf(Z)>-1},ATTR:function(Y,Z){var aa=Z[1];Y=J.attrHandle[aa]?J.attrHandle[aa](Y):Y[aa]!=null?Y[aa]:Y.getAttribute(aa);aa=Y+"";var ba=Z[2];Z=Z[4];return Y==null?ba==="!=":ba==="="?aa===Z:ba==="*="?aa.indexOf(Z)>=0:ba==="~="?(" "+aa+" ").indexOf(Z)>=0:!Z?aa&&Y!==false:ba==="!="?aa!==Z:ba==="^="?aa.indexOf(Z)===0:ba==="$="?aa.substr(aa.length-Z.length)===Z:ba==="|="?aa===Z||aa.substr(0,Z.length+1)===Z+"-":false},POS:function(Y,Z,aa,ba){var bk=J.setFilters[Z[2]];if(bk){return bk(Y,aa,Z,ba)}}}},c=J.match.POS;for(var w in J.match){J.match[w]=new RegExp(J.match[w].source+/(?![^\[]*\])(?![^\(]*\))/.source);J.leftMatch[w]=new RegExp(/(^(?:.|\r|\n)*?)/.source+J.match[w].source.replace(/\\(\d+)/g,function(Y,Z){return"\\"+(Z-0+1)}))}var W=function(Y,Z){Y=Array.prototype.slice.call(Y,0);if(Z){Z.push.apply(Z,Y);return Z}return Y};try{Array.prototype.slice.call(am.documentElement.childNodes,0)}catch(T){W=function(Y,Z){Z=Z||[];if(A.call(Y)==="[object Array]"){Array.prototype.push.apply(Z,Y)}else{if(typeof Y.length==="number"){for(var aa=0,ba=Y.length;aa<ba;aa++){Z.push(Y[aa])}}else{for(aa=0;Y[aa];aa++){Z.push(Y[aa])}}}return Z}}var R;if(am.documentElement.compareDocumentPosition){R=function(Y,Z){if(!Y.compareDocumentPosition||!Z.compareDocumentPosition){if(Y==Z){G=true}return Y.compareDocumentPosition?-1:1}Y=Y.compareDocumentPosition(Z)&4?-1:Y===Z?0:1;if(Y===0){G=true}return Y}}else{if("sourceIndex" in am.documentElement){R=function(Y,Z){if(!Y.sourceIndex||!Z.sourceIndex){if(Y==Z){G=true}return Y.sourceIndex?-1:1}Y=Y.sourceIndex-Z.sourceIndex;if(Y===0){G=true}return Y}}else{if(am.createRange){R=function(Y,Z){if(!Y.ownerDocument||!Z.ownerDocument){if(Y==Z){G=true}return Y.ownerDocument?-1:1}var aa=Y.ownerDocument.createRange(),ba=Z.ownerDocument.createRange();aa.setStart(Y,0);aa.setEnd(Y,0);ba.setStart(Z,0);ba.setEnd(Z,0);Y=aa.compareBoundaryPoints(Range.START_TO_END,ba);if(Y===0){G=true}return Y}}}}(function(){var Y=am.createElement("div"),Z="script"+(new Date).getTime();Y.innerHTML="<a name='"+Z+"'/>";var aa=am.documentElement;aa.insertBefore(Y,aa.firstChild);if(am.getElementById(Z)){J.find.ID=function(bl,bk,ba){if(typeof bk.getElementById!=="undefined"&&!ba){return(bk=bk.getElementById(bl[1]))?bk.id===bl[1]||typeof bk.getAttributeNode!=="undefined"&&bk.getAttributeNode("id").nodeValue===bl[1]?[bk]:an:[]}};J.filter.ID=function(bl,bk){var ba=typeof bl.getAttributeNode!=="undefined"&&bl.getAttributeNode("id");return bl.nodeType===1&&ba&&ba.nodeValue===bk}}aa.removeChild(Y);aa=Y=null})();(function(){var Y=am.createElement("div");Y.appendChild(am.createComment(""));if(Y.getElementsByTagName("*").length>0){J.find.TAG=function(Z,aa){aa=aa.getElementsByTagName(Z[1]);if(Z[1]==="*"){Z=[];for(var ba=0;aa[ba];ba++){aa[ba].nodeType===1&&Z.push(aa[ba])}aa=Z}return aa}}Y.innerHTML="<a href='#'></a>";if(Y.firstChild&&typeof Y.firstChild.getAttribute!=="undefined"&&Y.firstChild.getAttribute("href")!=="#"){J.attrHandle.href=function(Z){return Z.getAttribute("href",2)}}Y=null})();am.querySelectorAll&&function(){var Y=F,Z=am.createElement("div");Z.innerHTML="<p class='TEST'></p>";if(!(Z.querySelectorAll&&Z.querySelectorAll(".TEST").length===0)){F=function(bl,bk,ba,bm){bk=bk||am;if(!bm&&bk.nodeType===9&&!X(bk)){try{return W(bk.querySelectorAll(bl),ba)}catch(bn){}}return Y(bl,bk,ba,bm)};for(var aa in Y){F[aa]=Y[aa]}Z=null}}();(function(){var Y=am.createElement("div");Y.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!Y.getElementsByClassName||Y.getElementsByClassName("e").length===0)){Y.lastChild.className="e";if(Y.getElementsByClassName("e").length!==1){J.order.splice(1,0,"CLASS");J.find.CLASS=function(Z,aa,ba){if(typeof aa.getElementsByClassName!=="undefined"&&!ba){return aa.getElementsByClassName(Z[1])}};Y=null}}})();var V=am.compareDocumentPosition?function(Y,Z){return !!(Y.compareDocumentPosition(Z)&16)}:function(Y,Z){return Y!==Z&&(Y.contains?Y.contains(Z):true)},X=function(Y){return(Y=(Y?Y.ownerDocument||Y:0).documentElement)?Y.nodeName!=="HTML":false},s=function(Y,Z){var ba=[],bk="",bl;for(Z=Z.nodeType?[Z]:Z;bl=J.match.PSEUDO.exec(Y);){bk+=bl[0];Y=Y.replace(J.match.PSEUDO,"")}Y=J.relative[Y]?Y+"*":Y;bl=0;for(var aa=Z.length;bl<aa;bl++){F(Y,Z[bl],ba)}return F.filter(bk,ba)};ap.find=F;ap.expr=F.selectors;ap.expr[":"]=ap.expr.filters;ap.unique=F.uniqueSort;ap.text=N;ap.isXMLDoc=X;ap.contains=V})();var j=/Until$/,ae=/^(?:parents|prevUntil|prevAll)/,g=/,/;H=Array.prototype.slice;var aE=function(w,s,c){if(ap.isFunction(s)){return ap.grep(w,function(F,G){return !!s.call(F,G,F)===c})}else{if(s.nodeType){return ap.grep(w,function(F){return F===s===c})}else{if(typeof s==="string"){var A=ap.grep(w,function(F){return F.nodeType===1});if(aA.test(s)){return ap.filter(s,A,!c)}else{s=ap.filter(s,A)}}}}return ap.grep(w,function(F){return ap.inArray(F,s)>=0===c})};ap.fn.extend({find:function(G){for(var F=this.pushStack("","find",G),s=0,J=0,w=this.length;J<w;J++){s=F.length;ap.find(G,this[J],F);if(J>0){for(var c=s;c<F.length;c++){for(var A=0;A<s;A++){if(F[A]===F[c]){F.splice(c--,1);break}}}}}return F},has:function(s){var c=ap(s);return this.filter(function(){for(var w=0,A=c.length;w<A;w++){if(ap.contains(this,c[w])){return true}}})},not:function(c){return this.pushStack(aE(this,c,false),"not",c)},filter:function(c){return this.pushStack(aE(this,c,true),"filter",c)},is:function(c){return !!c&&ap.filter(c,this).length>0},closest:function(J,G){if(ap.isArray(J)){var L=[],K=this[0],c,s={},A;if(K&&J.length){c=0;for(var F=J.length;c<F;c++){A=J[c];s[A]||(s[A]=ap.expr.match.POS.test(A)?ap(A,G||this.context):A)}for(;K&&K.ownerDocument&&K!==G;){for(A in s){c=s[A];if(c.jquery?c.index(K)>-1:ap(K).is(c)){L.push({selector:A,elem:K});delete s[A]}}K=K.parentNode}}return L}var w=ap.expr.match.POS.test(J)?ap(J,G||this.context):null;return this.map(function(O,N){for(;N&&N.ownerDocument&&N!==G;){if(w?w.index(N)>-1:ap(N).is(J)){return N}N=N.parentNode}return null})},index:function(c){if(!c||typeof c==="string"){return ap.inArray(this[0],c?ap(c):this.parent().children())}return ap.inArray(c.jquery?c[0]:c,this)},add:function(s,c){s=typeof s==="string"?ap(s,c||this.context):ap.makeArray(s);c=ap.merge(this.get(),s);return this.pushStack(aX(s[0])||aX(c[0])?c:ap.unique(c))},andSelf:function(){return this.add(this.prevObject)}});ap.each({parent:function(c){return(c=c.parentNode)&&c.nodeType!==11?c:null},parents:function(c){return ap.dir(c,"parentNode")},parentsUntil:function(w,s,c){return ap.dir(w,"parentNode",c)},next:function(c){return ap.nth(c,2,"nextSibling")},prev:function(c){return ap.nth(c,2,"previousSibling")},nextAll:function(c){return ap.dir(c,"nextSibling")},prevAll:function(c){return ap.dir(c,"previousSibling")},nextUntil:function(w,s,c){return ap.dir(w,"nextSibling",c)},prevUntil:function(w,s,c){return ap.dir(w,"previousSibling",c)},siblings:function(c){return ap.sibling(c.parentNode.firstChild,c)},children:function(c){return ap.sibling(c.firstChild)},contents:function(c){return ap.nodeName(c,"iframe")?c.contentDocument||c.contentWindow.document:ap.makeArray(c.childNodes)}},function(s,c){ap.fn[s]=function(w,F){var A=ap.map(this,c,w);j.test(s)||(F=w);if(F&&typeof F==="string"){A=ap.filter(F,A)}A=this.length>1?ap.unique(A):A;if((this.length>1||g.test(F))&&ae.test(s)){A=A.reverse()}return this.pushStack(A,s,H.call(arguments).join(","))}});ap.extend({filter:function(w,s,c){if(c){w=":not("+w+")"}return ap.find.matches(w,s)},dir:function(w,s,c){var A=[];for(w=w[s];w&&w.nodeType!==9&&(c===an||w.nodeType!==1||!ap(w).is(c));){w.nodeType===1&&A.push(w);w=w[s]}return A},nth:function(w,s,c){s=s||1;for(var A=0;w;w=w[c]){if(w.nodeType===1&&++A===s){break}}return w},sibling:function(w,s){for(var c=[];w;w=w.nextSibling){w.nodeType===1&&w!==s&&c.push(w)}return c}});var aB=/ jQuery\d+="(?:\d+|null)"/g,S=/^\s+/,r=/(<([\w:]+)[^>]*?)\/>/g,bf=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,aH=/<([\w:]+)/,bg=/<tbody/i,bd=/<|&#?\w+;/,a0=/<script|<object|<embed|<option|<style/i,a1=/checked\s*(?:[^=]|=\s*.checked.)/i,aI=function(w,s,c){return bf.test(c)?w:s+"></"+c+">"},ak={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};ak.optgroup=ak.option;ak.tbody=ak.tfoot=ak.colgroup=ak.caption=ak.thead;ak.th=ak.td;if(!ap.support.htmlSerialize){ak._default=[1,"div<div>","</div>"]}ap.fn.extend({text:function(c){if(ap.isFunction(c)){return this.each(function(w){var s=ap(this);s.text(c.call(this,w,s.text()))})}if(typeof c!=="object"&&c!==an){return this.empty().append((this[0]&&this[0].ownerDocument||am).createTextNode(c))}return ap.text(this)},wrapAll:function(s){if(ap.isFunction(s)){return this.each(function(w){ap(this).wrapAll(s.call(this,w))})}if(this[0]){var c=ap(s,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){for(var w=this;w.firstChild&&w.firstChild.nodeType===1;){w=w.firstChild}return w}).append(this)}return this},wrapInner:function(c){if(ap.isFunction(c)){return this.each(function(s){ap(this).wrapInner(c.call(this,s))})}return this.each(function(){var w=ap(this),s=w.contents();s.length?s.wrapAll(c):w.append(c)})},wrap:function(c){return this.each(function(){ap(this).wrapAll(c)})},unwrap:function(){return this.parent().each(function(){ap.nodeName(this,"body")||ap(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.appendChild(c)})},prepend:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.insertBefore(c,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(s){this.parentNode.insertBefore(s,this)})}else{if(arguments.length){var c=ap(arguments[0]);c.push.apply(c,this.toArray());return this.pushStack(c,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(s){this.parentNode.insertBefore(s,this.nextSibling)})}else{if(arguments.length){var c=this.pushStack(this,"after",arguments);c.push.apply(c,ap(arguments[0]).toArray());return c}}},remove:function(w,s){for(var c=0,A;(A=this[c])!=null;c++){if(!w||ap.filter(w,[A]).length){if(!s&&A.nodeType===1){ap.cleanData(A.getElementsByTagName("*"));ap.cleanData([A])}A.parentNode&&A.parentNode.removeChild(A)}}return this},empty:function(){for(var s=0,c;(c=this[s])!=null;s++){for(c.nodeType===1&&ap.cleanData(c.getElementsByTagName("*"));c.firstChild;){c.removeChild(c.firstChild)}}return this},clone:function(s){var c=this.map(function(){if(!ap.support.noCloneEvent&&!ap.isXMLDoc(this)){var w=this.outerHTML,A=this.ownerDocument;if(!w){w=A.createElement("div");w.appendChild(this.cloneNode(true));w=w.innerHTML}return ap.clean([w.replace(aB,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(S,"")],A)[0]}else{return this.cloneNode(true)}});if(s===true){aU(this,c);aU(this.find("*"),c.find("*"))}return c},html:function(w){if(w===an){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(aB,""):null}else{if(typeof w==="string"&&!a0.test(w)&&(ap.support.leadingWhitespace||!S.test(w))&&!ak[(aH.exec(w)||["",""])[1].toLowerCase()]){w=w.replace(r,aI);try{for(var s=0,c=this.length;s<c;s++){if(this[s].nodeType===1){ap.cleanData(this[s].getElementsByTagName("*"));this[s].innerHTML=w}}}catch(A){this.empty().append(w)}}else{ap.isFunction(w)?this.each(function(G){var J=ap(this),F=J.html();J.empty().append(function(){return w.call(this,G,F)})}):this.empty().append(w)}}return this},replaceWith:function(c){if(this[0]&&this[0].parentNode){if(ap.isFunction(c)){return this.each(function(w){var s=ap(this),A=s.html();s.replaceWith(c.call(this,w,A))})}if(typeof c!=="string"){c=ap(c).detach()}return this.each(function(){var w=this.nextSibling,s=this.parentNode;ap(this).remove();w?ap(w).before(c):ap(s).append(c)})}else{return this.pushStack(ap(ap.isFunction(c)?c():c),"replaceWith",c)}},detach:function(c){return this.remove(c,true)},domManip:function(L,K,O){function N(P){return ap.nodeName(P,"table")?P.getElementsByTagName("tbody")[0]||P.appendChild(P.ownerDocument.createElement("tbody")):P}var c,w,F=L[0],J=[],A;if(!ap.support.checkClone&&arguments.length===3&&typeof F==="string"&&a1.test(F)){return this.each(function(){ap(this).domManip(L,K,O,true)})}if(ap.isFunction(F)){return this.each(function(Q){var P=ap(this);L[0]=F.call(this,Q,K?P.html():an);P.domManip(L,K,O)})}if(this[0]){c=F&&F.parentNode;c=ap.support.parentNode&&c&&c.nodeType===11&&c.childNodes.length===this.length?{fragment:c}:aV(L,this,J);A=c.fragment;if(w=A.childNodes.length===1?(A=A.firstChild):A.firstChild){K=K&&ap.nodeName(w,"tr");for(var G=0,s=this.length;G<s;G++){O.call(K?N(this[G],w):this[G],G>0||c.cacheable||this.length>1?A.cloneNode(true):A)}}J.length&&ap.each(J,aw)}return this}});ap.fragments={};ap.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(s,c){ap.fn[s]=function(w){var J=[];w=ap(w);var A=this.length===1&&this[0].parentNode;if(A&&A.nodeType===11&&A.childNodes.length===1&&w.length===1){w[c](this[0]);return this}else{A=0;for(var G=w.length;A<G;A++){var F=(A>0?this.clone(true):this).get();ap.fn[c].apply(ap(w[A]),F);J=J.concat(F)}return this.pushStack(J,s,w.selector)}}});ap.extend({clean:function(L,K,O,N){K=K||am;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||am}for(var c=[],w=0,F;(F=L[w])!=null;w++){if(typeof F==="number"){F+=""}if(F){if(typeof F==="string"&&!bd.test(F)){F=K.createTextNode(F)}else{if(typeof F==="string"){F=F.replace(r,aI);var J=(aH.exec(F)||["",""])[1].toLowerCase(),A=ak[J]||ak._default,G=A[0],s=K.createElement("div");for(s.innerHTML=A[1]+F+A[2];G--;){s=s.lastChild}if(!ap.support.tbody){G=bg.test(F);J=J==="table"&&!G?s.firstChild&&s.firstChild.childNodes:A[1]==="<table>"&&!G?s.childNodes:[];for(A=J.length-1;A>=0;--A){ap.nodeName(J[A],"tbody")&&!J[A].childNodes.length&&J[A].parentNode.removeChild(J[A])}}!ap.support.leadingWhitespace&&S.test(F)&&s.insertBefore(K.createTextNode(S.exec(F)[0]),s.firstChild);F=s.childNodes}}if(F.nodeType){c.push(F)}else{c=ap.merge(c,F)}}}if(O){for(w=0;c[w];w++){if(N&&ap.nodeName(c[w],"script")&&(!c[w].type||c[w].type.toLowerCase()==="text/javascript")){N.push(c[w].parentNode?c[w].parentNode.removeChild(c[w]):c[w])}else{c[w].nodeType===1&&c.splice.apply(c,[w+1,0].concat(ap.makeArray(c[w].getElementsByTagName("script"))));O.appendChild(c[w])}}}return c},cleanData:function(J){for(var G,L,K=ap.cache,c=ap.event.special,s=ap.support.deleteExpando,A=0,F;(F=J[A])!=null;A++){if(L=F[ap.expando]){G=K[L];if(G.events){for(var w in G.events){c[w]?ap.event.remove(F,w):aK(F,w,G.handle)}}if(s){delete F[ap.expando]}else{F.removeAttribute&&F.removeAttribute(ap.expando)}delete K[L]}}}});var be=/z-?index|font-?weight|opacity|zoom|line-?height/i,aF=/alpha\([^)]*\)/,aG=/opacity=([^)]*)/,a4=/float/i,a5=/-([a-z])/ig,bj=/([A-Z])/g,a=/^-?\d+(?:px)?$/i,m=/^-?\d/,n={position:"absolute",visibility:"hidden",display:"block"},k=["Left","Right"],z=["Top","Bottom"],v=am.defaultView&&am.defaultView.getComputedStyle,av=ap.support.cssFloat?"cssFloat":"styleFloat",a2=function(s,c){return c.toUpperCase()};ap.fn.css=function(s,c){return B(this,s,c,true,function(w,F,A){if(A===an){return ap.curCSS(w,F)}if(typeof A==="number"&&!be.test(F)){A+="px"}ap.style(w,F,A)})};ap.extend({style:function(A,w,c){if(!A||A.nodeType===3||A.nodeType===8){return an}if((w==="width"||w==="height")&&parseFloat(c)<0){c=an}var F=A.style||A,s=c!==an;if(!ap.support.opacity&&w==="opacity"){if(s){F.zoom=1;w=parseInt(c,10)+""==="NaN"?"":"alpha(opacity="+c*100+")";A=F.filter||ap.curCSS(A,"filter")||"";F.filter=aF.test(A)?A.replace(aF,w):w}return F.filter&&F.filter.indexOf("opacity=")>=0?parseFloat(aG.exec(F.filter)[1])/100+"":""}if(a4.test(w)){w=av}w=w.replace(a5,a2);if(s){F[w]=c}return F[w]},css:function(G,F,s,J){if(F==="width"||F==="height"){var w,c=F==="width"?k:z;function A(){w=F==="width"?G.offsetWidth:G.offsetHeight;J!=="border"&&ap.each(c,function(){J||(w-=parseFloat(ap.curCSS(G,"padding"+this,true))||0);if(J==="margin"){w+=parseFloat(ap.curCSS(G,"margin"+this,true))||0}else{w-=parseFloat(ap.curCSS(G,"border"+this+"Width",true))||0}})}G.offsetWidth!==0?A():ap.swap(G,n,A);return Math.max(0,Math.round(w))}return ap.curCSS(G,F,s)},curCSS:function(F,A,s){var G,w=F.style;if(!ap.support.opacity&&A==="opacity"&&F.currentStyle){G=aG.test(F.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return G===""?"1":G}if(a4.test(A)){A=av}if(!s&&w&&w[A]){G=w[A]}else{if(v){if(a4.test(A)){A="float"}A=A.replace(bj,"-$1").toLowerCase();w=F.ownerDocument.defaultView;if(!w){return null}if(F=w.getComputedStyle(F,null)){G=F.getPropertyValue(A)}if(A==="opacity"&&G===""){G="1"}}else{if(F.currentStyle){s=A.replace(a5,a2);G=F.currentStyle[A]||F.currentStyle[s];if(!a.test(G)&&m.test(G)){A=w.left;var c=F.runtimeStyle.left;F.runtimeStyle.left=F.currentStyle.left;w.left=s==="fontSize"?"1em":G||0;G=w.pixelLeft+"px";w.left=A;F.runtimeStyle.left=c}}}}return G},swap:function(A,w,c){var F={};for(var s in w){F[s]=A.style[s];A.style[s]=w[s]}c.call(A);for(s in w){A.style[s]=F[s]}}});if(ap.expr&&ap.expr.filters){ap.expr.filters.hidden=function(w){var s=w.offsetWidth,c=w.offsetHeight,A=w.nodeName.toLowerCase()==="tr";return s===0&&c===0&&!A?true:s>0&&c>0&&!A?false:ap.curCSS(w,"display")==="none"};ap.expr.filters.visible=function(c){return !ap.expr.filters.hidden(c)}}var x=ac(),D=/<script(.|\s)*?\/script>/gi,E=/select|textarea/i,a8=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,af=/=\?(&|$)/,a3=/\?/,l=/(\?|&)_=.*?(&|$)/,aY=/^(\w+:)?\/\/([^\/?#]+)/,u=/%20/g,t=ap.fn.load;ap.fn.extend({load:function(F,A,s){if(typeof F!=="string"){return t.call(this,F)}else{if(!this.length){return this}}var G=F.indexOf(" ");if(G>=0){var w=F.slice(G,F.length);F=F.slice(0,G)}G="GET";if(A){if(ap.isFunction(A)){s=A;A=null}else{if(typeof A==="object"){A=ap.param(A,ap.ajaxSettings.traditional);G="POST"}}}var c=this;ap.ajax({url:F,type:G,dataType:"html",data:A,complete:function(J,K){if(K==="success"||K==="notmodified"){c.html(w?ap("<div />").append(J.responseText.replace(D,"")).find(w):J.responseText)}s&&c.each(s,[J.responseText,K,J])}});return this},serialize:function(){return ap.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?ap.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||E.test(this.nodeName)||a8.test(this.type))}).map(function(s,c){s=ap(this).val();return s==null?null:ap.isArray(s)?ap.map(s,function(w){return{name:c.name,value:w}}):{name:c.name,value:s}}).get()}});ap.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(s,c){ap.fn[c]=function(w){return this.bind(c,w)}});ap.extend({get:function(w,s,c,A){if(ap.isFunction(s)){A=A||c;c=s;s=null}return ap.ajax({type:"GET",url:w,data:s,success:c,dataType:A})},getScript:function(s,c){return ap.get(s,null,c,"script")},getJSON:function(w,s,c){return ap.get(w,s,c,"json")},post:function(w,s,c,A){if(ap.isFunction(s)){A=A||c;c=s;s={}}return ap.ajax({type:"POST",url:w,data:s,success:c,dataType:A})},ajaxSetup:function(c){ap.extend(ap.ajaxSettings,c)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:aj.XMLHttpRequest&&(aj.location.protocol!=="file:"||!aj.ActiveXObject)?function(){return new aj.XMLHttpRequest}:function(){try{return new aj.ActiveXObject("Microsoft.XMLHTTP")}catch(c){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(Q){function P(){W.success&&W.success.call(F,L,J,ba);W.global&&R("ajaxSuccess",[ba,W])}function V(){W.complete&&W.complete.call(F,ba,J);W.global&&R("ajaxComplete",[ba,W]);W.global&&!--ap.active&&ap.event.trigger("ajaxStop")}function R(bl,bk){(W.context?ap(W.context):ap.event).trigger(bl,bk)}var W=ap.extend(true,{},ap.ajaxSettings,Q),A,J,L,F=Q&&Q.context||W,K=W.type.toUpperCase();if(W.data&&W.processData&&typeof W.data!=="string"){W.data=ap.param(W.data,W.traditional)}if(W.dataType==="jsonp"){if(K==="GET"){af.test(W.url)||(W.url+=(a3.test(W.url)?"&":"?")+(W.jsonp||"callback")+"=?")}else{if(!W.data||!af.test(W.data)){W.data=(W.data?W.data+"&":"")+(W.jsonp||"callback")+"=?"}}W.dataType="json"}if(W.dataType==="json"&&(W.data&&af.test(W.data)||af.test(W.url))){A=W.jsonpCallback||"jsonp"+x++;if(W.data){W.data=(W.data+"").replace(af,"="+A+"$1")}W.url=W.url.replace(af,"="+A+"$1");W.dataType="script";aj[A]=aj[A]||function(bl){L=bl;P();V();aj[A]=an;try{delete aj[A]}catch(bk){}aa&&aa.removeChild(Y)}}if(W.dataType==="script"&&W.cache===null){W.cache=false}if(W.cache===false&&K==="GET"){var c=ac(),w=W.url.replace(l,"$1_="+c+"$2");W.url=w+(w===W.url?(a3.test(W.url)?"&":"?")+"_="+c:"")}if(W.data&&K==="GET"){W.url+=(a3.test(W.url)?"&":"?")+W.data}W.global&&!ap.active++&&ap.event.trigger("ajaxStart");c=(c=aY.exec(W.url))&&(c[1]&&c[1]!==location.protocol||c[2]!==location.host);if(W.dataType==="script"&&K==="GET"&&c){var aa=am.getElementsByTagName("head")[0]||am.documentElement,Y=am.createElement("script");Y.src=W.url;if(W.scriptCharset){Y.charset=W.scriptCharset}if(!A){var X=false;Y.onload=Y.onreadystatechange=function(){if(!X&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){X=true;P();V();Y.onload=Y.onreadystatechange=null;aa&&Y.parentNode&&aa.removeChild(Y)}}}aa.insertBefore(Y,aa.firstChild);return an}var Z=false,ba=W.xhr();if(ba){W.username?ba.open(K,W.url,W.async,W.username,W.password):ba.open(K,W.url,W.async);try{if(W.data||Q&&Q.contentType){ba.setRequestHeader("Content-Type",W.contentType)}if(W.ifModified){ap.lastModified[W.url]&&ba.setRequestHeader("If-Modified-Since",ap.lastModified[W.url]);ap.etag[W.url]&&ba.setRequestHeader("If-None-Match",ap.etag[W.url])}c||ba.setRequestHeader("X-Requested-With","XMLHttpRequest");ba.setRequestHeader("Accept",W.dataType&&W.accepts[W.dataType]?W.accepts[W.dataType]+", */*":W.accepts._default)}catch(s){}if(W.beforeSend&&W.beforeSend.call(F,ba,W)===false){W.global&&!--ap.active&&ap.event.trigger("ajaxStop");ba.abort();return false}W.global&&R("ajaxSend",[ba,W]);var T=ba.onreadystatechange=function(bl){if(!ba||ba.readyState===0||bl==="abort"){Z||V();Z=true;if(ba){ba.onreadystatechange=ap.noop}}else{if(!Z&&ba&&(ba.readyState===4||bl==="timeout")){Z=true;ba.onreadystatechange=ap.noop;J=bl==="timeout"?"timeout":!ap.httpSuccess(ba)?"error":W.ifModified&&ap.httpNotModified(ba,W.url)?"notmodified":"success";var bk;if(J==="success"){try{L=ap.httpData(ba,W.dataType,W)}catch(bm){J="parsererror";bk=bm}}if(J==="success"||J==="notmodified"){A||P()}else{ap.handleError(W,ba,J,bk)}V();bl==="timeout"&&ba.abort();if(W.async){ba=null}}}};try{var G=ba.abort;ba.abort=function(){ba&&G.call(ba);T("abort")}}catch(N){}W.async&&W.timeout>0&&setTimeout(function(){ba&&!Z&&T("timeout")},W.timeout);try{ba.send(K==="POST"||K==="PUT"||K==="DELETE"?W.data:null)}catch(O){ap.handleError(W,ba,null,O);V()}W.async||T();return ba}},handleError:function(w,s,c,A){if(w.error){w.error.call(w.context||w,s,c,A)}if(w.global){(w.context?ap(w.context):ap.event).trigger("ajaxError",[s,w,A])}},active:0,httpSuccess:function(s){try{return !s.status&&location.protocol==="file:"||s.status>=200&&s.status<300||s.status===304||s.status===1223||s.status===0}catch(c){}return false},httpNotModified:function(w,s){var c=w.getResponseHeader("Last-Modified"),A=w.getResponseHeader("Etag");if(c){ap.lastModified[s]=c}if(A){ap.etag[s]=A}return w.status===304||w.status===0},httpData:function(A,w,c){var F=A.getResponseHeader("content-type")||"",s=w==="xml"||!w&&F.indexOf("xml")>=0;A=s?A.responseXML:A.responseText;s&&A.documentElement.nodeName==="parsererror"&&ap.error("parsererror");if(c&&c.dataFilter){A=c.dataFilter(A,w)}if(typeof A==="string"){if(w==="json"||!w&&F.indexOf("json")>=0){A=ap.parseJSON(A)}else{if(w==="script"||!w&&F.indexOf("javascript")>=0){ap.globalEval(A)}}}return A},param:function(F,A){function s(J,K){if(ap.isArray(K)){ap.each(K,function(N,L){A||/\[\]$/.test(J)?G(J,L):s(J+"["+(typeof L==="object"||ap.isArray(L)?N:"")+"]",L)})}else{!A&&K!=null&&typeof K==="object"?ap.each(K,function(N,L){s(J+"["+N+"]",L)}):G(J,K)}}function G(J,K){K=ap.isFunction(K)?K():K;w[w.length]=encodeURIComponent(J)+"="+encodeURIComponent(K)}var w=[];if(A===an){A=ap.ajaxSettings.traditional}if(ap.isArray(F)||F.jquery){ap.each(F,function(){G(this.name,this.value)})}else{for(var c in F){s(c,F[c])}}return w.join("&").replace(u,"+")}});var ai={},aT=/toggle|show|hide/,q=/^([+-]=)?([\d+-.]+)(.*)$/,U,p=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];ap.fn.extend({show:function(A,w){if(A||A===0){return this.animate(ad("show",3),A,w)}else{A=0;for(w=this.length;A<w;A++){var c=ap.data(this[A],"olddisplay");this[A].style.display=c||"";if(ap.css(this[A],"display")==="none"){c=this[A].nodeName;var F;if(ai[c]){F=ai[c]}else{var s=ap("<"+c+" />").appendTo("body");F=s.css("display");if(F==="none"){F="block"}s.remove();ai[c]=F}ap.data(this[A],"olddisplay",F)}}A=0;for(w=this.length;A<w;A++){this[A].style.display=ap.data(this[A],"olddisplay")||""}return this}},hide:function(w,s){if(w||w===0){return this.animate(ad("hide",3),w,s)}else{w=0;for(s=this.length;w<s;w++){var c=ap.data(this[w],"olddisplay");!c&&c!=="none"&&ap.data(this[w],"olddisplay",ap.css(this[w],"display"))}w=0;for(s=this.length;w<s;w++){this[w].style.display="none"}return this}},_toggle:ap.fn.toggle,toggle:function(w,s){var c=typeof w==="boolean";if(ap.isFunction(w)&&ap.isFunction(s)){this._toggle.apply(this,arguments)}else{w==null||c?this.each(function(){var A=c?w:ap(this).is(":hidden");ap(this)[A?"show":"hide"]()}):this.animate(ad("toggle",3),w,s)}return this},fadeTo:function(w,s,c){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:s},w,c)},animate:function(A,w,c,F){var s=ap.speed(w,c,F);if(ap.isEmptyObject(A)){return this.each(s.complete)}return this[s.queue===false?"each":"queue"](function(){var L=ap.extend({},s),G,K=this.nodeType===1&&ap(this).is(":hidden"),N=this;for(G in A){var J=G.replace(a5,a2);if(G!==J){A[J]=A[G];delete A[G];G=J}if(A[G]==="hide"&&K||A[G]==="show"&&!K){return L.complete.call(this)}if((G==="height"||G==="width")&&this.style){L.display=ap.css(this,"display");L.overflow=this.style.overflow}if(ap.isArray(A[G])){(L.specialEasing=L.specialEasing||{})[G]=A[G][1];A[G]=A[G][0]}}if(L.overflow!=null){this.style.overflow="hidden"}L.curAnim=ap.extend({},A);ap.each(A,function(O,T){var Q=new ap.fx(N,L,O);if(aT.test(T)){Q[T==="toggle"?K?"show":"hide":T](A)}else{var V=q.exec(T),R=Q.cur(true)||0;if(V){T=parseFloat(V[2]);var P=V[3]||"px";if(P!=="px"){N.style[O]=(T||1)+P;R=(T||1)/Q.cur(true)*R;N.style[O]=R+P}if(V[1]){T=(V[1]==="-="?-1:1)*T+R}Q.custom(R,T,P)}else{Q.custom(R,T,"")}}});return true})},stop:function(w,s){var c=ap.timers;w&&this.queue([]);this.each(function(){for(var A=c.length-1;A>=0;A--){if(c[A].elem===this){s&&c[A](true);c.splice(A,1)}}});s||this.dequeue();return this}});ap.each({slideDown:ad("show",1),slideUp:ad("hide",1),slideToggle:ad("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(s,c){ap.fn[s]=function(w,A){return this.animate(c,w,A)}});ap.extend({speed:function(w,s,c){var A=w&&typeof w==="object"?w:{complete:c||!c&&s||ap.isFunction(w)&&w,duration:w,easing:c&&s||s&&!ap.isFunction(s)&&s};A.duration=ap.fx.off?0:typeof A.duration==="number"?A.duration:ap.fx.speeds[A.duration]||ap.fx.speeds._default;A.old=A.complete;A.complete=function(){A.queue!==false&&ap(this).dequeue();ap.isFunction(A.old)&&A.old.call(this)};return A},easing:{linear:function(w,s,c,A){return c+A*w},swing:function(w,s,c,A){return(-Math.cos(w*Math.PI)/2+0.5)*A+c}},timers:[],fx:function(w,s,c){this.options=s;this.elem=w;this.prop=c;if(!s.orig){s.orig={}}}});ap.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(ap.fx.step[this.prop]||ap.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(c){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}return(c=parseFloat(ap.css(this.elem,this.prop,c)))&&c>-10000?c:parseFloat(ap.curCSS(this.elem,this.prop))||0},custom:function(A,w,c){function F(G){return s.step(G)}this.startTime=ac();this.start=A;this.end=w;this.unit=c||this.unit||"px";this.now=this.start;this.pos=this.state=0;var s=this;F.elem=this.elem;if(F()&&ap.timers.push(F)&&!U){U=setInterval(ap.fx.tick,13)}},show:function(){this.options.orig[this.prop]=ap.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());ap(this.elem).show()},hide:function(){this.options.orig[this.prop]=ap.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(A){var w=ac(),c=true;if(A||w>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){c=false}}if(c){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;A=ap.data(this.elem,"olddisplay");this.elem.style.display=A?A:this.options.display;if(ap.css(this.elem,"display")==="none"){this.elem.style.display="block"}}this.options.hide&&ap(this.elem).hide();if(this.options.hide||this.options.show){for(var s in this.options.curAnim){ap.style(this.elem,s,this.options.orig[s])}}this.options.complete.call(this.elem)}return false}else{s=w-this.startTime;this.state=s/this.options.duration;A=this.options.easing||(ap.easing.swing?"swing":"linear");this.pos=ap.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||A](this.state,s,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};ap.extend(ap.fx,{tick:function(){for(var s=ap.timers,c=0;c<s.length;c++){s[c]()||s.splice(c--,1)}s.length||ap.fx.stop()},stop:function(){clearInterval(U);U=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(c){ap.style(c.elem,"opacity",c.now)},_default:function(c){if(c.elem.style&&c.elem.style[c.prop]!=null){c.elem.style[c.prop]=(c.prop==="width"||c.prop==="height"?Math.max(0,c.now):c.now)+c.unit}else{c.elem[c.prop]=c.now}}}});if(ap.expr&&ap.expr.filters){ap.expr.filters.animated=function(c){return ap.grep(ap.timers,function(s){return c===s.elem}).length}}ap.fn.offset="getBoundingClientRect" in am.documentElement?function(w){var s=this[0];if(w){return this.each(function(F){ap.offset.setOffset(this,w,F)})}if(!s||!s.ownerDocument){return null}if(s===s.ownerDocument.body){return ap.offset.bodyOffset(s)}var c=s.getBoundingClientRect(),A=s.ownerDocument;s=A.body;A=A.documentElement;return{top:c.top+(self.pageYOffset||ap.support.boxModel&&A.scrollTop||s.scrollTop)-(A.clientTop||s.clientTop||0),left:c.left+(self.pageXOffset||ap.support.boxModel&&A.scrollLeft||s.scrollLeft)-(A.clientLeft||s.clientLeft||0)}}:function(K){var J=this[0];if(K){return this.each(function(O){ap.offset.setOffset(this,K,O)})}if(!J||!J.ownerDocument){return null}if(J===J.ownerDocument.body){return ap.offset.bodyOffset(J)}ap.offset.initialize();var N=J.offsetParent,L=J,c=J.ownerDocument,s,A=c.documentElement,G=c.body;L=(c=c.defaultView)?c.getComputedStyle(J,null):J.currentStyle;for(var w=J.offsetTop,F=J.offsetLeft;(J=J.parentNode)&&J!==G&&J!==A;){if(ap.offset.supportsFixedPosition&&L.position==="fixed"){break}s=c?c.getComputedStyle(J,null):J.currentStyle;w-=J.scrollTop;F-=J.scrollLeft;if(J===N){w+=J.offsetTop;F+=J.offsetLeft;if(ap.offset.doesNotAddBorder&&!(ap.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.nodeName))){w+=parseFloat(s.borderTopWidth)||0;F+=parseFloat(s.borderLeftWidth)||0}L=N;N=J.offsetParent}if(ap.offset.subtractsBorderForOverflowNotVisible&&s.overflow!=="visible"){w+=parseFloat(s.borderTopWidth)||0;F+=parseFloat(s.borderLeftWidth)||0}L=s}if(L.position==="relative"||L.position==="static"){w+=G.offsetTop;F+=G.offsetLeft}if(ap.offset.supportsFixedPosition&&L.position==="fixed"){w+=Math.max(A.scrollTop,G.scrollTop);F+=Math.max(A.scrollLeft,G.scrollLeft)}return{top:w,left:F}};ap.offset={initialize:function(){var F=am.body,A=am.createElement("div"),s,G,w,c=parseFloat(ap.curCSS(F,"marginTop",true))||0;ap.extend(A.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});A.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";F.insertBefore(A,F.firstChild);s=A.firstChild;G=s.firstChild;w=s.nextSibling.firstChild.firstChild;this.doesNotAddBorder=G.offsetTop!==5;this.doesAddBorderForTableAndCells=w.offsetTop===5;G.style.position="fixed";G.style.top="20px";this.supportsFixedPosition=G.offsetTop===20||G.offsetTop===15;G.style.position=G.style.top="";s.style.overflow="hidden";s.style.position="relative";this.subtractsBorderForOverflowNotVisible=G.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=F.offsetTop!==c;F.removeChild(A);ap.offset.initialize=ap.noop},bodyOffset:function(w){var s=w.offsetTop,c=w.offsetLeft;ap.offset.initialize();if(ap.offset.doesNotIncludeMarginInBodyOffset){s+=parseFloat(ap.curCSS(w,"marginTop",true))||0;c+=parseFloat(ap.curCSS(w,"marginLeft",true))||0}return{top:s,left:c}},setOffset:function(G,F,s){if(/static/.test(ap.curCSS(G,"position"))){G.style.position="relative"}var J=ap(G),w=J.offset(),c=parseInt(ap.curCSS(G,"top",true),10)||0,A=parseInt(ap.curCSS(G,"left",true),10)||0;if(ap.isFunction(F)){F=F.call(G,s,w)}s={top:F.top-w.top+c,left:F.left-w.left+A};"using" in F?F.using.call(G,s):J.css(s)}};ap.fn.extend({position:function(){if(!this[0]){return null}var w=this[0],s=this.offsetParent(),c=this.offset(),A=/^body|html$/i.test(s[0].nodeName)?{top:0,left:0}:s.offset();c.top-=parseFloat(ap.curCSS(w,"marginTop",true))||0;c.left-=parseFloat(ap.curCSS(w,"marginLeft",true))||0;A.top+=parseFloat(ap.curCSS(s[0],"borderTopWidth",true))||0;A.left+=parseFloat(ap.curCSS(s[0],"borderLeftWidth",true))||0;return{top:c.top-A.top,left:c.left-A.left}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent||am.body;c&&!/^body|html$/i.test(c.nodeName)&&ap.css(c,"position")==="static";){c=c.offsetParent}return c})}});ap.each(["Left","Top"],function(w,s){var c="scroll"+s;ap.fn[c]=function(G){var A=this[0],F;if(!A){return null}if(G!==an){return this.each(function(){if(F=aZ(this)){F.scrollTo(!w?G:ap(F).scrollLeft(),w?G:ap(F).scrollTop())}else{this[c]=G}})}else{return(F=aZ(A))?"pageXOffset" in F?F[w?"pageYOffset":"pageXOffset"]:ap.support.boxModel&&F.document.documentElement[c]||F.document.body[c]:A[c]}}});ap.each(["Height","Width"],function(w,s){var c=s.toLowerCase();ap.fn["inner"+s]=function(){return this[0]?ap.css(this[0],c,false,"padding"):null};ap.fn["outer"+s]=function(A){return this[0]?ap.css(this[0],c,false,A?"margin":"border"):null};ap.fn[c]=function(F){var A=this[0];if(!A){return F==null?null:this}if(ap.isFunction(F)){return this.each(function(J){var G=ap(this);G[c](F.call(this,J,G[c]()))})}return"scrollTo" in A&&A.document?A.document.compatMode==="CSS1Compat"&&A.document.documentElement["client"+s]||A.document.body["client"+s]:A.nodeType===9?Math.max(A.documentElement["client"+s],A.body["scroll"+s],A.documentElement["scroll"+s],A.body["offset"+s],A.documentElement["offset"+s]):F===an?ap.css(A,c):this.css(c,typeof F==="string"?F:F+"px")}});aj.jQuery=aj.$=ap})(window);jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,g,h,a){return jQuery.easing[jQuery.easing.def](e,f,g,h,a)},easeInQuad:function(e,f,g,h,a){return h*(f/=a)*f+g},easeOutQuad:function(e,f,g,h,a){return -h*(f/=a)*(f-2)+g},easeInOutQuad:function(e,f,g,h,a){if((f/=a/2)<1){return h/2*f*f+g}return -h/2*((--f)*(f-2)-1)+g},easeInCubic:function(e,f,g,h,a){return h*(f/=a)*f*f+g},easeOutCubic:function(e,f,g,h,a){return h*((f=f/a-1)*f*f+1)+g},easeInOutCubic:function(e,f,g,h,a){if((f/=a/2)<1){return h/2*f*f*f+g}return h/2*((f-=2)*f*f+2)+g},easeInQuart:function(e,f,g,h,a){return h*(f/=a)*f*f*f+g},easeOutQuart:function(e,f,g,h,a){return -h*((f=f/a-1)*f*f*f-1)+g},easeInOutQuart:function(e,f,g,h,a){if((f/=a/2)<1){return h/2*f*f*f*f+g}return -h/2*((f-=2)*f*f*f-2)+g},easeInQuint:function(e,f,g,h,a){return h*(f/=a)*f*f*f*f+g},easeOutQuint:function(e,f,g,h,a){return h*((f=f/a-1)*f*f*f*f+1)+g},easeInOutQuint:function(e,f,g,h,a){if((f/=a/2)<1){return h/2*f*f*f*f*f+g}return h/2*((f-=2)*f*f*f*f+2)+g},easeInSine:function(e,f,g,h,a){return -h*Math.cos(f/a*(Math.PI/2))+h+g},easeOutSine:function(e,f,g,h,a){return h*Math.sin(f/a*(Math.PI/2))+g},easeInOutSine:function(e,f,g,h,a){return -h/2*(Math.cos(Math.PI*f/a)-1)+g},easeInExpo:function(e,f,g,h,a){return(f==0)?g:h*Math.pow(2,10*(f/a-1))+g},easeOutExpo:function(e,f,g,h,a){return(f==a)?g+h:h*(-Math.pow(2,-10*f/a)+1)+g},easeInOutExpo:function(e,f,g,h,a){if(f==0){return g}if(f==a){return g+h}if((f/=a/2)<1){return h/2*Math.pow(2,10*(f-1))+g}return h/2*(-Math.pow(2,-10*--f)+2)+g},easeInCirc:function(e,f,g,h,a){return -h*(Math.sqrt(1-(f/=a)*f)-1)+g},easeOutCirc:function(e,f,g,h,a){return h*Math.sqrt(1-(f=f/a-1)*f)+g},easeInOutCirc:function(e,f,g,h,a){if((f/=a/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+g}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+g},easeInElastic:function(l,g,h,j,m){var e=1.70158;var f=0;var k=j;if(g==0){return h}if((g/=m)==1){return h+j}if(!f){f=m*0.3}if(k<Math.abs(j)){k=j;var e=f/4}else{var e=f/(2*Math.PI)*Math.asin(j/k)}return -(k*Math.pow(2,10*(g-=1))*Math.sin((g*m-e)*(2*Math.PI)/f))+h},easeOutElastic:function(l,g,h,j,m){var e=1.70158;var f=0;var k=j;if(g==0){return h}if((g/=m)==1){return h+j}if(!f){f=m*0.3}if(k<Math.abs(j)){k=j;var e=f/4}else{var e=f/(2*Math.PI)*Math.asin(j/k)}return k*Math.pow(2,-10*g)*Math.sin((g*m-e)*(2*Math.PI)/f)+j+h},easeInOutElastic:function(l,g,h,j,m){var e=1.70158;var f=0;var k=j;if(g==0){return h}if((g/=m/2)==2){return h+j}if(!f){f=m*(0.3*1.5)}if(k<Math.abs(j)){k=j;var e=f/4}else{var e=f/(2*Math.PI)*Math.asin(j/k)}if(g<1){return -0.5*(k*Math.pow(2,10*(g-=1))*Math.sin((g*m-e)*(2*Math.PI)/f))+h}return k*Math.pow(2,-10*(g-=1))*Math.sin((g*m-e)*(2*Math.PI)/f)*0.5+j+h},easeInBack:function(f,g,h,j,a,e){if(e==undefined){e=1.70158}return j*(g/=a)*g*((e+1)*g-e)+h},easeOutBack:function(f,g,h,j,a,e){if(e==undefined){e=1.70158}return j*((g=g/a-1)*g*((e+1)*g+e)+1)+h},easeInOutBack:function(f,g,h,j,a,e){if(e==undefined){e=1.70158}if((g/=a/2)<1){return j/2*(g*g*(((e*=(1.525))+1)*g-e))+h}return j/2*((g-=2)*g*(((e*=(1.525))+1)*g+e)+2)+h},easeInBounce:function(e,f,g,h,a){return h-jQuery.easing.easeOutBounce(e,a-f,0,h,a)+g},easeOutBounce:function(e,f,g,h,a){if((f/=a)<(1/2.75)){return h*(7.5625*f*f)+g}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+g}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+g}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+g}}}},easeInOutBounce:function(e,f,g,h,a){if(f<a/2){return jQuery.easing.easeInBounce(e,f*2,0,h,a)*0.5+g}return jQuery.easing.easeOutBounce(e,f*2-a,0,h,a)*0.5+h*0.5+g}});(function(a){a.fn.galleryView=function(z){var A=a.extend(a.fn.galleryView.defaults,z);var y;var f=0;var n;var l;var e=10;var d;var g;var q=0;var D;var v="http://images.ftbs.sl.pt/autoao/include/fe/common/images/botoes";var p=false;var E=20;var k=5;var r=2;var b;var s;var x;var C;var m;function o(F){a("img.nav-next").unbind("click");a("img.nav-prev").unbind("click");x.unbind("click");if(has_panels){if(A.fade_panels){C.fadeOut(A.transition_speed).eq(F%q).fadeIn(A.transition_speed,function(){if(!has_filmstrip){a("img.nav-prev").click(w);a("img.nav-next").click(c)}})}}if(has_filmstrip){if(D=="strip"){s.stop();var I=B(x[F]).left-(B(m[0]).left+2);var H=(I>=0?"-=":"+=")+Math.abs(I)+"px";s.animate({left:H},A.transition_speed,A.easing,function(){if(F>q){F=F%q;f=F;s.css("left","-"+((A.frame_width+e)*F)+"px")}else{if(F<=(q-strip_size)){F=(F%q)+q;f=F;s.css("left","-"+((A.frame_width+e)*F)+"px")}}if(!A.fade_panels){C.hide().eq(F%q).show()}a("img.nav-prev").click(w);a("img.nav-next").click(c);u()})}else{if(D=="pointer"){m.stop();var G=B(x[F]);m.animate({left:(G.left-2+"px")},A.transition_speed,A.easing,function(){if(!A.fade_panels){C.hide().eq(F%q).show()}a("img.nav-prev").click(w);a("img.nav-next").click(c);u()})}}if(a("a",x[F])[0]){m.unbind("click").click(function(){var J=a("a",x[F]).eq(0);if(J.attr("target")=="_blank"){window.open(J.attr("href"))}else{location.href=J.attr("href")}})}}}function c(){a(document).stopTime("transition");if(++f==x.length){f=0}o(f);a(document).everyTime(A.transition_interval,"transition",function(){c()})}function w(){a(document).stopTime("transition");if(--f<0){f=q-1}o(f);a(document).everyTime(A.transition_interval,"transition",function(){c()})}function B(F){var G=0,I=0;var K=F.id;if(F.offsetParent){do{G+=F.offsetLeft;I+=F.offsetTop}while(F=F.offsetParent)}if(K==y){return{left:G,top:I}}else{var J=B(b[0]);var L=J.left;var H=J.top;return{left:G-L,top:I-H}}}function u(){x.each(function(F){if(a("a",this).length==0){a(this).click(function(){a(document).stopTime("transition");o(F);f=F;a(document).everyTime(A.transition_interval,"transition",function(){c()})})}})}function t(){if(a(".panel-overlay").length>0){C.append('<div class="overlay"></div>')}if(!has_filmstrip){a("<img />").addClass("nav-next").attr("src",v+"/next.gif").appendTo(b).css({position:"absolute",zIndex:"1100",cursor:"pointer",top:((A.panel_height-22)/2)+"px",right:"10px",display:"none"}).click(c);a("<img />").addClass("nav-prev").attr("src",v+"/prev.gif").appendTo(b).css({position:"absolute",zIndex:"1100",cursor:"pointer",top:((A.panel_height-22)/2)+"px",left:"10px",display:"none"}).click(w);a("<img />").addClass("nav-overlay").attr("src",v+"/panel-nav-next.gif").appendTo(b).css({position:"absolute",zIndex:"1099",top:((A.panel_height-22)/2)-10+"px",right:"0",display:"none"});a("<img />").addClass("nav-overlay").attr("src",v+"/panel-nav-prev.gif").appendTo(b).css({position:"absolute",zIndex:"1099",top:((A.panel_height-22)/2)-10+"px",left:"0",display:"none"})}C.css({width:(A.panel_width-parseInt(C.css("paddingLeft").split("px")[0],10)-parseInt(C.css("paddingRight").split("px")[0],10))+"px",height:(A.panel_height-parseInt(C.css("paddingTop").split("px")[0],10)-parseInt(C.css("paddingBottom").split("px")[0],10))+"px",position:"absolute",top:(A.filmstrip_position=="top"?(A.frame_height+k+(A.show_captions?E:k))+"px":"0px"),left:"0px",overflow:"hidden",background:"white",display:"none"});a(".panel-overlay",C).css({position:"absolute",zIndex:"999",width:(A.panel_width-20)+"px",height:A.overlay_height+"px",top:(A.overlay_position=="top"?"0":A.panel_height-A.overlay_height+"px"),left:"0",padding:"0 10px",color:A.overlay_text_color,fontSize:A.overlay_font_size});a(".panel-overlay a",C).css({color:A.overlay_text_color,textDecoration:"underline",fontWeight:"bold"});a(".overlay",C).css({position:"absolute",zIndex:"998",width:A.panel_width+"px",height:A.overlay_height+"px",top:(A.overlay_position=="top"?"0":A.panel_height-A.overlay_height+"px"),left:"0",background:A.overlay_color,opacity:A.overlay_opacity});a(".panel iframe",C).css({width:A.panel_width+"px",height:(A.panel_height-A.overlay_height)+"px",border:"0"})}function h(){s.wrap('<div class="strip_wrapper"></div>');if(D=="strip"){x.clone().appendTo(s);x.clone().appendTo(s);x=a("li",s)}if(A.show_captions){x.append('<div class="caption"></div>').each(function(H){a(this).find(".caption").html(a(this).find("img").attr("title"))})}s.css({listStyle:"none",margin:"0",padding:"0",width:d+"px",position:"absolute",zIndex:"900",top:"0",left:"0",height:(A.frame_height+10)+"px",background:A.background_color});x.css({"float":"left",position:"relative",height:A.frame_height+"px",zIndex:"901",marginTop:k+"px",marginBottom:"0px",marginRight:e+"px",padding:"0",cursor:"pointer"});a("img",x).css({border:"none"});a(".strip_wrapper",b).css({position:"absolute",top:(A.filmstrip_position=="top"?"0px":A.panel_height+"px"),left:((n-g)/2)+"px",width:g+"px",height:(A.frame_height+k+(A.show_captions?E:k))+"px",overflow:"hidden"});a(".caption",b).css({position:"absolute",top:A.frame_height+"px",left:"0",margin:"0",width:A.frame_width+"px",padding:"0",color:A.caption_text_color,textAlign:"center",fontSize:"10px",height:E+"px",lineHeight:E+"px"});var F=a("<div></div>");F.attr("id","pointer").appendTo(b).css({position:"absolute",zIndex:"1000",cursor:"pointer",top:"463px",left:((612-g)/2)+"px",height:A.frame_height-r+"px",width:A.frame_width-r+"px",border:(has_panels?r+"px solid "+(A.nav_theme=="dark"?"black":"black"):"none")});m=a("#pointer",b);if(has_panels){var G=a("<img />");G.attr("src",v+"/pointer"+(A.filmstrip_position=="top"?"-down":"")+".png").appendTo(a("#pointer")).css({position:"absolute",zIndex:"1001",top:(A.filmstrip_position=="bottom"?"-"+(10+r)+"px":A.frame_height+"px"),left:((A.frame_width/2)-10)+"px"})}if(D=="strip"){s.css("left","-"+((A.frame_width+e)*q)+"px");f=q}if(a("a",x[f])[0]){m.click(function(){var H=a("a",x[f]).eq(0);if(H.attr("target")=="_blank"){window.open(H.attr("href"))}else{location.href=H.attr("href")}})}a('<img height="55px" width="22px"/>').addClass("nav-next").attr("src",v+"/next.gif").appendTo(b).css({position:"absolute",cursor:"pointer",top:"465.5px",right:(n/2)-(g/2)-10-22+"px"}).click(c);a('<img height="55px" width="22px"/>').addClass("nav-prev").attr("src",v+"/prev.gif").appendTo(b).css({position:"absolute",cursor:"pointer",top:"465.5px",left:(n/2)-(g/2)-10-22+"px"}).click(w)}function j(I,J){var G=B(b[0]);var H=G.top;var F=G.left;return I>F&&I<F+A.panel_width&&J>H&&J<H+A.panel_height}return this.each(function(){b=a(this);b.css("visibility","hidden");s=a(".filmstrip",b);x=a("li",s);C=a(".panel",b);y=b.attr("id");has_panels=C.length>0;has_filmstrip=x.length>0;if(!has_panels){A.panel_height=0}q=has_panels?C.length:x.length;strip_size=has_panels?Math.floor((A.panel_width-64)/(A.frame_width+e)):Math.min(q,A.filmstrip_size);if(strip_size>=q){D="pointer";strip_size=q}else{D="strip"}n=has_panels?A.panel_width:(strip_size*(A.frame_width+e))-e+64;l=(has_panels?A.panel_height:0)+(has_filmstrip?A.frame_height+k+(A.show_captions?E:k):0);if(D=="pointer"){d=(A.frame_width*q)+(e*(q))}else{d=(A.frame_width*q*3)+(e*(q*3))}g=((strip_size*A.frame_width)+((strip_size-1)*e));b.css({position:"relative",margin:"0",background:A.background_color,border:A.border,width:n+"px",height:l+"px"});if(has_filmstrip){h()}if(has_panels){t()}if(has_filmstrip){u()}a().mousemove(function(F){if(j(F.pageX,F.pageY)){if(A.pause_on_hover){a(document).oneTime(500,"animation_pause",function(){a(document).stopTime("transition");p=true})}if(has_panels&&!has_filmstrip){a(".nav-overlay").fadeIn("fast");a(".nav-next").fadeIn("fast");a(".nav-prev").fadeIn("fast")}}else{if(A.pause_on_hover){a(document).stopTime("animation_pause");if(p){a(document).everyTime(A.transition_interval,"transition",function(){c()});p=false}}if(has_panels&&!has_filmstrip){a(".nav-overlay").fadeOut("fast");a(".nav-next").fadeOut("fast");a(".nav-prev").fadeOut("fast")}}});C.eq(0).show();if(q>1){a(document).everyTime(A.transition_interval,"transition",function(){c()})}b.css("visibility","visible")})};a.fn.galleryView.defaults={panel_width:400,panel_height:300,frame_width:80,frame_height:80,filmstrip_size:3,overlay_height:70,overlay_font_size:"1em",transition_speed:300,transition_interval:0,overlay_opacity:0.6,overlay_color:"black",background_color:"white",overlay_text_color:"white",caption_text_color:"white",border:"none",nav_theme:"light",easing:"swing",filmstrip_position:"bottom",overlay_position:"bottom",show_captions:false,fade_panels:true,pause_on_hover:false}})(jQuery);jQuery.fn.extend({everyTime:function(b,a,c,d,e){return this.each(function(){jQuery.timer.add(this,b,a,c,d,e)})},oneTime:function(b,a,c){return this.each(function(){jQuery.timer.add(this,b,a,c,1)})},stopTime:function(a,b){return this.each(function(){jQuery.timer.remove(this,a,b)})}});jQuery.event.special;jQuery.extend({timer:{global:[],guid:1,dataKey:"jQuery.timer",regex:/^([0-9]+(?:\.[0-9]*)?)\s*(.*s)?$/,powers:{ms:1,cs:10,ds:100,s:1000,das:10000,hs:100000,ks:1000000},timeParse:function(c){if(c==undefined||c==null){return null}var a=this.regex.exec(jQuery.trim(c.toString()));if(a[2]){var b=parseFloat(a[1]);var d=this.powers[a[2]]||1;return b*d}else{return c}},add:function(a,f,b,e,g,j){var d=0;if(jQuery.isFunction(b)){if(!g){g=e}e=b;b=f}f=jQuery.timer.timeParse(f);if(typeof f!="number"||isNaN(f)||f<=0){return}if(g&&g.constructor!=Number){j=!!g;g=0}g=g||0;j=j||false;var c=jQuery.data(a,this.dataKey)||jQuery.data(a,this.dataKey,{});if(!c[b]){c[b]={}}e.timerID=e.timerID||this.guid++;var h=function(){if(j&&this.inProgress){return}this.inProgress=true;if((++d>g&&g!==0)||e.call(a,d)===false){jQuery.timer.remove(a,b,e)}this.inProgress=false};h.timerID=e.timerID;if(!c[b][e.timerID]){c[b][e.timerID]=window.setInterval(h,f)}this.global.push(a)},remove:function(d,a,b){var c=jQuery.data(d,this.dataKey),e;if(c){if(!a){for(a in c){this.remove(d,a,b)}}else{if(c[a]){if(b){if(b.timerID){window.clearInterval(c[a][b.timerID]);delete c[a][b.timerID]}}else{for(var b in c[a]){window.clearInterval(c[a][b]);delete c[a][b]}}for(e in c[a]){break}if(!e){e=null;delete c[a]}}}for(e in c){break}if(!e){jQuery.removeData(d,this.dataKey)}}}}});jQuery(window).bind("unload",function(){jQuery.each(jQuery.timer.global,function(b,a){jQuery.timer.remove(a)})});(function(a4,aZ){var aS="none",aU="click",aA="LoadedContent",a9=false,aM="resize.",aj="y",af="auto",a7=true,aD="nofollow",aR="on",ai="x";function aa(d,b){d=d?' id="'+aX+d+'"':"";b=b?' style="'+b+'"':"";return a4("<div"+d+b+"/>")}function aQ(d,c){c=c===ai?a3.width():a3.height();return typeof d==="string"?Math.round(d.match(/%/)?c/100*parseInt(d,10):parseInt(d,10)):d}function aq(a){a=a4.isFunction(a)?a.call(ag):a;return a6.photo||a.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i)}function aV(){for(var a in a6){if(a4.isFunction(a6[a])&&a.substring(0,2)!==aR){a6[a]=a6[a].call(ag)}}a6.rel=a6.rel||ag.rel||aD;a6.href=a6.href||a4(ag).attr("href");a6.title=a6.title||ag.title}function a0(a){ag=a;a6=a4.extend({},a4(ag).data(ae));aV();if(a6.rel!==aD){ah=a4("."+ay).filter(function(){return(a4(this).data(ae).rel||this.rel)===a6.rel});a8=ah.index(ag);if(a8===-1){ah=ah.add(ag);a8=ah.length-1}}else{ah=a4(ag);a8=0}if(!aT){aT=aH=a7;an=ag;try{an.blur()}catch(b){}a4.event.trigger(aO);a6.onOpen&&a6.onOpen.call(ag);aN.css({opacity:+a6.opacity,cursor:a6.overlayClose?"pointer":af}).show();a6.w=aQ(a6.initialWidth,ai);a6.h=aQ(a6.initialHeight,aj);am.position(0);ao&&a3.bind(aM+aB+" scroll."+aB,function(){aN.css({width:a3.width(),height:a3.height(),top:a3.scrollTop(),left:a3.scrollLeft()})}).trigger("scroll."+aB)}au.add(az).add(aw).add(aL).add(av).hide();ar.html(a6.close).show();am.slideshow();am.load()}var a1={transition:"elastic",speed:300,width:a9,initialWidth:"600",innerWidth:a9,maxWidth:a9,height:a9,initialHeight:"450",innerHeight:a9,maxHeight:a9,scalePhotos:a7,scrolling:a7,inline:a9,html:a9,iframe:a9,photo:a9,href:a9,title:a9,rel:a9,opacity:0.9,preloading:a7,current:"Foto {current} de {total}",previous:"anterior",next:"seguinte",close:"fechar",open:a9,loop:a7,slideshow:a9,slideshowAuto:a7,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:a9,onLoad:a9,onComplete:a9,onCleanup:a9,onClosed:a9,overlayClose:a7,escKey:a7,arrowKey:a7},ae="colorbox",aX="cbox",aO=aX+"_open",ap=aX+"_load",at=aX+"_complete",ak=aX+"_cleanup",aY=aX+"_closed",aI=a4.browser.msie&&!a4.support.opacity,ao=aI&&a4.browser.version<7,aB=aX+"_IE6",aN,aW,aK,aP,al,a2,ad,ac,ah,a3,a5,ax,aC,av,au,aL,aw,az,ar,aF,aJ,aG,aE,ag,an,a8,a6,aT,aH,am,ay=aX+"Element";am=a4.fn[ae]=a4[ae]=function(e,b){var f=this;if(!f[0]&&f.selector){return f}e=e||{};if(b){e.onComplete=b}if(!f[0]||f.selector===undefined){f=a4("<a/>");e.open=a7}f.each(function(){a4(this).data(ae,a4.extend({},a4(this).data(ae)||a1,e)).addClass(ay)});e.open&&a0(f[0]);return f};am.init=function(){var a="hover";a3=a4(aZ);aW=aa().attr({id:ae,"class":aI?aX+"IE":""});aN=aa("Overlay",ao?"position:absolute":"").hide();aK=aa("Wrapper");aP=aa("Content").append(a5=aa(aA,"width:0; height:0"),aC=aa("LoadingOverlay").add(aa("LoadingGraphic")),av=aa("Title"),au=aa("Current"),aw=aa("Next"),az=aa("Previous"),aL=aa("Slideshow"),ar=aa("Close"));aK.append(aa().append(aa("TopLeft"),al=aa("TopCenter"),aa("TopRight")),aa().append(a2=aa("MiddleLeft"),aP,ad=aa("MiddleRight")),aa().append(aa("BottomLeft"),ac=aa("BottomCenter"),aa("BottomRight"))).children().children().css({"float":"left"});ax=aa(a9,"position:absolute; width:9999px; visibility:hidden; display:none");a4("body").prepend(aN,aW.append(aK,ax));aP.children().hover(function(){a4(this).addClass(a)},function(){a4(this).removeClass(a)}).addClass(a);aF=al.height()+ac.height()+aP.outerHeight(a7)-aP.height();aJ=a2.width()+ad.width()+aP.outerWidth(a7)-aP.width();aG=a5.outerHeight(a7);aE=a5.outerWidth(a7);aW.css({"padding-bottom":aF,"padding-right":aJ}).hide();aw.click(am.next);az.click(am.prev);ar.click(am.close);aP.children().removeClass(a);a4("."+ay).live(aU,function(b){if(b.button!==0&&typeof b.button!=="undefined"||b.ctrlKey||b.shiftKey||b.altKey){return a7}else{a0(this);return a9}});aN.click(function(){a6.overlayClose&&am.close()});a4(document).bind("keydown",function(c){if(aT&&a6.escKey&&c.keyCode===27){c.preventDefault();am.close()}if(aT&&a6.arrowKey&&!aH&&ah[1]){if(c.keyCode===37&&(a8||a6.loop)){c.preventDefault();az.click()}else{if(c.keyCode===39&&(a8<ah.length-1||a6.loop)){c.preventDefault();aw.click()}}}})};am.remove=function(){aW.add(aN).remove();a4("."+ay).die(aU).removeData(ae).removeClass(ay)};am.position=function(m,k){function l(b){al[0].style.width=ac[0].style.width=aP[0].style.width=b.style.width;aC[0].style.height=aC[1].style.height=aP[0].style.height=a2[0].style.height=ad[0].style.height=b.style.height}var d,a=Math.max(a3.height()-a6.h-aG-aF,0)/2+a3.scrollTop(),j=Math.max(a3.width()-a6.w-aE-aJ,0)/2+a3.scrollLeft();d=aW.width()===a6.w+aE&&aW.height()===a6.h+aG?0:m;aK[0].style.width=aK[0].style.height="9999px";aW.dequeue().animate({width:a6.w+aE,height:a6.h+aG,top:a,left:j},{duration:d,complete:function(){l(this);aH=a9;aK[0].style.width=a6.w+aE+aJ+"px";aK[0].style.height=a6.h+aG+aF+"px";k&&k()},step:function(){l(this)}})};am.resize=function(a){if(aT){a=a||{};if(a.width){a6.w=aQ(a.width,ai)-aE-aJ}if(a.innerWidth){a6.w=aQ(a.innerWidth,ai)}a5.css({width:a6.w});if(a.height){a6.h=aQ(a.height,aj)-aG-aF}if(a.innerHeight){a6.h=aQ(a.innerHeight,aj)}if(!a.innerHeight&&!a.height){a=a5.wrapInner("<div style='overflow:auto'></div>").children();a6.h=a.height();a.replaceWith(a.children())}a5.css({height:a6.h});am.position(a6.transition===aS?0:a6.speed)}};am.prep=function(c){var a="hidden";function b(p){var j,k,h,l,f=ah.length,m=a6.loop;am.position(p,function(){function d(){aI&&aW[0].style.removeAttribute("filter")}if(aT){aI&&e&&a5.fadeIn(100);a6.iframe&&a4("<iframe frameborder=0"+(a6.scrolling?"":" scrolling='no'")+(aI?" allowtransparency='true'":"")+"/>").attr({src:a6.href,name:(new Date).getTime()}).appendTo(a5);a5.show();av.show().html(a6.title);if(f>1){au.html(a6.current.replace(/\{current\}/,a8+1).replace(/\{total\}/,f)).show();aw[m||a8<f-1?"show":"hide"]().html(a6.next);az[m||a8?"show":"hide"]().html(a6.previous);j=a8?ah[a8-1]:ah[f-1];h=a8<f-1?ah[a8+1]:ah[0];if(a6.slideshow){aL.show();a8===f-1&&!m&&aW.is("."+aX+"Slideshow_on")&&aL.click()}if(a6.preloading){l=a4(h).data(ae).href||h.href;k=a4(j).data(ae).href||j.href;if(aq(l)){a4("<img/>")[0].src=l}if(aq(k)){a4("<img/>")[0].src=k}}}aC.hide();a6.transition==="fade"?aW.fadeTo(g,1,function(){d()}):d();a3.bind(aM+aX,function(){am.position(0)});a4.event.trigger(at);a6.onComplete&&a6.onComplete.call(ag)}})}if(aT){var e,g=a6.transition===aS?0:a6.speed;a3.unbind(aM+aX);a5.remove();a5=aa(aA).html(c);a5.hide().appendTo(ax.show()).css({width:function(){a6.w=a6.w||a5.width();a6.w=a6.mw&&a6.mw<a6.w?a6.mw:a6.w;return a6.w}(),overflow:a6.scrolling?af:a}).css({height:function(){a6.h=a6.h||a5.height();a6.h=a6.mh&&a6.mh<a6.h?a6.mh:a6.h;return a6.h}()}).prependTo(aP);ax.hide();a4("#"+aX+"Photo").css({cssFloat:aS});ao&&a4("select").not(aW.find("select")).filter(function(){return this.style.visibility!==a}).css({visibility:a}).one(ak,function(){this.style.visibility="inherit"});a6.transition==="fade"?aW.fadeTo(g,0,function(){b(0)}):b(g)}};am.load=function(){var e,a,b,c=am.prep;aH=a7;ag=ah[a8];a6=a4.extend({},a4(ag).data(ae));aV();a4.event.trigger(ap);a6.onLoad&&a6.onLoad.call(ag);a6.h=a6.height?aQ(a6.height,aj)-aG-aF:a6.innerHeight&&aQ(a6.innerHeight,aj);a6.w=a6.width?aQ(a6.width,ai)-aE-aJ:a6.innerWidth&&aQ(a6.innerWidth,ai);a6.mw=a6.w;a6.mh=a6.h;if(a6.maxWidth){a6.mw=aQ(a6.maxWidth,ai)-aE-aJ;a6.mw=a6.w&&a6.w<a6.mw?a6.w:a6.mw}if(a6.maxHeight){a6.mh=aQ(a6.maxHeight,aj)-aG-aF;a6.mh=a6.h&&a6.h<a6.mh?a6.h:a6.mh}e=a6.href;aC.show();if(a6.inline){aa("InlineTemp").hide().insertBefore(a4(e)[0]).bind(ap+" "+ak,function(){a4(this).replaceWith(a5.children())});c(a4(e))}else{if(a6.iframe){c(" ")}else{if(a6.html){c(a6.html)}else{if(aq(e)){a=new Image;a.onload=function(){var d;a.onload=null;a.id=aX+"Photo";a4(a).css({margin:af,border:aS,display:"block",cssFloat:"left"});if(a6.scalePhotos){b=function(){a.height-=a.height*d;a.width-=a.width*d};if(a6.mw&&a.width>a6.mw){d=(a.width-a6.mw)/a.width;b()}if(a6.mh&&a.height>a6.mh){d=(a.height-a6.mh)/a.height;b()}}if(a6.h){a.style.marginTop=Math.max(a6.h-a.height,0)/2+"px"}setTimeout(function(){c(a)},1);ah[1]&&(a8<ah.length-1||a6.loop)&&a4(a).css({cursor:"pointer"}).click(am.next);if(aI){a.style.msInterpolationMode="bicubic"}};a.src=e}else{aa().appendTo(ax).load(e,function(f,g,d){c(g==="error"?"Request unsuccessful: "+d.statusText:this)})}}}}};am.next=function(){if(!aH){a8=a8<ah.length-1?a8+1:0;am.load()}};am.prev=function(){if(!aH){a8=a8?a8-1:ah.length-1;am.load()}};am.slideshow=function(){function h(){aL.text(a6.slideshowStop).bind(at,function(){a=setTimeout(am.next,a6.slideshowSpeed)}).bind(ap,function(){clearTimeout(a)}).one(aU,function(){c()});aW.removeClass(g+"off").addClass(g+aR)}var c,a,g=aX+"Slideshow_";aL.bind(aY,function(){aL.unbind();clearTimeout(a);aW.removeClass(g+"off "+g+aR)});c=function(){clearTimeout(a);aL.text(a6.slideshowStart).unbind(at+" "+ap).one(aU,function(){h();a=setTimeout(am.next,a6.slideshowSpeed)});aW.removeClass(g+aR).addClass(g+"off")};if(a6.slideshow&&ah[1]){a6.slideshowAuto?h():c()}};am.close=function(){if(aT){aT=a9;a4.event.trigger(ak);a6.onCleanup&&a6.onCleanup.call(ag);a3.unbind("."+aX+" ."+aB);aN.fadeTo("fast",0);aW.stop().fadeTo("fast",0,function(){aW.find("iframe").attr("src","about:blank");a5.remove();aW.add(aN).css({opacity:1,cursor:af}).hide();try{an.focus()}catch(a){}setTimeout(function(){a4.event.trigger(aY);a6.onClosed&&a6.onClosed.call(ag)},1)})}};am.element=function(){return a4(ag)};am.settings=a1;a4(am.init)})(jQuery,this);jQuery.ui||(function(j){var c=j.fn.remove,f=j.browser.mozilla&&(parseFloat(j.browser.version)<1.9);j.ui={version:"1.7.1",plugin:{add:function(n,k,o){var m=j.ui[n].prototype;for(var l in o){m.plugins[l]=m.plugins[l]||[];m.plugins[l].push([k,o[l]])}},call:function(l,m,o){var n=l.plugins[m];if(!n||!l.element[0].parentNode){return}for(var k=0;k<n.length;k++){if(l.options[n[k][0]]){n[k][1].apply(l.element,o)}}}},contains:function(l,k){return document.compareDocumentPosition?l.compareDocumentPosition(k)&16:l!==k&&l.contains(k)},hasScroll:function(k,m){if(j(k).css("overflow")=="hidden"){return false}var l=(m&&m=="left")?"scrollLeft":"scrollTop",n=false;if(k[l]>0){return true}k[l]=1;n=(k[l]>0);k[l]=0;return n},isOverAxis:function(m,l,k){return(m>l)&&(m<(l+k))},isOver:function(o,n,m,l,k,p){return j.ui.isOverAxis(o,m,k)&&j.ui.isOverAxis(n,l,p)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(f){var g=j.attr,e=j.fn.removeAttr,d="http://www.w3.org/2005/07/aaa",a=/^aria-/,h=/^wairole:/;j.attr=function(k,l,m){var n=m!==undefined;return(l=="role"?(n?g.call(this,k,l,"wairole:"+m):(g.apply(this,arguments)||"").replace(h,"")):(a.test(l)?(n?k.setAttributeNS(d,l.replace(a,"aaa:"),m):g.call(this,k,l.replace(a,"aaa:"))):g.apply(this,arguments)))};j.fn.removeAttr=function(k){return(a.test(k)?this.each(function(){this.removeAttributeNS(d,k.replace(a,""))}):e.call(this,k))}}j.fn.extend({remove:function(){j("*",this).add(this).each(function(){j(this).triggerHandler("remove")});return c.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var k;if((j.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){k=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(j.curCSS(this,"position",1))&&(/(auto|scroll)/).test(j.curCSS(this,"overflow",1)+j.curCSS(this,"overflow-y",1)+j.curCSS(this,"overflow-x",1))}).eq(0)}else{k=this.parents().filter(function(){return(/(auto|scroll)/).test(j.curCSS(this,"overflow",1)+j.curCSS(this,"overflow-y",1)+j.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!k.length?j(document):k}});j.extend(j.expr[":"],{data:function(m,k,l){return !!j.data(m,l[3])},focusable:function(l){var m=l.nodeName.toLowerCase(),k=j.attr(l,"tabindex");return(/input|select|textarea|button|object/.test(m)?!l.disabled:"a"==m||"area"==m?l.href||!isNaN(k):!isNaN(k))&&!j(l)["area"==m?"parents":"closest"](":hidden").length},tabbable:function(k){var l=j.attr(k,"tabindex");return(isNaN(l)||l>=0)&&j(k).is(":focusable")}});function b(k,l,m,p){function n(q){var r=j[k][l][q]||[];return(typeof r=="string"?r.split(/,?\s+/):r)}var o=n("getter");if(p.length==1&&typeof p[0]=="string"){o=o.concat(n("getterSetter"))}return(j.inArray(m,o)!=-1)}j.widget=function(l,m){var k=l.split(".")[0];l=l.split(".")[1];j.fn[l]=function(o){var p=(typeof o=="string"),q=Array.prototype.slice.call(arguments,1);if(p&&o.substring(0,1)=="_"){return this}if(p&&b(k,l,o,q)){var n=j.data(this[0],l);return(n?n[o].apply(n,q):undefined)}return this.each(function(){var r=j.data(this,l);(!r&&!p&&j.data(this,l,new j[k][l](this,o))._init());(r&&p&&j.isFunction(r[o])&&r[o].apply(r,q))})};j[k]=j[k]||{};j[k][l]=function(p,o){var n=this;this.namespace=k;this.widgetName=l;this.widgetEventPrefix=j[k][l].eventPrefix||l;this.widgetBaseClass=k+"-"+l;this.options=j.extend({},j.widget.defaults,j[k][l].defaults,j.metadata&&j.metadata.get(p)[l],o);this.element=j(p).bind("setData."+l,function(r,q,s){if(r.target==p){return n._setData(q,s)}}).bind("getData."+l,function(r,q){if(r.target==p){return n._getData(q)}}).bind("remove",function(){return n.destroy()})};j[k][l].prototype=j.extend({},j.widget.prototype,m);j[k][l].getterSetter="option"};j.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(k,n){var m=k,l=this;if(typeof k=="string"){if(n===undefined){return this._getData(k)}m={};m[k]=n}j.each(m,function(o,p){l._setData(o,p)})},_getData:function(k){return this.options[k]},_setData:function(k,l){this.options[k]=l;if(k=="disabled"){this.element[l?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",l)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(k,n,q){var p=this.options[k],m=(k==this.widgetEventPrefix?k:this.widgetEventPrefix+k);n=j.Event(n);n.type=m;if(n.originalEvent){for(var l=j.event.props.length,o;l;){o=j.event.props[--l];n[o]=n.originalEvent[o]}}this.element.trigger(n,q);return !(j.isFunction(p)&&p.call(this.element[0],n,q)===false||n.isDefaultPrevented())}};j.widget.defaults={disabled:false};j.ui.mouse={_mouseInit:function(){var k=this;this.element.bind("mousedown."+this.widgetName,function(l){return k._mouseDown(l)}).bind("click."+this.widgetName,function(l){if(k._preventClickEvent){k._preventClickEvent=false;l.stopImmediatePropagation();return false}});if(j.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(j.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(m){m.originalEvent=m.originalEvent||{};if(m.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(m));this._mouseDownEvent=m;var k=this,n=(m.which==1),l=(typeof this.options.cancel=="string"?j(m.target).parents().add(m.target).filter(this.options.cancel).length:false);if(!n||l||!this._mouseCapture(m)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){k.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(m)&&this._mouseDelayMet(m)){this._mouseStarted=(this._mouseStart(m)!==false);if(!this._mouseStarted){m.preventDefault();return true}}this._mouseMoveDelegate=function(o){return k._mouseMove(o)};this._mouseUpDelegate=function(o){return k._mouseUp(o)};j(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(j.browser.safari||m.preventDefault());m.originalEvent.mouseHandled=true;return true},_mouseMove:function(k){if(j.browser.msie&&!k.button){return this._mouseUp(k)}if(this._mouseStarted){this._mouseDrag(k);return k.preventDefault()}if(this._mouseDistanceMet(k)&&this._mouseDelayMet(k)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,k)!==false);(this._mouseStarted?this._mouseDrag(k):this._mouseUp(k))}return !this._mouseStarted},_mouseUp:function(k){j(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(k.target==this._mouseDownEvent.target);this._mouseStop(k)}return false},_mouseDistanceMet:function(k){return(Math.max(Math.abs(this._mouseDownEvent.pageX-k.pageX),Math.abs(this._mouseDownEvent.pageY-k.pageY))>=this.options.distance)},_mouseDelayMet:function(k){return this.mouseDelayMet},_mouseStart:function(k){},_mouseDrag:function(k){},_mouseStop:function(k){},_mouseCapture:function(k){return true}};j.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function(a){a.widget("ui.slider",a.extend({},a.ui.mouse,{_init:function(){var b=this,c=this.options;this._keySliding=false;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");this.range=a([]);if(c.range){if(c.range===true){this.range=a("<div></div>");if(!c.values){c.values=[this._valueMin(),this._valueMin()]}if(c.values.length&&c.values.length!=2){c.values=[c.values[0],c.values[0]]}}else{this.range=a("<div></div>")}this.range.appendTo(this.element).addClass("ui-slider-range");if(c.range=="min"||c.range=="max"){this.range.addClass("ui-slider-range-"+c.range)}this.range.addClass("ui-widget-header")}if(a(".ui-slider-handle",this.element).length==0){a('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle")}if(c.values&&c.values.length){while(a(".ui-slider-handle",this.element).length<c.values.length){a('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle")}}this.handles=a(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(d){d.preventDefault()}).hover(function(){a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")}).focus(function(){a(".ui-slider .ui-state-focus").removeClass("ui-state-focus");a(this).addClass("ui-state-focus")}).blur(function(){a(this).removeClass("ui-state-focus")});this.handles.each(function(d){a(this).data("index.ui-slider-handle",d)});this.handles.keydown(function(g){var j=true;var h=a(this).data("index.ui-slider-handle");if(b.options.disabled){return}switch(g.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:j=false;if(!b._keySliding){b._keySliding=true;a(this).addClass("ui-state-active");b._start(g,h)}break}var f,e,d=b._step();if(b.options.values&&b.options.values.length){f=e=b.values(h)}else{f=e=b.value()}switch(g.keyCode){case a.ui.keyCode.HOME:e=b._valueMin();break;case a.ui.keyCode.END:e=b._valueMax();break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(f==b._valueMax()){return}e=f+d;break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(f==b._valueMin()){return}e=f-d;break}b._slide(g,h,e);return j}).keyup(function(d){var e=a(this).data("index.ui-slider-handle");if(b._keySliding){b._stop(d,e);b._change(d,e);b._keySliding=false;a(this).removeClass("ui-state-active")}});this._refreshValue()},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy()},_mouseCapture:function(f){var j=this.options;if(j.disabled){return false}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();var k={x:f.pageX,y:f.pageY};var b=this._normValueFromMouse(k);var h=this._valueMax()-this._valueMin()+1,d;var l=this,e;this.handles.each(function(m){var n=Math.abs(b-l.values(m));if(h>n){h=n;d=a(this);e=m}});if(j.range==true&&this.values(1)==j.min){d=a(this.handles[++e])}this._start(f,e);l._handleIndex=e;d.addClass("ui-state-active").focus();var c=d.offset();var g=!a(f.target).parents().andSelf().is(".ui-slider-handle");this._clickOffset=g?{left:0,top:0}:{left:f.pageX-c.left-(d.width()/2),top:f.pageY-c.top-(d.height()/2)-(parseInt(d.css("borderTopWidth"),10)||0)-(parseInt(d.css("borderBottomWidth"),10)||0)+(parseInt(d.css("marginTop"),10)||0)};b=this._normValueFromMouse(k);this._slide(f,e,b);return true},_mouseStart:function(b){return true},_mouseDrag:function(c){var b={x:c.pageX,y:c.pageY};var d=this._normValueFromMouse(b);this._slide(c,this._handleIndex,d);return false},_mouseStop:function(b){this.handles.removeClass("ui-state-active");this._stop(b,this._handleIndex);this._change(b,this._handleIndex);this._handleIndex=null;this._clickOffset=null;return false},_detectOrientation:function(){this.orientation=this.options.orientation=="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(g){var d,f;if("horizontal"==this.orientation){d=this.elementSize.width;f=g.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{d=this.elementSize.height;f=g.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}var h=(f/d);if(h>1){h=1}if(h<0){h=0}if("vertical"==this.orientation){h=1-h}var j=this._valueMax()-this._valueMin(),c=h*j,e=c%this.options.step,b=this._valueMin()+c-e;if(e>(this.options.step/2)){b+=this.options.step}return parseFloat(b.toFixed(5))},_start:function(b,c){var d={handle:this.handles[c],value:this.value()};if(this.options.values&&this.options.values.length){d.value=this.values(c);d.values=this.values()}this._trigger("start",b,d)},_slide:function(f,g,e){var b=this.handles[g];if(this.options.values&&this.options.values.length){var d=this.values(g?0:1);if((g==0&&e>=d)||(g==1&&e<=d)){e=d}if(e!=this.values(g)){var h=this.values();h[g]=e;var c=this._trigger("slide",f,{handle:this.handles[g],value:e,values:h});var d=this.values(g?0:1);if(c!==false){this.values(g,e,(f.type=="mousedown"&&this.options.animate),true)}}}else{if(e!=this.value()){var c=this._trigger("slide",f,{handle:this.handles[g],value:e});if(c!==false){this._setData("value",e,(f.type=="mousedown"&&this.options.animate))}}}},_stop:function(b,c){var d={handle:this.handles[c],value:this.value()};if(this.options.values&&this.options.values.length){d.value=this.values(c);d.values=this.values()}this._trigger("stop",b,d)},_change:function(b,c){var d={handle:this.handles[c],value:this.value()};if(this.options.values&&this.options.values.length){d.value=this.values(c);d.values=this.values()}this._trigger("change",b,d)},value:function(b){if(arguments.length){this._setData("value",b);this._change(null,0)}return this._value()},values:function(c,e,d,b){if(arguments.length>1){this.options.values[c]=e;this._refreshValue(d);if(!b){this._change(null,c)}}if(arguments.length){if(this.options.values&&this.options.values.length){return this._values(c)}else{return this.value()}}else{return this._values()}},_setData:function(b,c,d){a.widget.prototype._setData.apply(this,arguments);switch(b){case"orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue(d);break;case"value":this._refreshValue(d);break}},_step:function(){var b=this.options.step;return b},_value:function(){var b=this.options.value;if(b<this._valueMin()){b=this._valueMin()}if(b>this._valueMax()){b=this._valueMax()}return b},_values:function(b){if(arguments.length){var c=this.options.values[b];if(c<this._valueMin()){c=this._valueMin()}if(c>this._valueMax()){c=this._valueMax()}return c}else{return this.options.values}},_valueMin:function(){var b=this.options.min;return b},_valueMax:function(){var b=this.options.max;return b},_refreshValue:function(f){var g=this.options.range,k=this.options,d=this;if(this.options.values&&this.options.values.length){var h,m;this.handles.each(function(n,q){var o=(d.values(n)-d._valueMin())/(d._valueMax()-d._valueMin())*100;var p={};p[d.orientation=="horizontal"?"left":"bottom"]=o+"%";a(this).stop(1,1)[f?"animate":"css"](p,k.animate);if(d.options.range===true){if(d.orientation=="horizontal"){(n==0)&&d.range.stop(1,1)[f?"animate":"css"]({left:o+"%"},k.animate);(n==1)&&d.range[f?"animate":"css"]({width:(o-lastValPercent)+"%"},{queue:false,duration:k.animate})}else{(n==0)&&d.range.stop(1,1)[f?"animate":"css"]({bottom:(o)+"%"},k.animate);(n==1)&&d.range[f?"animate":"css"]({height:(o-lastValPercent)+"%"},{queue:false,duration:k.animate})}}lastValPercent=o})}else{var j=this.value(),c=this._valueMin(),e=this._valueMax(),b=e!=c?(j-c)/(e-c)*100:0;var l={};l[d.orientation=="horizontal"?"left":"bottom"]=b+"%";this.handle.stop(1,1)[f?"animate":"css"](l,k.animate);(g=="min")&&(this.orientation=="horizontal")&&this.range.stop(1,1)[f?"animate":"css"]({width:b+"%"},k.animate);(g=="max")&&(this.orientation=="horizontal")&&this.range[f?"animate":"css"]({width:(100-b)+"%"},{queue:false,duration:k.animate});(g=="min")&&(this.orientation=="vertical")&&this.range.stop(1,1)[f?"animate":"css"]({height:b+"%"},k.animate);(g=="max")&&(this.orientation=="vertical")&&this.range[f?"animate":"css"]({height:(100-b)+"%"},{queue:false,duration:k.animate})}}}));a.extend(a.ui.slider,{getter:"value values",version:"1.7.1",eventPrefix:"slide",defaults:{animate:false,delay:0,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null}})})(jQuery);
