var a;
(function(){function j(b,c){c.src?d.ajax({url:c.src,async:false,dataType:"script"}):d.globalEval(c.text||c.textContent||c.innerHTML||"");c.parentNode&&c.parentNode.removeChild(c)}function z(){return+new Date}function K(b,c){return b[0]&&parseInt(d.curCSS(b[0],c,true),10)||0}function N(){return false}function n(){return true}function i(b){var c=RegExp("(^|\\.)"+b.type+"(\\.|$)"),e=true,g=[];d.each(d.data(this,"events").live||[],function(k,r){if(c.test(r.type))(k=d(b.target).closest(r.data)[0])&&g.push({elem:k,
fn:r})});g.sort(function(k,r){return d.data(k.elem,"closest")-d.data(r.elem,"closest")});d.each(g,function(){if(this.fn.call(this.elem,b,this.fn.data)===false)return e=false});return e}function o(b,c){return["live",b,c.replace(/\./g,"`").replace(/ /g,"|")].join(".")}function q(){if(!U){U=true;if(document.addEventListener)document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);d.ready()},false);else if(document.attachEvent){document.attachEvent("onreadystatechange",
function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);d.ready()}});document.documentElement.doScroll&&x==x.top&&function(){if(!d.isReady){try{document.documentElement.doScroll("left")}catch(b){setTimeout(arguments.callee,0);return}d.ready()}}()}d.event.add(x,"load",d.ready)}}function v(b,c){var e={};d.each(s.concat.apply([],s.slice(0,c)),function(){e[this]=b});return e}var x=this,R=x.jQuery,M=x.$,d=x.jQuery=x.$=function(b,c){return new d.fn.init(b,
c)},T=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,F=/^.[^:#\[\.,]*$/;d.fn=d.prototype={init:function(b,c){b=b||document;if(b.nodeType){this[0]=b;this.length=1;this.context=b;return this}if(typeof b==="string"){var e=T.exec(b);if(e&&(e[1]||!c))if(e[1])b=d.clean([e[1]],c);else{if((c=document.getElementById(e[3]))&&c.id!=e[3])return d().find(b);e=d(c||[]);e.context=document;e.selector=b;return e}else return d(c).find(b)}else if(d.isFunction(b))return d(document).ready(b);if(b.selector&&b.context){this.selector=
b.selector;this.context=b.context}return this.setArray(d.isArray(b)?b:d.makeArray(b))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(b){return b===void 0?Array.prototype.slice.call(this):this[b]},pushStack:function(b,c,e){b=d(b);b.prevObject=this;b.context=this.context;if(c==="find")b.selector=this.selector+(this.selector?" ":"")+e;else if(c)b.selector=this.selector+"."+c+"("+e+")";return b},setArray:function(b){this.length=0;Array.prototype.push.apply(this,b);return this},
each:function(b,c){return d.each(this,b,c)},index:function(b){return d.inArray(b&&b.jquery?b[0]:b,this)},attr:function(b,c,e){var g=b;if(typeof b==="string")if(c===void 0)return this[0]&&d[e||"attr"](this[0],b);else{g={};g[b]=c}return this.each(function(k){for(b in g)d.attr(e?this.style:this,b,d.prop(this,g[b],e,k,b))})},css:function(b,c){if((b=="width"||b=="height")&&parseFloat(c)<0)c=void 0;return this.attr(b,c,"curCSS")},text:function(b){if(typeof b!=="object"&&b!=null)return this.empty().append((this[0]&&
this[0].ownerDocument||document).createTextNode(b));var c="";d.each(b||this,function(){d.each(this.childNodes,function(){if(this.nodeType!=8)c+=this.nodeType!=1?this.nodeValue:d.fn.text([this])})});return c},wrapAll:function(b){if(this[0]){b=d(b,this[0].ownerDocument).clone();this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var c=this;c.firstChild;)c=c.firstChild;return c}).append(this)}return this},wrapInner:function(b){return this.each(function(){d(this).contents().wrapAll(b)})},
wrap:function(b){return this.each(function(){d(this).wrapAll(b)})},append:function(){return this.domManip(arguments,true,function(b){this.nodeType==1&&this.appendChild(b)})},prepend:function(){return this.domManip(arguments,true,function(b){this.nodeType==1&&this.insertBefore(b,this.firstChild)})},before:function(){return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)})},after:function(){return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,
this.nextSibling)})},end:function(){return this.prevObject||d([])},push:[].push,sort:[].sort,splice:[].splice,find:function(b){if(this.length===1){var c=this.pushStack([],"find",b);c.length=0;d.find(b,this[0],c);return c}else return this.pushStack(d.unique(d.map(this,function(e){return d.find(b,e)})),"find",b)},clone:function(b){var c=this.map(function(){if(!d.support.noCloneEvent&&!d.isXMLDoc(this)){var k=this.outerHTML;if(!k){k=this.ownerDocument.createElement("div");k.appendChild(this.cloneNode(true));
k=k.innerHTML}return d.clean([k.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else return this.cloneNode(true)});if(b===true){var e=this.find("*").andSelf(),g=0;c.find("*").andSelf().each(function(){if(this.nodeName===e[g].nodeName){var k=d.data(e[g],"events");for(var r in k)for(var t in k[r])d.event.add(this,r,k[r][t],k[r][t].data);g++}})}return c},filter:function(b){return this.pushStack(d.isFunction(b)&&d.grep(this,function(c,e){return b.call(c,e)})||d.multiFilter(b,d.grep(this,
function(c){return c.nodeType===1})),"filter",b)},closest:function(b){var c=d.expr.match.POS.test(b)?d(b):null,e=0;return this.map(function(){for(var g=this;g&&g.ownerDocument;){if(c?c.index(g)>-1:d(g).is(b)){d.data(g,"closest",e);return g}g=g.parentNode;e++}})},not:function(b){if(typeof b==="string")if(F.test(b))return this.pushStack(d.multiFilter(b,this,true),"not",b);else b=d.multiFilter(b,this);var c=b.length&&b[b.length-1]!==void 0&&!b.nodeType;return this.filter(function(){return c?d.inArray(this,
b)<0:this!=b})},add:function(b){return this.pushStack(d.unique(d.merge(this.get(),typeof b==="string"?d(b):d.makeArray(b))))},is:function(b){return!!b&&d.multiFilter(b,this).length>0},hasClass:function(b){return!!b&&this.is("."+b)},val:function(b){if(b===void 0){var c=this[0];if(c){if(d.nodeName(c,"option"))return(c.attributes.value||{}).specified?c.value:c.text;if(d.nodeName(c,"select")){var e=c.selectedIndex,g=[],k=c.options;c=c.type=="select-one";if(e<0)return null;var r=c?e:0;for(e=c?e+1:k.length;r<
e;r++){var t=k[r];if(t.selected){b=d(t).val();if(c)return b;g.push(b)}}return g}return(c.value||"").replace(/\r/g,"")}}else{if(typeof b==="number")b+="";return this.each(function(){if(this.nodeType==1)if(d.isArray(b)&&/radio|checkbox/.test(this.type))this.checked=d.inArray(this.value,b)>=0||d.inArray(this.name,b)>=0;else if(d.nodeName(this,"select")){var A=d.makeArray(b);d("option",this).each(function(){this.selected=d.inArray(this.value,A)>=0||d.inArray(this.text,A)>=0});if(!A.length)this.selectedIndex=
-1}else this.value=b})}},html:function(b){return b===void 0?this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null:this.empty().append(b)},replaceWith:function(b){return this.after(b).remove()},eq:function(b){return this.slice(b,+b+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(b){return this.pushStack(d.map(this,function(c,e){return b.call(c,e,c)}))},andSelf:function(){return this.add(this.prevObject)},
domManip:function(b,c,e){function g(W,Y){return c&&d.nodeName(W,"table")&&d.nodeName(Y,"tr")?W.getElementsByTagName("tbody")[0]||W.appendChild(W.ownerDocument.createElement("tbody")):W}if(this[0]){var k=(this[0].ownerDocument||this[0]).createDocumentFragment();b=d.clean(b,this[0].ownerDocument||this[0],k);var r=k.firstChild;if(r)for(var t=0,A=this.length;t<A;t++)e.call(g(this[t],r),this.length>1||t>0?k.cloneNode(true):k);b&&d.each(b,j)}return this}};d.fn.init.prototype=d.fn;d.extend=d.fn.extend=function(){var b=
arguments[0]||{},c=1,e=arguments.length,g=false,k;if(typeof b==="boolean"){g=b;b=arguments[1]||{};c=2}if(typeof b!=="object"&&!d.isFunction(b))b={};if(e==c){b=this;--c}for(;c<e;c++)if((k=arguments[c])!=null)for(var r in k){var t=b[r],A=k[r];if(b!==A)if(g&&A&&typeof A==="object"&&!A.nodeType)b[r]=d.extend(g,t||(A.length!=null?[]:{}),A);else if(A!==void 0)b[r]=A}return b};var C=/z-?index|font-?weight|opacity|zoom|line-?height/i,y=document.defaultView||{},w=Object.prototype.toString;d.extend({noConflict:function(b){x.$=
M;if(b)x.jQuery=R;return d},isFunction:function(b){return w.call(b)==="[object Function]"},isArray:function(b){return w.call(b)==="[object Array]"},isXMLDoc:function(b){return b.nodeType===9&&b.documentElement.nodeName!=="HTML"||!!b.ownerDocument&&d.isXMLDoc(b.ownerDocument)},globalEval:function(b){if(b&&/\S/.test(b)){var c=document.getElementsByTagName("head")[0]||document.documentElement,e=document.createElement("script");e.type="text/javascript";if(d.support.scriptEval)e.appendChild(document.createTextNode(b));
else e.text=b;c.insertBefore(e,c.firstChild);c.removeChild(e)}},nodeName:function(b,c){return b.nodeName&&b.nodeName.toUpperCase()==c.toUpperCase()},each:function(b,c,e){var g,k=0,r=b.length;if(e)if(r===void 0)for(g in b){if(c.apply(b[g],e)===false)break}else for(;k<r;){if(c.apply(b[k++],e)===false)break}else if(r===void 0)for(g in b){if(c.call(b[g],g,b[g])===false)break}else for(e=b[0];k<r&&c.call(e,k,e)!==false;e=b[++k]);return b},prop:function(b,c,e,g,k){if(d.isFunction(c))c=c.call(b,g);return typeof c===
"number"&&e=="curCSS"&&!C.test(k)?c+"px":c},className:{add:function(b,c){d.each((c||"").split(/\s+/),function(e,g){if(b.nodeType==1&&!d.className.has(b.className,g))b.className+=(b.className?" ":"")+g})},remove:function(b,c){if(b.nodeType==1)b.className=c!==void 0?d.grep(b.className.split(/\s+/),function(e){return!d.className.has(c,e)}).join(" "):""},has:function(b,c){return b&&d.inArray(c,(b.className||b).toString().split(/\s+/))>-1}},swap:function(b,c,e){var g={};for(var k in c){g[k]=b.style[k];
b.style[k]=c[k]}e.call(b);for(k in c)b.style[k]=g[k]},css:function(b,c,e,g){if(c=="width"||c=="height"){var k;e={position:"absolute",visibility:"hidden",display:"block"};var r=c=="width"?["Left","Right"]:["Top","Bottom"];function t(){k=c=="width"?b.offsetWidth:b.offsetHeight;g!=="border"&&d.each(r,function(){g||(k-=parseFloat(d.curCSS(b,"padding"+this,true))||0);if(g==="margin")k+=parseFloat(d.curCSS(b,"margin"+this,true))||0;else k-=parseFloat(d.curCSS(b,"border"+this+"Width",true))||0})}b.offsetWidth!==
0?t():d.swap(b,e,t);return Math.max(0,Math.round(k))}return d.curCSS(b,c,e)},curCSS:function(b,c,e){var g,k=b.style;if(c=="opacity"&&!d.support.opacity){g=d.attr(k,"opacity");return g==""?"1":g}if(c.match(/float/i))c=L;if(!e&&k&&k[c])g=k[c];else if(y.getComputedStyle){if(c.match(/float/i))c="float";c=c.replace(/([A-Z])/g,"-$1").toLowerCase();if(b=y.getComputedStyle(b,null))g=b.getPropertyValue(c);if(c=="opacity"&&g=="")g="1"}else if(b.currentStyle){g=c.replace(/\-(\w)/g,function(r,t){return t.toUpperCase()});
g=b.currentStyle[c]||b.currentStyle[g];if(!/^\d+(px)?$/i.test(g)&&/^\d/.test(g)){c=k.left;e=b.runtimeStyle.left;b.runtimeStyle.left=b.currentStyle.left;k.left=g||0;g=k.pixelLeft+"px";k.left=c;b.runtimeStyle.left=e}}return g},clean:function(b,c,e){c=c||document;if(typeof c.createElement==="undefined")c=c.ownerDocument||c[0]&&c[0].ownerDocument||document;if(!e&&b.length===1&&typeof b[0]==="string"){var g=/^<(\w+)\s*\/?>$/.exec(b[0]);if(g)return[c.createElement(g[1])]}var k=[];g=[];var r=c.createElement("div");
d.each(b,function(t,A){if(typeof A==="number")A+="";if(A){if(typeof A==="string"){A=A.replace(/(<(\w+)[^>]*?)\/>/g,function(ca,da,ha){return ha.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?ca:da+"></"+ha+">"});t=A.replace(/^\s+/,"").substring(0,10).toLowerCase();var W=!t.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!t.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||t.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!t.indexOf("<tr")&&[2,
"<table><tbody>","</tbody></table>"]||(!t.indexOf("<td")||!t.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!t.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!d.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];for(r.innerHTML=W[1]+A+W[2];W[0]--;)r=r.lastChild;if(!d.support.tbody){var Y=/<tbody/i.test(A);t=!t.indexOf("<table")&&!Y?r.firstChild&&r.firstChild.childNodes:W[1]=="<table>"&&!Y?r.childNodes:[];for(W=t.length-1;W>=0;--W)d.nodeName(t[W],
"tbody")&&!t[W].childNodes.length&&t[W].parentNode.removeChild(t[W])}!d.support.leadingWhitespace&&/^\s/.test(A)&&r.insertBefore(c.createTextNode(A.match(/^\s*/)[0]),r.firstChild);A=d.makeArray(r.childNodes)}if(A.nodeType)k.push(A);else k=d.merge(k,A)}});if(e){for(b=0;k[b];b++)if(d.nodeName(k[b],"script")&&(!k[b].type||k[b].type.toLowerCase()==="text/javascript"))g.push(k[b].parentNode?k[b].parentNode.removeChild(k[b]):k[b]);else{k[b].nodeType===1&&k.splice.apply(k,[b+1,0].concat(d.makeArray(k[b].getElementsByTagName("script"))));
e.appendChild(k[b])}return g}return k},attr:function(b,c,e){if(!(!b||b.nodeType==3||b.nodeType==8)){var g=!d.isXMLDoc(b),k=e!==void 0;c=g&&d.props[c]||c;if(b.tagName){var r=/href|src|style/.test(c);if(c in b&&g&&!r){if(k){if(c=="type"&&d.nodeName(b,"input")&&b.parentNode)throw"type property can't be changed";b[c]=e}if(d.nodeName(b,"form")&&b.getAttributeNode(c))return b.getAttributeNode(c).nodeValue;if(c=="tabIndex")return(c=b.getAttributeNode("tabIndex"))&&c.specified?c.value:b.nodeName.match(/(button|input|object|select|textarea)/i)?
0:b.nodeName.match(/^(a|area)$/i)&&b.href?0:void 0;return b[c]}if(!d.support.style&&g&&c=="style")return d.attr(b.style,"cssText",e);k&&b.setAttribute(c,""+e);b=!d.support.hrefNormalized&&g&&r?b.getAttribute(c,2):b.getAttribute(c);return b===null?void 0:b}if(!d.support.opacity&&c=="opacity"){if(k){b.zoom=1;b.filter=(b.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(e)+""=="NaN"?"":"alpha(opacity="+e*100+")")}return b.filter&&b.filter.indexOf("opacity=")>=0?parseFloat(b.filter.match(/opacity=([^)]*)/)[1])/
100+"":""}c=c.replace(/-([a-z])/ig,function(t,A){return A.toUpperCase()});if(k)b[c]=e;return b[c]}},trim:function(b){return(b||"").replace(/^\s+|\s+$/g,"")},makeArray:function(b){var c=[];if(b!=null){var e=b.length;if(e==null||typeof b==="string"||d.isFunction(b)||b.setInterval)c[0]=b;else for(;e;)c[--e]=b[e]}return c},inArray:function(b,c){for(var e=0,g=c.length;e<g;e++)if(c[e]===b)return e;return-1},merge:function(b,c){var e=0,g,k=b.length;if(d.support.getAll)for(;(g=c[e++])!=null;)b[k++]=g;else for(;(g=
c[e++])!=null;)if(g.nodeType!=8)b[k++]=g;return b},unique:function(b){var c=[],e={};try{for(var g=0,k=b.length;g<k;g++){var r=d.data(b[g]);if(!e[r]){e[r]=true;c.push(b[g])}}}catch(t){c=b}return c},grep:function(b,c,e){for(var g=[],k=0,r=b.length;k<r;k++)!e!=!c(b[k],k)&&g.push(b[k]);return g},map:function(b,c){for(var e=[],g=0,k=b.length;g<k;g++){var r=c(b[g],g);if(r!=null)e[e.length]=r}return e.concat.apply([],e)}});var B=navigator.userAgent.toLowerCase();d.browser={version:(B.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||
[0,"0"])[1],safari:/webkit/.test(B),opera:/opera/.test(B),msie:/msie/.test(B)&&!/opera/.test(B),mozilla:/mozilla/.test(B)&&!/(compatible|webkit)/.test(B)};d.each({parent:function(b){return b.parentNode},parents:function(b){return d.dir(b,"parentNode")},next:function(b){return d.nth(b,2,"nextSibling")},prev:function(b){return d.nth(b,2,"previousSibling")},nextAll:function(b){return d.dir(b,"nextSibling")},prevAll:function(b){return d.dir(b,"previousSibling")},siblings:function(b){return d.sibling(b.parentNode.firstChild,
b)},children:function(b){return d.sibling(b.firstChild)},contents:function(b){return d.nodeName(b,"iframe")?b.contentDocument||b.contentWindow.document:d.makeArray(b.childNodes)}},function(b,c){d.fn[b]=function(e){var g=d.map(this,c);if(e&&typeof e=="string")g=d.multiFilter(e,g);return this.pushStack(d.unique(g),b,e)}});d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,c){d.fn[b]=function(e){for(var g=[],k=d(e),r=0,t=k.length;r<
t;r++){var A=(r>0?this.clone(true):this).get();d.fn[c].apply(d(k[r]),A);g=g.concat(A)}return this.pushStack(g,b,e)}});d.each({removeAttr:function(b){d.attr(this,b,"");this.nodeType==1&&this.removeAttribute(b)},addClass:function(b){d.className.add(this,b)},removeClass:function(b){d.className.remove(this,b)},toggleClass:function(b,c){if(typeof c!=="boolean")c=!d.className.has(this,b);d.className[c?"add":"remove"](this,b)},remove:function(b){if(!b||d.filter(b,[this]).length){d("*",this).add([this]).each(function(){d.event.remove(this);
d.removeData(this)});this.parentNode&&this.parentNode.removeChild(this)}},empty:function(){for(d(this).children().remove();this.firstChild;)this.removeChild(this.firstChild)}},function(b,c){d.fn[b]=function(){return this.each(c,arguments)}});var H="jQuery"+z(),E=0,J={};d.extend({cache:{},data:function(b,c,e){b=b==x?J:b;var g=b[H];g||(g=b[H]=++E);if(c&&!d.cache[g])d.cache[g]={};if(e!==void 0)d.cache[g][c]=e;return c?d.cache[g][c]:g},removeData:function(b,c){b=b==x?J:b;var e=b[H];if(c){if(d.cache[e]){delete d.cache[e][c];
c="";for(c in d.cache[e])break;c||d.removeData(b)}}else{try{delete b[H]}catch(g){b.removeAttribute&&b.removeAttribute(H)}delete d.cache[e]}},queue:function(b,c,e){if(b){c=(c||"fx")+"queue";var g=d.data(b,c);if(!g||d.isArray(e))g=d.data(b,c,d.makeArray(e));else e&&g.push(e)}return g},dequeue:function(b,c){var e=d.queue(b,c),g=e.shift();if(!c||c==="fx")g=e[0];g!==void 0&&g.call(b)}});d.fn.extend({data:function(b,c){var e=b.split(".");e[1]=e[1]?"."+e[1]:"";if(c===void 0){var g=this.triggerHandler("getData"+
e[1]+"!",[e[0]]);if(g===void 0&&this.length)g=d.data(this[0],b);return g===void 0&&e[1]?this.data(e[0]):g}else return this.trigger("setData"+e[1]+"!",[e[0],c]).each(function(){d.data(this,b,c)})},removeData:function(b){return this.each(function(){d.removeData(this,b)})},queue:function(b,c){if(typeof b!=="string"){c=b;b="fx"}if(c===void 0)return d.queue(this[0],b);return this.each(function(){var e=d.queue(this,b,c);b=="fx"&&e.length==1&&e[0].call(this)})},dequeue:function(b){return this.each(function(){d.dequeue(this,
b)})}});(function(){function b(f,h,m,u,D,I){D=f=="previousSibling"&&!I;for(var O=0,Z=u.length;O<Z;O++){var S=u[O];if(S){if(D&&S.nodeType===1){S.sizcache=m;S.sizset=O}S=S[f];for(var ea=false;S;){if(S.sizcache===m){ea=u[S.sizset];break}if(S.nodeType===1&&!I){S.sizcache=m;S.sizset=O}if(S.nodeName===h){ea=S;break}S=S[f]}u[O]=ea}}}function c(f,h,m,u,D,I){D=f=="previousSibling"&&!I;for(var O=0,Z=u.length;O<Z;O++){var S=u[O];if(S){if(D&&S.nodeType===1){S.sizcache=m;S.sizset=O}S=S[f];for(var ea=false;S;){if(S.sizcache===
m){ea=u[S.sizset];break}if(S.nodeType===1){if(!I){S.sizcache=m;S.sizset=O}if(typeof h!=="string"){if(S===h){ea=true;break}}else if(r.filter(h,[S]).length>0){ea=S;break}}S=S[f]}u[O]=ea}}}var e=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,g=0,k=Object.prototype.toString,r=function(f,h,m,u){m=m||[];h=h||document;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!f||typeof f!=="string")return m;var D=[],I,O,Z,S=true;for(e.lastIndex=
0;(I=e.exec(f))!==null;){D.push(I[1]);if(I[2]){Z=RegExp.rightContext;break}}if(D.length>1&&A.exec(f))if(D.length===2&&t.relative[D[0]])I=X(D[0]+D[1],h);else for(I=t.relative[D[0]]?[h]:r(D.shift(),h);D.length;){f=D.shift();if(t.relative[f])f+=D.shift();I=X(f,I)}else{I=u?{expr:D.pop(),set:Y(u)}:r.find(D.pop(),D.length===1&&h.parentNode?h.parentNode:h,aa(h));I=r.filter(I.expr,I.set);if(D.length>0)O=Y(I);else S=false;for(;D.length;){var ea=D.pop(),fa=ea;if(t.relative[ea])fa=D.pop();else ea="";if(fa==
null)fa=h;t.relative[ea](O,fa,aa(h))}}O||(O=I);if(!O)throw"Syntax error, unrecognized expression: "+(ea||f);if(k.call(O)==="[object Array]")if(S)if(h.nodeType===1)for(f=0;O[f]!=null;f++){if(O[f]&&(O[f]===true||O[f].nodeType===1&&ha(h,O[f])))m.push(I[f])}else for(f=0;O[f]!=null;f++)O[f]&&O[f].nodeType===1&&m.push(I[f]);else m.push.apply(m,O);else Y(O,m);if(Z){r(Z,h,m,u);if(da){hasDuplicate=false;m.sort(da);if(hasDuplicate)for(f=1;f<m.length;f++)m[f]===m[f-1]&&m.splice(f--,1)}}return m};r.matches=function(f,
h){return r(f,null,null,h)};r.find=function(f,h,m){var u,D;if(!f)return[];for(var I=0,O=t.order.length;I<O;I++){var Z=t.order[I];if(D=t.match[Z].exec(f)){var S=RegExp.leftContext;if(S.substr(S.length-1)!=="\\"){D[1]=(D[1]||"").replace(/\\/g,"");u=t.find[Z](D,h,m);if(u!=null){f=f.replace(t.match[Z],"");break}}}}u||(u=h.getElementsByTagName("*"));return{set:u,expr:f}};r.filter=function(f,h,m,u){for(var D=f,I=[],O=h,Z,S,ea=h&&h[0]&&aa(h[0]);f&&h.length;){for(var fa in t.filter)if((Z=t.match[fa].exec(f))!=
null){var p=t.filter[fa],P,ba;S=false;if(O==I)I=[];if(t.preFilter[fa])if(Z=t.preFilter[fa](Z,O,m,I,u,ea)){if(Z===true)continue}else S=P=true;if(Z)for(var ga=0;(ba=O[ga])!=null;ga++)if(ba){P=p(ba,Z,ga,O);var ia=u^!!P;if(m&&P!=null)if(ia)S=true;else O[ga]=false;else if(ia){I.push(ba);S=true}}if(P!==void 0){m||(O=I);f=f.replace(t.match[fa],"");if(!S)return[];break}}if(f==D)if(S==null)throw"Syntax error, unrecognized expression: "+f;else break;D=f}return O};var t=r.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(f){return f.getAttribute("href")}},relative:{"+":function(f,h,m){var u=typeof h==="string",D=u&&!/\W/.test(h);u=u&&!D;if(D&&!m)h=h.toUpperCase();m=0;D=f.length;for(var I;m<D;m++)if(I=f[m]){for(;(I=I.previousSibling)&&I.nodeType!==1;);f[m]=u||I&&I.nodeName===h?I||false:I===h}u&&r.filter(h,f,true)},">":function(f,h,m){var u=typeof h==="string";if(u&&!/\W/.test(h)){h=m?h:h.toUpperCase();m=0;for(var D=f.length;m<D;m++){var I=f[m];if(I){u=I.parentNode;f[m]=u.nodeName===
h?u:false}}}else{m=0;for(D=f.length;m<D;m++)if(I=f[m])f[m]=u?I.parentNode:I.parentNode===h;u&&r.filter(h,f,true)}},"":function(f,h,m){var u=g++,D=c;if(!h.match(/\W/)){var I=h=m?h:h.toUpperCase();D=b}D("parentNode",h,u,f,I,m)},"~":function(f,h,m){var u=g++,D=c;if(typeof h==="string"&&!h.match(/\W/)){var I=h=m?h:h.toUpperCase();D=b}D("previousSibling",h,u,f,I,m)}},find:{ID:function(f,h,m){if(typeof h.getElementById!=="undefined"&&!m)return(f=h.getElementById(f[1]))?[f]:[]},NAME:function(f,h){if(typeof h.getElementsByName!==
"undefined"){var m=[];h=h.getElementsByName(f[1]);for(var u=0,D=h.length;u<D;u++)h[u].getAttribute("name")===f[1]&&m.push(h[u]);return m.length===0?null:m}},TAG:function(f,h){return h.getElementsByTagName(f[1])}},preFilter:{CLASS:function(f,h,m,u,D,I){f=" "+f[1].replace(/\\/g,"")+" ";if(I)return f;I=0;for(var O;(O=h[I])!=null;I++)if(O)if(D^(O.className&&(" "+O.className+" ").indexOf(f)>=0))m||u.push(O);else if(m)h[I]=false;return false},ID:function(f){return f[1].replace(/\\/g,"")},TAG:function(f,
h){for(var m=0;h[m]===false;m++);return h[m]&&aa(h[m])?f[1]:f[1].toUpperCase()},CHILD:function(f){if(f[1]=="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(f[2]=="even"&&"2n"||f[2]=="odd"&&"2n+1"||!/\D/.test(f[2])&&"0n+"+f[2]||f[2]);f[2]=h[1]+(h[2]||1)-0;f[3]=h[3]-0}f[0]=g++;return f},ATTR:function(f,h,m,u,D,I){h=f[1].replace(/\\/g,"");if(!I&&t.attrMap[h])f[1]=t.attrMap[h];if(f[2]==="~=")f[4]=" "+f[4]+" ";return f},PSEUDO:function(f,h,m,u,D){if(f[1]==="not")if(f[3].match(e).length>1||/^\w/.test(f[3]))f[3]=
r(f[3],null,null,h);else{f=r.filter(f[3],h,m,true^D);m||u.push.apply(u,f);return false}else if(t.match.POS.test(f[0])||t.match.CHILD.test(f[0]))return true;return f},POS:function(f){f.unshift(true);return f}},filters:{enabled:function(f){return f.disabled===false&&f.type!=="hidden"},disabled:function(f){return f.disabled===true},checked:function(f){return f.checked===true},selected:function(f){return f.selected===true},parent:function(f){return!!f.firstChild},empty:function(f){return!f.firstChild},
has:function(f,h,m){return!!r(m[3],f).length},header:function(f){return/h\d/i.test(f.nodeName)},text:function(f){return"text"===f.type},radio:function(f){return"radio"===f.type},checkbox:function(f){return"checkbox"===f.type},file:function(f){return"file"===f.type},password:function(f){return"password"===f.type},submit:function(f){return"submit"===f.type},image:function(f){return"image"===f.type},reset:function(f){return"reset"===f.type},button:function(f){return"button"===f.type||f.nodeName.toUpperCase()===
"BUTTON"},input:function(f){return/input|select|textarea|button/i.test(f.nodeName)}},setFilters:{first:function(f,h){return h===0},last:function(f,h,m,u){return h===u.length-1},even:function(f,h){return h%2===0},odd:function(f,h){return h%2===1},lt:function(f,h,m){return h<m[3]-0},gt:function(f,h,m){return h>m[3]-0},nth:function(f,h,m){return m[3]-0==h},eq:function(f,h,m){return m[3]-0==h}},filter:{PSEUDO:function(f,h,m,u){var D=h[1],I=t.filters[D];if(I)return I(f,m,h,u);else if(D==="contains")return(f.textContent||
f.innerText||"").indexOf(h[3])>=0;else if(D==="not"){h=h[3];m=0;for(u=h.length;m<u;m++)if(h[m]===f)return false;return true}},CHILD:function(f,h){var m=h[1],u=f;switch(m){case "only":case "first":for(;u=u.previousSibling;)if(u.nodeType===1)return false;if(m=="first")return true;u=f;case "last":for(;u=u.nextSibling;)if(u.nodeType===1)return false;return true;case "nth":m=h[2];var D=h[3];if(m==1&&D==0)return true;h=h[0];var I=f.parentNode;if(I&&(I.sizcache!==h||!f.nodeIndex)){var O=0;for(u=I.firstChild;u;u=
u.nextSibling)if(u.nodeType===1)u.nodeIndex=++O;I.sizcache=h}f=f.nodeIndex-D;return m==0?f==0:f%m==0&&f/m>=0}},ID:function(f,h){return f.nodeType===1&&f.getAttribute("id")===h},TAG:function(f,h){return h==="*"&&f.nodeType===1||f.nodeName===h},CLASS:function(f,h){return(" "+(f.className||f.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(f,h){var m=h[1];f=t.attrHandle[m]?t.attrHandle[m](f):f[m]!=null?f[m]:f.getAttribute(m);m=f+"";var u=h[2];h=h[4];return f==null?u==="!=":u==="="?m===h:u===
"*="?m.indexOf(h)>=0:u==="~="?(" "+m+" ").indexOf(h)>=0:!h?m&&f!==false:u==="!="?m!=h:u==="^="?m.indexOf(h)===0:u==="$="?m.substr(m.length-h.length)===h:u==="|="?m===h||m.substr(0,h.length+1)===h+"-":false},POS:function(f,h,m,u){var D=t.setFilters[h[2]];if(D)return D(f,m,h,u)}}},A=t.match.POS;for(var W in t.match)t.match[W]=RegExp(t.match[W].source+/(?![^\[]*\])(?![^\(]*\))/.source);var Y=function(f,h){f=Array.prototype.slice.call(f);if(h){h.push.apply(h,f);return h}return f};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(ca){Y=
function(f,h){h=h||[];if(k.call(f)==="[object Array]")Array.prototype.push.apply(h,f);else if(typeof f.length==="number")for(var m=0,u=f.length;m<u;m++)h.push(f[m]);else for(m=0;f[m];m++)h.push(f[m]);return h}}var da;if(document.documentElement.compareDocumentPosition)da=function(f,h){f=f.compareDocumentPosition(h)&4?-1:f===h?0:1;if(f===0)hasDuplicate=true;return f};else if("sourceIndex"in document.documentElement)da=function(f,h){f=f.sourceIndex-h.sourceIndex;if(f===0)hasDuplicate=true;return f};
else if(document.createRange)da=function(f,h){var m=f.ownerDocument.createRange(),u=h.ownerDocument.createRange();m.selectNode(f);m.collapse(true);u.selectNode(h);u.collapse(true);f=m.compareBoundaryPoints(Range.START_TO_END,u);if(f===0)hasDuplicate=true;return f};(function(){var f=document.createElement("form"),h="script"+(new Date).getTime();f.innerHTML="<input name='"+h+"'/>";var m=document.documentElement;m.insertBefore(f,m.firstChild);if(document.getElementById(h)){t.find.ID=function(u,D,I){if(typeof D.getElementById!==
"undefined"&&!I)return(D=D.getElementById(u[1]))?D.id===u[1]||typeof D.getAttributeNode!=="undefined"&&D.getAttributeNode("id").nodeValue===u[1]?[D]:void 0:[]};t.filter.ID=function(u,D){var I=typeof u.getAttributeNode!=="undefined"&&u.getAttributeNode("id");return u.nodeType===1&&I&&I.nodeValue===D}}m.removeChild(f)})();(function(){var f=document.createElement("div");f.appendChild(document.createComment(""));if(f.getElementsByTagName("*").length>0)t.find.TAG=function(h,m){m=m.getElementsByTagName(h[1]);
if(h[1]==="*"){h=[];for(var u=0;m[u];u++)m[u].nodeType===1&&h.push(m[u]);m=h}return m};f.innerHTML="<a href='#'></a>";if(f.firstChild&&typeof f.firstChild.getAttribute!=="undefined"&&f.firstChild.getAttribute("href")!=="#")t.attrHandle.href=function(h){return h.getAttribute("href",2)}})();document.querySelectorAll&&function(){var f=r,h=document.createElement("div");h.innerHTML="<p class='TEST'></p>";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){r=function(m,u,D,I){u=u||document;
if(!I&&u.nodeType===9&&!aa(u))try{return Y(u.querySelectorAll(m),D)}catch(O){}return f(m,u,D,I)};r.find=f.find;r.filter=f.filter;r.selectors=f.selectors;r.matches=f.matches}}();document.getElementsByClassName&&document.documentElement.getElementsByClassName&&function(){var f=document.createElement("div");f.innerHTML="<div class='test e'></div><div class='test'></div>";if(f.getElementsByClassName("e").length!==0){f.lastChild.className="e";if(f.getElementsByClassName("e").length!==1){t.order.splice(1,
0,"CLASS");t.find.CLASS=function(h,m,u){if(typeof m.getElementsByClassName!=="undefined"&&!u)return m.getElementsByClassName(h[1])}}}}();var ha=document.compareDocumentPosition?function(f,h){return f.compareDocumentPosition(h)&16}:function(f,h){return f!==h&&(f.contains?f.contains(h):true)},aa=function(f){return f.nodeType===9&&f.documentElement.nodeName!=="HTML"||!!f.ownerDocument&&aa(f.ownerDocument)},X=function(f,h){var m=[],u="",D;for(h=h.nodeType?[h]:h;D=t.match.PSEUDO.exec(f);){u+=D[0];f=f.replace(t.match.PSEUDO,
"")}f=t.relative[f]?f+"*":f;D=0;for(var I=h.length;D<I;D++)r(f,h[D],m);return r.filter(u,m)};d.find=r;d.filter=r.filter;d.expr=r.selectors;d.expr[":"]=d.expr.filters;r.selectors.filters.hidden=function(f){return f.offsetWidth===0||f.offsetHeight===0};r.selectors.filters.visible=function(f){return f.offsetWidth>0||f.offsetHeight>0};r.selectors.filters.animated=function(f){return d.grep(d.timers,function(h){return f===h.elem}).length};d.multiFilter=function(f,h,m){if(m)f=":not("+f+")";return r.matches(f,
h)};d.dir=function(f,h){var m=[];for(f=f[h];f&&f!=document;){f.nodeType==1&&m.push(f);f=f[h]}return m};d.nth=function(f,h,m){h=h||1;for(var u=0;f;f=f[m])if(f.nodeType==1&&++u==h)break;return f};d.sibling=function(f,h){for(var m=[];f;f=f.nextSibling)f.nodeType==1&&f!=h&&m.push(f);return m}})();d.event={add:function(b,c,e,g){if(!(b.nodeType==3||b.nodeType==8)){if(b.setInterval&&b!=x)b=x;if(!e.guid)e.guid=this.guid++;if(g!==void 0){e=this.proxy(e);e.data=g}var k=d.data(b,"events")||d.data(b,"events",
{}),r=d.data(b,"handle")||d.data(b,"handle",function(){return typeof d!=="undefined"&&!d.event.triggered?d.event.handle.apply(arguments.callee.elem,arguments):void 0});r.elem=b;d.each(c.split(/\s+/),function(t,A){t=A.split(".");A=t.shift();e.type=t.slice().sort().join(".");var W=k[A];d.event.specialAll[A]&&d.event.specialAll[A].setup.call(b,g,t);if(!W){W=k[A]={};if(!d.event.special[A]||d.event.special[A].setup.call(b,g,t)===false)if(b.addEventListener)b.addEventListener(A,r,false);else b.attachEvent&&
b.attachEvent("on"+A,r)}W[e.guid]=e;d.event.global[A]=true});b=null}},guid:1,global:{},remove:function(b,c,e){if(!(b.nodeType==3||b.nodeType==8)){var g=d.data(b,"events"),k;if(g){if(c===void 0||typeof c==="string"&&c.charAt(0)==".")for(var r in g)this.remove(b,r+(c||""));else{if(c.type){e=c.handler;c=c.type}d.each(c.split(/\s+/),function(t,A){t=A.split(".");A=t.shift();var W=RegExp("(^|\\.)"+t.slice().sort().join(".*\\.")+"(\\.|$)");if(g[A]){if(e)delete g[A][e.guid];else for(var Y in g[A])W.test(g[A][Y].type)&&
delete g[A][Y];d.event.specialAll[A]&&d.event.specialAll[A].teardown.call(b,t);for(k in g[A])break;if(!k){if(!d.event.special[A]||d.event.special[A].teardown.call(b,t)===false)if(b.removeEventListener)b.removeEventListener(A,d.data(b,"handle"),false);else b.detachEvent&&b.detachEvent("on"+A,d.data(b,"handle"));k=null;delete g[A]}}})}for(k in g)break;if(!k){if(c=d.data(b,"handle"))c.elem=null;d.removeData(b,"events");d.removeData(b,"handle")}}}},trigger:function(b,c,e,g){var k=b.type||b;if(!g){b=typeof b===
"object"?b[H]?b:d.extend(d.Event(k),b):d.Event(k);if(k.indexOf("!")>=0){b.type=k=k.slice(0,-1);b.exclusive=true}if(!e){b.stopPropagation();this.global[k]&&d.each(d.cache,function(){this.events&&this.events[k]&&d.event.trigger(b,c,this.handle.elem)})}if(!e||e.nodeType==3||e.nodeType==8)return;b.result=void 0;b.target=e;c=d.makeArray(c);c.unshift(b)}b.currentTarget=e;var r=d.data(e,"handle");r&&r.apply(e,c);if((!e[k]||d.nodeName(e,"a")&&k=="click")&&e["on"+k]&&e["on"+k].apply(e,c)===false)b.result=
false;if(!g&&e[k]&&!b.isDefaultPrevented()&&!(d.nodeName(e,"a")&&k=="click")){this.triggered=true;try{e[k]()}catch(t){}}this.triggered=false;if(!b.isPropagationStopped())(e=e.parentNode||e.ownerDocument)&&d.event.trigger(b,c,e,true)},handle:function(b){var c,e;b=arguments[0]=d.event.fix(b||x.event);b.currentTarget=this;e=b.type.split(".");b.type=e.shift();c=!e.length&&!b.exclusive;var g=RegExp("(^|\\.)"+e.slice().sort().join(".*\\.")+"(\\.|$)");e=(d.data(this,"events")||{})[b.type];for(var k in e){var r=
e[k];if(c||g.test(r.type)){b.handler=r;b.data=r.data;r=r.apply(this,arguments);if(r!==void 0){b.result=r;if(r===false){b.preventDefault();b.stopPropagation()}}if(b.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(b){if(b[H])return b;var c=b;b=d.Event(c);for(var e=this.props.length,g;e;){g=this.props[--e];b[g]=c[g]}if(!b.target)b.target=b.srcElement||document;if(b.target.nodeType==3)b.target=b.target.parentNode;if(!b.relatedTarget&&b.fromElement)b.relatedTarget=b.fromElement==b.target?b.toElement:b.fromElement;if(b.pageX==null&&b.clientX!=null){c=document.documentElement;e=document.body;b.pageX=b.clientX+(c&&c.scrollLeft||e&&e.scrollLeft||0)-(c.clientLeft||0);b.pageY=b.clientY+(c&&c.scrollTop||
e&&e.scrollTop||0)-(c.clientTop||0)}if(!b.which&&(b.charCode||b.charCode===0?b.charCode:b.keyCode))b.which=b.charCode||b.keyCode;if(!b.metaKey&&b.ctrlKey)b.metaKey=b.ctrlKey;if(!b.which&&b.button)b.which=b.button&1?1:b.button&2?3:b.button&4?2:0;return b},proxy:function(b,c){c=c||function(){return b.apply(this,arguments)};c.guid=b.guid=b.guid||c.guid||this.guid++;return c},special:{ready:{setup:q,teardown:function(){}}},specialAll:{live:{setup:function(b,c){d.event.add(this,c[0],i)},teardown:function(b){if(b.length){var c=
0,e=RegExp("(^|\\.)"+b[0]+"(\\.|$)");d.each(d.data(this,"events").live||{},function(){e.test(this.type)&&c++});c<1&&d.event.remove(this,b[0],i)}}}}};d.Event=function(b){if(!this.preventDefault)return new d.Event(b);if(b&&b.type){this.originalEvent=b;this.type=b.type}else this.type=b;this.timeStamp=z();this[H]=true};d.Event.prototype={preventDefault:function(){this.isDefaultPrevented=n;var b=this.originalEvent;if(b){b.preventDefault&&b.preventDefault();b.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=
n;var b=this.originalEvent;if(b){b.stopPropagation&&b.stopPropagation();b.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=n;this.stopPropagation()},isDefaultPrevented:N,isPropagationStopped:N,isImmediatePropagationStopped:N};var G=function(b){for(var c=b.relatedTarget;c&&c!=this;)try{c=c.parentNode}catch(e){c=this}if(c!=this){b.type=b.data;d.event.handle.apply(this,arguments)}};d.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(b,c){d.event.special[c]=
{setup:function(){d.event.add(this,b,G,c)},teardown:function(){d.event.remove(this,b,G)}}});d.fn.extend({bind:function(b,c,e){return b=="unload"?this.one(b,c,e):this.each(function(){d.event.add(this,b,e||c,e&&c)})},one:function(b,c,e){var g=d.event.proxy(e||c,function(k){d(this).unbind(k,g);return(e||c).apply(this,arguments)});return this.each(function(){d.event.add(this,b,g,e&&c)})},unbind:function(b,c){return this.each(function(){d.event.remove(this,b,c)})},trigger:function(b,c){return this.each(function(){d.event.trigger(b,
c,this)})},triggerHandler:function(b,c){if(this[0]){b=d.Event(b);b.preventDefault();b.stopPropagation();d.event.trigger(b,c,this[0]);return b.result}},toggle:function(b){for(var c=arguments,e=1;e<c.length;)d.event.proxy(b,c[e++]);return this.click(d.event.proxy(b,function(g){this.lastToggle=(this.lastToggle||0)%e;g.preventDefault();return c[this.lastToggle++].apply(this,arguments)||false}))},hover:function(b,c){return this.mouseenter(b).mouseleave(c)},ready:function(b){q();d.isReady?b.call(document,
d):d.readyList.push(b);return this},live:function(b,c){c=d.event.proxy(c);c.guid+=this.selector+b;d(document).bind(o(b,this.selector),this.selector,c);return this},die:function(b,c){d(document).unbind(o(b,this.selector),c?{guid:c.guid+this.selector+b}:null);return this}});d.extend({isReady:false,readyList:[],ready:function(){if(!d.isReady){d.isReady=true;if(d.readyList){d.each(d.readyList,function(){this.call(document,d)});d.readyList=null}d(document).triggerHandler("ready")}}});var U=false;d.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(b,c){d.fn[c]=function(e){return e?this.bind(c,e):this.trigger(c)}});d(x).bind("unload",function(){for(var b in d.cache)b!=1&&d.cache[b].handle&&d.event.remove(d.cache[b].handle.elem)});(function(){d.support={};var b=document.documentElement,c=document.createElement("script"),e=document.createElement("div"),g="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 k=e.getElementsByTagName("*"),r=e.getElementsByTagName("a")[0];if(!(!k||!k.length||!r)){d.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(r.getAttribute("style")),hrefNormalized:r.getAttribute("href")==="/a",opacity:r.style.opacity==="0.5",cssFloat:!!r.style.cssFloat,scriptEval:false,noCloneEvent:true,
boxModel:null};c.type="text/javascript";try{c.appendChild(document.createTextNode("window."+g+"=1;"))}catch(t){}b.insertBefore(c,b.firstChild);if(x[g]){d.support.scriptEval=true;delete x[g]}b.removeChild(c);if(e.attachEvent&&e.fireEvent){e.attachEvent("onclick",function(){d.support.noCloneEvent=false;e.detachEvent("onclick",arguments.callee)});e.cloneNode(true).fireEvent("onclick")}d(function(){var A=document.createElement("div");A.style.width=A.style.paddingLeft="1px";document.body.appendChild(A);
d.boxModel=d.support.boxModel=A.offsetWidth===2;document.body.removeChild(A).style.display="none"})}})();var L=d.support.cssFloat?"cssFloat":"styleFloat";d.props={"for":"htmlFor","class":"className","float":L,cssFloat:L,styleFloat:L,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};d.fn.extend({_load:d.fn.load,load:function(b,c,e){if(typeof b!=="string")return this._load(b);var g=b.indexOf(" ");if(g>=0){var k=b.slice(g,b.length);b=b.slice(0,
g)}g="GET";if(c)if(d.isFunction(c)){e=c;c=null}else if(typeof c==="object"){c=d.param(c);g="POST"}var r=this;d.ajax({url:b,type:g,dataType:"html",data:c,complete:function(t,A){if(A=="success"||A=="notmodified")r.html(k?d("<div/>").append(t.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(k):t.responseText);e&&r.each(e,[t.responseText,A,t])}});return this},serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?
d.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(b,c){b=d(this).val();return b==null?null:d.isArray(b)?d.map(b,function(e){return{name:c.name,value:e}}):{name:c.name,value:b}}).get()}});d.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(b,c){d.fn[c]=function(e){return this.bind(c,e)}});var Q=z();d.extend({get:function(b,
c,e,g){if(d.isFunction(c)){e=c;c=null}return d.ajax({type:"GET",url:b,data:c,success:e,dataType:g})},getScript:function(b,c){return d.get(b,null,c,"script")},getJSON:function(b,c,e){return d.get(b,c,e,"json")},post:function(b,c,e,g){if(d.isFunction(c)){e=c;c={}}return d.ajax({type:"POST",url:b,data:c,success:e,dataType:g})},ajaxSetup:function(b){d.extend(d.ajaxSettings,b)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,
xhr:function(){return x.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(b){function c(){b.success&&b.success(t,r);b.global&&d.event.trigger("ajaxSuccess",[aa,b])}function e(){b.complete&&b.complete(aa,r);b.global&&d.event.trigger("ajaxComplete",[aa,b]);b.global&&
!--d.active&&d.event.trigger("ajaxStop")}b=d.extend(true,b,d.extend(true,{},d.ajaxSettings,b));var g,k=/=\?(&|$)/g,r,t,A=b.type.toUpperCase();if(b.data&&b.processData&&typeof b.data!=="string")b.data=d.param(b.data);if(b.dataType=="jsonp"){if(A=="GET")b.url.match(k)||(b.url+=(b.url.match(/\?/)?"&":"?")+(b.jsonp||"callback")+"=?");else if(!b.data||!b.data.match(k))b.data=(b.data?b.data+"&":"")+(b.jsonp||"callback")+"=?";b.dataType="json"}if(b.dataType=="json"&&(b.data&&b.data.match(k)||b.url.match(k))){g=
"jsonp"+Q++;if(b.data)b.data=(b.data+"").replace(k,"="+g+"$1");b.url=b.url.replace(k,"="+g+"$1");b.dataType="script";x[g]=function(u){t=u;c();e();x[g]=void 0;try{delete x[g]}catch(D){}Y&&Y.removeChild(ca)}}if(b.dataType=="script"&&b.cache==null)b.cache=false;if(b.cache===false&&A=="GET"){k=z();var W=b.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+k+"$2");b.url=W+(W==b.url?(b.url.match(/\?/)?"&":"?")+"_="+k:"")}if(b.data&&A=="GET"){b.url+=(b.url.match(/\?/)?"&":"?")+b.data;b.data=null}b.global&&!d.active++&&
d.event.trigger("ajaxStart");k=/^(\w+:)?\/\/([^\/?#]+)/.exec(b.url);if(b.dataType=="script"&&A=="GET"&&k&&(k[1]&&k[1]!=location.protocol||k[2]!=location.host)){var Y=document.getElementsByTagName("head")[0],ca=document.createElement("script");ca.src=b.url;if(b.scriptCharset)ca.charset=b.scriptCharset;if(!g){var da=false;ca.onload=ca.onreadystatechange=function(){if(!da&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){da=true;c();e();ca.onload=ca.onreadystatechange=null;
Y.removeChild(ca)}}}Y.appendChild(ca)}else{var ha=false,aa=b.xhr();b.username?aa.open(A,b.url,b.async,b.username,b.password):aa.open(A,b.url,b.async);try{b.data&&aa.setRequestHeader("Content-Type",b.contentType);if(b.ifModified)aa.setRequestHeader("If-Modified-Since",d.lastModified[b.url]||"Thu, 01 Jan 1970 00:00:00 GMT");aa.setRequestHeader("X-Requested-With","XMLHttpRequest");aa.setRequestHeader("Accept",b.dataType&&b.accepts[b.dataType]?b.accepts[b.dataType]+", */*":b.accepts._default)}catch(X){}if(b.beforeSend&&
b.beforeSend(aa,b)===false){b.global&&!--d.active&&d.event.trigger("ajaxStop");aa.abort();return false}b.global&&d.event.trigger("ajaxSend",[aa,b]);var f=function(u){if(aa.readyState==0){if(h){clearInterval(h);h=null;b.global&&!--d.active&&d.event.trigger("ajaxStop")}}else if(!ha&&aa&&(aa.readyState==4||u=="timeout")){ha=true;if(h){clearInterval(h);h=null}r=u=="timeout"?"timeout":!d.httpSuccess(aa)?"error":b.ifModified&&d.httpNotModified(aa,b.url)?"notmodified":"success";if(r=="success")try{t=d.httpData(aa,
b.dataType,b)}catch(D){r="parsererror"}if(r=="success"){var I;try{I=aa.getResponseHeader("Last-Modified")}catch(O){}if(b.ifModified&&I)d.lastModified[b.url]=I;g||c()}else d.handleError(b,aa,r);e();u&&aa.abort();if(b.async)aa=null}};if(b.async){var h=setInterval(f,13);b.timeout>0&&setTimeout(function(){aa&&!ha&&f("timeout")},b.timeout)}try{aa.send(b.data)}catch(m){d.handleError(b,aa,null,m)}b.async||f();return aa}},handleError:function(b,c,e,g){b.error&&b.error(c,e,g);b.global&&d.event.trigger("ajaxError",
[c,b,g])},active:0,httpSuccess:function(b){try{return!b.status&&location.protocol=="file:"||b.status>=200&&b.status<300||b.status==304||b.status==1223}catch(c){}return false},httpNotModified:function(b,c){try{var e=b.getResponseHeader("Last-Modified");return b.status==304||e==d.lastModified[c]}catch(g){}return false},httpData:function(b,c,e){var g=b.getResponseHeader("content-type");b=(g=c=="xml"||!c&&g&&g.indexOf("xml")>=0)?b.responseXML:b.responseText;if(g&&b.documentElement.tagName=="parsererror")throw"parsererror";
if(e&&e.dataFilter)b=e.dataFilter(b,c);if(typeof b==="string"){c=="script"&&d.globalEval(b);if(c=="json")b=x.eval("("+b+")")}return b},param:function(b){function c(k,r){e[e.length]=encodeURIComponent(k)+"="+encodeURIComponent(r)}var e=[];if(d.isArray(b)||b.jquery)d.each(b,function(){c(this.name,this.value)});else for(var g in b)d.isArray(b[g])?d.each(b[g],function(){c(g,this)}):c(g,d.isFunction(b[g])?b[g]():b[g]);return e.join("&").replace(/%20/g,"+")}});var V={},l,s=[["height","marginTop","marginBottom",
"paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];d.fn.extend({show:function(b,c){if(b)return this.animate(v("show",3),b,c);else{b=0;for(c=this.length;b<c;b++){var e=d.data(this[b],"olddisplay");this[b].style.display=e||"";if(d.css(this[b],"display")==="none"){e=this[b].tagName;var g;if(V[e])g=V[e];else{var k=d("<"+e+" />").appendTo("body");g=k.css("display");if(g==="none")g="block";k.remove();V[e]=g}d.data(this[b],"olddisplay",g)}}b=0;for(c=
this.length;b<c;b++)this[b].style.display=d.data(this[b],"olddisplay")||"";return this}},hide:function(b,c){if(b)return this.animate(v("hide",3),b,c);else{b=0;for(c=this.length;b<c;b++){var e=d.data(this[b],"olddisplay");!e&&e!=="none"&&d.data(this[b],"olddisplay",d.css(this[b],"display"))}b=0;for(c=this.length;b<c;b++)this[b].style.display="none";return this}},_toggle:d.fn.toggle,toggle:function(b,c){var e=typeof b==="boolean";return d.isFunction(b)&&d.isFunction(c)?this._toggle.apply(this,arguments):
b==null||e?this.each(function(){var g=e?b:d(this).is(":hidden");d(this)[g?"show":"hide"]()}):this.animate(v("toggle",3),b,c)},fadeTo:function(b,c,e){return this.animate({opacity:c},b,e)},animate:function(b,c,e,g){var k=d.speed(c,e,g);return this[k.queue===false?"each":"queue"](function(){var r=d.extend({},k),t,A=this.nodeType==1&&d(this).is(":hidden"),W=this;for(t in b){if(b[t]=="hide"&&A||b[t]=="show"&&!A)return r.complete.call(this);if((t=="height"||t=="width")&&this.style){r.display=d.css(this,
"display");r.overflow=this.style.overflow}}if(r.overflow!=null)this.style.overflow="hidden";r.curAnim=d.extend({},b);d.each(b,function(Y,ca){var da=new d.fx(W,r,Y);if(/toggle|show|hide/.test(ca))da[ca=="toggle"?A?"show":"hide":ca](b);else{var ha=ca.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),aa=da.cur(true)||0;if(ha){ca=parseFloat(ha[2]);var X=ha[3]||"px";if(X!="px"){W.style[Y]=(ca||1)+X;aa=(ca||1)/da.cur(true)*aa;W.style[Y]=aa+X}if(ha[1])ca=(ha[1]=="-="?-1:1)*ca+aa;da.custom(aa,ca,X)}else da.custom(aa,
ca,"")}});return true})},stop:function(b,c){var e=d.timers;b&&this.queue([]);this.each(function(){for(var g=e.length-1;g>=0;g--)if(e[g].elem==this){c&&e[g](true);e.splice(g,1)}});c||this.dequeue();return this}});d.each({slideDown:v("show",1),slideUp:v("hide",1),slideToggle:v("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(b,c){d.fn[b]=function(e,g){return this.animate(c,e,g)}});d.extend({speed:function(b,c,e){var g=typeof b==="object"?b:{complete:e||!e&&c||d.isFunction(b)&&
b,duration:b,easing:e&&c||c&&!d.isFunction(c)&&c};g.duration=d.fx.off?0:typeof g.duration==="number"?g.duration:d.fx.speeds[g.duration]||d.fx.speeds._default;g.old=g.complete;g.complete=function(){g.queue!==false&&d(this).dequeue();d.isFunction(g.old)&&g.old.call(this)};return g},easing:{linear:function(b,c,e,g){return e+g*b},swing:function(b,c,e,g){return(-Math.cos(b*Math.PI)/2+0.5)*g+e}},timers:[],fx:function(b,c,e){this.options=c;this.elem=b;this.prop=e;if(!c.orig)c.orig={}}});d.fx.prototype={update:function(){this.options.step&&
this.options.step.call(this.elem,this.now,this);(d.fx.step[this.prop]||d.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style)this.elem.style.display="block"},cur:function(b){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(b=parseFloat(d.css(this.elem,this.prop,b)))&&b>-10000?b:parseFloat(d.curCSS(this.elem,this.prop))||0},custom:function(b,c,e){function g(r){return k.step(r)}this.startTime=z();
this.start=b;this.end=c;this.unit=e||this.unit||"px";this.now=this.start;this.pos=this.state=0;var k=this;g.elem=this.elem;if(g()&&d.timers.push(g)&&!l)l=setInterval(function(){for(var r=d.timers,t=0;t<r.length;t++)r[t]()||r.splice(t--,1);if(!r.length){clearInterval(l);l=void 0}},13)},show:function(){this.options.orig[this.prop]=d.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());d(this.elem).show()},hide:function(){this.options.orig[this.prop]=
d.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(b){var c=z();if(b||c>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();b=this.options.curAnim[this.prop]=true;for(var e in this.options.curAnim)if(this.options.curAnim[e]!==true)b=false;if(b){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(d.css(this.elem,"display")=="none")this.elem.style.display=
"block"}this.options.hide&&d(this.elem).hide();if(this.options.hide||this.options.show)for(var g in this.options.curAnim)d.attr(this.elem.style,g,this.options.orig[g]);this.options.complete.call(this.elem)}return false}else{e=c-this.startTime;this.state=e/this.options.duration;this.pos=d.easing[this.options.easing||(d.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}};d.extend(d.fx,{speeds:{slow:600,
fast:200,_default:400},step:{opacity:function(b){d.attr(b.elem.style,"opacity",b.now)},_default:function(b){if(b.elem.style&&b.elem.style[b.prop]!=null)b.elem.style[b.prop]=b.now+b.unit;else b.elem[b.prop]=b.now}}});d.fn.offset=document.documentElement.getBoundingClientRect?function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return d.offset.bodyOffset(this[0]);var b=this[0].getBoundingClientRect(),c=this[0].ownerDocument,e=c.body;c=c.documentElement;return{top:b.top+
(self.pageYOffset||d.boxModel&&c.scrollTop||e.scrollTop)-(c.clientTop||e.clientTop||0),left:b.left+(self.pageXOffset||d.boxModel&&c.scrollLeft||e.scrollLeft)-(c.clientLeft||e.clientLeft||0)}}:function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return d.offset.bodyOffset(this[0]);d.offset.initialized||d.offset.initialize();var b=this[0],c=b.offsetParent,e=b.ownerDocument,g,k=e.documentElement,r=e.body;e=e.defaultView;g=e.getComputedStyle(b,null);for(var t=b.offsetTop,
A=b.offsetLeft;(b=b.parentNode)&&b!==r&&b!==k;){g=e.getComputedStyle(b,null);t-=b.scrollTop;A-=b.scrollLeft;if(b===c){t+=b.offsetTop;A+=b.offsetLeft;if(d.offset.doesNotAddBorder&&!(d.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.tagName))){t+=parseInt(g.borderTopWidth,10)||0;A+=parseInt(g.borderLeftWidth,10)||0}c=b.offsetParent}if(d.offset.subtractsBorderForOverflowNotVisible&&g.overflow!=="visible"){t+=parseInt(g.borderTopWidth,10)||0;A+=parseInt(g.borderLeftWidth,10)||0}g=g}if(g.position===
"relative"||g.position==="static"){t+=r.offsetTop;A+=r.offsetLeft}if(g.position==="fixed"){t+=Math.max(k.scrollTop,r.scrollTop);A+=Math.max(k.scrollLeft,r.scrollLeft)}return{top:t,left:A}};d.offset={initialize:function(){if(!this.initialized){var b=document.body,c=document.createElement("div"),e,g,k,r=b.style.marginTop;e={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(g in e)c.style[g]=e[g];c.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>';
b.insertBefore(c,b.firstChild);e=c.firstChild;g=e.firstChild;k=e.nextSibling.firstChild.firstChild;this.doesNotAddBorder=g.offsetTop!==5;this.doesAddBorderForTableAndCells=k.offsetTop===5;e.style.overflow="hidden";e.style.position="relative";this.subtractsBorderForOverflowNotVisible=g.offsetTop===-5;b.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=b.offsetTop===0;b.style.marginTop=r;b.removeChild(c);this.initialized=true}},bodyOffset:function(b){d.offset.initialized||d.offset.initialize();
var c=b.offsetTop,e=b.offsetLeft;if(d.offset.doesNotIncludeMarginInBodyOffset){c+=parseInt(d.curCSS(b,"marginTop",true),10)||0;e+=parseInt(d.curCSS(b,"marginLeft",true),10)||0}return{top:c,left:e}}};d.fn.extend({position:function(){var b;if(this[0]){b=this.offsetParent();var c=this.offset(),e=/^body|html$/i.test(b[0].tagName)?{top:0,left:0}:b.offset();c.top-=K(this,"marginTop");c.left-=K(this,"marginLeft");e.top+=K(b,"borderTopWidth");e.left+=K(b,"borderLeftWidth");b={top:c.top-e.top,left:c.left-
e.left}}return b},offsetParent:function(){for(var b=this[0].offsetParent||document.body;b&&!/^body|html$/i.test(b.tagName)&&d.css(b,"position")=="static";)b=b.offsetParent;return d(b)}});d.each(["Left","Top"],function(b,c){var e="scroll"+c;d.fn[e]=function(g){if(!this[0])return null;return g!==void 0?this.each(function(){this==x||this==document?x.scrollTo(!b?g:d(x).scrollLeft(),b?g:d(x).scrollTop()):(this[e]=g)}):this[0]==x||this[0]==document?self[b?"pageYOffset":"pageXOffset"]||d.boxModel&&document.documentElement[e]||
document.body[e]:this[0][e]}});d.each(["Height","Width"],function(b,c){var e=c.toLowerCase();d.fn["inner"+c]=function(){return this[0]?d.css(this[0],e,false,"padding"):null};d.fn["outer"+c]=function(k){return this[0]?d.css(this[0],e,false,k?"margin":"border"):null};var g=c.toLowerCase();d.fn[g]=function(k){return this[0]==x?document.compatMode=="CSS1Compat"&&document.documentElement["client"+c]||document.body["client"+c]:this[0]==document?Math.max(document.documentElement["client"+c],document.body["scroll"+
c],document.documentElement["scroll"+c],document.body["offset"+c],document.documentElement["offset"+c]):k===void 0?this.length?d.css(this[0],g):null:this.css(g,typeof k==="string"?k:k+"px")}})})();
(function(j){function z(n){var i;if(n&&n.constructor==Array&&n.length==3)return n;if(i=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(n))return[parseInt(i[1]),parseInt(i[2]),parseInt(i[3])];if(i=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(n))return[parseFloat(i[1])*2.55,parseFloat(i[2])*2.55,parseFloat(i[3])*2.55];if(i=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(n))return[parseInt(i[1],16),parseInt(i[2],
16),parseInt(i[3],16)];if(i=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(n))return[parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16),parseInt(i[3]+i[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(n))return N.transparent;return N[jQuery.trim(n).toLowerCase()]}function K(n,i){var o;do{o=jQuery.curCSS(n,i);if(o!=""&&o!="transparent"||jQuery.nodeName(n,"body"))break;i="backgroundColor"}while(n=n.parentNode);return z(o)}j.effects=j.effects||{};j.extend(j.effects,{save:function(n,i){for(var o=0;o<i.length;o++)i[o]!==
null&&j.data(n[0],"ec.storage."+i[o],n[0].style[i[o]])},restore:function(n,i){for(var o=0;o<i.length;o++)i[o]!==null&&n.css(i[o],j.data(n[0],"ec.storage."+i[o]))},setMode:function(n,i){if(i=="toggle")i=n.is(":hidden")?"show":"hide";return i},getBaseline:function(n,i){var o;switch(n[0]){case "top":o=0;break;case "middle":o=0.5;break;case "bottom":o=1;break;default:o=n[0]/i.height}switch(n[1]){case "left":n=0;break;case "center":n=0.5;break;case "right":n=1;break;default:n=n[1]/i.width}return{x:n,y:o}},
createWrapper:function(n){if(n.parent().attr("id")=="fxWrapper")return n;var i={width:n.outerWidth({margin:true}),height:n.outerHeight({margin:true}),"float":n.css("float")};n.wrap('<div id="fxWrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');var o=n.parent();if(n.css("position")=="static"){o.css({position:"relative"});n.css({position:"relative"})}else{var q=n.css("top");if(isNaN(parseInt(q)))q="auto";var v=n.css("left");if(isNaN(parseInt(v)))v="auto";
o.css({position:n.css("position"),top:q,left:v,zIndex:n.css("z-index")}).show();n.css({position:"relative",top:0,left:0})}o.css(i);return o},removeWrapper:function(n){if(n.parent().attr("id")=="fxWrapper")return n.parent().replaceWith(n);return n},setTransition:function(n,i,o,q){q=q||{};j.each(i,function(v,x){unit=n.cssUnit(x);if(unit[0]>0)q[x]=unit[0]*o+unit[1]});return q},animateClass:function(n,i,o,q){var v=typeof o=="function"?o:q?q:null,x=typeof o=="object"?o:null;return this.each(function(){var R=
{},M=j(this),d=M.attr("style")||"";if(typeof d=="object")d=d.cssText;if(n.toggle)M.hasClass(n.toggle)?(n.remove=n.toggle):(n.add=n.toggle);var T=j.extend({},document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle);n.add&&M.addClass(n.add);n.remove&&M.removeClass(n.remove);var F=j.extend({},document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle);n.add&&M.removeClass(n.add);n.remove&&M.addClass(n.remove);for(var C in F)if(typeof F[C]!=
"function"&&F[C]&&C.indexOf("Moz")==-1&&C.indexOf("length")==-1&&F[C]!=T[C]&&(C.match(/color/i)||!C.match(/color/i)&&!isNaN(parseInt(F[C],10)))&&(T.position!="static"||T.position=="static"&&!C.match(/left|top|bottom|right/)))R[C]=F[C];M.animate(R,i,x,function(){if(typeof j(this).attr("style")=="object"){j(this).attr("style").cssText="";j(this).attr("style").cssText=d}else j(this).attr("style",d);n.add&&j(this).addClass(n.add);n.remove&&j(this).removeClass(n.remove);v&&v.apply(this,arguments)})})}});
j.fn.extend({_show:j.fn.show,_hide:j.fn.hide,__toggle:j.fn.toggle,_addClass:j.fn.addClass,_removeClass:j.fn.removeClass,_toggleClass:j.fn.toggleClass,effect:function(n,i,o,q){return j.effects[n]?j.effects[n].call(this,{method:n,options:i||{},duration:o,callback:q}):null},show:function(){if(!arguments[0]||arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))return this._show.apply(this,arguments);else{var n=arguments[1]||{};n.mode="show";return this.effect.apply(this,[arguments[0],
n,arguments[2]||n.duration,arguments[3]||n.callback])}},hide:function(){if(!arguments[0]||arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))return this._hide.apply(this,arguments);else{var n=arguments[1]||{};n.mode="hide";return this.effect.apply(this,[arguments[0],n,arguments[2]||n.duration,arguments[3]||n.callback])}},toggle:function(){if(!arguments[0]||arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0])||arguments[0].constructor==Function)return this.__toggle.apply(this,
arguments);else{var n=arguments[1]||{};n.mode="toggle";return this.effect.apply(this,[arguments[0],n,arguments[2]||n.duration,arguments[3]||n.callback])}},addClass:function(n,i,o,q){return i?j.effects.animateClass.apply(this,[{add:n},i,o,q]):this._addClass(n)},removeClass:function(n,i,o,q){return i?j.effects.animateClass.apply(this,[{remove:n},i,o,q]):this._removeClass(n)},toggleClass:function(n,i,o,q){return i?j.effects.animateClass.apply(this,[{toggle:n},i,o,q]):this._toggleClass(n)},morph:function(n,
i,o,q,v){return j.effects.animateClass.apply(this,[{add:i,remove:n},o,q,v])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(n){var i=this.css(n),o=[];j.each(["em","px","%","pt"],function(q,v){if(i.indexOf(v)>0)o=[parseFloat(i),v]});return o}});jQuery.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(n,i){jQuery.fx.step[i]=function(o){if(o.state==0||o.start.constructor!=Array||o.end.constructor!=
Array){o.start=K(o.elem,i);o.end=z(o.end)}o.elem.style[i]="rgb("+[Math.max(Math.min(parseInt(o.pos*(o.end[0]-o.start[0])+o.start[0]),255),0),Math.max(Math.min(parseInt(o.pos*(o.end[1]-o.start[1])+o.start[1]),255),0),Math.max(Math.min(parseInt(o.pos*(o.end[2]-o.start[2])+o.start[2]),255),0)].join(",")+")"}});var N={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,
100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,
128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(n,i,o,q,v){return jQuery.easing[jQuery.easing.def](n,i,o,q,v)},easeInQuad:function(n,i,o,q,v){return q*(i/=v)*i+o},easeOutQuad:function(n,i,o,q,v){return-q*(i/=v)*(i-2)+o},easeInOutQuad:function(n,i,o,q,v){if((i/=v/
2)<1)return q/2*i*i+o;return-q/2*(--i*(i-2)-1)+o},easeInCubic:function(n,i,o,q,v){return q*(i/=v)*i*i+o},easeOutCubic:function(n,i,o,q,v){return q*((i=i/v-1)*i*i+1)+o},easeInOutCubic:function(n,i,o,q,v){if((i/=v/2)<1)return q/2*i*i*i+o;return q/2*((i-=2)*i*i+2)+o},easeInQuart:function(n,i,o,q,v){return q*(i/=v)*i*i*i+o},easeOutQuart:function(n,i,o,q,v){return-q*((i=i/v-1)*i*i*i-1)+o},easeInOutQuart:function(n,i,o,q,v){if((i/=v/2)<1)return q/2*i*i*i*i+o;return-q/2*((i-=2)*i*i*i-2)+o},easeInQuint:function(n,
i,o,q,v){return q*(i/=v)*i*i*i*i+o},easeOutQuint:function(n,i,o,q,v){return q*((i=i/v-1)*i*i*i*i+1)+o},easeInOutQuint:function(n,i,o,q,v){if((i/=v/2)<1)return q/2*i*i*i*i*i+o;return q/2*((i-=2)*i*i*i*i+2)+o},easeInSine:function(n,i,o,q,v){return-q*Math.cos(i/v*(Math.PI/2))+q+o},easeOutSine:function(n,i,o,q,v){return q*Math.sin(i/v*(Math.PI/2))+o},easeInOutSine:function(n,i,o,q,v){return-q/2*(Math.cos(Math.PI*i/v)-1)+o},easeInExpo:function(n,i,o,q,v){return i==0?o:q*Math.pow(2,10*(i/v-1))+o},easeOutExpo:function(n,
i,o,q,v){return i==v?o+q:q*(-Math.pow(2,-10*i/v)+1)+o},easeInOutExpo:function(n,i,o,q,v){if(i==0)return o;if(i==v)return o+q;if((i/=v/2)<1)return q/2*Math.pow(2,10*(i-1))+o;return q/2*(-Math.pow(2,-10*--i)+2)+o},easeInCirc:function(n,i,o,q,v){return-q*(Math.sqrt(1-(i/=v)*i)-1)+o},easeOutCirc:function(n,i,o,q,v){return q*Math.sqrt(1-(i=i/v-1)*i)+o},easeInOutCirc:function(n,i,o,q,v){if((i/=v/2)<1)return-q/2*(Math.sqrt(1-i*i)-1)+o;return q/2*(Math.sqrt(1-(i-=2)*i)+1)+o},easeInElastic:function(n,i,o,
q,v){n=1.70158;var x=0,R=q;if(i==0)return o;if((i/=v)==1)return o+q;x||(x=v*0.3);if(R<Math.abs(q)){R=q;n=x/4}else n=x/(2*Math.PI)*Math.asin(q/R);return-(R*Math.pow(2,10*(i-=1))*Math.sin((i*v-n)*2*Math.PI/x))+o},easeOutElastic:function(n,i,o,q,v){n=1.70158;var x=0,R=q;if(i==0)return o;if((i/=v)==1)return o+q;x||(x=v*0.3);if(R<Math.abs(q)){R=q;n=x/4}else n=x/(2*Math.PI)*Math.asin(q/R);return R*Math.pow(2,-10*i)*Math.sin((i*v-n)*2*Math.PI/x)+q+o},easeInOutElastic:function(n,i,o,q,v){n=1.70158;var x=
0,R=q;if(i==0)return o;if((i/=v/2)==2)return o+q;x||(x=v*0.3*1.5);if(R<Math.abs(q)){R=q;n=x/4}else n=x/(2*Math.PI)*Math.asin(q/R);if(i<1)return-0.5*R*Math.pow(2,10*(i-=1))*Math.sin((i*v-n)*2*Math.PI/x)+o;return R*Math.pow(2,-10*(i-=1))*Math.sin((i*v-n)*2*Math.PI/x)*0.5+q+o},easeInBack:function(n,i,o,q,v,x){if(x==undefined)x=1.70158;return q*(i/=v)*i*((x+1)*i-x)+o},easeOutBack:function(n,i,o,q,v,x){if(x==undefined)x=1.70158;return q*((i=i/v-1)*i*((x+1)*i+x)+1)+o},easeInOutBack:function(n,i,o,q,v,x){if(x==
undefined)x=1.70158;if((i/=v/2)<1)return q/2*i*i*(((x*=1.525)+1)*i-x)+o;return q/2*((i-=2)*i*(((x*=1.525)+1)*i+x)+2)+o},easeInBounce:function(n,i,o,q,v){return q-jQuery.easing.easeOutBounce(n,v-i,0,q,v)+o},easeOutBounce:function(n,i,o,q,v){return(i/=v)<1/2.75?q*7.5625*i*i+o:i<2/2.75?q*(7.5625*(i-=1.5/2.75)*i+0.75)+o:i<2.5/2.75?q*(7.5625*(i-=2.25/2.75)*i+0.9375)+o:q*(7.5625*(i-=2.625/2.75)*i+0.984375)+o},easeInOutBounce:function(n,i,o,q,v){if(i<v/2)return jQuery.easing.easeInBounce(n,i*2,0,q,v)*0.5+
o;return jQuery.easing.easeOutBounce(n,i*2-v,0,q,v)*0.5+q*0.5+o}})})(jQuery);
(function(j){function z(N){return typeof N=="object"?N:{top:N,left:N}}var K=j.scrollTo=function(N,n,i){j(window).scrollTo(N,n,i)};K.defaults={axis:"xy",duration:parseFloat(j.fn.jquery)>=1.3?0:1};K.window=function(){return j(window)._scrollable()};j.fn._scrollable=function(){return this.map(function(){var N=this;if(!(!N.nodeName||j.inArray(N.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1))return N;N=(N.contentWindow||N).document||N.ownerDocument||N;return j.browser.safari||N.compatMode==
"BackCompat"?N.body:N.documentElement})};j.fn.scrollTo=function(N,n,i){if(typeof n=="object"){i=n;n=0}if(typeof i=="function")i={onAfter:i};if(N=="max")N=9E9;i=j.extend({},K.defaults,i);n=n||i.speed||i.duration;i.queue=i.queue&&i.axis.length>1;if(i.queue)n/=2;i.offset=z(i.offset);i.over=z(i.over);return this._scrollable().each(function(){function o(T){v.animate(M,n,i.easing,T&&function(){T.call(this,N,i)})}var q=this,v=j(q),x=N,R,M={},d=v.is("html,body");switch(typeof x){case "number":case "string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(x)){x=
z(x);break}x=j(x,this);case "object":if(x.is||x.style)R=(x=j(x)).offset()}j.each(i.axis.split(""),function(T,F){var C=F=="x"?"Left":"Top",y=C.toLowerCase(),w="scroll"+C,B=q[w],H=K.max(q,F);if(R){M[w]=R[y]+(d?0:B-v.offset()[y]);if(i.margin){M[w]-=parseInt(x.css("margin"+C))||0;M[w]-=parseInt(x.css("border"+C+"Width"))||0}M[w]+=i.offset[y]||0;if(i.over[y])M[w]+=x[F=="x"?"width":"height"]()*i.over[y]}else{F=x[y];M[w]=F.slice&&F.slice(-1)=="%"?parseFloat(F)/100*H:F}if(/^\d+$/.test(M[w]))M[w]=M[w]<=0?
0:Math.min(M[w],H);if(!T&&i.queue){B!=M[w]&&o(i.onAfterFirst);delete M[w]}});o(i.onAfter)}).end()};K.max=function(N,n){var i=n=="x"?"Width":"Height";n="scroll"+i;if(!j(N).is("html,body"))return N[n]-j(N)[i.toLowerCase()]();i="client"+i;var o=N.ownerDocument.documentElement;N=N.ownerDocument.body;return Math.max(o[n],N[n])-Math.min(o[i],N[i])}})(jQuery);
var swfobject=function(){function j(){if(!Y){try{var f=l.getElementsByTagName("body")[0].appendChild(y("span"));f.parentNode.removeChild(f)}catch(h){return}Y=true;f=c.length;for(var m=0;m<f;m++)c[m]()}}function z(f){if(Y)f();else c[c.length]=f}function K(f){if(typeof V.addEventListener!=G)V.addEventListener("load",f,false);else if(typeof l.addEventListener!=G)l.addEventListener("load",f,false);else if(typeof V.attachEvent!=G)w(V,"onload",f);else if(typeof V.onload=="function"){var h=V.onload;V.onload=
function(){h();f()}}else V.onload=f}function N(){b?n():i()}function n(){var f=l.getElementsByTagName("body")[0],h=y(U);h.setAttribute("type",L);var m=f.appendChild(h);if(m){var u=0;(function(){if(typeof m.GetVariable!=G){var D=m.GetVariable("$version");if(D){D=D.split(" ")[1].split(",");X.pv=[parseInt(D[0],10),parseInt(D[1],10),parseInt(D[2],10)]}}else if(u<10){u++;setTimeout(arguments.callee,10);return}f.removeChild(h);m=null;i()})()}else i()}function i(){var f=e.length;if(f>0)for(var h=0;h<f;h++){var m=
e[h].id,u=e[h].callbackFn,D={success:false,id:m};if(X.pv[0]>0){var I=C(m);if(I)if(B(e[h].swfVersion)&&!(X.wk&&X.wk<312)){E(m,true);if(u){D.success=true;D.ref=o(m);u(D)}}else if(e[h].expressInstall&&q()){D={};D.data=e[h].expressInstall;D.width=I.getAttribute("width")||"0";D.height=I.getAttribute("height")||"0";if(I.getAttribute("class"))D.styleclass=I.getAttribute("class");if(I.getAttribute("align"))D.align=I.getAttribute("align");var O={};I=I.getElementsByTagName("param");for(var Z=I.length,S=0;S<
Z;S++)if(I[S].getAttribute("name").toLowerCase()!="movie")O[I[S].getAttribute("name")]=I[S].getAttribute("value");v(D,O,m,u)}else{x(I);u&&u(D)}}else{E(m,true);if(u){if((m=o(m))&&typeof m.SetVariable!=G){D.success=true;D.ref=m}u(D)}}}}function o(f){var h=null;if((f=C(f))&&f.nodeName=="OBJECT")if(typeof f.SetVariable!=G)h=f;else if(f=f.getElementsByTagName(U)[0])h=f;return h}function q(){return!ca&&B("6.0.65")&&(X.win||X.mac)&&!(X.wk&&X.wk<312)}function v(f,h,m,u){ca=true;A=u||null;W={success:false,
id:m};var D=C(m);if(D){if(D.nodeName=="OBJECT"){r=R(D);t=null}else{r=D;t=m}f.id=Q;if(typeof f.width==G||!/%$/.test(f.width)&&parseInt(f.width,10)<310)f.width="310";if(typeof f.height==G||!/%$/.test(f.height)&&parseInt(f.height,10)<137)f.height="137";l.title=l.title.slice(0,47)+" - Flash Player Installation";u=X.ie&&X.win?"ActiveX":"PlugIn";u="MMredirectURL="+V.location.toString().replace(/&/g,"%26")+"&MMplayerType="+u+"&MMdoctitle="+l.title;if(typeof h.flashvars!=G)h.flashvars+="&"+u;else h.flashvars=
u;if(X.ie&&X.win&&D.readyState!=4){u=y("div");m+="SWFObjectNew";u.setAttribute("id",m);D.parentNode.insertBefore(u,D);D.style.display="none";(function(){D.readyState==4?D.parentNode.removeChild(D):setTimeout(arguments.callee,10)})()}M(f,h,m)}}function x(f){if(X.ie&&X.win&&f.readyState!=4){var h=y("div");f.parentNode.insertBefore(h,f);h.parentNode.replaceChild(R(f),h);f.style.display="none";(function(){f.readyState==4?f.parentNode.removeChild(f):setTimeout(arguments.callee,10)})()}else f.parentNode.replaceChild(R(f),
f)}function R(f){var h=y("div");if(X.win&&X.ie)h.innerHTML=f.innerHTML;else if(f=f.getElementsByTagName(U)[0])if(f=f.childNodes)for(var m=f.length,u=0;u<m;u++)!(f[u].nodeType==1&&f[u].nodeName=="PARAM")&&f[u].nodeType!=8&&h.appendChild(f[u].cloneNode(true));return h}function M(f,h,m){var u,D=C(m);if(X.wk&&X.wk<312)return u;if(D){if(typeof f.id==G)f.id=m;if(X.ie&&X.win){var I="";for(var O in f)if(f[O]!=Object.prototype[O])if(O.toLowerCase()=="data")h.movie=f[O];else if(O.toLowerCase()=="styleclass")I+=
' class="'+f[O]+'"';else if(O.toLowerCase()!="classid")I+=" "+O+'="'+f[O]+'"';O="";for(var Z in h)if(h[Z]!=Object.prototype[Z])O+='<param name="'+Z+'" value="'+h[Z]+'" />';D.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+I+">"+O+"</object>";g[g.length]=f.id;u=C(f.id)}else{Z=y(U);Z.setAttribute("type",L);for(I in f)if(f[I]!=Object.prototype[I])if(I.toLowerCase()=="styleclass")Z.setAttribute("class",f[I]);else I.toLowerCase()!="classid"&&Z.setAttribute(I,f[I]);for(var S in h)h[S]!=
Object.prototype[S]&&S.toLowerCase()!="movie"&&d(Z,S,h[S]);D.parentNode.replaceChild(Z,D);u=Z}}return u}function d(f,h,m){var u=y("param");u.setAttribute("name",h);u.setAttribute("value",m);f.appendChild(u)}function T(f){var h=C(f);if(h&&h.nodeName=="OBJECT")if(X.ie&&X.win){h.style.display="none";(function(){h.readyState==4?F(f):setTimeout(arguments.callee,10)})()}else h.parentNode.removeChild(h)}function F(f){if(f=C(f)){for(var h in f)if(typeof f[h]=="function")f[h]=null;f.parentNode.removeChild(f)}}
function C(f){var h=null;try{h=l.getElementById(f)}catch(m){}return h}function y(f){return l.createElement(f)}function w(f,h,m){f.attachEvent(h,m);k[k.length]=[f,h,m]}function B(f){var h=X.pv;f=f.split(".");f[0]=parseInt(f[0],10);f[1]=parseInt(f[1],10)||0;f[2]=parseInt(f[2],10)||0;return h[0]>f[0]||h[0]==f[0]&&h[1]>f[1]||h[0]==f[0]&&h[1]==f[1]&&h[2]>=f[2]?true:false}function H(f,h,m,u){if(!(X.ie&&X.mac)){var D=l.getElementsByTagName("head")[0];if(D){m=m&&typeof m=="string"?m:"screen";if(u)ha=da=null;
if(!da||ha!=m){u=y("style");u.setAttribute("type","text/css");u.setAttribute("media",m);da=D.appendChild(u);if(X.ie&&X.win&&typeof l.styleSheets!=G&&l.styleSheets.length>0)da=l.styleSheets[l.styleSheets.length-1];ha=m}if(X.ie&&X.win)da&&typeof da.addRule==U&&da.addRule(f,h);else da&&typeof l.createTextNode!=G&&da.appendChild(l.createTextNode(f+" {"+h+"}"))}}}function E(f,h){if(aa){h=h?"visible":"hidden";if(Y&&C(f))C(f).style.visibility=h;else H("#"+f,"visibility:"+h)}}function J(f){return/[\\\"<>\.;]/.exec(f)!=
null&&typeof encodeURIComponent!=G?encodeURIComponent(f):f}var G="undefined",U="object",L="application/x-shockwave-flash",Q="SWFObjectExprInst",V=window,l=document,s=navigator,b=false,c=[N],e=[],g=[],k=[],r,t,A,W,Y=false,ca=false,da,ha,aa=true,X=function(){var f=typeof l.getElementById!=G&&typeof l.getElementsByTagName!=G&&typeof l.createElement!=G,h=s.userAgent.toLowerCase(),m=s.platform.toLowerCase(),u=m?/win/.test(m):/win/.test(h);m=m?/mac/.test(m):/mac/.test(h);h=/webkit/.test(h)?parseFloat(h.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,
"$1")):false;var D=!+"\u000b1",I=[0,0,0],O=null;if(typeof s.plugins!=G&&typeof s.plugins["Shockwave Flash"]==U){if((O=s.plugins["Shockwave Flash"].description)&&!(typeof s.mimeTypes!=G&&s.mimeTypes[L]&&!s.mimeTypes[L].enabledPlugin)){b=true;D=false;O=O.replace(/^.*\s+(\S+\s+\S+$)/,"$1");I[0]=parseInt(O.replace(/^(.*)\..*$/,"$1"),10);I[1]=parseInt(O.replace(/^.*\.(.*)\s.*$/,"$1"),10);I[2]=/[a-zA-Z]/.test(O)?parseInt(O.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else if(typeof V.ActiveXObject!=G)try{var Z=
new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(Z)if(O=Z.GetVariable("$version")){D=true;O=O.split(" ")[1].split(",");I=[parseInt(O[0],10),parseInt(O[1],10),parseInt(O[2],10)]}}catch(S){}return{w3:f,pv:I,wk:h,ie:D,win:u,mac:m}}();(function(){if(X.w3){if(typeof l.readyState!=G&&l.readyState=="complete"||typeof l.readyState==G&&(l.getElementsByTagName("body")[0]||l.body))j();if(!Y){typeof l.addEventListener!=G&&l.addEventListener("DOMContentLoaded",j,false);if(X.ie&&X.win){l.attachEvent("onreadystatechange",
function(){if(l.readyState=="complete"){l.detachEvent("onreadystatechange",arguments.callee);j()}});V==top&&function(){if(!Y){try{l.documentElement.doScroll("left")}catch(f){setTimeout(arguments.callee,0);return}j()}}()}X.wk&&function(){Y||(/loaded|complete/.test(l.readyState)?j():setTimeout(arguments.callee,0))}();K(j)}}})();(function(){X.ie&&X.win&&window.attachEvent("onunload",function(){for(var f=k.length,h=0;h<f;h++)k[h][0].detachEvent(k[h][1],k[h][2]);f=g.length;for(h=0;h<f;h++)T(g[h]);for(var m in X)X[m]=
null;X=null;for(var u in swfobject)swfobject[u]=null;swfobject=null})})();return{registerObject:function(f,h,m,u){if(X.w3&&f&&h){var D={};D.id=f;D.swfVersion=h;D.expressInstall=m;D.callbackFn=u;e[e.length]=D;E(f,false)}else u&&u({success:false,id:f})},getObjectById:function(f){if(X.w3)return o(f)},embedSWF:function(f,h,m,u,D,I,O,Z,S,ea){var fa={success:false,id:h};if(X.w3&&!(X.wk&&X.wk<312)&&f&&h&&m&&u&&D){E(h,false);z(function(){m+="";u+="";var p={};if(S&&typeof S===U)for(var P in S)p[P]=S[P];p.data=
f;p.width=m;p.height=u;P={};if(Z&&typeof Z===U)for(var ba in Z)P[ba]=Z[ba];if(O&&typeof O===U)for(var ga in O)if(typeof P.flashvars!=G)P.flashvars+="&"+ga+"="+O[ga];else P.flashvars=ga+"="+O[ga];if(B(D)){ba=M(p,P,h);p.id==h&&E(h,true);fa.success=true;fa.ref=ba}else if(I&&q()){p.data=I;v(p,P,h,ea);return}else E(h,true);ea&&ea(fa)})}else ea&&ea(fa)},switchOffAutoHideShow:function(){aa=false},ua:X,getFlashPlayerVersion:function(){return{major:X.pv[0],minor:X.pv[1],release:X.pv[2]}},hasFlashPlayerVersion:B,
createSWF:function(f,h,m){if(X.w3)return M(f,h,m)},showExpressInstall:function(f,h,m,u){X.w3&&q()&&v(f,h,m,u)},removeSWF:function(f){X.w3&&T(f)},createCSS:function(f,h,m,u){X.w3&&H(f,h,m,u)},addDomLoadEvent:z,addLoadEvent:K,getQueryParamValue:function(f){var h=l.location.search||l.location.hash;if(h){if(/\?/.test(h))h=h.split("?")[1];if(f==null)return J(h);h=h.split("&");for(var m=0;m<h.length;m++)if(h[m].substring(0,h[m].indexOf("="))==f)return J(h[m].substring(h[m].indexOf("=")+1))}return""},expressInstallCallback:function(){if(ca){var f=
C(Q);if(f&&r){f.parentNode.replaceChild(r,f);if(t){E(t,true);if(X.ie&&X.win)r.style.display="block"}A&&A(W)}ca=false}}}}();if(typeof asual=="undefined")var asual={};if(typeof asual.util=="undefined")asual.util={};
asual.util.Browser=new (function(){var j=navigator.userAgent.toLowerCase(),z=/webkit/.test(j),K=/opera/.test(j),N=/msie/.test(j)&&!/opera/.test(j),n=/mozilla/.test(j)&&!/(compatible|webkit)/.test(j),i=parseFloat(N?j.substr(j.indexOf("msie")+4):(j.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1]);this.toString=function(){return"[class Browser]"};this.getVersion=function(){return i};this.isMSIE=function(){return N};this.isSafari=function(){return z};this.isOpera=function(){return K};this.isMozilla=
function(){return n}});
asual.util.Events=new (function(){var j=window,z=document,K=[],N=asual.util,n=N.Browser,i=n.isMSIE(),o=n.isSafari();this.toString=function(){return"[class Events]"};this.addListener=function(v,x,R){K.push({o:v,t:x,l:R});if(!(x=="DOMContentLoaded"&&(i||o)))if(v.addEventListener)v.addEventListener(x,R,false);else v.attachEvent&&v.attachEvent("on"+x,R)};this.removeListener=function(v,x,R){for(var M=0,d;d=K[M];M++)if(d.o==v&&d.t==x&&d.l==R){K.splice(M,1);break}if(!(x=="DOMContentLoaded"&&(i||o)))if(v.removeEventListener)v.removeEventListener(x,
R,false);else v.detachEvent&&v.detachEvent("on"+x,R)};var q=function(){for(var v=0,x;x=K[v];v++)x.t!="DOMContentLoaded"&&N.Events.removeListener(x.o,x.t,x.l)};n=function(){if(z.readyState=="interactive"){function v(){z.detachEvent("onstop",v);q()}z.attachEvent("onstop",v);j.setTimeout(function(){z.detachEvent("onstop",v)},0)}};if(i||o)(function(){try{if(i&&z.body||!/loaded|complete/.test(z.readyState))z.documentElement.doScroll("left")}catch(v){return setTimeout(arguments.callee,0)}for(var x=0,R;R=
K[x];x++)R.t=="DOMContentLoaded"&&R.l.call(null)})();i&&j.attachEvent("onbeforeunload",n);this.addListener(j,"unload",q)});asual.util.Functions=new (function(){this.toString=function(){return"[class Functions]"};this.bind=function(j,z){for(var K=2,N,n=[];N=arguments[K];K++)n.push(N);return function(){return j.apply(z,n)}}});
var SWFAddressEvent=function(j){this.toString=function(){return"[object SWFAddressEvent]"};this.type=j;this.target=[SWFAddress][0];this.value=SWFAddress.getValue();this.path=SWFAddress.getPath();this.pathNames=SWFAddress.getPathNames();this.parameters={};j=SWFAddress.getParameterNames();for(var z=0,K=j.length;z<K;z++)this.parameters[j[z]]=SWFAddress.getParameter(j[z]);this.parameterNames=j};SWFAddressEvent.INIT="init";SWFAddressEvent.CHANGE="change";SWFAddressEvent.INTERNAL_CHANGE="internalChange";
SWFAddressEvent.EXTERNAL_CHANGE="externalChange";
var SWFAddress=new (function(){var j=function(){var p=k.href.indexOf("#");return p!=-1?W(A(k.href.substr(p+1))):""},z=function(p,P){if(ea.strict)p=P?p.substr(0,1)!="/"?"/"+p:p:p==""?"/":p;return p},K=function(p,P){return Q&&k.protocol=="file:"?P?S.replace(/\?/,"%3F"):S.replace(/%253F/,"?"):p},N=function(p){if(p.childNodes)for(var P=0,ba=p.childNodes.length,ga;P<ba;P++){if(p.childNodes[P].src)da=String(p.childNodes[P].src);if(ga=N(p.childNodes[P]))return ga}},n=function(){if(e.title!=ha&&e.title.indexOf("#")!=
-1)e.title=ha},i=function(){if(!X){var p=j(),P=S!=p;if(s&&L<523){if(aa!=g.length){aa=g.length;if(typeof D[aa-1]!=B)S=D[aa-1];M.call(this,false)}}else if(Q&&P)L<7?k.reload():this.setValue(p);else if(P){S=p;M.call(this,false)}Q&&n.call(this)}},o=function(){if(O.length>0){window.open(O[0],O[1],eval(O[2]));typeof O[3]!=B&&eval(O[3])}O=[]},q=function(){for(var p=0,P,ba,ga=SWFAddress.getValue();P=I[p];p++)if(ba=document.getElementById(P))if(ba.parentNode&&typeof ba.parentNode.so!=B)ba.parentNode.so.call("setSWFAddressValue",
ga);else{if(!(ba&&typeof ba.setSWFAddressValue!=B)){P=ba.getElementsByTagName("object");ba=ba.getElementsByTagName("embed");ba=P[0]&&typeof P[0].setSWFAddressValue!=B?P[0]:ba[0]&&typeof ba[0].setSWFAddressValue!=B?ba[0]:null}ba&&ba.setSWFAddressValue(ga)}else if(ba=document[P])typeof ba.setSWFAddressValue!=B&&ba.setSWFAddressValue(ga)},v=function(p){this.dispatchEvent(new SWFAddressEvent(p));p=p.substr(0,1).toUpperCase()+p.substr(1);typeof this["on"+p]==w&&this["on"+p]()},x=function(){E.Browser.isSafari()&&
e.body.addEventListener("click",o);v.call(this,"init")},R=function(){q();v.call(this,"change")},M=function(p){R.call(this);p?v.call(this,"internalChange"):v.call(this,"externalChange");t(U.bind(d,this),10)},d=function(){var p=(k.pathname+(/\/$/.test(k.pathname)?"":"/")+this.getValue()).replace(/\/\//,"/").replace(/^\/$/,""),P=c[ea.tracker];if(typeof P==w)P(p);else if(typeof c.pageTracker!=B&&typeof c.pageTracker._trackPageview==w)c.pageTracker._trackPageview(p);else typeof c.urchinTracker==w&&c.urchinTracker(p)},
T=function(){var p=Y.contentWindow.document;p.open();p.write("<html><head><title>"+e.title+"</title><script>var "+y+' = "'+j()+'";<\/script></head></html>');p.close()},F=function(){var p=Y.contentWindow;S=typeof p[y]!=B?p[y]:"";if(S!=j()){M.call(SWFAddress,false);k.hash=K(S,H)}},C=function(){if(!f){f=H;if(Q&&L<8){var p=e.getElementsByTagName("frameset")[0];Y=e.createElement((p?"":"i")+"frame");if(p){p.insertAdjacentElement("beforeEnd",Y);p[p.cols?"cols":"rows"]+=",0";Y.src="javascript:false";Y.noResize=
true;Y.frameBorder=Y.frameSpacing=0}else{Y.src="javascript:false";Y.style.display="none";e.body.insertAdjacentElement("afterBegin",Y)}t(function(){G.addListener(Y,"load",F);typeof Y.contentWindow[y]==B&&T()},50)}else if(s){if(L<418){e.body.innerHTML+='<form id="'+y+'" style="position:absolute;top:-9999px;" method="get"></form>';ca=e.getElementById(y)}if(typeof k[y]==B)k[y]={};if(typeof k[y][k.pathname]!=B)D=k[y][k.pathname].split(",")}t(U.bind(function(){x.call(this);R.call(this);d.call(this)},this),
1);if(Q&&L>=8){e.body.onhashchange=U.bind(i,this);r(U.bind(n,this),50)}else r(U.bind(i,this),50)}},y="swfaddress",w="function",B="undefined",H=true,E=asual.util,J=E.Browser,G=E.Events,U=E.Functions,L=J.getVersion(),Q=J.isMSIE(),V=J.isMozilla(),l=J.isOpera(),s=J.isSafari(),b=false,c=function(){return top}(),e=c.document,g=c.history,k=c.location,r=setInterval,t=setTimeout,A=decodeURI,W=encodeURI,Y,ca,da,ha=e.title,aa=g.length,X=false,f=false,h=H,m=H,u=this,D=[],I=[],O=[],Z={},S=j(),ea={history:H,strict:H};
if(Q&&e.documentMode&&e.documentMode!=L)L=e.documentMode!=8?7:8;if(b=V&&L>=1||Q&&L>=6||l&&L>=9.5||s&&L>=312){if(l)history.navigationMode="compatible";for(J=1;J<aa;J++)D.push("");D.push(j());if(Q&&k.hash!=j())k.hash="#"+K(j(),H);N(document);J=da?da.indexOf("?"):-1;if(J!=-1){var fa;l=da.substr(J+1).split("&");for(J=0;fa=l[J];J++){fa=fa.split("=");if(/^(history|strict)$/.test(fa[0]))ea[fa[0]]=isNaN(fa[1])?/^(true|yes)$/i.test(fa[1]):parseInt(fa[1])!=0;if(/^tracker$/.test(fa[0]))ea[fa[0]]=fa[1]}}Q&&n.call(this);
window==c&&G.addListener(document,"DOMContentLoaded",U.bind(C,this));G.addListener(c,"load",U.bind(C,this))}else if(!b&&k.href.indexOf("#")!=-1||s&&L<418&&k.href.indexOf("#")!=-1&&k.search!=""){e.open();e.write('<html><head><meta http-equiv="refresh" content="0;url='+k.href.substr(0,k.href.indexOf("#"))+'" /></head></html>');e.close()}else d();this.toString=function(){return"[class SWFAddress]"};this.back=function(){g.back()};this.forward=function(){g.forward()};this.up=function(){var p=this.getPath();
this.setValue(p.substr(0,p.lastIndexOf("/",p.length-2)+(p.substr(p.length-1)=="/"?1:0)))};this.go=function(p){g.go(p)};this.href=function(p,P){P=typeof P!=B?P:"_self";if(P=="_self")self.location.href=p;else if(P=="_top")k.href=p;else if(P=="_blank")window.open(p);else c.frames[P].location.href=p};this.popup=function(p,P,ba,ga){try{window.open(p,P,eval(ba));typeof ga!=B&&eval(ga)}catch(ia){}O=arguments};this.getIds=function(){return I};this.getId=function(){return I[0]};this.setId=function(p){I[0]=
p};this.addId=function(p){this.removeId(p);I.push(p)};this.removeId=function(p){for(var P=0;P<I.length;P++)if(p==I[P]){I.splice(P,1);break}};this.addEventListener=function(p,P){if(typeof Z[p]==B)Z[p]=[];Z[p].push(P)};this.removeEventListener=function(p,P){if(typeof Z[p]!=B){for(var ba=0,ga;ga=Z[p][ba];ba++)if(ga==P)break;Z[p].splice(ba,1)}};this.dispatchEvent=function(p){if(this.hasEventListener(p.type)){p.target=this;for(var P=0,ba;ba=Z[p.type][P];P++)ba(p);return H}return false};this.hasEventListener=
function(p){return typeof Z[p]!=B&&Z[p].length>0};this.getBaseURL=function(){var p=k.href;if(p.indexOf("#")!=-1)p=p.substr(0,p.indexOf("#"));if(p.substr(p.length-1)=="/")p=p.substr(0,p.length-1);return p};this.getStrict=function(){return ea.strict};this.setStrict=function(p){ea.strict=p};this.getHistory=function(){return ea.history};this.setHistory=function(p){ea.history=p};this.getTracker=function(){return ea.tracker};this.setTracker=function(p){ea.tracker=p};this.getTitle=function(){return e.title};
this.setTitle=function(p){if(!b)return null;if(typeof p!=B){if(p=="null")p="";p=A(p);t(function(){ha=e.title=p;if(m&&Y&&Y.contentWindow&&Y.contentWindow.document){Y.contentWindow.document.title=p;m=false}if(!h&&V)k.replace(k.href.indexOf("#")!=-1?k.href:k.href+"#");h=false},10)}};this.getStatus=function(){return c.status};this.setStatus=function(p){if(!b)return null;if(typeof p!=B){if(p=="null")p="";p=A(p);if(!s){p=z(p!="null"?p:"",H);if(p=="/")p="";if(!/http(s)?:\/\//.test(p)){var P=k.href.indexOf("#");
p=(P==-1?k.href:k.href.substr(0,P))+"#"+p}c.status=p}}};this.resetStatus=function(){c.status=""};this.getValue=function(){if(!b)return null;return A(z(K(S,false),false))};this.setValue=function(p){if(!b)return null;if(typeof p!=B){if(p=="null")p="";p=W(A(z(p,H)));if(p=="/")p="";if(S!=p){h=H;S=p;X=H;M.call(SWFAddress,true);D[g.length]=S;if(s)if(ea.history){k[y][k.pathname]=D.toString();aa=g.length+1;if(L<418){if(k.search==""){ca.action="#"+S;ca.submit()}}else if(L<523||S==""){p=e.createEvent("MouseEvents");
p.initEvent("click",H,H);var P=e.createElement("a");P.href="#"+S;P.dispatchEvent(p)}else k.hash="#"+S}else k.replace("#"+S);else if(S!=j())if(ea.history)k.hash="#"+A(K(S,H));else k.replace("#"+A(S));Q&&L<8&&ea.history&&t(T,50);if(s)t(function(){X=false},1);else X=false}}};this.getPath=function(){var p=this.getValue();return p.indexOf("?")!=-1?p.split("?")[0]:p.indexOf("#")!=-1?p.split("#")[0]:p};this.getPathNames=function(){var p=this.getPath(),P=p.split("/");if(p.substr(0,1)=="/"||p.length==0)P.splice(0,
1);p.substr(p.length-1,1)=="/"&&P.splice(P.length-1,1);return P};this.getQueryString=function(){var p=this.getValue(),P=p.indexOf("?");if(P!=-1&&P<p.length)return p.substr(P+1)};this.getParameter=function(p){var P=this.getValue(),ba=P.indexOf("?");if(ba!=-1){P=P.substr(ba+1);ba=P.split("&");for(var ga=ba.length,ia=[];ga--;){P=ba[ga].split("=");P[0]==p&&ia.push(P[1])}if(ia.length!=0)return ia.length!=1?ia:ia[0]}};this.getParameterNames=function(){var p=this.getValue(),P=p.indexOf("?"),ba=[];if(P!=
-1){p=p.substr(P+1);if(p!=""&&p.indexOf("=")!=-1){p=p.split("&");for(P=0;P<p.length;){ba.push(p[P].split("=")[0]);P++}}}return ba};this.onExternalChange=this.onInternalChange=this.onChange=this.onInit=null;(function(){var p;if(typeof FlashObject!=B)SWFObject=FlashObject;if(typeof SWFObject!=B&&SWFObject.prototype&&SWFObject.prototype.write){var P=SWFObject.prototype.write;SWFObject.prototype.write=function(){p=arguments;if(this.getAttribute("version").major<8){this.addVariable("$swfaddress",SWFAddress.getValue());
(typeof p[0]=="string"?document.getElementById(p[0]):p[0]).so=this}var ja;if(ja=P.apply(this,p))u.addId(this.getAttribute("id"));return ja}}if(typeof swfobject!=B){var ba=swfobject.registerObject;swfobject.registerObject=function(){p=arguments;ba.apply(this,p);u.addId(p[0])};var ga=swfobject.createSWF;swfobject.createSWF=function(){p=arguments;var ja=ga.apply(this,p);ja&&u.addId(p[0].id);return ja};var ia=swfobject.embedSWF;swfobject.embedSWF=function(){p=arguments;if(typeof p[8]==B)p[8]={};if(typeof p[8].id==
B)p[8].id=p[1];ia.apply(this,p);u.addId(p[8].id)}}if(typeof UFO!=B){var ka=UFO.create;UFO.create=function(){p=arguments;ka.apply(this,p);u.addId(p[0].id)}}if(typeof AC_FL_RunContent!=B){var la=AC_FL_RunContent;AC_FL_RunContent=function(){p=arguments;la.apply(this,p);for(var ja=0,ma=p.length;ja<ma;ja++)p[ja]=="id"&&u.addId(p[ja+1])}}})()}),SWFUpload;if(SWFUpload==undefined)SWFUpload=function(j){this.initSWFUpload(j)};
SWFUpload.prototype.initSWFUpload=function(j){try{this.customSettings={};this.settings=j;this.eventQueue=[];this.movieName="SWFUpload_"+SWFUpload.movieCount++;this.movieElement=null;SWFUpload.instances[this.movieName]=this;this.initSettings();this.loadFlash();this.displayDebugInfo()}catch(z){delete SWFUpload.instances[this.movieName];throw z;}};SWFUpload.instances={};SWFUpload.movieCount=0;SWFUpload.version="2.2.0 2009-03-25";
SWFUpload.QUEUE_ERROR={QUEUE_LIMIT_EXCEEDED:-100,FILE_EXCEEDS_SIZE_LIMIT:-110,ZERO_BYTE_FILE:-120,INVALID_FILETYPE:-130};SWFUpload.UPLOAD_ERROR={HTTP_ERROR:-200,MISSING_UPLOAD_URL:-210,IO_ERROR:-220,SECURITY_ERROR:-230,UPLOAD_LIMIT_EXCEEDED:-240,UPLOAD_FAILED:-250,SPECIFIED_FILE_ID_NOT_FOUND:-260,FILE_VALIDATION_FAILED:-270,FILE_CANCELLED:-280,UPLOAD_STOPPED:-290};SWFUpload.FILE_STATUS={QUEUED:-1,IN_PROGRESS:-2,ERROR:-3,COMPLETE:-4,CANCELLED:-5};
SWFUpload.BUTTON_ACTION={SELECT_FILE:-100,SELECT_FILES:-110,START_UPLOAD:-120};SWFUpload.CURSOR={ARROW:-1,HAND:-2};SWFUpload.WINDOW_MODE={WINDOW:"window",TRANSPARENT:"transparent",OPAQUE:"opaque"};SWFUpload.completeURL=function(j){if(typeof j!=="string"||j.match(/^https?:\/\//i)||j.match(/^\//))return j;var z=window.location.pathname.lastIndexOf("/");path=z<=0?"/":window.location.pathname.substr(0,z)+"/";return path+j};a=SWFUpload.prototype;
a.initSettings=function(){this.ensureDefault=function(j,z){this.settings[j]=this.settings[j]==undefined?z:this.settings[j]};this.ensureDefault("upload_url","");this.ensureDefault("preserve_relative_urls",false);this.ensureDefault("file_post_name","Filedata");this.ensureDefault("post_params",{});this.ensureDefault("use_query_string",false);this.ensureDefault("requeue_on_error",false);this.ensureDefault("http_success",[]);this.ensureDefault("assume_success_timeout",0);this.ensureDefault("file_types",
"*.*");this.ensureDefault("file_types_description","All Files");this.ensureDefault("file_size_limit",0);this.ensureDefault("file_upload_limit",0);this.ensureDefault("file_queue_limit",0);this.ensureDefault("flash_url","swfupload.swf");this.ensureDefault("prevent_swf_caching",true);this.ensureDefault("button_image_url","");this.ensureDefault("button_width",1);this.ensureDefault("button_height",1);this.ensureDefault("button_text","");this.ensureDefault("button_text_style","color: #000000; font-size: 16pt;");
this.ensureDefault("button_text_top_padding",0);this.ensureDefault("button_text_left_padding",0);this.ensureDefault("button_action",SWFUpload.BUTTON_ACTION.SELECT_FILES);this.ensureDefault("button_disabled",false);this.ensureDefault("button_placeholder_id","");this.ensureDefault("button_placeholder",null);this.ensureDefault("button_cursor",SWFUpload.CURSOR.ARROW);this.ensureDefault("button_window_mode",SWFUpload.WINDOW_MODE.WINDOW);this.ensureDefault("debug",false);this.settings.debug_enabled=this.settings.debug;
this.settings.return_upload_start_handler=this.returnUploadStart;this.ensureDefault("swfupload_loaded_handler",null);this.ensureDefault("file_dialog_start_handler",null);this.ensureDefault("file_queued_handler",null);this.ensureDefault("file_queue_error_handler",null);this.ensureDefault("file_dialog_complete_handler",null);this.ensureDefault("upload_start_handler",null);this.ensureDefault("upload_progress_handler",null);this.ensureDefault("upload_error_handler",null);this.ensureDefault("upload_success_handler",
null);this.ensureDefault("upload_complete_handler",null);this.ensureDefault("debug_handler",this.debugMessage);this.ensureDefault("custom_settings",{});this.customSettings=this.settings.custom_settings;if(this.settings.prevent_swf_caching)this.settings.flash_url=this.settings.flash_url+(this.settings.flash_url.indexOf("?")<0?"?":"&")+"preventswfcaching="+(new Date).getTime();if(!this.settings.preserve_relative_urls){this.settings.upload_url=SWFUpload.completeURL(this.settings.upload_url);this.settings.button_image_url=
SWFUpload.completeURL(this.settings.button_image_url)}delete this.ensureDefault};
a.loadFlash=function(){var j,z;if(document.getElementById(this.movieName)!==null)throw"ID "+this.movieName+" is already in use. The Flash Object could not be added";j=document.getElementById(this.settings.button_placeholder_id)||this.settings.button_placeholder;if(j==undefined)throw"Could not find the placeholder element: "+this.settings.button_placeholder_id;z=document.createElement("div");z.innerHTML=this.getFlashHTML();j.parentNode.replaceChild(z.firstChild,j);if(window[this.movieName]==undefined)window[this.movieName]=
this.getMovieElement()};
a.getFlashHTML=function(){return['<object id="',this.movieName,'" type="application/x-shockwave-flash" data="',this.settings.flash_url,'" width="',this.settings.button_width,'" height="',this.settings.button_height,'" class="swfupload"><param name="wmode" value="',this.settings.button_window_mode,'" /><param name="movie" value="',this.settings.flash_url,'" /><param name="quality" value="high" /><param name="menu" value="false" /><param name="allowScriptAccess" value="always" />','<param name="flashvars" value="'+
this.getFlashVars()+'" />',"</object>"].join("")};
a.getFlashVars=function(){var j=this.buildParamString(),z=this.settings.http_success.join(",");return["movieName=",encodeURIComponent(this.movieName),"&amp;uploadURL=",encodeURIComponent(this.settings.upload_url),"&amp;useQueryString=",encodeURIComponent(this.settings.use_query_string),"&amp;requeueOnError=",encodeURIComponent(this.settings.requeue_on_error),"&amp;httpSuccess=",encodeURIComponent(z),"&amp;assumeSuccessTimeout=",encodeURIComponent(this.settings.assume_success_timeout),"&amp;params=",
encodeURIComponent(j),"&amp;filePostName=",encodeURIComponent(this.settings.file_post_name),"&amp;fileTypes=",encodeURIComponent(this.settings.file_types),"&amp;fileTypesDescription=",encodeURIComponent(this.settings.file_types_description),"&amp;fileSizeLimit=",encodeURIComponent(this.settings.file_size_limit),"&amp;fileUploadLimit=",encodeURIComponent(this.settings.file_upload_limit),"&amp;fileQueueLimit=",encodeURIComponent(this.settings.file_queue_limit),"&amp;debugEnabled=",encodeURIComponent(this.settings.debug_enabled),
"&amp;buttonImageURL=",encodeURIComponent(this.settings.button_image_url),"&amp;buttonWidth=",encodeURIComponent(this.settings.button_width),"&amp;buttonHeight=",encodeURIComponent(this.settings.button_height),"&amp;buttonText=",encodeURIComponent(this.settings.button_text),"&amp;buttonTextTopPadding=",encodeURIComponent(this.settings.button_text_top_padding),"&amp;buttonTextLeftPadding=",encodeURIComponent(this.settings.button_text_left_padding),"&amp;buttonTextStyle=",encodeURIComponent(this.settings.button_text_style),
"&amp;buttonAction=",encodeURIComponent(this.settings.button_action),"&amp;buttonDisabled=",encodeURIComponent(this.settings.button_disabled),"&amp;buttonCursor=",encodeURIComponent(this.settings.button_cursor)].join("")};a.getMovieElement=function(){if(this.movieElement==undefined)this.movieElement=document.getElementById(this.movieName);if(this.movieElement===null)throw"Could not find Flash element";return this.movieElement};
a.buildParamString=function(){var j=this.settings.post_params,z=[];if(typeof j==="object")for(var K in j)j.hasOwnProperty(K)&&z.push(encodeURIComponent(K.toString())+"="+encodeURIComponent(j[K].toString()));return z.join("&amp;")};
a.destroy=function(){try{this.cancelUpload(null,false);var j=null;if((j=this.getMovieElement())&&typeof j.CallFunction==="unknown"){for(var z in j)try{if(typeof j[z]==="function")j[z]=null}catch(K){}try{j.parentNode.removeChild(j)}catch(N){}}window[this.movieName]=null;SWFUpload.instances[this.movieName]=null;delete SWFUpload.instances[this.movieName];this.movieName=this.eventQueue=this.customSettings=this.settings=this.movieElement=null;return true}catch(n){return false}};
a.displayDebugInfo=function(){this.debug(["---SWFUpload Instance Info---\nVersion: ",SWFUpload.version,"\nMovie Name: ",this.movieName,"\nSettings:\n\tupload_url:               ",this.settings.upload_url,"\n\tflash_url:                ",this.settings.flash_url,"\n\tuse_query_string:         ",this.settings.use_query_string.toString(),"\n\trequeue_on_error:         ",this.settings.requeue_on_error.toString(),"\n\thttp_success:             ",this.settings.http_success.join(", "),"\n\tassume_success_timeout:   ",
this.settings.assume_success_timeout,"\n\tfile_post_name:           ",this.settings.file_post_name,"\n\tpost_params:              ",this.settings.post_params.toString(),"\n\tfile_types:               ",this.settings.file_types,"\n\tfile_types_description:   ",this.settings.file_types_description,"\n\tfile_size_limit:          ",this.settings.file_size_limit,"\n\tfile_upload_limit:        ",this.settings.file_upload_limit,"\n\tfile_queue_limit:         ",this.settings.file_queue_limit,"\n\tdebug:                    ",
this.settings.debug.toString(),"\n\tprevent_swf_caching:      ",this.settings.prevent_swf_caching.toString(),"\n\tbutton_placeholder_id:    ",this.settings.button_placeholder_id.toString(),"\n\tbutton_placeholder:       ",this.settings.button_placeholder?"Set":"Not Set","\n\tbutton_image_url:         ",this.settings.button_image_url.toString(),"\n\tbutton_width:             ",this.settings.button_width.toString(),"\n\tbutton_height:            ",this.settings.button_height.toString(),"\n\tbutton_text:              ",
this.settings.button_text.toString(),"\n\tbutton_text_style:        ",this.settings.button_text_style.toString(),"\n\tbutton_text_top_padding:  ",this.settings.button_text_top_padding.toString(),"\n\tbutton_text_left_padding: ",this.settings.button_text_left_padding.toString(),"\n\tbutton_action:            ",this.settings.button_action.toString(),"\n\tbutton_disabled:          ",this.settings.button_disabled.toString(),"\n\tcustom_settings:          ",this.settings.custom_settings.toString(),"\nEvent Handlers:\n\tswfupload_loaded_handler assigned:  ",
(typeof this.settings.swfupload_loaded_handler==="function").toString(),"\n\tfile_dialog_start_handler assigned: ",(typeof this.settings.file_dialog_start_handler==="function").toString(),"\n\tfile_queued_handler assigned:       ",(typeof this.settings.file_queued_handler==="function").toString(),"\n\tfile_queue_error_handler assigned:  ",(typeof this.settings.file_queue_error_handler==="function").toString(),"\n\tupload_start_handler assigned:      ",(typeof this.settings.upload_start_handler===
"function").toString(),"\n\tupload_progress_handler assigned:   ",(typeof this.settings.upload_progress_handler==="function").toString(),"\n\tupload_error_handler assigned:      ",(typeof this.settings.upload_error_handler==="function").toString(),"\n\tupload_success_handler assigned:    ",(typeof this.settings.upload_success_handler==="function").toString(),"\n\tupload_complete_handler assigned:   ",(typeof this.settings.upload_complete_handler==="function").toString(),"\n\tdebug_handler assigned:             ",
(typeof this.settings.debug_handler==="function").toString(),"\n"].join(""))};a.addSetting=function(j,z,K){return z==undefined?(this.settings[j]=K):(this.settings[j]=z)};a.getSetting=function(j){if(this.settings[j]!=undefined)return this.settings[j];return""};
a.callFlash=function(j,z){z=z||[];var K=this.getMovieElement(),N,n;try{n=K.CallFunction('<invoke name="'+j+'" returntype="javascript">'+__flash__argumentsToXML(z,0)+"</invoke>");N=eval(n)}catch(i){throw"Call to "+j+" failed";}if(N!=undefined&&typeof N.post==="object")N=this.unescapeFilePostParams(N);return N};a.selectFile=function(){this.callFlash("SelectFile")};a.selectFiles=function(){this.callFlash("SelectFiles")};a.startUpload=function(j){this.callFlash("StartUpload",[j])};
a.cancelUpload=function(j,z){if(z!==false)z=true;this.callFlash("CancelUpload",[j,z])};a.stopUpload=function(){this.callFlash("StopUpload")};a.getStats=function(){return this.callFlash("GetStats")};a.setStats=function(j){this.callFlash("SetStats",[j])};a.getFile=function(j){return typeof j==="number"?this.callFlash("GetFileByIndex",[j]):this.callFlash("GetFile",[j])};a.addFileParam=function(j,z,K){return this.callFlash("AddFileParam",[j,z,K])};
a.removeFileParam=function(j,z){this.callFlash("RemoveFileParam",[j,z])};a.setUploadURL=function(j){this.settings.upload_url=j.toString();this.callFlash("SetUploadURL",[j])};a.setPostParams=function(j){this.settings.post_params=j;this.callFlash("SetPostParams",[j])};a.addPostParam=function(j,z){this.settings.post_params[j]=z;this.callFlash("SetPostParams",[this.settings.post_params])};a.removePostParam=function(j){delete this.settings.post_params[j];this.callFlash("SetPostParams",[this.settings.post_params])};
a.setFileTypes=function(j,z){this.settings.file_types=j;this.settings.file_types_description=z;this.callFlash("SetFileTypes",[j,z])};a.setFileSizeLimit=function(j){this.settings.file_size_limit=j;this.callFlash("SetFileSizeLimit",[j])};a.setFileUploadLimit=function(j){this.settings.file_upload_limit=j;this.callFlash("SetFileUploadLimit",[j])};a.setFileQueueLimit=function(j){this.settings.file_queue_limit=j;this.callFlash("SetFileQueueLimit",[j])};
a.setFilePostName=function(j){this.settings.file_post_name=j;this.callFlash("SetFilePostName",[j])};a.setUseQueryString=function(j){this.settings.use_query_string=j;this.callFlash("SetUseQueryString",[j])};a.setRequeueOnError=function(j){this.settings.requeue_on_error=j;this.callFlash("SetRequeueOnError",[j])};a.setHTTPSuccess=function(j){if(typeof j==="string")j=j.replace(" ","").split(",");this.settings.http_success=j;this.callFlash("SetHTTPSuccess",[j])};
a.setAssumeSuccessTimeout=function(j){this.settings.assume_success_timeout=j;this.callFlash("SetAssumeSuccessTimeout",[j])};a.setDebugEnabled=function(j){this.settings.debug_enabled=j;this.callFlash("SetDebugEnabled",[j])};a.setButtonImageURL=function(j){if(j==undefined)j="";this.settings.button_image_url=j;this.callFlash("SetButtonImageURL",[j])};
a.setButtonDimensions=function(j,z){this.settings.button_width=j;this.settings.button_height=z;var K=this.getMovieElement();if(K!=undefined){K.style.width=j+"px";K.style.height=z+"px"}this.callFlash("SetButtonDimensions",[j,z])};a.setButtonText=function(j){this.settings.button_text=j;this.callFlash("SetButtonText",[j])};a.setButtonTextPadding=function(j,z){this.settings.button_text_top_padding=z;this.settings.button_text_left_padding=j;this.callFlash("SetButtonTextPadding",[j,z])};
a.setButtonTextStyle=function(j){this.settings.button_text_style=j;this.callFlash("SetButtonTextStyle",[j])};a.setButtonDisabled=function(j){this.settings.button_disabled=j;this.callFlash("SetButtonDisabled",[j])};a.setButtonAction=function(j){this.settings.button_action=j;this.callFlash("SetButtonAction",[j])};a.setButtonCursor=function(j){this.settings.button_cursor=j;this.callFlash("SetButtonCursor",[j])};
a.queueEvent=function(j,z){if(z==undefined)z=[];else z instanceof Array||(z=[z]);var K=this;if(typeof this.settings[j]==="function"){this.eventQueue.push(function(){this.settings[j].apply(this,z)});setTimeout(function(){K.executeNextEvent()},0)}else if(this.settings[j]!==null)throw"Event handler "+j+" is unknown or is not a function";};a.executeNextEvent=function(){var j=this.eventQueue?this.eventQueue.shift():null;typeof j==="function"&&j.apply(this)};
a.unescapeFilePostParams=function(j){var z=/[$]([0-9a-f]{4})/i,K={},N;if(j!=undefined){for(var n in j.post)if(j.post.hasOwnProperty(n)){N=n;for(var i;(i=z.exec(N))!==null;)N=N.replace(i[0],String.fromCharCode(parseInt("0x"+i[1],16)));K[N]=j.post[n]}j.post=K}return j};a.testExternalInterface=function(){try{return this.callFlash("TestExternalInterface")}catch(j){return false}};a.flashReady=function(){var j=this.getMovieElement();if(j){this.cleanUp(j);this.queueEvent("swfupload_loaded_handler")}else this.debug("Flash called back ready but the flash movie can't be found.")};
a.cleanUp=function(j){try{if(this.movieElement&&typeof j.CallFunction==="unknown"){this.debug("Removing Flash functions hooks (this should only run in IE and should prevent memory leaks)");for(var z in j)try{if(typeof j[z]==="function")j[z]=null}catch(K){}}}catch(N){}window.__flash__removeCallback=function(n,i){try{if(n)n[i]=null}catch(o){}}};a.fileDialogStart=function(){this.queueEvent("file_dialog_start_handler")};
a.fileQueued=function(j){j=this.unescapeFilePostParams(j);this.queueEvent("file_queued_handler",j)};a.fileQueueError=function(j,z,K){j=this.unescapeFilePostParams(j);this.queueEvent("file_queue_error_handler",[j,z,K])};a.fileDialogComplete=function(j,z,K){this.queueEvent("file_dialog_complete_handler",[j,z,K])};a.uploadStart=function(j){j=this.unescapeFilePostParams(j);this.queueEvent("return_upload_start_handler",j)};
a.returnUploadStart=function(j){var z;if(typeof this.settings.upload_start_handler==="function"){j=this.unescapeFilePostParams(j);z=this.settings.upload_start_handler.call(this,j)}else if(this.settings.upload_start_handler!=undefined)throw"upload_start_handler must be a function";if(z===undefined)z=true;z=!!z;this.callFlash("ReturnUploadStart",[z])};a.uploadProgress=function(j,z,K){j=this.unescapeFilePostParams(j);this.queueEvent("upload_progress_handler",[j,z,K])};
a.uploadError=function(j,z,K){j=this.unescapeFilePostParams(j);this.queueEvent("upload_error_handler",[j,z,K])};a.uploadSuccess=function(j,z,K){j=this.unescapeFilePostParams(j);this.queueEvent("upload_success_handler",[j,z,K])};a.uploadComplete=function(j){j=this.unescapeFilePostParams(j);this.queueEvent("upload_complete_handler",j)};a.debug=function(j){this.queueEvent("debug_handler",j)};
a.debugMessage=function(j){if(this.settings.debug){var z=[];if(typeof j==="object"&&typeof j.name==="string"&&typeof j.message==="string"){for(var K in j)j.hasOwnProperty(K)&&z.push(K+": "+j[K]);j=z.join("\n")||"";z=j.split("\n");j="EXCEPTION: "+z.join("\nEXCEPTION: ");SWFUpload.Console.writeLine(j)}else SWFUpload.Console.writeLine(j)}};SWFUpload.Console={};
SWFUpload.Console.writeLine=function(j){var z,K;try{z=document.getElementById("SWFUpload_Console");if(!z){K=document.createElement("form");document.getElementsByTagName("body")[0].appendChild(K);z=document.createElement("textarea");z.id="SWFUpload_Console";z.style.fontFamily="monospace";z.setAttribute("wrap","off");z.wrap="off";z.style.overflow="auto";z.style.width="700px";z.style.height="350px";z.style.margin="5px";K.appendChild(z)}z.value+=j+"\n";z.scrollTop=z.scrollHeight-z.clientHeight}catch(N){alert("Exception: "+
N.name+" Message: "+N.message)}};
var Cufon=function(){function j(l){var s=this.face=l.face,b={" ":1,"\u00a0":1,"\u3000":1};this.glyphs=l.glyphs;this.w=l.w;this.baseSize=parseInt(s["units-per-em"],10);this.family=s["font-family"].toLowerCase();this.weight=s["font-weight"];this.style=s["font-style"]||"normal";this.viewBox=function(){var c=s.bbox.split(/\s+/);c={minX:parseInt(c[0],10),minY:parseInt(c[1],10),maxX:parseInt(c[2],10),maxY:parseInt(c[3],10)};c.width=c.maxX-c.minX;c.height=c.maxY-c.minY;c.toString=function(){return[this.minX,
this.minY,this.width,this.height].join(" ")};return c}();this.ascent=-parseInt(s.ascent,10);this.descent=-parseInt(s.descent,10);this.height=-this.ascent+this.descent;this.spacing=function(c,e,g){for(var k=this.glyphs,r,t,A=[],W=0,Y=-1,ca=-1,da;da=c[++Y];)if(r=k[da]||this.missingGlyph){if(t){W-=t=t[da]||0;A[ca]-=t}t=r.w;if(isNaN(t))t=+this.w;if(t>0){t+=e;if(b[da])t+=g}W+=A[++ca]=~~t;t=r.k}A.total=W;return A}}function z(){var l={},s={oblique:"italic",italic:"oblique"};this.add=function(b){(l[b.style]||
(l[b.style]={}))[b.weight]=b};this.get=function(b,c){b=l[b]||l[s[b]]||l.normal||l.italic||l.oblique;if(!b)return null;c={normal:400,bold:700}[c]||parseInt(c,10);if(b[c])return b[c];var e={1:1,99:0}[c%100],g=[],k,r;if(e===undefined)e=c>400;if(c==500)c=400;for(var t in b)if(M(b,t)){t=parseInt(t,10);if(!k||t<k)k=t;if(!r||t>r)r=t;g.push(t)}if(c<k)c=k;if(c>r)c=r;g.sort(function(A,W){return(e?A>=c&&W>=c?A<W:A>W:A<=c&&W<=c?A>W:A<W)?-1:1});return b[g[0]]}}function K(){function l(e,g){try{if(e.contains)return e.contains(g);
return e.compareDocumentPosition(g)&16}catch(k){}return false}function s(e){var g=e.relatedTarget;g&&l(this,g)||c(this,e.type=="mouseover")}function b(e){c(this,e.type=="mouseenter")}function c(e,g){setTimeout(function(){var k=H.get(e).options;C.replace(e,g?d(k,k.hover):k,true)},10)}this.attach=function(e){if(e.onmouseenter===undefined){o(e,"mouseover",s);o(e,"mouseout",s)}else{o(e,"mouseenter",b);o(e,"mouseleave",b)}}}function N(){function l(c){for(var e=[],g,k=0;g=c[k];++k)e[k]=s[b[g]];return e}
var s=[],b={};this.add=function(c,e){b[c]=s.push(e)-1};this.repeat=function(){for(var c=arguments.length?l(arguments):s,e,g=0;e=c[g++];)C.replace(e[0],e[1],true)}}function n(){function l(c){return c.cufid||(c.cufid=++b)}var s={},b=0;this.get=function(c){c=l(c);return s[c]||(s[c]={})}}function i(l){var s={},b={};this.extend=function(c){for(var e in c)if(M(c,e))s[e]=c[e];return this};this.get=function(c){return s[c]!=undefined?s[c]:l[c]};this.getSize=function(c,e){return b[c]||(b[c]=new w.Size(this.get(c),
e))};this.isUsable=function(){return!!l}}function o(l,s,b){if(l.addEventListener)l.addEventListener(s,b,false);else l.attachEvent&&l.attachEvent("on"+s,function(){return b.call(l,window.event)})}function q(l,s){var b=H.get(l);if(b.options)return l;s.hover&&s.hoverables[l.nodeName.toLowerCase()]&&E.attach(l);b.options=s;return l}function v(l){var s={};return function(b){M(s,b)||(s[b]=l.apply(null,arguments));return s[b]}}function x(l,s){l=w.quotedList(s.get("fontFamily").toLowerCase());for(var b,c=
0;b=l[c];++c)if(L[b])return L[b].get(s.get("fontStyle"),s.get("fontWeight"));return null}function R(l){return document.getElementsByTagName(l)}function M(l,s){return l.hasOwnProperty(s)}function d(){for(var l={},s,b,c=0,e=arguments.length;s=arguments[c],c<e;++c)for(b in s)if(M(s,b))l[b]=s[b];return l}function T(l,s,b,c,e,g){var k=document.createDocumentFragment();if(s==="")return k;var r=c.separate,t=s.split(V[r]);if((r=r=="words")&&B){/^\s/.test(s)&&t.unshift("");/\s$/.test(s)&&t.push("")}for(var A=
0,W=t.length;A<W;++A)(s=U[c.engine](l,r?w.textAlign(t[A],b,A,W):t[A],b,c,e,g,A<W-1))&&k.appendChild(s);return k}function F(l,s){var b=l.nodeName.toLowerCase();if(!s.ignore[b]){b=!s.textless[b];var c=w.getStyle(q(l,s)).extend(s),e=x(l,c),g,k,r,t,A;if(e)for(g=l.firstChild;g;g=r){k=g.nodeType;r=g.nextSibling;if(b&&k==3){if(t){t.appendData(g.data);l.removeChild(g)}else t=g;if(r)continue}if(t){l.replaceChild(T(e,w.whiteSpace(t.data,c,t,A),c,s,g,l),t);t=null}if(k==1){if(g.firstChild)g.nodeName.toLowerCase()==
"cufon"?U[s.engine](e,null,c,s,g,l):arguments.callee(g,s);A=g}}}}var C=function(){return C.replace.apply(null,arguments)},y=C.DOM={ready:function(){var l=false,s={loaded:1,complete:1},b=[],c=function(){if(!l){l=true;for(var e;e=b.shift();e());}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",c,false);window.addEventListener("pageshow",c,false)}!window.opera&&document.readyState&&function(){s[document.readyState]?c():setTimeout(arguments.callee,10)}();document.readyState&&
document.createStyleSheet&&function(){try{document.body.doScroll("left");c()}catch(e){setTimeout(arguments.callee,1)}}();o(window,"load",c);return function(e){if(arguments.length)l?e():b.push(e);else c()}}(),root:function(){return document.documentElement||document.body}},w=C.CSS={Size:function(l,s){this.value=parseFloat(l);this.unit=String(l).match(/[a-z%]*$/)[0]||"px";this.convert=function(b){return b/s*this.value};this.convertFrom=function(b){return b/this.value*s};this.toString=function(){return this.value+
this.unit}},addClass:function(l,s){var b=l.className;l.className=b+(b&&" ")+s;return l},color:v(function(l){var s={};s.color=l.replace(/^rgba\((.*?),\s*([\d.]+)\)/,function(b,c,e){s.opacity=parseFloat(e);return"rgb("+c+")"});return s}),fontStretch:v(function(l){if(typeof l=="number")return l;if(/%$/.test(l))return parseFloat(l)/100;return{"ultra-condensed":0.5,"extra-condensed":0.625,condensed:0.75,"semi-condensed":0.875,"semi-expanded":1.125,expanded:1.25,"extra-expanded":1.5,"ultra-expanded":2}[l]||
1}),getStyle:function(l){var s=document.defaultView;if(s&&s.getComputedStyle)return new i(s.getComputedStyle(l,null));if(l.currentStyle)return new i(l.currentStyle);return new i(l.style)},gradient:v(function(l){var s={id:l,type:l.match(/^-([a-z]+)-gradient\(/)[1],stops:[]};l=l.substr(l.indexOf("(")).match(/([\d.]+=)?(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)/ig);for(var b=0,c=l.length,e;b<c;++b){e=l[b].split("=",2).reverse();s.stops.push([e[1]||b/(c-1),e[0]])}return s}),quotedList:v(function(l){for(var s=
[],b=/\s*((["'])([\s\S]*?[^\\])\2|[^,]+)\s*/g,c;c=b.exec(l);)s.push(c[3]||c[1]);return s}),recognizesMedia:v(function(l){var s=document.createElement("style"),b;s.type="text/css";s.media=l;try{s.appendChild(document.createTextNode("/**/"))}catch(c){}l=R("head")[0];l.insertBefore(s,l.firstChild);b=(b=s.sheet||s.styleSheet)&&!b.disabled;l.removeChild(s);return b}),removeClass:function(l,s){s=RegExp("(?:^|\\s+)"+s+"(?=\\s|$)","g");l.className=l.className.replace(s,"");return l},supports:function(l,s){var b=
document.createElement("span").style;if(b[l]===undefined)return false;b[l]=s;return b[l]===s},textAlign:function(l,s,b,c){if(s.get("textAlign")=="right"){if(b>0)l=" "+l}else if(b<c-1)l+=" ";return l},textShadow:v(function(l){if(l=="none")return null;for(var s=[],b={},c,e=0,g=/(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)|(-?[\d.]+[a-z%]*)|,/ig;c=g.exec(l);)if(c[0]==","){s.push(b);b={};e=0}else if(c[1])b.color=c[1];else b[["offX","offY","blur"][e++]]=c[2];s.push(b);return s}),textTransform:function(){var l={uppercase:function(s){return s.toUpperCase()},
lowercase:function(s){return s.toLowerCase()},capitalize:function(s){return s.replace(/\b./g,function(b){return b.toUpperCase()})}};return function(s,b){return(b=l[b.get("textTransform")])?b(s):s}}(),whiteSpace:function(){var l={inline:1,"inline-block":1,"run-in":1},s=/^\s+/,b=/\s+$/;return function(c,e,g,k){if(k)if(k.nodeName.toLowerCase()=="br")c=c.replace(s,"");if(l[e.get("display")])return c;g.previousSibling||(c=c.replace(s,""));g.nextSibling||(c=c.replace(b,""));return c}}()};w.ready=function(){function l(A){return A.disabled||
s(A.sheet,A.media||"screen")}function s(A,W){if(!w.recognizesMedia(W||"all"))return true;if(!A||A.disabled)return false;try{var Y=A.cssRules,ca;if(Y){A=0;var da=Y.length;a:for(;ca=Y[A],A<da;++A)switch(ca.type){case 2:break;case 3:if(!s(ca.styleSheet,ca.media.mediaText))return false;break;default:break a}}}catch(ha){}return true}function b(){if(document.createStyleSheet)return true;var A,W;for(W=0;A=r[W];++W)if(A.rel.toLowerCase()=="stylesheet"&&!l(A))return false;for(W=0;A=t[W];++W)if(!l(A))return false;
return true}var c=!w.recognizesMedia("all"),e=false,g=[],k=function(){c=true;for(var A;A=g.shift();A());},r=R("link"),t=R("style");y.ready(function(){e||(e=w.getStyle(document.body).isUsable());c||e&&b()?k():setTimeout(arguments.callee,10)});return function(A){c?A():g.push(A)}}();var B=" ".split(/\s+/).length==0,H=new n,E=new K,J=new N,G=false,U={},L={},Q={autoDetect:false,engine:null,forceHitArea:false,hover:false,hoverables:{a:true},ignore:{applet:1,canvas:1,col:1,colgroup:1,head:1,iframe:1,map:1,
noscript:1,optgroup:1,option:1,script:1,select:1,style:1,textarea:1,title:1,pre:1},printable:true,selector:window.Sizzle||window.jQuery&&function(l){return jQuery(l)}||window.dojo&&dojo.query||window.glow&&glow.dom&&glow.dom.get||window.Ext&&Ext.query||window.YAHOO&&YAHOO.util&&YAHOO.util.Selector&&YAHOO.util.Selector.query||window.$$&&function(l){return $$(l)}||window.$&&function(l){return $(l)}||document.querySelectorAll&&function(l){return document.querySelectorAll(l)}||R,separate:"words",textless:{dl:1,
html:1,ol:1,table:1,tbody:1,thead:1,tfoot:1,tr:1,ul:1},textShadow:"none"},V={words:/\s/.test("\u00a0")?/[^\S\u00a0]+/:/\s+/,characters:"",none:/^/};C.now=function(){y.ready();return C};C.refresh=function(){J.repeat.apply(J,arguments);return C};C.registerEngine=function(l,s){if(!s)return C;U[l]=s;return C.set("engine",l)};C.registerFont=function(l){if(!l)return C;l=new j(l);var s=l.family;L[s]||(L[s]=new z);L[s].add(l);return C.set("fontFamily",'"'+s+'"')};C.replace=function(l,s,b){s=d(Q,s);if(!s.engine)return C;
if(!G){w.addClass(y.root(),"cufon-active cufon-loading");w.ready(function(){w.addClass(w.removeClass(y.root(),"cufon-loading"),"cufon-ready")});G=true}if(s.hover)s.forceHitArea=true;s.autoDetect&&delete s.fontFamily;if(typeof s.textShadow=="string")s.textShadow=w.textShadow(s.textShadow);if(typeof s.color=="string"&&/^-/.test(s.color))s.textGradient=w.gradient(s.color);else delete s.textGradient;b||J.add(l,arguments);if(l.nodeType||typeof l=="string")l=[l];w.ready(function(){for(var c=0,e=l.length;c<
e;++c){var g=l[c];typeof g=="string"?C.replace(s.selector(g),s,true):F(g,s)}});return C};C.set=function(l,s){Q[l]=s;return C};return C}();
Cufon.registerEngine("canvas",function(){function j(i,o){var q=0,v=0,x=[],R=/([mrvxe])([^a-z]*)/g,M,d=0;a:for(;M=R.exec(i);++d){var T=M[2].split(",");switch(M[1]){case "v":x[d]={m:"bezierCurveTo",a:[q+~~T[0],v+~~T[1],q+~~T[2],v+~~T[3],q+=~~T[4],v+=~~T[5]]};break;case "r":x[d]={m:"lineTo",a:[q+=~~T[0],v+=~~T[1]]};break;case "m":x[d]={m:"moveTo",a:[q=~~T[0],v=~~T[1]]};break;case "x":x[d]={m:"closePath"};break;case "e":break a}o[x[d].m].apply(o,x[d].a)}return x}function z(i,o){for(var q=0,v=i.length;q<
v;++q){var x=i[q];o[x.m].apply(o,x.a)}}var K=document.createElement("canvas");if(!(!K||!K.getContext||!K.getContext.apply)){K=null;var N=Cufon.CSS.supports("display","inline-block");K=!N&&(document.compatMode=="BackCompat"||/frameset|transitional/i.test(document.doctype.publicId));var n=document.createElement("style");n.type="text/css";n.appendChild(document.createTextNode(("cufon{text-indent:0;}@media screen,projection{cufon{display:inline;display:inline-block;position:relative;vertical-align:middle;"+
(K?"":"font-size:1px;line-height:1px;")+"}cufon cufontext{display:-moz-inline-box;display:inline-block;width:0;height:0;text-indent:-10000in;}"+(N?"cufon canvas{position:relative;}":"cufon canvas{position:absolute;}")+"}@media print{cufon{padding:0;}cufon canvas{display:none;}}").replace(/;/g,"!important;")));document.getElementsByTagName("head")[0].appendChild(n);return function(i,o,q,v,x){function R(){var s=i.glyphs,b,c=-1,e=-1;for(l.scale(V,1);U[++c];)if(b=s[U[c]]||i.missingGlyph){if(b.d){l.beginPath();
if(b.code)z(b.code,l);else b.code=j("m"+b.d,l);l.fill()}l.translate(L[++e],0)}l.restore()}var M=o===null;if(M)o=x.getAttribute("alt");var d=i.viewBox,T=q.getSize("fontSize",i.baseSize),F=0,C=0,y=0,w=0,B=v.textShadow,H=[];if(B)for(var E=B.length;E--;){var J=B[E],G=T.convertFrom(parseFloat(J.offX));J=T.convertFrom(parseFloat(J.offY));H[E]=[G,J];if(J<F)F=J;if(G>C)C=G;if(J>y)y=J;if(G<w)w=G}var U=Cufon.CSS.textTransform(o,q).split(""),L=i.spacing(U,~~T.convertFrom(parseFloat(q.get("letterSpacing"))||0),
~~T.convertFrom(parseFloat(q.get("wordSpacing"))||0));if(!L.length)return null;J=L.total;C+=d.width-L[L.length-1];w+=d.minX;if(M){M=x;E=x.firstChild}else{M=document.createElement("cufon");M.className="cufon cufon-canvas";M.setAttribute("alt",o);E=document.createElement("canvas");M.appendChild(E);if(v.printable){x=document.createElement("cufontext");x.appendChild(document.createTextNode(o));M.appendChild(x)}}x=M.style;var Q=E.style;G=T.convert(d.height);o=Math.ceil(G)/G;var V=o*Cufon.CSS.fontStretch(q.get("fontStretch"));
J=J*V;C=Math.ceil(T.convert(J+C-w));y=Math.ceil(T.convert(d.height-F+y));E.width=C;E.height=y;Q.width=C+"px";Q.height=y+"px";F+=d.minY;Q.top=Math.round(T.convert(F-i.ascent))+"px";Q.left=Math.round(T.convert(w))+"px";y=Math.max(Math.ceil(T.convert(J)),0)+"px";if(N){x.width=y;x.height=T.convert(i.height)+"px"}else{x.paddingLeft=y;x.paddingBottom=T.convert(i.height)-1+"px"}var l=E.getContext("2d");T=G/d.height;l.scale(T,T*o);l.translate(-w,-F);l.save();if(B)for(E=B.length;E--;){J=B[E];l.save();l.fillStyle=
J.color;l.translate.apply(l,H[E]);R()}if(v=v.textGradient){q=v.stops;d=l.createLinearGradient(0,d.minY,0,d.maxY);E=0;for(v=q.length;E<v;++E)d.addColorStop.apply(d,q[E]);l.fillStyle=d}else l.fillStyle=q.get("color");R();return M}}}());
Cufon.registerEngine("vml",function(){function j(q,v){return z(q,/(?:em|ex|%)$|^[a-z-]+$/i.test(v)?"1em":v)}function z(q,v){if(v==="0")return 0;if(/px$/i.test(v))return parseFloat(v);var x=q.style.left,R=q.runtimeStyle.left;q.runtimeStyle.left=q.currentStyle.left;q.style.left=v.replace("%","em");v=q.style.pixelLeft;q.style.left=x;q.runtimeStyle.left=R;return v}function K(q,v,x,R){var M="computed"+R,d=v[M];if(isNaN(d)){d=v.get(R);v[M]=d=d=="normal"?0:~~x.convertFrom(z(q,d))}return d}function N(q){var v=
q.id;if(!o[v]){q=q.stops;var x=document.createElement("cvml:fill"),R=[];x.type="gradient";x.angle=180;x.focus="0";x.method="none";x.color=q[0][1];for(var M=1,d=q.length-1;M<d;++M)R.push(q[M][0]*100+"% "+q[M][1]);x.colors=R.join(",");x.color2=q[d][1];o[v]=x}return o[v]}var n=document.namespaces;if(n){n.add("cvml","urn:schemas-microsoft-com:vml");n=null;n=document.createElement("cvml:shape");n.style.behavior="url(#default#VML)";if(n.coordsize){n=null;var i=(document.documentMode||0)<8;document.write(('<style type="text/css">cufoncanvas{text-indent:0;}@media screen{cvml\\:shape,cvml\\:rect,cvml\\:fill,cvml\\:shadow{behavior:url(#default#VML);display:block;antialias:true;position:absolute;}cufoncanvas{position:absolute;text-align:left;}cufon{display:inline-block;position:relative;vertical-align:'+
(i?"middle":"text-bottom")+";}cufon cufontext{position:absolute;left:-10000in;font-size:1px;}a cufon{cursor:pointer}}@media print{cufon cufoncanvas{display:none;}}</style>").replace(/;/g,"!important;"));var o={};return function(q,v,x,R,M,d,T){var F=v===null;if(F)v=M.alt;var C=q.viewBox,y=x.computedFontSize||(x.computedFontSize=new Cufon.CSS.Size(j(d,x.get("fontSize"))+"px",q.baseSize)),w;if(F){w=M;M=M.firstChild}else{w=document.createElement("cufon");w.className="cufon cufon-vml";w.alt=v;M=document.createElement("cufoncanvas");
w.appendChild(M);if(R.printable){var B=document.createElement("cufontext");B.appendChild(document.createTextNode(v));w.appendChild(B)}T||w.appendChild(document.createElement("cvml:shape"))}T=w.style;var H=M.style,E=y.convert(C.height);B=Math.ceil(E);E=B/E*Cufon.CSS.fontStretch(x.get("fontStretch"));var J=C.minX,G=C.minY;H.height=B;H.top=Math.round(y.convert(G-q.ascent));H.left=Math.round(y.convert(J));T.height=y.convert(q.height)+"px";var U=x.get("color"),L=Cufon.CSS.textTransform(v,x).split(""),
Q=q.spacing(L,K(d,x,y,"letterSpacing"),K(d,x,y,"wordSpacing"));if(!Q.length)return null;v=Q.total;var V=-J+v+(C.width-Q[Q.length-1]);H=y.convert(V*E);H=Math.round(H);C=V+","+C.height;var l;V="r"+C+"ns";for(var s=R.textGradient&&N(R.textGradient),b=q.glyphs,c=0,e=R.textShadow,g=-1,k=0;L[++g];){var r=b[L[g]]||q.missingGlyph,t;if(r){if(F)for(t=M.childNodes[k];t.firstChild;)t.removeChild(t.firstChild);else{t=document.createElement("cvml:shape");M.appendChild(t)}t.stroked="f";t.coordsize=C;t.coordorigin=
l=J-c+","+G;t.path=(r.d?"m"+r.d+"xe":"")+"m"+l+V;t.fillcolor=U;s&&t.appendChild(s.cloneNode(false));l=t.style;l.width=H;l.height=B;if(e){l=e[0];r=e[1];var A=Cufon.CSS.color(l.color),W,Y=document.createElement("cvml:shadow");Y.on="t";Y.color=A.color;Y.offset=l.offX+","+l.offY;if(r){W=Cufon.CSS.color(r.color);Y.type="double";Y.color2=W.color;Y.offset2=r.offX+","+r.offY}Y.opacity=A.opacity||W&&W.opacity||1;t.appendChild(Y)}c+=Q[k++]}}q=t.nextSibling;if(R.forceHitArea){if(!q){q=document.createElement("cvml:rect");
q.stroked="f";q.className="cufon-vml-cover";R=document.createElement("cvml:fill");R.opacity=0;q.appendChild(R);M.appendChild(q)}R=q.style;R.width=H;R.height=B}else q&&M.removeChild(q);T.width=Math.max(Math.ceil(y.convert(v*E)),0);if(i){y=x.computedYAdjust;if(y===undefined){y=x.get("lineHeight");if(y=="normal")y="1em";else isNaN(y)||(y+="em");x.computedYAdjust=y=0.5*(z(d,y)-parseFloat(T.height))}if(y){T.marginTop=Math.ceil(y)+"px";T.marginBottom=y+"px"}}return w}}}}());
if(!window.console){window.console={};window.console.log=function(){}}
var ziba=function(){function j(){window.open(this.href,"_blank");return false}function z(){for(var F=0,C=arguments.length;F<C;++F)(new Image).src=arguments[F]}function K(){if(!K.done){var F=$("#header"),C=F.find("li"),y=F.css("backgroundColor"),w=$("<span></span>").css({position:"absolute",top:"0",left:"0",width:"100%",height:"100%",opacity:"0",zIndex:"3"});function B(){$(this).find("span").stop(true,true).animate({opacity:"1"},200)}function H(){$(this).find("span").animate({opacity:"0"},200)}if(C.css("backgroundPosition")||
C.css("backgroundPositionX")){C.each(function(E,J){var G;J=$(J);E=J.find("a");G=(E.css("backgroundPosition")||E.css("backgroundPositionX")+" "+E.css("backgroundPositionY")).split(" ");J=G[0];G=parseInt(G[1],10)-105;if(G<=-315)G+=210;else if(G<=-211)G+=105;E.append(w.clone().css({background:"url(/frontend/img/header.png) "+J+" "+G+"px",backgroundColor:y}));E.mouseenter(B);E.mouseleave(H)});F.removeClass("no-fade")}K.done=true}}function N(){function F(E){var J="http://vimeo.com/moogaloop.swf?clip_id="+
E.data("vid")+"&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1&amp;js_api=1";swfobject.embedSWF(J,E.data("cid"),"640","360","9.0.0","/frontend/swf/expressInstall.swf",{},{allowfullscreen:"true",allowscriptaccess:"always",wmode:"transparent"},{},null);E.addClass("initialized")}function C(){for(var E=$(this).closest(".fancy-slideshow"),J=E.get(0),G=0;J&&J.tagName.toLowerCase()!="body";){G+=J.offsetTop;J=J.offsetParent}E.data("pageOffset",
G);jQuery.support.opacity?$(this).find("span").stop(true,true).fadeIn(150):$(this).find("span").css({display:"block"})}function y(){jQuery.support.opacity?$(this).find("span").stop(true,true).fadeOut(150):$(this).find("span").hide()}function w(E){var J=$(this).closest(".fancy-slideshow"),G=$(this).height(),U=$(this).find("span"),L=U.height();E=E.pageY-J.data("pageOffset");G=E<L/2?0:E>G-L/2?G-L:Math.round(E-L/2);U.css({top:G+"px"})}function B(E){var J=$(this).closest(".fancy-slideshow"),G=J.find(".container"),
U=J.find(".index"),L=J.find(".showing"),Q=this.href.split("#")[1];E.preventDefault();if(!H){H=true;switch(Q){case "next":Q=L.next(".asset");Q.size()||(Q=G.find(".asset:first"));break;case "previous":Q=L.prev(".asset");Q.size()||(Q=G.find(".asset:last"));break;default:Q=G.find("."+Q)}if(Q.size()){U.find(".on").removeClass("on");U.find(Q.data("ref")).addClass("on");J.find(".captions").empty().text(Q.data("caption"));if(Q.hasClass("video")){Q.hasClass("initialized")||F(Q);J.find("a.next,a.prev").css({height:"300px"})}else J.find("a.next,a.prev").css({height:""});
G.animate({height:Q.css("height")},200);L.fadeOut(200,function(){var V=$(this);V.removeClass("showing");if(V.hasClass("video")){V=V.find("#"+V.data("cid")).get(0);typeof V.api_pause=="function"&&V.api_pause()}H=false});Q.fadeIn(200,function(){$(this).addClass("showing")})}}}var H=false;$(".slideshow").each(function(E,J){var G=$(J).addClass("fancy-slideshow").removeClass("slideshow"),U=$('<div class="container"></div>'),L=$('<div class="asset"></div>'),Q=$('<p class="captions"></p>'),V=false,l=$('<ol class="index"></ol>'),
s=0;G.append(U);G.find("a,img").each(function(c,e){var g="a-"+c,k=L.clone().addClass(g).data("ref","."+g);U.append(k);if(e.className=="image"){k.addClass("image").append(e.cloneNode(true));k.css({height:e.height+"px"});if(e.alt&&e.alt.length){k.data("caption",e.alt);V=true}}else if(e.className=="video"){k.addClass("video").append('<div class="video-wrapper"><div id="'+e.id+"\">You'll need the flash video player to see this video.</div></div>");k.data("cid",e.id).data("vid",e.rel);k.css({height:"360px"});
var r=$(e).text();if(r&&r.length){k.data("caption",r);V=true}}$(e).remove();if(c==0){U.css({height:k.css("height")});k.addClass("showing");k.data("caption")&&k.data("caption").length&&Q.text(k.data("caption"));if(k.hasClass("video")){F(k);G.find("a.next,a.prev").css({height:"300px"})}}l.append('<li><a class="'+g+'" href="#a-'+c+'">'+(k.data("caption")||"&nbsp;")+"</a></li>");++s});V&&G.append(U).append(Q);if(s>1){G.append(l);l.find("a").click(B);l.find("a:first").addClass("on");next_button=$('<a class="next" href="#next"><span>Next</span></a>');
prev_button=$('<a class="prev" href="#previous"><span>Previous</span></a>');U.append(prev_button).append(next_button);next_button.mouseenter(C).mousemove(w).mouseleave(y).click(B);prev_button.mouseenter(C).mousemove(w).mouseleave(y).click(B);if(next_button.get(0).hideFocus===false){next_button.get(0).hideFocus=true;prev_button.get(0).hideFocus=true}if(jQuery.browser.msie&&jQuery.browser.version=="6.0"){next_button.children("span").css({display:"block"}).get(0).style.behavior="url(/frontend/css/iepngfix.htc)";
prev_button.children("span").css({display:"block"}).get(0).style.behavior="url(/frontend/css/iepngfix.htc)";window.setTimeout(function(){next_button.children("span").hide();prev_button.children("span").hide()},100)}var b;for(E=0;b&&b.tagName.toLowerCase()!="body";){E+=b.offsetTop;b=b.offsetParent}G.data("pageOffset",E)}jQuery.support.opacity?G.css({opacity:"0",visibility:"visible"}).animate({opacity:"1"},300):G.css({visibility:"visible"});G=U=L=Q=l=null})}function n(){var F=(window.location.hash.substring(1)||
window.location.pathname).split("/"),C=F[1]||"home";Cufon.replace("blockquote",{fontFamily:"HelveticaNeueLTStd-Thin"});switch(C){case "work":if(F[2])if(F[2]=="client"){Cufon.replace("h1,h2",{fontFamily:"HelveticaNeueLTStd-Light"});Cufon.replace("h3",{fontFamily:"HelveticaNeueLTStd-Light"})}else Cufon.replace("#big-idea p,blockquote",{fontFamily:"HelveticaNeueLTStd-Light"});else{Cufon.replace("h1,h2",{fontFamily:"HelveticaNeueLTStd-Light"});Cufon.replace("h3",{fontFamily:"HelveticaNeueLTStd-Light"})}break;
case "perspectives":if(!F[2]||F[2]!="article"){Cufon.replace("h1",{fontFamily:"HelveticaNeueLTStd-Light"});Cufon.replace("h2",{fontFamily:"HelveticaNeueLTStd-Light",hover:{a:true}})}else if(F[2]=="article"){Cufon.replace("#title h1",{fontFamily:"LubalinGraphStd-Demi"});Cufon.replace("#title .author",{fontFamily:"LubalinGraphStd-Demi"});Cufon.replace("h2",{fontFamily:"HelveticaNeueLTStd-Light"})}break;case "trends":if(F[2]){Cufon.replace("h1",{fontFamily:"HelveticaNeueLTStd-Thin"});Cufon.replace("h2",
{fontFamily:"HelveticaNeueLTStd-Light"});Cufon.replace(".tagline",{fontFamily:"HelveticaNeueLTStd-Light"})}else Cufon.replace(".tagline",{fontFamily:"HelveticaNeueLTStd-Thin"});break;case "events":if(F[2])F[2]=="archive"?Cufon.replace("h1,h2",{fontFamily:"HelveticaNeueLTStd-Light"}):Cufon.replace("h1",{fontFamily:"HelveticaNeueLTStd-Light"});else{Cufon.replace("h1",{fontFamily:"HelveticaNeueLTStd-Light"});Cufon.replace("h2",{fontFamily:"HelveticaNeueLTStd-Light",hover:{a:true}})}break;case "news":Cufon.replace("h1",
{fontFamily:"HelveticaNeueLTStd-Light"});Cufon.replace("h2",{fontFamily:"HelveticaNeueLTStd-Light",hover:{a:true}});break;case "about":Cufon.replace(".tagline",{fontFamily:"HelveticaNeueLTStd-Thin"});Cufon.replace("#secondary-copy .large",{fontFamily:"HelveticaNeueLTStd-Light"});break;case "contact":Cufon.replace("h1,h2,h3",{fontFamily:"HelveticaNeueLTStd-Light"});break;case "careers":Cufon.replace("h1",{fontFamily:"HelveticaNeueLTStd-Light"});Cufon.replace(".description h1,.description h2,.description h3",
{fontFamily:"HelveticaNeueLTStd-Light"});break;case "my-ziba":Cufon.replace(".tagline",{fontFamily:"HelveticaNeueLTStd-Thin"});break}Cufon.now()}function i(){$("#detail-navigation");var F=$("#detail-navigation").find(".back"),C=$("#detail-navigation").find(".prev"),y=$("#detail-navigation").find(".next");F.mouseenter(function(){F.stop(true,false).animate({top:"-5px",height:"35px"},150)});F.mouseleave(function(){F.stop(true,false).animate({top:"0",height:"27px"},150)});C.mouseenter(function(){C.stop(true,
false).animate({left:"-5px",width:"35px"},150)});C.mouseleave(function(){C.stop(true,false).animate({left:"0",width:"27px"},150)});y.mouseenter(function(){y.stop(true,false).animate({right:"-5px",width:"35px"},150)});y.mouseleave(function(){y.stop(true,false).animate({right:"0",width:"27px"},150)})}function o(){function F(w){w.stopPropagation();$("#share-js").fadeIn(150)}function C(){$("#share-js").fadeOut(150)}function y(w){w.preventDefault();switch(w.target.className){case "facebook":window.open("http://www.facebook.com/sharer.php?u="+
encodeURIComponent(location.href)+"&t="+encodeURIComponent(document.title));break;case "twitter":window.open("http://twitter.com/?status="+encodeURIComponent(location.href));break;case "digg":window.open("http://digg.com/submit?url="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title)+"&media=news");break;case "delicious":window.open("http://delicious.com/save?v=5&noui&jump=close&url="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title));break}C(w)}
$("#share-options").wrap('<div id="share-js"></div>').after('<span class="shadow"></span><span class="shadow-top"></span><span class="shadow-left"></span>');$("#share-options a").click(y);$("#share").mouseenter(F).mouseleave(C)}function q(F){function C(){var H=true,E=[];y.find("input[type=text],input[type=password]").each(function(G,U){if(U.value==""){$(U.parentNode).addClass("has-error");E.push($("label[for="+U.id+"]").text().toLowerCase()+" is blank");H=false}else $(U.parentNode).removeClass("has-error")});
if(H)y.removeClass("has-errors");else{if(E.length>1){var J=E[E.length-1];J="and "+J}y.find(".status").text("Log in error: "+E.join(", ")+".");y.removeClass("has-success");y.addClass("has-errors")}return H}var y,w,B=function(H){var E=this.action;H.preventDefault();C()&&$.ajax({type:"PUT",url:E,data:y.serialize(),success:function(){F&&F();T.close()},error:function(){y.find(".status").text("We could not log you in with those credentials.");y.removeClass("has-success");y.addClass("has-errors")}})};T("/extensions/inline_login/",
{onload:function(){Cufon.replace("h1",{fontFamily:"HelveticaNeueLTStd-Light"});if(ziba.transitions){ziba.routing.addLinks($("#inline-login"));$("#login-options a").click(T.close)}y=$("#inline-login form");y.submit(B);w=$('<a rel="notransition" class="close">Close</a>');$("#inline-login").append(w);w.click(T.close)},onunload:function(){w.unbind("click",T.close);y.unbind("submit",B);ziba.routing&&$("#inline-options a").unbind("click",T.close);w=y=null}})}function v(){$("#my-ziba-corner").removeClass("locked").animate({height:"70px",
width:"70px"},300)}function x(F){var C=$("#my-ziba-wrapper");$("#my-ziba-corner").addClass("locked");$("#content").css({height:$("#content").height()+"px"});C.fadeOut(300,function(){$("#content").css({height:"auto"});C.empty().append(F);ziba.transitions&&ziba.routing.addLinks(C);ziba.ready.go&&ziba.ready.go();C.fadeIn(200)})}var R=false,M=function(){if(!R){if(ziba.transitions)document.documentElement.id="transitions";z("/frontend/img/my-ziba-corner-white.png","/frontend/img/my-ziba-corner-gray.png",
"/frontend/img/my-ziba-corner-blue.png","/frontend/img/my-ziba-trend-opacity.png","/frontend/img/my-ziba-trend-opacity-added.png");R=true}M.ready(function(){n();N();K();$('a[rel="external"],a.external').live("click",j)});return M},d=function(F){$(document).ready(F)};M.ready=d;var T=function(){function F(U){var L=getPageSize(),Q=getPageScroll(),V=w.width(),l=w.height();U.stopPropagation();w.css({top:parseInt(Q.y+(L.windowHeight/2-l/2),10)+"px",left:parseInt(Q.x+(L.windowWidth/2-V/2),10)+"px"})}var C=
false,y,w,B=null,H=null,E=function(){return E.open.apply(null,arguments)},J=200,G=function(U,L){function Q(s){var b;w.append(s);w.css({visibility:"hidden",display:"block"});b=w.height();s=w.width();var c=getPageScroll();l=l||getPageSize();w.css({width:s+"px",top:parseInt(c.y+(l.windowHeight/2-b/2),10)+"px",left:parseInt(c.x+(l.windowWidth/2-s/2),10)+"px"});if(B){B();B=null}w.css({visibility:"visible",display:"none"});C=true;w.fadeIn(J)}var V,l;if(C){V=arguments;w.fadeOut(J,function(){if(H){H();H=
null}w.empty();C=false;G.apply(null,V)})}else{B=L.onload||null;H=L.onunload||null;L.no_click?y.unbind("click",E.close):y.click(E.close);if(y.css("display")!="block"){$("body").addClass("overlay");l=getPageSize();y.css({height:l.pageHeight});y.fadeIn(J)}$.ajax({url:U,type:"GET",dataType:"html",success:Q})}};E.open=function(){y=$('<div id="overlay-backdrop"></div>');w=$('<div id="overlay-container"></div>');$("body").append(y).append(w);y.css({opacity:0.8});$(window).resize(F);E.open=G;G.apply(null,
arguments)};E.close=function(U){if(C){C=false;U&&U.preventDefault();w.fadeOut(J,function(){w.empty()});y.fadeOut(J,function(){if(H){H();H=null}$("body").removeClass("overlay")})}};return E}();M.addToMyZiba=function(){function F(){$("#add-my-ziba,#my-ziba-added").animate({height:"70px",width:"70px"},300)}function C(){$("#add-my-ziba").stop(true,true).animate({height:"75px",width:"75px"},75)}function y(){$("#add-my-ziba").animate({height:"70px",width:"70px"},75)}function w(B){function H(){$.ajax({url:J,
success:function(G){G=="ok"&&E()}})}function E(){if(pageTracker){var G=ziba.transitions?SWFAddress.getValue():window.location.pathname;pageTracker._trackEvent("My Ziba","Add",G)}var U=$("#add-my-ziba"),L=$('<div id="my-ziba-added" style="height:70px;width:70px;display:none"><span class="text">Already added</span><span class="plus"></span><span class="trend-opacity"></span><span class="corner"></span></div>'),Q=$('<div id="my-ziba-added-notice"><span class="text">Added</span></div>'),V=$('<span class="flasher"></span>');
U.children(".text").remove();U.unbind("click",w).unbind("mouseenter",C).unbind("mouseleave",y);y();$("#content").append(L).append(Q);U.append(V);V.fadeIn(50,function(){V.fadeOut(175,function(){V=null})});Q.fadeIn(75,function(){window.setTimeout(function(){if(jQuery.support.opacity)Q.fadeOut(200,function(){Q.remove();Q=null});else{Q.hide().remove();Q=null}},2E3)});L.fadeIn(300,function(){U.remove();L.mouseenter(function(){$(this).addClass("hover")}).mouseleave(function(){$(this).removeClass("hover")});
L=U=null})}var J=this.href;B.preventDefault();$.ajax({url:J,success:function(G){if(G=="ok")E();else G=="login"&&q(H)}})}d(function(){$("#add-my-ziba").click(w).mouseenter(C).mouseleave(y);if(ziba.transitions)window.setTimeout(F,600);else{$("#add-my-ziba").css({height:"70px",width:"70px"});$("#add-my-ziba .corner").css({height:"100%"})}$("#my-ziba-added").mouseenter(function(){$(this).addClass("hover")}).mouseleave(function(){$(this).removeClass("hover")})})};M.work=function(){function F(){$("#client-list").slideDown(250);
$("h1").removeClass("on");$("h2").addClass("on");Cufon.refresh("h1,h2")}function C(){$("#client-list").slideUp(250).find(".on").removeClass("on");$("h1").addClass("on");$("h2").removeClass("on");SWFAddress.setValue("/work/");Cufon.refresh("h1,h2")}var y={};d(function(){$("h2").clone().addClass("inline").addClass("off");var w=$("#client-list").clone().css({display:"none"});$("h2").remove();$("h1").addClass("on");$("#client-list").remove();$("h2").after(w);if(ziba.transitions)ziba.routing.addLinks(w);
else{w.find("a").click(function(B){var H=this,E=a.get(0).pathname;B.preventDefault();w.find(".on").removeClass("on");H.addClass("on");SWFAddress.setValue(E)});SWFAddress.addEventListener(SWFAddressEvent.CHANGE,y.loadClient)}$("h1").click(C);$("h2").click(F)});y.client=function(){d(function(){var w=SWFAddress.getValue().split("/")[3];$("h1").removeClass("on");$("h2").addClass("on");$("#featured-projects").hide();$("#client-list").find("."+w).addClass("on");$("#client-list").show();Cufon.refresh("h1,h2")})};
return y};M.work.loadClient=function(F){function C(){$("h1").removeClass("on");$("h2").addClass("on");$("#client-list").find(".on").removeClass("on");$("#client-list").find("."+y).addClass("on");$("#client-list").slideDown(250);Cufon.refresh("h1,h2")}F||(F=SWFAddress.getValue());var y=F.split("/")[3];if(F.match(/^\/work\/$/)){$("#client-list").slideUp(250);$("#client-projects").css({position:"absolute"}).fadeOut(250,function(){$("#client-projects").css({position:"static"})});$("#featured-projects").fadeIn(250)}else{C(F);
$("#client-projects,#featured-projects").fadeOut(250,function(){$.ajax({url:F+"?partial=1",dataType:"html",success:function(w){$("#client-projects").remove();$("#featured-projects").after(w);ziba.transitions&&ziba.routing.addLinks($("#client-projects"));Cufon.refresh("h3");$("#client-projects").fadeIn(250)}})})}};M.workDetail=function(){d(function(){i();o()})};M.perspectiveArticle=function(){function F(C){function y(){var B=true,H=[];w.find("input[type=text],textarea").each(function(J,G){if(G.value==
""){$(G.parentNode).addClass("has-error");H.push($("label[for="+G.id+"]").text().toLowerCase()+" is blank");B=false}else if(G.id=="email-address"&&!/^([a-zA-Z0-9_.\-\+])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/.test(G.value)){$(G.parentNode).addClass("has-error");H.push("you did not enter a valid email address");B=false}else $(G.parentNode).removeClass("has-error")});if(B)w.removeClass("has-errors");else{if(H.length>1){var E=H[H.length-1];E="and "+E}$("#status").text("There are problems with your comment: "+
H.join(", ")+".");w.removeClass("has-success");w.addClass("has-errors")}return B}var w=$(this);C.preventDefault();y()&&$.ajax({url:w.attr("action"),data:w.serialize(),success:function(){$("#status").text("Thanks for your comment. It will be posted to the site pending review.");w.addClass("has-success");w.get(0).reset()},error:function(B){$("#status").text("There was a problem with your comment: "+B.responseText);w.addClass("has-errors")}})}d(function(){$("#comments form").submit(F);i();o();ziba.transitions||
$("#article-info .comments").click(function(C){C.preventDefault();$.scrollTo($("#comments"))})})};M.trends=function(){d(function(){i();o()})};M.spaces=function(){d(function(){i()})};M.eventDetail=function(){d(function(){i();o()})};M.contact=function(){function F(C){function y(){var B=true,H=[];w.find("input[type=text],textarea").each(function(J,G){if(G.value==""){$(G.parentNode).addClass("has-error");H.push($("label[for="+G.id+"]").text().toLowerCase()+" is blank");B=false}else if(G.id=="email-address"&&
!/^([a-zA-Z0-9_.\-\+])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/.test(G.value)){$(G.parentNode).addClass("has-error");H.push("you did not enter a valid email address");B=false}else $(G.parentNode).removeClass("has-error")});if(B)w.removeClass("has-errors");else{if(H.length>1){var E=H[H.length-1];E="and "+E}$("#status").text("There are problems with your message: "+H.join(", ")+".");w.removeClass("has-success");w.addClass("has-errors")}return B}var w=$(this);C.preventDefault();y()&&$.ajax({url:w.attr("action"),
data:w.serialize(),success:function(){$("#status").text("Thanks for your message. We will get back to you shortly.");w.addClass("has-success");w.get(0).reset()},error:function(B){$("#status").text("There was a problem with your message: "+B.responseText);w.addClass("has-errors")}})}d(function(){$(".address span").css({cursor:"pointer"});$(".address address").hide();$(".address span").toggle(function(){$(this).next("address").slideDown(200)},function(){$(this).next("address").slideUp(200)});$("#inquiry").submit(F)})};
M.about=function(){swfobject.embedSWF("/frontend/swf/main.swf","swf",900,500,"9.0.0","/frontend/swf/expressInstall.swf",{mainPath:"http://"+(window.location.host||window.location.hostname),swfPath:"/frontend/swf/",siteXML:"/frontend/swf/site.xml"},{},{})};M.setCultureHeight=function(F){$("#swf").height(F)};M.careers=function(){function F(){if(E[this.id]){E[this.id].cancelUpload(null,false);E[this.id].customSettings.queued.empty().hide()}$(this).removeClass("working")}function C(c){$.ajax({type:"PUT",
url:c.attr("action"),data:c.serialize(),success:function(){c.find(".status").text("Your information has been received. We will review it shortly.");c.addClass("has-success")},error:function(){c.find(".status").text("There was a problem with your submission. Please review it for incorrect or missing information.");c.removeClass("has-success");c.addClass("has-errors")}})}function y(c){function e(g){var k=true,r=[];g.find("input[name]").each(function(A,W){if(W.value==""){$(W.parentNode).addClass("has-error");
r.push($("label[for="+W.id+"]").text().toLowerCase()+" is blank");k=false}else $(W.parentNode).removeClass("has-error")});if(G&&E[g.attr("id")]&&E[g.attr("id")].getStats().files_queued==0){r.push("a resume/portfolio is required with your submission");k=false}if(k)g.removeClass("has-errors");else{if(r.length>1){var t=r[r.length-1];t="and "+t}g.find(".status").text("There were problems with your application: "+r.join(", ")+".");g.removeClass("has-success");g.addClass("has-errors")}return k}c.preventDefault();
if(e($(this)))G&&E[this.id]&&E[this.id].getStats().files_queued>0?E[this.id].startUpload():C($(this))}function w(){$(this.parentNode).addClass("expanded").children(".description").slideDown(200)}function B(){var c=$(this.parentNode).children("form");F.call(c.get(0));$(this.parentNode).removeClass("expanded").children(".description").slideUp(200,function(){c.hide();$(".show-form").show()})}function H(c){var e=$(this).closest(".job").children("form"),g=e.attr("id");c.preventDefault();$(this).hide();
e.show();if(J&&!E[g]){e.find(".resume").append('<div>Please upload your resume, portfolio and any additional documents you would like to provide. A zipped file or single PDF is preferred.</div><div><div class="uploader"><strong>Requires Javascript and Adobe Flash.</strong></div></div><div class="queued"></div><div class="progress">Progress: <span class="overall"><span class="progress"></span></span></div>');E[g]=new SWFUpload({upload_url:"/extensions/apply_to_job/",flash_url:"/frontend/swf/swfupload.swf",
file_post_name:"resume",file_types:"*.pdf;*.doc;*.zip",file_types_description:"Resume/Portfolio (.pdf, .doc, .zip), 20MB limit",file_size_limit:"20MB",file_upload_limit:0,file_queue_limit:0,button_placeholder:e.find(".uploader").get(0),button_image_url:"/frontend/img/select-file.png",button_window_mode:SWFUpload.WINDOW_MODE.TRANSPARENT,button_width:68,button_height:22,button_cursor:SWFUpload.CURSOR.HAND,swfupload_loaded_handler:function(){G=true},file_queued_handler:U,file_queue_error_handler:L,upload_start_handler:Q,
upload_progress_handler:V,upload_error_handler:l,upload_success_handler:s,upload_complete_handler:b});E[g].customSettings={form:e,queued:e.find(".queued"),progress:e.find(".progress")}}}var E={},J=false,G=false,U=function(c){if(this.customSettings.file_queued){this.cancelUpload(this.customSettings.file_queued);this.customSettings.queued.empty()}this.customSettings.queued.text("File: ").append("<span>"+c.name+"</span>").show();this.customSettings.file_queued=c.id},L=function(c,e,g){this.customSettings.queued.show().text("Error: ").append('<span class="error">'+
g+"</span>").show()},Q=function(){var c=this;c.customSettings.form.removeClass("has-errors");c.customSettings.form.find("input[name]").each(function(e,g){c.addPostParam(g.name,g.value)});c.customSettings.progress.find(".progress").css({width:"0"});c.customSettings.form.addClass("working");return true},V=function(c,e,g){c=this.customSettings.progress.find(".progress");e=Math.floor(e/g*100);c.css({width:e+"%"})},l=function(){this.customSettings.form.children(".status").text("There was a problem with your submission. Please review it for incorrect or missing information.");
this.cancelUpload();this.customSettings.file_queued=null;this.customSettings.queued.empty().hide();this.customSettings.form.removeClass("working");this.customSettings.form.addClass("has-errors")},s=function(){this.customSettings.form.children(".status").text("Your information has been recieved. We will review it shortly.");this.customSettings.progress.find(".progress").css({width:"100%"});this.customSettings.form.addClass("has-success")},b=function(){this.customSettings.form.removeClass("working")};
d(function(){J=swfobject.getFlashPlayerVersion().major>9;$(".job > h2").toggle(w,B);$("#jobs form").each(function(c,e){$(e).submit(y);$(e).bind("reset",null,F)});$(".show-form").click(H)});ziba.routing&&ziba.routing.onUnload(function(){for(form_id in E){E[form_id].customSettings.form=E[form_id].customSettings.queued=E[form_id].customSettings.progress=null;E[form_id].destroy()}E=null;J=G=false})};M.myZibaLogin=function(){function F(w){var B=true,H=[];w.find("input[type=text],input[type=password]").each(function(J,
G){if(G.value==""){$(G.parentNode).addClass("has-error");H.push($("label[for="+G.id+"]").text().toLowerCase()+" is blank");B=false}else if(G.name=="password_confirm"&&G.value!==w.find('input[name="account[password]"]').val()){$(G.parentNode).addClass("has-error");H.push("password fields do not match");B=false}else $(G.parentNode).removeClass("has-error")});if(B)w.removeClass("has-errors");else{if(H.length>1){var E=H[H.length-1];E="and "+E}w.find(".status").text("Error: "+H.join(", ")+".");w.removeClass("has-success");
w.addClass("has-errors")}return B}function C(w){var B=$(this),H=B.attr("action");w.preventDefault();F(B)&&$.ajax({type:"PUT",url:H,data:B.serialize(),success:function(){B.find(".status").text("Please check your e-mail to verify your account.");B.addClass("has-success")},error:function(E){B.find(".status").text("Sorry, there was a problem creating your account: "+E.responseText);B.removeClass("has-success");B.addClass("has-errors")}})}function y(w){var B=$(this),H=B.attr("action");w.preventDefault();
F(B)&&$.ajax({type:"PUT",url:H,data:B.serialize(),success:function(E){x(E)},error:function(){B.find(".status").text("We could not log you in with those credentials.");B.removeClass("has-success");B.addClass("has-errors")}})}d(function(){$("#sign-up").submit(C);$("#log-in").submit(y);ziba.transitions&&$("#my-ziba-corner").not(".locked").each(function(){$(this).css({height:"0",width:"0"});window.setTimeout(v,600)})})};M.myZibaAccount=function(){function F(){$("#account-options").slideDown(200)}function C(){$("#account-options").slideUp(200)}
function y(){$("#remove-account").slideDown(200)}function w(){$("#remove-account").slideUp(200)}function B(U){U.preventDefault();$.ajax({type:"GET",url:U.target.href,success:x})}function H(U){var L=true,Q=[];U.find("input[type=text],input[type=password]").each(function(l,s){if(s.value==""){$(s.parentNode).addClass("has-error");Q.push($("label[for="+s.id+"]").text().toLowerCase()+" is blank");L=false}else if(s.name=="password_confirm"&&s.value!==U.find('input[name="password"]').val()){$(s.parentNode).addClass("has-error");
Q.push("password fields do not match");L=false}else $(s.parentNode).removeClass("has-error")});if(L)U.removeClass("has-errors");else{if(Q.length>1){var V=Q[Q.length-1];V="and "+V}U.find(".status").text("Update error: "+Q.join(", ")+".");U.removeClass("has-success");U.addClass("has-errors")}return L}function E(U){var L=$(this),Q=L.attr("action");U.preventDefault();H(L)&&$.ajax({type:"POST",url:Q,data:L.serialize(),success:function(){L.find(".status").text("Your account has been updated.");L.addClass("has-success");
L.removeClass("has-errors")},error:function(V){L.find(".status").text("We had trouble updating your account: "+V.responseText);L.removeClass("has-success");L.addClass("has-errors")}})}function J(U){var L=this.href,Q=$(this).closest("li");if(pageTracker){var V=Q.find("a.info")[0].href.replace("http://"+window.location.host,"");pageTracker._trackEvent("My Ziba","Remove",V)}U.preventDefault();$.ajax({url:L,success:function(){Q.slideUp(200,function(){Q.remove()})}})}function G(U){var L=$(this),Q=L.attr("action");
U.preventDefault();$.ajax({type:"GET",url:Q,data:L.serialize(),success:function(V){x(V)}})}d(function(){$(".delete").click(J);$("#account-options").hide();$(".account-options").toggle(F,C);$("#remove-account").hide();$(".remove-account").toggle(y,w);$("#remove-account").bind("reset",w);$("#update-email").submit(E);$("#update-password").submit(E);$("#remove-account").submit(G);$("#logout").click(B);ziba.transitions&&$("#my-ziba-corner").not(".locked").each(function(){$(this).css({height:"0",width:"0"});
window.setTimeout(v,600)})})};M.myZibaForgot=function(){function F(y){var w=true,B=[];y.find("input[type=text],input[type=password]").each(function(E,J){if(J.value==""){$(J.parentNode).addClass("has-error");B.push($("label[for="+J.id+"]").text().toLowerCase()+" is blank");w=false}else $(J.parentNode).removeClass("has-error")});if(w)y.removeClass("has-errors");else{if(B.length>1){var H=B[B.length-1];H="and "+H}y.find(".status").text("Log in error: "+B.join(", ")+".");y.removeClass("has-success");y.addClass("has-errors")}return w}
function C(y){var w=$(this),B=w.attr("action");y.preventDefault();F(w)&&$.ajax({type:"POST",url:B,data:w.serialize(),success:function(H){w.find(".status").text(H);w.addClass("has-success");w.removeClass("has-errors")},error:function(H){w.find(".status").text("There was a problem: "+H.responseText);w.removeClass("has-success");w.addClass("has-errors")}})}d(function(){$("form").submit(C);$("#my-ziba-corner").not(".locked").each(function(){$(this).css({height:"0",width:"0"});window.setTimeout(v,600)})})};
M.myZibaReset=function(){function F(y){var w=true,B=[];y.find("input[type=text],input[type=password]").each(function(E,J){if(J.value==""){$(J.parentNode).addClass("has-error");B.push($("label[for="+J.id+"]").text().toLowerCase()+" is blank");w=false}else $(J.parentNode).removeClass("has-error")});if(w)y.removeClass("has-errors");else{if(B.length>1){var H=B[B.length-1];H="and "+H}y.find(".status").text("Error: "+B.join(", ")+".");y.removeClass("has-success");y.addClass("has-errors")}return w}function C(y){var w=
$(this);F(w)||y.preventDefault()}d(function(){$("form").submit(C);$("#my-ziba-corner").not(".locked").each(function(){$(this).css({height:"0",width:"0"});window.setTimeout(v,600)})})};return M}();
function getPageScroll(){var j,z;if(self.pageYOffset){z=self.pageYOffset;j=self.pageXOffset}else if(document.documentElement&&document.documentElement.scrollTop){z=document.documentElement.scrollTop;j=document.documentElement.scrollLeft}else if(document.body){z=document.body.scrollTop;j=document.body.scrollLeft}return{x:j,y:z}}
function getPageSize(){var j,z,K,N;if(window.innerHeight&&window.scrollMaxY){j=window.innerWidth+window.scrollMaxX;z=window.innerHeight+window.scrollMaxY}else if(document.body.scrollHeight>document.body.offsetHeight){j=document.body.scrollWidth;z=document.body.scrollHeight}else{j=document.body.offsetWidth;z=document.body.offsetHeight}if(self.innerHeight){K=document.documentElement.clientWidth?document.documentElement.clientWidth:self.innerWidth;N=self.innerHeight}else if(document.documentElement&&
document.documentElement.clientHeight){K=document.documentElement.clientWidth;N=document.documentElement.clientHeight}else if(document.body){K=document.body.clientWidth;N=document.body.clientHeight}pageHeight=z<N?N:z;pageWidth=j<K?j:K;return{pageWidth:pageWidth,pageHeight:pageHeight,windowWidth:K,windowHeight:N}}
(function(){function j(d){d=d.split("-");for(var T=[],F=0,C=d.length;F<C;++F)T.push(d[F].substr(0,1).toUpperCase()+d[F].substr(1));return T.join(" ")||"Home"}function z(d){for(var T=M,F,C=0,y=d.length;C<y;++C)if(T[d[C]])T=T[d[C]];else{F=T._slug?T._slug:T._landing;break}if(!F)F=T._landing;return{show:function(w){var B=x();B.setup(function(){o.css({display:"block",opacity:"0",position:"relative"});switch(w){case "left":o.css({left:"20px"});break;case "up":o.css({top:"20px"});break;case "right":default:o.css({left:"-20px"});
break}F.content&&o.css({backgroundColor:F.content});n.addClass("no-fade");ziba.ready.go()});B.add(n,{backgroundColor:F.header},{duration:250,complete:function(){var H=n.css("backgroundColor");n.find("span").css({backgroundColor:H});n.removeClass("no-fade");n.find(".on").removeClass("on")}});B.add(K,{backgroundColor:F.body},{duration:250,complete:function(){}});B.add(o,{left:"0",top:"0",opacity:"1"},{duration:300,complete:function(){o.css({backgroundColor:"",left:"auto",top:"auto",position:"relative"})}});
return B},hide:function(w){var B=x(),H={opacity:"0"};B.setup(function(){var E=getPageScroll(),J=getPageSize(),G=n.height()+parseInt(n.css("padding-top"))+parseInt(n.css("padding-bottom"));$("html,body").css({overflow:"hidden"});i.css({height:i.height()+"px"});N.css({height:N.height()+"px",position:"absolute"});o.css({position:"fixed",top:-E.y+G+"px"});N.css({position:"absolute"});$("html,body").css({height:J.windowHeight+"px",width:J.windowWidth+"px"})});switch(w){case "left":H.left="-20px";break;
case "up":H.top="-=20px";break;case "right":default:H.left="20px";break}B.add(o,H,{duration:250,complete:function(){o.empty().css({left:"auto",top:"auto",position:"static",display:"none",opacity:"1"});N.css({position:"static",height:"auto"});i.css({height:"auto"});$("html, body").css({height:"auto",width:"auto",overflow:"auto"});N.removeClass("nt")}});return B}}}if(!(!document.documentElement||document.documentElement.tagName.toLowerCase()!="html"))if(!(jQuery.browser.msie&&parseInt(jQuery.browser.version,
10)<=6)){ziba.transitions=true;ziba.ready=function(){var d=[],T=function(F){$.isReady?d.push(F):$(document).ready(F)};T.go=function(){for(var F=0,C=d.length;F<C;++F)d[F].call(document,null);d=[]};return T}();var K,N,n,i,o;ziba.ready(function(){K=$("body");N=$("#clip");n=$("#header");i=$("#content-wrapper");o=$("#content")});var q=function(){function d(L){var Q=$("body"),V=false;if(L.match(/^\/((work)|(work\/client\/.*))\/$/)&&Q.attr("id")=="work"&&(!Q.hasClass("detail")||Q.hasClass("client"))){ziba.work.loadClient(L);
V=true}return V}function T(){function L(){v.hide(w,H,function(){if(y){l=y;y=null}if(J){J();J=null}Q()})}function Q(){$.ajax({url:l,dataType:"html",error:function(s){console.log(s)},success:function(){},complete:function(s){if(y){l=y;y=null;Q()}else V(s.responseText)}})}function V(s){v.show(l,s,H,function(){C=false;w=l;H="right";if(y){y=null;T()}else if(B){$.scrollTo($(B),250);B=null}})}var l=G().replace(/(.*?)\?.*/,"$1");if(E){if(!d(l))if(C)y=l;else{C=true;L()}}else if(w!=l){E=C=true;L()}else if(w!=
window.location.pathname&&window.location.pathname!="/my-ziba/reset/"){w=window.location.pathname;SWFAddress.setValue(window.location.pathname)}else{o.fadeIn(200);E=true}}var F=window.location.host||window.location.hostname,C=false,y=null,w="/",B=null,H="right",E=false,J=null,G=SWFAddress.getValue,U=function(L){var Q=$(L.target).closest("a"),V=Q.get(0).pathname;L.preventDefault();$(".on").removeClass("on");Q.addClass("on");switch(Q.attr("rel")){case "left":H="left";break;case "up":H="up";break;case "right":default:H=
"right";break}SWFAddress.setValue(V)};ziba.ready(function(){SWFAddress.setStrict(true);SWFAddress.addEventListener(SWFAddressEvent.CHANGE,T);q.addLinks($("#header")).addLinks($("#content"))});return{addLinks:function(L){$(L).find('a[rel!="notransition"][rel!="external"]').each(function(Q,V){if((V.host==F||V.hostname==F)&&!V.hash)$(V).click(U);else if(V.host==F||V.hostname==F)(V.pathname.charAt(0)=="/"?"":"/")+V.pathname==G()?$(V).click(function(l){l.preventDefault();$.scrollTo($(V.hash),250)}):$(V).click(function(l){B=
V.hash;U(l)})});return this},onUnload:function(L){J=L;return this}}}();ziba.routing=q;var v=function(){function d(y,w,B,H){var E=this,J=arguments,G;if(!F&&!C){F=true;y=y.replace(/^\/(.*)\/$/,"$1").split("/");K.attr({id:y[0]||"home"}).removeAttr("class");y[1]&&K.addClass("detail").addClass(y[1]);G=j(y[0]);document.title="Ziba - "+(G=="Home"?"A Design and Innovation Consultancy":G);o.append(w);q.addLinks(o);G=z(y).show(B);G.complete(function(){C=true;F=false;H&&H()});window.setTimeout(function(){$.inArray("my-ziba",
y)!=-1?n.addClass("my-ziba"):n.removeClass("my-ziba")},200);window.setTimeout(G.run,15)}else window.setTimeout(function(){d.apply(E,J)},50)}function T(y,w,B){var H=this,E=arguments,J;if(!F&&C){F=true;J=z(y).hide(w);J.complete(function(){C=F=false;B&&B()});window.setTimeout(J.run,15)}else window.setTimeout(function(){T.apply(H,E)},50)}var F=false,C=true;return{show:d,hide:T}}(),x=function(){var d=[],T=0,F,C,y=function(){};y.prototype={setup:function(w){F=w},add:function(w,B,H){var E=H.complete||function(){};
H.complete=function(){E();--T;if(T==0){d=[];C&&C()}};d.push(function(){w.animate(B,H)});++T},complete:function(w){C=w},run:function(){F&&F();for(var w=0,B=d.length;w<B;++w)d[w]()},finished:function(){return!T}};return new y},R={content:"transparent",body:"#ffffff",header:"#f1f1f1"},M={_landing:R,work:{_landing:R,client:{_landing:R,_slug:R},_slug:{body:"#f1f1f1",header:"#f1f1f1"}},perspectives:{_landing:R,article:{_slug:{body:"#ffffff",header:"#ffffff"}},publisher:{_slug:R},topic:{_slug:R},archive:{_slug:R},
_slug:{body:"#ffffff",header:"#ffffff"}},trends:{_landing:{content:"transparent",body:"#121212",header:"#ffffff"},_slug:{body:"#ffffff",header:"#ffffff"}},events:{_landing:R,_slug:{body:"#f1f1f1",header:"#f1f1f1"}},"my-ziba":{_landing:{body:"#269de9",header:"#269de9"}}}}})();
