/*
 * jQuery JavaScript Library v1.3.2
 * http://jquery.com/
 *
 * Copyright (c) 2009 John Resig
 * Dual licensed under the MIT and GPL licenses.
 * http://docs.jquery.com/License
 *
 * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
 * Revision: 6246
 */
(function(){var m=this,g,z=m.jQuery,q=m.$,p=m.jQuery=m.$=function(F,G){return new p.fn.init(F,G)},E=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;p.fn=p.prototype={init:function(F,I){F=F||document;if(F.nodeType){this[0]=F;this.length=1;this.context=F;return this}if(typeof F==="string"){var H=E.exec(F);if(H&&(H[1]||!I)){if(H[1]){F=p.clean([H[1]],I)}else{var J=document.getElementById(H[3]);if(J&&J.id!=H[3]){return p().find(F)}var G=p(J||[]);G.context=document;G.selector=F;return G}}else{return p(I).find(F)}}else{if(p.isFunction(F)){return p(document).ready(F)}}if(F.selector&&F.context){this.selector=F.selector;this.context=F.context}return this.setArray(p.isArray(F)?F:p.makeArray(F))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(F){return F===g?Array.prototype.slice.call(this):this[F]},pushStack:function(G,I,F){var H=p(G);H.prevObject=this;H.context=this.context;if(I==="find"){H.selector=this.selector+(this.selector?" ":"")+F}else{if(I){H.selector=this.selector+"."+I+"("+F+")"}}return H},setArray:function(F){this.length=0;Array.prototype.push.apply(this,F);return this},each:function(G,F){return p.each(this,G,F)},index:function(F){return p.inArray(F&&F.jquery?F[0]:F,this)},attr:function(G,I,H){var F=G;if(typeof G==="string"){if(I===g){return this[0]&&p[H||"attr"](this[0],G)}else{F={};F[G]=I}}return this.each(function(J){for(G in F){p.attr(H?this.style:this,G,p.prop(this,F[G],H,J,G))}})},css:function(F,G){if((F=="width"||F=="height")&&parseFloat(G)<0){G=g}return this.attr(F,G,"curCSS")},text:function(G){if(typeof G!=="object"&&G!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(G))}var F="";p.each(G||this,function(){p.each(this.childNodes,function(){if(this.nodeType!=8){F+=this.nodeType!=1?this.nodeValue:p.fn.text([this])}})});return F},wrapAll:function(F){if(this[0]){var G=p(F,this[0].ownerDocument).clone();if(this[0].parentNode){G.insertBefore(this[0])}G.map(function(){var H=this;while(H.firstChild){H=H.firstChild}return H}).append(this)}return this},wrapInner:function(F){return this.each(function(){p(this).contents().wrapAll(F)})},wrap:function(F){return this.each(function(){p(this).wrapAll(F)})},append:function(){return this.domManip(arguments,true,function(F){if(this.nodeType==1){this.appendChild(F)}})},prepend:function(){return this.domManip(arguments,true,function(F){if(this.nodeType==1){this.insertBefore(F,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(F){this.parentNode.insertBefore(F,this)})},after:function(){return this.domManip(arguments,false,function(F){this.parentNode.insertBefore(F,this.nextSibling)})},end:function(){return this.prevObject||p([])},push:[].push,sort:[].sort,splice:[].splice,find:function(F){if(this.length===1){var G=this.pushStack([],"find",F);G.length=0;p.find(F,this[0],G);return G}else{return this.pushStack(p.unique(p.map(this,function(H){return p.find(F,H)})),"find",F)}},clone:function(H){var F=this.map(function(){if(!p.support.noCloneEvent&&!p.isXMLDoc(this)){var J=this.outerHTML;if(!J){var K=this.ownerDocument.createElement("div");K.appendChild(this.cloneNode(true));J=K.innerHTML}return p.clean([J.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(H===true){var I=this.find("*").andSelf(),G=0;F.find("*").andSelf().each(function(){if(this.nodeName!==I[G].nodeName){return}var J=p.data(I[G],"events");for(var L in J){for(var K in J[L]){p.event.add(this,L,J[L][K],J[L][K].data)}}G++})}return F},filter:function(F){return this.pushStack(p.isFunction(F)&&p.grep(this,function(H,G){return F.call(H,G)})||p.multiFilter(F,p.grep(this,function(G){return G.nodeType===1})),"filter",F)},closest:function(F){var H=p.expr.match.POS.test(F)?p(F):null,G=0;return this.map(function(){var I=this;while(I&&I.ownerDocument){if(H?H.index(I)>-1:p(I).is(F)){p.data(I,"closest",G);return I}I=I.parentNode;G++}})},not:function(F){if(typeof F==="string"){if(f.test(F)){return this.pushStack(p.multiFilter(F,this,true),"not",F)}else{F=p.multiFilter(F,this)}}var G=F.length&&F[F.length-1]!==g&&!F.nodeType;return this.filter(function(){return G?p.inArray(this,F)<0:this!=F})},add:function(F){return this.pushStack(p.unique(p.merge(this.get(),typeof F==="string"?p(F):p.makeArray(F))))},is:function(F){return !!F&&p.multiFilter(F,this).length>0},hasClass:function(F){return !!F&&this.is("."+F)},val:function(L){if(L===g){var F=this[0];if(F){if(p.nodeName(F,"option")){return(F.attributes.value||{}).specified?F.value:F.text}if(p.nodeName(F,"select")){var J=F.selectedIndex,M=[],N=F.options,I=F.type=="select-one";if(J<0){return null}for(var G=I?J:0,K=I?J+1:N.length;G<K;G++){var H=N[G];if(H.selected){L=p(H).val();if(I){return L}M.push(L)}}return M}return(F.value||"").replace(/\r/g,"")}return g}if(typeof L==="number"){L+=""}return this.each(function(){if(this.nodeType!=1){return}if(p.isArray(L)&&/radio|checkbox/.test(this.type)){this.checked=(p.inArray(this.value,L)>=0||p.inArray(this.name,L)>=0)}else{if(p.nodeName(this,"select")){var O=p.makeArray(L);p("option",this).each(function(){this.selected=(p.inArray(this.value,O)>=0||p.inArray(this.text,O)>=0)});if(!O.length){this.selectedIndex=-1}}else{this.value=L}}})},html:function(F){return F===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(F)},replaceWith:function(F){return this.after(F).remove()},eq:function(F){return this.slice(F,+F+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(F){return this.pushStack(p.map(this,function(H,G){return F.call(H,G,H)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(K,N,M){if(this[0]){var J=(this[0].ownerDocument||this[0]).createDocumentFragment(),G=p.clean(K,(this[0].ownerDocument||this[0]),J),I=J.firstChild;if(I){for(var H=0,F=this.length;H<F;H++){M.call(L(this[H],I),this.length>1||H>0?J.cloneNode(true):J)}}if(G){p.each(G,A)}}return this;function L(O,P){return N&&p.nodeName(O,"table")&&p.nodeName(P,"tr")?(O.getElementsByTagName("tbody")[0]||O.appendChild(O.ownerDocument.createElement("tbody"))):O}}};p.fn.init.prototype=p.fn;function A(F,G){if(G.src){p.ajax({url:G.src,async:false,dataType:"script"})}else{p.globalEval(G.text||G.textContent||G.innerHTML||"")}if(G.parentNode){G.parentNode.removeChild(G)}}function e(){return +new Date}p.extend=p.fn.extend=function(){var K=arguments[0]||{},I=1,J=arguments.length,F=false,H;if(typeof K==="boolean"){F=K;K=arguments[1]||{};I=2}if(typeof K!=="object"&&!p.isFunction(K)){K={}}if(J==I){K=this;--I}for(;I<J;I++){if((H=arguments[I])!=null){for(var G in H){var L=K[G],M=H[G];if(K===M){continue}if(F&&M&&typeof M==="object"&&!M.nodeType){K[G]=p.extend(F,L||(M.length!=null?[]:{}),M)}else{if(M!==g){K[G]=M}}}}}return K};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,r=document.defaultView||{},t=Object.prototype.toString;p.extend({noConflict:function(F){m.$=q;if(F){m.jQuery=z}return p},isFunction:function(F){return t.call(F)==="[object Function]"},isArray:function(F){return t.call(F)==="[object Array]"},isXMLDoc:function(F){return F.nodeType===9&&F.documentElement.nodeName!=="HTML"||!!F.ownerDocument&&p.isXMLDoc(F.ownerDocument)},globalEval:function(H){if(H&&/\S/.test(H)){var G=document.getElementsByTagName("head")[0]||document.documentElement,F=document.createElement("script");F.type="text/javascript";if(p.support.scriptEval){F.appendChild(document.createTextNode(H))}else{F.text=H}G.insertBefore(F,G.firstChild);G.removeChild(F)}},nodeName:function(G,F){return G.nodeName&&G.nodeName.toUpperCase()==F.toUpperCase()},each:function(H,L,G){var F,I=0,J=H.length;if(G){if(J===g){for(F in H){if(L.apply(H[F],G)===false){break}}}else{for(;I<J;){if(L.apply(H[I++],G)===false){break}}}}else{if(J===g){for(F in H){if(L.call(H[F],F,H[F])===false){break}}}else{for(var K=H[0];I<J&&L.call(K,I,K)!==false;K=H[++I]){}}}return H},prop:function(I,J,H,G,F){if(p.isFunction(J)){J=J.call(I,G)}return typeof J==="number"&&H=="curCSS"&&!b.test(F)?J+"px":J},className:{add:function(F,G){p.each((G||"").split(/\s+/),function(H,I){if(F.nodeType==1&&!p.className.has(F.className,I)){F.className+=(F.className?" ":"")+I}})},remove:function(F,G){if(F.nodeType==1){F.className=G!==g?p.grep(F.className.split(/\s+/),function(H){return !p.className.has(G,H)}).join(" "):""}},has:function(G,F){return G&&p.inArray(F,(G.className||G).toString().split(/\s+/))>-1}},swap:function(I,H,J){var F={};for(var G in H){F[G]=I.style[G];I.style[G]=H[G]}J.call(I);for(var G in H){I.style[G]=F[G]}},css:function(I,G,K,F){if(G=="width"||G=="height"){var M,H={position:"absolute",visibility:"hidden",display:"block"},L=G=="width"?["Left","Right"]:["Top","Bottom"];function J(){M=G=="width"?I.offsetWidth:I.offsetHeight;if(F==="border"){return}p.each(L,function(){if(!F){M-=parseFloat(p.curCSS(I,"padding"+this,true))||0}if(F==="margin"){M+=parseFloat(p.curCSS(I,"margin"+this,true))||0}else{M-=parseFloat(p.curCSS(I,"border"+this+"Width",true))||0}})}if(I.offsetWidth!==0){J()}else{p.swap(I,H,J)}return Math.max(0,Math.round(M))}return p.curCSS(I,G,K)},curCSS:function(J,G,H){var M,F=J.style;if(G=="opacity"&&!p.support.opacity){M=p.attr(F,"opacity");return M==""?"1":M}if(G.match(/float/i)){G=x}if(!H&&F&&F[G]){M=F[G]}else{if(r.getComputedStyle){if(G.match(/float/i)){G="float"}G=G.replace(/([A-Z])/g,"-$1").toLowerCase();var N=r.getComputedStyle(J,null);if(N){M=N.getPropertyValue(G)}if(G=="opacity"&&M==""){M="1"}}else{if(J.currentStyle){var K=G.replace(/\-(\w)/g,function(O,P){return P.toUpperCase()});M=J.currentStyle[G]||J.currentStyle[K];if(!/^\d+(px)?$/i.test(M)&&/^\d/.test(M)){var I=F.left,L=J.runtimeStyle.left;J.runtimeStyle.left=J.currentStyle.left;F.left=M||0;M=F.pixelLeft+"px";F.left=I;J.runtimeStyle.left=L}}}}return M},clean:function(G,L,J){L=L||document;if(typeof L.createElement==="undefined"){L=L.ownerDocument||L[0]&&L[0].ownerDocument||document}if(!J&&G.length===1&&typeof G[0]==="string"){var I=/^<(\w+)\s*\/?>$/.exec(G[0]);if(I){return[L.createElement(I[1])]}}var H=[],F=[],M=L.createElement("div");p.each(G,function(Q,T){if(typeof T==="number"){T+=""}if(!T){return}if(typeof T==="string"){T=T.replace(/(<(\w+)[^>]*?)\/>/g,function(V,W,U){return U.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?V:W+"></"+U+">"});var P=T.replace(/^\s+/,"").substring(0,10).toLowerCase();var R=!P.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!P.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||P.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!P.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!P.indexOf("<td")||!P.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!P.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!p.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];M.innerHTML=R[1]+T+R[2];while(R[0]--){M=M.lastChild}if(!p.support.tbody){var S=/<tbody/i.test(T),O=!P.indexOf("<table")&&!S?M.firstChild&&M.firstChild.childNodes:R[1]=="<table>"&&!S?M.childNodes:[];for(var N=O.length-1;N>=0;--N){if(p.nodeName(O[N],"tbody")&&!O[N].childNodes.length){O[N].parentNode.removeChild(O[N])}}}if(!p.support.leadingWhitespace&&/^\s/.test(T)){M.insertBefore(L.createTextNode(T.match(/^\s*/)[0]),M.firstChild)}T=p.makeArray(M.childNodes)}if(T.nodeType){H.push(T)}else{H=p.merge(H,T)}});if(J){for(var K=0;H[K];K++){if(p.nodeName(H[K],"script")&&(!H[K].type||H[K].type.toLowerCase()==="text/javascript")){F.push(H[K].parentNode?H[K].parentNode.removeChild(H[K]):H[K])}else{if(H[K].nodeType===1){H.splice.apply(H,[K+1,0].concat(p.makeArray(H[K].getElementsByTagName("script"))))}J.appendChild(H[K])}}return F}return H},attr:function(K,H,L){if(!K||K.nodeType==3||K.nodeType==8){return g}var I=!p.isXMLDoc(K),M=L!==g;H=I&&p.props[H]||H;if(K.tagName){var G=/href|src|style/.test(H);if(H=="selected"&&K.parentNode){K.parentNode.selectedIndex}if(H in K&&I&&!G){if(M){if(H=="type"&&p.nodeName(K,"input")&&K.parentNode){throw"type property can't be changed"}K[H]=L}if(p.nodeName(K,"form")&&K.getAttributeNode(H)){return K.getAttributeNode(H).nodeValue}if(H=="tabIndex"){var J=K.getAttributeNode("tabIndex");return J&&J.specified?J.value:K.nodeName.match(/(button|input|object|select|textarea)/i)?0:K.nodeName.match(/^(a|area)$/i)&&K.href?0:g}return K[H]}if(!p.support.style&&I&&H=="style"){return p.attr(K.style,"cssText",L)}if(M){K.setAttribute(H,""+L)}var F=!p.support.hrefNormalized&&I&&G?K.getAttribute(H,2):K.getAttribute(H);return F===null?g:F}if(!p.support.opacity&&H=="opacity"){if(M){K.zoom=1;K.filter=(K.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(L)+""=="NaN"?"":"alpha(opacity="+L*100+")")}return K.filter&&K.filter.indexOf("opacity=")>=0?(parseFloat(K.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}H=H.replace(/-([a-z])/ig,function(N,O){return O.toUpperCase()});if(M){K[H]=L}return K[H]},trim:function(F){return(F||"").replace(/^\s+|\s+$/g,"")},makeArray:function(H){var F=[];if(H!=null){var G=H.length;if(G==null||typeof H==="string"||p.isFunction(H)||H.setInterval){F[0]=H}else{while(G){F[--G]=H[G]}}}return F},inArray:function(H,I){for(var F=0,G=I.length;F<G;F++){if(I[F]===H){return F}}return -1},merge:function(I,F){var G=0,H,J=I.length;if(!p.support.getAll){while((H=F[G++])!=null){if(H.nodeType!=8){I[J++]=H}}}else{while((H=F[G++])!=null){I[J++]=H}}return I},unique:function(L){var G=[],F={};try{for(var H=0,I=L.length;H<I;H++){var K=p.data(L[H]);if(!F[K]){F[K]=true;G.push(L[H])}}}catch(J){G=L}return G},grep:function(G,K,F){var H=[];for(var I=0,J=G.length;I<J;I++){if(!F!=!K(G[I],I)){H.push(G[I])}}return H},map:function(F,K){var G=[];for(var H=0,I=F.length;H<I;H++){var J=K(F[H],H);if(J!=null){G[G.length]=J}}return G.concat.apply([],G)}});var D=navigator.userAgent.toLowerCase();p.browser={version:(D.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(D),opera:/opera/.test(D),msie:/msie/.test(D)&&!/opera/.test(D),mozilla:/mozilla/.test(D)&&!/(compatible|webkit)/.test(D)};p.each({parent:function(F){return F.parentNode},parents:function(F){return p.dir(F,"parentNode")},next:function(F){return p.nth(F,2,"nextSibling")},prev:function(F){return p.nth(F,2,"previousSibling")},nextAll:function(F){return p.dir(F,"nextSibling")},prevAll:function(F){return p.dir(F,"previousSibling")},siblings:function(F){return p.sibling(F.parentNode.firstChild,F)},children:function(F){return p.sibling(F.firstChild)},contents:function(F){return p.nodeName(F,"iframe")?F.contentDocument||F.contentWindow.document:p.makeArray(F.childNodes)}},function(F,G){p.fn[F]=function(H){var I=p.map(this,G);if(H&&typeof H=="string"){I=p.multiFilter(H,I)}return this.pushStack(p.unique(I),F,H)}});p.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(F,G){p.fn[F]=function(H){var K=[],M=p(H);for(var L=0,I=M.length;L<I;L++){var J=(L>0?this.clone(true):this).get();p.fn[G].apply(p(M[L]),J);K=K.concat(J)}return this.pushStack(K,F,H)}});p.each({removeAttr:function(F){p.attr(this,F,"");if(this.nodeType==1){this.removeAttribute(F)}},addClass:function(F){p.className.add(this,F)},removeClass:function(F){p.className.remove(this,F)},toggleClass:function(G,F){if(typeof F!=="boolean"){F=!p.className.has(this,G)}p.className[F?"add":"remove"](this,G)},remove:function(F){if(!F||p.filter(F,[this]).length){p("*",this).add([this]).each(function(){p.event.remove(this);p.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){p(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(F,G){p.fn[F]=function(){return this.each(G,arguments)}});function k(F,G){return F[0]&&parseInt(p.curCSS(F[0],G,true),10)||0}var h="jQuery"+e(),w=0,B={};p.extend({cache:{},data:function(G,F,H){G=G==m?B:G;var I=G[h];if(!I){I=G[h]=++w}if(F&&!p.cache[I]){p.cache[I]={}}if(H!==g){p.cache[I][F]=H}return F?p.cache[I][F]:I},removeData:function(G,F){G=G==m?B:G;var I=G[h];if(F){if(p.cache[I]){delete p.cache[I][F];F="";for(F in p.cache[I]){break}if(!F){p.removeData(G)}}}else{try{delete G[h]}catch(H){if(G.removeAttribute){G.removeAttribute(h)}}delete p.cache[I]}},queue:function(G,F,I){if(G){F=(F||"fx")+"queue";var H=p.data(G,F);if(!H||p.isArray(I)){H=p.data(G,F,p.makeArray(I))}else{if(I){H.push(I)}}}return H},dequeue:function(I,H){var F=p.queue(I,H),G=F.shift();if(!H||H==="fx"){G=F[0]}if(G!==g){G.call(I)}}});p.fn.extend({data:function(F,H){var I=F.split(".");I[1]=I[1]?"."+I[1]:"";if(H===g){var G=this.triggerHandler("getData"+I[1]+"!",[I[0]]);if(G===g&&this.length){G=p.data(this[0],F)}return G===g&&I[1]?this.data(I[0]):G}else{return this.trigger("setData"+I[1]+"!",[I[0],H]).each(function(){p.data(this,F,H)})}},removeData:function(F){return this.each(function(){p.removeData(this,F)})},queue:function(F,G){if(typeof F!=="string"){G=F;F="fx"}if(G===g){return p.queue(this[0],F)}return this.each(function(){var H=p.queue(this,F,G);if(F=="fx"&&H.length==1){H[0].call(this)}})},dequeue:function(F){return this.each(function(){p.dequeue(this,F)})}});
/*
 * Sizzle CSS Selector Engine - v0.9.3
 *  Copyright 2009, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var S=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,M=0,I=Object.prototype.toString;var G=function(Z,V,ac,ad){ac=ac||[];V=V||document;if(V.nodeType!==1&&V.nodeType!==9){return[]}if(!Z||typeof Z!=="string"){return ac}var aa=[],X,ag,aj,U,ae,W,Y=true;S.lastIndex=0;while((X=S.exec(Z))!==null){aa.push(X[1]);if(X[2]){W=RegExp.rightContext;break}}if(aa.length>1&&N.exec(Z)){if(aa.length===2&&J.relative[aa[0]]){ag=K(aa[0]+aa[1],V)}else{ag=J.relative[aa[0]]?[V]:G(aa.shift(),V);while(aa.length){Z=aa.shift();if(J.relative[Z]){Z+=aa.shift()}ag=K(Z,ag)}}}else{var af=ad?{expr:aa.pop(),set:F(ad)}:G.find(aa.pop(),aa.length===1&&V.parentNode?V.parentNode:V,R(V));ag=G.filter(af.expr,af.set);if(aa.length>0){aj=F(ag)}else{Y=false}while(aa.length){var ai=aa.pop(),ah=ai;if(!J.relative[ai]){ai=""}else{ah=aa.pop()}if(ah==null){ah=V}J.relative[ai](aj,ah,R(V))}}if(!aj){aj=ag}if(!aj){throw"Syntax error, unrecognized expression: "+(ai||Z)}if(I.call(aj)==="[object Array]"){if(!Y){ac.push.apply(ac,aj)}else{if(V.nodeType===1){for(var ab=0;aj[ab]!=null;ab++){if(aj[ab]&&(aj[ab]===true||aj[ab].nodeType===1&&L(V,aj[ab]))){ac.push(ag[ab])}}}else{for(var ab=0;aj[ab]!=null;ab++){if(aj[ab]&&aj[ab].nodeType===1){ac.push(ag[ab])}}}}}else{F(aj,ac)}if(W){G(W,V,ac,ad);if(H){hasDuplicate=false;ac.sort(H);if(hasDuplicate){for(var ab=1;ab<ac.length;ab++){if(ac[ab]===ac[ab-1]){ac.splice(ab--,1)}}}}}return ac};G.matches=function(U,V){return G(U,null,null,V)};G.find=function(ab,U,ac){var aa,Y;if(!ab){return[]}for(var X=0,W=J.order.length;X<W;X++){var Z=J.order[X],Y;if((Y=J.match[Z].exec(ab))){var V=RegExp.leftContext;if(V.substr(V.length-1)!=="\\"){Y[1]=(Y[1]||"").replace(/\\/g,"");aa=J.find[Z](Y,U,ac);if(aa!=null){ab=ab.replace(J.match[Z],"");break}}}}if(!aa){aa=U.getElementsByTagName("*")}return{set:aa,expr:ab}};G.filter=function(ae,ad,ah,X){var W=ae,aj=[],ab=ad,Z,U,aa=ad&&ad[0]&&R(ad[0]);while(ae&&ad.length){for(var ac in J.filter){if((Z=J.match[ac].exec(ae))!=null){var V=J.filter[ac],ai,ag;U=false;if(ab==aj){aj=[]}if(J.preFilter[ac]){Z=J.preFilter[ac](Z,ab,ah,aj,X,aa);if(!Z){U=ai=true}else{if(Z===true){continue}}}if(Z){for(var Y=0;(ag=ab[Y])!=null;Y++){if(ag){ai=V(ag,Z,Y,ab);var af=X^!!ai;if(ah&&ai!=null){if(af){U=true}else{ab[Y]=false}}else{if(af){aj.push(ag);U=true}}}}}if(ai!==g){if(!ah){ab=aj}ae=ae.replace(J.match[ac],"");if(!U){return[]}break}}}if(ae==W){if(U==null){throw"Syntax error, unrecognized expression: "+ae}else{break}}W=ae}return ab};var J=G.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(U){return U.getAttribute("href")}},relative:{"+":function(ab,U,aa){var Y=typeof U==="string",ac=Y&&!/\W/.test(U),Z=Y&&!ac;if(ac&&!aa){U=U.toUpperCase()}for(var X=0,W=ab.length,V;X<W;X++){if((V=ab[X])){while((V=V.previousSibling)&&V.nodeType!==1){}ab[X]=Z||V&&V.nodeName===U?V||false:V===U}}if(Z){G.filter(U,ab,true)}},">":function(aa,V,ab){var Y=typeof V==="string";if(Y&&!/\W/.test(V)){V=ab?V:V.toUpperCase();for(var W=0,U=aa.length;W<U;W++){var Z=aa[W];if(Z){var X=Z.parentNode;aa[W]=X.nodeName===V?X:false}}}else{for(var W=0,U=aa.length;W<U;W++){var Z=aa[W];if(Z){aa[W]=Y?Z.parentNode:Z.parentNode===V}}if(Y){G.filter(V,aa,true)}}},"":function(X,V,Z){var W=M++,U=T;if(!V.match(/\W/)){var Y=V=Z?V:V.toUpperCase();U=Q}U("parentNode",V,W,X,Y,Z)},"~":function(X,V,Z){var W=M++,U=T;if(typeof V==="string"&&!V.match(/\W/)){var Y=V=Z?V:V.toUpperCase();U=Q}U("previousSibling",V,W,X,Y,Z)}},find:{ID:function(V,W,X){if(typeof W.getElementById!=="undefined"&&!X){var U=W.getElementById(V[1]);return U?[U]:[]}},NAME:function(W,Z,aa){if(typeof Z.getElementsByName!=="undefined"){var V=[],Y=Z.getElementsByName(W[1]);for(var X=0,U=Y.length;X<U;X++){if(Y[X].getAttribute("name")===W[1]){V.push(Y[X])}}return V.length===0?null:V}},TAG:function(U,V){return V.getElementsByTagName(U[1])}},preFilter:{CLASS:function(X,V,W,U,aa,ab){X=" "+X[1].replace(/\\/g,"")+" ";if(ab){return X}for(var Y=0,Z;(Z=V[Y])!=null;Y++){if(Z){if(aa^(Z.className&&(" "+Z.className+" ").indexOf(X)>=0)){if(!W){U.push(Z)}}else{if(W){V[Y]=false}}}}return false},ID:function(U){return U[1].replace(/\\/g,"")},TAG:function(V,U){for(var W=0;U[W]===false;W++){}return U[W]&&R(U[W])?V[1]:V[1].toUpperCase()},CHILD:function(U){if(U[1]=="nth"){var V=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(U[2]=="even"&&"2n"||U[2]=="odd"&&"2n+1"||!/\D/.test(U[2])&&"0n+"+U[2]||U[2]);U[2]=(V[1]+(V[2]||1))-0;U[3]=V[3]-0}U[0]=M++;return U},ATTR:function(Y,V,W,U,Z,aa){var X=Y[1].replace(/\\/g,"");if(!aa&&J.attrMap[X]){Y[1]=J.attrMap[X]}if(Y[2]==="~="){Y[4]=" "+Y[4]+" "}return Y},PSEUDO:function(Y,V,W,U,Z){if(Y[1]==="not"){if(Y[3].match(S).length>1||/^\w/.test(Y[3])){Y[3]=G(Y[3],null,null,V)}else{var X=G.filter(Y[3],V,W,true^Z);if(!W){U.push.apply(U,X)}return false}}else{if(J.match.POS.test(Y[0])||J.match.CHILD.test(Y[0])){return true}}return Y},POS:function(U){U.unshift(true);return U}},filters:{enabled:function(U){return U.disabled===false&&U.type!=="hidden"},disabled:function(U){return U.disabled===true},checked:function(U){return U.checked===true},selected:function(U){U.parentNode.selectedIndex;return U.selected===true},parent:function(U){return !!U.firstChild},empty:function(U){return !U.firstChild},has:function(W,V,U){return !!G(U[3],W).length},header:function(U){return/h\d/i.test(U.nodeName)},text:function(U){return"text"===U.type},radio:function(U){return"radio"===U.type},checkbox:function(U){return"checkbox"===U.type},file:function(U){return"file"===U.type},password:function(U){return"password"===U.type},submit:function(U){return"submit"===U.type},image:function(U){return"image"===U.type},reset:function(U){return"reset"===U.type},button:function(U){return"button"===U.type||U.nodeName.toUpperCase()==="BUTTON"},input:function(U){return/input|select|textarea|button/i.test(U.nodeName)}},setFilters:{first:function(V,U){return U===0},last:function(W,V,U,X){return V===X.length-1},even:function(V,U){return U%2===0},odd:function(V,U){return U%2===1},lt:function(W,V,U){return V<U[3]-0},gt:function(W,V,U){return V>U[3]-0},nth:function(W,V,U){return U[3]-0==V},eq:function(W,V,U){return U[3]-0==V}},filter:{PSEUDO:function(aa,W,X,ab){var V=W[1],Y=J.filters[V];if(Y){return Y(aa,X,W,ab)}else{if(V==="contains"){return(aa.textContent||aa.innerText||"").indexOf(W[3])>=0}else{if(V==="not"){var Z=W[3];for(var X=0,U=Z.length;X<U;X++){if(Z[X]===aa){return false}}return true}}}},CHILD:function(U,X){var aa=X[1],V=U;switch(aa){case"only":case"first":while(V=V.previousSibling){if(V.nodeType===1){return false}}if(aa=="first"){return true}V=U;case"last":while(V=V.nextSibling){if(V.nodeType===1){return false}}return true;case"nth":var W=X[2],ad=X[3];if(W==1&&ad==0){return true}var Z=X[0],ac=U.parentNode;if(ac&&(ac.sizcache!==Z||!U.nodeIndex)){var Y=0;for(V=ac.firstChild;V;V=V.nextSibling){if(V.nodeType===1){V.nodeIndex=++Y}}ac.sizcache=Z}var ab=U.nodeIndex-ad;if(W==0){return ab==0}else{return(ab%W==0&&ab/W>=0)}}},ID:function(V,U){return V.nodeType===1&&V.getAttribute("id")===U},TAG:function(V,U){return(U==="*"&&V.nodeType===1)||V.nodeName===U},CLASS:function(V,U){return(" "+(V.className||V.getAttribute("class"))+" ").indexOf(U)>-1},ATTR:function(Z,X){var W=X[1],U=J.attrHandle[W]?J.attrHandle[W](Z):Z[W]!=null?Z[W]:Z.getAttribute(W),aa=U+"",Y=X[2],V=X[4];return U==null?Y==="!=":Y==="="?aa===V:Y==="*="?aa.indexOf(V)>=0:Y==="~="?(" "+aa+" ").indexOf(V)>=0:!V?aa&&U!==false:Y==="!="?aa!=V:Y==="^="?aa.indexOf(V)===0:Y==="$="?aa.substr(aa.length-V.length)===V:Y==="|="?aa===V||aa.substr(0,V.length+1)===V+"-":false},POS:function(Y,V,W,Z){var U=V[2],X=J.setFilters[U];if(X){return X(Y,W,V,Z)}}}};var N=J.match.POS;for(var P in J.match){J.match[P]=RegExp(J.match[P].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var F=function(V,U){V=Array.prototype.slice.call(V);if(U){U.push.apply(U,V);return U}return V};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(O){F=function(Y,X){var V=X||[];if(I.call(Y)==="[object Array]"){Array.prototype.push.apply(V,Y)}else{if(typeof Y.length==="number"){for(var W=0,U=Y.length;W<U;W++){V.push(Y[W])}}else{for(var W=0;Y[W];W++){V.push(Y[W])}}}return V}}var H;if(document.documentElement.compareDocumentPosition){H=function(V,U){var W=V.compareDocumentPosition(U)&4?-1:V===U?0:1;if(W===0){hasDuplicate=true}return W}}else{if("sourceIndex" in document.documentElement){H=function(V,U){var W=V.sourceIndex-U.sourceIndex;if(W===0){hasDuplicate=true}return W}}else{if(document.createRange){H=function(X,V){var W=X.ownerDocument.createRange(),U=V.ownerDocument.createRange();W.selectNode(X);W.collapse(true);U.selectNode(V);U.collapse(true);var Y=W.compareBoundaryPoints(Range.START_TO_END,U);if(Y===0){hasDuplicate=true}return Y}}}}(function(){var V=document.createElement("form"),W="script"+(new Date).getTime();V.innerHTML="<input name='"+W+"'/>";var U=document.documentElement;U.insertBefore(V,U.firstChild);if(!!document.getElementById(W)){J.find.ID=function(Y,Z,aa){if(typeof Z.getElementById!=="undefined"&&!aa){var X=Z.getElementById(Y[1]);return X?X.id===Y[1]||typeof X.getAttributeNode!=="undefined"&&X.getAttributeNode("id").nodeValue===Y[1]?[X]:g:[]}};J.filter.ID=function(Z,X){var Y=typeof Z.getAttributeNode!=="undefined"&&Z.getAttributeNode("id");return Z.nodeType===1&&Y&&Y.nodeValue===X}}U.removeChild(V)})();(function(){var U=document.createElement("div");U.appendChild(document.createComment(""));if(U.getElementsByTagName("*").length>0){J.find.TAG=function(V,Z){var Y=Z.getElementsByTagName(V[1]);if(V[1]==="*"){var X=[];for(var W=0;Y[W];W++){if(Y[W].nodeType===1){X.push(Y[W])}}Y=X}return Y}}U.innerHTML="<a href='#'></a>";if(U.firstChild&&typeof U.firstChild.getAttribute!=="undefined"&&U.firstChild.getAttribute("href")!=="#"){J.attrHandle.href=function(V){return V.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var U=G,V=document.createElement("div");V.innerHTML="<p class='TEST'></p>";if(V.querySelectorAll&&V.querySelectorAll(".TEST").length===0){return}G=function(Z,Y,W,X){Y=Y||document;if(!X&&Y.nodeType===9&&!R(Y)){try{return F(Y.querySelectorAll(Z),W)}catch(aa){}}return U(Z,Y,W,X)};G.find=U.find;G.filter=U.filter;G.selectors=U.selectors;G.matches=U.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var U=document.createElement("div");U.innerHTML="<div class='test e'></div><div class='test'></div>";if(U.getElementsByClassName("e").length===0){return}U.lastChild.className="e";if(U.getElementsByClassName("e").length===1){return}J.order.splice(1,0,"CLASS");J.find.CLASS=function(V,W,X){if(typeof W.getElementsByClassName!=="undefined"&&!X){return W.getElementsByClassName(V[1])}}})()}function Q(V,aa,Z,ae,ab,ad){var ac=V=="previousSibling"&&!ad;for(var X=0,W=ae.length;X<W;X++){var U=ae[X];if(U){if(ac&&U.nodeType===1){U.sizcache=Z;U.sizset=X}U=U[V];var Y=false;while(U){if(U.sizcache===Z){Y=ae[U.sizset];break}if(U.nodeType===1&&!ad){U.sizcache=Z;U.sizset=X}if(U.nodeName===aa){Y=U;break}U=U[V]}ae[X]=Y}}}function T(V,aa,Z,ae,ab,ad){var ac=V=="previousSibling"&&!ad;for(var X=0,W=ae.length;X<W;X++){var U=ae[X];if(U){if(ac&&U.nodeType===1){U.sizcache=Z;U.sizset=X}U=U[V];var Y=false;while(U){if(U.sizcache===Z){Y=ae[U.sizset];break}if(U.nodeType===1){if(!ad){U.sizcache=Z;U.sizset=X}if(typeof aa!=="string"){if(U===aa){Y=true;break}}else{if(G.filter(aa,[U]).length>0){Y=U;break}}}U=U[V]}ae[X]=Y}}}var L=document.compareDocumentPosition?function(V,U){return V.compareDocumentPosition(U)&16}:function(V,U){return V!==U&&(V.contains?V.contains(U):true)};var R=function(U){return U.nodeType===9&&U.documentElement.nodeName!=="HTML"||!!U.ownerDocument&&R(U.ownerDocument)};var K=function(U,ab){var X=[],Y="",Z,W=ab.nodeType?[ab]:ab;while((Z=J.match.PSEUDO.exec(U))){Y+=Z[0];U=U.replace(J.match.PSEUDO,"")}U=J.relative[U]?U+"*":U;for(var aa=0,V=W.length;aa<V;aa++){G(U,W[aa],X)}return G.filter(Y,X)};p.find=G;p.filter=G.filter;p.expr=G.selectors;p.expr[":"]=p.expr.filters;G.selectors.filters.hidden=function(U){return U.offsetWidth===0||U.offsetHeight===0};G.selectors.filters.visible=function(U){return U.offsetWidth>0||U.offsetHeight>0};G.selectors.filters.animated=function(U){return p.grep(p.timers,function(V){return U===V.elem}).length};p.multiFilter=function(W,U,V){if(V){W=":not("+W+")"}return G.matches(W,U)};p.dir=function(W,V){var U=[],X=W[V];while(X&&X!=document){if(X.nodeType==1){U.push(X)}X=X[V]}return U};p.nth=function(Y,U,W,X){U=U||1;var V=0;for(;Y;Y=Y[W]){if(Y.nodeType==1&&++V==U){break}}return Y};p.sibling=function(W,V){var U=[];for(;W;W=W.nextSibling){if(W.nodeType==1&&W!=V){U.push(W)}}return U};return;m.Sizzle=G})();p.event={add:function(J,G,I,L){if(J.nodeType==3||J.nodeType==8){return}if(J.setInterval&&J!=m){J=m}if(!I.guid){I.guid=this.guid++}if(L!==g){var H=I;I=this.proxy(H);I.data=L}var F=p.data(J,"events")||p.data(J,"events",{}),K=p.data(J,"handle")||p.data(J,"handle",function(){return typeof p!=="undefined"&&!p.event.triggered?p.event.handle.apply(arguments.callee.elem,arguments):g});K.elem=J;p.each(G.split(/\s+/),function(N,O){var P=O.split(".");O=P.shift();I.type=P.slice().sort().join(".");var M=F[O];if(p.event.specialAll[O]){p.event.specialAll[O].setup.call(J,L,P)}if(!M){M=F[O]={};if(!p.event.special[O]||p.event.special[O].setup.call(J,L,P)===false){if(J.addEventListener){J.addEventListener(O,K,false)}else{if(J.attachEvent){J.attachEvent("on"+O,K)}}}}M[I.guid]=I;p.event.global[O]=true});J=null},guid:1,global:{},remove:function(L,I,K){if(L.nodeType==3||L.nodeType==8){return}var H=p.data(L,"events"),G,F;if(H){if(I===g||(typeof I==="string"&&I.charAt(0)==".")){for(var J in H){this.remove(L,J+(I||""))}}else{if(I.type){K=I.handler;I=I.type}p.each(I.split(/\s+/),function(N,P){var R=P.split(".");P=R.shift();var O=RegExp("(^|\\.)"+R.slice().sort().join(".*\\.")+"(\\.|$)");if(H[P]){if(K){delete H[P][K.guid]}else{for(var Q in H[P]){if(O.test(H[P][Q].type)){delete H[P][Q]}}}if(p.event.specialAll[P]){p.event.specialAll[P].teardown.call(L,R)}for(G in H[P]){break}if(!G){if(!p.event.special[P]||p.event.special[P].teardown.call(L,R)===false){if(L.removeEventListener){L.removeEventListener(P,p.data(L,"handle"),false)}else{if(L.detachEvent){L.detachEvent("on"+P,p.data(L,"handle"))}}}G=null;delete H[P]}}})}for(G in H){break}if(!G){var M=p.data(L,"handle");if(M){M.elem=null}p.removeData(L,"events");p.removeData(L,"handle")}}},trigger:function(J,L,I,F){var H=J.type||J;if(!F){J=typeof J==="object"?J[h]?J:p.extend(p.Event(H),J):p.Event(H);if(H.indexOf("!")>=0){J.type=H=H.slice(0,-1);J.exclusive=true}if(!I){J.stopPropagation();if(this.global[H]){p.each(p.cache,function(){if(this.events&&this.events[H]){p.event.trigger(J,L,this.handle.elem)}})}}if(!I||I.nodeType==3||I.nodeType==8){return g}J.result=g;J.target=I;L=p.makeArray(L);L.unshift(J)}J.currentTarget=I;var K=p.data(I,"handle");if(K){K.apply(I,L)}if((!I[H]||(p.nodeName(I,"a")&&H=="click"))&&I["on"+H]&&I["on"+H].apply(I,L)===false){J.result=false}if(!F&&I[H]&&!J.isDefaultPrevented()&&!(p.nodeName(I,"a")&&H=="click")){this.triggered=true;try{I[H]()}catch(M){}}this.triggered=false;if(!J.isPropagationStopped()){var G=I.parentNode||I.ownerDocument;if(G){p.event.trigger(J,L,G,true)}}},handle:function(L){var K,F;L=arguments[0]=p.event.fix(L||m.event);L.currentTarget=this;var M=L.type.split(".");L.type=M.shift();K=!M.length&&!L.exclusive;var J=RegExp("(^|\\.)"+M.slice().sort().join(".*\\.")+"(\\.|$)");F=(p.data(this,"events")||{})[L.type];for(var H in F){var I=F[H];if(K||J.test(I.type)){L.handler=I;L.data=I.data;var G=I.apply(this,arguments);if(G!==g){L.result=G;if(G===false){L.preventDefault();L.stopPropagation()}}if(L.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(I){if(I[h]){return I}var G=I;I=p.Event(G);for(var H=this.props.length,K;H;){K=this.props[--H];I[K]=G[K]}if(!I.target){I.target=I.srcElement||document}if(I.target.nodeType==3){I.target=I.target.parentNode}if(!I.relatedTarget&&I.fromElement){I.relatedTarget=I.fromElement==I.target?I.toElement:I.fromElement}if(I.pageX==null&&I.clientX!=null){var J=document.documentElement,F=document.body;I.pageX=I.clientX+(J&&J.scrollLeft||F&&F.scrollLeft||0)-(J.clientLeft||0);I.pageY=I.clientY+(J&&J.scrollTop||F&&F.scrollTop||0)-(J.clientTop||0)}if(!I.which&&((I.charCode||I.charCode===0)?I.charCode:I.keyCode)){I.which=I.charCode||I.keyCode}if(!I.metaKey&&I.ctrlKey){I.metaKey=I.ctrlKey}if(!I.which&&I.button){I.which=(I.button&1?1:(I.button&2?3:(I.button&4?2:0)))}return I},proxy:function(G,F){F=F||function(){return G.apply(this,arguments)};F.guid=G.guid=G.guid||F.guid||this.guid++;return F},special:{ready:{setup:C,teardown:function(){}}},specialAll:{live:{setup:function(F,G){p.event.add(this,G[0],c)},teardown:function(H){if(H.length){var F=0,G=RegExp("(^|\\.)"+H[0]+"(\\.|$)");p.each((p.data(this,"events").live||{}),function(){if(G.test(this.type)){F++}});if(F<1){p.event.remove(this,H[0],c)}}}}}};p.Event=function(F){if(!this.preventDefault){return new p.Event(F)}if(F&&F.type){this.originalEvent=F;this.type=F.type}else{this.type=F}this.timeStamp=e();this[h]=true};function l(){return false}function v(){return true}p.Event.prototype={preventDefault:function(){this.isDefaultPrevented=v;var F=this.originalEvent;if(!F){return}if(F.preventDefault){F.preventDefault()}F.returnValue=false},stopPropagation:function(){this.isPropagationStopped=v;var F=this.originalEvent;if(!F){return}if(F.stopPropagation){F.stopPropagation()}F.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=v;this.stopPropagation()},isDefaultPrevented:l,isPropagationStopped:l,isImmediatePropagationStopped:l};var a=function(G){var F=G.relatedTarget;while(F&&F!=this){try{F=F.parentNode}catch(H){F=this}}if(F!=this){G.type=G.data;p.event.handle.apply(this,arguments)}};p.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(G,F){p.event.special[F]={setup:function(){p.event.add(this,G,a,F)},teardown:function(){p.event.remove(this,G,a)}}});p.fn.extend({bind:function(G,H,F){return G=="unload"?this.one(G,H,F):this.each(function(){p.event.add(this,G,F||H,F&&H)})},one:function(H,I,G){var F=p.event.proxy(G||I,function(J){p(this).unbind(J,F);return(G||I).apply(this,arguments)});return this.each(function(){p.event.add(this,H,F,G&&I)})},unbind:function(G,F){return this.each(function(){p.event.remove(this,G,F)})},trigger:function(F,G){return this.each(function(){p.event.trigger(F,G,this)})},triggerHandler:function(F,H){if(this[0]){var G=p.Event(F);G.preventDefault();G.stopPropagation();p.event.trigger(G,H,this[0]);return G.result}},toggle:function(H){var F=arguments,G=1;while(G<F.length){p.event.proxy(H,F[G++])}return this.click(p.event.proxy(H,function(I){this.lastToggle=(this.lastToggle||0)%G;I.preventDefault();return F[this.lastToggle++].apply(this,arguments)||false}))},hover:function(F,G){return this.mouseenter(F).mouseleave(G)},ready:function(F){C();if(p.isReady){F.call(document,p)}else{p.readyList.push(F)}return this},live:function(H,G){var F=p.event.proxy(G);F.guid+=this.selector+H;p(document).bind(j(H,this.selector),this.selector,F);return this},die:function(G,F){p(document).unbind(j(G,this.selector),F?{guid:F.guid+this.selector+G}:null);return this}});function c(I){var F=RegExp("(^|\\.)"+I.type+"(\\.|$)"),H=true,G=[];p.each(p.data(this,"events").live||[],function(J,K){if(F.test(K.type)){var L=p(I.target).closest(K.data)[0];if(L){G.push({elem:L,fn:K})}}});G.sort(function(K,J){return p.data(K.elem,"closest")-p.data(J.elem,"closest")});p.each(G,function(){if(this.fn.call(this.elem,I,this.fn.data)===false){return(H=false)}});return H}function j(G,F){return["live",G,F.replace(/\./g,"`").replace(/ /g,"|")].join(".")}p.extend({isReady:false,readyList:[],ready:function(){if(!p.isReady){p.isReady=true;if(p.readyList){p.each(p.readyList,function(){this.call(document,p)});p.readyList=null}p(document).triggerHandler("ready")}}});var y=false;function C(){if(y){return}y=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);p.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);p.ready()}});if(document.documentElement.doScroll&&m==m.top){(function(){if(p.isReady){return}try{document.documentElement.doScroll("left")}catch(F){setTimeout(arguments.callee,0);return}p.ready()})()}}}p.event.add(m,"load",p.ready)}p.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(G,F){p.fn[F]=function(H){return H?this.bind(F,H):this.trigger(F)}});p(m).bind("unload",function(){for(var F in p.cache){if(F!=1&&p.cache[F].handle){p.event.remove(p.cache[F].handle.elem)}}});(function(){p.support={};var G=document.documentElement,H=document.createElement("script"),L=document.createElement("div"),K="script"+(new Date).getTime();L.style.display="none";L.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var I=L.getElementsByTagName("*"),F=L.getElementsByTagName("a")[0];if(!I||!I.length||!F){return}p.support={leadingWhitespace:L.firstChild.nodeType==3,tbody:!L.getElementsByTagName("tbody").length,objectAll:!!L.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!L.getElementsByTagName("link").length,style:/red/.test(F.getAttribute("style")),hrefNormalized:F.getAttribute("href")==="/a",opacity:F.style.opacity==="0.5",cssFloat:!!F.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};H.type="text/javascript";try{H.appendChild(document.createTextNode("window."+K+"=1;"))}catch(J){}G.insertBefore(H,G.firstChild);if(m[K]){p.support.scriptEval=true;delete m[K]}G.removeChild(H);if(L.attachEvent&&L.fireEvent){L.attachEvent("onclick",function(){p.support.noCloneEvent=false;L.detachEvent("onclick",arguments.callee)});L.cloneNode(true).fireEvent("onclick")}p(function(){var M=document.createElement("div");M.style.width=M.style.paddingLeft="1px";document.body.appendChild(M);p.boxModel=p.support.boxModel=M.offsetWidth===2;document.body.removeChild(M).style.display="none"})})();var x=p.support.cssFloat?"cssFloat":"styleFloat";p.props={"for":"htmlFor","class":"className","float":x,cssFloat:x,styleFloat:x,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};p.fn.extend({_load:p.fn.load,load:function(H,K,L){if(typeof H!=="string"){return this._load(H)}var J=H.indexOf(" ");if(J>=0){var F=H.slice(J,H.length);H=H.slice(0,J)}var I="GET";if(K){if(p.isFunction(K)){L=K;K=null}else{if(typeof K==="object"){K=p.param(K);I="POST"}}}var G=this;p.ajax({url:H,type:I,dataType:"html",data:K,complete:function(N,M){if(M=="success"||M=="notmodified"){G.html(F?p("<div/>").append(N.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(F):N.responseText)}if(L){G.each(L,[N.responseText,M,N])}}});return this},serialize:function(){return p.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?p.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(F,G){var H=p(this).val();return H==null?null:p.isArray(H)?p.map(H,function(J,I){return{name:G.name,value:J}}):{name:G.name,value:H}}).get()}});p.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(F,G){p.fn[G]=function(H){return this.bind(G,H)}});var s=e();p.extend({get:function(F,H,I,G){if(p.isFunction(H)){I=H;H=null}return p.ajax({type:"GET",url:F,data:H,success:I,dataType:G})},getScript:function(F,G){return p.get(F,null,G,"script")},getJSON:function(F,G,H){return p.get(F,G,H,"json")},post:function(F,H,I,G){if(p.isFunction(H)){I=H;H={}}return p.ajax({type:"POST",url:F,data:H,success:I,dataType:G})},ajaxSetup:function(F){p.extend(p.ajaxSettings,F)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return m.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(N){N=p.extend(true,N,p.extend(true,{},p.ajaxSettings,N));var X,G=/=\?(&|$)/g,S,W,H=N.type.toUpperCase();if(N.data&&N.processData&&typeof N.data!=="string"){N.data=p.param(N.data)}if(N.dataType=="jsonp"){if(H=="GET"){if(!N.url.match(G)){N.url+=(N.url.match(/\?/)?"&":"?")+(N.jsonp||"callback")+"=?"}}else{if(!N.data||!N.data.match(G)){N.data=(N.data?N.data+"&":"")+(N.jsonp||"callback")+"=?"}}N.dataType="json"}if(N.dataType=="json"&&(N.data&&N.data.match(G)||N.url.match(G))){X="jsonp"+s++;if(N.data){N.data=(N.data+"").replace(G,"="+X+"$1")}N.url=N.url.replace(G,"="+X+"$1");N.dataType="script";m[X]=function(Y){W=Y;J();M();m[X]=g;try{delete m[X]}catch(Z){}if(I){I.removeChild(U)}}}if(N.dataType=="script"&&N.cache==null){N.cache=false}if(N.cache===false&&H=="GET"){var F=e();var V=N.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+F+"$2");N.url=V+((V==N.url)?(N.url.match(/\?/)?"&":"?")+"_="+F:"")}if(N.data&&H=="GET"){N.url+=(N.url.match(/\?/)?"&":"?")+N.data;N.data=null}if(N.global&&!p.active++){p.event.trigger("ajaxStart")}var R=/^(\w+:)?\/\/([^\/?#]+)/.exec(N.url);if(N.dataType=="script"&&H=="GET"&&R&&(R[1]&&R[1]!=location.protocol||R[2]!=location.host)){var I=document.getElementsByTagName("head")[0];var U=document.createElement("script");U.src=N.url;if(N.scriptCharset){U.charset=N.scriptCharset}if(!X){var P=false;U.onload=U.onreadystatechange=function(){if(!P&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){P=true;J();M();U.onload=U.onreadystatechange=null;I.removeChild(U)}}}I.appendChild(U);return g}var L=false;var K=N.xhr();if(N.username){K.open(H,N.url,N.async,N.username,N.password)}else{K.open(H,N.url,N.async)}try{if(N.data){K.setRequestHeader("Content-Type",N.contentType)}if(N.ifModified){K.setRequestHeader("If-Modified-Since",p.lastModified[N.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}K.setRequestHeader("X-Requested-With","XMLHttpRequest");K.setRequestHeader("Accept",N.dataType&&N.accepts[N.dataType]?N.accepts[N.dataType]+", */*":N.accepts._default)}catch(T){}if(N.beforeSend&&N.beforeSend(K,N)===false){if(N.global&&!--p.active){p.event.trigger("ajaxStop")}K.abort();return false}if(N.global){p.event.trigger("ajaxSend",[K,N])}var O=function(Y){if(K.readyState==0){if(Q){clearInterval(Q);Q=null;if(N.global&&!--p.active){p.event.trigger("ajaxStop")}}}else{if(!L&&K&&(K.readyState==4||Y=="timeout")){L=true;if(Q){clearInterval(Q);Q=null}S=Y=="timeout"?"timeout":!p.httpSuccess(K)?"error":N.ifModified&&p.httpNotModified(K,N.url)?"notmodified":"success";if(S=="success"){try{W=p.httpData(K,N.dataType,N)}catch(aa){S="parsererror"}}if(S=="success"){var Z;try{Z=K.getResponseHeader("Last-Modified")}catch(aa){}if(N.ifModified&&Z){p.lastModified[N.url]=Z}if(!X){J()}}else{p.handleError(N,K,S)}M();if(Y){K.abort()}if(N.async){K=null}}}};if(N.async){var Q=setInterval(O,13);if(N.timeout>0){setTimeout(function(){if(K&&!L){O("timeout")}},N.timeout)}}try{K.send(N.data)}catch(T){p.handleError(N,K,null,T)}if(!N.async){O()}function J(){if(N.success){N.success(W,S)}if(N.global){p.event.trigger("ajaxSuccess",[K,N])}}function M(){if(N.complete){N.complete(K,S)}if(N.global){p.event.trigger("ajaxComplete",[K,N])}if(N.global&&!--p.active){p.event.trigger("ajaxStop")}}return K},handleError:function(G,I,F,H){if(G.error){G.error(I,F,H)}if(G.global){p.event.trigger("ajaxError",[I,G,H])}},active:0,httpSuccess:function(G){try{return !G.status&&location.protocol=="file:"||(G.status>=200&&G.status<300)||G.status==304||G.status==1223}catch(F){}return false},httpNotModified:function(H,F){try{var I=H.getResponseHeader("Last-Modified");return H.status==304||I==p.lastModified[F]}catch(G){}return false},httpData:function(K,I,H){var G=K.getResponseHeader("content-type"),F=I=="xml"||!I&&G&&G.indexOf("xml")>=0,J=F?K.responseXML:K.responseText;if(F&&J.documentElement.tagName=="parsererror"){throw"parsererror"}if(H&&H.dataFilter){J=H.dataFilter(J,I)}if(typeof J==="string"){if(I=="script"){p.globalEval(J)}if(I=="json"){J=m["eval"]("("+J+")")}}return J},param:function(F){var H=[];function I(J,K){H[H.length]=encodeURIComponent(J)+"="+encodeURIComponent(K)}if(p.isArray(F)||F.jquery){p.each(F,function(){I(this.name,this.value)})}else{for(var G in F){if(p.isArray(F[G])){p.each(F[G],function(){I(G,this)})}else{I(G,p.isFunction(F[G])?F[G]():F[G])}}}return H.join("&").replace(/%20/g,"+")}});var n={},o,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function u(G,F){var H={};p.each(d.concat.apply([],d.slice(0,F)),function(){H[this]=G});return H}p.fn.extend({show:function(K,M){if(K){return this.animate(u("show",3),K,M)}else{for(var I=0,G=this.length;I<G;I++){var F=p.data(this[I],"olddisplay");this[I].style.display=F||"";if(p.css(this[I],"display")==="none"){var H=this[I].tagName,L;if(n[H]){L=n[H]}else{var J=p("<"+H+" />").appendTo("body");L=J.css("display");if(L==="none"){L="block"}J.remove();n[H]=L}p.data(this[I],"olddisplay",L)}}for(var I=0,G=this.length;I<G;I++){this[I].style.display=p.data(this[I],"olddisplay")||""}return this}},hide:function(I,J){if(I){return this.animate(u("hide",3),I,J)}else{for(var H=0,G=this.length;H<G;H++){var F=p.data(this[H],"olddisplay");if(!F&&F!=="none"){p.data(this[H],"olddisplay",p.css(this[H],"display"))}}for(var H=0,G=this.length;H<G;H++){this[H].style.display="none"}return this}},_toggle:p.fn.toggle,toggle:function(H,G){var F=typeof H==="boolean";return p.isFunction(H)&&p.isFunction(G)?this._toggle.apply(this,arguments):H==null||F?this.each(function(){var I=F?H:p(this).is(":hidden");p(this)[I?"show":"hide"]()}):this.animate(u("toggle",3),H,G)},fadeTo:function(F,H,G){return this.animate({opacity:H},F,G)},animate:function(J,G,I,H){var F=p.speed(G,I,H);return this[F.queue===false?"each":"queue"](function(){var L=p.extend({},F),N,M=this.nodeType==1&&p(this).is(":hidden"),K=this;for(N in J){if(J[N]=="hide"&&M||J[N]=="show"&&!M){return L.complete.call(this)}if((N=="height"||N=="width")&&this.style){L.display=p.css(this,"display");L.overflow=this.style.overflow}}if(L.overflow!=null){this.style.overflow="hidden"}L.curAnim=p.extend({},J);p.each(J,function(P,T){var S=new p.fx(K,L,P);if(/toggle|show|hide/.test(T)){S[T=="toggle"?M?"show":"hide":T](J)}else{var R=T.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),U=S.cur(true)||0;if(R){var O=parseFloat(R[2]),Q=R[3]||"px";if(Q!="px"){K.style[P]=(O||1)+Q;U=((O||1)/S.cur(true))*U;K.style[P]=U+Q}if(R[1]){O=((R[1]=="-="?-1:1)*O)+U}S.custom(U,O,Q)}else{S.custom(U,T,"")}}});return true})},stop:function(G,F){var H=p.timers;if(G){this.queue([])}this.each(function(){for(var I=H.length-1;I>=0;I--){if(H[I].elem==this){if(F){H[I](true)}H.splice(I,1)}}});if(!F){this.dequeue()}return this}});p.each({slideDown:u("show",1),slideUp:u("hide",1),slideToggle:u("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(F,G){p.fn[F]=function(H,I){return this.animate(G,H,I)}});p.extend({speed:function(H,I,G){var F=typeof H==="object"?H:{complete:G||!G&&I||p.isFunction(H)&&H,duration:H,easing:G&&I||I&&!p.isFunction(I)&&I};F.duration=p.fx.off?0:typeof F.duration==="number"?F.duration:p.fx.speeds[F.duration]||p.fx.speeds._default;F.old=F.complete;F.complete=function(){if(F.queue!==false){p(this).dequeue()}if(p.isFunction(F.old)){F.old.call(this)}};return F},easing:{linear:function(H,I,F,G){return F+G*H},swing:function(H,I,F,G){return((-Math.cos(H*Math.PI)/2)+0.5)*G+F}},timers:[],fx:function(G,F,H){this.options=F;this.elem=G;this.prop=H;if(!F.orig){F.orig={}}}});p.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(p.fx.step[this.prop]||p.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(G){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var F=parseFloat(p.css(this.elem,this.prop,G));return F&&F>-10000?F:parseFloat(p.curCSS(this.elem,this.prop))||0},custom:function(J,I,H){this.startTime=e();this.start=J;this.end=I;this.unit=H||this.unit||"px";this.now=this.start;this.pos=this.state=0;var F=this;function G(K){return F.step(K)}G.elem=this.elem;if(G()&&p.timers.push(G)&&!o){o=setInterval(function(){var L=p.timers;for(var K=0;K<L.length;K++){if(!L[K]()){L.splice(K--,1)}}if(!L.length){clearInterval(o);o=g}},13)}},show:function(){this.options.orig[this.prop]=p.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());p(this.elem).show()},hide:function(){this.options.orig[this.prop]=p.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(I){var H=e();if(I||H>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var F=true;for(var G in this.options.curAnim){if(this.options.curAnim[G]!==true){F=false}}if(F){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(p.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){p(this.elem).hide()}if(this.options.hide||this.options.show){for(var J in this.options.curAnim){p.attr(this.elem.style,J,this.options.orig[J])}}this.options.complete.call(this.elem)}return false}else{var K=H-this.startTime;this.state=K/this.options.duration;this.pos=p.easing[this.options.easing||(p.easing.swing?"swing":"linear")](this.state,K,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};p.extend(p.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(F){p.attr(F.elem.style,"opacity",F.now)},_default:function(F){if(F.elem.style&&F.elem.style[F.prop]!=null){F.elem.style[F.prop]=F.now+F.unit}else{F.elem[F.prop]=F.now}}}});if(document.documentElement.getBoundingClientRect){p.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return p.offset.bodyOffset(this[0])}var H=this[0].getBoundingClientRect(),K=this[0].ownerDocument,G=K.body,F=K.documentElement,M=F.clientTop||G.clientTop||0,L=F.clientLeft||G.clientLeft||0,J=H.top+(self.pageYOffset||p.boxModel&&F.scrollTop||G.scrollTop)-M,I=H.left+(self.pageXOffset||p.boxModel&&F.scrollLeft||G.scrollLeft)-L;return{top:J,left:I}}}else{p.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return p.offset.bodyOffset(this[0])}p.offset.initialized||p.offset.initialize();var K=this[0],H=K.offsetParent,G=K,P=K.ownerDocument,N,I=P.documentElement,L=P.body,M=P.defaultView,F=M.getComputedStyle(K,null),O=K.offsetTop,J=K.offsetLeft;while((K=K.parentNode)&&K!==L&&K!==I){N=M.getComputedStyle(K,null);O-=K.scrollTop,J-=K.scrollLeft;if(K===H){O+=K.offsetTop,J+=K.offsetLeft;if(p.offset.doesNotAddBorder&&!(p.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(K.tagName))){O+=parseInt(N.borderTopWidth,10)||0,J+=parseInt(N.borderLeftWidth,10)||0}G=H,H=K.offsetParent}if(p.offset.subtractsBorderForOverflowNotVisible&&N.overflow!=="visible"){O+=parseInt(N.borderTopWidth,10)||0,J+=parseInt(N.borderLeftWidth,10)||0}F=N}if(F.position==="relative"||F.position==="static"){O+=L.offsetTop,J+=L.offsetLeft}if(F.position==="fixed"){O+=Math.max(I.scrollTop,L.scrollTop),J+=Math.max(I.scrollLeft,L.scrollLeft)}return{top:O,left:J}}}p.offset={initialize:function(){if(this.initialized){return}var M=document.body,G=document.createElement("div"),I,H,O,J,N,F,K=M.style.marginTop,L='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';N={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(F in N){G.style[F]=N[F]}G.innerHTML=L;M.insertBefore(G,M.firstChild);I=G.firstChild,H=I.firstChild,J=I.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(H.offsetTop!==5);this.doesAddBorderForTableAndCells=(J.offsetTop===5);I.style.overflow="hidden",I.style.position="relative";this.subtractsBorderForOverflowNotVisible=(H.offsetTop===-5);M.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(M.offsetTop===0);M.style.marginTop=K;M.removeChild(G);this.initialized=true},bodyOffset:function(F){p.offset.initialized||p.offset.initialize();var H=F.offsetTop,G=F.offsetLeft;if(p.offset.doesNotIncludeMarginInBodyOffset){H+=parseInt(p.curCSS(F,"marginTop",true),10)||0,G+=parseInt(p.curCSS(F,"marginLeft",true),10)||0}return{top:H,left:G}}};p.fn.extend({position:function(){var J=0,I=0,G;if(this[0]){var H=this.offsetParent(),K=this.offset(),F=/^body|html$/i.test(H[0].tagName)?{top:0,left:0}:H.offset();K.top-=k(this,"marginTop");K.left-=k(this,"marginLeft");F.top+=k(H,"borderTopWidth");F.left+=k(H,"borderLeftWidth");G={top:K.top-F.top,left:K.left-F.left}}return G},offsetParent:function(){var F=this[0].offsetParent||document.body;while(F&&(!/^body|html$/i.test(F.tagName)&&p.css(F,"position")=="static")){F=F.offsetParent}return p(F)}});p.each(["Left","Top"],function(G,F){var H="scroll"+F;p.fn[H]=function(I){if(!this[0]){return null}return I!==g?this.each(function(){this==m||this==document?m.scrollTo(!G?I:p(m).scrollLeft(),G?I:p(m).scrollTop()):this[H]=I}):this[0]==m||this[0]==document?self[G?"pageYOffset":"pageXOffset"]||p.boxModel&&document.documentElement[H]||document.body[H]:this[0][H]}});p.each(["Height","Width"],function(J,H){var F=J?"Left":"Top",I=J?"Right":"Bottom",G=H.toLowerCase();p.fn["inner"+H]=function(){return this[0]?p.css(this[0],G,false,"padding"):null};p.fn["outer"+H]=function(L){return this[0]?p.css(this[0],G,false,L?"margin":"border"):null};var K=H.toLowerCase();p.fn[K]=function(L){return this[0]==m?document.compatMode=="CSS1Compat"&&document.documentElement["client"+H]||document.body["client"+H]:this[0]==document?Math.max(document.documentElement["client"+H],document.body["scroll"+H],document.documentElement["scroll"+H],document.body["offset"+H],document.documentElement["offset"+H]):L===g?(this.length?p.css(this[0],K):null):this.css(K,typeof L==="string"?L:L+"px")}})})();var CPB=CPB||{};CPB.track=function(b,c,a){if(_gaq){_gaq.push(["_trackEvent",b,c,a])}return false};$(document).ready(function(){$("#Header .Pagination li a").bind("click",function(){CPB.track("on click","navigation","more clients")});$("#Jobs .Pagination li a").bind("click",function(){CPB.track("on click","Jobs","scroll")});$("#Jobs .see_more_link a").bind("click",function(){CPB.track("on click","Jobs","See All")});$("#Jobs .MediaContainer ul li").bind("click",function(){var a=$(this).find("h3 a").html();CPB.track("on click","Jobs",a)});$("#Share ul li a").not(".mail").not(".share_this").bind("click",function(){var a=$(this).html();CPB.track("on click","Share",a)});$("a.share_this").bind("click",function(){CPB.track("on click","Share","share this")});$("a.mail").bind("click",function(){CPB.track("on click","Share","mail")});$("#Queue .MediaContainer ul li a").live("click",function(){CPB.track("on click","Queue","counting only")});$("#Queue ul.Pagination li.Previous a").live("click",function(){CPB.track("on click","arrow up","queue")});$("#Queue ul.Pagination li.Next a").live("click",function(){CPB.track("on click","arrow down","queue")});$("#Featured ul.Pagination li.Previous a").live("click",function(){CPB.track("on click","arrow up","bubbled up")});$("#Featured ul.Pagination li.Next a").live("click",function(){CPB.track("on click","arrow down","bubbled up")});$("#Featured .MediaContainer ul li a").live("click",function(){var a=$(this).attr("title");CPB.track("on click","bubbled up",a)});$("#Twitter .MediaContainer ul li a").live("click",function(){CPB.track("on click","Twitter","counting only")});$("#Twitter .Pagination a").bind("click",function(){CPB.track("on click","Twitter","Read More")});$("#News .MediaContainer ul li a").live("click",function(){CPB.track("on click","News","counting only")});$("#News .Pagination a").bind("click",function(){CPB.track("on click","News","Read More")});$("#Freelance .MediaContainer ul li").bind("click",function(){var a=$(this).find("h3 a").html();CPB.track("on click","Freelance",a)});$("#Footer a").bind("click",function(){var a=$(this).html();CPB.track("on click","Footer",a)});$("#maps li a").live("click",function(){var a=$(this).parent().html().replace(/(<([^>]+)>)/ig,"").replace(/([0-9]|\+|\.)/g,"").replace(/^\s+|\s+$/g,"");CPB.track("on click","directions","overlay - "+a)});$("a[href=mailto:info@cpbgroup.com]").live("click",function(){CPB.track("on click","email contact","overlay - info")});$(document).bind("reloaded",function(){if(_gaq){_gaq.push(["_trackPageview",window.location])}})});(function($){$.extend({metadata:{defaults:{type:"class",name:"metadata",cre:/({.*})/,single:"metadata"},setType:function(type,name){this.defaults.type=type;this.defaults.name=name},get:function(elem,opts){var settings=$.extend({},this.defaults,opts);if(!settings.single.length){settings.single="metadata"}var data=$.data(elem,settings.single);if(data){return data}data="{}";var getData=function(data){if(typeof data!="string"){return data}if(data.indexOf("{")<0){data=eval("("+data+")")}};var getObject=function(data){if(typeof data!="string"){return data}data=eval("("+data+")");return data};if(settings.type=="html5"){var object={};$(elem.attributes).each(function(){var name=this.nodeName;if(name.match(/^data-/)){name=name.replace(/^data-/,"")}else{return true}object[name]=getObject(this.nodeValue)})}else{if(settings.type=="class"){var m=settings.cre.exec(elem.className);if(m){data=m[1]}}else{if(settings.type=="elem"){if(!elem.getElementsByTagName){return}var e=elem.getElementsByTagName(settings.name);if(e.length){data=$.trim(e[0].innerHTML)}}else{if(elem.getAttribute!=undefined){var attr=elem.getAttribute(settings.name);if(attr){data=attr}}}}object=getObject(data.indexOf("{")<0?"{"+data+"}":data)}$.data(elem,settings.single,object);return object}}});$.fn.metadata=function(opts){return $.metadata.get(this[0],opts)}})(jQuery);(function(a){a.fn.centerInClient=function(b){var c={forceAbsolute:false,container:window,completeHandler:null};a.extend(c,b);return this.each(function(f){var h=a(this);var g=a(c.container);var e=c.container==window;if(c.forceAbsolute){if(e){h.remove().appendTo("body")}else{h.remove().appendTo(g.get(0))}}h.css("position","absolute");var j=e?2:1.8;var d=(e?g.width():g.outerWidth())/2-h.outerWidth()/2;var k=(e?g.height():g.outerHeight())/j-h.outerHeight()/2;h.css("left",d+g.scrollLeft());h.css("top",k+g.scrollTop());if(c.completeHandler){c.completeHandler(this)}})}})(jQuery);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}}}}}();var SWFID;var obj=new Object;function checkObj(){if(SWFID){createObj();return true}else{alert('YouTubeLoader: In order to call methods within a swf, you must first set the variable "SWFID"!');return false}}function createObj(){obj=document.getElementById(SWFID)}function onYouTubePlayerReady(a){if(checkObj()){obj.addEventListener("onStateChange","onytplayerStateChange");obj.addEventListener("onError","onPlayerError")}secondaryOnYouTubePlayerReady(a)}function onytplayerStateChange(a){obj.playerStateUpdateHandler(a)}function loadVideoById(b,a){if(checkObj()){obj.loadVideoById(b,a)}}function setVideoData(b){if(checkObj()){try{obj.setVideoData(b)}catch(a){$(document).trigger("loaderror")}}}function cueNewVideo(b,a){if(checkObj()){obj.cueVideoById(b,a)}}function clearVideo(){if(checkObj()){obj.clearVideo()}}function setSize(a,b){if(checkObj()){obj.setSize(a,b)}}function play(){if(checkObj()){obj.playVideo()}}function pause(){if(checkObj()){obj.pauseVideo()}}function stop(){if(checkObj()){obj.stopVideo()}}function seekTo(a){if(checkObj()){obj.seekTo(a,true)}}function getPlayerState(){if(checkObj()){return obj.getPlayerState()}}function getBytesLoaded(){if(checkObj()){return obj.getVideoBytesLoaded()}}function getBytesTotal(){if(checkObj()){return obj.getVideoBytesTotal()}}function getCurrentTime(){if(checkObj()){return obj.getCurrentTime()}}function getDuration(){if(checkObj()){return obj.getDuration()}}function getStartBytes(){if(checkObj()){return obj.getVideoStartBytes()}}function setVolume(a){if(checkObj()){obj.setVolume(a)}}function getVolume(){if(checkObj()){return obj.getVolume()}}function mute(){if(checkObj()){obj.mute()}}function unMute(){if(checkObj()){obj.unMute()}}function getEmbedCode(){if(checkObj()){return obj.getVideoEmbedCode()}}function getVideoUrl(){if(checkObj()){return obj.getVideoUrl()}}function onPlayerError(a){if(checkObj()){obj.onPlayerError(a)}}function nextVideo(){if(checkObj()){obj.nextVideo()}}function prevVideo(){if(checkObj()){obj.prevVideo()}}function updateColor(a){function c(d){d=d.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);function e(f){hexDigits=new Array("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f");return isNaN(f)?"00":hexDigits[(f-f%16)/16]+hexDigits[f%16]}return"#"+e(d[1])+e(d[2])+e(d[3])}if(typeof(a)=="string"){if(a.indexOf("rgb")==0){a=c(a)}a=a.replace("#","");if(a.length==3){var b=[];for(i=0;i<a.length;i++){b[2*i]=a[i];b[2*i+1]=a[i]}a=b.join("")}if(a.match(/([A-Fa-f0-9]){6}/)){obj.updateColor(a)}}}(function(e){e.fn.popup=function(g){var h=e.extend({},e.fn.popup.defaults,g);return this.each(function(){$this=e(this);var j=e.meta?e.extend({},h,$this.data()):h;$this.click(c)})};function c(){var g=d(),h=e(this);f();if(g){}else{a(h)}return false}function f(){e(".popup").remove()}function a(h){var g=h.attr("href");e.ajax({url:g,type:"GET",dataType:"html",complete:function(){},success:function(j){e("#PageWrapper").append(j);e(".popup > div").centerInClient();e(".popup_close, .overlay",".popup").click(function(){e(".popup").remove();return false})},error:function(){}})}function d(){var g=false;return g}function b(g){if(window.console&&window.console.log){window.console.log(g)}}e.fn.popup.format=function(g){return"<strong>"+g+"</strong>"};e.fn.popup.defaults={foreground:"red",background:"yellow"}})(jQuery);if(window.location.pathname.match(/^\/topics\//)){window.location.replace("/"+window.location.pathname.replace(/^\/topics\//,"#"))}var CPB=CPB||{};CPB.yo=function(c){var b=CPB.yo.i+"";var a="0000";b=a.substr(0,4-b.length)+b;if(window.console){console.log(b+": "+c)}CPB.yo.i++};CPB.yo.i=0;CPB.progressiveEnhance=$.browser.safari&&parseInt($.browser.version.split(".")[0],10)>=530&&!navigator.userAgent.match(/(iPad|iPhone)/);var CPB=CPB||{};CPB.preloadImages=function(){for(var a=0;a<arguments.length;a++){$("<img>").attr("src",arguments[a])}};CPB.tokenize=function(d,b,f){var a,d,c=d.slice(1,-1);if(c.indexOf(".")>=0){var e=c.split(".");for(i=0;i<e.length;i++){b=b[e[i]]}d=b}else{d=b[c]}if(f){return d.replace(/\'/g,"\\'")||""}else{return d}};CPB.hashPath=function(a){return"#"+a.replace(/^\/topics\//,"")};CPB.timestamp=function(){var a=new Date();return a.getTime()};CPB.hashHandler=function(){var d=$("Nav > li a"),b=$("#Nav > li a").eq(0).attr("href"),c,a;b=b.replace("/topics/","");if(!(/^#/.test(window.location.hash))){window.location.hash=b}else{if(window.location.hash!=b){c="/topics/"+window.location.hash.replace(/^#/,"");$reloadLink=$("#Nav a[href="+c+"]");$reloadLink.trigger("mousedown")}}};CPB.history=function(b){if(typeof(b)!="function"){throw"History mapping received invalid callback function: "+b}var a=this;a.currentLocation=window.location.hash;a.historyCheck=setInterval(function(){if(window.location.hash!=a.currentLocation){a.currentLocation=window.location.hash;b(a.currentLocation)}},200)};CPB.history.prototype.constructor=CPB.history;CPB.history.prototype.setLocation=function(a){};CPB.updateShareLinks=function(){var c=$("#Share a");c.each(function(){var f=$(this),e=f.get(0),d="http://www.cpbgroup.com",g=window.location.hash;if(""==g){a(e)}else{b(e,g)}});function a(d){d.href=d.href.replace(/#[^\W]*/,"")}function b(d,e){if(/#/.test(d.href)){d.href=d.href.replace(/#[^\W]*/,e)}else{d.href+=e}}};CPB.updatePageTitle=function(){var b=" : ",c=window.location.hash.replace(/#/,""),a="CP+B | Advertising & Design Factory";if(""==c){document.title=a}else{if(/:/.test(document.title)){document.title=document.title.replace(/:.*$/,b+c)}else{document.title+=b+c}}};CPB.dispatcher={retrieving:{set:function(b,a,c){if(b){this.active=true;this.targetURL=a;this.callback=c}else{this.active=false;this.targetURL=null;this.callback=null}},active:false,targetURL:null,callback:null},xhr:null,queue:[],process:function(a,c,b){if(typeof(c)!="function"){throw"Syntax error, unrecognized expression: "+c}if(!this.retrieving.active){this.dispatch(a,c)}else{this.queue.push({targetURL:a,callback:c})}},dispatch:function(a,c){var b=this;b.xhr=$.ajax({url:a,type:"get",dataType:"json",beforeSend:function(){b.retrieving.set(true,a,c)},success:function(d){c(d)},error:function(){},complete:function(){b.retrieving.set(false);b.processQueue()}})},processQueue:function(){if(this.queue.length>0){this.dispatch(this.queue[0].targetURL,this.queue[0].callback);this.queue.shift()}},abort:function(){this.xhr.abort()},interrupt:function(a,b){this.abort();this.queue.unshift({targetURL:this.retrieving.targetURL,callback:this.retrieving.callback});this.dispatch(a,b)},reset:function(){this.queue=[];if(this.xhr){this.abort()}}};var CPB=CPB||{};CPB.topic=window.location.pathname=="/"?"/topics/cpb":window.location.pathname;CPB.defaults={updatePath:"/update/{shortName}.json",paginatePath:"/more/{shortName}",defaultLoaded:12,paginateLimit:12};CPB.modules=[];CPB.reload=function(b,c){CPB.topic=c.path=="/"?"/topics/cpb":c.path;var a=CPB.topic.replace(/^\/topics\//,"");$("#PageWrapper").removeAttr("class").addClass(a);CPB.deepLinking.currentLocation=window.location.hash=CPB.hashPath(CPB.topic);CPB.dispatcher.reset();$("div.Loader").show();CPB.updateShareLinks();CPB.updatePageTitle();CPB.dispatcher.process(CPB.topic.replace(/\/$/,"")+".json",function(f){for(var e in CPB.modules){var d=CPB.modules[e];d.render(d.view.reload,f[d.shortName]);d.paginateOffset=d.defaultLoaded||CPB.defaults.defaultLoaded}$(document).trigger("reloaded");$("div.Loader").hide()})};CPB.initOnReady=function(a){for(var b in CPB.modules){CPB.modules[b].initOnReady()}CPB.deepLinking=new CPB.history(function(c){if(window.location.hash=="#contact"){$(".contact_us").trigger("click");return false}var d=window.location.hash?"/topics/"+window.location.hash.slice(1):"/topics/cpb";$(a).filter(function(){return $(this).attr("href")==d}).trigger("mousedown")});CPB.updateShareLinks();CPB.updatePageTitle();$(a).bind("mousedown.reload",function(c){c.preventDefault();if(!$(this).closest("li").hasClass("active")){var d=$(this).attr("href");CPB.reload(c,{path:d})}});$(a).bind("click.reload",function(c){c.preventDefault()})};CPB.module=function(){};CPB.module.prototype.constructor=CPB.module;CPB.module.prototype.reload=function(b,c){var a=this;a.lastUpdate=CPB.timestamp();a.path=c.path;CPB.dispatcher.process(c.path,function(d){a.render(a.view.reload,d[a.shortName])});a.lastUpdate=CPB.timestamp()};CPB.module.prototype.render=function(a,b){a(b)};CPB.remoteModule=function(a,b){var c=this;if(!a||a==""){throw"module shortname can not be blank: "+this}c.shortName=a;c.topicPrefix=b.topicPrefix||CPB.defaults.topicPrefix;c.lastUpdate=CPB.timestamp();c.updatePath=b.updatePath||CPB.defaults.updatePath.replace(/\{[^\}]*\}/g,function(d){return c[d.slice(1,-1)]});c.updateBindPoint=b.updateBindPoint;c.paginatePath=b.paginatePath||CPB.defaults.paginatePath.replace(/\{[^\}]*\}/g,function(d){return c[d.slice(1,-1)]});c.defaultLoaded=b.defaultLoaded||CPB.defaults.defaultLoaded;c.paginateOffset=c.defaultLoaded;c.paginateLimit=b.paginateLimit||CPB.defaults.paginateLimit;c.paginateBindPoint=b.paginateBindPoint;c.autoUpdate=b.autoUpdate||false;c.autoUpdateInterval=b.autoUpdateInterval||60000;c.loader=b.loader;if(b.callback&&typeof(b.callback)=="function"){c.initOnReadyCallback=b.callback}CPB.modules.push(this);c.view={reload:null,update:null,paginate:null,partial:{}};$(document).bind("reload."+a,function(d,e){c.reload(d,e)});$(document).bind("update."+a,function(d,e){c.update(d,e)});$(document).bind("paginate."+a,function(d,e){c.paginate(d,e)})};CPB.remoteModule.prototype=new CPB.module;CPB.remoteModule.prototype.constructor=CPB.remoteModule;CPB.remoteModule.prototype.initOnReady=function(){var a=this;if(a.paginateBindPoint){$(a.paginateBindPoint).bind("click.paginate",function(b){b.preventDefault();$(document).trigger("paginate."+a.shortName,{path:a.paginatePath})})}if(a.updateBindPoint){$(a.updateBindPoint).bind("click.update",function(b){b.preventDefault();$(document).trigger("update."+a.shortName,{path:a.updatePath})})}if(a.autoUpdate){a.autoUpdate=setInterval(function(){$(document).trigger("update."+a.shortName,{path:a.updatePath})},a.autoUpdateInterval)}if(a.initOnReadyCallback){a.initOnReadyCallback()}a.lastUpdate=CPB.timestamp()};CPB.remoteModule.prototype.update=function(b,c){var a=this;CPB.dispatcher.process(CPB.topic+a.updatePath,function(d){a.render(a.view.update,d[a.shortName])});a.lastUpdate=CPB.timestamp()};CPB.remoteModule.prototype.paginate=function(b,c){var a=this;$(a.loader).show();CPB.dispatcher.process(CPB.topic+a.paginatePath+"/"+a.paginateLimit+"/"+a.paginateOffset+".json",function(d){a.render(a.view.paginate,d[a.shortName]);a.paginateOffset=a.paginateOffset+12;$(a.loader).hide()})};CPB.localModule=function(a,b){var c=this;if(!a||a==""){throw"module shortname can not be blank: "+this}c.shortName=a;c.paginateNextBindPoint=b.paginateNextBindPoint;c.paginatePreviousBindPoint=b.paginatePreviousBindPoint;if(b.callback&&typeof(b.callback)=="function"){c.initOnReadyCallback=b.callback}CPB.modules.push(this);c.view={reload:null,partial:{}};$(document).bind("reload."+a,function(d,e){c.reload(d,e)});$(document).bind("paginate."+a,function(d,e){c.paginate(d,e)})};CPB.localModule.prototype=new CPB.module;CPB.localModule.prototype.constructor=CPB.localModule;CPB.localModule.prototype.initOnReady=function(){var a=this;if(a.paginateNextBindPoint){$(a.paginateNextBindPoint).bind("click.paginate.next",function(b){b.preventDefault();$(document).trigger("paginate."+a.shortName,{direction:1})})}if(a.paginatePreviousBindPoint){$(a.paginatePreviousBindPoint).bind("click.paginate.previous",function(b){b.preventDefault();$(document).trigger("paginate."+a.shortName,{direction:-1})})}if(a.initOnReadyCallback){a.initOnReadyCallback()}};CPB.localModule.prototype.paginate=function(b,c){var a=this;a.render(a.view.paginate,c)};CPB.twitter=new CPB.remoteModule("twitter",{selector:"#Twitter",paginateBindPoint:"#Twitter p.Pagination a",autoUpdate:true,autoUpdateInterval:45000,loader:"#Twitter p.Pagination span.loader",callback:function(){$("#Twitter div.MediaContainer ul li").hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")});$("#Twitter .MediaContainer ul li img").each(function(){var b=this;var a=$(this)});$("#Twitter .MediaContainer ul li").live("click",function(b){var a=$(this);window.open(a.find("a.twi_username").attr("href"));return false});$("#Twitter .MediaContainer ul li a").live("click",function(b){var a=$(this);window.open(a.attr("href"));return false});CPB.twitter.onLoad()}});CPB.twitter.onLoad=function(){$("#Twitter #twitter_feed img").load(function(){var a=$(this);if(this.naturalHeight==0){a.attr("src","/img/failwhale.jpg")}})};CPB.twitter.view.update=function(c){if(c.length>0){var a=$("#Twitter #twitter_feed");var b=CPB.twitter.view.partial.posts(c);if(b&&b!=""){var e=$(b);e.find("span.twi_message").each(function(){var f=$(this).html().replace(/(ftp|http|https|file):\/\/[\S]+(\b|$)/gim,'<a href="$&" class="my_link" target="_blank">$&</a>');$(this).html(f)});e.addClass("staged").prependTo(a);CPB.twitter.onLoad();var d=e.outerHeight();a.css({top:-1*d});e.removeClass("staged");a.animate({top:0},250)}}};CPB.twitter.view.paginate=function(b){if(b.length>0){var a=CPB.twitter.view.partial.posts(b);if(a&&a!=""){var c=$(a);c.find("span.twi_message").each(function(){var d=$(this).html().replace(/(ftp|http|https|file):\/\/[\S]+(\b|$)/gim,'<a href="$&" class="my_link" target="_blank">$&</a>');$(this).html(d)});$("#Twitter #twitter_feed").append(c);CPB.twitter.onLoad();$("#Twitter .MediaContainer div:first").animate({height:$("#Twitter #twitter_feed").outerHeight()},500)}}};CPB.twitter.view.reload=function(a){if(CPB.progressiveEnhance){var b=$("#Twitter .MediaContainer");$("div:first",b).animate({height:"865px"},400);$("#Twitter #twitter_feed").animate({top:"866px"},400,"swing",function(){var c=$(this);c.html(CPB.twitter.view.partial.posts(a)).css({top:-1*c.outerHeight()}).animate({top:0},400)})}else{var b=$("#Twitter .MediaContainer");$("div:first",b).css({height:"865px"});$("#Twitter #twitter_feed").html(CPB.twitter.view.partial.posts(a));$("#Twitter #twitter_feed .twi_message").each(function(){var c=$(this).html().replace(/(ftp|http|https|file):\/\/[\S]+(\b|$)/gim,'<a href="$&" class="my_link" target="_blank">$&</a>');$(this).html(c)})}CPB.twitter.onLoad()};CPB.twitter.view.partial.posts=function(f){var g=false,e="",c="",d=$("#Twitter #twitter_feed li:first").attr("id")||"-999999999";d=d.replace("twitter_","");for(var a in f){if(a!=0){e+=CPB.twitter.view.partial.date(f[a].date)}for(var b in f[a].posts){if(f[a].posts[b].id==d){g=true;break}e+=CPB.twitter.view.partial.post(f[a].posts[b])}if(g){break}}return e};CPB.twitter.view.partial.date=function(b){var a='<li class="date"><p class="'+window.location.hash.slice(1)+'"><span class="date date_{date}">{date}</span><span class="month month_{month_abbr}">{month}</span><span class="year year_{year}">{year}</span><span class="day_of_week day_{day_abbr}">{day}</span></p></li>';a=a.replace(/\{[^\}]*\}/g,function(c){return CPB.tokenize(c,b)});return a};CPB.twitter.view.partial.post=function(b){var a='<li class="{topic}" id="twitter_{id}"><p><span class="twi_icon_overlay"></span><img src="{user.profile_image_url}" alt="{user.name}" /><a href="http://www.twitter.com/{user.screen_name}" class="twi_username" rel="NewWindow">{user.name}</a> <abbr>{created_at}</abbr><span class="twi_message">{text}</span></p></li>';a=a.replace(/\{[^\}]*\}/g,function(c){return CPB.tokenize(c,b)});return a};CPB.news=new CPB.remoteModule("articles",{selector:"#News",paginateBindPoint:"#News p.Pagination a",autoUpdate:true,autoUpdateInterval:240000,loader:"#News p.Pagination span.loader",callback:function(){$("#News .MediaContainer ul li").live("click",function(){var a=$(this);window.open(a.find("a:first").attr("href"));return false});$("#News .MediaContainer ul li a").live("click",function(){var a=$(this);window.open(a.attr("href"));return false})}});CPB.news.view.update=function(c){if(c.length>0){var a=$("#News #news_feed");var b=CPB.news.view.partial.posts(c);if(b&&b!=""){var e=$(b);e.addClass("staged").prependTo(a);var d=e.outerHeight();a.css({top:-1*d});e.removeClass("staged");a.animate({top:0},250)}}};CPB.news.view.paginate=function(b){if(b.length>0){var a=CPB.news.view.partial.posts(b);if(a&&a!=""){$("#News #news_feed").append($(a));$("#News .MediaContainer div:first").animate({height:$("#News #news_feed").outerHeight()},500)}}};CPB.news.view.reload=function(a){if(CPB.progressiveEnhance){var b=$("#News .MediaContainer");$("div:first",b).animate({height:"865px"},400);$("#News #news_feed").animate({top:"1055px"},400,"swing",function(){var c=$(this);c.html(CPB.news.view.partial.posts(a)).css({top:-1*c.outerHeight()}).animate({top:0},400)})}else{var b=$("#News .MediaContainer");$("div:first",b).css({height:"865px"});$("#News #news_feed").html(CPB.news.view.partial.posts(a))}};CPB.news.view.partial.posts=function(f){var g=false,e="",c="",d=$("#News #news_feed li:first").attr("id")||"-9999999";d=d.replace("news_","");for(var a in f){if(a!=0){e+=CPB.news.view.partial.date(f[a].date)}for(var b in f[a].posts){if(f[a].posts[b].id==d){g=true;break}e+=CPB.news.view.partial.post(f[a].posts[b])}if(g){break}}return e};CPB.news.view.partial.date=function(b){var a='<li class="date"><p class="'+window.location.hash.slice(1)+' {topic}"><span class="date date_{date}">{date}</span><span class="month month_{month_abbr}">{month}</span><span class="year year_{year}">{year}</span><span class="day_of_week day_{day_abbr}">{day}</span></p></li>';a=a.replace(/\{[^\}]*\}/g,function(c){return CPB.tokenize(c,b)});return a};CPB.news.view.partial.post=function(b){var a='<li class="{topic}" id="news_{id}"><p><a href="{location}" rel="NewWindow">{title}</a> <abbr>{created_at} - by {source.name}</abbr></p></li>';a=a.replace(/\{[^\}]*\}/g,function(c){return CPB.tokenize(c,b)});return a};CPB.media={paginate:function(c,a,j,k,m,b,e,o,h){var g,d=$(k),f=$(j),n=$(a),l=Math.abs(parseInt(n.css("top"),10)),o=n.outerHeight(true),p=$(c);if(!f.hasClass("disabled")&&m==1||!d.hasClass("disabled")&&m==-1){if(o<l+(2*b)+14&&m==1){b=o-(l+h)-b;f.addClass("disabled")}else{if(Math.abs(b)>l&&m==-1){b=(-1*l)-h;d.addClass("disabled")}}if(m==1){d.removeClass("disabled")}else{if(m==-1){f.removeClass("disabled")}}n.animate({top:"-="+b+"px"},100,"swing",function(){})}},reload:function(f,b,a,e,g,c,j,d,h){if(CPB.progressiveEnhance){$(a).animate({top:"255px"},400,"swing",function(){$(this).html(f);$(this).css({top:-1*$(this).outerHeight()}).animate({top:7},400,"swing",function(){if(typeof(h)=="function"){h()}})})}else{$(a).html(f).css("top",7);if(typeof(h)=="function"){h()}}$(g).addClass("disabled");if($(a).find("li").size()<c){$(e).addClass("disabled")}}};function initYouTubePlayer(){if(CPB.broadcastOverlay==false){var a=CPB.queue.createPlayList();setVideoData(a)}}CPB.queue=new CPB.localModule("queue",{paginateNextBindPoint:"#Queue ul.Pagination li.Next a",paginatePreviousBindPoint:"#Queue ul.Pagination li.Previous a"});CPB.queue.superInit=CPB.queue.initOnReady;CPB.queue.initOnReady=function(){CPB.queue.superInit();this.initializeYouTubePlayer()};CPB.queue.swfid=SWFID="VideoPlayer";CPB.queue.flashEnabled=false;CPB.queue.html5Enabled=false;CPB.queue.updateHTML=function(b,a){document.getElementByID(b).innerHTML=a};CPB.queue.updateytplayerInfo=function(){updateHTML("bytesloaded",getBytesLoaded());updateHTML("bytestotal",getBytesTotal());updateHTML("videoduration",getDuration());updateHTML("videotime",getCurrentTime());updateHTML("startbytes",getStartBytes());updateHTML("volume",getVolume())};CPB.queue.extractVideoIdFromUrl=function(a){var b=/[\\?&]v=([^&#]*)/.exec(a);var c="";if(b!=null){c=b[1]}return c};CPB.queue.initializeYouTubePlayer=function(){CPB.queue.bindLinksToPlayer();var c={autoStart:"true"},f={menu:"false",allowScriptAccess:"always",scale:"noscale",wmode:"opaque"},d={},b="/swf/ASYouTubeWrapper.swf",a=swfobject.getFlashPlayerVersion();if(a.major>9){swfobject.embedSWF(b,CPB.queue.swfid,"430","260","9.0.115","playerProductInstall.swf",c,f,d);CPB.queue.flashEnabled=true;var e=false;CPB.queue.setColorOnStartupIfItsTheLastThingIDo=setInterval(function(){CPB.queue.setColor()},250);setTimeout(function(){clearInterval(CPB.queue.setColorOnStartupIfItsTheLastThingIDo)},4000)}else{$("#VideoPlayer p.no_flash").show().html('<a href="http://get.adobe.com/flashplayer/">You must have Flash and Javascript enabled to watch videos.</a>');if(navigator.userAgent.match(/(iPad|iPhone)/)){CPB.queue.html5Enabled=true;CPB.queue.loadFirstVideo()}}};CPB.queue.loadFirstVideo=function(){var a=$("#youtube_module .MediaContainer ul li a").get(0).href,b=CPB.queue.extractVideoIdFromUrl(a);if(CPB.queue.flashEnabled){CPB.queue.setColor();loadVideoById(b)}else{if(CPB.queue.html5Enabled){CPB.queue.loadHtml5(b)}}};CPB.queue.loadHtml5=function(a){$("#VideoPlayer p.no_flash").show().html('<object width="430" height="260"><param name="movie" value="http://www.youtube.com/v/'+a+'&h=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/'+a+'&h=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="430" height="260"></embed></object>')};CPB.queue.bindLinksToPlayer=function(d){var a=0,c;$("#youtube_module #Player .Pagination a").unbind("click").click(function(j){var h=$(this);if(CPB.queue.flashEnabled&&h.parent().hasClass("Next")){nextVideo();CPB.track("on click","arrow next","videos")}else{if(CPB.queue.flashEnabled&&h.parent().hasClass("Previous")){prevVideo();CPB.track("on click","arrow previous","videos")}else{if(CPB.queue.html5Enabled){var f=$("#youtube_module .MediaContainer ul li a").size()-1;if(h.parent().hasClass("Previous")){if(a==0){a=f}else{a--}CPB.track("on click","arrow previous","videos")}else{if(h.parent().hasClass("Next")){if(a==f){a=0}else{a++}CPB.track("on click","arrow next","videos")}}c=$("#youtube_module .MediaContainer ul li a").get(a).href;var g=CPB.queue.extractVideoIdFromUrl(c);CPB.queue.loadHtml5(g)}}}return false});var b=$("#youtube_module .MediaContainer ul li a");b.each(function(){var f=$(this),e=CPB.queue.extractVideoIdFromUrl(f.get(0).href);f.click(function(){if(CPB.queue.flashEnabled){loadVideoById(e)}else{if(CPB.queue.html5Enabled){a=f.parent().prevAll().size();CPB.queue.loadHtml5(e)}}return false})})};CPB.queue.createPlayList=function(){var b=$("#youtube_module .MediaContainer ul li a"),a=$("#youtube_module .MediaContainer ul li").attr("class"),c=[],d={};b.each(function(){var f=$(this),g=f.attr("title"),e=CPB.queue.extractVideoIdFromUrl(f.attr("href"));c.push({client:a,title:g,id:e})});return c};CPB.queue.view.paginate=function(a){var b=$("#Queue .MediaContainer ul");distance=a.direction*CPB.queue.settings.height;CPB.media.paginate(b.parent(),b,CPB.queue.paginateNextBindPoint,CPB.queue.paginatePreviousBindPoint,a.direction,distance,CPB.queue.settings.visible,CPB.queue.settings.height,CPB.queue.settings.offset)};CPB.queue.view.reload=function(a){CPB.media.reload(CPB.queue.view.partial.entries(a.posts),"#Queue div.MediaContainer","#Queue div.MediaContainer ul",CPB.queue.paginateNextBindPoint,CPB.queue.paginatePreviousBindPoint,CPB.queue.settings.visible,CPB.queue.settings.height,CPB.queue.settings.offset,function(){if($("#Queue div.MediaContainer ul li").size()<=CPB.queue.settings.visible){$("#Queue .Pagination a").addClass("disabled")}else{$("#Queue .Pagination .Next a").removeClass("disabled")}CPB.queue.setColor();var b=CPB.queue.createPlayList();if(CPB.queue.flashEnabled){setVideoData(b);CPB.queue.bindLinksToPlayer()}else{if(CPB.queue.html5Enabled){var c=b[0].id;CPB.queue.loadHtml5(c);CPB.queue.bindLinksToPlayer()}}})};CPB.queue.view.partial.entries=function(d){var a="";for(var b in d){var c='<li class="{topic}"><a href="http://www.youtube.com/watch?v={video_id}" title=\'{title}\'><img src="{image_url}" alt=\'{title}\' width="84" height="63"/><span class="overlay"></span></a></li>';a+=c.replace(/\{[^\}|^\s]*\}/g,function(e){return CPB.tokenize(e,d[b],true)})}return a};CPB.queue.settings={visible:6,height:219,offset:7};CPB.queue.setColor=function(a){try{updateColor(a||$("#Player").css("color"))}catch(b){}};CPB.featured=new CPB.localModule("featured",{paginateNextBindPoint:"#Featured ul.Pagination li.Next a",paginatePreviousBindPoint:"#Featured ul.Pagination li.Previous a"});CPB.featured.view.paginate=function(a){var c=$("#Featured .MediaContainer ul"),b=a.direction*CPB.featured.settings.height;CPB.media.paginate(c.parent(),c,CPB.featured.paginateNextBindPoint,CPB.featured.paginatePreviousBindPoint,a.direction,b,CPB.featured.settings.visible,CPB.featured.settings.height,CPB.featured.settings.offset)};CPB.featured.view.reload=function(a){CPB.media.reload(CPB.featured.view.partial.entries(a.posts),"#Featured div.MediaContainer","#Featured div.MediaContainer ul",CPB.featured.paginateNextBindPoint,CPB.featured.paginatePreviousBindPoint,CPB.featured.settings.visible,CPB.featured.settings.height,CPB.featured.settings.offset,function(){if($("#Featured div.MediaContainer ul li").size()<=CPB.featured.settings.visible){$("#Featured .Pagination a").addClass("disabled")}else{$("#Featured .Pagination .Next a").removeClass("disabled")}})};CPB.featured.view.partial.entries=function(d){var a="";for(var b in d){var c='<li class="{topic}"><a href="{location}" class="{ title: \'{title}\' }" rel="NewWindow" title="{title}"><img src="{image_url}" alt="{title}" /><span class="overlay"></span></a></li>';a+=c.replace(/\{[^\}|^\s]*\}/g,function(e){return CPB.tokenize(e,d[b],true)})}return a};CPB.featured.settings={visible:9,height:252,offset:7};CPB.jobs=CPB.jobs||{};CPB.jobs.init=function(a){$("#Jobs .MediaContainer ul li").click(function(){var b=$(this).find("a").attr("href");pause();window.open(b);return false});$("#Jobs .Pagination .Next a").click(function(b){b.preventDefault();if(!$(this).hasClass("disabled")){CPB.jobs.paginate(1)}});$("#Jobs .Pagination .Previous a").click(function(b){b.preventDefault();if(!$(this).hasClass("disabled")){CPB.jobs.paginate(-1)}});this.page=a||1;this.pages=$("#Jobs .MediaContainer ul li").size()};CPB.jobs.paginate=function(e){var c=$("#Jobs .Pagination .Previous a"),b=$("#Jobs .Pagination .Next a"),a=$("#Jobs .MediaContainer ul").height(),d=Math.abs(parseInt($("#Jobs .MediaContainer ul").css("top"),10)),g=8,h=134,f=d+g+h;this.page=this.page||1;if(e==1){c.removeClass("disabled")}else{if(e==-1){b.removeClass("disabled")}}if(!c.hasClass("disabled")&&e==-1||!b.hasClass("disabled")&&e==1){this.page+=e;if(this.page==1){c.addClass("disabled")}else{if(this.page==this.pages){b.addClass("disabled")}}$("#Jobs .MediaContainer ul").animate({top:"-="+(e*h)+"px"},150)}};$(document).ready(function(){CPB.jobs.init()});CPB.calendar=CPB.calendar||{};CPB.calendar.init=function(page){var $currentTop=$("#Calendar .MediaContainer div.wrapper ul.current").offset().top;if($currentTop){var $containerTop=$("#Calendar .MediaContainer div.wrapper").offset().top;var $adjust=parseInt($("#Calendar .MediaContainer div.wrapper").css("top"));$("#Calendar .MediaContainer div.wrapper").css("top",eval($containerTop-$currentTop+$adjust)+"px")}if($("#Calendar .MediaContainer div.wrapper").offset().top-7>=$("#Calendar .MediaContainer").offset().top){$("#Calendar .Pagination .Previous a").addClass("disabled")}else{$("#Calendar .Pagination .Previous a").removeClass("disabled")}if(eval($("#Calendar .MediaContainer div.wrapper").outerHeight()+$("#Calendar .MediaContainer div.wrapper").offset().top-$("#Calendar .MediaContainer").offset().top)<65*2){$("#Calendar .Pagination .Next a").addClass("disabled")}else{$("#Calendar .Pagination .Next a").removeClass("disabled")}$("#Calendar .MediaContainer ul li").not(".date").click(function(){var url=$(this).find("a").attr("href");try{pause()}catch(e){$(document).trigger("loaderror",{errorMessage:"There was an error pausing the video."})}CPB.track("on click","Calendar","counting only");window.open(url);return false});$("#Calendar .Pagination .Next a").click(function(e){e.preventDefault();if(!$(this).hasClass("disabled")){CPB.track("on click","Calendar","scroll");CPB.calendar.paginate(1)}});$("#Calendar .Pagination .Previous a").click(function(e){e.preventDefault();if(!$(this).hasClass("disabled")){CPB.track("on click","Calendar","scroll");CPB.calendar.paginate(-1)}});for(var i=0;i<$("#Calendar div.wrapper ul").length;i++){if($("#Calendar div.wrapper ul").eq(i).hasClass("current")){this.current=i}}this.current=this.current||0;this.distance=[]};CPB.calendar.paginate=function(j){var f=this,a,c=$("#Calendar .Pagination .Previous a"),d=$("#Calendar .Pagination .Next a"),k=$("#Calendar div.MediaContainer"),b=$("#Calendar div.wrapper ul").eq(f.current),h=parseInt($("#Calendar div.MediaContainer div.wrapper").css("top"),10),g=b.offset().top-k.offset().top,e=7;if(j>0){c.removeClass("disabled")}else{if(j<0){d.removeClass("disabled")}}if(b.outerHeight(true)+g>=k.innerHeight()&&j>0){a=h-k.outerHeight()/2}else{f.current+=j;a=0;$("#Calendar .MediaContainer ul").slice(0,f.current).each(function(){a+=$(this).outerHeight(true)});a=a*-1+e;if(f.current==$("#Calendar .MediaContainer div.wrapper ul").size()-1){d.addClass("disabled")}else{d.removeClass("disabled")}if(f.current==0){c.addClass("disabled")}else{c.removeClass("disabled")}}$("#Calendar .MediaContainer div.wrapper").animate({top:a+"px"},150)};$(document).ready(function(){CPB.calendar.init()});CPB.nav=function(d,b,c,f,a,e){var g=this;g.scope=$(d);g.container=$(b);g.links=$(c);g.next=$(f);g.previous=$(a);g.containerWidthOffset=e||0;g.progressiveEnhance=!($.browser.msie&&$.browser.version>=8);g.scope.css("width",parseInt(g.links.css("width"),10)*g.links.size());if(!g.progressiveEnhance){g.links.css("height","45px")}g.links.bind("mouseover",function(){if(!$(this).closest("li").hasClass("active")){if(g.progressiveEnhance){$(this).animate({opacity:1},150)}else{$(this).css("opacity",1)}}});g.links.bind("mouseout",function(){if(!$(this).parent().hasClass("active")){if(g.progressiveEnhance){$(this).animate({opacity:0.01},150)}else{$(this).css("opacity",0.01)}}});if(a){g.previous.bind("click.paginate",function(h){h.preventDefault();g.paginate(h,{direction:-1})})}if(f){g.next.bind("click.paginate",function(h){h.preventDefault();g.paginate(h,{direction:1})})}g.links.bind("mousedown.reload",function(){var h=$(this).offset();if($(this).offset().left-$("#Header").offset().left>$("#Header").width()-40){g.next.trigger("click");h={top:"-9999px",left:"-9999px"}}else{if($(this).offset().left-$("#Nav").offset().left<0){g.previous.trigger("click")}}$(".Loader .loader").css({top:h.top,left:h.left});if(!$(this).closest("li").hasClass("active")){$(this).css("opacity",1).closest("li").addClass("active").siblings(".active").removeClass("active").addClass("previous").find("a").css("opacity",1);if(g.progressiveEnhance){$("#Nav .previous a").animate({opacity:0.01},350)}else{$("#Nav .previous a").css("opacity",0.01)}$(this).bind("ajaxSuccess",function(){var j=String(this);j=j.replace(/topics\//,"#");if(j==window.location){$(this).css("opacity",1);if(g.progressiveEnhance){$(this).animate({opacity:0.01},250);g.container.find(".clone").fadeOut(150,function(){$(this).remove()})}else{$(this).css("opacity",0.01);g.container.find(".clone").remove()}$("#Nav .previous").removeClass("previous")}$(this).unbind("ajaxSucces").unbind("ajaxError")});$(this).bind("ajaxError",function(){$(document).trigger("loaderror",{errorMessage:"<p><strong>Sorry About That.</strong> We weren’t able to load what you were looking for. Hold tight, and we’ll jigger some wires back here. Try again in a few.</p>"});$("#Nav .previous").addClass("active").removeClass("previous").siblings(".active").removeClass("active").find("a").css("opacity",0.01);$(this).unbind("ajaxSucces").unbind("ajaxError")})}})};CPB.nav.prototype.constructor=CPB.nav;CPB.nav.prototype.paginate=function(c,g){var a=this;if(!a.next.hasClass("disabled")&&g.direction==1||!a.previous.hasClass("disabled")&&g.direction==-1){var f,l,m=250;if(g.direction>0){f=a.scope.outerWidth()-Math.abs(parseInt(a.scope.css("left"),10))-a.container.outerWidth()+a.containerWidthOffset}else{f=Math.abs(parseInt(a.scope.css("left"),10))}l=f<a.container.outerWidth()?g.direction*f:g.direction*a.container.outerWidth();var e=a.scope.find(".active");var d=e.offset().left-a.container.offset().left;var j=$('<p class="clone '+e.attr("class")+'"><a href="#">test</a></p>');if(g.direction>0){if(d<l&&a.container.find(".clone").size()==0){j.css({left:d}).appendTo(a.container);var h=d/(l/m);j.animate({left:"-="+d+"px"},h,"linear")}if(d>a.container.outerWidth()-a.containerWidthOffset&&a.container.find(".clone").size()>0){var k=((d-a.container.outerWidth()+a.containerWidthOffset-14+e.outerWidth())*m)/l;setTimeout(function(){a.container.find(".clone").remove()},k)}}else{if(d+e.outerWidth()+Math.abs(l)>a.container.outerWidth()&&a.container.find(".clone").size()==0){j.css({left:d}).appendTo(a.container);var b=a.container.outerWidth()-a.containerWidthOffset-e.outerWidth()-d+14;var h=b*m/Math.abs(l);j.animate({left:"+="+b+"px"},h,"linear")}if(d<0&&a.container.find(".clone").size()>0){var k=((Math.abs(d))*m)/Math.abs(l);setTimeout(function(){a.container.find(".clone").remove()},k)}}a.scope.animate({left:"-="+l+"px"},m,"linear");if(parseInt(a.scope.css("left"),10)>=0){a.next.addClass("disabled");a.previous.removeClass("disabled")}else{a.next.removeClass("disabled");a.previous.addClass("disabled")}}};$.fn.debug_links=function(){return this.each(function(){$(this).live("click",function(){alert("Sorry, this link is not implemented yet.");return false})})};CPB.broadcastOverlay=false&&(window.location.hash=="#cpb"||window.location.hash=="");CPB.marketNavInit=function(){var b=this;b.progressiveEnhance=!($.browser.msie&&$.browser.version>=8);var a=$("#Market a");if($.browser.msie){a.not(".active").css("opacity",0.01)}a.bind("mouseover",function(){if(!$(this).hasClass("active")){if(b.progressiveEnhance){$(this).animate({opacity:1},150)}else{$(this).css("opacity",1)}}}).bind("mouseout",function(){if(!$(this).hasClass("active")){if(b.progressiveEnhance){$(this).animate({opacity:0.01},150)}else{$(this).css("opacity",0.01)}}})};CPB.onload=function(){var a=a||$(document);$(".Popup",a).popup()};CPB.load_once=function(){CPB.onload();CPB.initOnReady("#Nav a");CPB.marketNavInit();var a=$("#Featured").find(".MediaContainer ul li");if(a.length<=CPB.featured.settings.visible){$("#Featured").find(".Pagination a").addClass("disabled")}if($("#Nav li").length<9){$("#Header .Pagination a").addClass("disabled")}CPB.mainNav=new CPB.nav("#Nav","#Header","#Nav li a","#Header .Pagination .Next a","#Header .Pagination .Previous a",40);$("a[rel=NewWindow]").live("click",function(b){b.preventDefault();window.open($(this).attr("href"));pause()});$("a[href=CPB_TEST]").debug_links();$(document).bind("loaderror",function(){$("div.Loader").hide()});CPB.hashHandler();$(document).ajaxError(function(){$("div.Loader").hide()});$.ajaxSetup({timeout:15000});if(CPB.broadcastOverlay==true){$("#PageWrapper").append('<div id="LiveBroadcast"><div class="overlay"></div><div class="player"><p class="close"><a href="#" class="popup_close">Close</a></p><object type="application/x-shockwave-flash" height="360" width="640" id="live_embed_player_flash" data="http://www.justin.tv/widgets/live_embed_player.swf?channel=fearlessqa" bgcolor="#000000"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="allowNetworking" value="all" /><param name="movie" value="http://www.justin.tv/widgets/live_embed_player.swf" /><param name="flashvars" value="channel=fearlessqa&auto_play=true&start_volume=25" /></object><a href="http://www.justin.tv/fearlessqa" style="padding:2px 0px 4px; display:block; width:640px; font-weight:normal; font-size:10px; text-decoration:underline; text-align:center;">Watch live video from FearLess Q+A on Justin.tv</a></div></div>');$("#LiveBroadcast div.player p.close a, #LiveBroadcast div.overlay").click(function(c){c.preventDefault();$("#LiveBroadcast").remove();var b=CPB.queue.createPlayList();setVideoData(b)})}};$(document).ready(function(){CPB.load_once()});$(window).load(function(){CPB.preloadImages("/img/popups/bkg.contact.jpg","/img/popups/bkg.developers.jpg")});var jsCss=document.createElement("link");jsCss.rel="stylesheet";jsCss.href="/css/javascript.css";jsCss.type="text/css";document.getElementsByTagName("head")[0].appendChild(jsCss);$(function(){var c=[],a="86,73,71,71,79";var b=function(f){c.push(f.keyCode);if(c.toString().indexOf(a)>=0){c=[];var d='<span style="position:absolute; top: 4px; right: 150px; font-weight:bold; color:#fff;">&#180;</span>';$("li.market_europe").css("position","relative").append(d);document.title="Trispin Water + Dousky | Advertising & Design Factory"}};if($.browser.msie){$(document).keydown(b)}else{$(window).keydown(b)}});