(function(e,c){function g(){if(!d.isReady){try{B.documentElement.doScroll("left")}catch(a){setTimeout(g,1);return}d.ready()}}function j(a,b){b.src?d.ajax({url:b.src,async:false,dataType:"script"}):d.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function l(a,b,f,i,h,p){var q=a.length;if(typeof b==="object"){for(var x in b)l(a,x,b[x],i,h,f);return a}if(f!==c){i=!p&&i&&d.isFunction(f);for(x=0;x<q;x++)h(a[x],b,i?f.call(a[x],x,h(a[x],b)):f,p);return a}return q?
h(a[0],b):c}function m(){return(new Date).getTime()}function n(){return false}function u(){return true}function y(a,b,f){f[0].type=a;return d.event.handle.apply(b,f)}function D(a){var b,f=[],i=[],h=arguments,p,q,x,r,w,C;q=d.data(this,"events");if(!(a.liveFired===this||!q||!q.live||a.button&&a.type==="click")){a.liveFired=this;var I=q.live.slice(0);for(r=0;r<I.length;r++){q=I[r];q.origType.replace(ra,"")===a.type?i.push(q.selector):I.splice(r--,1)}p=d(a.target).closest(i,a.currentTarget);w=0;for(C=
p.length;w<C;w++)for(r=0;r<I.length;r++){q=I[r];if(p[w].selector===q.selector){x=p[w].elem;i=null;if(q.preType==="mouseenter"||q.preType==="mouseleave")i=d(a.relatedTarget).closest(q.selector)[0];if(!i||i!==x)f.push({elem:x,handleObj:q})}}w=0;for(C=f.length;w<C;w++){p=f[w];a.currentTarget=p.elem;a.data=p.handleObj.data;a.handleObj=p.handleObj;if(p.handleObj.origHandler.apply(p.elem,h)===false){b=false;break}}return b}}function L(a,b){return"live."+(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g,
"&")}function K(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function H(a,b){var f=0;b.each(function(){if(this.nodeName===(a[f]&&a[f].nodeName)){var i=d.data(a[f++]),h=d.data(this,i);if(i=i&&i.events){delete h.handle;h.events={};for(var p in i)for(var q in i[p])d.event.add(this,p,i[p][q],i[p][q].data)}}})}function F(a,b,f){var i,h,p;b=b&&b[0]?b[0].ownerDocument||b[0]:B;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===B&&!Ja.test(a[0])&&(d.support.checkClone||!Ka.test(a[0]))){h=
true;if(p=d.fragments[a[0]])if(p!==1)i=p}if(!i){i=b.createDocumentFragment();d.clean(a,b,i,f)}if(h)d.fragments[a[0]]=p?i:1;return{fragment:i,cacheable:h}}function M(a,b){var f={};d.each(La.concat.apply([],La.slice(0,b)),function(){f[this]=a});return f}function P(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var d=function(a,b){return new d.fn.init(a,b)},X=e.jQuery,aa=e.$,B=e.document,fa,ja=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,ha=/^.[^:#\[\.,]*$/,sa=/\S/,
ka=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,va=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,la=navigator.userAgent,ta=false,oa=[],E,N=Object.prototype.toString,R=Object.prototype.hasOwnProperty,T=Array.prototype.push,V=Array.prototype.slice,Z=Array.prototype.indexOf;d.fn=d.prototype={init:function(a,b){var f,i;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=B;this[0]=B.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((f=ja.exec(a))&&
(f[1]||!b))if(f[1]){i=b?b.ownerDocument||b:B;if(a=va.exec(a))if(d.isPlainObject(b)){a=[B.createElement(a[1])];d.fn.attr.call(a,b,true)}else a=[i.createElement(a[1])];else{a=F([f[1]],[i]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return d.merge(this,a)}else{if(b=B.getElementById(f[2])){if(b.id!==f[2])return fa.find(a);this.length=1;this[0]=b}this.context=B;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=B;a=B.getElementsByTagName(a);return d.merge(this,
a)}else return!b||b.jquery?(b||fa).find(a):d(b).find(a);else if(d.isFunction(a))return fa.ready(a);if(a.selector!==c){this.selector=a.selector;this.context=a.context}return d.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return V.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,f){var i=d();d.isArray(a)?T.apply(i,a):d.merge(i,a);i.prevObject=this;i.context=this.context;if(b===
"find")i.selector=this.selector+(this.selector?" ":"")+f;else if(b)i.selector=this.selector+"."+b+"("+f+")";return i},each:function(a,b){return d.each(this,a,b)},ready:function(a){d.bindReady();if(d.isReady)a.call(B,d);else oa&&oa.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(V.apply(this,arguments),"slice",V.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,
function(b,f){return a.call(b,f,b)}))},end:function(){return this.prevObject||d(null)},push:T,sort:[].sort,splice:[].splice};d.fn.init.prototype=d.fn;d.extend=d.fn.extend=function(){var a=arguments[0]||{},b=1,f=arguments.length,i=false,h,p,q,x;if(typeof a==="boolean"){i=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!d.isFunction(a))a={};if(f===b){a=this;--b}for(;b<f;b++)if((h=arguments[b])!=null)for(p in h){q=a[p];x=h[p];if(a!==x)if(i&&x&&(d.isPlainObject(x)||d.isArray(x))){q=q&&(d.isPlainObject(q)||
d.isArray(q))?q:d.isArray(x)?[]:{};a[p]=d.extend(i,q,x)}else if(x!==c)a[p]=x}return a};d.extend({noConflict:function(a){e.$=aa;if(a)e.jQuery=X;return d},isReady:false,ready:function(){if(!d.isReady){if(!B.body)return setTimeout(d.ready,13);d.isReady=true;if(oa){for(var a,b=0;a=oa[b++];)a.call(B,d);oa=null}d.fn.triggerHandler&&d(B).triggerHandler("ready")}},bindReady:function(){if(!ta){ta=true;if(B.readyState==="complete")return d.ready();if(B.addEventListener){B.addEventListener("DOMContentLoaded",
E,false);e.addEventListener("load",d.ready,false)}else if(B.attachEvent){B.attachEvent("onreadystatechange",E);e.attachEvent("onload",d.ready);var a=false;try{a=e.frameElement==null}catch(b){}B.documentElement.doScroll&&a&&g()}}},isFunction:function(a){return N.call(a)==="[object Function]"},isArray:function(a){return N.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||N.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!R.call(a,"constructor")&&!R.call(a.constructor.prototype,
"isPrototypeOf"))return false;var b;for(b in a);return b===c||R.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;return true},error:function(a){throw a;},parseJSON:function(a){if(typeof a!=="string"||!a)return null;a=d.trim(a);if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e.JSON&&e.JSON.parse?e.JSON.parse(a):(new Function("return "+
a))();else d.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&sa.test(a)){var b=B.getElementsByTagName("head")[0]||B.documentElement,f=B.createElement("script");f.type="text/javascript";if(d.support.scriptEval)f.appendChild(B.createTextNode(a));else f.text=a;b.insertBefore(f,b.firstChild);b.removeChild(f)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,f){var i,h=0,p=a.length,q=p===c||d.isFunction(a);if(f)if(q)for(i in a){if(b.apply(a[i],
f)===false)break}else for(;h<p;){if(b.apply(a[h++],f)===false)break}else if(q)for(i in a){if(b.call(a[i],i,a[i])===false)break}else for(f=a[0];h<p&&b.call(f,h,f)!==false;f=a[++h]);return a},trim:function(a){return(a||"").replace(ka,"")},makeArray:function(a,b){b=b||[];if(a!=null)a.length==null||typeof a==="string"||d.isFunction(a)||typeof a!=="function"&&a.setInterval?T.call(b,a):d.merge(b,a);return b},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var f=0,i=b.length;f<i;f++)if(b[f]===
a)return f;return-1},merge:function(a,b){var f=a.length,i=0;if(typeof b.length==="number")for(var h=b.length;i<h;i++)a[f++]=b[i];else for(;b[i]!==c;)a[f++]=b[i++];a.length=f;return a},grep:function(a,b,f){for(var i=[],h=0,p=a.length;h<p;h++)!f!==!b(a[h],h)&&i.push(a[h]);return i},map:function(a,b,f){for(var i=[],h,p=0,q=a.length;p<q;p++){h=b(a[p],p,f);if(h!=null)i[i.length]=h}return i.concat.apply([],i)},guid:1,proxy:function(a,b,f){if(arguments.length===2)if(typeof b==="string"){f=a;a=f[b];b=c}else if(b&&
!d.isFunction(b)){f=b;b=c}if(!b&&a)b=function(){return a.apply(f||this,arguments)};if(a)b.guid=a.guid=a.guid||b.guid||d.guid++;return b},uaMatch:function(a){a=a.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},browser:{}});la=d.uaMatch(la);if(la.browser){d.browser[la.browser]=true;d.browser.version=la.version}if(d.browser.webkit)d.browser.safari=
true;if(Z)d.inArray=function(a,b){return Z.call(b,a)};fa=d(B);if(B.addEventListener)E=function(){B.removeEventListener("DOMContentLoaded",E,false);d.ready()};else if(B.attachEvent)E=function(){if(B.readyState==="complete"){B.detachEvent("onreadystatechange",E);d.ready()}};(function(){d.support={};var a=B.documentElement,b=B.createElement("script"),f=B.createElement("div"),i="script"+m();f.style.display="none";f.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
var h=f.getElementsByTagName("*"),p=f.getElementsByTagName("a")[0];if(!(!h||!h.length||!p)){d.support={leadingWhitespace:f.firstChild.nodeType===3,tbody:!f.getElementsByTagName("tbody").length,htmlSerialize:!!f.getElementsByTagName("link").length,style:/red/.test(p.getAttribute("style")),hrefNormalized:p.getAttribute("href")==="/a",opacity:/^0.55$/.test(p.style.opacity),cssFloat:!!p.style.cssFloat,checkOn:f.getElementsByTagName("input")[0].value==="on",optSelected:B.createElement("select").appendChild(B.createElement("option")).selected,
parentNode:f.removeChild(f.appendChild(B.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(B.createTextNode("window."+i+"=1;"))}catch(q){}a.insertBefore(b,a.firstChild);if(e[i]){d.support.scriptEval=true;delete e[i]}try{delete b.test}catch(x){d.support.deleteExpando=false}a.removeChild(b);if(f.attachEvent&&f.fireEvent){f.attachEvent("onclick",function r(){d.support.noCloneEvent=
false;f.detachEvent("onclick",r)});f.cloneNode(true).fireEvent("onclick")}f=B.createElement("div");f.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=B.createDocumentFragment();a.appendChild(f.firstChild);d.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;d(function(){var r=B.createElement("div");r.style.width=r.style.paddingLeft="1px";B.body.appendChild(r);d.boxModel=d.support.boxModel=r.offsetWidth===2;B.body.removeChild(r).style.display="none"});a=function(r){var w=
B.createElement("div");r="on"+r;var C=r in w;if(!C){w.setAttribute(r,"return;");C=typeof w[r]==="function"}return C};d.support.submitBubbles=a("submit");d.support.changeBubbles=a("change");a=b=f=h=p=null}})();d.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var U="jQuery"+m(),ia=0,ba={};d.extend({cache:{},expando:U,noData:{embed:true,object:true,
applet:true},data:function(a,b,f){if(!(a.nodeName&&d.noData[a.nodeName.toLowerCase()])){a=a==e?ba:a;var i=a[U],h=d.cache;if(!i&&typeof b==="string"&&f===c)return null;i||(i=++ia);if(typeof b==="object"){a[U]=i;h[i]=d.extend(true,{},b)}else if(!h[i]){a[U]=i;h[i]={}}a=h[i];if(f!==c)a[b]=f;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&d.noData[a.nodeName.toLowerCase()])){a=a==e?ba:a;var f=a[U],i=d.cache,h=i[f];if(b){if(h){delete h[b];d.isEmptyObject(h)&&d.removeData(a)}}else{if(d.support.deleteExpando)delete a[d.expando];
else a.removeAttribute&&a.removeAttribute(d.expando);delete i[f]}}}});d.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return d.data(this[0]);else if(typeof a==="object")return this.each(function(){d.data(this,a)});var f=a.split(".");f[1]=f[1]?"."+f[1]:"";if(b===c){var i=this.triggerHandler("getData"+f[1]+"!",[f[0]]);if(i===c&&this.length)i=d.data(this[0],a);return i===c&&f[1]?this.data(f[0]):i}else return this.trigger("setData"+f[1]+"!",[f[0],b]).each(function(){d.data(this,
a,b)})},removeData:function(a){return this.each(function(){d.removeData(this,a)})}});d.extend({queue:function(a,b,f){if(a){b=(b||"fx")+"queue";var i=d.data(a,b);if(!f)return i||[];if(!i||d.isArray(f))i=d.data(a,b,d.makeArray(f));else i.push(f);return i}},dequeue:function(a,b){b=b||"fx";var f=d.queue(a,b),i=f.shift();if(i==="inprogress")i=f.shift();if(i){b==="fx"&&f.unshift("inprogress");i.call(a,function(){d.dequeue(a,b)})}}});d.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===
c)return d.queue(this[0],a);return this.each(function(){var f=d.queue(this,a,b);a==="fx"&&f[0]!=="inprogress"&&d.dequeue(this,a)})},dequeue:function(a){return this.each(function(){d.dequeue(this,a)})},delay:function(a,b){a=d.fx?d.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var f=this;setTimeout(function(){d.dequeue(f,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var ga=/[\n\t]/g,za=/\s+/,ab=/\r/g,bb=/href|src|style/,cb=/(button|input)/i,db=/(button|input|object|select|textarea)/i,
eb=/^(a|area)$/i,Ma=/radio|checkbox/;d.fn.extend({attr:function(a,b){return l(this,a,b,true,d.attr)},removeAttr:function(a){return this.each(function(){d.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(d.isFunction(a))return this.each(function(w){var C=d(this);C.addClass(a.call(this,w,C.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(za),f=0,i=this.length;f<i;f++){var h=this[f];if(h.nodeType===1)if(h.className){for(var p=" "+h.className+" ",
q=h.className,x=0,r=b.length;x<r;x++)if(p.indexOf(" "+b[x]+" ")<0)q+=" "+b[x];h.className=d.trim(q)}else h.className=a}return this},removeClass:function(a){if(d.isFunction(a))return this.each(function(r){var w=d(this);w.removeClass(a.call(this,r,w.attr("class")))});if(a&&typeof a==="string"||a===c)for(var b=(a||"").split(za),f=0,i=this.length;f<i;f++){var h=this[f];if(h.nodeType===1&&h.className)if(a){for(var p=(" "+h.className+" ").replace(ga," "),q=0,x=b.length;q<x;q++)p=p.replace(" "+b[q]+" ",
" ");h.className=d.trim(p)}else h.className=""}return this},toggleClass:function(a,b){var f=typeof a,i=typeof b==="boolean";if(d.isFunction(a))return this.each(function(h){var p=d(this);p.toggleClass(a.call(this,h,p.attr("class"),b),b)});return this.each(function(){if(f==="string")for(var h,p=0,q=d(this),x=b,r=a.split(za);h=r[p++];){x=i?x:!q.hasClass(h);q[x?"addClass":"removeClass"](h)}else if(f==="undefined"||f==="boolean"){this.className&&d.data(this,"__className__",this.className);this.className=
this.className||a===false?"":d.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,f=this.length;b<f;b++)if((" "+this[b].className+" ").replace(ga," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===c){var b=this[0];if(b){if(d.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(d.nodeName(b,"select")){var f=b.selectedIndex,i=[],h=b.options;b=b.type==="select-one";if(f<0)return null;var p=b?f:0;for(f=b?f+1:h.length;p<f;p++){var q=
h[p];if(q.selected){a=d(q).val();if(b)return a;i.push(a)}}return i}if(Ma.test(b.type)&&!d.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(ab,"")}return c}var x=d.isFunction(a);return this.each(function(r){var w=d(this),C=a;if(this.nodeType===1){if(x)C=a.call(this,r,w.val());if(typeof C==="number")C+="";if(d.isArray(C)&&Ma.test(this.type))this.checked=d.inArray(w.val(),C)>=0;else if(d.nodeName(this,"select")){var I=d.makeArray(C);d("option",this).each(function(){this.selected=
d.inArray(d(this).val(),I)>=0});if(!I.length)this.selectedIndex=-1}else this.value=C}})}});d.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,f,i){if(!a||a.nodeType===3||a.nodeType===8)return c;if(i&&b in d.attrFn)return d(a)[b](f);i=a.nodeType!==1||!d.isXMLDoc(a);var h=f!==c;b=i&&d.props[b]||b;if(a.nodeType===1){var p=bb.test(b);if(b in a&&i&&!p){if(h){b==="type"&&cb.test(a.nodeName)&&a.parentNode&&d.error("type property can't be changed");
a[b]=f}if(d.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:db.test(a.nodeName)||eb.test(a.nodeName)&&a.href?0:c;return a[b]}if(!d.support.style&&i&&b==="style"){if(h)a.style.cssText=""+f;return a.style.cssText}h&&a.setAttribute(b,""+f);a=!d.support.hrefNormalized&&i&&p?a.getAttribute(b,2):a.getAttribute(b);return a===null?c:a}return d.style(a,b,f)}});var ra=/\.(.*)$/,fb=function(a){return a.replace(/[^\w\s\.\|`]/g,
function(b){return"\\"+b})};d.event={add:function(a,b,f,i){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==e&&!a.frameElement)a=e;var h,p;if(f.handler){h=f;f=h.handler}if(!f.guid)f.guid=d.guid++;if(p=d.data(a)){var q=p.events=p.events||{},x=p.handle;if(!x)p.handle=x=function(){return typeof d!=="undefined"&&!d.event.triggered?d.event.handle.apply(x.elem,arguments):c};x.elem=a;b=b.split(" ");for(var r,w=0,C;r=b[w++];){p=h?d.extend({},h):{handler:f,data:i};if(r.indexOf(".")>-1){C=r.split(".");
r=C.shift();p.namespace=C.slice(0).sort().join(".")}else{C=[];p.namespace=""}p.type=r;p.guid=f.guid;var I=q[r],S=d.event.special[r]||{};if(!I){I=q[r]=[];if(!S.setup||S.setup.call(a,i,C,x)===false)if(a.addEventListener)a.addEventListener(r,x,false);else a.attachEvent&&a.attachEvent("on"+r,x)}if(S.add){S.add.call(a,p);if(!p.handler.guid)p.handler.guid=f.guid}I.push(p);d.event.global[r]=true}a=null}}},global:{},remove:function(a,b,f,i){if(!(a.nodeType===3||a.nodeType===8)){var h,p=0,q,x,r,w,C,I,S=d.data(a),
Y=S&&S.events;if(S&&Y){if(b&&b.type){f=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(h in Y)d.event.remove(a,h+b)}else{for(b=b.split(" ");h=b[p++];){w=h;q=h.indexOf(".")<0;x=[];if(!q){x=h.split(".");h=x.shift();r=new RegExp("(^|\\.)"+d.map(x.slice(0).sort(),fb).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(C=Y[h])if(f){w=d.event.special[h]||{};for(W=i||0;W<C.length;W++){I=C[W];if(f.guid===I.guid){if(q||r.test(I.namespace)){i==null&&C.splice(W--,1);w.remove&&w.remove.call(a,I)}if(i!=
null)break}}if(C.length===0||i!=null&&C.length===1){if(!w.teardown||w.teardown.call(a,x)===false)Na(a,h,S.handle);delete Y[h]}}else for(var W=0;W<C.length;W++){I=C[W];if(q||r.test(I.namespace)){d.event.remove(a,w,I.handler,W);C.splice(W--,1)}}}if(d.isEmptyObject(Y)){if(b=S.handle)b.elem=null;delete S.events;delete S.handle;d.isEmptyObject(S)&&d.removeData(a)}}}}},trigger:function(a,b,f,i){var h=a.type||a;if(!i){a=typeof a==="object"?a[U]?a:d.extend(d.Event(h),a):d.Event(h);if(h.indexOf("!")>=0){a.type=
h=h.slice(0,-1);a.exclusive=true}if(!f){a.stopPropagation();d.event.global[h]&&d.each(d.cache,function(){this.events&&this.events[h]&&d.event.trigger(a,b,this.handle.elem)})}if(!f||f.nodeType===3||f.nodeType===8)return c;a.result=c;a.target=f;b=d.makeArray(b);b.unshift(a)}a.currentTarget=f;(i=d.data(f,"handle"))&&i.apply(f,b);i=f.parentNode||f.ownerDocument;try{if(!(f&&f.nodeName&&d.noData[f.nodeName.toLowerCase()]))if(f["on"+h]&&f["on"+h].apply(f,b)===false)a.result=false}catch(p){}if(!a.isPropagationStopped()&&
i)d.event.trigger(a,b,i,true);else if(!a.isDefaultPrevented()){i=a.target;var q,x=d.nodeName(i,"a")&&h==="click",r=d.event.special[h]||{};if((!r._default||r._default.call(f,a)===false)&&!x&&!(i&&i.nodeName&&d.noData[i.nodeName.toLowerCase()])){try{if(i[h]){if(q=i["on"+h])i["on"+h]=null;d.event.triggered=true;i[h]()}}catch(w){}if(q)i["on"+h]=q;d.event.triggered=false}}},handle:function(a){var b,f,i,h;a=arguments[0]=d.event.fix(a||e.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;
if(!b){f=a.type.split(".");a.type=f.shift();i=new RegExp("(^|\\.)"+f.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}h=d.data(this,"events");f=h[a.type];if(h&&f){f=f.slice(0);h=0;for(var p=f.length;h<p;h++){var q=f[h];if(b||i.test(q.namespace)){a.handler=q.handler;a.data=q.data;a.handleObj=q;q=q.handler.apply(this,arguments);if(q!==c){a.result=q;if(q===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(a){if(a[U])return a;var b=a;a=d.Event(b);for(var f=this.props.length,i;f;){i=this.props[--f];a[i]=b[i]}if(!a.target)a.target=a.srcElement||B;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=B.documentElement;f=B.body;a.pageX=a.clientX+(b&&b.scrollLeft||f&&f.scrollLeft||0)-(b&&b.clientLeft||f&&f.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||
f&&f.scrollTop||0)-(b&&b.clientTop||f&&f.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==c)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:d.proxy,special:{ready:{setup:d.bindReady,teardown:d.noop},live:{add:function(a){d.event.add(this,a.origType,d.extend({},a,{handler:D}))},remove:function(a){var b=true,f=a.origType.replace(ra,"");d.each(d.data(this,
"events").live||[],function(){if(f===this.origType.replace(ra,""))return b=false});b&&d.event.remove(this,a.origType,D)}},beforeunload:{setup:function(a,b,f){if(this.setInterval)this.onbeforeunload=f;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};var Na=B.removeEventListener?function(a,b,f){a.removeEventListener(b,f,false)}:function(a,b,f){a.detachEvent("on"+b,f)};d.Event=function(a){if(!this.preventDefault)return new d.Event(a);if(a&&a.type){this.originalEvent=
a;this.type=a.type}else this.type=a;this.timeStamp=m();this[U]=true};d.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=u;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:n,isPropagationStopped:n,
isImmediatePropagationStopped:n};var Oa=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;d.event.handle.apply(this,arguments)}}catch(f){}},Pa=function(a){a.type=a.data;d.event.handle.apply(this,arguments)};d.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){d.event.special[a]={setup:function(f){d.event.add(this,b,f&&f.selector?Pa:Oa,a)},teardown:function(f){d.event.remove(this,b,f&&f.selector?Pa:Oa)}}});if(!d.support.submitBubbles)d.event.special.submit=
{setup:function(){if(this.nodeName.toLowerCase()!=="form"){d.event.add(this,"click.specialSubmit",function(a){var b=a.target,f=b.type;if((f==="submit"||f==="image")&&d(b).closest("form").length)return y("submit",this,arguments)});d.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,f=b.type;if((f==="text"||f==="password")&&d(b).closest("form").length&&a.keyCode===13)return y("submit",this,arguments)})}else return false},teardown:function(){d.event.remove(this,".specialSubmit")}};if(!d.support.changeBubbles){var Aa=
/textarea|input|select/i,Ba,Qa=function(a){var b=a.type,f=a.value;if(b==="radio"||b==="checkbox")f=a.checked;else if(b==="select-multiple")f=a.selectedIndex>-1?d.map(a.options,function(i){return i.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")f=a.selectedIndex;return f},Ca=function(a,b){var f=a.target,i,h;if(!(!Aa.test(f.nodeName)||f.readOnly)){i=d.data(f,"_change_data");h=Qa(f);if(a.type!=="focusout"||f.type!=="radio")d.data(f,"_change_data",h);if(!(i===c||h===i))if(i!=null||
h){a.type="change";return d.event.trigger(a,b,f)}}};d.event.special.change={filters:{focusout:Ca,click:function(a){var b=a.target,f=b.type;if(f==="radio"||f==="checkbox"||b.nodeName.toLowerCase()==="select")return Ca.call(this,a)},keydown:function(a){var b=a.target,f=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(f==="checkbox"||f==="radio")||f==="select-multiple")return Ca.call(this,a)},beforeactivate:function(a){a=a.target;d.data(a,"_change_data",Qa(a))}},setup:function(){if(this.type===
"file")return false;for(var a in Ba)d.event.add(this,a+".specialChange",Ba[a]);return Aa.test(this.nodeName)},teardown:function(){d.event.remove(this,".specialChange");return Aa.test(this.nodeName)}};Ba=d.event.special.change.filters}B.addEventListener&&d.each({focus:"focusin",blur:"focusout"},function(a,b){function f(i){i=d.event.fix(i);i.type=b;return d.event.handle.call(this,i)}d.event.special[b]={setup:function(){this.addEventListener(a,f,true)},teardown:function(){this.removeEventListener(a,
f,true)}}});d.each(["bind","one"],function(a,b){d.fn[b]=function(f,i,h){if(typeof f==="object"){for(var p in f)this[b](p,i,f[p],h);return this}if(d.isFunction(i)){h=i;i=c}var q=b==="one"?d.proxy(h,function(r){d(this).unbind(r,q);return h.apply(this,arguments)}):h;if(f==="unload"&&b!=="one")this.one(f,i,h);else{p=0;for(var x=this.length;p<x;p++)d.event.add(this[p],f,q,i)}return this}});d.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault)for(var f in a)this.unbind(f,a[f]);else{f=
0;for(var i=this.length;f<i;f++)d.event.remove(this[f],a,b)}return this},delegate:function(a,b,f,i){return this.live(b,f,i,a)},undelegate:function(a,b,f){return arguments.length===0?this.unbind("live"):this.die(b,null,f,a)},trigger:function(a,b){return this.each(function(){d.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=d.Event(a);a.preventDefault();a.stopPropagation();d.event.trigger(a,b,this[0]);return a.result}},toggle:function(a){for(var b=arguments,f=1;f<b.length;)d.proxy(a,
b[f++]);return this.click(d.proxy(a,function(i){var h=(d.data(this,"lastToggle"+a.guid)||0)%f;d.data(this,"lastToggle"+a.guid,h+1);i.preventDefault();return b[h].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Ra={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};d.each(["live","die"],function(a,b){d.fn[b]=function(f,i,h,p){var q,x=0,r,w,C=p||this.selector,I=p?this:d(this.context);if(d.isFunction(i)){h=i;i=c}for(f=
(f||"").split(" ");(q=f[x++])!=null;){p=ra.exec(q);r="";if(p){r=p[0];q=q.replace(ra,"")}if(q==="hover")f.push("mouseenter"+r,"mouseleave"+r);else{w=q;if(q==="focus"||q==="blur"){f.push(Ra[q]+r);q+=r}else q=(Ra[q]||q)+r;b==="live"?I.each(function(){d.event.add(this,L(q,C),{data:i,selector:C,handler:h,origType:q,origHandler:h,preType:w})}):I.unbind(L(q,C),h)}}return this}});d.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),
function(a,b){d.fn[b]=function(f){return f?this.bind(b,f):this.trigger(b)};if(d.attrFn)d.attrFn[b]=true});e.attachEvent&&!e.addEventListener&&e.attachEvent("onunload",function(){for(var a in d.cache)if(d.cache[a].handle)try{d.event.remove(d.cache[a].handle.elem)}catch(b){}});(function(){function a(k){for(var o="",t,v=0;k[v];v++){t=k[v];if(t.nodeType===3||t.nodeType===4)o+=t.nodeValue;else if(t.nodeType!==8)o+=a(t.childNodes)}return o}function b(k,o,t,v,A,z){A=0;for(var J=v.length;A<J;A++){var G=v[A];
if(G){G=G[k];for(var Q=false;G;){if(G.sizcache===t){Q=v[G.sizset];break}if(G.nodeType===1&&!z){G.sizcache=t;G.sizset=A}if(G.nodeName.toLowerCase()===o){Q=G;break}G=G[k]}v[A]=Q}}}function f(k,o,t,v,A,z){A=0;for(var J=v.length;A<J;A++){var G=v[A];if(G){G=G[k];for(var Q=false;G;){if(G.sizcache===t){Q=v[G.sizset];break}if(G.nodeType===1){if(!z){G.sizcache=t;G.sizset=A}if(typeof o!=="string"){if(G===o){Q=true;break}}else if(r.filter(o,[G]).length>0){Q=G;break}}G=G[k]}v[A]=Q}}}var i=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
h=0,p=Object.prototype.toString,q=false,x=true;[0,0].sort(function(){x=false;return 0});var r=function(k,o,t,v){t=t||[];var A=o=o||B;if(o.nodeType!==1&&o.nodeType!==9)return[];if(!k||typeof k!=="string")return t;for(var z=[],J,G,Q,ua,ma=true,pa=O(o),na=k;(i.exec(""),J=i.exec(na))!==null;){na=J[3];z.push(J[1]);if(J[2]){ua=J[3];break}}if(z.length>1&&C.exec(k))if(z.length===2&&w.relative[z[0]])G=Da(z[0]+z[1],o);else for(G=w.relative[z[0]]?[o]:r(z.shift(),o);z.length;){k=z.shift();if(w.relative[k])k+=
z.shift();G=Da(k,G)}else{if(!v&&z.length>1&&o.nodeType===9&&!pa&&w.match.ID.test(z[0])&&!w.match.ID.test(z[z.length-1])){J=r.find(z.shift(),o,pa);o=J.expr?r.filter(J.expr,J.set)[0]:J.set[0]}if(o){J=v?{expr:z.pop(),set:S(v)}:r.find(z.pop(),z.length===1&&(z[0]==="~"||z[0]==="+")&&o.parentNode?o.parentNode:o,pa);G=J.expr?r.filter(J.expr,J.set):J.set;if(z.length>0)Q=S(G);else ma=false;for(;z.length;){var ca=z.pop();J=ca;if(w.relative[ca])J=z.pop();else ca="";if(J==null)J=o;w.relative[ca](Q,J,pa)}}else Q=
[]}Q||(Q=G);Q||r.error(ca||k);if(p.call(Q)==="[object Array]")if(ma)if(o&&o.nodeType===1)for(k=0;Q[k]!=null;k++){if(Q[k]&&(Q[k]===true||Q[k].nodeType===1&&da(o,Q[k])))t.push(G[k])}else for(k=0;Q[k]!=null;k++)Q[k]&&Q[k].nodeType===1&&t.push(G[k]);else t.push.apply(t,Q);else S(Q,t);if(ua){r(ua,A,t,v);r.uniqueSort(t)}return t};r.uniqueSort=function(k){if(W){q=x;k.sort(W);if(q)for(var o=1;o<k.length;o++)k[o]===k[o-1]&&k.splice(o--,1)}return k};r.matches=function(k,o){return r(k,null,null,o)};r.find=function(k,
o,t){var v,A;if(!k)return[];for(var z=0,J=w.order.length;z<J;z++){var G=w.order[z];if(A=w.leftMatch[G].exec(k)){var Q=A[1];A.splice(1,1);if(Q.substr(Q.length-1)!=="\\"){A[1]=(A[1]||"").replace(/\\/g,"");v=w.find[G](A,o,t);if(v!=null){k=k.replace(w.match[G],"");break}}}}v||(v=o.getElementsByTagName("*"));return{set:v,expr:k}};r.filter=function(k,o,t,v){for(var A=k,z=[],J=o,G,Q,ua=o&&o[0]&&O(o[0]);k&&o.length;){for(var ma in w.filter)if((G=w.leftMatch[ma].exec(k))!=null&&G[2]){var pa=w.filter[ma],na,
ca;ca=G[1];Q=false;G.splice(1,1);if(ca.substr(ca.length-1)!=="\\"){if(J===z)z=[];if(w.preFilter[ma])if(G=w.preFilter[ma](G,J,t,z,v,ua)){if(G===true)continue}else Q=na=true;if(G)for(var wa=0;(ca=J[wa])!=null;wa++)if(ca){na=pa(ca,G,wa,J);var Sa=v^!!na;if(t&&na!=null)if(Sa)Q=true;else J[wa]=false;else if(Sa){z.push(ca);Q=true}}if(na!==c){t||(J=z);k=k.replace(w.match[ma],"");if(!Q)return[];break}}}if(k===A)if(Q==null)r.error(k);else break;A=k}return J};r.error=function(k){throw"Syntax error, unrecognized expression: "+
k;};var w=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\))?/},
leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(k){return k.getAttribute("href")}},relative:{"+":function(k,o){var t=typeof o==="string",v=t&&!/\W/.test(o);t=t&&!v;if(v)o=o.toLowerCase();v=0;for(var A=k.length,z;v<A;v++)if(z=k[v]){for(;(z=z.previousSibling)&&z.nodeType!==1;);k[v]=t||z&&z.nodeName.toLowerCase()===o?z||false:z===o}t&&r.filter(o,k,true)},">":function(k,o){var t=typeof o==="string";if(t&&!/\W/.test(o)){o=o.toLowerCase();for(var v=0,A=k.length;v<A;v++){var z=
k[v];if(z){t=z.parentNode;k[v]=t.nodeName.toLowerCase()===o?t:false}}}else{v=0;for(A=k.length;v<A;v++)if(z=k[v])k[v]=t?z.parentNode:z.parentNode===o;t&&r.filter(o,k,true)}},"":function(k,o,t){var v=h++,A=f;if(typeof o==="string"&&!/\W/.test(o)){var z=o=o.toLowerCase();A=b}A("parentNode",o,v,k,z,t)},"~":function(k,o,t){var v=h++,A=f;if(typeof o==="string"&&!/\W/.test(o)){var z=o=o.toLowerCase();A=b}A("previousSibling",o,v,k,z,t)}},find:{ID:function(k,o,t){if(typeof o.getElementById!=="undefined"&&
!t)return(k=o.getElementById(k[1]))?[k]:[]},NAME:function(k,o){if(typeof o.getElementsByName!=="undefined"){var t=[];o=o.getElementsByName(k[1]);for(var v=0,A=o.length;v<A;v++)o[v].getAttribute("name")===k[1]&&t.push(o[v]);return t.length===0?null:t}},TAG:function(k,o){return o.getElementsByTagName(k[1])}},preFilter:{CLASS:function(k,o,t,v,A,z){k=" "+k[1].replace(/\\/g,"")+" ";if(z)return k;z=0;for(var J;(J=o[z])!=null;z++)if(J)if(A^(J.className&&(" "+J.className+" ").replace(/[\t\n]/g," ").indexOf(k)>=
0))t||v.push(J);else if(t)o[z]=false;return false},ID:function(k){return k[1].replace(/\\/g,"")},TAG:function(k){return k[1].toLowerCase()},CHILD:function(k){if(k[1]==="nth"){var o=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(k[2]==="even"&&"2n"||k[2]==="odd"&&"2n+1"||!/\D/.test(k[2])&&"0n+"+k[2]||k[2]);k[2]=o[1]+(o[2]||1)-0;k[3]=o[3]-0}k[0]=h++;return k},ATTR:function(k,o,t,v,A,z){o=k[1].replace(/\\/g,"");if(!z&&w.attrMap[o])k[1]=w.attrMap[o];if(k[2]==="~=")k[4]=" "+k[4]+" ";return k},PSEUDO:function(k,o,t,v,
A){if(k[1]==="not")if((i.exec(k[3])||"").length>1||/^\w/.test(k[3]))k[3]=r(k[3],null,null,o);else{k=r.filter(k[3],o,t,true^A);t||v.push.apply(v,k);return false}else if(w.match.POS.test(k[0])||w.match.CHILD.test(k[0]))return true;return k},POS:function(k){k.unshift(true);return k}},filters:{enabled:function(k){return k.disabled===false&&k.type!=="hidden"},disabled:function(k){return k.disabled===true},checked:function(k){return k.checked===true},selected:function(k){return k.selected===true},parent:function(k){return!!k.firstChild},
empty:function(k){return!k.firstChild},has:function(k,o,t){return!!r(t[3],k).length},header:function(k){return/h\d/i.test(k.nodeName)},text:function(k){return"text"===k.type},radio:function(k){return"radio"===k.type},checkbox:function(k){return"checkbox"===k.type},file:function(k){return"file"===k.type},password:function(k){return"password"===k.type},submit:function(k){return"submit"===k.type},image:function(k){return"image"===k.type},reset:function(k){return"reset"===k.type},button:function(k){return"button"===
k.type||k.nodeName.toLowerCase()==="button"},input:function(k){return/input|select|textarea|button/i.test(k.nodeName)}},setFilters:{first:function(k,o){return o===0},last:function(k,o,t,v){return o===v.length-1},even:function(k,o){return o%2===0},odd:function(k,o){return o%2===1},lt:function(k,o,t){return o<t[3]-0},gt:function(k,o,t){return o>t[3]-0},nth:function(k,o,t){return t[3]-0===o},eq:function(k,o,t){return t[3]-0===o}},filter:{PSEUDO:function(k,o,t,v){var A=o[1],z=w.filters[A];if(z)return z(k,
t,o,v);else if(A==="contains")return(k.textContent||k.innerText||a([k])||"").indexOf(o[3])>=0;else if(A==="not"){o=o[3];t=0;for(v=o.length;t<v;t++)if(o[t]===k)return false;return true}else r.error("Syntax error, unrecognized expression: "+A)},CHILD:function(k,o){var t=o[1],v=k;switch(t){case "only":case "first":for(;v=v.previousSibling;)if(v.nodeType===1)return false;if(t==="first")return true;v=k;case "last":for(;v=v.nextSibling;)if(v.nodeType===1)return false;return true;case "nth":t=o[2];var A=
o[3];if(t===1&&A===0)return true;o=o[0];var z=k.parentNode;if(z&&(z.sizcache!==o||!k.nodeIndex)){var J=0;for(v=z.firstChild;v;v=v.nextSibling)if(v.nodeType===1)v.nodeIndex=++J;z.sizcache=o}k=k.nodeIndex-A;return t===0?k===0:k%t===0&&k/t>=0}},ID:function(k,o){return k.nodeType===1&&k.getAttribute("id")===o},TAG:function(k,o){return o==="*"&&k.nodeType===1||k.nodeName.toLowerCase()===o},CLASS:function(k,o){return(" "+(k.className||k.getAttribute("class"))+" ").indexOf(o)>-1},ATTR:function(k,o){var t=
o[1];k=w.attrHandle[t]?w.attrHandle[t](k):k[t]!=null?k[t]:k.getAttribute(t);t=k+"";var v=o[2];o=o[4];return k==null?v==="!=":v==="="?t===o:v==="*="?t.indexOf(o)>=0:v==="~="?(" "+t+" ").indexOf(o)>=0:!o?t&&k!==false:v==="!="?t!==o:v==="^="?t.indexOf(o)===0:v==="$="?t.substr(t.length-o.length)===o:v==="|="?t===o||t.substr(0,o.length+1)===o+"-":false},POS:function(k,o,t,v){var A=w.setFilters[o[2]];if(A)return A(k,t,o,v)}}},C=w.match.POS;for(var I in w.match){w.match[I]=new RegExp(w.match[I].source+/(?![^\[]*\])(?![^\(]*\))/.source);
w.leftMatch[I]=new RegExp(/(^(?:.|\r|\n)*?)/.source+w.match[I].source.replace(/\\(\d+)/g,function(k,o){return"\\"+(o-0+1)}))}var S=function(k,o){k=Array.prototype.slice.call(k,0);if(o){o.push.apply(o,k);return o}return k};try{Array.prototype.slice.call(B.documentElement.childNodes,0)}catch(Y){S=function(k,o){o=o||[];if(p.call(k)==="[object Array]")Array.prototype.push.apply(o,k);else if(typeof k.length==="number")for(var t=0,v=k.length;t<v;t++)o.push(k[t]);else for(t=0;k[t];t++)o.push(k[t]);return o}}var W;
if(B.documentElement.compareDocumentPosition)W=function(k,o){if(!k.compareDocumentPosition||!o.compareDocumentPosition){if(k==o)q=true;return k.compareDocumentPosition?-1:1}k=k.compareDocumentPosition(o)&4?-1:k===o?0:1;if(k===0)q=true;return k};else if("sourceIndex"in B.documentElement)W=function(k,o){if(!k.sourceIndex||!o.sourceIndex){if(k==o)q=true;return k.sourceIndex?-1:1}k=k.sourceIndex-o.sourceIndex;if(k===0)q=true;return k};else if(B.createRange)W=function(k,o){if(!k.ownerDocument||!o.ownerDocument){if(k==
o)q=true;return k.ownerDocument?-1:1}var t=k.ownerDocument.createRange(),v=o.ownerDocument.createRange();t.setStart(k,0);t.setEnd(k,0);v.setStart(o,0);v.setEnd(o,0);k=t.compareBoundaryPoints(Range.START_TO_END,v);if(k===0)q=true;return k};(function(){var k=B.createElement("div"),o="script"+(new Date).getTime();k.innerHTML="<a name='"+o+"'/>";var t=B.documentElement;t.insertBefore(k,t.firstChild);if(B.getElementById(o)){w.find.ID=function(v,A,z){if(typeof A.getElementById!=="undefined"&&!z)return(A=
A.getElementById(v[1]))?A.id===v[1]||typeof A.getAttributeNode!=="undefined"&&A.getAttributeNode("id").nodeValue===v[1]?[A]:c:[]};w.filter.ID=function(v,A){var z=typeof v.getAttributeNode!=="undefined"&&v.getAttributeNode("id");return v.nodeType===1&&z&&z.nodeValue===A}}t.removeChild(k);t=k=null})();(function(){var k=B.createElement("div");k.appendChild(B.createComment(""));if(k.getElementsByTagName("*").length>0)w.find.TAG=function(o,t){t=t.getElementsByTagName(o[1]);if(o[1]==="*"){o=[];for(var v=
0;t[v];v++)t[v].nodeType===1&&o.push(t[v]);t=o}return t};k.innerHTML="<a href='#'></a>";if(k.firstChild&&typeof k.firstChild.getAttribute!=="undefined"&&k.firstChild.getAttribute("href")!=="#")w.attrHandle.href=function(o){return o.getAttribute("href",2)};k=null})();B.querySelectorAll&&function(){var k=r,o=B.createElement("div");o.innerHTML="<p class='TEST'></p>";if(!(o.querySelectorAll&&o.querySelectorAll(".TEST").length===0)){r=function(v,A,z,J){A=A||B;if(!J&&A.nodeType===9&&!O(A))try{return S(A.querySelectorAll(v),
z)}catch(G){}return k(v,A,z,J)};for(var t in k)r[t]=k[t];o=null}}();(function(){var k=B.createElement("div");k.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!k.getElementsByClassName||k.getElementsByClassName("e").length===0)){k.lastChild.className="e";if(k.getElementsByClassName("e").length!==1){w.order.splice(1,0,"CLASS");w.find.CLASS=function(o,t,v){if(typeof t.getElementsByClassName!=="undefined"&&!v)return t.getElementsByClassName(o[1])};k=null}}})();var da=B.compareDocumentPosition?
function(k,o){return!!(k.compareDocumentPosition(o)&16)}:function(k,o){return k!==o&&(k.contains?k.contains(o):true)},O=function(k){return(k=(k?k.ownerDocument||k:0).documentElement)?k.nodeName!=="HTML":false},Da=function(k,o){var t=[],v="",A;for(o=o.nodeType?[o]:o;A=w.match.PSEUDO.exec(k);){v+=A[0];k=k.replace(w.match.PSEUDO,"")}k=w.relative[k]?k+"*":k;A=0;for(var z=o.length;A<z;A++)r(k,o[A],t);return r.filter(v,t)};d.find=r;d.expr=r.selectors;d.expr[":"]=d.expr.filters;d.unique=r.uniqueSort;d.text=
a;d.isXMLDoc=O;d.contains=da})();var gb=/Until$/,hb=/^(?:parents|prevUntil|prevAll)/,ib=/,/;V=Array.prototype.slice;var Ta=function(a,b,f){if(d.isFunction(b))return d.grep(a,function(h,p){return!!b.call(h,p,h)===f});else if(b.nodeType)return d.grep(a,function(h){return h===b===f});else if(typeof b==="string"){var i=d.grep(a,function(h){return h.nodeType===1});if(ha.test(b))return d.filter(b,i,!f);else b=d.filter(b,i)}return d.grep(a,function(h){return d.inArray(h,b)>=0===f})};d.fn.extend({find:function(a){for(var b=
this.pushStack("","find",a),f=0,i=0,h=this.length;i<h;i++){f=b.length;d.find(a,this[i],b);if(i>0)for(var p=f;p<b.length;p++)for(var q=0;q<f;q++)if(b[q]===b[p]){b.splice(p--,1);break}}return b},has:function(a){var b=d(a);return this.filter(function(){for(var f=0,i=b.length;f<i;f++)if(d.contains(this,b[f]))return true})},not:function(a){return this.pushStack(Ta(this,a,false),"not",a)},filter:function(a){return this.pushStack(Ta(this,a,true),"filter",a)},is:function(a){return!!a&&d.filter(a,this).length>
0},closest:function(a,b){if(d.isArray(a)){var f=[],i=this[0],h,p={},q;if(i&&a.length){h=0;for(var x=a.length;h<x;h++){q=a[h];p[q]||(p[q]=d.expr.match.POS.test(q)?d(q,b||this.context):q)}for(;i&&i.ownerDocument&&i!==b;){for(q in p){h=p[q];if(h.jquery?h.index(i)>-1:d(i).is(h)){f.push({selector:q,elem:i});delete p[q]}}i=i.parentNode}}return f}var r=d.expr.match.POS.test(a)?d(a,b||this.context):null;return this.map(function(w,C){for(;C&&C.ownerDocument&&C!==b;){if(r?r.index(C)>-1:d(C).is(a))return C;
C=C.parentNode}return null})},index:function(a){if(!a||typeof a==="string")return d.inArray(this[0],a?d(a):this.parent().children());return d.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?d(a,b||this.context):d.makeArray(a);b=d.merge(this.get(),a);return this.pushStack(K(a[0])||K(b[0])?b:d.unique(b))},andSelf:function(){return this.add(this.prevObject)}});d.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return d.dir(a,"parentNode")},
parentsUntil:function(a,b,f){return d.dir(a,"parentNode",f)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,f){return d.dir(a,"nextSibling",f)},prevUntil:function(a,b,f){return d.dir(a,"previousSibling",f)},siblings:function(a){return d.sibling(a.parentNode.firstChild,a)},children:function(a){return d.sibling(a.firstChild)},
contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,b){d.fn[a]=function(f,i){var h=d.map(this,b,f);gb.test(a)||(i=f);if(i&&typeof i==="string")h=d.filter(i,h);h=this.length>1?d.unique(h):h;if((this.length>1||ib.test(i))&&hb.test(a))h=h.reverse();return this.pushStack(h,a,V.call(arguments).join(","))}});d.extend({filter:function(a,b,f){if(f)a=":not("+a+")";return d.find.matches(a,b)},dir:function(a,b,f){var i=[];for(a=
a[b];a&&a.nodeType!==9&&(f===c||a.nodeType!==1||!d(a).is(f));){a.nodeType===1&&i.push(a);a=a[b]}return i},nth:function(a,b,f){b=b||1;for(var i=0;a;a=a[f])if(a.nodeType===1&&++i===b)break;return a},sibling:function(a,b){for(var f=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&f.push(a);return f}});var Ua=/ jQuery\d+="(?:\d+|null)"/g,xa=/^\s+/,Va=/(<([\w:]+)[^>]*?)\/>/g,jb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,Wa=/<([\w:]+)/,kb=/<tbody/i,lb=/<|&#?\w+;/,Ja=/<script|<object|<embed|<option|<style/i,
Ka=/checked\s*(?:[^=]|=\s*.checked.)/i,Xa=function(a,b,f){return jb.test(f)?a:b+"></"+f+">"},ea={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};ea.optgroup=ea.option;ea.tbody=ea.tfoot=ea.colgroup=ea.caption=ea.thead;ea.th=
ea.td;if(!d.support.htmlSerialize)ea._default=[1,"div<div>","</div>"];d.fn.extend({text:function(a){if(d.isFunction(a))return this.each(function(b){var f=d(this);f.text(a.call(this,b,f.text()))});if(typeof a!=="object"&&a!==c)return this.empty().append((this[0]&&this[0].ownerDocument||B).createTextNode(a));return d.text(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(f){d(this).wrapAll(a.call(this,f))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&
b.insertBefore(this[0]);b.map(function(){for(var f=this;f.firstChild&&f.firstChild.nodeType===1;)f=f.firstChild;return f}).append(this)}return this},wrapInner:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapInner(a.call(this,b))});return this.each(function(){var b=d(this),f=b.contents();f.length?f.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()},
append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&
this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,d(arguments[0]).toArray());return a}},remove:function(a,b){for(var f=0,i;(i=this[f])!=null;f++)if(!a||d.filter(a,[i]).length){if(!b&&i.nodeType===1){d.cleanData(i.getElementsByTagName("*"));d.cleanData([i])}i.parentNode&&i.parentNode.removeChild(i)}return this},empty:function(){for(var a=0,b;(b=
this[a])!=null;a++)for(b.nodeType===1&&d.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(a){var b=this.map(function(){if(!d.support.noCloneEvent&&!d.isXMLDoc(this)){var f=this.outerHTML,i=this.ownerDocument;if(!f){f=i.createElement("div");f.appendChild(this.cloneNode(true));f=f.innerHTML}return d.clean([f.replace(Ua,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(xa,"")],i)[0]}else return this.cloneNode(true)});if(a===true){H(this,b);
H(this.find("*"),b.find("*"))}return b},html:function(a){if(a===c)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ua,""):null;else if(typeof a==="string"&&!Ja.test(a)&&(d.support.leadingWhitespace||!xa.test(a))&&!ea[(Wa.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Va,Xa);try{for(var b=0,f=this.length;b<f;b++)if(this[b].nodeType===1){d.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(i){this.empty().append(a)}}else d.isFunction(a)?this.each(function(h){var p=
d(this),q=p.html();p.empty().append(function(){return a.call(this,h,q)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(d.isFunction(a))return this.each(function(b){var f=d(this),i=f.html();f.replaceWith(a.call(this,b,i))});if(typeof a!=="string")a=d(a).detach();return this.each(function(){var b=this.nextSibling,f=this.parentNode;d(this).remove();b?d(b).before(a):d(f).append(a)})}else return this.pushStack(d(d.isFunction(a)?a():a),"replaceWith",a)},
detach:function(a){return this.remove(a,true)},domManip:function(a,b,f){function i(I){return d.nodeName(I,"table")?I.getElementsByTagName("tbody")[0]||I.appendChild(I.ownerDocument.createElement("tbody")):I}var h,p,q=a[0],x=[],r;if(!d.support.checkClone&&arguments.length===3&&typeof q==="string"&&Ka.test(q))return this.each(function(){d(this).domManip(a,b,f,true)});if(d.isFunction(q))return this.each(function(I){var S=d(this);a[0]=q.call(this,I,b?S.html():c);S.domManip(a,b,f)});if(this[0]){h=q&&q.parentNode;
h=d.support.parentNode&&h&&h.nodeType===11&&h.childNodes.length===this.length?{fragment:h}:F(a,this,x);r=h.fragment;if(p=r.childNodes.length===1?(r=r.firstChild):r.firstChild){b=b&&d.nodeName(p,"tr");for(var w=0,C=this.length;w<C;w++)f.call(b?i(this[w],p):this[w],w>0||h.cacheable||this.length>1?r.cloneNode(true):r)}x.length&&d.each(x,j)}return this}});d.fragments={};d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){d.fn[a]=
function(f){var i=[];f=d(f);var h=this.length===1&&this[0].parentNode;if(h&&h.nodeType===11&&h.childNodes.length===1&&f.length===1){f[b](this[0]);return this}else{h=0;for(var p=f.length;h<p;h++){var q=(h>0?this.clone(true):this).get();d.fn[b].apply(d(f[h]),q);i=i.concat(q)}return this.pushStack(i,a,f.selector)}}});d.extend({clean:function(a,b,f,i){b=b||B;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||B;for(var h=[],p=0,q;(q=a[p])!=null;p++){if(typeof q==="number")q+=
"";if(q){if(typeof q==="string"&&!lb.test(q))q=b.createTextNode(q);else if(typeof q==="string"){q=q.replace(Va,Xa);var x=(Wa.exec(q)||["",""])[1].toLowerCase(),r=ea[x]||ea._default,w=r[0],C=b.createElement("div");for(C.innerHTML=r[1]+q+r[2];w--;)C=C.lastChild;if(!d.support.tbody){w=kb.test(q);x=x==="table"&&!w?C.firstChild&&C.firstChild.childNodes:r[1]==="<table>"&&!w?C.childNodes:[];for(r=x.length-1;r>=0;--r)d.nodeName(x[r],"tbody")&&!x[r].childNodes.length&&x[r].parentNode.removeChild(x[r])}!d.support.leadingWhitespace&&
xa.test(q)&&C.insertBefore(b.createTextNode(xa.exec(q)[0]),C.firstChild);q=C.childNodes}if(q.nodeType)h.push(q);else h=d.merge(h,q)}}if(f)for(p=0;h[p];p++)if(i&&d.nodeName(h[p],"script")&&(!h[p].type||h[p].type.toLowerCase()==="text/javascript"))i.push(h[p].parentNode?h[p].parentNode.removeChild(h[p]):h[p]);else{h[p].nodeType===1&&h.splice.apply(h,[p+1,0].concat(d.makeArray(h[p].getElementsByTagName("script"))));f.appendChild(h[p])}return h},cleanData:function(a){for(var b,f,i=d.cache,h=d.event.special,
p=d.support.deleteExpando,q=0,x;(x=a[q])!=null;q++)if(f=x[d.expando]){b=i[f];if(b.events)for(var r in b.events)h[r]?d.event.remove(x,r):Na(x,r,b.handle);if(p)delete x[d.expando];else x.removeAttribute&&x.removeAttribute(d.expando);delete i[f]}}});var mb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Ya=/alpha\([^)]*\)/,Za=/opacity=([^)]*)/,Ea=/float/i,Fa=/-([a-z])/ig,nb=/([A-Z])/g,ob=/^-?\d+(?:px)?$/i,pb=/^-?\d/,qb={position:"absolute",visibility:"hidden",display:"block"},rb=["Left","Right"],
sb=["Top","Bottom"],tb=B.defaultView&&B.defaultView.getComputedStyle,$a=d.support.cssFloat?"cssFloat":"styleFloat",Ga=function(a,b){return b.toUpperCase()};d.fn.css=function(a,b){return l(this,a,b,true,function(f,i,h){if(h===c)return d.curCSS(f,i);if(typeof h==="number"&&!mb.test(i))h+="px";d.style(f,i,h)})};d.extend({style:function(a,b,f){if(!a||a.nodeType===3||a.nodeType===8)return c;if((b==="width"||b==="height")&&parseFloat(f)<0)f=c;var i=a.style||a,h=f!==c;if(!d.support.opacity&&b==="opacity"){if(h){i.zoom=
1;b=parseInt(f,10)+""==="NaN"?"":"alpha(opacity="+f*100+")";a=i.filter||d.curCSS(a,"filter")||"";i.filter=Ya.test(a)?a.replace(Ya,b):b}return i.filter&&i.filter.indexOf("opacity=")>=0?parseFloat(Za.exec(i.filter)[1])/100+"":""}if(Ea.test(b))b=$a;b=b.replace(Fa,Ga);if(h)i[b]=f;return i[b]},css:function(a,b,f,i){if(b==="width"||b==="height"){var h,p=b==="width"?rb:sb;f=function(){h=b==="width"?a.offsetWidth:a.offsetHeight;i!=="border"&&d.each(p,function(){i||(h-=parseFloat(d.curCSS(a,"padding"+this,
true))||0);if(i==="margin")h+=parseFloat(d.curCSS(a,"margin"+this,true))||0;else h-=parseFloat(d.curCSS(a,"border"+this+"Width",true))||0})};a.offsetWidth!==0?f():d.swap(a,qb,f);return Math.max(0,Math.round(h))}return d.curCSS(a,b,f)},curCSS:function(a,b,f){var i,h=a.style;if(!d.support.opacity&&b==="opacity"&&a.currentStyle){i=Za.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return i===""?"1":i}if(Ea.test(b))b=$a;if(!f&&h&&h[b])i=h[b];else if(tb){if(Ea.test(b))b="float";b=b.replace(nb,
"-$1").toLowerCase();h=a.ownerDocument.defaultView;if(!h)return null;if(a=h.getComputedStyle(a,null))i=a.getPropertyValue(b);if(b==="opacity"&&i==="")i="1"}else if(a.currentStyle){f=b.replace(Fa,Ga);i=a.currentStyle[b]||a.currentStyle[f];if(!ob.test(i)&&pb.test(i)){b=h.left;var p=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;h.left=f==="fontSize"?"1em":i||0;i=h.pixelLeft+"px";h.left=b;a.runtimeStyle.left=p}}return i},swap:function(a,b,f){var i={};for(var h in b){i[h]=a.style[h];a.style[h]=
b[h]}f.call(a);for(h in b)a.style[h]=i[h]}});if(d.expr&&d.expr.filters){d.expr.filters.hidden=function(a){var b=a.offsetWidth,f=a.offsetHeight,i=a.nodeName.toLowerCase()==="tr";return b===0&&f===0&&!i?true:b>0&&f>0&&!i?false:d.curCSS(a,"display")==="none"};d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)}}var ub=m(),vb=/<script(.|\s)*?\/script>/gi,wb=/select|textarea/i,xb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,qa=/=\?(&|$)/,
Ha=/\?/,yb=/(\?|&)_=.*?(&|$)/,zb=/^(\w+:)?\/\/([^\/?#]+)/,Ab=/%20/g,Bb=d.fn.load;d.fn.extend({load:function(a,b,f){if(typeof a!=="string")return Bb.call(this,a);else if(!this.length)return this;var i=a.indexOf(" ");if(i>=0){var h=a.slice(i,a.length);a=a.slice(0,i)}i="GET";if(b)if(d.isFunction(b)){f=b;b=null}else if(typeof b==="object"){b=d.param(b,d.ajaxSettings.traditional);i="POST"}var p=this;d.ajax({url:a,type:i,dataType:"html",data:b,complete:function(q,x){if(x==="success"||x==="notmodified")p.html(h?
d("<div />").append(q.responseText.replace(vb,"")).find(h):q.responseText);f&&p.each(f,[q.responseText,x,q])}});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||wb.test(this.nodeName)||xb.test(this.type))}).map(function(a,b){a=d(this).val();return a==null?null:d.isArray(a)?d.map(a,function(f){return{name:b.name,
value:f}}):{name:b.name,value:a}}).get()}});d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){d.fn[b]=function(f){return this.bind(b,f)}});d.extend({get:function(a,b,f,i){if(d.isFunction(b)){i=i||f;f=b;b=null}return d.ajax({type:"GET",url:a,data:b,success:f,dataType:i})},getScript:function(a,b){return d.get(a,null,b,"script")},getJSON:function(a,b,f){return d.get(a,b,f,"json")},post:function(a,b,f,i){if(d.isFunction(b)){i=i||f;f=b;b={}}return d.ajax({type:"POST",
url:a,data:b,success:f,dataType:i})},ajaxSetup:function(a){d.extend(d.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:e.XMLHttpRequest&&(e.location.protocol!=="file:"||!e.ActiveXObject)?function(){return new e.XMLHttpRequest}:function(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",
json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function b(){h.success&&h.success.call(r,x,q,O);h.global&&i("ajaxSuccess",[O,h])}function f(){h.complete&&h.complete.call(r,O,q);h.global&&i("ajaxComplete",[O,h]);h.global&&!--d.active&&d.event.trigger("ajaxStop")}function i(A,z){(h.context?d(h.context):d.event).trigger(A,z)}var h=d.extend(true,{},d.ajaxSettings,a),p,q,x,r=a&&a.context||h,w=h.type.toUpperCase();if(h.data&&h.processData&&
typeof h.data!=="string")h.data=d.param(h.data,h.traditional);if(h.dataType==="jsonp"){if(w==="GET")qa.test(h.url)||(h.url+=(Ha.test(h.url)?"&":"?")+(h.jsonp||"callback")+"=?");else if(!h.data||!qa.test(h.data))h.data=(h.data?h.data+"&":"")+(h.jsonp||"callback")+"=?";h.dataType="json"}if(h.dataType==="json"&&(h.data&&qa.test(h.data)||qa.test(h.url))){p=h.jsonpCallback||"jsonp"+ub++;if(h.data)h.data=(h.data+"").replace(qa,"="+p+"$1");h.url=h.url.replace(qa,"="+p+"$1");h.dataType="script";e[p]=e[p]||
function(A){x=A;b();f();e[p]=c;try{delete e[p]}catch(z){}S&&S.removeChild(Y)}}if(h.dataType==="script"&&h.cache===null)h.cache=false;if(h.cache===false&&w==="GET"){var C=m(),I=h.url.replace(yb,"$1_="+C+"$2");h.url=I+(I===h.url?(Ha.test(h.url)?"&":"?")+"_="+C:"")}if(h.data&&w==="GET")h.url+=(Ha.test(h.url)?"&":"?")+h.data;h.global&&!d.active++&&d.event.trigger("ajaxStart");C=(C=zb.exec(h.url))&&(C[1]&&C[1]!==location.protocol||C[2]!==location.host);if(h.dataType==="script"&&w==="GET"&&C){var S=B.getElementsByTagName("head")[0]||
B.documentElement,Y=B.createElement("script");Y.src=h.url;if(h.scriptCharset)Y.charset=h.scriptCharset;if(!p){var W=false;Y.onload=Y.onreadystatechange=function(){if(!W&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){W=true;b();f();Y.onload=Y.onreadystatechange=null;S&&Y.parentNode&&S.removeChild(Y)}}}S.insertBefore(Y,S.firstChild);return c}var da=false,O=h.xhr();if(O){h.username?O.open(w,h.url,h.async,h.username,h.password):O.open(w,h.url,h.async);try{if(h.data||a&&
a.contentType)O.setRequestHeader("Content-Type",h.contentType);if(h.ifModified){d.lastModified[h.url]&&O.setRequestHeader("If-Modified-Since",d.lastModified[h.url]);d.etag[h.url]&&O.setRequestHeader("If-None-Match",d.etag[h.url])}C||O.setRequestHeader("X-Requested-With","XMLHttpRequest");O.setRequestHeader("Accept",h.dataType&&h.accepts[h.dataType]?h.accepts[h.dataType]+", */*":h.accepts._default)}catch(Da){}if(h.beforeSend&&h.beforeSend.call(r,O,h)===false){h.global&&!--d.active&&d.event.trigger("ajaxStop");
O.abort();return false}h.global&&i("ajaxSend",[O,h]);var k=O.onreadystatechange=function(A){if(!O||O.readyState===0||A==="abort"){da||f();da=true;if(O)O.onreadystatechange=d.noop}else if(!da&&O&&(O.readyState===4||A==="timeout")){da=true;O.onreadystatechange=d.noop;q=A==="timeout"?"timeout":!d.httpSuccess(O)?"error":h.ifModified&&d.httpNotModified(O,h.url)?"notmodified":"success";var z;if(q==="success")try{x=d.httpData(O,h.dataType,h)}catch(J){q="parsererror";z=J}if(q==="success"||q==="notmodified")p||
b();else d.handleError(h,O,q,z);f();A==="timeout"&&O.abort();if(h.async)O=null}};try{var o=O.abort;O.abort=function(){O&&o.call(O);k("abort")}}catch(t){}h.async&&h.timeout>0&&setTimeout(function(){O&&!da&&k("timeout")},h.timeout);try{O.send(w==="POST"||w==="PUT"||w==="DELETE"?h.data:null)}catch(v){d.handleError(h,O,null,v);f()}h.async||k();return O}},handleError:function(a,b,f,i){if(a.error)a.error.call(a.context||a,b,f,i);if(a.global)(a.context?d(a.context):d.event).trigger("ajaxError",[b,a,i])},
active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var f=a.getResponseHeader("Last-Modified"),i=a.getResponseHeader("Etag");if(f)d.lastModified[b]=f;if(i)d.etag[b]=i;return a.status===304||a.status===0},httpData:function(a,b,f){var i=a.getResponseHeader("content-type")||"",h=b==="xml"||!b&&i.indexOf("xml")>=0;a=h?a.responseXML:a.responseText;
h&&a.documentElement.nodeName==="parsererror"&&d.error("parsererror");if(f&&f.dataFilter)a=f.dataFilter(a,b);if(typeof a==="string")if(b==="json"||!b&&i.indexOf("json")>=0)a=d.parseJSON(a);else if(b==="script"||!b&&i.indexOf("javascript")>=0)d.globalEval(a);return a},param:function(a,b){function f(q,x){if(d.isArray(x))d.each(x,function(r,w){b||/\[\]$/.test(q)?i(q,w):f(q+"["+(typeof w==="object"||d.isArray(w)?r:"")+"]",w)});else!b&&x!=null&&typeof x==="object"?d.each(x,function(r,w){f(q+"["+r+"]",
w)}):i(q,x)}function i(q,x){x=d.isFunction(x)?x():x;h[h.length]=encodeURIComponent(q)+"="+encodeURIComponent(x)}var h=[];if(b===c)b=d.ajaxSettings.traditional;if(d.isArray(a)||a.jquery)d.each(a,function(){i(this.name,this.value)});else for(var p in a)f(p,a[p]);return h.join("&").replace(Ab,"+")}});var Ia={},Cb=/toggle|show|hide/,Db=/^([+-]=)?([\d+-.]+)(.*)$/,ya,La=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],
["opacity"]];d.fn.extend({show:function(a,b){if(a||a===0)return this.animate(M("show",3),a,b);else{a=0;for(b=this.length;a<b;a++){var f=d.data(this[a],"olddisplay");this[a].style.display=f||"";if(d.css(this[a],"display")==="none"){f=this[a].nodeName;var i;if(Ia[f])i=Ia[f];else{var h=d("<"+f+" />").appendTo("body");i=h.css("display");if(i==="none")i="block";h.remove();Ia[f]=i}d.data(this[a],"olddisplay",i)}}a=0;for(b=this.length;a<b;a++)this[a].style.display=d.data(this[a],"olddisplay")||"";return this}},
hide:function(a,b){if(a||a===0)return this.animate(M("hide",3),a,b);else{a=0;for(b=this.length;a<b;a++){var f=d.data(this[a],"olddisplay");!f&&f!=="none"&&d.data(this[a],"olddisplay",d.css(this[a],"display"))}a=0;for(b=this.length;a<b;a++)this[a].style.display="none";return this}},_toggle:d.fn.toggle,toggle:function(a,b){var f=typeof a==="boolean";if(d.isFunction(a)&&d.isFunction(b))this._toggle.apply(this,arguments);else a==null||f?this.each(function(){var i=f?a:d(this).is(":hidden");d(this)[i?"show":
"hide"]()}):this.animate(M("toggle",3),a,b);return this},fadeTo:function(a,b,f){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,f)},animate:function(a,b,f,i){var h=d.speed(b,f,i);if(d.isEmptyObject(a))return this.each(h.complete);return this[h.queue===false?"each":"queue"](function(){var p=d.extend({},h),q,x=this.nodeType===1&&d(this).is(":hidden"),r=this;for(q in a){var w=q.replace(Fa,Ga);if(q!==w){a[w]=a[q];delete a[q];q=w}if(a[q]==="hide"&&x||a[q]==="show"&&!x)return p.complete.call(this);
if((q==="height"||q==="width")&&this.style){p.display=d.css(this,"display");p.overflow=this.style.overflow}if(d.isArray(a[q])){(p.specialEasing=p.specialEasing||{})[q]=a[q][1];a[q]=a[q][0]}}if(p.overflow!=null)this.style.overflow="hidden";p.curAnim=d.extend({},a);d.each(a,function(C,I){var S=new d.fx(r,p,C);if(Cb.test(I))S[I==="toggle"?x?"show":"hide":I](a);else{var Y=Db.exec(I),W=S.cur(true)||0;if(Y){I=parseFloat(Y[2]);var da=Y[3]||"px";if(da!=="px"){r.style[C]=(I||1)+da;W=(I||1)/S.cur(true)*W;r.style[C]=
W+da}if(Y[1])I=(Y[1]==="-="?-1:1)*I+W;S.custom(W,I,da)}else S.custom(W,I,"")}});return true})},stop:function(a,b){var f=d.timers;a&&this.queue([]);this.each(function(){for(var i=f.length-1;i>=0;i--)if(f[i].elem===this){b&&f[i](true);f.splice(i,1)}});b||this.dequeue();return this}});d.each({slideDown:M("show",1),slideUp:M("hide",1),slideToggle:M("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){d.fn[a]=function(f,i){return this.animate(b,f,i)}});d.extend({speed:function(a,
b,f){var i=a&&typeof a==="object"?a:{complete:f||!f&&b||d.isFunction(a)&&a,duration:a,easing:f&&b||b&&!d.isFunction(b)&&b};i.duration=d.fx.off?0:typeof i.duration==="number"?i.duration:d.fx.speeds[i.duration]||d.fx.speeds._default;i.old=i.complete;i.complete=function(){i.queue!==false&&d(this).dequeue();d.isFunction(i.old)&&i.old.call(this)};return i},easing:{linear:function(a,b,f,i){return f+i*a},swing:function(a,b,f,i){return(-Math.cos(a*Math.PI)/2+0.5)*i+f}},timers:[],fx:function(a,b,f){this.options=
b;this.elem=a;this.prop=f;if(!b.orig)b.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(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(d.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(d.curCSS(this.elem,
this.prop))||0},custom:function(a,b,f){function i(p){return h.step(p)}this.startTime=m();this.start=a;this.end=b;this.unit=f||this.unit||"px";this.now=this.start;this.pos=this.state=0;var h=this;i.elem=this.elem;if(i()&&d.timers.push(i)&&!ya)ya=setInterval(d.fx.tick,13)},show:function(){this.options.orig[this.prop]=d.style(this.elem,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.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=m(),f=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var i in this.options.curAnim)if(this.options.curAnim[i]!==true)f=false;if(f){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=d.data(this.elem,"olddisplay");this.elem.style.display=a?a: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 h in this.options.curAnim)d.style(this.elem,h,this.options.orig[h]);this.options.complete.call(this.elem)}return false}else{h=b-this.startTime;this.state=h/this.options.duration;a=this.options.easing||(d.easing.swing?"swing":"linear");this.pos=d.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,h,0,1,this.options.duration);
this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};d.extend(d.fx,{tick:function(){for(var a=d.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||d.fx.stop()},stop:function(){clearInterval(ya);ya=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){d.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=
a.now}}});if(d.expr&&d.expr.filters)d.expr.filters.animated=function(a){return d.grep(d.timers,function(b){return a===b.elem}).length};d.fn.offset="getBoundingClientRect"in B.documentElement?function(a){var b=this[0];if(a)return this.each(function(h){d.offset.setOffset(this,a,h)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return d.offset.bodyOffset(b);var f=b.getBoundingClientRect(),i=b.ownerDocument;b=i.body;i=i.documentElement;return{top:f.top+(self.pageYOffset||d.support.boxModel&&
i.scrollTop||b.scrollTop)-(i.clientTop||b.clientTop||0),left:f.left+(self.pageXOffset||d.support.boxModel&&i.scrollLeft||b.scrollLeft)-(i.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(a)return this.each(function(C){d.offset.setOffset(this,a,C)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return d.offset.bodyOffset(b);d.offset.initialize();var f=b.offsetParent,i=b,h=b.ownerDocument,p,q=h.documentElement,x=h.body;i=(h=h.defaultView)?h.getComputedStyle(b,null):b.currentStyle;
for(var r=b.offsetTop,w=b.offsetLeft;(b=b.parentNode)&&b!==x&&b!==q;){if(d.offset.supportsFixedPosition&&i.position==="fixed")break;p=h?h.getComputedStyle(b,null):b.currentStyle;r-=b.scrollTop;w-=b.scrollLeft;if(b===f){r+=b.offsetTop;w+=b.offsetLeft;if(d.offset.doesNotAddBorder&&!(d.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.nodeName))){r+=parseFloat(p.borderTopWidth)||0;w+=parseFloat(p.borderLeftWidth)||0}i=f;f=b.offsetParent}if(d.offset.subtractsBorderForOverflowNotVisible&&p.overflow!==
"visible"){r+=parseFloat(p.borderTopWidth)||0;w+=parseFloat(p.borderLeftWidth)||0}i=p}if(i.position==="relative"||i.position==="static"){r+=x.offsetTop;w+=x.offsetLeft}if(d.offset.supportsFixedPosition&&i.position==="fixed"){r+=Math.max(q.scrollTop,x.scrollTop);w+=Math.max(q.scrollLeft,x.scrollLeft)}return{top:r,left:w}};d.offset={initialize:function(){var a=B.body,b=B.createElement("div"),f,i,h,p=parseFloat(d.curCSS(a,"marginTop",true))||0;d.extend(b.style,{position:"absolute",top:0,left:0,margin:0,
border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.insertBefore(b,a.firstChild);f=b.firstChild;i=f.firstChild;h=f.nextSibling.firstChild.firstChild;this.doesNotAddBorder=i.offsetTop!==5;this.doesAddBorderForTableAndCells=
h.offsetTop===5;i.style.position="fixed";i.style.top="20px";this.supportsFixedPosition=i.offsetTop===20||i.offsetTop===15;i.style.position=i.style.top="";f.style.overflow="hidden";f.style.position="relative";this.subtractsBorderForOverflowNotVisible=i.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==p;a.removeChild(b);d.offset.initialize=d.noop},bodyOffset:function(a){var b=a.offsetTop,f=a.offsetLeft;d.offset.initialize();if(d.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(d.curCSS(a,
"marginTop",true))||0;f+=parseFloat(d.curCSS(a,"marginLeft",true))||0}return{top:b,left:f}},setOffset:function(a,b,f){if(/static/.test(d.curCSS(a,"position")))a.style.position="relative";var i=d(a),h=i.offset(),p=parseInt(d.curCSS(a,"top",true),10)||0,q=parseInt(d.curCSS(a,"left",true),10)||0;if(d.isFunction(b))b=b.call(a,f,h);f={top:b.top-h.top+p,left:b.left-h.left+q};"using"in b?b.using.call(a,f):i.css(f)}};d.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),
f=this.offset(),i=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();f.top-=parseFloat(d.curCSS(a,"marginTop",true))||0;f.left-=parseFloat(d.curCSS(a,"marginLeft",true))||0;i.top+=parseFloat(d.curCSS(b[0],"borderTopWidth",true))||0;i.left+=parseFloat(d.curCSS(b[0],"borderLeftWidth",true))||0;return{top:f.top-i.top,left:f.left-i.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||B.body;a&&!/^body|html$/i.test(a.nodeName)&&d.css(a,"position")==="static";)a=
a.offsetParent;return a})}});d.each(["Left","Top"],function(a,b){var f="scroll"+b;d.fn[f]=function(i){var h=this[0],p;if(!h)return null;return i!==c?this.each(function(){if(p=P(this))p.scrollTo(!a?i:d(p).scrollLeft(),a?i:d(p).scrollTop());else this[f]=i}):(p=P(h))?"pageXOffset"in p?p[a?"pageYOffset":"pageXOffset"]:d.support.boxModel&&p.document.documentElement[f]||p.document.body[f]:h[f]}});d.each(["Height","Width"],function(a,b){var f=b.toLowerCase();d.fn["inner"+b]=function(){return this[0]?d.css(this[0],
f,false,"padding"):null};d.fn["outer"+b]=function(i){return this[0]?d.css(this[0],f,false,i?"margin":"border"):null};d.fn[f]=function(i){var h=this[0];if(!h)return i==null?null:this;if(d.isFunction(i))return this.each(function(p){var q=d(this);q[f](i.call(this,p,q[f]()))});return"scrollTo"in h&&h.document?h.document.compatMode==="CSS1Compat"&&h.document.documentElement["client"+b]||h.document.body["client"+b]:h.nodeType===9?Math.max(h.documentElement["client"+b],h.body["scroll"+b],h.documentElement["scroll"+
b],h.body["offset"+b],h.documentElement["offset"+b]):i===c?d.css(h,f):this.css(f,typeof i==="string"?i:i+"px")}});e.jQuery=e.$=d})(window);
jQuery.ui||function(e){e.ui={version:"1.8.1",plugin:{add:function(c,g,j){c=e.ui[c].prototype;for(var l in j){c.plugins[l]=c.plugins[l]||[];c.plugins[l].push([g,j[l]])}},call:function(c,g,j){if((g=c.plugins[g])&&c.element[0].parentNode)for(var l=0;l<g.length;l++)c.options[g[l][0]]&&g[l][1].apply(c.element,j)}},contains:function(c,g){return document.compareDocumentPosition?c.compareDocumentPosition(g)&16:c!==g&&c.contains(g)},hasScroll:function(c,g){if(e(c).css("overflow")=="hidden")return false;g=
g&&g=="left"?"scrollLeft":"scrollTop";var j=false;if(c[g]>0)return true;c[g]=1;j=c[g]>0;c[g]=0;return j},isOverAxis:function(c,g,j){return c>g&&c<g+j},isOver:function(c,g,j,l,m,n){return e.ui.isOverAxis(c,j,m)&&e.ui.isOverAxis(g,l,n)},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,
RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};e.fn.extend({_focus:e.fn.focus,focus:function(c,g){return typeof c==="number"?this.each(function(){var j=this;setTimeout(function(){e(j).focus();g&&g.call(j)},c)}):this._focus.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none")},scrollParent:function(){var c;c=e.browser.msie&&/(static|relative)/.test(this.css("position"))||
/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.curCSS(this,"position",1))&&/(auto|scroll)/.test(e.curCSS(this,"overflow",1)+e.curCSS(this,"overflow-y",1)+e.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(e.curCSS(this,"overflow",1)+e.curCSS(this,"overflow-y",1)+e.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!c.length?e(document):c},zIndex:function(c){if(c!==
undefined)return this.css("zIndex",c);if(this.length){c=e(this[0]);for(var g;c.length&&c[0]!==document;){g=c.css("position");if(g=="absolute"||g=="relative"||g=="fixed"){g=parseInt(c.css("zIndex"));if(!isNaN(g)&&g!=0)return g}c=c.parent()}}return 0}});e.extend(e.expr[":"],{data:function(c,g,j){return!!e.data(c,j[3])},focusable:function(c){var g=c.nodeName.toLowerCase(),j=e.attr(c,"tabindex");return(/input|select|textarea|button|object/.test(g)?!c.disabled:"a"==g||"area"==g?c.href||!isNaN(j):!isNaN(j))&&
!e(c)["area"==g?"parents":"closest"](":hidden").length},tabbable:function(c){var g=e.attr(c,"tabindex");return(isNaN(g)||g>=0)&&e(c).is(":focusable")}})}(jQuery);
(function(e){var c=e.fn.remove;e.fn.remove=function(g,j){return this.each(function(){if(!j)if(!g||e.filter(g,[this]).length)e("*",this).add(this).each(function(){e(this).triggerHandler("remove")});return c.call(e(this),g,j)})};e.widget=function(g,j,l){var m=g.split(".")[0],n;g=g.split(".")[1];n=m+"-"+g;if(!l){l=j;j=e.Widget}e.expr[":"][n]=function(u){return!!e.data(u,g)};e[m]=e[m]||{};e[m][g]=function(u,y){arguments.length&&this._createWidget(u,y)};j=new j;j.options=e.extend({},j.options);e[m][g].prototype=
e.extend(true,j,{namespace:m,widgetName:g,widgetEventPrefix:e[m][g].prototype.widgetEventPrefix||g,widgetBaseClass:n},l);e.widget.bridge(g,e[m][g])};e.widget.bridge=function(g,j){e.fn[g]=function(l){var m=typeof l==="string",n=Array.prototype.slice.call(arguments,1),u=this;l=!m&&n.length?e.extend.apply(null,[true,l].concat(n)):l;if(m&&l.substring(0,1)==="_")return u;m?this.each(function(){var y=e.data(this,g),D=y&&e.isFunction(y[l])?y[l].apply(y,n):y;if(D!==y&&D!==undefined){u=D;return false}}):this.each(function(){var y=
e.data(this,g);if(y){l&&y.option(l);y._init()}else e.data(this,g,new j(l,this))});return u}};e.Widget=function(g,j){arguments.length&&this._createWidget(g,j)};e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(g,j){this.element=e(j).data(this.widgetName,this);this.options=e.extend(true,{},this.options,e.metadata&&e.metadata.get(j)[this.widgetName],g);var l=this;this.element.bind("remove."+this.widgetName,function(){l.destroy()});this._create();
this._init()},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(g,j){var l=g,m=this;if(arguments.length===0)return e.extend({},m.options);if(typeof g==="string"){if(j===undefined)return this.options[g];l={};l[g]=j}e.each(l,function(n,
u){m._setOption(n,u)});return m},_setOption:function(g,j){this.options[g]=j;if(g==="disabled")this.widget()[j?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",j);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(g,j,l){var m=this.options[g];j=e.Event(j);j.type=(g===this.widgetEventPrefix?g:this.widgetEventPrefix+g).toLowerCase();l=l||{};if(j.originalEvent){g=
e.event.props.length;for(var n;g;){n=e.event.props[--g];j[n]=j.originalEvent[n]}}this.element.trigger(j,l);return!(e.isFunction(m)&&m.call(this.element[0],j,l)===false||j.isDefaultPrevented())}}})(jQuery);
(function(e){e.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var c=this;this.element.bind("mousedown."+this.widgetName,function(g){return c._mouseDown(g)}).bind("click."+this.widgetName,function(g){if(c._preventClickEvent){c._preventClickEvent=false;g.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(c){c.originalEvent=c.originalEvent||{};if(!c.originalEvent.mouseHandled){this._mouseStarted&&
this._mouseUp(c);this._mouseDownEvent=c;var g=this,j=c.which==1,l=typeof this.options.cancel=="string"?e(c.target).parents().add(c.target).filter(this.options.cancel).length:false;if(!j||l||!this._mouseCapture(c))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){g.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(c)&&this._mouseDelayMet(c)){this._mouseStarted=this._mouseStart(c)!==false;if(!this._mouseStarted){c.preventDefault();
return true}}this._mouseMoveDelegate=function(m){return g._mouseMove(m)};this._mouseUpDelegate=function(m){return g._mouseUp(m)};e(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);e.browser.safari||c.preventDefault();return c.originalEvent.mouseHandled=true}},_mouseMove:function(c){if(e.browser.msie&&!c.button)return this._mouseUp(c);if(this._mouseStarted){this._mouseDrag(c);return c.preventDefault()}if(this._mouseDistanceMet(c)&&
this._mouseDelayMet(c))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,c)!==false)?this._mouseDrag(c):this._mouseUp(c);return!this._mouseStarted},_mouseUp:function(c){e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=c.target==this._mouseDownEvent.target;this._mouseStop(c)}return false},_mouseDistanceMet:function(c){return Math.max(Math.abs(this._mouseDownEvent.pageX-
c.pageX),Math.abs(this._mouseDownEvent.pageY-c.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
(function(e){e.ui=e.ui||{};var c=/left|center|right/,g=/top|center|bottom/,j=e.fn.position,l=e.fn.offset;e.fn.position=function(m){if(!m||!m.of)return j.apply(this,arguments);m=e.extend({},m);var n=e(m.of),u=(m.collision||"flip").split(" "),y=m.offset?m.offset.split(" "):[0,0],D,L,K;if(m.of.nodeType===9){D=n.width();L=n.height();K={top:0,left:0}}else if(m.of.scrollTo&&m.of.document){D=n.width();L=n.height();K={top:n.scrollTop(),left:n.scrollLeft()}}else if(m.of.preventDefault){m.at="left top";D=L=
0;K={top:m.of.pageY,left:m.of.pageX}}else{D=n.outerWidth();L=n.outerHeight();K=n.offset()}e.each(["my","at"],function(){var H=(m[this]||"").split(" ");if(H.length===1)H=c.test(H[0])?H.concat(["center"]):g.test(H[0])?["center"].concat(H):["center","center"];H[0]=c.test(H[0])?H[0]:"center";H[1]=g.test(H[1])?H[1]:"center";m[this]=H});if(u.length===1)u[1]=u[0];y[0]=parseInt(y[0],10)||0;if(y.length===1)y[1]=y[0];y[1]=parseInt(y[1],10)||0;if(m.at[0]==="right")K.left+=D;else if(m.at[0]==="center")K.left+=
D/2;if(m.at[1]==="bottom")K.top+=L;else if(m.at[1]==="center")K.top+=L/2;K.left+=y[0];K.top+=y[1];return this.each(function(){var H=e(this),F=H.outerWidth(),M=H.outerHeight(),P=e.extend({},K);if(m.my[0]==="right")P.left-=F;else if(m.my[0]==="center")P.left-=F/2;if(m.my[1]==="bottom")P.top-=M;else if(m.my[1]==="center")P.top-=M/2;P.left=parseInt(P.left);P.top=parseInt(P.top);e.each(["left","top"],function(d,X){e.ui.position[u[d]]&&e.ui.position[u[d]][X](P,{targetWidth:D,targetHeight:L,elemWidth:F,
elemHeight:M,offset:y,my:m.my,at:m.at})});e.fn.bgiframe&&H.bgiframe();H.offset(e.extend(P,{using:m.using}))})};e.ui.position={fit:{left:function(m,n){var u=e(window);n=m.left+n.elemWidth-u.width()-u.scrollLeft();m.left=n>0?m.left-n:Math.max(0,m.left)},top:function(m,n){var u=e(window);n=m.top+n.elemHeight-u.height()-u.scrollTop();m.top=n>0?m.top-n:Math.max(0,m.top)}},flip:{left:function(m,n){if(n.at[0]!=="center"){var u=e(window);u=m.left+n.elemWidth-u.width()-u.scrollLeft();var y=n.my[0]==="left"?
-n.elemWidth:n.my[0]==="right"?n.elemWidth:0,D=-2*n.offset[0];m.left+=m.left<0?y+n.targetWidth+D:u>0?y-n.targetWidth+D:0}},top:function(m,n){if(n.at[1]!=="center"){var u=e(window);u=m.top+n.elemHeight-u.height()-u.scrollTop();var y=n.my[1]==="top"?-n.elemHeight:n.my[1]==="bottom"?n.elemHeight:0,D=n.at[1]==="top"?n.targetHeight:-n.targetHeight,L=-2*n.offset[1];m.top+=m.top<0?y+n.targetHeight+L:u>0?y+D+L:0}}}};if(!e.offset.setOffset){e.offset.setOffset=function(m,n){if(/static/.test(e.curCSS(m,"position")))m.style.position=
"relative";var u=e(m),y=u.offset(),D=parseInt(e.curCSS(m,"top",true),10)||0,L=parseInt(e.curCSS(m,"left",true),10)||0;y={top:n.top-y.top+D,left:n.left-y.left+L};"using"in n?n.using.call(m,y):u.css(y)};e.fn.offset=function(m){var n=this[0];if(!n||!n.ownerDocument)return null;if(m)return this.each(function(){e.offset.setOffset(this,m)});return l.call(this)}}})(jQuery);
(function(e){e.widget("ui.draggable",e.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper==
"original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(c){var g=
this.options;if(this.helper||g.disabled||e(c.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(c);if(!this.handle)return false;return true},_mouseStart:function(c){var g=this.options;this.helper=this._createHelper(c);this._cacheHelperProportions();if(e.ui.ddmanager)e.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-
this.margins.top,left:this.offset.left-this.margins.left};e.extend(this.offset,{click:{left:c.pageX-this.offset.left,top:c.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(c);this.originalPageX=c.pageX;this.originalPageY=c.pageY;g.cursorAt&&this._adjustOffsetFromHelper(g.cursorAt);g.containment&&this._setContainment();if(this._trigger("start",c)===false){this._clear();return false}this._cacheHelperProportions();
e.ui.ddmanager&&!g.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,c);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(c,true);return true},_mouseDrag:function(c,g){this.position=this._generatePosition(c);this.positionAbs=this._convertPositionTo("absolute");if(!g){g=this._uiHash();if(this._trigger("drag",c,g)===false){this._mouseUp({});return false}this.position=g.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||
this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";e.ui.ddmanager&&e.ui.ddmanager.drag(this,c);return false},_mouseStop:function(c){var g=false;if(e.ui.ddmanager&&!this.options.dropBehaviour)g=e.ui.ddmanager.drop(this,c);if(this.dropped){g=this.dropped;this.dropped=false}if(!this.element[0]||!this.element[0].parentNode)return false;if(this.options.revert=="invalid"&&!g||this.options.revert=="valid"&&g||this.options.revert===true||e.isFunction(this.options.revert)&&this.options.revert.call(this.element,
g)){var j=this;e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){j._trigger("stop",c)!==false&&j._clear()})}else this._trigger("stop",c)!==false&&this._clear();return false},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(c){var g=!this.options.handle||!e(this.options.handle,this.element).length?true:false;e(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==
c.target)g=true});return g},_createHelper:function(c){var g=this.options;c=e.isFunction(g.helper)?e(g.helper.apply(this.element[0],[c])):g.helper=="clone"?this.element.clone():this.element;c.parents("body").length||c.appendTo(g.appendTo=="parent"?this.element[0].parentNode:g.appendTo);c[0]!=this.element[0]&&!/(fixed|absolute)/.test(c.css("position"))&&c.css("position","absolute");return c},_adjustOffsetFromHelper:function(c){if(typeof c=="string")c=c.split(" ");if(e.isArray(c))c={left:+c[0],top:+c[1]||
0};if("left"in c)this.offset.click.left=c.left+this.margins.left;if("right"in c)this.offset.click.left=this.helperProportions.width-c.right+this.margins.left;if("top"in c)this.offset.click.top=c.top+this.margins.top;if("bottom"in c)this.offset.click.top=this.helperProportions.height-c.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var c=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&e.ui.contains(this.scrollParent[0],
this.offsetParent[0])){c.left+=this.scrollParent.scrollLeft();c.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&e.browser.msie)c={top:0,left:0};return{top:c.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:c.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var c=this.element.position();return{top:c.top-
(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:c.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var c=this.options;if(c.containment==
"parent")c.containment=this.helper[0].parentNode;if(c.containment=="document"||c.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,e(c.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(e(c.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(c.containment)&&
c.containment.constructor!=Array){var g=e(c.containment)[0];if(g){c=e(c.containment).offset();var j=e(g).css("overflow")!="hidden";this.containment=[c.left+(parseInt(e(g).css("borderLeftWidth"),10)||0)+(parseInt(e(g).css("paddingLeft"),10)||0)-this.margins.left,c.top+(parseInt(e(g).css("borderTopWidth"),10)||0)+(parseInt(e(g).css("paddingTop"),10)||0)-this.margins.top,c.left+(j?Math.max(g.scrollWidth,g.offsetWidth):g.offsetWidth)-(parseInt(e(g).css("borderLeftWidth"),10)||0)-(parseInt(e(g).css("paddingRight"),
10)||0)-this.helperProportions.width-this.margins.left,c.top+(j?Math.max(g.scrollHeight,g.offsetHeight):g.offsetHeight)-(parseInt(e(g).css("borderTopWidth"),10)||0)-(parseInt(e(g).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}}else if(c.containment.constructor==Array)this.containment=c.containment},_convertPositionTo:function(c,g){if(!g)g=this.position;c=c=="absolute"?1:-1;var j=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&e.ui.contains(this.scrollParent[0],
this.offsetParent[0]))?this.offsetParent:this.scrollParent,l=/(html|body)/i.test(j[0].tagName);return{top:g.top+this.offset.relative.top*c+this.offset.parent.top*c-(e.browser.safari&&e.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():l?0:j.scrollTop())*c),left:g.left+this.offset.relative.left*c+this.offset.parent.left*c-(e.browser.safari&&e.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():
l?0:j.scrollLeft())*c)}},_generatePosition:function(c){var g=this.options,j=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&e.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,l=/(html|body)/i.test(j[0].tagName),m=c.pageX,n=c.pageY;if(this.originalPosition){if(this.containment){if(c.pageX-this.offset.click.left<this.containment[0])m=this.containment[0]+this.offset.click.left;if(c.pageY-this.offset.click.top<this.containment[1])n=this.containment[1]+
this.offset.click.top;if(c.pageX-this.offset.click.left>this.containment[2])m=this.containment[2]+this.offset.click.left;if(c.pageY-this.offset.click.top>this.containment[3])n=this.containment[3]+this.offset.click.top}if(g.grid){n=this.originalPageY+Math.round((n-this.originalPageY)/g.grid[1])*g.grid[1];n=this.containment?!(n-this.offset.click.top<this.containment[1]||n-this.offset.click.top>this.containment[3])?n:!(n-this.offset.click.top<this.containment[1])?n-g.grid[1]:n+g.grid[1]:n;m=this.originalPageX+
Math.round((m-this.originalPageX)/g.grid[0])*g.grid[0];m=this.containment?!(m-this.offset.click.left<this.containment[0]||m-this.offset.click.left>this.containment[2])?m:!(m-this.offset.click.left<this.containment[0])?m-g.grid[0]:m+g.grid[0]:m}}return{top:n-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(e.browser.safari&&e.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():l?0:j.scrollTop()),left:m-this.offset.click.left-
this.offset.relative.left-this.offset.parent.left+(e.browser.safari&&e.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():l?0:j.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(c,g,j){j=j||this._uiHash();e.ui.plugin.call(this,c,[g,j]);if(c=="drag")this.positionAbs=
this._convertPositionTo("absolute");return e.Widget.prototype._trigger.call(this,c,g,j)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});e.extend(e.ui.draggable,{version:"1.8.1"});e.ui.plugin.add("draggable","connectToSortable",{start:function(c,g){var j=e(this).data("draggable"),l=j.options,m=e.extend({},g,{item:j.element});j.sortables=[];e(l.connectToSortable).each(function(){var n=e.data(this,"sortable");
if(n&&!n.options.disabled){j.sortables.push({instance:n,shouldRevert:n.options.revert});n._refreshItems();n._trigger("activate",c,m)}})},stop:function(c,g){var j=e(this).data("draggable"),l=e.extend({},g,{item:j.element});e.each(j.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;j.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(c);this.instance.options.helper=this.instance.options._helper;
j.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",c,l)}})},drag:function(c,g){var j=e(this).data("draggable"),l=this;e.each(j.sortables,function(){this.instance.positionAbs=j.positionAbs;this.instance.helperProportions=j.helperProportions;this.instance.offset.click=j.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=
1;this.instance.currentItem=e(l).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return g.helper[0]};c.target=this.instance.currentItem[0];this.instance._mouseCapture(c,true);this.instance._mouseStart(c,true,true);this.instance.offset.click.top=j.offset.click.top;this.instance.offset.click.left=j.offset.click.left;this.instance.offset.parent.left-=j.offset.parent.left-this.instance.offset.parent.left;
this.instance.offset.parent.top-=j.offset.parent.top-this.instance.offset.parent.top;j._trigger("toSortable",c);j.dropped=this.instance.element;j.currentItem=j.element;this.instance.fromOutside=j}this.instance.currentItem&&this.instance._mouseDrag(c)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",c,this.instance._uiHash(this.instance));this.instance._mouseStop(c,true);this.instance.options.helper=
this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();j._trigger("fromSortable",c);j.dropped=false}})}});e.ui.plugin.add("draggable","cursor",{start:function(){var c=e("body"),g=e(this).data("draggable").options;if(c.css("cursor"))g._cursor=c.css("cursor");c.css("cursor",g.cursor)},stop:function(){var c=e(this).data("draggable").options;c._cursor&&e("body").css("cursor",c._cursor)}});e.ui.plugin.add("draggable","iframeFix",{start:function(){var c=
e(this).data("draggable").options;e(c.iframeFix===true?"iframe":c.iframeFix).each(function(){e('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(e(this).offset()).appendTo("body")})},stop:function(){e("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});e.ui.plugin.add("draggable","opacity",{start:function(c,g){c=e(g.helper);g=e(this).data("draggable").options;
if(c.css("opacity"))g._opacity=c.css("opacity");c.css("opacity",g.opacity)},stop:function(c,g){c=e(this).data("draggable").options;c._opacity&&e(g.helper).css("opacity",c._opacity)}});e.ui.plugin.add("draggable","scroll",{start:function(){var c=e(this).data("draggable");if(c.scrollParent[0]!=document&&c.scrollParent[0].tagName!="HTML")c.overflowOffset=c.scrollParent.offset()},drag:function(c){var g=e(this).data("draggable"),j=g.options,l=false;if(g.scrollParent[0]!=document&&g.scrollParent[0].tagName!=
"HTML"){if(!j.axis||j.axis!="x")if(g.overflowOffset.top+g.scrollParent[0].offsetHeight-c.pageY<j.scrollSensitivity)g.scrollParent[0].scrollTop=l=g.scrollParent[0].scrollTop+j.scrollSpeed;else if(c.pageY-g.overflowOffset.top<j.scrollSensitivity)g.scrollParent[0].scrollTop=l=g.scrollParent[0].scrollTop-j.scrollSpeed;if(!j.axis||j.axis!="y")if(g.overflowOffset.left+g.scrollParent[0].offsetWidth-c.pageX<j.scrollSensitivity)g.scrollParent[0].scrollLeft=l=g.scrollParent[0].scrollLeft+j.scrollSpeed;else if(c.pageX-
g.overflowOffset.left<j.scrollSensitivity)g.scrollParent[0].scrollLeft=l=g.scrollParent[0].scrollLeft-j.scrollSpeed}else{if(!j.axis||j.axis!="x")if(c.pageY-e(document).scrollTop()<j.scrollSensitivity)l=e(document).scrollTop(e(document).scrollTop()-j.scrollSpeed);else if(e(window).height()-(c.pageY-e(document).scrollTop())<j.scrollSensitivity)l=e(document).scrollTop(e(document).scrollTop()+j.scrollSpeed);if(!j.axis||j.axis!="y")if(c.pageX-e(document).scrollLeft()<j.scrollSensitivity)l=e(document).scrollLeft(e(document).scrollLeft()-
j.scrollSpeed);else if(e(window).width()-(c.pageX-e(document).scrollLeft())<j.scrollSensitivity)l=e(document).scrollLeft(e(document).scrollLeft()+j.scrollSpeed)}l!==false&&e.ui.ddmanager&&!j.dropBehaviour&&e.ui.ddmanager.prepareOffsets(g,c)}});e.ui.plugin.add("draggable","snap",{start:function(){var c=e(this).data("draggable"),g=c.options;c.snapElements=[];e(g.snap.constructor!=String?g.snap.items||":data(draggable)":g.snap).each(function(){var j=e(this),l=j.offset();this!=c.element[0]&&c.snapElements.push({item:this,
width:j.outerWidth(),height:j.outerHeight(),top:l.top,left:l.left})})},drag:function(c,g){for(var j=e(this).data("draggable"),l=j.options,m=l.snapTolerance,n=g.offset.left,u=n+j.helperProportions.width,y=g.offset.top,D=y+j.helperProportions.height,L=j.snapElements.length-1;L>=0;L--){var K=j.snapElements[L].left,H=K+j.snapElements[L].width,F=j.snapElements[L].top,M=F+j.snapElements[L].height;if(K-m<n&&n<H+m&&F-m<y&&y<M+m||K-m<n&&n<H+m&&F-m<D&&D<M+m||K-m<u&&u<H+m&&F-m<y&&y<M+m||K-m<u&&u<H+m&&F-m<D&&
D<M+m){if(l.snapMode!="inner"){var P=Math.abs(F-D)<=m,d=Math.abs(M-y)<=m,X=Math.abs(K-u)<=m,aa=Math.abs(H-n)<=m;if(P)g.position.top=j._convertPositionTo("relative",{top:F-j.helperProportions.height,left:0}).top-j.margins.top;if(d)g.position.top=j._convertPositionTo("relative",{top:M,left:0}).top-j.margins.top;if(X)g.position.left=j._convertPositionTo("relative",{top:0,left:K-j.helperProportions.width}).left-j.margins.left;if(aa)g.position.left=j._convertPositionTo("relative",{top:0,left:H}).left-
j.margins.left}var B=P||d||X||aa;if(l.snapMode!="outer"){P=Math.abs(F-y)<=m;d=Math.abs(M-D)<=m;X=Math.abs(K-n)<=m;aa=Math.abs(H-u)<=m;if(P)g.position.top=j._convertPositionTo("relative",{top:F,left:0}).top-j.margins.top;if(d)g.position.top=j._convertPositionTo("relative",{top:M-j.helperProportions.height,left:0}).top-j.margins.top;if(X)g.position.left=j._convertPositionTo("relative",{top:0,left:K}).left-j.margins.left;if(aa)g.position.left=j._convertPositionTo("relative",{top:0,left:H-j.helperProportions.width}).left-
j.margins.left}if(!j.snapElements[L].snapping&&(P||d||X||aa||B))j.options.snap.snap&&j.options.snap.snap.call(j.element,c,e.extend(j._uiHash(),{snapItem:j.snapElements[L].item}));j.snapElements[L].snapping=P||d||X||aa||B}else{j.snapElements[L].snapping&&j.options.snap.release&&j.options.snap.release.call(j.element,c,e.extend(j._uiHash(),{snapItem:j.snapElements[L].item}));j.snapElements[L].snapping=false}}}});e.ui.plugin.add("draggable","stack",{start:function(){var c=e(this).data("draggable").options;
c=e.makeArray(e(c.stack)).sort(function(j,l){return(parseInt(e(j).css("zIndex"),10)||0)-(parseInt(e(l).css("zIndex"),10)||0)});if(c.length){var g=parseInt(c[0].style.zIndex)||0;e(c).each(function(j){this.style.zIndex=g+j});this[0].style.zIndex=g+c.length}}});e.ui.plugin.add("draggable","zIndex",{start:function(c,g){c=e(g.helper);g=e(this).data("draggable").options;if(c.css("zIndex"))g._zIndex=c.css("zIndex");c.css("zIndex",g.zIndex)},stop:function(c,g){c=e(this).data("draggable").options;c._zIndex&&
e(g.helper).css("zIndex",c._zIndex)}})})(jQuery);
(function(e){function c(){var n=g(this);isNaN(n.datetime)||e(this).text(j(n.datetime));return this}function g(n){n=e(n);if(!n.data("timeago")){n.data("timeago",{datetime:m.datetime(n)});var u=e.trim(n.text());u.length>0&&n.attr("title",u)}return n.data("timeago")}function j(n){return m.inWords(l(n))}function l(n){return(new Date).getTime()-n.getTime()}e.timeago=function(n){return n instanceof Date?j(n):typeof n=="string"?j(e.timeago.parse(n)):j(e.timeago.datetime(n))};var m=e.timeago;e.extend(e.timeago,
{settings:{refreshMillis:6E4,allowFuture:false,strings:{prefixAgo:null,prefixFromNow:null,suffixAgo:"ago",suffixFromNow:"from now",seconds:"less than a minute",minute:"about a minute",minutes:"%d minutes",hour:"about an hour",hours:"about %d hours",day:"a day",days:"%d days",month:"about a month",months:"%d months",year:"about a year",years:"%d years",numbers:[]}},inWords:function(n){function u(P,d){return(e.isFunction(P)?P(d):P).replace(/%d/i,y.numbers&&y.numbers[d]||d)}var y=this.settings.strings,
D=y.prefixAgo,L=y.suffixAgo;if(this.settings.allowFuture){if(n<0){D=y.prefixFromNow;L=y.suffixFromNow}n=Math.abs(n)}n=n/1E3;var K=n/60,H=K/60,F=H/24,M=F/365;n=n<45&&u(y.seconds,Math.round(n))||n<90&&u(y.minute,1)||K<45&&u(y.minutes,Math.round(K))||K<90&&u(y.hour,1)||H<24&&u(y.hours,Math.round(H))||H<48&&u(y.day,1)||F<30&&u(y.days,Math.floor(F))||F<60&&u(y.month,1)||F<365&&u(y.months,Math.floor(F/30))||M<2&&u(y.year,1)||u(y.years,Math.floor(M));return e.trim([D,n,L].join(" "))},parse:function(n){n=
e.trim(n);n=n.replace(/\.\d\d\d/,"");n=n.replace(/-/,"/").replace(/-/,"/");n=n.replace(/Z/," UTC");n=n.replace(/([\+-]\d\d)\:?(\d\d)/," $1$2");return new Date(n)},datetime:function(n){n=e(n).get(0).tagName.toLowerCase()=="time"?e(n).attr("datetime"):e(n).attr("title");return m.parse(n)}});e.fn.timeago=function(){var n=this;n.each(c);var u=m.settings;u.refreshMillis>0&&setInterval(function(){n.each(c)},u.refreshMillis);return n};document.createElement("abbr");document.createElement("time")})(jQuery);
jQuery.easing.jswing=jQuery.easing.swing;
jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,c,g,j,l){return jQuery.easing[jQuery.easing.def](e,c,g,j,l)},easeInQuad:function(e,c,g,j,l){return j*(c/=l)*c+g},easeOutQuad:function(e,c,g,j,l){return-j*(c/=l)*(c-2)+g},easeInOutQuad:function(e,c,g,j,l){if((c/=l/2)<1)return j/2*c*c+g;return-j/2*(--c*(c-2)-1)+g},easeInCubic:function(e,c,g,j,l){return j*(c/=l)*c*c+g},easeOutCubic:function(e,c,g,j,l){return j*((c=c/l-1)*c*c+1)+g},easeInOutCubic:function(e,c,g,j,l){if((c/=l/2)<1)return j/
2*c*c*c+g;return j/2*((c-=2)*c*c+2)+g},easeInQuart:function(e,c,g,j,l){return j*(c/=l)*c*c*c+g},easeOutQuart:function(e,c,g,j,l){return-j*((c=c/l-1)*c*c*c-1)+g},easeInOutQuart:function(e,c,g,j,l){if((c/=l/2)<1)return j/2*c*c*c*c+g;return-j/2*((c-=2)*c*c*c-2)+g},easeInQuint:function(e,c,g,j,l){return j*(c/=l)*c*c*c*c+g},easeOutQuint:function(e,c,g,j,l){return j*((c=c/l-1)*c*c*c*c+1)+g},easeInOutQuint:function(e,c,g,j,l){if((c/=l/2)<1)return j/2*c*c*c*c*c+g;return j/2*((c-=2)*c*c*c*c+2)+g},easeInSine:function(e,
c,g,j,l){return-j*Math.cos(c/l*(Math.PI/2))+j+g},easeOutSine:function(e,c,g,j,l){return j*Math.sin(c/l*(Math.PI/2))+g},easeInOutSine:function(e,c,g,j,l){return-j/2*(Math.cos(Math.PI*c/l)-1)+g},easeInExpo:function(e,c,g,j,l){return c==0?g:j*Math.pow(2,10*(c/l-1))+g},easeOutExpo:function(e,c,g,j,l){return c==l?g+j:j*(-Math.pow(2,-10*c/l)+1)+g},easeInOutExpo:function(e,c,g,j,l){if(c==0)return g;if(c==l)return g+j;if((c/=l/2)<1)return j/2*Math.pow(2,10*(c-1))+g;return j/2*(-Math.pow(2,-10*--c)+2)+g},
easeInCirc:function(e,c,g,j,l){return-j*(Math.sqrt(1-(c/=l)*c)-1)+g},easeOutCirc:function(e,c,g,j,l){return j*Math.sqrt(1-(c=c/l-1)*c)+g},easeInOutCirc:function(e,c,g,j,l){if((c/=l/2)<1)return-j/2*(Math.sqrt(1-c*c)-1)+g;return j/2*(Math.sqrt(1-(c-=2)*c)+1)+g},easeInElastic:function(e,c,g,j,l){e=1.70158;var m=0,n=j;if(c==0)return g;if((c/=l)==1)return g+j;m||(m=l*0.3);if(n<Math.abs(j)){n=j;e=m/4}else e=m/(2*Math.PI)*Math.asin(j/n);return-(n*Math.pow(2,10*(c-=1))*Math.sin((c*l-e)*2*Math.PI/m))+g},easeOutElastic:function(e,
c,g,j,l){e=1.70158;var m=0,n=j;if(c==0)return g;if((c/=l)==1)return g+j;m||(m=l*0.3);if(n<Math.abs(j)){n=j;e=m/4}else e=m/(2*Math.PI)*Math.asin(j/n);return n*Math.pow(2,-10*c)*Math.sin((c*l-e)*2*Math.PI/m)+j+g},easeInOutElastic:function(e,c,g,j,l){e=1.70158;var m=0,n=j;if(c==0)return g;if((c/=l/2)==2)return g+j;m||(m=l*0.3*1.5);if(n<Math.abs(j)){n=j;e=m/4}else e=m/(2*Math.PI)*Math.asin(j/n);if(c<1)return-0.5*n*Math.pow(2,10*(c-=1))*Math.sin((c*l-e)*2*Math.PI/m)+g;return n*Math.pow(2,-10*(c-=1))*Math.sin((c*
l-e)*2*Math.PI/m)*0.5+j+g},easeInBack:function(e,c,g,j,l,m){if(m==undefined)m=1.70158;return j*(c/=l)*c*((m+1)*c-m)+g},easeOutBack:function(e,c,g,j,l,m){if(m==undefined)m=1.70158;return j*((c=c/l-1)*c*((m+1)*c+m)+1)+g},easeInOutBack:function(e,c,g,j,l,m){if(m==undefined)m=1.70158;if((c/=l/2)<1)return j/2*c*c*(((m*=1.525)+1)*c-m)+g;return j/2*((c-=2)*c*(((m*=1.525)+1)*c+m)+2)+g},easeInBounce:function(e,c,g,j,l){return j-jQuery.easing.easeOutBounce(e,l-c,0,j,l)+g},easeOutBounce:function(e,c,g,j,l){return(c/=
l)<1/2.75?j*7.5625*c*c+g:c<2/2.75?j*(7.5625*(c-=1.5/2.75)*c+0.75)+g:c<2.5/2.75?j*(7.5625*(c-=2.25/2.75)*c+0.9375)+g:j*(7.5625*(c-=2.625/2.75)*c+0.984375)+g},easeInOutBounce:function(e,c,g,j,l){if(c<l/2)return jQuery.easing.easeInBounce(e,c*2,0,j,l)*0.5+g;return jQuery.easing.easeOutBounce(e,c*2-l,0,j,l)*0.5+j*0.5+g}});
(function(e,c){function g(E){return typeof E==="string"}function j(E){var N=L.call(arguments,1);return function(){return E.apply(this,N.concat(L.call(arguments)))}}function l(E){return E.replace(/^[^#]*#?(.*)$/,"$1")}function m(E){return E.replace(/(?:^[^?#]*\?([^#]*).*$)?.*/,"$1")}function n(E,N,R,T,V){var Z;if(T!==D){N=R.match(E?/^([^#]*)\#?(.*)$/:/^([^#?]*)\??([^#]*)(#?.*)/);R=N[3]||"";if(V===2&&g(T))T=T.replace(E?la:va,"");else{Z=M(N[2]);T=g(T)?M[E?ha:ja](T):T;T=V===2?T:V===1?e.extend({},T,Z):
e.extend({},Z,T);T=H(T);if(E)T=T.replace(ta,K)}E=N[1]+(E?"#":T||!N[1]?"?":"")+T+R}else E=N(R!==D?R:c[sa][ka]);return E}function u(E,N,R){if(N===D||typeof N==="boolean"){R=N;N=H[E?ha:ja]()}else N=g(N)?N.replace(E?la:va,""):N;return M(N,R)}function y(E,N,R,T){if(!g(R)&&typeof R!=="object"){T=R;R=N;N=D}return this.each(function(){var V=e(this),Z=N||B()[(this.nodeName||"").toLowerCase()]||"",U=Z&&V.attr(Z)||"";V.attr(Z,H[E](U,R,T))})}var D,L=Array.prototype.slice,K=decodeURIComponent,H=e.param,F,M,P,
d=e.bbq=e.bbq||{},X,aa,B,fa=e.event.special,ja="querystring",ha="fragment",sa="location",ka="href",va=/^.*\?|#.*$/g,la=/^.*\#/,ta,oa={};H[ja]=j(n,0,m);H[ha]=F=j(n,1,l);F.noEscape=function(E){E=E||"";E=e.map(E.split(""),encodeURIComponent);ta=new RegExp(E.join("|"),"g")};F.noEscape(",/");e.deparam=M=function(E,N){var R={},T={"true":true,"false":false,"null":null};e.each(E.replace(/\+/g," ").split("&"),function(V,Z){var U=Z.split("=");V=K(U[0]);Z=R;var ia=0,ba=V.split("]["),ga=ba.length-1;if(/\[/.test(ba[0])&&
/\]$/.test(ba[ga])){ba[ga]=ba[ga].replace(/\]$/,"");ba=ba.shift().split("[").concat(ba);ga=ba.length-1}else ga=0;if(U.length===2){U=K(U[1]);if(N)U=U&&!isNaN(U)?+U:U==="undefined"?D:T[U]!==D?T[U]:U;if(ga)for(;ia<=ga;ia++){V=ba[ia]===""?Z.length:ba[ia];Z=Z[V]=ia<ga?Z[V]||(ba[ia+1]&&isNaN(ba[ia+1])?{}:[]):U}else if(e.isArray(R[V]))R[V].push(U);else R[V]=R[V]!==D?[R[V],U]:U}else if(V)R[V]=N?D:""});return R};M[ja]=j(u,0);M[ha]=P=j(u,1);e.elemUrlAttr||(e.elemUrlAttr=function(E){return e.extend(oa,E)})({a:ka,
base:ka,iframe:"src",img:"src",input:"src",form:"action",link:ka,script:"src"});B=e.elemUrlAttr;e.fn[ja]=j(y,ja);e.fn[ha]=j(y,ha);d.pushState=X=function(E,N){if(g(E)&&/^#/.test(E)&&N===D)N=2;var R=E!==D;E=F(c[sa][ka],R?E:{},R?N:2);c[sa][ka]=E+(/#/.test(E)?"":"#")};d.getState=aa=function(E,N){return E===D||typeof E==="boolean"?P(E):P(N)[E]};d.removeState=function(E){var N={};if(E!==D){N=aa();e.each(e.isArray(E)?E:arguments,function(R,T){delete N[T]})}X(N,2)};fa.hashchange=e.extend(fa.hashchange,{add:function(E){function N(T){var V=
T[ha]=F();T.getState=function(Z,U){return Z===D||typeof Z==="boolean"?M(V,Z):M(V,U)[Z]};R.apply(this,arguments)}var R;if(e.isFunction(E)){R=E;return N}else{R=E.handler;E.handler=N}}})})(jQuery,this);
(function(e,c,g){function j(K){K=K||c[n][u];return K.replace(/^[^#]*#?(.*)$/,"$1")}var l,m=e.event.special,n="location",u="href",y=document.documentMode,D=e.browser.msie&&(y===g||y<8),L="onhashchange"in c&&!D;e.hashchangeDelay=100;m.hashchange=e.extend(m.hashchange,{setup:function(){if(L)return false;e(l.start)},teardown:function(){if(L)return false;e(l.stop)}});l=function(){function K(){P=d=function(X){return X};if(D){M=e('<iframe src="javascript:0"/>').hide().insertAfter("body")[0].contentWindow;
d=function(){return j(M.document[n][u])};P=function(X,aa){if(X!==aa){aa=M.document;aa.open().close();aa[n].hash="#"+X}};P(j())}}var H={},F,M,P,d;H.start=function(){if(!F){var X=j();P||K();(function aa(){var B=j(),fa=d(X);if(B!==X){P(X=B,fa);e(c).trigger("hashchange")}else if(fa!==X)c[n][u]=c[n][u].replace(/#.*/,"")+"#"+fa;F=setTimeout(aa,e.hashchangeDelay)})()}};H.stop=function(){if(!M){F&&clearTimeout(F);F=0}};return H}()})(jQuery,this);var __clippyOpts,__paddingX=50,__paddingY=50;
function __changeClippyText(){var e=__clippyOpts.hints[__getRandomInt(0,__clippyOpts.hints.length-1)];$("div.clippyText").html(e);setTimeout("__changeClippyText();",__clippyOpts.hintChangeTimeOut)}function __relocateClippy(){var e=__getRandomInt(10,$(window).width()-__paddingX),c=__getRandomInt(10,$(window).height()-__paddingY);$("div.clippyContainer").css({left:e,top:c})}function __getRandomInt(e,c){return Math.floor(Math.random()*(c-e+1))+e}
(function(e){e.fn.addClippy=function(c){var g=e(this);e.fn.addClippy.defaults={initialPosition:{left:100,top:100},initialPositionRandom:false,hints:[],hintChangeTimeOut:1E4,icon:"Clippy.png",initialText:"It looks like you need help",relocateOnHover:false,onClickDelegate:function(){}};__clippyOpts=e.extend({},e.fn.addClippy.defaults,c);g.append("<div class='clippyContainer'><div class='clippyIcon'><img src='"+__clippyOpts.icon+"'></div><div class='clippyText'>"+__clippyOpts.initialText+"</div><div class='clippyClear'></div></div>");
e("div.clippyIcon > img").load(function(){__paddingX=e("div.clippyIcon > img").width()+e("div.clippyText").width();__paddingY=e("div.clippyIcon > img").height()});__clippyOpts.initialPositionRandom?__relocateClippy():e("div.clippyContainer").css(__clippyOpts.initialPosition);e("div.clippyIcon").click(__clippyOpts.onClickDelegate);__clippyOpts.relocateOnHover&&e("div.clippyIcon").hover(__relocateClippy,function(){});setTimeout("__changeClippyText();",__clippyOpts.hintChangeTimeOut)}})(jQuery);
var BOOMWORKS=function(e){var c={};c.init_portfolio=function(){e("#portfolio-work .portfolio-thumb").mouseenter(function(){e(this).addClass("hover");e(this).find("shape").show()});e("#portfolio-work .portfolio-thumb").mouseleave(function(){e(this).removeClass("hover");e(this).find("a > shape").hide();e(".experimental a > shape").show();e(".casestudy a > shape").show()})};c.init_crew_images=function(){e("#profiles .profile-thumb").mouseenter(function(){e(this).addClass("hover")});e("#profiles .profile-thumb").mouseleave(function(){e(this).removeClass("hover")})};
c.init_fridge_magnets=function(){if(e("#magnets").length){index=400;e("#magnets img").draggable({containment:"parent"});e("#magnets img").live("mousedown",function(){e(this).css("z-index",index);index+=10});e("#magnets").mouseenter(function(){e(".move-words").fadeIn()});e("#magnets").mouseleave(function(){e(".move-words").fadeOut()})}};c.init_featureArticle=function(){e("#feature #more ul li").mouseenter(function(){e(this).addClass("hover")});e("#feature #more ul li").mouseleave(function(){e(this).removeClass("hover")});
var g,j;if(typeof screenshots!="undefined"){g=screenshots;j=0}if(typeof featured_projects!="undefined"){g=featured_projects;j=1}e("#feature #more ul li a").click(function(l){var m=e(this),n=m.attr("id"),u=g[n],y='<div class="project-display" id="'+n+'-display">',D=e("#feature .project-display");if(j){idNo=n.substring(8);oldId=e("#feature #more ul li.current a").attr("id").substring(8)}else{idNo=n.substring(11);oldId=e("#feature #more ul li.current a").attr("id").substring(11)}e("#feature #more ul li.current").removeClass("current");
m.parent("li").addClass("current");if(n===D.attr("id").replace("-display",""))return false;if(j){y+="<h2>"+u.title+"</h2>";y+="<p>"+u.summary+'<a href="'+u.url+'">READ MORE</a></p>';y+='<a href="'+u.url+'"><img src="'+u.img+'" width="656" height="250" alt="'+u.title+'"></a>'}else{y+='<p class="title">'+u.title+"</p>";y+='<p><a href="'+u.url+'" class="launch-project">LAUNCH PROJECT</a></p>';y+='<img src="'+u.img+'" width="656" height="375" alt="'+u.title+'">'}y+="</div>";if(oldId<idNo){e(y).insertBefore("#feature #more").css({left:-686}).animate({left:15},
{duration:500,easing:"easeInOutBack"});D.animate({left:686},{duration:500,complete:function(){e(this).remove()},easing:"easeInOutBack"})}else{e(y).insertBefore("#feature #more").css({left:686}).animate({left:15},{duration:500,easing:"easeInOutBack"});D.animate({left:-686},{duration:500,complete:function(){e(this).remove()},easing:"easeInOutBack"})}l.preventDefault();return false})};c.init_contentSelector=function(){e("#layout-form ul li, #content-form ul li").mouseenter(function(){e(this).addClass("hover")});
e("#layout-form ul li, #content-form ul li").mouseleave(function(){e(this).removeClass("hover")});e("#content-form ul li").click(function(){e(this).removeClass("hover");e("#content-form ul li.current").removeClass("current");e(this).addClass("current")});e("#layout-form ul li").click(function(){c.change_layout(e(this).find("input:radio"));e(this).removeClass("hover");e("#layout-form ul li.current").removeClass("current");e(this).addClass("current")});if(e("#layout-form ul li :radio:checked").attr("value")===
"large"){c.change_layout(e("#layout-form ul li :radio:checked"));e("#layout-form ul li.current").removeClass("current");e("#layout-form ul li :radio:checked").parents("li").addClass("current")}};c.change_layout=function(g){g=g.attr("value");project_list=e("#portfolio-work");if(e("#layout-form ul li.current").is("."+g))return false;if(g==="small"){project_list.removeClass("large");project_list.find("img").each(function(){var j=e(this);j.attr("width",210).attr("height",120).attr("src",j.attr("src").replace("w=501&h=250",
"w=210&h=120"))})}else{project_list.addClass("large");project_list.find("img").each(function(){var j=e(this);j.attr("width",501).attr("height",250).attr("src",j.attr("src").replace("w=210&h=120","w=501&h=250"))})}};c.twitter_feed_data=[];c.flickr_feed_data=[];c.flickr_feed_photos={};c.flickr_user_id="47078906@N08";c.flickr_api_key="bbb65d99a2f3d2d2be5add2921854e5b";c.flickr_sets_found=0;c.flickr_sets_loaded=0;c.parse_twitter_date=function(g){return new Date(g.replace(/([a-z]{3} [a-z]{3} [0-9]{2})( [0-9]{2}:[0-9]{2}:[0-9]{2} \+[0-9]{4})( [0-9]{2,4})/gi,
"$1$3$2"))};c.init_feeds=function(){if(!e("#banter #activity")[0])return false;var g="http://api.flickr.com/services/rest/?format=json&jsoncallback=?&method=flickr.photosets.getList&user_id="+c.flickr_user_id+"&api_key="+c.flickr_api_key,j="http://api.flickr.com/services/rest/?format=json&jsoncallback=?&method=flickr.photosets.getPhotos&photoset_id={photoset_id}&api_key="+c.flickr_api_key+"&extras=url_sq,date_taken&per_page=3";e("#banter #activity").html('<li class="loading">Loading...</li>');e.getJSON("http://api.twitter.com/1/statuses/user_timeline/boomworks.json?callback=?&trim_user=true",
function(l){var m=[];if(l.length===0)return false;for(var n=0;n<l.length;n++)l[n].in_reply_to_status_id||m.push(l[n]);l=m;for(n=0;n<2;n++)c.twitter_feed_data.push({type:"twitter",id:l[n].id,text:l[n].text,created_at:c.parse_twitter_date(l[n].created_at),time_ago:e.timeago(c.parse_twitter_date(l[n].created_at))});c.display_feeds()});e.getJSON(g,function(l){var m;if(l.stat!=="ok")return false;c.flickr_sets_found=l.photosets.photoset.length>3?3:l.photosets.photoset.length;for(var n=0;n<c.flickr_sets_found;n++){m=
l.photosets.photoset[n].id;c.flickr_feed_data.push({type:"flickr",id:l.photosets.photoset[n].id,title:l.photosets.photoset[n].title});e.getJSON(j.replace(/{photoset_id}/,m),function(u){if(u.stat!=="ok")return false;c.flickr_feed_photos[u.photoset.id]=[];for(var y=0;y<u.photoset.photo.length;y++)c.flickr_feed_photos[u.photoset.id].push({id:u.photoset.photo[y].id,photoset_id:u.photoset.id,title:u.photoset.photo[y].title,url:"http://flickr.com/photos/"+c.flickr_user_id+"/"+u.photoset.photo[y].id,image_url:u.photoset.photo[y].url_sq,
created_at:e.timeago.parse(u.photoset.photo[y].datetaken)});c.flickr_sets_loaded++;c.display_feeds()})}})};c.display_feeds=function(){var g=5,j=[],l="",m=e("#banter #activity");if(c.twitter_feed_data.length===0||c.flickr_feed_data.length===0||c.flickr_sets_loaded!==c.flickr_sets_found)return false;for(var n=c.flickr_feed_data.length;n--;)c.flickr_feed_data[n].created_at=c.flickr_feed_photos[c.flickr_feed_data[n].id][0].created_at;j=j.concat(c.twitter_feed_data,c.flickr_feed_data).sort(function(D,
L){return D.created_at>L.created_at?-1:D.created_at<L.created_at?1:0});g=j.length<g?j.length:g;for(n=0;n<g;n++){if(j[n].type==="twitter"){l+='<li class="twitter">';l+='<p><span><a href="http://twitter.com/Boomworks">@Boomworks</a></span> - '+c.parse_text(j[n].text)+"</p>";l+='<p class="time"><a href="http://twitter.com/Boomworks/status/'+j[n].id+'">'+j[n].time_ago+"</a></p>"}else{l+='<li class="flickr">';l+='<p><span><a href="http://flickr.com/photos/'+c.flickr_user_id+'">Flickr</a></span> - '+j[n].title._content+
"</p>";l+='<ul class="img-holder">';for(var u=0;u<c.flickr_feed_photos[j[n].id].length;u++){var y=c.flickr_feed_photos[j[n].id][u];l+='<li><a href="'+y.url+'"><img src="'+y.image_url+'" alt="'+y.title+'" width="49" height="48"></a></li>'}l+="</ul>";l+='<p class="time">'+e.timeago(j[n].created_at)+"</p>"}l+="</li>"}m.find("li").fadeOut("fast",function(){e(this).parents("ul").html(l).show().find("li").hide().each(function(D){e(this).fadeIn(100*D)})})};c.init_portfolio_filter=function(){var g=e("#portfolio-controller #content-form input:radio");
e(".portfolio-thumb");if(!g.length)return false;e(window).bind("hashchange",function(){c.filter_portfolio()});c.filter_portfolio();g.click(function(){var j=e(this);j.attr("name");var l=j.val().toLowerCase(),m="";j.is(":checked");if(l==="all")m="all";else{g.filter("[value=all]").removeAttr("checked");g.filter(":checked").each(function(){m+="."+e(this).val().toLowerCase()})}e.bbq.pushState({"portfolio-content":m});c.filter_portfolio()})};c.filter_portfolio=function(){var g=e("#portfolio-controller #content-form input:radio"),
j=e.bbq.getState("portfolio-content"),l=e(".portfolio-thumb");if(!g.length)return false;if(j===undefined||j==="all"){e("#content > h1").html("Portfolio");g.filter("[value!=all]").each(function(){e(this).removeAttr("checked")});l.each(function(u){e(this).delay(100*u).fadeIn("fast")})}else{this_checkbox=g.filter("[value="+j.replace(".","")+"]");breadcrumb_text=this_checkbox.attr("checked","checked").parents("label").text();e("#content-form li.current").removeClass("current");this_checkbox.parents("li").addClass("current");
e("#content > h1").html('<a href="./">Portfolio</a> / '+breadcrumb_text);l.filter(j).each(function(u){e(this).delay(100*u).fadeIn("fast")});g=l.filter(":not("+j+")");for(var m=g.length,n=0;m--;)e(g[m]).delay(100*n++).fadeOut("fast")}l.find("a").each(function(){var u=e(this).attr("href").replace(/&cat=[a-z\-]*/gi,"");if(j!==undefined&&j!=="all")u=u+"&cat="+j.replace(".","");e(this).attr("href",u)})};c.init_crew_filter=function(){var g=e("#profile-controller #content-form input:radio");e(".profile-thumb");
if(!g.length)return false;e(window).bind("hashchange",function(){c.filter_crew()});c.filter_crew();g.click(function(){var j=e(this);j.attr("name");var l=j.val().toLowerCase(),m="";j.is(":checked");if(l==="all")m="all";else{g.filter("[value=all]").removeAttr("checked");g.filter(":checked").each(function(){m+="."+e(this).val().toLowerCase()})}e.bbq.pushState({"profile-content":m});c.filter_crew()})};c.filter_crew=function(){var g=e("#profile-controller #content-form input:radio"),j=e.bbq.getState("profile-content"),
l=e(".profile-thumb");if(!g.length)return false;if(j===undefined||j==="all"){e("#content > h1").html("The crew");g.filter("[value!=all]").each(function(){e(this).removeAttr("checked")});l.each(function(u){e(this).delay(100*u).fadeIn("fast")})}else{this_checkbox=g.filter("[value="+j.replace(".","")+"]");breadcrumb_text=this_checkbox.attr("checked","checked").parents("label").text();e("#content-form li.current").removeClass("current");this_checkbox.parents("li").addClass("current");e("#content > h1").html('<a href="./">The crew</a> / '+
breadcrumb_text);l.filter(j).each(function(u){e(this).delay(100*u).fadeIn("fast")});g=l.filter(":not("+j+")");for(var m=g.length,n=0;m--;)e(g[m]).delay(100*n++).fadeOut("fast")}l.find("a").each(function(){var u=e(this).attr("href").replace(/&cat=[a-z\-]*/gi,"");if(j!==undefined&&j!=="all")u=u+"&cat="+j.replace(".","");e(this).attr("href",u)})};c.body_width=0;c.window_height=0;c.partying="nup";c.init_party_mode=function(){e.konami(function(){if(c.partying==="hard"){e("div.b").stop().remove();c.partying=
"nope"}else{c.commence_the_rocking();c.partying="hard"}});e.accio(function(){e("#areas li a p").each(function(){switch(e.trim(e(this).text())){case "Development":e(this).html('Gryffindev <img src="../images/more-link.png"/>');break;case "Project Management":e(this).html('Slytherpm <img src="../images/more-link.png"/>');break;case "User Experience":e(this).html('UffleXuff <img src="../images/more-link.png"/>');break;case "Creative":e(this).html('DesignClaw <img src="../images/more-link.png"/>');break}})});
e.ohemgee(function(){c.DOUBLE_RAINBOW()});e.helpme(function(){c.init_clippy()})};c.DOUBLE_RAINBOW=function(){e("h1 *,h2 *,h3 *,li *,p *,h2,h3,p").each(function(){var g=e(this);g.html(c.colour_text(g.text()))})};c.colour_text=function(g,j){var l="",m=0,n=Math.PI*2/g.length,u,y,D;if(j==undefined)j=0;for(;m<g.length;++m){u=Math.sin(n*m+2+j)*127+128;y=Math.sin(n*m+0+j)*127+128;D=Math.sin(n*m+4+j)*127+128;l+='<span style="color:'+c.RGB2Color(u,y,D)+';">'+g.substr(m,1)+"</span>"}return l};c.RGB2Color=function(g,
j,l){return"#"+c.byte2Hex(g)+c.byte2Hex(j)+c.byte2Hex(l)};c.byte2Hex=function(g){return String("0123456789ABCDEF".substr(g>>4&15,1))+"0123456789ABCDEF".substr(g&15,1)};c.commence_the_rocking=function(){c.body_width=e("body").width();c.window_height=e(window).height();for(var g=0;g<12;g++){e('<div id="b'+g+'" class="b b'+g%4+'"></div>').css({left:c.random_range(0,c.body_width)-200}).appendTo("body");setTimeout("BOOMWORKS.party_hard("+g+")",1E3*g)}};c.party_hard=function(g){if(!e("#b"+g)[0])return false;
e("#b"+g).animate({top:BOOMWORKS.window_height},{duration:"slow",complete:function(){e(this).css({left:BOOMWORKS.random_range(0,c.body_width)-200,top:-180});setTimeout("BOOMWORKS.party_hard("+g+")",1E3)}})};c.random_range=function(g,j){return Math.floor((j-g-1)*Math.random())+g};c.random_colour=function(){var g=c.random_range(0,255).toString(16),j=c.random_range(0,255).toString(16),l=c.random_range(0,255).toString(16);return"#"+g+j+l};c.init_map=function(){if(!e("#map")[0])return false;var g=document.createElement("script");
e("#map").width(646).height(567);g.type="text/javascript";g.src="http://maps.google.com/maps/api/js?sensor=false&callback=BOOMWORKS.initialise_map";document.body.appendChild(g)};c.initialise_map=function(){var g=new google.maps.LatLng(-33.891357,151.177175);new google.maps.LatLng(-33.887591,151.179535);var j=new google.maps.LatLng(-33.889372,151.174579);new google.maps.LatLng(-33.89092,151.172798);var l=new google.maps.LatLng(-33.889708,151.176993),m=new google.maps.LatLng(-33.890401,151.176252),
n=new google.maps.LatLng(-33.893053,151.183209),u=new google.maps.LatLng(-33.895384,151.176403),y=new google.maps.LatLng(-33.89602,151.178339),D=new google.maps.LatLng(-27.127897,-109.359283),L=new google.maps.LatLng(5.489211,-8.553543),K=new google.maps.LatLng(33.888417,-28.822546),H=new google.maps.LatLng(-32.24453,148.606224),F=new google.maps.Map(document.getElementById("map"),{zoom:16,center:g,mapTypeId:google.maps.MapTypeId.ROADMAP,disableDefaultUI:true});g=document.createElement("DIV");g.className=
"bw-control-div";var M=document.createElement("DIV");M.className="bw-zoom-in";g.appendChild(M);google.maps.event.addDomListener(M,"click",function(){F.setZoom(F.getZoom()+1)});M=document.createElement("DIV");M.className="bw-zoom-out";g.appendChild(M);google.maps.event.addDomListener(M,"click",function(){F.setZoom(F.getZoom()-1)});F.controls[google.maps.ControlPosition.TOP_LEFT].push(g);new google.maps.Marker({zIndex:31337,title:"New office",position:j,map:F,icon:"../images/ic_boomworks_marker.png",
shadow:"../images/bg_boomworks_marker_background.png"});new google.maps.Marker({title:"Oval",position:l,map:F,icon:"../images/ic_football_marker.png",shadow:"../images/bg_generic_marker_shadow.png"});new google.maps.Marker({title:"Canteen",position:m,map:F,icon:"../images/ic_burger_marker.png",shadow:"../images/bg_generic_marker_shadow.png"});new google.maps.Marker({title:"Campos",position:n,map:F,icon:"../images/ic_coffee_marker.png",shadow:"../images/bg_generic_marker_shadow.png"});new google.maps.Marker({title:"Carlisle Castle",
position:u,map:F,icon:"../images/ic_pub_marker.png",shadow:"../images/bg_generic_marker_shadow.png"});new google.maps.Marker({title:"Courthouse Hotel",position:y,map:F,icon:"../images/ic_pub_marker.png",shadow:"../images/bg_generic_marker_shadow.png"});l=new google.maps.Marker({title:"Easter Island",position:D,map:F,icon:"../images/ic_easter_marker.png",shadow:"../images/bg_generic_marker_shadow.png"});L=new google.maps.Marker({title:"Pygmy hippos",position:L,map:F,icon:"../images/ic_hippo_marker.png",
shadow:"../images/bg_generic_marker_shadow.png"});K=new google.maps.Marker({title:"Teh other side of the world",position:K,map:F,icon:"../images/ic_other_side_marker.png",shadow:"../images/bg_generic_marker_shadow.png"});H=new google.maps.Marker({title:"Dubbo",position:H,map:F,icon:"../images/ic_dubbo_marker.png",shadow:"../images/bg_generic_marker_shadow.png"});H=[l,L,K,H];for(K=H.length;K--;)google.maps.event.addListener(H[K],"dblclick",function(){BOOMWORKS.randomise_map_colours()});showDirections=
function(P){alert(P)};directionsDisplay=new google.maps.DirectionsRenderer({map:F,draggable:true});setTimeout(function(){e("#input-address").val("35.588415,-121.123447").parents("form").submit();e("#input-address").val('"The Outside of the Asylum"')},42E3);e("#get_directions").submit(function(P){P.preventDefault();P=e("#input-address").val();var d=new google.maps.DirectionsService;direction_query={destination:j,origin:P,travelMode:google.maps.DirectionsTravelMode.DRIVING};d.route(direction_query,
function(X,aa){aa==google.maps.DirectionsStatus.OK&&directionsDisplay.setDirections(X)})});BOOMWORKS.contact_map=F};c.randomise_map_colours=function(){var g=[{featureType:"transit",elementType:"all",stylers:[{hue:c.random_colour()},{saturation:100}]},{featureType:"landscape",elementType:"all",stylers:[{hue:c.random_colour()},{saturation:100}]},{featureType:"administrative",elementType:"all",stylers:[{hue:c.random_colour()},{saturation:100}]},{featureType:"poi",elementType:"all",stylers:[{hue:c.random_colour()},
{saturation:100}]},{featureType:"water",elementType:"all",stylers:[{hue:c.random_colour()},{saturation:100}]},{featureType:"road",elementType:"all",stylers:[{hue:c.random_colour()},{saturation:100}]},{featureType:"landscape",elementType:"all",stylers:[{hue:c.random_colour()},{saturation:100}]}];g=new google.maps.StyledMapType(g,{name:"PARTY MODE"});BOOMWORKS.contact_map.mapTypes.set("partymode",g);BOOMWORKS.contact_map.setMapTypeId("partymode")};c.project_screens=function(){e(".more_screens ul li").mouseenter(function(){var g=
screenshots,j=e(this).find("a").attr("id");g=g[j];s='<img src="'+g.img+'" width="656" height="250" alt="'+g.title+'">';e(".more_screens .current").removeClass("current");e(".project_screenshot img").remove();e(".project_screenshot").append(s);e(this).addClass("current")});e(".more_screens ul li a").click(function(g){g.preventDefault()})};c.init_other_projects=function(){return false};c.init_client_logos=function(){var g=[];e("#clients li:not(.more) a img").each(function(j){var l=e(this);g[j]=new Image;
g[j].src=l.attr("src").replace(/\.png/i,"_hover.png");l.parents("a").bind("mouseenter focus",function(){var m=e(this).find("img");m.attr("src",m.attr("src").replace(/_hover\.png/i,".png").replace(/\.png/i,"_hover.png"))});l.parents("a").bind("mouseleave blur",function(){var m=e(this).find("img");m.attr("src",m.attr("src").replace(/_hover\.png/i,".png"))})})};c.parse_text=function(g){return g=g.replace(/(http:\/\/[^\s]*)/gi,'<a href="$1" rel="external">$1</a>')};c.init_pngFixIE=function(){e.browser.msie&&
e.browser.version.substring(0,1)=="6"&&DD_belatedPNG.fix("#magnets img, h4, h3, .portfolio-thumb .wrapper, .portfolio-thumb .wrapper img, #layout-form .small img")};c.init_raptors=function(){e("body").raptorize({enterOn:"god-mode"})};c.init_clippy=function(){e("body").addClippy({relocateOnHover:true,hintChangeTimeOut:5E3,initialPosition:{left:"83%",top:"44%"},initialText:"It looks like you need help!",hints:["I see you're trying to use the internet.","Have you tried turning it off and on again?"],
icon:"/images/clippy.png"})};e(document).ready(function(){c.init_portfolio();c.init_crew_images();c.init_client_logos();c.init_contentSelector();c.init_fridge_magnets();c.init_featureArticle();c.init_feeds();c.init_portfolio_filter();c.init_crew_filter();c.init_map();c.project_screens();c.init_party_mode();c.init_other_projects();c.init_pngFixIE()});return c}(jQuery);jQuery.fn.delay=function(e,c){jQuery.fx.step.delay=function(){};return this.animate({delay:1},e,c)};
(function(e){var c=[],g=[38,38,40,40,37,39,37,39,66,65],j=0;e.extend({konami:function(l,m){c.push(l);if(m)g=m}});e(document).bind("keyup",function(l){l=l.keyCode;if(l==g[j])j++;else j=l==g[0]?1:0;j==g.length&&c.length>0&&e.each(c,function(){this()})})})(jQuery);(function(e){var c=[],g=[65,67,67,73,79],j=0;e.extend({accio:function(l,m){c.push(l);if(m)g=m}});e(document).bind("keyup",function(l){l=l.keyCode;if(l==g[j])j++;else j=l==g[0]?1:0;j==g.length&&c.length>0&&e.each(c,function(){this()})})})(jQuery);
(function(e){var c=[],g=[72,69,76,80,77,69],j=0;e.extend({helpme:function(l,m){c.push(l);if(m)g=m}});e(document).bind("keyup",function(l){l=l.keyCode;if(l==g[j])j++;else j=l==g[0]?1:0;j==g.length&&c.length>0&&e.each(c,function(){this()})})})(jQuery);(function(e){var c=[],g=[79,77,71],j=0;e.extend({ohemgee:function(l,m){c.push(l);if(m)g=m}});e(document).bind("keyup",function(l){l=l.keyCode;if(l==g[j])j++;else j=l==g[0]?1:0;j==g.length&&c.length>0&&e.each(c,function(){this()})})})(jQuery);
(function(e){e.fn.raptorize=function(c){c=e.extend({enterOn:"click",delayTime:5E3},c);return this.each(function(){function g(){m=true;l&&function(){document.getElementById("elRaptorShriek").play()}();n.animate({bottom:"0"},function(){e(this).animate({bottom:"-130px"},100,function(){var y=e(this).position().left+400;e(this).delay(300).animate({right:y},2200,function(){n=e("#elRaptor").css({bottom:"-700px",right:"0"});m=false})})})}var j=e(this),l=false;if(e.browser.mozilla&&e.browser.version.substr(0,
5)>="1.9.2"||e.browser.webkit)l=true;var m=false;e("body").append('<img id="elRaptor" style="display: none" src="/images/raptor.png" />');l&&e("body").append('<audio id="elRaptorShriek" preload="auto"><source src="/audio/raptor-sound.mp3" /><source src="/audio/raptor-sound.ogg" /></audio>');var n=e("#elRaptor").css({position:"fixed",bottom:"-700px",right:"0",display:"block"});if(c.enterOn=="timer")setTimeout(g,c.delayTime);else if(c.enterOn=="click")j.bind("click",function(y){y.preventDefault();m||
g()});else if(c.enterOn=="god-mode"){var u=[];e(window).bind("keydown.raptorz",function(y){u.push(y.keyCode);if(u.toString().indexOf("73,68,68,81,68")>=0){g();e(window).unbind("keydown.raptorz")}},true)}})}})(jQuery);

