// !MeAb! c/s/d/e/j/e/modernizr-1.6.js
window.Modernizr=function(a,b,c){function z(a){j.cssText=a}function A(a,b){return z(n.join(a+";")+(b||""))}function B(a,b){return(""+a).indexOf(b)!==-1}function C(a,b){for(var d in a)if(j[a[d]]!==c&&(!b||b(a[d],i)))return!0}function D(a,b){var c=a.charAt(0).toUpperCase()+a.substr(1),d=(a+" "+o.join(c+" ")+c).split(" ");return!!C(d,b)}function E(){e.input=function(a){for(var b=0,c=a.length;b<c;b++)s[a[b]]=a[b]in k;return s}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),e.inputtypes=function(a){for(var d=0,e,f=a.length;d<f;d++){k.setAttribute("type",a[d]),e=k.type!=="text";if(e){k.value=l;if(/^range$/.test(k.type)&&k.style.WebkitAppearance!==c){g.appendChild(k);var h=b.defaultView;e=h.getComputedStyle&&h.getComputedStyle(k,null).WebkitAppearance!=="textfield"&&k.offsetHeight!==0,g.removeChild(k)}else/^(search|tel)$/.test(k.type)||(/^(url|email)$/.test(k.type)?e=k.checkValidity&&k.checkValidity()===!1:e=k.value!=l)}r[a[d]]=!!e}return r}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var d="1.6",e={},f=!1,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k=b.createElement("input"),l=":)",m=Object.prototype.toString,n=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),o="Webkit Moz O ms Khtml".split(" "),p={svg:"http://www.w3.org/2000/svg"},q={},r={},s={},t=[],u,v=function(a){var c=document.createElement("style"),d=b.createElement("div"),e;return c.textContent=a+"{#modernizr{height:3px}}",(b.head||b.getElementsByTagName("head")[0]).appendChild(c),d.id="modernizr",g.appendChild(d),e=d.offsetHeight===3,c.parentNode.removeChild(c),d.parentNode.removeChild(d),!!e},w=function(){function b(b,d){d=d||document.createElement(a[b]||"div"),b="on"+b;var e=b in d;return e||(d.setAttribute||(d=document.createElement("div")),d.setAttribute&&d.removeAttribute&&(d.setAttribute(b,""),e=typeof d[b]=="function",typeof d[b]!="undefined"&&(d[b]=c),d.removeAttribute(b))),d=null,e}var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return b}(),x={}.hasOwnProperty,y;typeof x!="undefined"&&typeof x.call!="undefined"?y=function(a,b){return x.call(a,b)}:y=function(a,b){return b in a&&typeof a.constructor.prototype[b]=="undefined"},q.flexbox=function(){function a(a,b,c,d){b+=":",a.style.cssText=(b+n.join(c+";"+b)).slice(0,-b.length)+(d||"")}function c(a,b,c,d){a.style.cssText=n.join(b+":"+c+";")+(d||"")}var d=b.createElement("div"),e=b.createElement("div");a(d,"display","box","width:42px;padding:0;"),c(e,"box-flex","1","width:10px;"),d.appendChild(e),g.appendChild(d);var f=e.offsetWidth===42;return d.removeChild(e),g.removeChild(d),f},q.canvas=function(){var a=b.createElement("canvas");return!!a.getContext&&!!a.getContext("2d")},q.canvastext=function(){return!!e.canvas&&typeof b.createElement("canvas").getContext("2d").fillText=="function"},q.webgl=function(){var a=b.createElement("canvas");try{if(a.getContext("webgl"))return!0}catch(c){}try{if(a.getContext("experimental-webgl"))return!0}catch(c){}return!1},q.touch=function(){return"ontouchstart"in a||v("@media ("+n.join("touch-enabled),(")+"modernizr)")},q.geolocation=function(){return!!navigator.geolocation},q.postmessage=function(){return!!a.postMessage},q.websqldatabase=function(){var b=!!a.openDatabase;return b},q.indexedDB=function(){for(var b=-1,c=o.length;++b<c;){var d=o[b].toLowerCase();if(a[d+"_indexedDB"]||a[d+"IndexedDB"])return!0}return!1},q.hashchange=function(){return w("hashchange",a)&&(document.documentMode===c||document.documentMode>7)},q.history=function(){return!!a.history&&!!history.pushState},q.draganddrop=function(){return w("drag")&&w("dragstart")&&w("dragenter")&&w("dragover")&&w("dragleave")&&w("dragend")&&w("drop")},q.websockets=function(){return"WebSocket"in a},q.rgba=function(){return z("background-color:rgba(150,255,150,.5)"),B(j.backgroundColor,"rgba")},q.hsla=function(){return z("background-color:hsla(120,40%,100%,.5)"),B(j.backgroundColor,"rgba")||B(j.backgroundColor,"hsla")},q.multiplebgs=function(){return z("background:url(//:),url(//:),red url(//:)"),(new RegExp("(url\\s*\\(.*?){3}")).test(j.background)},q.backgroundsize=function(){return D("backgroundSize")},q.borderimage=function(){return D("borderImage")},q.borderradius=function(){return D("borderRadius","",function(a){return B(a,"orderRadius")})},q.boxshadow=function(){return D("boxShadow")},q.textshadow=function(){return b.createElement("div").style.textShadow===""},q.opacity=function(){return A("opacity:.5"),B(j.opacity,"0.5")},q.cssanimations=function(){return D("animationName")},q.csscolumns=function(){return D("columnCount")},q.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";return z((a+n.join(b+a)+n.join(c+a)).slice(0,-a.length)),B(j.backgroundImage,"gradient")},q.cssreflections=function(){return D("boxReflect")},q.csstransforms=function(){return!!C(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"])},q.csstransforms3d=function(){var a=!!C(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);return a&&(a=v("@media ("+n.join("transform-3d),(")+"modernizr)")),a},q.csstransitions=function(){return D("transitionProperty")},q.video=function(){var a=b.createElement("video"),c=!!a.canPlayType;if(c){c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"');var d='video/mp4; codecs="avc1.42E01E';c.h264=a.canPlayType(d+'"')||a.canPlayType(d+', mp4a.40.2"'),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"')}return c},q.audio=function(){var a=b.createElement("audio"),c=!!a.canPlayType;return c&&(c=new Boolean(c),c.ogg=a.canPlayType('audio/ogg; codecs="vorbis"'),c.mp3=a.canPlayType("audio/mpeg;"),c.wav=a.canPlayType('audio/wav; codecs="1"'),c.m4a=a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")),c},q.localstorage=function(){try{return"localStorage"in a&&a.localStorage!==null}catch(b){return!1}},q.sessionstorage=function(){try{return"sessionStorage"in a&&a.sessionStorage!==null}catch(b){return!1}},q.webWorkers=function(){return!!a.Worker},q.applicationcache=function(){return!!a.applicationCache},q.svg=function(){return!!b.createElementNS&&!!b.createElementNS(p.svg,"svg").createSVGRect},q.inlinesvg=function(){var a=document.createElement("div");return a.innerHTML="<svg/>",(a.firstChild&&a.firstChild.namespaceURI)==p.svg},q.smil=function(){return!!b.createElementNS&&/SVG/.test(m.call(b.createElementNS(p.svg,"animate")))},q.svgclippaths=function(){return!!b.createElementNS&&/SVG/.test(m.call(b.createElementNS(p.svg,"clipPath")))};for(var F in q)y(q,F)&&(u=F.toLowerCase(),e[u]=q[F](),t.push((e[u]?"":"no-")+u));return e.input||E(),e.crosswindowmessaging=e.postmessage,e.historymanagement=e.history,e.addTest=function(a,b){a=a.toLowerCase();if(e[a])return;return b=!!b(),g.className+=" "+(b?"":"no-")+a,e[a]=b,e},z(""),i=k=null,f&&a.attachEvent&&function(){var a=b.createElement("div");return a.innerHTML="<elem></elem>",a.childNodes.length!==1}()&&function(a,b){function m(a){var b=-1;while(++b<e)a.createElement(d[b])}function n(a,b){var c=a.length,d=-1,e,f=[];while(++d<c)e=a[d],b=e.media||b,f.push(n(e.imports,b)),f.push(e.cssText);return f.join("")}var c="abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",d=c.split("|"),e=d.length,f=new RegExp("<(/*)("+c+")","gi"),g=new RegExp("\\b("+c+")\\b(?!.*[;}])","gi"),h=b.createDocumentFragment(),i=b.documentElement,j=i.firstChild,k=b.createElement("style"),l=b.createElement("body");k.media="all",m(b),m(h),a.attachEvent("onbeforeprint",function(){var a=-1;while(++a<e){var c=b.getElementsByTagName(d[a]),m=c.length,o=-1;while(++o<m)c[o].className.indexOf("iepp_")<0&&(c[o].className+=" iepp_"+d[a])}j.insertBefore(k,j.firstChild),k.styleSheet.cssText=n(b.styleSheets,"all").replace(g,".iepp_$1"),h.appendChild(b.body),i.appendChild(l),l.innerHTML=h.firstChild.innerHTML.replace(f,"<$1bdo")}),a.attachEvent("onafterprint",function(){l.innerHTML="",i.removeChild(l),j.removeChild(k),i.appendChild(h.firstChild)})}(this,document),e._enableHTML5=f,e._version=d,g.className=g.className.replace(/\bno-js\b/,"")+" js",g.className+=" "+t.join(" "),e}(this,this.document);
// !MeAb! c/s/d/e/j/e/jquery-1.6.1.js
(function(a,b){function k(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(j,"$1-$2").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNaN(d)?i.test(d)?f.parseJSON(d):d:parseFloat(d)}catch(g){}f.data(a,c,d)}else d=b}return d}function l(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function m(a,c,d){var e=c+"defer",g=c+"queue",h=c+"mark",i=f.data(a,e,b,!0);i&&(d==="queue"||!f.data(a,g,b,!0))&&(d==="mark"||!f.data(a,h,b,!0))&&setTimeout(function(){!f.data(a,g,b,!0)&&!f.data(a,h,b,!0)&&(f.removeData(a,e,!0),i.resolve())},0)}function E(){return!1}function F(){return!0}function L(a,c,d){var e=f.extend({},d[0]);e.type=a,e.originalEvent={},e.liveFired=b,f.event.handle.call(c,e),e.isDefaultPrevented()&&d[0].preventDefault()}function N(a){var b,c,d,e,g,h,i,j,k,l,m,n,o,p=[],q=[],r=f._data(this,"events");if(a.liveFired===this||!r||!r.live||a.target.disabled||a.button&&a.type==="click")return;a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var s=r.live.slice(0);for(i=0;i<s.length;i++)g=s[i],g.origType.replace(y,"")===a.type?q.push(g.selector):s.splice(i--,1);e=f(a.target).closest(q,a.currentTarget);for(j=0,k=e.length;j<k;j++){m=e[j];for(i=0;i<s.length;i++){g=s[i];if(m.selector===g.selector&&(!n||n.test(g.namespace))&&!m.elem.disabled){h=m.elem,d=null;if(g.preType==="mouseenter"||g.preType==="mouseleave")a.type=g.preType,d=f(a.relatedTarget).closest(g.selector)[0],d&&f.contains(h,d)&&(d=h);(!d||d!==h)&&p.push({elem:h,handleObj:g,level:m.level})}}}for(j=0,k=p.length;j<k;j++){e=p[j];if(c&&e.level>c)break;a.currentTarget=e.elem,a.data=e.handleObj.data,a.handleObj=e.handleObj,o=e.handleObj.origHandler.apply(e.elem,arguments);if(o===!1||a.isPropagationStopped()){c=e.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}function O(a,b){return(a&&a!=="*"?a+".":"")+b.replace(A,"`").replace(B,"&")}function W(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function X(a,b,c){b=b||0;if(f.isFunction(b))return f.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return f.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=f.grep(a,function(a){return a.nodeType===1});if(S.test(b))return f.filter(b,d,!c);b=f.filter(b,d)}return f.grep(a,function(a,d){return f.inArray(a,b)>=0===c})}function bh(a,b){return f.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function bi(a,b){if(b.nodeType!==1||!f.hasData(a))return;var c=f.expando,d=f.data(a),e=f.data(b,d);if(d=d[c]){var g=d.events;e=e[c]=f.extend({},d);if(g){delete e.handle,e.events={};for(var h in g)for(var i=0,j=g[h].length;i<j;i++)f.event.add(b,h+(g[h][i].namespace?".":"")+g[h][i].namespace,g[h][i],g[h][i].data)}}}function bj(a,b){var c;if(b.nodeType!==1)return;b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase();if(c==="object")b.outerHTML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(f.expando)}function bk(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function bl(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bm(a){f.nodeName(a,"input")?bl(a):a.getElementsByTagName&&f.grep(a.getElementsByTagName("input"),bl)}function bn(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(bf,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)}function bD(a,b,c){var d=b==="width"?bx:by,e=b==="width"?a.offsetWidth:a.offsetHeight;return c==="border"?e:(f.each(d,function(){c||(e-=parseFloat(f.css(a,"padding"+this))||0),c==="margin"?e+=parseFloat(f.css(a,"margin"+this))||0:e-=parseFloat(f.css(a,"border"+this+"Width"))||0}),e)}function bZ(a){return function(b,c){typeof b!="string"&&(c=b,b="*");if(f.isFunction(c)){var d=b.toLowerCase().split(bQ),e=0,g=d.length,h,i,j;for(;e<g;e++)h=d[e],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function b$(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bU,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l=="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=b$(a,c,d,e,l,g)));return(k||!l)&&!g["*"]&&(l=b$(a,c,d,e,"*",g)),l}function b_(a,b,c,d){if(f.isArray(b))f.each(b,function(b,e){c||bF.test(a)?d(a,e):b_(a+"["+(typeof e=="object"||f.isArray(e)?b:"")+"]",e,c,d)});else if(!c&&b!=null&&typeof b=="object")for(var e in b)b_(a+"["+e+"]",b[e],c,d);else d(a,b)}function ca(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d&&(c[g[i]]=d[i]);while(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"));if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j)return j!==f[0]&&f.unshift(j),d[j]}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in a.converters)typeof h=="string"&&(e[h.toLowerCase()]=a.converters[h]);l=k,k=d[g];if(k==="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=e[m]||e["* "+k];if(!n){p=b;for(o in e){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=e[j[1]+" "+k];if(p){o=e[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&f.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return c}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function cs(){return setTimeout(ct,0),cq=f.now()}function ct(){cq=b}function cu(a,b){var c={};return f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a}),c}function cv(a){if(!cj[a]){var b=f("<"+a+">").appendTo("body"),d=b.css("display");b.remove();if(d==="none"||d===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),c.body.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write("<!doctype><html><body></body></html>");b=cl.createElement(a),cl.body.appendChild(b),d=f.css(b,"display"),c.body.removeChild(ck)}cj[a]=d}return cj[a]}function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}var c=a.document,d=a.navigator,e=a.location,f=function(){function H(){if(e.isReady)return;try{c.documentElement.doScroll("left")}catch(a){setTimeout(H,1);return}e.ready()}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/\d/,n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,o=/^[\],:{}\s]*$/,p=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,q=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,r=/(?:^|:|,)(?:\s*\[)+/g,s=/(webkit)[ \/]([\w.]+)/,t=/(opera)(?:.*version)?[ \/]([\w.]+)/,u=/(msie) ([\w.]+)/,v=/(mozilla)(?:.*? rv:([\w.]+))?/,w=d.userAgent,x,y,z,A=Object.prototype.toString,B=Object.prototype.hasOwnProperty,C=Array.prototype.push,D=Array.prototype.slice,E=String.prototype.trim,F=Array.prototype.indexOf,G={};return e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if(a==="body"&&!d&&c.body)return this.context=c,this[0]=c.body,this.selector=a,this.length=1,this;if(typeof a=="string"){a.charAt(0)==="<"&&a.charAt(a.length-1)===">"&&a.length>=3?g=[null,a,null]:g=i.exec(a);if(g&&(g[1]||!d)){if(g[1])return d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=n.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes),e.merge(this,a);h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}return this.context=c,this.selector=a,this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}return e.isFunction(a)?f.ready(a):(a.selector!==b&&(this.selector=a.selector,this.context=a.context),e.makeArray(a,this))},selector:"",jquery:"1.6.1",length:0,size:function(){return this.length},toArray:function(){return D.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();return e.isArray(a)?C.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")"),d},each:function(a,b){return e.each(this,a,b)},ready:function(a){return e.bindReady(),y.done(a),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(D.apply(this,arguments),"slice",D.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:C,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){d=i[c],f=a[c];if(i===f)continue;l&&f&&(e.isPlainObject(f)||(g=e.isArray(f)))?(g?(g=!1,h=d&&e.isArray(d)?d:[]):h=d&&e.isPlainObject(d)?d:{},i[c]=e.extend(l,h,f)):f!==b&&(i[c]=f)}return i},e.extend({noConflict:function(b){return a.$===e&&(a.$=g),b&&a.jQuery===e&&(a.jQuery=f),e},isReady:!1,readyWait:1,holdReady:function(a){a?e.readyWait++:e.ready(!0)},ready:function(a){if(a===!0&&!--e.readyWait||a!==!0&&!e.isReady){if(!c.body)return setTimeout(e.ready,1);e.isReady=!0;if(a!==!0&&--e.readyWait>0)return;y.resolveWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").unbind("ready")}},bindReady:function(){if(y)return;y=e._Deferred();if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",z,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",z),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&H()}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNaN:function(a){return a==null||!m.test(a)||isNaN(a)},type:function(a){return a==null?String(a):G[A.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;if(a.constructor&&!B.call(a,"constructor")&&!B.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a);return c===b||B.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(o.test(b.replace(p,"@").replace(q,"]").replace(r,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(b,c,d){return a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),d=c.documentElement,(!d||!d.nodeName||d.nodeName==="parsererror")&&e.error("Invalid XML: "+b),c},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g<h;)if(c.apply(a[g++],d)===!1)break}else if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(;g<h;)if(c.call(a[g],g,a[g++])===!1)break;return a},trim:E?function(a){return a==null?"":E.call(a)}:function(a){return a==null?"":a.toString().replace(k,"").replace(l,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var d=e.type(a);a.length==null||d==="string"||d==="function"||d==="regexp"||e.isWindow(a)?C.call(c,a):e.merge(c,a)}return c},inArray:function(a,b){if(F)return F.call(b,a);for(var c=0,d=b.length;c<d;c++)if(b[c]===a)return c;return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length=="number")for(var f=c.length;e<f;e++)a[d++]=c[e];else while(c[e]!==b)a[d++]=c[e++];return a.length=d,a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,c,d){var f,g,h=[],i=0,j=a.length,k=a instanceof e||j!==b&&typeof j=="number"&&(j>0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i<j;i++)f=c(a[i],i,d),f!=null&&(h[h.length]=f);else for(g in a)f=c(a[g],g,d),f!=null&&(h[h.length]=f);return h.concat.apply([],h)},guid:1,proxy:function(a,c){if(typeof c=="string"){var d=a[c];c=a,a=d}if(!e.isFunction(a))return b;var f=D.call(arguments,2),g=function(){return a.apply(c,f.concat(D.call(arguments)))};return g.guid=a.guid=a.guid||g.guid||e.guid++,g},access:function(a,c,d,f,g,h){var i=a.length;if(typeof c=="object"){for(var j in c)e.access(a,j,c[j],f,g,d);return a}if(d!==b){f=!h&&f&&e.isFunction(d);for(var k=0;k<i;k++)g(a[k],c,f?d.call(a[k],k,g(a[k],c)):d,h);return a}return i?g(a[0],c):b},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=s.exec(a)||t.exec(a)||u.exec(a)||a.indexOf("compatible")<0&&v.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}e.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function d(c,d){return d&&d instanceof e&&!(d instanceof a)&&(d=a(d)),e.fn.init.call(this,c,d,b)},a.fn.init.prototype=a.fn;var b=a(c);return a},browser:{}}),e.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){G["[object "+b+"]"]=b.toLowerCase()}),x=e.uaMatch(w),x.browser&&(e.browser[x.browser]=!0,e.browser.version=x.version),e.browser.webkit&&(e.browser.safari=!0),j.test(" ")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/),h=e(c),c.addEventListener?z=function(){c.removeEventListener("DOMContentLoaded",z,!1),e.ready()}:c.attachEvent&&(z=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",z),e.ready())}),e}(),g="done fail isResolved isRejected promise then always pipe".split(" "),h=[].slice;f.extend({_Deferred:function(){var a=[],b,c,d,e={done:function(){if(!d){var c=arguments,g,h,i,j,k;b&&(k=b,b=0);for(g=0,h=c.length;g<h;g++)i=c[g],j=f.type(i),j==="array"?e.done.apply(e,i):j==="function"&&a.push(i);k&&e.resolveWith(k[0],k[1])}return this},resolveWith:function(e,f){if(!d&&!b&&!c){f=f||[],c=1;try{while(a[0])a.shift().apply(e,f)}finally{b=[e,f],c=0}}return this},resolve:function(){return e.resolveWith(this,arguments),this},isResolved:function(){return!!c||!!b},cancel:function(){return d=1,a=[],this}};return e},Deferred:function(a){var b=f._Deferred(),c=f._Deferred(),d;return f.extend(b,{then:function(a,c){return b.done(a).fail(c),this},always:function(){return b.done.apply(b,arguments).fail.apply(this,arguments)},fail:c.done,rejectWith:c.resolveWith,reject:c.resolve,isRejected:c.isResolved,pipe:function(a,c){return f.Deferred(function(d){f.each({done:[a,"resolve"],fail:[c,"reject"]},function(a,c){var e=c[0],g=c[1],h;f.isFunction(e)?b[a](function(){h=e.apply(this,arguments),h&&f.isFunction(h.promise)?h.promise().then(d.resolve,d.reject):d[g](h)}):b[a](d[g])})}).promise()},promise:function(a){if(a==null){if(d)return d;d=a={}}var c=g.length;while(c--)a[g[c]]=b[g[c]];return a}}),b.done(c.cancel).fail(b.cancel),delete b.cancel,a&&a.call(b,b),b},when:function(a){function i(a){return function(c){b[a]=arguments.length>1?h.call(arguments,0):c,--e||g.resolveWith(g,h.call(b,0))}}var b=arguments,c=0,d=b.length,e=d,g=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred();if(d>1){for(;c<d;c++)b[c]&&f.isFunction(b[c].promise)?b[c].promise().then(i(c),g.reject):--e;e||g.resolveWith(g,b)}else g!==a&&g.resolveWith(g,d?[a]:[]);return g.promise()}}),f.support=function(){var a=c.createElement("div"),b=c.documentElement,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r;a.setAttribute("className","t"),a.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",d=a.getElementsByTagName("*"),e=a.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};f=c.createElement("select"),g=f.appendChild(c.createElement("option")),h=a.getElementsByTagName("input")[0],j={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55$/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:h.value==="on",optSelected:g.selected,getSetAttribute:a.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},h.checked=!0,j.noCloneChecked=h.cloneNode(!0).checked,f.disabled=!0,j.optDisabled=!g.disabled;try{delete a.test}catch(s){j.deleteExpando=!1}!a.addEventListener&&a.attachEvent&&a.fireEvent&&(a.attachEvent("onclick",function t(){j.noCloneEvent=!1,a.detachEvent("onclick",t)}),a.cloneNode(!0).fireEvent("onclick")),h=c.createElement("input"),h.value="t",h.setAttribute("type","radio"),j.radioValue=h.value==="t",h.setAttribute("checked","checked"),a.appendChild(h),k=c.createDocumentFragment(),k.appendChild(a.firstChild),j.checkClone=k.cloneNode(!0).cloneNode(!0).lastChild.checked,a.innerHTML="",a.style.width=a.style.paddingLeft="1px",l=c.createElement("body"),m={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};for(q in m)l.style[q]=m[q];l.appendChild(a),b.insertBefore(l,b.firstChild),j.appendChecked=h.checked,j.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,j.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="<div style='width:4px;'></div>",j.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",n=a.getElementsByTagName("td"),r=n[0].offsetHeight===0,n[0].style.display="",n[1].style.display="none",j.reliableHiddenOffsets=r&&n[0].offsetHeight===0,a.innerHTML="",c.defaultView&&c.defaultView.getComputedStyle&&(i=c.createElement("div"),i.style.width="0",i.style.marginRight="0",a.appendChild(i),j.reliableMarginRight=(parseInt((c.defaultView.getComputedStyle(i,null)||{marginRight:0}).marginRight,10)||0)===0),l.innerHTML="",b.removeChild(l);if(a.attachEvent)for(q in{submit:1,change:1,focusin:1})p="on"+q,r=p in a,r||(a.setAttribute(p,"return;"),r=typeof a[p]=="function"),j[q+"Bubbles"]=r;return j}(),f.boxModel=f.support.boxModel;var i=/^(?:\{.*\}|\[.*\])$/,j=/([a-z])([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){return a=a.nodeType?f.cache[a[f.expando]]:a[f.expando],!!a&&!l(a)},data:function(a,c,d,e){if(!f.acceptData(a))return;var g=f.expando,h=typeof c=="string",i,j=a.nodeType,k=j?f.cache:a,l=j?a[f.expando]:a[f.expando]&&f.expando;if((!l||e&&l&&!k[l][g])&&h&&d===b)return;l||(j?a[f.expando]=l=++f.uuid:l=f.expando),k[l]||(k[l]={},j||(k[l].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?k[l][g]=f.extend(k[l][g],c):k[l]=f.extend(k[l],c);return i=k[l],e&&(i[g]||(i[g]={}),i=i[g]),d!==b&&(i[f.camelCase(c)]=d),c==="events"&&!i[c]?i[g]&&i[g].events:h?i[f.camelCase(c)]:i},removeData:function(b,c,d){if(!f.acceptData(b))return;var e=f.expando,g=b.nodeType,h=g?f.cache:b,i=g?b[f.expando]:f.expando;if(!h[i])return;if(c){var j=d?h[i][e]:h[i];if(j){delete j[c];if(!l(j))return}}if(d){delete h[i][e];if(!l(h[i]))return}var k=h[i][e];f.support.deleteExpando||h!=a?delete h[i]:h[i]=null,k?(h[i]={},g||(h[i].toJSON=f.noop),h[i][e]=k):g&&(f.support.deleteExpando?delete b[f.expando]:b.removeAttribute?b.removeAttribute(f.expando):b[f.expando]=null)},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d=null;if(typeof a=="undefined"){if(this.length){d=f.data(this[0]);if(this[0].nodeType===1){var e=this[0].attributes,g;for(var h=0,i=e.length;h<i;h++)g=e[h].name,g.indexOf("data-")===0&&(g=f.camelCase(g.substring(5)),k(this[0],g,d[g]))}}return d}if(typeof a=="object")return this.each(function(){f.data(this,a)});var j=a.split(".");return j[1]=j[1]?"."+j[1]:"",c===b?(d=this.triggerHandler("getData"+j[1]+"!",[j[0]]),d===b&&this.length&&(d=f.data(this[0],a),d=k(this[0],a,d)),d===b&&j[1]?this.data(j[0]):d):this.each(function(){var b=f(this),d=[j[0],c];b.triggerHandler("setData"+j[1]+"!",d),f.data(this,a,c),b.triggerHandler("changeData"+j[1]+"!",d)})},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,c){a&&(c=(c||"fx")+"mark",f.data(a,c,(f.data(a,c,b,!0)||0)+1,!0))},_unmark:function(a,c,d){a!==!0&&(d=c,c=a,a=!1);if(c){d=d||"fx";var e=d+"mark",g=a?0:(f.data(c,e,b,!0)||1)-1;g?f.data(c,e,g,!0):(f.removeData(c,e,!0),m(c,d,"mark"))}},queue:function(a,c,d){if(a){c=(c||"fx")+"queue";var e=f.data(a,c,b,!0);return d&&(!e||f.isArray(d)?e=f.data(a,c,f.makeArray(d),!0):e.push(d)),e||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e;d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),d.call(a,function(){f.dequeue(a,b)})),c.length||(f.removeData(a,b+"queue",!0),m(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){return typeof a!="string"&&(c=a,a="fx"),c===b?f.queue(this[0],a):this.each(function(){var b=f.queue(this,a,c);a==="fx"&&b[0]!=="inprogress"&&f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,a)})},delay:function(a,b){return a=f.fx?f.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(){var c=this;setTimeout(function(){f.dequeue(c,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){function m(){--h||d.resolveWith(e,[e])}typeof a!="string"&&(c=a,a=b),a=a||"fx";var d=f.Deferred(),e=this,g=e.length,h=1,i=a+"defer",j=a+"queue",k=a+"mark",l;while(g--)if(l=f.data(e[g],i,b,!0)||(f.data(e[g],j,b,!0)||f.data(e[g],k,b,!0))&&f.data(e[g],i,f._Deferred(),!0))h++,l.done(m);return m(),d.promise()}});var n=/[\n\t\r]/g,o=/\s+/,p=/\r/g,q=/^(?:button|input)$/i,r=/^(?:button|input|object|select|textarea)$/i,s=/^a(?:rea)?$/i,t=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,u=/\:/,v,w;f.fn.extend({attr:function(a,b){return f.access(this,a,b,!0,f.attr)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,a,b,!0,f.prop)},removeProp:function(a){return a=f.propFix[a]||a,this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.addClass(a.call(this,b,c.attr("class")||""))});if(a&&typeof a=="string"){var b=(a||"").split(o);for(var c=0,d=this.length;c<d;c++){var e=this[c];if(e.nodeType===1)if(!e.className)e.className=a;else{var g=" "+e.className+" ",h=e.className;for(var i=0,j=b.length;i<j;i++)g.indexOf(" "+b[i]+" ")<0&&(h+=" "+b[i]);e.className=f.trim(h)}}}return this},removeClass:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.removeClass(a.call(this,b,c.attr("class")))});if(a&&typeof a=="string"||a===b){var c=(a||"").split(o);for(var d=0,e=this.length;d<e;d++){var g=this[d];if(g.nodeType===1&&g.className)if(a){var h=(" "+g.className+" ").replace(n," ");for(var i=0,j=c.length;i<j;i++)h=h.replace(" "+c[i]+" "," ");g.className=f.trim(h)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";return f.isFunction(a)?this.each(function(c){var d=f(this);d.toggleClass(a.call(this,c,d.attr("class"),b),b)}):this.each(function(){if(c==="string"){var e,g=0,h=f(this),i=b,j=a.split(o);while(e=j[g++])i=d?i:!h.hasClass(e),h[i?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&f._data(this,"__className__",this.className),this.className=this.className||a===!1?"":f._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ";for(var c=0,d=this.length;c<d;c++)if((" "+this[c].className+" ").replace(n," ").indexOf(b)>-1)return!0;return!1},val:function(a){var c,d,e=this[0];if(!arguments.length)return e?(c=f.valHooks[e.nodeName.toLowerCase()]||f.valHooks[e.type],c&&"get"in c&&(d=c.get(e,"value"))!==b?d:(e.value||"").replace(p,"")):b;var g=f.isFunction(a);return this.each(function(d){var e=f(this),h;if(this.nodeType!==1)return;g?h=a.call(this,d,e.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h})}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c=a.selectedIndex,d=[],e=a.options,g=a.type==="select-one";if(c<0)return null;for(var h=g?c:0,i=g?c+1:e.length;h<i;h++){var j=e[h];if(j.selected&&(f.support.optDisabled?!j.disabled:j.getAttribute("disabled")===null)&&(!j.parentNode.disabled||!f.nodeName(j.parentNode,"optgroup"))){b=f(j).val();if(g)return b;d.push(b)}}return g&&!d.length&&e.length?f(e[c]).val():d},set:function(a,b){var c=f.makeArray(b);return f(a).find("option").each(function(){this.selected=f.inArray(f(this).val(),c)>=0}),c.length||(a.selectedIndex=-1),c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(a,c,d,e){var g=a.nodeType;if(!a||g===3||g===8||g===2)return b;if(e&&c in f.attrFn)return f(a)[c](d);if("getAttribute"in a){var h,i,j=g!==1||!f.isXMLDoc(a);return c=j&&f.attrFix[c]||c,i=f.attrHooks[c],i||(!t.test(c)||typeof d!="boolean"&&d!==b&&d.toLowerCase()!==c.toLowerCase()?v&&(f.nodeName(a,"form")||u.test(c))&&(i=v):i=w),d!==b?d===null?(f.removeAttr(a,c),b):i&&"set"in i&&j&&(h=i.set(a,d,c))!==b?h:(a.setAttribute(c,""+d),d):i&&"get"in i&&j?i.get(a,c):(h=a.getAttribute(c),h===null?b:h)}return f.prop(a,c,d)},removeAttr:function(a,b){var c;a.nodeType===1&&(b=f.attrFix[b]||b,f.support.getSetAttribute?a.removeAttribute(b):(f.attr(a,b,""),a.removeAttributeNode(a.getAttributeNode(b))),t.test(b)&&(c=f.propFix[b]||b)in a&&(a[c]=!1))},attrHooks:{type:{set:function(a,b){if(q.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}},tabIndex:{get:function(a){var c=a.getAttributeNode("tabIndex");return c&&c.specified?parseInt(c.value,10):r.test(a.nodeName)||s.test(a.nodeName)&&a.href?0:b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e=a.nodeType;if(!a||e===3||e===8||e===2)return b;var g,h,i=e!==1||!f.isXMLDoc(a);return c=i&&f.propFix[c]||c,h=f.propHooks[c],d!==b?h&&"set"in h&&(g=h.set(a,d,c))!==b?g:a[c]=d:h&&"get"in h&&(g=h.get(a,c))!==b?g:a[c]},propHooks:{}}),w={get:function(a,c){return a[f.propFix[c]||c]?c.toLowerCase():b},set:function(a,b,c){var d;return b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=b),a.setAttribute(c,c.toLowerCase())),c}},f.attrHooks.value={get:function(a,b){return v&&f.nodeName(a,"button")?v.get(a,b):a.value},set:function(a,b,c){if(v&&f.nodeName(a,"button"))return v.set(a,b,c);a.value=b}},f.support.getSetAttribute||(f.attrFix=f.propFix,v=f.attrHooks.name=f.valHooks.button={get:function(a,c){var d;return d=a.getAttributeNode(c),d&&d.nodeValue!==""?d.nodeValue:b},set:function(a,b,c){var d=a.getAttributeNode(c);if(d)return d.nodeValue=b,b}},f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c==="")return a.setAttribute(b,"auto"),c}})})),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}})),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var x=Object.prototype.hasOwnProperty,y=/\.(.*)$/,z=/^(?:textarea|input|select)$/i,A=/\./g,B=/ /g,C=/[^\w\s.|`]/g,D=function(a){return a.replace(C,"\\$&")};f.event={add:function(a,c,d,e){if(a.nodeType===3||a.nodeType===8)return;if(d===!1)d=E;else if(!d)return;var g,h;d.handler&&(g=d,d=g.handler),d.guid||(d.guid=f.guid++);var i=f._data(a);if(!i)return;var j=i.events,k=i.handle;j||(i.events=j={}),k||(i.handle=k=function(a){return typeof f=="undefined"||!!a&&f.event.triggered===a.type?b:f.event.handle.apply(k.elem,arguments)}),k.elem=a,c=c.split(" ");var l,m=0,n;while(l=c[m++]){h=g?f.extend({},g):{handler:d,data:e},l.indexOf(".")>-1?(n=l.split("."),l=n.shift(),h.namespace=n.slice(0).sort().join(".")):(n=[],h.namespace=""),h.type=l,h.guid||(h.guid=d.guid);var o=j[l],p=f.event.special[l]||{};if(!o){o=j[l]=[];if(!p.setup||p.setup.call(a,e,n,k)===!1)a.addEventListener?a.addEventListener(l,k,!1):a.attachEvent&&a.attachEvent("on"+l,k)}p.add&&(p.add.call(a,h),h.handler.guid||(h.handler.guid=d.guid)),o.push(h),f.event.global[l]=!0}a=null},global:{},remove:function(a,c,d,e){if(a.nodeType===3||a.nodeType===8)return;d===!1&&(d=E);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=f.hasData(a)&&f._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(d=c.handler,c=c.type);if(!c||typeof c=="string"&&c.charAt(0)==="."){c=c||"";for(h in t)f.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+f.map(m.slice(0).sort(),D).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!d){for(j=0;j<p.length;j++){q=p[j];if(l||n.test(q.namespace))f.event.remove(a,r,q.handler,j),p.splice(j--,1)}continue}o=f.event.special[h]||{};for(j=e||0;j<p.length;j++){q=p[j];if(d.guid===q.guid){if(l||n.test(q.namespace))e==null&&p.splice(j--,1),o.remove&&o.remove.call(a,q);if(e!=null)break}}if(p.length===0||e!=null&&p.length===1)(!o.teardown||o.teardown.call(a,m)===!1)&&f.removeEvent(a,h,s.handle),g=null,delete t[h]}if(f.isEmptyObject(t)){var u=s.handle;u&&(u.elem=null),delete s.events,delete s.handle,f.isEmptyObject(s)&&f.removeData(a,b,!0)}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,e,g){var h=c.type||c,i=[],j;h.indexOf("!")>=0&&(h=h.slice(0,-1),j=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.exclusive=j,c.namespace=i.join("."),c.namespace_re=new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)");if(g||!e)c.preventDefault(),c.stopPropagation();if(!e){f.each(f.cache,function(){var a=f.expando,b=this[a];b&&b.events&&b.events[h]&&f.event.trigger(c,d,b.handle.elem)});return}if(e.nodeType===3||e.nodeType===8)return;c.result=b,c.target=e,d=d?f.makeArray(d):[],d.unshift(c);var k=e,l=h.indexOf(":")<0?"on"+h:"";do{var m=f._data(k,"handle");c.currentTarget=k,m&&m.apply(k,d),l&&f.acceptData(k)&&k[l]&&k[l].apply(k,d)===!1&&(c.result=!1,c.preventDefault()),k=k.parentNode||k.ownerDocument||k===c.target.ownerDocument&&a}while(k&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var n,o=f.event.special[h]||{};if((!o._default||o._default.call(e.ownerDocument,c)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)){try{l&&e[h]&&(n=e[l],n&&(e[l]=null),f.event.triggered=h,e[h]())}catch(p){}n&&(e[l]=n),f.event.triggered=b}}return c.result},handle:function(c){c=f.event.fix(c||a.event);var d=((f._data(this,"events")||{})[c.type]||[]).slice(0),e=!c.exclusive&&!c.namespace,g=Array.prototype.slice.call(arguments,0);g[0]=c,c.currentTarget=this;for(var h=0,i=d.length;h<i;h++){var j=d[h];if(e||c.namespace_re.test(j.namespace)){c.handler=j.handler,c.data=j.data,c.handleObj=j;var k=j.handler.apply(this,g);k!==b&&(c.result=k,k===!1&&(c.preventDefault(),c.stopPropagation()));if(c.isImmediatePropagationStopped())break}}return c.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(a){if(a[f.expando])return a;var d=a;a=f.Event(d);for(var e=this.props.length,g;e;)g=this.props[--e],a[g]=d[g];a.target||(a.target=a.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),!a.relatedTarget&&a.fromElement&&(a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement);if(a.pageX==null&&a.clientX!=null){var h=a.target.ownerDocument||c,i=h.documentElement,j=h.body;a.pageX=a.clientX+(i&&i.scrollLeft||j&&j.scrollLeft||0)-(i&&i.clientLeft||j&&j.clientLeft||0),a.pageY=a.clientY+(i&&i.scrollTop||j&&j.scrollTop||0)-(i&&i.clientTop||j&&j.clientTop||0)}return a.which==null&&(a.charCode!=null||a.keyCode!=null)&&(a.which=a.charCode!=null?a.charCode:a.keyCode),!a.metaKey&&a.ctrlKey&&(a.metaKey=a.ctrlKey),!a.which&&a.button!==b&&(a.which=a.button&1?1:a.button&2?3:a.button&4?2:0),a},guid:1e8,proxy:f.proxy,special:{ready:{setup:f.bindReady,teardown:f.noop},live:{add:function(a){f.event.add(this,O(a.origType,a.selector),f.extend({},a,{handler:N,guid:a.handler.guid}))},remove:function(a){f.event.remove(this,O(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}}},f.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},f.Event=function(a,b){if(!this.preventDefault)return new f.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?F:E):this.type=a,b&&f.extend(this,b),this.timeStamp=f.now(),this[f.expando]=!0},f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=F;var a=this.originalEvent;if(!a)return;a.preventDefault?a.preventDefault():a.returnValue=!1},stopPropagation:function(){this.isPropagationStopped=F;var a=this.originalEvent;if(!a)return;a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=F,this.stopPropagation()},isDefaultPrevented:E,isPropagationStopped:E,isImmediatePropagationStopped:E};var G=function(a){var b=a.relatedTarget;a.type=a.data;try{if(b&&b!==c&&!b.parentNode)return;while(b&&b!==this)b=b.parentNode;b!==this&&f.event.handle.apply(this,arguments)}catch(d){}},H=function(a){a.type=a.data,f.event.handle.apply(this,arguments)};f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){f.event.special[a]={setup:function(c){f.event.add(this,b,c&&c.selector?H:G,a)},teardown:function(a){f.event.remove(this,b,a&&a.selector?H:G)}}}),f.support.submitBubbles||(f.event.special.submit={setup:function(a,b){if(!f.nodeName(this,"form"))f.event.add(this,"click.specialSubmit",function(a){var b=a.target,c=b.type;(c==="submit"||c==="image")&&f(b).closest("form").length&&L("submit",this,arguments)}),f.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,c=b.type;(c==="text"||c==="password")&&f(b).closest("form").length&&a.keyCode===13&&L("submit",this,arguments)});else return!1},teardown:function(a){f.event.remove(this,".specialSubmit")}});if(!f.support.changeBubbles){var I,J=function(a){var b=a.type,c=a.value;return b==="radio"||b==="checkbox"?c=a.checked:b==="select-multiple"?c=a.selectedIndex>-1?f.map(a.options,function(a){return a.selected}).join("-"):"":f.nodeName(a,"select")&&(c=a.selectedIndex),c},K=function(a){var c=a.target,d,e;if(!z.test(c.nodeName)||c.readOnly)return;d=f._data(c,"_change_data"),e=J(c),(a.type!=="focusout"||c.type!=="radio")&&f._data(c,"_change_data",e);if(d===b||e===d)return;if(d!=null||e)a.type="change",a.liveFired=b,f.event.trigger(a,arguments[1],c)};f.event.special.change={filters:{focusout:K,beforedeactivate:K,click:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||f.nodeName(b,"select"))&&K.call(this,a)},keydown:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!f.nodeName(b,"textarea")||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&K.call(this,a)},beforeactivate:function(a){var b=a.target;f._data(b,"_change_data",J(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in I)f.event.add(this,c+".specialChange",I[c]);return z.test(this.nodeName)},teardown:function(a){return f.event.remove(this,".specialChange"),z.test(this.nodeName)}},I=f.event.special.change.filters,I.focus=I.beforeactivate}f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){function e(a){var c=f.event.fix(a);c.type=b,c.originalEvent={},f.event.trigger(c,null,c.target),c.isDefaultPrevented()&&a.preventDefault()}var d=0;f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.each(["bind","one"],function(a,c){f.fn[c]=function(a,d,e){var g;if(typeof a=="object"){for(var h in a)this[c](h,d,a[h],e);return this}if(arguments.length===2||d===!1)e=d,d=b;c==="one"?(g=function(a){return f(this).unbind(a,g),e.apply(this,arguments)},g.guid=e.guid||f.guid++):g=e;if(a==="unload"&&c!=="one")this.one(a,d,e);else for(var i=0,j=this.length;i<j;i++)f.event.add(this[i],a,g,d);return this}}),f.fn.extend({unbind:function(a,b){if(typeof a=="object"&&!a.preventDefault)for(var c in a)this.unbind(c,a[c]);else for(var d=0,e=this.length;d<e;d++)f.event.remove(this[d],a,b);return this},delegate:function(a,b,c,d){return this.live(b,c,d,a)},undelegate:function(a,b,c){return arguments.length===0?this.unbind("live"):this.die(b,null,c,a)},trigger:function(a,b){return this.each(function(){f.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return f.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||f.guid++,d=0,e=function(c){var e=(f.data(this,"lastToggle"+a.guid)||0)%d;return f.data(this,"lastToggle"+a.guid,e+1),c.preventDefault(),b[e].apply(this,arguments)||!1};e.guid=c;while(d<b.length)b[d++].guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var M={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};f.each(["live","die"],function(a,c){f.fn[c]=function(a,d,e,g){var h,i=0,j,k,l,m=g||this.selector,n=g?this:f(this.context);if(typeof a=="object"&&!a.preventDefault){for(var o in a)n[c](o,d,a[o],m);return this}if(c==="die"&&!a&&g&&g.charAt(0)===".")return n.unbind(g),this;if(d===!1||f.isFunction(d))e=d||E,d=b;a=(a||"").split(" ");while((h=a[i++])!=null){j=y.exec(h),k="",j&&(k=j[0],h=h.replace(y,""));if(h==="hover"){a.push("mouseenter"+k,"mouseleave"+k);continue}l=h,M[h]?(a.push(M[h]+k),h+=k):h=(M[h]||h)+k;if(c==="live")for(var p=0,q=n.length;p<q;p++)f.event.add(n[p],"live."+O(h,m),{data:d,selector:m,handler:e,origType:h,origHandler:e,preType:l});else n.unbind("live."+O(h,m),e)}return this}}),f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){f.fn[b]=function(a,c){return c==null&&(c=a,a=null),arguments.length>0?this.bind(b,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0)}),function(){function t(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];break}i.nodeType===1&&!f&&(i.sizcache=c,i.sizset=g);if(i.nodeName.toLowerCase()===b){j=i;break}i=i[a]}d[g]=j}}}function u(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];break}if(i.nodeType===1){f||(i.sizcache=c,i.sizset=g);if(typeof b!="string"){if(i===b){j=!0;break}}else if(k.filter(b,[i]).length>0){j=i;break}}i=i[a]}d[g]=j}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d=0,e=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){return h=!1,0});var k=function(b,d,f,g){f=f||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return f;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length!==1||x[0]!=="~"&&x[0]!=="+"||!d.parentNode?d:d.parentNode,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(e.call(n)==="[object Array]")if(!u)f.push.apply(f,n);else if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&f.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&f.push(j[t]);else p(n,f);return o&&(k(o,h,f,g),k.uniqueSort(f)),f};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a},k.matches=function(a,b){return k(a,null,null,b)},k.matchesSelector=function(a,b){return k(b,null,null,[a]).length>0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e<f;e++){var g,h=l.order[e];if(g=l.leftMatch[h].exec(a)){var j=g[1];g.splice(1,1);if(j.substr(j.length-1)!=="\\"){g[1]=(g[1]||"").replace(i,""),d=l.find[h](g,b,c);if(d!=null){a=a.replace(l.match[h],"");break}}}}return d||(d=typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName("*"):[]),{set:d,expr:a}},k.filter=function(a,c,d,e){var f,g,h=a,i=[],j=c,m=c&&c[0]&&k.isXML(c[0]);while(a&&c.length){for(var n in l.filter)if((f=l.leftMatch[n].exec(a))!=null&&f[2]){var o,p,q=l.filter[n],r=f[1];g=!1,f.splice(1,1);if(r.substr(r.length-1)==="\\")continue;j===i&&(i=[]);if(l.preFilter[n]){f=l.preFilter[n](f,j,d,i,e,m);if(!f)g=o=!0;else if(f===!0)continue}if(f)for(var s=0;(p=j[s])!=null;s++)if(p){o=q(p,f,s,j);var t=e^!!o;d&&o!=null?t?g=!0:j[s]=!1:t&&(i.push(p),g=!0)}if(o!==b){d||(j=i),a=a.replace(l.match[n],"");if(!g)return[];break}}if(a===h)if(g==null)k.error(a);else break;h=a}return j},k.error=function(a){throw"Syntax error, unrecognized expression: "+a};var l=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="string",d=c&&!j.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1);a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}e&&k.filter(b,a,!0)},">":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++)c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b);d&&k.filter(b,a,!0)}},"":function(a,b,c){var e,f=d++,g=u;typeof b=="string"&&!j.test(b)&&(b=b.toLowerCase(),e=b,g=t),g("parentNode",b,f,a,e,c)},"~":function(a,b,c){var e,f=d++,g=u;typeof b=="string"&&!j.test(b)&&(b=b.toLowerCase(),e=b,g=t),g("previousSibling",b,f,a,e,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(i,"")+" ";if(f)return a;for(var g=0,h;(h=b[g])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);return a[0]=d++,a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");return!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" "),a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);return d||e.push.apply(e,g),!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){return a.unshift(!0),a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0}k.error(e)},CHILD:function(a,b){var c=b[1],d=a;switch(c){case"only":case"first":while(d=d.previousSibling)if(d.nodeType===1)return!1;if(c==="first")return!0;d=a;case"last":while(d=d.nextSibling)if(d.nodeType===1)return!1;return!0;case"nth":var e=b[2],f=b[3];if(e===1&&f===0)return!0;var g=b[0],h=a.parentNode;if(h&&(h.sizcache!==g||!a.nodeIndex)){var i=0;for(d=h.firstChild;d;d=d.nextSibling)d.nodeType===1&&(d.nodeIndex=++i);h.sizcache=g}var j=a.nodeIndex-f;return e===0?j===0:j%e===0&&j/e>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){return a=Array.prototype.slice.call(a,0),b?(b.push.apply(b,a),b):a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(e.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var f=a.length;c<f;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var r,s;c.documentElement.compareDocumentPosition?r=function(a,b){return a===b?(g=!0,0):!a.compareDocumentPosition||!b.compareDocumentPosition?a.compareDocumentPosition?-1:1:a.compareDocumentPosition(b)&4?-1:1}:(r=function(a,b){if(a===b)return g=!0,0;if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],h=a.parentNode,i=b.parentNode,j=h;if(h===i)return s(a,b);if(!h)return-1;if(!i)return 1;while(j)e.unshift(j),j=j.parentNode;j=i;while(j)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return s(e[k],f[k]);return k===c?s(a,f[k],-1):s(e[k],b,1)},s=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),k.getText=function(a){var b="",c;for(var d=0;a[d];d++)c=a[d],c.nodeType===3||c.nodeType===4?b+=c.nodeValue:c.nodeType!==8&&(b+=k.getText(c.childNodes));return b},function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(b.querySelectorAll&&b.querySelectorAll(".TEST").length===0)return;k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(e||!l.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return k(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!a.getElementsByClassName||a.getElementsByClassName("e").length===0)return;a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g<h;g++)k(a,f[g],d);return k.filter(e,d)};f.find=k,f.expr=k.selectors,f.expr[":"]=f.expr.filters,f.unique=k.uniqueSort,f.text=k.getText,f.isXMLDoc=k.isXML,f.contains=k.contains}();var P=/Until$/,Q=/^(?:parents|prevUntil|prevAll)/,R=/,/,S=/^.[^:#\[\.,]*$/,T=Array.prototype.slice,U=f.expr.match.POS,V={children:!0,contents:!0,next:!0,prev:!0};f.fn.extend({find:function(a){var b=this,c,d;if(typeof a!="string")return f(a).filter(function(){for(c=0,d=b.length;c<d;c++)if(f.contains(b[c],this))return!0});var e=this.pushStack("","find",a),g,h,i;for(c=0,d=this.length;c<d;c++){g=e.length,f.find(a,this[c],e);if(c>0)for(h=g;h<e.length;h++)for(i=0;i<g;i++)if(e[i]===e[h]){e.splice(h--,1);break}}return e},has:function(a){var b=f(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(f.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(X(this,a,!1),"not",a)},filter:function(a){return this.pushStack(X(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(d=0,e=a.length;d<e;d++)i=a[d],j[i]||(j[i]=U.test(i)?f(i,b||this.context):i);while(g&&g.ownerDocument&&g!==b){for(i in j)h=j[i],(h.jquery?h.index(g)>-1:f(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=U.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d<e;d++){g=this[d];while(g){if(l?l.index(g)>-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}return c=c.length>1?f.unique(c):c,this.pushStack(c,"closest",a)},index:function(a){return!a||typeof a=="string"?f.inArray(this[0],a?f(a):this.parent().children()):f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(W(c[0])||W(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c),g=T.call(arguments);return P.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!V[a]?f.unique(e):e,(this.length>1||R.test(d))&&Q.test(a)&&(e=e.reverse()),this.pushStack(e,a,g.join(","))}}),f.extend({filter:function(a,b,c){return c&&(a=":not("+a+")"),b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var Y=/ jQuery\d+="(?:\d+|null)"/g,Z=/^\s+/,$=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,_=/<([\w:]+)/,ba=/<tbody/i,bb=/<|&#?\w+;/,bc=/<(?:script|object|embed|option|style)/i,bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*<!(?:\[CDATA\[|\-\-)/,bg={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,"",""]};bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div<div>","</div>"]),f.fn.extend({text:function(a){return f.isFunction(a)?this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))}):typeof a!="object"&&a!==b?this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a)):f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return f.isFunction(a)?this.each(function(b){f(this).wrapInner(a.call(this,b))}):this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){f(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f(arguments[0]);return a.push.apply(a,this.toArray()),this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);return a.push.apply(a,f(arguments[0]).toArray()),a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){return a=a==null?!1:a,b=b==null?a:b,this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Y,""):null;if(typeof a=="string"&&!bc.test(a)&&(f.support.leadingWhitespace||!Z.test(a))&&!bg[(_.exec(a)||["",""])[1].toLowerCase()]){a=a.replace($,"<$1></$2>");try{for(var c=0,d=this.length;c<d;c++)this[c].nodeType===1&&(f.cleanData(this[c].getElementsByTagName("*")),this[c].innerHTML=a)}catch(e){this.empty().append(a)}}else f.isFunction(a)?this.each(function(b){var c=f(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);return this},replaceWith:function(a){return this[0]&&this[0].parentNode?f.isFunction(a)?this.each(function(b){var c=f(this),d=c.html();c.replaceWith(a.call(this,b,d))}):(typeof a!="string"&&(a=f(a).detach()),this.each(function(){var b=this.nextSibling,c=this.parentNode;f(this).remove(),b?f(b).before(a):f(c).append(a)})):this.length?this.pushStack(f(f.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){var e,g,h,i,j=a[0],k=[];if(!f.support.checkClone&&arguments.length===3&&typeof j=="string"&&bd.test(j))return this.each(function(){f(this).domManip(a,c,d,!0)});if(f.isFunction(j))return this.each(function(e){var g=f(this);a[0]=j.call(this,e,c?g.html():b),g.domManip(a,c,d)});if(this[0]){i=j&&j.parentNode,f.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?e={fragment:i}:e=f.buildFragment(a,this,k),h=e.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&f.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++)d.call(c?bh(this[l],g):this[l],e.cacheable||m>1&&l<n?f.clone(h,!0,!0):h)}k.length&&f.each(k,bn)}return this}}),f.buildFragment=function(a,b,d){var e,g,h,i=b&&b[0]?b[0].ownerDocument||b[0]:c;return a.length===1&&typeof a[0]=="string"&&a[0].length<512&&i===c&&a[0].charAt(0)==="<"&&!bc.test(a[0])&&(f.support.checkClone||!bd.test(a[0]))&&(g=!0,h=f.fragments[a[0]],h&&h!==1&&(e=h)),e||(e=i.createDocumentFragment(),f.clean(a,i,e,d)),g&&(f.fragments[a[0]]=h?e:1),{fragment:e,cacheable:g}},f.fragments={},f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){f.fn[a]=function(c){var d=[],e=f(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&e.length===1)return e[b](this[0]),this;for(var h=0,i=e.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d=a.cloneNode(!0),e,g,h;if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bj(a,d),e=bk(a),g=bk(d);for(h=0;e[h];++h)bj(e[h],g[h])}if(b){bi(a,d);if(c){e=bk(a),g=bk(d);for(h=0;e[h];++h)bi(e[h],g[h])}}return d},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!bb.test(k))k=b.createTextNode(k);else{k=k.replace($,"<$1></$2>");var l=(_.exec(k)||["",""])[1].toLowerCase(),m=bg[l]||bg._default,n=m[0],o=b.createElement("div");o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=ba.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]==="<table>"&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&Z.test(k)&&o.insertBefore(b.createTextNode(Z.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof (r=k.length)=="number")for(i=0;i<r;i++)bm(k[i]);else bm(k);k.nodeType?h.push(k):h=f.merge(h,k)}if(d){g=function(a){return!a.type||be.test(a.type)};for(j=0;h[j];j++)if(e&&f.nodeName(h[j],"script")&&(!h[j].type||h[j].type.toLowerCase()==="text/javascript"))e.push(h[j].parentNode?h[j].parentNode.removeChild(h[j]):h[j]);else{if(h[j].nodeType===1){var s=f.grep(h[j].getElementsByTagName("script"),g);h.splice.apply(h,[j+1,0].concat(s))}d.appendChild(h[j])}}return h},cleanData:function(a){var b,c,d=f.cache,e=f.expando,g=f.event.special,h=f.support.deleteExpando;for(var i=0,j;(j=a[i])!=null;i++){if(j.nodeName&&f.noData[j.nodeName.toLowerCase()])continue;c=j[f.expando];if(c){b=d[c]&&d[c][e];if(b&&b.events){for(var k in b.events)g[k]?f.event.remove(j,k):f.removeEvent(j,k,b.handle);b.handle&&(b.handle.elem=null)}h?delete j[f.expando]:j.removeAttribute&&j.removeAttribute(f.expando),delete d[c]}}}});var bo=/alpha\([^)]*\)/i,bp=/opacity=([^)]*)/,bq=/-([a-z])/ig,br=/([A-Z]|^ms)/g,bs=/^-?\d+(?:px)?$/i,bt=/^-?\d/,bu=/^[+\-]=/,bv=/[^+\-\.\de]+/g,bw={position:"absolute",visibility:"hidden",display:"block"},bx=["Left","Right"],by=["Top","Bottom"],bz,bA,bB,bC=function(a,b){return b.toUpperCase()};f.fn.css=function(a,c){return arguments.length===2&&c===b?this:f.access(this,a,c,!0,function(a,c,d){return d!==b?f.style(a,c,d):f.css(a,c)})},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bz(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0,widows:!0,orphans:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!a||a.nodeType===3||a.nodeType===8||!a.style)return;var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b)return k&&"get"in k&&(g=k.get(a,!1,e))!==b?g:j[c];h=typeof d;if(h==="number"&&isNaN(d)||d==null)return;h==="string"&&bu.test(d)&&(d=+d.replace(bv,"")+parseFloat(f.css(a,c))),h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(bz)return bz(a,c)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]},camelCase:function(a){return a.replace(bq,bC)}}),f.curCSS=f.css,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){var e;if(c){a.offsetWidth!==0?e=bD(a,b,d):f.swap(a,bw,function(){e=bD(a,b,d)});if(e<=0){e=bz(a,b,b),e==="0px"&&bB&&(e=bB(a,b,b));if(e!=null)return e===""||e==="auto"?"0px":e}return e<0||e==null?(e=a.style[b],e===""||e==="auto"?"0px":e):typeof e=="string"?e:e+"px"}},set:function(a,b){if(!bs.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bp.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle;c.zoom=1;var e=f.isNaN(b)?"":"alpha(opacity="+b*100+")",g=d&&d.filter||c.filter||"";c.filter=bo.test(g)?g.replace(bo,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;return f.swap(a,{display:"inline-block"},function(){b?c=bz(a,"margin-right","marginRight"):c=a.style.marginRight}),c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bA=function(a,c){var d,e,g;c=c.replace(br,"-$1").toLowerCase();if(!(e=a.ownerDocument.defaultView))return b;if(g=e.getComputedStyle(a,null))d=g.getPropertyValue(c),d===""&&!f.contains(a.ownerDocument.documentElement,a)&&(d=f.style(a,c));return d}),c.documentElement.currentStyle&&(bB=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;return!bs.test(d)&&bt.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e)),d===""?"auto":d}),bz=bA||bB,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bE=/%20/g,bF=/\[\]$/,bG=/\r?\n/g,bH=/#.*$/,bI=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bJ=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bK=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,bL=/^(?:GET|HEAD)$/,bM=/^\/\//,bN=/\?/,bO=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bP=/^(?:select|textarea)/i,bQ=/\s+/,bR=/([?&])_=[^&]*/,bS=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bT=f.fn.load,bU={},bV={},bW,bX;try{bW=e.href}catch(bY){bW=c.createElement("a"),bW.href="",bW=bW.href}bX=bS.exec(bW.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bT)return bT.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;return f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("<div>").append(c.replace(bO,"")).find(g):c)),d&&i.each(d,[c,b,a])}}),this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bP.test(this.nodeName)||bJ.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bG,"\r\n")}}):{name:b.name,value:c.replace(bG,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.bind(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){return f.isFunction(d)&&(g=g||e,e=d,d=b),f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?f.extend(!0,a,f.ajaxSettings,b):(b=a,a=f.extend(!0,f.ajaxSettings,b));for(var c in{context:1,url:1})c in b?a[c]=b[c]:c in f.ajaxSettings&&(a[c]=f.ajaxSettings[c]);return a},ajaxSettings:{url:bW,isLocal:bK.test(bX[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML}},ajaxPrefilter:bZ(bU),ajaxTransport:bZ(bV),ajax:function(a,c){function w(a,c,l,m){if(s===2)return;s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a?4:0;var o,r,u,w=l?ca(d,v,l):b,x,y;if(a>=200&&a<300||a===304){if(d.ifModified){if(x=v.getResponseHeader("Last-Modified"))f.lastModified[k]=x;if(y=v.getResponseHeader("Etag"))f.etag[k]=y}if(a===304)c="notmodified",o=!0;else try{r=cb(d,w),c="success",o=!0}catch(z){c="parsererror",u=z}}else{u=c;if(!c||a)c="error",a<0&&(a=0)}v.status=a,v.statusText=c,o?h.resolveWith(e,[r,c,v]):h.rejectWith(e,[v,c,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.resolveWith(e,[v,c]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f._Deferred(),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bI.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){return s||(d.mimeType=a),this},abort:function(a){return a=a||"abort",p&&p.abort(a),w(0,a),this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.done,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bH,"").replace(bM,bX[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bQ),d.crossDomain==null&&(r=bS.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bX[1]&&r[2]==bX[2]&&(r[3]||(r[1]==="http:"?80:443))==(bX[3]||(bX[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),b$(bU,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bL.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bN.test(d.url)?"&":"?")+d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bR,"$1_="+x);d.url=y+(y===d.url?(bN.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", */*; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(!d.beforeSend||d.beforeSend.call(e,v,d)!==!1&&s!==2){for(u in{success:1,error:1,complete:1})v[u](d[u]);p=b$(bV,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){status<2?w(-1,z):f.error(z)}}return v}return v.abort(),!1},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bE,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";return b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){return g||f.error(h+" was not called"),g[0]},b.dataTypes[0]="json","script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){return f.globalEval(a),a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq,cr=a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cu("show",3),a,b,c);for(var g=0,h=this.length;g<h;g++)d=this[g],d.style&&(e=d.style.display,!f._data(d,"olddisplay")&&e==="none"&&(e=d.style.display=""),e===""&&f.css(d,"display")==="none"&&f._data(d,"olddisplay",cv(d.nodeName)));for(g=0;g<h;g++){d=this[g];if(d.style){e=d.style.display;if(e===""||e==="none")d.style.display=f._data(d,"olddisplay")||""}}return this},hide:function(a,b,c){if(a||a===0)return this.animate(cu("hide",3),a,b,c);for(var d=0,e=this.length;d<e;d++)if(this[d].style){var g=f.css(this[d],"display");g!=="none"&&!f._data(this[d],"olddisplay")&&f._data(this[d],"olddisplay",g)}for(d=0;d<e;d++)this[d].style&&(this[d].style.display="none");return this},_toggle:f.fn.toggle,toggle:function(a,b,c){var d=typeof a=="boolean";return f.isFunction(a)&&f.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var b=d?a:f(this).is(":hidden");f(this)[b?"show":"hide"]()}):this.animate(cu("toggle",3),a,b,c),this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=f.speed(b,c,d);return f.isEmptyObject(a)?this.each(e.complete,[!1]):(a=f.extend({},a),this[e.queue===!1?"each":"queue"](function(){e.queue===!1&&f._mark(this);var b=f.extend({},e),c=this.nodeType===1,d=c&&f(this).is(":hidden"),g,h,i,j,k,l,m,n,o;b.animatedProperties={};for(i in a){g=f.camelCase(i),i!==g&&(a[g]=a[i],delete a[i]),h=a[g],f.isArray(h)?(b.animatedProperties[g]=h[1],h=a[g]=h[0]):b.animatedProperties[g]=b.specialEasing&&b.specialEasing[g]||b.easing||"swing";if(h==="hide"&&d||h==="show"&&!d)return b.complete.call(this);c&&(g==="height"||g==="width")&&(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],f.css(this,"display")==="inline"&&f.css(this,"float")==="none"&&(f.support.inlineBlockNeedsLayout?(j=cv(this.nodeName),j==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)):this.style.display="inline-block"))}b.overflow!=null&&(this.style.overflow="hidden");for(i in a)k=new f.fx(this,b,i),h=a[i],cm.test(h)?k[h==="toggle"?d?"show":"hide":h]():(l=cn.exec(h),m=k.cur(),l?(n=parseFloat(l[2]),o=l[3]||(f.cssNumber[i]?"":"px"),o!=="px"&&(f.style(this,i,(n||1)+o),m=(n||1)/k.cur()*m,f.style(this,i,m+o)),l[1]&&(n=(l[1]==="-="?-1:1)*n+m),k.custom(m,n,o)):k.custom(m,h,""));return!0}))},stop:function(a,b){return a&&this.queue([]),this.each(function(){var a=f.timers,c=a.length;b||f._unmark(!0,this);while(c--)a[c].elem===this&&(b&&a[c](!0),a.splice(c,1))}),b||this.dequeue(),this}}),f.each({slideDown:cu("show",1),slideUp:cu("hide",1),slideToggle:cu("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){f.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),f.extend({speed:function(a,b,c){var d=a&&typeof a=="object"?f.extend({},a):{complete:c||!c&&b||f.isFunction(a)&&a,duration:a,easing:c&&b||b&&!f.isFunction(b)&&b};return d.duration=f.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in f.fx.speeds?f.fx.speeds[d.duration]:f.fx.speeds._default,d.old=d.complete,d.complete=function(a){d.queue!==!1?f.dequeue(this):a!==!1&&f._unmark(this),f.isFunction(d.old)&&d.old.call(this)},d},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig=b.orig||{}}}),f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(f.fx.step[this.prop]||f.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]==null||!!this.elem.style&&this.elem.style[this.prop]!=null){var a,b=f.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a}return this.elem[this.prop]},custom:function(a,b,c){function h(a){return d.step(a)}var d=this,e=f.fx,g;this.startTime=cq||cs(),this.start=a,this.end=b,this.unit=c||this.unit||(f.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,h.elem=this.elem,h()&&f.timers.push(h)&&!co&&(cr?(co=1,g=function(){co&&(cr(g),e.tick())},cr(g)):co=setInterval(e.tick,e.interval))},show:function(){this.options.orig[this.prop]=f.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b=cq||cs(),c=!0,d=this.elem,e=this.options,g,h;if(a||b>=e.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),e.animatedProperties[this.prop]=!0;for(g in e.animatedProperties)e.animatedProperties[g]!==!0&&(c=!1);if(c){e.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){d.style["overflow"+b]=e.overflow[a]}),e.hide&&f(d).hide();if(e.hide||e.show)for(var i in e.animatedProperties)f.style(d,i,e.orig[i]);e.complete.call(d)}return!1}return e.duration==Infinity?this.now=b:(h=b-this.startTime,this.state=h/e.duration,this.pos=f.easing[e.animatedProperties[this.prop]](this.state,h,0,1,e.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},f.extend(f.fx,{tick:function(){for(var a=f.timers,b=0;b<a.length;++b)a[b]()||a.splice(b--,1);a.length||f.fx.stop()},interval:13,stop:function(){clearInterval(co),co=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){f.style(a.elem,"opacity",a.now)},_default:function(a){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:a.elem[a.prop]=a.now}}}),f.expr&&f.expr.filters&&(f.expr.filters.animated=function(a){return f.grep(f.timers,function(b){return a===b.elem}).length});var cw=/^t(?:able|d|h)$/i,cx=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?f.fn.offset=function(a){var b=this[0],c;if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);try{c=b.getBoundingClientRect()}catch(d){}var e=b.ownerDocument,g=e.documentElement;if(!c||!f.contains(g,b))return c?{top:c.top,left:c.left}:{top:0,left:0};var h=e.body,i=cy(e),j=g.clientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l=i.pageYOffset||f.support.boxModel&&g.scrollTop||h.scrollTop,m=i.pageXOffset||f.support.boxModel&&g.scrollLeft||h.scrollLeft,n=c.top+l-j,o=c.left+m-k;return{top:n,left:o}}:f.fn.offset=function(a){var b=this[0];if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);f.offset.initialize();var c,d=b.offsetParent,e=b,g=b.ownerDocument,h=g.documentElement,i=g.body,j=g.defaultView,k=j?j.getComputedStyle(b,null):b.currentStyle,l=b.offsetTop,m=b.offsetLeft;while((b=b.parentNode)&&b!==i&&b!==h){if(f.offset.supportsFixedPosition&&k.position==="fixed")break;c=j?j.getComputedStyle(b,null):b.currentStyle,l-=b.scrollTop,m-=b.scrollLeft,b===d&&(l+=b.offsetTop,m+=b.offsetLeft,f.offset.doesNotAddBorder&&(!f.offset.doesAddBorderForTableAndCells||!cw.test(b.nodeName))&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),e=d,d=b.offsetParent),f.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),k=c}if(k.position==="relative"||k.position==="static")l+=i.offsetTop,m+=i.offsetLeft;return f.offset.supportsFixedPosition&&k.position==="fixed"&&(l+=Math.max(h.scrollTop,i.scrollTop),m+=Math.max(h.scrollLeft,i.scrollLeft)),{top:l,left:m}},f.offset={initialize:function(){var a=c.body,b=c.createElement("div"),d,e,g,h,i=parseFloat(f.css(a,"marginTop"))||0,j="<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>";f.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),d=b.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,this.doesNotAddBorder=e.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,e.style.position="fixed",e.style.top="20px",this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),f.offset.initialize=f.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;return f.offset.initialize(),f.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0),{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();return c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0,{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;return c===b?(e=this[0],e?(g=cy(e),g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]):null):this.each(function(){g=cy(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){return this[0]?parseFloat(f.css(this[0],d,"padding")):null},f.fn["outer"+c]=function(a){return this[0]?parseFloat(f.css(this[0],d,a?"margin":"border")):null},f.fn[d]=function(a){var e=this[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.document.documentElement["client"+c];return e.document.compatMode==="CSS1Compat"&&g||e.document.body["client"+c]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a===b){var h=f.css(e,d),i=parseFloat(h);return f.isNaN(i)?h:i}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f})(window);
// !MeAb! c/s/d/e/j/e/joose.js
function JooseGearsInitializeGears(){if(window.google&&google.gears)return;var a=null;if(typeof GearsFactory!="undefined")a=new GearsFactory;else try{a=new ActiveXObject("Gears.Factory"),a.getBuildInfo().indexOf("ie_mobile")!=-1&&a.privateSetGlobalObject(this)}catch(b){navigator.mimeTypes["application/x-googlegears"]&&(a=document.createElement("object"),a.style.display="none",a.width=0,a.height=0,a.type="application/x-googlegears",document.documentElement.appendChild(a))}if(!a)return;window.google||(google={}),google.gears||(google.gears={factory:a})}var joosetop=this;Joose=function(){this.cc=null,this.currentModule=null,this.top=joosetop,this.globalObjects=[],this.anonymouseClassCounter=0},Joose.A={},Joose.A.each=function(a,b){for(var c=0;c<a.length;c++)b(a[c],c)},Joose.A.exists=function(a,b){for(var c=0;c<a.length;c++)if(a[c]==b)return!0;return!1},Joose.A.concat=function(a,b){return a.push.apply(a,b),a},Joose.A.grep=function(a,b){var c=[];return Joose.A.each(a,function(a){b(a)&&c.push(a)}),c},Joose.A.remove=function(a,b){var c=[];return Joose.A.each(a,function(a){a!==b&&c.push(a)}),c},Joose.S={},Joose.S.uppercaseFirst=function(a){var b=a.substr(0,1),c=a.substr(1,a.length-1);return b=b.toUpperCase(),b+c},Joose.S.isString=function(a){return typeof a=="string"?!0:!1},Joose.O={},Joose.O.each=function(a,b){for(var c in a)b(a[c],c)},Joose.O.eachSafe=function(a,b){for(var c in a)a.hasOwnProperty(c)&&b(a[c],c)},Joose.O.extend=function(a,b){for(var c in b){var d=b[c];a[c]=d}},Joose.prototype={addToString:function(a,b){a.toString=b},isInstance:function(a){if(!a.meta)throw"isInstance only works with Joose objects and classes.";return a.constructor===a.meta.c?!0:!1},init:function(){this.builder=new Joose.Builder,this.builder.globalize()},components:function(){return["Joose.Builder","Joose.Class","Joose.Method","Joose.ClassMethod","Joose.Attribute","Joose.Role","Joose.Singleton","Joose.SimpleRequest","Joose.Gears","Joose.Storage","Joose.Storage.Unpacker","Joose.Decorator","Joose.Module","Joose.TypeChecker","Joose.TypeConstraint","Joose.TypeCoercion","Joose.Types","Joose.Prototype","Joose.TypedMethod","Joose.MultiMethod"]},loadComponents:function(a){var b="";Joose.A.each(this.components(),function(c){var d=""+a+"/"+c.split(".").join("/")+".js";b+='<script type="text/javascript" src="'+d+'"><'+"/script>"}),document.write(b)}},Joose.copyObject=function(a,b){var c="";return Joose.O.each(a,function(a,d){c+=", "+d,b[d]=a}),b},Joose.emptyFunction=function(){},this.joose=new Joose,function(){typeof this["load"]=="function"&&(typeof this["Packages"]=="function"||typeof this["Packages"]=="object")&&(joose.CHAOTIC_TRAVERSION_ORDER=!0)}(),Joose.bootstrap=function(){var a=new Joose.MetaClassBootstrap;a.builder=Joose.MetaClassBootstrap,Joose.MetaClass=a.createClass("Joose.MetaClass"),Joose.MetaClass.meta.addNonJooseSuperClass("Joose.MetaClassBootstrap",a),Joose.MetaClass.meta.addMethod("initialize",function(){this._name="Joose.MetaClass"});var b=new Joose.MetaClass;b.builder=Joose.MetaClass,Joose.Class=b.createClass("Joose.Class"),Joose.Class.meta.addSuperClass(Joose.MetaClass),Joose.MetaClass.meta.addMethod("initialize",function(){this._name="Joose.Class"}),Joose.Class.create=function(a,b,c){var d=new this;d.builder=this;var e=d.createClass(a,b,c);return e.meta.builder=this,e}},Joose.bootstrapCompletedBuilder=function(){Joose.Builder.Globals.joosify("Joose.Method",Joose.Method),Joose.Builder.Globals.joosify("Joose.Attribute",Joose.Attribute)},Joose.bootstrapCompletedClassMethod=function(){Joose.Class.meta.addClassMethod("create",Joose.Class.create)},Joose.bootstrap3=function(){},Joose.MetaClassBootstrap=function(){this._name="Joose.MetaClassBootstrap",this.methodNames=[],this.attributeNames=["_name","isAbstract","isDetached","methodNames","attributeNames","methods","parentClasses","roles","c"],this.attributes={},this.methods={},this.classMethods={},this.parentClasses=[],this.roles=[],this.myRoles=[],this.isAbstract=!1,this.isDetached=!1},Joose.MetaClassBootstrap.prototype={toString:function(){return this.meta?"a "+this.meta.className():"NoMeta"},className:function(){return this._name},getName:function(){return this.className()},newMetaClass:function(){var a=this,b=this.builder,c=new b;c.builder=b,c._name=this._name,c.methodNames=[],c.attributeNames=[],c.methods={},c.classMethods={},c.parentClasses=[],c.roles=[],c.myRoles=[],c.attributes={};var d=this.meta;return d||(d=this),c.meta=d,c},createClass:function(a,b,c){var d=this.newMetaClass(),e;b?e=b:(e=this.defaultClassFunctionBody(),c&&c.addElement(e)),e.prototype.meta=d,e.meta=d;if(a==null)d._name="__anonymous__";else{var f=a;c&&(f=c.getName()+"."+a),d._name=f}return d.c=e,c||joose.globalObjects.push(e),d.addInitializer(),d.addToString(),d.addDetacher(),e},buildComplete:function(){},initializeFromProps:function(a){this._initializeFromProps(a)},_initializeFromProps:function(a){var b=this;if(a){joose.CHAOTIC_TRAVERSION_ORDER&&Joose.A.each(["isa","does","has","method","methods"],function(c){if(c in a){var d=a[c];b._initializeFromProp(c,d,a),delete a[c]}}),Joose.O.eachSafe(a,function(c,d){b._initializeFromProp(d,c,a)});for(var c=0;c<this.roles.length;c++){var d=this.roles[c];d.meta.applyMethodModifiers(this.c)}b.buildComplete(),b.validateClass()}},_initializeFromProp:function(a,b,c){var d=b,e="handleProp"+a;if(this.meta.can(e))this[e](d,c);else throw new Error("Called invalid builder "+a+" while creating class "+this.className())},instantiate:function(){var a=function(){};a.prototype=this.c.prototype,a.prototype.constructor=this.c;var b=new a;return this.c.apply(b,arguments),b},defaultClassFunctionBody:function(){var a=function(){this.initialize.apply(this,arguments)};return joose.addToString(a,function(){return this.meta.className()}),a},addToString:function(){this.addMethod("toString",function(){return this.stringify?this.stringify():"a "+this.meta.className()})},addInitializer:function(){this.c.prototype.initialize||this.addMethod("initialize",this.initializer())},initializer:function(){return function a(a){var b=this;if(this.meta.isAbstract){var c=this.meta.className();throw""+c+" is an abstract class and may not instantiated."}var d=this.meta.getAttributes();for(var e in d)if(d.hasOwnProperty(e)){var f=d[e];f.doInitialization(b,a)}}},dieIfString:function(a){if(Joose.S.isString(a))throw new TypeError("Parameter must not be a string.")},addRole:function(a){this.dieIfString(a);var b=this.getClassObject();a.meta.apply(b)&&(this.roles.push(a),this.myRoles.push(a))},getClassObject:function(){return this.c},classNameToClassObject:function(a){var b=joose.top,c=a.split("."),d=b;for(var e=0;e<c.length;e++){var f=c[e];d=d[f];if(!d)throw"Unable to find class "+a}return d},addNonJooseSuperClass:function(a,b){var c=new Joose.MetaClassBootstrap;c.builder=Joose.MetaClassBootstrap;var d=c.createClass(a);Joose.O.each(b,function(a,b){typeof a=="function"?d.meta.addMethod(b,a):d.meta.addAttribute(b,{init:a})}),this.addSuperClass(d)},addSuperClass:function(a){this.dieIfString(a);var b=this,c=a.meta.getMethodNames();for(var d=0;d<c.length;d++){var e=c[d],f=a.meta.getMethodObject(e);if(f){var g=f.copy();g.setIsFromSuperClass(!0),b.addMethodObject(g)}f=a.meta.getClassMethodObject(e);if(f){var g=f.copy();g.setIsFromSuperClass(!0),b.addMethodObject(g)}}Joose.O.eachSafe(a.meta.attributes,function(a,c){b.addAttribute(c,a.getProps())});var h=a.meta.roles;for(var d=0;d<h.length;d++){var i=h[d];b.roles.push(i)}this.parentClasses.unshift(a)},_fixMetaclassIncompatability:function(a){var b=a.meta,c=b.meta.className();if(c=="Joose.Class"||c=="Joose.MetaClass"||c=="Joose.MetaClassBootstrap")return;if(this.meta.meta.isa(b))return;var d=b.meta.instantiate(this);for(var e in d)this[e]=d[e]},isa:function(a){this.dieIfString(a);var b=a.meta.className();if(this.className()==b)return!0;for(var c=0;c<this.parentClasses.length;c++){var d=this.parentClasses[c].meta;if(d.className()==b)return!0;if(d.isa(a))return!0}return!1},wrapMethod:function(a,b,c,d){var e=this.getMethodObject(a);if(e)this.addMethodObject(e[b](c));else if(d)d();else throw new Error("Unable to apply "+b+" method modifier because method "+a+" does not exist")},dispatch:function(a){return this.getMethodObject(a).asFunction()},hasMethod:function(a){return this.methods[a]!=null||this.classMethods[a]!=null},addMethod:function(a,b,c){var d=new Joose.Method(a,b,c);this.addMethodObject(d)},addClassMethod:function(a,b,c){var d=new Joose.ClassMethod(a,b,c);this.addMethodObject(d)},addMethodObject:function(a){var b=a,c=b.getName===Joose.Method.prototype.getName?b._name:b.getName(),d=b._body;if(!d.displayName){var e=this.className===Joose.MetaClassBootstrap.prototype.className?this._name:this.className();d.displayName=e+"."+c+"()"}!this.methods[c]&&!this.classMethods[c]&&this.methodNames.push(c),b._isClassMethod?this.classMethods[c]=b:this.methods[c]=b,a.addToClass(this.c)},attributeMetaclass:function(){return Joose.Attribute},addAttribute:function(a,b){var c=this.attributeMetaclass();b&&b.metaclass&&(c=b.metaclass);var d=new c(a,b);d.apply(this.c)},getAttributes:function(){return this.attributes},getAttribute:function(a){return this.attributes[a]},setAttribute:function(a,b){return this.attributes[a]=b},getMethodObject:function(a){return this.methods[a]},getClassMethodObject:function(a){return this.classMethods[a]},getAttributeNames:function(){return this.attributeNames},getInstanceMethods:function(){var a=[];return Joose.O.eachSafe(this.methods,function(b){a.push(b)}),a},getClassMethods:function(){var a=[];return Joose.O.eachSafe(this.classMethods,function(b){a.push(b)}),a},getSuperClasses:function(){return this.parentClasses},getSuperClass:function(){return this.parentClasses[0]},getRoles:function(){return this.roles},getMethodNames:function(){return this.methodNames},makeAnonSubclass:function(){var a=this.createClass(this.className()+"__anon__"+joose.anonymouseClassCounter++);return a.meta.addSuperClass(this.getClassObject()),a},addDetacher:function(){this.addMethod("detach",function a(){var a=this.meta;if(a.isDetached)return;var b=a.makeAnonSubclass();b.meta.isDetached=!0,this.meta=b.meta,this.constructor=b;var c;this.__proto__?(c={},Joose.copyObject(this,c)):c=this,b.prototype=c,this.__proto__=b.prototype;return})},validateClass:function(){var a=this.getClassObject(),b=this,c=!0;Joose.A.each(this.roles,function(b){b.meta.isImplementedBy(a,c)})},can:function(a){var b=this.methods[a];return b?!0:!1},classCan:function(a){var b=this.classMethods[a];return b?!0:!1},does:function(a){for(var b=0;b<this.roles.length;b++)if(a===this.roles[b])return!0;for(var b=0;b<this.roles.length;b++)if(this.roles[b].meta.does(a))return!0;return!1},implementsMyMethods:function(a){var b=!0;return Joose.A.each(this.getMethodNames(),function(c){var d=a.meta.can(c);d||(b=!1)}),b},handleProprequires:function(a){var b=this;if(!this.meta.isa(Joose.Role))throw"Keyword 'requires' only available classes with a meta class of type Joose.Role";a instanceof Array?Joose.A.each(a,function(a){b.addRequirement(a)}):b.addRequirement(a)},handlePropisAbstract:function(a){this.isAbstract=a},handlePropisa:function(a){if(a==null)throw new Error("Super class is null");this.addSuperClass(a)},handlePropdoes:function(a){var b=this;a instanceof Array?Joose.A.each(a,function(a){b.addRole(a)}):b.addRole(a)},handleProphas:function(a){var b=this;if(typeof a=="string"){var c=arguments[0],d=arguments[1];b.addAttribute(c,d)}else Joose.O.eachSafe(a,function(a,c){b.addAttribute(c,a)})},handlePropmethod:function(a,b,c){this.addMethod(a,b,c)},handlePropmethods:function(a){var b=this;Joose.O.eachSafe(a,function(a,c){if(typeof a!="function"){var d=a,e;if(d instanceof Array){var f=d;e=new Joose.MultiMethod.newFromPatterns(c,f)}else e=Joose.TypedMethod.newFromProps(c,d);b.addMethodObject(e)}else b.addMethod(c,a)})},handlePropclassMethods:function(a){var b=this;Joose.O.eachSafe(a,function(a,c){b.addMethodObject(new Joose.ClassMethod(c,a))})},handlePropworkers:function(a){var b=this;Joose.O.eachSafe(a,function(a,c){b.addWorker(c,a)})},handlePropbefore:function(a){var b=this;Joose.O.eachSafe(a,function(a,c){b.wrapMethod(c,"before",a)})},handlePropafter:function(a){var b=this;Joose.O.eachSafe(a,function(a,c){b.wrapMethod(c,"after",a)})},handleProparound:function(a){var b=this;Joose.O.eachSafe(a,function(a,c){b.wrapMethod(c,"around",a)})},handlePropoverride:function(a){var b=this;Joose.O.eachSafe(a,function(a,c){b.wrapMethod(c,"override",a)})},handlePropaugment:function(a){var b=this;Joose.O.eachSafe(a,function(a,c){b.wrapMethod(c,"augment",a,function(){b.addMethod(c,a)})})},handlePropdecorates:function(a){var b=this;Joose.O.eachSafe(a,function(a,c){b.decorate(a,c)})}},Joose.Attribute=function(a,b){this.initialize(a,b)},Joose.Attribute.prototype={_name:null,_props:null,getName:function(){return this._name},getProps:function(){return this._props},initialize:function(a,b){this._name=a,this.setProps(b)},setProps:function(a){a?this._props=a:this._props={}},getIsa:function(){var a=this.getProps();if("isa"in a&&a.isa==null)throw new Error("You declared an isa property but the property is null.");if(a.isa)return a.isa.meta?a.isa:a.isa();return},addSetter:function(a){var b=a.meta,c=this.getName(),d=this.getProps(),e=this.setterName();if(b.can(e))return;var f=this.getIsa(),g;if(f){var h=Joose.TypeChecker.makeTypeChecker(f,d,"attribute",c);g=function(a,b){return a=h(a,b),this[c]=a,this}}else g=function(a){return this[c]=a,this};b.addMethod(e,g)},addGetter:function(a){var b=a.meta,c=this.getName(),d=this.getProps(),e=this.getterName();if(b.can(e))return;var f=function(){return this[c]},g=d.init;d.lazy&&(f=function(){var a=this[c];return typeof a=="function"&&a===g&&(this[c]=a.apply(this)),this[c]}),b.addMethod(e,f)},initializerName:function(){return this.toPublicName()},getterName:function(){return this.__getterNameCache?this.__getterNameCache:(this.__getterNameCache="get"+Joose.S.uppercaseFirst(this.toPublicName()),this.__getterNameCache)},setterName:function(){return this.__setterNameCache?this.__setterNameCache:(this.__setterNameCache="set"+Joose.S.uppercaseFirst(this.toPublicName()),this.__setterNameCache)},isPrivate:function(){return this.getName().charAt(0)=="_"},toPublicName:function(){if(this.__publicNameCache)return this.__publicNameCache;var a=this.getName();return this.isPrivate()?(this.__publicNameCache=a.substr(1),this.__publicNameCache):(this.__publicNameCache=a,this.__publicNameCache)},handleIs:function(a){var b=a.meta,c=this.getName(),d=this.getProps(),e=d.is;(e=="rw"||e=="ro")&&this.addGetter(a),e=="rw"&&this.addSetter(a)},handleInit:function(a){var b=this.getProps(),c=this.getName();a.prototype[c]=null;if(typeof b.init!="undefined"){var d=b.init,e=typeof d;a.prototype[c]=d}},handleProps:function(a){this.handleIs(a),this.handleInit(a)},apply:function(a){var b=a.meta,c=this.getName();this.handleProps(a),b.attributeNames.push(c),b.setAttribute(c,this),b.attributes[c]=this}},Joose.Method=function(a,b,c){this.initialize(a,b,c)},Joose.Method.prototype={_name:null,_body:null,_props:null,_isFromSuperClass:!1,_isClassMethod:!1,getName:function(){return this._name},getBody:function(){return this._body},getProps:function(){return this._props},isFromSuperClass:function(){return this._isFromSuperClass},setIsFromSuperClass:function(a){this._isFromSuperClass=a},copy:function(){return new Joose.Method(this.getName(),this.getBody(),this.getProps())},initialize:function(a,b,c){this._name=a,this._body=b,this._props=c,b.name=a,b.meta=this},isClassMethod:function(){return this._isClassMethod},apply:function(a,b){return this._body.apply(a,b)},addToClass:function(a){var b=Joose.Method.prototype,c=this.getName===b.getName?this._name:this.getName(),d=this.asFunction===b.asFunction?this._body:this.asFunction();a.prototype[c]=d},asFunction:function(){return this._body}},Joose.bootstrap(),Joose.Builder=function(){this.globalize=function(){Joose.O.each(Joose.Builder.Globals,function(a,b){var c="Joose"+b;typeof joose.top[b]=="undefined"&&(joose.top[b]=a),joose.top[c]=a})}},Joose.Builder.Globals={Module:function(a,b){return Joose.Module.setup(a,b)},Role:function(a,b){return b.meta||(b.meta=Joose.Role),JooseClass(a,b)},Prototype:function(a,b){return b.meta||(b.meta=Joose.Prototype),JooseClass(a,b)},Class:function(a,b){var c=null;if(a){var d=a;joose.currentModule&&(d=joose.currentModule.getName()+"."+a);var e=joose.top,f=d.split(".");for(var g=0;g<f.length;g++)e=e[f[g]];c=e}if(c==null){var h;b&&b.meta?(h=b.meta,delete b.meta):b&&b.isa&&b.isa!=Joose.Class?h=b.isa.meta.builder:h=Joose.Class;var c=h.create(a,null,joose.currentModule),d=c.meta.className();if(a&&d){var e=joose.top,i=new String(d),f=i.split(".");for(var g=0;g<f.length-1;g++)e[f[g]]==null&&(e[f[g]]={}),e=e[f[g]];e[f[f.length-1]]=c}}return c.meta.initializeFromProps(b),c},Type:function(a,b){var c=!1;arguments.length==1&&a instanceof Object&&(b=a,c=!0);if(b instanceof RegExp||b instanceof Function)b={where:b};c&&(a="AnonType: "+(b.where?b.where.toString():""));var d=Joose.TypeConstraint.newFromTypeBuilder(a,b);if(!c){var e=joose.currentModule;e||(JooseModule("Joose.Type"),typeof joose.top.TYPE=="undefined"&&(joose.top.TYPE=Joose.Type),e=Joose.Type.meta),e.addElement(d),e.getContainer()[a]=d}return d},joosify:function(a,b){var c=b,d=new Joose.Class;d.builder=Joose.Class,c.toString=function(){return this.meta.className()},c=d.createClass(a,c);var e=c.meta;for(var f in b.prototype){if(f=="meta")continue;var g=b.prototype[f];if(typeof g=="function")e.addMethod(f,g);else{var h={};typeof g!="undefined"&&(h.init=g),e.addAttribute(f,h)}}return c},rw:"rw",ro:"ro"},joose.init(),Joose.bootstrapCompletedBuilder(),function(a){a("Joose.Method",{methods:{copy:function(){return this.meta.instantiate(this.getName(),this.getBody(),this.getProps())},_makeWrapped:function(a){return this.meta.instantiate(this.getName(),a)},around:function(a){var b=this.getBody();return this._makeWrapped(function c(){var c=this,d=function(){return b.apply(c,arguments)};return a.apply(this,Joose.A.concat([d],arguments))})},before:function(a){var b=this.getBody();return this._makeWrapped(function(){return a.apply(this,arguments),b.apply(this,arguments)})},after:function(a){var b=this.getBody();return this._makeWrapped(function c(){var c=b.apply(this,arguments);return a.apply(this,arguments),c})},override:function(a){var b=this.getBody();return this._makeWrapped(function c(){var c=this,d=function(){return b.apply(c,arguments)},e=this.SUPER;this.SUPER=d;var f=a.apply(this,arguments);return this.SUPER=e,f})},augment:function(a){var b=this.getBody();return b.source=b.toString(),this._makeWrapped(function c(){var c=b,d=this,e=a;e.source=e.toString(),this.__INNER_STACK__||(this.__INNER_STACK__=[]),this.__INNER_STACK__.push(e);var f=this.INNER;this.INNER=function(){return d.__INNER_STACK__.pop().apply(d,arguments)};var g=b.apply(this,arguments);return this.INNER=f,g})}}})}(JooseClass),function(a){a("Joose.ClassMethod",{isa:Joose.Method,after:{initialize:function(){this._isClassMethod=!0}},methods:{addToClass:function(a){a[this.getName()]=this.asFunction()},copy:function(){return new Joose.ClassMethod(this.getName(),this.getBody(),this.getProps())}}}),Joose.bootstrapCompletedClassMethod()}(JooseClass),function(a){a("Joose.Attribute",{after:{handleProps:function(a){this.handleHandles(a),this.handlePredicate(a)}},methods:{isPersistent:function(){var a=this.getProps();return a.persistent==0?!1:!0},doInitialization:function(a,b){var c=this.initializerName(),d=this.getName(),e,f=!1;if(typeof b!="undefined"&&typeof b[c]!="undefined")e=b[c],f=!0;else{var g=this.getProps(),h=g.init;if(typeof h=="function"&&!g.lazy)e=h.call(a),f=!0;else if(g.required)throw"Required initialization parameter missing: "+c+"(While initializing "+a+")"}if(f){var i=this.setterName();a.meta.can(i)?a[i](e):a[d]=e}},handleHandles:function(a){var b=a.meta,c=this.getName(),d=this.getProps(),e=d.handles,f=d.isa;if(e){if(e!="*")throw"Unsupported value for handles: "+e;if(!f)throw"I need an isa property in order to handle a class";var g=d.handleWith;b.decorate(f,c,g)}},handlePredicate:function(a){var b=a.meta,c=this.getName(),d=this.getProps(),e=d.predicate,f=this.getterName();e&&b.addMethod(e,function(){var a=this[f]();return a?!0:!1})}}})}(JooseClass),function(a){a("Joose.Role",{isa:Joose.Class,has:["requiresMethodNames","methodModifiers","metaRoles"],methods:{wrapMethod:function(a,b,c,d){this.methodModifiers.push(arguments);var e=this.methodModifiers},requiresMethod:function(a){var b=!1;return Joose.A.each(this.requiresMethodNames,function(c){a==c&&(b=!0)}),b},addInitializer:Joose.emptyFunction,defaultClassFunctionBody:function(){var a=function(){throw new Error("Roles may not be instantiated.")};return joose.addToString(a,function(){return this.meta.className()}),a},addSuperClass:function(){throw new Error("Roles may not inherit from a super class.")},initialize:function(){this._name="Joose.Role",this.requiresMethodNames=[],this.methodModifiers=[]},addRequirement:function(a){this.requiresMethodNames.push(a)},unapply:function(a){if(!joose.isInstance(a))throw new Error("You way only remove roles from instances.");if(!a.meta.isDetached)throw new Error("You may only remove roles that were applied at runtime");var b=this.getClassObject(),c=a.meta.myRoles,d=!1,e=[];for(var f=0;f<c.length;f++)c[f]===b?d=!0:e.push(c[f]);if(!d)throw new Error("The role "+this.className()+" was not applied to the object at runtime");var g=a.meta.getSuperClass(),h=g.meta.makeAnonSubclass(),i=new h;for(var f=0;f<e.length;f++){var b=e[f];h.meta.addRole(b)}h.prototype=i,a.meta=h.meta,a.constructor=h,a.__proto__=i},addMethodToClass:function(a,b){var c=a.getName(),d;a.isClassMethod()?d=b.meta.getClassMethodObject(c):d=b.meta.getMethodObject(c),(!d||d.isFromSuperClass())&&b.meta.addMethodObject(a)},addAttributeToClass:function(a,b){var c=a.getName();b.meta.getAttribute(c)||this.getAttribute(c).apply(b)},apply:function(a){if(a.meta.does(this.getClassObject()))return!1;if(joose.isInstance(a)){a.detach(),a.meta.addRole(this.getClassObject()),this.applyMethodModifiers(a);var b=!0;this.isImplementedBy(a,b)}else{var c=this,d=c.getMethodNames(),e=c.getAttributes();Joose.O.each(e,function(b){c.addAttributeToClass(b,a)}),Joose.A.each(d,function(b){var d=c.getMethodObject(b);d&&c.addMethodToClass(d,a),d=c.getClassMethodObject(b),d&&c.addMethodToClass(d,a)}),this.metaRoles&&Joose.A.each(this.metaRoles,function(b){b.meta.apply(a.meta)})}return!0},applyMethodModifiers:function(a){Joose.A.each(this.methodModifiers,function b(b){a.meta.wrapMethod.apply(a.meta,b)})},hasRequiredMethods:function(a,b){var c=this,d=!0;return Joose.A.each(this.requiresMethodNames,function(e){var f=a.meta.can(e);if(!f){if(b)throw"Class "+a.meta.className()+" does not fully implement the role "+c.className()+". The method is "+e+" missing.";d=!1;return}}),d},isImplementedBy:function(a,b){var c=this.hasRequiredMethods(a,b);return c&&(c=this.implementsMyMethods(a)),c},handlePropmetaRoles:function(a){this.metaRoles=a}}}),Joose.Role.anonymousClassCounter=0}(JooseClass),function(a){var b={},c=!0;a("Joose.Singleton",{before:{initialize:function(){if(c){var a=this.meta.className();throw new Error("The class "+a+" is a singleton. Please use the class method getInstance().")}}},methods:{singletonInitialize:function(){}},classMethods:{getInstance:function(){var a=this.meta.className(),d=b[a];return d?d:(c=!1,d=this.meta.instantiate(),c=!0,d.singletonInitialize.apply(d,arguments),b[a]=d,d)}}})}(JooseRole),function(a){a("Joose.SimpleRequest",{has:{_req:{}},methods:{initialize:function(){window.XMLHttpRequest?this._req=new XMLHttpRequest:this._req=new ActiveXObject("Microsoft.XMLHTTP")},getText:function(a){this._req.open("GET",a,!1);try{this._req.send(null);if(this._req.status==200||this._req.status==0)return this._req.responseText}catch(b){throw"File not found: "+a}throw"File not found: "+a}}})}(JooseClass),function(a){a("Joose.Gears",{isa:Joose.Class,has:{wp:{},calls:{init:{}},callIndex:{init:0}},methods:{initialize:function(){JooseGearsInitializeGears();if(this.canGears()){this.wp=google.gears.factory.create("beta.workerpool");var a=this;this.wp.onmessage=function(b,c,d){a.handleGearsMessage(d)}}},handleGearsMessage:function(a){var b=a.body,c=b.to,d=b.ret,e=this.calls[b.index];e.meta.can(c)&&e[c].call(e,d)},canGears:function(){return this.meta.c.clientHasGears()},addWorker:function(a,b,c){var d="on"+Joose.S.uppercaseFirst(a),e=this.meta.getClassObject().ajaxRequest;if(!this.canGears()){var f=function(){var a=this,c={sendReturn:function(b,c){a.meta.can(c)&&a[c].call(a,b)},clientHasGears:function(){return!1},ajaxRequest:e},f=b.apply(c,arguments);c.sendReturn(f,d)};this.addMethod(a,f,c);return}var g=this.can("jsonURL")?this.c.jsonURL():"json2.js",h=(new Joose.SimpleRequest).getText(g),i="var timer = google.gears.factory.create('beta.timer');\nfunction aClass () {}; aClass.prototype."+a+" = "+b.toString()+"\n\n"+"aClass.prototype.clientHasGears = function () { return true }\n"+"aClass.prototype.ajaxRequest = "+e.toString()+"\n\n"+"var wp = google.gears.workerPool;\n"+"wp.onmessage = function (a,b,message) {\n"+"var paras = message.body;\n"+"var o = new aClass();\n"+"o.sendReturn = function (ret, cbName) { wp.sendMessage({ ret: ret, to: cbName, index: paras.index }, message.sender) } \n"+"var ret = o."+a+".apply(o, paras.args); if(!ret) ret = null; \n"+"o.sendReturn(ret, paras.cbName);"+"\n}\n\n";i+=h;var j=this.wp,k=j.createWorker(i),l=this,f=function(){var a=[];for(var b=0;b<arguments.length;b++)a.push(arguments[b]);var c={args:a,cbName:d,index:l.callIndex};j.sendMessage(c,k),l.calls[l.callIndex]=this,l.callIndex++};this.addMethod(a,f,c)}},classMethods:{setupGearsCompat:function(){window.timer={setTimeout:function(a,b){return window.setTimeout(a,b)},setInterval:function(a,b){return window.setInterval(a,b)},clearTimeout:function(a){return window.clearTimeout(a)},clearInterval:function(a){return window.clearInterval(a)}}},clientHasGears:function(){if(typeof this._canGears!="undefined")return this._canGears;if(window.google&&window.google.gears&&window.google.gears.factory){try{google.gears.factory.create("beta.httprequest")}catch(a){return this._canGears=!1,!1}return this._canGears=!0,!0}return this._canGears=!1,!1},ajaxRequest:function(a,b,c,d,e){var f;this.clientHasGears()?f=google.gears.factory.create("beta.httprequest"):f=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;var g="";if(c)for(var h in c)g+=encodeURIComponent(h)+"="+encodeURIComponent(c[h])+"&";var i=b;c&&a=="GET"&&(i+="?"+g),f.open(a,i,!0),f.onreadystatechange=function(){if(f.readyState==4){if(!(f.status>=200&&f.status<400)){if(e)return e(f);throw new Error("Error fetching url "+i+". Response code: "+f.status+" Response text: "+f.responseText)}var a=f.responseText;d(a)}},c&&a=="POST"?(f.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),f.send(g)):(g="",f.send(g))}}})}(JooseClass),function(a,b){b("Joose.Storage",{methods:{toJSON:function(){var a=this.pack(Joose.Storage.TEMP_SEEN);return a},identity:function(){return this.__ID__?this.__ID__:this.__ID__=Joose.Storage.OBJECT_COUNTER++},pack:function(a){return this.meta.c.storageEngine().pack(this,a)}},classMethods:{storageEngine:function(){return Joose.Storage.Engine},unpack:function(a){return this.storageEngine().unpack(this,a)}}}),b("Joose.Storage.jsonpickle",{does:Joose.Storage,classMethods:{storageEngine:function(){return Joose.Storage.Engine.jsonpickle}}}),Joose.Storage.OBJECT_COUNTER=1,a("Joose.Storage.Engine",{classMethods:{pack:function(a,b){a.meta.can("prepareStorage")&&a.prepareStorage(),b&&(b[a.identity()]=!0);var c={__CLASS__:this.packedClassName(a),__ID__:a.identity()},d=a.meta.getAttributes();return Joose.O.eachSafe(d,function(b,d){b.isPersistent()&&(c[d]=a[d])}),c},unpack:function(a,b){var c=a.meta,d=c.instantiate(),e=!1;Joose.O.eachSafe(b,function(a,b){if(b=="__CLASS__"){var c=Joose.Storage.Unpacker.packedClassNameToJSClassName(a);if(c!=d.meta.className())throw new Error("Storage data is of wrong type "+c+". I am "+d.meta.className()+".");e=!0;return}d[b]=a});if(!e)throw new Error("Serialized data needs to include a __CLASS__ attribute.: "+b);return delete d.__ID__,d.meta.can("finishUnpack")&&d.finishUnpack(),d},packedClassName:function(a){if(a.meta.can("packedClassName"))return a.packedClassName();var b=a.meta.className(),c=b.split(".");return c.join("::")}}}),a("Joose.Storage.Engine.jsonpickle",{classMethods:{pack:function(a,b){a.meta.can("prepareStorage")&&a.prepareStorage(),b&&(b[a.identity()]=!0);var c={classname__:this.packedClassName(a),classmodule__:this.packedModuleName(a),objectid__:a.identity()},d=a.meta.getAttributes();return Joose.O.eachSafe(d,function(b,d){b.isPersistent()&&(c[d]=a[d])}),c},unpack:function(a,b){var c=a.meta,d=c.instantiate(),e=!1;Joose.O.eachSafe(b,function f(a,c){if(c=="classname__"){var f=a,g=b.classmodule__;g&&(f=""+g+"."+a);if(f!=d.meta.className())throw new Error("Storage data is of wrong type "+f+". I am "+d.meta.className()+".");e=!0;return}if(c=="classmodule__")return;d[c]=a});if(!e)throw new Error("Serialized data needs to include a __CLASS__ attribute.: "+b);return d.meta.can("finishUnpack")&&d.finishUnpack(),d},packedClassName:function(a){var b=a.meta.className(),c=b.split(".");return c.pop()},packedModuleName:function(a){var b=a.meta.className(),c=b.split(".");return c.pop(),c.join(".")}}}),Joose.Storage.storageEngine=Joose.Storage.Engine,Joose.Storage.jsonpickle.storageEngine=Joose.Storage.Engine.jsonpickle}(JooseClass,JooseRole),function(a){a("Joose.Storage.Unpacker",{classMethods:{unpack:function(a){var b=a.__CLASS__;if(!b)throw"Serialized data needs to include a __CLASS__ attribute.";var c=this.packedClassNameToJSClassName(b),d=this.meta.classNameToClassObject(c),e=d.unpack(a),f;return Joose.Storage.CACHE&&(f=a.__ID__)&&(Joose.Storage.CACHE[f]=e),e},packedClassNameToJSClassName:function(a){var b=a.split("-");return b=b[0].split("::"),b.join(".")},jsonParseFilter:function(a,b){if(b!=null&&typeof b=="object"){if(b.__ID__&&Joose.Storage.CACHE&&Joose.Storage.CACHE[b.__ID__])return Joose.Storage.CACHE[b.__ID__];if(b.__CLASS__)return Joose.Storage.Unpacker.unpack(b)}return b},patchJSON:function(){var a=JSON.parse,b=this.jsonParseFilter;JSON.parse=function(c,d){return Joose.Storage.CACHE={},a(c,function e(a,c){var e=c;return d&&(e=d(a,c)),b(a,e)})};var c=JSON.stringify;JSON.stringify=function(){return Joose.Storage.TEMP_SEEN={},c.apply(JSON,arguments)}}}}),a("Joose.Storage.Unpacker.jsonpickle",{isa:Joose.Storage.Unpacker,classMethods:{unpack:function(a){var b=a.classname__;if(!b)throw"Serialized data needs to include a classname__ attribute.";var c=this.packedClassNameToJSClassName(b,a.classmodule__),d=this.meta.classNameToClassObject(c),e=d.unpack(a),f;return Joose.Storage.CACHE&&(f=a.objectid__)&&(Joose.Storage.CACHE[f]=e),e},packedClassNameToJSClassName:function(a,b){var c="";return b&&(c+=b+"."),c+=a,c},jsonParseFilter:function(a,b){if(b!=null&&typeof b=="object"){if(b.objectid__&&Joose.Storage.CACHE&&Joose.Storage.CACHE[b.objectid__])return Joose.Storage.CACHE[b.objectid__];if(b.classname__)return Joose.Storage.Unpacker.jsonpickle.unpack(b)}return b}}})}(JooseClass),function(a){a("Joose.Decorator",{meta:Joose.Role,methods:{decorate:function(a,b,c){var d=this,e=a.meta.getInstanceMethods();Joose.A.each(e,function(a){var e=a.getName(),f=b;if(!d.can(e)){var g=function(){var a=this[f];return a[e].apply(a,arguments)};c&&(g=c(e)),d.addMethod(e,g)}})}}}),Joose.Decorator.meta.apply(Joose.Class)}(JooseClass),function(a){Joose.NameSpace=function(){},a("Joose.Module",{has:{_name:{is:"rw"},_elements:{is:"rw"},_container:{is:"rw"}},classMethods:{setup:function(a,b){var c=this,d=a.split("."),e=joose.top,f=[],g;for(var h=0,i=d.length;h<i;++h){var j=d[h];if(j=="meta")throw"Module names may not include a part called 'meta'.";var k=e[j];f.push(j);var l=f.join(".");if(typeof k=="undefined")e[j]=new Joose.NameSpace,g=new Joose.Module(l),g.setContainer(e[j]),e[j].meta=g,Joose.Module._allModules.push(e[j]);else{g=k.meta;if(h===i-1&&!(g&&g.meta&&g.meta.isa(Joose.Module)))throw"Trying to setup module "+a+" failed. There is already something else: "+k}e=e[j]}var m=joose.currentModule;return joose.currentModule=g,b&&b(e),joose.currentModule=m,e},getAllModules:function(){return this._allModules}},methods:{alias:function(a){var b=this;if(arguments.length==0)return this;Joose.A.each(this.getElements(),function(c){var d=b.globalName(c.meta.className());if(a[d]===c)return;if(typeof a[d]!="undefined")throw"There is already something else in the spot "+d;a[d]=c})},globalName:function(a){var b=this.getName();if(a.indexOf(b)!=0)throw"All things inside me should have a name that starts with "+b+". Name is "+a;var c=a.substr(b.length+1);if(c.indexOf(".")!=-1)throw"The things inside me should have no more dots in there name. Name is "+c;return c},removeGlobalSymbols:function(){Joose.A.each(this.getElements(),function(a){var b=this.globalName(a.getName());delete joose.top[b]})},initialize:function(a){this.setElements([]),this.setName(a)},isEmpty:function(){return this.getElements().length==0},addElement:function(a){if(!a&&!a.meta)throw"You may only add things that are Joose objects";this._elements.push(a)},getNames:function(){var a=[];return Joose.A.each(this.getElements(),function(b){a.push(b.meta.getName())}),a}}})}(JooseClass),__global__={},__global__.meta=new Joose.Module,__global__.meta.setName("__global__"),__global__.meta.setContainer(__global__),Joose.Module._allModules=[__global__],JooseModule("__global__.nomodule",function(){}),__global__.nomodule.meta._elements=joose.globalObjects,function(a,b){a("Joose.TypeChecker",{classMethods:{makeTypeChecker:function(a,b,c,d){if(!a.meta)throw new Error("Isa declarations in attribute declarations must be Joose classes, roles or type constraints");var e=!1,f=!1;return Joose.Role&&a.meta.meta.isa(Joose.Role)?e=!0:Joose.TypeConstraint&&a.meta.isa(Joose.TypeConstraint)&&(f=!0),func=function g(g,h){try{if(b.nullable!==!0||g!=undefined)if(f){var i=null;b.coerce&&(i=a.coerce(g)),i==null&&b.nullable!==!0?a.validate(g):g=i}else{if(!g||!g.meta)throw new ReferenceError("The "+c+" "+d+" only accepts values that have a meta object.");var j=e?g.meta.does(a):g.meta.isa(a);if(!j)throw new ReferenceError("The "+c+" "+d+" only accepts values that are objects of type "+a.meta.className()+".")}}catch(k){if(h)h.call(this,k,a);else throw k}return g},func}}})}(JooseClass,JooseType),function(a){a("Joose.TypeConstraint",{has:{_constraints:{is:"ro",init:function(){return[]}},_coercions:{is:"ro",init:function(){return[]}},_messages:{is:"ro",init:function(){return[]}},_callback:{is:"ro",init:function(){return function(a){throw new ReferenceError(a)}}},_name:{is:"ro"},_uses:{is:"ro"},props:{is:"rw"}},classMethods:{newFromTypeBuilder:function(a,b){var c=new Joose.TypeConstraint({name:a});b.uses&&typeof b.uses.meta!="undefined"&&b.uses.meta.isa(Joose.TypeConstraint)&&(c._uses=b.uses),b.where&&c.addConstraint(b.where,b.message),c.setProps(b);if(b.coerce)for(var d=0;d<b.coerce.length;d++){var e=b.coerce[d];c.addCoercion(new Joose.TypeCoercion({from:e.from,via:e.via}))}return c}},methods:{stringify:function(){return this._name},makeSubType:function(a){var b=new Joose.TypeConstraint({name:a});return Joose.A.each(this._constraints,function(a){b.addConstraint(a)}),b},addCoercion:function(a){this._coercions.push(a)},addConstraint:function(a,b){this._constraints.push(a),this._messages.push(b)},getConstraintList:function(){var a=this._constraints;if(this._uses){var b=this._uses.getConstraintList();return b.concat(a)}return a},getMessageList:function(){var a=this._messages;if(this._uses){var b=this._uses.getMessageList();return b.concat(a)}return a},validateBool:function(a){var b=this._validate(a);return b==-1?!0:!1},validate:function(a){var b=this._validate(a);if(b==-1)return!0;var c=this.getMessageList(),d=c[b]?c[b].call(this,a):"The passed value ["+a+"] is not a "+this;this._callback(d)},_validate:function(a){var b=this.getConstraintList(),c,d;for(c=0,d=b.length;c<d;c++){var e=b[c],f=!1;e instanceof RegExp?f=e.test(a):f=e.call(this,a);if(!f)return c}return-1},coerce:function(a){if(this.validateBool(a))return a;var b=this._coercions;for(var c=0,d=b.length;c<d;c++){var e=b[c],f=e.coerce(a);if(f!==null)return f}return null}}})}(JooseClass),function(a,b){b("CoercionFrom",{where:function(a){return a.meta&&a.meta.isa(Joose.TypeConstraint)?!0:!1}}),a("Joose.TypeCoercion",{has:{_from:{isa:TYPE.CoercionFrom,is:"rw"},_via:{is:"rw"}},methods:{coerce:function(a){return this._from.validateBool(a)?this._via(a):null}}})}(JooseClass,JooseType),function(a){a("Any",{where:function(a){return!0}}),a("Null",{uses:Joose.Type.Any,where:function(a){return a===null?!0:!1}}),a("NotNull",{uses:Joose.Type.Any,where:function(a){return a===null?!1:!0}}),a("Enum",{uses:Joose.Type.NotNull,message:function(a){return"The passed value ["+a+"] is not "+(this.getProps().strictMatch?"*strictly* ":"")+"one of ["+this.getProps().values.join(",")+"]"},where:function(a){var b=this,c=b.getProps();if(!!c&&c.values!==undefined&&c.values instanceof Array){var d=function(b){return c.strictMatch===!0?b===a:b==a};return Joose.A.grep(c.values,d).length!=0?!0:!1}throw"Enum Type needs Array of values in 'values' property of Type declaration"}}),a("Obj",{uses:Joose.Type.NotNull,where:function(a){return a instanceof Object?!0:!1}}),a("Str",{uses:Joose.Type.NotNull,where:function(a){return typeof a=="string"||a instanceof String?!0:!1},coerce:[{from:Joose.Type.Any,via:function(a){return a==null?"":""+a}}]}),a("Num",{uses:Joose.Type.NotNull,where:function(a){return typeof a=="number"||a instanceof Number?!0:!1},coerce:[{from:Joose.Type.Str,via:function(a){return a==null||a==""?undefined:parseFloat(a,10)}}]}),a("Bool",{uses:Joose.Type.NotNull,where:function(a){return a===!0||a===!1?!0:!1},coerce:[{from:Joose.Type.Any,via:function(a){return a==null||a===""?!1:a==1||a=="1"||a=="true"?!0:a==0||a=="0"||a=="false"?!1:null}}]}),a("Int",{uses:Joose.Type.Num,where:function(a){var b=String(a);return b.match(/^\d*\.\d$/)?!1:!0},coerce:[{from:Joose.Type.Str,via:function(a){if(a==null||a=="")return undefined;if(a.match(/^-{0,1}\d+$/))return parseInt(a,10);return}}]}),a("Float",{uses:Joose.Type.Num,where:function(a){return!0}}),a("Func",{uses:Joose.Type.Obj,where:function(a){return typeof a=="function"?!0:!1}}),a("Array",{uses:Joose.Type.Obj,where:function(a){return Object.prototype.toString.call(a)==="[object Array]"?!0:!1}}),a("Date",{uses:Joose.Type.Obj,where:function(a){return a instanceof Date?!0:!1},coerce:[{from:Joose.Type.Str,via:function(a){var b;return a==undefined||a==""?undefined:(b=a.match(/\s*(\d+)-(\d+)-(\d+)/))?new Date(b[1],b[2]-1,[b[3]]):null}}]}),a("Joose",{uses:Joose.Type.Obj,where:function(a){return a.meta&&a.meta.meta.isa(Joose.Class)?!0:!1}})}(JooseType),function(a){a("Joose.Prototype",{isa:Joose.Class,override:{initializer:function(){var a=this.SUPER();return function(){a.apply(this,arguments);var b=this.meta;this.meta=new Joose.PrototypeLazyMetaObjectProxy,this.meta.metaObject=b,this.meta.object=this}}}}),a("Joose.PrototypeLazyMetaObjectProxy",{has:{metaObject:{is:"rw",isa:Joose.Class,handles:"*",handleWith:function(a){return function(){var b=this.object;b.meta=this.metaObject,b.detach(),b.meta[a].apply(b.meta,arguments)}}},object:{is:"rw"}}}),Joose.bootstrap3()}(JooseClass),function(a,b){a("Joose.TypedMethod",{isa:Joose.Method,has:{types:{isa:Joose.Type.Array,is:"rw",init:function(){return[]}},typeCheckers:{init:function(){return[]}}},after:{setTypes:function(){var a=this,b=[],c=this.getProps();Joose.A.each(this.getTypes(),function(a,d){a===null?b.push(null):b.push(Joose.TypeChecker.makeTypeChecker(a,c,"parameter",d))}),this.typeCheckers=b}},override:{copy:function(){var a=this.SUPER(),b=[].concat(this.types);return a.setTypes(b),a}},methods:{wrapTypeChecker:function(a){var b=this;return function c(){var c=b.typeCheckers,d=[];for(var e=0,f=c.length;e<f;++e){var g=c[e];if(g!==null){var h=arguments[e];d[e]=g(h)}else d[e]=arguments[e]}return a.apply(this,d)}},asFunction:function(){return this.wrapTypeChecker(this._body)}},classMethods:{newFromProps:function(a,b){var c=b.method;if(typeof c!="function")throw new Error("Property method in method declaration ["+a+"] must be a function.");var d=this.meta.instantiate(a,c,b);return d.setTypes(b.signature),d}}})}(JooseClass,JooseType),Module("Joose.Type",function(){Type("MethodPatternList",{uses:Joose.Type.Array,where:function(a){var b=0;for(var c in a){var d=a[c];d.signature instanceof Array&&typeof d.method=="function"&&b++}return a.length==b}})}),Class("Joose.MultiMethod",{isa:Joose.Method,has:{patterns:{is:"rw",isa:Joose.Type.MethodPatternList,init:function(){return[]}}},override:{copy:function(){var a=this.SUPER(),b=[].concat(this.getPatterns());return a.setPatterns(b),a}},methods:{getFunForSignature:function(){var a=arguments,b=this,c=b.getPatterns();for(var d in c)if(c.hasOwnProperty(d)){var e=c[d],f=e.signature,g=0;if(f.length==a.length){if(f.length>0)for(var h=0;h<f.length;h++)f[h]instanceof Joose.TypeConstraint&&f[h].validateBool(a[h])?g++:f[h]instanceof Object&&a[h]instanceof f[h]?g++:a[h]==f[h]&&g++;if(g==f.length)return e.method}}return function(){throw new ReferenceError("multi-method type method call with no matching signature")}},asFunction:function(){var a=this;return function(){var b=this,c=arguments,d=a.getFunForSignature.apply(a,c);return d.apply(b,c)}}},classMethods:{newFromPatterns:function(a,b){return method=new Joose.MultiMethod(a,function(){},{}),method.setPatterns(b),method}}});
// !MeAb! c/s/d/e/j/e/underscore.js
function _export(){return _}(function(){var a=this,b=a._,c={},d=Array.prototype,e=Object.prototype,f=Function.prototype,g=d.slice,h=d.unshift,i=e.toString,j=e.hasOwnProperty,k=d.forEach,l=d.map,m=d.reduce,n=d.reduceRight,o=d.filter,p=d.every,q=d.some,r=d.indexOf,s=d.lastIndexOf,t=Array.isArray,u=Object.keys,v=f.bind,w=function(a){return new B(a)};typeof module!="undefined"&&module.exports?(module.exports=w,w._=w):a._=w,w.VERSION="1.1.7";var x=w.each=w.forEach=function(a,b,d){if(a==null)return;if(k&&a.forEach===k)a.forEach(b,d);else if(a.length===+a.length){for(var e=0,f=a.length;e<f;e++)if(e in a&&b.call(d,a[e],e,a)===c)return}else for(var g in a)if(j.call(a,g)&&b.call(d,a[g],g,a)===c)return};w.map=function(a,b,c){var d=[];return a==null?d:l&&a.map===l?a.map(b,c):(x(a,function(a,e,f){d[d.length]=b.call(c,a,e,f)}),d)},w.reduce=w.foldl=w.inject=function(a,b,c,d){var e=c!==void 0;a==null&&(a=[]);if(m&&a.reduce===m)return d&&(b=w.bind(b,d)),e?a.reduce(b,c):a.reduce(b);x(a,function(a,f,g){e?c=b.call(d,c,a,f,g):(c=a,e=!0)});if(!e)throw new TypeError("Reduce of empty array with no initial value");return c},w.reduceRight=w.foldr=function(a,b,c,d){a==null&&(a=[]);if(n&&a.reduceRight===n)return d&&(b=w.bind(b,d)),c!==void 0?a.reduceRight(b,c):a.reduceRight(b);var e=(w.isArray(a)?a.slice():w.toArray(a)).reverse();return w.reduce(e,b,c,d)},w.find=w.detect=function(a,b,c){var d;return y(a,function(a,e,f){if(b.call(c,a,e,f))return d=a,!0}),d},w.filter=w.select=function(a,b,c){var d=[];return a==null?d:o&&a.filter===o?a.filter(b,c):(x(a,function(a,e,f){b.call(c,a,e,f)&&(d[d.length]=a)}),d)},w.reject=function(a,b,c){var d=[];return a==null?d:(x(a,function(a,e,f){b.call(c,a,e,f)||(d[d.length]=a)}),d)},w.every=w.all=function(a,b,d){var e=!0;return a==null?e:p&&a.every===p?a.every(b,d):(x(a,function(a,f,g){if(!(e=e&&b.call(d,a,f,g)))return c}),e)};var y=w.some=w.any=function(a,b,d){b=b||w.identity;var e=!1;return a==null?e:q&&a.some===q?a.some(b,d):(x(a,function(a,f,g){if(e|=b.call(d,a,f,g))return c}),!!e)};w.include=w.contains=function(a,b){var c=!1;return a==null?c:r&&a.indexOf===r?a.indexOf(b)!=-1:(y(a,function(a){if(c=a===b)return!0}),c)},w.invoke=function(a,b){var c=g.call(arguments,2);return w.map(a,function(a){return(b.call?b||a:a[b]).apply(a,c)})},w.pluck=function(a,b){return w.map(a,function(a){return a[b]})},w.max=function(a,b,c){if(!b&&w.isArray(a))return Math.max.apply(Math,a);var d={computed:-Infinity};return x(a,function(a,e,f){var g=b?b.call(c,a,e,f):a;g>=d.computed&&(d={value:a,computed:g})}),d.value},w.min=function(a,b,c){if(!b&&w.isArray(a))return Math.min.apply(Math,a);var d={computed:Infinity};return x(a,function(a,e,f){var g=b?b.call(c,a,e,f):a;g<d.computed&&(d={value:a,computed:g})}),d.value},w.sortBy=function(a,b,c){return w.pluck(w.map(a,function(a,d,e){return{value:a,criteria:b.call(c,a,d,e)}}).sort(function(a,b){var c=a.criteria,d=b.criteria;return c<d?-1:c>d?1:0}),"value")},w.groupBy=function(a,b){var c={};return x(a,function(a,d){var e=b(a,d);(c[e]||(c[e]=[])).push(a)}),c},w.sortedIndex=function(a,b,c){c||(c=w.identity);var d=0,e=a.length;while(d<e){var f=d+e>>1;c(a[f])<c(b)?d=f+1:e=f}return d},w.toArray=function(a){return a?a.toArray?a.toArray():w.isArray(a)?g.call(a):w.isArguments(a)?g.call(a):w.values(a):[]},w.size=function(a){return w.toArray(a).length},w.first=w.head=function(a,b,c){return b!=null&&!c?g.call(a,0,b):a[0]},w.rest=w.tail=function(a,b,c){return g.call(a,b==null||c?1:b)},w.last=function(a){return a[a.length-1]},w.compact=function(a){return w.filter(a,function(a){return!!a})},w.flatten=function(a){return w.reduce(a,function(a,b){return w.isArray(b)?a.concat(w.flatten(b)):(a[a.length]=b,a)},[])},w.without=function(a){return w.difference(a,g.call(arguments,1))},w.uniq=w.unique=function(a,b){return w.reduce(a,function(a,c,d){if(0==d||(b===!0?w.last(a)!=c:!w.include(a,c)))a[a.length]=c;return a},[])},w.union=function(){return w.uniq(w.flatten(arguments))},w.intersection=w.intersect=function(a){var b=g.call(arguments,1);return w.filter(w.uniq(a),function(a){return w.every(b,function(b){return w.indexOf(b,a)>=0})})},w.difference=function(a,b){return w.filter(a,function(a){return!w.include(b,a)})},w.zip=function(){var a=g.call(arguments),b=w.max(w.pluck(a,"length")),c=new Array(b);for(var d=0;d<b;d++)c[d]=w.pluck(a,""+d);return c},w.indexOf=function(a,b,c){if(a==null)return-1;var d,e;if(c)return d=w.sortedIndex(a,b),a[d]===b?d:-1;if(r&&a.indexOf===r)return a.indexOf(b);for(d=0,e=a.length;d<e;d++)if(a[d]===b)return d;return-1},w.lastIndexOf=function(a,b){if(a==null)return-1;if(s&&a.lastIndexOf===s)return a.lastIndexOf(b);var c=a.length;while(c--)if(a[c]===b)return c;return-1},w.range=function(a,b,c){arguments.length<=1&&(b=a||0,a=0),c=arguments[2]||1;var d=Math.max(Math.ceil((b-a)/c),0),e=0,f=new Array(d);while(e<d)f[e++]=a,a+=c;return f},w.bind=function(a,b){if(a.bind===v&&v)return v.apply(a,g.call(arguments,1));var c=g.call(arguments,2);return function(){return a.apply(b,c.concat(g.call(arguments)))}},w.bindAll=function(a){var b=g.call(arguments,1);return b.length==0&&(b=w.functions(a)),x(b,function(b){a[b]=w.bind(a[b],a)}),a},w.memoize=function(a,b){var c={};return b||(b=w.identity),function(){var d=b.apply(this,arguments);return j.call(c,d)?c[d]:c[d]=a.apply(this,arguments)}},w.delay=function(a,b){var c=g.call(arguments,2);return setTimeout(function(){return a.apply(a,c)},b)},w.defer=function(a){return w.delay.apply(w,[a,1].concat(g.call(arguments,1)))};var z=function(a,b,c){var d;return function(){var e=this,f=arguments,g=function(){d=null,a.apply(e,f)};c&&clearTimeout(d);if(c||!d)d=setTimeout(g,b)}};w.throttle=function(a,b){return z(a,b,!1)},w.debounce=function(a,b){return z(a,b,!0)},w.once=function(a){var b=!1,c;return function(){return b?c:(b=!0,c=a.apply(this,arguments))}},w.wrap=function(a,b){return function(){var c=[a].concat(g.call(arguments));return b.apply(this,c)}},w.compose=function(){var a=g.call(arguments);return function(){var b=g.call(arguments);for(var c=a.length-1;c>=0;c--)b=[a[c].apply(this,b)];return b[0]}},w.after=function(a,b){return function(){if(--a<1)return b.apply(this,arguments)}},w.keys=u||function(a){if(a!==Object(a))throw new TypeError("Invalid object");var b=[];for(var c in a)j.call(a,c)&&(b[b.length]=c);return b},w.values=function(a){return w.map(a,w.identity)},w.functions=w.methods=function(a){var b=[];for(var c in a)w.isFunction(a[c])&&b.push(c);return b.sort()},w.extend=function(a){return x(g.call(arguments,1),function(b){for(var c in b)b[c]!==void 0&&(a[c]=b[c])}),a},w.defaults=function(a){return x(g.call(arguments,1),function(b){for(var c in b)a[c]==null&&(a[c]=b[c])}),a},w.clone=function(a){return w.isArray(a)?a.slice():w.extend({},a)},w.tap=function(a,b){return b(a),a},w.isEqual=function(a,b){if(a===b)return!0;var c=typeof a,d=typeof b;if(c!=d)return!1;if(a==b)return!0;if(!a&&b||a&&!b)return!1;a._chain&&(a=a._wrapped),b._chain&&(b=b._wrapped);if(a.isEqual)return a.isEqual(b);if(b.isEqual)return b.isEqual(a);if(w.isDate(a)&&w.isDate(b))return a.getTime()===b.getTime();if(w.isNaN(a)&&w.isNaN(b))return!1;if(w.isRegExp(a)&&w.isRegExp(b))return a.source===b.source&&a.global===b.global&&a.ignoreCase===b.ignoreCase&&a.multiline===b.multiline;if(c!=="object")return!1;if(a.length&&a.length!==b.length)return!1;var e=w.keys(a),f=w.keys(b);if(e.length!=f.length)return!1;for(var g in a)if(!(g in b)||!w.isEqual(a[g],b[g]))return!1;return!0},w.isEmpty=function(a){if(w.isArray(a)||w.isString(a))return a.length===0;for(var b in a)if(j.call(a,b))return!1;return!0},w.isElement=function(a){return!!a&&a.nodeType==1},w.isArray=t||function(a){return i.call(a)==="[object Array]"},w.isObject=function(a){return a===Object(a)},w.isArguments=function(a){return!!a&&!!j.call(a,"callee")},w.isFunction=function(a){return!!(a&&a.constructor&&a.call&&a.apply)},w.isString=function(a){return!!(a===""||a&&a.charCodeAt&&a.substr)},w.isNumber=function(a){return!!(a===0||a&&a.toExponential&&a.toFixed)},w.isNaN=function(a){return a!==a},w.isBoolean=function(a){return a===!0||a===!1},w.isDate=function(a){return!!(a&&a.getTimezoneOffset&&a.setUTCFullYear)},w.isRegExp=function(a){return!(!(a&&a.test&&a.exec)||!a.ignoreCase&&a.ignoreCase!==!1)},w.isNull=function(a){return a===null},w.isUndefined=function(a){return a===void 0},w.noConflict=function(){return a._=b,this},w.identity=function(a){return a},w.times=function(a,b,c){for(var d=0;d<a;d++)b.call(c,d)},w.mixin=function(a){x(w.functions(a),function(b){D(b,w[b]=a[b])})};var A=0;w.uniqueId=function(a){var b=A++;return a?a+b:b},w.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g},w.template=function(a,b){var c=w.templateSettings,d="var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('"+a.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(c.interpolate,function(a,b){return"',"+b.replace(/\\'/g,"'")+",'"}).replace(c.evaluate||null,function(a,b){return"');"+b.replace(/\\'/g,"'").replace(/[\r\n\t]/g," ")+"__p.push('"}).replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/\t/g,"\\t")+"');}return __p.join('');",e=new Function("obj",d);return b?e(b):e};var B=function(a){this._wrapped=a};w.prototype=B.prototype;var C=function(a,b){return b?w(a).chain():a},D=function(a,b){B.prototype[a]=function(){var a=g.call(arguments);return h.call(a,this._wrapped),C(b.apply(w,a),this._chain)}};w.mixin(w),x(["pop","push","reverse","shift","sort","splice","unshift"],function(a){var b=d[a];B.prototype[a]=function(){return b.apply(this._wrapped,arguments),C(this._wrapped,this._chain)}}),x(["concat","join","slice"],function(a){var b=d[a];B.prototype[a]=function(){return C(b.apply(this._wrapped,arguments),this._chain)}}),B.prototype.chain=function(){return this._chain=!0,this},B.prototype.value=function(){return this._wrapped}})();
// !MeAb! c/s/d/e/j/e/calendar.js
(function(){function a(){var a=this,b,c,d,e,f,g,h,i,j,k={},l,m,n,o,p,q,r,s=0,t="click",u="noAnimationEnd",v=typeof Modernizr!="undefined"&&Modernizr.csstransforms3d?"webkit moz o ms khtml ".split(" ").join("AnimationEnd ")+"animationEnd":u,w="startDate",x="endDate",y="multipleDates",z=function(a,b){for(var c=0,d=b.length;c<d;c++)if(a&&b[c]&&a.getTime()===b[c].getTime())return c;return-1},A=function(a,c){c&&c.clearTime&&c.clearTime();if(a==y){var d=!1;if(c===null)k=[];else{var e=z(c,k);if(e!==-1)k.splice(e,1);else{if(r!==null&&k.length>=~~r)return!1;k.push(c),d=!0}}b.data(a.toLowerCase(),JSON.stringify(k)).trigger(a+"Changed",{dates:k,changedDate:c}).trigger(a+(d?"Added":"Removed"),{dates:k,changedDate:c})}else a==w?i=c:j=c,b.data(a.toLowerCase(),c?c.toString():""),b.trigger(a+"Changed");E()},B=function(a){a.preventDefault();var b=$(this);if(b.hasClass("inactive")||b.text().length==0)return;var c=new Date(l.getFullYear(),l.getMonth(),parseInt(b.text()));if(p){A(w,!i||c.getTime()!=i.getTime()?c:null);return}if(q){A(y,c);return}i?j?b.hasClass(w)?A(w,null):b.hasClass(x)?A(x,null):(A(w,null),A(x,null)):i<c?A(x,c):c<i?(A(x,i),A(w,c)):A(w,null):j?c<j?A(w,c):j<c?(A(w,j),A(x,c)):A(x,null):A(w,c)},C=function(){Date.prototype.clone=function(){return new Date(this.getTime())},Date.prototype.isLeapYear=function(){var a=this.getFullYear();return a%4===0&&a%100!==0||a%400===0},Date.prototype.getDaysInMonth=function(){return[31,this.isLeapYear(this.getFullYear())?29:28,31,30,31,30,31,31,30,31,30,31][this.getMonth()]},Date.prototype.moveToFirstDayOfMonth=function(){return this.setDate(1),this},Date.prototype.moveToLastDayOfMonth=function(){return this.setDate(this.getDaysInMonth()),this},Date.prototype.addMilliseconds=function(a){return this.setMilliseconds(this.getMilliseconds()+a),this},Date.prototype.addDays=function(a){return this.addMilliseconds(a*864e5)},Date.prototype.addMonths=function(a){var b=this.getDate();return this.setDate(1),this.setMonth(this.getMonth()+a),this.setDate(Math.min(b,this.getDaysInMonth())),this},Date.prototype.clearTime=function(){return this.setHours(0),this.setMinutes(0),this.setSeconds(0),this.setMilliseconds(0),this}},D=function(a){return(a+s)%7},E=function(){g.removeClass(w).removeClass(x).removeClass(y).removeClass("betweenDates");var a=l.clone().moveToFirstDayOfMonth(),b=l.clone().moveToLastDayOfMonth(),c=D(a.getDay())-1;if(!!i&&!!j&&i<b&&j>a){var d=new Date(Math.max(a,i.clone().addDays(1))),e=new Date(Math.min(b,j.clone().addDays(-1)));d<=e&&g.slice(c+d.getDate(),c+e.getDate()+1).addClass("betweenDates")}!!i&&a<=i&&i<=b&&g.eq(c+i.getDate()).addClass(w),!!j&&a<=j&&j<=b&&g.eq(c+j.getDate()).addClass(x);for(var f in k)!!k[f]&&a<=k[f]&&k[f]<=b&&g.eq(c+k[f].getDate()).addClass(y)};a.ready=function(z){b=z,c=$('<a href="#">&lt;</a>'),d=$('<a href="#">&gt;</a>'),e=$('<li class="calMonth"></li>'),b.append($('<ul class="calButtonBar"></ul>').append($('<li class="calPrevious"></li>').append(c)).append(e).append($('<li class="calNext"></li>').append(d)));for(var D=0,E="",F="";D<7;D++)E+="<th></th>",F+='<td><a href="#"></a></td>';for(var D=0,G="";D<6;D++)G+="<tr>"+F+"</tr>";b.append('<div class="calGrid"><table><tr>'+E+"</tr>"+G+"</table></div>"),f=b.find("th"),g=b.find("td a"),h=b.find("tr"),h.eq(1).addClass("first"),p=b.hasClass("jsSingleDate"),q=b.hasClass("jsMultipleDates"),r=b.data("multipledates-max")||null,s=b.data("firstdayofweek")||s,b.get(0).calendar=a,$.fn&&($.fn.slice=$.fn.slice||function(a,b){return $([].slice.call(this,a,b))},$.fn.calendar=function(){return this.get(0).calendar}),C(),m=(new Date).clearTime(),n=b.data("mindate")?(new Date(b.data("mindate"))).clearTime():m,i=b.data("startdate"),i=i?(new Date(i)).clearTime():null,j=b.data("enddate"),j=j?(new Date(j)).clearTime():null,k=b.data("multipledates"),typeof k=="string"&&(k=JSON.parse(k));for(var D in k)k[D]=(new Date(k[D])).clearTime();l=(i||(k?k[0]:!1)||m).clone(),o=b.data("localized_date"),typeof o=="string"&&(o=JSON.parse(o));var H=b.find(".calGrid"),I=[],J=function(a){return H.children().length>1?(I.push(a),!0):!1},K=function(){I.length>0&&setTimeout(function(){I.shift().trigger(t)},0)};c.bind(t,function(d){d.preventDefault();if(J(c))return;l=l.addMonths(-1);var e=$("<table>"+b.find("table").html()+"</table>");H.append(e),g.closest("table").addClass("turndown").bind(v,function(a){$(this).removeClass("turndown").unbind(v),e.remove(),K()}).trigger(u),a.showMonth(l)}),d.bind(t,function(c){c.preventDefault();if(J(d))return;l=l.addMonths(1);var e=$('<table class="turnup">'+b.find("table").html()+"</table>");H.append(e),e.bind(v,function(a){e.remove(),K()}).trigger(u),a.showMonth(l)}),b.bind("resetDates",function(a){A(w,null),A(x,null),q&&A(y,null)}),g.bind(t,B),a.showMonth(l)},a.setDates=function(a,b){if(q){a=a&&a.constructor===Array?a:[a];for(var c=0,d=a.length;c<d;c++)A(y,a[c])}else A(w,a&&b?new Date(Math.min(a,b)):a),!p&&A(x,a&&b?a.getTime()!=b.getTime()?new Date(Math.max(a,b)):null:b)},a.showMonth=function(a){if(!!o){e.text(o.months.names["long"][a.getMonth()]+" "+a.getFullYear());for(var b=0,c=f.length;b<c;b++)f.eq(D(b)).text(o.days.names.min[b])}var d=n>a.clone().moveToLastDayOfMonth(),i=!d&&m.clone().moveToFirstDayOfMonth()-a.clone().moveToFirstDayOfMonth()===0,j=n.getDate();g.addClass("noTransition").removeClass("inactive"),h.removeClass("last").removeClass("hidden");for(var k=D(a.clone().moveToFirstDayOfMonth().getDay())-1,l=k+a.clone().moveToLastDayOfMonth().getDate(),b=0,c=g.length;b<c;b++){var p=b>k&&b<=l,q=g.eq(b).text(p?""+(b-k):"");q.toggleClass("noDate",!p),q.toggleClass("inactive",p&&(d||i&&b-k<j)),q.toggleClass("today",i&&m.getDate()==b-k),b==l&&q.closest("tr").addClass("last").next().addClass("hidden").next().addClass("hidden")}setTimeout(function(){g.removeClass("noTransition")},0),E()}}$(document).ready(function(){var b=$(".jsCalendar");for(var c=0,d=b.length;c<d;c++){var e=new a;e.ready(b.eq(c))}})})();
// !MeAb! c/s/d/e/j/e/q_code.js
function Qexport(){return Q}Q=function(){var a=function(){var a=[],b=[{start:" ",end:"~"}];for(var c=b.length-1;c>=0;--c){var d=b[c];for(var e=d.start.charCodeAt(0);e<=d.end.charCodeAt(0);++e)a[e]=String.fromCharCode(e)}return a["~".charCodeAt(0)]=null,a[" ".charCodeAt(0)]=null,a["q".charCodeAt(0)]=null,a["Q".charCodeAt(0)]=null,a}();count_map=function(){var a=[],b={0:9,1:10,2:13,3:32,4:63},c={},d="0AaLl";for(var e=d.length-1;e>=0;--e)c[d[e]]=[String.fromCharCode(b[e])];for(var e=0;e<10;++e)for(var f=0;f<5;++f){var g=d.charCodeAt(f)+e;a[g]={value:e+1,encode:"~"+String.fromCharCode(g),decode:c[d[f]].join(""),type:b[f]},c[d[f]].push(c[d[f]][0])}return a}();var b={9:"~0",10:"~A",13:"~a",32:"~L",63:"~?"},c=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P"],d=function(a,d,e){if(b[a]){var f=d[e-1];if(f&&f.length==2&&f.charCodeAt(0)==126){var g=f.charCodeAt(1),f=count_map[g];if(f.type==a&&f.value<10)return d[e-1]=count_map[g+1].encode,e}return d[e++]=b[a],e}return a==113?(d[e++]="qq",e):a==81?(d[e++]="QQ",e):a==126?(d[e++]="~~",e):a<256?(d[e++]="q"+c[a>>4&15]+c[a>>0&15],e):(d[e++]="Q"+c[a>>12&15]+c[a>>8&15]+c[a>>4&15]+c[a>>0&15],e)},e="A".charCodeAt(0),f=function(a){var b=a.substr(0,2);if(b=="qq")return{decoded:"q",len:2};if(b=="QQ")return{decoded:"Q",len:2};if(b=="~~")return{decoded:"~",len:2};var c=b.substr(0,1);return c=="~"?{decoded:count_map[b.charCodeAt(1)].decode,len:2}:(a=a.toUpperCase(),c=="Q"?{decoded:String.fromCharCode(a.charCodeAt(1)-e<<12|a.charCodeAt(2)-e<<8|a.charCodeAt(3)-e<<4|a.charCodeAt(4)-e<<0),len:5}:c=="q"?{decoded:String.fromCharCode(a.charCodeAt(1)-e<<4|a.charCodeAt(2)-e),len:3}:{decoded:a,len:a.length})};return{encode:function(b){var c=["!"],e=b.length,f=a,g=1;for(var h=0;h<e;++h){var i=b.substr(h,1),j=i.charCodeAt(0);f[j]?c[g++]=i:g=d(j,c,g)}return c.join("")},decode:function(b){b.match(/%22/)&&(b=decodeURIComponent(b));if(b.substr(0,1)!="!")throw"Illegal Q-Code:"+b;var c=b.length,d=0,e=0,g=[],h=a;for(var i="!".length;i<c;++i){var j=b.substr(i,1);if(!h[j.charCodeAt(0)]){var k=f(b.substr(i,5));g.push(k.decoded),i+=k.len-1}else g.push(j)}return g.join("")}}}(),typeof exports!="undefined"&&(exports=Q);
// !MeAb! c/s/d/e/j/e/weet.js
typeof importScript!="undefined"&&(importScript("global/require.ds"),requireJoose(),requireQ(),require_()),Class("Weet",{does:Joose.Singleton,classMethods:{subscribe:function(a,b){return this.getInstance().subscribe(a,b)},unsubscribe:function(a){this.getInstance().unsubscribe(a)},get:function(a){return this.getInstance().get(a)},set:function(a,b){return this.getInstance().set(a,b)},setHash:function(a,b){return this.getInstance().setHash(a,b)},setHref:function(a,b){return this.getInstance().setHref(a,b)},obj:function(){return this.merge({},this.getInstance().weet)},extend:function(a){this.getInstance().extend(a)},createHash:function(a,b){return this.getInstance().createHash(a,b)},extendHash:function(a){return this.getInstance().extendHash(a)},extendHref:function(a){return this.getInstance().extendHref(a)},extendObj:function(a){return this.getInstance().extendObj(a)},overwriteHash:function(a){this.getInstance().overwriteHash(a)},clearHash:function(){this.getInstance().clearHash()},deReference:function(a,b){var c=a.split("."),d=_(c).select(function(a){return b=!b||b[a],typeof b!="undefined"});return{found:d.length==c.length,value:b}},objectify:function(a,b){var c=a.split("."),d=c.pop(),e={};return _(c).reduce(function(a,b){return a[b]={}},e)[d]=b,e},parse:function(a){if(a=="#"||a.length==0)return{};a=a.slice(1);try{return JSON.parse(Q.decode(a))}catch(b){return{}}},merge:function(a){for(var b=1,c=arguments.length;b<c;b++){var d=arguments[b],e=JSON.parse(JSON.stringify(d));for(var f in e)e[f]===null?delete a[f]:typeof a[f]=="object"?this.merge(a[f],e[f]):a[f]=e[f]}return a},overwrite:function(a,b,c){var d=b.shift();return b.length?(a[d]=this.overwrite(typeof a[d]=="object"?a[d]:{},b,c),a):(c===null?delete a[d]:a[d]=c,a)},differences:function(a,b,c,d){var e=this;return d||(d={}),c||(c=""),b&&_(b).each(function(f,g,h,i,j){h=a&&a[g]||null,i=b[g],h?JSON.stringify(i)!=JSON.stringify(h)&&(typeof i=="object"?(d[_([c,g]).compact().join(".")]={action:"modified",value:i},e.differences(h,i,_([c,g]).compact().join("."),d)):JSON.stringify(i)!=JSON.stringify(h)&&(d[_([c,g]).compact().join(".")]={action:"modified",value:i})):typeof i=="object"?(d[_([c,g]).compact().join(".")]={action:"added",value:i},e.differences(h,i,_([c,g]).compact().join("."),d)):d[_([c,g]).compact().join(".")]={action:"added",value:i}}),a&&_(a).each(function(f,g,h,i){h=a[g],i=b&&b[g]||null,i||(typeof h=="object"?(d[_([c,g]).compact().join(".")]={action:"deleted",value:null},e.differences(h,i,_([c,g]).compact().join("."),d)):d[_([c,g]).compact().join(".")]={action:"deleted",value:null})}),d}},methods:{initialize:function(){this.weet={},this.subscriptions={},this.subscription_id=0,typeof window!="undefined"&&(this.weet=this.meta.c.parse(window.location.hash),this.observe(),window.location.hash.length>1&&$(window).trigger("hashchange"))},observe:function(){var a=this;$(window).hashchange(function(){a.notify()})},notify:function(){var a=this,b=[],c=this.meta.c.parse(window.location.hash);if(c){var d=this.meta.c.differences(this.weet,c);_(d).each(function(c,d){a.subscriptions[d]&&_(a.subscriptions[d]).each(function(a){b.push({action:c.action,value:c.value,funcs:a})})}),this.weet=c,_(b).each(function(a){typeof a.funcs=="function"?a.funcs(a.value,a.action):a.funcs[a.action](a.value)})}},subscribe:function(a,b){this.subscriptions[a]||(this.subscriptions[a]={}),this.subscriptions[a][this.subscription_id++]=b;var c=this.meta.c.deReference(a,this.weet);return c.found&&(typeof b=="function"?b(c.value,"initialized"):b.modified(c.value)),this.subscription_id-1},unsubscribe:function(a){_(this.subscriptions).each(function(b,c){b[a]&&delete b[a]})},get:function(a){var b=this.meta.c.merge({},this.weet),c=a.split(".");for(var d=0;d<c.length;d++){if(!b)break;b=b[c[d]]}return b},set:function(a,b){var c=this.meta.c.merge({},this.weet);return this.meta.c.overwrite(c,a.split("."),b),window.location.hash=Q.encode(JSON.stringify(c)),b},setHash:function(a,b){var c=this.meta.c.merge({},this.weet);return this.meta.c.overwrite(c,a.split("."),b),Q.encode(JSON.stringify(c))},setHref:function(a,b){return"#"+this.setHash(a,b)},extend:function(a){var b=this.meta.c.merge({},this.weet,a);window.location.hash=Q.encode(JSON.stringify(b))},extendHash:function(a){return Q.encode(JSON.stringify(this.extendObj(a)))},createHash:function(a,b){return this.extendHash(this.meta.c.objectify(a,b))},extendHref:function(a){return"#"+this.extendHash(a)},extendObj:function(a){return this.meta.c.merge({},this.weet,a)},overwriteHash:function(a){window.location.hash=Q.encode(JSON.stringify(a))},clearHash:function(){window.location.hash=Q.encode(JSON.stringify({}))}}});
// !MeAb! c/s/d/e/j/e/jquery.dataset.js
(function(a){function d(a,c){if(c!==undefined)return this.attr(b+a,c);switch(typeof a){case"string":return this.attr(b+a);case"object":return f.call(this,a);case"undefined":return e.call(this);default:throw"dataset: invalid argument "+a}}function e(){return this.foldAttr(function(a,b,d){var e=c.exec(this.name);e&&(d[e[1]]=this.value)})}function f(a){for(var c in a)this.attr(b+c,a[c]);return this}function g(a){return typeof a=="string"?this.removeAttr(b+a):h(a)}function h(a){var c,d=a&&a.length;if(d===undefined)for(c in a)this.removeAttr(b+c);else for(c=0;c<d;c++)this.removeAttr(b+a[c]);return this}var b="data-",c=/^data\-(.*)$/;a.fn.dataset=d,a.fn.removeDataset=h})(jQuery),function(a){function b(b){return this.length>0&&a.each(this[0].attributes,b),this}function c(a,b){return d(this.length>0&&this[0].attributes,a,b)}function d(a,b,c){var d=a&&a.length;c===undefined&&(c={});if(!a)return c;if(d!==undefined)for(var e=0,f=a[e];e<d&&b.call(f,e,f,c)!==!1;f=a[++e]);else for(var g in a)if(b.call(a[g],g,a[g],c)===!1)break;return c}function e(a,b){return b===undefined&&(b=[]),d(this,a,b)}a.fn.eachAttr=b,a.fn.foldAttr=c,a.fn.fold=e,a.fold=d}(jQuery);
// !MeAb! c/s/d/e/j/e/jquery.mousewheel.js
(function(a){function c(b){var c=b||window.event,d=[].slice.call(arguments,1),e=0,f=!0,g=0,h=0;return b=a.event.fix(c),b.type="mousewheel",b.wheelDelta&&(e=b.wheelDelta/120),b.detail&&(e=-b.detail/3),h=e,c.axis!==undefined&&c.axis===c.HORIZONTAL_AXIS&&(h=0,g=-1*e),c.wheelDeltaY!==undefined&&(h=c.wheelDeltaY/120),c.wheelDeltaX!==undefined&&(g=-1*c.wheelDeltaX/120),d.unshift(b,e,g,h),a.event.handle.apply(this,d)}var b=["DOMMouseScroll","mousewheel"];a.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=b.length;a;)this.addEventListener(b[--a],c,!1);else this.onmousewheel=c},teardown:function(){if(this.removeEventListener)for(var a=b.length;a;)this.removeEventListener(b[--a],c,!1);else this.onmousewheel=null}},a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery);
// !MeAb! c/s/d/e/j/e/jquery.validate-1.8.1.js
(function(a){a.extend(a.fn,{validate:function(b){if(!this.length){b&&b.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing");return}var c=a.data(this[0],"validator");return c?c:(c=new a.validator(b,this[0]),a.data(this[0],"validator",c),c.settings.onsubmit&&(this.find("input, button").filter(".cancel").click(function(){c.cancelSubmit=!0}),c.settings.submitHandler&&this.find("input, button").filter(":submit").click(function(){c.submitButton=this}),this.submit(function(b){function d(){if(c.settings.submitHandler){if(c.submitButton)var b=a("<input type='hidden'/>").attr("name",c.submitButton.name).val(c.submitButton.value).appendTo(c.currentForm);var d=c.settings.submitHandler.call(c,c.currentForm);return c.submitButton&&b.remove(),d}return!0}return c.settings.debug&&b.preventDefault(),c.cancelSubmit?(c.cancelSubmit=!1,d()):c.form()?c.pendingRequest?(c.formSubmitted=!0,!1):d():(c.focusInvalid(),!1)})),c)},valid:function(){if(a(this[0]).is("form"))return this.validate().form();var b=!0,c=a(this[0].form).validate();return this.each(function(){b&=c.element(this)}),b},removeAttrs:function(b){var c={},d=this;return a.each(b.split(/\s/),function(a,b){c[b]=d.attr(b),d.removeAttr(b)}),c},rules:function(b,c){var d=this[0];if(b){var e=a.data(d.form,"validator").settings,f=e.rules,g=a.validator.staticRules(d);switch(b){case"add":a.extend(g,a.validator.normalizeRule(c)),f[d.name]=g,c.messages&&(e.messages[d.name]=a.extend(e.messages[d.name],c.messages));break;case"remove":if(!c)return delete f[d.name],g;var h={};return a.each(c.split(/\s/),function(a,b){h[b]=g[b],delete g[b]}),h}}var i=a.validator.normalizeRules(a.extend({},a.validator.metadataRules(d),a.validator.classRules(d),a.validator.attributeRules(d),a.validator.staticRules(d)),d);if(i.required){var j=i.required;delete i.required,i=a.extend({required:j},i)}return i}}),a.extend(a.expr[":"],{blank:function(b){return!a.trim(""+b.value)},filled:function(b){return!!a.trim(""+b.value)},unchecked:function(a){return!a.checked}}),a.validator=function(b,c){this.settings=a.extend(!0,{},a.validator.defaults,b),this.currentForm=c,this.init()},a.validator.format=function(b,c){return arguments.length==1?function(){var c=a.makeArray(arguments);return c.unshift(b),a.validator.format.apply(this,c)}:(arguments.length>2&&c.constructor!=Array&&(c=a.makeArray(arguments).slice(1)),c.constructor!=Array&&(c=[c]),a.each(c,function(a,c){b=b.replace(new RegExp("\\{"+a+"\\}","g"),c)}),b)},a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:!0,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:!0,ignore:[],ignoreTitle:!1,onfocusin:function(a){this.lastActive=a,this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass,this.settings.validClass),this.addWrapper(this.errorsFor(a)).hide())},onfocusout:function(b){!a(b).is(this.settings.ignore)&&!this.checkable(b)&&(b.name in this.submitted||!this.optional(b))&&this.element(b)},onkeyup:function(a){(a.name in this.submitted||a==this.lastElement)&&this.element(a)},onclick:function(a){a.name in this.submitted?this.element(a):a.parentNode.name in this.submitted&&this.element(a.parentNode)},highlight:function(b,c,d){b.type==="radio"?this.findByName(b.name).addClass(c).removeClass(d):a(b).addClass(c).removeClass(d)},unhighlight:function(b,c,d){b.type==="radio"?this.findByName(b.name).removeClass(c).addClass(d):a(b).removeClass(c).addClass(d)}},setDefaults:function(b){a.extend(a.validator.defaults,b)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function d(b){var c=a.data(this[0].form,"validator"),d="on"+b.type.replace(/^validate/,"");c.settings[d]&&c.settings[d].call(c,this[0])}this.labelContainer=a(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm),this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var b=this.groups={};a.each(this.settings.groups,function(c,d){a.each(d.split(/\s/),function(a,d){b[d]=c})});var c=this.settings.rules;a.each(c,function(b,d){c[b]=a.validator.normalizeRule(d)}),a(this.currentForm).validateDelegate(":text, :password, :file, select, textarea","focusin focusout keyup",d).validateDelegate(":radio, :checkbox, select, option","click",d),this.settings.invalidHandler&&a(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),a.extend(this.submitted,this.errorMap),this.invalid=a.extend({},this.errorMap),this.valid()||a(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var a=0,b=this.currentElements=this.elements();b[a];a++)this.check(b[a]);return this.valid()},element:function(b){b=this.clean(b),this.lastElement=b,this.prepareElement(b),this.currentElements=a(b);var c=this.check(b);return c?delete this.invalid[b.name]:this.invalid[b.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),c},showErrors:function(b){if(b){a.extend(this.errorMap,b),this.errorList=[];for(var c in b)this.errorList.push({message:b[c],element:this.findByName(c)[0]});this.successList=a.grep(this.successList,function(a){return!(a.name in b)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){a.fn.resetForm&&a(this.currentForm).resetForm(),this.submitted={},this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(a){var b=0;for(var c in a)b++;return b},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return this.size()==0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(b){}},findLastActive:function(){var b=this.lastActive;return b&&a.grep(this.errorList,function(a){return a.element.name==b.name}).length==1&&b},elements:function(){var b=this,c={};return a(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){return!this.name&&b.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.name in c||!b.objectLength(a(this).rules())?!1:(c[this.name]=!0,!0)})},clean:function(b){return a(b)[0]},errors:function(){return a(this.settings.errorElement+"."+this.settings.errorClass.split(/\s+/)[0],this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=a([]),this.toHide=a([]),this.currentElements=a([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(a){this.reset(),this.toHide=this.errorsFor(a)},check:function(b){b=this.clean(b),this.checkable(b)&&(b=this.findByName(b.name).not(this.settings.ignore)[0]);var c=a(b).rules(),d=!1;for(var e in c){var f={method:e,parameters:c[e]};try{var g=a.validator.methods[e].call(this,b.value.replace(/\r/g,""),b,f.parameters);if(g=="dependency-mismatch"){d=!0;continue}d=!1;if(g=="pending"){this.toHide=this.toHide.not(this.errorsFor(b));return}if(!g)return this.formatAndAdd(b,f),!1}catch(h){throw this.settings.debug&&window.console&&console.log("exception occured when checking element "+b.id+", check the '"+f.method+"' method",h),h}}if(d)return;return this.objectLength(c)&&this.successList.push(b),!0},customMetaMessage:function(b,c){if(!a.metadata)return;var d=this.settings.meta?a(b).metadata()[this.settings.meta]:a(b).metadata();return d&&d.messages&&d.messages[c]},customMessage:function(a,b){var c=this.settings.messages[a];return c&&(c.constructor==String?c:c[b])},findDefined:function(){for(var a=0;a<arguments.length;a++)if(arguments[a]!==undefined)return arguments[a];return undefined},defaultMessage:function(b,c){return this.findDefined(this.customMessage(b.name,c),this.customMetaMessage(b,c),!this.settings.ignoreTitle&&b.title||undefined,a.validator.messages[c],"<strong>Warning: No message defined for "+b.name+"</strong>")},formatAndAdd:function(a,b){var c=this.defaultMessage(a,b.method),d=/\$?\{(\d+)\}/g;typeof c=="function"?c=c.call(this,b.parameters,a):d.test(c)&&(c=jQuery.format(c.replace(d,"{$1}"),b.parameters)),this.errorList.push({message:c,element:a}),this.errorMap[a.name]=c,this.submitted[a.name]=c},addWrapper:function(a){return this.settings.wrapper&&(a=a.add(a.parent(this.settings.wrapper))),a},defaultShowErrors:function(){for(var a=0;this.errorList[a];a++){var b=this.errorList[a];this.settings.highlight&&this.settings.highlight.call(this,b.element,this.settings.errorClass,this.settings.validClass),this.showLabel(b.element,b.message)}this.errorList.length&&(this.toShow=this.toShow.add(this.containers));if(this.settings.success)for(var a=0;this.successList[a];a++)this.showLabel(this.successList[a]);if(this.settings.unhighlight)for(var a=0,c=this.validElements();c[a];a++)this.settings.unhighlight.call(this,c[a],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(b,c){var d=this.errorsFor(b);d.length?(d.removeClass().addClass(this.settings.errorClass),d.attr("generated")&&d.html(c)):(d=a("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(b),generated:!0}).addClass(this.settings.errorClass).html(c||""),this.settings.wrapper&&(d=d.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.append(d).length||(this.settings.errorPlacement?this.settings.errorPlacement(d,a(b)):d.insertAfter(b))),!c&&this.settings.success&&(d.text(""),typeof this.settings.success=="string"?d.addClass(this.settings.success):this.settings.success(d)),this.toShow=this.toShow.add(d)},errorsFor:function(b){var c=this.idOrName(b);return this.errors().filter(function(){return a(this).attr("for")==c})},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(b){var c=this.currentForm;return a(document.getElementsByName(b)).map(function(a,d){return d.form==c&&d.name==b&&d||null})},getLength:function(b,c){switch(c.nodeName.toLowerCase()){case"select":return a("option:selected",c).length;case"input":if(this.checkable(c))return this.findByName(c.name).filter(":checked").length}return b.length},depend:function(a,b){return this.dependTypes[typeof a]?this.dependTypes[typeof a](a,b):!0},dependTypes:{"boolean":function(a,b){return a},string:function(b,c){return!!a(b,c.form).length},"function":function(a,b){return a(b)}},optional:function(b){return!a.validator.methods.required.call(this,a.trim(b.value),b)&&"dependency-mismatch"},startRequest:function(a){this.pending[a.name]||(this.pendingRequest++,this.pending[a.name]=!0)},stopRequest:function(b,c){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[b.name],c&&this.pendingRequest==0&&this.formSubmitted&&this.form()?(a(this.currentForm).submit(),this.formSubmitted=!1):!c&&this.pendingRequest==0&&this.formSubmitted&&(a(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(b){return a.data(b,"previousValue")||a.data(b,"previousValue",{old:null,valid:!0,message:this.defaultMessage(b,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},dateDE:{dateDE:!0},number:{number:!0},numberDE:{numberDE:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(b,c){b.constructor==String?this.classRuleSettings[b]=c:a.extend(this.classRuleSettings,b)},classRules:function(b){var c={},d=a(b).attr("class");return d&&a.each(d.split(" "),function(){this in a.validator.classRuleSettings&&a.extend(c,a.validator.classRuleSettings[this])}),c},attributeRules:function(b){var c={},d=a(b);for(var e in a.validator.methods){var f=d.attr(e);f&&(c[e]=f)}return c.maxlength&&/-1|2147483647|524288/.test(c.maxlength)&&delete c.maxlength,c},metadataRules:function(b){if(!a.metadata)return{};var c=a.data(b.form,"validator").settings.meta;return c?a(b).metadata()[c]:a(b).metadata()},staticRules:function(b){var c={},d=a.data(b.form,"validator");return d.settings.rules&&(c=a.validator.normalizeRule(d.settings.rules[b.name])||{}),c},normalizeRules:function(b,c){return a.each(b,function(d,e){if(e===!1){delete b[d];return}if(e.param||e.depends){var f=!0;switch(typeof e.depends){case"string":f=!!a(e.depends,c.form).length;break;case"function":f=e.depends.call(c,c)}f?b[d]=e.param!==undefined?e.param:!0:delete b[d]}}),a.each(b,function(d,e){b[d]=a.isFunction(e)?e(c):e}),a.each(["minlength","maxlength","min","max"],function(){b[this]&&(b[this]=Number(b[this]))}),a.each(["rangelength","range"],function(){b[this]&&(b[this]=[Number(b[this][0]),Number(b[this][1])])}),a.validator.autoCreateRanges&&(b.min&&b.max&&(b.range=[b.min,b.max],delete b.min,delete b.max),b.minlength&&b.maxlength&&(b.rangelength=[b.minlength,b.maxlength],delete b.minlength,delete b.maxlength)),b.messages&&delete b.messages,b},normalizeRule:function(b){if(typeof b=="string"){var c={};a.each(b.split(/\s/),function(){c[this]=!0}),b=c}return b},addMethod:function(b,c,d){a.validator.methods[b]=c,a.validator.messages[b]=d!=undefined?d:a.validator.messages[b],c.length<3&&a.validator.addClassRules(b,a.validator.normalizeRule(b))},methods:{required:function(b,c,d){if(!this.depend(d,c))return"dependency-mismatch";switch(c.nodeName.toLowerCase()){case"select":var e=a(c).val();return e&&e.length>0;case"input":if(this.checkable(c))return this.getLength(b,c)>0;default:return a.trim(b).length>0}},remote:function(b,c,d){if(this.optional(c))return"dependency-mismatch";var e=this.previousValue(c);this.settings.messages[c.name]||(this.settings.messages[c.name]={}),e.originalMessage=this.settings.messages[c.name].remote,this.settings.messages[c.name].remote=e.message,d=typeof d=="string"&&{url:d}||d;if(this.pending[c.name])return"pending";if(e.old===b)return e.valid;e.old=b;var f=this;this.startRequest(c);var g={};return g[c.name]=b,a.ajax(a.extend(!0,{url:d,mode:"abort",port:"validate"+c.name,dataType:"json",data:g,success:function(d){f.settings.messages[c.name].remote=e.originalMessage;var g=d===!0;if(g){var h=f.formSubmitted;f.prepareElement(c),f.formSubmitted=h,f.successList.push(c),f.showErrors()}else{var i={},j=d||f.defaultMessage(c,"remote");i[c.name]=e.message=a.isFunction(j)?j(b):j,f.showErrors(i)}e.valid=g,f.stopRequest(c,g)}},d)),"pending"},minlength:function(b,c,d){return this.optional(c)||this.getLength(a.trim(b),c)>=d},maxlength:function(b,c,d){return this.optional(c)||this.getLength(a.trim(b),c)<=d},rangelength:function(b,c,d){var e=this.getLength(a.trim(b),c);return this.optional(c)||e>=d[0]&&e<=d[1]},min:function(a,b,c){return this.optional(b)||a>=c},max:function(a,b,c){return this.optional(b)||a<=c},range:function(a,b,c){return this.optional(b)||a>=c[0]&&a<=c[1]},email:function(a,b){return this.optional(b)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(a)},url:function(a,b){return this.optional(b)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(a)},date:function(a,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(a))},dateISO:function(a,b){return this.optional(b)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(a)},number:function(a,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(a)},digits:function(a,b){return this.optional(b)||/^\d+$/.test(a)},creditcard:function(a,b){if(this.optional(b))return"dependency-mismatch";if(/[^0-9\-]+/.test(a))return!1;var c=0,d=0,e=!1;a=a.replace(/\D/g,"");for(var f=a.length-1;f>=0;f--){var g=a.charAt(f),d=parseInt(g,10);e&&(d*=2)>9&&(d-=9),c+=d,e=!e}return c%10==0},accept:function(a,b,c){return c=typeof c=="string"?c.replace(/,/g,"|"):"png|jpe?g|gif",this.optional(b)||a.match(new RegExp(".("+c+")$","i"))},equalTo:function(b,c,d){var e=a(d).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){a(c).valid()});return b==e.val()}}}),a.format=a.validator.format})(jQuery),function(a){var b={};if(a.ajaxPrefilter)a.ajaxPrefilter(function(a,c,d){var e=a.port;a.mode=="abort"&&(b[e]&&b[e].abort(),b[e]=d)});else{var c=a.ajax;a.ajax=function(d){var e=("mode"in d?d:a.ajaxSettings).mode,f=("port"in d?d:a.ajaxSettings).port;return e=="abort"?(b[f]&&b[f].abort(),b[f]=c.apply(this,arguments)):c.apply(this,arguments)}}}(jQuery),function(a){!jQuery.event.special.focusin&&!jQuery.event.special.focusout&&document.addEventListener&&a.each({focus:"focusin",blur:"focusout"},function(b,c){function d(b){return b=a.event.fix(b),b.type=c,a.event.handle.call(this,b)}a.event.special[c]={setup:function(){this.addEventListener(b,d,!0)},teardown:function(){this.removeEventListener(b,d,!0)},handler:function(b){return arguments[0]=a.event.fix(b),arguments[0].type=c,a.event.handle.apply(this,arguments)}}}),a.extend(a.fn,{validateDelegate:function(b,c,d){return this.bind(c,function(c){var e=a(c.target);if(e.is(b))return d.apply(e,arguments)})}})}(jQuery);
// !MeAb! c/s/d/e/j/e/jquery.ba-hashchange.js
(function(a,b,c){function j(a){return a=a||location.href,"#"+a.replace(/^[^#]*#?(.*)$/,"$1")}"$:nomunge";var d="hashchange",e=document,f,g=a.event.special,h=e.documentMode,i="on"+d in b&&(h===c||h>7);a.fn[d]=function(a){return a?this.bind(d,a):this.trigger(d)},a.fn[d].delay=50,g[d]=a.extend(g[d],{setup:function(){if(i)return!1;a(f.start)},teardown:function(){if(i)return!1;a(f.stop)}}),f=function(){function n(){var c=j(),e=m(h);c!==h?(l(h=c,e),a(b).trigger(d)):e!==h&&(location.href=location.href.replace(/#.*/,"")+e),g=setTimeout(n,a.fn[d].delay)}var f={},g,h=j(),k=function(a){return a},l=k,m=k;return f.start=function(){g||n()},f.stop=function(){g&&clearTimeout(g),g=c},a.browser.msie&&!i&&function(){var b,c;f.start=function(){b||(c=a.fn[d].src,c=c&&c+j(),b=a('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){c||l(j()),n()}).attr("src",c||"javascript:0").insertAfter("body")[0].contentWindow,e.onpropertychange=function(){try{event.propertyName==="title"&&(b.document.title=e.title)}catch(a){}})},f.stop=k,m=function(){return j(b.location.href)},l=function(c,f){var g=b.document,h=a.fn[d].domain;c!==f&&(g.title=e.title,g.open(),h&&g.write('<script>document.domain="'+h+'"</script>'),g.close(),b.location.hash=c)}}(),f}()})(jQuery,this);
// !MeAb! c/s/d/e/j/e/jquery-ui-1.8.5.custom.min.js
(function(a,b){function c(b){return!a(b).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.ui=a.ui||{},a.ui.version||(a.extend(a.ui,{version:"1.8.5",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}}),a.fn.extend({_focus:a.fn.focus,focus:function(b,c){return typeof b=="number"?this.each(function(){var d=this;setTimeout(function(){a(d).focus(),c&&c.call(d)},b)}):this._focus.apply(this,arguments)},scrollParent:function(){var b;return b=a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0),/fixed/.test(this.css("position"))||!b.length?a(document):b},zIndex:function(c){if(c!==b)return this.css("zIndex",c);if(this.length){c=a(this[0]);for(var d;c.length&&c[0]!==document;){d=c.css("position");if(d==="absolute"||d==="relative"||d==="fixed"){d=parseInt(c.css("zIndex"));if(!isNaN(d)&&d!=0)return d}c=c.parent()}}return 0},disableSelection:function(){return this.bind("mousedown.ui-disableSelection selectstart.ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a.each(["Width","Height"],function(c,d){function e(b,c,d,e){return a.each(f,function(){c-=parseFloat(a.curCSS(b,"padding"+this,!0))||0,d&&(c-=parseFloat(a.curCSS(b,"border"+this+"Width",!0))||0),e&&(c-=parseFloat(a.curCSS(b,"margin"+this,!0))||0)}),c}var f=d==="Width"?["Left","Right"]:["Top","Bottom"],g=d.toLowerCase(),h={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+d]=function(c){return c===b?h["inner"+d].call(this):this.each(function(){a.style(this,g,e(this,c)+"px")})},a.fn["outer"+d]=function(b,c){return typeof b!="number"?h["outer"+d].call(this,b):this.each(function(){a.style(this,g,e(this,b,!0,c)+"px")})}}),a.extend(a.expr[":"],{data:function(b,c,d){return!!a.data(b,d[3])},focusable:function(b){var d=b.nodeName.toLowerCase(),e=a.attr(b,"tabindex");return"area"===d?(d=b.parentNode,e=d.name,!b.href||!e||d.nodeName.toLowerCase()!=="map"?!1:(b=a("img[usemap=#"+e+"]")[0],!!b&&c(b))):(/input|select|textarea|button|object/.test(d)?!b.disabled:"a"==d?b.href||!isNaN(e):!isNaN(e))&&c(b)},tabbable:function(b){var c=a.attr(b,"tabindex");return(isNaN(c)||c>=0)&&a(b).is(":focusable")}}),a(function(){var b=document.createElement("div"),c=document.body;a.extend(b.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),a.support.minHeight=c.appendChild(b).offsetHeight===100,c.removeChild(b).style.display="none"}),a.extend(a.ui,{plugin:{add:function(b,c,d){b=a.ui[b].prototype;for(var e in d)b.plugins[e]=b.plugins[e]||[],b.plugins[e].push([c,d[e]])},call:function(a,b,c){if((b=a.plugins[b])&&a.element[0].parentNode)for(var d=0;d<b.length;d++)a.options[b[d][0]]&&b[d][1].apply(a.element,c)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(b,c){if(a(b).css("overflow")==="hidden")return!1;c=c&&c==="left"?"scrollLeft":"scrollTop";var d=!1;return b[c]>0?!0:(b[c]=1,d=b[c]>0,b[c]=0,d)},isOverAxis:function(a,b,c){return a>b&&a<b+c},isOver:function(b,c,d,e,f,g){return a.ui.isOverAxis(b,d,f)&&a.ui.isOverAxis(c,e,g)}}))})(jQuery),function(a,b){if(a.cleanData){var c=a.cleanData;a.cleanData=function(b){for(var d=0,e;(e=b[d])!=null;d++)a(e).triggerHandler("remove");c(b)}}else{var d=a.fn.remove;a.fn.remove=function(b,c){return this.each(function(){return c||(!b||a.filter(b,[this]).length)&&a("*",this).add([this]).each(function(){a(this).triggerHandler("remove")}),d.call(a(this),b,c)})}}a.widget=function(b,c,d){var e=b.split(".")[0],f;b=b.split(".")[1],f=e+"-"+b,d||(d=c,c=a.Widget),a.expr[":"][f]=function(c){return!!a.data(c,b)},a[e]=a[e]||{},a[e][b]=function(a,b){arguments.length&&this._createWidget(a,b)},c=new c,c.options=a.extend(!0,{},c.options),a[e][b].prototype=a.extend(!0,c,{namespace:e,widgetName:b,widgetEventPrefix:a[e][b].prototype.widgetEventPrefix||b,widgetBaseClass:f},d),a.widget.bridge(b,a[e][b])},a.widget.bridge=function(c,d){a.fn[c]=function(e){var f=typeof e=="string",g=Array.prototype.slice.call(arguments,1),h=this;return e=!f&&g.length?a.extend.apply(null,[!0,e].concat(g)):e,f&&e.substring(0,1)==="_"?h:(f?this.each(function(){var d=a.data(this,c);if(!d)throw"cannot call methods on "+c+" prior to initialization; attempted to call method '"+e+"'";if(!a.isFunction(d[e]))throw"no such method '"+e+"' for "+c+" widget instance";var f=d[e].apply(d,g);if(f!==d&&f!==b)return h=f,!1}):this.each(function(){var b=a.data(this,c);b?b.option(e||{})._init():a.data(this,c,new d(e,this))}),h)}},a.Widget=function(a,b){arguments.length&&this._createWidget(a,b)},a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function(b,c){a.data(c,this.widgetName,this),this.element=a(c),this.options=a.extend(!0,{},this.options,a.metadata&&a.metadata.get(c)[this.widgetName],b);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()}),this._create(),this._init()},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName),this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(c,d){var e=c,f=this;if(arguments.length===0)return a.extend({},f.options);if(typeof c=="string"){if(d===b)return this.options[c];e={},e[c]=d}return a.each(e,function(a,b){f._setOption(a,b)}),f},_setOption:function(a,b){return this.options[a]=b,a==="disabled"&&this.widget()[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",b),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_trigger:function(b,c,d){var e=this.options[b];c=a.Event(c),c.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase(),d=d||{};if(c.originalEvent){b=a.event.props.length;for(var f;b;)f=a.event.props[--b],c[f]=c.originalEvent[f]}return this.element.trigger(c,d),!(a.isFunction(e)&&e.call(this.element[0],c,d)===!1||c.isDefaultPrevented())}}}(jQuery),function(a){a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(b){return a._mouseDown(b)}).bind("click."+this.widgetName,function(b){if(a._preventClickEvent)return a._preventClickEvent=!1,b.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(b){b.originalEvent=b.originalEvent||{};if(!b.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(b),this._mouseDownEvent=b;var d=this,e=b.which==1,f=typeof this.options.cancel=="string"?a(b.target).parents().add(b.target).filter(this.options.cancel).length:!1;if(!e||f||!this._mouseCapture(b))return!0;this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){d.mouseDelayMet=!0},this.options.delay));if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=this._mouseStart(b)!==!1;if(!this._mouseStarted)return b.preventDefault(),!0}return this._mouseMoveDelegate=function(a){return d._mouseMove(a)},this._mouseUpDelegate=function(a){return d._mouseUp(a)},a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),a.browser.safari||b.preventDefault(),b.originalEvent.mouseHandled=!0}},_mouseMove:function(b){return a.browser.msie&&!b.button?this._mouseUp(b):this._mouseStarted?(this._mouseDrag(b),b.preventDefault()):(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)&&((this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==!1)?this._mouseDrag(b):this._mouseUp(b)),!this._mouseStarted)},_mouseUp:function(b){return a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,this._preventClickEvent=b.target==this._mouseDownEvent.target,this._mouseStop(b)),!1},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(a){a.widget("ui.sortable",a.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3},_create:function(){this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float")):!1,this.offset=this.element.offset(),this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable"),this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--)this.items[a].item.removeData("sortable-item");return this},_setOption:function(b,c){b==="disabled"?(this.options[b]=c,this.widget()[c?"addClass":"removeClass"]("ui-sortable-disabled")):a.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(b,c){if(this.reverting)return!1;if(this.options.disabled||this.options.type=="static")return!1;this._refreshItems(b);var e=null,f=this;a(b.target).parents().each(function(){if(a.data(this,"sortable-item")==f)return e=a(this),!1}),a.data(b.target,"sortable-item")==f&&(e=a(b.target));if(!e)return!1;if(this.options.handle&&!c){var g=!1;a(this.options.handle,e).find("*").andSelf().each(function(){this==b.target&&(g=!0)});if(!g)return!1}return this.currentItem=e,this._removeCurrentsFromItems(),!0},_mouseStart:function(b,c,e){c=this.options;var f=this;this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(b),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this._generatePosition(b),this.originalPageX=b.pageX,this.originalPageY=b.pageY,c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!=this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),c.containment&&this._setContainment(),c.cursor&&(a("body").css("cursor")&&(this._storedCursor=a("body").css("cursor")),a("body").css("cursor",c.cursor)),c.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",c.opacity)),c.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",c.zIndex)),this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",b,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions();if(!e)for(e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("activate",b,f._uiHash(this));return a.ui.ddmanager&&(a.ui.ddmanager.current=this),a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(b),!0},_mouseDrag:function(b){this.position=this._generatePosition(b),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs);if(this.options.scroll){var c=this.options,e=!1;this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-b.pageY<c.scrollSensitivity?this.scrollParent[0].scrollTop=e=this.scrollParent[0].scrollTop+c.scrollSpeed:b.pageY-this.overflowOffset.top<c.scrollSensitivity&&(this.scrollParent[0].scrollTop=e=this.scrollParent[0].scrollTop-c.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-b.pageX<c.scrollSensitivity?this.scrollParent[0].scrollLeft=e=this.scrollParent[0].scrollLeft+c.scrollSpeed:b.pageX-this.overflowOffset.left<c.scrollSensitivity&&(this.scrollParent[0].scrollLeft=e=this.scrollParent[0].scrollLeft-c.scrollSpeed)):(b.pageY-a(document).scrollTop()<c.scrollSensitivity?e=a(document).scrollTop(a(document).scrollTop()-c.scrollSpeed):a(window).height()-(b.pageY-a(document).scrollTop())<c.scrollSensitivity&&(e=a(document).scrollTop(a(document).scrollTop()+c.scrollSpeed)),b.pageX-a(document).scrollLeft()<c.scrollSensitivity?e=a(document).scrollLeft(a(document).scrollLeft()-c.scrollSpeed):a(window).width()-(b.pageX-a(document).scrollLeft())<c.scrollSensitivity&&(e=a(document).scrollLeft(a(document).scrollLeft()+c.scrollSpeed))),e!==!1&&a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(c=this.items.length-1;c>=0;c--){e=this.items[c];var f=e.item[0],g=this._intersectsWithPointer(e);if(g&&f!=this.currentItem[0]&&this.placeholder[g==1?"next":"prev"]()[0]!=f&&!a.ui.contains(this.placeholder[0],f)&&(this.options.type=="semi-dynamic"?!a.ui.contains(this.element[0],f):!0)){this.direction=g==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(e))this._rearrange(b,e);else break;this._trigger("change",b,this._uiHash());break}}return this._contactContainers(b),a.ui.ddmanager&&a.ui.ddmanager.drag(this,b),this._trigger("sort",b,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(b,c){if(b){a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,b);if(this.options.revert){var e=this;c=e.placeholder.offset(),e.reverting=!0,a(this.helper).animate({left:c.left-this.offset.parent.left-e.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:c.top-this.offset.parent.top-e.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){e._clear(b)})}else this._clear(b,c);return!1}},cancel:function(){var b=this;if(this.dragging){this._mouseUp(),this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var c=this.containers.length-1;c>=0;c--)this.containers[c]._trigger("deactivate",null,b._uiHash(this)),this.containers[c].containerCache.over&&(this.containers[c]._trigger("out",null,b._uiHash(this)),this.containers[c].containerCache.over=0)}return this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),a.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?a(this.domPosition.prev).after(this.currentItem):a(this.domPosition.parent).prepend(this.currentItem),this},serialize:function(b){var c=this._getItemsAsjQuery(b&&b.connected),e=[];return b=b||{},a(c).each(function(){var c=(a(b.item||this).attr(b.attribute||"id")||"").match(b.expression||/(.+)[-=_](.+)/);c&&e.push((b.key||c[1]+"[]")+"="+(b.key&&b.expression?c[1]:c[2]))}),!e.length&&b.key&&e.push(b.key+"="),e.join("&")},toArray:function(b){var c=this._getItemsAsjQuery(b&&b.connected),e=[];return b=b||{},c.each(function(){e.push(a(b.item||this).attr(b.attribute||"id")||"")}),e},_intersectsWith:function(a){var b=this.positionAbs.left,c=b+this.helperProportions.width,d=this.positionAbs.top,e=d+this.helperProportions.height,f=a.left,g=f+a.width,h=a.top,i=h+a.height,j=this.offset.click.top,k=this.offset.click.left;return j=d+j>h&&d+j<i&&b+k>f&&b+k<g,this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>a[this.floating?"width":"height"]?j:f<b+this.helperProportions.width/2&&c-this.helperProportions.width/2<g&&h<d+this.helperProportions.height/2&&e-this.helperProportions.height/2<i},_intersectsWithPointer:function(b){var c=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,b.top,b.height);b=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,b.left,b.width),c=c&&b,b=this._getDragVerticalDirection();var e=this._getDragHorizontalDirection();return c?this.floating?e&&e=="right"||b=="down"?2:1:b&&(b=="down"?2:1):!1},_intersectsWithSides:function(b){var c=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,b.top+b.height/2,b.height);b=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,b.left+b.width/2,b.width);var e=this._getDragVerticalDirection(),f=this._getDragHorizontalDirection();return this.floating&&f?f=="right"&&b||f=="left"&&!b:e&&(e=="down"&&c||e=="up"&&!c)},_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return a!=0&&(a>0?"down":"up")},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return a!=0&&(a>0?"right":"left")},refresh:function(a){return this._refreshItems(a),this.refreshPositions(),this},_connectWith:function(){var a=this.options;return a.connectWith.constructor==String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(b){var c=[],e=[],f=this._connectWith();if(f&&b)for(b=f.length-1;b>=0;b--)for(var g=a(f[b]),h=g.length-1;h>=0;h--){var i=a.data(g[h],"sortable");i&&i!=this&&!i.options.disabled&&e.push([a.isFunction(i.options.items)?i.options.items.call(i.element):a(i.options.items,i.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),i])}e.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(b=e.length-1;b>=0;b--)e[b][0].each(function(){c.push(this)});return a(c)},_removeCurrentsFromItems:function(){for(var a=this.currentItem.find(":data(sortable-item)"),b=0;b<this.items.length;b++)for(var c=0;c<a.length;c++)a[c]==this.items[b].item[0]&&this.items.splice(b,1)},_refreshItems:function(b){this.items=[],this.containers=[this];var c=this.items,e=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],b,{item:this.currentItem}):a(this.options.items,this.element),this]],f=this._connectWith();if(f)for(var g=f.length-1;g>=0;g--)for(var h=a(f[g]),i=h.length-1;i>=0;i--){var j=a.data(h[i],"sortable");j&&j!=this&&!j.options.disabled&&(e.push([a.isFunction(j.options.items)?j.options.items.call(j.element[0],b,{item:this.currentItem}):a(j.options.items,j.element),j]),this.containers.push(j))}for(g=e.length-1;g>=0;g--){b=e[g][1],f=e[g][0],i=0;for(h=f.length;i<h;i++)j=a(f[i]),j.data("sortable-item",b),c.push({item:j,instance:b,width:0,height:0,left:0,top:0})}},refreshPositions:function(b){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());for(var c=this.items.length-1;c>=0;c--){var e=this.items[c],f=this.options.toleranceElement?a(this.options.toleranceElement,e.item):e.item;b||(e.width=f.outerWidth(),e.height=f.outerHeight()),f=f.offset(),e.left=f.left,e.top=f.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(c=this.containers.length-1;c>=0;c--)f=this.containers[c].element.offset(),this.containers[c].containerCache.left=f.left,this.containers[c].containerCache.top=f.top,this.containers[c].containerCache.width=this.containers[c].element.outerWidth(),this.containers[c].containerCache.height=this.containers[c].element.outerHeight();return this},_createPlaceholder:function(b){var c=b||this,e=c.options;if(!e.placeholder||e.placeholder.constructor==String){var f=e.placeholder;e.placeholder={element:function(){var b=a(document.createElement(c.currentItem[0].nodeName)).addClass(f||c.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];return f||(b.style.visibility="hidden"),b},update:function(a,b){if(!f||!!e.forcePlaceholderSize)b.height()||b.height(c.currentItem.innerHeight()-parseInt(c.currentItem.css("paddingTop")||0,10)-parseInt(c.currentItem.css("paddingBottom")||0,10)),b.width()||b.width(c.currentItem.innerWidth()-parseInt(c.currentItem.css("paddingLeft")||0,10)-parseInt(c.currentItem.css("paddingRight")||0,10))}}}c.placeholder=a(e.placeholder.element.call(c.element,c.currentItem)),c.currentItem.after(c.placeholder),e.placeholder.update(c,c.placeholder)},_contactContainers:function(b){for(var c=null,e=null,f=this.containers.length-1;f>=0;f--)if(!a.ui.contains(this.currentItem[0],this.containers[f].element[0]))if(this._intersectsWith(this.containers[f].containerCache)){if(!c||!a.ui.contains(this.containers[f].element[0],c.element[0]))c=this.containers[f],e=f}else this.containers[f].containerCache.over&&(this.containers[f]._trigger("out",b,this._uiHash(this)),this.containers[f].containerCache.over=0);if(c)if(this.containers.length===1)this.containers[e]._trigger("over",b,this._uiHash(this)),this.containers[e].containerCache.over=1;else if(this.currentContainer!=this.containers[e]){c=1e4,f=null;for(var g=this.positionAbs[this.containers[e].floating?"left":"top"],h=this.items.length-1;h>=0;h--)if(a.ui.contains(this.containers[e].element[0],this.items[h].item[0])){var i=this.items[h][this.containers[e].floating?"left":"top"];Math.abs(i-g)<c&&(c=Math.abs(i-g),f=this.items[h])}if(f||this.options.dropOnEmpty)this.currentContainer=this.containers[e],f?this._rearrange(b,f,null,!0):this._rearrange(b,null,this.containers[e].element,!0),this._trigger("change",b,this._uiHash()),this.containers[e]._trigger("change",b,this._uiHash(this)),this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[e]._trigger("over",b,this._uiHash(this)),this.containers[e].containerCache.over=1}},_createHelper:function(b){var c=this.options;return b=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[b,this.currentItem])):c.helper=="clone"?this.currentItem.clone():this.currentItem,b.parents("body").length||a(c.appendTo!="parent"?c.appendTo:this.currentItem[0].parentNode)[0].appendChild(b[0]),b[0]==this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(b[0].style.width==""||c.forceHelperSize)&&b.width(this.currentItem.width()),(b[0].style.height==""||c.forceHelperSize)&&b.height(this.currentItem.height()),b},_adjustOffsetFromHelper:function(b){typeof b=="string"&&(b=b.split(" ")),a.isArray(b)&&(b={left:+b[0],top:+b[1]||0}),"left"in b&&(this.offset.click.left=b.left+this.margins.left),"right"in b&&(this.offset.click.left=this.helperProportions.width-b.right+this.margins.left),"top"in b&&(this.offset.click.top=b.top+this.margins.top),"bottom"in b&&(this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(b.left+=this.scrollParent.scrollLeft(),b.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)b={top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b=this.options;b.containment=="parent"&&(b.containment=this.helper[0].parentNode);if(b.containment=="document"||b.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(b.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(b.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(b.containment)){var c=a(b.containment)[0];b=a(b.containment).offset();var e=a(c).css("overflow")!="hidden";this.containment=[b.left+(parseInt(a(c).css("borderLeftWidth"),10)||0)+(parseInt(a(c).css("paddingLeft"),10)||0)-this.margins.left,b.top+(parseInt(a(c).css("borderTopWidth"),10)||0)+(parseInt(a(c).css("paddingTop"),10)||0)-this.margins.top,b.left+(e?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css("borderLeftWidth"),10)||0)-(parseInt(a(c).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,b.top+(e?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css("borderTopWidth"),10)||0)-(parseInt(a(c).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(b,c){c||(c=this.position),b=b=="absolute"?1:-1;var e=this.cssPosition!="absolute"||this.scrollParent[0]!=document&&!!a.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,f=/(html|body)/i.test(e[0].tagName);return{top:c.top+this.offset.relative.top*b+this.offset.parent.top*b-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:e.scrollTop())*b),left:c.left+this.offset.relative.left*b+this.offset.parent.left*b-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:e.scrollLeft())*b)}},_generatePosition:function(b){var c=this.options,e=this.cssPosition!="absolute"||this.scrollParent[0]!=document&&!!a.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,f=/(html|body)/i.test(e[0].tagName);this.cssPosition=="relative"&&(this.scrollParent[0]==document||this.scrollParent[0]==this.offsetParent[0])&&(this.offset.relative=this._getRelativeOffset());var g=b.pageX,h=b.pageY;return this.originalPosition&&(this.containment&&(b.pageX-this.offset.click.left<this.containment[0]&&(g=this.containment[0]+this.offset.click.left),b.pageY-this.offset.click.top<this.containment[1]&&(h=this.containment[1]+this.offset.click.top),b.pageX-this.offset.click.left>this.containment[2]&&(g=this.containment[2]+this.offset.click.left),b.pageY-this.offset.click.top>this.containment[3]&&(h=this.containment[3]+this.offset.click.top)),c.grid&&(h=this.originalPageY+Math.round((h-this.originalPageY)/c.grid[1])*c.grid[1],h=this.containment?h-this.offset.click.top<this.containment[1]||h-this.offset.click.top>this.containment[3]?h-this.offset.click.top<this.containment[1]?h+c.grid[1]:h-c.grid[1]:h:h,g=this.originalPageX+Math.round((g-this.originalPageX)/c.grid[0])*c.grid[0],g=this.containment?g-this.offset.click.left<this.containment[0]||g-this.offset.click.left>this.containment[2]?g-this.offset.click.left<this.containment[0]?g+c.grid[0]:g-c.grid[0]:g:g)),{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:e.scrollTop()),left:g-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:e.scrollLeft())}},_rearrange:function(a,b,c,d){c?c[0].appendChild(this.placeholder[0]):b.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?b.item[0]:b.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var e=this,f=this.counter;window.setTimeout(function(){f==e.counter&&e.refreshPositions(!d)},0)},_clear:function(b,c){this.reverting=!1;var e=[];!this._noFinalSort&&this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem),this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var f in this._storedCSS)if(this._storedCSS[f]=="auto"||this._storedCSS[f]=="static")this._storedCSS[f]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!c&&e.push(function(a){this._trigger("receive",a,this._uiHash(this.fromOutside))}),(this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!c&&e.push(function(a){this._trigger("update",a,this._uiHash())});if(!a.ui.contains(this.element[0],this.currentItem[0])){c||e.push(function(a){this._trigger("remove",a,this._uiHash())});for(f=this.containers.length-1;f>=0;f--)a.ui.contains(this.containers[f].element[0],this.currentItem[0])&&!c&&(e.push(function(a){return function(b){a._trigger("receive",b,this._uiHash(this))}}.call(this,this.containers[f])),e.push(function(a){return function(b){a._trigger("update",b,this._uiHash(this))}}.call(this,this.containers[f])))}for(f=this.containers.length-1;f>=0;f--)c||e.push(function(a){return function(b){a._trigger("deactivate",b,this._uiHash(this))}}.call(this,this.containers[f])),this.containers[f].containerCache.over&&(e.push(function(a){return function(b){a._trigger("out",b,this._uiHash(this))}}.call(this,this.containers[f])),this.containers[f].containerCache.over=0);this._storedCursor&&a("body").css("cursor",this._storedCursor),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex),this.dragging=!1;if(this.cancelHelperRemoval){if(!c){this._trigger("beforeStop",b,this._uiHash());for(f=0;f<e.length;f++)e[f].call(this,b);this._trigger("stop",b,this._uiHash())}return!1}c||this._trigger("beforeStop",b,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!=this.currentItem[0]&&this.helper.remove(),this.helper=null;if(!c){for(f=0;f<e.length;f++)e[f].call(this,b);this._trigger("stop",b,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){a.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(b){var c=b||this;return{helper:c.helper,placeholder:c.placeholder||a([]),position:c.position,originalPosition:c.originalPosition,offset:c.positionAbs,item:c.currentItem,sender:b?b.element:null}}}),a.extend(a.ui.sortable,{version:"1.8.5"})}(jQuery),function(a){a.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:!0,clearStyle:!1,collapsible:!1,event:"click",fillSpace:!1,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:!1,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var b=this,d=b.options;b.running=0,b.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix"),b.headers=b.element.find(d.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){d.disabled||a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){d.disabled||a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){d.disabled||a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){d.disabled||a(this).removeClass("ui-state-focus")}),b.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");if(d.navigation){var e=b.element.find("a").filter(d.navigationFilter).eq(0);if(e.length){var f=e.closest(".ui-accordion-header");b.active=f.length?f:e.closest(".ui-accordion-content").prev()}}b.active=b._findActive(b.active||d.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all ui-corner-top"),b.active.next().addClass("ui-accordion-content-active"),b._createIcons(),b.resize(),b.element.attr("role","tablist"),b.headers.attr("role","tab").bind("keydown.accordion",function(a){return b._keydown(a)}).next().attr("role","tabpanel"),b.headers.not(b.active||"").attr({"aria-expanded":"false",tabIndex:-1}).next().hide(),b.active.length?b.active.attr({"aria-expanded":"true",tabIndex:0}):b.headers.eq(0).attr("tabIndex",0),a.browser.safari||b.headers.find("a").attr("tabIndex",-1),d.event&&b.headers.bind(d.event.split(" ").join(".accordion ")+".accordion",function(a){b._clickHandler.call(b,a,this),a.preventDefault()})},_createIcons:function(){var b=this.options;b.icons&&(a("<span></span>").addClass("ui-icon "+b.icons.header).prependTo(this.headers),this.active.children(".ui-icon").toggleClass(b.icons.header).toggleClass(b.icons.headerSelected),this.element.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.children(".ui-icon").remove(),this.element.removeClass("ui-accordion-icons")},destroy:function(){var b=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabIndex"),this.headers.find("a").removeAttr("tabIndex"),this._destroyIcons();var d=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");return(b.autoHeight||b.fillHeight)&&d.css("height",""),a.Widget.prototype.destroy.call(this)},_setOption:function(b,d){a.Widget.prototype._setOption.apply(this,arguments),b=="active"&&this.activate(d),b=="icons"&&(this._destroyIcons(),d&&this._createIcons()),b=="disabled"&&this.headers.add(this.headers.next())[d?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(b){if(!(this.options.disabled||b.altKey||b.ctrlKey)){var d=a.ui.keyCode,e=this.headers.length,f=this.headers.index(b.target),g=!1;switch(b.keyCode){case d.RIGHT:case d.DOWN:g=this.headers[(f+1)%e];break;case d.LEFT:case d.UP:g=this.headers[(f-1+e)%e];break;case d.SPACE:case d.ENTER:this._clickHandler({target:b.target},b.target),b.preventDefault()}return g?(a(b.target).attr("tabIndex",-1),a(g).attr("tabIndex",0),g.focus(),!1):!0}},resize:function(){var b=this.options,d;if(b.fillSpace){if(a.browser.msie){var e=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}d=this.element.parent().height(),a.browser.msie&&this.element.parent().css("overflow",e),this.headers.each(function(){d-=a(this).outerHeight(!0)}),this.headers.next().each(function(){a(this).height(Math.max(0,d-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")}else b.autoHeight&&(d=0,this.headers.next().each(function(){d=Math.max(d,a(this).height("").height())}).height(d));return this},activate:function(a){return this.options.active=a,a=this._findActive(a)[0],this._clickHandler({target:a},a),this},_findActive:function(b){return b?typeof b=="number"?this.headers.filter(":eq("+b+")"):this.headers.not(this.headers.not(b)):b===!1?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(b,d){var e=this.options;if(!e.disabled)if(b.target)b=a(b.currentTarget||d),d=b[0]===this.active[0],e.active=e.collapsible&&d?!1:this.headers.index(b),this.running||!e.collapsible&&d||(this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(e.icons.headerSelected).addClass(e.icons.header),d||(b.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(e.icons.header).addClass(e.icons.headerSelected),b.next().addClass("ui-accordion-content-active")),h=b.next(),f=this.active.next(),g={options:e,newHeader:d&&e.collapsible?a([]):b,oldHeader:this.active,newContent:d&&e.collapsible?a([]):h,oldContent:f},e=this.headers.index(this.active[0])>this.headers.index(b[0]),this.active=d?a([]):b,this._toggle(h,f,g,d,e));else if(e.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(e.icons.headerSelected).addClass(e.icons.header),this.active.next().addClass("ui-accordion-content-active");var f=this.active.next(),g={options:e,newHeader:a([]),oldHeader:e.active,newContent:a([]),oldContent:f},h=this.active=a([]);this._toggle(h,f,g)}},_toggle:function(b,d,e,f,g){var h=this,i=h.options;h.toShow=b,h.toHide=d,h.data=e;var j=function(){if(h)return h._completed.apply(h,arguments)};h._trigger("changestart",null,h.data),h.running=d.size()===0?b.size():d.size();if(i.animated){e={},e=i.collapsible&&f?{toShow:a([]),toHide:d,complete:j,down:g,autoHeight:i.autoHeight||i.fillSpace}:{toShow:b,toHide:d,complete:j,down:g,autoHeight:i.autoHeight||i.fillSpace},i.proxied||(i.proxied=i.animated),i.proxiedDuration||(i.proxiedDuration=i.duration),i.animated=a.isFunction(i.proxied)?i.proxied(e):i.proxied,i.duration=a.isFunction(i.proxiedDuration)?i.proxiedDuration(e):i.proxiedDuration,f=a.ui.accordion.animations;var k=i.duration,l=i.animated;l&&!f[l]&&!a.easing[l]&&(l="slide"),f[l]||(f[l]=function(a){this.slide(a,{easing:l,duration:k||700})}),f[l](e)}else i.collapsible&&f?b.toggle():(d.hide(),b.show()),j(!0);d.prev().attr({"aria-expanded":"false",tabIndex:-1}).blur(),b.prev().attr({"aria-expanded":"true",tabIndex:0}).focus()},_completed:function(a){this.running=a?0:--this.running,this.running||(this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""}),this.toHide.removeClass("ui-accordion-content-active"),this._trigger("change",null,this.data))}}),a.extend(a.ui.accordion,{version:"1.8.5",animations:{slide:function(b,d){b=a.extend({easing:"swing",duration:300},b,d);if(b.toHide.size())if(b.toShow.size()){var e=b.toShow.css("overflow"),f=0,g={},h={},i;d=b.toShow,i=d[0].style.width,d.width(parseInt(d.parent().width(),10)-parseInt(d.css("paddingLeft"),10)-parseInt(d.css("paddingRight"),10)-(parseInt(d.css("borderLeftWidth"),10)||0)-(parseInt(d.css("borderRightWidth"),10)||0)),a.each(["height","paddingTop","paddingBottom"],function(d,e){h[e]="hide",d=(""+a.css(b.toShow[0],e)).match(/^([\d+-.]+)(.*)$/),g[e]={value:d[1],unit:d[2]||"px"}}),b.toShow.css({height:0,overflow:"hidden"}).show(),b.toHide.filter(":hidden").each(b.complete).end().filter(":visible").animate(h,{step:function(a,c){c.prop=="height"&&(f=c.end-c.start===0?0:(c.now-c.start)/(c.end-c.start)),b.toShow[0].style[c.prop]=f*g[c.prop].value+g[c.prop].unit},duration:b.duration,easing:b.easing,complete:function(){b.autoHeight||b.toShow.css("height",""),b.toShow.css({width:i,overflow:e}),b.complete()}})}else b.toHide.animate({height:"hide",paddingTop:"hide",paddingBottom:"hide"},b);else b.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},b)},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1e3:200})}}})}(jQuery),jQuery.effects||function(a,b){function c(b){var c;return b&&b.constructor==Array&&b.length==3?b:(c=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(b))?[parseInt(c[1],10),parseInt(c[2],10),parseInt(c[3],10)]:(c=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(b))?[parseFloat(c[1])*2.55,parseFloat(c[2])*2.55,parseFloat(c[3])*2.55]:(c=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(b))?[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16)]:(c=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(b))?[parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16),parseInt(c[3]+c[3],16)]:/rgba\(0, 0, 0, 0\)/.exec(b)?i.transparent:i[a.trim(b).toLowerCase()]}function d(b,d){var e;do{e=a.curCSS(b,d);if(e!=""&&e!="transparent"||a.nodeName(b,"body"))break;d="backgroundColor"}while(b=b.parentNode);return c(e)}function e(){var a=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,b={},c,d;if(a&&a.length&&a[0]&&a[a[0]])for(var e=a.length;e--;)c=a[e],typeof a[c]=="string"&&(d=c.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()}),b[d]=a[c]);else for(c in a)typeof a[c]=="string"&&(b[c]=a[c]);return b}function f(b){var c,d;for(c in b)d=b[c],(d==null||a.isFunction(d)||c in k||/scrollbar/.test(c)||!/color/i.test(c)&&isNaN(parseFloat(d)))&&delete b[c];return b}function g(a,b){var c={_:0},d;for(d in b)a[d]!=b[d]&&(c[d]=b[d]);return c}function h(b,c,d,e){typeof b=="object"&&(e=c,d=null,c=b,b=c.effect),a.isFunction(c)&&(e=c,d=null,c={});if(typeof c=="number"||a.fx.speeds[c])e=d,d=c,c={};return a.isFunction(d)&&(e=d,d=null),c=c||{},d=d||c.duration,d=a.fx.off?0:typeof d=="number"?d:a.fx.speeds[d]||a.fx.speeds._default,e=e||c.complete,[b,c,d,e]}a.effects={},a.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(b,e){a.fx.step[e]=function(a){a.colorInit||(a.start=d(a.elem,e),a.end=c(a.end),a.colorInit=!0),a.elem.style[e]="rgb("+Math.max(Math.min(parseInt(a.pos*(a.end[0]-a.start[0])+a.start[0],10),255),0)+","+Math.max(Math.min(parseInt(a.pos*(a.end[1]-a.start[1])+a.start[1],10),255),0)+","+Math.max(Math.min(parseInt(a.pos*(a.end[2]-a.start[2])+a.start[2],10),255),0)+")"}});var i={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"],k={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};a.effects.animateClass=function(b,c,d,h){return a.isFunction(d)&&(h=d,d=null),this.each(function(){var i=a(this),k=i.attr("style")||" ",l=f(e.call(this)),m,q=i.attr("className");a.each(j,function(a,c){b[c]&&i[c+"Class"](b[c])}),m=f(e.call(this)),i.attr("className",q),i.animate(g(l,m),c,d,function(){a.each(j,function(a,c){b[c]&&i[c+"Class"](b[c])}),typeof i.attr("style")=="object"?(i.attr("style").cssText="",i.attr("style").cssText=k):i.attr("style",k),h&&h.apply(this,arguments)})})},a.fn.extend({_addClass:a.fn.addClass,addClass:function(b,c,d,e){return c?a.effects.animateClass.apply(this,[{add:b},c,d,e]):this._addClass(b)},_removeClass:a.fn.removeClass,removeClass:function(b,c,d,e){return c?a.effects.animateClass.apply(this,[{remove:b},c,d,e]):this._removeClass(b)},_toggleClass:a.fn.toggleClass,toggleClass:function(c,d,e,f,g){return typeof d=="boolean"||d===b?e?a.effects.animateClass.apply(this,[d?{add:c}:{remove:c},e,f,g]):this._toggleClass(c,d):a.effects.animateClass.apply(this,[{toggle:c},d,e,f])},switchClass:function(b,c,d,e,f){return a.effects.animateClass.apply(this,[{add:c,remove:b},d,e,f])}}),a.extend(a.effects,{version:"1.8.5",save:function(a,b){for(var c=0;c<b.length;c++)b[c]!==null&&a.data("ec.storage."+b[c],a[0].style[b[c]])},restore:function(a,b){for(var c=0;c<b.length;c++)b[c]!==null&&a.css(b[c],a.data("ec.storage."+b[c]))},setMode:function(a,b){return b=="toggle"&&(b=a.is(":hidden")?"show":"hide"),b},getBaseline:function(a,b){var c;switch(a[0]){case"top":c=0;break;case"middle":c=.5;break;case"bottom":c=1;break;default:c=a[0]/b.height}switch(a[1]){case"left":a=0;break;case"center":a=.5;break;case"right":a=1;break;default:a=a[1]/b.width}return{x:a,y:c}},createWrapper:function(b){if(b.parent().is(".ui-effects-wrapper"))return b.parent();var c={width:b.outerWidth(!0),height:b.outerHeight(!0),"float":b.css("float")},d=a("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});return b.wrap(d),d=b.parent(),b.css("position")=="static"?(d.css({position:"relative"}),b.css({position:"relative"})):(a.extend(c,{position:b.css("position"),zIndex:b.css("z-index")}),a.each(["top","left","bottom","right"],function(a,d){c[d]=b.css(d),isNaN(parseInt(c[d],10))&&(c[d]="auto")}),b.css({position:"relative",top:0,left:0})),d.css(c).show()},removeWrapper:function(a){return a.parent().is(".ui-effects-wrapper")?a.parent().replaceWith(a):a},setTransition:function(b,c,d,e){return e=e||{},a.each(c,function(a,c){unit=b.cssUnit(c),unit[0]>0&&(e[c]=unit[0]*d+unit[1])}),e}}),a.fn.extend({effect:function(b){var c=h.apply(this,arguments);c={options:c[1],duration:c[2],callback:c[3]};var d=a.effects[b];return d&&!a.fx.off?d.call(this,c):this},_show:a.fn.show,show:function(b){if(!b||typeof b=="number"||a.fx.speeds[b]||!a.effects[b])return this._show.apply(this,arguments);var c=h.apply(this,arguments);return c[1].mode="show",this.effect.apply(this,c)},_hide:a.fn.hide,hide:function(b){if(!b||typeof b=="number"||a.fx.speeds[b]||!a.effects[b])return this._hide.apply(this,arguments);var c=h.apply(this,arguments);return c[1].mode="hide",this.effect.apply(this,c)},__toggle:a.fn.toggle,toggle:function(b){if(!b||typeof b=="number"||a.fx.speeds[b]||!a.effects[b]||typeof b=="boolean"||a.isFunction(b))return this.__toggle.apply(this,arguments);var c=h.apply(this,arguments);return c[1].mode="toggle",this.effect.apply(this,c)},cssUnit:function(b){var c=this.css(b),d=[];return a.each(["em","px","%","pt"],function(a,b){c.indexOf(b)>0&&(d=[parseFloat(c),b])}),d}}),a.easing.jswing=a.easing.swing,a.extend(a.easing,{def:"easeOutQuad",swing:function(b,c,d,e,f){return a.easing[a.easing.def](b,c,d,e,f)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b+c:d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b*b+c:d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){return(b/=e/2)<1?-d/2*(Math.sqrt(1-b*b)-1)+c:d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){a=1.70158;var f=0,g=d;return b==0?c:(b/=e)==1?c+d:(f||(f=e*.3),g<Math.abs(d)?(g=d,a=f/4):a=f/(2*Math.PI)*Math.asin(d/g),-(g*Math.pow(2,10*(b-=1))*Math.sin((b*e-a)*2*Math.PI/f))+c)},easeOutElastic:function(a,b,c,d,e){a=1.70158;var f=0,g=d;return b==0?c:(b/=e)==1?c+d:(f||(f=e*.3),g<Math.abs(d)?(g=d,a=f/4):a=f/(2*Math.PI)*Math.asin(d/g),g*Math.pow(2,-10*b)*Math.sin((b*e-a)*2*Math.PI/f)+d+c)},easeInOutElastic:function(a,b,c,d,e){a=1.70158;var f=0,g=d;return b==0?c:(b/=e/2)==2?c+d:(f||(f=e*.3*1.5),g<Math.abs(d)?(g=d,a=f/4):a=f/(2*Math.PI)*Math.asin(d/g),b<1?-0.5*g*Math.pow(2,10*(b-=1))*Math.sin((b*e-a)*2*Math.PI/f)+c:g*Math.pow(2,-10*(b-=1))*Math.sin((b*e-a)*2*Math.PI/f)*.5+d+c)},easeInBack:function(a,c,d,e,f,g){return g==b&&(g=1.70158),e*(c/=f)*c*((g+1)*c-g)+d},easeOutBack:function(a,c,d,e,f,g){return g==b&&(g=1.70158),e*((c=c/f-1)*c*((g+1)*c+g)+1)+d},easeInOutBack:function(a,c,d,e,f,g){return g==b&&(g=1.70158),(c/=f/2)<1?e/2*c*c*(((g*=1.525)+1)*c-g)+d:e/2*((c-=2)*c*(((g*=1.525)+1)*c+g)+2)+d},easeInBounce:function(b,c,d,e,f){return e-a.easing.easeOutBounce(b,f-c,0,e,f)+d},easeOutBounce:function(a,b,c,d,e){return(b/=e)<1/2.75?d*7.5625*b*b+c:b<2/2.75?d*(7.5625*(b-=1.5/2.75)*b+.75)+c:b<2.5/2.75?d*(7.5625*(b-=2.25/2.75)*b+.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+.984375)+c},easeInOutBounce:function(b,c,d,e,f){return c<f/2?a.easing.easeInBounce(b,c*2,0,e,f)*.5+d:a.easing.easeOutBounce(b,c*2-f,0,e,f)*.5+e*.5+d}})}(jQuery);
// !MeAb! c/s/d/e/j/e/jquery.easing.1.3.js
jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b+c:d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b*b+c:d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){return(b/=e/2)<1?-d/2*(Math.sqrt(1-b*b)-1)+c:d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(b==0)return c;if((b/=e)==1)return c+d;g||(g=e*.3);if(h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g))+c},easeOutElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(b==0)return c;if((b/=e)==1)return c+d;g||(g=e*.3);if(h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*b)*Math.sin((b*e-f)*2*Math.PI/g)+d+c},easeInOutElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(b==0)return c;if((b/=e/2)==2)return c+d;g||(g=e*.3*1.5);if(h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return b<1?-0.5*h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)+c:h*Math.pow(2,-10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)*.5+d+c},easeInBack:function(a,b,c,d,e,f){return f==undefined&&(f=1.70158),d*(b/=e)*b*((f+1)*b-f)+c},easeOutBack:function(a,b,c,d,e,f){return f==undefined&&(f=1.70158),d*((b=b/e-1)*b*((f+1)*b+f)+1)+c},easeInOutBack:function(a,b,c,d,e,f){return f==undefined&&(f=1.70158),(b/=e/2)<1?d/2*b*b*(((f*=1.525)+1)*b-f)+c:d/2*((b-=2)*b*(((f*=1.525)+1)*b+f)+2)+c},easeInBounce:function(a,b,c,d,e){return d-jQuery.easing.easeOutBounce(a,e-b,0,d,e)+c},easeOutBounce:function(a,b,c,d,e){return(b/=e)<1/2.75?d*7.5625*b*b+c:b<2/2.75?d*(7.5625*(b-=1.5/2.75)*b+.75)+c:b<2.5/2.75?d*(7.5625*(b-=2.25/2.75)*b+.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+.984375)+c},easeInOutBounce:function(a,b,c,d,e){return b<e/2?jQuery.easing.easeInBounce(a,b*2,0,d,e)*.5+c:jQuery.easing.easeOutBounce(a,b*2-e,0,d,e)*.5+d*.5+c}});
// !MeAb! c/s/d/e/j/e/jquery.jscrollpane.js
(function(a,b,c){a.fn.jScrollPane=function(b){function d(b,d){function T(d){var f,q,r,t,u,w,x,y;e=d;if(g===c)x=b.scrollTop(),y=b.scrollLeft(),b.css({overflow:"hidden",padding:0}),h=b.innerWidth()+L,i=b.innerHeight(),b.width(h),g=a('<div class="jspPane" />').css("padding",K).append(b.children()),j=a('<div class="jspContainer" />').css({width:h+"px",height:i+"px"}).append(g).appendTo(b);else{b.css("width",""),w=b.innerWidth()+L!=h||b.outerHeight()!=i,w&&(h=b.innerWidth()+L,i=b.innerHeight(),j.css({width:h+"px",height:i+"px"}));if(!w&&M==k&&g.outerHeight()==l){b.width(h);return}M=k,g.css("width",""),b.width(h),j.find(">.jspVerticalBar,>.jspHorizontalBar").remove().end()}f=g.clone(!1,!1).css("position","absolute"),q=a('<div style="width:1px; position: relative;" />').append(f),a("body").append(q),k=Math.max(g.outerWidth(),f.outerWidth()),q.remove(),l=g.outerHeight(),m=k/h,n=l/i,o=n>1,p=m>1,!p&&!o?(b.removeClass("jspScrollable"),g.css({top:0,width:j.width()-L}),bq(),bt(),bv(),bc(),bx()):(b.addClass("jspScrollable"),r=e.maintainPosition&&(s||v),r&&(t=bn(),u=bo()),U(),W(),Y(),r&&(bl(t,!1),bk(u,!1)),bs(),bp(),bz(),e.enableKeyboardNavigation&&bu(),e.clickOnTrack&&bb(),bw(),e.hijackInternalLinks&&by()),e.autoReinitialise&&!J?J=setInterval(function(){T(e)},e.autoReinitialiseDelay):!e.autoReinitialise&&J&&clearInterval(J),x&&b.scrollTop(0)&&bk(x,!1),y&&b.scrollLeft(0)&&bl(y,!1),b.trigger("jsp-initialised",[p||o])}function U(){o&&(j.append(a('<div class="jspVerticalBar" />').append(a('<div class="jspCap jspCapTop" />'),a('<div class="jspTrack" />').append(a('<div class="jspDrag" />').append(a('<div class="jspDragTop" />'),a('<div class="jspDragBottom" />'))),a('<div class="jspCap jspCapBottom" />'))),w=j.find(">.jspVerticalBar"),x=w.find(">.jspTrack"),q=x.find(">.jspDrag"),e.showArrows&&(B=a('<a class="jspArrow jspArrowUp" />').bind("mousedown.jsp",_(0,-1)).bind("click.jsp",br),C=a('<a class="jspArrow jspArrowDown" />').bind("mousedown.jsp",_(0,1)).bind("click.jsp",br),e.arrowScrollOnHover&&(B.bind("mouseover.jsp",_(0,-1,B)),C.bind("mouseover.jsp",_(0,1,C))),Z(x,e.verticalArrowPositions,B,C)),z=i,j.find(">.jspVerticalBar>.jspCap:visible,>.jspVerticalBar>.jspArrow").each(function(){z-=a(this).outerHeight()}),q.hover(function(){q.addClass("jspHover")},function(){q.removeClass("jspHover")}).bind("mousedown.jsp",function(b){a("html").bind("dragstart.jsp selectstart.jsp",br),q.addClass("jspActive");var c=b.pageY-q.position().top;return a("html").bind("mousemove.jsp",function(a){be(a.pageY-c,!1)}).bind("mouseup.jsp mouseleave.jsp",bd),!1}),V())}function V(){x.height(z+"px"),s=0,y=e.verticalGutter+x.outerWidth(),g.width(h-y-L),w.position().left===0&&g.css("margin-left",y+"px")}function W(){p&&(j.append(a('<div class="jspHorizontalBar" />').append(a('<div class="jspCap jspCapLeft" />'),a('<div class="jspTrack" />').append(a('<div class="jspDrag" />').append(a('<div class="jspDragLeft" />'),a('<div class="jspDragRight" />'))),a('<div class="jspCap jspCapRight" />'))),D=j.find(">.jspHorizontalBar"),E=D.find(">.jspTrack"),t=E.find(">.jspDrag"),e.showArrows&&(H=a('<a class="jspArrow jspArrowLeft" />').bind("mousedown.jsp",_(-1,0)).bind("click.jsp",br),I=a('<a class="jspArrow jspArrowRight" />').bind("mousedown.jsp",_(1,0)).bind("click.jsp",br),e.arrowScrollOnHover&&(H.bind("mouseover.jsp",_(-1,0,H)),I.bind("mouseover.jsp",_(1,0,I))),Z(E,e.horizontalArrowPositions,H,I)),t.hover(function(){t.addClass("jspHover")},function(){t.removeClass("jspHover")}).bind("mousedown.jsp",function(b){a("html").bind("dragstart.jsp selectstart.jsp",br),t.addClass("jspActive");var c=b.pageX-t.position().left;return a("html").bind("mousemove.jsp",function(a){bg(a.pageX-c,!1)}).bind("mouseup.jsp mouseleave.jsp",bd),!1}),F=j.innerWidth(),X())}function X(){j.find(">.jspHorizontalBar>.jspCap:visible,>.jspHorizontalBar>.jspArrow").each(function(){F-=a(this).outerWidth()}),E.width(F+"px"),v=0}function Y(){if(p&&o){var b=E.outerHeight(),c=x.outerWidth();z-=b,a(D).find(">.jspCap:visible,>.jspArrow").each(function(){F+=a(this).outerWidth()}),F-=c,i-=c,h-=b,E.parent().append(a('<div class="jspCorner" />').css("width",b+"px")),V(),X()}p&&g.width(j.outerWidth()-L+"px"),l=g.outerHeight(),n=l/i,p&&(G=Math.ceil(1/m*F),G>e.horizontalDragMaxWidth?G=e.horizontalDragMaxWidth:G<e.horizontalDragMinWidth&&(G=e.horizontalDragMinWidth),t.width(G+"px"),u=F-G,bh(v)),o&&(A=Math.ceil(1/n*z),A>e.verticalDragMaxHeight?A=e.verticalDragMaxHeight:A<e.verticalDragMinHeight&&(A=e.verticalDragMinHeight),q.height(A+"px"),r=z-A,bf(s))}function Z(a,b,c,d){var e="before",f="after",g;b=="os"&&(b=/Mac/.test(navigator.platform)?"after":"split"),b==e?f=b:b==f&&(e=b,g=c,c=d,d=g),a[e](c)[f](d)}function _(a,b,c){return function(){return ba(a,b,this,c),this.blur(),!1}}function ba(b,c,d,g){d=a(d).addClass("jspActive");var h,i,j=!0,k=function(){b!==0&&f.scrollByX(b*e.arrowButtonSpeed),c!==0&&f.scrollByY(c*e.arrowButtonSpeed),i=setTimeout(k,j?e.initialDelay:e.arrowRepeatFreq),j=!1};k(),h=g?"mouseout.jsp":"mouseup.jsp",g=g||a("html"),g.bind(h,function(){d.removeClass("jspActive"),i&&clearTimeout(i),i=null,g.unbind(h)})}function bb(){bc(),o&&x.bind("mousedown.jsp",function(b){if(b.originalTarget===c||b.originalTarget==b.currentTarget){var d=a(this),g=d.offset(),h=b.pageY-g.top-s,j,k=!0,m=function(){var a=d.offset(),c=b.pageY-a.top-A/2,g=i*e.scrollPagePercent,o=r*g/(l-i);if(h<0)s-o>c?f.scrollByY(-g):be(c);else if(h>0)s+o<c?f.scrollByY(g):be(c);else{n();return}j=setTimeout(m,k?e.initialDelay:e.trackClickRepeatFreq),k=!1},n=function(){j&&clearTimeout(j),j=null,a(document).unbind("mouseup.jsp",n)};return m(),a(document).bind("mouseup.jsp",n),!1}}),p&&E.bind("mousedown.jsp",function(b){if(b.originalTarget===c||b.originalTarget==b.currentTarget){var d=a(this),g=d.offset(),i=b.pageX-g.left-v,j,l=!0,m=function(){var a=d.offset(),c=b.pageX-a.left-G/2,g=h*e.scrollPagePercent,o=u*g/(k-h);if(i<0)v-o>c?f.scrollByX(-g):bg(c);else if(i>0)v+o<c?f.scrollByX(g):bg(c);else{n();return}j=setTimeout(m,l?e.initialDelay:e.trackClickRepeatFreq),l=!1},n=function(){j&&clearTimeout(j),j=null,a(document).unbind("mouseup.jsp",n)};return m(),a(document).bind("mouseup.jsp",n),!1}})}function bc(){E&&E.unbind("mousedown.jsp"),x&&x.unbind("mousedown.jsp")}function bd(){a("html").unbind("dragstart.jsp selectstart.jsp mousemove.jsp mouseup.jsp mouseleave.jsp"),q&&q.removeClass("jspActive"),t&&t.removeClass("jspActive")}function be(a,b){if(!o)return;a<0?a=0:a>r&&(a=r),b===c&&(b=e.animateScroll),b?f.animate(q,"top",a,bf):(q.css("top",a),bf(a))}function bf(a){a===c&&(a=q.position().top),j.scrollTop(0),s=a;var d=s===0,e=s==r,f=a/r,h=-f*(l-i);if(N!=d||P!=e)N=d,P=e,b.trigger("jsp-arrow-change",[N,P,O,Q]);bi(d,e),g.css("top",h),b.trigger("jsp-scroll-y",[-h,d,e]).trigger("scroll")}function bg(a,b){if(!p)return;a<0?a=0:a>u&&(a=u),b===c&&(b=e.animateScroll),b?f.animate(t,"left",a,bh):(t.css("left",a),bh(a))}function bh(a){a===c&&(a=t.position().left),j.scrollTop(0),v=a;var d=v===0,e=v==u,f=a/u,i=-f*(k-h);if(O!=d||Q!=e)O=d,Q=e,b.trigger("jsp-arrow-change",[N,P,O,Q]);bj(d,e),g.css("left",i),b.trigger("jsp-scroll-x",[-i,d,e]).trigger("scroll")}function bi(a,b){e.showArrows&&(B[a?"addClass":"removeClass"]("jspDisabled"),C[b?"addClass":"removeClass"]("jspDisabled"))}function bj(a,b){e.showArrows&&(H[a?"addClass":"removeClass"]("jspDisabled"),I[b?"addClass":"removeClass"]("jspDisabled"))}function bk(a,b){var c=a/(l-i);be(c*r,b)}function bl(a,b){var c=a/(k-h);bg(c*u,b)}function bm(b,c,d){var f,g,k,l=0,m=0,n,o,p,q,r;try{f=a(b)}catch(s){return}g=f.outerHeight(),k=f.outerWidth(),j.scrollTop(0),j.scrollLeft(0);while(!f.is(".jspPane")){l+=f.position().top,m+=f.position().left,f=f.offsetParent();if(/^body|html$/i.test(f[0].nodeName))return}n=bo(),o=n+i,l<n||c?q=l-e.verticalGutter:l+g>o&&(q=l-i+g+e.verticalGutter),q&&bk(q,d),viewportLeft=bn(),p=viewportLeft+h,m<viewportLeft||c?r=m-e.horizontalGutter:m+k>p&&(r=m-h+k+e.horizontalGutter),r&&bl(r,d)}function bn(){return-g.position().left}function bo(){return-g.position().top}function bp(){j.unbind(S).bind(S,function(a,b,c,d){var g=v,h=s;return f.scrollBy(c*e.mouseWheelSpeed,-d*e.mouseWheelSpeed,!1),g==v&&h==s})}function bq(){j.unbind(S)}function br(){return!1}function bs(){g.find(":input,a").unbind("focus.jsp").bind("focus.jsp",function(a){bm(a.target,!1)})}function bt(){g.find(":input,a").unbind("focus.jsp")}function bu(){function d(){var b=v,d=s;switch(a){case 40:f.scrollByY(e.keyboardSpeed,!1);break;case 38:f.scrollByY(-e.keyboardSpeed,!1);break;case 34:case 32:f.scrollByY(i*e.scrollPagePercent,!1);break;case 33:f.scrollByY(-i*e.scrollPagePercent,!1);break;case 39:f.scrollByX(e.keyboardSpeed,!1);break;case 37:f.scrollByX(-e.keyboardSpeed,!1)}return c=b!=v||d!=s,c}var a,c;g.focus(function(){b.focus()}),b.attr("tabindex",0).unbind("keydown.jsp keypress.jsp").bind("keydown.jsp",function(b){if(b.target!==this)return;var e=v,f=s;switch(b.keyCode){case 40:case 38:case 34:case 32:case 33:case 39:case 37:a=b.keyCode,d();break;case 35:bk(l-i),a=null;break;case 36:bk(0),a=null}return c=b.keyCode==a&&e!=v||f!=s,!c}).bind("keypress.jsp",function(b){return b.keyCode==a&&d(),!c}),e.hideFocus?(b.css("outline","none"),"hideFocus"in j[0]&&b.attr("hideFocus",!0)):(b.css("outline",""),"hideFocus"in j[0]&&b.attr("hideFocus",!1))}function bv(){b.attr("tabindex","-1").removeAttr("tabindex").unbind("keydown.jsp keypress.jsp")}function bw(){if(location.hash&&location.hash.length>1){var b,c;try{b=a(location.hash)}catch(d){return}b.length&&g.find(location.hash)&&(j.scrollTop()===0?c=setInterval(function(){j.scrollTop()>0&&(bm(location.hash,!0),a(document).scrollTop(j.position().top),clearInterval(c))},50):(bm(location.hash,!0),a(document).scrollTop(j.position().top)))}}function bx(){a("a.jspHijack").unbind("click.jsp-hijack").removeClass("jspHijack")}function by(){bx(),a("a[href^=#]").addClass("jspHijack").bind("click.jsp-hijack",function(){var a=this.href.split("#"),b;if(a.length>1){b=a[1];if(b.length>0&&g.find("#"+b).length>0)return bm("#"+b,!0),!1}})}function bz(){var a,b,c,d,e,g=!1;j.unbind("touchstart.jsp touchmove.jsp touchend.jsp click.jsp-touchclick").bind("touchstart.jsp",function(f){var h=f.originalEvent.touches[0];a=bn(),b=bo(),c=h.pageX,d=h.pageY,e=!1,g=!0}).bind("touchmove.jsp",function(h){if(!g)return;var i=h.originalEvent.touches[0],j=v,k=s;return f.scrollTo(a+c-i.pageX,b+d-i.pageY),e=e||Math.abs(c-i.pageX)>5||Math.abs(d-i.pageY)>5,j==v&&k==s}).bind("touchend.jsp",function(a){g=!1}).bind("click.jsp-touchclick",function(a){if(e)return e=!1,!1})}function bA(){var a=bo(),c=bn();b.removeClass("jspScrollable").unbind(".jsp"),b.replaceWith(R.append(g.children())),R.scrollTop(a),R.scrollLeft(c)}var e,f=this,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N=!0,O=!0,P=!1,Q=!1,R=b.clone(!1,!1).empty(),S=a.fn.mwheelIntent?"mwheelIntent.jsp":"mousewheel.jsp";K=b.css("paddingTop")+" "+b.css("paddingRight")+" "+b.css("paddingBottom")+" "+b.css("paddingLeft"),L=(parseInt(b.css("paddingLeft"),10)||0)+(parseInt(b.css("paddingRight"),10)||0),a.extend(f,{reinitialise:function(b){b=a.extend({},e,b),T(b)},scrollToElement:function(a,b,c){bm(a,b,c)},scrollTo:function(a,b,c){bl(a,c),bk(b,c)},scrollToX:function(a,b){bl(a,b)},scrollToY:function(a,b){bk(a,b)},scrollToPercentX:function(a,b){bl(a*(k-h),b)},scrollToPercentY:function(a,b){bk(a*(l-i),b)},scrollBy:function(a,b,c){f.scrollByX(a,c),f.scrollByY(b,c)},scrollByX:function(a,b){var c=bn()+a,d=c/(k-h);bg(d*u,b)},scrollByY:function(a,b){var c=bo()+a,d=c/(l-i);be(d*r,b)},positionDragX:function(a,b){bg(a,b)},positionDragY:function(a,b){bg(a,b)},animate:function(a,b,c,d){var f={};f[b]=c,a.animate(f,{duration:e.animateDuration,ease:e.animateEase,queue:!1,step:d})},getContentPositionX:function(){return bn()},getContentPositionY:function(){return bo()},getContentWidth:function(){return k()},getContentHeight:function(){return l()},getPercentScrolledX:function(){return bn()/(k-h)},getPercentScrolledY:function(){return bo()/(l-i)},getIsScrollableH:function(){return p},getIsScrollableV:function(){return o},getContentPane:function(){return g},scrollToBottom:function(a){be(r,a)},hijackInternalLinks:function(){by()},destroy:function(){bA()}}),T(d)}b=a.extend({},a.fn.jScrollPane.defaults,b),a.each(["mouseWheelSpeed","arrowButtonSpeed","trackClickSpeed","keyboardSpeed"],function(){b[this]=b[this]||b.speed});var e;return this.each(function(){var c=a(this),f=c.data("jsp");f?f.reinitialise(b):(f=new d(c,b),c.data("jsp",f)),e=e?e.add(c):c}),e},a.fn.jScrollPane.defaults={showArrows:!1,maintainPosition:!0,clickOnTrack:!0,autoReinitialise:!1,autoReinitialiseDelay:500,verticalDragMinHeight:0,verticalDragMaxHeight:99999,horizontalDragMinWidth:0,horizontalDragMaxWidth:99999,animateScroll:!1,animateDuration:300,animateEase:"linear",hijackInternalLinks:!1,verticalGutter:4,horizontalGutter:4,mouseWheelSpeed:0,arrowButtonSpeed:0,arrowRepeatFreq:50,arrowScrollOnHover:!1,trackClickSpeed:0,trackClickRepeatFreq:70,verticalArrowPositions:"split",horizontalArrowPositions:"split",enableKeyboardNavigation:!0,hideFocus:!1,keyboardSpeed:0,initialDelay:300,speed:30,scrollPagePercent:.8}})(jQuery,this);
// !MeAb! c/s/d/e/j/e/s/swfobject.js
var swfobject=function(){function A(){if(t)return;try{var a=i.getElementsByTagName("body")[0].appendChild(Q("span"));a.parentNode.removeChild(a)}catch(b){return}t=!0;var c=l.length;for(var d=0;d<c;d++)l[d]()}function B(a){t?a():l[l.length]=a}function C(b){if(typeof h.addEventListener!=a)h.addEventListener("load",b,!1);else if(typeof i.addEventListener!=a)i.addEventListener("load",b,!1);else if(typeof h.attachEvent!=a)R(h,"onload",b);else if(typeof h.onload=="function"){var c=h.onload;h.onload=function(){c(),b()}}else h.onload=b}function D(){k?E():F()}function E(){var c=i.getElementsByTagName("body")[0],d=Q(b);d.setAttribute("type",e);var f=c.appendChild(d);if(f){var g=0;(function(){if(typeof f.GetVariable!=a){var b=f.GetVariable("$version");b&&(b=b.split(" ")[1].split(","),y.pv=[parseInt(b[0],10),parseInt(b[1],10),parseInt(b[2],10)])}else if(g<10){g++,setTimeout(arguments.callee,10);return}c.removeChild(d),f=null,F()})()}else F()}function F(){var b=m.length;if(b>0)for(var c=0;c<b;c++){var d=m[c].id,e=m[c].callbackFn,f={success:!1,id:d};if(y.pv[0]>0){var g=P(d);if(g)if(S(m[c].swfVersion)&&!(y.wk&&y.wk<312))U(d,!0),e&&(f.success=!0,f.ref=G(d),e(f));else if(m[c].expressInstall&&H()){var h={};h.data=m[c].expressInstall,h.width=g.getAttribute("width")||"0",h.height=g.getAttribute("height")||"0",g.getAttribute("class")&&(h.styleclass=g.getAttribute("class")),g.getAttribute("align")&&(h.align=g.getAttribute("align"));var i={},j=g.getElementsByTagName("param"),k=j.length;for(var l=0;l<k;l++)j[l].getAttribute("name").toLowerCase()!="movie"&&(i[j[l].getAttribute("name")]=j[l].getAttribute("value"));I(h,i,d,e)}else J(g),e&&e(f)}else{U(d,!0);if(e){var n=G(d);n&&typeof n.SetVariable!=a&&(f.success=!0,f.ref=n),e(f)}}}}function G(c){var d=null,e=P(c);if(e&&e.nodeName=="OBJECT")if(typeof e.SetVariable!=a)d=e;else{var f=e.getElementsByTagName(b)[0];f&&(d=f)}return d}function H(){return!u&&S("6.0.65")&&(y.win||y.mac)&&!(y.wk&&y.wk<312)}function I(b,c,d,e){u=!0,r=e||null,s={success:!1,id:d};var g=P(d);if(g){g.nodeName=="OBJECT"?(p=K(g),q=null):(p=g,q=d),b.id=f;if(typeof b.width==a||!/%$/.test(b.width)&&parseInt(b.width,10)<310)b.width="310";if(typeof b.height==a||!/%$/.test(b.height)&&parseInt(b.height,10)<137)b.height="137";i.title=i.title.slice(0,47)+" - Flash Player Installation";var j=y.ie&&y.win?"ActiveX":"PlugIn",k="MMredirectURL="+h.location.toString().replace(/&/g,"%26")+"&MMplayerType="+j+"&MMdoctitle="+i.title;typeof c.flashvars!=a?c.flashvars+="&"+k:c.flashvars=k;if(y.ie&&y.win&&g.readyState!=4){var l=Q("div");d+="SWFObjectNew",l.setAttribute("id",d),g.parentNode.insertBefore(l,g),g.style.display="none",function(){g.readyState==4?g.parentNode.removeChild(g):setTimeout(arguments.callee,10)}()}L(b,c,d)}}function J(a){if(y.ie&&y.win&&a.readyState!=4){var b=Q("div");a.parentNode.insertBefore(b,a),b.parentNode.replaceChild(K(a),b),a.style.display="none",function(){a.readyState==4?a.parentNode.removeChild(a):setTimeout(arguments.callee,10)}()}else a.parentNode.replaceChild(K(a),a)}function K(a){var c=Q("div");if(y.win&&y.ie)c.innerHTML=a.innerHTML;else{var d=a.getElementsByTagName(b)[0];if(d){var e=d.childNodes;if(e){var f=e.length;for(var g=0;g<f;g++)(e[g].nodeType!=1||e[g].nodeName!="PARAM")&&e[g].nodeType!=8&&c.appendChild(e[g].cloneNode(!0))}}}return c}function L(c,d,f){var g,h=P(f);if(y.wk&&y.wk<312)return g;if(h){typeof c.id==a&&(c.id=f);if(y.ie&&y.win){var i="";for(var j in c)c[j]!=Object.prototype[j]&&(j.toLowerCase()=="data"?d.movie=c[j]:j.toLowerCase()=="styleclass"?i+=' class="'+c[j]+'"':j.toLowerCase()!="classid"&&(i+=" "+j+'="'+c[j]+'"'));var k="";for(var l in d)d[l]!=Object.prototype[l]&&(k+='<param name="'+l+'" value="'+d[l]+'" />');h.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+i+">"+k+"</object>",n[n.length]=c.id,g=P(c.id)}else{var m=Q(b);m.setAttribute("type",e);for(var o in c)c[o]!=Object.prototype[o]&&(o.toLowerCase()=="styleclass"?m.setAttribute("class",c[o]):o.toLowerCase()!="classid"&&m.setAttribute(o,c[o]));for(var p in d)d[p]!=Object.prototype[p]&&p.toLowerCase()!="movie"&&M(m,p,d[p]);h.parentNode.replaceChild(m,h),g=m}}return g}function M(a,b,c){var d=Q("param");d.setAttribute("name",b),d.setAttribute("value",c),a.appendChild(d)}function N(a){var b=P(a);b&&b.nodeName=="OBJECT"&&(y.ie&&y.win?(b.style.display="none",function(){b.readyState==4?O(a):setTimeout(arguments.callee,10)}()):b.parentNode.removeChild(b))}function O(a){var b=P(a);if(b){for(var c in b)typeof b[c]=="function"&&(b[c]=null);b.parentNode.removeChild(b)}}function P(a){var b=null;try{b=i.getElementById(a)}catch(c){}return b}function Q(a){return i.createElement(a)}function R(a,b,c){a.attachEvent(b,c),o[o.length]=[a,b,c]}function S(a){var b=y.pv,c=a.split(".");return c[0]=parseInt(c[0],10),c[1]=parseInt(c[1],10)||0,c[2]=parseInt(c[2],10)||0,b[0]>c[0]||b[0]==c[0]&&b[1]>c[1]||b[0]==c[0]&&b[1]==c[1]&&b[2]>=c[2]?!0:!1}function T(c,d,e,f){if(y.ie&&y.mac)return;var g=i.getElementsByTagName("head")[0];if(!g)return;var h=e&&typeof e=="string"?e:"screen";f&&(v=null,w=null);if(!v||w!=h){var j=Q("style");j.setAttribute("type","text/css"),j.setAttribute("media",h),v=g.appendChild(j),y.ie&&y.win&&typeof i.styleSheets!=a&&i.styleSheets.length>0&&(v=i.styleSheets[i.styleSheets.length-1]),w=h}y.ie&&y.win?v&&typeof v.addRule==b&&v.addRule(c,d):v&&typeof i.createTextNode!=a&&v.appendChild(i.createTextNode(c+" {"+d+"}"))}function U(a,b){if(!x)return;var c=b?"visible":"hidden";t&&P(a)?P(a).style.visibility=c:T("#"+a,"visibility:"+c)}function V(b){var c=/[\\\"<>\.;]/,d=c.exec(b)!=null;return d&&typeof encodeURIComponent!=a?encodeURIComponent(b):b}var a="undefined",b="object",c="Shockwave Flash",d="ShockwaveFlash.ShockwaveFlash",e="application/x-shockwave-flash",f="SWFObjectExprInst",g="onreadystatechange",h=window,i=document,j=navigator,k=!1,l=[D],m=[],n=[],o=[],p,q,r,s,t=!1,u=!1,v,w,x=!0,y=function(){var f=typeof i.getElementById!=a&&typeof i.getElementsByTagName!=a&&typeof i.createElement!=a,g=j.userAgent.toLowerCase(),l=j.platform.toLowerCase(),m=l?/win/.test(l):/win/.test(g),n=l?/mac/.test(l):/mac/.test(g),o=/webkit/.test(g)?parseFloat(g.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,p=!1,q=[0,0,0],r=null;if(typeof j.plugins!=a&&typeof j.plugins[c]==b)r=j.plugins[c].description,r&&(typeof j.mimeTypes==a||!j.mimeTypes[e]||!!j.mimeTypes[e].enabledPlugin)&&(k=!0,p=!1,r=r.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),q[0]=parseInt(r.replace(/^(.*)\..*$/,"$1"),10),q[1]=parseInt(r.replace(/^.*\.(.*)\s.*$/,"$1"),10),q[2]=/[a-zA-Z]/.test(r)?parseInt(r.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if(typeof h.ActiveXObject!=a)try{var s=new ActiveXObject(d);s&&(r=s.GetVariable("$version"),r&&(p=!0,r=r.split(" ")[1].split(","),q=[parseInt(r[0],10),parseInt(r[1],10),parseInt(r[2],10)]))}catch(t){}return{w3:f,pv:q,wk:o,ie:p,win:m,mac:n}}(),z=function(){if(!y.w3)return;(typeof i.readyState!=a&&i.readyState=="complete"||typeof i.readyState==a&&(i.getElementsByTagName("body")[0]||i.body))&&A(),t||(typeof i.addEventListener!=a&&i.addEventListener("DOMContentLoaded",A,!1),y.ie&&y.win&&(i.attachEvent(g,function(){i.readyState=="complete"&&(i.detachEvent(g,arguments.callee),A())}),h==top&&function(){if(t)return;try{i.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}A()}()),y.wk&&function(){if(t)return;if(!/loaded|complete/.test(i.readyState)){setTimeout(arguments.callee,0);return}A()}(),C(A))}(),W=function(){y.ie&&y.win&&window.attachEvent("onunload",function(){var a=o.length;for(var b=0;b<a;b++)o[b][0].detachEvent(o[b][1],o[b][2]);var c=n.length;for(var d=0;d<c;d++)N(n[d]);for(var e in y)y[e]=null;y=null;for(var f in swfobject)swfobject[f]=null;swfobject=null})}();return{registerObject:function(a,b,c,d){if(y.w3&&a&&b){var e={};e.id=a,e.swfVersion=b,e.expressInstall=c,e.callbackFn=d,m[m.length]=e,U(a,!1)}else d&&d({success:!1,id:a})},getObjectById:function(a){if(y.w3)return G(a)},embedSWF:function(c,d,e,f,g,h,i,j,k,l){var m={success:!1,id:d};y.w3&&!(y.wk&&y.wk<312)&&c&&d&&e&&f&&g?(U(d,!1),B(function(){e+="",f+="";var n={};if(k&&typeof k===b)for(var o in k)n[o]=k[o];n.data=c,n.width=e,n.height=f;var p={};if(j&&typeof j===b)for(var q in j)p[q]=j[q];if(i&&typeof i===b)for(var r in i)typeof p.flashvars!=a?p.flashvars+="&"+r+"="+i[r]:p.flashvars=r+"="+i[r];if(S(g)){var s=L(n,p,d);n.id==d&&U(d,!0),m.success=!0,m.ref=s}else{if(h&&H()){n.data=h,I(n,p,d,l);return}U(d,!0)}l&&l(m)})):l&&l(m)},switchOffAutoHideShow:function(){x=!1},ua:y,getFlashPlayerVersion:function(){return{major:y.pv[0],minor:y.pv[1],release:y.pv[2]}},hasFlashPlayerVersion:S,createSWF:function(a,b,c){return y.w3?L(a,b,c):undefined},showExpressInstall:function(a,b,c,d){y.w3&&H()&&I(a,b,c,d)},removeSWF:function(a){y.w3&&N(a)},createCSS:function(a,b,c,d){y.w3&&T(a,b,c,d)},addDomLoadEvent:B,addLoadEvent:C,getQueryParamValue:function(a){var b=i.location.search||i.location.hash;if(b){/\?/.test(b)&&(b=b.split("?")[1]);if(a==null)return V(b);var c=b.split("&");for(var d=0;d<c.length;d++)if(c[d].substring(0,c[d].indexOf("="))==a)return V(c[d].substring(c[d].indexOf("=")+1))}return""},expressInstallCallback:function(){if(u){var a=P(f);a&&p&&(a.parentNode.replaceChild(p,a),q&&(U(q,!0),y.ie&&y.win&&(p.style.display="block")),r&&r(s)),u=!1}}}}();
// !MeAb! c/s/d/e/j/e/json2.js
this.JSON||(JSON={}),function(){function f(a){return a<10?"0"+a:a}function quote(a){return escapable.lastIndex=0,escapable.test(a)?'"'+a.replace(escapable,function(a){var b=meta[a];return typeof b=="string"?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function str(a,b){var c,d,e,f,g=gap,h,i=b[a];i&&typeof i=="object"&&typeof i.toJSON=="function"&&(i=i.toJSON(a)),typeof rep=="function"&&(i=rep.call(b,a,i));switch(typeof i){case"string":return quote(i);case"number":return isFinite(i)?String(i):"null";case"boolean":case"null":return String(i);case"object":if(!i)return"null";gap+=indent,h=[];if(Object.prototype.toString.apply(i)==="[object Array]"){f=i.length;for(c=0;c<f;c+=1)h[c]=str(c,i)||"null";return e=h.length===0?"[]":gap?"[\n"+gap+h.join(",\n"+gap)+"\n"+g+"]":"["+h.join(",")+"]",gap=g,e}if(rep&&typeof rep=="object"){f=rep.length;for(c=0;c<f;c+=1)d=rep[c],typeof d=="string"&&(e=str(d,i),e&&h.push(quote(d)+(gap?": ":":")+e))}else for(d in i)Object.hasOwnProperty.call(i,d)&&(e=str(d,i),e&&h.push(quote(d)+(gap?": ":":")+e));return e=h.length===0?"{}":gap?"{\n"+gap+h.join(",\n"+gap)+"\n"+g+"}":"{"+h.join(",")+"}",gap=g,e}}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(a){return this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z"},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(a){return this.valueOf()});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;typeof JSON.stringify!="function"&&(JSON.stringify=function(a,b,c){var d;gap="",indent="";if(typeof c=="number")for(d=0;d<c;d+=1)indent+=" ";else typeof c=="string"&&(indent=c);rep=b;if(!b||typeof b=="function"||typeof b=="object"&&typeof b.length=="number")return str("",{"":a});throw new Error("JSON.stringify")}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){function walk(a,b){var c,d,e=a[b];if(e&&typeof e=="object")for(c in e)Object.hasOwnProperty.call(e,c)&&(d=walk(e,c),d!==undefined?e[c]=d:delete e[c]);return reviver.call(a,b,e)}var j;cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}();
// !MeAb! c/s/d/e/j/e/j/jwplayer.min.patched.S2.js
window.jwplayer=function(a){if(jwplayer.api)return jwplayer.api.selectPlayer(a)};var $jw=jwplayer;jwplayer.version="5.5.1641 (Licensed version)",jwplayer.vid=document.createElement("video"),jwplayer.audio=document.createElement("audio"),jwplayer.source=document.createElement("source"),function(a){function b(a){if(a===null)return;var b=a.indexOf("://"),c=a.indexOf("?");return b>0&&(c<0||c>b)}a.utils=function(){},a.utils.typeOf=function(a){var b=typeof a;return b==="object"&&(a?a instanceof Array&&(b="array"):b="null"),b},a.utils.extend=function(){var b=a.utils.extend.arguments;if(b.length>1){for(var c=1;c<b.length;c++)for(var d in b[c])b[0][d]=b[c][d];return b[0]}return null},a.utils.clone=function(b){var c,d=a.utils.clone.arguments;if(d.length==1)switch(a.utils.typeOf(d[0])){case"object":c={};for(var e in d[0])c[e]=a.utils.clone(d[0][e]);break;case"array":c=[];for(var e in d[0])c[e]=a.utils.clone(d[0][e]);break;default:return d[0]}return c},a.utils.extension=function(a){a=a.substring(a.lastIndexOf("/")+1,a.length),a=a.split("?")[0];if(a.lastIndexOf(".")>-1)return a.substr(a.lastIndexOf(".")+1,a.length).toLowerCase();return},a.utils.html=function(a,b){a.innerHTML=b},a.utils.wrap=function(a,b){a.parentNode.replaceChild(b,a),b.appendChild(a)},a.utils.ajax=function(a,b,c){var d;return window.XMLHttpRequest?d=new XMLHttpRequest:d=new ActiveXObject("Microsoft.XMLHTTP"),d.onreadystatechange=function(){d.readyState===4&&(d.status===200?b&&b(d):c&&c(a))},d.open("GET",a,!0),d.send(null),d},a.utils.load=function(a,b,c){a.onreadystatechange=function(){a.readyState===4&&(a.status===200?b&&b():c&&c())}},a.utils.find=function(a,b){return a.getElementsByTagName(b)},a.utils.append=function(a,b){a.appendChild(b)},a.utils.isIE=function(){return typeof window.ActiveXObject!="undefined"},a.utils.isLegacyAndroid=function(){var a=navigator.userAgent.toLowerCase();return a.match(/android 2.[012]/i)!==null},a.utils.isIOS=function(){var a=navigator.userAgent.toLowerCase();return a.match(/iP(hone|ad)/i)!==null},a.utils.getFirstPlaylistItemFromConfig=function(a){var b={},c;return a.playlist&&a.playlist.length?c=a.playlist[0]:c=a,b.file=c.file,b.levels=c.levels,b.streamer=c.streamer,b.playlistfile=c.playlistfile,b.file&&b.file.toLowerCase().indexOf("youtube.com")>-1&&(b.provider="youtube"),b.streamer&&b.streamer.toLowerCase().indexOf("rtmp://")==0&&(b.provider="rtmp"),c.type?b.provider=c.type.toLowerCase():c.provider&&(b.provider=c.provider.toLowerCase()),b},a.utils.getOuterHTML=function(a){if(a.outerHTML)return a.outerHTML;var b=a.parentNode,c=document.createElement(b.tagName),d=document.createElement(a.tagName);b.replaceChild(d,a),c.appendChild(a);var e=c.innerHTML;return b.replaceChild(a,d),e},a.utils.setOuterHTML=function(a,b){if(a.outerHTML)a.outerHTML=b;else{var c=document.createElement("div");c.innerHTML=b;var d=document.createRange();d.selectNodeContents(c);var e=d.extractContents();a.parentNode.insertBefore(e,a),a.parentNode.removeChild(a)}},a.utils.hasFlash=function(){return typeof navigator.plugins!="undefined"&&typeof navigator.plugins["Shockwave Flash"]!="undefined"||typeof window.ActiveXObject!="undefined"},a.utils.getPluginName=function(a){return a.lastIndexOf("/")>=0&&(a=a.substring(a.lastIndexOf("/")+1,a.length)),a.lastIndexOf("-")>=0&&(a=a.substring(0,a.lastIndexOf("-"))),a.lastIndexOf(".swf")>=0&&(a=a.substring(0,a.lastIndexOf(".swf"))),a.lastIndexOf(".js")>=0&&(a=a.substring(0,a.lastIndexOf(".js"))),a},a.utils.getAbsolutePath=function(a,c){c===undefined&&(c=document.location.href);if(a===undefined)return undefined;if(b(a))return a;var d=c.substring(0,c.indexOf("://")+3),e=c.substring(d.length,c.indexOf("/",d.length+1)),f;if(a.indexOf("/")===0)f=a.split("/");else{var g=c.split("?")[0];g=g.substring(d.length+e.length+1,g.lastIndexOf("/")),f=g.split("/").concat(a.split("/"))}var h=[];for(var i=0;i<f.length;i++){if(!f[i]||f[i]===undefined||f[i]==".")continue;f[i]==".."?h.pop():h.push(f[i])}return d+e+"/"+h.join("/")},a.utils.pluginPathType={ABSOLUTE:"ABSOLUTE",RELATIVE:"RELATIVE",CDN:"CDN"},a.utils.getPluginPathType=function(b){if(typeof b!="string")return;b=b.split("?")[0];var c=b.indexOf("://");if(c>0)return a.utils.pluginPathType.ABSOLUTE;var d=b.indexOf("/"),e=a.utils.extension(b);return c<0&&d<0&&(!e||!isNaN(e))?a.utils.pluginPathType.CDN:a.utils.pluginPathType.RELATIVE},a.utils.mapEmpty=function(a){for(var b in a)return!1;return!0},a.utils.mapLength=function(a){var b=0;for(var c in a)b++;return b},a.utils.log=function(a,b){typeof console!="undefined"&&typeof console.log!="undefined"&&(b?console.log(a,b):console.log(a))},a.utils.css=function(b,c,d){if(b!==undefined)for(var e in c)try{if(typeof c[e]=="undefined")continue;if(typeof c[e]=="number"&&e!="zIndex"&&e!="opacity"){if(isNaN(c[e]))continue;e.match(/color/i)?c[e]="#"+a.utils.strings.pad(c[e].toString(16),6):c[e]=Math.ceil(c[e])+"px"}b.style[e]=c[e]}catch(f){}},a.utils.isYouTube=function(a){return a.indexOf("youtube.com")>-1},a.utils.getYouTubeId=function(a){a.indexOf(!1)},a.utils.transform=function(a,b){a.style.webkitTransform=b,a.style.MozTransform=b,a.style.OTransform=b},a.utils.stretch=function(b,c,d,e,f,g){if(typeof d=="undefined"||typeof e=="undefined"||typeof f=="undefined"||typeof g=="undefined")return;var h=d/f,i=e/g,j=0,k=0;c.style.overflow="hidden",a.utils.transform(c,"");var l={};switch(b.toUpperCase()){case a.utils.stretching.NONE:l.width=f,l.height=g;break;case a.utils.stretching.UNIFORM:h>i?(l.width=f*i,l.height=g*i):(l.width=f*h,l.height=g*h);break;case a.utils.stretching.FILL:h>i?(l.width=f*h,l.height=g*h):(l.width=f*i,l.height=g*i);break;case a.utils.stretching.EXACTFIT:a.utils.transform(c,["scale(",h,",",i,")"," translate(0px,0px)"].join("")),l.width=f,l.height=g;break;default:}l.top=(e-l.height)/2,l.left=(d-l.width)/2,a.utils.css(c,l)},a.utils.stretching={NONE:"NONE",FILL:"FILL",UNIFORM:"UNIFORM",EXACTFIT:"EXACTFIT"}}(jwplayer),function(a){a.events=function(){},a.events.COMPLETE="COMPLETE",a.events.ERROR="ERROR"}(jwplayer),function(jwplayer){jwplayer.events.eventdispatcher=function(debug){var _debug=debug,_listeners,_globallisteners;this.resetEventListeners=function(){_listeners={},_globallisteners=[]},this.resetEventListeners(),this.addEventListener=function(type,listener,count){try{_listeners[type]===undefined&&(_listeners[type]=[]),typeof listener=="string"&&eval("listener = "+listener),_listeners[type].push({listener:listener,count:count})}catch(err){jwplayer.utils.log("error",err)}return!1},this.removeEventListener=function(a,b){try{for(var c=0;c<_listeners[a].length;c++)if(_listeners[a][lisenterIndex].toString()==b.toString()){_listeners[a].slice(lisenterIndex,lisenterIndex+1);break}}catch(d){jwplayer.utils.log("error",d)}return!1},this.addGlobalListener=function(listener,count){try{typeof listener=="string"&&eval("listener = "+listener),_globallisteners.push({listener:listener,count:count})}catch(err){jwplayer.utils.log("error",err)}return!1},this.removeGlobalListener=function(a){try{for(var b=0;b<_globallisteners.length;b++)if(_globallisteners[b].toString()==a.toString()){_globallisteners.slice(b,b+1);break}}catch(c){jwplayer.utils.log("error",c)}return!1},this.sendEvent=function(a,b){b===undefined&&(b={}),_debug&&jwplayer.utils.log(a,b);if(typeof _listeners[a]!="undefined")for(var c=0;c<_listeners[a].length;c++){try{_listeners[a][c].listener(b)}catch(d){jwplayer.utils.log("There was an error while handling a listener: "+d.toString(),_listeners[a][c].listener)}_listeners[a][c].count===1?delete _listeners[a][c]:_listeners[a][c].count>0&&(_listeners[a][c].count=_listeners[a][c].count-1)}for(var e=0;e<_globallisteners.length;e++){try{_globallisteners[e].listener(b)}catch(d){jwplayer.utils.log("There was an error while handling a listener: "+d.toString(),_globallisteners[e].listener)}_globallisteners[e].count===1?delete _globallisteners[e]:_globallisteners[e].count>0&&(_globallisteners[e].count=_globallisteners[e].count-1)}}}}(jwplayer),function(a){var b={};a.utils.animations=function(){},a.utils.animations.transform=function(a,b){a.style.webkitTransform=b,a.style.MozTransform=b,a.style.OTransform=b},a.utils.animations.transformOrigin=function(a,b){a.style.webkitTransformOrigin=b,a.style.MozTransformOrigin=b,a.style.OTransformOrigin=b},a.utils.animations.rotate=function(b,c){a.utils.animations.transform(b,["rotate(",c,"deg)"].join(""))},a.utils.cancelAnimation=function(a){delete b[a.id]},a.utils.fadeTo=function(c,d,e,f,g,h){if(b[c.id]!=h&&h!==undefined)return;var i=(new Date).getTime();h>i&&setTimeout(function(){a.utils.fadeTo(c,d,e,f,0,h)},h-i),c.style.display="block",f===undefined&&(f=c.style.opacity===""?1:c.style.opacity);if(c.style.opacity==d&&c.style.opacity!==""&&h!==undefined){d===0&&(c.style.display="none");return}h===undefined&&(h=i,b[c.id]=h),g===undefined&&(g=0);var j=(i-h)/(e*1e3);j=j>1?1:j;var k=d-f,l=f+j*k;l>1?l=1:l<0&&(l=0),c.style.opacity=l;if(g>0){b[c.id]=h+g*1e3,a.utils.fadeTo(c,d,e,f,0,b[c.id]);return}setTimeout(function(){a.utils.fadeTo(c,d,e,f,0,h)},10)}}(jwplayer),function(a){a.utils.arrays=function(){},a.utils.arrays.indexOf=function(a,b){for(var c=0;c<a.length;c++)if(a[c]==b)return c;return-1},a.utils.arrays.remove=function(b,c){var d=a.utils.arrays.indexOf(b,c);d>-1&&b.splice(d,1)}}(jwplayer),function(a){a.utils.extensionmap={"3gp":{html5:"video/3gpp",flash:"video"},"3gpp":{html5:"video/3gpp"},"3g2":{html5:"video/3gpp2",flash:"video"},"3gpp2":{html5:"video/3gpp2"},flv:{flash:"video"},f4a:{html5:"audio/mp4"},f4b:{html5:"audio/mp4",flash:"video"},f4p:{html5:"video/mp4",flash:"video"},f4v:{html5:"video/mp4",flash:"video"},mov:{html5:"video/quicktime",flash:"video"},m4a:{html5:"audio/mp4",flash:"video"},m4b:{html5:"audio/mp4"},m4p:{html5:"audio/mp4"},m4v:{html5:"video/mp4",flash:"video"},mkv:{html5:"video/x-matroska"},mp4:{html5:"video/mp4",flash:"video"},rbs:{flash:"sound"},sdp:{html5:"application/sdp",flash:"video"},vp6:{html5:"video/x-vp6"},aac:{html5:"audio/aac",flash:"video"},mp3:{flash:"sound"},ogg:{html5:"audio/ogg"},ogv:{html5:"video/ogg"},webm:{html5:"video/webm"},m3u8:{html5:"audio/x-mpegurl"},gif:{flash:"image"},jpeg:{flash:"image"},jpg:{flash:"image"},swf:{flash:"image"},png:{flash:"image"}}}(jwplayer),function(a){function d(c,d){return d===undefined?d=b[c]:a.utils.extend(d,b[c]),d}function e(a,b){if(c[a.tagName.toLowerCase()]&&b===undefined)return c[a.tagName.toLowerCase()](a);b=d("element",b);var e={};for(var f in b)if(f!="length"){var g=a.getAttribute(f);g!==""&&g!==undefined&&g!==null&&(e[b[f]]=a.getAttribute(f))}var h=a.style["#background-color"];return h&&h!="transparent"&&h!="rgba(0, 0, 0, 0)"&&(e.screencolor=h),e}function f(b,c){c=d("media",c);var f=[],h=a.utils.selectors("source",b);for(var i in h)isNaN(i)||f.push(g(h[i]));var j=e(b,c);return j.file!==undefined&&(f[0]={file:j.file}),j.levels=f,j}function g(a,b){b=d("source",b);var c=e(a,b);return c.width=c.width?c.width:0,c.bitrate=c.bitrate?c.bitrate:0,c}function h(a,b){b=d("video",b);var c=f(a,b);return c}a.utils.mediaparser=function(){};var b={element:{width:"width",height:"height",id:"id","class":"className",name:"name"},media:{src:"file",preload:"preload",autoplay:"autostart",loop:"repeat",controls:"controls"},source:{src:"file",type:"type",media:"media","data-jw-width":"width","data-jw-bitrate":"bitrate"},video:{poster:"image"}},c={};a.utils.mediaparser.parseMedia=function(a){return e(a)},c.media=f,c.audio=f,c.source=g,c.video=h}(jwplayer),function(a){a.utils.loaderstatus={NEW:"NEW",LOADING:"LOADING",ERROR:"ERROR",COMPLETE:"COMPLETE"},a.utils.scriptloader=function(b){var c=a.utils.loaderstatus.NEW,d=new a.events.eventdispatcher;a.utils.extend(this,d),this.load=function(){if(c==a.utils.loaderstatus.NEW){c=a.utils.loaderstatus.LOADING;var e=document.createElement("script");e.onload=function(b){c=a.utils.loaderstatus.COMPLETE,d.sendEvent(a.events.COMPLETE)},e.onerror=function(b){c=a.utils.loaderstatus.ERROR,d.sendEvent(a.events.ERROR)},e.onreadystatechange=function(){if(e.readyState=="loaded"||e.readyState=="complete")c=a.utils.loaderstatus.COMPLETE,d.sendEvent(a.events.COMPLETE)},document.getElementsByTagName("head")[0].appendChild(e),e.src=b}},this.getStatus=function(){return c}}}(jwplayer),function(a){a.utils.selectors=function(b,c){c===undefined&&(c=document),b=a.utils.strings.trim(b);var d=b.charAt(0);return d=="#"?c.getElementById(b.substr(1)):d=="."?c.getElementsByClassName?c.getElementsByClassName(b.substr(1)):a.utils.selectors.getElementsByTagAndClass("*",b.substr(1)):b.indexOf(".")>0?(selectors=b.split("."),a.utils.selectors.getElementsByTagAndClass(selectors[0],selectors[1])):c.getElementsByTagName(b)},a.utils.selectors.getElementsByTagAndClass=function(a,b,c){elements=[],c===undefined&&(c=document);var d=c.getElementsByTagName(a);for(var e=0;e<d.length;e++)if(d[e].className!==undefined){var f=d[e].className.split(" ");for(var g=0;g<f.length;g++)f[g]==b&&elements.push(d[e])}return elements}}(jwplayer),function(a){a.utils.strings=function(){},a.utils.strings.trim=function(a){return a.replace(/^\s*/,"").replace(/\s*$/,"")},a.utils.strings.pad=function(a,b,c){c||(c="0");while(a.length<b)a=c+a;return a},a.utils.strings.serialize=function(a){return a==null?null:a=="true"?!0:a=="false"?!1:isNaN(Number(a))||a.length>5||a.length==0?a:Number(a)},a.utils.strings.seconds=function(a){a=a.replace(",",".");var b=a.split(":"),c=0;return a.substr(-1)=="s"?c=Number(a.substr(0,a.length-1)):a.substr(-1)=="m"?c=Number(a.substr(0,a.length-1))*60:a.substr(-1)=="h"?c=Number(a.substr(0,a.length-1))*3600:b.length>1?(c=Number(b[b.length-1]),c+=Number(b[b.length-2])*60,b.length==3&&(c+=Number(b[b.length-3])*3600)):c=Number(a),c},a.utils.strings.xmlAttribute=function(a,b){for(var c in a.attributes)if(a.attributes[c].name&&a.attributes[c].name.toLowerCase()==b.toLowerCase())return a.attributes[c].value.toString();return""}}(jwplayer),function(a){function c(a){var c=["true","false","t","f"];return c.toString().indexOf(a.toLowerCase().replace(" ",""))>=0?"boolean":b.test(a)?"color":!isNaN(parseInt(a,10))&&parseInt(a,10).toString().length==a.length?"integer":!isNaN(parseFloat(a))&&parseFloat(a).toString().length==a.length?"float":"string"}function d(a,b){if(b===null)return a;switch(b){case"color":if(a.length>0)return e(a);return null;case"integer":return parseInt(a,10);case"float":return parseFloat(a);case"boolean":if(a.toLowerCase()=="true")return!0;if(a=="1")return!0;return!1}return a}function e(a){switch(a.toLowerCase()){case"blue":return parseInt("0000FF",16);case"green":return parseInt("00FF00",16);case"red":return parseInt("FF0000",16);case"cyan":return parseInt("00FFFF",16);case"magenta":return parseInt("FF00FF",16);case"yellow":return parseInt("FFFF00",16);case"black":return parseInt("000000",16);case"white":return parseInt("FFFFFF",16);default:return a=a.replace(/(#|0x)?([0-9A-F]{3,6})$/gi,"$2"),a.length==3&&(a=a.charAt(0)+a.charAt(0)+a.charAt(1)+a.charAt(1)+a.charAt(2)+a.charAt(2)),parseInt(a,16)}return parseInt("000000",16)}var b=new RegExp(/^(#|0x)[0-9a-fA-F]{3,6}/);a.utils.typechecker=function(a,b){return b=b===null?c(a):b,d(a,b)}}(jwplayer),function(a){var b={},c={};a.plugins=function(){},a.plugins.loadPlugins=function(d,e){return c[d]=new a.plugins.pluginloader(new a.plugins.model(b),e),c[d]},a.plugins.registerPlugin=function(d,e,f){if(b[d])b[d].registerPlugin(d,e,f);else{a.utils.log("A plugin ("+d+") was registered with the player that was not loaded. Please check your configuration.");for(var g in c)c[g].pluginFailed()}}}(jwplayer),function(a){a.plugins.model=function(b){this.addPlugin=function(c){var d=a.utils.getPluginName(c);return b[d]||(b[d]=new a.plugins.plugin(c)),b[d]}}}(jwplayer),function(a){a.plugins.pluginmodes={FLASH:"FLASH",JAVASCRIPT:"JAVASCRIPT",HYBRID:"HYBRID"},a.plugins.plugin=function(b){function i(){switch(a.utils.getPluginPathType(b)){case a.utils.pluginPathType.ABSOLUTE:return b;case a.utils.pluginPathType.RELATIVE:return a.utils.getAbsolutePath(b,window.location.href);case a.utils.pluginPathType.CDN:var d=a.utils.getPluginName(b);return c+"/"+a.version.split(".")[0]+"/"+d+"/"+d+".js"}}function j(b){g=setTimeout(function(){d=a.utils.loaderstatus.COMPLETE,h.sendEvent(a.events.COMPLETE)},1e3)}function k(b){d=a.utils.loaderstatus.ERROR,h.sendEvent(a.events.ERROR)}var c="http://lp.longtailvideo.com",d=a.utils.loaderstatus.NEW,e,f,g,h=new a.events.eventdispatcher;a.utils.extend(this,h),this.load=function(){if(d==a.utils.loaderstatus.NEW){if(b.lastIndexOf(".swf")>0){e=b,d=a.utils.loaderstatus.COMPLETE,h.sendEvent(a.events.COMPLETE);return}d=a.utils.loaderstatus.LOADING;var c=new a.utils.scriptloader(i());c.addEventListener(a.events.COMPLETE,j),c.addEventListener(a.events.ERROR,k),c.load()}},this.registerPlugin=function(b,c,i){g&&(clearTimeout(g),g=undefined),c&&i?(e=i,f=c):typeof c=="string"?e=c:typeof c=="function"?f=c:!c&&!i&&(e=b),d=a.utils.loaderstatus.COMPLETE,h.sendEvent(a.events.COMPLETE)},this.getStatus=function(){return d},this.getPluginName=function(){return a.utils.getPluginName(b)},this.getFlashPath=function(){if(e)switch(a.utils.getPluginPathType(e)){case a.utils.pluginPathType.ABSOLUTE:return e;case a.utils.pluginPathType.RELATIVE:if(b.lastIndexOf(".swf")>0)return a.utils.getAbsolutePath(e,window.location.href);return a.utils.getAbsolutePath(e,i());case a.utils.pluginPathType.CDN:if(e.indexOf("-")>-1)return e+"h";return e+"-h"}return null},this.getJS=function(){return f},this.getPluginmode=function(){if(typeof e!="undefined"&&typeof f!="undefined")return a.plugins.pluginmodes.HYBRID;if(typeof e!="undefined")return a.plugins.pluginmodes.FLASH;if(typeof f!="undefined")return a.plugins.pluginmodes.JAVASCRIPT},this.getNewInstance=function(a,b,c){return new f(a,b,c)},this.getURL=function(){return b}}}(jwplayer),function(a){a.plugins.pluginloader=function(b,c){function i(){g||(g=!0,e=a.utils.loaderstatus.COMPLETE,h.sendEvent(a.events.COMPLETE))}function j(){if(!g){var b=0;for(plugin in d)d[plugin].getStatus()==a.utils.loaderstatus.LOADING&&b++;b==0&&i()}}var d={},e=a.utils.loaderstatus.NEW,f=!1,g=!1,h=new a.events.eventdispatcher;a.utils.extend(this,h),this.setupPlugins=function(a,b,c){var e={length:0,plugins:{}},f={length:0,plugins:{}};for(var g in d){var h=d[g].getPluginName();d[g].getFlashPath()&&(e.plugins[d[g].getFlashPath()]=b.plugins[g],e.plugins[d[g].getFlashPath()].pluginmode=d[g].getPluginmode(),e.length++);if(d[g].getJS()){var i=document.createElement("div");i.id=a.id+"_"+h,i.style.position="absolute",i.style.zIndex=f.length+10,f.plugins[h]=d[g].getNewInstance(a,b.plugins[g],i),f.length++,typeof f.plugins[h].resize!="undefined"&&(a.onReady(c(f.plugins[h],i,!0)),a.onResize(c(f.plugins[h],i)))}}return a.plugins=f.plugins,e},this.load=function(){e=a.utils.loaderstatus.LOADING,f=!0;for(var g in c)d[g]=b.addPlugin(g),d[g].addEventListener(a.events.COMPLETE,j),d[g].addEventListener(a.events.ERROR,j),d[g].load();f=!1,j()},this.pluginFailed=function(){i()},this.getStatus=function(){return e}}}(jwplayer),function(a){var b=[];a.api=function(b){function m(a){return function(b,c,d,e){var g;c?(l[b]=c,g="jwplayer('"+a+"').callback('"+b+"')"):!c&&l[b]&&delete l[b],f.jwDockSetButton(b,g,d,e)}}function n(a){return function(b){var c=b.newstate,e=b.oldstate;if(c==a){var f=d[c];if(f)for(var g=0;g<f.length;g++)typeof f[g]=="function"&&f[g].call(this,{oldstate:e,newstate:c})}}}function o(b,c){var d=a.utils.extend({},c);b==a.api.events.JWPLAYER_FULLSCREEN&&!d.fullscreen?(d.fullscreen=d.message=="true"?!0:!1,delete d.message):typeof d.data=="object"&&(d=a.utils.extend(d,d.data),delete d.data);var e=["position","duration","offset"];for(var f in e)d[e[f]]&&(d[e[f]]=Math.round(d[e[f]]*1e3)/1e3);return d}function p(a,b,c){var d=[];b||(b=0),c||(c=a.length-1);for(var e=b;e<=c;e++)d.push(a[e]);return d}this.container=b,this.id=b.id;var c={},d={},e=[],f=undefined,g=!1,h=[],i=a.utils.getOuterHTML(b),j={},k=0,l={};return this.getBuffer=function(){return this.callInternal("jwGetBuffer")},this.getContainer=function(){return this.container},this.getPlugin=function(a){var b=this.callInternal;return a=="dock"?{setButton:m(this.id)}:this.plugins[a]},this.callback=function(a){if(l[a])return l[a]()},this.getDuration=function(){return this.callInternal("jwGetDuration")},this.getFullscreen=function(){return this.callInternal("jwGetFullscreen")},this.getHeight=function(){return this.callInternal("jwGetHeight")},this.getLockState=function(){return this.callInternal("jwGetLockState")},this.getMeta=function(){return this.getItemMeta()},this.getMute=function(){return this.callInternal("jwGetMute")},this.getPlaylist=function(){var a=this.callInternal("jwGetPlaylist");for(var b=0;b<a.length;b++)a[b].index===undefined&&(a[b].index=b);return a},this.getPlaylistItem=function(a){return a===undefined&&(a=this.getCurrentItem()),this.getPlaylist()[a]},this.getPosition=function(){return this.callInternal("jwGetPosition")},this.getRenderingMode=function(){return this.renderingMode},this.getState=function(){return this.callInternal("jwGetState")},this.getVolume=function(){return this.callInternal("jwGetVolume")},this.getWidth=function(){return this.callInternal("jwGetWidth")},this.setFullscreen=function(a){return a===undefined?this.callInternal("jwSetFullscreen",!this.callInternal("jwGetFullscreen")):this.callInternal("jwSetFullscreen",a),this},this.setMute=function(a){return a===undefined?this.callInternal("jwSetMute",!this.callInternal("jwGetMute")):this.callInternal("jwSetMute",a),this},this.lock=function(){return this},this.unlock=function(){return this},this.load=function(a){return this.callInternal("jwLoad",a),this},this.playlistItem=function(a){return this.callInternal("jwPlaylistItem",a),this},this.playlistPrev=function(){return this.callInternal("jwPlaylistPrev"),this},this.playlistNext=function(){return this.callInternal("jwPlaylistNext"),this},this.resize=function(a,b){return this.renderingMode=="html5"?f.jwResize(a,b):(this.container.width=a,this.container.height=b),this},this.play=function(b){return typeof b=="undefined"?(b=this.getState(),b==a.api.events.state.PLAYING||b==a.api.events.state.BUFFERING?this.callInternal("jwPause"):this.callInternal("jwPlay")):this.callInternal("jwPlay",b),this},this.pause=function(b){return typeof b=="undefined"?(b=this.getState(),b==a.api.events.state.PLAYING||b==a.api.events.state.BUFFERING?this.callInternal("jwPause"):this.callInternal("jwPlay")):this.callInternal("jwPause",b),this},this.stop=function(){return this.callInternal("jwStop"),this},this.seek=function(a){return this.callInternal("jwSeek",a),this},this.setVolume=function(a){return this.callInternal("jwSetVolume",a),this},this.onBufferChange=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_BUFFER,b)},this.onBufferFull=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_BUFFER_FULL,b)},this.onError=function(b){return this.eventListener(a.api.events.JWPLAYER_ERROR,b)},this.onFullscreen=function(b){return this.eventListener(a.api.events.JWPLAYER_FULLSCREEN,b)},this.onMeta=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_META,b)},this.onMute=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_MUTE,b)},this.onPlaylist=function(b){return this.eventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,b)},this.onPlaylistItem=function(b){return this.eventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,b)},this.onReady=function(b){return this.eventListener(a.api.events.API_READY,b)},this.onResize=function(b){return this.eventListener(a.api.events.JWPLAYER_RESIZE,b)},this.onComplete=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_COMPLETE,b)},this.onTime=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_TIME,b)},this.onVolume=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_VOLUME,b)},this.onBuffer=function(b){return this.stateListener(a.api.events.state.BUFFERING,b)},this.onPause=function(b){return this.stateListener(a.api.events.state.PAUSED,b)},this.onPlay=function(b){return this.stateListener(a.api.events.state.PLAYING,b)},this.onIdle=function(b){return this.stateListener(a.api.events.state.IDLE,b)},this.remove=function(){c={},h=[],a.utils.getOuterHTML(this.container)!=i&&a.api.destroyPlayer(this.id,i)},this.setup=function(b){if(a.embed){var c=this.id;this.remove();var d=a(c);return d.config=b,new a.embed(d)}return this},this.registerPlugin=function(b,c,d){a.plugins.registerPlugin(b,c,d)},this.setPlayer=function(a,b){f=a,this.renderingMode=b},this.stateListener=function(b,c){return d[b]||(d[b]=[],this.eventListener(a.api.events.JWPLAYER_PLAYER_STATE,n(b))),d[b].push(c),this},this.addInternalListener=function(a,b){a.jwAddEventListener(b,'function(dat) { jwplayer("'+this.id+'").dispatchEvent("'+b+'", dat); }')},this.eventListener=function(a,b){return c[a]||(c[a]=[],f&&g&&this.addInternalListener(f,a)),c[a].push(b),this},this.dispatchEvent=function(a){if(c[a]){var b=o(a,arguments[1]);for(var d=0;d<c[a].length;d++)typeof c[a][d]=="function"&&c[a][d].call(this,b)}},this.callInternal=function(a,b){if(g)return typeof f!="undefined"&&typeof f[a]=="function"?b!==undefined?f[a](b):f[a]():null;h.push({method:a,parameters:b})},this.playerReady=function(b){g=!0,f||this.setPlayer(document.getElementById(b.id)),this.container=document.getElementById(this.id);for(var d in c)this.addInternalListener(f,d);this.eventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,function(a){a.index!==undefined&&(k=a.index),j={}}),this.eventListener(a.api.events.JWPLAYER_MEDIA_META,function(b){a.utils.extend(j,b.metadata)}),this.dispatchEvent(a.api.events.API_READY);while(h.length>0){var e=h.shift();this.callInternal(e.method,e.parameters)}},this.getItemMeta=function(){return j},this.getCurrentItem=function(){return k},this},a.api.selectPlayer=function(b){var c;b===undefined&&(b=0),b.nodeType?c=b:typeof b=="string"&&(c=document.getElementById(b));if(c){var d=a.api.playerById(c.id);return d?d:a.api.addPlayer(new a.api(c))}return typeof b=="number"?a.getPlayers()[b]:null},a.api.events={API_READY:"jwplayerAPIReady",JWPLAYER_READY:"jwplayerReady",JWPLAYER_FULLSCREEN:"jwplayerFullscreen",JWPLAYER_RESIZE:"jwplayerResize",JWPLAYER_ERROR:"jwplayerError",JWPLAYER_MEDIA_BUFFER:"jwplayerMediaBuffer",JWPLAYER_MEDIA_BUFFER_FULL:"jwplayerMediaBufferFull",JWPLAYER_MEDIA_ERROR:"jwplayerMediaError",JWPLAYER_MEDIA_LOADED:"jwplayerMediaLoaded",JWPLAYER_MEDIA_COMPLETE:"jwplayerMediaComplete",JWPLAYER_MEDIA_TIME:"jwplayerMediaTime",JWPLAYER_MEDIA_VOLUME:"jwplayerMediaVolume",JWPLAYER_MEDIA_META:"jwplayerMediaMeta",JWPLAYER_MEDIA_MUTE:"jwplayerMediaMute",JWPLAYER_PLAYER_STATE:"jwplayerPlayerState",JWPLAYER_PLAYLIST_LOADED:"jwplayerPlaylistLoaded",JWPLAYER_PLAYLIST_ITEM:"jwplayerPlaylistItem"},a.api.events.state={BUFFERING:"BUFFERING",IDLE:"IDLE",PAUSED:"PAUSED",PLAYING:"PLAYING"},a.api.playerById=function(a){for(var c=0;c<b.length;c++)if(b[c].id==a)return b[c];return null},a.api.addPlayer=function(a){for(var c=0;c<b.length;c++)if(b[c]==a)return a;return b.push(a),a},a.api.destroyPlayer=function(c,d){var e=-1;for(var f=0;f<b.length;f++)if(b[f].id==c){e=f;continue}if(e>=0){var g=document.getElementById(b[e].id);document.getElementById(b[e].id+"_wrapper")&&(g=document.getElementById(b[e].id+"_wrapper"));if(g)if(d)a.utils.setOuterHTML(g,d);else{var h=document.createElement("div"),i=g.id;g.id.indexOf("_wrapper")==g.id.length-8&&(newID=g.id.substring(0,g.id.length-8)),h.setAttribute("id",i),g.parentNode.replaceChild(h,g)}b.splice(e,1)}return null},a.getPlayers=function(){return b.slice(0)}}(jwplayer);var _userPlayerReady=typeof playerReady=="function"?playerReady:undefined;playerReady=function(a){var b=jwplayer.api.playerById(a.id);b&&b.playerReady(a),_userPlayerReady&&_userPlayerReady.call(this,a)},function(a){function b(){if(!document.body)return setTimeout(b,15);var c=a.utils.selectors.getElementsByTagAndClass("video","jwplayer");for(var d=0;d<c.length;d++){var e=c[d];a(e.id).setup({})}}a.embed=function(b){function g(a,b){for(var c in b)typeof a[c]=="function"&&a[c].call(a,b[c])}function h(){if(f.getStatus()==a.utils.loaderstatus.COMPLETE){for(var c=0;c<e.modes.length;c++)if(e.modes[c].type&&a.embed[e.modes[c].type]){var d=e;e.modes[c].config&&(d=a.utils.extend(a.utils.clone(e),e.modes[c].config));var h=new a.embed[e.modes[c].type](document.getElementById(b.id),e.modes[c],d,f,b);if(h.supportsConfig())return h.embed(),g(b,e.events),b}a.utils.log("No suitable players found"),new a.embed.logo(a.utils.extend({hide:!0},e.components.logo),"none",b.id)}}var c={width:400,height:300,components:{controlbar:{position:"over"}}},d=a.utils.mediaparser.parseMedia(b.container),e=new a.embed.config(a.utils.extend(c,d,b.config),this),f=a.plugins.loadPlugins(b.id,e.plugins);return f.addEventListener(a.events.COMPLETE,h),f.addEventListener(a.events.ERROR,h),f.load(),b},b()}(jwplayer),function(a){function b(){return[{type:"flash",src:"/jwplayer/player.swf"},{type:"html5"},{type:"download"}]}function c(a){var b=a.toLowerCase(),c=["left","right","top","bottom"];for(var d=0;d<c.length;d++)if(b==c[d])return!0;return!1}function d(a){var b=!1;return b=a instanceof Array||typeof a=="object"&&!a.position&&!a.size,b}a.embed.config=function(c,e){var f=a.utils.extend({},c),g;d(f.playlist)&&(g=f.playlist,delete f.playlist);for(var h in f)if(h.indexOf(".")>-1){var i=h.split("."),j=f;for(var k=0;k<i.length;k++)k==i.length-1?a.utils.typeOf(j)=="object"&&(j[i[k]]=f[h],delete f[h]):(j[i[k]]===undefined&&(j[i[k]]={}),j=j[i[k]])}if(typeof f.plugins=="string"){var l=f.plugins.split(",");typeof f.plugins!="object"&&(f.plugins={});for(var m=0;m<l.length;m++){var n=a.utils.getPluginName(l[m]);typeof f[n]=="object"?(f.plugins[l[m]]=f[n],delete f[n]):f.plugins[l[m]]={}}}var o=["playlist","dock","controlbar"];for(var p=0;p<o.length;p++)typeof f[o[p]]=="string"?(f.components[o[p]]||(f.components[o[p]]={}),f.components[o[p]].position=f[o[p]],delete f[o[p]]):f[o[p]]&&(f.components[o[p]]=f[o[p]],delete f[o[p]]),typeof f[o[p]+"size"]!="undefined"&&(f.components[o[p]]||(f.components[o[p]]={}),f.components[o[p]].size=f[o[p]+"size"],delete f[o[p]+"size"]);typeof f.icons!="undefined"&&(f.components.display||(f.components.display={}),f.components.display.icons=f.icons,delete f.icons),f.players&&(f.modes=f.players,delete f.players);var q;return f.flashplayer&&!f.modes?(q=b(),q[0].src=f.flashplayer,delete f.flashplayer):f.modes?(typeof f.modes=="string"?(q=b(),q[0].src=f.modes):f.modes instanceof Array?q=f.modes:typeof f.modes=="object"&&f.modes.type&&(q=[f.modes]),delete f.modes):q=b(),f.modes=q,g&&(f.playlist=g),f}}(jwplayer),function(a){a.embed.download=function(b,c,d,e,f){function g(b,c,d){if(d)return!1;var e=["image","sound","youtube","http"];if(c&&e.toString().indexOf(c)>-1)return!0;if(!c||c&&c=="video"){var f=a.utils.extension(b);if(f&&a.utils.extensionmap[f])return!0}return!1}this.embed=function(){function o(a){_imageWidth=e.display_image.naturalWidth,_imageHeight=e.display_image.naturalHeight,p()}function p(){a.utils.stretch(a.utils.stretching.UNIFORM,e.display_image,g,h,_imageWidth,_imageHeight)}var c=a.utils.extend({},d),e={},g=d.width?d.width:480;typeof g!="number"&&(g=parseInt(g,10));var h=d.height?d.height:320;typeof h!="number"&&(h=parseInt(h,10));var i,j,k,l={};d.playlist&&d.playlist.length?(l.file=d.playlist[0].file,j=d.playlist[0].image,l.levels=d.playlist[0].levels):(l.file=d.file,j=d.image,l.levels=d.levels),l.file?i=l.file:l.levels&&l.levels.length&&(i=l.levels[0].file),k=i?"pointer":"auto";var m={display:{style:{cursor:k,width:g,height:h,backgroundColor:"#000",position:"relative",textDecoration:"none",border:"none",display:"block"}},display_icon:{style:{cursor:k,position:"absolute",display:i?"block":"none",top:0,left:0,border:0,margin:0,padding:0,zIndex:3,width:50,height:50,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALdJREFUeNrs18ENgjAYhmFouDOCcQJGcARHgE10BDcgTOIosAGwQOuPwaQeuFRi2p/3Sb6EC5L3QCxZBgAAAOCorLW1zMn65TrlkH4NcV7QNcUQt7Gn7KIhxA+qNIR81spOGkL8oFJDyLJRdosqKDDkK+iX5+d7huzwM40xptMQMkjIOeRGo+VkEVvIPfTGIpKASfYIfT9iCHkHrBEzf4gcUQ56aEzuGK/mw0rHpy4AAACAf3kJMACBxjAQNRckhwAAAABJRU5ErkJggg==)"}},display_iconBackground:{style:{cursor:k,position:"absolute",display:i?"block":"none",top:(h-50)/2,left:(g-50)/2,border:0,width:50,height:50,margin:0,padding:0,zIndex:2,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEpJREFUeNrszwENADAIA7DhX8ENoBMZ5KR10EryckCJiIiIiIiIiIiIiIiIiIiIiIh8GmkRERERERERERERERERERERERGRHSPAAPlXH1phYpYaAAAAAElFTkSuQmCC)"}},display_image:{style:{width:g,height:h,display:j?"block":"none",position:"absolute",cursor:k,left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1,border:"none"}}},n=function(c,d,e){var f=document.createElement(c);return e?f.id=e:f.id=b.id+"_jwplayer_"+d,a.utils.css(f,m[d].style),f};e.display=n("a","display",b.id),i&&e.display.setAttribute("href",a.utils.getAbsolutePath(i)),e.display_image=n("img","display_image"),e.display_image.setAttribute("alt","Click to download..."),j&&e.display_image.setAttribute("src",a.utils.getAbsolutePath(j)),e.display_icon=n("div","display_icon"),e.display_iconBackground=n("div","display_iconBackground"),e.display.appendChild(e.display_image),e.display_iconBackground.appendChild(e.display_icon),e.display.appendChild(e.display_iconBackground),_css=a.utils.css,_hide=function(a){_css(a,{display:"none"})},e.display_image.onerror=function(a){_hide(e.display_image)},e.display_image.onload=o,b.parentNode.replaceChild(e.display,b);var q=d.plugins&&d.plugins.logo?d.plugins.logo:{};e.display.appendChild(new a.embed.logo(d.components.logo,"download",b.id)),f.container=document.getElementById(f.id),f.setPlayer(e.display,"download")},this.supportsConfig=function(){if(!d)return!0;var b=a.utils.getFirstPlaylistItemFromConfig(d);if(typeof b.file=="undefined"&&typeof b.levels=="undefined")return!0;if(b.file)return g(b.file,b.provider,b.playlistfile);if(b.levels&&b.levels.length)for(var c=0;c<b.levels.length;c++)if(b.levels[c].file&&g(b.levels[c].file,b.provider,b.playlistfile))return!0}}}(jwplayer),function(a){a.embed.flash=function(b,c,d,e,f){function g(a,b,c){var d=document.createElement("param");d.setAttribute("name",b),d.setAttribute("value",c),a.appendChild(d)}function h(b,c,d){return function(e){d&&document.getElementById(f.id+"_wrapper").appendChild(c);var g=document.getElementById(f.id).getPluginConfig("display");b.resize(g.width,g.height);var h={left:g.x,top:g.y};a.utils.css(c,h)}}function i(a){if(!a)return{};var b={};for(var c in a){var d=a[c];for(var e in d)b[c+"."+e]=d[e]}return b}function j(a,b){if(a[b]){var c=a[b];for(var d in c){var e=c[d];if(typeof e=="string")a[d]||(a[d]=e);else for(var f in e)a[d+"."+f]||(a[d+"."+f]=e[f])}delete a[b]}}function k(b){if(!b)return{};var c={},d=[];for(var e in b){var f=a.utils.getPluginName(e),g=b[e];d.push(e);for(var h in g)c[f+"."+h]=g[h]}return c.plugins=d.join(","),c}function l(a){var b=a.netstreambasepath?"":"netstreambasepath="+encodeURIComponent(window.location.href)+"&";for(var c in a)b+=c+"="+encodeURIComponent(a[c])+"&";return b.substring(0,b.length-1)}function m(a){return function(b){if(a.playlist)this.load(a.playlist);else if(a.levels){var c=this.getPlaylistItem(0);c||(c=a),c.image||(c.image=a.image),c.levels||(c.levels=a.levels),this.load(c)}}}this.embed=function(){(d.levels||d.playlist)&&f.onReady(m(d)),d.id=f.id;var i;b.id+"_wrapper"==b.parentNode.id?i=document.getElementById(b.id+"_wrapper"):(i=document.createElement("div"),i.id=b.id+"_wrapper",a.utils.wrap(b,i),i.style.position="relative");var n=a.utils.extend({},d),o=e.setupPlugins(f,n,h);o.length>0?a.utils.extend(n,k(o.plugins)):delete n.plugins;var p=n.width,q=n.height,r=["height","width","levels","playlist","modes","events"];for(var s=0;s<r.length;s++)delete n[r[s]];var t="opaque";n.wmode&&(t=n.wmode),j(n,"components"),j(n,"providers");var u="#000000",v;if(a.utils.isIE()){var w='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" bgcolor="'+u+'" width="'+p+'" height="'+q+'" id="'+b.id+'" name="'+b.id+'">';w+='<param name="movie" value="'+c.src+'">',w+='<param name="allowfullscreen" value="true">',w+='<param name="allowscriptaccess" value="always">',w+='<param name="seamlesstabbing" value="true">',w+='<param name="wmode" value="'+t+'">',w+='<param name="flashvars" value="'+l(n)+'">',w+="</object>",a.utils.setOuterHTML(b,w),v=document.getElementById(b.id)}else{var x=document.createElement("object");x.setAttribute("type","application/x-shockwave-flash"),x.setAttribute("data",c.src),x.setAttribute("width",p),x.setAttribute("height",q),x.setAttribute("bgcolor","#000000"),x.setAttribute("id",b.id),x.setAttribute("name",b.id),g(x,"allowfullscreen","true"),g(x,"allowscriptaccess","always"),g(x,"seamlesstabbing","true"),g(x,"wmode",t),g(x,"flashvars",l(n)),b.parentNode.replaceChild(x,b),v=x}f.container=v,f.setPlayer(v,"flash")},this.supportsConfig=function(){if(a.utils.hasFlash()){if(!d)return!0;var b=a.utils.getFirstPlaylistItemFromConfig(d);if(typeof b.file=="undefined"&&typeof b.levels=="undefined")return!0;if(b.file)return flashCanPlay(b.file,b.provider);if(b.levels&&b.levels.length)for(var c=0;c<b.levels.length;c++)if(b.levels[c].file&&flashCanPlay(b.levels[c].file,b.provider))return!0}return!1},flashCanPlay=function(b,c){var d=["video","http","sound","image"];if(c&&d.toString().indexOf(c<0))return!0;var e=a.utils.extension(b);return e?a.utils.extensionmap[e]!==undefined&&a.utils.extensionmap[e].flash===undefined?!1:!0:!0}}}(jwplayer),function(a){a.embed.html5=function(b,c,d,e,f){function g(a,c,d){return function(e){var f=document.getElementById(b.id+"_displayarea");d&&f.appendChild(c);var g=f.style;a.resize(parseInt(g.width.replace("px","")),parseInt(g.height.replace("px",""))),c.left=g.left,c.top=g.top}}this.embed=function(){if(!a.html5)return null;e.setupPlugins(f,d,g),b.innerHTML="";var c=a.utils.extend({screencolor:"0x000000"},d),h=["plugins","modes","events"];for(var i=0;i<h.length;i++)delete c[h[i]];c.levels&&!c.sources&&(c.sources=d.levels),c.skin&&c.skin.toLowerCase().indexOf(".zip")>0&&(c.skin=c.skin.replace(/\.zip/i,".xml"));var j=new(a.html5(b).setup)(c);f.container=document.getElementById(f.id),f.setPlayer(j,"html5")},this.supportsConfig=function(){var b=document.createElement("video");if(!!b.canPlayType){if(!d)return!0;var c=a.utils.getFirstPlaylistItemFromConfig(d);if(typeof c.file=="undefined"&&typeof c.levels=="undefined")return!0;if(c.file)return html5CanPlay(b,c.file,c.provider,c.playlistfile);if(c.levels&&c.levels.length)for(var e=0;e<c.levels.length;e++)if(c.levels[e].file&&html5CanPlay(b,c.levels[e].file,c.provider,c.playlistfile))return!0}return!1},html5CanPlay=function(b,c,d,e){if(e)return!1;if(d&&d=="youtube")return!0;if(d&&d!="video"&&d!="http")return!1;var f=a.utils.extension(c);return!f||a.utils.extensionmap[f]===undefined?!0:a.utils.extensionmap[f].html5===undefined?!1:a.utils.isLegacyAndroid()&&f.match(/m4v|mp4/)?!0:browserCanPlay(b,a.utils.extensionmap[f].html5)},browserCanPlay=function(a,b){return b?a.canPlayType(b):!0}}}(jwplayer),function(a){a.embed.logo=function(b,c,d){function h(){i(),k(),l()}function i(){if(e.prefix){var c=a.version.split(/\W/).splice(0,2).join("/");e.prefix.indexOf(c)<0&&(e.prefix+=c+"/")}g=a.utils.extend({},e,b)}function j(){var a={border:"none",textDecoration:"none",position:"absolute",cursor:"pointer",zIndex:10};a.display=g.hide?"none":"block";var b=g.position.toLowerCase().split("-");for(var c in b)a[b[c]]=g.margin;return a}function k(){f=document.createElement("img"),f.id=d+"_jwplayer_logo",f.style.display="none",f.onload=function(a){_css(f,j()),n()};if(!g.file)return;g.file.indexOf("http://")===0?f.src=g.file:f.src=g.prefix+g.file}function l(){g.link?(f.onmouseover=o,f.onmouseout=n,f.onclick=m):this.mouseEnabled=!1}function m(a){typeof a!="undefined"&&(a.preventDefault(),a.stopPropagation()),g.link&&window.open(g.link,"_blank");return}function n(a){g.link&&(f.style.opacity=g.out);return}function o(a){g.hide&&(f.style.opacity=g.over);return}var e={prefix:"http://l.longtailvideo.com/"+c+"/",file:"",link:"",margin:8,out:.5,over:1,timeout:3,hide:!1,position:"bottom-left"};_css=a.utils.css;var f,g;h();if(!g.file)return;return f}}(jwplayer),function(a){a.html5=function(b){var c=b;return this.setup=function(b){return a.utils.extend(this,new a.html5.api(c,b)),this},this}}(jwplayer),function(a){function c(b){return[a.html5.view.positions.TOP,a.html5.view.positions.RIGHT,a.html5.view.positions.BOTTOM,a.html5.view.positions.LEFT].toString().indexOf(b.toUpperCase())>-1}var b=a.utils.css;a.html5.view=function(d,e,f){function p(){function c(){return g.skin.getComponentSettings("display")&&g.skin.getComponentSettings("display").backgroundcolor?g.skin.getComponentSettings("display").backgroundcolor:parseInt("000000",16)}j=document.createElement("div"),j.id=h.id,j.className=h.className,_videowrapper=document.createElement("div"),_videowrapper.id=j.id+"_video_wrapper",h.id=j.id+"_video",b(j,{position:"relative",height:i.height,width:i.width,padding:0,backgroundColor:c(),zIndex:0}),b(h,{width:i.width,height:i.height,top:0,left:0,zIndex:1,margin:"auto",display:"block"}),b(_videowrapper,{overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0}),a.utils.wrap(h,j),a.utils.wrap(h,_videowrapper),m=document.createElement("div"),m.id=j.id+"_displayarea",j.appendChild(m)}function q(){for(var a=0;a<i.plugins.order.length;a++){var b=i.plugins.order[a];i.plugins.object[b].getDisplayElement!==undefined&&(i.plugins.object[b].height=s(i.plugins.object[b].getDisplayElement().style.height),i.plugins.object[b].width=s(i.plugins.object[b].getDisplayElement().style.width),i.plugins.config[b].currentPosition=i.plugins.config[b].position)}r()}function r(b){if(i.getMedia()!==undefined)for(var c=0;c<i.plugins.order.length;c++){var d=i.plugins.order[c];i.plugins.object[d].getDisplayElement!==undefined&&(i.getMedia().hasChrome()?i.plugins.config[d].currentPosition=a.html5.view.positions.NONE:i.plugins.config[d].currentPosition=i.plugins.config[d].position)}u(i.width,i.height)}function s(a){return typeof a=="string"?a===""?0:a.lastIndexOf("%")>-1?a:parseInt(a.replace("px",""),10):a}function t(b){switch(b.keyCode){case 27:g.jwGetFullscreen()&&g.jwSetFullscreen(!1);break;case 32:g.jwGetState()!=a.api.events.state.IDLE&&g.jwGetState()!=a.api.events.state.PAUSED?g.jwPause():g.jwPlay()}}function u(a,c){if(j.style.display=="none")return;var d=[].concat(i.plugins.order);d.reverse(),n=d.length+2;if(!i.fullscreen){i.width=a,i.height=c,k=a,l=c,b(m,{top:0,bottom:0,left:0,right:0,width:a,height:c}),b(j,{height:l,width:k});var e=v(w,d);e.length>0&&(n+=e.length,v(x,e,!0))}else navigator.vendor.indexOf("Apple")!==0&&v(y,d,!0);z()}function v(c,d,e){var f=[];for(var g=0;g<d.length;g++){var h=d[g];if(i.plugins.object[h].getDisplayElement!==undefined)if(i.plugins.config[h].currentPosition!=a.html5.view.positions.NONE){var j=c(h,n--);j?(i.plugins.object[h].resize(j.width,j.height),e&&(delete j.width,delete j.height),b(i.plugins.object[h].getDisplayElement(),j)):f.push(h)}else b(i.plugins.object[h].getDisplayElement(),{display:"none"})}return f}function w(a,b){if(i.plugins.object[a].getDisplayElement!==undefined&&i.plugins.config[a].position&&c(i.plugins.config[a].position)){i.plugins.object[a].getDisplayElement().parentNode===null&&j.appendChild(i.plugins.object[a].getDisplayElement());var d=A(a);return d.zIndex=b,d}return!1}function x(a,b){i.plugins.object[a].getDisplayElement().parentNode===null&&m.appendChild(i.plugins.object[a].getDisplayElement());var c=i.width,d=i.height;return typeof i.width=="string"&&i.width.lastIndexOf("%")>-1&&(percentage=parseFloat(i.width.substring(0,i.width.lastIndexOf("%")))/100,c=Math.round(window.innerWidth*percentage)),typeof i.height=="string"&&i.height.lastIndexOf("%")>-1&&(percentage=parseFloat(i.height.substring(0,i.height.lastIndexOf("%")))/100,d=Math.round(window.innerHeight*percentage)),{position:"absolute",width:c-s(m.style.left)-s(m.style.right),height:d-s(m.style.top)-s(m.style.bottom),zIndex:b}}function y(a,b){return{position:"fixed",width:i.width,height:i.height,zIndex:b}}function z(){m.style.position="absolute",i.getMedia().getDisplayElement().style.position="absolute";if(i.getMedia().getDisplayElement().videoWidth==0||i.getMedia().getDisplayElement().videoHeight==0)return;var b,c;if(m.style.width.toString().lastIndexOf("%")>-1||m.style.width.toString().lastIndexOf("%")>-1){var d=m.getBoundingClientRect();b=Math.abs(d.left)+Math.abs(d.right),c=Math.abs(d.top)+Math.abs(d.bottom)}else b=s(m.style.width),c=s(m.style.height);a.utils.stretch(g.jwGetStretching(),i.getMedia().getDisplayElement(),b,c,i.getMedia().getDisplayElement().videoWidth,i.getMedia().getDisplayElement().videoHeight)}function A(b){var c={position:"absolute",margin:0,padding:0,top:null},d=i.plugins.config[b].currentPosition.toLowerCase();switch(d.toUpperCase()){case a.html5.view.positions.TOP:c.top=s(m.style.top),c.left=s(m.style.left),c.width=k-s(m.style.left)-s(m.style.right),c.height=i.plugins.object[b].height,m.style[d]=s(m.style[d])+i.plugins.object[b].height+"px",m.style.height=s(m.style.height)-c.height+"px";break;case a.html5.view.positions.RIGHT:c.top=s(m.style.top),c.right=s(m.style.right),c.width=c.width=i.plugins.object[b].width,c.height=l-s(m.style.top)-s(m.style.bottom),m.style[d]=s(m.style[d])+i.plugins.object[b].width+"px",m.style.width=s(m.style.width)-c.width+"px";break;case a.html5.view.positions.BOTTOM:c.bottom=s(m.style.bottom),c.left=s(m.style.left),c.width=k-s(m.style.left)-s(m.style.right),c.height=i.plugins.object[b].height,m.style[d]=s(m.style[d])+i.plugins.object[b].height+"px",m.style.height=s(m.style.height)-c.height+"px";break;case a.html5.view.positions.LEFT:c.top=s(m.style.top),c.left=s(m.style.left),c.width=i.plugins.object[b].width,c.height=l-s(m.style.top)-s(m.style.bottom),m.style[d]=s(m.style[d])+i.plugins.object[b].width+"px",m.style.width=s(m.style.width)-c.width+"px";break;default:}return c}var g=d,h=e,i=f,j,k,l,m,n,o;this.setup=function(b){h=b,p(),q(),g.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_LOADED,r),g.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_META,function(){z()});var c;window.onresize!==null&&(c=window.onresize),window.onresize=function(a){if(c!==undefined)try{c(a)}catch(b){}if(g.jwGetFullscreen()){var d=document.body.getBoundingClientRect();i.width=Math.abs(d.left)+Math.abs(d.right),i.height=window.innerHeight}u(i.width,i.height)}},this.resize=u,this.fullscreen=function(a){if(navigator.vendor.indexOf("Apple")===0){if(i.getMedia().getDisplayElement().webkitSupportsFullscreen)if(a)try{i.getMedia().getDisplayElement().webkitEnterFullscreen()}catch(c){}else try{i.getMedia().getDisplayElement().webkitExitFullscreen()}catch(c){}}else{if(a){document.onkeydown=t,clearInterval(o);var d=document.body.getBoundingClientRect();i.width=Math.abs(d.left)+Math.abs(d.right),i.height=window.innerHeight;var e={position:"fixed",width:"100%",height:"100%",top:0,left:0,zIndex:2147483e3};b(j,e),e.zIndex=1,b(i.getMedia().getDisplayElement(),e),e.zIndex=2,b(m,e)}else document.onkeydown="",i.width=k,i.height=l,b(j,{position:"relative",height:i.height,width:i.width,zIndex:0});u(i.width,i.height)}}},a.html5.view.positions={TOP:"TOP",RIGHT:"RIGHT",BOTTOM:"BOTTOM",LEFT:"LEFT",OVER:"OVER",NONE:"NONE"}}(jwplayer),function(a){var b={backgroundcolor:"",margin:10,font:"Arial,sans-serif",fontsize:10,fontcolor:parseInt("000000",16),fontstyle:"normal",fontweight:"bold",buttoncolor:parseInt("ffffff",16),position:a.html5.view.positions.BOTTOM,idlehide:!1,layout:{left:{position:"left",elements:[{name:"play",type:"button"},{name:"divider",type:"divider"},{name:"prev",type:"button"},{name:"divider",type:"divider"},{name:"next",type:"button"},{name:"divider",type:"divider"},{name:"elapsed",type:"text"}]},center:{position:"center",elements:[{name:"time",type:"slider"}]},right:{position:"right",elements:[{name:"duration",type:"text"},{name:"blank",type:"button"},{name:"divider",type:"divider"},{name:"mute",type:"button"},{name:"volume",type:"slider"},{name:"divider",type:"divider"},{name:"fullscreen",type:"button"}]}}};_css=a.utils.css,_hide=function(a){_css(a,{display:"none"})},_show=function(a){_css(a,{display:"block"})},a.html5.controlbar=function(c,d){function v(){i=0,j=0,h=0;if(!t){var a={height:e.skin.getSkinElement("controlbar","background").height,backgroundColor:f.backgroundcolor};g=document.createElement("div"),g.id=e.id+"_jwplayer_controlbar",_css(g,a)}E("capLeft","left",!1,g);var b={position:"absolute",height:e.skin.getSkinElement("controlbar","background").height,left:e.skin.getSkinElement("controlbar","capLeft").width,zIndex:0};z("background",g,b,"img"),e.skin.getSkinElement("controlbar","background")&&(s.background.src=e.skin.getSkinElement("controlbar","background").src),b.zIndex=1,z("elements",g,b),E("capRight","right",!1,g)}function w(){var a=["timeSlider","volumeSlider","timeSliderRail","volumeSliderRail"];for(var b in a){var c=a[b];typeof s[c]!="undefined"&&(u[c]=s[c].getBoundingClientRect())}}function x(){a.utils.cancelAnimation(g),y()?a.utils.fadeTo(g,1,0,1,0):a.utils.fadeTo(g,0,.1,1,2)}function y(){return e.jwGetState()==a.api.events.state.IDLE||e.jwGetState()==a.api.events.state.PAUSED?f.idlehide?!1:!0:e.jwGetFullscreen()?!1:f.position==a.html5.view.positions.OVER?!1:!0}function z(a,b,c,d){var e;return t?e=document.getElementById(g.id+"_"+a):(d||(d="div"),e=document.createElement(d),s[a]=e,e.id=g.id+"_"+a,b.appendChild(e)),c!==undefined&&_css(e,c),e}function A(){B(f.layout.left),B(f.layout.right,-1),B(f.layout.center)}function B(b,c){var d=b.position=="right"?"right":"left",e=a.utils.extend([],b.elements);c!==undefined&&e.reverse();for(var f=0;f<e.length;f++)D(e[f],d)}function C(){return h++}function D(a,b){var c,d,f,g,h;switch(a.name){case"play":E("playButton",b,!1),E("pauseButton",b,!0),I("playButton","jwPlay"),I("pauseButton","jwPause");break;case"divider":E("divider"+C(),b,!0,undefined,undefined,a.width);break;case"prev":E("prevButton",b,!0),I("prevButton","jwPlaylistPrev");break;case"next":E("nextButton",b,!0),I("nextButton","jwPlaylistNext");break;case"elapsed":E("elapsedText",b,!0);break;case"time":d=e.skin.getSkinElement("controlbar","timeSliderCapLeft")===undefined?0:e.skin.getSkinElement("controlbar","timeSliderCapLeft").width,f=e.skin.getSkinElement("controlbar","timeSliderCapRight")===undefined?0:e.skin.getSkinElement("controlbar","timeSliderCapRight").width,c=b=="left"?d:f,g=e.skin.getSkinElement("controlbar","timeSliderRail").width+d+f,h={height:e.skin.getSkinElement("controlbar","background").height,position:"absolute",top:0,width:g},h[b]=b=="left"?i:j;var k=z("timeSlider",s.elements,h);E("timeSliderCapLeft",b,!0,k,b=="left"?0:c),E("timeSliderRail",b,!1,k,c),E("timeSliderBuffer",b,!1,k,c),E("timeSliderProgress",b,!1,k,c),E("timeSliderThumb",b,!1,k,c),E("timeSliderCapRight",b,!0,k,b=="right"?0:c),J("time");break;case"fullscreen":E("fullscreenButton",b,!1),E("normalscreenButton",b,!0),I("fullscreenButton","jwSetFullscreen",!0),I("normalscreenButton","jwSetFullscreen",!1);break;case"volume":d=e.skin.getSkinElement("controlbar","volumeSliderCapLeft")===undefined?0:e.skin.getSkinElement("controlbar","volumeSliderCapLeft").width,f=e.skin.getSkinElement("controlbar","volumeSliderCapRight")===undefined?0:e.skin.getSkinElement("controlbar","volumeSliderCapRight").width,c=b=="left"?d:f,g=e.skin.getSkinElement("controlbar","volumeSliderRail").width+d+f,h={height:e.skin.getSkinElement("controlbar","background").height,position:"absolute",top:0,width:g},h[b]=b=="left"?i:j;var l=z("volumeSlider",s.elements,h);E("volumeSliderCapLeft",b,!0,l,b=="left"?0:c),E("volumeSliderRail",b,!0,l,c),E("volumeSliderProgress",b,!1,l,c),E("volumeSliderCapRight",b,!0,l,b=="right"?0:c),J("volume");break;case"mute":E("muteButton",b,!1),E("unmuteButton",b,!0),I("muteButton","jwSetMute",!0),I("unmuteButton","jwSetMute",!1);break;case"duration":E("durationText",b,!0)}}function E(b,c,d,g,h,k){if((e.skin.getSkinElement("controlbar",b)!==undefined||b.indexOf("Text")>0||b.indexOf("divider")===0)&&(b.indexOf("divider")!==0||r.indexOf("divider")!==0)){r=b;var l={height:e.skin.getSkinElement("controlbar","background").height,position:"absolute",display:"block",top:0};(b.indexOf("next")===0||b.indexOf("prev")===0)&&e.jwGetPlaylist().length<2&&(d=!1,l.display="none");var m;b.indexOf("Text")>0?(b.innerhtml="00:00",l.font=f.fontsize+"px/"+(e.skin.getSkinElement("controlbar","background").height+1)+"px "+f.font,l.color=f.fontcolor,l.textAlign="center",l.fontWeight=f.fontweight,l.fontStyle=f.fontstyle,l.cursor="default",m=14+3*f.fontsize):b.indexOf("divider")===0?k?isNaN(parseInt(k))||(m=parseInt(k)):(l.background="url("+e.skin.getSkinElement("controlbar","divider").src+") repeat-x center left",m=e.skin.getSkinElement("controlbar","divider").width):(l.background="url("+e.skin.getSkinElement("controlbar",b).src+") repeat-x center left",m=e.skin.getSkinElement("controlbar",b).width),c=="left"?(l.left=isNaN(h)?i:h,d&&(i+=m)):c=="right"&&(l.right=isNaN(h)?j:h,d&&(j+=m)),a.utils.typeOf(g)=="undefined"&&(g=s.elements),l.width=m;if(t)_css(s[b],l);else{var n=z(b,g,l);e.skin.getSkinElement("controlbar",b+"Over")!==undefined&&(n.onmouseover=function(a){n.style.backgroundImage=["url(",e.skin.getSkinElement("controlbar",b+"Over").src,")"].join("")},n.onmouseout=function(a){n.style.backgroundImage=["url(",e.skin.getSkinElement("controlbar",b).src,")"].join("")})}}}function F(){e.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,G),e.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_BUFFER,L),e.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,N),e.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_TIME,P),e.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_MUTE,M),e.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_VOLUME,T),e.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_COMPLETE,O)}function G(){v(),A(),S(),H()}function H(){P({id:e.id,duration:e.jwGetDuration(),position:0}),L({id:e.id,bufferProgress:0}),M({id:e.id,mute:e.jwGetMute()}),N({id:e.id,newstate:a.api.events.state.IDLE}),T({id:e.id,volume:e.jwGetVolume()})}function I(a,b,c){if(t)return;if(e.skin.getSkinElement("controlbar",a)!==undefined){var d=s[a];d!==null&&(_css(d,{cursor:"pointer"}),b=="fullscreen"?d.onmouseup=function(a){a.stopPropagation(),e.jwSetFullscreen(!e.jwGetFullscreen())}:d.onmouseup=function(a){a.stopPropagation(),c!==null?e[b](c):e[b]()})}}function J(a){if(t)return;var b=s[a+"Slider"];_css(s.elements,{cursor:"pointer"}),_css(b,{cursor:"pointer"}),b.onmousedown=function(b){k=a},b.onmouseup=function(a){a.stopPropagation(),K(a.pageX)},b.onmousemove=function(b){if(k=="time"){l=!0;var c=b.pageX-u[a+"Slider"].left-window.pageXOffset;_css(s.timeSliderThumb,{left:c})}}}function K(b){l=!1;var c;if(k=="time"){c=b-u.timeSliderRail.left+window.pageXOffset;var d=c/u.timeSliderRail.width*n;d<0?d=0:d>n&&(d=n-3),e.jwSeek(d),e.jwGetState()!=a.api.events.state.PLAYING&&e.jwPlay()}else if(k=="volume"){c=b-u.volumeSliderRail.left-window.pageXOffset;var f=Math.round(c/u.volumeSliderRail.width*100);f<0?f=0:f>100&&(f=100),e.jwGetMute()&&e.jwSetMute(!1),e.jwSetVolume(f)}k="none"}function L(a){a.bufferPercent!==null&&(o=a.bufferPercent);var b=u.timeSliderRail.width,c=isNaN(Math.round(b*o/100))?0:Math.round(b*o/100);_css(s.timeSliderBuffer,{width:c})}function M(a){a.mute?(_hide(s.muteButton),_show(s.unmuteButton),_hide(s.volumeSliderProgress)):(_show(s.muteButton),_hide(s.unmuteButton),_show(s.volumeSliderProgress))}function N(b){b.newstate==a.api.events.state.BUFFERING||b.newstate==a.api.events.state.PLAYING?(_show(s.pauseButton),_hide(s.playButton)):(_hide(s.pauseButton),_show(s.playButton)),x(),b.newstate==a.api.events.state.IDLE?(_hide(s.timeSliderBuffer),_hide(s.timeSliderProgress),_hide(s.timeSliderThumb),P({id:e.id,duration:e.jwGetDuration(),position:0})):(_show(s.timeSliderBuffer),b.newstate!=a.api.events.state.BUFFERING&&(_show(s.timeSliderProgress),_show(s.timeSliderThumb)))}function O(b){L({bufferPercent:0}),P(a.utils.extend(b,{position:0,duration:n}))}function P(a){a.position!==null&&(m=a.position),a.duration!==null&&(n=a.duration);var b=m===n===0?0:m/n,c=isNaN(Math.round(u.timeSliderRail.width*b))?0:Math.round(u.timeSliderRail.width*b),d=c;s.timeSliderProgress.style.width=c+"px",l||s.timeSliderThumb&&(s.timeSliderThumb.style.left=d+"px"),s.durationText&&(s.durationText.innerHTML=Q(n)),s.elapsedText&&(s.elapsedText.innerHTML=Q(m))}function Q(a){return str="00:00",a>0&&(str=Math.floor(a/60)<10?"0"+Math.floor(a/60)+":":Math.floor(a/60)+":",str+=Math.floor(a%60)<10?"0"+Math.floor(a%60):Math.floor(a%60)),str}function R(){var a,b,c=document.getElementById(g.id+"_elements").childNodes;for(var d in document.getElementById(g.id+"_elements").childNodes){if(isNaN(parseInt(d,10)))continue;c[d].id.indexOf(g.id+"_divider")===0&&b.id.indexOf(g.id+"_divider")===0?c[d].style.display="none":c[d].id.indexOf(g.id+"_divider")===0&&a.style.display!="none"&&(c[d].style.display="block"),c[d].style.display!="none"&&(b=c[d]),a=c[d]}}function S(){R(),e.jwGetFullscreen()?(_show(s.normalscreenButton),_hide(s.fullscreenButton)):(_hide(s.normalscreenButton),_show(s.fullscreenButton));var b={width:p},c={};f.position==a.html5.view.positions.OVER||e.jwGetFullscreen()?(b.left=f.margin,b.width-=2*f.margin,b.top=q-e.skin.getSkinElement("controlbar","background").height-f.margin,b.height=e.skin.getSkinElement("controlbar","background").height):b.left=0,c.left=e.skin.getSkinElement("controlbar","capLeft").width,c.width=b.width-e.skin.getSkinElement("controlbar","capLeft").width-e.skin.getSkinElement("controlbar","capRight").width;var d=e.skin.getSkinElement("controlbar","timeSliderCapLeft")===undefined?0:e.skin.getSkinElement("controlbar","timeSliderCapLeft").width;return _css(s.timeSliderRail,{width:c.width-i-j,left:d}),s.timeSliderCapRight!==undefined&&_css(s.timeSliderCapRight,{left:d+(c.width-i-j)}),_css(g,b),_css(s.elements,c),_css(s.background,c),w(),b}function T(a){if(s.volumeSliderRail!==undefined){var b=isNaN(a.volume/100)?1:a.volume/100,c=parseInt(s.volumeSliderRail.style.width.replace("px",""),10),d=isNaN(Math.round(c*b))?0:Math.round(c*b),f=parseInt(s.volumeSliderRail.style.right.replace("px",""),10),g=e.skin.getSkinElement("controlbar","volumeSliderCapLeft")===undefined?0:e.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;_css(s.volumeSliderProgress,{width:d,left:g}),s.volumeSliderCapLeft!==undefined&&_css(s.volumeSliderCapLeft,{left:0})}}function U(){v(),A(),w(),t=!0,F(),H(),g.style.opacity=f.idlehide?0:1}var e=c,f=a.utils.extend({},b,e.skin.getComponentSettings("controlbar"),d);if(f.position==a.html5.view.positions.NONE||typeof a.html5.view.positions[f.position]=="undefined")return;a.utils.mapLength(e.skin.getComponentLayout("controlbar"))>0&&(f.layout=e.skin.getComponentLayout("controlbar"));var g,h,i,j,k="none",l,m,n,o,p,q,r,s={},t=!1,u={};return this.getDisplayElement=function(){return g},this.resize=function(b,c){a.utils.cancelAnimation(g),document.getElementById(e.id).onmousemove=x,p=b,q=c,x();var d=S();return P({id:e.id,duration:n,position:m}),L({id:e.id,bufferPercent:o}),d},U(),this}}(jwplayer),function(a){var b=["width","height","state","playlist","item","position","buffer","duration","volume","mute","fullscreen"];a.html5.controller=function(b,c,d,e){function n(a){m.sendEvent(a.type,a)}function o(){try{return g.playlist[g.item].levels[0].file.length>0&&(j||g.state==a.api.events.state.IDLE?(g.addEventListener(a.api.events.JWPLAYER_MEDIA_BUFFER_FULL,function(){g.getMedia().play()}),g.addEventListener(a.api.events.JWPLAYER_MEDIA_TIME,function(a){a.position>=g.playlist[g.item].start&&k>=0&&(g.playlist[g.item].start=k,k=-1)}),g.config.repeat&&g.addEventListener(a.api.events.JWPLAYER_MEDIA_COMPLETE,function(a){setTimeout(B,25)}),g.getMedia().load(g.playlist[g.item]),j=!1):g.state==a.api.events.state.PAUSED&&g.getMedia().play()),!0}catch(b){m.sendEvent(a.api.events.JWPLAYER_ERROR,b)}return!1}function p(){try{if(g.playlist[g.item].levels[0].file.length>0)switch(g.state){case a.api.events.state.PLAYING:case a.api.events.state.BUFFERING:g.getMedia().pause()}return!0}catch(b){m.sendEvent(a.api.events.JWPLAYER_ERROR,b)}return!1}function q(b){try{if(g.playlist[g.item].levels[0].file.length>0){typeof b!="number"&&(b=parseFloat(b));switch(g.state){case a.api.events.state.IDLE:k<0&&(k=g.playlist[g.item].start,g.playlist[g.item].start=b),o();break;case a.api.events.state.PLAYING:case a.api.events.state.PAUSED:case a.api.events.state.BUFFERING:g.getMedia().seek(b)}}return!0}catch(c){m.sendEvent(a.api.events.JWPLAYER_ERROR,c)}return!1}function r(){try{return g.playlist[g.item].levels[0].file.length>0&&g.state!=a.api.events.state.IDLE&&g.getMedia().stop(),!0}catch(b){m.sendEvent(a.api.events.JWPLAYER_ERROR,b)}return!1}function s(){try{return g.playlist[g.item].levels[0].file.length>0&&(g.config.shuffle?v(u()):g.item+1==g.playlist.length?v(0):v(g.item+1)),g.state!=a.api.events.state.PLAYING&&g.state!=a.api.events.state.BUFFERING&&o(),!0}catch(b){m.sendEvent(a.api.events.JWPLAYER_ERROR,b)}return!1}function t(){try{return g.playlist[g.item].levels[0].file.length>0&&(g.config.shuffle?v(u()):g.item===0?v(g.playlist.length-1):v(g.item-1)),g.state!=a.api.events.state.PLAYING&&g.state!=a.api.events.state.BUFFERING&&o(),!0}catch(b){m.sendEvent(a.api.events.JWPLAYER_ERROR,b)}return!1}function u(){var a=null;if(g.playlist.length>1)while(a===null)a=Math.floor(Math.random()*g.playlist.length),a==g.item&&(a=null);else a=0;return a}function v(b){g.resetEventListeners(),g.addGlobalListener(n);try{if(g.playlist[b].levels[0].file.length>0){var c=g.state;c!==a.api.events.state.IDLE&&r(),g.item=b,j=!0,g.setActiveMediaProvider(g.playlist[g.item]),m.sendEvent(a.api.events.JWPLAYER_PLAYLIST_ITEM,{index:b}),(c==a.api.events.state.PLAYING||c==a.api.events.state.BUFFERING||g.config.chromeless||d.config.autostart===!0)&&o()}return!0}catch(e){m.sendEvent(a.api.events.JWPLAYER_ERROR,e)}return!1}function w(b){try{switch(typeof b){case"number":g.getMedia().volume(b);break;case"string":g.getMedia().volume(parseInt(b,10))}return!0}catch(c){m.sendEvent(a.api.events.JWPLAYER_ERROR,c)}return!1}function x(b){try{return typeof b=="undefined"?g.getMedia().mute(!g.mute):b.toString().toLowerCase()=="true"?g.getMedia().mute(!0):g.getMedia().mute(!1),!0}catch(c){m.sendEvent(a.api.events.JWPLAYER_ERROR,c)}return!1}function y(b,c){try{return g.width=b,g.height=c,h.resize(b,c),m.sendEvent(a.api.events.JWPLAYER_RESIZE,{width:g.width,height:g.height}),!0}catch(d){m.sendEvent(a.api.events.JWPLAYER_ERROR,d)}return!1}function z(b){try{return typeof b=="undefined"?(g.fullscreen=!g.fullscreen,h.fullscreen(!g.fullscreen)):b.toString().toLowerCase()=="true"?(g.fullscreen=!0,h.fullscreen(!0)):(g.fullscreen=!1,h.fullscreen(!1)),m.sendEvent(a.api.events.JWPLAYER_RESIZE,{width:g.width,height:g.height}),m.sendEvent(a.api.events.JWPLAYER_FULLSCREEN,{fullscreen:b}),!0}catch(c){m.sendEvent(a.api.events.JWPLAYER_ERROR,c)}return!1}function A(b){try{return r(),g.loadPlaylist(b),v(g.item),!0}catch(c){m.sendEvent(a.api.events.JWPLAYER_ERROR,c)}return!1}function B(){g.resetEventListeners(),g.addGlobalListener(n);switch(g.config.repeat.toUpperCase()){case a.html5.controller.repeatoptions.SINGLE:o();break;case a.html5.controller.repeatoptions.ALWAYS:g.item==g.playlist.length-1&&!g.config.shuffle?(v(0),o()):s();break;case a.html5.controller.repeatoptions.LIST:g.item==g.playlist.length-1&&!g.config.shuffle?v(0):s()}}var f=b,g=d,h=e,i=c,j=!0,k=-1,l=g.config.debug!==undefined&&g.config.debug.toString().toLowerCase()=="console",m=new a.html5.eventdispatcher(i.id,l);a.utils.extend(this,m),g.addGlobalListener(n),a.html5.controller.repeatoptions={LIST:"LIST",ALWAYS:"ALWAYS",SINGLE:"SINGLE",NONE:"NONE"},this.play=o,this.pause=p,this.seek=q,this.stop=r,this.next=s,this.prev=t,this.item=v,this.setVolume=w,this.setMute=x,this.resize=y,this.setFullscreen=z,this.load=A}}(jwplayer),function(a){a.html5.defaultSkin=function(){return this.text='<?xml version="1.0" ?><skin author="LongTail Video" name="Five" version="1.0"><settings><setting name="backcolor" value="0xFFFFFF"/><setting name="frontcolor" value="0x000000"/><setting name="lightcolor" value="0x000000"/><setting name="screencolor" value="0x000000"/></settings><components><component name="controlbar"><settings><setting name="margin" value="20"/><setting name="fontsize" value="11"/></settings><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAIAAABvFaqvAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFJJREFUeNrslLENwAAIwxLU/09j5AiOgD5hVQzNAVY8JK4qEfHMIKBnd2+BQlBINaiRtL/aV2rdzYBsM6CIONbI1NZENTr3RwdB2PlnJgJ6BRgA4hwu5Qg5iswAAAAASUVORK5CYII="/><element name="capLeft" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="capRight" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="divider" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="playButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEhJREFUeNpiYqABYBo1dNRQ+hr6H4jvA3E8NS39j4SpZvh/LJig4YxEGEqy3kET+w+AOGFQRhTJhrEQkGcczfujhg4CQwECDADpTRWU/B3wHQAAAABJRU5ErkJggg=="/><element name="pauseButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAChJREFUeNpiYBgFo2DwA0YC8v/R1P4nRu+ooaOGUtnQUTAKhgIACDAAFCwQCfAJ4gwAAAAASUVORK5CYII="/><element name="prevButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEtJREFUeNpiYBgFo2Dog/9QDAPyQHweTYwiQ/2B+D0Wi8g2tB+JTdBQRiIMJVkvEy0iglhDF9Aq9uOpHVEwoE+NJDUKRsFgAAABBgDe2hqZcNNL0AAAAABJRU5ErkJggg=="/><element name="nextButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAElJREFUeNpiYBgFo2Dog/9AfB6I5dHE/lNqKAi/B2J/ahsKw/3EGMpIhKEk66WJoaR6fz61IyqemhEFSlL61ExSo2AUDAYAEGAAiG4hj+5t7M8AAAAASUVORK5CYII="/><element name="timeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADxJREFUeNpiYBgFo2AU0Bwwzluw+D8tLWARFhKiqQ9YuLg4aWsBGxs7bS1gZ6e5BWyjSX0UjIKhDgACDABlYQOGh5pYywAAAABJRU5ErkJggg=="/><element name="timeSliderBuffer" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD1JREFUeNpiYBgFo2AU0Bww1jc0/aelBSz8/Pw09QELOzs7bS1gY2OjrQWsrKy09gHraFIfBaNgqAOAAAMAvy0DChXHsZMAAAAASUVORK5CYII="/><element name="timeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAClJREFUeNpiYBgFo2AU0BwwAvF/WlrARGsfjFow8BaMglEwCugAAAIMAOHfAQunR+XzAAAAAElFTkSuQmCC"/><element name="timeSliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAICAYAAAA870V8AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABZJREFUeNpiZICA/yCCiQEJUJcDEGAAY0gBD1/m7Q0AAAAASUVORK5CYII="/><element name="muteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADFJREFUeNpiYBgFIw3MB+L/5Gj8j6yRiRTFyICJXHfTXyMLAXlGati4YDRFDj8AEGAABk8GSqqS4CoAAAAASUVORK5CYII="/><element name="unmuteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD1JREFUeNpiYBgFgxz8p7bm+cQa+h8LHy7GhEcjIz4bmAjYykiun/8j0fakGPIfTfPgiSr6aB4FVAcAAQYAWdwR1G1Wd2gAAAAASUVORK5CYII="/><element name="volumeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAYCAYAAADkgu3FAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAGpJREFUeNpi/P//PwM9ABMDncCoRYPfIqqDZcuW1UPp/6AUDcNM1DQYKtRAlaAj1mCSLSLXYIIWUctgDItoZfDA5aOoqKhGEANIM9LVR7SymGDQUctikuOIXkFNdhHEOFrDjlpEd4sAAgwAriRMub95fu8AAAAASUVORK5CYII="/><element name="volumeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAYCAYAAADkgu3FAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFtJREFUeNpi/P//PwM9ABMDncCoRYPfIlqAeij9H5SiYZiqBqPTlFqE02BKLSLaYFItIttgQhZRzWB8FjENiuRJ7aAbsMQwYMl7wDIsWUUQ42gNO2oR3S0CCDAAKhKq6MLLn8oAAAAASUVORK5CYII="/><element name="fullscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAE5JREFUeNpiYBgFo2DQA0YC8v/xqP1PjDlMRDrEgUgxkgHIlfZoriVGjmzLsLFHAW2D6D8eA/9Tw7L/BAwgJE90PvhPpNgoGAVDEQAEGAAMdhTyXcPKcAAAAABJRU5ErkJggg=="/><element name="normalscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEZJREFUeNpiYBgFo2DIg/9UUkOUAf8JiFFsyX88fJyAkcQgYMQjNkzBoAgiezyRbE+tFGSPxQJ7auYBmma0UTAKBhgABBgAJAEY6zON61sAAAAASUVORK5CYII="/></elements></component><component name="display"><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEpJREFUeNrszwENADAIA7DhX8ENoBMZ5KR10EryckCJiIiIiIiIiIiIiIiIiIiIiIh8GmkRERERERERERERERERERERERGRHSPAAPlXH1phYpYaAAAAAElFTkSuQmCC"/><element name="playIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALdJREFUeNrs18ENgjAYhmFouDOCcQJGcARHgE10BDcgTOIosAGwQOuPwaQeuFRi2p/3Sb6EC5L3QCxZBgAAAOCorLW1zMn65TrlkH4NcV7QNcUQt7Gn7KIhxA+qNIR81spOGkL8oFJDyLJRdosqKDDkK+iX5+d7huzwM40xptMQMkjIOeRGo+VkEVvIPfTGIpKASfYIfT9iCHkHrBEzf4gcUQ56aEzuGK/mw0rHpy4AAACAf3kJMACBxjAQNRckhwAAAABJRU5ErkJggg=="/><element name="muteIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNrs1jEOgCAMBVAg7t5/8qaoIy4uoobyXsLCxA+0NCUAAADGUWvdQoQ41x4ixNBB2hBvBskdD3w5ZCkl3+33VqI0kjBBlh9rp+uTcyOP33TnolfsU85XX3yIRpQph8ZQY3wTZtU5AACASA4BBgDHoVuY1/fvOQAAAABJRU5ErkJggg=="/><element name="errorIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAWlJREFUeNrsl+1twjAQhsHq/7BBYQLYIBmBDcoGMAIjtBPQTcII2SDtBDBBwrU6pGsUO7YbO470PtKJkz9iH++d4ywWAAAAAABgljRNsyWr2bZzDuJG1rLdZhcMbTjrBCGDyUKsqQLFciJb9bSvuG/WagRVRUVUI6gqy5HVeKWfSgRyJruKIU//TrZTSn2nmlaXThrloi/v9F2STC1W4+Aw5cBzkquRc09bofFNc6YLxEON0VUZS5FPTftO49vMjRsIF3RhOGr7/D/pJw+FKU+q0vDyq8W42jCunDqI3LC5XxNj2wHLU1XjaRnb0Lhykhqhhd8MtSF5J9tbjCv4mXGvKJz/65FF/qJryyaaIvzP2QRxZTX2nTuXjvV/VPFSwyLnW7mpH99yTh1FEVro6JBSd40/pMrRdV8vPtcKl28T2pT8TnFZ4yNosct3Q0io6JfBiz1FlGdqVQH3VHnepAEAAAAAADDzEGAAcTwB10jWgxcAAAAASUVORK5CYII="/><element name="bufferIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAuhJREFUeNrsWr9rU1EUznuNGqvFQh1ULOhiBx0KDtIuioO4pJuik3FxFfUPaAV1FTdx0Q5d2g4FFxehTnEpZHFoBy20tCIWtGq0TZP4HfkeHB5N8m6Sl/sa74XDybvv3vvOd8/Pe4lXrVZT3dD8VJc0B8QBcUAcEAfESktHGeR5XtMfqFQq/f92zPe/NbtGlKTdCY30kuxrpMGO94BlQCXs+rbh3ONgA6BlzP1p20d80gEI5hmA2A92Qua1Q2PtAFISM+bvjMG8U+Q7oA3rQGASwrYCU6WpNdLGYbA+Pq5jjXIiwi8EEa2UDbQSaKOIuV+SlkcCrfjY8XTI9EpKGwP0C2kru2hLtHqa4zoXtZRWyvi4CLwv9Opr6Hkn6A9HKgEANsQ1iqC3Ub/vRUk2JgmRkatK36kVrnt0qObunwUdUUMXMWYpakJsO5Am8tAw2GBIgwWA+G2S2dMpiw0gDioQRQJoKhRb1QiDwlHZUABYbaXWsm5ae6loTE4ZDxN4CZar8foVzOJ2iyZ2kWF3t7YIevffaMT5yJ70kQb2fQ1sE5SHr2wazs2wgMxgbsEKEAgxAvZUJbQLBGTSBMgNrncJbA6AljtS/eKDJ0Ez+DmrQEzXS2h1Ck25kAg0IZcUOaydCy4sYnN2fOA+2AP16gNoHALlQ+fwH7XO4CxLenUpgj4xr6ugY2roPMbMx+Xs18m/E8CVEIhxsNeg83XWOAN6grG3lGbk8uE5fr4B/WH3cJw+co/l9nTYsSGYCJ/lY5/qv0thn6nrIWmjeJcPSnWOeY++AkF8tpJHIMAUs/MaBBpj3znZfQo5psY+ZrG4gv5HickjEOymKjEeRpgyST6IuZcTcWbnjcgdPi5ghxciRKsl1lDSsgwA1i8fssonJgzmTSqfGUkCENndNdAL7PS6QQ7ZYISTo+1qq0LEWjTWcvY4isa4z+yfQB+7ooyHVg5RI7/i1Ijn/vnggDggDogD4oC00P4KMACd/juEHOrS4AAAAABJRU5ErkJggg=="/></elements></component><component name="dock"><elements><element name="button" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFBJREFUeNrs0cEJACAQA8Eofu0fu/W6EM5ZSAFDRpKTBs00CQQEBAQEBAQEBAQEBAQEBATkK8iqbY+AgICAgICAgICAgICAgICAgIC86QowAG5PAQzEJ0lKAAAAAElFTkSuQmCC"/></elements></component><component name="playlist"><elements><element name="item" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAIAAAC1nk4lAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHhJREFUeNrs2NEJwCAMBcBYuv/CFuIE9VN47WWCR7iocXR3pdWdGPqqwIoMjYfQeAiNh9B4JHc6MHQVHnjggQceeOCBBx77TifyeOY0iHi8DqIdEY8dD5cL094eePzINB5CO/LwcOTptNB4CP25L4TIbZzpU7UEGAA5wz1uF5rF9AAAAABJRU5ErkJggg=="/><element name="sliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAA8CAIAAADpFA0BAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADhJREFUeNrsy6ENACAMAMHClp2wYxZLAg5Fcu9e3OjuOKqqfTMzbs14CIZhGIZhGIZhGP4VLwEGAK/BBnVFpB0oAAAAAElFTkSuQmCC"/><element name="sliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAA8CAIAAADpFA0BAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADRJREFUeNrsy7ENACAMBLE8++8caFFKKiRffU53112SGs3ttOohGIZhGIZhGIZh+Fe8BRgAiaUGde6NOSEAAAAASUVORK5CYII="/></elements></component></components></skin>',this.xml=null,window.DOMParser?(parser=new DOMParser,this.xml=parser.parseFromString(this.text,"text/xml")):(this.xml=new ActiveXObject("Microsoft.XMLDOM"),this.xml.async="false",this.xml.loadXML(this.text)),this}}(jwplayer),function(a){_css=a.utils.css,_hide=function(a){_css(a,{display:"none"})},_show=function(a){_css(a,{display:"block"})},a.html5.display=function(b,c){function r(){g.display=u("div","display"),g.display_text=u("div","display_text"),g.display.appendChild(g.display_text),g.display_image=u("img","display_image"),g.display_image.onerror=function(a){_hide(g.display_image)},g.display_image.onload=s,g.display_icon=u("div","display_icon"),g.display_iconBackground=u("div","display_iconBackground"),g.display.appendChild(g.display_image),g.display_iconBackground.appendChild(g.display_icon),g.display.appendChild(g.display_iconBackground),v()}function s(a){j=g.display_image.naturalWidth,k=g.display_image.naturalHeight,t()}function t(){a.utils.stretch(f.jwGetStretching(),g.display_image,h,i,j,k)}function u(a,b){var c=document.createElement(a);return c.id=f.id+"_jwplayer_"+b,_css(c,q[b].style),c}function v(){for(var a in g)q[a].click!==undefined&&(g[a].onclick=q[a].click)}function w(b){typeof b.preventDefault!="undefined"?b.preventDefault():b.returnValue=!1,f.jwGetState()!=a.api.events.state.PLAYING?f.jwPlay():f.jwPause()}function x(a){if(n||!e.icons){y();return}_show(g.display_iconBackground),g.display_icon.style.backgroundImage=["url(",f.skin.getSkinElement("display",a).src,")"].join(""),_css(g.display_icon,{display:"block",width:f.skin.getSkinElement("display",a).width,height:f.skin.getSkinElement("display",a).height,top:(f.skin.getSkinElement("display","background").height-f.skin.getSkinElement("display",a).height)/2,left:(f.skin.getSkinElement("display","background").width-f.skin.getSkinElement("display",a).width)/2}),f.skin.getSkinElement("display",a+"Over")!==undefined?(g.display_icon.onmouseover=function(b){g.display_icon.style.backgroundImage=["url(",f.skin.getSkinElement("display",a+"Over").src,")"].join("")},g.display_icon.onmouseout=function(b){g.display_icon.style.backgroundImage=["url(",f.skin.getSkinElement("display",a).src,")"].join("")}):(g.display_icon.onmouseover=null,g.display_icon.onmouseout=null)}function y(){_hide(g.display_icon),_hide(g.display_iconBackground)}function z(a){n=!0,y(),g.display_text.innerHTML=a.error,_show(g.display_text),g.display_text.style.top=(i-g.display_text.getBoundingClientRect().height)/2+"px"}function A(){var a=g.display_image;g.display_image=u("img","display_image"),g.display_image.onerror=function(a){_hide(g.display_image)},g.display_image.onload=s,g.display.replaceChild(g.display_image,a)}function B(b){(b.type==a.api.events.JWPLAYER_PLAYER_STATE||b.type==a.api.events.JWPLAYER_PLAYLIST_ITEM)&&n&&(n=!1,_hide(g.display_text)),m!==undefined&&(clearInterval(m),m=null,a.utils.animations.rotate(g.display_icon,0));switch(f.jwGetState()){case a.api.events.state.BUFFERING:x("bufferIcon"),l=0,m=setInterval(function(){l+=o,a.utils.animations.rotate(g.display_icon,l%360)},p),x("bufferIcon");break;case a.api.events.state.PAUSED:_css(g.display_image,{background:"transparent no-repeat center center"}),x("playIcon");break;case a.api.events.state.IDLE:f.jwGetPlaylist()[f.jwGetItem()].image?(_css(g.display_image,{display:"block"}),g.display_image.src=a.utils.getAbsolutePath(f.jwGetPlaylist()[f.jwGetItem()].image)):A(),x("playIcon");break;default:f.jwGetMute()?(A(),x("muteIcon")):(A(),_hide(g.display_iconBackground),_hide(g.display_icon))}}var d={icons:!0},e=a.utils.extend({},d,c),f=b,g={},h,i,j,k,l,m,n,o=f.skin.getComponentSettings("display").bufferrotation===undefined?15:parseInt(f.skin.getComponentSettings("display").bufferrotation,10),p=f.skin.getComponentSettings("display").bufferinterval===undefined?100:parseInt(f.skin.getComponentSettings("display").bufferinterval,10),q={display:{style:{cursor:"pointer",top:0,left:0,overflow:"hidden"},click:w},display_icon:{style:{cursor:"pointer",position:"absolute",top:(f.skin.getSkinElement("display","background").height-f.skin.getSkinElement("display","playIcon").height)/2,left:(f.skin.getSkinElement("display","background").width-f.skin.getSkinElement("display","playIcon").width)/2,border:0,margin:0,padding:0,zIndex:3}},display_iconBackground:{style:{cursor:"pointer",position:"absolute",top:(i-f.skin.getSkinElement("display","background").height)/2,left:(h-f.skin.getSkinElement("display","background").width)/2,border:0,backgroundImage:["url(",f.skin.getSkinElement("display","background").src,")"].join(""),width:f.skin.getSkinElement("display","background").width,height:f.skin.getSkinElement("display","background").height,margin:0,padding:0,zIndex:2}},display_image:{style:{display:"none",width:h,height:i,position:"absolute",cursor:"pointer",left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1}},display_text:{style:{zIndex:4,position:"relative",opacity:.8,backgroundColor:parseInt("000000",16),color:parseInt("ffffff",16),textAlign:"center",fontFamily:"Arial,sans-serif",padding:"0 5px",fontSize:14}}};return f.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,B),f.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_MUTE,B),f.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,B),f.jwAddEventListener(a.api.events.JWPLAYER_ERROR,z),r(),this.getDisplayElement=function(){return g.display},this.resize=function(a,b){h=a,i=b,_css(g.display,{width:a,height:b}),_css(g.display_text,{width:a-10,top:(i-g.display_text.getBoundingClientRect().height)/2}),_css(g.display_iconBackground,{top:(i-f.skin.getSkinElement("display","background").height)/2,left:(h-f.skin.getSkinElement("display","background").width)/2}),t(),B({})},this}}(jwplayer),function(a){a.html5.dock=function(b,c){function d(){return{align:a.html5.view.positions.RIGHT}}function k(c,d){h=c,i=d;if(g.length>0){var j=10,k=c-b.skin.getSkinElement("dock","button").width-j,l=j,m=-1;e.align==a.html5.view.positions.LEFT&&(m=1,k=j);for(var n=0;n<g.length;n++){var o=Math.floor(l/d);l+b.skin.getSkinElement("dock","button").height+j>(o+1)*d&&(l=(o+1)*d+j,o=Math.floor(l/d)),f[g[n]].div.style.top=l%d+"px",f[g[n]].div.style.left=k+(b.skin.getSkinElement("dock","button").width+j)*o*m+"px",l+=b.skin.getSkinElement("dock","button").height+j}}}var e=a.utils.extend({},d(),c);if(e.align=="FALSE")return;var f={},g=[],h,i,j=document.createElement("div");return j.id=b.id+"_jwplayer_dock",this.getDisplayElement=function(){return j},this.setButton=function(c,d,e,l){!d&&f[c]?(a.utils.arrays.remove(g,c),j.removeChild(f[c].div),delete f[c]):d&&(f[c]||(f[c]={}),f[c].handler=d,f[c].outGraphic=e,f[c].overGraphic=l,f[c].div||(g.push(c),f[c].div=document.createElement("div"),f[c].div.style.position="relative",j.appendChild(f[c].div),f[c].div.appendChild(document.createElement("img")),f[c].div.childNodes[0].style.position="absolute",f[c].div.childNodes[0].style.left=0,f[c].div.childNodes[0].style.top=0,f[c].div.childNodes[0].style.zIndex=10,f[c].div.childNodes[0].style.cursor="pointer",f[c].div.appendChild(document.createElement("img")),f[c].div.childNodes[1].style.position="absolute",f[c].div.childNodes[1].style.left=0,f[c].div.childNodes[1].style.top=0,b.skin.getSkinElement("dock","button")&&(f[c].div.childNodes[1].src=b.skin.getSkinElement("dock","button").src),f[c].div.childNodes[1].style.zIndex=9,f[c].div.childNodes[1].style.cursor="pointer",f[c].div.onmouseover=function(){f[c].overGraphic&&(f[c].div.childNodes[0].src=f[c].overGraphic),b.skin.getSkinElement("dock","buttonOver")&&(f[c].div.childNodes[1].src=b.skin.getSkinElement("dock","buttonOver").src)},f[c].div.onmouseout=function(){f[c].outGraphic&&(f[c].div.childNodes[0].src=f[c].outGraphic),b.skin.getSkinElement("dock","button")&&(f[c].div.childNodes[1].src=b.skin.getSkinElement("dock","button").src)},f[c].overGraphic&&(f[c].div.childNodes[0].src=f[c].overGraphic),f[c].outGraphic&&(f[c].div.childNodes[0].src=f[c].outGraphic),b.skin.getSkinElement("dock","button")&&(f[c].div.childNodes[1].src=b.skin.getSkinElement("dock","button").src)),d&&(f[c].div.onclick=function(d){d.preventDefault(),a(b.id).callback(c),f[c].overGraphic&&(f[c].div.childNodes[0].src=f[c].overGraphic),b.skin.getSkinElement("dock","button")&&(f[c].div.childNodes[1].src=b.skin.getSkinElement("dock","button").src)})),k(h,i)},this.resize=k,this}}(jwplayer),function(a){a.html5.eventdispatcher=function(b,c){var d=new a.events.eventdispatcher(c);a.utils.extend(this,d),this.sendEvent=function(c,e){e===undefined&&(e={}),a.utils.extend(e,{id:b,version:a.version,type:c}),d.sendEvent(c,e)}}}(jwplayer),function(a){var b={prefix:"",file:"",link:"",margin:8,out:.5,over:1,timeout:3,hide:!0,position:"bottom-left"};_css=a.utils.css,a.html5.logo=function(c,d){function i(){j(),k(),l()}function j(){if(b.prefix){var e=c.version.split(/\W/).splice(0,2).join("/");b.prefix.indexOf(e)<0&&(b.prefix+=e+"/")}d.position==a.html5.view.positions.OVER&&(d.position=b.position),g=a.utils.extend({},b,d)}function k(){h=document.createElement("img"),h.id=e.id+"_jwplayer_logo",h.style.display="none",h.onload=function(b){_css(h,p()),e.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,s),n()};if(!g.file)return;g.file.indexOf("http://")===0?h.src=g.file:h.src=g.prefix+g.file}function l(){g.link?(h.onmouseover=o,h.onmouseout=n,h.onclick=m):this.mouseEnabled=!1}function m(a){typeof a!="undefined"&&a.stopPropagation(),e.jwPause(),e.jwSetFullscreen(!1),g.link&&window.open(g.link,"_blank");return}function n(a){g.link&&(h.style.opacity=g.out);return}function o(a){g.hide&&(h.style.opacity=g.over);return}function p(){var a={textDecoration:"none",position:"absolute",cursor:"pointer"};a.display=g.hide?"none":"block";var b=g.position.toLowerCase().split("-");for(var c in b)a[b[c]]=g.margin;return a}function q(){g.hide&&(h.style.display="block",h.style.opacity=0,a.utils.fadeTo(h,g.out,.1,parseFloat(h.style.opacity)),f=setTimeout(function(){r()},g.timeout*1e3))}function r(){g.hide&&a.utils.fadeTo(h,0,.1,parseFloat(h.style.opacity))}function s(b){b.newstate==a.api.events.state.BUFFERING&&(clearTimeout(f),q())}var e=c,f,g,h;i();if(!g.file)return;return this.resize=function(a,b){},this.getDisplayElement=function(){return h},this}}(jwplayer),function(a){var b={ended:a.api.events.state.IDLE,playing:a.api.events.state.PLAYING,pause:a.api.events.state.PAUSED,buffering:a.api.events.state.BUFFERING},c=a.utils.css;a.html5.mediavideo=function(d,e){function w(){return l}function x(a){}function y(a){}function z(a){b[a.type]&&A(b[a.type])}function A(b){if(v)return;n&&(b=a.api.events.state.IDLE);if(b==a.api.events.state.PAUSED&&l==a.api.events.state.IDLE)return;if(b==a.api.events.state.PLAYING&&l==a.api.events.state.IDLE){A(a.api.events.state.BUFFERING),g.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:h.buffer}),D();return}if(l!=b){var c=l;h.state=b,l=b;var d=!1;b==a.api.events.state.IDLE&&(H(),h.position>=h.duration&&(h.position||h.duration)&&(d=!0),i.style.display!="none"&&!h.config.chromeless&&(i.style.display="none")),g.sendEvent(a.api.events.JWPLAYER_PLAYER_STATE,{oldstate:c,newstate:b}),d&&g.sendEvent(a.api.events.JWPLAYER_MEDIA_COMPLETE)}n=!1}function B(b){var c={height:b.target.videoHeight,width:b.target.videoWidth,duration:Math.round(b.target.duration*10)/10};if(h.duration===0||isNaN(h.duration))h.duration=Math.round(b.target.duration*10)/10;h.playlist[h.item]=a.utils.extend(h.playlist[h.item],c),g.sendEvent(a.api.events.JWPLAYER_MEDIA_META,{metadata:c})}function C(b){if(n)return;if(b!==undefined&&b.target!==undefined){if(h.duration===0||isNaN(h.duration))h.duration=Math.round(b.target.duration*10)/10;!p&&i.readyState>0&&A(a.api.events.state.PLAYING);if(l==a.api.events.state.PLAYING){if(!p&&i.readyState>0){p=!0;try{i.currentTime=h.playlist[h.item].start}catch(c){}i.volume=h.volume/100,i.muted=h.mute}h.position=Math.round(b.target.currentTime*10)/10,g.sendEvent(a.api.events.JWPLAYER_MEDIA_TIME,{position:b.target.currentTime,duration:b.target.duration})}}F(b)}function D(){j===!1&&l==a.api.events.state.BUFFERING&&(g.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER_FULL),j=!0)}function E(){var a=(t[t.length-1]-t[0])/t.length;u=setTimeout(function(){k||F({lengthComputable:!0,loaded:1,total:1})},a*10)}function F(b){var c,d;b!==undefined&&b.lengthComputable&&b.total?(L(),c=b.loaded/b.total*100,d=c/100*(h.duration-i.currentTime),50<c&&!k&&(clearTimeout(u),E())):i.buffered!==undefined&&i.buffered.length>0&&(maxBufferIndex=0,maxBufferIndex>=0&&(c=i.buffered.end(maxBufferIndex)/i.duration*100,d=i.buffered.end(maxBufferIndex)-i.currentTime)),D(),k||(c==100&&k===!1&&(k=!0),c!==null&&c>h.buffer&&(h.buffer=Math.round(c),g.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:Math.round(c)})))}function G(){m===null&&(m=setInterval(function(){C()},100))}function H(){clearInterval(m),m=null}function I(b){var c="There was an error: ";if(b.target.error&&b.target.tagName.toLowerCase()=="video"||b.target.parentNode.error&&b.target.parentNode.tagName.toLowerCase()=="video"){var d=b.target.error===undefined?b.target.parentNode.error:b.target.error;switch(d.code){case d.MEDIA_ERR_ABORTED:c="You aborted the video playback: ";break;case d.MEDIA_ERR_NETWORK:c="A network error caused the video download to fail part-way: ";break;case d.MEDIA_ERR_DECODE:c="The video playback was aborted due to a corruption problem or because the video used features your browser did not support: ";break;case d.MEDIA_ERR_SRC_NOT_SUPPORTED:c="The video could not be loaded, either because the server or network failed or because the format is not supported: ";break;default:c="An unknown error occurred: "}}else{if(b.target.tagName.toLowerCase()!="source"){a.utils.log("Erroneous error received. Continuing...");return}s--;if(s>0)return;c="The video could not be loaded, either because the server or network failed or because the format is not supported: "}K(),c+=J(),v=!0,g.sendEvent(a.api.events.JWPLAYER_ERROR,{error:c});return}function J(){var b="";for(var c in r.levels){var d=r.levels[c],e=i.ownerDocument.createElement("source");b+=a.utils.getAbsolutePath(d.file),c<r.levels.length-1&&(b+=", ")}return b}function K(){i.pause(),H(),h.position=0,n=!0,A(a.api.events.state.IDLE)}function L(){var a=(new Date).getTime();t.push(a)}function M(b){h.duration=b.duration,q=!1,r=b;var c=document.createElement("video");c.preload="none",v=!1,s=0;for(var d=0;d<b.levels.length;d++){var e=b.levels[d];if(a.utils.isYouTube(e.file)){delete c,N(e.file);return}var j;if(e.type===undefined){var k=a.utils.extension(e.file);a.utils.extensionmap[k]!==undefined&&a.utils.extensionmap[k].html5!==undefined&&(j=a.utils.extensionmap[k].html5)}else j=e.type;if(!j||c.canPlayType(j)){var l=i.ownerDocument.createElement("source");l.src=a.utils.getAbsolutePath(e.file),j&&!a.utils.isLegacyAndroid()&&(l.type=j),s++,c.appendChild(l)}}s===0&&(v=!0,g.sendEvent(a.api.events.JWPLAYER_ERROR,{error:"The video could not be loaded because the format is not supported by your browser: "+J()})),h.config.chromeless&&(c.poster=a.utils.getAbsolutePath(b.image),c.controls="controls"),c.style.top=i.style.top,c.style.left=i.style.left,c.style.width=i.style.width,c.style.height=i.style.height,c.style.zIndex=i.style.zIndex,c.onload=x,c.volume=0,i.parentNode.replaceChild(c,i),c.id=i.id,i=c;for(var m in f)i.addEventListener(m,function(a){a.target.parentNode!==null&&f[a.type](a)},!0)}function N(a){var b=document.createElement("object");a=["http://www.youtube.com/v/",a.replace(/^[^v]+v.(.{11}).*/,"$1"),"&amp;hl=en_US&amp;fs=1&autoplay=1"].join("");var c={movie:a,allowFullScreen:"true",allowscriptaccess:"always"};for(var e in c){var f=document.createElement("param");f.name=e,f.value=c[e],b.appendChild(f)}var g=document.createElement("embed"),h={src:a,type:"application/x-shockwave-flash",allowscriptaccess:"always",allowfullscreen:"true",width:document.getElementById(d.id).style.width,height:document.getElementById(d.id).style.height};for(var j in h)g[j]=h[j];b.appendChild(g),b.style.position=i.style.position,b.style.top=i.style.top,b.style.left=i.style.left,b.style.width=document.getElementById(d.id).style.width,b.style.height=document.getElementById(d.id).style.height,b.style.zIndex=2147483e3,i.parentNode.replaceChild(b,i),b.id=i.id,i=b,q=!0}var f={abort:y,canplay:z,canplaythrough:z,durationchange:B,emptied:y,ended:z,error:I,loadeddata:B,loadedmetadata:B,loadstart:z,pause:z,play:C,playing:z,progress:F,ratechange:y,seeked:z,seeking:z,stalled:z,suspend:z,timeupdate:C,volumechange:y,waiting:z,canshowcurrentframe:y,dataunavailable:y,empty:y,load:x,loadedfirstframe:y},g=new a.html5.eventdispatcher;a.utils.extend(this,g);var h=d,i=e,j,k,l=a.api.events.state.IDLE,m=null,n,o=0,p=!1,q=!1,r,s,t=[],u,v=!1;return this.getDisplayElement=function(){return i},this.play=function(){l!=a.api.events.state.PLAYING&&(i.style.display!="block"&&(i.style.display="block"),i.play(),G(),j&&A(a.api.events.state.PLAYING))},this.pause=function(){i.pause(),A(a.api.events.state.PAUSED)},this.seek=function(a){h.duration!==0&&!isNaN(h.duration)&&h.position!==0&&!isNaN(h.position)&&(i.currentTime=a,i.play())},this.stop=K,this.volume=function(b){i.volume=b/100,h.volume=b,g.sendEvent(a.api.events.JWPLAYER_MEDIA_VOLUME,{volume:Math.round(b)})},this.mute=function(b){i.muted=b,h.mute=b,g.sendEvent(a.api.events.JWPLAYER_MEDIA_MUTE,{mute:b})},this.resize=function(b,d){g.sendEvent(a.api.events.JWPLAYER_MEDIA_RESIZE,{fullscreen:h.fullscreen,width:b,hieght:d})},this.fullscreen=function(a){a===!0?this.resize("100%","100%"):this.resize(h.config.width,h.config.height)},this.load=function(b){M(b),g.sendEvent(a.api.events.JWPLAYER_MEDIA_LOADED),j=!1,k=!1,p=!1,!h.config.chromeless&&!q&&(t=[],L(),A(a.api.events.state.BUFFERING),setTimeout(function(){C()},25))},this.hasChrome=function(){return q},this.embed=M,this}}(jwplayer),function(jwplayer){var _configurableStateVariables=["width","height","start","duration","volume","mute","fullscreen","item","plugins","stretching"];jwplayer.html5.model=function(api,container,options){function _getShuffleItem(){var a=null;if(_model.playlist.length>1)while(a===null)a=Math.floor(Math.random()*_model.playlist.length),a==_model.item&&(a=null);else a=0;return a}function forward(a){a.type==jwplayer.api.events.JWPLAYER_MEDIA_LOADED&&(_container=_media.getDisplayElement()),_eventDispatcher.sendEvent(a.type,a)}var _api=api,_container=container,_model={id:_container.id,playlist:[],state:jwplayer.api.events.state.IDLE,position:0,buffer:0,config:{width:480,height:320,item:-1,skin:undefined,file:undefined,image:undefined,start:0,duration:0,bufferlength:5,volume:90,mute:!1,fullscreen:!1,repeat:"none",stretching:jwplayer.utils.stretching.UNIFORM,autostart:!1,debug:undefined,screencolor:undefined}},_media,_eventDispatcher=new jwplayer.html5.eventdispatcher,_components=["display","logo","controlbar","dock"];jwplayer.utils.extend(_model,_eventDispatcher);for(var option in options){if(typeof options[option]=="string"){var type=/color$/.test(option)?"color":null;options[option]=jwplayer.utils.typechecker(options[option],type)}var config=_model.config,path=option.split(".");for(var edge in path)edge==path.length-1?config[path[edge]]=options[option]:(config[path[edge]]===undefined&&(config[path[edge]]={}),config=config[path[edge]])}for(var index in _configurableStateVariables){var configurableStateVariable=_configurableStateVariables[index];_model[configurableStateVariable]=_model.config[configurableStateVariable]}var pluginorder=_components.concat([]);if(_model.plugins!==undefined&&typeof _model.plugins=="string"){var userplugins=_model.plugins.split(",");for(var userplugin in userplugins)typeof userplugins[userplugin]=="string"&&pluginorder.push(userplugins[userplugin].replace(/^\s+|\s+$/g,""))}typeof _model.config.chromeless=="undefined"&&jwplayer.utils.isIOS()&&(_model.config.chromeless=!0),_model.config.chromeless&&(pluginorder=["logo"]),_model.plugins={order:pluginorder,config:{},object:{}};if(typeof _model.config.components!="undefined")for(var component in _model.config.components)_model.plugins.config[component]=_model.config.components[component];for(var pluginIndex in _model.plugins.order){var pluginName=_model.plugins.order[pluginIndex],pluginConfig=_model.config[pluginName]===undefined?{}:_model.config[pluginName];_model.plugins.config[pluginName]=_model.plugins.config[pluginName]===undefined?pluginConfig:jwplayer.utils.extend(_model.plugins.config[pluginName],pluginConfig),typeof _model.plugins.config[pluginName].position=="undefined"?_model.plugins.config[pluginName].position=jwplayer.html5.view.positions.OVER:_model.plugins.config[pluginName].position=_model.plugins.config[pluginName].position.toString().toUpperCase()}if(typeof _model.plugins.config.dock!="undefined"){if(typeof _model.plugins.config.dock!="object"){var position=_model.plugins.config.dock.toString().toUpperCase();_model.plugins.config.dock={position:position}}typeof _model.plugins.config.dock.position!="undefined"&&(_model.plugins.config.dock.align=_model.plugins.config.dock.position,_model.plugins.config.dock.position=jwplayer.html5.view.positions.OVER)}return _model.loadPlaylist=function(arg,ready){var input;if(typeof arg=="string")try{input=eval(arg)}catch(err){input=arg}else input=arg;var config;switch(jwplayer.utils.typeOf(input)){case"object":config=input;break;case"array":config={playlist:input};break;default:config={file:input}}_model.playlist=new jwplayer.html5.playlist(config),_model.config.shuffle?_model.item=_getShuffleItem():(_model.config.item>=_model.playlist.length?_model.config.item=_model.playlist.length-1:_model.config.item<0&&(_model.config.item=0),_model.item=_model.config.item),ready||_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:_model.playlist}),_model.setActiveMediaProvider(_model.playlist[_model.item])},_model.setActiveMediaProvider=function(a){return _media!==undefined&&_media.resetEventListeners(),_media=new jwplayer.html5.mediavideo(_model,_container),_media.addGlobalListener(forward),_model.config.chromeless&&_media.load(a),!0},_model.getMedia=function(){return _media},_model.setupPlugins=function(){for(var a in _model.plugins.order)try{var b=_model.plugins.order[a];jwplayer.html5[b]!==undefined?_model.plugins.object[b]=new jwplayer.html5[b](_api,_model.plugins.config[b]):_model.plugins.order.splice(a,a+1)}catch(c){jwplayer.utils.log("Could not setup "+b)}},_model}}(jwplayer),function(a){a.html5.playlist=function(b){var c=[];if(b.playlist&&b.playlist instanceof Array&&b.playlist.length>0)for(var d in b.playlist)isNaN(parseInt(d))||c.push(new a.html5.playlistitem(b.playlist[d]));else c.push(new a.html5.playlistitem(b));return c}}(jwplayer),function(a){a.html5.playlistitem=function(b){var c={author:"",date:"",description:"",image:"",link:"",mediaid:"",tags:"",title:"",provider:"",file:"",streamer:"",duration:-1,start:0,currentLevel:-1,levels:[]};for(var d in c)b[d]!==undefined&&(c[d]=b[d]);return c.levels.length===0&&(c.levels[0]=new a.html5.playlistitemlevel(c)),c}}(jwplayer),function(a){a.html5.playlistitemlevel=function(a){var b={file:"",streamer:"",bitrate:0,width:0};for(var c in b)a[c]!==undefined&&(b[c]=a[c]);return b}}(jwplayer),function(a){a.html5.skin=function(){var b={},c=!1;this.load=function(d,e){new a.html5.skinloader(d,function(a){c=!0,b=a,e()},function(){new a.html5.skinloader("",function(a){c=!0,b=a,e()})})},this.getSkinElement=function(d,e){if(c)try{return b[d].elements[e]}catch(f){a.utils.log("No such skin component / element: ",[d,e])}return null},this.getComponentSettings=function(a){return c?b[a].settings:null},this.getComponentLayout=function(a){return c?b[a].layout:null}}}(jwplayer),function(a){a.html5.skinloader=function(b,c,d){function l(){typeof j!="string"||j===""?m(a.html5.defaultSkin().xml):a.utils.ajax(a.utils.getAbsolutePath(j),function(b){try{if(b.responseXML!==null){m(b.responseXML);return}}catch(c){}m(a.html5.defaultSkin().xml)},function(b){m(a.html5.defaultSkin().xml)})}function m(b){var c=b.getElementsByTagName("component");if(c.length===0)return;for(var d=0;d<c.length;d++){var f=c[d].getAttribute("name"),g={settings:{},elements:{},layout:{}};e[f]=g;var i=c[d].getElementsByTagName("elements")[0].getElementsByTagName("element");for(var j=0;j<i.length;j++)o(i[j],f);var k=c[d].getElementsByTagName("settings")[0];if(k!==undefined&&k.childNodes.length>0){var l=k.getElementsByTagName("setting");for(var m=0;m<l.length;m++){var p=l[m].getAttribute("name"),q=l[m].getAttribute("value"),r=/color$/.test(p)?"color":null;e[f].settings[p]=a.utils.typechecker(q,r)}}var s=c[d].getElementsByTagName("layout")[0];if(s!==undefined&&s.childNodes.length>0){var t=s.getElementsByTagName("group");for(var u=0;u<t.length;u++){var v=t[u];e[f].layout[v.getAttribute("position")]={elements:[]};for(var w=0;w<v.attributes.length;w++){var x=v.attributes[w];e[f].layout[v.getAttribute("position")][x.name]=x.value}var y=v.getElementsByTagName("*");for(var z=0;z<y.length;z++){var A=y[z];e[f].layout[v.getAttribute("position")].elements.push({type:A.tagName});for(var B=0;B<A.attributes.length;B++){var C=A.attributes[B];e[f].layout[v.getAttribute("position")].elements[z][C.name]=C.value}e[f].layout[v.getAttribute("position")].elements[z].name===undefined&&(e[f].layout[v.getAttribute("position")].elements[z].name=A.tagName)}}}h=!1,n()}}function n(){clearInterval(i),k||(i=setInterval(function(){p()},100))}function o(b,c){var d=new Image,f=b.getAttribute("name"),h=b.getAttribute("src"),i;if(h.indexOf("data:image/png;base64,")===0)i=h;else{var l=a.utils.getAbsolutePath(j),m=l.substr(0,l.lastIndexOf("/"));i=[m,c,h].join("/")}e[c].elements[f]={height:0,width:0,src:"",ready:!1},d.onload=function(a){q(d,f,c)},d.onerror=function(a){k=!0,n(),g()},d.src=i}function p(){for(var a in e)if(a!="properties")for(var b in e[a].elements)if(!e[a].elements[b].ready)return;h===!1&&(clearInterval(i),f(e))}function q(a,b,c){e[c].elements[b].height=a.height,e[c].elements[b].width=a.width,e[c].elements[b].src=a.src,e[c].elements[b].ready=!0,n()}var e={},f=c,g=d,h=!0,i,j=b,k=!1;l()}}(jwplayer),function(a){a.html5.api=function(b,c){function i(){f.state==a.api.events.state.PLAYING||f.state==a.api.events.state.BUFFERING?h.pause():h.play()}function j(a){return function(){return f[a]}}function k(b,c,e){return function(){b.loadPlaylist(b.config,!0),b.setupPlugins(),c.setup(b.getMedia().getDisplayElement());var f={id:d.id,version:d.version};e.sendEvent(a.api.events.JWPLAYER_READY,f),playerReady!==undefined&&playerReady(f),window[b.config.playerReady]!==undefined&&window[b.config.playerReady](f),b.sendEvent(a.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:b.playlist}),e.item(b.item)}}var d={},e=document.createElement("div");b.parentNode.replaceChild(e,b),e.id=b.id,d.version=a.version,d.id=e.id;var f=new a.html5.model(d,e,c),g=new a.html5.view(d,e,f),h=new a.html5.controller(d,e,f,g);return d.skin=new a.html5.skin,d.jwPlay=function(a){typeof a=="undefined"?i():a.toString().toLowerCase()=="true"?h.play():h.pause()},d.jwPause=function(a){typeof a=="undefined"?i():a.toString().toLowerCase()=="true"?h.pause():h.play()},d.jwStop=h.stop,d.jwSeek=h.seek,d.jwPlaylistItem=h.item,d.jwPlaylistNext=h.next,d.jwPlaylistPrev=h.prev,d.jwResize=h.resize,d.jwLoad=h.load,d.jwGetItem=j("item"),d.jwGetPosition=j("position"),d.jwGetDuration=j("duration"),d.jwGetBuffer=j("buffer"),d.jwGetWidth=j("width"),d.jwGetHeight=j("height"),d.jwGetFullscreen=j("fullscreen"),d.jwSetFullscreen=h.setFullscreen,d.jwGetVolume=j("volume"),d.jwSetVolume=h.setVolume,d.jwGetMute=j("mute"),d.jwSetMute=h.setMute,d.jwGetStretching=j("stretching"),d.jwGetState=j("state"),d.jwGetVersion=function(){return d.version},d.jwGetPlaylist=function(){return f.playlist},d.jwAddEventListener=h.addEventListener,d.jwRemoveEventListener=h.removeEventListener,d.jwSendEvent=h.sendEvent,d.jwDockSetButton=function(a,b,c,d){f.plugins.object.dock&&f.plugins.object.dock.setButton&&f.plugins.object.dock.setButton(a,b,c,d)},d.jwGetLevel=function(){},d.jwGetBandwidth=function(){},d.jwGetLockState=function(){},d.jwLock=function(){},d.jwUnlock=function(){},f.config.chromeless?setTimeout(k(f,g,h),25):d.skin.load(f.config.skin,k(f,g,h)),d}}(jwplayer);
// !MeAb! c/s/d/e/j/gc.js
typeof console=="undefined"&&(console={log:function(){},debug:function(){}});var gc=function(){var a=function(a){this.name=a};a.prototype={toString:function(){return this.name}};var b=new a("gc");window.GUCCI=b,b.namespace=function(b,c,d){var e=b.split("."),f=window,g=[];for(var h=0;h<e.length;++h){var i=e[h];g.push(i),f[i]==null&&(f[i]=new a(g.join("."))),f=f[i]}return d||c.call(f,f),f},b.widget=function(a,c,d){var e=this.namespace(a,d,!1);b.cl.Page.widgets[a]={ns:e,func:d}},b.i18n=function(){return b.cl.util.Text.get.apply(b.cl.util.Text,arguments)},b.globalData=function(a){return b.cl.util.JSONData.resolv(a)},b.dispatchWidget=function(a,c){for(var d in b.cl.Page.widgets){var e=b.cl.Page.widgets[d];if(e.ns[c]){try{var f=e.ns[c](a)}catch(g){console.log("dispatchWidget:"+g+" "+g.description)}f&&typeof f.css=="function"&&(a=f)}}},b.nodeReady=function(a){b.dispatchWidget(a,"nodeReady"),b.publish("nodeReady",a)},b.ready=function(a){b.dispatchWidget(a,"ready"),b.publish("ready",a)};var c={},d={},e=$(document);b.publish=function(a,b){d[a]=b,a="gc:"+a,e.trigger(a,[b])},b.subscribeCountFor=function(a){return c[a].length},b.subscribe=function(a,b){var d=this;a=a.replace(/\s/g,"").split(",");for(var f=0;f<a.length;++f){var g=a[f];c[g]=c[g]||[],c[g].push(b),g="gc:"+g,b.displayName||(b.displayName="EventHandler$"+g),e.bind(g,function(a,c){b.call(d,c)})}},b.subscribeAndInit=function(a,c){b.subscribe(a,c);var e=d[a];e&&c(e)},b.live=function(a,b,c){e.delegate(a,b,c)},b.alert=function(a,c){c||(c={}),c.raw||(a=b.i18n(a)),b.cl.widgets.dialog.alert(a,c)},b.flashInfo=function(a,c){c||(c={}),c.raw||(a=b.i18n(a)),b.cl.widgets.flashInfo.showMessage(a,c)},b.globalData$=function(a){try{return b.cl.util.JSONData.resolv(a)}catch(c){return null}};var f={};b.doOnceInTimeout=function(a,b,c){f[a]&&clearTimeout(f[a]),c==null&&(c=0),f[a]=setTimeout(b,c)};var g=[];b.init=function(a,c){b.namespace(a,c)},typeof jQuery!="undefined"&&(jQuery.browser.msie6=jQuery.browser.msie&&jQuery.browser.version.substr(0,1)=="6");var h;return window.Prototype=h,b}();$(function(){gc.ready($(document)),gc.nodeReady($(document))});
// !MeAb! c/s/d/e/j/g/c/Page.js
gc.namespace("gc.cl",function(){var a=null;this.Page={needs:function(b){if(a==null){a={};var c=($("body").attr("class")||"").split(/\s+/);for(var d=0;d<c.length;++d)a[c[d]]=!0}return a[b]||!1},controllers:[],widgets:{}}});
// !MeAb! c/s/d/e/j/g/c/u/Ajax.js
gc.namespace("gc.cl.util",function(){this.Ajax={wrap_success:function(a){return function(b,c){typeof b!="object"&&(b=$(b).filter(":not(undefined)"),gc.nodeReady(b));try{a(b,c)}catch(d){console.log("AJAX callback failed:",d)}}},_markAsAjax:function(a){return a.search(/format=ajax/)==-1&&(a+=(a.search(/\?/)==-1?"?":"&")+"format=ajax"),a},_call:function(a,b,c,d){b=this._markAsAjax(b),$[a](b,c,this.wrap_success(d))},ajax:function(a){return a.success=this.wrap_success(a.success),a.url=this._markAsAjax(a.url),$.ajax(a)},get:function(a,b){return this._call("get",a,{},b)},post:function(a,b,c){return a=a.replace(/^https?:\/\/[^\/]+\//,"/"),this._call("post",a,b,c)}}});
// !MeAb! c/s/d/e/j/g/c/u/JSONData.js
gc.namespace("gc.cl.util",function(a){var a=this,b={},c=!0,d={},e=function(a,b){b=b||window;var c=a.split("."),d=_(c).select(function(a){return b=!b||b[a],typeof b!="undefined"});return{found:d.length==c.length,value:b}};this.JSONData={subscribe:function(a,c){d[a]=(d[a]||[]).concat([c]);var f=e(a,b);f.found&&c(f.value)},addGlobalData:function(a){return this.processSubscriptions(a)},processSubscriptions:function(a){a?a=$(a):a=$(document);var c=function(){var a=$(this).html().slice("<!-- ".length,-" -->".length),c=JSON.parse(a.replace(/119234e55bf67939cb54bcf1f8e6e0bb/g,"--")),f=[];_(d).each(function(a,b){var d=e(b,c);d.found&&f.push({reference:d,funcs:a})}),b=jQuery.extend(!0,b,c),_(f).each(function(a){_(a.funcs).each(function(b){b(a.reference.value)})}),$(this).remove()},f="div[class^='js_globaldata']";a.filter(f).each(c),a.find(f).each(c)},resolv:function(a){c&&(c=!1,this.processSubscriptions());if(a in b)return b[a];throw"Cannot find global data "+a+":"+JSON.stringify(_(b).keys())}},gc.subscribe("nodeReady",function(b){return c=!1,a.JSONData.processSubscriptions(b)})});
// !MeAb! c/s/d/e/j/g/c/u/Delegator.js
gc.namespace("gc.cl.util",function(a){this.Delegator=function(b,c){if(b.__CLASS__)var d=new(Joose.Class.meta.classNameToClassObject(b.__CLASS__));else var d=new function(){};var e=Array.isArray,f=e||function(a){return!!(a&&a.concat&&a.unshift&&!a.callee)};d.__obj__=b,d.getParent=function(){return c};for(var g in b){if(g=="__CLASS__")continue;var h=b[g],i=Joose.S.uppercaseFirst(g);if(f(h))d["get"+i]=function(b,c,e){return function(){var b=[];for(var f=e.length-1;f>=0;--f)b[f]=a.Delegator(e[f],d);return this["get"+c]=function(){return b},b}}(g,i,h);else if(typeof h=="object")d["get"+i]=function(b,c){return function(){var e=a.Delegator(this.__obj__[b],d);return this["get"+c]=function(){return e},e}}(g,i);else{var j;(j=d["set"+i])?j.apply(d,[h]):d["get"+i]=function(a){return function(){return this.__obj__[a]}}(g)}}return d}});
// !MeAb! c/s/d/e/j/g/c/u/Query.js
gc.namespace("gc.cl.util",function(){this.Query=function(a){this.queryString=a!=null?a:window.location.search,this.query=this.parse()},this.Query.prototype={asHash:function(){return this.query},normalize:function(a){return a==null?"":(a=""+a,a)},param:function(a,b){return b!=null&&a!=""&&a!=null&&(this.query[this.normalize(a)]=b),this.query[this.normalize(a)]},parse:function(){var a=this.queryString;a=a.substr(1),a||(a=""),parts=a.split("&");var b={};for(var c=0;c<parts.length;c++){var d=parts[c].split("=");if(d[0]!=""){var e=d.shift(),f=d.join("");b[this.normalize(decodeURIComponent(e))]=decodeURIComponent(f)}}return QueryData=b,b},toString:function(){var a=[];for(var b in this.query){var c=b;c!=null&&c!=""&&(c=this.normalize(c),a.push(encodeURIComponent(c)+"="+encodeURIComponent(this.query[b])))}return a.join("&")}}});
// !MeAb! c/s/d/e/j/g/c/u/URL.js
gc.namespace("gc.cl.util",function(){this.URL={to:function(a,b){var c=[];b&&_(b).each(function(a,b){c.push(b+"="+encodeURIComponent(a))});var d=gc.globalData("urls")[a];if(!d)throw"Unknown URL "+a;return c.length&&(d=d+"?"+c.join("&")),d},imageBasePath:function(){return gc.globalData("imageBasePath")}}});
// !MeAb! c/s/d/e/j/g/c/u/Text.js
gc.namespace("gc.cl.util",function(){this.Text=function(){this.data={}};var a;this.Text.get=function(b,c){return a?a.get(b,c):(a=new this,a.get(b,c))},this.Text.prototype={get:function(a){var b=this._get(a),c=Array.prototype.slice.call(arguments);return c.shift(),$.validator.format(b,c)},_get:function(a){var b=gc.globalData("i18n")[a];return typeof b=="undefined"&&a||b}}});var i18n=function(a){return bf.cl.util.Text.get(a)};
// !MeAb! c/s/d/e/j/g/c/u/AjaxMultiBlockDistributor.js
gc.namespace("gc.cl.util",function(a){a.AjaxMultiBlockDistributor={perform:function(a){gc.cl.util.Ajax.ajax({type:"GET",url:a,success:function(a){var a=$(a);a.find(".block").each(function(){var a=$($(this).dataset("target"));$(this).children().appendTo(a.empty())})},error:function(a,b,c){}})}}});
// !MeAb! c/s/d/e/j/g/c/u/Synchronizer.js
gc.namespace("gc.cl.util",function(a){Class("gc.cl.util.Synchronizer",{does:Joose.Singleton,has:{groups:{is:"rw",init:{}}},classMethods:{subscribe:function(a,b,c,d){this.getInstance().subscribe(a,b,c,d)},notify:function(a,b,c,d){this.getInstance().notify(a,b,c,d)}},methods:{subscribe:function(a,b,c,d){a||(a="_all"),this.groups[a]||(this.groups[a]={}),this.groups[a][c]||(this.groups[a][c]=[]),this.groups[a][c].push({widget:b,func:d})},notify:function(a,b,c,d,e){this.groups[a]&&this.groups[a][c]&&_(this.groups[a][c]).each(function(c){b!=c.widget&&c.func(d,e||a)}),a!="_all"&&this.notify("_all",b,c,d,a)}}})});
// !MeAb! c/s/d/e/j/g/c/u/Cookie.js
gc.namespace("gc.cl.util",function(){this.Cookie={get:function(a){var b=document.cookie,c=a+"=",d=b.indexOf("; "+c);if(d==-1){d=b.indexOf(c);if(d!=0)return""}else d+=2;var e=document.cookie.indexOf(";",d);e==-1&&(e=b.length);var f=unescape(b.substring(d+c.length,e));return f==";"?"":f},set:function(a,b,c,d){var e=a+"="+escape(b)+(c?"; expires="+c.toGMTString():"")+"; path=/"+(d?"; secure":"");document.cookie=e},setUnescaped:function(a,b,c,d){var e=a+"="+b+(c?"; expires="+c.toGMTString():"")+"; path=/"+(d?"; secure":"");document.cookie=e}}});
// !MeAb! c/s/d/e/j/g/c/i/tracking.js
gc.init("gc.cl.init.tracking",function(){gc.cl.util.JSONData.subscribe("tracking",function(a){try{$("body").append(a.join("\n")),window.xtn2||(window.xtn2=""),window.xtpage&&xt_med("F",window.xtn2,window.xtpage)}catch(b){}})});
// !MeAb! /c/s/d/e/j/g/b/f/p/FEBrandVariantProduct.js
gc.namespace("gc.bo.fe.product",function(a){Role("gc.bo.fe.product.FEBrandVariantProduct",{methods:{getShorterName:function(){return this._data.shorterName},getProps:function(){var a=this._data.props;return a||[]},hasPrice:function(){return this._data.price.value>0},fromWhichBucket:function(){var a=gc.bo.Basket.getItemById(this.getID()),b=a?a.quantity:0,c=this.getStock();return c.bucket1.quantity-b>0?"bucket1":c.bucket2.quantity-(b-c.bucket1.quantity)>0?"bucket2":c.bucket3.quantity-(b-c.bucket1.quantity-c.bucket2.quantity)>0?"bucket3":"unavailable"}}})});
// !MeAb! c/s/d/e/j/g/b/f/p/FEProductBase.js
gc.namespace("gc.bo.fe.product",function(a){Class("gc.bo.fe.product.FEProductBase",{has:{_data:{is:"rw",init:{}},_master:{is:"rw"},_id:{is:"rw",init:"-"}},methods:{initialize:function(a,b,c){this._id=a,this._data=b?b:{},this._master=c},getMaster:function(){return this},getOrderable:function(){return!0},isWebExclusive:function(){return!1},isPreorderble:function(){return!1},getPreOrderDate:function(){return null},isInStockSoon:function(){return!1},getRelatedContent:function(){return null},getID:function(){return this._id},getName:function(){return this._data.name},getUrl:function(){return this._data.url},getShortUrl:function(){return this._data.shorturl},getShareUrl:function(){return this._data.shareurl},getImages:function(a){var b=this,c=this._data.images[a];if(!c)return[];var d=0;return _(c).map(function(c){return{letter:c,url:b.getImageUrl(a,c),idx:d++}})},getImageUrl:function(a,b){b=b||"A",b.replace(/^\*/,"");var c=this._data.images[a];if(c&&_.indexOf(c,b)!=-1){var d=this._data.imageurl;return this._data.imageurl.replace(/{{format}}/g,a).replace(/{{letter}}/g,b).replace(/{{qlt}}/g,gc.globalData("JPEGImageQuality")).replace(/{{width}}/g,a.replace(/x.*$/,""))}return["http://placehold.it",a,"e8117f","ffffff"].join("/")},isAvailable:function(){return!0}}})});
// !MeAb! c/s/d/e/j/g/b/f/p/FESubscribeable.js
gc.namespace("gc.bo.fe.product",function(a){Role("gc.bo.fe.product.FESubscribeable",{methods:{subscribeUpdate:function(a){this._updateFunctions||(this._updateFunctions=[]),this._updateFunctions.push(a)},update:function(){this.getVariants&&this.getVariants()&&_(this.getVariants()).each(function(a){a.update()});if(this._updateFunctions){var a=this;_(this._updateFunctions).each(function(b){b(a)})}}}})});
// !MeAb! c/s/d/e/j/g/b/f/p/FEVariantProduct.js
gc.namespace("gc.bo.fe.product",function(a){Class("gc.bo.fe.product.FEVariantProduct",{isa:gc.bo.fe.product.FEProductBase,does:gc.bo.fe.product.FEBrandVariantProduct?[gc.bo.fe.product.FESubscribeable,gc.bo.fe.product.FEBrandVariantProduct]:[gc.bo.fe.product.FESubscribeable],override:{initialize:function(a,b,c){b.images=b.images||c.getImageUrls()[b.color.value].images,b.imageurl=b.imageurl||c.getImageUrls()[b.color.value].imageurl,this.SUPER(a,b,c)}},methods:{getMaster:function(){return this._master},getOrderable:function(){return!!this.getStock().sellable||this.isPreorderble&&this.isPreorderble()},getSize:function(){return this._data.size.value},getColor:function(){return this._data.color.value},getPriceDisplay:function(){return this._data.price.display},getMsrpPrice:function(){return this._data.price.msrp},getStock:function(){var a=this._data.stock;return a||{}},isInStockSoon:function(){return this._data.instocksoon},isAvailable:function(a){if(this.isPreorderble&&this.isPreorderble())return!0;a=a||1;var b=gc.bo.Basket.getItemById(this.getID()),c=b?b.quantity:0;return this.getStock().quantity>=a+c},isAvailableIncludingBasketItems:function(a){if(this.isPreorderble&&this.isPreorderble())return!0;a=a||1;var b=gc.bo.Basket.getItemById(this.getID()),c=b?b.quantity:0;return this.getStock().quantity>=a-c},getRelatedContent:function(){return this._data.relatedContent}}})});
// !MeAb! c/s/d/e/j/g/b/f/p/FEDummyProduct.js
gc.namespace("gc.bo.fe.product",function(a){Class("gc.bo.fe.product.FEDummyProduct",{isa:gc.bo.fe.product.FEProductBase,does:[gc.bo.fe.product.FESubscribeable],methods:{initialize:function(a,b,c){var d=this;this.nearest=a,this._master=c,_(["color","size"]).each(function(c){d[c]=b[c]||a["get"+Joose.S.uppercaseFirst(c)]()})},getMaster:function(){return this._master},getData:function(){return null},getOrderable:function(){return!1},getID:function(){return"Dummy_"+(this.color||"")+"_"+(this.size||"")},getStock:function(){return{}},getName:function(){return this.nearest.getName()},getSize:function(){return this.size},getColor:function(){return this.color},getPriceDisplay:function(){return""},getMsrpPrice:function(){return""},getImages:function(a){return this.nearest.getImages(a)},getImageUrl:function(a,b){return this.nearest.getImageUrl(a,b)},isAvailable:function(){return!1},getShortUrl:function(){return this.shorturl}}})});
// !MeAb! c/s/d/e/j/g/b/f/p/FEProductSet.js
gc.namespace("gc.bo.fe.product",function(a){Class("gc.bo.fe.product.FEProductSet",{isa:gc.bo.fe.product.FEProductBase,does:[gc.bo.fe.product.FESubscribeable],methods:{getOrderable:function(){return!1},isAvailable:function(){return!1}}})});
// !MeAb! c/s/d/e/j/g/b/f/p/FEMasterProduct.js
gc.namespace("gc.bo.fe.product",function(a){Class("gc.bo.fe.product.FEMasterProduct",{isa:gc.bo.fe.product.FEProductBase,does:[gc.bo.fe.product.FESubscribeable],methods:{initialize:function(a){this.id=a,this._style=style=gc.globalData("Styles")[a],this._variants={};if(typeof style.values=="undefined")return;var b=this,c=style.values,d=[];_(["color","size"]).each(function(a){c[a]&&_(c[a]).keys().length&&d.push(a)});var e=function(a,b){if(b>=d.length)return a;var f=d[b],g=_(c[f]);return _(g.keys()).each(function(c){a[c]=e({},b+1)}),a},f=e({},0);_(style.variants).each(function(a,c){var e=new gc.bo.fe.product.FEVariantProduct(c,a,b);b._variants[c]=e;var g=f,h=null;_(d).each(function(a){h&&(g=g[h]),h=e["get"+Joose.S.uppercaseFirst(a)]()}),g[h]=e});var g=style.orders,h=function(a,c){var e=null,f=[],i=d[c];_(g[i]).each(function(g,j){var k=a[g.value];if(c+1<d.length){h(k,c+1);return}if(!k._id)if(e){var l={};l[i]=g.value,l=new gc.bo.fe.product.FEDummyProduct(e,l,b),a[g.value]=b._variants[l.getID()]=l}else f.push(g.value);else _(f).each(function(c){var d={};d[i]=c,d=new gc.bo.fe.product.FEDummyProduct(k,d,b),a[c]=b._variants[d.getID()]=d}),f=[],e=k})},i=function(a){var b={};_(a).each(function(a,c){_(a).each(function(a,d){a._data.images&&a._data.images!={}&&!b[c]&&(b[c]=a._data.images)})}),_(a).each(function(c,d){_(c).each(function(c,e){(!c._data.images||_(c._data.images).length===0)&&b[d]&&(a[d][e]._data.images=b[d])})})};h(f,0),i(f)},getMaster:function(){return this},getVariants:function(){return this._variants},pickFirstAvailableVariantForColor:function(a){var b=this;return _(b.getVariants()).detect(function(b){return b.getColor()==a&&b.isAvailable()})},pickVariant:function(a){var b=this,c={},d=b._style.orders;_(["color","size"]).each(function(b){d[b]&&d[b].length&&(c[b]=a[b]||_(d[b]).first().value)});var e=_(b.getVariants()).values();return _(a).each(function(a,b){e=_(e).select(function(c){return""+a==""+c["get"+Joose.S.uppercaseFirst(b)]()})}),_(e).first()},getID:function(){return this.id},__getDim:function(a){if(!this["_get"+a]){var b={},c=0;_(this.getVariants()).values().each(function(d){b[d["get"+a]()]||(b[d["get"+a]()]=c++)});var d=[];_(b).each(function(a,b){d[a]=b}),this["_get"+a]=d}return this["_get"+a]},__getSizes:function(){return this._style.orders.size},getAvailableSizes:function(a){var b=_(this.getAvailableVariants()).map(function(b){if(b.getColor()==a)return b.getSize()});return _(b).compact()},__getColors:function(){return this._style.orders.color},getImageUrls:function(){return this._style.imageurls},getAvailableColors:function(){var a=_(this.getAvailableVariants()).map(function(a){return a.getColor()});return _(a).uniq()},getAvailableVariants:function(){return this.__availableVariant||(this.__availableVariant=_(this.getVariants()).select(function(a){return a.getOrderable()})),this.__availableVariant}}})});
// !MeAb! c/s/d/e/j/g/b/f/FEProductHandling.js
gc.namespace("gc.bo.fe.product",function(a){a._products={},a._subscriptions={},gc.cl.util.JSONData.subscribe("Styles",function(b){_(b).each(function(b,c){if(!a._products[c]){a._products[c]={};if(b.isproductset=="true")a._products[c].product=new gc.bo.fe.product.FEProductSet(c,b),a.notify(a._products[c].product);else try{var d=new gc.bo.fe.product.FEMasterProduct(c);a._products[c].product=d,a.notify(a._products[c].product),_(d.getVariants()).each(function(b){a._products[b.getID()]={product:b},a.notify(a._products[b.getID()].product)})}catch(e){}}!!a._products[c].product&&b.md5!=a._products[c].md5&&(a._products[c].md5=b.md5,a._products[c].product.update(),a.notify(a._products[c].product))})}),a.subscribe=function(b,c){a._subscriptions[b]||(a._subscriptions[b]=[]),a._subscriptions[b].push(c),a._products[b]&&a.notify(a._products[b].product)},a.notify=function(b){var c=a._subscriptions[b.getID()];if(_.isEmpty(c))return;_(c).each(function(a){typeof a=="function"&&a(b)})},a.get=function(b){return a._products[b].product}});
// !MeAb! c/s/d/e/j/g/b/Basket.js
gc.namespace("gc.bo",function(a){gc.cl.util.JSONData.subscribe("Basket",function(a){gc.bo.Basket.get().basket=a,gc.bo.Basket.publish()}),Class("gc.bo.Basket",{does:Joose.Singleton,classMethods:{get:function(){return this.getInstance()},getItems:function(){return this.getInstance().getItems()},getItemById:function(a){return this.getInstance().getItemById(a)},subscribe:function(a){this.getInstance().subscribe(a)},publish:function(){this.getInstance().publish()}},methods:{getBasket:function(){if(!this.basket)try{this.basket=gc.globalData("Basket")}catch(a){console.log(a.toString())}return this.basket},getItems:function(){var a=this.getBasket();return a?_(a.items).select(function(a){return a.sku}):[]},getItemById:function(a){var b=this.getItems(),c=null;for(var d=0;d<b.length;++d)if(b[d].sku==a){c=b[d];break}return c},subscribe:function(a){this._subscriptions||(this._subscriptions=[]),this._subscriptions.push(a)},publish:function(){var a=this;this._subscriptions&&_(this._subscriptions).each(function(b){b(a)})}}})});
// !MeAb! /c/s/d/e/j/y/b/s/point.js
gc.namespace("ysl.bo.storelocator",function(){Class("ysl.bo.storelocator.Point",{has:{id:{is:"rw"},name:{is:"rw"},x:{is:"rw"},y:{is:"rw"}},classMethods:{getType:function(){return this.meta.getName().replace(/.*\./,"")}},methods:{getType:function(){return this.meta.getName().replace(/.*\./,"")},getLinkTitle:function(){return this.getName()},show:function(){return this.showPoint()},showPoint:function(a){a=a||{x:"getX",y:"getY"};var b=$("<li><a><span></span></a></li>"),c=0,d=0;this.getType().toLowerCase()=="continent"&&(c=-15,d=-13);var e=b.find("a");if(this.getType().toLowerCase()=="store"){e.addClass("js_clicktrack");var f=$(".js_clicktrack_params").text().replace(/data-trackparams=/,"");f.length>0&&(f=f.replace(/\$1/,this.getParent().getParent().getName()),f=f.replace(/\$2/,this.getParent().getName()),f=f.replace(/\$3/,this.getName())),e.dataset("trackparams",f)}return e.attr({href:Weet.setHref("storelocator",this.getStorelocator()),title:this.getLinkTitle()}).css({left:this[a.x]()+c+"px",top:this[a.y]()+d+"px"}).find("span").html(this.getName()),this.getType().toLowerCase()=="city"&&this.getLeftAlign()==="true"&&e.addClass("left_align"),this.getId()==Weet.get("storelocator").Store&&e.addClass("current"),{card:b}},before:function(a,b){a.addClass(this.getType().toLowerCase()),b.empty()},reset:function(a,b){a.hide().removeClass(this.getType().toLowerCase()),b.hide()},getImage:function(){var a=this.getType().toLowerCase(),b="all.jpg";return a!="world"&&(b=this.getMap()),gc.cl.util.URL.imageBasePath()+"static/storelocator/"+a+"/"+b}}})});
// !MeAb! /c/s/d/e/j/y/b/s/world.js
gc.namespace("ysl.bo.storelocator",function(){Class("ysl.bo.storelocator.World",{isa:ysl.bo.storelocator.Point,classMethods:{getItem:function(a,b){return b}},has:{continents:{is:"rw"}},methods:{getStorelocator:function(){return{Continent:"WORLD"}},getChildren:function(){return this.getContinents()}}})});
// !MeAb! /c/s/d/e/j/y/b/s/continent.js
gc.namespace("ysl.bo.storelocator",function(){Class("ysl.bo.storelocator.Continent",{does:Joose.Storage,isa:ysl.bo.storelocator.Point,classMethods:{getItem:function(a,b){return a.Continent=="WORLD"?b:_(b.getContinents()).detect(function(b){return a.Continent==b.getId()})}},has:{id:{is:"rw"},name:{is:"rw"},x:{is:"rw"},y:{is:"rw"},showCountries:{is:"rw"}},methods:{getStorelocator:function(){return{Continent:this.getId()}},getChildren:function(){return this.getCountries()},show:function(){if(this.getShowCountries()){var a=this;return{card:_(this.getCountries()).map(function(b){return a.showPoint.apply(b,[{x:"getWx",y:"getWy"}]).card}),nav:this.showPoint().card}}return this.showPoint()},getImage:function(){var a="all.jpg";return this.getType().toLowerCase()!="world"&&(a=this.getMap()),gc.cl.util.URL.imageBasePath()+"static/storelocator/continent/"+a},getLeftAlign:function(){return"false;"}}})});
// !MeAb! /c/s/d/e/j/y/b/s/country.js
gc.namespace("ysl.bo.storelocator",function(){Class("ysl.bo.storelocator.Country",{does:Joose.Storage,isa:ysl.bo.storelocator.Point,classMethods:{getItem:function(a,b){var c=_(_(b.getContinents()).detect(function(b){return a.Continent==b.getId()}).getCountries());return c.detect(function(b){return a.Country==b.getId()})}},has:{id:{is:"rw"},name:{is:"rw"},x:{is:"rw"},y:{is:"rw"},showCities:{is:"rw"}},methods:{getStorelocator:function(){return{Continent:this.getParent().getId(),Country:this.getId()}},getChildren:function(){return this.getCities()},show:function(){if(this.getShowCities()){var a=this;return{card:_(this.getCities()).map(function(b){return a.showPoint.apply(b,[{x:"getWx",y:"getWy"}]).card}),nav:this.showPoint().card}}return this.showPoint()},getImage:function(){var a=this.getMap();return a!=""?gc.cl.util.URL.imageBasePath()+"static/storelocator/country/"+a:this.getParent().getImage()},getLeftAlign:function(){return"false;"}}})});
// !MeAb! /c/s/d/e/j/y/b/s/city.js
gc.namespace("ysl.bo.storelocator",function(){Class("ysl.bo.storelocator.City",{isa:ysl.bo.storelocator.Point,classMethods:{getItem:function(a,b){var c=_(_(b.getContinents()).detect(function(b){return a.Continent==b.getId()}).getCountries()),d=_(c.detect(function(b){return a.Country==b.getId()}).getCities());return d.detect(function(b){return a.City==b.getId()})}},has:{id:{is:"rw"},name:{is:"rw"},x:{is:"rw"},y:{is:"rw"},wx:{is:"rw"},wy:{is:"rw"}},methods:{getStorelocator:function(){return{Continent:this.getParent().getParent().getId(),Country:this.getParent().getId(),City:this.getId()}},getChildren:function(){return this.getStores()},getImage:function(){var a=this.getMap();return a!=""?gc.cl.util.URL.imageBasePath()+"static/storelocator/city/"+a:this.getParent().getImage()}}})});
// !MeAb! /c/s/d/e/j/y/b/s/store.js
gc.namespace("ysl.bo.storelocator",function(){Class("ysl.bo.storelocator.SelectedStore",{methods:{initialize:function(a){this.store=a},getChildren:function(){return[this]},getParent:function(){return this.store.getParent()},getCollection:function(){return this.store.getCollection()},getId:function(){return this.store.getId()},getType:function(){return this.store.getType()},getVisuals:function(){return this.store.getVisuals()},show:function(){var a=this.store,b=$("#storelocator"),c=b.find("#card").add("#image"),d=b.find("#details").add("#image"),e=d.find("#more"),f=d.find("#shopThumbs"),g=d.find("#eventTitle"),h=d.find("#eventText");d.find("#title").html(a.getCollection());var i="",j=a.getZipcode();j==="No zip code"&&(j="");var i=a.getStreet()+"<br />"+j+" "+a.getCity()+"<br />"+a.getParent().getParent().getName()+"<br />Phone: "+a.getPhone()+"<br />"+a.getOpeningHours();d.find("#address").html(i),a.getDirection()!=""&&d.find("a.map").attr("href",a.getDirection()).show(),a.getEmail()!=""&&d.find("a.email").attr("href","mailto:"+a.getEmail()).show(),a.getEventTitle()!=""&&(g.html(a.getEventTitle()),h.html(a.getEventText()),e.show());if(a.getVisuals().length>1){var k=this.store.getParent().getName().toLowerCase().replace(/\s/g,""),l=gc.cl.util.URL.imageBasePath()+"static/storelocator/";_(a.getVisuals()).each(function(a){f.append('<li><img src="'+l+"store/"+k+"/"+a.__obj__.replace(/\s/g,"")+'" alt="" /></li>')}),e.show(),f.find("img:first").addClass("active")}c.fadeOut("slow",function(){d.show()});var m=$("<ul />");return _(this.store.getParent().getChildren()).each(function(a){m.append(a.showPoint().card)}),{card:[],nav:m.children()}},before:function(a,b){a.addClass(this.store.getType().toLowerCase()),b.empty();return},reset:function(a,b){a.hide().removeClass(this.store.getType().toLowerCase()),a.find("#details").add("#more").hide(),a.find("#eventTitle").add("#eventText").html(""),a.find("#shopThumbs").empty(),b.hide();return},getImage:function(){var a=this.store.getVisuals()[0]?this.store.getVisuals()[0].__obj__:"";if(a!=""){var b=this.store.getParent().getName().toLowerCase().replace(/\s/g,"_").replace(/\//g,""),c=gc.cl.util.URL.imageBasePath()+"static/storelocator/";return c+"store/"+b+"/"+a.replace(/\s/g,"")}return this.getParent().getImage()}}}),Class("ysl.bo.storelocator.Store",{isa:ysl.bo.storelocator.Point,classMethods:{getItem:function(a,b){var c=_(_(b.getContinents()).detect(function(b){return a.Continent==b.getId()}).getCountries()),d=_(c.detect(function(b){return a.Country==b.getId()}).getCities()),b=_(d.detect(function(b){return a.City==b.getId()}).getStores());return new ysl.bo.storelocator.SelectedStore(b.detect(function(b){return a.Store==b.getId()}))}},has:{id:{is:"rw"},name:{is:"rw"},x:{is:"rw"},y:{is:"rw"}},methods:{getStorelocator:function(){return{Continent:this.getParent().getParent().getParent().getId(),Country:this.getParent().getParent().getId(),City:this.getParent().getId(),Store:this.getId()}},getDisplayTitle:function(a){return this.getName()+a},getLinkTitle:function(){return this.getDisplayTitle(", ")},getLeftAlign:function(){return"false;"}}})});
// !MeAb! /c/s/d/e/j/y/c/i/timeToUpdate.js
gc.init("ysl.cl.init.timeToUpdate",function(a){$.browser.msie&&parseInt($.browser.version,10)<7&&(location.href="/default/static/time_to_update")});
// !MeAb! /c/s/d/e/j/y/c/i/selector.js
gc.init("ysl.cl.init.selector",function(a){Class("ysl.cl.init.selector.Selector",{methods:{initialize:function(a){this.base=a,this.subscriptions={},this.size=null,this.color=null,this.fetchProduct(),this.selectors={},this.options={};var b=this;$(".js_options select").each(function(){var a=$(this),c=a.attr("name");b.selectors[c]=a,a.next().find(".js_option").each(function(){$option=$(this),b.options[c]||(b.options[c]={}),b.options[c][$option.dataset("value")]=$option}),a.change(function(d,e){a=$(this),b[c]=$(this).val(),(!e||e.pickVariant)&&b.pickVariant(),b.updateSelector()})}),gc.bo.Basket.subscribe(function(){b.updateSelector()})},fetchProduct:function(){var a=this.base.dataset("style");a||(a=this.base.closest("[data-style]").dataset("style")),this._product=gc.bo.fe.product.get(a)},start:function(a){return a&&a.color?this.color=a.color:this.selectors.color.length>0&&(this.color=this.selectors.color.val()),a&&a.size?this.size=a.size:this.selectors.size.length>0&&(this.size=this.selectors.size.val()),this.pickAvailableVariant(),this.updateSelector(),this.variant},pickVariant:function(){this.variant=this._product.pickVariant({color:this.color,size:this.size});var a=this.variant.getColor(),b=this.variant.getSize(),c=$(".js_options select.size").val(b).trigger("change",{pickVariant:!1}),d=$(".js_options select.color").val(a).trigger("change",{pickVariant:!1});this.color=a,this.size=b,this.updateWeet(),this.showVariantName(),this.showVariantPrice();var e=this;this.subscriptions.change&&$.each(this.subscriptions.change,function(a,b){b(e.variant)})},pickAvailableVariant:function(){var a=this._product.pickVariant({color:this.color,size:this.size});a&&!a.isAvailable()&&(a=this._product.pickFirstAvailableVariantForColor(this.color)||a),this.color=a.getColor(),this.size=a.getSize(),this.pickVariant()},updateWeet:function(){var a=this._product.getMaster().getID();Weet.set("products."+a,{size:this.size,color:this.color})},updateSelector:function(){var a=this;_(this.options).each(function(a){_(a).each(function(a){a.addClass("unavailable")})}),_(this._product.getAvailableColors()).each(function(b){a.options.color&&a.options.color[b].removeClass("unavailable")}),_(this._product.getAvailableSizes(this.color)).each(function(b){a.options.size&&a._product.pickVariant({color:a.color,size:b}).isAvailable()&&a.options.size[b].removeClass("unavailable")}),!Modernizr.touch&&_(this.selectors).each(function(b){var c=$(b),d=c.attr("name"),e=c.next().find(".pull_down_text");a.options[d][a[d]].hasClass("unavailable")?e.addClass("unavailable"):e.removeClass("unavailable")})},showVariantName:function(){$(".js_variant_name").html(this.variant.getName())},showVariantPrice:function(){var a=$("#content .js_price"),b=this.variant.getPriceDisplay();b.length?(a.text(b),a.css("visibility","visible")):a.css("visibility","hidden")},change:function(a){this.subscriptions.change||(this.subscriptions.change=[]),this.subscriptions.change.push(a)}}})});
// !MeAb! /c/s/d/e/j/y/c/i/product_images.js
gc.init("ysl.cl.init.productImages",function(a){Class("ysl.cl.init.productImages.ProductImages",{methods:{initialize:function(a,b,c){var d=this;this.$base=a,this.$detail=this.$base.find(".js_detail div:eq(0)"),this.$thumbs=this.$base.find(".js_altviews"),this.settings=this.settings(),this.variant=c,this.transformDiv(),this.$base.is(".js_product_zoom")&&(this.buildZoomElements(),this.initZoomEvents()),b&&(b.change(function(a){d.change(a)}),this.change(c))},transformDiv:function(){if(!this.$detail.is(".js_div")){this.$detail.find("img").length>0&&(this.$detail=this.$detail.find("img"));return}var a=$("<img/>").dataset("format",this.$detail.dataset("format")).dataset("viewtype",this.$detail.dataset("viewtype")).attr("width",this.$detail.width()).attr("height",this.$detail.height()).attr("alt",$(".js_variant_name").text());this.$detail.replaceWith(this.$detail=a)},updateSrcs:function(){var a=this;this.$base.find("img").each(function(b,c){c=$(c),c.attr("src",a.getImageSrc(c.dataset("format"),c.dataset("viewtype")))})},handleClickOnThumbs:function(){var a=this;this.$thumbs.find("a").click(function(b){b.preventDefault(),this.blur();var c=$(this).find("img"),d=a.$detail.dataset("format"),e=c.dataset("viewtype");a.$base.dataset("viewtype",e),$(this).parent().addClass("active").siblings().removeClass("active");var f=a.getImageSrc(d,e);if(a.$detail.attr("src")===f)return;a.$detail.attr("src",f);var g=a.getImageSrc(a.settings.big.format,e);a.$zoomPicture.attr("src",g).dataset("viewtype",e)})},buildZoomElements:function(){var a=this,b=this.$base.offset(),c=this.$detail.dataset("viewtype"),d=this.getImageSrc(this.settings.big.format,c);this.$zoomBox=$("<div/>").css({width:this.settings.box.width+"px",height:this.settings.box.height+"px",position:"absolute",left:"0px",top:"0px",display:"none",overflow:"hidden",zIndex:3}).appendTo(this.$base),this.$zoomPicture=$("<img/>").attr("src",d).dataset({viewtype:c}).css({width:this.settings.big.width+"px",height:this.settings.big.height+"px",position:"absolute",cursor:"move"}).appendTo(this.$zoomBox),this.$zoomClose=$("<a/>").attr({id:"zoomout",href:"javascript://"}).addClass("button small").html(gc.i18n("product.zoomout")).appendTo(this.$zoomBox).click(function(){return a.$zoomBox.hide(),!1})},initZoomEvents:function(){var a=this;$("#zoomin").removeClass("hidden").click(function(b){a.updateZoomBoxPosition(),a.centerZoomPicturePosition(),a.$zoomBox.show(),a.zoomMaxPos={left:a.$zoomBox.width()-a.$zoomPicture.width(),top:a.$zoomBox.height()-a.$zoomPicture.height()}});var b=function(b){var c=b.pageX-a.dragStartPos.x,d=b.pageY-a.dragStartPos.y,e=a.settings.big.toplimit||0,f=a.settings.big.botlimit||0,g=Math.max(a.zoomMaxPos.left,Math.min(0,Math.round(a.zoomStartPos.left+c))),h=Math.max(a.zoomMaxPos.top+e,Math.min(-f,Math.round(a.zoomStartPos.top+d)));a.$zoomPicture.css({left:g+"px",top:h+"px"})};this.$zoomBox.mousedown(function(c){c.preventDefault(),a.dragStartPos={x:c.pageX,y:c.pageY},a.zoomStartPos=a.$zoomPicture.position(),$(document).bind("mousemove",b).one("mouseup",function(a){$(document).unbind("mousemove",b)})}),$(window).resize(function(){a.updateZoomBoxPosition()}),$(window).scroll(function(){a.updateZoomBoxPosition()})},updateZoomBoxPosition:function(){var a=this.$base.offset();this.$zoomBox.css({left:"0px",top:"0px"})},centerZoomPicturePosition:function(){var a=(this.settings.big.width-this.settings.box.width)/2,b=(this.settings.big.height-this.settings.box.height)*.6;this.$zoomPicture.css({top:-b+"px",left:-a+"px"})},buildThumbs:function(){if(this.$base.is(".js_look_product"))return;var a=this.settings.formats,b=this.variant,c=[];b._data.images&&(c=b._data.images[a[0]]||[]),_(a).each(function(a){var d=b._data.images[a];c=_.intersect(c,d)});var d=this.$thumbs.find("li").index(this.$thumbs.find("li.active"));this.$thumbs.find("li").remove();var e=a[0].split("x");_(c).each(function(b){var c=$('<a href="javascript://"></a>'),d=$("<img />").dataset({format:a[0],viewtype:b}).attr({width:e[0],height:e[1]});c.append(d);var f=$("<li/>").append(c);this.$thumbs.append(f)},this),this.updateSrcs(),this.handleClickOnThumbs(),d=0,this.$thumbs.find("li:eq("+d+") a").click(),this.$zoomClose.click()},change:function(a){var b=this;this.variant=a;var c=b.getImageSrc(this.$detail.dataset("format"),this.$detail.dataset("viewtype"),a);this.$detail.attr("src",c);if(this.$zoomPicture){var d=b.getImageSrc(this.settings.big.format,this.$zoomPicture.dataset("viewtype"));this.$zoomPicture.attr("src",d)}this.buildThumbs()},settings:function(){return{big:{width:1500,height:1753,toplimit:0,botlimit:0,format:"1500x1753"},box:{width:470,height:550},formats:["111x130","470x550"]}},getImageSrc:function(a,b,c){c=c||this.variant;var d="http://media.ysl.com/images/dummy/"+a+".jpg";return c._data.images&&c._data.images[a]&&_(c._data.images[a]).include(b)&&(d=c.getImageUrl(a,b)),d}}}),Class("ysl.cl.init.productImages.ProductSetImages",{isa:a.ProductImages,methods:{settings:function(){return{big:{width:715,height:1073,toplimit:0,botlimit:0,format:"715x1073"},box:{width:470,height:715},formats:["77x116","470x715"]}},centerZoomPicturePosition:function(){var a=(this.settings.big.width-this.settings.box.width)/2,b=0;this.$zoomPicture.css({top:-b+"px",left:-a+"px"})}}})});
// !MeAb! /c/s/d/e/j/y/c/i/touch.js
gc.init("ysl.cl.init.touch",function(a){gc.live(".js_touch","hover",function(){Modernizr.touch&&$(this).find("a:first").click()})});
// !MeAb! /c/s/d/e/j/y/c/i/tabbox.js
gc.init("ysl.cl.init.tabbox",function(a){Class("ysl.cl.init.tabbox.TabBox",{methods:{initialize:function(a){var b=a.children("li");b.children(".h").bind("click",function(a){var c=$(this).parent();if(c.hasClass("active"))return;b.select(".active").removeClass("active"),c.addClass("active")}),b.children(".c").jScrollPane({verticalGutter:15})}}}),$(".tabbox").each(function(){new a.TabBox($(this))})});
// !MeAb! c/s/d/e/j/g/c/w/formValidator.js
gc.widget("gc.cl.widgets.formValidator",{},function(a){a.validatorSettings={errorElement:"span",errorClass:"tooltip",ignore:".ignore",focusInvalid:!1,errorPlacement:function(a,b){a.prependTo(b.closest("div"))},highlight:function(a,b){$(a).addClass("error"),$(a).parent().addClass("error")},unhighlight:function(a,b){$(a).removeClass("error"),$(a).parent().removeClass("error")},groups:{ccexp:"a.Payment.creditCardExpirationMonth a.Payment.creditCardExpirationYear a.Payment.creditCardExpirationMonth.payment a.Payment.creditCardExpirationYear.payment",bday:"a.Customer.birthDay a.Customer.birthMonth a.Customer.birthYear"},submitHandler:function(a){return $(a).find("input[placeholder],textarea[placeholder]").each(function(){var a=$(this);a.val(a.val()==a.attr("placeholder")?"":a.val())}),!0}},this.nodeReady=function(b){b.find("form:not(.suppress)").each(function(){$(this).validate(a.validatorSettings),$(this).data("doValidate",!0)})},this.ready=function(){_(jQuery.validator.messages).each(function(a,b){jQuery.validator.messages[b]=function(){return gc.i18n("form.validator."+b)}}),jQuery.validator.addMethod("postalCodeUS",function(a,b){return a!=null&&a!=""?/[0-9]{5}/.test(a):!0},function(){return gc.i18n("form.validator.postalCodeUS")}),jQuery.validator.addMethod("postalCode",function a(a,b){var c=$(b).closest("form").find("select[name='a.Register.country']").val();return c=="US"&&a!=null&&a!=""?/[0-9]{5}/.test(a):!0},function(){return gc.i18n("form.validator.postalCode")}),jQuery.validator.addMethod("phone",function(a,b){if(a!=null&&a!=""){var c=this.getLength($.trim(a),b);return this.optional(b)||c>=7&&c<=32}return!0},function(){return gc.i18n("form.validator.phone")}),jQuery.validator.addMethod("requiredState",function(a,b){var c=$(b).closest("fieldset").find("select.js_country_selector");return c.val()!="US"?!0:a!=null&&a!=""},function(){return gc.i18n("form.validator.required")}),jQuery.validator.addMethod("comparePasswords",function(a,b){var c=$(b).closest("form").find("input[name='a.Register.password1']").val()||$(b).closest("form").find("input[name='a.Customer.password1']").val(),d=$(b).closest("form").find("input[name='a.Register.password2']").val()||$(b).closest("form").find("input[name='a.Customer.password2']").val();return c!=null&&c!=""||d!=null&&d!=""?c==d:!0},function(){return gc.i18n("form.validator.comparePasswords")}),jQuery.validator.addMethod("compareEmails",function(a,b){var c=$(b).closest("form").find("input[name='a.Register.email']").val(),d=$(b).closest("form").find("input[name='a.Register.email2']").val();return d==null||d==""?!0:c==d},function(){return gc.i18n("form.validator.compareEmails")}),jQuery.validator.addMethod("creditCardNumber",function(a,b){return a=a.replace(/\D/g,""),a==null||a==""?!1:jQuery.validator.methods.creditcard.call(this,a,b)},function(){return gc.i18n("form.validator.creditCardNumber")}),jQuery.validator.addMethod("creditCardExpiration",function(a,b){var c=new Date;return year=$(b).closest("form").find("select[name^='a.Payment.creditCardExpirationYear']").val(),month=$(b).closest("form").find("select[name^='a.Payment.creditCardExpirationMonth']").val(),!/[0-9]{1,2}/.test(month)||month<1||month>12?!1:year==null||year==""?!0:!(!/[0-9]{4}/.test(year)||year<c.getFullYear()||year==c.getFullYear()&&month<c.getMonth()+1)},function(){return gc.i18n("form.validator.creditCardExpiration")}),jQuery.validator.addMethod("creditCardVerificationNumber",function(a,b){return a!=null&&a!=""&&/^[0-9]{3,4}$/.test(a)},function(){return gc.i18n("form.validator.creditCardVerificationNumber")}),jQuery.validator.addMethod("passwordVerificationLength",function(a,b){return a==null||a==""?!0:/.{8}/.test(a)},function(){return gc.i18n("form.validator.passwordVerificationLength")}),jQuery.validator.addMethod("passwordVerificationCharacters",function(a,b){return a==null||a==""?!0:/^[^ \t]+$/.test(a)},function(){return gc.i18n("form.validator.passwordVerificationCharacters")}),jQuery.validator.addMethod("emailList",function(a,b){a=a.split(/ ?, ?/);for(var c=0;c<a.length;c++){var d=jQuery.validator.methods.email.call(this,a[c],b);if(!d)return!1}return!0},function(){return gc.i18n("form.validator.emailList")}),jQuery.validator.addMethod("date",function(a,b){var c=$(b).closest("form").find("input[name='a.Customer.birthDay']"),d=$(b).closest("form").find("input[name='a.Customer.birthMonth']"),e=$(b).closest("form").find("input[name='a.Customer.birthYear']"),f=c.val(),g=d.val(),h=e.val();f=f==c.attr("placeholder")?null:f,g=g==d.attr("placeholder")?null:g,h=h==e.attr("placeholder")?null:h;if(!f&&!g&&!h)return!0;f=parseInt(f?f.replace(/^0*/,""):f),g=parseInt(g?g.replace(/^0*/,""):g),h=parseInt(h);var i=new Date(h,g-1,f);return f>=1&&f<=31&&f==i.getDate()&&g>=1&&g<=12&&g==i.getMonth()+1&&h>=1890&&h&&h==i.getFullYear()},function(){return gc.i18n("form.validator.date")}),jQuery.validator.addMethod("noerrormsg",function(a,b){var c=$(b).closest("form").find("input[type='submit']");return c.blur(),a==null||a==""?(c.toggleClass("disabled",!0),c.attr({disabled:"disabled"}),!1):(c.toggleClass("disabled",!1),c.attr({disabled:""}),!0)},function(){return""})}});
// !MeAb! /c/s/d/e/j/y/c/w/yslFormValidator.js
gc.widget("gc.cl.widgets.yslFormValidator",{},function(a){var b=gc.cl.Page.widgets["gc.cl.widgets.formValidator"].ns.validatorSettings;b.errorElement="div",this.ready=function(){jQuery.validator.addMethod("comparePasswords",function(a,b){var c=$(b).closest("form").find("input[name='a.Register.password']").val()||$(b).closest("form").find("input[name='a.Customer.password']").val(),d=$(b).closest("form").find("input[name='a.Register.password2']").val()||$(b).closest("form").find("input[name='a.Customer.password2']").val();return d==null||d==""?!0:c!=d?!1:!0},function(){return gc.i18n("form.validator.comparePasswords")})}});
// !MeAb! c/s/d/e/j/g/c/w/pull_down_list.js
gc.widget("gc.cl.widgets.pullDownList",{},function(a){Class("gc.cl.widgets.pullDownList.pullDownList",{has:{enabled:{is:"rw"}},methods:{initialize:function(a,b){if(!b.force_custom&&navigator.userAgent.match(/iPad/i))return $("select.pull_down_list").show(),!1;var c=this;this.select=a,a.attr("autocomplete","off"),this.div_id="pull_down_"+this.select.attr("name");var d=a.attr("class").replace("pull_down_list",""),e=a.dataset("list_classes"),f=['<div class="pull_down_container '+d+'">','<div class="pull_down_text"></div>'],g=a.dataset("list_type");g?f.push("<"+g+' class="pull_down_list '+e+'">'):f.push('<ul class="pull_down_list '+e+'">'),this.val2text={};var h=function(a){c.val2text[a.attr("value")]=a.text();var b=a.dataset("style"),d=a.dataset("classes");f.push('<li class="ie6hover'+(d?" "+d:"")+'" data-value="'+a.val()+'"'),b&&f.push(' style="'+b+'"'),f.push(">"+a.text()+"</li>")};this.select.children().each(function(){var a=$(this),b=this.tagName&&this.tagName.toLowerCase();if(b=="optgroup"){var c=a.children("option");c.length>=2?(f.push('<li class="optgroup"><span class="label">'+a.attr("label")+"</span><ul>"),c.each(function(){h($(this))}),f.push("</ul><li>")):c.each(function(){h($(this))})}else b=="option"&&h(a)}),g?f.push("</"+g+">"):f.push("</ul>"),f.push("</div>"),this.select.after(f.join("")),this.select.hide(),this.container=this.select.next(),this.input=this.container.find(".pull_down_text"),this.focusGetter=this.container.find(".js_focus_getter");var i=0;this.focusGetter.focus(function(a,b){if((new Date).getTime()-i<500)return;!b&&this.enabled&&c.trigger.click(),i=(new Date).getTime()});var j=!0;this.input.keydown(function(a){var b=a.keyCode,c={9:!0};c[b]||a.preventDefault();var d=function(){},e=function(){},f=function(){};!j&&b==13&&(d(),n()),!j&&b==9&&n(),j&&37<=b&&b<=40?m():(!j&&37<=b&&b<=38&&e(),!j&&39<=b&&b<=40&&f())}),this.row=this.container.closest(".formRow"),this.ul_list=this.container.find(".pull_down_list"),this.trigger=this.container.find(".pull_down_text"),this.enabled=!this.container.hasClass("readonly");var k=this.select.dataset("label");k?k+=" ":k="";var l=this.val2text[this.select.val()||""];l==undefined?this.input.html(k+this.select.val()):this.input.html(k+l);var m=function(a){j=!1;var b=parseInt(c.container.css("z-index"),10);b&&(c.originalZIndex=b,c.container.css("z-index",b+1)),c.row.add(c.container).add(c.ul_list).addClass("active")},n=function(a){c.originalZIndex&&c.container.css("z-index",c.originalZIndex),j=!0,c.row.add(c.container).add(c.ul_list).removeClass("active")},o="click";b.on_mouseenter&&(o+=" mouseenter"),this.trigger.bind(o,function(a){c.container.hasClass("active")?n($(this)):c.enabled&&m($(this))}),c.select.change(function(){var a=c.val2text[$(this).val()||""];a==undefined?c.input.html(k+$(this).val()):c.input.html(k+a),c.ul_list_li.each(function(){var b=$(this);b.removeClass("selected"),b.text()==a&&b.addClass("selected")}),c.select.trigger("focusout")}),this.ul_list.css("visibility","hidden"),this.ul_list.css("display","block"),this.ul_list_li=this.ul_list.find("li");if(!b.no_min_width){var p=0,q=this.input.css("font-size"),r=this.ul_list_li.css("font-size");this.ul_list_li.each(function(){var a=$(this),b=a.css("font-size");a.css({display:"inline","font-size":q}),p=a.width()>p?a.width():p,a.css({display:"","font-size":r})}),this.trigger.css("min-width",p)}this.ul_list.css("display",""),this.ul_list.css("visibility",""),this.ul_list_li.click(function(){var a=$(this);c.val2text[c.select.val()]!=a.text()&&(c.select.val(a.dataset("value")||a.text()),c.select.trigger("change")),n(),c.focusGetter.trigger("focus",!0)}),this.container.bind("mouseleave",function(){n()})},disable:function(){this.enabled=!1,this.container.addClass("readonly")},enable:function(){this.enabled=!0,this.container.removeClass("readonly")},selectFirst:function(a){this.select.val(a).trigger("change")}}}),this.nodeReady=function(a){a.find(".pull_down_list").each(function(){var a=$(this),b=a.dataset("opts");b=b?JSON.parse(b):{};if(!a.data("list-init")){a.data("list-init",!0);var c=new gc.cl.widgets.pullDownList.pullDownList(a,b);a.data("list-bo",c)}})}});
// !MeAb! /c/s/d/e/j/y/c/w/window.js
gc.widget("ysl.cl.widgets.window",{},function(a){a.ready=function(b){try{window.WindowManager=a.WindowManager.getInstance().start(b),Weet.subscribe("windows",function(b,c){for(var d in b)a.WindowManager.getInstance().show(d,b[d])})}catch(c){console.log(c)}gc.live(".js_openWindow","click",function(b){b.preventDefault();var c=$(this).blur();if(c.data("disabled")===!0||c.hasClass("disabled"))return;var d=c.data("target"),e=c.dataset("href")||c.attr("href"),f=c.dataset("roles");if(c.dataset("bookmarkable")==="true"){var g={};g[d]={href:e,roles:f},Weet.extend({windows:g});return}var h=c.dataset("opener")?$(c.dataset("opener")):c,i={opener:h,href:e,roles:f};if(c.dataset("target")==="_blank")return window.open(i.href),!1;if(d){var j=a.WindowManager.getInstance(),k=j.getWindow(d);k&&(k.href=i.href),j.show(d,i)}}),gc.live(".js_closeWindow","click touchend",function(b){b.preventDefault();var c=$(this).blur().closest(".js_window").data("windowInstance");return c&&a.WindowManager.getInstance().close(c),!1}),$(document).keyup(function(b){if((b.which===27||b.keyCode===27)&&!ysl.cl.init.videoPlayer.VideoPlayer.isVideoPlayingInFullscreenMode()){var c=$(".js_window:not(:hidden)").data("windowInstance");c&&a.WindowManager.getInstance().close(c)}}),$(window).resize(function(){a.WindowManager.getInstance().recalculateShim(),a.WindowManager.getInstance().updatePositions()})},Class("ysl.cl.widgets.window.WindowManager",{does:Joose.Singleton,has:{windows:{is:"rw",init:[]},shimRefs:{is:"rw",init:{}}},methods:{start:function(a){this.$container=a.find("#windowContainer"),this.$shim=this.$container.find("#shim"),a.find(".js_controller").each(function(){ysl.cl.controller.ControllerManager.getInstance().start($(this))})},hasWindow:function(a){return a in this.windows},getWindow:function(a){return this.hasWindow(a)?this.windows[a]:null},createWindow:function(b,c){var d=new a.Window(b,c);return this.windows[b]=d,d},show:function(a,b){var c=this.windows[a]||this.createWindow(a,b),d;for(d in this.windows){var e=this.windows[d];e!==c&&e.meta&&e.meta.can("loseFocusTo")&&e.loseFocusTo(c)}(typeof c.isLoading=="undefined"||c.isLoading===!1)&&c.show()},shim:function(a){this.shimRefs[a]=!0,this.shimOpacity=this.$shim.css("opacity"),this.$shim.css({opacity:1,display:"block"}),this.recalculateShim()},unshim:function(a){delete this.shimRefs[a];for(var b in this.shimRefs);b||this.$shim.hide()},recalculateShim:function(){if(this.$shim.css("display")==="none")return;this.$shim.css("opacity",this.shimOpacity);if(this.$shim.is(".js_fixed_pos"))return;this.$shim.css({width:0,height:0}),this.$shim.css({width:$(document).width(),height:$(document).height()-this.$shim.offset().top})},close:function(a){a.id||(a=this.windows[a]);var b="windows."+a.id;Weet.get(b)&&Weet.set(b,null),a.close()},closeWindows:function(){for(var a in this.windows)this.close(a)},remove:function(a){var b;(b=this.windows[a])?(b.remove(),delete this.windows[a]):console&&console.error("WindowManager.remove(): unknown window-id ("+a+")")},removeWindows:function(){for(var a in this.windows)this.remove(a)},updatePositions:function(){for(var a in this.windows){var b=this.windows[a];b.getIsVisible&&b.getIsVisible()&&b.updatePosition()}}}}),Class("ysl.cl.widgets.window.Window",{has:{id:{is:"ro"},href:{is:"ro"},content:{is:"ro"},zindex:{is:"rw",init:50},position:{is:"rw",init:"absolute"},isVisible:{is:"ro"},windowRef:{is:"ro",init:$(window)},container:{is:"rw",init:$("body")}},methods:{initialize:function(b,c){this.id=b,this.href=c.href,this.$container=$("#windowContainer"),this.$opener=$(c.opener),this.position=c.position?c.position:!1;var d=c.roles?c.roles.split(","):[];for(var e=0;e<d.length;++e)a[d[e]].meta.apply(this);var f=$("#"+b+".js_window");if(f.length){var g=f.clone().appendTo($("body"));f.remove(),this.initializeContent(g)}else(!this.href||this.href==="")&&console.error("Window::initialize(): no js_window node found and no url to load! (target="+this.id+")")},load:function(a,b){var c=this,d;a&&a!==""&&(ysl.cl.init.spinner.Spinner.show(),gc.cl.util.Ajax.ajax({url:a,success:function(e,f){d=$(e).filter("#"+c.id),d.length||(d=$(e).find("#"+c.id));if(f=="success"&&d.length>0){c.initializeContent(d);try{b.apply(c)}catch(g){console.error("WindowManager.load(): got exception")}}else console.error("WindowManager.load(): ajax load failed ("+a+") - status: "+f+", $node.length: "+d.length);ysl.cl.init.spinner.Spinner.hide()},error:function(a,b,d){c.$opener.data("disabled",!0),ysl.cl.init.spinner.Spinner.error()}}))},loaded:function(){this.isLoading=!1,this.content.addClass("show");var a=this.calculatePosition(),b={position:this.position,left:a.left,top:a.top},c=$("div#container").width(),d=(this.windowRef.width()-c)/2;a.left+this.content.width()+80>d+c&&(b.width=c-2*(a.left-d)-80),this.content.css(b),this.isVisible=!0,this.updatePosition()},initializeContent:function(a){a.appendTo(this.$container),a.data("windowInstance",this),this.content=a,gc.cl.widgets.formValidator.nodeReady(a),typeof gc.cl.widgets[this.id]!="undefined"&&gc.cl.widgets[this.id].show(),a.find(".js_controller").each(function(){ysl.cl.controller.ControllerManager.getInstance().start($(this))}),a.filter(".js_controller").each(function(){ysl.cl.controller.ControllerManager.getInstance().start($(this))})},show:function(){this.isLoading=!0,this.content?this.loaded():this.load(this.href,this.loaded)},calculatePosition:function(){if(!this.content)return{left:0,top:0};if(this.position)return{left:this.position.left+"px",top:this.position.top+"px"};var a=this.windowRef.scrollLeft(),b=a+this.windowRef.width()/2-this.content.width()/2,c=$("#header").css("position")==="fixed"?0:$(window).scrollTop(),d=c+this.windowRef.height()/2-this.content.height()/2;return $("#header").length>0&&d<$("#header").height()&&(d=$("#header").height()),{left:b,top:d}},updatePosition:function(){},close:function(){this.content.removeClass("show"),this.isVisible=!1},remove:function(){this.content!==null&&this.content.remove()},setZindex:function(a){this.zindex=a}}}),Role("ysl.cl.widgets.window.UpdatePositionSoft",{methods:{updatePosition:function(){if(!this.content)return;var b=this.calculatePosition();this.isVisible?this.content.stop().animate({left:b.left,top:b.top},200,function(){a.WindowManager.getInstance().updatePositions()}):this.content.css({position:this.position,left:b.left+"px",top:b.top+"px"})}}}),Role("ysl.cl.widgets.window.UpdatePositionHard",{methods:{updatePosition:function(){if(!this.content)return;var a=this.calculatePosition();this.content.css({position:this.position,left:a.left+"px",top:a.top+"px"})}}}),Role("ysl.cl.widgets.window.HideOnLoseFocus",{methods:{loseFocusTo:function(a){this.close()}}}),Role("ysl.cl.widgets.window.PositionTop",{methods:{calculatePosition:function(){if(!this.content)return{left:0,top:0};var a=$(window).scrollLeft(),b=a+$(window).width()/2-this.content.width()/2;return{left:b,top:0}}}}),Role("ysl.cl.widgets.window.AbsolutePosition",{methods:{calculatePosition:function(){if(!this.content)return{left:0,top:0};var a=this.content.outerWidth(),b=this.content.outerHeight(),c=$("#header").outerHeight(),d=$(window).height(),e=b/2+c,f=$(window).scrollTop(),g=f+d/2;return b+e>d&&(e=0,g=0),this.content.css({marginLeft:-a/2+"px",marginTop:-e+"px",position:"absolute"}),this.content.addClass("repaint").removeClass("repaint"),{left:"50%",top:g+"px"}}}}),Role("ysl.cl.widgets.window.PositionAtTopCenter",{methods:{calculatePosition:function(){if(!this.content)return{left:0,top:0};if(this.position){var a={left:this.position.left+"px",top:this.position.top+"px"};return a}var b=this.windowRef.scrollLeft(),c=b+this.windowRef.width()/2-this.content.outerWidth()/2,d=$("#header").length>0?$("#header").height():0;return{left:c,top:d}}}}),Role("ysl.cl.widgets.window.PositionAtOpener",{before:{initializeContent:function(){this.position="absolute";if(this.$opener.parents().filter("#header").length>0||this.$opener.parents().filter("#footer").length>0)this.position="fixed"}},methods:{calculatePosition:function(){if(!this.content)return{left:0,top:0};$.offset.initialize();var a=this.$opener.offset(),b=a.left+this.$opener.outerWidth()/2-this.content.outerWidth()/2,c=a.top-this.$opener.outerHeight();if(this.content.is(".tr")||this.content.is(".br"))b=a.left+this.$opener.outerWidth()/2-this.content.outerWidth();var d={tc:"bc",tr:"br",tl:"bl"};this.position=="fixed"&&(c-=$(window).scrollTop(),c<0&&(c=$("#header").height(),d={})),c<5&&this.position=="absolute"&&(d={bc:"tc",br:"tr",bl:"tl"},c=a.top+35);var e=Math.ceil(parseFloat(b+this.content.outerWidth())),f=$(window).width(),g=this.content.find(".error .tooltip"),h=0;if(g.length>0){var i=0,j=null;g.each(function(){j=$(this).outerWidth()+$(this).offset().left,j>i&&(i=j)}),h=70,i=Math.ceil(parseFloat(i)),i>=e&&(e=i)}var k=e-f+h;k>0&&(b-=k);for(var l in d)this.content.is("."+l)&&this.content.removeClass(l).addClass(d[l]);return{left:b,top:c}}}}),Role("ysl.cl.widgets.window.AlwaysLoadAjax",{before:{show:function(){this.content&&(this.content.remove(),this.content=null)}},after:{close:function(){this.content&&(this.hasFadeHide?this.removeAfterHide=!0:(this.content.remove(),this.content=null))}}}),Role("ysl.cl.widgets.window.Printable",{override:{initializeContent:function(a){var b=$("<div/>");b.attr("class",a.attr("class")),b.attr("id",a.attr("id")),b.addClass("window bl js_window lbprint"),b.append(a.children()),$("<a/>").attr("href","javascript://").addClass("close noprint js_closeWindow").html(gc.i18n("global.close")).appendTo(b),$("<a/>").attr("href","javascript://").addClass("noprint button").click(function(){print()}).html(gc.i18n("global.print")).appendTo(b),a=b,this.SUPER(a)}},after:{show:function(){$("body").addClass("winprintable")},close:function(){$("body").removeClass("winprintable")}}}),Role("ysl.cl.widgets.window.AutoHide",{before:{close:function(){this.autoCloseId&&window.clearTimeout(this.autoCloseId);if(!this.content)return;this.content.unbind("mouseenter"),this.content.unbind("mouseleave")}},after:{loaded:function(){if(!this.content)return;this.autoCloseId&&window.clearTimeout(this.autoCloseId);var a=this;this.content.unbind("mouseenter").mouseenter(function(){window.clearTimeout(a.autoCloseId)}).unbind("mouseleave").mouseleave(function(){if(!$(this).is(".show"))return!1;a.autoCloseId=window.setTimeout(function(){a.close()},3e3)}).mouseleave()}}}),Role("ysl.cl.widgets.window.FadeHide",{override:{close:function(){var b=this;b.hasFadeHide=!0;if(!b.content||!b.content.is(".show"))return;this.content.css({display:"block",opacity:1}),this.content.animate({opacity:0},800,function(){if(!b.content)return;style=b.content.attr("style").replace(/display:\s*block;/i,"").replace(/opacity:\s*0;/i,"").replace(/filter:\s*alpha\(opacity=0\); zoom: 1;/i,""),b.content.attr("style",style),b.content.find(".tooltip").removeAttr("style"),b.content.removeClass("show"),b.removeAfterHide&&(b.content.remove(),b.content=null),b.unshimAfterClose&&a.WindowManager.getInstance().unshim(b.id)})}}}),Role("ysl.cl.widgets.window.FadeShow",{after:{loaded:function(){if(!this.content)return;this.content.css("opacity",0);var a=this;try{this.content.animate({opacity:1},800,function(){gc.cl.widgets.formValidator.nodeReady(a.content),style=a.content.attr("style").replace(/display:\s*none;/i,"").replace(/opacity:\s*1;/i,"").replace(/filter:\s*alpha\(opacity=100\); zoom: 1;/i,""),a.content.attr("style",style),a.content.find(".tooltip").removeAttr("style")})}catch(b){}}}}),Role("ysl.cl.widgets.window.PreserveInitialState",{before:{loaded:function(){if(!this.content)return!1;this.$initialState||(this.$initialState=this.content.children().clone(!0)),this.content.empty().append(this.$initialState.clone())}}}),Role("ysl.cl.widgets.window.Shimmer",{before:{loaded:function(){a.WindowManager.getInstance().shim(this.id),this.unshimAfterClose=!0}},after:{close:function(){a.WindowManager.getInstance().unshim(this.id)}}}),Role("ysl.cl.widgets.window.Fragment",{does:[a.Shimmer],override:{calculatePosition:function(){if(!this.content)return{left:0,top:0};if(this.position)return{left:this.position.left+"px",top:this.position.top+"px"};var a=this.windowRef.scrollTop(),b=$("#breadcrumb");return b.length&&(a-=b.height()),Modernizr.touch&&(a-=$("#header").height()),a<0&&(a=0),{left:0,top:a}}}}),Role("ysl.cl.widgets.window.ModalLightboxPanel",{does:[a.Shimmer,a.HideOnLoseFocus]})});
// !MeAb! /c/s/d/e/j/y/c/w/ajaxForm.js
gc.widget("ysl.cl.widgets.AjaxForm",{},function(a){gc.live(".js_ajaxform","submit",function(a){a.preventDefault();var b=$(this);if(!b.valid())return;var c=b.closest(".js_ajax_placeholder");ysl.cl.init.spinner.Spinner.show(),gc.cl.util.Ajax[b.attr("method")](b.attr("action"),b.serialize(),function(a){ysl.cl.init.spinner.Spinner.hide(),c.fadeOut("slow",function(){b.replaceWith(a)}).fadeIn()})})});
// !MeAb! /c/s/d/e/j/y/c/w/print.js
gc.widget("ysl.cl.widgets.print",{},function(a){gc.live(".js_print","click",function(a){a.preventDefault(),window.print()})});
// !MeAb! /c/s/d/e/j/y/c/w/custcare.js
gc.widget("ysl.cl.widgets.custcare",{},function(){var a=this;a.nodeReady=function(a){var b=a.filter("#custcare");if(b.length==0)return;var c=a.find("form"),d=c.find('input[name="a.Contact.browsedPage"]');d.attr("value")||d.attr("value",window.location.href),c.submit(function(){var b=gc.cl.widgets.formValidator.validatorSettings;return c.validate(b).form()?(ysl.cl.init.spinner.Spinner.show(),gc.cl.util.Ajax.post(c.attr("action"),c.serialize(),function(b,c){ysl.cl.init.spinner.Spinner.hide(),b.success==0&&(c="fail"),a.find(".initialState").hide(),a.append('<h2 class="h1">'+gc.i18n("form.CustomerCare.headline_"+c)+"</h2>"),a.append('<p class="msg">'+gc.i18n("form.CustomerCare.message_"+c)+"</p>"),a.find("textarea").val("")}),!1):(gc.publish("window:validation_errors"),!1)})}});
// !MeAb! /c/s/d/e/j/y/c/w/datepicker.js
gc.widget("ysl.cl.widgets.datepicker",{},function(){var a=function(a){return a<10?"0"+a:a},b=function(){var b=c.data("startdate");if(!b)return;var f=new Date(b);$(".datepicker").val(f.getFullYear()+"-"+a(f.getMonth()+1)+"-"+a(f.getDate())+" "+d.val()+":"+e.val())},c=$(".jsCalendar").bind("startDateChanged",b),d=$("#hour").bind("change",b),e=$("#minute").bind("change",b)});
// !MeAb! /c/s/d/e/j/y/c/w/countryselector.js
gc.widget("gc.cl.widgets.countrySelector",{},function(a){this.countryCode,this.siteBaseUrl,this.firstTime=!1;var b=this;this.ready=function(){var a=$(".js_current_locale").text();gc.live(".js_show_country_chooser","click",function(a){return gc.cl.widgets.countrySelector.showLayer(),!1}),gc.live(".js_show_language_chooser","click",function(a){return gc.cl.widgets.countrySelector.showLanguageLayer(),!1}),gc.live(".js_country_select a","click",function(a){var c=$(this);$(".js_country_select a").removeClass("active"),c.addClass("active"),b.countryCode=c.dataset("cc");var d=c.data("transfer"),e=d.match(/^https*:\/\/([^\/]+)\//);if(b.firstTime){if(e&&e[1]==document.domain){var f=[b.countryCode,d];b.setCookie(f),$(".ip_shopcountry_mismatch .js_closeWindow").trigger("click"),b.firstTime=!1;return}$(".js_changecountry .js_submit").trigger("click")}$(".js_countrychooser").hide(),$(".js_countrychooser").css("opacity",0),$(".js_changecountry").show(),$(".js_changecountry").animate({opacity:1},1e3)}),gc.live(".js_language_select","click",function(a){var c=$(this).data("transfer"),d=c+"?code="+b.countryCode+"&redirect="+escape(window.location.href)+(window.location.hash?"&hashValue="+escape(window.location.hash):"");window.location.href=d}),gc.live(".js_changecountry .js_cancel","click",function(a){$(".js_countrychooser").show(),$(".js_countrychooser").animate({opacity:1},1e3),$(".js_changecountry").hide(),$(".js_changecountry").css("opacity",0)}),gc.live(".js_changecountry .js_submit","click",function(a){var c=$(".js_country_select").find("a.active"),d=c.data("transfer");this.siteBaseUrl=d;var e=this.siteBaseUrl.match(/^https*:\/\/([^\/]+)\//),f=d+"?code="+b.countryCode+"&redirect="+escape(window.location.href)+(window.location.hash?"&hashValue="+escape(window.location.hash):"");window.location.href=f,$(".js_closeWindow").click()});try{var c=this.getCookieValues();c.length>1?this.countryCode=c[0]:Weet.get("hideCountryChooser")||(gc.cl.widgets.countrySelector.showLayer(),b.firstTime=!0)}catch(d){}},this.getCookieValues=function(){return decodeURIComponent(gc.cl.util.Cookie.get("countrycode")).split("|")},this.setCookie=function(a){a=a.join("|");var b=new Date;b.setDate(b.getDate()+365),gc.cl.util.Cookie.setUnescaped("countrycode",a,b)},this.showLayer=function(){var a={roles:"Shimmer,PreserveInitialState,UpdatePositionSoft,AbsolutePosition"},b=ysl.cl.widgets.window.WindowManager.getInstance();b.show("ip_shopcountry_mismatch",a)},this.closeLayer=function(){var a=ysl.cl.widgets.window.WindowManager.getInstance();a.close("ip_shopcountry_mismatch")},this.showLanguageLayer=function(){$("#languageselector").show()},gc.live("#languageselector .js_close","click touchend",function(a){a.preventDefault(),$(this).blur().closest(".window").hide()})});
// !MeAb! /c/s/d/e/j/y/c/w/zoomable.js
gc.widget("ysl.cl.widgets.zoomable",{},function(){var a=this;gc.live(".js_zoom","click touchend",function(b){return a.ZoomableManager.getInstance().invokeZoomFor($(this),b),!1}),$(window).resize(function(){a.StandardZoombehavior.resize.call(a.ZoomableManager.getInstance())}),Class("ysl.cl.widgets.zoomable.ZoomableManager",{does:[Joose.Singleton],has:{$container:{},$stage:{},$image:{},imageWidth:{},imageHeight:{},imageRatio:{},$element:{},scrollpos:0},methods:{initialize:function(){var a=this;this.$container=$("#container"),this.$stage=$('<div class="zoombg"><span class="close js_close">Close</span><div class="stage js_stage"></div></div>'),this.$stage.delegate(".js_close","click touchend",function(b){return b.preventDefault(),a.hideStage(),!1})},invokeZoomFor:function(a,b){b.preventDefault(),this.$element=a,this.clear(),this.showStage(),this.loadImage()},showStage:function(){this.scrollpos=$(window).scrollTop(),$("#container").hide(),this.$stage.hide().appendTo("body").fadeIn()},hideStage:function(){var a=this;this.$container.fadeIn(1,function(){$(window).scrollTop(a.scrollpos),a.$stage.fadeOut(function(){a.$stage.detach()})})},loadImage:function(){var a=this.$element,b=a.closest("[data-zoomurl]").data("zoomurl");if(!b){console.log("zoomable: error: could not find closest data-zoomurl for element",this.$element);return}var c=$("<img />").attr("src",b).appendTo("body");if(c.width()>28){this.image(c);return}c.hide();var d=this;c.one("load",function(){if(a!==d.$element)return;d.image(c)})},image:function(b){this.$image=b,this.imageWidth=this.$image.width(),this.imageHeight=this.$image.height(),this.imageRatio=this.imageWidth/this.imageHeight,a.StandardZoombehavior.resize.call(this),this.$stage.find(".js_stage").empty().append(this.$image),this.$image.hide().fadeIn()},clear:function(){this.$image&&(this.$image.remove(),this.$image=null)}}}),Class("ysl.cl.widgets.zoomable.StandardZoombehavior",{classMethods:{resize:function(){if(!this.$image)return;var a=this.$stage.find(".js_stage"),b=a.height()>0?a.height():a.width()/this.imageRatio;stageRatio=a.width()/b,zoomWidth=a.width(),zoomHeight=zoomWidth/this.imageRatio;var c="50%";zoomHeight>b&&(c=0,zoomHeight=b,zoomWidth=zoomHeight*this.imageRatio),this.$image.css({position:"relative",top:c,width:zoomWidth+"px",height:zoomHeight+"px"})}}})});
// !MeAb! /c/s/d/e/j/y/c/w/sharable.js
var namespace="ysl.cl.widgets.sharable";gc.widget(namespace,{},function(){var a=this,b;a.nodeReady=function(c){c.delegate(".js_sharelink","click",function(b){a.Sharable.shareLinkClick($(this))}),c.delegate('#blogpart input[name="blogpartsize"]',"change",function(){a.Sharable.selectBlogpart($(this).val())}),c.delegate(".js_tellafriend","click",function(){a.Sharable.tellafriendClick($(this))});var d=c.find('input[name="a.TellAFriend.url"]');d.length>0&&c.find('input[name="a.TellAFriend.url"]').attr("value",b)},Class(namespace+".Sharable",{classMethods:{error:function(a){var a="error: "+namespace+": "+a;try{console.error(a)}catch(b){alert(a)}},shareLinkClick:function(b){var c=b.dataset("sharewhere"),d=b.dataset("sharetext"),e=b.dataset("sharetitle"),f=b.dataset("sharecategory"),g=b.dataset("shareimg"),h=b.dataset("shareurl")||location.href;d=="Unknown share where: undefined"&&(d="Check this out: {1}");if(!d){a.Sharable.error("No sharetext was set");return}d=d.replace(/{[\d]+}/,h);var i;switch(c){case"twitter":i="http://twitter.com/home?"+$.param({status:d});break;case"facebook":i="http://www.facebook.com/sharer.php?"+$.param({u:h,t:d});break;case"fancy":i="http://www.thefancy.com/fancyit?"+$.param({ItemURL:h,Title:e,Category:f,ImageURL:g});break;default:a.Sharable.error("Unknown sharewhere: "+c);return}b.attr({href:i,target:"_"+c+"share"})},selectBlogpart:function(a){$("#blogpart .preview img").removeClass("active");var b=$("#blogpart textarea"),c=$("#blogpart .preview img."+a);c.addClass("active"),b.text('<a href="'+b.data("sharelink")+'"><img src="'+c.attr("src")+'" alt="'+c.attr("alt")+'" /></a>')},tellafriendClick:function(a){b=a.dataset("shareurl")||a.data("shareurl")||b}}})});
// !MeAb! /c/s/d/e/j/y/c/w/setStateFromZipCode.js
gc.widget("ysl.cl.widgets.setStateFromZipCode",{},function(a){Class("ysl.cl.widgets.setStateFromZipCode.StateFromZipCode",{methods:{initialize:function(a){var b=this;b.form=a,b.zipCode=b.form.find(".js_postalcode"),b.stateCode=b.form.find(".js_statecode"),b.zipCode.change(function(a){b.setStateFromZipCode(a)})},setStateFromZipCode:function(a){var b=this,c=gc.cl.util.URL.to("zip_code")+"/"+b.zipCode.val();$.ajax({url:c,dataType:"json",success:function(a,c){var d=a.zip_code&&a.zip_code.stateCode;d&&(b.stateCode.val(d),b.stateCode.change())}})}}}),this.nodeReady=function(b){b.find(".js_setstatefromzipcode").each(function(){new a.StateFromZipCode($(this))})}});
// !MeAb! /c/s/d/e/j/y/c/w/address.js
gc.widget("ysl.cl.widgets.Address",{},function(a){var b=this;gc.live("select[name$='countryCode']","change keyup",function(a){var b=$(this);$fieldset=b.closest("fieldset"),b.val()==="US"?($(".js_stateCode",$fieldset).show().find("select").prop("disabled",!1),$(".js_county",$fieldset).hide().find("input").val("").prop("disabled",!0)):($(".js_county",$fieldset).show().find("input").prop("disabled",!1),$(".js_stateCode",$fieldset).hide().find("select").prop("disabled",!0))}),this.nodeReady=function(a){_.each(a,function(a){var c=$(a),d=c.filter(".window.address");d.length&&b.initAddressWindow(d)})},this.initAddressWindow=function(a){a.find("select[name$='countryCode']").trigger("change")}});
// !MeAb! /c/s/d/e/j/y/c/w/backdrop.js
gc.widget("ysl.cl.widgets.backdrop",{},function(a){var b="#footer",c="#header";this.nodeReady=function(a){var b=this;this.$box=a.find(".js_backdrop");if(this.$box.length==0)return;this.imgSources=this.$box.dataset("images").split("|"),this.fadeMs=1e3,this.sleep=5e3,this.init(),$(window).resize(function(){b.stretchToMaxSize()}).scroll(function(){b.stretchToMaxSize()})},this.init=function(){function d(e){var f=new Image;f.onload=function(f){c++,c==1&&(a.$box.empty(),$('<img src="'+a.imgSources[0]+'"/>').dataset("width",this.width).dataset("height",this.height).appendTo(a.$box),a.$imgs=a.$box.find("img")||[],a.stretchToMaxSize()),c==a.imgSources.length?b():d(e+1)},f.src=a.imgSources[e]}var a=this,b=function(){a.$box.css({overflow:"hidden",padding:0});for(var b=1;b<a.imgSources.length;++b)$('<img src="'+a.imgSources[b]+'"/>').appendTo(a.$box);a.$imgs=a.$box.find("img")||[],a.stretchToMaxSize(),a.$imgs.css({position:"absolute",visibility:"hidden"}).eq(0).css({visibility:"visible"});if(a.$imgs.length>1){var c=a.createChain(a.imgSources.length*2-1,function(){return c()});c()}},c=0;d(0),_.isEmpty(a.$imgs)&&(a.$imgs=[])},this.createChain=function(a,b){var c=this,d="linear",e=null;if(a%2==0&&c.sleep>0){var f=a/2,g=(f-1+c.imgSources.length)%c.imgSources.length,h=c.$imgs.eq(f),i=c.$imgs.eq(g);e=function(){i.css("visibility","hidden"),setTimeout(b,c.sleep)}}else if(a%2!=0){var j=Math.floor(a/2),k=Math.ceil(a/2)%this.imgSources.length,l=this.$imgs.eq(j),m=this.$imgs.eq(k),n={},o={visibility:"visible"},p={};k>j?(o.opacity=0,p.opacity=1):n.opacity=0,$.isEmptyObject(p)?e=function(){m.css(o),l.animate(n,c.fadeMs,d,b)}:$.isEmptyObject(n)?e=function(){m.css(o),m.animate(p,c.fadeMs,d,b)}:e=function(){m.css(o),m.animate(p,c.fadeMs,d),l.animate(n,c.fadeMs,d,b)}}return a>0?c.createChain(a-1,e):e},this.stretchToMaxSize=function(){_.isEmpty(this.$imgs)&&(this.$imgs=[]);var a=$(window).width(),d=$(c).length>0?$(c).height():0,e=$(b).length>0?$(b).height():0,f=$(window).height()-(e+d),g=a/f;if(this.$imgs.length===0)return;this.$imgs.each(function(){var b=parseInt($(this).dataset("width"),10),c=parseInt($(this).dataset("height"),10),h=b/c,i=0,j=0;g>h?(i=a,j=i/h):(j=f,i=j*h),i=Math.floor(i),j=Math.floor(j);var k={width:i+"px",height:j+"px",paddingTop:d+"px",paddingBottom:e+"px"};a<i?(k.left=(a-i)/2,k.left>0&&(k.left=0),k.left+="px"):k.left="0px",f<j&&(k.top="0"),$(this).css(k)})}});
// !MeAb! /c/s/d/e/j/y/c/i/videoPlayer.js
gc.init("ysl.cl.init.videoPlayer",function(a){var b=!1;Class("ysl.cl.init.videoPlayer.VideoPlayer",{has:{nodes:{is:"rw"},debug:{is:"r",init:!1},isFlashAvailable:{is:"r",init:swfobject.hasFlashPlayerVersion("9.0.115")}},classMethods:{isVideoPlayingInFullscreenMode:function(){return b}},methods:{initialize:function(a){this.nodes=a;if(!this.nodes||this.nodes.length===0)return;var c=this,d=0;_.each(this.nodes,function(a){d+=1,a=$(a);var e=a.data("params"),f=a.find(".js_videotag").first(),g=Modernizr.video&&Modernizr.video.h264!="",h=e.h264Src&&e.h264Src!=""&&g?!0:!1,i=typeof e.youtube!="undefined"&&e.youtube!=""&&e.youtube!="null"&&e.linkType&&e.linkType=="youtube"?!0:!1;c.debug&&(console.log("# video dimension: "+e.videoWidth+"x"+e.videoHeight+"px"),console.log("# isFlashAvailable: "+c.isFlashAvailable),console.log("# hasH264Capabilities: "+g),console.log("# html5VideoAvailable: "+h),console.log("# hasYoutubeLink: "+i));if(c.isFlashAvailable){var j=null;window.jwResizeTracker=function(a){window.setTimeout(function(){b=a.fullscreen},200)},window.playerReady=function(a){j=document.getElementById(a.id),$.browser.msie||j.addControllerListener("RESIZE","jwResizeTracker")};var k={file:i?e.youtube:e.h264Src,autostart:"true",stretching:"fill",smoothing:"true",controlbar:"bottom",skin:e.staticBaseUrl+"/extensions/js/ext/jwplayer/skin/skin.zip"},l={wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},m={id:f.attr("id"),name:f.attr("id")};swfobject.embedSWF(e.staticBaseUrl+"/extensions/js/ext/jwplayer/player.swf",m.id,e.videoWidth,e.videoHeight,"9.0.115","false",k,l,m)}else g?(i&&f.replaceWith(c.getYoutubeEmbedHTMLfromURL(e.youtube,e.videoWidth,e.videoHeight)),(!!navigator.userAgent.match(/iPad/i)||!!navigator.userAgent.match(/iPhone/i))&&f.css({width:960,height:540,marginLeft:10,marginTop:45})):(a.empty(),a.html('<p class="noflash"><br/>'+gc.i18n("global.flashplayerRequired")+"</p>"))})},fit:function(a,b,c,d){var e=a/b,f;return c?d?f=c/d:f=e-1:f=e+1,e==f?{width:c,height:d}:e>f?{width:parseInt(c,10),height:parseInt(c/e,10)}:{width:parseInt(d*e,10),height:parseInt(d,10)}},getYoutubeEmbedHTMLfromURL:function(a,b,c){var d=a.replace(/^[^v]+v.(.{11}).*/,"$1"),e=b,f=c,g=0,h=0;if(!!navigator.userAgent.match(/iPad/i)||!!navigator.userAgent.match(/iPhone/i))e=960,f=540,g=10,h=45;var i='<object style="width:'+e+"px; height:"+f+"px; margin-left: "+g+"px;margin-top: "+h+'px;">';return i+='  <param name="movie" value="http://www.youtube.com/v/'+d+'?version=3">',i+='  <param name="allowFullScreen" value="true">',i+='  <param name="allowScriptAccess" value="always">',i+='  <embed src="http://www.youtube.com/v/'+d+'?version=3" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="'+b+'" height="'+c+'">',i+="</object>",i}}})});
// !MeAb! /c/s/d/e/j/y/c/i/swfPlayer.js
gc.init("ysl.cl.init.swfPlayer",function(a){Class("ysl.cl.init.swfPlayer.swfPlayer",{has:{node:{is:"rw"},debug:{is:"r",init:!1},flashAvailable:{is:"r",init:swfobject.hasFlashPlayerVersion("9.0.115")}},methods:{initialize:function(a){this.node=a;if(!this.node||this.node.length===0)return;var b=this.node.data("params");if(!this.flashAvailable){this.node.empty(),this.node.addClass("flash_required"),this.node.html("<p>"+gc.i18n("global.flashplayerRequired")+"</p>");return}var c={autostart:b.autostart,stretching:"fill",smoothing:"true"},d={wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"};swfobject.embedSWF(b.swf,b.id,b.width,b.height,"9.0.115","false",c,d,{id:b.id})}}})});
// !MeAb! /c/s/d/e/j/y/c/i/loading_spinner.js
gc.init("ysl.cl.init.spinner",function(a){Class("ysl.cl.init.spinner.Spinner",{classMethods:{show:function(a){a=a||!1,this.$loading=$("#loading"),this.$loadingPart=this.$loading.find(".js_loading"),this.$errorPart=this.$loading.find(".js_error"),this.$savedPart=this.$loading.find(".js_saved"),this.$loadingPart.removeClass("hidden"),this.$errorPart.addClass("hidden"),this.$savedPart.addClass("hidden");var b=this;a?$(".js_open_loader").click().trigger("quicktap"):this.showTimeout=setTimeout(function(){$(".js_open_loader").click().trigger("quicktap")},2e3),this.errorTimeout=setTimeout(function(){b.error()},3e4)},hide:function(){$("#loading .js_closeWindow").click(),this.showTimeout&&clearTimeout(this.showTimeout),this.errorTimeout&&clearTimeout(this.errorTimeout)},saved:function(){this.$loading=$("#loading"),this.$loadingPart=this.$loading.find(".js_loading"),this.$errorPart=this.$loading.find(".js_error"),this.$savedPart=this.$loading.find(".js_saved"),this.$loadingPart.addClass("hidden"),this.$errorPart.addClass("hidden"),this.$savedPart.removeClass("hidden"),Weet.clearHash(),this.errorTimeout&&clearTimeout(this.errorTimeout);var a=this;setTimeout(function(){a.hide()},3e3)},error:function(){this.$loading=$("#loading"),this.$loadingPart=this.$loading.find(".js_loading"),this.$errorPart=this.$loading.find(".js_error"),this.$savedPart=this.$loading.find(".js_saved"),this.$loadingPart.addClass("hidden"),this.$savedPart.addClass("hidden"),this.$errorPart.removeClass("hidden"),Weet.clearHash()}}})});
// !MeAb! /c/s/d/e/j/y/c/w/placeholder.js
gc.widget("smc.cl.widgets.placeholder",{},function(){this.nodeReady=function(a){if(Modernizr.input.placeholder)return;a.find("input[placeholder],textarea[placeholder]").each(function(){var a=$(this),b=$(this).attr("placeholder");a.bind("focus",function(){this.value==b&&(this.value="")}).bind("blur",function(){this.value==""&&(this.value=b,a.addClass("placeholding"))}),this.value.length||(this.value=b,a.removeClass("placeholding"))})}});
// !MeAb! c/s/d/e/j/g/c/w/click_tracking.js
gc.widget("gc.cl.widgets.clickTracking",{},function(a){this.ready=function(a){gc.live(".js_clicktrack","click",function(a){var b=$(this);if(b.hasClass("unavailable"))return;var d=b.attr("data-trackparams");c(d)})};var b=function(a){if(_.isEmpty(a))return;var b=_(arguments).tail(),d=0;_(b).each(function(b){if(b==undefined)return;var c=new RegExp("\\$"+ ++d);b=b.replace(/[ ,]/g,"_"),a=a.replace(c,b)}),c(a)};a.clickTracking=b;var c=function(a){_.isEmpty(a)||(a=a.split(","),xt_med.apply(this,a))};a.executeClickTracking=c});
// !MeAb! c/s/d/e/j/g/c/LazyMetaClass.js
gc.namespace("gc.cl",function(){Class("gc.cl.LazyMetaClass",{isa:Joose.Class,override:{initializeFromProps:function(a){var b=this,c=this.SUPER,d=!1,e=function(){d||(d=!0,joose.top.CHAOTIC_TRAVERSION_ORDER=!0,a.isa&&a.isa.finishBuild&&a.isa.finishBuild(),c.call(b,a))};this.addClassMethod("finishBuild",e),this.addClassMethod("create",function(){return e(),this.create.apply(this,arguments)}),this.c.getInstance=function(){return e(),this.getInstance.apply(this,arguments)}}}})});
// !MeAb! /c/s/d/e/j/y/c/controller.js
gc.namespace("ysl.cl.controller",function(){Class("ysl.cl.controller.ControllerManager",{does:Joose.Singleton,methods:{addNamespace:function(a){this.getNamespaces().push(a)},getNamespaces:function(){return this.namespaces||(this.namespaces=[gc.cl.controller]),this.namespaces},start:function(a){var b=null;if(a.data("controllerInstance"))b=a.data("controllerInstance"),b.receiveControl();else{var c=a.dataset("controller");if(c){var d=this.getNamespaces();for(var e=0;!b&&e<d.length;++e)b=d[e][c];if(!b)throw"controller '"+c+"' not found!";b=b.getInstance(),b.setRootNode(a),a.data("controllerInstance",b),b.invokeReady(),b.receiveControl()}}var f=!1;$(document).keyup(function(a){a.which==17&&(f=!1)}).keydown(function(a){a.which==17&&(f=!0),a.which==76&&f==1&&gc.cl.util.JSONData.subscribe("Log",function(a){try{_(gc.globalData("Log")).each(function(a){console.log(a)})}catch(b){}})})}}})});
// !MeAb! c/s/d/e/j/g/c/c/AbstractController.js
gc.namespace("gc.cl.controller",function(){var a=this;window.S2Controllers={},Class("gc.cl.controller.ControllerMetaClass",{isa:gc.cl.LazyMetaClass,methods:{handlePropevents:function(a){var b=this,c=this.className();Joose.O.eachSafe(a,function(a,d){a.displayName="EventHandler$"+c+"$"+d,gc.subscribe(d,function(){var c=b.c.getInstance();a.apply(c,arguments)})})}}}),Class("gc.cl.controller.AbstractController",{meta:a.ControllerMetaClass,does:Joose.Singleton,isAbstract:!0,has:{rootNode:{is:"rw"},_widgets:{is:"rw",init:function(){return[]}},$:{},gc:{}},methods:{invokeReady:function(){var a=this;this.widgets(),this.initWidgets(),this.ready(this.rootNode),this.nodeReady(this.rootNode),gc.subscribe("nodeReady",function(b){a.nodeReady(b)}),gc.publish("nodeReady",this.rootNode)},ready:function(a){},nodeReady:function(a){},destroy:function(){},receiveControl:function(){},initWidgets:function(){var a=this,b={};_(this._widgets).each(function(c){if(b[c])return;b[c]=!0;var d=gc.cl.Page.widgets[c];if(typeof d=="undefined")throw"widget undefined: "+c;d.func.call(d.ns,d.ns,a.rootNode,a.$,a.gc,a),d.ns.ready&&d.ns.ready(a.rootNode),d.ns.nodeReady&&a.gc.subscribe("nodeReady",function(a){d.ns.nodeReady(a)})})},widgets:function(){},addWidgets:function(a){}}})});
// !MeAb! /c/s/d/e/j/y/c/c/ApplicationController.js
gc.namespace("ysl.cl.controller",function(){Class("ysl.cl.controller.ApplicationController",{isa:gc.cl.controller.AbstractController})});
// !MeAb! c/s/d/e/j/g/c/c/MetaController.js
gc.namespace("gc.cl.controller",function(){Class("gc.cl.controller.MetaController",{isa:gc.cl.controller.AbstractController})});
// !MeAb! /c/s/d/e/j/y/c/c/EndlessController.js
gc.namespace("ysl.cl.controller",function(){var a=$(window),b=$(document);Class("ysl.cl.controller.EndlessController",{isa:ysl.cl.controller.ApplicationController,has:{page:{is:"rw",init:0},blocked:{init:!1},cached:{init:function(){return{}}},options:{init:{bottomPixels:600,topPixels:70,destination:"#products",productsPerPage:18}}},methods:{getMaxPage:function(){return window.GC_MAX_PAGE},ready:function(){var b=this,c=function(a){b.onScroll()};a.scroll(c).resize(c)},getBaseUrl:function(){var a=location.href;return a=a.replace(/\#.*/,""),a},getUrl:function(a){var b=this,c=this.options,d=b.getBaseUrl(),e=d.split("?"),f=e[1]?"?"+e[1]:"?",g=e[0],h=new gc.cl.util.Query(f);h.param("page",a),h.param("format","ajax");var d=g+"?"+h;return d},cacheNextPage:function(){},loadNextPage:function(a){var b=this,c=this.options;if(!this.blocked){var d=this.page+1;if(d<=b.getMaxPage()){this.blocked=!0,this.page=d;var e=this.getUrl(this.page);jQuery.get(e,function(d,e){e=="success"&&($(c.destination).append(d),gc.publish("search:contentchange"),gc.publish("search:loadnextpage")),b.blocked=!1,b.onScroll(),a?a.call(b):b.cacheNextPage()})}}},onScroll:function(){var b=this,c=this.options,d=a.scrollTop(),e=a.height();$("#main").height()+c.topPixels-e<=d+c.bottomPixels&&(this.loadNextPage(),gc.publish("endless:scroll"))}},events:{}})});
// !MeAb! /c/s/d/e/j/y/c/c/GridController.js
gc.namespace("ysl.cl.controller",function(){Class("ysl.cl.controller.GridController",{isa:ysl.cl.controller.ApplicationController,methods:{ready:function(){this.fixTitleOnFlashLoad()},isIE7:function(){return navigator.appVersion.indexOf("MSIE")!==-1&&parseFloat(navigator.appVersion.split("MSIE")[1])===7},fixTitleOnFlashLoad:function(){var a=document.title||"";document.onpropertychange=function(){var b,c=document.title||"";if(window.event.propertyName!="title"||c==a)return;b=c.indexOf("#")!=-1?c.substring(0,c.indexOf("#")):c,b==""&&c.indexOf("#")!=-1&&(b=a),a=b,document.title=b}}}})});
// !MeAb! /c/s/d/e/j/y/c/c/AccountController.js
gc.namespace("ysl.cl.controller",function(){Class("ysl.cl.controller.AccountController",{isa:ysl.cl.controller.ApplicationController,methods:{ready:function(){this.forgotPassword(),this.orders(),this.addTobasket(),this.fittingService(),this.resetPasswordFields(),this.wishlistCommentSubmission()},resetPasswordFields:function(){$('.js_profile input[type="password"]').attr("value","")},forgotPassword:function(){gc.live(".js_forgotpassword","submit",function(a){a.preventDefault();var b=$(this);if(!b.valid())return;ysl.cl.init.spinner.Spinner.show(),gc.cl.util.Ajax.post(b.attr("action"),b.serialize(),function(a,b){var c=a.filter("#forgotpassword");c.length&&$("#forgotpassword").empty().append(c.children()),ysl.cl.init.spinner.Spinner.hide()})})},wishlistCommentSubmission:function(){gc.live(".js_wl_comment","submit",function(a){a.preventDefault();var b=$(this);b.valid()&&(ysl.cl.init.spinner.Spinner.show(!0),gc.cl.util.Ajax.post(b.attr("action"),b.serialize(),function(a,b){ysl.cl.init.spinner.Spinner.saved()}))})},fittingService:function(){var a=$("#fittingStores li"),b=$(".js_fittingservice");gc.live(".js_fittingservice","change",function(c){c.preventDefault();var d=$(this).val();b.val(d),a.hide().filter("[dataset-id='"+d+"']").show()}),b.change()},addTobasket:function(){var a=[],b=function(a){a.variant&&a.variant.isAvailable()?a.removeData("disabled").text(a.dataset("active")).removeClass("unavailable"):a.data("disabled",!0).text(a.dataset("passive")).addClass("unavailable")},c=function(a,b){b&&b.isAvailable()?a.html(a.dataset(b.fromWhichBucket())):a.html(gc.i18n("product.na.wishlist"))};this.rootNode.find(".js_add_to_basket").each(function(d){var e=$(this),f=e.closest("li.pd"),g=f.find(".stock");gc.bo.fe.product.subscribe(e.dataset("variantid"),function(a){e.variant=a,b(e),c(g,a)}),a.push(e)}),gc.bo.Basket.subscribe(function(){var d;for(d=0;d<a.length;++d){var e=a[d];b(e);try{var f=e.closest("li.pd"),g=f.find(".stock");c(g,e.variant)}catch(h){}}})},orders:function(){var a={},b=function(a){a.data("visible",!0),a.css("display","table-row")},c=function(a){a.hide().removeData("visible")},d=function(a){a.data("visible")?c(a):b(a)};gc.live(".js_orderDetail","click",function(b){b.preventDefault();var c=$(this),e=c.dataset("orderno");d(a[e]||(a[e]=c.closest("#orders").find("#order"+e)))}),gc.live(".js_closeOrders","click",function(b){b.preventDefault(),c(a[$(this).dataset("orderno")])})}}})});
// !MeAb! /c/s/d/e/j/y/c/c/CategoryController.js
gc.namespace("ysl.cl.controller",function(){Class("ysl.cl.controller.CategoryController",{isa:ysl.cl.controller.GridController,after:{widgets:function(){this.addWidgets(["ysl.cl.widgets.scrollable"])}},has:{selectors:{is:"rw",init:function(){return[]}}},methods:{ready:function(){}}})});
// !MeAb! /c/s/d/e/j/y/c/c/CheckoutController.js
gc.namespace("ysl.cl.controller",function(){gc.cl.util.JSONData.subscribe("basket_count",function(a){$(".js_basket_count").html(""+a)}),Class("ysl.cl.controller.CheckoutController",{isa:ysl.cl.controller.ApplicationController,methods:{ready:function(){var a=this;gc.live("input.js_disabled","click",function(b){return b.preventDefault(),a.scrollTo($(this).closest(".group")),!1}),gc.live(".js_checkoutStep","submit",function(b){b.preventDefault();var c=$(this);c.valid()&&(ysl.cl.init.spinner.Spinner.show(),gc.cl.util.Ajax.post(c.attr("action"),c.serialize(),function(b,c){a.replaceStepNodes(b),window.RunByteSize&&window.RunByteSize()}))}),gc.live(".js_cartremove","click",function(b){b.preventDefault();var c=$(this);ysl.cl.init.spinner.Spinner.show(),gc.cl.util.Ajax.get(c.dataset("url"),function(b,c){a.replaceStepNodes(b)})}),gc.live(".js_cartquantity","change",function(b){b.preventDefault();var c=$(this);ysl.cl.init.spinner.Spinner.show(),gc.cl.util.Ajax.get(c.dataset("url")+"/"+c.val(),function(b,c){a.replaceStepNodes(b)})}),gc.live(".js_couponcode","submit",function(b){b.preventDefault();var c=$(this);ysl.cl.init.spinner.Spinner.show(),gc.cl.util.Ajax.post(c.attr("action"),c.serialize(),function(b,c){a.replaceStepNodes(b)})}),gc.live(".js_cartremovecoupon","click",function(b){b.preventDefault();var c=$(this);ysl.cl.init.spinner.Spinner.show(),gc.cl.util.Ajax.get(c.dataset("url"),function(b,c){a.replaceStepNodes(b)})}),gc.live(".js_cartcalculatetaxes","submit",function(b){b.preventDefault();var c=$(this);a.saveGiftState(),ysl.cl.init.spinner.Spinner.show(),gc.cl.util.Ajax.post(c.attr("action"),c.serialize(),function(b,c){var d=b.filter("#taxcalculation"),e=b.filter("#step1");d.length&&$("#taxcalculation").empty().append(d.children()),e.length&&($("#taxcalculation").find(".js_closeWindow").trigger("click"),a.rootNode.find("#step1").replaceWith(b)),a.resetGiftState(),ysl.cl.init.spinner.Spinner.hide()})}),gc.live(".js_tax_calc input[type='text']","focus",function(a){a.preventDefault();var b=$(".js_tax_calc");b.find("input, .formrow").removeClass("error")}),gc.live(".js_togglegift","change",function(a){var b=$(this),c=b.closest("form").find(".js_giftmessage");b.attr("checked")?c.removeClass("hidden"):c.addClass("hidden")}),gc.live(".js_modifygiftmessage","click",function(a){a.preventDefault();var b=$(this);b.addClass("hidden").siblings().toggleClass("hidden")}),gc.live(".js_forgotpassword","submit",function(a){a.preventDefault();var b=$(this);ysl.cl.init.spinner.Spinner.show(),gc.cl.util.Ajax.post(b.attr("action"),b.serialize(),function(a,b){var c=a.filter("#forgotpassword");c.length&&$("#forgotpassword").empty().append(c.children()),ysl.cl.init.spinner.Spinner.hide()})}),gc.live("#editaddress","submit",function(b){b.preventDefault();var c=$(this),d=gc.cl.widgets.formValidator.validatorSettings;c.validate(d).form()&&(ysl.cl.init.spinner.Spinner.show(),gc.cl.util.Ajax.post(c.attr("action"),c.serialize(),function(b,d){a.replaceStepNodes(b),c.closest(".js_window").find(".js_closeWindow").trigger("click"),ysl.cl.init.spinner.Spinner.hide()}))}),gc.live("select[name$='address']","change",function(a){var b=$(this),c=b.closest("form").find("input[type='submit']"),d=b.attr("name"),e=b.val();b.closest("fieldset").find("[id^='"+d+"']").each(function(){var a=$(this);a.attr("id").split("_")[1]==e?(b.attr("name")=="billingaddress"&&gc.publish("billingAddressChanged",{address:a}),a.show()):a.hide()});var f=$("select[name='shippingaddress'] option").length>0&&$("select[name$='address']:enabled option[data-invalid='true']:selected").length===0;f?c.removeClass("js_disabled"):c.addClass("js_disabled")}),gc.live(".js_signout","click",function(b){b.preventDefault();var c=$(this);ysl.cl.init.spinner.Spinner.show(),gc.cl.util.Ajax.get(c.attr("href"),function(b,c){a.replaceStepNodes(b)})}),gc.live("input[name='diffshipping']","change",function(a){var b=$(this),c=b.closest("form").find("fieldset.shipping"),d=c.find("select[name='shippingaddress']"),e=b.closest("form").find("input[type='submit']");b.val()==="diff"?(d.removeAttr("disabled"),c.show()):(c.hide(),d.attr("disabled","disabled"));var f=$("select[name='shippingaddress'] option").length>0&&$("select[name$='address']:enabled option[data-invalid='true']:selected").length===0;f?e.removeClass("js_disabled"):e.addClass("js_disabled")}),gc.live(".js_edit","click",function(b){b.preventDefault();var c=$(this);ysl.cl.init.spinner.Spinner.show(),gc.cl.util.Ajax.get(c.attr("href"),function(b,c){a.replaceStepNodes(b)})}),gc.live(".js_changedeliveryoptions","click",function(b){var c=$(this);ysl.cl.init.spinner.Spinner.show();var d=$(".js_billingaddressdropdown").val(),e=$('input[name="diffshipping"]:checked').attr("value"),f=$(".js_shippingaddressdropdown").val();gc.cl.util.Ajax.get(c.dataset("url")+"?shippingmethod="+encodeURI(c.val()),function(b,c){a.replaceStepNodes(b),$(".js_billingaddressdropdown").val(d).change(),$('input[name="diffshipping"][value="'+e+'"]').attr("checked",!0).trigger("change"),$(".js_shippingaddressdropdown").val(f).change()})}),gc.live("select[name='a.Payment.creditCardExpirationYear']","change",function(){$("form#payment").validate().element("select[name='a.Payment.creditCardExpirationMonth']")}),this.scrollTo($("#step"+gc.globalData("checkoutStep"))),this.initAddresses()},saveGiftState:function(){this.giftToggled=$(".js_togglegift").is(":checked"),this.giftMsg=$(".js_giftmessage textarea").val()},resetGiftState:function(){this.giftToggled&&($(".js_togglegift").click(),$(".js_giftmessage textarea").val(this.giftMsg),$(".js_giftmessage").removeClass("hidden"))},initAddresses:function(){$("input:radio[name='diffshipping']:checked").trigger("change"),$("select[name$='address']").trigger("change")},scrollTo:function(a){$("html, body").animate({scrollTop:a.offset().top-$("#header").outerHeight()},200)},replaceStepNodes:function(a){this.saveGiftState();var b=this,c,d,e,f;c=a.filter("[id^='step']"),c.length||(c=a.find("[id^='step']")),$.merge(c,a.find("#metanav, #summary"));var g=null;c.each(function(){d=$(this),e=d.attr("id"),b.rootNode.find("#"+e).replaceWith(d),e==="step3"&&gc.globalData("Addresses").length===0?g="#"+e:e==="metanav"&&$("#metanav").replaceWith(d)}),this.resetGiftState(),ysl.cl.init.spinner.Spinner.hide(),g!==null&&b.rootNode.find("#"+g+" .js_addaddress").trigger("click"),this.scrollTo(b.rootNode.find(".group.open")),this.initAddresses()}},events:{billingAddressChanged:function(a){$address=a.address,$address.find("address").data("sitecountryid")!=gc.globalData("siteCountryId").toLowerCase()?($(".js_shippingnotice").removeClass("hidden"),$("input:radio[name='diffshipping'][value='diff']").prop("checked",!0).trigger("change"),$(".diffshipping").addClass("hidden")):($(".js_shippingnotice").addClass("hidden"),$(".diffshipping").removeClass("hidden"))}}})});
// !MeAb! /c/s/d/e/j/y/c/c/FragmentController.js
gc.namespace("ysl.cl.controller",function(){Class("ysl.cl.controller.FragmentController",{isa:ysl.cl.controller.ApplicationController})});
// !MeAb! /c/s/d/e/j/y/c/c/MinisiteFragmentController.js
gc.namespace("ysl.cl.controller",function(){Class("ysl.cl.controller.MinisiteFragmentController",{isa:ysl.cl.controller.FragmentController,methods:{ready:function(){var a=this;this.$pages=this.rootNode.find(".page"),this.$showPageIndex=this.rootNode.find(".js_showPageIndex"),this.$pageIndex=this.rootNode.find("ul.pageIndex li"),this.$previousSlide=this.rootNode.find("a.previous"),this.$nextSlide=this.rootNode.find("a.next"),this.$gridviewThumbs=this.rootNode.find(".gridview img.thumb"),this.$closeWindow=this.rootNode.find(".js_closeWindow"),this.pages=[],_.each(this.$pages,function(b){var c={};c.slides=$(b).find(".slide"),c.gridSlides=$(b).find(".gridSlide"),a.pages.push(c)}),this.$pages.each(function(){$(this).data("video",$(this).find("video").clone())}),this.$previousSlide.live("click",function(b){b.preventDefault(),a.selectPreviousSlide()}),this.$nextSlide.live("click",function(b){b.preventDefault(),a.selectNextSlide()}),this.$showPageIndex.live("click mouseenter mouseleave",function(b){b.preventDefault(),a.togglePageIndex(this)}),this.$pageIndex.live("click",function(b){b.preventDefault(),a.selectPageByPageIndexItem(this)}),this.$gridviewThumbs.live("click",function(b){b.preventDefault(),a.selectSlideFromGridview(this)}),this.$closeWindow.click(function(b){if(a.actualPageIndex===null||a.actualPageIndex===undefined)return;b.preventDefault();var c=$(".slide.selected");return c.length&&c.parent().hasClass("gridSlide")?a.selectPage(a.actualPageIndex):a.selectPage(null),$(".slide").removeClass("selected"),!1})},selectPage:function(a){if(a<0||a>=this.$pages.length)return;this.actualPageIndex!==null&&($(this.$pages[this.actualPageIndex]).removeClass("selected"),$(this.$pageIndex[this.actualPageIndex]).removeClass("selected"));if(a===null){this.actualPageIndex=a,this.$pageIndex.show();return}$(this.$pageIndex[a]).addClass("selected");var b=$(this.$pages[a]);b.addClass("selected");var c=$(this.$pages[this.actualPageIndex]);c.find("object").remove(),$video=b.data("video"),$video.appendTo(b.find(".js_videoPlayer")),new ysl.cl.init.videoPlayer.VideoPlayer(b.find(".js_videoPlayer")),b.hasClass("js_gridview")&&b.addClass("gridview"),this.selectSlide(null),this.actualPageIndex=a,this.pages[a].slides.length>0&&this.selectSlide(0)},selectSlide:function(a){if($(this.$pages[this.actualPageIndex]).is(".gridview")){this.$previousSlide.hide(),this.$nextSlide.hide();return}if(this.pages[this.actualPageIndex]===undefined||a<0||a>=this.pages[this.actualPageIndex].slides.length)return;this.actualSlideIndex!==null&&$(this.pages[this.actualPageIndex].slides[this.actualSlideIndex]).removeClass("selected"),a!==null&&$(this.pages[this.actualPageIndex].slides[a]).addClass("selected"),this.actualSlideIndex=a,a>0?this.$previousSlide.fadeIn():this.$previousSlide.fadeOut(),a<this.pages[this.actualPageIndex].slides.length-1?this.$nextSlide.fadeIn():this.$nextSlide.fadeOut()},selectNextSlide:function(){this.selectSlide(this.actualSlideIndex+1)},selectPreviousSlide:function(){this.selectSlide(this.actualSlideIndex-1)},togglePageIndex:function(){this.$pageIndex.toggle()},selectPageByPageIndexItem:function(a){var b=_.indexOf(this.$pageIndex,a);this.selectPage(b),this.$pageIndex.hide()},selectSlideFromGridview:function(a){$(a).closest(".gridview").removeClass("gridview");var b=$(a).closest(".slide").data("index");this.selectSlide(b)}}})});
// !MeAb! /c/s/d/e/j/y/c/c/MagazineFragmentController.js
gc.namespace("ysl.cl.controller",function(){Class("ysl.cl.controller.MagazineFragmentController",{isa:ysl.cl.controller.FragmentController,methods:{ready:function(){this.$pages=this.rootNode.find(".page"),this.$stepper=this.rootNode.find("ol.stepper li"),this.$previous=this.rootNode.find("a.previous"),this.$next=this.rootNode.find("a.next"),this.selectPage(0);var a=this;this.$previous.live("click",function(){a.previousPage()}),this.$next.live("click",function(){a.nextPage()}),this.$stepper.live("click",function(){a.selectPageByStep(this)})},selectPage:function(a){if(a<0||a>=this.$pages.length)return;this.actualPageIndex!=null&&($(this.$pages[this.actualPageIndex]).removeClass("selected"),$(this.$stepper[this.actualPageIndex]).removeClass("selected")),$(this.$pages[a]).addClass("selected"),$(this.$stepper[a]).addClass("selected"),this.actualPageIndex=a,a>0?this.$previous.fadeIn():this.$previous.fadeOut(),a<this.$pages.length-1?this.$next.fadeIn():this.$next.fadeOut()},selectPageByStep:function(a){var b=_.indexOf(this.$stepper,a);this.selectPage(b)},nextPage:function(){this.selectPage(this.actualPageIndex+1)},previousPage:function(){this.selectPage(this.actualPageIndex-1)}}})});
// !MeAb! /c/s/d/e/j/y/c/c/CollectionFragmentController.js
gc.namespace("ysl.cl.controller",function(){Class("ysl.cl.controller.CollectionFragmentController",{isa:ysl.cl.controller.FragmentController,methods:{ready:function(){$list=this.rootNode.find(".viewport ul"),$firstImg=$list.find("img:first"),$copy=this.rootNode.find(".copy"),this.$zoomLink=this.rootNode.find(".actions a.zoom"),this.$zoomBox=this.rootNode.find("#zoom"),this.$zoomImg=this.$zoomBox.find("img"),this.$fullscreenLink=this.rootNode.find(".actions a.fullscreen"),$previous=this.rootNode.find("a.previous"),$next=this.rootNode.find("a.next"),totalLooks=$list.children("li").length,maxLooks=13,steps=totalLooks-maxLooks,stepIndex=0;var a=this;gc.live(".js_collection li:not(.active) a","click",function(b){b.preventDefault(),a.select($(this).closest("li"))}),gc.live(".js_collection img:not(.active)","click",function(){a.showVisual($(this))}),gc.live(".actions .zoomIn","click",function(b){b.preventDefault(),a.showZoom(b,$(this))}),gc.live(".actions .zoomOut","click",function(b){b.preventDefault(),a.hideZoom()});var b="ontouchstart"in document.documentElement?"touchstart":"mouseover",c="ontouchend"in document.documentElement?"touchend":"mouseout";$previous.live(b,function(b){b.preventDefault(),a.previousStep()}),$previous.live(c,function(a){a.preventDefault(),$list.stop()}),$next.live(b,function(b){b.preventDefault(),a.nextStep()}),$next.live(c,function(a){a.preventDefault(),$list.stop()});var d=function(b){var c=b.pageX-a.dragStartPos.x,d=b.pageY-a.dragStartPos.y,e=Math.max(a.zoomMaxPos.left,Math.min(0,Math.round(a.zoomStartPos.left+c))),f=Math.max(a.zoomMaxPos.top,Math.round(a.zoomStartPos.top+d));f>0&&(f=0),a.$zoomImg.css({top:f+"px"})};this.$zoomBox.mousedown(function(b){b.preventDefault(),a.dragStartPos={x:b.pageX,y:b.pageY},a.zoomStartPos=a.$zoomImg.position(),$(document).bind("mousemove",d).one("mouseup",function(a){$(document).unbind("mousemove",d)})}),$firstImg.addClass("active"),this.rootNode.find(".visual").fadeIn(),this.showPreview($list.find("li:first")),this.setZoomAndFullscreen($firstImg),totalLooks>maxLooks&&$next.fadeIn()},initializeScrollPane:function(a){a.jScrollPane({verticalGutter:15})},nodeReady:function(){var a=this,b=$copy.filter(".active").find(".scrollpane");window.setTimeout(function(){a.initializeScrollPane(b)},0)},select:function(a){var b=this;this.showVisual(a.find("img:first"));var c=$list.find("li.active .preview");c.stop(!0,!0).slideUp("fast",function(){c.closest("li").removeClass("active"),b.showPreview(a)}),$copy.removeClass("active");var d=$copy.filter("#"+a.data("id")).addClass("active");this.initializeScrollPane(d.find(".scrollpane"))},setZoomAndFullscreen:function(a){var b=a.data("realzoomurl"),c=a.data("zoomurl");this.$zoomLink.data("realzoomurl",b),this.$fullscreenLink.data("zoomurl",c),b!=""?this.$zoomLink.show():this.$zoomLink.hide(),c!=""?this.$fullscreenLink.show():this.$fullscreenLink.hide()},showPreview:function(a){var b=a.data("layout");this.rootNode.removeClass("light").addClass(b),a.addClass("active").find(".preview").slideDown()},showVisual:function(a){this.hideZoom(),this.setZoomAndFullscreen(a),$visual=this.rootNode.find(".visual"),$visual.hide(),a.addClass("active").siblings().removeClass("active");var b=new Image;b.onload=function(b){$visual.attr({src:a.data("image"),alt:a.attr("alt")}).fadeIn()},b.src=a.data("image")},showZoom:function(a){this.$zoomLink.removeClass("zoomIn").addClass("zoomOut"),this.$zoomImg.attr("src",this.$zoomLink.data("realzoomurl")),this.zoomMaxPos={left:this.$zoomBox.width()-this.$zoomImg.width(),top:this.$zoomBox.height()-this.$zoomImg.height()},this.$zoomBox.fadeIn("fast");var b=(this.$zoomImg.width()-this.$zoomBox.width())/2,c=0;this.$zoomImg.css({top:-c+"px",left:-b+"px",cursor:"move"})},hideZoom:function(){this.$zoomLink.removeClass("zoomOut").addClass("zoomIn");var a=this;this.$zoomBox.fadeOut(function(){a.$zoomImg.removeAttr("src").removeAttr("style")})},nextStep:function(){var a=31,b=-a*steps,c=parseInt($list.css("top"));if(c<=b)return;$previous.fadeIn();var d=Math.abs(c-b);$list.animate({top:b},{duration:d*6,easing:"linear",complete:function(){$next.fadeOut()}})},previousStep:function(){var a=0,b=parseInt($list.css("top"));if(b>=a)return;$next.fadeIn();var c=Math.abs(b-a);$list.animate({top:a},{duration:c*6,easing:"linear",complete:function(){$previous.fadeOut()}})}}})});
// !MeAb! /c/s/d/e/j/y/c/c/SneakFragmentController.js
gc.namespace("ysl.cl.controller",function(){Class("ysl.cl.controller.SneakFragmentController",{isa:ysl.cl.controller.FragmentController})});
// !MeAb! /c/s/d/e/j/y/c/c/PolaroidFragmentController.js
gc.namespace("ysl.cl.controller",function(){Class("ysl.cl.controller.PolaroidFragmentController",{isa:ysl.cl.controller.FragmentController})});
// !MeAb! /c/s/d/e/j/y/c/c/ImageFragmentController.js
gc.namespace("ysl.cl.controller",function(){Class("ysl.cl.controller.ImageFragmentController",{isa:ysl.cl.controller.FragmentController,methods:{ready:function(){var a=this.rootNode}}})});
// !MeAb! /c/s/d/e/j/y/c/c/VideoFragmentController.js
gc.namespace("ysl.cl.controller",function(){Class("ysl.cl.controller.VideoFragmentController",{isa:ysl.cl.controller.FragmentController,methods:{ready:function(){var a=this.rootNode;new ysl.cl.init.videoPlayer.VideoPlayer(a.find(".js_videoPlayer"))}}})});
// !MeAb! /c/s/d/e/j/y/c/c/PlaylistFragmentController.js
gc.namespace("ysl.cl.controller",function(){Class("ysl.cl.controller.PlaylistFragmentController",{isa:ysl.cl.controller.FragmentController,methods:{ready:function(){var a=this.rootNode;new ysl.cl.init.swfPlayer.swfPlayer(a.find("#playlist"))}}})});
// !MeAb! /c/s/d/e/j/y/c/c/ProductController.js
gc.namespace("ysl.cl.controller",function(){Class("ysl.cl.controller.ProductController",{isa:ysl.cl.controller.ApplicationController,has:{products:{is:"rw",init:function(){return{}}}},methods:{ready:function(){var a=this;this.rootNode.find("#pddetails").each(function(){a.initColorAndSizeSelector($(this))}),this.rootNode.find(".looks li").each(function(){a.initColorAndSizeSelector($(this),!0)}),a.initChartSwitching(),a.enableInsideLinks()},initColorAndSizeSelector:function(a,b){var c=this;style=a.attr("data-style"),gc.bo.fe.product.subscribe(style,function(d){var e=d.getID();if(!c.products[e]){c.products[e]=d;var f=a.find(".js_product_selector"),g=a.find(".js_product_images"),h=a.find(".js_add_to_wishlist"),i=a.find(".js_add_to_basket"),j=a.find(".js_available"),k=a.find(".js_storelocator"),l=a.find(".js_props"),m=a.find(".js_sharevariant"),n,o,p;a.is(".js_product_selector")&&(f=a),f.length>0?(o=new ysl.cl.init.selector.Selector(f),n=c.products[e]=o.start(Weet.get("products."+e)),c.setFavicon()):n=c.products[e],g.length>0&&(n.meta.className()=="gc.bo.fe.product.ProductSet"?p=new ysl.cl.init.productImages.ProductSetImages(g,o,n):p=new ysl.cl.init.productImages.ProductImages(g,o,n));var q=function(a){if(!h.length)return;var b=gc.cl.util.URL.to("wishlist/add")+"/"+a;h.attr("href",b),updateTrackParams(h,n.getID())},r=function(a){if(!i.length)return;i.dataset("variantid",a.getID()),i.data("disabled",!0),i.addClass("unavailable"),gc.cl.util.JSONData.subscribe("Basket",function(b){var c=typeof a.fromWhichBucket!="function";if(a.isAvailable()&&!c&&a.hasPrice()){var d=gc.cl.util.URL.to("cart/add")+"/"+a.getID()+"?rand="+Math.random();i.attr("href",d),i.removeData("disabled").text(i.dataset("active")),i.removeClass("unavailable"),j.text(j.dataset(a.fromWhichBucket())).removeClass("hidden"),k.toggleClass("hidden",!0),updateTrackParams(i,a.getID())}else i.data("disabled",!0).text(i.dataset("passive")),j.addClass("hidden"),k.toggleClass("hidden",!1)})},s=function(a){l.empty();var b="";Joose.A.each(a.getProps(),function(a){b+="<li>"+a+"</li>"}),l.append(b)},t=function(a){var b=a.getName(),c=a.getShortUrl();m.dataset("sharetext",gc.i18n("sharing.tweet.product",b,c)),m.dataset("shareurl",c),m.dataset("sharetitle",b),m.dataset("shareimg",a.getImages("470x550")[0].url),updateTrackParams(m,a.getID())},u=function(a){typeof a.getShorterName=="function"&&$("#breadcrumb").find("li.last").html(a.getShorterName())};typeof n!="undefined"&&(q(n.getID()),r(n),s(n),t(n),b||u(n)),typeof o!="undefined"&&o.change(function(a){n=a,q(a.getID()),r(a),s(a),t(a),document.title=a.getName(),b||u(n)}),gc.bo.Basket.subscribe(function(){r(n)})}})},initChartSwitching:function(){var a=/(?:^|\s*)(js_sg_[^\s]+)(?:\s*|$)/;gc.live("#sizeguide ul.catnav a","click",function(b){var c=$("#sizeguide ul.charts_data"),d=$("#sizeguide ul.catnav"),e=$(this).parent(),f=e.attr("class");f=a.test(f)&&a.exec(f)[1],d.find("li").removeClass("active"),e.addClass("active"),c.find("li").each(function(){$(this).hasClass(f)?$(this).addClass("active"):$(this).removeClass("active")})})},enableInsideLinks:function(){$(".js_weet_extend").live("click",function(a){a.preventDefault();var b=$(this).dataset("id"),c={};c[b]={href:$(this).attr("href"),roles:$(this).dataset("roles")},Weet.extend({windows:c})})},setFavicon:function(){var a=$('link[type="image/x-icon"]').remove().attr("href");$('<link href="'+a+'" rel="shortcut icon" type="image/x-icon" />').appendTo("head")}}})});var updateTrackParams=function(a,b){a.each(function(a,c){var d=$(c);d.attr("xtclib")&&d.attr("xtclib",d.attr("xtclib").replace(/(::)[\w\d]+(,?\w*)$/,function(a,c,d){return c+b+d}))})};
// !MeAb! /c/s/d/e/j/y/c/c/StorelocatorController.js
gc.namespace("ysl.cl.controller",function(){Class("ysl.cl.controller.StorelocatorController",{isa:ysl.cl.controller.GridController,has:{$storeimages:{},$storeimage:{},$storemap:{}},methods:{ready:function(){this.init(),this.handleStoreThumbClicks(),this.handleSeeMapClicks(),this.$storemap.hasClass("init")&&this.$maplink.trigger("click")},init:function(){this.$storeimages=$(".js_storeimages"),this.$storeimage=this.$storeimages.find(".js_storeimage"),this.$storemap=this.$storeimages.find(".js_storemap")},handleStoreThumbClicks:function(){var a=this;this.$storeimages.delegate(".js_storethumb","click",function(){var b=$(this);return a.$storemap.hide(),a.$storeimage.show().attr("src",b.attr("href")),this.blur(),!1})},handleSeeMapClicks:function(){var a=this,b=this.$maplink=this.rootNode.find(".js_storemaplink");b.click(function(){a.$storeimage.hide(),a.$storemap.show();var c=parseFloat(b.data("lat")),d=parseFloat(b.data("lon")),e=new google.maps.LatLng(c,d),f={zoom:16,center:e,mapTypeId:google.maps.MapTypeId.ROADMAP},g=new google.maps.Map(a.$storemap[0],f),h=new google.maps.Marker({position:e,icon:b.dataset("icon")});return h.setMap(g),this.blur(),!1})}}})});
// !MeAb! /c/s/d/e/j/y/c/c/FooternavController.js
gc.namespace("ysl.cl.controller",function(){Class("ysl.cl.controller.FooternavController",{isa:ysl.cl.controller.ApplicationController,methods:{ready:function(){this.newsletterSubmit(),this.contactSubmit()},newsletterSubmit:function(){gc.live("form[name='newsletter']","submit",function(a){a.preventDefault();var b=$(this),c=b.siblings(".js_resultMsg"),d=gc.cl.widgets.formValidator.validatorSettings;b.validate(d).form()&&(ysl.cl.init.spinner.Spinner.show(),gc.cl.util.Ajax.post(b.attr("action"),b.serialize(),function(a,d,e,f){a.success&&b.hide(),c.html(a.message).removeClass("hidden");var g=$(".js_bodytext").find("a");g.attr("href",g.attr("href")+"?"+$.param({email:a.email,nt:a.newsletterType})),ysl.cl.init.spinner.Spinner.hide()}))})},contactSubmit:function(){gc.live("form[name='contact']","submit",function(a){a.preventDefault();var b=$(this),c=b.siblings(".js_resultMsg"),d=gc.cl.widgets.formValidator.validatorSettings;b.validate(d).form()&&(ysl.cl.init.spinner.Spinner.show(),gc.cl.util.Ajax.post(b.attr("action"),b.serialize(),function(a,d,e,f){a.success&&b.hide(),c.html(a.message).removeClass("hidden"),ysl.cl.init.spinner.Spinner.hide()}))})}}})});
// !MeAb! /c/s/d/e/j/y/c/c/HomeController.js
gc.namespace("ysl.cl.controller",function(){Class("ysl.cl.controller.HomeController",{isa:ysl.cl.controller.GridController,methods:{ready:function(){$("#home_nav a").click(function(){var a=$(this).siblings("ul");a.length>0&&a.find("li").toggle()})}}})});
// !MeAb! /c/s/d/e/j/config.js
ysl.cl.controller.ControllerManager.getInstance().addNamespace(ysl.cl.controller);
// !MeAb! cartridge/static/default/extensions/js/ext/xtclicks.js
//-- AT Ergonomics A-C 3.1.011 -- Copyright 2010 AT INTERNET, All Rights Reserved.
//-- (to be used with AT Tag 3.3.001 or later)
var scriptOnClickZone=2,xtczv='31011',xtdtmp=0,xtdt2=new Date(),xtel=new xtE(xtdt2.getTime()),xtn=navigator,un=undefined,nu=null,cZ='xtcz',oC='onclick',cL='xtclib',cT='xtcltype',tR=true,fA=false,isI=(/MSIE/.test(xtn.userAgent))?tR:fA,isOP=(/Opera/.test(xtn.userAgent))?tR:fA,isS=(/Safari/.test(xtn.userAgent))?tR:fA,isM=(xtn.appVersion.indexOf('Mac',0)>=0)?tR:fA,larg=0,haut=0,hit=fA,xt_perdz=nu,fO=fA;
function xtIdxOf(tab,v,n){n=(n==nu)?0:n;var m=tab.length;for(var i=n;i<m;i++)if(tab[i]==v)return i;return -1;}
function xtT(xl){if(xl.innerHTML){var xtx=xl.innerHTML,r=new RegExp('<script[^>]*>','gi');if(r.test(xtx.toString()))return fA;xtx=(xtx.toString()).replace(/<\/?[^>]+>/gi,'');var regex=new RegExp('(&nbsp;)','g');xtx=(xtx.toString()).replace(regex,'');xtx=xtEn(xtx);var regex2=new RegExp('(%C2%A0)','g');xtx=(xtx.toString()).replace(regex2,'');try{xtx=xtDe(xtx)}catch(e){}xtx=(xtx.toString()).replace(/[\s]/gm,'');if((xtx.length==0)||(xtx==un)||(xtx==nu))return fA;return xtx}return fA}
function xtE(st){this.xttab=new Array();this.xst=st;this.xc=0;this.yc=0;this.sx=0;this.sy=0;this.px=0;this.py=0;this.xr=0;this.yr=0;this.bf='';this.af='';this.curr='';this.cliccz='';this.dest='';this.s=0;this.pcz='';this.s2cz='';this.t=0;this.idmod=0;this.p='';this.s2='';this.idpage=-1}
function xtH(){var d2=new Date();return(d2.getTime()-xtel.xst)}
function xtC(e){if(!e){if(xw.event){e=xw.event}else{return{x:-1,y:-1}}}var xc=-1,yc=-1;if(typeof(e.pageX)=='number'){xc=e.pageX;yc=e.pageY}else if(typeof(e.clientX)=='number'){xc=e.clientX;yc=e.clientY;var bad=(xw.xtn.userAgent.indexOf('Opera')+1)||(xw.ScriptEngine&&ScriptEngine().indexOf('InScript')+1)||(xtn.vendor=='KDE');if(!bad){if(xd.body&&(xd.body.scrollLeft||xd.body.scrollTop)){xc+=xd.body.scrollLeft;yc+=xd.body.scrollTop;}else if(xd.documentElement&&(xd.documentElement.scrollLeft||xd.documentElement.scrollTop)){xc+=xd.documentElement.scrollLeft;yc+=xd.documentElement.scrollTop;}}}else{return{x:-1,y:-1}}return{x:xc,y:yc}}
function xtAs(xl){var rect=xtAb(xl),width=rect.right-rect.left,height=rect.bottom-rect.top;return{w:width,h:height}}
function xtAb(xl){if(xl['rectDefined'])return{left:xl.rLeft,top:xl.rTop,right:xl.rRight,bottom:xl.rBottom};if(!xl.shape)xl.shape='rect';var coords=xl.coords.split(','),result;if(xl.shape.toLowerCase()=='rectangle'||xl.shape.toLowerCase()=='rect'){result={left:parseInt(coords[0]),top:parseInt(coords[1]),right:parseInt(coords[2]),bottom:parseInt(coords[3])}}if(xl.shape.toLowerCase()=='circle'||xl.shape.toLowerCase()=='circ'){result={left:parseInt(coords[0])-parseInt(coords[2]),top:parseInt(coords[1])-parseInt(coords[2]),right:parseInt(coords[0])+parseInt(coords[2]),bottom:parseInt(coords[1])+parseInt(coords[2])}}if(xl.shape.toLowerCase()=='polygon'||xl.shape.toLowerCase()=='poly'){var l_ex,t_ex,r_ex,b_ex;for(var i=0;i<coords.length;i+=2){var co=parseInt(coords[i]);if(l_ex==un||co<l_ex)l_ex=co;if(r_ex==un||co>r_ex)r_ex=co;}for(var i=1;i<coords.length;i+=2){var co=parseInt(coords[i]);if(t_ex==un||co<t_ex)t_ex=co;if(b_ex==un||co>b_ex)b_ex=co;}result={left:l_ex,top:t_ex,right:r_ex,bottom:b_ex}}xl.rectDefined=tR;xl.rLeft=result.left;xl.rRight=result.right;xl.rTop=result.top;xl.rBottom=result.bottom;return result}
function xtAp(area,target){var map=xtpN(area);if(!map.dstElement){if(!target){target=xd;}var elts=target.getElementsByTagName('*');if(elts['toArray'])elts=elts.toArray();for(var i=0;i<elts.length;i++){var xl=elts[i];if(xl.useMap){if(xl.useMap.replace('#','')==map.name)break;}xl=nu;}map.dstElement=xl;}if(map.dstElement){var basePx=xtP(map.dstElement,'Left'),basePy=xtP(map.dstElement,'Top'),rect=xtAb(area);return{x:(basePx+rect.left),y:(basePy+rect.top)}}else{return{x:-1,y:-1}}}
function xtSx(xl){var szx=(xtnN(xl)=='AREA')?xtAs(xl).w:xl.offsetWidth;if((szx==nu)||(szx==un)||(szx=='')){if(xl.style.width!=nu)szx=xl.style.width;else szx=0;}if(isS&&isM&&(xtnN(xl)=='TR')&&(xl.firstChild!=nu)&&(xl.lastChild!=nu))szx=xl.lastChild.offsetLeft+xl.lastChild.offsetWidth-xl.firstChild.offsetLeft;if((szx==nu)||(szx==un)||(szx=='')){szx=0;}return parseInt(szx,10)}
function xtSy(xl){var szy=(xtnN(xl)=='AREA')?xtAs(xl).h:xl.offsetHeight;if((szy==nu)||(szy==un)||(szy=='')){if(xl.style.height!=nu)szy=xl.style.height;else szy=0;}if(isS&&isM&&(xtnN(xl)=='TR')&&(xl.firstChild!=nu)&&(xl.lastChild!=nu))szy=xl.lastChild.offsetTop+xl.lastChild.offsetHeight-xl.firstChild.offsetTop;if((szy==nu)||(szy==un)||(szy=='')){szy=0;}return parseInt(szy,10)}
function xtPx(xl){var psx=(xtnN(xl)=='AREA')?xtAp(xl).x:xtP(xl,'Left');return parseInt(psx,10)}
function xtPy(xl){var psy=(xtnN(xl)=='AREA')?xtAp(xl).y:xtP(xl,'Top');if(isS&&isM&&(xtnN(xl)=='TR')&&(xl.firstChild!=nu))psy+=xl.firstChild.offsetTop;return parseInt(psy,10)}
function xtP(oEl,inTYPE){if(typeof(oEl.offsetParent)!=un){var sType='oEl.offset'+inTYPE;for(var iVal=0;oEl;oEl=oEl.offsetParent){iVal+=eval(sType);}return iVal;}else{if(inTYPE=='Left')return oEl.x;if(inTYPE=='Top')return oEl.y;}return-1}
function xtExD(url){var u=url.replace(/((http)|(https)):\/\//g,''),p=u.indexOf('/');p=(p!=-1)?p:u.length;u=xtSub(u,0,p);return u;}
function xtCt(xl){var xclict='',xext='',xurld='',xdoms=(xw.xt1!=nu&&xw.xt1!='')?xtSub(xw.xt1,8,xw.xt1.length):xd.domain,xdomd='';if(xl){if((xtnN(xl)=='INPUT')&&(xl.type=='submit')){try{xurld=xtG(xl.form,'action').toString();}catch(e){}xext=xtSub(xurld,xurld.lastIndexOf('.'),xurld.length);xdomd=xtExD(xurld);}if((xtnN(xl)!='IMG')&&xl.href){xurld=(xl.href).toString();xext=xtSub(xurld,xurld.lastIndexOf('.'),xurld.length);xdomd=xtExD(xurld);}else{var xlp=xtpN(xl);while(xlp&&xtnN(xlp)!='BODY'){if(xlp.href){xurld=(xlp.href).toString();xext=xtSub(xurld,xurld.lastIndexOf('.'),xurld.length);xdomd=xtExD(xurld);break;}xlp=xtpN(xlp);}}}if(xtEx(xext))xclict='T';else if((xdomd!='')&&(xdomd.indexOf(xdoms,0)<0))xclict='S';else{xclict='N';}if(xurld.length>255)xurld=xtSub(xurld,0,255);var ch=xurld;if(ch.charAt(ch.length-1)=='/')ch=xtSub(ch,0,ch.length-1);var pos=ch.lastIndexOf('/?',ch.length);if(pos>=0)ch=ch.replace('/?','?');xurld=ch;try{if((xtDe(xurld)!=nu)&&(xtDe(xurld)!=un))xurld=xtDe(xurld);}catch(e){}return{typ:xclict,url:xurld}}
function xtEx(xext){var valext=['.aac','.ace','.ape','.art','.avi','.bak','.bat','.bin','.bmp','.bsp','.cab','.ccd','.cda','.chm','.clp','.css','.csv','.cue','dic','dll','.doc','.dot','.exe','.fla','.flac','.gif','.gz','.hlp','.ico','.img','.iso','.jpeg','.jpg','.js','.lnk','.m2a','.m2v','.m3u','.mdb','.mdf','.mds','.mid','.midi','.mkv','.mod','.mov','.mp2','.mp3','.mp4','.mpc','.mpg','.mpeg','.msi','.nfo','.nrg','.obd','.ocx','.ogg','.old','.ogm','.pdf','.png','.pps','.ppt','.psd','.psp','.rar','.raw','.reg','.rm','.ram','.rtf','.swf','.tar','.tga','.tgz','.theme','.tif','.tiff','.tmp','.torrent','.ttf','.txt','.url','.vbs','.vob','.wab','.wav','.wdb','.wks','.wml','.wma','.wmv','.wpf','.xls','.xml','.zip','.7z'];for(var i=0;i<valext.length;i++){if(xext==valext[i])return tR;}return fA}
function xtL(xl){var xlel=['INPUT','SELECT','IFRAME','OBJECT','AREA','BUTTON'],xeln=xtnN(xl);if((xeln=='EMBED')&&(xtnN(xtpN(xl)))!='OBJECT'){return tR;}if((xeln=='DIV')&&(xtG(xl,cL))){return tR;}if((xeln=='SPAN')&&(xtG(xl,oC))){return tR;}if((xeln=='SELECT')&&((xtG(xl,'onchange')==nu)||(xtG(xl,'onchange')==un)||(xtG(xl,'onchange')==''))){return fA;}if((xeln=='INPUT')&&(xl.type!='submit')&&(xl.type!='image')&&(xl.type!='button')){return fA;}if((xeln=='BUTTON')&&(xl.type!='submit')){return fA;}if(xeln=='IMG'){var xlp=xtpN(xl);var xtTr=fA;while(xlp){if(xtnN(xlp)=='A'){xtTr=tR;if((((xtG(xlp,oC)!=nu)&&(xtG(xlp,oC)!=un)&&(xtG(xlp,oC)!=''))||((xtG(xlp,'href')!=nu)&&(xtG(xlp,'href')!=un)&&(xtG(xlp,'href')!='')))){return tR;}}xlp=xtpN(xlp);}if((xtG(xl,oC)!=nu)&&(xtG(xl,oC)!=un)&&(xtG(xl,oC)!='')&&!xtTr)return tR;}if((xeln=='A')&&(((xtG(xl,oC)!=nu)&&(xtG(xl,oC)!=un)&&(xtG(xl,oC)!=''))||((xtG(xl,'href')!=nu)&&(xtG(xl,'href')!=un)&&(xtG(xl,'href')!='')))){var xlp=xtpN(xl);while(xlp){if(((xtnN(xlp)=='DIV')&&(xtG(xlp,cL)))||((xtnN(xlp)=='SPAN')&&(xtG(xlp,oC))))return fA;xlp=xtpN(xlp);}var xtImg=fA,xtTxt=fA;if(xl.childNodes){var xtChild=xl.childNodes,j=0;while(j<xtChild.length&&!(xtImg&&xtTxt)){if(xtnN(xtChild[j])=='IMG'){xtImg=tR;}else{xtTxt=tR;}j++;}}if(xtImg&&xtTxt) return tR;else if(xtImg) return fA;else return tR;}for(var i=0;i<xlel.length;i++){if(xeln==xlel[i])return tR;}return fA}
function xtLCz(xl){var xlel=['DIV','TABLE','TR','TD','UL','LI'],xeln=xtnN(xl);for(var i=0;i<xlel.length;i++){if((xeln==xlel[i])&&(xl.nodeType==1)&&(xtG(xl,cZ)!=nu)&&(xtG(xl,cZ)!=un)){return tR;}}return fA;}
function xtNa(xl){if(xl&&!xtL(xl)){var xlp=xtpN(xl);while(xlp){if(xtL(xlp)){xl=xlp;break;}xlp=xtpN(xlp);}}var xtobj=null,xid='',xtmedat='',xtmedp='',xtmeds='',type='',xurld='',xtTr=fA;if(xl){if((xtnN(xl)=='A')&&(xl.childNodes)){var xtChild=xl.childNodes,j=0;while((j<xtChild.length)&&!xtTr){if((xtChild[j].nodeType==1)&&!xtL(xtChild[j])&&(xtG(xtChild[j],cL))){xid=cL+xtG(xtChild[j],cL);xtTr=tR;}j++;}}if(!xtTr){if(xtG(xl,oC)&&xtV(xtG(xl,oC)))xid=xtG(xl,oC);else if(xl.href&&xtV(xl.href)){xid=xl.href;try{if((xtDe(xid)!=nu)&&(xtDe(xid)!=un))xid=xtDe(xid);}catch(e){}}else if(xtG(xl,cL))xid=cL+xtG(xl,cL);else if(xtT(xl))xid=xtT(xl);else if(xl.id)xid=xl.id;else if(xl.name)xid=xl.name;else if(xl.title)xid=xl.title;else if(xl.value)xid=xl.value;else if(xl.href){var ch=xl.href.toString();if(ch.charAt(ch.length-1)=='/')ch=xtSub(ch,0,ch.length-1);var pos=ch.lastIndexOf('/?',ch.length);if(pos>=0)ch=ch.replace('/?','?');xid=ch;try{if((xtDe(xid)!=nu)&&(xtDe(xid)!=un))xid=xtDe(xid);}catch(e){}}else if(xl.src){var ch=xl.src.toString();if(ch.charAt(ch.length-1)=='/')ch=xtSub(ch,0,ch.length-1);var pos=ch.lastIndexOf('/?',ch.length);if(pos>=0)ch=ch.replace('/?','?');xid=ch;try{if((xtDe(xid)!=nu)&&(xtDe(xid)!=un))xid=xtDe(xid);}catch(e){}}else{var xlp=xtpN(xl);while(xlp&&xtnN(xlp)!='BODY'){if(xtG(xlp,oC)&&xtV(xtG(xlp,oC))){xid=xtG(xlp,oC);break;}else if(xlp.href&&xtV(xlp.href)){xid=xlp.href;try{if((xtDe(xid)!=nu)&&(xtDe(xid)!=un))xid=xtDe(xid);}catch(e){}break;}else if(xtG(xl,cL)){xid=cL+xtG(xl,cL);break;}else if(xtT(xlp)){xid=xtT(xlp);break;}else if(xlp.id){xid=xlp.id;break;}else if(xlp.name){xid=xlp.name;break;}else if(xlp.title){xid=xlp.title;break;}else if(xlp.value){xid=xlp.value;break;}else if(xlp.href){var ch=xlp.href.toString();if(ch.charAt(ch.length-1)=='/')ch=xtSub(ch,0,ch.length-1);var pos=ch.lastIndexOf('/?',ch.length);if(pos>=0)ch=ch.replace('/?','?');xid=ch;try{if((xtDe(xid)!=nu)&&(xtDe(xid)!=un))xid=xtDe(xid);}catch(e){}break;}else if(xlp.src){var ch=xlp.src.toString();if(ch.charAt(ch.length-1)=='/')ch=xtSub(ch,0,ch.length-1);var pos=ch.lastIndexOf('/?',ch.length);if(pos>=0)ch=ch.replace('/?','?');xid=ch;try{if((xtDe(xid)!=nu)&&(xtDe(xid)!=un))xid=xtDe(xid);}catch(e){}break;}xlp=xtpN(xlp);}}}xid=(xid.toString()).replace(/[\s]/gm,'');if(xtV(xid)){xtobj=xtExT(xid);type=xtobj.typ;xtmedp=xtobj.pag;xtmeds=xtobj.sec;if(xtG(xl,cL))xid=cL+xtG(xl,cL);else xid=xtobj.pagcl;}else{var xlp=xtpN(xl);while(xlp&&(xtnN(xlp)!='BODY')){if(xtG(xlp,oC)&&xtV(xtG(xlp,oC))){xtmedat=xtG(xlp,oC);xtmedat=(xtmedat.toString()).replace(/[\s]/gm,'');xtobj=xtExT(xtmedat);type=xtobj.typ;xtmedp=xtobj.pag;xtmeds=xtobj.sec;break;}else if(xlp.href&&xtV(xlp.href)){xtmedat=xlp.href;try{if((xtDe(xtmedat)!=nu)&&(xtDe(xtmedat)!=un))xtmedat=xtDe(xtmedat);}catch(e){}xtmedat=(xtmedat.toString()).replace(/[\s]/gm,'');xtobj=xtExT(xtmedat);type=xtobj.typ;xtmedp=xtobj.pag;xtmeds=xtobj.sec;break;}xlp=xtpN(xlp);}}if(type==''){if(xtG(xl,cT)!=nu){type=xtG(xl,cT);}else{var xlp=xtpN(xl);while(xlp&&(xtnN(xlp)!='BODY')){if(xtG(xlp,cT)!=nu){type=xtG(xlp,cT);break;}xlp=xtpN(xlp);}}}if(type=='')type=xtCt(xl).typ;xurld=xtCt(xl).url;if(xtmedp==''){xtmedp=(xid.indexOf(cL,0)>=0)?xtExTc(xid):xid;if(xtmeds=='')xtmeds=xtEx2(xw.xt9);}var regex=new RegExp('(&)|[?]','g');xtmedp=(xtmedp.toString()).replace(regex,'_');if(xtmeds=='')xtmeds='0';var r=new RegExp('(::)','g');xid=(xid.toString()).replace(r,'/');var k=0,xlp=xtpN(xl);while(xlp&&(xtnN(xlp)!='BODY')){if(xtLCz(xlp)&&(k<2)){xid=xtG(xlp,cZ)+'::'+xid;k+=1;}xlp=xtpN(xlp);}}xid=xtSub(xid,0,255);xtmedp=xtSub(xtmedp,0,255);return{id:xid,pag:xtmedp,sec:xtmeds,typ:type,url:xurld}}
function xtTr(xl){var xut=['BODY','HTML'];for(var i=0;i<xut.length;i++){if(xl.tagName==xut[i])return fA;}return tR}
function xtExTc(xid){var r=new RegExp(cL,'gi');xid=xid.replace(r,'');return xid}
function xtEx2(xat){var r=new RegExp('&s2=','gi');if(r.test(xat.toString())){xat=xat.replace(r,'');}return xat}
function xtV(xat){var r=/xt_med\(\s*.?C/i,r2=/xt_click\(\s*this\s*\,\s*.?C/i;return(r.test(xat.toString())||r2.test(xat.toString()));}
function xtExT(xat){var page='',pageclz='',type='',section=-1,idx=(xat.indexOf('xt_med')>=0)?0:1,IdxSt=(idx==0)?xat.indexOf('xt_med'):xat.indexOf('xt_click'),start=xat.indexOf('(',IdxSt),stop=xat.indexOf(')',IdxSt),content=xtSub(xat,start+1,stop),tmp=start;while(content.indexOf('(')>0){tmp=stop+1;stop=xat.indexOf(')',stop+1);content=xtSub(xat,tmp+1,stop);}content=xtSub(xat,start+1,stop);xatab=content.split(/\,/);try{section=(xatab[idx+1])?String(eval(xatab[idx+1])):'';}catch(e){section=(xatab[idx+1]||'');}try{page=(xatab[idx+2])?String(eval(xatab[idx+2])):'';}catch(e){page=(xatab[idx+2]||'');}try{type=(xatab[idx+3])?String(eval(xatab[idx+3])):'';}catch(e){type=(xatab[idx+3]||'');}pageclz=page.replace(/(::)/g,'/');return{typ:type,pag:page,pagcl:pageclz,sec:section}}
function xtNodesload(){if(xw.xt8!=0){var desc=xd.getElementsByTagName('*');for(var i=0;i<desc.length;i++){if(xtL(desc[i]))xtel.xttab.push(desc[i]);}for(var j=0;j<xtel.xttab.length;j++){if(xd.addEventListener)xtel.xttab[j].addEventListener('mousedown',xtR,fA);else if(xd.attachEvent)xtel.xttab[j].attachEvent('onmousedown',xtR);}xtReload();if(xw.addEventListener){xw.addEventListener('scroll',xtReload,fA);xw.addEventListener('beforeunload',xtHoC,fA);}else if(xw.attachEvent){xw.attachEvent('onscroll',xtReload);xw.attachEvent('onbeforeunload',xtHoC);}}}
function xtAff(){var lY=xtdH(),scTop=xtsT(),pY=Math.round((scTop+haut)/lY*100),pY=(pY>100)?100:pY;pY=(pY<0)?0:pY;if(scTop==0)fO=tR;if(fO)xtCSv(pY);}
function xtReload(){larg=xtcW();haut=xtcH();xtAff();}
function xtHoC(){var s=xw.xt8,pcz=xw.xtp,s2cz=xtEx2(xw.xt9),idpage=(xw.xtidpg!=nu)?xw.xtidpg:-1,idmod=typeof(xw['xtidmod'])!='undefined'?xw['xtidmod']:0;if(!hit){xt_imgc=new Image();xt_imgc.src=xtsd+'.xiti.com/hit.xiti?s='+s+'&pcz='+xtEn(pcz)+'&idpcz='+idpage+'&s2cz='+encodeURIComponent(s2cz)+'&pv='+xt_perdz+'&idmod='+idmod+'&xtczv='+xtczv+((typeof(xt40)!='undefined')?'&idclient='+xt40:'');xt_imgc.onload=function(){xt_imgc.onload=null;};}}
function xtEv(evt){var e_out,ie_var='srcElement',moz_var='target';evt[moz_var]?e_out=evt[moz_var]:e_out=evt[ie_var];return(e_out)}
function xtBdEv(evt){var e_out=(xw.event)?(xw.event.button==2):(evt.which==3);return(e_out)}
function xtR(e){xtel.t=Math.round(xtH()/1000);if(xtdtmp!=0&&(xtel.t-xtdtmp<1))return;xtdtmp=xtel.t;if(!e)e=xw.event;if(xtBdEv(e))return;var xtobj=null,xel=xtEv(e);if(xtTr(xel)){if(xtnN(xel)=='OPTION'){var xelp=xtpN(xel);while(xelp){xel=xelp;if(xtnN(xel)=='SELECT')break;xelp=xtpN(xelp);}}xtel.s=xw.xt8;xtel.pcz=xw.xtp;xtel.s2cz=xtEx2(xw.xt9);xtel.idmod=typeof(xw['xtidmod'])!='undefined'?xw['xtidmod']:0;xtobj=xtNa(xel);xtel.curr=xtobj.id;xtel.cliccz=xtobj.typ;xtel.dest=xtobj.url;xtel.p=xtobj.pag;xtel.s2=xtobj.sec;xtel.p=((xtel.p!='')&&(xtel.cliccz!='F'))?'&pmed='+xtEn(xtel.p):'';xtel.s2=((xtel.s2!='')&&(xtel.cliccz!='F'))?'&s2med='+xtEn(xtel.s2):'';if(xtel.cliccz=='F'){xtel.cliccz=xtCt(xl).typ;}xtel.sx=xtSx(xel);xtel.sy=xtSy(xel);xtel.px=xtPx(xel);xtel.py=xtPy(xel);xtel.idpage=(xw.xtidpg!=nu)?xw.xtidpg:-1;if((xtel.px==-1)&&(xtel.py==-1))return;var tmpelt=xtEv(e);xtel.xc=((xtnN(tmpelt)=='OPTION')&&!isOP)?xtC(e).x+xtel.px:xtC(e).x;xtel.yc=xtC(e).y;if((xtel.xc==-1)&&(xtel.yc==-1))return;if(xd.compatMode=='BackCompat'&&isI){xtel.xc-=2;xtel.yc-=2;}xtel.xr=(xtel.xc-xtel.px)/xtel.sx;xtel.yr=(xtel.yc-xtel.py)/xtel.sy;if((0<xtel.sx)&&(xtel.sx<=40))xtel.xr=0.5;if((40<xtel.sx)&&(xtel.sx<=250))xtel.xr=(Math.round(xtel.xr*10))/10;if(250<xtel.sx)xtel.xr=(Math.round(xtel.xr*100))/100;if((0<xtel.sy)&&(xtel.sy<=40))xtel.yr=0.5;if((40<xtel.sy)&&(xtel.sy<=250))xtel.yr=(Math.round(xtel.yr*10))/10;if(250<xtel.sy)xtel.yr=(Math.round(xtel.yr*100))/100;if(xtel.xr<0)xtel.xr=0;if(xtel.yr<0)xtel.yr=0;if(xtel.xr>1)xtel.xr=1;if(xtel.yr>1)xtel.yr=1;if((xtel.curr).indexOf(cL,0)<0){var idx=xtIdxOf(xtel.xttab,xel);var xelp=xtpN(xel);while((idx==-1)&&xelp){idx=xtIdxOf(xtel.xttab,xelp);xelp=xtpN(xelp);}xtel.bf=xtNa(xtel.xttab[idx-1]).id;xtel.af=xtNa(xtel.xttab[idx+1]).id;xtel.bf=((xtel.bf).indexOf(cL,0)>=0)?xtExTc(xtel.bf):xtel.bf;xtel.af=((xtel.af).indexOf(cL,0)>=0)?xtExTc(xtel.af):xtel.af;}else{xtel.curr=xtExTc(xtel.curr);xtel.bf='';xtel.af='';xtel.dest='';}var name='';if((xtnN(xel)=='EMBED')&&isOP&&(xtpN(xel)!=nu)&&(xtpN(xel)!=undefined))name=xtpN(xel).name;else name=xel.name;if((name!=nu)&&(name!=un)&&((name).indexOf(cT)>=0))xtel.cliccz=name.replace(cT,'');var type=xtCt(xel).typ;var hitn=fA;if((xtel.cliccz=='N')&&(type!='N'))hitn=tR;var regex=new RegExp('(&)|[?]','g');xtel.curr=(xtel.curr.toString()).replace(regex,'_');xtel.bf=(xtel.bf.toString()).replace(regex,'_');xtel.af=(xtel.af.toString()).replace(regex,'_');xtel.dest=(xtel.dest.toString()).replace(regex,'_');var res='&xtczv='+xtczv+'&idmod='+xtel.idmod+'&current='+xtEn(xtel.curr)+'&before='+xtEn(xtel.bf)+'&after='+xtEn(xtel.af)+'&cliccz='+xtel.cliccz+'&dest='+xtEn(xtel.dest)+'&posx='+xtel.xr+'&posy='+xtel.yr+'&time='+xtel.t+xtel.p+xtel.s2;if(((scriptOnClickZone==2)&&(xtel.cliccz!='N'))||(hitn==tR)){xt_imgc=new Image();var sv='';if(xtel.cliccz=='S'){hit=tR;sv='&pv='+xt_perdz;}xt_imgc.src=xtsd+'.xiti.com/hit.xiti?s='+xtel.s+'&pcz='+xtEn(xtel.pcz)+'&idpcz='+xtel.idpage+'&s2cz='+xtEn(xtel.s2cz)+res+sv+((typeof(xt40)!='undefined')?'&idclient='+xt40:'');xt_imgc.onload=function(){xt_imgc.onload=null;};}else if((scriptOnClickZone!=2)&&(xtel.cliccz=='S')){hit=tR;xt_imgc=new Image();xt_imgc.src=xtsd+'.xiti.com/hit.xiti?s='+xtel.s+'&pcz='+xtEn(xtel.pcz)+'&idpcz='+xtel.idpage+'&s2cz='+xtEn(xtel.s2cz)+'&pv='+xt_perdz+'&idmod='+xtel.idmod+'&xtczv='+xtczv+((typeof(xt40)!='undefined')?'&idclient='+xt40:'');xt_imgc.onload=function(){xt_imgc.onload=null;};}else if(xtel.cliccz=='N'){hit=tR;xtCzW('&idpcz='+xtel.idpage+res+'&pv='+xt_perdz);}}}
function xtCSv(p){var lY=xtdH(),percWin=Math.round((haut/lY)*100),oldP=0;if(xt_perdz!=nu){oldP=parseInt(xt_perdz,10);if((p>=oldP)&&(p<(oldP+percWin))){xt_perdz=p;}}else{xt_perdz=p;}}
function xtCzW(v){var xtcznb=new Date();xtcznb.setTime(xtcznb.getTime()+45000);xd.cookie='xtvalCZ='+v+';expires='+xtcznb.toGMTString()+' ;path=/'+xw.xt1;}
function xtdH(){var off=xd.documentElement?parseInt(xd.documentElement.offsetHeight,10):0,sc=xd.documentElement?parseInt(xd.documentElement.scrollHeight,10):0,boff=xd.body?parseInt(xd.body.offsetHeight,10):0,bsc=xd.body?parseInt(xd.body.scrollHeight,10):0;return xtMax(xtMax(off,boff),xtMax(sc,bsc));}
function xtcW(){var val=xtfR(xw.innerWidth?parseInt(xw.innerWidth,10):0,xd.documentElement?parseInt(xd.documentElement.clientWidth,10):0),val2=xd.body?parseInt(xd.body.clientWidth,10):0;return((val==0)?val2:val);}
function xtcH(){var val=xtfR(xw.innerHeight?parseInt(xw.innerHeight,10):0,xd.documentElement?parseInt(xd.documentElement.clientHeight,10):0),val2=xd.body?parseInt(xd.body.clientHeight,10):0;return((val==0)?val2:val);}
function xtsT(){var pag=xw.pageYOffset?parseInt(xw.pageYOffset,10):0,st=xd.documentElement?parseInt(xd.documentElement.scrollTop,10):0,bst=xd.body?parseInt(xd.body.scrollTop,10):0;return xtMax(xtMax(pag,st),bst);}
function xtG(o,a){var att=null;try{att=o.getAttribute(a);}catch(e){}return (att==null)?null:(((a==cZ)&&(att.length>255))?xtSub(att,0,255):att);}
function xtfR(w,d){var n_result=w?w:0;if(d&&(!n_result||(n_result>d)))n_result=d;return n_result;}
function xtMax(a,b){return ((a>b)?a:b);}
function xtEn(v){return encodeURIComponent(v);}
function xtDe(v){return decodeURIComponent(v);}
function xtnN(o){return o.nodeName;}
function xtpN(o){return o.parentNode;}
function xtSub(o,d,f){return o.substring(d,f);};
// !MeAb! c/s/d/e/j/e/xtcore.js
function xtserial(a){var b=typeof a;if(b!="object"||a===null)return b=="string"&&(a=encodeURIComponent('"'+a+'"')),String(a);var c,d,e=[],f=a&&a.constructor==Array;for(c in a)d=a[c],b=typeof d,b=="string"?d=encodeURIComponent('"'+d+'"'):b=="object"&&d!==null&&(d=xtserial(d)),e.push((f?"":encodeURIComponent('"'+c.toLowerCase()+'":'))+String(d));return(f?"[":"{")+String(e)+(f?"]":"}")}function xtclURL(a){return a.replace(/%3C/g,"<").replace(/%3E/g,">").replace(/[<>]/g,"")}function xtf1(a,b){b=b!=null&&b!=xtud?b:"0";var c=a+"=",d=0;while(d<xd.cookie.length){var e=d+c.length;if(xd.cookie.substring(d,e)==c)return xtf2(e,b);d=xd.cookie.indexOf(" ",d)+1;if(d==0)break}return null}function xtf2(a,b){var c=xd.cookie.indexOf(";",a);return c==-1&&(c=xd.cookie.length),b!="1"?unescape(xtclURL(xd.cookie.substring(a,c))):xtclURL(xd.cookie.substring(a,c))}function xt_addchain(a,b){xtvarch=b?b:"abmv",itemp=xtadch[xtvarch]?xtadch[xtvarch]:0,itemp++,xtm+="&"+xtvarch+""+itemp+"="+a,xtadch[xtvarch]=itemp}function wck(a,b,c,d,e){b=e==0?b:escape(b),xd.cookie=a+"="+b+";expires="+c.toGMTString()+";path=/"+d}function xtf3(a,b){try{xtdeb=xt6.location.href}catch(c){xtdeb=xw.location.href}if(b==null||b==xtud)var d=xtclURL(xtdeb.toLowerCase().replace(/%3d/g,"="));else var d=b;var e=d.indexOf(a+"=");if(e>0){var f=d.substring(1,d.length),g=f.substring(f.indexOf(a+"="),f.length),h=g.indexOf("&");return h==-1&&(h=g.indexOf("%26")),h==-1&&(h=g.length),g.substring(g.indexOf("=")+1,h)}return null}function xt_med(a,b,c,d,e,f,g,h){xt_ajout=a!="F"||d!=null&&d!=xtud?a=="M"?"&a="+d+"&m1="+e+"&m2="+f+"&m3="+g+"&m4="+h:"&clic="+d:"",xtf4(a,"&s2="+b+"&p="+c+xt_ajout,e,f)}function xt_ad(a,b,c){xtf4("AT","&atc="+a+"&type=AT&patc="+xtp+"&s2atc="+xw.xtn2,b,c)}function xt_adc(a,b,c,d){xtf4("AT","&atc="+b+"&type=AT&patc="+xtp+"&s2atc="+xw.xtn2);var e=null;if(a.nodeName!="A"){var f=a.parentNode;while(f){if(f.nodeName=="A"){e=f;break}f=f.parentNode}}else e=a;if(e){e.target=e.target||"_self",c&&(e.href=c,d?e.target="_blank":e.target="_self");if(!xtkey){if(e.target.toLowerCase()=="_self")return setTimeout('self.location.href="'+e.href+'"',500),!1;if(e.target.toLowerCase()=="_top")return setTimeout('top.location.href="'+e.href+'"',500),!1;if(e.target.toLowerCase()=="_parent")return setTimeout('parent.location.href="'+e.href+'"',500),!1}}else c&&(d?setTimeout('(xw.open("'+c+'","_blank")).focus();',500):setTimeout('self.location.href="'+c+'"',500));return xtkey=!1,!0}function xt_click(a,b,c,d,e,f,g){xt_ajout=b!="F"||e!=null&&e!=xtud?"&clic="+e:"",xtf4(b,"&s2="+c+"&p="+d+xt_ajout);var h=null;if(a.nodeName!="A"){var i=a.parentNode;while(i){if(i.nodeName=="A"){h=i;break}i=i.parentNode}}else h=a;if(h){h.target=h.target||"_self",f&&(h.href=f,g?h.target="_blank":h.target="_self");if(!xtkey){if(h.target.toLowerCase()=="_self")return setTimeout('self.location.href="'+h.href+'"',500),!1;if(h.target.toLowerCase()=="_top")return setTimeout('top.location.href="'+h.href+'"',500),!1;if(h.target.toLowerCase()=="_parent")return setTimeout('parent.location.href="'+h.href+'"',500),!1}}else f&&(g?setTimeout('(xw.open("'+f+'","_blank")).focus();',500):setTimeout('self.location.href="'+f+'"',500));return xtkey=!1,!0}function xt_form(a,b,c,d,e,f){return xt_ajout=b!="F"||e!=null&&e!=xtud?"&clic="+e:"",xtf4(b,"&s2="+c+"&p="+d+xt_ajout),f&&setTimeout(function(){a.submit()},500),!1}function xt_rm(a,b,c,d,e,f,g,h,i,j,k,l,m,n){var o="&p="+c+"&s2="+b+"&type="+a+"&a="+d+"&m5="+k+"&m6="+l;o+=e!=null&&e!="0"?"&"+e:"",o+=g!=null&&d!="pause"&&d!="stop"?"&m1="+g+"&"+h+"&m3="+i+"&m4="+j+"&m7="+m+"&m8="+n+"&prich="+xtp+"&s2rich="+xw.xtn2:"",o+=f!=null&&f!="0"&&g!=null?"&rfsh="+f:"",xtf4(a,o),f==null||f=="0"||d!="play"&&d!="play&buf=1"&&d!="refresh"?(d=="pause"||d=="stop")&&xw.xtoid!=null&&xw.clearTimeout(xtoid[a]):(xtrmdl=Math.floor(f)>1500?15e5:Math.floor(f)<5?5e3:Math.floor(f)*1e3,xtoid[a]=xw.setTimeout("xt_rm('"+a+"','"+b+"','"+c+"','refresh','0','"+f+"',null,'"+h+"','"+i+"','"+j+"','"+k+"','"+l+"')",xtrmdl))}function xtf4(a,b,c,d){if((xtclzone==0||xtclzone==3||a!="C")&&a!="P"){var e=new Image,f=new Date;xt_im=xt7+".xiti.com/hit.xiti?"+xt8b+b+"&hl="+f.getHours()+"x"+f.getMinutes()+"x"+f.getSeconds(),parseFloat(xtg.appVersion)>=4&&(xt_im+="&r="+xts.width+"x"+xts.height+"x"+xts.pixelDepth+"x"+xts.colorDepth),e.src=xt_im,e.onload=function(){e.onload=null}}if(c!=null&&c!=xtud&&a!="M")d==""||d==null?xd.location=c:(xfen=window.open(c,"xfen",""),xfen.focus());else return}function f_nb(a){return a-=Math.floor(a/100)*100,a<10?"0"+a:a}function xt_addProduct(a,b,c,d,e,f){xt23++,xt16+="&pdt"+xt23+"=",xt16+=a?a+"::":"",xt16+=b?b:"",xt16+=c?"&qte"+xt23+"="+c:"",xt16+=d?"&mt"+xt23+"="+d:"",xt16+=e?"&dsc"+xt23+"="+e:"",xt16+=f?"&pcode"+xt23+"="+f:""}function xt_rd(a){return Math.floor(Math.random()*Math.pow(10,a))}function xt_addProduct_v2(a,b,c,d,e,f,g,h,i){xt23++,xt16+="&pdt"+xt23+"=",xt16+=a?a+"::":"",xt16+=b?b:"",xt16+=c?"&qte"+xt23+"="+c:"",xt16+=d?"&mt"+xt23+"="+d:"",xt16+=e?"&mtht"+xt23+"="+e:"",xt16+=f?"&dsc"+xt23+"="+f:"",xt16+=g?"&dscht"+xt23+"="+g:"",xt16+=i?"&roimt"+xt23+"="+i:"",xt16+=h?"&pcode"+xt23+"="+h:""}function xt_addProduct_load(a,b,c){b&&(xt43++,xt44+=xt43==1?"&pdtl=":"|",xt44+=a?a+"::":"",xt44+=b,xt44+=c?";"+c:"")}function xt_ParseUrl(a,b,c,d){var e=new Array;if(b.length>0){var f=1600-c.length,g=0,h=0,i="",j=0;while(b.length>f&&i!=b&&j==0){i=b;var k="&pdt";b.lastIndexOf(k,f)<=0&&(b.lastIndexOf("&",f)<=0?j=1:k="&"),j==1?e[g]=b.substring(0,1600)+"&mherr=1":(e[g]=b.substring(0,b.lastIndexOf(k,f)),b=b.substring(b.lastIndexOf(k,f),b.length),g++,f=1600)}if(j==0){e[g]=b;if(xt38!=""){var l="&stc=";if(l.length+xt38.length+b.length<f)e[g]+=l+xt38;else{g++,xt38=l+xt38;while(xt38.length>f&&i!=xt38){i=xt38;var k=",";xt38.lastIndexOf(k,f)<=5&&(j=1),j==1?e[g]=xt38.substring(0,1600)+"&mherr=1":(e[g]=xt38.substring(0,xt38.lastIndexOf(k,f)),xt38=l+xt38.substring(xt38.lastIndexOf(k,f),xt38.length),g++,f=1600)}j==0&&(e[g]=xt38)}}}for(h=0;h<=g;h++){g>0&&(e[h]+="&mh="+(h+1)+"-"+(g+1)+"-"+xtidpg),h>0?e[h]=xt15!=""||xt17!=""?xt8b+"&cmd="+xt15+"&idcart="+xt17+e[h]:xt8b+e[h]:e[h]+=c;if(d==""||d==null)xd.write('<img width="1" height="1" src="'+a+e[h]+'">');else if(d=="1"){var m=new Image;m.src=a+e[h],m.onload=function(){m.onload=null}}}}}function xt_ParseUrl3(a,b,c,d,e,f){var g=new Image,h=1500,i="&mh="+c+"-"+d+"-"+xtidpg;if(b.length>h){var j=new RegExp("["+f+"]","gi"),k=b.split(j),l="",m=k[0].length,n=0;while(m<h&&n<k.length)l+=k[n]+f,n<k.length-1&&(m+=k[n+1].length+1),n+=1;d=d==1?Math.ceil(b.length/h):d,i="&mh="+c+"-"+d+"-"+xtidpg;if(l!="")g.src=a+"&idp="+xtidpg+i+l,g.onload=function(){g.onload=null};else{g.src=a+"&idp="+xtidpg+i+b.substring(0,h)+"&mherr=1",g.onload=function(){g.onload=null};return}b=e;for(var o=n;o<k.length;o++)b+=k[o]+(o==k.length-1?"":f);xt_ParseUrl3(a,b,c+1,d,e,f)}else b.length>e.length&&(g.src=c==1?a+"&idp="+xtidpg+b:a+"&idp="+xtidpg+i+b,g.onload=function(){g.onload=null})}function xtestr(a,b,c){var d=null;try{d=a.match(b)[c-1]}catch(e){d=null}return d}var xt1="",xtcode="",xt46="1",xt50="1",xt48="",xt54=!1,xt58=!1,xtdocl=!1,xtud="undefined",xt2="1",xt3=3650,xtkwv="xtmc",xtkwp="xtnp",xtadch=new Array,xt4=new Array;xt4.sec="20",xt4.rss="20",xt4.epr="20",xt4.erec="20",xt4.adi="20",xt4.adc="20",xt4.al="20",xt4.es="20",xt4.ad="20";var xtoid=new Array,xtkey=!1,xt49=null,xt5=30,xw=window,xd=document,xtg=navigator,xtv=xw.xtczv!=null?"41001-"+xw.xtczv:"41001",xt1=xw.xtdmc?";domain="+xw.xtdmc:xt1!=""?";domain="+xw.xt1:"",xt6=xw.xtnv!=null?xw.xtnv:xd,xt7=xw.xtsd!=null?xw.xtsd:xd.location.protocol=="https:"?"https://logs3":"http://logi141",xt36=xw.xtsts!=null?xw.xtsts:0,xt37="";if(xt54){var xturl="";try{xturl=xt6.location.href}catch(e){xturl=xw.location.href}xt37=xtestr(xturl,/#.*/,1),xt37=xt37?"&sta="+encodeURIComponent(xtclURL(xt37)):""}var xt38=xw.xtcustom!=null?xtserial(xw.xtcustom):"",xt8=xw.xtsite!=null?xw.xtsite:0,xt9=xw.xtn2!=null?"&s2="+xw.xtn2:"",xt8b=(xt8==0?"":"s="+xt8)+(xt36==0?"":xt8==0?"sts="+xt36:"&sts="+xt36),xtp=xw.xtpage!=null?xw.xtpage:"",xt10=xw.xto_force?xw.xto_force.toLowerCase():null,xt11=xt8=="redirect"?!0:!1,xtdi=xw.xtdi?"&di="+xw.xtdi:"",xt12=xw.xtidp?"&idpays="+xw.xtidp:"",xt13=xw.xtidprov?"&idprov="+xw.xtidprov:"",xtm=xw.xtparam!=null?xw.xtparam:"";xt46=typeof xw.xtnopage!="undefined"&&xw.xtnopage=="1"?"0":xt46,xt50=typeof xw.xtergo!="undefined"&&xw.xtergo=="0"?"0":xt50;var xtclzone=typeof xw.scriptOnClickZone!="undefined"&&xt50=="1"?xw.scriptOnClickZone:0,xt15=xw.xt_orderid!=null?xw.xt_orderid:"",xt17=xw.xtidcart!=null?xw.xtidcart:"",xt44=xw.xtprod_load!=null?"&pdtl="+xw.xtprod_load:"",xt47=xw.xtcode!=""?"&code="+xw.xtcode:"";xw.addEventListener?xw.addEventListener("unload",function(){},!1):xw.attachEvent&&xw.attachEvent("onunload",function(){}),xd.addEventListener?(xd.addEventListener("keydown",function(){xtkey=!0},!1),xd.addEventListener("keyup",function(){xtkey=!1},!1)):xd.attachEvent&&(xd.attachEvent("onkeydown",function(){xtkey=!0}),xd.attachEvent("onkeyup",function(){xtkey=!1}));var xt18=xw.roimt&&xtm.indexOf("&roimt",0)<0?"&roimt="+xw.roimt:"",xtmc=xtm.indexOf("&mc=",0)<0?xw.xtmc?"&mc="+xw.xtmc:xtf3(xtkwv)?"&mc="+xtf3(xtkwv):xtf3("xtmc")?"&mc="+xtf3("xtmc"):"":"",xtcr=xtf3("xtcr")?"&mcrg="+xtf3("xtcr"):"",xtac=xw.xtac&&xtm.indexOf("&ac=",0)<0?"&ac="+xw.xtac:"",xtat=xw.xtat&&xtm.indexOf("&at=",0)<0?"&at="+xw.xtat:"",xtan=xw.xtan&&xtm.indexOf("&an=",0)<0?"&an="+xw.xtan:"",xtnp=xtm.indexOf("&np=",0)<0?xw.xtnp?"&np="+xw.xtnp:xtf3(xtkwp)?"&np="+xtf3(xtkwp):xtf3("xtnp")?"&np="+xtf3("xtnp"):"":"",xt19=xw.xtprm!=null&&xtm.indexOf("&x",0)<0?xw.xtprm:"";xtm+=xt18+xtmc+xtcr+xtac+(xtan!=""?xtan:xtat)+xtnp+xt19+xt37;try{var xt20=top.document.referrer}catch(e){var xt20=xt6.referrer}var xts=screen,xt21=new Date,xt22=xt21.getTime()/36e5;typeof xt_adch=="function"&&xt_adch();var xtidpg=f_nb(xt21.getHours())+""+f_nb(xt21.getMinutes())+""+f_nb(xt21.getSeconds())+""+xt_rd(7),xt23=0,xt16="",xt43=0;typeof xt_cart=="function"?xt_cart():xt16="";if(xt8!=0||xt36!=0||xt11){if(xt48!=""){var xtvid=xtf1("xtvid");xtvid||(xtvid=xt21.getTime()+""+xt_rd(6),xt49=xtvid);var xtexp=new Date;xtexp.setMinutes(xtexp.getMinutes()+30),wck("xtvid",xtvid,xtexp,"",1)}var xtpm="xtor",xtpmd="xtdate",xtpmc="xtocl",xtpan="xtan",xtpat="xtat",xtpant="xtant",xt24=xtf3("xtor"),xtdtgo=xtf3("xtdt"),xt25=xtf3("xtref"),xt26=xtf3("xtan"),xt55=xtf3("xtat"),xt27=xtf3("an",xtm),xt56=xtf3("at",xtm),xt28=xtf3("ac",xtm),xtocl=xtf1(xtpmc)!=null?xtf1(xtpmc):"$",xtord=xtf1("xtgo")=="0"?xtf1("xtord"):null,xtgord=xtf1("xtgo")!=null?xtf1("xtgo"):"0",xtvrn=xtf1("xtvrn")!=null?xtf1("xtvrn"):"$",xtgmt=xt21.getTime()/6e4,xtgo=xtdtgo!=null?xtgmt-xtdtgo<30&&xtgmt-xtdtgo>=0?"2":"1":xtgord,xtpgt=xtgord=="1"?"&pgt="+xtf1("xtord"):xtgo=="1"&&xt24!=null?"&pgt="+xt24:"",xto=xt10!=null?xt10:xt24!=null&&xtgo=="0"?xt24:xt11?null:xtord;xto=xtocl.indexOf("$"+xto+"$")<0||xtocl=="$"?xto:null;var xtock=xtgo=="0"?xto:xtgord=="2"?xtf1("xtord"):xtgo=="2"?xt24:null;if(xtock!=null){tmpxto=xtock.substring(0,xtock.indexOf("-"));var xtdrm=xt4[tmpxto]}else xtdrm="1";if(xtdrm==null||xtdrm==xtud)xtdrm=xt4.ad;xt26==null&&!xt11&&(xt26=xtf1("xtanrd")),xt55==null&&!xt11&&(xt55=xtf1("xtatrd"));var xtanc=xtf1(xtpan),xtattc=xtf1(xtpat),xtanct=xtf1(xtpant),xtxp=new Date,xt29=new Date,xt30=new Date;xt11?xtxp.setTime(xtxp.getTime()+xt5*1e3):xtxp.setTime(xtxp.getTime()+xtdrm*24*3600*1e3),xt30.setTime(xt30.getTime()+18e5),xt29.setTime(xt29.getTime()+xt3*24*3600*1e3);var xt31=xt26!=null?xt26.indexOf("-"):0,xt57=xt55!=null?xt55.indexOf("-"):0,xtan2=xt27!=null?"":xt26!=null&&xt31>0?"&ac="+xt26.substring(0,xt31)+"&ant=0&an="+xt26.substring(xt31+1,xt26.length):xtanc!=null?"&anc="+xtanc+"&anct="+xtanct:"",xtat2=xt56!=null?"":xt55!=null&&xt57>0?"&ac="+xt55.substring(0,xt57)+"&ant=0&at="+xt55.substring(xt57+1,xt55.length):xtattc!=null?"&attc="+xtattc+"&anct="+xtanct:"",xt32=xtvrn.indexOf("$"+xt8+"$")<0?"&vrn=1":"",xt35=xtf3("xtatc")!=null&&xtf3("atc",xtm)==null?"&atc="+xtf3("xtatc"):"";xt32!=""&&wck("xtvrn",xtvrn+xt8+"$",xt29,xt1,0),xt32+=xto==null?"":"&xto="+xto,xt32+=(xtan2!=""?xtan2:xtat2)+xtpgt+xt35,xt27!=null?(wck(xtpan,xt28+"-"+xt27,xt29,xt1,1),wck(xtpant,"1",xt29,xt1,1)):xt26!=null&&xtanct!="1"&&(wck(xtpan,xt26,xt29,xt1,1),wck(xtpant,"0",xt29,xt1,1)),xt56!=null?(wck(xtpat,xt28+"-"+xt56,xt29,xt1,1),wck(xtpant,"1",xt29,xt1,1)):xt55!=null&&xtanct!="1"&&(wck(xtpat,xt55,xt29,xt1,1),wck(xtpant,"0",xt29,xt1,1));var xtor=xtf1(xtpm),xtor_duree=xtf1(xtpmd),xtdate2=xtor_duree!=null?new Date(xtor_duree):new Date,xt34=xtdate2.getTime()/36e5,xtecart=Math.floor(xt22-xt34)>=0?Math.floor(xt22-xt34):0;xt32+=xtor==null?"":"&xtor="+xtor+"&roinbh="+xtecart;var xt33="",Xt_r=xt25!=null?xt25.replace(/[<>]/g,""):xtf1("xtref");Xt_r==null&&(Xt_r=xt20.replace(/[<>]/g,""));if(!xt11){xtock!=null&&(xtocl.indexOf("$"+escape(xtock)+"$")<0||xtocl=="$")&&wck(xtpmc,xtocl+xtock+"$",xt30,xt1,1),xt33+=xtg.javaEnabled()?"&jv=1":"&jv=0";var xtnav=xtg.appName+" "+xtg.appVersion,xtIE=xtnav.indexOf("MSIE");if(xtIE>=0){var xtvers=parseInt(xtnav.substr(xtIE+5));xtIE=!0}else xtvers=parseFloat(xtg.appVersion),xtIE=!1;var xtnet=xtnav.indexOf("Netscape")>=0,xtmac=xtnav.indexOf("Mac")>=0,xtOP=xtg.userAgent.indexOf("Opera")>=0;if(xtIE&&xtvers>=5&&!xtmac&&!xtOP&&!xt11){try{xd.body.addBehavior("#default#clientCaps")}catch(e){}var xtconn="&cn="+xd.body.connectionType;xtconn+="&ul="+xd.body.UserLanguage;try{xd.body.addBehavior("#default#homePage")}catch(e){}var xthome="";try{xthome=xd.body.isHomePage(location.href)?"&hm=1":"&hm=0"}catch(e){}var xtresr="&re="+xd.body.offsetWidth+"x"+xd.body.offsetHeight}else{var xtconn="",xthome="";xtvers>=5?xtresr="&re="+xw.innerWidth+"x"+xw.innerHeight:xtresr=""}if(xtnet&&xtvers>=4||xtOP)var xtlang="&lng="+xtg.language;else if(xtIE&&xtvers>=4&&!xtOP)var xtlang="&lng="+xtg.userLanguage;else xtlang="";wck("xtord","",xt21,xt1,1),xtock!=null&&(xtor==null||xt2=="1")&&(wck(xtpm,xtock,xtxp,xt1,1),wck(xtpmd,xt21,xtxp,xt1,1));var xthl="&hl="+xt21.getHours()+"x"+xt21.getMinutes()+"x"+xt21.getSeconds(),xt45=xtdocl?"&docl="+encodeURIComponent(xt6.location.href.replace(/&/g,"#ec#")):"",Xt_param=xt8b+xt9+"&p="+xtp+xthl+xtdi+xt12+xt13+xt32+xt45+xt47+xtm+xtconn+xthome+xtlang+"&vtag="+xtv+"&idp="+xtidpg,xtvalCZ=xtf1("xtvalCZ",1);if(xtvalCZ!=null){Xt_param+=xtvalCZ;var xtdateo=new Date;xtdateo.setTime(xtdateo.getTime()-36e5),wck("xtvalCZ",xtvalCZ,xtdateo,xt1,1)}var Xt_id=xt7+".xiti.com/hit.xiti?";xtvers>=4&&(xt33+="&r="+xts.width+"x"+xts.height+"x"+xts.pixelDepth+"x"+xts.colorDepth);var xtide=xtf1("xtide");if(xtock!=null)switch(tmpxto.toLowerCase()){case"erec":case"epr":case"es":var xtmpide=xtestr(xtock,/(\[[^\]]*\])|([^\-]+)/g,6);xtmpide!=null&&(xtide=xtmpide,wck("xtide",xtide,xt29,"",1));break;default:}xt16+=xt16!=""&&xtide!=null?"&ide="+xtide:"",Xt_param+=xt33+xtresr+xt16;var Xt_i=Xt_id+Xt_param+"&ref="+Xt_r.replace(/&/g,"$");xt49&&(Xt_param+="&lnk="+xt48+"&vid="+xt49),xt_ParseUrl(Xt_id,Xt_param,"&ref="+Xt_r.replace(/&/g,"$"),xt46),xt44!=""&&xt_ParseUrl3(Xt_id+xt8b+"&p="+xtp+"&type=PDT"+xthl,xt44,1,1,"&pdtl=","|")}else wck("xtgo",xtgo,xtxp,xt1,1),xt24!=null&&wck("xtord",xt24,xtxp,xt1,1),xt26!=null&&wck("xtanrd",xt26,xtxp,xt1,1),xt55!=null&&wck("xtatrd",xt55,xtxp,xt1,1),Xt_r!=""&&wck("xtref",Xt_r.replace(/&/g,"$"),xtxp,xt1,0),xw.xtloc!=null&&(xt6.location=xw.xtloc)}(function(){if(typeof xtscript!="undefined"){var a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src=xtscript,(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]||document.getElementsByTagName("script")[0].parentNode).insertBefore(a,null)}})(),xtclzone>0&&typeof xtNodesload=="function"&&(xt58?xw.addEventListener?xw.addEventListener("load",xtNodesload,!1):xw.attachEvent&&xw.attachEvent("onload",xtNodesload):xtNodesload())
