// /includes/jquery-1.4.2.min.js
(function(b,c){function f(){if(!d.isReady){try{F.documentElement.doScroll("left")}catch(a){setTimeout(f,1);return}d.ready()}}function l(a,e){e.src?d.ajax({url:e.src,async:false,dataType:"script"}):d.globalEval(e.text||e.textContent||e.innerHTML||"");e.parentNode&&e.parentNode.removeChild(e)}function p(a,e,g,j,k,u){var w=a.length;if(typeof e==="object"){for(var C in e)p(a,C,e[C],j,k,g);return a}if(g!==c){j=!u&&j&&d.isFunction(g);for(C=0;C<w;C++)k(a[C],e,j?g.call(a[C],C,k(a[C],e)):g,u);return a}return w?
k(a[0],e):c}function t(){return(new Date).getTime()}function v(){return false}function J(){return true}function M(a,e,g){g[0].type=a;return d.event.handle.apply(e,g)}function q(a){var e,g=[],j=[],k=arguments,u,w,C,A,D,N;w=d.data(this,"events");if(!(a.liveFired===this||!w||!w.live||a.button&&a.type==="click")){a.liveFired=this;var T=w.live.slice(0);for(A=0;A<T.length;A++){w=T[A];w.origType.replace(sa,"")===a.type?j.push(w.selector):T.splice(A--,1)}u=d(a.target).closest(j,a.currentTarget);D=0;for(N=
u.length;D<N;D++)for(A=0;A<T.length;A++){w=T[A];if(u[D].selector===w.selector){C=u[D].elem;j=null;if(w.preType==="mouseenter"||w.preType==="mouseleave")j=d(a.relatedTarget).closest(w.selector)[0];if(!j||j!==C)g.push({elem:C,handleObj:w})}}D=0;for(N=g.length;D<N;D++){u=g[D];a.currentTarget=u.elem;a.data=u.handleObj.data;a.handleObj=u.handleObj;if(u.handleObj.origHandler.apply(u.elem,k)===false){e=false;break}}return e}}function h(a,e){return"live."+(a&&a!=="*"?a+".":"")+e.replace(/\./g,"`").replace(/ /g,
"&")}function n(a,e){var g=0;e.each(function(){if(this.nodeName===(a[g]&&a[g].nodeName)){var j=d.data(a[g++]),k=d.data(this,j);if(j=j&&j.events){delete k.handle;k.events={};for(var u in j)for(var w in j[u])d.event.add(this,u,j[u][w],j[u][w].data)}}})}function m(a,e,g){var j,k,u;e=e&&e[0]?e[0].ownerDocument||e[0]:F;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&e===F&&!Ia.test(a[0])&&(d.support.checkClone||!Ja.test(a[0]))){k=true;if(u=d.fragments[a[0]])if(u!==1)j=u}if(!j){j=e.createDocumentFragment();
d.clean(a,e,j,g)}if(k)d.fragments[a[0]]=u?j:1;return{fragment:j,cacheable:k}}function r(a,e){var g={};d.each(Ka.concat.apply([],Ka.slice(0,e)),function(){g[this]=a});return g}function x(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var d=function(a,e){return new d.fn.init(a,e)},z=b.jQuery,O=b.$,F=b.document,E,H=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,G=/^.[^:#\[\.,]*$/,P=/\S/,U=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,da=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,fa=navigator.userAgent,
aa=false,X=[],ca,L=Object.prototype.toString,V=Object.prototype.hasOwnProperty,Q=Array.prototype.push,Y=Array.prototype.slice,ha=Array.prototype.indexOf;d.fn=d.prototype={init:function(a,e){var g,j;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!e){this.context=F;this[0]=F.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((g=H.exec(a))&&(g[1]||!e))if(g[1]){j=e?e.ownerDocument||e:F;if(a=da.exec(a))if(d.isPlainObject(e)){a=
[F.createElement(a[1])];d.fn.attr.call(a,e,true)}else a=[j.createElement(a[1])];else{a=m([g[1]],[j]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return d.merge(this,a)}else{if(e=F.getElementById(g[2])){if(e.id!==g[2])return E.find(a);this.length=1;this[0]=e}this.context=F;this.selector=a;return this}else if(!e&&/^\w+$/.test(a)){this.selector=a;this.context=F;a=F.getElementsByTagName(a);return d.merge(this,a)}else return!e||e.jquery?(e||E).find(a):d(e).find(a);else if(d.isFunction(a))return E.ready(a);
if(a.selector!==c){this.selector=a.selector;this.context=a.context}return d.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return Y.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,e,g){var j=d();d.isArray(a)?Q.apply(j,a):d.merge(j,a);j.prevObject=this;j.context=this.context;if(e==="find")j.selector=this.selector+(this.selector?" ":"")+g;else if(e)j.selector=this.selector+"."+
e+"("+g+")";return j},each:function(a,e){return d.each(this,a,e)},ready:function(a){d.bindReady();if(d.isReady)a.call(F,d);else X&&X.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(Y.apply(this,arguments),"slice",Y.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(e,g){return a.call(e,g,e)}))},end:function(){return this.prevObject||
d(null)},push:Q,sort:[].sort,splice:[].splice};d.fn.init.prototype=d.fn;d.extend=d.fn.extend=function(){var a=arguments[0]||{},e=1,g=arguments.length,j=false,k,u,w,C;if(typeof a==="boolean"){j=a;a=arguments[1]||{};e=2}if(typeof a!=="object"&&!d.isFunction(a))a={};if(g===e){a=this;--e}for(;e<g;e++)if((k=arguments[e])!=null)for(u in k){w=a[u];C=k[u];if(a!==C)if(j&&C&&(d.isPlainObject(C)||d.isArray(C))){w=w&&(d.isPlainObject(w)||d.isArray(w))?w:d.isArray(C)?[]:{};a[u]=d.extend(j,w,C)}else if(C!==c)a[u]=
C}return a};d.extend({noConflict:function(a){b.$=O;if(a)b.jQuery=z;return d},isReady:false,ready:function(){if(!d.isReady){if(!F.body)return setTimeout(d.ready,13);d.isReady=true;if(X){for(var a,e=0;a=X[e++];)a.call(F,d);X=null}d.fn.triggerHandler&&d(F).triggerHandler("ready")}},bindReady:function(){if(!aa){aa=true;if(F.readyState==="complete")return d.ready();if(F.addEventListener){F.addEventListener("DOMContentLoaded",ca,false);b.addEventListener("load",d.ready,false)}else if(F.attachEvent){F.attachEvent("onreadystatechange",
ca);b.attachEvent("onload",d.ready);var a=false;try{a=b.frameElement==null}catch(e){}F.documentElement.doScroll&&a&&f()}}},isFunction:function(a){return L.call(a)==="[object Function]"},isArray:function(a){return L.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||L.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!V.call(a,"constructor")&&!V.call(a.constructor.prototype,"isPrototypeOf"))return false;var e;for(e in a);return e===c||V.call(a,e)},isEmptyObject:function(a){for(var e in a)return false;
return true},error:function(a){throw a;},parseJSON:function(a){if(typeof a!=="string"||!a)return null;a=d.trim(a);if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return b.JSON&&b.JSON.parse?b.JSON.parse(a):(new Function("return "+a))();else d.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&P.test(a)){var e=F.getElementsByTagName("head")[0]||
F.documentElement,g=F.createElement("script");g.type="text/javascript";if(d.support.scriptEval)g.appendChild(F.createTextNode(a));else g.text=a;e.insertBefore(g,e.firstChild);e.removeChild(g)}},nodeName:function(a,e){return a.nodeName&&a.nodeName.toUpperCase()===e.toUpperCase()},each:function(a,e,g){var j,k=0,u=a.length,w=u===c||d.isFunction(a);if(g)if(w)for(j in a){if(e.apply(a[j],g)===false)break}else for(;k<u;){if(e.apply(a[k++],g)===false)break}else if(w)for(j in a){if(e.call(a[j],j,a[j])===false)break}else for(g=
a[0];k<u&&e.call(g,k,g)!==false;g=a[++k]);return a},trim:function(a){return(a||"").replace(U,"")},makeArray:function(a,e){e=e||[];if(a!=null)a.length==null||typeof a==="string"||d.isFunction(a)||typeof a!=="function"&&a.setInterval?Q.call(e,a):d.merge(e,a);return e},inArray:function(a,e){if(e.indexOf)return e.indexOf(a);for(var g=0,j=e.length;g<j;g++)if(e[g]===a)return g;return-1},merge:function(a,e){var g=a.length,j=0;if(typeof e.length==="number")for(var k=e.length;j<k;j++)a[g++]=e[j];else for(;e[j]!==
c;)a[g++]=e[j++];a.length=g;return a},grep:function(a,e,g){for(var j=[],k=0,u=a.length;k<u;k++)!g!==!e(a[k],k)&&j.push(a[k]);return j},map:function(a,e,g){for(var j=[],k,u=0,w=a.length;u<w;u++){k=e(a[u],u,g);if(k!=null)j[j.length]=k}return j.concat.apply([],j)},guid:1,proxy:function(a,e,g){if(arguments.length===2)if(typeof e==="string"){g=a;a=g[e];e=c}else if(e&&!d.isFunction(e)){g=e;e=c}if(!e&&a)e=function(){return a.apply(g||this,arguments)};if(a)e.guid=a.guid=a.guid||e.guid||d.guid++;return e},
uaMatch:function(a){a=a.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},browser:{}});fa=d.uaMatch(fa);if(fa.browser){d.browser[fa.browser]=true;d.browser.version=fa.version}if(d.browser.webkit)d.browser.safari=true;if(ha)d.inArray=function(a,e){return ha.call(e,a)};E=d(F);if(F.addEventListener)ca=function(){F.removeEventListener("DOMContentLoaded",
ca,false);d.ready()};else if(F.attachEvent)ca=function(){if(F.readyState==="complete"){F.detachEvent("onreadystatechange",ca);d.ready()}};(function(){d.support={};var a=F.documentElement,e=F.createElement("script"),g=F.createElement("div"),j="script"+t();g.style.display="none";g.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var k=g.getElementsByTagName("*"),u=g.getElementsByTagName("a")[0];if(!(!k||!k.length||!u)){d.support=
{leadingWhitespace:g.firstChild.nodeType===3,tbody:!g.getElementsByTagName("tbody").length,htmlSerialize:!!g.getElementsByTagName("link").length,style:/red/.test(u.getAttribute("style")),hrefNormalized:u.getAttribute("href")==="/a",opacity:/^0.55$/.test(u.style.opacity),cssFloat:!!u.style.cssFloat,checkOn:g.getElementsByTagName("input")[0].value==="on",optSelected:F.createElement("select").appendChild(F.createElement("option")).selected,parentNode:g.removeChild(g.appendChild(F.createElement("div"))).parentNode===
null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};e.type="text/javascript";try{e.appendChild(F.createTextNode("window."+j+"=1;"))}catch(w){}a.insertBefore(e,a.firstChild);if(b[j]){d.support.scriptEval=true;delete b[j]}try{delete e.test}catch(C){d.support.deleteExpando=false}a.removeChild(e);if(g.attachEvent&&g.fireEvent){g.attachEvent("onclick",function A(){d.support.noCloneEvent=false;g.detachEvent("onclick",A)});g.cloneNode(true).fireEvent("onclick")}g=F.createElement("div");
g.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=F.createDocumentFragment();a.appendChild(g.firstChild);d.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;d(function(){var A=F.createElement("div");A.style.width=A.style.paddingLeft="1px";F.body.appendChild(A);d.boxModel=d.support.boxModel=A.offsetWidth===2;F.body.removeChild(A).style.display="none"});a=function(A){var D=F.createElement("div");A="on"+A;var N=A in D;if(!N){D.setAttribute(A,"return;");N=typeof D[A]===
"function"}return N};d.support.submitBubbles=a("submit");d.support.changeBubbles=a("change");a=e=g=k=u=null}})();d.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var ia="jQuery"+t(),ya=0,ma={};d.extend({cache:{},expando:ia,noData:{embed:true,object:true,applet:true},data:function(a,e,g){if(!(a.nodeName&&d.noData[a.nodeName.toLowerCase()])){a=
a==b?ma:a;var j=a[ia],k=d.cache;if(!j&&typeof e==="string"&&g===c)return null;j||(j=++ya);if(typeof e==="object"){a[ia]=j;k[j]=d.extend(true,{},e)}else if(!k[j]){a[ia]=j;k[j]={}}a=k[j];if(g!==c)a[e]=g;return typeof e==="string"?a[e]:a}},removeData:function(a,e){if(!(a.nodeName&&d.noData[a.nodeName.toLowerCase()])){a=a==b?ma:a;var g=a[ia],j=d.cache,k=j[g];if(e){if(k){delete k[e];d.isEmptyObject(k)&&d.removeData(a)}}else{if(d.support.deleteExpando)delete a[d.expando];else a.removeAttribute&&a.removeAttribute(d.expando);
delete j[g]}}}});d.fn.extend({data:function(a,e){if(typeof a==="undefined"&&this.length)return d.data(this[0]);else if(typeof a==="object")return this.each(function(){d.data(this,a)});var g=a.split(".");g[1]=g[1]?"."+g[1]:"";if(e===c){var j=this.triggerHandler("getData"+g[1]+"!",[g[0]]);if(j===c&&this.length)j=d.data(this[0],a);return j===c&&g[1]?this.data(g[0]):j}else return this.trigger("setData"+g[1]+"!",[g[0],e]).each(function(){d.data(this,a,e)})},removeData:function(a){return this.each(function(){d.removeData(this,
a)})}});d.extend({queue:function(a,e,g){if(a){e=(e||"fx")+"queue";var j=d.data(a,e);if(!g)return j||[];if(!j||d.isArray(g))j=d.data(a,e,d.makeArray(g));else j.push(g);return j}},dequeue:function(a,e){e=e||"fx";var g=d.queue(a,e),j=g.shift();if(j==="inprogress")j=g.shift();if(j){e==="fx"&&g.unshift("inprogress");j.call(a,function(){d.dequeue(a,e)})}}});d.fn.extend({queue:function(a,e){if(typeof a!=="string"){e=a;a="fx"}if(e===c)return d.queue(this[0],a);return this.each(function(){var g=d.queue(this,
a,e);a==="fx"&&g[0]!=="inprogress"&&d.dequeue(this,a)})},dequeue:function(a){return this.each(function(){d.dequeue(this,a)})},delay:function(a,e){a=d.fx?d.fx.speeds[a]||a:a;e=e||"fx";return this.queue(e,function(){var g=this;setTimeout(function(){d.dequeue(g,e)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var ua=/[\n\t]/g,pa=/\s+/,$a=/\r/g,ab=/href|src|style/,bb=/(button|input)/i,cb=/(button|input|object|select|textarea)/i,db=/^(a|area)$/i,La=/radio|checkbox/;d.fn.extend({attr:function(a,
e){return p(this,a,e,true,d.attr)},removeAttr:function(a){return this.each(function(){d.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(d.isFunction(a))return this.each(function(D){var N=d(this);N.addClass(a.call(this,D,N.attr("class")))});if(a&&typeof a==="string")for(var e=(a||"").split(pa),g=0,j=this.length;g<j;g++){var k=this[g];if(k.nodeType===1)if(k.className){for(var u=" "+k.className+" ",w=k.className,C=0,A=e.length;C<A;C++)if(u.indexOf(" "+e[C]+" ")<
0)w+=" "+e[C];k.className=d.trim(w)}else k.className=a}return this},removeClass:function(a){if(d.isFunction(a))return this.each(function(A){var D=d(this);D.removeClass(a.call(this,A,D.attr("class")))});if(a&&typeof a==="string"||a===c)for(var e=(a||"").split(pa),g=0,j=this.length;g<j;g++){var k=this[g];if(k.nodeType===1&&k.className)if(a){for(var u=(" "+k.className+" ").replace(ua," "),w=0,C=e.length;w<C;w++)u=u.replace(" "+e[w]+" "," ");k.className=d.trim(u)}else k.className=""}return this},toggleClass:function(a,
e){var g=typeof a,j=typeof e==="boolean";if(d.isFunction(a))return this.each(function(k){var u=d(this);u.toggleClass(a.call(this,k,u.attr("class"),e),e)});return this.each(function(){if(g==="string")for(var k,u=0,w=d(this),C=e,A=a.split(pa);k=A[u++];){C=j?C:!w.hasClass(k);w[C?"addClass":"removeClass"](k)}else if(g==="undefined"||g==="boolean"){this.className&&d.data(this,"__className__",this.className);this.className=this.className||a===false?"":d.data(this,"__className__")||""}})},hasClass:function(a){a=
" "+a+" ";for(var e=0,g=this.length;e<g;e++)if((" "+this[e].className+" ").replace(ua," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===c){var e=this[0];if(e){if(d.nodeName(e,"option"))return(e.attributes.value||{}).specified?e.value:e.text;if(d.nodeName(e,"select")){var g=e.selectedIndex,j=[],k=e.options;e=e.type==="select-one";if(g<0)return null;var u=e?g:0;for(g=e?g+1:k.length;u<g;u++){var w=k[u];if(w.selected){a=d(w).val();if(e)return a;j.push(a)}}return j}if(La.test(e.type)&&
!d.support.checkOn)return e.getAttribute("value")===null?"on":e.value;return(e.value||"").replace($a,"")}return c}var C=d.isFunction(a);return this.each(function(A){var D=d(this),N=a;if(this.nodeType===1){if(C)N=a.call(this,A,D.val());if(typeof N==="number")N+="";if(d.isArray(N)&&La.test(this.type))this.checked=d.inArray(D.val(),N)>=0;else if(d.nodeName(this,"select")){var T=d.makeArray(N);d("option",this).each(function(){this.selected=d.inArray(d(this).val(),T)>=0});if(!T.length)this.selectedIndex=
-1}else this.value=N}})}});d.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,e,g,j){if(!a||a.nodeType===3||a.nodeType===8)return c;if(j&&e in d.attrFn)return d(a)[e](g);j=a.nodeType!==1||!d.isXMLDoc(a);var k=g!==c;e=j&&d.props[e]||e;if(a.nodeType===1){var u=ab.test(e);if(e in a&&j&&!u){if(k){e==="type"&&bb.test(a.nodeName)&&a.parentNode&&d.error("type property can't be changed");a[e]=g}if(d.nodeName(a,"form")&&a.getAttributeNode(e))return a.getAttributeNode(e).nodeValue;
if(e==="tabIndex")return(e=a.getAttributeNode("tabIndex"))&&e.specified?e.value:cb.test(a.nodeName)||db.test(a.nodeName)&&a.href?0:c;return a[e]}if(!d.support.style&&j&&e==="style"){if(k)a.style.cssText=""+g;return a.style.cssText}k&&a.setAttribute(e,""+g);a=!d.support.hrefNormalized&&j&&u?a.getAttribute(e,2):a.getAttribute(e);return a===null?c:a}return d.style(a,e,g)}});var sa=/\.(.*)$/,eb=function(a){return a.replace(/[^\w\s\.\|`]/g,function(e){return"\\"+e})};d.event={add:function(a,e,g,j){if(!(a.nodeType===
3||a.nodeType===8)){if(a.setInterval&&a!==b&&!a.frameElement)a=b;var k,u;if(g.handler){k=g;g=k.handler}if(!g.guid)g.guid=d.guid++;if(u=d.data(a)){var w=u.events=u.events||{},C=u.handle;if(!C)u.handle=C=function(){return typeof d!=="undefined"&&!d.event.triggered?d.event.handle.apply(C.elem,arguments):c};C.elem=a;e=e.split(" ");for(var A,D=0,N;A=e[D++];){u=k?d.extend({},k):{handler:g,data:j};if(A.indexOf(".")>-1){N=A.split(".");A=N.shift();u.namespace=N.slice(0).sort().join(".")}else{N=[];u.namespace=
""}u.type=A;u.guid=g.guid;var T=w[A],ba=d.event.special[A]||{};if(!T){T=w[A]=[];if(!ba.setup||ba.setup.call(a,j,N,C)===false)if(a.addEventListener)a.addEventListener(A,C,false);else a.attachEvent&&a.attachEvent("on"+A,C)}if(ba.add){ba.add.call(a,u);if(!u.handler.guid)u.handler.guid=g.guid}T.push(u);d.event.global[A]=true}a=null}}},global:{},remove:function(a,e,g,j){if(!(a.nodeType===3||a.nodeType===8)){var k,u=0,w,C,A,D,N,T,ba=d.data(a),ga=ba&&ba.events;if(ba&&ga){if(e&&e.type){g=e.handler;e=e.type}if(!e||
typeof e==="string"&&e.charAt(0)==="."){e=e||"";for(k in ga)d.event.remove(a,k+e)}else{for(e=e.split(" ");k=e[u++];){D=k;w=k.indexOf(".")<0;C=[];if(!w){C=k.split(".");k=C.shift();A=RegExp("(^|\\.)"+d.map(C.slice(0).sort(),eb).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(N=ga[k])if(g){D=d.event.special[k]||{};for(ea=j||0;ea<N.length;ea++){T=N[ea];if(g.guid===T.guid){if(w||A.test(T.namespace)){j==null&&N.splice(ea--,1);D.remove&&D.remove.call(a,T)}if(j!=null)break}}if(N.length===0||j!=null&&N.length===1){if(!D.teardown||
D.teardown.call(a,C)===false)Ma(a,k,ba.handle);delete ga[k]}}else for(var ea=0;ea<N.length;ea++){T=N[ea];if(w||A.test(T.namespace)){d.event.remove(a,D,T.handler,ea);N.splice(ea--,1)}}}if(d.isEmptyObject(ga)){if(e=ba.handle)e.elem=null;delete ba.events;delete ba.handle;d.isEmptyObject(ba)&&d.removeData(a)}}}}},trigger:function(a,e,g,j){var k=a.type||a;if(!j){a=typeof a==="object"?a[ia]?a:d.extend(d.Event(k),a):d.Event(k);if(k.indexOf("!")>=0){a.type=k=k.slice(0,-1);a.exclusive=true}if(!g){a.stopPropagation();
d.event.global[k]&&d.each(d.cache,function(){this.events&&this.events[k]&&d.event.trigger(a,e,this.handle.elem)})}if(!g||g.nodeType===3||g.nodeType===8)return c;a.result=c;a.target=g;e=d.makeArray(e);e.unshift(a)}a.currentTarget=g;(j=d.data(g,"handle"))&&j.apply(g,e);j=g.parentNode||g.ownerDocument;try{if(!(g&&g.nodeName&&d.noData[g.nodeName.toLowerCase()]))if(g["on"+k]&&g["on"+k].apply(g,e)===false)a.result=false}catch(u){}if(!a.isPropagationStopped()&&j)d.event.trigger(a,e,j,true);else if(!a.isDefaultPrevented()){j=
a.target;var w,C=d.nodeName(j,"a")&&k==="click",A=d.event.special[k]||{};if((!A._default||A._default.call(g,a)===false)&&!C&&!(j&&j.nodeName&&d.noData[j.nodeName.toLowerCase()])){try{if(j[k]){if(w=j["on"+k])j["on"+k]=null;d.event.triggered=true;j[k]()}}catch(D){}if(w)j["on"+k]=w;d.event.triggered=false}}},handle:function(a){var e,g,j,k;a=arguments[0]=d.event.fix(a||b.event);a.currentTarget=this;e=a.type.indexOf(".")<0&&!a.exclusive;if(!e){g=a.type.split(".");a.type=g.shift();j=RegExp("(^|\\.)"+g.slice(0).sort().join("\\.(?:.*\\.)?")+
"(\\.|$)")}k=d.data(this,"events");g=k[a.type];if(k&&g){g=g.slice(0);k=0;for(var u=g.length;k<u;k++){var w=g[k];if(e||j.test(w.namespace)){a.handler=w.handler;a.data=w.data;a.handleObj=w;w=w.handler.apply(this,arguments);if(w!==c){a.result=w;if(w===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(a){if(a[ia])return a;var e=a;a=d.Event(e);for(var g=this.props.length,j;g;){j=this.props[--g];a[j]=e[j]}if(!a.target)a.target=a.srcElement||F;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){e=F.documentElement;g=F.body;a.pageX=a.clientX+(e&&e.scrollLeft||g&&g.scrollLeft||0)-(e&&e.clientLeft||g&&g.clientLeft||0);a.pageY=a.clientY+(e&&e.scrollTop||
g&&g.scrollTop||0)-(e&&e.clientTop||g&&g.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==c)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:d.proxy,special:{ready:{setup:d.bindReady,teardown:d.noop},live:{add:function(a){d.event.add(this,a.origType,d.extend({},a,{handler:q}))},remove:function(a){var e=true,g=a.origType.replace(sa,"");d.each(d.data(this,
"events").live||[],function(){if(g===this.origType.replace(sa,""))return e=false});e&&d.event.remove(this,a.origType,q)}},beforeunload:{setup:function(a,e,g){if(this.setInterval)this.onbeforeunload=g;return false},teardown:function(a,e){if(this.onbeforeunload===e)this.onbeforeunload=null}}}};var Ma=F.removeEventListener?function(a,e,g){a.removeEventListener(e,g,false)}:function(a,e,g){a.detachEvent("on"+e,g)};d.Event=function(a){if(!this.preventDefault)return new d.Event(a);if(a&&a.type){this.originalEvent=
a;this.type=a.type}else this.type=a;this.timeStamp=t();this[ia]=true};d.Event.prototype={preventDefault:function(){this.isDefaultPrevented=J;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=J;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=J;this.stopPropagation()},isDefaultPrevented:v,isPropagationStopped:v,
isImmediatePropagationStopped:v};var Na=function(a){var e=a.relatedTarget;try{for(;e&&e!==this;)e=e.parentNode;if(e!==this){a.type=a.data;d.event.handle.apply(this,arguments)}}catch(g){}},Oa=function(a){a.type=a.data;d.event.handle.apply(this,arguments)};d.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,e){d.event.special[a]={setup:function(g){d.event.add(this,e,g&&g.selector?Oa:Na,a)},teardown:function(g){d.event.remove(this,e,g&&g.selector?Oa:Na)}}});if(!d.support.submitBubbles)d.event.special.submit=
{setup:function(){if(this.nodeName.toLowerCase()!=="form"){d.event.add(this,"click.specialSubmit",function(a){var e=a.target,g=e.type;if((g==="submit"||g==="image")&&d(e).closest("form").length)return M("submit",this,arguments)});d.event.add(this,"keypress.specialSubmit",function(a){var e=a.target,g=e.type;if((g==="text"||g==="password")&&d(e).closest("form").length&&a.keyCode===13)return M("submit",this,arguments)})}else return false},teardown:function(){d.event.remove(this,".specialSubmit")}};if(!d.support.changeBubbles){var za=
/textarea|input|select/i,Aa,Pa=function(a){var e=a.type,g=a.value;if(e==="radio"||e==="checkbox")g=a.checked;else if(e==="select-multiple")g=a.selectedIndex>-1?d.map(a.options,function(j){return j.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")g=a.selectedIndex;return g},Ba=function(a,e){var g=a.target,j,k;if(!(!za.test(g.nodeName)||g.readOnly)){j=d.data(g,"_change_data");k=Pa(g);if(a.type!=="focusout"||g.type!=="radio")d.data(g,"_change_data",k);if(!(j===c||k===j))if(j!=null||
k){a.type="change";return d.event.trigger(a,e,g)}}};d.event.special.change={filters:{focusout:Ba,click:function(a){var e=a.target,g=e.type;if(g==="radio"||g==="checkbox"||e.nodeName.toLowerCase()==="select")return Ba.call(this,a)},keydown:function(a){var e=a.target,g=e.type;if(a.keyCode===13&&e.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(g==="checkbox"||g==="radio")||g==="select-multiple")return Ba.call(this,a)},beforeactivate:function(a){a=a.target;d.data(a,"_change_data",Pa(a))}},setup:function(){if(this.type===
"file")return false;for(var a in Aa)d.event.add(this,a+".specialChange",Aa[a]);return za.test(this.nodeName)},teardown:function(){d.event.remove(this,".specialChange");return za.test(this.nodeName)}};Aa=d.event.special.change.filters}F.addEventListener&&d.each({focus:"focusin",blur:"focusout"},function(a,e){function g(j){j=d.event.fix(j);j.type=e;return d.event.handle.call(this,j)}d.event.special[e]={setup:function(){this.addEventListener(a,g,true)},teardown:function(){this.removeEventListener(a,
g,true)}}});d.each(["bind","one"],function(a,e){d.fn[e]=function(g,j,k){if(typeof g==="object"){for(var u in g)this[e](u,j,g[u],k);return this}if(d.isFunction(j)){k=j;j=c}var w=e==="one"?d.proxy(k,function(A){d(this).unbind(A,w);return k.apply(this,arguments)}):k;if(g==="unload"&&e!=="one")this.one(g,j,k);else{u=0;for(var C=this.length;u<C;u++)d.event.add(this[u],g,w,j)}return this}});d.fn.extend({unbind:function(a,e){if(typeof a==="object"&&!a.preventDefault)for(var g in a)this.unbind(g,a[g]);else{g=
0;for(var j=this.length;g<j;g++)d.event.remove(this[g],a,e)}return this},delegate:function(a,e,g,j){return this.live(e,g,j,a)},undelegate:function(a,e,g){return arguments.length===0?this.unbind("live"):this.die(e,null,g,a)},trigger:function(a,e){return this.each(function(){d.event.trigger(a,e,this)})},triggerHandler:function(a,e){if(this[0]){a=d.Event(a);a.preventDefault();a.stopPropagation();d.event.trigger(a,e,this[0]);return a.result}},toggle:function(a){for(var e=arguments,g=1;g<e.length;)d.proxy(a,
e[g++]);return this.click(d.proxy(a,function(j){var k=(d.data(this,"lastToggle"+a.guid)||0)%g;d.data(this,"lastToggle"+a.guid,k+1);j.preventDefault();return e[k].apply(this,arguments)||false}))},hover:function(a,e){return this.mouseenter(a).mouseleave(e||a)}});var Qa={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};d.each(["live","die"],function(a,e){d.fn[e]=function(g,j,k,u){var w,C=0,A,D,N=u||this.selector,T=u?this:d(this.context);if(d.isFunction(j)){k=j;j=c}for(g=
(g||"").split(" ");(w=g[C++])!=null;){u=sa.exec(w);A="";if(u){A=u[0];w=w.replace(sa,"")}if(w==="hover")g.push("mouseenter"+A,"mouseleave"+A);else{D=w;if(w==="focus"||w==="blur"){g.push(Qa[w]+A);w+=A}else w=(Qa[w]||w)+A;e==="live"?T.each(function(){d.event.add(this,h(w,N),{data:j,selector:N,handler:k,origType:w,origHandler:k,preType:D})}):T.unbind(h(w,N),k)}}return this}});d.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),
function(a,e){d.fn[e]=function(g){return g?this.bind(e,g):this.trigger(e)};if(d.attrFn)d.attrFn[e]=true});b.attachEvent&&!b.addEventListener&&b.attachEvent("onunload",function(){for(var a in d.cache)if(d.cache[a].handle)try{d.event.remove(d.cache[a].handle.elem)}catch(e){}});(function(){function a(o){for(var s="",y,B=0;o[B];B++){y=o[B];if(y.nodeType===3||y.nodeType===4)s+=y.nodeValue;else if(y.nodeType!==8)s+=a(y.childNodes)}return s}function e(o,s,y,B,K,I){K=0;for(var S=B.length;K<S;K++){var R=B[K];
if(R){R=R[o];for(var Z=false;R;){if(R.sizcache===y){Z=B[R.sizset];break}if(R.nodeType===1&&!I){R.sizcache=y;R.sizset=K}if(R.nodeName.toLowerCase()===s){Z=R;break}R=R[o]}B[K]=Z}}}function g(o,s,y,B,K,I){K=0;for(var S=B.length;K<S;K++){var R=B[K];if(R){R=R[o];for(var Z=false;R;){if(R.sizcache===y){Z=B[R.sizset];break}if(R.nodeType===1){if(!I){R.sizcache=y;R.sizset=K}if(typeof s!=="string"){if(R===s){Z=true;break}}else if(A.filter(s,[R]).length>0){Z=R;break}}R=R[o]}B[K]=Z}}}var j=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
k=0,u=Object.prototype.toString,w=false,C=true;[0,0].sort(function(){C=false;return 0});var A=function(o,s,y,B){y=y||[];var K=s=s||F;if(s.nodeType!==1&&s.nodeType!==9)return[];if(!o||typeof o!=="string")return y;for(var I=[],S,R,Z,ta,na=true,qa=W(s),oa=o;(j.exec(""),S=j.exec(oa))!==null;){oa=S[3];I.push(S[1]);if(S[2]){ta=S[3];break}}if(I.length>1&&N.exec(o))if(I.length===2&&D.relative[I[0]])R=Ca(I[0]+I[1],s);else for(R=D.relative[I[0]]?[s]:A(I.shift(),s);I.length;){o=I.shift();if(D.relative[o])o+=
I.shift();R=Ca(o,R)}else{if(!B&&I.length>1&&s.nodeType===9&&!qa&&D.match.ID.test(I[0])&&!D.match.ID.test(I[I.length-1])){S=A.find(I.shift(),s,qa);s=S.expr?A.filter(S.expr,S.set)[0]:S.set[0]}if(s){S=B?{expr:I.pop(),set:ba(B)}:A.find(I.pop(),I.length===1&&(I[0]==="~"||I[0]==="+")&&s.parentNode?s.parentNode:s,qa);R=S.expr?A.filter(S.expr,S.set):S.set;if(I.length>0)Z=ba(R);else na=false;for(;I.length;){var ja=I.pop();S=ja;if(D.relative[ja])S=I.pop();else ja="";if(S==null)S=s;D.relative[ja](Z,S,qa)}}else Z=
[]}Z||(Z=R);Z||A.error(ja||o);if(u.call(Z)==="[object Array]")if(na)if(s&&s.nodeType===1)for(o=0;Z[o]!=null;o++){if(Z[o]&&(Z[o]===true||Z[o].nodeType===1&&ka(s,Z[o])))y.push(R[o])}else for(o=0;Z[o]!=null;o++)Z[o]&&Z[o].nodeType===1&&y.push(R[o]);else y.push.apply(y,Z);else ba(Z,y);if(ta){A(ta,K,y,B);A.uniqueSort(y)}return y};A.uniqueSort=function(o){if(ea){w=C;o.sort(ea);if(w)for(var s=1;s<o.length;s++)o[s]===o[s-1]&&o.splice(s--,1)}return o};A.matches=function(o,s){return A(o,null,null,s)};A.find=
function(o,s,y){var B,K;if(!o)return[];for(var I=0,S=D.order.length;I<S;I++){var R=D.order[I];if(K=D.leftMatch[R].exec(o)){var Z=K[1];K.splice(1,1);if(Z.substr(Z.length-1)!=="\\"){K[1]=(K[1]||"").replace(/\\/g,"");B=D.find[R](K,s,y);if(B!=null){o=o.replace(D.match[R],"");break}}}}B||(B=s.getElementsByTagName("*"));return{set:B,expr:o}};A.filter=function(o,s,y,B){for(var K=o,I=[],S=s,R,Z,ta=s&&s[0]&&W(s[0]);o&&s.length;){for(var na in D.filter)if((R=D.leftMatch[na].exec(o))!=null&&R[2]){var qa=D.filter[na],
oa,ja;ja=R[1];Z=false;R.splice(1,1);if(ja.substr(ja.length-1)!=="\\"){if(S===I)I=[];if(D.preFilter[na])if(R=D.preFilter[na](R,S,y,I,B,ta)){if(R===true)continue}else Z=oa=true;if(R)for(var va=0;(ja=S[va])!=null;va++)if(ja){oa=qa(ja,R,va,S);var Ra=B^!!oa;if(y&&oa!=null)if(Ra)Z=true;else S[va]=false;else if(Ra){I.push(ja);Z=true}}if(oa!==c){y||(S=I);o=o.replace(D.match[na],"");if(!Z)return[];break}}}if(o===K)if(Z==null)A.error(o);else break;K=o}return S};A.error=function(o){throw"Syntax error, unrecognized expression: "+
o;};var D=A.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(o){return o.getAttribute("href")}},relative:{"+":function(o,s){var y=typeof s==="string",B=y&&!/\W/.test(s);y=y&&!B;if(B)s=s.toLowerCase();B=0;for(var K=o.length,I;B<K;B++)if(I=o[B]){for(;(I=I.previousSibling)&&I.nodeType!==1;);o[B]=y||I&&I.nodeName.toLowerCase()===s?I||false:I===s}y&&A.filter(s,o,true)},">":function(o,s){var y=typeof s==="string";if(y&&!/\W/.test(s)){s=s.toLowerCase();for(var B=0,K=o.length;B<K;B++){var I=
o[B];if(I){y=I.parentNode;o[B]=y.nodeName.toLowerCase()===s?y:false}}}else{B=0;for(K=o.length;B<K;B++)if(I=o[B])o[B]=y?I.parentNode:I.parentNode===s;y&&A.filter(s,o,true)}},"":function(o,s,y){var B=k++,K=g;if(typeof s==="string"&&!/\W/.test(s)){var I=s=s.toLowerCase();K=e}K("parentNode",s,B,o,I,y)},"~":function(o,s,y){var B=k++,K=g;if(typeof s==="string"&&!/\W/.test(s)){var I=s=s.toLowerCase();K=e}K("previousSibling",s,B,o,I,y)}},find:{ID:function(o,s,y){if(typeof s.getElementById!=="undefined"&&
!y)return(o=s.getElementById(o[1]))?[o]:[]},NAME:function(o,s){if(typeof s.getElementsByName!=="undefined"){var y=[];s=s.getElementsByName(o[1]);for(var B=0,K=s.length;B<K;B++)s[B].getAttribute("name")===o[1]&&y.push(s[B]);return y.length===0?null:y}},TAG:function(o,s){return s.getElementsByTagName(o[1])}},preFilter:{CLASS:function(o,s,y,B,K,I){o=" "+o[1].replace(/\\/g,"")+" ";if(I)return o;I=0;for(var S;(S=s[I])!=null;I++)if(S)if(K^(S.className&&(" "+S.className+" ").replace(/[\t\n]/g," ").indexOf(o)>=
0))y||B.push(S);else if(y)s[I]=false;return false},ID:function(o){return o[1].replace(/\\/g,"")},TAG:function(o){return o[1].toLowerCase()},CHILD:function(o){if(o[1]==="nth"){var s=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(o[2]==="even"&&"2n"||o[2]==="odd"&&"2n+1"||!/\D/.test(o[2])&&"0n+"+o[2]||o[2]);o[2]=s[1]+(s[2]||1)-0;o[3]=s[3]-0}o[0]=k++;return o},ATTR:function(o,s,y,B,K,I){s=o[1].replace(/\\/g,"");if(!I&&D.attrMap[s])o[1]=D.attrMap[s];if(o[2]==="~=")o[4]=" "+o[4]+" ";return o},PSEUDO:function(o,s,y,B,
K){if(o[1]==="not")if((j.exec(o[3])||"").length>1||/^\w/.test(o[3]))o[3]=A(o[3],null,null,s);else{o=A.filter(o[3],s,y,true^K);y||B.push.apply(B,o);return false}else if(D.match.POS.test(o[0])||D.match.CHILD.test(o[0]))return true;return o},POS:function(o){o.unshift(true);return o}},filters:{enabled:function(o){return o.disabled===false&&o.type!=="hidden"},disabled:function(o){return o.disabled===true},checked:function(o){return o.checked===true},selected:function(o){return o.selected===true},parent:function(o){return!!o.firstChild},
empty:function(o){return!o.firstChild},has:function(o,s,y){return!!A(y[3],o).length},header:function(o){return/h\d/i.test(o.nodeName)},text:function(o){return"text"===o.type},radio:function(o){return"radio"===o.type},checkbox:function(o){return"checkbox"===o.type},file:function(o){return"file"===o.type},password:function(o){return"password"===o.type},submit:function(o){return"submit"===o.type},image:function(o){return"image"===o.type},reset:function(o){return"reset"===o.type},button:function(o){return"button"===
o.type||o.nodeName.toLowerCase()==="button"},input:function(o){return/input|select|textarea|button/i.test(o.nodeName)}},setFilters:{first:function(o,s){return s===0},last:function(o,s,y,B){return s===B.length-1},even:function(o,s){return s%2===0},odd:function(o,s){return s%2===1},lt:function(o,s,y){return s<y[3]-0},gt:function(o,s,y){return s>y[3]-0},nth:function(o,s,y){return y[3]-0===s},eq:function(o,s,y){return y[3]-0===s}},filter:{PSEUDO:function(o,s,y,B){var K=s[1],I=D.filters[K];if(I)return I(o,
y,s,B);else if(K==="contains")return(o.textContent||o.innerText||a([o])||"").indexOf(s[3])>=0;else if(K==="not"){s=s[3];y=0;for(B=s.length;y<B;y++)if(s[y]===o)return false;return true}else A.error("Syntax error, unrecognized expression: "+K)},CHILD:function(o,s){var y=s[1],B=o;switch(y){case "only":case "first":for(;B=B.previousSibling;)if(B.nodeType===1)return false;if(y==="first")return true;B=o;case "last":for(;B=B.nextSibling;)if(B.nodeType===1)return false;return true;case "nth":y=s[2];var K=
s[3];if(y===1&&K===0)return true;s=s[0];var I=o.parentNode;if(I&&(I.sizcache!==s||!o.nodeIndex)){var S=0;for(B=I.firstChild;B;B=B.nextSibling)if(B.nodeType===1)B.nodeIndex=++S;I.sizcache=s}o=o.nodeIndex-K;return y===0?o===0:o%y===0&&o/y>=0}},ID:function(o,s){return o.nodeType===1&&o.getAttribute("id")===s},TAG:function(o,s){return s==="*"&&o.nodeType===1||o.nodeName.toLowerCase()===s},CLASS:function(o,s){return(" "+(o.className||o.getAttribute("class"))+" ").indexOf(s)>-1},ATTR:function(o,s){var y=
s[1];o=D.attrHandle[y]?D.attrHandle[y](o):o[y]!=null?o[y]:o.getAttribute(y);y=o+"";var B=s[2];s=s[4];return o==null?B==="!=":B==="="?y===s:B==="*="?y.indexOf(s)>=0:B==="~="?(" "+y+" ").indexOf(s)>=0:!s?y&&o!==false:B==="!="?y!==s:B==="^="?y.indexOf(s)===0:B==="$="?y.substr(y.length-s.length)===s:B==="|="?y===s||y.substr(0,s.length+1)===s+"-":false},POS:function(o,s,y,B){var K=D.setFilters[s[2]];if(K)return K(o,y,s,B)}}},N=D.match.POS;for(var T in D.match){D.match[T]=RegExp(D.match[T].source+/(?![^\[]*\])(?![^\(]*\))/.source);
D.leftMatch[T]=RegExp(/(^(?:.|\r|\n)*?)/.source+D.match[T].source.replace(/\\(\d+)/g,function(o,s){return"\\"+(s-0+1)}))}var ba=function(o,s){o=Array.prototype.slice.call(o,0);if(s){s.push.apply(s,o);return s}return o};try{Array.prototype.slice.call(F.documentElement.childNodes,0)}catch(ga){ba=function(o,s){s=s||[];if(u.call(o)==="[object Array]")Array.prototype.push.apply(s,o);else if(typeof o.length==="number")for(var y=0,B=o.length;y<B;y++)s.push(o[y]);else for(y=0;o[y];y++)s.push(o[y]);return s}}var ea;
if(F.documentElement.compareDocumentPosition)ea=function(o,s){if(!o.compareDocumentPosition||!s.compareDocumentPosition){if(o==s)w=true;return o.compareDocumentPosition?-1:1}o=o.compareDocumentPosition(s)&4?-1:o===s?0:1;if(o===0)w=true;return o};else if("sourceIndex"in F.documentElement)ea=function(o,s){if(!o.sourceIndex||!s.sourceIndex){if(o==s)w=true;return o.sourceIndex?-1:1}o=o.sourceIndex-s.sourceIndex;if(o===0)w=true;return o};else if(F.createRange)ea=function(o,s){if(!o.ownerDocument||!s.ownerDocument){if(o==
s)w=true;return o.ownerDocument?-1:1}var y=o.ownerDocument.createRange(),B=s.ownerDocument.createRange();y.setStart(o,0);y.setEnd(o,0);B.setStart(s,0);B.setEnd(s,0);o=y.compareBoundaryPoints(Range.START_TO_END,B);if(o===0)w=true;return o};(function(){var o=F.createElement("div"),s="script"+(new Date).getTime();o.innerHTML="<a name='"+s+"'/>";var y=F.documentElement;y.insertBefore(o,y.firstChild);if(F.getElementById(s)){D.find.ID=function(B,K,I){if(typeof K.getElementById!=="undefined"&&!I)return(K=
K.getElementById(B[1]))?K.id===B[1]||typeof K.getAttributeNode!=="undefined"&&K.getAttributeNode("id").nodeValue===B[1]?[K]:c:[]};D.filter.ID=function(B,K){var I=typeof B.getAttributeNode!=="undefined"&&B.getAttributeNode("id");return B.nodeType===1&&I&&I.nodeValue===K}}y.removeChild(o);y=o=null})();(function(){var o=F.createElement("div");o.appendChild(F.createComment(""));if(o.getElementsByTagName("*").length>0)D.find.TAG=function(s,y){y=y.getElementsByTagName(s[1]);if(s[1]==="*"){s=[];for(var B=
0;y[B];B++)y[B].nodeType===1&&s.push(y[B]);y=s}return y};o.innerHTML="<a href='#'></a>";if(o.firstChild&&typeof o.firstChild.getAttribute!=="undefined"&&o.firstChild.getAttribute("href")!=="#")D.attrHandle.href=function(s){return s.getAttribute("href",2)};o=null})();F.querySelectorAll&&function(){var o=A,s=F.createElement("div");s.innerHTML="<p class='TEST'></p>";if(!(s.querySelectorAll&&s.querySelectorAll(".TEST").length===0)){A=function(B,K,I,S){K=K||F;if(!S&&K.nodeType===9&&!W(K))try{return ba(K.querySelectorAll(B),
I)}catch(R){}return o(B,K,I,S)};for(var y in o)A[y]=o[y];s=null}}();(function(){var o=F.createElement("div");o.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!o.getElementsByClassName||o.getElementsByClassName("e").length===0)){o.lastChild.className="e";if(o.getElementsByClassName("e").length!==1){D.order.splice(1,0,"CLASS");D.find.CLASS=function(s,y,B){if(typeof y.getElementsByClassName!=="undefined"&&!B)return y.getElementsByClassName(s[1])};o=null}}})();var ka=F.compareDocumentPosition?
function(o,s){return!!(o.compareDocumentPosition(s)&16)}:function(o,s){return o!==s&&(o.contains?o.contains(s):true)},W=function(o){return(o=(o?o.ownerDocument||o:0).documentElement)?o.nodeName!=="HTML":false},Ca=function(o,s){var y=[],B="",K;for(s=s.nodeType?[s]:s;K=D.match.PSEUDO.exec(o);){B+=K[0];o=o.replace(D.match.PSEUDO,"")}o=D.relative[o]?o+"*":o;K=0;for(var I=s.length;K<I;K++)A(o,s[K],y);return A.filter(B,y)};d.find=A;d.expr=A.selectors;d.expr[":"]=d.expr.filters;d.unique=A.uniqueSort;d.text=
a;d.isXMLDoc=W;d.contains=ka})();var fb=/Until$/,gb=/^(?:parents|prevUntil|prevAll)/,hb=/,/;Y=Array.prototype.slice;var Sa=function(a,e,g){if(d.isFunction(e))return d.grep(a,function(k,u){return!!e.call(k,u,k)===g});else if(e.nodeType)return d.grep(a,function(k){return k===e===g});else if(typeof e==="string"){var j=d.grep(a,function(k){return k.nodeType===1});if(G.test(e))return d.filter(e,j,!g);else e=d.filter(e,j)}return d.grep(a,function(k){return d.inArray(k,e)>=0===g})};d.fn.extend({find:function(a){for(var e=
this.pushStack("","find",a),g=0,j=0,k=this.length;j<k;j++){g=e.length;d.find(a,this[j],e);if(j>0)for(var u=g;u<e.length;u++)for(var w=0;w<g;w++)if(e[w]===e[u]){e.splice(u--,1);break}}return e},has:function(a){var e=d(a);return this.filter(function(){for(var g=0,j=e.length;g<j;g++)if(d.contains(this,e[g]))return true})},not:function(a){return this.pushStack(Sa(this,a,false),"not",a)},filter:function(a){return this.pushStack(Sa(this,a,true),"filter",a)},is:function(a){return!!a&&d.filter(a,this).length>
0},closest:function(a,e){if(d.isArray(a)){var g=[],j=this[0],k,u={},w;if(j&&a.length){k=0;for(var C=a.length;k<C;k++){w=a[k];u[w]||(u[w]=d.expr.match.POS.test(w)?d(w,e||this.context):w)}for(;j&&j.ownerDocument&&j!==e;){for(w in u){k=u[w];if(k.jquery?k.index(j)>-1:d(j).is(k)){g.push({selector:w,elem:j});delete u[w]}}j=j.parentNode}}return g}var A=d.expr.match.POS.test(a)?d(a,e||this.context):null;return this.map(function(D,N){for(;N&&N.ownerDocument&&N!==e;){if(A?A.index(N)>-1:d(N).is(a))return N;
N=N.parentNode}return null})},index:function(a){if(!a||typeof a==="string")return d.inArray(this[0],a?d(a):this.parent().children());return d.inArray(a.jquery?a[0]:a,this)},add:function(a,e){a=typeof a==="string"?d(a,e||this.context):d.makeArray(a);e=d.merge(this.get(),a);return this.pushStack(!a[0]||!a[0].parentNode||a[0].parentNode.nodeType===11||!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11?e:d.unique(e))},andSelf:function(){return this.add(this.prevObject)}});d.each({parent:function(a){return(a=
a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,e,g){return d.dir(a,"parentNode",g)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,e,g){return d.dir(a,"nextSibling",g)},prevUntil:function(a,e,g){return d.dir(a,"previousSibling",g)},siblings:function(a){return d.sibling(a.parentNode.firstChild,
a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,e){d.fn[a]=function(g,j){var k=d.map(this,e,g);fb.test(a)||(j=g);if(j&&typeof j==="string")k=d.filter(j,k);k=this.length>1?d.unique(k):k;if((this.length>1||hb.test(j))&&gb.test(a))k=k.reverse();return this.pushStack(k,a,Y.call(arguments).join(","))}});d.extend({filter:function(a,e,g){if(g)a=":not("+a+")";return d.find.matches(a,
e)},dir:function(a,e,g){var j=[];for(a=a[e];a&&a.nodeType!==9&&(g===c||a.nodeType!==1||!d(a).is(g));){a.nodeType===1&&j.push(a);a=a[e]}return j},nth:function(a,e,g){e=e||1;for(var j=0;a;a=a[g])if(a.nodeType===1&&++j===e)break;return a},sibling:function(a,e){for(var g=[];a;a=a.nextSibling)a.nodeType===1&&a!==e&&g.push(a);return g}});var Ta=/ jQuery\d+="(?:\d+|null)"/g,wa=/^\s+/,Ua=/(<([\w:]+)[^>]*?)\/>/g,ib=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,Va=/<([\w:]+)/,jb=/<tbody/i,kb=/<|&#?\w+;/,
Ia=/<script|<object|<embed|<option|<style/i,Ja=/checked\s*(?:[^=]|=\s*.checked.)/i,Wa=function(a,e,g){return ib.test(g)?a:e+"></"+g+">"},la={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,"",""]};la.optgroup=la.option;la.tbody=
la.tfoot=la.colgroup=la.caption=la.thead;la.th=la.td;if(!d.support.htmlSerialize)la._default=[1,"div<div>","</div>"];d.fn.extend({text:function(a){if(d.isFunction(a))return this.each(function(e){var g=d(this);g.text(a.call(this,e,g.text()))});if(typeof a!=="object"&&a!==c)return this.empty().append((this[0]&&this[0].ownerDocument||F).createTextNode(a));return d.text(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(g){d(this).wrapAll(a.call(this,g))});if(this[0]){var e=d(a,this[0].ownerDocument).eq(0).clone(true);
this[0].parentNode&&e.insertBefore(this[0]);e.map(function(){for(var g=this;g.firstChild&&g.firstChild.nodeType===1;)g=g.firstChild;return g}).append(this)}return this},wrapInner:function(a){if(d.isFunction(a))return this.each(function(e){d(this).wrapInner(a.call(this,e))});return this.each(function(){var e=d(this),g=e.contents();g.length?g.wrapAll(a):e.append(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,
"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(e){this.parentNode.insertBefore(e,this)});else if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());
return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(e){this.parentNode.insertBefore(e,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,d(arguments[0]).toArray());return a}},remove:function(a,e){for(var g=0,j;(j=this[g])!=null;g++)if(!a||d.filter(a,[j]).length){if(!e&&j.nodeType===1){d.cleanData(j.getElementsByTagName("*"));d.cleanData([j])}j.parentNode&&
j.parentNode.removeChild(j)}return this},empty:function(){for(var a=0,e;(e=this[a])!=null;a++)for(e.nodeType===1&&d.cleanData(e.getElementsByTagName("*"));e.firstChild;)e.removeChild(e.firstChild);return this},clone:function(a){var e=this.map(function(){if(!d.support.noCloneEvent&&!d.isXMLDoc(this)){var g=this.outerHTML,j=this.ownerDocument;if(!g){g=j.createElement("div");g.appendChild(this.cloneNode(true));g=g.innerHTML}return d.clean([g.replace(Ta,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(wa,
"")],j)[0]}else return this.cloneNode(true)});if(a===true){n(this,e);n(this.find("*"),e.find("*"))}return e},html:function(a){if(a===c)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ta,""):null;else if(typeof a==="string"&&!Ia.test(a)&&(d.support.leadingWhitespace||!wa.test(a))&&!la[(Va.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ua,Wa);try{for(var e=0,g=this.length;e<g;e++)if(this[e].nodeType===1){d.cleanData(this[e].getElementsByTagName("*"));this[e].innerHTML=a}}catch(j){this.empty().append(a)}}else d.isFunction(a)?
this.each(function(k){var u=d(this),w=u.html();u.empty().append(function(){return a.call(this,k,w)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(d.isFunction(a))return this.each(function(e){var g=d(this),j=g.html();g.replaceWith(a.call(this,e,j))});if(typeof a!=="string")a=d(a).detach();return this.each(function(){var e=this.nextSibling,g=this.parentNode;d(this).remove();e?d(e).before(a):d(g).append(a)})}else return this.pushStack(d(d.isFunction(a)?
a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,e,g){var j,k,u=a[0],w=[],C;if(!d.support.checkClone&&arguments.length===3&&typeof u==="string"&&Ja.test(u))return this.each(function(){d(this).domManip(a,e,g,true)});if(d.isFunction(u))return this.each(function(D){var N=d(this);a[0]=u.call(this,D,e?N.html():c);N.domManip(a,e,g)});if(this[0]){j=u&&u.parentNode;j=d.support.parentNode&&j&&j.nodeType===11&&j.childNodes.length===this.length?{fragment:j}:m(a,this,
w);C=j.fragment;if(k=C.childNodes.length===1?C=C.firstChild:C.firstChild){e=e&&d.nodeName(k,"tr");k=0;for(var A=this.length;k<A;k++)g.call(e?d.nodeName(this[k],"table")?this[k].getElementsByTagName("tbody")[0]||this[k].appendChild(this[k].ownerDocument.createElement("tbody")):this[k]:this[k],k>0||j.cacheable||this.length>1?C.cloneNode(true):C)}w.length&&d.each(w,l)}return this}});d.fragments={};d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},
function(a,e){d.fn[a]=function(g){var j=[];g=d(g);var k=this.length===1&&this[0].parentNode;if(k&&k.nodeType===11&&k.childNodes.length===1&&g.length===1){g[e](this[0]);return this}else{k=0;for(var u=g.length;k<u;k++){var w=(k>0?this.clone(true):this).get();d.fn[e].apply(d(g[k]),w);j=j.concat(w)}return this.pushStack(j,a,g.selector)}}});d.extend({clean:function(a,e,g,j){e=e||F;if(typeof e.createElement==="undefined")e=e.ownerDocument||e[0]&&e[0].ownerDocument||F;for(var k=[],u=0,w;(w=a[u])!=null;u++){if(typeof w===
"number")w+="";if(w){if(typeof w==="string"&&!kb.test(w))w=e.createTextNode(w);else if(typeof w==="string"){w=w.replace(Ua,Wa);var C=(Va.exec(w)||["",""])[1].toLowerCase(),A=la[C]||la._default,D=A[0],N=e.createElement("div");for(N.innerHTML=A[1]+w+A[2];D--;)N=N.lastChild;if(!d.support.tbody){D=jb.test(w);C=C==="table"&&!D?N.firstChild&&N.firstChild.childNodes:A[1]==="<table>"&&!D?N.childNodes:[];for(A=C.length-1;A>=0;--A)d.nodeName(C[A],"tbody")&&!C[A].childNodes.length&&C[A].parentNode.removeChild(C[A])}!d.support.leadingWhitespace&&
wa.test(w)&&N.insertBefore(e.createTextNode(wa.exec(w)[0]),N.firstChild);w=N.childNodes}if(w.nodeType)k.push(w);else k=d.merge(k,w)}}if(g)for(u=0;k[u];u++)if(j&&d.nodeName(k[u],"script")&&(!k[u].type||k[u].type.toLowerCase()==="text/javascript"))j.push(k[u].parentNode?k[u].parentNode.removeChild(k[u]):k[u]);else{k[u].nodeType===1&&k.splice.apply(k,[u+1,0].concat(d.makeArray(k[u].getElementsByTagName("script"))));g.appendChild(k[u])}return k},cleanData:function(a){for(var e,g,j=d.cache,k=d.event.special,
u=d.support.deleteExpando,w=0,C;(C=a[w])!=null;w++)if(g=C[d.expando]){e=j[g];if(e.events)for(var A in e.events)k[A]?d.event.remove(C,A):Ma(C,A,e.handle);if(u)delete C[d.expando];else C.removeAttribute&&C.removeAttribute(d.expando);delete j[g]}}});var lb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Xa=/alpha\([^)]*\)/,Ya=/opacity=([^)]*)/,Da=/float/i,Ea=/-([a-z])/ig,mb=/([A-Z])/g,nb=/^-?\d+(?:px)?$/i,ob=/^-?\d/,pb={position:"absolute",visibility:"hidden",display:"block"},qb=["Left","Right"],
rb=["Top","Bottom"],sb=F.defaultView&&F.defaultView.getComputedStyle,Za=d.support.cssFloat?"cssFloat":"styleFloat",Fa=function(a,e){return e.toUpperCase()};d.fn.css=function(a,e){return p(this,a,e,true,function(g,j,k){if(k===c)return d.curCSS(g,j);if(typeof k==="number"&&!lb.test(j))k+="px";d.style(g,j,k)})};d.extend({style:function(a,e,g){if(!a||a.nodeType===3||a.nodeType===8)return c;if((e==="width"||e==="height")&&parseFloat(g)<0)g=c;var j=a.style||a,k=g!==c;if(!d.support.opacity&&e==="opacity"){if(k){j.zoom=
1;e=parseInt(g,10)+""==="NaN"?"":"alpha(opacity="+g*100+")";a=j.filter||d.curCSS(a,"filter")||"";j.filter=Xa.test(a)?a.replace(Xa,e):e}return j.filter&&j.filter.indexOf("opacity=")>=0?parseFloat(Ya.exec(j.filter)[1])/100+"":""}if(Da.test(e))e=Za;e=e.replace(Ea,Fa);if(k)j[e]=g;return j[e]},css:function(a,e,g,j){if(e==="width"||e==="height"){var k,u=e==="width"?qb:rb;g=function(){k=e==="width"?a.offsetWidth:a.offsetHeight;j!=="border"&&d.each(u,function(){j||(k-=parseFloat(d.curCSS(a,"padding"+this,
true))||0);if(j==="margin")k+=parseFloat(d.curCSS(a,"margin"+this,true))||0;else k-=parseFloat(d.curCSS(a,"border"+this+"Width",true))||0})};a.offsetWidth!==0?g():d.swap(a,pb,g);return Math.max(0,Math.round(k))}return d.curCSS(a,e,g)},curCSS:function(a,e,g){var j,k=a.style;if(!d.support.opacity&&e==="opacity"&&a.currentStyle){j=Ya.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return j===""?"1":j}if(Da.test(e))e=Za;if(!g&&k&&k[e])j=k[e];else if(sb){if(Da.test(e))e="float";e=e.replace(mb,
"-$1").toLowerCase();k=a.ownerDocument.defaultView;if(!k)return null;if(a=k.getComputedStyle(a,null))j=a.getPropertyValue(e);if(e==="opacity"&&j==="")j="1"}else if(a.currentStyle){g=e.replace(Ea,Fa);j=a.currentStyle[e]||a.currentStyle[g];if(!nb.test(j)&&ob.test(j)){e=k.left;var u=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;k.left=g==="fontSize"?"1em":j||0;j=k.pixelLeft+"px";k.left=e;a.runtimeStyle.left=u}}return j},swap:function(a,e,g){var j={};for(var k in e){j[k]=a.style[k];a.style[k]=
e[k]}g.call(a);for(k in e)a.style[k]=j[k]}});if(d.expr&&d.expr.filters){d.expr.filters.hidden=function(a){var e=a.offsetWidth,g=a.offsetHeight,j=a.nodeName.toLowerCase()==="tr";return e===0&&g===0&&!j?true:e>0&&g>0&&!j?false:d.curCSS(a,"display")==="none"};d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)}}var tb=t(),ub=/<script(.|\s)*?\/script>/gi,vb=/select|textarea/i,wb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,ra=/=\?(&|$)/,
Ga=/\?/,xb=/(\?|&)_=.*?(&|$)/,yb=/^(\w+:)?\/\/([^\/?#]+)/,zb=/%20/g,Ab=d.fn.load;d.fn.extend({load:function(a,e,g){if(typeof a!=="string")return Ab.call(this,a);else if(!this.length)return this;var j=a.indexOf(" ");if(j>=0){var k=a.slice(j,a.length);a=a.slice(0,j)}j="GET";if(e)if(d.isFunction(e)){g=e;e=null}else if(typeof e==="object"){e=d.param(e,d.ajaxSettings.traditional);j="POST"}var u=this;d.ajax({url:a,type:j,dataType:"html",data:e,complete:function(w,C){if(C==="success"||C==="notmodified")u.html(k?
d("<div />").append(w.responseText.replace(ub,"")).find(k):w.responseText);g&&u.each(g,[w.responseText,C,w])}});return this},serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?d.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||vb.test(this.nodeName)||wb.test(this.type))}).map(function(a,e){a=d(this).val();return a==null?null:d.isArray(a)?d.map(a,function(g){return{name:e.name,
value:g}}):{name:e.name,value:a}}).get()}});d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,e){d.fn[e]=function(g){return this.bind(e,g)}});d.extend({get:function(a,e,g,j){if(d.isFunction(e)){j=j||g;g=e;e=null}return d.ajax({type:"GET",url:a,data:e,success:g,dataType:j})},getScript:function(a,e){return d.get(a,null,e,"script")},getJSON:function(a,e,g){return d.get(a,e,g,"json")},post:function(a,e,g,j){if(d.isFunction(e)){j=j||g;g=e;e={}}return d.ajax({type:"POST",
url:a,data:e,success:g,dataType:j})},ajaxSetup:function(a){d.extend(d.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:b.XMLHttpRequest&&(b.location.protocol!=="file:"||!b.ActiveXObject)?function(){return new b.XMLHttpRequest}:function(){try{return new b.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",
json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function e(){k.success&&k.success.call(A,C,w,W);k.global&&j("ajaxSuccess",[W,k])}function g(){k.complete&&k.complete.call(A,W,w);k.global&&j("ajaxComplete",[W,k]);k.global&&!--d.active&&d.event.trigger("ajaxStop")}function j(K,I){(k.context?d(k.context):d.event).trigger(K,I)}var k=d.extend(true,{},d.ajaxSettings,a),u,w,C,A=a&&a.context||k,D=k.type.toUpperCase();if(k.data&&k.processData&&
typeof k.data!=="string")k.data=d.param(k.data,k.traditional);if(k.dataType==="jsonp"){if(D==="GET")ra.test(k.url)||(k.url+=(Ga.test(k.url)?"&":"?")+(k.jsonp||"callback")+"=?");else if(!k.data||!ra.test(k.data))k.data=(k.data?k.data+"&":"")+(k.jsonp||"callback")+"=?";k.dataType="json"}if(k.dataType==="json"&&(k.data&&ra.test(k.data)||ra.test(k.url))){u=k.jsonpCallback||"jsonp"+tb++;if(k.data)k.data=(k.data+"").replace(ra,"="+u+"$1");k.url=k.url.replace(ra,"="+u+"$1");k.dataType="script";b[u]=b[u]||
function(K){C=K;e();g();b[u]=c;try{delete b[u]}catch(I){}ba&&ba.removeChild(ga)}}if(k.dataType==="script"&&k.cache===null)k.cache=false;if(k.cache===false&&D==="GET"){var N=t(),T=k.url.replace(xb,"$1_="+N+"$2");k.url=T+(T===k.url?(Ga.test(k.url)?"&":"?")+"_="+N:"")}if(k.data&&D==="GET")k.url+=(Ga.test(k.url)?"&":"?")+k.data;k.global&&!d.active++&&d.event.trigger("ajaxStart");N=(N=yb.exec(k.url))&&(N[1]&&N[1]!==location.protocol||N[2]!==location.host);if(k.dataType==="script"&&D==="GET"&&N){var ba=
F.getElementsByTagName("head")[0]||F.documentElement,ga=F.createElement("script");ga.src=k.url;if(k.scriptCharset)ga.charset=k.scriptCharset;if(!u){var ea=false;ga.onload=ga.onreadystatechange=function(){if(!ea&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){ea=true;e();g();ga.onload=ga.onreadystatechange=null;ba&&ga.parentNode&&ba.removeChild(ga)}}}ba.insertBefore(ga,ba.firstChild);return c}var ka=false,W=k.xhr();if(W){k.username?W.open(D,k.url,k.async,k.username,k.password):
W.open(D,k.url,k.async);try{if(k.data||a&&a.contentType)W.setRequestHeader("Content-Type",k.contentType);if(k.ifModified){d.lastModified[k.url]&&W.setRequestHeader("If-Modified-Since",d.lastModified[k.url]);d.etag[k.url]&&W.setRequestHeader("If-None-Match",d.etag[k.url])}N||W.setRequestHeader("X-Requested-With","XMLHttpRequest");W.setRequestHeader("Accept",k.dataType&&k.accepts[k.dataType]?k.accepts[k.dataType]+", */*":k.accepts._default)}catch(Ca){}if(k.beforeSend&&k.beforeSend.call(A,W,k)===false){k.global&&
!--d.active&&d.event.trigger("ajaxStop");W.abort();return false}k.global&&j("ajaxSend",[W,k]);var o=W.onreadystatechange=function(K){if(!W||W.readyState===0||K==="abort"){ka||g();ka=true;if(W)W.onreadystatechange=d.noop}else if(!ka&&W&&(W.readyState===4||K==="timeout")){ka=true;W.onreadystatechange=d.noop;w=K==="timeout"?"timeout":!d.httpSuccess(W)?"error":k.ifModified&&d.httpNotModified(W,k.url)?"notmodified":"success";var I;if(w==="success")try{C=d.httpData(W,k.dataType,k)}catch(S){w="parsererror";
I=S}if(w==="success"||w==="notmodified")u||e();else d.handleError(k,W,w,I);g();K==="timeout"&&W.abort();if(k.async)W=null}};try{var s=W.abort;W.abort=function(){W&&s.call(W);o("abort")}}catch(y){}k.async&&k.timeout>0&&setTimeout(function(){W&&!ka&&o("timeout")},k.timeout);try{W.send(D==="POST"||D==="PUT"||D==="DELETE"?k.data:null)}catch(B){d.handleError(k,W,null,B);g()}k.async||o();return W}},handleError:function(a,e,g,j){if(a.error)a.error.call(a.context||a,e,g,j);if(a.global)(a.context?d(a.context):
d.event).trigger("ajaxError",[e,a,j])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223||a.status===0}catch(e){}return false},httpNotModified:function(a,e){var g=a.getResponseHeader("Last-Modified"),j=a.getResponseHeader("Etag");if(g)d.lastModified[e]=g;if(j)d.etag[e]=j;return a.status===304||a.status===0},httpData:function(a,e,g){var j=a.getResponseHeader("content-type")||"",k=e==="xml"||!e&&j.indexOf("xml")>=
0;a=k?a.responseXML:a.responseText;k&&a.documentElement.nodeName==="parsererror"&&d.error("parsererror");if(g&&g.dataFilter)a=g.dataFilter(a,e);if(typeof a==="string")if(e==="json"||!e&&j.indexOf("json")>=0)a=d.parseJSON(a);else if(e==="script"||!e&&j.indexOf("javascript")>=0)d.globalEval(a);return a},param:function(a,e){function g(w,C){if(d.isArray(C))d.each(C,function(A,D){e||/\[\]$/.test(w)?j(w,D):g(w+"["+(typeof D==="object"||d.isArray(D)?A:"")+"]",D)});else!e&&C!=null&&typeof C==="object"?d.each(C,
function(A,D){g(w+"["+A+"]",D)}):j(w,C)}function j(w,C){C=d.isFunction(C)?C():C;k[k.length]=encodeURIComponent(w)+"="+encodeURIComponent(C)}var k=[];if(e===c)e=d.ajaxSettings.traditional;if(d.isArray(a)||a.jquery)d.each(a,function(){j(this.name,this.value)});else for(var u in a)g(u,a[u]);return k.join("&").replace(zb,"+")}});var Ha={},Bb=/toggle|show|hide/,Cb=/^([+-]=)?([\d+-.]+)(.*)$/,xa,Ka=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft",
"paddingRight"],["opacity"]];d.fn.extend({show:function(a,e){if(a||a===0)return this.animate(r("show",3),a,e);else{a=0;for(e=this.length;a<e;a++){var g=d.data(this[a],"olddisplay");this[a].style.display=g||"";if(d.css(this[a],"display")==="none"){g=this[a].nodeName;var j;if(Ha[g])j=Ha[g];else{var k=d("<"+g+" />").appendTo("body");j=k.css("display");if(j==="none")j="block";k.remove();Ha[g]=j}d.data(this[a],"olddisplay",j)}}a=0;for(e=this.length;a<e;a++)this[a].style.display=d.data(this[a],"olddisplay")||
"";return this}},hide:function(a,e){if(a||a===0)return this.animate(r("hide",3),a,e);else{a=0;for(e=this.length;a<e;a++){var g=d.data(this[a],"olddisplay");!g&&g!=="none"&&d.data(this[a],"olddisplay",d.css(this[a],"display"))}a=0;for(e=this.length;a<e;a++)this[a].style.display="none";return this}},_toggle:d.fn.toggle,toggle:function(a,e){var g=typeof a==="boolean";if(d.isFunction(a)&&d.isFunction(e))this._toggle.apply(this,arguments);else a==null||g?this.each(function(){var j=g?a:d(this).is(":hidden");
d(this)[j?"show":"hide"]()}):this.animate(r("toggle",3),a,e);return this},fadeTo:function(a,e,g){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:e},a,g)},animate:function(a,e,g,j){var k=d.speed(e,g,j);if(d.isEmptyObject(a))return this.each(k.complete);return this[k.queue===false?"each":"queue"](function(){var u=d.extend({},k),w,C=this.nodeType===1&&d(this).is(":hidden"),A=this;for(w in a){var D=w.replace(Ea,Fa);if(w!==D){a[D]=a[w];delete a[w];w=D}if(a[w]==="hide"&&C||
a[w]==="show"&&!C)return u.complete.call(this);if((w==="height"||w==="width")&&this.style){u.display=d.css(this,"display");u.overflow=this.style.overflow}if(d.isArray(a[w])){(u.specialEasing=u.specialEasing||{})[w]=a[w][1];a[w]=a[w][0]}}if(u.overflow!=null)this.style.overflow="hidden";u.curAnim=d.extend({},a);d.each(a,function(N,T){var ba=new d.fx(A,u,N);if(Bb.test(T))ba[T==="toggle"?C?"show":"hide":T](a);else{var ga=Cb.exec(T),ea=ba.cur(true)||0;if(ga){T=parseFloat(ga[2]);var ka=ga[3]||"px";if(ka!==
"px"){A.style[N]=(T||1)+ka;ea=(T||1)/ba.cur(true)*ea;A.style[N]=ea+ka}if(ga[1])T=(ga[1]==="-="?-1:1)*T+ea;ba.custom(ea,T,ka)}else ba.custom(ea,T,"")}});return true})},stop:function(a,e){var g=d.timers;a&&this.queue([]);this.each(function(){for(var j=g.length-1;j>=0;j--)if(g[j].elem===this){e&&g[j](true);g.splice(j,1)}});e||this.dequeue();return this}});d.each({slideDown:r("show",1),slideUp:r("hide",1),slideToggle:r("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,e){d.fn[a]=
function(g,j){return this.animate(e,g,j)}});d.extend({speed:function(a,e,g){var j=a&&typeof a==="object"?a:{complete:g||!g&&e||d.isFunction(a)&&a,duration:a,easing:g&&e||e&&!d.isFunction(e)&&e};j.duration=d.fx.off?0:typeof j.duration==="number"?j.duration:d.fx.speeds[j.duration]||d.fx.speeds._default;j.old=j.complete;j.complete=function(){j.queue!==false&&d(this).dequeue();d.isFunction(j.old)&&j.old.call(this)};return j},easing:{linear:function(a,e,g,j){return g+j*a},swing:function(a,e,g,j){return(-Math.cos(a*
Math.PI)/2+0.5)*j+g}},timers:[],fx:function(a,e,g){this.options=e;this.elem=a;this.prop=g;if(!e.orig)e.orig={}}});d.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(d.fx.step[this.prop]||d.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(d.css(this.elem,
this.prop,a)))&&a>-10000?a:parseFloat(d.curCSS(this.elem,this.prop))||0},custom:function(a,e,g){function j(u){return k.step(u)}this.startTime=t();this.start=a;this.end=e;this.unit=g||this.unit||"px";this.now=this.start;this.pos=this.state=0;var k=this;j.elem=this.elem;if(j()&&d.timers.push(j)&&!xa)xa=setInterval(d.fx.tick,13)},show:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());d(this.elem).show()},
hide:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var e=t(),g=true;if(a||e>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var j in this.options.curAnim)if(this.options.curAnim[j]!==true)g=false;if(g){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=d.data(this.elem,"olddisplay");this.elem.style.display=
a?a:this.options.display;if(d.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&d(this.elem).hide();if(this.options.hide||this.options.show)for(var k in this.options.curAnim)d.style(this.elem,k,this.options.orig[k]);this.options.complete.call(this.elem)}return false}else{k=e-this.startTime;this.state=k/this.options.duration;a=this.options.easing||(d.easing.swing?"swing":"linear");this.pos=d.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||
a](this.state,k,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};d.extend(d.fx,{tick:function(){for(var a=d.timers,e=0;e<a.length;e++)a[e]()||a.splice(e--,1);a.length||d.fx.stop()},stop:function(){clearInterval(xa);xa=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){d.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?
Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(d.expr&&d.expr.filters)d.expr.filters.animated=function(a){return d.grep(d.timers,function(e){return a===e.elem}).length};d.fn.offset="getBoundingClientRect"in F.documentElement?function(a){var e=this[0];if(a)return this.each(function(k){d.offset.setOffset(this,a,k)});if(!e||!e.ownerDocument)return null;if(e===e.ownerDocument.body)return d.offset.bodyOffset(e);var g=e.getBoundingClientRect(),j=e.ownerDocument;e=j.body;j=j.documentElement;
return{top:g.top+(self.pageYOffset||d.support.boxModel&&j.scrollTop||e.scrollTop)-(j.clientTop||e.clientTop||0),left:g.left+(self.pageXOffset||d.support.boxModel&&j.scrollLeft||e.scrollLeft)-(j.clientLeft||e.clientLeft||0)}}:function(a){var e=this[0];if(a)return this.each(function(N){d.offset.setOffset(this,a,N)});if(!e||!e.ownerDocument)return null;if(e===e.ownerDocument.body)return d.offset.bodyOffset(e);d.offset.initialize();var g=e.offsetParent,j=e,k=e.ownerDocument,u,w=k.documentElement,C=k.body;
j=(k=k.defaultView)?k.getComputedStyle(e,null):e.currentStyle;for(var A=e.offsetTop,D=e.offsetLeft;(e=e.parentNode)&&e!==C&&e!==w;){if(d.offset.supportsFixedPosition&&j.position==="fixed")break;u=k?k.getComputedStyle(e,null):e.currentStyle;A-=e.scrollTop;D-=e.scrollLeft;if(e===g){A+=e.offsetTop;D+=e.offsetLeft;if(d.offset.doesNotAddBorder&&!(d.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(e.nodeName))){A+=parseFloat(u.borderTopWidth)||0;D+=parseFloat(u.borderLeftWidth)||0}j=g;g=e.offsetParent}if(d.offset.subtractsBorderForOverflowNotVisible&&
u.overflow!=="visible"){A+=parseFloat(u.borderTopWidth)||0;D+=parseFloat(u.borderLeftWidth)||0}j=u}if(j.position==="relative"||j.position==="static"){A+=C.offsetTop;D+=C.offsetLeft}if(d.offset.supportsFixedPosition&&j.position==="fixed"){A+=Math.max(w.scrollTop,C.scrollTop);D+=Math.max(w.scrollLeft,C.scrollLeft)}return{top:A,left:D}};d.offset={initialize:function(){var a=F.body,e=F.createElement("div"),g,j,k,u=parseFloat(d.curCSS(a,"marginTop",true))||0;d.extend(e.style,{position:"absolute",top:0,
left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});e.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.insertBefore(e,a.firstChild);g=e.firstChild;j=g.firstChild;k=g.nextSibling.firstChild.firstChild;this.doesNotAddBorder=j.offsetTop!==
5;this.doesAddBorderForTableAndCells=k.offsetTop===5;j.style.position="fixed";j.style.top="20px";this.supportsFixedPosition=j.offsetTop===20||j.offsetTop===15;j.style.position=j.style.top="";g.style.overflow="hidden";g.style.position="relative";this.subtractsBorderForOverflowNotVisible=j.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==u;a.removeChild(e);d.offset.initialize=d.noop},bodyOffset:function(a){var e=a.offsetTop,g=a.offsetLeft;d.offset.initialize();if(d.offset.doesNotIncludeMarginInBodyOffset){e+=
parseFloat(d.curCSS(a,"marginTop",true))||0;g+=parseFloat(d.curCSS(a,"marginLeft",true))||0}return{top:e,left:g}},setOffset:function(a,e,g){if(/static/.test(d.curCSS(a,"position")))a.style.position="relative";var j=d(a),k=j.offset(),u=parseInt(d.curCSS(a,"top",true),10)||0,w=parseInt(d.curCSS(a,"left",true),10)||0;if(d.isFunction(e))e=e.call(a,g,k);g={top:e.top-k.top+u,left:e.left-k.left+w};"using"in e?e.using.call(a,g):j.css(g)}};d.fn.extend({position:function(){if(!this[0])return null;var a=this[0],
e=this.offsetParent(),g=this.offset(),j=/^body|html$/i.test(e[0].nodeName)?{top:0,left:0}:e.offset();g.top-=parseFloat(d.curCSS(a,"marginTop",true))||0;g.left-=parseFloat(d.curCSS(a,"marginLeft",true))||0;j.top+=parseFloat(d.curCSS(e[0],"borderTopWidth",true))||0;j.left+=parseFloat(d.curCSS(e[0],"borderLeftWidth",true))||0;return{top:g.top-j.top,left:g.left-j.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||F.body;a&&!/^body|html$/i.test(a.nodeName)&&d.css(a,
"position")==="static";)a=a.offsetParent;return a})}});d.each(["Left","Top"],function(a,e){var g="scroll"+e;d.fn[g]=function(j){var k=this[0],u;if(!k)return null;return j!==c?this.each(function(){if(u=x(this))u.scrollTo(!a?j:d(u).scrollLeft(),a?j:d(u).scrollTop());else this[g]=j}):(u=x(k))?"pageXOffset"in u?u[a?"pageYOffset":"pageXOffset"]:d.support.boxModel&&u.document.documentElement[g]||u.document.body[g]:k[g]}});d.each(["Height","Width"],function(a,e){var g=e.toLowerCase();d.fn["inner"+e]=function(){return this[0]?
d.css(this[0],g,false,"padding"):null};d.fn["outer"+e]=function(j){return this[0]?d.css(this[0],g,false,j?"margin":"border"):null};d.fn[g]=function(j){var k=this[0];if(!k)return j==null?null:this;if(d.isFunction(j))return this.each(function(u){var w=d(this);w[g](j.call(this,u,w[g]()))});return"scrollTo"in k&&k.document?k.document.compatMode==="CSS1Compat"&&k.document.documentElement["client"+e]||k.document.body["client"+e]:k.nodeType===9?Math.max(k.documentElement["client"+e],k.body["scroll"+e],k.documentElement["scroll"+
e],k.body["offset"+e],k.documentElement["offset"+e]):j===c?d.css(k,g):this.css(g,typeof j==="string"?j:j+"px")}});b.jQuery=b.$=d})(window);
// /includes/jquery-ui-1.8.2.custom.min.js
(function(b){b.ui=b.ui||{};if(!b.ui.version){b.extend(b.ui,{version:"1.8.2",plugin:{add:function(c,f,l){c=b.ui[c].prototype;for(var p in l){c.plugins[p]=c.plugins[p]||[];c.plugins[p].push([f,l[p]])}},call:function(c,f,l){if((f=c.plugins[f])&&c.element[0].parentNode)for(var p=0;p<f.length;p++)c.options[f[p][0]]&&f[p][1].apply(c.element,l)}},contains:function(c,f){return document.compareDocumentPosition?c.compareDocumentPosition(f)&16:c!==f&&c.contains(f)},hasScroll:function(c,f){if(b(c).css("overflow")==
"hidden")return false;f=f&&f=="left"?"scrollLeft":"scrollTop";var l=false;if(c[f]>0)return true;c[f]=1;l=c[f]>0;c[f]=0;return l},isOverAxis:function(c,f,l){return c>f&&c<f+l},isOver:function(c,f,l,p,t,v){return b.ui.isOverAxis(c,l,t)&&b.ui.isOverAxis(f,p,v)},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,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,WINDOWS:91}});b.fn.extend({_focus:b.fn.focus,focus:function(c,f){return typeof c==="number"?this.each(function(){var l=this;setTimeout(function(){b(l).focus();f&&f.call(l)},c)}):this._focus.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect",
"none")},scrollParent:function(){var c;c=b.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(b.curCSS(this,"position",1))&&/(auto|scroll)/.test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",
1))}).eq(0);return/fixed/.test(this.css("position"))||!c.length?b(document):c},zIndex:function(c){if(c!==undefined)return this.css("zIndex",c);if(this.length){c=b(this[0]);for(var f;c.length&&c[0]!==document;){f=c.css("position");if(f=="absolute"||f=="relative"||f=="fixed"){f=parseInt(c.css("zIndex"));if(!isNaN(f)&&f!=0)return f}c=c.parent()}}return 0}});b.extend(b.expr[":"],{data:function(c,f,l){return!!b.data(c,l[3])},focusable:function(c){var f=c.nodeName.toLowerCase(),l=b.attr(c,"tabindex");return(/input|select|textarea|button|object/.test(f)?
!c.disabled:"a"==f||"area"==f?c.href||!isNaN(l):!isNaN(l))&&!b(c)["area"==f?"parents":"closest"](":hidden").length},tabbable:function(c){var f=b.attr(c,"tabindex");return(isNaN(f)||f>=0)&&b(c).is(":focusable")}})}})(jQuery);
jQuery.effects||function(b){function c(q){var h;if(q&&q.constructor==Array&&q.length==3)return q;if(h=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(q))return[parseInt(h[1],10),parseInt(h[2],10),parseInt(h[3],10)];if(h=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(q))return[parseFloat(h[1])*2.55,parseFloat(h[2])*2.55,parseFloat(h[3])*2.55];if(h=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(q))return[parseInt(h[1],
16),parseInt(h[2],16),parseInt(h[3],16)];if(h=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(q))return[parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16),parseInt(h[3]+h[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(q))return v.transparent;return v[b.trim(q).toLowerCase()]}function f(){var q=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,h={},n,m;if(q&&q.length&&q[0]&&q[q[0]])for(var r=q.length;r--;){n=q[r];if(typeof q[n]=="string"){m=n.replace(/\-(\w)/g,function(x,d){return d.toUpperCase()});
h[m]=q[n]}}else for(n in q)if(typeof q[n]==="string")h[n]=q[n];return h}function l(q){var h,n;for(h in q){n=q[h];if(n==null||b.isFunction(n)||h in M||/scrollbar/.test(h)||!/color/i.test(h)&&isNaN(parseFloat(n)))delete q[h]}return q}function p(q,h){var n={_:0},m;for(m in h)if(q[m]!=h[m])n[m]=h[m];return n}function t(q,h,n,m){if(typeof q=="object"){m=h;n=null;h=q;q=h.effect}if(b.isFunction(h)){m=h;n=null;h={}}if(b.isFunction(n)){m=n;n=null}if(typeof h=="number"||b.fx.speeds[h]){m=n;n=h;h={}}h=h||{};
n=n||h.duration;n=b.fx.off?0:typeof n=="number"?n:b.fx.speeds[n]||b.fx.speeds._default;m=m||h.complete;return[q,h,n,m]}b.effects={};b.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(q,h){b.fx.step[h]=function(n){if(!n.colorInit){var m;m=n.elem;var r=h,x;do{x=b.curCSS(m,r);if(x!=""&&x!="transparent"||b.nodeName(m,"body"))break;r="backgroundColor"}while(m=m.parentNode);m=c(x);n.start=m;n.end=c(n.end);n.colorInit=true}n.elem.style[h]=
"rgb("+Math.max(Math.min(parseInt(n.pos*(n.end[0]-n.start[0])+n.start[0],10),255),0)+","+Math.max(Math.min(parseInt(n.pos*(n.end[1]-n.start[1])+n.start[1],10),255),0)+","+Math.max(Math.min(parseInt(n.pos*(n.end[2]-n.start[2])+n.start[2],10),255),0)+")"}});var v={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,
0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,
203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},J=["add","remove","toggle"],M={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};b.effects.animateClass=function(q,h,n,m){if(b.isFunction(n)){m=n;n=null}return this.each(function(){var r=b(this),x=r.attr("style")||" ",d=l(f.call(this)),z,O=r.attr("className");b.each(J,function(F,E){q[E]&&r[E+"Class"](q[E])});
z=l(f.call(this));r.attr("className",O);r.animate(p(d,z),h,n,function(){b.each(J,function(F,E){q[E]&&r[E+"Class"](q[E])});if(typeof r.attr("style")=="object"){r.attr("style").cssText="";r.attr("style").cssText=x}else r.attr("style",x);m&&m.apply(this,arguments)})})};b.fn.extend({_addClass:b.fn.addClass,addClass:function(q,h,n,m){return h?b.effects.animateClass.apply(this,[{add:q},h,n,m]):this._addClass(q)},_removeClass:b.fn.removeClass,removeClass:function(q,h,n,m){return h?b.effects.animateClass.apply(this,
[{remove:q},h,n,m]):this._removeClass(q)},_toggleClass:b.fn.toggleClass,toggleClass:function(q,h,n,m,r){return typeof h=="boolean"||h===undefined?n?b.effects.animateClass.apply(this,[h?{add:q}:{remove:q},n,m,r]):this._toggleClass(q,h):b.effects.animateClass.apply(this,[{toggle:q},h,n,m])},switchClass:function(q,h,n,m,r){return b.effects.animateClass.apply(this,[{add:h,remove:q},n,m,r])}});b.extend(b.effects,{version:"1.8.2",save:function(q,h){for(var n=0;n<h.length;n++)h[n]!==null&&q.data("ec.storage."+
h[n],q[0].style[h[n]])},restore:function(q,h){for(var n=0;n<h.length;n++)h[n]!==null&&q.css(h[n],q.data("ec.storage."+h[n]))},setMode:function(q,h){if(h=="toggle")h=q.is(":hidden")?"show":"hide";return h},getBaseline:function(q,h){var n;switch(q[0]){case "top":n=0;break;case "middle":n=0.5;break;case "bottom":n=1;break;default:n=q[0]/h.height}switch(q[1]){case "left":q=0;break;case "center":q=0.5;break;case "right":q=1;break;default:q=q[1]/h.width}return{x:q,y:n}},createWrapper:function(q){if(q.parent().is(".ui-effects-wrapper"))return q.parent();
var h={width:q.outerWidth(true),height:q.outerHeight(true),"float":q.css("float")},n=b("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});q.wrap(n);n=q.parent();if(q.css("position")=="static"){n.css({position:"relative"});q.css({position:"relative"})}else{b.extend(h,{position:q.css("position"),zIndex:q.css("z-index")});b.each(["top","left","bottom","right"],function(m,r){h[r]=q.css(r);if(isNaN(parseInt(h[r],10)))h[r]="auto"});
q.css({position:"relative",top:0,left:0})}return n.css(h).show()},removeWrapper:function(q){if(q.parent().is(".ui-effects-wrapper"))return q.parent().replaceWith(q);return q},setTransition:function(q,h,n,m){m=m||{};b.each(h,function(r,x){unit=q.cssUnit(x);if(unit[0]>0)m[x]=unit[0]*n+unit[1]});return m}});b.fn.extend({effect:function(q){var h=t.apply(this,arguments);h={options:h[1],duration:h[2],callback:h[3]};var n=b.effects[q];return n&&!b.fx.off?n.call(this,h):this},_show:b.fn.show,show:function(q){if(!q||
typeof q=="number"||b.fx.speeds[q])return this._show.apply(this,arguments);else{var h=t.apply(this,arguments);h[1].mode="show";return this.effect.apply(this,h)}},_hide:b.fn.hide,hide:function(q){if(!q||typeof q=="number"||b.fx.speeds[q])return this._hide.apply(this,arguments);else{var h=t.apply(this,arguments);h[1].mode="hide";return this.effect.apply(this,h)}},__toggle:b.fn.toggle,toggle:function(q){if(!q||typeof q=="number"||b.fx.speeds[q]||typeof q=="boolean"||b.isFunction(q))return this.__toggle.apply(this,
arguments);else{var h=t.apply(this,arguments);h[1].mode="toggle";return this.effect.apply(this,h)}},cssUnit:function(q){var h=this.css(q),n=[];b.each(["em","px","%","pt"],function(m,r){if(h.indexOf(r)>0)n=[parseFloat(h),r]});return n}});b.easing.jswing=b.easing.swing;b.extend(b.easing,{def:"easeOutQuad",swing:function(q,h,n,m,r){return b.easing[b.easing.def](q,h,n,m,r)},easeInQuad:function(q,h,n,m,r){return m*(h/=r)*h+n},easeOutQuad:function(q,h,n,m,r){return-m*(h/=r)*(h-2)+n},easeInOutQuad:function(q,
h,n,m,r){if((h/=r/2)<1)return m/2*h*h+n;return-m/2*(--h*(h-2)-1)+n},easeInCubic:function(q,h,n,m,r){return m*(h/=r)*h*h+n},easeOutCubic:function(q,h,n,m,r){return m*((h=h/r-1)*h*h+1)+n},easeInOutCubic:function(q,h,n,m,r){if((h/=r/2)<1)return m/2*h*h*h+n;return m/2*((h-=2)*h*h+2)+n},easeInQuart:function(q,h,n,m,r){return m*(h/=r)*h*h*h+n},easeOutQuart:function(q,h,n,m,r){return-m*((h=h/r-1)*h*h*h-1)+n},easeInOutQuart:function(q,h,n,m,r){if((h/=r/2)<1)return m/2*h*h*h*h+n;return-m/2*((h-=2)*h*h*h-2)+
n},easeInQuint:function(q,h,n,m,r){return m*(h/=r)*h*h*h*h+n},easeOutQuint:function(q,h,n,m,r){return m*((h=h/r-1)*h*h*h*h+1)+n},easeInOutQuint:function(q,h,n,m,r){if((h/=r/2)<1)return m/2*h*h*h*h*h+n;return m/2*((h-=2)*h*h*h*h+2)+n},easeInSine:function(q,h,n,m,r){return-m*Math.cos(h/r*(Math.PI/2))+m+n},easeOutSine:function(q,h,n,m,r){return m*Math.sin(h/r*(Math.PI/2))+n},easeInOutSine:function(q,h,n,m,r){return-m/2*(Math.cos(Math.PI*h/r)-1)+n},easeInExpo:function(q,h,n,m,r){return h==0?n:m*Math.pow(2,
10*(h/r-1))+n},easeOutExpo:function(q,h,n,m,r){return h==r?n+m:m*(-Math.pow(2,-10*h/r)+1)+n},easeInOutExpo:function(q,h,n,m,r){if(h==0)return n;if(h==r)return n+m;if((h/=r/2)<1)return m/2*Math.pow(2,10*(h-1))+n;return m/2*(-Math.pow(2,-10*--h)+2)+n},easeInCirc:function(q,h,n,m,r){return-m*(Math.sqrt(1-(h/=r)*h)-1)+n},easeOutCirc:function(q,h,n,m,r){return m*Math.sqrt(1-(h=h/r-1)*h)+n},easeInOutCirc:function(q,h,n,m,r){if((h/=r/2)<1)return-m/2*(Math.sqrt(1-h*h)-1)+n;return m/2*(Math.sqrt(1-(h-=2)*
h)+1)+n},easeInElastic:function(q,h,n,m,r){var x=0,d=m;if(h==0)return n;if((h/=r)==1)return n+m;x||(x=r*0.3);if(d<Math.abs(m)){d=m;q=x/4}else q=x/(2*Math.PI)*Math.asin(m/d);return-(d*Math.pow(2,10*(h-=1))*Math.sin((h*r-q)*2*Math.PI/x))+n},easeOutElastic:function(q,h,n,m,r){var x=0,d=m;if(h==0)return n;if((h/=r)==1)return n+m;x||(x=r*0.3);if(d<Math.abs(m)){d=m;q=x/4}else q=x/(2*Math.PI)*Math.asin(m/d);return d*Math.pow(2,-10*h)*Math.sin((h*r-q)*2*Math.PI/x)+m+n},easeInOutElastic:function(q,h,n,m,r){var x=
0,d=m;if(h==0)return n;if((h/=r/2)==2)return n+m;x||(x=r*0.3*1.5);if(d<Math.abs(m)){d=m;q=x/4}else q=x/(2*Math.PI)*Math.asin(m/d);if(h<1)return-0.5*d*Math.pow(2,10*(h-=1))*Math.sin((h*r-q)*2*Math.PI/x)+n;return d*Math.pow(2,-10*(h-=1))*Math.sin((h*r-q)*2*Math.PI/x)*0.5+m+n},easeInBack:function(q,h,n,m,r,x){if(x==undefined)x=1.70158;return m*(h/=r)*h*((x+1)*h-x)+n},easeOutBack:function(q,h,n,m,r,x){if(x==undefined)x=1.70158;return m*((h=h/r-1)*h*((x+1)*h+x)+1)+n},easeInOutBack:function(q,h,n,m,r,x){if(x==
undefined)x=1.70158;if((h/=r/2)<1)return m/2*h*h*(((x*=1.525)+1)*h-x)+n;return m/2*((h-=2)*h*(((x*=1.525)+1)*h+x)+2)+n},easeInBounce:function(q,h,n,m,r){return m-b.easing.easeOutBounce(q,r-h,0,m,r)+n},easeOutBounce:function(q,h,n,m,r){return(h/=r)<1/2.75?m*7.5625*h*h+n:h<2/2.75?m*(7.5625*(h-=1.5/2.75)*h+0.75)+n:h<2.5/2.75?m*(7.5625*(h-=2.25/2.75)*h+0.9375)+n:m*(7.5625*(h-=2.625/2.75)*h+0.984375)+n},easeInOutBounce:function(q,h,n,m,r){if(h<r/2)return b.easing.easeInBounce(q,h*2,0,m,r)*0.5+n;return b.easing.easeOutBounce(q,
h*2-r,0,m,r)*0.5+m*0.5+n}})}(jQuery);
// /includes/jquery.cookie.js
jQuery.cookie=function(b,c,f){if(typeof c!="undefined"){f=f||{};if(c===null){c="";f.expires=-1}var l="";if(f.expires&&(typeof f.expires=="number"||f.expires.toUTCString)){if(typeof f.expires=="number"){l=new Date;l.setTime(l.getTime()+f.expires*24*60*60*1E3)}else l=f.expires;l="; expires="+l.toUTCString()}var p=f.path?"; path="+f.path:"",t=f.domain?"; domain="+f.domain:"";f=f.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(c),l,p,t,f].join("")}else{c=null;if(document.cookie&&document.cookie!=
""){f=document.cookie.split(";");for(l=0;l<f.length;l++){p=jQuery.trim(f[l]);if(p.substring(0,b.length+1)==b+"="){c=decodeURIComponent(p.substring(b.length+1));break}}}return c}};
// /includes/jquery.easing.1.3-min.js
jQuery.easing.jswing=jQuery.easing.swing;
jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(b,c,f,l,p){return jQuery.easing[jQuery.easing.def](b,c,f,l,p)},easeInQuad:function(b,c,f,l,p){return l*(c/=p)*c+f},easeOutQuad:function(b,c,f,l,p){return-l*(c/=p)*(c-2)+f},easeInOutQuad:function(b,c,f,l,p){if((c/=p/2)<1)return l/2*c*c+f;return-l/2*(--c*(c-2)-1)+f},easeInCubic:function(b,c,f,l,p){return l*(c/=p)*c*c+f},easeOutCubic:function(b,c,f,l,p){return l*((c=c/p-1)*c*c+1)+f},easeInOutCubic:function(b,c,f,l,p){if((c/=p/2)<1)return l/
2*c*c*c+f;return l/2*((c-=2)*c*c+2)+f},easeInQuart:function(b,c,f,l,p){return l*(c/=p)*c*c*c+f},easeOutQuart:function(b,c,f,l,p){return-l*((c=c/p-1)*c*c*c-1)+f},easeInOutQuart:function(b,c,f,l,p){if((c/=p/2)<1)return l/2*c*c*c*c+f;return-l/2*((c-=2)*c*c*c-2)+f},easeInQuint:function(b,c,f,l,p){return l*(c/=p)*c*c*c*c+f},easeOutQuint:function(b,c,f,l,p){return l*((c=c/p-1)*c*c*c*c+1)+f},easeInOutQuint:function(b,c,f,l,p){if((c/=p/2)<1)return l/2*c*c*c*c*c+f;return l/2*((c-=2)*c*c*c*c+2)+f},easeInSine:function(b,
c,f,l,p){return-l*Math.cos(c/p*(Math.PI/2))+l+f},easeOutSine:function(b,c,f,l,p){return l*Math.sin(c/p*(Math.PI/2))+f},easeInOutSine:function(b,c,f,l,p){return-l/2*(Math.cos(Math.PI*c/p)-1)+f},easeInExpo:function(b,c,f,l,p){return c==0?f:l*Math.pow(2,10*(c/p-1))+f},easeOutExpo:function(b,c,f,l,p){return c==p?f+l:l*(-Math.pow(2,-10*c/p)+1)+f},easeInOutExpo:function(b,c,f,l,p){if(c==0)return f;if(c==p)return f+l;if((c/=p/2)<1)return l/2*Math.pow(2,10*(c-1))+f;return l/2*(-Math.pow(2,-10*--c)+2)+f},
easeInCirc:function(b,c,f,l,p){return-l*(Math.sqrt(1-(c/=p)*c)-1)+f},easeOutCirc:function(b,c,f,l,p){return l*Math.sqrt(1-(c=c/p-1)*c)+f},easeInOutCirc:function(b,c,f,l,p){if((c/=p/2)<1)return-l/2*(Math.sqrt(1-c*c)-1)+f;return l/2*(Math.sqrt(1-(c-=2)*c)+1)+f},easeInElastic:function(b,c,f,l,p){b=1.70158;var t=0,v=l;if(c==0)return f;if((c/=p)==1)return f+l;t||(t=p*0.3);if(v<Math.abs(l)){v=l;b=t/4}else b=t/(2*Math.PI)*Math.asin(l/v);return-(v*Math.pow(2,10*(c-=1))*Math.sin((c*p-b)*2*Math.PI/t))+f},easeOutElastic:function(b,
c,f,l,p){b=1.70158;var t=0,v=l;if(c==0)return f;if((c/=p)==1)return f+l;t||(t=p*0.3);if(v<Math.abs(l)){v=l;b=t/4}else b=t/(2*Math.PI)*Math.asin(l/v);return v*Math.pow(2,-10*c)*Math.sin((c*p-b)*2*Math.PI/t)+l+f},easeInOutElastic:function(b,c,f,l,p){b=1.70158;var t=0,v=l;if(c==0)return f;if((c/=p/2)==2)return f+l;t||(t=p*0.3*1.5);if(v<Math.abs(l)){v=l;b=t/4}else b=t/(2*Math.PI)*Math.asin(l/v);if(c<1)return-0.5*v*Math.pow(2,10*(c-=1))*Math.sin((c*p-b)*2*Math.PI/t)+f;return v*Math.pow(2,-10*(c-=1))*Math.sin((c*
p-b)*2*Math.PI/t)*0.5+l+f},easeInBack:function(b,c,f,l,p,t){if(t==undefined)t=1.70158;return l*(c/=p)*c*((t+1)*c-t)+f},easeOutBack:function(b,c,f,l,p,t){if(t==undefined)t=1.70158;return l*((c=c/p-1)*c*((t+1)*c+t)+1)+f},easeInOutBack:function(b,c,f,l,p,t){if(t==undefined)t=1.70158;if((c/=p/2)<1)return l/2*c*c*(((t*=1.525)+1)*c-t)+f;return l/2*((c-=2)*c*(((t*=1.525)+1)*c+t)+2)+f},easeInBounce:function(b,c,f,l,p){return l-jQuery.easing.easeOutBounce(b,p-c,0,l,p)+f},easeOutBounce:function(b,c,f,l,p){return(c/=
p)<1/2.75?l*7.5625*c*c+f:c<2/2.75?l*(7.5625*(c-=1.5/2.75)*c+0.75)+f:c<2.5/2.75?l*(7.5625*(c-=2.25/2.75)*c+0.9375)+f:l*(7.5625*(c-=2.625/2.75)*c+0.984375)+f},easeInOutBounce:function(b,c,f,l,p){if(c<p/2)return jQuery.easing.easeInBounce(b,c*2,0,l,p)*0.5+f;return jQuery.easing.easeOutBounce(b,c*2-p,0,l,p)*0.5+l*0.5+f}});
// /includes/jquery.scrollfollow-min.js
(function(b){b.scrollFollow=function(c,f){function l(){c.queue([]);var t=parseInt(b(window).height()),v=parseInt(b(document).scrollTop()),J=parseInt(c.cont.offset().top),M=parseInt(c.cont.attr("offsetHeight")),q=parseInt(c.attr("offsetHeight")+(parseInt(c.css("marginTop"))||0)+(parseInt(c.css("marginBottom"))||0)),h;if(p){if(f.relativeTo=="top")h=c.initialOffsetTop>=v+f.offset?c.initialTop:Math.min(Math.max(-J,v-c.initialOffsetTop+c.initialTop)+f.offset,M-q-c.paddingAdjustment);else if(f.relativeTo==
"bottom")h=c.initialOffsetTop+q>=v+f.offset+t?c.initialTop:Math.min(v+t-q-f.offset,M-q);(new Date).getTime()-c.lastScroll>=f.delay-20&&c.animate({top:h},f.speed,f.easing)}}c=b(c);c.css("position");var p=true;if(b.cookie!=undefined)if(b.cookie("scrollFollowSetting"+c.attr("id"))=="false"){p=false;b("#"+f.killSwitch).text(f.offText).toggle(function(){p=true;b(this).text(f.onText);b.cookie("scrollFollowSetting"+c.attr("id"),true,{expires:365,path:"/"});l()},function(){p=false;b(this).text(f.offText);
c.animate({top:c.initialTop},f.speed,f.easing);b.cookie("scrollFollowSetting"+c.attr("id"),false,{expires:365,path:"/"})})}else b("#"+f.killSwitch).text(f.onText).toggle(function(){p=false;b(this).text(f.offText);c.animate({top:c.initialTop},0);b.cookie("scrollFollowSetting"+c.attr("id"),false,{expires:365,path:"/"})},function(){p=true;b(this).text(f.onText);b.cookie("scrollFollowSetting"+c.attr("id"),true,{expires:365,path:"/"});l()});c.cont=f.container==""?c.parent():b("#"+f.container);c.initialOffsetTop=
parseInt(c.offset().top);c.initialTop=parseInt(c.css("top"))||0;c.paddingAdjustment=c.css("position")=="relative"?parseInt(c.cont.css("paddingTop"))+parseInt(c.cont.css("paddingBottom")):0;b(window).scroll(function(){b.fn.scrollFollow.interval=setTimeout(function(){l()},f.delay);c.lastScroll=(new Date).getTime()});b(window).resize(function(){b.fn.scrollFollow.interval=setTimeout(function(){l()},f.delay);c.lastScroll=(new Date).getTime()});c.lastScroll=0;l()};b.fn.scrollFollow=function(c){c=c||{};
c.relativeTo=c.relativeTo||"top";c.speed=c.speed||500;c.offset=c.offset||0;c.easing=c.easing||"swing";c.container=c.container||this.parent().attr("id");c.killSwitch=c.killSwitch||"killSwitch";c.onText=c.onText||"Turn Slide Off";c.offText=c.offText||"Turn Slide On";c.delay=c.delay||0;this.each(function(){new b.scrollFollow(this,c)});return this}})(jQuery);
// /includes/jquery.autocomplete.js
(function(b){b.fn.extend({autocomplete:function(c,f){var l=typeof c=="string";f=b.extend({},b.Autocompleter.defaults,{url:l?c:null,data:l?null:c,delay:l?b.Autocompleter.defaults.delay:10,max:f&&!f.scroll?10:150},f);f.highlight=f.highlight||function(p){return p};f.formatMatch=f.formatMatch||f.formatItem;return this.each(function(){new b.Autocompleter(this,f)})},result:function(c){return this.bind("result",c)},search:function(c){return this.trigger("search",[c])},flushCache:function(){return this.trigger("flushCache")},
setOptions:function(c){return this.trigger("setOptions",[c])},unautocomplete:function(){return this.trigger("unautocomplete")}});b.Autocompleter=function(c,f){function l(){var G=E.selected();if(!G)return false;var P=G.result;x=P;if(f.multiple){var U=t(m.val());if(U.length>1){var da=f.multipleSeparator.length,fa=b(c).selection().start,aa,X=0;b.each(U,function(ca,L){X+=L.length;if(fa<=X){aa=ca;return false}X+=da});U[aa]=P;P=U.join(f.multipleSeparator)}P+=f.multipleSeparator}m.val(M(P));J();m.trigger("result",
[G.data,G.value]);return true}function p(G,P){if(O==n.DEL)E.hide();else{var U=m.val();if(!(!P&&U==x)){x=U;U=v(U);if(U.length>=f.minChars){m.addClass(f.loadingClass);f.matchCase||(U=U.toLowerCase());h(U,q,J)}else{m.removeClass(f.loadingClass);E.hide()}}}}function t(G){if(!G)return[""];if(!f.multiple)return[b.trim(G)];return b.map(G.split(f.multipleSeparator),function(P){return b.trim(G).length?b.trim(P):null})}function v(G){if(!f.multiple)return G;var P=t(G);if(P.length==1)return P[0];P=b(c).selection().start;
P=P==G.length?t(G):t(G.replace(G.substring(P),""));return P[P.length-1]}function J(){E.visible();E.hide();clearTimeout(r);m.removeClass(f.loadingClass);f.mustMatch&&m.search(function(G){if(!G)if(f.multiple){G=t(m.val()).slice(0,-1);m.val(G.join(f.multipleSeparator)+(G.length?f.multipleSeparator:""))}else{m.val("");m.trigger("result",null)}})}function M(G){var P=document.createElement("div");P.innerHTML=G;G=P.childNodes[0].nodeValue;P.removeChild(P.firstChild);return G}function q(G,P){if(P&&P.length&&
z){m.removeClass(f.loadingClass);E.display(P,G);var U=P[0].value;if(f.autoFill&&v(m.val()).toLowerCase()==G.toLowerCase()&&O!=n.BACKSPACE){m.val(m.val()+U.substring(v(x).length));b(c).selection(x.length,x.length+U.length)}E.show()}else J()}function h(G,P,U){f.matchCase||(G=G.toLowerCase());var da=d.load(G);if(da&&da.length)P(G,da);else if(typeof f.url=="string"&&f.url.length>0){var fa={timestamp:+new Date};b.each(f.extraParams,function(aa,X){fa[aa]=typeof X=="function"?X():X});b.ajax({mode:"abort",
port:"autocomplete"+c.name,dataType:f.dataType,url:f.url,data:b.extend({q:v(G),limit:f.max},fa),success:function(aa){var X;if(!(X=f.parse&&f.parse(aa))){X=[];aa=aa.split("\n");for(var ca=0;ca<aa.length;ca++){var L=b.trim(aa[ca]);if(L){L=L.split("|");X[X.length]={data:L,value:L[0],result:f.formatResult&&f.formatResult(L,L[0])||L[0]}}}X=X}X=X;d.add(G,X);P(G,X)}})}else{E.emptyList();U(G)}}var n={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8},m=b(c).attr("autocomplete",
"off").addClass(f.inputClass),r,x="",d=b.Autocompleter.Cache(f),z=0,O,F={mouseDownOnSelect:false},E=b.Autocompleter.Select(f,c,l,F),H;b.browser.opera&&b(c.form).bind("submit.autocomplete",function(){if(H)return H=false});m.bind((b.browser.opera?"keypress":"keydown")+".autocomplete",function(G){z=1;O=G.keyCode;switch(G.keyCode){case n.UP:G.preventDefault();E.visible()?E.prev():p(0,true);break;case n.DOWN:G.preventDefault();E.visible()?E.next():p(0,true);break;case n.PAGEUP:G.preventDefault();E.visible()?
E.pageUp():p(0,true);break;case n.PAGEDOWN:G.preventDefault();E.visible()?E.pageDown():p(0,true);break;case f.multiple&&b.trim(f.multipleSeparator)==","&&n.COMMA:case n.TAB:case n.RETURN:if(l()){G.preventDefault();H=true;return false}break;case n.ESC:E.hide();break;default:clearTimeout(r);r=setTimeout(p,f.delay);break}}).focus(function(){z++}).blur(function(){z=0;if(!F.mouseDownOnSelect){clearTimeout(r);r=setTimeout(J,200)}}).click(function(){z++>1&&!E.visible()&&p(0,true)}).bind("search",function(){function G(U,
da){var fa;if(da&&da.length)for(var aa=0;aa<da.length;aa++)if(da[aa].result.toLowerCase()==U.toLowerCase()){fa=da[aa];break}typeof P=="function"?P(fa):m.trigger("result",fa&&[fa.data,fa.value])}var P=arguments.length>1?arguments[1]:null;b.each(t(m.val()),function(U,da){h(da,G,G)})}).bind("flushCache",function(){d.flush()}).bind("setOptions",function(G,P){b.extend(f,P);"data"in P&&d.populate()}).bind("unautocomplete",function(){E.unbind();m.unbind();b(c.form).unbind(".autocomplete")})};b.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(c){return c[0]},formatMatch:null,autoFill:false,width:0,multiple:false,multipleSeparator:", ",highlight:function(c,f){return c.replace(RegExp("(?![^&;]+;)(?!<[^<>]*)("+f.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>")},
scroll:true,scrollHeight:180};b.Autocompleter.Cache=function(c){function f(M,q){c.matchCase||(M=M.toLowerCase());var h=M.indexOf(q);if(c.matchContains=="word")h=M.toLowerCase().search("\\b"+q.toLowerCase());if(h==-1)return false;return h==0||c.matchContains}function l(M,q){J>c.cacheLength&&t();v[M]||J++;v[M]=q}function p(){if(!c.data)return false;var M={},q=0;if(!c.url)c.cacheLength=1;M[""]=[];for(var h=0,n=c.data.length;h<n;h++){var m=c.data[h];m=typeof m=="string"?[m]:m;var r=c.formatMatch(m,h+
1,c.data.length);if(r!==false){var x=r.charAt(0).toLowerCase();M[x]||(M[x]=[]);m={value:r,data:m,result:c.formatResult&&c.formatResult(m)||r};M[x].push(m);q++<c.max&&M[""].push(m)}}b.each(M,function(d,z){c.cacheLength++;l(d,z)})}function t(){v={};J=0}var v={},J=0;setTimeout(p,25);return{flush:t,add:l,populate:p,load:function(M){if(!c.cacheLength||!J)return null;if(!c.url&&c.matchContains){var q=[];for(var h in v)if(h.length>0){var n=v[h];b.each(n,function(m,r){f(r.value,M)&&q.push(r)})}return q}else if(v[M])return v[M];
else if(c.matchSubset)for(h=M.length-1;h>=c.minChars;h--)if(n=v[M.substr(0,h)]){q=[];b.each(n,function(m,r){if(f(r.value,M))q[q.length]=r});return q}return null}}};b.Autocompleter.Select=function(c,f,l,p){function t(){if(r){x=b("<div/>").hide().addClass(c.resultsClass).css("position","absolute").appendTo(document.body);d=b("<ul/>").appendTo(x).mouseover(function(z){if(v(z).nodeName&&v(z).nodeName.toUpperCase()=="LI")if(!(b(v(z)).html().toLowerCase().indexOf("<h3>")>-1)){h=b("li",d).removeClass(M.ACTIVE).index(v(z));
b(v(z)).addClass(M.ACTIVE)}}).click(function(z){if(!(b(v(z)).html().toLowerCase().indexOf("<h3>")>-1)){b(v(z)).addClass(M.ACTIVE);l();f.focus()}return false}).mousedown(function(){p.mouseDownOnSelect=true}).mouseup(function(){p.mouseDownOnSelect=false});c.width>0&&x.css("width",c.width);r=false}}function v(z){for(z=z.target;z&&z.tagName!="LI";)z=z.parentNode;if(!z)return[];return z}function J(z){q.slice(h,h+1).removeClass(M.ACTIVE);h+=z;if(h<0)h=q.size()-1;else if(h>=q.size())h=0;z=q.slice(h,h+1).addClass(M.ACTIVE);
if(c.scroll){var O=0;q.slice(0,h).each(function(){O+=this.offsetHeight});if(O+z[0].offsetHeight-d.scrollTop()>d[0].clientHeight)d.scrollTop(O+z[0].offsetHeight-d.innerHeight());else O<d.scrollTop()&&d.scrollTop(O)}}var M={ACTIVE:"ac_over"},q,h=-1,n,m="",r=true,x,d;return{display:function(z,O){t();n=z;m=O;d.empty();for(var F=c.max&&c.max<n.length?c.max:n.length,E=0;E<F;E++)if(n[E]){var H=c.formatItem(n[E].data,E+1,F,n[E].value,m);if(H!==false){H=b("<li/>").html(c.highlight(H,m)).addClass(E%2==0?"ac_even":
"ac_odd").appendTo(d)[0];b.data(H,"ac_data",n[E])}}q=d.find("li");if(c.selectFirst){q.slice(0,1).addClass(M.ACTIVE);h=0}b.fn.bgiframe&&d.bgiframe()},next:function(){J(1)},prev:function(){J(-1)},pageUp:function(){h!=0&&h-8<0?J(-h):J(-8)},pageDown:function(){h!=q.size()-1&&h+8>q.size()?J(q.size()-1-h):J(8)},hide:function(){x&&x.hide();q&&q.removeClass(M.ACTIVE);h=-1},visible:function(){return x&&x.is(":visible")},current:function(){return this.visible()&&(q.filter("."+M.ACTIVE)[0]||c.selectFirst&&q[0])},
show:function(){var z=b(f).offset();x.css({width:typeof c.width=="string"||c.width>0?c.width:b(f).width(),top:z.top+f.offsetHeight,left:z.left}).show();if(c.scroll){d.scrollTop(0);d.css({maxHeight:c.scrollHeight,overflow:"auto"});if(b.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var O=0;q.each(function(){O+=this.offsetHeight});z=O>c.scrollHeight;d.css("height",z?c.scrollHeight:O);z||q.width(d.width()-parseInt(q.css("padding-left"))-parseInt(q.css("padding-right")))}}},selected:function(){var z=
q&&q.filter("."+M.ACTIVE).removeClass(M.ACTIVE);return z&&z.length&&b.data(z[0],"ac_data")},emptyList:function(){d&&d.empty()},unbind:function(){x&&x.remove()}}};b.fn.selection=function(c,f){if(c!==undefined)return this.each(function(){if(this.createTextRange){var J=this.createTextRange();if(f===undefined||c==f)J.move("character",c);else{J.collapse(true);J.moveStart("character",c);J.moveEnd("character",f)}J.select()}else if(this.setSelectionRange)this.setSelectionRange(c,f);else if(this.selectionStart){this.selectionStart=
c;this.selectionEnd=f}});var l=this[0];if(l.createTextRange){var p=document.selection.createRange(),t=l.value,v=p.text.length;p.text="<->";p=l.value.indexOf("<->");l.value=t;this.selection(p,p+v);return{start:p,end:p+v}}else if(l.selectionStart!==undefined)return{start:l.selectionStart,end:l.selectionEnd}}})(jQuery);
// /includes/jquery.tablednd_0_5.js
jQuery.tableDnD={currentTable:null,dragObject:null,mouseOffset:null,oldY:0,build:function(b){this.each(function(){this.tableDnDConfig=jQuery.extend({onDragStyle:null,onDropStyle:null,onDragClass:"tDnD_whileDrag",onDrop:null,onDragStart:null,scrollAmount:5,serializeRegexp:/[^\-]*$/,serializeParamName:null,dragHandle:null},b||{});jQuery.tableDnD.makeDraggable(this)});jQuery(document).bind("mousemove",jQuery.tableDnD.mousemove).bind("mouseup",jQuery.tableDnD.mouseup);return this},makeDraggable:function(b){var c=
b.tableDnDConfig;b.tableDnDConfig.dragHandle?jQuery("td."+b.tableDnDConfig.dragHandle,b).each(function(){jQuery(this).mousedown(function(f){jQuery.tableDnD.dragObject=this.parentNode;jQuery.tableDnD.currentTable=b;jQuery.tableDnD.mouseOffset=jQuery.tableDnD.getMouseOffset(this,f);c.onDragStart&&c.onDragStart(b,this);return false})}):jQuery("tr",b).each(function(){var f=jQuery(this);f.hasClass("nodrag")||f.mousedown(function(l){if(l.target.tagName=="TD"){jQuery.tableDnD.dragObject=this;jQuery.tableDnD.currentTable=
b;jQuery.tableDnD.mouseOffset=jQuery.tableDnD.getMouseOffset(this,l);c.onDragStart&&c.onDragStart(b,this);return false}}).css("cursor","move")})},updateTables:function(){this.each(function(){this.tableDnDConfig&&jQuery.tableDnD.makeDraggable(this)})},mouseCoords:function(b){if(b.pageX||b.pageY)return{x:b.pageX,y:b.pageY};return{x:b.clientX+document.body.scrollLeft-document.body.clientLeft,y:b.clientY+document.body.scrollTop-document.body.clientTop}},getMouseOffset:function(b,c){c=c||window.event;
var f=this.getPosition(b),l=this.mouseCoords(c);return{x:l.x-f.x,y:l.y-f.y}},getPosition:function(b){var c=0,f=0;if(b.offsetHeight==0)b=b.firstChild;for(;b.offsetParent;){c+=b.offsetLeft;f+=b.offsetTop;b=b.offsetParent}c+=b.offsetLeft;f+=b.offsetTop;return{x:c,y:f}},mousemove:function(b){if(jQuery.tableDnD.dragObject!=null){var c=jQuery(jQuery.tableDnD.dragObject),f=jQuery.tableDnD.currentTable.tableDnDConfig,l=jQuery.tableDnD.mouseCoords(b);b=l.y-jQuery.tableDnD.mouseOffset.y;var p=window.pageYOffset;
if(document.all)if(typeof document.compatMode!="undefined"&&document.compatMode!="BackCompat")p=document.documentElement.scrollTop;else if(typeof document.body!="undefined")p=document.body.scrollTop;if(l.y-p<f.scrollAmount)window.scrollBy(0,-f.scrollAmount);else(window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight)-(l.y-p)<f.scrollAmount&&window.scrollBy(0,f.scrollAmount);if(b!=jQuery.tableDnD.oldY){l=b>jQuery.tableDnD.oldY;
jQuery.tableDnD.oldY=b;f.onDragClass?c.addClass(f.onDragClass):c.css(f.onDragStyle);if(c=jQuery.tableDnD.findDropTargetRow(c,b))if(l&&jQuery.tableDnD.dragObject!=c)jQuery.tableDnD.dragObject.parentNode.insertBefore(jQuery.tableDnD.dragObject,c.nextSibling);else!l&&jQuery.tableDnD.dragObject!=c&&jQuery.tableDnD.dragObject.parentNode.insertBefore(jQuery.tableDnD.dragObject,c)}return false}},findDropTargetRow:function(b,c){for(var f=jQuery.tableDnD.currentTable.rows,l=0;l<f.length;l++){var p=f[l],t=
this.getPosition(p).y,v=parseInt(p.offsetHeight)/2;if(p.offsetHeight==0){t=this.getPosition(p.firstChild).y;v=parseInt(p.firstChild.offsetHeight)/2}if(c>t-v&&c<t+v){if(p==b)return null;f=jQuery.tableDnD.currentTable.tableDnDConfig;return f.onAllowDrop?f.onAllowDrop(b,p)?p:null:jQuery(p).hasClass("nodrop")?null:p}}return null},mouseup:function(){if(jQuery.tableDnD.currentTable&&jQuery.tableDnD.dragObject){var b=jQuery.tableDnD.dragObject,c=jQuery.tableDnD.currentTable.tableDnDConfig;c.onDragClass?
jQuery(b).removeClass(c.onDragClass):jQuery(b).css(c.onDropStyle);jQuery.tableDnD.dragObject=null;c.onDrop&&c.onDrop(jQuery.tableDnD.currentTable,b);jQuery.tableDnD.currentTable=null}},serialize:function(){return jQuery.tableDnD.currentTable?jQuery.tableDnD.serializeTable(jQuery.tableDnD.currentTable):"Error: No Table id set, you need to set an id on your table and every row"},serializeTable:function(b){for(var c="",f=b.id,l=b.rows,p=0;p<l.length;p++){if(c.length>0)c+="&";var t=l[p].id;if(t&&t&&b.tableDnDConfig&&
b.tableDnDConfig.serializeRegexp)t=t.match(b.tableDnDConfig.serializeRegexp)[0];c+=f+"[]="+t}return c},serializeTables:function(){var b="";this.each(function(){b+=jQuery.tableDnD.serializeTable(this)});return b}};jQuery.fn.extend({tableDnD:jQuery.tableDnD.build,tableDnDUpdate:jQuery.tableDnD.updateTables,tableDnDSerialize:jQuery.tableDnD.serializeTables});
// /includes/jquery.boxy-min.js
jQuery.fn.boxy=function(b){b=b||{};return this.each(function(){var c=this.nodeName.toLowerCase(),f=this;if(c=="a")jQuery(this).click(function(){var l=Boxy.linkedTo(this),p=this.getAttribute("href"),t=jQuery.extend({actuator:this,title:this.title},b);if(l)l.show();else if(p.indexOf("#")>=0){l=jQuery(p.substr(p.indexOf("#")));p=l.clone(true);l.remove();t.unloadOnHide=false;new Boxy(p,t)}else{if(!t.cache)t.unloadOnHide=true;Boxy.load(this.href,t)}return false});else c=="form"&&jQuery(this).bind("submit.boxy",
function(){Boxy.confirm(b.message||"Please confirm:",function(){jQuery(f).unbind("submit.boxy").submit()});return false})})};
function Boxy(b,c){this.boxy=jQuery(Boxy.WRAPPER);jQuery.data(this.boxy[0],"boxy",this);this.visible=false;this.options=jQuery.extend({},Boxy.DEFAULTS,c||{});if(this.options.modal)this.options=jQuery.extend(this.options,{center:true,draggable:false});this.options.actuator&&jQuery.data(this.options.actuator,"active.boxy",this);this.setContent(b||"<div></div>");this._setupTitleBar();this.boxy.css("display","none").appendTo(document.body);this.toTop();if(this.options.fixed)if(jQuery.browser.msie&&jQuery.browser.version<
7)this.options.fixed=false;else this.boxy.addClass("fixed");this.options.center&&Boxy._u(this.options.x,this.options.y)?this.center():this.moveTo(Boxy._u(this.options.x)?this.options.x:Boxy.DEFAULT_X,Boxy._u(this.options.y)?this.options.y:Boxy.DEFAULT_Y);this.options.show&&this.show()}Boxy.EF=function(){};
jQuery.extend(Boxy,{WRAPPER:"<table cellspacing='0' cellpadding='0' border='0' class='boxy-wrapper'><tr><td class='top-left'></td><td class='top'></td><td class='top-right'></td></tr><tr><td class='left'></td><td class='boxy-inner'></td><td class='right'></td></tr><tr><td class='bottom-left'></td><td class='bottom'></td><td class='bottom-right'></td></tr></table>",DEFAULTS:{title:null,closeable:true,draggable:true,clone:false,actuator:null,center:true,show:true,modal:false,fixed:true,closeText:"[close]",
unloadOnHide:false,clickToFront:false,behaviours:Boxy.EF,afterDrop:Boxy.EF,afterShow:Boxy.EF,afterHide:Boxy.EF,beforeHide:Boxy.EF,beforeUnload:Boxy.EF},DEFAULT_X:50,DEFAULT_Y:50,zIndex:1337,dragConfigured:false,resizeConfigured:false,dragging:null,load:function(b,c){c=c||{};var f={url:b,type:"GET",dataType:"html",cache:false,success:function(l){l=jQuery(l);if(c.filter)l=jQuery(c.filter,l);new Boxy(l,c)}};jQuery.each(["type","cache"],function(){if(this in c){f[this]=c[this];delete c[this]}});jQuery.ajax(f)},
get:function(b){b=jQuery(b).parents(".boxy-wrapper");return b.length?jQuery.data(b[0],"boxy"):null},linkedTo:function(b){return jQuery.data(b,"active.boxy")},alert:function(b,c,f){return Boxy.ask(b,["OK"],c,f)},confirm:function(b,c,f){return Boxy.ask(b,["OK","Cancel"],function(l){l=="OK"&&c()},f)},ask:function(b,c,f,l){l=jQuery.extend({modal:true,closeable:false},l||{},{show:true,unloadOnHide:true});b=jQuery("<div></div>").append(jQuery('<div class="question"></div>').html(b));var p={},t=[];if(c instanceof
Array)for(var v=0;v<c.length;v++){p[c[v]]=c[v];t.push(c[v])}else for(v in c){p[c[v]]=v;t.push(c[v])}c=jQuery('<form class="answers"></form>');c.html(jQuery.map(t,function(J){return"<input type='button' value='"+J+"' class='btnAnswer' />"}).join(" "));jQuery("input[type=button]",c).click(function(){var J=this;Boxy.get(this).hide(function(){f&&f(p[J.value])})});b.append(c);new Boxy(b,l)},isModalVisible:function(){return jQuery(".boxy-modal-blackout").length>0},_u:function(){for(var b=0;b<arguments.length;b++)if(typeof arguments[b]!=
"undefined")return false;return true},_handleResize:function(){var b=jQuery(document);jQuery(".boxy-modal-blackout").css("display","none").css({width:b.width(),height:b.height()}).css("display","block")},_handleDrag:function(b){var c;if(c=Boxy.dragging)c[0].boxy.css({left:b.pageX-c[1],top:b.pageY-c[2]})},_nextZ:function(){return Boxy.zIndex++},_viewport:function(){var b=document.documentElement,c=document.body,f=window;return jQuery.extend(jQuery.browser.msie?{left:c.scrollLeft||b.scrollLeft,top:c.scrollTop||
b.scrollTop}:{left:f.pageXOffset,top:f.pageYOffset},!Boxy._u(f.innerWidth)?{width:f.innerWidth,height:f.innerHeight}:!Boxy._u(b)&&!Boxy._u(b.clientWidth)&&b.clientWidth!=0?{width:b.clientWidth,height:b.clientHeight}:{width:c.clientWidth,height:c.clientHeight})}});
Boxy.prototype={estimateSize:function(){this.boxy.css({visibility:"hidden",display:"block"});var b=this.getSize();this.boxy.css("display","none").css("visibility","visible");return b},getSize:function(){return[this.boxy.width(),this.boxy.height()]},getContentSize:function(){var b=this.getContent();return[b.width(),b.height()]},getPosition:function(){var b=this.boxy[0];return[b.offsetLeft,b.offsetTop]},getCenter:function(){var b=this.getPosition(),c=this.getSize();return[Math.floor(b[0]+c[0]/2),Math.floor(b[1]+
c[1]/2)]},getInner:function(){return jQuery(".boxy-inner",this.boxy)},getContent:function(){return jQuery(".boxy-content",this.boxy)},setContent:function(b){b=jQuery(b).css({display:"block"}).addClass("boxy-content");if(this.options.clone)b=b.clone(true);this.getContent().remove();this.getInner().append(b);this._setupDefaultBehaviours(b);this.options.behaviours.call(this,b);return this},moveTo:function(b,c){this.moveToX(b).moveToY(c);return this},moveToX:function(b){typeof b=="number"?this.boxy.css({left:b}):
this.centerX();return this},moveToY:function(b){typeof b=="number"?this.boxy.css({top:b}):this.centerY();return this},centerAt:function(b,c){var f=this[this.visible?"getSize":"estimateSize"]();typeof b=="number"&&this.moveToX(b-f[0]/2);typeof c=="number"&&this.moveToY(c-f[1]/2);return this},centerAtX:function(b){return this.centerAt(b,null)},centerAtY:function(b){return this.centerAt(null,b)},center:function(b){var c=Boxy._viewport(),f=this.options.fixed?[0,0]:[c.left,c.top];if(!b||b=="x")this.centerAt(f[0]+
c.width/2,null);if(!b||b=="y")this.centerAt(null,f[1]+c.height/2);return this},centerX:function(){return this.center("x")},centerY:function(){return this.center("y")},resize:function(b,c,f){if(this.visible){b=this._getBoundsForResize(b,c);this.boxy.css({left:b[0],top:b[1]});this.getContent().css({width:b[2],height:b[3]});f&&f(this);return this}},tween:function(b,c,f){if(this.visible){b=this._getBoundsForResize(b,c);var l=this;this.boxy.stop().animate({left:b[0],top:b[1]});this.getContent().stop().animate({width:b[2],
height:b[3]},function(){f&&f(l)});return this}},isVisible:function(){return this.visible},show:function(){if(!this.visible){if(this.options.modal){var b=this;if(!Boxy.resizeConfigured){Boxy.resizeConfigured=true;jQuery(window).resize(function(){Boxy._handleResize()})}this.modalBlackout=jQuery('<div class="boxy-modal-blackout"></div>').css({zIndex:Boxy._nextZ(),opacity:0.7,width:jQuery(document).width(),height:jQuery(document).height()}).appendTo(document.body);this.toTop();this.options.closeable&&
jQuery(document.body).bind("keypress.boxy",function(c){if((c.which||c.keyCode)==27){b.hide();jQuery(document.body).unbind("keypress.boxy")}})}this.boxy.stop().css({opacity:1}).show();this.visible=true;this._fire("afterShow");return this}},hide:function(b){if(this.visible){var c=this;c._fire("beforeHide");if(this.options.modal){jQuery(document.body).unbind("keypress.boxy");this.modalBlackout.animate({opacity:0},function(){jQuery(this).remove()})}this.boxy.stop().animate({opacity:0},300,function(){c.boxy.css({display:"none"});
c.visible=false;c._fire("afterHide");b&&b(c);c.options.unloadOnHide&&c.unload()});return this}},toggle:function(){this[this.visible?"hide":"show"]();return this},hideAndUnload:function(b){this.options.unloadOnHide=true;this.hide(b);return this},unload:function(){this._fire("beforeUnload");this.boxy.remove();this.options.actuator&&jQuery.data(this.options.actuator,"active.boxy",false)},toTop:function(){this.boxy.css({zIndex:Boxy._nextZ()});return this},getTitle:function(){return jQuery("> .title-bar h2",
this.getInner()).html()},setTitle:function(b){jQuery("> .title-bar h2",this.getInner()).html(b);return this},_getBoundsForResize:function(b,c){var f=this.getContentSize();f=[b-f[0],c-f[1]];var l=this.getPosition();return[Math.max(l[0]-f[0]/2,0),Math.max(l[1]-f[1]/2,0),b,c]},_setupTitleBar:function(){if(this.options.title){var b=this,c=jQuery("<div class='title-bar'></div>").html("<h2>"+this.options.title+"</h2>");this.options.closeable&&c.append(jQuery("<a href='#' class='close'></a>").html(this.options.closeText));
if(this.options.draggable){c[0].onselectstart=function(){return false};c[0].unselectable="on";c[0].style.MozUserSelect="none";if(!Boxy.dragConfigured){jQuery(document).mousemove(Boxy._handleDrag);Boxy.dragConfigured=true}c.mousedown(function(f){b.toTop();Boxy.dragging=[b,f.pageX-b.boxy[0].offsetLeft,f.pageY-b.boxy[0].offsetTop];jQuery(this).addClass("dragging")}).mouseup(function(){jQuery(this).removeClass("dragging");Boxy.dragging=null;b._fire("afterDrop")})}this.getInner().prepend(c);this._setupDefaultBehaviours(c)}},
_setupDefaultBehaviours:function(b){var c=this;this.options.clickToFront&&b.click(function(){c.toTop()});jQuery(".close",b).click(function(){c.hide();return false}).mousedown(function(f){f.stopPropagation()})},_fire:function(b){this.options[b].call(this)}};
// /includes/jquery.swfobject.1-0-9.min.js
(function(b,c){var f=function(t){var v,J,M=[],q;if(typeof t=="object"){for(v in t){if(typeof t[v]=="object"){q=[];for(J in t[v])q.push([J,"=",encodeURIComponent(t[v][J])][p](""));t[v]=q[p]("&amp;")}t[v]&&M.push(['<param name="',v,'" value="',t[v],'" />'][p](""))}t=M[p]("")}return t},l=false,p="join";b[c]=function(){try{var t="0,0,0",v=navigator.plugins["Shockwave Flash"]||ActiveXObject,J;if(!(J=v.description))a:{try{J=(new v("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version");break a}catch(M){}J=
void 0}t=J}catch(q){}t=t.match(/^[A-Za-z\s]*?(\d+)[\.|,](\d+)(?:\s+[d|r]|,)(\d+)/);return{available:t[1]>0,activeX:v&&!v.name,version:{major:t[1]*1,minor:t[2]*1,release:t[3]*1},hasVersion:function(h){var n=this.version;h=/string|number/.test(typeof h)?h.toString().split("."):h||[0,0,0];h=[h.major||h[0]||n.major,h.minor||h[1]||n.minor,h.release||h[2]||n.release];return h[0]<n.major||h[0]==n.major&&h[1]<n.minor||h[0]==n.major&&h[1]==n.minor&&h[2]<=n.release},expressInstall:"expressInstall.swf",create:function(h){if(!b[c].available||
l||!typeof h=="object"||!h.swf)return false;if(h.hasVersion&&!b[c].hasVersion(h.hasVersion)){h={swf:h.expressInstall||b[c].expressInstall,attrs:{id:h.id||"SWFObjectExprInst",name:h.name,height:Math.max(h.height||137),width:Math.max(h.width||214)},params:{flashvars:{MMredirectURL:location.href,MMplayerType:b[c].activeX?"ActiveX":"PlugIn",MMdoctitle:document.title.slice(0,47)+" - Flash Player Installation"}}};l=true}else h=b.extend(true,{attrs:{id:h.id,name:h.name,height:h.height||180,width:h.width||
320},params:{wmode:h.wmode||"opaque",flashvars:h.flashvars}},h);if(b[c].activeX){h.attrs.classid=h.attrs.classid||"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";h.params.movie=h.params.movie||h.swf}else{h.attrs.type=h.attrs.classid||"application/x-shockwave-flash";h.attrs.data=h.attrs.data||h.swf}var n=h.attrs,m,r=[];for(m in n)/string|number/.test(typeof n[m])&&n[m]!==""&&r.push(m+'="'+n[m]+'"');return["<object ",r[p](""),">",f(h.params),"</object>"][p]("")}}}();b.fn[c]=function(t){if(typeof t=="object")this.each(function(){var v=
document.createElement(c),J=b[c].create(t);if(J){v.innerHTML=J;v.childNodes[0]&&this.appendChild(v.childNodes[0])}});else typeof t=="function"&&this.find("object").andSelf().filter("object").each(function(){var v=this;v.jsInteractionTimeoutMs=v.jsInteractionTimeoutMs||0;if(v.jsInteractionTimeoutMs<660)v.clientWidth||v.clientHeight?t.call(this):setTimeout(function(){b(v)[c](t)},v.jsInteractionTimeoutMs+66)});return this}})(jQuery,"flash");
// /includes/flowplayer-3.1.4.min.js
(function(){function b(m){if(!m||typeof m!="object")return m;var r=new m.constructor;for(var x in m)if(m.hasOwnProperty(x))r[x]=b(m[x]);return r}function c(m,r){if(m){var x,d=0,z=m.length;if(z===undefined)for(x in m){if(r.call(m[x],x,m[x])===false)break}else for(x=m[0];d<z&&r.call(x,d,x)!==false;x=m[++d]);return m}}function f(m,r,x){if(typeof r!="object")return m;m&&r&&c(r,function(d,z){if(!x||typeof z!="function")m[d]=z});return m}function l(m){var r=m.indexOf(".");if(r!=-1){var x=m.substring(0,
r)||"*",d=m.substring(r+1,m.length),z=[];c(document.getElementsByTagName(x),function(){this.className&&this.className.indexOf(d)!=-1&&z.push(this)});return z}}function p(m){m=m||window.event;if(m.preventDefault){m.stopPropagation();m.preventDefault()}else{m.returnValue=false;m.cancelBubble=true}return false}function t(m,r,x){m[r]=m[r]||[];m[r].push(x)}function v(){return"_"+(""+Math.random()).substring(2,10)}function J(m,r,x){function d(){function L(Q){!z.isLoaded()&&z._fireEvent("onBeforeClick")!==
false&&z.load();return p(Q)}if($f(m)){$f(m).getParent().innerHTML="";fa=$f(m).getIndex();n[fa]=z}else{n.push(z);fa=n.length-1}ca=parseInt(m.style.height,10)||m.clientHeight;if(typeof r=="string")r={src:r};U=m.id||"fp"+v();da=r.id||U+"_api";r.id=da;x.playerId=U;if(typeof x=="string")x={clip:{url:x}};if(typeof x.clip=="string")x.clip={url:x.clip};x.clip=x.clip||{};if(m.getAttribute("href",2)&&!x.clip.url)x.clip.url=m.getAttribute("href",2);E=new q(x.clip,-1,z);x.playlist=x.playlist||[x.clip];var V=
0;c(x.playlist,function(){var Q=this;if(typeof Q=="object"&&Q.length)Q={url:""+Q};c(x.clip,function(Y,ha){if(ha!==undefined&&Q[Y]===undefined&&typeof ha!="function")Q[Y]=ha});x.playlist[V]=Q;Q=new q(Q,V,z);H.push(Q);V++});c(x,function(Q,Y){if(typeof Y=="function"){E[Q]?E[Q](Y):t(P,Q,Y);delete x[Q]}});c(x.plugins,function(Q,Y){if(Y)G[Q]=new h(Q,Y,z)});if(!x.plugins||x.plugins.controls===undefined)G.controls=new h("controls",null,z);G.canvas=new h("canvas",null,z);r.bgcolor=r.bgcolor||"#000000";r.version=
r.version||[9,0];r.expressInstall="http://www.flowplayer.org/swf/expressinstall.swf";F=m.innerHTML;if(F.replace(/\s/g,"")!=="")if(m.addEventListener)m.addEventListener("click",L,false);else m.attachEvent&&m.attachEvent("onclick",L);else{m.addEventListener&&m.addEventListener("click",p,false);z.load()}}var z=this,O=null,F,E,H=[],G={},P={},U,da,fa,aa,X,ca;f(z,{id:function(){return U},isLoaded:function(){return O!==null},getParent:function(){return m},hide:function(L){if(L)m.style.height="0px";if(O)O.style.height=
"0px";return z},show:function(){m.style.height=ca+"px";if(O)O.style.height=X+"px";return z},isHidden:function(){return O&&parseInt(O.style.height,10)===0},load:function(L){if(!O&&z._fireEvent("onBeforeLoad")!==false){c(n,function(){this.unload()});if((F=m.innerHTML)&&!flashembed.isSupported(r.version))m.innerHTML="";flashembed(m,r,{config:x});if(L){L.cached=true;t(P,"onLoad",L)}}return z},unload:function(){if(F.replace(/\s/g,"")!==""){if(z._fireEvent("onBeforeUnload")===false)return z;try{if(O){O.fp_close();
z._fireEvent("onUnload")}}catch(L){}O=null;m.innerHTML=F}return z},getClip:function(L){if(L===undefined)L=aa;return H[L]},getCommonClip:function(){return E},getPlaylist:function(){return H},getPlugin:function(L){var V=G[L];if(!V&&z.isLoaded()){var Q=z._api().fp_getPlugin(L);if(Q){V=new h(L,Q,z);G[L]=V}}return V},getScreen:function(){return z.getPlugin("screen")},getControls:function(){return z.getPlugin("controls")},getConfig:function(L){return L?b(x):x},getFlashParams:function(){return r},loadPlugin:function(L,
V,Q,Y){if(typeof Q=="function"){Y=Q;Q={}}var ha=Y?v():"_";z._api().fp_loadPlugin(L,V,Q,ha);V={};V[ha]=Y;Y=new h(L,null,z,V);return G[L]=Y},getState:function(){return O?O.fp_getState():-1},play:function(L,V){function Q(){L!==undefined?z._api().fp_play(L,V):z._api().fp_play()}O?Q():z.load(function(){Q()});return z},getVersion:function(){if(O){var L=O.fp_getVersion();L.push("flowplayer.js 3.1.4");return L}return"flowplayer.js 3.1.4"},_api:function(){if(!O)throw"Flowplayer "+z.id()+" not loaded when calling an API method";
return O},setClip:function(L){z.setPlaylist([L]);return z},getIndex:function(){return fa}});c("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut".split(","),function(){var L="on"+this;if(L.indexOf("*")!=-1){L=L.substring(0,L.length-1);var V="onBefore"+L.substring(2);z[V]=function(Q){t(P,V,Q);return z}}z[L]=function(Q){t(P,L,Q);return z}});c("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed".split(","),
function(){var L=this;z[L]=function(V,Q){if(!O)return z;var Y=null;Y=V!==undefined&&Q!==undefined?O["fp_"+L](V,Q):V===undefined?O["fp_"+L]():O["fp_"+L](V);return Y==="undefined"||Y===undefined?z:Y}});z._fireEvent=function(L){if(typeof L=="string")L=[L];var V=L[0],Q=L[1],Y=L[2],ha=L[3],ia=0;x.debug&&console.log("$f.fireEvent",[].slice.call(L));if(!O&&V=="onLoad"&&Q=="player"){O=O||document.getElementById(da);X=O.clientHeight;c(H,function(){this._fireEvent("onLoad")});c(G,function(ua,pa){pa._fireEvent("onUpdate")});
E._fireEvent("onLoad")}if(!(V=="onLoad"&&Q!="player")){if(V=="onError")if(typeof Q=="string"||typeof Q=="number"&&typeof Y=="number"){Q=Y;Y=ha}if(V=="onContextMenu")c(x.contextMenu[Q],function(ua,pa){pa.call(z)});else if(V=="onPluginEvent"){if(ha=G[Q.name||Q]){ha._fireEvent("onUpdate",Q);ha._fireEvent(Y,L.slice(3))}}else{if(V=="onPlaylistReplace"){H=[];var ya=0;c(Q,function(){H.push(new q(this,ya++,z))})}if(V=="onClipAdd"){if(Q.isInStream)return;Q=new q(Q,Y,z);H.splice(Y,0,Q);for(ia=Y+1;ia<H.length;ia++)H[ia].index++}var ma=
true;if(typeof Q=="number"&&Q<H.length){aa=Q;if(L=H[Q])ma=L._fireEvent(V,Y,ha);if(!L||ma!==false)ma=E._fireEvent(V,Y,ha,L)}c(P[V],function(){ma=this.call(z,Q,Y);this.cached&&P[V].splice(ia,1);if(ma===false)return false;ia++});return ma}}};typeof m=="string"?flashembed.domReady(function(){var L=document.getElementById(m);if(L){m=L;d()}else throw"Flowplayer cannot access element: "+m;}):d()}function M(m){this.length=m.length;this.each=function(r){c(m,r)};this.size=function(){return m.length}}var q=
function(m,r,x){var d=this,z={},O={};d.index=r;if(typeof m=="string")m={url:m};f(this,m,true);c("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop".split(","),function(){var E="on"+this;if(E.indexOf("*")!=-1){E=E.substring(0,E.length-1);var H="onBefore"+E.substring(2);d[H]=function(G){t(O,H,G);return d}}d[E]=function(G){t(O,E,G);return d};if(r==-1){if(d[H])x[H]=d[H];if(d[E])x[E]=d[E]}});f(this,{onCuepoint:function(E,H){if(arguments.length==1){z.embedded=
[null,E];return d}if(typeof E=="number")E=[E];var G=v();z[G]=[E,H];x.isLoaded()&&x._api().fp_addCuepoints(E,r,G);return d},update:function(E){f(d,E);x.isLoaded()&&x._api().fp_updateClip(E,r);var H=x.getConfig();f(r==-1?H.clip:H.playlist[r],E,true)},_fireEvent:function(E,H,G,P){if(E=="onLoad"){c(z,function(fa,aa){aa[0]&&x._api().fp_addCuepoints(aa[0],r,fa)});return false}P=P||d;if(E=="onCuepoint"){var U=z[H];if(U)return U[1].call(x,P,G)}if(H&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(E)!=
-1){f(P,H);if(H.metaData)if(P.duration)P.fullDuration=H.metaData.duration;else P.duration=H.metaData.duration}var da=true;c(O[E],function(){da=this.call(x,P,H,G)});return da}});if(m.onCuepoint){var F=m.onCuepoint;d.onCuepoint.apply(d,typeof F=="function"?[F]:F);delete m.onCuepoint}c(m,function(E,H){if(typeof H=="function"){t(O,E,H);delete m[E]}});if(r==-1)x.onCuepoint=this.onCuepoint},h=function(m,r,x,d){var z={},O=this,F=false;d&&f(z,d);c(r,function(E,H){if(typeof H=="function"){z[E]=H;delete r[E]}});
f(this,{animate:function(E,H,G){if(!E)return O;if(typeof H=="function"){G=H;H=500}if(typeof E=="string"){var P=E;E={};E[P]=H;H=500}if(G){var U=v();z[U]=G}if(H===undefined)H=500;r=x._api().fp_animate(m,E,H,U);return O},css:function(E,H){if(H!==undefined){var G={};G[E]=H;E=G}r=x._api().fp_css(m,E);f(O,r);return O},show:function(){this.display="block";x._api().fp_showPlugin(m);return O},hide:function(){this.display="none";x._api().fp_hidePlugin(m);return O},toggle:function(){this.display=x._api().fp_togglePlugin(m);
return O},fadeTo:function(E,H,G){if(typeof H=="function"){G=H;H=500}if(G){var P=v();z[P]=G}this.display=x._api().fp_fadeTo(m,E,H,P);this.opacity=E;return O},fadeIn:function(E,H){return O.fadeTo(1,E,H)},fadeOut:function(E,H){return O.fadeTo(0,E,H)},getName:function(){return m},getPlayer:function(){return x},_fireEvent:function(E,H){if(E=="onUpdate"){var G=x._api().fp_getPlugin(m);if(!G)return;f(O,G);delete O.methods;if(!F){c(G.methods,function(){var P=""+this;O[P]=function(){var U=[].slice.call(arguments);
U=x._api().fp_invoke(m,P,U);return U==="undefined"||U===undefined?O:U}});F=true}}if(G=z[E]){G.apply(O,H);E.substring(0,1)=="_"&&delete z[E]}}})},n=[];window.flowplayer=window.$f=function(){var m=null,r=arguments[0];if(!arguments.length){c(n,function(){if(this.isLoaded()){m=this;return false}});return m||n[0]}if(arguments.length==1)if(typeof r=="number")return n[r];else{if(r=="*")return new M(n);c(n,function(){if(this.id()==r.id||this.id()==r||this.getParent()==r){m=this;return false}});return m}if(arguments.length>
1){var x=arguments[1],d=arguments.length==3?arguments[2]:{};if(typeof r=="string")if(r.indexOf(".")!=-1){var z=[];c(l(r),function(){z.push(new J(this,b(x),b(d)))});return new M(z)}else{var O=document.getElementById(r);return new J(O!==null?O:r,x,d)}else if(r)return new J(r,x,d)}return null};f(window.$f,{fireEvent:function(){var m=[].slice.call(arguments),r=$f(m[0]);return r?r._fireEvent(m.slice(1)):null},addPlugin:function(m,r){J.prototype[m]=r;return $f},each:c,extend:f});if(typeof jQuery=="function")jQuery.prototype.flowplayer=
function(m,r){if(!arguments.length||typeof arguments[0]=="number"){var x=[];this.each(function(){var d=$f(this);d&&x.push(d)});return arguments.length?x[arguments[0]]:new M(x)}return this.each(function(){$f(this,b(m),r?b(r):{})})}})();
(function(){function b(){if(q.done)return false;var h=document;if(h&&h.getElementsByTagName&&h.getElementById&&h.body){clearInterval(q.timer);q.timer=null;for(h=0;h<q.ready.length;h++)q.ready[h].call();q.ready=null;q.done=true}}function c(h,n){if(n)for(key in n)if(n.hasOwnProperty(key))h[key]=n[key];return h}function f(h){switch(l(h)){case "string":h=h.replace(RegExp('(["\\\\])',"g"),"\\$1");h=h.replace(/^\s?(\d+)%/,"$1pct");return'"'+h+'"';case "array":return"["+p(h,function(r){return f(r)}).join(",")+
"]";case "function":return'"function()"';case "object":var n=[];for(var m in h)h.hasOwnProperty(m)&&n.push('"'+m+'":'+f(h[m]));return"{"+n.join(",")+"}"}return String(h).replace(/\s/g," ").replace(/\'/g,'"')}function l(h){if(h===null||h===undefined)return false;var n=typeof h;return n=="object"&&h.push?"array":n}function p(h,n){var m=[];for(var r in h)if(h.hasOwnProperty(r))m[r]=n(h[r]);return m}function t(h,n){var m=c({},h),r=document.all,x='<object width="'+m.width+'" height="'+m.height+'"';if(r&&
!m.id)m.id="_"+(""+Math.random()).substring(9);if(m.id)x+=' id="'+m.id+'"';if(m.cachebusting)m.src+=(m.src.indexOf("?")!=-1?"&":"?")+Math.random();x+=m.w3c||!r?' data="'+m.src+'" type="application/x-shockwave-flash"':' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';x+=">";if(m.w3c||r)x+='<param name="movie" value="'+m.src+'" />';m.width=m.height=m.id=m.w3c=m.src=null;for(var d in m)if(m[d]!==null)x+='<param name="'+d+'" value="'+m[d]+'" />';m="";if(n){for(var z in n)if(n[z]!==null)m+=z+"="+
(typeof n[z]=="object"?f(n[z]):n[z])+"&";m=m.substring(0,m.length-1);x+='<param name="flashvars" value=\''+m+"' />"}x+="</object>";return x}function v(h,n,m){var r=flashembed.getVersion();c(this,{getContainer:function(){return h},getConf:function(){return n},getVersion:function(){return r},getFlashvars:function(){return m},getApi:function(){return h.firstChild},getHTML:function(){return t(n,m)}});var x=n.version,d=n.expressInstall,z=!x||flashembed.isSupported(x);if(z){n.onFail=n.version=n.expressInstall=
null;h.innerHTML=t(n,m)}else if(x&&d&&flashembed.isSupported([6,65])){c(n,{src:d});m={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};h.innerHTML=t(n,m)}else if(h.innerHTML.replace(/\s/g,"")===""){h.innerHTML="<h2>Flash version "+x+" or greater is required</h2><h3>"+(r[0]>0?"Your version is "+r:"You have no flash plugin installed")+"</h3>"+(h.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='http://www.adobe.com/go/getflashplayer'>here</a></p>");
if(h.tagName=="A")h.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"}}if(!z&&n.onFail){x=n.onFail.call(this);if(typeof x=="string")h.innerHTML=x}if(document.all)window[n.id]=document.getElementById(n.id)}var J=typeof jQuery=="function",M={width:"100%",height:"100%",allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(J){jQuery.tools=jQuery.tools||{};jQuery.tools.flashembed={version:"1.0.4",
conf:M}}var q=J?jQuery:function(h){if(q.done)return h();if(q.timer)q.ready.push(h);else{q.ready=[h];q.timer=setInterval(b,13)}};window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}});window.flashembed=function(h,n,m){if(typeof h=="string"){var r=document.getElementById(h);if(r)h=r;else{q(function(){flashembed(h,n,m)});return}}if(h){if(typeof n=="string")n={src:n};r=c({},M);c(r,n);return new v(h,r,m)}};c(window.flashembed,
{getVersion:function(){var h=[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var n=navigator.plugins["Shockwave Flash"].description;if(typeof n!="undefined"){n=n.replace(/^.*\s+(\S+\s+\S+$)/,"$1");h=parseInt(n.replace(/^(.*)\..*$/,"$1"),10);n=/r/.test(n)?parseInt(n.replace(/^.*r(.*)$/,"$1"),10):0;h=[h,n]}}else if(window.ActiveXObject){try{n=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(m){try{n=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");h=
[6,0];n.AllowScriptAccess="always"}catch(r){if(h[0]==6)return h}try{n=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(x){}}if(typeof n=="object"){n=n.GetVariable("$version");if(typeof n!="undefined"){n=n.replace(/^\S+\s+(.*)$/,"$1").split(",");h=[parseInt(n[0],10),parseInt(n[2],10)]}}}return h},isSupported:function(h){var n=flashembed.getVersion();return n[0]>h[0]||n[0]==h[0]&&n[1]>=h[1]},domReady:q,asString:f,getHTML:t});if(J)jQuery.fn.flashembed=function(h,n){var m=null;this.each(function(){m=
flashembed(this,h,n)});return h.api===false?this:m}})();
// /includes/jquery-ui-1.8.2.custom.min.js0
(function(b){function c(){if(b.fn.ajaxSubmit.debug){var f="[jquery.form] "+Array.prototype.join.call(arguments,"");if(window.console&&window.console.log)window.console.log(f);else window.opera&&window.opera.postError&&window.opera.postError(f)}}b.fn.ajaxSubmit=function(f){function l(){function n(){var aa=M.attr("target"),X=M.attr("action");x.setAttribute("target",O);x.getAttribute("method")!="POST"&&x.setAttribute("method","POST");x.getAttribute("action")!=d.url&&x.setAttribute("action",d.url);d.skipEncodingOverride||
M.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"});d.timeout&&setTimeout(function(){U=true;m()},d.timeout);var ca=[];try{if(d.extraData)for(var L in d.extraData)ca.push(b('<input type="hidden" name="'+L+'" value="'+d.extraData[L]+'" />').appendTo(x)[0]);F.appendTo("body");F.data("form-plugin-onload",m);x.submit()}finally{x.setAttribute("action",X);aa?x.setAttribute("target",aa):M.removeAttr("target");b(ca).remove()}}function m(){if(!P){var aa=true;try{if(U)throw"timeout";var X,
ca;ca=E.contentWindow?E.contentWindow.document:E.contentDocument?E.contentDocument:E.document;var L=d.dataType=="xml"||ca.XMLDocument||b.isXMLDoc(ca);c("isXml="+L);if(!L&&(ca.body==null||ca.body.innerHTML=="")){if(--fa){c("requeing onLoad callback, DOM not available");setTimeout(m,250);return}c("Could not access iframe DOM after 100 tries.");return}c("response detected");P=true;H.responseText=ca.body?ca.body.innerHTML:null;H.responseXML=ca.XMLDocument?ca.XMLDocument:ca;H.getResponseHeader=function(ha){return{"content-type":d.dataType}[ha]};
if(d.dataType=="json"||d.dataType=="script"){var V=ca.getElementsByTagName("textarea")[0];if(V)H.responseText=V.value;else{var Q=ca.getElementsByTagName("pre")[0];if(Q)H.responseText=Q.innerHTML}}else if(d.dataType=="xml"&&!H.responseXML&&H.responseText!=null)H.responseXML=r(H.responseText);X=b.httpData(H,d.dataType)}catch(Y){c("error caught:",Y);aa=false;H.error=Y;b.handleError(d,H,"error",Y)}if(aa){d.success(X,"success");G&&b.event.trigger("ajaxSuccess",[H,d])}G&&b.event.trigger("ajaxComplete",
[H,d]);G&&!--b.active&&b.event.trigger("ajaxStop");if(d.complete)d.complete(H,aa?"success":"error");setTimeout(function(){F.removeData("form-plugin-onload");F.remove();H.responseXML=null},100)}}function r(aa,X){if(window.ActiveXObject){X=new ActiveXObject("Microsoft.XMLDOM");X.async="false";X.loadXML(aa)}else X=(new DOMParser).parseFromString(aa,"text/xml");return X&&X.documentElement&&X.documentElement.tagName!="parsererror"?X:null}var x=M[0];if(b(":input[name=submit]",x).length)alert('Error: Form elements must not be named "submit".');
else{var d=b.extend({},b.ajaxSettings,f),z=b.extend(true,{},b.extend(true,{},b.ajaxSettings),d),O="jqFormIO"+(new Date).getTime(),F=b('<iframe id="'+O+'" name="'+O+'" src="'+d.iframeSrc+'" onload="(jQuery(this).data(\'form-plugin-onload\'))()" />'),E=F[0];F.css({position:"absolute",top:"-1000px",left:"-1000px"});var H={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=
1;F.attr("src",d.iframeSrc)}},G=d.global;G&&!b.active++&&b.event.trigger("ajaxStart");G&&b.event.trigger("ajaxSend",[H,d]);if(z.beforeSend&&z.beforeSend(H,z)===false)z.global&&b.active--;else if(!H.aborted){var P=false,U=0;if(z=x.clk){var da=z.name;if(da&&!z.disabled){d.extraData=d.extraData||{};d.extraData[da]=z.value;if(z.type=="image"){d.extraData[da+".x"]=x.clk_x;d.extraData[da+".y"]=x.clk_y}}}d.forceSync?n():setTimeout(n,10);var fa=100}}}if(!this.length){c("ajaxSubmit: skipping submit process - no element selected");
return this}if(typeof f=="function")f={success:f};var p=b.trim(this.attr("action"));if(p)p=(p.match(/^([^#]+)/)||[])[1];p=p||window.location.href||"";f=b.extend({url:p,type:this.attr("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},f||{});p={};this.trigger("form-pre-serialize",[this,f,p]);if(p.veto){c("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(f.beforeSerialize&&f.beforeSerialize(this,f)===false){c("ajaxSubmit: submit aborted via beforeSerialize callback");
return this}var t=this.formToArray(f.semantic);if(f.data){f.extraData=f.data;for(var v in f.data)if(f.data[v]instanceof Array)for(var J in f.data[v])t.push({name:v,value:f.data[v][J]});else t.push({name:v,value:f.data[v]})}if(f.beforeSubmit&&f.beforeSubmit(t,this,f)===false){c("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[t,this,f,p]);if(p.veto){c("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}v=b.param(t);if(f.type.toUpperCase()==
"GET"){f.url+=(f.url.indexOf("?")>=0?"&":"?")+v;f.data=null}else f.data=v;var M=this,q=[];f.resetForm&&q.push(function(){M.resetForm()});f.clearForm&&q.push(function(){M.clearForm()});if(!f.dataType&&f.target){var h=f.success||function(){};q.push(function(n){var m=f.replaceTarget?"replaceWith":"html";b(f.target)[m](n).each(h,arguments)})}else f.success&&q.push(f.success);f.success=function(n,m,r){for(var x=0,d=q.length;x<d;x++)q[x].apply(f,[n,m,r||M,M])};v=b("input:file",this).fieldValue();J=false;
for(p=0;p<v.length;p++)if(v[p])J=true;if(v.length&&f.iframe!==false||f.iframe||J||0)f.closeKeepAlive?b.get(f.closeKeepAlive,l):l();else b.ajax(f);this.trigger("form-submit-notify",[this,f]);return this};b.fn.ajaxForm=function(f){return this.ajaxFormUnbind().bind("submit.form-plugin",function(l){l.preventDefault();b(this).ajaxSubmit(f)}).bind("click.form-plugin",function(l){var p=l.target,t=b(p);if(!t.is(":submit,input:image")){p=t.closest(":submit");if(p.length==0)return;p=p[0]}var v=this;v.clk=p;
if(p.type=="image")if(l.offsetX!=undefined){v.clk_x=l.offsetX;v.clk_y=l.offsetY}else if(typeof b.fn.offset=="function"){t=t.offset();v.clk_x=l.pageX-t.left;v.clk_y=l.pageY-t.top}else{v.clk_x=l.pageX-p.offsetLeft;v.clk_y=l.pageY-p.offsetTop}setTimeout(function(){v.clk=v.clk_x=v.clk_y=null},100)})};b.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};b.fn.formToArray=function(f){var l=[];if(this.length==0)return l;var p=this[0],t=f?p.getElementsByTagName("*"):p.elements;
if(!t)return l;for(var v=0,J=t.length;v<J;v++){var M=t[v],q=M.name;if(q)if(f&&p.clk&&M.type=="image"){if(!M.disabled&&p.clk==M){l.push({name:q,value:b(M).val()});l.push({name:q+".x",value:p.clk_x},{name:q+".y",value:p.clk_y})}}else if((M=b.fieldValue(M,true))&&M.constructor==Array)for(var h=0,n=M.length;h<n;h++)l.push({name:q,value:M[h]});else M!==null&&typeof M!="undefined"&&l.push({name:q,value:M})}if(!f&&p.clk){f=b(p.clk);t=f[0];if((q=t.name)&&!t.disabled&&t.type=="image"){l.push({name:q,value:f.val()});
l.push({name:q+".x",value:p.clk_x},{name:q+".y",value:p.clk_y})}}return l};b.fn.formSerialize=function(f){return b.param(this.formToArray(f))};b.fn.fieldSerialize=function(f){var l=[];this.each(function(){var p=this.name;if(p){var t=b.fieldValue(this,f);if(t&&t.constructor==Array)for(var v=0,J=t.length;v<J;v++)l.push({name:p,value:t[v]});else t!==null&&typeof t!="undefined"&&l.push({name:this.name,value:t})}});return b.param(l)};b.fn.fieldValue=function(f){for(var l=[],p=0,t=this.length;p<t;p++){var v=
b.fieldValue(this[p],f);v===null||typeof v=="undefined"||v.constructor==Array&&!v.length||(v.constructor==Array?b.merge(l,v):l.push(v))}return l};b.fieldValue=function(f,l){var p=f.name,t=f.type,v=f.tagName.toLowerCase();if(typeof l=="undefined")l=true;if(l&&(!p||f.disabled||t=="reset"||t=="button"||(t=="checkbox"||t=="radio")&&!f.checked||(t=="submit"||t=="image")&&f.form&&f.form.clk!=f||v=="select"&&f.selectedIndex==-1))return null;if(v=="select"){var J=f.selectedIndex;if(J<0)return null;p=[];v=
f.options;var M=(t=t=="select-one")?J+1:v.length;for(J=t?J:0;J<M;J++){var q=v[J];if(q.selected){var h=q.value;h||(h=q.attributes&&q.attributes.value&&!q.attributes.value.specified?q.text:q.value);if(t)return h;p.push(h)}}return p}return f.value};b.fn.clearForm=function(){return this.each(function(){b("input,select,textarea",this).clearFields()})};b.fn.clearFields=b.fn.clearInputs=function(){return this.each(function(){var f=this.type,l=this.tagName.toLowerCase();if(f=="text"||f=="password"||l=="textarea")this.value=
"";else if(f=="checkbox"||f=="radio")this.checked=false;else if(l=="select")this.selectedIndex=-1})};b.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||typeof this.reset=="object"&&!this.reset.nodeType)this.reset()})};b.fn.enable=function(f){if(f==undefined)f=true;return this.each(function(){this.disabled=!f})};b.fn.selected=function(f){if(f==undefined)f=true;return this.each(function(){var l=this.type;if(l=="checkbox"||l=="radio")this.checked=f;else if(this.tagName.toLowerCase()==
"option"){l=b(this).parent("select");f&&l[0]&&l[0].type=="select-one"&&l.find("option").selected(false);this.selected=f}})}})(jQuery);
// /includes/jquery-ui-1.8.2.custom.min.js1
function check_Redirect(){var b=location.href,c=false;if(b.indexOf("%5F")>-1){b=b.replace(/%5F/gi,"_");c=true}if(b.indexOf("index.asp")>-1){b=b.replace("index.asp","");c=true}c==true&&location.replace(b)}check_Redirect();
function getBrandName(b){for(var c=Array("AX:Abraxa","EX:Xtreme","KP:Karaoke Planet","KT:Kantatu","LG:Legends","ME:Mr Entertainer","MS:Multiplex (Vocals)","MX:MasterMix","PH:PassionHouse","PX:Protrax","SB:SBI","SF:Sunfly","SM:Starmaker","WK:World of Karaoke","ZM:Zoom"),f=b.substr(0,2),l=0;l<c.length;l++){b=c[l].split(":");if(b[0]==f)return b[1]}return""}
function btncng(b){var c=b.src;c=c.indexOf("_on")>-1?c.substr(0,c.indexOf("_on"))+"_off.gif":c.substr(0,c.indexOf("_off.gif"))+"_on.gif";b.src=c}function testEmail(b){return/^[a-zA-Z0-9._-]+@([a-zA-Z0-9.-]+\.)+[a-zA-Z0-9.-]{2,4}$/.test(b)}function testInvalidChar(b){return/[^a-z\d@\!\#\_\&\-\~. ]/i.test(b)}function testInvalidChar2(b){return/[^a-z\d@\!\&\_\-\~. ]/i.test(b)}function setMyListQ(){var b=$("#myListQ").val();b==0&&doClick("/list/create_listing/");b>0&&doClick("/list/my_list/"+b+"/")}
function setMyListQVal(b){$("#myListQ").val(b)}function reloadMyListsSelectQ(b){$.ajax({url:root+"/includes/get_myListSelectQ.asp",cache:false,success:function(c){if(c!=""){$("#myListsSelectQ").html(c);setMyListQVal(b)}}})}
function resetPageHeight(){var b=document.getElementById("nav").offsetHeight,c=document.getElementById("content").offsetHeight,f=document.getElementById("nav"),l=document.getElementById("header"),p=document.getElementById("navO"),t=document.getElementById("headerO");document.getElementById("content");b=document.getElementById("nav").offsetHeight;c=document.getElementById("content").offsetHeight;if(l.offsetTop=="0"||f.offsetLeft>100){t.innerHTML=l.innerHTML;p.innerHTML=f.innerHTML;t.style.height=t.offsetHeight-
12+"px";t.style.paddingTop="12px";t.style.marginBottom="0px";l.style.top="-5000px";l.style.left="-5000px";content.style.paddingTop="0px";f.style.top="-5000px";f.style.left="-5000px";b=document.getElementById("navO").offsetHeight}if(b>c)document.getElementById("content").style.height=b+"px";else document.getElementById("content").style.height="auto"}
function changeRPP(b){var c=location.href,f=-1;f=c.indexOf("?rpp=");if(f>-1)c=c.substr(0,f);c.indexOf("?")>-1?doClick(c+"&rpp="+b.options[b.selectedIndex].value):doClick(c+"?rpp="+b.options[b.selectedIndex].value)}var arrayEmails=[];arrayEmails[0]=[];arrayEmails[0][0]="karaoke";arrayEmails[0][1]="karaoketrackz.com";
function emailSW(b,c,f){switch(f){case 0:b.href="mailto:"+arrayEmails[c][0]+"@"+arrayEmails[c][1];return true;case 1:window.status="mailto:"+arrayEmails[c][0]+"@"+arrayEmails[c][1];return true;case 2:window.status="";return true;case 3:return arrayEmails[c][0]+"@"+arrayEmails[c][1]}}
function checkPostCode(b){var c=[];c.push(RegExp("^([abcdefghijklmnoprstuwyz]{1}[abcdefghklmnopqrstuvwxy]?[0-9]{1,2})(\\s*)([0-9]{1}[abdefghjlnpqrstuwxyz]{2})$","i"));c.push(/^([abcdefghijklmnoprstuwyz]{1}[0-9]{1}[abcdefghjkstuw]{1})(\s*)([0-9]{1}[abdefghjlnpqrstuwxyz]{2})$/i);c.push(RegExp("^([abcdefghijklmnoprstuwyz]{1}[abcdefghklmnopqrstuvwxy]?[0-9]{1}[abehmnprvwxy]{1})(\\s*)([0-9]{1}[abdefghjlnpqrstuwxyz]{2})$","i"));c.push(/^(GIR)(\s*)(0AA)$/i);c.push(/^(bfpo)(\s*)([0-9]{1,4})$/i);c.push(/^(bfpo)(\s*)(c\/o\s*[0-9]{1,3})$/i);
b=b;for(var f=false,l=0;l<c.length;l++)if(c[l].test(b)){c[l].exec(b);b=RegExp.$1.toUpperCase()+" "+RegExp.$3.toUpperCase();b=b.replace(/C\/O\s*/,"c/o ");f=true;break}return f?b:""}var addr1="Karaoke Trackz Ltd",addr2="4 Bassett Court",addr3="Bassett Avenue",addr4="Southampton",addr5="SO16 7DR";function doAddress(b){if(b==1)return addr1+"<br>"+addr2+"<br>"+addr3+"<br>"+addr4+"<br>"+addr5;else if(b==2)return addr1+", "+addr2+", "+addr3+", "+addr4+", "+addr5}
function f_clientWidth(){return f_filterResults(window.innerWidth?window.innerWidth:0,document.documentElement?document.documentElement.clientWidth:0,document.body?document.body.clientWidth:0)}function f_clientHeight(){return f_filterResults(window.innerHeight?window.innerHeight:0,document.documentElement?document.documentElement.clientHeight:0,document.body?document.body.clientHeight:0)}
function f_scrollLeft(){return f_filterResults(window.pageXOffset?window.pageXOffset:0,document.documentElement?document.documentElement.scrollLeft:0,document.body?document.body.scrollLeft:0)}function f_scrollTop(){return f_filterResults(window.pageYOffset?window.pageYOffset:0,document.documentElement?document.documentElement.scrollTop:0,document.body?document.body.scrollTop:0)}function f_filterResults(b,c,f){b=b?b:0;if(c&&(!b||b>c))b=c;return f&&(!b||b>f)?f:b}
jQuery(function(){makeNavArrows();makePicHover();$(".ttip").each(function(){$(this).hover(function(){$(this).prev().children("img").attr("class","pimgon")}).click(function(){doClick($(this).prev("a").attr("href"))})});window.setTimeout("resizeCols(500)",500);window.setTimeout("resizeCols(500)",1E3);window.setTimeout("resizeCols(500)",5E3)});
function rhdimg(){$("h1.hdh1").each(function(){var b=$(this),c=b.text();b.html("");filename=c.toLowerCase().replace(/ /g,"-").replace(/([^0-9a-z-])/g,"");var f=new Image;$(f).load(function(){$(this).hide();b.html('<img src="'+mRoot+"/images/hd/"+filename+'.gif" align="absmiddle" alt="'+c+'" title="'+c+'" width="400" height="30" />')}).error(function(){b.html(c)}).attr("src",mRoot+"/images/hd/"+filename+".gif")})}
function makeNavArrows(){$(".navItem a").each(function(){$(this).html('<img src="'+mRoot+'/images/arrow_blue.gif" align="absmiddle" class="pinkarrow" width="24" height="24"><span class="navItemLink">'+$(this).html()+"</span>")});$(".navItem").each(function(){$(this).html($(this).html()+'<div class="navItemSpace"></div>')});$(".navItem a").hover(function(){$(this).children(".pinkarrow").attr({src:mRoot+"/images/arrow_pink.gif"})},function(){$(this).children(".pinkarrow").attr({src:mRoot+"/images/arrow_blue.gif"})});
$(".pinkarrow").hover(function(){this.src=mRoot+"/images/arrow_pink.gif"},function(){this.src=mRoot+"/images/arrow_blue.gif"});window.setTimeout('$("#navFolders").fadeTo( 50, 1);',500)}function makePicHover(){$(".pimg").hover(function(){$(this).attr("class","pimgon")},function(){$(this).attr("class","pimg")})}
function resizeCols(b){var c=$("#content"),f=$("#cbody"),l=$("#nav"),p=$("#navIn"),t=$("#wrapper");f.height()>c.height()&&c.height(f.height());t.css("min-height",f.height()+"px");p.height()>l.height()&&l.height(p.height());if(c.height()>l.height())l.animate({height:c.height()},b);else c.height()<l.height()&&c.animate({height:l.height()},b)}
function loadHomeImg(b){var c=$("#hpageimg"+b),f=new Image;$(f).load(function(){$(c).hide();c.attr("id","homepageimg"+b);c.fadeTo(1E3,1);b<5&&window.setTimeout(function(){loadHomeImg(b+1)},1E3)}).error(function(){}).attr("src",mRoot+"/images/home-page_"+b+".png")}
function getTracksList(b,c){var f=root;switch(c){case "NEW10":f+="/includes/get_search_results.asp?o=date=NEW10__ajax=y__js=y__width=normalquick&search=advanced";break}$("#"+b).html("loading, please wait...");$.ajax({url:f,cache:false,success:function(l){l!=""?$("#"+b).html(l):$("#"+b).html("loading, please wait...")},error:function(){$("#"+b).html("")}})}var searchMode="unset";$(function(){try{$("#newListLink").click(function(){return false}).click(function(){createList("");return false})}catch(b){}});
var lastPos="top";function scrollFollow(){}
function createList(b,c,f){var l;l=c?c:false;var p={success:function(t){t=t.split("|");var v=parseInt(t[1]);newListID=v;var J='<div class="mylistbrdr, sl" id="listID'+v+'"></div>';hasExistingLists||(J+="<br>");b!=""&&myAlert.hide(function(){addT(b,l)});if($("#createNewListDiv").is(":visible"))$("#createNewListDiv").animate({height:"toggle",opacity:0},500,function(){$("#createNewListDiv").hide().html("");$("#noListsYet").hide().html("");J+="<br>";$("#myListsDiv").append(J);hasExistingLists=true;$("#listID"+
v).hide(function(){});resetCreateListForm(v);reloadMyListsSelectQ(v)});else if(b==""){J=J.replace("mylistbrdr, sl","mylistbrdr");$("#myListsDiv").append(J+"<br>");hasExistingLists=true;window.setTimeout(function(){resizeCols(500)},2E3)}$.isFunction(f)&&f()},beforeSubmit:function(){if(!createFormOK)return false}};c=root+"/includes/set_create_list.asp?ajax=y&opt=create";$("#createNewListDiv").is(":visible")&&b==""||$.ajax({url:c,cache:false,success:function(t){if(t!=""){if(b!=""||l){bAlert(t,"Create List",
"msgCreate",0);$("#listFrm").ajaxForm(p);$("#ListName").focus()}else{$("#noListsYet").hide();$("#newListLinkDiv").hide();$("#createNewListDiv").html(t);$("#listFrm").ajaxForm(p);$("#createNewListDiv").hide().animate({height:"toggle",opacity:1},500,function(){$("#ListName").focus();resizeCols(500);scrollFollow()})}return true}},error:function(t){alert(t)}})}function resetCreateListForm(b){reloadMyLists(b);resizeCols(500);scrollFollow();$("#newListLinkDiv").show()}
function setMyListLinks(){window.setTimeout(function(){$(".delLink").each(function(){$(this).removeAttr("href")})},3E3);$(".bDelS").attr("title","Delete track").click(function(){deleteTrack($(this).attr("id").substr(3))}).mouseenter(function(){$(this).removeClass().addClass("bDelSOver")}).mouseleave(function(){$(this).removeClass().addClass("bDelS")})}
$(function(){$("#s").autocomplete("/includes/autocomplete_quick.asp",{width:250,scrollHeight:300,cacheLength:22,matchSubset:false,minChars:2,mustMatch:false,multipleSeparator:" ",selectFirst:false,max:22,highlight:function(b,c){for(c=trim(c).split(" ").join("|");c.indexOf("*")>-1;)c=c.replace("*","_");return b.replace(RegExp("("+c+")","gi"),"<b>$1</b>")}});$("#s").result(function(b,c){if(c){$(this).parent().next().find("input").val(c[1]);$("#navSearch").submit()}});$("#t").autocomplete("/includes/autocomplete_title.asp",
{width:250,scrollHeight:300,cacheLength:22,matchSubset:false,minChars:2,mustMatch:false,multipleSeparator:" ",selectFirst:false,max:22,extraParams:{artist:function(){return $("#a").val()},brand:function(){return $("#b").val()}},highlight:function(b,c){for(c=trim(c).split(" ").join("|");c.indexOf("*")>-1;)c=c.replace("*","_");return b.replace(RegExp("("+c+")","gi"),"<b>$1</b>")}});$("#a").autocomplete("/includes/autocomplete_artist.asp",{width:250,scrollHeight:300,cacheLength:22,matchSubset:false,
minChars:2,mustMatch:false,multipleSeparator:" ",selectFirst:false,max:22,extraParams:{title:function(){return $("#t").val()},brand:function(){return $("#b").val()}},highlight:function(b,c){for(c=trim(c).split(" ").join("|");c.indexOf("*")>-1;)c=c.replace("*","_");return b.replace(RegExp("("+c+")","gi"),"<b>$1</b>")}});$("#t").result(function(b,c){c&&$(this).parent().next().find("input").val(c[1]);$("#navSearch").submit()});$("#a").result(function(b,c){c&&$(this).parent().next().find("input").val(c[2]);
$("#navSearch").submit()});$("#navSearch").submit(function(){if(this.t.value=="Enter Title"||searchMode=="quick")this.t.value="";if(this.a.value=="Enter Artist"||searchMode=="quick")this.a.value="";switch(true){case this.b.value!=""&&this.a.value!=""&&this.t.value!="":doClick("/karaoke/brand-tracks/"+escape(this.b.value).replace(/%20/gi,"+")+"/"+escape(this.a.value).replace(/%20/gi,"+")+"/"+escape(this.t.value).replace(/%20/gi,"+")+"/");break;case this.b.value!=""&&this.a.value!="":doClick("/karaoke/brand-artists/"+
escape(this.b.value).replace(/%20/gi,"+")+"/"+escape(this.a.value).replace(/%20/gi,"+")+"/");break;case this.b.value!=""&&this.t.value!="":doClick("/karaoke/brand-titles/"+escape(this.b.value).replace(/%20/gi,"+")+"/"+escape(this.t.value).replace(/%20/gi,"+")+"/");break;case this.t.value!=""&&this.a.value!="":doClick("/karaoke/tracks/"+escape(this.a.value).replace(/%20/gi,"+")+"/"+escape(this.t.value).replace(/%20/gi,"+")+"/");break;case this.t.value!="":doClick("/karaoke/titles/"+escape(this.t.value).replace(/%20/gi,
"+")+"/");break;case this.a.value!="":doClick("/karaoke/artists/"+escape(this.a.value).replace(/%20/gi,"+")+"/");break;case this.b.value!="":doClick("/karaoke/brands/"+escape(this.b.value).replace(/%20/gi,"+")+"/");break;default:alert("Nothing to search for!");return false}return false});$("#t, #a, #s").keyup(function(b){b.keyCode==13&&$("#navSearch").submit()})});
function setRB(b){$.ajax({url:root+"/includes/set_remember_brand.asp?RememberBrand="+b.checked,cache:false,success:function(c){c!=""&&alert(c)}})}var createFormOK=false;function ValidateCreateListForm(b){var c="",f=false;if(b.ListName.value==0&&b.lType.value!="MP3G"){c+="\n Please enter a name for this download / disc";f=true}if(f==true){alert(c);return createFormOK=false}else return createFormOK=true}
function setList(b,c){b=="MP3G"?$("#ListNameRequiredLabel").fadeTo(500,0,function(){$("#ListNameRequiredLabel").html("").fadeTo(500,1)}):$("#ListNameRequiredLabel").fadeTo(500,0,function(){$("#ListNameRequiredLabel").html("*").fadeTo(500,1)});c.lType.value=b}
function reloadMyLists(b,c){var f=root+"/includes/get_my_lists.asp?ajax=y",l=0,p="#myListsDiv";if(c)l=c;hasExistingLists||(f+="&hasExistingLists=false");if(l>0)f+="&LID="+l;if(b>0)f+="&getListID="+b;setTimeout(function(){$.ajax({url:f,cache:false,success:function(t){if(t.indexOf("OK|||")>-1){var v=t.split("|||");LID=parseInt(v[1]);if(LID>0){p="#listID"+LID;$(".mylistbrdrActive")&&$(".mylistbrdrActive").attr("id")!=p&&l==0&&$(".mylistbrdrActive").attr("class","mylistbrdr");$(p).fadeTo(300,0,function(){$(p).html(v[2]);
l==0&&$(p).attr("class","mylistbrdrActive");if(b>0&&!$("#createNewListDiv").is(":visible")){$(p).hide().removeClass("sl");$(p).animate({height:"toggle",opacity:1},500)}else $(p).fadeTo(300,1);$(".bCDG, .bDVD, .bMP3G, .bMP4").each(function(){$(this).unbind("click mouseenter mouseleave")});$(".bCDG, .bDVD, .bMP3G, .bMP4").attr("title",function(){var J=$(this).attr("class").replace(" floatright","").substr(1);J+=J=="MP3G"||J=="MP4"?" download":" karaoke disc";return J}).mouseenter(function(){var J=$(this).attr("class").replace(" floatright",
"Over floatright");$(this).removeClass().addClass(J)}).mouseleave(function(){var J=$(this).attr("class").replace("Over floatright"," floatright");$(this).removeClass().addClass(J)}).click(function(){doClick($(this).parent().find("a").attr("href"))});setMyListLinks()})}else $(p).fadeTo(300,0,function(){$(p).html(v[2]+"<br>").fadeTo(300,1,function(){setMyListLinks()})})}},error:function(t){alert(t)}})},200)}
function moveDown(b){if($("#r"+b).next().attr("id")!="ft"){$("#r"+b).next().after($("#r"+b));$("#md"+b).removeClass().addClass("bDownMoved")}submitOrder(0);reloadMyLists(0);return false}function moveUp(b){if($("#r"+b).prev().attr("id")!="hd"){$("#r"+b).prev().before($("#r"+b));$("#mu"+b).removeClass().addClass("bUpMoved")}submitOrder(0);reloadMyLists(0);return false}
function moveToList(b,c,f){var l="";if(f)l=f;var p={success:function(t){if(t.indexOf("||")>-1)myAlert.hide(function(){processMoveToList(t,b,c)});else if(t=="create new list - move")myAlert.hide(function(){l.indexOf("created")==-1&&createList("",true,function(){moveToList(b,c,"created - move")})});else t=="create new list - copy"&&myAlert.hide(function(){l.indexOf("created")==-1&&createList("",true,function(){moveToList(b,c,"created - copy")})})}};f=root+"/includes/set_move_to_list.asp?ajax=y&opt=select&CID="+
c+"&TID="+b+"&LID="+ListID+"&Title="+escape($("#r"+b+" .title a").html())+"&Artist="+escape($("#r"+b+" .artist a").html());if(l=="created - copy")f+="&auto=c&newListID="+newListID;if(l=="created - move")f+="&auto=m&newListID="+newListID;$.ajax({url:f,cache:false,success:function(t){if(t!="")if(t.indexOf("||")>-1&&l.indexOf("created")>-1)myAlert.hide(function(){processMoveToList(t,b,c)});else{bAlert(t,"Move Track","msg",0);$("#listFrm").ajaxForm(p)}},error:function(t){alert(t)}});return false}
function processMoveToList(b,c,f){var l="";b=b.split("||");if(b.length>=9)switch(b[0]){case "OK":if(b[9]=="move")l="moved";if(b[9]=="copy")l="copied";l=="moved"&&doDeleteRow(c,f,b[7]);reloadMyLists(0,b[8]);bAlert("<b>"+b[1]+"</b> by <b><i>"+b[2]+"</i> </b> from "+getBrandName(f)+" has been "+l+" as requested<br><br>Space remaining: "+b[6],"Sucess!","msg",2E3);hasExistingLists=true;break;case "No space - duration":bAlert("Sorry, there is not enough space left for<br><br><b>"+b[2]+"</b> by <b><i>"+
b[1]+"</i></b> from "+getBrandName(f)+"<br><br>Space remaining: "+b[6],"Not enough space","msg",6E3);reloadMyLists(0);break;case "No space - tracks":bAlert("This disc is full<br><br><b>"+b[2]+"</b> by <b><i>"+b[1]+"</i></b> from "+getBrandName(f)+"","No track space remaining","msg",6E3);reloadMyLists(0);break;case "Added Already":bAlert("<b>"+b[1]+"</b> by <b><i>"+b[2]+"</i></b> from "+getBrandName(f)+"<br><br>has already been added to your listing<br><br>Space remaining: "+b[6],"Already added","msg",
4E3);reloadMyLists(0);break;case "ListID Invalid":hasExistingLists?selectList(TrackCode):createList(TrackCode);break;case "Locked":bAlert("<b>"+b[1]+"</b> by <b><i>"+b[2]+"</i></b> from "+getBrandName(f)+"<br><br>was not added because the listing is in your basket and <b>locked</b>. Please remove this list from your basket first.<br><br>Space remaining: "+b[6],"List locked","msg",6E3);break;default:bAlert("Sorry, while adding<br><b>"+b[1]+"</b> by <b><i>"+b[2]+"</i></b> from "+getBrandName(f)+"<br>an error occurred: ["+
b[0]+"]<br><br>Space remaining: "+b[6],"Unexpected error","msg",6E3);break}else alert("result does not have the right number of fields");return false}function deleteRow(b,c){bConfirm("Are you sure you want to delete track "+c+"?<br><br><b>"+$("#r"+b+" .title a").html()+"</b><br>by <b><i>"+$("#r"+b+" .artist a").html()+"</i></b> from "+getBrandName(c),"Delete","confirm",function(){doDeleteRow(b,c,ListID)});return false}
function doDeleteRow(b,c,f){$.ajax({url:root+"/includes/set_remove_track.asp?LID="+f+"&CID="+c+"&TID="+b,cache:false,success:function(l){if(l!="")if(l=="OK"){var p=$("#r"+b);p.children("td").each(function(t){$(this).wrapInner("<div />").children("div").fadeTo(500,0).slideUp(function(){p.remove();if(t==0){submitOrder(f);reloadMyLists(0)}})})}}})}
function deleteTrack(b){b=b.split("-");var c=b[0],f=b[1],l=b[2];b=$("#dli"+c).attr("title").split(" by ");bConfirm("Are you sure you want to delete track "+l+"?<br><br><b>"+b[0]+"</b><br>by <b><i>"+b[1]+"</i></b> from "+getBrandName(l),"Delete","confirm",function(){doDeleteTrack(c,l,f)});return false}
function doDeleteTrack(b,c,f){$.ajax({url:root+"/includes/set_remove_track.asp?LID="+f+"&CID="+c+"&TID="+b,cache:false,success:function(l){if(l!="")if(l=="OK"){if(PageName=="my_list"){var p=$("#r"+b);p.children("td").each(function(t){$(this).wrapInner("<div />").children("div").fadeTo(500,0).slideUp(function(){p.remove();t==0&&submitOrder(f)})})}reloadMyLists(0,f)}}})}
function submitOrder(b){var c="",f="",l="";b=b;if(b==0)b=ListID;c=$("#mylistitmtbl").tableDnDSerialize().replace(/mylistitmtbl\[\]=/gi,"pos=");$.ajax({url:root+"/includes/set_track_order.asp?LID="+b+"&"+c,cache:false,success:function(p){if(p!="")if(p.indexOf("OK|")>-1){p=p.split("|");if(p[1]!=duration){duration=p[1];f=p[2];l=p[3];$("#totalDuration").fadeTo(1E3,0,function(){$("#totalDuration").html("<b>Duration: "+duration+"</b>").fadeTo(1E3,1)});$("#totalRemaining").fadeTo(1E3,0,function(){$("#totalRemaining").html("&nbsp;&nbsp;<b>Remaining: "+
f+"</b>").fadeTo(1E3,1)});$("#totalCost").fadeTo(1E3,0,function(){$("#totalCost").html("Total:&nbsp;&nbsp;&pound;"+l).fadeTo(1E3,1)})}$("#updateStatus").fadeTo(1E3,1,function(){$("#updateStatus").fadeTo(1E3,0)})}},error:function(p){alert(p.status+", "+p.text)}});$(".pos").each(function(p,t){t.innerHTML=p+1})}var editMode="off",oldListType="";
function editListName(b){var c,f;if(c=="Untitled")c="";if(editMode=="off"){c=$("#sListName").html();f=$("#sListType").html();oldListType=f=f.replace(" karaoke disc","").replace(" download","").replace("MP3+G","MP3G");$("#dListName").html('<form><input type="text" name="tListName" id="tListName" value="'+c+'" size="12" maxlength="30" class="inputbrdr"> <select name="tListType" id="tListType" class="inputbrdr"><option value="MP3G">MP3+G download</option><option value="CDG">CDG karaoke disc</option><option value="DVD">DVD karaoke disc</option></select></form>');
$("#tListName").focus();$("#tListType").val(f);$("#editListNameLink").html("save");editMode="on"}else{c=$("#tListName").val();f=$("#tListType :selected").val();$.ajax({url:root+"/includes/set_mylist_name.asp?ID="+b+"&ListName="+c+"&ListType="+f,cache:false,success:function(l){if(l=="OK"){if(oldListType!=f)duration="";$("#hdListType").removeClass().addClass("b"+f+"HD");if(f=="MP3G")f="MP3+G download";else f+=" karaoke disc";$("#editListNameLink").html("edit");$("#dListName").html('<h3 class="inline" id="sListName">'+
c+'</h3> (<span id="sListType">'+f+"</span>)");editMode="off";reloadMyLists(0);submitOrder(b)}}})}}function deleteList(b){bConfirm("Are you sure you want to delete this list?","Delete List","confirm",function(){doDeleteList(b)})}function doDeleteList(b){$.ajax({url:root+"/includes/set_remove_listing.asp?LID="+b,cache:false,success:function(c){if(c=="OK"){alert("This list has been deleted");doClick("/")}else alert(c)}});return false}var myAlert;
function bAlert(b,c,f,l){myAlert&&myAlert.hide();myAlert=new Boxy('<div class="'+f+'">'+b+"</div>",{afterShow:function(){l>0&&setTimeout(function(){myAlert.hide()},l)},modal:false,closeable:true,unloadOnHide:true,title:c})}var myConfirm;function bConfirm(b,c,f,l){myConfirm=new Boxy.confirm('<div class="'+f+'">'+b+"</div>",l,{modal:false,closeable:false,unloadOnHide:true,title:c,afterShow:function(){$("input.btnAnswer:first").focus()}})}var nowTrackCode="",playerLoaded=false,myPlayBox,retryCount=0;
function writeDebug(){document.getElementById("debugDiv")}function bAlert(b,c,f,l){myAlert&&myAlert.hide();myAlert=new Boxy('<div class="'+f+'">'+b+"</div>",{afterShow:function(){l>0&&setTimeout(function(){myAlert.hide()},l)},modal:false,closeable:true,unloadOnHide:true,title:c})}
function addT(b,c){var f;f=c?c:false;$.ajax({url:root+"/includes/set_add_track.asp?ID="+b+"&ajax=y",cache:false,success:function(l){if(l!=""){l=l.split("||");var p=$("#r"+b).attr("class"),t=p;prevColor="#FFCCFF";t="addedMe";if(l.length>=5)switch(l[0]){case "OK":bAlert("<b>"+l[1]+"</b> by <b><i>"+l[2]+"</i> </b> from "+getBrandName(b)+"<br><br>has been added to your list<br><br>Space remaining: "+l[6],"Sucess!","msg",2E3);if(!f){$("#a"+b).attr("title","This track is on this list. Click to remove").unbind("mouseenter mouseleave click").removeClass().addClass("bTickThis").mouseenter(function(){$(this).removeClass().addClass("bDelOver")}).mouseleave(function(){$(this).removeClass().addClass("bTickThis")}).click(function(){removeTrack(b)});
$("#r"+b).removeClass().addClass("addedOK").switchClass("addedOK",t,2E3)}reloadMyLists(0);hasExistingLists=true;break;case "No space - duration":bAlert("Sorry, there is not enough space left for<br><br><b>"+l[2]+"</b> by <b><i>"+l[1]+"</i></b> from "+getBrandName(b)+"<br><br>Space remaining: "+l[6],"Not enough space","msg",6E3);f||$("#r"+b).removeClass().addClass("addedError").switchClass("addedError",p,6E3);reloadMyLists(0);break;case "No space - tracks":bAlert("This disc is full<br><br><b>"+l[2]+
"</b> by <b><i>"+l[1]+"</i></b> from "+getBrandName(b)+"","No track space remaining","msg",6E3);f||$("#r"+b).removeClass().addClass("addedError").switchClass("addedError",p,4E3);reloadMyLists(0);break;case "Added Already":bAlert("<b>"+l[1]+"</b> by <b><i>"+l[2]+"</i></b> from "+getBrandName(b)+"<br><br>has already been added to your listing<br><br>Space remaining: "+l[6],"Already added","msg",4E3);f||$("#r"+b).removeClass().addClass("addedError").switchClass("addedError",p,2E3);reloadMyLists(0);break;
case "ListID Invalid":hasExistingLists?selectList(b):createList(b);break;case "Locked":bAlert("<b>"+l[1]+"</b> by <b><i>"+l[2]+"</i></b> from "+getBrandName(b)+"<br><br>was not added because the listing is in your basket and <b>locked</b>. Please remove this list from your basket first.<br><br>Space remaining: "+l[6],"List locked","msg",6E3);f||$("#r"+b).removeClass().addClass("addedError").switchClass("addedError",p,6E3);break;default:bAlert("Sorry, while adding<br><b>"+l[1]+"</b> by <b><i>"+l[2]+
"</i></b> from "+getBrandName(b)+"<br>an error occurred: ["+l[0]+"]<br><br>Space remaining: "+l[6],"Unexpected error","msg",6E3);f||$("#r"+b).removeClass().addClass("addedError").switchClass("addedError",p,6E3);break}}}});return false}
function removeTrack(b){var c=$("#r"+b).find(".title a"),f=$("#r"+b).find(".artist a");bConfirm("Are you sure you want to delete track "+b+"?<br><br><b>"+$(c).html()+"</b><br>by <b><i>"+$(f).html()+"</i></b> from "+getBrandName(b)+"","Delete","confirm",function(){doRemoveTrack(b)});return false}
function doRemoveTrack(b){$.ajax({url:root+"/includes/set_remove_track.asp?LID="+ListID+"&CID="+b,cache:false,success:function(c){if(c!="")if(c=="OK"){var f=c=$("#r"+b).attr("class");f="addedNone";newBG="#FFFFFF";$("#a"+b).attr("title","Add this track to my list").unbind("mouseenter mouseleave click").removeClass().addClass("bAdd").mouseenter(function(){$(this).removeClass().addClass("bAddOver")}).mouseleave(function(){$(this).removeClass().addClass("bAdd")}).click(function(){addT(b)});$("#r"+b).switchClass(c,
f,2E3);reloadMyLists(0)}}})}var createRetryCount=0;function selectList(b){var c={success:function(f){if(f=="OK")myAlert.hide(function(){addT(b,true)});else f=="create new list"&&myAlert.hide(function(){createList(b)})}};$.ajax({url:root+"/includes/set_select_list.asp?ajax=y&opt=select",cache:false,success:function(f){if(f!="")if(createRetryCount<10){bAlert(f,"Select List","msgSelect",0);$("#listFrm").ajaxForm(c)}},error:function(f){alert(f)}});createRetryCount++}
function validateAdvancedSearch(b){var c="/karaoke/search/";try{if(b.oSearch)if(b.oSearch.value!="")c+="title="+b.oSearch.value+"__";if(b.oTitle.value!="")c+="title="+b.oTitle.value+"__";if(b.oArtist.value!="")c+="artist="+b.oArtist.value+"__";if(b.oBrand.value!="")c+="brand="+b.oBrand.value+"__";if(b.oTrack.value.length>=7)if(b.oTrack.value!="")c+="track="+b.oTrack.value+"__";if(b.oTheme.value!="")c+="theme="+b.oTheme.value+"__";if(b.oDuration.value!="")c+="duration="+b.oDuration.value+"__";if(b.oDate.checked)c+=
"date="+$("#oDate").val()+"__";if(b.oPopular.checked)c+="popular="+$("#oPopular").val()+"__";if(c.substring(c.length-2)=="__")c=c.slice(0,-2)+"/"}catch(f){}if(c=="/karaoke/search/"){alert("Please choose something to search for");return""}return c}function rgba2hex(b){b=b.match(/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d+)\)$/);return"#"+padLZ(parseInt(b[1]).toString(16),2)+padLZ(parseInt(b[2]).toString(16),2)+padLZ(parseInt(b[3]).toString(16),2)}
function rgb2hex(b){b=b.match(/^rgba\((\d+),\s*(\d+),\s*(\d+)\)$/);return"#"+padLZ(parseInt(b[1]).toString(16),2)+padLZ(parseInt(b[2]).toString(16),2)+padLZ(parseInt(b[3]).toString(16),2)}function padLZ(b,c){for(var f=""+b;f.length<c;)f="0"+f;return f}
function getCookie(b){if(document.cookie.length>0){c_start=document.cookie.indexOf(b+"=");if(c_start!=-1){c_start=c_start+b.length+1;c_end=document.cookie.indexOf("&",c_start);if(c_end==-1)c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end))}}return""}function deleteListFromBasket(b,c){$.ajax({url:root+"/includes/set_delete_from_basket.asp?BasketID="+b+"&ListID="+c,cache:false,success:function(f){f=="OK"?doClick("/shop/basket/?id="+b):alert(f)}});return false}
function toggleDeliveryAddress(b,c){if(b){if($("#deliveryAddressSettings").is(":visible"))c?$("#deliveryAddressSettings").hide():$("#deliveryAddressSettings").animate({height:"toggle",opacity:0},500)}else $("#deliveryAddressSettings").is(":visible")||(c?$("#deliveryAddressSettings").show(0,function(){resizeCols(500)}):$("#deliveryAddressSettings").animate({height:"toggle",opacity:1},500,function(){resizeCols(500)}))}function toggleAddress(b,c){c?showAddress(b):hideAddress(b)}
function hideAddress(b,c){if($("#address"+b).is(":visible"))if(c)$("#address"+b).hide();else{$("#address"+b).animate({height:"toggle",opacity:0},500);$("#address"+b)}}function showAddress(b){$("#address"+b).is(":visible")||$("#address"+b).css("background-color","#FFFFDD").animate({height:"toggle",opacity:1},500,function(){resizeCols(500)})}function countryHasPC(b){return b=="Ireland"||b=="Angola"||b=="Belize"||b=="Benin"||b=="Hong Kong"||b=="Macao"||b=="Panama"?false:true}
function checkDZone(b,c,f,l){if(!l){f=$("#UseSameAddress").attr("checked");if((b=="C"&&f||b=="D"&&!f)&&c!=DeliverToZone)bAlert("<b>INCORRECT DELIVERY ZONE<br><br>Please choose a different delivery zone or a different country</b>","<b>Delivery Zone</b>","msgSelect",6E3)}}function setCID(b){CustomerAddressID=b}function setDID(b){DeliveryAddressID=b}
function pCse(b,c){if(!c){var f=b.value,l=f.length,p=Array("Mc","Mac");jj=f.substring(0,1).toUpperCase();jj+=f.substring(1,l).toLowerCase();for(i=1;i<=l;i++)if(jj.charAt(i)==" "||jj.charAt(i)=="-"||jj.charAt(i)=="'"||jj.charAt(i)=="("){lefthalf=jj.substring(0,i+1);righthalf=jj.substring(i+1,l);righthalf=righthalf.substring(0,1).toUpperCase()+righthalf.substring(1,l);jj=lefthalf+righthalf}for(f=0;f<p.length;f++)if(jj.indexOf(p[f])>-1){i=jj.indexOf(p[f]);lefthalf=jj.substring(0,i+p[f].length);righthalf=
jj.substring(i+p[f].length,l);righthalf=righthalf.substring(0,1).toUpperCase()+righthalf.substring(1,l);jj=lefthalf+righthalf}b.value=jj}}function uCse(b){b.value=b.value.toUpperCase()}function manualAddress(b){if(b=="Customer"){$("#ManualAddC").hide();$("*[id^=trC]").show()}else if(b=="Delivery"){$("#ManualAddD").hide();$("*[id^=trD]").show()}resizeCols(500)}
function getGoogleCounty(b){localSearch.setSearchCompleteCallback(null,function(){if(localSearch.results[0]){googleCounty=localSearch.results[0].region;googleCounty=googleCounty.replace(" And "," & ")}});localSearch.execute(b+", UK")}function setPayMethod(b){document.getElementById("payby"+b).checked=true}
function showMatchingAddresses(b){var c=$("#postcode_search_"+b).val(),f=$("#"+b+"Country :selected").val(),l=$("#"+b+"Country :selected").attr("zone"),p=$("#"+b+"HouseNumber").val(),t=b+"CountryPC";if(c=="")bAlert("<br><b>Please enter your postcode / zip code</b>","<b>Postcode / Zip Code</b>","msgSelect",2E3);else if(f=="")bAlert("<br><b>Please select your country</b>","<b>Country</b>","msgSelect",2E3);else{p=root+"/includes/pca.asp?a=showUK&p="+escape(c)+"&h="+escape(p)+"&c="+escape(f)+"&f="+escape(t)+
"&j=get"+l+"PC";if(l=="UK"){googleCounty="";getGoogleCounty(c);$("#"+b+"PCSearch").html("loading...");$.ajax({url:p,cache:false,success:function(v){if(v.indexOf("Address Found=")>-1){v=v.split("=");getUKPC(v[0],v[1])}else if(v.indexOf(t)>-1)$("#"+b+"PCSearch").html(v);else if(v.indexOf("Error:")>-1){$("#"+b+"PCSearch").html("");bAlert("<b>POSTCODE ERROR<br><br>"+v.substr(7)+"</b>","<b>Postcode Error</b>","msgSelect",6E3)}else{$("#"+b+"PCSearch").html("");alert(v)}},error:function(v){alert(v)}})}else l==
"WORLD"&&getGoogleCityAndCounty(c,f,b)}}
function getGoogleCityAndCounty(b,c,f){localSearch.setSearchCompleteCallback(null,function(){if(localSearch.results[0]){googleCounty=localSearch.results[0].region;googleCity=localSearch.results[0].city;googleCounty=googleCounty.replace(" And "," & ");if(f=="Customer"){$("#ManualAddC").hide();$("*[id^=trC]").show()}else if(f=="Delivery"){$("#ManualAddD").hide();$("*[id^=trD]").show()}$("#"+f+"PCSearch").html("");resizeCols(500);$("#"+f+"Town").val(googleCity);$("#"+f+"County").val(googleCounty);$("#"+
f+"PostCode").val(b)}});localSearch.execute(b+", "+c)}
function getUKPC(b,c){var f="",l="",p;if(b.indexOf("Customer")>-1)f="Customer";if(b.indexOf("Delivery")>-1)f="Delivery";p=c!="0"?c:$("#"+b).attr("selectedIndex")>0?$("#"+b+" :selected").val():0;var t=$("#"+f+"Country :selected").val();if(p=="")bAlert("<br><b>Please select your address</b>","<b>Select Address</b>","msgSelect",2E3);else{p=root+"/includes/pca.asp?a=getUK&id="+escape(p)+"&c="+escape(t);$.ajax({url:p,cache:false,success:function(v){if(v!=""){if(f=="Customer"){$("#ManualAddC").hide();$("*[id^=trC]").show()}else if(f==
"Delivery"){$("#ManualAddD").hide();$("*[id^=trD]").show()}$("#"+f+"PCSearch").html("");v=$.parseJSON(v);if(v.Line1.indexOf("Flat ")==0){v.Line1+=", "+v.Line2;v.Line2=v.Line3;v.Line3=v.Line4;v.Line4=v.Line5}resizeCols(500);$("#"+f+"CompanyName").val(v.Company);$("#"+f+"Address1").val(v.Line1);$("#"+f+"Address2").val(v.Line2);$("#"+f+"Address3").val(v.Line3);$("#"+f+"Town").val(v.PostTown);$("#"+f+"PostCode").val(v.Postcode);if(googleCounty!="")l=v.PostTown=="London"||v.PostTown=="Bristol"||v.PostTown==
"Swansea"||v.PostTown=="Glasgow"||v.PostTown=="Manchester"||v.PostTown=="Birmingham"?"":googleCounty;if(l=="Perth and Kinross")l="Perthshire";if(l=="East Riding Of Yorkshire")l="East Yorkshire";$("#"+f+"County").val(l);$("#"+f+"AddressValidated").val("PCA")}},error:function(v){alert(v)}})}}function trim(b){return b.replace(/^\s+|\s+$/g,"")}function ltrim(b){return b.replace(/^\s+/,"")}function rtrim(b){return b.replace(/\s+$/,"")}
function doClick(b){try{var c=document.createElement("a");if(typeof c.click=="undefined")location.href=b;else{c.href=b;document.body.appendChild(c);c.click()}}catch(f){location.href=b}};
// /includes/jquery-ui-1.8.2.custom.min.js2
var FlashHelper={movieIsLoaded:function(b){return typeof b!="undefined"?b.PercentLoaded()===100:false},getMovie:function(b){return navigator.appName.indexOf("Microsoft")!=-1?window[b]:document[b]}},okToPlay=true;
function playT(b,c){if(okToPlay){writeDebug("playT: "+b+", caller: "+c);var f=nowTrackCode==b;writeDebug("In playT: TC="+b+", nTC="+nowTrackCode);playerLoaded&&stopT(nowTrackCode,"playTstop");if(f)return false;retryCount=0;playWhenReady(b,"playT")}else{writeDebug("playT delayed");window.setTimeout(function(){playT(b,"playT delayed")},1E3)}}
function playWhenReady(b,c){writeDebug("playWhenReady: "+b+", caller: "+c);if(retryCount>10){writeDebug("Could not play when ready");return false}retryCount>5&&stopT(nowTrackCode,"forcingstop");if(playerLoaded||nowTrackCode!=""||!okToPlay){writeDebug("pWR: "+nowTrackCode+", "+okToPlay+", "+playerLoaded);setTimeout(function(){retryCount++;playWhenReady(b,"playWhenReady")},1E3)}else playTrack(b,"playWhenReady")}
function playTrack(b,c){okToPlay=false;var f="mp3";writeDebug("playTrack: "+b+", caller: "+c);if(b.indexOf("SF")>-1||b.indexOf("SB")>-1||b.indexOf("ME")>-1)f="swf";playOn(b);loadAlert(b,f);loadPlayer(b,f);$("#nowPlaying").html("<b>"+$("#r"+b+" .title a").html()+"</b><br>by <b><i>"+$("#r"+b+" .artist a").html()+"</i></b>");f=="mp3"&&setTimeout(function(){playerLoaded&&$.ajax({url:root+"/clip/MP3/"+b+"/",cache:true,success:function(l){l=$.parseJSON(l);l[0]=="OK"?$f("player"+b).play(l[1]).onFinish(function(){$f("player"+
b).hide();stopT(nowTrackCode,"onSongOver")}).onStop(function(){$f("player"+b).hide();stopT(nowTrackCode,"onStop")}):alert(l[1])},error:function(l){alert(l.status)}})},1E3);window.setTimeout(function(){okToPlay=true},2E3)}
function playOn(b){var c=$("#r"+b).css("background-color"),f=$("#r"+b).attr("class");if(c=="transparent"||c=="rgba(0, 0, 0, 0)")c="#FFFFFF";if(c.indexOf("rgba")>-1)c=rgba2hex(c);writeDebug("playOn: "+b+", BG:"+c+", "+f);$("#p"+b).attr("title","Stop").unbind("mouseenter mouseleave").removeClass().addClass("bStop").mouseenter(function(){$(this).removeClass().addClass("bStopOver")}).mouseleave(function(){$(this).removeClass().addClass("bStop")});writeDebug("Change BG of: "+$("#r"+b).attr("id")+" from "+
c+", to #DDDDDD");$("#r"+b).animate({backgroundColor:"#DDDDDD"},3E3);nowTrackCode=b}
function playOff(b,c){var f="#FFFFFF";switch($("#r"+b).attr("class")){case "addedMe":f="#FFFFCC";break;case "addedOther":f="#CCFFFF";break;case "addedMulti":f="#FFCCFF";break}writeDebug("playOff: "+b+", caller: "+c+", BG:"+f);$("#p"+b).attr("title","Play sample track").unbind("mouseenter mouseleave").removeClass().addClass("bPlayed").mouseenter(function(){$(this).removeClass().addClass("bPlayOver")}).mouseleave(function(){$(this).removeClass().addClass("bPlayed")});writeDebug("Change BG of: "+$("#r"+
b).attr("id")+" from #DDDDDD, to "+f);$("#r"+b).animate({backgroundColor:f},3E3)}function hidePlayer(b){writeDebug("In hidePlayer: TC="+b+", nTC="+nowTrackCode);try{if($f("player"+b)){$f("player"+b).hide();nowTrackCode="";writeDebug("hide and unload mp3 player")}if($("#player"+b)){$("#player"+b).hide();$("#player"+b).unload();nowTrackCode="";writeDebug("hide and unload swf player")}}catch(c){writeDebug("error in hidePlayer: "+c)}}function stopFT(b){stopT(b,"Flash")}function playFT(){}
function failedFT(){}function stopFlash(){obj=FlashHelper.getMovie("swfplayer");FlashHelper.movieIsLoaded(obj)&&obj.TCallLabel("/","stop")}
function stopT(b,c){writeDebug("In stopT: TC="+b+", nTC="+nowTrackCode);if(b!="")var f=b;else{f=nowTrackCode;writeDebug("TrackCode was empty, using nowTrackCode instead. nowTrackCode: "+nowTrackCode)}writeDebug("stopT: "+f+", for: "+c);if(f!=""){playOff(f,"StopT");hidePlayer(f);if(c=="boxystop"){$("#playerBox").remove();setPlayerLoaded(false)}else myPlayBox.hide(function(){$("#playerBox").remove();setPlayerLoaded(false)});ie6&&$("select").css({visibility:"visible"})}}function stopT2(){}
function setPlayerLoaded(b){playerLoaded=b}
function loadAlert(b,c){writeDebug("loadAlert: "+b);ie6&&$("select").css({visibility:"hidden"});if(c=="swf")myPlayBox=new Boxy('<div id="playerBox" class="player'+c+'"><span id="nowPlaying"></span><div id="player'+b+'" style="width:400px;height:300px;margin-top:5px;" ></div></div>',{title:"Preview: "+b,closeText:"[stop preview]",closeable:true,modal:false,show:true,unloadOnHide:true,beforeHide:function(){hidePlayer(b);stopFlash()},afterHide:function(){stopT(b,"boxystop")}});else if(c=="mp3")myPlayBox=
new Boxy('<div id="playerBox" class="player'+c+'"><span id="nowPlaying"></span><div id="player'+b+'" style="width:400px;height:30px;margin-top:5px;" ></div></div>',{title:"Preview: "+b,closeText:"[stop preview]",closeable:true,modal:false,show:true,unloadOnHide:true,beforeHide:function(){hidePlayer(b)},afterHide:function(){stopT(b,"boxystop")}})}
function loadPlayer(b,c){writeDebug('loadPlayer("'+c+'")');c=="mp3"&&$f("player"+b,{src:mRoot+"/includes/flowplayer-3.1.5.swf",wmode:"opaque",height:"30px"},{plugins:{audio:{url:mRoot+"/includes/flowplayer.audio-3.1.2.swf"},controls:{fullscreen:false,height:30,stop:true}}});c=="swf"&&$.ajax({url:root+"/clip/SWF/"+b+"/",cache:true,success:function(f){f=$.parseJSON(f);f[0]=="OK"?$("#player"+b).flash({id:"swfplayer",name:"swfplayer",swf:"/includes/swf_player_154.swf",params:{quality:"high",bgcolor:"#FFFFFF",
allowScriptAccess:"always"},flashvars:{trackCode:b},height:300,width:400}):alert(f[1])},error:function(f){alert(f.status)}});setPlayerLoaded(true)};

