/*
 * jQuery JavaScript Library v1.4.4
 * http://jquery.com/
 *
 * Copyright 2010, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2010, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Thu Nov 11 19:04:53 2010 -0500
 */
(function(az,aD){function k(t,c,E){if(E===aD&&t.nodeType===1){E=t.getAttribute("data-"+c);if(typeof E==="string"){try{E=E==="true"?true:E==="false"?false:E==="null"?null:!ad.isNaN(E)?parseFloat(E):ae.test(E)?ad.parseJSON(E):E}catch(B){}ad.data(t,c,E)}else{E=aD}}return E}function ao(){return false}function M(){return true}function a1(t,c,B){B[0].type=t;return ad.event.handle.apply(c,B)}function F(aa){var X,W,V,U,T,P,S,E,Z,c,B,t=[];U=[];T=ad.data(this,this.nodeType?"events":"__events__");if(typeof T==="function"){T=T.events}if(!(aa.liveFired===this||!T||!T.live||aa.button&&aa.type==="click")){if(aa.namespace){B=RegExp("(^|\\.)"+aa.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")}aa.liveFired=this;var Y=T.live.slice(0);for(S=0;S<Y.length;S++){T=Y[S];T.origType.replace(al,"")===aa.type?U.push(T.selector):Y.splice(S--,1)}U=ad(aa.target).closest(U,aa.currentTarget);E=0;for(Z=U.length;E<Z;E++){c=U[E];for(S=0;S<Y.length;S++){T=Y[S];if(c.selector===T.selector&&(!B||B.test(T.namespace))){P=c.elem;V=null;if(T.preType==="mouseenter"||T.preType==="mouseleave"){aa.type=T.preType;V=ad(aa.relatedTarget).closest(T.selector)[0]}if(!V||V!==P){t.push({elem:P,handleObj:T,level:c.level})}}}}E=0;for(Z=t.length;E<Z;E++){U=t[E];if(W&&U.level>W){break}aa.currentTarget=U.elem;aa.data=U.handleObj.data;aa.handleObj=U.handleObj;B=U.handleObj.origHandler.apply(U.elem,arguments);if(B===false||aa.isPropagationStopped()){W=U.level;if(B===false){X=false}if(aa.isImmediatePropagationStopped()){break}}}return X}}function ak(t,c){return(t&&t!=="*"?t+".":"")+c.replace(o,"`").replace(a5,"&")}function aO(t,c,E){if(ad.isFunction(c)){return ad.grep(t,function(S,P){return !!c.call(S,P,S)===E})}else{if(c.nodeType){return ad.grep(t,function(P){return P===c===E})}else{if(typeof c==="string"){var B=ad.grep(t,function(P){return P.nodeType===1});if(aT.test(c)){return ad.filter(c,B,!E)}else{c=ad.filter(c,B)}}}}return ad.grep(t,function(P){return ad.inArray(P,c)>=0===E})}function aA(t,c){var B=0;c.each(function(){if(this.nodeName===(t[B]&&t[B].nodeName)){var T=ad.data(t[B++]),S=ad.data(this,T);if(T=T&&T.events){delete S.handle;S.events={};for(var P in T){for(var E in T[P]){ad.event.add(this,P,T[P][E],T[P][E].data)}}}}})}function aG(t,c){c.src?ad.ajax({url:c.src,async:false,dataType:"script"}):ad.globalEval(c.text||c.textContent||c.innerHTML||"");c.parentNode&&c.parentNode.removeChild(c)}function ac(t,c,E){var B=c==="width"?t.offsetWidth:t.offsetHeight;if(E==="border"){return B}ad.each(c==="width"?ah:I,function(){E||(B-=parseFloat(ad.css(t,"padding"+this))||0);if(E==="margin"){B+=parseFloat(ad.css(t,"margin"+this))||0}else{B-=parseFloat(ad.css(t,"border"+this+"Width"))||0}});return B}function x(t,c,E,B){if(ad.isArray(c)&&c.length){ad.each(c,function(S,P){E||r.test(t)?B(t,P):x(t+"["+(typeof P==="object"||ad.isArray(P)?S:"")+"]",P,E,B)})}else{if(!E&&c!=null&&typeof c==="object"){ad.isEmptyObject(c)?B(t,""):ad.each(c,function(S,P){x(t+"["+S+"]",P,E,B)})}else{B(t,c)}}}function aq(t,c){var B={};ad.each(D.concat.apply([],D.slice(0,c)),function(){B[this]=t});return B}function n(t){if(!h[t]){var c=ad("<"+t+">").appendTo("body"),B=c.css("display");c.remove();if(B==="none"||B===""){B="block"}h[t]=B}return h[t]}function aY(c){return ad.isWindow(c)?c:c.nodeType===9?c.defaultView||c.parentWindow:false}var K=az.document,ad=function(){function bl(){if(!bk.isReady){try{K.documentElement.doScroll("left")}catch(bm){setTimeout(bl,1);return}bk.ready()}}var bk=function(bm,bn){return new bk.fn.init(bm,bn)},bj=az.jQuery,bi=az.$,bh,bf=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,bc=/\S/,bd=/^\s+/,a9=/\s+$/,V=/\W/,ab=/\d/,a8=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,aa=/^[\],:{}\s]*$/,T=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,W=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,U=/(?:^|:|,)(?:\s*\[)+/g,P=/(webkit)[ \/]([\w.]+)/,bg=/(opera)(?:.*version)?[ \/]([\w.]+)/,be=/(msie) ([\w.]+)/,ba=/(mozilla)(?:.*? rv:([\w.]+))?/,bb=navigator.userAgent,a7=false,a6=[],Y,S=Object.prototype.toString,X=Object.prototype.hasOwnProperty,E=Array.prototype.push,B=Array.prototype.slice,t=String.prototype.trim,Z=Array.prototype.indexOf,c={};bk.fn=bk.prototype={init:function(bn,bp){var bm,bq,bo;if(!bn){return this}if(bn.nodeType){this.context=this[0]=bn;this.length=1;return this}if(bn==="body"&&!bp&&K.body){this.context=K;this[0]=K.body;this.selector="body";this.length=1;return this}if(typeof bn==="string"){if((bm=bf.exec(bn))&&(bm[1]||!bp)){if(bm[1]){bo=bp?bp.ownerDocument||bp:K;if(bq=a8.exec(bn)){if(bk.isPlainObject(bp)){bn=[K.createElement(bq[1])];bk.fn.attr.call(bn,bp,true)}else{bn=[bo.createElement(bq[1])]}}else{bq=bk.buildFragment([bm[1]],[bo]);bn=(bq.cacheable?bq.fragment.cloneNode(true):bq.fragment).childNodes}return bk.merge(this,bn)}else{if((bq=K.getElementById(bm[2]))&&bq.parentNode){if(bq.id!==bm[2]){return bh.find(bn)}this.length=1;this[0]=bq}this.context=K;this.selector=bn;return this}}else{if(!bp&&!V.test(bn)){this.selector=bn;this.context=K;bn=K.getElementsByTagName(bn);return bk.merge(this,bn)}else{return !bp||bp.jquery?(bp||bh).find(bn):bk(bp).find(bn)}}}else{if(bk.isFunction(bn)){return bh.ready(bn)}}if(bn.selector!==aD){this.selector=bn.selector;this.context=bn.context}return bk.makeArray(bn,this)},selector:"",jquery:"1.4.4",length:0,size:function(){return this.length},toArray:function(){return B.call(this,0)},get:function(bm){return bm==null?this.toArray():bm<0?this.slice(bm)[0]:this[bm]},pushStack:function(bn,bo,bm){var bp=bk();bk.isArray(bn)?E.apply(bp,bn):bk.merge(bp,bn);bp.prevObject=this;bp.context=this.context;if(bo==="find"){bp.selector=this.selector+(this.selector?" ":"")+bm}else{if(bo){bp.selector=this.selector+"."+bo+"("+bm+")"}}return bp},each:function(bm,bn){return bk.each(this,bm,bn)},ready:function(bm){bk.bindReady();if(bk.isReady){bm.call(K,bk)}else{a6&&a6.push(bm)}return this},eq:function(bm){return bm===-1?this.slice(bm):this.slice(bm,+bm+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(B.apply(this,arguments),"slice",B.call(arguments).join(","))},map:function(bm){return this.pushStack(bk.map(this,function(bo,bn){return bm.call(bo,bn,bo)}))},end:function(){return this.prevObject||bk(null)},push:E,sort:[].sort,splice:[].splice};bk.fn.init.prototype=bk.fn;bk.extend=bk.fn.extend=function(){var bm,bu,br,bo,bq,bs=arguments[0]||{},bp=1,bn=arguments.length,bt=false;if(typeof bs==="boolean"){bt=bs;bs=arguments[1]||{};bp=2}if(typeof bs!=="object"&&!bk.isFunction(bs)){bs={}}if(bn===bp){bs=this;--bp}for(;bp<bn;bp++){if((bm=arguments[bp])!=null){for(bu in bm){br=bs[bu];bo=bm[bu];if(bs!==bo){if(bt&&bo&&(bk.isPlainObject(bo)||(bq=bk.isArray(bo)))){if(bq){bq=false;br=br&&bk.isArray(br)?br:[]}else{br=br&&bk.isPlainObject(br)?br:{}}bs[bu]=bk.extend(bt,br,bo)}else{if(bo!==aD){bs[bu]=bo}}}}}}return bs};bk.extend({noConflict:function(bm){az.$=bi;if(bm){az.jQuery=bj}return bk},isReady:false,readyWait:1,ready:function(bn){bn===true&&bk.readyWait--;if(!bk.readyWait||bn!==true&&!bk.isReady){if(!K.body){return setTimeout(bk.ready,1)}bk.isReady=true;if(!(bn!==true&&--bk.readyWait>0)){if(a6){var bo=0,bm=a6;for(a6=null;bn=bm[bo++];){bn.call(K,bk)}bk.fn.trigger&&bk(K).trigger("ready").unbind("ready")}}}},bindReady:function(){if(!a7){a7=true;if(K.readyState==="complete"){return setTimeout(bk.ready,1)}if(K.addEventListener){K.addEventListener("DOMContentLoaded",Y,false);az.addEventListener("load",bk.ready,false)}else{if(K.attachEvent){K.attachEvent("onreadystatechange",Y);az.attachEvent("onload",bk.ready);var bm=false;try{bm=az.frameElement==null}catch(bn){}K.documentElement.doScroll&&bm&&bl()}}}},isFunction:function(bm){return bk.type(bm)==="function"},isArray:Array.isArray||function(bm){return bk.type(bm)==="array"},isWindow:function(bm){return bm&&typeof bm==="object"&&"setInterval" in bm},isNaN:function(bm){return bm==null||!ab.test(bm)||isNaN(bm)},type:function(bm){return bm==null?String(bm):c[S.call(bm)]||"object"},isPlainObject:function(bm){if(!bm||bk.type(bm)!=="object"||bm.nodeType||bk.isWindow(bm)){return false}if(bm.constructor&&!X.call(bm,"constructor")&&!X.call(bm.constructor.prototype,"isPrototypeOf")){return false}for(var bn in bm){}return bn===aD||X.call(bm,bn)},isEmptyObject:function(bm){for(var bn in bm){return false}return true},error:function(bm){throw bm},parseJSON:function(bm){if(typeof bm!=="string"||!bm){return null}bm=bk.trim(bm);if(aa.test(bm.replace(T,"@").replace(W,"]").replace(U,""))){return az.JSON&&az.JSON.parse?az.JSON.parse(bm):(new Function("return "+bm))()}else{bk.error("Invalid JSON: "+bm)}},noop:function(){},globalEval:function(bn){if(bn&&bc.test(bn)){var bo=K.getElementsByTagName("head")[0]||K.documentElement,bm=K.createElement("script");bm.type="text/javascript";if(bk.support.scriptEval){bm.appendChild(K.createTextNode(bn))}else{bm.text=bn}bo.insertBefore(bm,bo.firstChild);bo.removeChild(bm)}},nodeName:function(bm,bn){return bm.nodeName&&bm.nodeName.toUpperCase()===bn.toUpperCase()},each:function(bo,br,bn){var bs,bp=0,bq=bo.length,bm=bq===aD||bk.isFunction(bo);if(bn){if(bm){for(bs in bo){if(br.apply(bo[bs],bn)===false){break}}}else{for(;bp<bq;){if(br.apply(bo[bp++],bn)===false){break}}}}else{if(bm){for(bs in bo){if(br.call(bo[bs],bs,bo[bs])===false){break}}}else{for(bn=bo[0];bp<bq&&br.call(bn,bp,bn)!==false;bn=bo[++bp]){}}}return bo},trim:t?function(bm){return bm==null?"":t.call(bm)}:function(bm){return bm==null?"":bm.toString().replace(bd,"").replace(a9,"")},makeArray:function(bn,bo){var bm=bo||[];if(bn!=null){var bp=bk.type(bn);bn.length==null||bp==="string"||bp==="function"||bp==="regexp"||bk.isWindow(bn)?E.call(bm,bn):bk.merge(bm,bn)}return bm},inArray:function(bn,bo){if(bo.indexOf){return bo.indexOf(bn)}for(var bm=0,bp=bo.length;bm<bp;bm++){if(bo[bm]===bn){return bm}}return -1},merge:function(bn,bp){var bm=bn.length,bq=0;if(typeof bp.length==="number"){for(var bo=bp.length;bq<bo;bq++){bn[bm++]=bp[bq]}}else{for(;bp[bq]!==aD;){bn[bm++]=bp[bq++]}}bn.length=bm;return bn},grep:function(bo,br,bn){var bs=[],bp;bn=!!bn;for(var bq=0,bm=bo.length;bq<bm;bq++){bp=!!br(bo[bq],bq);bn!==bp&&bs.push(bo[bq])}return bs},map:function(bo,br,bn){for(var bs=[],bp,bq=0,bm=bo.length;bq<bm;bq++){bp=br(bo[bq],bq,bn);if(bp!=null){bs[bs.length]=bp}}return bs.concat.apply([],bs)},guid:1,proxy:function(bn,bo,bm){if(arguments.length===2){if(typeof bo==="string"){bm=bn;bn=bm[bo];bo=aD}else{if(bo&&!bk.isFunction(bo)){bm=bo;bo=aD}}}if(!bo&&bn){bo=function(){return bn.apply(bm||this,arguments)}}if(bn){bo.guid=bn.guid=bn.guid||bo.guid||bk.guid++}return bo},access:function(bo,br,bn,bt,bp,bq){var bm=bo.length;if(typeof br==="object"){for(var bs in br){bk.access(bo,bs,br[bs],bt,bp,bn)}return bo}if(bn!==aD){bt=!bq&&bt&&bk.isFunction(bn);for(bs=0;bs<bm;bs++){bp(bo[bs],br,bt?bn.call(bo[bs],bs,bp(bo[bs],br)):bn,bq)}return bo}return bm?bp(bo[0],br):aD},now:function(){return(new Date).getTime()},uaMatch:function(bm){bm=bm.toLowerCase();bm=P.exec(bm)||bg.exec(bm)||be.exec(bm)||bm.indexOf("compatible")<0&&ba.exec(bm)||[];return{browser:bm[1]||"",version:bm[2]||"0"}},browser:{}});bk.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(bm,bn){c["[object "+bn+"]"]=bn.toLowerCase()});bb=bk.uaMatch(bb);if(bb.browser){bk.browser[bb.browser]=true;bk.browser.version=bb.version}if(bk.browser.webkit){bk.browser.safari=true}if(Z){bk.inArray=function(bm,bn){return Z.call(bn,bm)}}if(!/\s/.test("\u00a0")){bd=/^[\s\xA0]+/;a9=/[\s\xA0]+$/}bh=bk(K);if(K.addEventListener){Y=function(){K.removeEventListener("DOMContentLoaded",Y,false);bk.ready()}}else{if(K.attachEvent){Y=function(){if(K.readyState==="complete"){K.detachEvent("onreadystatechange",Y);bk.ready()}}}}return az.jQuery=az.$=bk}();(function(){ad.support={};var X=K.documentElement,V=K.createElement("script"),U=K.createElement("div"),T="script"+ad.now();U.style.display="none";U.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var S=U.getElementsByTagName("*"),P=U.getElementsByTagName("a")[0],B=K.createElement("select"),E=B.appendChild(K.createElement("option"));if(!(!S||!S.length||!P)){ad.support={leadingWhitespace:U.firstChild.nodeType===3,tbody:!U.getElementsByTagName("tbody").length,htmlSerialize:!!U.getElementsByTagName("link").length,style:/red/.test(P.getAttribute("style")),hrefNormalized:P.getAttribute("href")==="/a",opacity:/^0.55$/.test(P.style.opacity),cssFloat:!!P.style.cssFloat,checkOn:U.getElementsByTagName("input")[0].value==="on",optSelected:E.selected,deleteExpando:true,optDisabled:false,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableHiddenOffsets:true};B.disabled=true;ad.support.optDisabled=!E.disabled;V.type="text/javascript";try{V.appendChild(K.createTextNode("window."+T+"=1;"))}catch(t){}X.insertBefore(V,X.firstChild);if(az[T]){ad.support.scriptEval=true;delete az[T]}try{delete V.test}catch(W){ad.support.deleteExpando=false}X.removeChild(V);if(U.attachEvent&&U.fireEvent){U.attachEvent("onclick",function c(){ad.support.noCloneEvent=false;U.detachEvent("onclick",c)});U.cloneNode(true).fireEvent("onclick")}U=K.createElement("div");U.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";X=K.createDocumentFragment();X.appendChild(U.firstChild);ad.support.checkClone=X.cloneNode(true).cloneNode(true).lastChild.checked;ad(function(){var Z=K.createElement("div");Z.style.width=Z.style.paddingLeft="1px";K.body.appendChild(Z);ad.boxModel=ad.support.boxModel=Z.offsetWidth===2;if("zoom" in Z.style){Z.style.display="inline";Z.style.zoom=1;ad.support.inlineBlockNeedsLayout=Z.offsetWidth===2;Z.style.display="";Z.innerHTML="<div style='width:4px;'></div>";ad.support.shrinkWrapBlocks=Z.offsetWidth!==2}Z.innerHTML="<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>";var Y=Z.getElementsByTagName("td");ad.support.reliableHiddenOffsets=Y[0].offsetHeight===0;Y[0].style.display="";Y[1].style.display="none";ad.support.reliableHiddenOffsets=ad.support.reliableHiddenOffsets&&Y[0].offsetHeight===0;Z.innerHTML="";K.body.removeChild(Z).style.display="none"});X=function(Z){var Y=K.createElement("div");Z="on"+Z;var aa=Z in Y;if(!aa){Y.setAttribute(Z,"return;");aa=typeof Y[Z]==="function"}return aa};ad.support.submitBubbles=X("submit");ad.support.changeBubbles=X("change");X=V=U=S=P=null}})();var a4={},ae=/^(?:\{.*\}|\[.*\])$/;ad.extend({cache:{},uuid:0,expando:"jQuery"+ad.now(),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},data:function(t,c,S){if(ad.acceptData(t)){t=t==az?a4:t;var P=t.nodeType,E=P?t[ad.expando]:null,B=ad.cache;if(!(P&&!E&&typeof c==="string"&&S===aD)){if(P){E||(t[ad.expando]=E=++ad.uuid)}else{B=t}if(typeof c==="object"){if(P){B[E]=ad.extend(B[E],c)}else{ad.extend(B,c)}}else{if(P&&!B[E]){B[E]={}}}t=P?B[E]:B;if(S!==aD){t[c]=S}return typeof c==="string"?t[c]:t}}},removeData:function(B,c){if(ad.acceptData(B)){B=B==az?a4:B;var T=B.nodeType,S=T?B[ad.expando]:B,P=ad.cache,E=T?P[S]:S;if(c){if(E){delete E[c];T&&ad.isEmptyObject(E)&&ad.removeData(B)}}else{if(T&&ad.support.deleteExpando){delete B[ad.expando]}else{if(B.removeAttribute){B.removeAttribute(ad.expando)}else{if(T){delete P[S]}else{for(var t in B){delete B[t]}}}}}}},acceptData:function(t){if(t.nodeName){var c=ad.noData[t.nodeName.toLowerCase()];if(c){return !(c===true||t.getAttribute("classid")!==c)}}return true}});ad.fn.extend({data:function(B,c){var U=null;if(typeof B==="undefined"){if(this.length){var T=this[0].attributes,S;U=ad.data(this[0]);for(var P=0,t=T.length;P<t;P++){S=T[P].name;if(S.indexOf("data-")===0){S=S.substr(5);k(this[0],S,U[S])}}}return U}else{if(typeof B==="object"){return this.each(function(){ad.data(this,B)})}}var E=B.split(".");E[1]=E[1]?"."+E[1]:"";if(c===aD){U=this.triggerHandler("getData"+E[1]+"!",[E[0]]);if(U===aD&&this.length){U=ad.data(this[0],B);U=k(this[0],B,U)}return U===aD&&E[1]?this.data(E[0]):U}else{return this.each(function(){var W=ad(this),V=[E[0],c];W.triggerHandler("setData"+E[1]+"!",V);ad.data(this,B,c);W.triggerHandler("changeData"+E[1]+"!",V)})}},removeData:function(c){return this.each(function(){ad.removeData(this,c)})}});ad.extend({queue:function(t,c,E){if(t){c=(c||"fx")+"queue";var B=ad.data(t,c);if(!E){return B||[]}if(!B||ad.isArray(E)){B=ad.data(t,c,ad.makeArray(E))}else{B.push(E)}return B}},dequeue:function(t,c){c=c||"fx";var E=ad.queue(t,c),B=E.shift();if(B==="inprogress"){B=E.shift()}if(B){c==="fx"&&E.unshift("inprogress");B.call(t,function(){ad.dequeue(t,c)})}}});ad.fn.extend({queue:function(t,c){if(typeof t!=="string"){c=t;t="fx"}if(c===aD){return ad.queue(this[0],t)}return this.each(function(){var B=ad.queue(this,t,c);t==="fx"&&B[0]!=="inprogress"&&ad.dequeue(this,t)})},dequeue:function(c){return this.each(function(){ad.dequeue(this,c)})},delay:function(t,c){t=ad.fx?ad.fx.speeds[t]||t:t;c=c||"fx";return this.queue(c,function(){var B=this;setTimeout(function(){ad.dequeue(B,c)},t)})},clearQueue:function(c){return this.queue(c||"fx",[])}});var aS=/[\n\t]/g,aw=/\s+/,e=/\r/g,aV=/^(?:href|src|style)$/,aI=/^(?:button|input)$/i,aj=/^(?:button|input|object|select|textarea)$/i,J=/^a(?:rea)?$/i,aF=/^(?:radio|checkbox)$/i;ad.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};ad.fn.extend({attr:function(t,c){return ad.access(this,t,c,true,ad.attr)},removeAttr:function(c){return this.each(function(){ad.attr(this,c,"");this.nodeType===1&&this.removeAttribute(c)})},addClass:function(V){if(ad.isFunction(V)){return this.each(function(W){var X=ad(this);X.addClass(V.call(this,W,X.attr("class")))})}if(V&&typeof V==="string"){for(var U=(V||"").split(aw),T=0,S=this.length;T<S;T++){var P=this[T];if(P.nodeType===1){if(P.className){for(var E=" "+P.className+" ",t=P.className,B=0,c=U.length;B<c;B++){if(E.indexOf(" "+U[B]+" ")<0){t+=" "+U[B]}}P.className=ad.trim(t)}else{P.className=V}}}}return this},removeClass:function(B){if(ad.isFunction(B)){return this.each(function(W){var V=ad(this);V.removeClass(B.call(this,W,V.attr("class")))})}if(B&&typeof B==="string"||B===aD){for(var c=(B||"").split(aw),U=0,T=this.length;U<T;U++){var S=this[U];if(S.nodeType===1&&S.className){if(B){for(var P=(" "+S.className+" ").replace(aS," "),t=0,E=c.length;t<E;t++){P=P.replace(" "+c[t]+" "," ")}S.className=ad.trim(P)}else{S.className=""}}}}return this},toggleClass:function(t,c){var E=typeof t,B=typeof c==="boolean";if(ad.isFunction(t)){return this.each(function(S){var P=ad(this);P.toggleClass(t.call(this,S,P.attr("class"),c),c)})}return this.each(function(){if(E==="string"){for(var U,T=0,P=ad(this),S=c,V=t.split(aw);U=V[T++];){S=B?S:!P.hasClass(U);P[S?"addClass":"removeClass"](U)}}else{if(E==="undefined"||E==="boolean"){this.className&&ad.data(this,"__className__",this.className);this.className=this.className||t===false?"":ad.data(this,"__className__")||""}}})},hasClass:function(t){t=" "+t+" ";for(var c=0,B=this.length;c<B;c++){if((" "+this[c].className+" ").replace(aS," ").indexOf(t)>-1){return true}}return false},val:function(B){if(!arguments.length){var c=this[0];if(c){if(ad.nodeName(c,"option")){var U=c.attributes.value;return !U||U.specified?c.value:c.text}if(ad.nodeName(c,"select")){var T=c.selectedIndex;U=[];var S=c.options;c=c.type==="select-one";if(T<0){return null}var P=c?T:0;for(T=c?T+1:S.length;P<T;P++){var t=S[P];if(t.selected&&(ad.support.optDisabled?!t.disabled:t.getAttribute("disabled")===null)&&(!t.parentNode.disabled||!ad.nodeName(t.parentNode,"optgroup"))){B=ad(t).val();if(c){return B}U.push(B)}}return U}if(aF.test(c.type)&&!ad.support.checkOn){return c.getAttribute("value")===null?"on":c.value}return(c.value||"").replace(e,"")}return aD}var E=ad.isFunction(B);return this.each(function(Y){var W=ad(this),X=B;if(this.nodeType===1){if(E){X=B.call(this,Y,W.val())}if(X==null){X=""}else{if(typeof X==="number"){X+=""}else{if(ad.isArray(X)){X=ad.map(X,function(Z){return Z==null?"":Z+""})}}}if(ad.isArray(X)&&aF.test(this.type)){this.checked=ad.inArray(W.val(),X)>=0}else{if(ad.nodeName(this,"select")){var V=ad.makeArray(X);ad("option",this).each(function(){this.selected=ad.inArray(ad(this).val(),V)>=0});if(!V.length){this.selectedIndex=-1}}else{this.value=X}}}})}});ad.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(t,c,S,P){if(!t||t.nodeType===3||t.nodeType===8){return aD}if(P&&c in ad.attrFn){return ad(t)[c](S)}P=t.nodeType!==1||!ad.isXMLDoc(t);var E=S!==aD;c=P&&ad.props[c]||c;var B=aV.test(c);if((c in t||t[c]!==aD)&&P&&!B){if(E){c==="type"&&aI.test(t.nodeName)&&t.parentNode&&ad.error("type property can't be changed");if(S===null){t.nodeType===1&&t.removeAttribute(c)}else{t[c]=S}}if(ad.nodeName(t,"form")&&t.getAttributeNode(c)){return t.getAttributeNode(c).nodeValue}if(c==="tabIndex"){return(c=t.getAttributeNode("tabIndex"))&&c.specified?c.value:aj.test(t.nodeName)||J.test(t.nodeName)&&t.href?0:aD}return t[c]}if(!ad.support.style&&P&&c==="style"){if(E){t.style.cssText=""+S}return t.style.cssText}E&&t.setAttribute(c,""+S);if(!t.attributes[c]&&t.hasAttribute&&!t.hasAttribute(c)){return aD}t=!ad.support.hrefNormalized&&P&&B?t.getAttribute(c,2):t.getAttribute(c);return t===null?aD:t}});var al=/\.(.*)$/,O=/^(?:textarea|input|select)$/i,o=/\./g,a5=/ /g,s=/[^\w\s.|`]/g,f=function(c){return c.replace(s,"\\$&")},ag={focusin:0,focusout:0};ad.event={add:function(Z,X,W,V){if(!(Z.nodeType===3||Z.nodeType===8)){if(ad.isWindow(Z)&&Z!==az&&!Z.frameElement){Z=az}if(W===false){W=ao}else{if(!W){return}}var U,T;if(W.handler){U=W;W=U.handler}if(!W.guid){W.guid=ad.guid++}if(T=ad.data(Z)){var P=Z.nodeType?"events":"__events__",S=T[P],E=T.handle;if(typeof S==="function"){E=S.handle;S=S.events}else{if(!S){Z.nodeType||(T[P]=T=function(){});T.events=S={}}}if(!E){T.handle=E=function(){return typeof ad!=="undefined"&&!ad.event.triggered?ad.event.handle.apply(E.elem,arguments):aD}}E.elem=Z;X=X.split(" ");for(var Y=0,c;P=X[Y++];){T=U?ad.extend({},U):{handler:W,data:V};if(P.indexOf(".")>-1){c=P.split(".");P=c.shift();T.namespace=c.slice(0).sort().join(".")}else{c=[];T.namespace=""}T.type=P;if(!T.guid){T.guid=W.guid}var B=S[P],t=ad.event.special[P]||{};if(!B){B=S[P]=[];if(!t.setup||t.setup.call(Z,V,c,E)===false){if(Z.addEventListener){Z.addEventListener(P,E,false)}else{Z.attachEvent&&Z.attachEvent("on"+P,E)}}}if(t.add){t.add.call(Z,T);if(!T.handler.guid){T.handler.guid=W.guid}}B.push(T);ad.event.global[P]=true}Z=null}}},global:{},remove:function(aa,X,W,V){if(!(aa.nodeType===3||aa.nodeType===8)){if(W===false){W=ao}var U,T,P=0,S,E,Z,c,B,t,Y=aa.nodeType?"events":"__events__",a6=ad.data(aa),ab=a6&&a6[Y];if(a6&&ab){if(typeof ab==="function"){a6=ab;ab=ab.events}if(X&&X.type){W=X.handler;X=X.type}if(!X||typeof X==="string"&&X.charAt(0)==="."){X=X||"";for(U in ab){ad.event.remove(aa,U+X)}}else{for(X=X.split(" ");U=X[P++];){c=U;S=U.indexOf(".")<0;E=[];if(!S){E=U.split(".");U=E.shift();Z=RegExp("(^|\\.)"+ad.map(E.slice(0).sort(),f).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(B=ab[U]){if(W){c=ad.event.special[U]||{};for(T=V||0;T<B.length;T++){t=B[T];if(W.guid===t.guid){if(S||Z.test(t.namespace)){V==null&&B.splice(T--,1);c.remove&&c.remove.call(aa,t)}if(V!=null){break}}}if(B.length===0||V!=null&&B.length===1){if(!c.teardown||c.teardown.call(aa,E)===false){ad.removeEvent(aa,U,a6.handle)}delete ab[U]}}else{for(T=0;T<B.length;T++){t=B[T];if(S||Z.test(t.namespace)){ad.event.remove(aa,c,t.handler,T);B.splice(T--,1)}}}}}if(ad.isEmptyObject(ab)){if(X=a6.handle){X.elem=null}delete a6.events;delete a6.handle;if(typeof a6==="function"){ad.removeData(aa,Y)}else{ad.isEmptyObject(a6)&&ad.removeData(aa)}}}}}},trigger:function(X,V,U,T){var S=X.type||X;if(!T){X=typeof X==="object"?X[ad.expando]?X:ad.extend(ad.Event(S),X):ad.Event(S);if(S.indexOf("!")>=0){X.type=S=S.slice(0,-1);X.exclusive=true}if(!U){X.stopPropagation();ad.event.global[S]&&ad.each(ad.cache,function(){this.events&&this.events[S]&&ad.event.trigger(X,V,this.handle.elem)})}if(!U||U.nodeType===3||U.nodeType===8){return aD}X.result=aD;X.target=U;V=ad.makeArray(V);V.unshift(X)}X.currentTarget=U;(T=U.nodeType?ad.data(U,"handle"):(ad.data(U,"__events__")||{}).handle)&&T.apply(U,V);T=U.parentNode||U.ownerDocument;try{if(!(U&&U.nodeName&&ad.noData[U.nodeName.toLowerCase()])){if(U["on"+S]&&U["on"+S].apply(U,V)===false){X.result=false;X.preventDefault()}}}catch(P){}if(!X.isPropagationStopped()&&T){ad.event.trigger(X,V,T,true)}else{if(!X.isDefaultPrevented()){var B;T=X.target;var E=S.replace(al,""),t=ad.nodeName(T,"a")&&E==="click",W=ad.event.special[E]||{};if((!W._default||W._default.call(U,X)===false)&&!t&&!(T&&T.nodeName&&ad.noData[T.nodeName.toLowerCase()])){try{if(T[E]){if(B=T["on"+E]){T["on"+E]=null}ad.event.triggered=true;T[E]()}}catch(c){}if(B){T["on"+E]=B}ad.event.triggered=false}}}},handle:function(B){var c,U,T,S;U=[];var P=ad.makeArray(arguments);B=P[0]=ad.event.fix(B||az.event);B.currentTarget=this;c=B.type.indexOf(".")<0&&!B.exclusive;if(!c){T=B.type.split(".");B.type=T.shift();U=T.slice(0).sort();T=RegExp("(^|\\.)"+U.join("\\.(?:.*\\.)?")+"(\\.|$)")}B.namespace=B.namespace||U.join(".");S=ad.data(this,this.nodeType?"events":"__events__");if(typeof S==="function"){S=S.events}U=(S||{})[B.type];if(S&&U){U=U.slice(0);S=0;for(var t=U.length;S<t;S++){var E=U[S];if(c||T.test(E.namespace)){B.handler=E.handler;B.data=E.data;B.handleObj=E;E=E.handler.apply(this,P);if(E!==aD){B.result=E;if(E===false){B.preventDefault();B.stopPropagation()}}if(B.isImmediatePropagationStopped()){break}}}}return B.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 pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(t){if(t[ad.expando]){return t}var c=t;t=ad.Event(c);for(var E=this.props.length,B;E;){B=this.props[--E];t[B]=c[B]}if(!t.target){t.target=t.srcElement||K}if(t.target.nodeType===3){t.target=t.target.parentNode}if(!t.relatedTarget&&t.fromElement){t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement}if(t.pageX==null&&t.clientX!=null){c=K.documentElement;E=K.body;t.pageX=t.clientX+(c&&c.scrollLeft||E&&E.scrollLeft||0)-(c&&c.clientLeft||E&&E.clientLeft||0);t.pageY=t.clientY+(c&&c.scrollTop||E&&E.scrollTop||0)-(c&&c.clientTop||E&&E.clientTop||0)}if(t.which==null&&(t.charCode!=null||t.keyCode!=null)){t.which=t.charCode!=null?t.charCode:t.keyCode}if(!t.metaKey&&t.ctrlKey){t.metaKey=t.ctrlKey}if(!t.which&&t.button!==aD){t.which=t.button&1?1:t.button&2?3:t.button&4?2:0}return t},guid:100000000,proxy:ad.proxy,special:{ready:{setup:ad.bindReady,teardown:ad.noop},live:{add:function(c){ad.event.add(this,ak(c.origType,c.selector),ad.extend({},c,{handler:F,guid:c.handler.guid}))},remove:function(c){ad.event.remove(this,ak(c.origType,c.selector),c)}},beforeunload:{setup:function(t,c,B){if(ad.isWindow(this)){this.onbeforeunload=B}},teardown:function(t,c){if(this.onbeforeunload===c){this.onbeforeunload=null}}}}};ad.removeEvent=K.removeEventListener?function(t,c,B){t.removeEventListener&&t.removeEventListener(c,B,false)}:function(t,c,B){t.detachEvent&&t.detachEvent("on"+c,B)};ad.Event=function(c){if(!this.preventDefault){return new ad.Event(c)}if(c&&c.type){this.originalEvent=c;this.type=c.type}else{this.type=c}this.timeStamp=ad.now();this[ad.expando]=true};ad.Event.prototype={preventDefault:function(){this.isDefaultPrevented=M;var c=this.originalEvent;if(c){if(c.preventDefault){c.preventDefault()}else{c.returnValue=false}}},stopPropagation:function(){this.isPropagationStopped=M;var c=this.originalEvent;if(c){c.stopPropagation&&c.stopPropagation();c.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=M;this.stopPropagation()},isDefaultPrevented:ao,isPropagationStopped:ao,isImmediatePropagationStopped:ao};var H=function(t){var c=t.relatedTarget;try{for(;c&&c!==this;){c=c.parentNode}if(c!==this){t.type=t.data;ad.event.handle.apply(this,arguments)}}catch(B){}},q=function(c){c.type=c.data;ad.event.handle.apply(this,arguments)};ad.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(t,c){ad.event.special[t]={setup:function(B){ad.event.add(this,c,B&&B.selector?q:H,t)},teardown:function(B){ad.event.remove(this,c,B&&B.selector?q:H)}}});if(!ad.support.submitBubbles){ad.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){ad.event.add(this,"click.specialSubmit",function(t){var c=t.target,B=c.type;if((B==="submit"||B==="image")&&ad(c).closest("form").length){t.liveFired=aD;return a1("submit",this,arguments)}});ad.event.add(this,"keypress.specialSubmit",function(t){var c=t.target,B=c.type;if((B==="text"||B==="password")&&ad(c).closest("form").length&&t.keyCode===13){t.liveFired=aD;return a1("submit",this,arguments)}})}else{return false}},teardown:function(){ad.event.remove(this,".specialSubmit")}}}if(!ad.support.changeBubbles){var an,d=function(t){var c=t.type,B=t.value;if(c==="radio"||c==="checkbox"){B=t.checked}else{if(c==="select-multiple"){B=t.selectedIndex>-1?ad.map(t.options,function(E){return E.selected}).join("-"):""}else{if(t.nodeName.toLowerCase()==="select"){B=t.selectedIndex}}}return B},ai=function(t,c){var P=t.target,E,B;if(!(!O.test(P.nodeName)||P.readOnly)){E=ad.data(P,"_change_data");B=d(P);if(t.type!=="focusout"||P.type!=="radio"){ad.data(P,"_change_data",B)}if(!(E===aD||B===E)){if(E!=null||B){t.type="change";t.liveFired=aD;return ad.event.trigger(t,c,P)}}}};ad.event.special.change={filters:{focusout:ai,beforedeactivate:ai,click:function(t){var c=t.target,B=c.type;if(B==="radio"||B==="checkbox"||c.nodeName.toLowerCase()==="select"){return ai.call(this,t)}},keydown:function(t){var c=t.target,B=c.type;if(t.keyCode===13&&c.nodeName.toLowerCase()!=="textarea"||t.keyCode===32&&(B==="checkbox"||B==="radio")||B==="select-multiple"){return ai.call(this,t)}},beforeactivate:function(c){c=c.target;ad.data(c,"_change_data",d(c))}},setup:function(){if(this.type==="file"){return false}for(var c in an){ad.event.add(this,c+".specialChange",an[c])}return O.test(this.nodeName)},teardown:function(){ad.event.remove(this,".specialChange");return O.test(this.nodeName)}};an=ad.event.special.change.filters;an.focus=an.beforeactivate}K.addEventListener&&ad.each({focus:"focusin",blur:"focusout"},function(t,c){function B(E){E=ad.event.fix(E);E.type=c;return ad.event.trigger(E,null,E.target)}ad.event.special[c]={setup:function(){ag[c]++===0&&K.addEventListener(t,B,true)},teardown:function(){--ag[c]===0&&K.removeEventListener(t,B,true)}}});ad.each(["bind","one"],function(t,c){ad.fn[c]=function(U,T,S){if(typeof U==="object"){for(var P in U){this[c](P,T,U[P],S)}return this}if(ad.isFunction(T)||T===false){S=T;T=aD}var B=c==="one"?ad.proxy(S,function(V){ad(this).unbind(V,B);return S.apply(this,arguments)}):S;if(U==="unload"&&c!=="one"){this.one(U,T,S)}else{P=0;for(var E=this.length;P<E;P++){ad.event.add(this[P],U,B,T)}}return this}});ad.fn.extend({unbind:function(t,c){if(typeof t==="object"&&!t.preventDefault){for(var E in t){this.unbind(E,t[E])}}else{E=0;for(var B=this.length;E<B;E++){ad.event.remove(this[E],t,c)}}return this},delegate:function(t,c,E,B){return this.live(c,E,B,t)},undelegate:function(t,c,B){return arguments.length===0?this.unbind("live"):this.die(c,null,B,t)},trigger:function(t,c){return this.each(function(){ad.event.trigger(t,c,this)})},triggerHandler:function(t,c){if(this[0]){var B=ad.Event(t);B.preventDefault();B.stopPropagation();ad.event.trigger(B,c,this[0]);return B.result}},toggle:function(t){for(var c=arguments,B=1;B<c.length;){ad.proxy(t,c[B++])}return this.click(ad.proxy(t,function(P){var E=(ad.data(this,"lastToggle"+t.guid)||0)%B;ad.data(this,"lastToggle"+t.guid,E+1);P.preventDefault();return c[E].apply(this,arguments)||false}))},hover:function(t,c){return this.mouseenter(t).mouseleave(c||t)}});var aU={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};ad.each(["live","die"],function(t,c){ad.fn[c]=function(X,W,V,U){var S,T=0,P,Y,B=U||this.selector;U=U?this:ad(this.context);if(typeof X==="object"&&!X.preventDefault){for(S in X){U[c](S,W,X[S],B)}return this}if(ad.isFunction(W)){V=W;W=aD}for(X=(X||"").split(" ");(S=X[T++])!=null;){P=al.exec(S);Y="";if(P){Y=P[0];S=S.replace(al,"")}if(S==="hover"){X.push("mouseenter"+Y,"mouseleave"+Y)}else{P=S;if(S==="focus"||S==="blur"){X.push(aU[S]+Y);S+=Y}else{S=(aU[S]||S)+Y}if(c==="live"){Y=0;for(var E=U.length;Y<E;Y++){ad.event.add(U[Y],"live."+ak(S,B),{data:W,selector:B,handler:V,origType:S,origHandler:V,preType:P})}}else{U.unbind("live."+ak(S,B),V)}}}return this}});ad.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(t,c){ad.fn[c]=function(E,B){if(B==null){B=E;E=null}return arguments.length>0?this.bind(c,E,B):this.trigger(c)};if(ad.attrFn){ad.attrFn[c]=true}});az.attachEvent&&!az.addEventListener&&ad(az).bind("unload",function(){for(var t in ad.cache){if(ad.cache[t].handle){try{ad.event.remove(ad.cache[t].handle.elem)}catch(c){}}}});(function(){function ab(bd,bc,ba,bb,a9,a8){a9=0;for(var bf=bb.length;a9<bf;a9++){var be=bb[a9];if(be){var bg=false;for(be=be[bd];be;){if(be.sizcache===ba){bg=bb[be.sizset];break}if(be.nodeType===1&&!a8){be.sizcache=ba;be.sizset=a9}if(be.nodeName.toLowerCase()===bc){bg=be;break}be=be[bd]}bb[a9]=bg}}}function Y(bd,bc,ba,bb,a9,a8){a9=0;for(var bf=bb.length;a9<bf;a9++){var be=bb[a9];if(be){var bg=false;for(be=be[bd];be;){if(be.sizcache===ba){bg=bb[be.sizset];break}if(be.nodeType===1){if(!a8){be.sizcache=ba;be.sizset=a9}if(typeof bc!=="string"){if(be===bc){bg=true;break}}else{if(S.filter(bc,[be]).length>0){bg=be;break}}}be=be[bd]}bb[a9]=bg}}}var W=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,V=0,U=Object.prototype.toString,T=false,P=true;[0,0].sort(function(){P=false;return 0});var S=function(bf,be,bb,bc){bb=bb||[];var ba=be=be||K;if(be.nodeType!==1&&be.nodeType!==9){return[]}if(!bf||typeof bf!=="string"){return bb}var a9,bk,bj,bl,bi,bh=true,bg=S.isXML(be),a8=[],bd=bf;do{W.exec("");if(a9=W.exec(bd)){bd=a9[3];a8.push(a9[1]);if(a9[2]){bl=a9[3];break}}}while(a9);if(a8.length>1&&aa.exec(bf)){if(a8.length===2&&E.relative[a8[0]]){bk=X(a8[0]+a8[1],be)}else{for(bk=E.relative[a8[0]]?[be]:S(a8.shift(),be);a8.length;){bf=a8.shift();if(E.relative[bf]){bf+=a8.shift()}bk=X(bf,bk)}}}else{if(!bc&&a8.length>1&&be.nodeType===9&&!bg&&E.match.ID.test(a8[0])&&!E.match.ID.test(a8[a8.length-1])){a9=S.find(a8.shift(),be,bg);be=a9.expr?S.filter(a9.expr,a9.set)[0]:a9.set[0]}if(be){a9=bc?{expr:a8.pop(),set:t(bc)}:S.find(a8.pop(),a8.length===1&&(a8[0]==="~"||a8[0]==="+")&&be.parentNode?be.parentNode:be,bg);bk=a9.expr?S.filter(a9.expr,a9.set):a9.set;if(a8.length>0){bj=t(bk)}else{bh=false}for(;a8.length;){a9=bi=a8.pop();if(E.relative[bi]){a9=a8.pop()}else{bi=""}if(a9==null){a9=be}E.relative[bi](bj,a9,bg)}}else{bj=[]}}bj||(bj=bk);bj||S.error(bi||bf);if(U.call(bj)==="[object Array]"){if(bh){if(be&&be.nodeType===1){for(bf=0;bj[bf]!=null;bf++){if(bj[bf]&&(bj[bf]===true||bj[bf].nodeType===1&&S.contains(be,bj[bf]))){bb.push(bk[bf])}}}else{for(bf=0;bj[bf]!=null;bf++){bj[bf]&&bj[bf].nodeType===1&&bb.push(bk[bf])}}}else{bb.push.apply(bb,bj)}}else{t(bj,bb)}if(bl){S(bl,ba,bb,bc);S.uniqueSort(bb)}return bb};S.uniqueSort=function(a9){if(a7){T=P;a9.sort(a7);if(T){for(var a8=1;a8<a9.length;a8++){a9[a8]===a9[a8-1]&&a9.splice(a8--,1)}}}return a9};S.matches=function(a9,a8){return S(a9,null,null,a8)};S.matchesSelector=function(a9,a8){return S(a8,null,null,[a9]).length>0};S.find=function(bd,bc,ba){var bb;if(!bd){return[]}for(var a9=0,a8=E.order.length;a9<a8;a9++){var bf,be=E.order[a9];if(bf=E.leftMatch[be].exec(bd)){var bg=bf[1];bf.splice(1,1);if(bg.substr(bg.length-1)!=="\\"){bf[1]=(bf[1]||"").replace(/\\/g,"");bb=E.find[be](bf,bc,ba);if(bb!=null){bd=bd.replace(E.match[be],"");break}}}}bb||(bb=bc.getElementsByTagName("*"));return{set:bb,expr:bd}};S.filter=function(bg,bf,bb,bc){for(var ba,a9,bl=bg,bk=[],bm=bf,bj=bf&&bf[0]&&S.isXML(bf[0]);bg&&bf.length;){for(var bi in E.filter){if((ba=E.leftMatch[bi].exec(bg))!=null&&ba[2]){var bh,a8,be=E.filter[bi];a8=ba[1];a9=false;ba.splice(1,1);if(a8.substr(a8.length-1)!=="\\"){if(bm===bk){bk=[]}if(E.preFilter[bi]){if(ba=E.preFilter[bi](ba,bm,bb,bk,bc,bj)){if(ba===true){continue}}else{a9=bh=true}}if(ba){for(var bd=0;(a8=bm[bd])!=null;bd++){if(a8){bh=be(a8,ba,bd,bm);var bn=bc^!!bh;if(bb&&bh!=null){if(bn){a9=true}else{bm[bd]=false}}else{if(bn){bk.push(a8);a9=true}}}}}if(bh!==aD){bb||(bm=bk);bg=bg.replace(E.match[bi],"");if(!a9){return[]}break}}}}if(bg===bl){if(a9==null){S.error(bg)}else{break}}bl=bg}return bm};S.error=function(a8){throw"Syntax error, unrecognized expression: "+a8};var E=S.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(a8){return a8.getAttribute("href")}},relative:{"+":function(ba,a9){var bd=typeof a9==="string",a8=bd&&!/\W/.test(a9);bd=bd&&!a8;if(a8){a9=a9.toLowerCase()}a8=0;for(var bc=ba.length,bb;a8<bc;a8++){if(bb=ba[a8]){for(;(bb=bb.previousSibling)&&bb.nodeType!==1;){}ba[a8]=bd||bb&&bb.nodeName.toLowerCase()===a9?bb||false:bb===a9}}bd&&S.filter(a9,ba,true)},">":function(ba,a9){var bd,a8=typeof a9==="string",bc=0,bb=ba.length;if(a8&&!/\W/.test(a9)){for(a9=a9.toLowerCase();bc<bb;bc++){if(bd=ba[bc]){bd=bd.parentNode;ba[bc]=bd.nodeName.toLowerCase()===a9?bd:false}}}else{for(;bc<bb;bc++){if(bd=ba[bc]){ba[bc]=a8?bd.parentNode:bd.parentNode===a9}}a8&&S.filter(a9,ba,true)}},"":function(ba,a9,bd){var a8,bc=V++,bb=Y;if(typeof a9==="string"&&!/\W/.test(a9)){a8=a9=a9.toLowerCase();bb=ab}bb("parentNode",a9,bc,ba,a8,bd)},"~":function(ba,a9,bd){var a8,bc=V++,bb=Y;if(typeof a9==="string"&&!/\W/.test(a9)){a8=a9=a9.toLowerCase();bb=ab}bb("previousSibling",a9,bc,ba,a8,bd)}},find:{ID:function(a9,a8,ba){if(typeof a8.getElementById!=="undefined"&&!ba){return(a9=a8.getElementById(a9[1]))&&a9.parentNode?[a9]:[]}},NAME:function(ba,a9){if(typeof a9.getElementsByName!=="undefined"){for(var bd=[],a8=a9.getElementsByName(ba[1]),bc=0,bb=a8.length;bc<bb;bc++){a8[bc].getAttribute("name")===ba[1]&&bd.push(a8[bc])}return bd.length===0?null:bd}},TAG:function(a9,a8){return a8.getElementsByTagName(a9[1])}},preFilter:{CLASS:function(bb,ba,be,a8,bd,bc){bb=" "+bb[1].replace(/\\/g,"")+" ";if(bc){return bb}bc=0;for(var a9;(a9=ba[bc])!=null;bc++){if(a9){if(bd^(a9.className&&(" "+a9.className+" ").replace(/[\t\n]/g," ").indexOf(bb)>=0)){be||a8.push(a9)}else{if(be){ba[bc]=false}}}}return false},ID:function(a8){return a8[1].replace(/\\/g,"")},TAG:function(a8){return a8[1].toLowerCase()},CHILD:function(a9){if(a9[1]==="nth"){var a8=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(a9[2]==="even"&&"2n"||a9[2]==="odd"&&"2n+1"||!/\D/.test(a9[2])&&"0n+"+a9[2]||a9[2]);a9[2]=a8[1]+(a8[2]||1)-0;a9[3]=a8[3]-0}a9[0]=V++;return a9},ATTR:function(ba,a9,bd,a8,bc,bb){a9=ba[1].replace(/\\/g,"");if(!bb&&E.attrMap[a9]){ba[1]=E.attrMap[a9]}if(ba[2]==="~="){ba[4]=" "+ba[4]+" "}return ba},PSEUDO:function(ba,a9,bc,a8,bb){if(ba[1]==="not"){if((W.exec(ba[3])||"").length>1||/^\w/.test(ba[3])){ba[3]=S(ba[3],null,null,a9)}else{ba=S.filter(ba[3],a9,bc,true^bb);bc||a8.push.apply(a8,ba);return false}}else{if(E.match.POS.test(ba[0])||E.match.CHILD.test(ba[0])){return true}}return ba},POS:function(a8){a8.unshift(true);return a8}},filters:{enabled:function(a8){return a8.disabled===false&&a8.type!=="hidden"},disabled:function(a8){return a8.disabled===true},checked:function(a8){return a8.checked===true},selected:function(a8){return a8.selected===true},parent:function(a8){return !!a8.firstChild},empty:function(a8){return !a8.firstChild},has:function(a9,a8,ba){return !!S(ba[3],a9).length},header:function(a8){return/h\d/i.test(a8.nodeName)},text:function(a8){return"text"===a8.type},radio:function(a8){return"radio"===a8.type},checkbox:function(a8){return"checkbox"===a8.type},file:function(a8){return"file"===a8.type},password:function(a8){return"password"===a8.type},submit:function(a8){return"submit"===a8.type},image:function(a8){return"image"===a8.type},reset:function(a8){return"reset"===a8.type},button:function(a8){return"button"===a8.type||a8.nodeName.toLowerCase()==="button"},input:function(a8){return/input|select|textarea|button/i.test(a8.nodeName)}},setFilters:{first:function(a9,a8){return a8===0},last:function(ba,a9,bb,a8){return a9===a8.length-1},even:function(a9,a8){return a8%2===0},odd:function(a9,a8){return a8%2===1},lt:function(a9,a8,ba){return a8<ba[3]-0},gt:function(a9,a8,ba){return a8>ba[3]-0},nth:function(a9,a8,ba){return ba[3]-0===a8},eq:function(a9,a8,ba){return ba[3]-0===a8}},filter:{PSEUDO:function(ba,a9,bd,a8){var bc=a9[1],bb=E.filters[bc];if(bb){return bb(ba,bd,a9,a8)}else{if(bc==="contains"){return(ba.textContent||ba.innerText||S.getText([ba])||"").indexOf(a9[3])>=0}else{if(bc==="not"){a9=a9[3];bd=0;for(a8=a9.length;bd<a8;bd++){if(a9[bd]===ba){return false}}return true}else{S.error("Syntax error, unrecognized expression: "+bc)}}}},CHILD:function(bb,ba){var bf=ba[1],a8=bb;switch(bf){case"only":case"first":for(;a8=a8.previousSibling;){if(a8.nodeType===1){return false}}if(bf==="first"){return true}a8=bb;case"last":for(;a8=a8.nextSibling;){if(a8.nodeType===1){return false}}return true;case"nth":bf=ba[2];var bd=ba[3];if(bf===1&&bd===0){return true}var bc=ba[0],a9=bb.parentNode;if(a9&&(a9.sizcache!==bc||!bb.nodeIndex)){var be=0;for(a8=a9.firstChild;a8;a8=a8.nextSibling){if(a8.nodeType===1){a8.nodeIndex=++be}}a9.sizcache=bc}a8=bb.nodeIndex-bd;return bf===0?a8===0:a8%bf===0&&a8/bf>=0}},ID:function(a9,a8){return a9.nodeType===1&&a9.getAttribute("id")===a8},TAG:function(a9,a8){return a8==="*"&&a9.nodeType===1||a9.nodeName.toLowerCase()===a8},CLASS:function(a9,a8){return(" "+(a9.className||a9.getAttribute("class"))+" ").indexOf(a8)>-1},ATTR:function(ba,a9){var bd=a9[1];bd=E.attrHandle[bd]?E.attrHandle[bd](ba):ba[bd]!=null?ba[bd]:ba.getAttribute(bd);var a8=bd+"",bc=a9[2],bb=a9[4];return bd==null?bc==="!=":bc==="="?a8===bb:bc==="*="?a8.indexOf(bb)>=0:bc==="~="?(" "+a8+" ").indexOf(bb)>=0:!bb?a8&&bd!==false:bc==="!="?a8!==bb:bc==="^="?a8.indexOf(bb)===0:bc==="$="?a8.substr(a8.length-bb.length)===bb:bc==="|="?a8===bb||a8.substr(0,bb.length+1)===bb+"-":false},POS:function(ba,a9,bc,a8){var bb=E.setFilters[a9[2]];if(bb){return bb(ba,bc,a9,a8)}}}},aa=E.match.POS,c=function(a9,a8){return"\\"+(a8-0+1)},B;for(B in E.match){E.match[B]=RegExp(E.match[B].source+/(?![^\[]*\])(?![^\(]*\))/.source);E.leftMatch[B]=RegExp(/(^(?:.|\r|\n)*?)/.source+E.match[B].source.replace(/\\(\d+)/g,c))}var t=function(a9,a8){a9=Array.prototype.slice.call(a9,0);if(a8){a8.push.apply(a8,a9);return a8}return a9};try{Array.prototype.slice.call(K.documentElement.childNodes,0)}catch(Z){t=function(ba,a9){var bc=0,a8=a9||[];if(U.call(ba)==="[object Array]"){Array.prototype.push.apply(a8,ba)}else{if(typeof ba.length==="number"){for(var bb=ba.length;bc<bb;bc++){a8.push(ba[bc])}}else{for(;ba[bc];bc++){a8.push(ba[bc])}}}return a8}}var a7,a6;if(K.documentElement.compareDocumentPosition){a7=function(a9,a8){if(a9===a8){T=true;return 0}if(!a9.compareDocumentPosition||!a8.compareDocumentPosition){return a9.compareDocumentPosition?-1:1}return a9.compareDocumentPosition(a8)&4?-1:1}}else{a7=function(bb,ba){var be,a8,bd=[],bc=[];be=bb.parentNode;a8=ba.parentNode;var a9=be;if(bb===ba){T=true;return 0}else{if(be===a8){return a6(bb,ba)}else{if(be){if(!a8){return 1}}else{return -1}}}for(;a9;){bd.unshift(a9);a9=a9.parentNode}for(a9=a8;a9;){bc.unshift(a9);a9=a9.parentNode}be=bd.length;a8=bc.length;for(a9=0;a9<be&&a9<a8;a9++){if(bd[a9]!==bc[a9]){return a6(bd[a9],bc[a9])}}return a9===be?a6(bb,bc[a9],-1):a6(bd[a9],ba,1)};a6=function(a9,a8,ba){if(a9===a8){return ba}for(a9=a9.nextSibling;a9;){if(a9===a8){return -1}a9=a9.nextSibling}return 1}}S.getText=function(ba){for(var a9="",bb,a8=0;ba[a8];a8++){bb=ba[a8];if(bb.nodeType===3||bb.nodeType===4){a9+=bb.nodeValue}else{if(bb.nodeType!==8){a9+=S.getText(bb.childNodes)}}}return a9};(function(){var a9=K.createElement("div"),a8="script"+(new Date).getTime(),ba=K.documentElement;a9.innerHTML="<a name='"+a8+"'/>";ba.insertBefore(a9,ba.firstChild);if(K.getElementById(a8)){E.find.ID=function(bb,bd,bc){if(typeof bd.getElementById!=="undefined"&&!bc){return(bd=bd.getElementById(bb[1]))?bd.id===bb[1]||typeof bd.getAttributeNode!=="undefined"&&bd.getAttributeNode("id").nodeValue===bb[1]?[bd]:aD:[]}};E.filter.ID=function(bb,bd){var bc=typeof bb.getAttributeNode!=="undefined"&&bb.getAttributeNode("id");return bb.nodeType===1&&bc&&bc.nodeValue===bd}}ba.removeChild(a9);ba=a9=null})();(function(){var a8=K.createElement("div");a8.appendChild(K.createComment(""));if(a8.getElementsByTagName("*").length>0){E.find.TAG=function(ba,bd){var a9=bd.getElementsByTagName(ba[1]);if(ba[1]==="*"){for(var bc=[],bb=0;a9[bb];bb++){a9[bb].nodeType===1&&bc.push(a9[bb])}a9=bc}return a9}}a8.innerHTML="<a href='#'></a>";if(a8.firstChild&&typeof a8.firstChild.getAttribute!=="undefined"&&a8.firstChild.getAttribute("href")!=="#"){E.attrHandle.href=function(a9){return a9.getAttribute("href",2)}}a8=null})();K.querySelectorAll&&function(){var a9=S,a8=K.createElement("div");a8.innerHTML="<p class='TEST'></p>";if(!(a8.querySelectorAll&&a8.querySelectorAll(".TEST").length===0)){S=function(bb,bf,be,bc){bf=bf||K;bb=bb.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!bc&&!S.isXML(bf)){if(bf.nodeType===9){try{return t(bf.querySelectorAll(bb),be)}catch(bi){}}else{if(bf.nodeType===1&&bf.nodeName.toLowerCase()!=="object"){var bd=bf.getAttribute("id"),bh=bd||"__sizzle__";bd||bf.setAttribute("id",bh);try{return t(bf.querySelectorAll("#"+bh+" "+bb),be)}catch(bg){}finally{bd||bf.removeAttribute("id")}}}}return a9(bb,bf,be,bc)};for(var ba in a9){S[ba]=a9[ba]}a8=null}}();(function(){var ba=K.documentElement,a9=ba.matchesSelector||ba.mozMatchesSelector||ba.webkitMatchesSelector||ba.msMatchesSelector,bb=false;try{a9.call(K.documentElement,"[test!='']:sizzle")}catch(a8){bb=true}if(a9){S.matchesSelector=function(be,bd){bd=bd.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!S.isXML(be)){try{if(bb||!E.match.PSEUDO.test(bd)&&!/!=/.test(bd)){return a9.call(be,bd)}}catch(bc){}}return S(bd,null,null,[be]).length>0}}})();(function(){var a8=K.createElement("div");a8.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!a8.getElementsByClassName||a8.getElementsByClassName("e").length===0)){a8.lastChild.className="e";if(a8.getElementsByClassName("e").length!==1){E.order.splice(1,0,"CLASS");E.find.CLASS=function(ba,bb,a9){if(typeof bb.getElementsByClassName!=="undefined"&&!a9){return bb.getElementsByClassName(ba[1])}};a8=null}}})();S.contains=K.documentElement.contains?function(a9,a8){return a9!==a8&&(a9.contains?a9.contains(a8):true)}:K.documentElement.compareDocumentPosition?function(a9,a8){return !!(a9.compareDocumentPosition(a8)&16)}:function(){return false};S.isXML=function(a8){return(a8=(a8?a8.ownerDocument||a8:0).documentElement)?a8.nodeName!=="HTML":false};var X=function(bb,ba){for(var be,a8=[],bd="",bc=ba.nodeType?[ba]:ba;be=E.match.PSEUDO.exec(bb);){bd+=be[0];bb=bb.replace(E.match.PSEUDO,"")}bb=E.relative[bb]?bb+"*":bb;be=0;for(var a9=bc.length;be<a9;be++){S(bb,bc[be],a8)}return S.filter(bd,a8)};ad.find=S;ad.expr=S.selectors;ad.expr[":"]=ad.expr.filters;ad.unique=S.uniqueSort;ad.text=S.getText;ad.isXMLDoc=S.isXML;ad.contains=S.contains})();var aW=/Until$/,aC=/^(?:parents|prevUntil|prevAll)/,aJ=/,/,aT=/^.[^:#\[\.,]*$/,ar=Array.prototype.slice,L=ad.expr.match.POS;ad.fn.extend({find:function(B){for(var c=this.pushStack("","find",B),T=0,S=0,P=this.length;S<P;S++){T=c.length;ad.find(B,this[S],c);if(S>0){for(var E=T;E<c.length;E++){for(var t=0;t<T;t++){if(c[t]===c[E]){c.splice(E--,1);break}}}}}return c},has:function(t){var c=ad(t);return this.filter(function(){for(var E=0,B=c.length;E<B;E++){if(ad.contains(this,c[E])){return true}}})},not:function(c){return this.pushStack(aO(this,c,false),"not",c)},filter:function(c){return this.pushStack(aO(this,c,true),"filter",c)},is:function(c){return !!c&&ad.filter(c,this).length>0},closest:function(V,U){var T=[],S,P,E=this[0];if(ad.isArray(V)){var t,B={},c=1;if(E&&V.length){S=0;for(P=V.length;S<P;S++){t=V[S];B[t]||(B[t]=ad.expr.match.POS.test(t)?ad(t,U||this.context):t)}for(;E&&E.ownerDocument&&E!==U;){for(t in B){S=B[t];if(S.jquery?S.index(E)>-1:ad(E).is(S)){T.push({selector:t,elem:E,level:c})}}E=E.parentNode;c++}}return T}t=L.test(V)?ad(V,U||this.context):null;S=0;for(P=this.length;S<P;S++){for(E=this[S];E;){if(t?t.index(E)>-1:ad.find.matchesSelector(E,V)){T.push(E);break}else{E=E.parentNode;if(!E||!E.ownerDocument||E===U){break}}}}T=T.length>1?ad.unique(T):T;return this.pushStack(T,"closest",V)},index:function(c){if(!c||typeof c==="string"){return ad.inArray(this[0],c?ad(c):this.parent().children())}return ad.inArray(c.jquery?c[0]:c,this)},add:function(t,c){var E=typeof t==="string"?ad(t,c||this.context):ad.makeArray(t),B=ad.merge(this.get(),E);return this.pushStack(!E[0]||!E[0].parentNode||E[0].parentNode.nodeType===11||!B[0]||!B[0].parentNode||B[0].parentNode.nodeType===11?B:ad.unique(B))},andSelf:function(){return this.add(this.prevObject)}});ad.each({parent:function(c){return(c=c.parentNode)&&c.nodeType!==11?c:null},parents:function(c){return ad.dir(c,"parentNode")},parentsUntil:function(t,c,B){return ad.dir(t,"parentNode",B)},next:function(c){return ad.nth(c,2,"nextSibling")},prev:function(c){return ad.nth(c,2,"previousSibling")},nextAll:function(c){return ad.dir(c,"nextSibling")},prevAll:function(c){return ad.dir(c,"previousSibling")},nextUntil:function(t,c,B){return ad.dir(t,"nextSibling",B)},prevUntil:function(t,c,B){return ad.dir(t,"previousSibling",B)},siblings:function(c){return ad.sibling(c.parentNode.firstChild,c)},children:function(c){return ad.sibling(c.firstChild)},contents:function(c){return ad.nodeName(c,"iframe")?c.contentDocument||c.contentWindow.document:ad.makeArray(c.childNodes)}},function(t,c){ad.fn[t]=function(P,E){var B=ad.map(this,c,P);aW.test(t)||(E=P);if(E&&typeof E==="string"){B=ad.filter(E,B)}B=this.length>1?ad.unique(B):B;if((this.length>1||aJ.test(E))&&aC.test(t)){B=B.reverse()}return this.pushStack(B,t,ar.call(arguments).join(","))}});ad.extend({filter:function(t,c,B){if(B){t=":not("+t+")"}return c.length===1?ad.find.matchesSelector(c[0],t)?[c[0]]:[]:ad.find.matches(t,c)},dir:function(t,c,E){var B=[];for(t=t[c];t&&t.nodeType!==9&&(E===aD||t.nodeType!==1||!ad(t).is(E));){t.nodeType===1&&B.push(t);t=t[c]}return B},nth:function(t,c,E){c=c||1;for(var B=0;t;t=t[E]){if(t.nodeType===1&&++B===c){break}}return t},sibling:function(t,c){for(var B=[];t;t=t.nextSibling){t.nodeType===1&&t!==c&&B.push(t)}return B}});var aH=/ jQuery\d+="(?:\d+|null)"/g,aQ=/^\s+/,aZ=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,aM=/<([\w:]+)/,v=/<tbody/i,g=/<|&#?\w+;/,ax=/<(?:script|object|embed|option|style)/i,Q=/checked\s*(?:[^=]|=\s*.checked.)/i,aX=/\=([^="'>\s]+\/)>/g,at={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,"",""]};at.optgroup=at.option;at.tbody=at.tfoot=at.colgroup=at.caption=at.thead;at.th=at.td;if(!ad.support.htmlSerialize){at._default=[1,"div<div>","</div>"]}ad.fn.extend({text:function(c){if(ad.isFunction(c)){return this.each(function(t){var B=ad(this);B.text(c.call(this,t,B.text()))})}if(typeof c!=="object"&&c!==aD){return this.empty().append((this[0]&&this[0].ownerDocument||K).createTextNode(c))}return ad.text(this)},wrapAll:function(t){if(ad.isFunction(t)){return this.each(function(B){ad(this).wrapAll(t.call(this,B))})}if(this[0]){var c=ad(t,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){for(var B=this;B.firstChild&&B.firstChild.nodeType===1;){B=B.firstChild}return B}).append(this)}return this},wrapInner:function(c){if(ad.isFunction(c)){return this.each(function(t){ad(this).wrapInner(c.call(this,t))})}return this.each(function(){var t=ad(this),B=t.contents();B.length?B.wrapAll(c):t.append(c)})},wrap:function(c){return this.each(function(){ad(this).wrapAll(c)})},unwrap:function(){return this.parent().each(function(){ad.nodeName(this,"body")||ad(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(t){this.parentNode.insertBefore(t,this)})}else{if(arguments.length){var c=ad(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(t){this.parentNode.insertBefore(t,this.nextSibling)})}else{if(arguments.length){var c=this.pushStack(this,"after",arguments);c.push.apply(c,ad(arguments[0]).toArray());return c}}},remove:function(t,c){for(var E=0,B;(B=this[E])!=null;E++){if(!t||ad.filter(t,[B]).length){if(!c&&B.nodeType===1){ad.cleanData(B.getElementsByTagName("*"));ad.cleanData([B])}B.parentNode&&B.parentNode.removeChild(B)}}return this},empty:function(){for(var t=0,c;(c=this[t])!=null;t++){for(c.nodeType===1&&ad.cleanData(c.getElementsByTagName("*"));c.firstChild;){c.removeChild(c.firstChild)}}return this},clone:function(t){var c=this.map(function(){if(!ad.support.noCloneEvent&&!ad.isXMLDoc(this)){var E=this.outerHTML,B=this.ownerDocument;if(!E){E=B.createElement("div");E.appendChild(this.cloneNode(true));E=E.innerHTML}return ad.clean([E.replace(aH,"").replace(aX,'="$1">').replace(aQ,"")],B)[0]}else{return this.cloneNode(true)}});if(t===true){aA(this,c);aA(this.find("*"),c.find("*"))}return c},html:function(t){if(t===aD){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(aH,""):null}else{if(typeof t==="string"&&!ax.test(t)&&(ad.support.leadingWhitespace||!aQ.test(t))&&!at[(aM.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(aZ,"<$1></$2>");try{for(var c=0,E=this.length;c<E;c++){if(this[c].nodeType===1){ad.cleanData(this[c].getElementsByTagName("*"));this[c].innerHTML=t}}}catch(B){this.empty().append(t)}}else{ad.isFunction(t)?this.each(function(S){var P=ad(this);P.html(t.call(this,S,P.html()))}):this.empty().append(t)}}return this},replaceWith:function(c){if(this[0]&&this[0].parentNode){if(ad.isFunction(c)){return this.each(function(t){var E=ad(this),B=E.html();E.replaceWith(c.call(this,t,B))})}if(typeof c!=="string"){c=ad(c).detach()}return this.each(function(){var t=this.nextSibling,B=this.parentNode;ad(this).remove();t?ad(t).before(c):ad(B).append(c)})}else{return this.pushStack(ad(ad.isFunction(c)?c():c),"replaceWith",c)}},detach:function(c){return this.remove(c,true)},domManip:function(V,U,T){var S,P,E,t=V[0],B=[];if(!ad.support.checkClone&&arguments.length===3&&typeof t==="string"&&Q.test(t)){return this.each(function(){ad(this).domManip(V,U,T,true)})}if(ad.isFunction(t)){return this.each(function(W){var X=ad(this);V[0]=t.call(this,W,U?X.html():aD);X.domManip(V,U,T)})}if(this[0]){S=t&&t.parentNode;S=ad.support.parentNode&&S&&S.nodeType===11&&S.childNodes.length===this.length?{fragment:S}:ad.buildFragment(V,this,B);E=S.fragment;if(P=E.childNodes.length===1?E=E.firstChild:E.firstChild){U=U&&ad.nodeName(P,"tr");P=0;for(var c=this.length;P<c;P++){T.call(U?ad.nodeName(this[P],"table")?this[P].getElementsByTagName("tbody")[0]||this[P].appendChild(this[P].ownerDocument.createElement("tbody")):this[P]:this[P],P>0||S.cacheable||this.length>1?E.cloneNode(true):E)}}B.length&&ad.each(B,aG)}return this}});ad.buildFragment=function(t,c,S){var P,E,B;c=c&&c[0]?c[0].ownerDocument||c[0]:K;if(t.length===1&&typeof t[0]==="string"&&t[0].length<512&&c===K&&!ax.test(t[0])&&(ad.support.checkClone||!Q.test(t[0]))){E=true;if(B=ad.fragments[t[0]]){if(B!==1){P=B}}}if(!P){P=c.createDocumentFragment();ad.clean(t,c,P,S)}if(E){ad.fragments[t[0]]=B?P:1}return{fragment:P,cacheable:E}};ad.fragments={};ad.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,c){ad.fn[t]=function(T){var S=[];T=ad(T);var P=this.length===1&&this[0].parentNode;if(P&&P.nodeType===11&&P.childNodes.length===1&&T.length===1){T[c](this[0]);return this}else{P=0;for(var E=T.length;P<E;P++){var B=(P>0?this.clone(true):this).get();ad(T[P])[c](B);S=S.concat(B)}return this.pushStack(S,t,T.selector)}}});ad.extend({clean:function(X,V,U,T){V=V||K;if(typeof V.createElement==="undefined"){V=V.ownerDocument||V[0]&&V[0].ownerDocument||K}for(var S=[],P=0,B;(B=X[P])!=null;P++){if(typeof B==="number"){B+=""}if(B){if(typeof B==="string"&&!g.test(B)){B=V.createTextNode(B)}else{if(typeof B==="string"){B=B.replace(aZ,"<$1></$2>");var E=(aM.exec(B)||["",""])[1].toLowerCase(),t=at[E]||at._default,W=t[0],c=V.createElement("div");for(c.innerHTML=t[1]+B+t[2];W--;){c=c.lastChild}if(!ad.support.tbody){W=v.test(B);E=E==="table"&&!W?c.firstChild&&c.firstChild.childNodes:t[1]==="<table>"&&!W?c.childNodes:[];for(t=E.length-1;t>=0;--t){ad.nodeName(E[t],"tbody")&&!E[t].childNodes.length&&E[t].parentNode.removeChild(E[t])}}!ad.support.leadingWhitespace&&aQ.test(B)&&c.insertBefore(V.createTextNode(aQ.exec(B)[0]),c.firstChild);B=c.childNodes}}if(B.nodeType){S.push(B)}else{S=ad.merge(S,B)}}}if(U){for(P=0;S[P];P++){if(T&&ad.nodeName(S[P],"script")&&(!S[P].type||S[P].type.toLowerCase()==="text/javascript")){T.push(S[P].parentNode?S[P].parentNode.removeChild(S[P]):S[P])}else{S[P].nodeType===1&&S.splice.apply(S,[P+1,0].concat(ad.makeArray(S[P].getElementsByTagName("script"))));U.appendChild(S[P])}}}return S},cleanData:function(V){for(var U,T,S=ad.cache,P=ad.event.special,E=ad.support.deleteExpando,t=0,B;(B=V[t])!=null;t++){if(!(B.nodeName&&ad.noData[B.nodeName.toLowerCase()])){if(T=B[ad.expando]){if((U=S[T])&&U.events){for(var c in U.events){P[c]?ad.event.remove(B,c):ad.removeEvent(B,c,U.handle)}}if(E){delete B[ad.expando]}else{B.removeAttribute&&B.removeAttribute(ad.expando)}delete S[T]}}}}});var A=/alpha\([^)]*\)/i,aL=/opacity=([^)]*)/,av=/-([a-z])/ig,N=/([A-Z])/g,l=/^-?\d+(?:px)?$/i,y=/^-?\d/,j={position:"absolute",visibility:"hidden",display:"block"},ah=["Left","Right"],I=["Top","Bottom"],am,a2,aK,a0=function(t,c){return c.toUpperCase()};ad.fn.css=function(t,c){if(arguments.length===2&&c===aD){return this}return ad.access(this,t,c,true,function(P,E,B){return B!==aD?ad.style(P,E,B):ad.css(P,E)})};ad.extend({cssHooks:{opacity:{get:function(t,c){if(c){var B=am(t,"opacity","opacity");return B===""?"1":B}else{return t.style.opacity}}}},cssNumber:{zIndex:true,fontWeight:true,opacity:true,zoom:true,lineHeight:true},cssProps:{"float":ad.support.cssFloat?"cssFloat":"styleFloat"},style:function(V,U,T,S){if(!(!V||V.nodeType===3||V.nodeType===8||!V.style)){var P,E=ad.camelCase(U),t=V.style,B=ad.cssHooks[E];U=ad.cssProps[E]||E;if(T!==aD){if(!(typeof T==="number"&&isNaN(T)||T==null)){if(typeof T==="number"&&!ad.cssNumber[E]){T+="px"}if(!B||!("set" in B)||(T=B.set(V,T))!==aD){try{t[U]=T}catch(c){}}}}else{if(B&&"get" in B&&(P=B.get(V,false,S))!==aD){return P}return t[U]}}},css:function(t,c,S){var P,E=ad.camelCase(c),B=ad.cssHooks[E];c=ad.cssProps[E]||E;if(B&&"get" in B&&(P=B.get(t,true,S))!==aD){return P}else{if(am){return am(t,c,E)}}},swap:function(t,c,P){var E={},B;for(B in c){E[B]=t.style[B];t.style[B]=c[B]}P.call(t);for(B in c){t.style[B]=E[B]}},camelCase:function(c){return c.replace(av,a0)}});ad.curCSS=ad.css;ad.each(["height","width"],function(t,c){ad.cssHooks[c]={get:function(S,P,E){var B;if(P){if(S.offsetWidth!==0){B=ac(S,c,E)}else{ad.swap(S,j,function(){B=ac(S,c,E)})}if(B<=0){B=am(S,c,c);if(B==="0px"&&aK){B=aK(S,c,c)}if(B!=null){return B===""||B==="auto"?"0px":B}}if(B<0||B==null){B=S.style[c];return B===""||B==="auto"?"0px":B}return typeof B==="string"?B:B+"px"}},set:function(E,B){if(l.test(B)){B=parseFloat(B);if(B>=0){return B+"px"}}else{return B}}}});if(!ad.support.opacity){ad.cssHooks.opacity={get:function(t,c){return aL.test((c&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100+"":c?"1":""},set:function(t,c){var P=t.style;P.zoom=1;var E=ad.isNaN(c)?"":"alpha(opacity="+c*100+")",B=P.filter||"";P.filter=A.test(B)?B.replace(A,E):P.filter+" "+E}}}if(K.defaultView&&K.defaultView.getComputedStyle){a2=function(t,c,E){var B;E=E.replace(N,"-$1").toLowerCase();if(!(c=t.ownerDocument.defaultView)){return aD}if(c=c.getComputedStyle(t,null)){B=c.getPropertyValue(E);if(B===""&&!ad.contains(t.ownerDocument.documentElement,t)){B=ad.style(t,E)}}return B}}if(K.documentElement.currentStyle){aK=function(t,c){var S,P,E=t.currentStyle&&t.currentStyle[c],B=t.style;if(!l.test(E)&&y.test(E)){S=B.left;P=t.runtimeStyle.left;t.runtimeStyle.left=t.currentStyle.left;B.left=c==="fontSize"?"1em":E||0;E=B.pixelLeft+"px";B.left=S;t.runtimeStyle.left=P}return E===""?"auto":E}}am=a2||aK;if(ad.expr&&ad.expr.filters){ad.expr.filters.hidden=function(t){var c=t.offsetHeight;return t.offsetWidth===0&&c===0||!ad.support.reliableHiddenOffsets&&(t.style.display||ad.css(t,"display"))==="none"};ad.expr.filters.visible=function(c){return !ad.expr.filters.hidden(c)}}var aN=ad.now(),ay=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,R=/^(?:select|textarea)/i,C=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,m=/^(?:GET|HEAD)$/,r=/\[\]$/,ap=/\=\?(&|$)/,z=/\?/,a3=/([?&])_=[^&]*/,aR=/^(\w+:)?\/\/([^\/?#]+)/,aE=/%20/g,af=/#.*$/,aP=ad.fn.load;ad.fn.extend({load:function(t,c,S){if(typeof t!=="string"&&aP){return aP.apply(this,arguments)}else{if(!this.length){return this}}var P=t.indexOf(" ");if(P>=0){var E=t.slice(P,t.length);t=t.slice(0,P)}P="GET";if(c){if(ad.isFunction(c)){S=c;c=null}else{if(typeof c==="object"){c=ad.param(c,ad.ajaxSettings.traditional);P="POST"}}}var B=this;ad.ajax({url:t,type:P,dataType:"html",data:c,complete:function(T,U){if(U==="success"||U==="notmodified"){B.html(E?ad("<div>").append(T.responseText.replace(ay,"")).find(E):T.responseText)}S&&B.each(S,[T.responseText,U,T])}});return this},serialize:function(){return ad.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?ad.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||R.test(this.nodeName)||C.test(this.type))}).map(function(t,c){var B=ad(this).val();return B==null?null:ad.isArray(B)?ad.map(B,function(E){return{name:c.name,value:E}}):{name:c.name,value:B}}).get()}});ad.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(t,c){ad.fn[c]=function(B){return this.bind(c,B)}});ad.extend({get:function(t,c,E,B){if(ad.isFunction(c)){B=B||E;E=c;c=null}return ad.ajax({type:"GET",url:t,data:c,success:E,dataType:B})},getScript:function(t,c){return ad.get(t,null,c,"script")},getJSON:function(t,c,B){return ad.get(t,c,B,"json")},post:function(t,c,E,B){if(ad.isFunction(c)){B=B||E;E=c;c={}}return ad.ajax({type:"POST",url:t,data:c,success:E,dataType:B})},ajaxSetup:function(c){ad.extend(ad.ajaxSettings,c)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return new az.XMLHttpRequest},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},ajax:function(ba){var a9=ad.extend(true,{},ad.ajaxSettings,ba),a8,a7,a6,aa=a9.type.toUpperCase(),X=m.test(aa);a9.url=a9.url.replace(af,"");a9.context=ba&&ba.context!=null?ba.context:a9;if(a9.data&&a9.processData&&typeof a9.data!=="string"){a9.data=ad.param(a9.data,a9.traditional)}if(a9.dataType==="jsonp"){if(aa==="GET"){ap.test(a9.url)||(a9.url+=(z.test(a9.url)?"&":"?")+(a9.jsonp||"callback")+"=?")}else{if(!a9.data||!ap.test(a9.data)){a9.data=(a9.data?a9.data+"&":"")+(a9.jsonp||"callback")+"=?"}}a9.dataType="json"}if(a9.dataType==="json"&&(a9.data&&ap.test(a9.data)||ap.test(a9.url))){a8=a9.jsonpCallback||"jsonp"+aN++;if(a9.data){a9.data=(a9.data+"").replace(ap,"="+a8+"$1")}a9.url=a9.url.replace(ap,"="+a8+"$1");a9.dataType="script";var Y=az[a8];az[a8]=function(bb){if(ad.isFunction(Y)){Y(bb)}else{az[a8]=aD;try{delete az[a8]}catch(bc){}}a6=bb;ad.handleSuccess(a9,P,a7,a6);ad.handleComplete(a9,P,a7,a6);T&&T.removeChild(U)}}if(a9.dataType==="script"&&a9.cache===null){a9.cache=false}if(a9.cache===false&&X){var V=ad.now(),E=a9.url.replace(a3,"$1_="+V);a9.url=E+(E===a9.url?(z.test(a9.url)?"&":"?")+"_="+V:"")}if(a9.data&&X){a9.url+=(z.test(a9.url)?"&":"?")+a9.data}a9.global&&ad.active++===0&&ad.event.trigger("ajaxStart");V=(V=aR.exec(a9.url))&&(V[1]&&V[1].toLowerCase()!==location.protocol||V[2].toLowerCase()!==location.host);if(a9.dataType==="script"&&aa==="GET"&&V){var T=K.getElementsByTagName("head")[0]||K.documentElement,U=K.createElement("script");if(a9.scriptCharset){U.charset=a9.scriptCharset}U.src=a9.url;if(!a8){var S=false;U.onload=U.onreadystatechange=function(){if(!S&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){S=true;ad.handleSuccess(a9,P,a7,a6);ad.handleComplete(a9,P,a7,a6);U.onload=U.onreadystatechange=null;T&&U.parentNode&&T.removeChild(U)}}}T.insertBefore(U,T.firstChild);return aD}var t=false,P=a9.xhr();if(P){a9.username?P.open(aa,a9.url,a9.async,a9.username,a9.password):P.open(aa,a9.url,a9.async);try{if(a9.data!=null&&!X||ba&&ba.contentType){P.setRequestHeader("Content-Type",a9.contentType)}if(a9.ifModified){ad.lastModified[a9.url]&&P.setRequestHeader("If-Modified-Since",ad.lastModified[a9.url]);ad.etag[a9.url]&&P.setRequestHeader("If-None-Match",ad.etag[a9.url])}V||P.setRequestHeader("X-Requested-With","XMLHttpRequest");P.setRequestHeader("Accept",a9.dataType&&a9.accepts[a9.dataType]?a9.accepts[a9.dataType]+", */*; q=0.01":a9.accepts._default)}catch(B){}if(a9.beforeSend&&a9.beforeSend.call(a9.context,P,a9)===false){a9.global&&ad.active--===1&&ad.event.trigger("ajaxStop");P.abort();return false}a9.global&&ad.triggerGlobal(a9,"ajaxSend",[P,a9]);var c=P.onreadystatechange=function(bb){if(!P||P.readyState===0||bb==="abort"){t||ad.handleComplete(a9,P,a7,a6);t=true;if(P){P.onreadystatechange=ad.noop}}else{if(!t&&P&&(P.readyState===4||bb==="timeout")){t=true;P.onreadystatechange=ad.noop;a7=bb==="timeout"?"timeout":!ad.httpSuccess(P)?"error":a9.ifModified&&ad.httpNotModified(P,a9.url)?"notmodified":"success";var bd;if(a7==="success"){try{a6=ad.httpData(P,a9.dataType,a9)}catch(bc){a7="parsererror";bd=bc}}if(a7==="success"||a7==="notmodified"){a8||ad.handleSuccess(a9,P,a7,a6)}else{ad.handleError(a9,P,a7,bd)}a8||ad.handleComplete(a9,P,a7,a6);bb==="timeout"&&P.abort();if(a9.async){P=null}}}};try{var ab=P.abort;P.abort=function(){P&&Function.prototype.call.call(ab,P);c("abort")}}catch(Z){}a9.async&&a9.timeout>0&&setTimeout(function(){P&&!t&&c("timeout")},a9.timeout);try{P.send(X||a9.data==null?null:a9.data)}catch(W){ad.handleError(a9,P,null,W);ad.handleComplete(a9,P,a7,a6)}a9.async||c();return P}},param:function(t,c){var P=[],E=function(T,S){S=ad.isFunction(S)?S():S;P[P.length]=encodeURIComponent(T)+"="+encodeURIComponent(S)};if(c===aD){c=ad.ajaxSettings.traditional}if(ad.isArray(t)||t.jquery){ad.each(t,function(){E(this.name,this.value)})}else{for(var B in t){x(B,t[B],c,E)}}return P.join("&").replace(aE,"+")}});ad.extend({active:0,lastModified:{},etag:{},handleError:function(t,c,E,B){t.error&&t.error.call(t.context,c,E,B);t.global&&ad.triggerGlobal(t,"ajaxError",[c,t,B])},handleSuccess:function(t,c,E,B){t.success&&t.success.call(t.context,B,E,c);t.global&&ad.triggerGlobal(t,"ajaxSuccess",[c,t])},handleComplete:function(t,c,B){t.complete&&t.complete.call(t.context,c,B);t.global&&ad.triggerGlobal(t,"ajaxComplete",[c,t]);t.global&&ad.active--===1&&ad.event.trigger("ajaxStop")},triggerGlobal:function(t,c,B){(t.context&&t.context.url==null?ad(t.context):ad.event).trigger(c,B)},httpSuccess:function(t){try{return !t.status&&location.protocol==="file:"||t.status>=200&&t.status<300||t.status===304||t.status===1223}catch(c){}return false},httpNotModified:function(t,c){var E=t.getResponseHeader("Last-Modified"),B=t.getResponseHeader("Etag");if(E){ad.lastModified[c]=E}if(B){ad.etag[c]=B}return t.status===304},httpData:function(t,c,P){var E=t.getResponseHeader("content-type")||"",B=c==="xml"||!c&&E.indexOf("xml")>=0;t=B?t.responseXML:t.responseText;B&&t.documentElement.nodeName==="parsererror"&&ad.error("parsererror");if(P&&P.dataFilter){t=P.dataFilter(t,c)}if(typeof t==="string"){if(c==="json"||!c&&E.indexOf("json")>=0){t=ad.parseJSON(t)}else{if(c==="script"||!c&&E.indexOf("javascript")>=0){ad.globalEval(t)}}}return t}});if(az.ActiveXObject){ad.ajaxSettings.xhr=function(){if(az.location.protocol!=="file:"){try{return new az.XMLHttpRequest}catch(t){}}try{return new az.ActiveXObject("Microsoft.XMLHTTP")}catch(c){}}}ad.support.ajax=!!ad.ajaxSettings.xhr();var h={},G=/^(?:toggle|show|hide)$/,p=/^([+\-]=)?([\d+.\-]+)(.*)$/,au,D=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];ad.fn.extend({show:function(t,c,E){if(t||t===0){return this.animate(aq("show",3),t,c,E)}else{E=0;for(var B=this.length;E<B;E++){t=this[E];c=t.style.display;if(!ad.data(t,"olddisplay")&&c==="none"){c=t.style.display=""}c===""&&ad.css(t,"display")==="none"&&ad.data(t,"olddisplay",n(t.nodeName))}for(E=0;E<B;E++){t=this[E];c=t.style.display;if(c===""||c==="none"){t.style.display=ad.data(t,"olddisplay")||""}}return this}},hide:function(t,c,B){if(t||t===0){return this.animate(aq("hide",3),t,c,B)}else{t=0;for(c=this.length;t<c;t++){B=ad.css(this[t],"display");B!=="none"&&ad.data(this[t],"olddisplay",B)}for(t=0;t<c;t++){this[t].style.display="none"}return this}},_toggle:ad.fn.toggle,toggle:function(t,c,E){var B=typeof t==="boolean";if(ad.isFunction(t)&&ad.isFunction(c)){this._toggle.apply(this,arguments)}else{t==null||B?this.each(function(){var P=B?t:ad(this).is(":hidden");ad(this)[P?"show":"hide"]()}):this.animate(aq("toggle",3),t,c,E)}return this},fadeTo:function(t,c,E,B){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:c},t,E,B)},animate:function(t,c,P,E){var B=ad.speed(c,P,E);if(ad.isEmptyObject(t)){return this.each(B.complete)}return this[B.queue===false?"each":"queue"](function(){var V=ad.extend({},B),T,U=this.nodeType===1,X=U&&ad(this).is(":hidden"),S=this;for(T in t){var W=ad.camelCase(T);if(T!==W){t[W]=t[T];delete t[T];T=W}if(t[T]==="hide"&&X||t[T]==="show"&&!X){return V.complete.call(this)}if(U&&(T==="height"||T==="width")){V.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(ad.css(this,"display")==="inline"&&ad.css(this,"float")==="none"){if(ad.support.inlineBlockNeedsLayout){if(n(this.nodeName)==="inline"){this.style.display="inline-block"}else{this.style.display="inline";this.style.zoom=1}}else{this.style.display="inline-block"}}}if(ad.isArray(t[T])){(V.specialEasing=V.specialEasing||{})[T]=t[T][1];t[T]=t[T][0]}}if(V.overflow!=null){this.style.overflow="hidden"}V.curAnim=ad.extend({},t);ad.each(t,function(Z,a8){var ab=new ad.fx(S,V,Z);if(G.test(a8)){ab[a8==="toggle"?X?"show":"hide":a8](t)}else{var aa=p.exec(a8),a6=ab.cur()||0;if(aa){var Y=parseFloat(aa[2]),a7=aa[3]||"px";if(a7!=="px"){ad.style(S,Z,(Y||1)+a7);a6=(Y||1)/ab.cur()*a6;ad.style(S,Z,a6+a7)}if(aa[1]){Y=(aa[1]==="-="?-1:1)*Y+a6}ab.custom(a6,Y,a7)}else{ab.custom(a6,a8,"")}}});return true})},stop:function(t,c){var B=ad.timers;t&&this.queue([]);this.each(function(){for(var E=B.length-1;E>=0;E--){if(B[E].elem===this){c&&B[E](true);B.splice(E,1)}}});c||this.dequeue();return this}});ad.each({slideDown:aq("show",1),slideUp:aq("hide",1),slideToggle:aq("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,c){ad.fn[t]=function(P,E,B){return this.animate(c,P,E,B)}});ad.extend({speed:function(t,c,E){var B=t&&typeof t==="object"?ad.extend({},t):{complete:E||!E&&c||ad.isFunction(t)&&t,duration:t,easing:E&&c||c&&!ad.isFunction(c)&&c};B.duration=ad.fx.off?0:typeof B.duration==="number"?B.duration:B.duration in ad.fx.speeds?ad.fx.speeds[B.duration]:ad.fx.speeds._default;B.old=B.complete;B.complete=function(){B.queue!==false&&ad(this).dequeue();ad.isFunction(B.old)&&B.old.call(this)};return B},easing:{linear:function(t,c,E,B){return E+B*t},swing:function(t,c,E,B){return(-Math.cos(t*Math.PI)/2+0.5)*B+E}},timers:[],fx:function(t,c,B){this.options=c;this.elem=t;this.prop=B;if(!c.orig){c.orig={}}}});ad.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(ad.fx.step[this.prop]||ad.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var c=parseFloat(ad.css(this.elem,this.prop));return c&&c>-10000?c:0},custom:function(t,c,S){function P(T){return E.step(T)}var E=this,B=ad.fx;this.startTime=ad.now();this.start=t;this.end=c;this.unit=S||this.unit||"px";this.now=this.start;this.pos=this.state=0;P.elem=this.elem;if(P()&&ad.timers.push(P)&&!au){au=setInterval(B.tick,B.interval)}},show:function(){this.options.orig[this.prop]=ad.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());ad(this.elem).show()},hide:function(){this.options.orig[this.prop]=ad.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(B){var c=ad.now(),T=true;if(B||c>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var S in this.options.curAnim){if(this.options.curAnim[S]!==true){T=false}}if(T){if(this.options.overflow!=null&&!ad.support.shrinkWrapBlocks){var P=this.elem,E=this.options;ad.each(["","X","Y"],function(U,V){P.style["overflow"+V]=E.overflow[U]})}this.options.hide&&ad(this.elem).hide();if(this.options.hide||this.options.show){for(var t in this.options.curAnim){ad.style(this.elem,t,this.options.orig[t])}}this.options.complete.call(this.elem)}return false}else{B=c-this.startTime;this.state=B/this.options.duration;c=this.options.easing||(ad.easing.swing?"swing":"linear");this.pos=ad.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||c](this.state,B,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};ad.extend(ad.fx,{tick:function(){for(var t=ad.timers,c=0;c<t.length;c++){t[c]()||t.splice(c--,1)}t.length||ad.fx.stop()},interval:13,stop:function(){clearInterval(au);au=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(c){ad.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(ad.expr&&ad.expr.filters){ad.expr.filters.animated=function(c){return ad.grep(ad.timers,function(t){return c===t.elem}).length}}var b=/^t(?:able|d|h)$/i,aB=/^(?:body|html)$/i;ad.fn.offset="getBoundingClientRect" in K.documentElement?function(t){var c=this[0],S;if(t){return this.each(function(T){ad.offset.setOffset(this,t,T)})}if(!c||!c.ownerDocument){return null}if(c===c.ownerDocument.body){return ad.offset.bodyOffset(c)}try{S=c.getBoundingClientRect()}catch(P){}var E=c.ownerDocument,B=E.documentElement;if(!S||!ad.contains(B,c)){return S||{top:0,left:0}}c=E.body;E=aY(E);return{top:S.top+(E.pageYOffset||ad.support.boxModel&&B.scrollTop||c.scrollTop)-(B.clientTop||c.clientTop||0),left:S.left+(E.pageXOffset||ad.support.boxModel&&B.scrollLeft||c.scrollLeft)-(B.clientLeft||c.clientLeft||0)}}:function(V){var U=this[0];if(V){return this.each(function(W){ad.offset.setOffset(this,V,W)})}if(!U||!U.ownerDocument){return null}if(U===U.ownerDocument.body){return ad.offset.bodyOffset(U)}ad.offset.initialize();var T,S=U.offsetParent,P=U.ownerDocument,E=P.documentElement,t=P.body;T=(P=P.defaultView)?P.getComputedStyle(U,null):U.currentStyle;for(var B=U.offsetTop,c=U.offsetLeft;(U=U.parentNode)&&U!==t&&U!==E;){if(ad.offset.supportsFixedPosition&&T.position==="fixed"){break}T=P?P.getComputedStyle(U,null):U.currentStyle;B-=U.scrollTop;c-=U.scrollLeft;if(U===S){B+=U.offsetTop;c+=U.offsetLeft;if(ad.offset.doesNotAddBorder&&!(ad.offset.doesAddBorderForTableAndCells&&b.test(U.nodeName))){B+=parseFloat(T.borderTopWidth)||0;c+=parseFloat(T.borderLeftWidth)||0}S=U.offsetParent}if(ad.offset.subtractsBorderForOverflowNotVisible&&T.overflow!=="visible"){B+=parseFloat(T.borderTopWidth)||0;c+=parseFloat(T.borderLeftWidth)||0}T=T}if(T.position==="relative"||T.position==="static"){B+=t.offsetTop;c+=t.offsetLeft}if(ad.offset.supportsFixedPosition&&T.position==="fixed"){B+=Math.max(E.scrollTop,t.scrollTop);c+=Math.max(E.scrollLeft,t.scrollLeft)}return{top:B,left:c}};ad.offset={initialize:function(){var t=K.body,c=K.createElement("div"),S,P,E,B=parseFloat(ad.css(t,"marginTop"))||0;ad.extend(c.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});c.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>";t.insertBefore(c,t.firstChild);S=c.firstChild;P=S.firstChild;E=S.nextSibling.firstChild.firstChild;this.doesNotAddBorder=P.offsetTop!==5;this.doesAddBorderForTableAndCells=E.offsetTop===5;P.style.position="fixed";P.style.top="20px";this.supportsFixedPosition=P.offsetTop===20||P.offsetTop===15;P.style.position=P.style.top="";S.style.overflow="hidden";S.style.position="relative";this.subtractsBorderForOverflowNotVisible=P.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=t.offsetTop!==B;t.removeChild(c);ad.offset.initialize=ad.noop},bodyOffset:function(t){var c=t.offsetTop,B=t.offsetLeft;ad.offset.initialize();if(ad.offset.doesNotIncludeMarginInBodyOffset){c+=parseFloat(ad.css(t,"marginTop"))||0;B+=parseFloat(ad.css(t,"marginLeft"))||0}return{top:c,left:B}},setOffset:function(W,U,T){var S=ad.css(W,"position");if(S==="static"){W.style.position="relative"}var P=ad(W),E=P.offset(),t=ad.css(W,"top"),B=ad.css(W,"left"),c=S==="absolute"&&ad.inArray("auto",[t,B])>-1;S={};var V={};if(c){V=P.position()}t=c?V.top:parseInt(t,10)||0;B=c?V.left:parseInt(B,10)||0;if(ad.isFunction(U)){U=U.call(W,T,E)}if(U.top!=null){S.top=U.top-E.top+t}if(U.left!=null){S.left=U.left-E.left+B}"using" in U?U.using.call(W,S):P.css(S)}};ad.fn.extend({position:function(){if(!this[0]){return null}var t=this[0],c=this.offsetParent(),E=this.offset(),B=aB.test(c[0].nodeName)?{top:0,left:0}:c.offset();E.top-=parseFloat(ad.css(t,"marginTop"))||0;E.left-=parseFloat(ad.css(t,"marginLeft"))||0;B.top+=parseFloat(ad.css(c[0],"borderTopWidth"))||0;B.left+=parseFloat(ad.css(c[0],"borderLeftWidth"))||0;return{top:E.top-B.top,left:E.left-B.left}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent||K.body;c&&!aB.test(c.nodeName)&&ad.css(c,"position")==="static";){c=c.offsetParent}return c})}});ad.each(["Left","Top"],function(t,c){var B="scroll"+c;ad.fn[B]=function(S){var P=this[0],E;if(!P){return null}if(S!==aD){return this.each(function(){if(E=aY(this)){E.scrollTo(!t?S:ad(E).scrollLeft(),t?S:ad(E).scrollTop())}else{this[B]=S}})}else{return(E=aY(P))?"pageXOffset" in E?E[t?"pageYOffset":"pageXOffset"]:ad.support.boxModel&&E.document.documentElement[B]||E.document.body[B]:P[B]}}});ad.each(["Height","Width"],function(t,c){var B=c.toLowerCase();ad.fn["inner"+c]=function(){return this[0]?parseFloat(ad.css(this[0],B,"padding")):null};ad.fn["outer"+c]=function(E){return this[0]?parseFloat(ad.css(this[0],B,E?"margin":"border")):null};ad.fn[B]=function(S){var P=this[0];if(!P){return S==null?null:this}if(ad.isFunction(S)){return this.each(function(T){var U=ad(this);U[B](S.call(this,T,U[B]()))})}if(ad.isWindow(P)){return P.document.compatMode==="CSS1Compat"&&P.document.documentElement["client"+c]||P.document.body["client"+c]}else{if(P.nodeType===9){return Math.max(P.documentElement["client"+c],P.body["scroll"+c],P.documentElement["scroll"+c],P.body["offset"+c],P.documentElement["offset"+c])}else{if(S===aD){P=ad.css(P,B);var E=parseFloat(P);return ad.isNaN(E)?P:E}else{return this.css(B,typeof S==="string"?S:S+"px")}}}}})})(window);(function(e){var b=e.scrollTo=function(d,f,g){e(window).scrollTo(d,f,g)};b.defaults={axis:"xy",duration:parseFloat(e.fn.jquery)>=1.3?0:1};b.window=function(d){return e(window)._scrollable()};e.fn._scrollable=function(){return this.map(function(){var d=this,f=!d.nodeName||e.inArray(d.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!f){return d}var g=(d.contentWindow||d).document||d.ownerDocument||d;return e.browser.safari||g.compatMode=="BackCompat"?g.body:g.documentElement})};e.fn.scrollTo=function(g,f,d){if(typeof f=="object"){d=f;f=0}if(typeof d=="function"){d={onAfter:d}}if(g=="max"){g=9000000000}d=e.extend({},b.defaults,d);f=f||d.speed||d.duration;d.queue=d.queue&&d.axis.length>1;if(d.queue){f/=2}d.offset=c(d.offset);d.over=c(d.over);return this._scrollable().each(function(){var o=this,m=e(o),n=g,k,l={},h=m.is("html,body");switch(typeof n){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(n)){n=c(n);break}n=e(n,this);case"object":if(n.is||n.style){k=(n=e(n)).offset()}}e.each(d.axis.split(""),function(r,s){var v=s=="x"?"Left":"Top",t=v.toLowerCase(),y="scroll"+v,q=o[y],p=b.max(o,s);if(k){l[y]=k[t]+(h?0:q-m.offset()[t]);if(d.margin){l[y]-=parseInt(n.css("margin"+v))||0;l[y]-=parseInt(n.css("border"+v+"Width"))||0}l[y]+=d.offset[t]||0;if(d.over[t]){l[y]+=n[s=="x"?"width":"height"]()*d.over[t]}}else{var x=n[t];l[y]=x.slice&&x.slice(-1)=="%"?parseFloat(x)/100*p:x}if(/^\d+$/.test(l[y])){l[y]=l[y]<=0?0:Math.min(l[y],p)}if(!r&&d.queue){if(q!=l[y]){j(d.onAfterFirst)}delete l[y]}});j(d.onAfter);function j(p){m.animate(l,f,d.easing,p&&function(){p.call(this,g,d)})}}).end()};b.max=function(g,j){var n=j=="x"?"Width":"Height",k="scroll"+n;if(!e(g).is("html,body")){return g[k]-e(g)[n.toLowerCase()]()}var o="client"+n,f=g.ownerDocument.documentElement,d=g.ownerDocument.body;return Math.max(f[k],d[k])-Math.min(f[o],d[o])};function c(d){return typeof d=="object"?d:{top:d,left:d}}})(jQuery);(function(e){var b=location.href.replace(/#.*/,"");var d=e.localScroll=function(f){e("body").localScroll(f)};d.defaults={duration:1000,axis:"y",event:"click",stop:true,target:window,reset:true};d.hash=function(f){if(location.hash){f=e.extend({},d.defaults,f);f.hash=false;if(f.reset){var g=f.duration;delete f.duration;e(f.target).scrollTo(0,f);f.duration=g}c(0,location,f)}};e.fn.localScroll=function(f){f=e.extend({},d.defaults,f);return f.lazy?this.bind(f.event,function(h){var j=e([h.target,h.target.parentNode]).filter(g)[0];if(j){c(h,j,f)}}):this.find("a,area").filter(g).bind(f.event,function(h){c(h,this,f)}).end().end();function g(){return !!this.href&&!!this.hash&&this.href.replace(this.hash,"")==b&&(!f.filter||e(this).is(f.filter))}};function c(l,q,g){var r=q.hash.slice(1),p=document.getElementById(r)||document.getElementsByName(r)[0];if(!p){return}if(l){l.preventDefault()}var o=e(g.target);if(g.lock&&o.is(":animated")||g.onBefore&&g.onBefore.call(g,l,p,o)===false){return}if(g.stop){o.stop(true)}if(g.hash){var n=p.id==r?"id":"name",m=e("<a> </a>").attr(n,r).css({position:"absolute",top:e(window).scrollTop(),left:e(window).scrollLeft()});p[n]="";e("body").prepend(m);location=q.hash;m.remove();p[n]=r}o.scrollTo(p,g).trigger("notify.serialScroll",[p])}})(jQuery);var lang=document.getElementsByTagName("html")[0].getAttribute("lang");if(lang=="ca"){universitat="La Universitat a Twitter";publi="Publicat fa ";dia=" dia";dies=" dies";hora=" hora";hores=" hores";segon=" segon";minut=" minut";minuts=" minuts";carrega="Carregant...";no_info="No hi ha mÃ©s informaciÃ³";mes_tweets="MÃ©s tweets";mes_info="MÃ©s";desde=" des de";retweet=" retweet de: ";menys_minut=" menys d'un minut";ago="";usuari="ub_endirecte";enllac="http://twitter.com/ub_endirecte"}else{if(lang=="es"){universitat="La Universidad en Twitter";publi="Publicado hace ";dia=" dÃa";dies=" dias";hora=" hora";hores=" horas";segon=" segundo";minut=" minuto";minuts=" minutos";carrega="Cargando...";no_info="No hay mÃ¡s informaciÃ³n";mes_tweets="MÃ¡s tweets";mes_info="MÃ¡s";desde=" desde";retweet=" retweet de: ";menys_minut=" menos de un minuto";ago="";usuari="ub_endirecto";enllac="http://twitter.com/ub_endirecto"}else{universitat="The University on Twitter";publi=" ";dia=" day";dies=" days";hora=" hour";hores=" hours";segon=" second";minut=" minute";minuts=" minutes";carrega="Loading...";no_info="No more information";mes_tweets="More tweets";mes_info="More";desde=" from: ";retweet=" retweet de: ";menys_minut=" less than a minute";ago=" ago";usuari="ub_live";enllac="http://twitter.com/ub_live"}}var formato="dd/mm/yyyy";var fichero_consulta="/js/days.php";var dir_imagenes="img/";var preposiciones={ca:new Array("de","para"),es:new Array("de","para"),en:new Array("of","to")};var carga={ca:new Array("Carregant..."),es:new Array("Cargando..."),en:new Array("Loading...")};var Meses={ca:new Array("Gener","Febrer","MarÃ§","Abril","Maig","Juny","Juliol","Agost","Sep","Oct","Nov","Des"),es:new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"),en:new Array("January","February","March","April","May","June","July","August","September","October","November","December")};var encabezados={ca:new Array("l","m","m","j","v","s","d"),es:new Array("Lunes","Martes","Miercoles","Jueves","Viernes","Sabado","Domingo"),en:new Array("Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday")};var texto_enlace={ca:"Calendari",es:"Calendario",en:"Calendar"};var title_enlace={ca:"Desplegar per seleccionar la data per",es:"Desplegar para seleccionar la fecha para",en:"Unfold to select date to"};var go_month={ca:"Accedir al mes",es:"Acceder al mes",en:"Go to month"};var go_year={ca:"Accedir al any",es:"Acceder al aÃ±o",en:"Go to year"};var summary={ca:"Calendari amb els dies disponibles corresponents al mes de",es:"Calendario con los dÃas disponibles correspondientes al mes de",en:"Calendar with the available days of"};var close_text={ca:"X ",es:"X ",en:"X "};var tit_dia={ca:"Seleccionar aquesta data",es:"Seleccionar esta fecha",en:"Select this date"};var label_mes={ca:"Mes",es:"Mes",en:"Month"};var label_year={ca:"Any",es:"AÃ±o",en:"Year"};var label_class={ca:"fecha",es:"fecha",en:"fecha"};var lang=document.getElementsByTagName("html")[0].getAttribute("lang");if(!lang){var lang=document.getElementsByTagName("html")[0].getAttribute("xml:lang")}if(!lang){lang="es"}else{lang=lang.toLowerCase()}if(lang.substr(0,2)!="es"&&lang.substr(0,2)!="en"&&lang.substr(0,2)!="ca"){var lang="es"}var DiasPorMes=[31,28,31,30,31,30,31,31,30,31,30,31];var tope;var destino;var tope_mes=true;var todact;var Hoy_real=new Date();var labels=document.getElementsByTagName("label");var inputs=document.getElementsByTagName("input");var nav=navigator.userAgent.toLowerCase();this.nav=nav;var destino;var comp=1900;if(nav.indexOf("msie")!=-1||(nav.indexOf("opera")!=-1&&parseFloat(navigator.appVersion,10)>=9.5)){comp=0}document.onkeydown=teclado;var contador=1;function teclado(c){var b;if(!c){var c=window.event}if(window.event){b=window.event.keyCode}else{if(c.which){b=c.which}else{return true}}if(!b){return true}if(b==27||b==32&&document.getElementById("bio_calendar")){cierra(destino);return false}return true}function insertAfter(d,c){var b=d.parentNode;if(d.nextSibling){b.insertBefore(c,d.nextSibling)}else{b.appendChild(c)}}function cierra(b){if(document.getElementById("bio_calendar")){document.getElementById("bio_calendar").parentNode.removeChild(document.getElementById("bio_calendar"));if(b){if(document.getElementById(b).disabled==false){document.getElementById(b).focus()}}}}function padre(c,b){if(c==null){return null}else{if(c.nodeType==1&&c.tagName.toLowerCase()==b.toLowerCase()){return(c)}else{return padre(c.parentNode,b)}}}function zindex(b){if(b==null){return null}else{if(b.nodeType==1&&b.tagName.toLowerCase()!="body"){b.parentNode.style.zIndex=1000+contador}else{return zindex(b.parentNode)}}}function obten_texto(d){if(d.nodeType==3){return d.nodeValue}var b=new Array(),c=0;while(d.childNodes[c]){b[b.length]=obten_texto(d.childNodes[c]);c++}return b.join("")}function carga_estilos(){var b=document.getElementsByTagName("script");for(var d=0;d<b.length;d++){if(b[d].src.indexOf("acc_calendar.js")>-1){var e=b[d].src.replace(".js",".css");var c=document.createElement("link");c.setAttribute("rel","stylesheet");c.setAttribute("type","text/css");c.setAttribute("href",e);insertAfter(b[d],c)}}}function cargaLinks(){for(var f=0;f<labels.length;f++){var g=labels[f].htmlFor;var j=document.getElementById(g);if(!document.getElementById("cal_"+g)){var o=new Array();if(j.type=="text"&&j.className.indexOf(label_class[lang.substr(0,2)])!=-1){if(j.className){var n=j.className.split(" ");for(var k=0;k<n.length;k++){if(n[k].indexOf(label_class[lang.substr(0,2)])!=-1&&n[k].length>label_class[lang.substr(0,2)].length){o=getElementsByClassName(document,"input",n[k])}}if(o.length==3){j=o[0];f=f+2}}var l=j.id;var h=document.createElement("a");h.className="enl_cal";if(o.length==3){h.className="enl_cal_group"}h.id="cal_"+l;var c=document.createElement("img");c.setAttribute("alt",texto_enlace[lang.substr(0,2)]);c.setAttribute("src",dir_imagenes+"/acc_calendar.png");h.appendChild(c);var b=0;if(j.className.indexOf("rang")!=-1){var d=j.className.split("rang");var m=d[1].indexOf(" ");if(m!=-1){b=d[1].substr(0,m)}else{b=d[1]}}if(j.className.indexOf("todnact")!=-1){todact=false}else{todact=true}var e=false;if(j.className.indexOf("disp")!=-1){e=true}h.setAttribute("href","javascript:calendario("+e+","+todact+","+Hoy_real.getMonth()+',"","","'+l+'",'+b+")");h.setAttribute("title",title_enlace[lang.substr(0,2)]+" "+obten_texto(labels[f]));if(o.length<3){if(padre(j,"label")){insertAfter(padre(j,"label"),h)}else{insertAfter(j,h)}}else{j.parentNode.parentNode.insertBefore(h,j.parentNode)}if(!h.parentNode.style.position){h.parentNode.style.position="relative"}}}}}Array.prototype.indexOf=function(c){for(var b=0;b<this.length;b++){if(this[b]==c){return b+1}}};function calendario(f,j,l,n,q,d,c,p){var h=document.getElementById("bio_calendar");if(d!=destino&&h){cierra(destino);h=false}if(h){var b=new Array("nav_mes","label_Meses");for(i=0;i<b.length;i++){if(document.getElementById(b[i])){h.removeChild(document.getElementById(b[i]))}}if(c>0){h.removeChild(document.getElementById("nav_year"));h.removeChild(document.getElementById("label_year"))}document.getElementById("calendario").removeChild(document.getElementById("caption"));document.getElementById("calendario").removeChild(document.getElementById("tbody"))}else{h=document.createElement("div")}h.id="bio_calendar";if(!document.getElementById("calendario")){insertAfter(document.getElementById("cal_"+d),h);zindex(h);h.style.top=(document.getElementById(d).offsetHeight+document.getElementById(d).offsetTop)+"px";h.style.left=(document.getElementById("cal_"+d).offsetLeft-2*(h.offsetWidth/3))+"px"}if(!document.getElementById("close_it")){var m=document.createElement("div");m.id="close_it";var k=document.createElement("a");var e=document.createTextNode(close_text[lang.substr(0,2)]);k.setAttribute("href",'javascript:cierra("'+d+'")');k.appendChild(e);m.appendChild(k);h.appendChild(m)}var g=document.createElement("img");g.id="en_carga";g.src="img/loading.gif";g.setAttribute("alt",carga[lang.substr(0,2)]);h.appendChild(g);destino=d;var o=new Date();if(document.getElementById(d).className.indexOf("post")!=-1){tope=2}else{if(document.getElementById(d).className.indexOf("prev")!=-1){tope=1}else{tope=0}}if(!(l+1)){l=o.getMonth()}if(!n){n=o.getYear()}ajax_izar.sendRequest(f,fichero_consulta,function(s,U,G){if(destino==d){var S=new Array;if(U){var S=s.responseText.split(",");for(var P=0;P<S.length;P++){S[P]=S[P]+"d"}}else{for(var P=0;P<=31;P++){S.push(P+"d")}}if(d!=destino){cierra(destino)}o.setMonth(l);o.setYear(n+comp);Anyo=o.getYear()+comp;if(((Anyo%4==0)&&(Anyo%100!=0))||(Anyo%400==0)){DiasPorMes[1]=29}else{DiasPorMes[1]=28}NDias=DiasPorMes[l];PrimerDia=o;PrimerDia.setDate(1);if(lang=="en-us"){PrimerDia.setDate(2)}Comienzo=PrimerDia.getDay();if(Comienzo==0){Comienzo=7}var T=Comienzo+NDias;var R=new Array();for(var P=0;P<Comienzo-1;P++){R[P]=""}for(var P=Comienzo-1;P<T-1;P++){R[P]=P-Comienzo+2}var v=7-(P%7);if(v<7){var C=R.length+v;for(var t=R.length;t<C;t++){R[t]=""}}var I=(R.length/7)-1;var J=new Array();for(var P=0;P<R.length;P++){J[P]=document.createElement("td");var A=document.createTextNode(R[P]);if(S.indexOf(R[P]+"d")>=0){var D=document.createElement("a");D.id="dat_"+R[P];D.setAttribute("href","javascript:send_date("+G+","+j+',"'+A.nodeValue+"/"+(l+1)+"/"+(n+comp)+'","'+d+'",'+c+")");D.onclick=function(){var W=document.getElementById("nombre_dia_"+d);if(W){if(W.tagName.toLowerCase()!="input"){if(document.getElementById("nw_"+d)){W.removeChild(document.getElementById("nw_"+d))}var V=document.createElement("span");V.id="nw_"+d;V.appendChild(document.createTextNode(encabezados[lang.substr(0,2)][padre(this.parentNode,"td").id.substring(3,4)]));W.appendChild(V)}else{W.value=encabezados[lang.substr(0,2)][padre(this.parentNode,"td").id.substring(3,4)]}}};D.setAttribute("title",tit_dia[lang.substr(0,2)])}else{var D=document.createElement("span")}if(R[P]==Hoy_real.getDate()&&l==Hoy_real.getMonth()&&n==Hoy_real.getYear()){var B=document.createElement("strong");J[P].className="hoy";if(j){D.appendChild(A);B.appendChild(D);J[P].className="act"}else{B.appendChild(A);J[P].className="inact"}J[P].appendChild(B)}else{if(R[P]>0){if((((R[P]<Hoy_real.getDate())&&(l==Hoy_real.getMonth()&&n==Hoy_real.getYear()))||(l<Hoy_real.getMonth()&&n==Hoy_real.getYear())||(n<Hoy_real.getYear()))&&R[P]>0){if(tope!=2){D.appendChild(A);J[P].appendChild(D);J[P].className="act"}else{J[P].appendChild(A);J[P].className="inact"}}else{if(tope!=1){D.appendChild(A);J[P].appendChild(D);J[P].className="act"}else{J[P].appendChild(A);J[P].className="inact"}}}else{J[P].appendChild(A)}}if(R[P]==p){J[P].className="elect "+J[P].className}}if(!document.getElementById("calendario")){var L=document.createElement("table");L.id="calendario"}else{L=document.getElementById("calendario")}L.setAttribute("summary",summary[lang.substr(0,2)]+" "+Meses[lang.substr(0,2)][l]+" "+preposiciones[lang.substr(0,2)][0]+" "+Anyo);var y=document.createElement("caption");y.id="caption";var r=document.createTextNode(Meses[lang.substr(0,2)][l]+" "+(n+comp));y.appendChild(r);L.appendChild(y);if(lang!="en-us"&&!document.getElementById("calendario")){var z=document.createElement("colgroup");z.setAttribute("span","5");var N=document.createElement("colgroup");N.className="end";N.setAttribute("span","2");L.appendChild(z);L.appendChild(N)}var F=document.createElement("thead");var Q=document.createElement("tr");for(var P=0;P<encabezados[lang.substr(0,2)].length;P++){var H=document.createElement("th");H.setAttribute("scope","col");var x=document.createElement("abbr");var M=P;if(lang=="en-us"){M=P-1;if(M==-1){M=6}else{if(M+1==encabezados.length){M=0}}}x.setAttribute("title",encabezados[lang.substr(0,2)][M]);var O=document.createTextNode(encabezados[lang.substr(0,2)][M].substr(0,3));x.appendChild(O);H.appendChild(x);Q.appendChild(H)}F.appendChild(Q);if(!document.getElementById("calendario")){L.appendChild(F)}var K=document.createElement("tbody");K.id="tbody";for(var P=0;P<=I;P++){var E=document.createElement("tr");for(a=0;a<7;a++){if(J[(P*7)+a]){J[(P*7)+a].id="dw_"+a;if(a==5){J[(P*7)+a].className="sat "+J[(P*7)+a].className}else{if(a==6){J[(P*7)+a].className="sun "+J[(P*7)+a].className}}E.appendChild(J[(P*7)+a])}}K.appendChild(E)}L.appendChild(K);if(!document.getElementById("calendario")){zindex(h);contador=contador+1;h.style.top=(document.getElementById(d).offsetHeight+document.getElementById(d).offsetTop)+"px";h.style.left=(document.getElementById("cal_"+d).offsetLeft-2*(h.offsetWidth/3))+"px"}crea_nav_year_select(G,j,l,n,d,c);g.parentNode.removeChild(g);h.appendChild(L);crea_nav_mes(G,j,l,n,d,c);crea_nav_year(G,j,l,n,d,c);if(document.getElementById("nav_year_select")){if(c==0){document.getElementById("nav_mes_select").focus()}else{document.getElementById("nav_year_select").focus()}}}},"month="+(l+1)+"&year="+(n+comp));if(h){zindex(h)}}function crea_nav_mes(h,j,n,q,c,b){var s=document.createElement("ul");s.id="nav_mes";var o=document.createElement("li");if(n-1==-1){var f=11;var g=q-1}else{var f=n-1;var g=q}var m=document.createTextNode("<<");var d=document.createElement("a");d.setAttribute("href","javascript:calendario("+h+","+j+","+f+","+g+',"","'+c+'",'+b+")");d.appendChild(m);d.setAttribute("title",go_month[lang.substr(0,2)]);o.appendChild(d);var e=document.createElement("li");o.className="post";if(n==11){var k=0;var l=q+1}else{var k=n+1;var l=q}var r=document.createTextNode(">>");var p=document.createElement("a");p.setAttribute("href","javascript:calendario("+h+","+j+","+k+","+l+',"","'+c+'",'+b+")");p.appendChild(r);p.setAttribute("title",go_month[lang.substr(0,2)]);e.appendChild(p);switch(tope){case 0:if(g>=(Hoy_real.getYear()-b)){s.appendChild(o)}if(l<=(Hoy_real.getYear()+b)){s.appendChild(e)}break;case 1:if(g>=(Hoy_real.getYear()-b)){s.appendChild(o)}if(l<=(Hoy_real.getYear()+1)&&l<=(Hoy_real.getYear()+b)){if((tope_mes&&k<=Hoy_real.getMonth())||l<Hoy_real.getYear()){s.appendChild(e)}}break;case 2:if(g>=Hoy_real.getYear()&&g>=(Hoy_real.getYear()-b)){if((tope_mes&&f>=Hoy_real.getMonth())||l>Hoy_real.getYear()){s.appendChild(o)}}if(l<=(Hoy_real.getYear()+b)){s.appendChild(e)}break}document.getElementById("bio_calendar").appendChild(s)}function crea_nav_mes_select(e,f,h,j,c,b){var n=document.createElement("select");n.id="nav_mes_select";var g=document.createElement("label");g.htmlFor="nav_mes_select";g.id="label_Meses";var m=document.createTextNode(label_mes[lang.substr(0,2)]);if(j==Hoy_real.getYear()){switch(tope){case 0:var l=0;var k=Meses[lang.substr(0,2)].length;break;case 1:var l=0;var k=Hoy_real.getMonth()+1;break;case 2:var l=Hoy_real.getMonth();var k=Meses[lang.substr(0,2)].length;break}}else{var l=0;var k=Meses[lang.substr(0,2)].length}for(i=l;i<k;i++){var d=document.createElement("option");if(i==h){d.setAttribute("selected","selected")}d.innerHTML=Meses[lang.substr(0,2)][i];n.appendChild(d)}n.onchange=function(){switch(tope){case 0:calendario(e,f,n.selectedIndex,j,"",c,b);break;case 1:if((tope_mes&&j==Hoy_real.getYear()&&n.selectedIndex<=Hoy_real.getMonth())||j<Hoy_real.getYear()){calendario(e,f,n.selectedIndex,j,"",c,b)}else{n.selectedIndex=h}break;case 2:if((tope_mes&&j>Hoy_real.getYear())||(tope_mes&&j==Hoy_real.getYear()&&(n.selectedIndex+Hoy_real.getMonth())>=Hoy_real.getMonth())||j>Hoy_real.getYear()){if(tope_mes&&j>Hoy_real.getYear()){calendario(e,f,n.selectedIndex,j,"",c,b)}else{calendario(e,f,n.selectedIndex+Hoy_real.getMonth(),j,"",c,b)}}else{n.selectedIndex=h}break}};g.appendChild(m);g.appendChild(n);if(document.getElementById("nav_mes_select")){document.getElementById("nav_mes_select").focus()}if(k-l){document.getElementById("bio_calendar").appendChild(g)}}function crea_nav_year(g,h,k,m,d,b){var f="";var f=document.createElement("ul");f.id="nav_year";var c=document.createElement("li");c.className="post";var l=document.createTextNode("");var n=document.createElement("a");n.setAttribute("title",go_year[lang.substr(0,2)]);var e=document.createElement("li");var j=document.createTextNode("");var o=document.createElement("a");o.setAttribute("title",go_year[lang.substr(0,2)]);if(!k){k=0}n.appendChild(l);c.appendChild(n);o.appendChild(j);e.appendChild(o);switch(tope){case 0:n.setAttribute("href","javascript:calendario("+g+","+h+","+k+","+(m-1)+',"","'+d+'",'+b+")");o.setAttribute("href","javascript:calendario("+g+","+h+","+k+","+(m+1)+',"","'+d+'",'+b+")");if((m-1)>=(Hoy_real.getYear()-b)){f.appendChild(c)}if(m+1<=Hoy_real.getYear()+b){f.appendChild(e)}break;case 1:n.setAttribute("href","javascript:calendario("+g+","+h+","+k+","+(m-1)+',"","'+d+'",'+b+")");if(tope_mes&&k<=Hoy_real.getMonth()){o.setAttribute("href","javascript:calendario("+g+","+h+","+k+","+(m+1)+',"","'+d+'",'+b+")")}else{o.setAttribute("href","javascript:calendario("+g+","+h+","+Hoy_real.getMonth()+","+(m+1)+',"","'+d+'",'+b+")")}if((m-1)>=(Hoy_real.getYear()-b)){f.appendChild(c)}if(m+1<=Hoy_real.getYear()){f.appendChild(e)}break;case 2:if(tope_mes&&k>=Hoy_real.getMonth()){n.setAttribute("href","javascript:calendario("+g+","+h+","+k+","+(m-1)+',"","'+d+'",'+b+")")}else{n.setAttribute("href","javascript:calendario("+g+","+h+","+Hoy_real.getMonth()+","+(m-1)+',"","'+d+'",'+b+")")}o.setAttribute("href","javascript:calendario("+g+","+h+","+k+","+(m+1)+',"","'+d+'",'+b+")");if(m-1>=Hoy_real.getYear()){f.appendChild(c)}if((m+1)<=(Hoy_real.getYear()+b)){f.appendChild(e)}break}if(b>0){document.getElementById("bio_calendar").appendChild(f)}}function crea_nav_year_select(g,j,l,n,d,b){var e=document.createElement("select");e.id="nav_year_select";var c=document.createElement("label");c.htmlFor="nav_year_select";c.id="label_year";var f=document.createTextNode(label_year[lang.substr(0,2)]);var k=Hoy_real.getYear()-b;var m=Hoy_real.getYear()+b;if(tope==1){m=Hoy_real.getYear()}else{if(tope==2){k=Hoy_real.getYear()}}k=k+comp;m=m+comp;for(i=k;i<=m;i++){var h=document.createElement("option");if(i==(n+comp)){h.setAttribute("selected","selected")}h.innerHTML=i;e.appendChild(h)}e.onchange=function(){switch(tope){case 0:calendario(g,j,l,e.options[e.selectedIndex].text-comp,"",d,b);break;case 1:if(tope_mes&&(e.options[e.selectedIndex].text-comp<Hoy_real.getYear()||(e.options[e.selectedIndex].text-comp==Hoy_real.getYear()&&l<=Hoy_real.getMonth()))){calendario(g,j,l,e.options[e.selectedIndex].text-comp,"",d,b)}else{calendario(g,j,Hoy_real.getMonth(),e.options[e.selectedIndex].text-comp,"",d,b)}break;case 2:if(tope_mes&&((e.options[e.selectedIndex].text-comp>Hoy_real.getYear())||((e.options[e.selectedIndex].text-comp==Hoy_real.getYear())&&l>=Hoy_real.getMonth()))){calendario(g,j,l,e.options[e.selectedIndex].text-comp,"",d,b)}else{calendario(g,j,Hoy_real.getMonth(),e.options[e.selectedIndex].text-comp,"",d,b)}break}};if(b>0){document.getElementById("bio_calendar").appendChild(c)}}function getElementsByClassName(l,m,n){var g=(m=="*"&&l.all)?l.all:l.getElementsByTagName(m);var f=new Array();var o=new Array();if(typeof n=="object"){for(var e=0;e<n.length;e++){o.push(new RegExp("(^|\\s)"+n[e].replace(/\-/g,"\\-")+"(\\s|$)"))}}else{o.push(new RegExp("(^|\\s)"+n.replace(/\-/g,"\\-")+"(\\s|$)"))}var b;var h;for(var d=0;d<g.length;d++){b=g[d];h=true;for(var c=0;c<o.length;c++){if(!o[c].test(b.className)){h=false;break}}if(h){f.push(b)}}return(f)}function send_date(h,k,q,o,e){var b=q.split("/");var n=b[0];var r=b[1];var j=b[2];var g=new Array();var s=formato.lastIndexOf("d")-formato.indexOf("d")+1;var d=formato.lastIndexOf("m")-formato.indexOf("m")+1;var t=formato.lastIndexOf("y")-formato.indexOf("y")+1;if(t<2||t==3){t=2}if(t>4){t=4}var l=formato;if(b[0].length==1&&s>=2){b[0]="0"+b[0]}l=l.replace("d",b[0]);for(m=0;m<=s;m++){l=l.replace("d","")}if(b[1].length==1&&d>=2){b[1]="0"+b[1]}l=l.replace("m",b[1]);for(m=0;m<=d;m++){l=l.replace("m","")}var c=0;if(t==2){c=2}l=l.replace("y",b[2].substr(c,t));for(m=0;m<=t;m++){l=l.replace("y","")}var p=document.getElementById(o);var f=p.className.split(" ");for(var m=0;m<f.length;m++){if(f[m].indexOf(label_class[lang.substr(0,2)])!=-1&&f[m].length>label_class[lang.substr(0,2)].length){g=getElementsByClassName(document,"input",f[m])}}if(g.length==3){for(var m=0;m<=2;m++){if(g[m].className.indexOf("day")!=-1){g[m].value=b[0]}if(g[m].className.indexOf("month")!=-1){g[m].value=b[1]}if(g[m].className.indexOf("year")!=-1){g[m].value=b[2]}}cierra(g[2].id)}else{p.value=l;cierra(o)}document.getElementById("cal_"+o).setAttribute("href","javascript:calendario("+h+","+k+","+(b[1]-1)+", "+(b[2]-comp)+' ,"","'+o+'",'+e+","+b[0]+")")}ajax_izar={XMLHttpFactories:[function(){return new XMLHttpRequest()},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")},],sendRequest:function(e,c,g,b){if(e){var d=ajax_izar.createXMLHTTPObject();if(!d){return}var f=(b)?"POST":"GET";d.open(f,c,true);d.setRequestHeader("User-Agent","XMLHTTP/1.0");if(b){d.setRequestHeader("Content-type","application/x-www-form-urlencoded")}d.onreadystatechange=function(){if(d.readyState!=4){return}if(d.status!=200&&d.status!=304){g(d,false,e);return}else{g(d,true,e)}};if(d.readyState==4){return}d.send(b)}else{g(d,false,e)}},createXMLHTTPObject:function(c,h,b){var f=false;for(var d=0;d<ajax_izar.XMLHttpFactories.length;d++){try{f=ajax_izar.XMLHttpFactories[d]()}catch(g){continue}break}return f}};function addLoadEvent(b){var c=window.onload;if(typeof window.onload!="function"){window.onload=b}else{window.onload=function(){c();b()}}}addLoadEvent(carga_estilos);addLoadEvent(cargaLinks);var formato="dd/mm/yyyy";var fichero_consulta="/js/days.php";var dir_imagenes="img/";var preposiciones={ca:new Array("de","para"),es:new Array("de","para"),en:new Array("of","to")};var carga={ca:new Array("Carregant..."),es:new Array("Cargando..."),en:new Array("Loading...")};var Meses={ca:new Array("Gener","Febrer","MarÃ§","Abril","Maig","Juny","Juliol","Agost","Sep","Oct","Nov","Des"),es:new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"),en:new Array("January","February","March","April","May","June","July","August","September","October","November","December")};var encabezados={ca:new Array("Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte","Diumenge"),es:new Array("Lunes","Martes","Miercoles","Jueves","Viernes","Sabado","Domingo"),en:new Array("Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday")};var texto_enlace={ca:"Calendari",es:"Calendario",en:"Calendar"};var title_enlace={ca:"Desplegar per seleccionar la data per",es:"Desplegar para seleccionar la fecha para",en:"Unfold to select date to"};var go_month={ca:"Accedir al mes",es:"Acceder al mes",en:"Go to month"};var go_year={ca:"Accedir al any",es:"Acceder al aÃ±o",en:"Go to year"};var summary={ca:"Calendari amb els dies disponibles corresponents al mes de",es:"Calendario con los dÃas disponibles correspondientes al mes de",en:"Calendar with the available days of"};var close_text={ca:"Tancar el calendari",es:"Cerrar el calendario",en:"Close calendar"};var tit_dia={ca:"Seleccionar aquesta data",es:"Seleccionar esta fecha",en:"Select this date"};var label_mes={ca:"Mes",es:"Mes",en:"Month"};var label_year={ca:"Any",es:"AÃ±o",en:"Year"};var label_class={ca:"fecha",es:"fecha",en:"fecha"};var lang=document.getElementsByTagName("html")[0].getAttribute("lang");if(!lang){var lang=document.getElementsByTagName("html")[0].getAttribute("xml:lang")}if(!lang){lang="es"}else{lang=lang.toLowerCase()}if(lang.substr(0,2)!="es"&&lang.substr(0,2)!="en"&&lang.substr(0,2)!="ca"){var lang="es"}var DiasPorMes=[31,28,31,30,31,30,31,31,30,31,30,31];var tope;var destino;var tope_mes=true;var todact;var Hoy_real=new Date();var labels=document.getElementsByTagName("label");var inputs=document.getElementsByTagName("input");var nav=navigator.userAgent.toLowerCase();this.nav=nav;var destino;var comp=1900;if(nav.indexOf("msie")!=-1||(nav.indexOf("opera")!=-1&&parseFloat(navigator.appVersion,10)>=9.5)){comp=0}document.onkeydown=teclado;var contador=1;function teclado(c){var b;if(!c){var c=window.event}if(window.event){b=window.event.keyCode}else{if(c.which){b=c.which}else{return true}}if(!b){return true}if(b==27||b==32&&document.getElementById("bio_calendar")){cierra(destino);return false}return true}function insertAfter(d,c){var b=d.parentNode;if(d.nextSibling){b.insertBefore(c,d.nextSibling)}else{b.appendChild(c)}}function cierra(b){if(document.getElementById("bio_calendar")){document.getElementById("bio_calendar").parentNode.removeChild(document.getElementById("bio_calendar"));if(b){if(document.getElementById(b).disabled==false){document.getElementById(b).focus()}}}}function padre(c,b){if(c==null){return null}else{if(c.nodeType==1&&c.tagName.toLowerCase()==b.toLowerCase()){return(c)}else{return padre(c.parentNode,b)}}}function zindex(b){if(b==null){return null}else{if(b.nodeType==1&&b.tagName.toLowerCase()!="body"){b.parentNode.style.zIndex=1000+contador}else{return zindex(b.parentNode)}}}function obten_texto(d){if(d.nodeType==3){return d.nodeValue}var b=new Array(),c=0;while(d.childNodes[c]){b[b.length]=obten_texto(d.childNodes[c]);c++}return b.join("")}function carga_estilos(){var b=document.getElementsByTagName("script");for(var d=0;d<b.length;d++){if(b[d].src.indexOf("acc_calendar.js")>-1){var e=b[d].src.replace(".js",".css");var c=document.createElement("link");c.setAttribute("rel","stylesheet");c.setAttribute("type","text/css");c.setAttribute("href",e);insertAfter(b[d],c)}}}function cargaLinks(){for(var f=0;f<labels.length;f++){var g=labels[f].htmlFor;var j=document.getElementById(g);if(!document.getElementById("cal_"+g)){var o=new Array();if(j.type=="text"&&j.className.indexOf(label_class[lang.substr(0,2)])!=-1){if(j.className){var n=j.className.split(" ");for(var k=0;k<n.length;k++){if(n[k].indexOf(label_class[lang.substr(0,2)])!=-1&&n[k].length>label_class[lang.substr(0,2)].length){o=getElementsByClassName(document,"input",n[k])}}if(o.length==3){j=o[0];f=f+2}}var l=j.id;var h=document.createElement("a");h.className="enl_cal";if(o.length==3){h.className="enl_cal_group"}h.id="cal_"+l;var c=document.createElement("img");c.setAttribute("alt",texto_enlace[lang.substr(0,2)]);c.setAttribute("src",dir_imagenes+"/acc_calendar.png");h.appendChild(c);var b=0;if(j.className.indexOf("rang")!=-1){var d=j.className.split("rang");var m=d[1].indexOf(" ");if(m!=-1){b=d[1].substr(0,m)}else{b=d[1]}}if(j.className.indexOf("todnact")!=-1){todact=false}else{todact=true}var e=false;if(j.className.indexOf("disp")!=-1){e=true}h.setAttribute("href","javascript:calendario("+e+","+todact+","+Hoy_real.getMonth()+',"","","'+l+'",'+b+")");h.setAttribute("title",title_enlace[lang.substr(0,2)]+" "+obten_texto(labels[f]));if(o.length<3){if(padre(j,"label")){insertAfter(padre(j,"label"),h)}else{insertAfter(j,h)}}else{j.parentNode.parentNode.insertBefore(h,j.parentNode)}if(!h.parentNode.style.position){h.parentNode.style.position="relative"}}}}}Array.prototype.indexOf=function(c){for(var b=0;b<this.length;b++){if(this[b]==c){return b+1}}};function calendario(f,j,l,n,q,d,c,p){var h=document.getElementById("bio_calendar");if(d!=destino&&h){cierra(destino);h=false}if(h){var b=new Array("nav_mes","label_Meses");for(i=0;i<b.length;i++){if(document.getElementById(b[i])){h.removeChild(document.getElementById(b[i]))}}if(c>0){h.removeChild(document.getElementById("nav_year"));h.removeChild(document.getElementById("label_year"))}document.getElementById("calendario").removeChild(document.getElementById("caption"));document.getElementById("calendario").removeChild(document.getElementById("tbody"))}else{h=document.createElement("div")}h.id="bio_calendar";if(!document.getElementById("calendario")){insertAfter(document.getElementById("cal_"+d),h);zindex(h);h.style.top=(document.getElementById(d).offsetHeight+document.getElementById(d).offsetTop)+"px";h.style.left=(document.getElementById("cal_"+d).offsetLeft-2*(h.offsetWidth/3))+"px"}if(!document.getElementById("close_it")){var m=document.createElement("div");m.id="close_it";var k=document.createElement("a");var e=document.createTextNode(close_text[lang.substr(0,2)]);k.setAttribute("href",'javascript:cierra("'+d+'")');k.appendChild(e);m.appendChild(k);h.appendChild(m)}var g=document.createElement("img");g.id="en_carga";g.src="img/loading.gif";g.setAttribute("alt",carga[lang.substr(0,2)]);h.appendChild(g);destino=d;var o=new Date();if(document.getElementById(d).className.indexOf("post")!=-1){tope=2}else{if(document.getElementById(d).className.indexOf("prev")!=-1){tope=1}else{tope=0}}if(!(l+1)){l=o.getMonth()}if(!n){n=o.getYear()}ajax_izar.sendRequest(f,fichero_consulta,function(s,U,G){if(destino==d){var S=new Array;if(U){var S=s.responseText.split(",");for(var P=0;P<S.length;P++){S[P]=S[P]+"d"}}else{for(var P=0;P<=31;P++){S.push(P+"d")}}if(d!=destino){cierra(destino)}o.setMonth(l);o.setYear(n+comp);Anyo=o.getYear()+comp;if(((Anyo%4==0)&&(Anyo%100!=0))||(Anyo%400==0)){DiasPorMes[1]=29}else{DiasPorMes[1]=28}NDias=DiasPorMes[l];PrimerDia=o;PrimerDia.setDate(1);if(lang=="en-us"){PrimerDia.setDate(2)}Comienzo=PrimerDia.getDay();if(Comienzo==0){Comienzo=7}var T=Comienzo+NDias;var R=new Array();for(var P=0;P<Comienzo-1;P++){R[P]=""}for(var P=Comienzo-1;P<T-1;P++){R[P]=P-Comienzo+2}var v=7-(P%7);if(v<7){var C=R.length+v;for(var t=R.length;t<C;t++){R[t]=""}}var I=(R.length/7)-1;var J=new Array();for(var P=0;P<R.length;P++){J[P]=document.createElement("td");var A=document.createTextNode(R[P]);if(S.indexOf(R[P]+"d")>=0){var D=document.createElement("a");D.id="dat_"+R[P];D.setAttribute("href","javascript:send_date("+G+","+j+',"'+A.nodeValue+"/"+(l+1)+"/"+(n+comp)+'","'+d+'",'+c+")");D.onclick=function(){var W=document.getElementById("nombre_dia_"+d);if(W){if(W.tagName.toLowerCase()!="input"){if(document.getElementById("nw_"+d)){W.removeChild(document.getElementById("nw_"+d))}var V=document.createElement("span");V.id="nw_"+d;V.appendChild(document.createTextNode(encabezados[lang.substr(0,2)][padre(this.parentNode,"td").id.substring(3,4)]));W.appendChild(V)}else{W.value=encabezados[lang.substr(0,2)][padre(this.parentNode,"td").id.substring(3,4)]}}};D.setAttribute("title",tit_dia[lang.substr(0,2)])}else{var D=document.createElement("span")}if(R[P]==Hoy_real.getDate()&&l==Hoy_real.getMonth()&&n==Hoy_real.getYear()){var B=document.createElement("strong");J[P].className="hoy";if(j){D.appendChild(A);B.appendChild(D);J[P].className="act"}else{B.appendChild(A);J[P].className="inact"}J[P].appendChild(B)}else{if(R[P]>0){if((((R[P]<Hoy_real.getDate())&&(l==Hoy_real.getMonth()&&n==Hoy_real.getYear()))||(l<Hoy_real.getMonth()&&n==Hoy_real.getYear())||(n<Hoy_real.getYear()))&&R[P]>0){if(tope!=2){D.appendChild(A);J[P].appendChild(D);J[P].className="act"}else{J[P].appendChild(A);J[P].className="inact"}}else{if(tope!=1){D.appendChild(A);J[P].appendChild(D);J[P].className="act"}else{J[P].appendChild(A);J[P].className="inact"}}}else{J[P].appendChild(A)}}if(R[P]==p){J[P].className="elect "+J[P].className}}if(!document.getElementById("calendario")){var L=document.createElement("table");L.id="calendario"}else{L=document.getElementById("calendario")}L.setAttribute("summary",summary[lang.substr(0,2)]+" "+Meses[lang.substr(0,2)][l]+" "+preposiciones[lang.substr(0,2)][0]+" "+Anyo);var y=document.createElement("caption");y.id="caption";var r=document.createTextNode(Meses[lang.substr(0,2)][l]+" "+(n+comp));y.appendChild(r);L.appendChild(y);if(lang!="en-us"&&!document.getElementById("calendario")){var z=document.createElement("colgroup");z.setAttribute("span","5");var N=document.createElement("colgroup");N.className="end";N.setAttribute("span","2");L.appendChild(z);L.appendChild(N)}var F=document.createElement("thead");var Q=document.createElement("tr");for(var P=0;P<encabezados[lang.substr(0,2)].length;P++){var H=document.createElement("th");H.setAttribute("scope","col");var x=document.createElement("abbr");var M=P;if(lang=="en-us"){M=P-1;if(M==-1){M=6}else{if(M+1==encabezados.length){M=0}}}x.setAttribute("title",encabezados[lang.substr(0,2)][M]);var O=document.createTextNode(encabezados[lang.substr(0,2)][M].substr(0,3));x.appendChild(O);H.appendChild(x);Q.appendChild(H)}F.appendChild(Q);if(!document.getElementById("calendario")){L.appendChild(F)}var K=document.createElement("tbody");K.id="tbody";for(var P=0;P<=I;P++){var E=document.createElement("tr");for(a=0;a<7;a++){if(J[(P*7)+a]){J[(P*7)+a].id="dw_"+a;if(a==5){J[(P*7)+a].className="sat "+J[(P*7)+a].className}else{if(a==6){J[(P*7)+a].className="sun "+J[(P*7)+a].className}}E.appendChild(J[(P*7)+a])}}K.appendChild(E)}L.appendChild(K);if(!document.getElementById("calendario")){zindex(h);contador=contador+1;h.style.top=(document.getElementById(d).offsetHeight+document.getElementById(d).offsetTop)+"px";h.style.left=(document.getElementById("cal_"+d).offsetLeft-2*(h.offsetWidth/3))+"px"}crea_nav_year_select(G,j,l,n,d,c);crea_nav_mes_select(G,j,l,n,d,c);g.parentNode.removeChild(g);h.appendChild(L);crea_nav_mes(G,j,l,n,d,c);crea_nav_year(G,j,l,n,d,c);if(document.getElementById("nav_year_select")){if(c==0){document.getElementById("nav_mes_select").focus()}else{document.getElementById("nav_year_select").focus()}}}},"month="+(l+1)+"&year="+(n+comp));if(h){zindex(h)}}function crea_nav_mes(h,j,n,q,c,b){var s=document.createElement("ul");s.id="nav_mes";var o=document.createElement("li");if(n-1==-1){var f=11;var g=q-1}else{var f=n-1;var g=q}var m=document.createTextNode(Meses[lang.substr(0,2)][f]);var d=document.createElement("a");d.setAttribute("href","javascript:calendario("+h+","+j+","+f+","+g+',"","'+c+'",'+b+")");d.appendChild(m);d.setAttribute("title",go_month[lang.substr(0,2)]);o.appendChild(d);var e=document.createElement("li");o.className="post";if(n==11){var k=0;var l=q+1}else{var k=n+1;var l=q}var r=document.createTextNode(Meses[lang.substr(0,2)][k]);var p=document.createElement("a");p.setAttribute("href","javascript:calendario("+h+","+j+","+k+","+l+',"","'+c+'",'+b+")");p.appendChild(r);p.setAttribute("title",go_month[lang.substr(0,2)]);e.appendChild(p);switch(tope){case 0:if(g>=(Hoy_real.getYear()-b)){s.appendChild(o)}if(l<=(Hoy_real.getYear()+b)){s.appendChild(e)}break;case 1:if(g>=(Hoy_real.getYear()-b)){s.appendChild(o)}if(l<=(Hoy_real.getYear()+1)&&l<=(Hoy_real.getYear()+b)){if((tope_mes&&k<=Hoy_real.getMonth())||l<Hoy_real.getYear()){s.appendChild(e)}}break;case 2:if(g>=Hoy_real.getYear()&&g>=(Hoy_real.getYear()-b)){if((tope_mes&&f>=Hoy_real.getMonth())||l>Hoy_real.getYear()){s.appendChild(o)}}if(l<=(Hoy_real.getYear()+b)){s.appendChild(e)}break}document.getElementById("bio_calendar").appendChild(s)}function crea_nav_mes_select(e,f,h,j,c,b){var n=document.createElement("select");n.id="nav_mes_select";var g=document.createElement("label");g.htmlFor="nav_mes_select";g.id="label_Meses";var m=document.createTextNode(label_mes[lang.substr(0,2)]);if(j==Hoy_real.getYear()){switch(tope){case 0:var l=0;var k=Meses[lang.substr(0,2)].length;break;case 1:var l=0;var k=Hoy_real.getMonth()+1;break;case 2:var l=Hoy_real.getMonth();var k=Meses[lang.substr(0,2)].length;break}}else{var l=0;var k=Meses[lang.substr(0,2)].length}for(i=l;i<k;i++){var d=document.createElement("option");if(i==h){d.setAttribute("selected","selected")}d.innerHTML=Meses[lang.substr(0,2)][i];n.appendChild(d)}n.onchange=function(){switch(tope){case 0:calendario(e,f,n.selectedIndex,j,"",c,b);break;case 1:if((tope_mes&&j==Hoy_real.getYear()&&n.selectedIndex<=Hoy_real.getMonth())||j<Hoy_real.getYear()){calendario(e,f,n.selectedIndex,j,"",c,b)}else{n.selectedIndex=h}break;case 2:if((tope_mes&&j>Hoy_real.getYear())||(tope_mes&&j==Hoy_real.getYear()&&(n.selectedIndex+Hoy_real.getMonth())>=Hoy_real.getMonth())||j>Hoy_real.getYear()){if(tope_mes&&j>Hoy_real.getYear()){calendario(e,f,n.selectedIndex,j,"",c,b)}else{calendario(e,f,n.selectedIndex+Hoy_real.getMonth(),j,"",c,b)}}else{n.selectedIndex=h}break}};g.appendChild(m);g.appendChild(n);if(document.getElementById("nav_mes_select")){document.getElementById("nav_mes_select").focus()}if(k-l){document.getElementById("bio_calendar").appendChild(g)}}function crea_nav_year(g,h,k,m,d,b){var f=document.createElement("ul");f.id="nav_year";var c=document.createElement("li");c.className="post";var l=document.createTextNode(m+comp-1);var n=document.createElement("a");n.setAttribute("title",go_year[lang.substr(0,2)]);var e=document.createElement("li");var j=document.createTextNode(m+comp+1);var o=document.createElement("a");o.setAttribute("title",go_year[lang.substr(0,2)]);if(!k){k=0}n.appendChild(l);c.appendChild(n);o.appendChild(j);e.appendChild(o);switch(tope){case 0:n.setAttribute("href","javascript:calendario("+g+","+h+","+k+","+(m-1)+',"","'+d+'",'+b+")");o.setAttribute("href","javascript:calendario("+g+","+h+","+k+","+(m+1)+',"","'+d+'",'+b+")");if((m-1)>=(Hoy_real.getYear()-b)){f.appendChild(c)}if(m+1<=Hoy_real.getYear()+b){f.appendChild(e)}break;case 1:n.setAttribute("href","javascript:calendario("+g+","+h+","+k+","+(m-1)+',"","'+d+'",'+b+")");if(tope_mes&&k<=Hoy_real.getMonth()){o.setAttribute("href","javascript:calendario("+g+","+h+","+k+","+(m+1)+',"","'+d+'",'+b+")")}else{o.setAttribute("href","javascript:calendario("+g+","+h+","+Hoy_real.getMonth()+","+(m+1)+',"","'+d+'",'+b+")")}if((m-1)>=(Hoy_real.getYear()-b)){f.appendChild(c)}if(m+1<=Hoy_real.getYear()){f.appendChild(e)}break;case 2:if(tope_mes&&k>=Hoy_real.getMonth()){n.setAttribute("href","javascript:calendario("+g+","+h+","+k+","+(m-1)+',"","'+d+'",'+b+")")}else{n.setAttribute("href","javascript:calendario("+g+","+h+","+Hoy_real.getMonth()+","+(m-1)+',"","'+d+'",'+b+")")}o.setAttribute("href","javascript:calendario("+g+","+h+","+k+","+(m+1)+',"","'+d+'",'+b+")");if(m-1>=Hoy_real.getYear()){f.appendChild(c)}if((m+1)<=(Hoy_real.getYear()+b)){f.appendChild(e)}break}if(b>0){document.getElementById("bio_calendar").appendChild(f)}}function crea_nav_year_select(g,j,l,n,d,b){var e=document.createElement("select");e.id="nav_year_select";var c=document.createElement("label");c.htmlFor="nav_year_select";c.id="label_year";var f=document.createTextNode(label_year[lang.substr(0,2)]);var k=Hoy_real.getYear()-b;var m=Hoy_real.getYear()+b;if(tope==1){m=Hoy_real.getYear()}else{if(tope==2){k=Hoy_real.getYear()}}k=k+comp;m=m+comp;for(i=k;i<=m;i++){var h=document.createElement("option");if(i==(n+comp)){h.setAttribute("selected","selected")}h.innerHTML=i;e.appendChild(h)}e.onchange=function(){switch(tope){case 0:calendario(g,j,l,e.options[e.selectedIndex].text-comp,"",d,b);break;case 1:if(tope_mes&&(e.options[e.selectedIndex].text-comp<Hoy_real.getYear()||(e.options[e.selectedIndex].text-comp==Hoy_real.getYear()&&l<=Hoy_real.getMonth()))){calendario(g,j,l,e.options[e.selectedIndex].text-comp,"",d,b)}else{calendario(g,j,Hoy_real.getMonth(),e.options[e.selectedIndex].text-comp,"",d,b)}break;case 2:if(tope_mes&&((e.options[e.selectedIndex].text-comp>Hoy_real.getYear())||((e.options[e.selectedIndex].text-comp==Hoy_real.getYear())&&l>=Hoy_real.getMonth()))){calendario(g,j,l,e.options[e.selectedIndex].text-comp,"",d,b)}else{calendario(g,j,Hoy_real.getMonth(),e.options[e.selectedIndex].text-comp,"",d,b)}break}};c.appendChild(f);c.appendChild(e);if(b>0){document.getElementById("bio_calendar").appendChild(c)}}function getElementsByClassName(l,m,n){var g=(m=="*"&&l.all)?l.all:l.getElementsByTagName(m);var f=new Array();var o=new Array();if(typeof n=="object"){for(var e=0;e<n.length;e++){o.push(new RegExp("(^|\\s)"+n[e].replace(/\-/g,"\\-")+"(\\s|$)"))}}else{o.push(new RegExp("(^|\\s)"+n.replace(/\-/g,"\\-")+"(\\s|$)"))}var b;var h;for(var d=0;d<g.length;d++){b=g[d];h=true;for(var c=0;c<o.length;c++){if(!o[c].test(b.className)){h=false;break}}if(h){f.push(b)}}return(f)}function send_date(h,k,q,o,e){var b=q.split("/");var n=b[0];var r=b[1];var j=b[2];var g=new Array();var s=formato.lastIndexOf("d")-formato.indexOf("d")+1;var d=formato.lastIndexOf("m")-formato.indexOf("m")+1;var t=formato.lastIndexOf("y")-formato.indexOf("y")+1;if(t<2||t==3){t=2}if(t>4){t=4}var l=formato;if(b[0].length==1&&s>=2){b[0]="0"+b[0]}l=l.replace("d",b[0]);for(m=0;m<=s;m++){l=l.replace("d","")}if(b[1].length==1&&d>=2){b[1]="0"+b[1]}l=l.replace("m",b[1]);for(m=0;m<=d;m++){l=l.replace("m","")}var c=0;if(t==2){c=2}l=l.replace("y",b[2].substr(c,t));for(m=0;m<=t;m++){l=l.replace("y","")}var p=document.getElementById(o);var f=p.className.split(" ");for(var m=0;m<f.length;m++){if(f[m].indexOf(label_class[lang.substr(0,2)])!=-1&&f[m].length>label_class[lang.substr(0,2)].length){g=getElementsByClassName(document,"input",f[m])}}if(g.length==3){for(var m=0;m<=2;m++){if(g[m].className.indexOf("day")!=-1){g[m].value=b[0]}if(g[m].className.indexOf("month")!=-1){g[m].value=b[1]}if(g[m].className.indexOf("year")!=-1){g[m].value=b[2]}}cierra(g[2].id)}else{p.value=l;cierra(o)}document.getElementById("cal_"+o).setAttribute("href","javascript:calendario("+h+","+k+","+(b[1]-1)+", "+(b[2]-comp)+' ,"","'+o+'",'+e+","+b[0]+")")}ajax_izar={XMLHttpFactories:[function(){return new XMLHttpRequest()},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")},],sendRequest:function(e,c,g,b){if(e){var d=ajax_izar.createXMLHTTPObject();if(!d){return}var f=(b)?"POST":"GET";d.open(f,c,true);d.setRequestHeader("User-Agent","XMLHTTP/1.0");if(b){d.setRequestHeader("Content-type","application/x-www-form-urlencoded")}d.onreadystatechange=function(){if(d.readyState!=4){return}if(d.status!=200&&d.status!=304){g(d,false,e);return}else{g(d,true,e)}};if(d.readyState==4){return}d.send(b)}else{g(d,false,e)}},createXMLHTTPObject:function(c,h,b){var f=false;for(var d=0;d<ajax_izar.XMLHttpFactories.length;d++){try{f=ajax_izar.XMLHttpFactories[d]()}catch(g){continue}break}return f}};function addLoadEvent(b){var c=window.onload;if(typeof window.onload!="function"){window.onload=b}else{window.onload=function(){c();b()}}}addLoadEvent(carga_estilos);addLoadEvent(cargaLinks);Date.dayNames=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];Date.abbrDayNames=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];Date.monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"];Date.abbrMonthNames=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];Date.firstDayOfWeek=1;Date.format="dd/mm/yyyy";Date.fullYearStart="20";(function(){function c(d,e){if(!Date.prototype[d]){Date.prototype[d]=e}}c("isLeapYear",function(){var d=this.getFullYear();return(d%4==0&&d%100!=0)||d%400==0});c("isWeekend",function(){return this.getDay()==0||this.getDay()==6});c("isWeekDay",function(){return !this.isWeekend()});c("getDaysInMonth",function(){return[31,(this.isLeapYear()?29:28),31,30,31,30,31,31,30,31,30,31][this.getMonth()]});c("getDayName",function(d){return d?Date.abbrDayNames[this.getDay()]:Date.dayNames[this.getDay()]});c("getMonthName",function(d){return d?Date.abbrMonthNames[this.getMonth()]:Date.monthNames[this.getMonth()]});c("getDayOfYear",function(){var d=new Date("1/1/"+this.getFullYear());return Math.floor((this.getTime()-d.getTime())/86400000)});c("getWeekOfYear",function(){return Math.ceil(this.getDayOfYear()/7)});c("setDayOfYear",function(d){this.setMonth(0);this.setDate(d);return this});c("addYears",function(d){this.setFullYear(this.getFullYear()+d);return this});c("addMonths",function(e){var d=this.getDate();this.setMonth(this.getMonth()+e);if(d>this.getDate()){this.addDays(-this.getDate())}return this});c("addDays",function(d){this.setDate(this.getDate()+d);return this});c("addHours",function(d){this.setHours(this.getHours()+d);return this});c("addMinutes",function(d){this.setMinutes(this.getMinutes()+d);return this});c("addSeconds",function(d){this.setSeconds(this.getSeconds()+d);return this});c("zeroTime",function(){this.setMilliseconds(0);this.setSeconds(0);this.setMinutes(0);this.setHours(0);return this});c("asString",function(){var d=Date.format;return d.split("yyyy").join(this.getFullYear()).split("yy").join((this.getFullYear()+"").substring(2)).split("mmm").join(this.getMonthName(true)).split("mm").join(b(this.getMonth()+1)).split("dd").join(b(this.getDate()))});Date.fromString=function(h){var j=Date.format;var l=new Date("01/01/1977");var m=j.indexOf("yyyy");if(m>-1){l.setFullYear(Number(h.substr(m,4)))}else{l.setFullYear(Number(Date.fullYearStart+h.substr(j.indexOf("yy"),2)))}var e=j.indexOf("mmm");if(e>-1){var k=h.substr(e,3);for(var g=0;g<Date.abbrMonthNames.length;g++){if(Date.abbrMonthNames[g]==k){break}}l.setMonth(g)}else{l.setMonth(Number(h.substr(j.indexOf("mm"),2))-1)}l.setDate(Number(h.substr(j.indexOf("dd"),2)));if(isNaN(l.getTime())){return false}return l};var b=function(d){var e="0"+d;return e.substring(e.length-2)}})();eval(function(h,b,j,d,g,f){g=function(e){return(e<b?"":g(parseInt(e/b)))+((e=e%b)>35?String.fromCharCode(e+29):e.toString(36))};if(!"".replace(/^/,String)){while(j--){f[g(j)]=d[j]||g(j)}d=[function(c){return f[c]}];g=function(){return"\\w+"};j=1}while(j--){if(d[j]){h=h.replace(new RegExp("\\b"+g(j)+"\\b","g"),d[j])}}return h}("(5($){$.19={P:'1.2'};$.u(['j','w'],5(i,d){$.q['O'+d]=5(){p(!3[0])6;g a=d=='j'?'s':'m',e=d=='j'?'D':'C';6 3.B(':y')?3[0]['L'+d]:4(3,d.x())+4(3,'n'+a)+4(3,'n'+e)};$.q['I'+d]=5(b){p(!3[0])6;g c=d=='j'?'s':'m',e=d=='j'?'D':'C';b=$.F({t:Z},b||{});g a=3.B(':y')?3[0]['8'+d]:4(3,d.x())+4(3,'E'+c+'w')+4(3,'E'+e+'w')+4(3,'n'+c)+4(3,'n'+e);6 a+(b.t?(4(3,'t'+c)+4(3,'t'+e)):0)}});$.u(['m','s'],5(i,b){$.q['l'+b]=5(a){p(!3[0])6;6 a!=W?3.u(5(){3==h||3==r?h.V(b=='m'?a:$(h)['U'](),b=='s'?a:$(h)['T']()):3['l'+b]=a}):3[0]==h||3[0]==r?S[(b=='m'?'R':'Q')]||$.N&&r.M['l'+b]||r.A['l'+b]:3[0]['l'+b]}});$.q.F({z:5(){g a=0,f=0,o=3[0],8,9,7,v;p(o){7=3.7();8=3.8();9=7.8();8.f-=4(o,'K');8.k-=4(o,'J');9.f+=4(7,'H');9.k+=4(7,'Y');v={f:8.f-9.f,k:8.k-9.k}}6 v},7:5(){g a=3[0].7;G(a&&(!/^A|10$/i.16(a.15)&&$.14(a,'z')=='13'))a=a.7;6 $(a)}});5 4(a,b){6 12($.11(a.17?a[0]:a,b,18))||0}})(X);",62,72,"|||this|num|function|return|offsetParent|offset|parentOffset|||||borr|top|var|window||Height|left|scroll|Left|padding|elem|if|fn|document|Top|margin|each|results|Width|toLowerCase|visible|position|body|is|Right|Bottom|border|extend|while|borderTopWidth|outer|marginLeft|marginTop|client|documentElement|boxModel|inner|version|pageYOffset|pageXOffset|self|scrollTop|scrollLeft|scrollTo|undefined|jQuery|borderLeftWidth|false|html|curCSS|parseInt|static|css|tagName|test|jquery|true|dimensions".split("|"),0,{}));jQuery.extend({dimScreen:function(c,b,e){if(jQuery("#__dimScreen").size()>0){return}if(typeof c=="function"){e=c;c=null}if(typeof b=="function"){e=b;b=null}if(c<1){var d=b;b=c;c=d}if(b>=1){var d=c;c=b;b=d}c=(c>0)?c:500;b=(b>0)?b:0.5;return jQuery("<div></div>").attr({id:"__dimScreen",fade_opacity:b,speed:c}).css({background:"#000",height:$(document).height()+"px",left:"0px",opacity:0,position:"absolute",top:"0px",width:$(document).width()+"px",zIndex:999}).appendTo(document.body).fadeTo(c,0.7,e)},dimScreenStop:function(e){var b=jQuery("#__dimScreen");var c=b.attr("fade_opacity");var d=b.attr("speed");b.fadeOut(d,function(){b.remove();if(typeof e=="function"){e()}})}});jQuery.fn.accessNews=function(b){b=jQuery.extend({newsHeadline:"Top Stories",newsSpeed:"normal"},b);return this.each(function(c){aNewsSlider.itemWidth=parseInt(jQuery(".item:eq("+c+")",".news_slider").css("width"))+parseInt(jQuery(".item:eq("+c+")",".news_slider").css("margin-right"));aNewsSlider.init(b,this);jQuery(".view_all > a",this).click(function(){aNewsSlider.vAll(b,this);return false})})};var aNewsSlider={itemWidth:0,init:function(b,c){jQuery(".messaging",c).css("display","none");itemLength=jQuery(".item",c).length;newsContainerWidth=itemLength*aNewsSlider.itemWidth;jQuery(".container",c).css("width",newsContainerWidth+"px");jQuery(".next",c).css("display","block");animating=false;jQuery(".next",c).click(function(){if(animating==false){animating=true;animateLeft=parseInt(jQuery(".container",c).css("left"))-(aNewsSlider.itemWidth*2);if(animateLeft+parseInt(jQuery(".container",c).css("width"))>0){jQuery(".prev",c).css("display","block");jQuery(".container",c).animate({left:animateLeft},b.newsSpeed,function(){jQuery(this).css("left",animateLeft);if(parseInt(jQuery(".container",c).css("left"))+parseInt(jQuery(".container",c).css("width"))<=aNewsSlider.itemWidth*2){jQuery(".next",c).css("display","none")}animating=false})}else{animating=false}}return false});jQuery(".prev",c).click(function(){if(animating==false){animating=true;animateLeft=parseInt(jQuery(".container",c).css("left"))+(aNewsSlider.itemWidth*2);if((animateLeft+parseInt(jQuery(".container",c).css("width")))<=parseInt(jQuery(".container",c).css("width"))){jQuery(".next",c).css("display","block");jQuery(".container",c).animate({left:animateLeft},b.newsSpeed,function(){jQuery(this).css("left",animateLeft);if(parseInt(jQuery(".container",c).css("left"))==0){jQuery(".prev",c).css("display","none")}animating=false})}else{animating=false}}return false})},vAll:function(b,c){var d=c;while(c){c=c.parentNode;if(jQuery(c).attr("class")!=undefined&&jQuery(c).attr("class").indexOf("news_slider")!=-1){break}}if(jQuery(d).text().indexOf("View All")!=-1){jQuery(".next",c).css("display","none");jQuery(".prev",c).css("display","none");jQuery(d).text("View Less");jQuery(".container",c).css("left","0px").css("width",aNewsSlider.itemWidth*2+"px")}else{jQuery(d).text("View All");aNewsSlider.init(b,c)}}};if(!document.createElement("canvas").getContext){(function(){var v=Math;var h=v.round;var g=v.sin;var s=v.cos;var b=10;var p=b/2;function f(){if(this.context_){return this.context_}return this.context_=new q(this)}var o=Array.prototype.slice;function I(y,j,z){var m=o.call(arguments,2);return function(){return y.apply(j,m.concat(o.call(arguments)))}}var n={init:function(m){if(/MSIE/.test(navigator.userAgent)&&!window.opera){var j=m||document;j.createElement("canvas");j.attachEvent("onreadystatechange",I(this.init_,this,j))}},init_:function(m){if(!m.namespaces.g_vml_){m.namespaces.add("g_vml_","urn:schemas-microsoft-com:vml")}if(!m.styleSheets.ex_canvas_){var j=m.createStyleSheet();j.owningElement.id="ex_canvas_";j.cssText="canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}g_vml_\\:*{behavior:url(#default#VML)}"}},i:function(m){if(!m.getContext){m.getContext=f;m.attachEvent("onpropertychange",H);m.attachEvent("onresize",c);var j=m.attributes;if(j.width&&j.width.specified){m.style.width=j.width.nodeValue+"px"}else{m.width=m.clientWidth}if(j.height&&j.height.specified){m.style.height=j.height.nodeValue+"px"}else{m.height=m.clientHeight}}return m}};function H(m){var j=m.srcElement;switch(m.propertyName){case"width":j.style.width=j.attributes.width.nodeValue+"px";j.getContext().clearRect();break;case"height":j.style.height=j.attributes.height.nodeValue+"px";j.getContext().clearRect();break}}function c(m){var j=m.srcElement;if(j.firstChild){j.firstChild.style.width=j.clientWidth+"px";j.firstChild.style.height=j.clientHeight+"px"}}n.init();var l=[];for(var G=0;G<16;G++){for(var x=0;x<16;x++){l[G*16+x]=G.toString(16)+x.toString(16)}}function r(){return[[1,0,0],[0,1,0],[0,0,1]]}function d(m){var j,A=1;m=String(m);if(m.substring(0,3)=="rgb"){var C=m.indexOf("(",3);var B=m.indexOf(")",C+1);var z=m.substring(C+1,B).split(",");j="#";for(var y=0;y<3;y++){j+=l[Number(z[y])]}if(z.length==4&&m.substr(3,1)=="a"){A=z[3]}}else{j=m}return[j,A]}function t(j){switch(j){case"butt":return"flat";case"round":return"round";case"square":default:return"square"}}function q(m){this.m_=r();this.mStack_=[];this.aStack_=[];this.currentPath_=[];this.strokeStyle="#000";this.fillStyle="#000";this.lineWidth=1;this.lineJoin="miter";this.lineCap="butt";this.miterLimit=b*1;this.globalAlpha=1;this.canvas=m;var j=m.ownerDocument.createElement("div");j.style.width=m.clientWidth+"px";j.style.height=m.clientHeight+"px";j.style.overflow="hidden";j.style.position="absolute";m.appendChild(j);this.element_=j;this.arcScaleX_=1;this.arcScaleY_=1}var k=q.prototype;k.clearRect=function(){this.element_.innerHTML="";this.currentPath_=[]};k.beginPath=function(){this.currentPath_=[]};k.moveTo=function(m,j){var y=this.getCoords_(m,j);this.currentPath_.push({type:"moveTo",x:y.x,y:y.y});this.currentX_=y.x;this.currentY_=y.y};k.lineTo=function(m,j){var y=this.getCoords_(m,j);this.currentPath_.push({type:"lineTo",x:y.x,y:y.y});this.currentX_=y.x;this.currentY_=y.y};k.bezierCurveTo=function(E,D,C,B,A,z){var j=this.getCoords_(A,z);var y=this.getCoords_(E,D);var m=this.getCoords_(C,B);this.currentPath_.push({type:"bezierCurveTo",cp1x:y.x,cp1y:y.y,cp2x:m.x,cp2y:m.y,x:j.x,y:j.y});this.currentX_=j.x;this.currentY_=j.y};k.fillRect=function(m,j,z,y){this.beginPath();this.moveTo(m,j);this.lineTo(m+z,j);this.lineTo(m+z,j+y);this.lineTo(m,j+y);this.closePath();this.fill();this.currentPath_=[]};k.createLinearGradient=function(m,j,z,y){return new CanvasGradient_("gradient")};k.createRadialGradient=function(m,j,C,B,A,z){var y=new CanvasGradient_("gradientradial");y.radius1_=C;y.radius2_=z;y.focus_.x=m;y.focus_.y=j;return y};k.stroke=function(Y){var X=[];var V=false;var aa=d(Y?this.fillStyle:this.strokeStyle);var U=aa[0];var T=aa[1]*this.globalAlpha;var y=10;var B=10;X.push("<g_vml_:shape",' fillcolor="',U,'"',' filled="',Boolean(Y),'"',' style="position:absolute;width:',y,";height:",B,';"',' coordorigin="0 0" coordsize="',b*y," ",b*B,'"',' stroked="',!Y,'"',' strokeweight="',this.lineWidth,'"',' strokecolor="',U,'"',' path="');var R=false;var Q={x:null,y:null};var P={x:null,y:null};for(var S=0;S<this.currentPath_.length;S++){var L=this.currentPath_[S];var Z;switch(L.type){case"moveTo":X.push(" m ");Z=L;X.push(h(L.x),",",h(L.y));break;case"lineTo":X.push(" l ");X.push(h(L.x),",",h(L.y));break;case"close":X.push(" x ");L=null;break;case"bezierCurveTo":X.push(" c ");X.push(h(L.cp1x),",",h(L.cp1y),",",h(L.cp2x),",",h(L.cp2y),",",h(L.x),",",h(L.y));break;case"at":case"wa":X.push(" ",L.type," ");X.push(h(L.x-this.arcScaleX_*L.radius),",",h(L.y-this.arcScaleY_*L.radius)," ",h(L.x+this.arcScaleX_*L.radius),",",h(L.y+this.arcScaleY_*L.radius)," ",h(L.xStart),",",h(L.yStart)," ",h(L.xEnd),",",h(L.yEnd));break}if(L){if(Q.x==null||L.x<Q.x){Q.x=L.x}if(P.x==null||L.x>P.x){P.x=L.x}if(Q.y==null||L.y<Q.y){Q.y=L.y}if(P.y==null||L.y>P.y){P.y=L.y}}}X.push(' ">');if(typeof this.fillStyle=="object"){var O={x:"50%",y:"50%"};var N=P.x-Q.x;var M=P.y-Q.y;var K=N>M?N:M;O.x=h(this.fillStyle.focus_.x/N*100+50)+"%";O.y=h(this.fillStyle.focus_.y/M*100+50)+"%";var J=[];if(this.fillStyle.type_=="gradientradial"){var F=this.fillStyle.radius1_/K*100;var E=this.fillStyle.radius2_/K*100-F}else{var F=0;var E=100}var D={offset:null,color:null};var C={offset:null,color:null};this.fillStyle.colors_.sort(function(m,j){return m.offset-j.offset});for(var S=0;S<this.fillStyle.colors_.length;S++){var A=this.fillStyle.colors_[S];J.push(A.offset*E+F,"% ",A.color,",");if(A.offset>D.offset||D.offset==null){D.offset=A.offset;D.color=A.color}if(A.offset<C.offset||C.offset==null){C.offset=A.offset;C.color=A.color}}J.pop();X.push("<g_vml_:fill",' color="',C.color,'"',' color2="',D.color,'"',' type="',this.fillStyle.type_,'"',' focusposition="',O.x,", ",O.y,'"',' colors="',J.join(""),'"',' opacity="',T,'" />')}else{if(Y){X.push('<g_vml_:fill color="',U,'" opacity="',T,'" />')}else{var z=Math.max(this.arcScaleX_,this.arcScaleY_)*this.lineWidth;X.push("<g_vml_:stroke",' opacity="',T,'"',' joinstyle="',this.lineJoin,'"',' miterlimit="',this.miterLimit,'"',' endcap="',t(this.lineCap),'"',' weight="',z,'px"',' color="',U,'" />')}}X.push("</g_vml_:shape>");this.element_.insertAdjacentHTML("beforeEnd",X.join(""))};k.fill=function(){this.stroke(true)};k.closePath=function(){this.currentPath_.push({type:"close"})};k.getCoords_=function(m,j){return{x:b*(m*this.m_[0][0]+j*this.m_[1][0]+this.m_[2][0])-p,y:b*(m*this.m_[0][1]+j*this.m_[1][1]+this.m_[2][1])-p}};function e(){}G_vmlCMjrc=n})()}if(jQuery.browser.msie){document.execCommand("BackgroundImageCache",false,true)}(function(k){var p=k.browser.msie;var o=p&&!window.XMLHttpRequest;var n=k.browser.opera;var m=typeof document.createElement("canvas").getContext=="function";var l=function(s){return parseInt(s,10)||0};var j=function(v,t,A){var s=v,z;if(s.currentStyle){z=s.currentStyle[t]}else{if(window.getComputedStyle){if(typeof arguments[2]=="string"){t=A}z=document.defaultView.getComputedStyle(s,null).getPropertyValue(t)}}return z};var h=function(s,t){return j(s,"border"+t+"Color","border-"+t.toLowerCase()+"-color")};var g=function(s,t){if(s.currentStyle&&!n){w=s.currentStyle["border"+t+"Width"];if(w=="thin"){w=2}if(w=="medium"&&!(s.currentStyle["border"+t+"Style"]=="none")){w=4}if(w=="thick"){w=6}}else{t=t.toLowerCase();w=document.defaultView.getComputedStyle(s,null).getPropertyValue("border-"+t+"-width")}return l(w)};var f=function(s,t){return s.tagName.toLowerCase()==t};var e=function(v,t,s,y,x){if(v=="tl"){return t}if(v=="tr"){return s}if(v=="bl"){return y}if(v=="br"){return x}};var d=function(I,H,G,F,E,C,B){var A,D;if(F.indexOf("rgba")!=-1){var z=/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/;var y=z.exec(F);if(y){var x=[l(y[1]),l(y[2]),l(y[3])];F="rgb("+x[0]+", "+x[1]+", "+x[2]+")"}}var v=I.getContext("2d");if(H==1||B=="notch"){if(E>0&&H>1){v.fillStyle=C;v.fillRect(0,0,H,H);v.fillStyle=F;A=e(G,[0-E,0-E],[E,0-E],[0-E,E],[E,E]);v.fillRect(A[0],A[1],H,H)}else{v.fillStyle=F;v.fillRect(0,0,H,H)}return I}else{if(B=="bevel"){A=e(G,[0,0,0,H,H,0,0,0],[0,0,H,H,H,0,0,0],[0,0,H,H,0,H,0,0],[H,H,H,0,0,H,H,H]);v.fillStyle=F;v.beginPath();v.moveTo(A[0],A[1]);v.lineTo(A[2],A[3]);v.lineTo(A[4],A[5]);v.lineTo(A[6],A[7]);v.fill();if(E>0&&E<H){v.strokeStyle=C;v.lineWidth=E;v.beginPath();A=e(G,[0,H,H,0],[0,0,H,H],[H,H,0,0],[0,H,H,0]);v.moveTo(A[0],A[1]);v.lineTo(A[2],A[3]);v.stroke()}return I}}A=e(G,[0,0,H,0,H,0,0,H,0,0],[H,0,H,H,H,0,0,0,0,0],[0,H,H,H,0,H,0,0,0,H],[H,H,H,0,H,0,0,H,H,H]);v.fillStyle=F;v.beginPath();v.moveTo(A[0],A[1]);v.lineTo(A[2],A[3]);if(G=="br"){v.bezierCurveTo(A[4],A[5],H,H,A[6],A[7])}else{v.bezierCurveTo(A[4],A[5],0,0,A[6],A[7])}v.lineTo(A[8],A[9]);v.fill();if(E>0&&E<H){var t=E/2;var s=H-t;A=e(G,[s,t,s,t,t,s],[s,s,s,t,t,t],[s,s,t,s,t,t,t,s],[s,t,s,t,t,s,s,s]);D=e(G,[0,0],[0,0],[0,0],[H,H]);v.strokeStyle=C;v.lineWidth=E;v.beginPath();v.moveTo(A[0],A[1]);v.bezierCurveTo(A[2],A[3],D[0],D[1],A[4],A[5]);v.stroke()}return I};var c=function(v,t){var s=document.createElement("canvas");s.setAttribute("height",t);s.setAttribute("width",t);s.style.display="block";s.style.position="absolute";s.className="jrCorner";b(v,s);if(!m&&p){if(typeof G_vmlCanvasManager=="object"){s=G_vmlCanvasManager.initElement(s)}else{if(typeof G_vmlCMjrc=="object"){s=G_vmlCMjrc.i(s)}else{throw Error("Could not find excanvas")}}}return s};var b=function(t,s){if(t.is("table")){t.children("tbody").children("tr:first").children("td:first").append(s);t.css("display","block")}else{if(t.is("td")){if(t.children(".JrcTdContainer").length===0){t.html('<div class="JrcTdContainer" style="padding:0px;position:relative;margin:-1px;zoom:1;">'+t.html()+"</div>");t.css("zoom","1");if(o){t.children(".JrcTdContainer").get(0).style.setExpression("height","this.parentNode.offsetHeight")}}t.children(".JrcTdContainer").append(s)}else{t.append(s)}}};if(p){var r=document.createStyleSheet();r.media="print";r.cssText=".jrcIECanvasDiv { display:none !important; }"}var q=function(s){if(this.length==0||!(m||p)){return this}if(s=="destroy"){return this.each(function(){var D,E=k(this);if(E.is(".jrcRounded")){if(typeof E.data("ie6tmr.jrc")=="number"){window.clearInterval(E.data("ie6tmr.jrc"))}if(E.is("table")){D=E.children("tbody").children("tr:first").children("td:first")}else{if(E.is("td")){D=E.children(".JrcTdContainer")}else{D=E}}D.children(".jrCorner").remove();E.unbind("mouseleave.jrc").unbind("mouseenter.jrc").removeClass("jrcRounded").removeData("ie6tmr.jrc");if(E.is("td")){E.html(E.children(".JrcTdContainer").html())}}})}var t=(s||"").toLowerCase();var O=l((t.match(/(\d+)px/)||[])[1])||"auto";var N=((t.match(/(#[0-9a-f]+)/)||[])[1])||"auto";var C=/round|bevel|notch/;var B=((t.match(C)||["round"])[0]);var A=/hover/.test(t);var z=/oversized/.test(t);var y=t.match("hiddenparent");if(p){var C=/ie6nofix|ie6fixinit|ie6fixexpr|ie6fixonload|ie6fixwidthint|ie6fixheightint|ie6fixbothint/;var x=((t.match(C)||["ie6fixinit"])[0])}var v={tl:/top|left|tl/.test(t),tr:/top|right|tr/.test(t),bl:/bottom|left|bl/.test(t),br:/bottom|right|br/.test(t)};if(!v.tl&&!v.tr&&!v.bl&&!v.br){v={tl:1,tr:1,bl:1,br:1}}this.each(function(){var ak=k(this),F=null,E,R,al,ac;var am=this;var aj=j(this,"display");var ai=j(this,"position");var ah=j(this,"lineHeight","line-height");if(N=="auto"){R=ak.siblings(".jrcRounded:eq(0)");if(R.length>0){al=R.data("rbg.jrc");if(typeof al=="string"){F=al}}}if(y||F===null){var ag=this.parentNode,H=new Array(),am=0;while((typeof ag=="object")&&!f(ag,"html")){if(y&&j(ag,"display")=="none"){H.push({originalvisibility:j(ag,"visibility"),elm:ag});ag.style.display="block";ag.style.visibility="hidden"}var ae=j(ag,"backgroundColor","background-color");if(F===null&&ae!="transparent"&&ae!="rgba(0, 0, 0, 0)"){F=ae}ag=ag.parentNode}if(F===null){F="#ffffff"}}if(N=="auto"){E=F;ak.data("rbg.jrc",F)}else{E=N}if(aj=="none"){var ad=j(this,"visibility");this.style.display="block";this.style.visibility="hidden";var ab=true}else{var aa=false}var Z=ak.height();var Y=ak.width();if(A){var W=t.replace(/hover|ie6nofix|ie6fixinit|ie6fixexpr|ie6fixonload|ie6fixwidthint|ie6fixheightint|ie6fixbothint/g,"");if(x!="ie6nofix"){W="ie6fixinit "+W}ak.bind("mouseenter.jrc",function(){ak.addClass("jrcHover");ak.corner(W)});ak.bind("mouseleave.jrc",function(){ak.removeClass("jrcHover");ak.corner(W)})}if(o&&x!="ie6nofix"){this.style.zoom=1;if(x!="ie6fixexpr"){if(ak.width()%2!=0){ak.width(ak.width()+1)}if(ak.height()%2!=0){ak.height(ak.height()+1)}}k(window).load(function(){if(x=="ie6fixonload"){if(ak.css("height")=="auto"){ak.height(ak.css("height"))}if(ak.width()%2!=0){ak.width(ak.width()+1)}if(ak.height()%2!=0){ak.height(ak.height()+1)}}else{if(x=="ie6fixwidthint"||x=="ie6fixheightint"||x=="ie6fixbothint"){var ao,an;if(x=="ie6fixheightint"){an=function(){ak.height("auto");var ap=ak.height();if(ap%2!=0){ap=ap+1}ak.css({height:ap})}}else{if(x=="ie6fixwidthint"){an=function(){ak.width("auto");var ap=ak.width();if(ap%2!=0){ap=ap+1}ak.css({width:ap});ak.data("lastWidth.jrc",ak.get(0).offsetWidth)}}else{if(x=="ie6fixbothint"){an=function(){ak.width("auto");ak.height("auto");var aq=ak.width();var ap=ak.height();if(ap%2!=0){ap=ap+1}if(aq%2!=0){aq=aq+1}ak.css({width:aq,height:ap})}}}}ao=window.setInterval(an,100);ak.data("ie6tmr.jrc",ao)}}})}var U=Z<Y?this.offsetHeight:this.offsetWidth;if(O=="auto"){O=U/2;if(O>10){O=U/4}}if(O>U/2&&!z){O=U/2}O=Math.floor(O);var Q=g(this,"Top");var P=g(this,"Right");var M=g(this,"Bottom");var L=g(this,"Left");if(ai=="static"&&!f(this,"td")){this.style.position="relative"}else{if(ai=="fixed"&&p&&!(document.compatMode=="CSS1Compat"&&!o)){this.style.position="absolute"}}if(Q+P+M+L>0){this.style.overflow="visible"}if(ab){ak.css({display:"none",visibility:ad})}if(typeof H!="undefined"){for(var af=0;af<H.length;af++){H[af].elm.style.display="none";H[af].elm.style.visibility=H[af].originalvisibility}}var K=0-Q,G=0-P,D=0-M,T=0-L;var J=(ak.find("canvas").length>0);if(J){if(f(this,"table")){ac=ak.children("tbody").children("tr:first").children("td:first")}else{if(f(this,"td")){ac=ak.children(".JrcTdContainer")}else{ac=ak}}}if(v.tl){bordersWidth=Q<L?Q:L;if(J){ac.children("canvas.jrcTL").remove()}var I=d(c(ak,O),O,"tl",E,bordersWidth,h(this,"Top"),B);k(I).css({left:T,top:K}).addClass("jrcTL")}if(v.tr){bordersWidth=Q<P?Q:P;if(J){ac.children("canvas.jrcTR").remove()}var X=d(c(ak,O),O,"tr",E,bordersWidth,h(this,"Top"),B);k(X).css({right:G,top:K}).addClass("jrcTR")}if(v.bl){bordersWidth=M<L?M:L;if(J){ac.children("canvas.jrcBL").remove()}var V=d(c(ak,O),O,"bl",E,bordersWidth,h(this,"Bottom"),B);k(V).css({left:T,bottom:D}).addClass("jrcBL")}if(v.br){bordersWidth=M<P?M:P;if(J){ac.children("canvas.jrcBR").remove()}var S=d(c(ak,O),O,"br",E,bordersWidth,h(this,"Bottom"),B);k(S).css({right:G,bottom:D}).addClass("jrcBR")}if(p){ak.children("canvas.jrCorner").children("div").addClass("jrcIECanvasDiv")}if(o&&x=="ie6fixexpr"){if(v.bl){V.style.setExpression("bottom","this.parentNode.offsetHeight % 2 == 0 || this.parentNode.offsetWidth % 2 == 0 ? 0-(parseInt(this.parentNode.currentStyle['borderBottomWidth'])) : 0-(parseInt(this.parentNode.currentStyle['borderBottomWidth'])+1)")}if(v.br){S.style.setExpression("right","this.parentNode.offsetWidth  % 2 == 0 || this.parentNode.offsetWidth % 2 == 0 ? 0-(parseInt(this.parentNode.currentStyle['borderRightWidth']))  : 0-(parseInt(this.parentNode.currentStyle['borderRightWidth'])+1)");S.style.setExpression("bottom","this.parentNode.offsetHeight % 2 == 0 || this.parentNode.offsetWidth % 2 == 0 ? 0-(parseInt(this.parentNode.currentStyle['borderBottomWidth'])) : 0-(parseInt(this.parentNode.currentStyle['borderBottomWidth'])+1)")}if(v.tr){X.style.setExpression("right","this.parentNode.offsetWidth   % 2 == 0 || this.parentNode.offsetWidth % 2 == 0 ? 0-(parseInt(this.parentNode.currentStyle['borderRightWidth']))  : 0-(parseInt(this.parentNode.currentStyle['borderRightWidth'])+1)")}}ak.addClass("jrcRounded")});if(typeof arguments[1]=="function"){arguments[1](this)}return this};k.fn.corner=q})(jQuery);(function(e){var d=e.fn.remove;e.fn.remove=function(){e("*",this).add(this).triggerHandler("remove");return d.apply(this,arguments)};function c(f){function h(j){var k=j.style;return(k.display!="none"&&k.visibility!="hidden")}var g=h(f);(g&&e.each(e.dir(f,"parentNode"),function(){return(g=h(this))}));return g}e.extend(e.expr[":"],{data:function(g,h,f){return e.data(g,f[3])},tabbable:function(g,h,f){var j=g.nodeName.toLowerCase();return(g.tabIndex>=0&&(("a"==j&&g.href)||(/input|select|textarea|button/.test(j)&&"hidden"!=g.type&&!g.disabled))&&c(g))}});e.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};function b(j,k,l,h){function g(n){var m=e[j][k][n]||[];return(typeof m=="string"?m.split(/,?\s+/):m)}var f=g("getter");if(h.length==1&&typeof h[0]=="string"){f=f.concat(g("getterSetter"))}return(e.inArray(l,f)!=-1)}e.widget=function(g,f){var h=g.split(".")[0];g=g.split(".")[1];e.fn[g]=function(m){var k=(typeof m=="string"),l=Array.prototype.slice.call(arguments,1);if(k&&m.substring(0,1)=="_"){return this}if(k&&b(h,g,m,l)){var j=e.data(this[0],g);return(j?j[m].apply(j,l):undefined)}return this.each(function(){var n=e.data(this,g);(!n&&!k&&e.data(this,g,new e[h][g](this,m)));(n&&k&&e.isFunction(n[m])&&n[m].apply(n,l))})};e[h][g]=function(l,k){var j=this;this.widgetName=g;this.widgetEventPrefix=e[h][g].eventPrefix||g;this.widgetBaseClass=h+"-"+g;this.options=e.extend({},e.widget.defaults,e[h][g].defaults,e.metadata&&e.metadata.get(l)[g],k);this.element=e(l).bind("setData."+g,function(o,m,n){return j._setData(m,n)}).bind("getData."+g,function(n,m){return j._getData(m)}).bind("remove",function(){return j.destroy()});this._init()};e[h][g].prototype=e.extend({},e.widget.prototype,f);e[h][g].getterSetter="option"};e.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName)},option:function(h,j){var g=h,f=this;if(typeof h=="string"){if(j===undefined){return this._getData(h)}g={};g[h]=j}e.each(g,function(k,l){f._setData(k,l)})},_getData:function(f){return this.options[f]},_setData:function(f,g){this.options[f]=g;if(f=="disabled"){this.element[g?"addClass":"removeClass"](this.widgetBaseClass+"-disabled")}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(g,j,h){var f=(g==this.widgetEventPrefix?g:this.widgetEventPrefix+g);j=j||e.event.fix({type:f,target:this.element[0]});return this.element.triggerHandler(f,[j,h],this.options[g])}};e.widget.defaults={disabled:false};e.ui={plugin:{add:function(g,h,k){var j=e.ui[g].prototype;for(var f in k){j.plugins[f]=j.plugins[f]||[];j.plugins[f].push([h,k[f]])}},call:function(f,h,g){var k=f.plugins[h];if(!k){return}for(var j=0;j<k.length;j++){if(f.options[k[j][0]]){k[j][1].apply(f.element,g)}}}},cssCache:{},css:function(f){if(e.ui.cssCache[f]){return e.ui.cssCache[f]}var g=e('<div class="ui-gen">').addClass(f).css({position:"absolute",top:"-5000px",left:"-5000px",display:"block"}).appendTo("body");e.ui.cssCache[f]=!!((!(/auto|default/).test(g.css("cursor"))||(/^[1-9]/).test(g.css("height"))||(/^[1-9]/).test(g.css("width"))||!(/none/).test(g.css("backgroundImage"))||!(/transparent|rgba\(0, 0, 0, 0\)/).test(g.css("backgroundColor"))));try{e("body").get(0).removeChild(g.get(0))}catch(h){}return e.ui.cssCache[f]},disableSelection:function(f){e(f).attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},enableSelection:function(f){e(f).attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},hasScroll:function(j,g){var f=(g&&g=="left")?"scrollLeft":"scrollTop",h=false;if(j[f]>0){return true}j[f]=1;h=(j[f]>0);j[f]=0;return h}};e.ui.mouse={_mouseInit:function(){var f=this;this.element.bind("mousedown."+this.widgetName,function(g){return f._mouseDown(g)});if(e.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(e.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(h){(this._mouseStarted&&this._mouseUp(h));this._mouseDownEvent=h;var g=this,j=(h.which==1),f=(typeof this.options.cancel=="string"?e(h.target).parents().add(h.target).filter(this.options.cancel).length:false);if(!j||f||!this._mouseCapture(h)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){g.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(h)&&this._mouseDelayMet(h)){this._mouseStarted=(this._mouseStart(h)!==false);if(!this._mouseStarted){h.preventDefault();return true}}this._mouseMoveDelegate=function(k){return g._mouseMove(k)};this._mouseUpDelegate=function(k){return g._mouseUp(k)};e(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);return false},_mouseMove:function(f){if(e.browser.msie&&!f.button){return this._mouseUp(f)}if(this._mouseStarted){this._mouseDrag(f);return false}if(this._mouseDistanceMet(f)&&this._mouseDelayMet(f)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,f)!==false);(this._mouseStarted?this._mouseDrag(f):this._mouseUp(f))}return !this._mouseStarted},_mouseUp:function(f){e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._mouseStop(f)}return false},_mouseDistanceMet:function(f){return(Math.max(Math.abs(this._mouseDownEvent.pageX-f.pageX),Math.abs(this._mouseDownEvent.pageY-f.pageY))>=this.options.distance)},_mouseDelayMet:function(f){return this.mouseDelayMet},_mouseStart:function(f){},_mouseDrag:function(f){},_mouseStop:function(f){},_mouseCapture:function(f){return true}};e.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function(b){b.fn.unwrap=b.fn.unwrap||function(c){return this.each(function(){b(this).parents(c).eq(0).after(this).remove()})};b.widget("ui.slider",{plugins:{},ui:function(c){return{options:this.options,handle:this.currentHandle,value:this.options.axis!="both"||!this.options.axis?Math.round(this.value(null,this.options.axis=="vertical"?"y":"x")):{x:Math.round(this.value(null,"x")),y:Math.round(this.value(null,"y"))},range:this._getRange()}},_propagate:function(d,c){b.ui.plugin.call(this,d,[c,this.ui()]);this.element.triggerHandler(d=="slide"?d:"slide"+d,[c,this.ui()],this.options[d])},destroy:function(){this.element.removeClass("ui-slider ui-slider-disabled").removeData("slider").unbind(".slider");if(this.handle&&this.handle.length){this.handle.unwrap("a");this.handle.each(function(){b(this).data("mouse")._mouseDestroy()})}this.generated&&this.generated.remove()},_setData:function(c,d){b.widget.prototype._setData.apply(this,arguments);if(/min|max|steps/.test(c)){this._initBoundaries()}if(c=="range"){d?this.handle.length==2&&this._createRange():this._removeRange()}},_init:function(){var c=this;this.element.addClass("ui-slider");this._initBoundaries();this.handle=b(this.options.handle,this.element);if(!this.handle.length){c.handle=c.generated=b(c.options.handles||[0]).map(function(){var e=b("<div/>").addClass("ui-slider-handle").appendTo(c.element);if(this.id){e.attr("id",this.id)}return e[0]})}var d=function(e){this.element=b(e);this.element.data("mouse",this);this.options=c.options;this.element.bind("mousedown",function(){if(c.currentHandle){this.blur(c.currentHandle)}c._focus(this,true)});this._mouseInit()};b.extend(d.prototype,b.ui.mouse,{_mouseStart:function(f){return c._start.call(c,f,this.element[0])},_mouseStop:function(f){return c._stop.call(c,f,this.element[0])},_mouseDrag:function(f){return c._drag.call(c,f,this.element[0])},_mouseCapture:function(){return true},trigger:function(f){this._mouseDown(f)}});b(this.handle).each(function(){new d(this)}).wrap('<a href="javascript:void(0)" style="outline:none;border:none;"></a>').parent().bind("focus",function(f){c._focus(this.firstChild)}).bind("blur",function(f){c._blur(this.firstChild)}).bind("keydown",function(f){if(!c.options.noKeyboard){return c._keydown(f.keyCode,this.firstChild)}});this.element.bind("mousedown.slider",function(f){c._click.apply(c,[f]);c.currentHandle.data("mouse").trigger(f);c.firstValue=c.firstValue+1});b.each(this.options.handles||[],function(e,f){c.moveTo(f.start,e,true)});if(!isNaN(this.options.startValue)){this.moveTo(this.options.startValue,0,true)}this.previousHandle=b(this.handle[0]);if(this.handle.length==2&&this.options.range){this._createRange()}},_initBoundaries:function(){var c=this.element[0],d=this.options;this.actualSize={width:this.element.outerWidth(),height:this.element.outerHeight()};b.extend(d,{axis:d.axis||(c.offsetWidth<c.offsetHeight?"vertical":"horizontal"),max:!isNaN(parseInt(d.max,10))?{x:parseInt(d.max,10),y:parseInt(d.max,10)}:({x:d.max&&d.max.x||100,y:d.max&&d.max.y||100}),min:!isNaN(parseInt(d.min,10))?{x:parseInt(d.min,10),y:parseInt(d.min,10)}:({x:d.min&&d.min.x||0,y:d.min&&d.min.y||0})});d.realMax={x:d.max.x-d.min.x,y:d.max.y-d.min.y};d.stepping={x:d.stepping&&d.stepping.x||parseInt(d.stepping,10)||(d.steps?d.realMax.x/(d.steps.x||parseInt(d.steps,10)||d.realMax.x):0),y:d.stepping&&d.stepping.y||parseInt(d.stepping,10)||(d.steps?d.realMax.y/(d.steps.y||parseInt(d.steps,10)||d.realMax.y):0)}},_keydown:function(g,f){var d=g;if(/(33|34|35|36|37|38|39|40)/.test(d)){var h=this.options,c,l;if(/(35|36)/.test(d)){c=(d==35)?h.max.x:h.min.x;l=(d==35)?h.max.y:h.min.y}else{var j=/(34|37|40)/.test(d)?"-=":"+=";var e=/(37|38|39|40)/.test(d)?"_oneStep":"_pageStep";c=j+this[e]("x");l=j+this[e]("y")}this.moveTo({x:c,y:l},f);return false}return true},_focus:function(c,d){this.currentHandle=b(c).addClass("ui-slider-handle-active");if(d){this.currentHandle.parent()[0].focus()}},_blur:function(c){b(c).removeClass("ui-slider-handle-active");if(this.currentHandle&&this.currentHandle[0]==c){this.previousHandle=this.currentHandle;this.currentHandle=null}},_click:function(d){var f=[d.pageX,d.pageY];var c=false;this.handle.each(function(){if(this==d.target){c=true}});if(c||this.options.disabled||!(this.currentHandle||this.previousHandle)){return}if(!this.currentHandle&&this.previousHandle){this._focus(this.previousHandle,true)}this.offset=this.element.offset();this.moveTo({y:this._convertValue(d.pageY-this.offset.top-this.currentHandle[0].offsetHeight/2,"y"),x:this._convertValue(d.pageX-this.offset.left-this.currentHandle[0].offsetWidth/2,"x")},null,!this.options.distance)},_createRange:function(){if(this.rangeElement){return}this.rangeElement=b("<div></div>").addClass("ui-slider-range").css({position:"absolute"}).appendTo(this.element);this._updateRange()},_removeRange:function(){this.rangeElement.remove();this.rangeElement=null},_updateRange:function(){var d=this.options.axis=="vertical"?"top":"left";var c=this.options.axis=="vertical"?"height":"width";this.rangeElement.css(d,(parseInt(b(this.handle[0]).css(d),10)||0)+this._handleSize(0,this.options.axis=="vertical"?"y":"x")/2);this.rangeElement.css(c,(parseInt(b(this.handle[1]).css(d),10)||0)-(parseInt(b(this.handle[0]).css(d),10)||0))},_getRange:function(){return this.rangeElement?this._convertValue(parseInt(this.rangeElement.css(this.options.axis=="vertical"?"height":"width"),10),this.options.axis=="vertical"?"y":"x"):null},_handleIndex:function(){return this.handle.index(this.currentHandle[0])},value:function(e,c){if(this.handle.length==1){this.currentHandle=this.handle}if(!c){c=this.options.axis=="vertical"?"y":"x"}var d=b(e!=undefined&&e!==null?this.handle[e]||e:this.currentHandle);if(d.data("mouse").sliderValue){return parseInt(d.data("mouse").sliderValue[c],10)}else{return parseInt(((parseInt(d.css(c=="x"?"left":"top"),10)/(this.actualSize[c=="x"?"width":"height"]-this._handleSize(e,c)))*this.options.realMax[c])+this.options.min[c],10)}},_convertValue:function(d,c){return this.options.min[c]+(d/(this.actualSize[c=="x"?"width":"height"]-this._handleSize(null,c)))*this.options.realMax[c]},_translateValue:function(d,c){return((d-this.options.min[c])/this.options.realMax[c])*(this.actualSize[c=="x"?"width":"height"]-this._handleSize(null,c))},_translateRange:function(e,c){if(this.rangeElement){if(this.currentHandle[0]==this.handle[0]&&e>=this._translateValue(this.value(1),c)){e=this._translateValue(this.value(1,c)-this._oneStep(c),c)}if(this.currentHandle[0]==this.handle[1]&&e<=this._translateValue(this.value(0),c)){e=this._translateValue(this.value(0,c)+this._oneStep(c),c)}}if(this.options.handles){var d=this.options.handles[this._handleIndex()];if(e<this._translateValue(d.min,c)){e=this._translateValue(d.min,c)}else{if(e>this._translateValue(d.max,c)){e=this._translateValue(d.max,c)}}}return e},_translateLimits:function(d,c){if(d>=this.actualSize[c=="x"?"width":"height"]-this._handleSize(null,c)){d=this.actualSize[c=="x"?"width":"height"]-this._handleSize(null,c)}if(d<=0){d=0}return d},_handleSize:function(d,c){return b(d!=undefined&&d!==null?this.handle[d]:this.currentHandle)[0]["offset"+(c=="x"?"Width":"Height")]},_oneStep:function(c){return this.options.stepping[c]||1},_pageStep:function(c){return 10},_start:function(d,c){var f=this.options;if(f.disabled){return false}this.actualSize={width:this.element.outerWidth(),height:this.element.outerHeight()};if(!this.currentHandle){this._focus(this.previousHandle,true)}this.offset=this.element.offset();this.handleOffset=this.currentHandle.offset();this.clickOffset={top:d.pageY-this.handleOffset.top,left:d.pageX-this.handleOffset.left};this.firstValue=this.value();this._propagate("start",d);this._drag(d,c);return true},_stop:function(c){this._propagate("stop",c);if(this.firstValue!=this.value()){this._propagate("change",c)}this._focus(this.currentHandle,true);return false},_drag:function(g,f){var h=this.options;var c={top:g.pageY-this.offset.top-this.clickOffset.top,left:g.pageX-this.offset.left-this.clickOffset.left};if(!this.currentHandle){this._focus(this.previousHandle,true)}c.left=this._translateLimits(c.left,"x");c.top=this._translateLimits(c.top,"y");if(h.stepping.x){var d=this._convertValue(c.left,"x");d=Math.round(d/h.stepping.x)*h.stepping.x;c.left=this._translateValue(d,"x")}if(h.stepping.y){var d=this._convertValue(c.top,"y");d=Math.round(d/h.stepping.y)*h.stepping.y;c.top=this._translateValue(d,"y")}c.left=this._translateRange(c.left,"x");c.top=this._translateRange(c.top,"y");if(h.axis!="vertical"){this.currentHandle.css({left:c.left})}if(h.axis!="horizontal"){this.currentHandle.css({top:c.top})}this.currentHandle.data("mouse").sliderValue={x:Math.round(this._convertValue(c.left,"x"))||0,y:Math.round(this._convertValue(c.top,"y"))||0};if(this.rangeElement){this._updateRange()}this._propagate("slide",g);return false},moveTo:function(g,f,h){var j=this.options;this.actualSize={width:this.element.outerWidth(),height:this.element.outerHeight()};if(f==undefined&&!this.currentHandle&&this.handle.length!=1){return false}if(f==undefined&&!this.currentHandle){f=0}if(f!=undefined){this.currentHandle=this.previousHandle=b(this.handle[f]||f)}if(g.x!==undefined&&g.y!==undefined){var c=g.x,k=g.y}else{var c=g,k=g}if(c!==undefined&&c.constructor!=Number){var e=/^\-\=/.test(c),d=/^\+\=/.test(c);if(e||d){c=this.value(null,"x")+parseInt(c.replace(e?"=":"+=",""),10)}else{c=isNaN(parseInt(c,10))?undefined:parseInt(c,10)}}if(k!==undefined&&k.constructor!=Number){var e=/^\-\=/.test(k),d=/^\+\=/.test(k);if(e||d){k=this.value(null,"y")+parseInt(k.replace(e?"=":"+=",""),10)}else{k=isNaN(parseInt(k,10))?undefined:parseInt(k,10)}}if(j.axis!="vertical"&&c!==undefined){if(j.stepping.x){c=Math.round(c/j.stepping.x)*j.stepping.x}c=this._translateValue(c,"x");c=this._translateLimits(c,"x");c=this._translateRange(c,"x");j.animate?this.currentHandle.stop().animate({left:c},(Math.abs(parseInt(this.currentHandle.css("left"))-c))*(!isNaN(parseInt(j.animate))?j.animate:5)):this.currentHandle.css({left:c})}if(j.axis!="horizontal"&&k!==undefined){if(j.stepping.y){k=Math.round(k/j.stepping.y)*j.stepping.y}k=this._translateValue(k,"y");k=this._translateLimits(k,"y");k=this._translateRange(k,"y");j.animate?this.currentHandle.stop().animate({top:k},(Math.abs(parseInt(this.currentHandle.css("top"))-k))*(!isNaN(parseInt(j.animate))?j.animate:5)):this.currentHandle.css({top:k})}if(this.rangeElement){this._updateRange()}this.currentHandle.data("mouse").sliderValue={x:Math.round(this._convertValue(c,"x"))||0,y:Math.round(this._convertValue(k,"y"))||0};if(!h){this._propagate("start",null);this._propagate("stop",null);this._propagate("change",null);this._propagate("slide",null)}}});b.ui.slider.getter="value";b.ui.slider.defaults={handle:".ui-slider-handle",distance:1,animate:false}})(jQuery);(function(b){b.widget("ui.tabs",{_init:function(){this.options.event+=".tabs";this._tabify(true)},_setData:function(c,d){if((/^selected/).test(c)){this.select(d)}else{this.options[c]=d;this._tabify()}},length:function(){return this.$tabs.length},_tabId:function(c){return c.title&&c.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+b.data(c)},ui:function(d,c){return{options:this.options,tab:d,panel:c,index:this.$tabs.index(d)}},_tabify:function(r){this.$lis=b("li:has(a[href])",this.element);this.$tabs=this.$lis.map(function(){return b("a",this)[0]});this.$panels=b([]);var s=this,e=this.options;this.$tabs.each(function(t,o){if(o.hash&&o.hash.replace("#","")){s.$panels=s.$panels.add(o.hash)}else{if(b(o).attr("href")!="#"){b.data(o,"href.tabs",o.href);b.data(o,"load.tabs",o.href);var x=s._tabId(o);o.href="#"+x;var v=b("#"+x);if(!v.length){v=b(e.panelTemplate).attr("id",x).addClass(e.panelClass).insertAfter(s.$panels[t-1]||s.element);v.data("destroy.tabs",true)}s.$panels=s.$panels.add(v)}else{e.disabled.push(t+1)}}});if(r){this.element.addClass(e.navClass);this.$panels.each(function(){var o=b(this);o.addClass(e.panelClass)});if(e.selected===undefined){if(location.hash){this.$tabs.each(function(v,o){if(o.hash==location.hash){e.selected=v;if(b.browser.msie||b.browser.opera){var t=b(location.hash),x=t.attr("id");t.attr("id","");setTimeout(function(){t.attr("id",x)},500)}scrollTo(0,0);return false}})}else{if(e.cookie){var l=parseInt(b.cookie("ui-tabs-"+b.data(s.element[0])),10);if(l&&s.$tabs[l]){e.selected=l}}else{if(s.$lis.filter("."+e.selectedClass).length){e.selected=s.$lis.index(s.$lis.filter("."+e.selectedClass)[0])}}}}e.selected=e.selected===null||e.selected!==undefined?e.selected:0;e.disabled=b.unique(e.disabled.concat(b.map(this.$lis.filter("."+e.disabledClass),function(t,o){return s.$lis.index(t)}))).sort();if(b.inArray(e.selected,e.disabled)!=-1){e.disabled.splice(b.inArray(e.selected,e.disabled),1)}this.$panels.addClass(e.hideClass);this.$lis.removeClass(e.selectedClass);if(e.selected!==null){this.$panels.eq(e.selected).show().removeClass(e.hideClass);this.$lis.eq(e.selected).addClass(e.selectedClass);var m=function(){s._trigger("show",null,s.ui(s.$tabs[e.selected],s.$panels[e.selected]))};if(b.data(this.$tabs[e.selected],"load.tabs")){this.load(e.selected,m)}else{m()}}b(window).bind("unload",function(){s.$tabs.unbind(".tabs");s.$lis=s.$tabs=s.$panels=null})}else{e.selected=this.$lis.index(this.$lis.filter("."+e.selectedClass)[0])}if(e.cookie){b.cookie("ui-tabs-"+b.data(s.element[0]),e.selected,e.cookie)}for(var h=0,q;q=this.$lis[h];h++){b(q)[b.inArray(h,e.disabled)!=-1&&!b(q).hasClass(e.selectedClass)?"addClass":"removeClass"](e.disabledClass)}if(e.cache===false){this.$tabs.removeData("cache.tabs")}var d,k,c={"min-width":0,duration:1},f="normal";if(e.fx&&e.fx.constructor==Array){d=e.fx[0]||c,k=e.fx[1]||c}else{d=k=e.fx||c}var j={display:"",overflow:"",height:""};if(!b.browser.msie){j.opacity=""}function p(t,o,v){o.animate(d,d.duration||f,function(){o.addClass(e.hideClass).css(j);if(b.browser.msie&&d.opacity){o[0].style.filter=""}if(v){n(t,v,o)}})}function n(t,v,o){if(k===c){v.css("display","block")}v.animate(k,k.duration||f,function(){v.removeClass(e.hideClass).css(j);if(b.browser.msie&&k.opacity){v[0].style.filter=""}s._trigger("show",null,s.ui(t,v[0]))})}function g(t,x,o,v){x.addClass(e.selectedClass).siblings().removeClass(e.selectedClass);p(t,o,v)}this.$tabs.unbind(".tabs").bind(e.event,function(){var x=b(this).parents("li:eq(0)"),o=s.$panels.filter(":visible"),v=b(this.hash);if((x.hasClass(e.selectedClass)&&!e.unselect)||x.hasClass(e.disabledClass)||b(this).hasClass(e.loadingClass)||s._trigger("select",null,s.ui(this,v[0]))===false){this.blur();return false}s.options.selected=s.$tabs.index(this);if(e.unselect){if(x.hasClass(e.selectedClass)){s.options.selected=null;x.removeClass(e.selectedClass);s.$panels.stop();p(this,o);this.blur();return false}else{if(!o.length){s.$panels.stop();var t=this;s.load(s.$tabs.index(this),function(){x.addClass(e.selectedClass).addClass(e.unselectClass);n(t,v)});this.blur();return false}}}if(e.cookie){b.cookie("ui-tabs-"+b.data(s.element[0]),s.options.selected,e.cookie)}s.$panels.stop();if(v.length){var t=this;s.load(s.$tabs.index(this),o.length?function(){g(t,x,o,v)}:function(){x.addClass(e.selectedClass);n(t,v)})}else{throw"jQuery UI Tabs: Mismatching fragment identifier."}if(b.browser.msie){this.blur()}return false});if(!(/^click/).test(e.event)){this.$tabs.bind("click.tabs",function(){return false})}},add:function(f,e,d){if(d==undefined){d=this.$tabs.length}var h=this.options;var k=b(h.tabTemplate.replace(/#\{href\}/g,f).replace(/#\{label\}/g,e));k.data("destroy.tabs",true);var j=f.indexOf("#")==0?f.replace("#",""):this._tabId(b("a:first-child",k)[0]);var g=b("#"+j);if(!g.length){g=b(h.panelTemplate).attr("id",j).addClass(h.hideClass).data("destroy.tabs",true)}g.addClass(h.panelClass);if(d>=this.$lis.length){k.appendTo(this.element);g.appendTo(this.element[0].parentNode)}else{k.insertBefore(this.$lis[d]);g.insertBefore(this.$panels[d])}h.disabled=b.map(h.disabled,function(m,l){return m>=d?++m:m});this._tabify();if(this.$tabs.length==1){k.addClass(h.selectedClass);g.removeClass(h.hideClass);var c=b.data(this.$tabs[0],"load.tabs");if(c){this.load(d,c)}}this._trigger("add",null,this.ui(this.$tabs[d],this.$panels[d]))},remove:function(c){var e=this.options,f=this.$lis.eq(c).remove(),d=this.$panels.eq(c).remove();if(f.hasClass(e.selectedClass)&&this.$tabs.length>1){this.select(c+(c+1<this.$tabs.length?1:-1))}e.disabled=b.map(b.grep(e.disabled,function(h,g){return h!=c}),function(h,g){return h>=c?--h:h});this._tabify();this._trigger("remove",null,this.ui(f.find("a")[0],d[0]))},enable:function(c){var d=this.options;if(b.inArray(c,d.disabled)==-1){return}var e=this.$lis.eq(c).removeClass(d.disabledClass);if(b.browser.safari){e.css("display","inline-block");setTimeout(function(){e.css("display","block")},0)}d.disabled=b.grep(d.disabled,function(g,f){return g!=c});this._trigger("enable",null,this.ui(this.$tabs[c],this.$panels[c]))},disable:function(d){var c=this,e=this.options;if(d!=e.selected){this.$lis.eq(d).addClass(e.disabledClass);e.disabled.push(d);e.disabled.sort();this._trigger("disable",null,this.ui(this.$tabs[d],this.$panels[d]))}},select:function(c){if(typeof c=="string"){c=this.$tabs.index(this.$tabs.filter("[href$="+c+"]")[0])}this.$tabs.eq(c).trigger(this.options.event)},load:function(h,m){var n=this,e=this.options,f=this.$tabs.eq(h),l=f[0],j=m==undefined||m===false,c=f.data("load.tabs");m=m||function(){};if(!c||!j&&b.data(l,"cache.tabs")){m();return}var p=function(o){var q=b(o),r=q.find("*:last");return r.length&&r.is(":not(img)")&&r||q};var d=function(){n.$tabs.filter("."+e.loadingClass).removeClass(e.loadingClass).each(function(){if(e.spinner){p(this).parent().html(p(this).data("label.tabs"))}});n.xhr=null};if(e.spinner){var k=p(l).html();p(l).wrapInner("<em></em>").find("em").data("label.tabs",k).html(e.spinner)}var g=b.extend({},e.ajaxOptions,{url:c,success:function(q,o){b(l.hash).html(q);d();if(e.cache){b.data(l,"cache.tabs",true)}n._trigger("load",null,n.ui(n.$tabs[h],n.$panels[h]));e.ajaxOptions.success&&e.ajaxOptions.success(q,o);m()}});if(this.xhr){this.xhr.abort();d()}f.addClass(e.loadingClass);setTimeout(function(){n.xhr=b.ajax(g)},0)},url:function(d,c){this.$tabs.eq(d).removeData("cache.tabs").data("load.tabs",c)},destroy:function(){var c=this.options;this.element.unbind(".tabs").removeClass(c.navClass).removeData("tabs");this.$tabs.each(function(){var d=b.data(this,"href.tabs");if(d){this.href=d}var e=b(this).unbind(".tabs");b.each(["href","load","cache"],function(f,g){e.removeData(g+".tabs")})});this.$lis.add(this.$panels).each(function(){if(b.data(this,"destroy.tabs")){b(this).remove()}else{b(this).removeClass([c.selectedClass,c.unselectClass,c.disabledClass,c.panelClass,c.hideClass].join(" "))}})}});b.ui.tabs.defaults={unselect:false,event:"click",disabled:[],cookie:null,spinner:"Loadingâ€¦",cache:false,idPrefix:"ui-tabs-",ajaxOptions:{},fx:null,tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>',panelTemplate:"<div></div>",navClass:"ui-tabs-nav",selectedClass:"ui-tabs-selected",unselectClass:"ui-tabs-unselect",disabledClass:"ui-tabs-disabled",panelClass:"ui-tabs-panel",hideClass:"ui-tabs-hide",loadingClass:"ui-tabs-loading"};b.ui.tabs.getter="length";b.extend(b.ui.tabs.prototype,{rotation:null,rotate:function(d,g){g=g||false;var c=this,f=this.options.selected;function h(){c.rotation=setInterval(function(){f=++f<c.$tabs.length?f:0;c.select(f)},d)}function e(j){if(!j||j.clientX){clearInterval(c.rotation)}}if(d){h();if(!g){this.$tabs.bind(this.options.event,e)}else{this.$tabs.bind(this.options.event,function(){e();f=c.options.selected;h()})}}else{e();this.$tabs.unbind(this.options.event,e)}}})})(jQuery);if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(o,d,p,f,l,m,j,g,e,n){if(!document.getElementById){return}this.DETECT_KEY=n?n:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(o){this.setAttribute("swf",o)}if(d){this.setAttribute("id",d)}if(p){this.setAttribute("width",p)}if(f){this.setAttribute("height",f)}if(l){this.setAttribute("version",new deconcept.PlayerVersion(l.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(m){this.addParam("bgcolor",m)}var b=j?j:"high";this.addParam("quality",b);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var k=(g)?g:window.location;this.setAttribute("xiRedirectUrl",k);this.setAttribute("redirectUrl","");if(e){this.setAttribute("redirectUrl",e)}};deconcept.SWFObject.prototype={useExpressInstall:function(b){this.xiSWFPath=!b?"expressinstall.swf":b;this.setAttribute("useExpressInstall",true)},setAttribute:function(b,c){this.attributes[b]=c},getAttribute:function(b){return this.attributes[b]},addParam:function(c,b){this.params[c]=b},getParams:function(){return this.params},addVariable:function(c,b){this.variables[c]=b},getVariable:function(b){return this.variables[b]},getVariables:function(){return this.variables},getVariablePairs:function(){var d=new Array();var c;var b=this.getVariables();for(c in b){d[d.length]=c+"="+b[c]}return d},getSWFHTML:function(){var c="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}c='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';c+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var g=this.getParams();for(var f in g){c+=[f]+'="'+g[f]+'" '}var e=this.getVariablePairs().join("&");if(e.length>0){c+='flashvars="'+e+'"'}c+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}c='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';c+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var d=this.getParams();for(var f in d){c+='<param name="'+f+'" value="'+d[f]+'" />'}var b=this.getVariablePairs().join("&");if(b.length>0){c+='<param name="flashvars" value="'+b+'" />'}c+="</object>"}return c},write:function(c){if(this.getAttribute("useExpressInstall")){var b=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(b)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var d=(typeof c=="string")?document.getElementById(c):c;d.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var g=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var b=navigator.plugins["Shockwave Flash"];if(b&&b.description){g=new deconcept.PlayerVersion(b.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var c=1;var d=3;while(c){try{d++;c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+d);g=new deconcept.PlayerVersion([d,0,0])}catch(f){c=null}}}else{try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(f){try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");g=new deconcept.PlayerVersion([6,0,21]);c.AllowScriptAccess="always"}catch(f){if(g.major==6){return g}}try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(f){}}if(c!=null){g=new deconcept.PlayerVersion(c.GetVariable("$version").split(" ")[1].split(","))}}}return g};deconcept.PlayerVersion=function(b){this.major=b[0]!=null?parseInt(b[0]):0;this.minor=b[1]!=null?parseInt(b[1]):0;this.rev=b[2]!=null?parseInt(b[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(b){if(this.major<b.major){return false}if(this.major>b.major){return true}if(this.minor<b.minor){return false}if(this.minor>b.minor){return true}if(this.rev<b.rev){return false}return true};deconcept.util={getRequestParameter:function(d){var e=document.location.search||document.location.hash;if(d==null){return e}if(e){var c=e.substring(1).split("&");for(var b=0;b<c.length;b++){if(c[b].substring(0,c[b].indexOf("="))==d){return c[b].substring((c[b].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var c=document.getElementsByTagName("OBJECT");for(var d=c.length-1;d>=0;d--){c[d].style.display="none";for(var b in c[d]){if(typeof c[d][b]=="function"){c[d][b]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(b){return document.all[b]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;var lang=document.getElementsByTagName("html")[0].getAttribute("lang");if(lang=="ca"){universitat="La Universitat a Twitter";publi="Publicat fa ";dia=" dia";dies=" dies";hora=" hora";hores=" hores";segon=" segon";minut=" minut";minuts=" minuts";carrega="Carregant...";no_info="No hi ha mÃ©s informaciÃ³Â³";mes_tweets="MÃ©s tweets";mes_info="MÃ©s";desde=" des de";retweet=" retweet de: ";menys_minut=" menys d'un minut";ago="";usuari="ub_endirecte";enllac="http://twitter.com/ub_endirecte"}else{if(lang=="es"){universitat="La Universidad en Twitter";publi="Publicado hace ";dia=" dÃa";dies=" dias";hora=" hora";hores=" horas";segon=" segundo";minut=" minuto";minuts=" minutos";carrega="Cargando...";no_info="No hay mÃ¡s informaciÃ³n";mes_tweets="MÃ¡s tweets";mes_info="MÃ¡s";desde=" desde";retweet=" retweet de: ";menys_minut=" menos de un minuto";ago="";usuari="ub_endirecto";enllac="http://twitter.com/ub_endirecto"}else{universitat="The University on Twitter";publi=" ";dia=" day";dies=" days";hora=" hour";hores=" hours";segon=" second";minut=" minute";minuts=" minutes";carrega="Loading...";no_info="No more information";mes_tweets="More tweets";mes_info="More";desde=" from: ";retweet=" retweet de: ";menys_minut=" less than a minute";ago=" ago";usuari="ub_live";enllac="http://twitter.com/ub_live"}}if(typeof usuari==="undefined"){usuari="ub_endirecte"}(function(b){b.fn.jTweetsAnywhere=function(c){c=b.extend({username:usuari,list:null,searchParams:null,count:0,tweetProfileImagePresent:null,tweetFilter:defaultTweetFilter,showTweetFeed:true,showFollowButton:false,showConnectButton:false,showLoginInfo:false,showTweetBox:false,mainDecorator:defaultMainDecorator,tweetFeedDecorator:defaultTweetFeedDecorator,tweetDecorator:defaultTweetDecorator,tweetProfileImageDecorator:defaultTweetProfileImageDecorator,tweetBodyDecorator:defaultTweetBodyDecorator,tweetUsernameDecorator:defaultTweetUsernameDecorator,tweetTextDecorator:defaultTweetTextDecorator,tweetAttributesDecorator:defaultTweetAttributesDecorator,tweetTimestampDecorator:defaultTweetTimestampDecorator,tweetSourceDecorator:defaultTweetSourceDecorator,tweetGeoLocationDecorator:defaultTweetGeoLocationDecorator,tweetInReplyToDecorator:defaultTweetInReplyToDecorator,tweetRetweeterDecorator:defaultTweetRetweeterDecorator,tweetFeedControlsDecorator:defaultTweetFeedControlsDecorator,tweetFeedControlsMoreBtnDecorator:defaultTweetFeedControlsMoreBtnDecorator,tweetFeedControlsPrevBtnDecorator:defaultTweetFeedControlsPrevBtnDecorator,tweetFeedControlsNextBtnDecorator:defaultTweetFeedControlsNextBtnDecorator,tweetFeedAutorefreshTriggerDecorator:defaultTweetFeedAutorefreshTriggerDecorator,tweetFeedAutorefreshTriggerContentDecorator:defaultTweetFeedAutorefreshTriggerContentDecorator,connectButtonDecorator:defaultConnectButtonDecorator,loginInfoDecorator:defaultLoginInfoDecorator,loginInfoContentDecorator:defaultLoginInfoContentDecorator,followButtonDecorator:defaultFollowButtonDecorator,tweetBoxDecorator:defaultTweetBoxDecorator,linkDecorator:defaultLinkDecorator,usernameDecorator:defaultUsernameDecorator,hashtagDecorator:defaultHashtagDecorator,loadingDecorator:defaultLoadingDecorator,errorDecorator:defaultErrorDecorator,noDataDecorator:defaultNoDataDecorator,tweetTimestampFormatter:defaultTweetTimestampFormatter,tweetTimestampTooltipFormatter:defaultTweetTimestampTooltipFormatter,tweetVisualizer:defaultTweetVisualizer,loadingIndicatorVisualizer:defaultLoadingIndicatorVisualizer,autorefreshTriggerVisualizer:defaultAutorefreshTriggerVisualizer,onDataRequestHandler:defaultOnDataRequestHandler,onRateLimitDataHandler:defaultOnRateLimitDataHandler,_tweetFeedConfig:{expandHovercards:false,showTimestamp:{refreshInterval:0},showSource:false,showGeoLocation:true,showInReplyTo:true,showProfileImages:null,showUserScreenNames:null,showUserFullNames:false,includeRetweets:true,paging:{mode:"none",_limit:0,_offset:0},autorefresh:{mode:"none",interval:60,duration:3600,_startTime:null,_triggerElement:null},_pageParam:0,_maxId:null,_recLevel:0,_noData:false,_clearBeforePopulate:false},_tweetBoxConfig:{counter:true,width:515,height:65,label:"What's happening?",defaultContent:"",onTweet:function(){}},_connectButtonConfig:{size:"medium"},_baseSelector:null,_baseElement:null,_tweetFeedElement:null,_tweetFeedControlsElement:null,_followButtonElement:null,_loginInfoElement:null,_connectButtonElement:null,_tweetBoxElement:null,_loadingIndicatorElement:null,_noDataElement:null,_tweetsCache:[],_autorefreshTweetsCache:[],_stats:{dataRequestCount:0,rateLimitPreventionCount:0,rateLimit:{remaining_hits:150,hourly_limit:150}}},c);if(c.mainDecorator){c._baseSelector=this.selector;if(typeof c.username!="string"){if(!c.searchParams){c.searchParams=["q=des de:"+c.username.join(desde)]}c.username=c.username[0]}typeof c.showTweetFeed=="object"&&b.extend(true,c._tweetFeedConfig,c.showTweetFeed);if(typeof c.showTweetBox=="object"){c._tweetBoxConfig=c.showTweetBox;c.showTweetBox=true}if(typeof c.showConnectButton=="object"){c._connectButtonConfig=c.showConnectButton;c.showConnectButton=true}if(c._tweetFeedConfig.showProfileImages==null){c._tweetFeedConfig.showProfileImages=c.tweetProfileImagePresent}if(c._tweetFeedConfig.showProfileImages==null){c._tweetFeedConfig.showProfileImages=(c.list||c.searchParams)&&c.tweetProfileImageDecorator}if(c._tweetFeedConfig.showUserScreenNames==null){if(c.list||c.searchParams){c._tweetFeedConfig.showUserScreenNames=true}if(!c.tweetUsernameDecorator){c._tweetFeedConfig.showUserScreenNames=false}}if(c._tweetFeedConfig.showUserFullNames==null){if(c.list||c.searchParams){c._tweetFeedConfig.showUserFullNames=true}if(!c.tweetUsernameDecorator){c._tweetFeedConfig.showUserFullNames=false}}c.count=validateRange(c.count,0,c.searchParams?100:20);c._tweetFeedConfig.autorefresh.interval=Math.max(30,c._tweetFeedConfig.autorefresh.interval);c._tweetFeedConfig.paging._offset=0;c._tweetFeedConfig.paging._limit=c.count;if(c.count==0||!c.showTweetFeed){c.tweetFeedDecorator=null;c.tweetFeedControlsDecorator=null}if(c._tweetFeedConfig.paging.mode=="none"){c.tweetFeedControlsDecorator=null}if(!c.showFollowButton){c.followButtonDecorator=null}if(!c.showTweetBox){c.tweetBoxDecorator=null}if(!c.showConnectButton){c.connectButtonDecorator=null}if(!c.showLoginInfo){c.loginInfoDecorator=null}if(!c._tweetFeedConfig.showTimestamp){c.tweetTimestampDecorator=null}if(!c._tweetFeedConfig.showSource){c.tweetSourceDecorator=null}if(!c._tweetFeedConfig.showGeoLocation){c.tweetGeoLocationDecorator=null}if(!c._tweetFeedConfig.showInReplyTo){c.tweetInReplyToDecorator=null}b.ajaxSetup({cache:true});return this.each(function(){c._baseElement=b(this);c._tweetFeedElement=c.tweetFeedDecorator?b(c.tweetFeedDecorator(c)):null;c._tweetFeedControlsElement=c.tweetFeedControlsDecorator?b(c.tweetFeedControlsDecorator(c)):null;c._followButtonElement=c.followButtonDecorator?b(c.followButtonDecorator(c)):null;c._tweetBoxElement=c.tweetBoxDecorator?b(c.tweetBoxDecorator(c)):null;c._connectButtonElement=c.connectButtonDecorator?b(c.connectButtonDecorator(c)):null;c._loginInfoElement=c.loginInfoDecorator?b(c.loginInfoDecorator(c)):null;c.mainDecorator(c);populateTweetFeed(c);populateAnywhereControls(c);bindEventHandlers(c);c._tweetFeedConfig.autorefresh._startTime=(new Date).getTime();startAutorefresh(c);startTimestampRefresh(c)})}};defaultMainDecorator=function(c){c._tweetFeedElement&&c._baseElement.append(c._tweetFeedElement);c._tweetFeedControlsElement&&c._baseElement.append(c._tweetFeedControlsElement);c._connectButtonElement&&c._baseElement.append(c._connectButtonElement);c._loginInfoElement&&c._baseElement.append(c._loginInfoElement);c._followButtonElement&&c._baseElement.append(c._followButtonElement);c._tweetBoxElement&&c._baseElement.append(c._tweetBoxElement)};defaultTweetFeedControlsDecorator=function(d){var c="";if(d._tweetFeedConfig.paging.mode=="prev-next"){if(d.tweetFeedControlsPrevBtnDecorator){c+=d.tweetFeedControlsPrevBtnDecorator(d)}if(d.tweetFeedControlsNextBtnDecorator){c+=d.tweetFeedControlsNextBtnDecorator(d)}}else{if(d._tweetFeedConfig.paging.mode!="endless-scroll"){if(d.tweetFeedControlsMoreBtnDecorator){c+=d.tweetFeedControlsMoreBtnDecorator(d)}}}return'<div class="jta-tweet-list-controls">'+c+"</div>"};defaultTweetFeedControlsMoreBtnDecorator=function(){return'<div class="jta-tweet-list-controls-button jta-tweet-list-controls-button-more"></div>'};defaultTweetFeedControlsPrevBtnDecorator=function(){return'<div class="jta-tweet-list-controls-button jta-tweet-list-controls-button-prev"></div>'};defaultTweetFeedControlsNextBtnDecorator=function(){return'<div class="jta-tweet-list-controls-button jta-tweet-list-controls-button-next"></div>'};defaultTweetFeedAutorefreshTriggerDecorator=function(e,d){var f="";if(d.tweetFeedAutorefreshTriggerContentDecorator){f=d.tweetFeedAutorefreshTriggerContentDecorator(e,d)}return'<li class="jta-tweet-list-autorefresh-trigger">'+f+"</li>"};defaultTweetFeedAutorefreshTriggerContentDecorator=function(c){return'<span class="jta-tweet-list-autorefresh-trigger-content">'+(""+c+" new "+(c>1?" tweets":" tweet"))+"</span>"};defaultTweetFeedDecorator=function(){return'<ul class="jta-tweet-list"></ul>'};defaultTweetDecorator=function(e,d){var f="";if(d._tweetFeedConfig.showProfileImages){f+=d.tweetProfileImageDecorator(e,d)}if(d.tweetBodyDecorator){f+=d.tweetBodyDecorator(e,d)}f+='<div class="jta-clear"></div>';return'<div class="jta-tweet-list titol_twitter">'+universitat+'</div><li class="jta-tweet-list-item">'+f+"</li>"};defaultTweetProfileImageDecorator=function(d){d=d.retweeted_status||d;var c=d.user?d.user.screen_name:d.from_user;return'<div class="jta-tweet-profile-image">'+('<a class="jta-tweet-profile-image-link" href="http://twitter.com/'+c+'" target="_blank"><img src="'+(d.user?d.user.profile_image_url:d.profile_image_url)+'" alt="'+c+'"'+(isAnywherePresent()?"":' title="'+c+'"')+"/></a>")+"</div>"};defaultTweetBodyDecorator=function(e,d){var f="";if(d.tweetTextDecorator){f+=d.tweetTextDecorator(e,d)}if(d.tweetAttributesDecorator){f+=d.tweetAttributesDecorator(e,d)}return'<div class="jta-tweet-body '+(d._tweetFeedConfig.showProfileImages?"jta-tweet-body-list-profile-image-present":"")+'">'+f+"</div>"};defaultTweetTextDecorator=function(e,d){var f=e.text;if(e.retweeted_status&&(d._tweetFeedConfig.showUserScreenNames||d._tweetFeedConfig.showUserScreenNames==null||d._tweetFeedConfig.showUserFullNames||d._tweetFeedConfig.showUserFullNames==null)){f=e.retweeted_status.text}if(d.linkDecorator){f=d.linkDecorator(f,d)}if(d.usernameDecorator){f=d.usernameDecorator(f,d)}if(d.hashtagDecorator){f=d.hashtagDecorator(f,d)}if(d._tweetFeedConfig.showUserScreenNames||d._tweetFeedConfig.showUserFullNames||e.retweeted_status&&(d._tweetFeedConfig.showUserScreenNames==null||d._tweetFeedConfig.showUserFullNames==null)){f=d.tweetUsernameDecorator(e,d)+" "+f}return'<span class="jta-tweet-text">'+f+"</span>"};defaultTweetUsernameDecorator=function(h,e){var m=h.retweeted_status||h,l=m.user?m.user.screen_name:m.from_user;m=m.user?m.user.name:null;var k;if(l&&(e._tweetFeedConfig.showUserScreenNames||e._tweetFeedConfig.showUserScreenNames==null&&h.retweeted_status)){k='<span class="jta-tweet-user-screen-name"><a class="jta-tweet-user-screen-name-link" href="http://twitter.com/'+l+'" target="_blank">'+l+"</a></span>"}var j;if(m&&(e._tweetFeedConfig.showUserFullNames||e._tweetFeedConfig.showUserFullNames==null&&h.retweeted_status)){j='<span class="jta-tweet-user-full-name">'+(k?" (":"")+'<a class="jta-tweet-user-full-name-link" href="http://twitter.com/'+l+'" name="'+l+'" target="_blank">'+m+"</a>"+(k?")":"")+"</span>"}l="";if(k){l+=k}if(j){if(k){l+=" "}l+=j}if(k||j){l='<span class="jta-tweet-user-name">'+(h.retweeted_status?"RT ":"")+l+"</span>"}return l};defaultTweetAttributesDecorator=function(e,d){var f="";if(d.tweetTimestampDecorator||d.tweetSourceDecorator||d.tweetGeoLocationDecorator||d.tweetInReplyToDecorator||e.retweeted_status&&d.tweetRetweeterDecorator){f+='<span class="jta-tweet-attributes">';if(d.tweetTimestampDecorator){f+=d.tweetTimestampDecorator(e,d)}if(d.tweetSourceDecorator){f+=d.tweetSourceDecorator(e,d)}if(d.tweetGeoLocationDecorator){f+=d.tweetGeoLocationDecorator(e,d)}if(d.tweetInReplyToDecorator){f+=d.tweetInReplyToDecorator(e,d)}if(e.retweeted_status&&d.tweetRetweeterDecorator){f+=d.tweetRetweeterDecorator(e,d)}f+="</span>"}return f};defaultTweetTimestampDecorator=function(h,e){var m=h.retweeted_status||h,l=formatDate(m.created_at),k=e.tweetTimestampFormatter(l),j=e.tweetTimestampTooltipFormatter(l);return'<span class="jta-tweet-timestamp"><a class="jta-tweet-timestamp-link" data-timestamp="'+l+'" href="http://twitter.com/'+(m.user?m.user.screen_name:m.from_user)+"/status/"+m.id+'" target="_blank" title="'+j+'">'+k+"</a></span>"};defaultTweetTimestampTooltipFormatter=function(c){return(new Date(c)).toLocaleString()};defaultTweetTimestampFormatter=function(f){var e=new Date,h=parseInt((e.getTime()-Date.parse(f))/1000),g="";if(h<60){g+=publi+h+segon+ago(h==1?"":"s")}else{if(h<3600){e=parseInt((h+30)/60);g+=(e==1?publi+e+minut+ago:publi+e+minuts+ago)}else{if(h<86400){e=parseInt((h+1800)/3600);g+=(e==1?publi+hora+ago:publi+e+hores+ago)}else{f=new Date(f);f.getHours();f.getMinutes();g+=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][f.getMonth()]+" "+f.getDate();if(f.getFullYear()<e.getFullYear()){g+=", "+f.getFullYear()}e=parseInt((h+43200)/86400);g="";g=(e==1?publi+e+dia+ago:publi+e+dies+ago)}}}return g};exTimestampFormatter=function(g){var e=parseInt(((new Date).getTime()-Date.parse(g))/1000),k="";if(e<60){k+=menys_minut}else{if(e<3600){e=parseInt((e+30)/60);k+=publi+e+minut+(e==1?"":"s")}else{if(e<86400){e=parseInt((e+1800)/3600);k+=publi+e+hora+(e==1?"":"s")}else{e=parseInt((e+43200)/86400);k+=publi+e+dia+(e==1?"":"s");g=new Date(g);e="AM";var j=g.getHours();if(j>12){j-=12;e="PM"}var h=g.getMinutes();k+=" ("+j+":"+((h<10?"0":"")+h)+" "+e+" "+(g.getMonth()+1)+"/"+g.getDate()+"/"+g.getFullYear()+")"}}}return k};defaultTweetSourceDecorator=function(c){return'<span class="jta-tweet-source">'+desde+'<span class="jta-tweet-source-link">'+(c.retweeted_status||c).source.replace(/\&lt\;/gi,"<").replace(/\&gt\;/gi,">").replace(/\&quot\;/gi,'"')+"</span></span>"};defaultTweetGeoLocationDecorator=function(e){var d="";e=e.retweeted_status||e;var f;if(e.geo&&e.geo.coordinates){f=e.geo.coordinates.join()}else{if(e.place&&e.place.full_name){f=e.place.full_name}}if(f){d="here";if(e.place&&e.place.full_name){d=e.place.full_name}d='<span class="jta-tweet-location">'+desde+' <a class="jta-tweet-location-link" href="'+("http://maps.google.com/maps?q="+f)+'" target="_blank">'+d+"</a></span>"}return d};defaultTweetInReplyToDecorator=function(d){d=d.retweeted_status||d;var c="";if(d.in_reply_to_status_id&&d.in_reply_to_screen_name){c='<span class="jta-tweet-inreplyto"> <a class="jta-tweet-inreplyto-link" href="http://twitter.com/'+d.in_reply_to_screen_name+"/status/"+d.in_reply_to_status_id+'" target="_blank">en resposta a: '+d.in_reply_to_screen_name+"</a></span>"}return c};defaultTweetRetweeterDecorator=function(e){var d="";if(e.retweeted_status){d=e.user?e.user.screen_name:e.from_user;e=(e.retweeted_status.retweet_count||0)-1;var f=" and "+e+(e>1?" others":" other");d='<br/><span class="jta-tweet-retweeter">'+retweet+('<a class="jta-tweet-retweeter-link" href="http://twitter.com/'+d+'" target="_blank">'+d+"</a>")+(e>0?f:"")+"</span>"}return d};defaultConnectButtonDecorator=function(){return'<div class="jta-connect-button"></div>'};defaultLoginInfoDecorator=function(){return'<div class="jta-login-info"></div>'};defaultLoginInfoContentDecorator=function(f,e){var h="";if(e.isConnected()){h=e.currentUser.data("screen_name");var g=e.currentUser.data("profile_image_url");h='<div class="jta-login-info-profile-image"><a href="http://twitter.com/'+h+'" target="_blank"><img src="'+g+'" alt="'+h+'" title="'+h+'"/></a></div><div class="jta-login-info-block"><div class="jta-login-info-screen-name"><a href="http://twitter.com/'+h+'" target="_blank">'+h+'</a></div><div class="jta-login-info-sign-out">Sign out</div></div><div class="jta-clear"></div>'}return h};defaultFollowButtonDecorator=function(){return'<div class="jta-follow-button"></div>'};defaultTweetBoxDecorator=function(){return'<div class="jta-tweet-box"></div>'};defaultLinkDecorator=function(c){return c.replace(/((ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?)/gi,'<a href="$1" class="jta-tweet-a jta-tweet-link" target="_blank" rel="nofollow">$1</a>')};defaultUsernameDecorator=function(c){return isAnywherePresent()?c:c.replace(/@([a-zA-Z0-9_]+)/gi,'@<a href="http://twitter.com/$1" class="jta-tweet-a twitter-anywhere-user" target="_blank" rel="nofollow">$1</a>')};defaultHashtagDecorator=function(c){return c.replace(/#([a-zA-Z0-9_]+)/gi,'<a href="http://search.twitter.com/search?q=%23$1" class="jta-tweet-a jta-tweet-hashtag" title="#$1" target="_blank" rel="nofollow">#$1</a>')};defaultLoadingDecorator=function(){return'<div class="jta-loading">'+carrega+"</div>"};defaultErrorDecorator=function(c){return'<li class="jta-error">ERROR: '+c+"</li>"};defaultNoDataDecorator=function(){return'<li class="jta-nodata">No hi ha mÃ©s informaciÃ³</li>'};defaultTweetFilter=function(){return true};defaultTweetVisualizer=function(e,d,f){e[f](d)};defaultLoadingIndicatorVisualizer=function(f,e,h,g){defaultVisualizer(f,e,"append","fadeIn",600,"fadeOut",200,g)};defaultAutorefreshTriggerVisualizer=function(f,e,h,g){defaultVisualizer(f,e,"prepend","slideDown",600,"fadeOut",200,g)};defaultVisualizer=function(s,r,q,p,o,n,e,m){var l=function(){m&&m()};if(s){r.hide();s[q](r);r[p](o,l)}else{r[n](e,function(){r.remove();l()})}};defaultOnDataRequestHandler=function(){return true};defaultOnRateLimitDataHandler=function(){};updateLoginInfoElement=function(d,c){if(d._loginInfoElement&&d.loginInfoContentDecorator){d._loginInfoElement.children().remove();d._loginInfoElement.append(d.loginInfoContentDecorator(d,c));b(d._baseSelector+" .jta-login-info-sign-out").bind("click",function(){twttr.anywhere.signOut()})}};getFeedUrl=function(e,d){var f="https:"==document.location.protocol?"https:":"http:";if(e.searchParams){f+="//search.twitter.com/search.json?"+(e.searchParams instanceof Array?e.searchParams.join("&"):e.searchParams)+"&rpp=100"}else{if(e.list){f+="//api.twitter.com/1/"+e.username+"/lists/"+e.list+"/statuses.json?per_page=20"}else{f+="//api.twitter.com/1/statuses/user_timeline.json?screen_name="+e.username+"&count=20";if(e._tweetFeedConfig.includeRetweets){f+="&include_rts=true"}}}if(d){f+=(e._tweetFeedConfig._maxId?"&max_id="+e._tweetFeedConfig._maxId:"")+"&page="+e._tweetFeedConfig._pageParam}f+="&callback=?";return f};isAnywherePresent=function(){return typeof twttr!="undefined"};clearTweetFeed=function(c){c._tweetFeedElement&&c._tweetFeedElement.empty()};populateTweetFeed=function(c){c.tweetDecorator&&c._tweetFeedElement&&getPagedTweets(c,function(d,e){e._tweetFeedConfig._clearBeforePopulate&&clearTweetFeed(e);hideLoadingIndicator(e,function(){b.each(d,function(h,g){e.tweetVisualizer(e._tweetFeedElement,b(e.tweetDecorator(g,e)),"append",e)});if(e._tweetFeedConfig._noData&&e.noDataDecorator&&!e._tweetFeedConfig._noDataElement){e._tweetFeedConfig._noDataElement=b(e.noDataDecorator(e));e._tweetFeedElement.append(e._tweetFeedConfig._noDataElement)}e._tweetFeedConfig._clearBeforePopulate&&e._tweetFeedElement.scrollTop(0);addHovercards(e)})})};populateTweetFeed2=function(c){if(c._tweetFeedElement&&c._autorefreshTweetsCache.length>0){if(c._tweetFeedConfig.autorefresh.mode=="trigger-insert"){if(c._tweetFeedConfig.autorefresh._triggerElement){c.tweetFeedAutorefreshTriggerContentDecorator&&c._tweetFeedConfig.autorefresh._triggerElement.html(c.tweetFeedAutorefreshTriggerContentDecorator(c._autorefreshTweetsCache.length,c))}else{if(c.tweetFeedAutorefreshTriggerDecorator){c._tweetFeedConfig.autorefresh._triggerElement=b(c.tweetFeedAutorefreshTriggerDecorator(c._autorefreshTweetsCache.length,c));c._tweetFeedConfig.autorefresh._triggerElement.bind("click",function(){c.autorefreshTriggerVisualizer(null,c._tweetFeedConfig.autorefresh._triggerElement,c,function(){insertTriggerTweets(c)});c._tweetFeedConfig.autorefresh._triggerElement=null});c.autorefreshTriggerVisualizer(c._tweetFeedElement,c._tweetFeedConfig.autorefresh._triggerElement,c)}}}else{insertTriggerTweets(c)}}};insertTriggerTweets=function(d){if(d.tweetDecorator&&d._autorefreshTweetsCache.length>0){for(;d._autorefreshTweetsCache.length>0;){var c=d._autorefreshTweetsCache.pop();d._tweetsCache.unshift(c);d._tweetFeedConfig.paging._offset++;d.tweetVisualizer(d._tweetFeedElement,b(d.tweetDecorator(c,d)),"prepend",d)}addHovercards(d)}};addHovercards=function(c){isAnywherePresent()&&twttr.anywhere(function(d){d(c._baseSelector+" .jta-tweet-list").hovercards({expanded:c._tweetFeedConfig.expandHovercards});d(c._baseSelector+" .jta-tweet-profile-image img").hovercards({expanded:c._tweetFeedConfig.expandHovercards,username:function(e){return e.alt}});d(c._baseSelector+" .jta-tweet-retweeter-link").hovercards({expanded:c._tweetFeedConfig.expandHovercards,username:function(e){return e.text}});d(c._baseSelector+" .jta-tweet-user-screen-name-link").hovercards({expanded:c._tweetFeedConfig.expandHovercards,username:function(e){return e.text}});d(c._baseSelector+" .jta-tweet-user-full-name-link").hovercards({expanded:c._tweetFeedConfig.expandHovercards,username:function(e){return e.name}})})};populateAnywhereControls=function(c){isAnywherePresent()&&twttr.anywhere(function(d){c.tweetBoxDecorator&&d(c._baseSelector+" .jta-tweet-box").tweetBox(c._tweetBoxConfig);c.followButtonDecorator&&d(c._baseSelector+" .jta-follow-button").followButton(c.username);if(c.connectButtonDecorator){var e=b.extend({authComplete:function(){updateLoginInfoElement(c,d)},signOut:function(){updateLoginInfoElement(c,d)}},c._connectButtonConfig);d(c._baseSelector+" .jta-connect-button").connectButton(e);updateLoginInfoElement(c,d)}})};bindEventHandlers=function(c){if(c.tweetFeedControlsDecorator){if(c._tweetFeedConfig.paging.mode=="prev-next"){b(c._baseSelector+" .jta-tweet-list-controls-button-prev").bind("click",function(){!isLoading(c)&&c._tweetFeedConfig.paging._offset>0&&prevPage(c,true)});b(c._baseSelector+" .jta-tweet-list-controls-button-next").bind("click",function(){isLoading(c)||nextPage(c,true)})}else{c._tweetFeedConfig.paging.mode=="endless-scroll"?c._tweetFeedElement.bind("scroll",function(){!isLoading(c)&&b(this)[0].scrollHeight-b(this).scrollTop()==b(this).outerHeight()&&nextPage(c,false)}):b(c._baseSelector+" .jta-tweet-list-controls-button-more").bind("click",function(){isLoading(c)||nextPage(c,false)})}}};nextPage=function(d,c){doPage(d,c,Math.min(d._tweetFeedConfig.paging._offset+d._tweetFeedConfig.paging._limit,d._tweetsCache.length))};prevPage=function(d,c){doPage(d,c,Math.max(0,d._tweetFeedConfig.paging._offset-d._tweetFeedConfig.paging._limit))};doPage=function(e,d,f){e._tweetFeedConfig.paging._offset=f;e._tweetFeedConfig._clearBeforePopulate=d;populateTweetFeed(e)};startAutorefresh=function(c){if(c._tweetFeedConfig.autorefresh.mode!="none"&&c._tweetFeedConfig.paging.mode!="prev-next"&&c._tweetFeedConfig.autorefresh.duration!=0&&(c._tweetFeedConfig.autorefresh.duration<0||(new Date).getTime()-c._tweetFeedConfig.autorefresh._startTime<=c._tweetFeedConfig.autorefresh.duration*1000)){window.setTimeout(function(){processAutorefresh(c)},c._tweetFeedConfig.autorefresh.interval*1000)}};stopAutorefresh=function(c){c._tweetFeedConfig.autorefresh.duration=0};processAutorefresh=function(c){if(c._tweetFeedConfig.autorefresh.duration!=0){getRateLimitedData(c,true,getFeedUrl(c,false),function(e,g){var f=(e.results||e).slice(0);f.reverse();b.each(f,function(h,d){isTweetInCache(d,g)||g.tweetFilter(d,g)&&g._autorefreshTweetsCache.unshift(d)});populateTweetFeed2(g)});startAutorefresh(c)}};startTimestampRefresh=function(c){c.tweetTimestampDecorator&&typeof c._tweetFeedConfig.showTimestamp=="object"&&c._tweetFeedConfig.showTimestamp.refreshInterval>0&&window.setTimeout(function(){processTimestampRefresh(c)},c._tweetFeedConfig.showTimestamp.refreshInterval*1000)};processTimestampRefresh=function(c){b.each(c._tweetFeedElement.find(".jta-tweet-timestamp-link"),function(e,g){var f=b(g).attr("data-timestamp");b(g).html(c.tweetTimestampFormatter(f))});startTimestampRefresh(c)};isTweetInCache=function(f,e){for(var h=e._tweetsCache.length,g=0;g<h;g++){if(f.id==e._tweetsCache[g].id){return true}}return false};showLoadingIndicator=function(c){if(c._tweetFeedElement&&c.loadingDecorator&&!c._loadingIndicatorElement){c._loadingIndicatorElement=b(c.loadingDecorator(c));c.loadingIndicatorVisualizer(c._tweetFeedElement,c._loadingIndicatorElement,c,null);c._tweetFeedElement.scrollTop(1000000)}};hideLoadingIndicator=function(d,c){if(d._loadingIndicatorElement){d.loadingIndicatorVisualizer(null,d._loadingIndicatorElement,d,c);d._loadingIndicatorElement=null}else{c&&c()}};isLoading=function(c){return c._loadingIndicatorElement!=null};formatDate=function(c){return c.replace(/^([a-z]{3})( [a-z]{3} \d\d?)(.*)( \d{4})$/i,"$1,$2$4$3")};validateRange=function(e,d,f){if(e<d){e=d}if(e>f){e=f}return e};showError=function(d,c){d.errorDecorator&&d._tweetFeedElement&&d._tweetFeedElement.append(d.errorDecorator(c,d))};getPagedTweets=function(d,c){d._tweetFeedConfig._recLevel=0;getRecPagedTweets(d,d._tweetFeedConfig.paging._offset,d._tweetFeedConfig.paging._limit,c)};getRecPagedTweets=function(h,e,m,l){++h._tweetFeedConfig._recLevel;if(e+m<=h._tweetsCache.length||h._tweetFeedConfig._recLevel>3||h._tweetFeedConfig._noData){if(e+m>h._tweetsCache.length){m=Math.max(0,h._tweetsCache.length-e)}for(var k=[],j=0;j<m;j++){k[j]=h._tweetsCache[e+j]}l(k,h)}else{++h._tweetFeedConfig._pageParam;getRateLimitedData(h,false,getFeedUrl(h,true),function(c,f){var d=c.results||c;if(d.length==0){f._tweetFeedConfig._noData=true}else{b.each(d,function(g,n){if(n.id_str){n.id=n.id_str}if(n.in_reply_to_status_id_str){n.in_reply_to_status_id=n.in_reply_to_status_id_str}if(!f._tweetFeedConfig._maxId){f._tweetFeedConfig._maxId=n.id}f.tweetFilter(n,f)&&f._tweetsCache.push(n)})}getRecPagedTweets(f,e,m,l)})}};getRateLimitedData=function(f,e,h,g){getRateLimit(f,function(c){if(c&&c.remaining_hits<=0){f._stats.rateLimitPreventionCount++;hideLoadingIndicator(f,null)}else{getData(f,e,h,g)}})};getData=function(f,e,h,g){f._stats.dataRequestCount++;if(f.onDataRequestHandler(f._stats,f)){e||showLoadingIndicator(f);b.getJSON(h,function(c){c.error?showError(f,c.error):g(c,f)})}else{hideLoadingIndicator(f,null)}};getRateLimit=function(d,c){b.getJSON("http://api.twitter.com/1/account/rate_limit_status.json?callback=?",function(e){d._stats.rateLimit=e;d.onRateLimitDataHandler(d._stats,d);c(e)})}})(jQuery);$(document).ready(function(){scroll_web();$('*[class=""]').removeAttr("class");$("#print .no_print").hide();$(".contenedor_desplegable").hide();$("#noscript").css("margin-bottom","0");$("#rector").css("padding-top","10px");desplegable();$(".ajax").click(function(){$(".ajax").each(function(c){$(this).removeClass("selected")});$(this).addClass("selected");$.ajax({type:"GET",url:String($(this).attr("rel")),success:function(c){$(String("#zona_contenido")).html(c);slide()}});return false});$(".cerca_tematica").click(function(){$(".M-002-c").slideToggle();var c=$(".cerca_tematica span").text();if(c=="[-]"){$(".cerca_tematica span").html("[+]")}else{$(".cerca_tematica span").html("[-]")}});if($(".M-013-b-2").length){$(".M-002-c").slideToggle();$(".cerca_tematica span").html("[+]")}$(".button1, .button2, .button1_1columnas, .button1_2columnas").hover(function(){button_rollover(this)},function(){button_rollout(this)});$(".redondear_caja").corner("6px  Hover iefixheightint");$(".round_title").corner("tl 6px").corner("tr 6px");$(".round_content").corner("bl 6px").corner("br 6px");$(".round_box").corner("6px  Hover iefixheightint");$("#page").after('<div id="bottom"><div id="bottom_left"></div><div id="bottom_center"></div><div id="bottom_right"></div></div>');if(String(jQuery(".slider_ub").get(0))!="undefined"){$(".slider_ub").accessNews({newsHeadline:"fgdfhgfdg",newsSpeed:"normal"})}if(String(jQuery(".slider_ub_petit").get(0))!="undefined"){$(".slider_ub_petit").accessNews({newsHeadline:"fgdfhgfdg",newsSpeed:"normal"})}if(String(jQuery("#tabs").get(0))!="undefined"){crear_tabs()}if(String(jQuery("#enviar_noticia").get(0))!="undefined"){$("#enviar_noticia").click(function(){$.showAkModal(this.href,"formularios",650,470);return false})}if(String(jQuery("#enviar_multimedia").get(0))!="undefined"){$("#enviar_multimedia").click(function(){$.showAkModal(this.href,"formularios",650,470);return false})}if(String(jQuery("#map").get(0))!="undefined"){if(GBrowserIsCompatible()){$("#map").css("background","none");var b=new GMap2(document.getElementById("map"));b.addControl(new GLargeMapControl());b.addControl(new GMapTypeControl());b.setCenter(new GLatLng(0,0),2)}}reload();load_estudis();$("ocultar").hide();if(typeof usuari==="undefined"){usuari="ub_endirecte"}$("#tweets").jTweetsAnywhere({username:usuari,count:1,showTweetFeed:{paging:{mode:"prev-next"}}})});defaultTweetFeedControlsNextBtnDecorator=function(){return'<div class="jta-tweet-list-controls-button jta-tweet-list-controls-button-next"></div><div class="jta-tweet-list-controls-button jta-tweet-list-controls-button-mesinfo"><a href="'+enllac+'" alt="mÃ©s tweets" class="enllac_mes">'+mes_tweets+"</a></div>"};function crear_tabs(){$("#tabs").css("visibility","visible");$("#tabs").css("position","relative");$("#tabs").css("left","0");$("#tabsEx1 > ul").tabs();$(".tabs1").corner("tl 6px").corner("tr 6px");$(".ui-tabs-selected").corner("tl 6px").corner("tr 6px");$(".ui-tabs-unselect").corner("tl 6px").corner("tr 6px");$(".ui-tabs-nav").corner("tl 6px").corner("tr 6px");$(".ui-tabs-panel").corner("bl 6px").corner("br 6px");$("#fragment-1").corner("4px");$("#fragment-2").corner("4px  Hover iefixheightint");$("#tab1").click(function(){$("#flecha").animate({left:"20%"})});$("#tab2").click(function(){$("#flecha").animate({left:"70%"})});$("#flecha").corner(" bevel bl 50%  ").corner("bevel br 50%");$("#flecha").css("visibility","visible");$("#titular_grupub").css("visibility","hidden");$("#titular_centres").css("visibility","hidden");$("#titular_grupub").css("position","absolute");$("#titular_grupub").css("left","-10000");$("#titular_centres").css("position","absolute");$("#titular_centres").css("left","-10000");$("#contenido_tab").css("margin-bottom","0");$("#tabs").before('<div id="flecha"></div> ')}function button_rollover(e){var f=e.src;var b=String(f).split("/");var c=String(b[b.length-1]).split(".");var d=String(f).substring(0,String(f).lastIndexOf("/"))+"/"+c[0]+"_hover."+c[1];e.src=d}function button_rollout(d){var c=d.src;var b=String(c).split("_hover");if(b.length==2){var e=b[0]+b[1];d.src=e}}function M_008_a_init(){$(".M-008-a a").click(function(){var b=$(this).text();$.ajax({type:"GET",url:"M_008_b.html",data:"tipus="+b,success:function(c){$("#M-008").removeClass("M-008-a");$("#M-008").addClass("M-008-b");$("#M-008").html(c);$(".M-008-b .back").click(function(){$.ajax({type:"GET",url:"M_008_a.html",success:function(d){$("#M-008").removeClass("M-008-b");$("#M-008").addClass("M-008-a");$("#M-008").html(d);M_008_a_init()}});return false});autocomplet_init()}});return false})}function autocomplet_init(){$("#M-008-b_search").autocomplete("search.php",{selectFirst:false})}function reload(){$("#M-008-a").removeClass("hidden");$("#grauDiv").addClass("hidden");$("#masterDiv").addClass("hidden");$("#doctoratDiv").addClass("hidden");$("#masterPropiDiv").addClass("hidden");$("#extensioDiv").addClass("hidden");$("#formacioDiv").addClass("hidden")}function load_estudis(){$("#grau").click(function(){$("#M-008-a").addClass("hidden");$("#grauDiv").removeClass("hidden")});$("#master").click(function(){$("#M-008-a").addClass("hidden");$("#masterDiv").removeClass("hidden")});$("#doctorat").click(function(){$("#M-008-a").addClass("hidden");$("#doctoratDiv").removeClass("hidden")});$("#masterPropi").click(function(){$("#M-008-a").addClass("hidden");$("#masterPropiDiv").removeClass("hidden")});$("#extensio").click(function(){$("#M-008-a").addClass("hidden");$("#extensioDiv").removeClass("hidden")});$("#formacio").click(function(){$("#M-008-a").addClass("hidden");$("#formacioDiv").removeClass("hidden")});$(".cancelEstudis").click(function(){reload()})}function slide(){var b=0;$(".titular2").each(function(){var c="#texto"+b;$(".capa_escondida").hide();$(this).click(function(d){d.preventDefault();$(c).slideToggle()});b++})}function desplegable(){var b=$(".esconderDiv").length;$(".contenedor_desplegable").show();$("#ocultar").css("display","none");$("#tweets").css("display","block");for(i=1;i<=b;i++){$(".capa_escondida"+i).css({display:"none"})}$(".capa_escondida1").slideDown("slow");$(".esconderDiv").each(function(c){c++;$("#div"+c).click(function(d){d.preventDefault();for(u=1;u<=b;u++){if(u==c){continue}else{$(".capa_escondida"+u).slideUp("slow")}}$(".capa_escondida"+c).slideDown("slow")})})}function scroll_web(){if($(".tipo11").attr("href")=="#"){$(".tipo11").attr("href","#page")}$.localScroll()}$(window).load(function(){var b=$(".esconderDiv").length;$(".contenedor_desplegable").show();$("#ocultar").css("display","none");$("#tweets").css("display","block");for(i=1;i<=b;i++){$(".capa_escondida"+i).css({display:"none"})}$(".capa_escondida1").slideDown("slow");$(".esconderDiv").each(function(c){c++;$("#div"+c).click(function(d){d.preventDefault();for(u=1;u<=b;u++){if(u==c){continue}else{$(".capa_escondida"+u).slideUp("slow")}}$(".capa_escondida"+c).slideDown("slow")})})});function load_video(b,c){var d=new SWFObject(c,"player","100%","100%","9","#ffffff");d.addParam("allowfullscreen","true");d.addParam("allowscriptaccess","always");d.addParam("wmode","opaque");d.addParam("flashvars","file="+b);d.write("myplayer")}(function(b){load_video=function(q,e,f,p,h,m,o,l,s,c,v,j,k,t,g,r,n){if(String(jQuery("."+q).get(0))!="undefined"){b("."+e).css("background-color",r);var d=new SWFObject(p,"player",o,l,g);d.addParam("allowfullscreen",s);d.addParam("allowscriptaccess",c);d.addParam("wmode",v);d.addParam("seamlesstabbing",j);d.addParam("flashvars","file="+h+"&amp;captions.file="+t+"&amp;stretching="+k+"&amp;plugins="+n+"&amp;image="+m);d.write(f)}};load_video=function(q,e,f,p,h,m,o,l,s,c,v,j,k,t,g,r,n,x){if(String(jQuery("."+q).get(0))!="undefined"){b("."+e).css("background-color",r);var d=new SWFObject(p,"player",o,l,g);d.addParam("allowfullscreen",s);d.addParam("allowscriptaccess",c);d.addParam("wmode",v);d.addParam("seamlesstabbing",j);d.addParam("flashvars","file="+h+"&amp;streamer="+x+"&amp;captions.file="+t+"&amp;stretching="+k+"&amp;plugins="+n+"&amp;image="+m);d.write(f)}}})(jQuery);$(document).ready(function(){$("#M-002-a_submit2").click(function(){if($("#M-002-a_paraula").val()==""){return false}else{return true}})});(function(I,m,V){var J={transition:"elastic",speed:300,width:false,initialWidth:"600",innerWidth:false,maxWidth:false,height:false,initialHeight:"450",innerHeight:false,maxHeight:false,scalePhotos:true,scrolling:true,inline:false,html:false,iframe:false,fastIframe:true,photo:false,href:false,title:false,rel:false,opacity:0.9,preloading:true,current:"imatge {current} de {total}",previous:"anterior",next:"segÃ¼ent",close:"tancar",open:false,returnFocus:true,loop:true,slideshow:false,slideshowAuto:true,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:false,onLoad:false,onComplete:false,onCleanup:false,onClosed:false,overlayClose:true,escKey:true,arrowKey:true},z="colorbox",S="cbox",U=S+"_open",f=S+"_load",T=S+"_complete",v=S+"_cleanup",aa=S+"_closed",k=S+"_purge",x=I.browser.msie&&!I.support.opacity,ad=x&&I.browser.version<7,Z=S+"_IE6",Q,ae,af,e,G,q,c,P,d,Y,M,l,j,p,t,W,s,R,B,C,ab={},ag,n,h,b,y,H,o,E,X,L=false,K,r=S+"Element";function O(aj,ah){var ai=m.createElement("div");if(aj){ai.id=S+aj}ai.style.cssText=ah||false;return I(ai)}function N(ah,ai){ai=ai==="x"?Y.width():Y.height();return(typeof ah==="string")?Math.round((/%/.test(ah)?(ai/100)*parseInt(ah,10):parseInt(ah,10))):ah}function D(ah){return ab.photo||/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(ah)}function ac(ai){for(var ah in ai){if(I.isFunction(ai[ah])&&ah.substring(0,2)!=="on"){ai[ah]=ai[ah].call(y)}}ai.rel=ai.rel||y.rel||"nofollow";ai.href=I.trim(ai.href||I(y).attr("href"));ai.title=ai.title||y.title}function F(ah,ai){if(ai){ai.call(y)}I.event.trigger(ah)}function A(){var ai,ak=S+"Slideshow_",al="click."+S,am,aj,ah;if(ab.slideshow&&d[1]){am=function(){W.text(ab.slideshowStop).unbind(al).bind(T,function(){if(H<d.length-1||ab.loop){ai=setTimeout(K.next,ab.slideshowSpeed)}}).bind(f,function(){clearTimeout(ai)}).one(al+" "+v,aj);ae.removeClass(ak+"off").addClass(ak+"on");ai=setTimeout(K.next,ab.slideshowSpeed)};aj=function(){clearTimeout(ai);W.text(ab.slideshowStart).unbind([T,f,v,al].join(" ")).one(al,am);ae.removeClass(ak+"on").addClass(ak+"off")};if(ab.slideshowAuto){am()}else{aj()}}}function g(ah){if(!L){y=ah;ac(I.extend(ab,I.data(y,z)));d=I(y);H=0;if(ab.rel!=="nofollow"){d=I("."+r).filter(function(){var aj=I.data(this,z).rel||this.rel;return(aj===ab.rel)});H=d.index(y);if(H===-1){d=d.add(y);H=d.length-1}}if(!E){E=X=true;ae.show();if(ab.returnFocus){try{y.blur();I(y).one(aa,function(){try{this.focus()}catch(aj){}})}catch(ai){}}Q.css({opacity:+ab.opacity,cursor:ab.overlayClose?"pointer":"auto"}).show();ab.w=N(ab.initialWidth,"x");ab.h=N(ab.initialHeight,"y");K.position(0);if(ad){Y.bind("resize."+Z+" scroll."+Z,function(){Q.css({width:Y.width(),height:Y.height(),top:Y.scrollTop(),left:Y.scrollLeft()})}).trigger("resize."+Z)}F(U,ab.onOpen);C.add(p).hide();B.html(ab.close).show()}K.load(true)}}K=I.fn[z]=I[z]=function(ah,ak){var ai=this,aj;if(!ai[0]&&ai.selector){return ai}ah=ah||{};if(ak){ah.onComplete=ak}if(!ai[0]||ai.selector===undefined){ai=I("<a/>");ah.open=true}ai.each(function(){I.data(this,z,I.extend({},I.data(this,z)||J,ah));I(this).addClass(r)});aj=ah.open;if(I.isFunction(aj)){aj=aj.call(ai)}if(aj){g(ai[0])}return ai};K.init=function(){Y=I(V);ae=O().attr({id:z,"class":x?S+(ad?"IE6":"IE"):""});Q=O("Overlay",ad?"position:absolute":"").hide();af=O("Wrapper");e=O("Content").append(M=O("LoadedContent","width:0; height:0; overflow:hidden"),j=O("LoadingOverlay").add(O("LoadingGraphic")),p=O("Title"),t=O("Current"),s=O("Next"),R=O("Previous"),W=O("Slideshow").bind(U,A),B=O("Close"));af.append(O().append(O("TopLeft"),G=O("TopCenter"),O("TopRight")),O(false,"clear:left").append(q=O("MiddleLeft"),e,c=O("MiddleRight")),O(false,"clear:left").append(O("BottomLeft"),P=O("BottomCenter"),O("BottomRight"))).children().children().css({"float":"left"});l=O(false,"position:absolute; width:9999px; visibility:hidden; display:none");I("body").prepend(Q,ae.append(af,l));e.children().hover(function(){I(this).addClass("hover")},function(){I(this).removeClass("hover")}).addClass("hover");ag=G.height()+P.height()+e.outerHeight(true)-e.height();n=q.width()+c.width()+e.outerWidth(true)-e.width();h=M.outerHeight(true);b=M.outerWidth(true);ae.css({"padding-bottom":ag,"padding-right":n}).hide();s.click(function(){K.next()});R.click(function(){K.prev()});B.click(function(){K.close()});C=s.add(R).add(t).add(W);e.children().removeClass("hover");I("."+r).live("click",function(ah){if(!((ah.button!==0&&typeof ah.button!=="undefined")||ah.ctrlKey||ah.shiftKey||ah.altKey)){ah.preventDefault();g(this)}});Q.click(function(){if(ab.overlayClose){K.close()}});I(m).bind("keydown."+S,function(ai){var ah=ai.keyCode;if(E&&ab.escKey&&ah===27){ai.preventDefault();K.close()}if(E&&ab.arrowKey&&d[1]){if(ah===37){ai.preventDefault();R.click()}else{if(ah===39){ai.preventDefault();s.click()}}}})};K.remove=function(){ae.add(Q).remove();I("."+r).die("click").removeData(z).removeClass(r)};K.position=function(al,ai){var ak,aj=Math.max(m.documentElement.clientHeight-ab.h-h-ag,0)/2+Y.scrollTop(),ah=Math.max(Y.width()-ab.w-b-n,0)/2+Y.scrollLeft();ak=(ae.width()===ab.w+b&&ae.height()===ab.h+h)?0:al;af[0].style.width=af[0].style.height="9999px";function am(an){G[0].style.width=P[0].style.width=e[0].style.width=an.style.width;j[0].style.height=j[1].style.height=e[0].style.height=q[0].style.height=c[0].style.height=an.style.height}ae.dequeue().animate({width:ab.w+b,height:ab.h+h,top:aj,left:ah},{duration:ak,complete:function(){am(this);X=false;af[0].style.width=(ab.w+b+n)+"px";af[0].style.height=(ab.h+h+ag)+"px";if(ai){ai()}},step:function(){am(this)}})};K.resize=function(ah){if(E){ah=ah||{};if(ah.width){ab.w=N(ah.width,"x")-b-n}if(ah.innerWidth){ab.w=N(ah.innerWidth,"x")}M.css({width:ab.w});if(ah.height){ab.h=N(ah.height,"y")-h-ag}if(ah.innerHeight){ab.h=N(ah.innerHeight,"y")}if(!ah.innerHeight&&!ah.height){var ai=M.wrapInner("<div style='overflow:auto'></div>").children();ab.h=ai.height();ai.replaceWith(ai.children())}M.css({height:ab.h});K.position(ab.transition==="none"?0:ab.speed)}};K.prep=function(aj){if(!E){return}var ak=ab.transition==="none"?0:ab.speed;Y.unbind("resize."+S);M.remove();M=O("LoadedContent").html(aj);function ah(){ab.w=ab.w||M.width();ab.w=ab.mw&&ab.mw<ab.w?ab.mw:ab.w;return ab.w}function al(){ab.h=ab.h||M.height();ab.h=ab.mh&&ab.mh<ab.h?ab.mh:ab.h;return ab.h}M.hide().appendTo(l.show()).css({width:ah(),overflow:ab.scrolling?"auto":"hidden"}).css({height:al()}).prependTo(e);l.hide();I(o).css({"float":"none"});if(ad){I("select").not(ae.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(v,function(){this.style.visibility="inherit"})}function ai(am){K.position(am,function(){var at,au,aq,ap,ar=d.length,ao,an;if(!E){return}an=function(){j.hide();F(T,ab.onComplete)};if(x){if(o){M.fadeIn(100)}}p.html(ab.title).add(M).show();if(ar>1){if(typeof ab.current==="string"){t.html(ab.current.replace(/\{current\}/,H+1).replace(/\{total\}/,ar)).show()}s[(ab.loop||H<ar-1)?"show":"hide"]().html(ab.next);R[(ab.loop||H)?"show":"hide"]().html(ab.previous);at=H?d[H-1]:d[ar-1];aq=H<ar-1?d[H+1]:d[0];if(ab.slideshow){W.show()}if(ab.preloading){ap=I.data(aq,z).href||aq.href;au=I.data(at,z).href||at.href;ap=I.isFunction(ap)?ap.call(aq):ap;au=I.isFunction(au)?au.call(at):au;if(D(ap)){I("<img/>")[0].src=ap}if(D(au)){I("<img/>")[0].src=au}}}else{C.hide()}if(ab.iframe){ao=I("<iframe/>").addClass(S+"Iframe")[0];if(ab.fastIframe){an()}else{I(ao).load(an)}ao.name=S+(+new Date());ao.src=ab.href;if(!ab.scrolling){ao.scrolling="no"}if(x){ao.frameBorder=0;ao.allowTransparency="true"}I(ao).appendTo(M).one(k,function(){ao.src="//about:blank"})}else{an()}if(ab.transition==="fade"){ae.fadeTo(ak,1,function(){ae[0].style.filter=""})}else{ae[0].style.filter=""}Y.bind("resize."+S,function(){K.position(0)})})}if(ab.transition==="fade"){ae.fadeTo(ak,0,function(){ai(0)})}else{ai(ak)}};K.load=function(aj){var ai,ak,ah=K.prep;X=true;o=false;y=d[H];if(!aj){ac(I.extend(ab,I.data(y,z)))}F(k);F(f,ab.onLoad);ab.h=ab.height?N(ab.height,"y")-h-ag:ab.innerHeight&&N(ab.innerHeight,"y");ab.w=ab.width?N(ab.width,"x")-b-n:ab.innerWidth&&N(ab.innerWidth,"x");ab.mw=ab.w;ab.mh=ab.h;if(ab.maxWidth){ab.mw=N(ab.maxWidth,"x")-b-n;ab.mw=ab.w&&ab.w<ab.mw?ab.w:ab.mw}if(ab.maxHeight){ab.mh=N(ab.maxHeight,"y")-h-ag;ab.mh=ab.h&&ab.h<ab.mh?ab.h:ab.mh}ai=ab.href;j.show();if(ab.inline){O().hide().insertBefore(I(ai)[0]).one(k,function(){I(this).replaceWith(M.children())});ah(I(ai))}else{if(ab.iframe){ah(" ")}else{if(ab.html){ah(ab.html)}else{if(D(ai)){I(o=new Image()).addClass(S+"Photo").error(function(){ab.title=false;ah(O("Error").text("This image could not be loaded"))}).load(function(){var al;o.onload=null;if(ab.scalePhotos){ak=function(){o.height-=o.height*al;o.width-=o.width*al};if(ab.mw&&o.width>ab.mw){al=(o.width-ab.mw)/o.width;ak()}if(ab.mh&&o.height>ab.mh){al=(o.height-ab.mh)/o.height;ak()}}if(ab.h){o.style.marginTop=Math.max(ab.h-o.height,0)/2+"px"}if(d[1]&&(H<d.length-1||ab.loop)){o.style.cursor="pointer";o.onclick=function(){K.next()}}if(x){o.style.msInterpolationMode="bicubic"}setTimeout(function(){ah(o)},1)});setTimeout(function(){o.src=ai},1)}else{if(ai){l.load(ai,function(am,al,an){ah(al==="error"?O("Error").text("Request unsuccessful: "+an.statusText):I(this).contents())})}}}}}};K.next=function(){if(!X&&d[1]&&(H<d.length-1||ab.loop)){H=H<d.length-1?H+1:0;K.load()}};K.prev=function(){if(!X&&d[1]&&(H||ab.loop)){H=H?H-1:d.length-1;K.load()}};K.close=function(){if(E&&!L){L=true;E=false;F(v,ab.onCleanup);Y.unbind("."+S+" ."+Z);Q.fadeTo(200,0);ae.stop().fadeTo(300,0,function(){ae.add(Q).css({opacity:1,cursor:"auto"}).hide();F(k);M.remove();setTimeout(function(){L=false;F(aa,ab.onClosed)},1)})}};K.element=function(){return I(y)};K.settings=J;I(K.init)}(jQuery,document,this));
