(function(){var l=this,g,A=l.jQuery,p=l.$,o=l.jQuery=l.$=function(G,H){return new o.fn.init(G,H)},F=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.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=o.clean([I[1]],J)}else{var K=document.getElementById(I[3]);if(K&&K.id!=I[3]){return o().find(G)}var H=o(K||[]);H.context=document;H.selector=G;return H}}else{return o(J).find(G)}}else{if(o.isFunction(G)){return o(document).ready(G)}}if(G.selector&&G.context){this.selector=G.selector;this.context=G.context}return this.setArray(o.isArray(G)?G:o.makeArray(G))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(G){return G===g?Array.prototype.slice.call(this):this[G]},pushStack:function(H,J,G){var I=o(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 o.each(this,H,G)},index:function(G){return o.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]&&o[I||"attr"](this[0],H)}else{G={};G[H]=J}}return this.each(function(K){for(H in G){o.attr(I?this.style:this,H,o.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="";o.each(H||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){G+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return G},wrapAll:function(G){if(this[0]){var H=o(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(){o(this).contents().wrapAll(G)})},wrap:function(G){return this.each(function(){o(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||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(G){if(this.length===1){var H=this.pushStack([],"find",G);H.length=0;o.find(G,this[0],H);return H}else{return this.pushStack(o.unique(o.map(this,function(I){return o.find(G,I)})),"find",G)}},clone:function(I){var G=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var K=this.outerHTML;if(!K){var L=this.ownerDocument.createElement("div");L.appendChild(this.cloneNode(true));K=L.innerHTML}return o.clean([K.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(I===true){var J=this.find("*").andSelf(),H=0;G.find("*").andSelf().each(function(){if(this.nodeName!==J[H].nodeName){return}var K=o.data(J[H],"events");for(var M in K){for(var L in K[M]){o.event.add(this,M,K[M][L],K[M][L].data)}}H++})}return G},filter:function(G){return this.pushStack(o.isFunction(G)&&o.grep(this,function(I,H){return G.call(I,H)})||o.multiFilter(G,o.grep(this,function(H){return H.nodeType===1})),"filter",G)},closest:function(G){var I=o.expr.match.POS.test(G)?o(G):null,H=0;return this.map(function(){var J=this;while(J&&J.ownerDocument){if(I?I.index(J)>-1:o(J).is(G)){o.data(J,"closest",H);return J}J=J.parentNode;H++}})},not:function(G){if(typeof G==="string"){if(f.test(G)){return this.pushStack(o.multiFilter(G,this,true),"not",G)}else{G=o.multiFilter(G,this)}}var H=G.length&&G[G.length-1]!==g&&!G.nodeType;return this.filter(function(){return H?o.inArray(this,G)<0:this!=G})},add:function(G){return this.pushStack(o.unique(o.merge(this.get(),typeof G==="string"?o(G):o.makeArray(G))))},is:function(G){return !!G&&o.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(o.nodeName(G,"option")){return(G.attributes.value||{}).specified?G.value:G.text}if(o.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=o(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(o.isArray(M)&&/radio|checkbox/.test(this.type)){this.checked=(o.inArray(this.value,M)>=0||o.inArray(this.name,M)>=0)}else{if(o.nodeName(this,"select")){var P=o.makeArray(M);o("option",this).each(function(){this.selected=(o.inArray(this.value,P)>=0||o.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.replace(/ jQuery\d+="(?:\d+|null)"/g,""):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(o.map(this,function(I,H){return G.call(I,H,I)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(L,O,N){if(this[0]){var K=(this[0].ownerDocument||this[0]).createDocumentFragment(),H=o.clean(L,(this[0].ownerDocument||this[0]),K),J=K.firstChild;if(J){for(var I=0,G=this.length;I<G;I++){N.call(M(this[I],J),this.length>1||I>0?K.cloneNode(true):K)}}if(H){o.each(H,B)}}return this;function M(P,Q){return O&&o.nodeName(P,"table")&&o.nodeName(Q,"tr")?(P.getElementsByTagName("tbody")[0]||P.appendChild(P.ownerDocument.createElement("tbody"))):P}}};o.fn.init.prototype=o.fn;function B(G,H){if(H.src){o.ajax({url:H.src,async:false,dataType:"script"})}else{o.globalEval(H.text||H.textContent||H.innerHTML||"")}if(H.parentNode){H.parentNode.removeChild(H)}}function e(){return +new Date}o.extend=o.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"&&!o.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]=o.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,q=document.defaultView||{},s=Object.prototype.toString;o.extend({noConflict:function(G){l.$=p;if(G){l.jQuery=A}return o},isFunction:function(G){return s.call(G)==="[object Function]"},isArray:function(G){return s.call(G)==="[object Array]"},isXMLDoc:function(G){return G.nodeType===9&&G.documentElement.nodeName!=="HTML"||!!G.ownerDocument&&o.isXMLDoc(G.ownerDocument)},globalEval:function(I){if(I&&/\S/.test(I)){var H=document.getElementsByTagName("head")[0]||document.documentElement,G=document.createElement("script");G.type="text/javascript";if(o.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(o.isFunction(K)){K=K.call(J,H)}return typeof K==="number"&&I=="curCSS"&&!b.test(G)?K+"px":K},className:{add:function(G,H){o.each((H||"").split(/\s+/),function(I,J){if(G.nodeType==1&&!o.className.has(G.className,J)){G.className+=(G.className?" ":"")+J}})},remove:function(G,H){if(G.nodeType==1){G.className=H!==g?o.grep(G.className.split(/\s+/),function(I){return !o.className.has(H,I)}).join(" "):""}},has:function(H,G){return H&&o.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(J,H,L,G){if(H=="width"||H=="height"){var N,I={position:"absolute",visibility:"hidden",display:"block"},M=H=="width"?["Left","Right"]:["Top","Bottom"];function K(){N=H=="width"?J.offsetWidth:J.offsetHeight;if(G==="border"){return}o.each(M,function(){if(!G){N-=parseFloat(o.curCSS(J,"padding"+this,true))||0}if(G==="margin"){N+=parseFloat(o.curCSS(J,"margin"+this,true))||0}else{N-=parseFloat(o.curCSS(J,"border"+this+"Width",true))||0}})}if(J.offsetWidth!==0){K()}else{o.swap(J,I,K)}return Math.max(0,Math.round(N))}return o.curCSS(J,H,L)},curCSS:function(K,H,I){var N,G=K.style;if(H=="opacity"&&!o.support.opacity){N=o.attr(G,"opacity");return N==""?"1":N}if(H.match(/float/i)){H=y}if(!I&&G&&G[H]){N=G[H]}else{if(q.getComputedStyle){if(H.match(/float/i)){H="float"}H=H.replace(/([A-Z])/g,"-$1").toLowerCase();var O=q.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");o.each(H,function(R,U){if(typeof U==="number"){U+=""}if(!U){return}if(typeof U==="string"){U=U.replace(/(<(\w+)[^>]*?)\/>/g,function(W,X,V){return V.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?W:X+"></"+V+">"});var Q=U.replace(/^\s+/,"").substring(0,10).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>"]||!o.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];N.innerHTML=S[1]+U+S[2];while(S[0]--){N=N.lastChild}if(!o.support.tbody){var T=/<tbody/i.test(U),P=!Q.indexOf("<table")&&!T?N.firstChild&&N.firstChild.childNodes:S[1]=="<table>"&&!T?N.childNodes:[];for(var O=P.length-1;O>=0;--O){if(o.nodeName(P[O],"tbody")&&!P[O].childNodes.length){P[O].parentNode.removeChild(P[O])}}}if(!o.support.leadingWhitespace&&/^\s/.test(U)){N.insertBefore(M.createTextNode(U.match(/^\s*/)[0]),N.firstChild)}U=o.makeArray(N.childNodes)}if(U.nodeType){I.push(U)}else{I=o.merge(I,U)}});if(K){for(var L=0;I[L];L++){if(o.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(o.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=!o.isXMLDoc(L),N=M!==g;I=J&&o.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"&&o.nodeName(L,"input")&&L.parentNode){throw"type property can't be changed"}L[I]=M}if(o.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(!o.support.style&&J&&I=="style"){return o.attr(L.style,"cssText",M)}if(N){L.setAttribute(I,""+M)}var G=!o.support.hrefNormalized&&J&&H?L.getAttribute(I,2):L.getAttribute(I);return G===null?g:G}if(!o.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"||o.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(!o.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=o.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();o.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)};o.each({parent:function(G){return G.parentNode},parents:function(G){return o.dir(G,"parentNode")},next:function(G){return o.nth(G,2,"nextSibling")},prev:function(G){return o.nth(G,2,"previousSibling")},nextAll:function(G){return o.dir(G,"nextSibling")},prevAll:function(G){return o.dir(G,"previousSibling")},siblings:function(G){return o.sibling(G.parentNode.firstChild,G)},children:function(G){return o.sibling(G.firstChild)},contents:function(G){return o.nodeName(G,"iframe")?G.contentDocument||G.contentWindow.document:o.makeArray(G.childNodes)}},function(G,H){o.fn[G]=function(I){var J=o.map(this,H);if(I&&typeof I=="string"){J=o.multiFilter(I,J)}return this.pushStack(o.unique(J),G,I)}});o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(G,H){o.fn[G]=function(I){var L=[],N=o(I);for(var M=0,J=N.length;M<J;M++){var K=(M>0?this.clone(true):this).get();o.fn[H].apply(o(N[M]),K);L=L.concat(K)}return this.pushStack(L,G,I)}});o.each({removeAttr:function(G){o.attr(this,G,"");if(this.nodeType==1){this.removeAttribute(G)}},addClass:function(G){o.className.add(this,G)},removeClass:function(G){o.className.remove(this,G)},toggleClass:function(H,G){if(typeof G!=="boolean"){G=!o.className.has(this,H)}o.className[G?"add":"remove"](this,H)},remove:function(G){if(!G||o.filter(G,[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(G,H){o.fn[G]=function(){return this.each(H,arguments)}});function j(G,H){return G[0]&&parseInt(o.curCSS(G[0],H,true),10)||0}var h="jQuery"+e(),x=0,C={};o.extend({cache:{},data:function(H,G,I){H=H==l?C:H;var J=H[h];if(!J){J=H[h]=++x}if(G&&!o.cache[J]){o.cache[J]={}}if(I!==g){o.cache[J][G]=I}return G?o.cache[J][G]:J},removeData:function(H,G){H=H==l?C:H;var J=H[h];if(G){if(o.cache[J]){delete o.cache[J][G];G="";for(G in o.cache[J]){break}if(!G){o.removeData(H)}}}else{try{delete H[h]}catch(I){if(H.removeAttribute){H.removeAttribute(h)}}delete o.cache[J]}},queue:function(H,G,J){if(H){G=(G||"fx")+"queue";var I=o.data(H,G);if(!I||o.isArray(J)){I=o.data(H,G,o.makeArray(J))}else{if(J){I.push(J)}}}return I},dequeue:function(J,I){var G=o.queue(J,I),H=G.shift();if(!I||I==="fx"){H=G[0]}if(H!==g){H.call(J)}}});o.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=o.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(){o.data(this,G,I)})}},removeData:function(G){return this.each(function(){o.removeData(this,G)})},queue:function(G,H){if(typeof G!=="string"){H=G;G="fx"}if(H===g){return o.queue(this[0],G)}return this.each(function(){var I=o.queue(this,G,H);if(G=="fx"&&I.length==1){I[0].call(this)}})},dequeue:function(G){return this.each(function(){o.dequeue(this,G)})}});(function(){var T=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,N=0,J=Object.prototype.toString;var H=function(aa,W,ad,ae){ad=ad||[];W=W||document;if(W.nodeType!==1&&W.nodeType!==9){return[]}if(!aa||typeof aa!=="string"){return ad}var ab=[],Y,ah,ak,V,af,X,Z=true;T.lastIndex=0;while((Y=T.exec(aa))!==null){ab.push(Y[1]);if(Y[2]){X=RegExp.rightContext;break}}if(ab.length>1&&O.exec(aa)){if(ab.length===2&&K.relative[ab[0]]){ah=L(ab[0]+ab[1],W)}else{ah=K.relative[ab[0]]?[W]:H(ab.shift(),W);while(ab.length){aa=ab.shift();if(K.relative[aa]){aa+=ab.shift()}ah=L(aa,ah)}}}else{var ag=ae?{expr:ab.pop(),set:G(ae)}:H.find(ab.pop(),ab.length===1&&W.parentNode?W.parentNode:W,S(W));ah=H.filter(ag.expr,ag.set);if(ab.length>0){ak=G(ah)}else{Z=false}while(ab.length){var aj=ab.pop(),ai=aj;if(!K.relative[aj]){aj=""}else{ai=ab.pop()}if(ai==null){ai=W}K.relative[aj](ak,ai,S(W))}}if(!ak){ak=ah}if(!ak){throw"Syntax error, unrecognized expression: "+(aj||aa)}if(J.call(ak)==="[object Array]"){if(!Z){ad.push.apply(ad,ak)}else{if(W.nodeType===1){for(var ac=0;ak[ac]!=null;ac++){if(ak[ac]&&(ak[ac]===true||ak[ac].nodeType===1&&M(W,ak[ac]))){ad.push(ah[ac])}}}else{for(var ac=0;ak[ac]!=null;ac++){if(ak[ac]&&ak[ac].nodeType===1){ad.push(ah[ac])}}}}}else{G(ak,ad)}if(X){H(X,W,ad,ae);if(I){hasDuplicate=false;ad.sort(I);if(hasDuplicate){for(var ac=1;ac<ad.length;ac++){if(ad[ac]===ad[ac-1]){ad.splice(ac--,1)}}}}}return ad};H.matches=function(V,W){return H(V,null,null,W)};H.find=function(ac,V,ad){var ab,Z;if(!ac){return[]}for(var Y=0,X=K.order.length;Y<X;Y++){var aa=K.order[Y],Z;if((Z=K.match[aa].exec(ac))){var W=RegExp.leftContext;if(W.substr(W.length-1)!=="\\"){Z[1]=(Z[1]||"").replace(/\\/g,"");ab=K.find[aa](Z,V,ad);if(ab!=null){ac=ac.replace(K.match[aa],"");break}}}}if(!ab){ab=V.getElementsByTagName("*")}return{set:ab,expr:ac}};H.filter=function(af,ae,ai,Y){var X=af,ak=[],ac=ae,aa,V,ab=ae&&ae[0]&&S(ae[0]);while(af&&ae.length){for(var ad in K.filter){if((aa=K.match[ad].exec(af))!=null){var W=K.filter[ad],aj,ah;V=false;if(ac==ak){ak=[]}if(K.preFilter[ad]){aa=K.preFilter[ad](aa,ac,ai,ak,Y,ab);if(!aa){V=aj=true}else{if(aa===true){continue}}}if(aa){for(var Z=0;(ah=ac[Z])!=null;Z++){if(ah){aj=W(ah,aa,Z,ac);var ag=Y^!!aj;if(ai&&aj!=null){if(ag){V=true}else{ac[Z]=false}}else{if(ag){ak.push(ah);V=true}}}}}if(aj!==g){if(!ai){ac=ak}af=af.replace(K.match[ad],"");if(!V){return[]}break}}}if(af==X){if(V==null){throw"Syntax error, unrecognized expression: "+af}else{break}}X=af}return ac};var K=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(V){return V.getAttribute("href")}},relative:{"+":function(ac,V,ab){var Z=typeof V==="string",ad=Z&&!/\W/.test(V),aa=Z&&!ad;if(ad&&!ab){V=V.toUpperCase()}for(var Y=0,X=ac.length,W;Y<X;Y++){if((W=ac[Y])){while((W=W.previousSibling)&&W.nodeType!==1){}ac[Y]=aa||W&&W.nodeName===V?W||false:W===V}}if(aa){H.filter(V,ac,true)}},">":function(ab,W,ac){var Z=typeof W==="string";if(Z&&!/\W/.test(W)){W=ac?W:W.toUpperCase();for(var X=0,V=ab.length;X<V;X++){var aa=ab[X];if(aa){var Y=aa.parentNode;ab[X]=Y.nodeName===W?Y:false}}}else{for(var X=0,V=ab.length;X<V;X++){var aa=ab[X];if(aa){ab[X]=Z?aa.parentNode:aa.parentNode===W}}if(Z){H.filter(W,ab,true)}}},"":function(Y,W,aa){var X=N++,V=U;if(!W.match(/\W/)){var Z=W=aa?W:W.toUpperCase();V=R}V("parentNode",W,X,Y,Z,aa)},"~":function(Y,W,aa){var X=N++,V=U;if(typeof W==="string"&&!W.match(/\W/)){var Z=W=aa?W:W.toUpperCase();V=R}V("previousSibling",W,X,Y,Z,aa)}},find:{ID:function(W,X,Y){if(typeof X.getElementById!=="undefined"&&!Y){var V=X.getElementById(W[1]);return V?[V]:[]}},NAME:function(X,aa,ab){if(typeof aa.getElementsByName!=="undefined"){var W=[],Z=aa.getElementsByName(X[1]);for(var Y=0,V=Z.length;Y<V;Y++){if(Z[Y].getAttribute("name")===X[1]){W.push(Z[Y])}}return W.length===0?null:W}},TAG:function(V,W){return W.getElementsByTagName(V[1])}},preFilter:{CLASS:function(Y,W,X,V,ab,ac){Y=" "+Y[1].replace(/\\/g,"")+" ";if(ac){return Y}for(var Z=0,aa;(aa=W[Z])!=null;Z++){if(aa){if(ab^(aa.className&&(" "+aa.className+" ").indexOf(Y)>=0)){if(!X){V.push(aa)}}else{if(X){W[Z]=false}}}}return false},ID:function(V){return V[1].replace(/\\/g,"")},TAG:function(W,V){for(var X=0;V[X]===false;X++){}return V[X]&&S(V[X])?W[1]:W[1].toUpperCase()},CHILD:function(V){if(V[1]=="nth"){var W=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(V[2]=="even"&&"2n"||V[2]=="odd"&&"2n+1"||!/\D/.test(V[2])&&"0n+"+V[2]||V[2]);V[2]=(W[1]+(W[2]||1))-0;V[3]=W[3]-0}V[0]=N++;return V},ATTR:function(Z,W,X,V,aa,ab){var Y=Z[1].replace(/\\/g,"");if(!ab&&K.attrMap[Y]){Z[1]=K.attrMap[Y]}if(Z[2]==="~="){Z[4]=" "+Z[4]+" "}return Z},PSEUDO:function(Z,W,X,V,aa){if(Z[1]==="not"){if(Z[3].match(T).length>1||/^\w/.test(Z[3])){Z[3]=H(Z[3],null,null,W)}else{var Y=H.filter(Z[3],W,X,true^aa);if(!X){V.push.apply(V,Y)}return false}}else{if(K.match.POS.test(Z[0])||K.match.CHILD.test(Z[0])){return true}}return Z},POS:function(V){V.unshift(true);return V}},filters:{enabled:function(V){return V.disabled===false&&V.type!=="hidden"},disabled:function(V){return V.disabled===true},checked:function(V){return V.checked===true},selected:function(V){V.parentNode.selectedIndex;return V.selected===true},parent:function(V){return !!V.firstChild},empty:function(V){return !V.firstChild},has:function(X,W,V){return !!H(V[3],X).length},header:function(V){return/h\d/i.test(V.nodeName)},text:function(V){return"text"===V.type},radio:function(V){return"radio"===V.type},checkbox:function(V){return"checkbox"===V.type},file:function(V){return"file"===V.type},password:function(V){return"password"===V.type},submit:function(V){return"submit"===V.type},image:function(V){return"image"===V.type},reset:function(V){return"reset"===V.type},button:function(V){return"button"===V.type||V.nodeName.toUpperCase()==="BUTTON"},input:function(V){return/input|select|textarea|button/i.test(V.nodeName)}},setFilters:{first:function(W,V){return V===0},last:function(X,W,V,Y){return W===Y.length-1},even:function(W,V){return V%2===0},odd:function(W,V){return V%2===1},lt:function(X,W,V){return W<V[3]-0},gt:function(X,W,V){return W>V[3]-0},nth:function(X,W,V){return V[3]-0==W},eq:function(X,W,V){return V[3]-0==W}},filter:{PSEUDO:function(ab,X,Y,ac){var W=X[1],Z=K.filters[W];if(Z){return Z(ab,Y,X,ac)}else{if(W==="contains"){return(ab.textContent||ab.innerText||"").indexOf(X[3])>=0}else{if(W==="not"){var aa=X[3];for(var Y=0,V=aa.length;Y<V;Y++){if(aa[Y]===ab){return false}}return true}}}},CHILD:function(V,Y){var ab=Y[1],W=V;switch(ab){case"only":case"first":while(W=W.previousSibling){if(W.nodeType===1){return false}}if(ab=="first"){return true}W=V;case"last":while(W=W.nextSibling){if(W.nodeType===1){return false}}return true;case"nth":var X=Y[2],ae=Y[3];if(X==1&&ae==0){return true}var aa=Y[0],ad=V.parentNode;if(ad&&(ad.sizcache!==aa||!V.nodeIndex)){var Z=0;for(W=ad.firstChild;W;W=W.nextSibling){if(W.nodeType===1){W.nodeIndex=++Z}}ad.sizcache=aa}var ac=V.nodeIndex-ae;if(X==0){return ac==0}else{return(ac%X==0&&ac/X>=0)}}},ID:function(W,V){return W.nodeType===1&&W.getAttribute("id")===V},TAG:function(W,V){return(V==="*"&&W.nodeType===1)||W.nodeName===V},CLASS:function(W,V){return(" "+(W.className||W.getAttribute("class"))+" ").indexOf(V)>-1},ATTR:function(aa,Y){var X=Y[1],V=K.attrHandle[X]?K.attrHandle[X](aa):aa[X]!=null?aa[X]:aa.getAttribute(X),ab=V+"",Z=Y[2],W=Y[4];return V==null?Z==="!=":Z==="="?ab===W:Z==="*="?ab.indexOf(W)>=0:Z==="~="?(" "+ab+" ").indexOf(W)>=0:!W?ab&&V!==false:Z==="!="?ab!=W:Z==="^="?ab.indexOf(W)===0:Z==="$="?ab.substr(ab.length-W.length)===W:Z==="|="?ab===W||ab.substr(0,W.length+1)===W+"-":false},POS:function(Z,W,X,aa){var V=W[2],Y=K.setFilters[V];if(Y){return Y(Z,X,W,aa)}}}};var O=K.match.POS;for(var Q in K.match){K.match[Q]=RegExp(K.match[Q].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var G=function(W,V){W=Array.prototype.slice.call(W);if(V){V.push.apply(V,W);return V}return W};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(P){G=function(Z,Y){var W=Y||[];if(J.call(Z)==="[object Array]"){Array.prototype.push.apply(W,Z)}else{if(typeof Z.length==="number"){for(var X=0,V=Z.length;X<V;X++){W.push(Z[X])}}else{for(var X=0;Z[X];X++){W.push(Z[X])}}}return W}}var I;if(document.documentElement.compareDocumentPosition){I=function(W,V){var X=W.compareDocumentPosition(V)&4?-1:W===V?0:1;if(X===0){hasDuplicate=true}return X}}else{if("sourceIndex" in document.documentElement){I=function(W,V){var X=W.sourceIndex-V.sourceIndex;if(X===0){hasDuplicate=true}return X}}else{if(document.createRange){I=function(Y,W){var X=Y.ownerDocument.createRange(),V=W.ownerDocument.createRange();X.selectNode(Y);X.collapse(true);V.selectNode(W);V.collapse(true);var Z=X.compareBoundaryPoints(Range.START_TO_END,V);if(Z===0){hasDuplicate=true}return Z}}}}(function(){var W=document.createElement("form"),X="script"+(new Date).getTime();W.innerHTML="<input name='"+X+"'/>";var V=document.documentElement;V.insertBefore(W,V.firstChild);if(!!document.getElementById(X)){K.find.ID=function(Z,aa,ab){if(typeof aa.getElementById!=="undefined"&&!ab){var Y=aa.getElementById(Z[1]);return Y?Y.id===Z[1]||typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id").nodeValue===Z[1]?[Y]:g:[]}};K.filter.ID=function(aa,Y){var Z=typeof aa.getAttributeNode!=="undefined"&&aa.getAttributeNode("id");return aa.nodeType===1&&Z&&Z.nodeValue===Y}}V.removeChild(W)})();(function(){var V=document.createElement("div");V.appendChild(document.createComment(""));if(V.getElementsByTagName("*").length>0){K.find.TAG=function(W,aa){var Z=aa.getElementsByTagName(W[1]);if(W[1]==="*"){var Y=[];for(var X=0;Z[X];X++){if(Z[X].nodeType===1){Y.push(Z[X])}}Z=Y}return Z}}V.innerHTML="<a href='#'></a>";if(V.firstChild&&typeof V.firstChild.getAttribute!=="undefined"&&V.firstChild.getAttribute("href")!=="#"){K.attrHandle.href=function(W){return W.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var V=H,W=document.createElement("div");W.innerHTML="<p class='TEST'></p>";if(W.querySelectorAll&&W.querySelectorAll(".TEST").length===0){return}H=function(aa,Z,X,Y){Z=Z||document;if(!Y&&Z.nodeType===9&&!S(Z)){try{return G(Z.querySelectorAll(aa),X)}catch(ab){}}return V(aa,Z,X,Y)};H.find=V.find;H.filter=V.filter;H.selectors=V.selectors;H.matches=V.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var V=document.createElement("div");V.innerHTML="<div class='test e'></div><div class='test'></div>";if(V.getElementsByClassName("e").length===0){return}V.lastChild.className="e";if(V.getElementsByClassName("e").length===1){return}K.order.splice(1,0,"CLASS");K.find.CLASS=function(W,X,Y){if(typeof X.getElementsByClassName!=="undefined"&&!Y){return X.getElementsByClassName(W[1])}}})()}function R(W,ab,aa,af,ac,ae){var ad=W=="previousSibling"&&!ae;for(var Y=0,X=af.length;Y<X;Y++){var V=af[Y];if(V){if(ad&&V.nodeType===1){V.sizcache=aa;V.sizset=Y}V=V[W];var Z=false;while(V){if(V.sizcache===aa){Z=af[V.sizset];break}if(V.nodeType===1&&!ae){V.sizcache=aa;V.sizset=Y}if(V.nodeName===ab){Z=V;break}V=V[W]}af[Y]=Z}}}function U(W,ab,aa,af,ac,ae){var ad=W=="previousSibling"&&!ae;for(var Y=0,X=af.length;Y<X;Y++){var V=af[Y];if(V){if(ad&&V.nodeType===1){V.sizcache=aa;V.sizset=Y}V=V[W];var Z=false;while(V){if(V.sizcache===aa){Z=af[V.sizset];break}if(V.nodeType===1){if(!ae){V.sizcache=aa;V.sizset=Y}if(typeof ab!=="string"){if(V===ab){Z=true;break}}else{if(H.filter(ab,[V]).length>0){Z=V;break}}}V=V[W]}af[Y]=Z}}}var M=document.compareDocumentPosition?function(W,V){return W.compareDocumentPosition(V)&16}:function(W,V){return W!==V&&(W.contains?W.contains(V):true)};var S=function(V){return V.nodeType===9&&V.documentElement.nodeName!=="HTML"||!!V.ownerDocument&&S(V.ownerDocument)};var L=function(V,ac){var Y=[],Z="",aa,X=ac.nodeType?[ac]:ac;while((aa=K.match.PSEUDO.exec(V))){Z+=aa[0];V=V.replace(K.match.PSEUDO,"")}V=K.relative[V]?V+"*":V;for(var ab=0,W=X.length;ab<W;ab++){H(V,X[ab],Y)}return H.filter(Z,Y)};o.find=H;o.filter=H.filter;o.expr=H.selectors;o.expr[":"]=o.expr.filters;H.selectors.filters.hidden=function(V){return V.offsetWidth===0||V.offsetHeight===0};H.selectors.filters.visible=function(V){return V.offsetWidth>0||V.offsetHeight>0};H.selectors.filters.animated=function(V){return o.grep(o.timers,function(W){return V===W.elem}).length};o.multiFilter=function(X,V,W){if(W){X=":not("+X+")"}return H.matches(X,V)};o.dir=function(X,W){var V=[],Y=X[W];while(Y&&Y!=document){if(Y.nodeType==1){V.push(Y)}Y=Y[W]}return V};o.nth=function(Z,V,X,Y){V=V||1;var W=0;for(;Z;Z=Z[X]){if(Z.nodeType==1&&++W==V){break}}return Z};o.sibling=function(X,W){var V=[];for(;X;X=X.nextSibling){if(X.nodeType==1&&X!=W){V.push(X)}}return V};return;l.Sizzle=H})();o.event={add:function(K,H,J,M){if(K.nodeType==3||K.nodeType==8){return}if(K.setInterval&&K!=l){K=l}if(!J.guid){J.guid=this.guid++}if(M!==g){var I=J;J=this.proxy(I);J.data=M}var G=o.data(K,"events")||o.data(K,"events",{}),L=o.data(K,"handle")||o.data(K,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});L.elem=K;o.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(o.event.specialAll[P]){o.event.specialAll[P].setup.call(K,M,Q)}if(!N){N=G[P]={};if(!o.event.special[P]||o.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;o.event.global[P]=true});K=null},guid:1,global:{},remove:function(M,J,L){if(M.nodeType==3||M.nodeType==8){return}var I=o.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}o.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(o.event.specialAll[Q]){o.event.specialAll[Q].teardown.call(M,S)}for(H in I[Q]){break}if(!H){if(!o.event.special[Q]||o.event.special[Q].teardown.call(M,S)===false){if(M.removeEventListener){M.removeEventListener(Q,o.data(M,"handle"),false)}else{if(M.detachEvent){M.detachEvent("on"+Q,o.data(M,"handle"))}}}H=null;delete I[Q]}}})}for(H in I){break}if(!H){var N=o.data(M,"handle");if(N){N.elem=null}o.removeData(M,"events");o.removeData(M,"handle")}}},trigger:function(K,M,J,G){var I=K.type||K;if(!G){K=typeof K==="object"?K[h]?K:o.extend(o.Event(I),K):o.Event(I);if(I.indexOf("!")>=0){K.type=I=I.slice(0,-1);K.exclusive=true}if(!J){K.stopPropagation();if(this.global[I]){o.each(o.cache,function(){if(this.events&&this.events[I]){o.event.trigger(K,M,this.handle.elem)}})}}if(!J||J.nodeType==3||J.nodeType==8){return g}K.result=g;K.target=J;M=o.makeArray(M);M.unshift(K)}K.currentTarget=J;var L=o.data(J,"handle");if(L){L.apply(J,M)}if((!J[I]||(o.nodeName(J,"a")&&I=="click"))&&J["on"+I]&&J["on"+I].apply(J,M)===false){K.result=false}if(!G&&J[I]&&!K.isDefaultPrevented()&&!(o.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){o.event.trigger(K,M,H,true)}}},handle:function(M){var L,G;M=arguments[0]=o.event.fix(M||l.event);M.currentTarget=this;var N=M.type.split(".");M.type=N.shift();L=!N.length&&!M.exclusive;var K=RegExp("(^|\\.)"+N.slice().sort().join(".*\\.")+"(\\.|$)");G=(o.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=o.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){o.event.add(this,H[0],c)},teardown:function(I){if(I.length){var G=0,H=RegExp("(^|\\.)"+I[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(H.test(this.type)){G++}});if(G<1){o.event.remove(this,I[0],c)}}}}}};o.Event=function(G){if(!this.preventDefault){return new o.Event(G)}if(G&&G.type){this.originalEvent=G;this.type=G.type}else{this.type=G}this.timeStamp=e();this[h]=true};function k(){return false}function w(){return true}o.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:k,isPropagationStopped:k,isImmediatePropagationStopped:k};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;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(H,G){o.event.special[G]={setup:function(){o.event.add(this,H,a,G)},teardown:function(){o.event.remove(this,H,a)}}});o.fn.extend({bind:function(H,I,G){return H=="unload"?this.one(H,I,G):this.each(function(){o.event.add(this,H,G||I,G&&I)})},one:function(I,J,H){var G=o.event.proxy(H||J,function(K){o(this).unbind(K,G);return(H||J).apply(this,arguments)});return this.each(function(){o.event.add(this,I,G,H&&J)})},unbind:function(H,G){return this.each(function(){o.event.remove(this,H,G)})},trigger:function(G,H){return this.each(function(){o.event.trigger(G,H,this)})},triggerHandler:function(G,I){if(this[0]){var H=o.Event(G);H.preventDefault();H.stopPropagation();o.event.trigger(H,I,this[0]);return H.result}},toggle:function(I){var G=arguments,H=1;while(H<G.length){o.event.proxy(I,G[H++])}return this.click(o.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(o.isReady){G.call(document,o)}else{o.readyList.push(G)}return this},live:function(I,H){var G=o.event.proxy(H);G.guid+=this.selector+I;o(document).bind(i(I,this.selector),this.selector,G);return this},die:function(H,G){o(document).unbind(i(H,this.selector),G?{guid:G.guid+this.selector+H}:null);return this}});function c(J){var G=RegExp("(^|\\.)"+J.type+"(\\.|$)"),I=true,H=[];o.each(o.data(this,"events").live||[],function(K,L){if(G.test(L.type)){var M=o(J.target).closest(L.data)[0];if(M){H.push({elem:M,fn:L})}}});H.sort(function(L,K){return o.data(L.elem,"closest")-o.data(K.elem,"closest")});o.each(H,function(){if(this.fn.call(this.elem,J,this.fn.data)===false){return(I=false)}});return I}function i(H,G){return["live",H,G.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 z=false;function D(){if(z){return}z=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(G){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(H,G){o.fn[G]=function(I){return I?this.bind(G,I):this.trigger(G)}});o(l).bind("unload",function(){for(var G in o.cache){if(G!=1&&o.cache[G].handle){o.event.remove(o.cache[G].handle.elem)}}});(function(){o.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}o.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(l[L]){o.support.scriptEval=true;delete l[L]}H.removeChild(I);if(M.attachEvent&&M.fireEvent){M.attachEvent("onclick",function(){o.support.noCloneEvent=false;M.detachEvent("onclick",arguments.callee)});M.cloneNode(true).fireEvent("onclick")}o(function(){var N=document.createElement("div");N.style.width=N.style.paddingLeft="1px";document.body.appendChild(N);o.boxModel=o.support.boxModel=N.offsetWidth===2;document.body.removeChild(N).style.display="none"})})();var y=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class":"className","float":y,cssFloat:y,styleFloat:y,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.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(o.isFunction(L)){M=L;L=null}else{if(typeof L==="object"){L=o.param(L);J="POST"}}}var H=this;o.ajax({url:I,type:J,dataType:"html",data:L,complete:function(O,N){if(N=="success"||N=="notmodified"){H.html(G?o("<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 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(G,H){var I=o(this).val();return I==null?null:o.isArray(I)?o.map(I,function(K,J){return{name:H.name,value:K}}):{name:H.name,value:I}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(G,H){o.fn[H]=function(I){return this.bind(H,I)}});var r=e();o.extend({get:function(G,I,J,H){if(o.isFunction(I)){J=I;I=null}return o.ajax({type:"GET",url:G,data:I,success:J,dataType:H})},getScript:function(G,H){return o.get(G,null,H,"script")},getJSON:function(G,H,I){return o.get(G,H,I,"json")},post:function(G,I,J,H){if(o.isFunction(I)){J=I;I={}}return o.ajax({type:"POST",url:G,data:I,success:J,dataType:H})},ajaxSetup:function(G){o.extend(o.ajaxSettings,G)},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(O){O=o.extend(true,O,o.extend(true,{},o.ajaxSettings,O));var Y,H=/=\?(&|$)/g,T,X,I=O.type.toUpperCase();if(O.data&&O.processData&&typeof O.data!=="string"){O.data=o.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"+r++;if(O.data){O.data=(O.data+"").replace(H,"="+Y+"$1")}O.url=O.url.replace(H,"="+Y+"$1");O.dataType="script";l[Y]=function(Z){X=Z;K();N();l[Y]=g;try{delete l[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&&!o.active++){o.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();V.onload=V.onreadystatechange=null;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",o.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&&!--o.active){o.event.trigger("ajaxStop")}L.abort();return false}if(O.global){o.event.trigger("ajaxSend",[L,O])}var P=function(Z){if(L.readyState==0){if(R){clearInterval(R);R=null;if(O.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!M&&L&&(L.readyState==4||Z=="timeout")){M=true;if(R){clearInterval(R);R=null}T=Z=="timeout"?"timeout":!o.httpSuccess(L)?"error":O.ifModified&&o.httpNotModified(L,O.url)?"notmodified":"success";if(T=="success"){try{X=o.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){o.lastModified[O.url]=aa}if(!Y){K()}}else{o.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){o.handleError(O,L,null,U)}if(!O.async){P()}function K(){if(O.success){O.success(X,T)}if(O.global){o.event.trigger("ajaxSuccess",[L,O])}}function N(){if(O.complete){O.complete(L,T)}if(O.global){o.event.trigger("ajaxComplete",[L,O])}if(O.global&&!--o.active){o.event.trigger("ajaxStop")}}return L},handleError:function(H,J,G,I){if(H.error){H.error(J,G,I)}if(H.global){o.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==o.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"){o.globalEval(K)}if(J=="json"){K=l["eval"]("("+K+")")}}return K},param:function(G){var I=[];function J(K,L){I[I.length]=encodeURIComponent(K)+"="+encodeURIComponent(L)}if(o.isArray(G)||G.jquery){o.each(G,function(){J(this.name,this.value)})}else{for(var H in G){if(o.isArray(G[H])){o.each(G[H],function(){J(H,this)})}else{J(H,o.isFunction(G[H])?G[H]():G[H])}}}return I.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function v(H,G){var I={};o.each(d.concat.apply([],d.slice(0,G)),function(){I[this]=H});return I}o.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=o.data(this[J],"olddisplay");this[J].style.display=G||"";if(o.css(this[J],"display")==="none"){var I=this[J].tagName,M;if(m[I]){M=m[I]}else{var K=o("<"+I+" />").appendTo("body");M=K.css("display");if(M==="none"){M="block"}K.remove();m[I]=M}o.data(this[J],"olddisplay",M)}}for(var J=0,H=this.length;J<H;J++){this[J].style.display=o.data(this[J],"olddisplay")||""}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=o.data(this[I],"olddisplay");if(!G&&G!=="none"){o.data(this[I],"olddisplay",o.css(this[I],"display"))}}for(var I=0,H=this.length;I<H;I++){this[I].style.display="none"}return this}},_toggle:o.fn.toggle,toggle:function(I,H){var G=typeof I==="boolean";return o.isFunction(I)&&o.isFunction(H)?this._toggle.apply(this,arguments):I==null||G?this.each(function(){var J=G?I:o(this).is(":hidden");o(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=o.speed(H,J,I);return this[G.queue===false?"each":"queue"](function(){var M=o.extend({},G),O,N=this.nodeType==1&&o(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=o.css(this,"display");M.overflow=this.style.overflow}}if(M.overflow!=null){this.style.overflow="hidden"}M.curAnim=o.extend({},K);o.each(K,function(Q,U){var T=new o.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=o.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}});o.each({slideDown:v("show",1),slideUp:v("hide",1),slideToggle:v("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(G,H){o.fn[G]=function(I,J){return this.animate(H,I,J)}});o.extend({speed:function(I,J,H){var G=typeof I==="object"?I:{complete:H||!H&&J||o.isFunction(I)&&I,duration:I,easing:H&&J||J&&!o.isFunction(J)&&J};G.duration=o.fx.off?0:typeof G.duration==="number"?G.duration:o.fx.speeds[G.duration]||o.fx.speeds._default;G.old=G.complete;G.complete=function(){if(G.queue!==false){o(this).dequeue()}if(o.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={}}}});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(H){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var G=parseFloat(o.css(this.elem,this.prop,H));return G&&G>-10000?G:parseFloat(o.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()&&o.timers.push(H)&&!n){n=setInterval(function(){var M=o.timers;for(var L=0;L<M.length;L++){if(!M[L]()){M.splice(L--,1)}}if(!M.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(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(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 K in this.options.curAnim){o.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=o.easing[this.options.easing||(o.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}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(G){o.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){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 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||o.boxModel&&G.scrollTop||H.scrollTop)-N,J=I.left+(self.pageXOffset||o.boxModel&&G.scrollLeft||H.scrollLeft)-M;return{top:K,left:J}}}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 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(o.offset.doesNotAddBorder&&!(o.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(o.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}}}o.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){o.offset.initialized||o.offset.initialize();var I=G.offsetTop,H=G.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){I+=parseInt(o.curCSS(G,"marginTop",true),10)||0,H+=parseInt(o.curCSS(G,"marginLeft",true),10)||0}return{top:I,left:H}}};o.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-=j(this,"marginTop");L.left-=j(this,"marginLeft");G.top+=j(I,"borderTopWidth");G.left+=j(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)&&o.css(G,"position")=="static")){G=G.offsetParent}return o(G)}});o.each(["Left","Top"],function(H,G){var I="scroll"+G;o.fn[I]=function(J){if(!this[0]){return null}return J!==g?this.each(function(){this==l||this==document?l.scrollTo(!H?J:o(l).scrollLeft(),H?J:o(l).scrollTop()):this[I]=J}):this[0]==l||this[0]==document?self[H?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[I]||document.body[I]:this[0][I]}});o.each(["Height","Width"],function(K,I){var G=K?"Left":"Top",J=K?"Right":"Bottom",H=I.toLowerCase();o.fn["inner"+I]=function(){return this[0]?o.css(this[0],H,false,"padding"):null};o.fn["outer"+I]=function(M){return this[0]?o.css(this[0],H,false,M?"margin":"border"):null};var L=I.toLowerCase();o.fn[L]=function(M){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+I]||document.body["client"+I]:this[0]==document?Math.max(document.documentElement["client"+I],document.body["scroll"+I],document.documentElement["scroll"+I],document.body["offset"+I],document.documentElement["offset"+I]):M===g?(this.length?o.css(this[0],L):null):this.css(L,typeof M==="string"?M:M+"px")}})})();jQuery.fn.labelify=function(a){a=jQuery.extend({text:"title",labelledClass:""},a);var b={title:function(e){return $(e).attr("title")},label:function(e){return $("label[for="+e.id+"]").text()}};var d;var c=$(this);return $(this).each(function(){if(typeof a.text==="string"){d=b[a.text]}else{d=a.text}if(typeof d!=="function"){return}var f=d(this);if(!f){return}$(this).data("label",d(this).replace(/\n/g,""));$(this).focus(function(){if(this.value===$(this).data("label")){this.value=this.defaultValue;$(this).removeClass(a.labelledClass)}}).blur(function(){if(this.value===this.defaultValue){this.value=$(this).data("label");$(this).addClass(a.labelledClass)}});var e=function(){c.each(function(){if(this.value===$(this).data("label")){this.value=this.defaultValue;$(this).removeClass(a.labelledClass)}})};$(window).unload(e);if(this.value!==this.defaultValue){return}this.value=$(this).data("label");$(this).addClass(a.labelledClass)})};(function(c){var a=c.scrollTo=function(f,e,d){c(window).scrollTo(f,e,d)};a.defaults={axis:"xy",duration:parseFloat(c.fn.jquery)>=1.3?0:1};a.window=function(d){return c(window)._scrollable()};c.fn._scrollable=function(){return this.map(function(){var e=this,d=!e.nodeName||c.inArray(e.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!d){return e}var f=(e.contentWindow||e).document||e.ownerDocument||e;return c.browser.safari||f.compatMode=="BackCompat"?f.body:f.documentElement})};c.fn.scrollTo=function(f,e,d){if(typeof e=="object"){d=e;e=0}if(typeof d=="function"){d={onAfter:d}}if(f=="max"){f=9000000000}d=c.extend({},a.defaults,d);e=e||d.speed||d.duration;d.queue=d.queue&&d.axis.length>1;if(d.queue){e/=2}d.offset=b(d.offset);d.over=b(d.over);return this._scrollable().each(function(){var l=this,j=c(l),k=f,i,g={},m=j.is("html,body");switch(typeof k){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(k)){k=b(k);break}k=c(k,this);case"object":if(k.is||k.style){i=(k=c(k)).offset()}}c.each(d.axis.split(""),function(q,r){var s=r=="x"?"Left":"Top",w=s.toLowerCase(),p="scroll"+s,o=l[p],n=a.max(l,r);if(i){g[p]=i[w]+(m?0:o-j.offset()[w]);if(d.margin){g[p]-=parseInt(k.css("margin"+s))||0;g[p]-=parseInt(k.css("border"+s+"Width"))||0}g[p]+=d.offset[w]||0;if(d.over[w]){g[p]+=k[r=="x"?"width":"height"]()*d.over[w]}}else{var v=k[w];g[p]=v.slice&&v.slice(-1)=="%"?parseFloat(v)/100*n:v}if(/^\d+$/.test(g[p])){g[p]=g[p]<=0?0:Math.min(g[p],n)}if(!q&&d.queue){if(o!=g[p]){h(d.onAfterFirst)}delete g[p]}});h(d.onAfter);function h(n){j.animate(g,e,d.easing,n&&function(){n.call(this,f,d)})}}).end()};a.max=function(j,i){var h=i=="x"?"Width":"Height",e="scroll"+h;if(!c(j).is("html,body")){return j[e]-c(j)[h.toLowerCase()]()}var g="client"+h,f=j.ownerDocument.documentElement,d=j.ownerDocument.body;return Math.max(f[e],d[e])-Math.min(f[g],d[g])};function b(d){return typeof d=="object"?d:{top:d,left:d}}})(jQuery);(function(b){b.tools=b.tools||{version:{}};b.tools.version.expose="1.0.3";function a(){var e=b(window).width();if(b.browser.mozilla){return e}var d;if(window.innerHeight&&window.scrollMaxY){d=window.innerWidth+window.scrollMaxX}else{if(document.body.scrollHeight>document.body.offsetHeight){d=document.body.scrollWidth}else{d=document.body.offsetWidth}}return d<e?d+20:e}function c(g,h){var e=this,d=null,f=false,i=0;function j(k,l){b(e).bind(k,function(n,m){if(l&&l.call(this)===false&&m){m.proceed=false}});return e}b.each(h,function(k,l){if(b.isFunction(l)){j(k,l)}});b(window).bind("resize.expose",function(){if(d){d.css({width:a(),height:b(document).height()})}});b.extend(this,{getMask:function(){return d},getExposed:function(){return g},getConf:function(){return h},isLoaded:function(){return f},load:function(){if(f){return e}i=g.eq(0).css("zIndex");if(h.maskId){d=b("#"+h.maskId)}if(!d||!d.length){d=b("<div/>").css({position:"absolute",top:0,left:0,width:a(),height:b(document).height(),display:"none",opacity:0,zIndex:h.zIndex});if(h.maskId){d.attr("id",h.maskId)}b("body").append(d);var k=d.css("backgroundColor");if(!k||k=="transparent"||k=="rgba(0, 0, 0, 0)"){d.css("backgroundColor",h.color)}if(h.closeOnEsc){b(document).bind("keydown.unexpose",function(n){if(n.keyCode==27){e.close()}})}if(h.closeOnClick){d.bind("click.unexpose",function(){e.close()})}}var m={proceed:true};b(e).trigger("onBeforeLoad",m);if(!m.proceed){return e}b.each(g,function(){var n=b(this);if(!/relative|absolute|fixed/i.test(n.css("position"))){n.css("position","relative")}});g.css({zIndex:h.zIndex+1});var l=d.height();if(!this.isLoaded()){d.css({opacity:0,display:"block"}).fadeTo(h.loadSpeed,h.opacity,function(){if(d.height()!=l){d.css("height",l)}b(e).trigger("onLoad")})}f=true;return e},close:function(){if(!f){return e}var k={proceed:true};b(e).trigger("onBeforeClose",k);if(k.proceed===false){return e}d.fadeOut(h.closeSpeed,function(){b(e).trigger("onClose");g.css({zIndex:b.browser.msie?i:null})});f=false;return e},onBeforeLoad:function(k){return j("onBeforeLoad",k)},onLoad:function(k){return j("onLoad",k)},onBeforeClose:function(k){return j("onBeforeClose",k)},onClose:function(k){return j("onClose",k)}})}b.fn.expose=function(d){var e=this.eq(typeof d=="number"?d:0).data("expose");if(e){return e}var f={maskId:null,loadSpeed:"slow",closeSpeed:"fast",closeOnClick:true,closeOnEsc:true,zIndex:9998,opacity:0.8,color:"#456",api:false};if(typeof d=="string"){d={color:d}}b.extend(f,d);this.each(function(){e=new c(b(this),f);b(this).data("expose",e)});return f.api?e:this}})(jQuery);(function(){var e=typeof jQuery=="function";function i(){if(c.done){return false}var k=document;if(k&&k.getElementsByTagName&&k.getElementById&&k.body){clearInterval(c.timer);c.timer=null;for(var j=0;j<c.ready.length;j++){c.ready[j].call()}c.ready=null;c.done=true}}var c=e?jQuery:function(j){if(c.done){return j()}if(c.timer){c.ready.push(j)}else{c.ready=[j];c.timer=setInterval(i,13)}};function f(k,j){if(j){for(key in j){if(j.hasOwnProperty(key)){k[key]=j[key]}}}return k}function g(j){switch(h(j)){case"string":j=j.replace(new RegExp('(["\\\\])',"g"),"\\$1");j=j.replace(/^\s?(\d+)%/,"$1pct");return'"'+j+'"';case"array":return"["+b(j,function(m){return g(m)}).join(",")+"]";case"function":return'"function()"';case"object":var k=[];for(var l in j){if(j.hasOwnProperty(l)){k.push('"'+l+'":'+g(j[l]))}}return"{"+k.join(",")+"}"}return String(j).replace(/\s/g," ").replace(/\'/g,'"')}function h(k){if(k===null||k===undefined){return false}var j=typeof k;return(j=="object"&&k.push)?"array":j}if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function b(j,m){var l=[];for(var k in j){if(j.hasOwnProperty(k)){l[k]=m(j[k])}}return l}function a(q,s){var o=f({},q);var r=document.all;var m='<object width="'+o.width+'" height="'+o.height+'"';if(r&&!o.id){o.id="_"+(""+Math.random()).substring(9)}if(o.id){m+=' id="'+o.id+'"'}o.src+=((o.src.indexOf("?")!=-1?"&":"?")+Math.random());if(o.w3c||!r){m+=' data="'+o.src+'" type="application/x-shockwave-flash"'}else{m+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}m+=">";if(o.w3c||r){m+='<param name="movie" value="'+o.src+'" />'}o.width=o.height=o.id=o.w3c=o.src=null;for(var j in o){if(o[j]!==null){m+='<param name="'+j+'" value="'+o[j]+'" />'}}var n="";if(s){for(var l in s){if(s[l]!==null){n+=l+"="+(typeof s[l]=="object"?g(s[l]):s[l])+"&"}}n=n.substring(0,n.length-1);m+='<param name="flashvars" value=\''+n+"' />"}m+="</object>";return m}function d(l,o,k){var j=flashembed.getVersion();f(this,{getContainer:function(){return l},getConf:function(){return o},getVersion:function(){return j},getFlashvars:function(){return k},getApi:function(){return l.firstChild},getHTML:function(){return a(o,k)}});var p=o.version;var q=o.expressInstall;var n=!p||flashembed.isSupported(p);if(n){o.onFail=o.version=o.expressInstall=null;l.innerHTML=a(o,k)}else{if(p&&q&&flashembed.isSupported([6,65])){f(o,{src:q});k={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};l.innerHTML=a(o,k)}else{if(l.innerHTML.replace(/\s/g,"")!==""){}else{l.innerHTML="<h2>Flash version "+p+" or greater is required</h2><h3>"+(j[0]>0?"Your version is "+j:"You have no flash plugin installed")+"</h3>"+(l.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='http://www.adobe.com/go/getflashplayer'>here</a></p>");if(l.tagName=="A"){l.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"}}}}}if(!n&&o.onFail){var m=o.onFail.call(this);if(typeof m=="string"){l.innerHTML=m}}if(document.all){window[o.id]=document.getElementById(o.id)}}window.flashembed=function(k,l,j){if(typeof k=="string"){var m=document.getElementById(k);if(m){k=m}else{c(function(){flashembed(k,l,j)});return}}if(!k){return}var n={width:"100%",height:"100%",allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:false};if(typeof l=="string"){l={src:l}}f(n,l);return new d(k,n,j)};f(window.flashembed,{getVersion:function(){var l=[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var k=navigator.plugins["Shockwave Flash"].description;if(typeof k!="undefined"){k=k.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var m=parseInt(k.replace(/^(.*)\..*$/,"$1"),10);var q=/r/.test(k)?parseInt(k.replace(/^.*r(.*)$/,"$1"),10):0;l=[m,q]}}else{if(window.ActiveXObject){try{var o=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(p){try{o=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");l=[6,0];o.AllowScriptAccess="always"}catch(j){if(l[0]==6){return l}}try{o=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(n){}}if(typeof o=="object"){k=o.GetVariable("$version");if(typeof k!="undefined"){k=k.replace(/^\S+\s+(.*)$/,"$1").split(",");l=[parseInt(k[0],10),parseInt(k[2],10)]}}}}return l},isSupported:function(j){var l=flashembed.getVersion();var k=(l[0]>j[0])||(l[0]==j[0]&&l[1]>=j[1]);return k},domReady:c,asString:g,getHTML:a});if(e){jQuery.tools=jQuery.tools||{version:{}};jQuery.tools.version.flashembed="1.0.3";jQuery.fn.flashembed=function(k,j){var l=null;this.each(function(){l=flashembed(this,k,j)});return k.api===false?this:l}}})();jQuery(function(a){a.ajaxSetup({type:"post",timeout:30000,dataFilter:function(c,b){try{c=window["eval"]("("+c+")");return c}catch(d){if(d.name==="SyntaxError"){var f=this.xhr();a.event.trigger("ajaxError",[{status:500}]);f.readyState=0}else{throw d}}}});a("div#ajax-active").bind("click keydown",function(b){if(a(this).hasClass("error")){a(this).removeClass("error").hide()}}).bind("ajaxStart",function(b){if(a(this).hasClass("error")){a(this).removeClass("error")}a(this).fadeIn(350)}).bind("ajaxError",function(d,c,b){if(c.status>=500){a(this).addClass("error")}}).bind("ajaxStop",function(){if(!a(this).hasClass(".error")){a(this).fadeOut(500)}});vivid.flash.player_container=a("div#player");vivid.customizer=a("div#customizer");vivid.customizer_form=a("form#customizer-form");vivid.customizer_comeback=vivid.customizer.find("a.comeback");vivid.counter.container=a("div#video div.counter");setTimeout(vivid.counter.request,1500);vivid.sender_form=a("form#sender-form");vivid.sender_collection=vivid.sender_form.find("input");vivid.addressbook=a("div#addressbook");vivid.recipients=vivid.addressbook.find("div#recipients");vivid.help_text=vivid.addressbook.find("div#help");vivid.help_link=vivid.addressbook.find("a.help-link");vivid.import_button=vivid.addressbook.find("a.import-addressbook");vivid.import_add_field=vivid.addressbook.find("a.add-field");vivid.import_form=vivid.addressbook.find("form#import-form");vivid.import_collection=vivid.import_form.find("select, input");vivid.preview_box=a("div#mail-preview");vivid.preview_button=vivid.addressbook.find("a.mail-preview");vivid.address_button=a("div#sender button.submit-addreessbook");vivid.upload_counter=0;vivid.petition=a("div#petition");vivid.petition_form=vivid.petition.find("form#sign-petition-form");vivid.petition_collection=vivid.petition_form.find("input, select");vivid.petition_signed=vivid.petition.find("div#petition-signed");vivid.petition_next=vivid.petition.find("p.next a");vivid.petition_text=vivid.petition.find("div#petition-text");vivid.flash.player_container.find("a.embed").bind("click",vivid.flash.embed);vivid.customizer_comeback.bind("click",function(b,c){a(this).css("display","none");vivid.customizer_form.slideDown("slow");b.stopPropagation();b.preventDefault()});vivid.customizer_form.bind("click",function(b,c){b.stopPropagation()}).bind("submit",vivid.customizer_submit);vivid.sender_form.bind("submit",vivid.sender_submit);vivid.address_button.bind("click",function(b){vivid.sender_form.trigger("submit")});vivid.help_link.bind("click",function(b){vivid.help_text.toggle();a(window).trigger("resize.expose")});vivid.import_form.bind("submit",vivid.import_submit);vivid.import_add_field.bind("click",vivid.import_field_add);vivid.import_button.bind("click",vivid.import_toggle);vivid.petition_form.bind("submit",vivid.petition_submit);vivid.petition_next.bind("click",function(b){a("div#petition").expose({api:true}).close();a("div#jump-navigation a").trigger("click")});a("div#jump-navigation a").bind("click",vivid.switch_form);a("div#viral, div#petition").bind("click",function(b,c){a(this).trigger({type:"vivid/expose"})});a("a:not(.external)").bind("click",function(b,c){a(document).trigger({type:"vivid/morph"});b.preventDefault()});a("div#social a.fb_share_link").bind("click",fbs_click);a("a#forward").bind("click",function(c,d){var b={type:"vivid/morph",payload:{callback:function(){a(this).find("div#viral").trigger({type:"vivid/expose"})}}};a(document).trigger(b);c.preventDefault()});a("div#viral, div#petition").bind("vivid/expose",function(b,c){a(this).expose({api:true,color:"#333"}).load();vivid.preview_box.show().expose({api:true,opacity:0}).load()});a(document).bind("vivid/morph",function(c,d){var e=c.payload?c.payload.callback:undefined;a(".landingpage").hide();a(".campaign").show();var b=a("div#stwrapper");a("a.stbutton").bind("click",function(f){if(b.is(":visible")){var g=(960-b.width())+a("div#page").offset().left;b.css("left",g)}});vivid.import_field_add(undefined,{});vivid.import_field_add(undefined,{});vivid.import_field_add(undefined,{});vivid.import_field_add(undefined,{});vivid.import_field_add(undefined,{});if(e){e.call(this)}vivid.support.counter();a(document).unbind("vivid/morph")});vivid.url_handling();a(":text, :password").labelify({labelledClass:"labelled",text:"label"});a("p.success").live("click",function(b){a("div#sender p.success").slideUp(300,function(){a(this).remove()})});a("div#video input:disabled").removeAttr("disabled")});vivid=window.vivid?vivid:{};(function(a){a.extend(vivid,{counter:{},flash:{params:{src:"/s/flash/videoplayer.swf",version:[9,0,28],expressInstall:"/s/flash/expressinstall.swf",onFail:function(){vivid.flash.player_container.hide();a("div#player-fail").show().animate({height:"100px",marginBottom:"275px"},350)},allowscriptaccess:"sameDomain",wmode:"opaque",width:"640",height:"385",quality:"best",bgcolor:"#000000"},flashvars:{path:"/s/flash/kettenreaktion-01.flv",firstname:"Max",surname:"Mustermann",controllskin:"/s/flash/controllskin.swf",overlaySkin:"/s/flash/overlay.swf",morphTimer:"97"}},support:{actual_couinter:0}});a.extend(vivid.counter,{increase:function(){a.ajax({url:"/count/visits/",success:function(c,b){vivid.counter.request(true)}})},request:function(){var b=arguments[0];if(b!==true){clearInterval(vivid.counter.interval)}a.ajax({url:"/count/visits/",type:"get",global:false,success:function(d,c){vivid.counter.container.html("<em>"+d+"</em> Aufrufe");a("div#counter").find("p strong").text(d);if(b!==true){vivid.counter.interval=setInterval("vivid.counter.request()",120000)}}})}});a.extend(vivid.flash,{embed:function(c,d){var e=vivid.flash.params;var b=vivid.flash.flashvars;vivid.flash.player=vivid.flash.player_container.flashembed(e,b);if(c){c.stopPropagation();c.preventDefault()}},is_loaded:false});a.extend(vivid.support,{counter:function(){a.ajax({url:"/sign/counter/",type:"get",success:function(c,b){a("div#support-text p strong span").text(c)}})}});a.extend(vivid,{url_handling:function(){var d=location.search;var b=d.length?d.substr(1).split("&"):[];var c={};if(b.length){a.each(b,function(e,f){var g=f.split("=");c[g[0]]=g[1]});a.ajax({url:c.o,type:"get",error:function(g,f,e){if(g.status<500){location.href="/"}},success:function(e){vivid.flash.flashvars.firstname=e.firstname;vivid.flash.flashvars.surname=e.surname;vivid.customizer_form.css("display","none");vivid.flash.embed();vivid.customizer_form.find('input[name="firstname"]').val(e.firstname).end().find('input[name="surname"]').val(e.surname).end();vivid.customizer_comeback.css("display","block");a("input#video-url").val(e.shorturl)}})}},customizer_submit:function(c,d){var b=a(this);var e=a(this).find("input");e.each(function(f,h){var g=a(this);if(g.val()===g.data("label")){h.value=h.defaultValue;g.removeClass("labelled")}});a.ajax({url:a(this).attr("action"),data:e.serialize(),error:function(h,g,f){if(h.status<500){var i=a.httpData(h,"json");e.removeClass("error");a.each(i,function(j,k){e.filter('[name="'+k+'"]').addClass("error")});e.trigger("blur")}},success:function(h,g){if(!vivid.flash.is_loaded){vivid.flash.flashvars.firstname=h.firstname;vivid.flash.flashvars.surname=h.surname;vivid.flash.embed()}else{var f=vivid.flash.player_container.children().get(0);f.setName(h.surname,h.firstname);f.restartMovie()}e.removeClass("error");b.next("a.comeback").css("display","block");b.slideUp("slow");a("input#video-url").val(h.shorturl)}});c.stopPropagation();c.preventDefault()},sender_submit:function(c,d){var e=vivid.sender_collection;var b=vivid.sender_collection.filter("input#sender-newsletter");if(b.is(":checked")&&!b.attr("disabled")){e.each(function(f,h){var g=a(this);if(g.val()===g.data("label")){h.value=h.defaultValue;g.removeClass("labelled")}});a.ajax({url:a(this).attr("action"),data:e.serialize(),error:function(h,f,g){if(h.status<500){var i=a.httpData(h,"json");e.removeClass("error");a.each(i,function(j,k){e.filter('[name="'+k+'"]').addClass("error")});e.trigger("blur")}},success:function(g,f){e.removeClass("error").filter("input#sender-email").attr("disabled","disabled");b.attr("disabled","disabled").next("label").text("Bitte informiert mich weiter über die Menschenkette und andere Aktionen!");vivid.upload_sequence()}})}else{vivid.upload_sequence()}c.preventDefault()},import_submit:function(b,c){var d=vivid.import_collection;d.each(function(e,g){var f=a(this);if(f.val()===f.data("label")){g.value=g.defaultValue;f.removeClass("labelled")}});a.ajax({url:a(this).attr("action"),data:d.serialize(),error:function(g,e,f){if(g.status<500){var h=a.httpData(g,"json");vivid.import_form.find("p.error").remove();d.removeClass("error");a.each(h,function(i,j){d.filter('[name="'+j+'"]').addClass("error")});d.trigger("blur")}else{if(g.status===503){vivid.import_form.find("p.error").remove().end().prepend('<p class="error">Der Dienst ist zurzeit nicht erreichbar. Probiere es später nocheinmal.</p>')}}},success:function(i,f){var e=0;var h=[];var g=0;vivid.import_form.slideUp();vivid.import_form.find("p.error").remove();vivid.recipients.find('div.recipient input[name="recipient_email"]').each(function(j,k){h.push(a(k).val())});d.each(function(j,k){a(this).val("").removeClass("error").trigger("blur")});a.each(i.contacts,function(k,m){if(a.inArray(k,h)===-1){var j=m.split(" ");var l=j.pop();var n=j.join(" ");vivid.import_field_add(undefined,{recipient_firstname:n,recipient_surname:l,recipient_email:k});e+=1}else{g+=1}});vivid.addressbook.find("p.success").remove();vivid.addressbook.find("h3:eq(0)").after('<p class="success">'+e+" Kontakte wurden importiert. ("+g+" Duplikate)</p>");vivid.address_button.prev("p.success").remove();vivid.address_button.before('<p class="success">'+e+" Kontakte wurden importiert. ("+g+" Duplikate)</p>")}});b.preventDefault()},import_toggle:function(b,c){if(vivid.import_form.is(":visible")){vivid.import_form.slideUp("normal",function(){a(window).trigger("resize.expose")})}else{vivid.import_form.slideDown("normal",function(){a(window).trigger("resize.expose")})}a(window).trigger("resize.expose");b.preventDefault()},import_field_add:function(c,f){var e=+new Date();var b='<div class="recipient"><form action="/send/" class="recipient-form'+e+'" class="recipient"><fieldset><label for="recipient-firstname'+e+'">Vorname*</label><input name="recipient_firstname" type="text" id="recipient-firstname'+e+'" class="firstname" /><label for="recipient-surname'+e+'">Nachname*</label><input name="recipient_surname" type="text" id="recipient-surname'+e+'" class="surname" /><label for="recipient-email'+e+'">Email*</label><input name="recipient_email" type="text" id="recipient-email'+e+'" class="email" /><a href="#" title="Diesen Eintrag löschen" class="remove-field"><img src="/s/img/minus.png" alt="Diesen Eintrag löschen" title="Diesen Eintrag löschen" /></a></fieldset></form></div>';var d=a(b);d.find("form").bind("submit",vivid.recipient_submit);d.find("a.remove-field").bind("click",vivid.import_field_remove);vivid.recipients.append(d);d.find("input").labelify({labelledClass:"labelled",text:"label"});if(f){a.each(f,function(g,h){d.find('input[name="'+g+'"]').val(h).removeClass("labelled")});d.show()}else{d.stop().slideDown("normal",function(){a(window).trigger("resize.expose")})}a(window).trigger("resize.expose");if(c){c.preventDefault();c.stopPropagation()}},import_field_remove:function(d,f){var e=vivid.recipients.find("div.recipient");var g=a(this).parents("div.recipient");var b=g.find("input");var c=g.find("label");if(e.length!==1){g.slideUp("normal",function(){g.remove();a(window).trigger("resize.expose")})}else{g.find("input").val("").trigger("blur")}a(window).trigger("resize.expose");if(d){d.preventDefault();d.stopPropagation()}},petition_submit:function(b,c){var d=vivid.petition_collection;d.each(function(e,g){var f=a(this);if(f.val()===f.data("label")){g.value=g.defaultValue;f.removeClass("labelled")}});a.ajax({url:a(this).attr("action"),data:a(this).serialize(),error:function(g,e,f){if(g.status<500){var h=a.httpData(g,"json");d.removeClass("error");a.each(h,function(i,j){d.filter('[name="'+j+'"]').addClass("error")});d.trigger("blur")}},success:function(h,g){var f;var e=d.filter("select#sign-petition-form-address").val();var j=d.filter("input#sign-petition-form-firstname").val();var i=d.filter("input#sign-petition-form-surname").val();if(e.toLowerCase()==="frau"){f="Liebe"}else{f="Lieber"}vivid.petition_signed.find("span#petition-signed-address").text(f);vivid.petition_signed.find("span#petition-signed-firstname").text(j);vivid.petition_signed.find("span#petition-signed-surname").text(i);vivid.petition_form.animate({opacity:0},200,function(){a(this).remove();vivid.petition_signed.fadeIn(350).nextAll();vivid.petition_text.find("*").css("color","#999")})}});b.preventDefault()},switch_form:function(e,f){var g=a("div#"+a(this).attr("href").substr(1));var b=g.expose({api:true,color:"#333"});var d=a(this).siblings("a:first").attr("href").substr(1);var c=a("div#"+d);if(g.is(":hidden")){a.scrollTo("#video",200);c.fadeOut("fast",function(){g.fadeIn("normal");b.load();a.scrollTo((g.offset().top-50),500)})}else{if(!b.isLoaded()){a.scrollTo(g,500);b.load()}}e.preventDefault()},recipient_submit:function(e,f){var d=a(this);var b=a(this).find("input");var c=vivid.sender_collection.filter("input:text");var f={sender_email:c.filter('input[name="email"]').val(),sender_firstname:c.filter('input[name="firstname"]').val(),sender_surname:c.filter('input[name="surname"]').val()};var g=b.add(c);g.each(function(h,j){var i=a(this);if(i.val()===i.data("label")){j.value=j.defaultValue;i.removeClass("labelled")}});empty_counter=0;b.each(function(h,j){var i=a(this);f[i.attr("name")]=i.val();if(!i.val().length){empty_counter+=1}});if(empty_counter>=3){d.parent().remove();vivid.upload_sequence();return false}a.ajax({url:d.attr("action"),data:f,error:function(j,i,h){if(j.status<500){var k=a.httpData(j,"json");g.removeClass("error");vivid.sender_form.find("button").text("Erneut abschicken");a.each(k,function(l,p){var o=p.split("_");var n=o[0];var m=o[1];if(n==="sender"){g.filter('[name="'+m+'"]').addClass("error")}else{g.filter('[name="'+p+'"]').addClass("error")}});g.trigger("blur")}},success:function(i,h){d.parent("div.recipient").remove();vivid.upload_counter+=1;vivid.upload_sequence()}});e.stopPropagation();e.preventDefault()},upload_sequence:function(){if(vivid.recipients.find("div.recipient:first form").length){vivid.recipients.find("div.recipient:first form").trigger("submit")}else{if(vivid.upload_counter>0){vivid.addressbook.find("p.success").remove();vivid.addressbook.find("h3:eq(0)").after('<p class="success">Das Video wurde versandt. Weitere Infos zur Menschenkette... <a href="http://www.atomkraft-abschalten.de">www.atomkraft-abschalten.de</a></p>');vivid.address_button.prev("p.success").remove();vivid.address_button.before('<p class="success">Das Video wurde versandt. Weitere Infos zur Menschenkette... <a href="http://www.atomkraft-abschalten.de">www.atomkraft-abschalten.de</a></p>');vivid.import_field_add(undefined,{});vivid.upload_counter=0}else{vivid.import_field_add(undefined,{})}}}});flashLoaded=function(){vivid.customizer.find("form, a").css("opacity",0.75).end().slideDown("slow");vivid.counter.increase();vivid.flash.is_loaded=true};flashMorph=function(){a(document).trigger({type:"vivid/morph"})};fbs_click=function(){u=location.href;t=document.title;window.open("http://www.facebook.com/sharer.php?u="+encodeURIComponent(u)+"&t="+encodeURIComponent(t),"sharer","toolbar=0,status=0,width=626,height=436");return false}})(jQuery);

