(function(b,d){function h(){if(!f.isReady){try{B.documentElement.doScroll("left")}catch(c){setTimeout(h,1);return}f.ready()}}function a(c,i){i.src?f.ajax({url:i.src,async:false,dataType:"script"}):f.globalEval(i.text||i.textContent||i.innerHTML||"");i.parentNode&&i.parentNode.removeChild(i)}function l(c,i,m,q,o,y){var z=c.length;if(typeof i==="object"){for(var M in i)l(c,M,i[M],q,o,m);return c}if(m!==d){q=!y&&q&&f.isFunction(m);for(M=0;M<z;M++)o(c[M],i,q?m.call(c[M],M,o(c[M],i)):m,y);return c}return z?
o(c[0],i):d}function n(){return(new Date).getTime()}function g(){return false}function e(){return true}function k(c,i,m){m[0].type=c;return f.event.handle.apply(i,m)}function r(c){var i,m=[],q=[],o=arguments,y,z,M,F,K,U;z=f.data(this,"events");if(!(c.liveFired===this||!z||!z.live||c.button&&c.type==="click")){c.liveFired=this;var aa=z.live.slice(0);for(F=0;F<aa.length;F++){z=aa[F];z.origType.replace(T,"")===c.type?q.push(z.selector):aa.splice(F--,1)}y=f(c.target).closest(q,c.currentTarget);K=0;for(U=
y.length;K<U;K++)for(F=0;F<aa.length;F++){z=aa[F];if(y[K].selector===z.selector){M=y[K].elem;q=null;if(z.preType==="mouseenter"||z.preType==="mouseleave")q=f(c.relatedTarget).closest(z.selector)[0];if(!q||q!==M)m.push({elem:M,handleObj:z})}}K=0;for(U=m.length;K<U;K++){y=m[K];c.currentTarget=y.elem;c.data=y.handleObj.data;c.handleObj=y.handleObj;if(y.handleObj.origHandler.apply(y.elem,o)===false){i=false;break}}return i}}function v(c,i){return"live."+(c&&c!=="*"?c+".":"")+i.replace(/\./g,"`").replace(/ /g,
"&")}function D(c){return!c||!c.parentNode||c.parentNode.nodeType===11}function O(c,i){var m=0;i.each(function(){if(this.nodeName===(c[m]&&c[m].nodeName)){var q=f.data(c[m++]),o=f.data(this,q);if(q=q&&q.events){delete o.handle;o.events={};for(var y in q)for(var z in q[y])f.event.add(this,y,q[y][z],q[y][z].data)}}})}function L(c,i,m){var q,o,y;i=i&&i[0]?i[0].ownerDocument||i[0]:B;if(c.length===1&&typeof c[0]==="string"&&c[0].length<512&&i===B&&!ab.test(c[0])&&(f.support.checkClone||!bb.test(c[0]))){o=
true;if(y=f.fragments[c[0]])if(y!==1)q=y}if(!q){q=i.createDocumentFragment();f.clean(c,i,q,m)}if(o)f.fragments[c[0]]=y?q:1;return{fragment:q,cacheable:o}}function E(c,i){var m={};f.each(cb.concat.apply([],cb.slice(0,i)),function(){m[this]=c});return m}function s(c){return"scrollTo"in c&&c.document?c:c.nodeType===9?c.defaultView||c.parentWindow:false}var f=function(c,i){return new f.fn.init(c,i)},A=b.jQuery,H=b.$,B=b.document,x,P=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,N=/^.[^:#\[\.,]*$/,ea=/\S/,sa=
/^(\s|\u00A0)+|(\s|\u00A0)+$/g,ka=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,ga=navigator.userAgent,X=false,la=[],ta,na=Object.prototype.toString,oa=Object.prototype.hasOwnProperty,ya=Array.prototype.push,wa=Array.prototype.slice,za=Array.prototype.indexOf;f.fn=f.prototype={init:function(c,i){var m,q;if(!c)return this;if(c.nodeType){this.context=this[0]=c;this.length=1;return this}if(c==="body"&&!i){this.context=B;this[0]=B.body;this.selector="body";this.length=1;return this}if(typeof c==="string")if((m=P.exec(c))&&
(m[1]||!i))if(m[1]){q=i?i.ownerDocument||i:B;if(c=ka.exec(c))if(f.isPlainObject(i)){c=[B.createElement(c[1])];f.fn.attr.call(c,i,true)}else c=[q.createElement(c[1])];else{c=L([m[1]],[q]);c=(c.cacheable?c.fragment.cloneNode(true):c.fragment).childNodes}return f.merge(this,c)}else{if(i=B.getElementById(m[2])){if(i.id!==m[2])return x.find(c);this.length=1;this[0]=i}this.context=B;this.selector=c;return this}else if(!i&&/^\w+$/.test(c)){this.selector=c;this.context=B;c=B.getElementsByTagName(c);return f.merge(this,
c)}else return!i||i.jquery?(i||x).find(c):f(i).find(c);else if(f.isFunction(c))return x.ready(c);if(c.selector!==d){this.selector=c.selector;this.context=c.context}return f.makeArray(c,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return wa.call(this,0)},get:function(c){return c==null?this.toArray():c<0?this.slice(c)[0]:this[c]},pushStack:function(c,i,m){var q=f();f.isArray(c)?ya.apply(q,c):f.merge(q,c);q.prevObject=this;q.context=this.context;if(i===
"find")q.selector=this.selector+(this.selector?" ":"")+m;else if(i)q.selector=this.selector+"."+i+"("+m+")";return q},each:function(c,i){return f.each(this,c,i)},ready:function(c){f.bindReady();if(f.isReady)c.call(B,f);else la&&la.push(c);return this},eq:function(c){return c===-1?this.slice(c):this.slice(c,+c+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(wa.apply(this,arguments),"slice",wa.call(arguments).join(","))},map:function(c){return this.pushStack(f.map(this,
function(i,m){return c.call(i,m,i)}))},end:function(){return this.prevObject||f(null)},push:ya,sort:[].sort,splice:[].splice};f.fn.init.prototype=f.fn;f.extend=f.fn.extend=function(){var c=arguments[0]||{},i=1,m=arguments.length,q=false,o,y,z,M;if(typeof c==="boolean"){q=c;c=arguments[1]||{};i=2}if(typeof c!=="object"&&!f.isFunction(c))c={};if(m===i){c=this;--i}for(;i<m;i++)if((o=arguments[i])!=null)for(y in o){z=c[y];M=o[y];if(c!==M)if(q&&M&&(f.isPlainObject(M)||f.isArray(M))){z=z&&(f.isPlainObject(z)||
f.isArray(z))?z:f.isArray(M)?[]:{};c[y]=f.extend(q,z,M)}else if(M!==d)c[y]=M}return c};f.extend({noConflict:function(c){b.$=H;if(c)b.jQuery=A;return f},isReady:false,ready:function(){if(!f.isReady){if(!B.body)return setTimeout(f.ready,13);f.isReady=true;if(la){for(var c,i=0;c=la[i++];)c.call(B,f);la=null}f.fn.triggerHandler&&f(B).triggerHandler("ready")}},bindReady:function(){if(!X){X=true;if(B.readyState==="complete")return f.ready();if(B.addEventListener){B.addEventListener("DOMContentLoaded",ta,
false);b.addEventListener("load",f.ready,false)}else if(B.attachEvent){B.attachEvent("onreadystatechange",ta);b.attachEvent("onload",f.ready);var c=false;try{c=b.frameElement==null}catch(i){}B.documentElement.doScroll&&c&&h()}}},isFunction:function(c){return na.call(c)==="[object Function]"},isArray:function(c){return na.call(c)==="[object Array]"},isPlainObject:function(c){if(!c||na.call(c)!=="[object Object]"||c.nodeType||c.setInterval)return false;if(c.constructor&&!oa.call(c,"constructor")&&!oa.call(c.constructor.prototype,
"isPrototypeOf"))return false;var i;for(i in c);return i===d||oa.call(c,i)},isEmptyObject:function(c){for(var i in c)return false;return true},error:function(c){throw c;},parseJSON:function(c){if(typeof c!=="string"||!c)return null;c=f.trim(c);if(/^[\],:{}\s]*$/.test(c.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return b.JSON&&b.JSON.parse?b.JSON.parse(c):(new Function("return "+
c))();else f.error("Invalid JSON: "+c)},noop:function(){},globalEval:function(c){if(c&&ea.test(c)){var i=B.getElementsByTagName("head")[0]||B.documentElement,m=B.createElement("script");m.type="text/javascript";if(f.support.scriptEval)m.appendChild(B.createTextNode(c));else m.text=c;i.insertBefore(m,i.firstChild);i.removeChild(m)}},nodeName:function(c,i){return c.nodeName&&c.nodeName.toUpperCase()===i.toUpperCase()},each:function(c,i,m){var q,o=0,y=c.length,z=y===d||f.isFunction(c);if(m)if(z)for(q in c){if(i.apply(c[q],
m)===false)break}else for(;o<y;){if(i.apply(c[o++],m)===false)break}else if(z)for(q in c){if(i.call(c[q],q,c[q])===false)break}else for(m=c[0];o<y&&i.call(m,o,m)!==false;m=c[++o]);return c},trim:function(c){return(c||"").replace(sa,"")},makeArray:function(c,i){i=i||[];if(c!=null)c.length==null||typeof c==="string"||f.isFunction(c)||typeof c!=="function"&&c.setInterval?ya.call(i,c):f.merge(i,c);return i},inArray:function(c,i){if(i.indexOf)return i.indexOf(c);for(var m=0,q=i.length;m<q;m++)if(i[m]===
c)return m;return-1},merge:function(c,i){var m=c.length,q=0;if(typeof i.length==="number")for(var o=i.length;q<o;q++)c[m++]=i[q];else for(;i[q]!==d;)c[m++]=i[q++];c.length=m;return c},grep:function(c,i,m){for(var q=[],o=0,y=c.length;o<y;o++)!m!==!i(c[o],o)&&q.push(c[o]);return q},map:function(c,i,m){for(var q=[],o,y=0,z=c.length;y<z;y++){o=i(c[y],y,m);if(o!=null)q[q.length]=o}return q.concat.apply([],q)},guid:1,proxy:function(c,i,m){if(arguments.length===2)if(typeof i==="string"){m=c;c=m[i];i=d}else if(i&&
!f.isFunction(i)){m=i;i=d}if(!i&&c)i=function(){return c.apply(m||this,arguments)};if(c)i.guid=c.guid=c.guid||i.guid||f.guid++;return i},uaMatch:function(c){c=c.toLowerCase();c=/(webkit)[ \/]([\w.]+)/.exec(c)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(c)||/(msie) ([\w.]+)/.exec(c)||!/compatible/.test(c)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(c)||[];return{browser:c[1]||"",version:c[2]||"0"}},browser:{}});ga=f.uaMatch(ga);if(ga.browser){f.browser[ga.browser]=true;f.browser.version=ga.version}if(f.browser.webkit)f.browser.safari=
true;if(za)f.inArray=function(c,i){return za.call(i,c)};x=f(B);if(B.addEventListener)ta=function(){B.removeEventListener("DOMContentLoaded",ta,false);f.ready()};else if(B.attachEvent)ta=function(){if(B.readyState==="complete"){B.detachEvent("onreadystatechange",ta);f.ready()}};(function(){f.support={};var c=B.documentElement,i=B.createElement("script"),m=B.createElement("div"),q="script"+n();m.style.display="none";m.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
var o=m.getElementsByTagName("*"),y=m.getElementsByTagName("a")[0];if(!(!o||!o.length||!y)){f.support={leadingWhitespace:m.firstChild.nodeType===3,tbody:!m.getElementsByTagName("tbody").length,htmlSerialize:!!m.getElementsByTagName("link").length,style:/red/.test(y.getAttribute("style")),hrefNormalized:y.getAttribute("href")==="/a",opacity:/^0.55$/.test(y.style.opacity),cssFloat:!!y.style.cssFloat,checkOn:m.getElementsByTagName("input")[0].value==="on",optSelected:B.createElement("select").appendChild(B.createElement("option")).selected,
parentNode:m.removeChild(m.appendChild(B.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};i.type="text/javascript";try{i.appendChild(B.createTextNode("window."+q+"=1;"))}catch(z){}c.insertBefore(i,c.firstChild);if(b[q]){f.support.scriptEval=true;delete b[q]}try{delete i.test}catch(M){f.support.deleteExpando=false}c.removeChild(i);if(m.attachEvent&&m.fireEvent){m.attachEvent("onclick",function F(){f.support.noCloneEvent=
false;m.detachEvent("onclick",F)});m.cloneNode(true).fireEvent("onclick")}m=B.createElement("div");m.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";c=B.createDocumentFragment();c.appendChild(m.firstChild);f.support.checkClone=c.cloneNode(true).cloneNode(true).lastChild.checked;f(function(){var F=B.createElement("div");F.style.width=F.style.paddingLeft="1px";B.body.appendChild(F);f.boxModel=f.support.boxModel=F.offsetWidth===2;B.body.removeChild(F).style.display="none"});c=function(F){var K=
B.createElement("div");F="on"+F;var U=F in K;if(!U){K.setAttribute(F,"return;");U=typeof K[F]==="function"}return U};f.support.submitBubbles=c("submit");f.support.changeBubbles=c("change");c=i=m=o=y=null}})();f.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var va="jQuery"+n(),Ka=0,Aa={};f.extend({cache:{},expando:va,noData:{embed:true,
object:true,applet:true},data:function(c,i,m){if(!(c.nodeName&&f.noData[c.nodeName.toLowerCase()])){c=c==b?Aa:c;var q=c[va],o=f.cache;if(!q&&typeof i==="string"&&m===d)return null;q||(q=++Ka);if(typeof i==="object"){c[va]=q;o[q]=f.extend(true,{},i)}else if(!o[q]){c[va]=q;o[q]={}}c=o[q];if(m!==d)c[i]=m;return typeof i==="string"?c[i]:c}},removeData:function(c,i){if(!(c.nodeName&&f.noData[c.nodeName.toLowerCase()])){c=c==b?Aa:c;var m=c[va],q=f.cache,o=q[m];if(i){if(o){delete o[i];f.isEmptyObject(o)&&
f.removeData(c)}}else{if(f.support.deleteExpando)delete c[f.expando];else c.removeAttribute&&c.removeAttribute(f.expando);delete q[m]}}}});f.fn.extend({data:function(c,i){if(typeof c==="undefined"&&this.length)return f.data(this[0]);else if(typeof c==="object")return this.each(function(){f.data(this,c)});var m=c.split(".");m[1]=m[1]?"."+m[1]:"";if(i===d){var q=this.triggerHandler("getData"+m[1]+"!",[m[0]]);if(q===d&&this.length)q=f.data(this[0],c);return q===d&&m[1]?this.data(m[0]):q}else return this.trigger("setData"+
m[1]+"!",[m[0],i]).each(function(){f.data(this,c,i)})},removeData:function(c){return this.each(function(){f.removeData(this,c)})}});f.extend({queue:function(c,i,m){if(c){i=(i||"fx")+"queue";var q=f.data(c,i);if(!m)return q||[];if(!q||f.isArray(m))q=f.data(c,i,f.makeArray(m));else q.push(m);return q}},dequeue:function(c,i){i=i||"fx";var m=f.queue(c,i),q=m.shift();if(q==="inprogress")q=m.shift();if(q){i==="fx"&&m.unshift("inprogress");q.call(c,function(){f.dequeue(c,i)})}}});f.fn.extend({queue:function(c,
i){if(typeof c!=="string"){i=c;c="fx"}if(i===d)return f.queue(this[0],c);return this.each(function(){var m=f.queue(this,c,i);c==="fx"&&m[0]!=="inprogress"&&f.dequeue(this,c)})},dequeue:function(c){return this.each(function(){f.dequeue(this,c)})},delay:function(c,i){c=f.fx?f.fx.speeds[c]||c:c;i=i||"fx";return this.queue(i,function(){var m=this;setTimeout(function(){f.dequeue(m,i)},c)})},clearQueue:function(c){return this.queue(c||"fx",[])}});var Ba=/[\n\t]/g,Ga=/\s+/,xa=/\r/g,La=/href|src|style/,Oa=
/(button|input)/i,Y=/(button|input|object|select|textarea)/i,C=/^(a|area)$/i,I=/radio|checkbox/;f.fn.extend({attr:function(c,i){return l(this,c,i,true,f.attr)},removeAttr:function(c){return this.each(function(){f.attr(this,c,"");this.nodeType===1&&this.removeAttribute(c)})},addClass:function(c){if(f.isFunction(c))return this.each(function(K){var U=f(this);U.addClass(c.call(this,K,U.attr("class")))});if(c&&typeof c==="string")for(var i=(c||"").split(Ga),m=0,q=this.length;m<q;m++){var o=this[m];if(o.nodeType===
1)if(o.className){for(var y=" "+o.className+" ",z=o.className,M=0,F=i.length;M<F;M++)if(y.indexOf(" "+i[M]+" ")<0)z+=" "+i[M];o.className=f.trim(z)}else o.className=c}return this},removeClass:function(c){if(f.isFunction(c))return this.each(function(F){var K=f(this);K.removeClass(c.call(this,F,K.attr("class")))});if(c&&typeof c==="string"||c===d)for(var i=(c||"").split(Ga),m=0,q=this.length;m<q;m++){var o=this[m];if(o.nodeType===1&&o.className)if(c){for(var y=(" "+o.className+" ").replace(Ba," "),
z=0,M=i.length;z<M;z++)y=y.replace(" "+i[z]+" "," ");o.className=f.trim(y)}else o.className=""}return this},toggleClass:function(c,i){var m=typeof c,q=typeof i==="boolean";if(f.isFunction(c))return this.each(function(o){var y=f(this);y.toggleClass(c.call(this,o,y.attr("class"),i),i)});return this.each(function(){if(m==="string")for(var o,y=0,z=f(this),M=i,F=c.split(Ga);o=F[y++];){M=q?M:!z.hasClass(o);z[M?"addClass":"removeClass"](o)}else if(m==="undefined"||m==="boolean"){this.className&&f.data(this,
"__className__",this.className);this.className=this.className||c===false?"":f.data(this,"__className__")||""}})},hasClass:function(c){c=" "+c+" ";for(var i=0,m=this.length;i<m;i++)if((" "+this[i].className+" ").replace(Ba," ").indexOf(c)>-1)return true;return false},val:function(c){if(c===d){var i=this[0];if(i){if(f.nodeName(i,"option"))return(i.attributes.value||{}).specified?i.value:i.text;if(f.nodeName(i,"select")){var m=i.selectedIndex,q=[],o=i.options;i=i.type==="select-one";if(m<0)return null;
var y=i?m:0;for(m=i?m+1:o.length;y<m;y++){var z=o[y];if(z.selected){c=f(z).val();if(i)return c;q.push(c)}}return q}if(I.test(i.type)&&!f.support.checkOn)return i.getAttribute("value")===null?"on":i.value;return(i.value||"").replace(xa,"")}return d}var M=f.isFunction(c);return this.each(function(F){var K=f(this),U=c;if(this.nodeType===1){if(M)U=c.call(this,F,K.val());if(typeof U==="number")U+="";if(f.isArray(U)&&I.test(this.type))this.checked=f.inArray(K.val(),U)>=0;else if(f.nodeName(this,"select")){var aa=
f.makeArray(U);f("option",this).each(function(){this.selected=f.inArray(f(this).val(),aa)>=0});if(!aa.length)this.selectedIndex=-1}else this.value=U}})}});f.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(c,i,m,q){if(!c||c.nodeType===3||c.nodeType===8)return d;if(q&&i in f.attrFn)return f(c)[i](m);q=c.nodeType!==1||!f.isXMLDoc(c);var o=m!==d;i=q&&f.props[i]||i;if(c.nodeType===1){var y=La.test(i);if(i in c&&q&&!y){if(o){i==="type"&&
Oa.test(c.nodeName)&&c.parentNode&&f.error("type property can't be changed");c[i]=m}if(f.nodeName(c,"form")&&c.getAttributeNode(i))return c.getAttributeNode(i).nodeValue;if(i==="tabIndex")return(i=c.getAttributeNode("tabIndex"))&&i.specified?i.value:Y.test(c.nodeName)||C.test(c.nodeName)&&c.href?0:d;return c[i]}if(!f.support.style&&q&&i==="style"){if(o)c.style.cssText=""+m;return c.style.cssText}o&&c.setAttribute(i,""+m);c=!f.support.hrefNormalized&&q&&y?c.getAttribute(i,2):c.getAttribute(i);return c===
null?d:c}return f.style(c,i,m)}});var T=/\.(.*)$/,V=function(c){return c.replace(/[^\w\s\.\|`]/g,function(i){return"\\"+i})};f.event={add:function(c,i,m,q){if(!(c.nodeType===3||c.nodeType===8)){if(c.setInterval&&c!==b&&!c.frameElement)c=b;var o,y;if(m.handler){o=m;m=o.handler}if(!m.guid)m.guid=f.guid++;if(y=f.data(c)){var z=y.events=y.events||{},M=y.handle;if(!M)y.handle=M=function(){return typeof f!=="undefined"&&!f.event.triggered?f.event.handle.apply(M.elem,arguments):d};M.elem=c;i=i.split(" ");
for(var F,K=0,U;F=i[K++];){y=o?f.extend({},o):{handler:m,data:q};if(F.indexOf(".")>-1){U=F.split(".");F=U.shift();y.namespace=U.slice(0).sort().join(".")}else{U=[];y.namespace=""}y.type=F;y.guid=m.guid;var aa=z[F],ja=f.event.special[F]||{};if(!aa){aa=z[F]=[];if(!ja.setup||ja.setup.call(c,q,U,M)===false)if(c.addEventListener)c.addEventListener(F,M,false);else c.attachEvent&&c.attachEvent("on"+F,M)}if(ja.add){ja.add.call(c,y);if(!y.handler.guid)y.handler.guid=m.guid}aa.push(y);f.event.global[F]=true}c=
null}}},global:{},remove:function(c,i,m,q){if(!(c.nodeType===3||c.nodeType===8)){var o,y=0,z,M,F,K,U,aa,ja=f.data(c),qa=ja&&ja.events;if(ja&&qa){if(i&&i.type){m=i.handler;i=i.type}if(!i||typeof i==="string"&&i.charAt(0)==="."){i=i||"";for(o in qa)f.event.remove(c,o+i)}else{for(i=i.split(" ");o=i[y++];){K=o;z=o.indexOf(".")<0;M=[];if(!z){M=o.split(".");o=M.shift();F=new RegExp("(^|\\.)"+f.map(M.slice(0).sort(),V).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(U=qa[o])if(m){K=f.event.special[o]||{};for(pa=q||
0;pa<U.length;pa++){aa=U[pa];if(m.guid===aa.guid){if(z||F.test(aa.namespace)){q==null&&U.splice(pa--,1);K.remove&&K.remove.call(c,aa)}if(q!=null)break}}if(U.length===0||q!=null&&U.length===1){if(!K.teardown||K.teardown.call(c,M)===false)W(c,o,ja.handle);delete qa[o]}}else for(var pa=0;pa<U.length;pa++){aa=U[pa];if(z||F.test(aa.namespace)){f.event.remove(c,K,aa.handler,pa);U.splice(pa--,1)}}}if(f.isEmptyObject(qa)){if(i=ja.handle)i.elem=null;delete ja.events;delete ja.handle;f.isEmptyObject(ja)&&f.removeData(c)}}}}},
trigger:function(c,i,m,q){var o=c.type||c;if(!q){c=typeof c==="object"?c[va]?c:f.extend(f.Event(o),c):f.Event(o);if(o.indexOf("!")>=0){c.type=o=o.slice(0,-1);c.exclusive=true}if(!m){c.stopPropagation();f.event.global[o]&&f.each(f.cache,function(){this.events&&this.events[o]&&f.event.trigger(c,i,this.handle.elem)})}if(!m||m.nodeType===3||m.nodeType===8)return d;c.result=d;c.target=m;i=f.makeArray(i);i.unshift(c)}c.currentTarget=m;(q=f.data(m,"handle"))&&q.apply(m,i);q=m.parentNode||m.ownerDocument;
try{if(!(m&&m.nodeName&&f.noData[m.nodeName.toLowerCase()]))if(m["on"+o]&&m["on"+o].apply(m,i)===false)c.result=false}catch(y){}if(!c.isPropagationStopped()&&q)f.event.trigger(c,i,q,true);else if(!c.isDefaultPrevented()){q=c.target;var z,M=f.nodeName(q,"a")&&o==="click",F=f.event.special[o]||{};if((!F._default||F._default.call(m,c)===false)&&!M&&!(q&&q.nodeName&&f.noData[q.nodeName.toLowerCase()])){try{if(q[o]){if(z=q["on"+o])q["on"+o]=null;f.event.triggered=true;q[o]()}}catch(K){}if(z)q["on"+o]=
z;f.event.triggered=false}}},handle:function(c){var i,m,q,o;c=arguments[0]=f.event.fix(c||b.event);c.currentTarget=this;i=c.type.indexOf(".")<0&&!c.exclusive;if(!i){m=c.type.split(".");c.type=m.shift();q=new RegExp("(^|\\.)"+m.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}o=f.data(this,"events");m=o[c.type];if(o&&m){m=m.slice(0);o=0;for(var y=m.length;o<y;o++){var z=m[o];if(i||q.test(z.namespace)){c.handler=z.handler;c.data=z.data;c.handleObj=z;z=z.handler.apply(this,arguments);if(z!==d){c.result=
z;if(z===false){c.preventDefault();c.stopPropagation()}}if(c.isImmediatePropagationStopped())break}}}return c.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(c){if(c[va])return c;
var i=c;c=f.Event(i);for(var m=this.props.length,q;m;){q=this.props[--m];c[q]=i[q]}if(!c.target)c.target=c.srcElement||B;if(c.target.nodeType===3)c.target=c.target.parentNode;if(!c.relatedTarget&&c.fromElement)c.relatedTarget=c.fromElement===c.target?c.toElement:c.fromElement;if(c.pageX==null&&c.clientX!=null){i=B.documentElement;m=B.body;c.pageX=c.clientX+(i&&i.scrollLeft||m&&m.scrollLeft||0)-(i&&i.clientLeft||m&&m.clientLeft||0);c.pageY=c.clientY+(i&&i.scrollTop||m&&m.scrollTop||0)-(i&&i.clientTop||
m&&m.clientTop||0)}if(!c.which&&(c.charCode||c.charCode===0?c.charCode:c.keyCode))c.which=c.charCode||c.keyCode;if(!c.metaKey&&c.ctrlKey)c.metaKey=c.ctrlKey;if(!c.which&&c.button!==d)c.which=c.button&1?1:c.button&2?3:c.button&4?2:0;return c},guid:1E8,proxy:f.proxy,special:{ready:{setup:f.bindReady,teardown:f.noop},live:{add:function(c){f.event.add(this,c.origType,f.extend({},c,{handler:r}))},remove:function(c){var i=true,m=c.origType.replace(T,"");f.each(f.data(this,"events").live||[],function(){if(m===
this.origType.replace(T,""))return i=false});i&&f.event.remove(this,c.origType,r)}},beforeunload:{setup:function(c,i,m){if(this.setInterval)this.onbeforeunload=m;return false},teardown:function(c,i){if(this.onbeforeunload===i)this.onbeforeunload=null}}}};var W=B.removeEventListener?function(c,i,m){c.removeEventListener(i,m,false)}:function(c,i,m){c.detachEvent("on"+i,m)};f.Event=function(c){if(!this.preventDefault)return new f.Event(c);if(c&&c.type){this.originalEvent=c;this.type=c.type}else this.type=
c;this.timeStamp=n();this[va]=true};f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=e;var c=this.originalEvent;if(c){c.preventDefault&&c.preventDefault();c.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=e;var c=this.originalEvent;if(c){c.stopPropagation&&c.stopPropagation();c.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=e;this.stopPropagation()},isDefaultPrevented:g,isPropagationStopped:g,isImmediatePropagationStopped:g};
var ca=function(c){var i=c.relatedTarget;try{for(;i&&i!==this;)i=i.parentNode;if(i!==this){c.type=c.data;f.event.handle.apply(this,arguments)}}catch(m){}},da=function(c){c.type=c.data;f.event.handle.apply(this,arguments)};f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(c,i){f.event.special[c]={setup:function(m){f.event.add(this,i,m&&m.selector?da:ca,c)},teardown:function(m){f.event.remove(this,i,m&&m.selector?da:ca)}}});if(!f.support.submitBubbles)f.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!==
"form"){f.event.add(this,"click.specialSubmit",function(c){var i=c.target,m=i.type;if((m==="submit"||m==="image")&&f(i).closest("form").length)return k("submit",this,arguments)});f.event.add(this,"keypress.specialSubmit",function(c){var i=c.target,m=i.type;if((m==="text"||m==="password")&&f(i).closest("form").length&&c.keyCode===13)return k("submit",this,arguments)})}else return false},teardown:function(){f.event.remove(this,".specialSubmit")}};if(!f.support.changeBubbles){var ma=/textarea|input|select/i,
ra,Ha=function(c){var i=c.type,m=c.value;if(i==="radio"||i==="checkbox")m=c.checked;else if(i==="select-multiple")m=c.selectedIndex>-1?f.map(c.options,function(q){return q.selected}).join("-"):"";else if(c.nodeName.toLowerCase()==="select")m=c.selectedIndex;return m},Ia=function(c,i){var m=c.target,q,o;if(!(!ma.test(m.nodeName)||m.readOnly)){q=f.data(m,"_change_data");o=Ha(m);if(c.type!=="focusout"||m.type!=="radio")f.data(m,"_change_data",o);if(!(q===d||o===q))if(q!=null||o){c.type="change";return f.event.trigger(c,
i,m)}}};f.event.special.change={filters:{focusout:Ia,click:function(c){var i=c.target,m=i.type;if(m==="radio"||m==="checkbox"||i.nodeName.toLowerCase()==="select")return Ia.call(this,c)},keydown:function(c){var i=c.target,m=i.type;if(c.keyCode===13&&i.nodeName.toLowerCase()!=="textarea"||c.keyCode===32&&(m==="checkbox"||m==="radio")||m==="select-multiple")return Ia.call(this,c)},beforeactivate:function(c){c=c.target;f.data(c,"_change_data",Ha(c))}},setup:function(){if(this.type==="file")return false;
for(var c in ra)f.event.add(this,c+".specialChange",ra[c]);return ma.test(this.nodeName)},teardown:function(){f.event.remove(this,".specialChange");return ma.test(this.nodeName)}};ra=f.event.special.change.filters}B.addEventListener&&f.each({focus:"focusin",blur:"focusout"},function(c,i){function m(q){q=f.event.fix(q);q.type=i;return f.event.handle.call(this,q)}f.event.special[i]={setup:function(){this.addEventListener(c,m,true)},teardown:function(){this.removeEventListener(c,m,true)}}});f.each(["bind",
"one"],function(c,i){f.fn[i]=function(m,q,o){if(typeof m==="object"){for(var y in m)this[i](y,q,m[y],o);return this}if(f.isFunction(q)){o=q;q=d}var z=i==="one"?f.proxy(o,function(F){f(this).unbind(F,z);return o.apply(this,arguments)}):o;if(m==="unload"&&i!=="one")this.one(m,q,o);else{y=0;for(var M=this.length;y<M;y++)f.event.add(this[y],m,z,q)}return this}});f.fn.extend({unbind:function(c,i){if(typeof c==="object"&&!c.preventDefault)for(var m in c)this.unbind(m,c[m]);else{m=0;for(var q=this.length;m<
q;m++)f.event.remove(this[m],c,i)}return this},delegate:function(c,i,m,q){return this.live(i,m,q,c)},undelegate:function(c,i,m){return arguments.length===0?this.unbind("live"):this.die(i,null,m,c)},trigger:function(c,i){return this.each(function(){f.event.trigger(c,i,this)})},triggerHandler:function(c,i){if(this[0]){c=f.Event(c);c.preventDefault();c.stopPropagation();f.event.trigger(c,i,this[0]);return c.result}},toggle:function(c){for(var i=arguments,m=1;m<i.length;)f.proxy(c,i[m++]);return this.click(f.proxy(c,
function(q){var o=(f.data(this,"lastToggle"+c.guid)||0)%m;f.data(this,"lastToggle"+c.guid,o+1);q.preventDefault();return i[o].apply(this,arguments)||false}))},hover:function(c,i){return this.mouseenter(c).mouseleave(i||c)}});var Ca={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};f.each(["live","die"],function(c,i){f.fn[i]=function(m,q,o,y){var z,M=0,F,K,U=y||this.selector,aa=y?this:f(this.context);if(f.isFunction(q)){o=q;q=d}for(m=(m||"").split(" ");(z=m[M++])!=null;){y=
T.exec(z);F="";if(y){F=y[0];z=z.replace(T,"")}if(z==="hover")m.push("mouseenter"+F,"mouseleave"+F);else{K=z;if(z==="focus"||z==="blur"){m.push(Ca[z]+F);z+=F}else z=(Ca[z]||z)+F;i==="live"?aa.each(function(){f.event.add(this,v(z,U),{data:q,selector:U,handler:o,origType:z,origHandler:o,preType:K})}):aa.unbind(v(z,U),o)}}return this}});f.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(c,i){f.fn[i]=function(m){return m?this.bind(i,m):this.trigger(i)};if(f.attrFn)f.attrFn[i]=true});b.attachEvent&&!b.addEventListener&&b.attachEvent("onunload",function(){for(var c in f.cache)if(f.cache[c].handle)try{f.event.remove(f.cache[c].handle.elem)}catch(i){}});(function(){function c(u){for(var w="",G,J=0;u[J];J++){G=u[J];if(G.nodeType===3||G.nodeType===4)w+=G.nodeValue;else if(G.nodeType!==8)w+=c(G.childNodes)}return w}function i(u,w,G,J,R,Q){R=0;for(var ba=J.length;R<ba;R++){var Z=
J[R];if(Z){Z=Z[u];for(var ia=false;Z;){if(Z.sizcache===G){ia=J[Z.sizset];break}if(Z.nodeType===1&&!Q){Z.sizcache=G;Z.sizset=R}if(Z.nodeName.toLowerCase()===w){ia=Z;break}Z=Z[u]}J[R]=ia}}}function m(u,w,G,J,R,Q){R=0;for(var ba=J.length;R<ba;R++){var Z=J[R];if(Z){Z=Z[u];for(var ia=false;Z;){if(Z.sizcache===G){ia=J[Z.sizset];break}if(Z.nodeType===1){if(!Q){Z.sizcache=G;Z.sizset=R}if(typeof w!=="string"){if(Z===w){ia=true;break}}else if(F.filter(w,[Z]).length>0){ia=Z;break}}Z=Z[u]}J[R]=ia}}}var q=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
o=0,y=Object.prototype.toString,z=false,M=true;[0,0].sort(function(){M=false;return 0});var F=function(u,w,G,J){G=G||[];var R=w=w||B;if(w.nodeType!==1&&w.nodeType!==9)return[];if(!u||typeof u!=="string")return G;for(var Q=[],ba,Z,ia,Ra,Ma=true,Pa=fa(w),Na=u;(q.exec(""),ba=q.exec(Na))!==null;){Na=ba[3];Q.push(ba[1]);if(ba[2]){Ra=ba[3];break}}if(Q.length>1&&U.exec(u))if(Q.length===2&&K.relative[Q[0]])Z=Va(Q[0]+Q[1],w);else for(Z=K.relative[Q[0]]?[w]:F(Q.shift(),w);Q.length;){u=Q.shift();if(K.relative[u])u+=
Q.shift();Z=Va(u,Z)}else{if(!J&&Q.length>1&&w.nodeType===9&&!Pa&&K.match.ID.test(Q[0])&&!K.match.ID.test(Q[Q.length-1])){ba=F.find(Q.shift(),w,Pa);w=ba.expr?F.filter(ba.expr,ba.set)[0]:ba.set[0]}if(w){ba=J?{expr:Q.pop(),set:ja(J)}:F.find(Q.pop(),Q.length===1&&(Q[0]==="~"||Q[0]==="+")&&w.parentNode?w.parentNode:w,Pa);Z=ba.expr?F.filter(ba.expr,ba.set):ba.set;if(Q.length>0)ia=ja(Z);else Ma=false;for(;Q.length;){var Da=Q.pop();ba=Da;if(K.relative[Da])ba=Q.pop();else Da="";if(ba==null)ba=w;K.relative[Da](ia,
ba,Pa)}}else ia=[]}ia||(ia=Z);ia||F.error(Da||u);if(y.call(ia)==="[object Array]")if(Ma)if(w&&w.nodeType===1)for(u=0;ia[u]!=null;u++){if(ia[u]&&(ia[u]===true||ia[u].nodeType===1&&Ea(w,ia[u])))G.push(Z[u])}else for(u=0;ia[u]!=null;u++)ia[u]&&ia[u].nodeType===1&&G.push(Z[u]);else G.push.apply(G,ia);else ja(ia,G);if(Ra){F(Ra,R,G,J);F.uniqueSort(G)}return G};F.uniqueSort=function(u){if(pa){z=M;u.sort(pa);if(z)for(var w=1;w<u.length;w++)u[w]===u[w-1]&&u.splice(w--,1)}return u};F.matches=function(u,w){return F(u,
null,null,w)};F.find=function(u,w,G){var J,R;if(!u)return[];for(var Q=0,ba=K.order.length;Q<ba;Q++){var Z=K.order[Q];if(R=K.leftMatch[Z].exec(u)){var ia=R[1];R.splice(1,1);if(ia.substr(ia.length-1)!=="\\"){R[1]=(R[1]||"").replace(/\\/g,"");J=K.find[Z](R,w,G);if(J!=null){u=u.replace(K.match[Z],"");break}}}}J||(J=w.getElementsByTagName("*"));return{set:J,expr:u}};F.filter=function(u,w,G,J){for(var R=u,Q=[],ba=w,Z,ia,Ra=w&&w[0]&&fa(w[0]);u&&w.length;){for(var Ma in K.filter)if((Z=K.leftMatch[Ma].exec(u))!=
null&&Z[2]){var Pa=K.filter[Ma],Na,Da;Da=Z[1];ia=false;Z.splice(1,1);if(Da.substr(Da.length-1)!=="\\"){if(ba===Q)Q=[];if(K.preFilter[Ma])if(Z=K.preFilter[Ma](Z,ba,G,Q,J,Ra)){if(Z===true)continue}else ia=Na=true;if(Z)for(var Sa=0;(Da=ba[Sa])!=null;Sa++)if(Da){Na=Pa(Da,Z,Sa,ba);var db=J^!!Na;if(G&&Na!=null)if(db)ia=true;else ba[Sa]=false;else if(db){Q.push(Da);ia=true}}if(Na!==d){G||(ba=Q);u=u.replace(K.match[Ma],"");if(!ia)return[];break}}}if(u===R)if(ia==null)F.error(u);else break;R=u}return ba};
F.error=function(u){throw"Syntax error, unrecognized expression: "+u;};var K=F.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,
PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(u){return u.getAttribute("href")}},relative:{"+":function(u,w){var G=typeof w==="string",J=G&&!/\W/.test(w);G=G&&!J;if(J)w=w.toLowerCase();J=0;for(var R=u.length,Q;J<R;J++)if(Q=u[J]){for(;(Q=Q.previousSibling)&&Q.nodeType!==1;);u[J]=G||Q&&Q.nodeName.toLowerCase()===w?Q||false:Q===w}G&&F.filter(w,u,true)},">":function(u,w){var G=typeof w===
"string";if(G&&!/\W/.test(w)){w=w.toLowerCase();for(var J=0,R=u.length;J<R;J++){var Q=u[J];if(Q){G=Q.parentNode;u[J]=G.nodeName.toLowerCase()===w?G:false}}}else{J=0;for(R=u.length;J<R;J++)if(Q=u[J])u[J]=G?Q.parentNode:Q.parentNode===w;G&&F.filter(w,u,true)}},"":function(u,w,G){var J=o++,R=m;if(typeof w==="string"&&!/\W/.test(w)){var Q=w=w.toLowerCase();R=i}R("parentNode",w,J,u,Q,G)},"~":function(u,w,G){var J=o++,R=m;if(typeof w==="string"&&!/\W/.test(w)){var Q=w=w.toLowerCase();R=i}R("previousSibling",
w,J,u,Q,G)}},find:{ID:function(u,w,G){if(typeof w.getElementById!=="undefined"&&!G)return(u=w.getElementById(u[1]))?[u]:[]},NAME:function(u,w){if(typeof w.getElementsByName!=="undefined"){var G=[];w=w.getElementsByName(u[1]);for(var J=0,R=w.length;J<R;J++)w[J].getAttribute("name")===u[1]&&G.push(w[J]);return G.length===0?null:G}},TAG:function(u,w){return w.getElementsByTagName(u[1])}},preFilter:{CLASS:function(u,w,G,J,R,Q){u=" "+u[1].replace(/\\/g,"")+" ";if(Q)return u;Q=0;for(var ba;(ba=w[Q])!=null;Q++)if(ba)if(R^
(ba.className&&(" "+ba.className+" ").replace(/[\t\n]/g," ").indexOf(u)>=0))G||J.push(ba);else if(G)w[Q]=false;return false},ID:function(u){return u[1].replace(/\\/g,"")},TAG:function(u){return u[1].toLowerCase()},CHILD:function(u){if(u[1]==="nth"){var w=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(u[2]==="even"&&"2n"||u[2]==="odd"&&"2n+1"||!/\D/.test(u[2])&&"0n+"+u[2]||u[2]);u[2]=w[1]+(w[2]||1)-0;u[3]=w[3]-0}u[0]=o++;return u},ATTR:function(u,w,G,J,R,Q){w=u[1].replace(/\\/g,"");if(!Q&&K.attrMap[w])u[1]=K.attrMap[w];
if(u[2]==="~=")u[4]=" "+u[4]+" ";return u},PSEUDO:function(u,w,G,J,R){if(u[1]==="not")if((q.exec(u[3])||"").length>1||/^\w/.test(u[3]))u[3]=F(u[3],null,null,w);else{u=F.filter(u[3],w,G,true^R);G||J.push.apply(J,u);return false}else if(K.match.POS.test(u[0])||K.match.CHILD.test(u[0]))return true;return u},POS:function(u){u.unshift(true);return u}},filters:{enabled:function(u){return u.disabled===false&&u.type!=="hidden"},disabled:function(u){return u.disabled===true},checked:function(u){return u.checked===
true},selected:function(u){return u.selected===true},parent:function(u){return!!u.firstChild},empty:function(u){return!u.firstChild},has:function(u,w,G){return!!F(G[3],u).length},header:function(u){return/h\d/i.test(u.nodeName)},text:function(u){return"text"===u.type},radio:function(u){return"radio"===u.type},checkbox:function(u){return"checkbox"===u.type},file:function(u){return"file"===u.type},password:function(u){return"password"===u.type},submit:function(u){return"submit"===u.type},image:function(u){return"image"===
u.type},reset:function(u){return"reset"===u.type},button:function(u){return"button"===u.type||u.nodeName.toLowerCase()==="button"},input:function(u){return/input|select|textarea|button/i.test(u.nodeName)}},setFilters:{first:function(u,w){return w===0},last:function(u,w,G,J){return w===J.length-1},even:function(u,w){return w%2===0},odd:function(u,w){return w%2===1},lt:function(u,w,G){return w<G[3]-0},gt:function(u,w,G){return w>G[3]-0},nth:function(u,w,G){return G[3]-0===w},eq:function(u,w,G){return G[3]-
0===w}},filter:{PSEUDO:function(u,w,G,J){var R=w[1],Q=K.filters[R];if(Q)return Q(u,G,w,J);else if(R==="contains")return(u.textContent||u.innerText||c([u])||"").indexOf(w[3])>=0;else if(R==="not"){w=w[3];G=0;for(J=w.length;G<J;G++)if(w[G]===u)return false;return true}else F.error("Syntax error, unrecognized expression: "+R)},CHILD:function(u,w){var G=w[1],J=u;switch(G){case "only":case "first":for(;J=J.previousSibling;)if(J.nodeType===1)return false;if(G==="first")return true;J=u;case "last":for(;J=
J.nextSibling;)if(J.nodeType===1)return false;return true;case "nth":G=w[2];var R=w[3];if(G===1&&R===0)return true;w=w[0];var Q=u.parentNode;if(Q&&(Q.sizcache!==w||!u.nodeIndex)){var ba=0;for(J=Q.firstChild;J;J=J.nextSibling)if(J.nodeType===1)J.nodeIndex=++ba;Q.sizcache=w}u=u.nodeIndex-R;return G===0?u===0:u%G===0&&u/G>=0}},ID:function(u,w){return u.nodeType===1&&u.getAttribute("id")===w},TAG:function(u,w){return w==="*"&&u.nodeType===1||u.nodeName.toLowerCase()===w},CLASS:function(u,w){return(" "+
(u.className||u.getAttribute("class"))+" ").indexOf(w)>-1},ATTR:function(u,w){var G=w[1];u=K.attrHandle[G]?K.attrHandle[G](u):u[G]!=null?u[G]:u.getAttribute(G);G=u+"";var J=w[2];w=w[4];return u==null?J==="!=":J==="="?G===w:J==="*="?G.indexOf(w)>=0:J==="~="?(" "+G+" ").indexOf(w)>=0:!w?G&&u!==false:J==="!="?G!==w:J==="^="?G.indexOf(w)===0:J==="$="?G.substr(G.length-w.length)===w:J==="|="?G===w||G.substr(0,w.length+1)===w+"-":false},POS:function(u,w,G,J){var R=K.setFilters[w[2]];if(R)return R(u,G,w,
J)}}},U=K.match.POS;for(var aa in K.match){K.match[aa]=new RegExp(K.match[aa].source+/(?![^\[]*\])(?![^\(]*\))/.source);K.leftMatch[aa]=new RegExp(/(^(?:.|\r|\n)*?)/.source+K.match[aa].source.replace(/\\(\d+)/g,function(u,w){return"\\"+(w-0+1)}))}var ja=function(u,w){u=Array.prototype.slice.call(u,0);if(w){w.push.apply(w,u);return w}return u};try{Array.prototype.slice.call(B.documentElement.childNodes,0)}catch(qa){ja=function(u,w){w=w||[];if(y.call(u)==="[object Array]")Array.prototype.push.apply(w,
u);else if(typeof u.length==="number")for(var G=0,J=u.length;G<J;G++)w.push(u[G]);else for(G=0;u[G];G++)w.push(u[G]);return w}}var pa;if(B.documentElement.compareDocumentPosition)pa=function(u,w){if(!u.compareDocumentPosition||!w.compareDocumentPosition){if(u==w)z=true;return u.compareDocumentPosition?-1:1}u=u.compareDocumentPosition(w)&4?-1:u===w?0:1;if(u===0)z=true;return u};else if("sourceIndex"in B.documentElement)pa=function(u,w){if(!u.sourceIndex||!w.sourceIndex){if(u==w)z=true;return u.sourceIndex?
-1:1}u=u.sourceIndex-w.sourceIndex;if(u===0)z=true;return u};else if(B.createRange)pa=function(u,w){if(!u.ownerDocument||!w.ownerDocument){if(u==w)z=true;return u.ownerDocument?-1:1}var G=u.ownerDocument.createRange(),J=w.ownerDocument.createRange();G.setStart(u,0);G.setEnd(u,0);J.setStart(w,0);J.setEnd(w,0);u=G.compareBoundaryPoints(Range.START_TO_END,J);if(u===0)z=true;return u};(function(){var u=B.createElement("div"),w="script"+(new Date).getTime();u.innerHTML="<a name='"+w+"'/>";var G=B.documentElement;
G.insertBefore(u,G.firstChild);if(B.getElementById(w)){K.find.ID=function(J,R,Q){if(typeof R.getElementById!=="undefined"&&!Q)return(R=R.getElementById(J[1]))?R.id===J[1]||typeof R.getAttributeNode!=="undefined"&&R.getAttributeNode("id").nodeValue===J[1]?[R]:d:[]};K.filter.ID=function(J,R){var Q=typeof J.getAttributeNode!=="undefined"&&J.getAttributeNode("id");return J.nodeType===1&&Q&&Q.nodeValue===R}}G.removeChild(u);G=u=null})();(function(){var u=B.createElement("div");u.appendChild(B.createComment(""));
if(u.getElementsByTagName("*").length>0)K.find.TAG=function(w,G){G=G.getElementsByTagName(w[1]);if(w[1]==="*"){w=[];for(var J=0;G[J];J++)G[J].nodeType===1&&w.push(G[J]);G=w}return G};u.innerHTML="<a href='#'></a>";if(u.firstChild&&typeof u.firstChild.getAttribute!=="undefined"&&u.firstChild.getAttribute("href")!=="#")K.attrHandle.href=function(w){return w.getAttribute("href",2)};u=null})();B.querySelectorAll&&function(){var u=F,w=B.createElement("div");w.innerHTML="<p class='TEST'></p>";if(!(w.querySelectorAll&&
w.querySelectorAll(".TEST").length===0)){F=function(J,R,Q,ba){R=R||B;if(!ba&&R.nodeType===9&&!fa(R))try{return ja(R.querySelectorAll(J),Q)}catch(Z){}return u(J,R,Q,ba)};for(var G in u)F[G]=u[G];w=null}}();(function(){var u=B.createElement("div");u.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!u.getElementsByClassName||u.getElementsByClassName("e").length===0)){u.lastChild.className="e";if(u.getElementsByClassName("e").length!==1){K.order.splice(1,0,"CLASS");K.find.CLASS=function(w,
G,J){if(typeof G.getElementsByClassName!=="undefined"&&!J)return G.getElementsByClassName(w[1])};u=null}}})();var Ea=B.compareDocumentPosition?function(u,w){return!!(u.compareDocumentPosition(w)&16)}:function(u,w){return u!==w&&(u.contains?u.contains(w):true)},fa=function(u){return(u=(u?u.ownerDocument||u:0).documentElement)?u.nodeName!=="HTML":false},Va=function(u,w){var G=[],J="",R;for(w=w.nodeType?[w]:w;R=K.match.PSEUDO.exec(u);){J+=R[0];u=u.replace(K.match.PSEUDO,"")}u=K.relative[u]?u+"*":u;R=
0;for(var Q=w.length;R<Q;R++)F(u,w[R],G);return F.filter(J,G)};f.find=F;f.expr=F.selectors;f.expr[":"]=f.expr.filters;f.unique=F.uniqueSort;f.text=c;f.isXMLDoc=fa;f.contains=Ea})();var S=/Until$/,ha=/^(?:parents|prevUntil|prevAll)/,ua=/,/;wa=Array.prototype.slice;var Ja=function(c,i,m){if(f.isFunction(i))return f.grep(c,function(o,y){return!!i.call(o,y,o)===m});else if(i.nodeType)return f.grep(c,function(o){return o===i===m});else if(typeof i==="string"){var q=f.grep(c,function(o){return o.nodeType===
1});if(N.test(i))return f.filter(i,q,!m);else i=f.filter(i,q)}return f.grep(c,function(o){return f.inArray(o,i)>=0===m})};f.fn.extend({find:function(c){for(var i=this.pushStack("","find",c),m=0,q=0,o=this.length;q<o;q++){m=i.length;f.find(c,this[q],i);if(q>0)for(var y=m;y<i.length;y++)for(var z=0;z<m;z++)if(i[z]===i[y]){i.splice(y--,1);break}}return i},has:function(c){var i=f(c);return this.filter(function(){for(var m=0,q=i.length;m<q;m++)if(f.contains(this,i[m]))return true})},not:function(c){return this.pushStack(Ja(this,
c,false),"not",c)},filter:function(c){return this.pushStack(Ja(this,c,true),"filter",c)},is:function(c){return!!c&&f.filter(c,this).length>0},closest:function(c,i){if(f.isArray(c)){var m=[],q=this[0],o,y={},z;if(q&&c.length){o=0;for(var M=c.length;o<M;o++){z=c[o];y[z]||(y[z]=f.expr.match.POS.test(z)?f(z,i||this.context):z)}for(;q&&q.ownerDocument&&q!==i;){for(z in y){o=y[z];if(o.jquery?o.index(q)>-1:f(q).is(o)){m.push({selector:z,elem:q});delete y[z]}}q=q.parentNode}}return m}var F=f.expr.match.POS.test(c)?
f(c,i||this.context):null;return this.map(function(K,U){for(;U&&U.ownerDocument&&U!==i;){if(F?F.index(U)>-1:f(U).is(c))return U;U=U.parentNode}return null})},index:function(c){if(!c||typeof c==="string")return f.inArray(this[0],c?f(c):this.parent().children());return f.inArray(c.jquery?c[0]:c,this)},add:function(c,i){c=typeof c==="string"?f(c,i||this.context):f.makeArray(c);i=f.merge(this.get(),c);return this.pushStack(D(c[0])||D(i[0])?i:f.unique(i))},andSelf:function(){return this.add(this.prevObject)}});
f.each({parent:function(c){return(c=c.parentNode)&&c.nodeType!==11?c:null},parents:function(c){return f.dir(c,"parentNode")},parentsUntil:function(c,i,m){return f.dir(c,"parentNode",m)},next:function(c){return f.nth(c,2,"nextSibling")},prev:function(c){return f.nth(c,2,"previousSibling")},nextAll:function(c){return f.dir(c,"nextSibling")},prevAll:function(c){return f.dir(c,"previousSibling")},nextUntil:function(c,i,m){return f.dir(c,"nextSibling",m)},prevUntil:function(c,i,m){return f.dir(c,"previousSibling",
m)},siblings:function(c){return f.sibling(c.parentNode.firstChild,c)},children:function(c){return f.sibling(c.firstChild)},contents:function(c){return f.nodeName(c,"iframe")?c.contentDocument||c.contentWindow.document:f.makeArray(c.childNodes)}},function(c,i){f.fn[c]=function(m,q){var o=f.map(this,i,m);S.test(c)||(q=m);if(q&&typeof q==="string")o=f.filter(q,o);o=this.length>1?f.unique(o):o;if((this.length>1||ua.test(q))&&ha.test(c))o=o.reverse();return this.pushStack(o,c,wa.call(arguments).join(","))}});
f.extend({filter:function(c,i,m){if(m)c=":not("+c+")";return f.find.matches(c,i)},dir:function(c,i,m){var q=[];for(c=c[i];c&&c.nodeType!==9&&(m===d||c.nodeType!==1||!f(c).is(m));){c.nodeType===1&&q.push(c);c=c[i]}return q},nth:function(c,i,m){i=i||1;for(var q=0;c;c=c[m])if(c.nodeType===1&&++q===i)break;return c},sibling:function(c,i){for(var m=[];c;c=c.nextSibling)c.nodeType===1&&c!==i&&m.push(c);return m}});var eb=/ jQuery\d+="(?:\d+|null)"/g,Ta=/^\s+/,fb=/(<([\w:]+)[^>]*?)\/>/g,lb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,
gb=/<([\w:]+)/,mb=/<tbody/i,nb=/<|&#?\w+;/,ab=/<script|<object|<embed|<option|<style/i,bb=/checked\s*(?:[^=]|=\s*.checked.)/i,hb=function(c,i,m){return lb.test(m)?c:i+"></"+m+">"},Fa={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,
"",""]};Fa.optgroup=Fa.option;Fa.tbody=Fa.tfoot=Fa.colgroup=Fa.caption=Fa.thead;Fa.th=Fa.td;if(!f.support.htmlSerialize)Fa._default=[1,"div<div>","</div>"];f.fn.extend({text:function(c){if(f.isFunction(c))return this.each(function(i){var m=f(this);m.text(c.call(this,i,m.text()))});if(typeof c!=="object"&&c!==d)return this.empty().append((this[0]&&this[0].ownerDocument||B).createTextNode(c));return f.text(this)},wrapAll:function(c){if(f.isFunction(c))return this.each(function(m){f(this).wrapAll(c.call(this,
m))});if(this[0]){var i=f(c,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&i.insertBefore(this[0]);i.map(function(){for(var m=this;m.firstChild&&m.firstChild.nodeType===1;)m=m.firstChild;return m}).append(this)}return this},wrapInner:function(c){if(f.isFunction(c))return this.each(function(i){f(this).wrapInner(c.call(this,i))});return this.each(function(){var i=f(this),m=i.contents();m.length?m.wrapAll(c):i.append(c)})},wrap:function(c){return this.each(function(){f(this).wrapAll(c)})},
unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.appendChild(c)})},prepend:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.insertBefore(c,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(i){this.parentNode.insertBefore(i,this)});else if(arguments.length){var c=
f(arguments[0]);c.push.apply(c,this.toArray());return this.pushStack(c,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(i){this.parentNode.insertBefore(i,this.nextSibling)});else if(arguments.length){var c=this.pushStack(this,"after",arguments);c.push.apply(c,f(arguments[0]).toArray());return c}},remove:function(c,i){for(var m=0,q;(q=this[m])!=null;m++)if(!c||f.filter(c,[q]).length){if(!i&&q.nodeType===1){f.cleanData(q.getElementsByTagName("*"));
f.cleanData([q])}q.parentNode&&q.parentNode.removeChild(q)}return this},empty:function(){for(var c=0,i;(i=this[c])!=null;c++)for(i.nodeType===1&&f.cleanData(i.getElementsByTagName("*"));i.firstChild;)i.removeChild(i.firstChild);return this},clone:function(c){var i=this.map(function(){if(!f.support.noCloneEvent&&!f.isXMLDoc(this)){var m=this.outerHTML,q=this.ownerDocument;if(!m){m=q.createElement("div");m.appendChild(this.cloneNode(true));m=m.innerHTML}return f.clean([m.replace(eb,"").replace(/=([^="'>\s]+\/)>/g,
'="$1">').replace(Ta,"")],q)[0]}else return this.cloneNode(true)});if(c===true){O(this,i);O(this.find("*"),i.find("*"))}return i},html:function(c){if(c===d)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(eb,""):null;else if(typeof c==="string"&&!ab.test(c)&&(f.support.leadingWhitespace||!Ta.test(c))&&!Fa[(gb.exec(c)||["",""])[1].toLowerCase()]){c=c.replace(fb,hb);try{for(var i=0,m=this.length;i<m;i++)if(this[i].nodeType===1){f.cleanData(this[i].getElementsByTagName("*"));this[i].innerHTML=
c}}catch(q){this.empty().append(c)}}else f.isFunction(c)?this.each(function(o){var y=f(this),z=y.html();y.empty().append(function(){return c.call(this,o,z)})}):this.empty().append(c);return this},replaceWith:function(c){if(this[0]&&this[0].parentNode){if(f.isFunction(c))return this.each(function(i){var m=f(this),q=m.html();m.replaceWith(c.call(this,i,q))});if(typeof c!=="string")c=f(c).detach();return this.each(function(){var i=this.nextSibling,m=this.parentNode;f(this).remove();i?f(i).before(c):
f(m).append(c)})}else return this.pushStack(f(f.isFunction(c)?c():c),"replaceWith",c)},detach:function(c){return this.remove(c,true)},domManip:function(c,i,m){function q(aa){return f.nodeName(aa,"table")?aa.getElementsByTagName("tbody")[0]||aa.appendChild(aa.ownerDocument.createElement("tbody")):aa}var o,y,z=c[0],M=[],F;if(!f.support.checkClone&&arguments.length===3&&typeof z==="string"&&bb.test(z))return this.each(function(){f(this).domManip(c,i,m,true)});if(f.isFunction(z))return this.each(function(aa){var ja=
f(this);c[0]=z.call(this,aa,i?ja.html():d);ja.domManip(c,i,m)});if(this[0]){o=z&&z.parentNode;o=f.support.parentNode&&o&&o.nodeType===11&&o.childNodes.length===this.length?{fragment:o}:L(c,this,M);F=o.fragment;if(y=F.childNodes.length===1?(F=F.firstChild):F.firstChild){i=i&&f.nodeName(y,"tr");for(var K=0,U=this.length;K<U;K++)m.call(i?q(this[K],y):this[K],K>0||o.cacheable||this.length>1?F.cloneNode(true):F)}M.length&&f.each(M,a)}return this}});f.fragments={};f.each({appendTo:"append",prependTo:"prepend",
insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(c,i){f.fn[c]=function(m){var q=[];m=f(m);var o=this.length===1&&this[0].parentNode;if(o&&o.nodeType===11&&o.childNodes.length===1&&m.length===1){m[i](this[0]);return this}else{o=0;for(var y=m.length;o<y;o++){var z=(o>0?this.clone(true):this).get();f.fn[i].apply(f(m[o]),z);q=q.concat(z)}return this.pushStack(q,c,m.selector)}}});f.extend({clean:function(c,i,m,q){i=i||B;if(typeof i.createElement==="undefined")i=i.ownerDocument||
i[0]&&i[0].ownerDocument||B;for(var o=[],y=0,z;(z=c[y])!=null;y++){if(typeof z==="number")z+="";if(z){if(typeof z==="string"&&!nb.test(z))z=i.createTextNode(z);else if(typeof z==="string"){z=z.replace(fb,hb);var M=(gb.exec(z)||["",""])[1].toLowerCase(),F=Fa[M]||Fa._default,K=F[0],U=i.createElement("div");for(U.innerHTML=F[1]+z+F[2];K--;)U=U.lastChild;if(!f.support.tbody){K=mb.test(z);M=M==="table"&&!K?U.firstChild&&U.firstChild.childNodes:F[1]==="<table>"&&!K?U.childNodes:[];for(F=M.length-1;F>=0;--F)f.nodeName(M[F],
"tbody")&&!M[F].childNodes.length&&M[F].parentNode.removeChild(M[F])}!f.support.leadingWhitespace&&Ta.test(z)&&U.insertBefore(i.createTextNode(Ta.exec(z)[0]),U.firstChild);z=U.childNodes}if(z.nodeType)o.push(z);else o=f.merge(o,z)}}if(m)for(y=0;o[y];y++)if(q&&f.nodeName(o[y],"script")&&(!o[y].type||o[y].type.toLowerCase()==="text/javascript"))q.push(o[y].parentNode?o[y].parentNode.removeChild(o[y]):o[y]);else{o[y].nodeType===1&&o.splice.apply(o,[y+1,0].concat(f.makeArray(o[y].getElementsByTagName("script"))));
m.appendChild(o[y])}return o},cleanData:function(c){for(var i,m,q=f.cache,o=f.event.special,y=f.support.deleteExpando,z=0,M;(M=c[z])!=null;z++)if(m=M[f.expando]){i=q[m];if(i.events)for(var F in i.events)o[F]?f.event.remove(M,F):W(M,F,i.handle);if(y)delete M[f.expando];else M.removeAttribute&&M.removeAttribute(f.expando);delete q[m]}}});var ob=/z-?index|font-?weight|opacity|zoom|line-?height/i,ib=/alpha\([^)]*\)/,jb=/opacity=([^)]*)/,Wa=/float/i,Xa=/-([a-z])/ig,pb=/([A-Z])/g,qb=/^-?\d+(?:px)?$/i,rb=
/^-?\d/,sb={position:"absolute",visibility:"hidden",display:"block"},tb=["Left","Right"],ub=["Top","Bottom"],vb=B.defaultView&&B.defaultView.getComputedStyle,kb=f.support.cssFloat?"cssFloat":"styleFloat",Ya=function(c,i){return i.toUpperCase()};f.fn.css=function(c,i){return l(this,c,i,true,function(m,q,o){if(o===d)return f.curCSS(m,q);if(typeof o==="number"&&!ob.test(q))o+="px";f.style(m,q,o)})};f.extend({style:function(c,i,m){if(!c||c.nodeType===3||c.nodeType===8)return d;if((i==="width"||i==="height")&&
parseFloat(m)<0)m=d;var q=c.style||c,o=m!==d;if(!f.support.opacity&&i==="opacity"){if(o){q.zoom=1;i=parseInt(m,10)+""==="NaN"?"":"alpha(opacity="+m*100+")";c=q.filter||f.curCSS(c,"filter")||"";q.filter=ib.test(c)?c.replace(ib,i):i}return q.filter&&q.filter.indexOf("opacity=")>=0?parseFloat(jb.exec(q.filter)[1])/100+"":""}if(Wa.test(i))i=kb;i=i.replace(Xa,Ya);if(o)q[i]=m;return q[i]},css:function(c,i,m,q){if(i==="width"||i==="height"){var o,y=i==="width"?tb:ub;m=function(){o=i==="width"?c.offsetWidth:
c.offsetHeight;q!=="border"&&f.each(y,function(){q||(o-=parseFloat(f.curCSS(c,"padding"+this,true))||0);if(q==="margin")o+=parseFloat(f.curCSS(c,"margin"+this,true))||0;else o-=parseFloat(f.curCSS(c,"border"+this+"Width",true))||0})};c.offsetWidth!==0?m():f.swap(c,sb,m);return Math.max(0,Math.round(o))}return f.curCSS(c,i,m)},curCSS:function(c,i,m){var q,o=c.style;if(!f.support.opacity&&i==="opacity"&&c.currentStyle){q=jb.test(c.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return q===
""?"1":q}if(Wa.test(i))i=kb;if(!m&&o&&o[i])q=o[i];else if(vb){if(Wa.test(i))i="float";i=i.replace(pb,"-$1").toLowerCase();o=c.ownerDocument.defaultView;if(!o)return null;if(c=o.getComputedStyle(c,null))q=c.getPropertyValue(i);if(i==="opacity"&&q==="")q="1"}else if(c.currentStyle){m=i.replace(Xa,Ya);q=c.currentStyle[i]||c.currentStyle[m];if(!qb.test(q)&&rb.test(q)){i=o.left;var y=c.runtimeStyle.left;c.runtimeStyle.left=c.currentStyle.left;o.left=m==="fontSize"?"1em":q||0;q=o.pixelLeft+"px";o.left=
i;c.runtimeStyle.left=y}}return q},swap:function(c,i,m){var q={};for(var o in i){q[o]=c.style[o];c.style[o]=i[o]}m.call(c);for(o in i)c.style[o]=q[o]}});if(f.expr&&f.expr.filters){f.expr.filters.hidden=function(c){var i=c.offsetWidth,m=c.offsetHeight,q=c.nodeName.toLowerCase()==="tr";return i===0&&m===0&&!q?true:i>0&&m>0&&!q?false:f.curCSS(c,"display")==="none"};f.expr.filters.visible=function(c){return!f.expr.filters.hidden(c)}}var wb=n(),xb=/<script(.|\s)*?\/script>/gi,yb=/select|textarea/i,zb=
/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,Qa=/=\?(&|$)/,Za=/\?/,Ab=/(\?|&)_=.*?(&|$)/,Bb=/^(\w+:)?\/\/([^\/?#]+)/,Cb=/%20/g,Db=f.fn.load;f.fn.extend({load:function(c,i,m){if(typeof c!=="string")return Db.call(this,c);else if(!this.length)return this;var q=c.indexOf(" ");if(q>=0){var o=c.slice(q,c.length);c=c.slice(0,q)}q="GET";if(i)if(f.isFunction(i)){m=i;i=null}else if(typeof i==="object"){i=f.param(i,f.ajaxSettings.traditional);q="POST"}var y=
this;f.ajax({url:c,type:q,dataType:"html",data:i,complete:function(z,M){if(M==="success"||M==="notmodified")y.html(o?f("<div />").append(z.responseText.replace(xb,"")).find(o):z.responseText);m&&y.each(m,[z.responseText,M,z])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||yb.test(this.nodeName)||
zb.test(this.type))}).map(function(c,i){c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(m){return{name:i.name,value:m}}):{name:i.name,value:c}}).get()}});f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(c,i){f.fn[i]=function(m){return this.bind(i,m)}});f.extend({get:function(c,i,m,q){if(f.isFunction(i)){q=q||m;m=i;i=null}return f.ajax({type:"GET",url:c,data:i,success:m,dataType:q})},getScript:function(c,i){return f.get(c,null,i,"script")},
getJSON:function(c,i,m){return f.get(c,i,m,"json")},post:function(c,i,m,q){if(f.isFunction(i)){q=q||m;m=i;i={}}return f.ajax({type:"POST",url:c,data:i,success:m,dataType:q})},ajaxSetup:function(c){f.extend(f.ajaxSettings,c)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:b.XMLHttpRequest&&(b.location.protocol!=="file:"||!b.ActiveXObject)?function(){return new b.XMLHttpRequest}:function(){try{return new b.ActiveXObject("Microsoft.XMLHTTP")}catch(c){}},
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(c){function i(){o.success&&o.success.call(F,M,z,fa);o.global&&q("ajaxSuccess",[fa,o])}function m(){o.complete&&o.complete.call(F,fa,z);o.global&&q("ajaxComplete",[fa,o]);o.global&&!--f.active&&f.event.trigger("ajaxStop")}function q(R,Q){(o.context?f(o.context):f.event).trigger(R,
Q)}var o=f.extend(true,{},f.ajaxSettings,c),y,z,M,F=c&&c.context||o,K=o.type.toUpperCase();if(o.data&&o.processData&&typeof o.data!=="string")o.data=f.param(o.data,o.traditional);if(o.dataType==="jsonp"){if(K==="GET")Qa.test(o.url)||(o.url+=(Za.test(o.url)?"&":"?")+(o.jsonp||"callback")+"=?");else if(!o.data||!Qa.test(o.data))o.data=(o.data?o.data+"&":"")+(o.jsonp||"callback")+"=?";o.dataType="json"}if(o.dataType==="json"&&(o.data&&Qa.test(o.data)||Qa.test(o.url))){y=o.jsonpCallback||"jsonp"+wb++;
if(o.data)o.data=(o.data+"").replace(Qa,"="+y+"$1");o.url=o.url.replace(Qa,"="+y+"$1");o.dataType="script";b[y]=b[y]||function(R){M=R;i();m();b[y]=d;try{delete b[y]}catch(Q){}ja&&ja.removeChild(qa)}}if(o.dataType==="script"&&o.cache===null)o.cache=false;if(o.cache===false&&K==="GET"){var U=n(),aa=o.url.replace(Ab,"$1_="+U+"$2");o.url=aa+(aa===o.url?(Za.test(o.url)?"&":"?")+"_="+U:"")}if(o.data&&K==="GET")o.url+=(Za.test(o.url)?"&":"?")+o.data;o.global&&!f.active++&&f.event.trigger("ajaxStart");U=
(U=Bb.exec(o.url))&&(U[1]&&U[1]!==location.protocol||U[2]!==location.host);if(o.dataType==="script"&&K==="GET"&&U){var ja=B.getElementsByTagName("head")[0]||B.documentElement,qa=B.createElement("script");qa.src=o.url;if(o.scriptCharset)qa.charset=o.scriptCharset;if(!y){var pa=false;qa.onload=qa.onreadystatechange=function(){if(!pa&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){pa=true;i();m();qa.onload=qa.onreadystatechange=null;ja&&qa.parentNode&&ja.removeChild(qa)}}}ja.insertBefore(qa,
ja.firstChild);return d}var Ea=false,fa=o.xhr();if(fa){o.username?fa.open(K,o.url,o.async,o.username,o.password):fa.open(K,o.url,o.async);try{if(o.data||c&&c.contentType)fa.setRequestHeader("Content-Type",o.contentType);if(o.ifModified){f.lastModified[o.url]&&fa.setRequestHeader("If-Modified-Since",f.lastModified[o.url]);f.etag[o.url]&&fa.setRequestHeader("If-None-Match",f.etag[o.url])}U||fa.setRequestHeader("X-Requested-With","XMLHttpRequest");fa.setRequestHeader("Accept",o.dataType&&o.accepts[o.dataType]?
o.accepts[o.dataType]+", */*":o.accepts._default)}catch(Va){}if(o.beforeSend&&o.beforeSend.call(F,fa,o)===false){o.global&&!--f.active&&f.event.trigger("ajaxStop");fa.abort();return false}o.global&&q("ajaxSend",[fa,o]);var u=fa.onreadystatechange=function(R){if(!fa||fa.readyState===0||R==="abort"){Ea||m();Ea=true;if(fa)fa.onreadystatechange=f.noop}else if(!Ea&&fa&&(fa.readyState===4||R==="timeout")){Ea=true;fa.onreadystatechange=f.noop;z=R==="timeout"?"timeout":!f.httpSuccess(fa)?"error":o.ifModified&&
f.httpNotModified(fa,o.url)?"notmodified":"success";var Q;if(z==="success")try{M=f.httpData(fa,o.dataType,o)}catch(ba){z="parsererror";Q=ba}if(z==="success"||z==="notmodified")y||i();else f.handleError(o,fa,z,Q);m();R==="timeout"&&fa.abort();if(o.async)fa=null}};try{var w=fa.abort;fa.abort=function(){fa&&w.call(fa);u("abort")}}catch(G){}o.async&&o.timeout>0&&setTimeout(function(){fa&&!Ea&&u("timeout")},o.timeout);try{fa.send(K==="POST"||K==="PUT"||K==="DELETE"?o.data:null)}catch(J){f.handleError(o,
fa,null,J);m()}o.async||u();return fa}},handleError:function(c,i,m,q){if(c.error)c.error.call(c.context||c,i,m,q);if(c.global)(c.context?f(c.context):f.event).trigger("ajaxError",[i,c,q])},active:0,httpSuccess:function(c){try{return!c.status&&location.protocol==="file:"||c.status>=200&&c.status<300||c.status===304||c.status===1223||c.status===0}catch(i){}return false},httpNotModified:function(c,i){var m=c.getResponseHeader("Last-Modified"),q=c.getResponseHeader("Etag");if(m)f.lastModified[i]=m;if(q)f.etag[i]=
q;return c.status===304||c.status===0},httpData:function(c,i,m){var q=c.getResponseHeader("content-type")||"",o=i==="xml"||!i&&q.indexOf("xml")>=0;c=o?c.responseXML:c.responseText;o&&c.documentElement.nodeName==="parsererror"&&f.error("parsererror");if(m&&m.dataFilter)c=m.dataFilter(c,i);if(typeof c==="string")if(i==="json"||!i&&q.indexOf("json")>=0)c=f.parseJSON(c);else if(i==="script"||!i&&q.indexOf("javascript")>=0)f.globalEval(c);return c},param:function(c,i){function m(z,M){if(f.isArray(M))f.each(M,
function(F,K){i||/\[\]$/.test(z)?q(z,K):m(z+"["+(typeof K==="object"||f.isArray(K)?F:"")+"]",K)});else!i&&M!=null&&typeof M==="object"?f.each(M,function(F,K){m(z+"["+F+"]",K)}):q(z,M)}function q(z,M){M=f.isFunction(M)?M():M;o[o.length]=encodeURIComponent(z)+"="+encodeURIComponent(M)}var o=[];if(i===d)i=f.ajaxSettings.traditional;if(f.isArray(c)||c.jquery)f.each(c,function(){q(this.name,this.value)});else for(var y in c)m(y,c[y]);return o.join("&").replace(Cb,"+")}});var $a={},Eb=/toggle|show|hide/,
Fb=/^([+-]=)?([\d+-.]+)(.*)$/,Ua,cb=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];f.fn.extend({show:function(c,i){if(c||c===0)return this.animate(E("show",3),c,i);else{c=0;for(i=this.length;c<i;c++){var m=f.data(this[c],"olddisplay");this[c].style.display=m||"";if(f.css(this[c],"display")==="none"){m=this[c].nodeName;var q;if($a[m])q=$a[m];else{var o=f("<"+m+" />").appendTo("body");q=o.css("display");
if(q==="none")q="block";o.remove();$a[m]=q}f.data(this[c],"olddisplay",q)}}c=0;for(i=this.length;c<i;c++)this[c].style.display=f.data(this[c],"olddisplay")||"";return this}},hide:function(c,i){if(c||c===0)return this.animate(E("hide",3),c,i);else{c=0;for(i=this.length;c<i;c++){var m=f.data(this[c],"olddisplay");!m&&m!=="none"&&f.data(this[c],"olddisplay",f.css(this[c],"display"))}c=0;for(i=this.length;c<i;c++)this[c].style.display="none";return this}},_toggle:f.fn.toggle,toggle:function(c,i){var m=
typeof c==="boolean";if(f.isFunction(c)&&f.isFunction(i))this._toggle.apply(this,arguments);else c==null||m?this.each(function(){var q=m?c:f(this).is(":hidden");f(this)[q?"show":"hide"]()}):this.animate(E("toggle",3),c,i);return this},fadeTo:function(c,i,m){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:i},c,m)},animate:function(c,i,m,q){var o=f.speed(i,m,q);if(f.isEmptyObject(c))return this.each(o.complete);return this[o.queue===false?"each":"queue"](function(){var y=
f.extend({},o),z,M=this.nodeType===1&&f(this).is(":hidden"),F=this;for(z in c){var K=z.replace(Xa,Ya);if(z!==K){c[K]=c[z];delete c[z];z=K}if(c[z]==="hide"&&M||c[z]==="show"&&!M)return y.complete.call(this);if((z==="height"||z==="width")&&this.style){y.display=f.css(this,"display");y.overflow=this.style.overflow}if(f.isArray(c[z])){(y.specialEasing=y.specialEasing||{})[z]=c[z][1];c[z]=c[z][0]}}if(y.overflow!=null)this.style.overflow="hidden";y.curAnim=f.extend({},c);f.each(c,function(U,aa){var ja=
new f.fx(F,y,U);if(Eb.test(aa))ja[aa==="toggle"?M?"show":"hide":aa](c);else{var qa=Fb.exec(aa),pa=ja.cur(true)||0;if(qa){aa=parseFloat(qa[2]);var Ea=qa[3]||"px";if(Ea!=="px"){F.style[U]=(aa||1)+Ea;pa=(aa||1)/ja.cur(true)*pa;F.style[U]=pa+Ea}if(qa[1])aa=(qa[1]==="-="?-1:1)*aa+pa;ja.custom(pa,aa,Ea)}else ja.custom(pa,aa,"")}});return true})},stop:function(c,i){var m=f.timers;c&&this.queue([]);this.each(function(){for(var q=m.length-1;q>=0;q--)if(m[q].elem===this){i&&m[q](true);m.splice(q,1)}});i||this.dequeue();
return this}});f.each({slideDown:E("show",1),slideUp:E("hide",1),slideToggle:E("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(c,i){f.fn[c]=function(m,q){return this.animate(i,m,q)}});f.extend({speed:function(c,i,m){var q=c&&typeof c==="object"?c:{complete:m||!m&&i||f.isFunction(c)&&c,duration:c,easing:m&&i||i&&!f.isFunction(i)&&i};q.duration=f.fx.off?0:typeof q.duration==="number"?q.duration:f.fx.speeds[q.duration]||f.fx.speeds._default;q.old=q.complete;q.complete=function(){q.queue!==
false&&f(this).dequeue();f.isFunction(q.old)&&q.old.call(this)};return q},easing:{linear:function(c,i,m,q){return m+q*c},swing:function(c,i,m,q){return(-Math.cos(c*Math.PI)/2+0.5)*q+m}},timers:[],fx:function(c,i,m){this.options=i;this.elem=c;this.prop=m;if(!i.orig)i.orig={}}});f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(f.fx.step[this.prop]||f.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display=
"block"},cur:function(c){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(c=parseFloat(f.css(this.elem,this.prop,c)))&&c>-10000?c:parseFloat(f.curCSS(this.elem,this.prop))||0},custom:function(c,i,m){function q(y){return o.step(y)}this.startTime=n();this.start=c;this.end=i;this.unit=m||this.unit||"px";this.now=this.start;this.pos=this.state=0;var o=this;q.elem=this.elem;if(q()&&f.timers.push(q)&&!Ua)Ua=setInterval(f.fx.tick,13)},
show:function(){this.options.orig[this.prop]=f.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(c){var i=n(),m=true;if(c||i>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var q in this.options.curAnim)if(this.options.curAnim[q]!==
true)m=false;if(m){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;c=f.data(this.elem,"olddisplay");this.elem.style.display=c?c:this.options.display;if(f.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&f(this.elem).hide();if(this.options.hide||this.options.show)for(var o in this.options.curAnim)f.style(this.elem,o,this.options.orig[o]);this.options.complete.call(this.elem)}return false}else{o=i-this.startTime;this.state=o/this.options.duration;
c=this.options.easing||(f.easing.swing?"swing":"linear");this.pos=f.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||c](this.state,o,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};f.extend(f.fx,{tick:function(){for(var c=f.timers,i=0;i<c.length;i++)c[i]()||c.splice(i--,1);c.length||f.fx.stop()},stop:function(){clearInterval(Ua);Ua=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(c){f.style(c.elem,
"opacity",c.now)},_default:function(c){if(c.elem.style&&c.elem.style[c.prop]!=null)c.elem.style[c.prop]=(c.prop==="width"||c.prop==="height"?Math.max(0,c.now):c.now)+c.unit;else c.elem[c.prop]=c.now}}});if(f.expr&&f.expr.filters)f.expr.filters.animated=function(c){return f.grep(f.timers,function(i){return c===i.elem}).length};f.fn.offset="getBoundingClientRect"in B.documentElement?function(c){var i=this[0];if(c)return this.each(function(o){f.offset.setOffset(this,c,o)});if(!i||!i.ownerDocument)return null;
if(i===i.ownerDocument.body)return f.offset.bodyOffset(i);var m=i.getBoundingClientRect(),q=i.ownerDocument;i=q.body;q=q.documentElement;return{top:m.top+(self.pageYOffset||f.support.boxModel&&q.scrollTop||i.scrollTop)-(q.clientTop||i.clientTop||0),left:m.left+(self.pageXOffset||f.support.boxModel&&q.scrollLeft||i.scrollLeft)-(q.clientLeft||i.clientLeft||0)}}:function(c){var i=this[0];if(c)return this.each(function(U){f.offset.setOffset(this,c,U)});if(!i||!i.ownerDocument)return null;if(i===i.ownerDocument.body)return f.offset.bodyOffset(i);
f.offset.initialize();var m=i.offsetParent,q=i,o=i.ownerDocument,y,z=o.documentElement,M=o.body;q=(o=o.defaultView)?o.getComputedStyle(i,null):i.currentStyle;for(var F=i.offsetTop,K=i.offsetLeft;(i=i.parentNode)&&i!==M&&i!==z;){if(f.offset.supportsFixedPosition&&q.position==="fixed")break;y=o?o.getComputedStyle(i,null):i.currentStyle;F-=i.scrollTop;K-=i.scrollLeft;if(i===m){F+=i.offsetTop;K+=i.offsetLeft;if(f.offset.doesNotAddBorder&&!(f.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(i.nodeName))){F+=
parseFloat(y.borderTopWidth)||0;K+=parseFloat(y.borderLeftWidth)||0}q=m;m=i.offsetParent}if(f.offset.subtractsBorderForOverflowNotVisible&&y.overflow!=="visible"){F+=parseFloat(y.borderTopWidth)||0;K+=parseFloat(y.borderLeftWidth)||0}q=y}if(q.position==="relative"||q.position==="static"){F+=M.offsetTop;K+=M.offsetLeft}if(f.offset.supportsFixedPosition&&q.position==="fixed"){F+=Math.max(z.scrollTop,M.scrollTop);K+=Math.max(z.scrollLeft,M.scrollLeft)}return{top:F,left:K}};f.offset={initialize:function(){var c=
B.body,i=B.createElement("div"),m,q,o,y=parseFloat(f.curCSS(c,"marginTop",true))||0;f.extend(i.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});i.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>";
c.insertBefore(i,c.firstChild);m=i.firstChild;q=m.firstChild;o=m.nextSibling.firstChild.firstChild;this.doesNotAddBorder=q.offsetTop!==5;this.doesAddBorderForTableAndCells=o.offsetTop===5;q.style.position="fixed";q.style.top="20px";this.supportsFixedPosition=q.offsetTop===20||q.offsetTop===15;q.style.position=q.style.top="";m.style.overflow="hidden";m.style.position="relative";this.subtractsBorderForOverflowNotVisible=q.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=c.offsetTop!==y;c.removeChild(i);
f.offset.initialize=f.noop},bodyOffset:function(c){var i=c.offsetTop,m=c.offsetLeft;f.offset.initialize();if(f.offset.doesNotIncludeMarginInBodyOffset){i+=parseFloat(f.curCSS(c,"marginTop",true))||0;m+=parseFloat(f.curCSS(c,"marginLeft",true))||0}return{top:i,left:m}},setOffset:function(c,i,m){if(/static/.test(f.curCSS(c,"position")))c.style.position="relative";var q=f(c),o=q.offset(),y=parseInt(f.curCSS(c,"top",true),10)||0,z=parseInt(f.curCSS(c,"left",true),10)||0;if(f.isFunction(i))i=i.call(c,
m,o);m={top:i.top-o.top+y,left:i.left-o.left+z};"using"in i?i.using.call(c,m):q.css(m)}};f.fn.extend({position:function(){if(!this[0])return null;var c=this[0],i=this.offsetParent(),m=this.offset(),q=/^body|html$/i.test(i[0].nodeName)?{top:0,left:0}:i.offset();m.top-=parseFloat(f.curCSS(c,"marginTop",true))||0;m.left-=parseFloat(f.curCSS(c,"marginLeft",true))||0;q.top+=parseFloat(f.curCSS(i[0],"borderTopWidth",true))||0;q.left+=parseFloat(f.curCSS(i[0],"borderLeftWidth",true))||0;return{top:m.top-
q.top,left:m.left-q.left}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent||B.body;c&&!/^body|html$/i.test(c.nodeName)&&f.css(c,"position")==="static";)c=c.offsetParent;return c})}});f.each(["Left","Top"],function(c,i){var m="scroll"+i;f.fn[m]=function(q){var o=this[0],y;if(!o)return null;if(q!==d)return this.each(function(){if(y=s(this))y.scrollTo(!c?q:f(y).scrollLeft(),c?q:f(y).scrollTop());else this[m]=q});else return(y=s(o))?"pageXOffset"in y?y[c?"pageYOffset":"pageXOffset"]:
f.support.boxModel&&y.document.documentElement[m]||y.document.body[m]:o[m]}});f.each(["Height","Width"],function(c,i){var m=i.toLowerCase();f.fn["inner"+i]=function(){return this[0]?f.css(this[0],m,false,"padding"):null};f.fn["outer"+i]=function(q){return this[0]?f.css(this[0],m,false,q?"margin":"border"):null};f.fn[m]=function(q){var o=this[0];if(!o)return q==null?null:this;if(f.isFunction(q))return this.each(function(y){var z=f(this);z[m](q.call(this,y,z[m]()))});return"scrollTo"in o&&o.document?
o.document.compatMode==="CSS1Compat"&&o.document.documentElement["client"+i]||o.document.body["client"+i]:o.nodeType===9?Math.max(o.documentElement["client"+i],o.body["scroll"+i],o.documentElement["scroll"+i],o.body["offset"+i],o.documentElement["offset"+i]):q===d?f.css(o,m):this.css(m,typeof q==="string"?q:q+"px")}});b.jQuery=b.$=f})(window);
(function(b){function d(){b.fn.ajaxSubmit.debug&&window.console&&window.console.log&&window.console.log("[jquery.form] "+Array.prototype.join.call(arguments,""))}b.fn.ajaxSubmit=function(h){function a(){function D(){if(!P++){H.detachEvent?H.detachEvent("onload",D):H.removeEventListener("load",D,false);var ka=true;try{if(N)throw"timeout";var ga,X;X=H.contentWindow?H.contentWindow.document:H.contentDocument?H.contentDocument:H.document;if((X.body==null||X.body.innerHTML=="")&&!sa){sa=1;P--;setTimeout(D,
100);return}B.responseText=X.body?X.body.innerHTML:null;B.responseXML=X.XMLDocument?X.XMLDocument:X;B.getResponseHeader=function(na){return{"content-type":E.dataType}[na]};if(E.dataType=="json"||E.dataType=="script"){var la=X.getElementsByTagName("textarea")[0];B.responseText=la?la.value:B.responseText}else if(E.dataType=="xml"&&!B.responseXML&&B.responseText!=null)B.responseXML=O(B.responseText);ga=b.httpData(B,E.dataType)}catch(ta){ka=false;b.handleError(E,B,"error",ta)}if(ka){E.success(ga,"success");
x&&b.event.trigger("ajaxSuccess",[B,E])}x&&b.event.trigger("ajaxComplete",[B,E]);x&&!--b.active&&b.event.trigger("ajaxStop");if(E.complete)E.complete(B,ka?"success":"error");setTimeout(function(){A.remove();B.responseXML=null},100)}}function O(ka,ga){if(window.ActiveXObject){ga=new ActiveXObject("Microsoft.XMLDOM");ga.async="false";ga.loadXML(ka)}else ga=(new DOMParser).parseFromString(ka,"text/xml");return ga&&ga.documentElement&&ga.documentElement.tagName!="parsererror"?ga:null}var L=k[0];if(b(":input[name=submit]",
L).length)alert('Error: Form elements must not be named "submit".');else{var E=b.extend({},b.ajaxSettings,h),s=jQuery.extend(true,{},b.extend(true,{},b.ajaxSettings),E),f="jqFormIO"+(new Date).getTime(),A=b('<iframe id="'+f+'" name="'+f+'" src="about:blank" />'),H=A[0];A.css({position:"absolute",top:"-1000px",left:"-1000px"});var B={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},
abort:function(){this.aborted=1;A.attr("src","about:blank")}},x=E.global;x&&!b.active++&&b.event.trigger("ajaxStart");x&&b.event.trigger("ajaxSend",[B,E]);if(s.beforeSend&&s.beforeSend(B,s)===false)s.global&&jQuery.active--;else if(!B.aborted){var P=0,N=0;if(s=L.clk){var ea=s.name;if(ea&&!s.disabled){h.extraData=h.extraData||{};h.extraData[ea]=s.value;if(s.type=="image"){h.extraData[name+".x"]=L.clk_x;h.extraData[name+".y"]=L.clk_y}}}setTimeout(function(){var ka=k.attr("target"),ga=k.attr("action");
L.setAttribute("target",f);L.getAttribute("method")!="POST"&&L.setAttribute("method","POST");L.getAttribute("action")!=E.url&&L.setAttribute("action",E.url);h.skipEncodingOverride||k.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"});E.timeout&&setTimeout(function(){N=true;D()},E.timeout);var X=[];try{if(h.extraData)for(var la in h.extraData)X.push(b('<input type="hidden" name="'+la+'" value="'+h.extraData[la]+'" />').appendTo(L)[0]);A.appendTo("body");H.attachEvent?H.attachEvent("onload",
D):H.addEventListener("load",D,false);L.submit()}finally{L.setAttribute("action",ga);ka?L.setAttribute("target",ka):k.removeAttr("target");b(X).remove()}},10);var sa=0}}}if(!this.length){d("ajaxSubmit: skipping submit process - no element selected");return this}if(typeof h=="function")h={success:h};h=b.extend({url:this.attr("action")||window.location.toString(),type:this.attr("method")||"GET"},h||{});var l={};this.trigger("form-pre-serialize",[this,h,l]);if(l.veto){d("ajaxSubmit: submit vetoed via form-pre-serialize trigger");
return this}if(h.beforeSerialize&&h.beforeSerialize(this,h)===false){d("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var n=this.formToArray(h.semantic);if(h.data){h.extraData=h.data;for(var g in h.data)if(h.data[g]instanceof Array)for(var e in h.data[g])n.push({name:g,value:h.data[g][e]});else n.push({name:g,value:h.data[g]})}if(h.beforeSubmit&&h.beforeSubmit(n,this,h)===false){d("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",
[n,this,h,l]);if(l.veto){d("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}l=b.param(n);if(h.type.toUpperCase()=="GET"){h.url+=(h.url.indexOf("?")>=0?"&":"?")+l;h.data=null}else h.data=l;var k=this,r=[];h.resetForm&&r.push(function(){k.resetForm()});h.clearForm&&r.push(function(){k.clearForm()});if(!h.dataType&&h.target){var v=h.success||function(){};r.push(function(D){b(h.target).html(D).each(v,arguments)})}else h.success&&r.push(h.success);h.success=function(D,O){for(var L=
0,E=r.length;L<E;L++)r[L].apply(h,[D,O,k])};l=b("input:file",this).fieldValue();n=false;for(g=0;g<l.length;g++)if(l[g])n=true;if(h.iframe||n)h.closeKeepAlive?b.get(h.closeKeepAlive,a):a();else b.ajax(h);this.trigger("form-submit-notify",[this,h]);return this};b.fn.ajaxForm=function(h){return this.ajaxFormUnbind().bind("submit.form-plugin",function(){b(this).ajaxSubmit(h);return false}).each(function(){b(":submit,input:image",this).bind("click.form-plugin",function(a){var l=this.form;l.clk=this;if(this.type==
"image")if(a.offsetX!=undefined){l.clk_x=a.offsetX;l.clk_y=a.offsetY}else if(typeof b.fn.offset=="function"){var n=b(this).offset();l.clk_x=a.pageX-n.left;l.clk_y=a.pageY-n.top}else{l.clk_x=a.pageX-this.offsetLeft;l.clk_y=a.pageY-this.offsetTop}setTimeout(function(){l.clk=l.clk_x=l.clk_y=null},10)})})};b.fn.ajaxFormUnbind=function(){this.unbind("submit.form-plugin");return this.each(function(){b(":submit,input:image",this).unbind("click.form-plugin")})};b.fn.formToArray=function(h){var a=[];if(this.length==
0)return a;var l=this[0],n=h?l.getElementsByTagName("*"):l.elements;if(!n)return a;for(var g=0,e=n.length;g<e;g++){var k=n[g],r=k.name;if(r)if(h&&l.clk&&k.type=="image")!k.disabled&&l.clk==k&&a.push({name:r+".x",value:l.clk_x},{name:r+".y",value:l.clk_y});else if((k=b.fieldValue(k,true))&&k.constructor==Array)for(var v=0,D=k.length;v<D;v++)a.push({name:r,value:k[v]});else k!==null&&typeof k!="undefined"&&a.push({name:r,value:k})}if(!h&&l.clk){h=l.getElementsByTagName("input");g=0;for(e=h.length;g<
e;g++){n=h[g];(r=n.name)&&!n.disabled&&n.type=="image"&&l.clk==n&&a.push({name:r+".x",value:l.clk_x},{name:r+".y",value:l.clk_y})}}return a};b.fn.formSerialize=function(h){return b.param(this.formToArray(h))};b.fn.fieldSerialize=function(h){var a=[];this.each(function(){var l=this.name;if(l){var n=b.fieldValue(this,h);if(n&&n.constructor==Array)for(var g=0,e=n.length;g<e;g++)a.push({name:l,value:n[g]});else n!==null&&typeof n!="undefined"&&a.push({name:this.name,value:n})}});return b.param(a)};b.fn.fieldValue=
function(h){for(var a=[],l=0,n=this.length;l<n;l++){var g=b.fieldValue(this[l],h);g===null||typeof g=="undefined"||g.constructor==Array&&!g.length||(g.constructor==Array?b.merge(a,g):a.push(g))}return a};b.fieldValue=function(h,a){var l=h.name,n=h.type,g=h.tagName.toLowerCase();if(typeof a=="undefined")a=true;if(a&&(!l||h.disabled||n=="reset"||n=="button"||(n=="checkbox"||n=="radio")&&!h.checked||(n=="submit"||n=="image")&&h.form&&h.form.clk!=h||g=="select"&&h.selectedIndex==-1))return null;if(g==
"select"){g=h.selectedIndex;if(g<0)return null;a=[];h=h.options;l=(n=n=="select-one")?g+1:h.length;for(g=n?g:0;g<l;g++){var e=h[g];if(e.selected){var k=e.value;k||(k=e.attributes&&e.attributes.value&&!e.attributes.value.specified?e.text:e.value);if(n)return k;a.push(k)}}return a}return h.value};b.fn.clearForm=function(){return this.each(function(){b("input,select,textarea",this).clearFields()})};b.fn.clearFields=b.fn.clearInputs=function(){return this.each(function(){var h=this.type,a=this.tagName.toLowerCase();
if(h=="text"||h=="password"||a=="textarea")this.value="";else if(h=="checkbox"||h=="radio")this.checked=false;else if(a=="select")this.selectedIndex=-1})};b.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||typeof this.reset=="object"&&!this.reset.nodeType)this.reset()})};b.fn.enable=function(h){if(h==undefined)h=true;return this.each(function(){this.disabled=!h})};b.fn.selected=function(h){if(h==undefined)h=true;return this.each(function(){var a=this.type;if(a==
"checkbox"||a=="radio")this.checked=h;else if(this.tagName.toLowerCase()=="option"){a=b(this).parent("select");h&&a[0]&&a[0].type=="select-one"&&a.find("option").selected(false);this.selected=h}})}})(jQuery);
(function(b){b.defineTag=function(a){this[a.toUpperCase()]=function(){return this._createNode(a,arguments)}};for(var d=["a","br","button","canvas","div","embed","fieldset","form","h1","h2","h3","h4","h5","h6","hr","img","input","label","legend","li","link","object","ol","optgroup","option","p","param","pre","script","select","span","strong","table","tbody","td","textarea","tfoot","th","thead","tr","tt","ul"],h=d.length-1;h>=0;h--)b.defineTag(d[h]);b.NBSP="\u00a0";b._createNode=function(a,l){function n(O){if(O!=
null){switch(typeof O){case "number":O=""+O;case "string":O=document.createTextNode(O)}e.appendChild(O)}}var g={"class":"className",Class:"className"},e;try{var k=l[0]||{};e=document.createElement(a);for(var r in k)e[g[r]||r]=k[r];for(g=1;g<l.length;g++){var v=l[g];if(v!=null)if(v.constructor!=Array)n(v);else for(k=0;k<v.length;k++)n(v[k])}}catch(D){alert("Cannot create <"+a+"> element:\n"+l.toSource()+"\n"+l+". Error message: "+D.message);e=null}return e}})(jQuery);
if(typeof Flavors=="undefined")Flavors={};if(typeof Flavors.Global=="undefined")Flavors.Global={};
(function(){var b=Flavors.Global;b.__name__="Flavors.Global";b.clone=function(h){var a=arguments.callee;if(arguments.length==1){a.prototype=h;return new a}};b.extend=function(h,a,l){l||(l=0);if(a){var n=a.length;if(typeof n!="number")throw new TypeError("Argument not a array-like.");h||(h=[]);for(l=l;l<n;l++)h.push(a[l])}return h};b.bind=function(h,a){if(typeof h=="string")h=a[h];var l=h.im_func,n=h.im_preargs,g=h.im_self;if(typeof h=="function"&&typeof h.apply=="undefined")h=d(h);if(typeof l!="function")l=
h;if(typeof a!="undefined")g=a;n=typeof n=="undefined"?[]:n.slice();b.extend(n,arguments,2);var e=function(){var k=arguments,r=arguments.callee;if(r.im_preargs.length>0)k=b.concat(r.im_preargs,k);var v=r.im_self;v||(v=this);return r.im_func.apply(v,k)};e.im_self=g;e.im_func=l;e.im_preargs=n;return e};b.partial=function(h){return b.bind.apply(this,b.extend([h,undefined],arguments,1))};b.update=function(h){if(h===null||h===undefined)h={};for(var a=1;a<arguments.length;a++){var l=arguments[a];if(typeof l!=
"undefined"&&l!==null)for(var n in l)h[n]=l[n]}return h};b.merge=b.partial(b.update,null);b.concat=function(){for(var h=[],a=b.extend,l=0;l<arguments.length;l++)a(h,arguments[l]);return h};var d=function(h){return function(){switch(arguments.length){case 0:return h();case 1:return h(arguments[0]);case 2:return h(arguments[0],arguments[1]);case 3:return h(arguments[0],arguments[1],arguments[2])}for(var a=[],l=0;l<arguments.length;l++)a.push("arguments["+l+"]");return eval("(func("+a.join(",")+"))")}};
b.flattenArguments=function(){for(var h=[],a=Flavors.Global.extend(null,arguments);a.length;){var l=a.shift();if(l&&typeof l=="object"&&typeof l.length=="number")for(var n=l.length-1;n>=0;n--)a.unshift(l[n]);else h.push(l)}return h};b.namespace=function(){var h=b.flattenArguments(arguments),a=[],l=function(n,g){g=g||window;n in g||(g[n]={});return g[n]};$.each(h,function(n,g){n=g.split(".");var e=null;$.each(n,function(k,r){e=l(r,e)});e.__name__=g;a.push(e)});switch(a.length){case 0:return null;case 1:return a[0];
default:return a}};b.getKeys=function(h){var a=[];for(var l in h)h.hasOwnProperty(l)&&a.push(l);return a}})();
(function(){var b=Flavors.Global.namespace("Flavors.Logger"),d=["log","debug","info","warn","error","assert","dir","dirxml","group","groupEnd","time","timeEnd","count","trace","profile","profileEnd"];if(!("console"in window))window.console={};for(var h=0;h<d.length;++h)if(!IS_DEV||!(d[h]in window.console))window.console[d[h]]=function(){};b.getLogger=function(a){a=a;return function(l){console.log((a?a+": ":"")+l)}}})();
(function(b){b.fn.extend({isChildOf:function(d){var h=b(this).parents().get();for(j=0;j<h.length;j++)if(b(h[j]).is(d))return true;return false}})})(jQuery);(function(b){b.fn.extend({maxlength:function(){b(this).keypress(function(d){var h=d.which;if(h>=33||h==13)this.value.length>=b(this).attr("maxlength")&&d.preventDefault()})}})})(jQuery);
(function(){var b=Flavors.Global.namespace("Flavors.Remote");Flavors.Logger.getLogger(b.__name__);b.URLforUpdate=function(a,l){l=l||window.location.href;if(window.location.href.indexOf("?")>-1)l=l.slice(0,window.location.href.indexOf("?"));return l.replace(new RegExp(/#.*$/),"").replace(new RegExp(/\/$/),"")+"/"+a};b.sendUpdate=function(a,l,n){d++;$.ajax({type:"POST",data:l,url:a,dataType:"json",complete:function(){d>0&&d--;h()},success:function(g){n&&n(g);h()}})};var d=0,h=function(){if(d>0){$("#global_notify").text("Saving...");
$("#global_notify").fadeIn()}else{d!=0&&$("#global_notify").text("Saving...");setTimeout(function(){d==0&&$("#global_notify").text("Saved!")},800);setTimeout(function(){d==0&&$("#global_notify").fadeOut()},1600)}}})();
var swfobject=function(){function b(){if(!Ba){try{var C=X.getElementsByTagName("body")[0].appendChild(f("span"));C.parentNode.removeChild(C)}catch(I){return}Ba=true;C=na.length;for(var T=0;T<C;T++)na[T]()}}function d(C){if(Ba)C();else na[na.length]=C}function h(C){if(typeof ga.addEventListener!=N)ga.addEventListener("load",C,false);else if(typeof X.addEventListener!=N)X.addEventListener("load",C,false);else if(typeof ga.attachEvent!=N)A(ga,"onload",C);else if(typeof ga.onload=="function"){var I=ga.onload;
ga.onload=function(){I();C()}}else ga.onload=C}function a(){ta?l():n()}function l(){var C=X.getElementsByTagName("body")[0],I=f(ea);I.setAttribute("type",sa);var T=C.appendChild(I);if(T){var V=0;(function(){if(typeof T.GetVariable!=N){var W=T.GetVariable("$version");if(W){W=W.split(" ")[1].split(",");Y.pv=[parseInt(W[0],10),parseInt(W[1],10),parseInt(W[2],10)]}}else if(V<10){V++;setTimeout(arguments.callee,10);return}C.removeChild(I);T=null;n()})()}else n()}function n(){var C=oa.length;if(C>0)for(var I=
0;I<C;I++){var T=oa[I].id,V=oa[I].callbackFn,W={success:false,id:T};if(Y.pv[0]>0){var ca=s(T);if(ca)if(H(oa[I].swfVersion)&&!(Y.wk&&Y.wk<312)){x(T,true);if(V){W.success=true;W.ref=g(T);V(W)}}else if(oa[I].expressInstall&&e()){W={};W.data=oa[I].expressInstall;W.width=ca.getAttribute("width")||"0";W.height=ca.getAttribute("height")||"0";if(ca.getAttribute("class"))W.styleclass=ca.getAttribute("class");if(ca.getAttribute("align"))W.align=ca.getAttribute("align");var da={};ca=ca.getElementsByTagName("param");
for(var ma=ca.length,ra=0;ra<ma;ra++)if(ca[ra].getAttribute("name").toLowerCase()!="movie")da[ca[ra].getAttribute("name")]=ca[ra].getAttribute("value");k(W,da,T,V)}else{r(ca);V&&V(W)}}else{x(T,true);if(V){if((T=g(T))&&typeof T.SetVariable!=N){W.success=true;W.ref=T}V(W)}}}}function g(C){var I=null;if((C=s(C))&&C.nodeName=="OBJECT")if(typeof C.SetVariable!=N)I=C;else if(C=C.getElementsByTagName(ea)[0])I=C;return I}function e(){return!Ga&&H("6.0.65")&&(Y.win||Y.mac)&&!(Y.wk&&Y.wk<312)}function k(C,
I,T,V){Ga=true;Ka=V||null;Aa={success:false,id:T};var W=s(T);if(W){if(W.nodeName=="OBJECT"){za=v(W);va=null}else{za=W;va=T}C.id=ka;if(typeof C.width==N||!/%$/.test(C.width)&&parseInt(C.width,10)<310)C.width="310";if(typeof C.height==N||!/%$/.test(C.height)&&parseInt(C.height,10)<137)C.height="137";X.title=X.title.slice(0,47)+" - Flash Player Installation";V=Y.ie&&Y.win?"ActiveX":"PlugIn";V="MMredirectURL="+ga.location.toString().replace(/&/g,"%26")+"&MMplayerType="+V+"&MMdoctitle="+X.title;if(typeof I.flashvars!=
N)I.flashvars+="&"+V;else I.flashvars=V;if(Y.ie&&Y.win&&W.readyState!=4){V=f("div");T+="SWFObjectNew";V.setAttribute("id",T);W.parentNode.insertBefore(V,W);W.style.display="none";(function(){W.readyState==4?W.parentNode.removeChild(W):setTimeout(arguments.callee,10)})()}D(C,I,T)}}function r(C){if(Y.ie&&Y.win&&C.readyState!=4){var I=f("div");C.parentNode.insertBefore(I,C);I.parentNode.replaceChild(v(C),I);C.style.display="none";(function(){C.readyState==4?C.parentNode.removeChild(C):setTimeout(arguments.callee,
10)})()}else C.parentNode.replaceChild(v(C),C)}function v(C){var I=f("div");if(Y.win&&Y.ie)I.innerHTML=C.innerHTML;else if(C=C.getElementsByTagName(ea)[0])if(C=C.childNodes)for(var T=C.length,V=0;V<T;V++)!(C[V].nodeType==1&&C[V].nodeName=="PARAM")&&C[V].nodeType!=8&&I.appendChild(C[V].cloneNode(true));return I}function D(C,I,T){var V,W=s(T);if(Y.wk&&Y.wk<312)return V;if(W){if(typeof C.id==N)C.id=T;if(Y.ie&&Y.win){var ca="";for(var da in C)if(C[da]!=Object.prototype[da])if(da.toLowerCase()=="data")I.movie=
C[da];else if(da.toLowerCase()=="styleclass")ca+=' class="'+C[da]+'"';else if(da.toLowerCase()!="classid")ca+=" "+da+'="'+C[da]+'"';da="";for(var ma in I)if(I[ma]!=Object.prototype[ma])da+='<param name="'+ma+'" value="'+I[ma]+'" />';W.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ca+">"+da+"</object>";ya[ya.length]=C.id;V=s(C.id)}else{ma=f(ea);ma.setAttribute("type",sa);for(ca in C)if(C[ca]!=Object.prototype[ca])if(ca.toLowerCase()=="styleclass")ma.setAttribute("class",
C[ca]);else ca.toLowerCase()!="classid"&&ma.setAttribute(ca,C[ca]);for(var ra in I)I[ra]!=Object.prototype[ra]&&ra.toLowerCase()!="movie"&&O(ma,ra,I[ra]);W.parentNode.replaceChild(ma,W);V=ma}}return V}function O(C,I,T){var V=f("param");V.setAttribute("name",I);V.setAttribute("value",T);C.appendChild(V)}function L(C){var I=s(C);if(I&&I.nodeName=="OBJECT")if(Y.ie&&Y.win){I.style.display="none";(function(){I.readyState==4?E(C):setTimeout(arguments.callee,10)})()}else I.parentNode.removeChild(I)}function E(C){if(C=
s(C)){for(var I in C)if(typeof C[I]=="function")C[I]=null;C.parentNode.removeChild(C)}}function s(C){var I=null;try{I=X.getElementById(C)}catch(T){}return I}function f(C){return X.createElement(C)}function A(C,I,T){C.attachEvent(I,T);wa[wa.length]=[C,I,T]}function H(C){var I=Y.pv;C=C.split(".");C[0]=parseInt(C[0],10);C[1]=parseInt(C[1],10)||0;C[2]=parseInt(C[2],10)||0;return I[0]>C[0]||I[0]==C[0]&&I[1]>C[1]||I[0]==C[0]&&I[1]==C[1]&&I[2]>=C[2]?true:false}function B(C,I,T,V){if(!(Y.ie&&Y.mac)){var W=
X.getElementsByTagName("head")[0];if(W){T=T&&typeof T=="string"?T:"screen";if(V)La=xa=null;if(!xa||La!=T){V=f("style");V.setAttribute("type","text/css");V.setAttribute("media",T);xa=W.appendChild(V);if(Y.ie&&Y.win&&typeof X.styleSheets!=N&&X.styleSheets.length>0)xa=X.styleSheets[X.styleSheets.length-1];La=T}if(Y.ie&&Y.win)xa&&typeof xa.addRule==ea&&xa.addRule(C,I);else xa&&typeof X.createTextNode!=N&&xa.appendChild(X.createTextNode(C+" {"+I+"}"))}}}function x(C,I){if(Oa){I=I?"visible":"hidden";if(Ba&&
s(C))s(C).style.visibility=I;else B("#"+C,"visibility:"+I)}}function P(C){return/[\\\"<>\.;]/.exec(C)!=null&&typeof encodeURIComponent!=N?encodeURIComponent(C):C}var N="undefined",ea="object",sa="application/x-shockwave-flash",ka="SWFObjectExprInst",ga=window,X=document,la=navigator,ta=false,na=[a],oa=[],ya=[],wa=[],za,va,Ka,Aa,Ba=false,Ga=false,xa,La,Oa=true,Y=function(){var C=typeof X.getElementById!=N&&typeof X.getElementsByTagName!=N&&typeof X.createElement!=N,I=la.userAgent.toLowerCase(),T=la.platform.toLowerCase(),
V=T?/win/.test(T):/win/.test(I);T=T?/mac/.test(T):/mac/.test(I);I=/webkit/.test(I)?parseFloat(I.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false;var W=!+"\u000b1",ca=[0,0,0],da=null;if(typeof la.plugins!=N&&typeof la.plugins["Shockwave Flash"]==ea){if((da=la.plugins["Shockwave Flash"].description)&&!(typeof la.mimeTypes!=N&&la.mimeTypes[sa]&&!la.mimeTypes[sa].enabledPlugin)){ta=true;W=false;da=da.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ca[0]=parseInt(da.replace(/^(.*)\..*$/,"$1"),10);ca[1]=parseInt(da.replace(/^.*\.(.*)\s.*$/,
"$1"),10);ca[2]=/[a-zA-Z]/.test(da)?parseInt(da.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else if(typeof ga.ActiveXObject!=N)try{var ma=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(ma)if(da=ma.GetVariable("$version")){W=true;da=da.split(" ")[1].split(",");ca=[parseInt(da[0],10),parseInt(da[1],10),parseInt(da[2],10)]}}catch(ra){}return{w3:C,pv:ca,wk:I,ie:W,win:V,mac:T}}();(function(){if(Y.w3){if(typeof X.readyState!=N&&X.readyState=="complete"||typeof X.readyState==N&&(X.getElementsByTagName("body")[0]||
X.body))b();if(!Ba){typeof X.addEventListener!=N&&X.addEventListener("DOMContentLoaded",b,false);if(Y.ie&&Y.win){X.attachEvent("onreadystatechange",function(){if(X.readyState=="complete"){X.detachEvent("onreadystatechange",arguments.callee);b()}});ga==top&&function(){if(!Ba){try{X.documentElement.doScroll("left")}catch(C){setTimeout(arguments.callee,0);return}b()}}()}Y.wk&&function(){Ba||(/loaded|complete/.test(X.readyState)?b():setTimeout(arguments.callee,0))}();h(b)}}})();(function(){Y.ie&&Y.win&&
window.attachEvent("onunload",function(){for(var C=wa.length,I=0;I<C;I++)wa[I][0].detachEvent(wa[I][1],wa[I][2]);C=ya.length;for(I=0;I<C;I++)L(ya[I]);for(var T in Y)Y[T]=null;Y=null;for(var V in swfobject)swfobject[V]=null;swfobject=null})})();return{registerObject:function(C,I,T,V){if(Y.w3&&C&&I){var W={};W.id=C;W.swfVersion=I;W.expressInstall=T;W.callbackFn=V;oa[oa.length]=W;x(C,false)}else V&&V({success:false,id:C})},getObjectById:function(C){if(Y.w3)return g(C)},embedSWF:function(C,I,T,V,W,ca,
da,ma,ra,Ha){var Ia={success:false,id:I};if(Y.w3&&!(Y.wk&&Y.wk<312)&&C&&I&&T&&V&&W){x(I,false);d(function(){T+="";V+="";var Ca={};if(ra&&typeof ra===ea)for(var S in ra)Ca[S]=ra[S];Ca.data=C;Ca.width=T;Ca.height=V;S={};if(ma&&typeof ma===ea)for(var ha in ma)S[ha]=ma[ha];if(da&&typeof da===ea)for(var ua in da)if(typeof S.flashvars!=N)S.flashvars+="&"+ua+"="+da[ua];else S.flashvars=ua+"="+da[ua];if(H(W)){ha=D(Ca,S,I);Ca.id==I&&x(I,true);Ia.success=true;Ia.ref=ha}else if(ca&&e()){Ca.data=ca;k(Ca,S,I,
Ha);return}else x(I,true);Ha&&Ha(Ia)})}else Ha&&Ha(Ia)},switchOffAutoHideShow:function(){Oa=false},ua:Y,getFlashPlayerVersion:function(){return{major:Y.pv[0],minor:Y.pv[1],release:Y.pv[2]}},hasFlashPlayerVersion:H,createSWF:function(C,I,T){if(Y.w3)return D(C,I,T)},showExpressInstall:function(C,I,T,V){Y.w3&&e()&&k(C,I,T,V)},removeSWF:function(C){Y.w3&&L(C)},createCSS:function(C,I,T,V){Y.w3&&B(C,I,T,V)},addDomLoadEvent:d,addLoadEvent:h,getQueryParamValue:function(C){var I=X.location.search||X.location.hash;
if(I){if(/\?/.test(I))I=I.split("?")[1];if(C==null)return P(I);I=I.split("&");for(var T=0;T<I.length;T++)if(I[T].substring(0,I[T].indexOf("="))==C)return P(I[T].substring(I[T].indexOf("=")+1))}return""},expressInstallCallback:function(){if(Ga){var C=s(ka);if(C&&za){C.parentNode.replaceChild(za,C);if(va){x(va,true);if(Y.ie&&Y.win)za.style.display="block"}Ka&&Ka(Aa)}Ga=false}}}}();
(function(b,d){var h=function(g){var e,k=[];for(e in g)/string|number/.test(typeof g[e])&&g[e]!==""&&k.push(e+'="'+g[e]+'"');return k[n]("")},a=function(g){var e,k,r=[],v;if(typeof g=="object"){for(e in g){if(typeof g[e]=="object"){v=[];for(k in g[e])v.push([k,"=",encodeURIComponent(g[e][k])][n](""));g[e]=v[n]("&amp;")}g[e]&&r.push(['<param name="',e,'" value="',g[e],'" />'][n](""))}g=r[n]("")}return g},l=false,n="join";b[d]=function(){try{var g="0,0,0",e=navigator.plugins["Shockwave Flash"]||ActiveXObject;
g=e.description||function(){try{return(new e("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version")}catch(r){}}()}catch(k){}g=g.match(/^[A-Za-z\s]*?(\d+)[\.|,](\d+)(?:\s+[d|r]|,)(\d+)/);return{available:g[1]>0,activeX:e&&!e.name,version:{major:g[1]*1,minor:g[2]*1,release:g[3]*1},hasVersion:function(r){var v=this.version;r=/string|number/.test(typeof r)?r.toString().split("."):r||[0,0,0];r=[r.major||r[0]||v.major,r.minor||r[1]||v.minor,r.release||r[2]||v.release];return r[0]<v.major||r[0]==v.major&&
r[1]<v.minor||r[0]==v.major&&r[1]==v.minor&&r[2]<=v.release},expressInstall:"expressInstall.swf",create:function(r){if(!b[d].available||l||!typeof r=="object"||!r.swf)return false;if(r.hasVersion&&!b[d].hasVersion(r.hasVersion)){r={swf:r.expressInstall||b[d].expressInstall,attrs:{id:r.id||"SWFObjectExprInst",name:r.name,height:Math.max(r.height||137),width:Math.max(r.width||214)},params:{flashvars:{MMredirectURL:location.href,MMplayerType:b[d].activeX?"ActiveX":"PlugIn",MMdoctitle:document.title.slice(0,
47)+" - Flash Player Installation"}}};l=true}else r=b.extend(true,{attrs:{id:r.id,name:r.name,height:r.height||180,width:r.width||320},params:{wmode:r.wmode||"transparent",flashvars:r.flashvars,allowfullscreen:"true",allowscriptaccess:"always"}},r);if(b[d].activeX){r.attrs.classid=r.attrs.classid||"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";r.params.movie=r.params.movie||r.swf}else{r.attrs.type=r.attrs.classid||"application/x-shockwave-flash";r.attrs.data=r.attrs.data||r.swf}return["<object ",h(r.attrs),
">",a(r.params),"</object>"][n]("")}}}();b.fn[d]=function(g){if(typeof g=="object")this.each(function(){var e=document.createElement(d),k=b[d].create(g);if(k){e.innerHTML=k;e.childNodes[0]&&this.appendChild(e.childNodes[0])}});else typeof g=="function"&&this.find("object").andSelf().filter("object").each(function(){var e=this;e.jsInteractionTimeoutMs=e.jsInteractionTimeoutMs||0;if(e.jsInteractionTimeoutMs<660)e.clientWidth||e.clientHeight?g.call(this):setTimeout(function(){b(e)[d](g)},e.jsInteractionTimeoutMs+
66)});return this}})(jQuery,"flash");
(function(b){function d(h,a,l){var n=h.currSlide;n==0?a.addClass("color_1_arrow_left").removeClass("color_2_arrow_left"):a.addClass("color_2_arrow_left").removeClass("color_1_arrow_left");n==h.slideCount-1?l.addClass("color_1_arrow_right").removeClass("color_2_arrow_right"):l.addClass("color_2_arrow_right").removeClass("color_1_arrow_right")}b.fn.deferredImageLoad=function(h){var a=Flavors.Logger.getLogger("$.fn.deferredImageLoad()");if(this.length<1)a("no element passed in to deferredImageLoad");else{var l=
{batchSize:1,loadNow:0,loadAll:0};h&&b.extend(l,h);var n=this;h=function(g,e){e=e||1;window.setTimeout(function(){b(n).find(".img-pending").each(function(k){if(l.loadAll||k<e*l.batchSize){k=b.IMG({src:b(this).attr("data-src")});b(k).removeAttr("width").removeAttr("height");b(this).attr("data-class")&&b(k).attr("class",b(this).attr("data-class"));b(this).attr("data-larger-src")&&b(k).attr("data-larger-src",b(this).attr("data-larger-src"));b(this).attr("data-embed-url")&&b(k).attr("data-embed-url",
b(this).attr("data-embed-url"));b(this).attr("id")&&b(k).attr("id",b(this).attr("id"));k=b(this).attr("data-href")?b.A({href:b(this).attr("data-href")},k):k;b(this).replaceWith(k)}})},0)};l.loadNow>0&&h(null,l.loadNow);b(n).bind("move-forward.image",h)}};b.fn.deferredEmbedLoad=function(h){var a=Flavors.Logger.getLogger("$.fn.deferredEmbedLoad()");if(this.length<1)a("no element passed in to deferredEmbedLoad");else{var l={batchSize:1,loadNow:0,loadAll:0,embedSize:"medium"};h&&b.extend(l,h);var n=this;
h=function(g,e){e=e||1;window.setTimeout(function(){b(n).find(".param-pending").each(function(k){if(l.loadAll||k<e*l.batchSize){k=b(this).attr("data-src");var r=b(this).parent().attr("width"),v=b(this).parent().attr("height");oFlash=b.flash.create({swf:k,width:r,height:v});b(this).parent().replaceWith(oFlash)}}).end().find(".object-pending").each(function(k){if(l.loadAll||k<e*l.batchSize){k=b(this).attr("data-src");var r=b(this).attr("width"),v=b(this).attr("height");oFlash=b.flash.create({swf:k,
width:r,height:v});b(this).replaceWith(oFlash)}}).end().embedResize(l.embedSize)},0)};l.loadNow>0&&h(null,l.loadNow);b(n).bind("move-forward.embed",h)}};b.fn.embedResize=function(h){var a=Flavors.Logger.getLogger("$.fn.embedResize()");if(this.length<1)a("no element passed in to embedResize");else{a=function(){var l=b(this).attr("width"),n=b(this).attr("height");sizeRatio=l/n;if(h=="large")l=460;else if(h=="medium"){if(b(this).find("DIV.jScrollPaneTrack"))if(l>290)l=290;else if(l>300)l=300}else if(h==
"small"){if(l>140)l=140}else if(l>450)l=450;n=Math.round(l/sizeRatio);b(this).attr("width",l).attr("height",n)};b(this).find("object").each(a);b.browser.msie||b(this).find("embed").each(a)}};b.fn.sectionSwitcher=function(){var h=Flavors.Logger.getLogger("$.fn.sectionSwitcher()");if(this.length<1)h("no element passed in to sectionSwitcher");else{var a=this,l=b(a).find("UL.header-nav-items");if(!(l.length<1)){var n=b(a).find("DIV.header-nav"),g=b(this).find("DIV.section");if(!(g.length<=1)){b(n).show();
var e=null,k=function(){h("initMenu()");b(l).find("li").click(r).each(function(A,H){b(H).data("ordinal",A)});var E=O(l,"paddingLeft"),s=O(l,"borderLeftWidth"),f=O(l,"paddingTop");O(l,"borderTopWidth");e=b(n).position();e.left=e.left+(b(n).outerWidth()-b(l).outerWidth())+E+s-9;e.top-=f-4;b(n).data("ordinal",0)},r=function(){h("switchSection()");b(n).find(".label").text(b(this).text()).end().data("ordinal",b(this).data("ordinal"));b(l).hide();var E=b(this).data("ordinal");E=Flavors.Global.partial(v,
E);b(a).find("DIV.section:visible").length>0?D(E):E();b(this).parent().find("li").attr("class","color_2");b(this).attr("class","selected color_1");b(n).fadeIn(50)},v=function(E){h("showSectionNum() num="+E);b(a).find("DIV.section:eq("+E+")").fadeIn(function(){b(this).trigger("move-forward.image");b(this).trigger("move-forward.embed");b(this).find("DIV.mask:first").createScrollPane();if(b(this).hasClass("gallery")||b(this).hasClass("status")||b(this).hasClass("blog"))b(this).slidePanel();b(this).hasClass("audio")&&
!b(this).data("hasAudio")&&b(this).musicPlayer(".track");b(this).hasClass("video")&&!b(this).data("hasClickEmbed")&&b(this).clickToEmbed()})},D=function(E){h("hideVisibleSection()");b(a).find("DIV.section:visible").fadeOut(function(){b(this).jScrollPaneRemove();E&&E()})},O=function(E,s){return parseInt(b(E).css(s).replace("px",""))},L=b(l).find("li");b.each(g,function(E,s){b(s).data("ordinal",E);h("ordinal:"+E);b(L[E]).show()});b(n).click(function(){h("showMenu()");e||k();var E=Flavors.Global.clone(e);
b("UL.header-nav-items").not(this).hide();if(b(l).css("background-color")=="transparent"||b(l).css("background-color")=="rgba(0, 0, 0, 0)")b(l).removeClass("background_2").addClass("background_1");b(n).fadeOut(50,function(){b(l).css({top:E.top,left:E.left}).fadeIn(200)})});b("body").click(function(){b(l).hide();b(n).fadeIn(50)});b(n).click(function(E){E.stopPropagation()})}}}};b.fn.createScrollPane=function(){Flavors.Logger.getLogger("$.fn.createScrollPane()");if(!(this.length<1)){b(this);b(this).css({overflow:"auto"}).jScrollPane({scrollbarWidth:7,
showArrows:0,arrowSize:0,animateTo:true});var h=b(this).parent().find("DIV.jScrollPaneTrack"),a=b(this).parent().find("DIV.jScrollPaneDrag");h.addClass("color_1_background");a.addClass("background_2").addClass("color_1_border").css({width:"5px","border-width":"1px","border-style":"solid"});if(a.css("background-color")=="transparent"||a.css("background-color")=="rgba(0, 0, 0, 0)"){a.removeClass("background_2").addClass("background_1");b.browser.msie&&b(this).parent().css("background","transparent url(clear.gif)")}h.hide();
b(this).parent().hover(function(){h.show()},function(){h.hide()});h.mouseover(function(){h.show()});b(this).parent().scroll(function(){h.show()})}};b.fn.blogNav=function(){var h=Flavors.Logger.getLogger("$.fn.blogNav()");if(this.length<1)h("no element passed in to blogNav");else{var a=b(this);h=a.find("#large-blog-navigation DIV.nav-items");var l=b(this).find("#large-blog-content .items"),n=a.find("DIV.blog-navigation-nav .left"),g=a.find("DIV.blog-navigation-nav .right");l.data("hasCycle",true);
n.hide();g.hide();if(l.children().length>5)b("DIV.blog-navigation-nav").show();else{b("DIV.blog-navigation-nav").hide();h.css("margin-top","5px")}b(this).parent().parent().hover(function(){if(l.children().length>5){n.show();g.show()}},function(){n.hide();g.hide()});h.cycle({fx:"scrollHorz",timeout:0,speed:"1000",pause:1,nowrap:true,height:"auto",prev:n,next:g,cleartypeNoBg:true,prevNextClick:function(){b(a).trigger("move-forward.image");b(a).trigger("move-forward.embed")},after:function(e,k,r){d(r,
n,g);b(this).find(".blog-navigation").css("visibility","visible").css("opacity","1")}});l.find(".item").hide();l.find(".item:first").show();b(this).find("A.large-blog-link").click(function(e){e.preventDefault();b(a).trigger("move-forward.image");b(a).trigger("move-forward.embed");var k=b(this).attr("index");l.find(".item").hide();l.find(".item").each(function(){k==b(this).attr("index")&&b(this).fadeIn(500)});a.find("A.large-blog-link").removeClass("color_1");b(this).addClass("color_1")})}};b.fn.slidePanel=
function(h){var a=Flavors.Logger.getLogger("$.fn.slidePanel()");if(this.length<1)a("no element passed in to slidePanel");else{a={loadNow:false};h&&b.extend(a,h);var l=b(this),n=l.find("div.items"),g=l.find("div.section-nav .left"),e=l.find("div.section-nav .right");g.find(".arrow-left").show();g.hide();e.hide();var k=function(){n.cycle({fx:"scrollHorz",timeout:0,speed:"1000",nowrap:true,prev:g,next:e,cleartypeNoBg:true,prevNextClick:function(){b(l).trigger("move-forward.image");b(l).trigger("move-forward.embed")},
before:function(r,v){if(b(l).hasClass("status"))if(b(l).is(":visible"))b(n).height(b(v).outerHeight(false));else{b(l).show();b(n).height(b(v).outerHeight(false));b(l).hide()}b(r).find("DIV.mask").css("overflow","hidden");b(v).find("DIV.mask").css("overflow","hidden")},after:function(r,v,D){b(r).find("DIV.mask").jScrollPaneRemove();b(v).find("DIV.mask").createScrollPane();d(D,g,e);n.data("hasCycle",true)}})};a.loadNow&&k();b.browser.msie&&b(this).css("background-color")=="transparent"&&b(this).css("background",
"transparent url(clear.gif)");b(this).parent().parent().hover(function(){if(n.find(".item").length>1){n.data("hasCycle")||k();g.show();e.show()}},function(){g.hide();e.hide()})}};b.fn.videoViewer=function(h,a){var l=Flavors.Logger.getLogger("$.fn.videoViewer()");if(this.length<1)l("no element passed in to videoViewer");else{var n={};a&&b.extend(n,a);var g=this.find(h);if(g.length<1)return b(this);this.bind("thumbnail-click",function(e,k){var r={width:450,height:253};if("videoDimensions"in Flavors.LayoutSettings[window.layout_name])r=
Flavors.LayoutSettings[window.layout_name].videoDimensions;var v=b(k).closest("li").attr("data-clip-id");b(g).find("DIV.large-clip").fadeOut(250,function(){b(g).append(b.DIV({"class":"large-clip",id:"large-clip-"+v},b.DIV({"class":"embed",id:"video_embed_"+v})));var D=n.embedUrl.replace("{{{ID}}}",v);swfobject.embedSWF(D,"video_embed_"+v,r.width,r.height,"9.0.0",false,{id:"video_embed_"+v},{wmode:"transparent",allowscriptaccess:"always",allowfullscreen:"true"});b(this).remove()})});b.data(this.get(0),
"captureThumbClicks",true);return this}};b.fn.photoViewer=function(h,a){var l=Flavors.Logger.getLogger("$.fn.photoViewer()");if(this.length<1)l("no element passed in to photoViewer");else{var n={};a&&b.extend(n,a);var g=this.find(h);if(g.length<1)return b(this);var e=function(r,v,D){l("_centerVertApply()");D=D||1;var O=b(v).height();if(!(O<1))if(!(D>10)){var L=b(r).find("img").height();if(L<1){O=function(){b(r).find("img").each(function(){e(r,v,++D)})};D==1?b(r).find("img").load(O):setTimeout(O,500)}else{l("containerH="+
O+" ... imgH="+L);O>L&&b(r).css({"padding-top":Math.ceil((O-L)/2)+"px",display:"block"});b(g).find("DIV.large-image").hover(function(){b(this).find(".prev, .next").fadeIn()},function(){b(this).find(".prev, .next").fadeOut()}).end()}}},k=function(r,v){l("centerVertically()");(r&&v?function(){e(r,v)}:function(){b("DIV.large-image").each(function(){e(b(this).find(".big-photo"),this)})})()};b(g).find("DIV.large-image .next").live("click",function(r){r.preventDefault();b(this).trigger("move-next")}).end().find("DIV.large-image .prev").live("click",
function(r){r.preventDefault();b(this).trigger("move-prev")}).end();b.data(this.get(0),"captureThumbClicks",true);this.bind("thumbnail-click",function(r,v){l("clickThumbnail()");r.preventDefault();var D=b(v).find("a:first"),O=b(v).find("img:first"),L=b(v).find("span.img-pending:first");b(g).find("img").fadeOut(250,function(){b(g).find("DIV.large-image").each(function(){b(this).find("a").remove();if(O.length>=1)var E=b.A({href:b(D).attr("href"),"class":"thumbnail",target:"_blank"},b.IMG({src:b(O).attr("data-larger-src")}));
else if(L.length>=1)E=b.A({href:b(L).attr("data-href"),"class":"thumbnail",target:"_blank"},b.IMG({src:b(L).attr("data-larger-src")}));b(E).hide();b(this).append(E);b(v).is(":first-child")||b(this).append(b.A({href:"#","class":"prev"},"\u2190 Previous"));b(v).is(":last-child")||b(this).append(b.A({href:"#","class":"next"},"Next \u2192"));k(E,this);b(E).fadeIn()})})});b(this).find("DIV.large-image").each(function(){var r=b(this).find("a:first");k(r,this)});return this}};b.fn.scrollableGrid=function(h,
a){var l=Flavors.Logger.getLogger("$.fn.thumbScroller()");if(this.length<1)l("no element passed in to scrollableGrid");else{var n=b(this).get(0);l("GALLERY ELEMENT!!");var g={};a&&b.extend(g,a);var e=this.find(h);if(e.length<1)return b(this);b(e).find(".images-navigation").length<1&&b(e).append("<div class='images-navigation'><a href='#' class='prev'>\u2190 Previous</a><a href='#' class='next'>Next \u2192</a></div>");b(e).find("ul li:first").addClass("selected").end().find("ul li").click(function(k){if(b.data(n,
"captureThumbClicks")==true){k.preventDefault();b(e).find("ul li.selected").removeClass("selected");b(this).addClass("selected");b(n).trigger("thumbnail-click",this)}}).end().find(".next").click(function(k){k.preventDefault();b(this).closest(".thumbnails").find("ul").each(function(){var r=this.scrollTop+g.rowHeight*3-this.scrollTop%g.rowHeight;if(this.scrollHeight-r<g.rowHeight)b(this).closest(".section").find(".next").fadeOut();else if(this.scrollHeight-r<g.rowHeight*3){r=this.scrollHeight-g.rowHeight*
3-this.scrollHeight%g.rowHeight;b(this).closest(".section").find(".next").fadeOut()}else b(this).closest(".section").find(".next").fadeIn();r>0&&b(this).parents(".section").find(".prev").fadeIn();b(this).animate({scrollTop:r})});b(n).trigger("move-forward.image").trigger("move-forward.embed")}).end().find(".prev").click(function(k){k.preventDefault();b(e).closest(".thumbnails").find("ul").each(function(){var r=this.scrollTop-g.rowHeight*3-this.scrollTop%g.rowHeight;if(r<g.rowHeight){r=0;b(this).closest(".section").find(".prev").fadeOut()}else b(this).closest(".section").find(".prev").fadeIn();
this.scrollHeight-r>g.rowHeight&&b(this).closest(".section").find(".next").fadeIn();b(this).animate({scrollTop:r})});b(n).trigger("move-backward")});b(e).outerHeight()<g.rowHeight*3&&b(e).find(".next").css("display","none");this.bind("move-next",function(){b(e).find("ul li.selected").next().click()});this.bind("move-prev",function(){b(e).find("ul li.selected").prev().click()});return this}};b.fn.musicPlayer=function(h,a){var l=Flavors.Logger.getLogger("$.fn.musicPlayer()"),n={};a&&b.extend(n,a);var g=
{},e=null,k=false,r=function(){l("pauseIfPlaying()");e.mp3.pause();b("#"+e.id).removeClass("playing").addClass("paused").find(".track-name").removeClass("color_1").addClass("color_2").end().find(".arrow-right-1, .arrow-right-2").removeClass("color_1_border").addClass("color_2_border")},v=function(){return e&&e.mp3.playState==1&&!e.mp3.paused},D=function(){l("playActiveTrack()");l(e.mp3.playState);if(b("#"+e.id+" .progress-meter").is(":hidden")){b(".progress-meter:visible").hide();b("#"+e.id).find(".progress-meter").show()}if(e.mp3.playState==
0){H(0);e.mp3.play()}else{e.mp3.resume();b("#"+e.id).removeClass("paused")}b("#"+e.id).addClass("playing").find(".track-name").removeClass("color_2").addClass("color_1").end().find(".arrow-right-1, .arrow-right-2").removeClass("color_2_border").addClass("color_1_border")},O=function(P){l("loadTrack() ... trackNum="+P);if(P in tracks){var N=soundManager.createSound({id:P,whileplaying:x,whileloading:B,url:tracks[P].src,onfinish:L});l("track loading....");g[P]={id:P,mp3:N,playProgress:0,loadProgressElement:b("#"+
P+" .load-progress"),durationEst:N.durationEstimate}}},L=function(){var P=false;for(track_id in tracks){if(P){if(b("#"+track_id).parents("DIV").hasClass("panel-box-medium")){P=b("#"+track_id).parent().parent().offset().top;b("#"+track_id).parent().parent()[0].scrollTo(parseInt(b("#"+track_id).offset().top-P-20))}b("#"+track_id).parents("DIV").hasClass("panel-box-large")&&b("#"+track_id).parent().cycle("next");b("#"+track_id).click();break}if(track_id==this.sID){r();P=true}}},E=function(P){b("#"+P).addClass("active").find(".track-info").removeClass("color_2").end().find(".play-progress").slider("enable");
e=g[P]},s=function(P){b("#"+P).removeClass("active").find(".track-info").addClass("color_2").end().find(".play-progress").slider("disable")},f=function(P,N){return(N/P*100).toFixed(1)},A=function(P,N){return N/100*P},H=function(P){l("seekTo() newPosPct="+P);e.playProgress=P;var N=Math.max(e.mp3.durationEstimate,e.mp3.duration);l("duration="+N);e.mp3.setPosition(A(N,P))},B=function(){b(g[this.sID].loadProgressElement).width(f(this.bytesTotal,this.bytesLoaded)+"%")},x=function(){if(k){if(b("#"+this.sID).parents("DIV").hasClass("panel-box-medium")){position=
b("#"+this.sID).parent().parent().data("jScrollPanePosition");b("#"+this.sID).parent().parent()[0].scrollTo(position)}}else{var P=g[this.sID],N=Math.max(this.durationEstimate,this.duration);N=f(N,this.position);if(N-P.playProgress>0.5||N>99){P.playProgress=N;b("#"+this.sID+" .play-progress").slider("option","value",N)}}};b(this).find(h).live("click",function(){l("clickTrack() ... "+this.id);var P=b(this).attr("id"),N=e?e.mp3.sID:null;if(v()){r();if(P==N)return}if(!(P in g)){O(P);b(this).find(".play-progress").slider({animate:true,
change:function(sa,ka){H(ka.value)},start:function(){k=true},stop:function(){k=false},slide:function(){if(b("#"+e.id).parents("DIV").hasClass("panel-box-medium")){position=b("#"+e.id).parent().parent().data("jScrollPanePosition");b("#"+e.id).parent().parent()[0].scrollTo(position)}}}).end().find(".ui-slider-handle").addClass("background_2");var ea=b(this).find(".ui-slider-handle");if(b(ea).css("background-color")=="transparent"||b(ea).css("background-color")=="rgba(0, 0, 0, 0)")b(ea).removeClass("background_2").addClass("background_1")}if(P!=
N){e&&s(N);E(P)}D()}).append("<div class='progress-meter'><div class='load-progress color_1_background'></div><div class='play-progress color_1_border'></div></div><div class='playback-status'><div class='arrow-right'><div class='arrow-right-1 color_2_border'></div><div class='arrow-right-2 color_2_border'></div></div></div>");b(this).data("hasAudio",true);return this};b.fn.clusters=function(h,a){var l={minClusterSize:2};a&&b.extend(l,a);var n=[],g=null;this.each(function(){b(this).children().each(function(){if(b(this).is(h)){g||
(g=[]);g.push(this)}else if(g&&g.length>0){n.push(g);g=null}})});g&&n.push(g);if(l.minClusterSize>1)n=b.grep(n,function(e){return e.length>=l.minClusterSize});return b(n)};b.fn.clickToEmbed=function(h){Flavors.Logger.getLogger("$.fn.clickToEmbed()");var a={};h&&b.extend(a,h);b(this).find("img").live("click",function(){b(this).parent().parent().find(".play").hide();swfobject.embedSWF(b(this).attr("data-embed-url")+"&autoplay=1",b(this).attr("id"),"100%","100%","8",null,null,{wmode:"opaque",allowFullScreen:true,
allowScriptAccess:"always"})});b(this).find(".play").live("click",function(){swfobject.embedSWF(b(this).parent().find("img:first").attr("data-embed-url")+"&autoplay=1",b(this).parent().find("img:first").attr("id"),"100%","100%","8",null,null,{wmode:"opaque",allowFullScreen:true,allowScriptAccess:"always"});b(this).hide()});b(this).data("hasClickEmbed",true);return this};b.fn.clickToSwitchEmbed=function(){var h=Flavors.Logger.getLogger("$.fn.clickToSwitchEmbed()");b(this).live("click",function(a){h("switchEmbed()");
a.preventDefault();a=b(this).attr("service");var l=b(this).attr("section-type");swfobject.embedSWF(b(this).attr("data-embed-url"),a+"-large-"+l,"100%","100%","8",null,null,{wmode:"opaque",allowFullScreen:true,allowScriptAccess:"always"})});return this}})(jQuery);
(function(b){function d(s){b.fn.cycle.debug&&h(s)}function h(){window.console&&window.console.log&&window.console.log("[cycle] "+Array.prototype.join.call(arguments," "))}function a(s,f,A){function H(x,P,N){if(!x&&P===true){x=b(N).data("cycle.opts");if(!x){h("options not found, can not resume");return false}if(N.cycleTimeout){clearTimeout(N.cycleTimeout);N.cycleTimeout=0}v(x.elements,x,1,1)}}if(s.cycleStop==undefined)s.cycleStop=0;if(f===undefined||f===null)f={};if(f.constructor==String){switch(f){case "destroy":case "stop":A=
b(s).data("cycle.opts");if(!A)return false;s.cycleStop++;s.cycleTimeout&&clearTimeout(s.cycleTimeout);s.cycleTimeout=0;b(s).removeData("cycle.opts");f=="destroy"&&n(A);return false;case "toggle":s.cyclePause=s.cyclePause===1?0:1;H(s.cyclePause,A,s);return false;case "pause":s.cyclePause=1;return false;case "resume":s.cyclePause=0;H(false,A,s);return false;case "prev":case "next":A=b(s).data("cycle.opts");if(!A){h('options not found, "prev/next" ignored');return false}b.fn.cycle[f](A);return false;
default:f={fx:f}}return f}else if(f.constructor==Number){var B=f;f=b(s).data("cycle.opts");if(!f){h("options not found, can not advance slide");return false}if(B<0||B>=f.elements.length){h("invalid slide index: "+B);return false}f.nextSlide=B;if(s.cycleTimeout){clearTimeout(s.cycleTimeout);s.cycleTimeout=0}if(typeof A=="string")f.oneTimeFx=A;v(f.elements,f,1,B>=f.currSlide);return false}return f}function l(s,f){if(!b.support.opacity&&f.cleartype&&s.style.filter)try{s.style.removeAttribute("filter")}catch(A){}}
function n(s){s.next&&b(s.next).unbind(s.prevNextEvent);s.prev&&b(s.prev).unbind(s.prevNextEvent);if(s.pager||s.pagerAnchorBuilder)b.each(s.pagerAnchors||[],function(){this.unbind().remove()});s.pagerAnchors=null;s.destroy&&s.destroy(s)}function g(s,f,A,H,B){var x=b.extend({},b.fn.cycle.defaults,H||{},b.metadata?s.metadata():b.meta?s.data():{});if(x.autostop)x.countdown=x.autostopCount||A.length;var P=s[0];s.data("cycle.opts",x);x.$cont=s;x.stopCount=P.cycleStop;x.elements=A;x.before=x.before?[x.before]:
[];x.after=x.after?[x.after]:[];x.after.unshift(function(){x.busy=0});!b.support.opacity&&x.cleartype&&x.after.push(function(){l(this,x)});x.continuous&&x.after.push(function(){v(A,x,0,!x.rev)});e(x);!b.support.opacity&&x.cleartype&&!x.cleartypeNoBg&&E(f);s.css("position")=="static"&&s.css("position","relative");x.width&&s.width(x.width);x.height&&x.height!="auto"&&s.height(x.height);if(x.startingSlide)x.startingSlide=parseInt(x.startingSlide);if(x.random){x.randomMap=[];for(P=0;P<A.length;P++)x.randomMap.push(P);
x.randomMap.sort(function(){return Math.random()-0.5});x.randomIndex=1;x.startingSlide=x.randomMap[1]}else if(x.startingSlide>=A.length)x.startingSlide=0;x.currSlide=x.startingSlide||0;var N=x.startingSlide;f.css({position:"absolute",top:0,left:0}).hide().each(function(na){na=N?na>=N?A.length-(na-N):N-na:A.length-na;b(this).css("z-index",na)});b(A[N]).css("opacity",1).show();l(A[N],x);x.fit&&x.width&&f.width(x.width);x.fit&&x.height&&x.height!="auto"&&f.height(x.height);if(x.containerResize&&!s.innerHeight()){for(var ea=
P=0,sa=0;sa<A.length;sa++){var ka=b(A[sa]),ga=ka[0],X=ka.outerWidth(),la=ka.outerHeight();X||(X=ga.offsetWidth||ga.width||ka.attr("width"));la||(la=ga.offsetHeight||ga.height||ka.attr("height"));P=X>P?X:P;ea=la>ea?la:ea}P>0&&ea>0&&s.css({width:P+"px",height:ea+"px"})}x.pause&&s.hover(function(){this.cyclePause++},function(){this.cyclePause--});if(k(x)===false)return false;var ta=false;H.requeueAttempts=H.requeueAttempts||0;f.each(function(){var na=b(this);this.cycleH=x.fit&&x.height?x.height:na.height()||
this.offsetHeight||this.height||na.attr("height")||0;this.cycleW=x.fit&&x.width?x.width:na.width()||this.offsetWidth||this.width||na.attr("width")||0;if(na.is("img")){na=b.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete;var oa=b.browser.opera&&(this.cycleW==42&&this.cycleH==19||this.cycleW==37&&this.cycleH==17)&&!this.complete,ya=this.cycleH==0&&this.cycleW==0&&!this.complete;if(b.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete||na||oa||ya)if(B.s&&x.requeueOnImageNotLoaded&&
++H.requeueAttempts<100){h(H.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){b(B.s,B.c).cycle(H)},x.requeueTimeout);ta=true;return false}else h("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}return true});if(ta)return false;x.cssBefore=x.cssBefore||{};x.animIn=x.animIn||{};x.animOut=x.animOut||{};f.not(":eq("+N+")").css(x.cssBefore);x.cssFirst&&b(f[N]).css(x.cssFirst);if(x.timeout){x.timeout=parseInt(x.timeout);
if(x.speed.constructor==String)x.speed=b.fx.speeds[x.speed]||parseInt(x.speed);x.sync||(x.speed/=2);for(P=x.fx=="shuffle"?500:250;x.timeout-x.speed<P;)x.timeout+=x.speed}if(x.easing)x.easeIn=x.easeOut=x.easing;if(!x.speedIn)x.speedIn=x.speed;if(!x.speedOut)x.speedOut=x.speed;x.slideCount=A.length;x.currSlide=x.lastSlide=N;if(x.random){if(++x.randomIndex==A.length)x.randomIndex=0;x.nextSlide=x.randomMap[x.randomIndex]}else x.nextSlide=x.startingSlide>=A.length-1?0:x.startingSlide+1;if(!x.multiFx){P=
b.fn.cycle.transitions[x.fx];if(b.isFunction(P))P(s,f,x);else if(x.fx!="custom"&&!x.multiFx){h("unknown transition: "+x.fx,"; slideshow terminating");return false}}s=f[N];x.before.length&&x.before[0].apply(s,[s,s,x,true]);x.after.length>1&&x.after[1].apply(s,[s,s,x,true]);x.next&&b(x.next).bind(x.prevNextEvent,function(){return O(x,x.rev?-1:1)});x.prev&&b(x.prev).bind(x.prevNextEvent,function(){return O(x,x.rev?1:-1)});if(x.pager||x.pagerAnchorBuilder)L(A,x);r(x,A);return x}function e(s){s.original=
{before:[],after:[]};s.original.cssBefore=b.extend({},s.cssBefore);s.original.cssAfter=b.extend({},s.cssAfter);s.original.animIn=b.extend({},s.animIn);s.original.animOut=b.extend({},s.animOut);b.each(s.before,function(){s.original.before.push(this)});b.each(s.after,function(){s.original.after.push(this)})}function k(s){var f,A,H=b.fn.cycle.transitions;if(s.fx.indexOf(",")>0){s.multiFx=true;s.fxs=s.fx.replace(/\s*/g,"").split(",");for(f=0;f<s.fxs.length;f++){var B=s.fxs[f];A=H[B];if(!A||!H.hasOwnProperty(B)||
!b.isFunction(A)){h("discarding unknown transition: ",B);s.fxs.splice(f,1);f--}}if(!s.fxs.length){h("No valid transitions named; slideshow terminating.");return false}}else if(s.fx=="all"){s.multiFx=true;s.fxs=[];for(p in H){A=H[p];H.hasOwnProperty(p)&&b.isFunction(A)&&s.fxs.push(p)}}if(s.multiFx&&s.randomizeEffects){A=Math.floor(Math.random()*20)+30;for(f=0;f<A;f++){H=Math.floor(Math.random()*s.fxs.length);s.fxs.push(s.fxs.splice(H,1)[0])}d("randomized fx sequence: ",s.fxs)}return true}function r(s,
f){s.addSlide=function(A,H){A=b(A);var B=A[0];s.autostopCount||s.countdown++;f[H?"unshift":"push"](B);if(s.els)s.els[H?"unshift":"push"](B);s.slideCount=f.length;A.css("position","absolute");A[H?"prependTo":"appendTo"](s.$cont);if(H){s.currSlide++;s.nextSlide++}!b.support.opacity&&s.cleartype&&!s.cleartypeNoBg&&E(A);s.fit&&s.width&&A.width(s.width);s.fit&&s.height&&s.height!="auto"&&$slides.height(s.height);B.cycleH=s.fit&&s.height?s.height:A.height();B.cycleW=s.fit&&s.width?s.width:A.width();A.css(s.cssBefore);
if(s.pager||s.pagerAnchorBuilder)b.fn.cycle.createPagerAnchor(f.length-1,B,b(s.pager),f,s);b.isFunction(s.onAddSlide)?s.onAddSlide(A):A.hide()}}function v(s,f,A,H){if(A&&f.busy&&f.manualTrump){d("manualTrump in go(), stopping active transition");b(s).stop(true,true);f.busy=false}if(f.busy)d("transition active, ignoring new tx request");else{var B=f.$cont[0],x=s[f.currSlide],P=s[f.nextSlide];if(!(B.cycleStop!=f.stopCount||B.cycleTimeout===0&&!A))if(!A&&!B.cyclePause&&(f.autostop&&--f.countdown<=0||
f.nowrap&&!f.random&&f.nextSlide<f.currSlide))f.end&&f.end(f);else{var N=false;if((A||!B.cyclePause)&&f.nextSlide!=f.currSlide){N=true;var ea=f.fx;x.cycleH=x.cycleH||b(x).height();x.cycleW=x.cycleW||b(x).width();P.cycleH=P.cycleH||b(P).height();P.cycleW=P.cycleW||b(P).width();if(f.multiFx){if(f.lastFx==undefined||++f.lastFx>=f.fxs.length)f.lastFx=0;ea=f.fxs[f.lastFx];f.currFx=ea}if(f.oneTimeFx){ea=f.oneTimeFx;f.oneTimeFx=null}b.fn.cycle.resetState(f,ea);f.before.length&&b.each(f.before,function(sa,
ka){B.cycleStop==f.stopCount&&ka.apply(P,[x,P,f,H])});ea=function(){b.each(f.after,function(sa,ka){B.cycleStop==f.stopCount&&ka.apply(P,[x,P,f,H])})};d("tx firing; currSlide: "+f.currSlide+"; nextSlide: "+f.nextSlide);f.busy=1;if(f.fxFn)f.fxFn(x,P,f,ea,H,A&&f.fastOnEvent);else b.isFunction(b.fn.cycle[f.fx])?b.fn.cycle[f.fx](x,P,f,ea,H,A&&f.fastOnEvent):b.fn.cycle.custom(x,P,f,ea,H,A&&f.fastOnEvent)}if(N||f.nextSlide==f.currSlide){f.lastSlide=f.currSlide;if(f.random){f.currSlide=f.nextSlide;if(++f.randomIndex==
s.length)f.randomIndex=0;f.nextSlide=f.randomMap[f.randomIndex];if(f.nextSlide==f.currSlide)f.nextSlide=f.currSlide==f.slideCount-1?0:f.currSlide+1}else{A=f.nextSlide+1==s.length;f.nextSlide=A?0:f.nextSlide+1;f.currSlide=A?s.length-1:f.nextSlide-1}}N&&f.pager&&f.updateActivePagerLink(f.pager,f.currSlide,f.activePagerClass);N=0;if(f.timeout&&!f.continuous)N=D(x,P,f,H);else if(f.continuous&&B.cyclePause)N=10;if(N>0)B.cycleTimeout=setTimeout(function(){v(s,f,0,!f.rev)},N)}}}function D(s,f,A,H){if(A.timeoutFn){for(s=
A.timeoutFn(s,f,A,H);s-A.speed<250;)s+=A.speed;d("calculated timeout: "+s+"; speed: "+A.speed);if(s!==false)return s}return A.timeout}function O(s,f){var A=s.elements,H=s.$cont[0],B=H.cycleTimeout;if(B){clearTimeout(B);H.cycleTimeout=0}if(s.random&&f<0){s.randomIndex--;if(--s.randomIndex==-2)s.randomIndex=A.length-2;else if(s.randomIndex==-1)s.randomIndex=A.length-1;s.nextSlide=s.randomMap[s.randomIndex]}else if(s.random)s.nextSlide=s.randomMap[s.randomIndex];else{s.nextSlide=s.currSlide+f;if(s.nextSlide<
0){if(s.nowrap)return false;s.nextSlide=A.length-1}else if(s.nextSlide>=A.length){if(s.nowrap)return false;s.nextSlide=0}}H=s.onPrevNextEvent||s.prevNextClick;b.isFunction(H)&&H(f>0,s.nextSlide,A[s.nextSlide]);v(A,s,1,f>=0);return false}function L(s,f){var A=b(f.pager);b.each(s,function(H,B){b.fn.cycle.createPagerAnchor(H,B,A,s,f)});f.updateActivePagerLink(f.pager,f.startingSlide,f.activePagerClass)}function E(s){function f(H){H=parseInt(H).toString(16);return H.length<2?"0"+H:H}function A(H){for(;H&&
H.nodeName.toLowerCase()!="html";H=H.parentNode){var B=b.css(H,"background-color");if(B.indexOf("rgb")>=0){H=B.match(/\d+/g);return"#"+f(H[0])+f(H[1])+f(H[2])}if(B&&B!="transparent")return B}return"#ffffff"}d("applying clearType background-color hack");s.each(function(){b(this).css("background-color",A(this))})}if(b.support==undefined)b.support={opacity:!b.browser.msie};b.fn.cycle=function(s,f){var A={s:this.selector,c:this.context};if(this.length===0&&s!="stop"){if(!b.isReady&&A.s){h("DOM not ready, queuing slideshow");
b(function(){b(A.s,A.c).cycle(s,f)});return this}h("terminating; zero elements found by selector"+(b.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var H=a(this,s,f);if(H!==false){H.updateActivePagerLink=H.updateActivePagerLink||b.fn.cycle.updateActivePagerLink;this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cycleTimeout=this.cyclePause=0;var B=b(this),x=H.slideExpr?b(H.slideExpr,this):B.children(),P=x.get();if(P.length<2)h("terminating; too few slides: "+P.length);
else{var N=g(B,x,P,H,A);if(N!==false)if(H=N.continuous?10:D(N.currSlide,N.nextSlide,N,!N.rev)){H+=N.delay||0;if(H<10)H=10;d("first timeout: "+H);this.cycleTimeout=setTimeout(function(){v(P,N,0,!N.rev)},H)}}}})};b.fn.cycle.resetState=function(s,f){f=f||s.fx;s.before=[];s.after=[];s.cssBefore=b.extend({},s.original.cssBefore);s.cssAfter=b.extend({},s.original.cssAfter);s.animIn=b.extend({},s.original.animIn);s.animOut=b.extend({},s.original.animOut);s.fxFn=null;b.each(s.original.before,function(){s.before.push(this)});
b.each(s.original.after,function(){s.after.push(this)});f=b.fn.cycle.transitions[f];b.isFunction(f)&&f(s.$cont,b(s.elements),s)};b.fn.cycle.updateActivePagerLink=function(s,f,A){b(s).each(function(){b(this).children().removeClass(A).eq(f).addClass(A)})};b.fn.cycle.next=function(s){O(s,s.rev?-1:1)};b.fn.cycle.prev=function(s){O(s,s.rev?1:-1)};b.fn.cycle.createPagerAnchor=function(s,f,A,H,B){if(b.isFunction(B.pagerAnchorBuilder)){f=B.pagerAnchorBuilder(s,f);d("pagerAnchorBuilder("+s+", el) returned: "+
f)}else f='<a href="#">'+(s+1)+"</a>";if(f){var x=b(f);if(x.parents("body").length===0){var P=[];if(A.length>1){A.each(function(){var N=x.clone(true);b(this).append(N);P.push(N[0])});x=b(P)}else x.appendTo(A)}B.pagerAnchors=B.pagerAnchors||[];B.pagerAnchors.push(x);x.bind(B.pagerEvent,function(N){N.preventDefault();B.nextSlide=s;N=B.$cont[0];var ea=N.cycleTimeout;if(ea){clearTimeout(ea);N.cycleTimeout=0}N=B.onPagerEvent||B.pagerClick;b.isFunction(N)&&N(B.nextSlide,H[B.nextSlide]);v(H,B,1,B.currSlide<
s)});!/^click/.test(B.pagerEvent)&&!B.allowPagerClickBubble&&x.bind("click.cycle",function(){return false});B.pauseOnPagerHover&&x.hover(function(){B.$cont[0].cyclePause++},function(){B.$cont[0].cyclePause--})}};b.fn.cycle.hopsFromLast=function(s,f){var A=s.lastSlide,H=s.currSlide;return f?H>A?H-A:s.slideCount-A:H<A?A-H:A+s.slideCount-H};b.fn.cycle.commonReset=function(s,f,A,H,B,x){b(A.elements).not(s).hide();A.cssBefore.opacity=1;A.cssBefore.display="block";if(H!==false&&f.cycleW>0)A.cssBefore.width=
f.cycleW;if(B!==false&&f.cycleH>0)A.cssBefore.height=f.cycleH;A.cssAfter=A.cssAfter||{};A.cssAfter.display="none";b(s).css("zIndex",A.slideCount+(x===true?1:0));b(f).css("zIndex",A.slideCount+(x===true?0:1))};b.fn.cycle.custom=function(s,f,A,H,B,x){var P=b(s),N=b(f),ea=A.speedIn;s=A.speedOut;var sa=A.easeIn;f=A.easeOut;N.css(A.cssBefore);if(x){ea=typeof x=="number"?(s=x):(s=1);sa=f=null}var ka=function(){N.animate(A.animIn,ea,sa,H)};P.animate(A.animOut,s,f,function(){A.cssAfter&&P.css(A.cssAfter);
A.sync||ka()});A.sync&&ka()};b.fn.cycle.transitions={fade:function(s,f,A){f.not(":eq("+A.currSlide+")").css("opacity",0);A.before.push(function(H,B,x){b.fn.cycle.commonReset(H,B,x);x.cssBefore.opacity=0});A.animIn={opacity:1};A.animOut={opacity:0};A.cssBefore={top:0,left:0}}};b.fn.cycle.transitions.scrollUp=function(s,f,A){s.css("overflow","hidden");A.before.push(b.fn.cycle.commonReset);s=s.height();A.cssBefore={top:s,left:0};A.cssFirst={top:0};A.animIn={top:0};A.animOut={top:-s}};b.fn.cycle.transitions.scrollDown=
function(s,f,A){s.css("overflow","hidden");A.before.push(b.fn.cycle.commonReset);s=s.height();A.cssFirst={top:0};A.cssBefore={top:-s,left:0};A.animIn={top:0};A.animOut={top:s}};b.fn.cycle.transitions.scrollLeft=function(s,f,A){s.css("overflow","hidden");A.before.push(b.fn.cycle.commonReset);s=s.width();A.cssFirst={left:0};A.cssBefore={left:s,top:0};A.animIn={left:0};A.animOut={left:0-s}};b.fn.cycle.transitions.scrollRight=function(s,f,A){s.css("overflow","hidden");A.before.push(b.fn.cycle.commonReset);
s=s.width();A.cssFirst={left:0};A.cssBefore={left:-s,top:0};A.animIn={left:0};A.animOut={left:s}};b.fn.cycle.transitions.scrollHorz=function(s,f,A){s.css("overflow","hidden").width();A.before.push(function(H,B,x,P){b.fn.cycle.commonReset(H,B,x);x.cssBefore.left=P?B.cycleW-1:1-B.cycleW;x.animOut.left=P?-H.cycleW:H.cycleW});A.cssFirst={left:0};A.cssBefore={top:0};A.animIn={left:0};A.animOut={top:0}};b.fn.cycle.transitions.scrollVert=function(s,f,A){s.css("overflow","hidden");A.before.push(function(H,
B,x,P){b.fn.cycle.commonReset(H,B,x);x.cssBefore.top=P?B.cycleH-1:1-B.cycleH;x.animOut.top=P?-H.cycleH:H.cycleH});A.cssFirst={top:0};A.cssBefore={left:0};A.animIn={top:0};A.animOut={left:0}};b.fn.cycle.ver=function(){return"2.86"};b.fn.cycle.defaults={fx:"fade",timeout:4E3,timeoutFn:null,continuous:0,speed:1E3,speedIn:null,speedOut:null,next:null,prev:null,onPrevNextEvent:null,prevNextEvent:"click.cycle",pager:null,onPagerEvent:null,pagerEvent:"click.cycle",allowPagerClickBubble:false,pagerAnchorBuilder:null,
before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!b.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250,activePagerClass:"activeSlide",updateActivePagerLink:null}})(jQuery);
(function(b){b.jScrollPane={active:[]};b.fn.jScrollPane=function(d){d=b.extend({},b.fn.jScrollPane.defaults,d);var h=function(){return false};return this.each(function(){var a=b(this),l=this,n=0,g,e,k,r=d.topCapHeight,v;if(b(this).parent().is(".jScrollPaneContainer")){v=b(this).parent();n=d.maintainPosition?a.position().top:0;var D=b(this).parent();g=D.innerWidth();e=D.outerHeight();b(">.jScrollPaneTrack, >.jScrollArrowUp, >.jScrollArrowDown, >.jScrollCap",D).remove();a.css({top:0})}else{a.data("originalStyleTag",
a.attr("style"));a.css("overflow","hidden");this.originalPadding=a.css("paddingTop")+" "+a.css("paddingRight")+" "+a.css("paddingBottom")+" "+a.css("paddingLeft");this.originalSidePaddingTotal=(parseInt(a.css("paddingLeft"))||0)+(parseInt(a.css("paddingRight"))||0);g=a.innerWidth();e=a.innerHeight();v=b("<div></div>").attr({className:"jScrollPaneContainer"}).css({height:e+"px",width:g+"px"});d.enableKeyboardNavigation&&v.attr("tabindex",d.tabIndex);a.wrap(v);v=a.parent();b(document).bind("emchange",
function(){a.jScrollPane(d)})}k=e;if(d.reinitialiseOnImageLoad){var O=b.data(l,"jScrollPaneImagesToLoad")||b("img",a),L=[];O.length&&O.each(function(S,ha){b(this).bind("load readystatechange",function(){if(b.inArray(S,L)==-1){L.push(ha);O=b.grep(O,function(Ja){return Ja!=ha});b.data(l,"jScrollPaneImagesToLoad",O);var ua=b.extend(d,{reinitialiseOnImageLoad:false});a.jScrollPane(ua)}}).each(function(){if(this.complete||this.complete===undefined)this.src=this.src})})}D={height:"auto",width:g-d.scrollbarWidth-
d.scrollbarMargin-this.originalSidePaddingTotal+"px"};if(d.scrollbarOnLeft)D.paddingLeft=d.scrollbarMargin+d.scrollbarWidth+"px";else D.paddingRight=d.scrollbarMargin+"px";a.css(D);var E=a.outerHeight(),s=e/E;D=s<0.99;v[D?"addClass":"removeClass"]("jScrollPaneScrollable");if(D){v.append(b("<div></div>").addClass("jScrollCap jScrollCapTop").css({height:d.topCapHeight}),b("<div></div>").attr({className:"jScrollPaneTrack"}).css({width:d.scrollbarWidth+"px"}).append(b("<div></div>").attr({className:"jScrollPaneDrag"}).css({width:d.scrollbarWidth+
"px"}).append(b("<div></div>").attr({className:"jScrollPaneDragTop"}).css({width:d.scrollbarWidth+"px"}),b("<div></div>").attr({className:"jScrollPaneDragBottom"}).css({width:d.scrollbarWidth+"px"}))),b("<div></div>").addClass("jScrollCap jScrollCapBottom").css({height:d.bottomCapHeight}));g=b(">.jScrollPaneTrack",v);var f=b(">.jScrollPaneTrack .jScrollPaneDrag",v),A,H=[],B,x=function(){if(B>4||B%4==0)Aa(oa+A*na);B++};d.enableKeyboardNavigation&&v.bind("keydown.jscrollpane",function(S){switch(S.keyCode){case 38:A=
-1;B=0;x();H[H.length]=setInterval(x,100);return false;case 40:A=1;B=0;x();H[H.length]=setInterval(x,100);return false;case 33:case 34:return false;default:}}).bind("keyup.jscrollpane",function(S){if(S.keyCode==38||S.keyCode==40){for(S=0;S<H.length;S++)clearInterval(H[S]);return false}});if(d.showArrows){var P,N,ea=function(){b("html").unbind("mouseup",ea);P.removeClass("jScrollActiveArrowButton");clearInterval(N)},sa=function(){b("html").bind("mouseup",ea);P.addClass("jScrollActiveArrowButton");
B=0;x();N=setInterval(x,100)};v.append(b("<a></a>").attr({href:"javascript:;",className:"jScrollArrowUp account-sprites sprite-stats_arrow_up",tabindex:-1}).css({width:d.scrollbarWidth+"px",top:d.topCapHeight+"px"}).html("Scroll up").bind("mousedown",function(){P=b(this);A=-1;sa();this.blur();return false}).bind("click",h),b("<a></a>").attr({href:"javascript:;",className:"jScrollArrowDown account-sprites sprite-stats_arrow_down",tabindex:-1}).css({width:d.scrollbarWidth+"px",bottom:d.bottomCapHeight+
"px"}).html("Scroll down").bind("mousedown",function(){P=b(this);A=1;sa();this.blur();return false}).bind("click",h));var ka=b(">.jScrollArrowUp",v),ga=b(">.jScrollArrowDown",v)}if(d.arrowSize){k=e-d.arrowSize-d.arrowSize;r+=d.arrowSize}else if(ka){D=ka.height();d.arrowSize=D;k=e-D-ga.height();r+=D}k-=d.topCapHeight+d.bottomCapHeight;g.css({height:k+"px",top:r+"px"});var X=b(this).css({position:"absolute",overflow:"visible"}),la,ta,na,oa=0,ya=s*e/2,wa=function(S,ha){var ua=ha=="X"?"Left":"Top";return S["page"+
ha]||S["client"+ha]+(document.documentElement["scroll"+ua]||document.body["scroll"+ua])||0},za=function(){return false},va=function(){W();la=f.offset(false);la.top-=oa;ta=k-f[0].offsetHeight;na=2*d.wheelSpeed*ta/E},Ka=function(){b("html").unbind("mouseup",Ka).unbind("mousemove",Ba);ya=s*e/2;b.browser.msie&&b("html").unbind("dragstart",za).unbind("selectstart",za)},Aa=function(S){v.scrollTop(0);oa=S=S<0?0:S>ta?ta:S;f.css({top:S+"px"});var ha=S/ta;a.data("jScrollPanePosition",(e-E)*-ha);X.css({top:(e-
E)*ha+"px"});a.trigger("scroll");if(d.showArrows){ka[S==0?"addClass":"removeClass"]("disabled");ga[S==ta?"addClass":"removeClass"]("disabled")}},Ba=function(S){Aa(wa(S,"Y")-la.top-ya)};r=Math.max(Math.min(s*(e-d.arrowSize*2),d.dragMaxHeight),d.dragMinHeight);f.css({height:r+"px"}).bind("mousedown",function(S){va();ya=wa(S,"Y")-oa-la.top;b("html").bind("mouseup",Ka).bind("mousemove",Ba);b.browser.msie&&b("html").bind("dragstart",za).bind("selectstart",za);return false});var Ga,xa,La,Oa=function(){if(xa>
8||xa%4==0)Aa(oa-(oa-La)/2);xa++},Y=function(){clearInterval(Ga);b("html").unbind("mouseup",Y).unbind("mousemove",C)},C=function(S){La=wa(S,"Y")-la.top-ya};g.bind("mousedown",function(S){va();C(S);xa=0;b("html").bind("mouseup",Y).bind("mousemove",C);Ga=setInterval(Oa,100);Oa();return false});v.bind("mousewheel",function(S,ha){ha=ha||(S.wheelDelta?S.wheelDelta/120:S.detail?-S.detail/3:0);va();W();S=oa;Aa(oa-ha*na);return S==oa});var I,T,V=function(){var S=(I-oa)/d.animateStep;if(S>1||S<-1)Aa(oa+S);
else{Aa(I);W()}},W=function(){if(T){clearInterval(T);delete I}},ca=function(S,ha){if(typeof S=="string"){try{$e=b(S,a)}catch(ua){return}if(!$e.length)return;S=$e.offset().top-a.offset().top}W();var Ja=E-e;S=S>Ja?Ja:S;a.data("jScrollPaneMaxScroll",Ja);S=S/Ja*ta;if(ha||!d.animateTo)Aa(S);else{v.scrollTop(0);I=S;T=setInterval(V,d.animateInterval)}};a[0].scrollTo=ca;a[0].scrollBy=function(S){var ha=-parseInt(X.css("top"))||0;ca(ha+S)};va();ca(-n,true);b("*",this).bind("focus",function(){for(var S=b(this),
ha=0;S[0]!=a[0];){ha+=S.position().top;S=S.offsetParent()}S=-parseInt(X.css("top"))||0;var ua=S+e;if(!(ha>S&&ha<ua)){ua=ha-d.scrollbarMargin;if(ha>S)ua+=b(this).height()+15+d.scrollbarMargin-e;ca(ua)}});if(d.observeHash){if(location.hash&&location.hash.length>1)setTimeout(function(){ca(location.hash)},b.browser.safari?100:0);b(document).bind("click",function(S){$target=b(S.target);if($target.is("a")){var ha=$target.attr("href");if(ha&&ha.substr(0,1)=="#"&&ha.length>1)setTimeout(function(){ca(ha,!d.animateToInternalLinks)},
b.browser.safari?100:0)}})}var da,ma,ra=function(){direction=da<0?-1:1;a[0].scrollBy(da/2)},Ha=function(){if(ma){clearInterval(ma);ma=undefined}},Ia=function(S){var ha=a.parent().offset().top,ua=ha+e;S=wa(S,"Y");da=S<ha?S-ha:S>ua?S-ua:0;if(da==0)Ha();else ma||(ma=setInterval(ra,100))},Ca=function(){b(document).unbind("mousemove.jScrollPaneDragging").unbind("mouseup.jScrollPaneDragging");Ha()};v.bind("mousedown.jScrollPane",function(){b(document).bind("mousemove.jScrollPaneDragging",Ia);b(document).bind("mouseup.jScrollPaneDragging",
Ca)});b.jScrollPane.active.push(a[0])}else{a.css({height:e+"px",width:g-this.originalSidePaddingTotal+"px",padding:this.originalPadding});a[0].scrollTo=a[0].scrollBy=function(){};a.parent().unbind("mousewheel").unbind("mousedown.jScrollPane").unbind("keydown.jscrollpane").unbind("keyup.jscrollpane")}})};b.fn.jScrollPaneRemove=function(){b(this).each(function(){$this=b(this);var d=$this.parent();if(d.is(".jScrollPaneContainer")){$this.css({top:"",height:"",width:"",padding:"",overflow:"",position:""});
$this.attr("style",$this.data("originalStyleTag"));d.after($this).remove()}})};b.fn.jScrollPane.defaults={scrollbarWidth:10,scrollbarMargin:5,wheelSpeed:18,showArrows:false,arrowSize:0,animateTo:false,dragMinHeight:1,dragMaxHeight:99999,animateInterval:100,animateStep:3,maintainPosition:true,scrollbarOnLeft:false,reinitialiseOnImageLoad:false,tabIndex:0,enableKeyboardNavigation:true,animateToInternalLinks:false,topCapHeight:0,bottomCapHeight:0,observeHash:true};b(window).bind("unload",function(){for(var d=
b.jScrollPane.active,h=0;h<d.length;h++)d[h].scrollTo=d[h].scrollBy=null})})(jQuery);
(function(b){b.event.special.mousewheel={setup:function(){var d=b.event.special.mousewheel.handler;b.browser.mozilla&&b(this).bind("mousemove.mousewheel",function(h){b.data(this,"mwcursorposdata",{pageX:h.pageX,pageY:h.pageY,clientX:h.clientX,clientY:h.clientY})});if(this.addEventListener)this.addEventListener(b.browser.mozilla?"DOMMouseScroll":"mousewheel",d,false);else this.onmousewheel=d},teardown:function(){var d=b.event.special.mousewheel.handler;b(this).unbind("mousemove.mousewheel");if(this.removeEventListener)this.removeEventListener(b.browser.mozilla?
"DOMMouseScroll":"mousewheel",d,false);else this.onmousewheel=function(){};b.removeData(this,"mwcursorposdata")},handler:function(d){var h=Array.prototype.slice.call(arguments,1);d=b.event.fix(d||window.event);b.extend(d,b.data(this,"mwcursorposdata")||{});var a=0;if(d.wheelDelta)a=d.wheelDelta/120;if(d.detail)a=-d.detail/3;d.data=d.data||{};d.type="mousewheel";h.unshift(a);h.unshift(d);return b.event.handle.apply(this,h)}};b.fn.extend({mousewheel:function(d){return d?this.bind("mousewheel",d):this.trigger("mousewheel")},
unmousewheel:function(d){return this.unbind("mousewheel",d)}})})(jQuery);
$(document).ready(function(){typeof Flavors.Layout=="undefined"&&console.error("Fatal error!! Flavors.Layout not defined.");typeof Flavors.TemplateGroup=="undefined"&&getTemplateMode()!="mixed"&&console.error("Fatal error!! Flavors.TemplateGroup not defined.");Flavors.Layout.init();$.each(["Background","Fonts"],function(){Flavors.Page[this].init()});getTemplateMode()!="mixed"&&Flavors.TemplateGroup.init();getTemplateMode()=="mixed"&&$.each(["Default","Small","Medium","Large"],function(){typeof Flavors["TemplateGroup"+
this]!="undefined"&&Flavors["TemplateGroup"+this].init()});window.layout_name!="grid"&&$("#profile_name h1").css("cursor","pointer").live("click",function(b){b.preventDefault();if(Flavors.Layout)try{Flavors.Layout.closeAllServices()}catch(d){}});$("#profile_description a").live("click",function(b){b.preventDefault();window.open($(this).attr("href"))})});
getTemplateMode=function(){if(typeof templateMode=="undefined"||templateMode=="single")return"single";if(typeof templateMode!="undefined"&&templateMode=="mixed")return"mixed";console.error('Unknown template mode;  it should only be undefined/"single"/"mixed"')};Flavors.Panel=function(b){return this===window?Flavors.Panel._factory(b):Flavors.Panel._factory(b,this)};
Flavors.Panel._factory=function(b,d){d=d||new Flavors.Panel;d.service=accounts[b];d.serviceAnchor=b;d.element=$("#service_"+b).length>0?$("#service_"+b):$("#"+b).closest(".panel-box");return d};Flavors.Panel.prototype={__name__:"Flavors.Panel",prepare:function(){Flavors.TemplateGroup.preparePanel(this)}};
$(document).ready(function(){(function(){$("#admin").click(function(d){d.stopPropagation()});$("#admin a.close, #lightbox-overlay").click(function(d){d.stopPropagation();$("#admin, #lightbox-overlay").fadeOut();return false});$("#admin_link").click(function(){$("#admin, #lightbox-overlay").fadeIn();return false});$("#admin_form_submit").click(function(){$("#admin_form").submit();return false});var b="/"+USERNAME+"/admin_update_status";$("#admin_form").ajaxForm({url:b,dataType:"json",success:function(d){if(d&&
d.success){$("#admin .messaging .message").text("User status updated.");setTimeout(function(){$("#admin_form").removeErrors();$("#admin .messaging").fadeOut();$("#admin .messaging .message").text("")},3E3)}else{d&&d.errors?$("#admin_form").displayErrors(d):$("#admin_form").displayErrors({errors:{premium:["An unknown error has occured. Please try again later."]}});$("#admin .messaging").fadeOut();$("#admin .messaging .message").text("")}},beforeSubmit:function(){$("#admin .messaging .message").text("Updating account...");
$("#admin .messaging").fadeIn()}});$("#admin_login_form_submit").click(function(){$("#admin_login_form").submit();return false})})();(function(){var b=Flavors.Global.namespace("Flavors.Page.ContactForm"),d=Flavors.Logger.getLogger(b.__name__);$("#contact").click(function(h){d("#contact clicked");h.stopPropagation()});$("#contact a.close, #lightbox-overlay").click(function(h){d("close link or overlay clicked");h.stopPropagation();h.preventDefault();$("#contact, #lightbox-overlay").fadeOut()});$("#contact_link").click(function(h){d("#contact_link clicked");
h.preventDefault();$("#admin, #lightbox-overlay").fadeOut();$("#contact, #lightbox-overlay").fadeIn()});$("#contact_form_submit").click(function(h){d("#contact_form_submit clicked");h.preventDefault();$("#contact_form").submit()});if(DOMAIN.length==0||window.location.href.indexOf(DOMAIN)==-1)b="/"+USERNAME+"/send_contact_email_b";else{b=window.location.href;if(b.indexOf("?")>-1)b=b.slice(0,b.indexOf("?"));b=b.replace(new RegExp(/#.*$/),"").replace(new RegExp(/\/$/),"")+"/"+USERNAME+"/send_contact_email_b"}d("contact_form_url: "+
b);$("#contact_form").ajaxForm({url:b,dataType:"json",success:function(h){d("came back");if(h&&h.success){d("SUCCESS!");$("#contact .messaging .message").text("Your message has been sent!");setTimeout(function(){$("#contact_form").removeErrors();$("#contact_form").clearForm();$("#contact .messaging").fadeOut();$("#contact .messaging .message").text("")},3E3)}else{d("FAILURE!");h&&h.errors?$("#contact_form").displayErrors(h):$("#contact_form").displayErrors({errors:{name:["An unknown error has occured. Please try again later."]}});
$("#contact .messaging").fadeOut();$("#contact .messaging .message").text("")}},beforeSubmit:function(){d("before submit");$("#contact .messaging .message").text("Sending message...");$("#contact .messaging").fadeIn()}})})()});
(function(){var b=Flavors.Global.namespace("Flavors.Page.Background"),d=Flavors.Logger.getLogger(b.__name__);b.init=function(){if($.browser.mozilla)$("#background img").attr("src",$("#background img").attr("src")).load(function(){window.setTimeout(function(){Flavors.Page.Background.reset()},0);$(window).bind("resize",function(){Flavors.Page.Background.reset()})});else{window.setTimeout(function(){Flavors.Page.Background.reset()},0);$(window).bind("resize",function(){Flavors.Page.Background.reset()})}};
b.reset=function(h){d("reset()");h=++h||1;var a=$("#background img").width(),l=$("#background img").height();if(!a||a<1||!l||l<1)if(h<50){d("BACKGROUND IMAGE HAS NO WIDTH AND/OR HEIGHT. WILL TRY AGAIN.");window.setTimeout(function(){b.reset(h)},250)}else d("BACKGROUND IMAGE HAS NO WIDTH AND/OR HEIGHT.  GIVING UP!");else{d("bg dimensions..."+a+"x"+l);var n=a/l;a=l/a;$("#background").hide();l=$(window).width();var g=$(window).height();$("#background").show();$("#background").css({width:l+"px",height:g+
"px"});l/g>=n?$("#background img").css({width:l+"px",height:Math.ceil(a*l)+"px",left:"0px",top:Math.abs(a*l-g)/-2+"px"}):$("#background img").css({width:Math.ceil(n*g)+"px",height:g+"px",top:"0px",left:Math.abs(n*g-l)/-2+"px"})}}})();
(function(){var b=Flavors.Global.namespace("Flavors.Page.Fonts"),d=Flavors.Logger.getLogger(b.__name__);b.header_settings={align:"left",color:window.header_font_color,size:window.header_font_size,text:window.display_name,header_font:window.header_font};b.init=function(){$("#profile_description").css("line-height",b.computeLineHeight("description",window.description_font_size));$("#profile_navigation").css("line-height",b.computeLineHeight("service_link",window.service_link_font_size));$("#profile_name").css({height:"auto",
visibility:"visible"})};$.fn.applyFont=function(a,l){if(!Array.indexOf)Array.prototype.indexOf=function(g){for(var e=0;e<this.length;e++)if(this[e]==g)return e;return-1};if(["Arial","Arial_Bold","Arial_Bold_Italic","Arial_Italic","Courier New","Courier New_Bold","Georgia","Georgia_Bold","Georgia_Bold_Italic","Georgia_Italic","Lucida Grande","Lucida Grande_Bold","Tahoma","Tahoma_Bold","Times New Roman","Times New Roman_Bold","Times New Roman_Bold_Italic","Times New Roman_Italic","Trebuchet MS","Trebuchet MS_Bold",
"Trebuchet MS_Bold_Italic","Trebuchet MS_Italic","Verdana","Verdana_Bold","Verdana_Bold_Italic","Verdana_Italic"].indexOf(a)>-1){if(a.indexOf("_Bold")>-1){a=a.replace("_Bold","");$(this).css("font-weight","bold")}else $(this).css("font-weight","normal");if(a.indexOf("_Italic")>-1){a=a.replace("_Italic","");$(this).css("font-style","italic")}else $(this).css("font-style","normal");$(this).css("font-family",a);typeof l=="function"&&l.call()}else{var n=b.cssHref(a);if($("link[href$="+n+"]").length){$(this).css({"font-family":a,
"font-weight":"normal","font-style":"normal"});typeof l=="function"&&l.call()}else b.loadFont(a,this,l)}};b.cssHref=function(a){return"/fonts/"+a+".css"};b.loadFont=function(a,l,n){var g=b.cssHref(a);$.ajax({url:g,success:function(){$.browser.msie?document.createStyleSheet(g):$("<link>").appendTo("head").attr({rel:"stylesheet",type:"text/css",id:a,href:g});var e=125;if($.browser.opera)e=1E3;setTimeout(function(){$(l).applyFont(a,n)},e)}})};b.updateHeader=function(a){d("updateHeader()");if(a){for(var l in a)b.header_settings[l]=
a[l];if("header_font"in a)header_font=a.header_font;if("size"in a)header_font_size=a.size;else{l=Flavors.LayoutSettings[window.layout_name].fontSize;if("header"in l){var n=0;if(window.header_font in l.header)n=l.header["default"][window.header_font];else if("_fallback_"in l.header["default"])n=l.header["default"]._fallback_}}"align"in a&&$("#name_custom_font").attr("align",a.align);if("color"in a)header_font_color=a.color;"max-width"in a&&$("#name_custom_font").css("max-width",a["max-width"]);"text"in
a&&$("#profile_name h1").html(h(a.text));if($.browser.msie&&$.browser.version=="7.0")if(window.layout_name=="widescreen"||window.layout_name=="simple")$("#profile_name h1").css("padding","0 0 20px 0");else if(window.layout_name=="accordion")$("#profile_name h1").css("padding","0 0 10px 0");else window.layout_name=="grid"&&$("#profile_name h1").css("padding","20px 0")}$("#profile_name h1").applyFont(window.header_font,function(){$("#profile_name h1").css({visibility:"visible",zoom:"1","font-size":window.header_font_size+
"px",color:"#"+window.header_font_color})})};b.computeLineHeight=function(a,l){a=Flavors.LayoutSettings[window.layout_name].lineHeight[a];if(l in a)return a[l]+"px";else{var n=null;for(var g in a)if(g>l){n=g;break}return n?a[n]+"px":"inherit"}};var h=function(a){d("_prepareHeaderText() ... txt="+a);var l=Flavors.LayoutSettings[window.layout_name];d("layout_settings['header_wrap']="+l.header_wrap);return"header_wrap"in l?$("<div>"+a+"</div>").wrapInner(l.header_wrap).html():a};b.setDescriptionText=
function(a){a=a||"";$(Flavors.Layout.selectors.description).html("<p>"+a+"</p>")};b.setContactDescriptionText=function(a){a=a||"";$("#contact .user_info").html("<p>"+a+"</p>")};b.changeHeaderFontSizeTo=function(a){d("changeHeaderFontSizeBy() ... changeTo="+a);window.header_font_size=a;b.updateHeader({size:window.header_font_size})};b.changeHeaderFontSizeBy=function(a){d("changeHeaderFontSizeBy() ... changeBy="+a);b.changeHeaderFontSizeTo(window.header_font_size+a)};b.changeServiceLinkSizeTo=function(a){window.service_link_font_size=
a;$(Flavors.Layout.selectors.service_link).css({"font-size":window.service_link_font_size+"px","line-height":b.computeLineHeight("service_link",window.service_link_font_size)})};b.changeServiceLinkSizeBy=function(a){b.changeServiceLinkSizeTo(window.service_link_font_size+a)};b.changeDescriptionSizeTo=function(a){window.description_font_size=a;$(Flavors.Layout.selectors.description).css({"font-size":window.description_font_size+"px","line-height":b.computeLineHeight("description",window.description_font_size)})};
b.changeDescriptionSizeBy=function(a){b.changeDescriptionSizeTo(window.description_font_size+a)}})();Flavors.LayoutSettings={};
Flavors.LayoutSettings.widescreen={fontSize:{header:{"default":{Honeydukes:160,SketchLight:160,Thunderhouse:200,Tireshop:180,_fallback_:150},max:300,min:30},service_link:{"default":12,max:14,min:10},description:{"default":24,max:32,min:12}},lineHeight:{service_link:{10:18,12:20,14:22},description:{12:18,14:20,16:22,18:24,20:26,22:28,24:32,26:34,28:36,30:38,32:40}},videoDimensions:{width:740,height:500},photoGallery:{thumbsPerRow:8,thumbRowCount:3},chunkyGallery:{thumbsPerRow:5,thumbRowCount:3}};
Flavors.LayoutSettings.simple={fontSize:{header:{"default":{ChunkFive:90,Dogjaw:130,GothamBlack:90,GothamLight:90,SentinelBlack:90,SentinelSemiBoldItalic:90,SketchBold:90,Thunderhouse:140,Tireshop:110,_fallback_:100},max:300,min:30},service_link:{"default":18,max:32,min:12},description:{"default":24,max:32,min:12}},lineHeight:{service_link:{12:20,14:22,16:26,18:30,20:32,22:36,24:38,26:40,28:44,30:46,32:50},description:{12:18,14:20,16:22,18:24,20:26,22:28,24:32,26:34,28:36,30:38,32:40}},photoGallery:{thumbsPerRow:5,
thumbRowCount:3},chunkyGallery:{thumbsPerRow:3,thumbRowCount:3},header_wrap:"<a href='Javascript:void(Flavors.Layout.Simple.hideAllPanels())' />"};
Flavors.LayoutSettings.accordion={fontSize:{header:{"default":{ChunkFive:90,Dogjaw:130,GothamBlack:90,GothamLight:90,SentinelBlack:90,SentinelSemiBoldItalic:90,SketchBold:90,Thunderhouse:140,Tireshop:110,_fallback_:100},max:300,min:30},service_link:{"default":24,max:32,min:12},description:{"default":18,max:32,min:12}},lineHeight:{service_link:{12:18,14:20,16:22,18:24,20:26,22:28,24:32,26:34,28:36,30:38,32:40},description:{12:18,14:20,16:22,18:24,20:26,22:28,24:32,26:34,28:36,30:38,32:40}},photoGallery:{thumbsPerRow:5,
thumbRowCount:3},chunkyGallery:{thumbsPerRow:3,thumbRowCount:3},header_wrap:"<a href='javascript:void(Flavors.Layout.Accordion.hideAllPanels())' />"};
Flavors.LayoutSettings.featured={fontSize:{header:{"default":{ChunkFive:30,Dogjaw:30,GothamBlack:30,GothamLight:30,SentinelBlack:30,SentinelSemiBoldItalic:30,SketchBold:30,Thunderhouse:30,Tireshop:30,_fallback_:30},max:300,min:14},service_link:{"default":24,max:32,min:12},description:{"default":18,max:32,min:12}},lineHeight:{service_link:{12:18,14:20,16:22,18:24,20:26,22:28,24:32,26:34,28:36,30:38,32:40},description:{12:18,14:20,16:22,18:24,20:26,22:28,24:32,26:34,28:36,30:38,32:40}},photoGallery:{thumbsPerRow:5,
thumbRowCount:3},chunkyGallery:{thumbsPerRow:3,thumbRowCount:3},header_wrap:"<a href='javascript:void(Flavors.Layout.Featured.hideAllPanels())' />"};
Flavors.LayoutSettings.grid={fontSize:{header:{"default":{ChunkFive:30,Dogjaw:30,GothamBlack:30,GothamLight:30,SentinelBlack:30,SentinelSemiBoldItalic:30,SketchBold:30,Thunderhouse:30,Tireshop:30,_fallback_:30},max:300,min:14},service_link:{"default":24,max:32,min:12},description:{"default":18,max:32,min:12}},lineHeight:{service_link:{12:18,14:20,16:22,18:24,20:26,22:28,24:32,26:34,28:36,30:38,32:40},description:{12:18,14:20,16:22,18:24,20:26,22:28,24:32,26:34,28:36,30:38,32:40}},photoGallery:{thumbsPerRow:5,
thumbRowCount:3},chunkyGallery:{thumbsPerRow:3,thumbRowCount:3}};var soundManager=null;
function SoundManager(b,d){this.flashVersion=8;this.debugMode=true;this.debugFlash=false;this.useConsole=true;this.waitForWindowLoad=this.consoleOnly=false;this.nullURL="null.mp3";this.allowPolling=true;this.useMovieStar=this.useFastPolling=false;this.bgColor="#ffffff";this.useHighPerformance=false;this.flashLoadTimeout=1E3;this.wmode=null;this.allowFullScreen=true;this.allowScriptAccess="always";this.defaultOptions={autoLoad:false,stream:true,autoPlay:false,onid3:null,onload:null,whileloading:null,
onplay:null,onpause:null,onresume:null,whileplaying:null,onstop:null,onfinish:null,onbeforefinish:null,onbeforefinishtime:5E3,onbeforefinishcomplete:null,onjustbeforefinish:null,onjustbeforefinishtime:200,multiShot:true,multiShotEvents:false,position:null,pan:0,volume:100};this.flash9Options={isMovieStar:null,usePeakData:false,useWaveformData:false,useEQData:false,onbufferchange:null,ondataerror:null};this.movieStarOptions={onmetadata:null,useVideo:false,bufferTime:null};var h=null,a=this;this.version=
null;this.versionNumber="V2.95b.20100101";this.altURL=this.url=this.movieURL=null;this.enabled=this.swfLoaded=false;this.o=null;this.id=d||"sm2movie";this.oMC=null;this.sounds={};this.soundIDs=[];this.isFullScreen=this.muted=false;this.isIE=navigator.userAgent.match(/MSIE/i);this.isSafari=navigator.userAgent.match(/safari/i);this.debugID="soundmanager-debug";this.debugURLParam=/([#?&])debug=1/i;this.specialWmodeCase=false;this._onready=[];this._debugOpen=true;this._windowLoaded=this._disabled=this._didInit=
this._appendSuccess=this._didAppend=false;this._hasConsole=typeof console!="undefined"&&typeof console.log!="undefined";this._debugLevels=["log","info","warn","error"];this._defaultFlashVersion=8;this._oRemovedHTML=this._oRemoved=null;var l=function(g){return document.getElementById(g)};this.filePatterns={flash8:/\.mp3(\?.*)?$/i,flash9:/\.mp3(\?.*)?$/i};this.netStreamTypes=["aac","flv","mov","mp4","m4v","f4v","m4a","mp4v","3gp","3g2"];this.netStreamPattern=new RegExp("\\.("+this.netStreamTypes.join("|")+
")(\\?.*)?$","i");this.filePattern=null;this.features={buffering:false,peakData:false,waveformData:false,eqData:false,movieStar:false};this.sandbox={type:null,types:{remote:"remote (domain-based) rules",localWithFile:"local with file access (no internet access)",localWithNetwork:"local with network (internet access only, no local access)",localTrusted:"local, trusted (local+internet access)"},description:null,noRemote:null,noLocal:null};this._setVersionInfo=function(){if(a.flashVersion!=8&&a.flashVersion!=
9){alert(a._str("badFV",a.flashVersion,a._defaultFlashVersion));a.flashVersion=a._defaultFlashVersion}a.version=a.versionNumber+(a.flashVersion==9?" (AS3/Flash 9)":" (AS2/Flash 8)");if(a.flashVersion>8){a.defaultOptions=a._mergeObjects(a.defaultOptions,a.flash9Options);a.features.buffering=true}if(a.flashVersion>8&&a.useMovieStar){a.defaultOptions=a._mergeObjects(a.defaultOptions,a.movieStarOptions);a.filePatterns.flash9=new RegExp("\\.(mp3|"+a.netStreamTypes.join("|")+")(\\?.*)?$","i");a.features.movieStar=
true}else{a.useMovieStar=false;a.features.movieStar=false}a.filePattern=a.filePatterns[a.flashVersion!=8?"flash9":"flash8"];a.movieURL=a.flashVersion==8?"soundmanager2.swf":"soundmanager2_flash9.swf";a.features.peakData=a.features.waveformData=a.features.eqData=a.flashVersion>8};this._overHTTP=document.location?document.location.protocol.match(/http/i):null;this._initPending=this._waitingforEI=false;this._tryInitOnFocus=this.isSafari&&typeof document.hasFocus=="undefined";this._isFocused=typeof document.hasFocus!=
"undefined"?document.hasFocus():null;this._okToDisable=!this._tryInitOnFocus;this.useAltURL=!this._overHTTP;this.strings={notReady:"Not loaded yet - wait for soundManager.onload() before calling sound-related methods",appXHTML:"soundManager_createMovie(): appendChild/innerHTML set failed. May be app/xhtml+xml DOM-related.",swf404:"soundManager: Verify that %s is a valid path.",tryDebug:"Try soundManager.debugFlash = true for more security details (output goes to SWF.)",checkSWF:"See SWF output for more debug info.",
localFail:"soundManager: Non-HTTP page ("+document.location.protocol+" URL?) Review Flash player security settings for this special case:\nhttp://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html\nMay need to add/allow path, eg. c:/sm2/ or /users/me/sm2/",waitFocus:"soundManager: Special case: Waiting for focus-related event..",waitImpatient:"soundManager: Getting impatient, still waiting for Flash%s...",waitForever:"soundManager: Waiting indefinitely for Flash...",
needFunction:"soundManager.onready(): Function object expected",badID:'Warning: Sound ID "%s" should be a string, starting with a non-numeric character',fl9Vid:"flash 9 required for video. Exiting.",noMS:"MovieStar mode not enabled. Exiting.",spcWmode:"soundManager._createMovie(): Removing wmode, preventing win32 below-the-fold SWF loading issue",currentObj:"--- soundManager._debug(): Current sound objects ---",waitEI:"soundManager._initMovie(): Waiting for ExternalInterface call from Flash..",waitOnload:"soundManager: Waiting for window.onload()",
docLoaded:"soundManager: Document already loaded",onload:"soundManager.initComplete(): calling soundManager.onload()",onloadOK:"soundManager.onload() complete",init:"-- soundManager.init() --",didInit:"soundManager.init(): Already called?",flashJS:"soundManager: Attempting to call Flash from JS..",noPolling:"soundManager: Polling (whileloading()/whileplaying() support) is disabled.",secNote:"Flash security note: Network/internet URLs will not load due to security restrictions. Access can be configured via Flash Player Global Security Settings Page: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html",
badRemove:"Warning: Failed to remove flash movie.",peakWave:"Warning: peak/waveform/eqData features unsupported for non-MP3 formats",shutdown:"soundManager.disable(): Shutting down",queue:"soundManager.onready(): Queueing handler",smFail:"soundManager: Failed to initialise.",smError:"SMSound.load(): Exception: JS-Flash communication failed, or JS error.",manURL:"SMSound.load(): Using manually-assigned URL",onURL:"soundManager.load(): current URL already assigned.",badFV:'soundManager.flashVersion must be 8 or 9. "%s" is invalid. Reverting to %s.'};
this._str=function(){var g=Array.prototype.slice.call(arguments),e=g.shift();if((e=a.strings&&a.strings[e]?a.strings[e]:"")&&g&&g.length)for(var k=0,r=g.length;k<r;k++)e=e.replace("%s",g[k]);return e};this.supported=function(){return a._didInit&&!a._disabled};this.getMovie=function(g){return a.isIE?window[g]:a.isSafari?l(g)||document[g]:l(g)};this.loadFromXML=function(g){try{a.o._loadFromXML(g)}catch(e){a._failSafely();return true}};this.createSound=function(g){if(!a._didInit)throw a._complain("soundManager.createSound(): "+
a._str("notReady"),arguments.callee.caller);if(arguments.length==2)g={id:arguments[0],url:arguments[1]};var e=a._mergeObjects(g);e.id.toString().charAt(0).match(/^[0-9]$/)&&a._wD("soundManager.createSound(): "+a._str("badID",e.id),2);a._wD("soundManager.createSound(): "+e.id+" ("+e.url+")",1);if(a._idCheck(e.id,true)){a._wD("soundManager.createSound(): "+e.id+" exists",1);return a.sounds[e.id]}if(a.flashVersion>8&&a.useMovieStar){if(e.isMovieStar===null)e.isMovieStar=e.url.match(a.netStreamPattern)?
true:false;e.isMovieStar&&a._wD("soundManager.createSound(): using MovieStar handling");if(e.isMovieStar&&(e.usePeakData||e.useWaveformData||e.useEQData)){a._wDS("peakWave");e.usePeakData=false;e.useWaveformData=false;e.useEQData=false}}a.sounds[e.id]=new h(e);a.soundIDs[a.soundIDs.length]=e.id;a.flashVersion==8?a.o._createSound(e.id,e.onjustbeforefinishtime):a.o._createSound(e.id,e.url,e.onjustbeforefinishtime,e.usePeakData,e.useWaveformData,e.useEQData,e.isMovieStar,e.isMovieStar?e.useVideo:false,
e.isMovieStar?e.bufferTime:false);if(e.autoLoad||e.autoPlay)a.sounds[e.id]&&a.sounds[e.id].load(e);e.autoPlay&&a.sounds[e.id].play();return a.sounds[e.id]};this.createVideo=function(g){if(arguments.length==2)g={id:arguments[0],url:arguments[1]};if(a.flashVersion>=9){g.isMovieStar=true;g.useVideo=true}else{a._wD("soundManager.createVideo(): "+a._str("f9Vid"),2);return false}a.useMovieStar||a._wD("soundManager.createVideo(): "+a._str("noMS"),2);return a.createSound(g)};this.destroyVideo=this.destroySound=
function(g,e){if(!a._idCheck(g))return false;for(var k=0;k<a.soundIDs.length;k++)a.soundIDs[k]==g&&a.soundIDs.splice(k,1);a.sounds[g].unload();e||a.sounds[g].destruct();delete a.sounds[g]};this.load=function(g,e){if(!a._idCheck(g))return false;a.sounds[g].load(e)};this.unload=function(g){if(!a._idCheck(g))return false;a.sounds[g].unload()};this.start=this.play=function(g,e){if(!a._didInit)throw a._complain("soundManager.play(): "+a._str("notReady"),arguments.callee.caller);if(!a._idCheck(g)){if(typeof e!=
"Object")e={url:e};if(e&&e.url){a._wD('soundManager.play(): attempting to create "'+g+'"',1);e.id=g;a.createSound(e)}else return false}a.sounds[g].play(e)};this.setPosition=function(g,e){if(!a._idCheck(g))return false;a.sounds[g].setPosition(e)};this.stop=function(g){if(!a._idCheck(g))return false;a._wD("soundManager.stop("+g+")",1);a.sounds[g].stop()};this.stopAll=function(){a._wD("soundManager.stopAll()",1);for(var g in a.sounds)a.sounds[g]instanceof h&&a.sounds[g].stop()};this.pause=function(g){if(!a._idCheck(g))return false;
a.sounds[g].pause()};this.pauseAll=function(){for(var g=a.soundIDs.length;g--;)a.sounds[a.soundIDs[g]].pause()};this.resume=function(g){if(!a._idCheck(g))return false;a.sounds[g].resume()};this.resumeAll=function(){for(var g=a.soundIDs.length;g--;)a.sounds[a.soundIDs[g]].resume()};this.togglePause=function(g){if(!a._idCheck(g))return false;a.sounds[g].togglePause()};this.setPan=function(g,e){if(!a._idCheck(g))return false;a.sounds[g].setPan(e)};this.setVolume=function(g,e){if(!a._idCheck(g))return false;
a.sounds[g].setVolume(e)};this.mute=function(g){if(typeof g!="string")g=null;if(g){if(!a._idCheck(g))return false;a._wD('soundManager.mute(): Muting "'+g+'"');a.sounds[g].mute()}else{a._wD("soundManager.mute(): Muting all sounds");for(g=a.soundIDs.length;g--;)a.sounds[a.soundIDs[g]].mute();a.muted=true}};this.muteAll=function(){a.mute()};this.unmute=function(g){if(typeof g!="string")g=null;if(g){if(!a._idCheck(g))return false;a._wD('soundManager.unmute(): Unmuting "'+g+'"');a.sounds[g].unmute()}else{a._wD("soundManager.unmute(): Unmuting all sounds");
for(g=a.soundIDs.length;g--;)a.sounds[a.soundIDs[g]].unmute();a.muted=false}};this.unmuteAll=function(){a.unmute()};this.toggleMute=function(g){if(!a._idCheck(g))return false;a.sounds[g].toggleMute()};this.getMemoryUse=function(){if(a.flashVersion==8)return 0;if(a.o)return parseInt(a.o._getMemoryUse(),10)};this.disable=function(g){if(typeof g=="undefined")g=false;if(a._disabled)return false;a._disabled=true;a._wDS("shutdown",1);for(var e=a.soundIDs.length;e--;)a._disableObject(a.sounds[a.soundIDs[e]]);
a.initComplete(g)};this.canPlayURL=function(g){return g?g.match(a.filePattern)?true:false:null};this.getSoundById=function(g,e){if(!g)throw new Error("SoundManager.getSoundById(): sID is null/undefined");var k=a.sounds[g];!k&&!e&&a._wD('"'+g+'" is an invalid sound ID.',2);return k};this.onready=function(g,e){if(g&&g instanceof Function){a._didInit&&a._wDS("queue");e||(e=window);a._addOnReady(g,e);a._processOnReady();return true}else throw a._str("needFunction");};this.oninitmovie=function(){};this.onload=
function(){soundManager._wD("soundManager.onload()",1)};this.onerror=function(){};this._idCheck=this.getSoundById;this._complain=function(g,e){if(!e)return new Error("Error: "+g);var k=new Error(""),r=null;if(k.stack)try{r=k.stack.split("@")[4]}catch(v){r=k.stack}typeof console!="undefined"&&typeof console.trace!="undefined"&&console.trace();g="Error: "+g+". \nCaller: "+e.toString()+(k.stack?" \nTop of stacktrace: "+r:k.message?" \nMessage: "+k.message:"");return new Error(g)};var n=function(){return false};
n._protected=true;this._disableObject=function(g){for(var e in g)if(typeof g[e]=="function"&&typeof g[e]._protected=="undefined")g[e]=n};this._failSafely=function(g){if(typeof g=="undefined")g=false;if(!a._disabled||g){a._wDS("smFail",2);a.disable(g)}};this._normalizeMovieURL=function(g){var e=null;if(g)if(g.match(/\.swf(\?.*)?$/i)){if(e=g.substr(g.toLowerCase().lastIndexOf(".swf?")+4))return g}else if(g.lastIndexOf("/")!=g.length-1)g+="/";return(g&&g.lastIndexOf("/")!=-1?g.substr(0,g.lastIndexOf("/")+
1):"./")+a.movieURL};this._getDocument=function(){return document.body?document.body:document.documentElement?document.documentElement:document.getElementsByTagName("div")[0]};this._getDocument._protected=true;this._setPolling=function(g,e){if(!a.o||!a.allowPolling)return false;a.o._setPolling(g,e)};this._createMovie=function(g,e){var k=null;e=e?e:a.url;var r=a.altURL?a.altURL:e;if(a.debugURLParam.test(window.location.href.toString()))a.debugMode=true;if(a._didAppend&&a._appendSuccess)return false;
a._didAppend=true;a._setVersionInfo();a.url=a._normalizeMovieURL(a._overHTTP?e:r);e=a.url;if(a.useHighPerformance&&a.useMovieStar&&a.defaultOptions.useVideo===true){k="soundManager note: disabling highPerformance, not applicable with movieStar mode+useVideo";a.useHighPerformance=false}a.wmode=!a.wmode&&a.useHighPerformance&&!a.useMovieStar?"transparent":a.wmode;if(a.wmode!==null&&a.flashLoadTimeout!==0&&(!a.useHighPerformance||a.debugFlash)&&!a.isIE&&navigator.platform.match(/win32/i)){a.specialWmodeCase=
true;a._wDS("spcWmode");a.wmode=null}if(a.flashVersion==8)a.allowFullScreen=false;var v={name:g,id:g,src:e,width:"100%",height:"100%",quality:"high",allowScriptAccess:a.allowScriptAccess,bgcolor:a.bgColor,pluginspage:"http://www.macromedia.com/go/getflashplayer",type:"application/x-shockwave-flash",wmode:a.wmode,allowfullscreen:a.allowFullScreen?"true":"false"};if(a.debugFlash)v.FlashVars="debug=1";a.wmode||delete v.wmode;var D=r=null,O=null,L=null;if(a.isIE){r=document.createElement("div");O='<object id="'+
g+'" data="'+e+'" type="'+v.type+'" width="'+v.width+'" height="'+v.height+'"><param name="movie" value="'+e+'" /><param name="AllowScriptAccess" value="'+a.allowScriptAccess+'" /><param name="quality" value="'+v.quality+'" />'+(a.wmode?'<param name="wmode" value="'+a.wmode+'" /> ':"")+'<param name="bgcolor" value="'+a.bgColor+'" /><param name="allowFullScreen" value="'+v.allowFullScreen+'" />'+(a.debugFlash?'<param name="FlashVars" value="'+v.FlashVars+'" />':"")+"<!-- --\></object>"}else{r=document.createElement("embed");
for(D in v)v.hasOwnProperty(D)&&r.setAttribute(D,v[D])}L=g=null;if(a.debugMode){g=document.createElement("div");g.id=a.debugID+"-toggle";L={position:"fixed",bottom:"0px",right:"0px",width:"1.2em",height:"1.2em",lineHeight:"1.2em",margin:"2px",textAlign:"center",border:"1px solid #999",cursor:"pointer",background:"#fff",color:"#333",zIndex:10001};g.appendChild(document.createTextNode("-"));g.onclick=a._toggleDebug;g.title="Toggle SM2 debug console";if(navigator.userAgent.match(/msie 6/i)){g.style.position=
"absolute";g.style.cursor="hand"}for(D in L)if(L.hasOwnProperty(D))g.style[D]=L[D]}if(D=a._getDocument()){a.oMC=l("sm2-container")?l("sm2-container"):document.createElement("div");L=(a.debugMode?" sm2-debug":"")+(a.debugFlash?" flash-debug":"");if(a.oMC.id){if(a.debugMode||a.debugFlash)a.oMC.className+=L;a.oMC.appendChild(r);if(a.isIE){L=a.oMC.appendChild(document.createElement("div"));L.className="sm2-object-box";L.innerHTML=O}a._appendSuccess=true}else{a.oMC.id="sm2-container";a.oMC.className="movieContainer"+
L;L=v=null;v=a.useHighPerformance?{position:"fixed",width:"8px",height:"8px",bottom:"0px",left:"0px",overflow:"hidden"}:{position:"absolute",width:"8px",height:"8px",top:"-9999px",left:"-9999px"};var E=null;if(!a.debugFlash)for(E in v)if(v.hasOwnProperty(E))a.oMC.style[E]=v[E];try{a.isIE||a.oMC.appendChild(r);D.appendChild(a.oMC);if(a.isIE){L=a.oMC.appendChild(document.createElement("div"));L.className="sm2-object-box";L.innerHTML=O}a._appendSuccess=true}catch(s){throw new Error(a._str("appXHTML"));
}}if(a.debugMode&&!l(a.debugID)&&(!a._hasConsole||!a.useConsole||a.useConsole&&a._hasConsole&&!a.consoleOnly)){r=document.createElement("div");r.id=a.debugID;r.style.display=a.debugMode?"block":"none";if(a.debugMode&&!l(g.id)){try{D.appendChild(g)}catch(f){throw new Error(a._str("appXHTML"));}D.appendChild(r)}}}k&&a._wD(k);a._wD("-- SoundManager 2 "+a.version+(a.useMovieStar?", MovieStar mode":"")+(a.useHighPerformance?", high performance mode, ":", ")+((a.useFastPolling?"fast":"normal")+" polling")+
(a.wmode?", wmode: "+a.wmode:"")+(a.debugFlash?", flash debug mode":"")+" --",1);a._wD("soundManager._createMovie(): Trying to load "+e+(!a._overHTTP&&a.altURL?" (alternate URL)":""),1)};this._writeDebug=function(g,e,k){if(!a.debugMode)return false;if(typeof k!="undefined"&&k)g=g+" | "+(new Date).getTime();if(a._hasConsole&&a.useConsole){k=a._debugLevels[e];typeof console[k]!="undefined"?console[k](g):console.log(g);if(a.useConsoleOnly)return true}k=null;try{k=l("soundmanager-debug");if(!k)return false;
var r=document.createElement("div");if(++a._wdCount%2===0)r.className="sm2-alt";e=typeof e=="undefined"?0:parseInt(e,10);r.appendChild(document.createTextNode(g));if(e){if(e>=2)r.style.fontWeight="bold";if(e==3)r.style.color="#ff3333"}k.insertBefore(r,k.firstChild)}catch(v){}};this._writeDebug._protected=true;this._wdCount=0;this._wdCount._protected=true;this._wD=this._writeDebug;this._wDS=function(g,e){return g?a._wD(a._str(g),e):""};this._wDS._protected=true;this._wDAlert=function(g){alert(g)};
if(window.location.href.indexOf("debug=alert")+1&&a.debugMode)a._wD=a._wDAlert;this._toggleDebug=function(){var g=l(a.debugID),e=l(a.debugID+"-toggle");if(!g)return false;if(a._debugOpen){e.innerHTML="+";g.style.display="none"}else{e.innerHTML="-";g.style.display="block"}a._debugOpen=!a._debugOpen};this._toggleDebug._protected=true;this._debug=function(){a._wDS("currentObj",1);for(var g=0,e=a.soundIDs.length;g<e;g++)a.sounds[a.soundIDs[g]]._debug()};this._debugTS=function(g,e,k){if(typeof sm2Debugger!=
"undefined")try{sm2Debugger.handleEvent(g,e,k)}catch(r){}};this._debugTS._protected=true;this._mergeObjects=function(g,e){var k={};for(var r in g)if(g.hasOwnProperty(r))k[r]=g[r];g=typeof e=="undefined"?a.defaultOptions:e;for(var v in g)if(g.hasOwnProperty(v)&&typeof k[v]=="undefined")k[v]=g[v];return k};this.go=this.createMovie=function(g){if(g)a.url=g;a._initMovie()};this._initMovie=function(){if(a.o)return false;a.o=a.getMovie(a.id);if(!a.o){if(a.oRemoved){if(a.isIE)a.oMC.innerHTML=a.oRemovedHTML;
else a.oMC.appendChild(a.oRemoved);a.oRemoved=null;a._didAppend=true}else a._createMovie(a.id,a.url);a.o=a.getMovie(a.id)}a.o&&a.flashLoadTimeout>0&&a._wDS("waitEI");typeof a.oninitmovie=="function"&&setTimeout(a.oninitmovie,1)};this.waitForExternalInterface=function(){if(a._waitingForEI)return false;a._waitingForEI=true;if(a._tryInitOnFocus&&!a._isFocused){a._wDS("waitFocus");return false}if(a.flashLoadTimeout>0){if(!a._didInit){var g=a.getMoviePercent();a._wD(a._str("waitImpatient",g==100?" (SWF loaded)":
g>0?" (SWF "+g+"% loaded)":""))}setTimeout(function(){var e=a.getMoviePercent();if(!a._didInit){a._wD("soundManager: No Flash response within reasonable time after document load.\nLikely causes: "+(e===null||e===0?"Loading "+a.movieURL+" may have failed (and/or Flash "+a.flashVersion+"+ not present?), ":"")+"Flash blocked or JS-Flash security error."+(a.debugFlash?" "+a._str("checkSWF"):""),2);if(!a._overHTTP){a._wDS("localFail",2);a.debugFlash||a._wDS("tryDebug",2)}e===0&&a._wD(a._str("swf404",a.url));
a._debugTS("flashtojs",false,": Timed out"+a._overHTTP?" (Check flash security or flash blockers)":" (No plugin/missing SWF?)")}!a._didInit&&a._okToDisable&&a._failSafely(true)},a.flashLoadTimeout)}else a._didInit||a._wDS("waitForever")};this.getMoviePercent=function(){return a.o&&typeof a.o.PercentLoaded!="undefined"?a.o.PercentLoaded():null};this.handleFocus=function(){if(a._isFocused||!a._tryInitOnFocus)return true;a._okToDisable=true;a._isFocused=true;a._wD("soundManager.handleFocus()");a._tryInitOnFocus&&
window.removeEventListener("mousemove",a.handleFocus,false);a._waitingForEI=false;setTimeout(a.waitForExternalInterface,500);if(window.removeEventListener)window.removeEventListener("focus",a.handleFocus,false);else window.detachEvent&&window.detachEvent("onfocus",a.handleFocus)};this.initComplete=function(g){if(a._didInit)return false;a._didInit=true;a._wD("-- SoundManager 2 "+(a._disabled?"failed to load":"loaded")+" ("+(a._disabled?"security/load error":"OK")+") --",1);if(a._disabled||g){a._processOnReady();
a._debugTS("onload",false);a.onerror.apply(window);return false}else a._debugTS("onload",true);if(a.waitForWindowLoad&&!a._windowLoaded){a._wDS("waitOnload");if(window.addEventListener)window.addEventListener("load",a._initUserOnload,false);else window.attachEvent&&window.attachEvent("onload",a._initUserOnload);return false}else{a.waitForWindowLoad&&a._windowLoaded&&a._wDS("docLoaded");a._initUserOnload()}};this._addOnReady=function(g,e){a._onready.push({method:g,scope:e||null,fired:false})};this._processOnReady=
function(){if(!a._didInit)return false;for(var g={success:!a._disabled},e=[],k=0,r=a._onready.length;k<r;k++)a._onready[k].fired!==true&&e.push(a._onready[k]);if(e.length){a._wD("soundManager: Firing "+e.length+" onready() item"+(e.length>1?"s":""));k=0;for(r=e.length;k<r;k++){e[k].scope?e[k].method.apply(e[k].scope,[g]):e[k].method(g);e[k].fired=true}}};this._initUserOnload=function(){window.setTimeout(function(){a._processOnReady();a._wDS("onload",1);a.onload.apply(window);a._wDS("onloadOK",1)})};
this.init=function(){a._wDS("init");a._initMovie();if(a._didInit){a._wDS("didInit");return false}if(window.removeEventListener)window.removeEventListener("load",a.beginDelayedInit,false);else window.detachEvent&&window.detachEvent("onload",a.beginDelayedInit);try{a._wDS("flashJS");a.o._externalInterfaceTest(false);a.allowPolling?a._setPolling(true,a.useFastPolling?true:false):a._wDS("noPolling",1);a.debugMode||a.o._disableDebug();a.enabled=true;a._debugTS("jstoflash",true)}catch(g){a._wD("js/flash exception: "+
g.toString());a._debugTS("jstoflash",false);a._failSafely(true);a.initComplete();return false}a.initComplete()};this.beginDelayedInit=function(){a._windowLoaded=true;setTimeout(a.waitForExternalInterface,500);setTimeout(a.beginInit,20)};this.beginInit=function(){if(a._initPending)return false;a.createMovie();a._initMovie();return a._initPending=true};this.domContentLoaded=function(){document.removeEventListener&&document.removeEventListener("DOMContentLoaded",a.domContentLoaded,false);a.go()};this._externalInterfaceOK=
function(g){if(a.swfLoaded)return false;var e=(new Date).getTime();a._wD("soundManager._externalInterfaceOK()"+(g?" (~"+(e-g)+" ms)":""));a._debugTS("swf",true);a._debugTS("flashtojs",true);a.swfLoaded=true;a._tryInitOnFocus=false;a.isIE?setTimeout(a.init,100):a.init()};this._setSandboxType=function(g){var e=a.sandbox;e.type=g;e.description=e.types[typeof e.types[g]!="undefined"?g:"unknown"];a._wD("Flash security sandbox type: "+e.type);if(e.type=="localWithFile"){e.noRemote=true;e.noLocal=false;
a._wDS("secNote",2)}else if(e.type=="localWithNetwork"){e.noRemote=false;e.noLocal=true}else if(e.type=="localTrusted"){e.noRemote=false;e.noLocal=false}};this.reboot=function(){a._wD("soundManager.reboot()");a.soundIDs.length&&a._wD("Destroying "+a.soundIDs.length+" SMSound objects...");for(var g=a.soundIDs.length;g--;)a.sounds[a.soundIDs[g]].destruct();try{if(a.isIE)a.oRemovedHTML=a.o.innerHTML;a.oRemoved=a.o.parentNode.removeChild(a.o);a._wD("Flash movie removed.")}catch(e){a._wDS("badRemove",
2)}a.oRemovedHTML=null;a.oRemoved=null;a.enabled=false;a._didInit=false;a._waitingForEI=false;a._initPending=false;a._didAppend=false;a._appendSuccess=false;a._disabled=false;a._waitingforEI=true;a.swfLoaded=false;a.soundIDs={};a.sounds=[];a.o=null;for(g=a._onready.length;g--;)a._onready[g].fired=false;a._wD("soundManager: Rebooting...");window.setTimeout(soundManager.beginDelayedInit,20)};this.destruct=function(){a._wD("soundManager.destruct()");a.disable(true)};h=function(g){var e=this;this.sID=
g.id;this.url=g.url;this._iO=this.instanceOptions=this.options=a._mergeObjects(g);this.pan=this.options.pan;this.volume=this.options.volume;this._lastURL=null;this._debug=function(){if(a.debugMode){var k=null,r=[],v=null,D=null;for(k in e.options)if(e.options[k]!==null)if(e.options[k]instanceof Function){v=e.options[k].toString();v=v.replace(/\s\s+/g," ");D=v.indexOf("{");r[r.length]=" "+k+": {"+v.substr(D+1,Math.min(Math.max(v.indexOf("\n")-1,64),64)).replace(/\n/g,"")+"... }"}else r[r.length]=" "+
k+": "+e.options[k];a._wD("SMSound() merged options: {\n"+r.join(", \n")+"\n}")}};this._debug();this.id3={};this.resetProperties=function(){e.bytesLoaded=null;e.bytesTotal=null;e.position=null;e.duration=null;e.durationEstimate=null;e.loaded=false;e.playState=0;e.paused=false;e.readyState=0;e.muted=false;e.didBeforeFinish=false;e.didJustBeforeFinish=false;e.isBuffering=false;e.instanceOptions={};e.instanceCount=0;e.peakData={left:0,right:0};e.waveformData={left:[],right:[]};e.eqData=[];e.eqData.left=
[];e.eqData.right=[]};e.resetProperties();this.load=function(k){if(typeof k!="undefined"){e._iO=a._mergeObjects(k);e.instanceOptions=e._iO}else{k=e.options;e._iO=k;e.instanceOptions=e._iO;if(e._lastURL&&e._lastURL!=e.url){a._wDS("manURL");e._iO.url=e.url;e.url=null}}if(typeof e._iO.url=="undefined")e._iO.url=e.url;a._wD("soundManager.load(): "+e._iO.url,1);if(e._iO.url==e.url&&e.readyState!==0&&e.readyState!=2){a._wDS("onURL",1);return false}e.url=e._iO.url;e._lastURL=e._iO.url;e.loaded=false;e.readyState=
1;e.playState=0;try{if(a.flashVersion==8)a.o._load(e.sID,e._iO.url,e._iO.stream,e._iO.autoPlay,e._iO.whileloading?1:0);else{a.o._load(e.sID,e._iO.url,e._iO.stream?true:false,e._iO.autoPlay?true:false);e._iO.isMovieStar&&e._iO.autoLoad&&!e._iO.autoPlay&&e.pause()}}catch(r){a._wDS("smError",2);a._debugTS("onload",false);a.onerror();a.disable()}};this.unload=function(){if(e.readyState!==0){a._wD('SMSound.unload(): "'+e.sID+'"');e.readyState!=2&&e.setPosition(0,true);a.o._unload(e.sID,a.nullURL);e.resetProperties()}};
this.destruct=function(){a._wD('SMSound.destruct(): "'+e.sID+'"');a.o._destroySound(e.sID);a.destroySound(e.sID,true)};this.start=this.play=function(k){k||(k={});e._iO=a._mergeObjects(k,e._iO);e._iO=a._mergeObjects(e._iO,e.options);e.instanceOptions=e._iO;if(e.playState==1)if(e._iO.multiShot)a._wD('SMSound.play(): "'+e.sID+'" already playing (multi-shot)',1);else{a._wD('SMSound.play(): "'+e.sID+'" already playing (one-shot)',1);return false}if(e.loaded)a._wD('SMSound.play(): "'+e.sID+'"');else if(e.readyState===
0){a._wD('SMSound.play(): Attempting to load "'+e.sID+'"',1);e._iO.autoPlay=true;e.load(e._iO)}else if(e.readyState==2){a._wD('SMSound.play(): Could not load "'+e.sID+'" - exiting',2);return false}else a._wD('SMSound.play(): "'+e.sID+'" is loading - attempting to play..',1);if(e.paused)e.resume();else{e.playState=1;if(!e.instanceCount||a.flashVersion>8)e.instanceCount++;e.position=typeof e._iO.position!="undefined"&&!isNaN(e._iO.position)?e._iO.position:0;e._iO.onplay&&e._iO.onplay.apply(e);e.setVolume(e._iO.volume,
true);e.setPan(e._iO.pan,true);a.o._start(e.sID,e._iO.loop||1,a.flashVersion==9?e.position:e.position/1E3)}};this.stop=function(k){if(e.playState==1){e.playState=0;e.paused=false;e._iO.onstop&&e._iO.onstop.apply(e);a.o._stop(e.sID,k);e.instanceCount=0;e._iO={}}};this.setPosition=function(k){if(typeof k=="undefined")k=0;k=Math.min(e.duration,Math.max(k,0));e._iO.position=k;a.o._setPosition(e.sID,a.flashVersion==9?e._iO.position:e._iO.position/1E3,e.paused||!e.playState)};this.pause=function(){if(e.paused||
e.playState===0)return false;a._wD("SMSound.pause()");e.paused=true;a.o._pause(e.sID);e._iO.onpause&&e._iO.onpause.apply(e)};this.resume=function(){if(!e.paused||e.playState===0)return false;a._wD("SMSound.resume()");e.paused=false;a.o._pause(e.sID);e._iO.onresume&&e._iO.onresume.apply(e)};this.togglePause=function(){a._wD("SMSound.togglePause()");if(e.playState===0){e.play({position:a.flashVersion==9?e.position:e.position/1E3});return false}e.paused?e.resume():e.pause()};this.setPan=function(k,r){if(typeof k==
"undefined")k=0;if(typeof r=="undefined")r=false;a.o._setPan(e.sID,k);e._iO.pan=k;if(!r)e.pan=k};this.setVolume=function(k,r){if(typeof k=="undefined")k=100;if(typeof r=="undefined")r=false;a.o._setVolume(e.sID,a.muted&&!e.muted||e.muted?0:k);e._iO.volume=k;if(!r)e.volume=k};this.mute=function(){e.muted=true;a.o._setVolume(e.sID,0)};this.unmute=function(){e.muted=false;a.o._setVolume(e.sID,typeof e._iO.volume!="undefined"?e._iO.volume:e.options.volume)};this.toggleMute=function(){e.muted?e.unmute():
e.mute()};this._whileloading=function(k,r,v){if(e._iO.isMovieStar){e.bytesLoaded=k;e.bytesTotal=r;e.duration=Math.floor(v);e.durationEstimate=e.duration}else{e.bytesLoaded=k;e.bytesTotal=r;e.duration=Math.floor(v);e.durationEstimate=parseInt(e.bytesTotal/e.bytesLoaded*e.duration,10);if(e.durationEstimate===undefined)e.durationEstimate=e.duration}e.readyState!=3&&e._iO.whileloading&&e._iO.whileloading.apply(e)};this._onid3=function(k,r){a._wD('SMSound._onid3(): "'+this.sID+'" ID3 data received.');
for(var v=[],D=0,O=k.length;D<O;D++)v[k[D]]=r[D];e.id3=a._mergeObjects(e.id3,v);e._iO.onid3&&e._iO.onid3.apply(e)};this._whileplaying=function(k,r,v,D,O){if(isNaN(k)||k===null)return false;if(e.playState===0&&k>0)k=0;e.position=k;if(a.flashVersion>8){if(e._iO.usePeakData&&typeof r!="undefined"&&r)e.peakData={left:r.leftPeak,right:r.rightPeak};if(e._iO.useWaveformData&&typeof v!="undefined"&&v)e.waveformData={left:v.split(","),right:D.split(",")};if(e._iO.useEQData)if(typeof O!="undefined"&&O.leftEQ){k=
O.leftEQ.split(",");e.eqData=k;e.eqData.left=k;if(typeof O.rightEQ!="undefined"&&O.rightEQ)e.eqData.right=O.rightEQ.split(",")}}if(e.playState==1){e.isBuffering&&e._onbufferchange(0);e._iO.whileplaying&&e._iO.whileplaying.apply(e);if(e.loaded&&e._iO.onbeforefinish&&e._iO.onbeforefinishtime&&!e.didBeforeFinish&&e.duration-e.position<=e._iO.onbeforefinishtime){a._wD("duration-position &lt;= onbeforefinishtime: "+e.duration+" - "+e.position+" &lt= "+e._iO.onbeforefinishtime+" ("+(e.duration-e.position)+
")");e._onbeforefinish()}}};this._onload=function(k){k=k==1?true:false;a._wD('SMSound._onload(): "'+e.sID+'"'+(k?" loaded.":" failed to load? - "+e.url),k?1:2);if(!k){a.sandbox.noRemote===true&&a._wD("SMSound._onload(): "+a._str("noNet"),1);a.sandbox.noLocal===true&&a._wD("SMSound._onload(): "+a._str("noLocal"),1)}e.loaded=k;e.readyState=k?3:2;e._iO.onload&&e._iO.onload.apply(e)};this._onbeforefinish=function(){if(!e.didBeforeFinish){e.didBeforeFinish=true;if(e._iO.onbeforefinish){a._wD('SMSound._onbeforefinish(): "'+
e.sID+'"');e._iO.onbeforefinish.apply(e)}}};this._onjustbeforefinish=function(){if(!e.didJustBeforeFinish){e.didJustBeforeFinish=true;if(e._iO.onjustbeforefinish){a._wD('SMSound._onjustbeforefinish(): "'+e.sID+'"');e._iO.onjustbeforefinish.apply(e)}}};this._onfinish=function(){e._iO.onbeforefinishcomplete&&e._iO.onbeforefinishcomplete.apply(e);e.didBeforeFinish=false;e.didJustBeforeFinish=false;if(e.instanceCount){e.instanceCount--;if(!e.instanceCount){e.playState=0;e.paused=false;e.instanceCount=
0;e.instanceOptions={}}if(!e.instanceCount||e._iO.multiShotEvents)if(e._iO.onfinish){a._wD('SMSound._onfinish(): "'+e.sID+'"');e._iO.onfinish.apply(e)}}};this._onmetadata=function(k){a._wD("SMSound.onmetadata()");if(!k.width&&!k.height){a._wDS("noWH");k.width=320;k.height=240}e.metadata=k;e.width=k.width;e.height=k.height;if(e._iO.onmetadata){a._wD('SMSound.onmetadata(): "'+e.sID+'"');e._iO.onmetadata.apply(e)}a._wD("SMSound.onmetadata() complete")};this._onbufferchange=function(k){if(e.playState===
0)return false;if(k==e.isBuffering){a._wD("SMSound._onbufferchange(): ignoring false default / loaded sound");return false}e.isBuffering=k==1?true:false;if(e._iO.onbufferchange){a._wD("SMSound._onbufferchange(): "+k);e._iO.onbufferchange.apply(e)}};this._ondataerror=function(k){if(e.playState>0){a._wD("SMSound._ondataerror(): "+k);e._iO.ondataerror&&e._iO.ondataerror.apply(e)}}};this._onfullscreenchange=function(g){a._wD("onfullscreenchange(): "+g);a.isFullScreen=g==1?true:false;if(!a.isFullScreen)try{window.focus();
a._wD("window.focus()")}catch(e){}};if(window.addEventListener){window.addEventListener("focus",a.handleFocus,false);window.addEventListener("load",a.beginDelayedInit,false);window.addEventListener("unload",a.destruct,false);a._tryInitOnFocus&&window.addEventListener("mousemove",a.handleFocus,false)}else if(window.attachEvent){window.attachEvent("onfocus",a.handleFocus);window.attachEvent("onload",a.beginDelayedInit);window.attachEvent("unload",a.destruct)}else{a._debugTS("onload",false);soundManager.onerror();
soundManager.disable()}document.addEventListener&&document.addEventListener("DOMContentLoaded",a.domContentLoaded,false)}if(typeof SM2_DEFER=="undefined"||!SM2_DEFER)soundManager=new SoundManager;
jQuery.ui||function(b){function d(k,r,v,D){function O(E){E=b[k][r][E]||[];return typeof E=="string"?E.split(/,?\s+/):E}var L=O("getter");if(D.length==1&&typeof D[0]=="string")L=L.concat(O("getterSetter"));return b.inArray(v,L)!=-1}var h=b.fn.remove,a=b.browser.mozilla&&parseFloat(b.browser.version)<1.9;b.ui={version:"1.7.2",plugin:{add:function(k,r,v){k=b.ui[k].prototype;for(var D in v){k.plugins[D]=k.plugins[D]||[];k.plugins[D].push([r,v[D]])}},call:function(k,r,v){if((r=k.plugins[r])&&k.element[0].parentNode)for(var D=
0;D<r.length;D++)k.options[r[D][0]]&&r[D][1].apply(k.element,v)}},contains:function(k,r){return document.compareDocumentPosition?k.compareDocumentPosition(r)&16:k!==r&&k.contains(r)},hasScroll:function(k,r){if(b(k).css("overflow")=="hidden")return false;r=r&&r=="left"?"scrollLeft":"scrollTop";var v=false;if(k[r]>0)return true;k[r]=1;v=k[r]>0;k[r]=0;return v},isOverAxis:function(k,r,v){return k>r&&k<r+v},isOver:function(k,r,v,D,O,L){return b.ui.isOverAxis(k,v,O)&&b.ui.isOverAxis(r,D,L)},keyCode:{BACKSPACE:8,
CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(a){var l=b.attr,n=b.fn.removeAttr,g=/^aria-/,e=/^wairole:/;b.attr=function(k,r,v){var D=v!==undefined;return r=="role"?D?l.call(this,k,r,"wairole:"+v):(l.apply(this,arguments)||"").replace(e,""):g.test(r)?D?k.setAttributeNS("http://www.w3.org/2005/07/aaa",
r.replace(g,"aaa:"),v):l.call(this,k,r.replace(g,"aaa:")):l.apply(this,arguments)};b.fn.removeAttr=function(k){return g.test(k)?this.each(function(){this.removeAttributeNS("http://www.w3.org/2005/07/aaa",k.replace(g,""))}):n.call(this,k)}}b.fn.extend({remove:function(){b("*",this).add(this).each(function(){b(this).triggerHandler("remove")});return h.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable",
"on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var k;k=b.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(b.curCSS(this,"position",1))&&/(auto|scroll)/.test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(b.curCSS(this,
"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!k.length?b(document):k}});b.extend(b.expr[":"],{data:function(k,r,v){return!!b.data(k,v[3])},focusable:function(k){var r=k.nodeName.toLowerCase(),v=b.attr(k,"tabindex");return(/input|select|textarea|button|object/.test(r)?!k.disabled:"a"==r||"area"==r?k.href||!isNaN(v):!isNaN(v))&&!b(k)["area"==r?"parents":"closest"](":hidden").length},tabbable:function(k){var r=b.attr(k,"tabindex");
return(isNaN(r)||r>=0)&&b(k).is(":focusable")}});b.widget=function(k,r){var v=k.split(".")[0];k=k.split(".")[1];b.fn[k]=function(D){var O=typeof D=="string",L=Array.prototype.slice.call(arguments,1);if(O&&D.substring(0,1)=="_")return this;if(O&&d(v,k,D,L)){var E=b.data(this[0],k);return E?E[D].apply(E,L):undefined}return this.each(function(){var s=b.data(this,k);!s&&!O&&b.data(this,k,new b[v][k](this,D))._init();s&&O&&b.isFunction(s[D])&&s[D].apply(s,L)})};b[v]=b[v]||{};b[v][k]=function(D,O){var L=
this;this.namespace=v;this.widgetName=k;this.widgetEventPrefix=b[v][k].eventPrefix||k;this.widgetBaseClass=v+"-"+k;this.options=b.extend({},b.widget.defaults,b[v][k].defaults,b.metadata&&b.metadata.get(D)[k],O);this.element=b(D).bind("setData."+k,function(E,s,f){if(E.target==D)return L._setData(s,f)}).bind("getData."+k,function(E,s){if(E.target==D)return L._getData(s)}).bind("remove",function(){return L.destroy()})};b[v][k].prototype=b.extend({},b.widget.prototype,r);b[v][k].getterSetter="option"};
b.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(k,r){var v=k,D=this;if(typeof k=="string"){if(r===undefined)return this._getData(k);v={};v[k]=r}b.each(v,function(O,L){D._setData(O,L)})},_getData:function(k){return this.options[k]},_setData:function(k,r){this.options[k]=r;if(k=="disabled")this.element[r?"addClass":"removeClass"](this.widgetBaseClass+
"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",r)},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(k,r,v){var D=this.options[k];k=k==this.widgetEventPrefix?k:this.widgetEventPrefix+k;r=b.Event(r);r.type=k;if(r.originalEvent){k=b.event.props.length;for(var O;k;){O=b.event.props[--k];r[O]=r.originalEvent[O]}}this.element.trigger(r,v);return!(b.isFunction(D)&&D.call(this.element[0],r,v)===false||r.isDefaultPrevented())}};
b.widget.defaults={disabled:false};b.ui.mouse={_mouseInit:function(){var k=this;this.element.bind("mousedown."+this.widgetName,function(r){return k._mouseDown(r)}).bind("click."+this.widgetName,function(r){if(k._preventClickEvent){k._preventClickEvent=false;r.stopImmediatePropagation();return false}});if(b.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);
b.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable)},_mouseDown:function(k){k.originalEvent=k.originalEvent||{};if(!k.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(k);this._mouseDownEvent=k;var r=this,v=k.which==1,D=typeof this.options.cancel=="string"?b(k.target).parents().add(k.target).filter(this.options.cancel).length:false;if(!v||D||!this._mouseCapture(k))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){r.mouseDelayMet=
true},this.options.delay);if(this._mouseDistanceMet(k)&&this._mouseDelayMet(k)){this._mouseStarted=this._mouseStart(k)!==false;if(!this._mouseStarted){k.preventDefault();return true}}this._mouseMoveDelegate=function(O){return r._mouseMove(O)};this._mouseUpDelegate=function(O){return r._mouseUp(O)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);b.browser.safari||k.preventDefault();return k.originalEvent.mouseHandled=true}},
_mouseMove:function(k){if(b.browser.msie&&!k.button)return this._mouseUp(k);if(this._mouseStarted){this._mouseDrag(k);return k.preventDefault()}if(this._mouseDistanceMet(k)&&this._mouseDelayMet(k))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,k)!==false)?this._mouseDrag(k):this._mouseUp(k);return!this._mouseStarted},_mouseUp:function(k){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=
false;this._preventClickEvent=k.target==this._mouseDownEvent.target;this._mouseStop(k)}return false},_mouseDistanceMet:function(k){return Math.max(Math.abs(this._mouseDownEvent.pageX-k.pageX),Math.abs(this._mouseDownEvent.pageY-k.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}};b.ui.mouse.defaults={cancel:null,distance:1,delay:0}}(jQuery);
(function(b){b.widget("ui.draggable",b.extend({},b.ui.mouse,{_init: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()}},_mouseCapture:function(d){var h=this.options;if(this.helper||h.disabled||b(d.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(d);if(!this.handle)return false;return true},_mouseStart:function(d){var h=this.options;this.helper=this._createHelper(d);this._cacheHelperProportions();if(b.ui.ddmanager)b.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.element.offset();
this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};b.extend(this.offset,{click:{left:d.pageX-this.offset.left,top:d.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(d);this.originalPageX=d.pageX;this.originalPageY=d.pageY;h.cursorAt&&this._adjustOffsetFromHelper(h.cursorAt);h.containment&&this._setContainment();this._trigger("start",d);this._cacheHelperProportions();b.ui.ddmanager&&
!h.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,d);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(d,true);return true},_mouseDrag:function(d,h){this.position=this._generatePosition(d);this.positionAbs=this._convertPositionTo("absolute");if(!h){h=this._uiHash();this._trigger("drag",d,h);this.position=h.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";b.ui.ddmanager&&b.ui.ddmanager.drag(this,d);return false},_mouseStop:function(d){var h=false;if(b.ui.ddmanager&&!this.options.dropBehaviour)h=b.ui.ddmanager.drop(this,d);if(this.dropped){h=this.dropped;this.dropped=false}if(this.options.revert=="invalid"&&!h||this.options.revert=="valid"&&h||this.options.revert===true||b.isFunction(this.options.revert)&&this.options.revert.call(this.element,h)){var a=this;b(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){a._trigger("stop",
d);a._clear()})}else{this._trigger("stop",d);this._clear()}return false},_getHandle:function(d){var h=!this.options.handle||!b(this.options.handle,this.element).length?true:false;b(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==d.target)h=true});return h},_createHelper:function(d){var h=this.options;d=b.isFunction(h.helper)?b(h.helper.apply(this.element[0],[d])):h.helper=="clone"?this.element.clone():this.element;d.parents("body").length||d.appendTo(h.appendTo=="parent"?
this.element[0].parentNode:h.appendTo);d[0]!=this.element[0]&&!/(fixed|absolute)/.test(d.css("position"))&&d.css("position","absolute");return d},_adjustOffsetFromHelper:function(d){if(d.left!=undefined)this.offset.click.left=d.left+this.margins.left;if(d.right!=undefined)this.offset.click.left=this.helperProportions.width-d.right+this.margins.left;if(d.top!=undefined)this.offset.click.top=d.top+this.margins.top;if(d.bottom!=undefined)this.offset.click.top=this.helperProportions.height-d.bottom+this.margins.top},
_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var d=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0])){d.left+=this.scrollParent.scrollLeft();d.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)d={top:0,left:0};return{top:d.top+(parseInt(this.offsetParent.css("borderTopWidth"),
10)||0),left:d.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var d=this.element.position();return{top:d.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:d.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 d=this.options;if(d.containment=="parent")d.containment=this.helper[0].parentNode;if(d.containment=="document"||d.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,b(d.containment=="document"?document:window).width()-this.helperProportions.width-
this.margins.left,(b(d.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(d.containment)&&d.containment.constructor!=Array){var h=b(d.containment)[0];if(h){d=b(d.containment).offset();var a=b(h).css("overflow")!="hidden";this.containment=[d.left+(parseInt(b(h).css("borderLeftWidth"),10)||0)+(parseInt(b(h).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(b(h).css("borderTopWidth"),
10)||0)+(parseInt(b(h).css("paddingTop"),10)||0)-this.margins.top,d.left+(a?Math.max(h.scrollWidth,h.offsetWidth):h.offsetWidth)-(parseInt(b(h).css("borderLeftWidth"),10)||0)-(parseInt(b(h).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(a?Math.max(h.scrollHeight,h.offsetHeight):h.offsetHeight)-(parseInt(b(h).css("borderTopWidth"),10)||0)-(parseInt(b(h).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}}else if(d.containment.constructor==
Array)this.containment=d.containment},_convertPositionTo:function(d,h){if(!h)h=this.position;d=d=="absolute"?1:-1;var a=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,l=/(html|body)/i.test(a[0].tagName);return{top:h.top+this.offset.relative.top*d+this.offset.parent.top*d-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():l?0:a.scrollTop())*
d),left:h.left+this.offset.relative.left*d+this.offset.parent.left*d-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():l?0:a.scrollLeft())*d)}},_generatePosition:function(d){var h=this.options,a=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,l=/(html|body)/i.test(a[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=
document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var n=d.pageX,g=d.pageY;if(this.originalPosition){if(this.containment){if(d.pageX-this.offset.click.left<this.containment[0])n=this.containment[0]+this.offset.click.left;if(d.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+this.offset.click.top;if(d.pageX-this.offset.click.left>this.containment[2])n=this.containment[2]+this.offset.click.left;if(d.pageY-this.offset.click.top>this.containment[3])g=
this.containment[3]+this.offset.click.top}if(h.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/h.grid[1])*h.grid[1];g=this.containment?!(g-this.offset.click.top<this.containment[1]||g-this.offset.click.top>this.containment[3])?g:!(g-this.offset.click.top<this.containment[1])?g-h.grid[1]:g+h.grid[1]:g;n=this.originalPageX+Math.round((n-this.originalPageX)/h.grid[0])*h.grid[0];n=this.containment?!(n-this.offset.click.left<this.containment[0]||n-this.offset.click.left>this.containment[2])?
n:!(n-this.offset.click.left<this.containment[0])?n-h.grid[0]:n+h.grid[0]:n}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(b.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():l?0:a.scrollTop()),left:n-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():l?0:a.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(d,h,a){a=a||this._uiHash();b.ui.plugin.call(this,d,[h,a]);if(d=="drag")this.positionAbs=this._convertPositionTo("absolute");return b.widget.prototype._trigger.call(this,d,h,a)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs}}}));b.extend(b.ui.draggable,{version:"1.7.2",
eventPrefix:"drag",defaults:{addClasses:true,appendTo:"parent",axis:false,cancel:":input,option",connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,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}});b.ui.plugin.add("draggable","connectToSortable",{start:function(d,
h){var a=b(this).data("draggable"),l=a.options,n=b.extend({},h,{item:a.element});a.sortables=[];b(l.connectToSortable).each(function(){var g=b.data(this,"sortable");if(g&&!g.options.disabled){a.sortables.push({instance:g,shouldRevert:g.options.revert});g._refreshItems();g._trigger("activate",d,n)}})},stop:function(d,h){var a=b(this).data("draggable"),l=b.extend({},h,{item:a.element});b.each(a.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;a.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=
false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(d);this.instance.options.helper=this.instance.options._helper;a.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",d,l)}})},drag:function(d,h){var a=b(this).data("draggable"),l=this;b.each(a.sortables,function(){this.instance.positionAbs=a.positionAbs;this.instance.helperProportions=a.helperProportions;
this.instance.offset.click=a.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=b(l).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return h.helper[0]};d.target=this.instance.currentItem[0];this.instance._mouseCapture(d,true);this.instance._mouseStart(d,true,true);this.instance.offset.click.top=
a.offset.click.top;this.instance.offset.click.left=a.offset.click.left;this.instance.offset.parent.left-=a.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=a.offset.parent.top-this.instance.offset.parent.top;a._trigger("toSortable",d);a.dropped=this.instance.element;a.currentItem=a.element;this.instance.fromOutside=a}this.instance.currentItem&&this.instance._mouseDrag(d)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;
this.instance.options.revert=false;this.instance._trigger("out",d,this.instance._uiHash(this.instance));this.instance._mouseStop(d,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();a._trigger("fromSortable",d);a.dropped=false}})}});b.ui.plugin.add("draggable","cursor",{start:function(){var d=b("body"),h=b(this).data("draggable").options;if(d.css("cursor"))h._cursor=d.css("cursor");d.css("cursor",
h.cursor)},stop:function(){var d=b(this).data("draggable").options;d._cursor&&b("body").css("cursor",d._cursor)}});b.ui.plugin.add("draggable","iframeFix",{start:function(){var d=b(this).data("draggable").options;b(d.iframeFix===true?"iframe":d.iframeFix).each(function(){b('<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(b(this).offset()).appendTo("body")})},stop:function(){b("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});
b.ui.plugin.add("draggable","opacity",{start:function(d,h){d=b(h.helper);h=b(this).data("draggable").options;if(d.css("opacity"))h._opacity=d.css("opacity");d.css("opacity",h.opacity)},stop:function(d,h){d=b(this).data("draggable").options;d._opacity&&b(h.helper).css("opacity",d._opacity)}});b.ui.plugin.add("draggable","scroll",{start:function(){var d=b(this).data("draggable");if(d.scrollParent[0]!=document&&d.scrollParent[0].tagName!="HTML")d.overflowOffset=d.scrollParent.offset()},drag:function(d){var h=
b(this).data("draggable"),a=h.options,l=false;if(h.scrollParent[0]!=document&&h.scrollParent[0].tagName!="HTML"){if(!a.axis||a.axis!="x")if(h.overflowOffset.top+h.scrollParent[0].offsetHeight-d.pageY<a.scrollSensitivity)h.scrollParent[0].scrollTop=l=h.scrollParent[0].scrollTop+a.scrollSpeed;else if(d.pageY-h.overflowOffset.top<a.scrollSensitivity)h.scrollParent[0].scrollTop=l=h.scrollParent[0].scrollTop-a.scrollSpeed;if(!a.axis||a.axis!="y")if(h.overflowOffset.left+h.scrollParent[0].offsetWidth-d.pageX<
a.scrollSensitivity)h.scrollParent[0].scrollLeft=l=h.scrollParent[0].scrollLeft+a.scrollSpeed;else if(d.pageX-h.overflowOffset.left<a.scrollSensitivity)h.scrollParent[0].scrollLeft=l=h.scrollParent[0].scrollLeft-a.scrollSpeed}else{if(!a.axis||a.axis!="x")if(d.pageY-b(document).scrollTop()<a.scrollSensitivity)l=b(document).scrollTop(b(document).scrollTop()-a.scrollSpeed);else if(b(window).height()-(d.pageY-b(document).scrollTop())<a.scrollSensitivity)l=b(document).scrollTop(b(document).scrollTop()+
a.scrollSpeed);if(!a.axis||a.axis!="y")if(d.pageX-b(document).scrollLeft()<a.scrollSensitivity)l=b(document).scrollLeft(b(document).scrollLeft()-a.scrollSpeed);else if(b(window).width()-(d.pageX-b(document).scrollLeft())<a.scrollSensitivity)l=b(document).scrollLeft(b(document).scrollLeft()+a.scrollSpeed)}l!==false&&b.ui.ddmanager&&!a.dropBehaviour&&b.ui.ddmanager.prepareOffsets(h,d)}});b.ui.plugin.add("draggable","snap",{start:function(){var d=b(this).data("draggable"),h=d.options;d.snapElements=
[];b(h.snap.constructor!=String?h.snap.items||":data(draggable)":h.snap).each(function(){var a=b(this),l=a.offset();this!=d.element[0]&&d.snapElements.push({item:this,width:a.outerWidth(),height:a.outerHeight(),top:l.top,left:l.left})})},drag:function(d,h){for(var a=b(this).data("draggable"),l=a.options,n=l.snapTolerance,g=h.offset.left,e=g+a.helperProportions.width,k=h.offset.top,r=k+a.helperProportions.height,v=a.snapElements.length-1;v>=0;v--){var D=a.snapElements[v].left,O=D+a.snapElements[v].width,
L=a.snapElements[v].top,E=L+a.snapElements[v].height;if(D-n<g&&g<O+n&&L-n<k&&k<E+n||D-n<g&&g<O+n&&L-n<r&&r<E+n||D-n<e&&e<O+n&&L-n<k&&k<E+n||D-n<e&&e<O+n&&L-n<r&&r<E+n){if(l.snapMode!="inner"){var s=Math.abs(L-r)<=n,f=Math.abs(E-k)<=n,A=Math.abs(D-e)<=n,H=Math.abs(O-g)<=n;if(s)h.position.top=a._convertPositionTo("relative",{top:L-a.helperProportions.height,left:0}).top-a.margins.top;if(f)h.position.top=a._convertPositionTo("relative",{top:E,left:0}).top-a.margins.top;if(A)h.position.left=a._convertPositionTo("relative",
{top:0,left:D-a.helperProportions.width}).left-a.margins.left;if(H)h.position.left=a._convertPositionTo("relative",{top:0,left:O}).left-a.margins.left}var B=s||f||A||H;if(l.snapMode!="outer"){s=Math.abs(L-k)<=n;f=Math.abs(E-r)<=n;A=Math.abs(D-g)<=n;H=Math.abs(O-e)<=n;if(s)h.position.top=a._convertPositionTo("relative",{top:L,left:0}).top-a.margins.top;if(f)h.position.top=a._convertPositionTo("relative",{top:E-a.helperProportions.height,left:0}).top-a.margins.top;if(A)h.position.left=a._convertPositionTo("relative",
{top:0,left:D}).left-a.margins.left;if(H)h.position.left=a._convertPositionTo("relative",{top:0,left:O-a.helperProportions.width}).left-a.margins.left}if(!a.snapElements[v].snapping&&(s||f||A||H||B))a.options.snap.snap&&a.options.snap.snap.call(a.element,d,b.extend(a._uiHash(),{snapItem:a.snapElements[v].item}));a.snapElements[v].snapping=s||f||A||H||B}else{a.snapElements[v].snapping&&a.options.snap.release&&a.options.snap.release.call(a.element,d,b.extend(a._uiHash(),{snapItem:a.snapElements[v].item}));
a.snapElements[v].snapping=false}}}});b.ui.plugin.add("draggable","stack",{start:function(){var d=b(this).data("draggable").options,h=b.makeArray(b(d.stack.group)).sort(function(a,l){return(parseInt(b(a).css("zIndex"),10)||d.stack.min)-(parseInt(b(l).css("zIndex"),10)||d.stack.min)});b(h).each(function(a){this.style.zIndex=d.stack.min+a});this[0].style.zIndex=d.stack.min+h.length}});b.ui.plugin.add("draggable","zIndex",{start:function(d,h){d=b(h.helper);h=b(this).data("draggable").options;if(d.css("zIndex"))h._zIndex=
d.css("zIndex");d.css("zIndex",h.zIndex)},stop:function(d,h){d=b(this).data("draggable").options;d._zIndex&&b(h.helper).css("zIndex",d._zIndex)}})})(jQuery);
(function(b){b.widget("ui.sortable",b.extend({},b.ui.mouse,{_init:function(){this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var d=this.items.length-1;d>=0;d--)this.items[d].item.removeData("sortable-item")},
_mouseCapture:function(d,h){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(d);var a=null,l=this;b(d.target).parents().each(function(){if(b.data(this,"sortable-item")==l){a=b(this);return false}});if(b.data(d.target,"sortable-item")==l)a=b(d.target);if(!a)return false;if(this.options.handle&&!h){var n=false;b(this.options.handle,a).find("*").andSelf().each(function(){if(this==d.target)n=true});if(!n)return false}this.currentItem=
a;this._removeCurrentsFromItems();return true},_mouseStart:function(d,h,a){h=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(d);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");b.extend(this.offset,
{click:{left:d.pageX-this.offset.left,top:d.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(d);this.originalPageX=d.pageX;this.originalPageY=d.pageY;h.cursorAt&&this._adjustOffsetFromHelper(h.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();h.containment&&this._setContainment();
if(h.cursor){if(b("body").css("cursor"))this._storedCursor=b("body").css("cursor");b("body").css("cursor",h.cursor)}if(h.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",h.opacity)}if(h.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",h.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",
d,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!a)for(a=this.containers.length-1;a>=0;a--)this.containers[a]._trigger("activate",d,this._uiHash(this));if(b.ui.ddmanager)b.ui.ddmanager.current=this;b.ui.ddmanager&&!h.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,d);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(d);return true},_mouseDrag:function(d){this.position=this._generatePosition(d);this.positionAbs=this._convertPositionTo("absolute");
if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var h=this.options,a=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-d.pageY<h.scrollSensitivity)this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop+h.scrollSpeed;else if(d.pageY-this.overflowOffset.top<h.scrollSensitivity)this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop-h.scrollSpeed;if(this.overflowOffset.left+
this.scrollParent[0].offsetWidth-d.pageX<h.scrollSensitivity)this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft+h.scrollSpeed;else if(d.pageX-this.overflowOffset.left<h.scrollSensitivity)this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft-h.scrollSpeed}else{if(d.pageY-b(document).scrollTop()<h.scrollSensitivity)a=b(document).scrollTop(b(document).scrollTop()-h.scrollSpeed);else if(b(window).height()-(d.pageY-b(document).scrollTop())<h.scrollSensitivity)a=b(document).scrollTop(b(document).scrollTop()+
h.scrollSpeed);if(d.pageX-b(document).scrollLeft()<h.scrollSensitivity)a=b(document).scrollLeft(b(document).scrollLeft()-h.scrollSpeed);else if(b(window).width()-(d.pageX-b(document).scrollLeft())<h.scrollSensitivity)a=b(document).scrollLeft(b(document).scrollLeft()+h.scrollSpeed)}a!==false&&b.ui.ddmanager&&!h.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,d)}this.positionAbs=this._convertPositionTo("absolute");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";for(h=this.items.length-1;h>=0;h--){a=this.items[h];var l=a.item[0],n=this._intersectsWithPointer(a);if(n)if(l!=this.currentItem[0]&&this.placeholder[n==1?"next":"prev"]()[0]!=l&&!b.ui.contains(this.placeholder[0],l)&&(this.options.type=="semi-dynamic"?!b.ui.contains(this.element[0],l):true)){this.direction=n==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(a))this._rearrange(d,
a);else break;this._trigger("change",d,this._uiHash());break}}this._contactContainers(d);b.ui.ddmanager&&b.ui.ddmanager.drag(this,d);this._trigger("sort",d,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(d,h){if(d){b.ui.ddmanager&&!this.options.dropBehaviour&&b.ui.ddmanager.drop(this,d);if(this.options.revert){var a=this;h=a.placeholder.offset();a.reverting=true;b(this.helper).animate({left:h.left-this.offset.parent.left-a.margins.left+(this.offsetParent[0]==
document.body?0:this.offsetParent[0].scrollLeft),top:h.top-this.offset.parent.top-a.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){a._clear(d)})}else this._clear(d,h);return false}},cancel:function(){if(this.dragging){this._mouseUp();this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var d=this.containers.length-1;d>=0;d--){this.containers[d]._trigger("deactivate",
null,this._uiHash(this));if(this.containers[d].containerCache.over){this.containers[d]._trigger("out",null,this._uiHash(this));this.containers[d].containerCache.over=0}}}this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();b.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?b(this.domPosition.prev).after(this.currentItem):
b(this.domPosition.parent).prepend(this.currentItem);return true},serialize:function(d){var h=this._getItemsAsjQuery(d&&d.connected),a=[];d=d||{};b(h).each(function(){var l=(b(d.item||this).attr(d.attribute||"id")||"").match(d.expression||/(.+)[-=_](.+)/);if(l)a.push((d.key||l[1]+"[]")+"="+(d.key&&d.expression?l[1]:l[2]))});return a.join("&")},toArray:function(d){var h=this._getItemsAsjQuery(d&&d.connected),a=[];d=d||{};h.each(function(){a.push(b(d.item||this).attr(d.attribute||"id")||"")});return a},
_intersectsWith:function(d){var h=this.positionAbs.left,a=h+this.helperProportions.width,l=this.positionAbs.top,n=l+this.helperProportions.height,g=d.left,e=g+d.width,k=d.top,r=k+d.height,v=this.offset.click.top,D=this.offset.click.left;v=l+v>k&&l+v<r&&h+D>g&&h+D<e;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>d[this.floating?"width":"height"]?v:g<h+this.helperProportions.width/
2&&a-this.helperProportions.width/2<e&&k<l+this.helperProportions.height/2&&n-this.helperProportions.height/2<r},_intersectsWithPointer:function(d){var h=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,d.top,d.height);d=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,d.left,d.width);h=h&&d;d=this._getDragVerticalDirection();var a=this._getDragHorizontalDirection();if(!h)return false;return this.floating?a&&a=="right"||d=="down"?2:1:d&&(d=="down"?2:1)},_intersectsWithSides:function(d){var h=
b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,d.top+d.height/2,d.height);d=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,d.left+d.width/2,d.width);var a=this._getDragVerticalDirection(),l=this._getDragHorizontalDirection();return this.floating&&l?l=="right"&&d||l=="left"&&!d:a&&(a=="down"&&h||a=="up"&&!h)},_getDragVerticalDirection:function(){var d=this.positionAbs.top-this.lastPositionAbs.top;return d!=0&&(d>0?"down":"up")},_getDragHorizontalDirection:function(){var d=
this.positionAbs.left-this.lastPositionAbs.left;return d!=0&&(d>0?"right":"left")},refresh:function(d){this._refreshItems(d);this.refreshPositions()},_connectWith:function(){var d=this.options;return d.connectWith.constructor==String?[d.connectWith]:d.connectWith},_getItemsAsjQuery:function(d){var h=[],a=[],l=this._connectWith();if(l&&d)for(d=l.length-1;d>=0;d--)for(var n=b(l[d]),g=n.length-1;g>=0;g--){var e=b.data(n[g],"sortable");if(e&&e!=this&&!e.options.disabled)a.push([b.isFunction(e.options.items)?
e.options.items.call(e.element):b(e.options.items,e.element).not(".ui-sortable-helper"),e])}a.push([b.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):b(this.options.items,this.element).not(".ui-sortable-helper"),this]);for(d=a.length-1;d>=0;d--)a[d][0].each(function(){h.push(this)});return b(h)},_removeCurrentsFromItems:function(){for(var d=this.currentItem.find(":data(sortable-item)"),h=0;h<this.items.length;h++)for(var a=0;a<
d.length;a++)d[a]==this.items[h].item[0]&&this.items.splice(h,1)},_refreshItems:function(d){this.items=[];this.containers=[this];var h=this.items,a=[[b.isFunction(this.options.items)?this.options.items.call(this.element[0],d,{item:this.currentItem}):b(this.options.items,this.element),this]],l=this._connectWith();if(l)for(var n=l.length-1;n>=0;n--)for(var g=b(l[n]),e=g.length-1;e>=0;e--){var k=b.data(g[e],"sortable");if(k&&k!=this&&!k.options.disabled){a.push([b.isFunction(k.options.items)?k.options.items.call(k.element[0],
d,{item:this.currentItem}):b(k.options.items,k.element),k]);this.containers.push(k)}}for(n=a.length-1;n>=0;n--){d=a[n][1];l=a[n][0];e=0;for(g=l.length;e<g;e++){k=b(l[e]);k.data("sortable-item",d);h.push({item:k,instance:d,width:0,height:0,left:0,top:0})}}},refreshPositions:function(d){if(this.offsetParent&&this.helper)this.offset.parent=this._getParentOffset();for(var h=this.items.length-1;h>=0;h--){var a=this.items[h];if(!(a.instance!=this.currentContainer&&this.currentContainer&&a.item[0]!=this.currentItem[0])){var l=
this.options.toleranceElement?b(this.options.toleranceElement,a.item):a.item;if(!d){a.width=l.outerWidth();a.height=l.outerHeight()}l=l.offset();a.left=l.left;a.top=l.top}}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(h=this.containers.length-1;h>=0;h--){l=this.containers[h].element.offset();this.containers[h].containerCache.left=l.left;this.containers[h].containerCache.top=l.top;this.containers[h].containerCache.width=this.containers[h].element.outerWidth();
this.containers[h].containerCache.height=this.containers[h].element.outerHeight()}},_createPlaceholder:function(d){var h=d||this,a=h.options;if(!a.placeholder||a.placeholder.constructor==String){var l=a.placeholder;a.placeholder={element:function(){var n=b(document.createElement(h.currentItem[0].nodeName)).addClass(l||h.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!l)n.style.visibility="hidden";return n},update:function(n,g){if(!(l&&!a.forcePlaceholderSize)){g.height()||
g.height(h.currentItem.innerHeight()-parseInt(h.currentItem.css("paddingTop")||0,10)-parseInt(h.currentItem.css("paddingBottom")||0,10));g.width()||g.width(h.currentItem.innerWidth()-parseInt(h.currentItem.css("paddingLeft")||0,10)-parseInt(h.currentItem.css("paddingRight")||0,10))}}}}h.placeholder=b(a.placeholder.element.call(h.element,h.currentItem));h.currentItem.after(h.placeholder);a.placeholder.update(h,h.placeholder)},_contactContainers:function(d){for(var h=this.containers.length-1;h>=0;h--)if(this._intersectsWith(this.containers[h].containerCache)){if(!this.containers[h].containerCache.over){if(this.currentContainer!=
this.containers[h]){for(var a=1E4,l=null,n=this.positionAbs[this.containers[h].floating?"left":"top"],g=this.items.length-1;g>=0;g--)if(b.ui.contains(this.containers[h].element[0],this.items[g].item[0])){var e=this.items[g][this.containers[h].floating?"left":"top"];if(Math.abs(e-n)<a){a=Math.abs(e-n);l=this.items[g]}}if(!l&&!this.options.dropOnEmpty)continue;this.currentContainer=this.containers[h];l?this._rearrange(d,l,null,true):this._rearrange(d,null,this.containers[h].element,true);this._trigger("change",
d,this._uiHash());this.containers[h]._trigger("change",d,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder)}this.containers[h]._trigger("over",d,this._uiHash(this));this.containers[h].containerCache.over=1}}else if(this.containers[h].containerCache.over){this.containers[h]._trigger("out",d,this._uiHash(this));this.containers[h].containerCache.over=0}},_createHelper:function(d){var h=this.options;d=b.isFunction(h.helper)?b(h.helper.apply(this.element[0],[d,
this.currentItem])):h.helper=="clone"?this.currentItem.clone():this.currentItem;d.parents("body").length||b(h.appendTo!="parent"?h.appendTo:this.currentItem[0].parentNode)[0].appendChild(d[0]);if(d[0]==this.currentItem[0])this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")};if(d[0].style.width==""||h.forceHelperSize)d.width(this.currentItem.width());
if(d[0].style.height==""||h.forceHelperSize)d.height(this.currentItem.height());return d},_adjustOffsetFromHelper:function(d){if(d.left!=undefined)this.offset.click.left=d.left+this.margins.left;if(d.right!=undefined)this.offset.click.left=this.helperProportions.width-d.right+this.margins.left;if(d.top!=undefined)this.offset.click.top=d.top+this.margins.top;if(d.bottom!=undefined)this.offset.click.top=this.helperProportions.height-d.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=
this.helper.offsetParent();var d=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0])){d.left+=this.scrollParent.scrollLeft();d.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)d={top:0,left:0};return{top:d.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:d.left+(parseInt(this.offsetParent.css("borderLeftWidth"),
10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var d=this.currentItem.position();return{top:d.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:d.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions=
{width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var d=this.options;if(d.containment=="parent")d.containment=this.helper[0].parentNode;if(d.containment=="document"||d.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,b(d.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b(d.containment=="document"?document:window).height()||
document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(d.containment)){var h=b(d.containment)[0];d=b(d.containment).offset();var a=b(h).css("overflow")!="hidden";this.containment=[d.left+(parseInt(b(h).css("borderLeftWidth"),10)||0)+(parseInt(b(h).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(b(h).css("borderTopWidth"),10)||0)+(parseInt(b(h).css("paddingTop"),10)||0)-this.margins.top,d.left+(a?Math.max(h.scrollWidth,
h.offsetWidth):h.offsetWidth)-(parseInt(b(h).css("borderLeftWidth"),10)||0)-(parseInt(b(h).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(a?Math.max(h.scrollHeight,h.offsetHeight):h.offsetHeight)-(parseInt(b(h).css("borderTopWidth"),10)||0)-(parseInt(b(h).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(d,h){if(!h)h=this.position;d=d=="absolute"?1:-1;var a=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=
document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,l=/(html|body)/i.test(a[0].tagName);return{top:h.top+this.offset.relative.top*d+this.offset.parent.top*d-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():l?0:a.scrollTop())*d),left:h.left+this.offset.relative.left*d+this.offset.parent.left*d-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():
l?0:a.scrollLeft())*d)}},_generatePosition:function(d){var h=this.options,a=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,l=/(html|body)/i.test(a[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var n=d.pageX,g=d.pageY;if(this.originalPosition){if(this.containment){if(d.pageX-
this.offset.click.left<this.containment[0])n=this.containment[0]+this.offset.click.left;if(d.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+this.offset.click.top;if(d.pageX-this.offset.click.left>this.containment[2])n=this.containment[2]+this.offset.click.left;if(d.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(h.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/h.grid[1])*h.grid[1];g=this.containment?!(g-this.offset.click.top<
this.containment[1]||g-this.offset.click.top>this.containment[3])?g:!(g-this.offset.click.top<this.containment[1])?g-h.grid[1]:g+h.grid[1]:g;n=this.originalPageX+Math.round((n-this.originalPageX)/h.grid[0])*h.grid[0];n=this.containment?!(n-this.offset.click.left<this.containment[0]||n-this.offset.click.left>this.containment[2])?n:!(n-this.offset.click.left<this.containment[0])?n-h.grid[0]:n+h.grid[0]:n}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(b.browser.safari&&
this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():l?0:a.scrollTop()),left:n-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():l?0:a.scrollLeft())}},_rearrange:function(d,h,a,l){a?a[0].appendChild(this.placeholder[0]):h.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?h.item[0]:h.item[0].nextSibling);this.counter=
this.counter?++this.counter:1;var n=this,g=this.counter;window.setTimeout(function(){g==n.counter&&n.refreshPositions(!l)},0)},_clear:function(d,h){this.reverting=false;var a=[];!this._noFinalSort&&this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var l in this._storedCSS)if(this._storedCSS[l]=="auto"||this._storedCSS[l]=="static")this._storedCSS[l]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();
this.fromOutside&&!h&&a.push(function(n){this._trigger("receive",n,this._uiHash(this.fromOutside))});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!h)a.push(function(n){this._trigger("update",n,this._uiHash())});if(!b.ui.contains(this.element[0],this.currentItem[0])){h||a.push(function(n){this._trigger("remove",n,this._uiHash())});for(l=this.containers.length-1;l>=0;l--)if(b.ui.contains(this.containers[l].element[0],
this.currentItem[0])&&!h){a.push(function(n){return function(g){n._trigger("receive",g,this._uiHash(this))}}.call(this,this.containers[l]));a.push(function(n){return function(g){n._trigger("update",g,this._uiHash(this))}}.call(this,this.containers[l]))}}for(l=this.containers.length-1;l>=0;l--){h||a.push(function(n){return function(g){n._trigger("deactivate",g,this._uiHash(this))}}.call(this,this.containers[l]));if(this.containers[l].containerCache.over){a.push(function(n){return function(g){n._trigger("out",
g,this._uiHash(this))}}.call(this,this.containers[l]));this.containers[l].containerCache.over=0}}this._storedCursor&&b("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!h){this._trigger("beforeStop",d,this._uiHash());for(l=0;l<a.length;l++)a[l].call(this,d);this._trigger("stop",d,this._uiHash())}return false}h||
this._trigger("beforeStop",d,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!h){for(l=0;l<a.length;l++)a[l].call(this,d);this._trigger("stop",d,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){b.widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(d){var h=d||this;return{helper:h.helper,placeholder:h.placeholder||b([]),position:h.position,
absolutePosition:h.positionAbs,offset:h.positionAbs,item:h.currentItem,sender:d?d.element:null}}}));b.extend(b.ui.sortable,{getter:"serialize toArray",version:"1.7.2",eventPrefix:"sort",defaults:{appendTo:"parent",axis:false,cancel:":input,option",connectWith:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,
scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3}})})(jQuery);
(function(b){b.widget("ui.accordion",{_init:function(){var d=this.options,h=this;this.running=0;if(d.collapsible==b.ui.accordion.defaults.collapsible&&d.alwaysOpen!=b.ui.accordion.defaults.alwaysOpen)d.collapsible=!d.alwaysOpen;if(d.navigation){var a=this.element.find("a").filter(d.navigationFilter);if(a.length)if(a.filter(d.header).length)this.active=a;else{this.active=a.parent().parent().prev();a.addClass("ui-accordion-content-active")}}this.element.addClass("ui-accordion ui-widget ui-helper-reset");this.element[0].nodeName==
"UL"&&this.element.children("li").addClass("ui-accordion-li-fix");this.headers=this.element.find(d.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){b(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){b(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){b(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){b(this).removeClass("ui-state-focus")});this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
this.active=this._findActive(this.active||d.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");this.active.next().addClass("ui-accordion-content-active");b("<span/>").addClass("ui-icon "+d.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(d.icons.header).toggleClass(d.icons.headerSelected);b.browser.msie&&this.element.find("a").css("zoom","1");this.resize();this.element.attr("role","tablist");
this.headers.attr("role","tab").bind("keydown",function(l){return h._keydown(l)}).next().attr("role","tabpanel");this.headers.not(this.active||"").attr("aria-expanded","false").attr("tabIndex","-1").next().hide();this.active.length?this.active.attr("aria-expanded","true").attr("tabIndex","0"):this.headers.eq(0).attr("tabIndex","0");b.browser.safari||this.headers.find("a").attr("tabIndex","-1");d.event&&this.headers.bind(d.event+".accordion",function(l){return h._clickHandler.call(h,l,this)})},destroy:function(){var d=
this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role").unbind(".accordion").removeData("accordion");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabindex");this.headers.find("a").removeAttr("tabindex");this.headers.children(".ui-icon").remove();var h=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active");
if(d.autoHeight||d.fillHeight)h.css("height","")},_setData:function(d,h){if(d=="alwaysOpen"){d="collapsible";h=!h}b.widget.prototype._setData.apply(this,arguments)},_keydown:function(d){var h=b.ui.keyCode;if(!(this.options.disabled||d.altKey||d.ctrlKey)){var a=this.headers.length,l=this.headers.index(d.target),n=false;switch(d.keyCode){case h.RIGHT:case h.DOWN:n=this.headers[(l+1)%a];break;case h.LEFT:case h.UP:n=this.headers[(l-1+a)%a];break;case h.SPACE:case h.ENTER:return this._clickHandler({target:d.target},
d.target)}if(n){b(d.target).attr("tabIndex","-1");b(n).attr("tabIndex","0");n.focus();return false}return true}},resize:function(){var d=this.options,h;if(d.fillSpace){if(b.browser.msie){var a=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}h=this.element.parent().height();b.browser.msie&&this.element.parent().css("overflow",a);this.headers.each(function(){h-=b(this).outerHeight()});var l=0;this.headers.next().each(function(){l=Math.max(l,b(this).innerHeight()-
b(this).height())}).height(Math.max(0,h-l)).css("overflow","auto")}else if(d.autoHeight){h=0;this.headers.next().each(function(){h=Math.max(h,b(this).outerHeight())}).height(h)}},activate:function(d){d=this._findActive(d)[0];this._clickHandler({target:d},d)},_findActive:function(d){return d?typeof d=="number"?this.headers.filter(":eq("+d+")"):this.headers.not(this.headers.not(d)):d===false?b([]):this.headers.filter(":eq(0)")},_clickHandler:function(d,h){var a=this.options;if(a.disabled)return false;
if(!d.target&&a.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(a.icons.headerSelected).addClass(a.icons.header);this.active.next().addClass("ui-accordion-content-active");d=this.active.next();a={options:a,newHeader:b([]),oldHeader:a.active,newContent:b([]),oldContent:d};h=this.active=b([]);this._toggle(h,d,a);return false}var l=b(d.currentTarget||h),n=l[0]==this.active[0];if(this.running||!a.collapsible&&
n)return false;this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(a.icons.headerSelected).addClass(a.icons.header);this.active.next().addClass("ui-accordion-content-active");if(!n){l.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").find(".ui-icon").removeClass(a.icons.header).addClass(a.icons.headerSelected);l.next().addClass("ui-accordion-content-active")}h=l.next();d=this.active.next();
a={options:a,newHeader:n&&a.collapsible?b([]):l,oldHeader:this.active,newContent:n&&a.collapsible?b([]):h.find("> *"),oldContent:d.find("> *")};var g=this.headers.index(this.active[0])>this.headers.index(l[0]);this.active=n?b([]):l;this._toggle(h,d,a,n,g);return false},_toggle:function(d,h,a,l,n){var g=this.options,e=this;this.toShow=d;this.toHide=h;this.data=a;var k=function(){if(e)return e._completed.apply(e,arguments)};this._trigger("changestart",null,this.data);this.running=h.size()===0?d.size():
h.size();if(g.animated){a={};a=g.collapsible&&l?{toShow:b([]),toHide:h,complete:k,down:n,autoHeight:g.autoHeight||g.fillSpace}:{toShow:d,toHide:h,complete:k,down:n,autoHeight:g.autoHeight||g.fillSpace};if(!g.proxied)g.proxied=g.animated;if(!g.proxiedDuration)g.proxiedDuration=g.duration;g.animated=b.isFunction(g.proxied)?g.proxied(a):g.proxied;g.duration=b.isFunction(g.proxiedDuration)?g.proxiedDuration(a):g.proxiedDuration;l=b.ui.accordion.animations;var r=g.duration,v=g.animated;l[v]||(l[v]=function(D){this.slide(D,
{easing:v,duration:r||700})});l[v](a)}else{if(g.collapsible&&l)d.toggle();else{h.hide();d.show()}k(true)}h.prev().attr("aria-expanded","false").attr("tabIndex","-1").blur();d.prev().attr("aria-expanded","true").attr("tabIndex","0").focus()},_completed:function(d){var h=this.options;this.running=d?0:--this.running;if(!this.running){h.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this._trigger("change",null,this.data)}}});b.extend(b.ui.accordion,{version:"1.7.2",defaults:{active:null,
alwaysOpen:true,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},animations:{slide:function(d,h){d=b.extend({easing:"swing",duration:300},d,h);if(d.toHide.size())if(d.toShow.size()){var a=d.toShow.css("overflow"),l,n={},g={},
e;h=d.toShow;e=h[0].style.width;h.width(parseInt(h.parent().width(),10)-parseInt(h.css("paddingLeft"),10)-parseInt(h.css("paddingRight"),10)-(parseInt(h.css("borderLeftWidth"),10)||0)-(parseInt(h.css("borderRightWidth"),10)||0));b.each(["height","paddingTop","paddingBottom"],function(k,r){g[r]="hide";k=(""+b.css(d.toShow[0],r)).match(/^([\d+-.]+)(.*)$/);n[r]={value:k[1],unit:k[2]||"px"}});d.toShow.css({height:0,overflow:"hidden"}).show();d.toHide.filter(":hidden").each(d.complete).end().filter(":visible").animate(g,
{step:function(k,r){if(r.prop=="height")l=(r.now-r.start)/(r.end-r.start);d.toShow[0].style[r.prop]=l*n[r.prop].value+n[r.prop].unit},duration:d.duration,easing:d.easing,complete:function(){d.autoHeight||d.toShow.css("height","");d.toShow.css("width",e);d.toShow.css({overflow:a});d.complete()}})}else d.toHide.animate({height:"hide"},d);else d.toShow.animate({height:"show"},d)},bounceslide:function(d){this.slide(d,{easing:d.down?"easeOutBounce":"swing",duration:d.down?1E3:200})},easeslide:function(d){this.slide(d,
{easing:"easeinout",duration:700})}}})})(jQuery);
(function(b){b.widget("ui.slider",b.extend({},b.ui.mouse,{_init:function(){var d=this,h=this.options;this._keySliding=false;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");this.range=b([]);if(h.range){if(h.range===true){this.range=b("<div></div>");if(!h.values)h.values=[this._valueMin(),this._valueMin()];if(h.values.length&&h.values.length!=2)h.values=[h.values[0],h.values[0]]}else this.range=
b("<div></div>");this.range.appendTo(this.element).addClass("ui-slider-range");if(h.range=="min"||h.range=="max")this.range.addClass("ui-slider-range-"+h.range);this.range.addClass("ui-widget-header")}b(".ui-slider-handle",this.element).length==0&&b('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle");if(h.values&&h.values.length)for(;b(".ui-slider-handle",this.element).length<h.values.length;)b('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle");this.handles=
b(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(a){a.preventDefault()}).hover(function(){h.disabled||b(this).addClass("ui-state-hover")},function(){b(this).removeClass("ui-state-hover")}).focus(function(){if(h.disabled)b(this).blur();else{b(".ui-slider .ui-state-focus").removeClass("ui-state-focus");b(this).addClass("ui-state-focus")}}).blur(function(){b(this).removeClass("ui-state-focus")});
this.handles.each(function(a){b(this).data("index.ui-slider-handle",a)});this.handles.keydown(function(a){var l=true,n=b(this).data("index.ui-slider-handle");if(!d.options.disabled){switch(a.keyCode){case b.ui.keyCode.HOME:case b.ui.keyCode.END:case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:l=false;if(!d._keySliding){d._keySliding=true;b(this).addClass("ui-state-active");d._start(a,n)}break}var g,e,k=d._step();g=d.options.values&&d.options.values.length?
(e=d.values(n)):(e=d.value());switch(a.keyCode){case b.ui.keyCode.HOME:e=d._valueMin();break;case b.ui.keyCode.END:e=d._valueMax();break;case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:if(g==d._valueMax())return;e=g+k;break;case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:if(g==d._valueMin())return;e=g-k;break}d._slide(a,n,e);return l}}).keyup(function(a){var l=b(this).data("index.ui-slider-handle");if(d._keySliding){d._stop(a,l);d._change(a,l);d._keySliding=false;b(this).removeClass("ui-state-active")}});
this._refreshValue()},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy()},_mouseCapture:function(d){var h=this.options;if(h.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();var a={x:d.pageX,y:d.pageY},
l=this._normValueFromMouse(a),n=this._valueMax()-this._valueMin()+1,g,e=this,k;this.handles.each(function(r){var v=Math.abs(l-e.values(r));if(n>v){n=v;g=b(this);k=r}});if(h.range==true&&this.values(1)==h.min)g=b(this.handles[++k]);this._start(d,k);e._handleIndex=k;g.addClass("ui-state-active").focus();h=g.offset();this._clickOffset=!b(d.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:d.pageX-h.left-g.width()/2,top:d.pageY-h.top-g.height()/2-(parseInt(g.css("borderTopWidth"),
10)||0)-(parseInt(g.css("borderBottomWidth"),10)||0)+(parseInt(g.css("marginTop"),10)||0)};l=this._normValueFromMouse(a);this._slide(d,k,l);return true},_mouseStart:function(){return true},_mouseDrag:function(d){var h=this._normValueFromMouse({x:d.pageX,y:d.pageY});this._slide(d,this._handleIndex,h);return false},_mouseStop:function(d){this.handles.removeClass("ui-state-active");this._stop(d,this._handleIndex);this._change(d,this._handleIndex);this._clickOffset=this._handleIndex=null;return false},
_detectOrientation:function(){this.orientation=this.options.orientation=="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(d){var h;if("horizontal"==this.orientation){h=this.elementSize.width;d=d.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{h=this.elementSize.height;d=d.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}h=d/h;if(h>1)h=1;if(h<0)h=0;if("vertical"==this.orientation)h=1-h;d=this._valueMax()-this._valueMin();d=h*d;h=d%this.options.step;
d=this._valueMin()+d-h;if(h>this.options.step/2)d+=this.options.step;return parseFloat(d.toFixed(5))},_start:function(d,h){var a={handle:this.handles[h],value:this.value()};if(this.options.values&&this.options.values.length){a.value=this.values(h);a.values=this.values()}this._trigger("start",d,a)},_slide:function(d,h,a){if(this.options.values&&this.options.values.length){var l=this.values(h?0:1);if(this.options.values.length==2&&this.options.range===true&&(h==0&&a>l||h==1&&a<l))a=l;if(a!=this.values(h)){l=
this.values();l[h]=a;l=this._trigger("slide",d,{handle:this.handles[h],value:a,values:l});this.values(h?0:1);l!==false&&this.values(h,a,d.type=="mousedown"&&this.options.animate,true)}}else if(a!=this.value()){l=this._trigger("slide",d,{handle:this.handles[h],value:a});l!==false&&this._setData("value",a,d.type=="mousedown"&&this.options.animate)}},_stop:function(d,h){var a={handle:this.handles[h],value:this.value()};if(this.options.values&&this.options.values.length){a.value=this.values(h);a.values=
this.values()}this._trigger("stop",d,a)},_change:function(d,h){var a={handle:this.handles[h],value:this.value()};if(this.options.values&&this.options.values.length){a.value=this.values(h);a.values=this.values()}this._trigger("change",d,a)},value:function(d){if(arguments.length){this._setData("value",d);this._change(null,0)}return this._value()},values:function(d,h,a,l){if(arguments.length>1){this.options.values[d]=h;this._refreshValue(a);l||this._change(null,d)}return arguments.length?this.options.values&&
this.options.values.length?this._values(d):this.value():this._values()},_setData:function(d,h,a){b.widget.prototype._setData.apply(this,arguments);switch(d){case "disabled":if(h){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled")}else this.handles.removeAttr("disabled");case "orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);
this._refreshValue(a);break;case "value":this._refreshValue(a);break}},_step:function(){return this.options.step},_value:function(){var d=this.options.value;if(d<this._valueMin())d=this._valueMin();if(d>this._valueMax())d=this._valueMax();return d},_values:function(d){if(arguments.length){var h=this.options.values[d];if(h<this._valueMin())h=this._valueMin();if(h>this._valueMax())h=this._valueMax();return h}else return this.options.values},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},
_refreshValue:function(d){var h=this.options.range,a=this.options,l=this;if(this.options.values&&this.options.values.length)this.handles.each(function(k){var r=(l.values(k)-l._valueMin())/(l._valueMax()-l._valueMin())*100,v={};v[l.orientation=="horizontal"?"left":"bottom"]=r+"%";b(this).stop(1,1)[d?"animate":"css"](v,a.animate);if(l.options.range===true)if(l.orientation=="horizontal"){k==0&&l.range.stop(1,1)[d?"animate":"css"]({left:r+"%"},a.animate);k==1&&l.range[d?"animate":"css"]({width:r-lastValPercent+
"%"},{queue:false,duration:a.animate})}else{k==0&&l.range.stop(1,1)[d?"animate":"css"]({bottom:r+"%"},a.animate);k==1&&l.range[d?"animate":"css"]({height:r-lastValPercent+"%"},{queue:false,duration:a.animate})}lastValPercent=r});else{var n=this.value(),g=this._valueMin(),e=this._valueMax();n=e!=g?(n-g)/(e-g)*100:0;g={};g[l.orientation=="horizontal"?"left":"bottom"]=n+"%";this.handle.stop(1,1)[d?"animate":"css"](g,a.animate);h=="min"&&this.orientation=="horizontal"&&this.range.stop(1,1)[d?"animate":
"css"]({width:n+"%"},a.animate);h=="max"&&this.orientation=="horizontal"&&this.range[d?"animate":"css"]({width:100-n+"%"},{queue:false,duration:a.animate});h=="min"&&this.orientation=="vertical"&&this.range.stop(1,1)[d?"animate":"css"]({height:n+"%"},a.animate);h=="max"&&this.orientation=="vertical"&&this.range[d?"animate":"css"]({height:100-n+"%"},{queue:false,duration:a.animate})}}}));b.extend(b.ui.slider,{getter:"value values",version:"1.7.2",eventPrefix:"slide",defaults:{animate:false,delay:0,
distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null}})})(jQuery);
(function(b){b.widget("ui.tabs",{_init:function(){if(this.options.deselectable!==undefined)this.options.collapsible=this.options.deselectable;this._tabify(true)},_setData:function(d,h){if(d=="selected")this.options.collapsible&&h==this.options.selected||this.select(h);else{this.options[d]=h;if(d=="deselectable")this.options.collapsible=h;this._tabify()}},_tabId:function(d){return d.title&&d.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+b.data(d)},_sanitizeSelector:function(d){return d.replace(/:/g,
"\\:")},_cookie:function(){var d=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+b.data(this.list[0]));return b.cookie.apply(null,[d].concat(b.makeArray(arguments)))},_ui:function(d,h){return{tab:d,panel:h,index:this.anchors.index(d)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var d=b(this);d.html(d.data("label.tabs")).removeData("label.tabs")})},_tabify:function(d){function h(L,E){L.css({display:""});
b.browser.msie&&E.opacity&&L[0].style.removeAttribute("filter")}this.list=this.element.children("ul:first");this.lis=b("li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return b("a",this)[0]});this.panels=b([]);var a=this,l=this.options,n=/^#.+/;this.anchors.each(function(L,E){var s=b(E).attr("href"),f=s.split("#")[0],A;if(f&&(f===location.toString().split("#")[0]||(A=b("base")[0])&&f===A.href)){s=E.hash;E.href=s}if(n.test(s))a.panels=a.panels.add(a._sanitizeSelector(s));else if(s!=
"#"){b.data(E,"href.tabs",s);b.data(E,"load.tabs",s.replace(/#.*$/,""));s=a._tabId(E);E.href="#"+s;E=b("#"+s);if(!E.length){E=b(l.panelTemplate).attr("id",s).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(a.panels[L-1]||a.list);E.data("destroy.tabs",true)}a.panels=a.panels.add(E)}else l.disabled.push(L)});if(d){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");
this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(l.selected===undefined){location.hash&&this.anchors.each(function(L,E){if(E.hash==location.hash){l.selected=L;return false}});if(typeof l.selected!="number"&&l.cookie)l.selected=parseInt(a._cookie(),10);if(typeof l.selected!="number"&&this.lis.filter(".ui-tabs-selected").length)l.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));l.selected=l.selected||0}else if(l.selected===
null)l.selected=-1;l.selected=l.selected>=0&&this.anchors[l.selected]||l.selected<0?l.selected:0;l.disabled=b.unique(l.disabled.concat(b.map(this.lis.filter(".ui-state-disabled"),function(L){return a.lis.index(L)}))).sort();b.inArray(l.selected,l.disabled)!=-1&&l.disabled.splice(b.inArray(l.selected,l.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");if(l.selected>=0&&this.anchors.length){this.panels.eq(l.selected).removeClass("ui-tabs-hide");
this.lis.eq(l.selected).addClass("ui-tabs-selected ui-state-active");a.element.queue("tabs",function(){a._trigger("show",null,a._ui(a.anchors[l.selected],a.panels[l.selected]))});this.load(l.selected)}b(window).bind("unload",function(){a.lis.add(a.anchors).unbind(".tabs");a.lis=a.anchors=a.panels=null})}else l.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));this.element[l.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");l.cookie&&this._cookie(l.selected,l.cookie);d=0;for(var g;g=
this.lis[d];d++)b(g)[b.inArray(d,l.disabled)!=-1&&!b(g).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");l.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(l.event!="mouseover"){var e=function(L,E){E.is(":not(.ui-state-disabled)")&&E.addClass("ui-state-"+L)},k=function(L,E){E.removeClass("ui-state-"+L)};this.lis.bind("mouseover.tabs",function(){e("hover",b(this))});this.lis.bind("mouseout.tabs",function(){k("hover",b(this))});
this.anchors.bind("focus.tabs",function(){e("focus",b(this).closest("li"))});this.anchors.bind("blur.tabs",function(){k("focus",b(this).closest("li"))})}var r,v;if(l.fx)if(b.isArray(l.fx)){r=l.fx[0];v=l.fx[1]}else r=v=l.fx;var D=v?function(L,E){b(L).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active");E.hide().removeClass("ui-tabs-hide").animate(v,v.duration||"normal",function(){h(E,v);a._trigger("show",null,a._ui(L,E[0]))})}:function(L,E){b(L).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active");
E.removeClass("ui-tabs-hide");a._trigger("show",null,a._ui(L,E[0]))},O=r?function(L,E){E.animate(r,r.duration||"normal",function(){a.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default");E.addClass("ui-tabs-hide");h(E,r);a.element.dequeue("tabs")})}:function(L,E){a.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default");E.addClass("ui-tabs-hide");a.element.dequeue("tabs")};this.anchors.bind(l.event+".tabs",function(){var L=this,E=b(this).closest("li"),
s=a.panels.filter(":not(.ui-tabs-hide)"),f=b(a._sanitizeSelector(this.hash));if(E.hasClass("ui-tabs-selected")&&!l.collapsible||E.hasClass("ui-state-disabled")||E.hasClass("ui-state-processing")||a._trigger("select",null,a._ui(this,f[0]))===false){this.blur();return false}l.selected=a.anchors.index(this);a.abort();if(l.collapsible)if(E.hasClass("ui-tabs-selected")){l.selected=-1;l.cookie&&a._cookie(l.selected,l.cookie);a.element.queue("tabs",function(){O(L,s)}).dequeue("tabs");this.blur();return false}else if(!s.length){l.cookie&&
a._cookie(l.selected,l.cookie);a.element.queue("tabs",function(){D(L,f)});a.load(a.anchors.index(this));this.blur();return false}l.cookie&&a._cookie(l.selected,l.cookie);if(f.length){s.length&&a.element.queue("tabs",function(){O(L,s)});a.element.queue("tabs",function(){D(L,f)});a.load(a.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier.";b.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},destroy:function(){var d=this.options;this.abort();
this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var h=b.data(this,"href.tabs");if(h)this.href=h;var a=b(this).unbind(".tabs");b.each(["href","load","cache"],function(l,n){a.removeData(n+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){b.data(this,"destroy.tabs")?
b(this).remove():b(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")});d.cookie&&this._cookie(null,d.cookie)},add:function(d,h,a){if(a===undefined)a=this.anchors.length;var l=this,n=this.options;h=b(n.tabTemplate.replace(/#\{href\}/g,d).replace(/#\{label\}/g,h));d=!d.indexOf("#")?d.replace("#",""):this._tabId(b("a",h)[0]);h.addClass("ui-state-default ui-corner-top").data("destroy.tabs",
true);var g=b("#"+d);g.length||(g=b(n.panelTemplate).attr("id",d).data("destroy.tabs",true));g.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(a>=this.lis.length){h.appendTo(this.list);g.appendTo(this.list[0].parentNode)}else{h.insertBefore(this.lis[a]);g.insertBefore(this.panels[a])}n.disabled=b.map(n.disabled,function(e){return e>=a?++e:e});this._tabify();if(this.anchors.length==1){h.addClass("ui-tabs-selected ui-state-active");g.removeClass("ui-tabs-hide");this.element.queue("tabs",
function(){l._trigger("show",null,l._ui(l.anchors[0],l.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[a],this.panels[a]))},remove:function(d){var h=this.options,a=this.lis.eq(d).remove(),l=this.panels.eq(d).remove();if(a.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(d+(d+1<this.anchors.length?1:-1));h.disabled=b.map(b.grep(h.disabled,function(n){return n!=d}),function(n){return n>=d?--n:n});this._tabify();this._trigger("remove",null,this._ui(a.find("a")[0],
l[0]))},enable:function(d){var h=this.options;if(b.inArray(d,h.disabled)!=-1){this.lis.eq(d).removeClass("ui-state-disabled");h.disabled=b.grep(h.disabled,function(a){return a!=d});this._trigger("enable",null,this._ui(this.anchors[d],this.panels[d]))}},disable:function(d){var h=this.options;if(d!=h.selected){this.lis.eq(d).addClass("ui-state-disabled");h.disabled.push(d);h.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[d],this.panels[d]))}},select:function(d){if(typeof d=="string")d=
this.anchors.index(this.anchors.filter("[href$="+d+"]"));else if(d===null)d=-1;if(d==-1&&this.options.collapsible)d=this.options.selected;this.anchors.eq(d).trigger(this.options.event+".tabs")},load:function(d){var h=this,a=this.options,l=this.anchors.eq(d)[0],n=b.data(l,"load.tabs");this.abort();if(!n||this.element.queue("tabs").length!==0&&b.data(l,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(d).addClass("ui-state-processing");if(a.spinner){var g=b("span",l);g.data("label.tabs",g.html()).html(a.spinner)}this.xhr=
b.ajax(b.extend({},a.ajaxOptions,{url:n,success:function(e,k){b(h._sanitizeSelector(l.hash)).html(e);h._cleanup();a.cache&&b.data(l,"cache.tabs",true);h._trigger("load",null,h._ui(h.anchors[d],h.panels[d]));try{a.ajaxOptions.success(e,k)}catch(r){}h.element.dequeue("tabs")}}))}},abort:function(){this.element.queue([]);this.panels.stop(false,true);if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup()},url:function(d,h){this.anchors.eq(d).removeData("cache.tabs").data("load.tabs",h)},length:function(){return this.anchors.length}});
b.extend(b.ui.tabs,{version:"1.7.2",getter:"length",defaults:{ajaxOptions:null,cache:false,cookie:null,collapsible:false,disabled:[],event:"click",fx:null,idPrefix:"ui-tabs-",panelTemplate:"<div></div>",spinner:"<em>Loading&#8230;</em>",tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>'}});b.extend(b.ui.tabs.prototype,{rotation:null,rotate:function(d,h){var a=this,l=this.options,n=a._rotate||(a._rotate=function(g){clearTimeout(a.rotation);a.rotation=setTimeout(function(){var e=l.selected;
a.select(++e<a.anchors.length?e:0)},d);g&&g.stopPropagation()});h=a._unrotate||(a._unrotate=!h?function(g){g.clientX&&a.rotate(null)}:function(){t=l.selected;n()});if(d){this.element.bind("tabsshow",n);this.anchors.bind(l.event+".tabs",h);n()}else{clearTimeout(a.rotation);this.element.unbind("tabsshow",n);this.anchors.unbind(l.event+".tabs",h);delete this._rotate;delete this._unrotate}}})})(jQuery);
jQuery.effects||function(b){function d(n,g){var e=n[1]&&n[1].constructor==Object?n[1]:{};if(g)e.mode=g;g=n[1]&&n[1].constructor!=Object?n[1]:e.duration?e.duration:n[2];g=b.fx.off?0:typeof g==="number"?g:b.fx.speeds[g]||b.fx.speeds._default;var k=e.callback||b.isFunction(n[1])&&n[1]||b.isFunction(n[2])&&n[2]||b.isFunction(n[3])&&n[3];return[n[0],e,g,k]}function h(n){var g;if(n&&n.constructor==Array&&n.length==3)return n;if(g=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(n))return[parseInt(g[1],
10),parseInt(g[2],10),parseInt(g[3],10)];if(g=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(n))return[parseFloat(g[1])*2.55,parseFloat(g[2])*2.55,parseFloat(g[3])*2.55];if(g=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(n))return[parseInt(g[1],16),parseInt(g[2],16),parseInt(g[3],16)];if(g=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(n))return[parseInt(g[1]+g[1],16),parseInt(g[2]+g[2],16),parseInt(g[3]+g[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(n))return l.transparent;
return l[b.trim(n).toLowerCase()]}function a(n,g){var e;do{e=b.curCSS(n,g);if(e!=""&&e!="transparent"||b.nodeName(n,"body"))break;g="backgroundColor"}while(n=n.parentNode);return h(e)}b.effects={version:"1.7.2",save:function(n,g){for(var e=0;e<g.length;e++)g[e]!==null&&n.data("ec.storage."+g[e],n[0].style[g[e]])},restore:function(n,g){for(var e=0;e<g.length;e++)g[e]!==null&&n.css(g[e],n.data("ec.storage."+g[e]))},setMode:function(n,g){if(g=="toggle")g=n.is(":hidden")?"show":"hide";return g},getBaseline:function(n,
g){var e;switch(n[0]){case "top":e=0;break;case "middle":e=0.5;break;case "bottom":e=1;break;default:e=n[0]/g.height}switch(n[1]){case "left":n=0;break;case "center":n=0.5;break;case "right":n=1;break;default:n=n[1]/g.width}return{x:n,y:e}},createWrapper:function(n){if(n.parent().is(".ui-effects-wrapper"))return n.parent();var g={width:n.outerWidth(true),height:n.outerHeight(true),"float":n.css("float")};n.wrap('<div class="ui-effects-wrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');
var e=n.parent();if(n.css("position")=="static"){e.css({position:"relative"});n.css({position:"relative"})}else{var k=n.css("top");if(isNaN(parseInt(k,10)))k="auto";var r=n.css("left");if(isNaN(parseInt(r,10)))r="auto";e.css({position:n.css("position"),top:k,left:r,zIndex:n.css("z-index")}).show();n.css({position:"relative",top:0,left:0})}e.css(g);return e},removeWrapper:function(n){if(n.parent().is(".ui-effects-wrapper"))return n.parent().replaceWith(n);return n},setTransition:function(n,g,e,k){k=
k||{};b.each(g,function(r,v){unit=n.cssUnit(v);if(unit[0]>0)k[v]=unit[0]*e+unit[1]});return k},animateClass:function(n,g,e,k){var r=typeof e=="function"?e:k?k:null,v=typeof e=="string"?e:null;return this.each(function(){var D={},O=b(this),L=O.attr("style")||"";if(typeof L=="object")L=L.cssText;if(n.toggle)O.hasClass(n.toggle)?(n.remove=n.toggle):(n.add=n.toggle);var E=b.extend({},document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle);n.add&&O.addClass(n.add);n.remove&&
O.removeClass(n.remove);var s=b.extend({},document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle);n.add&&O.removeClass(n.add);n.remove&&O.addClass(n.remove);for(var f in s)if(typeof s[f]!="function"&&s[f]&&f.indexOf("Moz")==-1&&f.indexOf("length")==-1&&s[f]!=E[f]&&(f.match(/color/i)||!f.match(/color/i)&&!isNaN(parseInt(s[f],10)))&&(E.position!="static"||E.position=="static"&&!f.match(/left|top|bottom|right/)))D[f]=s[f];O.animate(D,g,v,function(){if(typeof b(this).attr("style")==
"object"){b(this).attr("style").cssText="";b(this).attr("style").cssText=L}else b(this).attr("style",L);n.add&&b(this).addClass(n.add);n.remove&&b(this).removeClass(n.remove);r&&r.apply(this,arguments)})})}};b.fn.extend({_show:b.fn.show,_hide:b.fn.hide,__toggle:b.fn.toggle,_addClass:b.fn.addClass,_removeClass:b.fn.removeClass,_toggleClass:b.fn.toggleClass,effect:function(n,g,e,k){return b.effects[n]?b.effects[n].call(this,{method:n,options:g||{},duration:e,callback:k}):null},show:function(){return!arguments[0]||
arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0])?this._show.apply(this,arguments):this.effect.apply(this,d(arguments,"show"))},hide:function(){return!arguments[0]||arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0])?this._hide.apply(this,arguments):this.effect.apply(this,d(arguments,"hide"))},toggle:function(){return!arguments[0]||arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0])||b.isFunction(arguments[0])||typeof arguments[0]==
"boolean"?this.__toggle.apply(this,arguments):this.effect.apply(this,d(arguments,"toggle"))},addClass:function(n,g,e,k){return g?b.effects.animateClass.apply(this,[{add:n},g,e,k]):this._addClass(n)},removeClass:function(n,g,e,k){return g?b.effects.animateClass.apply(this,[{remove:n},g,e,k]):this._removeClass(n)},toggleClass:function(n,g,e,k){return typeof g!=="boolean"&&g?b.effects.animateClass.apply(this,[{toggle:n},g,e,k]):this._toggleClass(n,g)},morph:function(n,g,e,k,r){return b.effects.animateClass.apply(this,
[{add:g,remove:n},e,k,r])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(n){var g=this.css(n),e=[];b.each(["em","px","%","pt"],function(k,r){if(g.indexOf(r)>0)e=[parseFloat(g),r]});return e}});b.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(n,g){b.fx.step[g]=function(e){if(e.state==0){e.start=a(e.elem,g);e.end=h(e.end)}e.elem.style[g]="rgb("+[Math.max(Math.min(parseInt(e.pos*(e.end[0]-
e.start[0])+e.start[0],10),255),0),Math.max(Math.min(parseInt(e.pos*(e.end[1]-e.start[1])+e.start[1],10),255),0),Math.max(Math.min(parseInt(e.pos*(e.end[2]-e.start[2])+e.start[2],10),255),0)].join(",")+")"}});var l={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,
140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,
0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};b.easing.jswing=b.easing.swing;b.extend(b.easing,{def:"easeOutQuad",swing:function(n,g,e,k,r){return b.easing[b.easing.def](n,g,e,k,r)},easeInQuad:function(n,g,e,k,r){return k*(g/=r)*g+e},easeOutQuad:function(n,g,e,k,r){return-k*(g/=r)*(g-2)+e},easeInOutQuad:function(n,g,e,k,r){if((g/=r/2)<1)return k/2*g*g+e;return-k/2*(--g*(g-2)-1)+e},easeInCubic:function(n,g,e,k,r){return k*(g/=r)*g*g+e},easeOutCubic:function(n,
g,e,k,r){return k*((g=g/r-1)*g*g+1)+e},easeInOutCubic:function(n,g,e,k,r){if((g/=r/2)<1)return k/2*g*g*g+e;return k/2*((g-=2)*g*g+2)+e},easeInQuart:function(n,g,e,k,r){return k*(g/=r)*g*g*g+e},easeOutQuart:function(n,g,e,k,r){return-k*((g=g/r-1)*g*g*g-1)+e},easeInOutQuart:function(n,g,e,k,r){if((g/=r/2)<1)return k/2*g*g*g*g+e;return-k/2*((g-=2)*g*g*g-2)+e},easeInQuint:function(n,g,e,k,r){return k*(g/=r)*g*g*g*g+e},easeOutQuint:function(n,g,e,k,r){return k*((g=g/r-1)*g*g*g*g+1)+e},easeInOutQuint:function(n,
g,e,k,r){if((g/=r/2)<1)return k/2*g*g*g*g*g+e;return k/2*((g-=2)*g*g*g*g+2)+e},easeInSine:function(n,g,e,k,r){return-k*Math.cos(g/r*(Math.PI/2))+k+e},easeOutSine:function(n,g,e,k,r){return k*Math.sin(g/r*(Math.PI/2))+e},easeInOutSine:function(n,g,e,k,r){return-k/2*(Math.cos(Math.PI*g/r)-1)+e},easeInExpo:function(n,g,e,k,r){return g==0?e:k*Math.pow(2,10*(g/r-1))+e},easeOutExpo:function(n,g,e,k,r){return g==r?e+k:k*(-Math.pow(2,-10*g/r)+1)+e},easeInOutExpo:function(n,g,e,k,r){if(g==0)return e;if(g==
r)return e+k;if((g/=r/2)<1)return k/2*Math.pow(2,10*(g-1))+e;return k/2*(-Math.pow(2,-10*--g)+2)+e},easeInCirc:function(n,g,e,k,r){return-k*(Math.sqrt(1-(g/=r)*g)-1)+e},easeOutCirc:function(n,g,e,k,r){return k*Math.sqrt(1-(g=g/r-1)*g)+e},easeInOutCirc:function(n,g,e,k,r){if((g/=r/2)<1)return-k/2*(Math.sqrt(1-g*g)-1)+e;return k/2*(Math.sqrt(1-(g-=2)*g)+1)+e},easeInElastic:function(n,g,e,k,r){n=1.70158;var v=0,D=k;if(g==0)return e;if((g/=r)==1)return e+k;v||(v=r*0.3);if(D<Math.abs(k)){D=k;n=v/4}else n=
v/(2*Math.PI)*Math.asin(k/D);return-(D*Math.pow(2,10*(g-=1))*Math.sin((g*r-n)*2*Math.PI/v))+e},easeOutElastic:function(n,g,e,k,r){n=1.70158;var v=0,D=k;if(g==0)return e;if((g/=r)==1)return e+k;v||(v=r*0.3);if(D<Math.abs(k)){D=k;n=v/4}else n=v/(2*Math.PI)*Math.asin(k/D);return D*Math.pow(2,-10*g)*Math.sin((g*r-n)*2*Math.PI/v)+k+e},easeInOutElastic:function(n,g,e,k,r){n=1.70158;var v=0,D=k;if(g==0)return e;if((g/=r/2)==2)return e+k;v||(v=r*0.3*1.5);if(D<Math.abs(k)){D=k;n=v/4}else n=v/(2*Math.PI)*Math.asin(k/
D);if(g<1)return-0.5*D*Math.pow(2,10*(g-=1))*Math.sin((g*r-n)*2*Math.PI/v)+e;return D*Math.pow(2,-10*(g-=1))*Math.sin((g*r-n)*2*Math.PI/v)*0.5+k+e},easeInBack:function(n,g,e,k,r,v){if(v==undefined)v=1.70158;return k*(g/=r)*g*((v+1)*g-v)+e},easeOutBack:function(n,g,e,k,r,v){if(v==undefined)v=1.70158;return k*((g=g/r-1)*g*((v+1)*g+v)+1)+e},easeInOutBack:function(n,g,e,k,r,v){if(v==undefined)v=1.70158;if((g/=r/2)<1)return k/2*g*g*(((v*=1.525)+1)*g-v)+e;return k/2*((g-=2)*g*(((v*=1.525)+1)*g+v)+2)+e},
easeInBounce:function(n,g,e,k,r){return k-b.easing.easeOutBounce(n,r-g,0,k,r)+e},easeOutBounce:function(n,g,e,k,r){return(g/=r)<1/2.75?k*7.5625*g*g+e:g<2/2.75?k*(7.5625*(g-=1.5/2.75)*g+0.75)+e:g<2.5/2.75?k*(7.5625*(g-=2.25/2.75)*g+0.9375)+e:k*(7.5625*(g-=2.625/2.75)*g+0.984375)+e},easeInOutBounce:function(n,g,e,k,r){if(g<r/2)return b.easing.easeInBounce(n,g*2,0,k,r)*0.5+e;return b.easing.easeOutBounce(n,g*2-r,0,k,r)*0.5+k*0.5+e}})}(jQuery);
if(navigator.platform=="iPad"||navigator.platform=="iPhone"||navigator.platform=="iPod"){(function(b){b.iPhone={init:function(){b(window).bind("orientationchange",b.iPhone.updateOrientation);this.updateOrientation();b("body").css({"min-height":"420px","min-width":"320px"})},orientation:"portrait",updateOrientation:function(){this.orientation=window.orientation===0||window.orientation==null||window.orientation===180?"portrait":"landscape";b("body").attr("orient",this.orientation);setTimeout(b.iPhone.hideURL,
100)},hideURL:function(){window.scrollTo(0,1);setTimeout(function(){window.scrollTo(0,0)},0)},preloadImages:function(d){b(d).each(function(h,a){(new Image).src=a})}};b.fn.addTouch=function(){this.each(function(h,a){b(a).bind("touchstart touchmove touchend touchcancel",function(){d(event)})});var d=function(h){var a=h.changedTouches[0],l="";switch(h.type){case "touchstart":l="mousedown";break;case "touchmove":l="mousemove";break;case "touchend":l="mouseup";break;default:return}var n=document.createEvent("MouseEvent");
n.initMouseEvent(l,true,true,window,1,a.screenX,a.screenY,a.clientX,a.clientY,false,false,false,false,0,null);a.target.dispatchEvent(n);a.target.id!="controller_hide"&&h.preventDefault()}}})(jQuery);$(document).ready(function(){$.iPhone.init();$("#dragbar").css("height","24px").addTouch();$("#controller_hide").css("margin","6px 6px 6px 0");$("#edit-about").css("height","80px");$("#panel-services .service-grid").css("width","300px");$("#panel-services .service-grid .grid-row div").css("margin","0 15px 5px 0");
$("#userpage_footer").css("position","static")})};

