/*
 * jQuery JavaScript Library v1.4.1
 * http://jquery.com/
 *
 * Copyright 2010, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2010, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Mon Jan 25 19:43:33 2010 -0500
 */
(function(I,R){function bd(){if(!ai.isReady){try{U.documentElement.doScroll("left")}catch(c){setTimeout(bd,1);return}ai.ready()}}function bh(r,c){c.src?ai.ajax({url:c.src,async:false,dataType:"script"}):ai.globalEval(c.text||c.textContent||c.innerHTML||"");c.parentNode&&c.parentNode.removeChild(c)}function aq(r,c,J,F,G,z){var v=r.length;if(typeof c==="object"){for(var K in c){aq(r,K,c[K],F,G,J)}return r}if(J!==R){F=!z&&F&&ai.isFunction(J);for(K=0;K<v;K++){G(r[K],c,F?J.call(r[K],K,G(r[K],c)):J,z)}return r}return v?G(r[0],c):null}function aG(){return(new Date).getTime()}function ap(){return false}function an(){return true}function aZ(r,c,v){v[0].type=r;return ai.event.handle.apply(c,v)}function aL(O){var L,K=[],G=[],J=arguments,F,z,r,c,v,P,N=ai.extend({},ai.data(this,"events").live);if(!(O.button&&O.type==="click")){for(c in N){z=N[c];if(z.live===O.type||z.altLive&&ai.inArray(O.type,z.altLive)>-1){F=z.data;F.beforeFilter&&F.beforeFilter[O.type]&&!F.beforeFilter[O.type](O)||G.push(z.selector)}else{delete N[c]}}F=ai(O.target).closest(G,O.currentTarget);v=0;for(P=F.length;v<P;v++){for(c in N){z=N[c];r=F[v].elem;G=null;if(F[v].selector===z.selector){if(z.live==="mouseenter"||z.live==="mouseleave"){G=ai(O.relatedTarget).closest(z.selector)[0]}if(!G||G!==r){K.push({elem:r,fn:z})}}}}v=0;for(P=K.length;v<P;v++){F=K[v];O.currentTarget=F.elem;O.data=F.fn.data;if(F.fn.apply(F.elem,J)===false){L=false;break}}return L}}function ah(r,c){return"live."+(r?r+".":"")+c.replace(/\./g,"`").replace(/ /g,"&")}function B(c){return !c||!c.parentNode||c.parentNode.nodeType===11}function m(r,c){var v=0;c.each(function(){if(this.nodeName===(r[v]&&r[v].nodeName)){var G=ai.data(r[v++]),J=ai.data(this,G);if(G=G&&G.events){delete J.handle;J.events={};for(var F in G){for(var z in G[F]){ai.event.add(this,F,G[F][z],G[F][z].data)}}}}})}function bg(r,c,G){var z,F,v;if(r.length===1&&typeof r[0]==="string"&&r[0].length<512&&r[0].indexOf("<option")<0&&(ai.support.checkClone||!a3.test(r[0]))){F=true;if(v=ai.fragments[r[0]]){if(v!==1){z=v}}}if(!z){c=c&&c[0]?c[0].ownerDocument||c[0]:U;z=c.createDocumentFragment();ai.clean(r,c,z,G)}if(F){ai.fragments[r[0]]=v?z:1}return{fragment:z,cacheable:F}}function aD(r,c){var v={};ai.each(aP.concat.apply([],aP.slice(0,c)),function(){v[this]=r});return v}function al(c){return"scrollTo" in c&&c.document?c:c.nodeType===9?c.defaultView||c.parentWindow:false}var ai=function(r,c){return new ai.fn.init(r,c)},a4=I.jQuery,aQ=I.$,U=I.document,av,am=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,H=/^.[^:#\[\.,]*$/,q=/\S/,d=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,a6=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,aA=navigator.userAgent,E=false,ay=[],aC,a1=Object.prototype.toString,aU=Object.prototype.hasOwnProperty,az=Array.prototype.push,aw=Array.prototype.slice,p=Array.prototype.indexOf;ai.fn=ai.prototype={init:function(r,c){var z,v;if(!r){return this}if(r.nodeType){this.context=this[0]=r;this.length=1;return this}if(typeof r==="string"){if((z=am.exec(r))&&(z[1]||!c)){if(z[1]){v=c?c.ownerDocument||c:U;if(r=a6.exec(r)){if(ai.isPlainObject(c)){r=[U.createElement(r[1])];ai.fn.attr.call(r,c,true)}else{r=[v.createElement(r[1])]}}else{r=bg([z[1]],[v]);r=(r.cacheable?r.fragment.cloneNode(true):r.fragment).childNodes}}else{if(c=U.getElementById(z[2])){if(c.id!==z[2]){return av.find(r)}this.length=1;this[0]=c}this.context=U;this.selector=r;return this}}else{if(!c&&/^\w+$/.test(r)){this.selector=r;this.context=U;r=U.getElementsByTagName(r)}else{return !c||c.jquery?(c||av).find(r):ai(c).find(r)}}}else{if(ai.isFunction(r)){return av.ready(r)}}if(r.selector!==R){this.selector=r.selector;this.context=r.context}return ai.isArray(r)?this.setArray(r):ai.makeArray(r,this)},selector:"",jquery:"1.4.1",length:0,size:function(){return this.length},toArray:function(){return aw.call(this,0)},get:function(c){return c==null?this.toArray():c<0?this.slice(c)[0]:this[c]},pushStack:function(r,c,v){r=ai(r||null);r.prevObject=this;r.context=this.context;if(c==="find"){r.selector=this.selector+(this.selector?" ":"")+v}else{if(c){r.selector=this.selector+"."+c+"("+v+")"}}return r},setArray:function(c){this.length=0;az.apply(this,c);return this},each:function(r,c){return ai.each(this,r,c)},ready:function(c){ai.bindReady();if(ai.isReady){c.call(U,ai)}else{ay&&ay.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(aw.apply(this,arguments),"slice",aw.call(arguments).join(","))},map:function(c){return this.pushStack(ai.map(this,function(r,v){return c.call(r,v,r)}))},end:function(){return this.prevObject||ai(null)},push:az,sort:[].sort,splice:[].splice};ai.fn.init.prototype=ai.fn;ai.extend=ai.fn.extend=function(){var r=arguments[0]||{},c=1,J=arguments.length,F=false,G,z,v,K;if(typeof r==="boolean"){F=r;r=arguments[1]||{};c=2}if(typeof r!=="object"&&!ai.isFunction(r)){r={}}if(J===c){r=this;--c}for(;c<J;c++){if((G=arguments[c])!=null){for(z in G){v=r[z];K=G[z];if(r!==K){if(F&&K&&(ai.isPlainObject(K)||ai.isArray(K))){v=v&&(ai.isPlainObject(v)||ai.isArray(v))?v:ai.isArray(K)?[]:{};r[z]=ai.extend(F,v,K)}else{if(K!==R){r[z]=K}}}}}}return r};ai.extend({noConflict:function(c){I.$=aQ;if(c){I.jQuery=a4}return ai},isReady:false,ready:function(){if(!ai.isReady){if(!U.body){return setTimeout(ai.ready,13)}ai.isReady=true;if(ay){for(var r,c=0;r=ay[c++];){r.call(U,ai)}ay=null}ai.fn.triggerHandler&&ai(U).triggerHandler("ready")}},bindReady:function(){if(!E){E=true;if(U.readyState==="complete"){return ai.ready()}if(U.addEventListener){U.addEventListener("DOMContentLoaded",aC,false);I.addEventListener("load",ai.ready,false)}else{if(U.attachEvent){U.attachEvent("onreadystatechange",aC);I.attachEvent("onload",ai.ready);var r=false;try{r=I.frameElement==null}catch(c){}U.documentElement.doScroll&&r&&bd()}}}},isFunction:function(c){return a1.call(c)==="[object Function]"},isArray:function(c){return a1.call(c)==="[object Array]"},isPlainObject:function(r){if(!r||a1.call(r)!=="[object Object]"||r.nodeType||r.setInterval){return false}if(r.constructor&&!aU.call(r,"constructor")&&!aU.call(r.constructor.prototype,"isPrototypeOf")){return false}var c;for(c in r){}return c===R||aU.call(r,c)},isEmptyObject:function(r){for(var c in r){return false}return true},error:function(c){throw c},parseJSON:function(c){if(typeof c!=="string"||!c){return null}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 I.JSON&&I.JSON.parse?I.JSON.parse(c):(new Function("return "+c))()}else{ai.error("Invalid JSON: "+c)}},noop:function(){},globalEval:function(r){if(r&&q.test(r)){var c=U.getElementsByTagName("head")[0]||U.documentElement,v=U.createElement("script");v.type="text/javascript";if(ai.support.scriptEval){v.appendChild(U.createTextNode(r))}else{v.text=r}c.insertBefore(v,c.firstChild);c.removeChild(v)}},nodeName:function(r,c){return r.nodeName&&r.nodeName.toUpperCase()===c.toUpperCase()},each:function(r,c,J){var F,G=0,z=r.length,v=z===R||ai.isFunction(r);if(J){if(v){for(F in r){if(c.apply(r[F],J)===false){break}}}else{for(;G<z;){if(c.apply(r[G++],J)===false){break}}}}else{if(v){for(F in r){if(c.call(r[F],F,r[F])===false){break}}}else{for(J=r[0];G<z&&c.call(J,G,J)!==false;J=r[++G]){}}}return r},trim:function(c){return(c||"").replace(d,"")},makeArray:function(r,c){c=c||[];if(r!=null){r.length==null||typeof r==="string"||ai.isFunction(r)||typeof r!=="function"&&r.setInterval?az.call(c,r):ai.merge(c,r)}return c},inArray:function(r,c){if(c.indexOf){return c.indexOf(r)}for(var z=0,v=c.length;z<v;z++){if(c[z]===r){return z}}return -1},merge:function(r,c){var F=r.length,v=0;if(typeof c.length==="number"){for(var z=c.length;v<z;v++){r[F++]=c[v]}}else{for(;c[v]!==R;){r[F++]=c[v++]}}r.length=F;return r},grep:function(r,c,G){for(var z=[],F=0,v=r.length;F<v;F++){!G!==!c(r[F],F)&&z.push(r[F])}return z},map:function(r,c,J){for(var F=[],G,z=0,v=r.length;z<v;z++){G=c(r[z],z,J);if(G!=null){F[F.length]=G}}return F.concat.apply([],F)},guid:1,proxy:function(r,c,v){if(arguments.length===2){if(typeof c==="string"){v=r;r=v[c];c=R}else{if(c&&!ai.isFunction(c)){v=c;c=R}}}if(!c&&r){c=function(){return r.apply(v||this,arguments)}}if(r){c.guid=r.guid=r.guid||c.guid||ai.guid++}return c},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:{}});aA=ai.uaMatch(aA);if(aA.browser){ai.browser[aA.browser]=true;ai.browser.version=aA.version}if(ai.browser.webkit){ai.browser.safari=true}if(p){ai.inArray=function(r,c){return p.call(c,r)}}av=ai(U);if(U.addEventListener){aC=function(){U.removeEventListener("DOMContentLoaded",aC,false);ai.ready()}}else{if(U.attachEvent){aC=function(){if(U.readyState==="complete"){U.detachEvent("onreadystatechange",aC);ai.ready()}}}}(function(){ai.support={};var r=U.documentElement,c=U.createElement("script"),J=U.createElement("div"),F="script"+aG();J.style.display="none";J.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var G=J.getElementsByTagName("*"),z=J.getElementsByTagName("a")[0];if(!(!G||!G.length||!z)){ai.support={leadingWhitespace:J.firstChild.nodeType===3,tbody:!J.getElementsByTagName("tbody").length,htmlSerialize:!!J.getElementsByTagName("link").length,style:/red/.test(z.getAttribute("style")),hrefNormalized:z.getAttribute("href")==="/a",opacity:/^0.55$/.test(z.style.opacity),cssFloat:!!z.style.cssFloat,checkOn:J.getElementsByTagName("input")[0].value==="on",optSelected:U.createElement("select").appendChild(U.createElement("option")).selected,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};c.type="text/javascript";try{c.appendChild(U.createTextNode("window."+F+"=1;"))}catch(v){}r.insertBefore(c,r.firstChild);if(I[F]){ai.support.scriptEval=true;delete I[F]}r.removeChild(c);if(J.attachEvent&&J.fireEvent){J.attachEvent("onclick",function K(){ai.support.noCloneEvent=false;J.detachEvent("onclick",K)});J.cloneNode(true).fireEvent("onclick")}J=U.createElement("div");J.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";r=U.createDocumentFragment();r.appendChild(J.firstChild);ai.support.checkClone=r.cloneNode(true).cloneNode(true).lastChild.checked;ai(function(){var L=U.createElement("div");L.style.width=L.style.paddingLeft="1px";U.body.appendChild(L);ai.boxModel=ai.support.boxModel=L.offsetWidth===2;U.body.removeChild(L).style.display="none"});r=function(O){var N=U.createElement("div");O="on"+O;var L=O in N;if(!L){N.setAttribute(O,"return;");L=typeof N[O]==="function"}return L};ai.support.submitBubbles=r("submit");ai.support.changeBubbles=r("change");r=c=J=G=z=null}})();ai.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var aI="jQuery"+aG(),aS=0,b={},ao={};ai.extend({cache:{},expando:aI,noData:{embed:true,object:true,applet:true},data:function(r,c,F){if(!(r.nodeName&&ai.noData[r.nodeName.toLowerCase()])){r=r==I?b:r;var v=r[aI],z=ai.cache;if(!c&&!v){return null}v||(v=++aS);if(typeof c==="object"){r[aI]=v;z=z[v]=ai.extend(true,{},c)}else{z=z[v]?z[v]:typeof F==="undefined"?ao:(z[v]={})}if(F!==R){r[aI]=v;z[c]=F}return typeof c==="string"?z[c]:z}},removeData:function(r,c){if(!(r.nodeName&&ai.noData[r.nodeName.toLowerCase()])){r=r==I?b:r;var G=r[aI],z=ai.cache,F=z[G];if(c){if(F){delete F[c];ai.isEmptyObject(F)&&ai.removeData(r)}}else{try{delete r[aI]}catch(v){r.removeAttribute&&r.removeAttribute(aI)}delete z[G]}}}});ai.fn.extend({data:function(r,c){if(typeof r==="undefined"&&this.length){return ai.data(this[0])}else{if(typeof r==="object"){return this.each(function(){ai.data(this,r)})}}var z=r.split(".");z[1]=z[1]?"."+z[1]:"";if(c===R){var v=this.triggerHandler("getData"+z[1]+"!",[z[0]]);if(v===R&&this.length){v=ai.data(this[0],r)}return v===R&&z[1]?this.data(z[0]):v}else{return this.trigger("setData"+z[1]+"!",[z[0],c]).each(function(){ai.data(this,r,c)})}},removeData:function(c){return this.each(function(){ai.removeData(this,c)})}});ai.extend({queue:function(r,c,z){if(r){c=(c||"fx")+"queue";var v=ai.data(r,c);if(!z){return v||[]}if(!v||ai.isArray(z)){v=ai.data(r,c,ai.makeArray(z))}else{v.push(z)}return v}},dequeue:function(r,c){c=c||"fx";var z=ai.queue(r,c),v=z.shift();if(v==="inprogress"){v=z.shift()}if(v){c==="fx"&&z.unshift("inprogress");v.call(r,function(){ai.dequeue(r,c)})}}});ai.fn.extend({queue:function(r,c){if(typeof r!=="string"){c=r;r="fx"}if(c===R){return ai.queue(this[0],r)}return this.each(function(){var v=ai.queue(this,r,c);r==="fx"&&v[0]!=="inprogress"&&ai.dequeue(this,r)})},dequeue:function(c){return this.each(function(){ai.dequeue(this,c)})},delay:function(r,c){r=ai.fx?ai.fx.speeds[r]||r:r;c=c||"fx";return this.queue(c,function(){var v=this;setTimeout(function(){ai.dequeue(v,c)},r)})},clearQueue:function(c){return this.queue(c||"fx",[])}});var a5=/[\n\t]/g,ad=/\s+/,M=/\r/g,s=/href|src|style/,e=/(button|input)/i,a7=/(button|input|object|select|textarea)/i,aN=/^(a|area)$/i,aR=/radio|checkbox/;ai.fn.extend({attr:function(r,c){return aq(this,r,c,true,ai.attr)},removeAttr:function(c){return this.each(function(){ai.attr(this,c,"");this.nodeType===1&&this.removeAttribute(c)})},addClass:function(r){if(ai.isFunction(r)){return this.each(function(N){var L=ai(this);L.addClass(r.call(this,N,L.attr("class")))})}if(r&&typeof r==="string"){for(var c=(r||"").split(ad),J=0,F=this.length;J<F;J++){var G=this[J];if(G.nodeType===1){if(G.className){for(var z=" "+G.className+" ",v=0,K=c.length;v<K;v++){if(z.indexOf(" "+c[v]+" ")<0){G.className+=" "+c[v]}}}else{G.className=r}}}}return this},removeClass:function(r){if(ai.isFunction(r)){return this.each(function(N){var L=ai(this);L.removeClass(r.call(this,N,L.attr("class")))})}if(r&&typeof r==="string"||r===R){for(var c=(r||"").split(ad),J=0,F=this.length;J<F;J++){var G=this[J];if(G.nodeType===1&&G.className){if(r){for(var z=(" "+G.className+" ").replace(a5," "),v=0,K=c.length;v<K;v++){z=z.replace(" "+c[v]+" "," ")}G.className=z.substring(1,z.length-1)}else{G.className=""}}}}return this},toggleClass:function(r,c){var z=typeof r,v=typeof c==="boolean";if(ai.isFunction(r)){return this.each(function(G){var F=ai(this);F.toggleClass(r.call(this,G,F.attr("class"),c),c)})}return this.each(function(){if(z==="string"){for(var J,G=0,F=ai(this),L=c,K=r.split(ad);J=K[G++];){L=v?L:!F.hasClass(J);F[L?"addClass":"removeClass"](J)}}else{if(z==="undefined"||z==="boolean"){this.className&&ai.data(this,"__className__",this.className);this.className=this.className||r===false?"":ai.data(this,"__className__")||""}}})},hasClass:function(r){r=" "+r+" ";for(var c=0,v=this.length;c<v;c++){if((" "+this[c].className+" ").replace(a5," ").indexOf(r)>-1){return true}}return false},val:function(r){if(r===R){var c=this[0];if(c){if(ai.nodeName(c,"option")){return(c.attributes.value||{}).specified?c.value:c.text}if(ai.nodeName(c,"select")){var J=c.selectedIndex,F=[],G=c.options;c=c.type==="select-one";if(J<0){return null}var z=c?J:0;for(J=c?J+1:G.length;z<J;z++){var v=G[z];if(v.selected){r=ai(v).val();if(c){return r}F.push(r)}}return F}if(aR.test(c.type)&&!ai.support.checkOn){return c.getAttribute("value")===null?"on":c.value}return(c.value||"").replace(M,"")}return R}var K=ai.isFunction(r);return this.each(function(P){var N=ai(this),O=r;if(this.nodeType===1){if(K){O=r.call(this,P,N.val())}if(typeof O==="number"){O+=""}if(ai.isArray(O)&&aR.test(this.type)){this.checked=ai.inArray(N.val(),O)>=0}else{if(ai.nodeName(this,"select")){var L=ai.makeArray(O);ai("option",this).each(function(){this.selected=ai.inArray(ai(this).val(),L)>=0});if(!L.length){this.selectedIndex=-1}}else{this.value=O}}}})}});ai.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(r,c,G,z){if(!r||r.nodeType===3||r.nodeType===8){return R}if(z&&c in ai.attrFn){return ai(r)[c](G)}z=r.nodeType!==1||!ai.isXMLDoc(r);var F=G!==R;c=z&&ai.props[c]||c;if(r.nodeType===1){var v=s.test(c);if(c in r&&z&&!v){if(F){c==="type"&&e.test(r.nodeName)&&r.parentNode&&ai.error("type property can't be changed");r[c]=G}if(ai.nodeName(r,"form")&&r.getAttributeNode(c)){return r.getAttributeNode(c).nodeValue}if(c==="tabIndex"){return(c=r.getAttributeNode("tabIndex"))&&c.specified?c.value:a7.test(r.nodeName)||aN.test(r.nodeName)&&r.href?0:R}return r[c]}if(!ai.support.style&&z&&c==="style"){if(F){r.style.cssText=""+G}return r.style.cssText}F&&r.setAttribute(c,""+G);r=!ai.support.hrefNormalized&&z&&v?r.getAttribute(c,2):r.getAttribute(c);return r===null?R:r}return ai.style(r,c,G)}});var aT=function(c){return c.replace(/[^\w\s\.\|`]/g,function(r){return"\\"+r})};ai.event={add:function(O,L,K,G){if(!(O.nodeType===3||O.nodeType===8)){if(O.setInterval&&O!==I&&!O.frameElement){O=I}if(!K.guid){K.guid=ai.guid++}if(G!==R){K=ai.proxy(K);K.data=G}var J=ai.data(O,"events")||ai.data(O,"events",{}),F=ai.data(O,"handle"),z;if(!F){z=function(){return typeof ai!=="undefined"&&!ai.event.triggered?ai.event.handle.apply(z.elem,arguments):R};F=ai.data(O,"handle",z)}if(F){F.elem=O;L=L.split(/\s+/);for(var r,c=0;r=L[c++];){var v=r.split(".");r=v.shift();if(c>1){K=ai.proxy(K);if(G!==R){K.data=G}}K.type=v.slice(0).sort().join(".");var P=J[r],N=this.special[r]||{};if(!P){P=J[r]={};if(!N.setup||N.setup.call(O,G,v,K)===false){if(O.addEventListener){O.addEventListener(r,F,false)}else{O.attachEvent&&O.attachEvent("on"+r,F)}}}if(N.add){if((v=N.add.call(O,K,G,v,P))&&ai.isFunction(v)){v.guid=v.guid||K.guid;v.data=v.data||K.data;v.type=v.type||K.type;K=v}}P[K.guid]=K;this.global[r]=true}O=null}}},global:{},remove:function(P,N,L){if(!(P.nodeType===3||P.nodeType===8)){var J=ai.data(P,"events"),K,G,F;if(J){if(N===R||typeof N==="string"&&N.charAt(0)==="."){for(G in J){this.remove(P,G+(N||""))}}else{if(N.type){L=N.handler;N=N.type}N=N.split(/\s+/);for(var v=0;G=N[v++];){var r=G.split(".");G=r.shift();var z=!r.length,Q=ai.map(r.slice(0).sort(),aT);Q=new RegExp("(^|\\.)"+Q.join("\\.(?:.*\\.)?")+"(\\.|$)");var O=this.special[G]||{};if(J[G]){if(L){F=J[G][L.guid];delete J[G][L.guid]}else{for(var c in J[G]){if(z||Q.test(J[G][c].type)){delete J[G][c]}}}O.remove&&O.remove.call(P,r,F);for(K in J[G]){break}if(!K){if(!O.teardown||O.teardown.call(P,r)===false){if(P.removeEventListener){P.removeEventListener(G,ai.data(P,"handle"),false)}else{P.detachEvent&&P.detachEvent("on"+G,ai.data(P,"handle"))}}K=null;delete J[G]}}}}for(K in J){break}if(!K){if(c=ai.data(P,"handle")){c.elem=null}ai.removeData(P,"events");ai.removeData(P,"handle")}}}},trigger:function(r,c,J,F){var G=r.type||r;if(!F){r=typeof r==="object"?r[aI]?r:ai.extend(ai.Event(G),r):ai.Event(G);if(G.indexOf("!")>=0){r.type=G=G.slice(0,-1);r.exclusive=true}if(!J){r.stopPropagation();this.global[G]&&ai.each(ai.cache,function(){this.events&&this.events[G]&&ai.event.trigger(r,c,this.handle.elem)})}if(!J||J.nodeType===3||J.nodeType===8){return R}r.result=R;r.target=J;c=ai.makeArray(c);c.unshift(r)}r.currentTarget=J;(F=ai.data(J,"handle"))&&F.apply(J,c);F=J.parentNode||J.ownerDocument;try{if(!(J&&J.nodeName&&ai.noData[J.nodeName.toLowerCase()])){if(J["on"+G]&&J["on"+G].apply(J,c)===false){r.result=false}}}catch(z){}if(!r.isPropagationStopped()&&F){ai.event.trigger(r,c,F,true)}else{if(!r.isDefaultPrevented()){J=r.target;var v;if(!(ai.nodeName(J,"a")&&G==="click")&&!(J&&J.nodeName&&ai.noData[J.nodeName.toLowerCase()])){try{if(J[G]){if(v=J["on"+G]){J["on"+G]=null}this.triggered=true;J[G]()}}catch(K){}if(v){J["on"+G]=v}this.triggered=false}}}},handle:function(r){var c,G;r=arguments[0]=ai.event.fix(r||I.event);r.currentTarget=this;G=r.type.split(".");r.type=G.shift();c=!G.length&&!r.exclusive;var z=new RegExp("(^|\\.)"+G.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)");G=(ai.data(this,"events")||{})[r.type];for(var F in G){var v=G[F];if(c||z.test(v.type)){r.handler=v;r.data=v.data;v=v.apply(this,arguments);if(v!==R){r.result=v;if(v===false){r.preventDefault();r.stopPropagation()}}if(r.isImmediatePropagationStopped()){break}}}return r.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(r){if(r[aI]){return r}var c=r;r=ai.Event(c);for(var z=this.props.length,v;z;){v=this.props[--z];r[v]=c[v]}if(!r.target){r.target=r.srcElement||U}if(r.target.nodeType===3){r.target=r.target.parentNode}if(!r.relatedTarget&&r.fromElement){r.relatedTarget=r.fromElement===r.target?r.toElement:r.fromElement}if(r.pageX==null&&r.clientX!=null){c=U.documentElement;z=U.body;r.pageX=r.clientX+(c&&c.scrollLeft||z&&z.scrollLeft||0)-(c&&c.clientLeft||z&&z.clientLeft||0);r.pageY=r.clientY+(c&&c.scrollTop||z&&z.scrollTop||0)-(c&&c.clientTop||z&&z.clientTop||0)}if(!r.which&&(r.charCode||r.charCode===0?r.charCode:r.keyCode)){r.which=r.charCode||r.keyCode}if(!r.metaKey&&r.ctrlKey){r.metaKey=r.ctrlKey}if(!r.which&&r.button!==R){r.which=r.button&1?1:r.button&2?3:r.button&4?2:0}return r},guid:100000000,proxy:ai.proxy,special:{ready:{setup:ai.bindReady,teardown:ai.noop},live:{add:function(r,c){ai.extend(r,c||{});r.guid+=c.selector+c.live;c.liveProxy=r;ai.event.add(this,c.live,aL,c)},remove:function(r){if(r.length){var c=0,v=new RegExp("(^|\\.)"+r[0]+"(\\.|$)");ai.each(ai.data(this,"events").live||{},function(){v.test(this.type)&&c++});c<1&&ai.event.remove(this,r[0],aL)}},special:{}},beforeunload:{setup:function(r,c,v){if(this.setInterval){this.onbeforeunload=v}return false},teardown:function(r,c){if(this.onbeforeunload===c){this.onbeforeunload=null}}}}};ai.Event=function(c){if(!this.preventDefault){return new ai.Event(c)}if(c&&c.type){this.originalEvent=c;this.type=c.type}else{this.type=c}this.timeStamp=aG();this[aI]=true};ai.Event.prototype={preventDefault:function(){this.isDefaultPrevented=an;var c=this.originalEvent;if(c){c.preventDefault&&c.preventDefault();c.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=an;var c=this.originalEvent;if(c){c.stopPropagation&&c.stopPropagation();c.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=an;this.stopPropagation()},isDefaultPrevented:ap,isPropagationStopped:ap,isImmediatePropagationStopped:ap};var a9=function(r){for(var c=r.relatedTarget;c&&c!==this;){try{c=c.parentNode}catch(v){break}}if(c!==this){r.type=r.data;ai.event.handle.apply(this,arguments)}},aX=function(c){c.type=c.data;ai.event.handle.apply(this,arguments)};ai.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(r,c){ai.event.special[r]={setup:function(v){ai.event.add(this,c,v&&v.selector?aX:a9,r)},teardown:function(v){ai.event.remove(this,c,v&&v.selector?aX:a9)}}});if(!ai.support.submitBubbles){ai.event.special.submit={setup:function(r,c,v){if(this.nodeName.toLowerCase()!=="form"){ai.event.add(this,"click.specialSubmit."+v.guid,function(F){var G=F.target,z=G.type;if((z==="submit"||z==="image")&&ai(G).closest("form").length){return aZ("submit",this,arguments)}});ai.event.add(this,"keypress.specialSubmit."+v.guid,function(F){var G=F.target,z=G.type;if((z==="text"||z==="password")&&ai(G).closest("form").length&&F.keyCode===13){return aZ("submit",this,arguments)}})}else{return false}},remove:function(r,c){ai.event.remove(this,"click.specialSubmit"+(c?"."+c.guid:""));ai.event.remove(this,"keypress.specialSubmit"+(c?"."+c.guid:""))}}}if(!ai.support.changeBubbles){var u=/textarea|input|select/i;function aH(r){var c=r.type,v=r.value;if(c==="radio"||c==="checkbox"){v=r.checked}else{if(c==="select-multiple"){v=r.selectedIndex>-1?ai.map(r.options,function(z){return z.selected}).join("-"):""}else{if(r.nodeName.toLowerCase()==="select"){v=r.selectedIndex}}}return v}function g(r,c){var F=r.target,v,z;if(!(!u.test(F.nodeName)||F.readOnly)){v=ai.data(F,"_change_data");z=aH(F);if(r.type!=="focusout"||F.type!=="radio"){ai.data(F,"_change_data",z)}if(!(v===R||z===v)){if(v!=null||z){r.type="change";return ai.event.trigger(r,c,F)}}}}ai.event.special.change={filters:{focusout:g,click:function(r){var c=r.target,v=c.type;if(v==="radio"||v==="checkbox"||c.nodeName.toLowerCase()==="select"){return g.call(this,r)}},keydown:function(r){var c=r.target,v=c.type;if(r.keyCode===13&&c.nodeName.toLowerCase()!=="textarea"||r.keyCode===32&&(v==="checkbox"||v==="radio")||v==="select-multiple"){return g.call(this,r)}},beforeactivate:function(c){c=c.target;c.nodeName.toLowerCase()==="input"&&c.type==="radio"&&ai.data(c,"_change_data",aH(c))}},setup:function(r,c,z){for(var v in au){ai.event.add(this,v+".specialChange."+z.guid,au[v])}return u.test(this.nodeName)},remove:function(r,c){for(var v in au){ai.event.remove(this,v+".specialChange"+(c?"."+c.guid:""),au[v])}return u.test(this.nodeName)}};var au=ai.event.special.change.filters}U.addEventListener&&ai.each({focus:"focusin",blur:"focusout"},function(r,c){function v(z){z=ai.event.fix(z);z.type=c;return ai.event.handle.call(this,z)}ai.event.special[c]={setup:function(){this.addEventListener(r,v,true)},teardown:function(){this.removeEventListener(r,v,true)}}});ai.each(["bind","one"],function(r,c){ai.fn[c]=function(J,F,G){if(typeof J==="object"){for(var z in J){this[c](z,F,J[z],G)}return this}if(ai.isFunction(F)){G=F;F=R}var v=c==="one"?ai.proxy(G,function(K){ai(this).unbind(K,v);return G.apply(this,arguments)}):G;return J==="unload"&&c!=="one"?this.one(J,F,G):this.each(function(){ai.event.add(this,J,v,F)})}});ai.fn.extend({unbind:function(r,c){if(typeof r==="object"&&!r.preventDefault){for(var v in r){this.unbind(v,r[v])}return this}return this.each(function(){ai.event.remove(this,r,c)})},trigger:function(r,c){return this.each(function(){ai.event.trigger(r,c,this)})},triggerHandler:function(r,c){if(this[0]){r=ai.Event(r);r.preventDefault();r.stopPropagation();ai.event.trigger(r,c,this[0]);return r.result}},toggle:function(r){for(var c=arguments,v=1;v<c.length;){ai.proxy(r,c[v++])}return this.click(ai.proxy(r,function(z){var F=(ai.data(this,"lastToggle"+r.guid)||0)%v;ai.data(this,"lastToggle"+r.guid,F+1);z.preventDefault();return c[F].apply(this,arguments)||false}))},hover:function(r,c){return this.mouseenter(r).mouseleave(c||r)}});ai.each(["live","die"],function(r,c){ai.fn[c]=function(J,F,G){var z,v=0;if(ai.isFunction(F)){G=F;F=R}for(J=(J||"").split(/\s+/);(z=J[v++])!=null;){z=z==="focus"?"focusin":z==="blur"?"focusout":z==="hover"?J.push("mouseleave")&&"mouseenter":z;c==="live"?ai(this.context).bind(ah(z,this.selector),{data:F,selector:this.selector,live:z},G):ai(this.context).unbind(ah(z,this.selector),G?{guid:G.guid+this.selector+z}:null)}return this}});ai.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(r,c){ai.fn[c]=function(v){return v?this.bind(c,v):this.trigger(c)};if(ai.attrFn){ai.attrFn[c]=true}});I.attachEvent&&!I.addEventListener&&I.attachEvent("onunload",function(){for(var r in ai.cache){if(ai.cache[r].handle){try{ai.event.remove(ai.cache[r].handle.elem)}catch(c){}}}});(function(){function X(ab){for(var aa="",Z,Y=0;ab[Y];Y++){Z=ab[Y];if(Z.nodeType===3||Z.nodeType===4){aa+=Z.nodeValue}else{if(Z.nodeType!==8){aa+=X(Z.childNodes)}}}return aa}function W(bb,ba,ab,aa,Y,Z){Y=0;for(var bj=aa.length;Y<bj;Y++){var bk=aa[Y];if(bk){bk=bk[bb];for(var bi=false;bk;){if(bk.sizcache===ab){bi=aa[bk.sizset];break}if(bk.nodeType===1&&!Z){bk.sizcache=ab;bk.sizset=Y}if(bk.nodeName.toLowerCase()===ba){bi=bk;break}bk=bk[bb]}aa[Y]=bi}}}function V(bb,ba,ab,aa,Y,Z){Y=0;for(var bj=aa.length;Y<bj;Y++){var bk=aa[Y];if(bk){bk=bk[bb];for(var bi=false;bk;){if(bk.sizcache===ab){bi=aa[bk.sizset];break}if(bk.nodeType===1){if(!Z){bk.sizcache=ab;bk.sizset=Y}if(typeof ba!=="string"){if(bk===ba){bi=true;break}}else{if(K.filter(ba,[bk]).length>0){bi=bk;break}}}bk=bk[bb]}aa[Y]=bi}}}var S=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,T=0,Q=Object.prototype.toString,P=false,N=true;[0,0].sort(function(){N=false;return 0});var K=function(bj,bi,ba,ab){ba=ba||[];var Z=bi=bi||U;if(bi.nodeType!==1&&bi.nodeType!==9){return[]}if(!bj||typeof bj!=="string"){return ba}for(var aa=[],bo,bp,bl,bb,bn=true,bk=r(bi),bm=bj;(S.exec(""),bo=S.exec(bm))!==null;){bm=bo[3];aa.push(bo[1]);if(bo[2]){bb=bo[3];break}}if(aa.length>1&&z.exec(bj)){if(aa.length===2&&O.relative[aa[0]]){bp=L(aa[0]+aa[1],bi)}else{for(bp=O.relative[aa[0]]?[bi]:K(aa.shift(),bi);aa.length;){bj=aa.shift();if(O.relative[bj]){bj+=aa.shift()}bp=L(bj,bp)}}}else{if(!ab&&aa.length>1&&bi.nodeType===9&&!bk&&O.match.ID.test(aa[0])&&!O.match.ID.test(aa[aa.length-1])){bo=K.find(aa.shift(),bi,bk);bi=bo.expr?K.filter(bo.expr,bo.set)[0]:bo.set[0]}if(bi){bo=ab?{expr:aa.pop(),set:J(ab)}:K.find(aa.pop(),aa.length===1&&(aa[0]==="~"||aa[0]==="+")&&bi.parentNode?bi.parentNode:bi,bk);bp=bo.expr?K.filter(bo.expr,bo.set):bo.set;if(aa.length>0){bl=J(bp)}else{bn=false}for(;aa.length;){var Y=aa.pop();bo=Y;if(O.relative[Y]){bo=aa.pop()}else{Y=""}if(bo==null){bo=bi}O.relative[Y](bl,bo,bk)}}else{bl=[]}}bl||(bl=bp);bl||K.error(Y||bj);if(Q.call(bl)==="[object Array]"){if(bn){if(bi&&bi.nodeType===1){for(bj=0;bl[bj]!=null;bj++){if(bl[bj]&&(bl[bj]===true||bl[bj].nodeType===1&&v(bi,bl[bj]))){ba.push(bp[bj])}}}else{for(bj=0;bl[bj]!=null;bj++){bl[bj]&&bl[bj].nodeType===1&&ba.push(bp[bj])}}}else{ba.push.apply(ba,bl)}}else{J(bl,ba)}if(bb){K(bb,Z,ba,ab);K.uniqueSort(ba)}return ba};K.uniqueSort=function(Z){if(F){P=N;Z.sort(F);if(P){for(var Y=1;Y<Z.length;Y++){Z[Y]===Z[Y-1]&&Z.splice(Y--,1)}}}return Z};K.matches=function(Z,Y){return K(Z,null,null,Y)};K.find=function(bb,ba,ab){var aa,Y;if(!bb){return[]}for(var Z=0,bj=O.order.length;Z<bj;Z++){var bk=O.order[Z];if(Y=O.leftMatch[bk].exec(bb)){var bi=Y[1];Y.splice(1,1);if(bi.substr(bi.length-1)!=="\\"){Y[1]=(Y[1]||"").replace(/\\/g,"");aa=O.find[bk](Y,ba,ab);if(aa!=null){bb=bb.replace(O.match[bk],"");break}}}}aa||(aa=ba.getElementsByTagName("*"));return{set:aa,expr:bb}};K.filter=function(bl,bk,bi,bb){for(var Z=bl,ab=[],bq=bk,br,bn,bj=bk&&bk[0]&&r(bk[0]);bl&&bk.length;){for(var bp in O.filter){if((br=O.leftMatch[bp].exec(bl))!=null&&br[2]){var bm=O.filter[bp],bo,Y;Y=br[1];bn=false;br.splice(1,1);if(Y.substr(Y.length-1)!=="\\"){if(bq===ab){ab=[]}if(O.preFilter[bp]){if(br=O.preFilter[bp](br,bq,bi,ab,bb,bj)){if(br===true){continue}}else{bn=bo=true}}if(br){for(var ba=0;(Y=bq[ba])!=null;ba++){if(Y){bo=bm(Y,br,ba,bq);var aa=bb^!!bo;if(bi&&bo!=null){if(aa){bn=true}else{bq[ba]=false}}else{if(aa){ab.push(Y);bn=true}}}}}if(bo!==R){bi||(bq=ab);bl=bl.replace(O.match[bp],"");if(!bn){return[]}break}}}}if(bl===Z){if(bn==null){K.error(bl)}else{break}}Z=bl}return bq};K.error=function(Y){throw"Syntax error, unrecognized expression: "+Y};var O=K.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(Y){return Y.getAttribute("href")}},relative:{"+":function(ab,aa){var Z=typeof aa==="string",Y=Z&&!/\W/.test(aa);Z=Z&&!Y;if(Y){aa=aa.toLowerCase()}Y=0;for(var ba=ab.length,bb;Y<ba;Y++){if(bb=ab[Y]){for(;(bb=bb.previousSibling)&&bb.nodeType!==1;){}ab[Y]=Z||bb&&bb.nodeName.toLowerCase()===aa?bb||false:bb===aa}}Z&&K.filter(aa,ab,true)},">":function(ab,aa){var Z=typeof aa==="string";if(Z&&!/\W/.test(aa)){aa=aa.toLowerCase();for(var Y=0,ba=ab.length;Y<ba;Y++){var bb=ab[Y];if(bb){Z=bb.parentNode;ab[Y]=Z.nodeName.toLowerCase()===aa?Z:false}}}else{Y=0;for(ba=ab.length;Y<ba;Y++){if(bb=ab[Y]){ab[Y]=Z?bb.parentNode:bb.parentNode===aa}}Z&&K.filter(aa,ab,true)}},"":function(ab,aa,Z){var Y=T++,ba=V;if(typeof aa==="string"&&!/\W/.test(aa)){var bb=aa=aa.toLowerCase();ba=W}ba("parentNode",aa,Y,ab,bb,Z)},"~":function(ab,aa,Z){var Y=T++,ba=V;if(typeof aa==="string"&&!/\W/.test(aa)){var bb=aa=aa.toLowerCase();ba=W}ba("previousSibling",aa,Y,ab,bb,Z)}},find:{ID:function(aa,Z,Y){if(typeof Z.getElementById!=="undefined"&&!Y){return(aa=Z.getElementById(aa[1]))?[aa]:[]}},NAME:function(ab,aa){if(typeof aa.getElementsByName!=="undefined"){var Z=[];aa=aa.getElementsByName(ab[1]);for(var Y=0,ba=aa.length;Y<ba;Y++){aa[Y].getAttribute("name")===ab[1]&&Z.push(aa[Y])}return Z.length===0?null:Z}},TAG:function(Z,Y){return Y.getElementsByTagName(Z[1])}},preFilter:{CLASS:function(ba,ab,Z,Y,bb,bi){ba=" "+ba[1].replace(/\\/g,"")+" ";if(bi){return ba}bi=0;for(var aa;(aa=ab[bi])!=null;bi++){if(aa){if(bb^(aa.className&&(" "+aa.className+" ").replace(/[\t\n]/g," ").indexOf(ba)>=0)){Z||Y.push(aa)}else{if(Z){ab[bi]=false}}}}return false},ID:function(Y){return Y[1].replace(/\\/g,"")},TAG:function(Y){return Y[1].toLowerCase()},CHILD:function(Z){if(Z[1]==="nth"){var Y=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(Z[2]==="even"&&"2n"||Z[2]==="odd"&&"2n+1"||!/\D/.test(Z[2])&&"0n+"+Z[2]||Z[2]);Z[2]=Y[1]+(Y[2]||1)-0;Z[3]=Y[3]-0}Z[0]=T++;return Z},ATTR:function(ab,aa,Z,Y,ba,bb){aa=ab[1].replace(/\\/g,"");if(!bb&&O.attrMap[aa]){ab[1]=O.attrMap[aa]}if(ab[2]==="~="){ab[4]=" "+ab[4]+" "}return ab},PSEUDO:function(ab,aa,Z,Y,ba){if(ab[1]==="not"){if((S.exec(ab[3])||"").length>1||/^\w/.test(ab[3])){ab[3]=K(ab[3],null,null,aa)}else{ab=K.filter(ab[3],aa,Z,true^ba);Z||Y.push.apply(Y,ab);return false}}else{if(O.match.POS.test(ab[0])||O.match.CHILD.test(ab[0])){return true}}return ab},POS:function(Y){Y.unshift(true);return Y}},filters:{enabled:function(Y){return Y.disabled===false&&Y.type!=="hidden"},disabled:function(Y){return Y.disabled===true},checked:function(Y){return Y.checked===true},selected:function(Y){return Y.selected===true},parent:function(Y){return !!Y.firstChild},empty:function(Y){return !Y.firstChild},has:function(aa,Z,Y){return !!K(Y[3],aa).length},header:function(Y){return/h\d/i.test(Y.nodeName)},text:function(Y){return"text"===Y.type},radio:function(Y){return"radio"===Y.type},checkbox:function(Y){return"checkbox"===Y.type},file:function(Y){return"file"===Y.type},password:function(Y){return"password"===Y.type},submit:function(Y){return"submit"===Y.type},image:function(Y){return"image"===Y.type},reset:function(Y){return"reset"===Y.type},button:function(Y){return"button"===Y.type||Y.nodeName.toLowerCase()==="button"},input:function(Y){return/input|select|textarea|button/i.test(Y.nodeName)}},setFilters:{first:function(Z,Y){return Y===0},last:function(ab,aa,Z,Y){return aa===Y.length-1},even:function(Z,Y){return Y%2===0},odd:function(Z,Y){return Y%2===1},lt:function(aa,Z,Y){return Z<Y[3]-0},gt:function(aa,Z,Y){return Z>Y[3]-0},nth:function(aa,Z,Y){return Y[3]-0===Z},eq:function(aa,Z,Y){return Y[3]-0===Z}},filter:{PSEUDO:function(ab,aa,Z,Y){var ba=aa[1],bb=O.filters[ba];if(bb){return bb(ab,Z,aa,Y)}else{if(ba==="contains"){return(ab.textContent||ab.innerText||X([ab])||"").indexOf(aa[3])>=0}else{if(ba==="not"){aa=aa[3];Z=0;for(Y=aa.length;Z<Y;Z++){if(aa[Z]===ab){return false}}return true}else{K.error("Syntax error, unrecognized expression: "+ba)}}}},CHILD:function(ba,ab){var Z=ab[1],Y=ba;switch(Z){case"only":case"first":for(;Y=Y.previousSibling;){if(Y.nodeType===1){return false}}if(Z==="first"){return true}Y=ba;case"last":for(;Y=Y.nextSibling;){if(Y.nodeType===1){return false}}return true;case"nth":Z=ab[2];var bb=ab[3];if(Z===1&&bb===0){return true}ab=ab[0];var bi=ba.parentNode;if(bi&&(bi.sizcache!==ab||!ba.nodeIndex)){var aa=0;for(Y=bi.firstChild;Y;Y=Y.nextSibling){if(Y.nodeType===1){Y.nodeIndex=++aa}}bi.sizcache=ab}ba=ba.nodeIndex-bb;return Z===0?ba===0:ba%Z===0&&ba/Z>=0}},ID:function(Z,Y){return Z.nodeType===1&&Z.getAttribute("id")===Y},TAG:function(Z,Y){return Y==="*"&&Z.nodeType===1||Z.nodeName.toLowerCase()===Y},CLASS:function(Z,Y){return(" "+(Z.className||Z.getAttribute("class"))+" ").indexOf(Y)>-1},ATTR:function(ab,aa){var Z=aa[1];ab=O.attrHandle[Z]?O.attrHandle[Z](ab):ab[Z]!=null?ab[Z]:ab.getAttribute(Z);Z=ab+"";var Y=aa[2];aa=aa[4];return ab==null?Y==="!=":Y==="="?Z===aa:Y==="*="?Z.indexOf(aa)>=0:Y==="~="?(" "+Z+" ").indexOf(aa)>=0:!aa?Z&&ab!==false:Y==="!="?Z!==aa:Y==="^="?Z.indexOf(aa)===0:Y==="$="?Z.substr(Z.length-aa.length)===aa:Y==="|="?Z===aa||Z.substr(0,aa.length+1)===aa+"-":false},POS:function(ab,aa,Z,Y){var ba=O.setFilters[aa[2]];if(ba){return ba(ab,Z,aa,Y)}}}},z=O.match.POS;for(var c in O.match){O.match[c]=new RegExp(O.match[c].source+/(?![^\[]*\])(?![^\(]*\))/.source);O.leftMatch[c]=new RegExp(/(^(?:.|\r|\n)*?)/.source+O.match[c].source.replace(/\\(\d+)/g,function(Z,Y){return"\\"+(Y-0+1)}))}var J=function(Z,Y){Z=Array.prototype.slice.call(Z,0);if(Y){Y.push.apply(Y,Z);return Y}return Z};try{Array.prototype.slice.call(U.documentElement.childNodes,0)}catch(G){J=function(ab,aa){aa=aa||[];if(Q.call(ab)==="[object Array]"){Array.prototype.push.apply(aa,ab)}else{if(typeof ab.length==="number"){for(var Z=0,Y=ab.length;Z<Y;Z++){aa.push(ab[Z])}}else{for(Z=0;ab[Z];Z++){aa.push(ab[Z])}}}return aa}}var F;if(U.documentElement.compareDocumentPosition){F=function(Z,Y){if(!Z.compareDocumentPosition||!Y.compareDocumentPosition){if(Z==Y){P=true}return Z.compareDocumentPosition?-1:1}Z=Z.compareDocumentPosition(Y)&4?-1:Z===Y?0:1;if(Z===0){P=true}return Z}}else{if("sourceIndex" in U.documentElement){F=function(Z,Y){if(!Z.sourceIndex||!Y.sourceIndex){if(Z==Y){P=true}return Z.sourceIndex?-1:1}Z=Z.sourceIndex-Y.sourceIndex;if(Z===0){P=true}return Z}}else{if(U.createRange){F=function(ab,aa){if(!ab.ownerDocument||!aa.ownerDocument){if(ab==aa){P=true}return ab.ownerDocument?-1:1}var Z=ab.ownerDocument.createRange(),Y=aa.ownerDocument.createRange();Z.setStart(ab,0);Z.setEnd(ab,0);Y.setStart(aa,0);Y.setEnd(aa,0);ab=Z.compareBoundaryPoints(Range.START_TO_END,Y);if(ab===0){P=true}return ab}}}}(function(){var aa=U.createElement("div"),Z="script"+(new Date).getTime();aa.innerHTML="<a name='"+Z+"'/>";var Y=U.documentElement;Y.insertBefore(aa,Y.firstChild);if(U.getElementById(Z)){O.find.ID=function(ab,ba,bb){if(typeof ba.getElementById!=="undefined"&&!bb){return(ba=ba.getElementById(ab[1]))?ba.id===ab[1]||typeof ba.getAttributeNode!=="undefined"&&ba.getAttributeNode("id").nodeValue===ab[1]?[ba]:R:[]}};O.filter.ID=function(ab,ba){var bb=typeof ab.getAttributeNode!=="undefined"&&ab.getAttributeNode("id");return ab.nodeType===1&&bb&&bb.nodeValue===ba}}Y.removeChild(aa);Y=aa=null})();(function(){var Y=U.createElement("div");Y.appendChild(U.createComment(""));if(Y.getElementsByTagName("*").length>0){O.find.TAG=function(ab,aa){aa=aa.getElementsByTagName(ab[1]);if(ab[1]==="*"){ab=[];for(var Z=0;aa[Z];Z++){aa[Z].nodeType===1&&ab.push(aa[Z])}aa=ab}return aa}}Y.innerHTML="<a href='#'></a>";if(Y.firstChild&&typeof Y.firstChild.getAttribute!=="undefined"&&Y.firstChild.getAttribute("href")!=="#"){O.attrHandle.href=function(Z){return Z.getAttribute("href",2)}}Y=null})();U.querySelectorAll&&function(){var aa=K,Z=U.createElement("div");Z.innerHTML="<p class='TEST'></p>";if(!(Z.querySelectorAll&&Z.querySelectorAll(".TEST").length===0)){K=function(ab,bi,bj,ba){bi=bi||U;if(!ba&&bi.nodeType===9&&!r(bi)){try{return J(bi.querySelectorAll(ab),bj)}catch(bb){}}return aa(ab,bi,bj,ba)};for(var Y in aa){K[Y]=aa[Y]}Z=null}}();(function(){var Y=U.createElement("div");Y.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!Y.getElementsByClassName||Y.getElementsByClassName("e").length===0)){Y.lastChild.className="e";if(Y.getElementsByClassName("e").length!==1){O.order.splice(1,0,"CLASS");O.find.CLASS=function(ab,aa,Z){if(typeof aa.getElementsByClassName!=="undefined"&&!Z){return aa.getElementsByClassName(ab[1])}};Y=null}}})();var v=U.compareDocumentPosition?function(Z,Y){return Z.compareDocumentPosition(Y)&16}:function(Z,Y){return Z!==Y&&(Z.contains?Z.contains(Y):true)},r=function(Y){return(Y=(Y?Y.ownerDocument||Y:0).documentElement)?Y.nodeName!=="HTML":false},L=function(ab,aa){var Z=[],Y="",ba;for(aa=aa.nodeType?[aa]:aa;ba=O.match.PSEUDO.exec(ab);){Y+=ba[0];ab=ab.replace(O.match.PSEUDO,"")}ab=O.relative[ab]?ab+"*":ab;ba=0;for(var bb=aa.length;ba<bb;ba++){K(ab,aa[ba],Z)}return K.filter(Y,Z)};ai.find=K;ai.expr=K.selectors;ai.expr[":"]=ai.expr.filters;ai.unique=K.uniqueSort;ai.getText=X;ai.isXMLDoc=r;ai.contains=v})();var ax=/Until$/,ac=/^(?:parents|prevUntil|prevAll)/,t=/,/;aw=Array.prototype.slice;var y=function(r,c,z){if(ai.isFunction(c)){return ai.grep(r,function(G,F){return !!c.call(G,F,G)===z})}else{if(c.nodeType){return ai.grep(r,function(F){return F===c===z})}else{if(typeof c==="string"){var v=ai.grep(r,function(F){return F.nodeType===1});if(H.test(c)){return ai.filter(c,v,!z)}else{c=ai.filter(c,v)}}}}return ai.grep(r,function(F){return ai.inArray(F,c)>=0===z})};ai.fn.extend({find:function(r){for(var c=this.pushStack("","find",r),J=0,F=0,G=this.length;F<G;F++){J=c.length;ai.find(r,this[F],c);if(F>0){for(var z=J;z<c.length;z++){for(var v=0;v<J;v++){if(c[v]===c[z]){c.splice(z--,1);break}}}}}return c},has:function(r){var c=ai(r);return this.filter(function(){for(var z=0,v=c.length;z<v;z++){if(ai.contains(this,c[z])){return true}}})},not:function(c){return this.pushStack(y(this,c,false),"not",c)},filter:function(c){return this.pushStack(y(this,c,true),"filter",c)},is:function(c){return !!c&&ai.filter(c,this).length>0},closest:function(L,K){if(ai.isArray(L)){var J=[],F=this[0],G,z={},v;if(F&&L.length){G=0;for(var r=L.length;G<r;G++){v=L[G];z[v]||(z[v]=ai.expr.match.POS.test(v)?ai(v,K||this.context):v)}for(;F&&F.ownerDocument&&F!==K;){for(v in z){G=z[v];if(G.jquery?G.index(F)>-1:ai(F).is(G)){J.push({selector:v,elem:F});delete z[v]}}F=F.parentNode}}return J}var c=ai.expr.match.POS.test(L)?ai(L,K||this.context):null;return this.map(function(N,O){for(;O&&O.ownerDocument&&O!==K;){if(c?c.index(O)>-1:ai(O).is(L)){return O}O=O.parentNode}return null})},index:function(c){if(!c||typeof c==="string"){return ai.inArray(this[0],c?ai(c):this.parent().children())}return ai.inArray(c.jquery?c[0]:c,this)},add:function(r,c){r=typeof r==="string"?ai(r,c||this.context):ai.makeArray(r);c=ai.merge(this.get(),r);return this.pushStack(B(r[0])||B(c[0])?c:ai.unique(c))},andSelf:function(){return this.add(this.prevObject)}});ai.each({parent:function(c){return(c=c.parentNode)&&c.nodeType!==11?c:null},parents:function(c){return ai.dir(c,"parentNode")},parentsUntil:function(r,c,v){return ai.dir(r,"parentNode",v)},next:function(c){return ai.nth(c,2,"nextSibling")},prev:function(c){return ai.nth(c,2,"previousSibling")},nextAll:function(c){return ai.dir(c,"nextSibling")},prevAll:function(c){return ai.dir(c,"previousSibling")},nextUntil:function(r,c,v){return ai.dir(r,"nextSibling",v)},prevUntil:function(r,c,v){return ai.dir(r,"previousSibling",v)},siblings:function(c){return ai.sibling(c.parentNode.firstChild,c)},children:function(c){return ai.sibling(c.firstChild)},contents:function(c){return ai.nodeName(c,"iframe")?c.contentDocument||c.contentWindow.document:ai.makeArray(c.childNodes)}},function(r,c){ai.fn[r]=function(F,v){var z=ai.map(this,c,F);ax.test(r)||(v=F);if(v&&typeof v==="string"){z=ai.filter(v,z)}z=this.length>1?ai.unique(z):z;if((this.length>1||t.test(v))&&ac.test(r)){z=z.reverse()}return this.pushStack(z,r,aw.call(arguments).join(","))}});ai.extend({filter:function(r,c,v){if(v){r=":not("+r+")"}return ai.find.matches(r,c)},dir:function(r,c,z){var v=[];for(r=r[c];r&&r.nodeType!==9&&(z===R||r.nodeType!==1||!ai(r).is(z));){r.nodeType===1&&v.push(r);r=r[c]}return v},nth:function(r,c,z){c=c||1;for(var v=0;r;r=r[z]){if(r.nodeType===1&&++v===c){break}}return r},sibling:function(r,c){for(var v=[];r;r=r.nextSibling){r.nodeType===1&&r!==c&&v.push(r)}return v}});var k=/ jQuery\d+="(?:\d+|null)"/g,at=/^\s+/,be=/(<([\w:]+)[^>]*?)\/>/g,f=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,a0=/<([\w:]+)/,a8=/<tbody/i,aV=/<|&\w+;/,a3=/checked\s*(?:[^=]|=\s*.checked.)/i,aM=function(r,c,v){return f.test(v)?r:c+"></"+v+">"},aK={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,"",""]};aK.optgroup=aK.option;aK.tbody=aK.tfoot=aK.colgroup=aK.caption=aK.thead;aK.th=aK.td;if(!ai.support.htmlSerialize){aK._default=[1,"div<div>","</div>"]}ai.fn.extend({text:function(c){if(ai.isFunction(c)){return this.each(function(r){var v=ai(this);v.text(c.call(this,r,v.text()))})}if(typeof c!=="object"&&c!==R){return this.empty().append((this[0]&&this[0].ownerDocument||U).createTextNode(c))}return ai.getText(this)},wrapAll:function(r){if(ai.isFunction(r)){return this.each(function(v){ai(this).wrapAll(r.call(this,v))})}if(this[0]){var c=ai(r,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){for(var v=this;v.firstChild&&v.firstChild.nodeType===1;){v=v.firstChild}return v}).append(this)}return this},wrapInner:function(c){if(ai.isFunction(c)){return this.each(function(r){ai(this).wrapInner(c.call(this,r))})}return this.each(function(){var r=ai(this),v=r.contents();v.length?v.wrapAll(c):r.append(c)})},wrap:function(c){return this.each(function(){ai(this).wrapAll(c)})},unwrap:function(){return this.parent().each(function(){ai.nodeName(this,"body")||ai(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(r){this.parentNode.insertBefore(r,this)})}else{if(arguments.length){var c=ai(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(r){this.parentNode.insertBefore(r,this.nextSibling)})}else{if(arguments.length){var c=this.pushStack(this,"after",arguments);c.push.apply(c,ai(arguments[0]).toArray());return c}}},clone:function(r){var c=this.map(function(){if(!ai.support.noCloneEvent&&!ai.isXMLDoc(this)){var z=this.outerHTML,v=this.ownerDocument;if(!z){z=v.createElement("div");z.appendChild(this.cloneNode(true));z=z.innerHTML}return ai.clean([z.replace(k,"").replace(at,"")],v)[0]}else{return this.cloneNode(true)}});if(r===true){m(this,c);m(this.find("*"),c.find("*"))}return c},html:function(r){if(r===R){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(k,""):null}else{if(typeof r==="string"&&!/<script/i.test(r)&&(ai.support.leadingWhitespace||!at.test(r))&&!aK[(a0.exec(r)||["",""])[1].toLowerCase()]){r=r.replace(be,aM);try{for(var c=0,z=this.length;c<z;c++){if(this[c].nodeType===1){ai.cleanData(this[c].getElementsByTagName("*"));this[c].innerHTML=r}}}catch(v){this.empty().append(r)}}else{ai.isFunction(r)?this.each(function(J){var G=ai(this),F=G.html();G.empty().append(function(){return r.call(this,J,F)})}):this.empty().append(r)}}return this},replaceWith:function(c){if(this[0]&&this[0].parentNode){if(ai.isFunction(c)){return this.each(function(r){var z=ai(this),v=z.html();z.replaceWith(c.call(this,r,v))})}else{c=ai(c).detach()}return this.each(function(){var r=this.nextSibling,v=this.parentNode;ai(this).remove();r?ai(r).before(c):ai(v).append(c)})}else{return this.pushStack(ai(ai.isFunction(c)?c():c),"replaceWith",c)}},detach:function(c){return this.remove(c,true)},domManip:function(N,L,K){function G(O){return ai.nodeName(O,"table")?O.getElementsByTagName("tbody")[0]||O.appendChild(O.ownerDocument.createElement("tbody")):O}var J,F,z=N[0],r=[];if(!ai.support.checkClone&&arguments.length===3&&typeof z==="string"&&a3.test(z)){return this.each(function(){ai(this).domManip(N,L,K,true)})}if(ai.isFunction(z)){return this.each(function(P){var O=ai(this);N[0]=z.call(this,P,L?O.html():R);O.domManip(N,L,K)})}if(this[0]){J=N[0]&&N[0].parentNode&&N[0].parentNode.nodeType===11?{fragment:N[0].parentNode}:bg(N,this,r);if(F=J.fragment.firstChild){L=L&&ai.nodeName(F,"tr");for(var c=0,v=this.length;c<v;c++){K.call(L?G(this[c],F):this[c],J.cacheable||this.length>1||c>0?J.fragment.cloneNode(true):J.fragment)}}r&&ai.each(r,bh)}return this}});ai.fragments={};ai.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(r,c){ai.fn[r]=function(J){var F=[];J=ai(J);for(var G=0,z=J.length;G<z;G++){var v=(G>0?this.clone(true):this).get();ai.fn[c].apply(ai(J[G]),v);F=F.concat(v)}return this.pushStack(F,r,J.selector)}});ai.each({remove:function(r,c){if(!r||ai.filter(r,[this]).length){if(!c&&this.nodeType===1){ai.cleanData(this.getElementsByTagName("*"));ai.cleanData([this])}this.parentNode&&this.parentNode.removeChild(this)}},empty:function(){for(this.nodeType===1&&ai.cleanData(this.getElementsByTagName("*"));this.firstChild;){this.removeChild(this.firstChild)}}},function(r,c){ai.fn[r]=function(){return this.each(c,arguments)}});ai.extend({clean:function(r,c,F,v){c=c||U;if(typeof c.createElement==="undefined"){c=c.ownerDocument||c[0]&&c[0].ownerDocument||U}var z=[];ai.each(r,function(K,J){if(typeof J==="number"){J+=""}if(J){if(typeof J==="string"&&!aV.test(J)){J=c.createTextNode(J)}else{if(typeof J==="string"){J=J.replace(be,aM);var N=(a0.exec(J)||["",""])[1].toLowerCase(),L=aK[N]||aK._default,G=L[0];K=c.createElement("div");for(K.innerHTML=L[1]+J+L[2];G--;){K=K.lastChild}if(!ai.support.tbody){G=a8.test(J);N=N==="table"&&!G?K.firstChild&&K.firstChild.childNodes:L[1]==="<table>"&&!G?K.childNodes:[];for(L=N.length-1;L>=0;--L){ai.nodeName(N[L],"tbody")&&!N[L].childNodes.length&&N[L].parentNode.removeChild(N[L])}}!ai.support.leadingWhitespace&&at.test(J)&&K.insertBefore(c.createTextNode(at.exec(J)[0]),K.firstChild);J=ai.makeArray(K.childNodes)}}if(J.nodeType){z.push(J)}else{z=ai.merge(z,J)}}});if(F){for(r=0;z[r];r++){if(v&&ai.nodeName(z[r],"script")&&(!z[r].type||z[r].type.toLowerCase()==="text/javascript")){v.push(z[r].parentNode?z[r].parentNode.removeChild(z[r]):z[r])}else{z[r].nodeType===1&&z.splice.apply(z,[r+1,0].concat(ai.makeArray(z[r].getElementsByTagName("script"))));F.appendChild(z[r])}}}return z},cleanData:function(r){for(var c=0,v;(v=r[c])!=null;c++){ai.event.remove(v);ai.removeData(v)}}});var aE=/z-?index|font-?weight|opacity|zoom|line-?height/i,aj=/alpha\([^)]*\)/,C=/opacity=([^)]*)/,aW=/float/i,aF=/-([a-z])/ig,ae=/([A-Z])/g,w=/^-?\d+(?:px)?$/i,h=/^-?\d/,bc={position:"absolute",visibility:"hidden",display:"block"},aY=["Left","Right"],aJ=["Top","Bottom"],ag=U.defaultView&&U.defaultView.getComputedStyle,n=ai.support.cssFloat?"cssFloat":"styleFloat",af=function(r,c){return c.toUpperCase()};ai.fn.css=function(r,c){return aq(this,r,c,true,function(F,v,z){if(z===R){return ai.curCSS(F,v)}if(typeof z==="number"&&!aE.test(v)){z+="px"}ai.style(F,v,z)})};ai.extend({style:function(r,c,F){if(!r||r.nodeType===3||r.nodeType===8){return R}if((c==="width"||c==="height")&&parseFloat(F)<0){F=R}var v=r.style||r,z=F!==R;if(!ai.support.opacity&&c==="opacity"){if(z){v.zoom=1;c=parseInt(F,10)+""==="NaN"?"":"alpha(opacity="+F*100+")";r=v.filter||ai.curCSS(r,"filter")||"";v.filter=aj.test(r)?r.replace(aj,c):c}return v.filter&&v.filter.indexOf("opacity=")>=0?parseFloat(C.exec(v.filter)[1])/100+"":""}if(aW.test(c)){c=n}c=c.replace(aF,af);if(z){v[c]=F}return v[c]},css:function(r,c,J,F){if(c==="width"||c==="height"){var G,z=c==="width"?aY:aJ;function v(){G=c==="width"?r.offsetWidth:r.offsetHeight;F!=="border"&&ai.each(z,function(){F||(G-=parseFloat(ai.curCSS(r,"padding"+this,true))||0);if(F==="margin"){G+=parseFloat(ai.curCSS(r,"margin"+this,true))||0}else{G-=parseFloat(ai.curCSS(r,"border"+this+"Width",true))||0}})}r.offsetWidth!==0?v():ai.swap(r,bc,v);return Math.max(0,Math.round(G))}return ai.curCSS(r,c,J)},curCSS:function(r,c,G){var z,F=r.style;if(!ai.support.opacity&&c==="opacity"&&r.currentStyle){z=C.test(r.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return z===""?"1":z}if(aW.test(c)){c=n}if(!G&&F&&F[c]){z=F[c]}else{if(ag){if(aW.test(c)){c="float"}c=c.replace(ae,"-$1").toLowerCase();F=r.ownerDocument.defaultView;if(!F){return null}if(r=F.getComputedStyle(r,null)){z=r.getPropertyValue(c)}if(c==="opacity"&&z===""){z="1"}}else{if(r.currentStyle){G=c.replace(aF,af);z=r.currentStyle[c]||r.currentStyle[G];if(!w.test(z)&&h.test(z)){c=F.left;var v=r.runtimeStyle.left;r.runtimeStyle.left=r.currentStyle.left;F.left=G==="fontSize"?"1em":z||0;z=F.pixelLeft+"px";F.left=c;r.runtimeStyle.left=v}}}}return z},swap:function(r,c,F){var v={};for(var z in c){v[z]=r.style[z];r.style[z]=c[z]}F.call(r);for(z in c){r.style[z]=v[z]}}});if(ai.expr&&ai.expr.filters){ai.expr.filters.hidden=function(r){var c=r.offsetWidth,z=r.offsetHeight,v=r.nodeName.toLowerCase()==="tr";return c===0&&z===0&&!v?true:c>0&&z>0&&!v?false:ai.curCSS(r,"display")==="none"};ai.expr.filters.visible=function(c){return !ai.expr.filters.hidden(c)}}var A=aG(),l=/<script(.|\s)*?\/script>/gi,bf=/select|textarea/i,a2=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,aB=/=\?(&|$)/,x=/\?/,aO=/(\?|&)_=.*?(&|$)/,ak=/^(\w+:)?\/\/([^\/?#]+)/,D=/%20/g;ai.fn.extend({_load:ai.fn.load,load:function(r,c,G){if(typeof r!=="string"){return this._load(r)}else{if(!this.length){return this}}var z=r.indexOf(" ");if(z>=0){var F=r.slice(z,r.length);r=r.slice(0,z)}z="GET";if(c){if(ai.isFunction(c)){G=c;c=null}else{if(typeof c==="object"){c=ai.param(c,ai.ajaxSettings.traditional);z="POST"}}}var v=this;ai.ajax({url:r,type:z,dataType:"html",data:c,complete:function(J,K){if(K==="success"||K==="notmodified"){v.html(F?ai("<div />").append(J.responseText.replace(l,"")).find(F):J.responseText)}G&&v.each(G,[J.responseText,K,J])}});return this},serialize:function(){return ai.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?ai.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bf.test(this.nodeName)||a2.test(this.type))}).map(function(r,c){r=ai(this).val();return r==null?null:ai.isArray(r)?ai.map(r,function(v){return{name:c.name,value:v}}):{name:c.name,value:r}}).get()}});ai.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(r,c){ai.fn[c]=function(v){return this.bind(c,v)}});ai.extend({get:function(r,c,z,v){if(ai.isFunction(c)){v=v||z;z=c;c=null}return ai.ajax({type:"GET",url:r,data:c,success:z,dataType:v})},getScript:function(r,c){return ai.get(r,null,c,"script")},getJSON:function(r,c,v){return ai.get(r,c,v,"json")},post:function(r,c,z,v){if(ai.isFunction(c)){v=v||z;z=c;c={}}return ai.ajax({type:"POST",url:r,data:c,success:z,dataType:v})},ajaxSetup:function(c){ai.extend(ai.ajaxSettings,c)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:I.XMLHttpRequest&&(I.location.protocol!=="file:"||!I.ActiveXObject)?function(){return new I.XMLHttpRequest}:function(){try{return new I.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(ab){function aa(){Y.success&&Y.success.call(K,N,S,r);Y.global&&X("ajaxSuccess",[r,Y])}function Z(){Y.complete&&Y.complete.call(K,r,S);Y.global&&X("ajaxComplete",[r,Y]);Y.global&&!--ai.active&&ai.event.trigger("ajaxStop")}function X(ba,bb){(Y.context?ai(Y.context):ai.event).trigger(ba,bb)}var Y=ai.extend(true,{},ai.ajaxSettings,ab),T,S,N,K=ab&&ab.context||Y,O=Y.type.toUpperCase();if(Y.data&&Y.processData&&typeof Y.data!=="string"){Y.data=ai.param(Y.data,Y.traditional)}if(Y.dataType==="jsonp"){if(O==="GET"){aB.test(Y.url)||(Y.url+=(x.test(Y.url)?"&":"?")+(Y.jsonp||"callback")+"=?")}else{if(!Y.data||!aB.test(Y.data)){Y.data=(Y.data?Y.data+"&":"")+(Y.jsonp||"callback")+"=?"}}Y.dataType="json"}if(Y.dataType==="json"&&(Y.data&&aB.test(Y.data)||aB.test(Y.url))){T=Y.jsonpCallback||"jsonp"+A++;if(Y.data){Y.data=(Y.data+"").replace(aB,"="+T+"$1")}Y.url=Y.url.replace(aB,"="+T+"$1");Y.dataType="script";I[T]=I[T]||function(ba){N=ba;aa();Z();I[T]=R;try{delete I[T]}catch(bb){}J&&J.removeChild(G)}}if(Y.dataType==="script"&&Y.cache===null){Y.cache=false}if(Y.cache===false&&O==="GET"){var z=aG(),c=Y.url.replace(aO,"$1_="+z+"$2");Y.url=c+(c===Y.url?(x.test(Y.url)?"&":"?")+"_="+z:"")}if(Y.data&&O==="GET"){Y.url+=(x.test(Y.url)?"&":"?")+Y.data}Y.global&&!ai.active++&&ai.event.trigger("ajaxStart");z=(z=ak.exec(Y.url))&&(z[1]&&z[1]!==location.protocol||z[2]!==location.host);if(Y.dataType==="script"&&O==="GET"&&z){var J=U.getElementsByTagName("head")[0]||U.documentElement,G=U.createElement("script");G.src=Y.url;if(Y.scriptCharset){G.charset=Y.scriptCharset}if(!T){var F=false;G.onload=G.onreadystatechange=function(){if(!F&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){F=true;aa();Z();G.onload=G.onreadystatechange=null;J&&G.parentNode&&J.removeChild(G)}}}J.insertBefore(G,J.firstChild);return R}var v=false,r=Y.xhr();if(r){Y.username?r.open(O,Y.url,Y.async,Y.username,Y.password):r.open(O,Y.url,Y.async);try{if(Y.data||ab&&ab.contentType){r.setRequestHeader("Content-Type",Y.contentType)}if(Y.ifModified){ai.lastModified[Y.url]&&r.setRequestHeader("If-Modified-Since",ai.lastModified[Y.url]);ai.etag[Y.url]&&r.setRequestHeader("If-None-Match",ai.etag[Y.url])}z||r.setRequestHeader("X-Requested-With","XMLHttpRequest");r.setRequestHeader("Accept",Y.dataType&&Y.accepts[Y.dataType]?Y.accepts[Y.dataType]+", */*":Y.accepts._default)}catch(L){}if(Y.beforeSend&&Y.beforeSend.call(K,r,Y)===false){Y.global&&!--ai.active&&ai.event.trigger("ajaxStop");r.abort();return false}Y.global&&X("ajaxSend",[r,Y]);var W=r.onreadystatechange=function(bb){if(!r||r.readyState===0||bb==="abort"){v||Z();v=true;if(r){r.onreadystatechange=ai.noop}}else{if(!v&&r&&(r.readyState===4||bb==="timeout")){v=true;r.onreadystatechange=ai.noop;S=bb==="timeout"?"timeout":!ai.httpSuccess(r)?"error":Y.ifModified&&ai.httpNotModified(r,Y.url)?"notmodified":"success";var bi;if(S==="success"){try{N=ai.httpData(r,Y.dataType,Y)}catch(ba){S="parsererror";bi=ba}}if(S==="success"||S==="notmodified"){T||aa()}else{ai.handleError(Y,r,S,bi)}Z();bb==="timeout"&&r.abort();if(Y.async){r=null}}}};try{var V=r.abort;r.abort=function(){r&&V.call(r);W("abort")}}catch(Q){}Y.async&&Y.timeout>0&&setTimeout(function(){r&&!v&&W("timeout")},Y.timeout);try{r.send(O==="POST"||O==="PUT"||O==="DELETE"?Y.data:null)}catch(P){ai.handleError(Y,r,null,P);Z()}Y.async||W();return r}},handleError:function(r,c,z,v){if(r.error){r.error.call(r.context||r,c,z,v)}if(r.global){(r.context?ai(r.context):ai.event).trigger("ajaxError",[c,r,v])}},active:0,httpSuccess:function(r){try{return !r.status&&location.protocol==="file:"||r.status>=200&&r.status<300||r.status===304||r.status===1223||r.status===0}catch(c){}return false},httpNotModified:function(r,c){var z=r.getResponseHeader("Last-Modified"),v=r.getResponseHeader("Etag");if(z){ai.lastModified[c]=z}if(v){ai.etag[c]=v}return r.status===304||r.status===0},httpData:function(r,c,F){var v=r.getResponseHeader("content-type")||"",z=c==="xml"||!c&&v.indexOf("xml")>=0;r=z?r.responseXML:r.responseText;z&&r.documentElement.nodeName==="parsererror"&&ai.error("parsererror");if(F&&F.dataFilter){r=F.dataFilter(r,c)}if(typeof r==="string"){if(c==="json"||!c&&v.indexOf("json")>=0){r=ai.parseJSON(r)}else{if(c==="script"||!c&&v.indexOf("javascript")>=0){ai.globalEval(r)}}}return r},param:function(r,c){function G(J,K){if(ai.isArray(K)){ai.each(K,function(N,L){c?z(J,L):G(J+"["+(typeof L==="object"||ai.isArray(L)?N:"")+"]",L)})}else{!c&&K!=null&&typeof K==="object"?ai.each(K,function(N,L){G(J+"["+N+"]",L)}):z(J,K)}}function z(J,K){K=ai.isFunction(K)?K():K;F[F.length]=encodeURIComponent(J)+"="+encodeURIComponent(K)}var F=[];if(c===R){c=ai.ajaxSettings.traditional}if(ai.isArray(r)||r.jquery){ai.each(r,function(){z(this.name,this.value)})}else{for(var v in r){G(v,r[v])}}return F.join("&").replace(D,"+")}});var j={},o=/toggle|show|hide/,a=/^([+-]=)?([\d+-.]+)(.*)$/,ar,aP=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];ai.fn.extend({show:function(r,c){if(r||r===0){return this.animate(aD("show",3),r,c)}else{r=0;for(c=this.length;r<c;r++){var F=ai.data(this[r],"olddisplay");this[r].style.display=F||"";if(ai.css(this[r],"display")==="none"){F=this[r].nodeName;var v;if(j[F]){v=j[F]}else{var z=ai("<"+F+" />").appendTo("body");v=z.css("display");if(v==="none"){v="block"}z.remove();j[F]=v}ai.data(this[r],"olddisplay",v)}}r=0;for(c=this.length;r<c;r++){this[r].style.display=ai.data(this[r],"olddisplay")||""}return this}},hide:function(r,c){if(r||r===0){return this.animate(aD("hide",3),r,c)}else{r=0;for(c=this.length;r<c;r++){var v=ai.data(this[r],"olddisplay");!v&&v!=="none"&&ai.data(this[r],"olddisplay",ai.css(this[r],"display"))}r=0;for(c=this.length;r<c;r++){this[r].style.display="none"}return this}},_toggle:ai.fn.toggle,toggle:function(r,c){var v=typeof r==="boolean";if(ai.isFunction(r)&&ai.isFunction(c)){this._toggle.apply(this,arguments)}else{r==null||v?this.each(function(){var z=v?r:ai(this).is(":hidden");ai(this)[z?"show":"hide"]()}):this.animate(aD("toggle",3),r,c)}return this},fadeTo:function(r,c,v){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:c},r,v)},animate:function(r,c,F,v){var z=ai.speed(c,F,v);if(ai.isEmptyObject(r)){return this.each(z.complete)}return this[z.queue===false?"each":"queue"](function(){var K=ai.extend({},z),J,N=this.nodeType===1&&ai(this).is(":hidden"),L=this;for(J in r){var G=J.replace(aF,af);if(J!==G){r[G]=r[J];delete r[J];J=G}if(r[J]==="hide"&&N||r[J]==="show"&&!N){return K.complete.call(this)}if((J==="height"||J==="width")&&this.style){K.display=ai.css(this,"display");K.overflow=this.style.overflow}if(ai.isArray(r[J])){(K.specialEasing=K.specialEasing||{})[J]=r[J][1];r[J]=r[J][0]}}if(K.overflow!=null){this.style.overflow="hidden"}K.curAnim=ai.extend({},r);ai.each(r,function(Q,P){var O=new ai.fx(L,K,Q);if(o.test(P)){O[P==="toggle"?N?"show":"hide":P](r)}else{var V=a.exec(P),T=O.cur(true)||0;if(V){P=parseFloat(V[2]);var S=V[3]||"px";if(S!=="px"){L.style[Q]=(P||1)+S;T=(P||1)/O.cur(true)*T;L.style[Q]=T+S}if(V[1]){P=(V[1]==="-="?-1:1)*P+T}O.custom(T,P,S)}else{O.custom(T,P,"")}}});return true})},stop:function(r,c){var v=ai.timers;r&&this.queue([]);this.each(function(){for(var z=v.length-1;z>=0;z--){if(v[z].elem===this){c&&v[z](true);v.splice(z,1)}}});c||this.dequeue();return this}});ai.each({slideDown:aD("show",1),slideUp:aD("hide",1),slideToggle:aD("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(r,c){ai.fn[r]=function(z,v){return this.animate(c,z,v)}});ai.extend({speed:function(r,c,z){var v=r&&typeof r==="object"?r:{complete:z||!z&&c||ai.isFunction(r)&&r,duration:r,easing:z&&c||c&&!ai.isFunction(c)&&c};v.duration=ai.fx.off?0:typeof v.duration==="number"?v.duration:ai.fx.speeds[v.duration]||ai.fx.speeds._default;v.old=v.complete;v.complete=function(){v.queue!==false&&ai(this).dequeue();ai.isFunction(v.old)&&v.old.call(this)};return v},easing:{linear:function(r,c,z,v){return z+v*r},swing:function(r,c,z,v){return(-Math.cos(r*Math.PI)/2+0.5)*v+z}},timers:[],fx:function(r,c,v){this.options=c;this.elem=r;this.prop=v;if(!c.orig){c.orig={}}}});ai.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(ai.fx.step[this.prop]||ai.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(ai.css(this.elem,this.prop,c)))&&c>-10000?c:parseFloat(ai.curCSS(this.elem,this.prop))||0},custom:function(r,c,F){function v(G){return z.step(G)}this.startTime=aG();this.start=r;this.end=c;this.unit=F||this.unit||"px";this.now=this.start;this.pos=this.state=0;var z=this;v.elem=this.elem;if(v()&&ai.timers.push(v)&&!ar){ar=setInterval(ai.fx.tick,13)}},show:function(){this.options.orig[this.prop]=ai.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());ai(this.elem).show()},hide:function(){this.options.orig[this.prop]=ai.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(r){var c=aG(),F=true;if(r||c>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var v in this.options.curAnim){if(this.options.curAnim[v]!==true){F=false}}if(F){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;r=ai.data(this.elem,"olddisplay");this.elem.style.display=r?r:this.options.display;if(ai.css(this.elem,"display")==="none"){this.elem.style.display="block"}}this.options.hide&&ai(this.elem).hide();if(this.options.hide||this.options.show){for(var z in this.options.curAnim){ai.style(this.elem,z,this.options.orig[z])}}this.options.complete.call(this.elem)}return false}else{z=c-this.startTime;this.state=z/this.options.duration;r=this.options.easing||(ai.easing.swing?"swing":"linear");this.pos=ai.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||r](this.state,z,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};ai.extend(ai.fx,{tick:function(){for(var r=ai.timers,c=0;c<r.length;c++){r[c]()||r.splice(c--,1)}r.length||ai.fx.stop()},stop:function(){clearInterval(ar);ar=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(c){ai.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(ai.expr&&ai.expr.filters){ai.expr.filters.animated=function(c){return ai.grep(ai.timers,function(r){return c===r.elem}).length}}ai.fn.offset="getBoundingClientRect" in U.documentElement?function(r){var c=this[0];if(r){return this.each(function(F){ai.offset.setOffset(this,r,F)})}if(!c||!c.ownerDocument){return null}if(c===c.ownerDocument.body){return ai.offset.bodyOffset(c)}var z=c.getBoundingClientRect(),v=c.ownerDocument;c=v.body;v=v.documentElement;return{top:z.top+(self.pageYOffset||ai.support.boxModel&&v.scrollTop||c.scrollTop)-(v.clientTop||c.clientTop||0),left:z.left+(self.pageXOffset||ai.support.boxModel&&v.scrollLeft||c.scrollLeft)-(v.clientLeft||c.clientLeft||0)}}:function(N){var L=this[0];if(N){return this.each(function(O){ai.offset.setOffset(this,N,O)})}if(!L||!L.ownerDocument){return null}if(L===L.ownerDocument.body){return ai.offset.bodyOffset(L)}ai.offset.initialize();var K=L.offsetParent,G=L,J=L.ownerDocument,F,z=J.documentElement,r=J.body;G=(J=J.defaultView)?J.getComputedStyle(L,null):L.currentStyle;for(var c=L.offsetTop,v=L.offsetLeft;(L=L.parentNode)&&L!==r&&L!==z;){if(ai.offset.supportsFixedPosition&&G.position==="fixed"){break}F=J?J.getComputedStyle(L,null):L.currentStyle;c-=L.scrollTop;v-=L.scrollLeft;if(L===K){c+=L.offsetTop;v+=L.offsetLeft;if(ai.offset.doesNotAddBorder&&!(ai.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(L.nodeName))){c+=parseFloat(F.borderTopWidth)||0;v+=parseFloat(F.borderLeftWidth)||0}G=K;K=L.offsetParent}if(ai.offset.subtractsBorderForOverflowNotVisible&&F.overflow!=="visible"){c+=parseFloat(F.borderTopWidth)||0;v+=parseFloat(F.borderLeftWidth)||0}G=F}if(G.position==="relative"||G.position==="static"){c+=r.offsetTop;v+=r.offsetLeft}if(ai.offset.supportsFixedPosition&&G.position==="fixed"){c+=Math.max(z.scrollTop,r.scrollTop);v+=Math.max(z.scrollLeft,r.scrollLeft)}return{top:c,left:v}};ai.offset={initialize:function(){var r=U.body,c=U.createElement("div"),G,z,F,v=parseFloat(ai.curCSS(r,"marginTop",true))||0;ai.extend(c.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});c.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";r.insertBefore(c,r.firstChild);G=c.firstChild;z=G.firstChild;F=G.nextSibling.firstChild.firstChild;this.doesNotAddBorder=z.offsetTop!==5;this.doesAddBorderForTableAndCells=F.offsetTop===5;z.style.position="fixed";z.style.top="20px";this.supportsFixedPosition=z.offsetTop===20||z.offsetTop===15;z.style.position=z.style.top="";G.style.overflow="hidden";G.style.position="relative";this.subtractsBorderForOverflowNotVisible=z.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=r.offsetTop!==v;r.removeChild(c);ai.offset.initialize=ai.noop},bodyOffset:function(r){var c=r.offsetTop,v=r.offsetLeft;ai.offset.initialize();if(ai.offset.doesNotIncludeMarginInBodyOffset){c+=parseFloat(ai.curCSS(r,"marginTop",true))||0;v+=parseFloat(ai.curCSS(r,"marginLeft",true))||0}return{top:c,left:v}},setOffset:function(r,c,J){if(/static/.test(ai.curCSS(r,"position"))){r.style.position="relative"}var F=ai(r),G=F.offset(),z=parseInt(ai.curCSS(r,"top",true),10)||0,v=parseInt(ai.curCSS(r,"left",true),10)||0;if(ai.isFunction(c)){c=c.call(r,J,G)}J={top:c.top-G.top+z,left:c.left-G.left+v};"using" in c?c.using.call(r,J):F.css(J)}};ai.fn.extend({position:function(){if(!this[0]){return null}var r=this[0],c=this.offsetParent(),z=this.offset(),v=/^body|html$/i.test(c[0].nodeName)?{top:0,left:0}:c.offset();z.top-=parseFloat(ai.curCSS(r,"marginTop",true))||0;z.left-=parseFloat(ai.curCSS(r,"marginLeft",true))||0;v.top+=parseFloat(ai.curCSS(c[0],"borderTopWidth",true))||0;v.left+=parseFloat(ai.curCSS(c[0],"borderLeftWidth",true))||0;return{top:z.top-v.top,left:z.left-v.left}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent||U.body;c&&!/^body|html$/i.test(c.nodeName)&&ai.css(c,"position")==="static";){c=c.offsetParent}return c})}});ai.each(["Left","Top"],function(r,c){var v="scroll"+c;ai.fn[v]=function(F){var G=this[0],z;if(!G){return null}if(F!==R){return this.each(function(){if(z=al(this)){z.scrollTo(!r?F:ai(z).scrollLeft(),r?F:ai(z).scrollTop())}else{this[v]=F}})}else{return(z=al(G))?"pageXOffset" in z?z[r?"pageYOffset":"pageXOffset"]:ai.support.boxModel&&z.document.documentElement[v]||z.document.body[v]:G[v]}}});ai.each(["Height","Width"],function(r,c){var v=c.toLowerCase();ai.fn["inner"+c]=function(){return this[0]?ai.css(this[0],v,false,"padding"):null};ai.fn["outer"+c]=function(z){return this[0]?ai.css(this[0],v,false,z?"margin":"border"):null};ai.fn[v]=function(z){var F=this[0];if(!F){return z==null?null:this}if(ai.isFunction(z)){return this.each(function(J){var G=ai(this);G[v](z.call(this,J,G[v]()))})}return"scrollTo" in F&&F.document?F.document.compatMode==="CSS1Compat"&&F.document.documentElement["client"+c]||F.document.body["client"+c]:F.nodeType===9?Math.max(F.documentElement["client"+c],F.body["scroll"+c],F.documentElement["scroll"+c],F.body["offset"+c],F.documentElement["offset"+c]):z===R?ai.css(F,v):this.css(v,typeof z==="string"?z:z+"px")}});I.jQuery=I.$=ai})(window);jQuery.bt={version:"0.9.5-rc1"};(function($){jQuery.fn.bt=function(content,options){if(typeof content!="string"){var contentSelect=true;options=content;content=false}else{var contentSelect=false}if(jQuery.fn.hoverIntent&&jQuery.bt.defaults.trigger=="hover"){jQuery.bt.defaults.trigger="hoverIntent"}return this.each(function(index){var opts=jQuery.extend(false,jQuery.bt.defaults,jQuery.bt.options,options);opts.spikeLength=numb(opts.spikeLength);opts.spikeGirth=numb(opts.spikeGirth);opts.overlap=numb(opts.overlap);var ajaxTimeout=false;if(opts.killTitle){$(this).find("[title]").andSelf().each(function(){if(!$(this).attr("bt-xTitle")){$(this).attr("bt-xTitle",$(this).attr("title")).attr("title","")}})}if(typeof opts.trigger=="string"){opts.trigger=[opts.trigger]}if(opts.trigger[0]=="hoverIntent"){var hoverOpts=jQuery.extend(opts.hoverIntentOpts,{over:function(){this.btOn()},out:function(){this.btOff()}});$(this).hoverIntent(hoverOpts)}else{if(opts.trigger[0]=="hover"){$(this).hover(function(){this.btOn()},function(){this.btOff()})}else{if(opts.trigger[0]=="now"){if($(this).hasClass("bt-active")){this.btOff()}else{this.btOn()}}else{if(opts.trigger[0]=="none"){}else{if(opts.trigger.length>1&&opts.trigger[0]!=opts.trigger[1]){$(this).bind(opts.trigger[0],function(){this.btOn()}).bind(opts.trigger[1],function(){this.btOff()})}else{$(this).bind(opts.trigger[0],function(){if($(this).hasClass("bt-active")){this.btOff()}else{this.btOn()}})}}}}}this.btOn=function(){if(typeof $(this).data("bt-box")=="object"){this.btOff()}opts.preBuild.apply(this);$(jQuery.bt.vars.closeWhenOpenStack).btOff();$(this).addClass("bt-active "+opts.activeClass);if(contentSelect&&opts.ajaxPath==null){if(opts.killTitle){$(this).attr("title",$(this).attr("bt-xTitle"))}content=$.isFunction(opts.contentSelector)?opts.contentSelector.apply(this):eval(opts.contentSelector);if(opts.killTitle){$(this).attr("title","")}}if(opts.ajaxPath!=null&&content==false){if(typeof opts.ajaxPath=="object"){var url=eval(opts.ajaxPath[0]);url+=opts.ajaxPath[1]?" "+opts.ajaxPath[1]:""}else{var url=opts.ajaxPath}var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=url.slice(0,off)}var cacheData=opts.ajaxCache?$(document.body).data("btCache-"+url.replace(/\./g,"")):null;if(typeof cacheData=="string"){content=selector?$("<div/>").append(cacheData.replace(/<script(.|\s)*?\/script>/g,"")).find(selector):cacheData}else{var target=this;var ajaxOpts=jQuery.extend(false,{type:opts.ajaxType,data:opts.ajaxData,cache:opts.ajaxCache,url:url,complete:function(XMLHttpRequest,textStatus){if(textStatus=="success"||textStatus=="notmodified"){if(opts.ajaxCache){$(document.body).data("btCache-"+url.replace(/\./g,""),XMLHttpRequest.responseText)}ajaxTimeout=false;content=selector?$("<div/>").append(XMLHttpRequest.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(selector):XMLHttpRequest.responseText}else{if(textStatus=="timeout"){ajaxTimeout=true}content=opts.ajaxError.replace(/%error/g,XMLHttpRequest.statusText)}if($(target).hasClass("bt-active")){target.btOn()}}},opts.ajaxOpts);jQuery.ajax(ajaxOpts);content=opts.ajaxLoading}}var shadowMarginX=0;var shadowMarginY=0;var shadowShiftX=0;var shadowShiftY=0;if(opts.shadow&&!shadowSupport()){opts.shadow=false;jQuery.extend(opts,opts.noShadowOpts)}if(opts.shadow){if(opts.shadowBlur>Math.abs(opts.shadowOffsetX)){shadowMarginX=opts.shadowBlur*2}else{shadowMarginX=opts.shadowBlur+Math.abs(opts.shadowOffsetX)}shadowShiftX=(opts.shadowBlur-opts.shadowOffsetX)>0?opts.shadowBlur-opts.shadowOffsetX:0;if(opts.shadowBlur>Math.abs(opts.shadowOffsetY)){shadowMarginY=opts.shadowBlur*2}else{shadowMarginY=opts.shadowBlur+Math.abs(opts.shadowOffsetY)}shadowShiftY=(opts.shadowBlur-opts.shadowOffsetY)>0?opts.shadowBlur-opts.shadowOffsetY:0}if(opts.offsetParent){var offsetParent=$(opts.offsetParent);var offsetParentPos=offsetParent.offset();var pos=$(this).offset();var top=numb(pos.top)-numb(offsetParentPos.top)+numb($(this).css("margin-top"))-shadowShiftY;var left=numb(pos.left)-numb(offsetParentPos.left)+numb($(this).css("margin-left"))-shadowShiftX}else{var offsetParent=($(this).css("position")=="absolute")?$(this).parents().eq(0).offsetParent():$(this).offsetParent();var pos=$(this).btPosition();var top=numb(pos.top)+numb($(this).css("margin-top"))-shadowShiftY;var left=numb(pos.left)+numb($(this).css("margin-left"))-shadowShiftX}var width=$(this).btOuterWidth();var height=$(this).outerHeight();if(typeof content=="object"){var original=content;var clone=$(original).clone(true).show();var origClones=$(original).data("bt-clones")||[];origClones.push(clone);$(original).data("bt-clones",origClones);$(clone).data("bt-orig",original);$(this).data("bt-content-orig",{original:original,clone:clone});content=clone}if(typeof content=="null"||content==""){return}var $text=$('<div class="bt-content"></div>').append(content).css({padding:opts.padding,position:"absolute",width:(opts.shrinkToFit?"auto":opts.width),zIndex:opts.textzIndex,left:shadowShiftX,top:shadowShiftY}).css(opts.cssStyles);var $box=$('<div class="bt-wrapper"></div>').append($text).addClass(opts.cssClass).css({position:"absolute",width:opts.width,zIndex:opts.wrapperzIndex,visibility:"hidden"}).appendTo(offsetParent);if(jQuery.fn.bgiframe){$text.bgiframe();$box.bgiframe()}$(this).data("bt-box",$box);var scrollTop=numb($(document).scrollTop());var scrollLeft=numb($(document).scrollLeft());var docWidth=numb($(window).width());var docHeight=numb($(window).height());var winRight=scrollLeft+docWidth;var winBottom=scrollTop+docHeight;var space=new Object();var thisOffset=$(this).offset();space.top=thisOffset.top-scrollTop;space.bottom=docHeight-((thisOffset+height)-scrollTop);space.left=thisOffset.left-scrollLeft;space.right=docWidth-((thisOffset.left+width)-scrollLeft);var textOutHeight=numb($text.outerHeight());var textOutWidth=numb($text.btOuterWidth());if(opts.positions.constructor==String){opts.positions=opts.positions.replace(/ /,"").split(",")}if(opts.positions[0]=="most"){var position="top";for(var pig in space){position=space[pig]>space[position]?pig:position}}else{for(var x in opts.positions){var position=opts.positions[x];if((position=="left"||position=="right")&&space[position]>textOutWidth+opts.spikeLength){break}else{if((position=="top"||position=="bottom")&&space[position]>textOutHeight+opts.spikeLength){break}}}}var horiz=left+((width-textOutWidth)*0.5);var vert=top+((height-textOutHeight)*0.5);var points=new Array();var textTop,textLeft,textRight,textBottom,textTopSpace,textBottomSpace,textLeftSpace,textRightSpace,crossPoint,textCenter,spikePoint;switch(position){case"top":$text.css("margin-bottom",opts.spikeLength+"px");$box.css({top:(top-$text.outerHeight(true))+opts.overlap,left:horiz});textRightSpace=(winRight-opts.windowMargin)-($text.offset().left+$text.btOuterWidth(true));var xShift=shadowShiftX;if(textRightSpace<0){$box.css("left",(numb($box.css("left"))+textRightSpace)+"px");xShift-=textRightSpace}textLeftSpace=($text.offset().left+numb($text.css("margin-left")))-(scrollLeft+opts.windowMargin);if(textLeftSpace<0){$box.css("left",(numb($box.css("left"))-textLeftSpace)+"px");xShift+=textLeftSpace}textTop=$text.btPosition().top+numb($text.css("margin-top"));textLeft=$text.btPosition().left+numb($text.css("margin-left"));textRight=textLeft+$text.btOuterWidth();textBottom=textTop+$text.outerHeight();textCenter={x:textLeft+($text.btOuterWidth()*opts.centerPointX),y:textTop+($text.outerHeight()*opts.centerPointY)};points[points.length]=spikePoint={y:textBottom+opts.spikeLength,x:((textRight-textLeft)*0.5)+xShift,type:"spike"};crossPoint=findIntersectX(spikePoint.x,spikePoint.y,textCenter.x,textCenter.y,textBottom);crossPoint.x=crossPoint.x<textLeft+opts.spikeGirth/2+opts.cornerRadius?textLeft+opts.spikeGirth/2+opts.cornerRadius:crossPoint.x;crossPoint.x=crossPoint.x>(textRight-opts.spikeGirth/2)-opts.cornerRadius?(textRight-opts.spikeGirth/2)-opts.CornerRadius:crossPoint.x;points[points.length]={x:crossPoint.x-(opts.spikeGirth/2),y:textBottom,type:"join"};points[points.length]={x:textLeft,y:textBottom,type:"corner"};points[points.length]={x:textLeft,y:textTop,type:"corner"};points[points.length]={x:textRight,y:textTop,type:"corner"};points[points.length]={x:textRight,y:textBottom,type:"corner"};points[points.length]={x:crossPoint.x+(opts.spikeGirth/2),y:textBottom,type:"join"};points[points.length]=spikePoint;break;case"left":$text.css("margin-right",opts.spikeLength+"px");$box.css({top:vert+"px",left:((left-$text.btOuterWidth(true))+opts.overlap)+"px"});textBottomSpace=(winBottom-opts.windowMargin)-($text.offset().top+$text.outerHeight(true));var yShift=shadowShiftY;if(textBottomSpace<0){$box.css("top",(numb($box.css("top"))+textBottomSpace)+"px");yShift-=textBottomSpace}textTopSpace=($text.offset().top+numb($text.css("margin-top")))-(scrollTop+opts.windowMargin);if(textTopSpace<0){$box.css("top",(numb($box.css("top"))-textTopSpace)+"px");yShift+=textTopSpace}textTop=$text.btPosition().top+numb($text.css("margin-top"));textLeft=$text.btPosition().left+numb($text.css("margin-left"));textRight=textLeft+$text.btOuterWidth();textBottom=textTop+$text.outerHeight();textCenter={x:textLeft+($text.btOuterWidth()*opts.centerPointX),y:textTop+($text.outerHeight()*opts.centerPointY)};points[points.length]=spikePoint={x:textRight+opts.spikeLength,y:((textBottom-textTop)*0.5)+yShift,type:"spike"};crossPoint=findIntersectY(spikePoint.x,spikePoint.y,textCenter.x,textCenter.y,textRight);crossPoint.y=crossPoint.y<textTop+opts.spikeGirth/2+opts.cornerRadius?textTop+opts.spikeGirth/2+opts.cornerRadius:crossPoint.y;crossPoint.y=crossPoint.y>(textBottom-opts.spikeGirth/2)-opts.cornerRadius?(textBottom-opts.spikeGirth/2)-opts.cornerRadius:crossPoint.y;points[points.length]={x:textRight,y:crossPoint.y+opts.spikeGirth/2,type:"join"};points[points.length]={x:textRight,y:textBottom,type:"corner"};points[points.length]={x:textLeft,y:textBottom,type:"corner"};points[points.length]={x:textLeft,y:textTop,type:"corner"};points[points.length]={x:textRight,y:textTop,type:"corner"};points[points.length]={x:textRight,y:crossPoint.y-opts.spikeGirth/2,type:"join"};points[points.length]=spikePoint;break;case"bottom":$text.css("margin-top",opts.spikeLength+"px");$box.css({top:(top+height)-opts.overlap,left:horiz});textRightSpace=(winRight-opts.windowMargin)-($text.offset().left+$text.btOuterWidth(true));var xShift=shadowShiftX;if(textRightSpace<0){$box.css("left",(numb($box.css("left"))+textRightSpace)+"px");xShift-=textRightSpace}textLeftSpace=($text.offset().left+numb($text.css("margin-left")))-(scrollLeft+opts.windowMargin);if(textLeftSpace<0){$box.css("left",(numb($box.css("left"))-textLeftSpace)+"px");xShift+=textLeftSpace}textTop=$text.btPosition().top+numb($text.css("margin-top"));textLeft=$text.btPosition().left+numb($text.css("margin-left"));textRight=textLeft+$text.btOuterWidth();textBottom=textTop+$text.outerHeight();textCenter={x:textLeft+($text.btOuterWidth()*opts.centerPointX),y:textTop+($text.outerHeight()*opts.centerPointY)};points[points.length]=spikePoint={x:((textRight-textLeft)*0.5)+xShift,y:shadowShiftY,type:"spike"};crossPoint=findIntersectX(spikePoint.x,spikePoint.y,textCenter.x,textCenter.y,textTop);crossPoint.x=crossPoint.x<textLeft+opts.spikeGirth/2+opts.cornerRadius?textLeft+opts.spikeGirth/2+opts.cornerRadius:crossPoint.x;crossPoint.x=crossPoint.x>(textRight-opts.spikeGirth/2)-opts.cornerRadius?(textRight-opts.spikeGirth/2)-opts.cornerRadius:crossPoint.x;points[points.length]={x:crossPoint.x+opts.spikeGirth/2,y:textTop,type:"join"};points[points.length]={x:textRight,y:textTop,type:"corner"};points[points.length]={x:textRight,y:textBottom,type:"corner"};points[points.length]={x:textLeft,y:textBottom,type:"corner"};points[points.length]={x:textLeft,y:textTop,type:"corner"};points[points.length]={x:crossPoint.x-(opts.spikeGirth/2),y:textTop,type:"join"};points[points.length]=spikePoint;break;case"right":$text.css("margin-left",(opts.spikeLength+"px"));$box.css({top:vert+"px",left:((left+width)-opts.overlap)+"px"});textBottomSpace=(winBottom-opts.windowMargin)-($text.offset().top+$text.outerHeight(true));var yShift=shadowShiftY;if(textBottomSpace<0){$box.css("top",(numb($box.css("top"))+textBottomSpace)+"px");yShift-=textBottomSpace}textTopSpace=($text.offset().top+numb($text.css("margin-top")))-(scrollTop+opts.windowMargin);if(textTopSpace<0){$box.css("top",(numb($box.css("top"))-textTopSpace)+"px");yShift+=textTopSpace}textTop=$text.btPosition().top+numb($text.css("margin-top"));textLeft=$text.btPosition().left+numb($text.css("margin-left"));textRight=textLeft+$text.btOuterWidth();textBottom=textTop+$text.outerHeight();textCenter={x:textLeft+($text.btOuterWidth()*opts.centerPointX),y:textTop+($text.outerHeight()*opts.centerPointY)};points[points.length]=spikePoint={x:shadowShiftX,y:((textBottom-textTop)*0.5)+yShift,type:"spike"};crossPoint=findIntersectY(spikePoint.x,spikePoint.y,textCenter.x,textCenter.y,textLeft);crossPoint.y=crossPoint.y<textTop+opts.spikeGirth/2+opts.cornerRadius?textTop+opts.spikeGirth/2+opts.cornerRadius:crossPoint.y;crossPoint.y=crossPoint.y>(textBottom-opts.spikeGirth/2)-opts.cornerRadius?(textBottom-opts.spikeGirth/2)-opts.cornerRadius:crossPoint.y;points[points.length]={x:textLeft,y:crossPoint.y-opts.spikeGirth/2,type:"join"};points[points.length]={x:textLeft,y:textTop,type:"corner"};points[points.length]={x:textRight,y:textTop,type:"corner"};points[points.length]={x:textRight,y:textBottom,type:"corner"};points[points.length]={x:textLeft,y:textBottom,type:"corner"};points[points.length]={x:textLeft,y:crossPoint.y+opts.spikeGirth/2,type:"join"};points[points.length]=spikePoint;break}var canvas=document.createElement("canvas");$(canvas).attr("width",(numb($text.btOuterWidth(true))+opts.strokeWidth*2+shadowMarginX)).attr("height",(numb($text.outerHeight(true))+opts.strokeWidth*2+shadowMarginY)).appendTo($box).css({position:"absolute",zIndex:opts.boxzIndex});if(typeof G_vmlCanvasManager!="undefined"){canvas=G_vmlCanvasManager.initElement(canvas)}if(opts.cornerRadius>0){var newPoints=new Array();var newPoint;for(var i=0;i<points.length;i++){if(points[i].type=="corner"){newPoint=betweenPoint(points[i],points[(i-1)%points.length],opts.cornerRadius);newPoint.type="arcStart";newPoints[newPoints.length]=newPoint;newPoints[newPoints.length]=points[i];newPoint=betweenPoint(points[i],points[(i+1)%points.length],opts.cornerRadius);newPoint.type="arcEnd";newPoints[newPoints.length]=newPoint}else{newPoints[newPoints.length]=points[i]}}points=newPoints}var ctx=canvas.getContext("2d");if(opts.shadow&&opts.shadowOverlap!==true){var shadowOverlap=numb(opts.shadowOverlap);switch(position){case"top":if(opts.shadowOffsetX+opts.shadowBlur-shadowOverlap>0){$box.css("top",(numb($box.css("top"))-(opts.shadowOffsetX+opts.shadowBlur-shadowOverlap)))}break;case"right":if(shadowShiftX-shadowOverlap>0){$box.css("left",(numb($box.css("left"))+shadowShiftX-shadowOverlap))}break;case"bottom":if(shadowShiftY-shadowOverlap>0){$box.css("top",(numb($box.css("top"))+shadowShiftY-shadowOverlap))}break;case"left":if(opts.shadowOffsetY+opts.shadowBlur-shadowOverlap>0){$box.css("left",(numb($box.css("left"))-(opts.shadowOffsetY+opts.shadowBlur-shadowOverlap)))}break}}drawIt.apply(ctx,[points],opts.strokeWidth);ctx.fillStyle=opts.fill;if(opts.shadow){ctx.shadowOffsetX=opts.shadowOffsetX;ctx.shadowOffsetY=opts.shadowOffsetY;ctx.shadowBlur=opts.shadowBlur;ctx.shadowColor=opts.shadowColor}ctx.closePath();ctx.fill();if(opts.strokeWidth>0){ctx.shadowColor="rgba(0, 0, 0, 0)";ctx.lineWidth=opts.strokeWidth;ctx.strokeStyle=opts.strokeStyle;ctx.beginPath();drawIt.apply(ctx,[points],opts.strokeWidth);ctx.closePath();ctx.stroke()}opts.preShow.apply(this,[$box[0]]);$box.css({display:"none",visibility:"visible"});opts.showTip.apply(this,[$box[0]]);if(opts.overlay){var overlay=$('<div class="bt-overlay"></div>').css({position:"absolute",backgroundColor:"blue",top:top,left:left,width:width,height:height,opacity:".2"}).appendTo(offsetParent);$(this).data("overlay",overlay)}if((opts.ajaxPath!=null&&opts.ajaxCache==false)||ajaxTimeout){content=false}if(opts.clickAnywhereToClose){jQuery.bt.vars.clickAnywhereStack.push(this);$(document).click(jQuery.bt.docClick)}if(opts.closeWhenOthersOpen){jQuery.bt.vars.closeWhenOpenStack.push(this)}opts.postShow.apply(this,[$box[0]])};this.btOff=function(){var box=$(this).data("bt-box");opts.preHide.apply(this,[box]);var i=this;i.btCleanup=function(){var box=$(i).data("bt-box");var contentOrig=$(i).data("bt-content-orig");var overlay=$(i).data("bt-overlay");if(typeof box=="object"){$(box).remove();$(i).removeData("bt-box")}if(typeof contentOrig=="object"){var clones=$(contentOrig.original).data("bt-clones");$(contentOrig).data("bt-clones",arrayRemove(clones,contentOrig.clone))}if(typeof overlay=="object"){$(overlay).remove();$(i).removeData("bt-overlay")}jQuery.bt.vars.clickAnywhereStack=arrayRemove(jQuery.bt.vars.clickAnywhereStack,i);jQuery.bt.vars.closeWhenOpenStack=arrayRemove(jQuery.bt.vars.closeWhenOpenStack,i);$(i).removeClass("bt-active "+opts.activeClass);opts.postHide.apply(i)};opts.hideTip.apply(this,[box,i.btCleanup])};var refresh=this.btRefresh=function(){this.btOff();this.btOn()}});function drawIt(points,strokeWidth){this.moveTo(points[0].x,points[0].y);for(i=1;i<points.length;i++){if(points[i-1].type=="arcStart"){this.quadraticCurveTo(round5(points[i].x,strokeWidth),round5(points[i].y,strokeWidth),round5(points[(i+1)%points.length].x,strokeWidth),round5(points[(i+1)%points.length].y,strokeWidth));i++}else{this.lineTo(round5(points[i].x,strokeWidth),round5(points[i].y,strokeWidth))}}}function round5(num,strokeWidth){var ret;strokeWidth=numb(strokeWidth);if(strokeWidth%2){ret=num}else{ret=Math.round(num-0.5)+0.5}return ret}function numb(num){return parseInt(num)||0}function arrayRemove(arr,elem){var x,newArr=new Array();for(x in arr){if(arr[x]!=elem){newArr.push(arr[x])}}return newArr}function canvasSupport(){var canvas_compatible=false;try{canvas_compatible=!!(document.createElement("canvas").getContext("2d"))}catch(e){canvas_compatible=!!(document.createElement("canvas").getContext)}return canvas_compatible}function shadowSupport(){try{var userAgent=navigator.userAgent.toLowerCase();if(/webkit/.test(userAgent)){return true}else{if(/gecko|mozilla/.test(userAgent)&&parseFloat(userAgent.match(/firefox\/(\d+(?:\.\d+)+)/)[1])>=3.1){return true}}}catch(err){}return false}function betweenPoint(point1,point2,dist){var y,x;if(point1.x==point2.x){y=point1.y<point2.y?point1.y+dist:point1.y-dist;return{x:point1.x,y:y}}else{if(point1.y==point2.y){x=point1.x<point2.x?point1.x+dist:point1.x-dist;return{x:x,y:point1.y}}}}function centerPoint(arcStart,corner,arcEnd){var x=corner.x==arcStart.x?arcEnd.x:arcStart.x;var y=corner.y==arcStart.y?arcEnd.y:arcStart.y;var startAngle,endAngle;if(arcStart.x<arcEnd.x){if(arcStart.y>arcEnd.y){startAngle=(Math.PI/180)*180;endAngle=(Math.PI/180)*90}else{startAngle=(Math.PI/180)*90;endAngle=0}}else{if(arcStart.y>arcEnd.y){startAngle=(Math.PI/180)*270;endAngle=(Math.PI/180)*180}else{startAngle=0;endAngle=(Math.PI/180)*270}}return{x:x,y:y,type:"center",startAngle:startAngle,endAngle:endAngle}}function findIntersect(r1x1,r1y1,r1x2,r1y2,r2x1,r2y1,r2x2,r2y2){if(r2x1==r2x2){return findIntersectY(r1x1,r1y1,r1x2,r1y2,r2x1)}if(r2y1==r2y2){return findIntersectX(r1x1,r1y1,r1x2,r1y2,r2y1)}var r1m=(r1y1-r1y2)/(r1x1-r1x2);var r1b=r1y1-(r1m*r1x1);var r2m=(r2y1-r2y2)/(r2x1-r2x2);var r2b=r2y1-(r2m*r2x1);var x=(r2b-r1b)/(r1m-r2m);var y=r1m*x+r1b;return{x:x,y:y}}function findIntersectY(r1x1,r1y1,r1x2,r1y2,x){if(r1y1==r1y2){return{x:x,y:r1y1}}var r1m=(r1y1-r1y2)/(r1x1-r1x2);var r1b=r1y1-(r1m*r1x1);var y=r1m*x+r1b;return{x:x,y:y}}function findIntersectX(r1x1,r1y1,r1x2,r1y2,y){if(r1x1==r1x2){return{x:r1x1,y:y}}var r1m=(r1y1-r1y2)/(r1x1-r1x2);var r1b=r1y1-(r1m*r1x1);var x=(y-r1b)/r1m;return{x:x,y:y}}};jQuery.fn.btPosition=function(){function num(elem,prop){return elem[0]&&parseInt(jQuery.curCSS(elem[0],prop,true),10)||0}var left=0,top=0,results;if(this[0]){var offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=/^body|html$/i.test(offsetParent[0].tagName)?{top:0,left:0}:offsetParent.offset();offset.top-=num(this,"marginTop");offset.left-=num(this,"marginLeft");parentOffset.top+=num(offsetParent,"borderTopWidth");parentOffset.left+=num(offsetParent,"borderLeftWidth");results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left}}return results};jQuery.fn.btOuterWidth=function(margin){function num(elem,prop){return elem[0]&&parseInt(jQuery.curCSS(elem[0],prop,true),10)||0}return this["innerWidth"]()+num(this,"borderLeftWidth")+num(this,"borderRightWidth")+(margin?num(this,"marginLeft")+num(this,"marginRight"):0)};jQuery.fn.btOn=function(){return this.each(function(index){if(jQuery.isFunction(this.btOn)){this.btOn()}})};jQuery.fn.btOff=function(){return this.each(function(index){if(jQuery.isFunction(this.btOff)){this.btOff()}})};jQuery.bt.vars={clickAnywhereStack:[],closeWhenOpenStack:[]};jQuery.bt.docClick=function(e){if(!e){var e=window.event}if(!$(e.target).parents().andSelf().filter(".bt-wrapper, .bt-active").length&&jQuery.bt.vars.clickAnywhereStack.length){$(jQuery.bt.vars.clickAnywhereStack).btOff();$(document).unbind("click",jQuery.bt.docClick)}};jQuery.bt.defaults={trigger:"hover",clickAnywhereToClose:true,closeWhenOthersOpen:false,shrinkToFit:false,width:"200px",padding:"10px",spikeGirth:10,spikeLength:15,overlap:0,overlay:false,killTitle:true,textzIndex:9999,boxzIndex:9998,wrapperzIndex:9997,offsetParent:null,positions:["most"],fill:"rgb(255, 255, 102)",windowMargin:10,strokeWidth:1,strokeStyle:"#000",cornerRadius:5,centerPointX:0.5,centerPointY:0.5,shadow:false,shadowOffsetX:2,shadowOffsetY:2,shadowBlur:3,shadowColor:"#000",shadowOverlap:false,noShadowOpts:{strokeStyle:"#999"},cssClass:"",cssStyles:{},activeClass:"bt-active",contentSelector:"$(this).attr('title')",ajaxPath:null,ajaxError:"<strong>ERROR:</strong> <em>%error</em>",ajaxLoading:"<blink>Loading...</blink>",ajaxData:{},ajaxType:"GET",ajaxCache:true,ajaxOpts:{},preBuild:function(){},preShow:function(box){},showTip:function(box){$(box).show()},postShow:function(box){},preHide:function(box){},hideTip:function(box,callback){$(box).hide();callback()},postHide:function(){},hoverIntentOpts:{interval:300,timeout:500}};jQuery.bt.options={}})(jQuery);(function(a){a.fn.hoverIntent=function(l,k){var m={sensitivity:7,interval:100,timeout:0};m=a.extend(m,k?{over:l,out:k}:l);var o,n,h,d;var e=function(f){o=f.pageX;n=f.pageY};var c=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);if((Math.abs(h-o)+Math.abs(d-n))<m.sensitivity){a(f).unbind("mousemove",e);f.hoverIntent_s=1;return m.over.apply(f,[g])}else{h=o;d=n;f.hoverIntent_t=setTimeout(function(){c(g,f)},m.interval)}};var j=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);f.hoverIntent_s=0;return m.out.apply(f,[g])};var b=function(r){var q=(r.type=="mouseover"?r.fromElement:r.toElement)||r.relatedTarget;while(q&&q!=this){try{q=q.parentNode}catch(r){q=this}}if(q==this){return false}var g=jQuery.extend({},r);var f=this;if(f.hoverIntent_t){f.hoverIntent_t=clearTimeout(f.hoverIntent_t)}if(r.type=="mouseover"){h=g.pageX;d=g.pageY;a(f).bind("mousemove",e);if(f.hoverIntent_s!=1){f.hoverIntent_t=setTimeout(function(){c(g,f)},m.interval)}}else{a(f).unbind("mousemove",e);if(f.hoverIntent_s==1){f.hoverIntent_t=setTimeout(function(){j(g,f)},m.timeout)}}};return this.mouseover(b).mouseout(b)}})(jQuery);(function($){$.extend({metadata:{defaults:{type:"class",name:"metadata",cre:/({.*})/,single:"metadata"},setType:function(type,name){this.defaults.type=type;this.defaults.name=name},get:function(elem,opts){var settings=$.extend({},this.defaults,opts);if(!settings.single.length){settings.single="metadata"}var data=$.data(elem,settings.single);if(data){return data}data="{}";if(settings.type=="class"){var m=settings.cre.exec(elem.className);if(m){data=m[1]}}else{if(settings.type=="elem"){if(!elem.getElementsByTagName){return undefined}var e=elem.getElementsByTagName(settings.name);if(e.length){data=$.trim(e[0].innerHTML)}}else{if(elem.getAttribute!=undefined){var attr=elem.getAttribute(settings.name);if(attr){data=attr}}}}if(data.indexOf("{")<0){data="{"+data+"}"}data=eval("("+data+")");$.data(elem,settings.single,data);return data}}});$.fn.metadata=function(opts){return $.metadata.get(this[0],opts)}})(jQuery);(function(a){a.fn.extend({autocomplete:function(b,c){var d=typeof b=="string";c=a.extend({},a.Autocompleter.defaults,{url:d?b:null,data:d?null:b,delay:d?a.Autocompleter.defaults.delay:10,max:c&&!c.scroll?10:150},c);c.highlight=c.highlight||function(e){return e};c.formatMatch=c.formatMatch||c.formatItem;return this.each(function(){new a.Autocompleter(this,c)})},result:function(b){return this.bind("result",b)},search:function(b){return this.trigger("search",[b])},flushCache:function(){return this.trigger("flushCache")},setOptions:function(b){return this.trigger("setOptions",[b])},unautocomplete:function(){return this.trigger("unautocomplete")}});a.Autocompleter=function(m,g){var c={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8};var b=a(m).attr("autocomplete","off").addClass(g.inputClass);var k;var q="";var n=a.Autocompleter.Cache(g);var e=0;var v;var y={mouseDownOnSelect:false};var s=a.Autocompleter.Select(g,m,d,y);var x;a.browser.opera&&a(m.form).bind("submit.autocomplete",function(){if(x){x=false;return false}});b.bind((a.browser.opera?"keypress":"keydown")+".autocomplete",function(z){e=1;v=z.keyCode;switch(z.keyCode){case c.UP:z.preventDefault();if(s.visible()){s.prev()}else{u(0,true)}break;case c.DOWN:z.preventDefault();if(s.visible()){s.next()}else{u(0,true)}break;case c.PAGEUP:z.preventDefault();if(s.visible()){s.pageUp()}else{u(0,true)}break;case c.PAGEDOWN:z.preventDefault();if(s.visible()){s.pageDown()}else{u(0,true)}break;case g.multiple&&a.trim(g.multipleSeparator)==","&&c.COMMA:case c.TAB:case c.RETURN:if(d()){z.preventDefault();x=true;return false}break;case c.ESC:s.hide();break;default:clearTimeout(k);k=setTimeout(u,g.delay);break}}).focus(function(){e++}).blur(function(){e=0;if(!y.mouseDownOnSelect){t()}}).click(function(){if(e++>1&&!s.visible()){u(0,true)}}).bind("search",function(){var z=(arguments.length>1)?arguments[1]:null;function A(E,D){var B;if(D&&D.length){for(var C=0;C<D.length;C++){if(D[C].result.toLowerCase()==E.toLowerCase()){B=D[C];break}}}if(typeof z=="function"){z(B)}else{b.trigger("result",B&&[B.data,B.value])}}a.each(h(b.val()),function(B,C){f(C,A,A)})}).bind("flushCache",function(){n.flush()}).bind("setOptions",function(){a.extend(g,arguments[1]);if("data" in arguments[1]){n.populate()}}).bind("unautocomplete",function(){s.unbind();b.unbind();a(m.form).unbind(".autocomplete")});function d(){var C=s.selected();if(!C){return false}var z=C.result;q=z;if(g.multiple){var F=h(b.val());if(F.length>1){var B=g.multipleSeparator.length;var E=a(m).selection().start;var D,A=0;a.each(F,function(G,H){A+=H.length;if(E<=A){D=G;return false}A+=B});F[D]=z;z=F.join(g.multipleSeparator)}z+=g.multipleSeparator}b.val(z);w();b.trigger("result",[C.data,C.value]);return true}function u(B,A){if(v==c.DEL){s.hide();return}var z=b.val();if(!A&&z==q){return}q=z;z=j(z);if(z.length>=g.minChars){b.addClass(g.loadingClass);if(!g.matchCase){z=z.toLowerCase()}f(z,l,w)}else{o();s.hide()}}function h(z){if(!z){return[""]}if(!g.multiple){return[a.trim(z)]}return a.map(z.split(g.multipleSeparator),function(A){return a.trim(z).length?a.trim(A):null})}function j(z){if(!g.multiple){return z}var B=h(z);if(B.length==1){return B[0]}var A=a(m).selection().start;if(A==z.length){B=h(z)}else{B=h(z.replace(z.substring(A),""))}return B[B.length-1]}function r(z,A){if(g.autoFill&&(j(b.val()).toLowerCase()==z.toLowerCase())&&v!=c.BACKSPACE){b.val(b.val()+A.substring(j(q).length));a(m).selection(q.length,q.length+A.length)}}function t(){clearTimeout(k);k=setTimeout(w,200)}function w(){var z=s.visible();s.hide();clearTimeout(k);o();if(g.mustMatch){b.search(function(A){if(!A){if(g.multiple){var B=h(b.val()).slice(0,-1);b.val(B.join(g.multipleSeparator)+(B.length?g.multipleSeparator:""))}else{b.val("");b.trigger("result",null)}}})}}function l(A,z){if(z&&z.length&&e){o();s.display(z,A);r(A,z[0].value);s.show()}else{w()}}function f(A,C,z){if(!g.matchCase){A=A.toLowerCase()}var B=n.load(A);if(B&&B.length){C(A,B)}else{if((typeof g.url=="string")&&(g.url.length>0)){var D={timestamp:+new Date()};a.each(g.extraParams,function(E,F){D[E]=typeof F=="function"?F():F});a.ajax({mode:"abort",port:"autocomplete"+m.name,dataType:g.dataType,url:g.url,data:a.extend({q:j(A),limit:g.max},D),success:function(F){var E=g.parse&&g.parse(F)||p(F);n.add(A,E);C(A,E)}})}else{s.emptyList();z(A)}}}function p(C){var z=[];var B=C.split("\n");for(var A=0;A<B.length;A++){var D=a.trim(B[A]);if(D){D=D.split("|");z[z.length]={data:D,value:D[0],result:g.formatResult&&g.formatResult(D,D[0])||D[0]}}}return z}function o(){b.removeClass(g.loadingClass)}};a.Autocompleter.defaults={inputClass:"ac_input",resultsClass:"ac_results",loadingClass:"ac_loading",minChars:1,delay:400,matchCase:false,matchSubset:true,matchContains:false,cacheLength:10,max:100,mustMatch:false,extraParams:{},selectFirst:true,formatItem:function(b){return b[0]},formatMatch:null,autoFill:false,width:0,multiple:false,multipleSeparator:", ",highlight:function(c,b){return c.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+b.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>")},scroll:true,scrollHeight:180};a.Autocompleter.Cache=function(c){var f={};var d=0;function h(l,k){if(!c.matchCase){l=l.toLowerCase()}var j=l.indexOf(k);if(c.matchContains=="word"){j=l.toLowerCase().search("\\b"+k.toLowerCase())}if(j==-1){return false}return j==0||c.matchContains}function g(k,j){if(d>c.cacheLength){b()}if(!f[k]){d++}f[k]=j}function e(){if(!c.data){return false}var k={},j=0;if(!c.url){c.cacheLength=1}k[""]=[];for(var m=0,l=c.data.length;m<l;m++){var p=c.data[m];p=(typeof p=="string")?[p]:p;var o=c.formatMatch(p,m+1,c.data.length);if(o===false){continue}var n=o.charAt(0).toLowerCase();if(!k[n]){k[n]=[]}var q={value:o,data:p,result:c.formatResult&&c.formatResult(p)||o};k[n].push(q);if(j++<c.max){k[""].push(q)}}a.each(k,function(r,s){c.cacheLength++;g(r,s)})}setTimeout(e,25);function b(){f={};d=0}return{flush:b,add:g,populate:e,load:function(n){if(!c.cacheLength||!d){return null}if(!c.url&&c.matchContains){var m=[];for(var j in f){if(j.length>0){var o=f[j];a.each(o,function(p,k){if(h(k.value,n)){m.push(k)}})}}return m}else{if(f[n]){return f[n]}else{if(c.matchSubset){for(var l=n.length-1;l>=c.minChars;l--){var o=f[n.substr(0,l)];if(o){var m=[];a.each(o,function(p,k){if(h(k.value,n)){m[m.length]=k}});return m}}}}}return null}}};a.Autocompleter.Select=function(e,k,m,q){var j={ACTIVE:"ac_over"};var l,f=-1,s,n="",t=true,c,p;function o(){if(!t){return}c=a("<div/>").hide().addClass(e.resultsClass).css("position","absolute").appendTo(document.body);p=a("<ul/>").appendTo(c).mouseover(function(u){if(r(u).nodeName&&r(u).nodeName.toUpperCase()=="LI"){f=a("li",p).removeClass(j.ACTIVE).index(r(u));a(r(u)).addClass(j.ACTIVE)}}).click(function(u){a(r(u)).addClass(j.ACTIVE);m();k.focus();return false}).mousedown(function(){q.mouseDownOnSelect=true}).mouseup(function(){q.mouseDownOnSelect=false});if(e.width>0){c.css("width",e.width)}t=false}function r(v){var u=v.target;while(u&&u.tagName!="LI"){u=u.parentNode}if(!u){return[]}return u}function h(u){l.slice(f,f+1).removeClass(j.ACTIVE);g(u);var w=l.slice(f,f+1).addClass(j.ACTIVE);if(e.scroll){var v=0;l.slice(0,f).each(function(){v+=this.offsetHeight});if((v+w[0].offsetHeight-p.scrollTop())>p[0].clientHeight){p.scrollTop(v+w[0].offsetHeight-p.innerHeight())}else{if(v<p.scrollTop()){p.scrollTop(v)}}}}function g(u){f+=u;if(f<0){f=l.size()-1}else{if(f>=l.size()){f=0}}}function b(u){return e.max&&e.max<u?e.max:u}function d(){p.empty();var v=b(s.length);for(var w=0;w<v;w++){if(!s[w]){continue}var x=e.formatItem(s[w].data,w+1,v,s[w].value,n);if(x===false){continue}var u=a("<li/>").html(e.highlight(x,n)).addClass(w%2==0?"ac_even":"ac_odd").appendTo(p)[0];a.data(u,"ac_data",s[w])}l=p.find("li");if(e.selectFirst){l.slice(0,1).addClass(j.ACTIVE);f=0}if(a.fn.bgiframe){p.bgiframe()}}return{display:function(v,u){o();s=v;n=u;d()},next:function(){h(1)},prev:function(){h(-1)},pageUp:function(){if(f!=0&&f-8<0){h(-f)}else{h(-8)}},pageDown:function(){if(f!=l.size()-1&&f+8>l.size()){h(l.size()-1-f)}else{h(8)}},hide:function(){c&&c.hide();l&&l.removeClass(j.ACTIVE);f=-1},visible:function(){return c&&c.is(":visible")},current:function(){return this.visible()&&(l.filter("."+j.ACTIVE)[0]||e.selectFirst&&l[0])},show:function(){var w=a(k).offset();c.css({width:typeof e.width=="string"||e.width>0?e.width:a(k).width(),top:w.top+k.offsetHeight,left:w.left}).show();if(e.scroll){p.scrollTop(0);p.css({maxHeight:e.scrollHeight,overflow:"auto"});if(a.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var u=0;l.each(function(){u+=this.offsetHeight});var v=u>e.scrollHeight;p.css("height",v?e.scrollHeight:u);if(!v){l.width(p.width()-parseInt(l.css("padding-left"))-parseInt(l.css("padding-right")))}}}},selected:function(){var u=l&&l.filter("."+j.ACTIVE).removeClass(j.ACTIVE);return u&&u.length&&a.data(u[0],"ac_data")},emptyList:function(){p&&p.empty()},unbind:function(){c&&c.remove()}}};a.fn.selection=function(j,b){if(j!==undefined){return this.each(function(){if(this.createTextRange){var k=this.createTextRange();if(b===undefined||j==b){k.move("character",j);k.select()}else{k.collapse(true);k.moveStart("character",j);k.moveEnd("character",b);k.select()}}else{if(this.setSelectionRange){this.setSelectionRange(j,b)}else{if(this.selectionStart){this.selectionStart=j;this.selectionEnd=b}}}})}var g=this[0];if(g.createTextRange){var c=document.selection.createRange(),h=g.value,f="<->",d=c.text.length;c.text=f;var e=g.value.indexOf(f);g.value=h;this.selection(e,e+d);return{start:e,end:e+d}}else{if(g.selectionStart!==undefined){return{start:g.selectionStart,end:g.selectionEnd}}}}})(jQuery);jQuery(function($){$.fn.fcbkcomplete=function(opt){return this.each(function(){function init(){createFCBK();preSet();addInput(0)}function createFCBK(){element.hide();element.attr("multiple","multiple");if(element.attr("name").indexOf("[]")==-1){element.attr("name",element.attr("name")+"[]")}holder=$(document.createElement("ul"));holder.attr("class","holder");element.after(holder);complete=$(document.createElement("div"));complete.addClass("facebook-auto");complete.append('<div class="default">'+options.complete_text+"</div>");if(browser_msie){complete.append('<iframe class="ie6fix" scrolling="no" frameborder="0"></iframe>');browser_msie_frame=complete.children(".ie6fix")}feed=$(document.createElement("ul"));feed.attr("id",elemid+"_feed");complete.prepend(feed);holder.after(complete);feed.css("width",complete.width())}function preSet(){element.children("option").each(function(i,option){option=$(option);if(option.hasClass("selected")||option.is(":selected")){addItem(option.text(),option.val(),true,option.hasClass("locked"));option.attr("selected","selected")}else{option.removeAttr("selected")}cache.push({caption:option.text(),value:option.val()});search_string+=""+(cache.length-1)+":"+option.text()+";"})}$(this).bind("addItem",function(event,data){addItem(data.title,data.value,0,0,0)});function addItem(title,value,preadded,locked,focusme){if(!maxItems()){return false}var li=document.createElement("li");var txt=document.createTextNode(title);var aclose=document.createElement("a");var liclass="bit-box"+(locked?" locked":"");$(li).attr({"class":liclass,rel:value});$(li).prepend(txt);$(aclose).attr({"class":"closebutton",href:"#"});li.appendChild(aclose);holder.append(li);$(aclose).click(function(){removeItem($(this).parent("li"));return false});if(!preadded){$("#"+elemid+"_annoninput").remove();var _item;addInput(focusme);if(element.children("option[value="+value+"]").length){_item=element.children("option[value="+value+"]");_item.get(0).setAttribute("selected","selected");if(!_item.hasClass("selected")){_item.addClass("selected")}}else{var _item=$(document.createElement("option"));_item.attr("value",value).get(0).setAttribute("selected","selected");_item.attr("value",value).addClass("selected");_item.text(title);element.append(_item)}if(options.onselect.length){funCall(options.onselect,_item)}element.change()}holder.children("li.bit-box.deleted").removeClass("deleted");feed.hide();browser_msie?browser_msie_frame.hide():""}function removeItem(item){if(!item.hasClass("locked")){item.fadeOut("fast");if(options.onremove.length){var _item=element.children("option[value="+item.attr("rel")+"]");funCall(options.onremove,_item)}element.children('option[value="'+item.attr("rel")+'"]').removeAttr("selected").removeClass("selected");item.remove();element.change();deleting=0}}function addInput(focusme){var li=$(document.createElement("li"));var input=$(document.createElement("input"));var getBoxTimeout=0;li.attr({"class":"bit-input",id:elemid+"_annoninput"});input.attr({type:"text","class":"maininput",size:"1"});holder.append(li.append(input));input.focus(function(){complete.fadeIn("fast")});input.blur(function(){complete.fadeOut("fast")});holder.click(function(){input.focus();if(feed.length&&input.val().length){feed.show()}else{feed.hide();browser_msie?browser_msie_frame.hide():"";complete.children(".default").show()}});input.keypress(function(event){if(event.keyCode==13||event.keyCode==9){return false}input.attr("size",input.val().length+1)});input.keydown(function(event){if(event.keyCode==191){event.preventDefault();return false}});input.keyup(function(event){var etext=xssPrevent(input.val());if(event.keyCode==8&&etext.length==0){feed.hide();browser_msie?browser_msie_frame.hide():"";if(!holder.children("li.bit-box:last").hasClass("locked")){if(holder.children("li.bit-box.deleted").length==0){holder.children("li.bit-box:last").addClass("deleted");return false}else{if(deleting){return}deleting=1;holder.children("li.bit-box.deleted").fadeOut("fast",function(){removeItem($(this));return false})}}}if(event.keyCode!=40&&event.keyCode!=38&&etext.length!=0){counter=0;if(options.json_url){if(options.cache&&json_cache){addMembers(etext);bindEvents()}else{getBoxTimeout++;var getBoxTimeoutValue=getBoxTimeout;setTimeout(function(){if(getBoxTimeoutValue!=getBoxTimeout){return}$.getJSON(options.json_url+(options.json_url.indexOf("?")>-1?"&":"?")+"tag="+etext,null,function(data){addMembers(etext,data);json_cache=true;bindEvents()})},options.delay)}}else{addMembers(etext);bindEvents()}complete.children(".default").hide();feed.show()}});if(focusme){setTimeout(function(){input.focus();complete.children(".default").show()},1)}}function addMembers(etext,data){feed.html("");if(!options.cache&&data!=null){cache=new Array();search_string=""}addTextItem(etext);if(data!=null&&data.length){$.each(data,function(i,val){cache.push({caption:val.caption,value:val.value});search_string+=""+(cache.length-1)+":"+val.caption+";"})}var maximum=options.maxshownitems<cache.length?options.maxshownitems:cache.length;var filter="i";if(options.filter_case){filter=""}var myregexp,match;try{myregexp=eval("/(?:^|;)\\s*(\\d+)\\s*:[^;]*?"+etext+"[^;]*/g"+filter);match=myregexp.exec(search_string)}catch(ex){}var content="";while(match!=null&&maximum>0){var id=match[1];var object=cache[id];if(options.filter_selected&&element.children("option[value="+object.value+"]").hasClass("selected")){}else{content+='<li rel="'+object.value+'">'+itemIllumination(object.caption,etext)+"</li>";counter++;maximum--}match=myregexp.exec(search_string)}feed.append(content);if(options.firstselected){focuson=feed.children("li:visible:first");focuson.addClass("auto-focus")}if(counter>options.height){feed.css({height:(options.height*24)+"px",overflow:"auto"});if(browser_msie){browser_msie_frame.css({height:(options.height*24)+"px",width:feed.width()+"px"}).show()}}else{feed.css("height","auto");if(browser_msie){browser_msie_frame.css({height:feed.height()+"px",width:feed.width()+"px"}).show()}}}function itemIllumination(text,etext){if(options.filter_case){try{eval("var text = text.replace(/(.*)("+etext+")(.*)/gi,'$1<em>$2</em>$3');")}catch(ex){}}else{try{eval("var text = text.replace(/(.*)("+etext.toLowerCase()+")(.*)/gi,'$1<em>$2</em>$3');")}catch(ex){}}return text}function bindFeedEvent(){feed.children("li").mouseover(function(){feed.children("li").removeClass("auto-focus");$(this).addClass("auto-focus");focuson=$(this)});feed.children("li").mouseout(function(){$(this).removeClass("auto-focus");focuson=null})}function removeFeedEvent(){feed.children("li").unbind("mouseover");feed.children("li").unbind("mouseout");feed.mousemove(function(){bindFeedEvent();feed.unbind("mousemove")})}function bindEvents(){var maininput=$("#"+elemid+"_annoninput").children(".maininput");bindFeedEvent();feed.children("li").unbind("mousedown");feed.children("li").mousedown(function(){var option=$(this);addItem(option.text(),option.attr("rel"));feed.hide();browser_msie?browser_msie_frame.hide():"";complete.hide()});maininput.unbind("keydown");maininput.keydown(function(event){if(event.keyCode==191){event.preventDefault();return false}if(event.keyCode!=8){holder.children("li.bit-box.deleted").removeClass("deleted")}if((event.keyCode==13||event.keyCode==9)&&checkFocusOn()){var option=focuson;addItem(option.text(),option.attr("rel"));complete.hide();event.preventDefault();focuson=null;return false}if((event.keyCode==13||event.keyCode==9)&&!checkFocusOn()){if(options.newel){var value=xssPrevent($(this).val());addItem(value,value);complete.hide();event.preventDefault();focuson=null}return false}if(event.keyCode==40){removeFeedEvent();if(focuson==null||focuson.length==0){focuson=feed.children("li:visible:first");feed.get(0).scrollTop=0}else{focuson.removeClass("auto-focus");focuson=focuson.nextAll("li:visible:first");var prev=parseInt(focuson.prevAll("li:visible").length,10);var next=parseInt(focuson.nextAll("li:visible").length,10);if((prev>Math.round(options.height/2)||next<=Math.round(options.height/2))&&typeof(focuson.get(0))!="undefined"){feed.get(0).scrollTop=parseInt(focuson.get(0).scrollHeight,10)*(prev-Math.round(options.height/2))}}feed.children("li").removeClass("auto-focus");focuson.addClass("auto-focus")}if(event.keyCode==38){removeFeedEvent();if(focuson==null||focuson.length==0){focuson=feed.children("li:visible:last");feed.get(0).scrollTop=parseInt(focuson.get(0).scrollHeight,10)*(parseInt(feed.children("li:visible").length,10)-Math.round(options.height/2))}else{focuson.removeClass("auto-focus");focuson=focuson.prevAll("li:visible:first");var prev=parseInt(focuson.prevAll("li:visible").length,10);var next=parseInt(focuson.nextAll("li:visible").length,10);if((next>Math.round(options.height/2)||prev<=Math.round(options.height/2))&&typeof(focuson.get(0))!="undefined"){feed.get(0).scrollTop=parseInt(focuson.get(0).scrollHeight,10)*(prev-Math.round(options.height/2))}}feed.children("li").removeClass("auto-focus");focuson.addClass("auto-focus")}})}function maxItems(){if(options.maxitems!=0){if(holder.children("li.bit-box").length<options.maxitems){return true}else{return false}}}function addTextItem(value){if(options.newel&&maxItems()){feed.children("li[fckb=1]").remove();if(value.length==0){return}var li=$(document.createElement("li"));li.attr({rel:value,fckb:"1"}).html(value);feed.prepend(li);counter++}else{return}}function funCall(func,item){var _object="";for(i=0;i<item.get(0).attributes.length;i++){if(item.get(0).attributes[i].nodeValue!=null){_object+='"_'+item.get(0).attributes[i].nodeName+'": "'+item.get(0).attributes[i].nodeValue+'",'}}_object="{"+_object+" notinuse: 0}";func.call(func,_object)}function checkFocusOn(){if(focuson==null){return false}if(focuson.length==0){return false}return true}function xssPrevent(string){string=string.replace(/[\"\'][\s]*javascript:(.*)[\"\']/g,'""');string=string.replace(/script(.*)/g,"");string=string.replace(/eval\((.*)\)/g,"");string=string.replace("/([\x00-\x08,\x0b-\x0c,\x0e-\x19])/","");return string}var options=$.extend({json_url:null,cache:false,height:"10",newel:false,firstselected:false,filter_case:false,filter_hide:false,complete_text:"Start to type...",maxshownitems:30,maxitems:10,onselect:"",onremove:"",delay:350},opt);var holder=null;var feed=null;var complete=null;var counter=0;var cache=new Array();var json_cache=false;var search_string="";var focuson=null;var deleting=0;var browser_msie="\v"=="v";var browser_msie_frame;var element=$(this);var elemid=element.attr("id");init();return this})}});(function(a){a.fn.doubleSelect=function(j,c,d){d=a.extend({preselectFirst:null,preselectSecond:null,emptyOption:false,emptyKey:-1,emptyValue:"Choose ..."},d||{});var g=this;var b="#"+j;var f=a(b);var h=function(k){f.val(k).change()};var e=function(){a(b+" option").remove()};a(this).change(function(){e();$current=this.options[this.selectedIndex].value;if($current!=""){a.each(c,function(m,l){var n;if($current==l.key){a.each(l.values,function(o,p){if(!n&&(l.defaultvalue!=null&&p==l.defaultvalue)){n=o}if(d.preselectSecond!=null&&p==d.preselectSecond){n=o}});a.each(l.values,function(p,r){var q=a("<option>").html(p).attr("value",r);if(p===n){q.html(p).attr("selected","selected")}q.appendTo(f)})}})}else{h(d.emptyValue)}});return this.each(function(){g.children().remove();f.children().remove();if(d.emptyOption){var k=a("<option>").html(d.emptyValue).attr("value",d.emptyKey);k.appendTo(g)}a.each(c,function(m,l){var n=a("<option>").html(m).attr("value",l.key);if(d.preselectFirst!=null&&l.key==d.preselectFirst){n.html(m).attr("selected","selected")}n.appendTo(g)});if(d.preselectFirst==null){$current=this.options[this.selectedIndex].value;if($current!=""){a.each(c,function(m,l){var n;if($current==l.key){a.each(l.values,function(o,p){if(!n&&(l.defaultvalue!=null&&p==l.defaultvalue)){n=o}if(d.preselectSecond!=null&&p==d.preselectSecond){n=o}});a.each(l.values,function(p,r){var q=a("<option>").html(p).attr("value",r);if(p===n){q.html(p).attr("selected","selected")}q.appendTo(f)})}})}else{h(d.emptyValue)}}else{g.change()}})}})(jQuery);(function(a){a.extend(a.fn,{validate:function(b){if(!this.length){b&&b.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing");return}var c=a.data(this[0],"validator");if(c){return c}c=new a.validator(b,this[0]);a.data(this[0],"validator",c);if(c.settings.onsubmit){this.find("input, button").filter(".cancel").click(function(){c.cancelSubmit=true});if(c.settings.submitHandler){this.find("input, button").filter(":submit").click(function(){c.submitButton=this})}this.submit(function(d){if(c.settings.debug){d.preventDefault()}function e(){if(c.settings.submitHandler){if(c.submitButton){var f=a("<input type='hidden'/>").attr("name",c.submitButton.name).val(c.submitButton.value).appendTo(c.currentForm)}c.settings.submitHandler.call(c,c.currentForm);if(c.submitButton){f.remove()}return false}return true}if(c.cancelSubmit){c.cancelSubmit=false;return e()}if(c.form()){if(c.pendingRequest){c.formSubmitted=true;return false}return e()}else{c.focusInvalid();return false}})}return c},valid:function(){if(a(this[0]).is("form")){return this.validate().form()}else{var c=true;var b=a(this[0].form).validate();this.each(function(){c&=b.element(this)});return c}},removeAttrs:function(d){var b={},c=this;a.each(d.split(/\s/),function(e,f){b[f]=c.attr(f);c.removeAttr(f)});return b},rules:function(e,b){var g=this[0];if(e){var d=a.data(g.form,"validator").settings;var j=d.rules;var k=a.validator.staticRules(g);switch(e){case"add":a.extend(k,a.validator.normalizeRule(b));j[g.name]=k;if(b.messages){d.messages[g.name]=a.extend(d.messages[g.name],b.messages)}break;case"remove":if(!b){delete j[g.name];return k}var h={};a.each(b.split(/\s/),function(l,m){h[m]=k[m];delete k[m]});return h}}var f=a.validator.normalizeRules(a.extend({},a.validator.metadataRules(g),a.validator.classRules(g),a.validator.attributeRules(g),a.validator.staticRules(g)),g);if(f.required){var c=f.required;delete f.required;f=a.extend({required:c},f)}return f}});a.extend(a.expr[":"],{blank:function(b){return !a.trim(""+b.value)},filled:function(b){return !!a.trim(""+b.value)},unchecked:function(b){return !b.checked}});a.validator=function(b,c){this.settings=a.extend({},a.validator.defaults,b);this.currentForm=c;this.init()};a.validator.format=function(b,c){if(arguments.length==1){return function(){var d=a.makeArray(arguments);d.unshift(b);return a.validator.format.apply(this,d)}}if(arguments.length>2&&c.constructor!=Array){c=a.makeArray(arguments).slice(1)}if(c.constructor!=Array){c=[c]}a.each(c,function(d,e){b=b.replace(new RegExp("\\{"+d+"\\}","g"),e)});return b};a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:true,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:true,ignore:[],ignoreTitle:false,onfocusin:function(b){this.lastActive=b;if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,b,this.settings.errorClass,this.settings.validClass);this.errorsFor(b).hide()}},onfocusout:function(b){if(!this.checkable(b)&&(b.name in this.submitted||!this.optional(b))){this.element(b)}},onkeyup:function(b){if(b.name in this.submitted||b==this.lastElement){this.element(b)}},onclick:function(b){if(b.name in this.submitted){this.element(b)}else{if(b.parentNode.name in this.submitted){this.element(b.parentNode)}}},highlight:function(d,b,c){a(d).addClass(b).removeClass(c)},unhighlight:function(d,b,c){a(d).removeClass(b).addClass(c)}},setDefaults:function(b){a.extend(a.validator.defaults,b)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){this.labelContainer=a(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm);this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var b=(this.groups={});a.each(this.settings.groups,function(e,f){a.each(f.split(/\s/),function(h,g){b[g]=e})});var d=this.settings.rules;a.each(d,function(e,f){d[e]=a.validator.normalizeRule(f)});function c(f){var e=a.data(this[0].form,"validator");e.settings["on"+f.type]&&e.settings["on"+f.type].call(e,this[0])}a(this.currentForm).delegate("focusin focusout keyup",":text, :password, :file, select, textarea",c).delegate("click",":radio, :checkbox, select, option",c);if(this.settings.invalidHandler){a(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)}},form:function(){this.checkForm();a.extend(this.submitted,this.errorMap);this.invalid=a.extend({},this.errorMap);if(!this.valid()){a(this.currentForm).triggerHandler("invalid-form",[this])}this.showErrors();return this.valid()},checkForm:function(){this.prepareForm();for(var b=0,c=(this.currentElements=this.elements());c[b];b++){this.check(c[b])}return this.valid()},element:function(c){c=this.clean(c);this.lastElement=c;this.prepareElement(c);this.currentElements=a(c);var b=this.check(c);if(b){delete this.invalid[c.name]}else{this.invalid[c.name]=true}if(!this.numberOfInvalids()){this.toHide=this.toHide.add(this.containers)}this.showErrors();return b},showErrors:function(c){if(c){a.extend(this.errorMap,c);this.errorList=[];for(var b in c){this.errorList.push({message:c[b],element:this.findByName(b)[0]})}this.successList=a.grep(this.successList,function(d){return !(d.name in c)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){if(a.fn.resetForm){a(this.currentForm).resetForm()}this.submitted={};this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(d){var c=0;for(var b in d){c++}return c},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return this.size()==0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid){try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus()}catch(b){}}},findLastActive:function(){var b=this.lastActive;return b&&a.grep(this.errorList,function(c){return c.element.name==b.name}).length==1&&b},elements:function(){var c=this,b={};return a([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&c.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in b||!c.objectLength(a(this).rules())){return false}b[this.name]=true;return true})},clean:function(b){return a(b)[0]},errors:function(){return a(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=a([]);this.toHide=a([]);this.currentElements=a([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(b){this.reset();this.toHide=this.errorsFor(b)},check:function(c){c=this.clean(c);if(this.checkable(c)){c=this.findByName(c.name)[0]}var h=a(c).rules();var d=false;for(method in h){var g={method:method,parameters:h[method]};try{var b=a.validator.methods[method].call(this,c.value.replace(/\r/g,""),c,g.parameters);if(b=="dependency-mismatch"){d=true;continue}d=false;if(b=="pending"){this.toHide=this.toHide.not(this.errorsFor(c));return}if(!b){this.formatAndAdd(c,g);return false}}catch(f){this.settings.debug&&window.console&&console.log("exception occured when checking element "+c.id+", check the '"+g.method+"' method",f);throw f}}if(d){return}if(this.objectLength(h)){this.successList.push(c)}return true},customMetaMessage:function(b,d){if(!a.metadata){return}var c=this.settings.meta?a(b).metadata()[this.settings.meta]:a(b).metadata();return c&&c.messages&&c.messages[d]},customMessage:function(c,d){var b=this.settings.messages[c];return b&&(b.constructor==String?b:b[d])},findDefined:function(){for(var b=0;b<arguments.length;b++){if(arguments[b]!==undefined){return arguments[b]}}return undefined},defaultMessage:function(b,c){return this.findDefined(this.customMessage(b.name,c),this.customMetaMessage(b,c),!this.settings.ignoreTitle&&b.title||undefined,a.validator.messages[c],"<strong>Warning: No message defined for "+b.name+"</strong>")},formatAndAdd:function(c,e){var d=this.defaultMessage(c,e.method),b=/\$?\{(\d+)\}/g;if(typeof d=="function"){d=d.call(this,e.parameters,c)}else{if(b.test(d)){d=jQuery.format(d.replace(b,"{$1}"),e.parameters)}}this.errorList.push({message:d,element:c});this.errorMap[c.name]=d;this.submitted[c.name]=d},addWrapper:function(b){if(this.settings.wrapper){b=b.add(b.parent(this.settings.wrapper))}return b},defaultShowErrors:function(){for(var c=0;this.errorList[c];c++){var b=this.errorList[c];this.settings.highlight&&this.settings.highlight.call(this,b.element,this.settings.errorClass,this.settings.validClass);this.showLabel(b.element,b.message)}if(this.errorList.length){this.toShow=this.toShow.add(this.containers)}if(this.settings.success){for(var c=0;this.successList[c];c++){this.showLabel(this.successList[c])}}if(this.settings.unhighlight){for(var c=0,d=this.validElements();d[c];c++){this.settings.unhighlight.call(this,d[c],this.settings.errorClass,this.settings.validClass)}}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(c,d){var b=this.errorsFor(c);if(b.length){b.removeClass().addClass(this.settings.errorClass);b.attr("generated")&&b.html(d)}else{b=a("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(c),generated:true}).addClass(this.settings.errorClass).html(d||"");if(this.settings.wrapper){b=b.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()}if(!this.labelContainer.append(b).length){this.settings.errorPlacement?this.settings.errorPlacement(b,a(c)):b.insertAfter(c)}}if(!d&&this.settings.success){b.text("");typeof this.settings.success=="string"?b.addClass(this.settings.success):this.settings.success(b)}this.toShow=this.toShow.add(b)},errorsFor:function(c){var b=this.idOrName(c);return this.errors().filter(function(){return a(this).attr("for")==b})},idOrName:function(b){return this.groups[b.name]||(this.checkable(b)?b.name:b.id||b.name)},checkable:function(b){return/radio|checkbox/i.test(b.type)},findByName:function(b){var c=this.currentForm;return a(document.getElementsByName(b)).map(function(d,e){return e.form==c&&e.name==b&&e||null})},getLength:function(c,b){switch(b.nodeName.toLowerCase()){case"select":return a("option:selected",b).length;case"input":if(this.checkable(b)){return this.findByName(b.name).filter(":checked").length}}return c.length},depend:function(c,b){return this.dependTypes[typeof c]?this.dependTypes[typeof c](c,b):true},dependTypes:{"boolean":function(c,b){return c},string:function(c,b){return !!a(c,b.form).length},"function":function(c,b){return c(b)}},optional:function(b){return !a.validator.methods.required.call(this,a.trim(b.value),b)&&"dependency-mismatch"},startRequest:function(b){if(!this.pending[b.name]){this.pendingRequest++;this.pending[b.name]=true}},stopRequest:function(b,c){this.pendingRequest--;if(this.pendingRequest<0){this.pendingRequest=0}delete this.pending[b.name];if(c&&this.pendingRequest==0&&this.formSubmitted&&this.form()){a(this.currentForm).submit();this.formSubmitted=false}else{if(!c&&this.pendingRequest==0&&this.formSubmitted){a(this.currentForm).triggerHandler("invalid-form",[this]);this.formSubmitted=false}}},previousValue:function(b){return a.data(b,"previousValue")||a.data(b,"previousValue",{old:null,valid:true,message:this.defaultMessage(b,"remote")})}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},dateDE:{dateDE:true},number:{number:true},numberDE:{numberDE:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(b,c){b.constructor==String?this.classRuleSettings[b]=c:a.extend(this.classRuleSettings,b)},classRules:function(c){var d={};var b=a(c).attr("class");b&&a.each(b.split(" "),function(){if(this in a.validator.classRuleSettings){a.extend(d,a.validator.classRuleSettings[this])}});return d},attributeRules:function(c){var e={};var b=a(c);for(method in a.validator.methods){var d=b.attr(method);if(d){e[method]=d}}if(e.maxlength&&/-1|2147483647|524288/.test(e.maxlength)){delete e.maxlength}return e},metadataRules:function(b){if(!a.metadata){return{}}var c=a.data(b.form,"validator").settings.meta;return c?a(b).metadata()[c]:a(b).metadata()},staticRules:function(c){var d={};var b=a.data(c.form,"validator");if(b.settings.rules){d=a.validator.normalizeRule(b.settings.rules[c.name])||{}}return d},normalizeRules:function(c,b){a.each(c,function(f,e){if(e===false){delete c[f];return}if(e.param||e.depends){var d=true;switch(typeof e.depends){case"string":d=!!a(e.depends,b.form).length;break;case"function":d=e.depends.call(b,b);break}if(d){c[f]=e.param!==undefined?e.param:true}else{delete c[f]}}});a.each(c,function(d,e){c[d]=a.isFunction(e)?e(b):e});a.each(["minlength","maxlength","min","max"],function(){if(c[this]){c[this]=Number(c[this])}});a.each(["rangelength","range"],function(){if(c[this]){c[this]=[Number(c[this][0]),Number(c[this][1])]}});if(a.validator.autoCreateRanges){if(c.min&&c.max){c.range=[c.min,c.max];delete c.min;delete c.max}if(c.minlength&&c.maxlength){c.rangelength=[c.minlength,c.maxlength];delete c.minlength;delete c.maxlength}}if(c.messages){delete c.messages}return c},normalizeRule:function(c){if(typeof c=="string"){var b={};a.each(c.split(/\s/),function(){b[this]=true});c=b}return c},addMethod:function(b,d,c){a.validator.methods[b]=d;a.validator.messages[b]=c!=undefined?c:a.validator.messages[b];if(d.length<3){a.validator.addClassRules(b,a.validator.normalizeRule(b))}},methods:{required:function(c,b,e){if(!this.depend(e,b)){return"dependency-mismatch"}switch(b.nodeName.toLowerCase()){case"select":var d=a(b).val();return d&&d.length>0;case"input":if(this.checkable(b)){return this.getLength(c,b)>0}default:return a.trim(c).length>0}},remote:function(f,c,g){if(this.optional(c)){return"dependency-mismatch"}var d=this.previousValue(c);if(!this.settings.messages[c.name]){this.settings.messages[c.name]={}}d.originalMessage=this.settings.messages[c.name].remote;this.settings.messages[c.name].remote=d.message;g=typeof g=="string"&&{url:g}||g;if(d.old!==f){d.old=f;var b=this;this.startRequest(c);var e={};e[c.name]=f;a.ajax(a.extend(true,{url:g,mode:"abort",port:"validate"+c.name,dataType:"json",data:e,success:function(j){b.settings.messages[c.name].remote=d.originalMessage;var l=j===true;if(l){var h=b.formSubmitted;b.prepareElement(c);b.formSubmitted=h;b.successList.push(c);b.showErrors()}else{var m={};var k=(d.message=j||b.defaultMessage(c,"remote"));m[c.name]=a.isFunction(k)?k(f):k;b.showErrors(m)}d.valid=l;b.stopRequest(c,l)}},g));return"pending"}else{if(this.pending[c.name]){return"pending"}}return d.valid},minlength:function(c,b,d){return this.optional(b)||this.getLength(a.trim(c),b)>=d},maxlength:function(c,b,d){return this.optional(b)||this.getLength(a.trim(c),b)<=d},rangelength:function(d,b,e){var c=this.getLength(a.trim(d),b);return this.optional(b)||(c>=e[0]&&c<=e[1])},min:function(c,b,d){return this.optional(b)||c>=d},max:function(c,b,d){return this.optional(b)||c<=d},range:function(c,b,d){return this.optional(b)||(c>=d[0]&&c<=d[1])},email:function(c,b){return this.optional(b)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(c)},url:function(c,b){return this.optional(b)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(c)},date:function(c,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(c))},dateISO:function(c,b){return this.optional(b)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(c)},number:function(c,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(c)},digits:function(c,b){return this.optional(b)||/^\d+$/.test(c)},creditcard:function(f,c){if(this.optional(c)){return"dependency-mismatch"}if(/[^0-9-]+/.test(f)){return false}var g=0,e=0,b=false;f=f.replace(/\D/g,"");for(var h=f.length-1;h>=0;h--){var d=f.charAt(h);var e=parseInt(d,10);if(b){if((e*=2)>9){e-=9}}g+=e;b=!b}return(g%10)==0},accept:function(c,b,d){d=typeof d=="string"?d.replace(/,/g,"|"):"png|jpe?g|gif";return this.optional(b)||c.match(new RegExp(".("+d+")$","i"))},equalTo:function(c,b,e){var d=a(e).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){a(b).valid()});return c==d.val()}}});a.format=a.validator.format})(jQuery);(function(c){var b=c.ajax;var a={};c.ajax=function(e){e=c.extend(e,c.extend({},c.ajaxSettings,e));var d=e.port;if(e.mode=="abort"){if(a[d]){a[d].abort()}return(a[d]=b.apply(this,arguments))}return b.apply(this,arguments)}})(jQuery);(function(a){a.each({focus:"focusin",blur:"focusout"},function(c,b){a.event.special[b]={setup:function(){if(a.browser.msie){return false}this.addEventListener(c,a.event.special[b].handler,true)},teardown:function(){if(a.browser.msie){return false}this.removeEventListener(c,a.event.special[b].handler,true)},handler:function(d){arguments[0]=a.event.fix(d);arguments[0].type=b;return a.event.handle.apply(this,arguments)}}});a.extend(a.fn,{delegate:function(d,c,b){return this.bind(d,function(e){var f=a(e.target);if(f.is(c)){return b.apply(f,arguments)}})},triggerEvent:function(b,c){return this.triggerHandler(b,[a.event.fix({type:b,target:c})])}})})(jQuery);jQuery.ui||(function(c){var j=c.fn.remove,d=c.browser.mozilla&&(parseFloat(c.browser.version)<1.9);c.ui={version:"1.7.2",plugin:{add:function(l,m,o){var n=c.ui[l].prototype;for(var k in o){n.plugins[k]=n.plugins[k]||[];n.plugins[k].push([m,o[k]])}},call:function(k,m,l){var o=k.plugins[m];if(!o||!k.element[0].parentNode){return}for(var n=0;n<o.length;n++){if(k.options[o[n][0]]){o[n][1].apply(k.element,l)}}}},contains:function(l,k){return document.compareDocumentPosition?l.compareDocumentPosition(k)&16:l!==k&&l.contains(k)},hasScroll:function(n,l){if(c(n).css("overflow")=="hidden"){return false}var k=(l&&l=="left")?"scrollLeft":"scrollTop",m=false;if(n[k]>0){return true}n[k]=1;m=(n[k]>0);n[k]=0;return m},isOverAxis:function(l,k,m){return(l>k)&&(l<(k+m))},isOver:function(p,l,o,n,k,m){return c.ui.isOverAxis(p,o,k)&&c.ui.isOverAxis(l,n,m)},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(d){var f=c.attr,e=c.fn.removeAttr,h="http://www.w3.org/2005/07/aaa",a=/^aria-/,b=/^wairole:/;c.attr=function(l,k,m){var n=m!==undefined;return(k=="role"?(n?f.call(this,l,k,"wairole:"+m):(f.apply(this,arguments)||"").replace(b,"")):(a.test(k)?(n?l.setAttributeNS(h,k.replace(a,"aaa:"),m):f.call(this,l,k.replace(a,"aaa:"))):f.apply(this,arguments)))};c.fn.removeAttr=function(k){return(a.test(k)?this.each(function(){this.removeAttributeNS(h,k.replace(a,""))}):e.call(this,k))}}c.fn.extend({remove:function(){c("*",this).add(this).each(function(){c(this).triggerHandler("remove")});return j.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;if((c.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){k=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(c.curCSS(this,"position",1))&&(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}else{k=this.parents().filter(function(){return(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!k.length?c(document):k}});c.extend(c.expr[":"],{data:function(m,l,k){return !!c.data(m,k[3])},focusable:function(l){var m=l.nodeName.toLowerCase(),k=c.attr(l,"tabindex");return(/input|select|textarea|button|object/.test(m)?!l.disabled:"a"==m||"area"==m?l.href||!isNaN(k):!isNaN(k))&&!c(l)["area"==m?"parents":"closest"](":hidden").length},tabbable:function(l){var k=c.attr(l,"tabindex");return(isNaN(k)||k>=0)&&c(l).is(":focusable")}});function g(n,o,p,m){function l(r){var q=c[n][o][r]||[];return(typeof q=="string"?q.split(/,?\s+/):q)}var k=l("getter");if(m.length==1&&typeof m[0]=="string"){k=k.concat(l("getterSetter"))}return(c.inArray(p,k)!=-1)}c.widget=function(l,k){var m=l.split(".")[0];l=l.split(".")[1];c.fn[l]=function(q){var o=(typeof q=="string"),p=Array.prototype.slice.call(arguments,1);if(o&&q.substring(0,1)=="_"){return this}if(o&&g(m,l,q,p)){var n=c.data(this[0],l);return(n?n[q].apply(n,p):undefined)}return this.each(function(){var r=c.data(this,l);(!r&&!o&&c.data(this,l,new c[m][l](this,q))._init());(r&&o&&c.isFunction(r[q])&&r[q].apply(r,p))})};c[m]=c[m]||{};c[m][l]=function(p,o){var n=this;this.namespace=m;this.widgetName=l;this.widgetEventPrefix=c[m][l].eventPrefix||l;this.widgetBaseClass=m+"-"+l;this.options=c.extend({},c.widget.defaults,c[m][l].defaults,c.metadata&&c.metadata.get(p)[l],o);this.element=c(p).bind("setData."+l,function(r,q,s){if(r.target==p){return n._setData(q,s)}}).bind("getData."+l,function(r,q){if(r.target==p){return n._getData(q)}}).bind("remove",function(){return n.destroy()})};c[m][l].prototype=c.extend({},c.widget.prototype,k);c[m][l].getterSetter="option"};c.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(m,n){var l=m,k=this;if(typeof m=="string"){if(n===undefined){return this._getData(m)}l={};l[m]=n}c.each(l,function(o,p){k._setData(o,p)})},_getData:function(k){return this.options[k]},_setData:function(k,l){this.options[k]=l;if(k=="disabled"){this.element[l?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",l)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(m,n,o){var q=this.options[m],k=(m==this.widgetEventPrefix?m:this.widgetEventPrefix+m);n=c.Event(n);n.type=k;if(n.originalEvent){for(var l=c.event.props.length,p;l;){p=c.event.props[--l];n[p]=n.originalEvent[p]}}this.element.trigger(n,o);return !(c.isFunction(q)&&q.call(this.element[0],n,o)===false||n.isDefaultPrevented())}};c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var k=this;this.element.bind("mousedown."+this.widgetName,function(l){return k._mouseDown(l)}).bind("click."+this.widgetName,function(l){if(k._preventClickEvent){k._preventClickEvent=false;l.stopImmediatePropagation();return false}});if(c.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(c.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(m){m.originalEvent=m.originalEvent||{};if(m.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(m));this._mouseDownEvent=m;var l=this,n=(m.which==1),k=(typeof this.options.cancel=="string"?c(m.target).parents().add(m.target).filter(this.options.cancel).length:false);if(!n||k||!this._mouseCapture(m)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){l.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(m)&&this._mouseDelayMet(m)){this._mouseStarted=(this._mouseStart(m)!==false);if(!this._mouseStarted){m.preventDefault();return true}}this._mouseMoveDelegate=function(o){return l._mouseMove(o)};this._mouseUpDelegate=function(o){return l._mouseUp(o)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(c.browser.safari||m.preventDefault());m.originalEvent.mouseHandled=true;return true},_mouseMove:function(k){if(c.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._mouseStarted?this._mouseDrag(k):this._mouseUp(k))}return !this._mouseStarted},_mouseUp:function(k){c(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(k){return this.mouseDelayMet},_mouseStart:function(k){},_mouseDrag:function(k){},_mouseStop:function(k){},_mouseCapture:function(k){return true}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function(a){a.widget("ui.draggable",a.extend({},a.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")){return}this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy()},_mouseCapture:function(b){var c=this.options;if(this.helper||c.disabled||a(b.target).is(".ui-resizable-handle")){return false}this.handle=this._getHandle(b);if(!this.handle){return false}return true},_mouseStart:function(b){var c=this.options;this.helper=this._createHelper(b);this._cacheHelperProportions();if(a.ui.ddmanager){a.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};a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;if(c.cursorAt){this._adjustOffsetFromHelper(c.cursorAt)}if(c.containment){this._setContainment()}this._trigger("start",b);this._cacheHelperProportions();if(a.ui.ddmanager&&!c.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,b)}this.helper.addClass("ui-draggable-dragging");this._mouseDrag(b,true);return true},_mouseDrag:function(b,d){this.position=this._generatePosition(b);this.positionAbs=this._convertPositionTo("absolute");if(!d){var c=this._uiHash();this._trigger("drag",b,c);this.position=c.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"}if(a.ui.ddmanager){a.ui.ddmanager.drag(this,b)}return false},_mouseStop:function(c){var d=false;if(a.ui.ddmanager&&!this.options.dropBehaviour){d=a.ui.ddmanager.drop(this,c)}if(this.dropped){d=this.dropped;this.dropped=false}if((this.options.revert=="invalid"&&!d)||(this.options.revert=="valid"&&d)||this.options.revert===true||(a.isFunction(this.options.revert)&&this.options.revert.call(this.element,d))){var b=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){b._trigger("stop",c);b._clear()})}else{this._trigger("stop",c);this._clear()}return false},_getHandle:function(b){var c=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==b.target){c=true}});return c},_createHelper:function(c){var d=this.options;var b=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[c])):(d.helper=="clone"?this.element.clone():this.element);if(!b.parents("body").length){b.appendTo((d.appendTo=="parent"?this.element[0].parentNode:d.appendTo))}if(b[0]!=this.element[0]&&!(/(fixed|absolute)/).test(b.css("position"))){b.css("position","absolute")}return b},_adjustOffsetFromHelper:function(b){if(b.left!=undefined){this.offset.click.left=b.left+this.margins.left}if(b.right!=undefined){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if(b.top!=undefined){this.offset.click.top=b.top+this.margins.top}if(b.bottom!=undefined){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)){b={top:0,left:0}}return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.element.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.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 e=this.options;if(e.containment=="parent"){e.containment=this.helper[0].parentNode}if(e.containment=="document"||e.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(e.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(e.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(e.containment)&&e.containment.constructor!=Array){var c=a(e.containment)[0];if(!c){return}var d=a(e.containment).offset();var b=(a(c).css("overflow")!="hidden");this.containment=[d.left+(parseInt(a(c).css("borderLeftWidth"),10)||0)+(parseInt(a(c).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(a(c).css("borderTopWidth"),10)||0)+(parseInt(a(c).css("paddingTop"),10)||0)-this.margins.top,d.left+(b?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css("borderLeftWidth"),10)||0)-(parseInt(a(c).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(b?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css("borderTopWidth"),10)||0)-(parseInt(a(c).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}else{if(e.containment.constructor==Array){this.containment=e.containment}}},_convertPositionTo:function(f,h){if(!h){h=this.position}var c=f=="absolute"?1:-1;var e=this.options,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=(/(html|body)/i).test(b[0].tagName);return{top:(h.top+this.offset.relative.top*c+this.offset.parent.top*c-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(g?0:b.scrollTop()))*c)),left:(h.left+this.offset.relative.left*c+this.offset.parent.left*c-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:b.scrollLeft())*c))}},_generatePosition:function(e){var h=this.options,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,j=(/(html|body)/i).test(b[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var d=e.pageX;var c=e.pageY;if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.left<this.containment[0]){d=this.containment[0]+this.offset.click.left}if(e.pageY-this.offset.click.top<this.containment[1]){c=this.containment[1]+this.offset.click.top}if(e.pageX-this.offset.click.left>this.containment[2]){d=this.containment[2]+this.offset.click.left}if(e.pageY-this.offset.click.top>this.containment[3]){c=this.containment[3]+this.offset.click.top}}if(h.grid){var g=this.originalPageY+Math.round((c-this.originalPageY)/h.grid[1])*h.grid[1];c=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;var f=this.originalPageX+Math.round((d-this.originalPageX)/h.grid[0])*h.grid[0];d=this.containment?(!(f-this.offset.click.left<this.containment[0]||f-this.offset.click.left>this.containment[2])?f:(!(f-this.offset.click.left<this.containment[0])?f-h.grid[0]:f+h.grid[0])):f}}return{top:(c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(j?0:b.scrollTop())))),left:(d-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():j?0:b.scrollLeft())))}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");if(this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false},_trigger:function(b,c,d){d=d||this._uiHash();a.ui.plugin.call(this,b,[c,d]);if(b=="drag"){this.positionAbs=this._convertPositionTo("absolute")}return a.widget.prototype._trigger.call(this,b,c,d)},plugins:{},_uiHash:function(b){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs}}}));a.extend(a.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}});a.ui.plugin.add("draggable","connectToSortable",{start:function(c,e){var d=a(this).data("draggable"),f=d.options,b=a.extend({},e,{item:d.element});d.sortables=[];a(f.connectToSortable).each(function(){var g=a.data(this,"sortable");if(g&&!g.options.disabled){d.sortables.push({instance:g,shouldRevert:g.options.revert});g._refreshItems();g._trigger("activate",c,b)}})},stop:function(c,e){var d=a(this).data("draggable"),b=a.extend({},e,{item:d.element});a.each(d.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;d.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance._mouseStop(c);this.instance.options.helper=this.instance.options._helper;if(d.options.helper=="original"){this.instance.currentItem.css({top:"auto",left:"auto"})}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",c,b)}})},drag:function(c,f){var e=a(this).data("draggable"),b=this;var d=function(j){var p=this.offset.click.top,n=this.offset.click.left;var g=this.positionAbs.top,l=this.positionAbs.left;var k=j.height,m=j.width;var q=j.top,h=j.left;return a.ui.isOver(g+p,l+n,q,h,k,m)};a.each(e.sortables,function(g){this.instance.positionAbs=e.positionAbs;this.instance.helperProportions=e.helperProportions;this.instance.offset.click=e.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=a(b).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return f.helper[0]};c.target=this.instance.currentItem[0];this.instance._mouseCapture(c,true);this.instance._mouseStart(c,true,true);this.instance.offset.click.top=e.offset.click.top;this.instance.offset.click.left=e.offset.click.left;this.instance.offset.parent.left-=e.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=e.offset.parent.top-this.instance.offset.parent.top;e._trigger("toSortable",c);e.dropped=this.instance.element;e.currentItem=e.element;this.instance.fromOutside=e}if(this.instance.currentItem){this.instance._mouseDrag(c)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",c,this.instance._uiHash(this.instance));this.instance._mouseStop(c,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove()}e._trigger("fromSortable",c);e.dropped=false}}})}});a.ui.plugin.add("draggable","cursor",{start:function(c,d){var b=a("body"),e=a(this).data("draggable").options;if(b.css("cursor")){e._cursor=b.css("cursor")}b.css("cursor",e.cursor)},stop:function(b,c){var d=a(this).data("draggable").options;if(d._cursor){a("body").css("cursor",d._cursor)}}});a.ui.plugin.add("draggable","iframeFix",{start:function(b,c){var d=a(this).data("draggable").options;a(d.iframeFix===true?"iframe":d.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(a(this).offset()).appendTo("body")})},stop:function(b,c){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});a.ui.plugin.add("draggable","opacity",{start:function(c,d){var b=a(d.helper),e=a(this).data("draggable").options;if(b.css("opacity")){e._opacity=b.css("opacity")}b.css("opacity",e.opacity)},stop:function(b,c){var d=a(this).data("draggable").options;if(d._opacity){a(c.helper).css("opacity",d._opacity)}}});a.ui.plugin.add("draggable","scroll",{start:function(c,d){var b=a(this).data("draggable");if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML"){b.overflowOffset=b.scrollParent.offset()}},drag:function(d,e){var c=a(this).data("draggable"),f=c.options,b=false;if(c.scrollParent[0]!=document&&c.scrollParent[0].tagName!="HTML"){if(!f.axis||f.axis!="x"){if((c.overflowOffset.top+c.scrollParent[0].offsetHeight)-d.pageY<f.scrollSensitivity){c.scrollParent[0].scrollTop=b=c.scrollParent[0].scrollTop+f.scrollSpeed}else{if(d.pageY-c.overflowOffset.top<f.scrollSensitivity){c.scrollParent[0].scrollTop=b=c.scrollParent[0].scrollTop-f.scrollSpeed}}}if(!f.axis||f.axis!="y"){if((c.overflowOffset.left+c.scrollParent[0].offsetWidth)-d.pageX<f.scrollSensitivity){c.scrollParent[0].scrollLeft=b=c.scrollParent[0].scrollLeft+f.scrollSpeed}else{if(d.pageX-c.overflowOffset.left<f.scrollSensitivity){c.scrollParent[0].scrollLeft=b=c.scrollParent[0].scrollLeft-f.scrollSpeed}}}}else{if(!f.axis||f.axis!="x"){if(d.pageY-a(document).scrollTop()<f.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()-f.scrollSpeed)}else{if(a(window).height()-(d.pageY-a(document).scrollTop())<f.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()+f.scrollSpeed)}}}if(!f.axis||f.axis!="y"){if(d.pageX-a(document).scrollLeft()<f.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()-f.scrollSpeed)}else{if(a(window).width()-(d.pageX-a(document).scrollLeft())<f.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()+f.scrollSpeed)}}}}if(b!==false&&a.ui.ddmanager&&!f.dropBehaviour){a.ui.ddmanager.prepareOffsets(c,d)}}});a.ui.plugin.add("draggable","snap",{start:function(c,d){var b=a(this).data("draggable"),e=b.options;b.snapElements=[];a(e.snap.constructor!=String?(e.snap.items||":data(draggable)"):e.snap).each(function(){var g=a(this);var f=g.offset();if(this!=b.element[0]){b.snapElements.push({item:this,width:g.outerWidth(),height:g.outerHeight(),top:f.top,left:f.left})}})},drag:function(u,p){var g=a(this).data("draggable"),q=g.options;var y=q.snapTolerance;var x=p.offset.left,w=x+g.helperProportions.width,f=p.offset.top,e=f+g.helperProportions.height;for(var v=g.snapElements.length-1;v>=0;v--){var s=g.snapElements[v].left,n=s+g.snapElements[v].width,m=g.snapElements[v].top,A=m+g.snapElements[v].height;if(!((s-y<x&&x<n+y&&m-y<f&&f<A+y)||(s-y<x&&x<n+y&&m-y<e&&e<A+y)||(s-y<w&&w<n+y&&m-y<f&&f<A+y)||(s-y<w&&w<n+y&&m-y<e&&e<A+y))){if(g.snapElements[v].snapping){(g.options.snap.release&&g.options.snap.release.call(g.element,u,a.extend(g._uiHash(),{snapItem:g.snapElements[v].item})))}g.snapElements[v].snapping=false;continue}if(q.snapMode!="inner"){var c=Math.abs(m-e)<=y;var z=Math.abs(A-f)<=y;var j=Math.abs(s-w)<=y;var k=Math.abs(n-x)<=y;if(c){p.position.top=g._convertPositionTo("relative",{top:m-g.helperProportions.height,left:0}).top-g.margins.top}if(z){p.position.top=g._convertPositionTo("relative",{top:A,left:0}).top-g.margins.top}if(j){p.position.left=g._convertPositionTo("relative",{top:0,left:s-g.helperProportions.width}).left-g.margins.left}if(k){p.position.left=g._convertPositionTo("relative",{top:0,left:n}).left-g.margins.left}}var h=(c||z||j||k);if(q.snapMode!="outer"){var c=Math.abs(m-f)<=y;var z=Math.abs(A-e)<=y;var j=Math.abs(s-x)<=y;var k=Math.abs(n-w)<=y;if(c){p.position.top=g._convertPositionTo("relative",{top:m,left:0}).top-g.margins.top}if(z){p.position.top=g._convertPositionTo("relative",{top:A-g.helperProportions.height,left:0}).top-g.margins.top}if(j){p.position.left=g._convertPositionTo("relative",{top:0,left:s}).left-g.margins.left}if(k){p.position.left=g._convertPositionTo("relative",{top:0,left:n-g.helperProportions.width}).left-g.margins.left}}if(!g.snapElements[v].snapping&&(c||z||j||k||h)){(g.options.snap.snap&&g.options.snap.snap.call(g.element,u,a.extend(g._uiHash(),{snapItem:g.snapElements[v].item})))}g.snapElements[v].snapping=(c||z||j||k||h)}}});a.ui.plugin.add("draggable","stack",{start:function(b,c){var e=a(this).data("draggable").options;var d=a.makeArray(a(e.stack.group)).sort(function(g,f){return(parseInt(a(g).css("zIndex"),10)||e.stack.min)-(parseInt(a(f).css("zIndex"),10)||e.stack.min)});a(d).each(function(f){this.style.zIndex=e.stack.min+f});this[0].style.zIndex=e.stack.min+d.length}});a.ui.plugin.add("draggable","zIndex",{start:function(c,d){var b=a(d.helper),e=a(this).data("draggable").options;if(b.css("zIndex")){e._zIndex=b.css("zIndex")}b.css("zIndex",e.zIndex)},stop:function(b,c){var d=a(this).data("draggable").options;if(d._zIndex){a(c.helper).css("zIndex",d._zIndex)}}})})(jQuery);(function(c){var b={dragStart:"start.draggable",drag:"drag.draggable",dragStop:"stop.draggable",maxHeight:"maxHeight.resizable",minHeight:"minHeight.resizable",maxWidth:"maxWidth.resizable",minWidth:"minWidth.resizable",resizeStart:"start.resizable",resize:"drag.resizable",resizeStop:"stop.resizable"},a="ui-dialog ui-widget ui-widget-content ui-corner-all ";c.widget("ui.dialog",{_init:function(){this.originalTitle=this.element.attr("title");var m=this,n=this.options,k=n.title||this.originalTitle||"&nbsp;",e=c.ui.dialog.getTitleId(this.element),l=(this.uiDialog=c("<div/>")).appendTo(document.body).hide().addClass(a+n.dialogClass).css({position:"absolute",overflow:"hidden",zIndex:n.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(o){(n.closeOnEscape&&o.keyCode&&o.keyCode==c.ui.keyCode.ESCAPE&&m.close(o))}).attr({role:"dialog","aria-labelledby":e}).mousedown(function(o){m.moveToTop(false,o)}),g=this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(l),f=(this.uiDialogTitlebar=c("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(l),j=c('<a href="#"/>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){j.addClass("ui-state-hover")},function(){j.removeClass("ui-state-hover")}).focus(function(){j.addClass("ui-state-focus")}).blur(function(){j.removeClass("ui-state-focus")}).mousedown(function(o){o.stopPropagation()}).click(function(o){m.close(o);return false}).appendTo(f),h=(this.uiDialogTitlebarCloseText=c("<span/>")).addClass("ui-icon ui-icon-closethick").text(n.closeText).appendTo(j),d=c("<span/>").addClass("ui-dialog-title").attr("id",e).html(k).prependTo(f);f.find("*").add(f).disableSelection();(n.draggable&&c.fn.draggable&&this._makeDraggable());(n.resizable&&c.fn.resizable&&this._makeResizable());this._createButtons(n.buttons);this._isOpen=false;(n.bgiframe&&c.fn.bgiframe&&l.bgiframe());(n.autoOpen&&this.open())},destroy:function(){(this.overlay&&this.overlay.destroy());this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");this.uiDialog.remove();(this.originalTitle&&this.element.attr("title",this.originalTitle))},close:function(f){var d=this;if(false===d._trigger("beforeclose",f)){return}(d.overlay&&d.overlay.destroy());d.uiDialog.unbind("keypress.ui-dialog");(d.options.hide?d.uiDialog.hide(d.options.hide,function(){d._trigger("close",f)}):d.uiDialog.hide()&&d._trigger("close",f));c.ui.dialog.overlay.resize();d._isOpen=false;if(d.options.modal){var e=0;c(".ui-dialog").each(function(){if(this!=d.uiDialog[0]){e=Math.max(e,c(this).css("z-index"))}});c.ui.dialog.maxZ=e}},isOpen:function(){return this._isOpen},moveToTop:function(f,e){if((this.options.modal&&!f)||(!this.options.stack&&!this.options.modal)){return this._trigger("focus",e)}if(this.options.zIndex>c.ui.dialog.maxZ){c.ui.dialog.maxZ=this.options.zIndex}(this.overlay&&this.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=++c.ui.dialog.maxZ));var d={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};this.uiDialog.css("z-index",++c.ui.dialog.maxZ);this.element.attr(d);this._trigger("focus",e)},open:function(){if(this._isOpen){return}var e=this.options,d=this.uiDialog;this.overlay=e.modal?new c.ui.dialog.overlay(this):null;(d.next().length&&d.appendTo("body"));this._size();this._position(e.position);d.show(e.show);this.moveToTop(true);(e.modal&&d.bind("keypress.ui-dialog",function(h){if(h.keyCode!=c.ui.keyCode.TAB){return}var g=c(":tabbable",this),j=g.filter(":first")[0],f=g.filter(":last")[0];if(h.target==f&&!h.shiftKey){setTimeout(function(){j.focus()},1)}else{if(h.target==j&&h.shiftKey){setTimeout(function(){f.focus()},1)}}}));c([]).add(d.find(".ui-dialog-content :tabbable:first")).add(d.find(".ui-dialog-buttonpane :tabbable:first")).add(d).filter(":first").focus();this._trigger("open");this._isOpen=true},_createButtons:function(g){var f=this,d=false,e=c("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");this.uiDialog.find(".ui-dialog-buttonpane").remove();(typeof g=="object"&&g!==null&&c.each(g,function(){return !(d=true)}));if(d){c.each(g,function(h,j){c('<button type="button"></button>').addClass("ui-state-default ui-corner-all").text(h).click(function(){j.apply(f.element[0],arguments)}).hover(function(){c(this).addClass("ui-state-hover")},function(){c(this).removeClass("ui-state-hover")}).focus(function(){c(this).addClass("ui-state-focus")}).blur(function(){c(this).removeClass("ui-state-focus")}).appendTo(e)});e.appendTo(this.uiDialog)}},_makeDraggable:function(){var d=this,f=this.options,e;this.uiDialog.draggable({cancel:".ui-dialog-content",handle:".ui-dialog-titlebar",containment:"document",start:function(){e=f.height;c(this).height(c(this).height()).addClass("ui-dialog-dragging");(f.dragStart&&f.dragStart.apply(d.element[0],arguments))},drag:function(){(f.drag&&f.drag.apply(d.element[0],arguments))},stop:function(){c(this).removeClass("ui-dialog-dragging").height(e);(f.dragStop&&f.dragStop.apply(d.element[0],arguments));c.ui.dialog.overlay.resize()}})},_makeResizable:function(g){g=(g===undefined?this.options.resizable:g);var d=this,f=this.options,e=typeof g=="string"?g:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",alsoResize:this.element,maxWidth:f.maxWidth,maxHeight:f.maxHeight,minWidth:f.minWidth,minHeight:f.minHeight,start:function(){c(this).addClass("ui-dialog-resizing");(f.resizeStart&&f.resizeStart.apply(d.element[0],arguments))},resize:function(){(f.resize&&f.resize.apply(d.element[0],arguments))},handles:e,stop:function(){c(this).removeClass("ui-dialog-resizing");f.height=c(this).height();f.width=c(this).width();(f.resizeStop&&f.resizeStop.apply(d.element[0],arguments));c.ui.dialog.overlay.resize()}}).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_position:function(j){var e=c(window),f=c(document),g=f.scrollTop(),d=f.scrollLeft(),h=g;if(c.inArray(j,["center","top","right","bottom","left"])>=0){j=[j=="right"||j=="left"?j:"center",j=="top"||j=="bottom"?j:"middle"]}if(j.constructor!=Array){j=["center","middle"]}if(j[0].constructor==Number){d+=j[0]}else{switch(j[0]){case"left":d+=0;break;case"right":d+=e.width()-this.uiDialog.outerWidth();break;default:case"center":d+=(e.width()-this.uiDialog.outerWidth())/2}}if(j[1].constructor==Number){g+=j[1]}else{switch(j[1]){case"top":g+=0;break;case"bottom":g+=e.height()-this.uiDialog.outerHeight();break;default:case"middle":g+=(e.height()-this.uiDialog.outerHeight())/2}}g=Math.max(g,h);this.uiDialog.css({top:g,left:d})},_setData:function(e,f){(b[e]&&this.uiDialog.data(b[e],f));switch(e){case"buttons":this._createButtons(f);break;case"closeText":this.uiDialogTitlebarCloseText.text(f);break;case"dialogClass":this.uiDialog.removeClass(this.options.dialogClass).addClass(a+f);break;case"draggable":(f?this._makeDraggable():this.uiDialog.draggable("destroy"));break;case"height":this.uiDialog.height(f);break;case"position":this._position(f);break;case"resizable":var d=this.uiDialog,g=this.uiDialog.is(":data(resizable)");(g&&!f&&d.resizable("destroy"));(g&&typeof f=="string"&&d.resizable("option","handles",f));(g||this._makeResizable(f));break;case"title":c(".ui-dialog-title",this.uiDialogTitlebar).html(f||"&nbsp;");break;case"width":this.uiDialog.width(f);break}c.widget.prototype._setData.apply(this,arguments)},_size:function(){var e=this.options;this.element.css({height:0,minHeight:0,width:"auto"});var d=this.uiDialog.css({height:"auto",width:e.width}).height();this.element.css({minHeight:Math.max(e.minHeight-d,0),height:e.height=="auto"?"auto":Math.max(e.height-d,0)})}});c.extend(c.ui.dialog,{version:"1.7.2",defaults:{autoOpen:true,bgiframe:false,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:"center",resizable:true,show:null,stack:true,title:"",width:300,zIndex:1000},getter:"isOpen",uuid:0,maxZ:0,getTitleId:function(d){return"ui-dialog-title-"+(d.attr("id")||++this.uuid)},overlay:function(d){this.$el=c.ui.dialog.overlay.create(d)}});c.extend(c.ui.dialog.overlay,{instances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(d){return d+".dialog-overlay"}).join(" "),create:function(e){if(this.instances.length===0){setTimeout(function(){if(c.ui.dialog.overlay.instances.length){c(document).bind(c.ui.dialog.overlay.events,function(f){var g=c(f.target).parents(".ui-dialog").css("zIndex")||0;return(g>c.ui.dialog.overlay.maxZ)})}},1);c(document).bind("keydown.dialog-overlay",function(f){(e.options.closeOnEscape&&f.keyCode&&f.keyCode==c.ui.keyCode.ESCAPE&&e.close(f))});c(window).bind("resize.dialog-overlay",c.ui.dialog.overlay.resize)}var d=c("<div></div>").appendTo(document.body).addClass("ui-widget-overlay").css({width:this.width(),height:this.height()});(e.options.bgiframe&&c.fn.bgiframe&&d.bgiframe());this.instances.push(d);return d},destroy:function(d){this.instances.splice(c.inArray(this.instances,d),1);if(this.instances.length===0){c([document,window]).unbind(".dialog-overlay")}d.remove();var e=0;c.each(this.instances,function(){e=Math.max(e,this.css("z-index"))});this.maxZ=e},height:function(){if(c.browser.msie&&c.browser.version<7){var e=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var d=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(e<d){return c(window).height()+"px"}else{return e+"px"}}else{return c(document).height()+"px"}},width:function(){if(c.browser.msie&&c.browser.version<7){var d=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);var e=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(d<e){return c(window).width()+"px"}else{return d+"px"}}else{return c(document).width()+"px"}},resize:function(){var d=c([]);c.each(c.ui.dialog.overlay.instances,function(){d=d.add(this)});d.css({width:0,height:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.overlay.height()})}});c.extend(c.ui.dialog.overlay.prototype,{destroy:function(){c.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);(function(a){a.fn.bgIframe=a.fn.bgiframe=function(c){if(a.browser.msie&&/6.0/.test(navigator.userAgent)){c=a.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},c||{});var d=function(e){return e&&e.constructor==Number?e+"px":e},b='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+c.src+'"style="display:block;position:absolute;z-index:-1;'+(c.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(c.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":d(c.top))+";left:"+(c.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":d(c.left))+";width:"+(c.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":d(c.width))+";height:"+(c.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":d(c.height))+';"/>';return this.each(function(){if(a("> iframe.bgiframe",this).length==0){this.insertBefore(document.createElement(b),this.firstChild)}})}return this}})(jQuery);(function(a){a.jGrowl=function(b,c){if(a("#jGrowl").size()==0){a('<div id="jGrowl"></div>').addClass(a.jGrowl.defaults.position).appendTo("body")}a("#jGrowl").jGrowl(b,c)};a.fn.jGrowl=function(b,d){if(a.isFunction(this.each)){var c=arguments;return this.each(function(){var e=this;if(a(this).data("jGrowl.instance")==undefined){a(this).data("jGrowl.instance",a.extend(new a.fn.jGrowl(),{notifications:[],element:null,interval:null}));a(this).data("jGrowl.instance").startup(this)}if(a.isFunction(a(this).data("jGrowl.instance")[b])){a(this).data("jGrowl.instance")[b].apply(a(this).data("jGrowl.instance"),a.makeArray(c).slice(1))}else{a(this).data("jGrowl.instance").create(b,d)}})}};a.extend(a.fn.jGrowl.prototype,{defaults:{pool:0,header:"",group:"",sticky:false,position:"middle",glue:"after",theme:"default",corners:"10px",check:250,life:3000,speed:"normal",easing:"swing",closer:true,closeTemplate:"&times;",closerTemplate:"<div>[ close all ]</div>",log:function(c,b,d){},beforeOpen:function(c,b,d){},open:function(c,b,d){},beforeClose:function(c,b,d){},close:function(c,b,d){},animateOpen:{opacity:"show"},animateClose:{opacity:"hide"}},notifications:[],element:null,interval:null,create:function(b,c){var c=a.extend({},this.defaults,c);this.notifications[this.notifications.length]={message:b,options:c};c.log.apply(this.element,[this.element,b,c])},render:function(d){var b=this;var c=d.message;var e=d.options;var d=a('<div class="jGrowl-notification'+((e.group!=undefined&&e.group!="")?" "+e.group:"")+'"><div class="close">'+e.closeTemplate+'</div><div class="header">'+e.header+'</div><div class="message">'+c+"</div></div>").data("jGrowl",e).addClass(e.theme).children("div.close").bind("click.jGrowl",function(){a(this).parent().trigger("jGrowl.close")}).parent();(e.glue=="after")?a("div.jGrowl-notification:last",this.element).after(d):a("div.jGrowl-notification:first",this.element).before(d);a(d).bind("mouseover.jGrowl",function(){a(this).data("jGrowl").pause=true}).bind("mouseout.jGrowl",function(){a(this).data("jGrowl").pause=false}).bind("jGrowl.beforeOpen",function(){e.beforeOpen.apply(b.element,[b.element,c,e])}).bind("jGrowl.open",function(){e.open.apply(b.element,[b.element,c,e])}).bind("jGrowl.beforeClose",function(){e.beforeClose.apply(b.element,[b.element,c,e])}).bind("jGrowl.close",function(){a(this).data("jGrowl").pause=true;a(this).trigger("jGrowl.beforeClose").animate(e.animateClose,e.speed,e.easing,function(){a(this).remove();e.close.apply(b.element,[b.element,c,e])})}).trigger("jGrowl.beforeOpen").animate(e.animateOpen,e.speed,e.easing,function(){a(this).data("jGrowl").created=new Date()}).trigger("jGrowl.open");if(a.fn.corner!=undefined){a(d).corner(e.corners)}if(a("div.jGrowl-notification:parent",this.element).size()>1&&a("div.jGrowl-closer",this.element).size()==0&&this.defaults.closer!=false){a(this.defaults.closerTemplate).addClass("jGrowl-closer").addClass(this.defaults.theme).appendTo(this.element).animate(this.defaults.animateOpen,this.defaults.speed,this.defaults.easing).bind("click.jGrowl",function(){a(this).siblings().children("div.close").trigger("click.jGrowl");if(a.isFunction(b.defaults.closer)){b.defaults.closer.apply(a(this).parent()[0],[a(this).parent()[0]])}})}},update:function(){a(this.element).find("div.jGrowl-notification:parent").each(function(){if(a(this).data("jGrowl")!=undefined&&a(this).data("jGrowl").created!=undefined&&(a(this).data("jGrowl").created.getTime()+a(this).data("jGrowl").life)<(new Date()).getTime()&&a(this).data("jGrowl").sticky!=true&&(a(this).data("jGrowl").pause==undefined||a(this).data("jGrowl").pause!=true)){a(this).trigger("jGrowl.close")}});if(this.notifications.length>0&&(this.defaults.pool==0||a(this.element).find("div.jGrowl-notification:parent").size()<this.defaults.pool)){this.render(this.notifications.shift())}if(a(this.element).find("div.jGrowl-notification:parent").size()<2){a(this.element).find("div.jGrowl-closer").animate(this.defaults.animateClose,this.defaults.speed,this.defaults.easing,function(){a(this).remove()})}},startup:function(b){this.element=a(b).addClass("jGrowl").append('<div class="jGrowl-notification"></div>');this.interval=setInterval(function(){a(b).data("jGrowl.instance").update()},this.defaults.check);if(a.browser.msie&&parseInt(a.browser.version)<7&&!window.XMLHttpRequest){a(this.element).addClass("ie6")}},shutdown:function(){a(this.element).removeClass("jGrowl").find("div.jGrowl-notification").remove();clearInterval(this.interval)}});a.jGrowl.defaults=a.fn.jGrowl.prototype.defaults})(jQuery);var SWFUpload;var swfobject;if(SWFUpload==undefined){SWFUpload=function(a){this.initSWFUpload(a)}}SWFUpload.prototype.initSWFUpload=function(b){try{this.customSettings={};this.settings={};this.eventQueue=[];this.movieName="SWFUpload_"+SWFUpload.movieCount++;this.movieElement=null;SWFUpload.instances[this.movieName]=this;this.initSettings(b);this.loadSupport();if(this.swfuploadPreload()){this.loadFlash()}this.displayDebugInfo()}catch(a){delete SWFUpload.instances[this.movieName];throw a}};SWFUpload.instances={};SWFUpload.movieCount=0;SWFUpload.version="2.5.0 2010-01-15 Beta 2";SWFUpload.QUEUE_ERROR={QUEUE_LIMIT_EXCEEDED:-100,FILE_EXCEEDS_SIZE_LIMIT:-110,ZERO_BYTE_FILE:-120,INVALID_FILETYPE:-130};SWFUpload.UPLOAD_ERROR={HTTP_ERROR:-200,MISSING_UPLOAD_URL:-210,IO_ERROR:-220,SECURITY_ERROR:-230,UPLOAD_LIMIT_EXCEEDED:-240,UPLOAD_FAILED:-250,SPECIFIED_FILE_ID_NOT_FOUND:-260,FILE_VALIDATION_FAILED:-270,FILE_CANCELLED:-280,UPLOAD_STOPPED:-290,RESIZE:-300};SWFUpload.FILE_STATUS={QUEUED:-1,IN_PROGRESS:-2,ERROR:-3,COMPLETE:-4,CANCELLED:-5};SWFUpload.UPLOAD_TYPE={NORMAL:-1,RESIZED:-2};SWFUpload.BUTTON_ACTION={SELECT_FILE:-100,SELECT_FILES:-110,START_UPLOAD:-120,JAVASCRIPT:-130,NONE:-130};SWFUpload.CURSOR={ARROW:-1,HAND:-2};SWFUpload.WINDOW_MODE={WINDOW:"window",TRANSPARENT:"transparent",OPAQUE:"opaque"};SWFUpload.RESIZE_ENCODING={JPEG:-1,PNG:-2};SWFUpload.completeURL=function(a){try{var d="",c=-1;if(typeof(a)!=="string"||a.match(/^https?:\/\//i)||a.match(/^\//)||a===""){return a}c=window.location.pathname.lastIndexOf("/");if(c<=0){d="/"}else{d=window.location.pathname.substr(0,c)+"/"}return d+a}catch(b){return a}};SWFUpload.onload=function(){};SWFUpload.prototype.initSettings=function(a){this.ensureDefault=function(c,b){var d=a[c];if(d!=undefined){this.settings[c]=d}else{this.settings[c]=b}};this.ensureDefault("upload_url","");this.ensureDefault("preserve_relative_urls",false);this.ensureDefault("file_post_name","Filedata");this.ensureDefault("post_params",{});this.ensureDefault("use_query_string",false);this.ensureDefault("requeue_on_error",false);this.ensureDefault("http_success",[]);this.ensureDefault("assume_success_timeout",0);this.ensureDefault("file_types","*.*");this.ensureDefault("file_types_description","All Files");this.ensureDefault("file_size_limit",0);this.ensureDefault("file_upload_limit",0);this.ensureDefault("file_queue_limit",0);this.ensureDefault("flash_url","swfupload.swf");this.ensureDefault("flash9_url","swfupload_fp9.swf");this.ensureDefault("prevent_swf_caching",true);this.ensureDefault("button_image_url","");this.ensureDefault("button_width",1);this.ensureDefault("button_height",1);this.ensureDefault("button_text","");this.ensureDefault("button_text_style","color: #000000; font-size: 16pt;");this.ensureDefault("button_text_top_padding",0);this.ensureDefault("button_text_left_padding",0);this.ensureDefault("button_action",SWFUpload.BUTTON_ACTION.SELECT_FILES);this.ensureDefault("button_disabled",false);this.ensureDefault("button_placeholder_id","");this.ensureDefault("button_placeholder",null);this.ensureDefault("button_cursor",SWFUpload.CURSOR.ARROW);this.ensureDefault("button_window_mode",SWFUpload.WINDOW_MODE.WINDOW);this.ensureDefault("debug",false);this.settings.debug_enabled=this.settings.debug;this.settings.return_upload_start_handler=this.returnUploadStart;this.ensureDefault("swfupload_preload_handler",null);this.ensureDefault("swfupload_load_failed_handler",null);this.ensureDefault("swfupload_loaded_handler",null);this.ensureDefault("file_dialog_start_handler",null);this.ensureDefault("file_queued_handler",null);this.ensureDefault("file_queue_error_handler",null);this.ensureDefault("file_dialog_complete_handler",null);this.ensureDefault("upload_resize_start_handler",null);this.ensureDefault("upload_start_handler",null);this.ensureDefault("upload_progress_handler",null);this.ensureDefault("upload_error_handler",null);this.ensureDefault("upload_success_handler",null);this.ensureDefault("upload_complete_handler",null);this.ensureDefault("mouse_click_handler",null);this.ensureDefault("mouse_out_handler",null);this.ensureDefault("mouse_over_handler",null);this.ensureDefault("debug_handler",this.debugMessage);this.ensureDefault("custom_settings",{});this.customSettings=this.settings.custom_settings;if(!!this.settings.prevent_swf_caching){this.settings.flash_url=this.settings.flash_url+(this.settings.flash_url.indexOf("?")<0?"?":"&")+"preventswfcaching="+new Date().getTime();this.settings.flash9_url=this.settings.flash9_url+(this.settings.flash9_url.indexOf("?")<0?"?":"&")+"preventswfcaching="+new Date().getTime()}if(!this.settings.preserve_relative_urls){this.settings.upload_url=SWFUpload.completeURL(this.settings.upload_url);this.settings.button_image_url=SWFUpload.completeURL(this.settings.button_image_url)}delete this.ensureDefault};SWFUpload.prototype.loadSupport=function(){this.support={loading:swfobject.hasFlashPlayerVersion("9.0.28"),imageResize:swfobject.hasFlashPlayerVersion("10.0.0")}};SWFUpload.prototype.loadFlash=function(){var b,f,e,a,d;if(!this.support.loading){this.queueEvent("swfupload_load_failed_handler",["Flash Player doesn't support SWFUpload"]);return}if(document.getElementById(this.movieName)!==null){this.support.loading=false;this.queueEvent("swfupload_load_failed_handler",["Element ID already in use"]);return}b=document.getElementById(this.settings.button_placeholder_id)||this.settings.button_placeholder;if(b==undefined){this.support.loading=false;this.queueEvent("swfupload_load_failed_handler",["button place holder not found"]);return}e=(b.currentStyle&&b.currentStyle.display||window.getComputedStyle&&document.defaultView.getComputedStyle(b,null).getPropertyValue("display"))!=="block"?"span":"div";f=document.createElement(e);a=this.getFlashHTML();try{f.innerHTML=a}catch(c){this.support.loading=false;this.queueEvent("swfupload_load_failed_handler",["Exception loading Flash HTML into placeholder"]);return}d=f.getElementsByTagName("object");if(!d||d.length>1||d.length===0){this.support.loading=false;this.queueEvent("swfupload_load_failed_handler",["Unable to find movie after adding to DOM"]);return}else{if(d.length===1){this.movieElement=d[0]}}b.parentNode.replaceChild(f.firstChild,b);if(window[this.movieName]==undefined){window[this.movieName]=this.getMovieElement()}};SWFUpload.prototype.getFlashHTML=function(a){return['<object id="',this.movieName,'" type="application/x-shockwave-flash" data="',(this.support.imageResize?this.settings.flash_url:this.settings.flash9_url),'" width="',this.settings.button_width,'" height="',this.settings.button_height,'" class="swfupload">','<param name="wmode" value="',this.settings.button_window_mode,'" />','<param name="movie" value="',(this.support.imageResize?this.settings.flash_url:this.settings.flash9_url),'" />','<param name="quality" value="high" />','<param name="allowScriptAccess" value="always" />','<param name="flashvars" value="'+this.getFlashVars()+'" />',"</object>"].join("")};SWFUpload.prototype.getFlashVars=function(){var a,b;b=this.buildParamString();a=this.settings.http_success.join(",");return["movieName=",encodeURIComponent(this.movieName),"&amp;uploadURL=",encodeURIComponent(this.settings.upload_url),"&amp;useQueryString=",encodeURIComponent(this.settings.use_query_string),"&amp;requeueOnError=",encodeURIComponent(this.settings.requeue_on_error),"&amp;httpSuccess=",encodeURIComponent(a),"&amp;assumeSuccessTimeout=",encodeURIComponent(this.settings.assume_success_timeout),"&amp;params=",encodeURIComponent(b),"&amp;filePostName=",encodeURIComponent(this.settings.file_post_name),"&amp;fileTypes=",encodeURIComponent(this.settings.file_types),"&amp;fileTypesDescription=",encodeURIComponent(this.settings.file_types_description),"&amp;fileSizeLimit=",encodeURIComponent(this.settings.file_size_limit),"&amp;fileUploadLimit=",encodeURIComponent(this.settings.file_upload_limit),"&amp;fileQueueLimit=",encodeURIComponent(this.settings.file_queue_limit),"&amp;debugEnabled=",encodeURIComponent(this.settings.debug_enabled),"&amp;buttonImageURL=",encodeURIComponent(this.settings.button_image_url),"&amp;buttonWidth=",encodeURIComponent(this.settings.button_width),"&amp;buttonHeight=",encodeURIComponent(this.settings.button_height),"&amp;buttonText=",encodeURIComponent(this.settings.button_text),"&amp;buttonTextTopPadding=",encodeURIComponent(this.settings.button_text_top_padding),"&amp;buttonTextLeftPadding=",encodeURIComponent(this.settings.button_text_left_padding),"&amp;buttonTextStyle=",encodeURIComponent(this.settings.button_text_style),"&amp;buttonAction=",encodeURIComponent(this.settings.button_action),"&amp;buttonDisabled=",encodeURIComponent(this.settings.button_disabled),"&amp;buttonCursor=",encodeURIComponent(this.settings.button_cursor)].join("")};SWFUpload.prototype.getMovieElement=function(){if(this.movieElement==undefined){this.movieElement=document.getElementById(this.movieName)}if(this.movieElement===null){throw"Could not find Flash element"}return this.movieElement};SWFUpload.prototype.buildParamString=function(){var a,c,b=[];c=this.settings.post_params;if(typeof(c)==="object"){for(a in c){if(c.hasOwnProperty(a)){b.push(encodeURIComponent(a.toString())+"="+encodeURIComponent(c[a].toString()))}}}return b.join("&amp;")};SWFUpload.prototype.destroy=function(){var a;try{this.cancelUpload(null,false);a=this.cleanUp();if(a){try{a.parentNode.removeChild(a)}catch(b){}}window[this.movieName]=null;SWFUpload.instances[this.movieName]=null;delete SWFUpload.instances[this.movieName];this.movieElement=null;this.settings=null;this.customSettings=null;this.eventQueue=null;this.movieName=null;return true}catch(c){return false}};SWFUpload.prototype.displayDebugInfo=function(){this.debug(["---SWFUpload Instance Info---\n","Version: ",SWFUpload.version,"\n","Movie Name: ",this.movieName,"\n","Settings:\n","\t","upload_url:               ",this.settings.upload_url,"\n","\t","flash_url:                ",this.settings.flash_url,"\n","\t","flash9_url:                ",this.settings.flash9_url,"\n","\t","use_query_string:         ",this.settings.use_query_string.toString(),"\n","\t","requeue_on_error:         ",this.settings.requeue_on_error.toString(),"\n","\t","http_success:             ",this.settings.http_success.join(", "),"\n","\t","assume_success_timeout:   ",this.settings.assume_success_timeout,"\n","\t","file_post_name:           ",this.settings.file_post_name,"\n","\t","post_params:              ",this.settings.post_params.toString(),"\n","\t","file_types:               ",this.settings.file_types,"\n","\t","file_types_description:   ",this.settings.file_types_description,"\n","\t","file_size_limit:          ",this.settings.file_size_limit,"\n","\t","file_upload_limit:        ",this.settings.file_upload_limit,"\n","\t","file_queue_limit:         ",this.settings.file_queue_limit,"\n","\t","debug:                    ",this.settings.debug.toString(),"\n","\t","prevent_swf_caching:      ",this.settings.prevent_swf_caching.toString(),"\n","\t","button_placeholder_id:    ",this.settings.button_placeholder_id.toString(),"\n","\t","button_placeholder:       ",(this.settings.button_placeholder?"Set":"Not Set"),"\n","\t","button_image_url:         ",this.settings.button_image_url.toString(),"\n","\t","button_width:             ",this.settings.button_width.toString(),"\n","\t","button_height:            ",this.settings.button_height.toString(),"\n","\t","button_text:              ",this.settings.button_text.toString(),"\n","\t","button_text_style:        ",this.settings.button_text_style.toString(),"\n","\t","button_text_top_padding:  ",this.settings.button_text_top_padding.toString(),"\n","\t","button_text_left_padding: ",this.settings.button_text_left_padding.toString(),"\n","\t","button_action:            ",this.settings.button_action.toString(),"\n","\t","button_cursor:            ",this.settings.button_cursor.toString(),"\n","\t","button_disabled:          ",this.settings.button_disabled.toString(),"\n","\t","custom_settings:          ",this.settings.custom_settings.toString(),"\n","Event Handlers:\n","\t","swfupload_preload_handler assigned:  ",(typeof this.settings.swfupload_preload_handler==="function").toString(),"\n","\t","swfupload_load_failed_handler assigned:  ",(typeof this.settings.swfupload_load_failed_handler==="function").toString(),"\n","\t","swfupload_loaded_handler assigned:  ",(typeof this.settings.swfupload_loaded_handler==="function").toString(),"\n","\t","mouse_click_handler assigned:       ",(typeof this.settings.mouse_click_handler==="function").toString(),"\n","\t","mouse_over_handler assigned:        ",(typeof this.settings.mouse_over_handler==="function").toString(),"\n","\t","mouse_out_handler assigned:         ",(typeof this.settings.mouse_out_handler==="function").toString(),"\n","\t","file_dialog_start_handler assigned: ",(typeof this.settings.file_dialog_start_handler==="function").toString(),"\n","\t","file_queued_handler assigned:       ",(typeof this.settings.file_queued_handler==="function").toString(),"\n","\t","file_queue_error_handler assigned:  ",(typeof this.settings.file_queue_error_handler==="function").toString(),"\n","\t","upload_resize_start_handler assigned:      ",(typeof this.settings.upload_resize_start_handler==="function").toString(),"\n","\t","upload_start_handler assigned:      ",(typeof this.settings.upload_start_handler==="function").toString(),"\n","\t","upload_progress_handler assigned:   ",(typeof this.settings.upload_progress_handler==="function").toString(),"\n","\t","upload_error_handler assigned:      ",(typeof this.settings.upload_error_handler==="function").toString(),"\n","\t","upload_success_handler assigned:    ",(typeof this.settings.upload_success_handler==="function").toString(),"\n","\t","upload_complete_handler assigned:   ",(typeof this.settings.upload_complete_handler==="function").toString(),"\n","\t","debug_handler assigned:             ",(typeof this.settings.debug_handler==="function").toString(),"\n","Support:\n","\t","Load:                     ",(this.support.loading?"Yes":"No"),"\n","\t","Image Resize:             ",(this.support.imageResize?"Yes":"No"),"\n"].join(""))};SWFUpload.prototype.addSetting=function(b,c,a){if(c==undefined){return(this.settings[b]=a)}else{return(this.settings[b]=c)}};SWFUpload.prototype.getSetting=function(a){if(this.settings[a]!=undefined){return this.settings[a]}return""};SWFUpload.prototype.callFlash=function(functionName,argumentArray){var movieElement,returnValue,returnString;argumentArray=argumentArray||[];movieElement=this.getMovieElement();try{if(movieElement!=undefined){returnString=movieElement.CallFunction('<invoke name="'+functionName+'" returntype="javascript">'+__flash__argumentsToXML(argumentArray,0)+"</invoke>");returnValue=eval(returnString)}else{this.debug("Can't call flash because the movie wasn't found.")}}catch(ex){this.debug("Exception calling flash function '"+functionName+"': "+ex.message)}if(returnValue!=undefined&&typeof returnValue.post==="object"){returnValue=this.unescapeFilePostParams(returnValue)}return returnValue};SWFUpload.prototype.selectFile=function(){this.callFlash("SelectFile")};SWFUpload.prototype.selectFiles=function(){this.callFlash("SelectFiles")};SWFUpload.prototype.startUpload=function(a){this.callFlash("StartUpload",[a])};SWFUpload.prototype.startResizedUpload=function(b,d,a,e,f,c){this.callFlash("StartUpload",[b,{width:d,height:a,encoding:e,quality:f,allowEnlarging:c}])};SWFUpload.prototype.cancelUpload=function(a,b){if(b!==false){b=true}this.callFlash("CancelUpload",[a,b])};SWFUpload.prototype.stopUpload=function(){this.callFlash("StopUpload")};SWFUpload.prototype.requeueUpload=function(a){return this.callFlash("RequeueUpload",[a])};SWFUpload.prototype.getStats=function(){return this.callFlash("GetStats")};SWFUpload.prototype.setStats=function(a){this.callFlash("SetStats",[a])};SWFUpload.prototype.getFile=function(a){if(typeof(a)==="number"){return this.callFlash("GetFileByIndex",[a])}else{return this.callFlash("GetFile",[a])}};SWFUpload.prototype.getQueueFile=function(a){if(typeof(a)==="number"){return this.callFlash("GetFileByQueueIndex",[a])}else{return this.callFlash("GetFile",[a])}};SWFUpload.prototype.addFileParam=function(a,b,c){return this.callFlash("AddFileParam",[a,b,c])};SWFUpload.prototype.removeFileParam=function(a,b){this.callFlash("RemoveFileParam",[a,b])};SWFUpload.prototype.setUploadURL=function(a){this.settings.upload_url=a.toString();this.callFlash("SetUploadURL",[a])};SWFUpload.prototype.setPostParams=function(a){this.settings.post_params=a;this.callFlash("SetPostParams",[a])};SWFUpload.prototype.addPostParam=function(a,b){this.settings.post_params[a]=b;this.callFlash("SetPostParams",[this.settings.post_params])};SWFUpload.prototype.removePostParam=function(a){delete this.settings.post_params[a];this.callFlash("SetPostParams",[this.settings.post_params])};SWFUpload.prototype.setFileTypes=function(a,b){this.settings.file_types=a;this.settings.file_types_description=b;this.callFlash("SetFileTypes",[a,b])};SWFUpload.prototype.setFileSizeLimit=function(a){this.settings.file_size_limit=a;this.callFlash("SetFileSizeLimit",[a])};SWFUpload.prototype.setFileUploadLimit=function(a){this.settings.file_upload_limit=a;this.callFlash("SetFileUploadLimit",[a])};SWFUpload.prototype.setFileQueueLimit=function(a){this.settings.file_queue_limit=a;this.callFlash("SetFileQueueLimit",[a])};SWFUpload.prototype.setFilePostName=function(a){this.settings.file_post_name=a;this.callFlash("SetFilePostName",[a])};SWFUpload.prototype.setUseQueryString=function(a){this.settings.use_query_string=a;this.callFlash("SetUseQueryString",[a])};SWFUpload.prototype.setRequeueOnError=function(a){this.settings.requeue_on_error=a;this.callFlash("SetRequeueOnError",[a])};SWFUpload.prototype.setHTTPSuccess=function(a){if(typeof a==="string"){a=a.replace(" ","").split(",")}this.settings.http_success=a;this.callFlash("SetHTTPSuccess",[a])};SWFUpload.prototype.setAssumeSuccessTimeout=function(a){this.settings.assume_success_timeout=a;this.callFlash("SetAssumeSuccessTimeout",[a])};SWFUpload.prototype.setDebugEnabled=function(a){this.settings.debug_enabled=a;this.callFlash("SetDebugEnabled",[a])};SWFUpload.prototype.setButtonImageURL=function(a){if(a==undefined){a=""}this.settings.button_image_url=a;this.callFlash("SetButtonImageURL",[a])};SWFUpload.prototype.setButtonDimensions=function(c,a){this.settings.button_width=c;this.settings.button_height=a;var b=this.getMovieElement();if(b!=undefined){b.style.width=c+"px";b.style.height=a+"px"}this.callFlash("SetButtonDimensions",[c,a])};SWFUpload.prototype.setButtonText=function(a){this.settings.button_text=a;this.callFlash("SetButtonText",[a])};SWFUpload.prototype.setButtonTextPadding=function(b,a){this.settings.button_text_top_padding=a;this.settings.button_text_left_padding=b;this.callFlash("SetButtonTextPadding",[b,a])};SWFUpload.prototype.setButtonTextStyle=function(a){this.settings.button_text_style=a;this.callFlash("SetButtonTextStyle",[a])};SWFUpload.prototype.setButtonDisabled=function(a){this.settings.button_disabled=a;this.callFlash("SetButtonDisabled",[a])};SWFUpload.prototype.setButtonAction=function(a){this.settings.button_action=a;this.callFlash("SetButtonAction",[a])};SWFUpload.prototype.setButtonCursor=function(a){this.settings.button_cursor=a;this.callFlash("SetButtonCursor",[a])};SWFUpload.prototype.queueEvent=function(b,c){var a=this;if(c==undefined){c=[]}else{if(!(c instanceof Array)){c=[c]}}if(typeof this.settings[b]==="function"){this.eventQueue.push(function(){this.settings[b].apply(this,c)});setTimeout(function(){a.executeNextEvent()},0)}else{if(this.settings[b]!==null){throw"Event handler "+b+" is unknown or is not a function"}}};SWFUpload.prototype.executeNextEvent=function(){var a=this.eventQueue?this.eventQueue.shift():null;if(typeof(a)==="function"){a.apply(this)}};SWFUpload.prototype.unescapeFilePostParams=function(c){var e=/[$]([0-9a-f]{4})/i,f={},d,a,b;if(c!=undefined){for(a in c.post){if(c.post.hasOwnProperty(a)){d=a;while((b=e.exec(d))!==null){d=d.replace(b[0],String.fromCharCode(parseInt("0x"+b[1],16)))}f[d]=c.post[a]}}c.post=f}return c};SWFUpload.prototype.swfuploadPreload=function(){var a;if(typeof this.settings.swfupload_preload_handler==="function"){a=this.settings.swfupload_preload_handler.call(this)}else{if(this.settings.swfupload_preload_handler!=undefined){throw"upload_start_handler must be a function"}}if(a===undefined){a=true}return !!a};SWFUpload.prototype.flashReady=function(){var a=this.cleanUp();if(!a){this.debug("Flash called back ready but the flash movie can't be found.");return}this.queueEvent("swfupload_loaded_handler")};SWFUpload.prototype.cleanUp=function(){var c,a=this.getMovieElement();try{if(a&&typeof(a.CallFunction)==="unknown"){this.debug("Removing Flash functions hooks (this should only run in IE and should prevent memory leaks)");for(c in a){try{if(typeof(a[c])==="function"){a[c]=null}}catch(b){}}}}catch(d){}window.__flash__removeCallback=function(e,f){try{if(e){e[f]=null}}catch(g){}};return a};SWFUpload.prototype.mouseClick=function(){this.queueEvent("mouse_click_handler")};SWFUpload.prototype.mouseOver=function(){this.queueEvent("mouse_over_handler")};SWFUpload.prototype.mouseOut=function(){this.queueEvent("mouse_out_handler")};SWFUpload.prototype.fileDialogStart=function(){this.queueEvent("file_dialog_start_handler")};SWFUpload.prototype.fileQueued=function(a){a=this.unescapeFilePostParams(a);this.queueEvent("file_queued_handler",a)};SWFUpload.prototype.fileQueueError=function(a,c,b){a=this.unescapeFilePostParams(a);this.queueEvent("file_queue_error_handler",[a,c,b])};SWFUpload.prototype.fileDialogComplete=function(b,c,a){this.queueEvent("file_dialog_complete_handler",[b,c,a])};SWFUpload.prototype.uploadResizeStart=function(b,a){b=this.unescapeFilePostParams(b);this.queueEvent("upload_resize_start_handler",[b,a.width,a.height,a.encoding,a.quality])};SWFUpload.prototype.uploadStart=function(a){a=this.unescapeFilePostParams(a);this.queueEvent("return_upload_start_handler",a)};SWFUpload.prototype.returnUploadStart=function(a){var b;if(typeof this.settings.upload_start_handler==="function"){a=this.unescapeFilePostParams(a);b=this.settings.upload_start_handler.call(this,a)}else{if(this.settings.upload_start_handler!=undefined){throw"upload_start_handler must be a function"}}if(b===undefined){b=true}b=!!b;this.callFlash("ReturnUploadStart",[b])};SWFUpload.prototype.uploadProgress=function(a,c,b){a=this.unescapeFilePostParams(a);this.queueEvent("upload_progress_handler",[a,c,b])};SWFUpload.prototype.uploadError=function(a,c,b){a=this.unescapeFilePostParams(a);this.queueEvent("upload_error_handler",[a,c,b])};SWFUpload.prototype.uploadSuccess=function(b,a,c){b=this.unescapeFilePostParams(b);this.queueEvent("upload_success_handler",[b,a,c])};SWFUpload.prototype.uploadComplete=function(a){a=this.unescapeFilePostParams(a);this.queueEvent("upload_complete_handler",a)};SWFUpload.prototype.debug=function(a){this.queueEvent("debug_handler",a)};SWFUpload.prototype.debugMessage=function(c){var a,d,b;if(this.settings.debug){d=[];if(typeof c==="object"&&typeof c.name==="string"&&typeof c.message==="string"){for(b in c){if(c.hasOwnProperty(b)){d.push(b+": "+c[b])}}a=d.join("\n")||"";d=a.split("\n");a="EXCEPTION: "+d.join("\nEXCEPTION: ");SWFUpload.Console.writeLine(a)}else{SWFUpload.Console.writeLine(c)}}};SWFUpload.Console={};SWFUpload.Console.writeLine=function(d){var b,a;try{b=document.getElementById("SWFUpload_Console");if(!b){a=document.createElement("form");document.getElementsByTagName("body")[0].appendChild(a);b=document.createElement("textarea");b.id="SWFUpload_Console";b.style.fontFamily="monospace";b.setAttribute("wrap","off");b.wrap="off";b.style.overflow="auto";b.style.width="700px";b.style.height="350px";b.style.margin="5px";a.appendChild(b)}b.value+=d+"\n";b.scrollTop=b.scrollHeight-b.clientHeight}catch(c){alert("Exception: "+c.name+" Message: "+c.message)}};swfobject=function(){var aq="undefined",aD="object",ab="Shockwave Flash",X="ShockwaveFlash.ShockwaveFlash",aE="application/x-shockwave-flash",ac="SWFObjectExprInst",ax="onreadystatechange",af=window,aL=document,aB=navigator,aa=false,Z=[aN],aG=[],ag=[],al=[],aJ,ad,ap,at,ak=false,aU=false,aH,an,aI=true,ah=function(){var a=typeof aL.getElementById!=aq&&typeof aL.getElementsByTagName!=aq&&typeof aL.createElement!=aq,e=aB.userAgent.toLowerCase(),c=aB.platform.toLowerCase(),h=c?/win/.test(c):/win/.test(e),k=c?/mac/.test(c):/mac/.test(e),g=/webkit/.test(e)?parseFloat(e.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,d=!+"\v1",f=[0,0,0],l=null;if(typeof aB.plugins!=aq&&typeof aB.plugins[ab]==aD){l=aB.plugins[ab].description;if(l&&!(typeof aB.mimeTypes!=aq&&aB.mimeTypes[aE]&&!aB.mimeTypes[aE].enabledPlugin)){aa=true;d=false;l=l.replace(/^.*\s+(\S+\s+\S+$)/,"$1");f[0]=parseInt(l.replace(/^(.*)\..*$/,"$1"),10);f[1]=parseInt(l.replace(/^.*\.(.*)\s.*$/,"$1"),10);f[2]=/[a-zA-Z]/.test(l)?parseInt(l.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof af.ActiveXObject!=aq){try{var j=new ActiveXObject(X);if(j){l=j.GetVariable("$version");if(l){d=true;l=l.split(" ")[1].split(",");f=[parseInt(l[0],10),parseInt(l[1],10),parseInt(l[2],10)]}}}catch(b){}}}return{w3:a,pv:f,wk:g,ie:d,win:h,mac:k}}(),aK=function(){if(!ah.w3){return}if((typeof aL.readyState!=aq&&aL.readyState=="complete")||(typeof aL.readyState==aq&&(aL.getElementsByTagName("body")[0]||aL.body))){aP()}if(!ak){if(typeof aL.addEventListener!=aq){aL.addEventListener("DOMContentLoaded",aP,false)}if(ah.ie&&ah.win){aL.attachEvent(ax,function(){if(aL.readyState=="complete"){aL.detachEvent(ax,arguments.callee);aP()}});if(af==top){(function(){if(ak){return}try{aL.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}aP()})()}}if(ah.wk){(function(){if(ak){return}if(!/loaded|complete/.test(aL.readyState)){setTimeout(arguments.callee,0);return}aP()})()}aC(aP)}}();function aP(){if(ak){return}try{var b=aL.getElementsByTagName("body")[0].appendChild(ar("span"));b.parentNode.removeChild(b)}catch(a){return}ak=true;var d=Z.length;for(var c=0;c<d;c++){Z[c]()}}function aj(a){if(ak){a()}else{Z[Z.length]=a}}function aC(a){if(typeof af.addEventListener!=aq){af.addEventListener("load",a,false)}else{if(typeof aL.addEventListener!=aq){aL.addEventListener("load",a,false)}else{if(typeof af.attachEvent!=aq){aM(af,"onload",a)}else{if(typeof af.onload=="function"){var b=af.onload;af.onload=function(){b();a()}}else{af.onload=a}}}}}function aN(){if(aa){Y()}else{am()}}function Y(){var d=aL.getElementsByTagName("body")[0];var b=ar(aD);b.setAttribute("type",aE);var a=d.appendChild(b);if(a){var c=0;(function(){if(typeof a.GetVariable!=aq){var e=a.GetVariable("$version");if(e){e=e.split(" ")[1].split(",");ah.pv=[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10)]}}else{if(c<10){c++;setTimeout(arguments.callee,10);return}}d.removeChild(b);a=null;am()})()}else{am()}}function am(){var g=aG.length;if(g>0){for(var h=0;h<g;h++){var c=aG[h].id;var m=aG[h].callbackFn;var a={success:false,id:c};if(ah.pv[0]>0){var j=aS(c);if(j){if(ao(aG[h].swfVersion)&&!(ah.wk&&ah.wk<312)){ay(c,true);if(m){a.success=true;a.ref=av(c);m(a)}}else{if(aG[h].expressInstall&&au()){var e={};e.data=aG[h].expressInstall;e.width=j.getAttribute("width")||"0";e.height=j.getAttribute("height")||"0";if(j.getAttribute("class")){e.styleclass=j.getAttribute("class")}if(j.getAttribute("align")){e.align=j.getAttribute("align")}var f={};var d=j.getElementsByTagName("param");var l=d.length;for(var k=0;k<l;k++){if(d[k].getAttribute("name").toLowerCase()!="movie"){f[d[k].getAttribute("name")]=d[k].getAttribute("value")}}ae(e,f,c,m)}else{aF(j);if(m){m(a)}}}}}else{ay(c,true);if(m){var b=av(c);if(b&&typeof b.SetVariable!=aq){a.success=true;a.ref=b}m(a)}}}}}function av(b){var d=null;var c=aS(b);if(c&&c.nodeName=="OBJECT"){if(typeof c.SetVariable!=aq){d=c}else{var a=c.getElementsByTagName(aD)[0];if(a){d=a}}}return d}function au(){return !aU&&ao("6.0.65")&&(ah.win||ah.mac)&&!(ah.wk&&ah.wk<312)}function ae(f,d,h,e){aU=true;ap=e||null;at={success:false,id:h};var a=aS(h);if(a){if(a.nodeName=="OBJECT"){aJ=aO(a);ad=null}else{aJ=a;ad=h}f.id=ac;if(typeof f.width==aq||(!/%$/.test(f.width)&&parseInt(f.width,10)<310)){f.width="310"}if(typeof f.height==aq||(!/%$/.test(f.height)&&parseInt(f.height,10)<137)){f.height="137"}aL.title=aL.title.slice(0,47)+" - Flash Player Installation";var b=ah.ie&&ah.win?"ActiveX":"PlugIn",c="MMredirectURL="+af.location.toString().replace(/&/g,"%26")+"&MMplayerType="+b+"&MMdoctitle="+aL.title;if(typeof d.flashvars!=aq){d.flashvars+="&"+c}else{d.flashvars=c}if(ah.ie&&ah.win&&a.readyState!=4){var g=ar("div");h+="SWFObjectNew";g.setAttribute("id",h);a.parentNode.insertBefore(g,a);a.style.display="none";(function(){if(a.readyState==4){a.parentNode.removeChild(a)}else{setTimeout(arguments.callee,10)}})()}aA(f,d,h)}}function aF(a){if(ah.ie&&ah.win&&a.readyState!=4){var b=ar("div");a.parentNode.insertBefore(b,a);b.parentNode.replaceChild(aO(a),b);a.style.display="none";(function(){if(a.readyState==4){a.parentNode.removeChild(a)}else{setTimeout(arguments.callee,10)}})()}else{a.parentNode.replaceChild(aO(a),a)}}function aO(b){var d=ar("div");if(ah.win&&ah.ie){d.innerHTML=b.innerHTML}else{var e=b.getElementsByTagName(aD)[0];if(e){var a=e.childNodes;if(a){var f=a.length;for(var c=0;c<f;c++){if(!(a[c].nodeType==1&&a[c].nodeName=="PARAM")&&!(a[c].nodeType==8)){d.appendChild(a[c].cloneNode(true))}}}}}return d}function aA(e,g,c){var d,a=aS(c);if(ah.wk&&ah.wk<312){return d}if(a){if(typeof e.id==aq){e.id=c}if(ah.ie&&ah.win){var f="";for(var j in e){if(e[j]!=Object.prototype[j]){if(j.toLowerCase()=="data"){g.movie=e[j]}else{if(j.toLowerCase()=="styleclass"){f+=' class="'+e[j]+'"'}else{if(j.toLowerCase()!="classid"){f+=" "+j+'="'+e[j]+'"'}}}}}var h="";for(var k in g){if(g[k]!=Object.prototype[k]){h+='<param name="'+k+'" value="'+g[k]+'" />'}}a.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+f+">"+h+"</object>";ag[ag.length]=e.id;d=aS(e.id)}else{var b=ar(aD);b.setAttribute("type",aE);for(var l in e){if(e[l]!=Object.prototype[l]){if(l.toLowerCase()=="styleclass"){b.setAttribute("class",e[l])}else{if(l.toLowerCase()!="classid"){b.setAttribute(l,e[l])}}}}for(var m in g){if(g[m]!=Object.prototype[m]&&m.toLowerCase()!="movie"){aQ(b,m,g[m])}}a.parentNode.replaceChild(b,a);d=b}}return d}function aQ(b,d,c){var a=ar("param");a.setAttribute("name",d);a.setAttribute("value",c);b.appendChild(a)}function aw(a){var b=aS(a);if(b&&b.nodeName=="OBJECT"){if(ah.ie&&ah.win){b.style.display="none";(function(){if(b.readyState==4){aT(a)}else{setTimeout(arguments.callee,10)}})()}else{b.parentNode.removeChild(b)}}}function aT(a){var b=aS(a);if(b){for(var c in b){if(typeof b[c]=="function"){b[c]=null}}b.parentNode.removeChild(b)}}function aS(a){var c=null;try{c=aL.getElementById(a)}catch(b){}return c}function ar(a){return aL.createElement(a)}function aM(a,c,b){a.attachEvent(c,b);al[al.length]=[a,c,b]}function ao(a){var b=ah.pv,c=a.split(".");c[0]=parseInt(c[0],10);c[1]=parseInt(c[1],10)||0;c[2]=parseInt(c[2],10)||0;return(b[0]>c[0]||(b[0]==c[0]&&b[1]>c[1])||(b[0]==c[0]&&b[1]==c[1]&&b[2]>=c[2]))?true:false}function az(b,f,a,c){if(ah.ie&&ah.mac){return}var e=aL.getElementsByTagName("head")[0];if(!e){return}var g=(a&&typeof a=="string")?a:"screen";if(c){aH=null;an=null}if(!aH||an!=g){var d=ar("style");d.setAttribute("type","text/css");d.setAttribute("media",g);aH=e.appendChild(d);if(ah.ie&&ah.win&&typeof aL.styleSheets!=aq&&aL.styleSheets.length>0){aH=aL.styleSheets[aL.styleSheets.length-1]}an=g}if(ah.ie&&ah.win){if(aH&&typeof aH.addRule==aD){aH.addRule(b,f)}}else{if(aH&&typeof aL.createTextNode!=aq){aH.appendChild(aL.createTextNode(b+" {"+f+"}"))}}}function ay(a,c){if(!aI){return}var b=c?"visible":"hidden";if(ak&&aS(a)){aS(a).style.visibility=b}else{az("#"+a,"visibility:"+b)}}function ai(b){var a=/[\\\"<>\.;]/;var c=a.exec(b)!=null;return c&&typeof encodeURIComponent!=aq?encodeURIComponent(b):b}var aR=function(){if(ah.ie&&ah.win){window.attachEvent("onunload",function(){var a=al.length;for(var b=0;b<a;b++){al[b][0].detachEvent(al[b][1],al[b][2])}var d=ag.length;for(var c=0;c<d;c++){aw(ag[c])}for(var e in ah){ah[e]=null}ah=null;for(var f in swfobject){swfobject[f]=null}swfobject=null})}}();return{registerObject:function(a,e,c,b){if(ah.w3&&a&&e){var d={};d.id=a;d.swfVersion=e;d.expressInstall=c;d.callbackFn=b;aG[aG.length]=d;ay(a,false)}else{if(b){b({success:false,id:a})}}},getObjectById:function(a){if(ah.w3){return av(a)}},embedSWF:function(l,e,h,f,c,a,b,j,g,k){var d={success:false,id:e};if(ah.w3&&!(ah.wk&&ah.wk<312)&&l&&e&&h&&f&&c){ay(e,false);aj(function(){h+="";f+="";var r={};if(g&&typeof g===aD){for(var p in g){r[p]=g[p]}}r.data=l;r.width=h;r.height=f;var o={};if(j&&typeof j===aD){for(var q in j){o[q]=j[q]}}if(b&&typeof b===aD){for(var m in b){if(typeof o.flashvars!=aq){o.flashvars+="&"+m+"="+b[m]}else{o.flashvars=m+"="+b[m]}}}if(ao(c)){var n=aA(r,o,e);if(r.id==e){ay(e,true)}d.success=true;d.ref=n}else{if(a&&au()){r.data=a;ae(r,o,e,k);return}else{ay(e,true)}}if(k){k(d)}})}else{if(k){k(d)}}},switchOffAutoHideShow:function(){aI=false},ua:ah,getFlashPlayerVersion:function(){return{major:ah.pv[0],minor:ah.pv[1],release:ah.pv[2]}},hasFlashPlayerVersion:ao,createSWF:function(a,b,c){if(ah.w3){return aA(a,b,c)}else{return undefined}},showExpressInstall:function(b,a,d,c){if(ah.w3&&au()){ae(b,a,d,c)}},removeSWF:function(a){if(ah.w3){aw(a)}},createCSS:function(b,a,c,d){if(ah.w3){az(b,a,c,d)}},addDomLoadEvent:aj,addLoadEvent:aC,getQueryParamValue:function(b){var a=aL.location.search||aL.location.hash;if(a){if(/\?/.test(a)){a=a.split("?")[1]}if(b==null){return ai(a)}var c=a.split("&");for(var d=0;d<c.length;d++){if(c[d].substring(0,c[d].indexOf("="))==b){return ai(c[d].substring((c[d].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(aU){var a=aS(ac);if(a&&aJ){a.parentNode.replaceChild(aJ,a);if(ad){ay(ad,true);if(ah.ie&&ah.win){aJ.style.display="block"}}if(ap){ap(at)}}aU=false}}}}();swfobject.addDomLoadEvent(function(){if(typeof(SWFUpload.onload)==="function"){SWFUpload.onload.call(window)}});var SWFUpload;if(typeof(SWFUpload)==="function"){SWFUpload.queue={};SWFUpload.prototype.initSettings=(function(a){return function(b){if(typeof(a)==="function"){a.call(this,b)}this.queueSettings={};this.queueSettings.queue_cancelled_flag=false;this.queueSettings.queue_upload_count=0;this.queueSettings.user_upload_complete_handler=this.settings.upload_complete_handler;this.queueSettings.user_upload_start_handler=this.settings.upload_start_handler;this.settings.upload_complete_handler=SWFUpload.queue.uploadCompleteHandler;this.settings.upload_start_handler=SWFUpload.queue.uploadStartHandler;this.settings.queue_complete_handler=b.queue_complete_handler||null}})(SWFUpload.prototype.initSettings);SWFUpload.prototype.startUpload=function(a){this.queueSettings.queue_cancelled_flag=false;this.callFlash("StartUpload",[a])};SWFUpload.prototype.cancelQueue=function(){this.queueSettings.queue_cancelled_flag=true;this.stopUpload();var a=this.getStats();while(a.files_queued>0){this.cancelUpload();a=this.getStats()}};SWFUpload.queue.uploadStartHandler=function(a){var b;if(typeof(this.queueSettings.user_upload_start_handler)==="function"){b=this.queueSettings.user_upload_start_handler.call(this,a)}b=(b===false)?false:true;this.queueSettings.queue_cancelled_flag=!b;return b};SWFUpload.queue.uploadCompleteHandler=function(b){var c=this.queueSettings.user_upload_complete_handler;var d;if(b.filestatus===SWFUpload.FILE_STATUS.COMPLETE){this.queueSettings.queue_upload_count++}if(typeof(c)==="function"){d=(c.call(this,b)===false)?false:true}else{if(b.filestatus===SWFUpload.FILE_STATUS.QUEUED){d=false}else{d=true}}if(d){var a=this.getStats();if(a.files_queued>0&&this.queueSettings.queue_cancelled_flag===false){this.startUpload()}else{if(this.queueSettings.queue_cancelled_flag===false){this.queueEvent("queue_complete_handler",[this.queueSettings.queue_upload_count]);this.queueSettings.queue_upload_count=0}else{this.queueSettings.queue_cancelled_flag=false;this.queueSettings.queue_upload_count=0}}}}}function FileProgress(c,a){this.fileProgressID=c.id;this.opacity=100;this.height=0;this.fileProgressWrapper=document.getElementById(this.fileProgressID);if(!this.fileProgressWrapper){this.fileProgressWrapper=document.createElement("div");this.fileProgressWrapper.className="progressWrapper";this.fileProgressWrapper.id=this.fileProgressID;this.fileProgressElement=document.createElement("div");this.fileProgressElement.className="progressContainer";var f=document.createElement("a");f.className="progressCancel";f.href="#";f.style.visibility="hidden";f.appendChild(document.createTextNode(" "));var b=document.createElement("div");b.className="progressName";b.appendChild(document.createTextNode(c.name));var e=document.createElement("div");e.className="progressBarInProgress";var d=document.createElement("div");d.className="progressBarStatus";d.innerHTML="&nbsp;";this.fileProgressElement.appendChild(f);this.fileProgressElement.appendChild(b);this.fileProgressElement.appendChild(d);this.fileProgressElement.appendChild(e);this.fileProgressWrapper.appendChild(this.fileProgressElement);document.getElementById(a).appendChild(this.fileProgressWrapper)}else{this.fileProgressElement=this.fileProgressWrapper.firstChild;this.reset()}this.height=this.fileProgressWrapper.offsetHeight;this.setTimer(null)}FileProgress.prototype.setTimer=function(a){this.fileProgressElement.FP_TIMER=a};FileProgress.prototype.getTimer=function(a){return this.fileProgressElement.FP_TIMER||null};FileProgress.prototype.reset=function(){this.fileProgressElement.className="progressContainer";this.fileProgressElement.childNodes[2].innerHTML="&nbsp;";this.fileProgressElement.childNodes[2].className="progressBarStatus";this.fileProgressElement.childNodes[3].className="progressBarInProgress";this.fileProgressElement.childNodes[3].style.width="0%";this.appear()};FileProgress.prototype.setProgress=function(a){this.fileProgressElement.className="progressContainer green";this.fileProgressElement.childNodes[3].className="progressBarInProgress";this.fileProgressElement.childNodes[3].style.width=a+"%";this.appear()};FileProgress.prototype.setComplete=function(){this.fileProgressElement.className="progressContainer blue";this.fileProgressElement.childNodes[3].className="progressBarComplete";this.fileProgressElement.childNodes[3].style.width="";var a=this;this.setTimer(setTimeout(function(){a.disappear()},10000))};FileProgress.prototype.setError=function(){this.fileProgressElement.className="progressContainer red";this.fileProgressElement.childNodes[3].className="progressBarError";this.fileProgressElement.childNodes[3].style.width="";var a=this;this.setTimer(setTimeout(function(){a.disappear()},5000))};FileProgress.prototype.setCancelled=function(){this.fileProgressElement.className="progressContainer";this.fileProgressElement.childNodes[3].className="progressBarError";this.fileProgressElement.childNodes[3].style.width="";var a=this;this.setTimer(setTimeout(function(){a.disappear()},2000))};FileProgress.prototype.setStatus=function(a){this.fileProgressElement.childNodes[2].innerHTML=a};FileProgress.prototype.toggleCancel=function(b,c){this.fileProgressElement.childNodes[0].style.visibility=b?"visible":"hidden";if(c){var a=this.fileProgressID;this.fileProgressElement.childNodes[0].onclick=function(){c.cancelUpload(a);return false}}};FileProgress.prototype.appear=function(){if(this.getTimer()!==null){clearTimeout(this.getTimer());this.setTimer(null)}if(this.fileProgressWrapper.filters){try{this.fileProgressWrapper.filters.item("DXImageTransform.Microsoft.Alpha").opacity=100}catch(a){this.fileProgressWrapper.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=100)"}}else{this.fileProgressWrapper.style.opacity=1}this.fileProgressWrapper.style.height="";this.height=this.fileProgressWrapper.offsetHeight;this.opacity=100;this.fileProgressWrapper.style.display=""};FileProgress.prototype.disappear=function(){var f=15;var c=4;var b=30;if(this.opacity>0){this.opacity-=f;if(this.opacity<0){this.opacity=0}if(this.fileProgressWrapper.filters){try{this.fileProgressWrapper.filters.item("DXImageTransform.Microsoft.Alpha").opacity=this.opacity}catch(d){this.fileProgressWrapper.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+this.opacity+")"}}else{this.fileProgressWrapper.style.opacity=this.opacity/100}}if(this.height>0){this.height-=c;if(this.height<0){this.height=0}this.fileProgressWrapper.style.height=this.height+"px"}if(this.height>0||this.opacity>0){var a=this;this.setTimer(setTimeout(function(){a.disappear()},b))}else{this.fileProgressWrapper.style.display="none";this.setTimer(null)}};function initswf(a,b,c){var d={flash_url:b+"/js/swfupload/swfupload.swf",flash9_url:b+"/js/swfupload/swfupload_fp9.swf",upload_url:b+"/imageUpload/save",post_params:{title:"title",description:"description",uid:c},file_post_name:"sfuFile",file_size_limit:"3 MB",file_types:"*.gif;*.png;*.jpg",file_types_description:"Image Files",file_upload_limit:3,file_queue_limit:1,custom_settings:{progressTarget:"fsUploadProgress"},debug:false,button_image_url:b+"/images/upload_button.png",button_width:"88",button_height:"22",button_placeholder_id:"spanButtonPlaceHolder",swfupload_preload_handler:preLoad,swfupload_load_failed_handler:loadFailed,file_queued_handler:fileQueued,file_queue_error_handler:fileQueueError,file_dialog_complete_handler:fileDialogComplete,upload_start_handler:uploadStart,upload_progress_handler:uploadProgress,upload_error_handler:uploadError,upload_success_handler:uploadSuccess,upload_complete_handler:uploadComplete,queue_complete_handler:queueComplete};a=new SWFUpload(d)}function preLoad(){if(!this.support.loading){alert("You need the Flash Player 9.028 or above to use SWFUpload.");return false}}function loadFailed(){alert("Something went wrong while loading SWFUpload.")}function fileQueued(c){try{var a=new FileProgress(c,this.customSettings.progressTarget);a.setStatus("Pending...");a.toggleCancel(true,this)}catch(b){this.debug(b)}}function fileQueueError(c,e,d){try{if(e===SWFUpload.QUEUE_ERROR.QUEUE_LIMIT_EXCEEDED){alert("You have attempted to queue too many files.\n"+(d===0?"You have reached the upload limit.":"You may select "+(d>1?"up to "+d+" files.":"one file.")));return}var a=new FileProgress(c,this.customSettings.progressTarget);a.setError();a.toggleCancel(false);switch(e){case SWFUpload.QUEUE_ERROR.FILE_EXCEEDS_SIZE_LIMIT:a.setStatus("File is too big.");this.debug("Error Code: File too big, File name: "+c.name+", File size: "+c.size+", Message: "+d);break;case SWFUpload.QUEUE_ERROR.ZERO_BYTE_FILE:a.setStatus("Cannot upload Zero Byte files.");this.debug("Error Code: Zero byte file, File name: "+c.name+", File size: "+c.size+", Message: "+d);break;case SWFUpload.QUEUE_ERROR.INVALID_FILETYPE:a.setStatus("Invalid File Type.");this.debug("Error Code: Invalid File Type, File name: "+c.name+", File size: "+c.size+", Message: "+d);break;default:if(c!==null){a.setStatus("Unhandled Error")}this.debug("Error Code: "+e+", File name: "+c.name+", File size: "+c.size+", Message: "+d);break}}catch(b){this.debug(b)}}function fileDialogComplete(a,c){try{this.startUpload()}catch(b){this.debug(b)}}function uploadStart(c){try{var a=new FileProgress(c,this.customSettings.progressTarget);a.setStatus("Uploading...");a.toggleCancel(true,this)}catch(b){}return true}function uploadProgress(c,f,e){try{var d=Math.ceil((f/e)*100);var a=new FileProgress(c,this.customSettings.progressTarget);a.setProgress(d);a.setStatus("Uploading...")}catch(b){this.debug(b)}}function uploadSuccess(d,b){try{var a=new FileProgress(d,this.customSettings.progressTarget);a.setComplete();a.setStatus("Complete.");a.toggleCancel(false);onPageUploadSuccess(b)}catch(c){this.debug(c)}}function uploadError(c,e,d){try{var a=new FileProgress(c,this.customSettings.progressTarget);a.setError();a.toggleCancel(false);switch(e){case SWFUpload.UPLOAD_ERROR.HTTP_ERROR:a.setStatus("Upload Error: "+d);this.debug("Error Code: HTTP Error, File name: "+c.name+", Message: "+d);break;case SWFUpload.UPLOAD_ERROR.UPLOAD_FAILED:a.setStatus("Upload Failed.");this.debug("Error Code: Upload Failed, File name: "+c.name+", File size: "+c.size+", Message: "+d);break;case SWFUpload.UPLOAD_ERROR.IO_ERROR:a.setStatus("Server (IO) Error");this.debug("Error Code: IO Error, File name: "+c.name+", Message: "+d);break;case SWFUpload.UPLOAD_ERROR.SECURITY_ERROR:a.setStatus("Security Error");this.debug("Error Code: Security Error, File name: "+c.name+", Message: "+d);break;case SWFUpload.UPLOAD_ERROR.UPLOAD_LIMIT_EXCEEDED:a.setStatus("Upload limit exceeded.");this.debug("Error Code: Upload Limit Exceeded, File name: "+c.name+", File size: "+c.size+", Message: "+d);break;case SWFUpload.UPLOAD_ERROR.FILE_VALIDATION_FAILED:a.setStatus("Failed Validation.  Upload skipped.");this.debug("Error Code: File Validation Failed, File name: "+c.name+", File size: "+c.size+", Message: "+d);break;case SWFUpload.UPLOAD_ERROR.FILE_CANCELLED:if(this.getStats().files_queued===0){document.getElementById(this.customSettings.cancelButtonId).disabled=true}a.setStatus("Cancelled");a.setCancelled();break;case SWFUpload.UPLOAD_ERROR.UPLOAD_STOPPED:a.setStatus("Stopped");break;default:a.setStatus("Unhandled Error: "+e);this.debug("Error Code: "+e+", File name: "+c.name+", File size: "+c.size+", Message: "+d);break}}catch(b){this.debug(b)}}function uploadComplete(a){}function queueComplete(b){var a=document.getElementById("divStatus");a.innerHTML=b+" file"+(b===1?"":"s")+" uploaded."}function info(a){growl(a)}function growl(a){$.jGrowl(a,{theme:"theme",speed:"slow"})}$(function(){$("#spinner").bind("ajaxSend",function(){$(this).show()}).bind("ajaxComplete",function(){$(this).hide()});$("#mainContent").bind("ajaxSend",function(){$(this).fadeTo("fast",0.5)}).bind("ajaxComplete",function(){$(this).fadeTo("fast",1)});$(".dialog").bind("ajaxSend",function(){$(this).fadeTo("fast",0.5)}).bind("ajaxComplete",function(){$(this).fadeTo("fast",1)})});function formSubmitted(){$("#spinner").show();$("#mainContent").fadeTo("fast",0.5);$(".dialog").fadeTo("fast",0.5)}function ajaxCompleted(c,b,a){var d=c.indexOf("err:")!=0;if(!d){$("#"+a).html(c.substr(4))}else{$("#"+a).html("");$("#"+b).html(c)}return d}function openDialog(a){$("#"+a).dialog("open")}function closeDialog(b,a){$("#"+b).dialog("close");$("#"+a).html("")}function ajaxCompletedCloseDialog(d,c,b,a){if(ajaxCompleted(d,b,a)){closeDialog(c)}}function ajaxCompletedReload(d,c,b,a){if(ajaxCompleted(d,b,a)){location.reload(true)}}function reloadIfSuccessful(a){if(ajaxSuccessful(a)){formSubmitted();location.reload(true)}}function closeIfSuccessful(b,a){if(ajaxSuccessful(b)){$("#"+a).dialog("close")}}function closeAndGrowlIfSuccessful(b,a){if(ajaxSuccessful(b)){growl(b);$("#"+a+"-dialog").dialog("close")}}function growlIfSuccessful(a){if(ajaxSuccessful(a)){growl(a)}}function updateIfSuccessful(a){}function ajaxSuccessful(a){var b=(a.indexOf("err:")!=0);if(!b){$(".error_message").show();$(".error_message").html(a.substr(4));return false}else{$(".error_message").hide();return true}}function dialogClose(a){dialogClose(a,false)}function dialogClose(a,b){$(a).parents("div.ui-dialog-content").dialog("close");if(b){location.reload(true)}}function showError(){$(".error_message").show();$(".error_message").html("Error Sending Request to the server.")}$.fn.clearForm=function(){return this.each(function(){var b=this.type,a=this.tagName.toLowerCase();if(a=="form"){return $(":input",this).clearForm()}if(b=="text"||b=="password"||a=="textarea"){this.value=""}else{if(b=="checkbox"||b=="radio"){this.checked=false}else{if(a=="select"){this.selectedIndex=-1}}}})};function equalHeight(a){tallest=0;a.each(function(){thisHeight=$(this).height();if(thisHeight>tallest){tallest=thisHeight}});a.height(tallest)}var klass="grayinput";jQuery.fn.DefaultValue=function(a){return this.each(function(){if(this.type!="text"&&this.type!="password"&&this.type!="textarea"){return}var b=this;if($(this).val()==""){$(this).val(a)}else{return}$(this).focus(function(){if($(this).val()==a||$(this).val()==""){$(this).removeClass(klass);$(this).val("")}});$(this).blur(function(){if($(this).val()==a||$(this).val()==""){$(this).addClass(klass);$(this).val(a)}});$(this).parents("form").each(function(){$(this).submit(function(){if($(b).val()==a){$(b).val("")}})})})};function disableArea(a){a.fadeTo("fast",0.4);a.children(":input").attr("disabled",true);a.children(":input").val("")}function enableArea(a){a.children(":input").removeAttr("disabled");a.fadeTo("fast",1)}function tip(a){$("#"+a).bt({centerPointY:0.1,positions:["right","left"],padding:10,width:256,cornerRadius:10,fill:"#FFF",strokeStyle:"#ff5c00",shadow:true,shadowBlur:12,shadowOffsetX:0,shadowOffsetY:5,hoverIntentOpts:{interval:200,timeout:0},cssStyles:{fontSize:"11px",fontFamily:"arial,helvetica,sans-serif"}})}jQuery.fn.defaultValue=function(a){return this.each(function(){if(this.type!="text"&&this.type!="password"&&this.type!="textarea"){return}var b=this;if(this.value==""){this.value=a}else{return}$(this).focus(function(){if(this.value==a||this.value==""){this.value=""}});$(this).blur(function(){if(this.value==a||this.value==""){this.value=a}});$(this).parents("form").each(function(){$(this).submit(function(){if(b.value==a){b.value=""}})})})};
