(function(a,c){function d(a){return j.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function b(a){if(!qa[a]){var c=r.body,b=j("<"+a+">").appendTo(c),e=b.css("display");b.remove();if(e==="none"||e===""){ca||(ca=r.createElement("iframe"),ca.frameBorder=ca.width=ca.height=0);c.appendChild(ca);if(!fa||!ca.createElement)fa=(ca.contentWindow||ca.contentDocument).document,fa.write((r.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),fa.close();b=fa.createElement(a);fa.body.appendChild(b);
e=j.css(b,"display");c.removeChild(ca)}qa[a]=e}return qa[a]}function f(a,c){var b={};j.each(va.concat.apply([],va.slice(0,c)),function(){b[this]=a});return b}function h(){ma=c}function e(){setTimeout(h,0);return ma=j.now()}function g(){try{return new a.XMLHttpRequest}catch(c){}}function k(a,c,b,e){if(j.isArray(c))j.each(c,function(c,f){b||Pa.test(a)?e(a,f):k(a+"["+(typeof f=="object"||j.isArray(f)?c:"")+"]",f,b,e)});else if(!b&&c!=null&&typeof c=="object")for(var f in c)k(a+"["+f+"]",c[f],b,e);else e(a,
c)}function l(a,b){var e,f,d=j.ajaxSettings.flatOptions||{};for(e in b)b[e]!==c&&((d[e]?a:f||(f={}))[e]=b[e]);f&&j.extend(!0,a,f)}function m(a,b,e,f,d,g){d=d||b.dataTypes[0];g=g||{};g[d]=!0;for(var d=a[d],h=0,j=d?d.length:0,l=a===ra,k;h<j&&(l||!k);h++)k=d[h](b,e,f),typeof k=="string"&&(!l||g[k]?k=c:(b.dataTypes.unshift(k),k=m(a,b,e,f,k,g)));(l||!k)&&!g["*"]&&(k=m(a,b,e,f,"*",g));return k}function o(a){return function(c,b){var F;typeof c!="string"&&(b=c,c="*");if(j.isFunction(b))for(var e=c.toLowerCase().split(wa),
f=0,d=e.length,g,h;f<d;f++)g=e[f],(h=/^\+/.test(g))&&(g=g.substr(1)||"*"),F=a[g]=a[g]||[],g=F,g[h?"unshift":"push"](b)}}function p(a,c,b){var e=c==="width"?a.offsetWidth:a.offsetHeight,f=c==="width"?Qa:Ra,d=0,g=f.length;if(e>0){if(b!=="border")for(;d<g;d++)b||(e-=parseFloat(j.css(a,"padding"+f[d]))||0),b==="margin"?e+=parseFloat(j.css(a,b+f[d]))||0:e-=parseFloat(j.css(a,"border"+f[d]+"Width"))||0;return e+"px"}e=ga(a,c,c);if(e<0||e==null)e=a.style[c]||0;e=parseFloat(e)||0;if(b)for(;d<g;d++)e+=parseFloat(j.css(a,
"padding"+f[d]))||0,b!=="padding"&&(e+=parseFloat(j.css(a,"border"+f[d]+"Width"))||0),b==="margin"&&(e+=parseFloat(j.css(a,b+f[d]))||0);return e+"px"}function q(a,c){c.src?j.ajax({url:c.src,async:!1,dataType:"script"}):j.globalEval((c.text||c.textContent||c.innerHTML||"").replace(Sa,"/*$0*/"));c.parentNode&&c.parentNode.removeChild(c)}function t(a){var c=(a.nodeName||"").toLowerCase();c==="input"?n(a):c!=="script"&&typeof a.getElementsByTagName!="undefined"&&j.grep(a.getElementsByTagName("input"),
n)}function n(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function v(a){return typeof a.getElementsByTagName!="undefined"?a.getElementsByTagName("*"):typeof a.querySelectorAll!="undefined"?a.querySelectorAll("*"):[]}function u(a,c){var b;if(c.nodeType===1){c.clearAttributes&&c.clearAttributes();c.mergeAttributes&&c.mergeAttributes(a);b=c.nodeName.toLowerCase();if(b==="object")c.outerHTML=a.outerHTML;else if(b!=="input"||a.type!=="checkbox"&&a.type!=="radio")if(b==="option")c.selected=
a.defaultSelected;else{if(b==="input"||b==="textarea")c.defaultValue=a.defaultValue}else a.checked&&(c.defaultChecked=c.checked=a.checked),c.value!==a.value&&(c.value=a.value);c.removeAttribute(j.expando)}}function s(a,c){if(c.nodeType===1&&j.hasData(a)){var b,e,f;e=j._data(a);var d=j._data(c,e),g=e.events;if(g)for(b in delete d.handle,d.events={},g){e=0;for(f=g[b].length;e<f;e++)j.event.add(c,b+(g[b][e].namespace?".":"")+g[b][e].namespace,g[b][e],g[b][e].data)}d.data&&(d.data=j.extend({},d.data))}}
function A(a){var c=xa.split("|"),a=a.createDocumentFragment();if(a.createElement)for(;c.length;)a.createElement(c.pop());return a}function y(a,c,b){c=c||0;if(j.isFunction(c))return j.grep(a,function(a,e){return!!c.call(a,e,a)===b});if(c.nodeType)return j.grep(a,function(a){return a===c===b});if(typeof c=="string"){var e=j.grep(a,function(a){return a.nodeType===1});if(Ta.test(c))return j.filter(c,e,!b);c=j.filter(c,e)}return j.grep(a,function(a){return j.inArray(a,c)>=0===b})}function x(){return!0}
function w(){return!1}function B(a,c,b){var e=c+"defer",f=c+"queue",d=c+"mark",g=j._data(a,e);g&&(b==="queue"||!j._data(a,f))&&(b==="mark"||!j._data(a,d))&&setTimeout(function(){!j._data(a,f)&&!j._data(a,d)&&(j.removeData(a,e,!0),g.fire())},0)}function D(a){for(var c in a)if(!(c==="data"&&j.isEmptyObject(a[c]))&&c!=="toJSON")return!1;return!0}function H(a,b,e){if(e===c&&a.nodeType===1)if(e="data-"+b.replace(M,"-$1").toLowerCase(),e=a.getAttribute(e),typeof e=="string"){try{e=e==="true"?!0:e==="false"?
!1:e==="null"?null:j.isNumeric(e)?parseFloat(e):T.test(e)?j.parseJSON(e):e}catch(f){}j.data(a,b,e)}else e=c;return e}function E(a){var c=J[a]={},b,e,a=a.split(/\s+/);b=0;for(e=a.length;b<e;b++)c[a[b]]=!0;return c}var r=a.document,G=a.navigator,C=a.location,j=function(){function b(){if(!e.isReady){try{r.documentElement.doScroll("left")}catch(a){setTimeout(b,1);return}e.ready()}}var e=function(a,c){return new e.fn.init(a,c,g)},f=a.jQuery,d=a.$,g,h=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=
/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,o=/^[\],:{}\s]*$/,n=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,t=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,v=/(msie) ([\w.]+)/,E=/(mozilla)(?:.*? rv:([\w.]+))?/,w=/-([a-z]|[0-9])/ig,u=/^-ms-/,z=function(a,c){return(c+"").toUpperCase()},R=G.userAgent,na,ha,x=Object.prototype.toString,C=Object.prototype.hasOwnProperty,y=Array.prototype.push,S=Array.prototype.slice,
H=String.prototype.trim,J=Array.prototype.indexOf,B={};e.fn=e.prototype={constructor:e,init:function(a,b,f){var F,d;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if(a==="body"&&!b&&r.body)return this.context=r,this[0]=r.body,this.selector=a,this.length=1,this;if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?F=h.exec(a):F=[null,a,null];if(F&&(F[1]||!b)){if(F[1])return d=(b=b instanceof e?b[0]:b)?b.ownerDocument||b:r,(f=m.exec(a))?e.isPlainObject(b)?
(a=[r.createElement(f[1])],e.fn.attr.call(a,b,!0)):a=[d.createElement(f[1])]:(f=e.buildFragment([F[1]],[d]),a=(f.cacheable?e.clone(f.fragment):f.fragment).childNodes),e.merge(this,a);if((b=r.getElementById(F[2]))&&b.parentNode){if(b.id!==F[2])return f.find(a);this.length=1;this[0]=b}this.context=r;this.selector=a;return this}return!b||b.jquery?(b||f).find(a):this.constructor(b).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==c&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,
this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return S.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,c,b){var f=this.constructor();e.isArray(a)?y.apply(f,a):e.merge(f,a);f.prevObject=this;f.context=this.context;c==="find"?f.selector=this.selector+(this.selector?" ":"")+b:c&&(f.selector=this.selector+"."+c+"("+b+")");return f},each:function(a,c){return e.each(this,a,c)},ready:function(a){e.bindReady();
na.add(a);return this},eq:function(a){a=+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(S.apply(this,arguments),"slice",S.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(c,b){return a.call(c,b,c)}))},end:function(){return this.prevObject||this.constructor(null)},push:y,sort:[].sort,splice:[].splice};e.fn.init.prototype=e.fn;e.extend=e.fn.extend=function(){var a,
b,f,F,d,g,h=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof h=="boolean"&&(l=h,h=arguments[1]||{},j=2);typeof h!="object"&&!e.isFunction(h)&&(h={});for(k===j&&(h=this,--j);j<k;j++)if((a=arguments[j])!=null)for(b in a)f=h[b],F=a[b],h!==F&&(l&&F&&(e.isPlainObject(F)||(d=e.isArray(F)))?(d?(d=!1,g=f&&e.isArray(f)?f:[]):g=f&&e.isPlainObject(f)?f:{},h[b]=e.extend(l,g,F)):F!==c&&(h[b]=F));return h};e.extend({noConflict:function(c){a.$===e&&(a.$=d);c&&a.jQuery===e&&(a.jQuery=f);return 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(!r.body)return setTimeout(e.ready,1);e.isReady=!0;a!==!0&&--e.readyWait>0||(na.fireWith(r,[e]),e.fn.trigger&&e(r).trigger("ready").off("ready"))}},bindReady:function(){if(!na){na=e.Callbacks("once memory");if(r.readyState==="complete")return setTimeout(e.ready,1);if(r.addEventListener)r.addEventListener("DOMContentLoaded",ha,!1),a.addEventListener("load",e.ready,!1);else if(r.attachEvent){r.attachEvent("onreadystatechange",
ha);a.attachEvent("onload",e.ready);var c=!1;try{c=a.frameElement==null}catch(f){}r.documentElement.doScroll&&c&&b()}}},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},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):B[x.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||
e.isWindow(a))return!1;try{if(a.constructor&&!C.call(a,"constructor")&&!C.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(b){return!1}for(var f in a);return f===c||C.call(a,f)},isEmptyObject:function(a){for(var c in a)return!1;return!0},error:function(a){throw Error(a);},parseJSON:function(c){if(typeof c!="string"||!c)return null;c=e.trim(c);if(a.JSON&&a.JSON.parse)return a.JSON.parse(c);if(o.test(c.replace(n,"@").replace(p,"]").replace(q,"")))return(new Function("return "+c))();e.error("Invalid JSON: "+
c)},parseXML:function(b){var f,F;try{a.DOMParser?(F=new DOMParser,f=F.parseFromString(b,"text/xml")):(f=new ActiveXObject("Microsoft.XMLDOM"),f.async="false",f.loadXML(b))}catch(d){f=c}(!f||!f.documentElement||f.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+b);return f},noop:function(){},globalEval:function(c){c&&j.test(c)&&(a.execScript||function(c){a.eval.call(a,c)})(c)},camelCase:function(a){return a.replace(u,"ms-").replace(w,z)},nodeName:function(a,c){return a.nodeName&&
a.nodeName.toUpperCase()===c.toUpperCase()},each:function(a,b,f){var F,d=0,g=a.length,h=g===c||e.isFunction(a);if(f)if(h)for(F in a){if(b.apply(a[F],f)===!1)break}else for(;d<g;){if(b.apply(a[d++],f)===!1)break}else if(h)for(F in a){if(b.call(a[F],F,a[F])===!1)break}else for(;d<g;)if(b.call(a[d],d,a[d++])===!1)break;return a},trim:H?function(a){return a==null?"":H.call(a)}:function(a){return a==null?"":(a+"").replace(k,"").replace(l,"")},makeArray:function(a,c){var b=c||[];if(a!=null){var f=e.type(a);
a.length==null||f==="string"||f==="function"||f==="regexp"||e.isWindow(a)?y.call(b,a):e.merge(b,a)}return b},inArray:function(a,c,b){var e;if(c){if(J)return J.call(c,a,b);e=c.length;for(b=b?b<0?Math.max(0,e+b):b:0;b<e;b++)if(b in c&&c[b]===a)return b}return-1},merge:function(a,b){var e=a.length,f=0;if(typeof b.length=="number")for(var F=b.length;f<F;f++)a[e++]=b[f];else for(;b[f]!==c;)a[e++]=b[f++];a.length=e;return a},grep:function(a,c,b){for(var e=[],f,b=!!b,F=0,d=a.length;F<d;F++)f=!!c(a[F],F),
b!==f&&e.push(a[F]);return e},map:function(a,b,f){var F,d,g=[],h=0,j=a.length;if(a instanceof e||j!==c&&typeof j=="number"&&(j>0&&a[0]&&a[j-1]||j===0||e.isArray(a)))for(;h<j;h++)F=b(a[h],h,f),F!=null&&(g[g.length]=F);else for(d in a)F=b(a[d],d,f),F!=null&&(g[g.length]=F);return g.concat.apply([],g)},guid:1,proxy:function(a,b){if(typeof b=="string")var f=a[b],b=a,a=f;if(!e.isFunction(a))return c;var F=S.call(arguments,2),f=function(){return a.apply(b,F.concat(S.call(arguments)))};f.guid=a.guid=a.guid||
f.guid||e.guid++;return f},access:function(a,b,f,F,d,g){var h=a.length;if(typeof b=="object"){for(var j in b)e.access(a,j,b[j],F,d,f);return a}if(f!==c){F=!g&&F&&e.isFunction(f);for(j=0;j<h;j++)d(a[j],b,F?f.call(a[j],j,d(a[j],b)):f,g);return a}return h?d(a[0],b):c},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();a=t.exec(a)||s.exec(a)||v.exec(a)||a.indexOf("compatible")<0&&E.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},sub:function(){function a(c,b){return new a.fn.init(c,
b)}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(b,f){f&&f instanceof e&&!(f instanceof a)&&(f=a(f));return e.fn.init.call(this,b,f,c)};a.fn.init.prototype=a.fn;var c=a(r);return a},browser:{}});e.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,c){B["[object "+c+"]"]=c.toLowerCase()});R=e.uaMatch(R);R.browser&&(e.browser[R.browser]=!0,e.browser.version=R.version);e.browser.webkit&&(e.browser.safari=
!0);j.test("\u00a0")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/);g=e(r);r.addEventListener?ha=function(){r.removeEventListener("DOMContentLoaded",ha,!1);e.ready()}:r.attachEvent&&(ha=function(){r.readyState==="complete"&&(r.detachEvent("onreadystatechange",ha),e.ready())});return e}(),J={};j.Callbacks=function(a){var a=a?J[a]||E(a):{},b=[],e=[],f,d,g,h,k,l=function(c){var e,f,d,g;e=0;for(f=c.length;e<f;e++)d=c[e],g=j.type(d),g==="array"?l(d):g==="function"&&(!a.unique||!o.has(d))&&b.push(d)},m=function(c,j){j=
j||[];f=!a.memory||[c,j];d=!0;k=g||0;g=0;for(h=b.length;b&&k<h;k++)if(b[k].apply(c,j)===!1&&a.stopOnFalse){f=!0;break}d=!1;b&&(a.once?f===!0?o.disable():b=[]:e&&e.length&&(f=e.shift(),o.fireWith(f[0],f[1])))},o={add:function(){if(b){var a=b.length;l(arguments);d?h=b.length:f&&f!==!0&&(g=a,m(f[0],f[1]))}return this},remove:function(){if(b)for(var c=arguments,e=0,f=c.length;e<f;e++)for(var g=0;g<b.length;g++)if(c[e]===b[g]&&(d&&g<=h&&(h--,g<=k&&k--),b.splice(g--,1),a.unique))break;return this},has:function(a){if(b)for(var c=
0,e=b.length;c<e;c++)if(a===b[c])return!0;return!1},empty:function(){b=[];return this},disable:function(){b=e=f=c;return this},disabled:function(){return!b},lock:function(){e=c;(!f||f===!0)&&o.disable();return this},locked:function(){return!e},fireWith:function(c,b){e&&(d?a.once||e.push([c,b]):(!a.once||!f)&&m(c,b));return this},fire:function(){o.fireWith(this,arguments);return this},fired:function(){return!!f}};return o};var Q=[].slice;j.extend({Deferred:function(a){var c=j.Callbacks("once memory"),
b=j.Callbacks("once memory"),e=j.Callbacks("memory"),f="pending",d={resolve:c,reject:b,notify:e},g={done:c.add,fail:b.add,progress:e.add,state:function(){return f},isResolved:c.fired,isRejected:b.fired,then:function(a,c,b){h.done(a).fail(c).progress(b);return this},always:function(){h.done.apply(h,arguments).fail.apply(h,arguments);return this},pipe:function(a,c,b){return j.Deferred(function(e){j.each({done:[a,"resolve"],fail:[c,"reject"],progress:[b,"notify"]},function(a,c){var b=c[0],f=c[1],F;j.isFunction(b)?
h[a](function(){(F=b.apply(this,arguments))&&j.isFunction(F.promise)?F.promise().then(e.resolve,e.reject,e.notify):e[f+"With"](this===h?e:this,[F])}):h[a](e[f])})}).promise()},promise:function(a){if(a==null)a=g;else for(var c in g)a[c]=g[c];return a}},h=g.promise({}),k;for(k in d)h[k]=d[k].fire,h[k+"With"]=d[k].fireWith;h.done(function(){f="resolved"},b.disable,e.lock).fail(function(){f="rejected"},c.disable,e.lock);a&&a.call(h,h);return h},when:function(a){function c(a){return function(c){g[a]=arguments.length>
1?Q.call(arguments,0):c;k.notifyWith(l,g)}}function b(a){return function(c){e[a]=arguments.length>1?Q.call(arguments,0):c;--h||k.resolveWith(k,e)}}var e=Q.call(arguments,0),f=0,d=e.length,g=Array(d),h=d,k=d<=1&&a&&j.isFunction(a.promise)?a:j.Deferred(),l=k.promise();if(d>1){for(;f<d;f++)e[f]&&e[f].promise&&j.isFunction(e[f].promise)?e[f].promise().then(b(f),k.reject,c(f)):--h;h||k.resolveWith(k,e)}else k!==a&&k.resolveWith(k,d?[a]:[]);return l}});j.support=function(){var c,b,e,f,d,g,h,k,l,m=r.createElement("div");
m.setAttribute("className","t");m.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";b=m.getElementsByTagName("*");e=m.getElementsByTagName("a")[0];if(!b||!b.length||!e)return{};f=r.createElement("select");d=f.appendChild(r.createElement("option"));b=m.getElementsByTagName("input")[0];c={leadingWhitespace:m.firstChild.nodeType===3,tbody:!m.getElementsByTagName("tbody").length,htmlSerialize:!!m.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:b.value==="on",optSelected:d.selected,getSetAttribute:m.className!=="t",enctype:!!r.createElement("form").enctype,html5Clone:r.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0};
b.checked=!0;c.noCloneChecked=b.cloneNode(!0).checked;f.disabled=!0;c.optDisabled=!d.disabled;try{delete m.test}catch(o){c.deleteExpando=!1}!m.addEventListener&&m.attachEvent&&m.fireEvent&&(m.attachEvent("onclick",function(){c.noCloneEvent=!1}),m.cloneNode(!0).fireEvent("onclick"));b=r.createElement("input");b.value="t";b.setAttribute("type","radio");c.radioValue=b.value==="t";b.setAttribute("checked","checked");m.appendChild(b);e=r.createDocumentFragment();e.appendChild(m.lastChild);c.checkClone=
e.cloneNode(!0).cloneNode(!0).lastChild.checked;c.appendChecked=b.checked;e.removeChild(b);e.appendChild(m);m.innerHTML="";a.getComputedStyle&&(g=r.createElement("div"),g.style.width="0",g.style.marginRight="0",m.style.width="2px",m.appendChild(g),c.reliableMarginRight=(parseInt((a.getComputedStyle(g,null)||{marginRight:0}).marginRight,10)||0)===0);if(m.attachEvent)for(k in{submit:1,change:1,focusin:1})g="on"+k,(l=g in m)||(m.setAttribute(g,"return;"),l=typeof m[g]=="function"),c[k+"Bubbles"]=l;e.removeChild(m);
e=f=d=g=m=b=null;j(function(){var a,b,e,f,d,g=r.getElementsByTagName("body")[0];!g||(a=r.createElement("div"),a.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",g.insertBefore(a,g.firstChild),m=r.createElement("div"),a.appendChild(m),m.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",h=m.getElementsByTagName("td"),l=h[0].offsetHeight===0,h[0].style.display="",h[1].style.display="none",c.reliableHiddenOffsets=
l&&h[0].offsetHeight===0,m.innerHTML="",m.style.width=m.style.paddingLeft="1px",j.boxModel=c.boxModel=m.offsetWidth===2,typeof m.style.zoom!="undefined"&&(m.style.display="inline",m.style.zoom=1,c.inlineBlockNeedsLayout=m.offsetWidth===2,m.style.display="",m.innerHTML="<div style='width:4px;'></div>",c.shrinkWrapBlocks=m.offsetWidth!==2),m.style.cssText="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;visibility:hidden;border:0;",m.innerHTML="<div style='position:absolute;top:0;left:0;width:1px;height:1px;margin:0;border:5px solid #000;padding:0;'><div></div></div><table style='position:absolute;top:0;left:0;width:1px;height:1px;margin:0;border:5px solid #000;padding:0;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>",
b=m.firstChild,e=b.firstChild,f=b.nextSibling.firstChild.firstChild,d={doesNotAddBorder:e.offsetTop!==5,doesAddBorderForTableAndCells:f.offsetTop===5},e.style.position="fixed",e.style.top="20px",d.fixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",b.style.overflow="hidden",b.style.position="relative",d.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,d.doesNotIncludeMarginInBodyOffset=g.offsetTop!==1,g.removeChild(a),m=null,j.extend(c,d))});return c}();var T=/^(?:\{.*\}|\[.*\])$/,
M=/([A-Z])/g;j.extend({cache:{},uuid:0,expando:"jQuery"+(j.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?j.cache[a[j.expando]]:a[j.expando];return!!a&&!D(a)},data:function(a,b,e,f){if(j.acceptData(a)){var d,g;d=j.expando;var h=typeof b=="string",k=a.nodeType,l=k?j.cache:a,m=k?a[d]:a[d]&&d,o=b==="events";if(m&&l[m]&&(o||f||l[m].data)||!(h&&e===c)){m||(k?a[d]=m=++j.uuid:m=d);l[m]||(l[m]={},
k||(l[m].toJSON=j.noop));if(typeof b=="object"||typeof b=="function")f?l[m]=j.extend(l[m],b):l[m].data=j.extend(l[m].data,b);a=d=l[m];f||(d.data||(d.data={}),d=d.data);e!==c&&(d[j.camelCase(b)]=e);if(o&&!d[b])return a.events;h?(g=d[b],g==null&&(g=d[j.camelCase(b)])):g=d;return g}}},removeData:function(a,c,b){if(j.acceptData(a)){var e,f,d,g=j.expando,h=a.nodeType,k=h?j.cache:a,l=h?a[g]:g;if(k[l]){if(c&&(e=b?k[l]:k[l].data)){j.isArray(c)||(c in e?c=[c]:(c=j.camelCase(c),c in e?c=[c]:c=c.split(" ")));
f=0;for(d=c.length;f<d;f++)delete e[c[f]];if(!(b?D:j.isEmptyObject)(e))return}if(!b&&(delete k[l].data,!D(k[l])))return;j.support.deleteExpando||!k.setInterval?delete k[l]:k[l]=null;h&&(j.support.deleteExpando?delete a[g]:a.removeAttribute?a.removeAttribute(g):a[g]=null)}}},_data:function(a,c,b){return j.data(a,c,b,!0)},acceptData:function(a){if(a.nodeName){var c=j.noData[a.nodeName.toLowerCase()];if(c)return c!==!0&&a.getAttribute("classid")===c}return!0}});j.fn.extend({data:function(a,b){var e,
f,d,g=null;if(typeof a=="undefined"){if(this.length&&(g=j.data(this[0]),this[0].nodeType===1&&!j._data(this[0],"parsedAttrs"))){f=this[0].attributes;for(var h=0,k=f.length;h<k;h++)d=f[h].name,d.indexOf("data-")===0&&(d=j.camelCase(d.substring(5)),H(this[0],d,g[d]));j._data(this[0],"parsedAttrs",!0)}return g}if(typeof a=="object")return this.each(function(){j.data(this,a)});e=a.split(".");e[1]=e[1]?"."+e[1]:"";return b===c?(g=this.triggerHandler("getData"+e[1]+"!",[e[0]]),g===c&&this.length&&(g=j.data(this[0],
a),g=H(this[0],a,g)),g===c&&e[1]?this.data(e[0]):g):this.each(function(){var c=j(this),f=[e[0],b];c.triggerHandler("setData"+e[1]+"!",f);j.data(this,a,b);c.triggerHandler("changeData"+e[1]+"!",f)})},removeData:function(a){return this.each(function(){j.removeData(this,a)})}});j.extend({_mark:function(a,c){a&&(c=(c||"fx")+"mark",j._data(a,c,(j._data(a,c)||0)+1))},_unmark:function(a,c,b){a!==!0&&(b=c,c=a,a=!1);if(c){var b=b||"fx",e=b+"mark";(a=a?0:(j._data(c,e)||1)-1)?j._data(c,e,a):(j.removeData(c,
e,!0),B(c,b,"mark"))}},queue:function(a,c,b){var e;if(a)return c=(c||"fx")+"queue",e=j._data(a,c),b&&(!e||j.isArray(b)?e=j._data(a,c,j.makeArray(b)):e.push(b)),e||[]},dequeue:function(a,c){var c=c||"fx",b=j.queue(a,c),e=b.shift(),f={};e==="inprogress"&&(e=b.shift());e&&(c==="fx"&&b.unshift("inprogress"),j._data(a,c+".run",f),e.call(a,function(){j.dequeue(a,c)},f));b.length||(j.removeData(a,c+"queue "+c+".run",!0),B(a,c,"queue"))}});j.fn.extend({queue:function(a,b){typeof a!="string"&&(b=a,a="fx");
return b===c?j.queue(this[0],a):this.each(function(){var c=j.queue(this,a,b);a==="fx"&&c[0]!=="inprogress"&&j.dequeue(this,a)})},dequeue:function(a){return this.each(function(){j.dequeue(this,a)})},delay:function(a,c){a=j.fx?j.fx.speeds[a]||a:a;return this.queue(c||"fx",function(c,b){var e=setTimeout(c,a);b.stop=function(){clearTimeout(e)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a){function b(){--g||e.resolveWith(f,[f])}typeof a!="string"&&(a=c);var a=a||"fx",e=j.Deferred(),
f=this,d=f.length,g=1,h=a+"defer",k=a+"queue";a+="mark";for(var l;d--;)if(l=j.data(f[d],h,c,!0)||(j.data(f[d],k,c,!0)||j.data(f[d],a,c,!0))&&j.data(f[d],h,j.Callbacks("once memory"),!0))g++,l.add(b);b();return e.promise()}});var N=/[\n\t\r]/g,K=/\s+/,V=/\r/g,Y=/^(?:button|input)$/i,I=/^(?:button|input|object|select|textarea)$/i,z=/^a(?:rea)?$/i,P=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,O=j.support.getSetAttribute,
U,aa,R;j.fn.extend({attr:function(a,c){return j.access(this,a,c,!0,j.attr)},removeAttr:function(a){return this.each(function(){j.removeAttr(this,a)})},prop:function(a,c){return j.access(this,a,c,!0,j.prop)},removeProp:function(a){a=j.propFix[a]||a;return this.each(function(){try{this[a]=c,delete this[a]}catch(b){}})},addClass:function(a){var c,b,e,f,d,g,h;if(j.isFunction(a))return this.each(function(c){j(this).addClass(a.call(this,c,this.className))});if(a&&typeof a=="string"){c=a.split(K);b=0;for(e=
this.length;b<e;b++)if(f=this[b],f.nodeType===1)if(!f.className&&c.length===1)f.className=a;else{d=" "+f.className+" ";g=0;for(h=c.length;g<h;g++)~d.indexOf(" "+c[g]+" ")||(d+=c[g]+" ");f.className=j.trim(d)}}return this},removeClass:function(a){var b,e,f,d,g,h,k;if(j.isFunction(a))return this.each(function(c){j(this).removeClass(a.call(this,c,this.className))});if(a&&typeof a=="string"||a===c){b=(a||"").split(K);e=0;for(f=this.length;e<f;e++)if(d=this[e],d.nodeType===1&&d.className)if(a){g=(" "+
d.className+" ").replace(N," ");h=0;for(k=b.length;h<k;h++)g=g.replace(" "+b[h]+" "," ");d.className=j.trim(g)}else d.className=""}return this},toggleClass:function(a,c){var b=typeof a,e=typeof c=="boolean";return j.isFunction(a)?this.each(function(b){j(this).toggleClass(a.call(this,b,this.className,c),c)}):this.each(function(){if(b==="string")for(var f,d=0,g=j(this),h=c,k=a.split(K);f=k[d++];)h=e?h:!g.hasClass(f),g[h?"addClass":"removeClass"](f);else if(b==="undefined"||b==="boolean")this.className&&
j._data(this,"__className__",this.className),this.className=this.className||a===!1?"":j._data(this,"__className__")||""})},hasClass:function(a){for(var a=" "+a+" ",c=0,b=this.length;c<b;c++)if(this[c].nodeType===1&&(" "+this[c].className+" ").replace(N," ").indexOf(a)>-1)return!0;return!1},val:function(a){var b,e,f,d=this[0];if(arguments.length)return f=j.isFunction(a),this.each(function(e){var d=j(this),g;if(this.nodeType===1&&(f?g=a.call(this,e,d.val()):g=a,g==null?g="":typeof g=="number"?g+="":
j.isArray(g)&&(g=j.map(g,function(a){return a==null?"":a+""})),b=j.valHooks[this.nodeName.toLowerCase()]||j.valHooks[this.type],!b||!("set"in b)||b.set(this,g,"value")===c))this.value=g});if(d){if((b=j.valHooks[d.nodeName.toLowerCase()]||j.valHooks[d.type])&&"get"in b&&(e=b.get(d,"value"))!==c)return e;e=d.value;return typeof e=="string"?e.replace(V,""):e==null?"":e}}});j.extend({valHooks:{option:{get:function(a){var c=a.attributes.value;return!c||c.specified?a.value:a.text}},select:{get:function(a){var c,
b,e=a.selectedIndex,f=[],d=a.options,g=a.type==="select-one";if(e<0)return null;a=g?e:0;for(b=g?e+1:d.length;a<b;a++)if(c=d[a],c.selected&&(j.support.optDisabled?!c.disabled:c.getAttribute("disabled")===null)&&(!c.parentNode.disabled||!j.nodeName(c.parentNode,"optgroup"))){c=j(c).val();if(g)return c;f.push(c)}return g&&!f.length&&d.length?j(d[e]).val():f},set:function(a,c){var b=j.makeArray(c);j(a).find("option").each(function(){this.selected=j.inArray(j(this).val(),b)>=0});b.length||(a.selectedIndex=
-1);return b}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,b,e,f){var d,g,h=a.nodeType;if(a&&h!==3&&h!==8&&h!==2){if(f&&b in j.attrFn)return j(a)[b](e);if(typeof a.getAttribute=="undefined")return j.prop(a,b,e);(f=h!==1||!j.isXMLDoc(a))&&(b=b.toLowerCase(),g=j.attrHooks[b]||(P.test(b)?aa:U));if(e!==c){if(e===null){j.removeAttr(a,b);return}if(g&&"set"in g&&f&&(d=g.set(a,e,b))!==c)return d;a.setAttribute(b,""+e);return e}if(g&&"get"in g&&f&&(d=g.get(a,
b))!==null)return d;d=a.getAttribute(b);return d===null?c:d}},removeAttr:function(a,c){var b,e,f,d,g=0;if(c&&a.nodeType===1){e=c.toLowerCase().split(K);for(d=e.length;g<d;g++)(f=e[g])&&(b=j.propFix[f]||f,j.attr(a,f,""),a.removeAttribute(O?f:b),P.test(f)&&b in a&&(a[b]=!1))}},attrHooks:{type:{set:function(a,c){if(Y.test(a.nodeName)&&a.parentNode)j.error("type property can't be changed");else if(!j.support.radioValue&&c==="radio"&&j.nodeName(a,"input")){var b=a.value;a.setAttribute("type",c);b&&(a.value=
b);return c}}},value:{get:function(a,c){return U&&j.nodeName(a,"button")?U.get(a,c):c in a?a.value:null},set:function(a,c,b){if(U&&j.nodeName(a,"button"))return U.set(a,c,b);a.value=c}}},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,b,e){var f,d,g;g=a.nodeType;
if(a&&g!==3&&g!==8&&g!==2)return(g=g!==1||!j.isXMLDoc(a))&&(b=j.propFix[b]||b,d=j.propHooks[b]),e!==c?d&&"set"in d&&(f=d.set(a,e,b))!==c?f:a[b]=e:d&&"get"in d&&(f=d.get(a,b))!==null?f:a[b]},propHooks:{tabIndex:{get:function(a){var b=a.getAttributeNode("tabindex");return b&&b.specified?parseInt(b.value,10):I.test(a.nodeName)||z.test(a.nodeName)&&a.href?0:c}}}});j.attrHooks.tabindex=j.propHooks.tabIndex;aa={get:function(a,b){var e,f=j.prop(a,b);return f===!0||typeof f!="boolean"&&(e=a.getAttributeNode(b))&&
e.nodeValue!==!1?b.toLowerCase():c},set:function(a,c,b){var e;c===!1?j.removeAttr(a,b):(e=j.propFix[b]||b,e in a&&(a[e]=!0),a.setAttribute(b,b.toLowerCase()));return b}};O||(R={name:!0,id:!0},U=j.valHooks.button={get:function(a,b){var e;return(e=a.getAttributeNode(b))&&(R[b]?e.nodeValue!=="":e.specified)?e.nodeValue:c},set:function(a,c,b){var e=a.getAttributeNode(b);e||(e=r.createAttribute(b),a.setAttributeNode(e));return e.nodeValue=c+""}},j.attrHooks.tabindex.set=U.set,j.each(["width","height"],
function(a,c){j.attrHooks[c]=j.extend(j.attrHooks[c],{set:function(a,b){if(b==="")return a.setAttribute(c,"auto"),b}})}),j.attrHooks.contenteditable={get:U.get,set:function(a,c,b){c===""&&(c="false");U.set(a,c,b)}});j.support.hrefNormalized||j.each(["href","src","width","height"],function(a,b){j.attrHooks[b]=j.extend(j.attrHooks[b],{get:function(a){a=a.getAttribute(b,2);return a===null?c:a}})});j.support.style||(j.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||c},set:function(a,
c){return a.style.cssText=""+c}});j.support.optSelected||(j.propHooks.selected=j.extend(j.propHooks.selected,{get:function(){return null}}));j.support.enctype||(j.propFix.enctype="encoding");j.support.checkOn||j.each(["radio","checkbox"],function(){j.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}});j.each(["radio","checkbox"],function(){j.valHooks[this]=j.extend(j.valHooks[this],{set:function(a,c){if(j.isArray(c))return a.checked=j.inArray(j(a).val(),c)>=0}})});
var S=/^(?:textarea|input|select)$/i,W=/^([^\.]*)?(?:\.(.+))?$/,Z=/\bhover(\.\S+)?\b/,ba=/^key/,ka=/^(?:mouse|contextmenu)|click/,la=/^(?:focusinfocus|focusoutblur)$/,ia=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,Ua=function(a){(a=ia.exec(a))&&(a[1]=(a[1]||"").toLowerCase(),a[3]=a[3]&&RegExp("(?:^|\\s)"+a[3]+"(?:\\s|$)"));return a},ya=function(a){return j.event.special.hover?a:a.replace(Z,"mouseenter$1 mouseleave$1")};j.event={add:function(a,b,e,f,d){var g,h,k,l,m,o,n,r,p;if(!(a.nodeType===3||a.nodeType===
8||!b||!e||!(g=j._data(a)))){e.handler&&(n=e,e=n.handler);e.guid||(e.guid=j.guid++);(k=g.events)||(g.events=k={});(h=g.handle)||(g.handle=h=function(a){return typeof j!="undefined"&&(!a||j.event.triggered!==a.type)?j.event.dispatch.apply(h.elem,arguments):c},h.elem=a);b=j.trim(ya(b)).split(" ");for(g=0;g<b.length;g++){l=W.exec(b[g])||[];m=l[1];o=(l[2]||"").split(".").sort();p=j.event.special[m]||{};m=(d?p.delegateType:p.bindType)||m;p=j.event.special[m]||{};l=j.extend({type:m,origType:l[1],data:f,
handler:e,guid:e.guid,selector:d,quick:Ua(d),namespace:o.join(".")},n);r=k[m];if(!r&&(r=k[m]=[],r.delegateCount=0,!p.setup||p.setup.call(a,f,o,h)===!1))a.addEventListener?a.addEventListener(m,h,!1):a.attachEvent&&a.attachEvent("on"+m,h);p.add&&(p.add.call(a,l),l.handler.guid||(l.handler.guid=e.guid));d?r.splice(r.delegateCount++,0,l):r.push(l);j.event.global[m]=!0}a=null}},global:{},remove:function(a,c,b,e,f){var d=j.hasData(a)&&j._data(a),g,h,k,l,m,o,n,r,p,q,t;if(d&&(n=d.events)){c=j.trim(ya(c||
"")).split(" ");for(g=0;g<c.length;g++)if(h=W.exec(c[g])||[],k=l=h[1],h=h[2],k){r=j.event.special[k]||{};k=(e?r.delegateType:r.bindType)||k;q=n[k]||[];m=q.length;h=h?RegExp("(^|\\.)"+h.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(o=0;o<q.length;o++)t=q[o],(f||l===t.origType)&&(!b||b.guid===t.guid)&&(!h||h.test(t.namespace))&&(!e||e===t.selector||e==="**"&&t.selector)&&(q.splice(o--,1),t.selector&&q.delegateCount--,r.remove&&r.remove.call(a,t));q.length===0&&m!==q.length&&((!r.teardown||
r.teardown.call(a,h)===!1)&&j.removeEvent(a,k,d.handle),delete n[k])}else for(k in n)j.event.remove(a,k+c[g],b,e,!0);j.isEmptyObject(n)&&(p=d.handle,p&&(p.elem=null),j.removeData(a,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(b,e,f,d){if(!f||f.nodeType!==3&&f.nodeType!==8){var g=b.type||b,h=[],k,l,m,o,n,r;if(!la.test(g+j.event.triggered)&&(g.indexOf("!")>=0&&(g=g.slice(0,-1),k=!0),g.indexOf(".")>=0&&(h=g.split("."),g=h.shift(),h.sort()),f&&!j.event.customEvent[g]||
j.event.global[g]))if(b=typeof b=="object"?b[j.expando]?b:new j.Event(g,b):new j.Event(g),b.type=g,b.isTrigger=!0,b.exclusive=k,b.namespace=h.join("."),b.namespace_re=b.namespace?RegExp("(^|\\.)"+h.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,k=g.indexOf(":")<0?"on"+g:"",f){if(b.result=c,b.target||(b.target=f),e=e!=null?j.makeArray(e):[],e.unshift(b),o=j.event.special[g]||{},!(o.trigger&&o.trigger.apply(f,e)===!1)){r=[[f,o.bindType||g]];if(!d&&!o.noBubble&&!j.isWindow(f)){l=o.delegateType||g;h=la.test(l+
g)?f:f.parentNode;for(m=null;h;h=h.parentNode)r.push([h,l]),m=h;m&&m===f.ownerDocument&&r.push([m.defaultView||m.parentWindow||a,l])}for(l=0;l<r.length&&!b.isPropagationStopped();l++)h=r[l][0],b.type=r[l][1],(n=(j._data(h,"events")||{})[b.type]&&j._data(h,"handle"))&&n.apply(h,e),(n=k&&h[k])&&j.acceptData(h)&&n.apply(h,e)===!1&&b.preventDefault();b.type=g;!d&&!b.isDefaultPrevented()&&(!o._default||o._default.apply(f.ownerDocument,e)===!1)&&(g!=="click"||!j.nodeName(f,"a"))&&j.acceptData(f)&&k&&f[g]&&
(g!=="focus"&&g!=="blur"||b.target.offsetWidth!==0)&&!j.isWindow(f)&&(m=f[k],m&&(f[k]=null),j.event.triggered=g,f[g](),j.event.triggered=c,m&&(f[k]=m));return b.result}}else for(l in f=j.cache,f)f[l].events&&f[l].events[g]&&j.event.trigger(b,e,f[l].handle.elem,!0)}},dispatch:function(b){var b=j.event.fix(b||a.event),e=(j._data(this,"events")||{})[b.type]||[],f=e.delegateCount,g=[].slice.call(arguments,0),d=!b.exclusive&&!b.namespace,h=[],k,l,m,o,n,r,p;g[0]=b;b.delegateTarget=this;if(f&&!b.target.disabled&&
(!b.button||b.type!=="click")){m=j(this);m.context=this.ownerDocument||this;for(l=b.target;l!=this;l=l.parentNode||this){n={};r=[];m[0]=l;for(k=0;k<f;k++){o=e[k];p=o.selector;if(n[p]===c){var q=n,t=p,s;if(o.quick){s=o.quick;var v=l.attributes||{};s=(!s[1]||l.nodeName.toLowerCase()===s[1])&&(!s[2]||(v.id||{}).value===s[2])&&(!s[3]||s[3].test((v["class"]||{}).value))}else s=m.is(p);q[t]=s}n[p]&&r.push(o)}r.length&&h.push({elem:l,matches:r})}}e.length>f&&h.push({elem:this,matches:e.slice(f)});for(k=
0;k<h.length&&!b.isPropagationStopped();k++){f=h[k];b.currentTarget=f.elem;for(e=0;e<f.matches.length&&!b.isImmediatePropagationStopped();e++)if(o=f.matches[e],d||!b.namespace&&!o.namespace||b.namespace_re&&b.namespace_re.test(o.namespace))b.data=o.data,b.handleObj=o,o=((j.event.special[o.origType]||{}).handle||o.handler).apply(f.elem,g),o!==c&&(b.result=o,o===!1&&(b.preventDefault(),b.stopPropagation()))}return b.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,c){a.which==null&&(a.which=c.charCode!=null?c.charCode:c.keyCode);return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var e,f,g,d=b.button,h=b.fromElement;a.pageX==null&&b.clientX!=null&&(e=a.target.ownerDocument||r,f=e.documentElement,g=e.body,a.pageX=b.clientX+(f&&f.scrollLeft||g&&g.scrollLeft||0)-(f&&f.clientLeft||
g&&g.clientLeft||0),a.pageY=b.clientY+(f&&f.scrollTop||g&&g.scrollTop||0)-(f&&f.clientTop||g&&g.clientTop||0));!a.relatedTarget&&h&&(a.relatedTarget=h===a.target?b.toElement:h);!a.which&&d!==c&&(a.which=d&1?1:d&2?3:d&4?2:0);return a}},fix:function(a){if(a[j.expando])return a;var b,e,f=a,g=j.event.fixHooks[a.type]||{},d=g.props?this.props.concat(g.props):this.props,a=j.Event(f);for(b=d.length;b;)e=d[--b],a[e]=f[e];a.target||(a.target=f.srcElement||r);a.target.nodeType===3&&(a.target=a.target.parentNode);
a.metaKey===c&&(a.metaKey=a.ctrlKey);return g.filter?g.filter(a,f):a},special:{ready:{setup:j.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,c,b){j.isWindow(this)&&(this.onbeforeunload=b)},teardown:function(a,c){this.onbeforeunload===c&&(this.onbeforeunload=null)}}},simulate:function(a,c,b,e){a=j.extend(new j.Event,b,{type:a,isSimulated:!0,originalEvent:{}});e?j.event.trigger(a,null,c):j.event.dispatch.call(c,a);a.isDefaultPrevented()&&
b.preventDefault()}};j.event.handle=j.event.dispatch;j.removeEvent=r.removeEventListener?function(a,c,b){a.removeEventListener&&a.removeEventListener(c,b,!1)}:function(a,c,b){a.detachEvent&&a.detachEvent("on"+c,b)};j.Event=function(a,c){if(!(this instanceof j.Event))return new j.Event(a,c);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?x:w):this.type=a;c&&j.extend(this,c);this.timeStamp=a&&
a.timeStamp||j.now();this[j.expando]=!0};j.Event.prototype={preventDefault:function(){this.isDefaultPrevented=x;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=x;var a=this.originalEvent;!a||(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=x;this.stopPropagation()},isDefaultPrevented:w,isPropagationStopped:w,isImmediatePropagationStopped:w};
j.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,c){j.event.special[a]={delegateType:c,bindType:c,handle:function(a){var b=a.relatedTarget,e=a.handleObj,f;if(!b||b!==this&&!j.contains(this,b))a.type=e.origType,f=e.handler.apply(this,arguments),a.type=c;return f}}});j.support.submitBubbles||(j.event.special.submit={setup:function(){if(j.nodeName(this,"form"))return!1;j.event.add(this,"click._submit keypress._submit",function(a){a=a.target;(a=j.nodeName(a,"input")||j.nodeName(a,"button")?
a.form:c)&&!a._submit_attached&&(j.event.add(a,"submit._submit",function(a){this.parentNode&&!a.isTrigger&&j.event.simulate("submit",this.parentNode,a,!0)}),a._submit_attached=!0)})},teardown:function(){if(j.nodeName(this,"form"))return!1;j.event.remove(this,"._submit")}});j.support.changeBubbles||(j.event.special.change={setup:function(){if(S.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")j.event.add(this,"propertychange._change",function(a){a.originalEvent.propertyName==="checked"&&
(this._just_changed=!0)}),j.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1,j.event.simulate("change",this,a,!0))});return!1}j.event.add(this,"beforeactivate._change",function(a){a=a.target;S.test(a.nodeName)&&!a._change_attached&&(j.event.add(a,"change._change",function(a){this.parentNode&&!a.isSimulated&&!a.isTrigger&&j.event.simulate("change",this.parentNode,a,!0)}),a._change_attached=!0)})},handle:function(a){var c=a.target;if(this!==c||a.isSimulated||
a.isTrigger||c.type!=="radio"&&c.type!=="checkbox")return a.handleObj.handler.apply(this,arguments)},teardown:function(){j.event.remove(this,"._change");return S.test(this.nodeName)}});j.support.focusinBubbles||j.each({focus:"focusin",blur:"focusout"},function(a,c){var b=0,e=function(a){j.event.simulate(c,a.target,j.event.fix(a),!0)};j.event.special[c]={setup:function(){b++===0&&r.addEventListener(a,e,!0)},teardown:function(){--b===0&&r.removeEventListener(a,e,!0)}}});j.fn.extend({on:function(a,b,
e,f,g){var d,h;if(typeof a=="object"){typeof b!="string"&&(e=b,b=c);for(h in a)this.on(h,b,e,a[h],g);return this}e==null&&f==null?(f=b,e=b=c):f==null&&(typeof b=="string"?(f=e,e=c):(f=e,e=b,b=c));if(f===!1)f=w;else if(!f)return this;g===1&&(d=f,f=function(a){j().off(a);return d.apply(this,arguments)},f.guid=d.guid||(d.guid=j.guid++));return this.each(function(){j.event.add(this,a,f,e,b)})},one:function(a,c,b,e){return this.on.call(this,a,c,b,e,1)},off:function(a,b,e){if(a&&a.preventDefault&&a.handleObj){var f=
a.handleObj;j(a.delegateTarget).off(f.namespace?f.type+"."+f.namespace:f.type,f.selector,f.handler);return this}if(typeof a=="object"){for(f in a)this.off(f,b,a[f]);return this}if(b===!1||typeof b=="function")e=b,b=c;e===!1&&(e=w);return this.each(function(){j.event.remove(this,a,e,b)})},bind:function(a,c,b){return this.on(a,null,c,b)},unbind:function(a,c){return this.off(a,null,c)},live:function(a,c,b){j(this.context).on(a,this.selector,c,b);return this},die:function(a,c){j(this.context).off(a,this.selector||
"**",c);return this},delegate:function(a,c,b,e){return this.on(c,a,b,e)},undelegate:function(a,c,b){return arguments.length==1?this.off(a,"**"):this.off(c,a,b)},trigger:function(a,c){return this.each(function(){j.event.trigger(a,c,this)})},triggerHandler:function(a,c){if(this[0])return j.event.trigger(a,c,this[0],!0)},toggle:function(a){var c=arguments,b=a.guid||j.guid++,e=0,f=function(b){var f=(j._data(this,"lastToggle"+a.guid)||0)%e;j._data(this,"lastToggle"+a.guid,f+1);b.preventDefault();return c[f].apply(this,
arguments)||!1};for(f.guid=b;e<c.length;)c[e++].guid=b;return this.click(f)},hover:function(a,c){return this.mouseenter(a).mouseleave(c||a)}});j.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 contextmenu".split(" "),function(a,c){j.fn[c]=function(a,b){b==null&&(b=a,a=null);return arguments.length>0?this.on(c,null,a,b):this.trigger(c)};j.attrFn&&(j.attrFn[c]=
!0);ba.test(c)&&(j.event.fixHooks[c]=j.event.keyHooks);ka.test(c)&&(j.event.fixHooks[c]=j.event.mouseHooks)});(function(){function a(c,b,e,g,d,h){for(var d=0,j=g.length;d<j;d++){var k=g[d];if(k){for(var l=!1,k=k[c];k;){if(k[f]===e){l=g[k.sizset];break}if(k.nodeType===1)if(h||(k[f]=e,k.sizset=d),typeof b!="string"){if(k===b){l=!0;break}}else if(n.filter(b,[k]).length>0){l=k;break}k=k[c]}g[d]=l}}}function b(a,c,e,g,d,h){for(var d=0,j=g.length;d<j;d++){var k=g[d];if(k){for(var l=!1,k=k[a];k;){if(k[f]===
e){l=g[k.sizset];break}k.nodeType===1&&!h&&(k[f]=e,k.sizset=d);if(k.nodeName.toLowerCase()===c){l=k;break}k=k[a]}g[d]=l}}}var e=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,f="sizcache"+(Math.random()+"").replace(".",""),g=0,d=Object.prototype.toString,h=!1,k=!0,l=/\\/g,m=/\r\n/g,o=/\W/;[0,0].sort(function(){k=!1;return 0});var n=function(a,c,b,f){var b=b||[],g=c=c||r;if(c.nodeType!==1&&c.nodeType!==9)return[];
if(!a||typeof a!="string")return b;var h,j,k,l,F,m,o=!0,p=n.isXML(c),L=[],s=a;do if(e.exec(""),h=e.exec(s))if(s=h[3],L.push(h[1]),h[2]){l=h[3];break}while(h);if(L.length>1&&t.exec(a))if(L.length===2&&q.relative[L[0]])j=R(L[0]+L[1],c,f);else for(j=q.relative[L[0]]?[c]:n(L.shift(),c);L.length;)a=L.shift(),q.relative[a]&&(a+=L.shift()),j=R(a,j,f);else if(!f&&L.length>1&&c.nodeType===9&&!p&&q.match.ID.test(L[0])&&!q.match.ID.test(L[L.length-1])&&(F=n.find(L.shift(),c,p),c=F.expr?n.filter(F.expr,F.set)[0]:
F.set[0]),c){F=f?{expr:L.pop(),set:E(f)}:n.find(L.pop(),L.length===1&&(L[0]==="~"||L[0]==="+")&&c.parentNode?c.parentNode:c,p);j=F.expr?n.filter(F.expr,F.set):F.set;for(L.length>0?k=E(j):o=!1;L.length;)h=m=L.pop(),q.relative[m]?h=L.pop():m="",h==null&&(h=c),q.relative[m](k,h,p)}else k=[];k||(k=j);k||n.error(m||a);if(d.call(k)==="[object Array]")if(o)if(c&&c.nodeType===1)for(a=0;k[a]!=null;a++)k[a]&&(k[a]===!0||k[a].nodeType===1&&n.contains(c,k[a]))&&b.push(j[a]);else for(a=0;k[a]!=null;a++)k[a]&&
k[a].nodeType===1&&b.push(j[a]);else b.push.apply(b,k);else E(k,b);l&&(n(l,g,b,f),n.uniqueSort(b));return b};n.uniqueSort=function(a){if(u&&(h=k,a.sort(u),h))for(var c=1;c<a.length;c++)a[c]===a[c-1]&&a.splice(c--,1);return a};n.matches=function(a,c){return n(a,null,null,c)};n.matchesSelector=function(a,c){return n(c,null,null,[a]).length>0};n.find=function(a,c,b){var e,f,g,d,h,j;if(!a)return[];f=0;for(g=q.order.length;f<g;f++)if(h=q.order[f],d=q.leftMatch[h].exec(a))if(j=d[1],d.splice(1,1),j.substr(j.length-
1)!=="\\"&&(d[1]=(d[1]||"").replace(l,""),e=q.find[h](d,c,b),e!=null)){a=a.replace(q.match[h],"");break}e||(e=typeof c.getElementsByTagName!="undefined"?c.getElementsByTagName("*"):[]);return{set:e,expr:a}};n.filter=function(a,b,e,f){for(var g,d,h,j,k,l,F,m,o=a,r=[],L=b,p=b&&b[0]&&n.isXML(b[0]);a&&b.length;){for(h in q.filter)if((g=q.leftMatch[h].exec(a))!=null&&g[2])if(l=q.filter[h],k=g[1],d=!1,g.splice(1,1),k.substr(k.length-1)!=="\\"){L===r&&(r=[]);if(q.preFilter[h])if(g=q.preFilter[h](g,L,e,r,
f,p)){if(g===!0)continue}else d=j=!0;if(g)for(F=0;(k=L[F])!=null;F++)k&&(j=l(k,g,F,L),m=f^j,e&&j!=null?m?d=!0:L[F]=!1:m&&(r.push(k),d=!0));if(j!==c){e||(L=r);a=a.replace(q.match[h],"");if(!d)return[];break}}if(a===o)if(d==null)n.error(a);else break;o=a}return L};n.error=function(a){throw Error("Syntax error, unrecognized expression: "+a);};var p=n.getText=function(a){var c,b;c=a.nodeType;var e="";if(c)if(c===1||c===9){if(typeof a.textContent=="string")return a.textContent;if(typeof a.innerText=="string")return a.innerText.replace(m,
"");for(a=a.firstChild;a;a=a.nextSibling)e+=p(a)}else{if(c===3||c===4)return a.nodeValue}else for(c=0;b=a[c];c++)b.nodeType!==8&&(e+=p(b));return e},q=n.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,c){var b=typeof c=="string",e=b&&!o.test(c),b=b&&!e;e&&(c=c.toLowerCase());for(var e=0,f=a.length,g;e<f;e++)if(g=a[e]){for(;(g=g.previousSibling)&&g.nodeType!==
1;);a[e]=b||g&&g.nodeName.toLowerCase()===c?g||!1:g===c}b&&n.filter(c,a,!0)},">":function(a,c){var b,e=typeof c=="string",f=0,g=a.length;if(e&&!o.test(c))for(c=c.toLowerCase();f<g;f++){if(b=a[f])b=b.parentNode,a[f]=b.nodeName.toLowerCase()===c?b:!1}else{for(;f<g;f++)(b=a[f])&&(a[f]=e?b.parentNode:b.parentNode===c);e&&n.filter(c,a,!0)}},"":function(c,e,f){var d,h=g++,j=a;typeof e=="string"&&!o.test(e)&&(e=e.toLowerCase(),d=e,j=b);j("parentNode",e,h,c,d,f)},"~":function(c,e,f){var d,h=g++,j=a;typeof e==
"string"&&!o.test(e)&&(e=e.toLowerCase(),d=e,j=b);j("previousSibling",e,h,c,d,f)}},find:{ID:function(a,c,b){if(typeof c.getElementById!="undefined"&&!b)return(a=c.getElementById(a[1]))&&a.parentNode?[a]:[]},NAME:function(a,c){if(typeof c.getElementsByName!="undefined"){for(var b=[],e=c.getElementsByName(a[1]),f=0,g=e.length;f<g;f++)e[f].getAttribute("name")===a[1]&&b.push(e[f]);return b.length===0?null:b}},TAG:function(a,c){if(typeof c.getElementsByTagName!="undefined")return c.getElementsByTagName(a[1])}},
preFilter:{CLASS:function(a,c,b,e,f,g){a=" "+a[1].replace(l,"")+" ";if(g)return a;for(var g=0,d;(d=c[g])!=null;g++)d&&(f^(d.className&&(" "+d.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?b||e.push(d):b&&(c[g]=!1));return!1},ID:function(a){return a[1].replace(l,"")},TAG:function(a){return a[1].replace(l,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||n.error(a[0]);a[2]=a[2].replace(/^\+|\s*/g,"");var c=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||
!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=c[1]+(c[2]||1)-0;a[3]=c[3]-0}else a[2]&&n.error(a[0]);a[0]=g++;return a},ATTR:function(a,c,b,e,f,g){c=a[1]=a[1].replace(l,"");!g&&q.attrMap[c]&&(a[1]=q.attrMap[c]);a[4]=(a[4]||a[5]||"").replace(l,"");a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(a,c,b,f,g){if(a[1]==="not")if((e.exec(a[3])||"").length>1||/^\w/.test(a[3]))a[3]=n(a[3],null,null,c);else return a=n.filter(a[3],c,b,1^g),b||f.push.apply(f,a),!1;else if(q.match.POS.test(a[0])||q.match.CHILD.test(a[0]))return!0;
return a},POS:function(a){a.unshift(!0);return 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.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,c,b){return!!n(b[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var c=a.getAttribute("type"),b=a.type;return a.nodeName.toLowerCase()===
"input"&&"text"===b&&(c===b||c===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 c=a.nodeName.toLowerCase();return(c==="input"||c==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()===
"input"&&"image"===a.type},reset:function(a){var c=a.nodeName.toLowerCase();return(c==="input"||c==="button")&&"reset"===a.type},button:function(a){var c=a.nodeName.toLowerCase();return c==="input"&&"button"===a.type||c==="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,c){return c===0},last:function(a,c,b,e){return c===e.length-1},even:function(a,c){return c%2===0},odd:function(a,
c){return c%2===1},lt:function(a,c,b){return c<b[3]-0},gt:function(a,c,b){return c>b[3]-0},nth:function(a,c,b){return b[3]-0===c},eq:function(a,c,b){return b[3]-0===c}},filter:{PSEUDO:function(a,c,b,e){var f=c[1],g=q.filters[f];if(g)return g(a,b,c,e);if(f==="contains")return(a.textContent||a.innerText||p([a])||"").indexOf(c[3])>=0;if(f==="not"){c=c[3];b=0;for(e=c.length;b<e;b++)if(c[b]===a)return!1;return!0}n.error(f)},CHILD:function(a,c){var b,e,g,d,h,j;b=c[1];j=a;switch(b){case "only":case "first":for(;j=
j.previousSibling;)if(j.nodeType===1)return!1;if(b==="first")return!0;j=a;case "last":for(;j=j.nextSibling;)if(j.nodeType===1)return!1;return!0;case "nth":b=c[2];e=c[3];if(b===1&&e===0)return!0;g=c[0];if((d=a.parentNode)&&(d[f]!==g||!a.nodeIndex)){h=0;for(j=d.firstChild;j;j=j.nextSibling)j.nodeType===1&&(j.nodeIndex=++h);d[f]=g}j=a.nodeIndex-e;return b===0?j===0:j%b===0&&j/b>=0}},ID:function(a,c){return a.nodeType===1&&a.getAttribute("id")===c},TAG:function(a,c){return c==="*"&&a.nodeType===1||!!a.nodeName&&
a.nodeName.toLowerCase()===c},CLASS:function(a,c){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(c)>-1},ATTR:function(a,c){var b=c[1],b=n.attr?n.attr(a,b):q.attrHandle[b]?q.attrHandle[b](a):a[b]!=null?a[b]:a.getAttribute(b),e=b+"",f=c[2],g=c[4];return b==null?f==="!=":!f&&n.attr?b!=null: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&&b!==!1},POS:function(a,c,b,e){var f=q.setFilters[c[2]];if(f)return f(a,b,c,e)}}},t=q.match.POS,s=function(a,c){return"\\"+(c-0+1)},v;for(v in q.match)q.match[v]=RegExp(q.match[v].source+/(?![^\[]*\])(?![^\(]*\))/.source),q.leftMatch[v]=RegExp(/(^(?:.|\r|\n)*?)/.source+q.match[v].source.replace(/\\(\d+)/g,s));var E=function(a,c){a=Array.prototype.slice.call(a,0);return c?(c.push.apply(c,a),c):a};try{Array.prototype.slice.call(r.documentElement.childNodes,0)}catch(w){E=function(a,c){var b=
0,e=c||[];if(d.call(a)==="[object Array]")Array.prototype.push.apply(e,a);else if(typeof a.length=="number")for(var f=a.length;b<f;b++)e.push(a[b]);else for(;a[b];b++)e.push(a[b]);return e}}var u,z;r.documentElement.compareDocumentPosition?u=function(a,c){return a===c?(h=!0,0):!a.compareDocumentPosition||!c.compareDocumentPosition?a.compareDocumentPosition?-1:1:a.compareDocumentPosition(c)&4?-1:1}:(u=function(a,c){if(a===c)return h=!0,0;if(a.sourceIndex&&c.sourceIndex)return a.sourceIndex-c.sourceIndex;
var b,e,f=[],g=[];b=a.parentNode;e=c.parentNode;var d=b;if(b===e)return z(a,c);if(!b)return-1;if(!e)return 1;for(;d;)f.unshift(d),d=d.parentNode;for(d=e;d;)g.unshift(d),d=d.parentNode;b=f.length;e=g.length;for(d=0;d<b&&d<e;d++)if(f[d]!==g[d])return z(f[d],g[d]);return d===b?z(a,g[d],-1):z(f[d],c,1)},z=function(a,c,b){if(a===c)return b;for(a=a.nextSibling;a;){if(a===c)return-1;a=a.nextSibling}return 1});(function(){var a=r.createElement("div"),b="script"+(new Date).getTime(),e=r.documentElement;a.innerHTML=
"<a name='"+b+"'/>";e.insertBefore(a,e.firstChild);r.getElementById(b)&&(q.find.ID=function(a,b,e){if(typeof b.getElementById!="undefined"&&!e)return(b=b.getElementById(a[1]))?b.id===a[1]||typeof b.getAttributeNode!="undefined"&&b.getAttributeNode("id").nodeValue===a[1]?[b]:c:[]},q.filter.ID=function(a,c){var b=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&b&&b.nodeValue===c});e.removeChild(a);e=a=null})();(function(){var a=r.createElement("div");a.appendChild(r.createComment(""));
a.getElementsByTagName("*").length>0&&(q.find.TAG=function(a,c){var b=c.getElementsByTagName(a[1]);if(a[1]==="*"){for(var e=[],f=0;b[f];f++)b[f].nodeType===1&&e.push(b[f]);b=e}return b});a.innerHTML="<a href='#'></a>";a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(q.attrHandle.href=function(a){return a.getAttribute("href",2)});a=null})();r.querySelectorAll&&function(){var a=n,c=r.createElement("div");c.innerHTML="<p class='TEST'></p>";if(!c.querySelectorAll||
c.querySelectorAll(".TEST").length!==0){n=function(c,b,e,f){b=b||r;if(!f&&!n.isXML(b)){var g=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(c);if(g&&(b.nodeType===1||b.nodeType===9)){if(g[1])return E(b.getElementsByTagName(c),e);if(g[2]&&q.find.CLASS&&b.getElementsByClassName)return E(b.getElementsByClassName(g[2]),e)}if(b.nodeType===9){if(c==="body"&&b.body)return E([b.body],e);if(g&&g[3]){var d=b.getElementById(g[3]);if(!d||!d.parentNode)return E([],e);if(d.id===g[3])return E([d],e)}try{return E(b.querySelectorAll(c),
e)}catch(h){}}else if(b.nodeType===1&&b.nodeName.toLowerCase()!=="object"){var g=b,j=(d=b.getAttribute("id"))||"__sizzle__",k=b.parentNode,l=/^\s*[+~]/.test(c);d?j=j.replace(/'/g,"\\$&"):b.setAttribute("id",j);l&&k&&(b=b.parentNode);try{if(!l||k)return E(b.querySelectorAll("[id='"+j+"'] "+c),e)}catch(F){}finally{d||g.removeAttribute("id")}}}return a(c,b,e,f)};for(var b in a)n[b]=a[b];c=null}}();(function(){var a=r.documentElement,c=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||
a.msMatchesSelector;if(c){var b=!c.call(r.createElement("div"),"div"),e=!1;try{c.call(r.documentElement,"[test!='']:sizzle")}catch(f){e=!0}n.matchesSelector=function(a,f){f=f.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!n.isXML(a))try{if(e||!q.match.PSEUDO.test(f)&&!/!=/.test(f)){var g=c.call(a,f);if(g||!b||a.document&&a.document.nodeType!==11)return g}}catch(d){}return n(f,null,null,[a]).length>0}}})();(function(){var a=r.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";
if(a.getElementsByClassName&&a.getElementsByClassName("e").length!==0&&(a.lastChild.className="e",a.getElementsByClassName("e").length!==1))q.order.splice(1,0,"CLASS"),q.find.CLASS=function(a,c,b){if(typeof c.getElementsByClassName!="undefined"&&!b)return c.getElementsByClassName(a[1])},a=null})();r.documentElement.contains?n.contains=function(a,c){return a!==c&&(a.contains?a.contains(c):!0)}:r.documentElement.compareDocumentPosition?n.contains=function(a,c){return!!(a.compareDocumentPosition(c)&
16)}:n.contains=function(){return!1};n.isXML=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?a.nodeName!=="HTML":!1};var R=function(a,c,b){for(var e,f=[],g="",c=c.nodeType?[c]:c;e=q.match.PSEUDO.exec(a);)g+=e[0],a=a.replace(q.match.PSEUDO,"");a=q.relative[a]?a+"*":a;e=0;for(var d=c.length;e<d;e++)n(a,c[e],f,b);return n.filter(g,f)};n.attr=j.attr;n.selectors.attrMap={};j.find=n;j.expr=n.selectors;j.expr[":"]=j.expr.filters;j.unique=n.uniqueSort;j.text=n.getText;j.isXMLDoc=n.isXML;j.contains=
n.contains})();var Va=/Until$/,Wa=/^(?:parents|prevUntil|prevAll)/,Xa=/,/,Ta=/^.[^:#\[\.,]*$/,Za=Array.prototype.slice,za=j.expr.match.POS,$a={children:!0,contents:!0,next:!0,prev:!0};j.fn.extend({find:function(a){var c=this,b,e;if(typeof a!="string")return j(a).filter(function(){b=0;for(e=c.length;b<e;b++)if(j.contains(c[b],this))return!0});var f=this.pushStack("","find",a),g,d,h;b=0;for(e=this.length;b<e;b++)if(g=f.length,j.find(a,this[b],f),b>0)for(d=g;d<f.length;d++)for(h=0;h<g;h++)if(f[h]===
f[d]){f.splice(d--,1);break}return f},has:function(a){var c=j(a);return this.filter(function(){for(var a=0,b=c.length;a<b;a++)if(j.contains(this,c[a]))return!0})},not:function(a){return this.pushStack(y(this,a,!1),"not",a)},filter:function(a){return this.pushStack(y(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?za.test(a)?j(a,this.context).index(this[0])>=0:j.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,c){var b=[],e,f,g=this[0];if(j.isArray(a)){for(f=
1;g&&g.ownerDocument&&g!==c;){for(e=0;e<a.length;e++)j(g).is(a[e])&&b.push({selector:a[e],elem:g,level:f});g=g.parentNode;f++}return b}var d=za.test(a)||typeof a!="string"?j(a,c||this.context):0;e=0;for(f=this.length;e<f;e++)for(g=this[e];g;){if(d?d.index(g)>-1:j.find.matchesSelector(g,a)){b.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===c||g.nodeType===11)break}b=b.length>1?j.unique(b):b;return this.pushStack(b,"closest",a)},index:function(a){return!a?this[0]&&this[0].parentNode?this.prevAll().length:
-1:typeof a=="string"?j.inArray(this[0],j(a)):j.inArray(a.jquery?a[0]:a,this)},add:function(a,c){var b=typeof a=="string"?j(a,c):j.makeArray(a&&a.nodeType?[a]:a),e=j.merge(this.get(),b);return this.pushStack(!b[0]||!b[0].parentNode||b[0].parentNode.nodeType===11||!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11?e:j.unique(e))},andSelf:function(){return this.add(this.prevObject)}});j.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return j.dir(a,"parentNode")},
parentsUntil:function(a,c,b){return j.dir(a,"parentNode",b)},next:function(a){return j.nth(a,2,"nextSibling")},prev:function(a){return j.nth(a,2,"previousSibling")},nextAll:function(a){return j.dir(a,"nextSibling")},prevAll:function(a){return j.dir(a,"previousSibling")},nextUntil:function(a,c,b){return j.dir(a,"nextSibling",b)},prevUntil:function(a,c,b){return j.dir(a,"previousSibling",b)},siblings:function(a){return j.sibling(a.parentNode.firstChild,a)},children:function(a){return j.sibling(a.firstChild)},
contents:function(a){return j.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:j.makeArray(a.childNodes)}},function(a,c){j.fn[a]=function(b,e){var f=j.map(this,c,b);Va.test(a)||(e=b);e&&typeof e=="string"&&(f=j.filter(e,f));f=this.length>1&&!$a[a]?j.unique(f):f;(this.length>1||Xa.test(e))&&Wa.test(a)&&(f=f.reverse());return this.pushStack(f,a,Za.call(arguments).join(","))}});j.extend({filter:function(a,c,b){b&&(a=":not("+a+")");return c.length===1?j.find.matchesSelector(c[0],a)?[c[0]]:
[]:j.find.matches(a,c)},dir:function(a,b,e){for(var f=[],a=a[b];a&&a.nodeType!==9&&(e===c||a.nodeType!==1||!j(a).is(e));)a.nodeType===1&&f.push(a),a=a[b];return f},nth:function(a,c,b){for(var c=c||1,e=0;a;a=a[b])if(a.nodeType===1&&++e===c)break;return a},sibling:function(a,c){for(var b=[];a;a=a.nextSibling)a.nodeType===1&&a!==c&&b.push(a);return b}});var xa="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
ab=/ jQuery\d+="(?:\d+|null)"/g,sa=/^\s+/,Aa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Ba=/<([\w:]+)/,bb=/<tbody/i,cb=/<|&#?\w+;/,db=/<(?:script|style)/i,eb=/<(?:script|object|embed|option|style)/i,Ca=RegExp("<(?:"+xa+")","i"),Da=/checked\s*(?:[^=]|=\s*.checked.)/i,fb=/\/(java|ecma)script/i,Sa=/^\s*<!(?:\[CDATA\[|\-\-)/,X={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>",
"</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},Ea=A(r);X.optgroup=X.option;X.tbody=X.tfoot=X.colgroup=X.caption=X.thead;X.th=X.td;j.support.htmlSerialize||(X._default=[1,"div<div>","</div>"]);j.fn.extend({text:function(a){return j.isFunction(a)?this.each(function(c){var b=j(this);b.text(a.call(this,c,b.text()))}):typeof a!="object"&&a!==c?this.empty().append((this[0]&&
this[0].ownerDocument||r).createTextNode(a)):j.text(this)},wrapAll:function(a){if(j.isFunction(a))return this.each(function(c){j(this).wrapAll(a.call(this,c))});if(this[0]){var c=j(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){for(var a=this;a.firstChild&&a.firstChild.nodeType===1;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return j.isFunction(a)?this.each(function(c){j(this).wrapInner(a.call(this,c))}):this.each(function(){var c=
j(this),b=c.contents();b.length?b.wrapAll(a):c.append(a)})},wrap:function(a){var c=j.isFunction(a);return this.each(function(b){j(this).wrapAll(c?a.call(this,b):a)})},unwrap:function(){return this.parent().each(function(){j.nodeName(this,"body")||j(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=j.clean(arguments);a.push.apply(a,this.toArray());return 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);a.push.apply(a,
j.clean(arguments));return a}},remove:function(a,c){for(var b=0,e;(e=this[b])!=null;b++)if(!a||j.filter(a,[e]).length)!c&&e.nodeType===1&&(j.cleanData(e.getElementsByTagName("*")),j.cleanData([e])),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var a=0,c;(c=this[a])!=null;a++)for(c.nodeType===1&&j.cleanData(c.getElementsByTagName("*"));c.firstChild;)c.removeChild(c.firstChild);return this},clone:function(a,c){a=a==null?!1:a;c=c==null?a:c;return this.map(function(){return j.clone(this,
a,c)})},html:function(a){if(a===c)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ab,""):null;if(typeof a=="string"&&!db.test(a)&&(j.support.leadingWhitespace||!sa.test(a))&&!X[(Ba.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Aa,"<$1></$2>");try{for(var b=0,e=this.length;b<e;b++)this[b].nodeType===1&&(j.cleanData(this[b].getElementsByTagName("*")),this[b].innerHTML=a)}catch(f){this.empty().append(a)}}else j.isFunction(a)?this.each(function(c){var b=j(this);b.html(a.call(this,c,
b.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(j.isFunction(a))return this.each(function(c){var b=j(this),e=b.html();b.replaceWith(a.call(this,c,e))});typeof a!="string"&&(a=j(a).detach());return this.each(function(){var c=this.nextSibling,b=this.parentNode;j(this).remove();c?j(c).before(a):j(b).append(a)})}return this.length?this.pushStack(j(j.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,
b,e){var f,g,d,h=a[0],k=[];if(!j.support.checkClone&&arguments.length===3&&typeof h=="string"&&Da.test(h))return this.each(function(){j(this).domManip(a,b,e,!0)});if(j.isFunction(h))return this.each(function(f){var g=j(this);a[0]=h.call(this,f,b?g.html():c);g.domManip(a,b,e)});if(this[0]){d=h&&h.parentNode;j.support.parentNode&&d&&d.nodeType===11&&d.childNodes.length===this.length?f={fragment:d}:f=j.buildFragment(a,this,k);d=f.fragment;d.childNodes.length===1?g=d=d.firstChild:g=d.firstChild;if(g){b=
b&&j.nodeName(g,"tr");g=0;for(var l=this.length,m=l-1;g<l;g++)e.call(b?j.nodeName(this[g],"table")?this[g].getElementsByTagName("tbody")[0]||this[g].appendChild(this[g].ownerDocument.createElement("tbody")):this[g]:this[g],f.cacheable||l>1&&g<m?j.clone(d,!0,!0):d)}k.length&&j.each(k,q)}return this}});j.buildFragment=function(a,c,b){var e,f,g,d,h=a[0];c&&c[0]&&(d=c[0].ownerDocument||c[0]);d.createDocumentFragment||(d=r);a.length===1&&typeof h=="string"&&h.length<512&&d===r&&h.charAt(0)==="<"&&!eb.test(h)&&
(j.support.checkClone||!Da.test(h))&&(j.support.html5Clone||!Ca.test(h))&&(f=!0,g=j.fragments[h],g&&g!==1&&(e=g));e||(e=d.createDocumentFragment(),j.clean(a,d,e,b));f&&(j.fragments[h]=g?e:1);return{fragment:e,cacheable:f}};j.fragments={};j.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,c){j.fn[a]=function(b){var e=[],b=j(b),f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&b.length===1)return b[c](this[0]),
this;for(var f=0,g=b.length;f<g;f++){var d=(f>0?this.clone(!0):this).get();j(b[f])[c](d);e=e.concat(d)}return this.pushStack(e,a,b.selector)}});j.extend({clone:function(a,c,b){var e,f,g;j.support.html5Clone||!Ca.test("<"+a.nodeName)?e=a.cloneNode(!0):(e=r.createElement("div"),Ea.appendChild(e),e.innerHTML=a.outerHTML,e=e.firstChild);var d=e;if((!j.support.noCloneEvent||!j.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!j.isXMLDoc(a)){u(a,d);e=v(a);f=v(d);for(g=0;e[g];++g)f[g]&&u(e[g],
f[g])}if(c&&(s(a,d),b)){e=v(a);f=v(d);for(g=0;e[g];++g)s(e[g],f[g])}return d},clean:function(a,c,b,e){c=c||r;typeof c.createElement=="undefined"&&(c=c.ownerDocument||c[0]&&c[0].ownerDocument||r);for(var f=[],g,d=0,h;(h=a[d])!=null;d++)if(typeof h=="number"&&(h+=""),h){if(typeof h=="string")if(cb.test(h)){h=h.replace(Aa,"<$1></$2>");g=(Ba.exec(h)||["",""])[1].toLowerCase();var k=X[g]||X._default,l=k[0],m=c.createElement("div");c===r?Ea.appendChild(m):A(c).appendChild(m);for(m.innerHTML=k[1]+h+k[2];l--;)m=
m.lastChild;if(!j.support.tbody){l=bb.test(h);k=g==="table"&&!l?m.firstChild&&m.firstChild.childNodes:k[1]==="<table>"&&!l?m.childNodes:[];for(g=k.length-1;g>=0;--g)j.nodeName(k[g],"tbody")&&!k[g].childNodes.length&&k[g].parentNode.removeChild(k[g])}!j.support.leadingWhitespace&&sa.test(h)&&m.insertBefore(c.createTextNode(sa.exec(h)[0]),m.firstChild);h=m.childNodes}else h=c.createTextNode(h);var n;if(!j.support.appendChecked)if(h[0]&&typeof(n=h.length)=="number")for(g=0;g<n;g++)t(h[g]);else t(h);
h.nodeType?f.push(h):f=j.merge(f,h)}if(b){a=function(a){return!a.type||fb.test(a.type)};for(d=0;f[d];d++)e&&j.nodeName(f[d],"script")&&(!f[d].type||f[d].type.toLowerCase()==="text/javascript")?e.push(f[d].parentNode?f[d].parentNode.removeChild(f[d]):f[d]):(f[d].nodeType===1&&(c=j.grep(f[d].getElementsByTagName("script"),a),f.splice.apply(f,[d+1,0].concat(c))),b.appendChild(f[d]))}return f},cleanData:function(a){for(var c,b,e=j.cache,f=j.event.special,g=j.support.deleteExpando,d=0,h;(h=a[d])!=null;d++)if(!h.nodeName||
!j.noData[h.nodeName.toLowerCase()])if(b=h[j.expando]){if((c=e[b])&&c.events){for(var k in c.events)f[k]?j.event.remove(h,k):j.removeEvent(h,k,c.handle);c.handle&&(c.handle.elem=null)}g?delete h[j.expando]:h.removeAttribute&&h.removeAttribute(j.expando);delete e[b]}}});var ta=/alpha\([^)]*\)/i,gb=/opacity=([^)]*)/,hb=/([A-Z]|^ms)/g,Fa=/^-?\d+(?:px)?$/i,ib=/^-?\d/,jb=/^([\-+])=([\-+.\de]+)/,kb={position:"absolute",visibility:"hidden",display:"block"},Qa=["Left","Right"],Ra=["Top","Bottom"],ga,Ga,Ha;
j.fn.css=function(a,b){return arguments.length===2&&b===c?this:j.access(this,a,b,!0,function(a,b,e){return e!==c?j.style(a,b,e):j.css(a,b)})};j.extend({cssHooks:{opacity:{get:function(a,c){if(c){var b=ga(a,"opacity","opacity");return b===""?"1":b}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":j.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,e,f){if(a&&a.nodeType!==3&&a.nodeType!==8&&
a.style){var g,d=j.camelCase(b),h=a.style,k=j.cssHooks[d],b=j.cssProps[d]||d;if(e===c)return k&&"get"in k&&(g=k.get(a,!1,f))!==c?g:h[b];f=typeof e;f==="string"&&(g=jb.exec(e))&&(e=+(g[1]+1)*+g[2]+parseFloat(j.css(a,b)),f="number");if(!(e==null||f==="number"&&isNaN(e)))if(f==="number"&&!j.cssNumber[d]&&(e+="px"),!k||!("set"in k)||(e=k.set(a,e))!==c)try{h[b]=e}catch(l){}}},css:function(a,b,e){var f,g,b=j.camelCase(b);g=j.cssHooks[b];b=j.cssProps[b]||b;b==="cssFloat"&&(b="float");if(g&&"get"in g&&(f=
g.get(a,!0,e))!==c)return f;if(ga)return ga(a,b)},swap:function(a,c,b){var e={},f;for(f in c)e[f]=a.style[f],a.style[f]=c[f];b.call(a);for(f in c)a.style[f]=e[f]}});j.curCSS=j.css;j.each(["height","width"],function(a,c){j.cssHooks[c]={get:function(a,b,e){var f;if(b){if(a.offsetWidth!==0)return p(a,c,e);j.swap(a,kb,function(){f=p(a,c,e)});return f}},set:function(a,c){if(!Fa.test(c))return c;c=parseFloat(c);if(c>=0)return c+"px"}}});j.support.opacity||(j.cssHooks.opacity={get:function(a,c){return gb.test((c&&
a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":c?"1":""},set:function(a,c){var b=a.style,e=a.currentStyle,f=j.isNumeric(c)?"alpha(opacity="+c*100+")":"",g=e&&e.filter||b.filter||"";b.zoom=1;if(c>=1&&j.trim(g.replace(ta,""))===""&&(b.removeAttribute("filter"),e&&!e.filter))return;b.filter=ta.test(g)?g.replace(ta,f):g+" "+f}});j(function(){j.support.reliableMarginRight||(j.cssHooks.marginRight={get:function(a,c){var b;j.swap(a,{display:"inline-block"},function(){c?
b=ga(a,"margin-right","marginRight"):b=a.style.marginRight});return b}})});r.defaultView&&r.defaultView.getComputedStyle&&(Ga=function(a,c){var b,e,f,c=c.replace(hb,"-$1").toLowerCase();(e=a.ownerDocument.defaultView)&&(f=e.getComputedStyle(a,null))&&(b=f.getPropertyValue(c),b===""&&!j.contains(a.ownerDocument.documentElement,a)&&(b=j.style(a,c)));return b});r.documentElement.currentStyle&&(Ha=function(a,c){var b,e,f,g=a.currentStyle&&a.currentStyle[c],d=a.style;g===null&&d&&(f=d[c])&&(g=f);!Fa.test(g)&&
ib.test(g)&&(b=d.left,e=a.runtimeStyle&&a.runtimeStyle.left,e&&(a.runtimeStyle.left=a.currentStyle.left),d.left=c==="fontSize"?"1em":g||0,g=d.pixelLeft+"px",d.left=b,e&&(a.runtimeStyle.left=e));return g===""?"auto":g});ga=Ga||Ha;j.expr&&j.expr.filters&&(j.expr.filters.hidden=function(a){var c=a.offsetHeight;return a.offsetWidth===0&&c===0||!j.support.reliableHiddenOffsets&&(a.style&&a.style.display||j.css(a,"display"))==="none"},j.expr.filters.visible=function(a){return!j.expr.filters.hidden(a)});
var lb=/%20/g,Pa=/\[\]$/,Ia=/\r?\n/g,mb=/#.*$/,nb=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,ob=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,pb=/^(?:GET|HEAD)$/,qb=/^\/\//,Ja=/\?/,rb=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,sb=/^(?:select|textarea)/i,wa=/\s+/,tb=/([?&])_=[^&]*/,Ka=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,La=j.fn.load,ra={},Ma={},da,ea,Na=["*/"]+["*"];try{da=C.href}catch(zb){da=r.createElement("a"),da.href=
"",da=da.href}ea=Ka.exec(da.toLowerCase())||[];j.fn.extend({load:function(a,b,e){if(typeof a!="string"&&La)return La.apply(this,arguments);if(!this.length)return this;var f=a.indexOf(" ");if(f>=0)var g=a.slice(f,a.length),a=a.slice(0,f);f="GET";b&&(j.isFunction(b)?(e=b,b=c):typeof b=="object"&&(b=j.param(b,j.ajaxSettings.traditional),f="POST"));var d=this;j.ajax({url:a,type:f,dataType:"html",data:b,complete:function(a,c,b){b=a.responseText;a.isResolved()&&(a.done(function(a){b=a}),d.html(g?j("<div>").append(b.replace(rb,
"")).find(g):b));e&&d.each(e,[b,c,a])}});return this},serialize:function(){return j.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?j.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||sb.test(this.nodeName)||ob.test(this.type))}).map(function(a,c){var b=j(this).val();return b==null?null:j.isArray(b)?j.map(b,function(a){return{name:c.name,value:a.replace(Ia,"\r\n")}}):{name:c.name,value:b.replace(Ia,
"\r\n")}}).get()}});j.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,c){j.fn[c]=function(a){return this.on(c,a)}});j.each(["get","post"],function(a,b){j[b]=function(a,e,f,g){j.isFunction(e)&&(g=g||f,f=e,e=c);return j.ajax({type:b,url:a,data:e,success:f,dataType:g})}});j.extend({getScript:function(a,b){return j.get(a,c,b,"script")},getJSON:function(a,c,b){return j.get(a,c,b,"json")},ajaxSetup:function(a,c){c?l(a,j.ajaxSettings):(c=a,a=j.ajaxSettings);l(a,
c);return a},ajaxSettings:{url:da,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(ea[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","*":Na},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":j.parseJSON,
"text xml":j.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:o(ra),ajaxTransport:o(Ma),ajax:function(a,b){function e(a,b,m,o){if(E!==2){E=2;s&&clearTimeout(s);t=c;q=o||"";z.readyState=a>0?4:0;var r,p,v,o=b;if(m){var F=f,u=z,R=F.contents,L=F.dataTypes,x=F.responseFields,C,y,S,H;for(y in x)y in m&&(u[x[y]]=m[y]);for(;L[0]==="*";)L.shift(),C===c&&(C=F.mimeType||u.getResponseHeader("content-type"));if(C)for(y in R)if(R[y]&&R[y].test(C)){L.unshift(y);break}if(L[0]in m)S=L[0];else{for(y in m){if(!L[0]||
F.converters[y+" "+L[0]]){S=y;break}H||(H=y)}S=S||H}S?(S!==L[0]&&L.unshift(S),m=m[S]):m=void 0}else m=c;if(a>=200&&a<300||a===304){if(f.ifModified){if(C=z.getResponseHeader("Last-Modified"))j.lastModified[n]=C;if(C=z.getResponseHeader("Etag"))j.etag[n]=C}if(a===304)o="notmodified",r=!0;else try{C=f;C.dataFilter&&(m=C.dataFilter(m,C.dataType));var J=C.dataTypes;y={};var B,G,W=J.length,ia,P=J[0],M,A,O,Z,ba;for(B=1;B<W;B++){if(B===1)for(G in C.converters)typeof G=="string"&&(y[G.toLowerCase()]=C.converters[G]);
M=P;P=J[B];if(P==="*")P=M;else if(M!=="*"&&M!==P){A=M+" "+P;O=y[A]||y["* "+P];if(!O)for(Z in ba=c,y)if(ia=Z.split(" "),ia[0]===M||ia[0]==="*")if(ba=y[ia[1]+" "+P]){Z=y[Z];Z===!0?O=ba:ba===!0&&(O=Z);break}!O&&!ba&&j.error("No conversion from "+A.replace(" "," to "));O!==!0&&(m=O?O(m):ba(Z(m)))}}p=m;o="success";r=!0}catch(D){o="parsererror",v=D}}else if(v=o,!o||a)o="error",a<0&&(a=0);z.status=a;z.statusText=""+(b||o);r?h.resolveWith(g,[p,o,z]):h.rejectWith(g,[z,o,v]);z.statusCode(l);l=c;w&&d.trigger("ajax"+
(r?"Success":"Error"),[z,f,r?p:v]);k.fireWith(g,[z,o]);w&&(d.trigger("ajaxComplete",[z,f]),--j.active||j.event.trigger("ajaxStop"))}}typeof a=="object"&&(b=a,a=c);var b=b||{},f=j.ajaxSetup({},b),g=f.context||f,d=g!==f&&(g.nodeType||g instanceof j)?j(g):j.event,h=j.Deferred(),k=j.Callbacks("once memory"),l=f.statusCode||{},n,o={},r={},q,p,t,s,v,E=0,w,u,z={readyState:0,setRequestHeader:function(a,c){if(!E){var b=a.toLowerCase(),a=r[b]=r[b]||a;o[a]=c}return this},getAllResponseHeaders:function(){return E===
2?q:null},getResponseHeader:function(a){var b;if(E===2){if(!p)for(p={};b=nb.exec(q);)p[b[1].toLowerCase()]=b[2];b=p[a.toLowerCase()]}return b===c?null:b},overrideMimeType:function(a){E||(f.mimeType=a);return this},abort:function(a){a=a||"abort";t&&t.abort(a);e(0,a);return this}};h.promise(z);z.success=z.done;z.error=z.fail;z.complete=k.add;z.statusCode=function(a){if(a){var c;if(E<2)for(c in a)l[c]=[l[c],a[c]];else c=a[z.status],z.then(c,c)}return this};f.url=((a||f.url)+"").replace(mb,"").replace(qb,
ea[1]+"//");f.dataTypes=j.trim(f.dataType||"*").toLowerCase().split(wa);f.crossDomain==null&&(v=Ka.exec(f.url.toLowerCase()),f.crossDomain=!(!v||v[1]==ea[1]&&v[2]==ea[2]&&(v[3]||(v[1]==="http:"?80:443))==(ea[3]||(ea[1]==="http:"?80:443))));f.data&&f.processData&&typeof f.data!="string"&&(f.data=j.param(f.data,f.traditional));m(ra,f,b,z);if(E===2)return!1;w=f.global;f.type=f.type.toUpperCase();f.hasContent=!pb.test(f.type);w&&j.active++===0&&j.event.trigger("ajaxStart");if(!f.hasContent&&(f.data&&
(f.url+=(Ja.test(f.url)?"&":"?")+f.data,delete f.data),n=f.url,f.cache===!1)){v=j.now();var R=f.url.replace(tb,"$1_="+v);f.url=R+(R===f.url?(Ja.test(f.url)?"&":"?")+"_="+v:"")}(f.data&&f.hasContent&&f.contentType!==!1||b.contentType)&&z.setRequestHeader("Content-Type",f.contentType);f.ifModified&&(n=n||f.url,j.lastModified[n]&&z.setRequestHeader("If-Modified-Since",j.lastModified[n]),j.etag[n]&&z.setRequestHeader("If-None-Match",j.etag[n]));z.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?
f.accepts[f.dataTypes[0]]+(f.dataTypes[0]!=="*"?", "+Na+"; q=0.01":""):f.accepts["*"]);for(u in f.headers)z.setRequestHeader(u,f.headers[u]);if(f.beforeSend&&(f.beforeSend.call(g,z,f)===!1||E===2))return z.abort(),!1;for(u in{success:1,error:1,complete:1})z[u](f[u]);if(t=m(Ma,f,b,z)){z.readyState=1;w&&d.trigger("ajaxSend",[z,f]);f.async&&f.timeout>0&&(s=setTimeout(function(){z.abort("timeout")},f.timeout));try{E=1,t.send(o,e)}catch(x){if(E<2)e(-1,x);else throw x;}}else e(-1,"No Transport");return z},
param:function(a,b){var e=[],f=function(a,c){c=j.isFunction(c)?c():c;e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(c)};b===c&&(b=j.ajaxSettings.traditional);if(j.isArray(a)||a.jquery&&!j.isPlainObject(a))j.each(a,function(){f(this.name,this.value)});else for(var g in a)k(g,a[g],b,f);return e.join("&").replace(lb,"+")}});j.extend({active:0,lastModified:{},etag:{}});var ub=j.now(),oa=/(\=)\?(&|$)|\?\?/i;j.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return j.expando+"_"+ub++}});j.ajaxPrefilter("json jsonp",
function(c,b,e){b=c.contentType==="application/x-www-form-urlencoded"&&typeof c.data=="string";if(c.dataTypes[0]==="jsonp"||c.jsonp!==!1&&(oa.test(c.url)||b&&oa.test(c.data))){var f,g=c.jsonpCallback=j.isFunction(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,d=a[g],h=c.url,k=c.data,l="$1"+g+"$2";c.jsonp!==!1&&(h=h.replace(oa,l),c.url===h&&(b&&(k=k.replace(oa,l)),c.data===k&&(h+=(/\?/.test(h)?"&":"?")+c.jsonp+"="+g)));c.url=h;c.data=k;a[g]=function(a){f=[a]};e.always(function(){a[g]=d;f&&j.isFunction(d)&&
a[g](f[0])});c.converters["script json"]=function(){f||j.error(g+" was not called");return f[0]};c.dataTypes[0]="json";return"script"}});j.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){j.globalEval(a);return a}}});j.ajaxPrefilter("script",function(a){a.cache===c&&(a.cache=!1);a.crossDomain&&(a.type="GET",a.global=!1)});j.ajaxTransport("script",function(a){if(a.crossDomain){var b,
e=r.head||r.getElementsByTagName("head")[0]||r.documentElement;return{send:function(f,g){b=r.createElement("script");b.async="async";a.scriptCharset&&(b.charset=a.scriptCharset);b.src=a.url;b.onload=b.onreadystatechange=function(a,f){if(f||!b.readyState||/loaded|complete/.test(b.readyState))b.onload=b.onreadystatechange=null,e&&b.parentNode&&e.removeChild(b),b=c,f||g(200,"success")};e.insertBefore(b,e.firstChild)},abort:function(){b&&b.onload(0,1)}}}});var ua=a.ActiveXObject?function(){for(var a in ja)ja[a](0,
1)}:!1,vb=0,ja;j.ajaxSettings.xhr=a.ActiveXObject?function(){var c;if(!(c=!this.isLocal&&g()))a:{try{c=new a.ActiveXObject("Microsoft.XMLHTTP");break a}catch(b){}c=void 0}return c}:g;(function(a){j.extend(j.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})})(j.ajaxSettings.xhr());j.support.ajax&&j.ajaxTransport(function(b){if(!b.crossDomain||j.support.cors){var e;return{send:function(f,g){var d=b.xhr(),h,k;b.username?d.open(b.type,b.url,b.async,b.username,b.password):d.open(b.type,b.url,b.async);
if(b.xhrFields)for(k in b.xhrFields)d[k]=b.xhrFields[k];b.mimeType&&d.overrideMimeType&&d.overrideMimeType(b.mimeType);!b.crossDomain&&!f["X-Requested-With"]&&(f["X-Requested-With"]="XMLHttpRequest");try{for(k in f)d.setRequestHeader(k,f[k])}catch(l){}d.send(b.hasContent&&b.data||null);e=function(a,f){var k,l,m,n,o;try{if(e&&(f||d.readyState===4))if(e=c,h&&(d.onreadystatechange=j.noop,ua&&delete ja[h]),f)d.readyState!==4&&d.abort();else{k=d.status;m=d.getAllResponseHeaders();n={};(o=d.responseXML)&&
o.documentElement&&(n.xml=o);n.text=d.responseText;try{l=d.statusText}catch(r){l=""}!k&&b.isLocal&&!b.crossDomain?k=n.text?200:404:k===1223&&(k=204)}}catch(p){f||g(-1,p)}n&&g(k,l,n,m)};!b.async||d.readyState===4?e():(h=++vb,ua&&(ja||(ja={},j(a).unload(ua)),ja[h]=e),d.onreadystatechange=e)},abort:function(){e&&e(0,1)}}}});var qa={},ca,fa,wb=/^(?:toggle|show|hide)$/,xb=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,pa,va=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft",
"marginRight","paddingLeft","paddingRight"],["opacity"]],ma;j.fn.extend({show:function(a,c,e){var g;if(a||a===0)return this.animate(f("show",3),a,c,e);c=0;for(e=this.length;c<e;c++)a=this[c],a.style&&(g=a.style.display,!j._data(a,"olddisplay")&&g==="none"&&(g=a.style.display=""),g===""&&j.css(a,"display")==="none"&&j._data(a,"olddisplay",b(a.nodeName)));for(c=0;c<e;c++)if(a=this[c],a.style&&(g=a.style.display,g===""||g==="none"))a.style.display=j._data(a,"olddisplay")||"";return this},hide:function(a,
c,b){if(a||a===0)return this.animate(f("hide",3),a,c,b);for(var e,c=0,b=this.length;c<b;c++)a=this[c],a.style&&(e=j.css(a,"display"),e!=="none"&&!j._data(a,"olddisplay")&&j._data(a,"olddisplay",e));for(c=0;c<b;c++)this[c].style&&(this[c].style.display="none");return this},_toggle:j.fn.toggle,toggle:function(a,c,b){var e=typeof a=="boolean";j.isFunction(a)&&j.isFunction(c)?this._toggle.apply(this,arguments):a==null||e?this.each(function(){var c=e?a:j(this).is(":hidden");j(this)[c?"show":"hide"]()}):
this.animate(f("toggle",3),a,c,b);return this},fadeTo:function(a,c,b,e){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:c},a,b,e)},animate:function(a,c,e,f){function g(){var F;d.queue===!1&&j._mark(this);var c=j.extend({},d),e=this.nodeType===1,f=e&&j(this).is(":hidden"),h,k,l,m,n,o,r,p;c.animatedProperties={};for(l in a){h=j.camelCase(l);l!==h&&(a[h]=a[l],delete a[l]);k=a[h];j.isArray(k)?(c.animatedProperties[h]=k[1],F=a[h]=k[0],k=F):c.animatedProperties[h]=c.specialEasing&&
c.specialEasing[h]||c.easing||"swing";if(k==="hide"&&f||k==="show"&&!f)return c.complete.call(this);e&&(h==="height"||h==="width")&&(c.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],j.css(this,"display")==="inline"&&j.css(this,"float")==="none"&&(!j.support.inlineBlockNeedsLayout||b(this.nodeName)==="inline"?this.style.display="inline-block":this.style.zoom=1))}c.overflow!=null&&(this.style.overflow="hidden");for(l in a)e=new j.fx(this,c,l),k=a[l],wb.test(k)?(p=j._data(this,
"toggle"+l)||(k==="toggle"?f?"show":"hide":0),p?(j._data(this,"toggle"+l,p==="show"?"hide":"show"),e[p]()):e[k]()):(m=xb.exec(k),n=e.cur(),m?(o=parseFloat(m[2]),r=m[3]||(j.cssNumber[l]?"":"px"),r!=="px"&&(j.style(this,l,(o||1)+r),n*=(o||1)/e.cur(),j.style(this,l,n+r)),m[1]&&(o=(m[1]==="-="?-1:1)*o+n),e.custom(n,o,r)):e.custom(n,k,""));return!0}var d=j.speed(c,e,f);if(j.isEmptyObject(a))return this.each(d.complete,[!1]);a=j.extend({},a);return d.queue===!1?this.each(g):this.queue(d.queue,g)},stop:function(a,
b,e){typeof a!="string"&&(e=b,b=a,a=c);b&&a!==!1&&this.queue(a||"fx",[]);return this.each(function(){function c(a,b,f){b=b[f];j.removeData(a,f,!0);b.stop(e)}var b,f=!1,g=j.timers,d=j._data(this);e||j._unmark(!0,this);if(a==null)for(b in d)d[b]&&d[b].stop&&b.indexOf(".run")===b.length-4&&c(this,d,b);else d[b=a+".run"]&&d[b].stop&&c(this,d,b);for(b=g.length;b--;)g[b].elem===this&&(a==null||g[b].queue===a)&&(e?g[b](!0):g[b].saveState(),f=!0,g.splice(b,1));(!e||!f)&&j.dequeue(this,a)})}});j.each({slideDown:f("show",
1),slideUp:f("hide",1),slideToggle:f("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,c){j.fn[a]=function(a,b,e){return this.animate(c,a,b,e)}});j.extend({speed:function(a,c,b){var e=a&&typeof a=="object"?j.extend({},a):{complete:b||!b&&c||j.isFunction(a)&&a,duration:a,easing:b&&c||c&&!j.isFunction(c)&&c};e.duration=j.fx.off?0:typeof e.duration=="number"?e.duration:e.duration in j.fx.speeds?j.fx.speeds[e.duration]:j.fx.speeds._default;if(e.queue==
null||e.queue===!0)e.queue="fx";e.old=e.complete;e.complete=function(a){j.isFunction(e.old)&&e.old.call(this);e.queue?j.dequeue(this,e.queue):a!==!1&&j._unmark(this)};return e},easing:{linear:function(a,c,b,e){return b+e*a},swing:function(a,c,b,e){return(-Math.cos(a*Math.PI)/2+0.5)*e+b}},timers:[],fx:function(a,c,b){this.options=c;this.elem=a;this.prop=b;c.orig=c.orig||{}}});j.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(j.fx.step[this.prop]||
j.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,c=j.css(this.elem,this.prop);return isNaN(a=parseFloat(c))?!c||c==="auto"?0:c:a},custom:function(a,b,f){function g(a){return d.step(a)}var d=this,h=j.fx;this.startTime=ma||e();this.end=b;this.now=this.start=a;this.pos=this.state=0;this.unit=f||this.unit||(j.cssNumber[this.prop]?"":"px");g.queue=this.options.queue;g.elem=this.elem;g.saveState=
function(){d.options.hide&&j._data(d.elem,"fxshow"+d.prop)===c&&j._data(d.elem,"fxshow"+d.prop,d.start)};g()&&j.timers.push(g)&&!pa&&(pa=setInterval(h.tick,h.interval))},show:function(){var a=j._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=a||j.style(this.elem,this.prop);this.options.show=!0;a!==c?this.custom(this.cur(),a):this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());j(this.elem).show()},hide:function(){this.options.orig[this.prop]=j._data(this.elem,"fxshow"+
this.prop)||j.style(this.elem,this.prop);this.options.hide=!0;this.custom(this.cur(),0)},step:function(a){var c,b,f=ma||e(),g=!0,d=this.elem,h=this.options;if(a||f>=h.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();h.animatedProperties[this.prop]=!0;for(c in h.animatedProperties)h.animatedProperties[c]!==!0&&(g=!1);if(g){h.overflow!=null&&!j.support.shrinkWrapBlocks&&j.each(["","X","Y"],function(a,c){d.style["overflow"+c]=h.overflow[a]});h.hide&&j(d).hide();if(h.hide||
h.show)for(c in h.animatedProperties)j.style(d,c,h.orig[c]),j.removeData(d,"fxshow"+c,!0),j.removeData(d,"toggle"+c,!0);(a=h.complete)&&(h.complete=!1,a.call(d))}return!1}h.duration==Infinity?this.now=f:(b=f-this.startTime,this.state=b/h.duration,this.pos=j.easing[h.animatedProperties[this.prop]](this.state,b,0,1,h.duration),this.now=this.start+(this.end-this.start)*this.pos);this.update();return!0}};j.extend(j.fx,{tick:function(){for(var a,c=j.timers,b=0;b<c.length;b++)a=c[b],!a()&&c[b]===a&&c.splice(b--,
1);c.length||j.fx.stop()},interval:13,stop:function(){clearInterval(pa);pa=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){j.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=a.now+a.unit:a.elem[a.prop]=a.now}}});j.each(["width","height"],function(a,c){j.fx.step[c]=function(a){j.style(a.elem,c,Math.max(0,a.now)+a.unit)}});j.expr&&j.expr.filters&&(j.expr.filters.animated=function(a){return j.grep(j.timers,function(c){return a===
c.elem}).length});var yb=/^t(?:able|d|h)$/i,Oa=/^(?:body|html)$/i;"getBoundingClientRect"in r.documentElement?j.fn.offset=function(a){var c=this[0],b;if(a)return this.each(function(c){j.offset.setOffset(this,a,c)});if(!c||!c.ownerDocument)return null;if(c===c.ownerDocument.body)return j.offset.bodyOffset(c);try{b=c.getBoundingClientRect()}catch(e){}var f=c.ownerDocument,g=f.documentElement;if(!b||!j.contains(g,c))return b?{top:b.top,left:b.left}:{top:0,left:0};c=f.body;f=d(f);return{top:b.top+(f.pageYOffset||
j.support.boxModel&&g.scrollTop||c.scrollTop)-(g.clientTop||c.clientTop||0),left:b.left+(f.pageXOffset||j.support.boxModel&&g.scrollLeft||c.scrollLeft)-(g.clientLeft||c.clientLeft||0)}}:j.fn.offset=function(a){var c=this[0];if(a)return this.each(function(c){j.offset.setOffset(this,a,c)});if(!c||!c.ownerDocument)return null;if(c===c.ownerDocument.body)return j.offset.bodyOffset(c);var b,e=c.offsetParent,f=c.ownerDocument,g=f.documentElement,d=f.body;b=(f=f.defaultView)?f.getComputedStyle(c,null):c.currentStyle;
for(var h=c.offsetTop,k=c.offsetLeft;(c=c.parentNode)&&c!==d&&c!==g;){if(j.support.fixedPosition&&b.position==="fixed")break;b=f?f.getComputedStyle(c,null):c.currentStyle;h-=c.scrollTop;k-=c.scrollLeft;c===e&&(h+=c.offsetTop,k+=c.offsetLeft,j.support.doesNotAddBorder&&(!j.support.doesAddBorderForTableAndCells||!yb.test(c.nodeName))&&(h+=parseFloat(b.borderTopWidth)||0,k+=parseFloat(b.borderLeftWidth)||0),e=c.offsetParent);j.support.subtractsBorderForOverflowNotVisible&&b.overflow!=="visible"&&(h+=
parseFloat(b.borderTopWidth)||0,k+=parseFloat(b.borderLeftWidth)||0)}if(b.position==="relative"||b.position==="static")h+=d.offsetTop,k+=d.offsetLeft;j.support.fixedPosition&&b.position==="fixed"&&(h+=Math.max(g.scrollTop,d.scrollTop),k+=Math.max(g.scrollLeft,d.scrollLeft));return{top:h,left:k}};j.offset={bodyOffset:function(a){var c=a.offsetTop,b=a.offsetLeft;j.support.doesNotIncludeMarginInBodyOffset&&(c+=parseFloat(j.css(a,"marginTop"))||0,b+=parseFloat(j.css(a,"marginLeft"))||0);return{top:c,
left:b}},setOffset:function(a,c,b){var e=j.css(a,"position");e==="static"&&(a.style.position="relative");var f=j(a),g=f.offset(),d=j.css(a,"top"),h=j.css(a,"left"),k={},l={},m,n;(e==="absolute"||e==="fixed")&&j.inArray("auto",[d,h])>-1?(l=f.position(),m=l.top,n=l.left):(m=parseFloat(d)||0,n=parseFloat(h)||0);j.isFunction(c)&&(c=c.call(a,b,g));c.top!=null&&(k.top=c.top-g.top+m);c.left!=null&&(k.left=c.left-g.left+n);"using"in c?c.using.call(a,k):f.css(k)}};j.fn.extend({position:function(){if(!this[0])return null;
var a=this[0],c=this.offsetParent(),b=this.offset(),e=Oa.test(c[0].nodeName)?{top:0,left:0}:c.offset();b.top-=parseFloat(j.css(a,"marginTop"))||0;b.left-=parseFloat(j.css(a,"marginLeft"))||0;e.top+=parseFloat(j.css(c[0],"borderTopWidth"))||0;e.left+=parseFloat(j.css(c[0],"borderLeftWidth"))||0;return{top:b.top-e.top,left:b.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||r.body;a&&!Oa.test(a.nodeName)&&j.css(a,"position")==="static";)a=a.offsetParent;return a})}});
j.each(["Left","Top"],function(a,b){var e="scroll"+b;j.fn[e]=function(b){var f,g;return b===c?(f=this[0],!f?null:(g=d(f))?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:j.support.boxModel&&g.document.documentElement[e]||g.document.body[e]:f[e]):this.each(function(){(g=d(this))?g.scrollTo(a?j(g).scrollLeft():b,a?b:j(g).scrollTop()):this[e]=b})}});j.each(["Height","Width"],function(a,b){var e=b.toLowerCase();j.fn["inner"+b]=function(){var a=this[0];return a?a.style?parseFloat(j.css(a,e,"padding")):
this[e]():null};j.fn["outer"+b]=function(a){var c=this[0];return c?c.style?parseFloat(j.css(c,e,a?"margin":"border")):this[e]():null};j.fn[e]=function(a){var f=this[0];if(!f)return a==null?null:this;if(j.isFunction(a))return this.each(function(c){var b=j(this);b[e](a.call(this,c,b[e]()))});if(j.isWindow(f)){var g=f.document.documentElement["client"+b],d=f.document.body;return f.document.compatMode==="CSS1Compat"&&g||d&&d["client"+b]||g}return f.nodeType===9?Math.max(f.documentElement["client"+b],
f.body["scroll"+b],f.documentElement["scroll"+b],f.body["offset"+b],f.documentElement["offset"+b]):a===c?(f=j.css(f,e),g=parseFloat(f),j.isNumeric(g)?g:f):this.css(e,typeof a=="string"?a:a+"px")}});a.jQuery=a.$=j;typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return j})})(window);
var swfobject=function(){function a(){if(!M){try{var a=B.getElementsByTagName("body")[0].appendChild(B.createElement("span"));a.parentNode.removeChild(a)}catch(c){return}M=!0;for(var a=E.length,b=0;b<a;b++)E[b]()}}function c(a){M?a():E[E.length]=a}function d(a){if(typeof w.addEventListener!=s)w.addEventListener("load",a,!1);else if(typeof B.addEventListener!=s)B.addEventListener("load",a,!1);else if(typeof w.attachEvent!=s)q(w,"onload",a);else if(typeof w.onload=="function"){var c=w.onload;w.onload=
function(){c();a()}}else w.onload=a}function b(){var a=B.getElementsByTagName("body")[0],c=B.createElement(A);c.setAttribute("type",y);var b=a.appendChild(c);if(b){var e=0;(function(){if(typeof b.GetVariable!=s){var g=b.GetVariable("$version");if(g)g=g.split(" ")[1].split(","),I.pv=[parseInt(g[0],10),parseInt(g[1],10),parseInt(g[2],10)]}else if(e<10){e++;setTimeout(arguments.callee,10);return}a.removeChild(c);b=null;f()})()}else f()}function f(){var a=r.length;if(a>0)for(var c=0;c<a;c++){var b=r[c].id,
f=r[c].callbackFn,d={success:!1,id:b};if(I.pv[0]>0){var j=p(b);if(j)if(t(r[c].swfVersion)&&!(I.wk&&I.wk<312)){if(v(b,!0),f)d.success=!0,d.ref=h(b),f(d)}else if(r[c].expressInstall&&e()){d={};d.data=r[c].expressInstall;d.width=j.getAttribute("width")||"0";d.height=j.getAttribute("height")||"0";if(j.getAttribute("class"))d.styleclass=j.getAttribute("class");if(j.getAttribute("align"))d.align=j.getAttribute("align");for(var l={},j=j.getElementsByTagName("param"),m=j.length,n=0;n<m;n++)j[n].getAttribute("name").toLowerCase()!=
"movie"&&(l[j[n].getAttribute("name")]=j[n].getAttribute("value"));g(d,l,b,f)}else k(j),f&&f(d)}else if(v(b,!0),f){if((b=h(b))&&typeof b.SetVariable!=s)d.success=!0,d.ref=b;f(d)}}}function h(a){var c=null;if((a=p(a))&&a.nodeName=="OBJECT")typeof a.SetVariable!=s?c=a:(a=a.getElementsByTagName(A)[0])&&(c=a);return c}function e(){return!N&&t("6.0.65")&&(I.win||I.mac)&&!(I.wk&&I.wk<312)}function g(a,c,b,e){N=!0;Q=e||null;T={success:!1,id:b};var f=p(b);if(f){f.nodeName=="OBJECT"?(j=l(f),J=null):(j=f,J=
b);a.id=x;if(typeof a.width==s||!/%$/.test(a.width)&&parseInt(a.width,10)<310)a.width="310";if(typeof a.height==s||!/%$/.test(a.height)&&parseInt(a.height,10)<137)a.height="137";B.title=B.title.slice(0,47)+" - Flash Player Installation";e=I.ie&&I.win?"ActiveX":"PlugIn";e="MMredirectURL="+w.location.toString().replace(/&/g,"%26")+"&MMplayerType="+e+"&MMdoctitle="+B.title;typeof c.flashvars!=s?c.flashvars+="&"+e:c.flashvars=e;if(I.ie&&I.win&&f.readyState!=4)e=B.createElement("div"),b+="SWFObjectNew",
e.setAttribute("id",b),f.parentNode.insertBefore(e,f),f.style.display="none",function(){f.readyState==4?f.parentNode.removeChild(f):setTimeout(arguments.callee,10)}();m(a,c,b)}}function k(a){if(I.ie&&I.win&&a.readyState!=4){var c=B.createElement("div");a.parentNode.insertBefore(c,a);c.parentNode.replaceChild(l(a),c);a.style.display="none";(function(){a.readyState==4?a.parentNode.removeChild(a):setTimeout(arguments.callee,10)})()}else a.parentNode.replaceChild(l(a),a)}function l(a){var c=B.createElement("div");
if(I.win&&I.ie)c.innerHTML=a.innerHTML;else if(a=a.getElementsByTagName(A)[0])if(a=a.childNodes)for(var b=a.length,e=0;e<b;e++)!(a[e].nodeType==1&&a[e].nodeName=="PARAM")&&a[e].nodeType!=8&&c.appendChild(a[e].cloneNode(!0));return c}function m(a,c,b){var e,f=p(b);if(I.wk&&I.wk<312)return e;if(f){if(typeof a.id==s)a.id=b;if(I.ie&&I.win){var g="",d;for(d in a)if(a[d]!=Object.prototype[d])d.toLowerCase()=="data"?c.movie=a[d]:d.toLowerCase()=="styleclass"?g+=' class="'+a[d]+'"':d.toLowerCase()!="classid"&&
(g+=" "+d+'="'+a[d]+'"');d="";for(var h in c)c[h]!=Object.prototype[h]&&(d+='<param name="'+h+'" value="'+c[h]+'" />');f.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+g+">"+d+"</object>";G[G.length]=a.id;e=p(a.id)}else{h=B.createElement(A);h.setAttribute("type",y);for(var j in a)a[j]!=Object.prototype[j]&&(j.toLowerCase()=="styleclass"?h.setAttribute("class",a[j]):j.toLowerCase()!="classid"&&h.setAttribute(j,a[j]));for(g in c)c[g]!=Object.prototype[g]&&g.toLowerCase()!=
"movie"&&(a=h,d=g,j=c[g],b=B.createElement("param"),b.setAttribute("name",d),b.setAttribute("value",j),a.appendChild(b));f.parentNode.replaceChild(h,f);e=h}}return e}function o(a){var c=p(a);if(c&&c.nodeName=="OBJECT")I.ie&&I.win?(c.style.display="none",function(){if(c.readyState==4){var b=p(a);if(b){for(var e in b)typeof b[e]=="function"&&(b[e]=null);b.parentNode.removeChild(b)}}else setTimeout(arguments.callee,10)}()):c.parentNode.removeChild(c)}function p(a){var c=null;try{c=B.getElementById(a)}catch(b){}return c}
function q(a,c,b){a.attachEvent(c,b);C[C.length]=[a,c,b]}function t(a){var c=I.pv,a=a.split(".");a[0]=parseInt(a[0],10);a[1]=parseInt(a[1],10)||0;a[2]=parseInt(a[2],10)||0;return c[0]>a[0]||c[0]==a[0]&&c[1]>a[1]||c[0]==a[0]&&c[1]==a[1]&&c[2]>=a[2]?!0:!1}function n(a,c,b,e){if(!I.ie||!I.mac){var f=B.getElementsByTagName("head")[0];if(f){b=b&&typeof b=="string"?b:"screen";e&&(V=K=null);if(!K||V!=b)e=B.createElement("style"),e.setAttribute("type","text/css"),e.setAttribute("media",b),K=f.appendChild(e),
I.ie&&I.win&&typeof B.styleSheets!=s&&B.styleSheets.length>0&&(K=B.styleSheets[B.styleSheets.length-1]),V=b;I.ie&&I.win?K&&typeof K.addRule==A&&K.addRule(a,c):K&&typeof B.createTextNode!=s&&K.appendChild(B.createTextNode(a+" {"+c+"}"))}}}function v(a,c){if(Y){var b=c?"visible":"hidden";M&&p(a)?p(a).style.visibility=b:n("#"+a,"visibility:"+b)}}function u(a){return/[\\\"<>\.;]/.exec(a)!=null&&typeof encodeURIComponent!=s?encodeURIComponent(a):a}var s="undefined",A="object",y="application/x-shockwave-flash",
x="SWFObjectExprInst",w=window,B=document,D=navigator,H=!1,E=[function(){H?b():f()}],r=[],G=[],C=[],j,J,Q,T,M=!1,N=!1,K,V,Y=!0,I=function(){var a=typeof B.getElementById!=s&&typeof B.getElementsByTagName!=s&&typeof B.createElement!=s,c=D.userAgent.toLowerCase(),b=D.platform.toLowerCase(),e=b?/win/.test(b):/win/.test(c),b=b?/mac/.test(b):/mac/.test(c),c=/webkit/.test(c)?parseFloat(c.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,f=!+"\u000b1",g=[0,0,0],d=null;if(typeof D.plugins!=s&&typeof D.plugins["Shockwave Flash"]==
A){if((d=D.plugins["Shockwave Flash"].description)&&!(typeof D.mimeTypes!=s&&D.mimeTypes[y]&&!D.mimeTypes[y].enabledPlugin))H=!0,f=!1,d=d.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),g[0]=parseInt(d.replace(/^(.*)\..*$/,"$1"),10),g[1]=parseInt(d.replace(/^.*\.(.*)\s.*$/,"$1"),10),g[2]=/[a-zA-Z]/.test(d)?parseInt(d.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}else if(typeof w.ActiveXObject!=s)try{var h=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(h&&(d=h.GetVariable("$version")))f=!0,d=d.split(" ")[1].split(","),
g=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10)]}catch(j){}return{w3:a,pv:g,wk:c,ie:f,win:e,mac:b}}();(function(){I.w3&&((typeof B.readyState!=s&&B.readyState=="complete"||typeof B.readyState==s&&(B.getElementsByTagName("body")[0]||B.body))&&a(),M||(typeof B.addEventListener!=s&&B.addEventListener("DOMContentLoaded",a,!1),I.ie&&I.win&&(B.attachEvent("onreadystatechange",function(){B.readyState=="complete"&&(B.detachEvent("onreadystatechange",arguments.callee),a())}),w==top&&function(){if(!M){try{B.documentElement.doScroll("left")}catch(c){setTimeout(arguments.callee,
0);return}a()}}()),I.wk&&function(){M||(/loaded|complete/.test(B.readyState)?a():setTimeout(arguments.callee,0))}(),d(a)))})();(function(){I.ie&&I.win&&window.attachEvent("onunload",function(){for(var a=C.length,c=0;c<a;c++)C[c][0].detachEvent(C[c][1],C[c][2]);a=G.length;for(c=0;c<a;c++)o(G[c]);for(var b in I)I[b]=null;I=null;for(var e in swfobject)swfobject[e]=null;swfobject=null})})();return{registerObject:function(a,c,b,e){if(I.w3&&a&&c){var f={};f.id=a;f.swfVersion=c;f.expressInstall=b;f.callbackFn=
e;r[r.length]=f;v(a,!1)}else e&&e({success:!1,id:a})},getObjectById:function(a){if(I.w3)return h(a)},embedSWF:function(a,b,f,d,h,j,k,l,n,o){var r={success:!1,id:b};I.w3&&!(I.wk&&I.wk<312)&&a&&b&&f&&d&&h?(v(b,!1),c(function(){f+="";d+="";var c={};if(n&&typeof n===A)for(var p in n)c[p]=n[p];c.data=a;c.width=f;c.height=d;p={};if(l&&typeof l===A)for(var q in l)p[q]=l[q];if(k&&typeof k===A)for(var E in k)typeof p.flashvars!=s?p.flashvars+="&"+E+"="+k[E]:p.flashvars=E+"="+k[E];if(t(h))q=m(c,p,b),c.id==
b&&v(b,!0),r.success=!0,r.ref=q;else if(j&&e()){c.data=j;g(c,p,b,o);return}else v(b,!0);o&&o(r)})):o&&o(r)},switchOffAutoHideShow:function(){Y=!1},ua:I,getFlashPlayerVersion:function(){return{major:I.pv[0],minor:I.pv[1],release:I.pv[2]}},hasFlashPlayerVersion:t,createSWF:function(a,c,b){if(I.w3)return m(a,c,b)},showExpressInstall:function(a,c,b,f){I.w3&&e()&&g(a,c,b,f)},removeSWF:function(a){I.w3&&o(a)},createCSS:function(a,c,b,e){I.w3&&n(a,c,b,e)},addDomLoadEvent:c,addLoadEvent:d,getQueryParamValue:function(a){var c=
B.location.search||B.location.hash;if(c){/\?/.test(c)&&(c=c.split("?")[1]);if(a==null)return u(c);for(var c=c.split("&"),b=0;b<c.length;b++)if(c[b].substring(0,c[b].indexOf("="))==a)return u(c[b].substring(c[b].indexOf("=")+1))}return""},expressInstallCallback:function(){if(N){var a=p(x);if(a&&j){a.parentNode.replaceChild(j,a);if(J&&(v(J,!0),I.ie&&I.win))j.style.display="block";Q&&Q(T)}N=!1}}}}();
if(typeof jwplayer=="undefined"){var jwplayer=function(a){if(jwplayer.api)return jwplayer.api.selectPlayer(a)},$jw=jwplayer;jwplayer.version="5.7.1896";jwplayer.vid=document.createElement("video");jwplayer.audio=document.createElement("audio");jwplayer.source=document.createElement("source");(function(a){a.utils=function(){};a.utils.typeOf=function(a){var d=typeof a;d==="object"&&(a?a instanceof Array&&(d="array"):d="null");return d};a.utils.extend=function(){var c=a.utils.extend.arguments;if(c.length>
1){for(var d=1;d<c.length;d++)for(var b in c[d])c[0][b]=c[d][b];return c[0]}return null};a.utils.clone=function(){var c,d=a.utils.clone.arguments;if(d.length==1)switch(a.utils.typeOf(d[0])){case "object":c={};for(var b in d[0])c[b]=a.utils.clone(d[0][b]);break;case "array":c=[];for(b in d[0])c[b]=a.utils.clone(d[0][b]);break;default:return d[0]}return c};a.utils.extension=function(a){if(!a)return"";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()};a.utils.html=function(a,d){a.innerHTML=d};a.utils.wrap=function(a,d){a.parentNode&&a.parentNode.replaceChild(d,a);d.appendChild(a)};a.utils.ajax=function(a,d,b){var f;f=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");f.onreadystatechange=function(){f.readyState===4&&(f.status===200?d&&d(f):b&&b(a))};try{f.open("GET",a,!0),f.send(null)}catch(h){b&&b(a)}return f};a.utils.load=function(a,d,b){a.onreadystatechange=function(){a.readyState===4&&
(a.status===200?d&&d():b&&b())}};a.utils.find=function(a,d){return a.getElementsByTagName(d)};a.utils.append=function(a,d){a.appendChild(d)};a.utils.isIE=function(){return!+"\u000b1"||typeof window.ActiveXObject!="undefined"};a.utils.isLegacyAndroid=function(){return navigator.userAgent.toLowerCase().match(/android 2.[012]/i)!==null};a.utils.isIOS=function(a){typeof a=="undefined"&&(a=/iP(hone|ad|od)/i);return navigator.userAgent.toLowerCase().match(a)!==null};a.utils.isIPad=function(){return a.utils.isIOS(/iPad/i)};
a.utils.isIPod=function(){return a.utils.isIOS(/iP(hone|od)/i)};a.utils.getFirstPlaylistItemFromConfig=function(a){var d={},a=a.playlist&&a.playlist.length?a.playlist[0]:a;d.file=a.file;d.levels=a.levels;d.streamer=a.streamer;d.playlistfile=a.playlistfile;d.provider=a.provider;if(!d.provider){if(d.file&&(d.file.toLowerCase().indexOf("youtube.com")>-1||d.file.toLowerCase().indexOf("youtu.be")>-1))d.provider="youtube";if(d.streamer&&d.streamer.toLowerCase().indexOf("rtmp://")==0)d.provider="rtmp";if(a.type)d.provider=
a.type.toLowerCase()}if(d.provider=="audio")d.provider="sound";return d};a.utils.getOuterHTML=function(a){if(a.outerHTML)return a.outerHTML;else try{return(new XMLSerializer).serializeToString(a)}catch(d){return""}};a.utils.setOuterHTML=function(a,d){if(a.outerHTML)a.outerHTML=d;else{var b=document.createElement("div");b.innerHTML=d;var f=document.createRange();f.selectNodeContents(b);b=f.extractContents();a.parentNode.insertBefore(b,a);a.parentNode.removeChild(a)}};a.utils.hasFlash=function(){if(typeof navigator.plugins!=
"undefined"&&typeof navigator.plugins["Shockwave Flash"]!="undefined")return!0;if(typeof window.ActiveXObject!="undefined")try{return new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),!0}catch(a){}return!1};a.utils.getPluginName=function(a){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")));
return a};a.utils.getPluginVersion=function(a){return a.lastIndexOf("-")>=0?a.lastIndexOf(".js")>=0?a.substring(a.lastIndexOf("-")+1,a.lastIndexOf(".js")):a.lastIndexOf(".swf")>=0?a.substring(a.lastIndexOf("-")+1,a.lastIndexOf(".swf")):a.substring(a.lastIndexOf("-")+1):""};a.utils.getAbsolutePath=function(c,d){if(!a.utils.exists(d))d=document.location.href;if(a.utils.exists(c)){var b;if(a.utils.exists(c)){b=c.indexOf("://");var f=c.indexOf("?");b=b>0&&(f<0||f>b)}else b=void 0;if(b)return c;b=d.substring(0,
d.indexOf("://")+3);var f=d.substring(b.length,d.indexOf("/",b.length+1)),h;c.indexOf("/")===0?h=c.split("/"):(h=d.split("?")[0],h=h.substring(b.length+f.length+1,h.lastIndexOf("/")),h=h.split("/").concat(c.split("/")));for(var e=[],g=0;g<h.length;g++)h[g]&&a.utils.exists(h[g])&&h[g]!="."&&(h[g]==".."?e.pop():e.push(h[g]));return b+f+"/"+e.join("/")}};a.utils.pluginPathType={ABSOLUTE:"ABSOLUTE",RELATIVE:"RELATIVE",CDN:"CDN"};a.utils.getPluginPathType=function(c){if(typeof c=="string"){var c=c.split("?")[0],
d=c.indexOf("://");if(d>0)return a.utils.pluginPathType.ABSOLUTE;var b=c.indexOf("/"),c=a.utils.extension(c);return d<0&&b<0&&(!c||!isNaN(c))?a.utils.pluginPathType.CDN:a.utils.pluginPathType.RELATIVE}};a.utils.mapEmpty=function(a){for(var d in a)return!1;return!0};a.utils.mapLength=function(a){var d=0,b;for(b in a)d++;return d};a.utils.log=function(a,d){typeof console!="undefined"&&typeof console.log!="undefined"&&(d?console.log(a,d):console.log(a))};a.utils.css=function(c,d){if(a.utils.exists(c))for(var b in d)try{if(typeof d[b]!==
"undefined"){if(typeof d[b]=="number"&&!(b=="zIndex"||b=="opacity")){if(isNaN(d[b]))continue;d[b]=b.match(/color/i)?"#"+a.utils.strings.pad(d[b].toString(16),6):Math.ceil(d[b])+"px"}c.style[b]=d[b]}}catch(f){}};a.utils.isYouTube=function(a){return a.indexOf("youtube.com")>-1||a.indexOf("youtu.be")>-1};a.utils.transform=function(a,d){a.style.webkitTransform=d;a.style.MozTransform=d;a.style.OTransform=d};a.utils.stretch=function(c,d,b,f,h,e){if(!(typeof b=="undefined"||typeof f=="undefined"||typeof h==
"undefined"||typeof e=="undefined")){var g=b/h,k=f/e;d.style.overflow="hidden";a.utils.transform(d,"");var l={};switch(c.toUpperCase()){case a.utils.stretching.NONE:l.width=h;l.height=e;break;case a.utils.stretching.UNIFORM:g>k?(l.width=h*k,l.height=e*k):(l.width=h*g,l.height=e*g);break;case a.utils.stretching.FILL:g>k?(l.width=h*g,l.height=e*g):(l.width=h*k,l.height=e*k);break;case a.utils.stretching.EXACTFIT:a.utils.transform(d,["scale(",g,",",k,") translate(0px,0px)"].join("")),l.width=h,l.height=
e}l.top=(f-l.height)/2;l.left=(b-l.width)/2;a.utils.css(d,l)}};a.utils.stretching={NONE:"NONE",FILL:"FILL",UNIFORM:"UNIFORM",EXACTFIT:"EXACTFIT"};a.utils.deepReplaceKeyName=function(c,d,b){switch(a.utils.typeOf(c)){case "array":for(var f=0;f<c.length;f++)c[f]=a.utils.deepReplaceKeyName(c[f],d,b);break;case "object":for(f in c){var h=f.replace(RegExp(d,"g"),b);c[h]=a.utils.deepReplaceKeyName(c[f],d,b);f!=h&&delete c[f]}}return c};a.utils.isInArray=function(a,d){if(!a||!(a instanceof Array))return!1;
for(var b=0;b<a.length;b++)if(d===a[b])return!0;return!1};a.utils.exists=function(a){switch(typeof a){case "string":return a.length>0;case "object":return a!==null;case "undefined":return!1}return!0};a.utils.empty=function(a){if(typeof a.hasChildNodes=="function")for(;a.hasChildNodes();)a.removeChild(a.firstChild)};a.utils.parseDimension=function(a){if(typeof a=="string")if(a==="")return 0;else if(!(a.lastIndexOf("%")>-1))return parseInt(a.replace("px",""),10);return a};a.utils.getDimensions=function(c){return c&&
c.style?{x:a.utils.parseDimension(c.style.left),y:a.utils.parseDimension(c.style.top),width:a.utils.parseDimension(c.style.width),height:a.utils.parseDimension(c.style.height)}:{}};a.utils.timeFormat=function(a){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));return str}})(jwplayer);(function(a){a.events=function(){};a.events.COMPLETE="COMPLETE";a.events.ERROR="ERROR"})(jwplayer);(function(a){a.events.eventdispatcher=
function(c){var d,b;this.resetEventListeners=function(){d={};b=[]};this.resetEventListeners();this.addEventListener=function(b,c,e){try{a.utils.exists(d[b])||(d[b]=[]),typeof c=="string"&&eval("listener = "+c),d[b].push({listener:c,count:e})}catch(g){a.utils.log("error",g)}return!1};this.removeEventListener=function(b,c){if(d[b]){try{for(var e=0;e<d[b].length;e++)if(d[b][e].listener.toString()==c.toString()){d[b].splice(e,1);break}}catch(g){a.utils.log("error",g)}return!1}};this.addGlobalListener=
function(c,d){try{typeof c=="string"&&eval("listener = "+c),b.push({listener:c,count:d})}catch(e){a.utils.log("error",e)}return!1};this.removeGlobalListener=function(c){if(b[type]){try{for(var d=0;d<b.length;d++)if(b[d].listener.toString()==c.toString()){b.splice(d,1);break}}catch(e){a.utils.log("error",e)}return!1}};this.sendEvent=function(f,h){a.utils.exists(h)||(h={});c&&a.utils.log(f,h);if(typeof d[f]!="undefined")for(var e=0;e<d[f].length;e++){try{d[f][e].listener(h)}catch(g){a.utils.log("There was an error while handling a listener: "+
g.toString(),d[f][e].listener)}d[f][e]&&(d[f][e].count===1?delete d[f][e]:d[f][e].count>0&&(d[f][e].count-=1))}for(e=0;e<b.length;e++){try{b[e].listener(h)}catch(k){a.utils.log("There was an error while handling a listener: "+k.toString(),b[e].listener)}b[e]&&(b[e].count===1?delete b[e]:b[e].count>0&&(b[e].count-=1))}}}})(jwplayer);(function(a){var c={};a.utils.animations=function(){};a.utils.animations.transform=function(a,b){a.style.webkitTransform=b;a.style.MozTransform=b;a.style.OTransform=b;
a.style.msTransform=b};a.utils.animations.transformOrigin=function(a,b){a.style.webkitTransformOrigin=b;a.style.MozTransformOrigin=b;a.style.OTransformOrigin=b;a.style.msTransformOrigin=b};a.utils.animations.rotate=function(c,b){a.utils.animations.transform(c,["rotate(",b,"deg)"].join(""))};a.utils.cancelAnimation=function(a){delete c[a.id]};a.utils.fadeTo=function(d,b,f,h,e,g){if(!(c[d.id]!=g&&a.utils.exists(g))&&d.style.opacity!=b){var k=(new Date).getTime();g>k&&setTimeout(function(){a.utils.fadeTo(d,
b,f,h,0,g)},g-k);if(d.style.display=="none")d.style.display="block";a.utils.exists(h)||(h=d.style.opacity===""?1:d.style.opacity);if(d.style.opacity==b&&d.style.opacity!==""&&a.utils.exists(g)){if(b===0)d.style.display="none"}else a.utils.exists(g)||(g=k,c[d.id]=g),a.utils.exists(e)||(e=0),k=f>0?(k-g)/(f*1E3):0,k=h+(k>1?1:k)*(b-h),k>1?k=1:k<0&&(k=0),d.style.opacity=k,e>0?(c[d.id]=g+e*1E3,a.utils.fadeTo(d,b,f,h,0,c[d.id])):setTimeout(function(){a.utils.fadeTo(d,b,f,h,0,g)},10)}}})(jwplayer);(function(a){a.utils.arrays=
function(){};a.utils.arrays.indexOf=function(a,d){for(var b=0;b<a.length;b++)if(a[b]==d)return b;return-1};a.utils.arrays.remove=function(c,d){var b=a.utils.arrays.indexOf(c,d);b>-1&&c.splice(b,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"},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"},mp4:{html5:"video/mp4",flash:"video"},rbs:{flash:"sound"},aac:{html5:"audio/aac",flash:"video"},mp3:{html5:"audio/mp3",flash:"sound"},ogg:{html5:"audio/ogg"},oga:{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"},wav:{html5:"audio/x-wav"}}})(jwplayer);(function(a){function c(b,c){a.utils.exists(c)?a.utils.extend(c,h[b]):c=h[b];return c}function d(b,f){if(e[b.tagName.toLowerCase()]&&!a.utils.exists(f))return e[b.tagName.toLowerCase()](b);else{var f=c("element",f),d={},h;for(h in f)if(h!="length"){var o=b.getAttribute(h);a.utils.exists(o)&&(d[f[h]]=o)}if((h=b.style["#background-color"])&&!(h=="transparent"||h=="rgba(0, 0, 0, 0)"))d.screencolor=h;return d}}function b(b,e){var e=c("media",
e),h=[],m=a.utils.selectors("source",b),o;for(o in m)isNaN(o)||h.push(f(m[o]));m=d(b,e);a.utils.exists(m.file)&&(h[0]={file:m.file});m.levels=h;return m}function f(a,b){var b=c("source",b),e=d(a,b);e.width=e.width?e.width:0;e.bitrate=e.bitrate?e.bitrate:0;return e}a.utils.mediaparser=function(){};var h={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"}},e={};a.utils.mediaparser.parseMedia=function(a){return d(a)};e.media=b;e.audio=b;e.source=f;e.video=function(a,e){e=c("video",e);return b(a,e)}})(jwplayer);(function(a){a.utils.loaderstatus={NEW:"NEW",LOADING:"LOADING",ERROR:"ERROR",COMPLETE:"COMPLETE"};a.utils.scriptloader=function(c){var d=a.utils.loaderstatus.NEW,b=new a.events.eventdispatcher;a.utils.extend(this,b);this.load=function(){if(d==a.utils.loaderstatus.NEW){d=
a.utils.loaderstatus.LOADING;var f=document.createElement("script");f.onload=function(){d=a.utils.loaderstatus.COMPLETE;b.sendEvent(a.events.COMPLETE)};f.onerror=function(){d=a.utils.loaderstatus.ERROR;b.sendEvent(a.events.ERROR)};f.onreadystatechange=function(){if(f.readyState=="loaded"||f.readyState=="complete")d=a.utils.loaderstatus.COMPLETE,b.sendEvent(a.events.COMPLETE)};document.getElementsByTagName("head")[0].appendChild(f);f.src=c}};this.getStatus=function(){return d}}})(jwplayer);(function(a){a.utils.selectors=
function(c,d){a.utils.exists(d)||(d=document);var c=a.utils.strings.trim(c),b=c.charAt(0);return b=="#"?d.getElementById(c.substr(1)):b=="."?d.getElementsByClassName?d.getElementsByClassName(c.substr(1)):a.utils.selectors.getElementsByTagAndClass("*",c.substr(1)):c.indexOf(".")>0?(b=c.split("."),a.utils.selectors.getElementsByTagAndClass(b[0],b[1])):d.getElementsByTagName(c)};a.utils.selectors.getElementsByTagAndClass=function(c,d,b){var f=[];a.utils.exists(b)||(b=document);c=b.getElementsByTagName(c);
for(b=0;b<c.length;b++)if(a.utils.exists(c[b].className))for(var h=c[b].className.split(" "),e=0;e<h.length;e++)h[e]==d&&f.push(c[b]);return f}})(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,d,b){for(b||(b="0");a.length<d;)a=b+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){var a=a.replace(",","."),d=a.split(":"),b=0;a.substr(-1)=="s"?b=Number(a.substr(0,a.length-1)):a.substr(-1)=="m"?b=Number(a.substr(0,a.length-1))*60:a.substr(-1)=="h"?b=Number(a.substr(0,a.length-1))*3600:d.length>1?(b=Number(d[d.length-1]),b+=Number(d[d.length-2])*60,d.length==3&&(b+=Number(d[d.length-3])*3600)):b=Number(a);return b};a.utils.strings.xmlAttribute=function(a,d){for(var b=0;b<a.attributes.length;b++)if(a.attributes[b].name&&a.attributes[b].name.toLowerCase()==d.toLowerCase())return a.attributes[b].value.toString();
return""};a.utils.strings.jsonToString=function(c){var d=d||{};if(d&&d.stringify)return d.stringify(c);d=typeof c;if(d!="object"||c===null){if(d!="string")return String(c)}else{var d=[],b=c&&c.constructor==Array,f;for(f in c){var h=c[f];switch(typeof h){case "string":h='"'+h+'"';break;case "object":a.utils.exists(h)&&(h=a.utils.strings.jsonToString(h))}b?typeof h!="function"&&d.push(String(h)):typeof h!="function"&&d.push('"'+f+'":'+String(h))}return b?"["+String(d)+"]":"{"+String(d)+"}"}}})(jwplayer);
(function(a){function c(a){if(["true","false","t","f"].toString().indexOf(a.toLowerCase().replace(" ",""))>=0)return"boolean";else if(f.test(a))return"color";else if(!isNaN(parseInt(a,10))&&parseInt(a,10).toString().length==a.length)return"integer";else if(!isNaN(parseFloat(a))&&parseFloat(a).toString().length==a.length)return"float";return"string"}function d(c,e){if(!a.utils.exists(e))return c;switch(e){case "color":return c.length>0?b(c):null;case "integer":return parseInt(c,10);case "float":return parseFloat(c);
case "boolean":if(c.toLowerCase()=="true")return!0;else if(c=="1")return!0;return!1}return c}function b(a){switch(a.toLowerCase()){case "blue":return 255;case "green":return 65280;case "red":return 16711680;case "cyan":return 65535;case "magenta":return 16711935;case "yellow":return 16776960;case "black":return 0;case "white":return 16777215;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)}}var f=RegExp(/^(#|0x)[0-9a-fA-F]{3,6}/);a.utils.typechecker=function(b,e){e=!a.utils.exists(e)?c(b):e;return d(b,e)}})(jwplayer);(function(a){a.utils.parsers=function(){};a.utils.parsers.localName=function(a){return a?a.localName?a.localName:a.baseName?a.baseName:"":""};a.utils.parsers.textContent=function(a){return a?a.textContent?a.textContent:a.text?a.text:"":""}})(jwplayer);(function(a){a.utils.parsers.jwparser=function(){};a.utils.parsers.jwparser.PREFIX="jwplayer";a.utils.parsers.jwparser.parseEntry=
function(c,d){for(var b=0;b<c.childNodes.length;b++)if(c.childNodes[b].prefix==a.utils.parsers.jwparser.PREFIX&&(d[a.utils.parsers.localName(c.childNodes[b])]=a.utils.strings.serialize(a.utils.parsers.textContent(c.childNodes[b]))),!d.file&&String(d.link).toLowerCase().indexOf("youtube")>-1)d.file=d.link;return d};a.utils.parsers.jwparser.getProvider=function(c){if(c.type)return c.type;else if(c.file.indexOf("youtube.com/w")>-1||c.file.indexOf("youtube.com/v")>-1||c.file.indexOf("youtu.be/")>-1)return"youtube";
else if(c.streamer&&c.streamer.indexOf("rtmp")==0)return"rtmp";else if(c.streamer&&c.streamer.indexOf("http")==0)return"http";else if(c=a.utils.strings.extension(c.file),extensions.hasOwnProperty(c))return extensions[c];return""}})(jwplayer);(function(a){a.utils.parsers.mediaparser=function(){};a.utils.parsers.mediaparser.PREFIX="media";a.utils.parsers.mediaparser.parseGroup=function(c,d){for(var b=!1,f=0;f<c.childNodes.length;f++)if(c.childNodes[f].prefix==a.utils.parsers.mediaparser.PREFIX&&a.utils.parsers.localName(c.childNodes[f]))switch(a.utils.parsers.localName(c.childNodes[f]).toLowerCase()){case "content":if(!b)d.file=
a.utils.strings.xmlAttribute(c.childNodes[f],"url");if(a.utils.strings.xmlAttribute(c.childNodes[f],"duration"))d.duration=a.utils.strings.seconds(a.utils.strings.xmlAttribute(c.childNodes[f],"duration"));if(a.utils.strings.xmlAttribute(c.childNodes[f],"start"))d.start=a.utils.strings.seconds(a.utils.strings.xmlAttribute(c.childNodes[f],"start"));c.childNodes[f].childNodes&&c.childNodes[f].childNodes.length>0&&(d=a.utils.parsers.mediaparser.parseGroup(c.childNodes[f],d));if(a.utils.strings.xmlAttribute(c.childNodes[f],
"width")||a.utils.strings.xmlAttribute(c.childNodes[f],"bitrate")||a.utils.strings.xmlAttribute(c.childNodes[f],"url")){if(!d.levels)d.levels=[];d.levels.push({width:a.utils.strings.xmlAttribute(c.childNodes[f],"width"),bitrate:a.utils.strings.xmlAttribute(c.childNodes[f],"bitrate"),file:a.utils.strings.xmlAttribute(c.childNodes[f],"url")})}break;case "title":d.title=a.utils.parsers.textContent(c.childNodes[f]);break;case "description":d.description=a.utils.parsers.textContent(c.childNodes[f]);break;
case "keywords":d.tags=a.utils.parsers.textContent(c.childNodes[f]);break;case "thumbnail":d.image=a.utils.strings.xmlAttribute(c.childNodes[f],"url");break;case "credit":d.author=a.utils.parsers.textContent(c.childNodes[f]);break;case "player":var h=c.childNodes[f].url;if(h.indexOf("youtube.com")>=0||h.indexOf("youtu.be")>=0)b=!0,d.file=a.utils.strings.xmlAttribute(c.childNodes[f],"url");break;case "group":a.utils.parsers.mediaparser.parseGroup(c.childNodes[f],d)}return d}})(jwplayer);(function(a){function c(c){for(var b=
{},f=0;f<c.childNodes.length;f++)if(a.utils.parsers.localName(c.childNodes[f]))switch(a.utils.parsers.localName(c.childNodes[f]).toLowerCase()){case "enclosure":b.file=a.utils.strings.xmlAttribute(c.childNodes[f],"url");break;case "title":b.title=a.utils.parsers.textContent(c.childNodes[f]);break;case "pubdate":b.date=a.utils.parsers.textContent(c.childNodes[f]);break;case "description":b.description=a.utils.parsers.textContent(c.childNodes[f]);break;case "link":b.link=a.utils.parsers.textContent(c.childNodes[f]);
break;case "category":b.tags?b.tags+=a.utils.parsers.textContent(c.childNodes[f]):b.tags=a.utils.parsers.textContent(c.childNodes[f])}b=a.utils.parsers.mediaparser.parseGroup(c,b);b=a.utils.parsers.jwparser.parseEntry(c,b);return new a.html5.playlistitem(b)}a.utils.parsers.rssparser=function(){};a.utils.parsers.rssparser.parse=function(d){for(var b=[],f=0;f<d.childNodes.length;f++)if(a.utils.parsers.localName(d.childNodes[f]).toLowerCase()=="channel")for(var h=0;h<d.childNodes[f].childNodes.length;h++)a.utils.parsers.localName(d.childNodes[f].childNodes[h]).toLowerCase()==
"item"&&b.push(c(d.childNodes[f].childNodes[h]));return b}})(jwplayer);(function(a){var c={},d={};a.plugins=function(){};a.plugins.loadPlugins=function(b,f){d[b]=new a.plugins.pluginloader(new a.plugins.model(c),f);return d[b]};a.plugins.registerPlugin=function(b,f,h){var e=a.utils.getPluginName(b);if(c[e])c[e].registerPlugin(b,f,h);else{a.utils.log("A plugin ("+b+") was registered with the player that was not loaded. Please check your configuration.");for(var g in d)d[g].pluginFailed()}}})(jwplayer);
(function(a){a.plugins.model=function(c){this.addPlugin=function(d){var b=a.utils.getPluginName(d);c[b]||(c[b]=new a.plugins.plugin(d));return c[b]}}})(jwplayer);(function(a){a.plugins.pluginmodes={FLASH:"FLASH",JAVASCRIPT:"JAVASCRIPT",HYBRID:"HYBRID"};a.plugins.plugin=function(c){function d(){switch(a.utils.getPluginPathType(c)){case a.utils.pluginPathType.ABSOLUTE:return c;case a.utils.pluginPathType.RELATIVE:return a.utils.getAbsolutePath(c,window.location.href);case a.utils.pluginPathType.CDN:var b=
a.utils.getPluginName(c),e=a.utils.getPluginVersion(c);return h+"/"+a.version.split(".")[0]+"/"+b+"/"+b+(e!==""?"-"+e:"")+".js"}}function b(){l=setTimeout(function(){e=a.utils.loaderstatus.COMPLETE;m.sendEvent(a.events.COMPLETE)},1E3)}function f(){e=a.utils.loaderstatus.ERROR;m.sendEvent(a.events.ERROR)}var h="http://plugins.longtailvideo.com",e=a.utils.loaderstatus.NEW,g,k,l,m=new a.events.eventdispatcher;a.utils.extend(this,m);this.load=function(){if(e==a.utils.loaderstatus.NEW)if(c.lastIndexOf(".swf")>
0)g=c,e=a.utils.loaderstatus.COMPLETE,m.sendEvent(a.events.COMPLETE);else{e=a.utils.loaderstatus.LOADING;var h=new a.utils.scriptloader(d());h.addEventListener(a.events.COMPLETE,b);h.addEventListener(a.events.ERROR,f);h.load()}};this.registerPlugin=function(b,c,f){l&&(clearTimeout(l),l=void 0);c&&f?(g=f,k=c):typeof c=="string"?g=c:typeof c=="function"?k=c:!c&&!f&&(g=b);e=a.utils.loaderstatus.COMPLETE;m.sendEvent(a.events.COMPLETE)};this.getStatus=function(){return e};this.getPluginName=function(){return a.utils.getPluginName(c)};
this.getFlashPath=function(){if(g)switch(a.utils.getPluginPathType(g)){case a.utils.pluginPathType.ABSOLUTE:return g;case a.utils.pluginPathType.RELATIVE:return c.lastIndexOf(".swf")>0?a.utils.getAbsolutePath(g,window.location.href):a.utils.getAbsolutePath(g,d());case a.utils.pluginPathType.CDN:return g.indexOf("-")>-1?g+"h":g+"-h"}return null};this.getJS=function(){return k};this.getPluginmode=function(){if(typeof g!="undefined"&&typeof k!="undefined")return a.plugins.pluginmodes.HYBRID;else if(typeof g!=
"undefined")return a.plugins.pluginmodes.FLASH;else if(typeof k!="undefined")return a.plugins.pluginmodes.JAVASCRIPT};this.getNewInstance=function(a,b,c){return new k(a,b,c)};this.getURL=function(){return c}}})(jwplayer);(function(a){a.plugins.pluginloader=function(c,d){function b(){if(!g)g=!0,e=a.utils.loaderstatus.COMPLETE,k.sendEvent(a.events.COMPLETE)}function f(){if(!g){var c=0;for(plugin in h){var e=h[plugin].getStatus();(e==a.utils.loaderstatus.LOADING||e==a.utils.loaderstatus.NEW)&&c++}c==
0&&b()}}var h={},e=a.utils.loaderstatus.NEW,g=!1,k=new a.events.eventdispatcher;a.utils.extend(this,k);this.setupPlugins=function(a,b,c){var e={length:0,plugins:{}},f={length:0,plugins:{}},g;for(g in h){var d=h[g].getPluginName();if(h[g].getFlashPath())e.plugins[h[g].getFlashPath()]=b.plugins[g],e.plugins[h[g].getFlashPath()].pluginmode=h[g].getPluginmode(),e.length++;if(h[g].getJS()){var k=document.createElement("div");k.id=a.id+"_"+d;k.style.position="absolute";k.style.zIndex=f.length+10;f.plugins[d]=
h[g].getNewInstance(a,b.plugins[g],k);f.length++;typeof f.plugins[d].resize!="undefined"&&(a.onReady(c(f.plugins[d],k,!0)),a.onResize(c(f.plugins[d],k)))}}a.plugins=f.plugins;return e};this.load=function(){e=a.utils.loaderstatus.LOADING;for(var b in d)a.utils.exists(b)&&(h[b]=c.addPlugin(b),h[b].addEventListener(a.events.COMPLETE,f),h[b].addEventListener(a.events.ERROR,f));for(b in h)h[b].load();f()};this.pluginFailed=function(){b()};this.getStatus=function(){return e}}})(jwplayer);(function(a){var c=
[];a.api=function(c){function b(a,b){return function(c,e,f,g){if(a.renderingMode=="flash"||a.renderingMode=="html5"){var d;e?(t[c]=e,d="jwplayer('"+a.id+"').callback('"+c+"')"):!e&&t[c]&&delete t[c];l.jwDockSetButton(c,d,f,g)}return b}}function f(a){return function(b){var c=b.newstate,b=b.oldstate;if(c==a){var e=g[c];if(e)for(var f=0;f<e.length;f++)typeof e[f]=="function"&&e[f].call(this,{oldstate:b,newstate:c})}}}function h(a,b){return function(c){if(a==c.component){var e=k[a][b];if(e)for(var f=
0;f<e.length;f++)typeof e[f]=="function"&&e[f].call(this,c)}}}this.container=c;this.id=c.id;var e={},g={},k={},l=void 0,m=!1,o=[],p=a.utils.getOuterHTML(c),q={},t={};this.getBuffer=function(){return this.callInternal("jwGetBuffer")};this.getContainer=function(){return this.container};this.getPlugin=function(c){var e=this,f={};return c=="dock"?a.utils.extend(f,{setButton:b(e,f),show:function(){e.callInternal("jwDockShow");return f},hide:function(){e.callInternal("jwDockHide");return f},onShow:function(b){e.componentListener("dock",
a.api.events.JWPLAYER_COMPONENT_SHOW,b);return f},onHide:function(b){e.componentListener("dock",a.api.events.JWPLAYER_COMPONENT_HIDE,b);return f}}):c=="controlbar"?a.utils.extend(f,{show:function(){e.callInternal("jwControlbarShow");return f},hide:function(){e.callInternal("jwControlbarHide");return f},onShow:function(b){e.componentListener("controlbar",a.api.events.JWPLAYER_COMPONENT_SHOW,b);return f},onHide:function(b){e.componentListener("controlbar",a.api.events.JWPLAYER_COMPONENT_HIDE,b);return f}}):
c=="display"?a.utils.extend(f,{show:function(){e.callInternal("jwDisplayShow");return f},hide:function(){e.callInternal("jwDisplayHide");return f},onShow:function(b){e.componentListener("display",a.api.events.JWPLAYER_COMPONENT_SHOW,b);return f},onHide:function(b){e.componentListener("display",a.api.events.JWPLAYER_COMPONENT_HIDE,b);return f}}):this.plugins[c]};this.callback=function(a){if(t[a])return t[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 b=this.callInternal("jwGetPlaylist");this.renderingMode=="flash"&&a.utils.deepReplaceKeyName(b,"__dot__",".");for(var c=0;c<b.length;c++)if(!a.utils.exists(b[c].index))b[c].index=
c;return b};this.getPlaylistItem=function(b){a.utils.exists(b)||(b=this.getCurrentItem());return this.getPlaylist()[b]};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(b){a.utils.exists(b)?this.callInternal("jwSetFullscreen",
b):this.callInternal("jwSetFullscreen",!this.callInternal("jwGetFullscreen"));return this};this.setMute=function(b){a.utils.exists(b)?this.callInternal("jwSetMute",b):this.callInternal("jwSetMute",!this.callInternal("jwGetMute"));return this};this.lock=function(){return this};this.unlock=function(){return this};this.load=function(a){this.callInternal("jwLoad",a);return this};this.playlistItem=function(a){this.callInternal("jwPlaylistItem",a);return this};this.playlistPrev=function(){this.callInternal("jwPlaylistPrev");
return this};this.playlistNext=function(){this.callInternal("jwPlaylistNext");return this};this.resize=function(a,b){this.renderingMode=="html5"?l.jwResize(a,b):(this.container.width=a,this.container.height=b);return this};this.play=function(b){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);return this};this.pause=function(b){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);return this};this.stop=function(){this.callInternal("jwStop");return this};this.seek=function(a){this.callInternal("jwSeek",a);return this};this.setVolume=function(a){this.callInternal("jwSetVolume",a);return 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.onSeek=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_SEEK,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(){e={};o=[];a.utils.getOuterHTML(this.container)!=p&&a.api.destroyPlayer(this.id,p)};this.setup=function(b){if(a.embed){var c=this.id;this.remove();c=a(c);
c.config=b;return new a.embed(c)}return this};this.registerPlugin=function(b,c,e){a.plugins.registerPlugin(b,c,e)};this.setPlayer=function(a,b){l=a;this.renderingMode=b};this.stateListener=function(b,c){g[b]||(g[b]=[],this.eventListener(a.api.events.JWPLAYER_PLAYER_STATE,f(b)));g[b].push(c);return this};this.componentListener=function(a,b,c){k[a]||(k[a]={});k[a][b]||(k[a][b]=[],this.eventListener(b,h(a,b)));k[a][b].push(c);return this};this.addInternalListener=function(a,b){a.jwAddEventListener(b,
'function(dat) { jwplayer("'+this.id+'").dispatchEvent("'+b+'", dat); }')};this.eventListener=function(a,b){e[a]||(e[a]=[],l&&m&&this.addInternalListener(l,a));e[a].push(b);return this};this.dispatchEvent=function(b,c){if(e[b]){var f;f=a.utils.extend({},c);b==a.api.events.JWPLAYER_FULLSCREEN&&!f.fullscreen?(f.fullscreen=f.message=="true"?!0:!1,delete f.message):typeof f.data=="object"&&(f=a.utils.extend(f,f.data),delete f.data);var g=["position","duration","offset"],d;for(d in g)f[g[d]]&&(f[g[d]]=
Math.round(f[g[d]]*1E3)/1E3);for(g=0;g<e[b].length;g++)typeof e[b][g]=="function"&&e[b][g].call(this,f)}};this.callInternal=function(b,c){if(m)return typeof l!="undefined"&&typeof l[b]=="function"?a.utils.exists(c)?l[b](c):l[b]():null;else o.push({method:b,parameters:c})};this.playerReady=function(b){m=!0;l||this.setPlayer(document.getElementById(b.id));this.container=document.getElementById(this.id);for(var c in e)this.addInternalListener(l,c);this.eventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,
function(){q={}});this.eventListener(a.api.events.JWPLAYER_MEDIA_META,function(b){a.utils.extend(q,b.metadata)});for(this.dispatchEvent(a.api.events.API_READY);o.length>0;)b=o.shift(),this.callInternal(b.method,b.parameters)};this.getItemMeta=function(){return q};this.getCurrentItem=function(){return this.callInternal("jwGetPlaylistIndex")};return this};a.api.selectPlayer=function(c){var b;a.utils.exists(c)||(c=0);c.nodeType?b=c:typeof c=="string"&&(b=document.getElementById(c));if(b)return(c=a.api.playerById(b.id))?
c:a.api.addPlayer(new a.api(b));else if(typeof c=="number")return a.getPlayers()[c];return null};a.api.events={API_READY:"jwplayerAPIReady",JWPLAYER_READY:"jwplayerReady",JWPLAYER_FULLSCREEN:"jwplayerFullscreen",JWPLAYER_RESIZE:"jwplayerResize",JWPLAYER_ERROR:"jwplayerError",JWPLAYER_COMPONENT_SHOW:"jwplayerComponentShow",JWPLAYER_COMPONENT_HIDE:"jwplayerComponentHide",JWPLAYER_MEDIA_BUFFER:"jwplayerMediaBuffer",JWPLAYER_MEDIA_BUFFER_FULL:"jwplayerMediaBufferFull",JWPLAYER_MEDIA_ERROR:"jwplayerMediaError",
JWPLAYER_MEDIA_LOADED:"jwplayerMediaLoaded",JWPLAYER_MEDIA_COMPLETE:"jwplayerMediaComplete",JWPLAYER_MEDIA_SEEK:"jwplayerMediaSeek",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 b=0;b<c.length;b++)if(c[b].id==a)return c[b];return null};a.api.addPlayer=function(a){for(var b=0;b<c.length;b++)if(c[b]==a)return a;c.push(a);return a};a.api.destroyPlayer=function(d,b){for(var f=-1,h=0;h<c.length;h++)c[h].id==d&&(f=h);if(f>=0){h=document.getElementById(c[f].id);document.getElementById(c[f].id+"_wrapper")&&(h=document.getElementById(c[f].id+"_wrapper"));if(h)if(b)a.utils.setOuterHTML(h,b);else{var e=document.createElement("div"),
g=h.id;h.id.indexOf("_wrapper")==h.id.length-8&&(newID=h.id.substring(0,h.id.length-8));e.setAttribute("id",g);h.parentNode.replaceChild(e,h)}c.splice(f,1)}return null};a.getPlayers=function(){return c.slice(0)}})(jwplayer);var _userPlayerReady=typeof playerReady=="function"?playerReady:void 0;playerReady=function(a){var c=jwplayer.api.playerById(a.id);c?c.playerReady(a):jwplayer.api.selectPlayer(a.id).playerReady(a);_userPlayerReady&&_userPlayerReady.call(this,a)};(function(a){function c(){if(!document.body)return setTimeout(c,
15);for(var d=a.utils.selectors.getElementsByTagAndClass("video","jwplayer"),b=0;b<d.length;b++)a(d[b].id).setup({})}a.embed=function(c){function b(){if(e.getStatus()==a.utils.loaderstatus.COMPLETE){for(var b=0;b<h.modes.length;b++)if(h.modes[b].type&&a.embed[h.modes[b].type]){var f=h;h.modes[b].config&&(f=a.utils.extend(a.utils.clone(h),h.modes[b].config));f=new a.embed[h.modes[b].type](document.getElementById(c.id),h.modes[b],f,e,c);if(f.supportsConfig()){f.embed();var b=c,f=h.events,l=void 0;for(l in f)typeof b[l]==
"function"&&b[l].call(b,f[l]);return c}}a.utils.log("No suitable players found");new a.embed.logo(a.utils.extend({hide:!0},h.components.logo),"none",c.id)}}var f=a.utils.mediaparser.parseMedia(c.container),h=new a.embed.config(a.utils.extend({width:400,height:300,components:{controlbar:{position:"over"}}},f,c.config),this),e=a.plugins.loadPlugins(c.id,h.plugins);e.addEventListener(a.events.COMPLETE,b);e.addEventListener(a.events.ERROR,b);e.load();return c};c()})(jwplayer);(function(a){function c(){return[{type:"flash",
src:"/jwplayer/player.swf"},{type:"html5"},{type:"download"}]}function d(a){return typeof a=="string"&&(parseInt(a).toString()==a||a.toLowerCase().indexOf("px")>-1)?parseInt(a):a}function b(b,c,f,d){a.utils.typeOf(b[c])!="object"&&(b[c]={});var h=b[c][f];a.utils.typeOf(h)!="object"&&(b[c][f]=h={});d&&(c=="plugins"?(c=a.utils.getPluginName(f),h[d]=b[c+"."+d],delete b[c+"."+d]):(h[d]=b[f+"."+d],delete b[f+"."+d]))}var f={players:"modes",autoplay:"autostart"},h=["playlist","dock","controlbar","logo",
"display"];a.embed.deserialize=function(c){var f={};switch(a.utils.typeOf(c.plugins)){case "object":for(var d in c.plugins)f[a.utils.getPluginName(d)]=d;break;case "string":d=c.plugins.split(",");for(var l=0;l<d.length;l++)f[a.utils.getPluginName(d[l])]=d[l]}for(var m in f)b(c,"plugins",f[m]);for(var o in c)o.indexOf(".")>-1&&(o=o.split("."),m=o[0],o=o[1],a.utils.isInArray(h,m)?b(c,"components",m,o):f[m]&&b(c,"plugins",f[m],o));return c};a.embed.config=function(b){var b=a.utils.extend({},b),g,k=b.playlist,
l=!1;if(l=k instanceof Array||typeof k=="object"&&!k.position&&!k.size)g=b.playlist,delete b.playlist;b=a.embed.deserialize(b);b.height=d(b.height);b.width=d(b.width);if(typeof b.plugins=="string"){k=b.plugins.split(",");if(typeof b.plugins!="object")b.plugins={};for(l=0;l<k.length;l++){var m=a.utils.getPluginName(k[l]);typeof b[m]=="object"?(b.plugins[k[l]]=b[m],delete b[m]):b.plugins[k[l]]={}}}for(k=0;k<h.length;k++){l=h[k];if(a.utils.exists(b[l]))typeof b[l]!="object"?(b.components[l]||(b.components[l]=
{}),l=="logo"?b.components[l].file=b[l]:b.components[l].position=b[l]):(b.components[l]||(b.components[l]={}),a.utils.extend(b.components[l],b[l])),delete b[l];if(typeof b[l+"size"]!="undefined")b.components[l]||(b.components[l]={}),b.components[l].size=b[l+"size"],delete b[l+"size"]}if(typeof b.icons!="undefined"){if(!b.components.display)b.components.display={};b.components.display.icons=b.icons;delete b.icons}for(var o in f)b[o]&&(b[f[o]]||(b[f[o]]=b[o]),delete b[o]);var p;b.flashplayer&&!b.modes?
(p=c(),p[0].src=b.flashplayer,delete b.flashplayer):b.modes?(typeof b.modes=="string"?(p=c(),p[0].src=b.modes):b.modes instanceof Array?p=b.modes:typeof b.modes=="object"&&b.modes.type&&(p=[b.modes]),delete b.modes):p=c();b.modes=p;if(g)b.playlist=g;return b}})(jwplayer);(function(a){a.embed.download=function(c,d,b,f,h){function e(b,c,e){if(e)return!1;e=["image","sound","youtube","http"];if(c&&e.toString().indexOf(c)>-1)return!0;if(!c||c&&c=="video")if((b=a.utils.extension(b))&&a.utils.extensionmap[b])return!0;
return!1}this.embed=function(){a.utils.extend({},b);var e={},f=b.width?b.width:480;typeof f!="number"&&(f=parseInt(f,10));var d=b.height?b.height:320;typeof d!="number"&&(d=parseInt(d,10));var m,o,p;p={};b.playlist&&b.playlist.length?(p.file=b.playlist[0].file,o=b.playlist[0].image,p.levels=b.playlist[0].levels):(p.file=b.file,o=b.image,p.levels=b.levels);if(p.file)m=p.file;else if(p.levels&&p.levels.length)m=p.levels[0].file;p=m?"pointer":"auto";var q={display:{style:{cursor:p,width:f,height:d,backgroundColor:"#000",
position:"relative",textDecoration:"none",border:"none",display:"block"}},display_icon:{style:{cursor:p,position:"absolute",display:m?"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:p,position:"absolute",display:m?"block":"none",top:(d-50)/2,left:(f-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:f,height:d,display:o?"block":"none",
position:"absolute",cursor:p,left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1,border:"none"}}};p=function(b,e,f){b=document.createElement(b);b.id=f?f:c.id+"_jwplayer_"+e;a.utils.css(b,q[e].style);return b};e.display=p("a","display",c.id);m&&e.display.setAttribute("href",a.utils.getAbsolutePath(m));e.display_image=p("img","display_image");e.display_image.setAttribute("alt","Click to download...");o&&e.display_image.setAttribute("src",a.utils.getAbsolutePath(o));e.display_icon=p("div",
"display_icon");e.display_iconBackground=p("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(){_hide(e.display_image)};e.display_image.onload=function(){_imageWidth=e.display_image.naturalWidth;_imageHeight=e.display_image.naturalHeight;a.utils.stretch(a.utils.stretching.UNIFORM,e.display_image,
f,d,_imageWidth,_imageHeight)};c.parentNode.replaceChild(e.display,c);e.display.appendChild(new a.embed.logo(b.components.logo,"download",c.id));h.container=document.getElementById(h.id);h.setPlayer(e.display,"download")};this.supportsConfig=function(){if(b){var c=a.utils.getFirstPlaylistItemFromConfig(b);if(typeof c.file=="undefined"&&typeof c.levels=="undefined")return!0;else if(c.file)return e(c.file,c.provider,c.playlistfile);else if(c.levels&&c.levels.length)for(var f=0;f<c.levels.length;f++)if(c.levels[f].file&&
e(c.levels[f].file,c.provider,c.playlistfile))return!0}else return!0}}})(jwplayer);(function(a){a.embed.flash=function(c,d,b,f,h){function e(a,b,c){var e=document.createElement("param");e.setAttribute("name",b);e.setAttribute("value",c);a.appendChild(e)}function g(b,c,e){return function(){e&&document.getElementById(h.id+"_wrapper").appendChild(c);var f=document.getElementById(h.id).getPluginConfig("display");b.resize(f.width,f.height);a.utils.css(c,{left:f.x,top:f.y})}}function k(a,b){if(a[b]){var c=
a[b],e;for(e in c){var f=c[e];if(typeof f=="string")a[e]||(a[e]=f);else for(var g in f)a[e+"."+g]||(a[e+"."+g]=f[g])}delete a[b]}}function l(b){if(!b)return{};var c={},e=[],f;for(f in b){var g=a.utils.getPluginName(f),d=b[f];e.push(f);for(var h in d)c[g+"."+h]=d[h]}c.plugins=e.join(",");return c}function m(b){var c=b.netstreambasepath?"":"netstreambasepath="+encodeURIComponent(window.location.href.split("#")[0])+"&",e;for(e in b)c+=typeof b[e]=="object"?e+"="+encodeURIComponent("[[JSON]]"+a.utils.strings.jsonToString(b[e]))+
"&":e+"="+encodeURIComponent(b[e])+"&";return c.substring(0,c.length-1)}this.embed=function(){b.id=h.id;var o,p=a.utils.extend({},b),q=p.width,t=p.height;c.id+"_wrapper"==c.parentNode.id?document.getElementById(c.id+"_wrapper"):(o=document.createElement("div"),o.id=c.id+"_wrapper",a.utils.wrap(c,o),a.utils.css(o,{position:"relative",width:q,height:t}));o=f.setupPlugins(h,p,g);o.length>0?a.utils.extend(p,l(o.plugins)):delete p.plugins;o=["height","width","modes","events"];for(q=0;q<o.length;q++)delete p[o[q]];
o="opaque";if(p.wmode)o=p.wmode;k(p,"components");k(p,"providers");if(typeof p["dock.position"]!="undefined"&&p["dock.position"].toString().toLowerCase()=="false")p.dock=p["dock.position"],delete p["dock.position"];a.utils.isIE()?(q='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" bgcolor="#000000" width="100%" height="100%" id="'+c.id+'" name="'+c.id+'" tabindex=0"">',q+='<param name="movie" value="'+d.src+'">',q+='<param name="allowfullscreen" value="true">',q+='<param name="allowscriptaccess" value="always">',
q+='<param name="seamlesstabbing" value="true">',q+='<param name="wmode" value="'+o+'">',q+='<param name="flashvars" value="'+m(p)+'">',q+="</object>",a.utils.setOuterHTML(c,q),p=document.getElementById(c.id)):(q=document.createElement("object"),q.setAttribute("type","application/x-shockwave-flash"),q.setAttribute("data",d.src),q.setAttribute("width","100%"),q.setAttribute("height","100%"),q.setAttribute("bgcolor","#000000"),q.setAttribute("id",c.id),q.setAttribute("name",c.id),q.setAttribute("tabindex",
0),e(q,"allowfullscreen","true"),e(q,"allowscriptaccess","always"),e(q,"seamlesstabbing","true"),e(q,"wmode",o),e(q,"flashvars",m(p)),c.parentNode.replaceChild(q,c),p=q);h.container=p;h.setPlayer(p,"flash")};this.supportsConfig=function(){if(a.utils.hasFlash())if(b){var c=a.utils.getFirstPlaylistItemFromConfig(b);if(typeof c.file=="undefined"&&typeof c.levels=="undefined")return!0;else if(c.file)return flashCanPlay(c.file,c.provider);else if(c.levels&&c.levels.length)for(var e=0;e<c.levels.length;e++)if(c.levels[e].file&&
flashCanPlay(c.levels[e].file,c.provider))return!0}else return!0;return!1};flashCanPlay=function(b,c){var e=["video","http","sound","image"];if(c&&e.toString().indexOf(c<0))return!0;e=a.utils.extension(b);return!e?!0:a.utils.exists(a.utils.extensionmap[e])&&!a.utils.exists(a.utils.extensionmap[e].flash)?!1:!0}}})(jwplayer);(function(a){a.embed.html5=function(c,d,b,f,h){function e(a,b,e){return function(){var f=document.getElementById(c.id+"_displayarea");e&&f.appendChild(b);f=f.style;a.resize(parseInt(f.width.replace("px",
"")),parseInt(f.height.replace("px","")));b.left=f.left;b.top=f.top}}this.embed=function(){if(a.html5){f.setupPlugins(h,b,e);c.innerHTML="";for(var g=a.utils.extend({screencolor:"0x000000"},b),d=["plugins","modes","events"],l=0;l<d.length;l++)delete g[d[l]];if(g.levels&&!g.sources)g.sources=b.levels;if(g.skin&&g.skin.toLowerCase().indexOf(".zip")>0)g.skin=g.skin.replace(/\.zip/i,".xml");g=new (a.html5(c).setup)(g);h.container=document.getElementById(h.id);h.setPlayer(g,"html5")}else return null};
this.supportsConfig=function(){if(a.vid.canPlayType)if(b){var c=a.utils.getFirstPlaylistItemFromConfig(b);if(typeof c.file=="undefined"&&typeof c.levels=="undefined")return!0;else if(c.file)return html5CanPlay(a.vid,c.file,c.provider,c.playlistfile);else if(c.levels&&c.levels.length)for(var e=0;e<c.levels.length;e++)if(c.levels[e].file&&html5CanPlay(a.vid,c.levels[e].file,c.provider,c.playlistfile))return!0}else return!0;return!1};html5CanPlay=function(b,c,e,f){if(f)return!1;if(e&&e=="youtube")return!0;
if(e&&e!="video"&&e!="http"&&e!="sound")return!1;c=a.utils.extension(c);return!a.utils.exists(c)||!a.utils.exists(a.utils.extensionmap[c])?!0:!a.utils.exists(a.utils.extensionmap[c].html5)?!1:a.utils.isLegacyAndroid()&&c.match(/m4v|mp4/)?!0:browserCanPlay(b,a.utils.extensionmap[c].html5)};browserCanPlay=function(a,b){return!b?!0:a.canPlayType(b)?!0:b=="audio/mp3"&&navigator.userAgent.match(/safari/i)?a.canPlayType("audio/mpeg"):!1}}})(jwplayer);(function(a){a.embed.logo=function(c,d,b){function f(a){typeof a!=
"undefined"&&(a.preventDefault(),a.stopPropagation());l.link&&window.open(l.link,"_blank")}function h(){if(l.link)k.style.opacity=l.out}function e(){if(l.hide)k.style.opacity=l.over}var g={prefix:"http://l.longtailvideo.com/"+d+"/",file:"logo.png",link:"http://www.longtailvideo.com/players/jw-flv-player/",margin:8,out:0.5,over:1,timeout:5,hide:!1,position:"bottom-left"};_css=a.utils.css;var k,l;(function(){if(g.prefix){var b=a.version.split(/\W/).splice(0,2).join("/");g.prefix.indexOf(b)<0&&(g.prefix+=
b+"/")}l=a.utils.extend({},g)})();(function(){k=document.createElement("img");k.id=b+"_jwplayer_logo";k.style.display="none";k.onload=function(){var a=_css,b=k,c={border:"none",textDecoration:"none",position:"absolute",cursor:"pointer",zIndex:10};c.display=l.hide?"none":"block";var e=l.position.toLowerCase().split("-"),f;for(f in e)c[e[f]]=l.margin;a(b,c);h()};if(l.file)k.src=l.file.indexOf("http://")===0?l.file:l.prefix+l.file})();(function(){l.link?(k.onmouseover=e,k.onmouseout=h,k.onclick=f):this.mouseEnabled=
!1})();return!l.file?void 0:k}})(jwplayer);(function(a){a.html5=function(c){this.setup=function(d){a.utils.extend(this,new a.html5.api(c,d));return this};return this}})(jwplayer);(function(a){var c=a.utils,d=c.css;a.html5.view=function(b,f,h){function e(){for(var a=0;a<s.plugins.order.length;a++){var b=s.plugins.order[a];if(c.exists(s.plugins.object[b].getDisplayElement))s.plugins.object[b].height=c.parseDimension(s.plugins.object[b].getDisplayElement().style.height),s.plugins.object[b].width=c.parseDimension(s.plugins.object[b].getDisplayElement().style.width),
s.plugins.config[b].currentPosition=s.plugins.config[b].position}k()}function g(){d(w,{display:s.getMedia().hasChrome()?"none":"block"})}function k(){var a=s.getMedia()?s.getMedia().getDisplayElement():null;if(c.exists(a)){D!=a&&(D&&D.parentNode&&D.parentNode.replaceChild(a,D),D=a);for(a=0;a<s.plugins.order.length;a++){var b=s.plugins.order[a];if(c.exists(s.plugins.object[b].getDisplayElement))s.plugins.config[b].currentPosition=s.plugins.config[b].position}}m(s.width,s.height)}function l(b){switch(b.keyCode){case 27:v.jwGetFullscreen()&&
v.jwSetFullscreen(!1);break;case 32:v.jwGetState()!=a.api.events.state.IDLE&&v.jwGetState()!=a.api.events.state.PAUSED?v.jwPause():v.jwPlay()}}function m(a,b){if(A.style.display!="none"){var c=[].concat(s.plugins.order);c.reverse();B=c.length+2;if(s.fullscreen)(!navigator||!(navigator.vendor&&navigator.vendor.indexOf("Apple")==0))&&o(t,c,!0);else if(s.width=a,s.height=b,y=a,x=b,d(w,{top:0,bottom:0,left:0,right:0,width:a,height:b,position:"relative"}),d(A,{height:x,width:y}),c=o(p,c),c.length>0){B+=
c.length;var e=c.indexOf("playlist"),f=c.indexOf("controlbar");e>=0&&f>=0&&(c[e]=c.splice(f,1,c[e])[0]);o(q,c,!0)}n()}}function o(b,e,f){for(var g=[],h=0;h<e.length;h++){var j=e[h];if(c.exists(s.plugins.object[j].getDisplayElement))if(s.plugins.config[j].currentPosition!=a.html5.view.positions.NONE){var k=b(j,B--);k?(s.plugins.object[j].resize(k.width,k.height),f&&(delete k.width,delete k.height),d(s.plugins.object[j].getDisplayElement(),k)):g.push(j)}else d(s.plugins.object[j].getDisplayElement(),
{display:"none"})}return g}function p(b,e){if(c.exists(s.plugins.object[b].getDisplayElement)&&s.plugins.config[b].position&&[a.html5.view.positions.TOP,a.html5.view.positions.RIGHT,a.html5.view.positions.BOTTOM,a.html5.view.positions.LEFT].toString().indexOf(s.plugins.config[b].position.toUpperCase())>-1){c.exists(s.plugins.object[b].getDisplayElement().parentNode)||A.appendChild(s.plugins.object[b].getDisplayElement());var f={position:"absolute",margin:0,padding:0,top:null},d=s.plugins.config[b].currentPosition.toLowerCase();
switch(d.toUpperCase()){case a.html5.view.positions.TOP:f.top=c.parseDimension(w.style.top);f.left=c.parseDimension(w.style.left);f.width=y-c.parseDimension(w.style.left)-c.parseDimension(w.style.right);f.height=s.plugins.object[b].height;w.style[d]=c.parseDimension(w.style[d])+s.plugins.object[b].height+"px";w.style.height=c.parseDimension(w.style.height)-f.height+"px";break;case a.html5.view.positions.RIGHT:f.top=c.parseDimension(w.style.top);f.right=c.parseDimension(w.style.right);f.width=s.plugins.object[b].width;
f.height=x-c.parseDimension(w.style.top)-c.parseDimension(w.style.bottom);w.style[d]=c.parseDimension(w.style[d])+s.plugins.object[b].width+"px";w.style.width=c.parseDimension(w.style.width)-f.width+"px";break;case a.html5.view.positions.BOTTOM:f.bottom=c.parseDimension(w.style.bottom);f.left=c.parseDimension(w.style.left);f.width=y-c.parseDimension(w.style.left)-c.parseDimension(w.style.right);f.height=s.plugins.object[b].height;w.style[d]=c.parseDimension(w.style[d])+s.plugins.object[b].height+
"px";w.style.height=c.parseDimension(w.style.height)-f.height+"px";break;case a.html5.view.positions.LEFT:f.top=c.parseDimension(w.style.top),f.left=c.parseDimension(w.style.left),f.width=s.plugins.object[b].width,f.height=x-c.parseDimension(w.style.top)-c.parseDimension(w.style.bottom),w.style[d]=c.parseDimension(w.style[d])+s.plugins.object[b].width+"px",w.style.width=c.parseDimension(w.style.width)-f.width+"px"}f.zIndex=e;return f}return!1}function q(a,b){c.exists(s.plugins.object[a].getDisplayElement().parentNode)||
w.appendChild(s.plugins.object[a].getDisplayElement());var e=s.width,f=s.height;typeof s.width=="string"&&s.width.lastIndexOf("%")>-1&&(percentage=parseFloat(s.width.substring(0,s.width.lastIndexOf("%")))/100,e=Math.round(window.innerWidth*percentage));typeof s.height=="string"&&s.height.lastIndexOf("%")>-1&&(percentage=parseFloat(s.height.substring(0,s.height.lastIndexOf("%")))/100,f=Math.round(window.innerHeight*percentage));return{position:"absolute",width:e-c.parseDimension(w.style.left)-c.parseDimension(w.style.right),
height:f-c.parseDimension(w.style.top)-c.parseDimension(w.style.bottom),zIndex:b}}function t(a,b){return{position:"fixed",width:s.width,height:s.height,zIndex:b}}function n(){if(c.exists(s.getMedia())){w.style.position="absolute";var a=s.getMedia().getDisplayElement();if(a&&a.tagName.toLowerCase()=="video"){a.style.position="absolute";var b,e;w.style.width.toString().lastIndexOf("%")>-1||w.style.width.toString().lastIndexOf("%")>-1?(e=w.getBoundingClientRect(),b=Math.abs(e.left)+Math.abs(e.right),
e=Math.abs(e.top)+Math.abs(e.bottom)):(b=c.parseDimension(w.style.width),e=c.parseDimension(w.style.height));if(a.parentNode)a.parentNode.style.left=w.style.left,a.parentNode.style.top=w.style.top;c.stretch(v.jwGetStretching(),a,b,e,a.videoWidth?a.videoWidth:400,a.videoHeight?a.videoHeight:300)}else(a=s.plugins.object.display.getDisplayElement())?s.getMedia().resize(c.parseDimension(a.style.width),c.parseDimension(a.style.height)):s.getMedia().resize(c.parseDimension(w.style.width),c.parseDimension(w.style.height))}}
var v=b,u=f,s=h,A,y,x,w,B,D;this.setup=function(){s&&s.getMedia()&&(u=s.getMedia().getDisplayElement());A=document.createElement("div");A.id=u.id;A.className=u.className;_videowrapper=document.createElement("div");_videowrapper.id=A.id+"_video_wrapper";u.id=A.id+"_video";d(A,{position:"relative",height:s.height,width:s.width,padding:0,backgroundColor:v.skin.getComponentSettings("display")&&v.skin.getComponentSettings("display").backgroundcolor?v.skin.getComponentSettings("display").backgroundcolor:
0,zIndex:0});d(u,{width:s.width,height:s.height,top:0,left:0,zIndex:1,margin:"auto",display:"block"});d(_videowrapper,{overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0});c.wrap(u,A);c.wrap(u,_videowrapper);w=document.createElement("div");w.id=A.id+"_displayarea";A.appendChild(w);e();v.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,g);v.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_LOADED,k);v.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_META,function(){n()});var b;if(c.exists(window.onresize))b=
window.onresize;window.onresize=function(a){if(c.exists(b))try{b(a)}catch(e){}if(v.jwGetFullscreen())a=document.body.getBoundingClientRect(),s.width=Math.abs(a.left)+Math.abs(a.right),s.height=window.innerHeight;m(s.width,s.height)}};this.resize=m;this.fullscreen=function(a){if(navigator&&navigator.vendor&&navigator.vendor.indexOf("Apple")===0){if(s.getMedia().getDisplayElement().webkitSupportsFullscreen)if(a)try{s.getMedia().getDisplayElement().webkitEnterFullscreen()}catch(b){}else try{s.getMedia().getDisplayElement().webkitExitFullscreen()}catch(c){}}else a?
(document.onkeydown=l,clearInterval(void 0),a=document.body.getBoundingClientRect(),s.width=Math.abs(a.left)+Math.abs(a.right),s.height=window.innerHeight,a={position:"fixed",width:"100%",height:"100%",top:0,left:0,zIndex:2147483E3},d(A,a),a.zIndex=1,s.getMedia()&&s.getMedia().getDisplayElement()&&d(s.getMedia().getDisplayElement(),a),a.zIndex=2,d(w,a)):(document.onkeydown="",s.width=y,s.height=x,d(A,{position:"relative",height:s.height,width:s.width,zIndex:0})),m(s.width,s.height)}};a.html5.view.positions=
{TOP:"TOP",RIGHT:"RIGHT",BOTTOM:"BOTTOM",LEFT:"LEFT",OVER:"OVER",NONE:"NONE"}})(jwplayer);(function(a){var c={backgroundcolor:"",margin:10,font:"Arial,sans-serif",fontsize:10,fontcolor:0,fontstyle:"normal",fontweight:"bold",buttoncolor:16777215,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"}]}}};_utils=a.utils;_css=_utils.css;_hide=function(a){_css(a,{display:"none"})};_show=function(a){_css(a,{display:"block"})};a.html5.controlbar=function(d,b){function f(){U||
(U=r.skin.getSkinElement("controlbar","background"))||(U={width:0,height:0,src:null});return U}function h(){j=Q=J=0;if(!P){var a={height:f().height,backgroundColor:G.backgroundcolor};C=document.createElement("div");C.id=r.id+"_jwplayer_controlbar";_css(C,a)}var b=r.skin.getSkinElement("controlbar","capLeft"),a=r.skin.getSkinElement("controlbar","capRight");b&&t("capLeft","left",!1,C);b={position:"absolute",height:f().height,left:b?b.width:0,zIndex:0};o("background",C,b,"img");if(f().src)z.background.src=
f().src;b.zIndex=1;o("elements",C,b);a&&t("capRight","right",!1,C)}function e(){var a=["timeSlider","volumeSlider","timeSliderRail","volumeSliderRail"],b;for(b in a){var c=a[b];typeof z[c]!="undefined"&&(O[c]=z[c].getBoundingClientRect())}}function g(b){if(!aa&&(G.position==a.html5.view.positions.OVER||r.jwGetFullscreen()))switch(clearTimeout(R),r.jwGetState()){case a.api.events.state.PAUSED:case a.api.events.state.IDLE:(!G.idlehide||_utils.exists(b))&&l();G.idlehide&&(R=setTimeout(function(){k()},
2E3));break;default:b&&l(),R=setTimeout(function(){k()},2E3)}}function k(){la();_utils.cancelAnimation(C);_utils.fadeTo(C,0,0.1,1,0)}function l(){ka();_utils.cancelAnimation(C);_utils.fadeTo(C,1,0,1,0)}function m(b){return function(){W&&S!=b&&(S=b,ba.sendEvent(b,{component:"controlbar",boundingRect:G.position==a.html5.view.positions.OVER||r.jwGetFullscreen()?_utils.getDimensions(C):{x:0,y:0,width:0,height:0}}))}}function o(a,b,c,e){P?e=document.getElementById(C.id+"_"+a):(e||(e="div"),e=document.createElement(e),
z[a]=e,e.id=C.id+"_"+a,b.appendChild(e));_utils.exists(c)&&_css(e,c);return e}function p(){q(G.layout.left);q(G.layout.right,-1);q(G.layout.center)}function q(a,b){var c=a.position=="right"?"right":"left",e=_utils.extend([],a.elements);_utils.exists(b)&&e.reverse();for(var d=0;d<e.length;d++){var g=e[d],h=c,k=void 0,l=void 0,m=void 0,l=l=void 0;if(g.type=="divider")t("divider"+j++,h,!0,void 0,void 0,g.width,g.element);else switch(g.name){case "play":t("playButton",h,!1);t("pauseButton",h,!0);s("playButton",
"jwPlay");s("pauseButton","jwPause");break;case "prev":t("prevButton",h,!0);s("prevButton","jwPlaylistPrev");break;case "stop":t("stopButton",h,!0);s("stopButton","jwStop");break;case "next":t("nextButton",h,!0);s("nextButton","jwPlaylistNext");break;case "elapsed":t("elapsedText",h,!0);break;case "time":l=!_utils.exists(r.skin.getSkinElement("controlbar","timeSliderCapLeft"))?0:r.skin.getSkinElement("controlbar","timeSliderCapLeft").width;m=!_utils.exists(r.skin.getSkinElement("controlbar","timeSliderCapRight"))?
0:r.skin.getSkinElement("controlbar","timeSliderCapRight").width;k=h=="left"?l:m;l=r.skin.getSkinElement("controlbar","timeSliderRail").width+l+m;l={height:f().height,position:"absolute",top:0,width:l};l[h]=h=="left"?J:Q;g=o("timeSlider",z.elements,l);t("timeSliderCapLeft",h,!0,g,h=="left"?0:k);t("timeSliderRail",h,!1,g,k);t("timeSliderBuffer",h,!1,g,k);t("timeSliderProgress",h,!1,g,k);t("timeSliderThumb",h,!1,g,k);t("timeSliderCapRight",h,!0,g,h=="right"?0:k);A("time");break;case "fullscreen":t("fullscreenButton",
h,!1);t("normalscreenButton",h,!0);s("fullscreenButton","jwSetFullscreen",!0);s("normalscreenButton","jwSetFullscreen",!1);break;case "volume":l=!_utils.exists(r.skin.getSkinElement("controlbar","volumeSliderCapLeft"))?0:r.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;m=!_utils.exists(r.skin.getSkinElement("controlbar","volumeSliderCapRight"))?0:r.skin.getSkinElement("controlbar","volumeSliderCapRight").width;k=h=="left"?l:m;l=r.skin.getSkinElement("controlbar","volumeSliderRail").width+
l+m;l={height:f().height,position:"absolute",top:0,width:l};l[h]=h=="left"?J:Q;g=o("volumeSlider",z.elements,l);t("volumeSliderCapLeft",h,!0,g,h=="left"?0:k);t("volumeSliderRail",h,!0,g,k);t("volumeSliderProgress",h,!1,g,k);t("volumeSliderCapRight",h,!0,g,h=="right"?0:k);A("volume");break;case "mute":t("muteButton",h,!1);t("unmuteButton",h,!0);s("muteButton","jwSetMute",!0);s("unmuteButton","jwSetMute",!1);break;case "duration":t("durationText",h,!0)}}}function t(a,b,c,e,d,g,h){if(_utils.exists(r.skin.getSkinElement("controlbar",
a))||a.indexOf("Text")>0||a.indexOf("divider")===0){var j={height:f().height,position:"absolute",display:"block",top:0};if((a.indexOf("next")===0||a.indexOf("prev")===0)&&r.jwGetPlaylist().length<2)c=!1,j.display="none";var k;if(a.indexOf("Text")>0)a.innerhtml="00:00",j.font=G.fontsize+"px/"+(f().height+1)+"px "+G.font,j.color=G.fontcolor,j.textAlign="center",j.fontWeight=G.fontweight,j.fontStyle=G.fontstyle,j.cursor="default",k=14+3*G.fontsize;else if(a.indexOf("divider")===0)if(g)isNaN(parseInt(g))||
(k=parseInt(g));else if(h){if(g=r.skin.getSkinElement("controlbar",h))j.background="url("+g.src+") repeat-x center left",k=g.width}else j.background="url("+r.skin.getSkinElement("controlbar","divider").src+") repeat-x center left",k=r.skin.getSkinElement("controlbar","divider").width;else j.background="url("+r.skin.getSkinElement("controlbar",a).src+") repeat-x center left",k=r.skin.getSkinElement("controlbar",a).width;if(b=="left")j.left=isNaN(d)?J:d,c&&(J+=k);else if(b=="right")j.right=isNaN(d)?
Q:d,c&&(Q+=k);if(_utils.typeOf(e)=="undefined")e=z.elements;j.width=k;if(P)_css(z[a],j);else{var l=o(a,e,j);if(_utils.exists(r.skin.getSkinElement("controlbar",a+"Over")))l.onmouseover=function(){l.style.backgroundImage=["url(",r.skin.getSkinElement("controlbar",a+"Over").src,")"].join("")},l.onmouseout=function(){l.style.backgroundImage=["url(",r.skin.getSkinElement("controlbar",a).src,")"].join("")}}}}function n(){h();p();H();u()}function v(a){K=r.jwGetPlaylist()[a.index].duration;D({id:r.id,duration:K,
position:0});y({id:r.id,bufferProgress:0})}function u(){D({id:r.id,duration:r.jwGetDuration(),position:0});y({id:r.id,bufferProgress:0});x({id:r.id,mute:r.jwGetMute()});w({id:r.id,newstate:a.api.events.state.IDLE});E({id:r.id,volume:r.jwGetVolume()})}function s(a,b,c){if(!P&&_utils.exists(r.skin.getSkinElement("controlbar",a))&&(a=z[a],_utils.exists(a)))_css(a,{cursor:"pointer"}),a.onmouseup=b=="fullscreen"?function(a){a.stopPropagation();r.jwSetFullscreen(!r.jwGetFullscreen())}:function(a){a.stopPropagation();
if(_utils.exists(c))r[b](c);else r[b]()}}function A(b){if(!P){var c=z[b+"Slider"];_css(z.elements,{cursor:"pointer"});_css(c,{cursor:"pointer"});c.onmousedown=function(){T=b};c.onmouseup=function(b){b.stopPropagation();b=b.pageX;M=!1;T=="time"?(b=b-O.timeSliderRail.left+window.pageXOffset,b=b/O.timeSliderRail.width*K,b<0?b=0:b>K&&(b=K-3),(r.jwGetState()==a.api.events.state.PAUSED||r.jwGetState()==a.api.events.state.IDLE)&&r.jwPlay(),r.jwSeek(b)):T=="volume"&&(b=b-O.volumeSliderRail.left-window.pageXOffset,
b=Math.round(b/O.volumeSliderRail.width*100),b<0?b=0:b>100&&(b=100),r.jwGetMute()&&r.jwSetMute(!1),r.jwSetVolume(b));T="none"};c.onmousemove=function(a){T=="time"&&(M=!0,_css(z.timeSliderThumb,{left:a.pageX-O[b+"Slider"].left-window.pageXOffset}))}}}function y(a){if(_utils.exists(a.bufferPercent))V=a.bufferPercent;if(O.timeSliderRail)a=O.timeSliderRail.width,a=isNaN(Math.round(a*V/100))?0:Math.round(a*V/100),_css(z.timeSliderBuffer,{width:a})}function x(a){a.mute?(_hide(z.muteButton),_show(z.unmuteButton),
_hide(z.volumeSliderProgress)):(_show(z.muteButton),_hide(z.unmuteButton),_show(z.volumeSliderProgress))}function w(b){b.newstate==a.api.events.state.BUFFERING||b.newstate==a.api.events.state.PLAYING?(_show(z.pauseButton),_hide(z.playButton)):(_hide(z.pauseButton),_show(z.playButton));g();b.newstate==a.api.events.state.IDLE?(_hide(z.timeSliderBuffer),_hide(z.timeSliderProgress),_hide(z.timeSliderThumb),D({id:r.id,duration:r.jwGetDuration(),position:0})):(_show(z.timeSliderBuffer),b.newstate!=a.api.events.state.BUFFERING&&
(_show(z.timeSliderProgress),_show(z.timeSliderThumb)))}function B(a){y({bufferPercent:0});D(_utils.extend(a,{position:0,duration:K}))}function D(a){if(_utils.exists(a.position))N=a.position;if(_utils.exists(a.duration))K=a.duration;var a=N===K===0?0:N/K,b=O.timeSliderRail;if(b&&(a=isNaN(Math.round(b.width*a))?0:Math.round(b.width*a),z.timeSliderProgress&&(z.timeSliderProgress.style.width=a+"px",!M&&z.timeSliderThumb)))z.timeSliderThumb.style.left=a+"px";if(z.durationText)z.durationText.innerHTML=
_utils.timeFormat(K);if(z.elapsedText)z.elapsedText.innerHTML=_utils.timeFormat(N)}function H(){var b,c,d=document.getElementById(C.id+"_elements");if(d){var g=d.childNodes,h;for(h in d.childNodes)if(!isNaN(parseInt(h,10))){if(g[h].id.indexOf(C.id+"_divider")===0&&c&&c.id.indexOf(C.id+"_divider")===0&&g[h].style.backgroundImage==c.style.backgroundImage)g[h].style.display="none";else if(g[h].id.indexOf(C.id+"_divider")===0&&b&&b.style.display!="none")g[h].style.display="block";g[h].style.display!=
"none"&&(c=g[h]);b=g[h]}}r.jwGetFullscreen()?(_show(z.normalscreenButton),_hide(z.fullscreenButton)):(_hide(z.normalscreenButton),_show(z.fullscreenButton));b={width:Y};c={};if(G.position==a.html5.view.positions.OVER||r.jwGetFullscreen())b.left=G.margin,b.width-=2*G.margin,b.top=I-f().height-G.margin,b.height=f().height;d=r.skin.getSkinElement("controlbar","capLeft");g=r.skin.getSkinElement("controlbar","capRight");c.left=d?d.width:0;c.width=b.width-c.left-(g?g.width:0);d=!_utils.exists(r.skin.getSkinElement("controlbar",
"timeSliderCapLeft"))?0:r.skin.getSkinElement("controlbar","timeSliderCapLeft").width;_css(z.timeSliderRail,{width:c.width-J-Q,left:d});_utils.exists(z.timeSliderCapRight)&&_css(z.timeSliderCapRight,{left:d+(c.width-J-Q)});_css(C,b);_css(z.elements,c);_css(z.background,c);e();return b}function E(a){if(_utils.exists(z.volumeSliderRail)){var a=isNaN(a.volume/100)?1:a.volume/100,b=_utils.parseDimension(z.volumeSliderRail.style.width),a=isNaN(Math.round(b*a))?0:Math.round(b*a);_utils.parseDimension(z.volumeSliderRail.style.right);
b=!_utils.exists(r.skin.getSkinElement("controlbar","volumeSliderCapLeft"))?0:r.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;_css(z.volumeSliderProgress,{width:a,left:b});_utils.exists(z.volumeSliderCapLeft)&&_css(z.volumeSliderCapLeft,{left:0})}}var r=d,G=_utils.extend({},c,r.skin.getComponentSettings("controlbar"),b);if(!(G.position==a.html5.view.positions.NONE||typeof a.html5.view.positions[G.position]=="undefined")){if(_utils.mapLength(r.skin.getComponentLayout("controlbar"))>
0)G.layout=r.skin.getComponentLayout("controlbar");var C,j,J,Q,T="none",M,N,K,V,Y,I,z={},P=!1,O={},U,aa=!1,R,S,W=!1,Z=!1,ba=new a.html5.eventdispatcher;_utils.extend(this,ba);this.getDisplayElement=function(){return C};this.resize=function(a,b){_utils.cancelAnimation(C);document.getElementById(r.id).onmousemove=g;Y=a;I=b;Z!=r.jwGetFullscreen()&&(Z=r.jwGetFullscreen(),S=void 0);var c=H();g();D({id:r.id,duration:K,position:N});y({id:r.id,bufferPercent:V});return c};this.show=function(){aa&&(aa=!1,_show(C),
ka())};this.hide=function(){aa||(aa=!0,_hide(C),la())};var ka=m(a.api.events.JWPLAYER_COMPONENT_SHOW),la=m(a.api.events.JWPLAYER_COMPONENT_HIDE);(function(){h();p();e();P=!0;r.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,n);r.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,v);r.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_BUFFER,y);r.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,w);r.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_TIME,D);r.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_MUTE,
x);r.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_VOLUME,E);r.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_COMPLETE,B);G.idlehide=G.idlehide.toString().toLowerCase()=="true";G.position==a.html5.view.positions.OVER&&G.idlehide?(C.style.opacity=0,W=!0):setTimeout(function(){W=!0;ka()},1);u()})();return this}}})(jwplayer);(function(a){var c=a.utils;a.html5.controller=function(d,b,f,h){function e(){try{return o(n.item),n.playlist[n.item].levels[0].file.length>0&&(v||n.state==a.api.events.state.IDLE?
(n.getMedia().load(n.playlist[n.item]),v=!1):n.state==a.api.events.state.PAUSED&&n.getMedia().play()),!0}catch(b){s.sendEvent(a.api.events.JWPLAYER_ERROR,b)}return!1}function g(b){c.exists(b)||(b=!0);try{return n.getMedia().stop(b),!0}catch(e){s.sendEvent(a.api.events.JWPLAYER_ERROR,e)}return!1}function k(){try{n.playlist[n.item].levels[0].file.length>0&&(n.config.shuffle?o(l()):n.item+1==n.playlist.length?o(0):o(n.item+1));if(n.state!=a.api.events.state.IDLE){var b=n.state;n.state=a.api.events.state.IDLE;
s.sendEvent(a.api.events.JWPLAYER_PLAYER_STATE,{oldstate:b,newstate:a.api.events.state.IDLE})}e();return!0}catch(c){s.sendEvent(a.api.events.JWPLAYER_ERROR,c)}return!1}function l(){var a=null;if(n.playlist.length>1)for(;!c.exists(a);)a=Math.floor(Math.random()*n.playlist.length),a==n.item&&(a=null);else a=0;return a}function m(b){if(!n.playlist||!n.playlist[b])return!1;try{return n.playlist[b].levels[0].file.length>0&&(n.state!==a.api.events.state.IDLE&&(n.playlist[n.item].provider==n.playlist[b].provider?
g(!1):g()),o(b),e()),!0}catch(c){s.sendEvent(a.api.events.JWPLAYER_ERROR,c)}return!1}function o(b){if(n.playlist[b]&&(n.setActiveMediaProvider(n.playlist[b]),n.item!=b))n.item=b,v=!0,s.sendEvent(a.api.events.JWPLAYER_PLAYLIST_ITEM,{index:b})}function p(){switch(n.config.repeat.toUpperCase()){case a.html5.controller.repeatoptions.SINGLE:e();break;case a.html5.controller.repeatoptions.ALWAYS:n.item==n.playlist.length-1&&!n.config.shuffle?m(0):k();break;case a.html5.controller.repeatoptions.LIST:n.item==
n.playlist.length-1&&!n.config.shuffle?(g(),o(0)):k();break;default:g()}}function q(a){return function(){y?t(a,arguments):x.push({method:a,arguments:arguments})}}function t(a,b){var c=[];for(i=0;i<b.length;i++)c.push(b[i]);a.apply(this,c)}var n=f,v=!0,u=-1,d=c.exists(n.config.debug)&&n.config.debug.toString().toLowerCase()=="console",s=new a.html5.eventdispatcher(b.id,d);c.extend(this,s);var A=[],y=!1;n.addGlobalListener(function(a){y?s.sendEvent(a.type,a):A.push(a)});n.addEventListener(a.api.events.JWPLAYER_MEDIA_BUFFER_FULL,
function(){n.getMedia().play()});n.addEventListener(a.api.events.JWPLAYER_MEDIA_TIME,function(a){if(a.position>=n.playlist[n.item].start&&u>=0)n.playlist[n.item].start=u,u=-1});n.addEventListener(a.api.events.JWPLAYER_MEDIA_COMPLETE,function(){setTimeout(p,25)});a.html5.controller.repeatoptions={LIST:"LIST",ALWAYS:"ALWAYS",SINGLE:"SINGLE",NONE:"NONE"};var x=[];this.play=q(e);this.pause=q(function(){try{if(n.playlist[n.item].levels[0].file.length>0)switch(n.state){case a.api.events.state.PLAYING:case a.api.events.state.BUFFERING:n.getMedia().pause()}return!0}catch(b){s.sendEvent(a.api.events.JWPLAYER_ERROR,
b)}return!1});this.seek=q(function(b){try{if(n.playlist[n.item].levels[0].file.length>0)switch(typeof b!="number"&&(b=parseFloat(b)),n.state){case a.api.events.state.IDLE:if(u<0)u=n.playlist[n.item].start,n.playlist[n.item].start=b;e();break;case a.api.events.state.PLAYING:case a.api.events.state.PAUSED:case a.api.events.state.BUFFERING:n.seek(b)}return!0}catch(c){s.sendEvent(a.api.events.JWPLAYER_ERROR,c)}return!1});this.stop=q(g);this.next=q(k);this.prev=q(function(){try{n.playlist[n.item].levels[0].file.length>
0&&(n.config.shuffle?o(l()):n.item===0?o(n.playlist.length-1):o(n.item-1));if(n.state!=a.api.events.state.IDLE){var b=n.state;n.state=a.api.events.state.IDLE;s.sendEvent(a.api.events.JWPLAYER_PLAYER_STATE,{oldstate:b,newstate:a.api.events.state.IDLE})}e();return!0}catch(c){s.sendEvent(a.api.events.JWPLAYER_ERROR,c)}return!1});this.item=q(m);this.setVolume=q(function(b){try{o(n.item);var c=n.getMedia();switch(typeof b){case "number":c.volume(b);break;case "string":c.volume(parseInt(b,10))}return!0}catch(e){s.sendEvent(a.api.events.JWPLAYER_ERROR,
e)}return!1});this.setMute=q(function(b){try{o(n.item);var c=n.getMedia();typeof b=="undefined"?c.mute(!n.mute):b.toString().toLowerCase()=="true"?c.mute(!0):c.mute(!1);return!0}catch(e){s.sendEvent(a.api.events.JWPLAYER_ERROR,e)}return!1});this.resize=q(function(b,c){try{return n.width=b,n.height=c,h.resize(b,c),s.sendEvent(a.api.events.JWPLAYER_RESIZE,{width:n.width,height:n.height}),!0}catch(e){s.sendEvent(a.api.events.JWPLAYER_ERROR,e)}return!1});this.setFullscreen=q(function(b){try{return typeof b==
"undefined"?(n.fullscreen=!n.fullscreen,h.fullscreen(!n.fullscreen)):b.toString().toLowerCase()=="true"?(n.fullscreen=!0,h.fullscreen(!0)):(n.fullscreen=!1,h.fullscreen(!1)),s.sendEvent(a.api.events.JWPLAYER_RESIZE,{width:n.width,height:n.height}),s.sendEvent(a.api.events.JWPLAYER_FULLSCREEN,{fullscreen:b}),!0}catch(c){s.sendEvent(a.api.events.JWPLAYER_ERROR,c)}return!1});this.load=q(function(b){try{return g(),n.loadPlaylist(b),o(n.item),!0}catch(c){s.sendEvent(a.api.events.JWPLAYER_ERROR,c)}return!1});
this.playerReady=function(b){if(!y){s.sendEvent(a.api.events.JWPLAYER_READY,b);a.utils.exists(window.playerReady)&&playerReady(b);if(a.utils.exists(window[f.config.playerReady]))window[f.config.playerReady](b);for(;A.length>0;)b=A.shift(),s.sendEvent(b.type,b);for(f.config.autostart&&!a.utils.isIOS()&&m(n.item);x.length>0;)b=x.shift(),t(b.method,b.arguments);y=!0}}}})(jwplayer);(function(a){a.html5.defaultSkin=function(){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));return this}})(jwplayer);(function(a){_utils=a.utils;_css=_utils.css;_hide=function(a){_css(a,{display:"none"})};_show=function(a){_css(a,{display:"block"})};a.html5.display=function(c,d){function b(){y=u.display_image.naturalWidth;x=u.display_image.naturalHeight;f()}function f(){_utils.stretch(v.jwGetStretching(),
u.display_image,s,A,y,x)}function h(a,b){var c=document.createElement(a);c.id=v.id+"_jwplayer_"+b;_css(c,M[b].style);return c}function e(){for(var a in u)if(_utils.exists(M[a].click))u[a].onclick=M[a].click}function g(a){D?k():(u.display_icon.style.backgroundImage=["url(",v.skin.getSkinElement("display",a).src,")"].join(""),_css(u.display_icon,{width:v.skin.getSkinElement("display",a).width,height:v.skin.getSkinElement("display",a).height,top:(v.skin.getSkinElement("display","background").height-
v.skin.getSkinElement("display",a).height)/2,left:(v.skin.getSkinElement("display","background").width-v.skin.getSkinElement("display",a).width)/2}),!J&&n.icons.toString()=="true"&&(_show(u.display_icon),_show(u.display_iconBackground),N()),_utils.exists(v.skin.getSkinElement("display",a+"Over"))?(u.display_icon.onmouseover=function(){u.display_icon.style.backgroundImage=["url(",v.skin.getSkinElement("display",a+"Over").src,")"].join("")},u.display_icon.onmouseout=function(){u.display_icon.style.backgroundImage=
["url(",v.skin.getSkinElement("display",a).src,")"].join("")}):(u.display_icon.onmouseover=null,u.display_icon.onmouseout=null))}function k(){n.icons.toString()=="true"&&(_hide(u.display_icon),_hide(u.display_iconBackground),K())}function l(){u.display_image.style.display="none"}function m(b){if((b.type==a.api.events.JWPLAYER_PLAYER_STATE||b.type==a.api.events.JWPLAYER_PLAYLIST_ITEM)&&D)D=!1,_hide(u.display_text);b=v.jwGetState();b!=G&&(G=b,r>=0&&clearTimeout(r),C||v.jwGetState()==a.api.events.state.PLAYING||
v.jwGetState()==a.api.events.state.PAUSED?p(v.jwGetState()):r=setTimeout(o(v.jwGetState()),500))}function o(a){return function(){p(a)}}function p(b){_utils.exists(B)&&(clearInterval(B),B=null,_utils.animations.rotate(u.display_icon,0));switch(b){case a.api.events.state.BUFFERING:_utils.isIOS()?(l(),k()):(v.jwGetPlaylist()[v.jwGetItem()].provider=="sound"&&q(),w=0,B=setInterval(function(){w+=H;_utils.animations.rotate(u.display_icon,w%360)},E),g("bufferIcon"),C=!0);break;case a.api.events.state.PAUSED:_utils.isIOS()||
(v.jwGetPlaylist()[v.jwGetItem()].provider!="sound"&&_css(u.display_image,{background:"transparent no-repeat center center"}),g("playIcon"),C=!0);break;case a.api.events.state.IDLE:v.jwGetPlaylist()[v.jwGetItem()]&&v.jwGetPlaylist()[v.jwGetItem()].image?q():l();g("playIcon");C=!0;break;default:v.jwGetPlaylist()[v.jwGetItem()]&&v.jwGetPlaylist()[v.jwGetItem()].provider=="sound"?_utils.isIOS()?(l(),C=!1):q():(l(),C=!1),v.jwGetMute()&&n.showmute?g("muteIcon"):k()}r=-1}function q(){if(v.jwGetPlaylist()[v.jwGetItem()]&&
v.jwGetPlaylist()[v.jwGetItem()].image)_css(u.display_image,{display:"block"}),u.display_image.src=_utils.getAbsolutePath(v.jwGetPlaylist()[v.jwGetItem()].image)}function t(a){return function(){Q&&!J&&j!=a&&(j=a,T.sendEvent(a,{component:"display",boundingRect:_utils.getDimensions(u.display_iconBackground)}))}}var n=_utils.extend({},{icons:!0,showmute:!1},d),v=c,u={},s,A,y,x,w,B,D,H=!_utils.exists(v.skin.getComponentSettings("display").bufferrotation)?15:parseInt(v.skin.getComponentSettings("display").bufferrotation,
10),E=!_utils.exists(v.skin.getComponentSettings("display").bufferinterval)?100:parseInt(v.skin.getComponentSettings("display").bufferinterval,10),r=-1,G="",C=!0,j,J=!1,Q=!1,T=new a.html5.eventdispatcher;_utils.extend(this,T);var M={display:{style:{cursor:"pointer",top:0,left:0,overflow:"hidden"},click:function(b){typeof b.preventDefault!="undefined"?b.preventDefault():b.returnValue=!1;v.jwGetState()!=a.api.events.state.PLAYING?v.jwPlay():v.jwPause()}},display_icon:{style:{cursor:"pointer",position:"absolute",
top:(v.skin.getSkinElement("display","background").height-v.skin.getSkinElement("display","playIcon").height)/2,left:(v.skin.getSkinElement("display","background").width-v.skin.getSkinElement("display","playIcon").width)/2,border:0,margin:0,padding:0,zIndex:3,display:"none"}},display_iconBackground:{style:{cursor:"pointer",position:"absolute",top:(A-v.skin.getSkinElement("display","background").height)/2,left:(s-v.skin.getSkinElement("display","background").width)/2,border:0,backgroundImage:["url(",
v.skin.getSkinElement("display","background").src,")"].join(""),width:v.skin.getSkinElement("display","background").width,height:v.skin.getSkinElement("display","background").height,margin:0,padding:0,zIndex:2,display:"none"}},display_image:{style:{display:"none",width:s,height:A,position:"absolute",cursor:"pointer",left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1}},display_text:{style:{zIndex:4,position:"relative",opacity:0.8,backgroundColor:0,color:16777215,textAlign:"center",fontFamily:"Arial,sans-serif",
padding:"0 5px",fontSize:14}}};v.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,m);v.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_MUTE,m);v.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,m);v.jwAddEventListener(a.api.events.JWPLAYER_ERROR,function(a){D=!0;k();u.display_text.innerHTML=a.error;_show(u.display_text);u.display_text.style.top=(A-u.display_text.getBoundingClientRect().height)/2+"px"});(function(){u.display=h("div","display");u.display_text=h("div","display_text");u.display.appendChild(u.display_text);
u.display_image=h("img","display_image");u.display_image.onerror=function(){_hide(u.display_image)};u.display_image.onload=b;u.display_icon=h("div","display_icon");u.display_iconBackground=h("div","display_iconBackground");u.display.appendChild(u.display_image);u.display_iconBackground.appendChild(u.display_icon);u.display.appendChild(u.display_iconBackground);e();setTimeout(function(){Q=!0;n.icons.toString()=="true"&&N()},1)})();this.getDisplayElement=function(){return u.display};this.resize=function(a,
b){_css(u.display,{width:a,height:b});_css(u.display_text,{width:a-10,top:(b-u.display_text.getBoundingClientRect().height)/2});_css(u.display_iconBackground,{top:(b-v.skin.getSkinElement("display","background").height)/2,left:(a-v.skin.getSkinElement("display","background").width)/2});if(s!=a||A!=b)s=a,A=b,j=void 0,N();f();m({})};this.show=function(){J&&(J=!1,p(v.jwGetState()))};this.hide=function(){J||(k(),J=!0)};var N=t(a.api.events.JWPLAYER_COMPONENT_SHOW),K=t(a.api.events.JWPLAYER_COMPONENT_HIDE);
return this}})(jwplayer);(function(a){_css=a.utils.css;a.html5.dock=function(c,d){function b(b,f){if(g.length>0){var d=10,m=-1,n=c.skin.getSkinElement("dock","button").height,s=c.skin.getSkinElement("dock","button").width,t=b-s-10,r,u;h.align==a.html5.view.positions.LEFT&&(m=1,t=10);for(var C=0;C<g.length;C++){var j=Math.floor(d/f);d+n+10>(j+1)*f&&(d=(j+1)*f+10,j=Math.floor(d/f));var J=e[g[C]].div;J.style.top=d%f+"px";J.style.left=t+(c.skin.getSkinElement("dock","button").width+10)*j*m+"px";j={x:a.utils.parseDimension(J.style.left),
y:a.utils.parseDimension(J.style.top),width:s,height:n};if(!r||j.x<=r.x&&j.y<=r.y)r=j;if(!u||j.x>=u.x&&j.y>=u.y)u=j;d+=c.skin.getSkinElement("dock","button").height+10}p={x:r.x,y:r.y,width:u.x-r.x+u.width,height:r.y-u.y+u.height}}if(o!=c.jwGetFullscreen()||k!=b||l!=f)k=b,l=f,o=c.jwGetFullscreen(),q=void 0,setTimeout(v,1)}function f(a){return function(){!m&&q!=a&&g.length>0&&(q=a,t.sendEvent(a,{component:"dock",boundingRect:p}))}}var h=a.utils.extend({},{align:a.html5.view.positions.RIGHT},d);if(h.align!=
"FALSE"){var e={},g=[],k,l,m=!1,o=!1,p={x:0,y:0,width:0,height:0},q,t=new a.html5.eventdispatcher;_utils.extend(this,t);var n=document.createElement("div");n.id=c.id+"_jwplayer_dock";c.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,function(b){if(a.utils.isIOS())switch(b.newstate){case a.api.events.state.IDLE:s();break;default:A()}});this.getDisplayElement=function(){return n};this.setButton=function(f,d,h,m){if(!d&&e[f])a.utils.arrays.remove(g,f),n.removeChild(e[f].div),delete e[f];else if(d){e[f]||
(e[f]={});e[f].handler=d;e[f].outGraphic=h;e[f].overGraphic=m;if(!e[f].div){g.push(f);e[f].div=document.createElement("div");e[f].div.style.position="relative";n.appendChild(e[f].div);e[f].div.appendChild(document.createElement("img"));e[f].div.childNodes[0].style.position="absolute";e[f].div.childNodes[0].style.left=0;e[f].div.childNodes[0].style.top=0;e[f].div.childNodes[0].style.zIndex=10;e[f].div.childNodes[0].style.cursor="pointer";e[f].div.appendChild(document.createElement("img"));e[f].div.childNodes[1].style.position=
"absolute";e[f].div.childNodes[1].style.left=0;e[f].div.childNodes[1].style.top=0;if(c.skin.getSkinElement("dock","button"))e[f].div.childNodes[1].src=c.skin.getSkinElement("dock","button").src;e[f].div.childNodes[1].style.zIndex=9;e[f].div.childNodes[1].style.cursor="pointer";e[f].div.onmouseover=function(){if(e[f].overGraphic)e[f].div.childNodes[0].src=e[f].overGraphic;if(c.skin.getSkinElement("dock","buttonOver"))e[f].div.childNodes[1].src=c.skin.getSkinElement("dock","buttonOver").src};e[f].div.onmouseout=
function(){if(e[f].outGraphic)e[f].div.childNodes[0].src=e[f].outGraphic;if(c.skin.getSkinElement("dock","button"))e[f].div.childNodes[1].src=c.skin.getSkinElement("dock","button").src};if(e[f].overGraphic)e[f].div.childNodes[0].src=e[f].overGraphic;if(e[f].outGraphic)e[f].div.childNodes[0].src=e[f].outGraphic;if(c.skin.getSkinElement("dock","button"))e[f].div.childNodes[1].src=c.skin.getSkinElement("dock","button").src}if(d)e[f].div.onclick=function(b){b.preventDefault();a(c.id).callback(f);if(e[f].overGraphic)e[f].div.childNodes[0].src=
e[f].overGraphic;if(c.skin.getSkinElement("dock","button"))e[f].div.childNodes[1].src=c.skin.getSkinElement("dock","button").src}}b(k,l)};var v=f(a.api.events.JWPLAYER_COMPONENT_SHOW),u=f(a.api.events.JWPLAYER_COMPONENT_HIDE);this.resize=b;var s=function(){_css(n,{display:"block"});m&&(m=!1,v())},A=function(){_css(n,{display:"none"});m||(u(),m=!0)};this.hide=A;this.show=s;return this}}})(jwplayer);(function(a){a.html5.eventdispatcher=function(c,d){var b=new a.events.eventdispatcher(d);a.utils.extend(this,
b);this.sendEvent=function(f,d){a.utils.exists(d)||(d={});a.utils.extend(d,{id:c,version:a.version,type:f});b.sendEvent(f,d)}}})(jwplayer);(function(a){var c={prefix:"http://l.longtailvideo.com/html5/",file:"logo.png",link:"http://www.longtailvideo.com/players/jw-flv-player/",margin:8,out:0.5,over:1,timeout:5,hide:!0,position:"bottom-left"};_css=a.utils.css;a.html5.logo=function(d,b){function f(a){typeof a!="undefined"&&a.stopPropagation();q&&(l.jwPause(),l.jwSetFullscreen(!1),o.link&&window.open(o.link,
"_top"))}function h(){if(o.link&&q)p.style.opacity=o.out}function e(){if(o.hide.toString()=="true"&&q)p.style.opacity=o.over}function g(){if(o.hide.toString()=="true")p.style.display="block",p.style.opacity=0,a.utils.fadeTo(p,o.out,0.1,parseFloat(p.style.opacity)),m=setTimeout(function(){q=!1;o.hide.toString()=="true"&&a.utils.fadeTo(p,0,0.1,parseFloat(p.style.opacity))},o.timeout*1E3);q=!0}function k(b){b.newstate==a.api.events.state.BUFFERING&&(clearTimeout(m),g())}var l=d,m,o,p,q=!1;(function(){if(c.prefix){var e=
d.version.split(/\W/).splice(0,2).join("/");c.prefix.indexOf(e)<0&&(c.prefix+=e+"/")}if(b.position==a.html5.view.positions.OVER)b.position=c.position;o=a.utils.extend({},c)})();(function(){p=document.createElement("img");p.id=l.id+"_jwplayer_logo";p.style.display="none";p.onload=function(){var b=_css,c=p,e={textDecoration:"none",position:"absolute",cursor:"pointer"};e.display=o.hide.toString()=="true"?"none":"block";var f=o.position.toLowerCase().split("-"),d;for(d in f)e[f[d]]=o.margin;b(c,e);l.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,
k);h()};if(o.file)p.src=o.file.indexOf("http://")===0?o.file:o.prefix+o.file})();(function(){o.link?(p.onmouseover=e,p.onmouseout=h,p.onclick=f):this.mouseEnabled=!1})();if(o.file)return this.resize=function(){},this.getDisplayElement=function(){return p},this}})(jwplayer);(function(a){var c={ended:a.api.events.state.IDLE,playing:a.api.events.state.PLAYING,pause:a.api.events.state.PAUSED,buffering:a.api.events.state.BUFFERING},d=a.utils,b=d.isIOS();a.html5.mediavideo=function(f,h){function e(b){if(!(b==
a.api.events.state.PAUSED&&s==a.api.events.state.IDLE)&&s!=b){var c=s;n.state=s=b;t.sendEvent(a.api.events.JWPLAYER_PLAYER_STATE,{oldstate:c,newstate:b})}}function g(){}function k(b){var c;d.exists(b)&&b.lengthComputable&&b.total?c=b.loaded/b.total*100:d.exists(u.buffered)&&u.buffered.length>0&&(b=u.buffered.length-1,b>=0&&(c=u.buffered.end(b)/u.duration*100));D===!1&&s==a.api.events.state.BUFFERING&&(t.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER_FULL),D=!0);if(!B&&(c==100&&(B=!0),d.exists(c)&&c>
n.buffer))n.buffer=Math.round(c),t.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:Math.round(c)})}function l(a){c[a.type]&&(a.type=="ended"?p():e(c[a.type]))}function m(b){var c={height:b.target.videoHeight,width:b.target.videoWidth,duration:Math.round(b.target.duration*10)/10};if((n.duration===0||isNaN(n.duration))&&b.target.duration!=Infinity)n.duration=Math.round(b.target.duration*10)/10;t.sendEvent(a.api.events.JWPLAYER_MEDIA_META,{metadata:c})}function o(){d.exists(x)||(x=setInterval(function(){k()},
100))}function p(){s!=a.api.events.state.IDLE&&(_stop(!1),t.sendEvent(a.api.events.JWPLAYER_MEDIA_COMPLETE))}var q={abort:g,canplay:l,canplaythrough:l,durationchange:m,emptied:g,ended:l,error:function(b){if(s!=a.api.events.state.IDLE){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")switch(b=!d.exists(b.target.error)?b.target.parentNode.error:b.target.error,b.code){case b.MEDIA_ERR_ABORTED:c=
"You aborted the video playback: ";break;case b.MEDIA_ERR_NETWORK:c="A network error caused the video download to fail part-way: ";break;case b.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 b.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"){H--;if(H>0)return;c="The video could not be loaded, either because the server or network failed or because the format is not supported: "}else{d.log("An unknown error occurred.  Continuing...");return}_stop(!1);var b=c,c="",e;for(e in y.levels){var f=y.levels[e];v.ownerDocument.createElement("source");c+=a.utils.getAbsolutePath(f.file);e<y.levels.length-1&&(c+=", ")}_error=!0;t.sendEvent(a.api.events.JWPLAYER_ERROR,{error:b+c})}},loadeddata:m,loadedmetadata:m,loadstart:l,pause:l,play:g,
playing:l,progress:k,ratechange:g,seeked:l,seeking:l,stalled:l,suspend:l,timeupdate:function(b){if(d.exists(b)&&d.exists(b.target)){if(!isNaN(b.target.duration)&&(isNaN(n.duration)||n.duration<1))n.duration=b.target.duration==Infinity?0:Math.round(b.target.duration*10)/10;if(!A&&u.readyState>0)u.style.display="block",e(a.api.events.state.PLAYING);if(s==a.api.events.state.PLAYING){if(!A&&u.readyState>0){A=!0;try{if(u.currentTime<y.start)u.currentTime=y.start}catch(c){}u.volume=n.volume/100;u.muted=
n.mute}n.position=n.duration>0?Math.round(b.target.currentTime*10)/10:0;t.sendEvent(a.api.events.JWPLAYER_MEDIA_TIME,{position:n.position,duration:n.duration});n.position>=n.duration&&(n.position>0||n.duration>0)&&p()}}k(b)},volumechange:g,waiting:l,canshowcurrentframe:g,dataunavailable:g,empty:g,load:function(){},loadedfirstframe:g},t=new a.html5.eventdispatcher;d.extend(this,t);var n=f,v=h,u,s,A,y,x,w=!1,B,D,H;(function(){u=document.createElement("video");s=a.api.events.state.IDLE;for(var b in q)u.addEventListener(b,
function(a){if(d.exists(a.target.parentNode))q[a.type](a)},!0);u.setAttribute("x-webkit-airplay","allow");v.parentNode&&v.parentNode.replaceChild(u,v);if(!u.id)u.id=v.id})();this.load=function(c,f){typeof f=="undefined"&&(f=!0);y=c;d.empty(u);H=0;if(c.levels&&c.levels.length>0)if(c.levels.length==1)u.src=c.levels[0].file;else{u.src&&u.removeAttribute("src");for(var g=0;g<c.levels.length;g++){var h=u.ownerDocument.createElement("source");h.src=c.levels[g].file;u.appendChild(h);H++}}else u.src=c.file;
if(b){if(c.image)u.poster=c.image;u.controls="controls";u.style.display="block"}B=D=A=!1;n.buffer=0;if(!d.exists(c.start))c.start=0;n.duration=c.duration;t.sendEvent(a.api.events.JWPLAYER_MEDIA_LOADED);(!b&&c.levels.length==1||!w)&&u.load();w=!1;f&&(e(a.api.events.state.BUFFERING),t.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0}),this.play())};this.play=function(){s!=a.api.events.state.PLAYING&&(o(),D?e(a.api.events.state.PLAYING):e(a.api.events.state.BUFFERING),u.play())};this.pause=
function(){u.pause();e(a.api.events.state.PAUSED)};this.seek=function(a){if(!(n.duration<=0||isNaN(n.duration))&&!(n.position<=0||isNaN(n.position)))u.currentTime=a,u.play()};_stop=this.stop=function(b){d.exists(b)||(b=!0);clearInterval(x);x=null;if(b&&(u.style.display="none",D=!1,b=navigator.userAgent,b.match(/chrome/i)?u.src=void 0:b.match(/safari/i)?u.removeAttribute("src"):u.src="",u.removeAttribute("controls"),u.removeAttribute("poster"),d.empty(u),u.load(),w=!0,u.webkitSupportsFullscreen))try{u.webkitExitFullscreen()}catch(c){}e(a.api.events.state.IDLE)};
this.fullscreen=function(a){a===!0?this.resize("100%","100%"):this.resize(n.config.width,n.config.height)};this.resize=function(b,c){t.sendEvent(a.api.events.JWPLAYER_MEDIA_RESIZE,{fullscreen:n.fullscreen,width:b,hieght:c})};this.volume=function(c){if(!b)u.volume=c/100,n.volume=c,t.sendEvent(a.api.events.JWPLAYER_MEDIA_VOLUME,{volume:Math.round(c)})};this.mute=function(c){if(!b)u.muted=c,n.mute=c,t.sendEvent(a.api.events.JWPLAYER_MEDIA_MUTE,{mute:c})};this.getDisplayElement=function(){return u};this.hasChrome=
function(){return!1}}})(jwplayer);(function(a){var c=a.utils.css;a.html5.mediayoutube=function(d,b){function f(b){if(k!=b){var c=k;k=e.state=b;h.sendEvent(a.api.events.JWPLAYER_PLAYER_STATE,{oldstate:c,newstate:b})}}var h=new a.html5.eventdispatcher;a.utils.extend(this,h);var e=d,g=document.getElementById(b.id),k=a.api.events.state.IDLE,l,m;this.getDisplayElement=function(){return g};this.play=function(){k==a.api.events.state.IDLE?(h.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:100}),
h.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER_FULL),f(a.api.events.state.PLAYING)):k==a.api.events.state.PAUSED&&f(a.api.events.state.PLAYING)};this.pause=function(){f(a.api.events.state.PAUSED)};this.seek=function(){};this.stop=function(b){_utils.exists(b)||(b=!0);e.position=0;f(a.api.events.state.IDLE);b&&c(g,{display:"none"})};this.volume=function(b){e.volume=b;h.sendEvent(a.api.events.JWPLAYER_MEDIA_VOLUME,{volume:Math.round(b)})};this.mute=function(b){g.muted=b;e.mute=b;h.sendEvent(a.api.events.JWPLAYER_MEDIA_MUTE,
{mute:b})};this.resize=function(b,c){if(b*c>0&&l)l.width=m.width=b,l.height=m.height=c;h.sendEvent(a.api.events.JWPLAYER_MEDIA_RESIZE,{fullscreen:e.fullscreen,width:b,height:c})};this.fullscreen=function(a){a===!0?this.resize("100%","100%"):this.resize(e.config.width,e.config.height)};this.load=function(b){for(var b=b.levels[0].file,e=b.split(/\?|\#\!/),d="",k=0;k<e.length;k++)e[k].substr(0,2)=="v="&&(d=e[k].substr(2));d==""&&(d=b.indexOf("/v/")>=0?b.substr(b.indexOf("/v/")+3):b.indexOf("youtu.be")>=
0?b.substr(b.indexOf("youtu.be/")+9):b);d.indexOf("?")>-1&&(d=d.substr(0,d.indexOf("?")));d.indexOf("&")>-1&&(d=d.substr(0,d.indexOf("&")));b=["http://www.youtube.com/v/",d,"&amp;hl=en_US&amp;fs=1&autoplay=1"].join("");l=document.createElement("object");l.id=g.id;l.style.position="absolute";var e={movie:b,allowfullscreen:"true",allowscriptaccess:"always"},n;for(n in e)d=document.createElement("param"),d.name=n,d.value=e[n],l.appendChild(d);m=document.createElement("embed");l.appendChild(m);n={src:b,
type:"application/x-shockwave-flash",allowfullscreen:"true",allowscriptaccess:"always",width:l.width,height:l.height};for(var v in n)m.setAttribute(v,n[v]);l.appendChild(m);l.style.zIndex=2147483E3;g!=l&&g.parentNode&&g.parentNode.replaceChild(l,g);g=l;c(l,{display:"block"});f(a.api.events.state.BUFFERING);h.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0});h.sendEvent(a.api.events.JWPLAYER_MEDIA_LOADED);this.play()};this.hasChrome=function(){return k!=a.api.events.state.IDLE};this.embed=
m;return this}})(jwplayer);(function(a){var c=["width","height","start","duration","volume","mute","fullscreen","item","plugins","stretching"];a.html5.model=function(d,b,f){function h(b){var c=new a.html5.playlistloader;c.addEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,function(b){l.playlist=new a.html5.playlist(b);e(!0)});c.addEventListener(a.api.events.JWPLAYER_ERROR,function(){l.playlist=new a.html5.playlist({playlist:[]});e(!1)});c.load(b)}function e(){if(l.config.shuffle){var b=l,c=null;
if(l.playlist.length>1)for(;!a.utils.exists(c);)c=Math.floor(Math.random()*l.playlist.length),c==l.item&&(c=null);else c=0;b.item=c}else{if(l.config.item>=l.playlist.length)l.config.item=l.playlist.length-1;else if(l.config.item<0)l.config.item=0;l.item=l.config.item}o.sendEvent(a.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:l.playlist});o.sendEvent(a.api.events.JWPLAYER_PLAYLIST_ITEM,{index:l.item})}function g(b){b.type==a.api.events.JWPLAYER_MEDIA_LOADED&&(k=m.getDisplayElement());o.sendEvent(b.type,
b)}var k=b,l={id:k.id,playlist:[],state:a.api.events.state.IDLE,position:0,buffer:0,config:{width:480,height:320,item:-1,skin:void 0,file:void 0,image:void 0,start:0,duration:0,bufferlength:5,volume:90,mute:!1,fullscreen:!1,repeat:"",stretching:a.utils.stretching.UNIFORM,autostart:!1,debug:void 0,screencolor:void 0}},m,o=new a.html5.eventdispatcher;a.utils.extend(l,o);for(var p in f){typeof f[p]=="string"&&(b=/color$/.test(p)?"color":null,f[p]=a.utils.typechecker(f[p],b));var b=l.config,q=p.split("."),
t;for(t in q)t==q.length-1?b[q[t]]=f[p]:(a.utils.exists(b[q[t]])||(b[q[t]]={}),b=b[q[t]])}for(var n in c)f=c[n],l[f]=l.config[f];n=["display","logo","controlbar","playlist","dock"].concat([]);if(a.utils.exists(l.plugins)&&typeof l.plugins=="string"){var f=l.plugins.split(","),v;for(v in f)typeof f[v]=="string"&&n.push(f[v].replace(/^\s+|\s+$/g,""))}if(a.utils.isIOS()){if(n=["display","logo","dock","playlist"],!a.utils.exists(l.config.repeat))l.config.repeat="list"}else if(l.config.chromeless&&(n=
["logo","dock","playlist"],!a.utils.exists(l.config.repeat)))l.config.repeat="list";l.plugins={order:n,config:{},object:{}};if(typeof l.config.components!="undefined")for(var u in l.config.components)l.plugins.config[u]=l.config.components[u];for(var s in l.plugins.order)v=l.plugins.order[s],u=!a.utils.exists(l.plugins.config[v])?{}:l.plugins.config[v],l.plugins.config[v]=!a.utils.exists(l.plugins.config[v])?u:a.utils.extend(l.plugins.config[v],u),l.plugins.config[v].position=a.utils.exists(l.plugins.config[v].position)?
l.plugins.config[v].position.toString().toUpperCase():v=="playlist"?a.html5.view.positions.NONE:a.html5.view.positions.OVER;if(typeof l.plugins.config.dock!="undefined"){if(typeof l.plugins.config.dock!="object")s=l.plugins.config.dock.toString().toUpperCase(),l.plugins.config.dock={position:s};if(typeof l.plugins.config.dock.position!="undefined")l.plugins.config.dock.align=l.plugins.config.dock.position,l.plugins.config.dock.position=a.html5.view.positions.OVER}l.loadPlaylist=function(b){var c;
if(typeof b=="string")if(b.indexOf("[")==0||b.indexOf("{")=="0")try{c=eval(b)}catch(f){c=b}else c=b;else c=b;switch(a.utils.typeOf(c)){case "object":b=c;break;case "array":b={playlist:c};break;default:h(c);return}l.playlist=new a.html5.playlist(b);a.utils.extension(l.playlist[0].file)=="xml"?h(l.playlist[0].file):e()};var A={};l.setActiveMediaProvider=function(b){if(b.provider=="audio")b.provider="sound";var b=b.provider,c=m?m.getDisplayElement():null;if(b=="sound"||b=="http"||b=="")b="video";if(a.utils.exists(A[b]))m!=
A[b]&&(m&&m.stop(),m=A[b]);else{switch(b){case "video":m=new a.html5.mediavideo(l,c?c:k);break;case "youtube":m=new a.html5.mediayoutube(l,c?c:k)}if(!a.utils.exists(m))return!1;m.addGlobalListener(g);A[b]=m}return!0};l.getMedia=function(){return m};l.seek=function(b){o.sendEvent(a.api.events.JWPLAYER_MEDIA_SEEK,{position:l.position,offset:b});return m.seek(b)};l.setupPlugins=function(){if(!a.utils.exists(l.plugins)||!a.utils.exists(l.plugins.order)||l.plugins.order.length==0)return a.utils.log("No plugins to set up"),
l;for(var b=0;b<l.plugins.order.length;b++)try{var c=l.plugins.order[b];a.utils.exists(a.html5[c])?l.plugins.object[c]=c=="playlist"?new a.html5.playlistcomponent(d,l.plugins.config[c]):new a.html5[c](d,l.plugins.config[c]):l.plugins.order.splice(plugin,plugin+1);typeof l.plugins.object[c].addGlobalListener=="function"&&l.plugins.object[c].addGlobalListener(g)}catch(e){a.utils.log("Could not setup "+c)}};return l}})(jwplayer);(function(a){a.html5.playlist=function(c){var d=[];if(c.playlist&&c.playlist instanceof
Array&&c.playlist.length>0)for(var b in c.playlist)isNaN(parseInt(b))||d.push(new a.html5.playlistitem(c.playlist[b]));else d.push(new a.html5.playlistitem(c));return d}})(jwplayer);(function(a){var c={size:180,position:a.html5.view.positions.NONE,itemheight:60,thumbs:!0,fontcolor:"#000000",overcolor:"",activecolor:"",backgroundcolor:"#f8f8f8",font:"_sans",fontsize:"",fontstyle:"",fontweight:""},d={_sans:"Arial, Helvetica, sans-serif",_serif:"Times, Times New Roman, serif",_typewriter:"Courier New, Courier, monospace"};
_utils=a.utils;_css=_utils.css;_hide=function(a){_css(a,{display:"none"})};_show=function(a){_css(a,{display:"block"})};a.html5.playlistcomponent=function(b,f){function h(a){return function(){var b=A.getElementsByClassName("item")[a],c=t.fontcolor,e=x.item?"url("+x.item.src+")":"";if(a==q.jwGetPlaylistIndex()){if(t.activecolor!=="")c=t.activecolor;x.itemActive&&(e="url("+x.itemActive.src+")")}_css(b,{color:t.overcolor!==""?t.overcolor:c,backgroundImage:x.itemOver?"url("+x.itemOver.src+")":e})}}function e(a){return function(){var b=
A.getElementsByClassName("item")[a],c=t.fontcolor,e=x.item?"url("+x.item.src+")":"";if(a==q.jwGetPlaylistIndex()){if(t.activecolor!=="")c=t.activecolor;x.itemActive&&(e="url("+x.itemActive.src+")")}_css(b,{color:c,backgroundImage:e})}}function g(b){var c=s[b],f=document.createElement("li");f.className="item";_css(f,{height:t.itemheight,display:"block",cursor:"pointer",backgroundImage:x.item?"url("+x.item.src+")":"",backgroundSize:"100% "+t.itemheight+"px"});f.onmouseover=h(b);f.onmouseout=e(b);var d=
document.createElement("div"),g=new Image,k=b=0,l=0;if(t.thumbs.toString().toLowerCase()=="true"&&(c.image||c["playlist.image"]||x.itemImage)){g.className="image";x.itemImage?(b=(t.itemheight-x.itemImage.height)/2,k=x.itemImage.width,l=x.itemImage.height):(k=t.itemheight*4/3,l=t.itemheight);_css(d,{height:l,width:k,"float":"left",styleFloat:"left",cssFloat:"left",margin:"0 5px 0 0",background:"black",overflow:"hidden",margin:b+"px",position:"relative"});_css(g,{position:"relative"});d.appendChild(g);
g.onload=function(){a.utils.stretch(a.utils.stretching.FILL,g,k,l,this.naturalWidth,this.naturalHeight)};if(c["playlist.image"])g.src=c["playlist.image"];else if(c.image)g.src=c.image;else if(x.itemImage)g.src=x.itemImage.src;f.appendChild(d)}var m=v-k-b*2;u<t.itemheight*s.length&&(m-=15);d=document.createElement("div");_css(d,{position:"relative",height:"100%",overflow:"hidden"});var j=document.createElement("span");if(c.duration>0)j.className="duration",_css(j,{fontSize:(t.fontsize?t.fontsize:11)+
"px",fontWeight:t.fontweight?t.fontweight:"bold",width:"40px",height:t.fontsize?t.fontsize+10:20,lineHeight:24,"float":"right",styleFloat:"right",cssFloat:"right"}),j.innerHTML=_utils.timeFormat(c.duration),d.appendChild(j);j=document.createElement("span");j.className="title";_css(j,{padding:"5px 5px 0 "+(b?0:"5px"),height:t.fontsize?t.fontsize+10:20,lineHeight:t.fontsize?t.fontsize+10:20,overflow:"hidden","float":"left",styleFloat:"left",cssFloat:"left",width:(c.duration>0?m-50:m)-10+"px",fontSize:(t.fontsize?
t.fontsize:13)+"px",fontWeight:t.fontweight?t.fontweight:"bold"});j.innerHTML=c?c.title:"";d.appendChild(j);if(c.description)b=document.createElement("span"),b.className="description",_css(b,{display:"block","float":"left",styleFloat:"left",cssFloat:"left",margin:0,paddingLeft:j.style.paddingLeft,paddingRight:j.style.paddingRight,lineHeight:(t.fontsize?t.fontsize+4:16)+"px",overflow:"hidden",position:"relative"}),b.innerHTML=c.description,d.appendChild(b);f.appendChild(d);return f}function k(){n.innerHTML=
"";if(s=q.jwGetPlaylist()){items=[];var a=document.createElement("ul");_css(a,{width:n.style.width,minWidth:n.style.width,height:n.style.height,backgroundColor:t.backgroundcolor,backgroundImage:x.background?"url("+x.background.src+")":"",color:t.fontcolor,listStyle:"none",margin:0,padding:0,fontFamily:d[t.font]?d[t.font]:d._sans,fontSize:(t.fontsize?t.fontsize:11)+"px",fontStyle:t.fontstyle,fontWeight:t.fontweight,overflowY:"auto"});A=a;for(a=0;a<s.length;a++){var b=g(a);b.onclick=l(a);A.appendChild(b);
items.push(b)}y=q.jwGetPlaylistIndex();e(y)();n.appendChild(A);if(_utils.isIOS()&&window.iScroll)A.style.height=t.itemheight*s.length+"px",new iScroll(n.id)}}function l(a){return function(){q.jwPlaylistItem(a);q.jwPlay(!0)}}function m(a){if(y>=0)e(y)(),y=a.index;e(a.index)();A.scrollTop=q.jwGetPlaylistIndex()*t.itemheight}function o(){if(t.position==a.html5.view.positions.OVER)switch(q.jwGetState()){case a.api.events.state.IDLE:_show(n);break;default:_hide(n)}}function p(){for(var a in x)x[a]=q.skin.getSkinElement("playlist",
a)}var q=b,t=a.utils.extend({},c,q.skin.getComponentSettings("playlist"),f);if(!(t.position==a.html5.view.positions.NONE||typeof a.html5.view.positions[t.position]=="undefined")){var n,v,u,s,A,y=-1,x={background:void 0,item:void 0,itemOver:void 0,itemImage:void 0,itemActive:void 0};this.getDisplayElement=function(){return n};this.resize=function(a,b){v=a;u=b;q.jwGetFullscreen()?_hide(n):_css(n,{display:"block",width:v,height:u})};this.show=function(){_show(n)};this.hide=function(){_hide(n)};n=document.createElement("div");
n.id=q.id+"_jwplayer_playlistcomponent";switch(t.position){case a.html5.view.positions.RIGHT:case a.html5.view.positions.LEFT:n.style.width=t.size+"px";break;case a.html5.view.positions.TOP:case a.html5.view.positions.BOTTOM:n.style.height=t.size+"px"}p();if(x.item)t.itemheight=x.item.height;n.style.backgroundColor="#C6C6C6";q.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,k);q.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,m);q.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,
o);return this}}})(jwplayer);(function(a){function c(c){if(a.utils.isYouTube(c.file))return"youtube";else{var b=a.utils.extension(c.file),f;if(b&&a.utils.extensionmap[b]){if(b=="m3u8")return"video";f=a.utils.extensionmap[b].html5}else if(c.type)f=c.type;if(f)if(c=f.split("/")[0],c=="audio")return"sound";else if(c=="video")return c}return""}a.html5.playlistitem=function(d){d=a.utils.extend({},{author:"",date:"",description:"",image:"",link:"",mediaid:"",tags:"",title:"",provider:"",file:"",streamer:"",
duration:-1,start:0,currentLevel:-1,levels:[]},d);if(d.type)d.provider=d.type,delete d.type;d.levels.length===0&&(d.levels[0]=new a.html5.playlistitemlevel(d));d.provider=d.provider?d.provider.toLowerCase():c(d.levels[0]);return d}})(jwplayer);(function(a){a.html5.playlistitemlevel=function(c){var d={file:"",streamer:"",bitrate:0,width:0},b;for(b in d)a.utils.exists(c[b])&&(d[b]=c[b]);return d}})(jwplayer);(function(a){a.html5.playlistloader=function(){function c(c){var h=[];try{h=a.utils.parsers.rssparser.parse(c.responseXML.firstChild),
b.sendEvent(a.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:new a.html5.playlist({playlist:h})})}catch(e){d("Could not parse the playlist")}}function d(c){b.sendEvent(a.api.events.JWPLAYER_ERROR,{error:c?c:"could not load playlist for whatever reason.  too bad"})}var b=new a.html5.eventdispatcher;a.utils.extend(this,b);this.load=function(b){a.utils.ajax(b,c,d)}}})(jwplayer);(function(a){a.html5.skin=function(){var c={},d=!1;this.load=function(b,f){new a.html5.skinloader(b,function(a){d=!0;c=a;f()},
function(){new a.html5.skinloader("",function(a){d=!0;c=a;f()})})};this.getSkinElement=function(b,f){if(d)try{return c[b].elements[f]}catch(h){a.utils.log("No such skin component / element: ",[b,f])}return null};this.getComponentSettings=function(a){return d?c[a].settings:null};this.getComponentLayout=function(a){return d?c[a].layout:null}}})(jwplayer);(function(a){a.html5.skinloader=function(c,d,b){function f(b){b=b.getElementsByTagName("component");if(b.length!==0)for(var c=0;c<b.length;c++){var f=
b[c].getAttribute("name");g[f]={settings:{},elements:{},layout:{}};for(var d=b[c].getElementsByTagName("elements")[0].getElementsByTagName("element"),k=0;k<d.length;k++)e(d[k],f);if((d=b[c].getElementsByTagName("settings")[0])&&d.childNodes.length>0){d=d.getElementsByTagName("setting");for(k=0;k<d.length;k++){var l=d[k].getAttribute("name"),o=d[k].getAttribute("value"),p=/color$/.test(l)?"color":null;g[f].settings[l]=a.utils.typechecker(o,p)}}if((d=b[c].getElementsByTagName("layout")[0])&&d.childNodes.length>
0){d=d.getElementsByTagName("group");for(k=0;k<d.length;k++){l=d[k];g[f].layout[l.getAttribute("position")]={elements:[]};for(o=0;o<l.attributes.length;o++)p=l.attributes[o],g[f].layout[l.getAttribute("position")][p.name]=p.value;o=l.getElementsByTagName("*");for(p=0;p<o.length;p++){var q=o[p];g[f].layout[l.getAttribute("position")].elements.push({type:q.tagName});for(var B=0;B<q.attributes.length;B++){var D=q.attributes[B];g[f].layout[l.getAttribute("position")].elements[p][D.name]=D.value}if(!a.utils.exists(g[f].layout[l.getAttribute("position")].elements[p].name))g[f].layout[l.getAttribute("position")].elements[p].name=
q.tagName}}}m=!1;h()}}function h(){clearInterval(o);q||(o=setInterval(function(){a:{for(var a in g)if(a!="properties")for(var b in g[a].elements)if(!g[a].elements[b].ready)break a;m===!1&&(clearInterval(o),k(g))}},100))}function e(b,c){var e=new Image,f=b.getAttribute("name"),d=b.getAttribute("src");if(d.indexOf("data:image/png;base64,")!==0)var k=a.utils.getAbsolutePath(p),d=[k.substr(0,k.lastIndexOf("/")),c,d].join("/");g[c].elements[f]={height:0,width:0,src:"",ready:!1,image:e};e.onload=function(){g[c]&&
g[c].elements[f]?(g[c].elements[f].height=e.height,g[c].elements[f].width=e.width,g[c].elements[f].src=e.src,g[c].elements[f].ready=!0,h()):a.utils.log("Loaded an image for a missing element: "+c+"."+f)};e.onerror=function(){q=!0;h();l()};e.src=d}var g={},k=d,l=b,m=!0,o,p=c,q=!1;(function(){typeof p!="string"||p===""?f(a.html5.defaultSkin().xml):a.utils.ajax(a.utils.getAbsolutePath(p),function(b){try{if(a.utils.exists(b.responseXML)){f(b.responseXML);return}}catch(c){for(var e in g){var b=g[e],d;
for(d in b.elements){var h=b.elements[d],k=h.image;k.onload=null;k.onerror=null;delete h.image;delete b.elements[d]}delete g[e]}}f(a.html5.defaultSkin().xml)},function(){f(a.html5.defaultSkin().xml)})})()}})(jwplayer);(function(a){a.html5.api=function(c,d){function b(){m.state==a.api.events.state.PLAYING||m.state==a.api.events.state.BUFFERING?p.pause():p.play()}function f(a){return function(){return m[a]}}function h(a,b,c){return function(){var e=m.plugins.object[a];e&&e[b]&&typeof e[b]=="function"&&
e[b].apply(e,c)}}function e(){m.config.playlistfile?(m.addEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,g),m.loadPlaylist(m.config.playlistfile)):typeof m.config.playlist=="string"?(m.addEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,g),m.loadPlaylist(m.config.playlist)):(m.loadPlaylist(m.config),setTimeout(g,25))}function g(b){m.removeEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,g);m.setupPlugins();o.setup();b={id:k.id,version:k.version};p.playerReady(b)}var k={},l=document.createElement("div");
c.parentNode.replaceChild(l,c);l.id=c.id;k.version=a.version;k.id=l.id;var m=new a.html5.model(k,l,d),o=new a.html5.view(k,l,m),p=new a.html5.controller(k,l,m,o);k.skin=new a.html5.skin;k.jwPlay=function(a){typeof a=="undefined"?b():a.toString().toLowerCase()=="true"?p.play():p.pause()};k.jwPause=function(a){typeof a=="undefined"?b():a.toString().toLowerCase()=="true"?p.pause():p.play()};k.jwStop=p.stop;k.jwSeek=p.seek;k.jwPlaylistItem=p.item;k.jwPlaylistNext=p.next;k.jwPlaylistPrev=p.prev;k.jwResize=
p.resize;k.jwLoad=p.load;k.jwGetItem=f("item");k.jwGetPosition=f("position");k.jwGetDuration=f("duration");k.jwGetBuffer=f("buffer");k.jwGetWidth=f("width");k.jwGetHeight=f("height");k.jwGetFullscreen=f("fullscreen");k.jwSetFullscreen=p.setFullscreen;k.jwGetVolume=f("volume");k.jwSetVolume=p.setVolume;k.jwGetMute=f("mute");k.jwSetMute=p.setMute;k.jwGetStretching=f("stretching");k.jwGetState=f("state");k.jwGetVersion=function(){return k.version};k.jwGetPlaylist=function(){return m.playlist};k.jwGetPlaylistIndex=
k.jwGetItem;k.jwAddEventListener=p.addEventListener;k.jwRemoveEventListener=p.removeEventListener;k.jwSendEvent=p.sendEvent;k.jwDockSetButton=function(a,b,c,e){m.plugins.object.dock&&m.plugins.object.dock.setButton&&m.plugins.object.dock.setButton(a,b,c,e)};k.jwControlbarShow=h("controlbar","show");k.jwControlbarHide=h("controlbar","hide");k.jwDockShow=h("dock","show");k.jwDockHide=h("dock","hide");k.jwDisplayShow=h("display","show");k.jwDisplayHide=h("display","hide");k.jwGetLevel=function(){};k.jwGetBandwidth=
function(){};k.jwGetLockState=function(){};k.jwLock=function(){};k.jwUnlock=function(){};m.config.chromeless&&!a.utils.isIOS()?e():k.skin.load(m.config.skin,e);return k}})(jwplayer)}var isIE=navigator.appVersion.indexOf("MSIE")!=-1?!0:!1,isWin=navigator.appVersion.toLowerCase().indexOf("win")!=-1?!0:!1,isOpera=navigator.userAgent.indexOf("Opera")!=-1?!0:!1;
function ControlVersion(){var a,c;try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"),a=c.GetVariable("$version")}catch(d){}if(!a)try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),a="WIN 6,0,21,0",c.AllowScriptAccess="always",a=c.GetVariable("$version")}catch(b){}if(!a)try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"),a=c.GetVariable("$version")}catch(f){}if(!a)try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"),a="WIN 3,0,18,0"}catch(h){}if(!a)try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),
a="WIN 2,0,0,11"}catch(e){a=-1}return a}
function GetSwfVer(){var a=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var a=navigator.plugins["Shockwave Flash"+(navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"")].description.split(" "),c=a[2].split("."),d=c[0],c=c[1],b=a[3];b==""&&(b=a[4]);b[0]=="d"?b=b.substring(1):b[0]=="r"&&(b=b.substring(1),b.indexOf("d")>0&&(b=b.substring(0,b.indexOf("d"))));a=d+"."+c+"."+b}}else navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=
-1?a=4:navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1?a=3:navigator.userAgent.toLowerCase().indexOf("webtv")!=-1?a=2:isIE&&isWin&&!isOpera&&(a=ControlVersion());return a}
function DetectFlashVer(a,c,d){versionStr=GetSwfVer();if(versionStr==-1)return!1;else if(versionStr!=0){isIE&&isWin&&!isOpera?(tempArray=versionStr.split(" "),tempString=tempArray[1],versionArray=tempString.split(",")):versionArray=versionStr.split(".");var b=versionArray[0],f=versionArray[1],h=versionArray[2];if(b>parseFloat(a))return!0;else if(b==parseFloat(a))if(f>parseFloat(c))return!0;else if(f==parseFloat(c)&&h>=parseFloat(d))return!0;return!1}}
function AC_AddExtension(a,c){return a.indexOf("?")!=-1?a.replace(/\?/,c+"?"):a+c}function AC_Generateobj(a,c,d){var b="";if(isIE&&isWin&&!isOpera){b+="<object ";for(var f in a)b+=f+'="'+a[f]+'" ';b+=">";for(f in c)b+='<param name="'+f+'" value="'+c[f]+'" /> ';b+="</object>"}else{b+="<embed ";for(f in d)b+=f+'="'+d[f]+'" ';b+="> </embed>"}document.write(b)}
function AC_FL_RunContent(){var a=AC_GetArgs(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(a.objAttrs,a.params,a.embedAttrs)}function AC_SW_RunContent(){var a=AC_GetArgs(arguments,".dcr","src","clsid:166B1BCA-3F9C-11CF-8075-444553540000",null);AC_Generateobj(a.objAttrs,a.params,a.embedAttrs)}
function AC_GetArgs(a,c,d,b,f){for(var h={embedAttrs:{},params:{},objAttrs:{}},e=0;e<a.length;e+=2)switch(a[e].toLowerCase()){case "classid":break;case "pluginspage":h.embedAttrs[a[e]]=a[e+1];break;case "src":case "movie":a[e+1]=AC_AddExtension(a[e+1],c);h.embedAttrs.src=a[e+1];h.params[d]=a[e+1];break;case "onafterupdate":case "onbeforeupdate":case "onblur":case "oncellchange":case "onclick":case "ondblclick":case "ondrag":case "ondragend":case "ondragenter":case "ondragleave":case "ondragover":case "ondrop":case "onfinish":case "onfocus":case "onhelp":case "onmousedown":case "onmouseup":case "onmouseover":case "onmousemove":case "onmouseout":case "onkeypress":case "onkeydown":case "onkeyup":case "onload":case "onlosecapture":case "onpropertychange":case "onreadystatechange":case "onrowsdelete":case "onrowenter":case "onrowexit":case "onrowsinserted":case "onstart":case "onscroll":case "onbeforeeditfocus":case "onactivate":case "onbeforedeactivate":case "ondeactivate":case "type":case "codebase":case "id":h.objAttrs[a[e]]=
a[e+1];break;case "width":case "height":case "align":case "vspace":case "hspace":case "class":case "title":case "accesskey":case "name":case "tabindex":h.embedAttrs[a[e]]=h.objAttrs[a[e]]=a[e+1];break;default:h.embedAttrs[a[e]]=h.params[a[e]]=a[e+1]}h.objAttrs.classid=b;f&&(h.embedAttrs.type=f);return h}
jQuery.autocomplete=function(a,c){function d(){x={data:{},length:0}}function b(a){var b=$("li",v);b&&(y+=a,y<0?y=0:y>=b.size()&&(y=b.size()-1),b.removeClass("ac_over"),$(b[y]).addClass("ac_over"))}function f(){var a=$("li.ac_over",v)[0];if(!a){var b=$("li",v);c.selectOnly?b.length==1&&(a=b[0]):c.selectFirst&&(a=b[0])}return a?(h(a),!0):!1}function h(b){if(!b)b=document.createElement("li"),b.extra=[],b.selectValue="";var f=$.trim(b.selectValue?b.selectValue:b.innerHTML);A=a.lastSelected=f;u.html("");
e();c.onItemSelect?setTimeout(function(){c.onItemSelect(b)},1):n.val(f)}function e(){s&&clearTimeout(s);n.removeClass(c.loadingClass);u.is(":visible")&&u.hide();c.mustMatch&&n.val()!=a.lastSelected&&h(null)}function g(b,f){if(f){n.removeClass(c.loadingClass);v.innerHTML="";if(!w||f.length==0)return e();$.browser.msie&&u.append(document.createElement("iframe"));v.appendChild(l(f));if(c.autoFill&&n.val().toLowerCase()==b.toLowerCase()){var d=f[0][0];if(B!=8){n.val(n.val()+d.substring(A.length));var g=
A.length,d=d.length,h=n.get(0);if(h.createTextRange){var k=h.createTextRange();k.collapse(!0);k.moveStart("character",g);k.moveEnd("character",d);k.select()}else if(h.setSelectionRange)h.setSelectionRange(g,d);else if(h.selectionStart)h.selectionStart=g,h.selectionEnd=d;h.focus()}}g=a;d=g.offsetLeft||0;for(h=g.offsetTop||0;g=g.offsetParent;)d+=g.offsetLeft,h+=g.offsetTop;g={x:d,y:h};d=c.width>0?c.width:n.width();u.css({width:parseInt(d)+"px",top:g.y+a.offsetHeight+"px",left:g.x+"px"}).show()}else e()}
function k(a){if(!a)return null;for(var b=[],a=a.split(c.lineSeparator),e=0;e<a.length;e++){var f=$.trim(a[e]);f&&(b[b.length]=f.split(c.cellSeparator))}return b}function l(a){var b=document.createElement("ul"),e=a.length;if(c.maxItemsToShow>0&&c.maxItemsToShow<e)e=c.maxItemsToShow;for(var f=0;f<e;f++){var d=a[f];if(d){var g=document.createElement("li");g.innerHTML=c.formatItem?c.formatItem(d,f,e):d[0];g.selectValue=d[0];var k=null;if(d.length>1)for(var k=[],l=1;l<d.length;l++)k[k.length]=d[l];g.extra=
k;b.appendChild(g);$(g).hover(function(){$("li",b).removeClass("ac_over");$(this).addClass("ac_over");y=$("li",b).indexOf($(this).get(0))},function(){$(this).removeClass("ac_over")}).click(function(a){a.preventDefault();a.stopPropagation();h(this)})}}return b}function m(a){c.matchCase||(a=a.toLowerCase());var b=c.cacheLength?p(a):null;b?g(a,b):typeof c.url=="string"&&c.url.length>0?$.get(o(a),function(b){b=k(b);t(a,b);g(a,b)}):n.removeClass(c.loadingClass)}function o(a){var a=c.url+"?q="+encodeURI(a),
b;for(b in c.extraParams)a+="&"+b+"="+encodeURI(c.extraParams[b]);return a}function p(a){if(!a)return null;if(x.data[a])return x.data[a];if(c.matchSubset)for(var b=a.length-1;b>=c.minChars;b--){var e=a.substr(0,b);if(e=x.data[e]){for(var b=[],f=0;f<e.length;f++){var d=e[f],g=d[0],h=a;c.matchCase||(g=g.toLowerCase());g=g.indexOf(h);(g==-1?0:g==0||c.matchContains)&&(b[b.length]=d)}return b}}return null}function q(a,b){b&&n.removeClass(c.loadingClass);for(var e=b?b.length:0,f=null,d=0;d<e;d++){var g=
b[d];if(g[0].toLowerCase()==a.toLowerCase()){f=document.createElement("li");f.innerHTML=c.formatItem?c.formatItem(g,d,e):g[0];f.selectValue=g[0];var h=null;if(g.length>1)for(var h=[],k=1;k<g.length;k++)h[h.length]=g[k];f.extra=h}}c.onFindValue&&setTimeout(function(){c.onFindValue(f)},1)}function t(a,b){b&&a&&c.cacheLength&&(!x.length||x.length>c.cacheLength?(d(),x.length++):x[a]||x.length++,x.data[a]=b)}var n=$(a).attr("autocomplete","off");c.inputClass&&n.addClass(c.inputClass);var v=document.createElement("div"),
u=$(v);u.hide().addClass(c.resultsClass).css("position","absolute");c.width>0&&u.css("width",c.width);$("body").append(v);a.autocompleter=this;var s=null,A="",y=-1,x={},w=!1,B=null;d();if(c.data!=null){var D="",H={},E=[];if(typeof c.url!="string")c.cacheLength=1;for(var r=0;r<c.data.length;r++)E=typeof c.data[r]=="string"?[c.data[r]]:c.data[r],E[0].length>0&&(D=E[0].substring(0,1).toLowerCase(),H[D]||(H[D]=[]),H[D].push(E));for(var G in H)c.cacheLength++,t(G,H[G])}n.keydown(function(a){B=a.keyCode;
switch(a.keyCode){case 38:a.preventDefault();b(-1);break;case 40:a.preventDefault();b(1);break;case 9:case 13:f()&&(n.get(0).blur(),a.preventDefault());break;default:y=-1,s&&clearTimeout(s),s=setTimeout(function(){if(B>8&&B<32)u.hide();else{var a=n.val();a!=A&&(A=a,a.length>=c.minChars?(n.addClass(c.loadingClass),a=a.replace(/[&]/g,"and"),m(a)):(n.removeClass(c.loadingClass),u.hide()))}},c.delay)}}).focus(function(){w=!0}).blur(function(){w=!1;s&&clearTimeout(s);s=setTimeout(e,200)});e();this.flushCache=
function(){d()};this.setExtraParams=function(a){c.extraParams=a};this.findValue=function(){var a=n.val();c.matchCase||(a=a.toLowerCase());var b=c.cacheLength?p(a):null;b?q(a,b):typeof c.url=="string"&&c.url.length>0?$.get(o(a),function(b){b=k(b);t(a,b);q(a,b)}):q(a,null)}};
jQuery.fn.autocomplete=function(a,c,d){c=c||{};c.url=a;c.data=typeof d=="object"&&d.constructor==Array?d:null;c.inputClass=c.inputClass||"ac_input";c.resultsClass=c.resultsClass||"ac_results";c.lineSeparator=c.lineSeparator||"\n";c.cellSeparator=c.cellSeparator||"|";c.minChars=c.minChars||1;c.delay=c.delay||50;c.matchCase=c.matchCase||0;c.matchSubset=c.matchSubset||0;c.matchContains=c.matchContains||0;c.cacheLength=c.cacheLength||1;c.mustMatch=c.mustMatch||0;c.extraParams=c.extraParams||{};c.loadingClass=
c.loadingClass||"ac_loading";c.selectFirst=c.selectFirst||!1;c.selectOnly=c.selectOnly||!1;c.maxItemsToShow=c.maxItemsToShow||40;c.autoFill=c.autoFill||!1;c.width=parseInt(c.width,10)||0;this.each(function(){new jQuery.autocomplete(this,c)});return this};jQuery.fn.autocompleteArray=function(a,c){return this.autocomplete(null,c,a)};jQuery.fn.indexOf=function(a){for(var c=0;c<this.length;c++)if(this[c]==a)return c;return-1};
(function(a){a.fn.piroBox=function(c){c=jQuery.extend({my_speed:null,close_speed:300,bg_alpha:0.5,close_all:".piro_close,.piro_overlay",slideShow:null,slideSpeed:null},c);(function(){var d=a(document).height(),b=a(jQuery('<div class="piro_overlay"></div>').hide().css({opacity:+c.bg_alpha,height:d+"px"})),f=a(jQuery('<table class="pirobox_content" cellpadding="0" cellspacing="0"></table>')),h=a(jQuery('<div class="caption"></div>')),d=a(jQuery('<div class="piro_nav"></div>')),e=a(jQuery('<a href="#close" class="piro_close" title="\u0417\u0430\u043a\u0440\u044b\u0442\u044c"></a>')),
g=a(jQuery('<a href="#play" class="play" title="\u041d\u0430\u0447\u0430\u0442\u044c \u0441\u043b\u0430\u0439\u0434\u0448\u043e\u0443"></a>')),k=a(jQuery('<a href="#stop" class="stop" title="\u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u043b\u0430\u0434\u0448\u043e\u0443"></a>')),l=a(jQuery('<a href="#prev" class="piro_prev" title="\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f"></a>')),m=a(jQuery('<a href="#next" class="piro_next" title="\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f"></a>'));
a("body").append(b).append(f);f.append('<tr><td colspan="3" class="pirobox_up"></td></tr><tr><td class="t_l"></td><td class="t_c"></td><td class="t_r"></td></tr><tr><td class="c_l"></td><td class="c_c"><span><span></span></span><div></div></td><td class="c_r"></td></tr><tr><td class="b_l"></td><td class="b_c"></td><td class="b_r"></td></tr><tr><td colspan="3" class="pirobox_down"></td></tr>');a(".pirobox_up").append(e);a(".pirobox_down").append(d);a(".pirobox_down").append(g);g.hide();a(".pirobox_down").append(l).append(m);
d.append(h);var o=l.width();f.hide();for(var d=a("a[class^='pirobox']"),p={},q=0;q<d.length;q++){var t=a(d[q]);p["a."+t.attr("class")]=0}var n=[],v;for(v in p)n.push(v);for(q=0;q<n.length;q++)a(n[q]).each(function(b){this.rel="\u0418\u0437\u043e\u0431\u0430\u0436\u0435\u043d\u0438\u0435&nbsp;"+(b+1)+"&nbsp;\u0438\u0437&nbsp;"+a(n[q]).length}),a(n[q]+":first").addClass("first"),a(n[q]+":last").addClass("last");a(d).each(function(a){this.rev=a+0});v=a(d).each(function(){});var u=a("body").append('<div id="imgCache" style="display:none"></div').children("#imgCache");
a.each(v,function(b,c){a("<div/>").css({background:"url("+c+")"}).appendTo(u)});var s=a(d);a.fn.fixPNG=function(){return this.each(function(){var b=a(this).css("backgroundImage");if(b.match(/^url\(["']?(.*\.png)["']?\)$/i))b=RegExp.$1,a(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod="+(a(this).css("backgroundRepeat")=="no-repeat"?"crop":"scale")+", src='"+b+"')"}).each(function(){var b=a(this).css("position");b!="absolute"&&
b!="relative"&&a(this).css("position","relative")})})};a.browser.msie6=a.browser.msie&&/MSIE 6\.0/i.test(window.navigator.userAgent);a.browser.msie6&&!/MSIE 8\.0/i.test(window.navigator.userAgent)&&(a(".t_l,.t_c,.t_r,.c_l,.c_r,.b_l,.b_c,.b_r,a.piro_next, a.piro_prev,a.piro_prev_out,a.piro_next_out,.c_c,.piro_close,a.play,a.stop").fixPNG(),v=a(document).height(),b.css("height",v+"px"));if(a.browser.msie)c.close_speed=0;a(window).resize(function(){var c=a(document).height();b.css({visibility:"visible",
height:+c+"px"})});l.add(m).bind("click",function(b){b.preventDefault();b=parseInt(a(s).filter(".item").attr("rev"));b=a(this).is(".piro_prev_out,.piro_prev")?a(s).eq(b-1):a(s).eq(b+1);b.size()||(b=a(this).is(".piro_prev_out,.piro_prev")?a(s).eq(a(s).size()-1):a(s).eq(0));b.click();e.add(h).add(m).add(l).css("visibility","hidden")});a(s).each(function(){var b=a(this);b.unbind();b.bind("click",function(c){c.preventDefault();A(b.attr("href"));var c=b.attr("href"),e=b.attr("title"),f=b.attr("rel");e==
""?h.html("<p>"+c+'<em class="number">'+f+"</em><a href="+c+' class="link_to" target="_blank" title="\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044e \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043e\u043a\u043d\u0435"></a></p>'):h.html("<p>"+e+'<em class="number">'+f+"</em><a href="+c+' class="link_to" target="_blank" title="\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044e \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043e\u043a\u043d\u0435"></a></p>');
b.is(".last")?a(".number").css("text-decoration","underline"):a(".number").css("text-decoration","none");b.is(".first")?(l.hide(),m.show()):m.add(l).show();b.is(".last")?(l.show(),m.hide(),g.css("width","0")):g.css("width","40px");b.is(".last")&&b.is(".first")&&(l.add(m).hide(),a(".number").hide(),g.remove());a(s).filter(".item").removeClass("item");b.addClass("item");a(".c_c").removeClass("unique")})});var A=function(c){g.add(k).hide();e.add(h).add(m).add(l).css("visibility","hidden");f.is(":visible")?
a(".c_c div").children().fadeOut(300,function(){a(".c_c div").children().remove();y(c)}):(a(".c_c div").children().remove(),f.show(),b.fadeIn(300,function(){y(c)}))},y=function(d){if(!f.is(".loading")){f.addClass("loading");var n=new Image;n.onerror=function(){var c=a(f).height();f.css({marginTop:parseInt(a(document).scrollTop())-c/1.9});a(".c_c div").append('<p class="err_mess">There seems to be an Error:&nbsp;<a href="#close" class="close_pirobox">Close Pirobox</a></p>');a(".close_pirobox").bind("click",
function(a){a.preventDefault();e.add(b).add(f).add(h).add(m).add(l).hide(0,function(){n.src=""});f.removeClass("loading")})};n.onload=function(){var b=n.height,d=n.width;a(f).height();var o=a(window).height(),p=a(window).width();if(b>o-80)var q=b/d,b=o-80,d=Math.round(b/q);if(d>p-80)b=n.height,d=n.width,q=b/d,d=p-80,b=Math.round(d*q);a(n).height(b).width(d).hide();a(".c_c div").animate({height:b+"px",width:d+"px"},c.my_speed);h_fix=o<b?b/o*2.3:2;f.animate({height:b+40+"px",width:d+40+"px",marginLeft:"-"+
(d/2+20)+"px",marginTop:parseInt(a(document).scrollTop())-20-b/h_fix},c.my_speed,function(){a(".piro_nav,.caption").css({width:d+"px","margin-bottom":"10px"});a(".piro_nav").css("margin-left","-"+d/2+"px");h.height();a(".c_c div").append(n);e.css("display","block");m.add(l).add(e).css("visibility","visible");h.css({visibility:"visible",display:"block",opacity:"0.8",overflow:"hidden"});f.hover(function(){h.stop().fadeTo(200,0.8)},function(){h.stop().fadeTo(200,0)});a(n).fadeIn(300);f.removeClass("loading");
c.slideShow===!0?g.add(k).show():g.add(k).hide()})};n.src=d;a("html").bind("keyup",function(c){if(c.keyCode==27&&(c.preventDefault(),a(n).is(":visible")||a(".c_c>div>p>a").is(".close_pirobox")))a(s).removeClass("slideshow").removeClass("item"),e.add(b).add(f).add(h).add(m).add(l).hide(0,function(){n.src=""}),f.removeClass("loading"),clearTimeout(q),a(s).children().removeAttr("class"),a(".stop").remove(),a(".c_c").append(g),a(".sc_menu").css("display","none"),a("ul.sc_menu li a").removeClass("img_active").css("opacity",
"0.4"),m.add(l).show().css({top:"50%"}),a(s).children().fadeTo(100,1)});a("html").bind("keyup",function(b){!a(".item").is(".first")&&b.keyCode==37&&(b.preventDefault(),a(n).is(":visible")&&(clearTimeout(q),a(s).children().removeAttr("class"),a(".stop").remove(),a(".c_c").append(g),l.click()))});a("html").bind("keyup",function(b){!a(".item").is(".last")&&b.keyCode==39&&(b.preventDefault(),a(n).is(":visible")&&(clearTimeout(q),a(s).children().removeAttr("class"),a(".stop").remove(),a(".c_c").append(g),
m.click()))});a(window).height();k.bind("click",function(b){b.preventDefault();clearTimeout(q);a(s).removeClass("slideshow");a(".stop").remove();a(".pirobox_down").append(g);m.add(l).css("width",o+"px")});g.bind("click",function(b){b.preventDefault();clearTimeout(q);a(n).is(":visible")&&(a(s).addClass("slideshow"),a(".play").remove(),a(".pirobox_down").append(k));m.add(l).css({width:"0px"});return p()});a(c.close_all).bind("click",function(c){a(s).removeClass("slideshow");clearTimeout(q);a(n).is(":visible")&&
(c.preventDefault(),e.add(b).add(f).add(h).add(m).add(l).hide(0,function(){n.src=""}),f.removeClass("loading"),a(s).removeClass("slideshow"),m.add(l).css("width",o+"px").hide(),a(".stop").remove(),a(".pirobox_down").append(g),g.hide())});if(c.slideShow===!0)var p=function(){a(s).filter(".item").is(".last")?(clearTimeout(q),a(s).removeClass("slideshow"),a(".stop").remove(),a(".pirobox_down").append(g),m.add(l).css("width",o+"px")):a(s).is(".slideshow")&&a(n).is(":visible")&&(clearTimeout(q),m.click())},
q=setInterval(p,c.slideSpeed*1E3)}}})()}})(jQuery);
(function(a){a.fn.markItUp=function(c,d){var b,f,h,e;f=h=e=!1;var g=!0;c=="chat"?(c={nameSpace:"chatInput"},g=!1):c={nameSpace:"bbcode",markupSet:[{name:"\u0416\u0438\u0440\u043d\u044b\u0439",key:"B",openWith:"[b]",closeWith:"[/b]"},{name:"\u041a\u0443\u0440\u0441\u0438\u0432",key:"I",openWith:"[i]",closeWith:"[/i]"},{name:"\u041f\u043e\u0434\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u0435",key:"U",openWith:"[u]",closeWith:"[/u]"},{name:"\u0417\u0430\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u0435",key:"S",
openWith:"[s]",closeWith:"[/s]"},{name:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443",key:"P",replaceWith:"[img][![\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443:]!][/img]"},{name:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443",key:"L",openWith:"[url=[![\u0421\u0441\u044b\u043b\u043a\u0430:]!]]",closeWith:"[/url]",placeHolder:"URL"},{name:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c email",
key:"E",openWith:"[email=[![Email:]!]]",closeWith:"[/email]",placeHolder:"EMAIL"},{name:"\u0412\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435 \u043f\u043e \u043b\u0435\u0432\u043e\u043c\u0443 \u043a\u0440\u0430\u044e",key:"",openWith:"[left]",closeWith:"[/left]"},{name:"\u0412\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435 \u043f\u043e \u0446\u0435\u043d\u0442\u0440\u0443 \u043a\u0440\u0430\u044e",key:"",openWith:"[center]",closeWith:"[/center]"},{name:"\u0412\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435 \u043f\u043e \u043f\u0440\u0430\u0432\u043e\u043c\u0443 \u043a\u0440\u0430\u044e",
key:"",openWith:"[right]",closeWith:"[/right]"},{name:"\u0426\u0438\u0442\u0430\u0442\u0430",key:"Q",openWith:"[quote]",closeWith:"[/quote]"},{name:"\u0421\u043a\u0440\u044b\u0442\u044c \u043f\u043e\u0434 \u0441\u043f\u043e\u0439\u043b\u0435\u0440",key:"H",openWith:"[spoiler]",closeWith:"[/spoiler]"},{name:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u0441 YouTube",key:"",replaceWith:"[media][![\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0432\u0438\u0434\u0435\u043e \u0432 YouTube:]!][/media]"}]};
b={id:"",nameSpace:"",root:"",previewInWindow:"",previewAutoRefresh:!0,previewPosition:"after",previewTemplatePath:"~/templates/preview.html",previewParserPath:"",previewParserVar:"data",resizeHandle:!1,beforeInsert:"",afterInsert:"",onEnter:{},onShiftEnter:{},onCtrlEnter:{},onTab:{},markupSet:[{}]};a.extend(b,c,d);b.root||a("script").each(function(c,e){miuScript=a(e).get(0).src.match(/(.*)jquery\.markitup(\.pack)?\.js$/);if(miuScript!==null)b.root=miuScript[1]});return this.each(function(){function c(a,
e){return e?a.replace(/("|')~\//g,"$1"+b.root):a.replace(/^~\//,b.root)}function d(b){var c=a("<ul></ul>"),e=0;a("li:hover > ul",c).css("display","block");a.each(b,function(){var b=this,f="",g,h;g=b.key?(b.name||"")+" [Ctrl+"+b.key+"]":b.name||"";key=b.key?'accesskey="'+b.key+'"':"";if(b.separator)f=a('<li class="markItUpSeparator">'+(b.separator||"")+"</li>").appendTo(c);else{e++;for(h=B.length-1;h>=0;h--)f+=B[h]+"-";f=a('<li class="markItUpButton markItUpButton'+f+e+" "+(b.className||"")+'"><a href="" '+
key+' title="'+g+'">'+(b.name||"")+"</a></li>").bind("contextmenu",function(){return!1}).click(function(){return!1}).bind("focusin",function(){x.focus()}).mousedown(function(){b.call&&eval(b.call)();setTimeout(function(){q(b)},1);return!1}).hover(function(){a("> ul",this).show();a(document).one("click",function(){a("ul ul",C).hide()})},function(){a("> ul",this).hide()}).appendTo(c);b.dropMenu&&(B.push(e),a(f).addClass("markItUpDropMenu").append(d(b.dropMenu)))}});B.pop();return c}function m(a){return a?
(a=a.toString(),a=a.replace(/\(\!\(([\s\S]*?)\)\!\)/g,function(a,b){var c=b.split("|!|");return e===!0?c[1]!==void 0?c[1]:c[0]:c[1]===void 0?"":c[0]}),a=a.replace(/\[\!\[([\s\S]*?)\]\!\]/g,function(a,b){var c=b.split(":!:");if(T===!0)return!1;value=prompt(c[0],c[1]?c[1]:"");value===null&&(T=!0);return value})):""}function o(b){a.isFunction(b)&&(b=b(G));return m(b)}function p(a){var b=o(r.openWith),c=o(r.placeHolder),e=o(r.replaceWith),f=o(r.closeWith);e!==""?block=b+e+f:selection===""&&c!==""?block=
b+c+f:(a=a||selection,block=a.match(/ $/)?b+a.replace(/ $/,"")+f+" ":b+a+f);return{block:block,openWith:b,replaceWith:e,placeHolder:c,closeWith:f}}function q(c){var d,g;G=r=c;u();a.extend(G,{line:"",root:b.root,textarea:w,selection:selection||"",caretPosition:H,ctrlKey:f,shiftKey:h,altKey:e});o(b.beforeInsert);o(r.beforeInsert);f===!0&&h===!0&&o(r.beforeMultiInsert);a.extend(G,{line:1});if(f===!0&&h===!0){lines=selection.split(/\r?\n/);c=0;d=lines.length;for(g=0;g<d;g++)a.trim(lines[g])!==""?(a.extend(G,
{line:++c,selection:lines[g]}),lines[g]=p(lines[g]).block):lines[g]="";string={block:lines.join("\n")};start=H;c=string.block.length+(a.browser.opera?d-1:0)}else f===!0?(string=p(selection),start=H+string.openWith.length,c=string.block.length-string.openWith.length-string.closeWith.length,c-=string.block.match(/ $/)?1:0,c-=n(string.block)):h===!0?(string=p(selection),start=H,c=string.block.length,c-=n(string.block)):(string=p(selection),start=H+string.block.length,c=0,start-=n(string.block));if(selection===
""&&string.replaceWith==="")E+=t(string.block),start=H+string.openWith.length,c=string.block.length-string.openWith.length-string.closeWith.length,E=x.val().substring(H,x.val().length).length,E-=t(x.val().substring(0,H));a.extend(G,{caretPosition:H,scrollPosition:D});string.block!==selection&&T===!1?(d=string.block,document.selection?document.selection.createRange().text=d:w.value=w.value.substring(0,H)+d+w.value.substring(H+selection.length,w.value.length),v(start,c)):E=-1;u();a.extend(G,{line:"",
selection:selection});f===!0&&h===!0&&o(r.afterMultiInsert);o(r.afterInsert);o(b.afterInsert);J&&b.previewAutoRefresh&&s();h=e=f=T=!1}function t(b){return a.browser.opera?b.length-b.replace(/\n*/g,"").length:0}function n(b){return a.browser.msie?b.length-b.replace(/\r*/g,"").length:0}function v(b,c){if(w.createTextRange){if(a.browser.opera&&a.browser.version>=9.5&&c==0)return!1;range=w.createTextRange();range.collapse(!0);range.moveStart("character",b);range.moveEnd("character",c);range.select()}else w.setSelectionRange&&
w.setSelectionRange(b,b+c);w.scrollTop=D;w.focus()}function u(){w.focus();D=w.scrollTop;if(document.selection)if(selection=document.selection.createRange().text,a.browser.msie){var b=document.selection.createRange(),c=b.duplicate();c.moveToElementText(w);for(H=-1;c.inRange(b);)c.moveStart("character"),H++}else H=w.selectionStart;else H=w.selectionStart,selection=w.value.substring(H,w.selectionEnd);return selection}function s(){b.previewParserPath!==""?a.ajax({type:"POST",dataType:"text",global:!1,
url:b.previewParserPath,data:b.previewParserVar+"="+encodeURIComponent(x.val()),success:function(a){A(c(a,1))}}):Q||a.ajax({url:b.previewTemplatePath,dataType:"text",global:!1,success:function(a){A(c(a,1).replace(/<\!-- content --\>/g,x.val()))}});return!1}function A(a){if(J.document){try{sp=J.document.documentElement.scrollTop}catch(b){sp=0}J.document.open();J.document.write(a);J.document.close();J.document.documentElement.scrollTop=sp}}function y(c){h=c.shiftKey;e=c.altKey;f=!c.altKey||!c.ctrlKey?
c.ctrlKey||c.metaKey:!1;if(c.type==="keydown"){if(f===!0&&(li=a('a[accesskey="'+String.fromCharCode(c.keyCode)+'"]',C).parent("li"),li.length!==0))return f=!1,setTimeout(function(){li.triggerHandler("mousedown")},1),!1;if(c.keyCode===13||c.keyCode===10)return f===!0?(f=!1,q(b.onCtrlEnter),b.onCtrlEnter.keepDefault):h===!0?(h=!1,q(b.onShiftEnter),b.onShiftEnter.keepDefault):(q(b.onEnter),b.onEnter.keepDefault);if(c.keyCode===9)return h==!0||f==!0||e==!0?!1:E!==-1?(u(),E=x.val().length-E,v(E,0),E=-1,
!1):(q(b.onTab),b.onTab.keepDefault)}}var x,w,B,D,H,E,r,G,C,j,J,Q,T;x=a(this);w=this;B=[];T=!1;D=H=0;E=-1;b.previewParserPath=c(b.previewParserPath);b.previewTemplatePath=c(b.previewTemplatePath);(function(){nameSpace=id="";b.id?id='id="'+b.id+'"':x.attr("id")&&(id='id="markItUp'+x.attr("id").substr(0,1).toUpperCase()+x.attr("id").substr(1)+'"');b.nameSpace&&(nameSpace='class="'+b.nameSpace+'"');x.wrap("<div "+nameSpace+"></div>");x.wrap("<div "+id+' class="markItUp"></div>');x.wrap('<div class="markItUpContainer"></div>');
x.addClass("markItUpEditor");g&&(C=a('<div class="markItUpHeader"></div>').insertBefore(x),a(d(b.markupSet)).appendTo(C));j=a('<div class="markItUpFooter"></div>').insertAfter(x);b.resizeHandle===!0&&a.browser.safari!==!0&&(resizeHandle=a('<div class="markItUpResizeHandle"></div>').insertAfter(x).bind("mousedown",function(b){var c=x.height(),e=b.clientY,f,d;f=function(a){x.css("height",Math.max(20,a.clientY+c-e)+"px");return!1};d=function(){a("html").unbind("mousemove",f).unbind("mouseup",d);return!1};
a("html").bind("mousemove",f).bind("mouseup",d)}),j.append(resizeHandle));x.keydown(y).keyup(y);x.bind("insertion",function(b,c){c.target!==!1&&u();w===a.markItUp.focused&&q(c)});x.focus(function(){a.markItUp.focused=this})})()})};a.fn.markItUpRemove=function(){return this.each(function(){var c=a(this).unbind().removeClass("markItUpEditor");c.parent("div").parent("div.markItUp").parent("div").replaceWith(c)})};a.markItUp=function(c){var d={target:!1};a.extend(d,c);if(d.target)return a(d.target).each(function(){a(this).focus();
a(this).trigger("insertion",[d])});else a("textarea").trigger("insertion",[d])}})(jQuery);
(function(a,c){function d(c,d){var e=c.nodeName.toLowerCase();if("area"===e){var e=c.parentNode,g=e.name;if(!c.href||!g||e.nodeName.toLowerCase()!=="map")return!1;e=a("img[usemap=#"+g+"]")[0];return!!e&&b(e)}return(/input|select|textarea|button|object/.test(e)?!c.disabled:"a"==e?c.href||d:d)&&b(c)}function b(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.16",
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({propAttr:a.fn.prop||a.fn.attr,_focus:a.fn.focus,focus:function(b,c){return typeof b==="number"?this.each(function(){var e=
this;setTimeout(function(){a(e).focus();c&&c.call(e)},b)}):this._focus.apply(this,arguments)},scrollParent:function(){var b;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);return/fixed/.test(this.css("position"))||!b.length?a(document):b},zIndex:function(b){if(b!==c)return this.css("zIndex",b);if(this.length)for(var b=a(this[0]),d;b.length&&b[0]!==document;){d=b.css("position");if(d==="absolute"||d==="relative"||d==="fixed")if(d=parseInt(b.css("zIndex"),10),!isNaN(d)&&d!==0)return d;b=b.parent()}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":
"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a.each(["Width","Height"],function(b,d){function e(b,c,e,f){a.each(g,function(){c-=parseFloat(a.curCSS(b,"padding"+this,!0))||0;e&&(c-=parseFloat(a.curCSS(b,"border"+this+"Width",!0))||0);f&&(c-=parseFloat(a.curCSS(b,"margin"+this,!0))||0)});return c}var g=d==="Width"?["Left","Right"]:["Top","Bottom"],k=d.toLowerCase(),l={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,
outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+d]=function(b){return b===c?l["inner"+d].call(this):this.each(function(){a(this).css(k,e(this,b)+"px")})};a.fn["outer"+d]=function(b,c){return typeof b!=="number"?l["outer"+d].call(this,b):this.each(function(){a(this).css(k,e(this,b,!0,c)+"px")})}}),a.extend(a.expr[":"],{data:function(b,c,e){return!!a.data(b,e[3])},focusable:function(b){return d(b,!isNaN(a.attr(b,"tabindex")))},tabbable:function(b){var c=a.attr(b,"tabindex"),e=
isNaN(c);return(e||c>=0)&&d(b,!e)}}),a(function(){var b=document.body,c=b.appendChild(c=document.createElement("div"));a.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=c.offsetHeight===100;a.support.selectstart="onselectstart"in c;b.removeChild(c).style.display="none"}),a.extend(a.ui,{plugin:{add:function(b,c,e){var b=a.ui[b].prototype,d;for(d in e)b.plugins[d]=b.plugins[d]||[],b.plugins[d].push([c,e[d]])},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;var e=c&&c==="left"?"scrollLeft":"scrollTop",d=!1;if(b[e]>0)return!0;b[e]=1;d=b[e]>0;b[e]=0;return d},isOverAxis:function(a,b,c){return a>b&&a<b+c},isOver:function(b,c,e,d,k,l){return a.ui.isOverAxis(b,e,k)&&a.ui.isOverAxis(c,d,l)}}))})(jQuery);
(function(a,c){if(a.cleanData){var d=a.cleanData;a.cleanData=function(b){for(var c=0,e;(e=b[c])!=null;c++)try{a(e).triggerHandler("remove")}catch(g){}d(b)}}else{var b=a.fn.remove;a.fn.remove=function(c,d){return this.each(function(){d||(!c||a.filter(c,[this]).length)&&a("*",this).add([this]).each(function(){try{a(this).triggerHandler("remove")}catch(b){}});return b.call(a(this),c,d)})}}a.widget=function(b,c,e){var d=b.split(".")[0],k,b=b.split(".")[1];k=d+"-"+b;if(!e)e=c,c=a.Widget;a.expr[":"][k]=
function(c){return!!a.data(c,b)};a[d]=a[d]||{};a[d][b]=function(a,b){arguments.length&&this._createWidget(a,b)};c=new c;c.options=a.extend(!0,{},c.options);a[d][b].prototype=a.extend(!0,c,{namespace:d,widgetName:b,widgetEventPrefix:a[d][b].prototype.widgetEventPrefix||b,widgetBaseClass:k},e);a.widget.bridge(b,a[d][b])};a.widget.bridge=function(b,d){a.fn[b]=function(e){var g=typeof e==="string",k=Array.prototype.slice.call(arguments,1),l=this,e=!g&&k.length?a.extend.apply(null,[!0,e].concat(k)):e;
if(g&&e.charAt(0)==="_")return l;g?this.each(function(){var d=a.data(this,b),g=d&&a.isFunction(d[e])?d[e].apply(d,k):d;if(g!==d&&g!==c)return l=g,!1}):this.each(function(){var c=a.data(this,b);c?c.option(e||{})._init():a.data(this,b,new d(e,this))});return l}};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,this._getCreateOptions(),b);var e=this;this.element.bind("remove."+this.widgetName,function(){e.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return a.metadata&&a.metadata.get(this.element[0])[this.widgetName]},_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(b,d){var e=b;if(arguments.length===0)return a.extend({},this.options);if(typeof b==="string"){if(d===c)return this.options[b];e={};e[b]=d}this._setOptions(e);return this},_setOptions:function(b){var c=this;a.each(b,function(a,b){c._setOption(a,b)});return this},_setOption:function(a,b){this.options[a]=b;a==="disabled"&&this.widget()[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",
b);return this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_trigger:function(b,c,e){var d=this.options[b],c=a.Event(c);c.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase();e=e||{};if(c.originalEvent)for(var b=a.event.props.length,k;b;)k=a.event.props[--b],c[k]=c.originalEvent[k];this.element.trigger(c,e);return!(a.isFunction(d)&&d.call(this.element[0],c,e)===!1||c.isDefaultPrevented())}}})(jQuery);
(function(a){var c=!1;a(document).mouseup(function(){c=!1});a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var c=this;this.element.bind("mousedown."+this.widgetName,function(a){return c._mouseDown(a)}).bind("click."+this.widgetName,function(b){if(!0===a.data(b.target,c.widgetName+".preventClickEvent"))return a.removeData(b.target,c.widgetName+".preventClickEvent"),b.stopImmediatePropagation(),!1});this.started=!1},_mouseDestroy:function(){this.element.unbind("."+
this.widgetName)},_mouseDown:function(d){if(!c){this._mouseStarted&&this._mouseUp(d);this._mouseDownEvent=d;var b=this,f=d.which==1,h=typeof this.options.cancel=="string"&&d.target.nodeName?a(d.target).closest(this.options.cancel).length:!1;if(!f||h||!this._mouseCapture(d))return!0;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){b.mouseDelayMet=!0},this.options.delay);if(this._mouseDistanceMet(d)&&this._mouseDelayMet(d)&&(this._mouseStarted=
this._mouseStart(d)!==!1,!this._mouseStarted))return d.preventDefault(),!0;!0===a.data(d.target,this.widgetName+".preventClickEvent")&&a.removeData(d.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(a){return b._mouseMove(a)};this._mouseUpDelegate=function(a){return b._mouseUp(a)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);d.preventDefault();return c=!0}},_mouseMove:function(c){if(a.browser.msie&&
!(document.documentMode>=9)&&!c.button)return this._mouseUp(c);if(this._mouseStarted)return this._mouseDrag(c),c.preventDefault();if(this._mouseDistanceMet(c)&&this._mouseDelayMet(c))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,c)!==!1)?this._mouseDrag(c):this._mouseUp(c);return!this._mouseStarted},_mouseUp:function(c){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted)this._mouseStarted=
!1,c.target==this._mouseDownEvent.target&&a.data(c.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(c);return!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.ui=a.ui||{};var c=/left|center|right/,d=/top|center|bottom/,b=a.fn.position,f=a.fn.offset;a.fn.position=function(f){if(!f||!f.of)return b.apply(this,arguments);var f=a.extend({},f),e=a(f.of),g=e[0],k=(f.collision||"flip").split(" "),l=f.offset?f.offset.split(" "):[0,0],m,o,p;g.nodeType===9?(m=e.width(),o=e.height(),p={top:0,left:0}):g.setTimeout?(m=e.width(),o=e.height(),p={top:e.scrollTop(),left:e.scrollLeft()}):g.preventDefault?(f.at="left top",m=o=0,p={top:f.of.pageY,left:f.of.pageX}):
(m=e.outerWidth(),o=e.outerHeight(),p=e.offset());a.each(["my","at"],function(){var a=(f[this]||"").split(" ");a.length===1&&(a=c.test(a[0])?a.concat(["center"]):d.test(a[0])?["center"].concat(a):["center","center"]);a[0]=c.test(a[0])?a[0]:"center";a[1]=d.test(a[1])?a[1]:"center";f[this]=a});k.length===1&&(k[1]=k[0]);l[0]=parseInt(l[0],10)||0;l.length===1&&(l[1]=l[0]);l[1]=parseInt(l[1],10)||0;f.at[0]==="right"?p.left+=m:f.at[0]==="center"&&(p.left+=m/2);f.at[1]==="bottom"?p.top+=o:f.at[1]==="center"&&
(p.top+=o/2);p.left+=l[0];p.top+=l[1];return this.each(function(){var b=a(this),c=b.outerWidth(),e=b.outerHeight(),d=parseInt(a.curCSS(this,"marginLeft",!0))||0,g=parseInt(a.curCSS(this,"marginTop",!0))||0,s=c+d+(parseInt(a.curCSS(this,"marginRight",!0))||0),A=e+g+(parseInt(a.curCSS(this,"marginBottom",!0))||0),y=a.extend({},p),x;f.my[0]==="right"?y.left-=c:f.my[0]==="center"&&(y.left-=c/2);f.my[1]==="bottom"?y.top-=e:f.my[1]==="center"&&(y.top-=e/2);y.left=Math.round(y.left);y.top=Math.round(y.top);
x={left:y.left-d,top:y.top-g};a.each(["left","top"],function(b,d){if(a.ui.position[k[b]])a.ui.position[k[b]][d](y,{targetWidth:m,targetHeight:o,elemWidth:c,elemHeight:e,collisionPosition:x,collisionWidth:s,collisionHeight:A,offset:l,my:f.my,at:f.at})});a.fn.bgiframe&&b.bgiframe();b.offset(a.extend(y,{using:f.using}))})};a.ui.position={fit:{left:function(b,c){var f=a(window),f=c.collisionPosition.left+c.collisionWidth-f.width()-f.scrollLeft();b.left=f>0?b.left-f:Math.max(b.left-c.collisionPosition.left,
b.left)},top:function(b,c){var f=a(window),f=c.collisionPosition.top+c.collisionHeight-f.height()-f.scrollTop();b.top=f>0?b.top-f:Math.max(b.top-c.collisionPosition.top,b.top)}},flip:{left:function(b,c){if(c.at[0]!=="center"){var f=a(window),f=c.collisionPosition.left+c.collisionWidth-f.width()-f.scrollLeft(),d=c.my[0]==="left"?-c.elemWidth:c.my[0]==="right"?c.elemWidth:0,l=c.at[0]==="left"?c.targetWidth:-c.targetWidth,m=-2*c.offset[0];b.left+=c.collisionPosition.left<0?d+l+m:f>0?d+l+m:0}},top:function(b,
c){if(c.at[1]!=="center"){var f=a(window),f=c.collisionPosition.top+c.collisionHeight-f.height()-f.scrollTop(),d=c.my[1]==="top"?-c.elemHeight:c.my[1]==="bottom"?c.elemHeight:0,l=c.at[1]==="top"?c.targetHeight:-c.targetHeight,m=-2*c.offset[1];b.top+=c.collisionPosition.top<0?d+l+m:f>0?d+l+m:0}}}};if(!a.offset.setOffset)a.offset.setOffset=function(b,c){if(/static/.test(a.curCSS(b,"position")))b.style.position="relative";var f=a(b),d=f.offset(),l=parseInt(a.curCSS(b,"top",!0),10)||0,m=parseInt(a.curCSS(b,
"left",!0),10)||0,d={top:c.top-d.top+l,left:c.left-d.left+m};"using"in c?c.using.call(b,d):f.css(d)},a.fn.offset=function(b){var c=this[0];return!c||!c.ownerDocument?null:b?this.each(function(){a.offset.setOffset(this,b)}):f.call(this)}})(jQuery);
(function(a){a.widget("ui.draggable",a.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function(){if(this.options.helper=="original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position=
"relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable"))return this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy(),this},_mouseCapture:function(c){var d=this.options;if(this.helper||d.disabled||a(c.target).is(".ui-resizable-handle"))return!1;
this.handle=this._getHandle(c);if(!this.handle)return!1;d.iframeFix&&a(d.iframeFix===!0?"iframe":d.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(a(this).offset()).appendTo("body")});return!0},_mouseStart:function(c){var d=this.options;this.helper=this._createHelper(c);this._cacheHelperProportions();if(a.ui.ddmanager)a.ui.ddmanager.current=
this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:c.pageX-this.offset.left,top:c.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(c);this.originalPageX=c.pageX;
this.originalPageY=c.pageY;d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt);d.containment&&this._setContainment();if(this._trigger("start",c)===!1)return this._clear(),!1;this._cacheHelperProportions();a.ui.ddmanager&&!d.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,c);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(c,!0);a.ui.ddmanager&&a.ui.ddmanager.dragStart(this,c);return!0},_mouseDrag:function(c,d){this.position=this._generatePosition(c);this.positionAbs=this._convertPositionTo("absolute");
if(!d){var b=this._uiHash();if(this._trigger("drag",c,b)===!1)return this._mouseUp({}),!1;this.position=b.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";a.ui.ddmanager&&a.ui.ddmanager.drag(this,c);return!1},_mouseStop:function(c){var d=!1;a.ui.ddmanager&&!this.options.dropBehaviour&&(d=a.ui.ddmanager.drop(this,c));if(this.dropped)d=this.dropped,this.dropped=
!1;if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original")return!1;if(this.options.revert=="invalid"&&!d||this.options.revert=="valid"&&d||this.options.revert===!0||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,d)){var b=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){b._trigger("stop",c)!==!1&&b._clear()})}else this._trigger("stop",c)!==!1&&this._clear();return!1},_mouseUp:function(c){this.options.iframeFix===
!0&&a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)});a.ui.ddmanager&&a.ui.ddmanager.dragStop(this,c);return a.ui.mouse.prototype._mouseUp.call(this,c)},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(c){var d=!this.options.handle||!a(this.options.handle,this.element).length?!0:!1;a(this.options.handle,this.element).find("*").andSelf().each(function(){this==c.target&&(d=!0)});return d},_createHelper:function(c){var d=
this.options,c=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[c])):d.helper=="clone"?this.element.clone().removeAttr("id"):this.element;c.parents("body").length||c.appendTo(d.appendTo=="parent"?this.element[0].parentNode:d.appendTo);c[0]!=this.element[0]&&!/(fixed|absolute)/.test(c.css("position"))&&c.css("position","absolute");return c},_adjustOffsetFromHelper:function(c){typeof c=="string"&&(c=c.split(" "));a.isArray(c)&&(c={left:+c[0],top:+c[1]||0});if("left"in c)this.offset.click.left=
c.left+this.margins.left;if("right"in c)this.offset.click.left=this.helperProportions.width-c.right+this.margins.left;if("top"in c)this.offset.click.top=c.top+this.margins.top;if("bottom"in c)this.offset.click.top=this.helperProportions.height-c.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var c=this.offsetParent.offset();this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(c.left+=
this.scrollParent.scrollLeft(),c.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)c={top:0,left:0};return{top:c.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:c.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.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()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},
_setContainment:function(){var c=this.options;if(c.containment=="parent")c.containment=this.helper[0].parentNode;if(c.containment=="document"||c.containment=="window")this.containment=[c.containment=="document"?0:a(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,c.containment=="document"?0:a(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,(c.containment=="document"?0:a(window).scrollLeft())+a(c.containment=="document"?document:window).width()-this.helperProportions.width-
this.margins.left,(c.containment=="document"?0:a(window).scrollTop())+(a(c.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(c.containment)&&c.containment.constructor!=Array){var c=a(c.containment),d=c[0];if(d){c.offset();var b=a(d).css("overflow")!="hidden";this.containment=[(parseInt(a(d).css("borderLeftWidth"),10)||0)+(parseInt(a(d).css("paddingLeft"),10)||0),(parseInt(a(d).css("borderTopWidth"),
10)||0)+(parseInt(a(d).css("paddingTop"),10)||0),(b?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(a(d).css("borderLeftWidth"),10)||0)-(parseInt(a(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(b?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(a(d).css("borderTopWidth"),10)||0)-(parseInt(a(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=c}}else if(c.containment.constructor==
Array)this.containment=c.containment},_convertPositionTo:function(c,d){if(!d)d=this.position;var b=c=="absolute"?1:-1,f=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,h=/(html|body)/i.test(f[0].tagName);return{top:d.top+this.offset.relative.top*b+this.offset.parent.top*b-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():
h?0:f.scrollTop())*b),left:d.left+this.offset.relative.left*b+this.offset.parent.left*b-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():h?0:f.scrollLeft())*b)}},_generatePosition:function(c){var d=this.options,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(b[0].tagName),h=c.pageX,e=c.pageY;
if(this.originalPosition){var g;if(this.containment)this.relative_container?(g=this.relative_container.offset(),g=[this.containment[0]+g.left,this.containment[1]+g.top,this.containment[2]+g.left,this.containment[3]+g.top]):g=this.containment,c.pageX-this.offset.click.left<g[0]&&(h=g[0]+this.offset.click.left),c.pageY-this.offset.click.top<g[1]&&(e=g[1]+this.offset.click.top),c.pageX-this.offset.click.left>g[2]&&(h=g[2]+this.offset.click.left),c.pageY-this.offset.click.top>g[3]&&(e=g[3]+this.offset.click.top);
d.grid&&(e=d.grid[1]?this.originalPageY+Math.round((e-this.originalPageY)/d.grid[1])*d.grid[1]:this.originalPageY,e=g?!(e-this.offset.click.top<g[1]||e-this.offset.click.top>g[3])?e:!(e-this.offset.click.top<g[1])?e-d.grid[1]:e+d.grid[1]:e,h=d.grid[0]?this.originalPageX+Math.round((h-this.originalPageX)/d.grid[0])*d.grid[0]:this.originalPageX,h=g?!(h-this.offset.click.left<g[0]||h-this.offset.click.left>g[2])?h:!(h-this.offset.click.left<g[0])?h-d.grid[0]:h+d.grid[0]:h)}return{top:e-this.offset.click.top-
this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:b.scrollTop()),left:h-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:b.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=
this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=!1},_trigger:function(c,d,b){b=b||this._uiHash();a.ui.plugin.call(this,c,[d,b]);if(c=="drag")this.positionAbs=this._convertPositionTo("absolute");return a.Widget.prototype._trigger.call(this,c,d,b)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});a.extend(a.ui.draggable,{version:"1.8.16"});a.ui.plugin.add("draggable",
"connectToSortable",{start:function(c,d){var b=a(this).data("draggable"),f=b.options,h=a.extend({},d,{item:b.element});b.sortables=[];a(f.connectToSortable).each(function(){var e=a.data(this,"sortable");e&&!e.options.disabled&&(b.sortables.push({instance:e,shouldRevert:e.options.revert}),e.refreshPositions(),e._trigger("activate",c,h))})},stop:function(c,d){var b=a(this).data("draggable"),f=a.extend({},d,{item:b.element});a.each(b.sortables,function(){if(this.instance.isOver){this.instance.isOver=
0;b.cancelHelperRemoval=!0;this.instance.cancelHelperRemoval=!1;if(this.shouldRevert)this.instance.options.revert=!0;this.instance._mouseStop(c);this.instance.options.helper=this.instance.options._helper;b.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",c,f)})},drag:function(c,d){var b=a(this).data("draggable"),f=this;a.each(b.sortables,function(){this.instance.positionAbs=b.positionAbs;
this.instance.helperProportions=b.helperProportions;this.instance.offset.click=b.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver)this.instance.isOver=1,this.instance.currentItem=a(f).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return d.helper[0]},c.target=this.instance.currentItem[0],this.instance._mouseCapture(c,
!0),this.instance._mouseStart(c,!0,!0),this.instance.offset.click.top=b.offset.click.top,this.instance.offset.click.left=b.offset.click.left,this.instance.offset.parent.left-=b.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=b.offset.parent.top-this.instance.offset.parent.top,b._trigger("toSortable",c),b.dropped=this.instance.element,b.currentItem=b.element,this.instance.fromOutside=b;this.instance.currentItem&&this.instance._mouseDrag(c)}else if(this.instance.isOver)this.instance.isOver=
0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",c,this.instance._uiHash(this.instance)),this.instance._mouseStop(c,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),b._trigger("fromSortable",c),b.dropped=!1})}});a.ui.plugin.add("draggable","cursor",{start:function(){var c=a("body"),d=a(this).data("draggable").options;if(c.css("cursor"))d._cursor=
c.css("cursor");c.css("cursor",d.cursor)},stop:function(){var c=a(this).data("draggable").options;c._cursor&&a("body").css("cursor",c._cursor)}});a.ui.plugin.add("draggable","opacity",{start:function(c,d){var b=a(d.helper),f=a(this).data("draggable").options;if(b.css("opacity"))f._opacity=b.css("opacity");b.css("opacity",f.opacity)},stop:function(c,d){var b=a(this).data("draggable").options;b._opacity&&a(d.helper).css("opacity",b._opacity)}});a.ui.plugin.add("draggable","scroll",{start:function(){var c=
a(this).data("draggable");if(c.scrollParent[0]!=document&&c.scrollParent[0].tagName!="HTML")c.overflowOffset=c.scrollParent.offset()},drag:function(c){var d=a(this).data("draggable"),b=d.options,f=!1;if(d.scrollParent[0]!=document&&d.scrollParent[0].tagName!="HTML"){if(!b.axis||b.axis!="x")if(d.overflowOffset.top+d.scrollParent[0].offsetHeight-c.pageY<b.scrollSensitivity)d.scrollParent[0].scrollTop=f=d.scrollParent[0].scrollTop+b.scrollSpeed;else if(c.pageY-d.overflowOffset.top<b.scrollSensitivity)d.scrollParent[0].scrollTop=
f=d.scrollParent[0].scrollTop-b.scrollSpeed;if(!b.axis||b.axis!="y")if(d.overflowOffset.left+d.scrollParent[0].offsetWidth-c.pageX<b.scrollSensitivity)d.scrollParent[0].scrollLeft=f=d.scrollParent[0].scrollLeft+b.scrollSpeed;else if(c.pageX-d.overflowOffset.left<b.scrollSensitivity)d.scrollParent[0].scrollLeft=f=d.scrollParent[0].scrollLeft-b.scrollSpeed}else{if(!b.axis||b.axis!="x")c.pageY-a(document).scrollTop()<b.scrollSensitivity?f=a(document).scrollTop(a(document).scrollTop()-b.scrollSpeed):
a(window).height()-(c.pageY-a(document).scrollTop())<b.scrollSensitivity&&(f=a(document).scrollTop(a(document).scrollTop()+b.scrollSpeed));if(!b.axis||b.axis!="y")c.pageX-a(document).scrollLeft()<b.scrollSensitivity?f=a(document).scrollLeft(a(document).scrollLeft()-b.scrollSpeed):a(window).width()-(c.pageX-a(document).scrollLeft())<b.scrollSensitivity&&(f=a(document).scrollLeft(a(document).scrollLeft()+b.scrollSpeed))}f!==!1&&a.ui.ddmanager&&!b.dropBehaviour&&a.ui.ddmanager.prepareOffsets(d,c)}});
a.ui.plugin.add("draggable","snap",{start:function(){var c=a(this).data("draggable"),d=c.options;c.snapElements=[];a(d.snap.constructor!=String?d.snap.items||":data(draggable)":d.snap).each(function(){var b=a(this),f=b.offset();this!=c.element[0]&&c.snapElements.push({item:this,width:b.outerWidth(),height:b.outerHeight(),top:f.top,left:f.left})})},drag:function(c,d){for(var b=a(this).data("draggable"),f=b.options,h=f.snapTolerance,e=d.offset.left,g=e+b.helperProportions.width,k=d.offset.top,l=k+b.helperProportions.height,
m=b.snapElements.length-1;m>=0;m--){var o=b.snapElements[m].left,p=o+b.snapElements[m].width,q=b.snapElements[m].top,t=q+b.snapElements[m].height;if(o-h<e&&e<p+h&&q-h<k&&k<t+h||o-h<e&&e<p+h&&q-h<l&&l<t+h||o-h<g&&g<p+h&&q-h<k&&k<t+h||o-h<g&&g<p+h&&q-h<l&&l<t+h){if(f.snapMode!="inner"){var n=Math.abs(q-l)<=h,v=Math.abs(t-k)<=h,u=Math.abs(o-g)<=h,s=Math.abs(p-e)<=h;if(n)d.position.top=b._convertPositionTo("relative",{top:q-b.helperProportions.height,left:0}).top-b.margins.top;if(v)d.position.top=b._convertPositionTo("relative",
{top:t,left:0}).top-b.margins.top;if(u)d.position.left=b._convertPositionTo("relative",{top:0,left:o-b.helperProportions.width}).left-b.margins.left;if(s)d.position.left=b._convertPositionTo("relative",{top:0,left:p}).left-b.margins.left}var A=n||v||u||s;if(f.snapMode!="outer"){n=Math.abs(q-k)<=h;v=Math.abs(t-l)<=h;u=Math.abs(o-e)<=h;s=Math.abs(p-g)<=h;if(n)d.position.top=b._convertPositionTo("relative",{top:q,left:0}).top-b.margins.top;if(v)d.position.top=b._convertPositionTo("relative",{top:t-b.helperProportions.height,
left:0}).top-b.margins.top;if(u)d.position.left=b._convertPositionTo("relative",{top:0,left:o}).left-b.margins.left;if(s)d.position.left=b._convertPositionTo("relative",{top:0,left:p-b.helperProportions.width}).left-b.margins.left}!b.snapElements[m].snapping&&(n||v||u||s||A)&&b.options.snap.snap&&b.options.snap.snap.call(b.element,c,a.extend(b._uiHash(),{snapItem:b.snapElements[m].item}));b.snapElements[m].snapping=n||v||u||s||A}else b.snapElements[m].snapping&&b.options.snap.release&&b.options.snap.release.call(b.element,
c,a.extend(b._uiHash(),{snapItem:b.snapElements[m].item})),b.snapElements[m].snapping=!1}}});a.ui.plugin.add("draggable","stack",{start:function(){var c=a(this).data("draggable").options,c=a.makeArray(a(c.stack)).sort(function(b,c){return(parseInt(a(b).css("zIndex"),10)||0)-(parseInt(a(c).css("zIndex"),10)||0)});if(c.length){var d=parseInt(c[0].style.zIndex)||0;a(c).each(function(a){this.style.zIndex=d+a});this[0].style.zIndex=d+c.length}}});a.ui.plugin.add("draggable","zIndex",{start:function(c,
d){var b=a(d.helper),f=a(this).data("draggable").options;if(b.css("zIndex"))f._zIndex=b.css("zIndex");b.css("zIndex",f.zIndex)},stop:function(c,d){var b=a(this).data("draggable").options;b._zIndex&&a(d.helper).css("zIndex",b._zIndex)}})})(jQuery);
(function(a){a.widget("ui.resizable",a.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3},_create:function(){var b=this,c=this.options;this.element.addClass("ui-resizable");a.extend(this,{_aspectRatio:!!c.aspectRatio,aspectRatio:c.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],
_helper:c.helper||c.ghost||c.animate?c.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i))/relative/.test(this.element.css("position"))&&a.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"}),this.element.wrap(a('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),
this.element=this.element.parent().data("resizable",this.element.data("resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize",
"none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize();this.handles=c.handles||(!a(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles==
"all")this.handles="n,e,s,w,se,sw,ne,nw";var d=this.handles.split(",");this.handles={};for(var e=0;e<d.length;e++){var g=a.trim(d[e]),k=a('<div class="ui-resizable-handle ui-resizable-'+g+'"></div>');/sw|se|ne|nw/.test(g)&&k.css({zIndex:++c.zIndex});"se"==g&&k.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[g]=".ui-resizable-"+g;this.element.append(k)}}this._renderAxis=function(b){var b=b||this.element,c;for(c in this.handles){this.handles[c].constructor==String&&(this.handles[c]=a(this.handles[c],
this.element).show());if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var e=a(this.handles[c],this.element),f=0,f=/sw|ne|nw|se|n|s/.test(c)?e.outerHeight():e.outerWidth(),e=["padding",/ne|nw|n/.test(c)?"Top":/se|sw|s/.test(c)?"Bottom":/^e$/.test(c)?"Right":"Left"].join("");b.css(e,f);this._proportionallyResize()}a(this.handles[c])}};this._renderAxis(this.element);this._handles=a(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!b.resizing){if(this.className)var a=
this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);b.axis=a&&a[1]?a[1]:"se"}});c.autoHide&&(this._handles.hide(),a(this.element).addClass("ui-resizable-autohide").hover(function(){c.disabled||(a(this).removeClass("ui-resizable-autohide"),b._handles.show())},function(){!c.disabled&&!b.resizing&&(a(this).addClass("ui-resizable-autohide"),b._handles.hide())}));this._mouseInit()},destroy:function(){this._mouseDestroy();var b=function(b){a(b).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};
if(this.elementIsWrapper){b(this.element);var c=this.element;c.after(this.originalElement.css({position:c.css("position"),width:c.outerWidth(),height:c.outerHeight(),top:c.css("top"),left:c.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);b(this.originalElement);return this},_mouseCapture:function(b){var c=!1,d;for(d in this.handles)a(this.handles[d])[0]==b.target&&(c=!0);return!this.options.disabled&&c},_mouseStart:function(b){var f=this.options,d=this.element.position(),
e=this.element;this.resizing=!0;this.documentScroll={top:a(document).scrollTop(),left:a(document).scrollLeft()};(e.is(".ui-draggable")||/absolute/.test(e.css("position")))&&e.css({position:"absolute",top:d.top,left:d.left});a.browser.opera&&/relative/.test(e.css("position"))&&e.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();var d=c(this.helper.css("left")),g=c(this.helper.css("top"));f.containment&&(d+=a(f.containment).scrollLeft()||0,g+=a(f.containment).scrollTop()||0);this.offset=
this.helper.offset();this.position={left:d,top:g};this.size=this._helper?{width:e.outerWidth(),height:e.outerHeight()}:{width:e.width(),height:e.height()};this.originalSize=this._helper?{width:e.outerWidth(),height:e.outerHeight()}:{width:e.width(),height:e.height()};this.originalPosition={left:d,top:g};this.sizeDiff={width:e.outerWidth()-e.width(),height:e.outerHeight()-e.height()};this.originalMousePosition={left:b.pageX,top:b.pageY};this.aspectRatio=typeof f.aspectRatio=="number"?f.aspectRatio:
this.originalSize.width/this.originalSize.height||1;f=a(".ui-resizable-"+this.axis).css("cursor");a("body").css("cursor",f=="auto"?this.axis+"-resize":f);e.addClass("ui-resizable-resizing");this._propagate("start",b);return!0},_mouseDrag:function(a){var c=this.helper,d=this.originalMousePosition,e=this._change[this.axis];if(!e)return!1;d=e.apply(this,[a,a.pageX-d.left||0,a.pageY-d.top||0]);this._updateVirtualBoundaries(a.shiftKey);if(this._aspectRatio||a.shiftKey)d=this._updateRatio(d,a);d=this._respectSize(d,
a);this._propagate("resize",a);c.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(d);this._trigger("resize",a,this.ui());return!1},_mouseStop:function(b){this.resizing=!1;var c=this.options;if(this._helper){var d=this._proportionallyResizeElements,e=d.length&&/textarea/i.test(d[0].nodeName),d=e&&a.ui.hasScroll(d[0],"left")?0:
this.sizeDiff.height,e=e?0:this.sizeDiff.width,e={width:this.helper.width()-e,height:this.helper.height()-d},d=parseInt(this.element.css("left"),10)+(this.position.left-this.originalPosition.left)||null,g=parseInt(this.element.css("top"),10)+(this.position.top-this.originalPosition.top)||null;c.animate||this.element.css(a.extend(e,{top:g,left:d}));this.helper.height(this.size.height);this.helper.width(this.size.width);this._helper&&!c.animate&&this._proportionallyResize()}a("body").css("cursor","auto");
this.element.removeClass("ui-resizable-resizing");this._propagate("stop",b);this._helper&&this.helper.remove();return!1},_updateVirtualBoundaries:function(a){var c=this.options,h,e,g,c={minWidth:d(c.minWidth)?c.minWidth:0,maxWidth:d(c.maxWidth)?c.maxWidth:Infinity,minHeight:d(c.minHeight)?c.minHeight:0,maxHeight:d(c.maxHeight)?c.maxHeight:Infinity};if(this._aspectRatio||a){a=c.minHeight*this.aspectRatio;e=c.minWidth/this.aspectRatio;h=c.maxHeight*this.aspectRatio;g=c.maxWidth/this.aspectRatio;if(a>
c.minWidth)c.minWidth=a;if(e>c.minHeight)c.minHeight=e;if(h<c.maxWidth)c.maxWidth=h;if(g<c.maxHeight)c.maxHeight=g}this._vBoundaries=c},_updateCache:function(a){this.offset=this.helper.offset();if(d(a.left))this.position.left=a.left;if(d(a.top))this.position.top=a.top;if(d(a.height))this.size.height=a.height;if(d(a.width))this.size.width=a.width},_updateRatio:function(a){var c=this.position,h=this.size,e=this.axis;if(d(a.height))a.width=a.height*this.aspectRatio;else if(d(a.width))a.height=a.width/
this.aspectRatio;if(e=="sw")a.left=c.left+(h.width-a.width),a.top=null;if(e=="nw")a.top=c.top+(h.height-a.height),a.left=c.left+(h.width-a.width);return a},_respectSize:function(a){var c=this._vBoundaries,h=this.axis,e=d(a.width)&&c.maxWidth&&c.maxWidth<a.width,g=d(a.height)&&c.maxHeight&&c.maxHeight<a.height,k=d(a.width)&&c.minWidth&&c.minWidth>a.width,l=d(a.height)&&c.minHeight&&c.minHeight>a.height;if(k)a.width=c.minWidth;if(l)a.height=c.minHeight;if(e)a.width=c.maxWidth;if(g)a.height=c.maxHeight;
var m=this.originalPosition.left+this.originalSize.width,o=this.position.top+this.size.height,p=/sw|nw|w/.test(h),h=/nw|ne|n/.test(h);if(k&&p)a.left=m-c.minWidth;if(e&&p)a.left=m-c.maxWidth;if(l&&h)a.top=o-c.minHeight;if(g&&h)a.top=o-c.maxHeight;if((c=!a.width&&!a.height)&&!a.left&&a.top)a.top=null;else if(c&&!a.top&&a.left)a.left=null;return a},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var b=this.helper||this.element,c=0;c<this._proportionallyResizeElements.length;c++){var d=
this._proportionallyResizeElements[c];if(!this.borderDif){var e=[d.css("borderTopWidth"),d.css("borderRightWidth"),d.css("borderBottomWidth"),d.css("borderLeftWidth")],g=[d.css("paddingTop"),d.css("paddingRight"),d.css("paddingBottom"),d.css("paddingLeft")];this.borderDif=a.map(e,function(a,b){var c=parseInt(a,10)||0,e=parseInt(g[b],10)||0;return c+e})}if(!a.browser.msie||!a(b).is(":hidden")&&!a(b).parents(":hidden").length)d.css({height:b.height()-this.borderDif[0]-this.borderDif[2]||0,width:b.width()-
this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var b=this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||a('<div style="overflow:hidden;"></div>');var c=a.browser.msie&&a.browser.version<7,d=c?1:0,c=c?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+c,height:this.element.outerHeight()+c,position:"absolute",left:this.elementOffset.left-d+"px",top:this.elementOffset.top-d+"px",zIndex:++b.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=
this.element},_change:{e:function(a,c){return{width:this.originalSize.width+c}},w:function(a,c){return{left:this.originalPosition.left+c,width:this.originalSize.width-c}},n:function(a,c,d){return{top:this.originalPosition.top+d,height:this.originalSize.height-d}},s:function(a,c,d){return{height:this.originalSize.height+d}},se:function(b,c,d){return a.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,c,d]))},sw:function(b,c,d){return a.extend(this._change.s.apply(this,arguments),
this._change.w.apply(this,[b,c,d]))},ne:function(b,c,d){return a.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[b,c,d]))},nw:function(b,c,d){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,c,d]))}},_propagate:function(b,c){a.ui.plugin.call(this,b,[c,this.ui()]);b!="resize"&&this._trigger(b,c,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,
originalSize:this.originalSize,originalPosition:this.originalPosition}}});a.extend(a.ui.resizable,{version:"1.8.16"});a.ui.plugin.add("resizable","alsoResize",{start:function(){var b=a(this).data("resizable").options,c=function(b){a(b).each(function(){var b=a(this);b.data("resizable-alsoresize",{width:parseInt(b.width(),10),height:parseInt(b.height(),10),left:parseInt(b.css("left"),10),top:parseInt(b.css("top"),10),position:b.css("position")})})};typeof b.alsoResize=="object"&&!b.alsoResize.parentNode?
b.alsoResize.length?(b.alsoResize=b.alsoResize[0],c(b.alsoResize)):a.each(b.alsoResize,function(a){c(a)}):c(b.alsoResize)},resize:function(b,c){var d=a(this).data("resizable"),e=d.options,g=d.originalSize,k=d.originalPosition,l={height:d.size.height-g.height||0,width:d.size.width-g.width||0,top:d.position.top-k.top||0,left:d.position.left-k.left||0},m=function(b,e){a(b).each(function(){var b=a(this),g=a(this).data("resizable-alsoresize"),k={},m=e&&e.length?e:b.parents(c.originalElement[0]).length?
["width","height"]:["width","height","top","left"];a.each(m,function(a,b){var c=(g[b]||0)+(l[b]||0);c&&c>=0&&(k[b]=c||null)});if(a.browser.opera&&/relative/.test(b.css("position")))d._revertToRelativePosition=!0,b.css({position:"absolute",top:"auto",left:"auto"});b.css(k)})};typeof e.alsoResize=="object"&&!e.alsoResize.nodeType?a.each(e.alsoResize,function(a,b){m(a,b)}):m(e.alsoResize)},stop:function(){var b=a(this).data("resizable"),c=b.options,d=function(b){a(b).each(function(){var b=a(this);b.css({position:b.data("resizable-alsoresize").position})})};
if(b._revertToRelativePosition)b._revertToRelativePosition=!1,typeof c.alsoResize=="object"&&!c.alsoResize.nodeType?a.each(c.alsoResize,function(a){d(a)}):d(c.alsoResize);a(this).removeData("resizable-alsoresize")}});a.ui.plugin.add("resizable","animate",{stop:function(b){var c=a(this).data("resizable"),d=c.options,e=c._proportionallyResizeElements,g=e.length&&/textarea/i.test(e[0].nodeName),k=g&&a.ui.hasScroll(e[0],"left")?0:c.sizeDiff.height,g={width:c.size.width-(g?0:c.sizeDiff.width),height:c.size.height-
k},k=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null,l=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null;c.element.animate(a.extend(g,l&&k?{top:l,left:k}:{}),{duration:d.animateDuration,easing:d.animateEasing,step:function(){var d={width:parseInt(c.element.css("width"),10),height:parseInt(c.element.css("height"),10),top:parseInt(c.element.css("top"),10),left:parseInt(c.element.css("left"),10)};e&&e.length&&a(e[0]).css({width:d.width,
height:d.height});c._updateCache(d);c._propagate("resize",b)}})}});a.ui.plugin.add("resizable","containment",{start:function(){var b=a(this).data("resizable"),f=b.element,d=b.options.containment;if(f=d instanceof a?d.get(0):/parent/.test(d)?f.parent().get(0):d)if(b.containerElement=a(f),/document/.test(d)||d==document)b.containerOffset={left:0,top:0},b.containerPosition={left:0,top:0},b.parentData={element:a(document),left:0,top:0,width:a(document).width(),height:a(document).height()||document.body.parentNode.scrollHeight};
else{var e=a(f),g=[];a(["Top","Right","Left","Bottom"]).each(function(a,b){g[a]=c(e.css("padding"+b))});b.containerOffset=e.offset();b.containerPosition=e.position();b.containerSize={height:e.innerHeight()-g[3],width:e.innerWidth()-g[1]};var d=b.containerOffset,k=b.containerSize.height,l=b.containerSize.width,l=a.ui.hasScroll(f,"left")?f.scrollWidth:l,k=a.ui.hasScroll(f)?f.scrollHeight:k;b.parentData={element:f,left:d.left,top:d.top,width:l,height:k}}},resize:function(b){var c=a(this).data("resizable"),
d=c.options,e=c.containerOffset,g=c.position,b=c._aspectRatio||b.shiftKey,k={top:0,left:0},l=c.containerElement;l[0]!=document&&/static/.test(l.css("position"))&&(k=e);if(g.left<(c._helper?e.left:0)){c.size.width+=c._helper?c.position.left-e.left:c.position.left-k.left;if(b)c.size.height=c.size.width/d.aspectRatio;c.position.left=d.helper?e.left:0}if(g.top<(c._helper?e.top:0)){c.size.height+=c._helper?c.position.top-e.top:c.position.top;if(b)c.size.width=c.size.height*d.aspectRatio;c.position.top=
c._helper?e.top:0}c.offset.left=c.parentData.left+c.position.left;c.offset.top=c.parentData.top+c.position.top;d=Math.abs((c._helper?c.offset.left-k.left:c.offset.left-k.left)+c.sizeDiff.width);e=Math.abs((c._helper?c.offset.top-k.top:c.offset.top-e.top)+c.sizeDiff.height);g=c.containerElement.get(0)==c.element.parent().get(0);k=/relative|absolute/.test(c.containerElement.css("position"));g&&k&&(d-=c.parentData.left);if(d+c.size.width>=c.parentData.width&&(c.size.width=c.parentData.width-d,b))c.size.height=
c.size.width/c.aspectRatio;if(e+c.size.height>=c.parentData.height&&(c.size.height=c.parentData.height-e,b))c.size.width=c.size.height*c.aspectRatio},stop:function(){var b=a(this).data("resizable"),c=b.options,d=b.containerOffset,e=b.containerPosition,g=b.containerElement,k=a(b.helper),l=k.offset(),m=k.outerWidth()-b.sizeDiff.width,k=k.outerHeight()-b.sizeDiff.height;b._helper&&!c.animate&&/relative/.test(g.css("position"))&&a(this).css({left:l.left-e.left-d.left,width:m,height:k});b._helper&&!c.animate&&
/static/.test(g.css("position"))&&a(this).css({left:l.left-e.left-d.left,width:m,height:k})}});a.ui.plugin.add("resizable","ghost",{start:function(){var b=a(this).data("resizable"),c=b.options,d=b.size;b.ghost=b.originalElement.clone();b.ghost.css({opacity:0.25,display:"block",position:"relative",height:d.height,width:d.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof c.ghost=="string"?c.ghost:"");b.ghost.appendTo(b.helper)},resize:function(){var b=a(this).data("resizable");
b.ghost&&b.ghost.css({position:"relative",height:b.size.height,width:b.size.width})},stop:function(){var b=a(this).data("resizable");b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}});a.ui.plugin.add("resizable","grid",{resize:function(){var b=a(this).data("resizable"),c=b.options,d=b.size,e=b.originalSize,g=b.originalPosition,k=b.axis;c.grid=typeof c.grid=="number"?[c.grid,c.grid]:c.grid;var l=Math.round((d.width-e.width)/(c.grid[0]||1))*(c.grid[0]||1),c=Math.round((d.height-e.height)/
(c.grid[1]||1))*(c.grid[1]||1);/^(se|s|e)$/.test(k)?(b.size.width=e.width+l,b.size.height=e.height+c):/^(ne)$/.test(k)?(b.size.width=e.width+l,b.size.height=e.height+c,b.position.top=g.top-c):(/^(sw)$/.test(k)?(b.size.width=e.width+l,b.size.height=e.height+c):(b.size.width=e.width+l,b.size.height=e.height+c,b.position.top=g.top-c),b.position.left=g.left-l)}});var c=function(a){return parseInt(a,10)||0},d=function(a){return!isNaN(parseInt(a,10))}})(jQuery);
(function(a){var c,d,b,f,h=function(){var b=a(this).find(":ui-button");setTimeout(function(){b.button("refresh")},1)},e=function(b){var c=b.name,e=b.form,d=a([]);c&&(d=e?a(e).find("[name='"+c+"']"):a("[name='"+c+"']",b.ownerDocument).filter(function(){return!this.form}));return d};a.widget("ui.button",{options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",h);if(typeof this.options.disabled!==
"boolean")this.options.disabled=this.element.propAttr("disabled");this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var g=this,k=this.options,l=this.type==="checkbox"||this.type==="radio",m="ui-state-hover"+(!l?" ui-state-active":"");if(k.label===null)k.label=this.buttonElement.html();if(this.element.is(":disabled"))k.disabled=!0;this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",function(){k.disabled||
(a(this).addClass("ui-state-hover"),this===c&&a(this).addClass("ui-state-active"))}).bind("mouseleave.button",function(){k.disabled||a(this).removeClass(m)}).bind("click.button",function(a){k.disabled&&(a.preventDefault(),a.stopImmediatePropagation())});this.element.bind("focus.button",function(){g.buttonElement.addClass("ui-state-focus")}).bind("blur.button",function(){g.buttonElement.removeClass("ui-state-focus")});l&&(this.element.bind("change.button",function(){f||g.refresh()}),this.buttonElement.bind("mousedown.button",
function(a){if(!k.disabled)f=!1,d=a.pageX,b=a.pageY}).bind("mouseup.button",function(a){if(!k.disabled&&(d!==a.pageX||b!==a.pageY))f=!0}));this.type==="checkbox"?this.buttonElement.bind("click.button",function(){if(k.disabled||f)return!1;a(this).toggleClass("ui-state-active");g.buttonElement.attr("aria-pressed",g.element[0].checked)}):this.type==="radio"?this.buttonElement.bind("click.button",function(){if(k.disabled||f)return!1;a(this).addClass("ui-state-active");g.buttonElement.attr("aria-pressed",
"true");var b=g.element[0];e(b).not(b).map(function(){return a(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown.button",function(){if(k.disabled)return!1;a(this).addClass("ui-state-active");c=this;a(document).one("mouseup",function(){c=null})}).bind("mouseup.button",function(){if(k.disabled)return!1;a(this).removeClass("ui-state-active")}).bind("keydown.button",function(b){if(k.disabled)return!1;(b.keyCode==a.ui.keyCode.SPACE||
b.keyCode==a.ui.keyCode.ENTER)&&a(this).addClass("ui-state-active")}).bind("keyup.button",function(){a(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(b){b.keyCode===a.ui.keyCode.SPACE&&a(this).click()}));this._setOption("disabled",k.disabled);this._resetButton()},_determineButtonType:function(){this.type=this.element.is(":checkbox")?"checkbox":this.element.is(":radio")?"radio":this.element.is("input")?"input":"button";if(this.type==="checkbox"||
this.type==="radio"){var a=this.element.parents().filter(":last"),b="label[for='"+this.element.attr("id")+"']";this.buttonElement=a.find(b);if(!this.buttonElement.length&&(a=a.length?a.siblings():this.element.siblings(),this.buttonElement=a.filter(b),!this.buttonElement.length))this.buttonElement=a.find(b);this.element.addClass("ui-helper-hidden-accessible");(a=this.element.is(":checked"))&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",a)}else this.buttonElement=
this.element},widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active  ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());this.hasTitle||
this.buttonElement.removeAttr("title");a.Widget.prototype.destroy.call(this)},_setOption:function(b,c){a.Widget.prototype._setOption.apply(this,arguments);b==="disabled"?c?this.element.propAttr("disabled",!0):this.element.propAttr("disabled",!1):this._resetButton()},refresh:function(){var b=this.element.is(":disabled");b!==this.options.disabled&&this._setOption("disabled",b);this.type==="radio"?e(this.element[0]).each(function(){a(this).is(":checked")?a(this).button("widget").addClass("ui-state-active").attr("aria-pressed",
"true"):a(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):this.type==="checkbox"&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if(this.type==="input")this.options.label&&this.element.val(this.options.label);else{var b=this.buttonElement.removeClass("ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only"),
c=a("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(b.empty()).text(),e=this.options.icons,d=e.primary&&e.secondary,f=[];e.primary||e.secondary?(this.options.text&&f.push("ui-button-text-icon"+(d?"s":e.primary?"-primary":"-secondary")),e.primary&&b.prepend("<span class='ui-button-icon-primary ui-icon "+e.primary+"'></span>"),e.secondary&&b.append("<span class='ui-button-icon-secondary ui-icon "+e.secondary+"'></span>"),this.options.text||(f.push(d?"ui-button-icons-only":
"ui-button-icon-only"),this.hasTitle||b.attr("title",c))):f.push("ui-button-text-only");b.addClass(f.join(" "))}}});a.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(b,c){b==="disabled"&&this.buttons.button("option",b,c);a.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){var b=this.element.css("direction")==="ltr";
this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(b?"ui-corner-left":"ui-corner-right").end().filter(":last").addClass(b?"ui-corner-right":"ui-corner-left").end().end()},destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");
a.Widget.prototype.destroy.call(this)}})})(jQuery);
(function(a,c){var d={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},b={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},f=a.attrFn||{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0,click:!0};a.widget("ui.dialog",{options:{autoOpen:!0,buttons:{},closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:!1,maxWidth:!1,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",collision:"fit",using:function(b){var c=
a(this).css(b).offset().top;c<0&&a(this).css("top",b.top-c)}},resizable:!0,show:null,stack:!0,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");if(typeof this.originalTitle!=="string")this.originalTitle="";this.options.title=this.options.title||this.originalTitle;var b=this,c=b.options,d=c.title||"&#160;",f=a.ui.dialog.getTitleId(b.element),l=(b.uiDialog=a("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+
c.dialogClass).css({zIndex:c.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(d){c.closeOnEscape&&!d.isDefaultPrevented()&&d.keyCode&&d.keyCode===a.ui.keyCode.ESCAPE&&(b.close(d),d.preventDefault())}).attr({role:"dialog","aria-labelledby":f}).mousedown(function(a){b.moveToTop(!1,a)});b.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(l);var m=(b.uiDialogTitlebar=a("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(l),
o=a('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){o.addClass("ui-state-hover")},function(){o.removeClass("ui-state-hover")}).focus(function(){o.addClass("ui-state-focus")}).blur(function(){o.removeClass("ui-state-focus")}).click(function(a){b.close(a);return!1}).appendTo(m);(b.uiDialogTitlebarCloseText=a("<span></span>")).addClass("ui-icon ui-icon-closethick").text(c.closeText).appendTo(o);a("<span></span>").addClass("ui-dialog-title").attr("id",
f).html(d).prependTo(m);if(a.isFunction(c.beforeclose)&&!a.isFunction(c.beforeClose))c.beforeClose=c.beforeclose;m.find("*").add(m).disableSelection();c.draggable&&a.fn.draggable&&b._makeDraggable();c.resizable&&a.fn.resizable&&b._makeResizable();b._createButtons(c.buttons);b._isOpen=!1;a.fn.bgiframe&&l.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){this.overlay&&this.overlay.destroy();this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");
this.uiDialog.remove();this.originalTitle&&this.element.attr("title",this.originalTitle);return this},widget:function(){return this.uiDialog},close:function(b){var c=this,d,f;if(!1!==c._trigger("beforeClose",b)){c.overlay&&c.overlay.destroy();c.uiDialog.unbind("keypress.ui-dialog");c._isOpen=!1;c.options.hide?c.uiDialog.hide(c.options.hide,function(){c._trigger("close",b)}):(c.uiDialog.hide(),c._trigger("close",b));a.ui.dialog.overlay.resize();if(c.options.modal)d=0,a(".ui-dialog").each(function(){this!==
c.uiDialog[0]&&(f=a(this).css("z-index"),isNaN(f)||(d=Math.max(d,f)))}),a.ui.dialog.maxZ=d;return c}},isOpen:function(){return this._isOpen},moveToTop:function(b,c){var d=this.options;if(d.modal&&!b||!d.stack&&!d.modal)return this._trigger("focus",c);if(d.zIndex>a.ui.dialog.maxZ)a.ui.dialog.maxZ=d.zIndex;if(this.overlay)a.ui.dialog.maxZ+=1,this.overlay.$el.css("z-index",a.ui.dialog.overlay.maxZ=a.ui.dialog.maxZ);d={scrollTop:this.element.scrollTop(),scrollLeft:this.element.scrollLeft()};a.ui.dialog.maxZ+=
1;this.uiDialog.css("z-index",a.ui.dialog.maxZ);this.element.attr(d);this._trigger("focus",c);return this},open:function(){if(!this._isOpen){var b=this.options,c=this.uiDialog;this.overlay=b.modal?new a.ui.dialog.overlay(this):null;this._size();this._position(b.position);c.show(b.show);this.moveToTop(!0);b.modal&&c.bind("keypress.ui-dialog",function(b){if(b.keyCode===a.ui.keyCode.TAB){var c=a(":tabbable",this),e=c.filter(":first"),c=c.filter(":last");if(b.target===c[0]&&!b.shiftKey)return e.focus(1),
!1;else if(b.target===e[0]&&b.shiftKey)return c.focus(1),!1}});a(this.element.find(":tabbable").get().concat(c.find(".ui-dialog-buttonpane :tabbable").get().concat(c.get()))).eq(0).focus();this._isOpen=!0;this._trigger("open");return this}},_createButtons:function(b){var c=this,d=!1,k=a("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),l=a("<div></div>").addClass("ui-dialog-buttonset").appendTo(k);c.uiDialog.find(".ui-dialog-buttonpane").remove();typeof b==="object"&&
b!==null&&a.each(b,function(){return!(d=!0)});d&&(a.each(b,function(b,d){var d=a.isFunction(d)?{click:d,text:b}:d,g=a('<button type="button"></button>').click(function(){d.click.apply(c.element[0],arguments)}).appendTo(l);a.each(d,function(a,b){if(a!=="click")if(a in f)g[a](b);else g.attr(a,b)});a.fn.button&&g.button()}),k.appendTo(c.uiDialog))},_makeDraggable:function(){function b(a){return{position:a.position,offset:a.offset}}var c=this,d=c.options,f=a(document),l;c.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",
handle:".ui-dialog-titlebar",containment:"document",start:function(f,k){l=d.height==="auto"?"auto":a(this).height();a(this).height(a(this).height()).addClass("ui-dialog-dragging");c._trigger("dragStart",f,b(k))},drag:function(a,d){c._trigger("drag",a,b(d))},stop:function(m,o){d.position=[o.position.left-f.scrollLeft(),o.position.top-f.scrollTop()];a(this).removeClass("ui-dialog-dragging").height(l);c._trigger("dragStop",m,b(o));a.ui.dialog.overlay.resize()}})},_makeResizable:function(b){function e(a){return{originalPosition:a.originalPosition,
originalSize:a.originalSize,position:a.position,size:a.size}}var b=b===c?this.options.resizable:b,d=this,f=d.options,l=d.uiDialog.css("position"),b=typeof b==="string"?b:"n,e,s,w,se,sw,ne,nw";d.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:d.element,maxWidth:f.maxWidth,maxHeight:f.maxHeight,minWidth:f.minWidth,minHeight:d._minHeight(),handles:b,start:function(b,c){a(this).addClass("ui-dialog-resizing");d._trigger("resizeStart",b,e(c))},resize:function(a,b){d._trigger("resize",
a,e(b))},stop:function(b,c){a(this).removeClass("ui-dialog-resizing");f.height=a(this).height();f.width=a(this).width();d._trigger("resizeStop",b,e(c));a.ui.dialog.overlay.resize()}}).css("position",l).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var a=this.options;return a.height==="auto"?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(b){var c=[],d=[0,0],f;if(b){if(typeof b==="string"||typeof b==="object"&&"0"in b)c=b.split?b.split(" "):
[b[0],b[1]],c.length===1&&(c[1]=c[0]),a.each(["left","top"],function(a,b){+c[a]===c[a]&&(d[a]=c[a],c[a]=b)}),b={my:c.join(" "),at:c.join(" "),offset:d.join(" ")};b=a.extend({},a.ui.dialog.prototype.options.position,b)}else b=a.ui.dialog.prototype.options.position;(f=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(a.extend({of:window},b));f||this.uiDialog.hide()},_setOptions:function(c){var e=this,f={},k=!1;a.each(c,function(a,c){e._setOption(a,c);a in
d&&(k=!0);a in b&&(f[a]=c)});k&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",f)},_setOption:function(b,c){var d=this.uiDialog;switch(b){case "beforeclose":b="beforeClose";break;case "buttons":this._createButtons(c);break;case "closeText":this.uiDialogTitlebarCloseText.text(""+c);break;case "dialogClass":d.removeClass(this.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+c);break;case "disabled":c?d.addClass("ui-dialog-disabled"):
d.removeClass("ui-dialog-disabled");break;case "draggable":var f=d.is(":data(draggable)");f&&!c&&d.draggable("destroy");!f&&c&&this._makeDraggable();break;case "position":this._position(c);break;case "resizable":(f=d.is(":data(resizable)"))&&!c&&d.resizable("destroy");f&&typeof c==="string"&&d.resizable("option","handles",c);!f&&c!==!1&&this._makeResizable(c);break;case "title":a(".ui-dialog-title",this.uiDialogTitlebar).html(""+(c||"&#160;"))}a.Widget.prototype._setOption.apply(this,arguments)},
_size:function(){var b=this.options,c,d,f=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(b.minWidth>b.width)b.width=b.minWidth;c=this.uiDialog.css({height:"auto",width:b.width}).height();d=Math.max(0,b.minHeight-c);b.height==="auto"?a.support.minHeight?this.element.css({minHeight:d,height:"auto"}):(this.uiDialog.show(),b=this.element.css("height","auto").height(),f||this.uiDialog.hide(),this.element.height(Math.max(b,d))):this.element.height(Math.max(b.height-
c,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});a.extend(a.ui.dialog,{version:"1.8.16",uuid:0,maxZ:0,getTitleId:function(a){a=a.attr("id");if(!a)this.uuid+=1,a=this.uuid;return"ui-dialog-title-"+a},overlay:function(b){this.$el=a.ui.dialog.overlay.create(b)}});a.extend(a.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:a.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(a){return a+".dialog-overlay"}).join(" "),
create:function(b){this.instances.length===0&&(setTimeout(function(){a.ui.dialog.overlay.instances.length&&a(document).bind(a.ui.dialog.overlay.events,function(b){if(a(b.target).zIndex()<a.ui.dialog.overlay.maxZ)return!1})},1),a(document).bind("keydown.dialog-overlay",function(c){b.options.closeOnEscape&&!c.isDefaultPrevented()&&c.keyCode&&c.keyCode===a.ui.keyCode.ESCAPE&&(b.close(c),c.preventDefault())}),a(window).bind("resize.dialog-overlay",a.ui.dialog.overlay.resize));var c=(this.oldInstances.pop()||
a("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});a.fn.bgiframe&&c.bgiframe();this.instances.push(c);return c},destroy:function(b){var c=a.inArray(b,this.instances);c!=-1&&this.oldInstances.push(this.instances.splice(c,1)[0]);this.instances.length===0&&a([document,window]).unbind(".dialog-overlay");b.remove();var d=0;a.each(this.instances,function(){d=Math.max(d,this.css("z-index"))});this.maxZ=d},height:function(){var b,c;return a.browser.msie&&
a.browser.version<7?(b=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),c=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight),b<c?a(window).height()+"px":b+"px"):a(document).height()+"px"},width:function(){var b,c;return a.browser.msie?(b=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),c=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth),b<c?a(window).width()+"px":b+"px"):a(document).width()+"px"},resize:function(){var b=
a([]);a.each(a.ui.dialog.overlay.instances,function(){b=b.add(this)});b.css({width:0,height:0}).css({width:a.ui.dialog.overlay.width(),height:a.ui.dialog.overlay.height()})}});a.extend(a.ui.dialog.overlay.prototype,{destroy:function(){a.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
(function(a){a.widget("ui.slider",a.ui.mouse,{widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null},_create:function(){var c=this,d=this.options,b=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),f=d.values&&d.values.length||1,h=[];this._mouseSliding=this._keySliding=!1;this._animateOff=!0;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+
this.orientation+" ui-widget ui-widget-content ui-corner-all"+(d.disabled?" ui-slider-disabled ui-disabled":""));this.range=a([]);if(d.range){if(d.range===!0){if(!d.values)d.values=[this._valueMin(),this._valueMin()];if(d.values.length&&d.values.length!==2)d.values=[d.values[0],d.values[0]]}this.range=a("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+(d.range==="min"||d.range==="max"?" ui-slider-range-"+d.range:""))}for(var e=b.length;e<f;e+=1)h.push("<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>");
this.handles=b.add(a(h.join("")).appendTo(c.element));this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(a){a.preventDefault()}).hover(function(){d.disabled||a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")}).focus(function(){d.disabled?a(this).blur():(a(".ui-slider .ui-state-focus").removeClass("ui-state-focus"),a(this).addClass("ui-state-focus"))}).blur(function(){a(this).removeClass("ui-state-focus")});this.handles.each(function(b){a(this).data("index.ui-slider-handle",
b)});this.handles.keydown(function(b){var e=!0,d=a(this).data("index.ui-slider-handle"),f,h,p;if(!c.options.disabled){switch(b.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(e=!1,!c._keySliding&&(c._keySliding=!0,a(this).addClass("ui-state-active"),f=c._start(b,d),f===!1))return}p=c.options.step;f=c.options.values&&c.options.values.length?h=c.values(d):
h=c.value();switch(b.keyCode){case a.ui.keyCode.HOME:h=c._valueMin();break;case a.ui.keyCode.END:h=c._valueMax();break;case a.ui.keyCode.PAGE_UP:h=c._trimAlignValue(f+(c._valueMax()-c._valueMin())/5);break;case a.ui.keyCode.PAGE_DOWN:h=c._trimAlignValue(f-(c._valueMax()-c._valueMin())/5);break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(f===c._valueMax())return;h=c._trimAlignValue(f+p);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(f===c._valueMin())return;h=c._trimAlignValue(f-p)}c._slide(b,
d,h);return e}}).keyup(function(b){var e=a(this).data("index.ui-slider-handle");if(c._keySliding)c._keySliding=!1,c._stop(b,e),c._change(b,e),a(this).removeClass("ui-state-active")});this._refreshValue();this._animateOff=!1},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy();return this},_mouseCapture:function(c){var d=
this.options,b,f,h,e,g;if(d.disabled)return!1;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();b=this._normValueFromMouse({x:c.pageX,y:c.pageY});f=this._valueMax()-this._valueMin()+1;e=this;this.handles.each(function(c){var d=Math.abs(b-e.values(c));f>d&&(f=d,h=a(this),g=c)});d.range===!0&&this.values(1)===d.min&&(g+=1,h=a(this.handles[g]));if(this._start(c,g)===!1)return!1;this._mouseSliding=!0;e._handleIndex=g;h.addClass("ui-state-active").focus();
d=h.offset();this._clickOffset=!a(c.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:c.pageX-d.left-h.width()/2,top:c.pageY-d.top-h.height()/2-(parseInt(h.css("borderTopWidth"),10)||0)-(parseInt(h.css("borderBottomWidth"),10)||0)+(parseInt(h.css("marginTop"),10)||0)};this.handles.hasClass("ui-state-hover")||this._slide(c,g,b);return this._animateOff=!0},_mouseStart:function(){return!0},_mouseDrag:function(a){var d=this._normValueFromMouse({x:a.pageX,y:a.pageY});this._slide(a,
this._handleIndex,d);return!1},_mouseStop:function(a){this.handles.removeClass("ui-state-active");this._mouseSliding=!1;this._stop(a,this._handleIndex);this._change(a,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=!1},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(a){var d;this.orientation==="horizontal"?(d=this.elementSize.width,a=a.x-this.elementOffset.left-(this._clickOffset?
this._clickOffset.left:0)):(d=this.elementSize.height,a=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0));d=a/d;d>1&&(d=1);d<0&&(d=0);this.orientation==="vertical"&&(d=1-d);a=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+d*a)},_start:function(a,d){var b={handle:this.handles[d],value:this.value()};if(this.options.values&&this.options.values.length)b.value=this.values(d),b.values=this.values();return this._trigger("start",a,b)},_slide:function(a,
d,b){var f;if(this.options.values&&this.options.values.length){f=this.values(d?0:1);if(this.options.values.length===2&&this.options.range===!0&&(d===0&&b>f||d===1&&b<f))b=f;b!==this.values(d)&&(f=this.values(),f[d]=b,a=this._trigger("slide",a,{handle:this.handles[d],value:b,values:f}),this.values(d?0:1),a!==!1&&this.values(d,b,!0))}else b!==this.value()&&(a=this._trigger("slide",a,{handle:this.handles[d],value:b}),a!==!1&&this.value(b))},_stop:function(a,d){var b={handle:this.handles[d],value:this.value()};
if(this.options.values&&this.options.values.length)b.value=this.values(d),b.values=this.values();this._trigger("stop",a,b)},_change:function(a,d){if(!this._keySliding&&!this._mouseSliding){var b={handle:this.handles[d],value:this.value()};if(this.options.values&&this.options.values.length)b.value=this.values(d),b.values=this.values();this._trigger("change",a,b)}},value:function(a){if(arguments.length)this.options.value=this._trimAlignValue(a),this._refreshValue(),this._change(null,0);else return this._value()},
values:function(c,d){var b,f,h;if(arguments.length>1)this.options.values[c]=this._trimAlignValue(d),this._refreshValue(),this._change(null,c);else if(arguments.length)if(a.isArray(arguments[0])){b=this.options.values;f=arguments[0];for(h=0;h<b.length;h+=1)b[h]=this._trimAlignValue(f[h]),this._change(null,h);this._refreshValue()}else return this.options.values&&this.options.values.length?this._values(c):this.value();else return this._values()},_setOption:function(c,d){var b,f=0;if(a.isArray(this.options.values))f=
this.options.values.length;a.Widget.prototype._setOption.apply(this,arguments);switch(c){case "disabled":d?(this.handles.filter(".ui-state-focus").blur(),this.handles.removeClass("ui-state-hover"),this.handles.propAttr("disabled",!0),this.element.addClass("ui-disabled")):(this.handles.propAttr("disabled",!1),this.element.removeClass("ui-disabled"));break;case "orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);
this._refreshValue();break;case "value":this._animateOff=!0;this._refreshValue();this._change(null,0);this._animateOff=!1;break;case "values":this._animateOff=!0;this._refreshValue();for(b=0;b<f;b+=1)this._change(null,b);this._animateOff=!1}},_value:function(){var a=this.options.value;return a=this._trimAlignValue(a)},_values:function(a){var d,b;if(arguments.length)d=this.options.values[a],d=this._trimAlignValue(d);else{d=this.options.values.slice();for(b=0;b<d.length;b+=1)d[b]=this._trimAlignValue(d[b])}return d},
_trimAlignValue:function(a){if(a<=this._valueMin())return this._valueMin();if(a>=this._valueMax())return this._valueMax();var d=this.options.step>0?this.options.step:1,b=(a-this._valueMin())%d;a-=b;Math.abs(b)*2>=d&&(a+=b>0?d:-d);return parseFloat(a.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var c=this.options.range,d=this.options,b=this,f=!this._animateOff?d.animate:!1,h,e={},g,k,l,m;if(this.options.values&&this.options.values.length)this.handles.each(function(c){h=
(b.values(c)-b._valueMin())/(b._valueMax()-b._valueMin())*100;e[b.orientation==="horizontal"?"left":"bottom"]=h+"%";a(this).stop(1,1)[f?"animate":"css"](e,d.animate);if(b.options.range===!0)if(b.orientation==="horizontal"){if(c===0)b.range.stop(1,1)[f?"animate":"css"]({left:h+"%"},d.animate);if(c===1)b.range[f?"animate":"css"]({width:h-g+"%"},{queue:!1,duration:d.animate})}else{if(c===0)b.range.stop(1,1)[f?"animate":"css"]({bottom:h+"%"},d.animate);if(c===1)b.range[f?"animate":"css"]({height:h-g+
"%"},{queue:!1,duration:d.animate})}g=h});else{k=this.value();l=this._valueMin();m=this._valueMax();h=m!==l?(k-l)/(m-l)*100:0;e[b.orientation==="horizontal"?"left":"bottom"]=h+"%";this.handle.stop(1,1)[f?"animate":"css"](e,d.animate);if(c==="min"&&this.orientation==="horizontal")this.range.stop(1,1)[f?"animate":"css"]({width:h+"%"},d.animate);if(c==="max"&&this.orientation==="horizontal")this.range[f?"animate":"css"]({width:100-h+"%"},{queue:!1,duration:d.animate});if(c==="min"&&this.orientation===
"vertical")this.range.stop(1,1)[f?"animate":"css"]({height:h+"%"},d.animate);if(c==="max"&&this.orientation==="vertical")this.range[f?"animate":"css"]({height:100-h+"%"},{queue:!1,duration:d.animate})}}});a.extend(a.ui.slider,{version:"1.8.16"})})(jQuery);
(function(a,c){a.widget("ui.progressbar",{options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()});this.valueDiv=a("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);this.oldValue=this._value();this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");
this.valueDiv.remove();a.Widget.prototype.destroy.apply(this,arguments)},value:function(a){if(a===c)return this._value();this._setOption("value",a);return this},_setOption:function(c,b){if(c==="value")this.options.value=b,this._refreshValue(),this._value()===this.options.max&&this._trigger("complete");a.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var a=this.options.value;typeof a!=="number"&&(a=0);return Math.min(this.options.max,Math.max(this.min,a))},_percentage:function(){return 100*
this._value()/this.options.max},_refreshValue:function(){var a=this.value(),b=this._percentage();if(this.oldValue!==a)this.oldValue=a,this._trigger("change");this.valueDiv.toggle(a>this.min).toggleClass("ui-corner-right",a===this.options.max).width(b.toFixed(0)+"%");this.element.attr("aria-valuenow",a)}});a.extend(a.ui.progressbar,{version:"1.8.16"})})(jQuery);
(function(a){function c(){this.regional=[];this.regional[""]={labels:["Years","Months","Weeks","Days","Hours","Minutes","Seconds"],labels1:["Year","Month","Week","Day","Hour","Minute","Second"],compactLabels:["y","m","w","d"],whichLabels:null,timeSeparator:":",isRTL:!1};this._defaults={until:null,since:null,timezone:null,serverSync:null,format:"dHMS",layout:"",compact:!1,significant:0,description:"",expiryUrl:"",expiryText:"",alwaysExpire:!1,onExpiry:null,onTick:null,tickInterval:1};a.extend(this._defaults,
this.regional[""]);this._serverSyncs=[]}function d(b,c){a.extend(b,c);for(var d in c)c[d]==null&&(b[d]=null);return b}a.extend(c.prototype,{markerClassName:"hasCountdown",_timer:setInterval(function(){a.countdown._updateTargets()},980),_timerTargets:[],setDefaults:function(a){this._resetExtraLabels(this._defaults,a);d(this._defaults,a||{})},UTCDate:function(a,c,d,e,g,k,l,m){typeof c=="object"&&c.constructor==Date&&(m=c.getMilliseconds(),l=c.getSeconds(),k=c.getMinutes(),g=c.getHours(),e=c.getDate(),
d=c.getMonth(),c=c.getFullYear());var o=new Date;o.setUTCFullYear(c);o.setUTCDate(1);o.setUTCMonth(d||0);o.setUTCDate(e||1);o.setUTCHours(g||0);o.setUTCMinutes((k||0)-(Math.abs(a)<30?a*60:a));o.setUTCSeconds(l||0);o.setUTCMilliseconds(m||0);return o},periodsToSeconds:function(a){return a[0]*31557600+a[1]*2629800+a[2]*604800+a[3]*86400+a[4]*3600+a[5]*60+a[6]},_settingsCountdown:function(b,c){if(!c)return a.countdown._defaults;var d=a.data(b,"countdown");return c=="all"?d.options:d.options[c]},_attachCountdown:function(b,
c){var d=a(b);d.hasClass(this.markerClassName)||(d.addClass(this.markerClassName),d={options:a.extend({},c),_periods:[0,0,0,0,0,0,0]},a.data(b,"countdown",d),this._changeCountdown(b))},_addTarget:function(a){this._hasTarget(a)||this._timerTargets.push(a)},_hasTarget:function(b){return a.inArray(b,this._timerTargets)>-1},_removeTarget:function(b){this._timerTargets=a.map(this._timerTargets,function(a){return a==b?null:a})},_updateTargets:function(){for(var a=this._timerTargets.length-1;a>=0;a--)this._updateCountdown(this._timerTargets[a])},
_updateCountdown:function(b,c){var d=a(b);if(c=c||a.data(b,"countdown")){d.html(this._generateHTML(c));d[(this._get(c,"isRTL")?"add":"remove")+"Class"]("countdown_rtl");if(d=this._get(c,"onTick")){var e=c._hold!="lap"?c._periods:this._calculatePeriods(c,c._show,this._get(c,"significant"),new Date),g=this._get(c,"tickInterval");(g==1||this.periodsToSeconds(e)%g==0)&&d.apply(b,[e])}if(c._hold!="pause"&&(c._since?c._now.getTime()<c._since.getTime():c._now.getTime()>=c._until.getTime())&&!c._expiring){c._expiring=
!0;if(this._hasTarget(b)||this._get(c,"alwaysExpire")){this._removeTarget(b);(d=this._get(c,"onExpiry"))&&d.apply(b,[]);if(d=this._get(c,"expiryText"))e=this._get(c,"layout"),c.options.layout=d,this._updateCountdown(b,c),c.options.layout=e;if(d=this._get(c,"expiryUrl"))window.location=d}c._expiring=!1}else c._hold=="pause"&&this._removeTarget(b);a.data(b,"countdown",c)}},_changeCountdown:function(b,c,h){c=c||{};if(typeof c=="string"){var e=c,c={};c[e]=h}if(h=a.data(b,"countdown"))this._resetExtraLabels(h.options,
c),d(h.options,c),this._adjustSettings(b,h),a.data(b,"countdown",h),c=new Date,(h._since&&h._since<c||h._until&&h._until>c)&&this._addTarget(b),this._updateCountdown(b,h)},_resetExtraLabels:function(a,c){var d=!1,e;for(e in c)if(e!="whichLabels"&&e.match(/[Ll]abels/)){d=!0;break}if(d)for(e in a)e.match(/[Ll]abels[0-9]/)&&(a[e]=null)},_adjustSettings:function(a,c){var d,e=this._get(c,"serverSync"),g=0;d=null;for(g=0;g<this._serverSyncs.length;g++)if(this._serverSyncs[g][0]==e){d=this._serverSyncs[g][1];
break}d!=null?(g=e?d:0,d=new Date):(g=e?e.apply(a,[]):null,d=new Date,g=g?d.getTime()-g.getTime():0,this._serverSyncs.push([e,g]));e=this._get(c,"timezone");e=e==null?-d.getTimezoneOffset():e;c._since=this._get(c,"since");if(c._since!=null)c._since=this.UTCDate(e,this._determineTime(c._since,null)),c._since&&g&&c._since.setMilliseconds(c._since.getMilliseconds()+g);c._until=this.UTCDate(e,this._determineTime(this._get(c,"until"),d));g&&c._until.setMilliseconds(c._until.getMilliseconds()+g);c._show=
this._determineShow(c)},_destroyCountdown:function(b){var c=a(b);c.hasClass(this.markerClassName)&&(this._removeTarget(b),c.removeClass(this.markerClassName).empty(),a.removeData(b,"countdown"))},_pauseCountdown:function(a){this._hold(a,"pause")},_lapCountdown:function(a){this._hold(a,"lap")},_resumeCountdown:function(a){this._hold(a,null)},_hold:function(b,c){var d=a.data(b,"countdown");if(d){if(d._hold=="pause"&&!c){d._periods=d._savePeriods;var e=d._since?"-":"+";d[d._since?"_since":"_until"]=
this._determineTime(e+d._periods[0]+"y"+e+d._periods[1]+"o"+e+d._periods[2]+"w"+e+d._periods[3]+"d"+e+d._periods[4]+"h"+e+d._periods[5]+"m"+e+d._periods[6]+"s");this._addTarget(b)}d._hold=c;d._savePeriods=c=="pause"?d._periods:null;a.data(b,"countdown",d);this._updateCountdown(b,d)}},_getTimesCountdown:function(b){b=a.data(b,"countdown");return!b?null:!b._hold?b._periods:this._calculatePeriods(b,b._show,this._get(b,"significant"),new Date)},_get:function(b,c){return b.options[c]!=null?b.options[c]:
a.countdown._defaults[c]},_determineTime:function(b,c){var d=function(a){var b=new Date;b.setTime(b.getTime()+a*1E3);return b};(d=b==null?c:typeof b=="string"?function(b){for(var b=b.toLowerCase(),c=new Date,d=c.getFullYear(),f=c.getMonth(),h=c.getDate(),o=c.getHours(),p=c.getMinutes(),c=c.getSeconds(),q=/([+-]?[0-9]+)\s*(s|m|h|d|w|o|y)?/g,t=q.exec(b);t;){switch(t[2]||"s"){case "s":c+=parseInt(t[1],10);break;case "m":p+=parseInt(t[1],10);break;case "h":o+=parseInt(t[1],10);break;case "d":h+=parseInt(t[1],
10);break;case "w":h+=parseInt(t[1],10)*7;break;case "o":f+=parseInt(t[1],10);h=Math.min(h,a.countdown._getDaysInMonth(d,f));break;case "y":d+=parseInt(t[1],10),h=Math.min(h,a.countdown._getDaysInMonth(d,f))}t=q.exec(b)}return new Date(d,f,h,o,p,c,0)}(b):typeof b=="number"?d(b):b)&&d.setMilliseconds(0);return d},_getDaysInMonth:function(a,c){return 32-(new Date(a,c,32)).getDate()},_normalLabels:function(a){return a},_generateHTML:function(b){var c=this._get(b,"significant");b._periods=b._hold?b._periods:
this._calculatePeriods(b,b._show,c,new Date);for(var d=!1,e=0,g=c,k=a.extend({},b._show),l=0;l<=6;l++)d|=b._show[l]=="?"&&b._periods[l]>0,k[l]=b._show[l]=="?"&&!d?null:b._show[l],e+=k[l]?1:0,g-=b._periods[l]>0?1:0;for(var m=[!1,!1,!1,!1,!1,!1,!1],l=6;l>=0;l--)b._show[l]&&(b._periods[l]?m[l]=!0:(m[l]=g>0,g--));var d=this._get(b,"compact"),g=this._get(b,"layout"),o=d?this._get(b,"compactLabels"):this._get(b,"labels"),p=this._get(b,"whichLabels")||this._normalLabels,l=this._get(b,"timeSeparator"),q=
this._get(b,"description")||"",t=function(c){var e=a.countdown._get(b,"compactLabels"+p(b._periods[c]));return k[c]?b._periods[c]+(e?e[c]:o[c])+" ":""},n=function(e){var d=a.countdown._get(b,"labels"+p(b._periods[e]));return!c&&k[e]||c&&m[e]?'<span class="countdown_section"><span class="countdown_amount">'+b._periods[e]+"</span><br/>"+(d?d[e]:o[e])+"</span>":""};return g?this._buildLayout(b,k,g,d,c,m):(d?'<span class="countdown_row countdown_amount'+(b._hold?" countdown_holding":"")+'">'+t(0)+t(1)+
t(2)+t(3)+(k[4]?this._minDigits(b._periods[4],2):"")+(k[5]?(k[4]?l:"")+this._minDigits(b._periods[5],2):"")+(k[6]?(k[4]||k[5]?l:"")+this._minDigits(b._periods[6],2):""):'<span class="countdown_row countdown_show'+(c||e)+(b._hold?" countdown_holding":"")+'">'+n(0)+n(1)+n(2)+n(3)+n(4)+n(5)+n(6))+"</span>"+(q?'<span class="countdown_row countdown_descr">'+q+"</span>":"")},_buildLayout:function(b,c,d,e,g,k){for(var l=this._get(b,e?"compactLabels":"labels"),m=this._get(b,"whichLabels")||this._normalLabels,
o=function(c){return(a.countdown._get(b,(e?"compactLabels":"labels")+m(b._periods[c]))||l)[c]},p=function(a,b){return Math.floor(a/b)%10},o={desc:this._get(b,"description"),sep:this._get(b,"timeSeparator"),yl:o(0),yn:b._periods[0],ynn:this._minDigits(b._periods[0],2),ynnn:this._minDigits(b._periods[0],3),y1:p(b._periods[0],1),y10:p(b._periods[0],10),y100:p(b._periods[0],100),y1000:p(b._periods[0],1E3),ol:o(1),on:b._periods[1],onn:this._minDigits(b._periods[1],2),onnn:this._minDigits(b._periods[1],
3),o1:p(b._periods[1],1),o10:p(b._periods[1],10),o100:p(b._periods[1],100),o1000:p(b._periods[1],1E3),wl:o(2),wn:b._periods[2],wnn:this._minDigits(b._periods[2],2),wnnn:this._minDigits(b._periods[2],3),w1:p(b._periods[2],1),w10:p(b._periods[2],10),w100:p(b._periods[2],100),w1000:p(b._periods[2],1E3),dl:o(3),dn:b._periods[3],dnn:this._minDigits(b._periods[3],2),dnnn:this._minDigits(b._periods[3],3),d1:p(b._periods[3],1),d10:p(b._periods[3],10),d100:p(b._periods[3],100),d1000:p(b._periods[3],1E3),hl:o(4),
hn:b._periods[4],hnn:this._minDigits(b._periods[4],2),hnnn:this._minDigits(b._periods[4],3),h1:p(b._periods[4],1),h10:p(b._periods[4],10),h100:p(b._periods[4],100),h1000:p(b._periods[4],1E3),ml:o(5),mn:b._periods[5],mnn:this._minDigits(b._periods[5],2),mnnn:this._minDigits(b._periods[5],3),m1:p(b._periods[5],1),m10:p(b._periods[5],10),m100:p(b._periods[5],100),m1000:p(b._periods[5],1E3),sl:o(6),sn:b._periods[6],snn:this._minDigits(b._periods[6],2),snnn:this._minDigits(b._periods[6],3),s1:p(b._periods[6],
1),s10:p(b._periods[6],10),s100:p(b._periods[6],100),s1000:p(b._periods[6],1E3)},q=d,d=0;d<=6;d++)p="yowdhms".charAt(d),q=q.replace(RegExp("\\{"+p+"<\\}(.*)\\{"+p+">\\}","g"),!g&&c[d]||g&&k[d]?"$1":"");a.each(o,function(a,b){q=q.replace(RegExp("\\{"+a+"\\}","g"),b)});return q},_minDigits:function(a,c){a=""+a;if(a.length>=c)return a;a="0000000000"+a;return a.substr(a.length-c)},_determineShow:function(a){var a=this._get(a,"format"),c=[];c[0]=a.match("y")?"?":a.match("Y")?"!":null;c[1]=a.match("o")?
"?":a.match("O")?"!":null;c[2]=a.match("w")?"?":a.match("W")?"!":null;c[3]=a.match("d")?"?":a.match("D")?"!":null;c[4]=a.match("h")?"?":a.match("H")?"!":null;c[5]=a.match("m")?"?":a.match("M")?"!":null;c[6]=a.match("s")?"?":a.match("S")?"!":null;return c},_calculatePeriods:function(b,c,d,e){b._now=e;b._now.setMilliseconds(0);var g=new Date(b._now.getTime());if(b._since)e.getTime()<b._since.getTime()?b._now=e=g:e=b._since;else if(g.setTime(b._until.getTime()),e.getTime()>b._until.getTime())b._now=
e=g;var k=[0,0,0,0,0,0,0];if(c[0]||c[1]){var l=a.countdown._getDaysInMonth(e.getFullYear(),e.getMonth()),m=a.countdown._getDaysInMonth(g.getFullYear(),g.getMonth()),m=g.getDate()==e.getDate()||g.getDate()>=Math.min(l,m)&&e.getDate()>=Math.min(l,m),m=Math.max(0,(g.getFullYear()-e.getFullYear())*12+g.getMonth()-e.getMonth()+(g.getDate()<e.getDate()&&!m||m&&(g.getHours()*60+g.getMinutes())*60+g.getSeconds()<(e.getHours()*60+e.getMinutes())*60+e.getSeconds()?-1:0));k[0]=c[0]?Math.floor(m/12):0;k[1]=c[1]?
m-k[0]*12:0;e=new Date(e.getTime());l=e.getDate()==l;m=a.countdown._getDaysInMonth(e.getFullYear()+k[0],e.getMonth()+k[1]);e.getDate()>m&&e.setDate(m);e.setFullYear(e.getFullYear()+k[0]);e.setMonth(e.getMonth()+k[1]);l&&e.setDate(m)}var o=Math.floor((g.getTime()-e.getTime())/1E3),e=function(a,b){k[a]=c[a]?Math.floor(o/b):0;o-=k[a]*b};e(2,604800);e(3,86400);e(4,3600);e(5,60);e(6,1);if(o>0&&!b._since){b=[1,12,4.3482,7,24,60,60];e=6;g=1;for(l=6;l>=0;l--)c[l]&&(k[e]>=g&&(k[e]=0,o=1),o>0&&(k[l]++,o=0,
e=l,g=1)),g*=b[l]}if(d)for(l=0;l<=6;l++)d&&k[l]?d--:d||(k[l]=0);return k}});a.fn.countdown=function(b){var c=Array.prototype.slice.call(arguments,1);return b=="getTimes"||b=="settings"?a.countdown["_"+b+"Countdown"].apply(a.countdown,[this[0]].concat(c)):this.each(function(){typeof b=="string"?a.countdown["_"+b+"Countdown"].apply(a.countdown,[this].concat(c)):a.countdown._attachCountdown(this,b)})};a.countdown=new c})(jQuery);
(function(a){function c(b){return a.data(b,"tooltip")}function d(b){c(this).delay?m=setTimeout(f,c(this).delay):f();p=!!c(this).track;a(document.body).bind("mousemove",h);h(b)}function b(){if(!a.tooltip.blocked&&!(this==k||!this.tooltipText&&!c(this).bodyHandler)){k=this;l=this.tooltipText;if(c(this).bodyHandler){g.title.hide();var b=c(this).bodyHandler.call(this);b.nodeType||b.jquery?g.body.empty().append(b):g.body.html(b);g.body.show()}else if(c(this).showBody){b=l.split(c(this).showBody);g.title.html(b.shift()).show();
g.body.empty();for(var e=0,f;f=b[e];e++)e>0&&g.body.append("<br/>"),g.body.append(f);g.body.hideWhenEmpty()}else g.title.html(l).show(),g.body.hide();c(this).showURL&&a(this).url()?g.url.html(a(this).url().replace("http://","")).show():g.url.html(a(this).url().replace("http://","")).hide();g.parent.addClass(c(this).extraClass);c(this).fixPNG&&g.parent.fixPNG();d.apply(this,arguments)}}function f(){m=null;(!o||!a.fn.bgiframe)&&c(k).fade?g.parent.is(":animated")?g.parent.stop().show().fadeTo(c(k).fade,
k.tOpacity):g.parent.is(":visible")?g.parent.fadeTo(c(k).fade,k.tOpacity):g.parent.fadeIn(c(k).fade):g.parent.show();c(k).gameId==!0&&(g.title.hide(),a.ajax({type:"POST",url:"/ajax_lib/get-game-shortinfo/",data:"url="+parseStringForAjaxSend(g.url.html()),cache:!0,success:function(a){g.body.html(a);g.body.show();h()}}));c(k).flashgameId==!0&&(g.title.hide(),a.ajax({type:"POST",url:"/ajax_lib/get-flashgame-shortinfo/",data:"url="+parseStringForAjaxSend(g.url.html()),cache:!0,success:function(a){g.body.html(a);
g.body.show();h()}}));h()}function h(b){if(!a.tooltip.blocked&&!(b&&b.target.tagName=="OPTION"))if(!p&&g.parent.is(":visible")&&a(document.body).unbind("mousemove",h),k==null)a(document.body).unbind("mousemove",h);else{var e=g.parent.hasClass("viewport-bottom");g.parent.removeClass("viewport-right").removeClass("viewport-bottom");var d=g.parent[0].offsetLeft,f=g.parent[0].offsetTop;if(b){var d=b.pageX+c(k).left,f=b.pageY+c(k).top,l="auto";c(k).positionLeft&&(l=a(window).width()-d,d="auto");g.parent.css({left:d,
right:l,top:f})}var l={x:a(window).scrollLeft(),y:a(window).scrollTop(),cx:a(window).width(),cy:a(window).height()},m=g.parent[0];l.x+l.cx<m.offsetLeft+m.offsetWidth&&(d-=m.offsetWidth+20+c(k).left,g.parent.css({left:d+"px"}).addClass("viewport-right"));l.y+l.cy<m.offsetTop+m.offsetHeight&&(b?f=b.pageY-m.offsetHeight-c(k).top:(f-=m.offsetHeight+c(k).top+c(k).top,e&&(f+=ttoh+70)),g.parent.css({top:f+"px"}).addClass("viewport-bottom"))}}function e(){function b(){g.parent.removeClass(e.extraClass).hide().css("opacity",
"")}if(!a.tooltip.blocked){m&&clearTimeout(m);k=null;var e=c(this);(!o||!a.fn.bgiframe)&&e.fade?g.parent.is(":animated")?g.parent.stop().fadeTo(e.fade,0,b):g.parent.stop().fadeOut(e.fade,b):b();c(this).fixPNG&&g.parent.unfixPNG()}}var g={},k,l,m,o=a.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),p=!1;a.tooltip={blocked:!1,defaults:{delay:200,fade:!1,showURL:!0,extraClass:"",top:15,left:15,id:"tooltip",gameId:!1,flashgameId:!1},block:function(){a.tooltip.blocked=!a.tooltip.blocked}};a.fn.extend({tooltip:function(c){c=
a.extend({},a.tooltip.defaults,c);if(!g.parent)g.parent=a('<div id="'+c.id+'"><h3></h3><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide(),a.fn.bgiframe&&g.parent.bgiframe(),g.title=a("h3",g.parent),g.body=a("div.body",g.parent),g.url=a("div.url",g.parent);return this.each(function(){a.data(this,"tooltip",c);this.tOpacity=g.parent.css("opacity");this.tooltipText=this.title;a(this).removeAttr("title");this.alt=""}).mouseover(b).mouseout(e).click(e)},fixPNG:o?function(){return this.each(function(){var b=
a(this).css("backgroundImage");if(b.match(/^url\(["']?(.*\.png)["']?\)$/i))b=RegExp.$1,a(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+b+"')"}).each(function(){var b=a(this).css("position");b!="absolute"&&b!="relative"&&a(this).css("position","relative")})})}:function(){return this},unfixPNG:o?function(){return this.each(function(){a(this).css({filter:"",backgroundImage:""})})}:function(){return this},hideWhenEmpty:function(){return this.each(function(){a(this)[a(this).html()?
"show":"hide"]()})},url:function(){return this.attr("href")||this.attr("src")}})})(jQuery);
(function(a){a.fn.listenForEnter=function(){return this.each(function(){a(this).focus(function(){a(this).data("safeEnter_InAutocomplete",!1)});a(this).keypress(function(c){switch(c.keyCode?c.keyCode:c.which){case 13:(!a(this).data("safeEnter_InAutocomplete")||!a(this).is("input[type=text]")||a.browser.opera)&&a(this).trigger("pressedEnter",c);a(this).data("safeEnter_InAutocomplete",!1);break;case 40:case 38:case 34:case 33:a(this).data("safeEnter_InAutocomplete",!0);break;default:a(this).data("safeEnter_InAutocomplete",
!1)}})})};a.fn.clickOnEnter=function(c){return this.each(function(){a(this).listenForEnter().bind("pressedEnter",function(){a(c).click()})})}})(jQuery);
(function(a){a.fn.autoResize=function(c){var d=a.extend({onResize:function(){},animate:!0,animateDuration:150,animateCallback:function(){},extraSpace:20,limit:1E3},c);this.filter("textarea").each(function(){var b=a(this).css({resize:"none","overflow-y":"hidden"}),c=b.height(),h=function(){var c={};a.each(["height","width","lineHeight","textDecoration","letterSpacing","font-size"],function(a,e){c[e]=b.css(e)});return b.clone().removeAttr("id").removeAttr("name").css({position:"absolute",top:0,left:-9999}).css(c).attr("tabIndex",
"-1").insertBefore(b)}(),e=null,g=function(){h.height(0).val(a(this).val()).scrollTop(1E4);var g=Math.max(h.scrollTop(),c)+d.extraSpace,l=a(this).add(h);e!==g&&(e=g,g>=d.limit?(a(this).css("overflow-y",""),l.height(d.limit)):(d.onResize.call(this),d.animate&&b.css("display")==="block"?l.stop().animate({height:g},d.animateDuration,d.animateCallback):l.height(g)))};b.unbind(".dynSiz").bind("keyup.dynSiz",g).bind("keydown.dynSiz",g).bind("change.dynSiz",g).bind("click.dynSiz",g).bind("focus.dynSiz",
g)});return this}})(jQuery);
window.Modernizr=function(a,c,d){function b(){g.input=function(a){for(var b=0,c=a.length;b<c;b++)s[a[b]]=a[b]in o;return s}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));g.inputtypes=function(a){for(var b=0,e,f,g,h=a.length;b<h;b++)o.setAttribute("type",f=a[b]),(e=o.type!=="text")&&(o.value=p,o.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&o.style.WebkitAppearance!==d?(k.appendChild(o),g=c.defaultView,e=g.getComputedStyle&&g.getComputedStyle(o,
null).WebkitAppearance!=="textfield"&&o.offsetHeight!==0,k.removeChild(o)):/^(search|tel)$/.test(f)||(/^(url|email)$/.test(f)?e=o.checkValidity&&o.checkValidity()===!1:/^color$/.test(f)?(k.appendChild(o),e=o.value!=p,k.removeChild(o)):e=o.value!=p)),u[a[b]]=!!e;return u}("search tel url email datetime date month week time datetime-local number range color".split(" "))}function f(a,b){var c=a.charAt(0).toUpperCase()+a.substr(1),c=(a+" "+n.join(c+" ")+c).split(" ");return h(c,b)}function h(a,b){for(var c in a)if(m[a[c]]!==
d)return b=="pfx"?a[c]:!0;return!1}function e(a,b){return typeof a===b}var g={},k=c.documentElement;c.head||c.getElementsByTagName("head");var l=c.createElement("modernizr"),m=l.style,o=c.createElement("input"),p=":)",q=Object.prototype.toString,t=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),n="Webkit Moz O ms Khtml".split(" "),v={svg:"http://www.w3.org/2000/svg"},l={},u={},s={},A=[],y=function(a,b,e,d){var f,g=c.createElement("div");if(parseInt(e,10))for(;e--;)f=c.createElement("div"),f.id=d?d[e]:
"modernizr"+(e+1),g.appendChild(f);e=["&shy;<style>",a,"</style>"].join("");g.id="modernizr";g.innerHTML+=e;k.appendChild(g);a=b(g,a);g.parentNode.removeChild(g);return!!a},x=function(){var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(b,f){var f=f||c.createElement(a[b]||"div"),b="on"+b,g=b in f;g||(f.setAttribute||(f=c.createElement("div")),f.setAttribute&&f.removeAttribute&&(f.setAttribute(b,""),g=e(f[b],"function"),e(f[b],d)||(f[b]=
d),f.removeAttribute(b)));return g}}(),w,B={}.hasOwnProperty,D;!e(B,d)&&!e(B.call,d)?D=function(a,b){return B.call(a,b)}:D=function(a,b){return b in a&&e(a.constructor.prototype[b],d)};(function(b,e){var d=b.join(""),f=e.length;y(d,function(b,e){for(var d=c.styleSheets[c.styleSheets.length-1],d=d.cssRules&&d.cssRules[0]?d.cssRules[0].cssText:d.cssText||"",h=b.childNodes,k={};f--;)k[h[f].id]=h[f];g.touch="ontouchstart"in a||k.touch.offsetTop===9;g.csstransforms3d=k.csstransforms3d.offsetLeft===9;g.generatedcontent=
k.generatedcontent.offsetHeight>=1;g.fontface=/src/i.test(d)&&d.indexOf(e.split(" ")[0])===0},f,e)})(['@font-face {font-family:"font";src:url("https://")}',["@media (",t.join("touch-enabled),("),"modernizr){#touch{top:9px;position:absolute}}"].join(""),["@media (",t.join("transform-3d),("),"modernizr){#csstransforms3d{left:9px;position:absolute}}"].join(""),['#generatedcontent:after{content:"',p,'";visibility:hidden}'].join("")],["fontface","touch","csstransforms3d","generatedcontent"]);l.flexbox=
function(){var a=c.createElement("div"),b=c.createElement("div");(function(a,b,c,e){b+=":";a.style.cssText=(b+t.join(c+";"+b)).slice(0,-b.length)+(e||"")})(a,"display","box","width:42px;padding:0;");b.style.cssText=t.join("box-flex:1;")+"width:10px;";a.appendChild(b);k.appendChild(a);var e=b.offsetWidth===42;a.removeChild(b);k.removeChild(a);return e};l.canvas=function(){var a=c.createElement("canvas");return!!a.getContext&&!!a.getContext("2d")};l.canvastext=function(){return!!g.canvas&&!!e(c.createElement("canvas").getContext("2d").fillText,
"function")};l.webgl=function(){return!!a.WebGLRenderingContext};l.touch=function(){return g.touch};l.geolocation=function(){return!!navigator.geolocation};l.postmessage=function(){return!!a.postMessage};l.websqldatabase=function(){return!!a.openDatabase};l.indexedDB=function(){for(var b=-1,c=n.length;++b<c;)if(a[n[b].toLowerCase()+"IndexedDB"])return!0;return!!a.indexedDB};l.hashchange=function(){return x("hashchange",a)&&(c.documentMode===d||c.documentMode>7)};l.history=function(){return!!a.history&&
!!history.pushState};l.draganddrop=function(){return x("dragstart")&&x("drop")};l.websockets=function(){for(var b=-1,c=n.length;++b<c;)if(a[n[b]+"WebSocket"])return!0;return"WebSocket"in a};l.rgba=function(){m.cssText="background-color:rgba(150,255,150,.5)";return!!~(""+m.backgroundColor).indexOf("rgba")};l.hsla=function(){m.cssText="background-color:hsla(120,40%,100%,.5)";return!!~(""+m.backgroundColor).indexOf("rgba")||!!~(""+m.backgroundColor).indexOf("hsla")};l.multiplebgs=function(){m.cssText=
"background:url(https://),url(https://),red url(https://)";return/(url\s*\(.*?){3}/.test(m.background)};l.backgroundsize=function(){return f("backgroundSize")};l.borderimage=function(){return f("borderImage")};l.borderradius=function(){return f("borderRadius")};l.boxshadow=function(){return f("boxShadow")};l.textshadow=function(){return c.createElement("div").style.textShadow===""};l.opacity=function(){var a=t.join("opacity:.55;")+"";m.cssText=a;return/^0.55$/.test(m.opacity)};l.cssanimations=function(){return f("animationName")};
l.csscolumns=function(){return f("columnCount")};l.cssgradients=function(){var a=("background-image:"+t.join("gradient(linear,left top,right bottom,from(#9f9),to(white));background-image:")+t.join("linear-gradient(left top,#9f9, white);background-image:")).slice(0,-17);m.cssText=a;return!!~(""+m.backgroundImage).indexOf("gradient")};l.cssreflections=function(){return f("boxReflect")};l.csstransforms=function(){return!!h(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"])};
l.csstransforms3d=function(){var a=!!h(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);a&&"webkitPerspective"in k.style&&(a=g.csstransforms3d);return a};l.csstransitions=function(){return f("transitionProperty")};l.fontface=function(){return g.fontface};l.generatedcontent=function(){return g.generatedcontent};l.video=function(){var a=c.createElement("video"),b=!1;try{if(b=!!a.canPlayType)b=new Boolean(b),b.ogg=a.canPlayType('video/ogg; codecs="theora"'),
b.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"')||a.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"'),b.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"')}catch(e){}return b};l.audio=function(){var a=c.createElement("audio"),b=!1;try{if(b=!!a.canPlayType)b=new Boolean(b),b.ogg=a.canPlayType('audio/ogg; codecs="vorbis"'),b.mp3=a.canPlayType("audio/mpeg;"),b.wav=a.canPlayType('audio/wav; codecs="1"'),b.m4a=a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")}catch(e){}return b};
l.localstorage=function(){try{return!!localStorage.getItem}catch(a){return!1}};l.sessionstorage=function(){try{return!!sessionStorage.getItem}catch(a){return!1}};l.webworkers=function(){return!!a.Worker};l.applicationcache=function(){return!!a.applicationCache};l.svg=function(){return!!c.createElementNS&&!!c.createElementNS(v.svg,"svg").createSVGRect};l.inlinesvg=function(){var a=c.createElement("div");a.innerHTML="<svg/>";return(a.firstChild&&a.firstChild.namespaceURI)==v.svg};l.smil=function(){return!!c.createElementNS&&
/SVG/.test(q.call(c.createElementNS(v.svg,"animate")))};l.svgclippaths=function(){return!!c.createElementNS&&/SVG/.test(q.call(c.createElementNS(v.svg,"clipPath")))};for(var H in l)D(l,H)&&(w=H.toLowerCase(),g[w]=l[H](),A.push((g[w]?"":"no-")+w));g.input||b();m.cssText="";l=o=null;a.attachEvent&&function(){var a=c.createElement("div");a.innerHTML="<elem></elem>";return a.childNodes.length!==1}()&&function(a,b){function c(a){for(var b=-1;++b<h;)a.createElement(g[b])}a.iepp=a.iepp||{};var e=a.iepp,
f=e.html5elements||"abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",g=f.split("|"),h=g.length,k=RegExp("(^|\\s)("+f+")","gi"),l=RegExp("<(/*)("+f+")","gi"),m=/^\s*[\{\}]\s*$/,n=RegExp("(^|[^\\n]*?\\s)("+f+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),o=b.createDocumentFragment(),p=b.documentElement,f=p.firstChild,q=b.createElement("body"),s=b.createElement("style"),t=/print|all/,u;e.getCSS=function(a,b){if(a+
""===d)return"";for(var c=-1,f=a.length,g,j=[];++c<f;)g=a[c],g.disabled||(b=g.media||b,t.test(b)&&j.push(e.getCSS(g.imports,b),g.cssText),b="all");return j.join("")};e.parseCSS=function(a){for(var b=[],c;(c=n.exec(a))!=null;)b.push(((m.exec(c[1])?"\n":c[1])+c[2]+c[3]).replace(k,"$1.iepp_$2")+c[4]);return b.join("\n")};e.writeHTML=function(){var a=-1;for(u=u||b.body;++a<h;)for(var c=b.getElementsByTagName(g[a]),e=c.length,d=-1;++d<e;)c[d].className.indexOf("iepp_")<0&&(c[d].className+=" iepp_"+g[a]);
o.appendChild(u);p.appendChild(q);q.className=u.className;q.id=u.id;q.innerHTML=u.innerHTML.replace(l,"<$1font")};e._beforePrint=function(){s.styleSheet.cssText=e.parseCSS(e.getCSS(b.styleSheets,"all"));e.writeHTML()};e.restoreHTML=function(){q.innerHTML="";p.removeChild(q);p.appendChild(u)};e._afterPrint=function(){e.restoreHTML();s.styleSheet.cssText=""};c(b);c(o);e.disablePP||(f.insertBefore(s,f.firstChild),s.media="print",s.className="iepp-printshim",a.attachEvent("onbeforeprint",e._beforePrint),
a.attachEvent("onafterprint",e._afterPrint))}(a,c);g._version="2.0.6";g._prefixes=t;g._domPrefixes=n;g.hasEvent=x;g.testProp=function(a){return h([a])};g.testAllProps=f;g.testStyles=y;k.className=k.className.replace(/\bno-js\b/,"")+(" js "+A.join(" "));return g}(this,this.document);
(function(a,c,d){function b(){for(var a=1,b=-1;t.length-++b;)if(t[b].s&&!(a=t[b].r))break;a&&e()}function f(a){var e=c.createElement("script"),d;e.src=a.s;e.onreadystatechange=e.onload=function(){!d&&(!e.readyState||e.readyState=="loaded"||e.readyState=="complete")&&(d=1,b(),e.onload=e.onreadystatechange=null)};o(function(){d||(d=1,b())},j.errorTimeout);a.e?e.onload():p.parentNode.insertBefore(e,p)}function h(a){var e=c.createElement("link"),d;e.href=a.s;e.rel="stylesheet";e.type="text/css";if(!a.e&&
(y||v)){var f=function(a){o(function(){if(!d)try{a.sheet.cssRules.length?(d=1,b()):f(a)}catch(c){c.code==1E3||c.message=="security"||c.message=="denied"?(d=1,o(function(){b()},0)):f(a)}},0)};f(e)}else e.onload=function(){d||(d=1,o(function(){b()},0))},a.e&&e.onload();o(function(){d||(d=1,b())},j.errorTimeout);!a.e&&p.parentNode.insertBefore(e,p)}function e(){var a=t.shift();n=1;a?a.t?o(function(){a.t=="c"?h(a):f(a)},0):(a(),b()):n=0}function g(a,d,f,g,h,k){function l(){!q&&(!m.readyState||m.readyState==
"loaded"||m.readyState=="complete")&&(r.r=q=1,!n&&b(),m.onload=m.onreadystatechange=null,o(function(){s.removeChild(m)},0))}var m=c.createElement(a),q=0,r={t:f,s:d,e:k};m.src=m.data=d;!u&&(m.style.display="none");m.width=m.height="0";a!="object"&&(m.type=f);m.onload=m.onreadystatechange=l;a=="img"?m.onerror=l:a=="script"&&(m.onerror=function(){r.e=r.r=1;e()});t.splice(g,0,r);s.insertBefore(m,u?null:p);o(function(){q||(s.removeChild(m),r.r=r.e=q=1,b())},j.errorTimeout)}function k(a,b,c){var d=b=="c"?
B:w;n=0;b=b||"j";H(a)?g(d,a,b,this.i++,m,c):(t.splice(this.i++,0,a),t.length==1&&e());return this}function l(){var a=j;a.loader={load:k,i:0};return a}var m=c.documentElement,o=a.setTimeout,p=c.getElementsByTagName("script")[0],q={}.toString,t=[],n=0,v="MozAppearance"in m.style,u=v&&!!c.createRange().compareNode,s=u?m:p.parentNode,A=a.opera&&q.call(a.opera)=="[object Opera]",y="webkitAppearance"in m.style,x=y&&"async"in c.createElement("script"),w=v?"object":A||x?"img":"script",B=y?"img":w,D=Array.isArray||
function(a){return q.call(a)=="[object Array]"},H=function(a){return typeof a=="string"},E=function(a){return q.call(a)=="[object Function]"},r=[],G={},C,j;j=function(a){function b(a){var a=a.split("!"),c=r.length,e=a.pop(),d=a.length,e={url:e,origUrl:e,prefixes:a},f,g;for(g=0;g<d;g++)(f=G[a[g]])&&(e=f(e));for(g=0;g<c;g++)e=r[g](e);return e}function c(a,e,f,g,j){var h=b(a),k=h.autoCallback;if(!h.bypass){e&&(e=E(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]);if(h.instead)return h.instead(a,
e,f,g,j);f.load(h.url,h.forceCSS||!h.forceJS&&/css$/.test(h.url)?"c":d,h.noexec);(E(e)||E(k))&&f.load(function(){l();e&&e(h.origUrl,j,g);k&&k(h.origUrl,j,g)})}}function e(a,b){function d(a){if(H(a))c(a,h,b,0,f);else if(Object(a)===a)for(j in a)a.hasOwnProperty(j)&&c(a[j],h,b,j,f)}var f=!!a.test,g=a.load||a.both,h=a.callback,j;d(f?a.yep:a.nope);d(g);a.complete&&b.load(a.complete)}var f,g,h=this.yepnope.loader;if(H(a))c(a,0,h,0);else if(D(a))for(f=0;f<a.length;f++)g=a[f],H(g)?c(g,0,h,0):D(g)?j(g):Object(g)===
g&&e(g,h);else Object(a)===a&&e(a,h)};j.addPrefix=function(a,b){G[a]=b};j.addFilter=function(a){r.push(a)};j.errorTimeout=1E4;c.readyState==null&&c.addEventListener&&(c.readyState="loading",c.addEventListener("DOMContentLoaded",C=function(){c.removeEventListener("DOMContentLoaded",C,0);c.readyState="complete"},0));a.yepnope=l()})(this,this.document);Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};var _ec_history=1,_ec_tests=10,_ec_debug=0;
function _ec_dump(a,c){var d="";c||(c=0);for(var b="",f=0;f<c+1;f++)b+="    ";if(typeof a=="object")for(var h in a)f=a[h],typeof f=="object"?(d+=b+"'"+h+"' ...\n",d+=_ec_dump(f,c+1)):d+=b+"'"+h+"' => \""+f+'"\n';else d="===>"+a+"<===("+typeof a+")";return d}
function _ec_replace(a,c,d){if(a.indexOf("&"+c+"=")>-1||a.indexOf(c+"=")==0){var b=a.indexOf("&"+c+"=");b==-1&&(b=a.indexOf(c+"="));var f=a.indexOf("&",b+1);return f!=-1?a.substr(0,b)+a.substr(f+(b?0:1))+"&"+c+"="+d:a.substr(0,b)+"&"+c+"="+d}else return a+"&"+c+"="+d}var _global_lso;function _evercookie_flash_var(a){_global_lso=a;(a=$("#myswf"))&&a.parentNode&&a.parentNode.removeChild(a)}
var evercookie=function(){this._class=function(){var a=this;_baseKeyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";this._ec={};this.get=function(b,c,d){$(document).ready(function(){a._evercookie(b,c,void 0,void 0,d)})};this.set=function(b,c){$(document).ready(function(){a._evercookie(b,function(){},c)})};this._evercookie=function(b,c,d,f,h){typeof a._evercookie=="undefined"&&(a=this);typeof f=="undefined"&&(f=0);if(f==0&&(a.evercookie_database_storage(b,d),a.evercookie_png(b,
d),a.evercookie_etag(b,d),a.evercookie_cache(b,d),a.evercookie_lso(b,d),a._ec.userData=a.evercookie_userdata(b,d),a._ec.cookieData=a.evercookie_cookie(b,d),a._ec.localData=a.evercookie_local_storage(b,d),a._ec.globalData=a.evercookie_global_storage(b,d),a._ec.sessionData=a.evercookie_session_storage(b,d),a._ec.windowData=a.evercookie_window(b,d),_ec_history))a._ec.historyData=a.evercookie_history(b,d);if(typeof d!="undefined")(typeof _global_lso=="undefined"||typeof _global_isolated=="undefined")&&
f++<_ec_tests&&setTimeout(function(){a._evercookie(b,c,d,f,h)},300);else if((window.openDatabase&&typeof a._ec.dbData=="undefined"||typeof _global_lso=="undefined"||typeof a._ec.etagData=="undefined"||typeof a._ec.cacheData=="undefined"||document.createElement("canvas").getContext&&(typeof a._ec.pngData=="undefined"||a._ec.pngData=="")||typeof _global_isolated=="undefined")&&f++<_ec_tests)setTimeout(function(){a._evercookie(b,c,d,f,h)},300);else{a._ec.lsoData=a.getFromStr(b,_global_lso);_global_lso=
void 0;a._ec.slData=a.getFromStr(b,_global_isolated);_global_isolated=void 0;var o=a._ec;a._ec={};var p=[],q=0,t,n;for(n in o)typeof o[n]!="undefined"&&typeof o[n]!="null"&&o[n]!=""&&o[n]!="null"&&o[n]!="undefined"&&o[n]!=null&&(p[o[n]]=typeof p[o[n]]=="undefined"?1:p[o[n]]+1);for(n in p)p[n]>q&&(q=p[n],t=n);(typeof h=="undefined"||h!=1)&&a.set(b,t);typeof c=="function"&&c(t,o)}};this.evercookie_window=function(a,b){try{if(typeof b!="undefined")window.name=_ec_replace(window.name,a,b);else return this.getFromStr(a,
window.name)}catch(c){}};this.evercookie_userdata=function(a,b){try{var c=this.createElem("div","userdata_el",1);c.style.behavior="url(#default#userData)";if(typeof b!="undefined")c.setAttribute(a,b),c.save(a);else return c.load(a),c.getAttribute(a)}catch(d){}};this.evercookie_cache=function(b,c){if(typeof c!="undefined"){document.cookie="evercookie_cache="+c;var d=new Image;d.style.visibility="hidden";d.style.position="absolute";d.src="/evercookie_cache.php?name="+b}else{var f=this.getFromStr("evercookie_cache",
document.cookie);a._ec.cacheData=void 0;document.cookie="evercookie_cache=; expires=Mon, 20 Sep 2010 00:00:00 UTC; path=/";$.ajax({url:"/evercookie_cache.php?name="+b,success:function(b){document.cookie="evercookie_cache="+f+"; expires=Tue, 31 Dec 2030 00:00:00 UTC; path=/";a._ec.cacheData=b}})}};this.evercookie_etag=function(b,c){if(typeof c!="undefined"){document.cookie="evercookie_etag="+c;var d=new Image;d.style.visibility="hidden";d.style.position="absolute";d.src="/evercookie_etag.php?name="+
b}else{var f=this.getFromStr("evercookie_etag",document.cookie);a._ec.etagData=void 0;document.cookie="evercookie_etag=; expires=Mon, 20 Sep 2010 00:00:00 UTC; path=/";$.ajax({url:"/evercookie_etag.php?name="+b,success:function(b){document.cookie="evercookie_etag="+f+"; expires=Tue, 31 Dec 2030 00:00:00 UTC; path=/";a._ec.etagData=b}})}};this.evercookie_lso=function(a,b){var c=document.getElementById("swfcontainer");c||(c=document.createElement("div"),c.setAttribute("id","swfcontainer"),document.body.appendChild(c));
c={};if(typeof b!="undefined")c.everdata=a+"="+b;swfobject.embedSWF("/evercookie.swf","swfcontainer","1","1","9.0.0",!1,c,{swliveconnect:"true"},{id:"myswf",name:"myswf"})};this.evercookie_png=function(b,c){if(document.createElement("canvas").getContext)if(typeof c!="undefined"){document.cookie="evercookie_png="+c;var d=new Image;d.style.visibility="hidden";d.style.position="absolute";d.src="/evercookie_png.php?name="+b}else{a._ec.pngData=void 0;var f=document.createElement("canvas");f.style.visibility=
"hidden";f.style.position="absolute";f.width=200;f.height=1;var h=f.getContext("2d"),o=this.getFromStr("evercookie_png",document.cookie);document.cookie="evercookie_png=; expires=Mon, 20 Sep 2010 00:00:00 UTC; path=/";d=new Image;d.style.visibility="hidden";d.style.position="absolute";d.src="/evercookie_png.php?name="+b;d.onload=function(){document.cookie="evercookie_png="+o+"; expires=Tue, 31 Dec 2030 00:00:00 UTC; path=/";a._ec.pngData="";h.drawImage(d,0,0);for(var b=h.getImageData(0,0,200,1).data,
c=0,e=b.length;c<e;c+=4){if(b[c]==0)break;a._ec.pngData+=String.fromCharCode(b[c]);if(b[c+1]==0)break;a._ec.pngData+=String.fromCharCode(b[c+1]);if(b[c+2]==0)break;a._ec.pngData+=String.fromCharCode(b[c+2])}}}};this.evercookie_local_storage=function(a,b){try{if(window.localStorage)if(typeof b!="undefined")localStorage.setItem(a,b);else return localStorage.getItem(a)}catch(c){}};this.evercookie_database_storage=function(b,c){try{if(window.openDatabase){var d=window.openDatabase("sqlite_evercookie",
"","evercookie",1048576);typeof c!="undefined"?d.transaction(function(a){a.executeSql("CREATE TABLE IF NOT EXISTS cache(id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, name TEXT NOT NULL, value TEXT NOT NULL, UNIQUE (name))",[],function(){},function(){});a.executeSql("INSERT OR REPLACE INTO cache(name, value) VALUES(?, ?)",[b,c],function(){},function(){})}):d.transaction(function(c){c.executeSql("SELECT value FROM cache WHERE name=?",[b],function(b,c){a._ec.dbData=c.rows.length>=1?c.rows.item(0).value:
""},function(){})})}}catch(f){}};this.evercookie_session_storage=function(a,b){try{if(window.sessionStorage)if(typeof b!="undefined")sessionStorage.setItem(a,b);else return sessionStorage.getItem(a)}catch(c){}};this.evercookie_global_storage=function(a,b){if(window.globalStorage){this.getHost();try{if(typeof b!="undefined")eval("globalStorage[host]."+a+" = value");else return eval("globalStorage[host]."+a)}catch(c){}}};this.evercookie_silverlight=function(a,b){var c="";typeof b!="undefined"&&(c='<param name="initParams" value="'+
a+"="+b+'" />');document.body.innerHTML+='<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" id="mysilverlight" width="0" height="0">'+c+'<param name="source" value="/evercookie.xap"/><param name="onLoad" value="onSilverlightLoad"/><param name="onError" value="onSilverlightError"/><param name="background" value="Transparent"/><param name="windowless" value="true"/><param name="minRuntimeVersion" value="4.0.50401.0"/><param name="autoUpgrade" value="true"/><a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50401.0" style="text-decoration:none"><img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/></a></object>'};
this.encode=function(a){for(var b="",c,d,f,h,p,q,t=0,a=this._utf8_encode(a);t<a.length;)c=a.charCodeAt(t++),d=a.charCodeAt(t++),f=a.charCodeAt(t++),h=c>>2,c=(c&3)<<4|d>>4,p=(d&15)<<2|f>>6,q=f&63,isNaN(d)?p=q=64:isNaN(f)&&(q=64),b=b+_baseKeyStr.charAt(h)+_baseKeyStr.charAt(c)+_baseKeyStr.charAt(p)+_baseKeyStr.charAt(q);return b};this.decode=function(a){for(var b="",c,d,f,h,p,q=0,a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");q<a.length;)c=_baseKeyStr.indexOf(a.charAt(q++)),d=_baseKeyStr.indexOf(a.charAt(q++)),
h=_baseKeyStr.indexOf(a.charAt(q++)),p=_baseKeyStr.indexOf(a.charAt(q++)),c=c<<2|d>>4,d=(d&15)<<4|h>>2,f=(h&3)<<6|p,b+=String.fromCharCode(c),h!=64&&(b+=String.fromCharCode(d)),p!=64&&(b+=String.fromCharCode(f));return b=this._utf8_decode(b)};this._utf8_encode=function(a){for(var a=a.replace(/\r\n/g,"\n"),b="",c=0;c<a.length;c++){var d=a.charCodeAt(c);d<128?b+=String.fromCharCode(d):(d>127&&d<2048?b+=String.fromCharCode(d>>6|192):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128)),
b+=String.fromCharCode(d&63|128))}return b};this._utf8_decode=function(a){for(var b="",c=0,d=c1=c2=0;c<a.length;)d=a.charCodeAt(c),d<128?(b+=String.fromCharCode(d),c++):d>191&&d<224?(c2=a.charCodeAt(c+1),b+=String.fromCharCode((d&31)<<6|c2&63),c+=2):(c2=a.charCodeAt(c+1),c3=a.charCodeAt(c+2),b+=String.fromCharCode((d&15)<<12|(c2&63)<<6|c3&63),c+=3);return b};this.evercookie_history=function(a,b){var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=-".split(""),d="http://www.google.com/evercookie/cache/"+
this.getHost()+"/"+a;if(typeof b!="undefined"){if(!this.hasVisited(d)){this.createIframe(d,"if");d+="/";for(var c=this.encode(b).split(""),f=0;f<c.length;f++)d+=c[f],this.createIframe(d,"if"+f);d+="-";this.createIframe(d,"if_")}}else if(this.hasVisited(d)){d+="/";for(var h="",p="",q=1;h!="-"&&q==1;)for(f=q=0;f<c.length;f++)if(this.hasVisited(d+c[f])){h=c[f];h!="-"&&(p+=h);d+=h;q=1;break}return this.decode(p)}};this.createElem=function(a,b,c){a=typeof b!="undefined"&&document.getElementById(b)?document.getElementById(b):
document.createElement(a);a.style.visibility="hidden";a.style.position="absolute";b&&a.setAttribute("id",b);c&&document.body.appendChild(a);return a};this.createIframe=function(a,b){var c=this.createElem("iframe",b,1);c.setAttribute("src",a);return c};this.waitForSwf=function(a){typeof a=="undefined"?a=0:a++;a<_ec_tests&&typeof swfobject=="undefined"&&setTimeout(function(){waitForSwf(a)},300)};this.evercookie_cookie=function(a,b){if(typeof b!="undefined")document.cookie=a+"=; expires=Mon, 20 Sep 2010 00:00:00 UTC; path=/",
document.cookie=a+"="+b+"; expires=Tue, 31 Dec 2030 00:00:00 UTC; path=/";else return this.getFromStr(a,document.cookie)};this.getFromStr=function(a,b){if(typeof b=="string")for(var c=a+"=",d=b.split(/[;&]/),f=0;f<d.length;f++){for(var h=d[f];h.charAt(0)==" ";)h=h.substring(1,h.length);if(h.indexOf(c)==0)return h.substring(c.length,h.length)}};this.getHost=function(){var a=document.location.host;a.indexOf("www.")==0&&(a=a.replace("www.",""));return a};this.toHex=function(a){for(var b="",c=a.length,
d=0,f;d<c;){for(f=a.charCodeAt(d++).toString(16);f.length<2;)f="0"+f;b+=f}return b};this.fromHex=function(a){for(var b="",c=a.length,d;c>=0;)d=c-2,b=String.fromCharCode("0x"+a.substring(d,c))+b,c=d;return b};this.hasVisited=function(a){if(this.no_color==-1&&this._getRGB("http://samy-was-here-this-should-never-be-visited.com",-1)==-1)this.no_color=this._getRGB("http://samy-was-here-"+Math.floor(Math.random()*9999999)+"rand.com");return a.indexOf("https:")==0||a.indexOf("http:")==0?this._testURL(a,
this.no_color):this._testURL("http://"+a,this.no_color)||this._testURL("https://"+a,this.no_color)||this._testURL("http://www."+a,this.no_color)||this._testURL("https://www."+a,this.no_color)};var c=this.createElem("a","_ec_rgb_link"),d;try{d=1;var b=document.createElement("style");if(b.styleSheet)b.styleSheet.innerHTML="#_ec_rgb_link:visited{display:none;color:#FF0000}";else if(b.innerHTML)b.innerHTML="#_ec_rgb_link:visited{display:none;color:#FF0000}";else{var f=document.createTextNode("#_ec_rgb_link:visited{display:none;color:#FF0000}");
b.appendChild(f)}}catch(h){d=0}this._getRGB=function(a,f){if(f&&d==0)return-1;c.href=a;c.innerHTML=a;document.body.appendChild(b);document.body.appendChild(c);return document.defaultView?document.defaultView.getComputedStyle(c,null).getPropertyValue("color"):c.currentStyle.color};this._testURL=function(a,b){var c=this._getRGB(a);if(c=="rgb(255, 0, 0)"||c=="#ff0000")return 1;else if(b&&c!=b)return 1;return 0}};return _class}(),_global_isolated;
function onSilverlightLoad(a){_global_isolated=a.getHost().Content.App.getIsolatedStorage()}function onSilverlightError(){_global_isolated=""}
(function(a,c){function d(a){a in H||(H[a]=RegExp("(^|\\s+)"+a+"(\\s+|$)",""));return H[a]}function b(a,b){d(b).test(a.className)||(a.className+=" "+b)}function f(a,b){a.className=a.className.replace(RegExp("((?:^|\\s+)"+b+"|"+b+"(?:\\s+|$))","g"),"")}function h(a,b){var c=a;do if(d(b).test(c.className))return c;while(c=c.parentNode);return null}function e(a,b){var c=a.relatedTarget;try{for(;c&&c!==b;)c=c.parentNode;if(c!==b)return!0}catch(d){}}function g(a){try{a.preventDefault()}catch(b){a.returnValue=
!1}}function k(){var a=function(a){a=a.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}}(navigator.userAgent),b=".b-share-popup-wrap{z-index:1073741823;position:absolute;width:500px}.b-share-popup{position:absolute;z-index:1073741823;border:1px solid #888;background:#FFF;color:#000}.b-share-popup-wrap .b-share-popup_down{top:0}.b-share-popup-wrap .b-share-popup_up{bottom:0}.b-share-popup-wrap_state_hidden{position:absolute!important;top:-9999px!important;right:auto!important;bottom:auto!important;left:-9999px!important;visibility:hidden!important}.b-share-popup,x:nth-child(1){border:0;padding:1px!important}@media all and (resolution = 0dpi){.b-share-popup,x:nth-child(1),x:-o-prefocus{padding:0!important;border:1px solid #888}}.b-share-popup__i{display:-moz-inline-box;display:inline-block;padding:5px 0!important;overflow:hidden;vertical-align:top;white-space:nowrap;visibility:visible;background:#FFF;-webkit-box-shadow:0 2px 9px rgba(0,0,0,0.6);-moz-box-shadow:0 2px 9px rgba(0,0,0,0.6);box-shadow:0 2px 9px rgba(0,0,0,0.6)}.b-share-popup__item{font:1em/1.25em Arial,sans-serif;display:block;padding:5px 15px!important;white-space:nowrap;background:#FFF}.b-share-popup__item,a.b-share-popup__item:link,a.b-share-popup__item:visited{text-decoration:none!important;border:0!important}a.b-share-popup__item{cursor:pointer}a.b-share-popup__item .b-share-popup__item__text{display:inline;text-decoration:underline;color:#1a3dc1}a.b-share-popup__item:hover{word-spacing:0}a.b-share-popup__item:hover .b-share-popup__item__text{color:#F00;cursor:pointer}.b-share-popup__icon{display:-moz-inline-box;display:inline-block;margin:-3px 0 0 0;padding:0 5px 0 0!important;vertical-align:middle}.b-share-popup__icon_input{width:21px;height:16px;margin-top:-6px;padding:0!important}.b-share-popup__icon__input{margin-right:0;margin-left:2px;vertical-align:top}.b-share-popup__spacer{display:block;padding-top:10px!important}.b-share-popup__header{font:86%/1em Verdana,sans-serif;display:block;padding:10px 15px 5px 15px!important;color:#999}.b-share-popup__header_first{padding-top:5px!important}.b-share-popup__input{font:86%/1em Verdana,sans-serif;display:block;padding:5px 15px!important;color:#999;text-align:left}.b-share-popup__input__input{font:1em/1em Verdana,sans-serif;display:block;width:10px;margin:5px 0 0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;resize:none;text-align:left;direction:ltr}.b-share-popup_down .b-share-popup_with-link .b-share-popup__input_link{position:absolute;top:5px;right:0;left:0}.b-share-popup_up .b-share-popup_with-link .b-share-popup__input_link{position:absolute;right:0;bottom:5px;left:0}.b-share-popup_down .b-share-popup_with-link{padding-top:55px!important}.b-share-popup_up .b-share-popup_with-link{padding-bottom:55px!important}.b-share-popup_down .b-share-popup_expandable .b-share-popup__main{padding-bottom:25px!important}.b-share-popup_up .b-share-popup_expandable .b-share-popup__main{padding-top:25px!important}.b-share-popup_down .b-share-popup_yandexed{padding-bottom:10px!important}.b-share-popup_up .b-share-popup_yandexed{padding-top:10px!important}.b-share-popup__yandex{position:absolute;right:4px;bottom:2px;font:78.125%/1em Verdana,sans-serif;padding:3px!important;background:transparent}a.b-share-popup__yandex:link,a.b-share-popup__yandex:visited{color:#c6c5c5;text-decoration:none}a.b-share-popup__yandex:link:hover,a.b-share-popup__yandex:visited:hover{color:#F00;text-decoration:underline}.b-share-popup_up .b-share-popup__yandex{top:2px;bottom:auto}.b-share-popup_expandable .b-share-popup__yandex{right:auto;left:4px}.b-share-popup_to-right .b-share-popup_expandable .b-share-popup__yandex{right:4px;left:auto}.b-share-popup__expander .b-share-popup__item{position:absolute;bottom:5px;font:86%/1em Verdana,sans-serif;margin:10px 0 0;padding:5px 10px!important;cursor:pointer;color:#999;background:transparent}.b-share-popup_to-right,.b-share-popup_to-right .b-share-popup__expander{direction:rtl}.b-share-popup_to-right .b-share-popup__expander .b-share-popup__icon{padding:0 0 0 5px!important}.b-share-popup_up .b-share-popup__expander .b-share-popup__item{top:-5px;bottom:auto}.b-share-popup__expander .b-share-popup__item:hover .b-share-popup__item__text{text-decoration:underline}.b-share-popup__expander .b-ico_action_rarr,.b-share-popup_to-right .b-share-popup__expander .b-ico_action_larr,.b-share-popup_full .b-share-popup__expander .b-ico_action_larr,.b-share-popup_to-right .b-share-popup_full .b-share-popup__expander .b-ico_action_rarr,.b-share-popup__expander .b-share-popup__item__text_collapse,.b-share-popup_full .b-share-popup__item__text_expand{display:none}.b-share-popup_to-right .b-share-popup__expander .b-ico_action_rarr,.b-share-popup_full .b-share-popup__item__text_collapse,.b-share-popup_full .b-share-popup__expander .b-ico_action_rarr,.b-share-popup_to-right .b-share-popup_full .b-share-popup__expander .b-ico_action_larr{display:inline}.b-ico_action_rarr,.b-ico_action_larr{width:8px;height:7px;border:0}.b-share-popup__main,.b-share-popup__extra{direction:ltr;vertical-align:bottom;text-align:left}.b-share-popup_down .b-share-popup__main,.b-share-popup_down .b-share-popup__extra{vertical-align:top}.b-share-popup__main{display:-moz-inline-stack;display:inline-block}.b-share-popup__extra{display:none;margin:0 -10px 0 0}.b-share-popup_full .b-share-popup__extra{display:-moz-inline-stack;display:inline-block}.b-share-popup_to-right .b-share-popup__extra{margin:0 0 0 -10px}.b-share-popup__tail{position:absolute;width:21px;height:10px;margin:0 0 0 -11px}.b-share-popup_down .b-share-popup__tail{top:-10px;background:url(//yandex.st/share/static/b-share-popup_down__tail.gif) 0 0 no-repeat}.b-share-popup_up .b-share-popup__tail{bottom:-10px;background:url(//yandex.st/share/static/b-share-popup_up__tail.gif) 0 0 no-repeat}.b-share-popup_down .b-share-popup__tail,x:nth-child(1){top:-9px;background-image:url(//yandex.st/share/static/b-share-popup_down__tail.png)}.b-share-popup_up .b-share-popup__tail,x:nth-child(1){bottom:-9px;background-image:url(//yandex.st/share/static/b-share-popup_up__tail.png)}@media all and (resolution = 0dpi){.b-share-popup_down .b-share-popup__tail,x:nth-child(1),x:-o-prefocus{top:-10px;background-image:url(//yandex.st/share/static/b-share-popup_down__tail.gif)}.b-share-popup_up .b-share-popup__tail,x:nth-child(1),x:-o-prefocus{bottom:-10px;background-image:url(//yandex.st/share/static/b-share-popup_up__tail.gif)}}.b-share-popup .b-share-popup_show_form_mail,.b-share-popup .b-share-popup_show_form_html{padding:0!important}.b-share-popup .b-share-popup_show_form_mail .b-share-popup__main,.b-share-popup .b-share-popup_show_form_html .b-share-popup__main,.b-share-popup .b-share-popup_show_form .b-share-popup__main,.b-share-popup .b-share-popup_show_form_mail .b-share-popup__extra,.b-share-popup .b-share-popup_show_form_html .b-share-popup__extra,.b-share-popup .b-share-popup_show_form .b-share-popup__extra{height:15px;padding:0!important;overflow:hidden;visibility:hidden}.b-share-popup_show_form_mail .b-share-popup__expander,.b-share-popup_show_form_html .b-share-popup__expander,.b-share-popup_show_form .b-share-popup__expander,.b-share-popup_show_form_mail .b-share-popup__input_link,.b-share-popup_show_form_html .b-share-popup__input_link,.b-share-popup_show_form .b-share-popup__input_link{display:none}.b-share-popup__form{position:relative;display:none;overflow:hidden;padding:5px 0 0!important;margin:0 0 -15px;white-space:normal}.b-share-popup_show_form_mail .b-share-popup__form_mail,.b-share-popup_show_form_html .b-share-popup__form_html,.b-share-popup_show_form .b-share-popup__form{display:block}.b-share-popup__form__link{font:86%/1.4545em Verdana,sans-serif;float:left;display:inline;padding:5px!important;margin:0 0 5px 10px;text-decoration:underline;cursor:pointer;color:#1a3dc1}.b-share-popup__form__button{font:86%/1.4545em Verdana,sans-serif;float:left;display:inline;margin:5px 0 0 15px}.b-share-popup__form__close{font:86%/1.4545em Verdana,sans-serif;float:right;display:inline;padding:5px!important;margin:0 10px 5px 0;cursor:pointer;color:#999}a.b-share-popup__form__link:hover,a.b-share-popup__form__close:hover{text-decoration:underline;color:#F00}.b-share-popup_font_fixed .b-share-popup__item{font-size:12.8px}.b-share-popup_font_fixed .b-share-popup__header,.b-share-popup_font_fixed .b-share-popup__input,.b-share-popup_font_fixed .b-share-popup__expander .b-share-popup__item,.b-share-popup_font_fixed .b-share-popup__form__link,.b-share-popup_font_fixed .b-share-popup__form__button,.b-share-popup_font_fixed .b-share-popup__form__close{font-size:11px}.b-share-popup_font_fixed .b-share-popup__yandex{font-size:10px}.b-share-form-button{font:86%/17px Verdana,Arial,sans-serif;display:-moz-inline-box;display:inline-block;position:relative;height:19px;margin:0 3px;padding:0 4px;cursor:default;white-space:nowrap;text-decoration:none!important;color:#000!important;border:none;outline:none;background:url(//yandex.st/share/static/b-share-form-button.png) 0 -20px repeat-x}.b-share-form-button:link:hover,.b-share-form-button:visited:hover{color:#000!important}.b-share-form-button__before,.b-share-form-button__after{position:absolute;width:3px;height:19px;background:url(//yandex.st/share/static/b-share-form-button.png)}.b-share-form-button__before{margin-left:-7px}.b-share-form-button__after{margin-left:4px;background-position:-3px 0}.b-share-form-button::-moz-focus-inner{border:none}button.b-share-form-button .b-share-form-button__before,button.b-share-form-button .b-share-form-button__after{margin-top:-1px}@-moz-document url-prefix(){button.b-share-form-button .b-share-form-button__after{margin-top:-2px;margin-left:6px}button.b-share-form-button .b-share-form-button__before{margin-top:-2px;margin-left:-9px}}SPAN.b-share-form-button:hover,.b-share-form-button_state_hover{background-position:0 -60px}SPAN.b-share-form-button:hover .b-share-form-button__before,.b-share-form-button_state_hover .b-share-form-button__before{background-position:0 -40px}SPAN.b-share-form-button:hover .b-share-form-button__after,.b-share-form-button_state_hover .b-share-form-button__after{background-position:-3px -40px}.b-share-form-button_state_pressed,.b-share-form-button_state_pressed .b-share-form-button_share{background-position:0 -100px!important}.b-share-form-button_state_pressed .b-share-form-button__before{background-position:0 -80px!important}.b-share-form-button_state_pressed .b-share-form-button__after{background-position:-3px -80px!important}button.b-share-form-button_state_pressed{overflow:visible}.b-share-form-button_icons{position:relative;padding:0;background-position:0 -20px!important}.b-share-form-button_icons .b-share-form-button__before{left:0;margin-left:-3px;background-position:0 0!important}.b-share-form-button_icons .b-share-form-button__after{z-index:-1;margin-left:0;background-position:-3px 0!important}.b-share-form-button_icons .b-share__handle{padding:2px!important}.b-share-form-button_icons .b-share__handle_more{position:relative;padding-right:6px!important;margin-right:-4px}.b-share-form-button_icons .b-share-icon{opacity:.5;background-image:url(//yandex.st/share/static/b-share-icon_size_14.png)}.b-share-form-button_icons A.b-share__handle:hover .b-share-icon{opacity:1}.b-share{font:86%/1.4545em Arial,sans-serif;display:-moz-inline-box;display:inline-block;padding:1px 3px 1px 4px!important;vertical-align:middle}.b-share .b-share-form-button{font-size:1em}.b-share__text .b-share-icon{margin:0 5px 0 0;border:none}.b-share__text{margin-right:5px}.b-share__handle{float:left;cursor:pointer;text-align:left;text-decoration:none!important;height:16px;padding:5px 3px 5px 2px!important;cursor:pointer;text-align:left;text-decoration:none!important}.b-share__handle_cursor_default{cursor:default}.b-share__handle .b-share-form-button{margin-top:-2px}.b-share__hr{display:none;float:left;width:1px;height:26px;margin:0 3px 0 2px}a.b-share__handle:hover .b-share__text{text-decoration:underline;color:#F00}.b-share_bordered{padding:0 2px 0 3px!important;border:1px solid #e4e4e4;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}.b-share_bordered .b-share__hr{display:inline;background:#e4e4e4}.b-share_link{margin:-8px 0}a.b-share_link{margin:0}.b-share_link .b-share__text{text-decoration:underline;color:#1a3dc1}.b-share-form-button_share{padding-left:26px!important;vertical-align:top}.b-share-form-button_share .b-share-form-button__before{margin-left:-29px}.b-share-form-button_share .b-share-form-button__icon{position:absolute;width:20px;height:17px;margin:1px 0 0 -23px;background:url(//yandex.st/share/static/b-share-form-button_share__icon.png) 0 0 no-repeat}.b-share-pseudo-link{border-bottom:1px dotted;cursor:pointer;text-decoration:none!important}.b-share_font_fixed{font-size:11px}.b-share__handle_more{font-size:9px;margin-top:-1px;color:#7b7b7b}A.b-share__handle_more:hover{color:#000}.b-share__group{float:left}.b-share-icon{float:left;display:inline;overflow:hidden;width:16px;height:16px;padding:0!important;vertical-align:top;border:0;background:url(//yandex.st/share/static/b-share-icon.png) 0 99px no-repeat}.b-share-icon_vkontakte,.b-share-icon_custom{background-position:0 0}.b-share-icon_yaru,.b-share-icon_yaru_photo,.b-share-icon_yaru_wishlist{background-position:0 -17px}.b-share-icon_lj{background-position:0 -34px}.b-share-icon_twitter{background-position:0 -51px}.b-share-icon_facebook{background-position:0 -68px}.b-share-icon_moimir{background-position:0 -85px}.b-share-icon_friendfeed{background-position:0 -102px}.b-share-icon_mail{background-position:0 -119px}.b-share-icon_html{background-position:0 -136px}.b-share-icon_postcard{background-position:0 -153px}.b-share-icon_odnoklassniki{background-position:0 -170px}.b-share-icon_blogger{background-position:0 -187px}.b-share-icon_greader{background-position:0 -204px}.b-share-icon_delicious{background-position:0 -221px}.b-share-icon_gbuzz{background-position:0 -238px}.b-share-icon_linkedin{background-position:0 -255px}.b-share-icon_myspace{background-position:0 -272px}.b-share-icon_evernote{background-position:0 -289px}.b-share-icon_digg{background-position:0 -306px}.b-share-icon_juick{background-position:0 -324px}.b-share-icon_moikrug{background-position:0 -341px}.b-share-icon_yazakladki{background-position:0 -358px}.b-share-icon_liveinternet{background-position:0 -375px}.b-share-icon_tutby{background-position:0 -392px}.b-share-icon_diary{background-position:0 -409px}",
d=".b-share-popup__i,.b-share-popup__icon,.b-share-popup__main,.b-share-popup_full .b-share-popup__extra{zoom:1;display:inline}.b-share-popup_to-left{left:0}.b-share-popup_to-right .b-share-popup__expander{direction:ltr}.b-share-popup_to-right .b-share-popup__expander .b-share-popup__item{direction:rtl}.b-share-popup__icon{margin-top:-1px}.b-share-popup__icon_input{margin-top:-4px}.b-share-popup__icon__input{width:14px}.b-share-popup__spacer{overflow:hidden;font:1px/1 Arial}.b-share-popup__input__input{width:100px;direction:ltr}.b-share-popup_full .b-share-popup__input_link .b-share-popup__input__input,.b-share-popup_full .b-share-popup__form .b-share-popup__input__input{width:200px}.b-share-popup-wrap{margin-bottom:25px}.b-share-popup__form{direction:ltr}.b-share-popup__form__button,.b-share-popup__form__close,.b-share-popup__form__link{float:none;display:inline-block}.b-share-popup_full .b-share-popup__form__close{margin-left:70px}* HTML .b-share-popup_up .b-share-popup__tail{overflow:hidden;bottom:-10px}* html .b-share-form-button{text-decoration:none!important}.b-share-form-button{position:relative;overflow:visible}.b-share-form-button__before,.b-share-form-button__after{top:0}button.b-share-form-button .b-share-form-button__before,button.b-share-form-button .b-share-form-button__after{margin-top:auto}.b-share-form-button__icon{top:0}.b-share{zoom:1;display:inline}* HTML .b-share-form-button_share .b-share-form-button__icon{margin-top:-1px;background-image:url(//yandex.st/share/static/b-share-form-button_share__icon.gif)}",
e=document.createElement("style");e.type="text/css";e.id="ya_share_style";e.styleSheet?e.styleSheet.cssText=a.browser==="msie"&&(a.version<8||c.documentMode<8)?b+d:b:e.appendChild(c.createTextNode(b));b=d="";I.appendChild(e);k=function(){}}function l(a){var b=c.createElement("script");b.setAttribute("src",location.protocol+"//clck.yandex.ru/jclck/dtype=stred/pid=52/cid=70685/path="+a+"/rnd="+Math.round(Math.random()*1E5)+"/*"+encodeURIComponent(location.href));I.appendChild(b)}function m(a,b,c,d){(a=
d[a])&&b in a&&(c=a[b]);return b=="description"||b=="image"?c:Y(c)}function o(a){var b=O[a],c="",d="";Boolean(O[a].title)?b.icon_from?c+=b.icon_from:(c+="custom",d=' style="background-image:url('+b.icon_16+");"+(b.icon_16_css?b.icon_16_css:"")+'"'):c+=a;return'<span class="b-share-icon b-share-icon_'+c+'"'+d+"></span>"}function p(a){var b=O[a];return Boolean(O[a].title)?b.title:b}function q(a,b,c,d,e){var e=e?Y(e):"",d=d?Y(d):"",f=P+"/go.xml?service="+a;return Boolean(O[a].title)?(a=O[a],b=a.url.replace("{link}",
b).replace("{title}",c).replace("{description}",d).replace("{image}",e),a.directLink?b:f+"&amp;goto="+Y(b)):f+"&amp;url="+b+"&amp;title="+c+(d?"&amp;description="+d:"")+(e?"&amp;image="+e:"")}function t(a,b,c,d,e){if(a in O)return'<a rel="nofollow" target="_blank" title="'+p(a)+'" class="b-share__handle b-share__link" href="'+q(a,b,c,d,e)+'" data-service="'+a+'">'+o(a)+"</a>";else if(a=="|")return'<span class="b-share__hr"></span>'}function n(a,b,c,d,e){if(a in O)return'<a rel="nofollow" target="_blank" href="'+
q(a,b,c,d,e)+'" class="b-share-popup__item" data-service="'+a+'"><span class="b-share-popup__icon">'+o(a)+'</span><span class="b-share-popup__item__text">'+p(a)+"</span></a>";else if(a=="|")return'<div class="b-share-popup__spacer"></div>'}function v(){a.clearTimeout(aa)}function u(a,c){var d,e;d=E(a,"b-share-popup__expander")[0];var h=E(a,"b-share-popup__item");d&&C(d.firstChild,"click",y);d=0;for(e=h.length;d<e;d++)C(h[d],"click",c.onshare);s(a[V]("input"));s(a[V]("textarea"));if(h=E(a,"b-share-popup__item_type_code")[0]){var j=
E(a,"b-share-popup__i")[0];C(h,"click",function(a){b(j,"b-share-popup_show_form_html");g(a)});C(E(a,"b-share-popup__form__close")[0],"click",function(a){f(j,"b-share-popup_show_form_html");g(a)})}J(a,v);Q(a,c.setPopupCloseTimeout)}function s(a){for(var b=0,c=a.length,d;b<c;b++)d=a[b],C(d,"click",function(a){return function(){a.select()}}(d))}function A(a,b,c,d){g(a);window.open(b.href,"yashare_popup","scrollbars=1,resizable=1,menubar=0,toolbar=0,status=0,left="+(screen.width-c)/2+",top="+(screen.height-
d)/2+",width="+c+",height="+d).focus()}function y(){var a=h(this,"b-share-popup__i");d("b-share-popup_full").test(a.className)?f(a,"b-share-popup_full"):b(a,"b-share-popup_full")}function x(a,b){var a=a.replace("-popup",""),d=c.getElementById(a),e=c.getElementById(a+"-popup"),g=E(e,"b-share-popup__input__input");f(d,"b-share-popup_opened");f(d,"b-share-form-button_state_pressed");e.className="b-share-popup-wrap b-share-popup-wrap_state_hidden";e.style.cssText="";if(g)for(var d=0,h=g.length;d<h;d++)g[d].style.cssText=
"";e.firstChild.className="b-share-popup";j(c,"click",b.onDocumentClick);K=null;b.onclose(b._this)}function w(d,e,f){var f=f||{},g=f.hDirection||d.getAttribute("data-hdirection"),h=f.vDirection||d.getAttribute("data-vdirection"),j=c.getElementById(d.id+"-popup"),k=j.firstChild,m=E(j,"b-share-popup__input__input"),n=r(),o=T(d),g=g==="left"||g==="right"?g:o.left-Math.max(D.scrollLeft,c.body.scrollLeft)>=n.width/2?"left":"right",h=h==="up"||h==="down"?h:o.top-Math.max(D.scrollTop,c.body.scrollTop)>=
n.height/2?"up":"down";e.onDocumentClick();var p=E(j,"b-share-popup__tail")[0],q=Math.round(d.offsetWidth/2),n=f.width||k.offsetWidth,s=Math.round(n/2);o.left-(s-q)>5&&(o.left-=Math.round(s-q),q=s-10);o.top+=h==="up"?-9:9+d.offsetHeight;j.style.cssText="top:"+(f.top||o.top)+"px;left:"+(f.left||o.left)+"px;width:"+n+"px";p.style.cssText="left: "+q+"px";if(m){f=0;for(o=m.length;f<o;f++)m[f].style.width=n-30+"px"}k.className="b-share-popup b-share-popup_"+h+" b-share-popup_to-"+g;j.className="b-share-popup-wrap b-share-popup-wrap_state_visible";
b(d,"b-share-popup_opened");b(d,"b-share-form-button_state_pressed");k.firstChild.style.zoom=1;a.setTimeout(function(){C(c,"click",e.onDocumentClick)},50);l("share");K=j;e.onopen(e._this)}function B(a){return(a||"").replace(/</g,"&lt;").replace(/"/g,"&quot;")}var D=c.documentElement,H={},E,r,G=E=function(a,b){for(var c=a[V]("*"),e=[],f=0,g=c.length;f<g;f++)d(b).test(c[f].className)&&e.push(c[f]);return e};c.querySelectorAll?E=function(a,b){return a.querySelectorAll("."+b)}:c.getElementsByClassName&&
(E=function(a,b){return a.getElementsByClassName?a.getElementsByClassName(b):G(a,b)});r=a.innerHeight?function(){return{width:a.innerWidth,height:a.innerHeight}}:D&&D.clientHeight?function(){return{width:D.clientWidth,height:D.clientHeight}}:function(){var a=c.body;return{width:a.clientWidth,height:a.clientHeight}};var C=c.addEventListener?function(a,b,c){a.addEventListener(b,c,!1)}:function(a,b,c){a.attachEvent("on"+b,c)},j=c.removeEventListener?function(a,b,c){a.removeEventListener(b,c,!1)}:function(a,
b,c){a.detachEvent("on"+b,c)},J,Q;"onmouseenter"in D?(J=function(a,b){C(a,"mouseenter",b)},Q=function(a,b){C(a,"mouseleave",b)}):(J=function(a,b){C(a,"mouseover",function(a){e(a,this)&&b(a)})},Q=function(a,b){C(a,"mouseout",function(a){e(a,this)&&b(a)})});var T=function(a,b){function c(){var a=b.createElement("div");a.style.width=a.style.paddingLeft="1px";b.body.appendChild(a);e.boxModel=a.offsetWidth===2;b.body.removeChild(a).style.display="none";c=m}function d(){var a=b.body,n=b.createElement("div"),
o,p,q;o=parseFloat;a:{q="marginTop";var r=a.style;if(f){q=q.replace(g,"-$1").toLowerCase();r=a.ownerDocument.defaultView;if(!r){p=null;break a}(r=r.getComputedStyle(a,null))&&(p=r.getPropertyValue(q))}else if(a.currentStyle){var s=q.replace(h,j);p=a.currentStyle[q]||a.currentStyle[s];if(!k.test(p)&&l.test(p)){q=r.left;var t=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;r.left=s==="fontSize"?"1em":p||0;p=r.pixelLeft+"px";r.left=q;a.runtimeStyle.left=t}}}r=o(p,10)||0;n.style.cssText="position:absolute;top:0;lefto:0;margin:0;border:0;width:1px;height:1px;visibility:hidden;";
n.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.insertBefore(n,a.firstChild);o=n.firstChild;p=o.firstChild;q=o.nextSibling.firstChild.firstChild;e.doesNotAddBorder=p.offsetTop!==5;e.doesAddBorderForTableAndCells=q.offsetTop===5;p.style.position=
"fixed";p.style.top="20px";e.supportsFixedPosition=p.offsetTop===20||p.offsetTop===15;p.style.position=p.style.top="";o.style.overflow="hidden";o.style.position="relative";e.subtractsBorderForOverflowNotVisible=p.offsetTop===-5;e.doesNotIncludeMarginInBodyOffset=a.offsetTop!==r;a.removeChild(n);c();d=m}var e={boxModel:null},f=b.defaultView&&b.defaultView.getComputedStyle,g=/([A-Z])/g,h=/-([a-z])/ig,j=function(a,b){return b.toUpperCase()},k=/^-?\d+(?:px)?$/i,l=/^-?\d/,m=function(){};return"getBoundingClientRect"in
D?function(b){if(!b||!b.ownerDocument)return null;c();var d=b.getBoundingClientRect(),b=b.ownerDocument.body,f=(D.clientTop||b.clientTop||0)+(parseInt(b.style.marginTop,10)||0),g=(D.clientLeft||b.clientLeft||0)+(parseInt(b.style.marginLeft,10)||0);return{top:d.top+(a.pageYOffset||e.boxModel&&D.scrollTop||b.scrollTop)-f,left:d.left+(a.pageXOffset||e.boxModel&&D.scrollLeft||b.scrollLeft)-g}}:function(a){if(!a||!a.ownerDocument)return null;d();var b=a.offsetParent,c=a.ownerDocument,f,g=c.body;f=(c=c.defaultView)?
c.getComputedStyle(a,null):a.currentStyle;for(var h=a.offsetTop,j=a.offsetLeft;(a=a.parentNode)&&a!==g&&a!==D;){if(e.supportsFixedPosition&&f.position==="fixed")break;f=c?c.getComputedStyle(a,null):a.currentStyle;h-=a.scrollTop;j-=a.scrollLeft;if(a===b){h+=a.offsetTop;j+=a.offsetLeft;if(e.doesNotAddBorder&&(!e.doesAddBorderForTableAndCells||!/^t(able|d|h)$/i.test(a.nodeName)))h+=parseFloat(f.borderTopWidth,10)||0,j+=parseFloat(f.borderLeftWidth,10)||0;b=a.offsetParent}e.subtractsBorderForOverflowNotVisible&&
f.overflow!=="visible"&&(h+=parseFloat(f.borderTopWidth,10)||0,j+=parseFloat(f.borderLeftWidth,10)||0)}if(f.position==="relative"||f.position==="static")h+=g.offsetTop,j+=g.offsetLeft;e.supportsFixedPosition&&f.position==="fixed"&&(h+=Math.max(D.scrollTop,g.scrollTop),j+=Math.max(D.scrollLeft,g.scrollLeft));return{top:h,left:j}}}(a,c),M=function(a,b){function c(){if(!e){if(!b.body)return setTimeout(c,13);e=!0;if(g){for(var a,d=0;a=g[d++];)a.call(null);g=null}}}function d(){if(!e){try{D.doScroll("left")}catch(a){setTimeout(d,
1);return}c()}}var e=!1,f=!1,g=[],h;b.addEventListener?h=function(){b.removeEventListener("DOMContentLoaded",h,!1);c()}:b.attachEvent&&(h=function(){b.readyState==="complete"&&(b.detachEvent("onreadystatechange",h),c())});return function(j){if(!f)if(f=!0,b.readyState==="complete")c();else if(b.addEventListener)b.addEventListener("DOMContentLoaded",h,!1),a.addEventListener("load",c,!1);else if(b.attachEvent){b.attachEvent("onreadystatechange",h);a.attachEvent("onload",c);var k=!1;try{k=a.frameElement==
null}catch(l){}D.doScroll&&k&&d()}e?j.call(null):g.push(j)}}(a,c),N=function(){},K=null,V="getElementsByTagName",Y=encodeURIComponent,I=c[V]("head")[0]||c.body,z="//yandex.st/share",P="http://share.yandex.ru",O={blogger:"Blogger",diary:"Diary",digg:"Digg",evernote:"Evernote",delicious:"delicious",facebook:"Facebook",friendfeed:"FriendFeed",gbuzz:"Google Buzz",greader:"Google Reader",juick:"Juick",linkedin:"LinkedIn",liveinternet:"LiveInternet",lj:"LiveJournal",moikrug:"\u041c\u043e\u0439 \u041a\u0440\u0443\u0433",
moimir:"\u041c\u043e\u0439 \u041c\u0438\u0440",myspace:"MySpace",odnoklassniki:"\u041e\u0434\u043d\u043e\u043a\u043b\u0430\u0441\u0441\u043d\u0438\u043a\u0438",tutby:"\u2013\u0453 \u2013\u0490\u2013\u00a3\u2013\u0490!",twitter:"Twitter",vkontakte:"\u0412\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u0435",yaru:"\u042f.\u0440\u0443",yazakladki:"\u042f\u043d\u0434\u0435\u043a\u0441.\u0417\u0430\u043a\u043b\u0430\u0434\u043a\u0438"},U={be:{close:"\u0437\u0430\u043a\u0440\u044b\u0446\u044c","code blog":"\u041a\u043e\u0434 \u0434\u043b\u044f \u0431\u043b\u043e\u0433\u0430",
link:"C\u043f\u0430\u0441\u044b\u043b\u043a\u0430",share:"\u041f\u0430\u0434\u0437\u044f\u043b\u0456\u0446\u0446\u0430","share with friends":"\u041f\u0430\u0434\u0437\u044f\u043b\u0456\u0446\u0446\u0430 \u0437 \u0441\u044f\u0431\u0440\u0430\u043ci"},en:{close:"close","code blog":"Blog code",link:"Link",share:"Share","share with friends":"Share with friends"},kk:{close:"\u0436\u0430\u0431\u0443","code blog":"\u0411\u043b\u043e\u0433 \u04af\u0448\u0456\u043d \u043a\u043e\u0434",link:"\u0421\u0456\u043b\u0442\u0435\u043c\u0435",
share:"\u0411\u04e9\u043b\u0456\u0441\u0443","share with friends":"\u0414\u043e\u0441\u0442\u0430\u0440\u044b\u04a3\u044b\u0437\u0431\u0435\u043d \u0431\u04e9\u043b\u0456\u0441\u0456\u04a3\u0456\u0437"},ru:{close:"\u0437\u0430\u043a\u0440\u044b\u0442\u044c","code blog":"\u041a\u043e\u0434 \u0434\u043b\u044f \u0431\u043b\u043e\u0433\u0430",link:"\u0421\u0441\u044b\u043b\u043a\u0430",share:"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f","share with friends":"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u0435\u0441\u044c \u0441 \u0434\u0440\u0443\u0437\u044c\u044f\u043c\u0438"},
tr:{close:"kapat","code blog":"Blog i\u00e7in eklenti kodu",link:"Ba\u011flant\u0131",share:"Payla\u015f","share with friends":"Arkada\u015flarla payla\u015f"},tt:{close:"\u044f\u0431\u0443","code blog":"\u0411\u043b\u043e\u0433 \u04e9\u0447\u0435\u043d \u043a\u043e\u0434",link:"\u0421\u044b\u043b\u0442\u0430\u043c\u0430",share:"\u0411\u04af\u043b\u0435\u0448\u04af","share with friends":"\u0414\u0443\u0441\u043b\u0430\u0440\u0433\u044b\u0437 \u0431\u0435\u043b\u04d9\u043d \u0431\u04af\u043b\u0435\u0448\u0435\u0433\u0435\u0437"},
uk:{close:"\u0437\u0430\u043a\u0440\u0438\u0442\u0438","code blog":"\u041a\u043e\u0434 \u0434\u043b\u044f \u0431\u043b\u043e\u0433\u0443",link:"\u041f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f",share:"\u041f\u043e\u0434\u0456\u043b\u0438\u0442\u0438\u0441\u044f","share with friends":"\u041f\u043e\u0434\u0456\u043b\u0456\u0442\u044c\u0441\u044f \u0437 \u0434\u0440\u0443\u0437\u044f\u043c\u0438"}},aa;if(!("Ya"in a))a.Ya={};Ya.share=function(b){if(!(this instanceof Ya.share))return new Ya.share(b);
b&&(z=b.STATIC_HOST||z,P=b.SHARE_HOST||P);this._loaded=!1;var e=this,f=b.onshare||N,j={onready:b.onready||b.onload||N,onbeforeclose:b.onbeforeclose||N,onclose:b.onclose||N,onbeforeopen:b.onbeforeopen||N,onopen:b.onopen||N,onshare:function(a){var b,c,d;if(!(b=a.currentTarget))if(d=a.target||a.srcElement,!(b=h(d,"b-share__handle")))b=h(d,"b-share-popup__item");if(b&&(c=b.getAttribute("data-service")))switch(l(c),c){case "facebook":A(a,b,800,500);break;case "moimir":A(a,b,560,400);break;case "twitter":A(a,
b,650,520);break;case "vkontakte":A(a,b,550,420);break;case "odnoklassniki":A(a,b,560,370)}(a=c)&&f(a,e)},_this:e,toggleOpenMode:function(a){var b=j,c=a.currentTarget||h(a.target||a.srcElement,"b-share__handle");d("b-share-popup_opened").test(c.className)?b.closePopup(c.id,b):b.onbeforeopen(b._this)!==!1&&b.openPopup(c,b);g(a);try{a.stopPropagation()}catch(e){a.cancelBubble=!0}}};j.closePopup=function(a){v();j.onbeforeclose(e)!==!1&&x(a,j)};j.openPopup=function(a,b){w(a,b)};j.onDocumentClick=function(a){var b=
j;(!(a&&typeof a!=="number")||!((a.which?a.which:1)!==1||h(a.target||a.srcElement,"b-share-popup-wrap")))&&K&&b.closePopup(K.id)};j.setPopupCloseTimeout=function(){aa=a.setTimeout(j.onDocumentClick,2E3)};this.closePopup=function(){x(this._popup.id,j)};this.openPopup=function(a){w(E(this._block,"b-share__handle")[0],j,a)};M(function(){var d;var f=b;d=j;k();if(!f||!f.element&&!f.elementID)throw Error("Invalid parameters");var g=f.element||f.elementID;typeof g==="string"?g=c.getElementById(g):!g.nodeType===
1&&(g=null);if(!g||g.yashareInited)d=void 0;else{g.yashareInited=!0;var h={};if(f.style)h.type=f.style.button===!1?"link":"button",h.linkUnderline=f.style.link,h.border=f.style.border,h.linkIcon=f.style.icon;var l,o=f.l10n,p=(f.link||a.location)+"",q=f.elementStyle||h||{type:"button"},r=q.quickServices||f.services||["|","yaru","vkontakte","odnoklassniki","twitter","facebook","moimir","lj"],h=f.title||c.title,s=f.serviceSpecific||f.override||{},w=f.popupStyle||f.popup||{},x=w.codeForBlog,y=w.blocks||
["yaru","vkontakte","odnoklassniki","twitter","facebook","moimir","lj"],A=w.copyPasteField||w.input,D="ya-share-"+Math.random()+"-"+ +new Date,I=!/(?:moikrug\.ru|ya\.ru|yandex\.by|yandex\.com|yandex\.com\.tr|yandex\.kz|yandex\.net|yandex\.ru|yandex\.ua|yandex-team\.ru)$/.test(location.hostname),H,G=f.servicesDeclaration;if(!I&&G)for(H in G)if(G.hasOwnProperty(H)&&!(H in O))if((l=G[H])&&l.url&&l.title&&(l.icon_16||l.icon_from))O[H]=G[H];else throw Error("Invalid new service declaration");if(!q.type||
"block button link icon none".indexOf(q.type)===-1)q.type="button";if(H=q.afterIconsText)q.type="text";if(!o||!(o in U))switch(o=location.hostname.split(".").splice(-1,1)[0],o){case "by":o="be";break;case "kz":o="kk";break;case "ua":o="uk";break;default:o="ru"}o=U[o];l=q.text||f.text||o.share+(q.type=="button"?"\u2026":"");l=B(l);Object.prototype.toString.call(y)==="[object Array]"&&(G=y,y={},y[o["share with friends"]]=G);switch(typeof x){case "string":var K=x,x={};x[o["code blog"]]=K;break;case "object":for(K in x)break;
K||(x=null);break;default:x=null}var G=' id="'+D+'" data-hdirection="'+(w.hDirection||"")+'" data-vdirection="'+(w.vDirection||"")+'"',M=['<span class="b-share'+(q.type=="block"?" b-share-form-button b-share-form-button_icons":"")+(q.border?" b-share_bordered":"")+(q.linkUnderline?" b-share_link":"")+'"'+(q.background?' style="background:'+q.background+'"':"")+">"+(q.type!=="none"&&q.type!=="text"?'<a class="b-share__handle"'+G+">":"")];if(q.type=="block")M=['<div class="b-share"><span class="b-share-form-button b-share-form-button_icons"><i class="b-share-form-button__before"></i>'];
else if(q.type=="button")M.push('<span class="b-share-form-button b-share-form-button_share"><i class="b-share-form-button__before"></i><i class="b-share-form-button__icon"></i>'+l+'<i class="b-share-form-button__after"></i></span>');else{if(q.type==="link"||q.type==="text")M.push('<span class="b-share__text'+(q.type==="text"?" b-share__handle b-share__handle_cursor_default":"")+(q.linkUnderline==="dotted"?" b-share-pseudo-link":"")+'">');((q.type==="link"||q.type==="text")&&q.linkIcon||q.type===
"icon")&&M.push('<img alt="" class="b-share-icon" src="'+z+'/static/b-share.png"/>');(q.type==="link"||q.type==="text")&&M.push(l+"</span>")}q.type!=="none"&&q.type!=="text"&&M.push("</a>");w=0;for(K=r.length;w<K;w++)l=r[w],M.push(t(l,m(l,"link",p,s),m(l,"title",h,s),m(l,"description",f.description||"",s),m(l,"image",f.image||"",s)));q.type=="block"?(H="\u0432\u0426\u0409",M.push('<a class="b-share__handle b-share__handle_more" title="\u2013\u0425\u2014\u0419\u2014\u0421" '+G+'><span class="__b-share__handle_more">'+
H+"</span></a>"),M.push('<i class="b-share-form-button__after"></i>')):H&&M.push('<a class="b-share__handle b-share_link"'+G+'><span class="b-share__text b-share-pseudo-link">'+H+"</span></a>");M.push("</span>");q.type=="block"&&M.push("</div>");g.innerHTML=M.join("");G=q.type==="none";r=1;l=E(g,"b-share__handle");K=w=l.length;G?r=0:(G=l[0],H&&(G=l[w-1],K--),C(G,"click",d.toggleOpenMode),J(G,v),Q(G,d.setPopupCloseTimeout));for(H=K;r<H;r++)C(l[r],"click",d.onshare);if(q.type!=="none"){var N=['<div class="b-share-popup-wrap b-share-popup-wrap_state_hidden" id="'+
D+'-popup"><div class="b-share-popup b-share-popup_down b-share-popup_to-right"><div class="b-share-popup__i'+(A?" b-share-popup_with-link":"")+'">'];if(x){N.push('<div class="b-share-popup__form b-share-popup__form_html">');for(var P in x)x.hasOwnProperty(P)&&N.push('<label class="b-share-popup__input">'+P+'<textarea class="b-share-popup__input__input" cols="10" rows="5">'+x[P]+"</textarea></label>");N.push('<a class="b-share-popup__form__close">'+o.close+"</a></div>")}N.push('<div class="b-share-popup__main '+
(I?" b-share-popup_yandexed":"")+'">');A&&N.push('<label class="b-share-popup__input b-share-popup__input_link">'+o.link+'<input class="b-share-popup__input__input" readonly="readonly" type="text" value="'+B(p)+'" /></label>');for(var W in y)if(y.hasOwnProperty(W)&&(P=y[W],K=P.length)){W&&N.push('<div class="b-share-popup__header b-share-popup__header_first">'+W+"</div>");for(w=0;w<K;w++)l=P[w],N.push(n(l,m(l,"link",p,s),m(l,"title",h,s),m(l,"description",f.description,s),m(l,"image",f.image||"",
s)))}x&&N.push('<div class="b-share-popup__spacer"></div><a class="b-share-popup__item b-share-popup__item_type_code"><span class="b-share-popup__icon"><span class="b-share-icon b-share-icon_html"></span></span><span class="b-share-popup__item__text">'+o["code blog"]+"</span></a>");I&&N.push('<a href="http://api.yandex.ru/share/" class="b-share-popup__yandex">\u042f\u043d\u0434\u0435\u043a\u0441</a>');N.push("</div>");N.push('</div><div class="b-share-popup__tail"></div></div></div>');f=c.createElement("div");
f.innerHTML=N.join("");N=f.firstChild;c.body.appendChild(N);u(N,d)}d=[g,N]}b=null;if(d)e._block=d[0],e._popup=d[1],e._loaded=!0,j.onready(e)})};Ya.share.prototype={updateShareLink:function(b,d,e){if(!this._loaded)return this;var f,g,h,j,k="",l="";arguments.length==1&&typeof arguments[0]=="object"?(f=arguments[0],b=f.link||a.location.toString(),d=f.title||c.title,k=f.description||"",l=f.image||"",e=f.serviceSpecific||{}):(b=b||a.location.toString(),d=d||c.title,e=e||{});h=E(this._block,"b-share__link");
f=0;for(g=h.length;f<g;f++)j=h[f].getAttribute("data-service"),h[f].href=q(j,m(j,"link",b,e),m(j,"title",d,e),m(j,"description",k,e),m(j,"image",l,e));if(this._popup){h=E(this._popup,"b-share-popup__item");f=0;for(g=h.length;f<g;f++)j=h[f].getAttribute("data-service"),h[f].href=q(j,m(j,"link",b,e),m(j,"title",d,e),m(j,"description",k,e),m(j,"image",l,e));if(h=E(this._popup,"b-share-popup__input__input")[0])h.value=b}return this},updateCustomService:function(a,b){if(O[a]&&O[a].url)O[a].url=b,this.updateShareLink()}};
M(function(){for(var a=E(c.body,"yashare-auto-init"),b=0,d=a.length,e,f,g;b<d;b++){e=a[b];f=e.getAttribute("data-yashareQuickServices");likes=e.getAttribute("data-yashareLikeButtons");g=e.getAttribute("data-yasharePopupServices");f=typeof f==="string"?f.split(","):null;likes=typeof likes==="string"?likes.split(","):null;e={element:e,l10n:e.getAttribute("data-yashareL10n"),link:e.getAttribute("data-yashareLink"),title:e.getAttribute("data-yashareTitle"),elementStyle:{type:e.getAttribute("data-yashareType"),
quickServices:f,likeButtons:likes}};if(g&&typeof g==="string")g=g.split(","),e.popupStyle={blocks:g};new Ya.share(e)}})})(window,document);function parseStringForAjaxSend(a){var a=a.replace(/[&]/g,"{andsymbol}"),c=/[+]/g,a=a.replace(c,"{plussymbol}"),c=/[/]/g,a=a.replace(c,"{slash}"),c=/[\\]/g;return a=a.replace(c,"{slash}")}function ajaxSetCoockie(a,c){$.ajax({type:"POST",url:"/ajax_set_coockie/",data:"name="+a+"&data="+c,cache:!1})}
function alertModern(a,c){$("#ui-message-div").html(c);$("#ui-message-div").attr("title",a);$("#ui-message-div").dialog({resizable:!1,modal:!0,buttons:{"\u0417\u0430\u043a\u0440\u044b\u0442\u044c":function(){$(this).dialog("close")}}})}function alertModernHeight(a,c,d){$("#ui-message-div").html(c);$("#ui-message-div").attr("title",a);$("#ui-message-div").dialog({resizable:!1,modal:!0,height:d,buttons:{"\u0417\u0430\u043a\u0440\u044b\u0442\u044c":function(){$(this).dialog("close")}}})}
function rcNewsPageCh(a){var c=$("#nlp-"+a).html();$("#nlp-cur").html()!=c&&($("#nlp-cur").fadeOut(300,function(){$("#nlp-cur").html(c);$("#nlp-cur").fadeIn(300)}),$("#nlp-pl a").removeClass("active"),$("#nlp-pl a[rel="+a+"]").addClass("active"))}
function initSocialYandex(a,c,d){new Ya.share({element:"ya_share",l10n:"ru",link:a,title:c,description:d,elementStyle:{type:"button",quickServices:["yaru","vkontakte","facebook","twitter","odnoklassniki","moimir","lj","friendfeed","moikrug"]},popupStyle:{blocks:{"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u0435\u0441\u044c \u0441 \u0434\u0440\u0443\u0437\u044c\u044f\u043c\u0438":["yaru","vkontakte","facebook","twitter","odnoklassniki","moimir","lj","friendfeed","moikrug","blogger","digg","gbuzz",
"myspace","yazakladki"]}},onready:function(){}})}function giLogin(){$.ajax({type:"POST",url:"/ajax_lib/login/",data:"login="+parseStringForAjaxSend($("#gilogin").val())+"&pass="+parseStringForAjaxSend($("#gipass").val()),cache:!1,success:function(a){a=a.split("|");a[0]=="ok"?((new evercookie).set("HgbcTgdfslsadcjsdhB",a[1]),window.location.reload()):alertModern("\u041e\u0448\u0438\u0431\u043a\u0430 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438",a[0])}})}
function activateFlashGamesPageScrolling(a){var c=0;$("#fggc-"+a+" a").each(function(){$(this).height()>c&&(c=$(this).height())});$("#fggc-"+a+" a").height(c);$("#fgpl-"+a+" a").click(function(c){c.preventDefault();var c=parseInt($("#fggc-"+a).css("left")),b=-(parseInt($(this).attr("rel"))-1)*624;c!=b&&($("#fggc-"+a).animate({left:[b,"swing"]},800),$("#fgpl-"+a+" a").removeClass("active"),$("#fgpl-"+a+" a[rel="+$(this).attr("rel")+"]").addClass("active"))})}
function initRemoteVideos(){$(".m-v-youtube-pr").die();$(".m-v-youtube-pr").each(function(){$(this).html('<img src="http://img.youtube.com/vi/'+$(this).attr("rel")+'/default.jpg" /><div></div>');$(this).attr("title","\u041d\u0430\u0436\u043c\u0438\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u0438\u0434\u0435\u043e-\u0440\u043e\u043b\u0438\u043a");$(this).click(function(){$(this).replaceWith('<div class="youtube-player"><iframe title="YouTube video player" type="text/html" width="380" height="243" src="http://www.youtube.com/embed/'+
$(this).attr("rel")+'?rel=0&amp;wmode=transparent&amp;autoplay=1" frameborder="0" allowFullScreen></iframe></div>')})})}function countersInit(){$("#counters-div").html('<\!--LiveInternet logo--\><a href="http://gamer-info.com/redirect.php?s=http://www.liveinternet.ru/click" target="_blank"><img src="http://counter.yadro.ru/logo?58.6" title="LiveInternet" alt="" border="0" width="88" height="31" /></a><\!--/LiveInternet--\>')}
function searchformInit(){$("#search-input").val("\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0438\u043b\u0438 \u0447\u0430\u0441\u0442\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0438\u0433\u0440\u044b...");$("#search-input").focus(function(){$(this).val()=="\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0438\u043b\u0438 \u0447\u0430\u0441\u0442\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0438\u0433\u0440\u044b..."&&
$(this).val("")});$("#search-input").blur(function(){$(this).val()==""&&$(this).val("\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0438\u043b\u0438 \u0447\u0430\u0441\u0442\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0438\u0433\u0440\u044b...")});$("#sfsmb").click(function(a){a.preventDefault();$("#sfm-frm").submit()});var a=!0;if(isIE===!0){var c=0,c=parseInt(jQuery.browser.version);c<8&&(a=!1)}a&&$("#search-input").autocomplete("/autocomplete_searchform.php",
{onItemSelect:selectItem})}
function videoPlayerRenderEndOverlay(a,c){var d="#"+a,b=a+"-ovldiv",f="#"+b,h=a+"-ovldivbg",e="#"+h,g=$(d).width(),k=$(d).height(),l=k-160;$(d).before('<div class="video-overlay" id="'+b+'"></div><div style="background:#000;" id="'+h+'"><img src="/videos-preview/'+c+'.jpg" style="width:'+g+"px;height:"+k+'px;" /></div>');$(d).css("height",0);$(f).css("width",g+"px").css("height",k+"px").css("margin-bottom","-"+k+"px");$.ajax({url:"/ajax_lib/load-vid-overlay/"+c+"/"+g+"/"+k+"/",cache:!1,success:function(b){$(f).html(b);
b=l-10;$(".vid-ovl-rel-vid-cont").css("height",b+"px");b=g-38;$(".vid-ovl-rel-code-cont textarea").css("width",b+"px");$("#vid-ovl-div-other").css("height",l+"px");$("#vid-ovl-div-code").css("height",l+"px");$("#vid-ovl-div-share").css("height",l+"px");$(".video-overlay-button-other").unbind();$(".video-overlay-button-code").unbind();$(".video-overlay-button-share").unbind();$(".video-overlay-button-replay").unbind();$(".video-overlay-button-other").click(function(a){a.preventDefault();$("#vid-ovl-div-code").hide();
$("#vid-ovl-div-share").hide();$("#vid-ovl-div-other").show();$(this).blur()});$(".video-overlay-button-code").click(function(a){a.preventDefault();$("#vid-ovl-div-share").hide();$("#vid-ovl-div-other").hide();$("#vid-ovl-div-code").show();$(this).blur()});$(".video-overlay-button-share").click(function(a){a.preventDefault();$("#vid-ovl-div-code").hide();$("#vid-ovl-div-other").hide();$("#vid-ovl-div-share").show();$(this).blur()});$(".video-overlay-button-replay").click(function(b){b.preventDefault();
$(f).remove();$(e).remove();$(d).css("height",k);jwplayer(a).play()})}})}function resizeBigPostImages(){}
function resizePicsInSpoilers(a){$(a).find("img").each(function(){var a=$(this).width(),d=$(this).height();if(a>470){var b=0,b=(470*(d/a)).toFixed(0),b=parseFloat(b);$(this).width(470);$(this).height(b);a='<a href="'+$(this).attr("src")+'" class="pirobox_ppict'+Math.floor(Math.random()*999999)+'" title="\u0423\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u043d\u0430\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430"></a>';$(this).wrap(a);piroInit()}})}
function addVideoView(a){$.ajax({url:"/ajax_video_add_view/"+a+"/",cache:!1,success:function(){}})}function postImgMinSize(a,c){var d=$(a).width(),b=$(a).height();if(d>c){var f=0,f=(c*(b/d)).toFixed(0),f=parseFloat(f);$(a).width(c);$(a).height(f);d='<a href="'+$(a).attr("src")+'" class="pirobox_ppict'+Math.floor(Math.random()*999999)+'" title="\u0423\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u043d\u0430\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430"></a>';$(a).wrap(d);piroInit()}}
function voute(a,c,d){document.getElementById("voute-result").innerHTML='<div class="h2-white" style="padding:3px;text-align:center;"><img src="/images/loading-128x15-055370.gif" width="128" height="15" alt="\u041c\u0438\u043d\u0443\u0442\u043a\u0443, \u0438\u0434\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430..." title="\u041c\u0438\u043d\u0443\u0442\u043a\u0443, \u0438\u0434\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430..." /></div>';
var b="";a=="game"&&(b="/ajax_game_voute/"+c+"/"+d+"/");a=="flashgame"&&(b="/ajax_flashgame_voute/"+c+"/"+d+"/");$.ajax({url:b,cache:!1,success:function(a){a=a.split("|");$("#users-vouted").html(a[1]);$("#users-vouted-mark").html(a[0])}});document.getElementById("voute-result").innerHTML='<div class="h2-white" style="padding:3px;text-align:center;">\u0421\u043f\u0430\u0441\u0438\u0431\u043e, \u0432\u0430\u0448 \u0433\u043e\u043b\u043e\u0441 \u0443\u0447\u0442\u0435\u043d.</div>'}
function selectItem(a){document.getElementById("search-input").value="\u041c\u0438\u043d\u0443\u0442\u043a\u0443, \u043f\u0435\u0440\u0435\u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u044f \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0438\u0433\u0440\u044b...";if(a==null)var c="";c=a.extra?a.extra[0]:a.selectValue;location.href=c}function ajaxAllPagesInfoInit(){}function update_abs_positions(){}
function ajaxRenderSimNews(a){$.ajax({url:"/ajax_sim_news.php?id="+a,cache:!1,success:function(a){$("#sim-news-div").html(a)}})}
function renderFavGames(a,c){var d="#profile-fav-games-div";c=="profile_all_waited"&&(d="#profile-favwaiting-games-div");$(d).html('<img src="/images/loading-100x100-transparent.gif" width="100" height="100" alt="\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430..." title="\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430..." />');$.ajax({url:"/ajax_render_fav_games/"+a+"/"+c+"/",cache:!1,success:function(a){$(d).html(a)}})}
function gotoTopOfComents(){var a=$("#comments-container-div").offset().top-25;jQuery("html:not(:animated),body:not(:animated)").animate({scrollTop:a},100)}function slideToElement(a){a=$(a).offset().top-25;jQuery("html:not(:animated),body:not(:animated)").animate({scrollTop:a},100)}
function renderComments(a,c,d,b,f){var h=$("#comments-container-div").height();f=="1"&&($("#comments-container-div").css("height",h+"px"),$("#comments-container-div").html(""));$.ajax({url:"/ajax_render_comments/"+a+"/"+c+"/"+d+"/"+b+"/",cache:!1,success:function(a){lastComModTimestamp=/Lastmod: (\d+)/.exec(a)[1];$("#comments-container-div").html(a);$("#comments-container-div").css("height","auto");$("#comments-container-div").fadeIn("slow");initRemoteVideos();currentCommentPage=b}})}
function renderCommentsAutorefresh(){if(autoRefStarted==1&&currentCommentPage==1){var a=(new Date).getTime();a-lastAutorefreshTime>=currentAutorefreshInt-1E3?$.ajax({url:"/ajax_render_comments/"+currentCommentObjectType+"/"+currentCommentObjectId+"/"+currentCommentsOnPage+"/1/refreshfrom/"+lastComModTimestamp+"/",cache:!1,success:function(c){lastAutorefreshTime=a;c!=""&&(lastComModTimestamp=/Lastmod: (\d+)/.exec(c)[1],$("#comments-container-div").html(c),initRemoteVideos());setTimeout(renderCommentsAutorefresh,
currentAutorefreshInt)}}):setTimeout(renderCommentsAutorefresh,currentAutorefreshInt)}}function renderProfileComments(a,c,d,b){var f="#"+a;$.ajax({url:"/ajax_render_comments/user-profile/"+c+"/"+d+"/"+b+"/",cache:!1,success:function(a){$(f).html(a);$(f).css("height","auto");$(f).fadeIn("slow");initRemoteVideos()}})}
function renderAllComments(a,c,d){var b="#"+a;$.ajax({url:"/ajax_render_comments/all-comments/"+c+"/"+d+"/",cache:!1,success:function(a){$(b).html(a);$(b).css("height","auto");$(b).fadeIn("slow");initRemoteVideos()}})}function renderProfileWall(a,c,d,b,f){var h="#"+a;$.ajax({url:"/ajax_render_wall/user-profile/"+c+"/"+d+"/"+b+"/"+f+"/",cache:!1,success:function(a){$(h).html(a);$(h).css("height","auto");$(h).fadeIn("slow");initRemoteVideos()}})}
function forceUpd(){var a=0,a=Math.floor(60*(userForce/userForceMax));$("#forceval").html(userForce);$("#flforce").animate({height:a},1E3,"swing")}
function forceMinus(a){return userForce>=a?(userForce-=a,userForce>userForceMax&&(userForce=userForceMax),forceUpd(),!0):($("#ui-message-div").html('<div style="color:#fff;font-weight:bolder;"><img src="/images/force-32x32.png" width="32" height="32" alt="\u0421\u0438\u043b\u0430" style="float:left;margin:0px 5px 0px 0px;" /> \u041d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0441\u0438\u043b\u044b \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f!'),$("#ui-message-div").attr("title",
"\u041d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u0438\u043b\u044b!"),thisUserGuest==!1&&$("#ui-message-div").dialog({resizable:!1,height:125,modal:!0,buttons:{"\u0417\u0430\u043a\u0440\u044b\u0442\u044c":function(){$(this).dialog("close")}}}),!1)}function gotoTopOfScreen(){var a=$("#screen-container-div").offset().top-5;jQuery("html:not(:animated),body:not(:animated)").animate({scrollTop:a},100)}
function renderScreen(a,c,d){$("#screen550-container").html('<img src="/images/loading-100x100-transparent.gif" width="100" height="100" alt="\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430..." title="\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430..." />');$.ajax({url:"/ajax_render_screens/"+a+"/"+c+"/",cache:!1,success:function(a){$("#screen-container-div").html(a);piroInit();d=="1"&&setTimeout("gotoTopOfScreen()",200)}})}
function renderUserPicThumbs(a,c){$("#user-pic-thubms-list").html('<img src="/images/loading-128x15-transparent.gif" width="128" height="15" style="margin-top:19px;" alt="\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430..." title="\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430..." />');thumbsPage=c;$.ajax({url:"/ajax_render_userpic_thumbs/"+a+"/"+c+"/",cache:!1,success:function(a){$("#user-pic-thubms-list").html(a)}})}
function renderUserPic(a,c){var d=$("#userpic550-container"),b=$("#userpic550-container-overlay"),f=d.height(),d=Math.round(f/2)+25,f=f-d-2;b.css("margin-top","-"+d+"px");b.css("margin-bottom",f+"px");b.fadeIn("fast");$.ajax({url:"/ajax_render_userpic/"+a+"/"+c+"/",cache:!1,success:function(a){$("#userpic-container-div").html(a);$("#comment").markItUp(myBbcodeSettings);piroInit()}})}
function gotoTopOfArt(){var a=$("#art-container-div").offset().top-5;jQuery("html:not(:animated),body:not(:animated)").animate({scrollTop:a},100)}
function renderArt(a,c,d){$("#art550-container").html('<img src="/images/loading-100x100-transparent.gif" width="100" height="100" alt="\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430..." title="\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430..." />');$.ajax({url:"/ajax_render_arts/"+a+"/"+c+"/",cache:!1,success:function(a){$("#art-container-div").html(a);piroInit();d=="1"&&setTimeout("gotoTopOfArt()",200)}})}
function gotoTopOfWallpaper(){var a=$("#wallpaper-container-div").offset().top-5;jQuery("html:not(:animated),body:not(:animated)").animate({scrollTop:a},100)}
function renderWallpaper(a,c,d){$("#wallpaper550-container").html('<img src="/images/loading-100x100-transparent.gif" width="100" height="100" alt="\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430..." title="\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430..." />');$.ajax({url:"/ajax_render_wallpapers/"+a+"/"+c+"/",cache:!1,success:function(a){$("#wallpaper-container-div").html(a);d=="1"&&setTimeout("gotoTopOfWallpaper()",200)}})}
function gotoTopOfContainer(a){a=$(a).offset().top-5;jQuery("html:not(:animated),body:not(:animated)").animate({scrollTop:a},100)}
function renderScreenLimit(a,c,d,b,f,h){$("#screen550-container-"+a).html('<img src="/images/loading-100x100-transparent.gif" width="100" height="100" alt="\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430..." title="\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430..." />');$.ajax({url:"/ajax_render_screens_limit/"+a+"/"+c+"/"+d+"/"+b+"/"+f+"/",cache:!1,success:function(a){var b="#"+f;$(b).html(a);h=="1"&&setTimeout(gotoTopOfContainer(b),200)}})}
function renderArtLimit(a,c,d,b,f,h){$("#art550-container-"+a).html('<img src="/images/loading-100x100-transparent.gif" width="100" height="100" alt="\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430..." title="\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430..." />');$.ajax({url:"/ajax_render_arts_limit/"+a+"/"+c+"/"+d+"/"+b+"/"+f+"/",cache:!1,success:function(a){var b="#"+f;$(b).html(a);h=="1"&&setTimeout(gotoTopOfContainer(b),200)}})}
function sendComment(a,c,d){var b=1;a=="userpics"&&(b=5);if(forceMinus(b)||thisUserGuest)$("#comment-form-div").css("display","none"),$("#comment-form-div-loading").css("display","block"),$("#comment-form-div-errors").css("display","none"),b=$("#comment").val(),b=parseStringForAjaxSend(b),$.ajax({type:"POST",url:"/ajax_send_comment/"+a+"/"+c+"/",data:"comment="+b+"&guestname="+$("#commentername").val()+"&guestavatarsrc="+$("#guestavatarsrcid").val(),cache:!1,success:function(b){b!=""&&($("#comment-form-div-errors").html(b),
$("#comment-form-div-errors").css("display","block"));b==""&&$("#comment").val("");$("#comment-form-div-loading").css("display","none");$("#comment-form-div").css("display","block");renderComments(a,c,d,"1","0")}})}
function editComment(a,c,d,b,f){var h="#edit-comment-ta-"+a,e="#edit-comment-divmain-"+a,g="#comment-edit-div-errors-"+a,k="#comment-edit-div-loading-"+a;$(e).css("display","none");$(k).css("display","block");$(g).css("display","none");h=$(h).val();h=parseStringForAjaxSend(h);$.ajax({type:"POST",url:"/ajax_edit_comment/",data:"comment="+h+"&commentid="+a,cache:!1,success:function(a){a!=""?($(g).html(a),$(g).css("display","block"),$(e).css("display","block"),$(k).css("display","none")):renderComments(c,
d,b,f,"0")}})}function userdeleComment(a,c,d,b,f){$.ajax({type:"POST",url:"/ajax_edit_comment/delete/",data:"commentid="+a,cache:!1,success:function(){renderComments(c,d,b,f,"0")}})}function getCheckedValue(a){if(!a)return"";var c=a.length;if(c==void 0)return a.checked?a.value:"";for(var d=0;d<c;d++)if(a[d].checked)return a[d].value;return""}
function setCheckedValue(a,c){if(a){var d=a.length;if(d==void 0)a.checked=a.value==c.toString();else for(var b=0;b<d;b++)if(a[b].checked=!1,a[b].value==c.toString())a[b].checked=!0}}
function sendPollVoute(a,c){$("#poll-content-div").html('<img src="/images/loading-100x100-transparent.gif" width="100" height="100" style="padding:5px 0px 10px 46px;" alt="\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430..." title="\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430..." />');var d="";$.ajax({url:"/poll-voute/"+a+"/"+c+"/",cache:!1,success:function(a){$("#poll-content-div").html(a)}})}
function sendPollNewsVoute(a,c){$("#poll-news-content-div").html('<img src="/images/loading-100x100-transparent.gif" width="100" height="100" style="padding:5px 0px 10px 46px;" alt="\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430..." title="\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430..." />');var d="";$.ajax({url:"/poll-voute/"+a+"/"+c+"/",cache:!1,success:function(a){$("#poll-news-content-div").html(a)}})}
function umUpdVal(a,c){var d="#um-fl-cont ."+a+" span",b="#um-fl-cont ."+a,f=16;c>0?(f=30,c>9&&(f=36),c>99&&(f=43),c>999&&(f=50),c>9999&&(f=57),c>99999&&(f=64),$(d).html("("+c+")")):$(d).html("");$(d).css("width",f+"px");$(b).css("display","block");c==0&&(a=="si"&&$(b).css("display","none"),a=="wl"&&$(b).css("display","none"))}
function umUpdDatas(a){var a=a.split("|"),c=a[0];c!=""&&c!=userForce&&(userForce=c,forceUpd());umUpdVal("si",a[1]);umUpdVal("wl",a[2]);umUpdVal("cm",a[3]);umUpdVal("ls",a[4]);a[4]==0&&$("#new-ls-tablet").hide();umUpdVal("fr",a[5]);a[1]==0&&flMenuOpenedPopup=="si"&&($("#um-fl-popup-cont").fadeOut("fast"),flMenuOpenedPopup="");a[6]!=0&&umFlSmOpen();umUpdVal("ht",a[7])}
function umAutoUpdData(){$.ajax({url:"/ajax_lib/get-um-data/",cache:!1,success:function(a){umUpdDatas(a);setTimeout("umAutoUpdData()",15E3)}})}function umManualUpdData(){$.ajax({url:"/ajax_lib/get-um-data/",cache:!1,success:function(a){umUpdDatas(a)}})}
function flUmPopupOpen(a,c){return flMenuOpenedPopup!=a?($("#um-fl-popup-cont").html('<a href="#" title="\u0417\u0430\u043a\u0440\u044b\u0442\u044c" class="clbut"></a><div style="clear:both;"></div>'+c),$("#um-fl-popup-cont").fadeIn("fast"),flMenuOpenedPopup=a,!0):($("#um-fl-popup-cont").fadeOut("fast"),a=="si"&&ajaxSetCoockie("open_si","0"),flMenuOpenedPopup="",!1)}
function flUmPopupUpdate(a){$("#um-fl-popup-cont").html('<a href="#" title="\u0417\u0430\u043a\u0440\u044b\u0442\u044c" class="clbut"></a><div style="clear:both;"></div>'+a)}
function flUmOpenSi(a){flUmPopupOpen("si",'<div class="hd"><span class="si"></span>\u0421\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f</div><div style="text-align:center;margin:10px 0px;width:270px;"><img src="/images/loading-128x15-transparent.gif" title="\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430..." alt="" /></div>')==!0&&$.ajax({url:"/ajax_lib/get-um-data-not-mess/"+a+"/",cache:!1,success:function(a){a=="close"?($("#um-fl-popup-cont").fadeOut("fast"),
flMenuOpenedPopup=""):flUmPopupUpdate('<div class="hd"><span class="si"></span>\u0421\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f</div>'+a)}})}function umFlSmCloseTimer(){flMenuTimer-=100;flMenuTimer<0&&(flMenuTimer=0);flMenuTimer==0?umFlSmClose():setTimeout("umFlSmCloseTimer()",100)}
function umFlSmOpen(){$.ajax({url:"/ajax_lib/get-um-data-sm/",cache:!1,success:function(a){if(a!=""){var c=a.split("{start-of-data}"),a=c[0];flMenuSm=c[1];$("#um-fl-sm-cont").html('<a href="#" title="\u0417\u0430\u043a\u0440\u044b\u0442\u044c" class="clbut"></a><div style="clear:both;"></div>'+a);$("#um-fl-sm-cont").slideDown("slow");flMenuTimer=c[2]*1E3;setTimeout("umFlSmCloseTimer()",100);c[3]!=""&&currentUserUseSounds==!0&&playUserSound("http://gamer-info.com/sounds/"+c[3])}}})}
function umFlSmClose(){$("#um-fl-sm-cont").slideUp("slow");$.ajax({url:"/ajax_lib/get-um-data-sm-del/"+flMenuSm+"/",cache:!1});flMenuSm=0;umFlSmOpen()}
function initFlUserMenu(){$("#um-fl-popup-cont .clbut").live("click",function(a){a.preventDefault();$("#um-fl-popup-cont").fadeOut("fast");flMenuOpenedPopup=="si"&&ajaxSetCoockie("open_si","0");flMenuOpenedPopup=""});$("#um-fl-sm-cont .clbut").live("click",function(a){a.preventDefault();umFlSmClose()});$("#um-fl-cont .un").click(function(a){a.preventDefault();flUmPopupOpen("un",'<div class="hd"><span class="fr"></span>'+currentUserNAME+'</div><a href="/profile/'+currentUserID+'/" class="mp">\u041e\u0431\u0449\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f</a><a href="/profile/'+
currentUserID+'/history/" class="mp">\u0427\u0442\u043e \u043d\u043e\u0432\u043e\u0433\u043e?</a><a href="/profile/'+currentUserID+'/favorite/" class="mp">\u0418\u0437\u0431\u0440\u0430\u043d\u043d\u043e\u0435/\u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0438</a><a href="/profile/'+currentUserID+'/gameadvice/" class="mp">\u0412\u043e \u0447\u0442\u043e \u043f\u043e\u0438\u0433\u0440\u0430\u0442\u044c?</a><a href="/profile/'+currentUserID+'/wall/" class="mp">\u0421\u0442\u0435\u043d\u0430</a><a href="/profile/'+
currentUserID+'/achievements/" class="mp">\u041d\u0430\u0433\u0440\u0430\u0434\u044b</a><a href="/profile/'+currentUserID+'/friends/" class="mp">\u0414\u0440\u0443\u0437\u044c\u044f</a><a href="/profile/'+currentUserID+'/gallery/" class="mp">\u0413\u0430\u043b\u0435\u0440\u0435\u0438</a><a href="/profile/'+currentUserID+'/cards/" class="mp">\u041a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u043a\u0430\u0440\u0442\u044b</a><a href="/profile/'+currentUserID+'/reiting/" class="mp">\u0414\u0435\u0442\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0440\u0435\u0439\u0442\u0438\u043d\u0433\u0430</a><a href="/logout/" class="mp">\u0412\u044b\u0439\u0442\u0438</a>')});
$("#um-fl-cont .sm").click(function(a){a.preventDefault();flUmPopupOpen("sm",'<div class="hd"><span class="sm"></span>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0440\u043e\u0444\u0438\u043b\u044f</div><a href="/user/edit/" class="mp">\u041e\u0431\u0449\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438</a><a href="/user/notifications/" class="mp">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439</a><a href="/user/subscriptions/" class="mp">\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0430\u043c\u0438</a>')});
$("#um-fl-cont .fv").click(function(a){a.preventDefault();flUmPopupOpen("fv",'<div class="hd"><span class="fv"></span>\u0418\u0437\u0431\u0440\u0430\u043d\u043d\u043e\u0435/\u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0438</div><div id="um-fl-fav-div"><div style="text-align:center;margin:10px 0px;"><img src="/images/loading-128x15-transparent.gif" title="\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430..." alt="" /></div></div><a href="/profile/'+currentUserID+'/favorite/" class="mp">\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0430\u043c\u0438</a><a href="#" class="mp" id="um-fl-add-fav-button">\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0432 \u0438\u0437\u0431\u0440\u0430\u043d\u043d\u043e\u0435</a>')==
!0&&$.ajax({url:"/ajax_lib/get-um-data-fav-main/",cache:!1,success:function(a){$("#um-fl-fav-div").html(a)}})});$("#um-fl-cont .fr").click(function(a){a.preventDefault();flUmPopupOpen("fr",'<div class="hd"><span class="fr"></span>\u0414\u0440\u0443\u0437\u044c\u044f \u043e\u043d\u043b\u0430\u0439\u043d</div><div style="text-align:center;margin:10px 0px;width:230px;"><img src="/images/loading-128x15-transparent.gif" title="\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430..." alt="" /></div>')==!0&&
$.ajax({url:"/ajax_lib/get-um-data-fr-online/",cache:!1,success:function(a){flUmPopupUpdate('<div class="hd"><span class="fr"></span>\u0414\u0440\u0443\u0437\u044c\u044f \u043e\u043d\u043b\u0430\u0439\u043d</div><div class="usrlst">'+a+'</div><div class="white-links" style="text-align:center;margin:8px 0px;font-weight:bolder;width:230px;"><a href="/profile/'+currentUserID+'/friends/">\u0412\u0441\u0435 \u0434\u0440\u0443\u0437\u044c\u044f</a></div>')}})});$("#um-fl-add-fav-button").live("click",function(a){a.preventDefault();
flUmPopupOpen("fv","");var a=parseStringForAjaxSend(addFavURL),c=parseStringForAjaxSend(addFavName);$.ajax({url:"/ajax_lib/user-fav-add/"+a+"/"+c+"/",cache:!1,success:function(a){a!="ok"&&alertModern("\u0417\u0430\u043a\u043b\u0430\u0434\u043a\u0430 \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0430",a)}})});$("#um-fl-cont .si").click(function(a){a.preventDefault();flUmOpenSi(1)})}
function renderTavernPoll(a){$("#tavern-poll-content").html('<div style="padding:5px;text-align:center;"><img src="/images/loading-128x15-transparent.gif" width="128" height="15" alt="\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430..." title="\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430..." /></div>');$.ajax({url:"/ajax_tavern/render-poll/"+a+"/",cache:!1,success:function(a){$("#tavern-poll-content").html(a)}})}
function selectRelGameTavern(a){$("#rel-game-input").val("");if(a==null)var c="";a.extra&&(c=a.extra[0]);$.inArray(c,relGames)==-1&&($.ajax({url:"/ajax_tavern/render-rel-game-block/"+c+"/",cache:!1,success:function(a){var b=$("#games-rel-list").html(),a='<div id="games-rel-item-'+c+'" class="tavern-rel-games-conteiner-toplev">'+a+"</div>"+b;$("#games-rel-list").html(a)}}),relGames.push(c),relGames.length>0&&$("#no-game-selected").fadeOut("fast"))}
function initTopicsViewScripts(){$(".tavern-topic-mark-readed").die();$(".tavern-topic-mark-readed").live("click",function(a){a.preventDefault();var a=$(this).attr("rel"),c=$(this).attr("relcl"),d=c+"-inactive";$(this).removeClass(c);$(this).addClass(d);$(this).removeClass("tavern-topic-mark-readed");$(this).css("cursor","default");$(this).attr("title","\u0412 \u0442\u0435\u043c\u0435 \u043d\u0435\u0442 \u043d\u0435\u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439");
$.ajax({url:"/ajax_tavern/mark-topic-read/"+a+"/",cache:!1,success:function(){}})});$(".tavern-button-markreaded").die();$(".tavern-button-markreaded").live("click",function(a){a.preventDefault();var c=$(this).attr("rel"),d=$(this).attr("relcode");$("#ui-dialog-div").html("\u0412\u044b \u0443\u0432\u0435\u0440\u0435\u043d\u044b, \u0447\u0442\u043e \u0445\u043e\u0442\u0438\u0442\u0435 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u0432\u0441\u0435 \u0442\u0435\u043c\u044b \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u043c\u0438?<br /><br /><strong>\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.</strong>");
$("#ui-dialog-div").attr("title","\u041e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u0432\u0441\u0435 \u0442\u0435\u043c\u044b \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u043c\u0438?");$("#ui-dialog-div").dialog({resizable:!1,height:155,modal:!0,buttons:{"\u0414\u0430":function(){$.ajax({url:"/ajax_tavern/mark-cat-read/"+c+"/",cache:!1,success:function(){window.location=d}});$(this).dialog("close")},"\u041d\u0435\u0442":function(){$(this).dialog("close")}}})})}
function initCategoriesViewScripts(){$(".tavern-button-markreaded").die();$(".tavern-button-markreaded").live("click",function(a){a.preventDefault();var c=$(this).attr("rel"),d=$(this).attr("backurl");$("#ui-dialog-div").html("\u0412\u044b \u0443\u0432\u0435\u0440\u0435\u043d\u044b, \u0447\u0442\u043e \u0445\u043e\u0442\u0438\u0442\u0435 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u0432\u0441\u0435 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u044d\u0442\u043e\u0433\u043e \u0444\u043e\u0440\u0443\u043c\u0430 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u043c\u0438?<br /><br /><strong>\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.</strong>");
$("#ui-dialog-div").attr("title","\u041e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u0432\u0441\u0435 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u043c\u0438?");$("#ui-dialog-div").dialog({resizable:!1,height:155,modal:!0,buttons:{"\u0414\u0430":function(){$.ajax({url:"/ajax_tavern/mark-forum-read/"+c+"/",cache:!1,success:function(){window.location=d}});$(this).dialog("close")},"\u041d\u0435\u0442":function(){$(this).dialog("close")}}})});
$(".tavern-mark-cat-readed").die();$(".tavern-mark-cat-readed").live("click",function(a){a.preventDefault();var a=$(this).attr("rel"),c=$(this).attr("relcl"),d=c+"-inactive";$(this).removeClass(c);$(this).addClass(d);$(this).removeClass("tavern-mark-cat-readed");$(this).css("cursor","default");$(this).attr("title","\u0412\u0441\u0435 \u0442\u0435\u043c\u044b \u0432 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u043f\u0440\u043e\u0447\u0442\u0435\u043d\u044b");$.ajax({url:"/ajax_tavern/mark-cat-read/"+
a+"/",cache:!1,success:function(){}})})}
function initMessagePostditForm(a){$("#replytext").markItUp(myBbcodeSettings);$("#replytext").autoResize({extraSpace:0,limit:450});$(".tavern-button-invitebard").unbind();$(".tavern-button-invitebard").click(function(c){c.preventDefault();$("#ui-dialog-div").html('<div class="tavern-bard-invite-pic"></div><div style="font-size:12px;padding-bottom:10px;">\u0411\u0430\u0440\u0434 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0434\u043d\u044f\u0442\u044c \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0441\u0442\u044c \u0442\u0435\u043c\u044b \u043d\u0430 150 \u0435\u0434\u0438\u043d\u0438\u0446.</div><div style="font-weight:bolder;">\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c: 100 \u0435\u0434\u0438\u043d\u0438\u0446 \u0441\u0438\u043b\u044b</div>');$("#ui-dialog-div").attr("title",
"\u041f\u0440\u0438\u0433\u043b\u0430\u0441\u0438\u0442\u044c \u0431\u0430\u0440\u0434\u0430");$("#ui-dialog-div").dialog({resizable:!1,width:280,modal:!0,buttons:{"\u041f\u0440\u0438\u0433\u043b\u0430\u0441\u0438\u0442\u044c \u0431\u0430\u0440\u0434\u0430":function(){forceMinus(100)&&$.ajax({url:"/ajax_force/call-bard/"+a+"/",cache:!1,success:function(a){$("#ui-message-div").html(a);$("#ui-message-div").attr("title","\u0423\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435");$("#ui-message-div").dialog({resizable:!1,
modal:!0,buttons:{"\u0417\u0430\u043a\u0440\u044b\u0442\u044c":function(){$(this).dialog("close")}}})}});$(this).dialog("close")},"\u041d\u0435\u0442, \u044f \u043f\u0435\u0440\u0435\u0434\u0443\u043c\u0430\u043b":function(){$(this).dialog("close")}}})});$("#tavern-topic-subscribe").unbind();$("#tavern-topic-subscribe").click(function(c){c.preventDefault();$("#ui-dialog-div").html("\u041a\u0430\u043a \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0438 \u043d\u043e\u0432\u044b\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0442\u0435\u043c\u0435?");
$("#ui-dialog-div").attr("title","\u0421\u043b\u0435\u0436\u0435\u043d\u0438\u0435 \u0437\u0430 \u0442\u0435\u043c\u043e\u0439");$("#ui-dialog-div").dialog({resizable:!1,height:120,width:400,modal:!0,buttons:{"\u041f\u043e Email":function(){$.ajax({url:"/ajax_tavern/topic-subscribe/"+a+"/",cache:!1,success:function(){$("#tavern-topic-subscribe").fadeOut("fast");$("#ui-message-div").html("\u0422\u0435\u043f\u0435\u0440\u044c \u0432\u044b \u0431\u0443\u0434\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u043d\u043e\u0432\u044b\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u0445 \u0432 \u0442\u0435\u043c\u0435 \u043f\u043e Email.");
$("#ui-message-div").attr("title","\u0421\u043b\u0435\u0436\u0435\u043d\u0438\u0435 \u0437\u0430 \u0442\u0435\u043c\u043e\u0439");$("#ui-message-div").dialog({resizable:!1,height:125,modal:!0,buttons:{"\u0417\u0430\u043a\u0440\u044b\u0442\u044c":function(){$(this).dialog("close")}}})}});$(this).dialog("close")},"\u0427\u0435\u0440\u0435\u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f":function(){$.ajax({url:"/ajax_tavern/topic-subscribe/"+
a+"/ls/",cache:!1,success:function(){$("#tavern-topic-subscribe").fadeOut("fast");$("#ui-message-div").html("\u0422\u0435\u043f\u0435\u0440\u044c \u0432\u044b \u0431\u0443\u0434\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u043d\u043e\u0432\u044b\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u0445 \u0432 \u0442\u0435\u043c\u0435 \u0447\u0435\u0440\u0435\u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f.");
$("#ui-message-div").attr("title","\u0421\u043b\u0435\u0436\u0435\u043d\u0438\u0435 \u0437\u0430 \u0442\u0435\u043c\u043e\u0439");$("#ui-message-div").dialog({resizable:!1,modal:!0,buttons:{"\u0417\u0430\u043a\u0440\u044b\u0442\u044c":function(){$(this).dialog("close")}}})}});$(this).dialog("close")},"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c":function(){$(this).dialog("close")}}})});$("#tavern-topic-unsubscribe").unbind();$("#tavern-topic-unsubscribe").click(function(c){c.preventDefault();
$("#ui-dialog-div").html("\u0412\u044b \u0443\u0432\u0435\u0440\u0435\u043d\u044b, \u0447\u0442\u043e \u0431\u043e\u043b\u0435\u0435 \u043d\u0435 \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u043d\u043e\u0432\u044b\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u0445 \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0442\u0435\u043c\u0435?");$("#ui-dialog-div").attr("title",
"\u0421\u043b\u0435\u0436\u0435\u043d\u0438\u0435 \u0437\u0430 \u0442\u0435\u043c\u043e\u0439");$("#ui-dialog-div").dialog({resizable:!1,height:120,width:400,modal:!0,buttons:{"\u0414\u0430, \u043e\u0442\u043f\u0438\u0448\u0438\u0442\u0435 \u043c\u0435\u043d\u044f \u043e\u0442 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439":function(){$.ajax({url:"/ajax_tavern/topic-unsubscribe/"+a+"/",cache:!1,success:function(){$("#tavern-topic-unsubscribe").fadeOut("fast");$("#ui-message-div").html("\u0412\u044b \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u043d\u043e\u0432\u044b\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u0445 \u0432 \u0442\u0435\u043c\u0435.");
$("#ui-message-div").attr("title","\u0421\u043b\u0435\u0436\u0435\u043d\u0438\u0435 \u0437\u0430 \u0442\u0435\u043c\u043e\u0439");$("#ui-message-div").dialog({resizable:!1,height:125,modal:!0,buttons:{"\u0417\u0430\u043a\u0440\u044b\u0442\u044c":function(){$(this).dialog("close")}}})}});$(this).dialog("close")},"\u041d\u0435\u0442, \u044f \u043f\u0435\u0440\u0435\u0434\u0443\u043c\u0430\u043b":function(){$(this).dialog("close")}}})});$(".tavern-button-quote").die();$(".tavern-button-quote").live("click",
function(a){a.preventDefault();a=$(this).attr("rel");$.ajax({url:"/ajax_tavern/get-quote-post-text/"+a+"/",cache:!1,success:function(a){slideToElement($("#post-reply-marker"));$("#replytext").focus();$.markItUp({replaceWith:a});$("#replytext").click()}})});$(".tavern-button-edit").die();$(".tavern-button-edit").live("click",function(a){a.preventDefault();a=$(this).attr("rel");$(".tavern-replyform-header").html("\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0441\u0442\u0430");
$(".tavern-replyform-body-buttons").css("display","none");$(".tavern-replyform-body-buttons-edit").css("display","block");$("#tavern-editpost-submit").attr("rel",a);slideToElement($("#post-reply-marker"));$.ajax({url:"/ajax_tavern/get-edit-post-text/"+a+"/",cache:!1,success:function(a){$("#replytext").val(a);$("#replytext").focus();$("#replytext").unbind("keypress");$("#replytext").keypress(function(a){a.ctrlKey&&(a.keyCode==13||a.keyCode==10)&&$("#tavern-editpost-submit").click()})}})});$(".tavern-button-delete").die();
$(".tavern-button-delete").live("click",function(a){a.preventDefault();var b=$(this).attr("rel");$("#ui-dialog-div").html("\u0412\u044b \u0442\u043e\u0447\u043d\u043e \u0443\u0432\u0435\u0440\u0435\u043d\u044b, \u0447\u0442\u043e \u0445\u043e\u0442\u0438\u0442\u0435 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435?<br /><br /><strong>\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.</strong>");
$("#ui-dialog-div").attr("title","\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u043e\u0441\u0442?");$("#ui-dialog-div").dialog({resizable:!1,height:155,modal:!0,buttons:{"\u0423\u0434\u0430\u043b\u0438\u0442\u044c":function(){$.ajax({url:"/ajax_tavern/delete-post/"+b+"/",cache:!1,success:function(a){a.substring(0,2)=="ok"&&$("#mess-"+b).fadeOut("slow")}});$(this).dialog("close")},"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c":function(){$(this).dialog("close")}}})});$("#tavern-editpost-cancel").die();
$("#tavern-editpost-cancel").button();$("#tavern-editpost-cancel").live("click",function(a){a.preventDefault();$(this).blur();$(".tavern-replyform-header").html("\u041e\u0442\u0432\u0435\u0442\u0438\u0442\u044c \u0432 \u0442\u0435\u043c\u0435");$(".tavern-replyform-body-buttons").css("display","block");$(".tavern-replyform-body-buttons-edit").css("display","none");$("#tavern-editpost-submit").attr("rel","");$("#replytext").val("");$("#replytext").unbind("keypress");$("#replytext").keypress(function(a){a.ctrlKey&&
(a.keyCode==13||a.keyCode==10)&&$("#tavern-reply-submit").click()})});$(".tavern-button-postreply").die();$(".tavern-button-postreply").live("click",function(a){a.preventDefault();slideToElement($("#post-reply-marker"));$("#replytext").focus()});var c=$(".tavern-messreply-preview-body").html();$("#tavern-close-messreply-preview img").live("click",function(){$("#preview-container").slideUp("slow",function(){$("#tavern-preview-body").html(c)})});$("#tavern-reply-preview,#tavern-reply-preview-1").unbind();
$("#tavern-reply-preview,#tavern-reply-preview-1").button();$("#tavern-reply-preview,#tavern-reply-preview-1").click(function(){$(this).button("disable");$("#tavern-preview-body").html(c);$("#preview-container").slideDown("slow");var a=$("#replytext").val(),a=parseStringForAjaxSend(a);$.ajax({type:"POST",url:"/ajax_tavern/replymess-preview/",data:"text="+a,cache:!1,success:function(a){$("#tavern-preview-body").html(a);initRemoteVideos()}});$(this).blur();$(this).button("enable")});$("#tavern-editpost-submit").unbind();
$("#tavern-editpost-submit").button();$("#tavern-editpost-submit").click(function(){$(this).button("disable");var a=$("#tavern-editpost-submit").attr("rel");$("#tavern-messreply-errors-container").slideUp("fast");var b=$("#replytext").val(),b=parseStringForAjaxSend(b);$.ajax({type:"POST",url:"/ajax_tavern/edit-post/",data:"replytext="+b+"&postid="+a,cache:!1,success:function(a){a.substring(0,2)=="ok"?(a=a.substring(2),window.location=a):($("#tavern-messreply-errors-container").html(a),$("#tavern-messreply-errors-container").slideDown("slow"));
$("#tavern-editpost-submit").button("enable")}});$(this).blur()});$("#tavern-reply-submit").unbind();$("#tavern-reply-submit").button();$("#tavern-reply-submit").click(function(){$(this).button("disable");$("#tavern-messreply-errors-container").slideUp("fast");var c=$("#replytext").val(),c=parseStringForAjaxSend(c);$.ajax({type:"POST",url:"/ajax_tavern/send-reply/",data:"replytext="+c+"&topicid="+a,cache:!1,success:function(a){a.substring(0,2)=="ok"?(a=a.substring(2),window.location=a):($("#tavern-messreply-errors-container").html(a),
$("#tavern-messreply-errors-container").slideDown("slow"));$("#tavern-reply-submit").button("enable")}});$(this).blur()});$("#replytext").unbind("keypress");$("#replytext").keypress(function(a){a.ctrlKey&&(a.keyCode==13||a.keyCode==10)&&$("#tavern-reply-submit").click()})}
function initGamesInfoTooltips(){$(".gshi").tooltip({delay:500,showURL:!1,bodyHandler:function(){return'<div style="margin:5px;text-align:center;"><img src="/images/loading-128x15-transparent.gif" alt="" /></div>'},gameId:!0,extraClass:"tooltipgameshortinfo"})}
function initMainPageRotator(){function a(a){if(a!=uda["mpr-cur"]&&a>=0&&a<=3){uda["mpr-cur"]=a;var b=(a*306).toString();$("#mpr-c").fadeIn(150,"swing",function(){$("#mpr-a").css("left","-"+b+"px");$("#mpr-c").fadeIn(50,function(){$("#mpr-c").fadeOut(150)});$("#mpr-b a").removeClass("sel");$("#mpr-b a[rel="+a+"]").addClass("sel")})}}function c(){if(uda["mpr-a"]){var d=uda["mpr-cur"]+1;d>3&&(d=0);a(d);setTimeout(c,uda["mpr-timeout"])}}uda["mpr-a"]=!0;uda["mpr-cur"]=0;uda["mpr-timeout"]=1E4;$("#mpr-b a").click(function(c){c.preventDefault();
a($(this).attr("rel"));uda["mpr-a"]=!1});setTimeout(c,uda["mpr-timeout"])}
function footerScrInit(){function a(){var a="";a+="rt="+(new Date).getTime()%1E7*100+Math.round(Math.random()*99);a+=h.referrer?"&r="+escape(h.referrer):"";return a}function c(){var a=h.getElementsByTagName("head")[0];if(a)return a;for(a=e.firstChild;a&&a.nodeName.toLowerCase()=="#text";)a=a.nextSibling;if(a&&a.nodeName.toLowerCase()!="#text")return a;a=h.createElement("head");e.appendChild(a);return a}function d(){var d=h.createElement("script");d.setAttribute("type","text/javascript");d.setAttribute("src",
"http://c.luxup.ru/t/lb"+b+".js?"+a());typeof d!="undefined"&&c().appendChild(d)}document.onclick=jsddm_close;$("#jsddm > li").bind("mouseover",jsddm_open);$("#jsddm > li").bind("mouseout",jsddm_timer);searchformInit();$("#hd-topline .b1").click(function(a){a.preventDefault();bookmark(this)});$(".getcolcard").click(function(a){a.preventDefault();var a=$(this).attr("rel"),b=$(this);$.ajax({url:"/ajax_lib/get-col-card/"+a+"/",cache:!1,success:function(a){a!=""&&($(b).fadeOut("slow"),alertModernHeight("\u041a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u043a\u0430\u0440\u0442\u0430",
a,340))}})});$("#changeavatars").unbind();$("#changeavatars").mouseover(function(){$(this).css("text-decoration","underline")});$("#changeavatars").mouseout(function(){$(this).css("text-decoration","none")});$("#changeavatars").click(function(){document.getElementById("avatarsset").innerHTML='<img src="/images/loading-128x15.gif" width="128" height="15" alt="\u041c\u0438\u043d\u0443\u0442\u043a\u0443, \u0438\u0434\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430..." style="padding:26px;" />';
$.ajax({url:"/ajax_load_new_avatars.php",cache:!1,success:function(a){$("#avatarsset").html(a)}})});$(".avchoise").die();$(".avchoise").live("mouseover",function(){$(this).css("border","1px solid #e67708")});$(".avchoise").live("mouseout",function(){$(this).css("border","1px solid #abc9d5")});$(".avchoise").live("click",function(){var a=$(this).attr("src");$("#currentguestavatar").attr({src:a});$("#guestavatarsrcid").val(a)});piroInit();$("a").each(function(){($(this).attr("rel")=="external"||$(this).attr("rel")==
"nofollow")&&$(this).attr("target","_blank")});$("#comment").markItUp(myBbcodeSettings);$(".toggle-ui-dialog-smiles").die();$(".toggle-ui-dialog-smiles").live("click",function(a){a.preventDefault();smilesdialogxpos==0&&smilesdialogypos==0?a="center":(a=[],a.push(smilesdialogxpos,smilesdialogypos));$("#ui-smiles-dialog-div").unbind();$("#ui-smiles-dialog-div").die();$("#ui-smiles-dialog-div").attr("title","\u0421\u043c\u0430\u0439\u043b\u0438\u043a\u0438");$("#ui-smiles-dialog-div").html("\u041f\u043e\u0434\u043e\u0436\u0434\u0438\u0442\u0435, \u0438\u0434\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0441\u043c\u0430\u0439\u043b\u0438\u043a\u043e\u0432...");
$("#ui-smiles-dialog-div").dialog({resizable:!0,height:smilesdialogheight,width:smilesdialogwidth,position:a,buttons:{"\u0417\u0430\u043a\u0440\u044b\u0442\u044c \u0441\u043c\u0430\u0439\u043b\u0438\u043a\u0438":function(){$(this).dialog("close")}}});$.ajax({type:"GET",url:"/ajax_render_smiles.php",cache:!1,success:function(a){$("#ui-smiles-dialog-div").html(a);$(".smile-ui-select-button").unbind();$(".smile-ui-select-button").click(function(a){a.preventDefault();a=$(this).attr("rel");$.markItUp({replaceWith:a})});
$("#smiles-dialog-type-toggle-cont").buttonset();$("input:radio[name=smiles-change-panel-style]").change(function(){var a=$("input:radio[name=smiles-change-panel-style]:checked").val();$.ajax({type:"POST",url:"/ajax_set_coockie/",data:"name=smilespanelstyle&data="+a,cache:!1,success:function(){$("#ui-smiles-dialog-div").dialog("close");$(".toggle-ui-dialog-smiles").click()}})})}});$("#ui-smiles-dialog-div").bind("dialogresizestop",function(){var a=$("#ui-smiles-dialog-div").dialog("option","width"),
b=$("#ui-smiles-dialog-div").dialog("option","height");smilesdialogwidth=a;smilesdialogheight=b;$.ajax({type:"POST",url:"/ajax_set_coockie/",data:"name=smilesdialogwidth&data="+a,cache:!1,success:function(){}});$.ajax({type:"POST",url:"/ajax_set_coockie/",data:"name=smilesdialogheight&data="+b,cache:!1,success:function(){}})});$("#ui-smiles-dialog-div").bind("dialogdragstop",function(){var a=$("#ui-smiles-dialog-div").dialog("option","position");smilesdialogxpos=a[0];smilesdialogypos=a[1];$.ajax({type:"POST",
url:"/ajax_set_coockie/",data:"name=smilesdialogxpos&data="+a[0],cache:!1,success:function(){}});$.ajax({type:"POST",url:"/ajax_set_coockie/",data:"name=smilesdialogypos&data="+a[1],cache:!1,success:function(){}})})});$(".allpagesdivpics").live("click",function(){window.location=$(this).parent().find("a").eq(0).attr("href")});$(".toggle-spoiler").live("click",function(){autoRefStarted=0;var a=$(this),b=$(a).parent().find("div").eq(0),c=$(a).attr("rel"),d="- \u0417\u0430\u043a\u0440\u044b\u0442\u044c \u0441\u043f\u043e\u0439\u043b\u0435\u0440",
e="1";c=="1"&&(d="- \u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0441\u043f\u043e\u0439\u043b\u0435\u0440",e="0");$(a).attr("rel",e);$(a).html(d);c=="0"?($(b).slideDown("fast"),resizePicsInSpoilers($(this).parent())):$(b).slideUp("fast")});$(".ui-link").live("mousedown",function(){var a="/profile/"+$(this).attr("rel")+"/";$(this).attr("href",a)});$(".ui-link").live("click",function(a){a.preventDefault();var b=$(this).attr("rel");$("#ui-userinfo-dialog-div").html('<div id="ui-userinfo-dialog-div-cont"><img src="/images/loading-100x100-transparent.gif" width="100" height="100" alt="\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430..." style="margin:70px 185px;" /></div>');
$("#ui-userinfo-dialog-div").attr("title",'<div id="ui-userinfo-dialog-div-title" style="color:#fff;">\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435...</div>');$("#ui-userinfo-dialog-div").dialog({resizable:!1,modal:!0,width:510,height:420,buttons:{"\u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435":function(){window.location=
"/ls-r/"+b+"/"},"\u0421\u0442\u0435\u043d\u0430":function(){window.location="/profile/"+b+"/wall/"},"\u041f\u0440\u043e\u0444\u0438\u043b\u044c":function(){window.location="/profile/"+b+"/"},"\u0417\u0430\u043a\u0440\u044b\u0442\u044c":function(){$(this).dialog("close")}}});$.ajax({url:"/ajax_lib/user-shortinfo-load/"+b+"/",cache:!1,success:function(a){var b=a.split("{end-of-page-content additional-data-block}"),a=b[0],b=b[1].split("|");$("#ui-userinfo-dialog-div-title").html(b[0]);$("#ui-userinfo-dialog-div").attr("title",
b[0]);$("#ui-userinfo-dialog-div-cont").html(a)}})});$(".active-change-video-res").die();$(".active-change-video-res").live("click",function(){$(this).parent().find(".inactive-change-video-res").addClass("active-change-video-res").removeClass("inactive-change-video-res");$(this).addClass("inactive-change-video-res").removeClass("active-change-video-res");var a=$(this).attr("rel"),b=$(this).attr("relqual"),c=$(this).attr("cont");jwplayer(c).load(a);jwplayer(c).play();$.ajax({type:"POST",url:"/ajax_set_coockie/",
data:"name=videoquality&data="+b,cache:!1,success:function(){}})});initGamesInfoTooltips();$(".fgshi").tooltip({delay:500,showURL:!1,bodyHandler:function(){return'<div style="margin:5px;text-align:center;"><img src="/images/loading-128x15-transparent.gif" alt="" /></div>'},flashgameId:!0,extraClass:"tooltipflgameshortinfo"});$("#nlp-cur").html($("#nlp-1").html());$("#nlp-pl a").click(function(a){a.preventDefault();rcNewsPageCh($(this).attr("rel"))});initRemoteVideos();$(window).scroll(function(){$(window).scrollTop()>
500&&$("#return-to-top-button").fadeIn(400);$(window).scrollTop()<=500&&$("#return-to-top-button").fadeOut(400)});$("#return-to-top-button").click(function(a){a.preventDefault();$(window).scrollTop(0)});$("#loginsiteform").submit(function(a){a.preventDefault();giLogin()});$("#regb").click(function(){window.location="/user/register/"});countersInit();var b=109695,f,h=document,e=h.documentElement;f=!0;d();ulg==0&&(new evercookie).get("HgbcTgdfslsadcjsdhB",function(a){a!=""&&a!="undefined"&&(ajaxSetCoockie("HgbcTgdfslsadcjsdhB",
a),ulg=a)})}function headerScrInit(){}function piroInit(){$(".piro_overlay").remove();$(".pirobox_content").remove();$("#imgCache").remove();$().piroBox({my_speed:400,bg_alpha:0.3,slideShow:!0,slideSpeed:4,close_all:".piro_close,.piro_overlay"})}function getBrowserInfo(){var a,c=void 0;if(window.opera)a="Opera";else if(document.all){a="IE";var c=navigator.appVersion,d=c.indexOf("MSIE")+5,c=c.substring(d,d+1)}else navigator.appName&&(a="Netscape");return{type:a,version:c}}
function bookmark(a){var c=window.document.location,d=window.document.title,b=getBrowserInfo();if(b.type=="IE"&&7>b.version&&b.version>=4)window.external.AddFavorite(c,d);else if(b.type=="Opera")return a.href=c,a.rel="sidebar",a.title=c+","+d,!0;else b.type=="Netscape"?window.sidebar.addPanel(d,c,""):alert("\u041d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u0430\u0448 \u0431\u0440\u0430\u0443\u0437\u0435\u0440");return!1}
function jsddm_open(){jsddm_canceltimer();jsddm_close();ddmenuitem=$(this).find("ul").css("visibility","visible")}function jsddm_close(){ddmenuitem&&ddmenuitem.css("visibility","hidden")}function jsddm_timer(){closetimer=window.setTimeout(jsddm_close,timeout)}function jsddm_canceltimer(){closetimer&&(window.clearTimeout(closetimer),closetimer=null)}function closeChat(){$.ajax({url:"/ajax_lib/chat-act-ch/0/",cache:!1});$("#chat-fl-cont").hide();chatUpd=!1}
function chatAutoUpd(){chatUpd&&(chatUpdTimer+=1E3,chatUpdTimer>=3E3&&(renderChatMessages(),chatUpdTimer=0),setTimeout("chatAutoUpd()",1E3))}
function renderChatMessages(){chatUpdating||(chatUpdating=!0,$.ajax({url:"/ajax_lib/render-chat/"+chatLastRender+"/",cache:!1,success:function(a){var a=a.split("{end-of-page-content additional-data-block}"),c=a[0];chatLastRender==0&&$("#chat-m-cont").html("");c!=""&&(chatLastRender==0?$("#chat-m-cont").html(c):($(c).appendTo("#chat-m-cont"),chatSound&&playUserSound("http://gamer-info.com/sounds/chat-new-mess.mp3")),chatLastRender=a[1],chatAutoScroll&&$("#chat-m-cont").scrollTop(1E6));chatUpdating=
!1}}))}function chatScrollHandler(){var a=$("#chat-m-cont").scrollTop();$("#chat-m-cont").scrollTop(1E6);var c=$("#chat-m-cont").scrollTop();$("#chat-m-cont").scrollTop(a);chatAutoScroll=a<c-50?!1:!0}
function initChat(a,c,d,b){if($("#chat-fl-cont").length)$("#chat-fl-cont").show(),chatUpd=!0,setTimeout("chatAutoUpd()",1E3);else{var f=parseInt(c)-45-99,h=parseInt(a)-18;$('<div id="chat-fl-cont" style="top:'+d+"px;left:"+b+'px;"><a href="#" title="\u0417\u0430\u043a\u0440\u044b\u0442\u044c" class="clbut"></a><div style="clear:both;"></div><div class="hd"><span></span>\u041c\u0438\u043d\u0438-\u0447\u0430\u0442</div><div id="chat-m-cont"><img src="/images/loading-128x15-transparent.gif" style="display:block;width:128px;height:15px;margin:40px auto;" title="\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430..." alt="" /></div><div id="chat-controls"><div><textarea id="chat-main-input">\u0412\u0430\u0448\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435...</textarea></div><div style="text-align:center;" id="chat-buttons-panel"><button id="chat-send-button">\u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c</button> <button id="chat-mute-button" title="\u0412\u043a\u043b/\u0432\u044b\u043a\u043b \u0437\u0432\u0443\u043a \u0447\u0430\u0442\u0430">\u0417\u0432\u0443\u043a</button> <button id="chat-smiles-button" class="toggle-ui-dialog-smiles">:)</button></div></div></div>').appendTo("body");$("#chat-fl-cont").width(a).height(c);
$("#chat-m-cont").height(f);$("#chat-main-input").width(h);$("#chat-send-button, #chat-mute-button, #chat-smiles-button").button();$("#chat-buttons-panel button").css("height","29px");$("#chat-buttons-panel button span").css("margin","0px").css("padding","0px 5px");$("#chat-fl-cont").resizable({maxHeight:600,maxWidth:800,minHeight:250,minWidth:190,handles:"s, e, se"});$("#chat-fl-cont").draggable({handle:".hd",containment:"window"});$("#chat-fl-cont").bind("dragstop",function(){chatxpos=parseInt($("#chat-fl-cont").css("top"));
chatypos=parseInt($("#chat-fl-cont").css("left"));$.ajax({url:"/ajax_lib/chat-pos-ch/"+chatxpos+"x"+chatypos+"/",cache:!1})});$("#chat-fl-cont").bind("resize",function(){var a=$(this).height()-45-99,b=$(this).width()-18;$("#chat-m-cont").height(a);$("#chat-main-input").width(b)});$("#chat-fl-cont").bind("resizestop",function(){var a=$(this).width(),b=$(this).height(),c=$(this).height()-45-99,d=$(this).width()-18;$("#chat-m-cont").height(c);$("#chat-main-input").width(d);c=parseInt($("#chat-fl-cont").css("top"))-
parseInt($(window).scrollTop());$("#chat-fl-cont").css("top",c+"px");$("#chat-fl-cont").css("position","fixed");$.ajax({url:"/ajax_lib/chat-size-ch/"+a+"x"+b+"/",cache:!1})});$("#chat-m-cont").scroll(function(){clearTimeout(chatScrollTimer);chatScrollTimer=setTimeout(chatScrollHandler,300)});renderChatMessages();$("#chat-main-input").markItUp("chat");chatUpd=!0;setTimeout("chatAutoUpd()",1E3);$("#chat-send-button").click(function(){var a=$("#chat-main-input").val();$("#chat-main-input").val("").html("");
$("#chat-main-input").focus();a!=""&&(a=parseStringForAjaxSend(a),$.ajax({type:"POST",url:"/ajax_lib/chat-send-mess/",data:"mess="+a,cache:!1,success:function(a){a=="ok"?renderChatMessages():alertModern("\u041e\u0448\u0438\u0431\u043a\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f",a)}}))});$("#chat-mute-button").click(function(){var a="",b=0;chatSound?(chatSound=!1,b=0,a="\u0417\u0432\u0443\u043a\u0438 \u0447\u0430\u0442\u0430 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u044b."):
(chatSound=!0,b=1,a="\u0417\u0432\u0443\u043a\u0438 \u0447\u0430\u0442\u0430 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u044b.");$.ajax({url:"/ajax_lib/chat-sound/"+b+"/",cache:!1,success:function(){alertModern("\u0421\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435",a)}})});$("#chat-m-cont .cun").live("click",function(a){a.preventDefault();$("#chat-main-input").focus();$("#chat-main-input").val("[b]"+$(this).html()+",[/b] "+$("#chat-main-input").val())});
$(".chat-del-mess").live("click",function(a){a.preventDefault();var a=$(this).attr("rel"),b=$(this).parent();$.ajax({url:"/ajax_lib/chat-del-mess/"+a+"/",cache:!1,success:function(a){a=="ok"&&$(b).fadeOut()}})});$("#chat-main-input").focus(function(){$(this).val()=="\u0412\u0430\u0448\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435..."&&$(this).val("");$(this).css("color","#fff")});$("#chat-main-input").blur(function(){$(this).val()==""&&($(this).val("\u0412\u0430\u0448\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435..."),
$(this).css("color","#5b849b"))});$("#chat-main-input").keydown(function(a){if(a.keyCode==13||a.keyCode==10)a.preventDefault(),$("#chat-send-button").click()});$("#chat-main-input").keyup(function(a){a.ctrlKey&&(a.keyCode==13||a.keyCode==10)&&$(this).val($(this).val()+"\r\n")});$("#chat-fl-cont .clbut").click(function(a){a.preventDefault();closeChat()})}}
function piMain(){uda.loadedData=!1;$("#mp-news-pl a").click(function(a){function c(a){var c=parseInt($("#mp-news-list-cont").css("top")),d=-(parseInt(a)-1)*588;c!=d&&($("#mp-news-list-cont").animate({top:[d,"swing"]},800),$("#mp-news-pl a").removeClass("active"),$("#mp-news-pl a[rel="+a+"]").addClass("active"))}a.preventDefault();var d=$(this).attr("rel");uda.loadedData==!1?$.ajax({url:"/ajax_lib/main-news-render/",cache:!1,success:function(a){uda.loadedData=!0;$("#mp-news-list-cont").html(a);c(d)}}):
c(d)})};
