/*
 * jQuery JavaScript Library v1.3.2
 * http://jquery.com/
 *
 * Copyright (c) 2009 John Resig
 * Dual licensed under the MIT and GPL licenses.
 * http://docs.jquery.com/License
 *
 * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
 * Revision: 6246
 */
(function(){var m=this,g,z=m.jQuery,q=m.$,p=m.jQuery=m.$=function(F,G){return new p.fn.init(F,G)},E=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;p.fn=p.prototype={init:function(F,I){F=F||document;if(F.nodeType){this[0]=F;this.length=1;this.context=F;return this}if(typeof F==="string"){var H=E.exec(F);if(H&&(H[1]||!I)){if(H[1]){F=p.clean([H[1]],I)}else{var J=document.getElementById(H[3]);if(J&&J.id!=H[3]){return p().find(F)}var G=p(J||[]);G.context=document;G.selector=F;return G}}else{return p(I).find(F)}}else{if(p.isFunction(F)){return p(document).ready(F)}}if(F.selector&&F.context){this.selector=F.selector;this.context=F.context}return this.setArray(p.isArray(F)?F:p.makeArray(F))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(F){return F===g?Array.prototype.slice.call(this):this[F]},pushStack:function(G,I,F){var H=p(G);H.prevObject=this;H.context=this.context;if(I==="find"){H.selector=this.selector+(this.selector?" ":"")+F}else{if(I){H.selector=this.selector+"."+I+"("+F+")"}}return H},setArray:function(F){this.length=0;Array.prototype.push.apply(this,F);return this},each:function(G,F){return p.each(this,G,F)},index:function(F){return p.inArray(F&&F.jquery?F[0]:F,this)},attr:function(G,I,H){var F=G;if(typeof G==="string"){if(I===g){return this[0]&&p[H||"attr"](this[0],G)}else{F={};F[G]=I}}return this.each(function(J){for(G in F){p.attr(H?this.style:this,G,p.prop(this,F[G],H,J,G))}})},css:function(F,G){if((F=="width"||F=="height")&&parseFloat(G)<0){G=g}return this.attr(F,G,"curCSS")},text:function(G){if(typeof G!=="object"&&G!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(G))}var F="";p.each(G||this,function(){p.each(this.childNodes,function(){if(this.nodeType!=8){F+=this.nodeType!=1?this.nodeValue:p.fn.text([this])}})});return F},wrapAll:function(F){if(this[0]){var G=p(F,this[0].ownerDocument).clone();if(this[0].parentNode){G.insertBefore(this[0])}G.map(function(){var H=this;while(H.firstChild){H=H.firstChild}return H}).append(this)}return this},wrapInner:function(F){return this.each(function(){p(this).contents().wrapAll(F)})},wrap:function(F){return this.each(function(){p(this).wrapAll(F)})},append:function(){return this.domManip(arguments,true,function(F){if(this.nodeType==1){this.appendChild(F)}})},prepend:function(){return this.domManip(arguments,true,function(F){if(this.nodeType==1){this.insertBefore(F,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(F){this.parentNode.insertBefore(F,this)})},after:function(){return this.domManip(arguments,false,function(F){this.parentNode.insertBefore(F,this.nextSibling)})},end:function(){return this.prevObject||p([])},push:[].push,sort:[].sort,splice:[].splice,find:function(F){if(this.length===1){var G=this.pushStack([],"find",F);G.length=0;p.find(F,this[0],G);return G}else{return this.pushStack(p.unique(p.map(this,function(H){return p.find(F,H)})),"find",F)}},clone:function(H){var F=this.map(function(){if(!p.support.noCloneEvent&&!p.isXMLDoc(this)){var J=this.outerHTML;if(!J){var K=this.ownerDocument.createElement("div");K.appendChild(this.cloneNode(true));J=K.innerHTML}return p.clean([J.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(H===true){var I=this.find("*").andSelf(),G=0;F.find("*").andSelf().each(function(){if(this.nodeName!==I[G].nodeName){return}var J=p.data(I[G],"events");for(var L in J){for(var K in J[L]){p.event.add(this,L,J[L][K],J[L][K].data)}}G++})}return F},filter:function(F){return this.pushStack(p.isFunction(F)&&p.grep(this,function(H,G){return F.call(H,G)})||p.multiFilter(F,p.grep(this,function(G){return G.nodeType===1})),"filter",F)},closest:function(F){var H=p.expr.match.POS.test(F)?p(F):null,G=0;return this.map(function(){var I=this;while(I&&I.ownerDocument){if(H?H.index(I)>-1:p(I).is(F)){p.data(I,"closest",G);return I}I=I.parentNode;G++}})},not:function(F){if(typeof F==="string"){if(f.test(F)){return this.pushStack(p.multiFilter(F,this,true),"not",F)}else{F=p.multiFilter(F,this)}}var G=F.length&&F[F.length-1]!==g&&!F.nodeType;return this.filter(function(){return G?p.inArray(this,F)<0:this!=F})},add:function(F){return this.pushStack(p.unique(p.merge(this.get(),typeof F==="string"?p(F):p.makeArray(F))))},is:function(F){return !!F&&p.multiFilter(F,this).length>0},hasClass:function(F){return !!F&&this.is("."+F)},val:function(L){if(L===g){var F=this[0];if(F){if(p.nodeName(F,"option")){return(F.attributes.value||{}).specified?F.value:F.text}if(p.nodeName(F,"select")){var J=F.selectedIndex,M=[],N=F.options,I=F.type=="select-one";if(J<0){return null}for(var G=I?J:0,K=I?J+1:N.length;G<K;G++){var H=N[G];if(H.selected){L=p(H).val();if(I){return L}M.push(L)}}return M}return(F.value||"").replace(/\r/g,"")}return g}if(typeof L==="number"){L+=""}return this.each(function(){if(this.nodeType!=1){return}if(p.isArray(L)&&/radio|checkbox/.test(this.type)){this.checked=(p.inArray(this.value,L)>=0||p.inArray(this.name,L)>=0)}else{if(p.nodeName(this,"select")){var O=p.makeArray(L);p("option",this).each(function(){this.selected=(p.inArray(this.value,O)>=0||p.inArray(this.text,O)>=0)});if(!O.length){this.selectedIndex=-1}}else{this.value=L}}})},html:function(F){return F===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(F)},replaceWith:function(F){return this.after(F).remove()},eq:function(F){return this.slice(F,+F+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(F){return this.pushStack(p.map(this,function(H,G){return F.call(H,G,H)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(K,N,M){if(this[0]){var J=(this[0].ownerDocument||this[0]).createDocumentFragment(),G=p.clean(K,(this[0].ownerDocument||this[0]),J),I=J.firstChild;if(I){for(var H=0,F=this.length;H<F;H++){M.call(L(this[H],I),this.length>1||H>0?J.cloneNode(true):J)}}if(G){p.each(G,A)}}return this;function L(O,P){return N&&p.nodeName(O,"table")&&p.nodeName(P,"tr")?(O.getElementsByTagName("tbody")[0]||O.appendChild(O.ownerDocument.createElement("tbody"))):O}}};p.fn.init.prototype=p.fn;function A(F,G){if(G.src){p.ajax({url:G.src,async:false,dataType:"script"})}else{p.globalEval(G.text||G.textContent||G.innerHTML||"")}if(G.parentNode){G.parentNode.removeChild(G)}}function e(){return +new Date}p.extend=p.fn.extend=function(){var K=arguments[0]||{},I=1,J=arguments.length,F=false,H;if(typeof K==="boolean"){F=K;K=arguments[1]||{};I=2}if(typeof K!=="object"&&!p.isFunction(K)){K={}}if(J==I){K=this;--I}for(;I<J;I++){if((H=arguments[I])!=null){for(var G in H){var L=K[G],M=H[G];if(K===M){continue}if(F&&M&&typeof M==="object"&&!M.nodeType){K[G]=p.extend(F,L||(M.length!=null?[]:{}),M)}else{if(M!==g){K[G]=M}}}}}return K};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,r=document.defaultView||{},t=Object.prototype.toString;p.extend({noConflict:function(F){m.$=q;if(F){m.jQuery=z}return p},isFunction:function(F){return t.call(F)==="[object Function]"},isArray:function(F){return t.call(F)==="[object Array]"},isXMLDoc:function(F){return F.nodeType===9&&F.documentElement.nodeName!=="HTML"||!!F.ownerDocument&&p.isXMLDoc(F.ownerDocument)},globalEval:function(H){if(H&&/\S/.test(H)){var G=document.getElementsByTagName("head")[0]||document.documentElement,F=document.createElement("script");F.type="text/javascript";if(p.support.scriptEval){F.appendChild(document.createTextNode(H))}else{F.text=H}G.insertBefore(F,G.firstChild);G.removeChild(F)}},nodeName:function(G,F){return G.nodeName&&G.nodeName.toUpperCase()==F.toUpperCase()},each:function(H,L,G){var F,I=0,J=H.length;if(G){if(J===g){for(F in H){if(L.apply(H[F],G)===false){break}}}else{for(;I<J;){if(L.apply(H[I++],G)===false){break}}}}else{if(J===g){for(F in H){if(L.call(H[F],F,H[F])===false){break}}}else{for(var K=H[0];I<J&&L.call(K,I,K)!==false;K=H[++I]){}}}return H},prop:function(I,J,H,G,F){if(p.isFunction(J)){J=J.call(I,G)}return typeof J==="number"&&H=="curCSS"&&!b.test(F)?J+"px":J},className:{add:function(F,G){p.each((G||"").split(/\s+/),function(H,I){if(F.nodeType==1&&!p.className.has(F.className,I)){F.className+=(F.className?" ":"")+I}})},remove:function(F,G){if(F.nodeType==1){F.className=G!==g?p.grep(F.className.split(/\s+/),function(H){return !p.className.has(G,H)}).join(" "):""}},has:function(G,F){return G&&p.inArray(F,(G.className||G).toString().split(/\s+/))>-1}},swap:function(I,H,J){var F={};for(var G in H){F[G]=I.style[G];I.style[G]=H[G]}J.call(I);for(var G in H){I.style[G]=F[G]}},css:function(I,G,K,F){if(G=="width"||G=="height"){var M,H={position:"absolute",visibility:"hidden",display:"block"},L=G=="width"?["Left","Right"]:["Top","Bottom"];function J(){M=G=="width"?I.offsetWidth:I.offsetHeight;if(F==="border"){return}p.each(L,function(){if(!F){M-=parseFloat(p.curCSS(I,"padding"+this,true))||0}if(F==="margin"){M+=parseFloat(p.curCSS(I,"margin"+this,true))||0}else{M-=parseFloat(p.curCSS(I,"border"+this+"Width",true))||0}})}if(I.offsetWidth!==0){J()}else{p.swap(I,H,J)}return Math.max(0,Math.round(M))}return p.curCSS(I,G,K)},curCSS:function(J,G,H){var M,F=J.style;if(G=="opacity"&&!p.support.opacity){M=p.attr(F,"opacity");return M==""?"1":M}if(G.match(/float/i)){G=x}if(!H&&F&&F[G]){M=F[G]}else{if(r.getComputedStyle){if(G.match(/float/i)){G="float"}G=G.replace(/([A-Z])/g,"-$1").toLowerCase();var N=r.getComputedStyle(J,null);if(N){M=N.getPropertyValue(G)}if(G=="opacity"&&M==""){M="1"}}else{if(J.currentStyle){var K=G.replace(/\-(\w)/g,function(O,P){return P.toUpperCase()});M=J.currentStyle[G]||J.currentStyle[K];if(!/^\d+(px)?$/i.test(M)&&/^\d/.test(M)){var I=F.left,L=J.runtimeStyle.left;J.runtimeStyle.left=J.currentStyle.left;F.left=M||0;M=F.pixelLeft+"px";F.left=I;J.runtimeStyle.left=L}}}}return M},clean:function(G,L,J){L=L||document;if(typeof L.createElement==="undefined"){L=L.ownerDocument||L[0]&&L[0].ownerDocument||document}if(!J&&G.length===1&&typeof G[0]==="string"){var I=/^<(\w+)\s*\/?>$/.exec(G[0]);if(I){return[L.createElement(I[1])]}}var H=[],F=[],M=L.createElement("div");p.each(G,function(Q,T){if(typeof T==="number"){T+=""}if(!T){return}if(typeof T==="string"){T=T.replace(/(<(\w+)[^>]*?)\/>/g,function(V,W,U){return U.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?V:W+"></"+U+">"});var P=T.replace(/^\s+/,"").substring(0,10).toLowerCase();var R=!P.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!P.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||P.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!P.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!P.indexOf("<td")||!P.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!P.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!p.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];M.innerHTML=R[1]+T+R[2];while(R[0]--){M=M.lastChild}if(!p.support.tbody){var S=/<tbody/i.test(T),O=!P.indexOf("<table")&&!S?M.firstChild&&M.firstChild.childNodes:R[1]=="<table>"&&!S?M.childNodes:[];for(var N=O.length-1;N>=0;--N){if(p.nodeName(O[N],"tbody")&&!O[N].childNodes.length){O[N].parentNode.removeChild(O[N])}}}if(!p.support.leadingWhitespace&&/^\s/.test(T)){M.insertBefore(L.createTextNode(T.match(/^\s*/)[0]),M.firstChild)}T=p.makeArray(M.childNodes)}if(T.nodeType){H.push(T)}else{H=p.merge(H,T)}});if(J){for(var K=0;H[K];K++){if(p.nodeName(H[K],"script")&&(!H[K].type||H[K].type.toLowerCase()==="text/javascript")){F.push(H[K].parentNode?H[K].parentNode.removeChild(H[K]):H[K])}else{if(H[K].nodeType===1){H.splice.apply(H,[K+1,0].concat(p.makeArray(H[K].getElementsByTagName("script"))))}J.appendChild(H[K])}}return F}return H},attr:function(K,H,L){if(!K||K.nodeType==3||K.nodeType==8){return g}var I=!p.isXMLDoc(K),M=L!==g;H=I&&p.props[H]||H;if(K.tagName){var G=/href|src|style/.test(H);if(H=="selected"&&K.parentNode){K.parentNode.selectedIndex}if(H in K&&I&&!G){if(M){if(H=="type"&&p.nodeName(K,"input")&&K.parentNode){throw"type property can't be changed"}K[H]=L}if(p.nodeName(K,"form")&&K.getAttributeNode(H)){return K.getAttributeNode(H).nodeValue}if(H=="tabIndex"){var J=K.getAttributeNode("tabIndex");return J&&J.specified?J.value:K.nodeName.match(/(button|input|object|select|textarea)/i)?0:K.nodeName.match(/^(a|area)$/i)&&K.href?0:g}return K[H]}if(!p.support.style&&I&&H=="style"){return p.attr(K.style,"cssText",L)}if(M){K.setAttribute(H,""+L)}var F=!p.support.hrefNormalized&&I&&G?K.getAttribute(H,2):K.getAttribute(H);return F===null?g:F}if(!p.support.opacity&&H=="opacity"){if(M){K.zoom=1;K.filter=(K.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(L)+""=="NaN"?"":"alpha(opacity="+L*100+")")}return K.filter&&K.filter.indexOf("opacity=")>=0?(parseFloat(K.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}H=H.replace(/-([a-z])/ig,function(N,O){return O.toUpperCase()});if(M){K[H]=L}return K[H]},trim:function(F){return(F||"").replace(/^\s+|\s+$/g,"")},makeArray:function(H){var F=[];if(H!=null){var G=H.length;if(G==null||typeof H==="string"||p.isFunction(H)||H.setInterval){F[0]=H}else{while(G){F[--G]=H[G]}}}return F},inArray:function(H,I){for(var F=0,G=I.length;F<G;F++){if(I[F]===H){return F}}return -1},merge:function(I,F){var G=0,H,J=I.length;if(!p.support.getAll){while((H=F[G++])!=null){if(H.nodeType!=8){I[J++]=H}}}else{while((H=F[G++])!=null){I[J++]=H}}return I},unique:function(L){var G=[],F={};try{for(var H=0,I=L.length;H<I;H++){var K=p.data(L[H]);if(!F[K]){F[K]=true;G.push(L[H])}}}catch(J){G=L}return G},grep:function(G,K,F){var H=[];for(var I=0,J=G.length;I<J;I++){if(!F!=!K(G[I],I)){H.push(G[I])}}return H},map:function(F,K){var G=[];for(var H=0,I=F.length;H<I;H++){var J=K(F[H],H);if(J!=null){G[G.length]=J}}return G.concat.apply([],G)}});var D=navigator.userAgent.toLowerCase();p.browser={version:(D.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(D),opera:/opera/.test(D),msie:/msie/.test(D)&&!/opera/.test(D),mozilla:/mozilla/.test(D)&&!/(compatible|webkit)/.test(D)};p.each({parent:function(F){return F.parentNode},parents:function(F){return p.dir(F,"parentNode")},next:function(F){return p.nth(F,2,"nextSibling")},prev:function(F){return p.nth(F,2,"previousSibling")},nextAll:function(F){return p.dir(F,"nextSibling")},prevAll:function(F){return p.dir(F,"previousSibling")},siblings:function(F){return p.sibling(F.parentNode.firstChild,F)},children:function(F){return p.sibling(F.firstChild)},contents:function(F){return p.nodeName(F,"iframe")?F.contentDocument||F.contentWindow.document:p.makeArray(F.childNodes)}},function(F,G){p.fn[F]=function(H){var I=p.map(this,G);if(H&&typeof H=="string"){I=p.multiFilter(H,I)}return this.pushStack(p.unique(I),F,H)}});p.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(F,G){p.fn[F]=function(H){var K=[],M=p(H);for(var L=0,I=M.length;L<I;L++){var J=(L>0?this.clone(true):this).get();p.fn[G].apply(p(M[L]),J);K=K.concat(J)}return this.pushStack(K,F,H)}});p.each({removeAttr:function(F){p.attr(this,F,"");if(this.nodeType==1){this.removeAttribute(F)}},addClass:function(F){p.className.add(this,F)},removeClass:function(F){p.className.remove(this,F)},toggleClass:function(G,F){if(typeof F!=="boolean"){F=!p.className.has(this,G)}p.className[F?"add":"remove"](this,G)},remove:function(F){if(!F||p.filter(F,[this]).length){p("*",this).add([this]).each(function(){p.event.remove(this);p.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){p(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(F,G){p.fn[F]=function(){return this.each(G,arguments)}});function k(F,G){return F[0]&&parseInt(p.curCSS(F[0],G,true),10)||0}var h="jQuery"+e(),w=0,B={};p.extend({cache:{},data:function(G,F,H){G=G==m?B:G;var I=G[h];if(!I){I=G[h]=++w}if(F&&!p.cache[I]){p.cache[I]={}}if(H!==g){p.cache[I][F]=H}return F?p.cache[I][F]:I},removeData:function(G,F){G=G==m?B:G;var I=G[h];if(F){if(p.cache[I]){delete p.cache[I][F];F="";for(F in p.cache[I]){break}if(!F){p.removeData(G)}}}else{try{delete G[h]}catch(H){if(G.removeAttribute){G.removeAttribute(h)}}delete p.cache[I]}},queue:function(G,F,I){if(G){F=(F||"fx")+"queue";var H=p.data(G,F);if(!H||p.isArray(I)){H=p.data(G,F,p.makeArray(I))}else{if(I){H.push(I)}}}return H},dequeue:function(I,H){var F=p.queue(I,H),G=F.shift();if(!H||H==="fx"){G=F[0]}if(G!==g){G.call(I)}}});p.fn.extend({data:function(F,H){var I=F.split(".");I[1]=I[1]?"."+I[1]:"";if(H===g){var G=this.triggerHandler("getData"+I[1]+"!",[I[0]]);if(G===g&&this.length){G=p.data(this[0],F)}return G===g&&I[1]?this.data(I[0]):G}else{return this.trigger("setData"+I[1]+"!",[I[0],H]).each(function(){p.data(this,F,H)})}},removeData:function(F){return this.each(function(){p.removeData(this,F)})},queue:function(F,G){if(typeof F!=="string"){G=F;F="fx"}if(G===g){return p.queue(this[0],F)}return this.each(function(){var H=p.queue(this,F,G);if(F=="fx"&&H.length==1){H[0].call(this)}})},dequeue:function(F){return this.each(function(){p.dequeue(this,F)})}});
/*
 * Sizzle CSS Selector Engine - v0.9.3
 *  Copyright 2009, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var S=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,M=0,I=Object.prototype.toString;var G=function(Z,V,ac,ad){ac=ac||[];V=V||document;if(V.nodeType!==1&&V.nodeType!==9){return[]}if(!Z||typeof Z!=="string"){return ac}var aa=[],X,ag,aj,U,ae,W,Y=true;S.lastIndex=0;while((X=S.exec(Z))!==null){aa.push(X[1]);if(X[2]){W=RegExp.rightContext;break}}if(aa.length>1&&N.exec(Z)){if(aa.length===2&&J.relative[aa[0]]){ag=K(aa[0]+aa[1],V)}else{ag=J.relative[aa[0]]?[V]:G(aa.shift(),V);while(aa.length){Z=aa.shift();if(J.relative[Z]){Z+=aa.shift()}ag=K(Z,ag)}}}else{var af=ad?{expr:aa.pop(),set:F(ad)}:G.find(aa.pop(),aa.length===1&&V.parentNode?V.parentNode:V,R(V));ag=G.filter(af.expr,af.set);if(aa.length>0){aj=F(ag)}else{Y=false}while(aa.length){var ai=aa.pop(),ah=ai;if(!J.relative[ai]){ai=""}else{ah=aa.pop()}if(ah==null){ah=V}J.relative[ai](aj,ah,R(V))}}if(!aj){aj=ag}if(!aj){throw"Syntax error, unrecognized expression: "+(ai||Z)}if(I.call(aj)==="[object Array]"){if(!Y){ac.push.apply(ac,aj)}else{if(V.nodeType===1){for(var ab=0;aj[ab]!=null;ab++){if(aj[ab]&&(aj[ab]===true||aj[ab].nodeType===1&&L(V,aj[ab]))){ac.push(ag[ab])}}}else{for(var ab=0;aj[ab]!=null;ab++){if(aj[ab]&&aj[ab].nodeType===1){ac.push(ag[ab])}}}}}else{F(aj,ac)}if(W){G(W,V,ac,ad);if(H){hasDuplicate=false;ac.sort(H);if(hasDuplicate){for(var ab=1;ab<ac.length;ab++){if(ac[ab]===ac[ab-1]){ac.splice(ab--,1)}}}}}return ac};G.matches=function(U,V){return G(U,null,null,V)};G.find=function(ab,U,ac){var aa,Y;if(!ab){return[]}for(var X=0,W=J.order.length;X<W;X++){var Z=J.order[X],Y;if((Y=J.match[Z].exec(ab))){var V=RegExp.leftContext;if(V.substr(V.length-1)!=="\\"){Y[1]=(Y[1]||"").replace(/\\/g,"");aa=J.find[Z](Y,U,ac);if(aa!=null){ab=ab.replace(J.match[Z],"");break}}}}if(!aa){aa=U.getElementsByTagName("*")}return{set:aa,expr:ab}};G.filter=function(ae,ad,ah,X){var W=ae,aj=[],ab=ad,Z,U,aa=ad&&ad[0]&&R(ad[0]);while(ae&&ad.length){for(var ac in J.filter){if((Z=J.match[ac].exec(ae))!=null){var V=J.filter[ac],ai,ag;U=false;if(ab==aj){aj=[]}if(J.preFilter[ac]){Z=J.preFilter[ac](Z,ab,ah,aj,X,aa);if(!Z){U=ai=true}else{if(Z===true){continue}}}if(Z){for(var Y=0;(ag=ab[Y])!=null;Y++){if(ag){ai=V(ag,Z,Y,ab);var af=X^!!ai;if(ah&&ai!=null){if(af){U=true}else{ab[Y]=false}}else{if(af){aj.push(ag);U=true}}}}}if(ai!==g){if(!ah){ab=aj}ae=ae.replace(J.match[ac],"");if(!U){return[]}break}}}if(ae==W){if(U==null){throw"Syntax error, unrecognized expression: "+ae}else{break}}W=ae}return ab};var J=G.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\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(U){return U.getAttribute("href")}},relative:{"+":function(ab,U,aa){var Y=typeof U==="string",ac=Y&&!/\W/.test(U),Z=Y&&!ac;if(ac&&!aa){U=U.toUpperCase()}for(var X=0,W=ab.length,V;X<W;X++){if((V=ab[X])){while((V=V.previousSibling)&&V.nodeType!==1){}ab[X]=Z||V&&V.nodeName===U?V||false:V===U}}if(Z){G.filter(U,ab,true)}},">":function(aa,V,ab){var Y=typeof V==="string";if(Y&&!/\W/.test(V)){V=ab?V:V.toUpperCase();for(var W=0,U=aa.length;W<U;W++){var Z=aa[W];if(Z){var X=Z.parentNode;aa[W]=X.nodeName===V?X:false}}}else{for(var W=0,U=aa.length;W<U;W++){var Z=aa[W];if(Z){aa[W]=Y?Z.parentNode:Z.parentNode===V}}if(Y){G.filter(V,aa,true)}}},"":function(X,V,Z){var W=M++,U=T;if(!V.match(/\W/)){var Y=V=Z?V:V.toUpperCase();U=Q}U("parentNode",V,W,X,Y,Z)},"~":function(X,V,Z){var W=M++,U=T;if(typeof V==="string"&&!V.match(/\W/)){var Y=V=Z?V:V.toUpperCase();U=Q}U("previousSibling",V,W,X,Y,Z)}},find:{ID:function(V,W,X){if(typeof W.getElementById!=="undefined"&&!X){var U=W.getElementById(V[1]);return U?[U]:[]}},NAME:function(W,Z,aa){if(typeof Z.getElementsByName!=="undefined"){var V=[],Y=Z.getElementsByName(W[1]);for(var X=0,U=Y.length;X<U;X++){if(Y[X].getAttribute("name")===W[1]){V.push(Y[X])}}return V.length===0?null:V}},TAG:function(U,V){return V.getElementsByTagName(U[1])}},preFilter:{CLASS:function(X,V,W,U,aa,ab){X=" "+X[1].replace(/\\/g,"")+" ";if(ab){return X}for(var Y=0,Z;(Z=V[Y])!=null;Y++){if(Z){if(aa^(Z.className&&(" "+Z.className+" ").indexOf(X)>=0)){if(!W){U.push(Z)}}else{if(W){V[Y]=false}}}}return false},ID:function(U){return U[1].replace(/\\/g,"")},TAG:function(V,U){for(var W=0;U[W]===false;W++){}return U[W]&&R(U[W])?V[1]:V[1].toUpperCase()},CHILD:function(U){if(U[1]=="nth"){var V=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(U[2]=="even"&&"2n"||U[2]=="odd"&&"2n+1"||!/\D/.test(U[2])&&"0n+"+U[2]||U[2]);U[2]=(V[1]+(V[2]||1))-0;U[3]=V[3]-0}U[0]=M++;return U},ATTR:function(Y,V,W,U,Z,aa){var X=Y[1].replace(/\\/g,"");if(!aa&&J.attrMap[X]){Y[1]=J.attrMap[X]}if(Y[2]==="~="){Y[4]=" "+Y[4]+" "}return Y},PSEUDO:function(Y,V,W,U,Z){if(Y[1]==="not"){if(Y[3].match(S).length>1||/^\w/.test(Y[3])){Y[3]=G(Y[3],null,null,V)}else{var X=G.filter(Y[3],V,W,true^Z);if(!W){U.push.apply(U,X)}return false}}else{if(J.match.POS.test(Y[0])||J.match.CHILD.test(Y[0])){return true}}return Y},POS:function(U){U.unshift(true);return U}},filters:{enabled:function(U){return U.disabled===false&&U.type!=="hidden"},disabled:function(U){return U.disabled===true},checked:function(U){return U.checked===true},selected:function(U){U.parentNode.selectedIndex;return U.selected===true},parent:function(U){return !!U.firstChild},empty:function(U){return !U.firstChild},has:function(W,V,U){return !!G(U[3],W).length},header:function(U){return/h\d/i.test(U.nodeName)},text:function(U){return"text"===U.type},radio:function(U){return"radio"===U.type},checkbox:function(U){return"checkbox"===U.type},file:function(U){return"file"===U.type},password:function(U){return"password"===U.type},submit:function(U){return"submit"===U.type},image:function(U){return"image"===U.type},reset:function(U){return"reset"===U.type},button:function(U){return"button"===U.type||U.nodeName.toUpperCase()==="BUTTON"},input:function(U){return/input|select|textarea|button/i.test(U.nodeName)}},setFilters:{first:function(V,U){return U===0},last:function(W,V,U,X){return V===X.length-1},even:function(V,U){return U%2===0},odd:function(V,U){return U%2===1},lt:function(W,V,U){return V<U[3]-0},gt:function(W,V,U){return V>U[3]-0},nth:function(W,V,U){return U[3]-0==V},eq:function(W,V,U){return U[3]-0==V}},filter:{PSEUDO:function(aa,W,X,ab){var V=W[1],Y=J.filters[V];if(Y){return Y(aa,X,W,ab)}else{if(V==="contains"){return(aa.textContent||aa.innerText||"").indexOf(W[3])>=0}else{if(V==="not"){var Z=W[3];for(var X=0,U=Z.length;X<U;X++){if(Z[X]===aa){return false}}return true}}}},CHILD:function(U,X){var aa=X[1],V=U;switch(aa){case"only":case"first":while(V=V.previousSibling){if(V.nodeType===1){return false}}if(aa=="first"){return true}V=U;case"last":while(V=V.nextSibling){if(V.nodeType===1){return false}}return true;case"nth":var W=X[2],ad=X[3];if(W==1&&ad==0){return true}var Z=X[0],ac=U.parentNode;if(ac&&(ac.sizcache!==Z||!U.nodeIndex)){var Y=0;for(V=ac.firstChild;V;V=V.nextSibling){if(V.nodeType===1){V.nodeIndex=++Y}}ac.sizcache=Z}var ab=U.nodeIndex-ad;if(W==0){return ab==0}else{return(ab%W==0&&ab/W>=0)}}},ID:function(V,U){return V.nodeType===1&&V.getAttribute("id")===U},TAG:function(V,U){return(U==="*"&&V.nodeType===1)||V.nodeName===U},CLASS:function(V,U){return(" "+(V.className||V.getAttribute("class"))+" ").indexOf(U)>-1},ATTR:function(Z,X){var W=X[1],U=J.attrHandle[W]?J.attrHandle[W](Z):Z[W]!=null?Z[W]:Z.getAttribute(W),aa=U+"",Y=X[2],V=X[4];return U==null?Y==="!=":Y==="="?aa===V:Y==="*="?aa.indexOf(V)>=0:Y==="~="?(" "+aa+" ").indexOf(V)>=0:!V?aa&&U!==false:Y==="!="?aa!=V:Y==="^="?aa.indexOf(V)===0:Y==="$="?aa.substr(aa.length-V.length)===V:Y==="|="?aa===V||aa.substr(0,V.length+1)===V+"-":false},POS:function(Y,V,W,Z){var U=V[2],X=J.setFilters[U];if(X){return X(Y,W,V,Z)}}}};var N=J.match.POS;for(var P in J.match){J.match[P]=RegExp(J.match[P].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var F=function(V,U){V=Array.prototype.slice.call(V);if(U){U.push.apply(U,V);return U}return V};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(O){F=function(Y,X){var V=X||[];if(I.call(Y)==="[object Array]"){Array.prototype.push.apply(V,Y)}else{if(typeof Y.length==="number"){for(var W=0,U=Y.length;W<U;W++){V.push(Y[W])}}else{for(var W=0;Y[W];W++){V.push(Y[W])}}}return V}}var H;if(document.documentElement.compareDocumentPosition){H=function(V,U){var W=V.compareDocumentPosition(U)&4?-1:V===U?0:1;if(W===0){hasDuplicate=true}return W}}else{if("sourceIndex" in document.documentElement){H=function(V,U){var W=V.sourceIndex-U.sourceIndex;if(W===0){hasDuplicate=true}return W}}else{if(document.createRange){H=function(X,V){var W=X.ownerDocument.createRange(),U=V.ownerDocument.createRange();W.selectNode(X);W.collapse(true);U.selectNode(V);U.collapse(true);var Y=W.compareBoundaryPoints(Range.START_TO_END,U);if(Y===0){hasDuplicate=true}return Y}}}}(function(){var V=document.createElement("form"),W="script"+(new Date).getTime();V.innerHTML="<input name='"+W+"'/>";var U=document.documentElement;U.insertBefore(V,U.firstChild);if(!!document.getElementById(W)){J.find.ID=function(Y,Z,aa){if(typeof Z.getElementById!=="undefined"&&!aa){var X=Z.getElementById(Y[1]);return X?X.id===Y[1]||typeof X.getAttributeNode!=="undefined"&&X.getAttributeNode("id").nodeValue===Y[1]?[X]:g:[]}};J.filter.ID=function(Z,X){var Y=typeof Z.getAttributeNode!=="undefined"&&Z.getAttributeNode("id");return Z.nodeType===1&&Y&&Y.nodeValue===X}}U.removeChild(V)})();(function(){var U=document.createElement("div");U.appendChild(document.createComment(""));if(U.getElementsByTagName("*").length>0){J.find.TAG=function(V,Z){var Y=Z.getElementsByTagName(V[1]);if(V[1]==="*"){var X=[];for(var W=0;Y[W];W++){if(Y[W].nodeType===1){X.push(Y[W])}}Y=X}return Y}}U.innerHTML="<a href='#'></a>";if(U.firstChild&&typeof U.firstChild.getAttribute!=="undefined"&&U.firstChild.getAttribute("href")!=="#"){J.attrHandle.href=function(V){return V.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var U=G,V=document.createElement("div");V.innerHTML="<p class='TEST'></p>";if(V.querySelectorAll&&V.querySelectorAll(".TEST").length===0){return}G=function(Z,Y,W,X){Y=Y||document;if(!X&&Y.nodeType===9&&!R(Y)){try{return F(Y.querySelectorAll(Z),W)}catch(aa){}}return U(Z,Y,W,X)};G.find=U.find;G.filter=U.filter;G.selectors=U.selectors;G.matches=U.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var U=document.createElement("div");U.innerHTML="<div class='test e'></div><div class='test'></div>";if(U.getElementsByClassName("e").length===0){return}U.lastChild.className="e";if(U.getElementsByClassName("e").length===1){return}J.order.splice(1,0,"CLASS");J.find.CLASS=function(V,W,X){if(typeof W.getElementsByClassName!=="undefined"&&!X){return W.getElementsByClassName(V[1])}}})()}function Q(V,aa,Z,ae,ab,ad){var ac=V=="previousSibling"&&!ad;for(var X=0,W=ae.length;X<W;X++){var U=ae[X];if(U){if(ac&&U.nodeType===1){U.sizcache=Z;U.sizset=X}U=U[V];var Y=false;while(U){if(U.sizcache===Z){Y=ae[U.sizset];break}if(U.nodeType===1&&!ad){U.sizcache=Z;U.sizset=X}if(U.nodeName===aa){Y=U;break}U=U[V]}ae[X]=Y}}}function T(V,aa,Z,ae,ab,ad){var ac=V=="previousSibling"&&!ad;for(var X=0,W=ae.length;X<W;X++){var U=ae[X];if(U){if(ac&&U.nodeType===1){U.sizcache=Z;U.sizset=X}U=U[V];var Y=false;while(U){if(U.sizcache===Z){Y=ae[U.sizset];break}if(U.nodeType===1){if(!ad){U.sizcache=Z;U.sizset=X}if(typeof aa!=="string"){if(U===aa){Y=true;break}}else{if(G.filter(aa,[U]).length>0){Y=U;break}}}U=U[V]}ae[X]=Y}}}var L=document.compareDocumentPosition?function(V,U){return V.compareDocumentPosition(U)&16}:function(V,U){return V!==U&&(V.contains?V.contains(U):true)};var R=function(U){return U.nodeType===9&&U.documentElement.nodeName!=="HTML"||!!U.ownerDocument&&R(U.ownerDocument)};var K=function(U,ab){var X=[],Y="",Z,W=ab.nodeType?[ab]:ab;while((Z=J.match.PSEUDO.exec(U))){Y+=Z[0];U=U.replace(J.match.PSEUDO,"")}U=J.relative[U]?U+"*":U;for(var aa=0,V=W.length;aa<V;aa++){G(U,W[aa],X)}return G.filter(Y,X)};p.find=G;p.filter=G.filter;p.expr=G.selectors;p.expr[":"]=p.expr.filters;G.selectors.filters.hidden=function(U){return U.offsetWidth===0||U.offsetHeight===0};G.selectors.filters.visible=function(U){return U.offsetWidth>0||U.offsetHeight>0};G.selectors.filters.animated=function(U){return p.grep(p.timers,function(V){return U===V.elem}).length};p.multiFilter=function(W,U,V){if(V){W=":not("+W+")"}return G.matches(W,U)};p.dir=function(W,V){var U=[],X=W[V];while(X&&X!=document){if(X.nodeType==1){U.push(X)}X=X[V]}return U};p.nth=function(Y,U,W,X){U=U||1;var V=0;for(;Y;Y=Y[W]){if(Y.nodeType==1&&++V==U){break}}return Y};p.sibling=function(W,V){var U=[];for(;W;W=W.nextSibling){if(W.nodeType==1&&W!=V){U.push(W)}}return U};return;m.Sizzle=G})();p.event={add:function(J,G,I,L){if(J.nodeType==3||J.nodeType==8){return}if(J.setInterval&&J!=m){J=m}if(!I.guid){I.guid=this.guid++}if(L!==g){var H=I;I=this.proxy(H);I.data=L}var F=p.data(J,"events")||p.data(J,"events",{}),K=p.data(J,"handle")||p.data(J,"handle",function(){return typeof p!=="undefined"&&!p.event.triggered?p.event.handle.apply(arguments.callee.elem,arguments):g});K.elem=J;p.each(G.split(/\s+/),function(N,O){var P=O.split(".");O=P.shift();I.type=P.slice().sort().join(".");var M=F[O];if(p.event.specialAll[O]){p.event.specialAll[O].setup.call(J,L,P)}if(!M){M=F[O]={};if(!p.event.special[O]||p.event.special[O].setup.call(J,L,P)===false){if(J.addEventListener){J.addEventListener(O,K,false)}else{if(J.attachEvent){J.attachEvent("on"+O,K)}}}}M[I.guid]=I;p.event.global[O]=true});J=null},guid:1,global:{},remove:function(L,I,K){if(L.nodeType==3||L.nodeType==8){return}var H=p.data(L,"events"),G,F;if(H){if(I===g||(typeof I==="string"&&I.charAt(0)==".")){for(var J in H){this.remove(L,J+(I||""))}}else{if(I.type){K=I.handler;I=I.type}p.each(I.split(/\s+/),function(N,P){var R=P.split(".");P=R.shift();var O=RegExp("(^|\\.)"+R.slice().sort().join(".*\\.")+"(\\.|$)");if(H[P]){if(K){delete H[P][K.guid]}else{for(var Q in H[P]){if(O.test(H[P][Q].type)){delete H[P][Q]}}}if(p.event.specialAll[P]){p.event.specialAll[P].teardown.call(L,R)}for(G in H[P]){break}if(!G){if(!p.event.special[P]||p.event.special[P].teardown.call(L,R)===false){if(L.removeEventListener){L.removeEventListener(P,p.data(L,"handle"),false)}else{if(L.detachEvent){L.detachEvent("on"+P,p.data(L,"handle"))}}}G=null;delete H[P]}}})}for(G in H){break}if(!G){var M=p.data(L,"handle");if(M){M.elem=null}p.removeData(L,"events");p.removeData(L,"handle")}}},trigger:function(J,L,I,F){var H=J.type||J;if(!F){J=typeof J==="object"?J[h]?J:p.extend(p.Event(H),J):p.Event(H);if(H.indexOf("!")>=0){J.type=H=H.slice(0,-1);J.exclusive=true}if(!I){J.stopPropagation();if(this.global[H]){p.each(p.cache,function(){if(this.events&&this.events[H]){p.event.trigger(J,L,this.handle.elem)}})}}if(!I||I.nodeType==3||I.nodeType==8){return g}J.result=g;J.target=I;L=p.makeArray(L);L.unshift(J)}J.currentTarget=I;var K=p.data(I,"handle");if(K){K.apply(I,L)}if((!I[H]||(p.nodeName(I,"a")&&H=="click"))&&I["on"+H]&&I["on"+H].apply(I,L)===false){J.result=false}if(!F&&I[H]&&!J.isDefaultPrevented()&&!(p.nodeName(I,"a")&&H=="click")){this.triggered=true;try{I[H]()}catch(M){}}this.triggered=false;if(!J.isPropagationStopped()){var G=I.parentNode||I.ownerDocument;if(G){p.event.trigger(J,L,G,true)}}},handle:function(L){var K,F;L=arguments[0]=p.event.fix(L||m.event);L.currentTarget=this;var M=L.type.split(".");L.type=M.shift();K=!M.length&&!L.exclusive;var J=RegExp("(^|\\.)"+M.slice().sort().join(".*\\.")+"(\\.|$)");F=(p.data(this,"events")||{})[L.type];for(var H in F){var I=F[H];if(K||J.test(I.type)){L.handler=I;L.data=I.data;var G=I.apply(this,arguments);if(G!==g){L.result=G;if(G===false){L.preventDefault();L.stopPropagation()}}if(L.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(I){if(I[h]){return I}var G=I;I=p.Event(G);for(var H=this.props.length,K;H;){K=this.props[--H];I[K]=G[K]}if(!I.target){I.target=I.srcElement||document}if(I.target.nodeType==3){I.target=I.target.parentNode}if(!I.relatedTarget&&I.fromElement){I.relatedTarget=I.fromElement==I.target?I.toElement:I.fromElement}if(I.pageX==null&&I.clientX!=null){var J=document.documentElement,F=document.body;I.pageX=I.clientX+(J&&J.scrollLeft||F&&F.scrollLeft||0)-(J.clientLeft||0);I.pageY=I.clientY+(J&&J.scrollTop||F&&F.scrollTop||0)-(J.clientTop||0)}if(!I.which&&((I.charCode||I.charCode===0)?I.charCode:I.keyCode)){I.which=I.charCode||I.keyCode}if(!I.metaKey&&I.ctrlKey){I.metaKey=I.ctrlKey}if(!I.which&&I.button){I.which=(I.button&1?1:(I.button&2?3:(I.button&4?2:0)))}return I},proxy:function(G,F){F=F||function(){return G.apply(this,arguments)};F.guid=G.guid=G.guid||F.guid||this.guid++;return F},special:{ready:{setup:C,teardown:function(){}}},specialAll:{live:{setup:function(F,G){p.event.add(this,G[0],c)},teardown:function(H){if(H.length){var F=0,G=RegExp("(^|\\.)"+H[0]+"(\\.|$)");p.each((p.data(this,"events").live||{}),function(){if(G.test(this.type)){F++}});if(F<1){p.event.remove(this,H[0],c)}}}}}};p.Event=function(F){if(!this.preventDefault){return new p.Event(F)}if(F&&F.type){this.originalEvent=F;this.type=F.type}else{this.type=F}this.timeStamp=e();this[h]=true};function l(){return false}function v(){return true}p.Event.prototype={preventDefault:function(){this.isDefaultPrevented=v;var F=this.originalEvent;if(!F){return}if(F.preventDefault){F.preventDefault()}F.returnValue=false},stopPropagation:function(){this.isPropagationStopped=v;var F=this.originalEvent;if(!F){return}if(F.stopPropagation){F.stopPropagation()}F.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=v;this.stopPropagation()},isDefaultPrevented:l,isPropagationStopped:l,isImmediatePropagationStopped:l};var a=function(G){var F=G.relatedTarget;while(F&&F!=this){try{F=F.parentNode}catch(H){F=this}}if(F!=this){G.type=G.data;p.event.handle.apply(this,arguments)}};p.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(G,F){p.event.special[F]={setup:function(){p.event.add(this,G,a,F)},teardown:function(){p.event.remove(this,G,a)}}});p.fn.extend({bind:function(G,H,F){return G=="unload"?this.one(G,H,F):this.each(function(){p.event.add(this,G,F||H,F&&H)})},one:function(H,I,G){var F=p.event.proxy(G||I,function(J){p(this).unbind(J,F);return(G||I).apply(this,arguments)});return this.each(function(){p.event.add(this,H,F,G&&I)})},unbind:function(G,F){return this.each(function(){p.event.remove(this,G,F)})},trigger:function(F,G){return this.each(function(){p.event.trigger(F,G,this)})},triggerHandler:function(F,H){if(this[0]){var G=p.Event(F);G.preventDefault();G.stopPropagation();p.event.trigger(G,H,this[0]);return G.result}},toggle:function(H){var F=arguments,G=1;while(G<F.length){p.event.proxy(H,F[G++])}return this.click(p.event.proxy(H,function(I){this.lastToggle=(this.lastToggle||0)%G;I.preventDefault();return F[this.lastToggle++].apply(this,arguments)||false}))},hover:function(F,G){return this.mouseenter(F).mouseleave(G)},ready:function(F){C();if(p.isReady){F.call(document,p)}else{p.readyList.push(F)}return this},live:function(H,G){var F=p.event.proxy(G);F.guid+=this.selector+H;p(document).bind(j(H,this.selector),this.selector,F);return this},die:function(G,F){p(document).unbind(j(G,this.selector),F?{guid:F.guid+this.selector+G}:null);return this}});function c(I){var F=RegExp("(^|\\.)"+I.type+"(\\.|$)"),H=true,G=[];p.each(p.data(this,"events").live||[],function(J,K){if(F.test(K.type)){var L=p(I.target).closest(K.data)[0];if(L){G.push({elem:L,fn:K})}}});G.sort(function(K,J){return p.data(K.elem,"closest")-p.data(J.elem,"closest")});p.each(G,function(){if(this.fn.call(this.elem,I,this.fn.data)===false){return(H=false)}});return H}function j(G,F){return["live",G,F.replace(/\./g,"`").replace(/ /g,"|")].join(".")}p.extend({isReady:false,readyList:[],ready:function(){if(!p.isReady){p.isReady=true;if(p.readyList){p.each(p.readyList,function(){this.call(document,p)});p.readyList=null}p(document).triggerHandler("ready")}}});var y=false;function C(){if(y){return}y=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);p.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);p.ready()}});if(document.documentElement.doScroll&&m==m.top){(function(){if(p.isReady){return}try{document.documentElement.doScroll("left")}catch(F){setTimeout(arguments.callee,0);return}p.ready()})()}}}p.event.add(m,"load",p.ready)}p.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(G,F){p.fn[F]=function(H){return H?this.bind(F,H):this.trigger(F)}});p(m).bind("unload",function(){for(var F in p.cache){if(F!=1&&p.cache[F].handle){p.event.remove(p.cache[F].handle.elem)}}});(function(){p.support={};var G=document.documentElement,H=document.createElement("script"),L=document.createElement("div"),K="script"+(new Date).getTime();L.style.display="none";L.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var I=L.getElementsByTagName("*"),F=L.getElementsByTagName("a")[0];if(!I||!I.length||!F){return}p.support={leadingWhitespace:L.firstChild.nodeType==3,tbody:!L.getElementsByTagName("tbody").length,objectAll:!!L.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!L.getElementsByTagName("link").length,style:/red/.test(F.getAttribute("style")),hrefNormalized:F.getAttribute("href")==="/a",opacity:F.style.opacity==="0.5",cssFloat:!!F.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};H.type="text/javascript";try{H.appendChild(document.createTextNode("window."+K+"=1;"))}catch(J){}G.insertBefore(H,G.firstChild);if(m[K]){p.support.scriptEval=true;delete m[K]}G.removeChild(H);if(L.attachEvent&&L.fireEvent){L.attachEvent("onclick",function(){p.support.noCloneEvent=false;L.detachEvent("onclick",arguments.callee)});L.cloneNode(true).fireEvent("onclick")}p(function(){var M=document.createElement("div");M.style.width=M.style.paddingLeft="1px";document.body.appendChild(M);p.boxModel=p.support.boxModel=M.offsetWidth===2;document.body.removeChild(M).style.display="none"})})();var x=p.support.cssFloat?"cssFloat":"styleFloat";p.props={"for":"htmlFor","class":"className","float":x,cssFloat:x,styleFloat:x,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};p.fn.extend({_load:p.fn.load,load:function(H,K,L){if(typeof H!=="string"){return this._load(H)}var J=H.indexOf(" ");if(J>=0){var F=H.slice(J,H.length);H=H.slice(0,J)}var I="GET";if(K){if(p.isFunction(K)){L=K;K=null}else{if(typeof K==="object"){K=p.param(K);I="POST"}}}var G=this;p.ajax({url:H,type:I,dataType:"html",data:K,complete:function(N,M){if(M=="success"||M=="notmodified"){G.html(F?p("<div/>").append(N.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(F):N.responseText)}if(L){G.each(L,[N.responseText,M,N])}}});return this},serialize:function(){return p.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?p.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(F,G){var H=p(this).val();return H==null?null:p.isArray(H)?p.map(H,function(J,I){return{name:G.name,value:J}}):{name:G.name,value:H}}).get()}});p.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(F,G){p.fn[G]=function(H){return this.bind(G,H)}});var s=e();p.extend({get:function(F,H,I,G){if(p.isFunction(H)){I=H;H=null}return p.ajax({type:"GET",url:F,data:H,success:I,dataType:G})},getScript:function(F,G){return p.get(F,null,G,"script")},getJSON:function(F,G,H){return p.get(F,G,H,"json")},post:function(F,H,I,G){if(p.isFunction(H)){I=H;H={}}return p.ajax({type:"POST",url:F,data:H,success:I,dataType:G})},ajaxSetup:function(F){p.extend(p.ajaxSettings,F)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return m.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(N){N=p.extend(true,N,p.extend(true,{},p.ajaxSettings,N));var X,G=/=\?(&|$)/g,S,W,H=N.type.toUpperCase();if(N.data&&N.processData&&typeof N.data!=="string"){N.data=p.param(N.data)}if(N.dataType=="jsonp"){if(H=="GET"){if(!N.url.match(G)){N.url+=(N.url.match(/\?/)?"&":"?")+(N.jsonp||"callback")+"=?"}}else{if(!N.data||!N.data.match(G)){N.data=(N.data?N.data+"&":"")+(N.jsonp||"callback")+"=?"}}N.dataType="json"}if(N.dataType=="json"&&(N.data&&N.data.match(G)||N.url.match(G))){X="jsonp"+s++;if(N.data){N.data=(N.data+"").replace(G,"="+X+"$1")}N.url=N.url.replace(G,"="+X+"$1");N.dataType="script";m[X]=function(Y){W=Y;J();M();m[X]=g;try{delete m[X]}catch(Z){}if(I){I.removeChild(U)}}}if(N.dataType=="script"&&N.cache==null){N.cache=false}if(N.cache===false&&H=="GET"){var F=e();var V=N.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+F+"$2");N.url=V+((V==N.url)?(N.url.match(/\?/)?"&":"?")+"_="+F:"")}if(N.data&&H=="GET"){N.url+=(N.url.match(/\?/)?"&":"?")+N.data;N.data=null}if(N.global&&!p.active++){p.event.trigger("ajaxStart")}var R=/^(\w+:)?\/\/([^\/?#]+)/.exec(N.url);if(N.dataType=="script"&&H=="GET"&&R&&(R[1]&&R[1]!=location.protocol||R[2]!=location.host)){var I=document.getElementsByTagName("head")[0];var U=document.createElement("script");U.src=N.url;if(N.scriptCharset){U.charset=N.scriptCharset}if(!X){var P=false;U.onload=U.onreadystatechange=function(){if(!P&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){P=true;J();M();U.onload=U.onreadystatechange=null;I.removeChild(U)}}}I.appendChild(U);return g}var L=false;var K=N.xhr();if(N.username){K.open(H,N.url,N.async,N.username,N.password)}else{K.open(H,N.url,N.async)}try{if(N.data){K.setRequestHeader("Content-Type",N.contentType)}if(N.ifModified){K.setRequestHeader("If-Modified-Since",p.lastModified[N.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}K.setRequestHeader("X-Requested-With","XMLHttpRequest");K.setRequestHeader("Accept",N.dataType&&N.accepts[N.dataType]?N.accepts[N.dataType]+", */*":N.accepts._default)}catch(T){}if(N.beforeSend&&N.beforeSend(K,N)===false){if(N.global&&!--p.active){p.event.trigger("ajaxStop")}K.abort();return false}if(N.global){p.event.trigger("ajaxSend",[K,N])}var O=function(Y){if(K.readyState==0){if(Q){clearInterval(Q);Q=null;if(N.global&&!--p.active){p.event.trigger("ajaxStop")}}}else{if(!L&&K&&(K.readyState==4||Y=="timeout")){L=true;if(Q){clearInterval(Q);Q=null}S=Y=="timeout"?"timeout":!p.httpSuccess(K)?"error":N.ifModified&&p.httpNotModified(K,N.url)?"notmodified":"success";if(S=="success"){try{W=p.httpData(K,N.dataType,N)}catch(aa){S="parsererror"}}if(S=="success"){var Z;try{Z=K.getResponseHeader("Last-Modified")}catch(aa){}if(N.ifModified&&Z){p.lastModified[N.url]=Z}if(!X){J()}}else{p.handleError(N,K,S)}M();if(Y){K.abort()}if(N.async){K=null}}}};if(N.async){var Q=setInterval(O,13);if(N.timeout>0){setTimeout(function(){if(K&&!L){O("timeout")}},N.timeout)}}try{K.send(N.data)}catch(T){p.handleError(N,K,null,T)}if(!N.async){O()}function J(){if(N.success){N.success(W,S)}if(N.global){p.event.trigger("ajaxSuccess",[K,N])}}function M(){if(N.complete){N.complete(K,S)}if(N.global){p.event.trigger("ajaxComplete",[K,N])}if(N.global&&!--p.active){p.event.trigger("ajaxStop")}}return K},handleError:function(G,I,F,H){if(G.error){G.error(I,F,H)}if(G.global){p.event.trigger("ajaxError",[I,G,H])}},active:0,httpSuccess:function(G){try{return !G.status&&location.protocol=="file:"||(G.status>=200&&G.status<300)||G.status==304||G.status==1223}catch(F){}return false},httpNotModified:function(H,F){try{var I=H.getResponseHeader("Last-Modified");return H.status==304||I==p.lastModified[F]}catch(G){}return false},httpData:function(K,I,H){var G=K.getResponseHeader("content-type"),F=I=="xml"||!I&&G&&G.indexOf("xml")>=0,J=F?K.responseXML:K.responseText;if(F&&J.documentElement.tagName=="parsererror"){throw"parsererror"}if(H&&H.dataFilter){J=H.dataFilter(J,I)}if(typeof J==="string"){if(I=="script"){p.globalEval(J)}if(I=="json"){J=m["eval"]("("+J+")")}}return J},param:function(F){var H=[];function I(J,K){H[H.length]=encodeURIComponent(J)+"="+encodeURIComponent(K)}if(p.isArray(F)||F.jquery){p.each(F,function(){I(this.name,this.value)})}else{for(var G in F){if(p.isArray(F[G])){p.each(F[G],function(){I(G,this)})}else{I(G,p.isFunction(F[G])?F[G]():F[G])}}}return H.join("&").replace(/%20/g,"+")}});var n={},o,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function u(G,F){var H={};p.each(d.concat.apply([],d.slice(0,F)),function(){H[this]=G});return H}p.fn.extend({show:function(K,M){if(K){return this.animate(u("show",3),K,M)}else{for(var I=0,G=this.length;I<G;I++){var F=p.data(this[I],"olddisplay");this[I].style.display=F||"";if(p.css(this[I],"display")==="none"){var H=this[I].tagName,L;if(n[H]){L=n[H]}else{var J=p("<"+H+" />").appendTo("body");L=J.css("display");if(L==="none"){L="block"}J.remove();n[H]=L}p.data(this[I],"olddisplay",L)}}for(var I=0,G=this.length;I<G;I++){this[I].style.display=p.data(this[I],"olddisplay")||""}return this}},hide:function(I,J){if(I){return this.animate(u("hide",3),I,J)}else{for(var H=0,G=this.length;H<G;H++){var F=p.data(this[H],"olddisplay");if(!F&&F!=="none"){p.data(this[H],"olddisplay",p.css(this[H],"display"))}}for(var H=0,G=this.length;H<G;H++){this[H].style.display="none"}return this}},_toggle:p.fn.toggle,toggle:function(H,G){var F=typeof H==="boolean";return p.isFunction(H)&&p.isFunction(G)?this._toggle.apply(this,arguments):H==null||F?this.each(function(){var I=F?H:p(this).is(":hidden");p(this)[I?"show":"hide"]()}):this.animate(u("toggle",3),H,G)},fadeTo:function(F,H,G){return this.animate({opacity:H},F,G)},animate:function(J,G,I,H){var F=p.speed(G,I,H);return this[F.queue===false?"each":"queue"](function(){var L=p.extend({},F),N,M=this.nodeType==1&&p(this).is(":hidden"),K=this;for(N in J){if(J[N]=="hide"&&M||J[N]=="show"&&!M){return L.complete.call(this)}if((N=="height"||N=="width")&&this.style){L.display=p.css(this,"display");L.overflow=this.style.overflow}}if(L.overflow!=null){this.style.overflow="hidden"}L.curAnim=p.extend({},J);p.each(J,function(P,T){var S=new p.fx(K,L,P);if(/toggle|show|hide/.test(T)){S[T=="toggle"?M?"show":"hide":T](J)}else{var R=T.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),U=S.cur(true)||0;if(R){var O=parseFloat(R[2]),Q=R[3]||"px";if(Q!="px"){K.style[P]=(O||1)+Q;U=((O||1)/S.cur(true))*U;K.style[P]=U+Q}if(R[1]){O=((R[1]=="-="?-1:1)*O)+U}S.custom(U,O,Q)}else{S.custom(U,T,"")}}});return true})},stop:function(G,F){var H=p.timers;if(G){this.queue([])}this.each(function(){for(var I=H.length-1;I>=0;I--){if(H[I].elem==this){if(F){H[I](true)}H.splice(I,1)}}});if(!F){this.dequeue()}return this}});p.each({slideDown:u("show",1),slideUp:u("hide",1),slideToggle:u("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(F,G){p.fn[F]=function(H,I){return this.animate(G,H,I)}});p.extend({speed:function(H,I,G){var F=typeof H==="object"?H:{complete:G||!G&&I||p.isFunction(H)&&H,duration:H,easing:G&&I||I&&!p.isFunction(I)&&I};F.duration=p.fx.off?0:typeof F.duration==="number"?F.duration:p.fx.speeds[F.duration]||p.fx.speeds._default;F.old=F.complete;F.complete=function(){if(F.queue!==false){p(this).dequeue()}if(p.isFunction(F.old)){F.old.call(this)}};return F},easing:{linear:function(H,I,F,G){return F+G*H},swing:function(H,I,F,G){return((-Math.cos(H*Math.PI)/2)+0.5)*G+F}},timers:[],fx:function(G,F,H){this.options=F;this.elem=G;this.prop=H;if(!F.orig){F.orig={}}}});p.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(p.fx.step[this.prop]||p.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(G){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var F=parseFloat(p.css(this.elem,this.prop,G));return F&&F>-10000?F:parseFloat(p.curCSS(this.elem,this.prop))||0},custom:function(J,I,H){this.startTime=e();this.start=J;this.end=I;this.unit=H||this.unit||"px";this.now=this.start;this.pos=this.state=0;var F=this;function G(K){return F.step(K)}G.elem=this.elem;if(G()&&p.timers.push(G)&&!o){o=setInterval(function(){var L=p.timers;for(var K=0;K<L.length;K++){if(!L[K]()){L.splice(K--,1)}}if(!L.length){clearInterval(o);o=g}},13)}},show:function(){this.options.orig[this.prop]=p.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());p(this.elem).show()},hide:function(){this.options.orig[this.prop]=p.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(I){var H=e();if(I||H>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var F=true;for(var G in this.options.curAnim){if(this.options.curAnim[G]!==true){F=false}}if(F){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(p.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){p(this.elem).hide()}if(this.options.hide||this.options.show){for(var J in this.options.curAnim){p.attr(this.elem.style,J,this.options.orig[J])}}this.options.complete.call(this.elem)}return false}else{var K=H-this.startTime;this.state=K/this.options.duration;this.pos=p.easing[this.options.easing||(p.easing.swing?"swing":"linear")](this.state,K,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};p.extend(p.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(F){p.attr(F.elem.style,"opacity",F.now)},_default:function(F){if(F.elem.style&&F.elem.style[F.prop]!=null){F.elem.style[F.prop]=F.now+F.unit}else{F.elem[F.prop]=F.now}}}});if(document.documentElement.getBoundingClientRect){p.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return p.offset.bodyOffset(this[0])}var H=this[0].getBoundingClientRect(),K=this[0].ownerDocument,G=K.body,F=K.documentElement,M=F.clientTop||G.clientTop||0,L=F.clientLeft||G.clientLeft||0,J=H.top+(self.pageYOffset||p.boxModel&&F.scrollTop||G.scrollTop)-M,I=H.left+(self.pageXOffset||p.boxModel&&F.scrollLeft||G.scrollLeft)-L;return{top:J,left:I}}}else{p.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return p.offset.bodyOffset(this[0])}p.offset.initialized||p.offset.initialize();var K=this[0],H=K.offsetParent,G=K,P=K.ownerDocument,N,I=P.documentElement,L=P.body,M=P.defaultView,F=M.getComputedStyle(K,null),O=K.offsetTop,J=K.offsetLeft;while((K=K.parentNode)&&K!==L&&K!==I){N=M.getComputedStyle(K,null);O-=K.scrollTop,J-=K.scrollLeft;if(K===H){O+=K.offsetTop,J+=K.offsetLeft;if(p.offset.doesNotAddBorder&&!(p.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(K.tagName))){O+=parseInt(N.borderTopWidth,10)||0,J+=parseInt(N.borderLeftWidth,10)||0}G=H,H=K.offsetParent}if(p.offset.subtractsBorderForOverflowNotVisible&&N.overflow!=="visible"){O+=parseInt(N.borderTopWidth,10)||0,J+=parseInt(N.borderLeftWidth,10)||0}F=N}if(F.position==="relative"||F.position==="static"){O+=L.offsetTop,J+=L.offsetLeft}if(F.position==="fixed"){O+=Math.max(I.scrollTop,L.scrollTop),J+=Math.max(I.scrollLeft,L.scrollLeft)}return{top:O,left:J}}}p.offset={initialize:function(){if(this.initialized){return}var M=document.body,G=document.createElement("div"),I,H,O,J,N,F,K=M.style.marginTop,L='<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>';N={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(F in N){G.style[F]=N[F]}G.innerHTML=L;M.insertBefore(G,M.firstChild);I=G.firstChild,H=I.firstChild,J=I.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(H.offsetTop!==5);this.doesAddBorderForTableAndCells=(J.offsetTop===5);I.style.overflow="hidden",I.style.position="relative";this.subtractsBorderForOverflowNotVisible=(H.offsetTop===-5);M.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(M.offsetTop===0);M.style.marginTop=K;M.removeChild(G);this.initialized=true},bodyOffset:function(F){p.offset.initialized||p.offset.initialize();var H=F.offsetTop,G=F.offsetLeft;if(p.offset.doesNotIncludeMarginInBodyOffset){H+=parseInt(p.curCSS(F,"marginTop",true),10)||0,G+=parseInt(p.curCSS(F,"marginLeft",true),10)||0}return{top:H,left:G}}};p.fn.extend({position:function(){var J=0,I=0,G;if(this[0]){var H=this.offsetParent(),K=this.offset(),F=/^body|html$/i.test(H[0].tagName)?{top:0,left:0}:H.offset();K.top-=k(this,"marginTop");K.left-=k(this,"marginLeft");F.top+=k(H,"borderTopWidth");F.left+=k(H,"borderLeftWidth");G={top:K.top-F.top,left:K.left-F.left}}return G},offsetParent:function(){var F=this[0].offsetParent||document.body;while(F&&(!/^body|html$/i.test(F.tagName)&&p.css(F,"position")=="static")){F=F.offsetParent}return p(F)}});p.each(["Left","Top"],function(G,F){var H="scroll"+F;p.fn[H]=function(I){if(!this[0]){return null}return I!==g?this.each(function(){this==m||this==document?m.scrollTo(!G?I:p(m).scrollLeft(),G?I:p(m).scrollTop()):this[H]=I}):this[0]==m||this[0]==document?self[G?"pageYOffset":"pageXOffset"]||p.boxModel&&document.documentElement[H]||document.body[H]:this[0][H]}});p.each(["Height","Width"],function(J,H){var F=J?"Left":"Top",I=J?"Right":"Bottom",G=H.toLowerCase();p.fn["inner"+H]=function(){return this[0]?p.css(this[0],G,false,"padding"):null};p.fn["outer"+H]=function(L){return this[0]?p.css(this[0],G,false,L?"margin":"border"):null};var K=H.toLowerCase();p.fn[K]=function(L){return this[0]==m?document.compatMode=="CSS1Compat"&&document.documentElement["client"+H]||document.body["client"+H]:this[0]==document?Math.max(document.documentElement["client"+H],document.body["scroll"+H],document.documentElement["scroll"+H],document.body["offset"+H],document.documentElement["offset"+H]):L===g?(this.length?p.css(this[0],K):null):this.css(K,typeof L==="string"?L:L+"px")}})})();jQuery.ui||(function(c){var j=c.fn.remove,d=c.browser.mozilla&&(parseFloat(c.browser.version)<1.9);c.ui={version:"1.7.2",plugin:{add:function(l,m,o){var n=c.ui[l].prototype;for(var k in o){n.plugins[k]=n.plugins[k]||[];n.plugins[k].push([m,o[k]])}},call:function(k,m,l){var o=k.plugins[m];if(!o||!k.element[0].parentNode){return}for(var n=0;n<o.length;n++){if(k.options[o[n][0]]){o[n][1].apply(k.element,l)}}}},contains:function(l,k){return document.compareDocumentPosition?l.compareDocumentPosition(k)&16:l!==k&&l.contains(k)},hasScroll:function(n,l){if(c(n).css("overflow")=="hidden"){return false}var k=(l&&l=="left")?"scrollLeft":"scrollTop",m=false;if(n[k]>0){return true}n[k]=1;m=(n[k]>0);n[k]=0;return m},isOverAxis:function(l,k,m){return(l>k)&&(l<(k+m))},isOver:function(p,l,o,n,k,m){return c.ui.isOverAxis(p,o,k)&&c.ui.isOverAxis(l,n,m)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(d){var f=c.attr,e=c.fn.removeAttr,h="http://www.w3.org/2005/07/aaa",a=/^aria-/,b=/^wairole:/;c.attr=function(l,k,m){var n=m!==undefined;return(k=="role"?(n?f.call(this,l,k,"wairole:"+m):(f.apply(this,arguments)||"").replace(b,"")):(a.test(k)?(n?l.setAttributeNS(h,k.replace(a,"aaa:"),m):f.call(this,l,k.replace(a,"aaa:"))):f.apply(this,arguments)))};c.fn.removeAttr=function(k){return(a.test(k)?this.each(function(){this.removeAttributeNS(h,k.replace(a,""))}):e.call(this,k))}}c.fn.extend({remove:function(){c("*",this).add(this).each(function(){c(this).triggerHandler("remove")});return j.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var k;if((c.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){k=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(c.curCSS(this,"position",1))&&(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}else{k=this.parents().filter(function(){return(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!k.length?c(document):k}});c.extend(c.expr[":"],{data:function(m,l,k){return !!c.data(m,k[3])},focusable:function(l){var m=l.nodeName.toLowerCase(),k=c.attr(l,"tabindex");return(/input|select|textarea|button|object/.test(m)?!l.disabled:"a"==m||"area"==m?l.href||!isNaN(k):!isNaN(k))&&!c(l)["area"==m?"parents":"closest"](":hidden").length},tabbable:function(l){var k=c.attr(l,"tabindex");return(isNaN(k)||k>=0)&&c(l).is(":focusable")}});function g(n,o,p,m){function l(r){var q=c[n][o][r]||[];return(typeof q=="string"?q.split(/,?\s+/):q)}var k=l("getter");if(m.length==1&&typeof m[0]=="string"){k=k.concat(l("getterSetter"))}return(c.inArray(p,k)!=-1)}c.widget=function(l,k){var m=l.split(".")[0];l=l.split(".")[1];c.fn[l]=function(q){var o=(typeof q=="string"),p=Array.prototype.slice.call(arguments,1);if(o&&q.substring(0,1)=="_"){return this}if(o&&g(m,l,q,p)){var n=c.data(this[0],l);return(n?n[q].apply(n,p):undefined)}return this.each(function(){var r=c.data(this,l);(!r&&!o&&c.data(this,l,new c[m][l](this,q))._init());(r&&o&&c.isFunction(r[q])&&r[q].apply(r,p))})};c[m]=c[m]||{};c[m][l]=function(p,o){var n=this;this.namespace=m;this.widgetName=l;this.widgetEventPrefix=c[m][l].eventPrefix||l;this.widgetBaseClass=m+"-"+l;this.options=c.extend({},c.widget.defaults,c[m][l].defaults,c.metadata&&c.metadata.get(p)[l],o);this.element=c(p).bind("setData."+l,function(r,q,s){if(r.target==p){return n._setData(q,s)}}).bind("getData."+l,function(r,q){if(r.target==p){return n._getData(q)}}).bind("remove",function(){return n.destroy()})};c[m][l].prototype=c.extend({},c.widget.prototype,k);c[m][l].getterSetter="option"};c.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(m,n){var l=m,k=this;if(typeof m=="string"){if(n===undefined){return this._getData(m)}l={};l[m]=n}c.each(l,function(o,p){k._setData(o,p)})},_getData:function(k){return this.options[k]},_setData:function(k,l){this.options[k]=l;if(k=="disabled"){this.element[l?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",l)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(m,n,o){var q=this.options[m],k=(m==this.widgetEventPrefix?m:this.widgetEventPrefix+m);n=c.Event(n);n.type=k;if(n.originalEvent){for(var l=c.event.props.length,p;l;){p=c.event.props[--l];n[p]=n.originalEvent[p]}}this.element.trigger(n,o);return !(c.isFunction(q)&&q.call(this.element[0],n,o)===false||n.isDefaultPrevented())}};c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var k=this;this.element.bind("mousedown."+this.widgetName,function(l){return k._mouseDown(l)}).bind("click."+this.widgetName,function(l){if(k._preventClickEvent){k._preventClickEvent=false;l.stopImmediatePropagation();return false}});if(c.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(c.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(m){m.originalEvent=m.originalEvent||{};if(m.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(m));this._mouseDownEvent=m;var l=this,n=(m.which==1),k=(typeof this.options.cancel=="string"?c(m.target).parents().add(m.target).filter(this.options.cancel).length:false);if(!n||k||!this._mouseCapture(m)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){l.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(m)&&this._mouseDelayMet(m)){this._mouseStarted=(this._mouseStart(m)!==false);if(!this._mouseStarted){m.preventDefault();return true}}this._mouseMoveDelegate=function(o){return l._mouseMove(o)};this._mouseUpDelegate=function(o){return l._mouseUp(o)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(c.browser.safari||m.preventDefault());m.originalEvent.mouseHandled=true;return true},_mouseMove:function(k){if(c.browser.msie&&!k.button){return this._mouseUp(k)}if(this._mouseStarted){this._mouseDrag(k);return k.preventDefault()}if(this._mouseDistanceMet(k)&&this._mouseDelayMet(k)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,k)!==false);(this._mouseStarted?this._mouseDrag(k):this._mouseUp(k))}return !this._mouseStarted},_mouseUp:function(k){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(k.target==this._mouseDownEvent.target);this._mouseStop(k)}return false},_mouseDistanceMet:function(k){return(Math.max(Math.abs(this._mouseDownEvent.pageX-k.pageX),Math.abs(this._mouseDownEvent.pageY-k.pageY))>=this.options.distance)},_mouseDelayMet:function(k){return this.mouseDelayMet},_mouseStart:function(k){},_mouseDrag:function(k){},_mouseStop:function(k){},_mouseCapture:function(k){return true}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);jQuery(function(a){a.datepicker.regional.cs={closeText:"Zavřít",prevText:"&#x3c;Dříve",nextText:"Později&#x3e;",currentText:"Nyní",monthNames:["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"],monthNamesShort:["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"],dayNames:["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"],dayNamesShort:["ne","po","út","st","čt","pá","so"],dayNamesMin:["ne","po","út","st","čt","pá","so"],dateFormat:"dd.mm.yy",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional.cs)});(function($){$.extend($.ui,{datepicker:{version:"1.7.2"}});var PROP_NAME="datepicker";function Datepicker(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._datepickerShowing=true;this._inDialog=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],dateFormat:"mm/dd/yy",firstDay:0,isRTL:false};this._defaults={showOn:"focus",showAnim:"show",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,showMonthAfterYear:false,yearRange:"-10:+10",showOtherMonths:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"normal",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false};$.extend(this._defaults,this.regional[""]);this.dpDiv=$('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"></div>')}$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",log:function(){if(this.debug){console.log.apply("",arguments)}},setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase();var inline=(nodeName=="div"||nodeName=="span");if(!target.id){target.id="dp"+(++this.uuid)}var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{});if(nodeName=="input"){this._connectDatepicker(target,inst)}else{if(inline){this._inlineDatepicker(target,inst)}}},_newInst:function(target,inline){var id=target[0].id.replace(/([:\[\]\.])/g,"\\\\$1");return{id:id,input:target,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:inline,dpDiv:(!inline?this.dpDiv:$('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}},_connectDatepicker:function(target,inst){var input=$(target);inst.append=$([]);inst.trigger=$([]);if(input.hasClass(this.markerClassName)){return}var appendText=this._get(inst,"appendText");var isRTL=this._get(inst,"isRTL");if(appendText){inst.append=$('<span class="'+this._appendClass+'">'+appendText+"</span>");input[isRTL?"before":"after"](inst.append)}var showOn=this._get(inst,"showOn");if(showOn=="focus"||showOn=="both"){input.focus(this._showDatepicker)}if(showOn=="button"||showOn=="both"){var buttonText=this._get(inst,"buttonText");var buttonImage=this._get(inst,"buttonImage");inst.trigger=$(this._get(inst,"buttonImageOnly")?$("<img/>").addClass(this._triggerClass).attr({src:buttonImage,alt:buttonText,title:buttonText}):$('<button type="button"></button>').addClass(this._triggerClass).html(buttonImage==""?buttonText:$("<img/>").attr({src:buttonImage,alt:buttonText,title:buttonText})));input[isRTL?"before":"after"](inst.trigger);inst.trigger.click(function(){if($.datepicker._datepickerShowing&&$.datepicker._lastInput==target){$.datepicker._hideDatepicker()}else{$.datepicker._showDatepicker(target)}return false})}input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst)},_inlineDatepicker:function(target,inst){var divSpan=$(target);if(divSpan.hasClass(this.markerClassName)){return}divSpan.addClass(this.markerClassName).append(inst.dpDiv).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst);this._setDate(inst,this._getDefaultDate(inst));this._updateDatepicker(inst);this._updateAlternate(inst)},_dialogDatepicker:function(input,dateText,onSelect,settings,pos){var inst=this._dialogInst;if(!inst){var id="dp"+(++this.uuid);this._dialogInput=$('<input type="text" id="'+id+'" size="1" style="position: absolute; top: -100px;"/>');this._dialogInput.keydown(this._doKeyDown);$("body").append(this._dialogInput);inst=this._dialogInst=this._newInst(this._dialogInput,false);inst.settings={};$.data(this._dialogInput[0],PROP_NAME,inst)}extendRemove(inst.settings,settings||{});this._dialogInput.val(dateText);this._pos=(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null);if(!this._pos){var browserWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var browserHeight=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(browserWidth/2)-100+scrollX,(browserHeight/2)-150+scrollY]}this._dialogInput.css("left",this._pos[0]+"px").css("top",this._pos[1]+"px");inst.settings.onSelect=onSelect;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if($.blockUI){$.blockUI(this.dpDiv)}$.data(this._dialogInput[0],PROP_NAME,inst);return this},_destroyDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();$.removeData(target,PROP_NAME);if(nodeName=="input"){inst.append.remove();inst.trigger.remove();$target.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress)}else{if(nodeName=="div"||nodeName=="span"){$target.removeClass(this.markerClassName).empty()}}},_enableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=false;inst.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);inline.children().removeClass("ui-state-disabled")}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)})},_disableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=true;inst.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);inline.children().addClass("ui-state-disabled")}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)});this._disabledInputs[this._disabledInputs.length]=target},_isDisabledDatepicker:function(target){if(!target){return false}for(var i=0;i<this._disabledInputs.length;i++){if(this._disabledInputs[i]==target){return true}}return false},_getInst:function(target){try{return $.data(target,PROP_NAME)}catch(err){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(target,name,value){var inst=this._getInst(target);if(arguments.length==2&&typeof name=="string"){return(name=="defaults"?$.extend({},$.datepicker._defaults):(inst?(name=="all"?$.extend({},inst.settings):this._get(inst,name)):null))}var settings=name||{};if(typeof name=="string"){settings={};settings[name]=value}if(inst){if(this._curInst==inst){this._hideDatepicker(null)}var date=this._getDateDatepicker(target);extendRemove(inst.settings,settings);this._setDateDatepicker(target,date);this._updateDatepicker(inst)}},_changeDatepicker:function(target,name,value){this._optionDatepicker(target,name,value)},_refreshDatepicker:function(target){var inst=this._getInst(target);if(inst){this._updateDatepicker(inst)}},_setDateDatepicker:function(target,date,endDate){var inst=this._getInst(target);if(inst){this._setDate(inst,date,endDate);this._updateDatepicker(inst);this._updateAlternate(inst)}},_getDateDatepicker:function(target){var inst=this._getInst(target);if(inst&&!inst.inline){this._setDateFromField(inst)}return(inst?this._getDate(inst):null)},_doKeyDown:function(event){var inst=$.datepicker._getInst(event.target);var handled=true;var isRTL=inst.dpDiv.is(".ui-datepicker-rtl");inst._keyEvent=true;if($.datepicker._datepickerShowing){switch(event.keyCode){case 9:$.datepicker._hideDatepicker(null,"");break;case 13:var sel=$("td."+$.datepicker._dayOverClass+", td."+$.datepicker._currentClass,inst.dpDiv);if(sel[0]){$.datepicker._selectDay(event.target,inst.selectedMonth,inst.selectedYear,sel[0])}else{$.datepicker._hideDatepicker(null,$.datepicker._get(inst,"duration"))}return false;break;case 27:$.datepicker._hideDatepicker(null,$.datepicker._get(inst,"duration"));break;case 33:$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M");break;case 34:$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M");break;case 35:if(event.ctrlKey||event.metaKey){$.datepicker._clearDate(event.target)}handled=event.ctrlKey||event.metaKey;break;case 36:if(event.ctrlKey||event.metaKey){$.datepicker._gotoToday(event.target)}handled=event.ctrlKey||event.metaKey;break;case 37:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?+1:-1),"D")}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M")}break;case 38:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,-7,"D")}handled=event.ctrlKey||event.metaKey;break;case 39:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?-1:+1),"D")}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M")}break;case 40:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,+7,"D")}handled=event.ctrlKey||event.metaKey;break;default:handled=false}}else{if(event.keyCode==36&&event.ctrlKey){$.datepicker._showDatepicker(this)}else{handled=false}}if(handled){event.preventDefault();event.stopPropagation()}},_doKeyPress:function(event){var inst=$.datepicker._getInst(event.target);if($.datepicker._get(inst,"constrainInput")){var chars=$.datepicker._possibleChars($.datepicker._get(inst,"dateFormat"));var chr=String.fromCharCode(event.charCode==undefined?event.keyCode:event.charCode);return event.ctrlKey||(chr<" "||!chars||chars.indexOf(chr)>-1)}},_showDatepicker:function(input){input=input.target||input;if(input.nodeName.toLowerCase()!="input"){input=$("input",input.parentNode)[0]}if($.datepicker._isDisabledDatepicker(input)||$.datepicker._lastInput==input){return}var inst=$.datepicker._getInst(input);var beforeShow=$.datepicker._get(inst,"beforeShow");extendRemove(inst.settings,(beforeShow?beforeShow.apply(input,[input,inst]):{}));$.datepicker._hideDatepicker(null,"");$.datepicker._lastInput=input;$.datepicker._setDateFromField(inst);if($.datepicker._inDialog){input.value=""}if(!$.datepicker._pos){$.datepicker._pos=$.datepicker._findPos(input);$.datepicker._pos[1]+=input.offsetHeight}var isFixed=false;$(input).parents().each(function(){isFixed|=$(this).css("position")=="fixed";return !isFixed});if(isFixed&&$.browser.opera){$.datepicker._pos[0]-=document.documentElement.scrollLeft;$.datepicker._pos[1]-=document.documentElement.scrollTop}var offset={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};$.datepicker._pos=null;inst.rangeStart=null;inst.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});$.datepicker._updateDatepicker(inst);offset=$.datepicker._checkOffset(inst,offset,isFixed);inst.dpDiv.css({position:($.datepicker._inDialog&&$.blockUI?"static":(isFixed?"fixed":"absolute")),display:"none",left:offset.left+"px",top:offset.top+"px"});if(!inst.inline){var showAnim=$.datepicker._get(inst,"showAnim")||"show";var duration=$.datepicker._get(inst,"duration");var postProcess=function(){$.datepicker._datepickerShowing=true;if($.browser.msie&&parseInt($.browser.version,10)<7){$("iframe.ui-datepicker-cover").css({width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4})}};if($.effects&&$.effects[showAnim]){inst.dpDiv.show(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[showAnim](duration,postProcess)}if(duration==""){postProcess()}if(inst.input[0].type!="hidden"){inst.input[0].focus()}$.datepicker._curInst=inst}},_updateDatepicker:function(inst){var dims={width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4};var self=this;inst.dpDiv.empty().append(this._generateHTML(inst)).find("iframe.ui-datepicker-cover").css({width:dims.width,height:dims.height}).end().find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){$(this).removeClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!=-1){$(this).removeClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!=-1){$(this).removeClass("ui-datepicker-next-hover")}}).bind("mouseover",function(){if(!self._isDisabledDatepicker(inst.inline?inst.dpDiv.parent()[0]:inst.input[0])){$(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");$(this).addClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!=-1){$(this).addClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!=-1){$(this).addClass("ui-datepicker-next-hover")}}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();var numMonths=this._getNumberOfMonths(inst);var cols=numMonths[1];var width=17;if(cols>1){inst.dpDiv.addClass("ui-datepicker-multi-"+cols).css("width",(width*cols)+"em")}else{inst.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("")}inst.dpDiv[(numMonths[0]!=1||numMonths[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");inst.dpDiv[(this._get(inst,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");if(inst.input&&inst.input[0].type!="hidden"&&inst==$.datepicker._curInst){$(inst.input[0]).focus()}},_checkOffset:function(inst,offset,isFixed){var dpWidth=inst.dpDiv.outerWidth();var dpHeight=inst.dpDiv.outerHeight();var inputWidth=inst.input?inst.input.outerWidth():0;var inputHeight=inst.input?inst.input.outerHeight():0;var viewWidth=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)+$(document).scrollLeft();var viewHeight=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)+$(document).scrollTop();offset.left-=(this._get(inst,"isRTL")?(dpWidth-inputWidth):0);offset.left-=(isFixed&&offset.left==inst.input.offset().left)?$(document).scrollLeft():0;offset.top-=(isFixed&&offset.top==(inst.input.offset().top+inputHeight))?$(document).scrollTop():0;offset.left-=(offset.left+dpWidth>viewWidth&&viewWidth>dpWidth)?Math.abs(offset.left+dpWidth-viewWidth):0;offset.top-=(offset.top+dpHeight>viewHeight&&viewHeight>dpHeight)?Math.abs(offset.top+dpHeight+inputHeight*2-viewHeight):0;return offset},_findPos:function(obj){while(obj&&(obj.type=="hidden"||obj.nodeType!=1)){obj=obj.nextSibling}var position=$(obj).offset();return[position.left,position.top]},_hideDatepicker:function(input,duration){var inst=this._curInst;if(!inst||(input&&inst!=$.data(input,PROP_NAME))){return}if(inst.stayOpen){this._selectDate("#"+inst.id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear))}inst.stayOpen=false;if(this._datepickerShowing){duration=(duration!=null?duration:this._get(inst,"duration"));var showAnim=this._get(inst,"showAnim");var postProcess=function(){$.datepicker._tidyDialog(inst)};if(duration!=""&&$.effects&&$.effects[showAnim]){inst.dpDiv.hide(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[(duration==""?"hide":(showAnim=="slideDown"?"slideUp":(showAnim=="fadeIn"?"fadeOut":"hide")))](duration,postProcess)}if(duration==""){this._tidyDialog(inst)}var onClose=this._get(inst,"onClose");if(onClose){onClose.apply((inst.input?inst.input[0]:null),[(inst.input?inst.input.val():""),inst])}this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if($.blockUI){$.unblockUI();$("body").append(this.dpDiv)}}this._inDialog=false}this._curInst=null},_tidyDialog:function(inst){inst.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(event){if(!$.datepicker._curInst){return}var $target=$(event.target);if(($target.parents("#"+$.datepicker._mainDivId).length==0)&&!$target.hasClass($.datepicker.markerClassName)&&!$target.hasClass($.datepicker._triggerClass)&&$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI)){$.datepicker._hideDatepicker(null,"")}},_adjustDate:function(id,offset,period){var target=$(id);var inst=this._getInst(target[0]);if(this._isDisabledDatepicker(target[0])){return}this._adjustInstDate(inst,offset+(period=="M"?this._get(inst,"showCurrentAtPos"):0),period);this._updateDatepicker(inst)},_gotoToday:function(id){var target=$(id);var inst=this._getInst(target[0]);if(this._get(inst,"gotoCurrent")&&inst.currentDay){inst.selectedDay=inst.currentDay;inst.drawMonth=inst.selectedMonth=inst.currentMonth;inst.drawYear=inst.selectedYear=inst.currentYear}else{var date=new Date();inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear()}this._notifyChange(inst);this._adjustDate(target)},_selectMonthYear:function(id,select,period){var target=$(id);var inst=this._getInst(target[0]);inst._selectingMonthYear=false;inst["selected"+(period=="M"?"Month":"Year")]=inst["draw"+(period=="M"?"Month":"Year")]=parseInt(select.options[select.selectedIndex].value,10);this._notifyChange(inst);this._adjustDate(target)},_clickMonthYear:function(id){var target=$(id);var inst=this._getInst(target[0]);if(inst.input&&inst._selectingMonthYear&&!$.browser.msie){inst.input[0].focus()}inst._selectingMonthYear=!inst._selectingMonthYear},_selectDay:function(id,month,year,td){var target=$(id);if($(td).hasClass(this._unselectableClass)||this._isDisabledDatepicker(target[0])){return}var inst=this._getInst(target[0]);inst.selectedDay=inst.currentDay=$("a",td).html();inst.selectedMonth=inst.currentMonth=month;inst.selectedYear=inst.currentYear=year;if(inst.stayOpen){inst.endDay=inst.endMonth=inst.endYear=null}this._selectDate(id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear));if(inst.stayOpen){inst.rangeStart=this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay));this._updateDatepicker(inst)}},_clearDate:function(id){var target=$(id);var inst=this._getInst(target[0]);inst.stayOpen=false;inst.endDay=inst.endMonth=inst.endYear=inst.rangeStart=null;this._selectDate(target,"")},_selectDate:function(id,dateStr){var target=$(id);var inst=this._getInst(target[0]);dateStr=(dateStr!=null?dateStr:this._formatDate(inst));if(inst.input){inst.input.val(dateStr)}this._updateAlternate(inst);var onSelect=this._get(inst,"onSelect");if(onSelect){onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst])}else{if(inst.input){inst.input.trigger("change")}}if(inst.inline){this._updateDatepicker(inst)}else{if(!inst.stayOpen){this._hideDatepicker(null,this._get(inst,"duration"));this._lastInput=inst.input[0];if(typeof(inst.input[0])!="object"){inst.input[0].focus()}this._lastInput=null}}},_updateAlternate:function(inst){var altField=this._get(inst,"altField");if(altField){var altFormat=this._get(inst,"altFormat")||this._get(inst,"dateFormat");var date=this._getDate(inst);dateStr=this.formatDate(altFormat,date,this._getFormatConfig(inst));$(altField).each(function(){$(this).val(dateStr)})}},noWeekends:function(date){var day=date.getDay();return[(day>0&&day<6),""]},iso8601Week:function(date){var checkDate=new Date(date.getFullYear(),date.getMonth(),date.getDate());var firstMon=new Date(checkDate.getFullYear(),1-1,4);var firstDay=firstMon.getDay()||7;firstMon.setDate(firstMon.getDate()+1-firstDay);if(firstDay<4&&checkDate<firstMon){checkDate.setDate(checkDate.getDate()-3);return $.datepicker.iso8601Week(checkDate)}else{if(checkDate>new Date(checkDate.getFullYear(),12-1,28)){firstDay=new Date(checkDate.getFullYear()+1,1-1,4).getDay()||7;if(firstDay>4&&(checkDate.getDay()||7)<firstDay-3){return 1}}}return Math.floor(((checkDate-firstMon)/86400000)/7)+1},parseDate:function(format,value,settings){if(format==null||value==null){throw"Invalid arguments"}value=(typeof value=="object"?value.toString():value+"");if(value==""){return null}var shortYearCutoff=(settings?settings.shortYearCutoff:null)||this._defaults.shortYearCutoff;var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var year=-1;var month=-1;var day=-1;var doy=-1;var literal=false;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var getNumber=function(match){lookAhead(match);var origSize=(match=="@"?14:(match=="y"?4:(match=="o"?3:2)));var size=origSize;var num=0;while(size>0&&iValue<value.length&&value.charAt(iValue)>="0"&&value.charAt(iValue)<="9"){num=num*10+parseInt(value.charAt(iValue++),10);size--}if(size==origSize){throw"Missing number at position "+iValue}return num};var getName=function(match,shortNames,longNames){var names=(lookAhead(match)?longNames:shortNames);var size=0;for(var j=0;j<names.length;j++){size=Math.max(size,names[j].length)}var name="";var iInit=iValue;while(size>0&&iValue<value.length){name+=value.charAt(iValue++);for(var i=0;i<names.length;i++){if(name==names[i]){return i+1}}size--}throw"Unknown name at position "+iInit};var checkLiteral=function(){if(value.charAt(iValue)!=format.charAt(iFormat)){throw"Unexpected literal at position "+iValue}iValue++};var iValue=0;for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{checkLiteral()}}else{switch(format.charAt(iFormat)){case"d":day=getNumber("d");break;case"D":getName("D",dayNamesShort,dayNames);break;case"o":doy=getNumber("o");break;case"m":month=getNumber("m");break;case"M":month=getName("M",monthNamesShort,monthNames);break;case"y":year=getNumber("y");break;case"@":var date=new Date(getNumber("@"));year=date.getFullYear();month=date.getMonth()+1;day=date.getDate();break;case"'":if(lookAhead("'")){checkLiteral()}else{literal=true}break;default:checkLiteral()}}}if(year==-1){year=new Date().getFullYear()}else{if(year<100){year+=new Date().getFullYear()-new Date().getFullYear()%100+(year<=shortYearCutoff?0:-100)}}if(doy>-1){month=1;day=doy;do{var dim=this._getDaysInMonth(year,month-1);if(day<=dim){break}month++;day-=dim}while(true)}var date=this._daylightSavingAdjust(new Date(year,month-1,day));if(date.getFullYear()!=year||date.getMonth()+1!=month||date.getDate()!=day){throw"Invalid date"}return date},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TIMESTAMP:"@",W3C:"yy-mm-dd",formatDate:function(format,date,settings){if(!date){return""}var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var formatNumber=function(match,value,len){var num=""+value;if(lookAhead(match)){while(num.length<len){num="0"+num}}return num};var formatName=function(match,value,shortNames,longNames){return(lookAhead(match)?longNames[value]:shortNames[value])};var output="";var literal=false;if(date){for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{output+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case"d":output+=formatNumber("d",date.getDate(),2);break;case"D":output+=formatName("D",date.getDay(),dayNamesShort,dayNames);break;case"o":var doy=date.getDate();for(var m=date.getMonth()-1;m>=0;m--){doy+=this._getDaysInMonth(date.getFullYear(),m)}output+=formatNumber("o",doy,3);break;case"m":output+=formatNumber("m",date.getMonth()+1,2);break;case"M":output+=formatName("M",date.getMonth(),monthNamesShort,monthNames);break;case"y":output+=(lookAhead("y")?date.getFullYear():(date.getYear()%100<10?"0":"")+date.getYear()%100);break;case"@":output+=date.getTime();break;case"'":if(lookAhead("'")){output+="'"}else{literal=true}break;default:output+=format.charAt(iFormat)}}}}return output},_possibleChars:function(format){var chars="";var literal=false;for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{chars+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case"d":case"m":case"y":case"@":chars+="0123456789";break;case"D":case"M":return null;case"'":if(lookAhead("'")){chars+="'"}else{literal=true}break;default:chars+=format.charAt(iFormat)}}}return chars},_get:function(inst,name){return inst.settings[name]!==undefined?inst.settings[name]:this._defaults[name]},_setDateFromField:function(inst){var dateFormat=this._get(inst,"dateFormat");var dates=inst.input?inst.input.val():null;inst.endDay=inst.endMonth=inst.endYear=null;var date=defaultDate=this._getDefaultDate(inst);var settings=this._getFormatConfig(inst);try{date=this.parseDate(dateFormat,dates,settings)||defaultDate}catch(event){this.log(event);date=defaultDate}inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();inst.currentDay=(dates?date.getDate():0);inst.currentMonth=(dates?date.getMonth():0);inst.currentYear=(dates?date.getFullYear():0);this._adjustInstDate(inst)},_getDefaultDate:function(inst){var date=this._determineDate(this._get(inst,"defaultDate"),new Date());var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");date=(minDate&&date<minDate?minDate:date);date=(maxDate&&date>maxDate?maxDate:date);return date},_determineDate:function(date,defaultDate){var offsetNumeric=function(offset){var date=new Date();date.setDate(date.getDate()+offset);return date};var offsetString=function(offset,getDaysInMonth){var date=new Date();var year=date.getFullYear();var month=date.getMonth();var day=date.getDate();var pattern=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g;var matches=pattern.exec(offset);while(matches){switch(matches[2]||"d"){case"d":case"D":day+=parseInt(matches[1],10);break;case"w":case"W":day+=parseInt(matches[1],10)*7;break;case"m":case"M":month+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break;case"y":case"Y":year+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break}matches=pattern.exec(offset)}return new Date(year,month,day)};date=(date==null?defaultDate:(typeof date=="string"?offsetString(date,this._getDaysInMonth):(typeof date=="number"?(isNaN(date)?defaultDate:offsetNumeric(date)):date)));date=(date&&date.toString()=="Invalid Date"?defaultDate:date);if(date){date.setHours(0);date.setMinutes(0);date.setSeconds(0);date.setMilliseconds(0)}return this._daylightSavingAdjust(date)},_daylightSavingAdjust:function(date){if(!date){return null}date.setHours(date.getHours()>12?date.getHours()+2:0);return date},_setDate:function(inst,date,endDate){var clear=!(date);var origMonth=inst.selectedMonth;var origYear=inst.selectedYear;date=this._determineDate(date,new Date());inst.selectedDay=inst.currentDay=date.getDate();inst.drawMonth=inst.selectedMonth=inst.currentMonth=date.getMonth();inst.drawYear=inst.selectedYear=inst.currentYear=date.getFullYear();if(origMonth!=inst.selectedMonth||origYear!=inst.selectedYear){this._notifyChange(inst)}this._adjustInstDate(inst);if(inst.input){inst.input.val(clear?"":this._formatDate(inst))}},_getDate:function(inst){var startDate=(!inst.currentYear||(inst.input&&inst.input.val()=="")?null:this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return startDate},_generateHTML:function(inst){var today=new Date();today=this._daylightSavingAdjust(new Date(today.getFullYear(),today.getMonth(),today.getDate()));var isRTL=this._get(inst,"isRTL");var showButtonPanel=this._get(inst,"showButtonPanel");var hideIfNoPrevNext=this._get(inst,"hideIfNoPrevNext");var navigationAsDateFormat=this._get(inst,"navigationAsDateFormat");var numMonths=this._getNumberOfMonths(inst);var showCurrentAtPos=this._get(inst,"showCurrentAtPos");var stepMonths=this._get(inst,"stepMonths");var stepBigMonths=this._get(inst,"stepBigMonths");var isMultiMonth=(numMonths[0]!=1||numMonths[1]!=1);var currentDate=this._daylightSavingAdjust((!inst.currentDay?new Date(9999,9,9):new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");var drawMonth=inst.drawMonth-showCurrentAtPos;var drawYear=inst.drawYear;if(drawMonth<0){drawMonth+=12;drawYear--}if(maxDate){var maxDraw=this._daylightSavingAdjust(new Date(maxDate.getFullYear(),maxDate.getMonth()-numMonths[1]+1,maxDate.getDate()));maxDraw=(minDate&&maxDraw<minDate?minDate:maxDraw);while(this._daylightSavingAdjust(new Date(drawYear,drawMonth,1))>maxDraw){drawMonth--;if(drawMonth<0){drawMonth=11;drawYear--}}}inst.drawMonth=drawMonth;inst.drawYear=drawYear;var prevText=this._get(inst,"prevText");prevText=(!navigationAsDateFormat?prevText:this.formatDate(prevText,this._daylightSavingAdjust(new Date(drawYear,drawMonth-stepMonths,1)),this._getFormatConfig(inst)));var prev=(this._canAdjustMonth(inst,-1,drawYear,drawMonth)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery.datepicker._adjustDate(\'#'+inst.id+"', -"+stepMonths+", 'M');\" title=\""+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"e":"w")+'">'+prevText+"</span></a>":(hideIfNoPrevNext?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"e":"w")+'">'+prevText+"</span></a>"));var nextText=this._get(inst,"nextText");nextText=(!navigationAsDateFormat?nextText:this.formatDate(nextText,this._daylightSavingAdjust(new Date(drawYear,drawMonth+stepMonths,1)),this._getFormatConfig(inst)));var next=(this._canAdjustMonth(inst,+1,drawYear,drawMonth)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery.datepicker._adjustDate(\'#'+inst.id+"', +"+stepMonths+", 'M');\" title=\""+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"w":"e")+'">'+nextText+"</span></a>":(hideIfNoPrevNext?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"w":"e")+'">'+nextText+"</span></a>"));var currentText=this._get(inst,"currentText");var gotoDate=(this._get(inst,"gotoCurrent")&&inst.currentDay?currentDate:today);currentText=(!navigationAsDateFormat?currentText:this.formatDate(currentText,gotoDate,this._getFormatConfig(inst)));var controls=(!inst.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery.datepicker._hideDatepicker();">'+this._get(inst,"closeText")+"</button>":"");var buttonPanel=(showButtonPanel)?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(isRTL?controls:"")+(this._isInRange(inst,gotoDate)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery.datepicker._gotoToday(\'#'+inst.id+"');\">"+currentText+"</button>":"")+(isRTL?"":controls)+"</div>":"";var firstDay=parseInt(this._get(inst,"firstDay"),10);firstDay=(isNaN(firstDay)?0:firstDay);var dayNames=this._get(inst,"dayNames");var dayNamesShort=this._get(inst,"dayNamesShort");var dayNamesMin=this._get(inst,"dayNamesMin");var monthNames=this._get(inst,"monthNames");var monthNamesShort=this._get(inst,"monthNamesShort");var beforeShowDay=this._get(inst,"beforeShowDay");var showOtherMonths=this._get(inst,"showOtherMonths");var calculateWeek=this._get(inst,"calculateWeek")||this.iso8601Week;var endDate=inst.endDay?this._daylightSavingAdjust(new Date(inst.endYear,inst.endMonth,inst.endDay)):currentDate;var defaultDate=this._getDefaultDate(inst);var html="";for(var row=0;row<numMonths[0];row++){var group="";for(var col=0;col<numMonths[1];col++){var selectedDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,inst.selectedDay));var cornerClass=" ui-corner-all";var calender="";if(isMultiMonth){calender+='<div class="ui-datepicker-group ui-datepicker-group-';switch(col){case 0:calender+="first";cornerClass=" ui-corner-"+(isRTL?"right":"left");break;case numMonths[1]-1:calender+="last";cornerClass=" ui-corner-"+(isRTL?"left":"right");break;default:calender+="middle";cornerClass="";break}calender+='">'}calender+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+cornerClass+'">'+(/all|left/.test(cornerClass)&&row==0?(isRTL?next:prev):"")+(/all|right/.test(cornerClass)&&row==0?(isRTL?prev:next):"")+this._generateMonthYearHeader(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,row>0||col>0,monthNames,monthNamesShort)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var thead="";for(var dow=0;dow<7;dow++){var day=(dow+firstDay)%7;thead+="<th"+((dow+firstDay+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+dayNames[day]+'">'+dayNamesMin[day]+"</span></th>"}calender+=thead+"</tr></thead><tbody>";var daysInMonth=this._getDaysInMonth(drawYear,drawMonth);if(drawYear==inst.selectedYear&&drawMonth==inst.selectedMonth){inst.selectedDay=Math.min(inst.selectedDay,daysInMonth)}var leadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;var numRows=(isMultiMonth?6:Math.ceil((leadDays+daysInMonth)/7));var printDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,1-leadDays));for(var dRow=0;dRow<numRows;dRow++){calender+="<tr>";var tbody="";for(var dow=0;dow<7;dow++){var daySettings=(beforeShowDay?beforeShowDay.apply((inst.input?inst.input[0]:null),[printDate]):[true,""]);var otherMonth=(printDate.getMonth()!=drawMonth);var unselectable=otherMonth||!daySettings[0]||(minDate&&printDate<minDate)||(maxDate&&printDate>maxDate);tbody+='<td class="'+((dow+firstDay+6)%7>=5?" ui-datepicker-week-end":"")+(otherMonth?" ui-datepicker-other-month":"")+((printDate.getTime()==selectedDate.getTime()&&drawMonth==inst.selectedMonth&&inst._keyEvent)||(defaultDate.getTime()==printDate.getTime()&&defaultDate.getTime()==selectedDate.getTime())?" "+this._dayOverClass:"")+(unselectable?" "+this._unselectableClass+" ui-state-disabled":"")+(otherMonth&&!showOtherMonths?"":" "+daySettings[1]+(printDate.getTime()>=currentDate.getTime()&&printDate.getTime()<=endDate.getTime()?" "+this._currentClass:"")+(printDate.getTime()==today.getTime()?" ui-datepicker-today":""))+'"'+((!otherMonth||showOtherMonths)&&daySettings[2]?' title="'+daySettings[2]+'"':"")+(unselectable?"":" onclick=\"DP_jQuery.datepicker._selectDay('#"+inst.id+"',"+drawMonth+","+drawYear+', this);return false;"')+">"+(otherMonth?(showOtherMonths?printDate.getDate():"&#xa0;"):(unselectable?'<span class="ui-state-default">'+printDate.getDate()+"</span>":'<a class="ui-state-default'+(printDate.getTime()==today.getTime()?" ui-state-highlight":"")+(printDate.getTime()>=currentDate.getTime()&&printDate.getTime()<=endDate.getTime()?" ui-state-active":"")+'" href="#">'+printDate.getDate()+"</a>"))+"</td>";printDate.setDate(printDate.getDate()+1);printDate=this._daylightSavingAdjust(printDate)}calender+=tbody+"</tr>"}drawMonth++;if(drawMonth>11){drawMonth=0;drawYear++}calender+="</tbody></table>"+(isMultiMonth?"</div>"+((numMonths[0]>0&&col==numMonths[1]-1)?'<div class="ui-datepicker-row-break"></div>':""):"");group+=calender}html+=group}html+=buttonPanel+($.browser.msie&&parseInt($.browser.version,10)<7&&!inst.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");inst._keyEvent=false;return html},_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,secondary,monthNames,monthNamesShort){minDate=(inst.rangeStart&&minDate&&selectedDate<minDate?selectedDate:minDate);var changeMonth=this._get(inst,"changeMonth");var changeYear=this._get(inst,"changeYear");var showMonthAfterYear=this._get(inst,"showMonthAfterYear");var html='<div class="ui-datepicker-title">';var monthHtml="";if(secondary||!changeMonth){monthHtml+='<span class="ui-datepicker-month">'+monthNames[drawMonth]+"</span> "}else{var inMinYear=(minDate&&minDate.getFullYear()==drawYear);var inMaxYear=(maxDate&&maxDate.getFullYear()==drawYear);monthHtml+='<select class="ui-datepicker-month" onchange="DP_jQuery.datepicker._selectMonthYear(\'#'+inst.id+"', this, 'M');\" onclick=\"DP_jQuery.datepicker._clickMonthYear('#"+inst.id+"');\">";for(var month=0;month<12;month++){if((!inMinYear||month>=minDate.getMonth())&&(!inMaxYear||month<=maxDate.getMonth())){monthHtml+='<option value="'+month+'"'+(month==drawMonth?' selected="selected"':"")+">"+monthNamesShort[month]+"</option>"}}monthHtml+="</select>"}if(!showMonthAfterYear){html+=monthHtml+((secondary||changeMonth||changeYear)&&(!(changeMonth&&changeYear))?"&#xa0;":"")}if(secondary||!changeYear){html+='<span class="ui-datepicker-year">'+drawYear+"</span>"}else{var years=this._get(inst,"yearRange").split(":");var year=0;var endYear=0;if(years.length!=2){year=drawYear-10;endYear=drawYear+10}else{if(years[0].charAt(0)=="+"||years[0].charAt(0)=="-"){year=drawYear+parseInt(years[0],10);endYear=drawYear+parseInt(years[1],10)}else{year=parseInt(years[0],10);endYear=parseInt(years[1],10)}}year=(minDate?Math.max(year,minDate.getFullYear()):year);endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);html+='<select class="ui-datepicker-year" onchange="DP_jQuery.datepicker._selectMonthYear(\'#'+inst.id+"', this, 'Y');\" onclick=\"DP_jQuery.datepicker._clickMonthYear('#"+inst.id+"');\">";for(;year<=endYear;year++){html+='<option value="'+year+'"'+(year==drawYear?' selected="selected"':"")+">"+year+"</option>"}html+="</select>"}if(showMonthAfterYear){html+=(secondary||changeMonth||changeYear?"&#xa0;":"")+monthHtml}html+="</div>";return html},_adjustInstDate:function(inst,offset,period){var year=inst.drawYear+(period=="Y"?offset:0);var month=inst.drawMonth+(period=="M"?offset:0);var day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+(period=="D"?offset:0);var date=this._daylightSavingAdjust(new Date(year,month,day));var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");date=(minDate&&date<minDate?minDate:date);date=(maxDate&&date>maxDate?maxDate:date);inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();if(period=="M"||period=="Y"){this._notifyChange(inst)}},_notifyChange:function(inst){var onChange=this._get(inst,"onChangeMonthYear");if(onChange){onChange.apply((inst.input?inst.input[0]:null),[inst.selectedYear,inst.selectedMonth+1,inst])}},_getNumberOfMonths:function(inst){var numMonths=this._get(inst,"numberOfMonths");return(numMonths==null?[1,1]:(typeof numMonths=="number"?[1,numMonths]:numMonths))},_getMinMaxDate:function(inst,minMax,checkRange){var date=this._determineDate(this._get(inst,minMax+"Date"),null);return(!checkRange||!inst.rangeStart?date:(!date||inst.rangeStart>date?inst.rangeStart:date))},_getDaysInMonth:function(year,month){return 32-new Date(year,month,32).getDate()},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay()},_canAdjustMonth:function(inst,offset,curYear,curMonth){var numMonths=this._getNumberOfMonths(inst);var date=this._daylightSavingAdjust(new Date(curYear,curMonth+(offset<0?offset:numMonths[1]),1));if(offset<0){date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()))}return this._isInRange(inst,date)},_isInRange:function(inst,date){var newMinDate=(!inst.rangeStart?null:this._daylightSavingAdjust(new Date(inst.selectedYear,inst.selectedMonth,inst.selectedDay)));newMinDate=(newMinDate&&inst.rangeStart<newMinDate?inst.rangeStart:newMinDate);var minDate=newMinDate||this._getMinMaxDate(inst,"min");var maxDate=this._getMinMaxDate(inst,"max");return((!minDate||date>=minDate)&&(!maxDate||date<=maxDate))},_getFormatConfig:function(inst){var shortYearCutoff=this._get(inst,"shortYearCutoff");shortYearCutoff=(typeof shortYearCutoff!="string"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get(inst,"dayNamesShort"),dayNames:this._get(inst,"dayNames"),monthNamesShort:this._get(inst,"monthNamesShort"),monthNames:this._get(inst,"monthNames")}},_formatDate:function(inst,day,month,year){if(!day){inst.currentDay=inst.selectedDay;inst.currentMonth=inst.selectedMonth;inst.currentYear=inst.selectedYear}var date=(day?(typeof day=="object"?day:this._daylightSavingAdjust(new Date(year,month,day))):this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return this.formatDate(this._get(inst,"dateFormat"),date,this._getFormatConfig(inst))}});function extendRemove(target,props){$.extend(target,props);for(var name in props){if(props[name]==null||props[name]==undefined){target[name]=props[name]}}return target}function isArray(a){return(a&&(($.browser.safari&&typeof a=="object"&&a.length)||(a.constructor&&a.constructor.toString().match(/\Array\(\)/))))}$.fn.datepicker=function(options){if(!$.datepicker.initialized){$(document).mousedown($.datepicker._checkExternalClick).find("body").append($.datepicker.dpDiv);$.datepicker.initialized=true}var otherArgs=Array.prototype.slice.call(arguments,1);if(typeof options=="string"&&(options=="isDisabled"||options=="getDate")){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}if(options=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}return this.each(function(){typeof options=="string"?$.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options)})};$.datepicker=new Datepicker();$.datepicker.initialized=false;$.datepicker.uuid=new Date().getTime();$.datepicker.version="1.7.2";window.DP_jQuery=$})(jQuery);(function(){var a={getSelection:function(){var b=this.jquery?this[0]:this;return(("selectionStart" in b&&function(){var c=b.selectionEnd-b.selectionStart;return{start:b.selectionStart,end:b.selectionEnd,length:c,text:b.value.substr(b.selectionStart,c)}})||(document.selection&&function(){b.focus();var d=document.selection.createRange();if(d==null){return{start:0,end:b.value.length,length:0}}var c=b.createTextRange();var e=c.duplicate();c.moveToBookmark(d.getBookmark());e.setEndPoint("EndToStart",c);return{start:e.text.length,end:e.text.length+d.text.length,length:d.text.length,text:d.text}})||function(){return{start:0,end:b.value.length,length:0}})()},setSelection:function(b){var d=this.jquery?this[0]:this;var c=arguments[1]||b;return(("setSelectionRange" in d&&function(){d.focus();d.setSelectionRange(b,c);return this})||("createTextRange" in d&&function(){d.focus();var e=d.createTextRange();e.collapse(true);e.moveEnd("character",c);e.moveStart("character",b);e.select();return this})||function(){d.focus();return this})()},replaceSelection:function(){var b=this.jquery?this[0]:this;var c=arguments[0]||"";return(("selectionStart" in b&&function(){var d=b.selectionStart;b.value=b.value.substr(0,b.selectionStart)+c+b.value.substr(b.selectionEnd,b.value.length);b.focus();b.setSelectionRange(d,d+c.length);return this})||(document.selection&&function(){b.focus();document.selection.createRange().text=c;return this})||function(){b.value+=c;return this})()}};jQuery.each(a,function(b){jQuery.fn[b]=this})})();var AV_VER="0.80";var AV_STOP=false;var AV_DEBUG=false;var AV_CONTEXT_AD=true;var AV_ERR_CONCAT="\nV p��pad� probl�m� pros�m kontaktujte admin@advantage.as.";var AV_ERR_NOID="AV_Chyba: funkce AV_print() vol� neexistuj�c� ID pozice."+AV_ERR_CONCAT;var AV_ERR_IDPAGE="AV_Chyba: funkce AV_init() mus� m�t v parametru ID str�nky. "+AV_ERR_CONCAT;var AV_ERR_QUERY="AV_Chyba: snaha o znovu na�ten� reklamy AV_reload() bez p�edchoz� inicializace AV_init(). "+AV_ERR_CONCAT;var AV_ERR_HTTP="AV_Chyba: nelze otev��t HTTP spojen� pomoc� funkce AV_reload(). "+AV_ERR_CONCAT;var AV_PROT="http://";var AV_URL="mf.advantage.as";var AV_SCRIPT="/if/imshow.php";var AV_JSLoaded=false;var AV_preLoaded=false;var AV_adverLoaded=false;AV_konfigurace=new Array();AV_poziceArr=new Array();AV_poziceCalledArr=new Array();AV_reklamyArr=new Array();AV_cileni=new Array();AV_stranka=null;AV_query=null;AV_posHTMLArr=new Array();AV_advHTMLArr=new Array();if(typeof(IMFV)=="undefined"){IMFV=0;FLASH_MAX=15;plugin=(navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"])?navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin:0;if(plugin){var words=navigator.plugins["Shockwave Flash"].description.split(" ");for(var i=0;i<words.length;++i){if(isNaN(parseInt(words[i]))){continue}var IMFV=words[i]}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("MSIE")>=0&&(navigator.appVersion.indexOf("Win")!=-1)){document.write("<SCRIPT LANGUAGE=VBScript> \n");document.write("i=3\n");document.write("on error resume next\n");document.write("Do While  IMFV=0 AND i<=FLASH_MAX\n");document.write('if (isNull(CreateObject("ShockwaveFlash.ShockwaveFlash." & i)) AND false) then IMFV=i\n');document.write("i=i+1\n");document.write("Loop\n");document.write("if IMFV<>0 then IMFV=IMFV-1\n");document.write("</SCRIPT>\n")}}}function AV_init(a){if(AV_adverLoaded){if(typeof(AV_checkMsg)!="undefined"){alert(AV_checkMsg)}if(AV_DEBUG){AV_poziceMissAlert(AV_poziceCheck())}}if(AV_STOP||AV_adverLoaded){return}if(typeof(a)!="number"){if(AV_stranka){a=AV_stranka}}if(AV_DEBUG){window.setTimeout('window.status = "Debug on! - reklamn� syst�m adVANTAGE"',2000);if(typeof(a)!="number"){alert(AV_ERR_IDPAGE)}}AV_konfigurace.ver=AV_VER;AV_konfigurace.ref=this.location.href;AV_konfigurace.fla=IMFV;if(!AV_konfigurace.typ){AV_konfigurace.typ="js"}AV_konfigurace.chr=AV_getCharset();AV_konfigurace.coo=AV_cookieTest();if(!AV_konfigurace.subtyp){if(AV_preLoaded){AV_konfigurace.subtyp="pre"}else{AV_konfigurace.subtyp="post"}}AV_query="";if(a!=null){AV_query+=(AV_query?"&":"?")+AV_toGET(a,"pg")}AV_query+=(AV_query?"&":"?")+AV_toGET(AV_poziceArr,"ps");AV_query+=(AV_query?"&":"?")+AV_toGET(AV_reklamyArr,"ad");AV_query+=(AV_query?"&":"?")+AV_toGET(AV_cileni,"tg");AV_query+=(AV_query?"&":"?")+AV_toGET(AV_konfigurace,"cf");AV_advantageArr=AV_urlParams("advantage");if(AV_DEBUG){if(AV_advantageArr===false){AV_advantageArr=new Array("debug")}else{AV_advantageArr.push("debug")}}if(AV_advantageArr){AV_query+=(AV_query?"&":"?")+AV_toGET(AV_advantageArr,"advantage")}AV_query=AV_PROT+AV_URL+AV_SCRIPT+AV_query;document.write('<script src="'+AV_query+AV_toGET(Math.random(),"rnd")+'" type="text/javascript" charset="windows-1250"><\/script>')}function AV_initRekl(){AV_init(null)}function AV_preload(a){AV_preLoaded=true;AV_init(a)}function AV_preloadRekl(){AV_preload(null)}function AV_toGET(a,c){if(typeof(a)=="object"){var d="";for(var b in a){if(typeof(a[b])=="function"||typeof(a[b])=="object"){continue}d+=((d=="")?"":"&")+c+AV_urlEncode("["+b+"]")+"="+AV_urlEncode(a[b])}return d}else{if(typeof(a)=="boolean"){return c+"="+(a?1:0)}else{return c+"="+AV_urlEncode(a)}}}function AV_print(){if(AV_preLoaded||AV_STOP){return}var b;for(var a in AV_posArr){if(typeof(AV_posArr[a])=="function"||typeof(AV_posArr[a])=="object"&&isNaN(a)){continue}if(AV_posArr[a]["html"]!=""&&(b=document.getElementById("AV_pos"+a))){b.innerHTML=AV_posHTMLArr[a]["head"]+AV_recoding(AV_posArr[a]["html"])+AV_posHTMLArr[a]["foot"]}else{if(AV_DEBUG){alert(AV_ERR_NOID)}}}for(var a in AV_advArr){if(typeof(AV_advArr[a])=="function"||typeof(AV_advArr[a])=="object"&&isNaN(a)){continue}if(AV_advArr[a]["html"]!=""&&(b=document.getElementById("AV_adv"+a))){b.innerHTML=AV_advHTMLArr[a]["head"]+AV_recoding(AV_advArr[a]["html"])+AV_advHTMLArr[a]["foot"]}else{if(AV_DEBUG){alert(AV_ERR_NOID)}}}}function AV_reklama(c,b,a){if(AV_STOP){return}b=b?b:"";a=a?a:"";if(AV_preLoaded){if(AV_adverLoaded&&AV_advArr[c]&&AV_advArr[c]["html"]){document.write(b);document.write(AV_recoding(AV_advArr[c]["html"]));document.write(a)}}else{AV_reklamyArr[AV_reklamyArr.length]=c;AV_advHTMLArr[c]=new Array();AV_advHTMLArr[c]["head"]=b;AV_advHTMLArr[c]["foot"]=a;document.write('<span id="AV_adv'+c+'"> </span>')}}function AV_pozice(c,b,a){AV_poziceCalledArr.push(c);if(AV_STOP){return}b=b?b:"";a=a?a:"";if(AV_preLoaded){if(AV_adverLoaded&&AV_posArr[c]&&AV_posArr[c]["html"]){document.write(b);document.write(AV_recoding(AV_posArr[c]["html"]));document.write(a)}}else{AV_poziceArr[AV_poziceArr.length]=c;AV_posHTMLArr[c]=new Array();AV_posHTMLArr[c]["head"]=b;AV_posHTMLArr[c]["foot"]=a;document.write('<span id="AV_pos'+c+'"> </span>')}}function AV_poziceCheck(){var c=new Array();for(var b=0;b<AV_poziceDbArr.length;b++){found=false;for(var a=0;a<AV_poziceCalledArr.length;a++){if(AV_poziceDbArr[b]==AV_poziceCalledArr[a]){found=true;continue}}if(!found){c.push(AV_poziceDbArr[b])}}return c}function AV_poziceMissAlert(b){tmpStr="";for(var a=0;a<b.length;a++){tmpStr+="\r\n"+(typeof(AV_poziceNameArr)!="undefined"&&AV_poziceNameArr[b[a]]?AV_poziceNameArr[b[a]]+" ("+b[a]+")":b[a])}if(tmpStr){alert("Ov��en� korektn�ho nasazen� reklman�ho syst�mu adVANTAGE.\r\n\r\nPro n�sleduj�c� pozice nebyla ve str�nce vol�na fuknce AV_pozice():"+tmpStr)}}function AV_cookieTest(){document.cookie="AV_cookie=true";return(document.cookie.indexOf("AV_cookie")>=0?1:0)}function AV_getCharset(){var d=/charset=([a-zA-Z0-9\-]+)/i;var e=document.getElementsByTagName("meta");var c,a;for(var b=0;b<e.length;b++){if(c=e[b].getAttribute("content")){if(a=d.exec(c)){return a[1].toLowerCase()}}}return""}function AV_win2iso(f,d){var b="���ݎ����";var e="���ݮ����";var a="";if(d=="iso"){fromSet=e;toSet=b}else{fromSet=b;toSet=e}for(var c=0;c<f.length;c++){if((index=fromSet.indexOf(f.charAt(c)))>=0){a+=toSet.charAt(index)}else{a+=f.charAt(c)}}return a}function AV_recoding(a){if(navigator.userAgent.indexOf("MSIE 5")>=0&&AV_getCharset()=="iso-8859-2"){return AV_win2iso(a,"win")}else{return a}}function AV_urlEncode(a){a=escape(a);a=a.replace(/([*@+\/])/g,function(c,b){switch(b){case"*":return"%2A";case"@":return"%40";case"+":return"%2B";case"/":return"%2F"}});return a}function AV_urlParams(d){try{var a=top.location.href}catch(c){var a=this.location.href}if(a.indexOf("?")>-1){urlGet=a.substr(a.indexOf("?"));re=new RegExp("[?&]"+d+"=([^&]+)","g");tmpArr=urlGet.match(re);if(!tmpArr){return false}for(var b=0;b<tmpArr.length;b++){tmpArr[b]=tmpArr[b].substr(tmpArr[b].indexOf("=")+1);if(tmpArr[b]=="debug"||tmpArr[b]=="check"){AV_DEBUG=true}}return tmpArr}return false}function AV_write(a){document.write(a)}function AV_objectRewrite(a){if(typeof(a)=="undefined"){a="object"}var c=document.getElementsByTagName(a);for(var b=0;b<c.length;b++){c[b].outerHTML=c[b].outerHTML}}function AV_objectRewriteById(b){var a=document.getElementById(b);a.outerHTML=a.outerHTML}function AV_context(c,a,b){if(!AV_CONTEXT_AD){return false}if(b){document.write("<style>@import url("+b+");</style>")}AV_adFox(c,a)}function AV_eTarget(b,a){serverArr=AV_advantage2eTarget(b);document.write('<SCRIPT src="http://search.etargetnet.com/cz/impressionmedia/context_ad.php?c='+serverArr[1]+"&ref="+serverArr[0]+"&q="+AV_urlEncode(a)+'"></SCRIPT>')}function AV_adFox(b,a){serverInt=AV_advantage2adFox(b);document.write('<SCRIPT src="http://ad.adfox.cz/ppcbe?js=1&format=666699ffffff3366ff00000033996632&partner='+serverInt+"&stranka="+a+'"></SCRIPT>')}function AV_advantage2eTarget(a){idConverArr=new Array();idConverArr[2]=new Array(344,2);return idConverArr[a]}function AV_advantage2adFox(a){idConverArr=new Array();idConverArr[2]=990;return idConverArr[a]}AV_JSLoaded=true;var mfAjax={numberOfRequests:0,reqs:{firstOnly:{},lastOnly:{}},requestId:0,action:function(c){var b={type:"post",url:null,data:null,dataType:"json",success:mfAjax.handler,error:mfAjax.handleError,complete:mfAjax.complete,cache:false,mfType:"",mfTypeId:"",mfRequestId:++mfAjax.requestId,mfCallbacks:[]};if(typeof(c.obj)=="object"){}if(typeof(c.url)!="undefined"){b.url=c.url}else{b.url=c.obj.href}if(typeof(c.data)!="undefined"){b.data=c.data}if(typeof(c.type)!="undefined"){switch(c.type){case"lastOnly":b.mfType="lastOnly";break;case"firstOnly":b.mfType="firstOnly";break;default:alert("Bad request type!");return}if(typeof(c.id)!="undefined"){b.mfTypeId=c.id}else{b.mfTypeId=b.url}}if(typeof(c.callback)!="undefined"){if(typeof(c.callback)=="function"){b.mfCallbacks=[c.callback]}else{b.mfCallbacks=c.callback}}if(typeof(c.data)!="undefined"){b.data=c.data}if(typeof(c.dataExtra)=="object"){for(var a in c.dataExtra){if(a.substring(0,1)=="#"){if($("#"+c.dataExtra[a]).attr("multiple")==true){if($("#"+c.dataExtra[a]).attr("type")=="select-multiple"){$("#"+c.dataExtra[a]+" option").each(function(){c.data[a.substring(1)+"["+$(this).val()+"]"]=$(this).attr("selected")==true?1:""})}else{if($("#"+c.dataExtra[a]).val()){c.data[a.substring(1)+"[]"]=$("#"+c.dataExtra[a]).val()}}}else{c.data[a.substring(1)]=$("#"+c.dataExtra[a]).val()}}}}mfAjax.sendRequest(b);return false},sendRequest:function(a){if(a.mfType=="firstOnly"&&mfAjax.reqs.firstOnly[a.mfTypeId]){return}var b=jQuery.ajax(a);if(a.mfType=="lastOnly"){if(mfAjax.reqs.lastOnly[a.mfTypeId]){mfAjax.reqs.lastOnly[a.mfTypeId].abort();mfAjax.endRequest()}mfAjax.reqs.lastOnly[a.mfTypeId]=b}if(a.mfType=="firstOnly"){mfAjax.reqs.firstOnly[a.mfTypeId]=b}++mfAjax.numberOfRequests;mfAjax.showCounter();$("#ajax_loading").show()},complete:function(a,b){},handler:function(data,textStatus){if(this.mfType=="lastOnly"){if(!mfAjax.reqs.lastOnly[this.mfTypeId]){return}delete mfAjax.reqs.lastOnly[this.mfTypeId]}if(this.mfType=="firstOnly"){delete mfAjax.reqs.firstOnly[this.mfTypeId]}mfAjax.endRequest();for(var i=0;i<this.mfCallbacks.length;++i){this.mfCallbacks[i](data)}if(data.handler){var handlerFunction=new Function("data",data.handler+"(data);");handlerFunction(data)}else{if(data.snippet){for(var i in data.snippet){mfAjax.setSnippet(i,data.snippet[i])}}if(data.select){for(var i in data.select){mfAjax.setSelect(i,data.select[i].options,data.select[i].selected)}}if(data.text){for(var i in data.text){mfAjax.setValue(i,data.text[i])}}if(data.show){mfAjax.setByFunction(data.show,"show")}if(data.hide){mfAjax.setByFunction(data.hide,"hide")}if(data.toggle){mfAjax.setByFunction(data.toggle,"toggle")}if(data.remove){mfAjax.setByFunction(data.remove,"remove")}if(data.addClass){mfAjax.setClass(data.addClass,"add")}if(data.removeClass){mfAjax.setClass(data.removeClass,"remove")}if(data.alert){for(var i in data.alert){alert(data.alert[i])}}if(data.callback){eval(data.callback.join(""))}}},handleError:function(a,c,b){mfAjax.endRequest()},endRequest:function(){if(--mfAjax.numberOfRequests==0){$("#ajax_loading").hide()}mfAjax.showCounter()},showCounter:function(){$("#id_counter").text(mfAjax.numberOfRequests)},setSnippet:function(a,b){$("#"+a).html(b)},setSelect:function(c,b,d){if(b){$("#"+c+" option").remove();for(var a in b){var e=document.createElement("option");e.value=a;e.appendChild(document.createTextNode(b[a]));$("#"+c).append(e)}if(d){$("#"+c).val(d)}}},setValue:function(b,a){$("#"+b).val(a)},setByFunction:function(c,a){if(c&&typeof(c)!="object"){c=new Array(c)}for(var b in c){if(a=="show"){$(c[b]).show()}else{if(a=="hide"){$(c[b]).hide()}else{if(a=="toggle"){$(c[b]).toggle()}else{if(a=="remove"){$(c[b]).remove()}}}}}},setClass:function(c,b){for(var a in c){if(b=="add"){$("#"+a).addClass(c[a])}else{if(b=="remove"){$("#"+a).removeClass(c[a])}}}}};function formTableCreateElement(c,f,d,b,e,a){$("#"+c).append(form_element);formTableReCalculateElement(c,f,d,b,e,a);return false}function formTableAddElement(e,c,g,d,b,f,a){$(e).parents("tr:first").after(form_element);formTableReCalculateElement(c,g,d,b,f,a);return false}function formTableRemoveElement(e,c,g,d,b,f,a){$(e).parents("tr:first").remove();formTableReCalculateElement(c,g,d,b,f,a);return false}function formTableReCalculateElement(h,f,a,l,k,j){var g=0;if(typeof(k)=="undefined"){k=0}if(typeof(j)=="object"){var d=new Object;var b="";var e;for(var c in j){d[c]=new RegExp("^"+j[c]+"$")}}$("#"+h).find("tr").each(function(){if(k<=0){g++;for(var m in f){$(this).find("[name*='"+a+f[m]+"']").each(function(){$(this).attr("id",l+f[m]+g);$(this).attr("name",a+f[m]+g+"]")})}if(d){$(this).find("td").each(function(){for(var n in d){b=$(this).html();e=b.match(d[n]);if(e&&typeof(e)=="object"){if(e.length<3){$(this).html(g)}else{$(this).html(b.replace(d[n],"$1 "+g))}}}})}}else{k--}});return false}jQuery.fn.extend({mfSelectAllOptions:function(){return $(this).find("option").each(function(){$(this).attr("selected",true)})},mfAppendSelectedOptions:function(a){$(this).find("option:selected").each(function(){if($(a).find("option[value="+$(this).val()+"]").length==0){$(this).appendTo(a)}});return true},mfCopySelectedOptions:function(a){$(this).find("option:selected").each(function(){if($(a).find("option[value="+$(this).val()+"]").length==0){$(this).clone().appendTo(a)}});return true},mfRemoveSelectedOptions:function(){$(this).find("option:selected").remove()}});$(function(){maminka.init()});var maminka={init:function(){maminka.requiredMark();this.hoverRightBox();this.becomeFans();this.buttonHover();this.mainMenuHover();this.loginButtonHover();this.serviceBoxControler();this.datePicker();this.printList();this.horoscope_detail();this.advisoryFakeForm();this.babyNameHove();this.iframeFix()},datePicker:function(){$(".datepicker").datepicker({showOn:"button",buttonImage:"/img/skins/default/ico/small_cal.png",buttonImageOnly:true,changeMonth:true,changeYear:true,firstDay:1,minDate:"-90y",maxDate:"+0d",yearRange:"-90:+90"})},requiredMark:function(){$("label.required").prepend("<span>*&nbsp;</span>")},hoverRightBox:function(){$(".right_box h3 img").each(function(){var a=$(this).attr("src").split(".");jQuery("<img>").attr("src",a[0]+"_on."+a[1]);$(this).mouseover(function(){var b=$(this).attr("src").split(".");$(this).attr("src",b[0]+"_on."+b[1])});$(this).mouseout(function(){var b=$(this).attr("src").split("_on.");$(this).attr("src",b[0]+"."+b[1])})})},becomeFans:function(){$("#become_fans img").each(function(){$(this).mouseover(function(){var a=$(this).attr("src").split(".");$(this).attr("src",a[0]+"_on."+a[1])});$(this).mouseout(function(){var a=$(this).attr("src").split("_on.");$(this).attr("src",a[0]+"."+a[1])})})},buttonHover:function(){$("div.button_case").each(function(){$(this).mouseover(function(){$(this).addClass("hover")});$(this).mouseout(function(){$(this).removeClass("hover")})})},mainMenuHover:function(){$("ul#main_menu li.main_menu").each(function(){var a=false;$(this).mouseover(function(){if($(this).hasClass("active")){$(this).removeClass("active");a=true}$(this).addClass("hover");$("li#"+$(this).attr("id")+" ul.sub_menu").css("display","block")});$(this).mouseout(function(){if(a==true){$(this).addClass("active");a=false}$(this).removeClass("hover");$("li#"+$(this).attr("id")+" ul.sub_menu").css("display","none")})})},loginButtonHover:function(){$("#short_buttons img").each(function(){$(this).mouseover(function(){var a=$(this).attr("src").split(".");$(this).attr("src",a[0]+"_on."+a[1])});$(this).mouseout(function(){var a=$(this).attr("src").split("_on.");$(this).attr("src",a[0]+"."+a[1])})})},serviceBoxControler:function(){$("#box_social_left ul li").css("display","none");$("#box_social_left ul li:first").css("display","block");$("#box_social_right ul li").css("display","none");$("#box_social_right ul li:first").css("display","block");$("#box_social_left ul").mouseover(function(){$("#box_social_left ul li").css("display","block")});$("#box_social_left ul").mouseout(function(){$("#box_social_left ul li").css("display","none");$("#box_social_left ul li:first").css("display","block")});$("#box_social_right ul").mouseover(function(){$("#box_social_right ul li").css("display","block")});$("#box_social_right ul").mouseout(function(){$("#box_social_right ul li").css("display","none");$("#box_social_right ul li:first").css("display","block")})},printList:function(){$("ul#print_sel li").css("display","none");$("ul#print_sel li:first").css("display","list-item");$("ul#print_sel li").mouseover(function(){$("ul#print_sel li").css("display","list-item")});$("ul#print_sel").mouseout(function(){$("ul#print_sel li").css("display","none");$("ul#print_sel li:first").css("display","list-item")})},horoscope_detail:function(){$("#show_horo").click(function(){$("#horoscope_text").animate({height:"20em"},1500);$("#show_horo").css("display","none")})},advisoryFakeForm:function(){$("div#fake_form").html('<table><tr><td class="td_left"> Dotaz </td><td><textarea rows="1" cols="99">Vložte dotaz</textarea></td></tr></table>');$("div#fake_form table tr td textarea").click(function(){$("div#fake_form").css("display","none");listCommentControl.fulltextSearch();$("textarea#frmaddForm-content").focus();$("textarea#frmaddForm-content").setCursorPosition(1)})},babyNameHove:function(){$("table.babyname-alphabet-filter td").each(function(){$(this).mouseover(function(){$(this).addClass("hover")});$(this).mouseout(function(){$(this).removeClass("hover")})})},iframeFix:function(){$("iframe").each(function(){$("iframe body").attr("style","background:red")})}};var lightBox={active:false,dialogObj:false,handleScroll:true,show:function(a,b){if(this.active==true){return false}if($.browser.msie&&$.browser.version=="6.0"){$("select[name!='id_type']").each(function(){if($(this).is(":visible")){$(this).data("dialog_hide",true);$(this).hide()}});$("#dialog select").each(function(){$(this).show()})}this.active=true;if(typeof(a)=="object"){this.dialogObj=a}else{this.dialogObj=false}if(typeof(b)=="boolean"){this.handleScroll=b}else{this.handleScroll=true}this.resize();$("#overlay").show();$(window).resize(function(){lightBox.resize()});if(this.handleScroll){$(document).bind("scroll",function(){lightBox.move()})}$(document).keydown(function(c){lightBox.keyDown(c)});return false},keyDown:function(a){if(a.keyCode==27){lightBox.close()}if(a.keyCode==37&&typeof(lightBox.dialogObj.navigateLeft)=="function"){lightBox.dialogObj.navigateLeft()}if(a.keyCode==39&&typeof(lightBox.dialogObj.navigateRight)=="function"){lightBox.dialogObj.navigateRight()}},resize:function(){$("#overlay").width($(document).width());$("#overlay").height($(document).height());this.move()},move:function(){if(typeof(this.dialogObj)!="object"){return}var a=Math.round($(window).width()/2)-($(this.dialogObj.lightBoxIdObj).width()/2);var b=Math.round($(window).height()/2)-($(this.dialogObj.lightBoxIdObj).height()/2);if(a<0){a=5}if(b<0){b=5}b+=$(document).scrollTop();$(this.dialogObj.lightBoxIdObj).css({left:a+"px",top:b+"px"})},close:function(){if(this.active){this.active=false;if($.browser.msie&&$.browser.version=="6.0"){$("select").each(function(){if($(this).data("dialog_hide")==true){$(this).data("dialog_hide",false);$(this).show()}})}if(typeof(this.dialogObj.close)=="function"){this.dialogObj.close()}$("#overlay").hide();$(window).unbind("resize");$(document).unbind("keydown");$(document).unbind("scroll")}this.dialogObj=false;return false}};var dialog={width:400,height:250,active:false,lightBoxIdObj:"#dialog",show:function(b,a){if(typeof(b)!="undefined"){this.width=b}if(typeof(a)!="undefined"){this.height=a}this.active=true;$(this.lightBoxIdObj).width(this.width);$(this.lightBoxIdObj).height(this.height);$(this.lightBoxIdObj).show();var c=$(".dialog_content_help",this.lightBoxIdObj);if(c.length>0){$("#dialog_help_ico").show()}else{$("#dialog_help_ico").hide()}lightBox.show(this)},showHelp:function(){$("#dialog_help").html($("#dialog .dialog_content_help").html());$("#dialog_content").hide();$("#dialog_help").show()},hideHelp:function(){$("#dialog_help").hide();$("#dialog_content").show()},close:function(){if(this.active){this.active=false;$(this.lightBoxIdObj).hide();lightBox.close()}return false}};var imagePreview={width:835,height:660,active:false,lightBoxIdObj:"#dialog_image",lightBoxIdContent:"#dialog_image_content",lightBoxIdTitle:"#dialog_image_title",showImage:function(a){this.active=true;$(this.lightBoxIdObj).width(this.width);$(this.lightBoxIdObj).height(this.height);$(this.lightBoxIdContent).html("");$(this.lightBoxIdContent).append('<div class="img"><img src="'+a+'" onclick="return lightBox.close()"></div>');$(this.lightBoxIdObj).show();return lightBox.show(this,false)},makeTitle:function(e,b,d,a){var c="";if(typeof(e)!="undefined"){c='<span class="image_tile">'+e+"</span>";if(typeof(a)!="undefined"){c+=" ["+a+"]"}}if(typeof(b)!="undefined"||typeof(d)!="undefined"){c+="<br />"}if(typeof(b)!="undefined"){c+="<i>autor:</i> "+b}if(typeof(d)!="undefined"){if(typeof(b)!="undefined"){c+=", "}c+="<i>zdroj:</i> "+d}return c},show:function(b,d,a,c){this.showNavigate(false,false);$(this.lightBoxIdTitle).html(this.makeTitle(d,a,c));return this.showImage(config.storagePublicUrl+b)},showPrivate:function(b,d,a,c){this.showNavigate(false,false);$(this.lightBoxIdTitle).html(this.makeTitle(d,a,c));return this.showImage(b)},showNavigate:function(b,a){if(b==true){$("#dialog_image_nav_left").show()}else{$("#dialog_image_nav_left").hide()}if(a==true){$("#dialog_image_nav_right").show()}else{$("#dialog_image_nav_right").hide()}},close:function(){if(this.active){this.active=false;$(this.lightBoxIdTitle).html("");$(this.lightBoxIdObj).hide();lightBox.close()}return false}};var galleryPreview={width:835,height:660,active:false,lightBoxIdObj:"#dialog_image",lightBoxIdContent:"#dialog_image_content",lightBoxIdTitle:"#dialog_image_title",carouselList:null,carouselIndex:null,show:function(b,a){this.carouselList=b;this.carouselIndex=a;this.active=true;$(this.lightBoxIdObj).width(this.width);$(this.lightBoxIdObj).height(this.height);this.showCarouselItem();$(this.lightBoxIdObj).show();return lightBox.show(this,false)},showCarouselItem:function(){$(this.lightBoxIdContent).html("");var b=true;var a=true;if(this.carouselIndex==0){b=false}if((parseInt(this.carouselIndex)+1)==this.carouselList.length){a=false}imagePreview.showNavigate(b,a);$(this.lightBoxIdTitle).html(imagePreview.makeTitle(this.carouselList[this.carouselIndex].title,this.carouselList[this.carouselIndex].author,this.carouselList[this.carouselIndex].source,(parseInt(this.carouselIndex)+1)+"/"+this.carouselList.length));$(this.lightBoxIdContent).append('<div class="img"><img src="'+this.carouselList[this.carouselIndex].orig+'" onclick="return lightBox.close()"></div>')},navigateLeft:function(a){if(this.carouselIndex){this.carouselIndex--}if(typeof(a)=="object"){a.blur()}this.showCarouselItem()},navigateRight:function(a){if(this.carouselIndex<this.carouselList.length-1){this.carouselIndex++}if(typeof(a)=="object"){a.blur()}this.showCarouselItem()},navigateOver:function(a){$(a).removeClass("dialog_image_nav")},navigateOut:function(a){$(a).addClass("dialog_image_nav")},close:function(){if(this.active){this.active=false;$(this.lightBoxIdObj).hide();lightBox.close()}return false}};var rightControl={id:false,obj:false,name:false,type:false,show:function(d,e,a,b){this.id=e;this.obj=d;this.name=a;this.type=b;var c=$("#"+e).val();return mfAjax.action({obj:d,url:link.rightControl,data:{id:e,name:a,value:c,type:b}})},showDialog:function(){this.idRightChange();dialog.show()},idRightChange:function(){var a=$("#frmrightForm-id_right").val();if(a=="friend"){$("#rightControl-rel").show()}else{$("#rightControl-rel").hide()}},save:function(){var c=$("input[name*='rel_right']:checked").serializeArray();var a=new Array();var d=$("#frmrightForm-id_right").val();for(var b in c){a.push(c[b]["name"])}return mfAjax.action({obj:this.obj,url:link.rightControlSave,data:{id:this.id,id_right:d,rel_right:a.join(",")}})},handleSave:function(a,b){$("#"+this.id+"-title").html(b);$("#"+this.id).val(a);this.close()},close:function(){this.id=false;this.obj=false;this.name=false;this.type=false;return dialog.close()}};var diary={elId:"#frmdiaryForm-content",wiki:{b:"**",i:"//",u:"__"},addSmiley:function(a){return textAreaControl.addSmiley(this.elId,a)},addFormat:function(a){return textAreaControl.formatSelected(this.elId,this.wiki[a],this.wiki[a])},deleteDiary:function(){return true}};var textAreaControl={scrollTop:false,selection:null,addSmiley:function(b,c){var a=$(c).find("img").attr("title");this.saveScroll(b);this.saveSelection(b);$(b).replaceSelection(" "+a+" ");this.restoreScroll(b);this.selection.start+=2+a.length;this.selection.end+=2+a.length;this.setSelection(b);return false},saveScroll:function(a){this.scrollTop=$(a).scrollTop()},restoreScroll:function(a){if(this.scrollTop){$(a).scrollTop(this.scrollTop)}},saveSelection:function(a){this.selection=$(a).getSelection()},setSelection:function(a){if(this.selection.start){$(a).setSelection(this.selection.start,this.selection.end)}},formatSelected:function(a,e,c){this.saveScroll(a);var d=$(a).getSelection().text;if(d==""){d=" "}var b=e+d;if(typeof(c)!="undefined"){b+=c}$(a).replaceSelection(b);this.restoreScroll(a);return false}};var friend={editGroup:function(a){return mfAjax.action({obj:null,url:link.friendEditGroup,data:{id_friend:a}})},showEditGroup:function(){dialog.show()},saveGroup:function(){var d=$("input[name*='group[']:checked").serializeArray();var a=new Array();var c=$("input[name='id_friend']").val();for(var b in d){a.push(d[b]["name"])}return mfAjax.action({obj:null,url:link.friendSaveGroup,data:{id_friend:c,group:a.join(",")}})},deleteGroup:function(a,c){var b=$("#frmgroupFilterForm-id_group").val();if(!b){return false}else{return dialogConfirm.form(a,c)}},close:function(){return dialog.close()}};var searchControl={select:function(b,a){return mfAjax.action({obj:this.obj,url:link.showSiteSearch,data:{search:a,query:$("#frmsearchControlForm_header-query").val()}})},onFocus:function(){$("#frmsearchControlForm_header-query").addClass("active");return false},onBlur:function(){var a=$("#frmsearchControlForm_header-query");if(a.val()==""){a.removeClass("active")}return false}};var profile={babyObj:false,init:function(){$(document).ready(function(){$("#frmEditForm-id_group").bind("change",profile.changeBabyBirthday);profile.changeBabyBirthday();$("input.datepicker").datepicker({duration:"full",changeMonth:true,changeYear:true,firstDay:1,minDate:"-40y",maxDate:"+0d",yearRange:"-40:+40"})})},changeBabyBirthday:function(){var a=$("#frmEditForm-id_group").val();if(a=="pregnant"){$("#baby_birthday").show()}else{$("#baby_birthday").hide()}},removeBaby:function(a){this.babyObj=a;return dialogConfirm.clb("profile.handleRemoveBaby()",dictionary.profileRemoveBaby)},handleRemoveBaby:function(){var a=profile.babyObj;profile.babyObj=false;if(a){return formTableRemoveElement(a,"form_table",form_elements,form_namePrefix,form_idPrefix,form_ignoreRow,form_labels)}return false},addChild:function(){formTableCreateElement("form_table",form_elements,form_namePrefix,form_idPrefix,0,form_labels);maminka.datePicker();return false}};var hospital={init:function(){$(document).ready(function(){hospitalMap.initialize()})},toggleAdvencedBasic:function(){$("#searchAdvanced").toggle("fast",function(){if($(this).is(":visible")){$("#linkAdv").text(dictionary.simpleSearch);$("#firstSubmit").hide()}else{$("#linkAdv").text(dictionary.advancedSearch);$("#firstSubmit").show()}})}};var hospitalMap={initialize:function(){if(GBrowserIsCompatible()){this.map=new GMap2(document.getElementById("map_canvas"));this.map.setCenter(new GLatLng(hospitalParam.latitude,hospitalParam.longitude),hospitalParam.zoom);this.map.addControl(new GSmallMapControl());this.map.addControl(new GMapTypeControl());for(var a in hospitalData){this.createHospital(hospitalData[a])}}},createHospital:function(c){var a=new GLatLng(c.latitude,c.longitude);var b=new GMarker(a);hospitalMap.map.addOverlay(b);GEvent.addListener(b,"click",function(){hospitalMap.map.openInfoWindowHtml(a,c.titleHtml)})}};var babyName={hideName:function(a){$("#name_"+a).hide();return true},removeFromPoll:function(a){mfAjax.action({obj:this,url:link.removeFromPoll,data:{nameId:a}});babyName.hideName(a);return false},toggleAdvencedBasic:function(){$("#searchAdvanced").toggle("fast",function(){if($(this).is(":visible")){$("#linkAdv").text(dictionary.simpleSearch);$("#firstSubmit").hide()}else{$("#linkAdv").text(dictionary.advancedSearch);$("#firstSubmit").show()}})}};var flashMessage={active:false,lightBoxIdObj:"#dialog_flash",lightBoxIdContent:"#dialog_flash_content",show:function(b,a){if(lightBox.active){alert(b);return false}if(this.active){return false}this.active=true;$(this.lightBoxIdContent).html(b);$(this.lightBoxIdObj).show();return lightBox.show(this)},close:function(){if(this.active){this.active=false;$(this.lightBoxIdObj).hide();lightBox.close()}return false}};var dialogConfirm={active:false,lightBoxIdObj:"#dialog_confirm",lightBoxIdContent:"#dialog_confirm_content",formObj:false,linkObj:false,clbObj:false,form:function(a,b){if(this.active){return true}this.active=true;this.formObj=a;$(this.lightBoxIdContent).html(b);$(this.lightBoxIdObj).show();return lightBox.show(this)},clb:function(b,a){if(this.active){return true}this.active=true;this.clbObj=b;$(this.lightBoxIdContent).html(a);$(this.lightBoxIdObj).show();return lightBox.show(this)},yes:function(){if(this.formObj){if($(this.formObj).attr("tagName")=="FORM"){return $(this.formObj).submit()}else{return this.formObj.click()}}else{if(this.clbObj){eval(this.clbObj);this.close()}else{if(this.linkObj){window.location=this.linkObj.href}}}return false},close:function(){if(this.active){this.active=false;$(this.lightBoxIdObj).hide();lightBox.close()}this.formObj=false;this.linkObj=false;this.clbObj=false;return false},link:function(b,a){if(this.active){return true}if($.browser.msie){return confirm(a)}this.active=true;this.linkObj=b;$(this.lightBoxIdContent).html(a);$(this.lightBoxIdObj).show();return lightBox.show(this)}};var articleControl={init:function(){$(document).ready(function(){articleControl.start()})},start:function(){var c=3000;var b=$(".hp_left_box .hp_in_box").size()*1;if(b>1){$(".hp_left_box #box_1").addClass("active");$("div.hp_in_box").mouseover(function(){if($(this).hasClass("active")!=true){if($(this).hasClass("commercial")==true){$(this).addClass("commercial_hover")}$(this).addClass("hover")}number=$(this).attr("id").substr(4,5);$(".hp_right_box img").css("opacity","0");$(".hp_left_box .hp_in_box").removeClass("active");$(this).addClass("active");$("#hp_img_"+number).css("opacity","1");clearInterval(MyInterval)});$("div.hp_in_box").mouseout(function(){if($(this).hasClass("hover")==true){if($(this).hasClass("commercial_hover")==true){$(this).removeClass("commercial_hover")}$(this).removeClass("hover")}$(".hp_right_box img").css("opacity","0");number=$(this).attr("id").substr(4,5);$("#hp_img_"+number).css("opacity","1");number=0;MyInterval=window.setInterval(a,3000)});function a(){var e=$(".hp_left_box .active").attr("id").substr(4,5);e=(e*1)+1;var d=e-1;b=$(".hp_left_box .hp_in_box").size()*1;if(e==b+1){e=1;d=b}$("#hp_img_"+d).css("z-index","0");$("#hp_img_"+e).css("z-index","1");$("#hp_img_"+d).animate({opacity:0},900);$("#hp_img_"+e).animate({opacity:1},900);$(".hp_left_box #box_"+e).addClass("active");$(".hp_left_box #box_"+d).removeClass("active")}MyInterval=window.setInterval(a,3000)}else{$(".hp_left_box #box_1").addClass("active")}}};var CommentReplyControl={elId:"#frmreplyComment-text",init:function(){$(document).ready(function(){CommentReplyControl.start()})},start:function(){multi=$("#frmreplyComment-replyCommentStats").val();$("#frmreplyComment-replyCommentCode").val(parseInt(multi.substring(0,1))*parseInt(multi.substring(1,2)));$("#replyCommentForm").hide();slidedUp=0;NumberOfElements=$(".discusion_list_all .main_box_in > div.discusion_list").size();for(var a=0;a<NumberOfElements;a++){$(".discusion_list_all .main_box_in  > div.discusion_list:eq("+a+")").attr("id","box"+a);$(".discusion_list_all .main_box_in  #box"+a+" .get-reaction").attr("id",a)}$(".discusion_list_all .main_box_in  .get-reaction").click(function(){selected=$(this).attr("id");title=("Re: "+$("#box"+selected+" h3").text());$("#frmreplyComment-title").val(title);$(".discusion_list_all .main_box_in  div.discusion_list").removeClass("selected");$(".discusion_list_all .main_box_in  #box"+selected).addClass("selected");if($(this).hasClass("selected")){$("#replyCommentForm").slideUp();$(".get-reaction").removeClass("selected");$(".discusion_list_all .main_box_in  div.discusion_list").removeClass("selected")}else{$(".get-reaction").removeClass("selected");$("#replyCommentForm").hide();$("#replyCommentForm").appendTo("#box"+selected);$("#replyCommentForm").slideDown();$("#box"+selected+" .get-reaction").addClass("selected")}return false});$("#frmreplyComment-cancel").click(function(){$("#replyCommentForm").slideUp();$(".get-reaction").removeClass("selected");$(".discusion_list_all .main_box_in  div.discusion_list").removeClass("selected");return false})},addSmiley:function(a){return textAreaControl.addSmiley(this.elId,a)}};var watchDiscussion={setWatch:function(b,a){mfAjax.action({obj:this,url:link.setWatchDiscussion,data:{id:b,type:a}});return false},showDialog:function(){dialog.show();return false},save:function(){mfAjax.action({obj:null,url:link.addWatchDiscussion,data:{id:$("#frmsetWatchForm-modeId").val(),type:$("#frmsetWatchForm-type").val(),notifyType:$("#frmsetWatchForm-notifyType").val()}});this.close();return false},close:function(){dialog.close();return false}};var addCommentControl={elId:"#frmaddComment-text",setParentToComment:function(a){$("#frmreplyComment-parent_id").val(a);$("#replyCommentForm").show();return false},hideReplyForm:function(){$("#replyCommentForm").hide();return false},offendingNotify:function(){alert("TODO");lightBox.show(this);$("#offendingNotify").show();return false},addSmiley:function(a){return textAreaControl.addSmiley(this.elId,a)}};var listCommentControl={init:function(){$(document).ready(function(){if(!$("#frmSearchForm-text").val()){listCommentControl.hideFulltextSearch()}multi=$("#frmaddComment-addCommentStats").val();$("#frmaddComment-addCommentCode").val(parseInt(multi.substring(0,1))*parseInt(multi.substring(1,2)))})},checkComment:function(a,c){var b="";if($("#checkCommentId_"+c).is(":checked")){b="on"}mfAjax.action({obj:this,url:link.checkComment,data:{discussionId:a,commentId:c,isChecked:b}})},offendingConfirm:function(a){return dialogConfirm.clb("listCommentControl.offendingSend("+a+")",dictionary.offendingConfirm)},offendingSend:function(a){mfAjax.action({obj:this,url:link.commentOffendingNotify,data:{id:a}})},fulltextSearch:function(){if($("#list-comment-fulltext-add").is(":visible")){$("#list-comment-fulltext-add").slideUp()}else{$("#list-comment-fulltext-add").slideDown();$("#list-comment-fulltext-add table textarea:first").focus()}return false},hideFulltextSearch:function(){}};var ratingControl={controls:{},controlsRating:{},controlsTimeOut:null,controlsTimeOutId:null,init:function(b,a){this.controls[b]=false;this.controlsRating[b]=a;$(document).ready(function(){ratingControl.start()})},start:function(){for(var a in this.controls){if(this.controls[a]!=true){this.controls[a]=true;$("#"+a+" a").mouseover(ratingControl.slide);$("#"+a).mouseout(ratingControl.slideOffTimeOut)}}},slide:function(){if(ratingControl.controlsTimeOut){window.clearTimeout(ratingControl.controlsTimeOut);ratingControl.controlsTimeOut=null}var c=0;var b=$(this).text();var a=$(this).parent().parent().find("li");a.removeClass("selected");a.slice(c,b).addClass("selected")},slideOffTimeOut:function(){if(ratingControl.controlsTimeOut){window.clearTimeout(ratingControl.controlsTimeOut);ratingControl.controlsTimeOut=null}ratingControl.controlsTimeOutId=$(this).attr("id");ratingControl.controlsTimeOut=window.setTimeout(ratingControl.slideOff,200)},slideOff:function(){if(ratingControl.controlsTimeOutId){$("#"+ratingControl.controlsTimeOutId+" li").removeClass("selected");var a=ratingControl.controlsRating[ratingControl.controlsTimeOutId];if(a>0){$("#"+ratingControl.controlsTimeOutId+" li").slice(0,a).addClass("selected")}}ratingControl.controlsTimeOutId=null}};var message={userIconActive:false,elId:"#frmmessageForm-text",init:function(){$(function(){$(".friend-list-level2").bind("mouseover",function(a){message.showUserIcon($(this))});$(".friend-list-level1,.friend-list-level2").bind("mouseout",message.hideUserIcon)})},deleteMessage:function(a){mfAjax.action({obj:this,url:link.messageDelete,data:{messageId:a}});$("#message_"+a).remove();return false},deleteMessages:function(){$("input[id^='message_del_']:checked").each(function(){message.deleteMessage($(this).val())});return false},selectGroup:function(a){var b=$("input[name='recipients["+a+"]']").is(":checked");$("input[name^='recipients_"+a+"']").attr("checked",b)},toggleGroup:function(a){$("input[name='recipients["+a+"]']").attr("checked",false)},checkRecipients:function(){if($("input[name^='recipients_']:checkbox:checked").length==0){flashMessage.show("Musíte vybrat alespoň jednoho příjemce vzkazu","error");return false}return true},showUserIcon:function(a){$("#message-choose-group .choose-group-over").removeClass("choose-group-over");$(a).addClass("choose-group-over");var b=$(a).find("input:checkbox").attr("mfImage");if(b){userIconUrl=config.storagePublicUrl+b}else{userIconUrl=config.baseUri+"img/default-user.png"}if(!message.userIconActive){message.userIconActive=true;$("#userIcon").show()}$("#userIcon").attr("src",userIconUrl)},hideUserIcon:function(){if(message.userIconActive){$("#message-choose-group .choose-group-over").removeClass("choose-group-over");message.userIconActive=false;$("#userIcon").hide()}},addSmiley:function(a){return textAreaControl.addSmiley(this.elId,a)}};var poll={vote:function(a,d){var c=new Array;var b=new RegExp("^options\\[(\\d+)\\]$");$("#"+a+" :checkbox:checked").each(function(){var e=$(this).attr("name").match(b);c.push(e[1])});if(c.length==0){alert("Nevybrala jste žádnou odpověď!")}else{mfAjax.action({obj:this,url:link.pollVote,data:{poll_id:d,options:c.toString()}})}return false},voteOne:function(b,a){mfAjax.action({obj:this,url:link.pollVote,data:{poll_id:b,option:a}});return false}};var calendar={calendarData:null,calendarDataByDate:null,calendarForm:null,exclusiveFieldSets:{birthday:["name","birth_date"],menstruation:["cycle","last_menstruation_date"]},commonFieldSets:{dateFields:["date_from","date_to"],timeFields:["time_from","time_to"],contentFields:["subject","content"]},init:function(b,a){this.calendarData=b;this.calendarDataByDate=a;$(function(){calendar.calendarForm=$("#calendar-form");$("#calendar-view .day-cell").dblclick(function(){calendar.showDay(this);return false});$("#calendar-view .show-day").click(function(){calendar.showDay(this);return false});$("#calendar .show-event").live("click",function(){calendar.showEvent(this);return false});$("#calendar .delete-event").live("click",function(){return confirm(dictionary.deleteEventConfirm)});$("#calendar-form select[name=id_type]").change(function(){calendar.enableFields($(this).val());return false});$("#calendar-detail .add-event").click(function(){calendar.showEvent(null);return false});$("#calendar-detail .close-detail").click(function(){lightBox.close();return false});$("#calendar-detail table td.data").mouseover(function(){$(this).addClass("active")}).mouseout(function(){$(this).removeClass("active")});$("#calendar-form .for-clone").parents("tr").hide();$("#calendar-form input[name=cancel]").click(function(){lightBox.close();return false})})},getHour:function(b){var a=b.split(":");return parseInt(a[0],10)},getMin:function(b){var a=b.split(":");return parseInt(a[1],10)},showDay:function(h){var t=$(".full-date",h).text();var k=$("#calendar-detail");var a=$("table",k);$(".cur-date",k).text(t);$("tr",a).removeClass("busy");$("td",a).text("");for(var o in this.calendarDataByDate[t]){var q=this.calendarData[o];var f=q.date_from==q.date_to;var r=(!f)&&q.date_from==t;var l=(!f)&&q.date_to==t;var j=q.time&&(f||r||l);var d=$("#all-day",a);var m="";if(j){var n=l?0:this.getHour(q.time_from);var e=r?24:this.getHour(q.time_to);var c=this.getMin(q.time_to);m='<span class="time">'+(f||r?q.time_from:"")+" - "+(f||l?q.time_to:"")+"</span>";d=$("#hour-"+n,a);for(var g=n;g<e||(g==e&&c>0);g++){$("#hour-"+g).addClass("busy")}}var p='<div class="event type-fg-'+q.id_type+'">'+m+'<span class="subject">'+q.subject+'</span><span class="content">'+q.content+"</span></div>";$(".data",d).append($(p));$(".type",d).append($('<div class="type-bg-'+q.id_type+'">&nbsp;</div>'));var s=$("#calendar-actions div").get(0).cloneNode(true);$("span.event-id",s).text(o);var b=$("a.delete-event",s);if(q.id_type!="birthday_baby"){b.attr("href",b.attr("href")+"?eventId="+o)}else{b.remove()}$(".action",d).append($(s))}this.displayDetail();return false},displayDetail:function(){var a=$("#calendar-detail");a.addClass("opened").show();lightBox.show({active:true,lightBoxIdObj:"#"+a.attr("id"),close:function(){this.active=false;a.removeClass("opened").hide();lightBox.close()}})},changeFieldsVisibility:function(d,a){for(var b in d){var c=$("tr:has(:input[name="+d[b]+"])",this.calendarForm);if(a){c.show()}else{c.hide()}}},enableFields:function(c){for(var a in calendar.commonFieldSets){this.changeFieldsVisibility(this.commonFieldSets[a],false)}for(var a in calendar.exclusiveFieldSets){this.changeFieldsVisibility(this.exclusiveFieldSets[a],false)}switch(c){case"birthday":this.changeFieldsVisibility(this.exclusiveFieldSets.birthday,true);break;case"menstruation":this.changeFieldsVisibility(this.exclusiveFieldSets.menstruation,true);break;default:for(var a in this.commonFieldSets){this.changeFieldsVisibility(this.commonFieldSets[a],true)}}var b=$("#calendar-detail .cur-date").text();$("input[name=date_from][value=]",this.calendarForm).val(b);$("input[name=date_to][value=]",this.calendarForm).val(b);$("input[name=birth_date][value=]",this.calendarForm).val(b)},populateSelect:function(b){var a=$("select[name=id_type]",this.calendarForm);$("option",a).remove();$("select[name="+b+"] option",this.calendarForm).each(function(){$(this.cloneNode(true)).appendTo(a)});a.show()},showEvent:function(c){var h=$("select[name=id_type]",this.calendarForm);$("span.event-title",this.calendarForm).remove();for(var g in this.exclusiveFieldSets){this.changeFieldsVisibility(this.exclusiveFieldSets[g],false)}for(var g in this.commonFieldSets){this.changeFieldsVisibility(this.commonFieldSets[g],false)}$("input[type=text], input[name=id], textarea",this.calendarForm).val("");$("input[type=text], textarea",this.calendarForm).removeAttr("disabled");$("input[name=save]",this.calendarForm).show();$("h3",this.calendarForm).hide();if(c){$("h3.event-detail",this.calendarForm).show();var a=$(".event-id",c).text();var b=this.calendarData[a];if($("select[name=change_id_type] option[value="+b.id_type+"]").length==0){h.hide();if(b.id_type=="delivery"||b.id_type=="delivery_temporary"){var e=$(c).parent().find(".full-date").text();var f=this.calendarDataByDate[e][b.id]["subject_add"];h.parent("td").append($('<span class="event-title">'+f+". "+b.id_type_title+'<br /><br /><a href="'+link.articleAge.replace("mdz-age-mdz",(100+parseInt(f)))+'" title="">'+dictionary.calendarDelivaryLink+"</a></span>"))}else{h.parent("td").append($('<span class="event-title">'+b.id_type_title+"</span>"))}}if($("select[name=add_id_type] option[value="+b.id_type+"]").length==0){$("input[type=text], textarea",this.calendarForm).attr("disabled","disabled");$("input[name=save]",this.calendarForm).hide()}for(var d in this.calendarData[a]){$(":input[name="+d+"]",this.calendarForm).val(b[d])}switch(b.id_type){case"birthday":case"birthday_baby":this.changeFieldsVisibility(this.exclusiveFieldSets.birthday,true);$("input[name=name]",this.calendarForm).val(b.subject);$("input[name=birth_date]",this.calendarForm).val(b.date_from);break;case"menstruation":this.changeFieldsVisibility(this.exclusiveFieldSets.menstruation,true);break;case"ovulation":break;case"delivery":break;case"delivery_temporary":break;default:for(var g in this.commonFieldSets){this.changeFieldsVisibility(this.commonFieldSets[g],true)}this.populateSelect("change_id_type")}h.val(b.id_type)}else{$("h3.new-event",this.calendarForm).show();this.populateSelect("add_id_type");this.enableFields(h.val())}var j=$("#calendar-detail");if(j.hasClass("opened")){this.calendarForm.addClass("reopen");lightBox.close()}this.calendarForm.show();lightBox.show({active:true,lightBoxIdObj:"#"+calendar.calendarForm.attr("id"),close:function(){this.active=false;calendar.calendarForm.hide();lightBox.close();if(calendar.calendarForm.hasClass("reopen")){calendar.calendarForm.removeClass("reopen");setTimeout(function(){calendar.displayDetail()},10)}}})}};var advisory={elId:"#frmaddForm-content",checkQA:function(a,c){var b="";if($("#checkQAId_"+c).is(":checked")){b="on"}mfAjax.action({obj:this,url:link.checkAdvisoryQA,data:{advisoryId:a,QAId:c,isChecked:b}})},addSmiley:function(a){return textAreaControl.addSmiley(this.elId,a)}};var showWarBox={init:function(){$(document).ready(function(){showWarBox.start()})},start:function(){$(".war .hide").hide();$(".war .header").append(" <a href='' id='showWarCLick'>Zobraz více</a>");$("#showWarCLick").toggle(function(){$(".war .hide").slideDown();$(".war .header a").text("Schovej více")},function(){$(".war .hide").slideUp();$(".war .header a").text("Zobraz více")})}};var recommend={sendMessage:function(a){return mfAjax.action({obj:null,url:link.recommendSendMessage,data:{url:link.linkThis,backTo:link.linkBackTo,type:a}})},sendMail:function(a){return mfAjax.action({obj:null,url:link.recommendSendMail,data:{url:link.linkThis,backTo:link.linkBackTo,type:a}})},showMessage:function(){dialog.show(700,400)},showMail:function(){dialog.show(700,450)}};var Facebook={userMessageText:"",title:"",text:"",link:"",clickLogin:false,init:function(a,e,d,b,c){this.title=e;this.text=d;this.link=b;this.userMessageText=c;FB.init(a,"/xd_receiver.htm",{ifUserConnected:Facebook.onConnected,ifUserNotConnected:Facebook.onNotConnected})},onNotConnected:function(){$("#facebook-loader").hide();$("#facebook-notConnected").show();$("#facebook-connected").hide()},onConnected:function(){if(clickLogin){Facebook.callPublish()}else{$("#facebook-notConnected").hide();$("#facebook-loader").hide();$("#facebook-connected").show()}},callPublish:function(){$("#facebook-connected").hide();$("#facebook-continue").hide();$("#facebook-loader").show();var d=this.title;var c=this.text;var b=this.userMessageText;var a=this.link;FB.ensureInit(function(){FB.Connect.streamPublish("",{name:d,href:a,description:c,media:[{type:"image",src:"http://www.maminka.cz/img/logos/maminka-cz.png",href:a}]},null,"",b,function(e,f,g){$("#facebook-loader").hide();$("#facebook-continue").show();if(e){window.location=a}})})},clickLogin:function(){clickLogin=true;$("#facebook-loader").show();$("#facebook-notConnected").hide();$("#facebook-continue").hide()}};jQuery.fn.extend({showStickyLeaderboard:function(){var a="#all-page";var e=$("#adblock-leaderboard");var d=e.position().top;$("div#adblock-leaderboard-space").css({display:"block",height:$("div#adblock-leaderboard").height()});var b=($.browser.msie&&$.browser.version<7?0:1);$(a).css("padding-top",e.outerHeight()+"px");e.css({position:(b?"fixed":"absolute"),top:d+"px"});if(b){return}var c=function(){if(!e.hasClass("moving")){e.addClass("moving").animate({top:d+$(window).scrollTop()+"px"},{speed:"fast",complete:function(){e.removeClass("moving");c()}})}};$(window).scroll(c)},closeStickyLeaderboard:function(){var a="#all-page";$("#adblock-leaderboard").css({position:"static",top:0});$("div#adblock-leaderboard-space").hide();$(a).animate({paddingTop:"0px"},{speed:"fast"})},showStickySkyscraper:function(){var c=$("#adblock-skyscraper");var d=c.position().top;var b=0;var a=function(){var f=$("#content").height()-c.height()-1;var e=Math.min(f,Math.max(b,$(window).scrollTop()-d));if(!c.hasClass("moving")){c.addClass("moving").animate({marginTop:e+"px"},{speed:"fast",complete:function(){$("#adblock-skyscraper").removeClass("moving");a()}})}};$(window).scroll(a)}});var timeline={setAnimateSpeed:100,setHoverDelay:100,AnimateEnabled:1,WidthActiveBox:291,WidthUnactiveBox:119,WidthActiveBoxIE:294,WidthUnactiveBoxIE:118,loop:0,header:0,ExitPoint:0,setLoop:function(){timeline.loop=0},setHeader:function(){timeline.header=0},hideHighlighting:function(){$(".highlighting").hide()},setDefault:function(){timeline.ExitPoint=1;setTimeout(function(){if(timeline.ExitPoint==1){$(function(a){if(a.browser.msie&&a.browser.version<7){a("#n1, #n2, #n3, #n4, #n5, #n6, #n7").animate({width:timeline.WidthBox},timeline.setAnimateSpeed)}else{a("#n1, #n2, #n3, #n4, #n5, #n6, #n7").animate({width:timeline.WidthBox,opacity:"1"},timeline.setAnimateSpeed)}});$("#b1, #b2, #b3, #b4, #b5, #b6, #b7").animate({width:timeline.WidthBox},timeline.setAnimateSpeed)}},timeline.setHoverDelay)},setAnimate:function(a){$(".highlighting").hide();timeline.ExitPoint=0;setTimeout(function(){if(timeline.loop==0){timeline.loop=1;$(function(b){if(b.browser.msie&&b.browser.version<7){b("#n"+a).nextAll("h5").animate({width:timeline.WidthUnactiveBox+"px"},timeline.setAnimateSpeed,timeline.setLoop);b("#n"+a).prevAll("h5").animate({width:timeline.WidthUnactiveBox+"px"},timeline.setAnimateSpeed,timeline.setLoop);b("#n"+a).animate({width:timeline.WidthActiveBox+"px"},timeline.setAnimateSpeed,timeline.setLoop)}else{b("#n"+a).nextAll("h5").animate({width:timeline.WidthUnactiveBox+"px",opacity:"0.5"},timeline.setAnimateSpeed,timeline.setLoop);b("#n"+a).prevAll("h5").animate({width:timeline.WidthUnactiveBox+"px",opacity:"0.5"},timeline.setAnimateSpeed,timeline.setLoop);b("#n"+a).animate({width:timeline.WidthActiveBox+"px",opacity:"1"},timeline.setAnimateSpeed,timeline.setLoop)}});$("#b"+a).nextAll("ul").animate({width:timeline.WidthUnactiveBox+"px"},timeline.setAnimateSpeed,timeline.setLoop);$("#b"+a).prevAll("ul").animate({width:timeline.WidthUnactiveBox+"px"},timeline.setAnimateSpeed,timeline.setLoop);$("#b"+a).animate({width:timeline.WidthActiveBox+"px"},timeline.setAnimateSpeed,timeline.setLoop)}},timeline.setHoverDelay)},animateB1:function(){timeline.setAnimate("1")},animateB2:function(){timeline.setAnimate("2")},animateB3:function(){timeline.setAnimate("3")},animateB4:function(){timeline.setAnimate("4")},animateB5:function(){timeline.setAnimate("5")},animateB6:function(){timeline.setAnimate("6")},animateB7:function(){timeline.setAnimate("7")},init:function(){var c=new Array("",$("#vh1").html(),$("#vh2").html(),$("#vh3").html(),$("#vh4").html(),$("#vh5").html(),$("#vh6").html(),$("#vh7").html());timeline.WidthBox=$("#b1").css("width");$("#b1 li:first, #b3 li:first, #b4 li:first, #b5 li:first, #b6 li:first, #b7 li:first").addClass("first");$("#b1 li:last, #b2 li:last, #b3 li:last, #b4 li:last, #b5 li:last, #b6 li:last, #b7 li:last").addClass("last");$("#b2 li a").prepend("<div class='left-corner'></div>");$("#timeline-body ul li a").each(function(){var d=$(this).attr("class").substring(1,2);$(this).mouseover(function(){timeline.ActiveVal=$(this).html();$("#n"+d).html(timeline.ActiveVal)})});$("#timeline-body ul").each(function(){var d=$(this).attr("id").substring(1,2);$(this).mouseleave(function(){$("#n"+d).html(c[d])})});if(timeline.AnimateEnabled==1){if($.browser.msie&&$.browser.version<7){var b="294px";var a="118px"}else{var b="291px";var a="119px"}$("#timeline ul").each(function(){$(this).mouseover(function(){$("#timeline ul").css("width",a);$(this).css("width",b);var d=$(this).attr("id").substr(1,1);$("#timeline-headers h5").css("width",a);$("#timeline-headers h5#n"+d).css("width",b)})})}$("#timeline-body").mouseleave(timeline.setDefault);$("#timeline-body ul").mouseleave(function(){$(".highlighting").show()});$("#timeline-body ul").hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")});$("#timeline").append("<div id='timeline-headers'>\n            <h5 id='n1'>"+c[1]+"</h5><h5 id='n2'>"+c[2]+"</h5>\n            <h5 id='n3'>"+c[3]+"</h5><h5 id='n4'>"+c[4]+"</h5>\n            <h5 id='n5'>"+c[5]+"</h5><h5 id='n6'>"+c[6]+"</h5>\n            <h5 id='n7'>"+c[7]+"</h5></div>")}};