
/*--BEGIN: http://mimdich.com//plugins/jquery/jquery.js-*/
(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F<J;F++){var G=M[F];if(G.selected){K=o(G).val();if(H){return K}L.push(K)}}return L}return(E.value||"").replace(/\r/g,"")}return g}if(typeof K==="number"){K+=""}return this.each(function(){if(this.nodeType!=1){return}if(o.isArray(K)&&/radio|checkbox/.test(this.type)){this.checked=(o.inArray(this.value,K)>=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G<E;G++){L.call(K(this[G],H),this.length>1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H<I;H++){if((G=arguments[H])!=null){for(var F in G){var K=J[F],L=G[F];if(J===L){continue}if(E&&L&&typeof L==="object"&&!L.nodeType){J[F]=o.extend(E,K||(L.length!=null?[]:{}),L)}else{if(L!==g){J[F]=L}}}}}return J};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,q=document.defaultView||{},s=Object.prototype.toString;o.extend({noConflict:function(E){l.$=p;if(E){l.jQuery=y}return o},isFunction:function(E){return s.call(E)==="[object Function]"},isArray:function(E){return s.call(E)==="[object Array]"},isXMLDoc:function(E){return E.nodeType===9&&E.documentElement.nodeName!=="HTML"||!!E.ownerDocument&&o.isXMLDoc(E.ownerDocument)},globalEval:function(G){if(G&&/\S/.test(G)){var F=document.getElementsByTagName("head")[0]||document.documentElement,E=document.createElement("script");E.type="text/javascript";if(o.support.scriptEval){E.appendChild(document.createTextNode(G))}else{E.text=G}F.insertBefore(E,F.firstChild);F.removeChild(E)}},nodeName:function(F,E){return F.nodeName&&F.nodeName.toUpperCase()==E.toUpperCase()},each:function(G,K,F){var E,H=0,I=G.length;if(F){if(I===g){for(E in G){if(K.apply(G[E],F)===false){break}}}else{for(;H<I;){if(K.apply(G[H++],F)===false){break}}}}else{if(I===g){for(E in G){if(K.call(G[E],E,G[E])===false){break}}}else{for(var J=G[0];H<I&&K.call(J,H,J)!==false;J=G[++H]){}}}return G},prop:function(H,I,G,F,E){if(o.isFunction(I)){I=I.call(H,F)}return typeof I==="number"&&G=="curCSS"&&!b.test(E)?I+"px":I},className:{add:function(E,F){o.each((F||"").split(/\s+/),function(G,H){if(E.nodeType==1&&!o.className.has(E.className,H)){E.className+=(E.className?" ":"")+H}})},remove:function(E,F){if(E.nodeType==1){E.className=F!==g?o.grep(E.className.split(/\s+/),function(G){return !o.className.has(F,G)}).join(" "):""}},has:function(F,E){return F&&o.inArray(E,(F.className||F).toString().split(/\s+/))>-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+"></"+T+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!O.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!O.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!O.indexOf("<td")||!O.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!O.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!o.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/<tbody/i.test(S),N=!O.indexOf("<table")&&!R?L.firstChild&&L.firstChild.childNodes:Q[1]=="<table>"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E<F;E++){if(H[E]===G){return E}}return -1},merge:function(H,E){var F=0,G,I=H.length;if(!o.support.getAll){while((G=E[F++])!=null){if(G.nodeType!=8){H[I++]=G}}}else{while((G=E[F++])!=null){H[I++]=G}}return H},unique:function(K){var F=[],E={};try{for(var G=0,H=K.length;G<H;G++){var J=o.data(K[G]);if(!E[J]){E[J]=true;F.push(K[G])}}}catch(I){F=K}return F},grep:function(F,J,E){var G=[];for(var H=0,I=F.length;H<I;H++){if(!E!=!J(F[H],H)){G.push(F[H])}}return G},map:function(E,J){var F=[];for(var G=0,H=E.length;G<H;G++){var I=J(E[G],G);if(I!=null){F[F.length]=I}}return F.concat.apply([],F)}});var C=navigator.userAgent.toLowerCase();o.browser={version:(C.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(C),opera:/opera/.test(C),msie:/msie/.test(C)&&!/opera/.test(C),mozilla:/mozilla/.test(C)&&!/(compatible|webkit)/.test(C)};o.each({parent:function(E){return E.parentNode},parents:function(E){return o.dir(E,"parentNode")},next:function(E){return o.nth(E,2,"nextSibling")},prev:function(E){return o.nth(E,2,"previousSibling")},nextAll:function(E){return o.dir(E,"nextSibling")},prevAll:function(E){return o.dir(E,"previousSibling")},siblings:function(E){return o.sibling(E.parentNode.firstChild,E)},children:function(E){return o.sibling(E.firstChild)},contents:function(E){return o.nodeName(E,"iframe")?E.contentDocument||E.contentWindow.document:o.makeArray(E.childNodes)}},function(E,F){o.fn[E]=function(G){var H=o.map(this,F);if(G&&typeof G=="string"){H=o.multiFilter(G,H)}return this.pushStack(o.unique(H),E,G)}});o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(E,F){o.fn[E]=function(G){var J=[],L=o(G);for(var K=0,H=L.length;K<H;K++){var I=(K>0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}});
(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa<ab.length;aa++){if(ab[aa]===ab[aa-1]){ab.splice(aa--,1)}}}}}return ab};F.matches=function(T,U){return F(T,null,null,U)};F.find=function(aa,T,ab){var Z,X;if(!aa){return[]}for(var W=0,V=I.order.length;W<V;W++){var Y=I.order[W],X;if((X=I.match[Y].exec(aa))){var U=RegExp.leftContext;if(U.substr(U.length-1)!=="\\"){X[1]=(X[1]||"").replace(/\\/g,"");Z=I.find[Y](X,T,ab);if(Z!=null){aa=aa.replace(I.match[Y],"");break}}}}if(!Z){Z=T.getElementsByTagName("*")}return{set:Z,expr:aa}};F.filter=function(ad,ac,ag,W){var V=ad,ai=[],aa=ac,Y,T,Z=ac&&ac[0]&&Q(ac[0]);while(ad&&ac.length){for(var ab in I.filter){if((Y=I.match[ab].exec(ad))!=null){var U=I.filter[ab],ah,af;T=false;if(aa==ai){ai=[]}if(I.preFilter[ab]){Y=I.preFilter[ab](Y,aa,ag,ai,W,Z);if(!Y){T=ah=true}else{if(Y===true){continue}}}if(Y){for(var X=0;(af=aa[X])!=null;X++){if(af){ah=U(af,Y,X,aa);var ae=W^!!ah;if(ag&&ah!=null){if(ae){T=true}else{aa[X]=false}}else{if(ae){ai.push(af);T=true}}}}}if(ah!==g){if(!ag){aa=ai}ad=ad.replace(I.match[ab],"");if(!T){return[]}break}}}if(ad==V){if(T==null){throw"Syntax error, unrecognized expression: "+ad}else{break}}V=ad}return aa};var I=F.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(T){return T.getAttribute("href")}},relative:{"+":function(aa,T,Z){var X=typeof T==="string",ab=X&&!/\W/.test(T),Y=X&&!ab;if(ab&&!Z){T=T.toUpperCase()}for(var W=0,V=aa.length,U;W<V;W++){if((U=aa[W])){while((U=U.previousSibling)&&U.nodeType!==1){}aa[W]=Y||U&&U.nodeName===T?U||false:U===T}}if(Y){F.filter(T,aa,true)}},">":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){var W=Y.parentNode;Z[V]=W.nodeName===U?W:false}}}else{for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){Z[V]=X?Y.parentNode:Y.parentNode===U}}if(X){F.filter(U,Z,true)}}},"":function(W,U,Y){var V=L++,T=S;if(!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("parentNode",U,V,W,X,Y)},"~":function(W,U,Y){var V=L++,T=S;if(typeof U==="string"&&!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("previousSibling",U,V,W,X,Y)}},find:{ID:function(U,V,W){if(typeof V.getElementById!=="undefined"&&!W){var T=V.getElementById(U[1]);return T?[T]:[]}},NAME:function(V,Y,Z){if(typeof Y.getElementsByName!=="undefined"){var U=[],X=Y.getElementsByName(V[1]);for(var W=0,T=X.length;W<T;W++){if(X[W].getAttribute("name")===V[1]){U.push(X[W])}}return U.length===0?null:U}},TAG:function(T,U){return U.getElementsByTagName(T[1])}},preFilter:{CLASS:function(W,U,V,T,Z,aa){W=" "+W[1].replace(/\\/g,"")+" ";if(aa){return W}for(var X=0,Y;(Y=U[X])!=null;X++){if(Y){if(Z^(Y.className&&(" "+Y.className+" ").indexOf(W)>=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return U<T[3]-0},gt:function(V,U,T){return U>T[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W<T;W++){if(Y[W]===Z){return false}}return true}}}},CHILD:function(T,W){var Z=W[1],U=T;switch(Z){case"only":case"first":while(U=U.previousSibling){if(U.nodeType===1){return false}}if(Z=="first"){return true}U=T;case"last":while(U=U.nextSibling){if(U.nodeType===1){return false}}return true;case"nth":var V=W[2],ac=W[3];if(V==1&&ac==0){return true}var Y=W[0],ab=T.parentNode;if(ab&&(ab.sizcache!==Y||!T.nodeIndex)){var X=0;for(U=ab.firstChild;U;U=U.nextSibling){if(U.nodeType===1){U.nodeIndex=++X}}ab.sizcache=Y}var aa=T.nodeIndex-ac;if(V==0){return aa==0}else{return(aa%V==0&&aa/V>=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V<T;V++){U.push(X[V])}}else{for(var V=0;X[V];V++){U.push(X[V])}}}return U}}var G;if(document.documentElement.compareDocumentPosition){G=function(U,T){var V=U.compareDocumentPosition(T)&4?-1:U===T?0:1;if(V===0){hasDuplicate=true}return V}}else{if("sourceIndex" in document.documentElement){G=function(U,T){var V=U.sourceIndex-T.sourceIndex;if(V===0){hasDuplicate=true}return V}}else{if(document.createRange){G=function(W,U){var V=W.ownerDocument.createRange(),T=U.ownerDocument.createRange();V.selectNode(W);V.collapse(true);T.selectNode(U);T.collapse(true);var X=V.compareBoundaryPoints(Range.START_TO_END,T);if(X===0){hasDuplicate=true}return X}}}}(function(){var U=document.createElement("form"),V="script"+(new Date).getTime();U.innerHTML="<input name='"+V+"'/>";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="<a href='#'></a>";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="<p class='TEST'></p>";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="<div class='test e'></div><div class='test'></div>";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1&&!ac){T.sizcache=Y;T.sizset=W}if(T.nodeName===Z){X=T;break}T=T[U]}ad[W]=X}}}function S(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1){if(!ac){T.sizcache=Y;T.sizset=W}if(typeof Z!=="string"){if(T===Z){X=true;break}}else{if(F.filter(Z,[T]).length>0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z<U;Z++){F(T,V[Z],W)}return F.filter(X,W)};o.find=F;o.filter=F.filter;o.expr=F.selectors;o.expr[":"]=o.expr.filters;F.selectors.filters.hidden=function(T){return T.offsetWidth===0||T.offsetHeight===0};F.selectors.filters.visible=function(T){return T.offsetWidth>0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.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(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F<E.length){o.event.proxy(G,E[F++])}return this.click(o.event.proxy(G,function(H){this.lastToggle=(this.lastToggle||0)%F;H.preventDefault();return E[this.lastToggle++].apply(this,arguments)||false}))},hover:function(E,F){return this.mouseenter(E).mouseleave(F)},ready:function(E){B();if(o.isReady){E.call(document,o)}else{o.readyList.push(E)}return this},live:function(G,F){var E=o.event.proxy(F);E.guid+=this.selector+G;o(document).bind(i(G,this.selector),this.selector,E);return this},die:function(F,E){o(document).unbind(i(F,this.selector),E?{guid:E.guid+this.selector+F}:null);return this}});function c(H){var E=RegExp("(^|\\.)"+H.type+"(\\.|$)"),G=true,F=[];o.each(o.data(this,"events").live||[],function(I,J){if(E.test(J.type)){var K=o(H.target).closest(J.data)[0];if(K){F.push({elem:K,fn:J})}}});F.sort(function(J,I){return o.data(J.elem,"closest")-o.data(I.elem,"closest")});o.each(F,function(){if(this.fn.call(this.elem,H,this.fn.data)===false){return(G=false)}});return G}function i(F,E){return["live",F,E.replace(/\./g,"`").replace(/ /g,"|")].join(".")}o.extend({isReady:false,readyList:[],ready:function(){if(!o.isReady){o.isReady=true;if(o.readyList){o.each(o.readyList,function(){this.call(document,o)});o.readyList=null}o(document).triggerHandler("ready")}}});var x=false;function B(){if(x){return}x=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);o.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);o.ready()}});if(document.documentElement.doScroll&&l==l.top){(function(){if(o.isReady){return}try{document.documentElement.doScroll("left")}catch(E){setTimeout(arguments.callee,0);return}o.ready()})()}}}o.event.add(l,"load",o.ready)}o.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(F,E){o.fn[E]=function(G){return G?this.bind(E,G):this.trigger(E)}});o(l).bind("unload",function(){for(var E in o.cache){if(E!=1&&o.cache[E].handle){o.event.remove(o.cache[E].handle.elem)}}});(function(){o.support={};var F=document.documentElement,G=document.createElement("script"),K=document.createElement("div"),J="script"+(new Date).getTime();K.style.display="none";K.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 H=K.getElementsByTagName("*"),E=K.getElementsByTagName("a")[0];if(!H||!H.length||!E){return}o.support={leadingWhitespace:K.firstChild.nodeType==3,tbody:!K.getElementsByTagName("tbody").length,objectAll:!!K.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(E.getAttribute("style")),hrefNormalized:E.getAttribute("href")==="/a",opacity:E.style.opacity==="0.5",cssFloat:!!E.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(document.createTextNode("window."+J+"=1;"))}catch(I){}F.insertBefore(G,F.firstChild);if(l[J]){o.support.scriptEval=true;delete l[J]}F.removeChild(G);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function(){o.support.noCloneEvent=false;K.detachEvent("onclick",arguments.callee)});K.cloneNode(true).fireEvent("onclick")}o(function(){var L=document.createElement("div");L.style.width=L.style.paddingLeft="1px";document.body.appendChild(L);o.boxModel=o.support.boxModel=L.offsetWidth===2;document.body.removeChild(L).style.display="none"})})();var w=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.fn.load,load:function(G,J,K){if(typeof G!=="string"){return this._load(G)}var I=G.indexOf(" ");if(I>=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("<div/>").append(M.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.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(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.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(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H<F;H++){var E=o.data(this[H],"olddisplay");this[H].style.display=E||"";if(o.css(this[H],"display")==="none"){var G=this[H].tagName,K;if(m[G]){K=m[G]}else{var I=o("<"+G+" />").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H<F;H++){this[H].style.display=o.data(this[H],"olddisplay")||""}return this}},hide:function(H,I){if(H){return this.animate(t("hide",3),H,I)}else{for(var G=0,F=this.length;G<F;G++){var E=o.data(this[G],"olddisplay");if(!E&&E!=="none"){o.data(this[G],"olddisplay",o.css(this[G],"display"))}}for(var G=0,F=this.length;G<F;G++){this[G].style.display="none"}return this}},_toggle:o.fn.toggle,toggle:function(G,F){var E=typeof G==="boolean";return o.isFunction(G)&&o.isFunction(F)?this._toggle.apply(this,arguments):G==null||E?this.each(function(){var H=E?G:o(this).is(":hidden");o(this)[H?"show":"hide"]()}):this.animate(t("toggle",3),G,F)},fadeTo:function(E,G,F){return this.animate({opacity:G},E,F)},animate:function(I,F,H,G){var E=o.speed(F,H,G);return this[E.queue===false?"each":"queue"](function(){var K=o.extend({},E),M,L=this.nodeType==1&&o(this).is(":hidden"),J=this;for(M in I){if(I[M]=="hide"&&L||I[M]=="show"&&!L){return K.complete.call(this)}if((M=="height"||M=="width")&&this.style){K.display=o.css(this,"display");K.overflow=this.style.overflow}}if(K.overflow!=null){this.style.overflow="hidden"}K.curAnim=o.extend({},I);o.each(I,function(O,S){var R=new o.fx(J,K,O);if(/toggle|show|hide/.test(S)){R[S=="toggle"?L?"show":"hide":S](I)}else{var Q=S.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),T=R.cur(true)||0;if(Q){var N=parseFloat(Q[2]),P=Q[3]||"px";if(P!="px"){J.style[O]=(N||1)+P;T=((N||1)/R.cur(true))*T;J.style[O]=T+P}if(Q[1]){N=((Q[1]=="-="?-1:1)*N)+T}R.custom(T,N,P)}else{R.custom(T,S,"")}}});return true})},stop:function(F,E){var G=o.timers;if(F){this.queue([])}this.each(function(){for(var H=G.length-1;H>=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J<K.length;J++){if(!K[J]()){K.splice(J--,1)}}if(!K.length){clearInterval(n);n=g}},13)}},show:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());o(this.elem).show()},hide:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(H){var G=e();if(H||G>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='<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>';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})();
/*--BEGIN: http://mimdich.com//plugins/jquery/jquery.dimensions.js-*/
(function(b){b.dimensions={version:"@VERSION"};b.each(["Height","Width"],function(d,c){b.fn["inner"+c]=function(){if(!this[0]){return}var f=c=="Height"?"Top":"Left",e=c=="Height"?"Bottom":"Right";return this.is(":visible")?this[0]["client"+c]:a(this,c.toLowerCase())+a(this,"padding"+f)+a(this,"padding"+e)};b.fn["outer"+c]=function(f){if(!this[0]){return}var h=c=="Height"?"Top":"Left",e=c=="Height"?"Bottom":"Right";f=b.extend({margin:false},f||{});var g=this.is(":visible")?this[0]["offset"+c]:a(this,c.toLowerCase())+a(this,"border"+h+"Width")+a(this,"border"+e+"Width")+a(this,"padding"+h)+a(this,"padding"+e);return g+(f.margin?(a(this,"margin"+h)+a(this,"margin"+e)):0)}});b.each(["Left","Top"],function(d,c){b.fn["scroll"+c]=function(e){if(!this[0]){return}return e!=undefined?this.each(function(){this==window||this==document?window.scrollTo(c=="Left"?e:b(window)["scrollLeft"](),c=="Top"?e:b(window)["scrollTop"]()):this["scroll"+c]=e}):this[0]==window||this[0]==document?self[(c=="Left"?"pageXOffset":"pageYOffset")]||b.boxModel&&document.documentElement["scroll"+c]||document.body["scroll"+c]:this[0]["scroll"+c]}});b.fn.extend({position:function(){var h=0,g=0,f=this[0],i,c,e,d;if(f){e=this.offsetParent();i=this.offset();c=e.offset();i.top-=a(f,"marginTop");i.left-=a(f,"marginLeft");c.top+=a(e,"borderTopWidth");c.left+=a(e,"borderLeftWidth");d={top:i.top-c.top,left:i.left-c.left}}return d},offsetParent:function(){var c=this[0].offsetParent;while(c&&(!/^body|html$/i.test(c.tagName)&&b.css(c,"position")=="static")){c=c.offsetParent}return b(c)}});function a(c,d){return parseInt(b.curCSS(c.jquery?c[0]:c,d,true))||0}})(jQuery);
/*--BEGIN: http://mimdich.com//inc/js/functions.js-*/
function ps_page_toggle(c,b,a){if($("body").find("div#dbPrivacyMenu"+a).length>0){$("body").find("div#dbPrivacyMenu"+a).dolPopup({fog:{color:"#fff",opacity:0.7}});return}$.post("http://mimdich.com/member_privacy.php",{ps_action:"get_chooser",ps_page_name:c,ps_profile_id:b,ps_block_id:a},function(d){if(parseInt(d.code)==0){$("body").append($(d.data).addClass("dbPrivacyMenu"));$("body").find("div#dbPrivacyMenu"+a).dolPopup({fog:{color:"#fff",opacity:0.7}})}},"json")}function ps_page_select(c,a,b){$.post("http://mimdich.com/member_privacy.php",{ps_action:"view_block",ps_block_id:a,ps_group_id:b},function(d){if(parseInt(d.code)==0){$(c).parents(".dbPrivacyMenu").dolPopupHide().find(".dbPrivacyGroupActive").removeClass("dbPrivacyGroupActive").addClass("dbPrivacyGroup");$(c).removeClass("dbPrivacyGroup").addClass("dbPrivacyGroupActive");$("#dbPrivacy"+a+" a:first").attr("title",d.group)}},"json")}function ps_showDialog(d,b,c){var a=$("#ps-"+d+"-members");$("#ps-"+d+"-member-form :hidden[name='ps-"+d+"-member-group']").val(b);a.dolPopup({fog:{color:"#fff",opacity:0.7}});if(d=="del"){$("#ps-"+d+"-members-loading").bx_loading();$.post(sPSSiteUrl+"member_privacy.php",{ps_action:"members",ps_value:b},function(e){$("#ps-"+d+"-members-loading").bx_loading();a.find(".ps-search-results").html(e)},"html")}}
function ps_ad_search(){var a=$("#ps-search-member-form").find(":text:first").val();if(a){$("#ps-add-members-loading").bx_loading();$.post(sPSSiteUrl+"member_privacy.php",{ps_action:"search",ps_value:a},function(b){$("#ps-add-members-loading").bx_loading();$("#ps-add-members .ps-search-results").html(b)},"html")}}function setCheckboxes(a,d){var c=document.forms[a].getElementsByTagName("input");var b=c.length;for(i=0;i<b;i++){c[i].checked=d;if(c[i].type=="submit"){c[i].disabled=!d}}}function UpdateSubmit(a){var c=document.forms[a].getElementsByTagName("input");var b=c.length;var d=false;for(i=0;i<b;i++){if(c[i].type=="checkbox"&&c[i].checked==true){d=true}if(c[i].type=="submit"){c[i].disabled=true}}for(i=0;i<b;i++){if(c[i].type=="submit"){if(d==true){c[i].disabled=false}else{c[i].disabled=true}}}}
function setCheckbox(a){var e=document.forms[a].getElementsByTagName("input");var b=e.length;var d=true;for(var c=0;c<b;c++){if(e[c].checked){d=false}}for(var c=0;c<b;c++){if(e[c].type=="submit"){e[c].disabled=d}}}var win="width=500,height=600,left=100,top=100,copyhistory=no,directories=no,menubar=no,location=no,resizable=no,scrollbars=yes";
function charCounter(d,b,c){d=document.getElementById(d);c=document.getElementById(c);var a=d.value.length;if(a>=b){d.value=d.value.substring(0,b)}c.innerHTML=b-d.value.length}
function show(a,b){document.images[a].src=b}
function ss(a){window.status=a;return true}
function ce(){window.status=""}
function createXmlHttpObj(){if(window.XMLHttpRequest){return new XMLHttpRequest()}else{if(window.ActiveXObject){return new ActiveXObject("Microsoft.XMLHTTP")}else{alert("Please upgrade your browser");return false}}}
function getHtmlData(e,a,h){
if(typeof e=="string"){e="#"+e}var d=$(e);
var f=d.css("position");
d.css("position","relative");
var c=$('<div class="loading_ajax">'+_t("_loading ...")+'</div>').appendTo(d);
var b=d.width()/2-(c.find("img:first").width()/2);var g=d.height()/2-(c.find("img:first").height()/2)+10;
if(g<0){g=0}c.css({position:"fixed",left:"50%",top:"0",zIndex:1000});
d.load(a+"&_r="+Math.random(),function(){$(this).css("position",f).addWebForms();
if(typeof h=="function"){h.apply(this)}})}
function getHtmlDataOld(elemID,url){var elem=document.getElementById(elemID);
if(!elem||!url){return false}var url=url+"&r="+Math.random();var oXMLHttpReq=createXmlHttpObj();
if(!oXMLHttpReq){return false}var $block=$("#"+elemID);iBoxWidth=90;
iBoxHeight=64;iLeftOff=$block.width()/2-(iBoxWidth/2);iTopOff=$block.height()/2-(iBoxHeight/2)+30;if(iTopOff<0){iTopOff=0}sNewElSrc='<div class="loading_ajax">cargando...</div>';$block.html($block.html()+sNewElSrc);oXMLHttpReq.open("GET",url);oXMLHttpReq.onreadystatechange=function(){if(oXMLHttpReq.readyState==4&&oXMLHttpReq.status==200){sNewText=oXMLHttpReq.responseText;elem.innerHTML=sNewText;aScrMatches=sNewText.match(/<script[^>]*javascript[^>]*>([^<]*)<\/script>/ig);if(aScrMatches){for(ind=0;ind<aScrMatches.length;ind++){sScr=aScrMatches[ind];iOffset=sScr.match(/<script[^>]*javascript[^>]*>/i)[0].length;sScript=sScr.substring(iOffset,sScr.length-9);eval(sScript)}}}};oXMLHttpReq.send(null)}function showFloatDesc(b,a){var a=a||0;descDiv=document.getElementById("FloatDesc");if(descDiv){$(descDiv).html(b).animate({opacity:"show"},a)}}
function hideFloatDesc(){descDiv=document.getElementById("FloatDesc");
if(descDiv){descDiv.style.display="none"}}
function moveFloatDesc(a){descDiv=document.getElementById("FloatDesc");if(descDiv){showPos=getPositionData(descDiv,a);descDiv.style.left=showPos.posX+"px";descDiv.style.top=showPos.posY+"px"}}
function getPositionData(c,j){if(!j){j=window.event}var d=0,a=0;if(j){if(typeof(j.pageX)=="number"){d=j.pageX;a=j.pageY}else{if(typeof(j.clientX)=="number"){d=j.clientX;a=j.clientY;if(document.body&&(document.body.scrollTop||document.body.scrollLeft)&&!(window.opera||window.debug||navigator.vendor=="KDE")){d+=document.body.scrollLeft;a+=document.body.scrollTop}else{if(document.documentElement&&(document.documentElement.scrollTop||document.documentElement.scrollLeft)&&!(window.opera||window.debug||navigator.vendor=="KDE")){d+=document.documentElement.scrollLeft;a+=document.documentElement.scrollTop}}}}}var h=0,g=0;if(document.body&&(document.body.scrollTop||document.body.scrollLeft)&&!(window.debug||navigator.vendor=="KDE")){h=document.body.scrollLeft;g=document.body.scrollTop}else{if(document.documentElement&&(document.documentElement.scrollTop||document.documentElement.scrollLeft)&&!(window.debug||navigator.vendor=="KDE")){h=document.documentElement.scrollLeft;g=document.documentElement.scrollTop}}var e=0,b=0;if(window.innerWidth&&window.innerHeight){e=window.innerWidth;b=window.innerHeight}else{if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight){e=document.documentElement.clientWidth;b=document.documentElement.clientHeight}else{if(document.body&&document.body.clientWidth&&document.body.clientHeight){e=document.body.clientWidth;b=document.body.clientHeight}}}d+=15;a+=20;if(c.offsetWidth&&c.offsetHeight){if(d-h+c.offsetWidth+5>e){d-=(c.offsetWidth+25)}if(a-g+c.offsetHeight+5>b){a-=(c.offsetHeight+20)}}var f=new Array;f.posX=d;f.posY=a;f.scrollX=h;f.scrollY=g;f.winSizeX=e;f.winSizeY=b;return f}
function changeBigPicTo(b,a){var c;c=document.getElementById("AdvBigImg");c.style.backgroundImage="url("+b+")";c=document.getElementById("AdvBigImgFullSize");c.href=a}
function moveScrollRightAuto( el_id, b ) {
	if (b)
		scrollTimerId = setInterval("moveScrollRight('"+el_id+"')", 100);
	else
		clearInterval(scrollTimerId);
}

function moveScrollLeftAuto( el_id, b ) {
	if (b)
		scrollTimerId = setInterval("moveScrollLeft('"+el_id+"')", 100);
	else
		clearInterval(scrollTimerId);
}

function moveScrollRight( el_id ) {
	var step = 5;
	var e = $('#' + el_id);
	var left = e.css('left') ? parseInt(e.css('left')) : 0;
    var minLeft = e.parent().width() - parseInt(e.width());

	if((left-step) > minLeft)
		e.css('left', left - step + 'px');
	else {
		e.css('left', minLeft + 'px');
		moveScrollRightAuto(el_id, false);
	}
}

function moveScrollLeft(el_id) {
	var step = 5;
	var e = $('#' + el_id);
	var left = e.css('left') ? parseInt(e.css('left')) : 0;

	if(left + step < 0)
		e.css('left', left + step + 'px');
	else {
		e.css('left', '0px');
		moveScrollLeftAuto(el_id, false);
	}
}

function addEvent(c,a,b){if(!c||!a||!b){return false}if(c.addEventListener){c.addEventListener(a,b,false)}else{if(c.attachEvent){c.attachEvent("on"+a,b)}}}function checkAll(b,c,a){_form=document.forms[b];if(!_form){return false}for(ind=0;ind<_form.length;ind++){_elem=_form[ind];if(_elem.type!="checkbox"){continue}if(_elem.name.substr(0,c.length)!=c){continue}_elem.checked=a}}
function emailCheck(a){if(a.search(/^[a-z0-9_\-]+(\.[_a-z0-9\-]+)*@([_a-z0-9\-]+\.)+([a-z]{2}|aero|arpa|asia|biz|cat|com|coop|edu|gov|info|int|jobs|mil|mobi|museum|name|net|org|pro|tel|travel)$/i)==-1){return false}else{return true}}
function loadDynamicBlock(a,b){if($==undefined){return false}getHtmlData($("#page_block_"+a),(b+"&dynamic=tab&pageBlock="+a));return true}
function loadDynamicPopupBlock(a,b){if(!$("#dynamicPopup").length){$('<div id="dynamicPopup" style="display:none;"></div>').prependTo("body")}$("#dynamicPopup").load((b+"&dynamic=popup&pageBlock="+a),function(){$(this).dolPopup({fog:{color:"#fff",opacity:0.7},left:0,top:0})})}function closeDynamicPopupBlock(){$("#dynamicPopup").dolPopupHide()}function dbTopMenuLoad(f){var d=$("#dbTopMenu"+f);var b=d.parent(".boxFirstHeader").width()-d.siblings(".dbTitle").width()-10;if(b==-10){return}var c=0,a=0;$.each(d.find(".dbTmContent > div:visible:not(.clear_both)"),function(){if($(this).hasClass("active")){a=-c}c+=parseInt($(this).outerWidth())});d.find(".dbTmContent").width(c);if(b>=c){d.find(".dbTmLeft, .dbTmRight").hide().siblings(".dbTmCenter").width(c);d.width(c)}else{d.find(".dbTmCenter").width(b-2*d.find(".dbTmLeft").outerWidth());d.width(b);var e=parseInt(d.find(".dbTmCenter").width())-parseInt(d.find(".dbTmContent").width());if(a<e){a=e}d.find(".dbTmContent").css("left",a+"px")}d.css("top","0px")}function showItemEditForm(a){var b=document.getElementById(a);b.style.width=document.body.clientWidth+30+"px";b.style.height=(window.innerHeight?(window.innerHeight+30):screen.height)+"px";b.style.left=getHorizScroll1()-30+"px";b.style.top=getVertScroll1()-30+"px";b.style.display="block"}function getHorizScroll1(){if(navigator.appName=="Microsoft Internet Explorer"){return document.documentElement.scrollLeft}else{return window.pageXOffset}}function getVertScroll1(){if(navigator.appName=="Microsoft Internet Explorer"){return document.documentElement.scrollTop}else{return window.pageYOffset}}function _t(d,c,b,a){if(!window.aDolLang||!aDolLang[d]){return d}cs=aDolLang[d];cs=cs.replace(/\{0\}/g,c);cs=cs.replace(/\{1\}/g,b);cs=cs.replace(/\{2\}/g,a);return cs}function showPopupLoginFormOld(){if($("#login_div").length){$("#login_div").show()}else{$.get("http://mimdich.com/member.php",{action:"show_login_form",relocate:String(window.location)},function(a){$($.trim(a)).prependTo("body");$("#login_div").show();setDivToCenter($("#login_div"));$(window).resize(function(){setDivToCenter($("#login_div"))});$(document).click(function(c){var c=c||window.event;var b=c.target||c.srcElement;if(!($(b).parents("#login_div").length||$(b).parents("#bigLoginButton").length||$("#login_div").is(":hidden"))){$("#login_div").hide()}return true})},"html")}}function showPopupLoginForm(){var a={fog:{color:"#fff",opacity:0.7}};if($("#login_div").length){$("#login_div").dolPopup(a)}else{$('<div id="login_div" style="visibility: none;"></div>').prependTo("body").load("http://mimdich.com/member.php",{action:"show_login_form",relocate:String(window.location)},function(){$(this).dolPopup(a)})}}
function showPopupAnyHtml(a){var b={fog:{color:"#fff",opacity:0.7}};$('<div id="login_div" style="display: none;"></div>').prependTo("body").load(site_url+a,function(){$(this).dolPopup(b)})}function setDivToCenter(b){var a=$(b||this);if(a.length==0||a[0]==window){return false}var d=((window.innerWidth?window.innerWidth:screen.width)-a.height())/2;var c=((window.innerHeight?window.innerHeight:screen.height)-a.width())/2;d=d>0?d:0;c=c>0?c:0;a.css({position:"fixed",left:d,top:c})}
function bx_loading(c,a){if(1==a||true==a){
var f=$('<div class="loading_ajax">cargando...</div>');
$("#"+c).append(f);
f=$("#"+c+" .loading_ajax");
f.css("left",$("#"+c).width()/2-f.width()/2);
var d=f.height();
var g=$("#"+c).height();
if(g>d&&(g>d*3||$("#"+c).css("position")=="relative"||$("#"+c).css("position")=="absolute")){f.css("top",g/2-d/2)}}else{$("#"+c+" .loading_ajax").remove()}}
function bx_center_content(b,d){var c="id"+(new Date()).getTime();$(b).wrap('<div id="'+c+'"></div>');var g=$("#"+c);var f=$("#"+c+" "+d).size();var h=$("#"+c+" "+d+":first").outerWidth({margin:true});var a=g.width();var j=parseInt(a/h);var e=(a-(f>j?j*h:f*h))/2;g.css("padding-left",e)};
function BxUserStatus(){this.HomeUrl;this.bIsProfilePage;this.sCurrentStatusImgId="current_members_status_img";this.userStatusInit=function(b,a){this.HomeUrl=b;this.bIsProfilePage=(a)?true:false};this.setUserStatus=function(b,c){var a=this;var b=encodeURIComponent(b);var d=Math.random();$.post(this.HomeUrl+"list_pop.php?action=change_status&mode=ajax&status="+b+"&_r="+d,function(e){if(a.bIsProfilePage){document.location.reload()}else{$("#"+a.sCurrentStatusImgId).attr({src:e,alt:b});a.closeSubMenu(c)}})};this.sendStatusMessage=function(c,b){var a=this;if(!c){if(window.event){c=window.event}else{return}}var d=c.keyCode?c.keyCode:c.charCode;if(d==13){a.PerformSendingStatusMess(b)}};this.PerformSendingStatusMess=function(b){var a=this;var c=Math.random();$.post(this.HomeUrl+"list_pop.php?action=change_status_message&mode=ajax&_r="+c,{status_message:b.value},function(d){$("#StatusMessage").text(b.value).show();$("#inloadedStatusMess").html("")})};this.closeSubMenu=function(a){if(typeof membermenu!="undefined"){membermenu.close_popup($(a).attr("id"))}}};
/*--BEGIN: http://mimdich.com//inc/js/jquery.float_info.js-*/
$(document).ready(function(){if(!$("#float_info").length){$("body").prepend($('<div id="float_info"></div>').css({display:"none",position:"absolute",zIndex:1010}))}var a=$("#float_info");$("body").mousemove(function(c){var d=$(c.target);if(d.attr("float_info")){var b=getPositionData(a[0],c);a.css({left:b.posX,top:b.posY}).html(d.attr("float_info")).show()}else{a.hide()}})});
/*--BEGIN: http://mimdich.com//inc/js/jquery.webForms.js-*/
$(document).ready(function(){if(document.implementation&&document.implementation.hasFeature&&!document.implementation.hasFeature("WebForms","2.0")){$(this).addWebForms()}$(this).addNonWebForms();$("thead.collapsable",this).each(function(){var b=$(this);var a=b.hasClass("collapsed")?"collapse_closed":"collapse_open";$('<img src="'+aDolImages[a]+'" class="block_collapse_btn" />').prependTo($("th",b)).click(function(){if(b.hasClass("collapsed")){$(this).attr("src",aDolImages.collapse_open);b.removeClass("collapsed").next("tbody").fadeIn(400)}else{$(this).attr("src",aDolImages.collapse_closed);b.addClass("collapsed").next("tbody").fadeOut(400)}})})});(function(a){a.fn.addWebForms=function(){a("input,select,textarea",this).each(function(){if(this.getAttribute("type")=="slider"){var n=a(this);var c=a("<div class='ui-slider'></div>").insertAfter(n);var i=a("<div class='ui-slider-handle'></div>").appendTo(c);c.css({position:n.css("position")=="absolute"?"absolute":"relative",left:n.css("left"),right:n.css("right"),zIndex:n.css("zIndex"),"float":n.css("float"),clear:n.css("clear")});n.css({position:"absolute",opacity:0,top:"-1000px",left:"-1000px"});c.slider({max:n.attr("max"),min:n.attr("min"),value:this.getAttribute("value"),step:n.attr("step"),change:function(q,p){n[0].value=p.value;n[0].setAttribute("value",p.value)}});c=c.sliderInstance()}if(this.getAttribute("type")=="range"){function j(){var q=c.sliderInstance().handle;var r=parseInt(a(q[0]).css("left"))+parseInt(a(q[0]).outerWidth())/2;var p=parseInt(a(q[1]).css("left"))+parseInt(a(q[1]).outerWidth())/2;d.css({left:r,width:(p-r)})}var n=a(this);var c=a("<div class='ui-slider'></div>").insertAfter(n);var d=a('<div class="ui-slider-helper"></div>').appendTo(c);a('<div class="ui-slider-handle"></div>').appendTo(c);a('<div class="ui-slider-handle"></div>').appendTo(c);c.addClass(n.attr("class"));n.css({position:"absolute",opacity:0,top:"-1000px",left:"-1000px"});var b=n.attr("min")?parseInt(n.attr("min"),10):0;var g=n.attr("max")?parseInt(n.attr("max"),10):100;var f=n.attr("range-divider")?n.attr("range-divider"):"-";var m=n.val().split(f,2);if(typeof(m[0])!="undefined"&&m[0].length){m[0]=parseInt(m[0])}else{m[0]=b}if(typeof(m[1])!="undefined"&&m[1].length){m[1]=parseInt(m[1])}else{m[1]=g}c.slider({range:true,min:b,max:g,step:n.attr("step"),change:function(q,p){m=p.values;n.val(m[0]+f+m[1])},slide:function(q,p){m=p.values;a(p.handle).html(p.value);j()}});var k=c.sliderInstance();c.sliderMoveTo(m[0],0);c.sliderMoveTo(m[1],1);a(k.handle[0]).html(m[0]);a(k.handle[1]).html(m[1]);j()}if(this.getAttribute("type")=="date"){a(this).attr("readonly","readonly").datepicker({changeYear:true,dateFormat:"yy-mm-dd",defaultDate:-8030,yearRange:(a(this).attr("min")?a(this).attr("min"):"1900")+":"+(a(this).attr("max")?a(this).attr("max"):"2100")})}if(this.getAttribute("type")=="datetime"){a(this).attr("readonly","readonly").dynDateTime({ifFormat:"%Y-%m-%d %H:%M:%S",showsTime:true})}if(this.getAttribute("multiplyable")=="true"){a(this).multiplyable()}if(this.getAttribute("deletable")=="true"){a(this).inputDeletable()}if(this.getAttribute("counter")=="true"){function e(){if(o.val()){h.show(300)}else{h.hide(300)}l.html(o.val().length)}var o=a(this);o.parents("td:first").append('<div class="counter" style="display:none;">'+_t("_Counter")+': <b></b></div><div class="clear_both"></div>');var h=o.parent().parent().children("div.counter");var l=h.children("b");e();o.change(e).keyup(e)}});return this};a.fn.addNonWebForms=function(){a("input,select,textarea",this).each(function(){if(this.getAttribute("type")=="doublerange"){var g=a(this);var f=a("<div></div>").insertAfter(g);f.addClass(g.attr("class"));g.css({position:"absolute",opacity:0,top:"-1000px",left:"-1000px"});var e=g.attr("min")?parseInt(g.attr("min"),10):0;var b=g.attr("max")?parseInt(g.attr("max"),10):100;var d=g.attr("range-divider")?g.attr("range-divider"):"-";var c=g.val().split(d,2);if(typeof(c[0])!="undefined"&&c[0].length){c[0]=parseInt(c[0])}else{c[0]=e}if(typeof(c[1])!="undefined"&&c[1].length){c[1]=parseInt(c[1])}else{c[1]=b}f.slider({range:true,min:e,max:b,step:parseInt(g.attr("step"))|1,values:c,change:function(i,h){c=h.values;g.val(c[0]+d+c[1])},slide:function(i,h){a(h.handle).html(h.value)}});a(".ui-slider-handle",f).each(function(h){a(this).html(c[h])})}});return this};a.fn.inputDeletable=function(b){var c=aDolImages.wf_minus;return a(this).each(function(){var e=this;var d=a('<tr><td class="menos"></td><tr>').click(function(){var f=a(e).parent("td");a(this).remove();a(e).remove();f.remove();if(typeof b!="undefined"){a(b).remove()}}).insertAfter(a(this).parent())});return this};a.fn.multiplyable=function(){a(this).each(function(){var f=a(this);var d=f.parent();var e=d.clone().children().remove().end();if(f.attr("add_other")=="true"){var c=a('<tr><td class="mas"></td><tr>').insertAfter(d).click(function(){var h=a(d).nextAll("div.clear_both:last");h=h.length?h:d;var g=a('<div class="clear_both"></div>"').insertAfter(h);e.clone().append('<input type="text" class="form_input_text" name="'+f.attr("name")+'" />').insertAfter(h).children(":first").inputDeletable(g).get(0).focus()})}var b=a('<tr><td class="mas"></td><tr>').insertAfter(d).click(function(){var h=a(d).nextAll("div.clear_both:last");h=h.length?h:d;var g=a('<div class="clear_both"></div>"').insertAfter(h);d.clone().children().removeAttr("id").end().each(function(){var i=a("input",this);if(i.length&&(i.attr("type")=="file"||i.attr("type")=="text")){i.val("")}}).insertAfter(h).children(":first").inputDeletable(g).get(0).focus()})});return this}})(jQuery);
/*--BEGIN: http://mimdich.com//inc/js/jquery.dolPopup.js-*/
(function(a){a.fn.dolPopup=function(b){var b=b||{};var c={closeOnOuterClick:true,closeElement:".login_ajx_close",position:"centered",fog:false,left:0,top:0,speed:400};var d=a.extend({},c,b);if(d.fog&&!a("#dolPopupFog").length){a('<div id="dolPopupFog" style="display: none;">&nbsp;</div>').prependTo("body").css({position:"fixed",top:0,left:0,width:a(window).width(),height:a(window).height(),opacity:d.fog.opacity,backgroundColor:d.fog.color,zIndex:999})}return this.each(function(){var e=a(this);if(!e.attr("id")){return false}e.css({display:"block",visibility:"hidden",zIndex:1000,position:"absolute",top:100,left:0});setTimeout(function(){e._dolPopupSetPosition(d);if(d.closeElement){a(d.closeElement,e).css("cursor","hand").click(function(){e.dolPopupHide()})}if(!e.hasClass("dolPopup")){e.addClass("dolPopup");e.data("dolPopupOptions",d);if(d.closeOnOuterClick){a(document).click(function(f){if(e.hasClass("dolPopup")&&e.is(":visible")){if(a(f.target).parents("#"+e.attr("id")).length==0){e.dolPopupHide()}}return true})}}if(d.speed>0){e.css({display:"none",visibility:"visible"}).fadeIn(d.speed);if(d.fog){a("#dolPopupFog").fadeIn(d.speed)}}else{e.css({display:"block",visibility:"visible"});if(d.fog){a("#dolPopupFog").show()}}},10)})};a.fn.dolPopupHide=function(b){return this.each(function(){var c=a(this);if(!c.hasClass("dolPopup")){return false}var d=c.data("dolPopupOptions");if(!d){return false}if(!c.is(":visible")){return false}if(d.speed>0){c.fadeOut(d.speed);if(d.fog){a("#dolPopupFog").fadeOut(d.speed)}}else{c.hide();if(d.fog){a("#dolPopupFog").hide()}}})};a.fn._dolPopupSetPosition=function(b){return this.each(function(){var d=a(this);if(b.position=="fixed"||b.position=="absolute"){d.css({position:b.position,left:b.left,top:b.top})}else{if(b.position=="centered"){d.setToCenter();a(window).resize(function(){d.setToCenter()})}else{if(b.position=="centered-absolute"){d.setToCenter("absolute");a(window).resize(function(){d.setToCenter("absolute")})}else{if(typeof b.position=="object"){if(b.position.originalEvent&&Event.prototype.isPrototypeOf(b.position.originalEvent)){var f=b.position.originalEvent?b.position:a.event.fix(b.position);var g=getPositionData(d[0],f);d.css({position:"absolute",left:g.posX,top:g.posY})}else{var c=a(b.position);if(c.length){var g=getCorrectedPosition(d,c);d.css({position:"absolute",left:g.left,top:g.top})}}}}}}})};a.fn.setToCenter=function(b){return this.each(function(){var c=a(this);var e=0;var d=0;if(!a.browser.opera){e=(a(window).height()-c.height())/2;d=(a(window).width()-c.width())/2}else{e=(parseInt(window.innerHeight)-c.height())/2;d=(a(window).width()-c.width())/2}d=(d>0)?d:0;e=(e>0)?e:0;c.css({position:b||"fixed",left:d,top:e})})}})(jQuery);function getCorrectedPosition(f,g){var e=$(f);var d=$(g);var h=d.offset();var a={width:e.width(),height:e.height()};var c={left:h.left-$(window).scrollLeft(),top:h.top-$(window).scrollTop()};var b={width:$(window).width(),height:$(window).height()-30};if((c.left+a.width)>b.width){h.left=h.left-a.width+d.width()}if((c.top+a.height)>b.height){h.top=h.top-a.height+d.height()}return h};
/*--BEGIN: http://mimdich.com//inc/js/common_anim.js-*/
$.fn.bx_anim=function(action,effect,speed,h){return this.each(function(){var sFunc="";var sEval;if(speed==0){effect="default"}switch(action){case"show":switch(effect){case"slide":sFunc="slideDown";break;case"fade":sFunc="fadeIn";break;default:sFunc="show"}break;case"hide":switch(effect){case"slide":sFunc="slideUp";break;case"fade":sFunc="fadeOut";break;default:sFunc="hide"}break;default:case"toggle":switch(effect){case"slide":sFunc="slideToggle";break;case"fade":sFunc=($(this).filter(":visible").length)?"fadeOut":"fadeIn";break;default:sFunc="toggle"}}if((0==speed||undefined==speed)&&undefined==h){sEval="$(this)."+sFunc+"();"}else{if((0==speed||undefined==speed)&&undefined!=h){sEval="$(this)."+sFunc+"(); $(this).each(h);"}else{sEval="$(this)."+sFunc+"('"+speed+"', h);"}}eval(sEval);return this})};$.fn.bx_loading=function(b){var c=0,e=0;var d=null,a=null;if(b!=undefined){d=$(b)}return this.each(function(){var g=$(this);var f=g.children(".sys-loading-icon");d=d!=null?d:g.parent();if(!g.is(":visible")){a=d.offset();c=d.outerWidth();e=d.outerHeight();g.width(c);g.height(e);f.css("left",(c-parseInt(f.css("width")))/2);f.css("top",(e-parseInt(f.css("height")))/2);g.show()}else{g.hide()}})};$.fn.bx_message_box=function(c,b,a){return this.each(function(){var d=$(this);if(d.children(":first").hasClass("MsgBox")){d.children(":first").replaceWith(c)}else{d.prepend(c)}if(b==undefined||parseInt(b)==0){return}setTimeout(function(f,e){f.children("div.MsgBox:first").bx_anim("hide","fade","slow",function(){$(this).remove();if(e!=undefined){e()}})},1000*parseInt(b),d,a)})};function bxShowLoading(b,a){var c=b.children(".upload-loading");if(a){c.css("left",(b.width()-c.width())/2);c.css("top",(b.height()-c.height())/2);c.show()}else{c.hide()}};
/*--BEGIN: http://mimdich.com//inc/js/corner.js-*/
(function(c){var a=document.createElement("div").style,h=a.MozBorderRadius!==undefined,j=a.WebkitBorderRadius!==undefined,e=a.borderRadius!==undefined||a.BorderRadius!==undefined,d=document.documentMode||0,l=c.browser.msie&&((c.browser.version<8&&!d)||d<8),i=c.browser.msie&&(function(){var n=document.createElement("div");try{n.style.setExpression("width","0+0");n.style.removeExpression("width")}catch(m){return false}return true})();c.support=c.support||{};c.support.borderRadius=h||j||e;function g(m,n){return parseInt(c.css(m,n))||0}function k(m){m=parseInt(m).toString(16);return(m.length<2)?"0"+m:m}function b(o){while(o){var m=c.css(o,"backgroundColor"),n;if(m&&m!="transparent"&&m!="rgba(0, 0, 0, 0)"){if(m.indexOf("rgb")>=0){n=m.match(/\d+/g);return"#"+k(n[0])+k(n[1])+k(n[2])}return m}if(o.nodeName.toLowerCase()=="html"){break}o=o.parentNode}return"#ffffff"}function f(o,m,n){switch(o){case"round":return Math.round(n*(1-Math.cos(Math.asin(m/n))));case"cool":return Math.round(n*(1+Math.cos(Math.asin(m/n))));case"sharp":return n-m;case"bite":return Math.round(n*(Math.cos(Math.asin((n-m-1)/n))));case"slide":return Math.round(n*(Math.atan2(m,n/m)));case"jut":return Math.round(n*(Math.atan2(n,(n-m-1))));case"curl":return Math.round(n*(Math.atan(m)));case"tear":return Math.round(n*(Math.cos(m)));case"wicked":return Math.round(n*(Math.tan(m)));case"long":return Math.round(n*(Math.sqrt(m)));case"sculpt":return Math.round(n*(Math.log((n-m-1),n)));case"dogfold":case"dog":return(m&1)?(m+1):n;case"dog2":return(m&2)?(m+1):n;case"dog3":return(m&3)?(m+1):n;case"fray":return(m%2)*n;case"notch":return n;case"bevelfold":case"bevel":return m+1;case"steep":return m/2+1;case"invsteep":return(n-m)/2+1}}c.fn.corner=function(m){if(this.length==0){if(!c.isReady&&this.selector){var n=this.selector,o=this.context;c(function(){c(n,o).corner(m)})}return this}return this.each(function(v){var u=c(this),D=[u.attr(c.fn.corner.defaults.metaAttr)||"",m||""].join(" ").toLowerCase(),K=/keep/.test(D),C=((D.match(/cc:(#[0-9a-f]+)/)||[])[1]),p=((D.match(/sc:(#[0-9a-f]+)/)||[])[1]),G=parseInt((D.match(/(\d+)px/)||[])[1])||10,E=/round|bevelfold|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dogfold|dog|invsteep|steep/,r=((D.match(E)||["round"])[0]),s=/dogfold|bevelfold/.test(D),q={T:0,B:1},z={TL:/top|tl|left/.test(D),TR:/top|tr|right/.test(D),BL:/bottom|bl|left/.test(D),BR:/bottom|br|right/.test(D)},H,N,F,I,y,O,B,L,J,x,M,P,A,t;if(!z.TL&&!z.TR&&!z.BL&&!z.BR){z={TL:1,TR:1,BL:1,BR:1}}if(c.fn.corner.defaults.useNative&&r=="round"&&(e||h||j)&&!C&&!p){if(z.TL){u.css(e?"border-top-left-radius":h?"-moz-border-radius-topleft":"-webkit-border-top-left-radius",G+"px")}if(z.TR){u.css(e?"border-top-right-radius":h?"-moz-border-radius-topright":"-webkit-border-top-right-radius",G+"px")}if(z.BL){u.css(e?"border-bottom-left-radius":h?"-moz-border-radius-bottomleft":"-webkit-border-bottom-left-radius",G+"px")}if(z.BR){u.css(e?"border-bottom-right-radius":h?"-moz-border-radius-bottomright":"-webkit-border-bottom-right-radius",G+"px")}return}H=document.createElement("div");c(H).css({overflow:"hidden",height:"1px",minHeight:"1px",fontSize:"1px",backgroundColor:p||"transparent",borderStyle:"solid"});N={T:parseInt(c.css(this,"paddingTop"))||0,R:parseInt(c.css(this,"paddingRight"))||0,B:parseInt(c.css(this,"paddingBottom"))||0,L:parseInt(c.css(this,"paddingLeft"))||0};if(typeof this.style.zoom!=undefined){this.style.zoom=1}if(!K){this.style.border="none"}H.style.borderColor=C||b(this.parentNode);F=c(this).outerHeight();for(I in q){y=q[I];if((y&&(z.BL||z.BR))||(!y&&(z.TL||z.TR))){H.style.borderStyle="none "+(z[I+"R"]?"solid":"none")+" none "+(z[I+"L"]?"solid":"none");O=document.createElement("div");c(O).addClass("jquery-corner");B=O.style;y?this.appendChild(O):this.insertBefore(O,this.firstChild);if(y&&F!="auto"){if(c.css(this,"position")=="static"){this.style.position="relative"}B.position="absolute";B.bottom=B.left=B.padding=B.margin="0";if(i){B.setExpression("width","this.parentNode.offsetWidth")}else{B.width="100%"}}else{if(!y&&c.browser.msie){if(c.css(this,"position")=="static"){this.style.position="relative"}B.position="absolute";B.top=B.left=B.right=B.padding=B.margin="0";if(i){L=g(this,"borderLeftWidth")+g(this,"borderRightWidth");B.setExpression("width","this.parentNode.offsetWidth - "+L+'+ "px"')}else{B.width="100%"}}else{B.position="relative";B.margin=!y?"-"+N.T+"px -"+N.R+"px "+(N.T-G)+"px -"+N.L+"px":(N.B-G)+"px -"+N.R+"px -"+N.B+"px -"+N.L+"px"}}for(J=0;J<G;J++){x=Math.max(0,f(r,J,G));M=H.cloneNode(false);M.style.borderWidth="0 "+(z[I+"R"]?x:0)+"px 0 "+(z[I+"L"]?x:0)+"px";y?O.appendChild(M):O.insertBefore(M,O.firstChild)}if(s&&c.support.boxModel){if(y&&l){continue}for(P in z){if(!z[P]){continue}if(y&&(P=="TL"||P=="TR")){continue}if(!y&&(P=="BL"||P=="BR")){continue}A={position:"absolute",border:"none",margin:0,padding:0,overflow:"hidden",backgroundColor:H.style.borderColor};t=c("<div/>").css(A).css({width:G+"px",height:"1px"});switch(P){case"TL":t.css({bottom:0,left:0});break;case"TR":t.css({bottom:0,right:0});break;case"BL":t.css({top:0,left:0});break;case"BR":t.css({top:0,right:0});break}O.appendChild(t[0]);var Q=c("<div/>").css(A).css({top:0,bottom:0,width:"1px",height:G+"px"});switch(P){case"TL":Q.css({left:G});break;case"TR":Q.css({right:G});break;case"BL":Q.css({left:G});break;case"BR":Q.css({right:G});break}O.appendChild(Q[0])}}}}})};c.fn.uncorner=function(){if(e||h||j){this.css(e?"border-radius":h?"-moz-border-radius":"-webkit-border-radius",0)}c("div.jquery-corner",this).remove();return this};c.fn.corner.defaults={useNative:true,metaAttr:"data-corner"}})(jQuery);
/*--BEGIN: http://mimdich.com//inc/js/login.js-*/
function validateLoginForm(a){if(!a){return false}$(a).ajaxSubmit({success:function(b){if(b=="OK"){a.submit()}else{alert(_t("_PROFILE_ERR"))}}})};
/*--BEGIN: http://mimdich.com//inc/js/classes/BxDolVoting.js-*/
function BxDolVoting(f,g,e,b,d,c,a){this._sUrl=f;this._sSystem=g;this._iObjId=e;this._sId=b;this._sIdSlider=d;this._iSize=c;this._iMax=a;this._iSaveWidth=-1}BxDolVoting.prototype.over=function(a){var b=this._e(this._sIdSlider);this._iSaveWidth=parseInt(b.style.width);b.style.width=a*this._iSize+"px"};BxDolVoting.prototype.setRate=function(b){var a=this._e(this._sIdSlider);a.style.width=b*this._iSize+"px"};BxDolVoting.prototype.setCount=function(f){var d=this._e(this._sId);var c=d.getElementsByTagName("b")[0];if(c!=undefined){var b=c.innerHTML.match(/(\d+)/);c.innerHTML=c.innerHTML.replace(b[1],f)}};BxDolVoting.prototype.out=function(){var a=this._e(this._sIdSlider);a.style.width=parseInt(this._iSaveWidth)+"px"};BxDolVoting.prototype.vote=function(a){var c=this;var b=function(e){if(!e.length){c.onvotefail();return}var d=e.match(/([0-9\.]+),([0-9\.]+)/);c._iSaveWidth=a*c._iSize;c.setRate(a);c.setCount(d[2]);c.onvote(d[1],d[2])};jQuery.post(this._sUrl+"vote.php?vote_send_result="+a+"&id="+this._iObjId+"&sys="+this._sSystem,b)};BxDolVoting.prototype.onvote=function(b,a){};BxDolVoting.prototype.onvotefail=function(){};BxDolVoting.prototype._e=function(a){return document.getElementById(a)};BxDolVoting.prototype.sendRequest=function(b,a){jQuery.get(b,a)};
/*--BEGIN: http://mimdich.com//inc/js/sm.js-*/
var messengerUrl="http://mimdich.com/messenger7/messenger.htm";var updaterSwfUrl="http://mimdich.com/messenger7/swf/updater.swf";var friendListSwfUrl="http://mimdich.com/messenger7/swf/friendlist.swf";var messengerSwfUrl="http://mimdich.com/messenger7/swf/preloader.swf";var messengerWidth=680;var messengerHeight=500;function Z5Browser(){this.opera=/opera/i.test(navigator.userAgent);this.ie=(!this.opera&&/msie/i.test(navigator.userAgent));this.ie6=(!this.opera&&/msie 6/i.test(navigator.userAgent));this.firefox=/firefox/i.test(navigator.userAgent);this.chrome=/chrome/i.test(navigator.userAgent);this.safari=(!(/chrome/i.test(navigator.userAgent))&&/webkit|safari|khtml/i.test(navigator.userAgent))}var browserInfo=new Z5Browser();function GetUpdater(){var a=swfobject.getObjectById("z5_updater_swf");if(!a){a=swfobject.getObjectById("z5_friend_list_swf")}return a}function Z5Notification(){this.isInitialized=false;this.position="right";this.divId="z5Notification";this.zIndex=10000;this.width="230px";this.maxHeight="600px";this.borderColor="#909090";this.borderThickness="1px";this.fontColor="#010101";this.fontSize="13px";this.fontFamily="Tahoma";this.linkColor="#0085CF";this.border="1px solid #909090";this.headerFontWeight="bold";this.headerPadding="5px 5px 5px 15px";this.headerBackgroundColor="#D0D0D0";this.closeColor="#777777";this.useScrolling=true;this.messagesHeight="90%";this.multiPanelMargin=" 10px 0 10px 0";this.runMsgrPadding="10px";this.msgMargin="0 0 10px 0";this.msgPadding="5px 5px 5px 15px";this.msgLineHeight="20px";this.borderPadding="0 0 3px 0";this.msgWidth="200px";this.multipanelWidth="200px";this.bgColor="#fff";this.Top="5";this.Right="10";this.Left="5";this.viewAllMode=false;this.max=7;this.messages=[];this.tplBorderBegin='<div style="background-color:{bgColor}; padding:{borderPadding};">';this.tplBorderEnd="</div>";this.multiPanelTpl="<div style='background-color:{bgColor};border:{border}; font-size:{fontSize};font-family:{fontFamily};margin:{multiPanelMargin};padding:{msgPadding};' id='multiPanel'><div style='float:right;'></div><div id='counter'>You have <b style='color:{linkColor};'>{count}</b> messages</div><div style='line-height:{msgLineHeight};'><a style='color:{linkColor};' href='javascript:void(0)' onclick='z5Notification.ViewAll(this)'>{text}</a>&nbsp;&nbsp; <a style='color:{linkColor};' href='javascript:void(0)' onclick='z5Notification.AcceptAll();'>accept all</a>&nbsp;&nbsp; <a style='color:{linkColor};' href='javascript:z5Notification.DeclineAll();'>decline all</a></div>";this.tplNewInvitation=this.tplBorderBegin+'User <b style="color:{linkColor};">{senderName}</b> invites you to chat <br/> <a style="color:{linkColor};" href="javascript:void(0);" onClick="z5Invitation.InvitationAnswer(\'{invitationID}\', 1)" id="{invitationID}">accept</a>&nbsp;&nbsp; <a style="color:{linkColor};" href="javascript:void(0);" onClick="z5Invitation.InvitationAnswer(\'{invitationID}\', 0)">decline</a> '+this.tplBorderEnd;this.tplAntiBlocker=this.tplBorderBegin+" <a style='color:{linkColor}' href='javascript:void(0);' onClick='z5Invitation.RunMessenger(\"{msgrParams}\", \"{winName}\");'> OK </a>"+this.tplBorderEnd;this.Init=function(){div=document.createElement("div");div.id=this.divId;div.style.width=this.width;delta=browserInfo.ie?35:0;div.style.fontSize=this.fontSize;div.style.color=this.fontColor;div.style.position=browserInfo.ie6?"absolute":"fixed";div.style.zIndex=this.zIndex;if(browserInfo.ie){this.delta=0}else{if(browserInfo.firefox||browserInfo.opera||browserInfo.safari){this.delta=25}else{if(browserInfo.chrome){this.delta=10}}}div.innerHTML='<div id="runMsg"></div><div id="top"></div><div id="messages"></div>';document.body.appendChild(div);this.container=document.getElementById("messages");this.runMsg=document.getElementById("runMsg");if(this.useScrolling){this.container.style.height=this.messagesHeight}this.popupContainer=document.getElementById(this.divId);this.top=document.getElementById("top");this.messages=new Array();this.blockHiding=false;switch(this.position){case"left":this.popupContainer.style.top=this.Top+"px";this.popupContainer.style.left=this.Left+"px";break;case"right":default:this.popupContainer.style.top=this.Top+"px";this.popupContainer.style.right=this.Right+"px";break}if(browserInfo.ie6){var a=document.getElementsByTagName("html")[0];a.onscroll=function(){delta=document.documentElement.scrollTop;if(delta>0){currentTopOffset=parseInt(z5Notification.Top);z5Notification.popupContainer.style.top=(currentTopOffset+delta)+"px"}}}this.isInitialized=true};this.ShowAntiBlocker=function(b,a){if(false===this.isInitialized){this.Init()}if(browserInfo.chrome){tplAntiBlocker=this.tplBorderBegin+" Browser has blocked the messenger window. 					 Please unblock it manually. 				  "+this.tplBorderEnd}else{tplAntiBlocker=this.tplBorderBegin+" <a style='color:"+this.linkColor+"' href='javascript:void(0);' onClick='z5Invitation.RunMessenger(\""+b+'", "'+a+"\");'> OK </a>"+this.tplBorderEnd}this.Show(null,null,_t("_Quieren"),tplAntiBlocker,true)};this.ClearAntiBlocker=function(){try{document.getElementById("runMsg").innerHTML=""}catch(a){}};this.NewInvitation=function(c,d,b){this.invitationID=c;this.senderName=b;var a=this.ParseTemplate(this.tplNewInvitation,this);this.Show(c,d,"Invitation",a)};this.DeleteInvitation=function(b){var a=document.getElementById("msg_"+b);if(null!==a){a.parentNode.removeChild(a)}this.FixHeight()};this.Show=function(b,d,e,c,a){if(false===this.isInitialized){this.Init();this.isInitialized=true}cont=document.createElement("div");cont.id="msg_"+b;cont.style.margin=this.msgMargin;cont.style.margin=this.msgMargin;cont.style.color=this.fontColor;cont.style.fontFamily=this.fontFamily;cont.style.fontSize=this.fontSize;cont.style.backgroundColor=this.bgColor;cont.style.border=this.border;cont.innerHTML=this.ParseTemplate("<div style='padding:{headerPadding};clear:both;background-color:{headerBackgroundColor};'><table><tr><td><div style='font-weight:{headerFontWeight};float:left;'>"+e+"</div></td><td align='right' width='1%'><div style='float:right;font-weight:{headerFontWeight};cursor:pointer;' id='close_"+b+"' onclick='z5Notification.Close(this);'><sup style='float:right;color:{closeColor};font-weight:{headerFontWeight};cursor:pointer;font-size:{fontSize};'>x</sup></div></td></tr></table></div><div style='border-top:{border};padding:{msgPadding};line-height:{msgLineHeight};'>"+c+"</div>",this);if(true===a){this.runMsg.innerHTML="";this.runMsg.appendChild(cont);if(this.viewAllMode||this.max<(this.messages.length-1)){this.FixHeight()}}else{this.container.insertBefore(cont,this.container.firstChild)}display="block";this.text="view all";if(b!="runMsgr"){this.messages.push({id:b,header:e,content:c,sender:d})}if(this.messages.length>this.max){if(!this.viewAllMode){this.container.style.display="none"}else{this.text="hide all"}document.getElementById("top").innerHTML=this.GetMultiPanel(this.text,this.messages.length)}};this.Close=function(a){if(id=parseInt(a.id.split("_")[1])){z5Invitation.InvitationAnswer(id,0);this.FixHeight()}else{a.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.removeChild(a.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode)}};this.FixHeight=function(){if(this.messages.length<=this.max){this.popupContainer.style.height=""}else{this.popupContainer.style.height=this.CalculateMaxHeight()}};this.UpdateView=function(){if(this.messages.length>this.max){this.top.innerHTML=this.GetMultiPanel("hide all",this.messages.length)}else{this.top.innerHTML="";this.container.style.height=this.messagesHeight;this.container.style.overflowY="";this.viewAllMode=false;this.FixHeight();this.container.style.display="block"}};this.GetMultiPanel=function(b,a){this.count=a;this.text=b;b=this.ParseTemplate(this.multiPanelTpl,this);return b};this.FindInArray=function(b){for(var a=0;a<this.messages.length;a++){if(this.messages[a].id==b){return a}}return false};this.ClearPanel=function(){this.top.innerHTML="";this.container.innerHTML="";this.messages=[];this.container.style.display="block";this.viewAllMode=false};this.ViewAll=function(a){if(!this.viewAllMode){this.container.style.display="block";this.container.style.height=this.messagesHeight;this.container.style.overflowY=browserInfo.ie6?"scroll":"auto";a.innerHTML="hide  all";this.viewAllMode=true;this.popupContainer.style.height=this.CalculateMaxHeight();if(this.max<(this.messages.length-1)){}}else{this.container.style.display="none";a.innerHTML="view  all";this.viewAllMode=false;this.popupContainer.style.height=""}return false};this.CalculateMaxHeight=function(){screenHeight=browserInfo.ie?document.documentElement.clientHeight:window.innerHeight;return(screenHeight-2*this.Top-delta)+"px"};this.AcceptAll=function(){var a=[];for(var b=0;b<this.messages.length;b++){a.push(this.messages[b].id)}for(var b=0;b<a.length;b++){z5Invitation.InvitationAnswer(a[b],1,true)}this.messages=[];this.UpdateView()};this.DeclineAll=function(){var a=[];for(var b=0;b<this.messages.length;b++){a.push(this.messages[b].id)}for(var b=0;b<a.length;b++){z5Invitation.InvitationAnswer(a[b],0,true)}this.messages=[];this.UpdateView()};this.CloseInvitation=function(b){this.DeleteInvitation(b);var a=this.FindInArray(b);this.messages.splice(a,1);this.UpdateView();delete this.invitations[b]};this.InvitationDeclineNotification=function(a){notification="User <b>"+a+"</b> declined your invitation";this.Show(invitationID,null,"Notification",notification)};this.ParseTemplate=function(c,d){var b="";for(h in d){b=typeof d[h];c=c.replace(new RegExp("{"+h+"}","g"),d[h])}return c}}var z5Notification=new Z5Notification();function Z5InvitationManager(){this.invitations=new Object();this.Invite=function(b,c,a){if(this.invitations[b]){return false}this.invitations[b]={friendID:c,friendName:a};z5Notification.NewInvitation(b,c,a)};this.InvitationAnswer=function(e,c,b){if(!this.invitations[e]){return false}z5Notification.DeleteInvitation(e);if(b){}else{var d=z5Notification.FindInArray(e);z5Notification.messages.splice(d,1);z5Notification.UpdateView()}var a=this.invitations[e];var f=GetUpdater();f.OnInvitationAnswer(e,a.friendID,a.friendName,c);delete this.invitations[e]};this.SendInvitation=function(a){var b=GetUpdater();if(b){b.CreateInvitation(a)}else{setTimeout("CreateInvitation('"+a+"')",3000)}};this.CloseInvitation=function(a){z5Notification.CloseInvitation(a)};this.RunMessenger=function(b,a){if(z5messenger.air){MGRunMessenger(b);return}z5Notification.ClearAntiBlocker();if(true==browserInfo.opera){this.OpenPopupOpera(b,a)}else{this.OpenPopup(b,a)}};this.OpenPopup=function(d,a){var c=messengerUrl+d;var g=this.OpenMessengerWindow(c,a);try{if(browserInfo.chrome){setTimeout(function(j,k,e,i){return function(){if(!k||!k.innerWidth){j.OnPopupBlocked(i,e)}}}(this,g,a,d),5000)}else{var b=g.name;if(!b){this.OnPopupBlocked(d,a)}}}catch(f){this.OnPopupBlocked(d,a)}};this.OpenPopupOpera=function(c,a){var b=messengerUrl+c;t=window.setTimeout("this.OnPopupBlocked('"+c+"','"+a+"')",1000);var d=this.OpenMessengerWindow(b,a);window.clearTimeout(t)};this.OpenMessengerWindow=function(a,b){a=encodeURI(a);if(browserInfo.chrome){z5messenger.msgrHeight+=50}var f=true;var c=messengerWidth;var j=messengerHeight;var d=Math.round((screen.width-c)/2);var i=Math.round((screen.height-j)/2);var e="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no";e+=",resizable="+(f?"yes":"no");e+=",width="+c+",height="+j;e+=",left="+d+",top="+i;e+=",screenX="+d+",screenY="+i;var g=window.open(a,b,e);return g};this.OnPopupBlocked=function(b,a){alert(_t("_DESBLOQ"));z5Notification.ShowAntiBlocker(b,a)}}var z5Invitation=new Z5InvitationManager();function Z5Messenger(){this.uid="";this.flBig=true;this.flSmallSize=59;this.flBigSize=400;this.flMinimizedByDef=false;this.preloaderLogo="http://mimdich.com/messenger7/logo.png";this.preloaderBgColor="0xE1F4FF";this.preloaderTxtColor="";this.debug=false;this.air=false;this.rtmp="";this.langID="en_US";this.flashVersion="9.0.124";this.StartPresence=function(){var a=this.GetUpdaterAndFriendListParams();var b={allowscriptaccess:"always"};document.write(this.MakeSwfHolder("z5_updater_swf","position: absolute;"));swfobject.embedSWF(updaterSwfUrl,"z5_updater_swf","1","1",this.flashVersion,null,a,b)};this.ShowFriendList=function(c,a,d){if(!c){c=320}if(!d){d=15592941}if(a){this.flBigSize=a}else{a=this.flBigSize}if(this.flMinimizedByDef){this.flBig=false;a=this.flSmallSize}var b=this.GetUpdaterAndFriendListParams();b.data=document.location;b.bgColor=d;var e={allowscriptaccess:"always"};document.write(this.MakeSwfHolder("z5_friend_list_swf"));swfobject.embedSWF(friendListSwfUrl,"z5_friend_list_swf",c,a,this.flashVersion,null,b,e)};this.ShowMessenger=function(){var a={data:document.location};a.langID=this.langID;var b={allowscriptaccess:"always"};document.write(this.MakeSwfHolder("z5_messenger_swf"));swfobject.embedSWF(messengerSwfUrl,"z5_messenger_swf","100%","100%",this.flashVersion,null,a,b)};this.Refresh=function(){var a=GetUpdater();if(!a.Refresh()){document.cookie="z5refresh=true"}};this.GetUpdaterAndFriendListParams=function(){var a=document.cookie.indexOf("z5refresh=true")!=-1;document.cookie="z5refresh=false";return{uid:encodeURIComponent(this.uid),debug:encodeURIComponent(this.debug),air:encodeURIComponent(this.air),rtmp:encodeURIComponent(this.rtmp),refresh:encodeURIComponent(a),preloaderLogo:encodeURIComponent(this.preloaderLogo),preloaderBgColor:encodeURIComponent(this.preloaderBgColor),preloaderTxtColor:encodeURIComponent(this.preloaderTxtColor),langID:encodeURIComponent(this.langID)}};this.SwitchFriendListSize=function(){this.flBig=!this.flBig;var a=this.flBig?this.flBigSize:this.flSmallSize;var b=swfobject.getObjectById("z5_friend_list_swf");b.height=a};this.MakeSwfHolder=function(a,c){var b="";if(c){b+='<div style="'+c+'background:white;">'}b+='<div id="'+a+'">';b+="<p>You need to install or upgrade Adobe Flash Player.</p>";b+="<p>Version "+this.flashVersion+" or higher is required.</p>";b+='<p><a href="http://get.adobe.com/flashplayer/">Get Adobe Flash player</a></p>';b+="</div>";if(c){b+="</div>"}return b};this.SendInvitation=function(a){z5Invitation.SendInvitation(a)}}var z5messenger=new Z5Messenger();if(swfobject==undefined){var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);
/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/
return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return}f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e){return}if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return}}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(u,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"}if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}}var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return}var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}}function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u<t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return}var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return}AB+="";AD+="";if(c(q)){W(AE,false);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}()};
/*--BEGIN: http://mimdich.com//inc/js/messenger_core.js-*/
function BxSimpleMessenger(){this.chatBoxSettings=new Object(),this.oDefinedChatBoxes=new Object(),this.systemMessages=new Object(),this.isSent=true,this.bFirstRender=false,this.isProcessed=true;this.mCorkHandler="";this.isProcessedBlocked=false;this.sendMessage=function(e,evElement,iRecipientId){var self=this;if(!this.isSent){alert(this.systemMessages.waitMessage);return}if(!e){if(window.event){e=window.event}else{return}}var n=e.keyCode?e.keyCode:e.charCode;if(n==13){var sMessage=$.trim($(evElement).attr("value"));if(!sMessage){alert(this.systemMessages.emptyMessage)}else{var _sRandom=Math.random();this.isSent=false;this.isProcessedBlocked=true;clearTimeout(this.chatBoxSettings.updateTimeNotifyHandler);this.chatBoxSettings.updateTimeNotifyHandler="";$.post(this.chatBoxSettings.sPageReceiver+"/send_message/"+iRecipientId+"&_r="+_sRandom,{message:encodeURIComponent(sMessage)},function(sAnswer){self.isSent=true;var _self=self;if(sAnswer){alert(sAnswer)}else{$(evElement).attr("value","");self.loadMessageBlock(iRecipientId,function(){var $el=$("#"+self.chatBoxSettings.sHistoryBlockPrefix+iRecipientId);if($el.css("visibility")=="hidden"){self.showChatWindow(self.chatBoxSettings.sHistoryBlockPrefix+iRecipientId,$el.parent())}})}self.isProcessedBlocked=false;self.messageNotification()})}}},this.loadMessageBlock=function(iRecipientId,callback){var self=this;if(!this.checkChatBox(iRecipientId)){var _sRandom=Math.random();$.get(this.chatBoxSettings.sPageReceiver+"/get_chat_box/"+iRecipientId+"&_r="+_sRandom,function(sData){self.proccesReceivedData(sData);if(typeof callback!="undefined"){callback()}})}else{if(typeof callback!="undefined"){callback()}}},this.messageNotification=function(callback){if(this.isProcessedBlocked){return}if(!this.isProcessed){this.cork()}else{var self=this;var iDefinedChatBoxes=this.oDefinedChatBoxes.boxes.length;var iLastMessageId=0;var _sRandom=Math.random();var sRegisteredChatBoxes="";for(var i=0;i<iDefinedChatBoxes;i++){iLastMessageId=this.oDefinedChatBoxes.boxes[i].last_message;sRegisteredChatBoxes+=this.oDefinedChatBoxes.boxes[i].box_id+":"+iLastMessageId+","}$.post(this.chatBoxSettings.sPageReceiver+"/new_messages&_r="+_sRandom,{registered_chat_boxes:[sRegisteredChatBoxes]},function(sData){self.proccesReceivedData(sData);if(typeof callback!="undefined"){callback()}if(self.isProcessed&&!self.isProcessedBlocked){self.chatBoxSettings.updateTimeNotifyHandler=setTimeout(function(){self.messageNotification()},self.chatBoxSettings.updateTime)}})}},this.cork=function(){var self=this;if(this.isProcessed&&!self.isProcessedBlocked){clearInterval(this.mCorkHandler);this.messageNotification()}else{this.mCorkHandler=setTimeout(function(){self.cork()},100)}},this.stopBlink=function(iChatBoxIndex){if(typeof this.oDefinedChatBoxes.boxes[iChatBoxIndex]!="undefined"){clearInterval(this.oDefinedChatBoxes.boxes[iChatBoxIndex].blink_handler);this.oDefinedChatBoxes.boxes[iChatBoxIndex].blink_handler="";this.oDefinedChatBoxes.boxes[iChatBoxIndex].blink_value=""}},this.setBlinkMode=function(iChatBoxIndex,$oBlock){var self=this;var rHandler=setInterval(function(){self.oDefinedChatBoxes.boxes[iChatBoxIndex].blink_handler=rHandler;if(!self.oDefinedChatBoxes.boxes[iChatBoxIndex].blink_value){self.oDefinedChatBoxes.boxes[iChatBoxIndex].blink_value=0}var $oParents=$oBlock.parents("."+self.chatBoxSettings.sChatBox+":first");$oParents.addClass("active_chat_block_blink_effect");setTimeout(function(){$oParents.removeClass("active_chat_block_blink_effect");self.oDefinedChatBoxes.boxes[iChatBoxIndex].blink_value++;if(self.oDefinedChatBoxes.boxes[iChatBoxIndex].blink_value>=self.chatBoxSettings.iMaxBlinkCounter){if(!$oParents.hasClass("active_chat_block_blink_effect")){$oParents.addClass("active_chat_block_blink_effect")}self.stopBlink(iChatBoxIndex);return}},500)},1000)},this.elScroll=function(oEl){iHeight=this.getChatBoxContentHeight(oEl);oEl.scrollTop(iHeight)},this.proccesReceivedData=function(sData){if(this.isProcessedBlocked){return}if(sData){this.isProcessed=false;var self=this;var oResponse=eval("("+sData+")");var iResponseCount=oResponse.senders.length;for(var i=0;i<iResponseCount;i++){var iSenderId=oResponse.senders[i].sender_id;if(!iSenderId){continue}var iChatBoxIndex=this.getChatBoxObjectIndex(iSenderId);var bBoxUndefined=false;if(!this.checkChatBox(iSenderId)){this.oDefinedChatBoxes.boxes[this.oDefinedChatBoxes.boxes.length]={box_id:iSenderId,status:oResponse.senders[i].sender_status,status_text_update:oResponse.senders[i].status_update_time,blink_handler:0,blink_value:0,last_message:parseInt(oResponse.senders[i].last_message),count_messages:oResponse.senders[i].count_messages};bBoxUndefined=true}if(oResponse.senders[i].chat_box&&bBoxUndefined){$("#"+this.chatBoxSettings.sOutputBlockId).append(oResponse.senders[i].chat_box)}var $oWrapper=$("#"+this.chatBoxSettings.sHistoryBlockPrefix+iSenderId);var $el=$oWrapper.find("div.messages_section:first");if(oResponse.senders[i].messages_list){if(oResponse.senders[i].messages_list!="built-in"){var iChatBoxHeight=$el.outerHeight();var iOldChatBoxContentHeight=this.getChatBoxContentHeight($el);var sVisibleState=this.getVisibility($el);if((sVisibleState=="hidden"&&!this.oDefinedChatBoxes.boxes[iChatBoxIndex].blink_handler)||bBoxUndefined){this.setBlinkMode(iChatBoxIndex,$el)}$el.append(oResponse.senders[i].messages_list);iOldChatBoxContentHeight=iOldChatBoxContentHeight-iChatBoxHeight;if(iOldChatBoxContentHeight<=$el.scrollTop()&&sVisibleState=="visible"){this.elScroll($el)}if(this.oDefinedChatBoxes.boxes[iChatBoxIndex].count_messages>this.chatBoxSettings.iNumberVisibleMessages){var $oKids=$("#"+this.chatBoxSettings.sHistoryBlockPrefix+oResponse.senders[i].sender_id+" div.messages_section").children();var iKidsCount=$oKids.length;var iRowsDelete=iKidsCount-this.chatBoxSettings.iNumberVisibleMessages;this.oDefinedChatBoxes.boxes[iChatBoxIndex].count_messages-=iRowsDelete;for(var j=0;j<iRowsDelete;j++){$("#"+this.chatBoxSettings.sHistoryBlockPrefix+oResponse.senders[i].sender_id+" div.messages_section > div:first-child").remove()}}}else{if(this.bFirstRender&&oResponse.senders[i].messages_list=="built-in"){if(this.getVisibility($el)!="visible"){this.setBlinkMode(iChatBoxIndex,$el)}}}}if(typeof this.oDefinedChatBoxes.boxes[iChatBoxIndex]!="undefined"&&!bBoxUndefined){if(this.oDefinedChatBoxes.boxes[iChatBoxIndex].status_text_update!=oResponse.senders[i].status_update_time){this.getStatusText(iSenderId);this.oDefinedChatBoxes.boxes[iChatBoxIndex].status_text_update=oResponse.senders[i].status_update_time}if(this.oDefinedChatBoxes.boxes[iChatBoxIndex].status!=oResponse.senders[i].sender_status){this.getSenderStatus(iSenderId);this.oDefinedChatBoxes.boxes[iChatBoxIndex].status=oResponse.senders[i].sender_status}this.oDefinedChatBoxes.boxes[iChatBoxIndex].last_message=parseInt(oResponse.senders[i].last_message);if(oResponse.senders[i].count_messages){this.oDefinedChatBoxes.boxes[iChatBoxIndex].count_messages+=parseInt(oResponse.senders[i].count_messages)}}}this.isProcessed=true}if(!this.bFirstRender){this.bFirstRender=true}},this.getVisibility=function(oObj){var sVisibleState=oObj.css("visibility");if(sVisibleState=="inherit"){sVisibleState=oObj.parent().css("visibility")}return sVisibleState},this.getChatBoxContentHeight=function($oChatBox){var iChatBoxContentHeight=0;$oChatBox.children().each(function(){iChatBoxContentHeight=iChatBoxContentHeight+$(this).outerHeight()});return iChatBoxContentHeight},this.checkChatBox=function(iChatBoxId){var iDefinedChatBoxes=this.oDefinedChatBoxes.boxes.length;for(var i=0;i<iDefinedChatBoxes;i++){if(this.oDefinedChatBoxes.boxes[i].box_id==iChatBoxId){return 1}}return 0},this.getChatBoxObjectIndex=function(iSenderId){var iDefinedChatBoxes=this.oDefinedChatBoxes.boxes.length;var iChatBoxIndex=0;for(var i=0;i<iDefinedChatBoxes;i++){if(this.oDefinedChatBoxes.boxes[i].box_id==iSenderId){return iChatBoxIndex=i}}return iChatBoxIndex},this.showChatWindow=function(sWindowId,oParentWindow){var $el=$("#"+sWindowId);if(typeof oParentWindow=="undefined"){var oParentWindow=$("#"+sWindowId).parent()}if($el.css("visibility")=="visible"||$el.css("visibility")=="inherit"){$(oParentWindow).removeClass("active_chat_block");$el.css("visibility","hidden")}else{var iSenderId=sWindowId.replace(/[^0-9]*/,"");var iChatBoxIndex=this.getChatBoxObjectIndex(iSenderId);this.stopBlink(iChatBoxIndex);$(oParentWindow).addClass("active_chat_block");$(oParentWindow).removeClass("active_chat_block_blink_effect");if(this.chatBoxSettings.sMemberMenuPosition=="bottom"){$el.css("bottom","0")}else{$el.css("top",this.chatBoxSettings.iParentContainerHeight)}$el.css("visibility","visible");this.placeTop(sWindowId,this)}var $oMessagesSection=$el.find("div.messages_section:first");this.elScroll($oMessagesSection)},this.facePlate=function(event,oCurrentWindow,calback){jQuery.each(jQuery.browser,function(i){if($.browser.msie){event.cancelBubble=true}else{event.stopPropagation()}});if(typeof calback!="undefined"){calback(oCurrentWindow,this)}},this.placeTop=function(vCurrentChatWindow,self){var iZindex=0;var iTempZindex=0;$("#"+self.chatBoxSettings.sOutputBlockId+" div."+self.chatBoxSettings.sChatBox).each(function(){iTempZindex=parseInt($(this).css("z-index"));if(iZindex<iTempZindex){iZindex=iTempZindex}});iZindex+=1;if(typeof vCurrentChatWindow!="object"){var $el=$("#"+vCurrentChatWindow)}else{var $el=$(vCurrentChatWindow)}$el.css("z-index",iZindex);$el.parent().css("z-index",iZindex)},this.closeChatWindow=function(iSenderId){var _sRandom=Math.random();var self=this;$.get(this.chatBoxSettings.sPageReceiver+"/close_window/"+iSenderId,{_r:_sRandom},function(sData){var iChatBoxCount=self.oDefinedChatBoxes.boxes.length;for(var i=0;i<iChatBoxCount;i++){if(typeof self.oDefinedChatBoxes.boxes[i]!="undefined"&&self.oDefinedChatBoxes.boxes[i].box_id==iSenderId){self.oDefinedChatBoxes.boxes.splice(i,1);$("#"+self.chatBoxSettings.sHistoryBlockPrefix+iSenderId).parent().remove()}}})},this.getStatusText=function(iSenderId){var _sRandom=Math.random();$("#"+this.chatBoxSettings.sHistoryBlockPrefix+iSenderId).find(".status_text").load(this.chatBoxSettings.sPageReceiver+"/get_status_text/"+iSenderId+"&_r="+_sRandom)},this.getSenderStatus=function(iSenderId){var self=this;var _sRandom=Math.random();$.get(this.chatBoxSettings.sPageReceiver+"/get_status/"+iSenderId,{_r:_sRandom},function(sImgPath){$("#"+self.chatBoxSettings.sHistoryBlockPrefix+iSenderId).parent().find(".sender_status").attr("src",sImgPath);self.getSenderThumbnail(iSenderId)})},this.getSenderThumbnail=function(iSenderId){var _sRandom=Math.random();$("#"+this.chatBoxSettings.sHistoryBlockPrefix+iSenderId).parent().find(".sender_thumb").load(this.chatBoxSettings.sPageReceiver+"/get_sender_thumb/"+iSenderId+"&_r="+_sRandom)}}var oSimpleMessenger=new BxSimpleMessenger();
/*--BEGIN: http://mimdich.com//inc/js/gplus.js-*/
window.___jsl=window.___jsl||{};
window.___jsl.h=window.___jsl.h||'r;gc\/23980661-3686120e';
window.___jsl.l=[];
window.__GOOGLEAPIS=window.__GOOGLEAPIS||{};
window.__GOOGLEAPIS.gwidget=window.__GOOGLEAPIS.gwidget||{};
window.__GOOGLEAPIS.gwidget.superbatch=false;window.__GOOGLEAPIS.iframes=window.__GOOGLEAPIS.iframes||{};
window.__GOOGLEAPIS.iframes.plusone=window.__GOOGLEAPIS.iframes.plusone_m=window.__GOOGLEAPIS.iframes.plusone||{url:':socialhost:/u/:session_index:/_/+1/fastbutton',params:{count:'',size:'',url:''}};window.___gpq=[];
window.gapi=window.gapi||{};
window.gapi.plusone=window.gapi.plusone||(function(){
  function f(n){return function(){window.___gpq.push(n,arguments)}}
  return{go:f('go'),render:f('render')}})();
function __bsld(){var p=window.gapi.plusone=window.googleapisv0.plusone;var f;while(f=window.___gpq.shift()){
  p[f]&&p[f].apply(p,window.___gpq.shift())}
if (gadgets.config.get("gwidget")["parsetags"]!=="explicit"){gapi.plusone.go();}}
window['___jsl'] = window['___jsl'] || {};window['___jsl']['u'] = 'https:\/\/apis.google.com\/js\/plusone.js';window['___jsl']['f'] = ['googleapis.client','plusone'];window['___jsl']['ms'] = 'https://plus.google.com';(window['___jsl']['ci'] = (window['___jsl']['ci'] || [])).push({"gwidget":{"parsetags":"onload","superbatch":false},"iframes":{"sharebox":{"params":{"json":"&"},"url":":socialhost:/u/:session_index:/_/sharebox/dialog"},":socialhost:":"https://apis.google.com","plusone_m":{"url":":socialhost:/u/:session_index:/_/+1/fastbutton","params":{"count":"","size":"","url":""}},"card":{"params":{"style":"#","userid":"&"},"url":":socialhost:/u/:session_index:/_/hovercard/card"},"plusone":{"url":":socialhost:/u/:session_index:/_/+1/fastbutton","params":{"count":"","size":"","url":""}}},"googleapis.config":{"requestCache":{"enabled":true},"methods":{"chili.people.list":true,"pos.plusones.list":true,"pos.plusones.get":true,"pos.plusones.getDefaultAcl":{"cache":{"enabled":true}},"chili.people.get":true,"pos.plusones.insert":true,"chili.activities.list":true,"pos.plusones.delete":true,"chili.activities.get":true,"chili.activities.search":true,"pos.plusones.getSignupState":true},"sessionCache":{"enabled":true},"root-1p":"https://clients6.google.com","root":"https://www.googleapis.com","xd3":"/static/proxy.html","versions":{"chili":"v1","pos":"v1"},"rpc":"/rpc","transport":{"isProxyShared":true},"developerKey":"AIzaSyCKSbrvQasunBoV16zDH9R33D88CeLr9gQ","jsh":"r;gc/23980661-3686120e","auth":{"useInterimAuth":false}}});var gapi=window.gapi||{};
(function(){var o=void 0,w=void 0,x="___jsl",L="h",r="l",M="m",y="ms",z="cu",A="c",N="o",B="p",s="https://ssl.gstatic.com",O="/webclient/js",C="https://apis.google.com",D=".js",P="gcjs-3p",Q=/^(https?:)?\/\/([^/:@]*)(:[0-9]+)?(\/(\w|[-.,:!=/])*)(\?[^#]*)?(#.*)?$/,E=/^[?#]([^&]*&)*jsh=([^&]*)/,F="d",p="r",R="f",t="m",S="n",T="sync",U="callback",G="config",H="nodep",I="gapi.load: ",u=function(f,c){o&&o(f,c);throw I+f+(c&&" "+c);},J=function(f){w&&w(f);var c=window.console;(c=c&&c.warn)&&c(I+f)},K=function(f){f.sort();
for(var c=0;c<f.length;)!f[c]||c&&f[c]==f[c-1]?f.splice(c,1):++c},V=function(f){if(document.readyState!="loading")return false;if(typeof window.___gapisync!="undefined")return window.___gapisync;if(f&&(f=f[T],typeof f!="undefined"))return f;for(var f=document.getElementsByTagName("meta"),c=0,h;h=f[c];++c)if("generator"==h.getAttribute("name")&&"blogger"==h.getAttribute("content"))return true;return false},q=function(f,c){var h,i={};typeof c!=="function"?(i=c||{},h=i[U]):h=c;var j=window[x]=window[x]||
{},n=f.split(":");i[H]||K(n);var a=j[r]=j[r]||[];K(a);var d,e=window.location.search,g=window.location.hash;d=j[L];if(e=e&&E.exec(e)||g&&E.exec(g))try{d=decodeURIComponent(e[2])}catch(q){J("Invalid hint "+e[2])}d||u("No hint present","");for(var b,e=true,k=g=0,l;e&&(b=n[g])&&(l=a[k]);)b==l?++g:b<l&&(e=false),++k;b=e&&!b;if(!b){b=d.split(";");a:{d=n;var e=a,m=b,a=j,g=i;b=m.shift();l=b==p?s:b==t?a[y]||C:m.shift();b==p?(k=m.shift(),k=(k.indexOf("/")?O+"/":"")+k):k=m.shift();var o=b==F,v=o&&m.shift()||
P,m=o&&m.shift();if(b==F)g=k,k=v,v=m,d="/"+d.join(":")+(e.length?"!"+e.join(":"):"")+D+"?container="+k+"&c=2&jsload=0",g&&(d+="&r="+g),v=="d"&&(d+="&debug=1");else if(b==p||b==R)g=k,d=(g.indexOf("/")?"/":"")+g+"/"+d.join("__")+(e.length?"--"+e.join("__"):"")+D;else if(b==t||b==S)e=k,d=d.join(",").replace(/\./g,"_").replace(/-/g,"_"),d=e.replace("__features__",d),d=g[H]?d.replace("/d=1/","/d=0/"):d;else{J("Unknown hint type "+b);a="";break a}if(l){l+=d;d=l;g=Q.exec(d);if(!(e=!g))if(!(e=!!/\.\.|\/\//.test(g[4])))e=
d,g=g[2],b==p?a=e.substr(0,s.length)==s:b==t?(a=a[y]||C,a=e.substr(0,a.length)==a):(a=a[M],g&&a?(b=g.lastIndexOf(a),a=(b==0||a.charAt(0)=="."||g.charAt(b-1)==".")&&g.length-a.length==b):a=false),e=!a;e&&u("Invalid URI",d);a=l}else a=""}i[G]&&(j[z]=j[z]||[]).push(i[G]);if(a){h&&(j[B]=n,j[A]?u("Pending callback",a):(j[A]=h,j[N]=1));[].push.apply(j[r],n);V(i)?document.write('<script src="'+a+'"><\/script>'):(i=a,h=document.createElement("script"),h.setAttribute("src",i),i=document.getElementsByTagName("script")[0],
i.parentNode.insertBefore(h,i));return}}h&&(j[B]=n,h.call(null))};gapi.loader={load:q};gapi.load=q;(window.gapi=window.gapi||{}).load=q})();
gapi.load('googleapis.client:plusone', {'callback': window['__bsld']  });
/*--BEGIN: http://mimdich.com//plugins/jquery/jquery.form.js-*/
(function(b){b.fn.ajaxSubmit=function(s){if(!this.length){a("ajaxSubmit: skipping submit process - no element selected");return this}if(typeof s=="function"){s={success:s}}var e=b.trim(this.attr("action"));if(e){e=(e.match(/^([^#]+)/)||[])[1]}e=e||window.location.href||"";s=b.extend({url:e,type:this.attr("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},s||{});var u={};this.trigger("form-pre-serialize",[this,s,u]);if(u.veto){a("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(s.beforeSerialize&&s.beforeSerialize(this,s)===false){a("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var m=this.formToArray(s.semantic);if(s.data){s.extraData=s.data;for(var f in s.data){if(s.data[f] instanceof Array){for(var g in s.data[f]){m.push({name:f,value:s.data[f][g]})}}else{m.push({name:f,value:s.data[f]})}}}if(s.beforeSubmit&&s.beforeSubmit(m,this,s)===false){a("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[m,this,s,u]);if(u.veto){a("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var d=b.param(m);if(s.type.toUpperCase()=="GET"){s.url+=(s.url.indexOf("?")>=0?"&":"?")+d;s.data=null}else{s.data=d}var t=this,l=[];if(s.resetForm){l.push(function(){t.resetForm()})}if(s.clearForm){l.push(function(){t.clearForm()})}if(!s.dataType&&s.target){var p=s.success||function(){};l.push(function(j){b(s.target).html(j).each(p,arguments)})}else{if(s.success){l.push(s.success)}}s.success=function(q,k){for(var n=0,j=l.length;n<j;n++){l[n].apply(s,[q,k,t])}};var c=b("input:file",this).fieldValue();var r=false;for(var i=0;i<c.length;i++){if(c[i]){r=true}}var h=false;if((c.length&&s.iframe!==false)||s.iframe||(r&&s.iframe!==false)||h){if(s.closeKeepAlive){b.get(s.closeKeepAlive,o)}else{o()}}else{b.ajax(s)}this.trigger("form-submit-notify",[this,s]);return this;function o(){var w=t[0];if(b(":input[name=submit]",w).length){alert('Error: Form elements must not be named "submit".');return}var q=b.extend({},b.ajaxSettings,s);var G=b.extend(true,{},b.extend(true,{},b.ajaxSettings),q);var v="jqFormIO"+(new Date().getTime());var C=b('<iframe id="'+v+'" name="'+v+'" src="'+q.iframeSrc+'" />');var E=C[0];C.css({position:"absolute",top:"-1000px",left:"-1000px"});var F={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1;C.attr("src",q.iframeSrc)}};var D=q.global;if(D&&!b.active++){b.event.trigger("ajaxStart")}if(D){b.event.trigger("ajaxSend",[F,q])}if(G.beforeSend&&G.beforeSend(F,G)===false){G.global&&b.active--;return}if(F.aborted){return}var k=0;var z=0;var j=w.clk;if(j){var x=j.name;if(x&&!j.disabled){s.extraData=s.extraData||{};s.extraData[x]=j.value;if(j.type=="image"){s.extraData[name+".x"]=w.clk_x;s.extraData[name+".y"]=w.clk_y}}}setTimeout(function(){var J=t.attr("target"),H=t.attr("action");w.setAttribute("target",v);if(w.getAttribute("method")!="POST"){w.setAttribute("method","POST")}if(w.getAttribute("action")!=q.url){w.setAttribute("action",q.url)}if(!s.skipEncodingOverride){t.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"})}if(q.timeout){setTimeout(function(){z=true;A()},q.timeout)}var I=[];try{if(s.extraData){for(var K in s.extraData){I.push(b('<input type="hidden" name="'+K+'" value="'+s.extraData[K]+'" />').appendTo(w)[0])}}C.appendTo("body");E.attachEvent?E.attachEvent("onload",A):E.addEventListener("load",A,false);w.submit()}finally{w.setAttribute("action",H);J?w.setAttribute("target",J):t.removeAttr("target");b(I).remove()}},10);var y=50;function A(){if(k++){return}E.detachEvent?E.detachEvent("onload",A):E.removeEventListener("load",A,false);var H=true;try{if(z){throw"timeout"}var I,L;L=E.contentWindow?E.contentWindow.document:E.contentDocument?E.contentDocument:E.document;var M=q.dataType=="xml"||L.XMLDocument||b.isXMLDoc(L);a("isXml="+M);if(!M&&(L.body==null||L.body.innerHTML=="")){if(--y){k=0;setTimeout(A,100);return}a("Could not access iframe DOM after 50 tries.");return}F.responseText=L.body?L.body.innerHTML:null;F.responseXML=L.XMLDocument?L.XMLDocument:L;F.getResponseHeader=function(O){var N={"content-type":q.dataType};return N[O]};if(q.dataType=="json"||q.dataType=="script"){var n=L.getElementsByTagName("textarea")[0];if(n){F.responseText=n.value}else{var K=L.getElementsByTagName("pre")[0];if(K){F.responseText=K.innerHTML}}}else{if(q.dataType=="xml"&&!F.responseXML&&F.responseText!=null){F.responseXML=B(F.responseText)}}I=b.httpData(F,q.dataType)}catch(J){H=false;b.handleError(q,F,"error",J)}if(H){q.success(I,"success");if(D){b.event.trigger("ajaxSuccess",[F,q])}}if(D){b.event.trigger("ajaxComplete",[F,q])}if(D&&!--b.active){b.event.trigger("ajaxStop")}if(q.complete){q.complete(F,H?"success":"error")}setTimeout(function(){C.remove();F.responseXML=null},100)}function B(n,H){if(window.ActiveXObject){H=new ActiveXObject("Microsoft.XMLDOM");H.async="false";H.loadXML(n)}else{H=(new DOMParser()).parseFromString(n,"text/xml")}return(H&&H.documentElement&&H.documentElement.tagName!="parsererror")?H:null}}};b.fn.ajaxForm=function(c){return this.ajaxFormUnbind().bind("submit.form-plugin",function(){b(this).ajaxSubmit(c);return false}).bind("click.form-plugin",function(i){var h=i.target;var f=b(h);if(!(f.is(":submit,input:image"))){var d=f.closest(":submit");if(d.length==0){return}h=d[0]}var g=this;g.clk=h;if(h.type=="image"){if(i.offsetX!=undefined){g.clk_x=i.offsetX;g.clk_y=i.offsetY}else{if(typeof b.fn.offset=="function"){var j=f.offset();g.clk_x=i.pageX-j.left;g.clk_y=i.pageY-j.top}else{g.clk_x=i.pageX-h.offsetLeft;g.clk_y=i.pageY-h.offsetTop}}}setTimeout(function(){g.clk=g.clk_x=g.clk_y=null},100)})};b.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};b.fn.formToArray=function(q){var p=[];if(this.length==0){return p}var d=this[0];var h=q?d.getElementsByTagName("*"):d.elements;if(!h){return p}for(var k=0,m=h.length;k<m;k++){var e=h[k];var f=e.name;if(!f){continue}if(q&&d.clk&&e.type=="image"){if(!e.disabled&&d.clk==e){p.push({name:f,value:b(e).val()});p.push({name:f+".x",value:d.clk_x},{name:f+".y",value:d.clk_y})}continue}var r=b.fieldValue(e,true);if(r&&r.constructor==Array){for(var g=0,c=r.length;g<c;g++){p.push({name:f,value:r[g]})}}else{if(r!==null&&typeof r!="undefined"){p.push({name:f,value:r})}}}if(!q&&d.clk){var l=b(d.clk),o=l[0],f=o.name;if(f&&!o.disabled&&o.type=="image"){p.push({name:f,value:l.val()});p.push({name:f+".x",value:d.clk_x},{name:f+".y",value:d.clk_y})}}return p};b.fn.formSerialize=function(c){return b.param(this.formToArray(c))};b.fn.fieldSerialize=function(d){var c=[];this.each(function(){var h=this.name;if(!h){return}var f=b.fieldValue(this,d);if(f&&f.constructor==Array){for(var g=0,e=f.length;g<e;g++){c.push({name:h,value:f[g]})}}else{if(f!==null&&typeof f!="undefined"){c.push({name:this.name,value:f})}}});return b.param(c)};b.fn.fieldValue=function(h){for(var g=[],e=0,c=this.length;e<c;e++){var f=this[e];var d=b.fieldValue(f,h);if(d===null||typeof d=="undefined"||(d.constructor==Array&&!d.length)){continue}d.constructor==Array?b.merge(g,d):g.push(d)}return g};b.fieldValue=function(c,j){var e=c.name,p=c.type,q=c.tagName.toLowerCase();if(typeof j=="undefined"){j=true}if(j&&(!e||c.disabled||p=="reset"||p=="button"||(p=="checkbox"||p=="radio")&&!c.checked||(p=="submit"||p=="image")&&c.form&&c.form.clk!=c||q=="select"&&c.selectedIndex==-1)){return null}if(q=="select"){var k=c.selectedIndex;if(k<0){return null}var m=[],d=c.options;var g=(p=="select-one");var l=(g?k+1:d.length);for(var f=(g?k:0);f<l;f++){var h=d[f];if(h.selected){var o=h.value;if(!o){o=(h.attributes&&h.attributes.value&&!(h.attributes.value.specified))?h.text:h.value}if(g){return o}m.push(o)}}return m}return c.value};b.fn.clearForm=function(){return this.each(function(){b("input,select,textarea",this).clearFields()})};b.fn.clearFields=b.fn.clearInputs=function(){return this.each(function(){var d=this.type,c=this.tagName.toLowerCase();if(d=="text"||d=="password"||c=="textarea"){this.value=""}else{if(d=="checkbox"||d=="radio"){this.checked=false}else{if(c=="select"){this.selectedIndex=-1}}}})};b.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset()}})};b.fn.enable=function(c){if(c==undefined){c=true}return this.each(function(){this.disabled=!c})};b.fn.selected=function(c){if(c==undefined){c=true}return this.each(function(){var d=this.type;if(d=="checkbox"||d=="radio"){this.checked=c}else{if(this.tagName.toLowerCase()=="option"){var e=b(this).parent("select");if(c&&e[0]&&e[0].type=="select-one"){e.find("option").selected(false)}this.selected=c}}})};function a(){if(b.fn.ajaxSubmit.debug&&window.console&&window.console.log){window.console.log("[jquery.form] "+Array.prototype.join.call(arguments,""))}}})(jQuery);
/*--BEGIN: http://mimdich.com//plugins/jquery/ui.core.js-*/
jQuery.ui||(function(c){var i=c.fn.remove,d=c.browser.mozilla&&(parseFloat(c.browser.version)<1.9);c.ui={version:"1.7.2",plugin:{add:function(k,l,n){var m=c.ui[k].prototype;for(var j in n){m.plugins[j]=m.plugins[j]||[];m.plugins[j].push([l,n[j]])}},call:function(j,l,k){var n=j.plugins[l];if(!n||!j.element[0].parentNode){return}for(var m=0;m<n.length;m++){if(j.options[n[m][0]]){n[m][1].apply(j.element,k)}}}},contains:function(k,j){return document.compareDocumentPosition?k.compareDocumentPosition(j)&16:k!==j&&k.contains(j)},hasScroll:function(m,k){if(c(m).css("overflow")=="hidden"){return false}var j=(k&&k=="left")?"scrollLeft":"scrollTop",l=false;if(m[j]>0){return true}m[j]=1;l=(m[j]>0);m[j]=0;return l},isOverAxis:function(k,j,l){return(k>j)&&(k<(j+l))},isOver:function(o,k,n,m,j,l){return c.ui.isOverAxis(o,n,j)&&c.ui.isOverAxis(k,m,l)},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(k,j,l){var m=l!==undefined;return(j=="role"?(m?f.call(this,k,j,"wairole:"+l):(f.apply(this,arguments)||"").replace(b,"")):(a.test(j)?(m?k.setAttributeNS(h,j.replace(a,"aaa:"),l):f.call(this,k,j.replace(a,"aaa:"))):f.apply(this,arguments)))};c.fn.removeAttr=function(j){return(a.test(j)?this.each(function(){this.removeAttributeNS(h,j.replace(a,""))}):e.call(this,j))}}c.fn.extend({remove:function(){c("*",this).add(this).each(function(){c(this).triggerHandler("remove")});return i.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 j;if((c.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){j=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{j=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"))||!j.length?c(document):j}});c.extend(c.expr[":"],{data:function(l,k,j){return !!c.data(l,j[3])},focusable:function(k){var l=k.nodeName.toLowerCase(),j=c.attr(k,"tabindex");return(/input|select|textarea|button|object/.test(l)?!k.disabled:"a"==l||"area"==l?k.href||!isNaN(j):!isNaN(j))&&!c(k)["area"==l?"parents":"closest"](":hidden").length},tabbable:function(k){var j=c.attr(k,"tabindex");return(isNaN(j)||j>=0)&&c(k).is(":focusable")}});function g(m,n,o,l){function k(q){var p=c[m][n][q]||[];return(typeof p=="string"?p.split(/,?\s+/):p)}var j=k("getter");if(l.length==1&&typeof l[0]=="string"){j=j.concat(k("getterSetter"))}return(c.inArray(o,j)!=-1)}c.widget=function(k,j){var l=k.split(".")[0];k=k.split(".")[1];c.fn[k]=function(p){var n=(typeof p=="string"),o=Array.prototype.slice.call(arguments,1);if(n&&p.substring(0,1)=="_"){return this}if(n&&g(l,k,p,o)){var m=c.data(this[0],k);return(m?m[p].apply(m,o):undefined)}return this.each(function(){var q=c.data(this,k);(!q&&!n&&c.data(this,k,new c[l][k](this,p))._init());(q&&n&&c.isFunction(q[p])&&q[p].apply(q,o))})};c[l]=c[l]||{};c[l][k]=function(o,n){var m=this;this.namespace=l;this.widgetName=k;this.widgetEventPrefix=c[l][k].eventPrefix||k;this.widgetBaseClass=l+"-"+k;this.options=c.extend({},c.widget.defaults,c[l][k].defaults,c.metadata&&c.metadata.get(o)[k],n);this.element=c(o).bind("setData."+k,function(q,p,r){if(q.target==o){return m._setData(p,r)}}).bind("getData."+k,function(q,p){if(q.target==o){return m._getData(p)}}).bind("remove",function(){return m.destroy()})};c[l][k].prototype=c.extend({},c.widget.prototype,j);c[l][k].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(l,m){var k=l,j=this;if(typeof l=="string"){if(m===undefined){return this._getData(l)}k={};k[l]=m}c.each(k,function(n,o){j._setData(n,o)})},_getData:function(j){return this.options[j]},_setData:function(j,k){this.options[j]=k;if(j=="disabled"){this.element[k?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",k)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(l,m,n){var p=this.options[l],j=(l==this.widgetEventPrefix?l:this.widgetEventPrefix+l);m=c.Event(m);m.type=j;if(m.originalEvent){for(var k=c.event.props.length,o;k;){o=c.event.props[--k];m[o]=m.originalEvent[o]}}this.element.trigger(m,n);return !(c.isFunction(p)&&p.call(this.element[0],m,n)===false||m.isDefaultPrevented())}};c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var j=this;this.element.bind("mousedown."+this.widgetName,function(k){return j._mouseDown(k)}).bind("click."+this.widgetName,function(k){if(j._preventClickEvent){j._preventClickEvent=false;k.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(l){l.originalEvent=l.originalEvent||{};if(l.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(l));this._mouseDownEvent=l;var k=this,m=(l.which==1),j=(typeof this.options.cancel=="string"?c(l.target).parents().add(l.target).filter(this.options.cancel).length:false);if(!m||j||!this._mouseCapture(l)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){k.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(l)&&this._mouseDelayMet(l)){this._mouseStarted=(this._mouseStart(l)!==false);if(!this._mouseStarted){l.preventDefault();return true}}this._mouseMoveDelegate=function(n){return k._mouseMove(n)};this._mouseUpDelegate=function(n){return k._mouseUp(n)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(c.browser.safari||l.preventDefault());l.originalEvent.mouseHandled=true;return true},_mouseMove:function(j){if(c.browser.msie&&!j.button){return this._mouseUp(j)}if(this._mouseStarted){this._mouseDrag(j);return j.preventDefault()}if(this._mouseDistanceMet(j)&&this._mouseDelayMet(j)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,j)!==false);(this._mouseStarted?this._mouseDrag(j):this._mouseUp(j))}return !this._mouseStarted},_mouseUp:function(j){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(j.target==this._mouseDownEvent.target);this._mouseStop(j)}return false},_mouseDistanceMet:function(j){return(Math.max(Math.abs(this._mouseDownEvent.pageX-j.pageX),Math.abs(this._mouseDownEvent.pageY-j.pageY))>=this.options.distance)},_mouseDelayMet:function(j){return this.mouseDelayMet},_mouseStart:function(j){},_mouseDrag:function(j){},_mouseStop:function(j){},_mouseCapture:function(j){return true}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);
/*--BEGIN: http://mimdich.com//plugins/jquery/ui.slider.js-*/
(function(a){a.widget("ui.slider",a.extend({},a.ui.mouse,{_init:function(){var b=this,c=this.options;this._keySliding=false;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");this.range=a([]);if(c.range){if(c.range===true){this.range=a("<div></div>");if(!c.values){c.values=[this._valueMin(),this._valueMin()]}if(c.values.length&&c.values.length!=2){c.values=[c.values[0],c.values[0]]}}else{this.range=a("<div></div>")}this.range.appendTo(this.element).addClass("ui-slider-range");if(c.range=="min"||c.range=="max"){this.range.addClass("ui-slider-range-"+c.range)}this.range.addClass("ui-widget-header")}if(a(".ui-slider-handle",this.element).length==0){a('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle")}if(c.values&&c.values.length){while(a(".ui-slider-handle",this.element).length<c.values.length){a('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle")}}this.handles=a(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(d){d.preventDefault()}).hover(function(){if(!c.disabled){a(this).addClass("ui-state-hover")}},function(){a(this).removeClass("ui-state-hover")}).focus(function(){if(!c.disabled){a(".ui-slider .ui-state-focus").removeClass("ui-state-focus");a(this).addClass("ui-state-focus")}else{a(this).blur()}}).blur(function(){a(this).removeClass("ui-state-focus")});this.handles.each(function(d){a(this).data("index.ui-slider-handle",d)});this.handles.keydown(function(i){var f=true;var e=a(this).data("index.ui-slider-handle");if(b.options.disabled){return}switch(i.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:f=false;if(!b._keySliding){b._keySliding=true;a(this).addClass("ui-state-active");b._start(i,e)}break}var g,d,h=b._step();if(b.options.values&&b.options.values.length){g=d=b.values(e)}else{g=d=b.value()}switch(i.keyCode){case a.ui.keyCode.HOME:d=b._valueMin();break;case a.ui.keyCode.END:d=b._valueMax();break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(g==b._valueMax()){return}d=g+h;break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(g==b._valueMin()){return}d=g-h;break}b._slide(i,e,d);return f}).keyup(function(e){var d=a(this).data("index.ui-slider-handle");if(b._keySliding){b._stop(e,d);b._change(e,d);b._keySliding=false;a(this).removeClass("ui-state-active")}});this._refreshValue()},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy()},_mouseCapture:function(d){var e=this.options;if(e.disabled){return false}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();var h={x:d.pageX,y:d.pageY};var j=this._normValueFromMouse(h);var c=this._valueMax()-this._valueMin()+1,f;var k=this,i;this.handles.each(function(l){var m=Math.abs(j-k.values(l));if(c>m){c=m;f=a(this);i=l}});if(e.range==true&&this.values(1)==e.min){f=a(this.handles[++i])}this._start(d,i);k._handleIndex=i;f.addClass("ui-state-active").focus();var g=f.offset();var b=!a(d.target).parents().andSelf().is(".ui-slider-handle");this._clickOffset=b?{left:0,top:0}:{left:d.pageX-g.left-(f.width()/2),top:d.pageY-g.top-(f.height()/2)-(parseInt(f.css("borderTopWidth"),10)||0)-(parseInt(f.css("borderBottomWidth"),10)||0)+(parseInt(f.css("marginTop"),10)||0)};j=this._normValueFromMouse(h);this._slide(d,i,j);return true},_mouseStart:function(b){return true},_mouseDrag:function(d){var b={x:d.pageX,y:d.pageY};var c=this._normValueFromMouse(b);this._slide(d,this._handleIndex,c);return false},_mouseStop:function(b){this.handles.removeClass("ui-state-active");this._stop(b,this._handleIndex);this._change(b,this._handleIndex);this._handleIndex=null;this._clickOffset=null;return false},_detectOrientation:function(){this.orientation=this.options.orientation=="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(d){var c,h;if("horizontal"==this.orientation){c=this.elementSize.width;h=d.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{c=this.elementSize.height;h=d.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}var f=(h/c);if(f>1){f=1}if(f<0){f=0}if("vertical"==this.orientation){f=1-f}var e=this._valueMax()-this._valueMin(),i=f*e,b=i%this.options.step,g=this._valueMin()+i-b;if(b>(this.options.step/2)){g+=this.options.step}return parseFloat(g.toFixed(5))},_start:function(d,c){var b={handle:this.handles[c],value:this.value()};if(this.options.values&&this.options.values.length){b.value=this.values(c);b.values=this.values()}this._trigger("start",d,b)},_slide:function(f,e,d){var g=this.handles[e];if(this.options.values&&this.options.values.length){var b=this.values(e?0:1);if((this.options.values.length==2&&this.options.range===true)&&((e==0&&d>b)||(e==1&&d<b))){d=b}if(d!=this.values(e)){var c=this.values();c[e]=d;var h=this._trigger("slide",f,{handle:this.handles[e],value:d,values:c});var b=this.values(e?0:1);if(h!==false){this.values(e,d,(f.type=="mousedown"&&this.options.animate),true)}}}else{if(d!=this.value()){var h=this._trigger("slide",f,{handle:this.handles[e],value:d});if(h!==false){this._setData("value",d,(f.type=="mousedown"&&this.options.animate))}}}},_stop:function(d,c){var b={handle:this.handles[c],value:this.value()};if(this.options.values&&this.options.values.length){b.value=this.values(c);b.values=this.values()}this._trigger("stop",d,b)},_change:function(d,c){var b={handle:this.handles[c],value:this.value()};if(this.options.values&&this.options.values.length){b.value=this.values(c);b.values=this.values()}this._trigger("change",d,b)},value:function(b){if(arguments.length){this._setData("value",b);this._change(null,0)}return this._value()},values:function(b,e,c,d){if(arguments.length>1){this.options.values[b]=e;this._refreshValue(c);if(!d){this._change(null,b)}}if(arguments.length){if(this.options.values&&this.options.values.length){return this._values(b)}else{return this.value()}}else{return this._values()}},_setData:function(b,d,c){a.widget.prototype._setData.apply(this,arguments);switch(b){case"disabled":if(d){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled")}else{this.handles.removeAttr("disabled")}case"orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue(c);break;case"value":this._refreshValue(c);break}},_step:function(){var b=this.options.step;return b},_value:function(){var b=this.options.value;if(b<this._valueMin()){b=this._valueMin()}if(b>this._valueMax()){b=this._valueMax()}return b},_values:function(b){if(arguments.length){var c=this.options.values[b];if(c<this._valueMin()){c=this._valueMin()}if(c>this._valueMax()){c=this._valueMax()}return c}else{return this.options.values}},_valueMin:function(){var b=this.options.min;return b},_valueMax:function(){var b=this.options.max;return b},_refreshValue:function(c){var f=this.options.range,d=this.options,l=this;if(this.options.values&&this.options.values.length){var i,h;this.handles.each(function(p,n){var o=(l.values(p)-l._valueMin())/(l._valueMax()-l._valueMin())*100;var m={};m[l.orientation=="horizontal"?"left":"bottom"]=o+"%";a(this).stop(1,1)[c?"animate":"css"](m,d.animate);if(l.options.range===true){if(l.orientation=="horizontal"){(p==0)&&l.range.stop(1,1)[c?"animate":"css"]({left:o+"%"},d.animate);(p==1)&&l.range[c?"animate":"css"]({width:(o-lastValPercent)+"%"},{queue:false,duration:d.animate})}else{(p==0)&&l.range.stop(1,1)[c?"animate":"css"]({bottom:(o)+"%"},d.animate);(p==1)&&l.range[c?"animate":"css"]({height:(o-lastValPercent)+"%"},{queue:false,duration:d.animate})}}lastValPercent=o})}else{var j=this.value(),g=this._valueMin(),k=this._valueMax(),e=k!=g?(j-g)/(k-g)*100:0;var b={};b[l.orientation=="horizontal"?"left":"bottom"]=e+"%";this.handle.stop(1,1)[c?"animate":"css"](b,d.animate);(f=="min")&&(this.orientation=="horizontal")&&this.range.stop(1,1)[c?"animate":"css"]({width:e+"%"},d.animate);(f=="max")&&(this.orientation=="horizontal")&&this.range[c?"animate":"css"]({width:(100-e)+"%"},{queue:false,duration:d.animate});(f=="min")&&(this.orientation=="vertical")&&this.range.stop(1,1)[c?"animate":"css"]({height:e+"%"},d.animate);(f=="max")&&(this.orientation=="vertical")&&this.range[c?"animate":"css"]({height:(100-e)+"%"},{queue:false,duration:d.animate})}}}));a.extend(a.ui.slider,{getter:"value values",version:"1.7.2",eventPrefix:"slide",defaults:{animate:false,delay:0,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null}})})(jQuery);
