/*
 * jQuery JavaScript Library v1.3.1
 * http://jquery.com/
 *
 * Copyright (c) 2009 John Resig
 * Dual licensed under the MIT and GPL licenses.
 * http://docs.jquery.com/License
 *
 * Date: 2009-01-21 20:42:16 -0500 (Wed, 21 Jan 2009)
 * Revision: 6158
 */
(function(){var n=this,g,A=n.jQuery,r=n.$,q=n.jQuery=n.$=function(G,H){return new q.fn.init(G,H)},F=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;q.fn=q.prototype={init:function(G,J){G=G||document;if(G.nodeType){this[0]=G;this.length=1;this.context=G;return this}if(typeof G==="string"){var I=F.exec(G);if(I&&(I[1]||!J)){if(I[1]){G=q.clean([I[1]],J)}else{var K=document.getElementById(I[3]);if(K&&K.id!=I[3]){return q().find(G)}var H=q(K||[]);H.context=document;H.selector=G;return H}}else{return q(J).find(G)}}else{if(q.isFunction(G)){return q(document).ready(G)}}if(G.selector&&G.context){this.selector=G.selector;this.context=G.context}return this.setArray(q.makeArray(G))},selector:"",jquery:"1.3.1",size:function(){return this.length},get:function(G){return G===g?q.makeArray(this):this[G]},pushStack:function(H,J,G){var I=q(H);I.prevObject=this;I.context=this.context;if(J==="find"){I.selector=this.selector+(this.selector?" ":"")+G}else{if(J){I.selector=this.selector+"."+J+"("+G+")"}}return I},setArray:function(G){this.length=0;Array.prototype.push.apply(this,G);return this},each:function(H,G){return q.each(this,H,G)},index:function(G){return q.inArray(G&&G.jquery?G[0]:G,this)},attr:function(H,J,I){var G=H;if(typeof H==="string"){if(J===g){return this[0]&&q[I||"attr"](this[0],H)}else{G={};G[H]=J}}return this.each(function(K){for(H in G){q.attr(I?this.style:this,H,q.prop(this,G[H],I,K,H))}})},css:function(G,H){if((G=="width"||G=="height")&&parseFloat(H)<0){H=g}return this.attr(G,H,"curCSS")},text:function(H){if(typeof H!=="object"&&H!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(H))}var G="";q.each(H||this,function(){q.each(this.childNodes,function(){if(this.nodeType!=8){G+=this.nodeType!=1?this.nodeValue:q.fn.text([this])}})});return G},wrapAll:function(G){if(this[0]){var H=q(G,this[0].ownerDocument).clone();if(this[0].parentNode){H.insertBefore(this[0])}H.map(function(){var I=this;while(I.firstChild){I=I.firstChild}return I}).append(this)}return this},wrapInner:function(G){return this.each(function(){q(this).contents().wrapAll(G)})},wrap:function(G){return this.each(function(){q(this).wrapAll(G)})},append:function(){return this.domManip(arguments,true,function(G){if(this.nodeType==1){this.appendChild(G)}})},prepend:function(){return this.domManip(arguments,true,function(G){if(this.nodeType==1){this.insertBefore(G,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(G){this.parentNode.insertBefore(G,this)})},after:function(){return this.domManip(arguments,false,function(G){this.parentNode.insertBefore(G,this.nextSibling)})},end:function(){return this.prevObject||q([])},push:[].push,find:function(G){if(this.length===1&&!/,/.test(G)){var I=this.pushStack([],"find",G);I.length=0;q.find(G,this[0],I);return I}else{var H=q.map(this,function(J){return q.find(G,J)});return this.pushStack(/[^+>] [^+>]/.test(G)?q.unique(H):H,"find",G)}},clone:function(H){var G=this.map(function(){if(!q.support.noCloneEvent&&!q.isXMLDoc(this)){var K=this.cloneNode(true),J=document.createElement("div");J.appendChild(K);return q.clean([J.innerHTML])[0]}else{return this.cloneNode(true)}});var I=G.find("*").andSelf().each(function(){if(this[h]!==g){this[h]=null}});if(H===true){this.find("*").andSelf().each(function(K){if(this.nodeType==3){return}var J=q.data(this,"events");for(var M in J){for(var L in J[M]){q.event.add(I[K],M,J[M][L],J[M][L].data)}}})}return G},filter:function(G){return this.pushStack(q.isFunction(G)&&q.grep(this,function(I,H){return G.call(I,H)})||q.multiFilter(G,q.grep(this,function(H){return H.nodeType===1})),"filter",G)},closest:function(G){var H=q.expr.match.POS.test(G)?q(G):null;return this.map(function(){var I=this;while(I&&I.ownerDocument){if(H?H.index(I)>-1:q(I).is(G)){return I}I=I.parentNode}})},not:function(G){if(typeof G==="string"){if(f.test(G)){return this.pushStack(q.multiFilter(G,this,true),"not",G)}else{G=q.multiFilter(G,this)}}var H=G.length&&G[G.length-1]!==g&&!G.nodeType;return this.filter(function(){return H?q.inArray(this,G)<0:this!=G})},add:function(G){return this.pushStack(q.unique(q.merge(this.get(),typeof G==="string"?q(G):q.makeArray(G))))},is:function(G){return !!G&&q.multiFilter(G,this).length>0},hasClass:function(G){return !!G&&this.is("."+G)},val:function(M){if(M===g){var G=this[0];if(G){if(q.nodeName(G,"option")){return(G.attributes.value||{}).specified?G.value:G.text}if(q.nodeName(G,"select")){var K=G.selectedIndex,N=[],O=G.options,J=G.type=="select-one";if(K<0){return null}for(var H=J?K:0,L=J?K+1:O.length;H<L;H++){var I=O[H];if(I.selected){M=q(I).val();if(J){return M}N.push(M)}}return N}return(G.value||"").replace(/\r/g,"")}return g}if(typeof M==="number"){M+=""}return this.each(function(){if(this.nodeType!=1){return}if(q.isArray(M)&&/radio|checkbox/.test(this.type)){this.checked=(q.inArray(this.value,M)>=0||q.inArray(this.name,M)>=0)}else{if(q.nodeName(this,"select")){var P=q.makeArray(M);q("option",this).each(function(){this.selected=(q.inArray(this.value,P)>=0||q.inArray(this.text,P)>=0)});if(!P.length){this.selectedIndex=-1}}else{this.value=M}}})},html:function(G){return G===g?(this[0]?this[0].innerHTML:null):this.empty().append(G)},replaceWith:function(G){return this.after(G).remove()},eq:function(G){return this.slice(G,+G+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(G){return this.pushStack(q.map(this,function(I,H){return G.call(I,H,I)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(M,P,O){if(this[0]){var L=(this[0].ownerDocument||this[0]).createDocumentFragment(),I=q.clean(M,(this[0].ownerDocument||this[0]),L),K=L.firstChild,G=this.length>1?L.cloneNode(true):L;if(K){for(var J=0,H=this.length;J<H;J++){O.call(N(this[J],K),J>0?G.cloneNode(true):L)}}if(I){q.each(I,B)}}return this;function N(Q,R){return P&&q.nodeName(Q,"table")&&q.nodeName(R,"tr")?(Q.getElementsByTagName("tbody")[0]||Q.appendChild(Q.ownerDocument.createElement("tbody"))):Q}}};q.fn.init.prototype=q.fn;function B(G,H){if(H.src){q.ajax({url:H.src,async:false,dataType:"script"})}else{q.globalEval(H.text||H.textContent||H.innerHTML||"")}if(H.parentNode){H.parentNode.removeChild(H)}}function e(){return +new Date}q.extend=q.fn.extend=function(){var L=arguments[0]||{},J=1,K=arguments.length,G=false,I;if(typeof L==="boolean"){G=L;L=arguments[1]||{};J=2}if(typeof L!=="object"&&!q.isFunction(L)){L={}}if(K==J){L=this;--J}for(;J<K;J++){if((I=arguments[J])!=null){for(var H in I){var M=L[H],N=I[H];if(L===N){continue}if(G&&N&&typeof N==="object"&&!N.nodeType){L[H]=q.extend(G,M||(N.length!=null?[]:{}),N)}else{if(N!==g){L[H]=N}}}}}return L};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,s=document.defaultView||{},u=Object.prototype.toString;q.extend({noConflict:function(G){n.$=r;if(G){n.jQuery=A}return q},isFunction:function(G){return u.call(G)==="[object Function]"},isArray:function(G){return u.call(G)==="[object Array]"},isXMLDoc:function(G){return G.nodeType===9&&G.documentElement.nodeName!=="HTML"||!!G.ownerDocument&&q.isXMLDoc(G.ownerDocument)},globalEval:function(I){I=q.trim(I);if(I){var H=document.getElementsByTagName("head")[0]||document.documentElement,G=document.createElement("script");G.type="text/javascript";if(q.support.scriptEval){G.appendChild(document.createTextNode(I))}else{G.text=I}H.insertBefore(G,H.firstChild);H.removeChild(G)}},nodeName:function(H,G){return H.nodeName&&H.nodeName.toUpperCase()==G.toUpperCase()},each:function(I,M,H){var G,J=0,K=I.length;if(H){if(K===g){for(G in I){if(M.apply(I[G],H)===false){break}}}else{for(;J<K;){if(M.apply(I[J++],H)===false){break}}}}else{if(K===g){for(G in I){if(M.call(I[G],G,I[G])===false){break}}}else{for(var L=I[0];J<K&&M.call(L,J,L)!==false;L=I[++J]){}}}return I},prop:function(J,K,I,H,G){if(q.isFunction(K)){K=K.call(J,H)}return typeof K==="number"&&I=="curCSS"&&!b.test(G)?K+"px":K},className:{add:function(G,H){q.each((H||"").split(/\s+/),function(I,J){if(G.nodeType==1&&!q.className.has(G.className,J)){G.className+=(G.className?" ":"")+J}})},remove:function(G,H){if(G.nodeType==1){G.className=H!==g?q.grep(G.className.split(/\s+/),function(I){return !q.className.has(H,I)}).join(" "):""}},has:function(H,G){return H&&q.inArray(G,(H.className||H).toString().split(/\s+/))>-1}},swap:function(J,I,K){var G={};for(var H in I){G[H]=J.style[H];J.style[H]=I[H]}K.call(J);for(var H in I){J.style[H]=G[H]}},css:function(I,G,K){if(G=="width"||G=="height"){var M,H={position:"absolute",visibility:"hidden",display:"block"},L=G=="width"?["Left","Right"]:["Top","Bottom"];function J(){M=G=="width"?I.offsetWidth:I.offsetHeight;var O=0,N=0;q.each(L,function(){O+=parseFloat(q.curCSS(I,"padding"+this,true))||0;N+=parseFloat(q.curCSS(I,"border"+this+"Width",true))||0});M-=Math.round(O+N)}if(q(I).is(":visible")){J()}else{q.swap(I,H,J)}return Math.max(0,M)}return q.curCSS(I,G,K)},curCSS:function(K,H,I){var N,G=K.style;if(H=="opacity"&&!q.support.opacity){N=q.attr(G,"opacity");return N==""?"1":N}if(H.match(/float/i)){H=y}if(!I&&G&&G[H]){N=G[H]}else{if(s.getComputedStyle){if(H.match(/float/i)){H="float"}H=H.replace(/([A-Z])/g,"-$1").toLowerCase();var O=s.getComputedStyle(K,null);if(O){N=O.getPropertyValue(H)}if(H=="opacity"&&N==""){N="1"}}else{if(K.currentStyle){var L=H.replace(/\-(\w)/g,function(P,Q){return Q.toUpperCase()});N=K.currentStyle[H]||K.currentStyle[L];if(!/^\d+(px)?$/i.test(N)&&/^\d/.test(N)){var J=G.left,M=K.runtimeStyle.left;K.runtimeStyle.left=K.currentStyle.left;G.left=N||0;N=G.pixelLeft+"px";G.left=J;K.runtimeStyle.left=M}}}}return N},clean:function(H,M,K){M=M||document;if(typeof M.createElement==="undefined"){M=M.ownerDocument||M[0]&&M[0].ownerDocument||document}if(!K&&H.length===1&&typeof H[0]==="string"){var J=/^<(\w+)\s*\/?>$/.exec(H[0]);if(J){return[M.createElement(J[1])]}}var I=[],G=[],N=M.createElement("div");q.each(H,function(R,T){if(typeof T==="number"){T+=""}if(!T){return}if(typeof T==="string"){T=T.replace(/(<(\w+)[^>]*?)\/>/g,function(V,W,U){return U.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?V:W+"></"+U+">"});var Q=q.trim(T).toLowerCase();var S=!Q.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!Q.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||Q.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!Q.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!Q.indexOf("<td")||!Q.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!Q.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!q.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];N.innerHTML=S[1]+T+S[2];while(S[0]--){N=N.lastChild}if(!q.support.tbody){var P=!Q.indexOf("<table")&&Q.indexOf("<tbody")<0?N.firstChild&&N.firstChild.childNodes:S[1]=="<table>"&&Q.indexOf("<tbody")<0?N.childNodes:[];for(var O=P.length-1;O>=0;--O){if(q.nodeName(P[O],"tbody")&&!P[O].childNodes.length){P[O].parentNode.removeChild(P[O])}}}if(!q.support.leadingWhitespace&&/^\s/.test(T)){N.insertBefore(M.createTextNode(T.match(/^\s*/)[0]),N.firstChild)}T=q.makeArray(N.childNodes)}if(T.nodeType){I.push(T)}else{I=q.merge(I,T)}});if(K){for(var L=0;I[L];L++){if(q.nodeName(I[L],"script")&&(!I[L].type||I[L].type.toLowerCase()==="text/javascript")){G.push(I[L].parentNode?I[L].parentNode.removeChild(I[L]):I[L])}else{if(I[L].nodeType===1){I.splice.apply(I,[L+1,0].concat(q.makeArray(I[L].getElementsByTagName("script"))))}K.appendChild(I[L])}}return G}return I},attr:function(L,I,M){if(!L||L.nodeType==3||L.nodeType==8){return g}var J=!q.isXMLDoc(L),N=M!==g;I=J&&q.props[I]||I;if(L.tagName){var H=/href|src|style/.test(I);if(I=="selected"&&L.parentNode){L.parentNode.selectedIndex}if(I in L&&J&&!H){if(N){if(I=="type"&&q.nodeName(L,"input")&&L.parentNode){throw"type property can't be changed"}L[I]=M}if(q.nodeName(L,"form")&&L.getAttributeNode(I)){return L.getAttributeNode(I).nodeValue}if(I=="tabIndex"){var K=L.getAttributeNode("tabIndex");return K&&K.specified?K.value:L.nodeName.match(/(button|input|object|select|textarea)/i)?0:L.nodeName.match(/^(a|area)$/i)&&L.href?0:g}return L[I]}if(!q.support.style&&J&&I=="style"){return q.attr(L.style,"cssText",M)}if(N){L.setAttribute(I,""+M)}var G=!q.support.hrefNormalized&&J&&H?L.getAttribute(I,2):L.getAttribute(I);return G===null?g:G}if(!q.support.opacity&&I=="opacity"){if(N){L.zoom=1;L.filter=(L.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(M)+""=="NaN"?"":"alpha(opacity="+M*100+")")}return L.filter&&L.filter.indexOf("opacity=")>=0?(parseFloat(L.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}I=I.replace(/-([a-z])/ig,function(O,P){return P.toUpperCase()});if(N){L[I]=M}return L[I]},trim:function(G){return(G||"").replace(/^\s+|\s+$/g,"")},makeArray:function(I){var G=[];if(I!=null){var H=I.length;if(H==null||typeof I==="string"||q.isFunction(I)||I.setInterval){G[0]=I}else{while(H){G[--H]=I[H]}}}return G},inArray:function(I,J){for(var G=0,H=J.length;G<H;G++){if(J[G]===I){return G}}return -1},merge:function(J,G){var H=0,I,K=J.length;if(!q.support.getAll){while((I=G[H++])!=null){if(I.nodeType!=8){J[K++]=I}}}else{while((I=G[H++])!=null){J[K++]=I}}return J},unique:function(M){var H=[],G={};try{for(var I=0,J=M.length;I<J;I++){var L=q.data(M[I]);if(!G[L]){G[L]=true;H.push(M[I])}}}catch(K){H=M}return H},grep:function(H,L,G){var I=[];for(var J=0,K=H.length;J<K;J++){if(!G!=!L(H[J],J)){I.push(H[J])}}return I},map:function(G,L){var H=[];for(var I=0,J=G.length;I<J;I++){var K=L(G[I],I);if(K!=null){H[H.length]=K}}return H.concat.apply([],H)}});var E=navigator.userAgent.toLowerCase();q.browser={version:(E.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(E),opera:/opera/.test(E),msie:/msie/.test(E)&&!/opera/.test(E),mozilla:/mozilla/.test(E)&&!/(compatible|webkit)/.test(E)};q.each({parent:function(G){return G.parentNode},parents:function(G){return q.dir(G,"parentNode")},next:function(G){return q.nth(G,2,"nextSibling")},prev:function(G){return q.nth(G,2,"previousSibling")},nextAll:function(G){return q.dir(G,"nextSibling")},prevAll:function(G){return q.dir(G,"previousSibling")},siblings:function(G){return q.sibling(G.parentNode.firstChild,G)},children:function(G){return q.sibling(G.firstChild)},contents:function(G){return q.nodeName(G,"iframe")?G.contentDocument||G.contentWindow.document:q.makeArray(G.childNodes)}},function(G,H){q.fn[G]=function(I){var J=q.map(this,H);if(I&&typeof I=="string"){J=q.multiFilter(I,J)}return this.pushStack(q.unique(J),G,I)}});q.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(G,H){q.fn[G]=function(){var I=arguments;return this.each(function(){for(var J=0,K=I.length;J<K;J++){q(I[J])[H](this)}})}});q.each({removeAttr:function(G){q.attr(this,G,"");if(this.nodeType==1){this.removeAttribute(G)}},addClass:function(G){q.className.add(this,G)},removeClass:function(G){q.className.remove(this,G)},toggleClass:function(H,G){if(typeof G!=="boolean"){G=!q.className.has(this,H)}q.className[G?"add":"remove"](this,H)},remove:function(G){if(!G||q.filter(G,[this]).length){q("*",this).add([this]).each(function(){q.event.remove(this);q.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){q(">*",this).remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(G,H){q.fn[G]=function(){return this.each(H,arguments)}});function l(G,H){return G[0]&&parseInt(q.curCSS(G[0],H,true),10)||0}var h="jQuery"+e(),x=0,C={};q.extend({cache:{},data:function(H,G,I){H=H==n?C:H;var J=H[h];if(!J){J=H[h]=++x}if(G&&!q.cache[J]){q.cache[J]={}}if(I!==g){q.cache[J][G]=I}return G?q.cache[J][G]:J},removeData:function(H,G){H=H==n?C:H;var J=H[h];if(G){if(q.cache[J]){delete q.cache[J][G];G="";for(G in q.cache[J]){break}if(!G){q.removeData(H)}}}else{try{delete H[h]}catch(I){if(H.removeAttribute){H.removeAttribute(h)}}delete q.cache[J]}},queue:function(H,G,J){if(H){G=(G||"fx")+"queue";var I=q.data(H,G);if(!I||q.isArray(J)){I=q.data(H,G,q.makeArray(J))}else{if(J){I.push(J)}}}return I},dequeue:function(J,I){var G=q.queue(J,I),H=G.shift();if(!I||I==="fx"){H=G[0]}if(H!==g){H.call(J)}}});q.fn.extend({data:function(G,I){var J=G.split(".");J[1]=J[1]?"."+J[1]:"";if(I===g){var H=this.triggerHandler("getData"+J[1]+"!",[J[0]]);if(H===g&&this.length){H=q.data(this[0],G)}return H===g&&J[1]?this.data(J[0]):H}else{return this.trigger("setData"+J[1]+"!",[J[0],I]).each(function(){q.data(this,G,I)})}},removeData:function(G){return this.each(function(){q.removeData(this,G)})},queue:function(G,H){if(typeof G!=="string"){H=G;G="fx"}if(H===g){return q.queue(this[0],G)}return this.each(function(){var I=q.queue(this,G,H);if(G=="fx"&&I.length==1){I[0].call(this)}})},dequeue:function(G){return this.each(function(){q.dequeue(this,G)})}});
/*
 * Sizzle CSS Selector Engine - v0.9.3
 *  Copyright 2009, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var S=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]+['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[]+)+|[>+~])(\s*,\s*)?/g,M=0,I=Object.prototype.toString;var H=function(Z,V,ac,ad){ac=ac||[];V=V||document;if(V.nodeType!==1&&V.nodeType!==9){return[]}if(!Z||typeof Z!=="string"){return ac}var aa=[],X,ag,aj,U,ae,W,Y=true;S.lastIndex=0;while((X=S.exec(Z))!==null){aa.push(X[1]);if(X[2]){W=RegExp.rightContext;break}}if(aa.length>1&&N.exec(Z)){if(aa.length===2&&J.relative[aa[0]]){ag=K(aa[0]+aa[1],V)}else{ag=J.relative[aa[0]]?[V]:H(aa.shift(),V);while(aa.length){Z=aa.shift();if(J.relative[Z]){Z+=aa.shift()}ag=K(Z,ag)}}}else{var af=ad?{expr:aa.pop(),set:G(ad)}:H.find(aa.pop(),aa.length===1&&V.parentNode?V.parentNode:V,R(V));ag=H.filter(af.expr,af.set);if(aa.length>0){aj=G(ag)}else{Y=false}while(aa.length){var ai=aa.pop(),ah=ai;if(!J.relative[ai]){ai=""}else{ah=aa.pop()}if(ah==null){ah=V}J.relative[ai](aj,ah,R(V))}}if(!aj){aj=ag}if(!aj){throw"Syntax error, unrecognized expression: "+(ai||Z)}if(I.call(aj)==="[object Array]"){if(!Y){ac.push.apply(ac,aj)}else{if(V.nodeType===1){for(var ab=0;aj[ab]!=null;ab++){if(aj[ab]&&(aj[ab]===true||aj[ab].nodeType===1&&L(V,aj[ab]))){ac.push(ag[ab])}}}else{for(var ab=0;aj[ab]!=null;ab++){if(aj[ab]&&aj[ab].nodeType===1){ac.push(ag[ab])}}}}}else{G(aj,ac)}if(W){H(W,V,ac,ad)}return ac};H.matches=function(U,V){return H(U,null,null,V)};H.find=function(ab,U,ac){var aa,Y;if(!ab){return[]}for(var X=0,W=J.order.length;X<W;X++){var Z=J.order[X],Y;if((Y=J.match[Z].exec(ab))){var V=RegExp.leftContext;if(V.substr(V.length-1)!=="\\"){Y[1]=(Y[1]||"").replace(/\\/g,"");aa=J.find[Z](Y,U,ac);if(aa!=null){ab=ab.replace(J.match[Z],"");break}}}}if(!aa){aa=U.getElementsByTagName("*")}return{set:aa,expr:ab}};H.filter=function(ad,ac,ag,X){var W=ad,ai=[],aa=ac,Z,U;while(ad&&ac.length){for(var ab in J.filter){if((Z=J.match[ab].exec(ad))!=null){var V=J.filter[ab],ah,af;U=false;if(aa==ai){ai=[]}if(J.preFilter[ab]){Z=J.preFilter[ab](Z,aa,ag,ai,X);if(!Z){U=ah=true}else{if(Z===true){continue}}}if(Z){for(var Y=0;(af=aa[Y])!=null;Y++){if(af){ah=V(af,Z,Y,aa);var ae=X^!!ah;if(ag&&ah!=null){if(ae){U=true}else{aa[Y]=false}}else{if(ae){ai.push(af);U=true}}}}}if(ah!==g){if(!ag){aa=ai}ad=ad.replace(J.match[ab],"");if(!U){return[]}break}}}ad=ad.replace(/\s*,\s*/,"");if(ad==W){if(U==null){throw"Syntax error, unrecognized expression: "+ad}else{break}}W=ad}return aa};var J=H.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(U){return U.getAttribute("href")}},relative:{"+":function(Y,V){for(var W=0,U=Y.length;W<U;W++){var X=Y[W];if(X){var Z=X.previousSibling;while(Z&&Z.nodeType!==1){Z=Z.previousSibling}Y[W]=typeof V==="string"?Z||false:Z===V}}if(typeof V==="string"){H.filter(V,Y,true)}},">":function(Z,V,aa){if(typeof V==="string"&&!/\W/.test(V)){V=aa?V:V.toUpperCase();for(var W=0,U=Z.length;W<U;W++){var Y=Z[W];if(Y){var X=Y.parentNode;Z[W]=X.nodeName===V?X:false}}}else{for(var W=0,U=Z.length;W<U;W++){var Y=Z[W];if(Y){Z[W]=typeof V==="string"?Y.parentNode:Y.parentNode===V}}if(typeof V==="string"){H.filter(V,Z,true)}}},"":function(X,V,Z){var W="done"+(M++),U=T;if(!V.match(/\W/)){var Y=V=Z?V:V.toUpperCase();U=Q}U("parentNode",V,W,X,Y,Z)},"~":function(X,V,Z){var W="done"+(M++),U=T;if(typeof V==="string"&&!V.match(/\W/)){var Y=V=Z?V:V.toUpperCase();U=Q}U("previousSibling",V,W,X,Y,Z)}},find:{ID:function(V,W,X){if(typeof W.getElementById!=="undefined"&&!X){var U=W.getElementById(V[1]);return U?[U]:[]}},NAME:function(U,V,W){if(typeof V.getElementsByName!=="undefined"&&!W){return V.getElementsByName(U[1])}},TAG:function(U,V){return V.getElementsByTagName(U[1])}},preFilter:{CLASS:function(X,V,W,U,aa){X=" "+X[1].replace(/\\/g,"")+" ";var Z;for(var Y=0;(Z=V[Y])!=null;Y++){if(Z){if(aa^(" "+Z.className+" ").indexOf(X)>=0){if(!W){U.push(Z)}}else{if(W){V[Y]=false}}}}return false},ID:function(U){return U[1].replace(/\\/g,"")},TAG:function(V,U){for(var W=0;U[W]===false;W++){}return U[W]&&R(U[W])?V[1]:V[1].toUpperCase()},CHILD:function(U){if(U[1]=="nth"){var V=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(U[2]=="even"&&"2n"||U[2]=="odd"&&"2n+1"||!/\D/.test(U[2])&&"0n+"+U[2]||U[2]);U[2]=(V[1]+(V[2]||1))-0;U[3]=V[3]-0}U[0]="done"+(M++);return U},ATTR:function(V){var U=V[1].replace(/\\/g,"");if(J.attrMap[U]){V[1]=J.attrMap[U]}if(V[2]==="~="){V[4]=" "+V[4]+" "}return V},PSEUDO:function(Y,V,W,U,Z){if(Y[1]==="not"){if(Y[3].match(S).length>1){Y[3]=H(Y[3],null,null,V)}else{var X=H.filter(Y[3],V,W,true^Z);if(!W){U.push.apply(U,X)}return false}}else{if(J.match.POS.test(Y[0])){return true}}return Y},POS:function(U){U.unshift(true);return U}},filters:{enabled:function(U){return U.disabled===false&&U.type!=="hidden"},disabled:function(U){return U.disabled===true},checked:function(U){return U.checked===true},selected:function(U){U.parentNode.selectedIndex;return U.selected===true},parent:function(U){return !!U.firstChild},empty:function(U){return !U.firstChild},has:function(W,V,U){return !!H(U[3],W).length},header:function(U){return/h\d/i.test(U.nodeName)},text:function(U){return"text"===U.type},radio:function(U){return"radio"===U.type},checkbox:function(U){return"checkbox"===U.type},file:function(U){return"file"===U.type},password:function(U){return"password"===U.type},submit:function(U){return"submit"===U.type},image:function(U){return"image"===U.type},reset:function(U){return"reset"===U.type},button:function(U){return"button"===U.type||U.nodeName.toUpperCase()==="BUTTON"},input:function(U){return/input|select|textarea|button/i.test(U.nodeName)}},setFilters:{first:function(V,U){return U===0},last:function(W,V,U,X){return V===X.length-1},even:function(V,U){return U%2===0},odd:function(V,U){return U%2===1},lt:function(W,V,U){return V<U[3]-0},gt:function(W,V,U){return V>U[3]-0},nth:function(W,V,U){return U[3]-0==V},eq:function(W,V,U){return U[3]-0==V}},filter:{CHILD:function(U,X){var aa=X[1],ab=U.parentNode;var Z=X[0];if(ab&&(!ab[Z]||!U.nodeIndex)){var Y=1;for(var V=ab.firstChild;V;V=V.nextSibling){if(V.nodeType==1){V.nodeIndex=Y++}}ab[Z]=Y-1}if(aa=="first"){return U.nodeIndex==1}else{if(aa=="last"){return U.nodeIndex==ab[Z]}else{if(aa=="only"){return ab[Z]==1}else{if(aa=="nth"){var ad=false,W=X[2],ac=X[3];if(W==1&&ac==0){return true}if(W==0){if(U.nodeIndex==ac){ad=true}}else{if((U.nodeIndex-ac)%W==0&&(U.nodeIndex-ac)/W>=0){ad=true}}return ad}}}}},PSEUDO:function(aa,W,X,ab){var V=W[1],Y=J.filters[V];if(Y){return Y(aa,X,W,ab)}else{if(V==="contains"){return(aa.textContent||aa.innerText||"").indexOf(W[3])>=0}else{if(V==="not"){var Z=W[3];for(var X=0,U=Z.length;X<U;X++){if(Z[X]===aa){return false}}return true}}}},ID:function(V,U){return V.nodeType===1&&V.getAttribute("id")===U},TAG:function(V,U){return(U==="*"&&V.nodeType===1)||V.nodeName===U},CLASS:function(V,U){return U.test(V.className)},ATTR:function(Y,W){var U=J.attrHandle[W[1]]?J.attrHandle[W[1]](Y):Y[W[1]]||Y.getAttribute(W[1]),Z=U+"",X=W[2],V=W[4];return U==null?X==="!=":X==="="?Z===V:X==="*="?Z.indexOf(V)>=0:X==="~="?(" "+Z+" ").indexOf(V)>=0:!W[4]?U:X==="!="?Z!=V:X==="^="?Z.indexOf(V)===0:X==="$="?Z.substr(Z.length-V.length)===V:X==="|="?Z===V||Z.substr(0,V.length+1)===V+"-":false},POS:function(Y,V,W,Z){var U=V[2],X=J.setFilters[U];if(X){return X(Y,W,V,Z)}}}};var N=J.match.POS;for(var P in J.match){J.match[P]=RegExp(J.match[P].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var G=function(V,U){V=Array.prototype.slice.call(V);if(U){U.push.apply(U,V);return U}return V};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(O){G=function(Y,X){var V=X||[];if(I.call(Y)==="[object Array]"){Array.prototype.push.apply(V,Y)}else{if(typeof Y.length==="number"){for(var W=0,U=Y.length;W<U;W++){V.push(Y[W])}}else{for(var W=0;Y[W];W++){V.push(Y[W])}}}return V}}(function(){var V=document.createElement("form"),W="script"+(new Date).getTime();V.innerHTML="<input name='"+W+"'/>";var U=document.documentElement;U.insertBefore(V,U.firstChild);if(!!document.getElementById(W)){J.find.ID=function(Y,Z,aa){if(typeof Z.getElementById!=="undefined"&&!aa){var X=Z.getElementById(Y[1]);return X?X.id===Y[1]||typeof X.getAttributeNode!=="undefined"&&X.getAttributeNode("id").nodeValue===Y[1]?[X]:g:[]}};J.filter.ID=function(Z,X){var Y=typeof Z.getAttributeNode!=="undefined"&&Z.getAttributeNode("id");return Z.nodeType===1&&Y&&Y.nodeValue===X}}U.removeChild(V)})();(function(){var U=document.createElement("div");U.appendChild(document.createComment(""));if(U.getElementsByTagName("*").length>0){J.find.TAG=function(V,Z){var Y=Z.getElementsByTagName(V[1]);if(V[1]==="*"){var X=[];for(var W=0;Y[W];W++){if(Y[W].nodeType===1){X.push(Y[W])}}Y=X}return Y}}U.innerHTML="<a href='#'></a>";if(U.firstChild&&U.firstChild.getAttribute("href")!=="#"){J.attrHandle.href=function(V){return V.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var U=H,V=document.createElement("div");V.innerHTML="<p class='TEST'></p>";if(V.querySelectorAll&&V.querySelectorAll(".TEST").length===0){return}H=function(Z,Y,W,X){Y=Y||document;if(!X&&Y.nodeType===9&&!R(Y)){try{return G(Y.querySelectorAll(Z),W)}catch(aa){}}return U(Z,Y,W,X)};H.find=U.find;H.filter=U.filter;H.selectors=U.selectors;H.matches=U.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){J.order.splice(1,0,"CLASS");J.find.CLASS=function(U,V){return V.getElementsByClassName(U[1])}}function Q(V,ab,aa,ae,ac,ad){for(var Y=0,W=ae.length;Y<W;Y++){var U=ae[Y];if(U){U=U[V];var Z=false;while(U&&U.nodeType){var X=U[aa];if(X){Z=ae[X];break}if(U.nodeType===1&&!ad){U[aa]=Y}if(U.nodeName===ab){Z=U;break}U=U[V]}ae[Y]=Z}}}function T(V,aa,Z,ad,ab,ac){for(var X=0,W=ad.length;X<W;X++){var U=ad[X];if(U){U=U[V];var Y=false;while(U&&U.nodeType){if(U[Z]){Y=ad[U[Z]];break}if(U.nodeType===1){if(!ac){U[Z]=X}if(typeof aa!=="string"){if(U===aa){Y=true;break}}else{if(H.filter(aa,[U]).length>0){Y=U;break}}}U=U[V]}ad[X]=Y}}}var L=document.compareDocumentPosition?function(V,U){return V.compareDocumentPosition(U)&16}:function(V,U){return V!==U&&(V.contains?V.contains(U):true)};var R=function(U){return U.nodeType===9&&U.documentElement.nodeName!=="HTML"||!!U.ownerDocument&&R(U.ownerDocument)};var K=function(U,ab){var X=[],Y="",Z,W=ab.nodeType?[ab]:ab;while((Z=J.match.PSEUDO.exec(U))){Y+=Z[0];U=U.replace(J.match.PSEUDO,"")}U=J.relative[U]?U+"*":U;for(var aa=0,V=W.length;aa<V;aa++){H(U,W[aa],X)}return H.filter(Y,X)};q.find=H;q.filter=H.filter;q.expr=H.selectors;q.expr[":"]=q.expr.filters;H.selectors.filters.hidden=function(U){return"hidden"===U.type||q.css(U,"display")==="none"||q.css(U,"visibility")==="hidden"};H.selectors.filters.visible=function(U){return"hidden"!==U.type&&q.css(U,"display")!=="none"&&q.css(U,"visibility")!=="hidden"};H.selectors.filters.animated=function(U){return q.grep(q.timers,function(V){return U===V.elem}).length};q.multiFilter=function(W,U,V){if(V){W=":not("+W+")"}return H.matches(W,U)};q.dir=function(W,V){var U=[],X=W[V];while(X&&X!=document){if(X.nodeType==1){U.push(X)}X=X[V]}return U};q.nth=function(Y,U,W,X){U=U||1;var V=0;for(;Y;Y=Y[W]){if(Y.nodeType==1&&++V==U){break}}return Y};q.sibling=function(W,V){var U=[];for(;W;W=W.nextSibling){if(W.nodeType==1&&W!=V){U.push(W)}}return U};return;n.Sizzle=H})();q.event={add:function(K,H,J,M){if(K.nodeType==3||K.nodeType==8){return}if(K.setInterval&&K!=n){K=n}if(!J.guid){J.guid=this.guid++}if(M!==g){var I=J;J=this.proxy(I);J.data=M}var G=q.data(K,"events")||q.data(K,"events",{}),L=q.data(K,"handle")||q.data(K,"handle",function(){return typeof q!=="undefined"&&!q.event.triggered?q.event.handle.apply(arguments.callee.elem,arguments):g});L.elem=K;q.each(H.split(/\s+/),function(O,P){var Q=P.split(".");P=Q.shift();J.type=Q.slice().sort().join(".");var N=G[P];if(q.event.specialAll[P]){q.event.specialAll[P].setup.call(K,M,Q)}if(!N){N=G[P]={};if(!q.event.special[P]||q.event.special[P].setup.call(K,M,Q)===false){if(K.addEventListener){K.addEventListener(P,L,false)}else{if(K.attachEvent){K.attachEvent("on"+P,L)}}}}N[J.guid]=J;q.event.global[P]=true});K=null},guid:1,global:{},remove:function(M,J,L){if(M.nodeType==3||M.nodeType==8){return}var I=q.data(M,"events"),H,G;if(I){if(J===g||(typeof J==="string"&&J.charAt(0)==".")){for(var K in I){this.remove(M,K+(J||""))}}else{if(J.type){L=J.handler;J=J.type}q.each(J.split(/\s+/),function(O,Q){var S=Q.split(".");Q=S.shift();var P=RegExp("(^|\\.)"+S.slice().sort().join(".*\\.")+"(\\.|$)");if(I[Q]){if(L){delete I[Q][L.guid]}else{for(var R in I[Q]){if(P.test(I[Q][R].type)){delete I[Q][R]}}}if(q.event.specialAll[Q]){q.event.specialAll[Q].teardown.call(M,S)}for(H in I[Q]){break}if(!H){if(!q.event.special[Q]||q.event.special[Q].teardown.call(M,S)===false){if(M.removeEventListener){M.removeEventListener(Q,q.data(M,"handle"),false)}else{if(M.detachEvent){M.detachEvent("on"+Q,q.data(M,"handle"))}}}H=null;delete I[Q]}}})}for(H in I){break}if(!H){var N=q.data(M,"handle");if(N){N.elem=null}q.removeData(M,"events");q.removeData(M,"handle")}}},trigger:function(K,M,J,G){var I=K.type||K;if(!G){K=typeof K==="object"?K[h]?K:q.extend(q.Event(I),K):q.Event(I);if(I.indexOf("!")>=0){K.type=I=I.slice(0,-1);K.exclusive=true}if(!J){K.stopPropagation();if(this.global[I]){q.each(q.cache,function(){if(this.events&&this.events[I]){q.event.trigger(K,M,this.handle.elem)}})}}if(!J||J.nodeType==3||J.nodeType==8){return g}K.result=g;K.target=J;M=q.makeArray(M);M.unshift(K)}K.currentTarget=J;var L=q.data(J,"handle");if(L){L.apply(J,M)}if((!J[I]||(q.nodeName(J,"a")&&I=="click"))&&J["on"+I]&&J["on"+I].apply(J,M)===false){K.result=false}if(!G&&J[I]&&!K.isDefaultPrevented()&&!(q.nodeName(J,"a")&&I=="click")){this.triggered=true;try{J[I]()}catch(N){}}this.triggered=false;if(!K.isPropagationStopped()){var H=J.parentNode||J.ownerDocument;if(H){q.event.trigger(K,M,H,true)}}},handle:function(M){var L,G;M=arguments[0]=q.event.fix(M||n.event);var N=M.type.split(".");M.type=N.shift();L=!N.length&&!M.exclusive;var K=RegExp("(^|\\.)"+N.slice().sort().join(".*\\.")+"(\\.|$)");G=(q.data(this,"events")||{})[M.type];for(var I in G){var J=G[I];if(L||K.test(J.type)){M.handler=J;M.data=J.data;var H=J.apply(this,arguments);if(H!==g){M.result=H;if(H===false){M.preventDefault();M.stopPropagation()}}if(M.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(J){if(J[h]){return J}var H=J;J=q.Event(H);for(var I=this.props.length,L;I;){L=this.props[--I];J[L]=H[L]}if(!J.target){J.target=J.srcElement||document}if(J.target.nodeType==3){J.target=J.target.parentNode}if(!J.relatedTarget&&J.fromElement){J.relatedTarget=J.fromElement==J.target?J.toElement:J.fromElement}if(J.pageX==null&&J.clientX!=null){var K=document.documentElement,G=document.body;J.pageX=J.clientX+(K&&K.scrollLeft||G&&G.scrollLeft||0)-(K.clientLeft||0);J.pageY=J.clientY+(K&&K.scrollTop||G&&G.scrollTop||0)-(K.clientTop||0)}if(!J.which&&((J.charCode||J.charCode===0)?J.charCode:J.keyCode)){J.which=J.charCode||J.keyCode}if(!J.metaKey&&J.ctrlKey){J.metaKey=J.ctrlKey}if(!J.which&&J.button){J.which=(J.button&1?1:(J.button&2?3:(J.button&4?2:0)))}return J},proxy:function(H,G){G=G||function(){return H.apply(this,arguments)};G.guid=H.guid=H.guid||G.guid||this.guid++;return G},special:{ready:{setup:D,teardown:function(){}}},specialAll:{live:{setup:function(G,H){q.event.add(this,H[0],c)},teardown:function(I){if(I.length){var G=0,H=RegExp("(^|\\.)"+I[0]+"(\\.|$)");q.each((q.data(this,"events").live||{}),function(){if(H.test(this.type)){G++}});if(G<1){q.event.remove(this,I[0],c)}}}}}};q.Event=function(G){if(!this.preventDefault){return new q.Event(G)}if(G&&G.type){this.originalEvent=G;this.type=G.type}else{this.type=G}this.timeStamp=e();this[h]=true};function m(){return false}function w(){return true}q.Event.prototype={preventDefault:function(){this.isDefaultPrevented=w;var G=this.originalEvent;if(!G){return}if(G.preventDefault){G.preventDefault()}G.returnValue=false},stopPropagation:function(){this.isPropagationStopped=w;var G=this.originalEvent;if(!G){return}if(G.stopPropagation){G.stopPropagation()}G.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=w;this.stopPropagation()},isDefaultPrevented:m,isPropagationStopped:m,isImmediatePropagationStopped:m};var a=function(H){var G=H.relatedTarget;while(G&&G!=this){try{G=G.parentNode}catch(I){G=this}}if(G!=this){H.type=H.data;q.event.handle.apply(this,arguments)}};q.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(H,G){q.event.special[G]={setup:function(){q.event.add(this,H,a,G)},teardown:function(){q.event.remove(this,H,a)}}});q.fn.extend({bind:function(H,I,G){return H=="unload"?this.one(H,I,G):this.each(function(){q.event.add(this,H,G||I,G&&I)})},one:function(I,J,H){var G=q.event.proxy(H||J,function(K){q(this).unbind(K,G);return(H||J).apply(this,arguments)});return this.each(function(){q.event.add(this,I,G,H&&J)})},unbind:function(H,G){return this.each(function(){q.event.remove(this,H,G)})},trigger:function(G,H){return this.each(function(){q.event.trigger(G,H,this)})},triggerHandler:function(G,I){if(this[0]){var H=q.Event(G);H.preventDefault();H.stopPropagation();q.event.trigger(H,I,this[0]);return H.result}},toggle:function(I){var G=arguments,H=1;while(H<G.length){q.event.proxy(I,G[H++])}return this.click(q.event.proxy(I,function(J){this.lastToggle=(this.lastToggle||0)%H;J.preventDefault();return G[this.lastToggle++].apply(this,arguments)||false}))},hover:function(G,H){return this.mouseenter(G).mouseleave(H)},ready:function(G){D();if(q.isReady){G.call(document,q)}else{q.readyList.push(G)}return this},live:function(I,H){var G=q.event.proxy(H);G.guid+=this.selector+I;q(document).bind(k(I,this.selector),this.selector,G);return this},die:function(H,G){q(document).unbind(k(H,this.selector),G?{guid:G.guid+this.selector+H}:null);return this}});function c(J){var G=RegExp("(^|\\.)"+J.type+"(\\.|$)"),I=true,H=[];q.each(q.data(this,"events").live||[],function(K,L){if(G.test(L.type)){var M=q(J.target).closest(L.data)[0];if(M){H.push({elem:M,fn:L})}}});q.each(H,function(){if(this.fn.call(this.elem,J,this.fn.data)===false){I=false}});return I}function k(H,G){return["live",H,G.replace(/\./g,"`").replace(/ /g,"|")].join(".")}q.extend({isReady:false,readyList:[],ready:function(){if(!q.isReady){q.isReady=true;if(q.readyList){q.each(q.readyList,function(){this.call(document,q)});q.readyList=null}q(document).triggerHandler("ready")}}});var z=false;function D(){if(z){return}z=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);q.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);q.ready()}});if(document.documentElement.doScroll&&typeof n.frameElement==="undefined"){(function(){if(q.isReady){return}try{document.documentElement.doScroll("left")}catch(G){setTimeout(arguments.callee,0);return}q.ready()})()}}}q.event.add(n,"load",q.ready)}q.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(H,G){q.fn[G]=function(I){return I?this.bind(G,I):this.trigger(G)}});q(n).bind("unload",function(){for(var G in q.cache){if(G!=1&&q.cache[G].handle){q.event.remove(q.cache[G].handle.elem)}}});(function(){q.support={};var H=document.documentElement,I=document.createElement("script"),M=document.createElement("div"),L="script"+(new Date).getTime();M.style.display="none";M.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 J=M.getElementsByTagName("*"),G=M.getElementsByTagName("a")[0];if(!J||!J.length||!G){return}q.support={leadingWhitespace:M.firstChild.nodeType==3,tbody:!M.getElementsByTagName("tbody").length,objectAll:!!M.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!M.getElementsByTagName("link").length,style:/red/.test(G.getAttribute("style")),hrefNormalized:G.getAttribute("href")==="/a",opacity:G.style.opacity==="0.5",cssFloat:!!G.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};I.type="text/javascript";try{I.appendChild(document.createTextNode("window."+L+"=1;"))}catch(K){}H.insertBefore(I,H.firstChild);if(n[L]){q.support.scriptEval=true;delete n[L]}H.removeChild(I);if(M.attachEvent&&M.fireEvent){M.attachEvent("onclick",function(){q.support.noCloneEvent=false;M.detachEvent("onclick",arguments.callee)});M.cloneNode(true).fireEvent("onclick")}q(function(){var N=document.createElement("div");N.style.width="1px";N.style.paddingLeft="1px";document.body.appendChild(N);q.boxModel=q.support.boxModel=N.offsetWidth===2;document.body.removeChild(N)})})();var y=q.support.cssFloat?"cssFloat":"styleFloat";q.props={"for":"htmlFor","class":"className","float":y,cssFloat:y,styleFloat:y,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};q.fn.extend({_load:q.fn.load,load:function(I,L,M){if(typeof I!=="string"){return this._load(I)}var K=I.indexOf(" ");if(K>=0){var G=I.slice(K,I.length);I=I.slice(0,K)}var J="GET";if(L){if(q.isFunction(L)){M=L;L=null}else{if(typeof L==="object"){L=q.param(L);J="POST"}}}var H=this;q.ajax({url:I,type:J,dataType:"html",data:L,complete:function(O,N){if(N=="success"||N=="notmodified"){H.html(G?q("<div/>").append(O.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(G):O.responseText)}if(M){H.each(M,[O.responseText,N,O])}}});return this},serialize:function(){return q.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?q.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type))}).map(function(G,H){var I=q(this).val();return I==null?null:q.isArray(I)?q.map(I,function(K,J){return{name:H.name,value:K}}):{name:H.name,value:I}}).get()}});q.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(G,H){q.fn[H]=function(I){return this.bind(H,I)}});var t=e();q.extend({get:function(G,I,J,H){if(q.isFunction(I)){J=I;I=null}return q.ajax({type:"GET",url:G,data:I,success:J,dataType:H})},getScript:function(G,H){return q.get(G,null,H,"script")},getJSON:function(G,H,I){return q.get(G,H,I,"json")},post:function(G,I,J,H){if(q.isFunction(I)){J=I;I={}}return q.ajax({type:"POST",url:G,data:I,success:J,dataType:H})},ajaxSetup:function(G){q.extend(q.ajaxSettings,G)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return n.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(O){O=q.extend(true,O,q.extend(true,{},q.ajaxSettings,O));var Y,H=/=\?(&|$)/g,T,X,I=O.type.toUpperCase();if(O.data&&O.processData&&typeof O.data!=="string"){O.data=q.param(O.data)}if(O.dataType=="jsonp"){if(I=="GET"){if(!O.url.match(H)){O.url+=(O.url.match(/\?/)?"&":"?")+(O.jsonp||"callback")+"=?"}}else{if(!O.data||!O.data.match(H)){O.data=(O.data?O.data+"&":"")+(O.jsonp||"callback")+"=?"}}O.dataType="json"}if(O.dataType=="json"&&(O.data&&O.data.match(H)||O.url.match(H))){Y="jsonp"+t++;if(O.data){O.data=(O.data+"").replace(H,"="+Y+"$1")}O.url=O.url.replace(H,"="+Y+"$1");O.dataType="script";n[Y]=function(Z){X=Z;K();N();n[Y]=g;try{delete n[Y]}catch(aa){}if(J){J.removeChild(V)}}}if(O.dataType=="script"&&O.cache==null){O.cache=false}if(O.cache===false&&I=="GET"){var G=e();var W=O.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+G+"$2");O.url=W+((W==O.url)?(O.url.match(/\?/)?"&":"?")+"_="+G:"")}if(O.data&&I=="GET"){O.url+=(O.url.match(/\?/)?"&":"?")+O.data;O.data=null}if(O.global&&!q.active++){q.event.trigger("ajaxStart")}var S=/^(\w+:)?\/\/([^\/?#]+)/.exec(O.url);if(O.dataType=="script"&&I=="GET"&&S&&(S[1]&&S[1]!=location.protocol||S[2]!=location.host)){var J=document.getElementsByTagName("head")[0];var V=document.createElement("script");V.src=O.url;if(O.scriptCharset){V.charset=O.scriptCharset}if(!Y){var Q=false;V.onload=V.onreadystatechange=function(){if(!Q&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){Q=true;K();N();J.removeChild(V)}}}J.appendChild(V);return g}var M=false;var L=O.xhr();if(O.username){L.open(I,O.url,O.async,O.username,O.password)}else{L.open(I,O.url,O.async)}try{if(O.data){L.setRequestHeader("Content-Type",O.contentType)}if(O.ifModified){L.setRequestHeader("If-Modified-Since",q.lastModified[O.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}L.setRequestHeader("X-Requested-With","XMLHttpRequest");L.setRequestHeader("Accept",O.dataType&&O.accepts[O.dataType]?O.accepts[O.dataType]+", */*":O.accepts._default)}catch(U){}if(O.beforeSend&&O.beforeSend(L,O)===false){if(O.global&&!--q.active){q.event.trigger("ajaxStop")}L.abort();return false}if(O.global){q.event.trigger("ajaxSend",[L,O])}var P=function(Z){if(L.readyState==0){if(R){clearInterval(R);R=null;if(O.global&&!--q.active){q.event.trigger("ajaxStop")}}}else{if(!M&&L&&(L.readyState==4||Z=="timeout")){M=true;if(R){clearInterval(R);R=null}T=Z=="timeout"?"timeout":!q.httpSuccess(L)?"error":O.ifModified&&q.httpNotModified(L,O.url)?"notmodified":"success";if(T=="success"){try{X=q.httpData(L,O.dataType,O)}catch(ab){T="parsererror"}}if(T=="success"){var aa;try{aa=L.getResponseHeader("Last-Modified")}catch(ab){}if(O.ifModified&&aa){q.lastModified[O.url]=aa}if(!Y){K()}}else{q.handleError(O,L,T)}N();if(Z){L.abort()}if(O.async){L=null}}}};if(O.async){var R=setInterval(P,13);if(O.timeout>0){setTimeout(function(){if(L&&!M){P("timeout")}},O.timeout)}}try{L.send(O.data)}catch(U){q.handleError(O,L,null,U)}if(!O.async){P()}function K(){if(O.success){O.success(X,T)}if(O.global){q.event.trigger("ajaxSuccess",[L,O])}}function N(){if(O.complete){O.complete(L,T)}if(O.global){q.event.trigger("ajaxComplete",[L,O])}if(O.global&&!--q.active){q.event.trigger("ajaxStop")}}return L},handleError:function(H,J,G,I){if(H.error){H.error(J,G,I)}if(H.global){q.event.trigger("ajaxError",[J,H,I])}},active:0,httpSuccess:function(H){try{return !H.status&&location.protocol=="file:"||(H.status>=200&&H.status<300)||H.status==304||H.status==1223}catch(G){}return false},httpNotModified:function(I,G){try{var J=I.getResponseHeader("Last-Modified");return I.status==304||J==q.lastModified[G]}catch(H){}return false},httpData:function(L,J,I){var H=L.getResponseHeader("content-type"),G=J=="xml"||!J&&H&&H.indexOf("xml")>=0,K=G?L.responseXML:L.responseText;if(G&&K.documentElement.tagName=="parsererror"){throw"parsererror"}if(I&&I.dataFilter){K=I.dataFilter(K,J)}if(typeof K==="string"){if(J=="script"){q.globalEval(K)}if(J=="json"){K=n["eval"]("("+K+")")}}return K},param:function(G){var I=[];function J(K,L){I[I.length]=encodeURIComponent(K)+"="+encodeURIComponent(L)}if(q.isArray(G)||G.jquery){q.each(G,function(){J(this.name,this.value)})}else{for(var H in G){if(q.isArray(G[H])){q.each(G[H],function(){J(H,this)})}else{J(H,q.isFunction(G[H])?G[H]():G[H])}}}return I.join("&").replace(/%20/g,"+")}});var o={},p,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function v(H,G){var I={};q.each(d.concat.apply([],d.slice(0,G)),function(){I[this]=H});return I}q.fn.extend({show:function(L,N){if(L){return this.animate(v("show",3),L,N)}else{for(var J=0,H=this.length;J<H;J++){var G=q.data(this[J],"olddisplay");this[J].style.display=G||"";if(q.css(this[J],"display")==="none"){var I=this[J].tagName,M;if(o[I]){M=o[I]}else{var K=q("<"+I+" />").appendTo("body");M=K.css("display");if(M==="none"){M="block"}K.remove();o[I]=M}this[J].style.display=q.data(this[J],"olddisplay",M)}}return this}},hide:function(J,K){if(J){return this.animate(v("hide",3),J,K)}else{for(var I=0,H=this.length;I<H;I++){var G=q.data(this[I],"olddisplay");if(!G&&G!=="none"){q.data(this[I],"olddisplay",q.css(this[I],"display"))}this[I].style.display="none"}return this}},_toggle:q.fn.toggle,toggle:function(I,H){var G=typeof I==="boolean";return q.isFunction(I)&&q.isFunction(H)?this._toggle.apply(this,arguments):I==null||G?this.each(function(){var J=G?I:q(this).is(":hidden");q(this)[J?"show":"hide"]()}):this.animate(v("toggle",3),I,H)},fadeTo:function(G,I,H){return this.animate({opacity:I},G,H)},animate:function(K,H,J,I){var G=q.speed(H,J,I);return this[G.queue===false?"each":"queue"](function(){var M=q.extend({},G),O,N=this.nodeType==1&&q(this).is(":hidden"),L=this;for(O in K){if(K[O]=="hide"&&N||K[O]=="show"&&!N){return M.complete.call(this)}if((O=="height"||O=="width")&&this.style){M.display=q.css(this,"display");M.overflow=this.style.overflow}}if(M.overflow!=null){this.style.overflow="hidden"}M.curAnim=q.extend({},K);q.each(K,function(Q,U){var T=new q.fx(L,M,Q);if(/toggle|show|hide/.test(U)){T[U=="toggle"?N?"show":"hide":U](K)}else{var S=U.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),V=T.cur(true)||0;if(S){var P=parseFloat(S[2]),R=S[3]||"px";if(R!="px"){L.style[Q]=(P||1)+R;V=((P||1)/T.cur(true))*V;L.style[Q]=V+R}if(S[1]){P=((S[1]=="-="?-1:1)*P)+V}T.custom(V,P,R)}else{T.custom(V,U,"")}}});return true})},stop:function(H,G){var I=q.timers;if(H){this.queue([])}this.each(function(){for(var J=I.length-1;J>=0;J--){if(I[J].elem==this){if(G){I[J](true)}I.splice(J,1)}}});if(!G){this.dequeue()}return this}});q.each({slideDown:v("show",1),slideUp:v("hide",1),slideToggle:v("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(G,H){q.fn[G]=function(I,J){return this.animate(H,I,J)}});q.extend({speed:function(I,J,H){var G=typeof I==="object"?I:{complete:H||!H&&J||q.isFunction(I)&&I,duration:I,easing:H&&J||J&&!q.isFunction(J)&&J};G.duration=q.fx.off?0:typeof G.duration==="number"?G.duration:q.fx.speeds[G.duration]||q.fx.speeds._default;G.old=G.complete;G.complete=function(){if(G.queue!==false){q(this).dequeue()}if(q.isFunction(G.old)){G.old.call(this)}};return G},easing:{linear:function(I,J,G,H){return G+H*I},swing:function(I,J,G,H){return((-Math.cos(I*Math.PI)/2)+0.5)*H+G}},timers:[],fx:function(H,G,I){this.options=G;this.elem=H;this.prop=I;if(!G.orig){G.orig={}}}});q.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(q.fx.step[this.prop]||q.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(H){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var G=parseFloat(q.css(this.elem,this.prop,H));return G&&G>-10000?G:parseFloat(q.curCSS(this.elem,this.prop))||0},custom:function(K,J,I){this.startTime=e();this.start=K;this.end=J;this.unit=I||this.unit||"px";this.now=this.start;this.pos=this.state=0;var G=this;function H(L){return G.step(L)}H.elem=this.elem;if(H()&&q.timers.push(H)==1){p=setInterval(function(){var M=q.timers;for(var L=0;L<M.length;L++){if(!M[L]()){M.splice(L--,1)}}if(!M.length){clearInterval(p)}},13)}},show:function(){this.options.orig[this.prop]=q.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());q(this.elem).show()},hide:function(){this.options.orig[this.prop]=q.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(J){var I=e();if(J||I>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var G=true;for(var H in this.options.curAnim){if(this.options.curAnim[H]!==true){G=false}}if(G){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(q.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){q(this.elem).hide()}if(this.options.hide||this.options.show){for(var K in this.options.curAnim){q.attr(this.elem.style,K,this.options.orig[K])}}this.options.complete.call(this.elem)}return false}else{var L=I-this.startTime;this.state=L/this.options.duration;this.pos=q.easing[this.options.easing||(q.easing.swing?"swing":"linear")](this.state,L,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};q.extend(q.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(G){q.attr(G.elem.style,"opacity",G.now)},_default:function(G){if(G.elem.style&&G.elem.style[G.prop]!=null){G.elem.style[G.prop]=G.now+G.unit}else{G.elem[G.prop]=G.now}}}});if(document.documentElement.getBoundingClientRect){q.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return q.offset.bodyOffset(this[0])}var I=this[0].getBoundingClientRect(),L=this[0].ownerDocument,H=L.body,G=L.documentElement,N=G.clientTop||H.clientTop||0,M=G.clientLeft||H.clientLeft||0,K=I.top+(self.pageYOffset||q.boxModel&&G.scrollTop||H.scrollTop)-N,J=I.left+(self.pageXOffset||q.boxModel&&G.scrollLeft||H.scrollLeft)-M;return{top:K,left:J}}}else{q.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return q.offset.bodyOffset(this[0])}q.offset.initialized||q.offset.initialize();var L=this[0],I=L.offsetParent,H=L,Q=L.ownerDocument,O,J=Q.documentElement,M=Q.body,N=Q.defaultView,G=N.getComputedStyle(L,null),P=L.offsetTop,K=L.offsetLeft;while((L=L.parentNode)&&L!==M&&L!==J){O=N.getComputedStyle(L,null);P-=L.scrollTop,K-=L.scrollLeft;if(L===I){P+=L.offsetTop,K+=L.offsetLeft;if(q.offset.doesNotAddBorder&&!(q.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(L.tagName))){P+=parseInt(O.borderTopWidth,10)||0,K+=parseInt(O.borderLeftWidth,10)||0}H=I,I=L.offsetParent}if(q.offset.subtractsBorderForOverflowNotVisible&&O.overflow!=="visible"){P+=parseInt(O.borderTopWidth,10)||0,K+=parseInt(O.borderLeftWidth,10)||0}G=O}if(G.position==="relative"||G.position==="static"){P+=M.offsetTop,K+=M.offsetLeft}if(G.position==="fixed"){P+=Math.max(J.scrollTop,M.scrollTop),K+=Math.max(J.scrollLeft,M.scrollLeft)}return{top:P,left:K}}}q.offset={initialize:function(){if(this.initialized){return}var N=document.body,H=document.createElement("div"),J,I,P,K,O,G,L=N.style.marginTop,M='<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>';O={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(G in O){H.style[G]=O[G]}H.innerHTML=M;N.insertBefore(H,N.firstChild);J=H.firstChild,I=J.firstChild,K=J.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(I.offsetTop!==5);this.doesAddBorderForTableAndCells=(K.offsetTop===5);J.style.overflow="hidden",J.style.position="relative";this.subtractsBorderForOverflowNotVisible=(I.offsetTop===-5);N.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(N.offsetTop===0);N.style.marginTop=L;N.removeChild(H);this.initialized=true},bodyOffset:function(G){q.offset.initialized||q.offset.initialize();var I=G.offsetTop,H=G.offsetLeft;if(q.offset.doesNotIncludeMarginInBodyOffset){I+=parseInt(q.curCSS(G,"marginTop",true),10)||0,H+=parseInt(q.curCSS(G,"marginLeft",true),10)||0}return{top:I,left:H}}};q.fn.extend({position:function(){var K=0,J=0,H;if(this[0]){var I=this.offsetParent(),L=this.offset(),G=/^body|html$/i.test(I[0].tagName)?{top:0,left:0}:I.offset();L.top-=l(this,"marginTop");L.left-=l(this,"marginLeft");G.top+=l(I,"borderTopWidth");G.left+=l(I,"borderLeftWidth");H={top:L.top-G.top,left:L.left-G.left}}return H},offsetParent:function(){var G=this[0].offsetParent||document.body;while(G&&(!/^body|html$/i.test(G.tagName)&&q.css(G,"position")=="static")){G=G.offsetParent}return q(G)}});q.each(["Left","Top"],function(H,G){var I="scroll"+G;q.fn[I]=function(J){if(!this[0]){return null}return J!==g?this.each(function(){this==n||this==document?n.scrollTo(!H?J:q(n).scrollLeft(),H?J:q(n).scrollTop()):this[I]=J}):this[0]==n||this[0]==document?self[H?"pageYOffset":"pageXOffset"]||q.boxModel&&document.documentElement[I]||document.body[I]:this[0][I]}});q.each(["Height","Width"],function(J,H){var G=J?"Left":"Top",I=J?"Right":"Bottom";q.fn["inner"+H]=function(){return this[H.toLowerCase()]()+l(this,"padding"+G)+l(this,"padding"+I)};q.fn["outer"+H]=function(L){return this["inner"+H]()+l(this,"border"+G+"Width")+l(this,"border"+I+"Width")+(L?l(this,"margin"+G)+l(this,"margin"+I):0)};var K=H.toLowerCase();q.fn[K]=function(L){return this[0]==n?document.compatMode=="CSS1Compat"&&document.documentElement["client"+H]||document.body["client"+H]:this[0]==document?Math.max(document.documentElement["client"+H],document.body["scroll"+H],document.documentElement["scroll"+H],document.body["offset"+H],document.documentElement["offset"+H]):L===g?(this.length?q.css(this[0],K):null):this.css(K,typeof L==="string"?L:L+"px")}})})();[].indexOf||(Array.prototype.indexOf=function(b,d){d=(d==null)?0:d;var a=this.length;for(var c=d;c<a;c++){if(this[c]==b){return c}}return -1});(function(a){DUI={version:"0.0.4"};DUI.Class={_dontEnum:["_ident","_dontEnum","create","namespace","ns","supers","sup","init","each"],create:function(){var g=this;var d=(arguments.length>0&&arguments[arguments.length-1].constructor==Boolean)?arguments[arguments.length-1]:false;var f=d?{}:function(){this.init.apply(this,arguments)};var b={_ident:{library:"DUI.Class",version:"0.0.4",dynamic:true},_dontEnum:this._dontEnum,ns:[],supers:{},init:function(){},namespace:function(k){if(!k){return null}var m=this;if(k.constructor==Array){a.each(k,function(){m.namespace.apply(m,[this])});return}else{if(k.constructor==Object){for(var h in k){if([Object,Function].indexOf(k[h].constructor)>-1){if(!this.ns){this.ns=[]}this.ns[h]=k[h];this.namespace.apply(this,[h])}}return}}var l=k.split(".");var c=this.prototype?this.prototype:this;a.each(l,function(){c[this]=m.ns[this]||c[this]||window[this]||DUI.Class.create(true);if(m.prototype&&DUI.isClass(c[this])&&c[this].prototype){m[this]=c[this]}delete m.ns[this];c=c[this]});return c},create:function(){var k=Array.prototype.slice.call(arguments);var h=k.shift();var c=DUI.Class.create.apply(DUI.Class,k);var l={};l[h]=c;this.namespace(l)},each:function(c){if(!a.isFunction(c)){throw new Error("DUI.Class.each must be called with a function as its first argument.")}var h=this;a.each(this,function(k){if(h._dontEnum.indexOf(k)!=-1){return}c.apply(this,[k,this])})},sup:function(){try{var c=this.sup.caller.name;this.supers[c].apply(this,arguments)}catch(h){return false}}};d?delete b.init:null;d?b._ident.dynamic=false:null;a.extend(f,b);if(!d){a.extend(f.prototype,b)}var e=d?f:f.prototype;a.each(arguments,function(){if(this.constructor==Object||typeof this.init!=undefined){for(i in this){if(a.isFunction(e[i])&&g._dontEnum.indexOf(i)==-1){this[i].name=e[i].name=i;e.supers[i]=e[i]}if(i=="dontEnum"&&this[i].constructor==Array){e._dontEnum=a.merge(e._dontEnum,this[i])}e[i]=this[i]}}});return f}}})(jQuery);DUI.isClass=function(a,b){b=b||false;try{if(a._ident.library=="DUI.Class"){if((b=="dynamic"&&!a._ident.dynamic)||(b=="static"&&a._ident.dynamic)){return false}return true}}catch(c){return false}return false};var oldState;var oldCity;var oldCountry;deletePopup=function(a){var b=confirm("Sunteti sigur?");if(!b){return false}else{window.location=a;return false}};deleteNoticePopup=function(a){var b=confirm("Esti sigur ca vrei sa stergi acest anunt?");if(!b){return false}else{window.location=a;return false}};$(document).ready(function(){$(".gall").ifixpng();$(".noticeContact").click(function(){var a=$("#dateDeContact").offset().top;$("html,body").animate({scrollTop:a},1000);return false});$(".error").each(function(){if($(this).html()==""){$(this).attr("style","_width:0px;_margin:0px;")}});$("#judet").ready(function(){$("#judet").change(function(){$("#localitate").load("/judete_localitati/?judet="+$(this).find(":selected").attr("initiale"));document.getElementById("localitate").disabled=false;judet=$(this).find(":selected").attr("initiale")})});$("#fldState_Id").ready(function(){StateIdReady()});$("#fldState").ready(function(){StateReady()});$("#fldCountry_Id").ready(function(){oldCountry=$("#fldCountry_Id").val();if($("#fldCountry_Id").val()!=173){country(this)}$("#fldCountry_Id").change(function(){country(this)})});$("#fldCountry").ready(function(){oldCountry=$("#fldCountry").val();if($("#fldCountry").val()!=173){country_user(this)}$("#fldCountry").change(function(){country_user(this)})});$("#fldMain_Type").change(function(){$(".mainTypes").hide();$("#mainType"+$(this).val()).show()});$("#mainType"+$("#fldMain_Type").val()).show();countOnKeyUp("#fldDescription");countOnKeyUp("#fldTitle");$("#fldTitle").blur(function(){$("#fldTitleCount").hide()});$("#fldDescription").blur(function(){$("#fldDescriptionCount").hide()});$(".newsDel").click(function(){var a=confirm("Sunteti sigur?");if(!a){return false}});$(".deleteMsgButton").click(function(){var a=confirm("Sunteti sigur?");if(!a){return false}});$(".hashedEmail").each(function(){var a=this.rel;$(this).text($.base64Decode(a))});if($("#savedMessageDiv").html()!=null){alert($("#savedMessageDiv").html())}if($("#fldPayment_Id3").attr("checked")){$("#fldPrice").attr("disabled",true)}$("#fldPayment_Id3,#fldPayment_Id2,#fldPayment_Id1").live("change",function(){if($("#fldPayment_Id3").attr("checked")){$("#fldPrice").attr("disabled",true)}else{$("#fldPrice").attr("disabled",false)}});$("#cautare_avansata").click(function(){if(($("#startPrice").val()!=""&&$("#currencyPrice").val()=="")||($("#endPrice").val()!=""&&$("#currencyPrice").val()=="")){alert("Va rugam selectati moneda!");return false}});$(".submitButon").click(function(){if($(this).attr("btnType")=="solicita-cod"){leftVal=(screen.width-600)/2;topVal=(screen.height-450)/2;newwindow=window.open("/solicita-cod-evidentiere-anunt/","Solicit&#259; cod eviden&#539;iere anun&#539;","left="+leftVal+",top="+topVal+",height=450,width=600,scrollbars=yes,resizable=no");if(window.focus){newwindow.focus()}return false}})});function StateIdReady(){$("#fldState_Id").change(function(){$("#fldLocality_Id").load("/judete_localitati_add_notice/?judet="+$(this).find(":selected").attr("initiale"));document.getElementById("fldLocality_Id").disabled=false;judet=$(this).find(":selected").attr("initiale")})}function StateReady(){$("#fldState").change(function(){$("#fldLocality").load("/judete_localitati_register_request/?judet="+$(this).find(":selected").attr("initiale"));document.getElementById("fldLocality").disabled=false;judet=$(this).find(":selected").attr("initiale")})}function imposeMaxLength(b,a){return(b.value.length<=a)}function countOnKeyUp(a){$(a).keyup(function(){$(a+"Count").show();cnt=$(a).attr("maxlength")-$(a).val().length;$(a+"Count").html("Caractere ramase: "+cnt);if(cnt<=0){return false}})}$(function(){$(".displayTooltip *").tooltip()});$("#sendRegForm").live("click",function(){if(($("#fldFile1").val()=="")&&($("#fldFile2").val()=="")&&($("#fldFile3").val()=="")&&($("#fldFile4").val()=="")&&($("#fldFile5").val()=="")){$("#loadingDivContent").html("V&#259; rug&#259;m a&#537;tepta&#539;i, anun&#539;ul se &#238;ncarc&#259;!")}else{$("#loadingDivContent").html("V&#259; rug&#259;m a&#537;tepta&#539;i, anun&#539;ul &#537;i imaginile se &#238;ncarc&#259;!")}$("#loadingDiv").show()});function country(a){if($(a).val()!=173){if(($("#fldCountry_Id").val()!=oldCountry)){if(!oldState){oldState=$("#DivfldState_Id").html()}if(!oldCity){oldCity=$("#DivfldLocality_Id").html()}$("#DivfldState_Id").html('<input id="fldState_Id" type="text" value="" name="fldState_Id"/>');$("#DivfldLocality_Id").html('<input id="fldLocality_Id" type="text" value="" name="fldLocality_Id"/>')}}else{$("#DivfldState_Id").load("/select_load/?id=state&add=_Id",function(){StateIdReady()});$("#DivfldLocality_Id").load("/select_load/?id=locality&add=_Id")}}function country_user(a){if($(a).val()!=173){if(($("#fldCountry").val()!=oldCountry)){if(!oldState){oldState=$("#DivfldState").html()}if(!oldCity){oldCity=$("#DivfldLocality").html()}$("#DivfldState").html('<input id="fldState" type="text" value="" name="fldState"/>');$("#DivfldLocality").html('<input id="fldLocality" type="text" value="" name="fldLocality"/>')}}else{$("#DivfldState").load("/select_load/?id=state",function(){StateReady()});$("#DivfldLocality").load("/select_load/?id=locality")}}var DynamicPagerManager=DUI.Class.create({pagers:new Array(),registerPager:function(a){this.pagers[a.containerID]=a;a.install()}},true);var DynamicPager=DUI.Class.create({containerID:"",nextClass:"",previousClass:"",contentClass:"",contentContainerID:"",url:"",visibleItems:8,completed:false,init:function(a){this.containerID=a;this.nextClass="scrollRight";this.previousClass="scrollLeft";this.contentClass=$("#"+a).attr("child");this.contentContainerID=$("#"+a).attr("content");this.url=$("#"+a).attr("source");this.visibleItems=$("#"+a).attr("items")},install:function(){$("#"+this.containerID+" ."+this.previousClass).css("visibility","hidden");if($("#"+this.contentContainerID).children().size()<=this.visibleItems){$("#"+this.containerID+" ."+this.nextClass).css("visibility","hidden")}$("#"+this.containerID+" ."+this.nextClass).click(function(){var b=DynamicPagerManager.pagers[this.parentNode.parentNode.id];var a=$("#"+b.containerID+" ."+b.contentClass+":visible:gt("+(b.visibleItems-1)+")").length;if(a>0){if(b.completed){$("#"+b.containerID+" ."+b.contentClass+":visible:lt("+b.visibleItems+")").hide()}else{$.ajax({type:"GET",url:b.url+$("#"+b.containerID+" ."+b.contentClass).length,dataType:"text",success:function(c){$("#"+b.contentContainerID).append(c);if(c==""){b.completed=true}a=$("#"+b.containerID+" ."+b.contentClass+":visible:gt("+(b.visibleItems-1)+")").length;if(a<=b.visibleItems){$("#"+b.containerID+" ."+b.contentClass+":visible:lt("+b.visibleItems+")").hide();$("#"+b.containerID+" ."+b.nextClass).hide()}else{$("#"+b.containerID+" ."+b.contentClass+":visible:lt("+b.visibleItems+")").hide()}$("#"+b.containerID+" ."+b.previousClass).css("visibility","visible")}})}$("#"+b.containerID+" ."+b.previousClass).css("visibility","visible")}return false});$("#"+this.containerID+" ."+this.previousClass).click(function(){var a=DynamicPagerManager.pagers[this.parentNode.parentNode.id];var b=$("#"+a.containerID+" ."+a.contentClass+":hidden").length;if(b>=0){if(b<=a.visibleItems){$("#"+a.containerID+" ."+a.contentClass+":hidden").show();$("#"+a.containerID+" ."+a.previousClass).css("visibility","hidden")}else{$("#"+a.containerID+" ."+a.contentClass+":hidden:gt("+(b-a.visibleItems-1)+")").show()}$("#"+a.containerID+" ."+a.nextClass).show()}return false});return false}});(function(a){a.fn.dynamicPager=function(){return this.each(function(){DynamicPagerManager.registerPager(new DynamicPager(this.id))})}})(jQuery);$(document).ready(function(){$("#boxGalerie").dynamicPager();$("#agroShopBox").dynamicPager()});function showItems(e,a){$(".box3").hide();var b=e;var c=b+ITEMS_TO_SHOW;var d="";for(i=b;i<c;i++){d+=" .box3[number="+i+"], "}$(d).fadeIn()}$("#ImgAnunt").ready(function(){$("#ImgAnunt").click(function(){updatetabAnunt("q29")})});function showArticlesPage(c,g,a){var b=document.getElementById(c);$(".pag a").removeClass("selected");var f=g-3;var e=g+3;if(f<1){e=e+(1-f);f=1}if(e>a){f=f-(e-a);e=a}if(f<1){f=1}var d='<span id="pagListLead">...</span> ';for(i=f;i<=e;i++){d+='<a href="#artAll" id="artPg'+i+'" title="'+i+"\" onclick=\"javascript:showArticlesPage('artAll', "+i+", "+a+');">'+i+"</a> "}d+=' <span id="pagListTrail">...</span>';$("#artPg"+g).parent().html(d);if(f>1){$("#pagListLead").show()}else{$("#pagListLead").hide()}if(e<a){$("#pagListTrail").show()}else{$("#pagListTrail").hide()}$("#artPg"+g).addClass("selected");$("#crtArtPage").text(g);$(b).load("/ListArticles.php?p="+g)}var isScrollSubmenu=false;var scrollTimeout;var scrollStep=15;var scrollStepDirection;var scrollCompatibleBrowser="";function scrollSubmenu(){var b=parseInt(document.getElementById("subMenuScrollBox").style.left)+scrollStepDirection;if(isNaN(b)){b=scrollStepDirection}var a=getSubmenuWidth("#subMenuScrollBox")-$("#subMenuScrollBox").parent().width();if(b>=0){isScrollSubmenu=false;$("#subMenuScrollFirst").hide()}else{$("#subMenuScrollFirst").show()}if((-1*b)>=a){$("#subMenuScrollLast").hide();isScrollSubmenu=false}else{$("#subMenuScrollLast").show()}document.getElementById("subMenuScrollBox").style.left=b+"px";if(isScrollSubmenu){scrollTimeout=setTimeout("scrollSubmenu()",100);return}else{return}}function scrollSubmenuInit(){if($("#subMenuScrollBox").length>0){var a=getSubmenuWidth("#subMenuScrollBox")-$("#subMenuScrollBox").parent().width()+100;if(0>=a){$("#subMenuScrollLast").hide()}}}function scrollSubmenuLeft(){scrollSubmenuStart(1)}function scrollSubmenuRight(){scrollSubmenuStart(-1)}function scrollSubmenuStart(a){scrollStepDirection=a*scrollStep;isScrollSubmenu=true;scrollSubmenu()}function scrollSubmenuStop(){isScrollSubmenu=false;clearTimeout(scrollTimeout)}function getSubmenuWidth(a){var c=$(a).children("a:last")[0];var b=c.offsetLeft+c.offsetWidth;if(navigator.appName=="Microsoft Internet Explorer"){b+=150}return b}$(document).ready(function(){$("#artForm").hide();$("#viewForm").click(function(){$("#commForm").fadeOut();$("#similareDiv").fadeOut();$("#artForm").fadeIn();var a=$(".comentarii").offset().top;$("html,body").animate({scrollTop:a},1000)});$("#commForm").hide();$("#viewCommForm").click(function(){$("#artForm").fadeOut();$("#similareDiv").fadeOut();$("#commForm").fadeIn();var a=$(".comentarii").offset().top;$("html,body").animate({scrollTop:a},1000)});$("#hideDiv").live("click",function(){$("#artForm").fadeOut();$("#commForm").fadeOut();$("#similareDiv").fadeIn()})});function popWin(f,a,e){var d=screen.availWidth;var g=screen.availHeight;var c=Math.round((d-a)/2);var b=Math.round((g-e)/2);window.open(f,"_blank","scrollbars=yes,resizable=1,width="+a+",height="+e+",left="+c+",top="+b)}function getAvatar(){document.getElementById("divAv").innerHTML='<img src="'+document.getElementById("fldAvatar").value+'" alt="" />'}var validField="#FFFFFF";var invalidField="#FFFF00";var required=/^req/;var span=/span$/;var incorrectField=false;function validate(a){var b=true;temp="";switch(a.type){case"text":temp=text(a.id);if(!temp){b=temp}break;case"input":temp=textarea(a.id);if(!temp){b=temp}break;case"textarea":temp=text(a.id);if(!temp){b=temp}break;case"select":temp=select(a.id);if(!temp){b=temp}break;case"radio":temp=radio(a.id);if(!temp){b=temp}break;case"select-one":temp=selectOne(a.id);if(!temp){b=temp}break}if(b===false){return false}}function text(c){var f=/number$/;var e=/[^0-9]/;var d=/email/;var g=/website/;var b=/_phone$/;var a=/[^0-9.(.).-]/;temp="";if(f.test(document.getElementById(c).id)){if(e.test(document.getElementById(c).value)){document.getElementById(c).style.backgroundColor="lightgrey";return false}}if(b.test(document.getElementById(c).id)){if(a.test(document.getElementById(c).value)&&document.getElementById(c).value!=""){incorrectField=true;alert("The phone number can only contain numbers, hyphens and braces");return false}}if(document.getElementById(c).value==""){document.getElementById(c).style.backgroundColor="lightgrey";return false}else{if(d.test(document.getElementById(c).id)){if(!emailCheck(document.getElementById(c).value)){document.getElementById(c).style.backgroundColor="lightgrey";return false}else{document.getElementById(c).style.backgroundColor="white";return true}}else{document.getElementById(c).style.backgroundColor="white";return true}}}function selectOne(a){if(document.getElementById(a).options[document.getElementById(a).selectedIndex].value=="null"){document.getElementById(a).style.backgroundColor="lightgrey";return false}else{document.getElementById(a).style.backgroundColor="white";return true}}function input(a){if(document.getElementById(a).value==""){document.getElementById(a).style.backgroundColor="lightgrey";return false}else{document.getElementById(a).style.backgroundColor="white";return true}}function select(a){if(document.getElementById(a).options[document.getElementById(a).selectedIndex].value=="null"){document.getElementById(a).style.backgroundColor="lightgrey";return false}else{document.getElementById(a).style.backgroundColor="white";return true}}function radio(a){if(document.getElementById(a).options[document.getElementById(a).selectedIndex].value==""){document.getElementById(a).style.backgroundColor="lightgrey";return false}else{document.getElementById(a).style.backgroundColor="white";return true}}function nextstep(a){focused=0;required=/^req_/;validForm=true;incorrectField=false;for(j=0;j<a.elements.length;j++){if(required.test(a.elements[j].id)){if(validate(a.elements[j])==false){validForm=false;a.elements[j].style.backgroundColor="lightgrey";if(focused==0){a.elements[j].focus();focused=1}}}}if(validForm===false){if(incorrectField===false){alert("Completati campurile obligatorii si apoi trimiteti cererea dvs.")}return false}else{return true}}function trimAll(a){while(a.substring(0,1)==" "){a=a.substring(1,a.length)}while(a.substring(a.length-1,a.length)==" "){a=a.substring(0,a.length-1)}return a}function emailCheck(k){var d="@";var a=".";var l=k.indexOf(d);var f=k.length;var m=k.indexOf(a);var h=new Array(".com",".net",".org",".biz",".coop",".info",".museum",".name",".pro",".edu",".gov",".int",".mil",".ac",".ad",".ae",".af",".ag",".ai",".al",".am",".an",".ao",".aq",".ar",".as",".at",".au",".aw",".az",".ba",".bb",".bd",".be",".bf",".bg",".bh",".bi",".bj",".bm",".bn",".bo",".br",".bs",".bt",".bv",".bw",".by",".bz",".ca",".cc",".cd",".cf",".cg",".ch",".ci",".ck",".cl",".cm",".cn",".co",".cr",".cu",".cv",".cx",".cy",".cz",".de",".dj",".dk",".dm",".do",".dz",".ec",".ee",".eg",".eh",".er",".es",".et",".fi",".fj",".fk",".fm",".fo",".fr",".ga",".gd",".ge",".gf",".gg",".gh",".gi",".gl",".gm",".gn",".gp",".gq",".gr",".gs",".gt",".gu",".gv",".gy",".hk",".hm",".hn",".hr",".ht",".hu",".id",".ie",".il",".im",".in",".io",".iq",".ir",".is",".it",".je",".jm",".jo",".jp",".ke",".kg",".kh",".ki",".km",".kn",".kp",".kr",".kw",".ky",".kz",".la",".lb",".lc",".li",".lk",".lr",".ls",".lt",".lu",".lv",".ly",".ma",".mc",".md",".mg",".mh",".mk",".ml",".mm",".mn",".mo",".mp",".mq",".mr",".ms",".mt",".mu",".mv",".mw",".mx",".my",".mz",".na",".nc",".ne",".nf",".ng",".ni",".nl",".no",".np",".nr",".nu",".nz",".om",".pa",".pe",".pf",".pg",".ph",".pk",".pl",".pm",".pn",".pr",".ps",".pt",".pw",".py",".qa",".re",".ro",".rw",".ru",".sa",".sb",".sc",".sd",".se",".sg",".sh",".si",".sj",".sk",".sl",".sm",".sn",".so",".sr",".st",".sv",".sy",".sz",".tc",".td",".tf",".tg",".th",".tj",".tk",".tm",".tn",".to",".tp",".tr",".tt",".tv",".tw",".tz",".ua",".ug",".uk",".um",".us",".uy",".uz",".va",".vc",".ve",".vg",".vi",".vn",".vu",".ws",".wf",".ye",".yt",".yu",".za",".zm",".zw");var c=true;var e=k;var b=k.lastIndexOf(".");ext=e.substring(b,e.length);if(b>2&&b<57){for(var g=0;g<h.length;g++){if(ext==h[g]){c=true;break}else{c=false}}}if(c==false){return false}if(l==-1){return false}if(l==-1||l==0||l==f){return false}if(m==-1||m==0||m==f-1){return false}if(k.indexOf(d,(l+1))!=-1){return false}if(k.substring(l-1,l)==a||k.substring(l+1,l+2)==a){return false}if(k.indexOf(a,(l+2))==-1){return false}if(k.indexOf(" ")!=-1){return false}return true}function CheckDomain(l){var m=new Array(".com",".net",".org",".biz",".coop",".info",".museum",".name",".pro",".edu",".gov",".int",".mil",".ac",".ad",".ae",".af",".ag",".ai",".al",".am",".an",".ao",".aq",".ar",".as",".at",".au",".aw",".az",".ba",".bb",".bd",".be",".bf",".bg",".bh",".bi",".bj",".bm",".bn",".bo",".br",".bs",".bt",".bv",".bw",".by",".bz",".ca",".cc",".cd",".cf",".cg",".ch",".ci",".ck",".cl",".cm",".cn",".co",".cr",".cu",".cv",".cx",".cy",".cz",".de",".dj",".dk",".dm",".do",".dz",".ec",".ee",".eg",".eh",".er",".es",".et",".fi",".fj",".fk",".fm",".fo",".fr",".ga",".gd",".ge",".gf",".gg",".gh",".gi",".gl",".gm",".gn",".gp",".gq",".gr",".gs",".gt",".gu",".gv",".gy",".hk",".hm",".hn",".hr",".ht",".hu",".id",".ie",".il",".im",".in",".io",".iq",".ir",".is",".it",".je",".jm",".jo",".jp",".ke",".kg",".kh",".ki",".km",".kn",".kp",".kr",".kw",".ky",".kz",".la",".lb",".lc",".li",".lk",".lr",".ls",".lt",".lu",".lv",".ly",".ma",".mc",".md",".mg",".mh",".mk",".ml",".mm",".mn",".mo",".mp",".mq",".mr",".ms",".mt",".mu",".mv",".mw",".mx",".my",".mz",".na",".nc",".ne",".nf",".ng",".ni",".nl",".no",".np",".nr",".nu",".nz",".om",".pa",".pe",".pf",".pg",".ph",".pk",".pl",".pm",".pn",".pr",".ps",".pt",".pw",".py",".qa",".re",".ro",".rw",".ru",".sa",".sb",".sc",".sd",".se",".sg",".sh",".si",".sj",".sk",".sl",".sm",".sn",".so",".sr",".st",".sv",".sy",".sz",".tc",".td",".tf",".tg",".th",".tj",".tk",".tm",".tn",".to",".tp",".tr",".tt",".tv",".tw",".tz",".ua",".ug",".uk",".um",".us",".uy",".uz",".va",".vc",".ve",".vg",".vi",".vn",".vu",".ws",".wf",".ye",".yt",".yu",".za",".zm",".zw");url=document.getElementById(l).value;if(url.toUpperCase().indexOf("HTTP://")==0){url=url.substring(7,url.length)}else{if(url.toUpperCase().indexOf("HTTPS://")==0){url=url.substring(8,url.length)}}var h=url;var c=true;var b;var n;var p=h.substring(0,h.indexOf("/"));if(p==""){p=h}var a=p.lastIndexOf(".");var g=h.substring(0,a);var f=h.indexOf("/");if(f>=0){b=h.substring(a,f)}else{b=h.substring(a,h.length)}if(a>2&&a<57){for(var k=0;k<m.length;k++){if(b==m[k]){c=true;break}else{c=false}}if(c==false){document.getElementById(l).style.backgroundColor=invalidField;document.getElementById(l+"_span").className="invalidfield";document.getElementById(l+"_span").firstChild.nodeValue=b+" is not a correct domain extension!";return false}else{for(var e=0;e<g.length;e++){var o=g.charAt(e);var d=o.charCodeAt(0);if((d>47&&d<59)||(d>64&&d<91)||(d>96&&d<123)||d==45||d==46){if((e==0||e==g.length-1)&&d==45){document.getElementById(l).style.backgroundColor=invalidField;document.getElementById(l+"_span").className="invalidfield";document.getElementById(l+"_span").firstChild.nodeValue="Domains cannot begin or end with '-'!";return false}}else{document.getElementById(l).style.backgroundColor=invalidField;document.getElementById(l+"_span").className="invalidfield";document.getElementById(l+"_span").firstChild.nodeValue="Domains should not contain special characters";return false}}}}else{document.getElementById(l).style.backgroundColor=invalidField;document.getElementById(l+"_span").className="invalidfield";document.getElementById(l+"_span").firstChild.nodeValue="Invalid domain";return false}return true}function rateVot(b,a){$("#articleRates").load("/revistaferma/voteaza/?vot="+b+"&pageId="+a,function(){})}var loginHelp={VerifyUrl:function(b,c){var a=b.indexOf(c);return a},ClientSideValidate:function(b,e,d){var c="";var f=jQuery.trim($("#"+b).val());var a=$("#"+e).val();if(f!=""){if(f.indexOf("@")<0||f.indexOf(".")<0){c="Va rugam sa introduceti o adresa de email valida!"}else{if(a==""){c="Va rugam sa introduceti parola!"}}}else{c="Va rugam sa introduceti adresa de email"}if(c!=""){$("#"+d).html(c);$("#"+d).show();return false}}};$("#header").ready(function(){var a=loginHelp.VerifyUrl(document.location.href,"#userLogin");if(a<0){$("#log").hide();$("#Logg").click(function(){var b=$("#"+this.id).html();if(b!="Ascunde"){$("#"+this.id).html("Ascunde");$("#log").fadeIn();$("#logErr").fadeOut()}else{$("#"+this.id).html("Login");$("#log").fadeOut()}})}else{$("#Logg").html("Ascunde");$("#Logg").click(function(){$("#"+this.id).html("Login");$("#log").fadeOut()})}});$("#log").ready(function(){$("#log > form").submit(function(){var a=loginHelp.ClientSideValidate("fldEmailLog","fldPasswordLog","logErr");if(a==false){return false}})});$(document).ready(function(){var a="frmNewsletterRequest";registerForm(a,"/newsletter-subscribe/");$("#btnSubscribe").click(function(){$("#fldAction").val("Aboneaza")});$("#btnUnsubscribe").click(function(){$("#fldAction").val("Dezaboneaza")});registerFieldValidation(a,"fldEmailNewsletter");registerFieldValidation(a,"fldAction");$("#frmNewsletterRequest").ajaxError(function(d,c,b){validating=false})});var registeredFields=new Array();var registeredForms=new Array();var singleValidation=false;var currentField="";var validating=false;function applyResults(b){var c=0;for(var a in b.errors){$("#"+a+"Error").html(b.errors[a]);$("#"+a+"Error").fadeIn("slow");c++}if(!singleValidation){for(var d in registeredFields){if(d.form!=b.form){continue}if(b.errors[d]==undefined){$("#"+d+"Error").html("");$("#"+d+"Error").fadeOut("slow")}}}else{if(b.errors[currentField]==undefined){$("#"+currentField+"Error").html("");$("#"+currentField+"Error").fadeOut("slow")}}if(!singleValidation&&(c==0)){$("#"+b.form)[0].submit()}}function performFieldValidation(b,a){registeredFields[a].value=$("#"+a).val();fields=[registeredFields[a]];performValidation(b,fields)}function performValidation(c,a){if(validating){return}validating=true;a[a.length]={name:"form",value:c};var b=registeredForms[c].url;$.get(b,a,function(d){applyResults(d);singleValidation=false;currentField="";validating=false},"json")}function registerField(a,b){registeredFields[b]={name:b,value:$("#"+b).val(),form:a}}function registerForm(b,a){registeredForms[b]={name:b,url:a};$("#"+b).submit(validateForm)}function registerFieldValidation(a,b){$("#"+b+"Error").hide();registeredFields[b]={name:b,value:$("#"+b).val(),form:a};$("#"+b).blur(function(){if(!validating){singleValidation=true;currentField=b;performFieldValidation(a,b)}})}function validateForm(){if(validating){return false}var b=0;fields=new Array();for(var a in registeredFields){if(registeredFields[a].form!=this.id){continue}if($("#"+a).length>0){if($("#"+a)[0].type=="radio"){registeredFields[a].value=$("#"+a)[0].checked?$("#"+a).val():""}else{registeredFields[a].value=$("#"+a).val()}}fields[b++]=registeredFields[a]}singleValidation=false;currentField="";performValidation(this.id,fields);return false}(function(e){var b={},m,o,q,l=e.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),a=false;e.tooltip={blocked:false,defaults:{delay:200,fade:false,showURL:true,extraClass:"",top:15,left:15,id:"tooltip"},block:function(){e.tooltip.blocked=!e.tooltip.blocked}};e.fn.extend({tooltip:function(r){r=e.extend({},e.tooltip.defaults,r);h(r);return this.each(function(){e.data(this,"tooltip",r);this.tOpacity=b.parent.css("opacity");this.tooltipText=this.title;e(this).removeAttr("title");this.alt=""}).mouseover(n).mouseout(f).click(f)},fixPNG:l?function(){return this.each(function(){var r=e(this).css("backgroundImage");if(r.match(/^url\(["']?(.*\.png)["']?\)$/i)){r=RegExp.$1;e(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+r+"')"}).each(function(){var s=e(this).css("position");if(s!="absolute"&&s!="relative"){e(this).css("position","relative")}})}})}:function(){return this},unfixPNG:l?function(){return this.each(function(){e(this).css({filter:"",backgroundImage:""})})}:function(){return this},hideWhenEmpty:function(){return this.each(function(){e(this)[e(this).html()?"show":"hide"]()})},url:function(){return this.attr("href")||this.attr("src")}});function h(r){if(b.parent){return}b.parent=e('<div id="'+r.id+'"><h3></h3><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide();if(e.fn.bgiframe){b.parent.bgiframe()}b.title=e("h3",b.parent);b.body=e("div.body",b.parent);b.url=e("div.url",b.parent)}function c(r){return e.data(r,"tooltip")}function g(r){if(c(this).delay){q=setTimeout(p,c(this).delay)}else{p()}a=!!c(this).track;e(document.body).bind("mousemove",d);d(r)}function n(){if(e.tooltip.blocked||this==m||(!this.tooltipText&&!c(this).bodyHandler)){return}m=this;o=this.tooltipText;if(c(this).bodyHandler){b.title.hide();var u=c(this).bodyHandler.call(this);if(u.nodeType||u.jquery){b.body.empty().append(u)}else{b.body.html(u)}b.body.show()}else{if(c(this).showBody){var t=o.split(c(this).showBody);b.title.html(t.shift()).show();b.body.empty();for(var s=0,r;(r=t[s]);s++){if(s>0){b.body.append("<br/>")}b.body.append(r)}b.body.hideWhenEmpty()}else{b.title.html(o).show();b.body.hide()}}if(c(this).showURL&&e(this).url()){b.url.html(e(this).url().replace("http://","")).show()}else{b.url.hide()}b.parent.addClass(c(this).extraClass);if(c(this).fixPNG){b.parent.fixPNG()}g.apply(this,arguments)}function p(){q=null;if((!l||!e.fn.bgiframe)&&c(m).fade){if(b.parent.is(":animated")){b.parent.stop().show().fadeTo(c(m).fade,m.tOpacity)}else{b.parent.is(":visible")?b.parent.fadeTo(c(m).fade,m.tOpacity):b.parent.fadeIn(c(m).fade)}}else{b.parent.show()}d()}function d(u){if(e.tooltip.blocked){return}if(u&&u.target.tagName=="OPTION"){return}if(!a&&b.parent.is(":visible")){e(document.body).unbind("mousemove",d)}if(m==null){e(document.body).unbind("mousemove",d);return}b.parent.removeClass("viewport-right").removeClass("viewport-bottom");var x=b.parent[0].offsetLeft;var w=b.parent[0].offsetTop;if(u){x=u.pageX+c(m).left;w=u.pageY+c(m).top;var s="auto";if(c(m).positionLeft){s=e(window).width()-x;x="auto"}b.parent.css({left:x,right:s,top:w})}var r=k(),t=b.parent[0];if(r.x+r.cx<t.offsetLeft+t.offsetWidth){x-=t.offsetWidth+20+c(m).left;b.parent.css({left:x+"px"}).addClass("viewport-right")}if(r.y+r.cy<t.offsetTop+t.offsetHeight){w-=t.offsetHeight+20+c(m).top;b.parent.css({top:w+"px"}).addClass("viewport-bottom")}}function k(){return{x:e(window).scrollLeft(),y:e(window).scrollTop(),cx:e(window).width(),cy:e(window).height()}}function f(t){if(e.tooltip.blocked){return}if(q){clearTimeout(q)}m=null;var s=c(this);function r(){b.parent.removeClass(s.extraClass).hide().css("opacity","")}if((!l||!e.fn.bgiframe)&&s.fade){if(b.parent.is(":animated")){b.parent.stop().fadeTo(s.fade,0,r)}else{b.parent.stop().fadeOut(s.fade,r)}}else{r()}if(c(this).fixPNG){b.parent.unfixPNG()}}})(jQuery);(function(c){var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var d=function(f){f=f.replace(/\x0d\x0a/g,"\x0a");var e="";for(var h=0;h<f.length;h++){var g=f.charCodeAt(h);if(g<128){e+=String.fromCharCode(g)}else{if((g>127)&&(g<2048)){e+=String.fromCharCode((g>>6)|192);e+=String.fromCharCode((g&63)|128)}else{e+=String.fromCharCode((g>>12)|224);e+=String.fromCharCode(((g>>6)&63)|128);e+=String.fromCharCode((g&63)|128)}}}return e};var a=function(e){var f="";var g=0;var h=c1=c2=0;while(g<e.length){h=e.charCodeAt(g);if(h<128){f+=String.fromCharCode(h);g++}else{if((h>191)&&(h<224)){c2=e.charCodeAt(g+1);f+=String.fromCharCode(((h&31)<<6)|(c2&63));g+=2}else{c2=e.charCodeAt(g+1);c3=e.charCodeAt(g+2);f+=String.fromCharCode(((h&15)<<12)|((c2&63)<<6)|(c3&63));g+=3}}}return f};c.extend({base64Encode:function(g){var e="";var p,n,l,o,m,k,h;var f=0;g=d(g);while(f<g.length){p=g.charCodeAt(f++);n=g.charCodeAt(f++);l=g.charCodeAt(f++);o=p>>2;m=((p&3)<<4)|(n>>4);k=((n&15)<<2)|(l>>6);h=l&63;if(isNaN(n)){k=h=64}else{if(isNaN(l)){h=64}}e=e+b.charAt(o)+b.charAt(m)+b.charAt(k)+b.charAt(h)}return e},base64Decode:function(g){var e="";var p,n,l;var o,m,k,h;var f=0;g=g.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(f<g.length){o=b.indexOf(g.charAt(f++));m=b.indexOf(g.charAt(f++));k=b.indexOf(g.charAt(f++));h=b.indexOf(g.charAt(f++));p=(o<<2)|(m>>4);n=((m&15)<<4)|(k>>2);l=((k&3)<<6)|h;e=e+String.fromCharCode(p);if(k!=64){e=e+String.fromCharCode(n)}if(h!=64){e=e+String.fromCharCode(l)}}e=a(e);return e}})})(jQuery);(function(b){b.ifixpng=function(c){b.ifixpng.pixel=c};b.ifixpng.getPixel=function(){return b.ifixpng.pixel||"/slices/pixel.gif"};var a={ltie7:b.browser.msie&&b.browser.version<7,filter:function(c){return"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='"+c+"')"}};b.fn.ifixpng=a.ltie7?function(){return this.each(function(){var c=b(this);var e=b("base").attr("href");if(c.is("img")||c.is("input")){if(c.attr("src")){if(c.attr("src").match(/.*\.png([?].*)?$/i)){var d=(e&&c.attr("src").substring(0,1)!="/")?e+c.attr("src"):c.attr("src");c.css({filter:a.filter(d),width:c.width(),height:c.height()}).attr({src:b.ifixpng.getPixel()})}}}else{var f=c.css("backgroundImage");if(f.match(/^url\(["']?(.*\.png([?].*)?)["']?\)$/i)){f=RegExp.$1;c.css({backgroundImage:"none",filter:a.filter(f)}).children().children()}}})}:function(){return this};b.fn.iunfixpng=a.ltie7?function(){return this.each(function(){var c=b(this);var d=c.css("filter");if(d.match(/src=["']?(.*\.png([?].*)?)["']?/i)){d=RegExp.$1;if(c.is("img")||c.is("input")){c.attr({src:d}).css({filter:""})}else{c.css({filter:"",background:"url("+d+")"})}}})}:function(){return this};b.fn.positionFix=function(){return this.each(function(){var d=b(this);var c=d.css("position");if(c!="absolute"&&c!="relative"){d.css({position:"relative"})}})}})(jQuery);$(document).ready(function(){$(".anuntList a").hover(function(){var a=$(this).attr("srcBig");$(".anuntList a").removeClass("selected");$(this).addClass("selected");$(".anuntBigImg").stop();$("#imgBigTarget").attr("href",a.replace("_aImage",""));$(".anuntBigImg").stop().fadeTo(100,0,function(){$(".anuntBigImg").attr("src",a)}).fadeTo("slow",50)},function(){});$(".anuntListSmall a").hover(function(){var a=$(this).attr("srcBig");if(a!=""){$(".anuntListSmall a").removeClass("selected");$(this).addClass("selected");$(".anuntBigImgSmall").stop();$("#imgSmallTarget").attr("href",a.replace("_aImageSmall",""));$(".anuntBigImgSmall").stop().fadeTo(100,0,function(){$(".anuntBigImgSmall").attr("src",a)}).fadeTo("slow",50)}},function(){})});$(document).ready(function(){$("#imagAnunt").hide();$("#toImgs").click(function(){updateTab("imagAnunt")})});