;
/* AGGREGATED JS FILE: misc/jquery.js */
/*
 * jQuery JavaScript Library v1.3.2
 * http://jquery.com/
 *
 * Copyright (c) 2009 John Resig
 * Dual licensed under the MIT and GPL licenses.
 * http://docs.jquery.com/License
 *
 * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
 * Revision: 6246
 */
(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F<J;F++){var G=M[F];if(G.selected){K=o(G).val();if(H){return K}L.push(K)}}return L}return(E.value||"").replace(/\r/g,"")}return g}if(typeof K==="number"){K+=""}return this.each(function(){if(this.nodeType!=1){return}if(o.isArray(K)&&/radio|checkbox/.test(this.type)){this.checked=(o.inArray(this.value,K)>=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G<E;G++){L.call(K(this[G],H),this.length>1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H<I;H++){if((G=arguments[H])!=null){for(var F in G){var K=J[F],L=G[F];if(J===L){continue}if(E&&L&&typeof L==="object"&&!L.nodeType){J[F]=o.extend(E,K||(L.length!=null?[]:{}),L)}else{if(L!==g){J[F]=L}}}}}return J};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,q=document.defaultView||{},s=Object.prototype.toString;o.extend({noConflict:function(E){l.$=p;if(E){l.jQuery=y}return o},isFunction:function(E){return s.call(E)==="[object Function]"},isArray:function(E){return s.call(E)==="[object Array]"},isXMLDoc:function(E){return E.nodeType===9&&E.documentElement.nodeName!=="HTML"||!!E.ownerDocument&&o.isXMLDoc(E.ownerDocument)},globalEval:function(G){if(G&&/\S/.test(G)){var F=document.getElementsByTagName("head")[0]||document.documentElement,E=document.createElement("script");E.type="text/javascript";if(o.support.scriptEval){E.appendChild(document.createTextNode(G))}else{E.text=G}F.insertBefore(E,F.firstChild);F.removeChild(E)}},nodeName:function(F,E){return F.nodeName&&F.nodeName.toUpperCase()==E.toUpperCase()},each:function(G,K,F){var E,H=0,I=G.length;if(F){if(I===g){for(E in G){if(K.apply(G[E],F)===false){break}}}else{for(;H<I;){if(K.apply(G[H++],F)===false){break}}}}else{if(I===g){for(E in G){if(K.call(G[E],E,G[E])===false){break}}}else{for(var J=G[0];H<I&&K.call(J,H,J)!==false;J=G[++H]){}}}return G},prop:function(H,I,G,F,E){if(o.isFunction(I)){I=I.call(H,F)}return typeof I==="number"&&G=="curCSS"&&!b.test(E)?I+"px":I},className:{add:function(E,F){o.each((F||"").split(/\s+/),function(G,H){if(E.nodeType==1&&!o.className.has(E.className,H)){E.className+=(E.className?" ":"")+H}})},remove:function(E,F){if(E.nodeType==1){E.className=F!==g?o.grep(E.className.split(/\s+/),function(G){return !o.className.has(F,G)}).join(" "):""}},has:function(F,E){return F&&o.inArray(E,(F.className||F).toString().split(/\s+/))>-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+"></"+T+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!O.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!O.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!O.indexOf("<td")||!O.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!O.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!o.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/<tbody/i.test(S),N=!O.indexOf("<table")&&!R?L.firstChild&&L.firstChild.childNodes:Q[1]=="<table>"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E<F;E++){if(H[E]===G){return E}}return -1},merge:function(H,E){var F=0,G,I=H.length;if(!o.support.getAll){while((G=E[F++])!=null){if(G.nodeType!=8){H[I++]=G}}}else{while((G=E[F++])!=null){H[I++]=G}}return H},unique:function(K){var F=[],E={};try{for(var G=0,H=K.length;G<H;G++){var J=o.data(K[G]);if(!E[J]){E[J]=true;F.push(K[G])}}}catch(I){F=K}return F},grep:function(F,J,E){var G=[];for(var H=0,I=F.length;H<I;H++){if(!E!=!J(F[H],H)){G.push(F[H])}}return G},map:function(E,J){var F=[];for(var G=0,H=E.length;G<H;G++){var I=J(E[G],G);if(I!=null){F[F.length]=I}}return F.concat.apply([],F)}});var C=navigator.userAgent.toLowerCase();o.browser={version:(C.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(C),opera:/opera/.test(C),msie:/msie/.test(C)&&!/opera/.test(C),mozilla:/mozilla/.test(C)&&!/(compatible|webkit)/.test(C)};o.each({parent:function(E){return E.parentNode},parents:function(E){return o.dir(E,"parentNode")},next:function(E){return o.nth(E,2,"nextSibling")},prev:function(E){return o.nth(E,2,"previousSibling")},nextAll:function(E){return o.dir(E,"nextSibling")},prevAll:function(E){return o.dir(E,"previousSibling")},siblings:function(E){return o.sibling(E.parentNode.firstChild,E)},children:function(E){return o.sibling(E.firstChild)},contents:function(E){return o.nodeName(E,"iframe")?E.contentDocument||E.contentWindow.document:o.makeArray(E.childNodes)}},function(E,F){o.fn[E]=function(G){var H=o.map(this,F);if(G&&typeof G=="string"){H=o.multiFilter(G,H)}return this.pushStack(o.unique(H),E,G)}});o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(E,F){o.fn[E]=function(G){var J=[],L=o(G);for(var K=0,H=L.length;K<H;K++){var I=(K>0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}});
/*
 * 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 R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa<ab.length;aa++){if(ab[aa]===ab[aa-1]){ab.splice(aa--,1)}}}}}return ab};F.matches=function(T,U){return F(T,null,null,U)};F.find=function(aa,T,ab){var Z,X;if(!aa){return[]}for(var W=0,V=I.order.length;W<V;W++){var Y=I.order[W],X;if((X=I.match[Y].exec(aa))){var U=RegExp.leftContext;if(U.substr(U.length-1)!=="\\"){X[1]=(X[1]||"").replace(/\\/g,"");Z=I.find[Y](X,T,ab);if(Z!=null){aa=aa.replace(I.match[Y],"");break}}}}if(!Z){Z=T.getElementsByTagName("*")}return{set:Z,expr:aa}};F.filter=function(ad,ac,ag,W){var V=ad,ai=[],aa=ac,Y,T,Z=ac&&ac[0]&&Q(ac[0]);while(ad&&ac.length){for(var ab in I.filter){if((Y=I.match[ab].exec(ad))!=null){var U=I.filter[ab],ah,af;T=false;if(aa==ai){ai=[]}if(I.preFilter[ab]){Y=I.preFilter[ab](Y,aa,ag,ai,W,Z);if(!Y){T=ah=true}else{if(Y===true){continue}}}if(Y){for(var X=0;(af=aa[X])!=null;X++){if(af){ah=U(af,Y,X,aa);var ae=W^!!ah;if(ag&&ah!=null){if(ae){T=true}else{aa[X]=false}}else{if(ae){ai.push(af);T=true}}}}}if(ah!==g){if(!ag){aa=ai}ad=ad.replace(I.match[ab],"");if(!T){return[]}break}}}if(ad==V){if(T==null){throw"Syntax error, unrecognized expression: "+ad}else{break}}V=ad}return aa};var I=F.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(T){return T.getAttribute("href")}},relative:{"+":function(aa,T,Z){var X=typeof T==="string",ab=X&&!/\W/.test(T),Y=X&&!ab;if(ab&&!Z){T=T.toUpperCase()}for(var W=0,V=aa.length,U;W<V;W++){if((U=aa[W])){while((U=U.previousSibling)&&U.nodeType!==1){}aa[W]=Y||U&&U.nodeName===T?U||false:U===T}}if(Y){F.filter(T,aa,true)}},">":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){var W=Y.parentNode;Z[V]=W.nodeName===U?W:false}}}else{for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){Z[V]=X?Y.parentNode:Y.parentNode===U}}if(X){F.filter(U,Z,true)}}},"":function(W,U,Y){var V=L++,T=S;if(!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("parentNode",U,V,W,X,Y)},"~":function(W,U,Y){var V=L++,T=S;if(typeof U==="string"&&!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("previousSibling",U,V,W,X,Y)}},find:{ID:function(U,V,W){if(typeof V.getElementById!=="undefined"&&!W){var T=V.getElementById(U[1]);return T?[T]:[]}},NAME:function(V,Y,Z){if(typeof Y.getElementsByName!=="undefined"){var U=[],X=Y.getElementsByName(V[1]);for(var W=0,T=X.length;W<T;W++){if(X[W].getAttribute("name")===V[1]){U.push(X[W])}}return U.length===0?null:U}},TAG:function(T,U){return U.getElementsByTagName(T[1])}},preFilter:{CLASS:function(W,U,V,T,Z,aa){W=" "+W[1].replace(/\\/g,"")+" ";if(aa){return W}for(var X=0,Y;(Y=U[X])!=null;X++){if(Y){if(Z^(Y.className&&(" "+Y.className+" ").indexOf(W)>=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return U<T[3]-0},gt:function(V,U,T){return U>T[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W<T;W++){if(Y[W]===Z){return false}}return true}}}},CHILD:function(T,W){var Z=W[1],U=T;switch(Z){case"only":case"first":while(U=U.previousSibling){if(U.nodeType===1){return false}}if(Z=="first"){return true}U=T;case"last":while(U=U.nextSibling){if(U.nodeType===1){return false}}return true;case"nth":var V=W[2],ac=W[3];if(V==1&&ac==0){return true}var Y=W[0],ab=T.parentNode;if(ab&&(ab.sizcache!==Y||!T.nodeIndex)){var X=0;for(U=ab.firstChild;U;U=U.nextSibling){if(U.nodeType===1){U.nodeIndex=++X}}ab.sizcache=Y}var aa=T.nodeIndex-ac;if(V==0){return aa==0}else{return(aa%V==0&&aa/V>=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V<T;V++){U.push(X[V])}}else{for(var V=0;X[V];V++){U.push(X[V])}}}return U}}var G;if(document.documentElement.compareDocumentPosition){G=function(U,T){var V=U.compareDocumentPosition(T)&4?-1:U===T?0:1;if(V===0){hasDuplicate=true}return V}}else{if("sourceIndex" in document.documentElement){G=function(U,T){var V=U.sourceIndex-T.sourceIndex;if(V===0){hasDuplicate=true}return V}}else{if(document.createRange){G=function(W,U){var V=W.ownerDocument.createRange(),T=U.ownerDocument.createRange();V.selectNode(W);V.collapse(true);T.selectNode(U);T.collapse(true);var X=V.compareBoundaryPoints(Range.START_TO_END,T);if(X===0){hasDuplicate=true}return X}}}}(function(){var U=document.createElement("form"),V="script"+(new Date).getTime();U.innerHTML="<input name='"+V+"'/>";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="<a href='#'></a>";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="<p class='TEST'></p>";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="<div class='test e'></div><div class='test'></div>";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1&&!ac){T.sizcache=Y;T.sizset=W}if(T.nodeName===Z){X=T;break}T=T[U]}ad[W]=X}}}function S(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1){if(!ac){T.sizcache=Y;T.sizset=W}if(typeof Z!=="string"){if(T===Z){X=true;break}}else{if(F.filter(Z,[T]).length>0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z<U;Z++){F(T,V[Z],W)}return F.filter(X,W)};o.find=F;o.filter=F.filter;o.expr=F.selectors;o.expr[":"]=o.expr.filters;F.selectors.filters.hidden=function(T){return T.offsetWidth===0||T.offsetHeight===0};F.selectors.filters.visible=function(T){return T.offsetWidth>0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F<E.length){o.event.proxy(G,E[F++])}return this.click(o.event.proxy(G,function(H){this.lastToggle=(this.lastToggle||0)%F;H.preventDefault();return E[this.lastToggle++].apply(this,arguments)||false}))},hover:function(E,F){return this.mouseenter(E).mouseleave(F)},ready:function(E){B();if(o.isReady){E.call(document,o)}else{o.readyList.push(E)}return this},live:function(G,F){var E=o.event.proxy(F);E.guid+=this.selector+G;o(document).bind(i(G,this.selector),this.selector,E);return this},die:function(F,E){o(document).unbind(i(F,this.selector),E?{guid:E.guid+this.selector+F}:null);return this}});function c(H){var E=RegExp("(^|\\.)"+H.type+"(\\.|$)"),G=true,F=[];o.each(o.data(this,"events").live||[],function(I,J){if(E.test(J.type)){var K=o(H.target).closest(J.data)[0];if(K){F.push({elem:K,fn:J})}}});F.sort(function(J,I){return o.data(J.elem,"closest")-o.data(I.elem,"closest")});o.each(F,function(){if(this.fn.call(this.elem,H,this.fn.data)===false){return(G=false)}});return G}function i(F,E){return["live",F,E.replace(/\./g,"`").replace(/ /g,"|")].join(".")}o.extend({isReady:false,readyList:[],ready:function(){if(!o.isReady){o.isReady=true;if(o.readyList){o.each(o.readyList,function(){this.call(document,o)});o.readyList=null}o(document).triggerHandler("ready")}}});var x=false;function B(){if(x){return}x=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);o.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);o.ready()}});if(document.documentElement.doScroll&&l==l.top){(function(){if(o.isReady){return}try{document.documentElement.doScroll("left")}catch(E){setTimeout(arguments.callee,0);return}o.ready()})()}}}o.event.add(l,"load",o.ready)}o.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(F,E){o.fn[E]=function(G){return G?this.bind(E,G):this.trigger(E)}});o(l).bind("unload",function(){for(var E in o.cache){if(E!=1&&o.cache[E].handle){o.event.remove(o.cache[E].handle.elem)}}});(function(){o.support={};var F=document.documentElement,G=document.createElement("script"),K=document.createElement("div"),J="script"+(new Date).getTime();K.style.display="none";K.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var H=K.getElementsByTagName("*"),E=K.getElementsByTagName("a")[0];if(!H||!H.length||!E){return}o.support={leadingWhitespace:K.firstChild.nodeType==3,tbody:!K.getElementsByTagName("tbody").length,objectAll:!!K.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(E.getAttribute("style")),hrefNormalized:E.getAttribute("href")==="/a",opacity:E.style.opacity==="0.5",cssFloat:!!E.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(document.createTextNode("window."+J+"=1;"))}catch(I){}F.insertBefore(G,F.firstChild);if(l[J]){o.support.scriptEval=true;delete l[J]}F.removeChild(G);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function(){o.support.noCloneEvent=false;K.detachEvent("onclick",arguments.callee)});K.cloneNode(true).fireEvent("onclick")}o(function(){var L=document.createElement("div");L.style.width=L.style.paddingLeft="1px";document.body.appendChild(L);o.boxModel=o.support.boxModel=L.offsetWidth===2;document.body.removeChild(L).style.display="none"})})();var w=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.fn.load,load:function(G,J,K){if(typeof G!=="string"){return this._load(G)}var I=G.indexOf(" ");if(I>=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("<div/>").append(M.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H<F;H++){var E=o.data(this[H],"olddisplay");this[H].style.display=E||"";if(o.css(this[H],"display")==="none"){var G=this[H].tagName,K;if(m[G]){K=m[G]}else{var I=o("<"+G+" />").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H<F;H++){this[H].style.display=o.data(this[H],"olddisplay")||""}return this}},hide:function(H,I){if(H){return this.animate(t("hide",3),H,I)}else{for(var G=0,F=this.length;G<F;G++){var E=o.data(this[G],"olddisplay");if(!E&&E!=="none"){o.data(this[G],"olddisplay",o.css(this[G],"display"))}}for(var G=0,F=this.length;G<F;G++){this[G].style.display="none"}return this}},_toggle:o.fn.toggle,toggle:function(G,F){var E=typeof G==="boolean";return o.isFunction(G)&&o.isFunction(F)?this._toggle.apply(this,arguments):G==null||E?this.each(function(){var H=E?G:o(this).is(":hidden");o(this)[H?"show":"hide"]()}):this.animate(t("toggle",3),G,F)},fadeTo:function(E,G,F){return this.animate({opacity:G},E,F)},animate:function(I,F,H,G){var E=o.speed(F,H,G);return this[E.queue===false?"each":"queue"](function(){var K=o.extend({},E),M,L=this.nodeType==1&&o(this).is(":hidden"),J=this;for(M in I){if(I[M]=="hide"&&L||I[M]=="show"&&!L){return K.complete.call(this)}if((M=="height"||M=="width")&&this.style){K.display=o.css(this,"display");K.overflow=this.style.overflow}}if(K.overflow!=null){this.style.overflow="hidden"}K.curAnim=o.extend({},I);o.each(I,function(O,S){var R=new o.fx(J,K,O);if(/toggle|show|hide/.test(S)){R[S=="toggle"?L?"show":"hide":S](I)}else{var Q=S.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),T=R.cur(true)||0;if(Q){var N=parseFloat(Q[2]),P=Q[3]||"px";if(P!="px"){J.style[O]=(N||1)+P;T=((N||1)/R.cur(true))*T;J.style[O]=T+P}if(Q[1]){N=((Q[1]=="-="?-1:1)*N)+T}R.custom(T,N,P)}else{R.custom(T,S,"")}}});return true})},stop:function(F,E){var G=o.timers;if(F){this.queue([])}this.each(function(){for(var H=G.length-1;H>=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J<K.length;J++){if(!K[J]()){K.splice(J--,1)}}if(!K.length){clearInterval(n);n=g}},13)}},show:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());o(this.elem).show()},hide:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(H){var G=e();if(H||G>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})();
;
/* AGGREGATED JS FILE: misc/drupal.js */
// $Id: drupal.js,v 1.29.2.1 2007/07/15 23:07:06 drumm Exp $

var Drupal = Drupal || {};

/**
 * Set the variable that indicates if JavaScript behaviors should be applied
 */
Drupal.jsEnabled = document.getElementsByTagName && document.createElement && document.createTextNode && document.documentElement && document.getElementById;

/**
 * Extends the current object with the parameter. Works recursively.
 */
Drupal.extend = function(obj) {
  for (var i in obj) {
    if (this[i]) {
      Drupal.extend.apply(this[i], [obj[i]]);
    }
    else {
      this[i] = obj[i];
    }
  }
};

/**
 * Redirects a button's form submission to a hidden iframe and displays the result
 * in a given wrapper. The iframe should contain a call to
 * window.parent.iframeHandler() after submission.
 */
Drupal.redirectFormButton = function (uri, button, handler) {
  // Trap the button
  button.onmouseover = button.onfocus = function() {
    button.onclick = function() {
      // Create target iframe
      Drupal.createIframe();

      // Prepare variables for use in anonymous function.
      var button = this;
      var action = button.form.action;
      var target = button.form.target;

      // Redirect form submission to iframe
      this.form.action = uri;
      this.form.target = 'redirect-target';

      handler.onsubmit();

      // Set iframe handler for later
      window.iframeHandler = function () {
        var iframe = $('#redirect-target').get(0);
        // Restore form submission
        button.form.action = action;
        button.form.target = target;

        // Get response from iframe body
        try {
          response = (iframe.contentWindow || iframe.contentDocument || iframe).document.body.innerHTML;
          // Firefox 1.0.x hack: Remove (corrupted) control characters
          response = response.replace(/[\f\n\r\t]/g, ' ');
          if (window.opera) {
            // Opera-hack: it returns innerHTML sanitized.
            response = response.replace(/&quot;/g, '"');
          }
        }
        catch (e) {
          response = null;
        }

        response = Drupal.parseJson(response);
        // Check response code
        if (response.status == 0) {
          handler.onerror(response.data);
          return;
        }
        handler.oncomplete(response.data);

        return true;
      }

      return true;
    }
  }
  button.onmouseout = button.onblur = function() {
    button.onclick = null;
  }
};

/**
 * Retrieves the absolute position of an element on the screen
 */
Drupal.absolutePosition = function (el) {
  var sLeft = 0, sTop = 0;
  var isDiv = /^div$/i.test(el.tagName);
  if (isDiv && el.scrollLeft) {
    sLeft = el.scrollLeft;
  }
  if (isDiv && el.scrollTop) {
    sTop = el.scrollTop;
  }
  var r = { x: el.offsetLeft - sLeft, y: el.offsetTop - sTop };
  if (el.offsetParent) {
    var tmp = Drupal.absolutePosition(el.offsetParent);
    r.x += tmp.x;
    r.y += tmp.y;
  }
  return r;
};

/**
 * Return the dimensions of an element on the screen
 */
Drupal.dimensions = function (el) {
  return { width: el.offsetWidth, height: el.offsetHeight };
};

/**
 *  Returns the position of the mouse cursor based on the event object passed
 */
Drupal.mousePosition = function(e) {
  return { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop };
};

/**
 * Parse a JSON response.
 *
 * The result is either the JSON object, or an object with 'status' 0 and 'data' an error message.
 */
Drupal.parseJson = function (data) {
  if ((data.substring(0, 1) != '{') && (data.substring(0, 1) != '[')) {
    return { status: 0, data: data.length ? data : 'Unspecified error' };
  }
  return eval('(' + data + ');');
};

/**
 * Create an invisible iframe for form submissions.
 */
Drupal.createIframe = function () {
  if ($('#redirect-holder').size()) {
    return;
  }
  // Note: some browsers require the literal name/id attributes on the tag,
  // some want them set through JS. We do both.
  window.iframeHandler = function () {};
  var div = document.createElement('div');
  div.id = 'redirect-holder';
  $(div).html('<iframe name="redirect-target" id="redirect-target" class="redirect" onload="window.iframeHandler();"></iframe>');
  var iframe = div.firstChild;
  $(iframe)
    .attr({
      name: 'redirect-target',
      id: 'redirect-target'
    })
    .css({
      position: 'absolute',
      height: '1px',
      width: '1px',
      visibility: 'hidden'
    });
  $('body').append(div);
};

/**
 * Delete the invisible iframe
 */
Drupal.deleteIframe = function () {
  $('#redirect-holder').remove();
};

/**
 * Freeze the current body height (as minimum height). Used to prevent
 * unnecessary upwards scrolling when doing DOM manipulations.
 */
Drupal.freezeHeight = function () {
  Drupal.unfreezeHeight();
  var div = document.createElement('div');
  $(div).css({
    position: 'absolute',
    top: '0px',
    left: '0px',
    width: '1px',
    height: $('body').css('height')
  }).attr('id', 'freeze-height');
  $('body').append(div);
};

/**
 * Unfreeze the body height
 */
Drupal.unfreezeHeight = function () {
  $('#freeze-height').remove();
};

/**
 * Wrapper to address the mod_rewrite url encoding bug
 * (equivalent of drupal_urlencode() in PHP).
 */
Drupal.encodeURIComponent = function (item, uri) {
  uri = uri || location.href;
  item = encodeURIComponent(item).replace(/%2F/g, '/');
  return (uri.indexOf('?q=') != -1) ? item : item.replace(/%26/g, '%2526').replace(/%23/g, '%2523').replace(/\/\//g, '/%252F');
};

// Global Killswitch on the <html> element
if (Drupal.jsEnabled) {
  document.documentElement.className = 'js';
}

;
/* AGGREGATED JS FILE: sites/all/modules/quid_flashhelper/flashhelper.js */
// $Id: upload.js,v 1.11 2006/08/31 23:31:25 unconed Exp $

/**
 * Attaches the upload behaviour to the upload form.
 videoEndRecord
videoBeginRecord
*/
var initialInit = false;

var _sf_startpt=(new Date()).getTime(); // For ChartBeat analytics
var stop = false;
var fileSelected = false;
var playAll = false;
var liveUpdates = false;
var openNode = 0;
var openThumb = 0;
var topVideoID = 0;

var origDomain = document.domain;

var currentActionItem = null;  

var recorderOpen = false;

var postRecordRedirect = '/home';

var expandLinkText_closed = "full player";
var expandLinkText_opened = "close player";

var playallText_off = "Play All";
var playallText_on = "Stop Play All";

var liveText_off = "Start Live Updates...";
var liveText_on = "Stop Live Updates";

var onHomePage = false;

var g_uid = '';
var g_recvisibilitypref_hash = '';
var g_autoupdate_hash = '';

var lastPostedCommentNid = 0;

var flashvars_rc = {};
var upload_rc = {};
var x12omercial_rc = {};
x12omercial_rc.campaignID = 1;
x12omercial_rc.webLink = 'http://';
var default_rc = {};

var default_tweettext = '';


var preset_flashvars = {};
preset_flashvars.int = "true";
preset_flashvars.autoPlay = "true";

var preset_params = {};
preset_params.wmode = "transparent";
preset_params.allowfullscreen = "true";
preset_params.swliveconnect = "true";

var preset_attributes = {};

var box_12eratorOpen = false;

var swf_12omercial_feedplayer = '/sites/all/modules/quid_flashhelper/12omercial_feedPlayer.swf';
var swf_feedplayer = '/sites/all/modules/quid_flashhelper/feedplayer.swf';
var swf_feedThumbPlayer = '/sites/all/modules/quid_flashhelper/feedThumbPlayer2.swf';


function videoEndRecord() {               
  $('#edit-submit.form-submit').removeAttr('disabled').removeClass('recording');
}

function videoBeginRecord() { 
	$('#edit-submit.form-submit').attr({disabled:'disabled'}).addClass('recording');
}

function setupFileUploader()
{
   
   $("#fileUploadClicker").click(function(){ 
        
        
        function displayNext()
        {
            $("#uploadText").hide();
            $("#recorderText").show();
            $("#fileUploader").show();
                $(".titleText").hide();
                $(".titleText").show();
        }
        $("#recorderFrame").hide();
        displayNext();
   
   });
   
   $("#recorderClicker").click(function(){ 
        
        function displayNext2()
        {
            $("#recorderText").hide();
            $("#uploadText").show();
            $("#recorderFrame").show();
        }
        $("#fileUploader").hide();
        displayNext2();
   
   });
}

function postComplete()
{    
    // Make it so the auto-update shit goes automatically next time around
    if($("#pollFrame").length > 0)
        window.pollFrame.videoJustPosted = true;
    // Roll up the recorders before we post now
    recorderOpen = false;
    rollUpActionItems(null,true,function() {
        
        // Make the call to get the latest msgs
        $.get('/api/feeds/getmsgs',null,showPostRecordMsgs,"json");
    
    });
    
    
}

function showPostRecordMsgs(data,status)
{
    if(data.status == "OK")
        showAjaxMessage(data.msg,data.type,data.displayTime,true);
    else if(data.status == "empty")
    { }
    else
        window.location = '/home';
}

function initForms(post_uri,sA,sB)
{            
            var uploadData = '';
            uploadData += 'sA='+sA;
            uploadData += '&sB='+sB;
            $("#uploadForm").submit(function() {
            if(validate())
            {
                $("#videofile").fileUploadSettings('fileDataName','videofile');
                // Collect form data
                var formFields = $("#uploadForm").find("input");
                for (var f in formFields)
                {
                    var label = formFields[f].name;
                    var value = formFields[f].value;
                    if(label && value)
                      uploadData += '&'+label+'='+value;  
                }
                uploadData += '&field_privacy=' + $("#field_privacy").val();
                $("#videofile").fileUploadSettings('scriptData',uploadData);
                $("#videofile").fileUploadStart();  
            }
            return false;
            });
            
            var flWidth = 110;
            var flHeight = 30;
            
            $("#videofile").fileUpload({
                'uploader': '/sites/all/modules/jquery_update/uploader.swf',
                'script': post_uri,
                'cancelImg': '/sites/all/modules/jquery_update/cancel.png',
                'width': flWidth,
                'height': flHeight,
                'scriptAccess': "always",
                'wmode': "transparent",
                'onSelect': function() { $("#videofileUploader").attr('width',1).attr('height',1); fileSelected = true; },
                'onCancel': function() { $("#videofileUploader").attr('width',flWidth).attr('height',flHeight); fileSelected = false; },
                'onError': function() { showResponse("Sorry, there was a problem. Please try again."); },
                'onComplete': function(x1,x2,x3,x4) { showResponse(x4); $("#videofileUploader").attr('width',flWidth).attr('height',flHeight); fileSelected = false; }  
            });
}

function validate()
{
    $("#twitter").val($("#twitter_orig").val());
    $("#webLink").val($("#webLink_orig").val()); 
    $('#fileUploaderError').hide();
    stop = true;
    var form = $('#uploadForm');
    $('#fileUploaderError').css("background-color","#FFC6C6");
    if(!$('#uploadForm').find("#title").val())
    {
        $('#fileUploaderError').text("Please add a name for the video.");
        $('#fileUploaderError').fadeIn("slow");
        return false;
    }
    
    if(!fileSelected)
    {
        $('#fileUploaderError').text("Please select a video file to upload.");  
        $('#fileUploaderError').fadeIn("slow");
        return false;
    }
    
    $('#uploadSumbit').attr("disabled","disabled");
    $('#fileUploaderError').text("Uploading.... Please wait."); 
    $('#fileUploaderError').css("background-color","#BAFAB8");
    stop = false;
    $('#fileUploaderError').fadeIn("slow",fadeDown);
    return true;
}

function fadeDown()
{
   if(!stop)
   $('#fileUploaderError').fadeTo("slow",0.3,fadeUp);                    
}

function fadeUp()
{
   $('#fileUploaderError').fadeTo("slow",1.0,fadeDown);                    
}

function showResponse(responseText)
{
   stop = true;
   if(responseText.substring(0,2) == "OK")
   {
        $('#fileUploaderError').text("Done! Redirecting to your video now...");
        window.location = responseText.substring(3);
   }
   else
   {
       $('#uploadSumbit').removeAttr("disabled");
       $('#fileUploaderError').css("background-color","#FFC6C6");
       $('#fileUploaderError').text(responseText);
       $("videofile").fileUploadClearQueue();
   } 
}

function showCommentsForFeedNode(nid)
{                                               
    var minusText = "- ";
    var plusText = "+";
    $("#clip-"+nid).find(".ctext").slideToggle("normal",function() {
        if($("#comment-click-"+nid).text() == minusText)
            $("#comment-click-"+nid).text(plusText);
        else
        {
            $("#commentTextBox-"+nid).focus();
            $("#comment-click-"+nid).text(minusText);
        }
    }); 
    $("#clip-"+nid).find(".cpost").slideToggle("normal");  
}

function showRecorder(quick)
{   
    if(!quick)
    {
       if(onHomePage) // Save the user's preference to a cookie if they are on the home page
       {
           var data = new Object();
           data.hashID = 'recvisibilitypref';
           data.uid = g_uid;
           data.hash = g_recvisibilitypref_hash;
           data.recpref = "open";
           $.post('/api/feeds/setrecordpref',data);
       }
       actionItem('webcam');
        
    }
    else
        actionItem('webcam',0);
        
    recorderOpen = true;
    
}

function hideRecorder()
{
   rollUpActionItems(null,true);
   recorderOpen = false;
   
   /*
   if(onHomePage && !box_12eratorOpen) // Save the user's preference to a cookie if they are on the home page
   {
       var data = new Object();
       data.hashID = 'recvisibilitypref';
       data.uid = g_uid;
       data.hash = g_recvisibilitypref_hash;
       data.recpref = "closed";
       $.post('/api/feeds/setrecordpref',data);
   }
   */ 
}

function toggleRecorder()
{
   if(recorderOpen)
    hideRecorder();
   else
    showRecorder(); 
}

function playerDone()
{
   if(playAll)
   {
      var curPlayerID = $("#video-player-"+openNode).attr('id');
      var nextID = $("#"+curPlayerID).parent().parent().parent().parent().parent().nextAll('.feed-entry.clip').attr('xid');
      if(nextID)
      {
          playAndFocus($("#video-player-wrapper-"+nextID));
      }
      else
        togglePlayAll(); 
   } 
}

function playerThumbnailDone()
{
    restoreThumbnail();
}

function togglePlayAll()
{
    if(playAll)
    {
        $("#playAllButton").text(playallText_off);
        playAll = false;
    }
    else
    {
        $("#playAllButton").text(playallText_on);
        playAll = true;
        // Close any existing players
        closeOpenedPlayers();
        openNode = 0;
        playAndFocus($(".video-player:first"));
        
    } 
}

function toggleLiveUpdates()
{
    if(liveUpdates)
    {
        $("#liveUpdatesButton").text(liveText_off);
        liveUpdates = false;
        stopUpdate();
    }
    else
    {
        $("#liveUpdatesButton").text(liveText_on);
        liveUpdates = true;
        restoreUpdate();
    } 
}

function focusPlayingElement()
{
   if(openThumb == 0)
       var obj = $("#video-player-wrapper-"+openNode);
   else
       var obj = $("#thumb-"+openThumb);
       
   $.scrollTo(obj,800, {offset: {top:-100}});
}

function playAndFocus(obj)
{
    // Start opening it
    // bigPlayerToggle actually needs the "full player" link, not the player itself to work. Let's find it based on what we've got.
    var nid = obj.attr('id');
    nid = nid.substring(21);
    var fpLink = $("#playExpander-"+nid);
    bigPlayerToggle(fpLink,21);
}

function playerReady()
{
    //$("#video-player-"+openNode).togglePlay();
}

function restoreThumbnail()
{
    $("#thumbPlayer-container-"+openThumb).hide();
    $("#thumb-"+openThumb).show();
    $("#thumbPlayer-container-"+openThumb).html('<div id="thumbPlayer-'+openThumb+'"></div>');
    openThumb = 0;
}

function closeOpenedPlayers()
{
   $("#playExpander-"+openNode).text(expandLinkText_closed);
   if($("#video-player-wrapper-"+openNode).attr('display') != "none")
   {
        $("#video-player-container-"+openNode).html('<div id="video-player-'+openNode+'"></div>');
        $("#video-player-wrapper-"+openNode).toggle();
   }
   if($("#thumbPlayer-container-"+openThumb).attr('display') != "none")
   {
        restoreThumbnail();   
   }
}

function toggleFav(nid)
{
    // First see if we are faving or unfaving
    var api_call = "";
    if($("#fav-"+nid).hasClass("unfaved")) // Faving
    {
       $("#fav-"+nid).addClass("faved");
       $("#fav-"+nid).removeClass("unfaved");
       api_call = "fav";
    }
    else // Un-Faving
    {
       $("#fav-"+nid).addClass("unfaved");
       $("#fav-"+nid).removeClass("faved");
       api_call = "unfav"; 
    }
    var data = new Object(); ;
    $.post('/api/feeds/favorite/'+api_call+'/'+nid,data,null,"text");
    
}

function initClickableThumbnails()
{   
    $(".hfeed .clip .thumb").live('mouseover',
    function() {
        $(this).find(".thumb-overlay").show();
    }
    );
    
    $(".hfeed .clip .thumb").live('mouseout',
    function() {
        $(this).find(".thumb-overlay").hide();
    });
    
    $(".hfeed .clip .thumb").live('click',
    function() {
        closeOpenedPlayers();
        openNode = 0;
        var nid = $(this).parent().parent().attr('xid');
        $("#thumb-"+nid).hide();
        $("#thumbPlayer-container-"+nid).show();
        clickFeedThumb(nid);
        openThumb = nid;
        
        // Are we in the inbox or sent messges? let's also do a view action on this video
        if(typeof inMailbox != "undefined" && inMailbox)
        {
           var mid = $("#thumb-"+nid).attr('mid');
           var action = $("#thumb-"+nid).attr('rstatus');
           
           if(action == "unread")
           {
               messageAction(mid,nid,'read',true);
           }
        }
    });
    
    $(".aExpandAction").live('click',
    function() {
        bigPlayerToggle($(this));
    });
}

function showNewFeaturePopup()
{
    var options = new Object();
    options.title = 'New Features!';
    options.draggable = 'false';
    options.modal = 'true';
    options.unloadOnHide = 'true';
    Boxy.load('/api/feeds/newfeatures',options);
}

function initGlobal()
{
    openNode = 0;
    openThumb = 0;
    initClickableThumbnails();
    
    $("#cBlock").css('overflow','hidden');
    $("#actionbar a").tooltip({delay: 700});
    
    $(".bump").tooltip({delay: 500, bodyHandler: function() { return "<div style=\"text-align: left;\"><b>What are bumps?</b> They are a<br/>quick way to say you liked this video</div>"; }});  
    $("#consecutive-days").tooltip({delay: 400, bodyHandler: function() { return "<div style=\"font-size: 14px; width: 300px; font-weight: bold;\">This shows how many days in a row this user has made a 12. Post one every day, and the number will go up - miss one and you'll go back to 0.<br/><br/><span style=\"font-size:12px;\">A badge is given out when you hit 3,12,48,72 and 101 consecutive days in a row of 12s! Private & 12mail videos all count for this badge.</span></div>"; }});
    $("#number-posts").tooltip({delay: 400, bodyHandler: function() { return "<div style=\"font-size: 14px; width: 300px; font-weight: bold;\">This shows how many 12s this user has made overall. You may not be able to see all of them though because some posts may be private or direct messages!<br/><br/><span style=\"font-size:12px;\">A badge is given out when you hit 1,12,48,72 and 101 posts!</span></div>"; }});    
    
    resetAllValues();
    
    // Open challenge bar when appropriate
    var curPage = window.location.toString();
    if(curPage.indexOf('leaderboard') > 0 || curPage.indexOf('12challenge-') > 0)
        actionItem('challenge');
    
    // Add roll-over edit/delete buttons to feed items
    $(".hfeed .clip").live('mouseover',function() { $(this).find(".feed_clip_icons:hidden").show(); });
    $(".hfeed .clip").live('mouseout',function() { $(this).find(".feed_clip_icons:visible").hide(); });
    
    $(".labelify").labelify();
        
    initialInit = false;
    
    initNewContent();
          
    if(!initialInit)
    {
        // Hide any existing status messages after 7 seconds...
        
        setTimeout(function()
        {
            if($(".messages:visible").not(".challenge").not(".error").length > 0)
                $(".messages:visible").not(".challenge").fadeOut("normal");
        },5000);
        
        initialInit = true;  
    }
}

function clickFeedThumb(id)
{
    preset_flashvars.vid = $("#thumb-"+id).attr('flvpath');
    swfobject.embedSWF(swf_feedThumbPlayer, "thumbPlayer-"+id, "175", "146", "9.0.0", "/swfobject/expressInstall.swf", preset_flashvars, preset_params, preset_attributes);    
}

function clickFeedBigPlayer(id)
{
    // Detect if we are a 12omercial
    var is12omercial = $("#vid-"+id).hasClass("x12omercial_row");
    preset_flashvars.autoPlay = true;  
    preset_flashvars.vid = id;
    if(is12omercial)
    {
        var swf = swf_12omercial_feedplayer; 
        var h = 410;
    }
    else
    {
        var swf = swf_feedplayer;
        var h = 360;
    }        
    swfobject.embedSWF(swf, "video-player-"+id, "440", h, "9.0.0", "/swfobject/expressInstall.swf", preset_flashvars, preset_params, preset_attributes);
}

function initNewContent()
{
    // Remove any existing binds
    //$("ol.hfeed ul.feedtweet").unbind();
    
    // Find the highest video ID and set it  
    
    topVideoID = $("ol.hfeed .clip:first").attr('xid'); 
    
    // Twitter blocks hover-over actions   
    /*
    $("ol.hfeed ul.feedtweet").bind("mouseenter", function() { 
        $(this).find("div.tw_reply_btn").css('visibility','visible'); 
    });
        
    $("ol.hfeed ul.feedtweet").bind("mouseleave", function() {
         
            $(this).find("div.tw_reply_btn").css('visibility','hidden');
            $(this).find("div.tw_reply").css('visibility','hidden');
    });
    */
     
}

function bigPlayerToggle(obj)
{
        obj.text(expandLinkText_opened);
        var nid = obj.attr('id');
        nid = nid.substring(13);
        // First we close the old node that may be open
        closeOpenedPlayers();
        // If we are closing the same node we just opened, let's stop and set vars so that nothing is open
        if(nid == openNode)
        {
            openNode = 0;
            return;
        }
        $("#video-player-wrapper-"+nid).toggle();
        openNode = nid;
        focusPlayingElement(); 
        clickFeedBigPlayer(nid);
}

function postComment(nid,hash)
{
    lastPostedCommentNid = nid;
    var data = new Object();
    data.uid = g_uid;
    data.hash = hash;
    data.nid = nid;
    data.commentText = $('#commentTextBox-'+nid).val();
    if(data.commentText.length > 0)
    {
        $(".someButts input").attr('disabled','true'); 
        $.post('/api/feeds/postcomment',data, displayPostedComment,"text");
    }
}

function postCommentSVP(nid)
{
    lastPostedCommentNid = nid;
    var data = new Object();
    data.uid = g_uid;
    data.nid = nid;
    data.commentText = $('#comment-new-text').val();
    if(data.commentText.length > 0)
    {
        $("#comment-new-post").attr('disabled','true'); 
        $.post('/api/feeds/postcommentSVP',data, displayPostedCommentSVP,"json");
    }
}

function displayPostedCommentSVP(response,returnCode)
{
    $("#comment-new-post").removeAttr('disabled');
    if(returnCode == "success")
    {
        var okTxt = response.status;
        if(okTxt == "LINKERROR")
            alert("Sorry, to try and minimize spam on our site, we are not allowing you to post comments that contain links at this time. Further normal usage of our site will remove this restriction automatically.");
        else if(okTxt != "OK")
            alert("Sorry, there was a problem posting your comment. Comments may be blocked on this post.");
        else
        {
            $("#comment-new").before(response.commentHTML);
            $('#comment-new-text').val('');
        }
    }
    else
        alert("We couldn't reach the server to post the comment. Please check your connection and try again."); 
}

function displayPostedComment(response,returnCode)
{
    $(".someButts input").removeAttr('disabled');
    if(returnCode == "success")
    {
        var okTxt = response.substring(0,2);
        if(okTxt == "LINKERROR")
            alert("Sorry, to try and minimize spam on our site, we are not allowing you to post comments that contain links. Further normal usage of our site will remove this restriction automatically.");
        else if(okTxt != "OK")
            alert("Sorry, there was a problem posting your comment. Comments may be blocked on this post.");
        else
        {
           $('#commentTextBox-'+lastPostedCommentNid).val('');
           var commentHTML = response.substring(3);
           $("#commentPoster-"+lastPostedCommentNid).html($("#commentPoster-"+lastPostedCommentNid).html() + commentHTML);
        }
    }
    else
        alert("We couldn't reach the server to post the comment. Please check your connection and try again."); 
}

function getMoreFeed(feed,hash)
{
    $("#getMoreBtn").text("Loading...");
    var data = new Object();
    if(!g_uid)
        data.uid = "ANON";
    else
        data.uid = g_uid;
    data.hash = hash;
    data.feed = feed;
    data.skip = $(".nextSkipValue:last").text();
    $.post('/api/feeds/getmore',data,displayMoreFeed,"text");
}

function getMoreFeedNew(feed)
{
    $("#getMoreBtn").text("Loading...");
    var data = new Object();
    data.feed = feed;
    data.bottomNid = $(".hfeed .clip:last").attr('xid');  
    $.post('/api/feeds/getmore',data,displayMoreFeedNew,"html");
}

function launchCoolIris(feed)
{
    if(PicLensLite.hasClient())
        PicLensLite.start({feedUrl: feed});
    else
    {
        var x = confirm("You need the CoolIris plugin to view this content. Select OK to visit www.cooliris.com to download");
        if(x)
            window.location = "http://www.cooliris.com";
    }
        
}

function displayMoreFeed(response,returnCode)
{
    if(returnCode == "success")
    {
        if(response == "DONE")
        {
            alert("Sorry, you've reached the end of the list.");
            $("#getMoreBtn").fadeOut("slow");
        }
        else if(response != "Invalid Access")
        {
            closeOpenedPlayers();
            $(".nextSkipValue:last").after(response);   
            initNewContent();
            //$.scrollTo(".nextSkipValue:last");
        }
        else
            alert("Sorry, there was a problem getting the feed. Please try again. (Error F1)")    
    }
    else
    {
        alert(returnCode);
        alert("Sorry, there was a problem getting the feed. Please try again. (Error F2)");
    }
    
    $("#getMoreBtn").text("Show More...");
}

function displayMoreFeedNew(response,returnCode)
{
    if(returnCode == "success")
    {
        if(response == "DONE")
        {
            alert("Sorry, you've reached the end of the list.");
            $("#getMoreBtn").fadeOut("slow");
        }
        else if(response != "Invalid Access")
        {
            closeOpenedPlayers();
            $(".hfeed .feed-entry:last").after(response);   
            initNewContent();
            //$.scrollTo(".nextSkipValue:last");
        }
        else
            alert("Sorry, there was a problem getting the feed. Please try again. (Error F1)")    
    }
    else
    {
        alert(returnCode);
        alert("Sorry, there was a problem getting the feed. Please try again. (Error F2)");
    }
    
    $("#getMoreBtn").text("Show More...");
}

function launchTweetBox(title,text,instructions)
{ 
     if(title == null)
        title = "Tweet a message to your Twitter Account";
     
     if(instructions == null)
        instructions = '';
     
     if(text == null)
        text = '';
        
     var options = new Object();
     options.title = title;
     options.draggable = 'false';
     options.modal = 'true';
     options.unloadOnHide = 'true';
     options.type = 'post';
     Boxy.load('/api/tweet/posttweet_view?txt='+text+'&desc='+instructions,options);  
}

function sendTweetBox()
{
    var msg = $("#twitter_msg").val();
    var data = new Object();
    data.msg = msg;
    $.post('/api/tweet/posttweet',data,function(o,s)
    {
        if(o.status == "OK")
            showAjaxMessage(o.msg);
        else
            showAjaxMessage("Sorry, there was a problem sending your tweet. Please check your <a href=\"/settings\">settings</a> and try again",'error',10000);   
    },"json");
    var openedBox = Boxy.get($("#twitter_msg"));
    openedBox.hide(); 
    
}

function sendActionBarTweet()
{
    var msg = $("[name=tweet_text]").val();
    if(!msg || msg.length < 1)
        return;
    var data = new Object();
    data.msg = msg;
    rollUpActionItems(null,true);
    $.post('/api/tweet/posttweet',data,function(response,status) {
        if(response.status == "OK")
        {
           $("[name=tweet_text]").val('');
           showAjaxMessage(response.msg,'status',5000);
        }
        else if(status == 200)
          showAjaxMessage(response.error,'error',10000);
        else
          showAjaxMessage("Sorry, there was a problem sending your tweet. Please check your <a href=\"/settings\">settings</a> and try again",'error',10000);     
    },"json");  
}

function launch12erator()
{ 
     actionItem('12erator'); 
}

function fetch_unix_timestamp() {
    return parseInt(new Date().getTime().toString().substring(0, 10))
}

function new12text()
{
    $.get("/api/12erator/new?="+fetch_unix_timestamp(), function(data) {
       $("#12erator_text").text(data);
       $("#12erator_text_raw").val(data);
       $("#12erator_text").typewriter();
    }
    );
    
}

function push12eratorToRecorder(type)
{
    var title = "12erator: " + $("#12erator_text_raw").val();
    var tags = "12erator"; 
    openRecorderWithValues(type,title,tags,'',null,null);

}


// Voting Stuff

function openVoteExtension(nid,cid)
{
    if(!$(".voterExtension").is(':visible'))
    { 
        $("#voteExtension-"+nid).show("slow",function() {
            var data = new Object();
            data.nid = nid;
            data.cid = cid;
            $.post('/api/vote/getcontent',data,displayExtensionContent,'json'); 
            $(document).one("click",function() { 
                $(".voterExtension:visible").hide("normal", function() { 
                    $(".voterExtension").html('<br/><br/>Loading...');
                });
            });      
        });
    }
}

function displayExtensionContent(data,status)
{
    var nid = data.nid;
    $("#voteExtension-"+nid).html(data.html);    
}

function performVote(nid,cid,v)
{
    var data = new Object();
    data.nid = nid;
    data.cid = cid;
    data.v = v;
    $.post('/api/vote/dovote',data,updateVoteCount,'json');
}

function updateVoteCount(data,status)
{
    if(data.success)
    {
       $("#numVotes-"+data.nid).text(data.vNew);
       $("#voteText-"+data.nid).text(data.voteText);   
    }
}

function showSendMsgBox(uid)
{
    var options = new Object();
    options.title = 'Send a Message';
    options.draggable = 'false';
    options.modal = 'true';
    options.unloadOnHide = 'true';
    Boxy.load('/api/feeds/sendmsgcontent/'+uid+'?',options);
}

function msgBoxMonitor()
{
    if($("#msgBoxText").val().length > 0)
    {
        $("#msgBoxSend").removeAttr('disabled');
    }
    else
    {
        $("#msgBoxSend").attr('disabled','disabled'); 
    }       
}

function performSendMsg(uid)
{
   // get text
   var text = $("#msgBoxText").val();
   var openedBox = Boxy.get($("#msgBoxText"));
   openedBox.hide();
   var data = new Object();
   data.uid = uid;
   data.msg = text;
   $.post('/api/feeds/sendmsg',data,function(data,status)
   {
        if(data.status == 'ok')
            showAjaxMessage("Your message to <b>" + data.userName + "</b> has been sent.",'status',6000);
        else
            showAjaxMessage("There was a problem sending the message.",'error',6000);
   },"json"); 
}

function doBump(nid)
{
    var data = new Object();
    data.nid = nid;
    $.post('/api/feeds/bump',data,function(data,status)
    {
        if(data.status == "ok")
        {
            $("#svp-main .icon-bump").show(); 
            $("#bump-"+nid).removeClass("unbumped").addClass("bumped").attr("onclick",null).unbind("click").text(data.displayText);
            $("#bumpTextList-"+nid).html(data.bumpTextList).parent().parent().show();
        }
        else
           showAjaxMessage("Sorry, there was a problem bumping.",'error'); 
    },"json");
}

function ajaxFollow(command,uid)
{
    if(command == "follow")
    {
        var data = new Object();
        data.follow_id = uid;
        $.post('/api/feeds/follow',data,function(data,status) {
            if($("a.follow-"+uid).is(".mainFollowBtn"))
                $("a.follow-"+uid).removeClass("follow").addClass("remove").text('Stop Following').removeClass("follow-"+uid).addClass("remove-"+uid).attr("onclick",null).unbind("click").click(function() { ajaxFollow('remove',uid); });
            else
               $("a.follow-"+uid).fadeOut("slow"); 
            showAjaxMessage(data.message,data.status);
        },"json");
    }
    else if(command == "remove")
    {
       var data = new Object();
        data.follow_id = uid;
        $.post('/api/feeds/remove',data,function(data,status) {
            if($("a.remove-"+uid).is(".mainFollowBtn"))
                $("a.remove-"+uid).removeClass("remove").addClass("follow").text('Follow').removeClass("remove-"+uid).addClass("follow-"+uid).attr("onclick",null).unbind("click").click(function() { ajaxFollow('follow',uid); });                
        
            showAjaxMessage(data.message,data.status);
        },"json"); 
    }
}


function showAjaxMessage(msg,status,time,forcetop)
{     
     if(!status)
        status = 'status';
     
     if(typeof time == "undefined")
        time = 4000;
        
     var showMsg = function()
     {
        // Detect if the user can see the top
        if(($("body").attr('scrollTop') > 120 || $("html").attr('scrollTop') > 120) && !forcetop)
        { 
            if(time > 2000)
                time = time - 1000;
            var xBox = new Boxy("<div style=\"width: 350px; height: 20px;\">" + msg + "</div>");
            setTimeout(function() { xBox.hideAndUnload(); },time); 
        }
        else
        {
            var rand = Math.random() * 1000;
            rand = Math.ceil(rand);
            var msgID = "ajaxmsg-" + rand;
            var msgHTML = '<div id="' + msgID + '" style="display: none;" class="messages ' + status + '">' + msg + '</div>';
            if($("#tag_feed").length > 0)
                $("#tag_feed").prepend(msgHTML);
            else if($("#content-top").length > 0)
                $("#content-top").after(msgHTML);
            else
                $("#bd").prepend(msgHTML);
                
            $("#"+msgID).fadeIn("slow");
            if(time > 0)
                setTimeout(function() { $("#"+msgID).fadeOut("slow", function() { $("#"+msgID).remove(); }); },time);
        }         
     }    
     
     if($(".messages:visible").not(".challenge").length > 0)
        $(".messages:visible").not(".challenge").fadeOut("normal",showMsg);
     else
        showMsg();          
}

function clearMsgs()
{
    $(".messages:visible").remove();
}

function switchEmbedCodes()
{
    $("#switchnoiframe").fadeOut("normal");
    $("#embed_code").val($("#noiframeembed").val());
}

function rollUpActionItems(action,no_reload,callback)
{ 
    recorderOpen = false;
    $("#actionarea_content").hide();
    currentActionItem = null;
    if(!no_reload)
        $("#actionarea").slideUp("normal", function() { actionItem(action,"normal"); });   
    else if(callback && no_reload)
    {
        $("#actionarea").slideUp("normal", function() { callback(); });
        $("#actionbar a").removeClass("selected");
    }      
    else
    {
        $("#actionarea").slideUp("slow");
        $("#actionbar a").removeClass("selected");
    }
}

function answerChallenge(type)
{
    $.get('/api/challenge/getchallenge',null,function(data) { 
        openRecorderWithValues(type,data.vTitle,data.all_tags,null,null,null);
     },'json');                                     
}

function resetAllValues()
{
    // clear all the data in the fields
    flashvars_rc = default_rc;
    upload_rc = default_rc;
    postRecordRedirect = '/home';
}

function open12omercialWithValues(title,tags,location,twitter,weblink,disableInfo,redirect,cid)
{
    x12omercial_rc = {};
    x12omercial_rc.clipName = title;
    x12omercial_rc.clipTags = tags;
    x12omercial_rc.clipLocation = location;
    x12omercial_rc.twitter = twitter;
    x12omercial_rc.webLink = weblink;
    if(disableInfo)
        x12omercial_rc.disableInfo = "true";
    if(redirect)
        postRecordRedirect = redriect;
    if(cid)
        x12omercial_rc.campaignID = cid;
    else
        x12omercial_rc.campaignID = 1;
    open12omercial();
        
}

function click12omercial()
{
    // Check for login
    if(!loggedInUser)
    {
        alert("Sorry, you need to be logged in to 12seconds to record a video.");
        return;
    }
    // Continue...
    open12omercial();
}

function open12omercial()
{
    actionItem('12omercial',null,true);
}


function openRecorderWithValues(type,title,tags,location,redirect,data)
{
    resetAllValues();
    
    // Let's create the flashvars object  
    var flashvars = {};
    flashvars.clipName = title;
    flashvars.clipTags = tags;
    flashvars.clipLocation = location;
    flashvars.data = data;
    
    // Set the redirect if we need to
    if(redirect)
        postRecordRedirect = redirect;
    
   
            
    if(type == "webcam")
        setAndOpenWebcam(flashvars);
    else if(type == "upload")
        setAndOpenUpload(flashvars);
}

function setAndOpenWebcam(flashvars)
{
    flashvars.host = 'recorder.12seconds.tv';
    flashvars_rc = flashvars;
    actionItem('webcam',null,true);
}

function setAndOpenUpload(flashvars)
{
    upload_rc = flashvars;
    actionItem('upload',null,true);
}

function actionItem(action,speed,force)
{
    $("#actionbar a").removeClass("selected");
    $(".ai_" + action).addClass("selected");
    if(action == currentActionItem && !force)
    {
        rollUpActionItems(null,true);
        return;
    }
    if(typeof speed == "undefined" || speed == null)
        speed = "slow";
      
    var url = '/api/actions/' + action;
    if($("#actionarea:visible").length)
    {
       rollUpActionItems(action,false);
       return;    
    }
    currentActionItem = action;
    
    $("#actionarea").load(url,null,function(data) 
    {
        $("#actionarea").slideDown(speed, function() { $("#actionarea_content").show(); resetAllValues(); });
    }); 
}

function upload12omercial(hide)
{
    if(!hide)
    {
        $("#recorder-container-outer").hide();
        $("#fileUploader").show();
    }
    else
    {
        $("#recorder-container-outer").show();
        $("#fileUploader").hide();
    }
    
}

function flagthis(obj)
{
    // Get the info
    var type = obj.id.substr(5,1);
    var id = obj.id.substr(7);
    
    var options = new Object();   
    if(type == "v")
        options.title = 'Flag Video';
    else if(type == "c")
        options.title = 'Flag Comment';

    options.draggable = 'false';
    options.modal = 'true';
    options.unloadOnHide = 'true';
    Boxy.load('/api/feeds/flag/'+type+'/'+id,options);  
}

function submitflag()
{
    // get the popup box
    var d = $("#flag_box");
    d.find("[name=flagbtn]").attr('disabled',true);
    d.find("[name=flagbtn]").val("Sending...");
    var box = Boxy.get($("#flag_box"));
    var data = {};
    data.id = d.find("[name=id]").val();
    data.type = d.find("[name=type]").val();  
    data.description = d.find("[name=description]").val();  
    data.reason = d.find("[name=reason]:checked").val();
    $.post("/api/feeds/flagpost",data,function()
        {
             d.css('text-align','center');
             d.html("<br/><br/><br/><b>We'll be looking into this shortly.<br/> Thanks for letting us know.</b>");
             setTimeout(function() { Boxy.get($("#flag_box")).hide(); },2300);
        }
    );
    
     
}

function clickTwitterFeedReply(tweetID)
{
    $("#tweet-"+tweetID).find(".tw_reply").css('visibility','visible');
}

function replyWithTwelve(tweetID)
{
    // Get the username
    var tw_name = $("#tweet-"+tweetID).find(".tw_name").text();
    
    if($("#tweet-"+tweetID).hasClass("tweet_dm"))  // Are we a DM or a normal @? 
       var tweetText = "DM " + tw_name;
    else
       var tweetText = "@" + tw_name;
   
    // Move to top of the page
    $.scrollTo("#actionbar",800);
    // Open Recorder
    openRecorderWithValues('webcam',tweetText + " ");
        
}

function replyWithTweet(tweetID)
{
   // Get the username
   var tw_name = $("#tweet-"+tweetID).find(".tw_name").text();
   var tweetText = '';
   var boxTitle = '';
   var instructions = ''; 
   if($("#tweet-"+tweetID).hasClass("tweet_dm"))  // Are we a DM or a normal @?
   { 
       tweetText = "DM " + tw_name;
       //boxTitle = "Send a DM (Direct Message) to " + tw_name;
       //instructions = 'Note: You need to keep the DM in front of the message to keep it private.';
   }
   else
   {
       tweetText = "@" + tw_name;
       //boxTitle = "Send a reply to @ " + tw_name;
   }
   
   default_tweettext = tweetText;
   $.scrollTo("#actionbar",800);
   actionItem('tweet',null,true); 
}

$(document).ready(function(){
   initGlobal();
});

function launchPrivacyHelp() {
    
    var options = {};
    options.title = 'Information about Privacy Settings';
    options.draggable = 'false';
    options.modal = 'true';
    options.unloadOnHide = 'true';
    Boxy.load('/api/feeds/privacy_help',options);     
}

function launchTwitterSync()
{
    var options = {};
    options.title = 'Sync the people you follow with Twitter';
    options.draggable = 'false';
    options.modal = 'true';
    options.unloadOnHide = 'true';
    Boxy.load('/api/feeds/twitter_sync',options); 
}

function launchLoginBox() {
    
    var options = {};
    options.title = 'Login / Register for 12seconds.tv';
    options.draggable = 'false';
    options.modal = 'true';
    options.unloadOnHide = 'true';
    var sPage = window.location.pathname;
    Boxy.load('/api/feeds/loginbox?p='+sPage,options); 
}

function closeLoginBox() {
    var openedBox = Boxy.get($("#popup_loginbox"));
    openedBox.hide()  
}

function twcomment_check(nid)
{
    // Gather user variables
    
    var u = $("[xid=" + nid + "]").find("#tw_username").val();
    if(u == "Username")
    {
        showAjaxMessage("Please fill out your Twitter username and password.",'error');
        return;
    }
    var p = $("[xid=" + nid + "]").find("#tw_password").val();
    
    var data = {};
    data.p = p;
    data.u = u;
    data.nid = nid;
    
    $("[xid=" + nid + "]").find("#tw_status").html("Verifying your user information with Twitter. Please wait...");
    twcomment_setVisible($("[xid=" + nid + "]"),'status');
    
    $.post('/api/tweet/verify_comment',data,function(data,status)
    {
        if(data.status == 1)
        {
            twcomment_setVisible($("[xid=" + nid + "]"),'comment');
            g_uid = data.uid;
            $("[xid=" + nid + "]").find(".user-com.seesme-no.cpost").before(data.comment_code);
        }
        else
        {
            twcomment_setVisible($("[xid=" + nid + "]"),'login');
            showAjaxMessage("Sorry, we couldn't verify your account with Twitter. Please check your username and password and try again.",'error');
        }
        
    },"json");
    
}

function twcomment_setVisible(n,x)
{
    if(x == "status")
    {
        n.find("input").hide();
        n.find(".logged_out_comment_text").hide();
        n.find("#tw_status").show();
    }
    else if(x == "login")
    {
       n.find("#tw_status").hide();
       n.find(".logged_out_comment_text").show();
       n.find("input").show(); 
    }
    else if(x == "comment")
    {
       n.find("#tw_status").hide();
       n.find(".logged_out_comment_text").hide();
       n.find("input").hide(); 
    }
}

function showBadgePage()
{
    var options = {};
    options.title = 'Badges on 12seconds.tv';
    options.draggable = 'false';
    options.modal = 'true';
    options.unloadOnHide = 'true';
    Boxy.load('/api/feeds/badgeinfo',options);
}

function launchOG(uid)
{
    var options = {};
    options.title = '"Original Gangster" - Classic Awards';
    options.draggable = 'false';
    options.modal = 'true';
    options.unloadOnHide = 'true';
    Boxy.load('/api/feeds/og_awards?uid='+uid,options);
}

function SelectAll(me) { me.focus(); me.select(); }
;
/* AGGREGATED JS FILE: sites/all/modules/jquery_update/jquery.ui.js */
/*
 * jQuery UI 1.7.1
 *
 * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI
 */
jQuery.ui||(function(c){var i=c.fn.remove,d=c.browser.mozilla&&(parseFloat(c.browser.version)<1.9);c.ui={version:"1.7.1",plugin:{add:function(k,l,n){var m=c.ui[k].prototype;for(var j in n){m.plugins[j]=m.plugins[j]||[];m.plugins[j].push([l,n[j]])}},call:function(j,l,k){var n=j.plugins[l];if(!n||!j.element[0].parentNode){return}for(var m=0;m<n.length;m++){if(j.options[n[m][0]]){n[m][1].apply(j.element,k)}}}},contains:function(k,j){return document.compareDocumentPosition?k.compareDocumentPosition(j)&16:k!==j&&k.contains(j)},hasScroll:function(m,k){if(c(m).css("overflow")=="hidden"){return false}var j=(k&&k=="left")?"scrollLeft":"scrollTop",l=false;if(m[j]>0){return true}m[j]=1;l=(m[j]>0);m[j]=0;return l},isOverAxis:function(k,j,l){return(k>j)&&(k<(j+l))},isOver:function(o,k,n,m,j,l){return c.ui.isOverAxis(o,n,j)&&c.ui.isOverAxis(k,m,l)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(d){var f=c.attr,e=c.fn.removeAttr,h="http://www.w3.org/2005/07/aaa",a=/^aria-/,b=/^wairole:/;c.attr=function(k,j,l){var m=l!==undefined;return(j=="role"?(m?f.call(this,k,j,"wairole:"+l):(f.apply(this,arguments)||"").replace(b,"")):(a.test(j)?(m?k.setAttributeNS(h,j.replace(a,"aaa:"),l):f.call(this,k,j.replace(a,"aaa:"))):f.apply(this,arguments)))};c.fn.removeAttr=function(j){return(a.test(j)?this.each(function(){this.removeAttributeNS(h,j.replace(a,""))}):e.call(this,j))}}c.fn.extend({remove:function(){c("*",this).add(this).each(function(){c(this).triggerHandler("remove")});return i.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var j;if((c.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){j=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(c.curCSS(this,"position",1))&&(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}else{j=this.parents().filter(function(){return(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!j.length?c(document):j}});c.extend(c.expr[":"],{data:function(l,k,j){return !!c.data(l,j[3])},focusable:function(k){var l=k.nodeName.toLowerCase(),j=c.attr(k,"tabindex");return(/input|select|textarea|button|object/.test(l)?!k.disabled:"a"==l||"area"==l?k.href||!isNaN(j):!isNaN(j))&&!c(k)["area"==l?"parents":"closest"](":hidden").length},tabbable:function(k){var j=c.attr(k,"tabindex");return(isNaN(j)||j>=0)&&c(k).is(":focusable")}});function g(m,n,o,l){function k(q){var p=c[m][n][q]||[];return(typeof p=="string"?p.split(/,?\s+/):p)}var j=k("getter");if(l.length==1&&typeof l[0]=="string"){j=j.concat(k("getterSetter"))}return(c.inArray(o,j)!=-1)}c.widget=function(k,j){var l=k.split(".")[0];k=k.split(".")[1];c.fn[k]=function(p){var n=(typeof p=="string"),o=Array.prototype.slice.call(arguments,1);if(n&&p.substring(0,1)=="_"){return this}if(n&&g(l,k,p,o)){var m=c.data(this[0],k);return(m?m[p].apply(m,o):undefined)}return this.each(function(){var q=c.data(this,k);(!q&&!n&&c.data(this,k,new c[l][k](this,p))._init());(q&&n&&c.isFunction(q[p])&&q[p].apply(q,o))})};c[l]=c[l]||{};c[l][k]=function(o,n){var m=this;this.namespace=l;this.widgetName=k;this.widgetEventPrefix=c[l][k].eventPrefix||k;this.widgetBaseClass=l+"-"+k;this.options=c.extend({},c.widget.defaults,c[l][k].defaults,c.metadata&&c.metadata.get(o)[k],n);this.element=c(o).bind("setData."+k,function(q,p,r){if(q.target==o){return m._setData(p,r)}}).bind("getData."+k,function(q,p){if(q.target==o){return m._getData(p)}}).bind("remove",function(){return m.destroy()})};c[l][k].prototype=c.extend({},c.widget.prototype,j);c[l][k].getterSetter="option"};c.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(l,m){var k=l,j=this;if(typeof l=="string"){if(m===undefined){return this._getData(l)}k={};k[l]=m}c.each(k,function(n,o){j._setData(n,o)})},_getData:function(j){return this.options[j]},_setData:function(j,k){this.options[j]=k;if(j=="disabled"){this.element[k?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",k)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(l,m,n){var p=this.options[l],j=(l==this.widgetEventPrefix?l:this.widgetEventPrefix+l);m=c.Event(m);m.type=j;if(m.originalEvent){for(var k=c.event.props.length,o;k;){o=c.event.props[--k];m[o]=m.originalEvent[o]}}this.element.trigger(m,n);return !(c.isFunction(p)&&p.call(this.element[0],m,n)===false||m.isDefaultPrevented())}};c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var j=this;this.element.bind("mousedown."+this.widgetName,function(k){return j._mouseDown(k)}).bind("click."+this.widgetName,function(k){if(j._preventClickEvent){j._preventClickEvent=false;k.stopImmediatePropagation();return false}});if(c.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(c.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(l){l.originalEvent=l.originalEvent||{};if(l.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(l));this._mouseDownEvent=l;var k=this,m=(l.which==1),j=(typeof this.options.cancel=="string"?c(l.target).parents().add(l.target).filter(this.options.cancel).length:false);if(!m||j||!this._mouseCapture(l)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){k.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(l)&&this._mouseDelayMet(l)){this._mouseStarted=(this._mouseStart(l)!==false);if(!this._mouseStarted){l.preventDefault();return true}}this._mouseMoveDelegate=function(n){return k._mouseMove(n)};this._mouseUpDelegate=function(n){return k._mouseUp(n)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(c.browser.safari||l.preventDefault());l.originalEvent.mouseHandled=true;return true},_mouseMove:function(j){if(c.browser.msie&&!j.button){return this._mouseUp(j)}if(this._mouseStarted){this._mouseDrag(j);return j.preventDefault()}if(this._mouseDistanceMet(j)&&this._mouseDelayMet(j)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,j)!==false);(this._mouseStarted?this._mouseDrag(j):this._mouseUp(j))}return !this._mouseStarted},_mouseUp:function(j){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(j.target==this._mouseDownEvent.target);this._mouseStop(j)}return false},_mouseDistanceMet:function(j){return(Math.max(Math.abs(this._mouseDownEvent.pageX-j.pageX),Math.abs(this._mouseDownEvent.pageY-j.pageY))>=this.options.distance)},_mouseDelayMet:function(j){return this.mouseDelayMet},_mouseStart:function(j){},_mouseDrag:function(j){},_mouseStop:function(j){},_mouseCapture:function(j){return true}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);;
;
/* AGGREGATED JS FILE: sites/all/modules/jquery_update/compat-1.0.js */
// UPGRADE: The following attribute helpers should now be used as:
// .attr("title") or .attr("title","new title")
jQuery.each(["id","title","name","href","src","rel"], function(i,n){
  jQuery.fn[ n ] = function(h) {
    return h == undefined ?
      this.length ? this[0][n] : null :
      this.attr( n, h );
  };
});

// UPGRADE: The following css helpers should now be used as:
// .css("top") or .css("top","30px")
jQuery.each("top,left,position,float,overflow,color,background".split(","), function(i,n){
  jQuery.fn[ n ] = function(h) {
    return h == undefined ?
      ( this.length ? jQuery.css( this[0], n ) : null ) :
      this.css( n, h );
  };
});

// UPGRADE: The following event helpers should now be used as such:
// .oneblur(fn) -> .one("blur",fn)
// .unblur(fn) -> .unbind("blur",fn)
var e = ("blur,focus,load,resize,scroll,unload,click,dblclick," +
  "mousedown,mouseup,mousemove,mouseover,mouseout,change,reset,select," + 
  "submit,keydown,keypress,keyup,error").split(",");

// Go through all the event names, but make sure that
// it is enclosed properly
for ( var i = 0; i < e.length; i++ ) new function(){
      
  var o = e[i];
    
  // Handle event unbinding
  jQuery.fn["un"+o] = function(f){ return this.unbind(o, f); };
    
  // Finally, handle events that only fire once
  jQuery.fn["one"+o] = function(f){
    // save cloned reference to this
    var element = jQuery(this);
    var handler = function() {
      // unbind itself when executed
      element.unbind(o, handler);
      element = null;
      // apply original handler with the same arguments
      return f.apply(this, arguments);
    };
    return this.bind(o, handler);
  };
      
};

// UPGRADE: .ancestors() was removed in favor of .parents()
jQuery.fn.ancestors = jQuery.fn.parents;

// UPGRADE: The CSS selector :nth-child() now starts at 1, instead of 0
jQuery.expr[":"]["nth-child"] = "jQuery.nth(a.parentNode.firstChild,parseInt(m[3])+1,'nextSibling')==a";

// UPGRADE: .filter(["div", "span"]) now becomes .filter("div, span")
jQuery.fn._filter = jQuery.fn.filter;
jQuery.fn.filter = function(arr){
  return this._filter( arr.constructor == Array ? arr.join(",") : arr );
};

;
/* AGGREGATED JS FILE: sites/all/modules/jquery_update/jquery.validate.js */
/*
 * jQuery validation plug-in 1.5.2
 *
 * http://bassistance.de/jquery-plugins/jquery-plugin-validation/
 * http://docs.jquery.com/Plugins/Validation
 *
 * Copyright (c) 2006 - 2008 JÃ¶rn Zaefferer
 *
 * $Id: jquery.validate.js 6243 2009-02-19 11:40:49Z joern.zaefferer $
 *
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(7($){$.H($.2M,{1E:7(c){l(!6.F){c&&c.2j&&2X.1y&&1y.4Z("3p 2C, 4B\'t 1E, 6d 3p");8}p b=$.15(6[0],\'v\');l(b){8 b}b=29 $.v(c,6[0]);$.15(6[0],\'v\',b);l(b.q.3v){6.4J("21, 4E").1q(".4x").4t(7(){b.37=w});6.32(7(a){l(b.q.2j)a.5Y();7 28(){l(b.q.3Y){b.q.3Y.Z(b,b.Y);8 I}8 w}l(b.37){b.37=I;8 28()}l(b.J()){l(b.18){b.1u=w;8 I}8 28()}19{b.2k();8 I}})}8 b},N:7(){l($(6[0]).2L(\'J\')){8 6.1E().J()}19{p b=I;p a=$(6[0].J).1E();6.P(7(){b|=a.M(6)});8 b}},4L:7(c){p d={},$M=6;$.P(c.1I(/\\s/),7(a,b){d[b]=$M.1H(b);$M.4H(b)});8 d},1c:7(h,k){p f=6[0];l(h){p i=$.15(f.J,\'v\').q;p d=i.1c;p c=$.v.2u(f);2r(h){1e"1h":$.H(c,$.v.1S(k));d[f.u]=c;l(k.L)i.L[f.u]=$.H(i.L[f.u],k.L);33;1e"63":l(!k){R d[f.u];8 c}p e={};$.P(k.1I(/\\s/),7(a,b){e[b]=c[b];R c[b]});8 e}}p g=$.v.4a($.H({},$.v.47(f),$.v.43(f),$.v.3Z(f),$.v.2u(f)),f);l(g.13){p j=g.13;R g.13;g=$.H({13:j},g)}8 g}});$.H($.5C[":"],{5z:7(a){8!$.1k(a.U)},5q:7(a){8!!$.1k(a.U)},5o:7(a){8!a.3O}});$.1d=7(c,b){l(S.F==1)8 7(){p a=$.3J(S);a.5c(c);8 $.1d.1G(6,a)};l(S.F>2&&b.2l!=3C){b=$.3J(S).4V(1)}l(b.2l!=3C){b=[b]}$.P(b,7(i,n){c=c.2K(29 3A("\\\\{"+i+"\\\\}","g"),n)});8 c};$.v=7(b,a){6.q=$.H({},$.v.2J,b);6.Y=a;6.3x()};$.H($.v,{2J:{L:{},22:{},1c:{},1a:"3s",2H:"4K",2k:w,3n:$([]),2E:$([]),3v:w,3m:[],3l:I,4I:7(a){6.3k=a;l(6.q.4G&&!6.4F){6.q.1O&&6.q.1O.Z(6,a,6.q.1a);6.1P(a).2y()}},4D:7(a){l(!6.1w(a)&&(a.u 11 6.1l||!6.G(a))){6.M(a)}},4w:7(a){l(a.u 11 6.1l||a==6.3b){6.M(a)}},4u:7(a){l(a.u 11 6.1l)6.M(a)},2s:7(a,b){$(a).2q(b)},1O:7(a,b){$(a).39(b)}},6k:7(a){$.H($.v.2J,a)},L:{13:"6h 4p 2L 13.",1T:"K 35 6 4p.",1U:"K O a N 1U 6b.",1x:"K O a N 65.",1n:"K O a N 1n.",1X:"K O a N 1n (62).",1Y:"4e 4c 4b 30 5W¼5U 5S 30.",1A:"K O a N 1A.",27:"4e 4c 4b 5Q 5O 30.",1N:"K O 5L 1N",2g:"K O a N 5I 5G 1A.",3W:"K O 3V 5A U 5y.",3T:"K O a U 5u a N 5t.",16:$.1d("K O 3Q 5p 2R {0} 2Q."),1v:$.1d("K O 5n 5m {0} 2Q."),2d:$.1d("K O a U 3L {0} 40 {1} 2Q 5i."),2a:$.1d("K O a U 3L {0} 40 {1}."),1t:$.1d("K O a U 5d 2R 3I 3H 48 {0}."),1B:$.1d("K O a U 56 2R 3I 3H 48 {0}.")},3G:I,53:{3x:7(){6.2h=$(6.q.2E);6.4i=6.2h.F&&6.2h||$(6.Y);6.2p=$(6.q.3n).1h(6.q.2E);6.1l={};6.4X={};6.18=0;6.1g={};6.1b={};6.1V();p f=(6.22={});$.P(6.q.22,7(d,c){$.P(c.1I(/\\s/),7(a,b){f[b]=d})});p e=6.q.1c;$.P(e,7(b,a){e[b]=$.v.1S(a)});7 1D(a){p b=$.15(6[0].J,"v");b.q["3B"+a.1p]&&b.q["3B"+a.1p].Z(b,6[0])}$(6.Y).1D("3z 3y 4P",":2I, :4O, :4N, 23, 4M",1D).1D("4t",":3u, :3t",1D);l(6.q.3r)$(6.Y).3q("1b-J.1E",6.q.3r)},J:7(){6.3o();$.H(6.1l,6.1r);6.1b=$.H({},6.1r);l(!6.N())$(6.Y).2G("1b-J",[6]);6.1j();8 6.N()},3o:7(){6.2F();Q(p i=0,14=(6.24=6.14());14[i];i++){6.26(14[i])}8 6.N()},M:7(a){a=6.2D(a);6.3b=a;6.3a(a);6.24=$(a);p b=6.26(a);l(b){R 6.1b[a.u]}19{6.1b[a.u]=w}l(!6.3F()){6.12=6.12.1h(6.2p)}6.1j();8 b},1j:7(b){l(b){$.H(6.1r,b);6.T=[];Q(p c 11 b){6.T.20({1f:b[c],M:6.1Z(c)[0]})}6.1m=$.3j(6.1m,7(a){8!(a.u 11 b)})}6.q.1j?6.q.1j.Z(6,6.1r,6.T):6.3i()},2B:7(){l($.2M.2B)$(6.Y).2B();6.1l={};6.2F();6.2A();6.14().39(6.q.1a)},3F:7(){8 6.2e(6.1b)},2e:7(a){p b=0;Q(p i 11 a)b++;8 b},2A:7(){6.2z(6.12).2y()},N:7(){8 6.3h()==0},3h:7(){8 6.T.F},2k:7(){l(6.q.2k){3g{$(6.3f()||6.T.F&&6.T[0].M||[]).1q(":4C").3e()}3d(e){}}},3f:7(){p a=6.3k;8 a&&$.3j(6.T,7(n){8 n.M.u==a.u}).F==1&&a},14:7(){p a=6,2x={};8 $([]).1h(6.Y.14).1q(":21").1F(":32, :1V, :4A, [4z]").1F(6.q.3m).1q(7(){!6.u&&a.q.2j&&2X.1y&&1y.3s("%o 4y 3Q u 4v",6);l(6.u 11 2x||!a.2e($(6).1c()))8 I;2x[6.u]=w;8 w})},2D:7(a){8 $(a)[0]},2v:7(){8 $(6.q.2H+"."+6.q.1a,6.4i)},1V:7(){6.1m=[];6.T=[];6.1r={};6.1i=$([]);6.12=$([]);6.1u=I;6.24=$([])},2F:7(){6.1V();6.12=6.2v().1h(6.2p)},3a:7(a){6.1V();6.12=6.1P(a)},26:7(d){d=6.2D(d);l(6.1w(d)){d=6.1Z(d.u)[0]}p a=$(d).1c();p c=I;Q(V 11 a){p b={V:V,2t:a[V]};3g{p f=$.v.1Q[V].Z(6,d.U.2K(/\\r/g,""),d,b.2t);l(f=="1R-1W"){c=w;6m}c=I;l(f=="1g"){6.12=6.12.1F(6.1P(d));8}l(!f){6.4s(d,b);8 I}}3d(e){6.q.2j&&2X.1y&&1y.6l("6j 6i 6g 6f M "+d.4q+", 26 3V \'"+b.V+"\' V");6e e;}}l(c)8;l(6.2e(a))6.1m.20(d);8 w},4o:7(a,b){l(!$.1C)8;p c=6.q.36?$(a).1C()[6.q.36]:$(a).1C();8 c&&c.L&&c.L[b]},4n:7(a,b){p m=6.q.L[a];8 m&&(m.2l==4m?m:m[b])},4l:7(){Q(p i=0;i<S.F;i++){l(S[i]!==2o)8 S[i]}8 2o},2n:7(a,b){8 6.4l(6.4n(a.u,b),6.4o(a,b),!6.q.3l&&a.6c||2o,$.v.L[b],"<4k>69: 68 1f 67 Q "+a.u+"</4k>")},4s:7(b,a){p c=6.2n(b,a.V);l(17 c=="7")c=c.Z(6,a.2t,b);6.T.20({1f:c,M:b});6.1r[b.u]=c;6.1l[b.u]=c},2z:7(a){l(6.q.2m)a=a.1h(a.64(6.q.2m));8 a},3i:7(){Q(p i=0;6.T[i];i++){p a=6.T[i];6.q.2s&&6.q.2s.Z(6,a.M,6.q.1a);6.2w(a.M,a.1f)}l(6.T.F){6.1i=6.1i.1h(6.2p)}l(6.q.1o){Q(p i=0;6.1m[i];i++){6.2w(6.1m[i])}}l(6.q.1O){Q(p i=0,14=6.4j();14[i];i++){6.q.1O.Z(6,14[i],6.q.1a)}}6.12=6.12.1F(6.1i);6.2A();6.2z(6.1i).4h()},4j:7(){8 6.24.1F(6.3c())},3c:7(){8 $(6.T).4g(7(){8 6.M})},2w:7(a,c){p b=6.1P(a);l(b.F){b.39().2q(6.q.1a);b.1H("4f")&&b.4d(c)}19{b=$("<"+6.q.2H+"/>").1H({"Q":6.31(a),4f:w}).2q(6.q.1a).4d(c||"");l(6.q.2m){b=b.2y().4h().61("<"+6.q.2m+"/>").60()}l(!6.2h.5Z(b).F)6.q.3w?6.q.3w(b,$(a)):b.5X(a)}l(!c&&6.q.1o){b.2I("");17 6.q.1o=="1s"?b.2q(6.q.1o):6.q.1o(b)}6.1i=6.1i.1h(b)},1P:7(a){8 6.2v().1q("[Q=\'"+6.31(a)+"\']")},31:7(a){8 6.22[a.u]||(6.1w(a)?a.u:a.4q||a.u)},1w:7(a){8/3u|3t/i.X(a.1p)},1Z:7(d){p c=6.Y;8 $(5V.5T(d)).4g(7(a,b){8 b.J==c&&b.u==d&&b||49})},1J:7(a,b){2r(b.3D.46()){1e\'23\':8 $("45:2C",b).F;1e\'21\':l(6.1w(b))8 6.1Z(b.u).1q(\':3O\').F}8 a.F},44:7(b,a){8 6.2O[17 b]?6.2O[17 b](b,a):w},2O:{"5P":7(b,a){8 b},"1s":7(b,a){8!!$(b,a.J).F},"7":7(b,a){8 b(a)}},G:7(a){8!$.v.1Q.13.Z(6,$.1k(a.U),a)&&"1R-1W"},42:7(a){l(!6.1g[a.u]){6.18++;6.1g[a.u]=w}},41:7(a,b){6.18--;l(6.18<0)6.18=0;R 6.1g[a.u];l(b&&6.18==0&&6.1u&&6.J()){$(6.Y).32()}19 l(!b&&6.18==0&&6.1u){$(6.Y).2G("1b-J",[6])}},2c:7(a){8 $.15(a,"2c")||$.15(a,"2c",5M={2Z:49,N:w,1f:6.2n(a,"1T")})}},1K:{13:{13:w},1U:{1U:w},1x:{1x:w},1n:{1n:w},1X:{1X:w},1Y:{1Y:w},1A:{1A:w},27:{27:w},1N:{1N:w},2g:{2g:w}},3E:7(a,b){a.2l==4m?6.1K[a]=b:$.H(6.1K,a)},43:7(b){p a={};p c=$(b).1H(\'5K\');c&&$.P(c.1I(\' \'),7(){l(6 11 $.v.1K){$.H(a,$.v.1K[6])}});8 a},3Z:7(c){p a={};p d=$(c);Q(V 11 $.v.1Q){p b=d.1H(V);l(b){a[V]=b}}l(a.16&&/-1|5J|5H/.X(a.16)){R a.16}8 a},47:7(a){l(!$.1C)8{};p b=$.15(a.J,\'v\').q.36;8 b?$(a).1C()[b]:$(a).1C()},2u:7(b){p a={};p c=$.15(b.J,\'v\');l(c.q.1c){a=$.v.1S(c.q.1c[b.u])||{}}8 a},4a:7(d,e){$.P(d,7(c,b){l(b===I){R d[c];8}l(b.2Y||b.2f){p a=w;2r(17 b.2f){1e"1s":a=!!$(b.2f,e.J).F;33;1e"7":a=b.2f.Z(e,e);33}l(a){d[c]=b.2Y!==2o?b.2Y:w}19{R d[c]}}});$.P(d,7(a,b){d[a]=$.5E(b)?b(e):b});$.P([\'1v\',\'16\',\'1B\',\'1t\'],7(){l(d[6]){d[6]=2W(d[6])}});$.P([\'2d\',\'2a\'],7(){l(d[6]){d[6]=[2W(d[6][0]),2W(d[6][1])]}});l($.v.3G){l(d.1B&&d.1t){d.2a=[d.1B,d.1t];R d.1B;R d.1t}l(d.1v&&d.16){d.2d=[d.1v,d.16];R d.1v;R d.16}}l(d.L){R d.L}8 d},1S:7(a){l(17 a=="1s"){p b={};$.P(a.1I(/\\s/),7(){b[6]=w});a=b}8 a},5D:7(c,a,b){$.v.1Q[c]=a;$.v.L[c]=b;l(a.F<3){$.v.3E(c,$.v.1S(c))}},1Q:{13:7(b,c,a){l(!6.44(a,c))8"1R-1W";2r(c.3D.46()){1e\'23\':p d=$("45:2C",c);8 d.F>0&&(c.1p=="23-5B"||($.2V.2P&&!(d[0].5x[\'U\'].5w)?d[0].2I:d[0].U).F>0);1e\'21\':l(6.1w(c))8 6.1J(b,c)>0;5v:8 $.1k(b).F>0}},1T:7(e,h,d){l(6.G(h))8"1R-1W";p g=6.2c(h);l(!6.q.L[h.u])6.q.L[h.u]={};6.q.L[h.u].1T=17 g.1f=="7"?g.1f(e):g.1f;d=17 d=="1s"&&{1x:d}||d;l(g.2Z!==e){g.2Z=e;p i=6;6.42(h);p f={};f[h.u]=e;$.2T($.H(w,{1x:d,3S:"2S",3R:"1E"+h.u,5s:"5r",15:f,1o:7(a){l(a){p b=i.1u;i.3a(h);i.1u=b;i.1m.20(h);i.1j()}19{p c={};c[h.u]=a||i.2n(h,"1T");i.1j(c)}g.N=a;i.41(h,a)}},d));8"1g"}19 l(6.1g[h.u]){8"1g"}8 g.N},1v:7(b,c,a){8 6.G(c)||6.1J($.1k(b),c)>=a},16:7(b,c,a){8 6.G(c)||6.1J($.1k(b),c)<=a},2d:7(b,d,a){p c=6.1J($.1k(b),d);8 6.G(d)||(c>=a[0]&&c<=a[1])},1B:7(b,c,a){8 6.G(c)||b>=a},1t:7(b,c,a){8 6.G(c)||b<=a},2a:7(b,c,a){8 6.G(c)||(b>=a[0]&&b<=a[1])},1U:7(a,b){8 6.G(b)||/^((([a-z]|\\d|[!#\\$%&\'\\*\\+\\-\\/=\\?\\^W`{\\|}~]|[\\C-\\A\\B-\\E\\x-\\y])+(\\.([a-z]|\\d|[!#\\$%&\'\\*\\+\\-\\/=\\?\\^W`{\\|}~]|[\\C-\\A\\B-\\E\\x-\\y])+)*)|((\\3P)((((\\2b|\\1M)*(\\2U\\3U))?(\\2b|\\1M)+)?(([\\3X-\\5F\\3N\\3M\\5l-\\5k\\3K]|\\5j|[\\5h-\\5N]|[\\5g-\\5f]|[\\C-\\A\\B-\\E\\x-\\y])|(\\\\([\\3X-\\1M\\3N\\3M\\2U-\\3K]|[\\C-\\A\\B-\\E\\x-\\y]))))*(((\\2b|\\1M)*(\\2U\\3U))?(\\2b|\\1M)+)?(\\3P)))@((([a-z]|\\d|[\\C-\\A\\B-\\E\\x-\\y])|(([a-z]|\\d|[\\C-\\A\\B-\\E\\x-\\y])([a-z]|\\d|-|\\.|W|~|[\\C-\\A\\B-\\E\\x-\\y])*([a-z]|\\d|[\\C-\\A\\B-\\E\\x-\\y])))\\.)+(([a-z]|[\\C-\\A\\B-\\E\\x-\\y])|(([a-z]|[\\C-\\A\\B-\\E\\x-\\y])([a-z]|\\d|-|\\.|W|~|[\\C-\\A\\B-\\E\\x-\\y])*([a-z]|[\\C-\\A\\B-\\E\\x-\\y])))\\.?$/i.X(a)},1x:7(a,b){8 6.G(b)||/^(5e?|5R):\\/\\/(((([a-z]|\\d|-|\\.|W|~|[\\C-\\A\\B-\\E\\x-\\y])|(%[\\1L-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:)*@)?(((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5]))|((([a-z]|\\d|[\\C-\\A\\B-\\E\\x-\\y])|(([a-z]|\\d|[\\C-\\A\\B-\\E\\x-\\y])([a-z]|\\d|-|\\.|W|~|[\\C-\\A\\B-\\E\\x-\\y])*([a-z]|\\d|[\\C-\\A\\B-\\E\\x-\\y])))\\.)+(([a-z]|[\\C-\\A\\B-\\E\\x-\\y])|(([a-z]|[\\C-\\A\\B-\\E\\x-\\y])([a-z]|\\d|-|\\.|W|~|[\\C-\\A\\B-\\E\\x-\\y])*([a-z]|[\\C-\\A\\B-\\E\\x-\\y])))\\.?)(:\\d*)?)(\\/((([a-z]|\\d|-|\\.|W|~|[\\C-\\A\\B-\\E\\x-\\y])|(%[\\1L-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:|@)+(\\/(([a-z]|\\d|-|\\.|W|~|[\\C-\\A\\B-\\E\\x-\\y])|(%[\\1L-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:|@)*)*)?)?(\\?((([a-z]|\\d|-|\\.|W|~|[\\C-\\A\\B-\\E\\x-\\y])|(%[\\1L-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:|@)|[\\5b-\\5a]|\\/|\\?)*)?(\\#((([a-z]|\\d|-|\\.|W|~|[\\C-\\A\\B-\\E\\x-\\y])|(%[\\1L-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:|@)|\\/|\\?)*)?$/i.X(a)},1n:7(a,b){8 6.G(b)||!/59|58/.X(29 57(a))},1X:7(a,b){8 6.G(b)||/^\\d{4}[\\/-]\\d{1,2}[\\/-]\\d{1,2}$/.X(a)},1Y:7(a,b){8 6.G(b)||/^\\d\\d?\\.\\d\\d?\\.\\d\\d\\d?\\d?$/.X(a)},1A:7(a,b){8 6.G(b)||/^-?(?:\\d+|\\d{1,3}(?:,\\d{3})+)(?:\\.\\d+)?$/.X(a)},27:7(a,b){8 6.G(b)||/^-?(?:\\d+|\\d{1,3}(?:\\.\\d{3})+)(?:,\\d+)?$/.X(a)},1N:7(a,b){8 6.G(b)||/^\\d+$/.X(a)},2g:7(b,e){l(6.G(e))8"1R-1W";l(/[^0-9-]+/.X(b))8 I;p a=0,d=0,2i=I;b=b.2K(/\\D/g,"");Q(n=b.F-1;n>=0;n--){p c=b.55(n);p d=54(c,10);l(2i){l((d*=2)>9)d-=9}a+=d;2i=!2i}8(a%10)==0},3T:7(b,c,a){a=17 a=="1s"?a:"66|52?g|51";8 6.G(c)||b.50(29 3A(".("+a+")$","i"))},3W:7(b,c,a){8 b==$(a).6a()}}})})(2N);(7($){p c=$.2T;p d={};$.2T=7(a){a=$.H(a,$.H({},$.4Y,a));p b=a.3R;l(a.3S=="2S"){l(d[b]){d[b].2S()}8(d[b]=c.1G(6,S))}8 c.1G(6,S)}})(2N);(7($){$.P({3e:\'3z\',4W:\'3y\'},7(b,a){$.1z.34[a]={4U:7(){l($.2V.2P)8 I;6.4T(b,$.1z.34[a].38,w)},4S:7(){l($.2V.2P)8 I;6.4R(b,$.1z.34[a].38,w)},38:7(e){S[0]=$.1z.35(e);S[0].1p=a;8 $.1z.28.1G(6,S)}}});$.H($.2M,{1D:7(d,e,c){8 6.3q(d,7(a){p b=$(a.4r);l(b.2L(e)){8 c.1G(b,S)}})},4Q:7(a,b){8 6.2G(a,[$.1z.35({1p:a,4r:b})])}})})(2N);',62,395,'||||||this|function|return|||||||||||||if||||var|settings||||name|validator|true|uFDF0|uFFEF||uD7FF|uF900|u00A0||uFDCF|length|optional|extend|false|form|Please|messages|element|valid|enter|each|for|delete|arguments|errorList|value|method|_|test|currentForm|call||in|toHide|required|elements|data|maxlength|typeof|pendingRequest|else|errorClass|invalid|rules|format|case|message|pending|add|toShow|showErrors|trim|submitted|successList|date|success|type|filter|errorMap|string|max|formSubmitted|minlength|checkable|url|console|event|number|min|metadata|delegate|validate|not|apply|attr|split|getLength|classRuleSettings|da|x09|digits|unhighlight|errorsFor|methods|dependency|normalizeRule|remote|email|reset|mismatch|dateISO|dateDE|findByName|push|input|groups|select|currentElements||check|numberDE|handle|new|range|x20|previousValue|rangelength|objectLength|depends|creditcard|labelContainer|bEven|debug|focusInvalid|constructor|wrapper|defaultMessage|undefined|containers|addClass|switch|highlight|parameters|staticRules|errors|showLabel|rulesCache|hide|addWrapper|hideErrors|resetForm|selected|clean|errorLabelContainer|prepareForm|triggerHandler|errorElement|text|defaults|replace|is|fn|jQuery|dependTypes|msie|characters|than|abort|ajax|x0d|browser|Number|window|param|old|ein|idOrName|submit|break|special|fix|meta|cancelSubmit|handler|removeClass|prepareElement|lastElement|invalidElements|catch|focus|findLastActive|try|size|defaultShowErrors|grep|lastActive|ignoreTitle|ignore|errorContainer|checkForm|nothing|bind|invalidHandler|error|checkbox|radio|onsubmit|errorPlacement|init|focusout|focusin|RegExp|on|Array|nodeName|addClassRules|numberOfInvalids|autoCreateRanges|equal|or|makeArray|x7f|between|x0c|x0b|checked|x22|no|port|mode|accept|x0a|the|equalTo|x01|submitHandler|attributeRules|and|stopRequest|startRequest|classRules|depend|option|toLowerCase|metadataRules|to|null|normalizeRules|Sie|geben|html|Bitte|generated|map|show|errorContext|validElements|strong|findDefined|String|customMessage|customMetaMessage|field|id|target|formatAndAdd|click|onclick|assigned|onkeyup|cancel|has|disabled|image|can|visible|onfocusout|button|blockFocusCleanup|focusCleanup|removeAttr|onfocusin|find|label|removeAttrs|textarea|file|password|keyup|triggerEvent|removeEventListener|teardown|addEventListener|setup|slice|blur|valueCache|ajaxSettings|warn|match|gif|jpe|prototype|parseInt|charAt|greater|Date|NaN|Invalid|uF8FF|uE000|unshift|less|https|x7e|x5d|x23|long|x21|x1f|x0e|least|at|unchecked|more|filled|json|dataType|extension|with|default|specified|attributes|again|blank|same|multiple|expr|addMethod|isFunction|x08|card|524288|credit|2147483647|class|only|previous|x5b|Nummer|boolean|eine|ftp|Datum|getElementsByName|ltiges|document|gÃ|insertAfter|preventDefault|append|parent|wrap|ISO|remove|parents|URL|png|defined|No|Warning|val|address|title|returning|throw|checking|when|This|occured|exception|setDefaults|log|continue'.split('|'),0,{}))
;
/* AGGREGATED JS FILE: sites/all/modules/jquery_update/jquery.scrollto.js */
/**
 * jQuery.ScrollTo - Easy element scrolling using jQuery.
 * Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
 * Dual licensed under MIT and GPL.
 * Date: 3/9/2009
 * @author Ariel Flesler
 * @version 1.4.1
 *
 * http://flesler.blogspot.com/2007/10/jqueryscrollto.html
 */
;(function($){var m=$.scrollTo=function(b,h,f){$(window).scrollTo(b,h,f)};m.defaults={axis:'xy',duration:parseFloat($.fn.jquery)>=1.3?0:1};m.window=function(b){return $(window).scrollable()};$.fn.scrollable=function(){return this.map(function(){var b=this,h=!b.nodeName||$.inArray(b.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!h)return b;var f=(b.contentWindow||b).document||b.ownerDocument||b;return $.browser.safari||f.compatMode=='BackCompat'?f.body:f.documentElement})};$.fn.scrollTo=function(l,j,a){if(typeof j=='object'){a=j;j=0}if(typeof a=='function')a={onAfter:a};if(l=='max')l=9e9;a=$.extend({},m.defaults,a);j=j||a.speed||a.duration;a.queue=a.queue&&a.axis.length>1;if(a.queue)j/=2;a.offset=n(a.offset);a.over=n(a.over);return this.scrollable().each(function(){var k=this,o=$(k),d=l,p,g={},q=o.is('html,body');switch(typeof d){case'number':case'string':if(/^([+-]=)?\d+(\.\d+)?(px)?$/.test(d)){d=n(d);break}d=$(d,this);case'object':if(d.is||d.style)p=(d=$(d)).offset()}$.each(a.axis.split(''),function(b,h){var f=h=='x'?'Left':'Top',i=f.toLowerCase(),c='scroll'+f,r=k[c],s=h=='x'?'Width':'Height';if(p){g[c]=p[i]+(q?0:r-o.offset()[i]);if(a.margin){g[c]-=parseInt(d.css('margin'+f))||0;g[c]-=parseInt(d.css('border'+f+'Width'))||0}g[c]+=a.offset[i]||0;if(a.over[i])g[c]+=d[s.toLowerCase()]()*a.over[i]}else g[c]=d[i];if(/^\d+$/.test(g[c]))g[c]=g[c]<=0?0:Math.min(g[c],u(s));if(!b&&a.queue){if(r!=g[c])t(a.onAfterFirst);delete g[c]}});t(a.onAfter);function t(b){o.animate(g,j,a.easing,b&&function(){b.call(this,l,a)})};function u(b){var h='scroll'+b;if(!q)return k[h];var f='client'+b,i=k.ownerDocument.documentElement,c=k.ownerDocument.body;return Math.max(i[h],c[h])-Math.min(i[f],c[f])}}).end()};function n(b){return typeof b=='object'?b:{top:b,left:b}}})(jQuery);
;
/* AGGREGATED JS FILE: sites/all/modules/jquery_update/swfobject.js */
/* SWFObject v2.1 <http://code.google.com/p/swfobject/>
    Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis
    This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e){return }if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return }}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(u,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"}if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}}var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return }var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}}function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u<t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return }var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return }AB+="";AD+="";if(c(q)){W(AE,false);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}();
;
/* AGGREGATED JS FILE: sites/all/modules/jquery_update/piclens.js */
/* PicLens Lite: version 1.3.1 (14221)
 * Copyright (c) 2008 Cooliris, Inc.  All Rights Reserved.
 * 
 * The JavaScript part of PicLens Lite (i.e., this file) is BSD licensed (see: http://lite.piclens.com/bsdlicense)
 * This launcher includes and interacts with SWFObject (MIT), BrowserDetect (BSD Compatible), and Lytebox (CC Attribution 3.0).
 * 
 * There are two versions of this JS: 
 * http://lite.piclens.com/current/piclens.js               full commented file         (~39KB)
 * http://lite.piclens.com/current/piclens_optimized.js     lighter deployment file     (~21KB)
 */
 
var PicLensLite={start:function(B){this.determineBrowserParams();clearTimeout(this.REMOVE_TIMER_ID);clearTimeout(this.AUTO_CLOSE_TIMER_ID);this.ARGS={};if(typeof B!=="undefined"&&B!==null){this.ARGS=B;if(B.feedUrl){this.THE_FEED_URL=B.feedUrl;if(this.checkForPluginAndLaunchIfPossible(B.feedUrl,B.guid)){return }if(B.loadFeedInFlash){this.showFlashUI("")}else{this.loadViaXHR(B.feedUrl)}}if(typeof B.feedData!=="undefined"){this.showFlashUI(B.feedData)}}else{var A=this.indexFeeds();if(A.length!==0){var C=A[0];this.THE_FEED_URL=C.url;if(this.checkForPluginAndLaunchIfPossible(C.url)){return }this.loadViaXHR(C.url)}}},isRunning:function(){return this.LITE_IS_RUNNING},hasClient:function(){return this.hasCooliris()},addCustomButton:function(C,B,A){this.CUSTOM_BUTTON={targetURL:C,labelText:B,iconImage:A}},setCallbacks:function(A){if(A.onNoPlugins){this.ON_NO_PLUGINS=A.onNoPlugins}if(A.onExit){this.ON_EXIT=A.onExit}},setLiteURLs:function(A){if(!this.LITE_URL){if(A.swf){this.LITE_URL=A.swf}else{if(A.lite){this.LITE_URL=A.lite+"PicLensLite.swf"}}}if(!this.BUTTON_URL){if(A.button){this.BUTTON_URL=A.button}else{if(A.lite){this.BUTTON_URL=A.lite+"NoFlash.jpg"}}}var B="";if(A.lbox){B=A.lbox}else{if(A.lite){B=A.lite+"../lytebox/"}}if(!this.LBOX_CSS_URL){if(A.lboxcss){this.LBOX_CSS_URL=A.lboxcss}else{if(B!=""){this.LBOX_CSS_URL=B+"lytebox.css"}}}if(!this.LBOX_JS_URL){if(A.lboxjs){this.LBOX_JS_URL=A.lboxjs}else{if(B!=""){this.LBOX_JS_URL=B+"lytebox.js"}}}},ARGS:{},DEBUG_NOCLIENT:false,DEBUG_NOFLASH:false,HPAD:60,VPAD:20,LITE_BG_DIV:null,LITE_FG_DIV:null,LITE_URL:null,BUTTON_URL:null,LBOX_CSS_URL:null,LBOX_JS_URL:null,LBOX_COUNT:0,SHOW_LBOX:false,OS_WIN:false,OS_MAC:false,BROWSER_FFX:false,BROWSER_SAF:false,BROWSER_IE:false,BROWSER_IE6:false,OLD_B_MARGIN:null,OLD_B_OVERFLOW:null,OLD_B_HEIGHT:null,OLD_H_OVERFLOW:null,OLD_H_HEIGHT:null,THE_FEED:"",THE_FEED_URL:"",LITE_IS_RUNNING:false,piclensIsRunning_:false,FLASH_ID_1:"pllflash1",FLASH_ID_2:"pllflash2",FLASH_VER:null,FLASH_URL:"http://www.adobe.com/go/getflashplayer",PL_URL:"http://download.piclens.com/partner/",PLC:null,LEARN_PL_URL:"http://affiliate.piclens.com/partner/",FONT:"font-family: Lucida Grande, Myriad Pro, Verdana, Helvetica, Arial, sans-serif;",KEY_HANDLERS:"",ON_NO_PLUGINS:null,ON_EXIT:null,AUTO_CLOSE_TIMER_ID:0,REMOVE_TIMER_ID:0,RESIZE_TIMER_IE6:null,RESIZE_HANDLER_EXISTS:false,CUSTOM_BUTTON:null,addKeyHandlers:function(){var A=this;if(typeof document.onkeydown!=="undefined"){this.KEY_HANDLERS=document.onkeydown}document.onkeydown=function(C){var B;if(typeof C==="undefined"||C===null){B=window.event.keyCode}else{B=C.which}var D=A.handleKeyPress(B);if(typeof C!="undefined"&&C!=null){C.returnValue=D}return D}},addMouseHandlers:function(){if(window.addEventListener){window.addEventListener("DOMMouseScroll",this.handleMouseWheel,false)}else{if(document.attachEvent){document.attachEvent("onmousewheel",this.handleMouseWheel)}}window.onmousewheel=document.onmousewheel=this.handleMouseWheel},appendElementsToDocument:function(){if(this.BROWSER_FFX&&this.OS_MAC){this.LITE_BG_DIV.style.display="none"}document.body.appendChild(this.LITE_BG_DIV);document.body.appendChild(this.LITE_FG_DIV)},autoResize:function(){if(!this.isRunning()){clearInterval(this.RESIZE_TIMER_IE6);return }var C=this.getPageSize();var B=this.LITE_BG_DIV;if(B){B.style.height=C.h+"px";B.style.width=C.w+"px"}if(this.LITE_FG_DIV){var A=this.LITE_FG_DIV.style;this.resizeToPaddedBox(A);this.resizeToFitPaddedBox(A,C);this.resizeFlashToFitPaddedBox()}},checkForPluginAndLaunchIfPossible:function(B,A){if(this.hasCooliris()){if(typeof (A)!="undefined"){this.PLC.launch(B,"uid",A)}else{this.PLC.launch(B,"","")}return true}return false},createBackgroundOverlay:function(){var D=document.createElement("div");this.LITE_BG_DIV=D;D.id="lite_bg_div";var E=D.style;E.position="fixed";E.width=E.height="100%";if(this.BROWSER_IE6){var A=document.body;var C=A.currentStyle;var H=document.documentElement;var G=H.currentStyle;this.OLD_B_MARGIN=C.margin;this.OLD_B_OVERFLOW=C.overflow;this.OLD_B_HEIGHT=C.height;this.OLD_H_OVERFLOW=G.overflow;this.OLD_H_HEIGHT=G.height;this.OLD_SCROLL_Y=H.scrollTop;A.style.margin="0";A.style.overflow="auto";A.style.height="100%";H.style.overflow="auto";H.style.height="100%";E.position="absolute";var F=this.getPageSize();E.height=F.h+"px";E.width=F.w+"px"}E.left=E.right=E.top=E.bottom="0";E.backgroundColor="#000";E.zIndex=1000;E.opacity="0.5";E.filter="alpha(opacity=50)";var B=this;D.onclick=function(){B.exitPicLensLite()}},createForegroundFlashComponent:function(){var B=document.createElement("div");this.LITE_FG_DIV=B;B.id="lite_fg_div";var A=B.style;A.backgroundColor="#000";A.position="fixed";A.border="2px solid #555";A.zIndex=1001;this.resizeToPaddedBox(A);if(this.BROWSER_IE6){A.position="absolute";this.resizeToFitPaddedBox(A)}},closeFlashUI:function(C){var B=document;B.onkeydown=this.KEY_HANDLERS;window.onmousewheel=B.onmousewheel="";if(window.removeEventListener){window.removeEventListener("DOMMouseScroll",this.handleMouseWheel,false)}if(B.detachEvent){B.detachEvent("onmousewheel",this.handleMouseWheel)}this.LITE_BG_DIV.style.display=this.LITE_FG_DIV.style.display="none";this.REMOVE_TIMER_ID=setTimeout(function(){PicLensLite.removeChildren()},150);if(this.BROWSER_IE6){var A=document.body;var D=document.documentElement;A.style.margin=this.OLD_B_MARGIN;A.style.overflow=this.OLD_B_OVERFLOW;A.style.height=this.OLD_B_HEIGHT;D.style.overflow=this.OLD_H_OVERFLOW;D.style.height=this.OLD_H_HEIGHT;window.scrollTo(0,this.OLD_SCROLL_Y)}if(this.ON_EXIT!==null){this.ON_EXIT(C)}this.setRunningFlag(false)},determineBrowserParams:function(){var B=BrowserDetect.OS;var A=BrowserDetect.browser;this.OS_MAC=(B=="Mac");this.OS_WIN=(B=="Windows");this.BROWSER_FFX=(A=="Firefox");this.BROWSER_SAF=(A=="Safari");this.BROWSER_IE=(A=="Explorer");this.BROWSER_IE6=(this.BROWSER_IE&&BrowserDetect.version=="6");this.FLASH_VER=swfobjlite.getFlashPlayerVersion()},exitPicLensLite:function(){var A=this.getFlash();if(A!==null&&A.fl_exitPicLensLite){A.fl_exitPicLensLite();this.AUTO_CLOSE_TIMER_ID=setTimeout(function(){if(PicLensLite.isRunning()){PicLensLite.closeFlashUI()}},500)}else{this.closeFlashUI()}},findScriptLocation:function(){var E=document.getElementsByTagName("script");for(var C=0;C!=E.length;++C){var A=E[C];var D=A.getAttribute("type");if(D=="text/javascript"){var F=A.getAttribute("src");if(F===null){continue}var B=F.indexOf("piclens.js");if(B!=-1){this.setLiteURLs({lite:F.substring(0,B)});return }else{B=F.indexOf("piclens_optimized.js");if(B!=-1){this.setLiteURLs({lite:F.substring(0,B)});return }}}}},getPageSize:function(){var J,F,G,C;var I=document;var E=I.body;var D;if(window.innerHeight&&window.scrollMaxY){J=I.scrollWidth;F=(this.isFrame?parent.innerHeight:self.innerHeight)+(this.isFrame?parent.scrollMaxY:self.scrollMaxY)}else{if(E.scrollHeight>E.offsetHeight){J=E.scrollWidth;F=E.scrollHeight}else{D=I.getElementsByTagName("html").item(0);J=D.offsetWidth;F=D.offsetHeight;J=(J<E.offsetWidth)?E.offsetWidth:J;F=(F<E.offsetHeight)?E.offsetHeight:F}}var A=I.documentElement;if(self.innerHeight){G=(this.isFrame)?parent.innerWidth:self.innerWidth;C=(this.isFrame)?parent.innerHeight:self.innerHeight}else{if(A&&A.clientHeight){G=A.clientWidth;C=A.clientHeight}else{if(E){D=I.getElementsByTagName("html").item(0);G=D.clientWidth;C=D.clientHeight;G=(G==0)?E.clientWidth:G;C=(C==0)?E.clientHeight:C}}}var B=(F<C)?C:F;var H=(J<G)?G:J;return{pw:H,ph:B,w:G,h:C}},getElementsFromXMLFeed:function(){var B;if(window.ActiveXObject){B=new ActiveXObject("Microsoft.XMLDOM");B.async=false;B.loadXML(PicLensLite.THE_FEED)}else{var C=new DOMParser();B=C.parseFromString(PicLensLite.THE_FEED,"text/xml")}var A=B.getElementsByTagName("*");return A},getBasicSlideShowHTML:function(){if(!this.LBOX_JS_URL||!this.LBOX_CSS_URL){return""}var D=document.getElementsByTagName("head").item(0);var A=document.createElement("script");A.src=this.LBOX_JS_URL;A.type="text/javascript";D.appendChild(A);var G=document.createElement("link");G.rel="stylesheet";G.href=this.LBOX_CSS_URL;G.type="text/css";G.media="screen";D.appendChild(G);var F=this.getElementsFromXMLFeed();var C;var H="";for(C=0;C<F.length;C++){if(F[C].nodeName=="media:content"){var B=F[C].getAttribute("url");if(B.indexOf(".flv")==-1){H+='<a id="lboxImage" href="'+B+'" rel="lytebox[lite]"></a> '}}}var E="<div id='lightbox_images' align='center' style='display: none; padding-top:10px; color:#FFFFFF; font-size:.8em; "+this.FONT+" color:#999999;'>";E+='( Alternatively, <a onclick="javascript:PicLensLite.invokeLytebox();return false;" href="#" style="color:#656588">click here for a basic slideshow</a>. )';E+=H;E+="</div><br/>";return E},generateAlternativeContent:function(){var J='<div id="altContent" style="text-align:center; margin: 0 0 0 0; padding: 0 0 0 0; background-color: #000; min-width:860px;">';J+='<div align="center" style="width: 100%; padding-top:60px; '+this.FONT+'">';var I=this.FLASH_VER;var G;if(I.major>0){G="update your Flash Player from version "+I.major+"."+I.minor+"."+I.release+" to version 9.0.28 or newer"}else{G="install the most recent Flash Player"}var D="";if(this.THE_FEED!==""){D=this.getBasicSlideShowHTML()}var A=this.PL_URL;var E=this.LEARN_PL_URL;var F=this.ARGS.pid;if(F){A+=F+"/";E+=F+"/"}else{var H="000000000001/";A+=H;E+=H}if(this.SHOW_LBOX){}else{var C="<span style='padding-left:25px; color:#C6C6C6; font-size:";J+="<div style='padding:10px;'>"+C+"1.5em; font-weight: bold; "+this.FONT+"'>You're clicks away from going full screen!</span><br/>"+C+".9em; padding-bottom: 15px; "+this.FONT+"'>You must get the <a href='"+A+"' style='color:#656588'>Cooliris</a> browser plugin, or "+G+".</span></div>";if(!this.BUTTON_URL){J+='<a href="'+A+'" style="color:#ACD">Get Cooliris Now!</a>'}else{var B='<area shape="rect" coords=';J+='<img src="'+this.BUTTON_URL+'" alt="" border="0" usemap="#Map"><map name="Map" id="Map">'+B+'"0,0,33,33" href="#" onclick="javascript:PicLensLite.closeFlashUI();" />'+B+'"35,35,325,325" href="'+A+'" />'+B+'"593,209,825,301" href="'+this.FLASH_URL+'" />'+B+'"327,148,448,178" href="'+E+'" /></map>'}}J+="</div>";J+=D;J+='<div align="center" style="color:#666666; font-size:11px; '+this.FONT+'">&copy; 2008 Cooliris, Inc. All trademarks are property of their respective holders.<br/><br/><br/></div>';J+="</div>";return J},generateFlashVars:function(){var C="";var B=this.ARGS;if(typeof B.guid!=="undefined"){C+="&startItemGUID="+B.guid}if(B.loadFeedInFlash){C+="&feedURL="+encodeURIComponent(this.THE_FEED_URL)}if(B.paused){C+="&paused="+B.paused}if(B.loop){C+="&loop="+B.loop}if(B.delay){C+="&delay="+B.delay}if(B.pid){C+="&pid="+B.pid}if(typeof B.maxScale!="undefined"){C+="&maxScale="+B.maxScale}if(typeof B.overlayToolbars!="undefined"){C+="&overlayToolbars="+B.overlayToolbars}var A=this.CUSTOM_BUTTON;if(A!=null){C+="&cButtonURL="+encodeURIComponent(A.targetURL);if(A.labelText!=null){C+="&cButtonLabel="+encodeURIComponent(A.labelText)}if(A.iconImage!=null){C+="&cButtonIcon="+encodeURIComponent(A.iconImage)}}C+="&swfURL="+encodeURIComponent(this.LITE_URL);C=C.substring(1);return C},getFlash:function(){if(this.BROWSER_SAF||this.BROWSER_IE){return document.getElementById(this.FLASH_ID_1)}else{return document.getElementById(this.FLASH_ID_2)}},getWindowSize:function(){var B=document.documentElement;var D=document.body;var A=0,C=0;if(typeof (window.innerWidth)=="number"){A=window.innerWidth;C=window.innerHeight}else{if(B&&(B.clientWidth||B.clientHeight)){A=B.clientWidth;C=B.clientHeight}else{if(D&&(D.clientWidth||D.clientHeight)){A=D.clientWidth;C=D.clientHeight}}}return{w:A,h:C}},handleKeyPress:function(A){if(!this.isRunning()){return true}var B=this.getFlash();if(B!=null&&B.fl_keyPressed){B.fl_keyPressed(A)}else{if(A==27){this.closeFlashUI();return false}}if(A==9||A==13){return false}return true},handleMouseWheel:function(A){var C=0;if(!A){A=window.event}if(A.wheelDelta){C=A.wheelDelta/120;if(window.opera){C=-C}}else{if(A.detail){var B=A.detail;if(Math.abs(B)<3){C=-B}else{C=-B/3}}}if(C){PicLensLite.sendMouseScrollToFlash(C)}if(A.preventDefault){A.preventDefault()}A.returnValue=false;return false},hasPicLensClient:function(){return this.hasCooliris()},hasCooliris:function(){if(this.DEBUG_NOCLIENT){return false}var E=false;if(this.PLC){E=true}else{if(window.piclens&&window.piclens.launch){this.PLC=window.piclens;E=true}else{var B=null;if(typeof PicLensContext!="undefined"){B=new PicLensContext()}else{try{B=new ActiveXObject("PicLens.Context")}catch(D){if(navigator.mimeTypes["application/x-cooliris"]){B=document.createElement("object");B.style.display="none";B.width=0;B.height=0;B.type="application/x-cooliris";document.documentElement.appendChild(B)}else{B=null}}}this.PLC=B;if(this.PLC){E=true}}}if(E){if(this.BROWSER_SAF){return true}var A;try{A=this.PLC.version}catch(D){return false}var C=A.split(".");if(C[0]>1){return true}else{if(C[0]==1){if(C[1]>6){return true}else{if(C[1]==6){if(C[2]>0){return true}else{if(C[2]==0){if(C[3]>=824){return true}}}}}}}return false}else{return false}},invokeLytebox:function(){this.SHOW_LBOX=true;myLytebox.start(document.getElementById("lboxImage"),false,false);this.closeFlashUI()},showLyteboxLink:function(){myLytebox.updateLyteboxItems();myLytebox.doAnimations=false;var A=document.getElementById("lightbox_images");if(A!=null){A.style.display="block";if(this.SHOW_LBOX&&this.getFlash()==null){this.invokeLytebox()}}},startLytebox:function(){if(typeof myLytebox!="undefined"){this.showLyteboxLink()}else{if(typeof initLytebox!="undefined"){initLytebox();this.showLyteboxLink()}else{if(this.LBOX_COUNT>=4){return }setTimeout(function(){PicLensLite.startLytebox()},150);this.LBOX_COUNT++}}},injectFlashPlayer:function(){var A=this.LITE_FG_DIV;var D;var F;D=F="100%";if(this.BROWSER_IE6){D=F="0"}var E=this.generateFlashVars();var B=this.generateAlternativeContent();if(this.meetsReqs()){var C="<param name=";A.innerHTML='<object id="'+this.FLASH_ID_1+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%">'+C+'"movie" value="'+this.LITE_URL+'" />'+C+'"quality" value="high"/> '+C+'"bgcolor" value="#000000"/> '+C+'"allowScriptAccess" value="always"/> '+C+'"FlashVars" value="'+E+'"/> '+C+'"allowFullScreen" value="true"/> '+C+'"wmode" value="window"/> '+C+'"scale" value="noscale"/> <object type="application/x-shockwave-flash" data="'+this.LITE_URL+'" width="'+D+'" height="'+F+'" quality="high" bgcolor="#000000" id="'+this.FLASH_ID_2+'" quality="high" FlashVars="'+E+'" allowFullScreen="true" scale="noscale" wmode="window" allowScriptAccess="always">'+B+"</object></object>"}else{if(this.ON_NO_PLUGINS){this.ON_NO_PLUGINS()}else{A.innerHTML=B;A.style.minWidth="860px";A.style.minHeight="550px"}}if(this.BROWSER_SAF){this.resizeUI()}},indexFeeds:function(){var E=document.getElementsByTagName("link");var A=[];for(var B=0;B!=E.length;++B){var D=E[B],C=D.getAttribute("type");if(C=="application/rss+xml"||C=="text/xml"){A.push({title:D.getAttribute("title"),url:D.getAttribute("href")})}}return A},loadViaXHR:function(B){var A=this;var D=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("MSXML2.XMLHTTP.3.0");try{D.open("GET",B,true);D.onreadystatechange=function(){if(D.readyState==4){if((D.status==200||D.status==0)){if(D.responseText){A.showFlashUI(D.responseText)}}else{if(console){console.log("PicLens Lite could not load the RSS Feed: "+B)}}}};D.send("")}catch(C){this.ARGS.loadFeedInFlash=true;this.showFlashUI("")}},meetsReqs:function(){if(this.DEBUG_NOFLASH){return false}var B=(this.FLASH_VER.major==0)&&this.BROWSER_IE;var A=swfobjlite.hasFlashPlayerVersion("9.0.28");return A||B},removeChildren:function(){this.REMOVE_TIMER_ID=0;if(this.LITE_BG_DIV!==null){document.body.removeChild(this.LITE_BG_DIV);this.LITE_BG_DIV=null}if(this.LITE_FG_DIV!==null){document.body.removeChild(this.LITE_FG_DIV);this.LITE_FG_DIV=null}},resizeFlashToFitPaddedBox:function(){var B=this.getFlash();if(B){var C=this.getPageSize();var A=C.w-this.HPAD*2;var D=C.h-this.VPAD*2;B.style.width=A;B.style.height=D;B.width=A;B.height=D}},resizeToFitPaddedBox:function(B,A){if(typeof A=="undefined"){A=this.getPageSize()}B.width=(A.w-this.HPAD*2)+"px";B.height=(A.h-this.VPAD*2)+"px"},resizeToPaddedBox:function(A){A.left=A.right=this.HPAD+"px";A.top=A.bottom=this.VPAD+"px"},resizeUI:function(){if(this.LITE_FG_DIV){var A=this.LITE_FG_DIV.style;this.resizeToPaddedBox(A);this.resizeToFitPaddedBox(A);this.resizeFlashToFitPaddedBox()}},setRunningFlag:function(A){this.LITE_IS_RUNNING=A;this.piclensIsRunning_=A},setResizeHandler:function(){if(!this.RESIZE_HANDLER_EXISTS&&this.BROWSER_SAF){var A=this;window.addEventListener("resize",function(){A.resizeUI()},false);this.RESIZE_HANDLER_EXISTS=true}},setResizeTimer:function(){if(this.BROWSER_IE6){this.RESIZE_TIMER_IE6=setInterval(function(){PicLensLite.autoResize()},1000)}},showFlashUI:function(A){this.THE_FEED=A;this.findScriptLocation();this.createBackgroundOverlay();this.createForegroundFlashComponent();if(this.BROWSER_IE){this.appendElementsToDocument()}this.injectFlashPlayer();if(!this.BROWSER_IE){this.appendElementsToDocument()}this.addKeyHandlers();this.addMouseHandlers();this.setRunningFlag(true);this.setResizeTimer();this.setResizeHandler();this.startLytebox()},sendMouseScrollToFlash:function(B){if(!this.isRunning()){return }var A=this.getFlash();if(A!=null&&A.fl_mouseMoved){A.fl_mouseMoved(B)}}};var swfobjlite=function(){var UNDEF="undefined",OBJECT="object",SHOCKWAVE_FLASH="Shockwave Flash",SHOCKWAVE_FLASH_AX="ShockwaveFlash.ShockwaveFlash",win=window,doc=document,nav=navigator;var ua=function(){var w3cdom=typeof doc.getElementById!=UNDEF&&typeof doc.getElementsByTagName!=UNDEF&&typeof doc.createElement!=UNDEF&&typeof doc.appendChild!=UNDEF&&typeof doc.replaceChild!=UNDEF&&typeof doc.removeChild!=UNDEF&&typeof doc.cloneNode!=UNDEF,playerVersion=[0,0,0],d=null;if(typeof nav.plugins!=UNDEF&&typeof nav.plugins[SHOCKWAVE_FLASH]==OBJECT){d=nav.plugins[SHOCKWAVE_FLASH].description;if(d){d=d.replace(/^.*\s+(\S+\s+\S+$)/,"$1");playerVersion[0]=parseInt(d.replace(/^(.*)\..*$/,"$1"),10);playerVersion[1]=parseInt(d.replace(/^.*\.(.*)\s.*$/,"$1"),10);playerVersion[2]=/r/.test(d)?parseInt(d.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof win.ActiveXObject!=UNDEF){var a=null,fp6Crash=false;try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".7")}catch(e){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".6");playerVersion=[6,0,21];a.AllowScriptAccess="always"}catch(e){if(playerVersion[0]==6){fp6Crash=true}}if(!fp6Crash){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX)}catch(e){}}}if(!fp6Crash&&a){try{d=a.GetVariable("$version");if(d){d=d.split(" ")[1].split(",");playerVersion=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10)]}}catch(e){}}}}var u=nav.userAgent.toLowerCase(),p=nav.platform.toLowerCase(),webkit=/webkit/.test(u)?parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,ie=false,windows=p?/win/.test(p):/win/.test(u),mac=p?/mac/.test(p):/mac/.test(u);
/*@cc_on
            ie = true;
            @if (@_win32)
                windows = true;
            @elif (@_mac)
                mac = true;
            @end
        @*/
return{w3cdom:w3cdom,pv:playerVersion,webkit:webkit,ie:ie,win:windows,mac:mac}}();return{hasFlashPlayerVersion:function(rv){var pv=ua.pv,v=rv.split(".");v[0]=parseInt(v[0],10);v[1]=parseInt(v[1],10);v[2]=parseInt(v[2],10);return(pv[0]>v[0]||(pv[0]==v[0]&&pv[1]>v[1])||(pv[0]==v[0]&&pv[1]==v[1]&&pv[2]>=v[2]))?true:false},getFlashPlayerVersion:function(){return{major:ua.pv[0],minor:ua.pv[1],release:ua.pv[2]}}}}();var BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"Unknown Browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"Unknown Version";this.OS=this.searchString(this.dataOS)||"Unknown OS"},searchString:function(D){for(var A=0;A<D.length;A++){var B=D[A].string;var C=D[A].prop;this.versionSearchString=D[A].versionSearch||D[A].identity;if(B){if(B.indexOf(D[A].subString)!=-1){return D[A].identity}}else{if(C){return D[A].identity}}}},searchVersion:function(B){var A=B.indexOf(this.versionSearchString);if(A==-1){return }return parseFloat(B.substring(A+this.versionSearchString.length+1))},dataBrowser:[{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};BrowserDetect.init();
;
/* AGGREGATED JS FILE: sites/all/modules/jquery_update/jquery.texteffects.js */
var typerInterval = 0;

(function($) {
    
    function shuffle(a) {
        var i = a.length, j;
        while (i) {
            var j = Math.floor((i--) * Math.random());
            var t = a[i];
            a[i] = a[j];
            a[j] = t;
        }
    }
    
    function randomAlphaNum() {
        var rnd = Math.floor(Math.random() * 62);
        if (rnd >= 52) return String.fromCharCode(rnd - 4);
        else if (rnd >= 26) return String.fromCharCode(rnd + 71);
        else return String.fromCharCode(rnd + 65);
    }
    
    $.fn.rot13 = function() {
        this.each(function() {
            $(this).text($(this).text().replace(/[a-z0-9]/ig, function(chr) {
                var cc = chr.charCodeAt(0);
                if (cc >= 65 && cc <= 90) cc = 65 + ((cc - 52) % 26);
                else if (cc >= 97 && cc <= 122) cc = 97 + ((cc - 84) % 26);
                else if (cc >= 48 && cc <= 57) cc = 48 + ((cc - 43) % 10);
                return String.fromCharCode(cc);
            }));
        });
        return this;
    };
    
    $.fn.scrambledWriter = function() {
        this.each(function() {
            var $ele = $(this), str = $ele.text(), progress = 0, replace = /[^\s]/g,
                random = randomAlphaNum, inc = 3;
            $ele.text('');
            var timer = setInterval(function() {
                $ele.text(str.substring(0, progress) + str.substring(progress, str.length - 1).replace(replace, random));
                progress += inc
                if (progress >= str.length + inc) clearInterval(timer);
            }, 100);
        });
        return this;
    };
    
    $.fn.typewriter = function() {
        this.each(function() {
            var $ele = $(this), str = $ele.text(), progress = 0;
            $ele.text('');
            clearInterval(typerInterval);
            typerInterval = setInterval(function() {
                $ele.text(str.substring(0, progress++) + (progress & 1 ? '_' : ''));
                if (progress > str.length) 
                { clearInterval(typerInterval); $ele.text(str); }
            }, 70);
        });
        return this;
    };
    
    $.fn.unscramble = function() {
        this.each(function() {
            var $ele = $(this), str = $ele.text(), replace = /[^\s]/,
                state = [], choose = [], reveal = 25, random = randomAlphaNum;
            
            for (var i = 0; i < str.length; i++) {
                if (str[i].match(replace)) {
                    state.push(random());
                    choose.push(i);
                } else {
                    state.push(str[i]);
                }
            }
            
            shuffle(choose);
            $ele.text(state.join(''));
            
            var timer = setInterval(function() {
                var i, r = reveal;
                while (r-- && choose.length) {
                    i = choose.pop();
                    state[i] = str[i];
                }
                for (i = 0; i < choose.length; i++) state[choose[i]] = random();
                $ele.text(state.join(''));
                if (choose.length == 0) clearInterval(timer);
            }, 100);
        });
        return this;
    };
    
})(jQuery);
;
/* AGGREGATED JS FILE: sites/all/modules/jquery_update/jquery.boxy.js */
/**
 * Boxy 0.1.4 - Facebook-style dialog, with frills
 *
 * (c) 2008 Jason Frame
 * Licensed under the MIT License (LICENSE)
 */
 
/*
 * jQuery plugin
 *
 * Options:
 *   message: confirmation message for form submit hook (default: "Please confirm:")
 * 
 * Any other options - e.g. 'clone' - will be passed onto the boxy constructor (or
 * Boxy.load for AJAX operations)
 */
jQuery.fn.boxy = function(options) {
    options = options || {};
    return this.each(function() {      
        var node = this.nodeName.toLowerCase(), self = this;
        if (node == 'a') {
            jQuery(this).click(function() {
                var active = Boxy.linkedTo(this),
                    href = this.getAttribute('href'),
                    localOptions = jQuery.extend({actuator: this, title: this.title}, options);
                    
                if (active) {
                    active.show();
                } else if (href.indexOf('#') >= 0) {
                    var content = jQuery(href.substr(href.indexOf('#'))),
                        newContent = content.clone(true);
                    content.remove();
                    localOptions.unloadOnHide = false;
                    new Boxy(newContent, localOptions);
                } else { // fall back to AJAX; could do with a same-origin check
                    if (!localOptions.cache) localOptions.unloadOnHide = true;
                    Boxy.load(this.href, localOptions);
                }
                
                return false;
            });
        } else if (node == 'form') {
            jQuery(this).bind('submit.boxy', function() {
                Boxy.confirm(options.message || 'Please confirm:', function() {
                    jQuery(self).unbind('submit.boxy').submit();
                });
                return false;
            });
        }
    });
};

//
// Boxy Class

function Boxy(element, options) {
    
    this.boxy = jQuery(Boxy.WRAPPER);
    jQuery.data(this.boxy[0], 'boxy', this);
    
    this.visible = false;
    this.options = jQuery.extend({}, Boxy.DEFAULTS, options || {});
    
    if (this.options.modal) {
        this.options = jQuery.extend(this.options, {center: true, draggable: false});
    }
    
    // options.actuator == DOM element that opened this boxy
    // association will be automatically deleted when this boxy is remove()d
    if (this.options.actuator) {
        jQuery.data(this.options.actuator, 'active.boxy', this);
    }
    
    this.setContent(element || "<div></div>");
    this._setupTitleBar();
    
    this.boxy.css('display', 'none').appendTo(document.body);
    this.toTop();

    if (this.options.fixed) {
        if (jQuery.browser.msie && jQuery.browser.version < 7) {
            this.options.fixed = false; // IE6 doesn't support fixed positioning
        } else {
            this.boxy.addClass('fixed');
        }
    }
    
    if (this.options.center && Boxy._u(this.options.x, this.options.y)) {
        this.center();
    } else {
        this.moveTo(
            Boxy._u(this.options.x) ? this.options.x : Boxy.DEFAULT_X,
            Boxy._u(this.options.y) ? this.options.y : Boxy.DEFAULT_Y
        );
    }
    
    if (this.options.show) this.show();

};

Boxy.EF = function() {};

jQuery.extend(Boxy, {
    
    WRAPPER:    "<table cellspacing='0' cellpadding='0' border='0' class='boxy-wrapper'>" +
                "<tr><td class='top-left'></td><td class='top'></td><td class='top-right'></td></tr>" +
                "<tr><td class='left'></td><td class='boxy-inner'></td><td class='right'></td></tr>" +
                "<tr><td class='bottom-left'></td><td class='bottom'></td><td class='bottom-right'></td></tr>" +
                "</table>",
    
    DEFAULTS: {
        title:                  null,           // titlebar text. titlebar will not be visible if not set.
        closeable:              true,           // display close link in titlebar?
        draggable:              true,           // can this dialog be dragged?
        clone:                  false,          // clone content prior to insertion into dialog?
        actuator:               null,           // element which opened this dialog
        center:                 true,           // center dialog in viewport?
        show:                   true,           // show dialog immediately?
        modal:                  false,          // make dialog modal?
        fixed:                  true,           // use fixed positioning, if supported? absolute positioning used otherwise
        closeText:              '[close]',      // text to use for default close link
        unloadOnHide:           false,          // should this dialog be removed from the DOM after being hidden?
        clickToFront:           false,          // bring dialog to foreground on any click (not just titlebar)?
        behaviours:             Boxy.EF,        // function used to apply behaviours to all content embedded in dialog.
        afterDrop:              Boxy.EF,        // callback fired after dialog is dropped. executes in context of Boxy instance.
        afterShow:              Boxy.EF,        // callback fired after dialog becomes visible. executes in context of Boxy instance.
        afterHide:              Boxy.EF,        // callback fired after dialog is hidden. executed in context of Boxy instance.
        beforeUnload:           Boxy.EF         // callback fired after dialog is unloaded. executed in context of Boxy instance.
    },
    
    DEFAULT_X:          50,
    DEFAULT_Y:          50,
    zIndex:             1337,
    dragConfigured:     false, // only set up one drag handler for all boxys
    resizeConfigured:   false,
    dragging:           null,
    
    // load a URL and display in boxy
    // url - url to load
    // options keys (any not listed below are passed to boxy constructor)
    //   type: HTTP method, default: GET
    //   cache: cache retrieved content? default: false
    //   filter: jQuery selector used to filter remote content
    load: function(url, options) {
        
        options = options || {};
        
        var ajax = {
            url: url, type: 'GET', dataType: 'html', cache: false, success: function(html) {
                html = jQuery(html);
                if (options.filter) html = jQuery(options.filter, html);
                new Boxy(html, options);
            }
        };
        
        jQuery.each(['type', 'cache'], function() {
            if (this in options) {
                ajax[this] = options[this];
                delete options[this];
            }
        });
        
        jQuery.ajax(ajax);
        
    },
    
    // allows you to get a handle to the containing boxy instance of any element
    // e.g. <a href='#' onclick='alert(Boxy.get(this));'>inspect!</a>.
    // this returns the actual instance of the boxy 'class', not just a DOM element.
    // Boxy.get(this).hide() would be valid, for instance.
    get: function(ele) {
        var p = jQuery(ele).parents('.boxy-wrapper');
        return p.length ? jQuery.data(p[0], 'boxy') : null;
    },
    
    // returns the boxy instance which has been linked to a given element via the
    // 'actuator' constructor option.
    linkedTo: function(ele) {
        return jQuery.data(ele, 'active.boxy');
    },
    
    // displays an alert box with a given message, calling optional callback
    // after dismissal.
    alert: function(message, callback, options) {
        return Boxy.ask(message, ['OK'], callback, options);
    },
    
    // displays an alert box with a given message, calling after callback iff
    // user selects OK.
    confirm: function(message, after, options) {
        return Boxy.ask(message, ['OK', 'Cancel'], function(response) {
            if (response == 'OK') after();
        }, options);
    },
    
    // asks a question with multiple responses presented as buttons
    // selected item is returned to a callback method.
    // answers may be either an array or a hash. if it's an array, the
    // the callback will received the selected value. if it's a hash,
    // you'll get the corresponding key.
    ask: function(question, answers, callback, options) {
        
        options = jQuery.extend({modal: true, closeable: false},
                                options || {},
                                {show: true, unloadOnHide: true});
        
        var body = jQuery('<div></div>').append(jQuery('<div class="question"></div>').html(question));
        
        // ick
        var map = {}, answerStrings = [];
        if (answers instanceof Array) {
            for (var i = 0; i < answers.length; i++) {
                map[answers[i]] = answers[i];
                answerStrings.push(answers[i]);
            }
        } else {
            for (var k in answers) {
                map[answers[k]] = k;
                answerStrings.push(answers[k]);
            }
        }
        
        var buttons = jQuery('<form class="answers"></form>');
        buttons.html(jQuery.map(answerStrings, function(v) {
            return "<input type='button' value='" + v + "' />";
        }).join(' '));
        
        jQuery('input[type=button]', buttons).click(function() {
            var clicked = this;
            Boxy.get(this).hide(function() {
                if (callback) callback(map[clicked.value]);
            });
        });
        
        body.append(buttons);
        
        new Boxy(body, options);
        
    },
    
    // returns true if a modal boxy is visible, false otherwise
    isModalVisible: function() {
        return jQuery('.boxy-modal-blackout').length > 0;
    },
    
    _u: function() {
        for (var i = 0; i < arguments.length; i++)
            if (typeof arguments[i] != 'undefined') return false;
        return true;
    },
    
    _handleResize: function(evt) {
        var d = jQuery(document);
        jQuery('.boxy-modal-blackout').css('display', 'none').css({
            width: d.width(), height: d.height()
        }).css('display', 'block');
    },
    
    _handleDrag: function(evt) {
        var d;
        if (d = Boxy.dragging) {
            d[0].boxy.css({left: evt.pageX - d[1], top: evt.pageY - d[2]});
        }
    },
    
    _nextZ: function() {
        return Boxy.zIndex++;
    },
    
    _viewport: function() {
        var d = document.documentElement, b = document.body, w = window;
        return jQuery.extend(
            jQuery.browser.msie ?
                { left: b.scrollLeft || d.scrollLeft, top: b.scrollTop || d.scrollTop } :
                { left: w.pageXOffset, top: w.pageYOffset },
            !Boxy._u(w.innerWidth) ?
                { width: w.innerWidth, height: w.innerHeight } :
                (!Boxy._u(d) && !Boxy._u(d.clientWidth) && d.clientWidth != 0 ?
                    { width: d.clientWidth, height: d.clientHeight } :
                    { width: b.clientWidth, height: b.clientHeight }) );
    }

});

Boxy.prototype = {
    
    // Returns the size of this boxy instance without displaying it.
    // Do not use this method if boxy is already visible, use getSize() instead.
    estimateSize: function() {
        this.boxy.css({visibility: 'hidden', display: 'block'});
        var dims = this.getSize();
        this.boxy.css('display', 'none').css('visibility', 'visible');
        return dims;
    },
                
    // Returns the dimensions of the entire boxy dialog as [width,height]
    getSize: function() {
        return [this.boxy.width(), this.boxy.height()];
    },
    
    // Returns the dimensions of the content region as [width,height]
    getContentSize: function() {
        var c = this.getContent();
        return [c.width(), c.height()];
    },
    
    // Returns the position of this dialog as [x,y]
    getPosition: function() {
        var b = this.boxy[0];
        return [b.offsetLeft, b.offsetTop];
    },
    
    // Returns the center point of this dialog as [x,y]
    getCenter: function() {
        var p = this.getPosition();
        var s = this.getSize();
        return [Math.floor(p[0] + s[0] / 2), Math.floor(p[1] + s[1] / 2)];
    },
                
    // Returns a jQuery object wrapping the inner boxy region.
    // Not much reason to use this, you're probably more interested in getContent()
    getInner: function() {
        return jQuery('.boxy-inner', this.boxy);
    },
    
    // Returns a jQuery object wrapping the boxy content region.
    // This is the user-editable content area (i.e. excludes titlebar)
    getContent: function() {
        return jQuery('.boxy-content', this.boxy);
    },
    
    // Replace dialog content
    setContent: function(newContent) {
        newContent = jQuery(newContent).css({display: 'block'}).addClass('boxy-content');
        if (this.options.clone) newContent = newContent.clone(true);
        this.getContent().remove();
        this.getInner().append(newContent);
        this._setupDefaultBehaviours(newContent);
        this.options.behaviours.call(this, newContent);
        return this;
    },
    
    // Move this dialog to some position, funnily enough
    moveTo: function(x, y) {
        this.moveToX(x).moveToY(y);
        return this;
    },
    
    // Move this dialog (x-coord only)
    moveToX: function(x) {
        if (typeof x == 'number') this.boxy.css({left: x});
        else this.centerX();
        return this;
    },
    
    // Move this dialog (y-coord only)
    moveToY: function(y) {
        if (typeof y == 'number') this.boxy.css({top: y});
        else this.centerY();
        return this;
    },
    
    // Move this dialog so that it is centered at (x,y)
    centerAt: function(x, y) {
        var s = this[this.visible ? 'getSize' : 'estimateSize']();
        if (typeof x == 'number') this.moveToX(x - s[0] / 2);
        if (typeof y == 'number') this.moveToY(y - s[1] / 2);
        return this;
    },
    
    centerAtX: function(x) {
        return this.centerAt(x, null);
    },
    
    centerAtY: function(y) {
        return this.centerAt(null, y);
    },
    
    // Center this dialog in the viewport
    // axis is optional, can be 'x', 'y'.
    center: function(axis) {
        var v = Boxy._viewport();
        var o = this.options.fixed ? [0, 0] : [v.left, v.top];
        if (!axis || axis == 'x') this.centerAt(o[0] + v.width / 2, null);
        if (!axis || axis == 'y') this.centerAt(null, o[1] + v.height / 2);
        return this;
    },
    
    // Center this dialog in the viewport (x-coord only)
    centerX: function() {
        return this.center('x');
    },
    
    // Center this dialog in the viewport (y-coord only)
    centerY: function() {
        return this.center('y');
    },
    
    // Resize the content region to a specific size
    resize: function(width, height, after) {
        if (!this.visible) return;
        var bounds = this._getBoundsForResize(width, height);
        this.boxy.css({left: bounds[0], top: bounds[1]});
        this.getContent().css({width: bounds[2], height: bounds[3]});
        if (after) after(this);
        return this;
    },
    
    // Tween the content region to a specific size
    tween: function(width, height, after) {
        if (!this.visible) return;
        var bounds = this._getBoundsForResize(width, height);
        var self = this;
        this.boxy.stop().animate({left: bounds[0], top: bounds[1]});
        this.getContent().stop().animate({width: bounds[2], height: bounds[3]}, function() {
            if (after) after(self);
        });
        return this;
    },
    
    // Returns true if this dialog is visible, false otherwise
    isVisible: function() {
        return this.visible;    
    },
    
    // Make this boxy instance visible
    show: function() {
        if (this.visible) return;
        if (this.options.modal) {
            var self = this;
            if (!Boxy.resizeConfigured) {
                Boxy.resizeConfigured = true;
                jQuery(window).resize(function() { Boxy._handleResize(); });
            }
            this.modalBlackout = jQuery('<div class="boxy-modal-blackout"></div>')
                .css({zIndex: Boxy._nextZ(),
                      opacity: 0.7,
                      width: jQuery(document).width(),
                      height: jQuery(document).height()})
                .appendTo(document.body);
            this.toTop();
            if (this.options.closeable) {
                jQuery(document.body).bind('keypress.boxy', function(evt) {
                    var key = evt.which || evt.keyCode;
                    if (key == 27) {
                        self.hide();
                        jQuery(document.body).unbind('keypress.boxy');
                    }
                });
            }
        }
        this.boxy.stop().css({opacity: 1}).show();
        this.visible = true;
        this._fire('afterShow');
        return this;
    },
    
    // Hide this boxy instance
    hide: function(after) {
        if (!this.visible) return;
        var self = this;
        if (this.options.modal) {
            jQuery(document.body).unbind('keypress.boxy');
            this.modalBlackout.animate({opacity: 0}, function() {
                jQuery(this).remove();
            });
        }
        this.boxy.stop().animate({opacity: 0}, 300, function() {
            self.boxy.css({display: 'none'});
            self.visible = false;
            self._fire('afterHide');
            if (after) after(self);
            if (self.options.unloadOnHide) self.unload();
        });
        return this;
    },
    
    toggle: function() {
        this[this.visible ? 'hide' : 'show']();
        return this;
    },
    
    hideAndUnload: function(after) {
        this.options.unloadOnHide = true;
        this.hide(after);
        return this;
    },
    
    unload: function() {
        this._fire('beforeUnload');
        this.boxy.remove();
        if (this.options.actuator) {
            jQuery.data(this.options.actuator, 'active.boxy', false);
        }
    },
    
    // Move this dialog box above all other boxy instances
    toTop: function() {
        this.boxy.css({zIndex: Boxy._nextZ()});
        return this;
    },
    
    // Returns the title of this dialog
    getTitle: function() {
        return jQuery('> .title-bar h2', this.getInner()).html();
    },
    
    // Sets the title of this dialog
    setTitle: function(t) {
        jQuery('> .title-bar h2', this.getInner()).html(t);
        return this;
    },
    
    //
    // Don't touch these privates
    
    _getBoundsForResize: function(width, height) {
        var csize = this.getContentSize();
        var delta = [width - csize[0], height - csize[1]];
        var p = this.getPosition();
        return [Math.max(p[0] - delta[0] / 2, 0),
                Math.max(p[1] - delta[1] / 2, 0), width, height];
    },
    
    _setupTitleBar: function() {
        if (this.options.title) {
            var self = this;
            var tb = jQuery("<div class='title-bar'></div>").html("<h2>" + this.options.title + "</h2>");
            if (this.options.closeable) {
                tb.append(jQuery("<a href='#' class='close'></a>").html(this.options.closeText));
            }
            if (this.options.draggable) {
                tb[0].onselectstart = function() { return false; }
                tb[0].unselectable = 'on';
                tb[0].style.MozUserSelect = 'none';
                if (!Boxy.dragConfigured) {
                    jQuery(document).mousemove(Boxy._handleDrag);
                    Boxy.dragConfigured = true;
                }
                tb.mousedown(function(evt) {
                    self.toTop();
                    Boxy.dragging = [self, evt.pageX - self.boxy[0].offsetLeft, evt.pageY - self.boxy[0].offsetTop];
                    jQuery(this).addClass('dragging');
                }).mouseup(function() {
                    jQuery(this).removeClass('dragging');
                    Boxy.dragging = null;
                    self._fire('afterDrop');
                });
            }
            this.getInner().prepend(tb);
            this._setupDefaultBehaviours(tb);
        }
    },
    
    _setupDefaultBehaviours: function(root) {
        var self = this;
        if (this.options.clickToFront) {
            root.click(function() { self.toTop(); });
        }
        jQuery('.close', root).click(function() {
            self.hide();
            return false;
        }).mousedown(function(evt) { evt.stopPropagation(); });
    },
    
    _fire: function(event) {
        this.options[event].call(this);
    }
    
};


String.prototype.linkify = function() {
    return this.replace(/[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+/g, 
    function(m) {
        return m.link(m);
        });
};
;
/* AGGREGATED JS FILE: sites/all/modules/jquery_update/jquery.json.js */
(function($){function toIntegersAtLease(n)
{return n<10?'0'+n:n;}
Date.prototype.toJSON=function(date)
{return this.getUTCFullYear()+'-'+
toIntegersAtLease(this.getUTCMonth())+'-'+
toIntegersAtLease(this.getUTCDate());};var escapeable=/["\\\x00-\x1f\x7f-\x9f]/g;var meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'};$.quoteString=function(string)
{if(escapeable.test(string))
{return'"'+string.replace(escapeable,function(a)
{var c=meta[a];if(typeof c==='string'){return c;}
c=a.charCodeAt();return'\\u00'+Math.floor(c/16).toString(16)+(c%16).toString(16);})+'"';}
return'"'+string+'"';};$.toJSON=function(o,compact)
{var type=typeof(o);if(type=="undefined")
return"undefined";else if(type=="number"||type=="boolean")
return o+"";else if(o===null)
return"null";if(type=="string")
{return $.quoteString(o);}
if(type=="object"&&typeof o.toJSON=="function")
return o.toJSON(compact);if(type!="function"&&typeof(o.length)=="number")
{var ret=[];for(var i=0;i<o.length;i++){ret.push($.toJSON(o[i],compact));}
if(compact)
return"["+ret.join(",")+"]";else
return"["+ret.join(", ")+"]";}
if(type=="function"){throw new TypeError("Unable to convert object of type 'function' to json.");}
var ret=[];for(var k in o){var name;type=typeof(k);if(type=="number")
name='"'+k+'"';else if(type=="string")
name=$.quoteString(k);else
continue;var val=$.toJSON(o[k],compact);if(typeof(val)!="string"){continue;}
if(compact)
ret.push(name+":"+val);else
ret.push(name+": "+val);}
return"{"+ret.join(", ")+"}";};$.compactJSON=function(o)
{return $.toJSON(o,true);};$.evalJSON=function(src)
{return eval("("+src+")");};$.secureEvalJSON=function(src)
{var filtered=src;filtered=filtered.replace(/\\["\\\/bfnrtu]/g,'@');filtered=filtered.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']');filtered=filtered.replace(/(?:^|:|,)(?:\s*\[)+/g,'');if(/^[\],:{}\s]*$/.test(filtered))
return eval("("+src+")");else
throw new SyntaxError("Error parsing JSON, source is not valid.");};})(jQuery);

;
/* AGGREGATED JS FILE: sites/all/modules/jquery_update/jquery.tooltip.js */
/*
 * jQuery Tooltip plugin 1.3
 *
 * http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/
 * http://docs.jquery.com/Plugins/Tooltip
 *
 * Copyright (c) 2006 - 2008 JÃ¶rn Zaefferer
 *
 * $Id: jquery.tooltip.js 5741 2008-06-21 15:22:16Z joern.zaefferer $
 * 
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}(';(8($){j e={},9,m,B,A=$.2u.2g&&/29\\s(5\\.5|6\\.)/.1M(1H.2t),M=12;$.k={w:12,1h:{Z:25,r:12,1d:19,X:"",G:15,E:15,16:"k"},2s:8(){$.k.w=!$.k.w}};$.N.1v({k:8(a){a=$.1v({},$.k.1h,a);1q(a);g 2.F(8(){$.1j(2,"k",a);2.11=e.3.n("1g");2.13=2.m;$(2).24("m");2.22=""}).21(1e).1U(q).1S(q)},H:A?8(){g 2.F(8(){j b=$(2).n(\'Y\');4(b.1J(/^o\\(["\']?(.*\\.1I)["\']?\\)$/i)){b=1F.$1;$(2).n({\'Y\':\'1D\',\'1B\':"2r:2q.2m.2l(2j=19, 2i=2h, 1p=\'"+b+"\')"}).F(8(){j a=$(2).n(\'1o\');4(a!=\'2f\'&&a!=\'1u\')$(2).n(\'1o\',\'1u\')})}})}:8(){g 2},1l:A?8(){g 2.F(8(){$(2).n({\'1B\':\'\',Y:\'\'})})}:8(){g 2},1x:8(){g 2.F(8(){$(2)[$(2).D()?"l":"q"]()})},o:8(){g 2.1k(\'28\')||2.1k(\'1p\')}});8 1q(a){4(e.3)g;e.3=$(\'<t 16="\'+a.16+\'"><10></10><t 1i="f"></t><t 1i="o"></t></t>\').27(K.f).q();4($.N.L)e.3.L();e.m=$(\'10\',e.3);e.f=$(\'t.f\',e.3);e.o=$(\'t.o\',e.3)}8 7(a){g $.1j(a,"k")}8 1f(a){4(7(2).Z)B=26(l,7(2).Z);p l();M=!!7(2).M;$(K.f).23(\'W\',u);u(a)}8 1e(){4($.k.w||2==9||(!2.13&&!7(2).U))g;9=2;m=2.13;4(7(2).U){e.m.q();j a=7(2).U.1Z(2);4(a.1Y||a.1V){e.f.1c().T(a)}p{e.f.D(a)}e.f.l()}p 4(7(2).18){j b=m.1T(7(2).18);e.m.D(b.1R()).l();e.f.1c();1Q(j i=0,R;(R=b[i]);i++){4(i>0)e.f.T("<1P/>");e.f.T(R)}e.f.1x()}p{e.m.D(m).l();e.f.q()}4(7(2).1d&&$(2).o())e.o.D($(2).o().1O(\'1N://\',\'\')).l();p e.o.q();e.3.P(7(2).X);4(7(2).H)e.3.H();1f.1L(2,1K)}8 l(){B=S;4((!A||!$.N.L)&&7(9).r){4(e.3.I(":17"))e.3.Q().l().O(7(9).r,9.11);p e.3.I(\':1a\')?e.3.O(7(9).r,9.11):e.3.1G(7(9).r)}p{e.3.l()}u()}8 u(c){4($.k.w)g;4(c&&c.1W.1X=="1E"){g}4(!M&&e.3.I(":1a")){$(K.f).1b(\'W\',u)}4(9==S){$(K.f).1b(\'W\',u);g}e.3.V("z-14").V("z-1A");j b=e.3[0].1z;j a=e.3[0].1y;4(c){b=c.2o+7(9).E;a=c.2n+7(9).G;j d=\'1w\';4(7(9).2k){d=$(C).1r()-b;b=\'1w\'}e.3.n({E:b,14:d,G:a})}j v=z(),h=e.3[0];4(v.x+v.1s<h.1z+h.1n){b-=h.1n+20+7(9).E;e.3.n({E:b+\'1C\'}).P("z-14")}4(v.y+v.1t<h.1y+h.1m){a-=h.1m+20+7(9).G;e.3.n({G:a+\'1C\'}).P("z-1A")}}8 z(){g{x:$(C).2e(),y:$(C).2d(),1s:$(C).1r(),1t:$(C).2p()}}8 q(a){4($.k.w)g;4(B)2c(B);9=S;j b=7(2);8 J(){e.3.V(b.X).q().n("1g","")}4((!A||!$.N.L)&&b.r){4(e.3.I(\':17\'))e.3.Q().O(b.r,0,J);p e.3.Q().2b(b.r,J)}p J();4(7(2).H)e.3.1l()}})(2a);',62,155,'||this|parent|if|||settings|function|current||||||body|return|||var|tooltip|show|title|css|url|else|hide|fade||div|update||blocked|||viewport|IE|tID|window|html|left|each|top|fixPNG|is|complete|document|bgiframe|track|fn|fadeTo|addClass|stop|part|null|append|bodyHandler|removeClass|mousemove|extraClass|backgroundImage|delay|h3|tOpacity|false|tooltipText|right||id|animated|showBody|true|visible|unbind|empty|showURL|save|handle|opacity|defaults|class|data|attr|unfixPNG|offsetHeight|offsetWidth|position|src|createHelper|width|cx|cy|relative|extend|auto|hideWhenEmpty|offsetTop|offsetLeft|bottom|filter|px|none|OPTION|RegExp|fadeIn|navigator|png|match|arguments|apply|test|http|replace|br|for|shift|click|split|mouseout|jquery|target|tagName|nodeType|call||mouseover|alt|bind|removeAttr|200|setTimeout|appendTo|href|MSIE|jQuery|fadeOut|clearTimeout|scrollTop|scrollLeft|absolute|msie|crop|sizingMethod|enabled|positionLeft|AlphaImageLoader|Microsoft|pageY|pageX|height|DXImageTransform|progid|block|userAgent|browser'.split('|'),0,{}))

/* Copyright (c) 2007 Paul Bakaus (paul.bakaus@googlemail.com) and Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 *
 * $LastChangedDate: 2007-12-20 08:43:48 -0600 (Thu, 20 Dec 2007) $
 * $Rev: 4257 $
 *
 * Version: 1.2
 *
 * Requires: jQuery 1.2+
 */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(5($){$.19={P:\'1.2\'};$.u([\'j\',\'w\'],5(i,d){$.q[\'O\'+d]=5(){p(!3[0])6;g a=d==\'j\'?\'s\':\'m\',e=d==\'j\'?\'D\':\'C\';6 3.B(\':y\')?3[0][\'L\'+d]:4(3,d.x())+4(3,\'n\'+a)+4(3,\'n\'+e)};$.q[\'I\'+d]=5(b){p(!3[0])6;g c=d==\'j\'?\'s\':\'m\',e=d==\'j\'?\'D\':\'C\';b=$.F({t:Z},b||{});g a=3.B(\':y\')?3[0][\'8\'+d]:4(3,d.x())+4(3,\'E\'+c+\'w\')+4(3,\'E\'+e+\'w\')+4(3,\'n\'+c)+4(3,\'n\'+e);6 a+(b.t?(4(3,\'t\'+c)+4(3,\'t\'+e)):0)}});$.u([\'m\',\'s\'],5(i,b){$.q[\'l\'+b]=5(a){p(!3[0])6;6 a!=W?3.u(5(){3==h||3==r?h.V(b==\'m\'?a:$(h)[\'U\'](),b==\'s\'?a:$(h)[\'T\']()):3[\'l\'+b]=a}):3[0]==h||3[0]==r?S[(b==\'m\'?\'R\':\'Q\')]||$.N&&r.M[\'l\'+b]||r.A[\'l\'+b]:3[0][\'l\'+b]}});$.q.F({z:5(){g a=0,f=0,o=3[0],8,9,7,v;p(o){7=3.7();8=3.8();9=7.8();8.f-=4(o,\'K\');8.k-=4(o,\'J\');9.f+=4(7,\'H\');9.k+=4(7,\'Y\');v={f:8.f-9.f,k:8.k-9.k}}6 v},7:5(){g a=3[0].7;G(a&&(!/^A|10$/i.16(a.15)&&$.14(a,\'z\')==\'13\'))a=a.7;6 $(a)}});5 4(a,b){6 12($.11(a.17?a[0]:a,b,18))||0}})(X);',62,72,'|||this|num|function|return|offsetParent|offset|parentOffset|||||borr|top|var|window||Height|left|scroll|Left|padding|elem|if|fn|document|Top|margin|each|results|Width|toLowerCase|visible|position|body|is|Right|Bottom|border|extend|while|borderTopWidth|outer|marginLeft|marginTop|client|documentElement|boxModel|inner|version|pageYOffset|pageXOffset|self|scrollTop|scrollLeft|scrollTo|undefined|jQuery|borderLeftWidth|false|html|curCSS|parseInt|static|css|tagName|test|jquery|true|dimensions'.split('|'),0,{}))
/**
 * jQuery.labelify - Display in-textbox hints
 * Stuart Langridge, http://www.kryogenix.org/
 * Released into the public domain
 * Date: 25th June 2008
 * @author Stuart Langridge
 * @version 1.3
 *
 *
 * Basic calling syntax: $("input").labelify();
 * Defaults to taking the in-field label from the field's title attribute
 *
 * You can also pass an options object with the following keys:
 *   text
 *     "title" to get the in-field label from the field's title attribute 
 *      (this is the default)
 *     "label" to get the in-field label from the inner text of the field's label
 *      (note that the label must be attached to the field with for="fieldid")
 *     a function which takes one parameter, the input field, and returns
 *      whatever text it likes
 *
 *   labelledClass
 *     a class that will be applied to the input field when it contains the
 *      label and removed when it contains user input. Defaults to blank.
 *  
 */
jQuery.fn.labelify = function(settings) {
  settings = jQuery.extend({
    text: "title",
    labelledClass: ""
  }, settings);
  var lookups = {
    title: function(input) {
      return $(input).attr("title");
    },
    label: function(input) {
      return $("label[for=" + input.id +"]").text();
    }
  };
  var lookup;
  var jQuery_labellified_elements = $(this);
  return $(this).each(function() {
    if (typeof settings.text === "string") {
      lookup = lookups[settings.text]; // what if not there?
    } else {
      lookup = settings.text; // what if not a fn?
    };
    // bail if lookup isn't a function or if it returns undefined
    if (typeof lookup !== "function") { return; }
    var lookupval = lookup(this);
    if (!lookupval) { return; }

    // need to strip newlines because the browser strips them
    // if you set textbox.value to a string containing them    
    $(this).data("label",lookup(this).replace(/\n/g,''));
    $(this).focus(function() {
      if (this.value === $(this).data("label")) {
        this.value = this.defaultValue;
        $(this).removeClass(settings.labelledClass);
      }
    }).blur(function(){
      if (this.value === this.defaultValue) {
        this.value = $(this).data("label");
        $(this).addClass(settings.labelledClass);
      }
    });
    
    var removeValuesOnExit = function() {
      jQuery_labellified_elements.each(function(){
        if (this.value === $(this).data("label")) {
          this.value = this.defaultValue;
          $(this).removeClass(settings.labelledClass);
        }
      })
    };
    
    $(this).parents("form").submit(removeValuesOnExit);
    $(window).unload(removeValuesOnExit);
    
    if (this.value !== this.defaultValue) {
      // user already started typing; don't overwrite their work!
      return;
    }
    // actually set the value
    this.value = $(this).data("label");
    $(this).addClass(settings.labelledClass);

  });
};


;
/* AGGREGATED JS FILE: sites/all/modules/jquery_update/jquery.limit.js */
(function($){$.fn.extend({limit:function(limit,element){var interval,f;var self=$(this);$(this).focus(function(){interval=window.setInterval(substring,100)});$(this).blur(function(){clearInterval(interval);substring()});substringFunction="function substring(){ var val = $(self).val();var length = val.length;if(length > limit){$(self).val($(self).val().substring(0,limit));}";if(typeof element!='undefined')substringFunction+="if($(element).html() != limit-length){$(element).html((limit-length<=0)?'0':limit-length);}";substringFunction+="}";eval(substringFunction);substring()}})})(jQuery);
;
/* AGGREGATED JS FILE: sites/all/modules/jquery_update/jquery.upload.js */
/*
Copyright (c) 2009 Ronnie Garcia, Travis Nickels

This file is part of Uploadify v1.6.2

Permission is hereby granted, free of charge, to any person obtaining a copy
of Uploadify and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

UPLOADIFY IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/

var flashVer=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var swVer2=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var flashDescription=navigator.plugins["Shockwave Flash"+swVer2].description;var descArray=flashDescription.split(" ");var tempArrayMajor=descArray[2].split(".");var versionMajor=tempArrayMajor[0];var versionMinor=tempArrayMajor[1];var versionRevision=descArray[3];if(versionRevision==""){versionRevision=descArray[4]}if(versionRevision[0]=="d"){versionRevision=versionRevision.substring(1)}else{if(versionRevision[0]=="r"){ersionRevision=versionRevision.substring(1);if(versionRevision.indexOf("d")>0){versionRevision=versionRevision.substring(0,versionRevision.indexOf("d"))}}}var flashVer=versionMajor+"."+versionMinor+"."+versionRevision}}else{if($.browser.msie){var version;var axo;var e;try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");version=axo.GetVariable("$version")}catch(e){}flashVer=version.replace("WIN ","").replace(",",".")}}flashVer=flashVer.split(".")[0];if(jQuery){(function(a){a.extend(a.fn,{fileUpload:function(b){if(flashVer>=9){a(this).each(function(){settings=a.extend({uploader:"uploader.swf",script:"uploader.php",folder:"",height:30,width:110,cancelImg:"cancel.png",wmode:"opaque",scriptAccess:"sameDomain",fileDataName:"Filedata",displayData:"percentage",onInit:function(){},onSelect:function(){},onCheck:function(){},onCancel:function(){},onError:function(){},onProgress:function(){},onComplete:function(){}},b);var d=location.pathname;d=d.split("/");d.pop();d=d.join("/")+"/";var f="&pagepath="+d;if(settings.buttonImg){f+="&buttonImg="+escape(settings.buttonImg)}if(settings.buttonText){f+="&buttonText="+escape(settings.buttonText)}if(settings.rollover){f+="&rollover=true"}f+="&script="+settings.script;f+="&folder="+escape(settings.folder);if(settings.scriptData){var g="";for(var c in settings.scriptData){g+="&"+c+"="+settings.scriptData[c]}f+="&scriptData="+escape(g)}f+="&btnWidth="+settings.width;f+="&btnHeight="+settings.height;f+="&wmode="+settings.wmode;if(settings.hideButton){f+="&hideButton=true"}if(settings.fileDesc){f+="&fileDesc="+settings.fileDesc+"&fileExt="+settings.fileExt}if(settings.multi){f+="&multi=true"}if(settings.auto){f+="&auto=true"}if(settings.sizeLimit){f+="&sizeLimit="+settings.sizeLimit}if(settings.simUploadLimit){f+="&simUploadLimit="+settings.simUploadLimit}if(settings.checkScript){f+="&checkScript="+settings.checkScript}if(settings.fileDataName){f+="&fileDataName="+settings.fileDataName}if(a.browser.msie){flashElement='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+settings.width+'" height="'+settings.height+'" id="'+a(this).attr("id")+'Uploader" class="fileUploaderBtn"><param name="movie" value="'+settings.uploader+"?fileUploadID="+a(this).attr("id")+f+'" /><param name="quality" value="high" /><param name="wmode" value="'+settings.wmode+'" /><param name="allowScriptAccess" value="'+settings.scriptAccess+'"><param name="swfversion" value="9.0.0.0" /></object>'}else{flashElement='<embed src="'+settings.uploader+"?fileUploadID="+a(this).attr("id")+f+'" quality="high" width="'+settings.width+'" height="'+settings.height+'" id="'+a(this).attr("id")+'Uploader" class="fileUploaderBtn" name="'+a(this).attr("id")+'Uploader" allowScriptAccess="'+settings.scriptAccess+'" wmode="'+settings.wmode+'" type="application/x-shockwave-flash" />'}if(settings.onInit()!==false){a(this).css("display","none");if(a.browser.msie){a(this).after('<div id="'+a(this).attr("id")+'Uploader"></div>');document.getElementById(a(this).attr("id")+"Uploader").outerHTML=flashElement}else{a(this).after(flashElement)}a("#"+a(this).attr("id")+"Uploader").after('<div id="'+a(this).attr("id")+'Queue" class="fileUploadQueue"></div>')}a(this).bind("rfuSelect",{action:settings.onSelect},function(j,h,i){if(j.data.action(j,h,i)!==false){var k=Math.round(i.size/1024*100)*0.01;var l="KB";if(k>1000){k=Math.round(k*0.001*100)*0.01;l="MB"}var m=k.toString().split(".");if(m.length>1){k=m[0]+"."+m[1].substr(0,2)}else{k=m[0]}if(i.name.length>20){fileName=i.name.substr(0,20)+"..."}else{fileName=i.name}a("#"+a(this).attr("id")+"Queue").append('<div id="'+a(this).attr("id")+h+'" class="fileUploadQueueItem"><div class="cancel"><a href="javascript:$(\'#'+a(this).attr("id")+"').fileUploadCancel('"+h+'\')"><img src="'+settings.cancelImg+'" border="0" /></a></div><span class="fileName">'+fileName+" ("+k+l+')</span><span class="percentage">&nbsp;</span><div class="fileUploadProgress" style="width: 100%;"><div id="'+a(this).attr("id")+h+'ProgressBar" class="fileUploadProgressBar" style="width: 1px; height: 3px;"></div></div></div>')}});if(typeof(settings.onSelectOnce)=="function"){a(this).bind("rfuSelectOnce",settings.onSelectOnce)}a(this).bind("rfuCheckExist",{action:settings.onCheck},function(m,l,j,k,o){var i=new Object();i.folder=d+k;for(var h in j){i[h]=j[h];if(o){var n=h}}a.post(l,i,function(r){for(var p in r){if(m.data.action(m,l,j,k,o)!==false){var q=confirm("Do you want to replace the file '"+r[p]+"'?");if(!q){document.getElementById(a(m.target).attr("id")+"Uploader").cancelFileUpload(p)}}}if(o){document.getElementById(a(m.target).attr("id")+"Uploader").startFileUpload(n,true)}else{document.getElementById(a(m.target).attr("id")+"Uploader").startFileUpload(null,true)}},"json")});a(this).bind("rfuCancel",{action:settings.onCancel},function(j,h,i,k){if(j.data.action(j,h,i,k)!==false){a("#"+a(this).attr("id")+h).fadeOut(250,function(){a("#"+a(this).attr("id")+h).remove()})}});a(this).bind("rfuClearQueue",{action:settings.onClearQueue},function(){if(event.data.action()!==false){a("#"+a(this).attr("id")+"Queue").contents().fadeOut(250,function(){a("#"+a(this).attr("id")+"Queue").empty()})}});a(this).bind("rfuError",{action:settings.onError},function(k,h,j,i){if(k.data.action(k,h,j,i)!==false){a("#"+a(this).attr("id")+h+" .fileName").text(i.type+" Error - "+j.name);a("#"+a(this).attr("id")+h).css({border:"3px solid #FBCBBC","background-color":"#FDE5DD"})}});a(this).bind("rfuProgress",{action:settings.onProgress,toDisplay:settings.displayData},function(j,h,i,k){if(j.data.action(j,h,i,k)!==false){a("#"+a(this).attr("id")+h+"ProgressBar").css("width",k.percentage+"%");if(j.data.toDisplay=="percentage"){displayData=" - "+k.percentage+"%"}if(j.data.toDisplay=="speed"){displayData=" - "+k.speed+"KB/s"}if(j.data.toDisplay==null){displayData=" "}a("#"+a(this).attr("id")+h+" .percentage").text(displayData)}});a(this).bind("rfuComplete",{action:settings.onComplete},function(k,h,j,i,l){if(k.data.action(k,h,j,unescape(i),l)!==false){a("#"+a(this).attr("id")+h).fadeOut(250,function(){a("#"+a(this).attr("id")+h).remove()});a("#"+a(this).attr("id")+h+" .percentage").text(" - Completed")}});if(typeof(settings.onAllComplete)=="function"){a(this).bind("rfuAllComplete",settings.onAllComplete)}})}},fileUploadSettings:function(b,c){a(this).each(function(){document.getElementById(a(this).attr("id")+"Uploader").updateSettings(b,c)})},fileUploadStart:function(b){a(this).each(function(){document.getElementById(a(this).attr("id")+"Uploader").startFileUpload(b,false)})},fileUploadCancel:function(b){a(this).each(function(){document.getElementById(a(this).attr("id")+"Uploader").cancelFileUpload(b)})},fileUploadClearQueue:function(){a(this).each(function(){document.getElementById(a(this).attr("id")+"Uploader").clearFileUploadQueue()})}})})(jQuery)};
;
/* AGGREGATED JS FILE: sites/all/modules/jquery_update/jquery.combobox.js */
/* 
 * vim: noexpandtab 
 */

/**
 * JQuery UI combobox plugin.  This may be called on any element; the element
 * is replaced by a text field and drop-down div.  If the replaced element was
 * a select, the combobox options can be picked up from the contents of the
 * select.  Otherwise, the 'data' option must be provided to specify choice.
 *
 * Method names in documentation are relative to the JQuery UI infrastructure,
 * i.e. the method call is always 'combobox', and then the method name is
 * passed as the first (string) argument.
 *
 * @fileoverview
 * @author Jonathan Tang
 * @dependency jquery-1.2.6.js
 * @dependency ui.core.js
 * @version 1.0.1
 */
;(function($) {
    
var KEY_UP = 38,
    KEY_DOWN = 40,
    KEY_ENTER = 13,
    KEY_ESC = 27,
    KEY_F4 = 115;

$.widget('ui.combobox', {

    /**
     * Main JQuery method.  Call $(selector).combobox(options) on any element,
     * or collection of elements, to turn them into a combobox.
     * 
     * All event handlers take 2 arguments: the original browser event, and an
     * object with the following fields:<ul> 
     * <li>value: the current value of the input field</li>
     * <li>index: the index within the option list of the presently-selected
     * value, or -1 if directly inputted.</li>
     * <li>isCustom: true if the user has typed in an option not on the list</li>
     * <li>inputElement: JQuery object containing the input field</li>
     * <li>listElement: JQuery object containing the drop-down list</li>
     * </ul>
     * @function combobox
     * @param {Object} options Options hash
     * @option {Array<String>} data List of options for the combobox
     * 
     * @option {Boolean} autoShow If true (the default), then display the
     * drop-down whenever the input field receives focus.  Otherwise, the 
     * user must explicitly click the drop-down icon to show the list.
     * 
     * @option {Boolean} matchMiddle If true (the default), then the combobox
     * tries to match the typed text with any portion of any of the 
     * options, instead of just the beginning.
     * 
     * @option {Function(e, ui)} key Event handler called whenever a key is
     * pressed in the input box.
     * 
     * @option {Function(e, ui)} change Event handler called whenever a new
     * option is selected on the drop-down list (eg. down/up arrows, typing in 
     * the input field).
     * 
     * @option {Function(e, ui)} select Event handler called when a selection
     * is finished (enter pressed or input field loses focus)
     * 
     * @option {String} arrowUrl URL of the image used for the drop-down arrow.
     * Used only by the default arrowHTML function; if you override 
     * that, you don't need to supply this.  Defaults to "drop_down.png"
     * 
     * @option {Function()} arrowHTML Function that should return the HTML of
     * the element used to display the drop-down.  Defaults to an image tag.
     *
     * @option {String} listContainerTag Tag to hold the drop-down list element.
     *
     * @option {Function(String, Int)} listHTML Function that takes the option
     * datum and index within the list and returns an HTML fragment for each
     * option.  Default is a span of class ui-combobox-item.
     */
    init: function() {
        var that = this;
        var options = this.options;
        var inputElem = $('<input type = "text" />');

        if(this.element[0].tagName.toLowerCase() == 'select') {
            fillDataFromSelect(options, this.element);
        }

        function closeListOnDocumentClick() {
            that.hideList();
            $(document).unbind('click', closeListOnDocumentClick);
        };

        this.arrowElem = $(this.options.arrowHTML.call(this))
            .click(function(e) {
                if(that.isListVisible()) {
                    that.hideList();
                } else {
                    that.showList();
                    $(document).click(closeListOnDocumentClick);
                }
                return false;
            }); 

        function maybeCopyAttr(name, elem) {
            var val = that.element.attr(name);
            if(val) {
                if(name == 'class') {
                    elem.addClass(val);
                } else {
                    elem.attr(name, val);
                }
            }
        };

        maybeCopyAttr('class', inputElem);
        maybeCopyAttr('name', inputElem);
        maybeCopyAttr('title', inputElem);
        maybeCopyAttr('dir', inputElem);
        maybeCopyAttr('lang', inputElem);
        maybeCopyAttr('xml:lang', inputElem);

        maybeCopyAttr('size', inputElem);
        maybeCopyAttr('value', inputElem);

        // Maxlength comes back -1 if unset, which causes problems when set
        if(this.element.attr('maxlength') != -1) {
            inputElem.attr('maxlength', this.element.attr('maxlength'));
        }

        this.oldElem = this.element
            .unbind('getData.combobox')
            .unbind('setData.combobox')
            .unbind('remove')
            .after(this.arrowElem)
            .after(inputElem)
            .remove();
        this.listElem = this.buildList().insertAfter(this.arrowElem).hide();

        // ID copied afterwards so we never have two elements with the same
        // ID in the DOM.
        maybeCopyAttr('id', inputElem);
        maybeCopyAttr('class', this.listElem);
        maybeCopyAttr('class', this.arrowElem);

        this.element = inputElem
            .keyup(function(e) {
                if(e.which == KEY_F4) { 
                    that.showList(e);
                }
            })
            .change(boundCallback(this, 'fireEvent', 'select'));

        if(options.autoShow) {
            this.element
                .focus(boundCallback(this, 'showList'))
                .blur(function(e) {
                    that.finishSelection(that.selectedIndex, e);
                    that.hideList();
                });
        }

    },

    _init: function() {
        // JQuery UI 1.6rc6 compatibility
        this.init.apply(this, arguments);
    },

    cleanup: function() {
        // Cleanup and destroy are split into two separate handlers because
        // one of them (cleanup, in this case) needs to be bound to the
        // 'remove' event handler to clean up the extra elements.  The
        // destroy handler removes the custom input element added by this
        // plugin, and so we get an infinite loop if they aren't split.
        if(this.boundKeyHandler) {
            $(document).unbind('keyup', this.boundKeyHandler);
        }
        this.arrowElem.remove();
        this.listElem.remove();
    },

    /**
     * Remove all combobox functionality from this element, restoring the
     * original element.
     */
    destroy: function() {
        var newElem = this.element;
        this.element = this.oldElem.insertBefore(this.arrowElem);
        newElem.remove();    // Triggers cleanup
    },

    /**
     * Dynamically changes one of the combobox options.
     * 
     * @param {String} key Option name.
     * @param {Object} value New value.
     */
    setData: function(key, value) {
        this.options[key] = value;

        if(key == 'disabled' && this.isListVisible()) {
            this.hideList();
        }

        if(key == 'data' || key == 'listContainerTag' || key == 'listHTML') {
            var isVisible = this.isListVisible();
            this.listElem = this.buildList().replaceAll(this.listElem);
            this[isVisible ? 'showList' : 'hideList']();
        }
    },

    buildList: function() {
        var that = this;
        var options = this.options;
        var tag = options.listContainerTag;
        var elem = $('<' + tag + ' class = "ui-combobox-list">' + '</' + tag + '>');

        $.each(options.data, function(i, val) {
            $(options.listHTML(val, i))
                .appendTo(elem)
                .click(boundCallback(that, 'finishSelection', i))
                .mouseover(boundCallback(that, 'changeSelection', i));
        });
        return elem;
    },

    isListVisible: function() {
        return this.listElem.is(':visible');
    },

    /**
     * Programmatically shows the drop-down list.
     * 
     * @param {Event} e Original event triggering this.
     */
    showList: function(e) {
        if(this.options.disabled) {
            return;
        }

        var styles = this.element.position();
        // TODO: account for borders/margins.  Hardcode as '5' for now
        styles.top += this.element.height() + 5;
        styles.width = this.element.width();
        styles.position = 'absolute';

        this.boundKeyHandler = boundCallback(this, 'keyHandler');
        $(document).keyup(this.boundKeyHandler);
        $('.ui-combobox-list').hide();
        this.listElem.css(styles).show();
        this.changeSelection(this.findSelection(), e);
    },

    /**
     * Programmatically hide the drop-down list.
     */
    hideList: function() {
        this.listElem.hide();
        $(document).unbind('keyup', this.boundKeyHandler);
    },

    keyHandler: function(e) {
        if(this.options.disabled) {
            return;
        }

        var optionLength = this.options.data.length;
        switch(e.which) {
            case KEY_ESC:
                this.hideList(); 
                break;
            case KEY_UP:
                // JavaScript modulus apparently doesn't handle negatives
                var newIndex = this.selectedIndex - 1;
                if(newIndex < 0) {
                    newIndex = optionLength - 1;
                }
                this.changeSelection(newIndex, e);
                break;
            case KEY_DOWN:
                this.changeSelection((this.selectedIndex + 1) % optionLength, e);
                break;
            case KEY_ENTER:
                this.finishSelection(this.selectedIndex, e);
                break;
            default:
                this.fireEvent('key', e);
                this.changeSelection(this.findSelection());
                break;
        }
    },

    prepareCallbackObj: function(val) {
        val = val || this.element.val();
        var index = $.inArray(val, this.options.data);
        return {
            value: val,
            index: index,
            isCustom: index == -1,
            inputElement: this.element,
            listElement: this.listElement
        };
    },

    fireEvent: function(eventName, e, val) {
        this.element.triggerHandler('combobox' + eventName, [
            e,
            this.prepareCallbackObj(val)
        ], this.options[eventName]);
    },

    findSelection: function() {
        var data = this.options.data;
        var typed = this.element.val().toLowerCase();

        for(var i = 0, len = data.length; i < len; ++i) {
            var index = data[i].toLowerCase().indexOf(typed);
            if(index == 0) {
                return i;
            }
        };

        if(this.options.matchMiddle) {
            for(var i = 0, len = data.length; i < len; ++i) {
                var index = data[i].toLowerCase().indexOf(typed);
                if(index != -1) {
                    return i;
                }
            };
        }

        return 0;
    },

    changeSelection: function(index, e) {
        this.selectedIndex = index;
        this.listElem.children('.selected').removeClass('selected');
        this.listElem.children(':eq(' + index + ')').addClass('selected');
        if(e) {
            this.fireEvent('change', e, this.options.data[index]);
        }
    },

    finishSelection: function(index, e) {
        this.element.val(this.options.data[index]);
        this.hideList();
        this.fireEvent('select', e);
    }

});

$.extend($.ui.combobox, {
    getter: 'getData',
    version: '1.0.6',
    defaults: {
        data: [],
        autoShow: true,
        matchMiddle: true,
        change: function(e, ui) {},
        select: function(e, ui) {},
        key: function(e, ui) {},
        arrowURL: 'drop_down.png',
        arrowHTML: function() {
            return $('<img class = "ui-combobox-arrow" border = "0" src = "' 
                + this.options.arrowURL + '" width = "18" height = "22" />')
        },
        listContainerTag: 'span',
        listHTML: defaultListHTML
    }
});

// Hack for chainability - since the combobox modifies this.element but 'this'
// is only the UI instance, it leaves the JQuery collection itself pointing
// at stale, removed-from-DOM instances.  This hack invokes the UI-factory 
// plugin method first, then maps each instance in the JQuery collection to 
// the new element.
var oldPlugin = $.fn.combobox;
$.fn.combobox = function() {
    var results = oldPlugin.apply(this, arguments);
    if(!(results instanceof $)) {
        return results;
    }

    var needsHack = false;
    var newResults = $($.map(results, function(dom) {
        var instance = $.data(dom, 'combobox');
        if(instance && instance.element[0] != dom) {
            needsHack = true;
            var newDOM = instance.element[0];
            $.data(newDOM, 'combobox', instance);
            return newDOM;
        } else {
            return dom;
        }
    }));

    return !needsHack ? results : newResults
        .bind('setData.combobox', function(e, key, value) {
            return $.data(this, 'combobox').setData(key, value);
        })
        .bind('getData.combobox', function(e, key) {
            return $.data(this, 'combobox').getData(key);
        })
        .bind('remove', function() {
            return $.data(this, 'combobox').cleanup();
        });
};

function defaultListHTML(data, i) {
    var cls = i % 2 ? 'odd' : 'even';
    return '<span class = "ui-combobox-item ' + cls + '">' + data + '</span>';
};

function boundCallback(that, methodName) {
    var extraArgs = [].slice.call(arguments, 2);
    return function() {
        that[methodName].apply(that, extraArgs.concat([].slice.call(arguments)));
    };
};

function fillDataFromSelect(options, element) {
    var optionMap = {}, computedData = [];
    element.children().each(function(i) {
        if(this.tagName.toLowerCase() == 'option') {
            var text = $(this).text(),
                val = this.getAttribute('value') || text;
            optionMap[val] = text;
            computedData.push(val);
        }
    });

    if(!options.data.length) {
        options.data = computedData;
    }

    if(options.listHTML == defaultListHTML) {
        options.listHTML = function(data, i) {
            return defaultListHTML(optionMap[data] || data);
        };
    }
};

})(jQuery);

;
/* AGGREGATED JS FILE: sites/all/modules/quid_facebook/facebook.js */
var fb_api;
var fb_main_loaded = false;
var fb_main_verified = false;
var fb_lg_boxopened = false
var fb_lg_usingmanualemail = false;

function fb_loadConnect(callback)
{
    FB.Bootstrap.requireFeatures(["Connect","Api"],callback);
}

function fb_clearAndLogout()
{
    FB.Connect.logout();
}

function fb_test()
{
    
}

function fb_loggedOut_connectClick()
{
    fb_loadConnect(function() { 
        FB.init(FACEBOOK_API_KEY, "/xd_receiver.htm", {"ifUserNotConnected": fb_loggedOut_onNotConnected, "ifUserConnected":fb_loggedOut_onConnected}); 
        FB.Connect.requireSession();
        }
    );
}

function fb_user_reg()
{
    // Do client side validation first
    if($("#user-fb-register").validate().form())
    {
        $("#fb_reg_btn").attr('value','Please Wait...').attr('disabled','true');
        // Check the username
        var data = {};
        data.username = $("#fb_name").val();
        data.action = 'check_username';
        $.post('/fbaction',data,function(data,status)
        {
            if(data.code == 1)
            {
                $("#fbMessageBox").text(data.error).show();
                $("#fb_reg_btn").attr('value','Register').removeAttr('disabled'); 
            }
            else
                $("#fb_reg_box").html(data.regBoxHTML);
        },"json");
        
    }    
}

function fb_refreshPermissionsForm2(fromBtn)
{
    var data = new Object();
    data.action = "check_permissions";
    data.manual_email = $("#fb_email").val();
    if(fromBtn)
        data.force = "true";
    $.post('/fbaction',data,function(data,status)
    {
       fb_lg_usingmanualemail = false;
       $("#fb_reg_box").html(data.regBoxHTML);
    },"json");
}

function fb_refreshPermissionsForm(fromBtn)
{
    if(fb_lg_usingmanualemail)
    {
        var data = new Object();
        data.manual_email = $("#fb_email").val();
        // Validate it
        var isValid = $("#fb_email_form").valid();
        if(isValid)
        {
            // Now we have to check against the site to see if the e-mail address is valid
            var data2 = new Object();
            data2.action = 'check_email';
            data2.email = data.manual_email;
            $.post('/fbaction',data2,function(response,status)
            {
                
                if(response.code == 1)
                {
                    alert("Sorry, that e-mail address is already in use. Please try again.");
                    return;
                }
                else if(response.code == 3)
                {
                    alert("Sorry, invalid e-mail.");
                    return;
                }
                else
                {
                    fb_refreshPermissionsForm2(fromBtn);
                    return; 
                }
            },"json");
            
        }
        else
            return;
    }
    else
    {
        fb_refreshPermissionsForm2(fromBtn);
    }
}

function fb_askPerm(perm)
{
    FB.Connect.showPermissionDialog(perm,fb_refreshPermissionsForm); 
}

function fb_giveownemail()
{
    $("#fb_manualemail").show();
    $("#fb_permemail").hide();
    $("#fb_perm_continue").removeAttr('disabled');
    fb_lg_usingmanualemail = true;
}

function fb_cancelreg()
{
    Boxy.get("#fb_reg_box").hide();
    fb_lg_boxopened = false;
}

function fb_settings_showemail()
{
    $("#fb_mail_prompt").hide();
    $("#edit-mail").replaceWith('<input id="edit-mail" class="form-text" type="text" #description="" #title="" size="60" name="mail" maxlength="128"/>');
}

function fb_loggedOut_onNotConnected()
{
    FB.Connect.requireSession();
}

function fb_loggedOut_onConnected()
{
    if(fb_lg_boxopened)
        return;
    
    $('#fb_login_image').removeAttr('onclick').click(fb_loggedOut_onConnected);
    fb_lg_boxopened = true;
    // Make an initital request...
    var options = new Object();
    options.draggable = 'false';
    options.modal = 'true';
    options.unloadOnHide = 'true';
    var waitingBox = new Boxy('<div id="fb_reg_box" style="width:350px; height: 20px; text-align: center;"><p>Please wait...</p></div>',options);
    
    var data = new Object();
    data.action = 'login_verify';
    $.post('/fbaction',data,function(data,status)
     {
         if(data.responseCode == "101") // Existing User, forward to login page   
         { 
            $("#fb_reg_box").html("<b>Logging you in to 12seconds...</b>"); 
            window.location = window.location;
         }
         else if(data.responseCode == "102") // Non-existing user, open registration box
         {
            // Change the pop-up box to choose a username
            waitingBox.tween(400,200,function() { 
                $("#fb_reg_box").css('text-align','left').html(data.regBoxHTML);
                fb_reg_afterLoaded();
            });
            
         }
         else if(data.responseCode == "104") // Account disabled
         {
            $("#fb_reg_box").html("<b>Sorry, your account has been disabled.</b>");
            setTimeout(function() { waitingBox.hide(); window.location = window.location;},2000); 
         }
         else
         {
            $("#fb_reg_box").html("<b>Sorry, there was a problem. Please try again.</b>");
            setTimeout(function() { waitingBox.hide(); window.location = window.location;},2000);
         }
     },"json");
}

function fb_post_video_to_feed(data,oncomplete)
{
    if(!fb_main_loaded && !FB.Connect)
    {
        alert("FB Connect not loaded - loading now..."); 
        fb_main_connect(function() { fb_post_video_to_feed(data,oncomplete); }, oncomplete);
        return;
    }
    else if(!fb_main_loaded)
    {
        alert("FB loaded, but we never finished - Main not loaded - loading now...");
        FB.Connect.requireSession();
        return;
    }
    else if(fb_main_loaded && !fb_main_verified)
    {
        alert("Not Verified");
        oncomplete();
        return;
    }
    
    alert("In the body of post"); 
    var data = {}
    data.title = 'dfgdf';
    data.link = 'dfg';
    data.video = 'dfg';
    data.channellink = 'sdf';
    data.username = 'sfd';    
    
    var feed_data = {
        "title":data.title,
        "link":data.link, 
        "video":data.video,
        "channellink":data.channellink,
        "username":data.username        
        };
           
    FB.Connect.showFeedDialog(FACEBOOK_TEMPLATE_ID, feed_data, null, data.fullbody, null, FB.RequireConnect.require, oncomplete, null, data.user_message); 
}
            
function fb_initial_onConnected()
{
    // Create API Client
    
    // Set our accounts as linked in the DB
    fb_api = FB.Facebook.apiClient;
    var data = {};
    data.fbid = fb_api.get_session().uid;
    data.action = 'fbconnect_connectuser';
    $.post('/fbaction',data,function(data) {
    if(data == "ERR-DUP")
    {
        showAjaxMessage("Sorry, your Facebook account is already linked to another username on 12seconds.",'error',12000);
        fb_clearAndLogout();
        return;
    }
    else if(data == "OK")
    { 
        // Check if we need to get the status update permission (Not working, we're just always showing it)
        FB.Connect.showPermissionDialog("publish_stream");
        $(".block-quid_facebook").html("You are connected with Facebook!");
        $("#fb_settings_status").html("You are connected with Facebook!");
        fb_main_loaded = true;
    }
    else
       showAjaxMessage("Sorry, there was a problem connecting your account. Please refresh the page and try again.",'error',12000);
               
    },"text");
}

function fb_main_onConnected(callback,failure_callback)
{
   //alert("Main - Connected"); 
   fb_api = FB.Facebook.apiClient;
   fb_main_loaded = true;
   // Make sure we are connected with the CORRECT linked account.
   if(fb_api.get_session().uid != FACEBOOK_MATCHING_UID)
   {
        if(failure_callback)
            failure_callback();
            
        fb_main_verified = false;
        return;
   }
   fb_main_verified = true;
   if(callback)
    callback();
}

function fb_main_onNotConnected(cancel_callback)
{
    //alert("Main - Not Connected - Requesting Session");
    FB.Connect.requireSession(null,cancel_callback);
}

function fb_initial_connectClick()
{
    fb_loadConnect(function() { 
        FB.init(FACEBOOK_API_KEY, "/xd_receiver.htm", {"ifUserConnected":fb_initial_onConnected}); 
        FB.Connect.requireSession();
        }
    );
}

function fb_main_connect(callback,failure_callback,cancel_callback)
{
   fb_loadConnect(function() { 
        FB.init(FACEBOOK_API_KEY, "/xd_receiver.htm", {"ifUserNotConnected": function() { fb_main_onNotConnected(cancel_callback); }, "ifUserConnected":function() { fb_main_onConnected(callback,failure_callback); }, "doNotUseCachedConnectState": true});
        }
   ); 
}                      


function alphanumeric(alphane)
{
    var numaric = alphane;
    for(var j=0; j<numaric.length; j++)
        {
          var alphaa = numaric.charAt(j);
          var hh = alphaa.charCodeAt(0);
          if((hh > 47 && hh<58) || (hh > 64 && hh<91) || (hh > 96 && hh<123))
          {
          }
        else    {
             return false;
          }
        }
    return true;
}

function fb_reg_afterLoaded()
{                           
    $("#user-fb-register").attr("onsubmit","fb_user_reg(); return false;");
    jQuery.validator.addMethod("alphanumeric",alphanumeric,"Invalid Username");
    $("#user-fb-register").validate({
        rules: {
            name: { required: true, alphanumeric: true, minlength: 2 },
            tos_agree: "required"
            },
        messages: {
           name: "Please choose a valid username (no spaces, alphanumeric, at least 2 characters)" 
        },
        errorLabelContainer: "#fbMessageBox"
    });
}
;
/* AGGREGATED JS FILE: misc/build.js */
/*

This file forces a JS refresh for each build that is deployed

*/
;
/* AGGREGATED JS FILE: sites/all/modules/quid_videoreply/quid_videoreply.js */
var recorder;
var recorderLink;
var isInit = false;

function videoreply_init()
{
	recorder = document.getElementById('videoreply_recorder');
	recorderLink = document.getElementById('videoreply_recorderLink');
	isInit = true;
}

function videoreply_showRecorder()
{
	if(!isInit) videoreply_init();
	recorderLink.style.display = 'none';
	recorder.style.display = '';
	window.location.hash="replies";
}

function videpreply_hideRecorder()
{
	if(!isInit) videoreply_init();
	recorderLink.style.display = '';
	recorder.style.display = 'none';
}

function TwelveSecondsPostComplete()
{
	window.location.href = '/api/reply/redirect' + window.location.pathname;
	return;
}
;
/* AGGREGATED JS FILE: sites/all/modules/twitter/twitter_connect.js */
function clickTwitterConnect()
{
    // Make an API call to get an oAuth link
    var sPage = window.location.pathname;
    var data = {};
    data.action = 'getauthlink';
    data.destination = sPage;
    var options = new Object();
    options.draggable = 'false';
    options.modal = 'true';
    options.unloadOnHide = 'true'
    var waitingBox = new Boxy('<div id="tw_reg_box" style="width:350px; height: 20px; text-align: center;"><p>Please wait while we connect with Twitter...</p></div>',options); 
    $.post('/twaction',data,function(response,status) {
     if(response.status == "OK")
        window.location  = response.link;
    },"json");
}
;
/* AGGREGATED JS FILE: sites/all/modules/jquery_update/collapse-fix.js */
// $Id: collapse-fix.js,v 1.1 2007/04/26 15:14:38 jjeff Exp $
// redefining toggleFieldset for compatibility with later versions of JQuery
Drupal.toggleFieldset = function(fieldset) {
  if ($(fieldset).is('.collapsed')) {
    var content = $('> div', fieldset).hide();
    $(fieldset).removeClass('collapsed');
    content.slideDown( {
    duration: 300, // THE FIX
      complete: function() {
        // Make sure we open to height auto
        $(this).css('height', 'auto');
        Drupal.collapseScrollIntoView(this.parentNode);
        this.parentNode.animating = false;
      },
      step: function() {
         // Scroll the fieldset into view
        Drupal.collapseScrollIntoView(this.parentNode);
      }
    });
    if (typeof Drupal.textareaAttach != 'undefined') {
      // Initialize resizable textareas that are now revealed
      Drupal.textareaAttach(null, fieldset);
    }
  }
  else {
    var content = $('> div', fieldset).slideUp('medium', function() {
      $(this.parentNode).addClass('collapsed');
      this.parentNode.animating = false;
    });
  }
}
;
/* AGGREGATED JS FILE: sites/all/themes/cleanslate/scripts/search-utils.js */
$.fn.search = function() {
	return this.focus(function() {
		if( this.value == this.defaultValue ) {
			this.value = "";
		}
	}).blur(function() {
		if( !this.value.length ) {
			this.value = this.defaultValue;
		}
	});
};

$(document).ready(function() {
	// Add this function to these boxes when the DOM is ready.
	$('#edit-query').search();
});

