(function(){function b(a,f){f.src?c.ajax({url:f.src,async:false,dataType:"script"}):c.globalEval(f.text||f.textContent||f.innerHTML||"");f.parentNode&&f.parentNode.removeChild(f)}function h(a,f){return a[0]&&parseInt(c.curCSS(a[0],f,true),10)||0}function o(){return false}function d(){return true}function g(a){var f=RegExp("(^|\\.)"+a.type+"(\\.|$)"),e=true,n=[];c.each(c.data(this,"events").live||[],function(t,x){if(f.test(x.type)){var K=c(a.target).closest(x.data)[0];K&&n.push({elem:K,fn:x})}});n.sort(function(t,
x){return c.data(t.elem,"closest")-c.data(x.elem,"closest")});c.each(n,function(){if(this.fn.call(this.elem,a,this.fn.data)===false)return e=false});return e}function j(a,f){return["live",a,f.replace(/\./g,"`").replace(/ /g,"|")].join(".")}function l(){if(!O){O=true;if(document.addEventListener)document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);c.ready()},false);else if(document.attachEvent){document.attachEvent("onreadystatechange",
function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);c.ready()}});document.documentElement.doScroll&&w==w.top&&function(){if(!c.isReady){try{document.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}c.ready()}}()}c.event.add(w,"load",c.ready)}}function u(a,f){var e={};c.each(ja.concat.apply([],ja.slice(0,f)),function(){e[this]=a});return e}var w=this,E=w.jQuery,A=w.$,c=w.jQuery=w.$=function(a,f){return new c.fn.init(a,
f)},v=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,H=/^.[^:#\[\.,]*$/;c.fn=c.prototype={init:function(a,f){a=a||document;if(a.nodeType){this[0]=a;this.length=1;this.context=a;return this}if(typeof a==="string"){var e=v.exec(a);if(e&&(e[1]||!f))if(e[1])a=c.clean([e[1]],f);else{var n=document.getElementById(e[3]);if(n&&n.id!=e[3])return c().find(a);e=c(n||[]);e.context=document;e.selector=a;return e}else return c(f).find(a)}else if(c.isFunction(a))return c(document).ready(a);if(a.selector&&a.context){this.selector=
a.selector;this.context=a.context}return this.setArray(c.isArray(a)?a:c.makeArray(a))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(a){return a===void 0?Array.prototype.slice.call(this):this[a]},pushStack:function(a,f,e){a=c(a);a.prevObject=this;a.context=this.context;if(f==="find")a.selector=this.selector+(this.selector?" ":"")+e;else if(f)a.selector=this.selector+"."+f+"("+e+")";return a},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this},
each:function(a,f){return c.each(this,a,f)},index:function(a){return c.inArray(a&&a.jquery?a[0]:a,this)},attr:function(a,f,e){var n=a;if(typeof a==="string")if(f===void 0)return this[0]&&c[e||"attr"](this[0],a);else{n={};n[a]=f}return this.each(function(t){for(a in n)c.attr(e?this.style:this,a,c.prop(this,n[a],e,t,a))})},css:function(a,f){if((a=="width"||a=="height")&&parseFloat(f)<0)f=void 0;return this.attr(a,f,"curCSS")},text:function(a){if(typeof a!=="object"&&a!=null)return this.empty().append((this[0]&&
this[0].ownerDocument||document).createTextNode(a));var f="";c.each(a||this,function(){c.each(this.childNodes,function(){if(this.nodeType!=8)f+=this.nodeType!=1?this.nodeValue:c.fn.text([this])})});return f},wrapAll:function(a){if(this[0]){a=c(a,this[0].ownerDocument).clone();this[0].parentNode&&a.insertBefore(this[0]);a.map(function(){for(var f=this;f.firstChild;)f=f.firstChild;return f}).append(this)}return this},wrapInner:function(a){return this.each(function(){c(this).contents().wrapAll(a)})},
wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},append:function(){return this.domManip(arguments,true,function(a){this.nodeType==1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType==1&&this.insertBefore(a,this.firstChild)})},before:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,
this.nextSibling)})},end:function(){return this.prevObject||c([])},push:[].push,sort:[].sort,splice:[].splice,find:function(a){if(this.length===1){var f=this.pushStack([],"find",a);f.length=0;c.find(a,this[0],f);return f}else return this.pushStack(c.unique(c.map(this,function(e){return c.find(a,e)})),"find",a)},clone:function(a){var f=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var t=this.outerHTML;if(!t){t=this.ownerDocument.createElement("div");t.appendChild(this.cloneNode(true));
t=t.innerHTML}return c.clean([t.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else return this.cloneNode(true)});if(a===true){var e=this.find("*").andSelf(),n=0;f.find("*").andSelf().each(function(){if(this.nodeName===e[n].nodeName){var t=c.data(e[n],"events");for(var x in t)for(var K in t[x])c.event.add(this,x,t[x][K],t[x][K].data);n++}})}return f},filter:function(a){return this.pushStack(c.isFunction(a)&&c.grep(this,function(f,e){return a.call(f,e)})||c.multiFilter(a,c.grep(this,
function(f){return f.nodeType===1})),"filter",a)},closest:function(a){var f=c.expr.match.POS.test(a)?c(a):null,e=0;return this.map(function(){for(var n=this;n&&n.ownerDocument;){if(f?f.index(n)>-1:c(n).is(a)){c.data(n,"closest",e);return n}n=n.parentNode;e++}})},not:function(a){if(typeof a==="string")if(H.test(a))return this.pushStack(c.multiFilter(a,this,true),"not",a);else a=c.multiFilter(a,this);var f=a.length&&a[a.length-1]!==void 0&&!a.nodeType;return this.filter(function(){return f?c.inArray(this,
a)<0:this!=a})},add:function(a){return this.pushStack(c.unique(c.merge(this.get(),typeof a==="string"?c(a):c.makeArray(a))))},is:function(a){return!!a&&c.multiFilter(a,this).length>0},hasClass:function(a){return!!a&&this.is("."+a)},val:function(a){if(a===void 0){var f=this[0];if(f){if(c.nodeName(f,"option"))return(f.attributes.value||{}).specified?f.value:f.text;if(c.nodeName(f,"select")){var e=f.selectedIndex,n=[],t=f.options;f=f.type=="select-one";if(e<0)return null;var x=f?e:0;for(e=f?e+1:t.length;x<
e;x++){var K=t[x];if(K.selected){a=c(K).val();if(f)return a;n.push(a)}}return n}return(f.value||"").replace(/\r/g,"")}}else{if(typeof a==="number")a+="";return this.each(function(){if(this.nodeType==1)if(c.isArray(a)&&/radio|checkbox/.test(this.type))this.checked=c.inArray(this.value,a)>=0||c.inArray(this.name,a)>=0;else if(c.nodeName(this,"select")){var M=c.makeArray(a);c("option",this).each(function(){this.selected=c.inArray(this.value,M)>=0||c.inArray(this.text,M)>=0});if(!M.length)this.selectedIndex=
-1}else this.value=a})}},html:function(a){return a===void 0?this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null:this.empty().append(a)},replaceWith:function(a){return this.after(a).remove()},eq:function(a){return this.slice(a,+a+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,function(f,e){return a.call(f,e,f)}))},andSelf:function(){return this.add(this.prevObject)},
domManip:function(a,f,e){if(this[0]){var n=(this[0].ownerDocument||this[0]).createDocumentFragment();a=c.clean(a,this[0].ownerDocument||this[0],n);var t=n.firstChild;if(t)for(var x=0,K=this.length;x<K;x++)e.call(f&&c.nodeName(this[x],"table")&&c.nodeName(t,"tr")?this[x].getElementsByTagName("tbody")[0]||this[x].appendChild(this[x].ownerDocument.createElement("tbody")):this[x],this.length>1||x>0?n.cloneNode(true):n);a&&c.each(a,b)}return this}};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=
arguments[0]||{},f=1,e=arguments.length,n=false,t;if(typeof a==="boolean"){n=a;a=arguments[1]||{};f=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(e==f){a=this;--f}for(;f<e;f++)if((t=arguments[f])!=null)for(var x in t){var K=a[x],M=t[x];if(a!==M)if(n&&M&&typeof M==="object"&&!M.nodeType)a[x]=c.extend(n,K||(M.length!=null?[]:{}),M);else if(M!==void 0)a[x]=M}return a};var G=/z-?index|font-?weight|opacity|zoom|line-?height/i,k=document.defaultView||{},r=Object.prototype.toString;c.extend({noConflict:function(a){w.$=
A;if(a)w.jQuery=E;return c},isFunction:function(a){return r.call(a)==="[object Function]"},isArray:function(a){return r.call(a)==="[object Array]"},isXMLDoc:function(a){return a.nodeType===9&&a.documentElement.nodeName!=="HTML"||!!a.ownerDocument&&c.isXMLDoc(a.ownerDocument)},globalEval:function(a){if(a&&/\S/.test(a)){var f=document.getElementsByTagName("head")[0]||document.documentElement,e=document.createElement("script");e.type="text/javascript";if(c.support.scriptEval)e.appendChild(document.createTextNode(a));
else e.text=a;f.insertBefore(e,f.firstChild);f.removeChild(e)}},nodeName:function(a,f){return a.nodeName&&a.nodeName.toUpperCase()==f.toUpperCase()},each:function(a,f,e){var n,t=0,x=a.length;if(e)if(x===void 0)for(n in a){if(f.apply(a[n],e)===false)break}else for(;t<x;){if(f.apply(a[t++],e)===false)break}else if(x===void 0)for(n in a){if(f.call(a[n],n,a[n])===false)break}else for(e=a[0];t<x&&f.call(e,t,e)!==false;e=a[++t]);return a},prop:function(a,f,e,n,t){if(c.isFunction(f))f=f.call(a,n);return typeof f===
"number"&&e=="curCSS"&&!G.test(t)?f+"px":f},className:{add:function(a,f){c.each((f||"").split(/\s+/),function(e,n){if(a.nodeType==1&&!c.className.has(a.className,n))a.className+=(a.className?" ":"")+n})},remove:function(a,f){if(a.nodeType==1)a.className=f!==void 0?c.grep(a.className.split(/\s+/),function(e){return!c.className.has(f,e)}).join(" "):""},has:function(a,f){return a&&c.inArray(f,(a.className||a).toString().split(/\s+/))>-1}},swap:function(a,f,e){var n={};for(var t in f){n[t]=a.style[t];
a.style[t]=f[t]}e.call(a);for(t in f)a.style[t]=n[t]},css:function(a,f,e,n){if(f=="width"||f=="height"){var t;e={position:"absolute",visibility:"hidden",display:"block"};var x=f=="width"?["Left","Right"]:["Top","Bottom"],K=function(){t=f=="width"?a.offsetWidth:a.offsetHeight;n!=="border"&&c.each(x,function(){n||(t-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(n==="margin")t+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else t-=parseFloat(c.curCSS(a,"border"+this+"Width",true))||0})};a.offsetWidth!==
0?K():c.swap(a,e,K);return Math.max(0,Math.round(t))}return c.curCSS(a,f,e)},curCSS:function(a,f,e){var n,t=a.style;if(f=="opacity"&&!c.support.opacity){n=c.attr(t,"opacity");return n==""?"1":n}if(f.match(/float/i))f=S;if(!e&&t&&t[f])n=t[f];else if(k.getComputedStyle){if(f.match(/float/i))f="float";f=f.replace(/([A-Z])/g,"-$1").toLowerCase();if(a=k.getComputedStyle(a,null))n=a.getPropertyValue(f);if(f=="opacity"&&n=="")n="1"}else if(a.currentStyle){n=f.replace(/\-(\w)/g,function(x,K){return K.toUpperCase()});
n=a.currentStyle[f]||a.currentStyle[n];if(!/^\d+(px)?$/i.test(n)&&/^\d/.test(n)){f=t.left;e=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;t.left=n||0;n=t.pixelLeft+"px";t.left=f;a.runtimeStyle.left=e}}return n},clean:function(a,f,e){f=f||document;if(typeof f.createElement==="undefined")f=f.ownerDocument||f[0]&&f[0].ownerDocument||document;if(!e&&a.length===1&&typeof a[0]==="string"){var n=/^<(\w+)\s*\/?>$/.exec(a[0]);if(n)return[f.createElement(n[1])]}var t=[];n=[];var x=f.createElement("div");
c.each(a,function(K,M){if(typeof M==="number")M+="";if(M){if(typeof M==="string"){M=M.replace(/(<(\w+)[^>]*?)\/>/g,function(da,ga,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?da:ga+"></"+T+">"});var W=M.replace(/^\s+/,"").substring(0,10).toLowerCase(),U=!W.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!W.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||W.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!W.indexOf("<tr")&&[2,"<table><tbody>",
"</tbody></table>"]||(!W.indexOf("<td")||!W.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!W.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!c.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];for(x.innerHTML=U[1]+M+U[2];U[0]--;)x=x.lastChild;if(!c.support.tbody){var aa=/<tbody/i.test(M);W=!W.indexOf("<table")&&!aa?x.firstChild&&x.firstChild.childNodes:U[1]=="<table>"&&!aa?x.childNodes:[];for(U=W.length-1;U>=0;--U)c.nodeName(W[U],"tbody")&&
!W[U].childNodes.length&&W[U].parentNode.removeChild(W[U])}!c.support.leadingWhitespace&&/^\s/.test(M)&&x.insertBefore(f.createTextNode(M.match(/^\s*/)[0]),x.firstChild);M=c.makeArray(x.childNodes)}if(M.nodeType)t.push(M);else t=c.merge(t,M)}});if(e){for(a=0;t[a];a++)if(c.nodeName(t[a],"script")&&(!t[a].type||t[a].type.toLowerCase()==="text/javascript"))n.push(t[a].parentNode?t[a].parentNode.removeChild(t[a]):t[a]);else{t[a].nodeType===1&&t.splice.apply(t,[a+1,0].concat(c.makeArray(t[a].getElementsByTagName("script"))));
e.appendChild(t[a])}return n}return t},attr:function(a,f,e){if(!(!a||a.nodeType==3||a.nodeType==8)){var n=!c.isXMLDoc(a),t=e!==void 0;f=n&&c.props[f]||f;if(a.tagName){var x=/href|src|style/.test(f);if(f in a&&n&&!x){if(t){if(f=="type"&&c.nodeName(a,"input")&&a.parentNode)throw"type property can't be changed";a[f]=e}if(c.nodeName(a,"form")&&a.getAttributeNode(f))return a.getAttributeNode(f).nodeValue;if(f=="tabIndex")return(f=a.getAttributeNode("tabIndex"))&&f.specified?f.value:a.nodeName.match(/(button|input|object|select|textarea)/i)?
0:a.nodeName.match(/^(a|area)$/i)&&a.href?0:void 0;return a[f]}if(!c.support.style&&n&&f=="style")return c.attr(a.style,"cssText",e);t&&a.setAttribute(f,""+e);a=!c.support.hrefNormalized&&n&&x?a.getAttribute(f,2):a.getAttribute(f);return a===null?void 0:a}if(!c.support.opacity&&f=="opacity"){if(t){a.zoom=1;a.filter=(a.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(e)+""=="NaN"?"":"alpha(opacity="+e*100+")")}return a.filter&&a.filter.indexOf("opacity=")>=0?parseFloat(a.filter.match(/opacity=([^)]*)/)[1])/
100+"":""}f=f.replace(/-([a-z])/ig,function(K,M){return M.toUpperCase()});if(t)a[f]=e;return a[f]}},trim:function(a){return(a||"").replace(/^\s+|\s+$/g,"")},makeArray:function(a){var f=[];if(a!=null){var e=a.length;if(e==null||typeof a==="string"||c.isFunction(a)||a.setInterval)f[0]=a;else for(;e;)f[--e]=a[e]}return f},inArray:function(a,f){for(var e=0,n=f.length;e<n;e++)if(f[e]===a)return e;return-1},merge:function(a,f){var e=0,n,t=a.length;if(c.support.getAll)for(;(n=f[e++])!=null;)a[t++]=n;else for(;(n=
f[e++])!=null;)if(n.nodeType!=8)a[t++]=n;return a},unique:function(a){var f=[],e={};try{for(var n=0,t=a.length;n<t;n++){var x=c.data(a[n]);if(!e[x]){e[x]=true;f.push(a[n])}}}catch(K){f=a}return f},grep:function(a,f,e){for(var n=[],t=0,x=a.length;t<x;t++)!e!=!f(a[t],t)&&n.push(a[t]);return n},map:function(a,f){for(var e=[],n=0,t=a.length;n<t;n++){var x=f(a[n],n);if(x!=null)e[e.length]=x}return e.concat.apply([],e)}});var z=navigator.userAgent.toLowerCase();c.browser={version:(z.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||
[0,"0"])[1],safari:/webkit/.test(z),opera:/opera/.test(z),msie:/msie/.test(z)&&!/opera/.test(z),mozilla:/mozilla/.test(z)&&!/(compatible|webkit)/.test(z)};c.each({parent:function(a){return a.parentNode},parents:function(a){return c.dir(a,"parentNode")},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},siblings:function(a){return c.sibling(a.parentNode.firstChild,
a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,f){c.fn[a]=function(e){var n=c.map(this,f);if(e&&typeof e=="string")n=c.multiFilter(e,n);return this.pushStack(c.unique(n),a,e)}});c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,f){c.fn[a]=function(e){for(var n=[],t=c(e),x=0,K=t.length;x<
K;x++){var M=(x>0?this.clone(true):this).get();c.fn[f].apply(c(t[x]),M);n=n.concat(M)}return this.pushStack(n,a,e)}});c.each({removeAttr:function(a){c.attr(this,a,"");this.nodeType==1&&this.removeAttribute(a)},addClass:function(a){c.className.add(this,a)},removeClass:function(a){c.className.remove(this,a)},toggleClass:function(a,f){if(typeof f!=="boolean")f=!c.className.has(this,a);c.className[f?"add":"remove"](this,a)},remove:function(a){if(!a||c.filter(a,[this]).length){c("*",this).add([this]).each(function(){c.event.remove(this);
c.removeData(this)});this.parentNode&&this.parentNode.removeChild(this)}},empty:function(){for(c(this).children().remove();this.firstChild;)this.removeChild(this.firstChild)}},function(a,f){c.fn[a]=function(){return this.each(f,arguments)}});var L="jQuery"+ +new Date,C=0,s={};c.extend({cache:{},data:function(a,f,e){(a=a==w?s:a)||console.log(a,f,e);var n=a[L];n||(n=a[L]=++C);if(f&&!c.cache[n])c.cache[n]={};if(e!==void 0)c.cache[n][f]=e;return f?c.cache[n][f]:n},removeData:function(a,f){a=a==w?s:a;
var e=a[L];if(f){if(c.cache[e]){delete c.cache[e][f];f="";for(f in c.cache[e])break;f||c.removeData(a)}}else{try{delete a[L]}catch(n){a.removeAttribute&&a.removeAttribute(L)}delete c.cache[e]}},queue:function(a,f,e){if(a){f=(f||"fx")+"queue";var n=c.data(a,f);if(!n||c.isArray(e))n=c.data(a,f,c.makeArray(e));else e&&n.push(e)}return n},dequeue:function(a,f){var e=c.queue(a,f),n=e.shift();if(!f||f==="fx")n=e[0];n!==void 0&&n.call(a)}});c.fn.extend({data:function(a,f){var e=a.split(".");e[1]=e[1]?"."+
e[1]:"";if(f===void 0){var n=this.triggerHandler("getData"+e[1]+"!",[e[0]]);if(n===void 0&&this.length)n=c.data(this[0],a);return n===void 0&&e[1]?this.data(e[0]):n}else return this.trigger("setData"+e[1]+"!",[e[0],f]).each(function(){c.data(this,a,f)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})},queue:function(a,f){if(typeof a!=="string"){f=a;a="fx"}if(f===void 0)return c.queue(this[0],a);return this.each(function(){var e=c.queue(this,a,f);a=="fx"&&e.length==1&&e[0].call(this)})},
dequeue:function(a){return this.each(function(){c.dequeue(this,a)})}});(function(){function a(q,y,B,D,I,J){I=0;for(var Q=D.length;I<Q;I++){var R=D[I];if(R){if(q=="previousSibling"&&!J&&R.nodeType===1){R.sizcache=B;R.sizset=I}R=R[q];for(var ba=false;R;){if(R.sizcache===B){ba=D[R.sizset];break}if(R.nodeType===1&&!J){R.sizcache=B;R.sizset=I}if(R.nodeName===y){ba=R;break}R=R[q]}D[I]=ba}}}function f(q,y,B,D,I,J){I=0;for(var Q=D.length;I<Q;I++){var R=D[I];if(R){if(q=="previousSibling"&&!J&&R.nodeType===
1){R.sizcache=B;R.sizset=I}R=R[q];for(var ba=false;R;){if(R.sizcache===B){ba=D[R.sizset];break}if(R.nodeType===1){if(!J){R.sizcache=B;R.sizset=I}if(typeof y!=="string"){if(R===y){ba=true;break}}else if(x.filter(y,[R]).length>0){ba=R;break}}R=R[q]}D[I]=ba}}}var e=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,n=0,t=Object.prototype.toString,x=function(q,y,B,D){B=B||[];y=y||document;if(y.nodeType!==1&&y.nodeType!==9)return[];if(!q||
typeof q!=="string")return B;var I=[],J,Q,R,ba=true;for(e.lastIndex=0;(J=e.exec(q))!==null;){I.push(J[1]);if(J[2]){R=RegExp.rightContext;break}}if(I.length>1&&M.exec(q))if(I.length===2&&K.relative[I[0]])J=F(I[0]+I[1],y);else for(J=K.relative[I[0]]?[y]:x(I.shift(),y);I.length;){q=I.shift();if(K.relative[q])q+=I.shift();J=F(q,J)}else{J=D?{expr:I.pop(),set:U(D)}:x.find(I.pop(),I.length===1&&y.parentNode?y.parentNode:y,T(y));J=x.filter(J.expr,J.set);if(I.length>0)Q=U(J);else ba=false;for(;I.length;){var ka=
I.pop(),X=ka;if(K.relative[ka])X=I.pop();else ka="";if(X==null)X=y;K.relative[ka](Q,X,T(y))}}Q||(Q=J);if(!Q)throw"Syntax error, unrecognized expression: "+(ka||q);if(t.call(Q)==="[object Array]")if(ba)if(y.nodeType===1)for(q=0;Q[q]!=null;q++){if(Q[q]&&(Q[q]===true||Q[q].nodeType===1&&ga(y,Q[q])))B.push(J[q])}else for(q=0;Q[q]!=null;q++)Q[q]&&Q[q].nodeType===1&&B.push(J[q]);else B.push.apply(B,Q);else U(Q,B);if(R){x(R,y,B,D);if(da){hasDuplicate=false;B.sort(da);if(hasDuplicate)for(q=1;q<B.length;q++)B[q]===
B[q-1]&&B.splice(q--,1)}}return B};x.matches=function(q,y){return x(q,null,null,y)};x.find=function(q,y,B){var D,I;if(!q)return[];for(var J=0,Q=K.order.length;J<Q;J++){var R=K.order[J];if(I=K.match[R].exec(q)){var ba=RegExp.leftContext;if(ba.substr(ba.length-1)!=="\\"){I[1]=(I[1]||"").replace(/\\/g,"");D=K.find[R](I,y,B);if(D!=null){q=q.replace(K.match[R],"");break}}}}D||(D=y.getElementsByTagName("*"));return{set:D,expr:q}};x.filter=function(q,y,B,D){for(var I=q,J=[],Q=y,R,ba,ka=y&&y[0]&&T(y[0]);q&&
y.length;){for(var X in K.filter)if((R=K.match[X].exec(q))!=null){var na=K.filter[X],P,V;ba=false;if(Q==J)J=[];if(K.preFilter[X])if(R=K.preFilter[X](R,Q,B,J,D,ka)){if(R===true)continue}else ba=P=true;if(R)for(var Y=0;(V=Q[Y])!=null;Y++)if(V){P=na(V,R,Y,Q);var ea=D^!!P;if(B&&P!=null)if(ea)ba=true;else Q[Y]=false;else if(ea){J.push(V);ba=true}}if(P!==void 0){B||(Q=J);q=q.replace(K.match[X],"");if(!ba)return[];break}}if(q==I)if(ba==null)throw"Syntax error, unrecognized expression: "+q;else break;I=q}return Q};
var K=x.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(q){return q.getAttribute("href")}},relative:{"+":function(q,y,B){var D=typeof y==="string",I=D&&!/\W/.test(y);D=D&&!I;if(I&&!B)y=y.toUpperCase();B=0;I=q.length;for(var J;B<I;B++)if(J=q[B]){for(;(J=J.previousSibling)&&J.nodeType!==1;);q[B]=D||J&&J.nodeName===y?J||false:J===y}D&&x.filter(y,q,true)},">":function(q,y,B){var D=typeof y==="string";if(D&&!/\W/.test(y)){y=B?y:y.toUpperCase();B=0;for(var I=q.length;B<I;B++){var J=q[B];
if(J){D=J.parentNode;q[B]=D.nodeName===y?D:false}}}else{B=0;for(I=q.length;B<I;B++)if(J=q[B])q[B]=D?J.parentNode:J.parentNode===y;D&&x.filter(y,q,true)}},"":function(q,y,B){var D=n++,I=f;if(!y.match(/\W/)){var J=y=B?y:y.toUpperCase();I=a}I("parentNode",y,D,q,J,B)},"~":function(q,y,B){var D=n++,I=f;if(typeof y==="string"&&!y.match(/\W/)){var J=y=B?y:y.toUpperCase();I=a}I("previousSibling",y,D,q,J,B)}},find:{ID:function(q,y,B){if(typeof y.getElementById!=="undefined"&&!B)return(q=y.getElementById(q[1]))?
[q]:[]},NAME:function(q,y){if(typeof y.getElementsByName!=="undefined"){for(var B=[],D=y.getElementsByName(q[1]),I=0,J=D.length;I<J;I++)D[I].getAttribute("name")===q[1]&&B.push(D[I]);return B.length===0?null:B}},TAG:function(q,y){return y.getElementsByTagName(q[1])}},preFilter:{CLASS:function(q,y,B,D,I,J){q=" "+q[1].replace(/\\/g,"")+" ";if(J)return q;J=0;for(var Q;(Q=y[J])!=null;J++)if(Q)if(I^(Q.className&&(" "+Q.className+" ").indexOf(q)>=0))B||D.push(Q);else if(B)y[J]=false;return false},ID:function(q){return q[1].replace(/\\/g,
"")},TAG:function(q,y){for(var B=0;y[B]===false;B++);return y[B]&&T(y[B])?q[1]:q[1].toUpperCase()},CHILD:function(q){if(q[1]=="nth"){var y=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(q[2]=="even"&&"2n"||q[2]=="odd"&&"2n+1"||!/\D/.test(q[2])&&"0n+"+q[2]||q[2]);q[2]=y[1]+(y[2]||1)-0;q[3]=y[3]-0}q[0]=n++;return q},ATTR:function(q,y,B,D,I,J){y=q[1].replace(/\\/g,"");if(!J&&K.attrMap[y])q[1]=K.attrMap[y];if(q[2]==="~=")q[4]=" "+q[4]+" ";return q},PSEUDO:function(q,y,B,D,I){if(q[1]==="not")if(q[3].match(e).length>
1||/^\w/.test(q[3]))q[3]=x(q[3],null,null,y);else{q=x.filter(q[3],y,B,true^I);B||D.push.apply(D,q);return false}else if(K.match.POS.test(q[0])||K.match.CHILD.test(q[0]))return true;return q},POS:function(q){q.unshift(true);return q}},filters:{enabled:function(q){return q.disabled===false&&q.type!=="hidden"},disabled:function(q){return q.disabled===true},checked:function(q){return q.checked===true},selected:function(q){return q.selected===true},parent:function(q){return!!q.firstChild},empty:function(q){return!q.firstChild},
has:function(q,y,B){return!!x(B[3],q).length},header:function(q){return/h\d/i.test(q.nodeName)},text:function(q){return"text"===q.type},radio:function(q){return"radio"===q.type},checkbox:function(q){return"checkbox"===q.type},file:function(q){return"file"===q.type},password:function(q){return"password"===q.type},submit:function(q){return"submit"===q.type},image:function(q){return"image"===q.type},reset:function(q){return"reset"===q.type},button:function(q){return"button"===q.type||q.nodeName.toUpperCase()===
"BUTTON"},input:function(q){return/input|select|textarea|button/i.test(q.nodeName)}},setFilters:{first:function(q,y){return y===0},last:function(q,y,B,D){return y===D.length-1},even:function(q,y){return y%2===0},odd:function(q,y){return y%2===1},lt:function(q,y,B){return y<B[3]-0},gt:function(q,y,B){return y>B[3]-0},nth:function(q,y,B){return B[3]-0==y},eq:function(q,y,B){return B[3]-0==y}},filter:{PSEUDO:function(q,y,B,D){var I=y[1],J=K.filters[I];if(J)return J(q,B,y,D);else if(I==="contains")return(q.textContent||
q.innerText||"").indexOf(y[3])>=0;else if(I==="not"){y=y[3];B=0;for(D=y.length;B<D;B++)if(y[B]===q)return false;return true}},CHILD:function(q,y){var B=y[1],D=q;switch(B){case "only":case "first":for(;D=D.previousSibling;)if(D.nodeType===1)return false;if(B=="first")return true;D=q;case "last":for(;D=D.nextSibling;)if(D.nodeType===1)return false;return true;case "nth":B=y[2];var I=y[3];if(B==1&&I==0)return true;var J=y[0],Q=q.parentNode;if(Q&&(Q.sizcache!==J||!q.nodeIndex)){var R=0;for(D=Q.firstChild;D;D=
D.nextSibling)if(D.nodeType===1)D.nodeIndex=++R;Q.sizcache=J}D=q.nodeIndex-I;return B==0?D==0:D%B==0&&D/B>=0}},ID:function(q,y){return q.nodeType===1&&q.getAttribute("id")===y},TAG:function(q,y){return y==="*"&&q.nodeType===1||q.nodeName===y},CLASS:function(q,y){return(" "+(q.className||q.getAttribute("class"))+" ").indexOf(y)>-1},ATTR:function(q,y){var B=y[1];B=K.attrHandle[B]?K.attrHandle[B](q):q[B]!=null?q[B]:q.getAttribute(B);var D=B+"",I=y[2],J=y[4];return B==null?I==="!=":I==="="?D===J:I===
"*="?D.indexOf(J)>=0:I==="~="?(" "+D+" ").indexOf(J)>=0:!J?D&&B!==false:I==="!="?D!=J:I==="^="?D.indexOf(J)===0:I==="$="?D.substr(D.length-J.length)===J:I==="|="?D===J||D.substr(0,J.length+1)===J+"-":false},POS:function(q,y,B,D){var I=K.setFilters[y[2]];if(I)return I(q,B,y,D)}}},M=K.match.POS;for(var W in K.match)K.match[W]=RegExp(K.match[W].source+/(?![^\[]*\])(?![^\(]*\))/.source);var U=function(q,y){q=Array.prototype.slice.call(q);if(y){y.push.apply(y,q);return y}return q};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(aa){U=
function(q,y){var B=y||[];if(t.call(q)==="[object Array]")Array.prototype.push.apply(B,q);else if(typeof q.length==="number")for(var D=0,I=q.length;D<I;D++)B.push(q[D]);else for(D=0;q[D];D++)B.push(q[D]);return B}}var da;if(document.documentElement.compareDocumentPosition)da=function(q,y){var B=q.compareDocumentPosition(y)&4?-1:q===y?0:1;if(B===0)hasDuplicate=true;return B};else if("sourceIndex"in document.documentElement)da=function(q,y){var B=q.sourceIndex-y.sourceIndex;if(B===0)hasDuplicate=true;
return B};else if(document.createRange)da=function(q,y){var B=q.ownerDocument.createRange(),D=y.ownerDocument.createRange();B.selectNode(q);B.collapse(true);D.selectNode(y);D.collapse(true);B=B.compareBoundaryPoints(Range.START_TO_END,D);if(B===0)hasDuplicate=true;return B};(function(){var q=document.createElement("form"),y="script"+(new Date).getTime();q.innerHTML="<input name='"+y+"'/>";var B=document.documentElement;B.insertBefore(q,B.firstChild);if(document.getElementById(y)){K.find.ID=function(D,
I,J){if(typeof I.getElementById!=="undefined"&&!J)return(I=I.getElementById(D[1]))?I.id===D[1]||typeof I.getAttributeNode!=="undefined"&&I.getAttributeNode("id").nodeValue===D[1]?[I]:void 0:[]};K.filter.ID=function(D,I){var J=typeof D.getAttributeNode!=="undefined"&&D.getAttributeNode("id");return D.nodeType===1&&J&&J.nodeValue===I}}B.removeChild(q)})();(function(){var q=document.createElement("div");q.appendChild(document.createComment(""));if(q.getElementsByTagName("*").length>0)K.find.TAG=function(y,
B){var D=B.getElementsByTagName(y[1]);if(y[1]==="*"){for(var I=[],J=0;D[J];J++)D[J].nodeType===1&&I.push(D[J]);D=I}return D};q.innerHTML="<a href='#'></a>";if(q.firstChild&&typeof q.firstChild.getAttribute!=="undefined"&&q.firstChild.getAttribute("href")!=="#")K.attrHandle.href=function(y){return y.getAttribute("href",2)}})();document.querySelectorAll&&function(){var q=x,y=document.createElement("div");y.innerHTML="<p class='TEST'></p>";if(!(y.querySelectorAll&&y.querySelectorAll(".TEST").length===
0)){x=function(B,D,I,J){D=D||document;if(!J&&D.nodeType===9&&!T(D))try{return U(D.querySelectorAll(B),I)}catch(Q){}return q(B,D,I,J)};x.find=q.find;x.filter=q.filter;x.selectors=q.selectors;x.matches=q.matches}}();document.getElementsByClassName&&document.documentElement.getElementsByClassName&&function(){var q=document.createElement("div");q.innerHTML="<div class='test e'></div><div class='test'></div>";if(q.getElementsByClassName("e").length!==0){q.lastChild.className="e";if(q.getElementsByClassName("e").length!==
1){K.order.splice(1,0,"CLASS");K.find.CLASS=function(y,B,D){if(typeof B.getElementsByClassName!=="undefined"&&!D)return B.getElementsByClassName(y[1])}}}}();var ga=document.compareDocumentPosition?function(q,y){return q.compareDocumentPosition(y)&16}:function(q,y){return q!==y&&(q.contains?q.contains(y):true)},T=function(q){return q.nodeType===9&&q.documentElement.nodeName!=="HTML"||!!q.ownerDocument&&T(q.ownerDocument)},F=function(q,y){for(var B=[],D="",I,J=y.nodeType?[y]:y;I=K.match.PSEUDO.exec(q);){D+=
I[0];q=q.replace(K.match.PSEUDO,"")}q=K.relative[q]?q+"*":q;I=0;for(var Q=J.length;I<Q;I++)x(q,J[I],B);return x.filter(D,B)};c.find=x;c.filter=x.filter;c.expr=x.selectors;c.expr[":"]=c.expr.filters;x.selectors.filters.hidden=function(q){return q.offsetWidth===0||q.offsetHeight===0};x.selectors.filters.visible=function(q){return q.offsetWidth>0||q.offsetHeight>0};x.selectors.filters.animated=function(q){return c.grep(c.timers,function(y){return q===y.elem}).length};c.multiFilter=function(q,y,B){if(B)q=
":not("+q+")";return x.matches(q,y)};c.dir=function(q,y){for(var B=[],D=q[y];D&&D!=document;){D.nodeType==1&&B.push(D);D=D[y]}return B};c.nth=function(q,y,B){for(var D=0;q;q=q[B])if(q.nodeType==1&&++D==(y||1))break;return q};c.sibling=function(q,y){for(var B=[];q;q=q.nextSibling)q.nodeType==1&&q!=y&&B.push(q);return B}})();c.event={add:function(a,f,e,n){if(!(a.nodeType==3||a.nodeType==8)){if(a.setInterval&&a!=w)a=w;if(!e.guid)e.guid=this.guid++;if(n!==void 0){e=this.proxy(e);e.data=n}var t=c.data(a,
"events")||c.data(a,"events",{}),x=c.data(a,"handle")||c.data(a,"handle",function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(arguments.callee.elem,arguments):void 0});x.elem=a;c.each(f.split(/\s+/),function(K,M){var W=M.split(".");M=W.shift();e.type=W.slice().sort().join(".");var U=t[M];c.event.specialAll[M]&&c.event.specialAll[M].setup.call(a,n,W);if(!U){U=t[M]={};if(!c.event.special[M]||c.event.special[M].setup.call(a,n,W)===false)if(a.addEventListener)a.addEventListener(M,
x,false);else a.attachEvent&&a.attachEvent("on"+M,x)}U[e.guid]=e;c.event.global[M]=true});a=null}},guid:1,global:{},remove:function(a,f,e){if(!(a.nodeType==3||a.nodeType==8)){var n=c.data(a,"events"),t;if(n){if(f===void 0||typeof f==="string"&&f.charAt(0)==".")for(var x in n)this.remove(a,x+(f||""));else{if(f.type){e=f.handler;f=f.type}c.each(f.split(/\s+/),function(K,M){var W=M.split(".");M=W.shift();var U=RegExp("(^|\\.)"+W.slice().sort().join(".*\\.")+"(\\.|$)");if(n[M]){if(e)delete n[M][e.guid];
else for(var aa in n[M])U.test(n[M][aa].type)&&delete n[M][aa];c.event.specialAll[M]&&c.event.specialAll[M].teardown.call(a,W);for(t in n[M])break;if(!t){if(!c.event.special[M]||c.event.special[M].teardown.call(a,W)===false)if(a.removeEventListener)a.removeEventListener(M,c.data(a,"handle"),false);else a.detachEvent&&a.detachEvent("on"+M,c.data(a,"handle"));t=null;delete n[M]}}})}for(t in n)break;if(!t){if(f=c.data(a,"handle"))f.elem=null;c.removeData(a,"events");c.removeData(a,"handle")}}}},trigger:function(a,
f,e,n){var t=a.type||a;if(!n){a=typeof a==="object"?a[L]?a:c.extend(c.Event(t),a):c.Event(t);if(t.indexOf("!")>=0){a.type=t=t.slice(0,-1);a.exclusive=true}if(!e){a.stopPropagation();this.global[t]&&c.each(c.cache,function(){this.events&&this.events[t]&&c.event.trigger(a,f,this.handle.elem)})}if(!e||e.nodeType==3||e.nodeType==8)return;a.result=void 0;a.target=e;f=c.makeArray(f);f.unshift(a)}a.currentTarget=e;var x=c.data(e,"handle");x&&x.apply(e,f);if((!e[t]||c.nodeName(e,"a")&&t=="click")&&e["on"+
t]&&e["on"+t].apply(e,f)===false)a.result=false;if(!n&&e[t]&&!a.isDefaultPrevented()&&!(c.nodeName(e,"a")&&t=="click")){this.triggered=true;try{e[t]()}catch(K){}}this.triggered=false;if(!a.isPropagationStopped())(e=e.parentNode||e.ownerDocument)&&c.event.trigger(a,f,e,true)},handle:function(a){var f,e;a=arguments[0]=c.event.fix(a||w.event);a.currentTarget=this;e=a.type.split(".");a.type=e.shift();f=!e.length&&!a.exclusive;var n=RegExp("(^|\\.)"+e.slice().sort().join(".*\\.")+"(\\.|$)");e=(c.data(this,
"events")||{})[a.type];for(var t in e){var x=e[t];if(f||n.test(x.type)){a.handler=x;a.data=x.data;x=x.apply(this,arguments);if(x!==void 0){a.result=x;if(x===false){a.preventDefault();a.stopPropagation()}}if(a.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(a){if(a[L])return a;var f=a;a=c.Event(f);for(var e=this.props.length,n;e;){n=this.props[--e];a[n]=f[n]}if(!a.target)a.target=a.srcElement||document;if(a.target.nodeType==3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement==a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){f=document.documentElement;e=document.body;a.pageX=a.clientX+(f&&f.scrollLeft||e&&e.scrollLeft||0)-(f.clientLeft||0);a.pageY=a.clientY+(f&&f.scrollTop||
e&&e.scrollTop||0)-(f.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},proxy:function(a,f){f=f||function(){return a.apply(this,arguments)};f.guid=a.guid=a.guid||f.guid||this.guid++;return f},special:{ready:{setup:l,teardown:function(){}}},specialAll:{live:{setup:function(a,f){c.event.add(this,f[0],g)},teardown:function(a){if(a.length){var f=
0,e=RegExp("(^|\\.)"+a[0]+"(\\.|$)");c.each(c.data(this,"events").live||{},function(){e.test(this.type)&&f++});f<1&&c.event.remove(this,a[0],g)}}}}};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=a;this.type=a.type}else this.type=a;this.timeStamp=+new Date;this[L]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=d;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=
d;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=d;this.stopPropagation()},isDefaultPrevented:o,isPropagationStopped:o,isImmediatePropagationStopped:o};var N=function(a){for(var f=a.relatedTarget;f&&f!=this;)try{f=f.parentNode}catch(e){f=this}if(f!=this){a.type=a.data;c.event.handle.apply(this,arguments)}};c.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(a,f){c.event.special[f]=
{setup:function(){c.event.add(this,a,N,f)},teardown:function(){c.event.remove(this,a,N)}}});c.fn.extend({bind:function(a,f,e){return a=="unload"?this.one(a,f,e):this.each(function(){c.event.add(this,a,e||f,e&&f)})},one:function(a,f,e){var n=c.event.proxy(e||f,function(t){c(this).unbind(t,n);return(e||f).apply(this,arguments)});return this.each(function(){c.event.add(this,a,n,e&&f)})},unbind:function(a,f){return this.each(function(){c.event.remove(this,a,f)})},trigger:function(a,f){return this.each(function(){c.event.trigger(a,
f,this)})},triggerHandler:function(a,f){if(this[0]){var e=c.Event(a);e.preventDefault();e.stopPropagation();c.event.trigger(e,f,this[0]);return e.result}},toggle:function(a){for(var f=arguments,e=1;e<f.length;)c.event.proxy(a,f[e++]);return this.click(c.event.proxy(a,function(n){this.lastToggle=(this.lastToggle||0)%e;n.preventDefault();return f[this.lastToggle++].apply(this,arguments)||false}))},hover:function(a,f){return this.mouseenter(a).mouseleave(f)},ready:function(a){l();c.isReady?a.call(document,
c):c.readyList.push(a);return this},live:function(a,f){var e=c.event.proxy(f);e.guid+=this.selector+a;c(document).bind(j(a,this.selector),this.selector,e);return this},die:function(a,f){c(document).unbind(j(a,this.selector),f?{guid:f.guid+this.selector+a}:null);return this}});c.extend({isReady:false,readyList:[],ready:function(){if(!c.isReady){c.isReady=true;if(c.readyList){c.each(c.readyList,function(){this.call(document,c)});c.readyList=null}c(document).triggerHandler("ready")}}});var O=false;c.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(a,f){c.fn[f]=function(e){return e?this.bind(f,e):this.trigger(f)}});c(w).bind("unload",function(){for(var a in c.cache)a!=1&&c.cache[a].handle&&c.event.remove(c.cache[a].handle.elem)});(function(){c.support={};var a=document.documentElement,f=document.createElement("script"),e=document.createElement("div"),n="script"+(new Date).getTime();e.style.display="none";e.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 t=e.getElementsByTagName("*"),x=e.getElementsByTagName("a")[0];if(!(!t||!t.length||!x)){c.support={leadingWhitespace:e.firstChild.nodeType==3,tbody:!e.getElementsByTagName("tbody").length,objectAll:!!e.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!e.getElementsByTagName("link").length,style:/red/.test(x.getAttribute("style")),hrefNormalized:x.getAttribute("href")==="/a",opacity:x.style.opacity==="0.5",cssFloat:!!x.style.cssFloat,scriptEval:false,noCloneEvent:true,
boxModel:null};f.type="text/javascript";try{f.appendChild(document.createTextNode("window."+n+"=1;"))}catch(K){}a.insertBefore(f,a.firstChild);if(w[n]){c.support.scriptEval=true;delete w[n]}a.removeChild(f);if(e.attachEvent&&e.fireEvent){e.attachEvent("onclick",function(){c.support.noCloneEvent=false;e.detachEvent("onclick",arguments.callee)});e.cloneNode(true).fireEvent("onclick")}c(function(){var M=document.createElement("div");M.style.width=M.style.paddingLeft="1px";document.body.appendChild(M);
c.boxModel=c.support.boxModel=M.offsetWidth===2;document.body.removeChild(M).style.display="none"})}})();var S=c.support.cssFloat?"cssFloat":"styleFloat";c.props={"for":"htmlFor","class":"className","float":S,cssFloat:S,styleFloat:S,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};c.fn.extend({_load:c.fn.load,load:function(a,f,e){if(typeof a!=="string")return this._load(a);var n=a.indexOf(" ");if(n>=0){var t=a.slice(n,a.length);a=a.slice(0,
n)}n="GET";if(f)if(c.isFunction(f)){e=f;f=null}else if(typeof f==="object"){f=c.param(f);n="POST"}var x=this;c.ajax({url:a,type:n,dataType:"html",data:f,complete:function(K,M){if(M=="success"||M=="notmodified")x.html(t?c("<div/>").append(K.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(t):K.responseText);e&&x.each(e,[K.responseText,M,K])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?
c.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(a,f){var e=c(this).val();return e==null?null:c.isArray(e)?c.map(e,function(n){return{name:f.name,value:n}}):{name:f.name,value:e}}).get()}});c.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(a,f){c.fn[f]=function(e){return this.bind(f,e)}});var ca=+new Date;
c.extend({get:function(a,f,e,n){if(c.isFunction(f)){e=f;f=null}return c.ajax({type:"GET",url:a,data:f,success:e,dataType:n})},getScript:function(a,f){return c.get(a,null,f,"script")},getJSON:function(a,f,e){return c.get(a,f,e,"json")},post:function(a,f,e,n){if(c.isFunction(f)){e=f;f={}}return c.ajax({type:"POST",url:a,data:f,success:e,dataType:n})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",
processData:true,async:true,xhr:function(){return w.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(a){function f(){a.success&&a.success(K,x);a.global&&c.event.trigger("ajaxSuccess",[T,a])}function e(){a.complete&&a.complete(T,x);a.global&&c.event.trigger("ajaxComplete",
[T,a]);a.global&&!--c.active&&c.event.trigger("ajaxStop")}a=c.extend(true,a,c.extend(true,{},c.ajaxSettings,a));var n,t=/=\?(&|$)/g,x,K,M=a.type.toUpperCase();if(a.data&&a.processData&&typeof a.data!=="string")a.data=c.param(a.data);if(a.dataType=="jsonp"){if(M=="GET")a.url.match(t)||(a.url+=(a.url.match(/\?/)?"&":"?")+(a.jsonp||"callback")+"=?");else if(!a.data||!a.data.match(t))a.data=(a.data?a.data+"&":"")+(a.jsonp||"callback")+"=?";a.dataType="json"}if(a.dataType=="json"&&(a.data&&a.data.match(t)||
a.url.match(t))){n="jsonp"+ca++;if(a.data)a.data=(a.data+"").replace(t,"="+n+"$1");a.url=a.url.replace(t,"="+n+"$1");a.dataType="script";w[n]=function(D){K=D;f();e();w[n]=void 0;try{delete w[n]}catch(I){}U&&U.removeChild(aa)}}if(a.dataType=="script"&&a.cache==null)a.cache=false;if(a.cache===false&&M=="GET"){t=+new Date;var W=a.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+t+"$2");a.url=W+(W==a.url?(a.url.match(/\?/)?"&":"?")+"_="+t:"")}if(a.data&&M=="GET"){a.url+=(a.url.match(/\?/)?"&":"?")+a.data;a.data=
null}a.global&&!c.active++&&c.event.trigger("ajaxStart");t=/^(\w+:)?\/\/([^\/?#]+)/.exec(a.url);if(a.dataType=="script"&&M=="GET"&&t&&(t[1]&&t[1]!=location.protocol||t[2]!=location.host)){var U=document.getElementsByTagName("head")[0],aa=document.createElement("script");aa.src=a.url;if(a.scriptCharset)aa.charset=a.scriptCharset;if(!n){var da=false;aa.onload=aa.onreadystatechange=function(){if(!da&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){da=true;f();e();aa.onload=
aa.onreadystatechange=null;U.removeChild(aa)}}}U.appendChild(aa)}else{var ga=false,T=a.xhr();a.username?T.open(M,a.url,a.async,a.username,a.password):T.open(M,a.url,a.async);try{a.data&&T.setRequestHeader("Content-Type",a.contentType);if(a.ifModified)T.setRequestHeader("If-Modified-Since",c.lastModified[a.url]||"Thu, 01 Jan 1970 00:00:00 GMT");T.setRequestHeader("X-Requested-With","XMLHttpRequest");T.setRequestHeader("Accept",a.dataType&&a.accepts[a.dataType]?a.accepts[a.dataType]+", */*":a.accepts._default)}catch(F){}if(a.beforeSend&&
a.beforeSend(T,a)===false){a.global&&!--c.active&&c.event.trigger("ajaxStop");T.abort();return false}a.global&&c.event.trigger("ajaxSend",[T,a]);var q=function(D){if(T.readyState==0){if(y){clearInterval(y);y=null;a.global&&!--c.active&&c.event.trigger("ajaxStop")}}else if(!ga&&T&&(T.readyState==4||D=="timeout")){ga=true;if(y){clearInterval(y);y=null}x=D=="timeout"?"timeout":!c.httpSuccess(T)?"error":a.ifModified&&c.httpNotModified(T,a.url)?"notmodified":"success";if(x=="success")try{K=c.httpData(T,
a.dataType,a)}catch(I){x="parsererror"}if(x=="success"){var J;try{J=T.getResponseHeader("Last-Modified")}catch(Q){}if(a.ifModified&&J)c.lastModified[a.url]=J;n||f()}else c.handleError(a,T,x);e();D&&T.abort();if(a.async)T=null}};if(a.async){var y=setInterval(q,13);a.timeout>0&&setTimeout(function(){T&&!ga&&q("timeout")},a.timeout)}try{T.send(a.data)}catch(B){c.handleError(a,T,null,B)}a.async||q();return T}},handleError:function(a,f,e,n){a.error&&a.error(f,e,n);a.global&&c.event.trigger("ajaxError",
[f,a,n])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol=="file:"||a.status>=200&&a.status<300||a.status==304||a.status==1223}catch(f){}return false},httpNotModified:function(a,f){try{var e=a.getResponseHeader("Last-Modified");return a.status==304||e==c.lastModified[f]}catch(n){}return false},httpData:function(a,f,e){var n=a.getResponseHeader("content-type");a=(n=f=="xml"||!f&&n&&n.indexOf("xml")>=0)?a.responseXML:a.responseText;if(n&&a.documentElement.tagName=="parsererror")throw"parsererror";
if(e&&e.dataFilter)a=e.dataFilter(a,f);if(typeof a==="string"){f=="script"&&c.globalEval(a);if(f=="json")a=w.eval("("+a+")")}return a},param:function(a){function f(t,x){e[e.length]=encodeURIComponent(t)+"="+encodeURIComponent(x)}var e=[];if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var n in a)c.isArray(a[n])?c.each(a[n],function(){f(n,this)}):f(n,c.isFunction(a[n])?a[n]():a[n]);return e.join("&").replace(/%20/g,"+")}});var Z={},fa,ja=[["height","marginTop","marginBottom",
"paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,f){if(a)return this.animate(u("show",3),a,f);else{for(var e=0,n=this.length;e<n;e++){var t=c.data(this[e],"olddisplay");this[e].style.display=t||"";if(c.css(this[e],"display")==="none"){t=this[e].tagName;var x;if(Z[t])x=Z[t];else{var K=c("<"+t+" />").appendTo("body");x=K.css("display");if(x==="none")x="block";K.remove();Z[t]=x}c.data(this[e],"olddisplay",x)}}e=
0;for(n=this.length;e<n;e++)this[e].style.display=c.data(this[e],"olddisplay")||"";return this}},hide:function(a,f){if(a)return this.animate(u("hide",3),a,f);else{for(var e=0,n=this.length;e<n;e++){var t=c.data(this[e],"olddisplay");!t&&t!=="none"&&c.data(this[e],"olddisplay",c.css(this[e],"display"))}e=0;for(n=this.length;e<n;e++)this[e].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,f){var e=typeof a==="boolean";return c.isFunction(a)&&c.isFunction(f)?this._toggle.apply(this,
arguments):a==null||e?this.each(function(){var n=e?a:c(this).is(":hidden");c(this)[n?"show":"hide"]()}):this.animate(u("toggle",3),a,f)},fadeTo:function(a,f,e){return this.animate({opacity:f},a,e)},animate:function(a,f,e,n){var t=c.speed(f,e,n);return this[t.queue===false?"each":"queue"](function(){var x=c.extend({},t),K,M=this.nodeType==1&&c(this).is(":hidden"),W=this;for(K in a){if(a[K]=="hide"&&M||a[K]=="show"&&!M)return x.complete.call(this);if((K=="height"||K=="width")&&this.style){x.display=
c.css(this,"display");x.overflow=this.style.overflow}}if(x.overflow!=null)this.style.overflow="hidden";x.curAnim=c.extend({},a);c.each(a,function(U,aa){var da=new c.fx(W,x,U);if(/toggle|show|hide/.test(aa))da[aa=="toggle"?M?"show":"hide":aa](a);else{var ga=aa.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),T=da.cur(true)||0;if(ga){var F=parseFloat(ga[2]),q=ga[3]||"px";if(q!="px"){W.style[U]=(F||1)+q;T=(F||1)/da.cur(true)*T;W.style[U]=T+q}if(ga[1])F=(ga[1]=="-="?-1:1)*F+T;da.custom(T,F,q)}else da.custom(T,
aa,"")}});return true})},stop:function(a,f){var e=c.timers;a&&this.queue([]);this.each(function(){for(var n=e.length-1;n>=0;n--)if(e[n].elem==this){f&&e[n](true);e.splice(n,1)}});f||this.dequeue();return this}});c.each({slideDown:u("show",1),slideUp:u("hide",1),slideToggle:u("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,f){c.fn[a]=function(e,n){return this.animate(f,e,n)}});c.extend({speed:function(a,f,e){var n=typeof a==="object"?a:{complete:e||!e&&f||c.isFunction(a)&&
a,duration:a,easing:e&&f||f&&!c.isFunction(f)&&f};n.duration=c.fx.off?0:typeof n.duration==="number"?n.duration:c.fx.speeds[n.duration]||c.fx.speeds._default;n.old=n.complete;n.complete=function(){n.queue!==false&&c(this).dequeue();c.isFunction(n.old)&&n.old.call(this)};return n},easing:{linear:function(a,f,e,n){return e+n*a},swing:function(a,f,e,n){return(-Math.cos(a*Math.PI)/2+0.5)*n+e}},timers:[],fx:function(a,f,e){this.options=f;this.elem=a;this.prop=e;if(!f.orig)f.orig={}}});c.fx.prototype={update:function(){this.options.step&&
this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,f,e){function n(x){return t.step(x)}this.startTime=+new Date;
this.start=a;this.end=f;this.unit=e||this.unit||"px";this.now=this.start;this.pos=this.state=0;var t=this;n.elem=this.elem;if(n()&&c.timers.push(n)&&!fa)fa=setInterval(function(){for(var x=c.timers,K=0;K<x.length;K++)x[K]()||x.splice(K--,1);if(!x.length){clearInterval(fa);fa=void 0}},13)},show:function(){this.options.orig[this.prop]=c.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=
c.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var f=+new Date;if(a||f>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();a=this.options.curAnim[this.prop]=true;for(var e in this.options.curAnim)if(this.options.curAnim[e]!==true)a=false;if(a){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(c.css(this.elem,"display")=="none")this.elem.style.display=
"block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var n in this.options.curAnim)c.attr(this.elem.style,n,this.options.orig[n]);this.options.complete.call(this.elem)}return false}else{e=f-this.startTime;this.state=e/this.options.duration;this.pos=c.easing[this.options.easing||(c.easing.swing?"swing":"linear")](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{speeds:{slow:600,
fast:200,_default:400},step:{opacity:function(a){c.attr(a.elem.style,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=a.now+a.unit;else a.elem[a.prop]=a.now}}});c.fn.offset=document.documentElement.getBoundingClientRect?function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return c.offset.bodyOffset(this[0]);var a=this[0].getBoundingClientRect(),f=this[0].ownerDocument,e=f.body;f=f.documentElement;return{top:a.top+
(self.pageYOffset||c.boxModel&&f.scrollTop||e.scrollTop)-(f.clientTop||e.clientTop||0),left:a.left+(self.pageXOffset||c.boxModel&&f.scrollLeft||e.scrollLeft)-(f.clientLeft||e.clientLeft||0)}}:function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return c.offset.bodyOffset(this[0]);c.offset.initialized||c.offset.initialize();var a=this[0],f=a.offsetParent,e=a.ownerDocument,n,t=e.documentElement,x=e.body;e=e.defaultView;n=e.getComputedStyle(a,null);for(var K=a.offsetTop,
M=a.offsetLeft;(a=a.parentNode)&&a!==x&&a!==t;){n=e.getComputedStyle(a,null);K-=a.scrollTop;M-=a.scrollLeft;if(a===f){K+=a.offsetTop;M+=a.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(a.tagName))){K+=parseInt(n.borderTopWidth,10)||0;M+=parseInt(n.borderLeftWidth,10)||0}f=a.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&n.overflow!=="visible"){K+=parseInt(n.borderTopWidth,10)||0;M+=parseInt(n.borderLeftWidth,10)||0}n=n}if(n.position===
"relative"||n.position==="static"){K+=x.offsetTop;M+=x.offsetLeft}if(n.position==="fixed"){K+=Math.max(t.scrollTop,x.scrollTop);M+=Math.max(t.scrollLeft,x.scrollLeft)}return{top:K,left:M}};c.offset={initialize:function(){if(!this.initialized){var a=document.body,f=document.createElement("div"),e,n,t,x=a.style.marginTop;e={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(n in e)f.style[n]=e[n];f.innerHTML='<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>';
a.insertBefore(f,a.firstChild);e=f.firstChild;n=e.firstChild;t=e.nextSibling.firstChild.firstChild;this.doesNotAddBorder=n.offsetTop!==5;this.doesAddBorderForTableAndCells=t.offsetTop===5;e.style.overflow="hidden";e.style.position="relative";this.subtractsBorderForOverflowNotVisible=n.offsetTop===-5;a.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=a.offsetTop===0;a.style.marginTop=x;a.removeChild(f);this.initialized=true}},bodyOffset:function(a){c.offset.initialized||c.offset.initialize();
var f=a.offsetTop,e=a.offsetLeft;if(c.offset.doesNotIncludeMarginInBodyOffset){f+=parseInt(c.curCSS(a,"marginTop",true),10)||0;e+=parseInt(c.curCSS(a,"marginLeft",true),10)||0}return{top:f,left:e}}};c.fn.extend({position:function(){var a;if(this[0]){a=this.offsetParent();var f=this.offset(),e=/^body|html$/i.test(a[0].tagName)?{top:0,left:0}:a.offset();f.top-=h(this,"marginTop");f.left-=h(this,"marginLeft");e.top+=h(a,"borderTopWidth");e.left+=h(a,"borderLeftWidth");a={top:f.top-e.top,left:f.left-
e.left}}return a},offsetParent:function(){for(var a=this[0].offsetParent||document.body;a&&!/^body|html$/i.test(a.tagName)&&c.css(a,"position")=="static";)a=a.offsetParent;return c(a)}});c.each(["Left","Top"],function(a,f){var e="scroll"+f;c.fn[e]=function(n){if(!this[0])return null;return n!==void 0?this.each(function(){this==w||this==document?w.scrollTo(!a?n:c(w).scrollLeft(),a?n:c(w).scrollTop()):(this[e]=n)}):this[0]==w||this[0]==document?self[a?"pageYOffset":"pageXOffset"]||c.boxModel&&document.documentElement[e]||
document.body[e]:this[0][e]}});c.each(["Height","Width"],function(a,f){var e=f.toLowerCase();c.fn["inner"+f]=function(){return this[0]?c.css(this[0],e,false,"padding"):null};c.fn["outer"+f]=function(t){return this[0]?c.css(this[0],e,false,t?"margin":"border"):null};var n=f.toLowerCase();c.fn[n]=function(t){return this[0]==w?document.compatMode=="CSS1Compat"&&document.documentElement["client"+f]||document.body["client"+f]:this[0]==document?Math.max(document.documentElement["client"+f],document.body["scroll"+
f],document.documentElement["scroll"+f],document.body["offset"+f],document.documentElement["offset"+f]):t===void 0?this.length?c.css(this[0],n):null:this.css(n,typeof t==="string"?t:t+"px")}})})();
(function(b,h,o){function d(P,V){var Y=h.createElement("div");Y.id=P?v+P:false;Y.style.cssText=V||false;return b(Y)}function g(P,V){V=V==="x"?n.width():n.height();return typeof P==="string"?Math.round(/%/.test(P)?V/100*parseInt(P,10):parseInt(P,10)):P}function j(P){return F.photo||/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(P)}function l(P){for(var V in P)if(b.isFunction(P[V])&&V.substring(0,2)!=="on")P[V]=P[V].call(I);P.rel=P.rel||I.rel||"nofollow";P.href=b.trim(P.href||b(I).attr("href"));
P.title=P.title||I.title}function u(P,V){V&&V.call(I);b.event.trigger(P)}function w(){var P,V=v+"Slideshow_",Y="click."+v,ea,ia;if(F.slideshow&&e[1]){ea=function(){U.text(F.slideshowStop).unbind(Y).bind(k,function(){if(J<e.length-1||F.loop)P=setTimeout(X.next,F.slideshowSpeed)}).bind(G,function(){clearTimeout(P)}).one(Y+" "+r,ia);S.removeClass(V+"off").addClass(V+"on");P=setTimeout(X.next,F.slideshowSpeed)};ia=function(){clearTimeout(P);U.text(F.slideshowStart).unbind([k,G,r,Y].join(" ")).one(Y,ea);
S.removeClass(V+"on").addClass(V+"off")};F.slideshowAuto?ea():ia()}}function E(P){if(!ka){I=P;l(b.extend(F,b.data(I,c)));e=b(I);J=0;if(F.rel!=="nofollow"){e=b("."+na).filter(function(){return(b.data(this,c).rel||this.rel)===F.rel});J=e.index(I);if(J===-1){e=e.add(I);J=e.length-1}}if(!R){R=ba=true;S.show();if(F.returnFocus)try{I.blur();b(I).one(z,function(){try{this.focus()}catch(Y){}})}catch(V){}O.css({opacity:+F.opacity,cursor:F.overlayClose?"pointer":"auto"}).show();F.w=g(F.initialWidth,"x");F.h=
g(F.initialHeight,"y");X.position(0);s&&n.bind("resize."+N+" scroll."+N,function(){O.css({width:n.width(),height:n.height(),top:n.scrollTop(),left:n.scrollLeft()})}).trigger("resize."+N);u(H,F.onOpen);T.add(M).hide();ga.html(F.close).show()}X.load(true)}}var A={transition:"elastic",speed:300,width:false,initialWidth:"600",innerWidth:false,maxWidth:false,height:false,initialHeight:"450",innerHeight:false,maxHeight:false,scalePhotos:true,scrolling:true,inline:false,html:false,iframe:false,fastIframe:true,
photo:false,href:false,title:false,rel:false,opacity:0.9,preloading:true,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:false,returnFocus:true,loop:true,slideshow:false,slideshowAuto:true,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:false,onLoad:false,onComplete:false,onCleanup:false,onClosed:false,overlayClose:true,escKey:true,arrowKey:true},c="colorbox",v="cbox",H=v+"_open",G=v+"_load",k=v+"_complete",r=v+"_cleanup",
z=v+"_closed",L=v+"_purge",C=b.browser.msie&&!b.support.opacity,s=C&&b.browser.version<7,N=v+"_IE6",O,S,ca,Z,fa,ja,a,f,e,n,t,x,K,M,W,U,aa,da,ga,T,F={},q,y,B,D,I,J,Q,R,ba,ka=false,X,na=v+"Element";X=b.fn[c]=b[c]=function(P,V){var Y=this,ea;if(!Y[0]&&Y.selector)return Y;P=P||{};if(V)P.onComplete=V;if(!Y[0]||Y.selector===undefined){Y=b("<a/>");P.open=true}Y.each(function(){b.data(this,c,b.extend({},b.data(this,c)||A,P));b(this).addClass(na)});ea=P.open;if(b.isFunction(ea))ea=ea.call(Y);ea&&E(Y[0]);return Y};
X.init=function(){n=b(o);S=d().attr({id:c,"class":C?v+(s?"IE6":"IE"):""});O=d("Overlay",s?"position:absolute":"").hide();ca=d("Wrapper");Z=d("Content").append(t=d("LoadedContent","width:0; height:0; overflow:hidden"),K=d("LoadingOverlay").add(d("LoadingGraphic")),M=d("Title"),W=d("Current"),aa=d("Next"),da=d("Previous"),U=d("Slideshow").bind(H,w),ga=d("Close"));ca.append(d().append(d("TopLeft"),fa=d("TopCenter"),d("TopRight")),d(false,"clear:left").append(ja=d("MiddleLeft"),Z,a=d("MiddleRight")),
d(false,"clear:left").append(d("BottomLeft"),f=d("BottomCenter"),d("BottomRight"))).children().children().css({"float":"left"});x=d(false,"position:absolute; width:9999px; visibility:hidden; display:none");b("body").prepend(O,S.append(ca,x));Z.children().hover(function(){b(this).addClass("hover")},function(){b(this).removeClass("hover")}).addClass("hover");q=fa.height()+f.height()+Z.outerHeight(true)-Z.height();y=ja.width()+a.width()+Z.outerWidth(true)-Z.width();B=t.outerHeight(true);D=t.outerWidth(true);
S.css({"padding-bottom":q,"padding-right":y}).hide();aa.click(function(){X.next()});da.click(function(){X.prev()});ga.click(function(){X.close()});T=aa.add(da).add(W).add(U);Z.children().removeClass("hover");b("."+na).live("click",function(P){if(!(P.button!==0&&typeof P.button!=="undefined"||P.ctrlKey||P.shiftKey||P.altKey)){P.preventDefault();E(this)}});O.click(function(){F.overlayClose&&X.close()});b(h).bind("keydown",function(P){if(R&&F.escKey&&P.keyCode===27){P.preventDefault();X.close()}if(R&&
F.arrowKey&&!ba&&e[1])if(P.keyCode===37&&(J||F.loop)){P.preventDefault();da.click()}else if(P.keyCode===39&&(J<e.length-1||F.loop)){P.preventDefault();aa.click()}})};X.remove=function(){S.add(O).remove();b("."+na).die("click").removeData(c).removeClass(na)};X.position=function(P,V){function Y(la){fa[0].style.width=f[0].style.width=Z[0].style.width=la.style.width;K[0].style.height=K[1].style.height=Z[0].style.height=ja[0].style.height=a[0].style.height=la.style.height}var ea,ia=Math.max(h.documentElement.clientHeight-
F.h-B-q,0)/2+n.scrollTop(),ha=Math.max(n.width()-F.w-D-y,0)/2+n.scrollLeft();ea=S.width()===F.w+D&&S.height()===F.h+B?0:P;ca[0].style.width=ca[0].style.height="9999px";S.dequeue().animate({width:F.w+D,height:F.h+B,top:ia,left:ha},{duration:ea,complete:function(){Y(this);ba=false;ca[0].style.width=F.w+D+y+"px";ca[0].style.height=F.h+B+q+"px";V&&V()},step:function(){Y(this)}})};X.resize=function(P){if(R){P=P||{};if(P.width)F.w=g(P.width,"x")-D-y;if(P.innerWidth)F.w=g(P.innerWidth,"x");t.css({width:F.w});
if(P.height)F.h=g(P.height,"y")-B-q;if(P.innerHeight)F.h=g(P.innerHeight,"y");if(!P.innerHeight&&!P.height){P=t.wrapInner("<div style='overflow:auto'></div>").children();F.h=P.height();P.replaceWith(P.children())}t.css({height:F.h});X.position(F.transition==="none"?0:F.speed)}};X.prep=function(P){function V(ea){X.position(ea,function(){var ia,ha,la,oa;ha=e.length;var ma,pa;if(R){pa=function(){K.hide();u(k,F.onComplete)};C&&Q&&t.fadeIn(100);M.html(F.title).add(t).show();if(ha>1){typeof F.current===
"string"&&W.html(F.current.replace(/\{current\}/,J+1).replace(/\{total\}/,ha)).show();aa[F.loop||J<ha-1?"show":"hide"]().html(F.next);da[F.loop||J?"show":"hide"]().html(F.previous);ia=J?e[J-1]:e[ha-1];la=J<ha-1?e[J+1]:e[0];F.slideshow&&U.show();if(F.preloading){oa=b.data(la,c).href||la.href;ha=b.data(ia,c).href||ia.href;oa=b.isFunction(oa)?oa.call(la):oa;ha=b.isFunction(ha)?ha.call(ia):ha;if(j(oa))b("<img/>")[0].src=oa;if(j(ha))b("<img/>")[0].src=ha}}else T.hide();if(F.iframe){ma=b("<iframe frameborder=0/>").addClass(v+
"Iframe")[0];F.fastIframe?pa():b(ma).load(pa);ma.name=v+ +new Date;ma.src=F.href;if(!F.scrolling)ma.scrolling="no";if(C)ma.allowTransparency="true";b(ma).appendTo(t).one(L,function(){ma.src="//about:blank"})}else pa();if(F.transition==="fade")S.fadeTo(Y,1,function(){S[0].style.filter=""});else S[0].style.filter="";n.bind("resize."+v,function(){X.position(0)})}})}if(R){var Y=F.transition==="none"?0:F.speed;n.unbind("resize."+v);t.remove();t=d("LoadedContent").html(P);t.hide().appendTo(x.show()).css({width:function(){F.w=
F.w||t.width();F.w=F.mw&&F.mw<F.w?F.mw:F.w;return F.w}(),overflow:F.scrolling?"auto":"hidden"}).css({height:function(){F.h=F.h||t.height();F.h=F.mh&&F.mh<F.h?F.mh:F.h;return F.h}()}).prependTo(Z);x.hide();b(Q).css({"float":"none"});s&&b("select").not(S.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(r,function(){this.style.visibility="inherit"});F.transition==="fade"?S.fadeTo(Y,0,function(){V(0)}):V(Y)}};X.load=function(P){var V,Y,ea=X.prep;
ba=true;Q=false;I=e[J];P||l(b.extend(F,b.data(I,c)));u(L);u(G,F.onLoad);F.h=F.height?g(F.height,"y")-B-q:F.innerHeight&&g(F.innerHeight,"y");F.w=F.width?g(F.width,"x")-D-y:F.innerWidth&&g(F.innerWidth,"x");F.mw=F.w;F.mh=F.h;if(F.maxWidth){F.mw=g(F.maxWidth,"x")-D-y;F.mw=F.w&&F.w<F.mw?F.w:F.mw}if(F.maxHeight){F.mh=g(F.maxHeight,"y")-B-q;F.mh=F.h&&F.h<F.mh?F.h:F.mh}V=F.href;K.show();if(F.inline){d().hide().insertBefore(b(V)[0]).one(L,function(){b(this).replaceWith(t.children())});ea(b(V))}else if(F.iframe)ea(" ");
else if(F.html)ea(F.html);else if(j(V)){b(Q=new Image).addClass(v+"Photo").error(function(){F.title=false;ea(d("Error").text("This image could not be loaded"))}).load(function(){var ia;Q.onload=null;if(F.scalePhotos){Y=function(){Q.height-=Q.height*ia;Q.width-=Q.width*ia};if(F.mw&&Q.width>F.mw){ia=(Q.width-F.mw)/Q.width;Y()}if(F.mh&&Q.height>F.mh){ia=(Q.height-F.mh)/Q.height;Y()}}if(F.h)Q.style.marginTop=Math.max(F.h-Q.height,0)/2+"px";if(e[1]&&(J<e.length-1||F.loop)){Q.style.cursor="pointer";Q.onclick=
function(){X.next()}}if(C)Q.style.msInterpolationMode="bicubic";setTimeout(function(){ea(Q)},1)});setTimeout(function(){Q.src=V},1)}else V&&x.load(V,function(ia,ha,la){ea(ha==="error"?d("Error").text("Request unsuccessful: "+la.statusText):b(this).contents())})};X.next=function(){if(!ba){J=J<e.length-1?J+1:0;X.load()}};X.prev=function(){if(!ba){J=J?J-1:e.length-1;X.load()}};X.close=function(){if(R&&!ka){ka=true;R=false;u(r,F.onCleanup);n.unbind("."+v+" ."+N);O.fadeTo(200,0);S.stop().fadeTo(300,0,
function(){S.add(O).css({opacity:1,cursor:"auto"}).hide();u(L);t.remove();setTimeout(function(){ka=false;u(z,F.onClosed)},1)})}};X.element=function(){return b(I)};X.settings=A;b(X.init)})(jQuery,document,this);
(function(){function b(v){if(!v||typeof v!="object")return v;var H=new v.constructor;for(var G in v)if(v.hasOwnProperty(G))H[G]=b(v[G]);return H}function h(v,H){if(v){var G,k=0,r=v.length;if(r===undefined)for(G in v){if(H.call(v[G],G,v[G])===false)break}else for(G=v[0];k<r&&H.call(G,k,G)!==false;G=v[++k]);return v}}function o(v,H,G){if(typeof H!="object")return v;v&&H&&h(H,function(k,r){if(!G||typeof r!="function")v[k]=r});return v}function d(v){var H=v.indexOf(".");if(H!=-1){var G=v.slice(0,H)||
"*",k=v.slice(H+1,v.length),r=[];h(document.getElementsByTagName(G),function(){this.className&&this.className.indexOf(k)!=-1&&r.push(this)});return r}}function g(v){v=v||window.event;if(v.preventDefault){v.stopPropagation();v.preventDefault()}else{v.returnValue=false;v.cancelBubble=true}return false}function j(v,H,G){v[H]=v[H]||[];v[H].push(G)}function l(){return"_"+(""+Math.random()).slice(2,10)}function u(v,H,G){var k=this,r=null,z=false,L,C,s=[],N={},O={},S,ca,Z,fa,ja,a;o(k,{id:function(){return S},
isLoaded:function(){return r!==null&&r.fp_play!==undefined&&!z},getParent:function(){return v},hide:function(e){if(e)v.style.height="0px";if(k.isLoaded())r.style.height="0px";return k},show:function(){v.style.height=a+"px";if(k.isLoaded())r.style.height=ja+"px";return k},isHidden:function(){return k.isLoaded()&&parseInt(r.style.height,10)===0},load:function(e){if(!k.isLoaded()&&k._fireEvent("onBeforeLoad")!==false){var n=0;h(c,function(){this.unload(function(){if(++n==c.length){if((L=v.innerHTML)&&
!flashembed.isSupported(H.version))v.innerHTML="";if(e){e.cached=true;j(O,"onLoad",e)}flashembed(v,H,{config:G})}})})}return k},unload:function(e){if(this.isFullscreen()&&/WebKit/i.test(navigator.userAgent)){e&&e(false);return k}if(L.replace(/\s/g,"")!==""){if(k._fireEvent("onBeforeUnload")===false){e&&e(false);return k}z=true;try{if(r){r.fp_close();k._fireEvent("onUnload")}}catch(n){}setTimeout(function(){r=null;v.innerHTML=L;z=false;e&&e(true)},50)}else e&&e(false);return k},getClip:function(e){if(e===
undefined)e=fa;return s[e]},getCommonClip:function(){return C},getPlaylist:function(){return s},getPlugin:function(e){var n=N[e];if(!n&&k.isLoaded()){var t=k._api().fp_getPlugin(e);if(t){n=new A(e,t,k);N[e]=n}}return n},getScreen:function(){return k.getPlugin("screen")},getControls:function(){return k.getPlugin("controls")._fireEvent("onUpdate")},getLogo:function(){try{return k.getPlugin("logo")._fireEvent("onUpdate")}catch(e){}},getPlay:function(){return k.getPlugin("play")._fireEvent("onUpdate")},
getConfig:function(e){return e?b(G):G},getFlashParams:function(){return H},loadPlugin:function(e,n,t,x){if(typeof t=="function"){x=t;t={}}var K=x?l():"_";k._api().fp_loadPlugin(e,n,t,K);n={};n[K]=x;x=new A(e,null,k,n);return N[e]=x},getState:function(){return k.isLoaded()?r.fp_getState():-1},play:function(e,n){var t=function(){e!==undefined?k._api().fp_play(e,n):k._api().fp_play()};if(k.isLoaded())t();else z?setTimeout(function(){k.play(e,n)},50):k.load(function(){t()});return k},getVersion:function(){if(k.isLoaded()){var e=
r.fp_getVersion();e.push("flowplayer.js 3.2.6");return e}return"flowplayer.js 3.2.6"},_api:function(){if(!k.isLoaded())throw"Flowplayer "+k.id()+" not loaded when calling an API method";return r},setClip:function(e){k.setPlaylist([e]);return k},getIndex:function(){return Z},_swfHeight:function(){return r.clientHeight}});h("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut".split(","),function(){var e="on"+this;if(e.indexOf("*")!=
-1){e=e.slice(0,e.length-1);var n="onBefore"+e.slice(2);k[n]=function(t){j(O,n,t);return k}}k[e]=function(t){j(O,e,t);return k}});h("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed,setKeyboardShortcutsEnabled,isKeyboardShortcutsEnabled".split(","),function(){var e=this;k[e]=function(n,t){if(!k.isLoaded())return k;var x=null;x=n!==undefined&&t!==undefined?
r["fp_"+e](n,t):n===undefined?r["fp_"+e]():r["fp_"+e](n);return x==="undefined"||x===undefined?k:x}});k._fireEvent=function(e){if(typeof e=="string")e=[e];var n=e[0],t=e[1],x=e[2],K=e[3],M=0;G.debug&&console.log("$f.fireEvent",[].slice.call(e));if(!k.isLoaded()&&n=="onLoad"&&t=="player"){r=r||document.getElementById(ca);ja=k._swfHeight();h(s,function(){this._fireEvent("onLoad")});h(N,function(aa,da){da._fireEvent("onUpdate")});C._fireEvent("onLoad")}if(!(n=="onLoad"&&t!="player")){if(n=="onError")if(typeof t==
"string"||typeof t=="number"&&typeof x=="number"){t=x;x=K}if(n=="onContextMenu")h(G.contextMenu[t],function(aa,da){da.call(k)});else if(n=="onPluginEvent"||n=="onBeforePluginEvent"){if(K=N[t.name||t]){K._fireEvent("onUpdate",t);return K._fireEvent(x,e.slice(3))}}else{if(n=="onPlaylistReplace"){s=[];var W=0;h(t,function(){s.push(new E(this,W++,k))})}if(n=="onClipAdd"){if(t.isInStream)return;t=new E(t,x,k);s.splice(x,0,t);for(M=x+1;M<s.length;M++)s[M].index++}var U=true;if(typeof t=="number"&&t<s.length){fa=
t;if(e=s[t])U=e._fireEvent(n,x,K);if(!e||U!==false)U=C._fireEvent(n,x,K,e)}h(O[n],function(){U=this.call(k,t,x);this.cached&&O[n].splice(M,1);if(U===false)return false;M++});return U}}};if(typeof v=="string"){var f=document.getElementById(v);if(!f)throw"Flowplayer cannot access element: "+v;v=f}(function(){function e(t){var x=k.hasiPadSupport&&k.hasiPadSupport();if(/iPad|iPhone|iPod/i.test(navigator.userAgent)&&!/.flv$/i.test(s[0].url)&&!x)return true;!k.isLoaded()&&k._fireEvent("onBeforeClick")!==
false&&k.load();return g(t)}if($f(v)){$f(v).getParent().innerHTML="";Z=$f(v).getIndex();c[Z]=k}else{c.push(k);Z=c.length-1}a=parseInt(v.style.height,10)||v.clientHeight;S=v.id||"fp"+l();ca=H.id||S+"_api";H.id=ca;G.playerId=S;if(typeof G=="string")G={clip:{url:G}};if(typeof G.clip=="string")G.clip={url:G.clip};G.clip=G.clip||{};if(v.getAttribute("href",2)&&!G.clip.url)G.clip.url=v.getAttribute("href",2);C=new E(G.clip,-1,k);G.playlist=G.playlist||[G.clip];var n=0;h(G.playlist,function(){var t=this;
if(typeof t=="object"&&t.length)t={url:""+t};h(G.clip,function(x,K){if(K!==undefined&&t[x]===undefined&&typeof K!="function")t[x]=K});G.playlist[n]=t;t=new E(t,n,k);s.push(t);n++});h(G,function(t,x){if(typeof x=="function"){C[t]?C[t](x):j(O,t,x);delete G[t]}});h(G.plugins,function(t,x){if(x)N[t]=new A(t,x,k)});if(!G.plugins||G.plugins.controls===undefined)N.controls=new A("controls",null,k);N.canvas=new A("canvas",null,k);L=v.innerHTML;setTimeout(function(){if(L.replace(/\s/g,"")!=="")if(v.addEventListener)v.addEventListener("click",
e,false);else v.attachEvent&&v.attachEvent("onclick",e);else{v.addEventListener&&v.addEventListener("click",g,false);k.load()}},0)})()}function w(v){this.length=v.length;this.each=function(H){h(v,H)};this.size=function(){return v.length}}var E=function(v,H,G){var k=this,r={},z={};k.index=H;if(typeof v=="string")v={url:v};o(this,v,true);h("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop".split(","),function(){var C="on"+this;if(C.indexOf("*")!=-1){C=
C.slice(0,C.length-1);var s="onBefore"+C.slice(2);k[s]=function(N){j(z,s,N);return k}}k[C]=function(N){j(z,C,N);return k};if(H==-1){if(k[s])G[s]=k[s];if(k[C])G[C]=k[C]}});o(this,{onCuepoint:function(C,s){if(arguments.length==1){r.embedded=[null,C];return k}if(typeof C=="number")C=[C];var N=l();r[N]=[C,s];G.isLoaded()&&G._api().fp_addCuepoints(C,H,N);return k},update:function(C){o(k,C);G.isLoaded()&&G._api().fp_updateClip(C,H);var s=G.getConfig();o(H==-1?s.clip:s.playlist[H],C,true)},_fireEvent:function(C,
s,N,O){if(C=="onLoad"){h(r,function(Z,fa){fa[0]&&G._api().fp_addCuepoints(fa[0],H,Z)});return false}O=O||k;if(C=="onCuepoint"){var S=r[s];if(S)return S[1].call(G,O,N)}if(s&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(C)!=-1){o(O,s);if(s.metaData)if(O.duration)O.fullDuration=s.metaData.duration;else O.duration=s.metaData.duration}var ca=true;h(z[C],function(){ca=this.call(G,O,s,N)});return ca}});if(v.onCuepoint){var L=v.onCuepoint;k.onCuepoint.apply(k,typeof L=="function"?[L]:L);delete v.onCuepoint}h(v,
function(C,s){if(typeof s=="function"){j(z,C,s);delete v[C]}});if(H==-1)G.onCuepoint=this.onCuepoint},A=function(v,H,G,k){var r=this,z={},L=false;k&&o(z,k);h(H,function(C,s){if(typeof s=="function"){z[C]=s;delete H[C]}});o(this,{animate:function(C,s,N){if(!C)return r;if(typeof s=="function"){N=s;s=500}if(typeof C=="string"){var O=C;C={};C[O]=s;s=500}if(N){var S=l();z[S]=N}if(s===undefined)s=500;H=G._api().fp_animate(v,C,s,S);return r},css:function(C,s){if(s!==undefined){var N={};N[C]=s;C=N}H=G._api().fp_css(v,
C);o(r,H);return r},show:function(){this.display="block";G._api().fp_showPlugin(v);return r},hide:function(){this.display="none";G._api().fp_hidePlugin(v);return r},toggle:function(){this.display=G._api().fp_togglePlugin(v);return r},fadeTo:function(C,s,N){if(typeof s=="function"){N=s;s=500}if(N){var O=l();z[O]=N}this.display=G._api().fp_fadeTo(v,C,s,O);this.opacity=C;return r},fadeIn:function(C,s){return r.fadeTo(1,C,s)},fadeOut:function(C,s){return r.fadeTo(0,C,s)},getName:function(){return v},
getPlayer:function(){return G},_fireEvent:function(C,s){if(C=="onUpdate"){var N=G._api().fp_getPlugin(v);if(!N)return;o(r,N);delete r.methods;if(!L){h(N.methods,function(){var O=""+this;r[O]=function(){var S=[].slice.call(arguments);S=G._api().fp_invoke(v,O,S);return S==="undefined"||S===undefined?r:S}});L=true}}if(N=z[C]){N=N.apply(r,s);C.slice(0,1)=="_"&&delete z[C];return N}return r}})},c=[];window.flowplayer=window.$f=function(){var v=null,H=arguments[0];if(!arguments.length){h(c,function(){if(this.isLoaded()){v=
this;return false}});return v||c[0]}if(arguments.length==1)if(typeof H=="number")return c[H];else{if(H=="*")return new w(c);h(c,function(){if(this.id()==H.id||this.id()==H||this.getParent()==H){v=this;return false}});return v}if(arguments.length>1){var G=arguments[1],k=arguments.length==3?arguments[2]:{};if(typeof G=="string")G={src:G};G=o({bgcolor:"#000000",version:[9,0],expressInstall:"http://static.flowplayer.org/swf/expressinstall.swf",cachebusting:false},G);if(typeof H=="string")if(H.indexOf(".")!=
-1){var r=[];h(d(H),function(){r.push(new u(this,b(G),b(k)))});return new w(r)}else{var z=document.getElementById(H);return new u(z!==null?z:H,G,k)}else if(H)return new u(H,G,k)}return null};o(window.$f,{fireEvent:function(){var v=[].slice.call(arguments),H=$f(v[0]);return H?H._fireEvent(v.slice(1)):null},addPlugin:function(v,H){u.prototype[v]=H;return $f},each:h,extend:o});if(typeof jQuery=="function")jQuery.fn.flowplayer=function(v,H){if(!arguments.length||typeof arguments[0]=="number"){var G=[];
this.each(function(){var k=$f(this);k&&G.push(k)});return arguments.length?G[arguments[0]]:new w(G)}return this.each(function(){$f(this,b(v),H?b(H):{})})}})();
(function(){function b(){if(E.done)return false;var A=document;if(A&&A.getElementsByTagName&&A.getElementById&&A.body){clearInterval(E.timer);E.timer=null;for(A=0;A<E.ready.length;A++)E.ready[A].call();E.ready=null;E.done=true}}function h(A,c){if(c)for(key in c)if(c.hasOwnProperty(key))A[key]=c[key];return A}function o(A){switch(d(A)){case "string":A=A.replace(new RegExp('(["\\\\])',"g"),"\\$1");A=A.replace(/^\s?(\d+)%/,"$1pct");return'"'+A+'"';case "array":return"["+g(A,function(H){return o(H)}).join(",")+
"]";case "function":return'"function()"';case "object":var c=[];for(var v in A)A.hasOwnProperty(v)&&c.push('"'+v+'":'+o(A[v]));return"{"+c.join(",")+"}"}return String(A).replace(/\s/g," ").replace(/\'/g,'"')}function d(A){if(A===null||A===undefined)return false;var c=typeof A;return c=="object"&&A.push?"array":c}function g(A,c){var v=[];for(var H in A)if(A.hasOwnProperty(H))v[H]=c(A[H]);return v}function j(A,c){var v=h({},A),H=document.all,G='<object width="'+v.width+'" height="'+v.height+'"';if(H&&
!v.id)v.id="_"+(""+Math.random()).substring(9);if(v.id)G+=' id="'+v.id+'"';if(v.cachebusting)v.src+=(v.src.indexOf("?")!=-1?"&":"?")+Math.random();G+=v.w3c||!H?' data="'+v.src+'" type="application/x-shockwave-flash"':' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';G+=">";if(v.w3c||H)G+='<param name="movie" value="'+v.src+'" />';v.width=v.height=v.id=v.w3c=v.src=null;for(var k in v)if(v[k]!==null)G+='<param name="'+k+'" value="'+v[k]+'" />';v="";if(c){for(var r in c)if(c[r]!==null)v+=r+"="+
(typeof c[r]=="object"?o(c[r]):c[r])+"&";v=v.substring(0,v.length-1);G+='<param name="flashvars" value=\''+v+"' />"}G+="</object>";return G}function l(A,c,v){var H=flashembed.getVersion();h(this,{getContainer:function(){return A},getConf:function(){return c},getVersion:function(){return H},getFlashvars:function(){return v},getApi:function(){return A.firstChild},getHTML:function(){return j(c,v)}});var G=c.version,k=c.expressInstall,r=!G||flashembed.isSupported(G);if(r){c.onFail=c.version=c.expressInstall=
null;A.innerHTML=j(c,v)}else if(G&&k&&flashembed.isSupported([6,65])){h(c,{src:k});v={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};A.innerHTML=j(c,v)}else if(A.innerHTML.replace(/\s/g,"")===""){A.innerHTML="<h2>Flash version "+G+" or greater is required</h2><h3>"+(H[0]>0?"Your version is "+H:"You have no flash plugin installed")+"</h3>"+(A.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='http://www.adobe.com/go/getflashplayer'>here</a></p>");
if(A.tagName=="A")A.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"}}if(!r&&c.onFail){G=c.onFail.call(this);if(typeof G=="string")A.innerHTML=G}if(document.all)window[c.id]=document.getElementById(c.id)}var u=typeof jQuery=="function",w={width:"100%",height:"100%",allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(u){jQuery.tools=jQuery.tools||{};jQuery.tools.flashembed={version:"1.0.4",
conf:w}}var E=u?jQuery:function(A){if(E.done)return A();if(E.timer)E.ready.push(A);else{E.ready=[A];E.timer=setInterval(b,13)}};window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}});window.flashembed=function(A,c,v){if(typeof A=="string"){var H=document.getElementById(A);if(H)A=H;else{E(function(){flashembed(A,c,v)});return}}if(A){if(typeof c=="string")c={src:c};H=h({},w);h(H,c);return new l(A,H,v)}};h(window.flashembed,
{getVersion:function(){var A=[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var c=navigator.plugins["Shockwave Flash"].description;if(typeof c!="undefined"){c=c.replace(/^.*\s+(\S+\s+\S+$)/,"$1");A=parseInt(c.replace(/^(.*)\..*$/,"$1"),10);c=/r/.test(c)?parseInt(c.replace(/^.*r(.*)$/,"$1"),10):0;A=[A,c]}}else if(window.ActiveXObject){try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(v){try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");A=
[6,0];c.AllowScriptAccess="always"}catch(H){if(A[0]==6)return A}try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(G){}}if(typeof c=="object"){c=c.GetVariable("$version");if(typeof c!="undefined"){c=c.replace(/^\S+\s+(.*)$/,"$1").split(",");A=[parseInt(c[0],10),parseInt(c[2],10)]}}}return A},isSupported:function(A){var c=flashembed.getVersion();return c[0]>A[0]||c[0]==A[0]&&c[1]>=A[1]},domReady:E,asString:o,getHTML:j});if(u)jQuery.fn.flashembed=function(A,c){var v=null;this.each(function(){v=
flashembed(this,A,c)});return A.api===false?this:v}})();
$(function(){function b(h){for(var o={},d=h.slice(h.indexOf("?")+1).replace(/&amp;/i,"&").split("&"),g=0;g<d.length;g++){h=d[g].split("=");o[h[0]]=h[1]}return o}$("body").bind("decorate",function(){$("a.lightbox.iframe").unbind("click").bind("click",function(){var h=$(this).attr("href"),o=$(this).attr("title");o=b(h);var d="70%",g="70%";if(o.width!=undefined&&o.height!=undefined){d=o.width;g=o.height}o=$(this).attr("title");$.colorbox({href:h,title:o,width:d,height:g,iframe:true});return false});
$("a.lightbox.inline").unbind("click").bind("click",function(){var h=$(this).attr("href"),o=$(this).attr("title");o=b(h);var d="70%",g="70%";if(o.width!=undefined&&o.height!=undefined){d=o.width;g=o.height}o=$(this).attr("title");h=h.match(/#[^?]+/);$.colorbox({href:h[0],title:o,width:d,height:g,inline:true});return false});$("a.lightbox.image").unbind("click").bind("click",function(){var h=$(this).attr("href"),o=$(this).attr("title");$.colorbox({href:h,photo:true,title:o});return false});$("a.lightbox.video").unbind("click").bind("click",
function(){var h=$(this).attr("href"),o=$(this).attr("title");o=b(h);var d="570px",g="360px";if(o.width!=undefined&&o.height!=undefined){d=o.width;g=o.height}o=$(this).attr("title");$.colorbox({title:o,innerWidth:d,innerHeight:g,html:'<div style="display:block;width:'+d+";height:"+g+';" id="lightbox-player"></div>',onComplete:function(){flowplayer("lightbox-player","/flowplayer/flowplayer-3.2.7.swf",{clip:{url:escape(h),autoBuffering:true,autoPlay:true,bufferLength:10}})}});return false})})});
(function(b){var h=/:([\w\d]+)/g,o=/\?([^#]*)$/,d=[];Sammy={};Sammy.VERSION="0.4.0";Sammy.addLogger=function(g){d.push(g)};Sammy.log=function(){var g=b.makeArray(arguments);g.unshift("["+Date()+"]");b.each(d,function(j,l){l.apply(Sammy,g)})};if(typeof window.console!="undefined"&&typeof window.console.log.apply!="undefined")Sammy.addLogger(function(){window.console.log.apply(window.console,arguments)});else typeof console!="undefined"&&typeof console.log.apply!="undefined"&&Sammy.addLogger.push(function(){console.log.apply(console,
arguments)});Sammy.Object=function(g){this.extend(g)};b.extend(Sammy.Object.prototype,{extend:function(g){b.extend(this,g)},clone:function(g){if(typeof g=="undefined")g=this;return b.extend({},g)},toHash:function(){var g={};this.each(function(j,l){b.isFunction(l)||(g[j]=l)});return g},toHTML:function(){var g="";this.each(function(j,l){b.isFunction(l)||(g+="<strong>"+j+"</strong> "+l+"<br />")});return g},uuid:function(){if(typeof this._uuid=="undefined"||!this._uuid)this._uuid=(new Date).getTime()+
"-"+parseInt(Math.random()*1E3);return this._uuid},each:function(g,j){var l,u,w;l=this;if(typeof g!="function"){u=g;w=j}else{u=this;w=g}b.each(u,function(){return w.apply(l,arguments)})},keys:function(g){var j=[];for(var l in this)if(!b.isFunction(this[l])||!g)j.push(l);return j},join:function(){var g=b.makeArray(arguments),j=g.shift();return g.join(j)},log:function(){Sammy.log.apply(Sammy,arguments)},toString:function(g){var j=[];this.each(function(l,u){if(!b.isFunction(u)||g)j.push('"'+l+'": '+
u.toString())});return"Sammy.Object: {"+j.join(",")+"}"}});Sammy.HashLocationProxy=function(g,j){this.app=g;this.is_native=false;this._startPolling(j)};Sammy.HashLocationProxy.prototype={bind:function(){var g=this,j=this.app;b(window).bind("hashchange."+this.app.eventNamespace(),function(l,u){if(g.is_native===false&&!u){Sammy.log("native hash change exists, using");g.is_native=true;clearInterval(Sammy.HashLocationProxy._interval)}j.trigger("location-changed")})},unbind:function(){b(window).die("hashchange."+
this.app.eventNamespace())},getLocation:function(){var g=window.location.toString().match(/^[^#]*(#.+)$/);return g?g[1]:""},setLocation:function(g){return window.location=g},_startPolling:function(g){var j=this;if(!Sammy.HashLocationProxy._interval){g||(g=10);var l=function(){current_location=j.getLocation();if(!Sammy.HashLocationProxy._last_location||current_location!=Sammy.HashLocationProxy._last_location)setTimeout(function(){b(window).trigger("hashchange",[true])},1);Sammy.HashLocationProxy._last_location=
current_location};l();Sammy.HashLocationProxy._interval=setInterval(l,g);b(window).bind("unload",function(){clearInterval(Sammy.HashLocationProxy._interval)})}}};Sammy.DataLocationProxy=function(g,j){this.app=g;this.data_name=j||"sammy-location"};Sammy.DataLocationProxy.prototype={bind:function(){var g=this;this.app.$element().bind("setData",function(j,l){l==g.data_name&&g.app.trigger("location-changed")})},unbind:function(){this.app.$element().die("setData")},getLocation:function(){return this.app.$element().data(this.data_name)},
setLocation:function(g){return this.app.$element().data(this.data_name,g)}};Sammy.Application=function(g){var j=this;this.routes={};this.listeners=new Sammy.Object({});this.befores=[];this.namespace=this.uuid();this.context_prototype=function(){Sammy.EventContext.apply(this,arguments)};this.context_prototype.prototype=new Sammy.EventContext;this.each(this.ROUTE_VERBS,function(l,u){this._defineRouteShortcut(u)});b.isFunction(g)&&g.apply(this,[this]);if(!this.location_proxy)this.location_proxy=new Sammy.HashLocationProxy(j,
this.run_interval_every);this.debug&&this.bindToAllEvents(function(l,u){j.log(j.toString(),l.cleaned_type,u||{})})};Sammy.Application.prototype=b.extend({},Sammy.Object.prototype,{ROUTE_VERBS:["get","post","put","delete"],APP_EVENTS:["run","unload","lookup-route","run-route","route-found","event-context-before","event-context-after","changed","error-404","check-form-submission","redirect"],_last_route:null,_running:false,data_store_name:"sammy-app",element_selector:"body",debug:false,silence_404:true,
run_interval_every:50,location_proxy:null,toString:function(){return"Sammy.Application:"+this.element_selector},$element:function(){return b(this.element_selector)},use:function(){var g=b.makeArray(arguments),j=g.shift();try{g.unshift(this);j.apply(this,g)}catch(l){if(typeof j=="undefined")throw"Error: called use() but plugin is not defined";else if(b.isFunction(j))throw l;else throw"Error: called use() but '"+j.toString()+"' is not a function";}},route:function(g,j,l){var u=[];if(j.constructor==
String){for(h.lastIndex=0;(path_match=h.exec(j))!=null;)u.push(path_match[1]);j=new RegExp(j.replace(h,"([^/]+)")+"$")}j={verb:g,path:j,callback:l,param_names:u};if(typeof this.routes[g]=="undefined"||this.routes[g].length==0)this.routes[g]=[j];else this.routes[g].push(j);return j},eventNamespace:function(){return[this.data_store_name,this.namespace].join("-")},bind:function(g,j,l){var u=this;if(typeof l=="undefined")l=j;j=function(w,E){var A;if(E&&E.context){A=E.context;delete E.context}else A=new u.context_prototype(u,
"bind",w.type,E);w.cleaned_type=w.type.replace(u.eventNamespace(),"");l.apply(A,[w,E])};this.listeners[g]||(this.listeners[g]=[]);this.listeners[g].push(j);if(this.isRunning())return this._listen(g,j)},trigger:function(g,j){return this.$element().trigger([g,this.eventNamespace()].join("."),[j])},refresh:function(){this.last_location=null},before:function(g){return this.befores.push(g)},after:function(g){return this.bind("event-context-after",g)},isRunning:function(){return this._running},helpers:function(g){b.extend(this.context_prototype.prototype,
g)},helper:function(g,j){this.context_prototype.prototype[g]=j},run:function(g){if(this.isRunning())return false;var j=this;this.each(this.listeners.toHash(),function(l,u){this.each(u,function(w,E){this._listen(l,E)})});this.trigger("run",{start_url:g});this._running=true;this.$element().data(this.data_store_name,this);this.last_location=null;this.getLocation()==""&&typeof g!="undefined"&&this.setLocation(g);this._checkLocation();this.location_proxy.bind();this.bind("location-changed",function(){j._checkLocation()});
this.bind("changed",function(){j.$element().find("form:not(."+j.eventNamespace()+")").bind("submit",function(){return j._checkFormSubmission(this)}).addClass(j.eventNamespace())});b("body").bind("onunload",function(){j.unload()});this.trigger("changed")},unload:function(){if(!this.isRunning())return false;this.trigger("unload");this.location_proxy.unbind();this.$element().find("form").unbind("submit").removeClass(this.eventNamespace());this.$element().removeData(this.data_store_name);this.each(this.listeners.toHash(),
function(g,j){this.each(j,function(l,u){this._unlisten(g,u)})});this._running=false},bindToAllEvents:function(g){this.each(this.APP_EVENTS,function(j,l){this.bind(l,g)});this.each(this.listeners.keys(true),function(j,l){this.APP_EVENTS.indexOf(l)==-1&&this.bind(l,g)})},routablePath:function(g){return g.replace(o,"")},lookupRoute:function(g,j){var l=false;this.trigger("lookup-route",{verb:g,path:j});typeof this.routes[g]!="undefined"&&this.each(this.routes[g],function(u,w){if(this.routablePath(j).match(w.path)){l=
w;return false}});return l},runRoute:function(g,j,l){this.log("runRoute",[g,j].join(" "));this.trigger("run-route",{verb:g,path:j,params:l});if(typeof l=="undefined")l={};b.extend(l,this._parseQueryString(j));var u=this.lookupRoute(g,j);if(u){this.trigger("route-found",{route:u});if((path_params=u.path.exec(this.routablePath(j)))!=null){path_params.shift();this.each(path_params,function(w,E){if(u.param_names[w])l[u.param_names[w]]=E;else{l.splat||(l.splat=[]);l.splat.push(E)}})}g=new this.context_prototype(this,
g,j,l);this.last_route=u;for(j=this.befores.slice(0);j.length>0;)if(j.shift().apply(g)===false)return false;g.trigger("event-context-before",{context:g});j=u.callback.apply(g,[g]);g.trigger("event-context-after",{context:g});return j}else this.notFound(g,j)},getLocation:function(){return this.location_proxy.getLocation()},setLocation:function(g){return this.location_proxy.setLocation(g)},swap:function(g){return this.$element().html(g)},notFound:function(g,j){this.trigger("error-404",{verb:g,path:j});
throw"404 Not Found "+g+" "+j;},_defineRouteShortcut:function(g){var j=this;this[g]=function(l,u){j.route.apply(j,[g,l,u])}},_checkLocation:function(){try{var g,j;g=this.getLocation();if(g!=this.last_location)j=this.runRoute("get",g);this.last_location=g}catch(l){this.last_location=g;if(l.toString().match(/^404/)&&this.silence_404)return j;else throw l;}return j},_checkFormSubmission:function(g){var j,l,u;this.trigger("check-form-submission",{form:g});j=b(g);g=j.attr("action");l=b.trim(j.attr("method").toString().toLowerCase());
if(!l||l=="")l="get";j=b.extend({},this._parseFormParams(j),{$form:j});try{u=this.runRoute(l,g,j)}catch(w){if(w.toString().match(/^404/)&&this.silence_404)return true;else throw w;}return typeof u=="undefined"?false:u},_parseFormParams:function(g){var j={};b.each(g.serializeArray(),function(l,u){if(j[u.name])if(b.isArray(j[u.name]))j[u.name].push(u.value);else j[u.name]=[j[u.name],u.value];else j[u.name]=u.value});return j},_parseQueryString:function(g){var j={},l,u;if(g=g.match(o)){g=g[1].split("&");
for(u=0;u<g.length;u+=1){l=g[u].split("=");j[l[0]]=decodeURIComponent(l[1])}}return j},_listen:function(g,j){return this.$element().bind([g,this.eventNamespace()].join("."),j)},_unlisten:function(g,j){return this.$element().unbind([g,this.eventNamespace()].join("."),j)}});Sammy.EventContext=function(g,j,l,u){this.app=g;this.verb=j;this.path=l;this.params=new Sammy.Object(u)};Sammy.EventContext.prototype=b.extend({},Sammy.Object.prototype,{$element:function(){return this.app.$element()},partial:function(g,
j,l){var u,w,E="partial:"+g,A=this;if(w=g.match(/\.([^\.]+)$/))w=w[1];if(typeof l=="undefined")if(b.isFunction(j)){l=j;j={}}else l=function(c){A.app.swap(c)};j=b.extend({},j,this);u=function(c){if(w&&b.isFunction(A[w]))c=A[w].apply(A,[c,j]);l.apply(A,[c]);A.trigger("changed")};this.app.cache_partials&&this.cache(E)?u.apply(A,[this.cache(E)]):b.get(g,function(c){A.app.cache_partials&&A.cache(E,c);u.apply(A,[c])})},redirect:function(){var g;g=b.makeArray(arguments);var j=this.app.getLocation();if(g.length>
1){g.unshift("/");g=this.join.apply(this,g)}else g=g[0];this.trigger("redirect",{to:g});this.app.last_location=this.path;this.app.setLocation(g);j==g&&this.app.trigger("location-changed")},trigger:function(g,j){if(typeof j=="undefined")j={};if(!j.context)j.context=this;return this.app.trigger(g,j)},eventNamespace:function(){return this.app.eventNamespace()},notFound:function(){return this.app.notFound(this.verb,this.path)},toString:function(){return"Sammy.EventContext: "+[this.verb,this.path,this.params].join(" ")}});
b.sammy=function(g){return new Sammy.Application(g)}})(jQuery);
(function(b){if(!h)var h=function(){var o=function(){};o.prototype={otag:"{{",ctag:"}}",pragmas:{},render:function(d,g,j){if(d.indexOf(this.otag)==-1)return d;d=this.render_pragmas(d);return this.render_tags(this.render_section(d,g,j),g,j)},render_pragmas:function(d){if(d.indexOf(this.otag+"%")==-1)return d;var g=this;return d.replace(new RegExp(this.otag+"%(.+)"+this.ctag),function(j,l){g.pragmas[l]=true;return""})},render_partial:function(d,g,j){if(typeof g[d]!="object")throw{message:"subcontext for '"+
d+"' is not an object"};if(!j||!j[d])throw{message:"unknown_partial"};return this.render(j[d],g[d],j)},render_section:function(d,g,j){if(d.indexOf(this.otag+"#")==-1)return d;var l=this;return d.replace(new RegExp(this.otag+"\\#(.+)"+this.ctag+"\\s*([\\s\\S]+?)"+this.otag+"\\/\\1"+this.ctag+"\\s*","mg"),function(u,w,E){u=l.find(w,g);return l.is_array(u)?l.map(u,function(A){return l.render(E,l.merge(g,l.create_context(A)),j)}).join(""):u?l.render(E,g,j):""})},render_tags:function(d,g,j){d=d.split("\n");
for(var l=function(){return new RegExp(u.otag+"(=|!|>|\\{|%)?([^/#]+?)\\1?"+u.ctag+"+","g")},u=this,w=l(),E=0;E<d.length;E++)d[E]=d[E].replace(w,function(A,c,v){switch(c){case "!":return A;case "=":u.set_delimiters(v);w=l();E--;return"";case ">":return u.render_partial(v,g,j);case "{":return u.find(v,g);default:return u.escape(u.find(v,g))}},this);return d.join("\n")},set_delimiters:function(d){d=d.split(" ");this.otag=this.escape_regex(d[0]);this.ctag=this.escape_regex(d[1])},escape_regex:function(d){if(!arguments.callee.sRE)arguments.callee.sRE=
new RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\)","g");return d.replace(arguments.callee.sRE,"\\$1")},find:function(d,g){d=this.trim(d);if(typeof g[d]==="function")return g[d].apply(g);if(g[d]!==undefined)return g[d];return""},escape:function(d){return d.toString().replace(/[&"<>\\]/g,function(g){switch(g){case "&":return"&amp;";case "\\":return"\\\\";case '"':return'"';case "<":return"&lt;";case ">":return"&gt;";default:return g}})},merge:function(d,g){var j={};for(var l in d)if(d.hasOwnProperty(l))j[l]=
d[l];for(l in g)if(g.hasOwnProperty(l))j[l]=g[l];return j},create_context:function(d){if(this.is_object(d))return d;else if(this.pragmas["JSTACHE-ENABLE-STRING-ARRAYS"])return{".":d}},is_object:function(d){return d&&typeof d=="object"},is_array:function(d){return d&&typeof d==="object"&&d.constructor===Array},trim:function(d){return d.replace(/^\s*|\s*$/g,"")},map:function(d,g){if(typeof d.map=="function")return d.map(g);else{var j=[],l=d.length;for(i=0;i<l;i++)j.push(g(d[i]));return j}}};return{name:"mustache.js",
version:"0.2",to_html:function(d,g,j){return(new o).render(d,g,j)}}}();Sammy=Sammy||{};Sammy.Mustache=function(o,d){d||(d="mustache");o.helper(d,function(g,j){return h.to_html(g,b.extend({},this,j))})}})(jQuery);
(function(b){b.extend({metadata:{defaults:{type:"class",name:"metadata",cre:/({.*})/,single:"metadata"},setType:function(h,o){this.defaults.type=h;this.defaults.name=o},get:function(h,o){var d=b.extend({},this.defaults,o);if(!d.single.length)d.single="metadata";var g=b.data(h,d.single);if(g)return g;g="{}";var j=function(w){if(typeof w!="string")return w;return w=eval("("+w+")")};if(d.type=="html5"){var l={};b(h.attributes).each(function(){var w=this.nodeName;if(w.match(/^data-/))w=w.replace(/^data-/,
"");else return true;l[w]=j(this.nodeValue)})}else{if(d.type=="class"){var u=d.cre.exec(h.className);if(u)g=u[1]}else if(d.type=="elem"){if(!h.getElementsByTagName)return;u=h.getElementsByTagName(d.name);if(u.length)g=b.trim(u[0].innerHTML)}else if(h.getAttribute!=undefined)if(u=h.getAttribute(d.name))g=u;l=j(g.indexOf("{")<0?"{"+g+"}":g)}b.data(h,d.single,l);return l}}});b.fn.metadata=function(h){return b.metadata.get(this[0],h)}})(jQuery);
var SITE=$.extend({subApps:[],runRoute:function(b){$.each(SITE.subApps,function(h,o){o.run(b)})}},SITE||{});
(function(){var b=false,h=/xyz/.test(function(){})?/\b_super\b/:/.*/;this.Class=function(){};Class.subClass=function(o){function d(){!b&&this.init&&this.init.apply(this,arguments)}var g=this.prototype;b=true;var j=new this;b=false;for(var l in o)j[l]=typeof o[l]=="function"&&typeof g[l]=="function"&&h.test(o[l])?function(u,w){return function(){var E=this._super;this._super=g[u];var A=w.apply(this,arguments);this._super=E;return A}}(l,o[l]):o[l];d.prototype=j;d.constructor=d;d.subClass=arguments.callee;
return d}})();ApplicationController=Class.subClass({init:function(b){this.sammy=b}});var CMS={template:function(b){return"/js_templates/"+b},uniqueId:function(){return $.cms.uniqueId()},stripPath:function(b){return b.path.slice(1)}};function S4(){return((1+Math.random())*65536|0).toString(16).substring(1)}function guid(){return S4()+S4()+"-"+S4()+"-"+S4()+"-"+S4()+"-"+S4()+S4()+S4()}
jQuery.cms=jQuery.extend({icons:{save:"circle-check",add:"circle-plus",move:"circle-arrow-e",save_order:"circle-check",cancel_order:"circle-close",cancel:"circle-close","delete":"circle-close",submit:"star",approve:"check",back:"circle-arrow-w",open:"extlink",preview:"extlink",menu:"circle-arrow-e",menu_down:"triangle-1-s",search:"search",check:"check",star:"star",tag:"tag",file:"folder-open",edit:"pencil",report:"notice",show:"check",url:"link",image:"image"},buttons:{},request:{},uniqueId:function(b){return b?
b+"-"+guid():guid()},confirm:function(b,h,o){if(b)$.cms.dialog({title:"Confirm",width:350,content:b,buttons:{"Yes I'm sure":function(){var d=true;if($.isFunction(h))d=h.call(this);$(this).trigger("close");return d},No:function(){$.isFunction(o)&&o.call(this);$(this).trigger("close")}}});else{b=true;if($.isFunction(h))b=h.call(this);return b}return false}},jQuery.cms||{});
CMS.TicketsController=ApplicationController.subClass({init:function(b){this._super(b);var h=this;h.initCurrentUser();typeof Zenbox=="undefined"&&h.injectAssets();b.get("#/tickets/new",function(o){h.showTicketDialog(h,o);window.location="#/"})},initCurrentUser:function(){if(typeof SITE=="undefined")SITE={};if(typeof SITE.current_user=="undefined")SITE.current_user={name:"",email:""}},injectAssets:function(){$("head").append("<link>");css=$("head").children(":last");css.attr({rel:"stylesheet",type:"text/css",
href:"https://asset0.zendesk.com/external/zenbox/v2.1/zenbox.css"});$.getScript("https://asset0.zendesk.com/external/zenbox/v2.1/zenbox.js")},showTicketDialog:function(){if(typeof Zenbox!=="undefined"){Zenbox.init({dropboxID:"20016917",url:"https://trabian.zendesk.com",requester_name:SITE.current_user.name,requester_email:SITE.current_user.email,tabID:"support",tabColor:"black",tabPosition:"Left",hide_tab:true});setTimeout(function(){Zenbox.show()},200)}}});
jQuery.cookie=function(b,h,o){if(typeof h!="undefined"){o=o||{};if(h===null){h="";o.expires=-1}var d="";if(o.expires&&(typeof o.expires=="number"||o.expires.toUTCString)){if(typeof o.expires=="number"){d=new Date;d.setTime(d.getTime()+o.expires*24*60*60*1E3)}else d=o.expires;d="; expires="+d.toUTCString()}var g=o.path?"; path="+o.path:"",j=o.domain?"; domain="+o.domain:"";o=o.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(h),d,g,j,o].join("")}else{h=null;if(document.cookie&&document.cookie!=
""){o=document.cookie.split(";");for(d=0;d<o.length;d++){g=jQuery.trim(o[d]);if(g.substring(0,b.length+1)==b+"="){h=decodeURIComponent(g.substring(b.length+1));break}}}return h}};var $$=function(b){b=$(b)[0];var h=$.data(b);$.cache[h]=$.cache[h]||{};$.cache[h].node=b;return $.cache[h]};jQuery.fn.setupPlugin=function(b,h){for(extra in b)if(b[extra]instanceof Array)for(var o=0;o<b[extra].length;o++)b[extra][o].call(this,h);else b[extra].call(this,h)};
jQuery.fn.hoverClass=function(b){if(!$(this).length)return $(this);$$(this).hoverClass=b;$(this).hover(function(){$(this).addClass(b)},function(){$(this).removeClass(b)});return $(this)};
$.fn.button=function(b){b=$.extend({round:"all",icon_position:"left",icon_only:false,icons:$.cms.icons},b||{});this.each(function(){var h=$(this);if($$(h).button!=true){$$(h).button=true;h.addClass("button");if(h.hasClass("icon_right"))b.icon_position="right";if(!b.icon_only){h.hasClass("ui-state-active")||h.addClass("ui-state-default");h.hasClass("flat")||h.addClass("ui-corner-"+b.round);h.hoverClass("ui-state-hover")}var o=b.icon;if(b.icons&&!o)for(var d in b.icons)if(h.hasClass(d)){o=b.icons[d];
break}h.not(":contains(.label)")&&h.wrapInner('<span class="label"></span>');if(o){h.prepend('<span class="ui-icon ui-icon-'+o+'"></span>');h.addClass("button-icon-"+b.icon_position)}h.bind("disable",function(){h.addClass("ui-state-disabled")});h.bind("enable",function(){h.removeClass("ui-state-disabled")});$$(h).enabled=function(){return!h.is(".ui-state-disabled")};h.bind("setLabel",function(g,j){var l=$(".label",h);$$(l).defaultText=$$(l).defaultText||l.text();l.text(j)});h.bind("restoreLabel",
function(){var g=$(".label",h);g.text($$(g).defaultText)});h.trigger("initialize")}});return this};
SITE.OverlayView=Class.subClass({init:function(b){this.elem=b},draw:function(b){if($.cookie("is_admin")=="true"){var h=this;h.insertStyles();var o="/overlay/"+SITE.sectionId,d=null;if(d=$("head meta[name=article_id]").attr("content"))o+="/"+d;b.partial(o,function(g){h.elem.prepend(g);g=h.elem.find("#overlay");h.decorateOverlay(g);h.adjustBodyBackground(h.elem);g.find("a.button.edit").length>0&&h.drawTabs(b)})}},drawTabs:function(b){this.elem.find(".tab-pane[data-section-id]").each(function(){var h=
$(this),o={sectionId:h.attr("data-section-id")};b.partial(CMS.template("overlay/tab.ms"),o,function(d){h.prepend(d);h.find(".icon").button({icon_only:true})})})},decorateOverlay:function(b){b.find(".button").button()},insertStyles:function(){var b=$("head");$.each(["/stylesheets/compiled/overlay.css?5"],function(h,o){b.append('<link rel="stylesheet" href="'+o+'" type="text/css" />')})},adjustBodyBackground:function(b){var h=b.css("background-position");if(h&&h!==""){var o=$("#overlay").height(),d=
h.indexOf(" "),g=h.substring(0,d);h=parseInt(h.substring(d),10);b.css("background-position",g+" "+(h+o)+"px")}}});SITE.OverlayController=ApplicationController.subClass({init:function(b){this._super(b);new CMS.TicketsController(b)}});
(function(b){function h(d){return typeof d=="object"?d:{top:d,left:d}}var o=b.scrollTo=function(d,g,j){b(window).scrollTo(d,g,j)};o.defaults={axis:"xy",duration:parseFloat(b.fn.jquery)>=1.3?0:1};o.window=function(){return b(window)._scrollable()};b.fn._scrollable=function(){return this.map(function(){if(!(!this.nodeName||b.inArray(this.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1))return this;var d=(this.contentWindow||this).document||this.ownerDocument||this;return b.browser.safari||
d.compatMode=="BackCompat"?d.body:d.documentElement})};b.fn.scrollTo=function(d,g,j){if(typeof g=="object"){j=g;g=0}if(typeof j=="function")j={onAfter:j};if(d=="max")d=9E9;j=b.extend({},o.defaults,j);g=g||j.speed||j.duration;j.queue=j.queue&&j.axis.length>1;if(j.queue)g/=2;j.offset=h(j.offset);j.over=h(j.over);return this._scrollable().each(function(){function l(H){w.animate(c,g,j.easing,H&&function(){H.call(this,d,j)})}var u=this,w=b(u),E=d,A,c={},v=w.is("html,body");switch(typeof E){case "number":case "string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(E)){E=
h(E);break}E=b(E,this);case "object":if(E.is||E.style)A=(E=b(E)).offset()}b.each(j.axis.split(""),function(H,G){var k=G=="x"?"Left":"Top",r=k.toLowerCase(),z="scroll"+k,L=u[z],C=o.max(u,G);if(A){c[z]=A[r]+(v?0:L-w.offset()[r]);if(j.margin){c[z]-=parseInt(E.css("margin"+k))||0;c[z]-=parseInt(E.css("border"+k+"Width"))||0}c[z]+=j.offset[r]||0;if(j.over[r])c[z]+=E[G=="x"?"width":"height"]()*j.over[r]}else{k=E[r];c[z]=k.slice&&k.slice(-1)=="%"?parseFloat(k)/100*C:k}if(/^\d+$/.test(c[z]))c[z]=c[z]<=0?
0:Math.min(c[z],C);if(!H&&j.queue){L!=c[z]&&l(j.onAfterFirst);delete c[z]}});l(j.onAfter)}).end()};o.max=function(d,g){var j=g=="x"?"Width":"Height",l="scroll"+j;if(!b(d).is("html,body"))return d[l]-b(d)[j.toLowerCase()]();j="client"+j;var u=d.ownerDocument.documentElement,w=d.ownerDocument.body;return Math.max(u[l],w[l])-Math.min(u[j],w[j])}})(jQuery);
SITE.TabsController=ApplicationController.subClass({init:function(b){this._super(b);var h=$("#tab-wrapper");if(h.length>0){this.tabs=h.find(".tabs li");this.panes=h.find(".tab-pane");this.childTabs=h.find(".child-tabs li");this.childPanes=h.find(".child-tab-pane");var o=this;this.log("Setting up tab sidebars...");this.setupTabSidebars();this.log("Done setting up tab sidebars.");this.log("Setting up tab cache...");this.setupTabCache();this.log("Done setting up tab cache.");b.get(/\#\!?\/tab\/(.*)/,
function(){if(o.tabs.length>0){var d=this.params.splat[0].split(/:/),g=d[1];d[0].split(/[\,#]/);var j=d[0].split("/")[0];o.showAnyTab(j,false);o.showAnyTab(d[0],true);g&&SITE.runRoute&&SITE.runRoute(g)}});b.bind("run",function(){if(!b.initialized){window.location.hash==""&&o.start();b.initialized=true}h.removeClass("undecorated").trigger("decorated")})}},start:function(){window.location.hash="/tab/"+this.defaultTab()},log:function(){},defaultTab:function(){return this.tabs.eq(0).find("a").attr("href").split("/").pop()},
showAnyTab:function(b,h){this.log("tabPath: ",b);tabs=$(".tabs li, .child-tabs li");panes=$(".tab-pane, .child-tab-pane");$("#right .from-tab-sidebar").remove();var o=tabs.filter(":has(a[href$=#/tab/"+b+"])");this.log("currentTab: ",o);o.siblings().removeClass("current").end().addClass("current");o=$("#"+this.tabCache[b]);this.log("$pane: ",o);$(".tab-pane, .child-tab-pane").hide();if(o.hasClass("child-tab-pane")){this.log("Destination tab is a child tab. Finding parent...");parentUrl=b.split("/")[0];
parentTab=$("#"+this.tabCache[parentUrl]);this.log("Parent tab: ",parentTab);parentTab.show();parentTab.find(".tab-content").hide();parentTab.find(".tab-pane, .child-tab-pane").hide()}else{this.log("Destination tab is NOT a child tab. Finding children tabs...");var d=o.find("ul.child-tabs");this.log("Children tabs: ",d);d.find("li").removeClass("current")}d=o.find("> .tab-content > .breadcrumb");d.length>0&&$("#breadcrumb").html(d.html());if((d=o.attr("data-page-title"))&&d!=""&&document&&document.title)document.title=
d;if(d=o.data("page_sidebar")){$("#right").append(d);$("#right .from-tab-sidebar .video_panel").each(function(){new SITE.VideoView($(this))});$("#right .from-tab-sidebar .ad_panel").each(function(){new SITE.AdView($(this))})}o.show().find(".tab-content").show();o.addClass("initialized");$("body").trigger("tab-change",{pane:o,tabPath:b});if(h)if(!o.find(".tab-content").filter(":visible").find("> span").length){o=o.find("ul.child-tabs li:first a").attr("href");if(o!=undefined)window.location=o}},setupTabSidebars:function(){controller=
this;controller.panes.each(function(){controller.moveSidebarToData($(this))});controller.childPanes.each(function(){controller.moveSidebarToData($(this))})},setupTabCache:function(){controller=this;controller.tabCache={};$(".tab-pane, .child-tab-pane").each(function(b,h){$pane=$(h);controller.log("$pane: ",$pane);var o=$pane.attr("data-section-url").split("#/tab/").pop();if(o.indexOf("/")===0)o=o.split("/").pop();controller.tabCache[o]=$pane.attr("id")});controller.log("Tab Cache: ",controller.tabCache)},
moveSidebarToData:function(b){var h=b.find("> .tab-content > .right-page-sidebar");h.find("> .panel").addClass("from-tab-sidebar");b.data("page_sidebar",h.html());h.remove()},hideChildTabs:function(b){b.childTabs.removeClass("current");b.childPanes.hide()}});
(function(b){function h(k){b.fn.cycle.debug&&o(k)}function o(){window.console&&console.log&&console.log("[cycle] "+Array.prototype.join.call(arguments," "))}function d(k,r,z){function L(s,N,O){if(!s&&N===true){s=b(O).data("cycle.opts");if(!s){o("options not found, can not resume");return false}if(O.cycleTimeout){clearTimeout(O.cycleTimeout);O.cycleTimeout=0}A(s.elements,s,1,!s.backwards)}}if(k.cycleStop==undefined)k.cycleStop=0;if(r===undefined||r===null)r={};if(r.constructor==String){switch(r){case "destroy":case "stop":z=
b(k).data("cycle.opts");if(!z)return false;k.cycleStop++;k.cycleTimeout&&clearTimeout(k.cycleTimeout);k.cycleTimeout=0;b(k).removeData("cycle.opts");r=="destroy"&&j(z);return false;case "toggle":k.cyclePause=k.cyclePause===1?0:1;L(k.cyclePause,z,k);return false;case "pause":k.cyclePause=1;return false;case "resume":k.cyclePause=0;L(false,z,k);return false;case "prev":case "next":z=b(k).data("cycle.opts");if(!z){o('options not found, "prev/next" ignored');return false}b.fn.cycle[r](z);return false;
default:r={fx:r}}return r}else if(r.constructor==Number){var C=r;r=b(k).data("cycle.opts");if(!r){o("options not found, can not advance slide");return false}if(C<0||C>=r.elements.length){o("invalid slide index: "+C);return false}r.nextSlide=C;if(k.cycleTimeout){clearTimeout(k.cycleTimeout);k.cycleTimeout=0}if(typeof z=="string")r.oneTimeFx=z;A(r.elements,r,1,C>=r.currSlide);return false}return r}function g(k,r){if(!b.support.opacity&&r.cleartype&&k.style.filter)try{k.style.removeAttribute("filter")}catch(z){}}
function j(k){k.next&&b(k.next).unbind(k.prevNextEvent);k.prev&&b(k.prev).unbind(k.prevNextEvent);if(k.pager||k.pagerAnchorBuilder)b.each(k.pagerAnchors||[],function(){this.unbind().remove()});k.pagerAnchors=null;k.destroy&&k.destroy(k)}function l(k,r,z,L,C){var s=b.extend({},b.fn.cycle.defaults,L||{},b.metadata?k.metadata():b.meta?k.data():{});if(s.autostop)s.countdown=s.autostopCount||z.length;var N=k[0];k.data("cycle.opts",s);s.$cont=k;s.stopCount=N.cycleStop;s.elements=z;s.before=s.before?[s.before]:
[];s.after=s.after?[s.after]:[];!b.support.opacity&&s.cleartype&&s.after.push(function(){g(this,s)});s.continuous&&s.after.push(function(){A(z,s,0,!s.backwards)});u(s);!b.support.opacity&&s.cleartype&&!s.cleartypeNoBg&&G(r);k.css("position")=="static"&&k.css("position","relative");s.width&&k.width(s.width);s.height&&s.height!="auto"&&k.height(s.height);if(s.startingSlide)s.startingSlide=parseInt(s.startingSlide);else if(s.backwards)s.startingSlide=z.length-1;if(s.random){s.randomMap=[];for(N=0;N<
z.length;N++)s.randomMap.push(N);s.randomMap.sort(function(){return Math.random()-0.5});s.randomIndex=1;s.startingSlide=s.randomMap[1]}else if(s.startingSlide>=z.length)s.startingSlide=0;s.currSlide=s.startingSlide||0;var O=s.startingSlide;r.css({position:"absolute",top:0,left:0}).hide().each(function(e){e=s.backwards?O?e<=O?z.length+(e-O):O-e:z.length-e:O?e>=O?z.length-(e-O):O-e:z.length-e;b(this).css("z-index",e)});b(z[O]).css("opacity",1).show();g(z[O],s);s.fit&&s.width&&r.width(s.width);s.fit&&
s.height&&s.height!="auto"&&r.height(s.height);if(s.containerResize&&!k.innerHeight()){for(var S=N=0,ca=0;ca<z.length;ca++){var Z=b(z[ca]),fa=Z[0],ja=Z.outerWidth(),a=Z.outerHeight();ja||(ja=fa.offsetWidth||fa.width||Z.attr("width"));a||(a=fa.offsetHeight||fa.height||Z.attr("height"));N=ja>N?ja:N;S=a>S?a:S}N>0&&S>0&&k.css({width:N+"px",height:S+"px"})}s.pause&&k.hover(function(){this.cyclePause++},function(){this.cyclePause--});if(w(s)===false)return false;var f=false;L.requeueAttempts=L.requeueAttempts||
0;r.each(function(){var e=b(this);this.cycleH=s.fit&&s.height?s.height:e.height()||this.offsetHeight||this.height||e.attr("height")||0;this.cycleW=s.fit&&s.width?s.width:e.width()||this.offsetWidth||this.width||e.attr("width")||0;if(e.is("img")){e=b.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete;var n=b.browser.opera&&(this.cycleW==42&&this.cycleH==19||this.cycleW==37&&this.cycleH==17)&&!this.complete,t=this.cycleH==0&&this.cycleW==0&&!this.complete;if(b.browser.msie&&this.cycleW==
28&&this.cycleH==30&&!this.complete||e||n||t)if(C.s&&s.requeueOnImageNotLoaded&&++L.requeueAttempts<100){o(L.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){b(C.s,C.c).cycle(L)},s.requeueTimeout);f=true;return false}else o("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}return true});if(f)return false;s.cssBefore=s.cssBefore||{};s.cssAfter=s.cssAfter||{};s.cssFirst=s.cssFirst||{};s.animIn=s.animIn||{};
s.animOut=s.animOut||{};r.not(":eq("+O+")").css(s.cssBefore);b(r[O]).css(s.cssFirst);if(s.timeout){s.timeout=parseInt(s.timeout);if(s.speed.constructor==String)s.speed=b.fx.speeds[s.speed]||parseInt(s.speed);s.sync||(s.speed/=2);for(N=s.fx=="none"?0:s.fx=="shuffle"?500:250;s.timeout-s.speed<N;)s.timeout+=s.speed}if(s.easing)s.easeIn=s.easeOut=s.easing;if(!s.speedIn)s.speedIn=s.speed;if(!s.speedOut)s.speedOut=s.speed;s.slideCount=z.length;s.currSlide=s.lastSlide=O;if(s.random){if(++s.randomIndex==
z.length)s.randomIndex=0;s.nextSlide=s.randomMap[s.randomIndex]}else s.nextSlide=s.backwards?s.startingSlide==0?z.length-1:s.startingSlide-1:s.startingSlide>=z.length-1?0:s.startingSlide+1;if(!s.multiFx){N=b.fn.cycle.transitions[s.fx];if(b.isFunction(N))N(k,r,s);else if(s.fx!="custom"&&!s.multiFx){o("unknown transition: "+s.fx,"; slideshow terminating");return false}}k=r[O];s.before.length&&s.before[0].apply(k,[k,k,s,true]);s.after.length&&s.after[0].apply(k,[k,k,s,true]);s.next&&b(s.next).bind(s.prevNextEvent,
function(){return v(s,1)});s.prev&&b(s.prev).bind(s.prevNextEvent,function(){return v(s,0)});if(s.pager||s.pagerAnchorBuilder)H(z,s);E(s,z);return s}function u(k){k.original={before:[],after:[]};k.original.cssBefore=b.extend({},k.cssBefore);k.original.cssAfter=b.extend({},k.cssAfter);k.original.animIn=b.extend({},k.animIn);k.original.animOut=b.extend({},k.animOut);b.each(k.before,function(){k.original.before.push(this)});b.each(k.after,function(){k.original.after.push(this)})}function w(k){var r,
z,L=b.fn.cycle.transitions;if(k.fx.indexOf(",")>0){k.multiFx=true;k.fxs=k.fx.replace(/\s*/g,"").split(",");for(r=0;r<k.fxs.length;r++){var C=k.fxs[r];z=L[C];if(!z||!L.hasOwnProperty(C)||!b.isFunction(z)){o("discarding unknown transition: ",C);k.fxs.splice(r,1);r--}}if(!k.fxs.length){o("No valid transitions named; slideshow terminating.");return false}}else if(k.fx=="all"){k.multiFx=true;k.fxs=[];for(p in L){z=L[p];L.hasOwnProperty(p)&&b.isFunction(z)&&k.fxs.push(p)}}if(k.multiFx&&k.randomizeEffects){z=
Math.floor(Math.random()*20)+30;for(r=0;r<z;r++)k.fxs.push(k.fxs.splice(Math.floor(Math.random()*k.fxs.length),1)[0]);h("randomized fx sequence: ",k.fxs)}return true}function E(k,r){k.addSlide=function(z,L){var C=b(z),s=C[0];k.autostopCount||k.countdown++;r[L?"unshift":"push"](s);if(k.els)k.els[L?"unshift":"push"](s);k.slideCount=r.length;C.css("position","absolute");C[L?"prependTo":"appendTo"](k.$cont);if(L){k.currSlide++;k.nextSlide++}!b.support.opacity&&k.cleartype&&!k.cleartypeNoBg&&G(C);k.fit&&
k.width&&C.width(k.width);k.fit&&k.height&&k.height!="auto"&&C.height(k.height);s.cycleH=k.fit&&k.height?k.height:C.height();s.cycleW=k.fit&&k.width?k.width:C.width();C.css(k.cssBefore);if(k.pager||k.pagerAnchorBuilder)b.fn.cycle.createPagerAnchor(r.length-1,s,b(k.pager),r,k);b.isFunction(k.onAddSlide)?k.onAddSlide(C):C.hide()}}function A(k,r,z,L){if(z&&r.busy&&r.manualTrump){h("manualTrump in go(), stopping active transition");b(k).stop(true,true);r.busy=0}if(r.busy)h("transition active, ignoring new tx request");
else{var C=r.$cont[0],s=k[r.currSlide],N=k[r.nextSlide];if(!(C.cycleStop!=r.stopCount||C.cycleTimeout===0&&!z))if(!z&&!C.cyclePause&&!r.bounce&&(r.autostop&&--r.countdown<=0||r.nowrap&&!r.random&&r.nextSlide<r.currSlide))r.end&&r.end(r);else{var O=false;if((z||!C.cyclePause)&&r.nextSlide!=r.currSlide){O=true;var S=r.fx;s.cycleH=s.cycleH||b(s).height();s.cycleW=s.cycleW||b(s).width();N.cycleH=N.cycleH||b(N).height();N.cycleW=N.cycleW||b(N).width();if(r.multiFx){if(r.lastFx==undefined||++r.lastFx>=
r.fxs.length)r.lastFx=0;S=r.fxs[r.lastFx];r.currFx=S}if(r.oneTimeFx){S=r.oneTimeFx;r.oneTimeFx=null}b.fn.cycle.resetState(r,S);r.before.length&&b.each(r.before,function(Z,fa){C.cycleStop==r.stopCount&&fa.apply(N,[s,N,r,L])});var ca=function(){r.busy=0;b.each(r.after,function(Z,fa){C.cycleStop==r.stopCount&&fa.apply(N,[s,N,r,L])})};h("tx firing("+S+"); currSlide: "+r.currSlide+"; nextSlide: "+r.nextSlide);r.busy=1;if(r.fxFn)r.fxFn(s,N,r,ca,L,z&&r.fastOnEvent);else b.isFunction(b.fn.cycle[r.fx])?b.fn.cycle[r.fx](s,
N,r,ca,L,z&&r.fastOnEvent):b.fn.cycle.custom(s,N,r,ca,L,z&&r.fastOnEvent)}if(O||r.nextSlide==r.currSlide){r.lastSlide=r.currSlide;if(r.random){r.currSlide=r.nextSlide;if(++r.randomIndex==k.length)r.randomIndex=0;r.nextSlide=r.randomMap[r.randomIndex];if(r.nextSlide==r.currSlide)r.nextSlide=r.currSlide==r.slideCount-1?0:r.currSlide+1}else if(r.backwards)if((z=r.nextSlide-1<0)&&r.bounce){r.backwards=!r.backwards;r.nextSlide=1;r.currSlide=0}else{r.nextSlide=z?k.length-1:r.nextSlide-1;r.currSlide=z?0:
r.nextSlide+1}else if((z=r.nextSlide+1==k.length)&&r.bounce){r.backwards=!r.backwards;r.nextSlide=k.length-2;r.currSlide=k.length-1}else{r.nextSlide=z?0:r.nextSlide+1;r.currSlide=z?k.length-1:r.nextSlide-1}}O&&r.pager&&r.updateActivePagerLink(r.pager,r.currSlide,r.activePagerClass);O=0;if(r.timeout&&!r.continuous)O=c(k[r.currSlide],k[r.nextSlide],r,L);else if(r.continuous&&C.cyclePause)O=10;if(O>0)C.cycleTimeout=setTimeout(function(){A(k,r,0,!r.backwards)},O)}}}function c(k,r,z,L){if(z.timeoutFn){for(k=
z.timeoutFn.call(k,k,r,z,L);z.fx!="none"&&k-z.speed<250;)k+=z.speed;h("calculated timeout: "+k+"; speed: "+z.speed);if(k!==false)return k}return z.timeout}function v(k,r){var z=r?1:-1,L=k.elements,C=k.$cont[0],s=C.cycleTimeout;if(s){clearTimeout(s);C.cycleTimeout=0}if(k.random&&z<0){k.randomIndex--;if(--k.randomIndex==-2)k.randomIndex=L.length-2;else if(k.randomIndex==-1)k.randomIndex=L.length-1;k.nextSlide=k.randomMap[k.randomIndex]}else if(k.random)k.nextSlide=k.randomMap[k.randomIndex];else{k.nextSlide=
k.currSlide+z;if(k.nextSlide<0){if(k.nowrap)return false;k.nextSlide=L.length-1}else if(k.nextSlide>=L.length){if(k.nowrap)return false;k.nextSlide=0}}C=k.onPrevNextEvent||k.prevNextClick;b.isFunction(C)&&C(z>0,k.nextSlide,L[k.nextSlide]);A(L,k,1,r);return false}function H(k,r){var z=b(r.pager);b.each(k,function(L,C){b.fn.cycle.createPagerAnchor(L,C,z,k,r)});r.updateActivePagerLink(r.pager,r.startingSlide,r.activePagerClass)}function G(k){function r(L){L=parseInt(L).toString(16);return L.length<2?
"0"+L:L}function z(L){for(;L&&L.nodeName.toLowerCase()!="html";L=L.parentNode){var C=b.css(L,"background-color");if(C&&C.indexOf("rgb")>=0){L=C.match(/\d+/g);return"#"+r(L[0])+r(L[1])+r(L[2])}if(C&&C!="transparent")return C}return"#ffffff"}h("applying clearType background-color hack");k.each(function(){b(this).css("background-color",z(this))})}if(b.support==undefined)b.support={opacity:!b.browser.msie};b.expr[":"].paused=function(k){return k.cyclePause};b.fn.cycle=function(k,r){var z={s:this.selector,
c:this.context};if(this.length===0&&k!="stop"){if(!b.isReady&&z.s){o("DOM not ready, queuing slideshow");b(function(){b(z.s,z.c).cycle(k,r)});return this}o("terminating; zero elements found by selector"+(b.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var L=d(this,k,r);if(L!==false){L.updateActivePagerLink=L.updateActivePagerLink||b.fn.cycle.updateActivePagerLink;this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cycleTimeout=this.cyclePause=0;var C=b(this),s=L.slideExpr?
b(L.slideExpr,this):C.children(),N=s.get();if(N.length<2)o("terminating; too few slides: "+N.length);else{var O=l(C,s,N,L,z);if(O!==false)if(C=O.continuous?10:c(N[O.currSlide],N[O.nextSlide],O,!O.backwards)){C+=O.delay||0;if(C<10)C=10;h("first timeout: "+C);this.cycleTimeout=setTimeout(function(){A(N,O,0,!L.backwards)},C)}}}})};b.fn.cycle.resetState=function(k,r){r=r||k.fx;k.before=[];k.after=[];k.cssBefore=b.extend({},k.original.cssBefore);k.cssAfter=b.extend({},k.original.cssAfter);k.animIn=b.extend({},
k.original.animIn);k.animOut=b.extend({},k.original.animOut);k.fxFn=null;b.each(k.original.before,function(){k.before.push(this)});b.each(k.original.after,function(){k.after.push(this)});var z=b.fn.cycle.transitions[r];b.isFunction(z)&&z(k.$cont,b(k.elements),k)};b.fn.cycle.updateActivePagerLink=function(k,r,z){b(k).each(function(){b(this).children().removeClass(z).eq(r).addClass(z)})};b.fn.cycle.next=function(k){v(k,1)};b.fn.cycle.prev=function(k){v(k,0)};b.fn.cycle.createPagerAnchor=function(k,
r,z,L,C){if(b.isFunction(C.pagerAnchorBuilder)){r=C.pagerAnchorBuilder(k,r);h("pagerAnchorBuilder("+k+", el) returned: "+r)}else r='<a href="#">'+(k+1)+"</a>";if(r){var s=b(r);if(s.parents("body").length===0){var N=[];if(z.length>1){z.each(function(){var O=s.clone(true);b(this).append(O);N.push(O[0])});s=b(N)}else s.appendTo(z)}C.pagerAnchors=C.pagerAnchors||[];C.pagerAnchors.push(s);s.bind(C.pagerEvent,function(O){O.preventDefault();C.nextSlide=k;O=C.$cont[0];var S=O.cycleTimeout;if(S){clearTimeout(S);
O.cycleTimeout=0}O=C.onPagerEvent||C.pagerClick;b.isFunction(O)&&O(C.nextSlide,L[C.nextSlide]);A(L,C,1,C.currSlide<k)});!/^click/.test(C.pagerEvent)&&!C.allowPagerClickBubble&&s.bind("click.cycle",function(){return false});C.pauseOnPagerHover&&s.hover(function(){C.$cont[0].cyclePause++},function(){C.$cont[0].cyclePause--})}};b.fn.cycle.hopsFromLast=function(k,r){var z=k.lastSlide,L=k.currSlide;return r?L>z?L-z:k.slideCount-z:L<z?z-L:z+k.slideCount-L};b.fn.cycle.commonReset=function(k,r,z,L,C,s){b(z.elements).not(k).hide();
if(typeof z.cssBefore.opacity=="undefined")z.cssBefore.opacity=1;z.cssBefore.display="block";if(z.slideResize&&L!==false&&r.cycleW>0)z.cssBefore.width=r.cycleW;if(z.slideResize&&C!==false&&r.cycleH>0)z.cssBefore.height=r.cycleH;z.cssAfter=z.cssAfter||{};z.cssAfter.display="none";b(k).css("zIndex",z.slideCount+(s===true?1:0));b(r).css("zIndex",z.slideCount+(s===true?0:1))};b.fn.cycle.custom=function(k,r,z,L,C,s){var N=b(k),O=b(r),S=z.speedIn;k=z.speedOut;var ca=z.easeIn;r=z.easeOut;O.css(z.cssBefore);
if(s){S=typeof s=="number"?(k=s):(k=1);ca=r=null}var Z=function(){O.animate(z.animIn,S,ca,function(){L()})};N.animate(z.animOut,k,r,function(){N.css(z.cssAfter);z.sync||Z()});z.sync&&Z()};b.fn.cycle.transitions={fade:function(k,r,z){r.not(":eq("+z.currSlide+")").css("opacity",0);z.before.push(function(L,C,s){b.fn.cycle.commonReset(L,C,s);s.cssBefore.opacity=0});z.animIn={opacity:1};z.animOut={opacity:0};z.cssBefore={top:0,left:0}}};b.fn.cycle.ver=function(){return"2.99"};b.fn.cycle.defaults={activePagerClass:"activeSlide",
after:null,allowPagerClickBubble:false,animIn:null,animOut:null,autostop:0,autostopCount:0,backwards:false,before:null,cleartype:!b.support.opacity,cleartypeNoBg:false,containerResize:1,continuous:0,cssAfter:null,cssBefore:null,delay:0,easeIn:null,easeOut:null,easing:null,end:null,fastOnEvent:0,fit:0,fx:"fade",fxFn:null,height:"auto",manualTrump:true,next:null,nowrap:0,onPagerEvent:null,onPrevNextEvent:null,pager:null,pagerAnchorBuilder:null,pagerEvent:"click.cycle",pause:0,pauseOnPagerHover:0,prev:null,
prevNextEvent:"click.cycle",random:0,randomizeEffects:1,requeueOnImageNotLoaded:true,requeueTimeout:250,rev:0,shuffle:null,slideExpr:null,slideResize:1,speed:1E3,speedIn:null,speedOut:null,startingSlide:0,sync:1,timeout:4E3,timeoutFn:null,updateActivePagerLink:null}})(jQuery);
(function(b){b.fn.cycle.transitions.none=function(h,o,d){d.fxFn=function(g,j,l,u){b(j).show();b(g).hide();u()}};b.fn.cycle.transitions.fadeout=function(h,o,d){o.not(":eq("+d.currSlide+")").css({display:"block",opacity:1});d.before.push(function(g,j,l,u,w,E){b(g).css("zIndex",l.slideCount+(!E===true?1:0));b(j).css("zIndex",l.slideCount+(!E===true?0:1))});d.animIn.opacity=1;d.animOut.opacity=0;d.cssBefore.opacity=1;d.cssBefore.display="block";d.cssAfter.zIndex=0};b.fn.cycle.transitions.scrollUp=function(h,
o,d){h.css("overflow","hidden");d.before.push(b.fn.cycle.commonReset);h=h.height();d.cssBefore.top=h;d.cssBefore.left=0;d.cssFirst.top=0;d.animIn.top=0;d.animOut.top=-h};b.fn.cycle.transitions.scrollDown=function(h,o,d){h.css("overflow","hidden");d.before.push(b.fn.cycle.commonReset);h=h.height();d.cssFirst.top=0;d.cssBefore.top=-h;d.cssBefore.left=0;d.animIn.top=0;d.animOut.top=h};b.fn.cycle.transitions.scrollLeft=function(h,o,d){h.css("overflow","hidden");d.before.push(b.fn.cycle.commonReset);h=
h.width();d.cssFirst.left=0;d.cssBefore.left=h;d.cssBefore.top=0;d.animIn.left=0;d.animOut.left=0-h};b.fn.cycle.transitions.scrollRight=function(h,o,d){h.css("overflow","hidden");d.before.push(b.fn.cycle.commonReset);h=h.width();d.cssFirst.left=0;d.cssBefore.left=-h;d.cssBefore.top=0;d.animIn.left=0;d.animOut.left=h};b.fn.cycle.transitions.scrollHorz=function(h,o,d){h.css("overflow","hidden").width();d.before.push(function(g,j,l,u){if(l.rev)u=!u;b.fn.cycle.commonReset(g,j,l);l.cssBefore.left=u?j.cycleW-
1:1-j.cycleW;l.animOut.left=u?-g.cycleW:g.cycleW});d.cssFirst.left=0;d.cssBefore.top=0;d.animIn.left=0;d.animOut.top=0};b.fn.cycle.transitions.scrollVert=function(h,o,d){h.css("overflow","hidden");d.before.push(function(g,j,l,u){if(l.rev)u=!u;b.fn.cycle.commonReset(g,j,l);l.cssBefore.top=u?1-j.cycleH:j.cycleH-1;l.animOut.top=u?g.cycleH:-g.cycleH});d.cssFirst.top=0;d.cssBefore.left=0;d.animIn.top=0;d.animOut.left=0};b.fn.cycle.transitions.slideX=function(h,o,d){d.before.push(function(g,j,l){b(l.elements).not(g).hide();
b.fn.cycle.commonReset(g,j,l,false,true);l.animIn.width=j.cycleW});d.cssBefore.left=0;d.cssBefore.top=0;d.cssBefore.width=0;d.animIn.width="show";d.animOut.width=0};b.fn.cycle.transitions.slideY=function(h,o,d){d.before.push(function(g,j,l){b(l.elements).not(g).hide();b.fn.cycle.commonReset(g,j,l,true,false);l.animIn.height=j.cycleH});d.cssBefore.left=0;d.cssBefore.top=0;d.cssBefore.height=0;d.animIn.height="show";d.animOut.height=0};b.fn.cycle.transitions.shuffle=function(h,o,d){h=h.css("overflow",
"visible").width();o.css({left:0,top:0});d.before.push(function(g,j,l){b.fn.cycle.commonReset(g,j,l,true,true,true)});if(!d.speedAdjusted){d.speed/=2;d.speedAdjusted=true}d.random=0;d.shuffle=d.shuffle||{left:-h,top:15};d.els=[];for(h=0;h<o.length;h++)d.els.push(o[h]);for(h=0;h<d.currSlide;h++)d.els.push(d.els.shift());d.fxFn=function(g,j,l,u,w){if(l.rev)w=!w;var E=w?b(g):b(j);b(j).css(l.cssBefore);var A=l.slideCount;E.animate(l.shuffle,l.speedIn,l.easeIn,function(){for(var c=b.fn.cycle.hopsFromLast(l,
w),v=0;v<c;v++)w?l.els.push(l.els.shift()):l.els.unshift(l.els.pop());if(w){c=0;for(v=l.els.length;c<v;c++)b(l.els[c]).css("z-index",v-c+A)}else{c=b(g).css("z-index");E.css("z-index",parseInt(c)+1+A)}E.animate({left:0,top:0},l.speedOut,l.easeOut,function(){b(w?this:g).hide();u&&u()})})};b.extend(d.cssBefore,{display:"block",opacity:1,top:0,left:0})};b.fn.cycle.transitions.turnUp=function(h,o,d){d.before.push(function(g,j,l){b.fn.cycle.commonReset(g,j,l,true,false);l.cssBefore.top=j.cycleH;l.animIn.height=
j.cycleH;l.animOut.width=j.cycleW});d.cssFirst.top=0;d.cssBefore.left=0;d.cssBefore.height=0;d.animIn.top=0;d.animOut.height=0};b.fn.cycle.transitions.turnDown=function(h,o,d){d.before.push(function(g,j,l){b.fn.cycle.commonReset(g,j,l,true,false);l.animIn.height=j.cycleH;l.animOut.top=g.cycleH});d.cssFirst.top=0;d.cssBefore.left=0;d.cssBefore.top=0;d.cssBefore.height=0;d.animOut.height=0};b.fn.cycle.transitions.turnLeft=function(h,o,d){d.before.push(function(g,j,l){b.fn.cycle.commonReset(g,j,l,false,
true);l.cssBefore.left=j.cycleW;l.animIn.width=j.cycleW});d.cssBefore.top=0;d.cssBefore.width=0;d.animIn.left=0;d.animOut.width=0};b.fn.cycle.transitions.turnRight=function(h,o,d){d.before.push(function(g,j,l){b.fn.cycle.commonReset(g,j,l,false,true);l.animIn.width=j.cycleW;l.animOut.left=g.cycleW});b.extend(d.cssBefore,{top:0,left:0,width:0});d.animIn.left=0;d.animOut.width=0};b.fn.cycle.transitions.zoom=function(h,o,d){d.before.push(function(g,j,l){b.fn.cycle.commonReset(g,j,l,false,false,true);
l.cssBefore.top=j.cycleH/2;l.cssBefore.left=j.cycleW/2;b.extend(l.animIn,{top:0,left:0,width:j.cycleW,height:j.cycleH});b.extend(l.animOut,{width:0,height:0,top:g.cycleH/2,left:g.cycleW/2})});d.cssFirst.top=0;d.cssFirst.left=0;d.cssBefore.width=0;d.cssBefore.height=0};b.fn.cycle.transitions.fadeZoom=function(h,o,d){d.before.push(function(g,j,l){b.fn.cycle.commonReset(g,j,l,false,false);l.cssBefore.left=j.cycleW/2;l.cssBefore.top=j.cycleH/2;b.extend(l.animIn,{top:0,left:0,width:j.cycleW,height:j.cycleH})});
d.cssBefore.width=0;d.cssBefore.height=0;d.animOut.opacity=0};b.fn.cycle.transitions.blindX=function(h,o,d){h=h.css("overflow","hidden").width();d.before.push(function(g,j,l){b.fn.cycle.commonReset(g,j,l);l.animIn.width=j.cycleW;l.animOut.left=g.cycleW});d.cssBefore.left=h;d.cssBefore.top=0;d.animIn.left=0;d.animOut.left=h};b.fn.cycle.transitions.blindY=function(h,o,d){h=h.css("overflow","hidden").height();d.before.push(function(g,j,l){b.fn.cycle.commonReset(g,j,l);l.animIn.height=j.cycleH;l.animOut.top=
g.cycleH});d.cssBefore.top=h;d.cssBefore.left=0;d.animIn.top=0;d.animOut.top=h};b.fn.cycle.transitions.blindZ=function(h,o,d){o=h.css("overflow","hidden").height();h=h.width();d.before.push(function(g,j,l){b.fn.cycle.commonReset(g,j,l);l.animIn.height=j.cycleH;l.animOut.top=g.cycleH});d.cssBefore.top=o;d.cssBefore.left=h;d.animIn.top=0;d.animIn.left=0;d.animOut.top=o;d.animOut.left=h};b.fn.cycle.transitions.growX=function(h,o,d){d.before.push(function(g,j,l){b.fn.cycle.commonReset(g,j,l,false,true);
l.cssBefore.left=this.cycleW/2;l.animIn.left=0;l.animIn.width=this.cycleW;l.animOut.left=0});d.cssBefore.top=0;d.cssBefore.width=0};b.fn.cycle.transitions.growY=function(h,o,d){d.before.push(function(g,j,l){b.fn.cycle.commonReset(g,j,l,true,false);l.cssBefore.top=this.cycleH/2;l.animIn.top=0;l.animIn.height=this.cycleH;l.animOut.top=0});d.cssBefore.height=0;d.cssBefore.left=0};b.fn.cycle.transitions.curtainX=function(h,o,d){d.before.push(function(g,j,l){b.fn.cycle.commonReset(g,j,l,false,true,true);
l.cssBefore.left=j.cycleW/2;l.animIn.left=0;l.animIn.width=this.cycleW;l.animOut.left=g.cycleW/2;l.animOut.width=0});d.cssBefore.top=0;d.cssBefore.width=0};b.fn.cycle.transitions.curtainY=function(h,o,d){d.before.push(function(g,j,l){b.fn.cycle.commonReset(g,j,l,true,false,true);l.cssBefore.top=j.cycleH/2;l.animIn.top=0;l.animIn.height=j.cycleH;l.animOut.top=g.cycleH/2;l.animOut.height=0});d.cssBefore.height=0;d.cssBefore.left=0};b.fn.cycle.transitions.cover=function(h,o,d){var g=d.direction||"left",
j=h.css("overflow","hidden").width(),l=h.height();d.before.push(function(u,w,E){b.fn.cycle.commonReset(u,w,E);if(g=="right")E.cssBefore.left=-j;else if(g=="up")E.cssBefore.top=l;else if(g=="down")E.cssBefore.top=-l;else E.cssBefore.left=j});d.animIn.left=0;d.animIn.top=0;d.cssBefore.top=0;d.cssBefore.left=0};b.fn.cycle.transitions.uncover=function(h,o,d){var g=d.direction||"left",j=h.css("overflow","hidden").width(),l=h.height();d.before.push(function(u,w,E){b.fn.cycle.commonReset(u,w,E,true,true,
true);if(g=="right")E.animOut.left=j;else if(g=="up")E.animOut.top=-l;else if(g=="down")E.animOut.top=l;else E.animOut.left=-j});d.animIn.left=0;d.animIn.top=0;d.cssBefore.top=0;d.cssBefore.left=0};b.fn.cycle.transitions.toss=function(h,o,d){var g=h.css("overflow","visible").width(),j=h.height();d.before.push(function(l,u,w){b.fn.cycle.commonReset(l,u,w,true,true,true);if(!w.animOut.left&&!w.animOut.top)b.extend(w.animOut,{left:g*2,top:-j/2,opacity:0});else w.animOut.opacity=0});d.cssBefore.left=
0;d.cssBefore.top=0;d.animIn.left=0};b.fn.cycle.transitions.wipe=function(h,o,d){var g=h.css("overflow","hidden").width(),j=h.height();d.cssBefore=d.cssBefore||{};var l;if(d.clip)if(/l2r/.test(d.clip))l="rect(0px 0px "+j+"px 0px)";else if(/r2l/.test(d.clip))l="rect(0px "+g+"px "+j+"px "+g+"px)";else if(/t2b/.test(d.clip))l="rect(0px "+g+"px 0px 0px)";else if(/b2t/.test(d.clip))l="rect("+j+"px "+g+"px "+j+"px 0px)";else if(/zoom/.test(d.clip)){h=parseInt(j/2);o=parseInt(g/2);l="rect("+h+"px "+o+"px "+
h+"px "+o+"px)"}d.cssBefore.clip=d.cssBefore.clip||l||"rect(0px 0px 0px 0px)";h=d.cssBefore.clip.match(/(\d+)/g);var u=parseInt(h[0]),w=parseInt(h[1]),E=parseInt(h[2]),A=parseInt(h[3]);d.before.push(function(c,v,H){if(c!=v){var G=b(c),k=b(v);b.fn.cycle.commonReset(c,v,H,true,true,false);H.cssAfter.display="block";var r=1,z=parseInt(H.speedIn/13)-1;(function L(){var C=u?u-parseInt(r*(u/z)):0,s=A?A-parseInt(r*(A/z)):0,N=E<j?E+parseInt(r*((j-E)/z||1)):j,O=w<g?w+parseInt(r*((g-w)/z||1)):g;k.css({clip:"rect("+
C+"px "+O+"px "+N+"px "+s+"px)"});r++<=z?setTimeout(L,13):G.css("display","none")})()}});b.extend(d.cssBefore,{display:"block",opacity:1,top:0,left:0});d.animIn={left:0};d.animOut={left:0}}})(jQuery);SITE.AdView=Class.subClass({init:function(b){b.each(function(){var h=$(this);h.find(".ads-wrapper").cycle($.extend({pager:"#ad-nav",slideExpr:".ad"},h.metadata().cycle)).removeClass("undecorated")})}});SITE.FlashView=Class.subClass({init:function(b){setTimeout(function(){b.fadeOut(1E3)},3E3)}});
$.uniform={options:{selectClass:"selector",radioClass:"radio",checkboxClass:"checker",fileClass:"uploader",filenameClass:"filename",fileBtnClass:"action",fileDefaultText:"No file selected",fileBtnText:"Choose File",checkedClass:"checked",focusClass:"focus",disabledClass:"disabled",activeClass:"active",hoverClass:"hover",useID:true,idPrefix:"uniform",resetSelector:false},elements:[]};$.support.selectOpacity=$.browser.msie&&$.browser.version<7?false:true;
$.fn.uniform=function(b){function h(u){var w=$("<div />"),E=$("<span />");w.addClass(b.selectClass);b.useID&&w.attr("id",b.idPrefix+"-"+u.attr("id"));var A=u.find(":selected:first");if(A.length==0)A=u.find("option:first");E.html(A.text());u.css("opacity",0);u.wrap(w);u.before(E);w=u.parent("div");E=u.siblings("span");u.change(function(){E.text(u.find(":selected").text());w.removeClass(b.activeClass)}).focus(function(){w.addClass(b.focusClass)}).blur(function(){w.removeClass(b.focusClass);w.removeClass(b.activeClass)}).mousedown(function(){w.addClass(b.activeClass)}).mouseup(function(){w.removeClass(b.activeClass)}).click(function(){w.removeClass(b.activeClass)}).hover(function(){w.addClass(b.hoverClass)},
function(){w.removeClass(b.hoverClass)}).keyup(function(){E.text(u.find(":selected").text())});$(u).attr("disabled")&&w.addClass(b.disabledClass);$.uniform.noSelect(E);j(u)}function o(u){var w=$("<div />"),E=$("<span />");w.addClass(b.checkboxClass);b.useID&&w.attr("id",b.idPrefix+"-"+u.attr("id"));$(u).wrap(w);$(u).wrap(E);E=u.parent();w=E.parent();$(u).css("opacity",0).focus(function(){w.addClass(b.focusClass)}).blur(function(){w.removeClass(b.focusClass)}).click(function(){$(u).attr("checked")?
E.addClass(b.checkedClass):E.removeClass(b.checkedClass)}).mousedown(function(){w.addClass(b.activeClass)}).mouseup(function(){w.removeClass(b.activeClass)}).hover(function(){w.addClass(b.hoverClass)},function(){w.removeClass(b.hoverClass)});$(u).attr("checked")&&E.addClass(b.checkedClass);$(u).attr("disabled")&&w.addClass(b.disabledClass);j(u)}function d(u){var w=$("<div />"),E=$("<span />");w.addClass(b.radioClass);b.useID&&w.attr("id",b.idPrefix+"-"+u.attr("id"));$(u).wrap(w);$(u).wrap(E);E=u.parent();
w=E.parent();$(u).css("opacity",0).focus(function(){w.addClass(b.focusClass)}).blur(function(){w.removeClass(b.focusClass)}).click(function(){if($(u).attr("checked")){$("."+b.radioClass+" span."+b.checkedClass+":has([name='"+$(u).attr("name")+"'])").removeClass(b.checkedClass);E.addClass(b.checkedClass)}else E.removeClass(b.checkedClass)}).mousedown(function(){$(u).is(":disabled")||w.addClass(b.activeClass)}).mouseup(function(){w.removeClass(b.activeClass)}).hover(function(){w.addClass(b.hoverClass)},
function(){w.removeClass(b.hoverClass)});$(u).attr("checked")&&E.addClass(b.checkedClass);$(u).attr("disabled")&&w.addClass(b.disabledClass);j(u)}function g(u){$el=$(u);var w=$("<div />"),E=$("<span>"+b.fileDefaultText+"</span>"),A=$("<span>"+b.fileBtnText+"</span>");w.addClass(b.fileClass);E.addClass(b.filenameClass);A.addClass(b.fileBtnClass);b.useID&&w.attr("id",b.idPrefix+"-"+$el.attr("id"));$el.wrap(w);$el.after(A);$el.after(E);w=$el.closest("div");E=$el.siblings("."+b.filenameClass);A=$el.siblings("."+
b.fileBtnClass);if(!$el.attr("size")){var c=w.width();$el.attr("size",c/10)}$el.css("opacity",0).focus(function(){w.addClass(b.focusClass)}).blur(function(){w.removeClass(b.focusClass)}).change(function(){var v=$(this).val();v=v.split(/[\/\\]+/);v=v[v.length-1];E.text(v)}).mousedown(function(){$(u).is(":disabled")||w.addClass(b.activeClass)}).mouseup(function(){w.removeClass(b.activeClass)}).hover(function(){w.addClass(b.hoverClass)},function(){w.removeClass(b.hoverClass)});$el.attr("disabled")&&
w.addClass(b.disabledClass);$.uniform.noSelect(E);$.uniform.noSelect(A);j(u)}function j(u){u=$(u).get();u.length>1?$.each(u,function(w,E){$.uniform.elements.push(E)}):$.uniform.elements.push(u)}b=$.extend($.uniform.options,b);var l=this;b.resetSelector!=false&&$(b.resetSelector).mouseup(function(){setTimeout(function(){$.uniform.update(l)},10)});$.uniform.noSelect=function(u){function w(){return false}$(u).each(function(){this.onselectstart=this.ondragstart=w;$(this).mousedown(w).css({MozUserSelect:"none"})})};
$.uniform.update=function(u){if(u==undefined)u=$($.uniform.elements);u=$(u);u.each(function(){$e=$(this);if($e.is("select")){spanTag=$e.siblings("span");divTag=$e.parent("div");divTag.removeClass(b.hoverClass+" "+b.focusClass+" "+b.activeClass);spanTag.html($e.find(":selected").text());$e.is(":disabled")?divTag.addClass(b.disabledClass):divTag.removeClass(b.disabledClass)}else if($e.is(":checkbox")){spanTag=$e.closest("span");divTag=$e.closest("div");divTag.removeClass(b.hoverClass+" "+b.focusClass+
" "+b.activeClass);spanTag.removeClass(b.checkedClass);$e.is(":checked")&&spanTag.addClass(b.checkedClass);$e.is(":disabled")?divTag.addClass(b.disabledClass):divTag.removeClass(b.disabledClass)}else if($e.is(":radio")){spanTag=$e.closest("span");divTag=$e.closest("div");divTag.removeClass(b.hoverClass+" "+b.focusClass+" "+b.activeClass);spanTag.removeClass(b.checkedClass);$e.is(":checked")&&spanTag.addClass(b.checkedClass);$e.is(":disabled")?divTag.addClass(b.disabledClass):divTag.removeClass(b.disabledClass)}else if($e.is(":file")){divTag=
$e.parent("div");filenameTag=$e.siblings(b.filenameClass);btnTag=$e.siblings(b.fileBtnClass);divTag.removeClass(b.hoverClass+" "+b.focusClass+" "+b.activeClass);filenameTag.text($e.val());$e.is(":disabled")?divTag.addClass(b.disabledClass):divTag.removeClass(b.disabledClass)}})};return this.each(function(){if($.support.selectOpacity){var u=$(this);if(u.is("select"))u.attr("multiple")!=true&&h(u);else if(u.is(":checkbox"))o(u);else if(u.is(":radio"))d(u);else u.is(":file")&&g(u)}})};
SITE.FontSwitcherView=Class.subClass({init:function(b){var h=$("body");$.cookie("large_text")=="true"&&h.addClass("large_text");b.find("a.small_text").click(function(o){o.preventDefault();h.removeClass("large_text");$.cookie("large_text","false",{path:"/"})});b.find("a.large_text").click(function(o){o.preventDefault();h.addClass("large_text");$.cookie("large_text","true",{path:"/"})})}});
SITE.FormView=Class.subClass({init:function(b){b&&$("select:not(.skipUniform select), input:radio, input:file",b).not(".decorated, .skipUniform").addClass("decorated").uniform()}});
(function(b){b.fn.pajinate=function(h){function o(H){var G=w.data(u);start_from=H*G;end_on=start_from+G;c.hide().slice(start_from,end_on).show();A.find(h.nav_panel_id).children(".page_link[longdesc="+H+"]").addClass("active_page").siblings(".active_page").removeClass("active_page");w.data(l,H);j()}function d(H,G){b(H).siblings(".active_page").siblings(".page_link[longdesc="+G+"]").css("display")=="none"&&v.each(function(){b(this).children(".page_link").hide().slice(parseInt(G-h.num_page_links_to_display+
1),G+1).show()})}function g(H,G){b(H).siblings(".active_page").siblings(".page_link[longdesc="+G+"]").css("display")=="none"&&v.each(function(){b(this).children(".page_link").hide().slice(G,G+parseInt(h.num_page_links_to_display)).show()})}function j(){v.children(".page_link:visible").hasClass("last")?v.children(".more").hide():v.children(".more").show();v.children(".page_link:visible").hasClass("first")?v.children(".less").hide():v.children(".less").show()}var l="current_page",u="items_per_page",
w;h=b.extend({item_container_id:".content",items_per_page:10,nav_panel_id:".page_navigation",num_page_links_to_display:20,start_page:0,nav_label_first:"First",nav_label_prev:"Prev",nav_label_next:"Next",nav_label_last:"Last"},h);var E,A,c,v;return this.each(function(){A=b(this);E=b(this).find(h.item_container_id);c=A.find(h.item_container_id).children();w=A;w.data(l,0);w.data(u,h.items_per_page);var H=E.children().size();H=Math.ceil(H/h.items_per_page);var G='<a class="first_link" href="">'+h.nav_label_first+
"</a>";G+='<a class="previous_link" href="">'+h.nav_label_prev+"</a>"+"";for(var k=0;H>k;){G+='<a class="page_link" href="" longdesc="'+k+'">'+(k+1)+"</a>";k++}G+=""+'<a class="next_link" href="">'+h.nav_label_next+"</a>";G+='<a class="last_link" href="">'+h.nav_label_last+"</a>";v=A.find(h.nav_panel_id);v.html(G).each(function(){b(this).find(".page_link:first").addClass("first");b(this).find(".page_link:last").addClass("last")});v.children(".ellipse").hide();v.find(".previous_link").next().next().addClass("active_page");
c.hide();c.slice(0,w.data(u)).show();var r=A.find(h.nav_panel_id+":first").children(".page_link").size();h.num_page_links_to_display=Math.min(h.num_page_links_to_display,r);v.children(".page_link").hide();v.each(function(){b(this).children(".page_link").slice(0,h.num_page_links_to_display).show()});A.find(".first_link").click(function(z){z.preventDefault();g(b(this),0);o(0)});A.find(".last_link").click(function(z){z.preventDefault();z=r-1;d(b(this),z);o(z)});A.find(".previous_link").click(function(z){z.preventDefault();
z=b(this);new_page=parseInt(w.data(l))-1;if(b(z).siblings(".active_page").prev(".page_link").length==true){g(z,new_page);o(new_page)}});A.find(".next_link").click(function(z){z.preventDefault();z=b(this);new_page=parseInt(w.data(l))+1;if(b(z).siblings(".active_page").next(".page_link").length==true){d(z,new_page);o(new_page)}});A.find(".page_link").click(function(z){z.preventDefault();o(b(this).attr("longdesc"))});o(parseInt(h.start_page));j()})}})(jQuery);
SITE.PagedView=Class.subClass({init:function(b){b.each(function(){var h=$(this);h.pajinate({items_per_page:h.attr("data-per-page"),item_container_id:h.attr("data-page-wrapper")})})}});var tb_pathToImage="/images/cms/loadingAnimation.gif";$(document).ready(function(){tb_init("a.thickbox, area.thickbox, input.thickbox");imgLoader=new Image;imgLoader.src=tb_pathToImage});
function tb_init(b){$(b).click(function(){tb_show(this.title||this.name||null,this.href||this.alt,this.rel||false);this.blur();return false})}
function tb_show(b,h,o){$("body").addClass("thickbox");try{if(typeof document.body.style.maxHeight==="undefined"){$("body","html").css({height:"100%",width:"100%"});$("html").css("overflow","hidden");if(document.getElementById("TB_HideSelect")===null){$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(tb_remove)}}else if(document.getElementById("TB_overlay")===null){$("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");
$("#TB_overlay").click(tb_remove)}tb_detectMacXFF()?$("#TB_overlay").addClass("TB_overlayMacFFBGHack"):$("#TB_overlay").addClass("TB_overlayBG");if(b===null)b="";$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");$("#TB_load").show();var d=/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/,g=(h.indexOf("?")!==-1?h.substr(0,h.indexOf("?")):h).toLowerCase().match(d);if(g==".jpg"||g==".jpeg"||g==".png"||g==".gif"||g==".bmp"){TB_imageCount=TB_NextHTML=TB_NextURL=TB_NextCaption=TB_PrevHTML=
TB_PrevURL=TB_PrevCaption="";TB_FoundURL=false;if(o){TB_TempArray=$("a[@rel="+o+"]").get();for(TB_Counter=0;TB_Counter<TB_TempArray.length&&TB_NextHTML==="";TB_Counter++){TB_TempArray[TB_Counter].href.toLowerCase().match(d);if(TB_TempArray[TB_Counter].href!=h)if(TB_FoundURL){TB_NextCaption=TB_TempArray[TB_Counter].title;TB_NextURL=TB_TempArray[TB_Counter].href;TB_NextHTML="<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;</a></span>"}else{TB_PrevCaption=TB_TempArray[TB_Counter].title;TB_PrevURL=
TB_TempArray[TB_Counter].href;TB_PrevHTML="<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev</a></span>"}else{TB_FoundURL=true;TB_imageCount="Image "+(TB_Counter+1)+" of "+TB_TempArray.length}}}imgPreloader=new Image;imgPreloader.onload=function(){imgPreloader.onload=null;var w=tb_getPageSize(),E=w[0]-150;w=w[1]-150;var A=imgPreloader.width,c=imgPreloader.height;if(A>E){c*=E/A;A=E;if(c>w){A*=w/c;c=w}}else if(c>w){A*=w/c;c=w;if(A>E){c*=E/A;A=E}}TB_WIDTH=A+30;TB_HEIGHT=c+60;$("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+
h+"' width='"+A+"' height='"+c+"' alt='"+b+"'/></a><div id='TB_caption'>"+b+"<div id='TB_secondLine'>"+TB_imageCount+TB_PrevHTML+TB_NextHTML+"</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a></div>");$("#TB_closeWindowButton").click(tb_remove);if(TB_PrevHTML!==""){var v=function(){$(document).unbind("click",v)&&$(document).unbind("click",v);$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_PrevCaption,TB_PrevURL,o);
return false};$("#TB_prev").click(v)}if(TB_NextHTML!==""){var H=function(){$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_NextCaption,TB_NextURL,o);return false};$("#TB_next").click(H)}document.onkeydown=function(G){keycode=G==null?event.keyCode:G.which;if(keycode==27)tb_remove();else if(keycode==190){if(TB_NextHTML!=""){document.onkeydown="";H()}}else if(keycode==188)if(TB_PrevHTML!=""){document.onkeydown="";v()}};tb_position();$("#TB_load").remove();$("#TB_ImageOff").click(tb_remove);
$("#TB_window").css({display:"block"})};imgPreloader.src=h}else{var j=h.replace(/^[^\?]+\??/,""),l=tb_parseQuery(j);TB_WIDTH=l.width*1+30||630;TB_HEIGHT=l.height*1+40||440;ajaxContentW=TB_WIDTH-30;ajaxContentH=TB_HEIGHT-45;if(h.indexOf("TB_iframe")!=-1){urlNoQuery=h.split("TB_");$("#TB_iframeContent").remove();if(l.modal!="true")$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+b+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a></div></div><iframe frameborder='0' hspace='0' src='"+
urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1E3)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;' > </iframe>");else{$("#TB_overlay").unbind();$("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1E3)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;'> </iframe>")}}else if($("#TB_window").css("display")!=
"block")if(l.modal!="true")$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+b+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>close</a></div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>");else{$("#TB_overlay").unbind();$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>")}else{$("#TB_ajaxContent")[0].style.width=ajaxContentW+
"px";$("#TB_ajaxContent")[0].style.height=ajaxContentH+"px";$("#TB_ajaxContent")[0].scrollTop=0;$("#TB_ajaxWindowTitle").html(b)}$("#TB_closeWindowButton").click(tb_remove);if(h.indexOf("TB_inline")!=-1){$("#TB_ajaxContent").append($("#"+l.inlineId).children());$("#TB_window").unload(function(){$("#"+l.inlineId).append($("#TB_ajaxContent").children())});tb_position();$("#TB_load").remove();$("#TB_window").css({display:"block"})}else if(h.indexOf("TB_iframe")!=-1){tb_position();if($.browser.safari){$("#TB_load").remove();
$("#TB_window").css({display:"block"})}}else $("#TB_ajaxContent").load(h+="&random="+(new Date).getTime(),function(){tb_position();$("#TB_load").remove();tb_init("#TB_ajaxContent a.thickbox");$("#TB_window").css({display:"block"})})}if(!l.modal)document.onkeyup=function(w){keycode=w==null?event.keyCode:w.which;keycode==27&&tb_remove()}}catch(u){}}function tb_showIframe(){$("#TB_load").remove();$("#TB_window").css({display:"block"})}
function tb_remove(){$("#TB_imageOff").unbind("click");$("#TB_closeWindowButton").unbind("click");$("#TB_window").fadeOut("fast",function(){$("#TB_window,#TB_overlay,#TB_HideSelect").trigger("unload").unbind().remove()});$("#TB_load").remove();if(typeof document.body.style.maxHeight=="undefined"){$("body","html").css({height:"auto",width:"auto"});$("html").css("overflow","")}document.onkeydown="";document.onkeyup="";$("body").removeClass("thickbox");return false}
function tb_position(){$("#TB_window").css({marginLeft:"-"+parseInt(TB_WIDTH/2,10)+"px",width:TB_WIDTH+"px"});jQuery.browser.msie&&jQuery.browser.version<7||$("#TB_window").css({marginTop:"-"+parseInt(TB_HEIGHT/2,10)+"px"})}function tb_parseQuery(b){var h={};if(!b)return h;b=b.split(/[;&]/);for(var o=0;o<b.length;o++){var d=b[o].split("=");if(!(!d||d.length!=2)){var g=unescape(d[0]);d=unescape(d[1]);d=d.replace(/\+/g," ");h[g]=d}}return h}
function tb_getPageSize(){var b=document.documentElement;return arrayPageSize=[window.innerWidth||self.innerWidth||b&&b.clientWidth||document.body.clientWidth,window.innerHeight||self.innerHeight||b&&b.clientHeight||document.body.clientHeight]}function tb_detectMacXFF(){var b=navigator.userAgent.toLowerCase();if(b.indexOf("mac")!=-1&&b.indexOf("firefox")!=-1)return true}
SITE.VideoView=Class.subClass({init:function(b){var h=this;b.each(function(){var o=$(this),d=h.videoFromUrl(o.find(".video").attr("data-video-url"));h.loadVideo(d,o)})},videoFromUrl:function(b){var h={original_url:b};if(b.match(/\/watch/)){h.url_type="single";h.api_params={q:$.uri.setUri(b).param("v")}}else if(b.match(/\/user\/(.*)/)){h.url_type="user";h.api_params={author:b.match(/\/user\/(.*)/)[1],orderby:"published"}}return h},showVideo:function(b,h){var o=$.extend({player:this.playVideo,size:"default"},
SITE.videoPlayerConfig||{}),d=h.find("div.video"),g=b.thumbnail[o.size=="default"?"hqDefault":"sqDefault"];g=g.replace("http://","https://");d.append('<a href="#" class="thumbnail"><img src="'+g+'" /></a>');d.find("a.thumbnail").click(function(j){j.preventDefault();o.player.call(this,b)})},playVideo:function(b){$("#embeddedVideoPanel").length===0&&$("body").append('<div id="embeddedVideoPanel" style="display: none;" />');$("#embeddedVideoPanel").empty().html(b.embed);tb_show(b.title,"#TB_inline=?height=390&width=645&inlineId=embeddedVideoPanel")},
loadVideo:function(b,h){var o=this,d=$.extend({alt:"jsonc",v:"2.0","max-results":1},b.api_params);$.ajax({url:"https://gdata.youtube.com/feeds/api/videos",dataType:"jsonp",data:d,success:function(g){$.each(g.data.items,function(j,l){var u=l.content[5];u=u.replace("http://","https://");l.embed='<object width="640" height="385"><param name="movie" value="'+u+'"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="'+u+'" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>';
o.showVideo(l,h)})}})}});
SITE.app=new Sammy.Application(function(){this.use(Sammy.Mustache,"ms");SITE.sectionId=$("body").attr("data-section-id");new SITE.TabsController(this);new SITE.OverlayController(this);this.bind("run",function(){$.metadata.setType("attr","data");var b=this;$("body").one("initialize",function(){if(!$(this).data("overlayInitialized")){$(this).data("overlayInitialized",true);(new SITE.OverlayView($("body"))).draw(b)}}).bind("decorate",function(){var h=$(".ad_panel");if(h.is(".custom,.decorated"))h.is(".custom")&&h.trigger("decorate_panel");
else{new SITE.AdView(h);h.addClass("decorated")}h=$(".video_panel");if(!h.is(".decorated")){new SITE.VideoView(h);h.addClass("decorated")}h=$(".paged");if(!h.is(".decorated")){new SITE.PagedView(h);h.addClass("decorated")}h=$("#flashes");if(!h.is(".decorated")){new SITE.FlashView(h);h.addClass("decorated")}h=$("#font-adjustment");if(!h.is(".decorated")){new SITE.FontSwitcherView(h);h.addClass("decorated")}new SITE.FormView}).trigger("decorate").trigger("initialize")});this.track=function(){if(typeof _gat_last_location!=
"undefined"){var b=document.location.pathname+document.location.search+document.location.hash;if(b!=_gat_last_location){$.trackPageview(b);_gat_last_location=b}}};this.after(this.track)});$(function(){var b="#"+window.location.pathname;SITE.app.run();if(SITE.app.lookupRoute("get",b))SITE.app.runRoute("get",b);else window.location.pathname.indexOf("#")<0&&SITE.app.track();$(".pagination.ajax a").live("click",function(h){h.preventDefault();h=$(this).attr("href");$(".article_archive").load(h+" .article_archive")})});
(function(b){function h(c){if(b.facebox.settings.inited)return true;else b.facebox.settings.inited=true;b(document).trigger("init.facebox");g();var v=b.facebox.settings.imageTypes.join("|");b.facebox.settings.imageTypesRegexp=new RegExp("."+v+"$","i");c&&b.extend(b.facebox.settings,c);b("body").append(b.facebox.settings.faceboxHtml);var H=[new Image,new Image];H[0].src=b.facebox.settings.closeImage;H[1].src=b.facebox.settings.loadingImage;b("#facebox").find(".b:first, .bl, .br, .tl, .tr").each(function(){H.push(new Image);
H.slice(-1).src=b(this).css("background-image").replace(/url\((.+)\)/,"$1")});b("#facebox .close").click(b.facebox.close);b("#facebox .close_image").attr("src",b.facebox.settings.closeImage)}function o(){var c,v;if(self.pageYOffset){v=self.pageYOffset;c=self.pageXOffset}else if(document.documentElement&&document.documentElement.scrollTop){v=document.documentElement.scrollTop;c=document.documentElement.scrollLeft}else if(document.body){v=document.body.scrollTop;c=document.body.scrollLeft}return new Array(c,
v)}function d(){var c;if(self.innerHeight)c=self.innerHeight;else if(document.documentElement&&document.documentElement.clientHeight)c=document.documentElement.clientHeight;else if(document.body)c=document.body.clientHeight;return c}function g(){var c=b.facebox.settings;c.loadingImage=c.loading_image||c.loadingImage;c.closeImage=c.close_image||c.closeImage;c.imageTypes=c.image_types||c.imageTypes;c.faceboxHtml=c.facebox_html||c.faceboxHtml}function j(c,v){if(c.match(/#/)){var H=window.location.href.split("#")[0];
H=c.replace(H,"");b.facebox.reveal(b(H).clone().show(),v)}else c.match(b.facebox.settings.imageTypesRegexp)?l(c,v):u(c,v)}function l(c,v){var H=new Image;H.onload=function(){b.facebox.reveal('<div class="image"><img src="'+H.src+'" /></div>',v)};H.src=c}function u(c,v){b.get(c,function(H){b.facebox.reveal(H,v)})}function w(){return b.facebox.settings.overlay==false||b.facebox.settings.opacity===null}function E(){if(!w()){b("facebox_overlay").length==0&&b("body").append('<div id="facebox_overlay" class="facebox_hide"></div>');
b("#facebox_overlay").hide().addClass("facebox_overlayBG").css("opacity",b.facebox.settings.opacity).click(function(){b(document).trigger("close.facebox")}).fadeIn(200);return false}}function A(){if(!w()){b("#facebox_overlay").fadeOut(200,function(){b("#facebox_overlay").removeClass("facebox_overlayBG");b("#facebox_overlay").addClass("facebox_hide");b("#facebox_overlay").remove()});return false}}b.facebox=function(c,v){b.facebox.loading();if(c.ajax)u(c.ajax);else if(c.image)l(c.image);else if(c.div)j(c.div);
else b.isFunction(c)?c.call(b):b.facebox.reveal(c,v)};b.extend(b.facebox,{settings:{opacity:0,overlay:true,loadingImage:"/images/cms/facebox/loading.gif",closeImage:"/images/cms/facebox/closelabel.gif",imageTypes:["png","jpg","jpeg","gif"],faceboxHtml:'    <div id="facebox" style="display:none;">       <div class="popup">         <table>           <tbody>             <tr>               <td class="tl"/><td class="b"/><td class="tr"/>             </tr>             <tr>               <td class="b"/>               <td class="body">                 <div class="content">                 </div>                 <div class="footer">                   <a href="#" class="close">                     <img src="/images/cms/facebox/closelabel.gif" title="close" class="close_image" />                   </a>                 </div>               </td>               <td class="b"/>             </tr>             <tr>               <td class="bl"/><td class="b"/><td class="br"/>             </tr>           </tbody>         </table>       </div>     </div>'},
loading:function(){h();if(b("#facebox .loading").length==1)return true;E();b("#facebox .content").empty();b("#facebox .body").children().hide().end().append('<div class="loading"><img src="'+b.facebox.settings.loadingImage+'"/></div>');b("#facebox").css({top:o()[1]+d()/10,left:385.5}).show();b(document).bind("keydown.facebox",function(c){c.keyCode==27&&b.facebox.close();return true});b(document).trigger("loading.facebox")},reveal:function(c,v){b(document).trigger("beforeReveal.facebox");v&&b("#facebox .content").addClass(v);
b("#facebox .content").append(c);b("#facebox .loading").remove();b("#facebox .body").children().fadeIn("normal");b("#facebox").css("left",b(window).width()/2-b("#facebox table").width()/2);b(document).trigger("reveal.facebox").trigger("afterReveal.facebox")},close:function(){b(document).trigger("close.facebox");return false}});b.fn.facebox=function(c){h(c);return this.click(function(){b.facebox.loading(true);var v=this.rel.match(/facebox\[?\.(\w+)\]?/);if(v)v=v[1];j(this.href,v);return false})};b(document).bind("close.facebox",
function(){b(document).unbind("keydown.facebox");b("#facebox").fadeOut(function(){b("#facebox .content").removeClass().addClass("content");A();b("#facebox .loading").remove()})})})(jQuery);
SITE.ContactsController=ApplicationController.subClass({init:function(b){this._super(b);var h=this;b.get("#/contact",function(o){h.showTicketDialog(h,o,{url:"/contact",title:"Contact Us"})});b.get("#/contact/support",function(o){h.showTicketDialog(h,o,{url:"/contact/support",title:"Support"})});b.get("#/contact/close",function(o){h.closeTicketDialog(h,o)})},showTicketDialog:function(b,h,o){b.ticketDialog=new CMS.TicketDialog(o);b.ticketDialog.draw()},closeTicketDialog:function(b){b.ticketDialog&&
b.ticketDialog.close()}});
SITE.MainAdView=Class.subClass({init:function(b){b.each(function(){var h=$(this),o=h.find(".ads-wrapper");h.append('<a href="#" id="ad-nav-left">Previous</a><a href="#" id="ad-nav-right">Next</a>');h.find("#ad-nav-left").click(function(d){d.preventDefault();o.cycle("prev")});h.find("#ad-nav-right").click(function(d){d.preventDefault();o.cycle("next")});o.cycle($.extend({pager:"#ad-nav",slideExpr:".ad",timeout:0,pagerAnchorBuilder:function(d,g){return"<li><a href='#'>"+$(g).attr("data-name")+"</a></li>"}},
h.metadata().cycle)).removeClass("undecorated")})}});SITE.PortfolioAdView=Class.subClass({init:function(b){b.each(function(){var h=$(this);h.find(".ads-wrapper").cycle($.extend({pager:"#portfolio-nav",slideExpr:".ad",timeout:0,pagerAnchorBuilder:function(o,d){return"<li><a href='#'><img src='"+$(d).find("img").attr("src")+"' /></a></li>"},after:function(o,d){$("#portfolio-caption").html($(d).find(".caption").html())}},h.metadata().cycle)).removeClass("undecorated")})}});
SITE.trabianApp=new Sammy.Application(function(){new SITE.ContactsController(this);$("body.home").bind("decorate",function(){var b=$("#main .ad_panel");if(!b.is(".decorated")){new SITE.MainAdView(b);b.addClass("decorated")}b=$("#what-weve-done .ad_panel");if(!b.is(".decorated")){new SITE.PortfolioAdView(b);b.addClass("decorated")}})});
$(function(){$("body").bind("decorate",function(){$("table.styled, table.rate-sheet-table, table.calendar").each(function(){$(this).find("tr:not(.header)").filter(":odd").addClass("alt").end().find(":cell:first-child").addClass("first").end().end().find("thead > tr > :cell:first").addClass("first")})});$.get("/sm/twitter/trabian",{},function(b){var h="http://twitter.com/trabian/status/"+b.id;$("#twitter .content").html("<p>"+b.text.replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig,
"<a href='$1'>$1</a>")+'<a class="date" href="'+h+'">'+b.created_at+"</a></p>")},"json");$("#navigation ul li a").hover(function(){$(this).parent("li").addClass("hover")},function(){$(this).parent("li").removeClass("hover")});SITE.trabianApp.run()});
if(!window.console||!console.firebug){var names=["log","debug","info","warn","error","assert","dir","dirxml","group","groupEnd","time","timeEnd","count","trace","profile","profileEnd"];window.console={};for(var i=0;i<names.length;++i)window.console[names[i]]=function(){}}
(function(b){function h(d){typeof console!="undefined"&&typeof console.debug!="undefined"&&b.fn.track.defaults.debug&&console.debug(d)}var o;b.trackPage=function(d,g){function j(){if(typeof _gat!=undefined){h("Google Analytics loaded");if(b.isArray(d)){o=[];b.map(d,function(E){h("Tracking Account ID: "+E);o.push(_gat._getTracker(E))})}else o=[_gat._getTracker(d)];if(u.status_code==null||u.status_code==200)b.each(o,function(E,A){h("trackPage",_gat_last_location,A);A._trackPageview()});else{h("Tracking error "+
u.status_code);b.each(o,function(E,A){A._trackPageview("/"+u.status_code+".html?page="+document.location.pathname+document.location.search+"&from="+document.referrer)})}b.each(o,function(E,A){b("body").trigger("gaTrackerLoaded",A)});b.isFunction(u.callback)&&u.callback()}else throw"_gat is undefined";}var l="https:"==document.location.protocol?"https://ssl.":"http://www.",u=b.extend({},{onload:true,status_code:200},g),w=l+"google-analytics.com/ga.js";_gat_last_location=document.location.pathname+
document.location.search+document.location.hash;load_script=function(){b.ajax({type:"GET",url:w,success:function(){j()},dataType:"script",cache:true})};u.onload==true||u.onload==null?b(window).load(load_script):load_script()};b.trackEvent=function(d,g,j,l){h("trackEvent",d,g,j,l);typeof o=="undefined"?h("FATAL: pageTracker is not defined"):b.each(o,function(u,w){w._trackEvent(d,g,j,l)})};b.trackPageview=function(d){h("trackPageview",d);typeof o=="undefined"?h("FATAL: pageTracker is not defined"):
b.each(o,function(g,j){j._trackPageview(d)})};b.fn.track=function(d){function g(j,l){if(typeof l=="function")l=l(j);return l}return this.each(function(){var j=b(this);if(j.hasClass("tracked"))return false;else j.addClass("tracked");var l=b.extend({},b.fn.track.defaults,d),u=g(j,l.category),w=g(j,l.action),E=g(j,l.label),A=g(j,l.value),c=g(j,l.event_name),v="category:'"+u+"' action:'"+w+"' label:'"+E+"' value:'"+A+"'";h("Tracking "+c+" "+v);j.bind(c+".track",function(){if(l.skip_internal&&j[0].hostname==
location.hostname)h("Skipped "+v);else{b.trackEvent(u,w,E,A);h("Tracked "+v)}return true})})};b.fn.track.defaults={category:function(d){return d[0].hostname==location.hostname?"internal":"external"},action:"click",label:function(d){return d.attr("href")},value:null,skip_internal:true,event_name:"click",debug:false}})(jQuery);
(function(b){b.extend(b.fn,{livequery:function(o,d,g){var j=this,l;if(b.isFunction(o)){g=d;d=o;o=undefined}b.each(b.livequery.queries,function(u,w){if(j.selector==w.selector&&j.context==w.context&&o==w.type&&(!d||d.$lqguid==w.fn.$lqguid)&&(!g||g.$lqguid==w.fn2.$lqguid))return(l=w)&&false});l=l||new b.livequery(this.selector,this.context,o,d,g);l.stopped=false;b.livequery.run(l.id);return this},expire:function(o,d,g){var j=this;if(b.isFunction(o)){g=d;d=o;o=undefined}b.each(b.livequery.queries,function(l,
u){if(j.selector==u.selector&&j.context==u.context&&(!o||o==u.type)&&(!d||d.$lqguid==u.fn.$lqguid)&&(!g||g.$lqguid==u.fn2.$lqguid)&&!this.stopped)b.livequery.stop(u.id)});return this}});b.livequery=function(o,d,g,j,l){this.selector=o;this.context=d||document;this.type=g;this.fn=j;this.fn2=l;this.elements=[];this.stopped=false;this.id=b.livequery.queries.push(this)-1;j.$lqguid=j.$lqguid||b.livequery.guid++;if(l)l.$lqguid=l.$lqguid||b.livequery.guid++;return this};b.livequery.prototype={stop:function(){var o=
this;if(this.type)this.elements.unbind(this.type,this.fn);else this.fn2&&this.elements.each(function(d,g){o.fn2.apply(g)});this.elements=[];this.stopped=true},run:function(){if(!this.stopped){var o=this,d=this.elements,g=b(this.selector,this.context),j=g.not(d);this.elements=g;if(this.type){j.bind(this.type,this.fn);d.length>0&&b.each(d,function(l,u){b.inArray(u,g)<0&&b.event.remove(u,o.type,o.fn)})}else{j.each(function(){o.fn.apply(this)});this.fn2&&d.length>0&&b.each(d,function(l,u){b.inArray(u,
g)<0&&o.fn2.apply(u)})}}}};b.extend(b.livequery,{guid:0,queries:[],queue:[],running:false,timeout:null,checkQueue:function(){if(b.livequery.running&&b.livequery.queue.length)for(var o=b.livequery.queue.length;o--;)b.livequery.queries[b.livequery.queue.shift()].run()},pause:function(){b.livequery.running=false},play:function(){b.livequery.running=true;b.livequery.run()},registerPlugin:function(){b.each(arguments,function(o,d){if(b.fn[d]){var g=b.fn[d];b.fn[d]=function(){var j=g.apply(this,arguments);
b.livequery.run();return j}}})},run:function(o){if(o!=undefined)b.inArray(o,b.livequery.queue)<0&&b.livequery.queue.push(o);else b.each(b.livequery.queries,function(d){b.inArray(d,b.livequery.queue)<0&&b.livequery.queue.push(d)});b.livequery.timeout&&clearTimeout(b.livequery.timeout);b.livequery.timeout=setTimeout(b.livequery.checkQueue,20)},stop:function(o){o!=undefined?b.livequery.queries[o].stop():b.each(b.livequery.queries,function(d){b.livequery.queries[d].stop()})}});b.livequery.registerPlugin("append",
"prepend","after","before","wrap","attr","removeAttr","addClass","removeClass","toggleClass","empty","remove");b(function(){b.livequery.play()});var h=b.prototype.init;b.prototype.init=function(o,d){var g=h.apply(this,arguments);if(o&&o.selector){g.context=o.context;g.selector=o.selector}if(typeof o=="string"){g.context=d||document;g.selector=o}return g};b.prototype.init.prototype=b.prototype})(jQuery);
jQuery.uri=function(){var b={},h={},o={},d={uri:window.location,strictMode:false,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},
g=function(){str=decodeURI(d.uri);m=d.parser[d.strictMode?"strict":"loose"].exec(str);uri={};for(i=14;i--;)uri[d.key[i]]=m[i]||"";uri[d.q.name]={};uri[d.key[12]].replace(d.q.parser,function(l,u,w){if(u)uri[d.q.name][u]=w});return uri},j=function(){o=g();var l=o.path;b=[];b=o.path.length==1?{}:(l.charAt(l.length-1)=="/"?l.substring(1,l.length-1):(path=l.substring(1))).split("/");querystring=o.query.split(/[;&]/);for(l=0;l<querystring.length;l++){var u=querystring[l].split("=");h[decodeURI(u[0])]=decodeURI(u[1])}};
return{setMode:function(l){strictMode=l=="strict"?true:false;return this},setUri:function(l){d.uri=l===undefined?window.location:l;j();return this},segment:function(l){o.length||j();if(l===undefined)return b.length;return b[l]==""||b[l]==undefined?null:b[l]},key:function(l){o.length||j();return o[l]===""?null:o[l]},param:function(l){o.length||j();return h[l]==null?null:h[l]}}}();
$(function(){SITE.external_links={setup:function(){$.metadata.setType("attr","data");var b=$("#external_link_content").html(),h=$("#trusted_partner_link_content").html();SITE.external_links.internal_domains.concat(["localhost",$.uri.key("host")]);var o=function(d,g,j){$.colorbox({html:j,innerWidth:350,transition:"none",close:false});$("#colorbox").find(".accept").unbind("click").click(function(l){l.preventDefault();(l=g)||(l="[No title]");$.trackEvent("external links","click - speedbump - continue",
[d,l].join(" - "),null);window.open(d);$.colorbox.close()});$("#colorbox").find(".cancel").unbind("click").click(function(l){l.preventDefault();$.colorbox.close()});return false};$("a[href]").livequery(function(){var d=this.hostname.replace("www.",""),g=$(this).attr("href"),j=$(this).attr("title"),l=false;$.each(["#","/","mailto","javascript"],function(){if(g.indexOf(this)===0)l=true});if(!l)if(jQuery.inArray(d,SITE.external_links.internal_domains)>=0)$(this).unbind("click.external").bind("click.external",
function(){});else if(jQuery.inArray(d,SITE.external_links.trusted_partner_domains)>=0)SITE.external_links.enable_trusted_partner_domains&&$(this).click(function(){o(g,j,h);return false});else SITE.external_links.enable_external_domains&&$(this).click(function(){o(g,j,b);return false})})}}});$(window).ajaxComplete(function(){$("body").trigger("decorate")});
$(function(){$("input[type=text]").addClass("text");$("select.navigation").change(function(){var b=$(this).find("option:selected").attr("value");if(b&&(b.indexOf("http")===0||b.indexOf("/")===0))window.location=b});$("body").bind("decorate",function(){$("form:not(:has(input[type=submit]))").append('<input type="submit" value="Submit" style="background: none; border: none; width: 1px; height: 1px;" />');$("a.new, a.new-window, a.new_window, a.external").attr("target","_blank")})});

