/*
 * jQuery JavaScript Library v1.4.1
 * http://jquery.com/
 *
 * Copyright 2010, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2010, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Mon Jan 25 19:43:33 2010 -0500
 */
(function(I,R){function bd(){if(!ai.isReady){try{U.documentElement.doScroll("left")}catch(c){setTimeout(bd,1);return}ai.ready()}}function bh(r,c){c.src?ai.ajax({url:c.src,async:false,dataType:"script"}):ai.globalEval(c.text||c.textContent||c.innerHTML||"");c.parentNode&&c.parentNode.removeChild(c)}function aq(r,c,J,F,G,z){var v=r.length;if(typeof c==="object"){for(var K in c){aq(r,K,c[K],F,G,J)}return r}if(J!==R){F=!z&&F&&ai.isFunction(J);for(K=0;K<v;K++){G(r[K],c,F?J.call(r[K],K,G(r[K],c)):J,z)}return r}return v?G(r[0],c):null}function aG(){return(new Date).getTime()}function ap(){return false}function an(){return true}function aZ(r,c,v){v[0].type=r;return ai.event.handle.apply(c,v)}function aL(O){var L,K=[],G=[],J=arguments,F,z,r,c,v,P,N=ai.extend({},ai.data(this,"events").live);if(!(O.button&&O.type==="click")){for(c in N){z=N[c];if(z.live===O.type||z.altLive&&ai.inArray(O.type,z.altLive)>-1){F=z.data;F.beforeFilter&&F.beforeFilter[O.type]&&!F.beforeFilter[O.type](O)||G.push(z.selector)}else{delete N[c]}}F=ai(O.target).closest(G,O.currentTarget);v=0;for(P=F.length;v<P;v++){for(c in N){z=N[c];r=F[v].elem;G=null;if(F[v].selector===z.selector){if(z.live==="mouseenter"||z.live==="mouseleave"){G=ai(O.relatedTarget).closest(z.selector)[0]}if(!G||G!==r){K.push({elem:r,fn:z})}}}}v=0;for(P=K.length;v<P;v++){F=K[v];O.currentTarget=F.elem;O.data=F.fn.data;if(F.fn.apply(F.elem,J)===false){L=false;break}}return L}}function ah(r,c){return"live."+(r?r+".":"")+c.replace(/\./g,"`").replace(/ /g,"&")}function B(c){return !c||!c.parentNode||c.parentNode.nodeType===11}function l(r,c){var v=0;c.each(function(){if(this.nodeName===(r[v]&&r[v].nodeName)){var G=ai.data(r[v++]),J=ai.data(this,G);if(G=G&&G.events){delete J.handle;J.events={};for(var F in G){for(var z in G[F]){ai.event.add(this,F,G[F][z],G[F][z].data)}}}}})}function bg(r,c,G){var z,F,v;if(r.length===1&&typeof r[0]==="string"&&r[0].length<512&&r[0].indexOf("<option")<0&&(ai.support.checkClone||!a3.test(r[0]))){F=true;if(v=ai.fragments[r[0]]){if(v!==1){z=v}}}if(!z){c=c&&c[0]?c[0].ownerDocument||c[0]:U;z=c.createDocumentFragment();ai.clean(r,c,z,G)}if(F){ai.fragments[r[0]]=v?z:1}return{fragment:z,cacheable:F}}function aD(r,c){var v={};ai.each(aP.concat.apply([],aP.slice(0,c)),function(){v[this]=r});return v}function al(c){return"scrollTo" in c&&c.document?c:c.nodeType===9?c.defaultView||c.parentWindow:false}var ai=function(r,c){return new ai.fn.init(r,c)},a4=I.jQuery,aQ=I.$,U=I.document,av,am=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,H=/^.[^:#\[\.,]*$/,q=/\S/,d=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,a6=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,aA=navigator.userAgent,E=false,ay=[],aC,a1=Object.prototype.toString,aU=Object.prototype.hasOwnProperty,az=Array.prototype.push,aw=Array.prototype.slice,o=Array.prototype.indexOf;ai.fn=ai.prototype={init:function(r,c){var z,v;if(!r){return this}if(r.nodeType){this.context=this[0]=r;this.length=1;return this}if(typeof r==="string"){if((z=am.exec(r))&&(z[1]||!c)){if(z[1]){v=c?c.ownerDocument||c:U;if(r=a6.exec(r)){if(ai.isPlainObject(c)){r=[U.createElement(r[1])];ai.fn.attr.call(r,c,true)}else{r=[v.createElement(r[1])]}}else{r=bg([z[1]],[v]);r=(r.cacheable?r.fragment.cloneNode(true):r.fragment).childNodes}}else{if(c=U.getElementById(z[2])){if(c.id!==z[2]){return av.find(r)}this.length=1;this[0]=c}this.context=U;this.selector=r;return this}}else{if(!c&&/^\w+$/.test(r)){this.selector=r;this.context=U;r=U.getElementsByTagName(r)}else{return !c||c.jquery?(c||av).find(r):ai(c).find(r)}}}else{if(ai.isFunction(r)){return av.ready(r)}}if(r.selector!==R){this.selector=r.selector;this.context=r.context}return ai.isArray(r)?this.setArray(r):ai.makeArray(r,this)},selector:"",jquery:"1.4.1",length:0,size:function(){return this.length},toArray:function(){return aw.call(this,0)},get:function(c){return c==null?this.toArray():c<0?this.slice(c)[0]:this[c]},pushStack:function(r,c,v){r=ai(r||null);r.prevObject=this;r.context=this.context;if(c==="find"){r.selector=this.selector+(this.selector?" ":"")+v}else{if(c){r.selector=this.selector+"."+c+"("+v+")"}}return r},setArray:function(c){this.length=0;az.apply(this,c);return this},each:function(r,c){return ai.each(this,r,c)},ready:function(c){ai.bindReady();if(ai.isReady){c.call(U,ai)}else{ay&&ay.push(c)}return this},eq:function(c){return c===-1?this.slice(c):this.slice(c,+c+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(aw.apply(this,arguments),"slice",aw.call(arguments).join(","))},map:function(c){return this.pushStack(ai.map(this,function(r,v){return c.call(r,v,r)}))},end:function(){return this.prevObject||ai(null)},push:az,sort:[].sort,splice:[].splice};ai.fn.init.prototype=ai.fn;ai.extend=ai.fn.extend=function(){var r=arguments[0]||{},c=1,J=arguments.length,F=false,G,z,v,K;if(typeof r==="boolean"){F=r;r=arguments[1]||{};c=2}if(typeof r!=="object"&&!ai.isFunction(r)){r={}}if(J===c){r=this;--c}for(;c<J;c++){if((G=arguments[c])!=null){for(z in G){v=r[z];K=G[z];if(r!==K){if(F&&K&&(ai.isPlainObject(K)||ai.isArray(K))){v=v&&(ai.isPlainObject(v)||ai.isArray(v))?v:ai.isArray(K)?[]:{};r[z]=ai.extend(F,v,K)}else{if(K!==R){r[z]=K}}}}}}return r};ai.extend({noConflict:function(c){I.$=aQ;if(c){I.jQuery=a4}return ai},isReady:false,ready:function(){if(!ai.isReady){if(!U.body){return setTimeout(ai.ready,13)}ai.isReady=true;if(ay){for(var r,c=0;r=ay[c++];){r.call(U,ai)}ay=null}ai.fn.triggerHandler&&ai(U).triggerHandler("ready")}},bindReady:function(){if(!E){E=true;if(U.readyState==="complete"){return ai.ready()}if(U.addEventListener){U.addEventListener("DOMContentLoaded",aC,false);I.addEventListener("load",ai.ready,false)}else{if(U.attachEvent){U.attachEvent("onreadystatechange",aC);I.attachEvent("onload",ai.ready);var r=false;try{r=I.frameElement==null}catch(c){}U.documentElement.doScroll&&r&&bd()}}}},isFunction:function(c){return a1.call(c)==="[object Function]"},isArray:function(c){return a1.call(c)==="[object Array]"},isPlainObject:function(r){if(!r||a1.call(r)!=="[object Object]"||r.nodeType||r.setInterval){return false}if(r.constructor&&!aU.call(r,"constructor")&&!aU.call(r.constructor.prototype,"isPrototypeOf")){return false}var c;for(c in r){}return c===R||aU.call(r,c)},isEmptyObject:function(r){for(var c in r){return false}return true},error:function(c){throw c},parseJSON:function(c){if(typeof c!=="string"||!c){return null}if(/^[\],:{}\s]*$/.test(c.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){return I.JSON&&I.JSON.parse?I.JSON.parse(c):(new Function("return "+c))()}else{ai.error("Invalid JSON: "+c)}},noop:function(){},globalEval:function(r){if(r&&q.test(r)){var c=U.getElementsByTagName("head")[0]||U.documentElement,v=U.createElement("script");v.type="text/javascript";if(ai.support.scriptEval){v.appendChild(U.createTextNode(r))}else{v.text=r}c.insertBefore(v,c.firstChild);c.removeChild(v)}},nodeName:function(r,c){return r.nodeName&&r.nodeName.toUpperCase()===c.toUpperCase()},each:function(r,c,J){var F,G=0,z=r.length,v=z===R||ai.isFunction(r);if(J){if(v){for(F in r){if(c.apply(r[F],J)===false){break}}}else{for(;G<z;){if(c.apply(r[G++],J)===false){break}}}}else{if(v){for(F in r){if(c.call(r[F],F,r[F])===false){break}}}else{for(J=r[0];G<z&&c.call(J,G,J)!==false;J=r[++G]){}}}return r},trim:function(c){return(c||"").replace(d,"")},makeArray:function(r,c){c=c||[];if(r!=null){r.length==null||typeof r==="string"||ai.isFunction(r)||typeof r!=="function"&&r.setInterval?az.call(c,r):ai.merge(c,r)}return c},inArray:function(r,c){if(c.indexOf){return c.indexOf(r)}for(var z=0,v=c.length;z<v;z++){if(c[z]===r){return z}}return -1},merge:function(r,c){var F=r.length,v=0;if(typeof c.length==="number"){for(var z=c.length;v<z;v++){r[F++]=c[v]}}else{for(;c[v]!==R;){r[F++]=c[v++]}}r.length=F;return r},grep:function(r,c,G){for(var z=[],F=0,v=r.length;F<v;F++){!G!==!c(r[F],F)&&z.push(r[F])}return z},map:function(r,c,J){for(var F=[],G,z=0,v=r.length;z<v;z++){G=c(r[z],z,J);if(G!=null){F[F.length]=G}}return F.concat.apply([],F)},guid:1,proxy:function(r,c,v){if(arguments.length===2){if(typeof c==="string"){v=r;r=v[c];c=R}else{if(c&&!ai.isFunction(c)){v=c;c=R}}}if(!c&&r){c=function(){return r.apply(v||this,arguments)}}if(r){c.guid=r.guid=r.guid||c.guid||ai.guid++}return c},uaMatch:function(c){c=c.toLowerCase();c=/(webkit)[ \/]([\w.]+)/.exec(c)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(c)||/(msie) ([\w.]+)/.exec(c)||!/compatible/.test(c)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(c)||[];return{browser:c[1]||"",version:c[2]||"0"}},browser:{}});aA=ai.uaMatch(aA);if(aA.browser){ai.browser[aA.browser]=true;ai.browser.version=aA.version}if(ai.browser.webkit){ai.browser.safari=true}if(o){ai.inArray=function(r,c){return o.call(c,r)}}av=ai(U);if(U.addEventListener){aC=function(){U.removeEventListener("DOMContentLoaded",aC,false);ai.ready()}}else{if(U.attachEvent){aC=function(){if(U.readyState==="complete"){U.detachEvent("onreadystatechange",aC);ai.ready()}}}}(function(){ai.support={};var r=U.documentElement,c=U.createElement("script"),J=U.createElement("div"),F="script"+aG();J.style.display="none";J.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var G=J.getElementsByTagName("*"),z=J.getElementsByTagName("a")[0];if(!(!G||!G.length||!z)){ai.support={leadingWhitespace:J.firstChild.nodeType===3,tbody:!J.getElementsByTagName("tbody").length,htmlSerialize:!!J.getElementsByTagName("link").length,style:/red/.test(z.getAttribute("style")),hrefNormalized:z.getAttribute("href")==="/a",opacity:/^0.55$/.test(z.style.opacity),cssFloat:!!z.style.cssFloat,checkOn:J.getElementsByTagName("input")[0].value==="on",optSelected:U.createElement("select").appendChild(U.createElement("option")).selected,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};c.type="text/javascript";try{c.appendChild(U.createTextNode("window."+F+"=1;"))}catch(v){}r.insertBefore(c,r.firstChild);if(I[F]){ai.support.scriptEval=true;delete I[F]}r.removeChild(c);if(J.attachEvent&&J.fireEvent){J.attachEvent("onclick",function K(){ai.support.noCloneEvent=false;J.detachEvent("onclick",K)});J.cloneNode(true).fireEvent("onclick")}J=U.createElement("div");J.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";r=U.createDocumentFragment();r.appendChild(J.firstChild);ai.support.checkClone=r.cloneNode(true).cloneNode(true).lastChild.checked;ai(function(){var L=U.createElement("div");L.style.width=L.style.paddingLeft="1px";U.body.appendChild(L);ai.boxModel=ai.support.boxModel=L.offsetWidth===2;U.body.removeChild(L).style.display="none"});r=function(O){var N=U.createElement("div");O="on"+O;var L=O in N;if(!L){N.setAttribute(O,"return;");L=typeof N[O]==="function"}return L};ai.support.submitBubbles=r("submit");ai.support.changeBubbles=r("change");r=c=J=G=z=null}})();ai.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var aI="jQuery"+aG(),aS=0,b={},ao={};ai.extend({cache:{},expando:aI,noData:{embed:true,object:true,applet:true},data:function(r,c,F){if(!(r.nodeName&&ai.noData[r.nodeName.toLowerCase()])){r=r==I?b:r;var v=r[aI],z=ai.cache;if(!c&&!v){return null}v||(v=++aS);if(typeof c==="object"){r[aI]=v;z=z[v]=ai.extend(true,{},c)}else{z=z[v]?z[v]:typeof F==="undefined"?ao:(z[v]={})}if(F!==R){r[aI]=v;z[c]=F}return typeof c==="string"?z[c]:z}},removeData:function(r,c){if(!(r.nodeName&&ai.noData[r.nodeName.toLowerCase()])){r=r==I?b:r;var G=r[aI],z=ai.cache,F=z[G];if(c){if(F){delete F[c];ai.isEmptyObject(F)&&ai.removeData(r)}}else{try{delete r[aI]}catch(v){r.removeAttribute&&r.removeAttribute(aI)}delete z[G]}}}});ai.fn.extend({data:function(r,c){if(typeof r==="undefined"&&this.length){return ai.data(this[0])}else{if(typeof r==="object"){return this.each(function(){ai.data(this,r)})}}var z=r.split(".");z[1]=z[1]?"."+z[1]:"";if(c===R){var v=this.triggerHandler("getData"+z[1]+"!",[z[0]]);if(v===R&&this.length){v=ai.data(this[0],r)}return v===R&&z[1]?this.data(z[0]):v}else{return this.trigger("setData"+z[1]+"!",[z[0],c]).each(function(){ai.data(this,r,c)})}},removeData:function(c){return this.each(function(){ai.removeData(this,c)})}});ai.extend({queue:function(r,c,z){if(r){c=(c||"fx")+"queue";var v=ai.data(r,c);if(!z){return v||[]}if(!v||ai.isArray(z)){v=ai.data(r,c,ai.makeArray(z))}else{v.push(z)}return v}},dequeue:function(r,c){c=c||"fx";var z=ai.queue(r,c),v=z.shift();if(v==="inprogress"){v=z.shift()}if(v){c==="fx"&&z.unshift("inprogress");v.call(r,function(){ai.dequeue(r,c)})}}});ai.fn.extend({queue:function(r,c){if(typeof r!=="string"){c=r;r="fx"}if(c===R){return ai.queue(this[0],r)}return this.each(function(){var v=ai.queue(this,r,c);r==="fx"&&v[0]!=="inprogress"&&ai.dequeue(this,r)})},dequeue:function(c){return this.each(function(){ai.dequeue(this,c)})},delay:function(r,c){r=ai.fx?ai.fx.speeds[r]||r:r;c=c||"fx";return this.queue(c,function(){var v=this;setTimeout(function(){ai.dequeue(v,c)},r)})},clearQueue:function(c){return this.queue(c||"fx",[])}});var a5=/[\n\t]/g,ad=/\s+/,M=/\r/g,s=/href|src|style/,e=/(button|input)/i,a7=/(button|input|object|select|textarea)/i,aN=/^(a|area)$/i,aR=/radio|checkbox/;ai.fn.extend({attr:function(r,c){return aq(this,r,c,true,ai.attr)},removeAttr:function(c){return this.each(function(){ai.attr(this,c,"");this.nodeType===1&&this.removeAttribute(c)})},addClass:function(r){if(ai.isFunction(r)){return this.each(function(N){var L=ai(this);L.addClass(r.call(this,N,L.attr("class")))})}if(r&&typeof r==="string"){for(var c=(r||"").split(ad),J=0,F=this.length;J<F;J++){var G=this[J];if(G.nodeType===1){if(G.className){for(var z=" "+G.className+" ",v=0,K=c.length;v<K;v++){if(z.indexOf(" "+c[v]+" ")<0){G.className+=" "+c[v]}}}else{G.className=r}}}}return this},removeClass:function(r){if(ai.isFunction(r)){return this.each(function(N){var L=ai(this);L.removeClass(r.call(this,N,L.attr("class")))})}if(r&&typeof r==="string"||r===R){for(var c=(r||"").split(ad),J=0,F=this.length;J<F;J++){var G=this[J];if(G.nodeType===1&&G.className){if(r){for(var z=(" "+G.className+" ").replace(a5," "),v=0,K=c.length;v<K;v++){z=z.replace(" "+c[v]+" "," ")}G.className=z.substring(1,z.length-1)}else{G.className=""}}}}return this},toggleClass:function(r,c){var z=typeof r,v=typeof c==="boolean";if(ai.isFunction(r)){return this.each(function(G){var F=ai(this);F.toggleClass(r.call(this,G,F.attr("class"),c),c)})}return this.each(function(){if(z==="string"){for(var J,G=0,F=ai(this),L=c,K=r.split(ad);J=K[G++];){L=v?L:!F.hasClass(J);F[L?"addClass":"removeClass"](J)}}else{if(z==="undefined"||z==="boolean"){this.className&&ai.data(this,"__className__",this.className);this.className=this.className||r===false?"":ai.data(this,"__className__")||""}}})},hasClass:function(r){r=" "+r+" ";for(var c=0,v=this.length;c<v;c++){if((" "+this[c].className+" ").replace(a5," ").indexOf(r)>-1){return true}}return false},val:function(r){if(r===R){var c=this[0];if(c){if(ai.nodeName(c,"option")){return(c.attributes.value||{}).specified?c.value:c.text}if(ai.nodeName(c,"select")){var J=c.selectedIndex,F=[],G=c.options;c=c.type==="select-one";if(J<0){return null}var z=c?J:0;for(J=c?J+1:G.length;z<J;z++){var v=G[z];if(v.selected){r=ai(v).val();if(c){return r}F.push(r)}}return F}if(aR.test(c.type)&&!ai.support.checkOn){return c.getAttribute("value")===null?"on":c.value}return(c.value||"").replace(M,"")}return R}var K=ai.isFunction(r);return this.each(function(P){var N=ai(this),O=r;if(this.nodeType===1){if(K){O=r.call(this,P,N.val())}if(typeof O==="number"){O+=""}if(ai.isArray(O)&&aR.test(this.type)){this.checked=ai.inArray(N.val(),O)>=0}else{if(ai.nodeName(this,"select")){var L=ai.makeArray(O);ai("option",this).each(function(){this.selected=ai.inArray(ai(this).val(),L)>=0});if(!L.length){this.selectedIndex=-1}}else{this.value=O}}}})}});ai.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(r,c,G,z){if(!r||r.nodeType===3||r.nodeType===8){return R}if(z&&c in ai.attrFn){return ai(r)[c](G)}z=r.nodeType!==1||!ai.isXMLDoc(r);var F=G!==R;c=z&&ai.props[c]||c;if(r.nodeType===1){var v=s.test(c);if(c in r&&z&&!v){if(F){c==="type"&&e.test(r.nodeName)&&r.parentNode&&ai.error("type property can't be changed");r[c]=G}if(ai.nodeName(r,"form")&&r.getAttributeNode(c)){return r.getAttributeNode(c).nodeValue}if(c==="tabIndex"){return(c=r.getAttributeNode("tabIndex"))&&c.specified?c.value:a7.test(r.nodeName)||aN.test(r.nodeName)&&r.href?0:R}return r[c]}if(!ai.support.style&&z&&c==="style"){if(F){r.style.cssText=""+G}return r.style.cssText}F&&r.setAttribute(c,""+G);r=!ai.support.hrefNormalized&&z&&v?r.getAttribute(c,2):r.getAttribute(c);return r===null?R:r}return ai.style(r,c,G)}});var aT=function(c){return c.replace(/[^\w\s\.\|`]/g,function(r){return"\\"+r})};ai.event={add:function(O,L,K,G){if(!(O.nodeType===3||O.nodeType===8)){if(O.setInterval&&O!==I&&!O.frameElement){O=I}if(!K.guid){K.guid=ai.guid++}if(G!==R){K=ai.proxy(K);K.data=G}var J=ai.data(O,"events")||ai.data(O,"events",{}),F=ai.data(O,"handle"),z;if(!F){z=function(){return typeof ai!=="undefined"&&!ai.event.triggered?ai.event.handle.apply(z.elem,arguments):R};F=ai.data(O,"handle",z)}if(F){F.elem=O;L=L.split(/\s+/);for(var r,c=0;r=L[c++];){var v=r.split(".");r=v.shift();if(c>1){K=ai.proxy(K);if(G!==R){K.data=G}}K.type=v.slice(0).sort().join(".");var P=J[r],N=this.special[r]||{};if(!P){P=J[r]={};if(!N.setup||N.setup.call(O,G,v,K)===false){if(O.addEventListener){O.addEventListener(r,F,false)}else{O.attachEvent&&O.attachEvent("on"+r,F)}}}if(N.add){if((v=N.add.call(O,K,G,v,P))&&ai.isFunction(v)){v.guid=v.guid||K.guid;v.data=v.data||K.data;v.type=v.type||K.type;K=v}}P[K.guid]=K;this.global[r]=true}O=null}}},global:{},remove:function(P,N,L){if(!(P.nodeType===3||P.nodeType===8)){var J=ai.data(P,"events"),K,G,F;if(J){if(N===R||typeof N==="string"&&N.charAt(0)==="."){for(G in J){this.remove(P,G+(N||""))}}else{if(N.type){L=N.handler;N=N.type}N=N.split(/\s+/);for(var v=0;G=N[v++];){var r=G.split(".");G=r.shift();var z=!r.length,Q=ai.map(r.slice(0).sort(),aT);Q=new RegExp("(^|\\.)"+Q.join("\\.(?:.*\\.)?")+"(\\.|$)");var O=this.special[G]||{};if(J[G]){if(L){F=J[G][L.guid];delete J[G][L.guid]}else{for(var c in J[G]){if(z||Q.test(J[G][c].type)){delete J[G][c]}}}O.remove&&O.remove.call(P,r,F);for(K in J[G]){break}if(!K){if(!O.teardown||O.teardown.call(P,r)===false){if(P.removeEventListener){P.removeEventListener(G,ai.data(P,"handle"),false)}else{P.detachEvent&&P.detachEvent("on"+G,ai.data(P,"handle"))}}K=null;delete J[G]}}}}for(K in J){break}if(!K){if(c=ai.data(P,"handle")){c.elem=null}ai.removeData(P,"events");ai.removeData(P,"handle")}}}},trigger:function(r,c,J,F){var G=r.type||r;if(!F){r=typeof r==="object"?r[aI]?r:ai.extend(ai.Event(G),r):ai.Event(G);if(G.indexOf("!")>=0){r.type=G=G.slice(0,-1);r.exclusive=true}if(!J){r.stopPropagation();this.global[G]&&ai.each(ai.cache,function(){this.events&&this.events[G]&&ai.event.trigger(r,c,this.handle.elem)})}if(!J||J.nodeType===3||J.nodeType===8){return R}r.result=R;r.target=J;c=ai.makeArray(c);c.unshift(r)}r.currentTarget=J;(F=ai.data(J,"handle"))&&F.apply(J,c);F=J.parentNode||J.ownerDocument;try{if(!(J&&J.nodeName&&ai.noData[J.nodeName.toLowerCase()])){if(J["on"+G]&&J["on"+G].apply(J,c)===false){r.result=false}}}catch(z){}if(!r.isPropagationStopped()&&F){ai.event.trigger(r,c,F,true)}else{if(!r.isDefaultPrevented()){J=r.target;var v;if(!(ai.nodeName(J,"a")&&G==="click")&&!(J&&J.nodeName&&ai.noData[J.nodeName.toLowerCase()])){try{if(J[G]){if(v=J["on"+G]){J["on"+G]=null}this.triggered=true;J[G]()}}catch(K){}if(v){J["on"+G]=v}this.triggered=false}}}},handle:function(r){var c,G;r=arguments[0]=ai.event.fix(r||I.event);r.currentTarget=this;G=r.type.split(".");r.type=G.shift();c=!G.length&&!r.exclusive;var z=new RegExp("(^|\\.)"+G.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)");G=(ai.data(this,"events")||{})[r.type];for(var F in G){var v=G[F];if(c||z.test(v.type)){r.handler=v;r.data=v.data;v=v.apply(this,arguments);if(v!==R){r.result=v;if(v===false){r.preventDefault();r.stopPropagation()}}if(r.isImmediatePropagationStopped()){break}}}return r.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(r){if(r[aI]){return r}var c=r;r=ai.Event(c);for(var z=this.props.length,v;z;){v=this.props[--z];r[v]=c[v]}if(!r.target){r.target=r.srcElement||U}if(r.target.nodeType===3){r.target=r.target.parentNode}if(!r.relatedTarget&&r.fromElement){r.relatedTarget=r.fromElement===r.target?r.toElement:r.fromElement}if(r.pageX==null&&r.clientX!=null){c=U.documentElement;z=U.body;r.pageX=r.clientX+(c&&c.scrollLeft||z&&z.scrollLeft||0)-(c&&c.clientLeft||z&&z.clientLeft||0);r.pageY=r.clientY+(c&&c.scrollTop||z&&z.scrollTop||0)-(c&&c.clientTop||z&&z.clientTop||0)}if(!r.which&&(r.charCode||r.charCode===0?r.charCode:r.keyCode)){r.which=r.charCode||r.keyCode}if(!r.metaKey&&r.ctrlKey){r.metaKey=r.ctrlKey}if(!r.which&&r.button!==R){r.which=r.button&1?1:r.button&2?3:r.button&4?2:0}return r},guid:100000000,proxy:ai.proxy,special:{ready:{setup:ai.bindReady,teardown:ai.noop},live:{add:function(r,c){ai.extend(r,c||{});r.guid+=c.selector+c.live;c.liveProxy=r;ai.event.add(this,c.live,aL,c)},remove:function(r){if(r.length){var c=0,v=new RegExp("(^|\\.)"+r[0]+"(\\.|$)");ai.each(ai.data(this,"events").live||{},function(){v.test(this.type)&&c++});c<1&&ai.event.remove(this,r[0],aL)}},special:{}},beforeunload:{setup:function(r,c,v){if(this.setInterval){this.onbeforeunload=v}return false},teardown:function(r,c){if(this.onbeforeunload===c){this.onbeforeunload=null}}}}};ai.Event=function(c){if(!this.preventDefault){return new ai.Event(c)}if(c&&c.type){this.originalEvent=c;this.type=c.type}else{this.type=c}this.timeStamp=aG();this[aI]=true};ai.Event.prototype={preventDefault:function(){this.isDefaultPrevented=an;var c=this.originalEvent;if(c){c.preventDefault&&c.preventDefault();c.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=an;var c=this.originalEvent;if(c){c.stopPropagation&&c.stopPropagation();c.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=an;this.stopPropagation()},isDefaultPrevented:ap,isPropagationStopped:ap,isImmediatePropagationStopped:ap};var a9=function(r){for(var c=r.relatedTarget;c&&c!==this;){try{c=c.parentNode}catch(v){break}}if(c!==this){r.type=r.data;ai.event.handle.apply(this,arguments)}},aX=function(c){c.type=c.data;ai.event.handle.apply(this,arguments)};ai.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(r,c){ai.event.special[r]={setup:function(v){ai.event.add(this,c,v&&v.selector?aX:a9,r)},teardown:function(v){ai.event.remove(this,c,v&&v.selector?aX:a9)}}});if(!ai.support.submitBubbles){ai.event.special.submit={setup:function(r,c,v){if(this.nodeName.toLowerCase()!=="form"){ai.event.add(this,"click.specialSubmit."+v.guid,function(F){var G=F.target,z=G.type;if((z==="submit"||z==="image")&&ai(G).closest("form").length){return aZ("submit",this,arguments)}});ai.event.add(this,"keypress.specialSubmit."+v.guid,function(F){var G=F.target,z=G.type;if((z==="text"||z==="password")&&ai(G).closest("form").length&&F.keyCode===13){return aZ("submit",this,arguments)}})}else{return false}},remove:function(r,c){ai.event.remove(this,"click.specialSubmit"+(c?"."+c.guid:""));ai.event.remove(this,"keypress.specialSubmit"+(c?"."+c.guid:""))}}}if(!ai.support.changeBubbles){var u=/textarea|input|select/i;function aH(r){var c=r.type,v=r.value;if(c==="radio"||c==="checkbox"){v=r.checked}else{if(c==="select-multiple"){v=r.selectedIndex>-1?ai.map(r.options,function(z){return z.selected}).join("-"):""}else{if(r.nodeName.toLowerCase()==="select"){v=r.selectedIndex}}}return v}function g(r,c){var F=r.target,v,z;if(!(!u.test(F.nodeName)||F.readOnly)){v=ai.data(F,"_change_data");z=aH(F);if(r.type!=="focusout"||F.type!=="radio"){ai.data(F,"_change_data",z)}if(!(v===R||z===v)){if(v!=null||z){r.type="change";return ai.event.trigger(r,c,F)}}}}ai.event.special.change={filters:{focusout:g,click:function(r){var c=r.target,v=c.type;if(v==="radio"||v==="checkbox"||c.nodeName.toLowerCase()==="select"){return g.call(this,r)}},keydown:function(r){var c=r.target,v=c.type;if(r.keyCode===13&&c.nodeName.toLowerCase()!=="textarea"||r.keyCode===32&&(v==="checkbox"||v==="radio")||v==="select-multiple"){return g.call(this,r)}},beforeactivate:function(c){c=c.target;c.nodeName.toLowerCase()==="input"&&c.type==="radio"&&ai.data(c,"_change_data",aH(c))}},setup:function(r,c,z){for(var v in au){ai.event.add(this,v+".specialChange."+z.guid,au[v])}return u.test(this.nodeName)},remove:function(r,c){for(var v in au){ai.event.remove(this,v+".specialChange"+(c?"."+c.guid:""),au[v])}return u.test(this.nodeName)}};var au=ai.event.special.change.filters}U.addEventListener&&ai.each({focus:"focusin",blur:"focusout"},function(r,c){function v(z){z=ai.event.fix(z);z.type=c;return ai.event.handle.call(this,z)}ai.event.special[c]={setup:function(){this.addEventListener(r,v,true)},teardown:function(){this.removeEventListener(r,v,true)}}});ai.each(["bind","one"],function(r,c){ai.fn[c]=function(J,F,G){if(typeof J==="object"){for(var z in J){this[c](z,F,J[z],G)}return this}if(ai.isFunction(F)){G=F;F=R}var v=c==="one"?ai.proxy(G,function(K){ai(this).unbind(K,v);return G.apply(this,arguments)}):G;return J==="unload"&&c!=="one"?this.one(J,F,G):this.each(function(){ai.event.add(this,J,v,F)})}});ai.fn.extend({unbind:function(r,c){if(typeof r==="object"&&!r.preventDefault){for(var v in r){this.unbind(v,r[v])}return this}return this.each(function(){ai.event.remove(this,r,c)})},trigger:function(r,c){return this.each(function(){ai.event.trigger(r,c,this)})},triggerHandler:function(r,c){if(this[0]){r=ai.Event(r);r.preventDefault();r.stopPropagation();ai.event.trigger(r,c,this[0]);return r.result}},toggle:function(r){for(var c=arguments,v=1;v<c.length;){ai.proxy(r,c[v++])}return this.click(ai.proxy(r,function(z){var F=(ai.data(this,"lastToggle"+r.guid)||0)%v;ai.data(this,"lastToggle"+r.guid,F+1);z.preventDefault();return c[F].apply(this,arguments)||false}))},hover:function(r,c){return this.mouseenter(r).mouseleave(c||r)}});ai.each(["live","die"],function(r,c){ai.fn[c]=function(J,F,G){var z,v=0;if(ai.isFunction(F)){G=F;F=R}for(J=(J||"").split(/\s+/);(z=J[v++])!=null;){z=z==="focus"?"focusin":z==="blur"?"focusout":z==="hover"?J.push("mouseleave")&&"mouseenter":z;c==="live"?ai(this.context).bind(ah(z,this.selector),{data:F,selector:this.selector,live:z},G):ai(this.context).unbind(ah(z,this.selector),G?{guid:G.guid+this.selector+z}:null)}return this}});ai.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(r,c){ai.fn[c]=function(v){return v?this.bind(c,v):this.trigger(c)};if(ai.attrFn){ai.attrFn[c]=true}});I.attachEvent&&!I.addEventListener&&I.attachEvent("onunload",function(){for(var r in ai.cache){if(ai.cache[r].handle){try{ai.event.remove(ai.cache[r].handle.elem)}catch(c){}}}});(function(){function X(ab){for(var aa="",Z,Y=0;ab[Y];Y++){Z=ab[Y];if(Z.nodeType===3||Z.nodeType===4){aa+=Z.nodeValue}else{if(Z.nodeType!==8){aa+=X(Z.childNodes)}}}return aa}function W(bb,ba,ab,aa,Y,Z){Y=0;for(var bj=aa.length;Y<bj;Y++){var bk=aa[Y];if(bk){bk=bk[bb];for(var bi=false;bk;){if(bk.sizcache===ab){bi=aa[bk.sizset];break}if(bk.nodeType===1&&!Z){bk.sizcache=ab;bk.sizset=Y}if(bk.nodeName.toLowerCase()===ba){bi=bk;break}bk=bk[bb]}aa[Y]=bi}}}function V(bb,ba,ab,aa,Y,Z){Y=0;for(var bj=aa.length;Y<bj;Y++){var bk=aa[Y];if(bk){bk=bk[bb];for(var bi=false;bk;){if(bk.sizcache===ab){bi=aa[bk.sizset];break}if(bk.nodeType===1){if(!Z){bk.sizcache=ab;bk.sizset=Y}if(typeof ba!=="string"){if(bk===ba){bi=true;break}}else{if(K.filter(ba,[bk]).length>0){bi=bk;break}}}bk=bk[bb]}aa[Y]=bi}}}var S=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,T=0,Q=Object.prototype.toString,P=false,N=true;[0,0].sort(function(){N=false;return 0});var K=function(bj,bi,ba,ab){ba=ba||[];var Z=bi=bi||U;if(bi.nodeType!==1&&bi.nodeType!==9){return[]}if(!bj||typeof bj!=="string"){return ba}for(var aa=[],bo,bp,bl,bb,bn=true,bk=r(bi),bm=bj;(S.exec(""),bo=S.exec(bm))!==null;){bm=bo[3];aa.push(bo[1]);if(bo[2]){bb=bo[3];break}}if(aa.length>1&&z.exec(bj)){if(aa.length===2&&O.relative[aa[0]]){bp=L(aa[0]+aa[1],bi)}else{for(bp=O.relative[aa[0]]?[bi]:K(aa.shift(),bi);aa.length;){bj=aa.shift();if(O.relative[bj]){bj+=aa.shift()}bp=L(bj,bp)}}}else{if(!ab&&aa.length>1&&bi.nodeType===9&&!bk&&O.match.ID.test(aa[0])&&!O.match.ID.test(aa[aa.length-1])){bo=K.find(aa.shift(),bi,bk);bi=bo.expr?K.filter(bo.expr,bo.set)[0]:bo.set[0]}if(bi){bo=ab?{expr:aa.pop(),set:J(ab)}:K.find(aa.pop(),aa.length===1&&(aa[0]==="~"||aa[0]==="+")&&bi.parentNode?bi.parentNode:bi,bk);bp=bo.expr?K.filter(bo.expr,bo.set):bo.set;if(aa.length>0){bl=J(bp)}else{bn=false}for(;aa.length;){var Y=aa.pop();bo=Y;if(O.relative[Y]){bo=aa.pop()}else{Y=""}if(bo==null){bo=bi}O.relative[Y](bl,bo,bk)}}else{bl=[]}}bl||(bl=bp);bl||K.error(Y||bj);if(Q.call(bl)==="[object Array]"){if(bn){if(bi&&bi.nodeType===1){for(bj=0;bl[bj]!=null;bj++){if(bl[bj]&&(bl[bj]===true||bl[bj].nodeType===1&&v(bi,bl[bj]))){ba.push(bp[bj])}}}else{for(bj=0;bl[bj]!=null;bj++){bl[bj]&&bl[bj].nodeType===1&&ba.push(bp[bj])}}}else{ba.push.apply(ba,bl)}}else{J(bl,ba)}if(bb){K(bb,Z,ba,ab);K.uniqueSort(ba)}return ba};K.uniqueSort=function(Z){if(F){P=N;Z.sort(F);if(P){for(var Y=1;Y<Z.length;Y++){Z[Y]===Z[Y-1]&&Z.splice(Y--,1)}}}return Z};K.matches=function(Z,Y){return K(Z,null,null,Y)};K.find=function(bb,ba,ab){var aa,Y;if(!bb){return[]}for(var Z=0,bj=O.order.length;Z<bj;Z++){var bk=O.order[Z];if(Y=O.leftMatch[bk].exec(bb)){var bi=Y[1];Y.splice(1,1);if(bi.substr(bi.length-1)!=="\\"){Y[1]=(Y[1]||"").replace(/\\/g,"");aa=O.find[bk](Y,ba,ab);if(aa!=null){bb=bb.replace(O.match[bk],"");break}}}}aa||(aa=ba.getElementsByTagName("*"));return{set:aa,expr:bb}};K.filter=function(bl,bk,bi,bb){for(var Z=bl,ab=[],bq=bk,br,bn,bj=bk&&bk[0]&&r(bk[0]);bl&&bk.length;){for(var bp in O.filter){if((br=O.leftMatch[bp].exec(bl))!=null&&br[2]){var bm=O.filter[bp],bo,Y;Y=br[1];bn=false;br.splice(1,1);if(Y.substr(Y.length-1)!=="\\"){if(bq===ab){ab=[]}if(O.preFilter[bp]){if(br=O.preFilter[bp](br,bq,bi,ab,bb,bj)){if(br===true){continue}}else{bn=bo=true}}if(br){for(var ba=0;(Y=bq[ba])!=null;ba++){if(Y){bo=bm(Y,br,ba,bq);var aa=bb^!!bo;if(bi&&bo!=null){if(aa){bn=true}else{bq[ba]=false}}else{if(aa){ab.push(Y);bn=true}}}}}if(bo!==R){bi||(bq=ab);bl=bl.replace(O.match[bp],"");if(!bn){return[]}break}}}}if(bl===Z){if(bn==null){K.error(bl)}else{break}}Z=bl}return bq};K.error=function(Y){throw"Syntax error, unrecognized expression: "+Y};var O=K.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(Y){return Y.getAttribute("href")}},relative:{"+":function(ab,aa){var Z=typeof aa==="string",Y=Z&&!/\W/.test(aa);Z=Z&&!Y;if(Y){aa=aa.toLowerCase()}Y=0;for(var ba=ab.length,bb;Y<ba;Y++){if(bb=ab[Y]){for(;(bb=bb.previousSibling)&&bb.nodeType!==1;){}ab[Y]=Z||bb&&bb.nodeName.toLowerCase()===aa?bb||false:bb===aa}}Z&&K.filter(aa,ab,true)},">":function(ab,aa){var Z=typeof aa==="string";if(Z&&!/\W/.test(aa)){aa=aa.toLowerCase();for(var Y=0,ba=ab.length;Y<ba;Y++){var bb=ab[Y];if(bb){Z=bb.parentNode;ab[Y]=Z.nodeName.toLowerCase()===aa?Z:false}}}else{Y=0;for(ba=ab.length;Y<ba;Y++){if(bb=ab[Y]){ab[Y]=Z?bb.parentNode:bb.parentNode===aa}}Z&&K.filter(aa,ab,true)}},"":function(ab,aa,Z){var Y=T++,ba=V;if(typeof aa==="string"&&!/\W/.test(aa)){var bb=aa=aa.toLowerCase();ba=W}ba("parentNode",aa,Y,ab,bb,Z)},"~":function(ab,aa,Z){var Y=T++,ba=V;if(typeof aa==="string"&&!/\W/.test(aa)){var bb=aa=aa.toLowerCase();ba=W}ba("previousSibling",aa,Y,ab,bb,Z)}},find:{ID:function(aa,Z,Y){if(typeof Z.getElementById!=="undefined"&&!Y){return(aa=Z.getElementById(aa[1]))?[aa]:[]}},NAME:function(ab,aa){if(typeof aa.getElementsByName!=="undefined"){var Z=[];aa=aa.getElementsByName(ab[1]);for(var Y=0,ba=aa.length;Y<ba;Y++){aa[Y].getAttribute("name")===ab[1]&&Z.push(aa[Y])}return Z.length===0?null:Z}},TAG:function(Z,Y){return Y.getElementsByTagName(Z[1])}},preFilter:{CLASS:function(ba,ab,Z,Y,bb,bi){ba=" "+ba[1].replace(/\\/g,"")+" ";if(bi){return ba}bi=0;for(var aa;(aa=ab[bi])!=null;bi++){if(aa){if(bb^(aa.className&&(" "+aa.className+" ").replace(/[\t\n]/g," ").indexOf(ba)>=0)){Z||Y.push(aa)}else{if(Z){ab[bi]=false}}}}return false},ID:function(Y){return Y[1].replace(/\\/g,"")},TAG:function(Y){return Y[1].toLowerCase()},CHILD:function(Z){if(Z[1]==="nth"){var Y=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(Z[2]==="even"&&"2n"||Z[2]==="odd"&&"2n+1"||!/\D/.test(Z[2])&&"0n+"+Z[2]||Z[2]);Z[2]=Y[1]+(Y[2]||1)-0;Z[3]=Y[3]-0}Z[0]=T++;return Z},ATTR:function(ab,aa,Z,Y,ba,bb){aa=ab[1].replace(/\\/g,"");if(!bb&&O.attrMap[aa]){ab[1]=O.attrMap[aa]}if(ab[2]==="~="){ab[4]=" "+ab[4]+" "}return ab},PSEUDO:function(ab,aa,Z,Y,ba){if(ab[1]==="not"){if((S.exec(ab[3])||"").length>1||/^\w/.test(ab[3])){ab[3]=K(ab[3],null,null,aa)}else{ab=K.filter(ab[3],aa,Z,true^ba);Z||Y.push.apply(Y,ab);return false}}else{if(O.match.POS.test(ab[0])||O.match.CHILD.test(ab[0])){return true}}return ab},POS:function(Y){Y.unshift(true);return Y}},filters:{enabled:function(Y){return Y.disabled===false&&Y.type!=="hidden"},disabled:function(Y){return Y.disabled===true},checked:function(Y){return Y.checked===true},selected:function(Y){return Y.selected===true},parent:function(Y){return !!Y.firstChild},empty:function(Y){return !Y.firstChild},has:function(aa,Z,Y){return !!K(Y[3],aa).length},header:function(Y){return/h\d/i.test(Y.nodeName)},text:function(Y){return"text"===Y.type},radio:function(Y){return"radio"===Y.type},checkbox:function(Y){return"checkbox"===Y.type},file:function(Y){return"file"===Y.type},password:function(Y){return"password"===Y.type},submit:function(Y){return"submit"===Y.type},image:function(Y){return"image"===Y.type},reset:function(Y){return"reset"===Y.type},button:function(Y){return"button"===Y.type||Y.nodeName.toLowerCase()==="button"},input:function(Y){return/input|select|textarea|button/i.test(Y.nodeName)}},setFilters:{first:function(Z,Y){return Y===0},last:function(ab,aa,Z,Y){return aa===Y.length-1},even:function(Z,Y){return Y%2===0},odd:function(Z,Y){return Y%2===1},lt:function(aa,Z,Y){return Z<Y[3]-0},gt:function(aa,Z,Y){return Z>Y[3]-0},nth:function(aa,Z,Y){return Y[3]-0===Z},eq:function(aa,Z,Y){return Y[3]-0===Z}},filter:{PSEUDO:function(ab,aa,Z,Y){var ba=aa[1],bb=O.filters[ba];if(bb){return bb(ab,Z,aa,Y)}else{if(ba==="contains"){return(ab.textContent||ab.innerText||X([ab])||"").indexOf(aa[3])>=0}else{if(ba==="not"){aa=aa[3];Z=0;for(Y=aa.length;Z<Y;Z++){if(aa[Z]===ab){return false}}return true}else{K.error("Syntax error, unrecognized expression: "+ba)}}}},CHILD:function(ba,ab){var Z=ab[1],Y=ba;switch(Z){case"only":case"first":for(;Y=Y.previousSibling;){if(Y.nodeType===1){return false}}if(Z==="first"){return true}Y=ba;case"last":for(;Y=Y.nextSibling;){if(Y.nodeType===1){return false}}return true;case"nth":Z=ab[2];var bb=ab[3];if(Z===1&&bb===0){return true}ab=ab[0];var bi=ba.parentNode;if(bi&&(bi.sizcache!==ab||!ba.nodeIndex)){var aa=0;for(Y=bi.firstChild;Y;Y=Y.nextSibling){if(Y.nodeType===1){Y.nodeIndex=++aa}}bi.sizcache=ab}ba=ba.nodeIndex-bb;return Z===0?ba===0:ba%Z===0&&ba/Z>=0}},ID:function(Z,Y){return Z.nodeType===1&&Z.getAttribute("id")===Y},TAG:function(Z,Y){return Y==="*"&&Z.nodeType===1||Z.nodeName.toLowerCase()===Y},CLASS:function(Z,Y){return(" "+(Z.className||Z.getAttribute("class"))+" ").indexOf(Y)>-1},ATTR:function(ab,aa){var Z=aa[1];ab=O.attrHandle[Z]?O.attrHandle[Z](ab):ab[Z]!=null?ab[Z]:ab.getAttribute(Z);Z=ab+"";var Y=aa[2];aa=aa[4];return ab==null?Y==="!=":Y==="="?Z===aa:Y==="*="?Z.indexOf(aa)>=0:Y==="~="?(" "+Z+" ").indexOf(aa)>=0:!aa?Z&&ab!==false:Y==="!="?Z!==aa:Y==="^="?Z.indexOf(aa)===0:Y==="$="?Z.substr(Z.length-aa.length)===aa:Y==="|="?Z===aa||Z.substr(0,aa.length+1)===aa+"-":false},POS:function(ab,aa,Z,Y){var ba=O.setFilters[aa[2]];if(ba){return ba(ab,Z,aa,Y)}}}},z=O.match.POS;for(var c in O.match){O.match[c]=new RegExp(O.match[c].source+/(?![^\[]*\])(?![^\(]*\))/.source);O.leftMatch[c]=new RegExp(/(^(?:.|\r|\n)*?)/.source+O.match[c].source.replace(/\\(\d+)/g,function(Z,Y){return"\\"+(Y-0+1)}))}var J=function(Z,Y){Z=Array.prototype.slice.call(Z,0);if(Y){Y.push.apply(Y,Z);return Y}return Z};try{Array.prototype.slice.call(U.documentElement.childNodes,0)}catch(G){J=function(ab,aa){aa=aa||[];if(Q.call(ab)==="[object Array]"){Array.prototype.push.apply(aa,ab)}else{if(typeof ab.length==="number"){for(var Z=0,Y=ab.length;Z<Y;Z++){aa.push(ab[Z])}}else{for(Z=0;ab[Z];Z++){aa.push(ab[Z])}}}return aa}}var F;if(U.documentElement.compareDocumentPosition){F=function(Z,Y){if(!Z.compareDocumentPosition||!Y.compareDocumentPosition){if(Z==Y){P=true}return Z.compareDocumentPosition?-1:1}Z=Z.compareDocumentPosition(Y)&4?-1:Z===Y?0:1;if(Z===0){P=true}return Z}}else{if("sourceIndex" in U.documentElement){F=function(Z,Y){if(!Z.sourceIndex||!Y.sourceIndex){if(Z==Y){P=true}return Z.sourceIndex?-1:1}Z=Z.sourceIndex-Y.sourceIndex;if(Z===0){P=true}return Z}}else{if(U.createRange){F=function(ab,aa){if(!ab.ownerDocument||!aa.ownerDocument){if(ab==aa){P=true}return ab.ownerDocument?-1:1}var Z=ab.ownerDocument.createRange(),Y=aa.ownerDocument.createRange();Z.setStart(ab,0);Z.setEnd(ab,0);Y.setStart(aa,0);Y.setEnd(aa,0);ab=Z.compareBoundaryPoints(Range.START_TO_END,Y);if(ab===0){P=true}return ab}}}}(function(){var aa=U.createElement("div"),Z="script"+(new Date).getTime();aa.innerHTML="<a name='"+Z+"'/>";var Y=U.documentElement;Y.insertBefore(aa,Y.firstChild);if(U.getElementById(Z)){O.find.ID=function(ab,ba,bb){if(typeof ba.getElementById!=="undefined"&&!bb){return(ba=ba.getElementById(ab[1]))?ba.id===ab[1]||typeof ba.getAttributeNode!=="undefined"&&ba.getAttributeNode("id").nodeValue===ab[1]?[ba]:R:[]}};O.filter.ID=function(ab,ba){var bb=typeof ab.getAttributeNode!=="undefined"&&ab.getAttributeNode("id");return ab.nodeType===1&&bb&&bb.nodeValue===ba}}Y.removeChild(aa);Y=aa=null})();(function(){var Y=U.createElement("div");Y.appendChild(U.createComment(""));if(Y.getElementsByTagName("*").length>0){O.find.TAG=function(ab,aa){aa=aa.getElementsByTagName(ab[1]);if(ab[1]==="*"){ab=[];for(var Z=0;aa[Z];Z++){aa[Z].nodeType===1&&ab.push(aa[Z])}aa=ab}return aa}}Y.innerHTML="<a href='#'></a>";if(Y.firstChild&&typeof Y.firstChild.getAttribute!=="undefined"&&Y.firstChild.getAttribute("href")!=="#"){O.attrHandle.href=function(Z){return Z.getAttribute("href",2)}}Y=null})();U.querySelectorAll&&function(){var aa=K,Z=U.createElement("div");Z.innerHTML="<p class='TEST'></p>";if(!(Z.querySelectorAll&&Z.querySelectorAll(".TEST").length===0)){K=function(ab,bi,bj,ba){bi=bi||U;if(!ba&&bi.nodeType===9&&!r(bi)){try{return J(bi.querySelectorAll(ab),bj)}catch(bb){}}return aa(ab,bi,bj,ba)};for(var Y in aa){K[Y]=aa[Y]}Z=null}}();(function(){var Y=U.createElement("div");Y.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!Y.getElementsByClassName||Y.getElementsByClassName("e").length===0)){Y.lastChild.className="e";if(Y.getElementsByClassName("e").length!==1){O.order.splice(1,0,"CLASS");O.find.CLASS=function(ab,aa,Z){if(typeof aa.getElementsByClassName!=="undefined"&&!Z){return aa.getElementsByClassName(ab[1])}};Y=null}}})();var v=U.compareDocumentPosition?function(Z,Y){return Z.compareDocumentPosition(Y)&16}:function(Z,Y){return Z!==Y&&(Z.contains?Z.contains(Y):true)},r=function(Y){return(Y=(Y?Y.ownerDocument||Y:0).documentElement)?Y.nodeName!=="HTML":false},L=function(ab,aa){var Z=[],Y="",ba;for(aa=aa.nodeType?[aa]:aa;ba=O.match.PSEUDO.exec(ab);){Y+=ba[0];ab=ab.replace(O.match.PSEUDO,"")}ab=O.relative[ab]?ab+"*":ab;ba=0;for(var bb=aa.length;ba<bb;ba++){K(ab,aa[ba],Z)}return K.filter(Y,Z)};ai.find=K;ai.expr=K.selectors;ai.expr[":"]=ai.expr.filters;ai.unique=K.uniqueSort;ai.getText=X;ai.isXMLDoc=r;ai.contains=v})();var ax=/Until$/,ac=/^(?:parents|prevUntil|prevAll)/,t=/,/;aw=Array.prototype.slice;var y=function(r,c,z){if(ai.isFunction(c)){return ai.grep(r,function(G,F){return !!c.call(G,F,G)===z})}else{if(c.nodeType){return ai.grep(r,function(F){return F===c===z})}else{if(typeof c==="string"){var v=ai.grep(r,function(F){return F.nodeType===1});if(H.test(c)){return ai.filter(c,v,!z)}else{c=ai.filter(c,v)}}}}return ai.grep(r,function(F){return ai.inArray(F,c)>=0===z})};ai.fn.extend({find:function(r){for(var c=this.pushStack("","find",r),J=0,F=0,G=this.length;F<G;F++){J=c.length;ai.find(r,this[F],c);if(F>0){for(var z=J;z<c.length;z++){for(var v=0;v<J;v++){if(c[v]===c[z]){c.splice(z--,1);break}}}}}return c},has:function(r){var c=ai(r);return this.filter(function(){for(var z=0,v=c.length;z<v;z++){if(ai.contains(this,c[z])){return true}}})},not:function(c){return this.pushStack(y(this,c,false),"not",c)},filter:function(c){return this.pushStack(y(this,c,true),"filter",c)},is:function(c){return !!c&&ai.filter(c,this).length>0},closest:function(L,K){if(ai.isArray(L)){var J=[],F=this[0],G,z={},v;if(F&&L.length){G=0;for(var r=L.length;G<r;G++){v=L[G];z[v]||(z[v]=ai.expr.match.POS.test(v)?ai(v,K||this.context):v)}for(;F&&F.ownerDocument&&F!==K;){for(v in z){G=z[v];if(G.jquery?G.index(F)>-1:ai(F).is(G)){J.push({selector:v,elem:F});delete z[v]}}F=F.parentNode}}return J}var c=ai.expr.match.POS.test(L)?ai(L,K||this.context):null;return this.map(function(N,O){for(;O&&O.ownerDocument&&O!==K;){if(c?c.index(O)>-1:ai(O).is(L)){return O}O=O.parentNode}return null})},index:function(c){if(!c||typeof c==="string"){return ai.inArray(this[0],c?ai(c):this.parent().children())}return ai.inArray(c.jquery?c[0]:c,this)},add:function(r,c){r=typeof r==="string"?ai(r,c||this.context):ai.makeArray(r);c=ai.merge(this.get(),r);return this.pushStack(B(r[0])||B(c[0])?c:ai.unique(c))},andSelf:function(){return this.add(this.prevObject)}});ai.each({parent:function(c){return(c=c.parentNode)&&c.nodeType!==11?c:null},parents:function(c){return ai.dir(c,"parentNode")},parentsUntil:function(r,c,v){return ai.dir(r,"parentNode",v)},next:function(c){return ai.nth(c,2,"nextSibling")},prev:function(c){return ai.nth(c,2,"previousSibling")},nextAll:function(c){return ai.dir(c,"nextSibling")},prevAll:function(c){return ai.dir(c,"previousSibling")},nextUntil:function(r,c,v){return ai.dir(r,"nextSibling",v)},prevUntil:function(r,c,v){return ai.dir(r,"previousSibling",v)},siblings:function(c){return ai.sibling(c.parentNode.firstChild,c)},children:function(c){return ai.sibling(c.firstChild)},contents:function(c){return ai.nodeName(c,"iframe")?c.contentDocument||c.contentWindow.document:ai.makeArray(c.childNodes)}},function(r,c){ai.fn[r]=function(F,v){var z=ai.map(this,c,F);ax.test(r)||(v=F);if(v&&typeof v==="string"){z=ai.filter(v,z)}z=this.length>1?ai.unique(z):z;if((this.length>1||t.test(v))&&ac.test(r)){z=z.reverse()}return this.pushStack(z,r,aw.call(arguments).join(","))}});ai.extend({filter:function(r,c,v){if(v){r=":not("+r+")"}return ai.find.matches(r,c)},dir:function(r,c,z){var v=[];for(r=r[c];r&&r.nodeType!==9&&(z===R||r.nodeType!==1||!ai(r).is(z));){r.nodeType===1&&v.push(r);r=r[c]}return v},nth:function(r,c,z){c=c||1;for(var v=0;r;r=r[z]){if(r.nodeType===1&&++v===c){break}}return r},sibling:function(r,c){for(var v=[];r;r=r.nextSibling){r.nodeType===1&&r!==c&&v.push(r)}return v}});var j=/ jQuery\d+="(?:\d+|null)"/g,at=/^\s+/,be=/(<([\w:]+)[^>]*?)\/>/g,f=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,a0=/<([\w:]+)/,a8=/<tbody/i,aV=/<|&\w+;/,a3=/checked\s*(?:[^=]|=\s*.checked.)/i,aM=function(r,c,v){return f.test(v)?r:c+"></"+v+">"},aK={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};aK.optgroup=aK.option;aK.tbody=aK.tfoot=aK.colgroup=aK.caption=aK.thead;aK.th=aK.td;if(!ai.support.htmlSerialize){aK._default=[1,"div<div>","</div>"]}ai.fn.extend({text:function(c){if(ai.isFunction(c)){return this.each(function(r){var v=ai(this);v.text(c.call(this,r,v.text()))})}if(typeof c!=="object"&&c!==R){return this.empty().append((this[0]&&this[0].ownerDocument||U).createTextNode(c))}return ai.getText(this)},wrapAll:function(r){if(ai.isFunction(r)){return this.each(function(v){ai(this).wrapAll(r.call(this,v))})}if(this[0]){var c=ai(r,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){for(var v=this;v.firstChild&&v.firstChild.nodeType===1;){v=v.firstChild}return v}).append(this)}return this},wrapInner:function(c){if(ai.isFunction(c)){return this.each(function(r){ai(this).wrapInner(c.call(this,r))})}return this.each(function(){var r=ai(this),v=r.contents();v.length?v.wrapAll(c):r.append(c)})},wrap:function(c){return this.each(function(){ai(this).wrapAll(c)})},unwrap:function(){return this.parent().each(function(){ai.nodeName(this,"body")||ai(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.appendChild(c)})},prepend:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.insertBefore(c,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(r){this.parentNode.insertBefore(r,this)})}else{if(arguments.length){var c=ai(arguments[0]);c.push.apply(c,this.toArray());return this.pushStack(c,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(r){this.parentNode.insertBefore(r,this.nextSibling)})}else{if(arguments.length){var c=this.pushStack(this,"after",arguments);c.push.apply(c,ai(arguments[0]).toArray());return c}}},clone:function(r){var c=this.map(function(){if(!ai.support.noCloneEvent&&!ai.isXMLDoc(this)){var z=this.outerHTML,v=this.ownerDocument;if(!z){z=v.createElement("div");z.appendChild(this.cloneNode(true));z=z.innerHTML}return ai.clean([z.replace(j,"").replace(at,"")],v)[0]}else{return this.cloneNode(true)}});if(r===true){l(this,c);l(this.find("*"),c.find("*"))}return c},html:function(r){if(r===R){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(j,""):null}else{if(typeof r==="string"&&!/<script/i.test(r)&&(ai.support.leadingWhitespace||!at.test(r))&&!aK[(a0.exec(r)||["",""])[1].toLowerCase()]){r=r.replace(be,aM);try{for(var c=0,z=this.length;c<z;c++){if(this[c].nodeType===1){ai.cleanData(this[c].getElementsByTagName("*"));this[c].innerHTML=r}}}catch(v){this.empty().append(r)}}else{ai.isFunction(r)?this.each(function(J){var G=ai(this),F=G.html();G.empty().append(function(){return r.call(this,J,F)})}):this.empty().append(r)}}return this},replaceWith:function(c){if(this[0]&&this[0].parentNode){if(ai.isFunction(c)){return this.each(function(r){var z=ai(this),v=z.html();z.replaceWith(c.call(this,r,v))})}else{c=ai(c).detach()}return this.each(function(){var r=this.nextSibling,v=this.parentNode;ai(this).remove();r?ai(r).before(c):ai(v).append(c)})}else{return this.pushStack(ai(ai.isFunction(c)?c():c),"replaceWith",c)}},detach:function(c){return this.remove(c,true)},domManip:function(N,L,K){function G(O){return ai.nodeName(O,"table")?O.getElementsByTagName("tbody")[0]||O.appendChild(O.ownerDocument.createElement("tbody")):O}var J,F,z=N[0],r=[];if(!ai.support.checkClone&&arguments.length===3&&typeof z==="string"&&a3.test(z)){return this.each(function(){ai(this).domManip(N,L,K,true)})}if(ai.isFunction(z)){return this.each(function(P){var O=ai(this);N[0]=z.call(this,P,L?O.html():R);O.domManip(N,L,K)})}if(this[0]){J=N[0]&&N[0].parentNode&&N[0].parentNode.nodeType===11?{fragment:N[0].parentNode}:bg(N,this,r);if(F=J.fragment.firstChild){L=L&&ai.nodeName(F,"tr");for(var c=0,v=this.length;c<v;c++){K.call(L?G(this[c],F):this[c],J.cacheable||this.length>1||c>0?J.fragment.cloneNode(true):J.fragment)}}r&&ai.each(r,bh)}return this}});ai.fragments={};ai.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(r,c){ai.fn[r]=function(J){var F=[];J=ai(J);for(var G=0,z=J.length;G<z;G++){var v=(G>0?this.clone(true):this).get();ai.fn[c].apply(ai(J[G]),v);F=F.concat(v)}return this.pushStack(F,r,J.selector)}});ai.each({remove:function(r,c){if(!r||ai.filter(r,[this]).length){if(!c&&this.nodeType===1){ai.cleanData(this.getElementsByTagName("*"));ai.cleanData([this])}this.parentNode&&this.parentNode.removeChild(this)}},empty:function(){for(this.nodeType===1&&ai.cleanData(this.getElementsByTagName("*"));this.firstChild;){this.removeChild(this.firstChild)}}},function(r,c){ai.fn[r]=function(){return this.each(c,arguments)}});ai.extend({clean:function(r,c,F,v){c=c||U;if(typeof c.createElement==="undefined"){c=c.ownerDocument||c[0]&&c[0].ownerDocument||U}var z=[];ai.each(r,function(K,J){if(typeof J==="number"){J+=""}if(J){if(typeof J==="string"&&!aV.test(J)){J=c.createTextNode(J)}else{if(typeof J==="string"){J=J.replace(be,aM);var N=(a0.exec(J)||["",""])[1].toLowerCase(),L=aK[N]||aK._default,G=L[0];K=c.createElement("div");for(K.innerHTML=L[1]+J+L[2];G--;){K=K.lastChild}if(!ai.support.tbody){G=a8.test(J);N=N==="table"&&!G?K.firstChild&&K.firstChild.childNodes:L[1]==="<table>"&&!G?K.childNodes:[];for(L=N.length-1;L>=0;--L){ai.nodeName(N[L],"tbody")&&!N[L].childNodes.length&&N[L].parentNode.removeChild(N[L])}}!ai.support.leadingWhitespace&&at.test(J)&&K.insertBefore(c.createTextNode(at.exec(J)[0]),K.firstChild);J=ai.makeArray(K.childNodes)}}if(J.nodeType){z.push(J)}else{z=ai.merge(z,J)}}});if(F){for(r=0;z[r];r++){if(v&&ai.nodeName(z[r],"script")&&(!z[r].type||z[r].type.toLowerCase()==="text/javascript")){v.push(z[r].parentNode?z[r].parentNode.removeChild(z[r]):z[r])}else{z[r].nodeType===1&&z.splice.apply(z,[r+1,0].concat(ai.makeArray(z[r].getElementsByTagName("script"))));F.appendChild(z[r])}}}return z},cleanData:function(r){for(var c=0,v;(v=r[c])!=null;c++){ai.event.remove(v);ai.removeData(v)}}});var aE=/z-?index|font-?weight|opacity|zoom|line-?height/i,aj=/alpha\([^)]*\)/,C=/opacity=([^)]*)/,aW=/float/i,aF=/-([a-z])/ig,ae=/([A-Z])/g,w=/^-?\d+(?:px)?$/i,h=/^-?\d/,bc={position:"absolute",visibility:"hidden",display:"block"},aY=["Left","Right"],aJ=["Top","Bottom"],ag=U.defaultView&&U.defaultView.getComputedStyle,m=ai.support.cssFloat?"cssFloat":"styleFloat",af=function(r,c){return c.toUpperCase()};ai.fn.css=function(r,c){return aq(this,r,c,true,function(F,v,z){if(z===R){return ai.curCSS(F,v)}if(typeof z==="number"&&!aE.test(v)){z+="px"}ai.style(F,v,z)})};ai.extend({style:function(r,c,F){if(!r||r.nodeType===3||r.nodeType===8){return R}if((c==="width"||c==="height")&&parseFloat(F)<0){F=R}var v=r.style||r,z=F!==R;if(!ai.support.opacity&&c==="opacity"){if(z){v.zoom=1;c=parseInt(F,10)+""==="NaN"?"":"alpha(opacity="+F*100+")";r=v.filter||ai.curCSS(r,"filter")||"";v.filter=aj.test(r)?r.replace(aj,c):c}return v.filter&&v.filter.indexOf("opacity=")>=0?parseFloat(C.exec(v.filter)[1])/100+"":""}if(aW.test(c)){c=m}c=c.replace(aF,af);if(z){v[c]=F}return v[c]},css:function(r,c,J,F){if(c==="width"||c==="height"){var G,z=c==="width"?aY:aJ;function v(){G=c==="width"?r.offsetWidth:r.offsetHeight;F!=="border"&&ai.each(z,function(){F||(G-=parseFloat(ai.curCSS(r,"padding"+this,true))||0);if(F==="margin"){G+=parseFloat(ai.curCSS(r,"margin"+this,true))||0}else{G-=parseFloat(ai.curCSS(r,"border"+this+"Width",true))||0}})}r.offsetWidth!==0?v():ai.swap(r,bc,v);return Math.max(0,Math.round(G))}return ai.curCSS(r,c,J)},curCSS:function(r,c,G){var z,F=r.style;if(!ai.support.opacity&&c==="opacity"&&r.currentStyle){z=C.test(r.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return z===""?"1":z}if(aW.test(c)){c=m}if(!G&&F&&F[c]){z=F[c]}else{if(ag){if(aW.test(c)){c="float"}c=c.replace(ae,"-$1").toLowerCase();F=r.ownerDocument.defaultView;if(!F){return null}if(r=F.getComputedStyle(r,null)){z=r.getPropertyValue(c)}if(c==="opacity"&&z===""){z="1"}}else{if(r.currentStyle){G=c.replace(aF,af);z=r.currentStyle[c]||r.currentStyle[G];if(!w.test(z)&&h.test(z)){c=F.left;var v=r.runtimeStyle.left;r.runtimeStyle.left=r.currentStyle.left;F.left=G==="fontSize"?"1em":z||0;z=F.pixelLeft+"px";F.left=c;r.runtimeStyle.left=v}}}}return z},swap:function(r,c,F){var v={};for(var z in c){v[z]=r.style[z];r.style[z]=c[z]}F.call(r);for(z in c){r.style[z]=v[z]}}});if(ai.expr&&ai.expr.filters){ai.expr.filters.hidden=function(r){var c=r.offsetWidth,z=r.offsetHeight,v=r.nodeName.toLowerCase()==="tr";return c===0&&z===0&&!v?true:c>0&&z>0&&!v?false:ai.curCSS(r,"display")==="none"};ai.expr.filters.visible=function(c){return !ai.expr.filters.hidden(c)}}var A=aG(),k=/<script(.|\s)*?\/script>/gi,bf=/select|textarea/i,a2=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,aB=/=\?(&|$)/,x=/\?/,aO=/(\?|&)_=.*?(&|$)/,ak=/^(\w+:)?\/\/([^\/?#]+)/,D=/%20/g;ai.fn.extend({_load:ai.fn.load,load:function(r,c,G){if(typeof r!=="string"){return this._load(r)}else{if(!this.length){return this}}var z=r.indexOf(" ");if(z>=0){var F=r.slice(z,r.length);r=r.slice(0,z)}z="GET";if(c){if(ai.isFunction(c)){G=c;c=null}else{if(typeof c==="object"){c=ai.param(c,ai.ajaxSettings.traditional);z="POST"}}}var v=this;ai.ajax({url:r,type:z,dataType:"html",data:c,complete:function(J,K){if(K==="success"||K==="notmodified"){v.html(F?ai("<div />").append(J.responseText.replace(k,"")).find(F):J.responseText)}G&&v.each(G,[J.responseText,K,J])}});return this},serialize:function(){return ai.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?ai.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bf.test(this.nodeName)||a2.test(this.type))}).map(function(r,c){r=ai(this).val();return r==null?null:ai.isArray(r)?ai.map(r,function(v){return{name:c.name,value:v}}):{name:c.name,value:r}}).get()}});ai.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(r,c){ai.fn[c]=function(v){return this.bind(c,v)}});ai.extend({get:function(r,c,z,v){if(ai.isFunction(c)){v=v||z;z=c;c=null}return ai.ajax({type:"GET",url:r,data:c,success:z,dataType:v})},getScript:function(r,c){return ai.get(r,null,c,"script")},getJSON:function(r,c,v){return ai.get(r,c,v,"json")},post:function(r,c,z,v){if(ai.isFunction(c)){v=v||z;z=c;c={}}return ai.ajax({type:"POST",url:r,data:c,success:z,dataType:v})},ajaxSetup:function(c){ai.extend(ai.ajaxSettings,c)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:I.XMLHttpRequest&&(I.location.protocol!=="file:"||!I.ActiveXObject)?function(){return new I.XMLHttpRequest}:function(){try{return new I.ActiveXObject("Microsoft.XMLHTTP")}catch(c){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(ab){function aa(){Y.success&&Y.success.call(K,N,S,r);Y.global&&X("ajaxSuccess",[r,Y])}function Z(){Y.complete&&Y.complete.call(K,r,S);Y.global&&X("ajaxComplete",[r,Y]);Y.global&&!--ai.active&&ai.event.trigger("ajaxStop")}function X(ba,bb){(Y.context?ai(Y.context):ai.event).trigger(ba,bb)}var Y=ai.extend(true,{},ai.ajaxSettings,ab),T,S,N,K=ab&&ab.context||Y,O=Y.type.toUpperCase();if(Y.data&&Y.processData&&typeof Y.data!=="string"){Y.data=ai.param(Y.data,Y.traditional)}if(Y.dataType==="jsonp"){if(O==="GET"){aB.test(Y.url)||(Y.url+=(x.test(Y.url)?"&":"?")+(Y.jsonp||"callback")+"=?")}else{if(!Y.data||!aB.test(Y.data)){Y.data=(Y.data?Y.data+"&":"")+(Y.jsonp||"callback")+"=?"}}Y.dataType="json"}if(Y.dataType==="json"&&(Y.data&&aB.test(Y.data)||aB.test(Y.url))){T=Y.jsonpCallback||"jsonp"+A++;if(Y.data){Y.data=(Y.data+"").replace(aB,"="+T+"$1")}Y.url=Y.url.replace(aB,"="+T+"$1");Y.dataType="script";I[T]=I[T]||function(ba){N=ba;aa();Z();I[T]=R;try{delete I[T]}catch(bb){}J&&J.removeChild(G)}}if(Y.dataType==="script"&&Y.cache===null){Y.cache=false}if(Y.cache===false&&O==="GET"){var z=aG(),c=Y.url.replace(aO,"$1_="+z+"$2");Y.url=c+(c===Y.url?(x.test(Y.url)?"&":"?")+"_="+z:"")}if(Y.data&&O==="GET"){Y.url+=(x.test(Y.url)?"&":"?")+Y.data}Y.global&&!ai.active++&&ai.event.trigger("ajaxStart");z=(z=ak.exec(Y.url))&&(z[1]&&z[1]!==location.protocol||z[2]!==location.host);if(Y.dataType==="script"&&O==="GET"&&z){var J=U.getElementsByTagName("head")[0]||U.documentElement,G=U.createElement("script");G.src=Y.url;if(Y.scriptCharset){G.charset=Y.scriptCharset}if(!T){var F=false;G.onload=G.onreadystatechange=function(){if(!F&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){F=true;aa();Z();G.onload=G.onreadystatechange=null;J&&G.parentNode&&J.removeChild(G)}}}J.insertBefore(G,J.firstChild);return R}var v=false,r=Y.xhr();if(r){Y.username?r.open(O,Y.url,Y.async,Y.username,Y.password):r.open(O,Y.url,Y.async);try{if(Y.data||ab&&ab.contentType){r.setRequestHeader("Content-Type",Y.contentType)}if(Y.ifModified){ai.lastModified[Y.url]&&r.setRequestHeader("If-Modified-Since",ai.lastModified[Y.url]);ai.etag[Y.url]&&r.setRequestHeader("If-None-Match",ai.etag[Y.url])}z||r.setRequestHeader("X-Requested-With","XMLHttpRequest");r.setRequestHeader("Accept",Y.dataType&&Y.accepts[Y.dataType]?Y.accepts[Y.dataType]+", */*":Y.accepts._default)}catch(L){}if(Y.beforeSend&&Y.beforeSend.call(K,r,Y)===false){Y.global&&!--ai.active&&ai.event.trigger("ajaxStop");r.abort();return false}Y.global&&X("ajaxSend",[r,Y]);var W=r.onreadystatechange=function(bb){if(!r||r.readyState===0||bb==="abort"){v||Z();v=true;if(r){r.onreadystatechange=ai.noop}}else{if(!v&&r&&(r.readyState===4||bb==="timeout")){v=true;r.onreadystatechange=ai.noop;S=bb==="timeout"?"timeout":!ai.httpSuccess(r)?"error":Y.ifModified&&ai.httpNotModified(r,Y.url)?"notmodified":"success";var bi;if(S==="success"){try{N=ai.httpData(r,Y.dataType,Y)}catch(ba){S="parsererror";bi=ba}}if(S==="success"||S==="notmodified"){T||aa()}else{ai.handleError(Y,r,S,bi)}Z();bb==="timeout"&&r.abort();if(Y.async){r=null}}}};try{var V=r.abort;r.abort=function(){r&&V.call(r);W("abort")}}catch(Q){}Y.async&&Y.timeout>0&&setTimeout(function(){r&&!v&&W("timeout")},Y.timeout);try{r.send(O==="POST"||O==="PUT"||O==="DELETE"?Y.data:null)}catch(P){ai.handleError(Y,r,null,P);Z()}Y.async||W();return r}},handleError:function(r,c,z,v){if(r.error){r.error.call(r.context||r,c,z,v)}if(r.global){(r.context?ai(r.context):ai.event).trigger("ajaxError",[c,r,v])}},active:0,httpSuccess:function(r){try{return !r.status&&location.protocol==="file:"||r.status>=200&&r.status<300||r.status===304||r.status===1223||r.status===0}catch(c){}return false},httpNotModified:function(r,c){var z=r.getResponseHeader("Last-Modified"),v=r.getResponseHeader("Etag");if(z){ai.lastModified[c]=z}if(v){ai.etag[c]=v}return r.status===304||r.status===0},httpData:function(r,c,F){var v=r.getResponseHeader("content-type")||"",z=c==="xml"||!c&&v.indexOf("xml")>=0;r=z?r.responseXML:r.responseText;z&&r.documentElement.nodeName==="parsererror"&&ai.error("parsererror");if(F&&F.dataFilter){r=F.dataFilter(r,c)}if(typeof r==="string"){if(c==="json"||!c&&v.indexOf("json")>=0){r=ai.parseJSON(r)}else{if(c==="script"||!c&&v.indexOf("javascript")>=0){ai.globalEval(r)}}}return r},param:function(r,c){function G(J,K){if(ai.isArray(K)){ai.each(K,function(N,L){c?z(J,L):G(J+"["+(typeof L==="object"||ai.isArray(L)?N:"")+"]",L)})}else{!c&&K!=null&&typeof K==="object"?ai.each(K,function(N,L){G(J+"["+N+"]",L)}):z(J,K)}}function z(J,K){K=ai.isFunction(K)?K():K;F[F.length]=encodeURIComponent(J)+"="+encodeURIComponent(K)}var F=[];if(c===R){c=ai.ajaxSettings.traditional}if(ai.isArray(r)||r.jquery){ai.each(r,function(){z(this.name,this.value)})}else{for(var v in r){G(v,r[v])}}return F.join("&").replace(D,"+")}});var i={},n=/toggle|show|hide/,a=/^([+-]=)?([\d+-.]+)(.*)$/,ar,aP=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];ai.fn.extend({show:function(r,c){if(r||r===0){return this.animate(aD("show",3),r,c)}else{r=0;for(c=this.length;r<c;r++){var F=ai.data(this[r],"olddisplay");this[r].style.display=F||"";if(ai.css(this[r],"display")==="none"){F=this[r].nodeName;var v;if(i[F]){v=i[F]}else{var z=ai("<"+F+" />").appendTo("body");v=z.css("display");if(v==="none"){v="block"}z.remove();i[F]=v}ai.data(this[r],"olddisplay",v)}}r=0;for(c=this.length;r<c;r++){this[r].style.display=ai.data(this[r],"olddisplay")||""}return this}},hide:function(r,c){if(r||r===0){return this.animate(aD("hide",3),r,c)}else{r=0;for(c=this.length;r<c;r++){var v=ai.data(this[r],"olddisplay");!v&&v!=="none"&&ai.data(this[r],"olddisplay",ai.css(this[r],"display"))}r=0;for(c=this.length;r<c;r++){this[r].style.display="none"}return this}},_toggle:ai.fn.toggle,toggle:function(r,c){var v=typeof r==="boolean";if(ai.isFunction(r)&&ai.isFunction(c)){this._toggle.apply(this,arguments)}else{r==null||v?this.each(function(){var z=v?r:ai(this).is(":hidden");ai(this)[z?"show":"hide"]()}):this.animate(aD("toggle",3),r,c)}return this},fadeTo:function(r,c,v){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:c},r,v)},animate:function(r,c,F,v){var z=ai.speed(c,F,v);if(ai.isEmptyObject(r)){return this.each(z.complete)}return this[z.queue===false?"each":"queue"](function(){var K=ai.extend({},z),J,N=this.nodeType===1&&ai(this).is(":hidden"),L=this;for(J in r){var G=J.replace(aF,af);if(J!==G){r[G]=r[J];delete r[J];J=G}if(r[J]==="hide"&&N||r[J]==="show"&&!N){return K.complete.call(this)}if((J==="height"||J==="width")&&this.style){K.display=ai.css(this,"display");K.overflow=this.style.overflow}if(ai.isArray(r[J])){(K.specialEasing=K.specialEasing||{})[J]=r[J][1];r[J]=r[J][0]}}if(K.overflow!=null){this.style.overflow="hidden"}K.curAnim=ai.extend({},r);ai.each(r,function(Q,P){var O=new ai.fx(L,K,Q);if(n.test(P)){O[P==="toggle"?N?"show":"hide":P](r)}else{var V=a.exec(P),T=O.cur(true)||0;if(V){P=parseFloat(V[2]);var S=V[3]||"px";if(S!=="px"){L.style[Q]=(P||1)+S;T=(P||1)/O.cur(true)*T;L.style[Q]=T+S}if(V[1]){P=(V[1]==="-="?-1:1)*P+T}O.custom(T,P,S)}else{O.custom(T,P,"")}}});return true})},stop:function(r,c){var v=ai.timers;r&&this.queue([]);this.each(function(){for(var z=v.length-1;z>=0;z--){if(v[z].elem===this){c&&v[z](true);v.splice(z,1)}}});c||this.dequeue();return this}});ai.each({slideDown:aD("show",1),slideUp:aD("hide",1),slideToggle:aD("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(r,c){ai.fn[r]=function(z,v){return this.animate(c,z,v)}});ai.extend({speed:function(r,c,z){var v=r&&typeof r==="object"?r:{complete:z||!z&&c||ai.isFunction(r)&&r,duration:r,easing:z&&c||c&&!ai.isFunction(c)&&c};v.duration=ai.fx.off?0:typeof v.duration==="number"?v.duration:ai.fx.speeds[v.duration]||ai.fx.speeds._default;v.old=v.complete;v.complete=function(){v.queue!==false&&ai(this).dequeue();ai.isFunction(v.old)&&v.old.call(this)};return v},easing:{linear:function(r,c,z,v){return z+v*r},swing:function(r,c,z,v){return(-Math.cos(r*Math.PI)/2+0.5)*v+z}},timers:[],fx:function(r,c,v){this.options=c;this.elem=r;this.prop=v;if(!c.orig){c.orig={}}}});ai.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(ai.fx.step[this.prop]||ai.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(c){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}return(c=parseFloat(ai.css(this.elem,this.prop,c)))&&c>-10000?c:parseFloat(ai.curCSS(this.elem,this.prop))||0},custom:function(r,c,F){function v(G){return z.step(G)}this.startTime=aG();this.start=r;this.end=c;this.unit=F||this.unit||"px";this.now=this.start;this.pos=this.state=0;var z=this;v.elem=this.elem;if(v()&&ai.timers.push(v)&&!ar){ar=setInterval(ai.fx.tick,13)}},show:function(){this.options.orig[this.prop]=ai.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());ai(this.elem).show()},hide:function(){this.options.orig[this.prop]=ai.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(r){var c=aG(),F=true;if(r||c>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var v in this.options.curAnim){if(this.options.curAnim[v]!==true){F=false}}if(F){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;r=ai.data(this.elem,"olddisplay");this.elem.style.display=r?r:this.options.display;if(ai.css(this.elem,"display")==="none"){this.elem.style.display="block"}}this.options.hide&&ai(this.elem).hide();if(this.options.hide||this.options.show){for(var z in this.options.curAnim){ai.style(this.elem,z,this.options.orig[z])}}this.options.complete.call(this.elem)}return false}else{z=c-this.startTime;this.state=z/this.options.duration;r=this.options.easing||(ai.easing.swing?"swing":"linear");this.pos=ai.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||r](this.state,z,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};ai.extend(ai.fx,{tick:function(){for(var r=ai.timers,c=0;c<r.length;c++){r[c]()||r.splice(c--,1)}r.length||ai.fx.stop()},stop:function(){clearInterval(ar);ar=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(c){ai.style(c.elem,"opacity",c.now)},_default:function(c){if(c.elem.style&&c.elem.style[c.prop]!=null){c.elem.style[c.prop]=(c.prop==="width"||c.prop==="height"?Math.max(0,c.now):c.now)+c.unit}else{c.elem[c.prop]=c.now}}}});if(ai.expr&&ai.expr.filters){ai.expr.filters.animated=function(c){return ai.grep(ai.timers,function(r){return c===r.elem}).length}}ai.fn.offset="getBoundingClientRect" in U.documentElement?function(r){var c=this[0];if(r){return this.each(function(F){ai.offset.setOffset(this,r,F)})}if(!c||!c.ownerDocument){return null}if(c===c.ownerDocument.body){return ai.offset.bodyOffset(c)}var z=c.getBoundingClientRect(),v=c.ownerDocument;c=v.body;v=v.documentElement;return{top:z.top+(self.pageYOffset||ai.support.boxModel&&v.scrollTop||c.scrollTop)-(v.clientTop||c.clientTop||0),left:z.left+(self.pageXOffset||ai.support.boxModel&&v.scrollLeft||c.scrollLeft)-(v.clientLeft||c.clientLeft||0)}}:function(N){var L=this[0];if(N){return this.each(function(O){ai.offset.setOffset(this,N,O)})}if(!L||!L.ownerDocument){return null}if(L===L.ownerDocument.body){return ai.offset.bodyOffset(L)}ai.offset.initialize();var K=L.offsetParent,G=L,J=L.ownerDocument,F,z=J.documentElement,r=J.body;G=(J=J.defaultView)?J.getComputedStyle(L,null):L.currentStyle;for(var c=L.offsetTop,v=L.offsetLeft;(L=L.parentNode)&&L!==r&&L!==z;){if(ai.offset.supportsFixedPosition&&G.position==="fixed"){break}F=J?J.getComputedStyle(L,null):L.currentStyle;c-=L.scrollTop;v-=L.scrollLeft;if(L===K){c+=L.offsetTop;v+=L.offsetLeft;if(ai.offset.doesNotAddBorder&&!(ai.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(L.nodeName))){c+=parseFloat(F.borderTopWidth)||0;v+=parseFloat(F.borderLeftWidth)||0}G=K;K=L.offsetParent}if(ai.offset.subtractsBorderForOverflowNotVisible&&F.overflow!=="visible"){c+=parseFloat(F.borderTopWidth)||0;v+=parseFloat(F.borderLeftWidth)||0}G=F}if(G.position==="relative"||G.position==="static"){c+=r.offsetTop;v+=r.offsetLeft}if(ai.offset.supportsFixedPosition&&G.position==="fixed"){c+=Math.max(z.scrollTop,r.scrollTop);v+=Math.max(z.scrollLeft,r.scrollLeft)}return{top:c,left:v}};ai.offset={initialize:function(){var r=U.body,c=U.createElement("div"),G,z,F,v=parseFloat(ai.curCSS(r,"marginTop",true))||0;ai.extend(c.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});c.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";r.insertBefore(c,r.firstChild);G=c.firstChild;z=G.firstChild;F=G.nextSibling.firstChild.firstChild;this.doesNotAddBorder=z.offsetTop!==5;this.doesAddBorderForTableAndCells=F.offsetTop===5;z.style.position="fixed";z.style.top="20px";this.supportsFixedPosition=z.offsetTop===20||z.offsetTop===15;z.style.position=z.style.top="";G.style.overflow="hidden";G.style.position="relative";this.subtractsBorderForOverflowNotVisible=z.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=r.offsetTop!==v;r.removeChild(c);ai.offset.initialize=ai.noop},bodyOffset:function(r){var c=r.offsetTop,v=r.offsetLeft;ai.offset.initialize();if(ai.offset.doesNotIncludeMarginInBodyOffset){c+=parseFloat(ai.curCSS(r,"marginTop",true))||0;v+=parseFloat(ai.curCSS(r,"marginLeft",true))||0}return{top:c,left:v}},setOffset:function(r,c,J){if(/static/.test(ai.curCSS(r,"position"))){r.style.position="relative"}var F=ai(r),G=F.offset(),z=parseInt(ai.curCSS(r,"top",true),10)||0,v=parseInt(ai.curCSS(r,"left",true),10)||0;if(ai.isFunction(c)){c=c.call(r,J,G)}J={top:c.top-G.top+z,left:c.left-G.left+v};"using" in c?c.using.call(r,J):F.css(J)}};ai.fn.extend({position:function(){if(!this[0]){return null}var r=this[0],c=this.offsetParent(),z=this.offset(),v=/^body|html$/i.test(c[0].nodeName)?{top:0,left:0}:c.offset();z.top-=parseFloat(ai.curCSS(r,"marginTop",true))||0;z.left-=parseFloat(ai.curCSS(r,"marginLeft",true))||0;v.top+=parseFloat(ai.curCSS(c[0],"borderTopWidth",true))||0;v.left+=parseFloat(ai.curCSS(c[0],"borderLeftWidth",true))||0;return{top:z.top-v.top,left:z.left-v.left}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent||U.body;c&&!/^body|html$/i.test(c.nodeName)&&ai.css(c,"position")==="static";){c=c.offsetParent}return c})}});ai.each(["Left","Top"],function(r,c){var v="scroll"+c;ai.fn[v]=function(F){var G=this[0],z;if(!G){return null}if(F!==R){return this.each(function(){if(z=al(this)){z.scrollTo(!r?F:ai(z).scrollLeft(),r?F:ai(z).scrollTop())}else{this[v]=F}})}else{return(z=al(G))?"pageXOffset" in z?z[r?"pageYOffset":"pageXOffset"]:ai.support.boxModel&&z.document.documentElement[v]||z.document.body[v]:G[v]}}});ai.each(["Height","Width"],function(r,c){var v=c.toLowerCase();ai.fn["inner"+c]=function(){return this[0]?ai.css(this[0],v,false,"padding"):null};ai.fn["outer"+c]=function(z){return this[0]?ai.css(this[0],v,false,z?"margin":"border"):null};ai.fn[v]=function(z){var F=this[0];if(!F){return z==null?null:this}if(ai.isFunction(z)){return this.each(function(J){var G=ai(this);G[v](z.call(this,J,G[v]()))})}return"scrollTo" in F&&F.document?F.document.compatMode==="CSS1Compat"&&F.document.documentElement["client"+c]||F.document.body["client"+c]:F.nodeType===9?Math.max(F.documentElement["client"+c],F.body["scroll"+c],F.documentElement["scroll"+c],F.body["offset"+c],F.documentElement["offset"+c]):z===R?ai.css(F,v):this.css(v,typeof z==="string"?z:z+"px")}});I.jQuery=I.$=ai})(window);jQuery.ui||(function(q){var j=q.fn.remove,o=q.browser.mozilla&&(parseFloat(q.browser.version)<1.9);q.ui={version:"1.7.2",plugin:{add:function(c,b,e){var a=q.ui[c].prototype;for(var d in e){a.plugins[d]=a.plugins[d]||[];a.plugins[d].push([b,e[d]])}},call:function(d,b,c){var e=d.plugins[b];if(!e||!d.element[0].parentNode){return}for(var a=0;a<e.length;a++){if(d.options[e[a][0]]){e[a][1].apply(d.element,c)}}}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(a,c){if(q(a).css("overflow")=="hidden"){return false}var d=(c&&c=="left")?"scrollLeft":"scrollTop",b=false;if(a[d]>0){return true}a[d]=1;b=(a[d]>0);a[d]=0;return b},isOverAxis:function(b,c,a){return(b>c)&&(b<(c+a))},isOver:function(e,c,f,a,d,b){return q.ui.isOverAxis(e,f,d)&&q.ui.isOverAxis(c,a,b)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(o){var m=q.attr,n=q.fn.removeAttr,k="http://www.w3.org/2005/07/aaa",s=/^aria-/,r=/^wairole:/;q.attr=function(c,d,b){var a=b!==undefined;return(d=="role"?(a?m.call(this,c,d,"wairole:"+b):(m.apply(this,arguments)||"").replace(r,"")):(s.test(d)?(a?c.setAttributeNS(k,d.replace(s,"aaa:"),b):m.call(this,c,d.replace(s,"aaa:"))):m.apply(this,arguments)))};q.fn.removeAttr=function(a){return(s.test(a)?this.each(function(){this.removeAttributeNS(k,a.replace(s,""))}):n.call(this,a))}}q.fn.extend({remove:function(){q("*",this).add(this).each(function(){q(this).triggerHandler("remove")});return j.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var a;if((q.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){a=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(q.curCSS(this,"position",1))&&(/(auto|scroll)/).test(q.curCSS(this,"overflow",1)+q.curCSS(this,"overflow-y",1)+q.curCSS(this,"overflow-x",1))}).eq(0)}else{a=this.parents().filter(function(){return(/(auto|scroll)/).test(q.curCSS(this,"overflow",1)+q.curCSS(this,"overflow-y",1)+q.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!a.length?q(document):a}});q.extend(q.expr[":"],{data:function(a,b,c){return !!q.data(a,c[3])},focusable:function(b){var a=b.nodeName.toLowerCase(),c=q.attr(b,"tabindex");return(/input|select|textarea|button|object/.test(a)?!b.disabled:"a"==a||"area"==a?b.href||!isNaN(c):!isNaN(c))&&!q(b)["area"==a?"parents":"closest"](":hidden").length},tabbable:function(a){var b=q.attr(a,"tabindex");return(isNaN(b)||b>=0)&&q(a).is(":focusable")}});function l(a,f,e,b){function c(g){var h=q[a][f][g]||[];return(typeof h=="string"?h.split(/,?\s+/):h)}var d=c("getter");if(b.length==1&&typeof b[0]=="string"){d=d.concat(c("getterSetter"))}return(q.inArray(e,d)!=-1)}q.widget=function(b,c){var a=b.split(".")[0];b=b.split(".")[1];q.fn[b]=function(e){var g=(typeof e=="string"),f=Array.prototype.slice.call(arguments,1);if(g&&e.substring(0,1)=="_"){return this}if(g&&l(a,b,e,f)){var d=q.data(this[0],b);return(d?d[e].apply(d,f):undefined)}return this.each(function(){var h=q.data(this,b);(!h&&!g&&q.data(this,b,new q[a][b](this,e))._init());(h&&g&&q.isFunction(h[e])&&h[e].apply(h,f))})};q[a]=q[a]||{};q[a][b]=function(e,f){var d=this;this.namespace=a;this.widgetName=b;this.widgetEventPrefix=q[a][b].eventPrefix||b;this.widgetBaseClass=a+"-"+b;this.options=q.extend({},q.widget.defaults,q[a][b].defaults,q.metadata&&q.metadata.get(e)[b],f);this.element=q(e).bind("setData."+b,function(h,i,g){if(h.target==e){return d._setData(i,g)}}).bind("getData."+b,function(g,h){if(g.target==e){return d._getData(h)}}).bind("remove",function(){return d.destroy()})};q[a][b].prototype=q.extend({},q.widget.prototype,c);q[a][b].getterSetter="option"};q.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(b,a){var c=b,d=this;if(typeof b=="string"){if(a===undefined){return this._getData(b)}c={};c[b]=a}q.each(c,function(f,e){d._setData(f,e)})},_getData:function(a){return this.options[a]},_setData:function(b,a){this.options[b]=a;if(b=="disabled"){this.element[a?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",a)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(b,a,g){var e=this.options[b],d=(b==this.widgetEventPrefix?b:this.widgetEventPrefix+b);a=q.Event(a);a.type=d;if(a.originalEvent){for(var c=q.event.props.length,f;c;){f=q.event.props[--c];a[f]=a.originalEvent[f]}}this.element.trigger(a,g);return !(q.isFunction(e)&&e.call(this.element[0],a,g)===false||a.isDefaultPrevented())}};q.widget.defaults={disabled:false};q.ui.mouse={_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(b){return a._mouseDown(b)}).bind("click."+this.widgetName,function(b){if(a._preventClickEvent){a._preventClickEvent=false;b.stopImmediatePropagation();return false}});if(q.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(q.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(b){b.originalEvent=b.originalEvent||{};if(b.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(b));this._mouseDownEvent=b;var c=this,a=(b.which==1),d=(typeof this.options.cancel=="string"?q(b.target).parents().add(b.target).filter(this.options.cancel).length:false);if(!a||d||!this._mouseCapture(b)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=(this._mouseStart(b)!==false);if(!this._mouseStarted){b.preventDefault();return true}}this._mouseMoveDelegate=function(e){return c._mouseMove(e)};this._mouseUpDelegate=function(e){return c._mouseUp(e)};q(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(q.browser.safari||b.preventDefault());b.originalEvent.mouseHandled=true;return true},_mouseMove:function(a){if(q.browser.msie&&!a.button){return this._mouseUp(a)}if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,a)!==false);(this._mouseStarted?this._mouseDrag(a):this._mouseUp(a))}return !this._mouseStarted},_mouseUp:function(a){q(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(a.target==this._mouseDownEvent.target);this._mouseStop(a)}return false},_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(a){return this.mouseDelayMet},_mouseStart:function(a){},_mouseDrag:function(a){},_mouseStop:function(a){},_mouseCapture:function(a){return true}};q.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function(b){b.widget("ui.draggable",b.extend({},b.ui.mouse,{_init:function(){if(this.options.helper=="original"&&!(/^(?:r|a|f)/).test(this.element.css("position"))){this.element[0].style.position="relative"}(this.options.addClasses&&this.element.addClass("ui-draggable"));(this.options.disabled&&this.element.addClass("ui-draggable-disabled"));this._mouseInit()},destroy:function(){if(!this.element.data("draggable")){return}this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy()},_mouseCapture:function(a){var d=this.options;if(this.helper||d.disabled||b(a.target).is(".ui-resizable-handle")){return false}this.handle=this._getHandle(a);if(!this.handle){return false}return true},_mouseStart:function(a){var d=this.options;this.helper=this._createHelper(a);this._cacheHelperProportions();if(b.ui.ddmanager){b.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};b.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;if(d.cursorAt){this._adjustOffsetFromHelper(d.cursorAt)}if(d.containment){this._setContainment()}this._trigger("start",a);this._cacheHelperProportions();if(b.ui.ddmanager&&!d.dropBehaviour){b.ui.ddmanager.prepareOffsets(this,a)}this.helper.addClass("ui-draggable-dragging");this._mouseDrag(a,true);return true},_mouseDrag:function(a,e){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");if(!e){var f=this._uiHash();this._trigger("drag",a,f);this.position=f.position}if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}if(b.ui.ddmanager){b.ui.ddmanager.drag(this,a)}return false},_mouseStop:function(f){var e=false;if(b.ui.ddmanager&&!this.options.dropBehaviour){e=b.ui.ddmanager.drop(this,f)}if(this.dropped){e=this.dropped;this.dropped=false}if((this.options.revert=="invalid"&&!e)||(this.options.revert=="valid"&&e)||this.options.revert===true||(b.isFunction(this.options.revert)&&this.options.revert.call(this.element,e))){var a=this;b(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){a._trigger("stop",f);a._clear()})}else{this._trigger("stop",f);this._clear()}return false},_getHandle:function(a){var d=!this.options.handle||!b(this.options.handle,this.element).length?true:false;b(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==a.target){d=true}});return d},_createHelper:function(f){var e=this.options;var a=b.isFunction(e.helper)?b(e.helper.apply(this.element[0],[f])):(e.helper=="clone"?this.element.clone():this.element);if(!a.parents("body").length){a.appendTo((e.appendTo=="parent"?this.element[0].parentNode:e.appendTo))}if(a[0]!=this.element[0]&&!(/(fixed|absolute)/).test(a.css("position"))){a.css("position","absolute")}return a},_adjustOffsetFromHelper:function(a){if(a.left!=undefined){this.offset.click.left=a.left+this.margins.left}if(a.right!=undefined){this.offset.click.left=this.helperProportions.width-a.right+this.margins.left}if(a.top!=undefined){this.offset.click.top=a.top+this.margins.top}if(a.bottom!=undefined){this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)){a={top:0,left:0}}return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.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)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var f=this.options;if(f.containment=="parent"){f.containment=this.helper[0].parentNode}if(f.containment=="document"||f.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,b(f.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b(f.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(f.containment)&&f.containment.constructor!=Array){var h=b(f.containment)[0];if(!h){return}var g=b(f.containment).offset();var a=(b(h).css("overflow")!="hidden");this.containment=[g.left+(parseInt(b(h).css("borderLeftWidth"),10)||0)+(parseInt(b(h).css("paddingLeft"),10)||0)-this.margins.left,g.top+(parseInt(b(h).css("borderTopWidth"),10)||0)+(parseInt(b(h).css("paddingTop"),10)||0)-this.margins.top,g.left+(a?Math.max(h.scrollWidth,h.offsetWidth):h.offsetWidth)-(parseInt(b(h).css("borderLeftWidth"),10)||0)-(parseInt(b(h).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,g.top+(a?Math.max(h.scrollHeight,h.offsetHeight):h.offsetHeight)-(parseInt(b(h).css("borderTopWidth"),10)||0)-(parseInt(b(h).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}else{if(f.containment.constructor==Array){this.containment=f.containment}}},_convertPositionTo:function(j,d){if(!d){d=this.position}var l=j=="absolute"?1:-1;var k=this.options,a=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,i=(/(html|body)/i).test(a[0].tagName);return{top:(d.top+this.offset.relative.top*l+this.offset.parent.top*l-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(i?0:a.scrollTop()))*l)),left:(d.left+this.offset.relative.left*l+this.offset.parent.left*l-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():i?0:a.scrollLeft())*l))}},_generatePosition:function(n){var k=this.options,a=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,j=(/(html|body)/i).test(a[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var o=n.pageX;var q=n.pageY;if(this.originalPosition){if(this.containment){if(n.pageX-this.offset.click.left<this.containment[0]){o=this.containment[0]+this.offset.click.left}if(n.pageY-this.offset.click.top<this.containment[1]){q=this.containment[1]+this.offset.click.top}if(n.pageX-this.offset.click.left>this.containment[2]){o=this.containment[2]+this.offset.click.left}if(n.pageY-this.offset.click.top>this.containment[3]){q=this.containment[3]+this.offset.click.top}}if(k.grid){var l=this.originalPageY+Math.round((q-this.originalPageY)/k.grid[1])*k.grid[1];q=this.containment?(!(l-this.offset.click.top<this.containment[1]||l-this.offset.click.top>this.containment[3])?l:(!(l-this.offset.click.top<this.containment[1])?l-k.grid[1]:l+k.grid[1])):l;var m=this.originalPageX+Math.round((o-this.originalPageX)/k.grid[0])*k.grid[0];o=this.containment?(!(m-this.offset.click.left<this.containment[0]||m-this.offset.click.left>this.containment[2])?m:(!(m-this.offset.click.left<this.containment[0])?m-k.grid[0]:m+k.grid[0])):m}}return{top:(q-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(j?0:a.scrollTop())))),left:(o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():j?0:a.scrollLeft())))}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");if(this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false},_trigger:function(a,f,e){e=e||this._uiHash();b.ui.plugin.call(this,a,[f,e]);if(a=="drag"){this.positionAbs=this._convertPositionTo("absolute")}return b.widget.prototype._trigger.call(this,a,f,e)},plugins:{},_uiHash:function(a){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs}}}));b.extend(b.ui.draggable,{version:"1.7.2",eventPrefix:"drag",defaults:{addClasses:true,appendTo:"parent",axis:false,cancel:":input,option",connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false}});b.ui.plugin.add("draggable","connectToSortable",{start:function(j,h){var i=b(this).data("draggable"),g=i.options,a=b.extend({},h,{item:i.element});i.sortables=[];b(g.connectToSortable).each(function(){var c=b.data(this,"sortable");if(c&&!c.options.disabled){i.sortables.push({instance:c,shouldRevert:c.options.revert});c._refreshItems();c._trigger("activate",j,a)}})},stop:function(h,f){var g=b(this).data("draggable"),a=b.extend({},f,{item:g.element});b.each(g.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;g.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance._mouseStop(h);this.instance.options.helper=this.instance.options._helper;if(g.options.helper=="original"){this.instance.currentItem.css({top:"auto",left:"auto"})}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",h,a)}})},drag:function(j,g){var h=b(this).data("draggable"),a=this;var i=function(r){var d=this.offset.click.top,e=this.offset.click.left;var t=this.positionAbs.top,o=this.positionAbs.left;var q=r.height,f=r.width;var c=r.top,s=r.left;return b.ui.isOver(t+d,o+e,c,s,q,f)};b.each(h.sortables,function(c){this.instance.positionAbs=h.positionAbs;this.instance.helperProportions=h.helperProportions;this.instance.offset.click=h.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=b(a).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return g.helper[0]};j.target=this.instance.currentItem[0];this.instance._mouseCapture(j,true);this.instance._mouseStart(j,true,true);this.instance.offset.click.top=h.offset.click.top;this.instance.offset.click.left=h.offset.click.left;this.instance.offset.parent.left-=h.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=h.offset.parent.top-this.instance.offset.parent.top;h._trigger("toSortable",j);h.dropped=this.instance.element;h.currentItem=h.element;this.instance.fromOutside=h}if(this.instance.currentItem){this.instance._mouseDrag(j)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",j,this.instance._uiHash(this.instance));this.instance._mouseStop(j,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove()}h._trigger("fromSortable",j);h.dropped=false}}})}});b.ui.plugin.add("draggable","cursor",{start:function(h,g){var a=b("body"),f=b(this).data("draggable").options;if(a.css("cursor")){f._cursor=a.css("cursor")}a.css("cursor",f.cursor)},stop:function(a,f){var e=b(this).data("draggable").options;if(e._cursor){b("body").css("cursor",e._cursor)}}});b.ui.plugin.add("draggable","iframeFix",{start:function(a,f){var e=b(this).data("draggable").options;b(e.iframeFix===true?"iframe":e.iframeFix).each(function(){b('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(b(this).offset()).appendTo("body")})},stop:function(a,d){b("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});b.ui.plugin.add("draggable","opacity",{start:function(h,g){var a=b(g.helper),f=b(this).data("draggable").options;if(a.css("opacity")){f._opacity=a.css("opacity")}a.css("opacity",f.opacity)},stop:function(a,f){var e=b(this).data("draggable").options;if(e._opacity){b(f.helper).css("opacity",e._opacity)}}});b.ui.plugin.add("draggable","scroll",{start:function(f,e){var a=b(this).data("draggable");if(a.scrollParent[0]!=document&&a.scrollParent[0].tagName!="HTML"){a.overflowOffset=a.scrollParent.offset()}},drag:function(i,h){var j=b(this).data("draggable"),g=j.options,a=false;if(j.scrollParent[0]!=document&&j.scrollParent[0].tagName!="HTML"){if(!g.axis||g.axis!="x"){if((j.overflowOffset.top+j.scrollParent[0].offsetHeight)-i.pageY<g.scrollSensitivity){j.scrollParent[0].scrollTop=a=j.scrollParent[0].scrollTop+g.scrollSpeed}else{if(i.pageY-j.overflowOffset.top<g.scrollSensitivity){j.scrollParent[0].scrollTop=a=j.scrollParent[0].scrollTop-g.scrollSpeed}}}if(!g.axis||g.axis!="y"){if((j.overflowOffset.left+j.scrollParent[0].offsetWidth)-i.pageX<g.scrollSensitivity){j.scrollParent[0].scrollLeft=a=j.scrollParent[0].scrollLeft+g.scrollSpeed}else{if(i.pageX-j.overflowOffset.left<g.scrollSensitivity){j.scrollParent[0].scrollLeft=a=j.scrollParent[0].scrollLeft-g.scrollSpeed}}}}else{if(!g.axis||g.axis!="x"){if(i.pageY-b(document).scrollTop()<g.scrollSensitivity){a=b(document).scrollTop(b(document).scrollTop()-g.scrollSpeed)}else{if(b(window).height()-(i.pageY-b(document).scrollTop())<g.scrollSensitivity){a=b(document).scrollTop(b(document).scrollTop()+g.scrollSpeed)}}}if(!g.axis||g.axis!="y"){if(i.pageX-b(document).scrollLeft()<g.scrollSensitivity){a=b(document).scrollLeft(b(document).scrollLeft()-g.scrollSpeed)}else{if(b(window).width()-(i.pageX-b(document).scrollLeft())<g.scrollSensitivity){a=b(document).scrollLeft(b(document).scrollLeft()+g.scrollSpeed)}}}}if(a!==false&&b.ui.ddmanager&&!g.dropBehaviour){b.ui.ddmanager.prepareOffsets(j,i)}}});b.ui.plugin.add("draggable","snap",{start:function(h,g){var a=b(this).data("draggable"),f=a.options;a.snapElements=[];b(f.snap.constructor!=String?(f.snap.items||":data(draggable)"):f.snap).each(function(){var c=b(this);var d=c.offset();if(this!=a.element[0]){a.snapElements.push({item:this,width:c.outerWidth(),height:c.outerHeight(),top:d.top,left:d.left})}})},drag:function(r,D){var J=b(this).data("draggable"),B=J.options;var d=B.snapTolerance;var i=D.offset.left,l=i+J.helperProportions.width,K=D.offset.top,L=K+J.helperProportions.height;for(var o=J.snapElements.length-1;o>=0;o--){var t=J.snapElements[o].left,E=t+J.snapElements[o].width,F=J.snapElements[o].top,C=F+J.snapElements[o].height;if(!((t-d<i&&i<E+d&&F-d<K&&K<C+d)||(t-d<i&&i<E+d&&F-d<L&&L<C+d)||(t-d<l&&l<E+d&&F-d<K&&K<C+d)||(t-d<l&&l<E+d&&F-d<L&&L<C+d))){if(J.snapElements[o].snapping){(J.options.snap.release&&J.options.snap.release.call(J.element,r,b.extend(J._uiHash(),{snapItem:J.snapElements[o].item})))}J.snapElements[o].snapping=false;continue}if(B.snapMode!="inner"){var M=Math.abs(F-L)<=d;var a=Math.abs(C-K)<=d;var H=Math.abs(t-l)<=d;var G=Math.abs(E-i)<=d;if(M){D.position.top=J._convertPositionTo("relative",{top:F-J.helperProportions.height,left:0}).top-J.margins.top}if(a){D.position.top=J._convertPositionTo("relative",{top:C,left:0}).top-J.margins.top}if(H){D.position.left=J._convertPositionTo("relative",{top:0,left:t-J.helperProportions.width}).left-J.margins.left}if(G){D.position.left=J._convertPositionTo("relative",{top:0,left:E}).left-J.margins.left}}var I=(M||a||H||G);if(B.snapMode!="outer"){var M=Math.abs(F-K)<=d;var a=Math.abs(C-L)<=d;var H=Math.abs(t-i)<=d;var G=Math.abs(E-l)<=d;if(M){D.position.top=J._convertPositionTo("relative",{top:F,left:0}).top-J.margins.top}if(a){D.position.top=J._convertPositionTo("relative",{top:C-J.helperProportions.height,left:0}).top-J.margins.top}if(H){D.position.left=J._convertPositionTo("relative",{top:0,left:t}).left-J.margins.left}if(G){D.position.left=J._convertPositionTo("relative",{top:0,left:E-J.helperProportions.width}).left-J.margins.left}}if(!J.snapElements[o].snapping&&(M||a||H||G||I)){(J.options.snap.snap&&J.options.snap.snap.call(J.element,r,b.extend(J._uiHash(),{snapItem:J.snapElements[o].item})))}J.snapElements[o].snapping=(M||a||H||G||I)}}});b.ui.plugin.add("draggable","stack",{start:function(a,h){var f=b(this).data("draggable").options;var g=b.makeArray(b(f.stack.group)).sort(function(c,d){return(parseInt(b(c).css("zIndex"),10)||f.stack.min)-(parseInt(b(d).css("zIndex"),10)||f.stack.min)});b(g).each(function(c){this.style.zIndex=f.stack.min+c});this[0].style.zIndex=f.stack.min+g.length}});b.ui.plugin.add("draggable","zIndex",{start:function(h,g){var a=b(g.helper),f=b(this).data("draggable").options;if(a.css("zIndex")){f._zIndex=a.css("zIndex")}a.css("zIndex",f.zIndex)},stop:function(a,f){var e=b(this).data("draggable").options;if(e._zIndex){b(f.helper).css("zIndex",e._zIndex)}}})})(jQuery);(function(b){b.widget("ui.droppable",{_init:function(){var d=this.options,a=d.accept;this.isover=0;this.isout=1;this.options.accept=this.options.accept&&b.isFunction(this.options.accept)?this.options.accept:function(c){return c.is(a)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};b.ui.ddmanager.droppables[this.options.scope]=b.ui.ddmanager.droppables[this.options.scope]||[];b.ui.ddmanager.droppables[this.options.scope].push(this);(this.options.addClasses&&this.element.addClass("ui-droppable"))},destroy:function(){var a=b.ui.ddmanager.droppables[this.options.scope];for(var d=0;d<a.length;d++){if(a[d]==this){a.splice(d,1)}}this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable")},_setData:function(a,d){if(a=="accept"){this.options.accept=d&&b.isFunction(d)?d:function(c){return c.is(d)}}else{b.widget.prototype._setData.apply(this,arguments)}},_activate:function(d){var a=b.ui.ddmanager.current;if(this.options.activeClass){this.element.addClass(this.options.activeClass)}(a&&this._trigger("activate",d,this.ui(a)))},_deactivate:function(d){var a=b.ui.ddmanager.current;if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}(a&&this._trigger("deactivate",d,this.ui(a)))},_over:function(d){var a=b.ui.ddmanager.current;if(!a||(a.currentItem||a.element)[0]==this.element[0]){return}if(this.options.accept.call(this.element[0],(a.currentItem||a.element))){if(this.options.hoverClass){this.element.addClass(this.options.hoverClass)}this._trigger("over",d,this.ui(a))}},_out:function(d){var a=b.ui.ddmanager.current;if(!a||(a.currentItem||a.element)[0]==this.element[0]){return}if(this.options.accept.call(this.element[0],(a.currentItem||a.element))){if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger("out",d,this.ui(a))}},_drop:function(h,g){var a=g||b.ui.ddmanager.current;if(!a||(a.currentItem||a.element)[0]==this.element[0]){return false}var f=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var c=b.data(this,"droppable");if(c.options.greedy&&b.ui.intersect(a,b.extend(c,{offset:c.element.offset()}),c.options.tolerance)){f=true;return false}});if(f){return false}if(this.options.accept.call(this.element[0],(a.currentItem||a.element))){if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger("drop",h,this.ui(a));return this.element}return false},ui:function(a){return{draggable:(a.currentItem||a.element),helper:a.helper,position:a.position,absolutePosition:a.positionAbs,offset:a.positionAbs}}});b.extend(b.ui.droppable,{version:"1.7.2",eventPrefix:"drop",defaults:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"}});b.ui.intersect=function(a,v,r){if(!v.offset){return false}var A=(a.positionAbs||a.position.absolute).left,B=A+a.helperProportions.width,s=(a.positionAbs||a.position.absolute).top,t=s+a.helperProportions.height;var y=v.offset.left,C=y+v.proportions.width,l=v.offset.top,u=l+v.proportions.height;switch(r){case"fit":return(y<A&&B<C&&l<s&&t<u);break;case"intersect":return(y<A+(a.helperProportions.width/2)&&B-(a.helperProportions.width/2)<C&&l<s+(a.helperProportions.height/2)&&t-(a.helperProportions.height/2)<u);break;case"pointer":var x=((a.positionAbs||a.position.absolute).left+(a.clickOffset||a.offset.click).left),w=((a.positionAbs||a.position.absolute).top+(a.clickOffset||a.offset.click).top),z=b.ui.isOver(w,x,l,y,v.proportions.height,v.proportions.width);return z;break;case"touch":return((s>=l&&s<=u)||(t>=l&&t<=u)||(s<l&&t>u))&&((A>=y&&A<=C)||(B>=y&&B<=C)||(A<y&&B>C));break;default:return false;break}};b.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(l,j){var a=b.ui.ddmanager.droppables[l.options.scope];var k=j?j.type:null;var i=(l.currentItem||l.element).find(":data(droppable)").andSelf();droppablesLoop:for(var m=0;m<a.length;m++){if(a[m].options.disabled||(l&&!a[m].options.accept.call(a[m].element[0],(l.currentItem||l.element)))){continue}for(var n=0;n<i.length;n++){if(i[n]==a[m].element[0]){a[m].proportions.height=0;continue droppablesLoop}}a[m].visible=a[m].element.css("display")!="none";if(!a[m].visible){continue}a[m].offset=a[m].element.offset();a[m].proportions={width:a[m].element[0].offsetWidth,height:a[m].element[0].offsetHeight};if(k=="mousedown"){a[m]._activate.call(a[m],j)}}},drop:function(a,f){var e=false;b.each(b.ui.ddmanager.droppables[a.options.scope],function(){if(!this.options){return}if(!this.options.disabled&&this.visible&&b.ui.intersect(a,this,this.options.tolerance)){e=this._drop.call(this,f)}if(!this.options.disabled&&this.visible&&this.options.accept.call(this.element[0],(a.currentItem||a.element))){this.isout=1;this.isover=0;this._deactivate.call(this,f)}});return e},drag:function(a,d){if(a.options.refreshPositions){b.ui.ddmanager.prepareOffsets(a,d)}b.each(b.ui.ddmanager.droppables[a.options.scope],function(){if(this.options.disabled||this.greedyChild||!this.visible){return}var i=b.ui.intersect(a,this,this.options.tolerance);var c=!i&&this.isover==1?"isout":(i&&this.isover==0?"isover":null);if(!c){return}var h;if(this.options.greedy){var j=this.element.parents(":data(droppable):eq(0)");if(j.length){h=b.data(j[0],"droppable");h.greedyChild=(c=="isover"?1:0)}}if(h&&c=="isover"){h.isover=0;h.isout=1;h._out.call(h,d)}this[c]=1;this[c=="isout"?"isover":"isout"]=0;this[c=="isover"?"_over":"_out"].call(this,d);if(h&&c=="isout"){h.isout=0;h.isover=1;h._over.call(h,d)}})}}})(jQuery);(function(f){f.widget("ui.resizable",f.extend({},f.ui.mouse,{_init:function(){var m=this,b=this.options;this.element.addClass("ui-resizable");f.extend(this,{_aspectRatio:!!(b.aspectRatio),aspectRatio:b.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:b.helper||b.ghost||b.animate?b.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){if(/relative/.test(this.element.css("position"))&&f.browser.opera){this.element.css({position:"relative",top:"auto",left:"auto"})}this.element.wrap(f('<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=true;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=b.handles||(!f(".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 a=this.handles.split(",");this.handles={};for(var l=0;l<a.length;l++){var c=f.trim(a[l]),n="ui-resizable-"+c;var i=f('<div class="ui-resizable-handle '+n+'"></div>');if(/sw|se|ne|nw/.test(c)){i.css({zIndex:++b.zIndex})}if("se"==c){i.addClass("ui-icon ui-icon-gripsmall-diagonal-se")}this.handles[c]=".ui-resizable-"+c;this.element.append(i)}}this._renderAxis=function(j){j=j||this.element;for(var g in this.handles){if(this.handles[g].constructor==String){this.handles[g]=f(this.handles[g],this.element).show()}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var q=f(this.handles[g],this.element),k=0;k=/sw|ne|nw|se|n|s/.test(g)?q.outerHeight():q.outerWidth();var h=["padding",/ne|nw|n/.test(g)?"Top":/se|sw|s/.test(g)?"Bottom":/^e$/.test(g)?"Right":"Left"].join("");j.css(h,k);this._proportionallyResize()}if(!f(this.handles[g]).length){continue}}};this._renderAxis(this.element);this._handles=f(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!m.resizing){if(this.className){var g=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}m.axis=g&&g[1]?g[1]:"se"}});if(b.autoHide){this._handles.hide();f(this.element).addClass("ui-resizable-autohide").hover(function(){f(this).removeClass("ui-resizable-autohide");m._handles.show()},function(){if(!m.resizing){f(this).addClass("ui-resizable-autohide");m._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var b=function(c){f(c).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 a=this.element;a.parent().append(this.originalElement.css({position:a.css("position"),width:a.outerWidth(),height:a.outerHeight(),top:a.css("top"),left:a.css("left")})).end().remove()}this.originalElement.css("resize",this.originalResizeStyle);b(this.originalElement)},_mouseCapture:function(b){var a=false;for(var c in this.handles){if(f(this.handles[c])[0]==b.target){a=true}}return this.options.disabled||!!a},_mouseStart:function(l){var b=this.options,m=this.element.position(),n=this.element;this.resizing=true;this.documentScroll={top:f(document).scrollTop(),left:f(document).scrollLeft()};if(n.is(".ui-draggable")||(/absolute/).test(n.css("position"))){n.css({position:"absolute",top:m.top,left:m.left})}if(f.browser.opera&&(/relative/).test(n.css("position"))){n.css({position:"relative",top:"auto",left:"auto"})}this._renderProxy();var a=d(this.helper.css("left")),k=d(this.helper.css("top"));if(b.containment){a+=f(b.containment).scrollLeft()||0;k+=f(b.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:a,top:k};this.size=this._helper?{width:n.outerWidth(),height:n.outerHeight()}:{width:n.width(),height:n.height()};this.originalSize=this._helper?{width:n.outerWidth(),height:n.outerHeight()}:{width:n.width(),height:n.height()};this.originalPosition={left:a,top:k};this.sizeDiff={width:n.outerWidth()-n.width(),height:n.outerHeight()-n.height()};this.originalMousePosition={left:l.pageX,top:l.pageY};this.aspectRatio=(typeof b.aspectRatio=="number")?b.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);var c=f(".ui-resizable-"+this.axis).css("cursor");f("body").css("cursor",c=="auto"?this.axis+"-resize":c);n.addClass("ui-resizable-resizing");this._propagate("start",l);return true},_mouseDrag:function(z){var w=this.helper,x=this.options,r={},b=this,u=this.originalMousePosition,o=this.axis;var a=(z.pageX-u.left)||0,c=(z.pageY-u.top)||0;var v=this._change[o];if(!v){return false}var s=v.apply(this,[z,a,c]),t=f.browser.msie&&f.browser.version<7,y=this.sizeDiff;if(this._aspectRatio||z.shiftKey){s=this._updateRatio(s,z)}s=this._respectSize(s,z);this._propagate("resize",z);w.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});if(!this._helper&&this._proportionallyResizeElements.length){this._proportionallyResize()}this._updateCache(s);this._trigger("resize",z,this.ui());return false},_mouseStop:function(r){this.resizing=false;var q=this.options,b=this;if(this._helper){var s=this._proportionallyResizeElements,u=s.length&&(/textarea/i).test(s[0].nodeName),t=u&&f.ui.hasScroll(s[0],"left")?0:b.sizeDiff.height,n=u?0:b.sizeDiff.width;var a={width:(b.size.width-n),height:(b.size.height-t)},o=(parseInt(b.element.css("left"),10)+(b.position.left-b.originalPosition.left))||null,c=(parseInt(b.element.css("top"),10)+(b.position.top-b.originalPosition.top))||null;if(!q.animate){this.element.css(f.extend(a,{top:c,left:o}))}b.helper.height(b.size.height);b.helper.width(b.size.width);if(this._helper&&!q.animate){this._proportionallyResize()}}f("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",r);if(this._helper){this.helper.remove()}return false},_updateCache:function(b){var a=this.options;this.offset=this.helper.offset();if(e(b.left)){this.position.left=b.left}if(e(b.top)){this.position.top=b.top}if(e(b.height)){this.size.height=b.height}if(e(b.width)){this.size.width=b.width}},_updateRatio:function(c,j){var b=this.options,a=this.position,k=this.size,l=this.axis;if(c.height){c.width=(k.height*this.aspectRatio)}else{if(c.width){c.height=(k.width/this.aspectRatio)}}if(l=="sw"){c.left=a.left+(k.width-c.width);c.top=null}if(l=="nw"){c.top=a.top+(k.height-c.height);c.left=a.left+(k.width-c.width)}return c},_respectSize:function(v,A){var x=this.helper,y=this.options,b=this._aspectRatio||A.shiftKey,c=this.axis,D=e(v.width)&&y.maxWidth&&(y.maxWidth<v.width),u=e(v.height)&&y.maxHeight&&(y.maxHeight<v.height),z=e(v.width)&&y.minWidth&&(y.minWidth>v.width),a=e(v.height)&&y.minHeight&&(y.minHeight>v.height);if(z){v.width=y.minWidth}if(a){v.height=y.minHeight}if(D){v.width=y.maxWidth}if(u){v.height=y.maxHeight}var B=this.originalPosition.left+this.originalSize.width,o=this.position.top+this.size.height;var w=/sw|nw|w/.test(c),C=/nw|ne|n/.test(c);if(z&&w){v.left=B-y.minWidth}if(D&&w){v.left=B-y.maxWidth}if(a&&C){v.top=o-y.minHeight}if(u&&C){v.top=o-y.maxHeight}var t=!v.width&&!v.height;if(t&&!v.left&&v.top){v.top=null}else{if(t&&!v.top&&v.left){v.left=null}}return v},_proportionallyResize:function(){var a=this.options;if(!this._proportionallyResizeElements.length){return}var i=this.helper||this.element;for(var k=0;k<this._proportionallyResizeElements.length;k++){var c=this._proportionallyResizeElements[k];if(!this.borderDif){var l=[c.css("borderTopWidth"),c.css("borderRightWidth"),c.css("borderBottomWidth"),c.css("borderLeftWidth")],b=[c.css("paddingTop"),c.css("paddingRight"),c.css("paddingBottom"),c.css("paddingLeft")];this.borderDif=f.map(l,function(j,g){var h=parseInt(j,10)||0,o=parseInt(b[g],10)||0;return h+o})}if(f.browser.msie&&!(!(f(i).is(":hidden")||f(i).parents(":hidden").length))){continue}c.css({height:(i.height()-this.borderDif[0]-this.borderDif[2])||0,width:(i.width()-this.borderDif[1]-this.borderDif[3])||0})}},_renderProxy:function(){var i=this.element,a=this.options;this.elementOffset=i.offset();if(this._helper){this.helper=this.helper||f('<div style="overflow:hidden;"></div>');var j=f.browser.msie&&f.browser.version<7,c=(j?1:0),b=(j?2:-1);this.helper.addClass(this._helper).css({width:this.element.outerWidth()+b,height:this.element.outerHeight()+b,position:"absolute",left:this.elementOffset.left-c+"px",top:this.elementOffset.top-c+"px",zIndex:++a.zIndex});this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(a,b,c){return{width:this.originalSize.width+b}},w:function(c,k,l){var a=this.options,j=this.originalSize,b=this.originalPosition;return{left:b.left+k,width:j.width-k}},n:function(c,k,l){var a=this.options,j=this.originalSize,b=this.originalPosition;return{top:b.top+l,height:j.height-l}},s:function(a,b,c){return{height:this.originalSize.height+c}},se:function(a,b,c){return f.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[a,b,c]))},sw:function(a,b,c){return f.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[a,b,c]))},ne:function(a,b,c){return f.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[a,b,c]))},nw:function(a,b,c){return f.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[a,b,c]))}},_propagate:function(a,b){f.ui.plugin.call(this,a,[b,this.ui()]);(a!="resize"&&this._trigger(a,b,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}}}));f.extend(f.ui.resizable,{version:"1.7.2",eventPrefix:"resize",defaults:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,cancel:":input,option",containment:false,delay:0,distance:1,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1000}});f.ui.plugin.add("resizable","alsoResize",{start:function(c,b){var h=f(this).data("resizable"),a=h.options;_store=function(g){f(g).each(function(){f(this).data("resizable-alsoresize",{width:parseInt(f(this).width(),10),height:parseInt(f(this).height(),10),left:parseInt(f(this).css("left"),10),top:parseInt(f(this).css("top"),10)})})};if(typeof(a.alsoResize)=="object"&&!a.alsoResize.parentNode){if(a.alsoResize.length){a.alsoResize=a.alsoResize[0];_store(a.alsoResize)}else{f.each(a.alsoResize,function(j,g){_store(j)})}}else{_store(a.alsoResize)}},resize:function(n,l){var o=f(this).data("resizable"),c=o.options,m=o.originalSize,a=o.originalPosition;var b={height:(o.size.height-m.height)||0,width:(o.size.width-m.width)||0,top:(o.position.top-a.top)||0,left:(o.position.left-a.left)||0},q=function(h,g){f(h).each(function(){var j=f(this),i=f(this).data("resizable-alsoresize"),k={},r=g&&g.length?g:["width","height","top","left"];f.each(r||["width","height","top","left"],function(w,u){var v=(i[u]||0)+(b[u]||0);if(v&&v>=0){k[u]=v||null}});if(/relative/.test(j.css("position"))&&f.browser.opera){o._revertToRelativePosition=true;j.css({position:"absolute",top:"auto",left:"auto"})}j.css(k)})};if(typeof(c.alsoResize)=="object"&&!c.alsoResize.nodeType){f.each(c.alsoResize,function(h,g){q(h,g)})}else{q(c.alsoResize)}},stop:function(b,a){var c=f(this).data("resizable");if(c._revertToRelativePosition&&f.browser.opera){c._revertToRelativePosition=false;el.css({position:"relative"})}f(this).removeData("resizable-alsoresize-start")}});f.ui.plugin.add("resizable","animate",{stop:function(s,b){var a=f(this).data("resizable"),r=a.options;var t=a._proportionallyResizeElements,w=t.length&&(/textarea/i).test(t[0].nodeName),v=w&&f.ui.hasScroll(t[0],"left")?0:a.sizeDiff.height,o=w?0:a.sizeDiff.width;var u={width:(a.size.width-o),height:(a.size.height-v)},q=(parseInt(a.element.css("left"),10)+(a.position.left-a.originalPosition.left))||null,c=(parseInt(a.element.css("top"),10)+(a.position.top-a.originalPosition.top))||null;a.element.animate(f.extend(u,c&&q?{top:c,left:q}:{}),{duration:r.animateDuration,easing:r.animateEasing,step:function(){var g={width:parseInt(a.element.css("width"),10),height:parseInt(a.element.css("height"),10),top:parseInt(a.element.css("top"),10),left:parseInt(a.element.css("left"),10)};if(t&&t.length){f(t[0]).css({width:g.width,height:g.height})}a._updateCache(g);a._propagate("resize",s)}})}});f.ui.plugin.add("resizable","containment",{start:function(A,b){var C=f(this).data("resizable"),w=C.options,u=C.element;var z=w.containment,v=(z instanceof f)?z.get(0):(/parent/.test(z))?u.parent().get(0):z;if(!v){return}C.containerElement=f(v);if(/document/.test(z)||z==document){C.containerOffset={left:0,top:0};C.containerPosition={left:0,top:0};C.parentData={element:f(document),left:0,top:0,width:f(document).width(),height:f(document).height()||document.body.parentNode.scrollHeight}}else{var o=f(v),x=[];f(["Top","Right","Left","Bottom"]).each(function(g,h){x[g]=d(o.css("padding"+h))});C.containerOffset=o.offset();C.containerPosition=o.position();C.containerSize={height:(o.innerHeight()-x[3]),width:(o.innerWidth()-x[1])};var c=C.containerOffset,B=C.containerSize.height,t=C.containerSize.width,y=(f.ui.hasScroll(v,"left")?v.scrollWidth:t),a=(f.ui.hasScroll(v)?v.scrollHeight:B);C.parentData={element:v,left:c.left,top:c.top,width:y,height:a}}},resize:function(A,c){var D=f(this).data("resizable"),y=D.options,B=D.containerSize,o=D.containerOffset,u=D.size,t=D.position,b=D._aspectRatio||A.shiftKey,C={top:0,left:0},z=D.containerElement;if(z[0]!=document&&(/static/).test(z.css("position"))){C=o}if(t.left<(D._helper?o.left:0)){D.size.width=D.size.width+(D._helper?(D.position.left-o.left):(D.position.left-C.left));if(b){D.size.height=D.size.width/y.aspectRatio}D.position.left=y.helper?o.left:0}if(t.top<(D._helper?o.top:0)){D.size.height=D.size.height+(D._helper?(D.position.top-o.top):D.position.top);if(b){D.size.width=D.size.height*y.aspectRatio}D.position.top=D._helper?o.top:0}D.offset.left=D.parentData.left+D.position.left;D.offset.top=D.parentData.top+D.position.top;var v=Math.abs((D._helper?D.offset.left-C.left:(D.offset.left-C.left))+D.sizeDiff.width),a=Math.abs((D._helper?D.offset.top-C.top:(D.offset.top-o.top))+D.sizeDiff.height);var w=D.containerElement.get(0)==D.element.parent().get(0),x=/relative|absolute/.test(D.containerElement.css("position"));if(w&&x){v-=D.parentData.left}if(v+D.size.width>=D.parentData.width){D.size.width=D.parentData.width-v;if(b){D.size.height=D.size.width/D.aspectRatio}}if(a+D.size.height>=D.parentData.height){D.size.height=D.parentData.height-a;if(b){D.size.width=D.size.height*D.aspectRatio}}},stop:function(w,h){var b=f(this).data("resizable"),v=b.options,r=b.position,o=b.containerOffset,x=b.containerPosition,u=b.containerElement;var t=f(b.helper),a=t.offset(),c=t.outerWidth()-b.sizeDiff.width,s=t.outerHeight()-b.sizeDiff.height;if(b._helper&&!v.animate&&(/relative/).test(u.css("position"))){f(this).css({left:a.left-x.left-o.left,width:c,height:s})}if(b._helper&&!v.animate&&(/static/).test(u.css("position"))){f(this).css({left:a.left-x.left-o.left,width:c,height:s})}}});f.ui.plugin.add("resizable","ghost",{start:function(c,b){var j=f(this).data("resizable"),a=j.options,i=j.size;j.ghost=j.originalElement.clone();j.ghost.css({opacity:0.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof a.ghost=="string"?a.ghost:"");j.ghost.appendTo(j.helper)},resize:function(c,b){var h=f(this).data("resizable"),a=h.options;if(h.ghost){h.ghost.css({position:"relative",height:h.size.height,width:h.size.width})}},stop:function(c,b){var h=f(this).data("resizable"),a=h.options;if(h.ghost&&h.helper){h.helper.get(0).removeChild(h.ghost.get(0))}}});f.ui.plugin.add("resizable","grid",{resize:function(w,c){var a=f(this).data("resizable"),t=a.options,q=a.size,s=a.originalSize,r=a.originalPosition,b=a.axis,o=t._aspectRatio||w.shiftKey;t.grid=typeof t.grid=="number"?[t.grid,t.grid]:t.grid;var u=Math.round((q.width-s.width)/(t.grid[0]||1))*(t.grid[0]||1),v=Math.round((q.height-s.height)/(t.grid[1]||1))*(t.grid[1]||1);if(/^(se|s|e)$/.test(b)){a.size.width=s.width+u;a.size.height=s.height+v}else{if(/^(ne)$/.test(b)){a.size.width=s.width+u;a.size.height=s.height+v;a.position.top=r.top-v}else{if(/^(sw)$/.test(b)){a.size.width=s.width+u;a.size.height=s.height+v;a.position.left=r.left-u}else{a.size.width=s.width+u;a.size.height=s.height+v;a.position.top=r.top-v;a.position.left=r.left-u}}}}});var d=function(a){return parseInt(a,10)||0};var e=function(a){return !isNaN(parseInt(a,10))}})(jQuery);(function(b){b.widget("ui.selectable",b.extend({},b.ui.mouse,{_init:function(){var a=this;this.element.addClass("ui-selectable");this.dragged=false;var d;this.refresh=function(){d=b(a.options.filter,a.element[0]);d.each(function(){var f=b(this);var c=f.offset();b.data(this,"selectable-item",{element:this,$element:f,left:c.left,top:c.top,right:c.left+f.outerWidth(),bottom:c.top+f.outerHeight(),startselected:false,selected:f.hasClass("ui-selected"),selecting:f.hasClass("ui-selecting"),unselecting:f.hasClass("ui-unselecting")})})};this.refresh();this.selectees=d.addClass("ui-selectee");this._mouseInit();this.helper=b(document.createElement("div")).css({border:"1px dotted black"}).addClass("ui-selectable-helper")},destroy:function(){this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy()},_mouseStart:function(e){var a=this;this.opos=[e.pageX,e.pageY];if(this.options.disabled){return}var f=this.options;this.selectees=b(f.filter,this.element[0]);this._trigger("start",e);b(f.appendTo).append(this.helper);this.helper.css({"z-index":100,position:"absolute",left:e.clientX,top:e.clientY,width:0,height:0});if(f.autoRefresh){this.refresh()}this.selectees.filter(".ui-selected").each(function(){var c=b.data(this,"selectable-item");c.startselected=true;if(!e.metaKey){c.$element.removeClass("ui-selected");c.selected=false;c.$element.addClass("ui-unselecting");c.unselecting=true;a._trigger("unselecting",e,{unselecting:c.element})}});b(e.target).parents().andSelf().each(function(){var c=b.data(this,"selectable-item");if(c){c.$element.removeClass("ui-unselecting").addClass("ui-selecting");c.unselecting=false;c.selecting=true;c.selected=true;a._trigger("selecting",e,{selecting:c.element});return false}})},_mouseDrag:function(j){var q=this;this.dragged=true;if(this.options.disabled){return}var n=this.options;var o=this.opos[0],k=this.opos[1],a=j.pageX,l=j.pageY;if(o>a){var m=a;a=o;o=m}if(k>l){var m=l;l=k;k=m}this.helper.css({left:o,top:k,width:a-o,height:l-k});this.selectees.each(function(){var d=b.data(this,"selectable-item");if(!d||d.element==q.element[0]){return}var c=false;if(n.tolerance=="touch"){c=(!(d.left>a||d.right<o||d.top>l||d.bottom<k))}else{if(n.tolerance=="fit"){c=(d.left>o&&d.right<a&&d.top>k&&d.bottom<l)}}if(c){if(d.selected){d.$element.removeClass("ui-selected");d.selected=false}if(d.unselecting){d.$element.removeClass("ui-unselecting");d.unselecting=false}if(!d.selecting){d.$element.addClass("ui-selecting");d.selecting=true;q._trigger("selecting",j,{selecting:d.element})}}else{if(d.selecting){if(j.metaKey&&d.startselected){d.$element.removeClass("ui-selecting");d.selecting=false;d.$element.addClass("ui-selected");d.selected=true}else{d.$element.removeClass("ui-selecting");d.selecting=false;if(d.startselected){d.$element.addClass("ui-unselecting");d.unselecting=true}q._trigger("unselecting",j,{unselecting:d.element})}}if(d.selected){if(!j.metaKey&&!d.startselected){d.$element.removeClass("ui-selected");d.selected=false;d.$element.addClass("ui-unselecting");d.unselecting=true;q._trigger("unselecting",j,{unselecting:d.element})}}}});return false},_mouseStop:function(e){var a=this;this.dragged=false;var f=this.options;b(".ui-unselecting",this.element[0]).each(function(){var c=b.data(this,"selectable-item");c.$element.removeClass("ui-unselecting");c.unselecting=false;c.startselected=false;a._trigger("unselected",e,{unselected:c.element})});b(".ui-selecting",this.element[0]).each(function(){var c=b.data(this,"selectable-item");c.$element.removeClass("ui-selecting").addClass("ui-selected");c.selecting=false;c.selected=true;c.startselected=true;a._trigger("selected",e,{selected:c.element})});this._trigger("stop",e);this.helper.remove();return false}}));b.extend(b.ui.selectable,{version:"1.7.2",defaults:{appendTo:"body",autoRefresh:true,cancel:":input,option",delay:0,distance:0,filter:"*",tolerance:"touch"}})})(jQuery);(function(b){b.widget("ui.sortable",b.extend({},b.ui.mouse,{_init:function(){var a=this.options;this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?(/left|right/).test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--){this.items[a].item.removeData("sortable-item")}},_mouseCapture:function(j,i){if(this.reverting){return false}if(this.options.disabled||this.options.type=="static"){return false}this._refreshItems(j);var k=null,l=this,a=b(j.target).parents().each(function(){if(b.data(this,"sortable-item")==l){k=b(this);return false}});if(b.data(j.target,"sortable-item")==l){k=b(j.target)}if(!k){return false}if(this.options.handle&&!i){var h=false;b(this.options.handle,k).find("*").andSelf().each(function(){if(this==j.target){h=true}});if(!h){return false}}this.currentItem=k;this._removeCurrentsFromItems();return true},_mouseStart:function(j,i,a){var h=this.options,l=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(j);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");b.extend(this.offset,{click:{left:j.pageX-this.offset.left,top:j.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(j);this.originalPageX=j.pageX;this.originalPageY=j.pageY;if(h.cursorAt){this._adjustOffsetFromHelper(h.cursorAt)}this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};if(this.helper[0]!=this.currentItem[0]){this.currentItem.hide()}this._createPlaceholder();if(h.containment){this._setContainment()}if(h.cursor){if(b("body").css("cursor")){this._storedCursor=b("body").css("cursor")}b("body").css("cursor",h.cursor)}if(h.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity")}this.helper.css("opacity",h.opacity)}if(h.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex")}this.helper.css("zIndex",h.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){this.overflowOffset=this.scrollParent.offset()}this._trigger("start",j,this._uiHash());if(!this._preserveHelperProportions){this._cacheHelperProportions()}if(!a){for(var k=this.containers.length-1;k>=0;k--){this.containers[k]._trigger("activate",j,l._uiHash(this))}}if(b.ui.ddmanager){b.ui.ddmanager.current=this}if(b.ui.ddmanager&&!h.dropBehaviour){b.ui.ddmanager.prepareOffsets(this,j)}this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(j);return true},_mouseDrag:function(k){this.position=this._generatePosition(k);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){var j=this.options,a=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-k.pageY<j.scrollSensitivity){this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop+j.scrollSpeed}else{if(k.pageY-this.overflowOffset.top<j.scrollSensitivity){this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop-j.scrollSpeed}}if((this.overflowOffset.left+this.scrollParent[0].offsetWidth)-k.pageX<j.scrollSensitivity){this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft+j.scrollSpeed}else{if(k.pageX-this.overflowOffset.left<j.scrollSensitivity){this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft-j.scrollSpeed}}}else{if(k.pageY-b(document).scrollTop()<j.scrollSensitivity){a=b(document).scrollTop(b(document).scrollTop()-j.scrollSpeed)}else{if(b(window).height()-(k.pageY-b(document).scrollTop())<j.scrollSensitivity){a=b(document).scrollTop(b(document).scrollTop()+j.scrollSpeed)}}if(k.pageX-b(document).scrollLeft()<j.scrollSensitivity){a=b(document).scrollLeft(b(document).scrollLeft()-j.scrollSpeed)}else{if(b(window).width()-(k.pageX-b(document).scrollLeft())<j.scrollSensitivity){a=b(document).scrollLeft(b(document).scrollLeft()+j.scrollSpeed)}}}if(a!==false&&b.ui.ddmanager&&!j.dropBehaviour){b.ui.ddmanager.prepareOffsets(this,k)}}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}for(var m=this.items.length-1;m>=0;m--){var l=this.items[m],n=l.item[0],i=this._intersectsWithPointer(l);if(!i){continue}if(n!=this.currentItem[0]&&this.placeholder[i==1?"next":"prev"]()[0]!=n&&!b.ui.contains(this.placeholder[0],n)&&(this.options.type=="semi-dynamic"?!b.ui.contains(this.element[0],n):true)){this.direction=i==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(l)){this._rearrange(k,l)}else{break}this._trigger("change",k,this._uiHash());break}}this._contactContainers(k);if(b.ui.ddmanager){b.ui.ddmanager.drag(this,k)}this._trigger("sort",k,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(h,g){if(!h){return}if(b.ui.ddmanager&&!this.options.dropBehaviour){b.ui.ddmanager.drop(this,h)}if(this.options.revert){var a=this;var f=a.placeholder.offset();a.reverting=true;b(this.helper).animate({left:f.left-this.offset.parent.left-a.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:f.top-this.offset.parent.top-a.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){a._clear(h)})}else{this._clear(h,g)}return false},cancel:function(){var a=this;if(this.dragging){this._mouseUp();if(this.options.helper=="original"){this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}for(var d=this.containers.length-1;d>=0;d--){this.containers[d]._trigger("deactivate",null,a._uiHash(this));if(this.containers[d].containerCache.over){this.containers[d]._trigger("out",null,a._uiHash(this));this.containers[d].containerCache.over=0}}}if(this.placeholder[0].parentNode){this.placeholder[0].parentNode.removeChild(this.placeholder[0])}if(this.options.helper!="original"&&this.helper&&this.helper[0].parentNode){this.helper.remove()}b.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev){b(this.domPosition.prev).after(this.currentItem)}else{b(this.domPosition.parent).prepend(this.currentItem)}return true},serialize:function(e){var a=this._getItemsAsjQuery(e&&e.connected);var f=[];e=e||{};b(a).each(function(){var c=(b(e.item||this).attr(e.attribute||"id")||"").match(e.expression||(/(.+)[-=_](.+)/));if(c){f.push((e.key||c[1]+"[]")+"="+(e.key&&e.expression?c[1]:c[2]))}});return f.join("&")},toArray:function(e){var a=this._getItemsAsjQuery(e&&e.connected);var f=[];e=e||{};a.each(function(){f.push(b(e.item||this).attr(e.attribute||"id")||"")});return f},_intersectsWith:function(q){var x=this.positionAbs.left,y=x+this.helperProportions.width,r=this.positionAbs.top,s=r+this.helperProportions.height;var w=q.left,z=w+q.width,l=q.top,t=l+q.height;var a=this.offset.click.top,u=this.offset.click.left;var v=(r+a)>l&&(r+a)<t&&(x+u)>w&&(x+u)<z;if(this.options.tolerance=="pointer"||this.options.forcePointerForContainers||(this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>q[this.floating?"width":"height"])){return v}else{return(w<x+(this.helperProportions.width/2)&&y-(this.helperProportions.width/2)<z&&l<r+(this.helperProportions.height/2)&&s-(this.helperProportions.height/2)<t)}},_intersectsWithPointer:function(k){var j=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,k.top,k.height),l=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,k.left,k.width),h=j&&l,a=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection();if(!h){return false}return this.floating?(((i&&i=="right")||a=="down")?2:1):(a&&(a=="down"?2:1))},_intersectsWithSides:function(h){var j=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,h.top+(h.height/2),h.height),i=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,h.left+(h.width/2),h.width),a=this._getDragVerticalDirection(),g=this._getDragHorizontalDirection();if(this.floating&&g){return((g=="right"&&i)||(g=="left"&&!i))}else{return a&&((a=="down"&&j)||(a=="up"&&!j))}},_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return a!=0&&(a>0?"down":"up")},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return a!=0&&(a>0?"right":"left")},refresh:function(a){this._refreshItems(a);this.refreshPositions()},_connectWith:function(){var a=this.options;return a.connectWith.constructor==String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(s){var a=this;var m=[];var o=[];var j=this._connectWith();if(j&&s){for(var q=j.length-1;q>=0;q--){var i=b(j[q]);for(var r=i.length-1;r>=0;r--){var n=b.data(i[r],"sortable");if(n&&n!=this&&!n.options.disabled){o.push([b.isFunction(n.options.items)?n.options.items.call(n.element):b(n.options.items,n.element).not(".ui-sortable-helper"),n])}}}}o.push([b.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):b(this.options.items,this.element).not(".ui-sortable-helper"),this]);for(var q=o.length-1;q>=0;q--){o[q][0].each(function(){m.push(this)})}return b(m)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data(sortable-item)");for(var f=0;f<this.items.length;f++){for(var a=0;a<e.length;a++){if(e[a]==this.items[f].item[0]){this.items.splice(f,1)}}}},_refreshItems:function(z){this.items=[];this.containers=[this];var t=this.items;var a=this;var v=[[b.isFunction(this.options.items)?this.options.items.call(this.element[0],z,{item:this.currentItem}):b(this.options.items,this.element),this]];var r=this._connectWith();if(r){for(var w=r.length-1;w>=0;w--){var q=b(r[w]);for(var x=q.length-1;x>=0;x--){var u=b.data(q[x],"sortable");if(u&&u!=this&&!u.options.disabled){v.push([b.isFunction(u.options.items)?u.options.items.call(u.element[0],z,{item:this.currentItem}):b(u.options.items,u.element),u]);this.containers.push(u)}}}}for(var w=v.length-1;w>=0;w--){var s=v[w][1];var y=v[w][0];for(var x=0,j=y.length;x<j;x++){var i=b(y[x]);i.data("sortable-item",s);t.push({item:i,instance:s,width:0,height:0,left:0,top:0})}}},refreshPositions:function(a){if(this.offsetParent&&this.helper){this.offset.parent=this._getParentOffset()}for(var i=this.items.length-1;i>=0;i--){var h=this.items[i];if(h.instance!=this.currentContainer&&this.currentContainer&&h.item[0]!=this.currentItem[0]){continue}var j=this.options.toleranceElement?b(this.options.toleranceElement,h.item):h.item;if(!a){h.width=j.outerWidth();h.height=j.outerHeight()}var g=j.offset();h.left=g.left;h.top=g.top}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(var i=this.containers.length-1;i>=0;i--){var g=this.containers[i].element.offset();this.containers[i].containerCache.left=g.left;this.containers[i].containerCache.top=g.top;this.containers[i].containerCache.width=this.containers[i].element.outerWidth();this.containers[i].containerCache.height=this.containers[i].element.outerHeight()}}},_createPlaceholder:function(g){var a=g||this,f=a.options;if(!f.placeholder||f.placeholder.constructor==String){var h=f.placeholder;f.placeholder={element:function(){var c=b(document.createElement(a.currentItem[0].nodeName)).addClass(h||a.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!h){c.style.visibility="hidden"}return c},update:function(d,c){if(h&&!f.forcePlaceholderSize){return}if(!c.height()){c.height(a.currentItem.innerHeight()-parseInt(a.currentItem.css("paddingTop")||0,10)-parseInt(a.currentItem.css("paddingBottom")||0,10))}if(!c.width()){c.width(a.currentItem.innerWidth()-parseInt(a.currentItem.css("paddingLeft")||0,10)-parseInt(a.currentItem.css("paddingRight")||0,10))}}}}a.placeholder=b(f.placeholder.element.call(a.element,a.currentItem));a.currentItem.after(a.placeholder);f.placeholder.update(a,a.placeholder)},_contactContainers:function(m){for(var n=this.containers.length-1;n>=0;n--){if(this._intersectsWith(this.containers[n].containerCache)){if(!this.containers[n].containerCache.over){if(this.currentContainer!=this.containers[n]){var i=10000;var j=null;var l=this.positionAbs[this.containers[n].floating?"left":"top"];for(var a=this.items.length-1;a>=0;a--){if(!b.ui.contains(this.containers[n].element[0],this.items[a].item[0])){continue}var k=this.items[a][this.containers[n].floating?"left":"top"];if(Math.abs(k-l)<i){i=Math.abs(k-l);j=this.items[a]}}if(!j&&!this.options.dropOnEmpty){continue}this.currentContainer=this.containers[n];j?this._rearrange(m,j,null,true):this._rearrange(m,null,this.containers[n].element,true);this._trigger("change",m,this._uiHash());this.containers[n]._trigger("change",m,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder)}this.containers[n]._trigger("over",m,this._uiHash(this));this.containers[n].containerCache.over=1}}else{if(this.containers[n].containerCache.over){this.containers[n]._trigger("out",m,this._uiHash(this));this.containers[n].containerCache.over=0}}}},_createHelper:function(f){var e=this.options;var a=b.isFunction(e.helper)?b(e.helper.apply(this.element[0],[f,this.currentItem])):(e.helper=="clone"?this.currentItem.clone():this.currentItem);if(!a.parents("body").length){b(e.appendTo!="parent"?e.appendTo:this.currentItem[0].parentNode)[0].appendChild(a[0])}if(a[0]==this.currentItem[0]){this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}}if(a[0].style.width==""||e.forceHelperSize){a.width(this.currentItem.width())}if(a[0].style.height==""||e.forceHelperSize){a.height(this.currentItem.height())}return a},_adjustOffsetFromHelper:function(a){if(a.left!=undefined){this.offset.click.left=a.left+this.margins.left}if(a.right!=undefined){this.offset.click.left=this.helperProportions.width-a.right+this.margins.left}if(a.top!=undefined){this.offset.click.top=a.top+this.margins.top}if(a.bottom!=undefined){this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)){a={top:0,left:0}}return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.currentItem.css("marginLeft"),10)||0),top:(parseInt(this.currentItem.css("marginTop"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var f=this.options;if(f.containment=="parent"){f.containment=this.helper[0].parentNode}if(f.containment=="document"||f.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,b(f.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b(f.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(f.containment)){var h=b(f.containment)[0];var g=b(f.containment).offset();var a=(b(h).css("overflow")!="hidden");this.containment=[g.left+(parseInt(b(h).css("borderLeftWidth"),10)||0)+(parseInt(b(h).css("paddingLeft"),10)||0)-this.margins.left,g.top+(parseInt(b(h).css("borderTopWidth"),10)||0)+(parseInt(b(h).css("paddingTop"),10)||0)-this.margins.top,g.left+(a?Math.max(h.scrollWidth,h.offsetWidth):h.offsetWidth)-(parseInt(b(h).css("borderLeftWidth"),10)||0)-(parseInt(b(h).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,g.top+(a?Math.max(h.scrollHeight,h.offsetHeight):h.offsetHeight)-(parseInt(b(h).css("borderTopWidth"),10)||0)-(parseInt(b(h).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(j,d){if(!d){d=this.position}var l=j=="absolute"?1:-1;var k=this.options,a=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,i=(/(html|body)/i).test(a[0].tagName);return{top:(d.top+this.offset.relative.top*l+this.offset.parent.top*l-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(i?0:a.scrollTop()))*l)),left:(d.left+this.offset.relative.left*l+this.offset.parent.left*l-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():i?0:a.scrollLeft())*l))}},_generatePosition:function(n){var k=this.options,a=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,j=(/(html|body)/i).test(a[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var o=n.pageX;var q=n.pageY;if(this.originalPosition){if(this.containment){if(n.pageX-this.offset.click.left<this.containment[0]){o=this.containment[0]+this.offset.click.left}if(n.pageY-this.offset.click.top<this.containment[1]){q=this.containment[1]+this.offset.click.top}if(n.pageX-this.offset.click.left>this.containment[2]){o=this.containment[2]+this.offset.click.left}if(n.pageY-this.offset.click.top>this.containment[3]){q=this.containment[3]+this.offset.click.top}}if(k.grid){var l=this.originalPageY+Math.round((q-this.originalPageY)/k.grid[1])*k.grid[1];q=this.containment?(!(l-this.offset.click.top<this.containment[1]||l-this.offset.click.top>this.containment[3])?l:(!(l-this.offset.click.top<this.containment[1])?l-k.grid[1]:l+k.grid[1])):l;var m=this.originalPageX+Math.round((o-this.originalPageX)/k.grid[0])*k.grid[0];o=this.containment?(!(m-this.offset.click.left<this.containment[0]||m-this.offset.click.left>this.containment[2])?m:(!(m-this.offset.click.left<this.containment[0])?m-k.grid[0]:m+k.grid[0])):m}}return{top:(q-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(j?0:a.scrollTop())))),left:(o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():j?0:a.scrollLeft())))}},_rearrange:function(h,i,l,j){l?l[0].appendChild(this.placeholder[0]):i.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction=="down"?i.item[0]:i.item[0].nextSibling));this.counter=this.counter?++this.counter:1;var k=this,a=this.counter;window.setTimeout(function(){if(a==k.counter){k.refreshPositions(!j)}},0)},_clear:function(i,h){this.reverting=false;var g=[],a=this;if(!this._noFinalSort&&this.currentItem[0].parentNode){this.placeholder.before(this.currentItem)}this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var j in this._storedCSS){if(this._storedCSS[j]=="auto"||this._storedCSS[j]=="static"){this._storedCSS[j]=""}}this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}if(this.fromOutside&&!h){g.push(function(c){this._trigger("receive",c,this._uiHash(this.fromOutside))})}if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!h){g.push(function(c){this._trigger("update",c,this._uiHash())})}if(!b.ui.contains(this.element[0],this.currentItem[0])){if(!h){g.push(function(c){this._trigger("remove",c,this._uiHash())})}for(var j=this.containers.length-1;j>=0;j--){if(b.ui.contains(this.containers[j].element[0],this.currentItem[0])&&!h){g.push((function(c){return function(d){c._trigger("receive",d,this._uiHash(this))}}).call(this,this.containers[j]));g.push((function(c){return function(d){c._trigger("update",d,this._uiHash(this))}}).call(this,this.containers[j]))}}}for(var j=this.containers.length-1;j>=0;j--){if(!h){g.push((function(c){return function(d){c._trigger("deactivate",d,this._uiHash(this))}}).call(this,this.containers[j]))}if(this.containers[j].containerCache.over){g.push((function(c){return function(d){c._trigger("out",d,this._uiHash(this))}}).call(this,this.containers[j]));this.containers[j].containerCache.over=0}}if(this._storedCursor){b("body").css("cursor",this._storedCursor)}if(this._storedOpacity){this.helper.css("opacity",this._storedOpacity)}if(this._storedZIndex){this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex)}this.dragging=false;if(this.cancelHelperRemoval){if(!h){this._trigger("beforeStop",i,this._uiHash());for(var j=0;j<g.length;j++){g[j].call(this,i)}this._trigger("stop",i,this._uiHash())}return false}if(!h){this._trigger("beforeStop",i,this._uiHash())}this.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(this.helper[0]!=this.currentItem[0]){this.helper.remove()}this.helper=null;if(!h){for(var j=0;j<g.length;j++){g[j].call(this,i)}this._trigger("stop",i,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){if(b.widget.prototype._trigger.apply(this,arguments)===false){this.cancel()}},_uiHash:function(d){var a=d||this;return{helper:a.helper,placeholder:a.placeholder||b([]),position:a.position,absolutePosition:a.positionAbs,offset:a.positionAbs,item:a.currentItem,sender:d?d.element:null}}}));b.extend(b.ui.sortable,{getter:"serialize toArray",version:"1.7.2",eventPrefix:"sort",defaults:{appendTo:"parent",axis:false,cancel:":input,option",connectWith:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1000}})})(jQuery);jQuery.effects||(function(i){i.effects={version:"1.7.2",save:function(b,a){for(var c=0;c<a.length;c++){if(a[c]!==null){b.data("ec.storage."+a[c],b[0].style[a[c]])}}},restore:function(b,a){for(var c=0;c<a.length;c++){if(a[c]!==null){b.css(a[c],b.data("ec.storage."+a[c]))}}},setMode:function(b,a){if(a=="toggle"){a=b.is(":hidden")?"show":"hide"}return a},getBaseline:function(c,b){var a,d;switch(c[0]){case"top":a=0;break;case"middle":a=0.5;break;case"bottom":a=1;break;default:a=c[0]/b.height}switch(c[1]){case"left":d=0;break;case"center":d=0.5;break;case"right":d=1;break;default:d=c[1]/b.width}return{x:d,y:a}},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper")){return e.parent()}var d={width:e.outerWidth(true),height:e.outerHeight(true),"float":e.css("float")};e.wrap('<div class="ui-effects-wrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');var a=e.parent();if(e.css("position")=="static"){a.css({position:"relative"});e.css({position:"relative"})}else{var b=e.css("top");if(isNaN(parseInt(b,10))){b="auto"}var c=e.css("left");if(isNaN(parseInt(c,10))){c="auto"}a.css({position:e.css("position"),top:b,left:c,zIndex:e.css("z-index")}).show();e.css({position:"relative",top:0,left:0})}a.css(d);return a},removeWrapper:function(a){if(a.parent().is(".ui-effects-wrapper")){return a.parent().replaceWith(a)}return a},setTransition:function(c,a,d,b){b=b||{};i.each(a,function(e,l){unit=c.cssUnit(l);if(unit[0]>0){b[l]=unit[0]*d+unit[1]}});return b},animateClass:function(d,c,a,b){var l=(typeof a=="function"?a:(b?b:null));var e=(typeof a=="string"?a:null);return this.each(function(){var t={};var v=i(this);var u=v.attr("style")||"";if(typeof u=="object"){u=u.cssText}if(d.toggle){v.hasClass(d.toggle)?d.remove=d.toggle:d.add=d.toggle}var n=i.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(d.add){v.addClass(d.add)}if(d.remove){v.removeClass(d.remove)}var k=i.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(d.add){v.removeClass(d.add)}if(d.remove){v.addClass(d.remove)}for(var s in k){if(typeof k[s]!="function"&&k[s]&&s.indexOf("Moz")==-1&&s.indexOf("length")==-1&&k[s]!=n[s]&&(s.match(/color/i)||(!s.match(/color/i)&&!isNaN(parseInt(k[s],10))))&&(n.position!="static"||(n.position=="static"&&!s.match(/left|top|bottom|right/)))){t[s]=k[s]}}v.animate(t,c,e,function(){if(typeof i(this).attr("style")=="object"){i(this).attr("style")["cssText"]="";i(this).attr("style")["cssText"]=u}else{i(this).attr("style",u)}if(d.add){i(this).addClass(d.add)}if(d.remove){i(this).removeClass(d.remove)}if(l){l.apply(this,arguments)}})})}};function j(d,e){var b=d[1]&&d[1].constructor==Object?d[1]:{};if(e){b.mode=e}var c=d[1]&&d[1].constructor!=Object?d[1]:(b.duration?b.duration:d[2]);c=i.fx.off?0:typeof c==="number"?c:i.fx.speeds[c]||i.fx.speeds._default;var a=b.callback||(i.isFunction(d[1])&&d[1])||(i.isFunction(d[2])&&d[2])||(i.isFunction(d[3])&&d[3]);return[d[0],b,c,a]}i.fn.extend({_show:i.fn.show,_hide:i.fn.hide,__toggle:i.fn.toggle,_addClass:i.fn.addClass,_removeClass:i.fn.removeClass,_toggleClass:i.fn.toggleClass,effect:function(c,d,b,a){return i.effects[c]?i.effects[c].call(this,{method:c,options:d||{},duration:b,callback:a}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._show.apply(this,arguments)}else{return this.effect.apply(this,j(arguments,"show"))}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._hide.apply(this,arguments)}else{return this.effect.apply(this,j(arguments,"hide"))}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))||(i.isFunction(arguments[0])||typeof arguments[0]=="boolean")){return this.__toggle.apply(this,arguments)}else{return this.effect.apply(this,j(arguments,"toggle"))}},addClass:function(c,d,a,b){return d?i.effects.animateClass.apply(this,[{add:c},d,a,b]):this._addClass(c)},removeClass:function(c,d,a,b){return d?i.effects.animateClass.apply(this,[{remove:c},d,a,b]):this._removeClass(c)},toggleClass:function(c,d,a,b){return((typeof d!=="boolean")&&d)?i.effects.animateClass.apply(this,[{toggle:c},d,a,b]):this._toggleClass(c,d)},morph:function(e,c,d,a,b){return i.effects.animateClass.apply(this,[{add:c,remove:e},d,a,b])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(c){var b=this.css(c),a=[];i.each(["em","px","%","pt"],function(e,d){if(b.indexOf(d)>0){a=[parseFloat(b),d]}});return a}});i.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(a,b){i.fx.step[b]=function(c){if(c.state==0){c.start=h(c.elem,b);c.end=f(c.end)}c.elem.style[b]="rgb("+[Math.max(Math.min(parseInt((c.pos*(c.end[0]-c.start[0]))+c.start[0],10),255),0),Math.max(Math.min(parseInt((c.pos*(c.end[1]-c.start[1]))+c.start[1],10),255),0),Math.max(Math.min(parseInt((c.pos*(c.end[2]-c.start[2]))+c.start[2],10),255),0)].join(",")+")"}});function f(a){var b;if(a&&a.constructor==Array&&a.length==3){return a}if(b=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(a)){return[parseInt(b[1],10),parseInt(b[2],10),parseInt(b[3],10)]}if(b=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(a)){return[parseFloat(b[1])*2.55,parseFloat(b[2])*2.55,parseFloat(b[3])*2.55]}if(b=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(a)){return[parseInt(b[1],16),parseInt(b[2],16),parseInt(b[3],16)]}if(b=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(a)){return[parseInt(b[1]+b[1],16),parseInt(b[2]+b[2],16),parseInt(b[3]+b[3],16)]}if(b=/rgba\(0, 0, 0, 0\)/.exec(a)){return g.transparent}return g[i.trim(a).toLowerCase()]}function h(a,c){var b;do{b=i.curCSS(a,c);if(b!=""&&b!="transparent"||i.nodeName(a,"body")){break}c="backgroundColor"}while(a=a.parentNode);return f(b)}var g={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};i.easing.jswing=i.easing.swing;i.extend(i.easing,{def:"easeOutQuad",swing:function(d,c,e,a,b){return i.easing[i.easing.def](d,c,e,a,b)},easeInQuad:function(d,c,e,a,b){return a*(c/=b)*c+e},easeOutQuad:function(d,c,e,a,b){return -a*(c/=b)*(c-2)+e},easeInOutQuad:function(d,c,e,a,b){if((c/=b/2)<1){return a/2*c*c+e}return -a/2*((--c)*(c-2)-1)+e},easeInCubic:function(d,c,e,a,b){return a*(c/=b)*c*c+e},easeOutCubic:function(d,c,e,a,b){return a*((c=c/b-1)*c*c+1)+e},easeInOutCubic:function(d,c,e,a,b){if((c/=b/2)<1){return a/2*c*c*c+e}return a/2*((c-=2)*c*c+2)+e},easeInQuart:function(d,c,e,a,b){return a*(c/=b)*c*c*c+e},easeOutQuart:function(d,c,e,a,b){return -a*((c=c/b-1)*c*c*c-1)+e},easeInOutQuart:function(d,c,e,a,b){if((c/=b/2)<1){return a/2*c*c*c*c+e}return -a/2*((c-=2)*c*c*c-2)+e},easeInQuint:function(d,c,e,a,b){return a*(c/=b)*c*c*c*c+e},easeOutQuint:function(d,c,e,a,b){return a*((c=c/b-1)*c*c*c*c+1)+e},easeInOutQuint:function(d,c,e,a,b){if((c/=b/2)<1){return a/2*c*c*c*c*c+e}return a/2*((c-=2)*c*c*c*c+2)+e},easeInSine:function(d,c,e,a,b){return -a*Math.cos(c/b*(Math.PI/2))+a+e},easeOutSine:function(d,c,e,a,b){return a*Math.sin(c/b*(Math.PI/2))+e},easeInOutSine:function(d,c,e,a,b){return -a/2*(Math.cos(Math.PI*c/b)-1)+e},easeInExpo:function(d,c,e,a,b){return(c==0)?e:a*Math.pow(2,10*(c/b-1))+e},easeOutExpo:function(d,c,e,a,b){return(c==b)?e+a:a*(-Math.pow(2,-10*c/b)+1)+e},easeInOutExpo:function(d,c,e,a,b){if(c==0){return e}if(c==b){return e+a}if((c/=b/2)<1){return a/2*Math.pow(2,10*(c-1))+e}return a/2*(-Math.pow(2,-10*--c)+2)+e},easeInCirc:function(d,c,e,a,b){return -a*(Math.sqrt(1-(c/=b)*c)-1)+e},easeOutCirc:function(d,c,e,a,b){return a*Math.sqrt(1-(c=c/b-1)*c)+e},easeInOutCirc:function(d,c,e,a,b){if((c/=b/2)<1){return -a/2*(Math.sqrt(1-c*c)-1)+e}return a/2*(Math.sqrt(1-(c-=2)*c)+1)+e},easeInElastic:function(o,e,q,a,b){var d=1.70158;var c=0;var n=a;if(e==0){return q}if((e/=b)==1){return q+a}if(!c){c=b*0.3}if(n<Math.abs(a)){n=a;var d=c/4}else{var d=c/(2*Math.PI)*Math.asin(a/n)}return -(n*Math.pow(2,10*(e-=1))*Math.sin((e*b-d)*(2*Math.PI)/c))+q},easeOutElastic:function(o,e,q,a,b){var d=1.70158;var c=0;var n=a;if(e==0){return q}if((e/=b)==1){return q+a}if(!c){c=b*0.3}if(n<Math.abs(a)){n=a;var d=c/4}else{var d=c/(2*Math.PI)*Math.asin(a/n)}return n*Math.pow(2,-10*e)*Math.sin((e*b-d)*(2*Math.PI)/c)+a+q},easeInOutElastic:function(o,e,q,a,b){var d=1.70158;var c=0;var n=a;if(e==0){return q}if((e/=b/2)==2){return q+a}if(!c){c=b*(0.3*1.5)}if(n<Math.abs(a)){n=a;var d=c/4}else{var d=c/(2*Math.PI)*Math.asin(a/n)}if(e<1){return -0.5*(n*Math.pow(2,10*(e-=1))*Math.sin((e*b-d)*(2*Math.PI)/c))+q}return n*Math.pow(2,-10*(e-=1))*Math.sin((e*b-d)*(2*Math.PI)/c)*0.5+a+q},easeInBack:function(e,d,l,a,b,c){if(c==undefined){c=1.70158}return a*(d/=b)*d*((c+1)*d-c)+l},easeOutBack:function(e,d,l,a,b,c){if(c==undefined){c=1.70158}return a*((d=d/b-1)*d*((c+1)*d+c)+1)+l},easeInOutBack:function(e,d,l,a,b,c){if(c==undefined){c=1.70158}if((d/=b/2)<1){return a/2*(d*d*(((c*=(1.525))+1)*d-c))+l}return a/2*((d-=2)*d*(((c*=(1.525))+1)*d+c)+2)+l},easeInBounce:function(d,c,e,a,b){return a-i.easing.easeOutBounce(d,b-c,0,a,b)+e},easeOutBounce:function(d,c,e,a,b){if((c/=b)<(1/2.75)){return a*(7.5625*c*c)+e}else{if(c<(2/2.75)){return a*(7.5625*(c-=(1.5/2.75))*c+0.75)+e}else{if(c<(2.5/2.75)){return a*(7.5625*(c-=(2.25/2.75))*c+0.9375)+e}else{return a*(7.5625*(c-=(2.625/2.75))*c+0.984375)+e}}}},easeInOutBounce:function(d,c,e,a,b){if(c<b/2){return i.easing.easeInBounce(d,c*2,0,a,b)*0.5+e}return i.easing.easeOutBounce(d,c*2-b,0,a,b)*0.5+a*0.5+e}})})(jQuery);(function(b){b.effects.slide=function(a){return this.queue(function(){var q=b(this),r=["position","top","left"];var l=b.effects.setMode(q,a.options.mode||"show");var m=a.options.direction||"left";b.effects.save(q,r);q.show();b.effects.createWrapper(q).css({overflow:"hidden"});var o=(m=="up"||m=="down")?"top":"left";var s=(m=="up"||m=="left")?"pos":"neg";var k=a.options.distance||(o=="top"?q.outerHeight({margin:true}):q.outerWidth({margin:true}));if(l=="show"){q.css(o,s=="pos"?-k:k)}var n={};n[o]=(l=="show"?(s=="pos"?"+=":"-="):(s=="pos"?"-=":"+="))+k;q.animate(n,{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){if(l=="hide"){q.hide()}b.effects.restore(q,r);b.effects.removeWrapper(q);if(a.callback){a.callback.apply(this,arguments)}q.dequeue()}})})}})(jQuery);OpenFMPlayer.prototype.DEFAULT_STATION_ID=39;OpenFMPlayer.prototype.STATE_STOP=0;OpenFMPlayer.prototype.STATE_PLAYING=1;OpenFMPlayer.prototype.STATE_BUFFERING=2;OpenFMPlayer.prototype.VOLUME_STEP=13;function OpenFMPlayer(){this.flashPlayer=getFlashPlayer();if(this.flashPlayer){this.flashPlayer.parentPlayer=this;this.flashPlayer.connectOnPlay("getFlashPlayer().parentPlayer._playHandler");this.flashPlayer.connectOnStop("getFlashPlayer().parentPlayer._stopHandler");this.flashPlayer.connectOnRDSChange("getFlashPlayer().parentPlayer._RDSHandler");this.flashPlayer.connectOnVolumeChange("getFlashPlayer().parentPlayer._volumeHandler");this.flashPlayer.connectOnMute("getFlashPlayer().parentPlayer._muteHandler");this.flashPlayer.connectOnVoteChange("getFlashPlayer().parentPlayer._voteHandler");this.flashPlayer.connectOnStationChange("getFlashPlayer().parentPlayer._stationChangedHandler");this.flashPlayer.connectOnStationsChange("getFlashPlayer().parentPlayer._stationsChangedHandler");this.flashPlayer.connectOnCurrentStationMetadataChange("getFlashPlayer().parentPlayer._stationMetadataChangedHandler");this.flashPlayer.connectOnSelectedStationMetadataChange("getFlashPlayer().parentPlayer._selectedStationMetadataChangedHandler")}this.RDSHandler=function(){};this.playHandler=function(){};this.stopHandler=function(){};this.voteHandler=function(){};this.volumeHandler=function(){};this.muteHandler=function(){};this.stationChangedHandler=function(){};this.stationsChangedHandler=function(){};this.stationMetadataChangedHandler=function(){};this.selectedStationMetadataChangedHandler=function(){};this.userPlayHandler=function(){};this.stations=new Array();this.stationsMetadata=new Array();this.muted=false}function getFlashPlayer(){var a="flashPlayer";if(window.document[a]){return window.document[a]}if(navigator.appName.indexOf("Microsoft Internet")==-1){if(document.embeds&&document.embeds[a]){return document.embeds[a]}}else{return document.getElementById(a)}}function flashPlayerReady(){return !(getFlashPlayer()==undefined||getFlashPlayer().getStations==undefined||getFlashPlayer().getStations()==undefined)}OpenFMPlayer.prototype.play=function(a){if(a==undefined){a=this.getStationId()}this.flashPlayer.playStream(a)};OpenFMPlayer.prototype.stop=function(){this.flashPlayer.stopStream()};OpenFMPlayer.prototype.isPlaying=function(){return this.state==this.STATE_PLAYING};OpenFMPlayer.prototype.setVolume=function(a){this.flashPlayer.setVolume(a)};OpenFMPlayer.prototype.getVolume=function(){return this.flashPlayer.getVolume()};OpenFMPlayer.prototype.setMuted=function(a){this.muted=a;this.flashPlayer.mute(a)};OpenFMPlayer.prototype.isMuted=function(){return this.muted};OpenFMPlayer.prototype.incVolume=function(){this.setVolume(this.getVolume()+this.VOLUME_STEP)};OpenFMPlayer.prototype.decVolume=function(){this.setVolume(this.getVolume()-this.VOLUME_STEP)};OpenFMPlayer.prototype.getVoteEnabled=function(){return this.flashPlayer.getVoteEnabled()};OpenFMPlayer.prototype.voteFor=function(){return this.flashPlayer.voteFor()};OpenFMPlayer.prototype.voteAgainst=function(){return this.flashPlayer.voteAgainst()};OpenFMPlayer.prototype.getStations=function(){var c=this.flashPlayer.getStations();var a=this.stations.length>c.length?this.stations.length:c.length;for(var b=0;b<a;b++){delete this.stations[b];if(c[b]!=null){this.stations[b]={id:c[b]["id"],name:c[b]["name"],logo:c[b]["logo"]["url"],is_new:c[b]["params"]["is_new"]}}}return this.stations};OpenFMPlayer.prototype.isCurrentTextAvailable=function(){var m=eval("["+this.flashPlayer.getCurrentStationMetadata()+"]")[0];return(m[0]!=undefined)&&(m[0]["text_url"]!=undefined)&&(m[0]["text_url"]!=false)};OpenFMPlayer.prototype.getRDS=function(){return this.flashPlayer.getRDS()};OpenFMPlayer.prototype.getStationId=function(){return this.flashPlayer.getStationId()};OpenFMPlayer.prototype.getStationIdx=function(){var d=this.getStations();var a=d.length;var b=this.getStationId();for(var c=0;c<a;c++){if(d[c]["id"]==b){return c}}return -1};OpenFMPlayer.prototype.getSelectedStationId=function(){return this.flashPlayer.getSelectedStationId()};OpenFMPlayer.prototype.getSelectedStationIdx=function(){var d=this.getStations();var a=d.length;var b=this.getSelectedStationId();for(var c=0;c<a;c++){if(d[c]["id"]==b){return c}}return -1};OpenFMPlayer.prototype.buySelectedMp3=function(){this.flashPlayer.buyMp3()};OpenFMPlayer.prototype.buySelectedCD=function(){this.flashPlayer.buyCD()};OpenFMPlayer.prototype.buySelectedRingtone=function(){this.flashPlayer.buyRingTone()};OpenFMPlayer.prototype.buySelectedTicket=function(){this.flashPlayer.buyTicket()};OpenFMPlayer.prototype.setSelectedStation=function(a){this.flashPlayer.setSelectedStation(a)};OpenFMPlayer.prototype.setCurrentStation=function(a){this.flashPlayer.setCurrentStation(a)};OpenFMPlayer.prototype.getSelectedStationMetadata=function(){return eval("["+this.flashPlayer.getSelectedStationMetadata()+"]")[0]};OpenFMPlayer.prototype.getCurrentStationMetadata=function(){var m=eval("["+this.flashPlayer.getCurrentStationMetadata()+"]")[0];return m};OpenFMPlayer.prototype.loadExternalURL=function(a,b){this.flashPlayer.loadExternalURL(a,b.toString())};OpenFMPlayer.prototype.RDSRedirect=function(){this.flashPlayer.RDSRedirect()};OpenFMPlayer.prototype.setRDSHandler=function(a){this.RDSHandler=a};OpenFMPlayer.prototype.setStopHandler=function(a){this.stopHandler=a};OpenFMPlayer.prototype.setPlayHandler=function(a){this.playHandler=a};OpenFMPlayer.prototype.setVolumeHandler=function(a){this.volumeHandler=a};OpenFMPlayer.prototype.setVoteHandler=function(a){this.voteHandler=a};OpenFMPlayer.prototype.setMuteHandler=function(a){this.muteHandler=a};OpenFMPlayer.prototype.setStationChangedHandler=function(a){this.stationChangedHandler=a};OpenFMPlayer.prototype.setStationsChangedHandler=function(a){this.stationsChangedHandler=a};OpenFMPlayer.prototype.setStationMetadataChangedHandler=function(a){this.stationMetadataChangedHandler=a};OpenFMPlayer.prototype.setSelectedStationMetadataChangedHandler=function(a){this.selectedStationMetadataChangedHandler=a};OpenFMPlayer.prototype.setUserPlayHandler=function(a){this.userPlayHandler=a};OpenFMPlayer.prototype.destroy=function(){this.flashPlayer.destroy()};OpenFMPlayer.prototype._RDSHandler=function(a){this.RDSHandler(a)};OpenFMPlayer.prototype._playHandler=function(){this.state=p.STATE_PLAYING;this.playHandler()};OpenFMPlayer.prototype._stopHandler=function(){this.state=p.STATE_STOP;this.stopHandler()};OpenFMPlayer.prototype._volumeHandler=function(){this.volumeHandler()};OpenFMPlayer.prototype._muteHandler=function(a){this.muted=a;this.muteHandler(a)};OpenFMPlayer.prototype._voteHandler=function(a){this.voteHandler(a)};OpenFMPlayer.prototype._stationChangedHandler=function(a){this.stationChangedHandler(a)};OpenFMPlayer.prototype._stationsChangedHandler=function(a){this.stationsChangedHandler(a)};OpenFMPlayer.prototype._selectedStationMetadataChangedHandler=function(){this.selectedStationMetadataChangedHandler()};OpenFMPlayer.prototype._stationMetadataChangedHandler=function(){this.stationMetadataChangedHandler()};OpenFMPlayer.prototype.getUserMetadata=function(){return[]};OpenFMPlayer.prototype.getChannelAutoplay=function(){return 0};OpenFMPlayer.prototype.setChannelAutoplay=function(a){};AdBlock.prototype.DEFAULT_BAIT_SRC="images/banner.gif";function AdBlock(a){this.src=a!=null?a:this.DEFAULT_BAIT_SRC;this.bait=null;this.state=false}AdBlock.prototype.challange=function(){this.bait=$("#bait");if(this.bait.css("display")=="none"){logger.info("AdBlock software detected. Method display");this.state=true}else{if(this.bait.attr("class").length>0){logger.info("AdBlock software detected. Method class");this.state=true}}return this.state};IntroPlayer.prototype.PLACEMENT=[""];IntroPlayer.prototype.PLACEMENT[1]="1vTmD2sa0pOfbUZz55MWGmuKL0jDnE_Pk8IBZIpL3eT.27";IntroPlayer.prototype.PLACEMENT[2]="32MAI4j6N_0zFmyMP6UVzldmoTTw_UcGVyG6XqtR7BH.H7";IntroPlayer.prototype.PLACEMENT[3]="Z.1FTD2HPXr9napXYY1TutykPLNulnCEO_O.2R17DA7.27";IntroPlayer.prototype.PLACEMENT[4]="7jLn7NXPd3DxofYCJJhuHUCHkX.fRqcMI__9VDC2eIv.c7";IntroPlayer.prototype.PLACEMENT[5]="aTD2r3DIMj_Y5vaL0M2WguwYbTtui2cDRU5fTNJgaBT.r7";IntroPlayer.prototype.PLACEMENT[6]="u01R4HbkHJQ.FxIltXFIGN2OPhJ29bsCKHr4s078enT.Y7";IntroPlayer.prototype.PLACEMENT[7]="cxpAxrnyh7HGyAz._poIallt7wVQeM8cVZNxYrfPzRH.07";IntroPlayer.prototype.PLACEMENT[8]="29U6oyctkzOq0mfDyGErpKmxHxTAca9LlYjk3r3r2z..B7";IntroPlayer.prototype.PLACEMENT[9]="pn.7JnLY6Cr1MqjDHAiEg62uMtXWtP6AWIYj4Oj9sRH.P7";IntroPlayer.prototype.PLACEMENT[10]="Bd9WcPAYQr4_Kjsx6EtCaB3VsDux_IOKcGpTrsx2xmT.n7";IntroPlayer.prototype.PLACEMENT[11]="1W5L73.WmChOr44n.uyw2Iws8Uj_g2b9ZYjtIUHKyK7.S7";IntroPlayer.prototype.PLACEMENT[12]="lDX2tK0kMgEisaYqxEn2w9EW4eJ33MeHiYddNVCDFoD.67";IntroPlayer.prototype.PLACEMENT[13]="PXSnp5NKl_ixC8Yy10qICh_HsWY58_c3mV.HbhROUCf.e7";IntroPlayer.prototype.PLACEMENT[14]="_FgMUF6c7djGvQjAJE5MNec87t0APpuuDTKYUjZMGAv.h7";IntroPlayer.prototype.PLACEMENT[15]="jD4F0xCk7V.VJTn7LV1DFDq8DrNrCduDYDQIBuOimr7.67";IntroPlayer.prototype.PLACEMENT[16]="AHLnN7wPd9_jofZL5sBojbQrYw.yyxKsb2ZJoKVDM1D.q7";IntroPlayer.prototype.PLACEMENT[17]="SC5R5I5VHAH1fFwTHxcku.M_LKW6kt.UZ6ef3wKYrnv.H7";IntroPlayer.prototype.PLACEMENT[18]="Nfmb4aLQS.WVr.OnUlFHwlwOfW9eiAdHOKLFYEoKECH.67";IntroPlayer.prototype.PLACEMENT[19]="8Ec1GLvq3aEeHk8K40XpSQUtDVgtwqdmf8l4OeQXzp7.g7";IntroPlayer.prototype.PLACEMENT[20]="QWqnuV7pl09kfhr8UjFOCFs88a.DfGbn4ARaxyiRKhL.I7";IntroPlayer.prototype.PLACEMENT[21]="2jJAWrPih3.u6PJjyO0pBdV6zvmNZ4_6Dw7RPQpV7v3.p7";IntroPlayer.prototype.PLACEMENT[22]="rDZR7c.aHDmaTgdqU5rEKNhGf66Ir28c7zpxMfhuDZ3.H7";IntroPlayer.prototype.PLACEMENT[23]="1gMwmuMUJ7V61KKfGAvvf4rDs9uTYDHqLaDGAbWtiQj.w7";IntroPlayer.prototype.PLACEMENT[24]="_0M2MqddgfR5axssY81Mdrv3PwDOSO_aCwmUKYe1uZX.27";IntroPlayer.prototype.PLACEMENT[25]="xxMLP3sCSL5F7F4YGCWaAuQ5sOPCh4Og3y6g2BTz3ED.J7";IntroPlayer.prototype.PLACEMENT[26]="WTRGxLEe4qaHRCuARZzypTvxINLej_LayNAj8nqzJur.77";IntroPlayer.prototype.PLACEMENT[27]="haug.FCrl07JiqHRsnkP.6J.sOSvuIOgcbhT1X1duAj.Z7";IntroPlayer.prototype.PLACEMENT[28]="jlMxtfXqXNrMNZHPUbj4Ozkz8SjQY2btyDxnQrXPvhH..7";IntroPlayer.prototype.PLACEMENT[29]="RpaawJLSo6HKxtIFiBnyo9rVs9sDAjHqc7TmyvpGaeX.U7";IntroPlayer.prototype.PLACEMENT[30]="SaOQi.DlNz8INyb3cCGVfJyaEv._5PJgPhnm57849yn.b7";IntroPlayer.prototype.PLACEMENT[31]="r7n2RBjfMsGyOv.30C0yEV1gzzlm7o8KmvykPbKUuZ..37";IntroPlayer.prototype.PLACEMENT[32]="oqvsTbdKLPf1aVQKmANAQLhAP1G48_7qJXr679LvI_T.b7";IntroPlayer.prototype.PLACEMENT[33]="jeoGRoN.krOQVYTOsucfDJeusUxg6OcuhJK6Q2luWnT.S7";IntroPlayer.prototype.PLACEMENT[34]="p3mrUPtNqJc04GiMA8zNUpnaAOtba6OzfcKjpwo0uNX.j7";IntroPlayer.prototype.PLACEMENT[35]="OQQxtAGvXKSCfuvEyaI0Z2w7AQguFwddxZUaHPx0OpP.M7";IntroPlayer.prototype.PLACEMENT[36]="1RpWAnAoQkJ0E3UjkKvZXHZH8431f7JyJ.05fBPLpS7.H7";IntroPlayer.prototype.PLACEMENT[37]="Bz2XeeuqN_z.mmDTN3cIdM.pf83vC28sNrphgGM_jYP.w7";IntroPlayer.prototype.PLACEMENT[38]="oo02n7e0ghjFeCY.joK86RPfz2kSHI9K797BeBT1b8X.A7";IntroPlayer.prototype.PLACEMENT[39]="hLjgU_2ad0YCx3I5NNpZ6LBHDg4fn9sYc_f7jfBypBz.g7";IntroPlayer.prototype.PLACEMENT[40]="jLIBZBBAbOUK9wFGOZNbiCnqnIZrezBuPZKfMop2znv.57";IntroPlayer.prototype.PLACEMENT[41]="f6cMXaly7Q5tV8Sn7Q_m4TkfPCnQunB_8r5v7Cuw7BX.k7";IntroPlayer.prototype.PLACEMENT[42]="Xtnhv4Y7rNwMoBekm30EBDbGLEUg7dB02nX.SZ3Znjr.I7";IntroPlayer.prototype.PLACEMENT[43]="eHY7Tv6oOH01r3ldCYc0ATiFLVzIC_cuBU3.aWk6_Lb.U7";IntroPlayer.prototype.PLACEMENT[44]="NCdHh81ohyCCgIGXeshihCUT7kv97pr4XLGY6dEpGuv.h7";IntroPlayer.prototype.PLACEMENT[45]="I.oBwjvEbL5UmxDXa7jB6pmJnuHw4Hsw0uXbA7T5pMr.b7";IntroPlayer.prototype.PLACEMENT[46]="OIyrE53bqO4miBOVzu23yRJr.mTvRzuBBxsrDTOf9q...7";IntroPlayer.prototype.PLACEMENT[47]="A801JxqR3Qz7ZBCZNn9AoJx3P3D_7O76CKAnzUQipZv.67";IntroPlayer.prototype.PLACEMENT[48]="0oabRidTSDbQt63i4sGqGRQ63I4S8bCBHvJfLxWiLqb.q7";IntroPlayer.prototype.PLACEMENT[49]="YDeqXmyKA03D8aIfBj14khacsOSFDYOgvbYzC8GfJg..17";IntroPlayer.prototype.PLACEMENT[50]="cfLgb0eMd3gKmBbj_on1cFHYvVwPiIbotzGFPmz5ohX.Q7";IntroPlayer.prototype.PLACEMENT[51]="EecAhu_tNvgK9xwCOQnlqYBbwoJPGp53mU7NljFhQor.S7";IntroPlayer.prototype.PLACEMENT[52]="_N_RAF4obHcw9gEdrQnRfELI70RaFM8m.qlh1S96Dcj.y7";IntroPlayer.prototype.PLACEMENT[53]="Oez3vAGy1_xIUmwXmfFBRM80j9vJIg7cs6kEF8mi68P.R7";IntroPlayer.prototype.PLACEMENT[54]="luzh8IO0rO.PGRes4c0OE1abnsIlTnsgurILTjlwBGf.w7";IntroPlayer.prototype.PLACEMENT[55]="5.SXDMzHN8gCpFYuRN04ZoePzWSQNSdE9xnYVMuDDlr.G7";IntroPlayer.prototype.PLACEMENT[56]="oC5V7Mv0nV2Ut2pv61hzeEfyPKzIFnB9RdbMQDm6i4H.M7";IntroPlayer.prototype.PLACEMENT[57]="cERBW1yMvE7UxqHoK4UIl.unUTzTcyb30F9NOWhsaFH.V7";IntroPlayer.prototype.PLACEMENT[58]="AMFXIryo5zjTcLwQLN5RAw2yjMfGV5AOaI7P3u8O.A..J7";IntroPlayer.prototype.PLACEMENT[59]="ugql5QSNTSneck_zAsFpRzVKQdv9DIeITwGN.fRyWND.m7";IntroPlayer.prototype.PLACEMENT[60]="L6FKp4jG88xzAfHaHxKScMsujwIDSQ9w_hgRWs2njTP.v7";IntroPlayer.prototype.PLACEMENT[61]="mIVXkH6150HLYYsCoEMuT4oyDpmLX9t6oN4oDY27OqH.m7";IntroPlayer.prototype.PLACEMENT[62]="EaCsK_7hTXpldijMNx2seRoATfCbmFuiwKjhGPLLk_b.l7";IntroPlayer.prototype.PLACEMENT[63]="iqBVSJQznP7OiWq._Mk99eZSHW.lIUbC1Gc4ek3AjGL.17";IntroPlayer.prototype.PLACEMENT[64]="yy1L7TcAm.Dqn7h9ODxHMmSXjOiCQpAeX_dMvyUFzVD.x7";IntroPlayer.prototype.PLACEMENT[65]="rrX1KKa6jTey1ynYk5_DBpBKHWBP.EbCHDA4eqOojGL.87";IntroPlayer.prototype.PLACEMENT[66]="Q6c3u0oVJzO2udvz5HdrsCNhYKCKEWNsXjFttnVSmZX.B7";IntroPlayer.prototype.PLACEMENT[67]="7AlH5vAyhzAAwDyRYUSr7aiy.gs4PDtYf5xo.V3cSuP.k7";IntroPlayer.prototype.PLACEMENT[68]="DhBa6ZYbUvZRTTiHPnRbAaRj70siH87AgphBdVc7zXn.N7";IntroPlayer.prototype.PLACEMENT[69]="OX43VwE8J7W4R9EY_oMoMEyB.greZjtY.kEbN8Tr1o3.g7";IntroPlayer.prototype.PLACEMENT[70]="R4GqZRuNA03KZFgBZEjlwS.zniIPUXuAbEie4TMPUIP.07";IntroPlayer.prototype.PLACEMENT[71]="aRoKwHDcoyIH8aL3VUhVo4yLIOX_U_NJxUkzzpJdRfn.y7";IntroPlayer.prototype.PLACEMENT[72]="EE882XyO3Q9_iJ7mST..fa1QkRnWmae1uHEqotj73ED.f7";IntroPlayer.prototype.PLACEMENT[73]="9HeXdYzkN3_cRaavcghoPIn87myL6psIQB1LATM1RNr.L7";IntroPlayer.prototype.PLACEMENT[74]="8oUKJ6cwo6IA1SJn3G3iLckvE0KQNPIMNY0GahieOWr.N7";IntroPlayer.prototype.PLACEMENT[75]="HninuVagl07RDBtcrtSE_k9vo3nZbpJ7Y0EGygmmFyb.V7";IntroPlayer.prototype.PLACEMENT[76]="7q4xTdZnXJuC5DvvqZJq9RS9w4YSqtHdLAW2JMH52Wb..7";IntroPlayer.prototype.PLACEMENT[77]="tRFHVcAIh6lfoyYRFNIIdFv1UT1ePSb3VatNq2yUFub.D7";IntroPlayer.prototype.PLACEMENT[78]="GoNGxfQ04t24TgUeYdz5yc76vcXJd4b0oAA4_qDSjtf.e7";IntroPlayer.prototype.PLACEMENT[79]="N_CnQCtQl9ikEhrlgxjknMXTnKZlwDB_Ojyfolk13Kj.a7";IntroPlayer.prototype.PLACEMENT[80]="gMIxuRwhXG2ZXOxrhzE6t0aeYHpVN2LYFMIwqJ31PEX.k7";IntroPlayer.prototype.URL_PATTERN="http://gg.adocean.pl/_%t/ad.js?id=%i/age=%a/gender=%g/uid=%u";IntroPlayer.prototype.PLAYER_NAME="introPlayer";IntroPlayer.prototype.RDS_CONTAINER="RDS";function IntroPlayer(){this.intro_duration=0;this.station_id=0;this.player_minified=false;this.rds="";this.initPlayer()}IntroPlayer.prototype.initPlayer=function(){if(!this.ready()){setTimeout(function(){IntroPlayer.prototype.initPlayer()},100);return}this.player=this.getIntroPlayer();if(this.player!=undefined){this.player.obj=this;this.player.connectOnIntroLoaded("IntroPlayer.prototype.getIntroPlayer().obj.introLoaded");this.player.connectOnIntroComplete("IntroPlayer.prototype.getIntroPlayer().obj.introComplete");this.player.connectOnIntroUnloaded("IntroPlayer.prototype.getIntroPlayer().obj.introUnloaded");this.player.connectOnIntroCountdown("IntroPlayer.prototype.getIntroPlayer().obj.introCountdown");this.player.connectOnShowVideo("IntroPlayer.prototype.getIntroPlayer().obj.showVideoScreen");this.player.connectOnSetIntroRDS("IntroPlayer.prototype.getIntroPlayer().obj.setIntroRDS")}};IntroPlayer.prototype.setStationId=function(a){this.station_id=a};IntroPlayer.prototype.getPlacement=function(a){var b=a==undefined?this.station_id:a;return this.PLACEMENT[b]};IntroPlayer.prototype.createRequestURL=function(){if(p!="undefined"){user_data=p.getUserMetadata()}var a=this.URL_PATTERN;var b=this.PLACEMENT[this.station_id];a=a.replace(/%t/i,(new Date()).getTime());a=a.replace(/%i/i,b);if(user_data!=undefined&&user_data.length!=0){a=a.replace(/%a/i,user_data.Age);a=a.replace(/%g/i,user_data.Gender);a=a.replace(/%u/i,user_data.Uuid)}else{a=a.replace(/%a/i,0);a=a.replace(/%g/i,0);a=a.replace(/%u/i,0)}return a};IntroPlayer.prototype.getIntroPlayer=function(a){if(a==undefined){a=IntroPlayer.prototype.PLAYER_NAME}if(window.document[a]){return window.document[a]}if(navigator.appName.indexOf("Microsoft Internet")==-1){if(document.embeds&&document.embeds[a]){return document.embeds[a]}}else{return document.getElementById(a)}};IntroPlayer.prototype.sendRequest=function(){if(!this.player.isIntroPlaying()){this.player.loadIntro(this.createRequestURL())}};IntroPlayer.prototype.setIntroVolume=function(){if(p!="undefined"){this.player.setVolume(p.getVolume());this.player.mute(p.isMuted())}};IntroPlayer.prototype.setIntroRDS=function(a,b){this.rds=a;window.logger.info("IntroPlayer->setIntroRDS: "+a+">>"+b);$("#RDS a").attr("href",b);$("#RDS a").attr("target","_blank");triggerEvent("onRDSChange");updateInterface()};IntroPlayer.prototype.showVideoScreen=function(b,a){window.logger.info("IntroPlyer->showVideoScreen");$("#"+this.PLAYER_NAME+" embed").attr("width",b);$("#"+this.PLAYER_NAME+" embed").attr("height",a);$("#"+this.PLAYER_NAME+" object").attr("width",b);$("#"+this.PLAYER_NAME+" object").attr("height",a);loadScreen("flash_intro.html",this.showVideo,this.hideVideo)};IntroPlayer.prototype.showVideo=function(){$("#RDS").hide();$("#currentStation").hide();$("#minimize").hide();$("#settings").hide();this.player_minified=isMinified();maxify()};IntroPlayer.prototype.hideVideo=function(){$("#RDS").show();$("#currentStation").show();$("#minimize").show();$("#settings").show();if(this.player_minified){setTimeout(function(){minify()},900)}};IntroPlayer.prototype.introLoaded=function(){if(window.currentScreen!="station_details.html"&&window.currentScreen!="flash_intro.html"){loadScreen("station_details.html",loadStationDetails,unloadStationDetails)}this.setIntroVolume();p.stop();window.logger.info("Intro Loaded");setTimeout(function(){updateInterface()},200)};IntroPlayer.prototype.introUnloaded=function(){this.rds="";window.logger.info("Intro unloaded");$("#"+this.PLAYER_NAME+" embed").attr("width",1);$("#"+this.PLAYER_NAME+" embed").attr("height",1);$("#"+this.PLAYER_NAME+" object").attr("width",1);$("#"+this.PLAYER_NAME+" object").attr("height",1);if(window.currentScreen=="flash_intro.html"){loadScreen(window.prevScreen,window.prevLoadF,window.prevUnLoadF)}};IntroPlayer.prototype.introComplete=function(){this.rds="";window.logger.info("Intro completed");this.player.unloadIntro();p.play();if(window.currentScreen!="station_details.html"&&!(isMinified()&&this.player_minified)){loadScreen("station_details.html",loadStationDetails,unloadStationDetails)}};IntroPlayer.prototype.introCountdown=function(a){$("#introCountdownSeconds").html(a+" sec.")};IntroPlayer.prototype.ready=function(){if(IntroPlayer.prototype.getIntroPlayer()!=undefined&&IntroPlayer.prototype.getIntroPlayer().connectOnIntroLoaded!=undefined){return true}return false};IntroPlayer.prototype.isPlaying=function(){return(this.player!=undefined&&this.player.isIntroPlaying!=undefined&&this.player.isIntroPlaying())};IntroPlayer.prototype.stop=function(){if(this.player.isIntroPlaying()){this.player.unloadIntro()}};function OpenFMLogger(){this.enabled=false;this.show_alerts=false;if(window.ggplayer!=undefined){this.logger=ggwindow}else{if(window.console!=undefined){this.logger=console}else{this.logger=null}}}OpenFMLogger.prototype._log=function(c,b){var a=b!=undefined?("["+b+"]: "+c):c;if(this.logger!=null&&this.enabled){this.logger.log(a)}if(this.show_alerts){alert(a)}};OpenFMLogger.prototype.log=function(a){this._log(a)};OpenFMLogger.prototype.info=function(a){this._log(a,"INFO")};OpenFMLogger.prototype.error=function(a){this._log(a,"ERROR")};OpenFMLogger.prototype.debug=function(a){this._log(a,"DEBUG")};OpenFMLogger.prototype.event=function(a){this._log(a,"EVENT")};OpenFMLogger.prototype.enable=function(a){this.enabled=a!=false?true:false};OpenFMLogger.prototype.showAlerts=function(a){this.show_alerts=a!=false?true:false};var currentHandlers={};var DEFAULT_HANDLERS={onPlay:function(a){logger.info("event on play: "+a);p.setSelectedStation(p.getStationId());triggerEvent("onRDSChange");updateInterface()},onStop:function(){updateInterface()},onStationChange:function(){logger.info("event on play: "+p.getStationId());p.setSelectedStation(p.getStationId());updateInterface();intro.stop()},onStationsChange:function(){stations=p.getStations();if(window.ggwindow==undefined){destroyStationsMenu();initStationsMenu()}},onVolumeChange:function(){var a=p.getVolume()+10;$("#volume").setBarVolume(a);window.intro.setIntroVolume()},onMuteChange:function(a){$("#volume").setMuted(a);intro.setIntroVolume()},onRDSChange:function(a){_updateRDS()},onVoteStateChange:function(a){_updateVoteButtonsState()},onStationMetadataChanged:function(){setTimeout("_updateCurrentSongText()",300)},userOnRDSRedirect:function(a){if(isIntroPlaying()){return true}else{a.preventDefault();p.RDSRedirect()}return false},onSelectedStationMetadataChanged:function(){},userOnStop:function(){triggerEvent("onRDSChange");p.stop();intro.stop()},userOnPlay:function(c){var b=p.getSelectedStationId();var d=p.getStationId();var a=c;if(a==undefined){if(window.minified){if(d!=-1&&d!=""){a=d}}else{if(b!=-1&&b!=""){a=b}}}if(a!=undefined){p.setSelectedStation(a);p.setCurrentStation(a);intro.setStationId(a);intro.sendRequest()}},userOnVolumeChange:function(b){var a=parseInt(b-14);if((a!=undefined)&&(a!=p.getVolume())){p.setVolume(a)}},userOnMute:function(a){p.setMuted(a)},userOnMinify:function(){unloadScreen();minify()},userOnMaxify:function(){loadScreen(window.currentScreen,window.loadF,window.unloadF)},userOnClose:function(){closeWindow()},userOnShowStationsMenu:function(a){if(!stationsMenuVisible()){a.stopPropagation();showStationsMenu(parseInt(a.clientX)+4,parseInt(a.clientY)-140)}$(document).one("mousedown",function(){hideStationsMenu()})},systemBeforeOnLoad:function(){_initLogger();setupCompability();setupMinifiedMask();setupVariables()},systemOnLoad:function(){init()},systemOnMaxify:function(){},systemOnMinify:function(){},systemOnClose:function(){}};function _getHandler(a){var b=window.currentHandlers[a];if(b==undefined){b=DEFAULT_HANDLERS[a]}return b}function triggerEvent(a,b){_getHandler(a).call(this,b);updateInterface()}var loadF=function(){};var unloadF=function(){};function isStandalone(){return(window.ggplayer!=undefined)}function loadScreen(d,a,c,b){unloadScreen();if(a==undefined){a=function(){}}if(c==undefined){c=function(){}}if(b==undefined){b=function(){}}if(screens[d]!=undefined){$("#center").html(screens[d]);a(b)}else{$("#center").load(d,function(e){screens[d]=e;a(b)})}if(d!=window.currentScreen){window.prevScreen=window.currentScreen;window.prevLoadF=window.loadF;window.prevUnloadF=window.unloadF}window.currentScreen=d;window.loadF=a;window.unloadF=c;updateInterface()}function unloadScreen(){window.unloadF();window.currentHandlers={};$("#center").children().remove()}function closeWindow(){if(window.ggwindow!=undefined){if(minified){ggwindow.minimize()}else{ggwindow.minimize()}}else{window.close()}}function minify(){$("#center").hide();$("#thePlayer").addClass("minified");$("#minimize").setButtonState("minified");$("#thePlayer #theBackground img").attr("src","images/radio-min-background.png");window.minified=true;var a=p.getStationIdx();if(a!=undefined&&stations[a]){_updateCurrentStationName()}if(isStandalone()){if(window.bottomDrawerOpen){window.ggwindow.setPropertyMap("barImage=images/radio-texts-min-bar5.png; mask=masks/radio-texts-min-mask5.png")}else{ggwindow.setPropertyMap("barImage=images/radio-min-bar.png; mask=masks/radio-min-mask.png")}window.ggwindow.skinCookie='{"minified": '+minified+"}"}updateInterface()}function isMinified(){return window.minified}function maxify(){$("#center").show();if(isStandalone()){if(window.bottomDrawerOpen){window.ggwindow.setPropertyMap("barImage=images/radio-texts-max-bar5.png; mask=masks/radio-texts-max-mask5.png")}else{window.ggwindow.setPropertyMap("barImage=images/radio-max-bar.png; mask=masks/radio-max-mask.png")}window.ggwindow.skinCookie='{"minified": '+minified+"}"}$("#thePlayer").removeClass("minified");$("#minimize").setButtonState("maxified");$("#thePlayer #theBackground img").attr("src","images/radio-max-background.png");window.minified=false;updateInterface()}function openDrawer(a){window.bottomDrawerOpen=true;if(isStandalone()){if(a==undefined){a=""}ggplayer.currentStationTextsEnabled=true;if(window.minified){ggwindow.animate('{ "0":"barImage=images/radio-texts-min-bar1.png; mask=masks/radio-texts-min-mask1.png", "10":"barImage=images/radio-texts-min-bar2.png; mask=masks/radio-texts-min-mask2.png", "20":"barImage=images/radio-texts-min-bar3.png; mask=masks/radio-texts-min-mask3.png", "30":"barImage=images/radio-texts-min-bar4.png; mask=masks/radio-texts-min-mask4.png", "40":"barImage=images/radio-texts-min-bar5.png; mask=masks/radio-texts-min-mask5.png" }',a.toString())}else{ggwindow.animate('{ "0":"barImage=images/radio-texts-max-bar1.png; mask=masks/radio-texts-max-mask1.png","10":"barImage=images/radio-texts-max-bar2.png; mask=masks/radio-texts-max-mask2.png","20":"barImage=images/radio-texts-max-bar3.png; mask=masks/radio-texts-max-mask3.png","30":"barImage=images/radio-texts-max-bar4.png; mask=masks/radio-texts-max-mask4.png","40":"barImage=images/radio-texts-max-bar5.png; mask=masks/radio-texts-max-mask5.png"}',a.toString())}}else{if(a==undefined){a=function(){}}$("#songText").animate({top:"-4px"},500,"linear",function(){$("#textBanner object").css("display","block");a()})}}function closeDrawer(a){if(!window.bottomDrawerOpen){return}if(isStandalone()){if(a==undefined){a=""}ggplayer.currentStationTextsEnabled=false;if(window.minified){ggwindow.animate('{ "0":"barImage=images/radio-texts-min-bar4.png; mask=masks/radio-texts-min-mask4.png","10":"barImage=images/radio-texts-min-bar3.png; mask=masks/radio-texts-min-mask3.png","20":"barImage=images/radio-texts-min-bar2.png; mask=masks/radio-texts-min-mask2.png","30":"barImage=images/radio-texts-min-bar1.png; mask=masks/radio-texts-min-mask1.png","40":"barImage=images/radio-min-bar.png; mask=masks/radio-min-mask.png" }',a.toString())}else{ggwindow.animate('{ "0":"barImage=images/radio-texts-max-bar4.png; mask=masks/radio-texts-max-mask4.png","10":"barImage=images/radio-texts-max-bar3.png; mask=masks/radio-texts-max-mask3.png","20":"barImage=images/radio-texts-max-bar2.png; mask=masks/radio-texts-max-mask2.png","30":"barImage=images/radio-texts-max-bar1.png; mask=masks/radio-texts-max-mask1.png","40":"barImage=images/radio-max-bar.png; mask=masks/radio-max-mask.png"}',a.toString())}}else{if($("#songText").is(":visible")){if(a==undefined){a=function(){}}$("#songText").animate({top:"-200px"},500,"linear",a);$("#textBanner object").css("display","none")}}window.bottomDrawerOpen=false}function _eatMe(){ggwindow.animate('{ "100":"barImage=images/radio-min-bar2.png; mask=masks/radio-min-mask2.png","200":"barImage=images/radio-min-bar3.png; mask=masks/radio-min-mask3.png","500":"barImage=images/radio-min-bar4.png; mask=masks/radio-min-mask4.png","700":"barImage=images/radio-min-bar5.png; mask=masks/radio-min-mask5.png"}',"ggwindow.minimize();ggwindow.setPropertyMap('barImage=images/radio-min-bar.png; mask=masks/radio-min-mask.png');")}function _onPlayFromStationsMenu(a){if(isStandalone()){ggplayer.playRequest(stations[a]["id"])}else{window._getHandler("userOnPlay").call(window,stations[a]["id"])}hideStationsMenu();return false}function _scrollUp(b){var a=parseInt($("#stationsMenuContent").css("top"))+b;if(a<=35){$("#stationsMenuContent").css("top",a);$(".scrollDown").removeClass("scrollDownDisabled")}else{$(".scrollUp").addClass("scrollUpDisabled");clearInterval(scrollStationsMenu)}}function _scrollDown(b){var a=parseInt($("#stationsMenuContent").css("top"))-b;if(a>=$("#stations").height()-$("#stationsMenuContent").height()-30){$("#stationsMenuContent").css("top",a);$(".scrollUp").removeClass("scrollUpDisabled")}else{$(".scrollDown").addClass("scrollDownDisabled");clearInterval(scrollStationsMenu)}}function stationsMenuVisible(){if(isStandalone()){return !(window.gg.stations==undefined||window.gg.stations.closed)}else{return $("#stationsMenu").is(":visible")}}function showStationsMenu(a,b){if(!stationsMenuVisible()){if(isStandalone()){window.ggview.openWindow("stations","content= stations_menu.html; type= popup; title: 'Stacje Open.FM'; left= cursor+2; top= cursor-60; width= page; height= page; resizable= no; modal= yes; transparency=0")}else{$("#stationsMenu").css("top",b+"px");$("#stationsMenu").css("left",a+"px");$("#stationsMenu").show()}}return false}function hideStationsMenu(){if(isStandalone()){window.gg.stations.close()}else{$("#stationsMenu").hide()}}function destroyStationsMenu(){$("#stationsMenu").unbind("mousewheel");$("#stationsMenu *").unbind("mousedown");$("#stationsMenuContent").html("")}function _vote(a){if(a>0){p.voteFor()}else{p.voteAgainst()}}function getFlashObject(b){var a=b;if(window.document[a]){return window.document[a]}if(navigator.appName.indexOf("Microsoft Internet")==-1){if(document.embeds&&document.embeds[a]){return document.embeds[a]}}else{return document.getElementById(a)}}function init(){if(!isStandalone()){if(window.flashPlayerReady!=undefined&&!flashPlayerReady()){setTimeout(init,100);return}}_initLogger();_initPlayer();_initIntroPlayer();_initAdBlock();_initScreenLoading();_initPlayStopButton();_initRDSWidget();_initVolumeBar();_initRightTopToolbar();_initVoting();_initTexts();_initCurrentStation();_initGemius();if(isPlaying()){$("#RDS").RDSStart()}if(!minified){if(isPlaying()){loadScreen("station_details.html",loadStationDetails,unloadStationDetails)}else{loadScreen(window.currentScreen,window.loadF,window.unloadF)}}else{unloadScreen();minify()}$("#theBackground img").bind("mousedown",function(b){b.preventDefault()});$(".loadingScreen").hide();updateInterface();if(isStandalone()){_initSettings();ggplayer.selectedStationCoversEnabled=true;var a=p.getChannelAutoplay();if(a>0){p.setChannelAutoplay(0);triggerEvent("userOnPlay",a)}}else{_initDragable();_initStationsMenu();var a=$.urlParam("id");if(a!=null){triggerEvent("userOnPlay",a)}}}function _initPlayer(){p=new OpenFMPlayer();window.stations=p.getStations();window.onbeforeunload=function(a){p.destroy()};p.setPlayHandler(function(a){triggerEvent("onPlay",a)});p.setStopHandler(function(){triggerEvent("onStop")});p.setStationChangedHandler(function(a){triggerEvent("onStationChange",a)});p.setStationsChangedHandler(function(){triggerEvent("onStationsChange")});p.setRDSHandler(function(a){triggerEvent("onRDSChange",a)});p.setVolumeHandler(function(a){triggerEvent("onVolumeChange",a)});p.setMuteHandler(function(a){triggerEvent("onMuteChange",a)});p.setVoteHandler(function(a){triggerEvent("onVoteStateChange",a)});p.setStationMetadataChangedHandler(function(){triggerEvent("onStationMetadataChanged")});p.setSelectedStationMetadataChangedHandler(function(){triggerEvent("onSelectedStationMetadataChanged")});p.setUserPlayHandler(function(a){triggerEvent("userOnPlay",a)})}function _initIntroPlayer(){window.intro=new IntroPlayer()}function _initAdBlock(){if(!isStandalone()){window.adblock=new AdBlock()}}function _initScreenLoading(){window.currentScreen="carousel.html";if(window.adblock!=undefined){if(window.adblock.challange()){window.currentScreen="adblock.html"}}window.loadF=loadChannels;window.unloadF=unloadChannels}function _initPlayStopButton(){$("#playButton").multiStateButton();$("#playButton").click(function(){if(isPlaying()){triggerEvent("userOnStop")}else{triggerEvent("userOnPlay")}return false});_updatePlayButtonState()}function _initRDSWidget(){$("#RDS").RDSWidget();$("#RDS").RDSSetClick(function(a){triggerEvent("userOnRDSRedirect",a)});$("#RDS").RDSSetText(p.getRDS())}function _initVolumeBar(){$("#volume").volumeBar();$("#volume").setBarVolume(p.getVolume()+14);$("#volume").setMuted(p.isMuted());$("#volume").setVolumeChangedHandler(_getHandler("userOnVolumeChange"));$("#volume").setMuteChangedHandler(_getHandler("userOnMute"))}function _initRightTopToolbar(){$("#settings").multiStateButton({states:[{name:"off",caption:"",tooltip:"Ustawienia...",button:"images/button1.png",hover:"images/button1_wcisniety.png",active:"images/button1_wcisniety.png"},{name:"on",caption:"",tooltip:"Zamknij okno ustawie??",button:"images/button1_wcisniety.png",hover:"images/button1.png",active:"images/button1.png"}]});$("#close").click(function(a){a.preventDefault();triggerEvent("userOnClose")});$("#settings").click(function(a){a.preventDefault();loadScreen("settings.html",loadSettings,unloadSettings)});$("#minimize").multiStateButton({states:[{name:"maxified",caption:"",tooltip:"Pomniejsz",button:"images/button2.png",hover:"images/button2_wcisniety.png",active:"images/button2_wcisniety.png"},{name:"minified",caption:"",tooltip:"Powi??ksz",button:"images/rozwiniecie.png",hover:"images/rozwiniecie_wcisniety.png",active:"images/rozwiniecie_wcisniety.png"}]});$("#minimize").click(function(a){a.preventDefault();if(minified){triggerEvent("userOnMaxify")}else{triggerEvent("userOnMinify")}})}function _initVoting(){$(".plus").click(function(a){a.preventDefault();_vote(1)});$(".minus").click(function(a){a.preventDefault();_vote(-1)});_updateVoteButtonsState()}function _initCurrentStation(){$("#currentStation #currentStationName").mousedown(_getHandler("userOnShowStationsMenu"));$("#currentStation #currentStationDings").mousedown(_getHandler("userOnShowStationsMenu"));$("#currentStation").attr("title","Wybierz stacj??...")}function _initDragable(){$("#thePlayer").draggable({handle:"#top",containment:$("html")})}function _initStationsMenu(){var b="stationsMenuEntrySelected";for(var a=0;a<stations.length;a++){var d="";if(p!=null&&a==p.getStationIdx()){d=b}$("#stationsMenuContent").append("<a href='#' onClick=\"return _onPlayFromStationsMenu("+a+");\" class='stationsMenuEntry "+d+"' >"+stations[a]["name"]+"</a>")}$(".scrollDown").bind("mouseover",function(){clearInterval(scrollStationsMenu);scrollStationsMenu=setInterval(function(){_scrollDown(15)},2)});$(".scrollDown").bind("mouseout",function(){clearInterval(scrollStationsMenu)});$(".scrollUp").bind("mouseover",function(){clearInterval(scrollStationsMenu);scrollStationsMenu=setInterval(function(){_scrollUp(15)},2)});$(".scrollUp").bind("mouseout",function(){clearInterval(scrollStationsMenu)});$("#stationsMenu").mousewheel(function(c,e){if(e>0){_scrollUp(30)}else{if(e<0){_scrollDown(30)}}});$("#stationsMenu *").mousedown(function(c){c.preventDefault()});$("#stationsMenu ").mousedown(function(c){c.preventDefault();c.stopPropagation()});b=null}function _initGemius(){if(window.GemiusAuditDS!=undefined){audit=new GemiusAuditDS();audit.run(audit)}}function _initLogger(){window.logger=new OpenFMLogger();if(isStandalone()){window.logger.enable()}}function updateInterface(){if(p!=undefined){_updateCurrentStationName();_updateVoteButtonsState();_updatePlayButtonState();_updateTButtonState();_updateRDS()}}function _updateCurrentStationName(){var a=p.getSelectedStationIdx();if(isStreamPlaying()||window.minified){a=p.getStationIdx()}if(a==undefined||a==-1){a=0}$("#currentStationName").html(stations[a]["name"]);$(".currentStationName").html(stations[a]["name"])}function _updateVoteButtonsState(){var a=p.getVoteEnabled();if(!a){$(".plus").addClass("frozenPlus");$(".minus").addClass("frozenMinus")}else{$(".plus").removeClass("frozenPlus");$(".minus").removeClass("frozenMinus")}}function _updatePlayButtonState(){if(isPlaying()){$("#playButton").setButtonState("playing")}else{$("#playButton").setButtonState("stopped")}}function _updateRDS(){var b=parseInt($("#currentStation").width());var c=intro.rds!=""?intro.rds:p.getRDS();$("#RDS").RDSSetText(c);if(isNaN(b)){b=30}var a=350;$("#RDS").RDSResize(a-b);if(isPlaying()){$("#RDS").RDSStart()}else{$("#RDS").RDSStop()}}function setupCompability(){if(window.ggplayer!=undefined){p=ggplayer;var len=ggplayer.stations.length;stations=new Array();for(var i=0;i<len;i++){var params=ggplayer.stationsParams[i];if(params==undefined||params==null||params=="null"||params==""){params="{}"}stations[i]={id:ggplayer.stationsIds[i],name:ggplayer.stations[i],logo:ggplayer.stationsLogoUrls[i],isNew:eval("["+params+"]")[0]["is_new"]}}p.getStationIdx=function(){return ggplayer.stationIdx};window.isStandalone=function(){return true};$(document).ready(_initStationsMenu)}}function setupMinifiedMask(){if(window.ggplayer!=undefined){var prop=eval("["+window.ggwindow.skinCookie+"]")[0];minified=(prop!=undefined)&&(prop.minified!=undefined)&&prop.minified;if(minified){window.ggwindow.setPropertyMap("barImage=images/radio-min-bar.png; mask=masks/radio-min-mask.png");$(".loadingScreen").addClass("minifiedLoading")}eval(ggview.skinDynamicCode)}}function setupVariables(){window.scrollStationsMenu=0;window.p=null;window.stations=[];window.rdsScroll=null;window.clickScroll=null;window.minified=false;window.bottomDrawerOpen=false;window.screens=[]}function isPlaying(){return isStreamPlaying()||isIntroPlaying()}function isStreamPlaying(){return p.isPlaying()}function isIntroPlaying(){return(intro!=undefined)&&(intro.isPlaying!=undefined)&&intro.isPlaying()}jQuery.fn.extend({mousewheel:function(a,c,b){return this.hover(function(){jQuery.event.mousewheel.giveFocus(this,a,c,b)},function(){jQuery.event.mousewheel.removeFocus(this)})},mousewheeldown:function(b,a){return this.mousewheel(function(){},b,a)},mousewheelup:function(b,a){return this.mousewheel(b,function(){},a)},unmousewheel:function(){return this.each(function(){jQuery.event.mousewheel.removeFocus(this)})},unmousewheeldown:jQuery.fn.unmousewheel,unmousewheelup:jQuery.fn.unmousewheel});jQuery.event.mousewheel={giveFocus:function(c,a,d,b){if(c._handleMousewheel){jQuery(c).unmousewheel()}if(b==window.undefined&&d&&d.constructor!=Function){b=d;d=null}c._handleMousewheel=function(e){if(!e){e=window.event}if(b){if(e.preventDefault){e.preventDefault()}else{e.returnValue=false}}var f=0;if(e.wheelDelta){f=e.wheelDelta/120;if(window.opera){f=-f}}else{if(e.detail){f=-e.detail/3}}if(a&&(f>0||!d)){a.apply(c,[e,f])}else{if(d&&f<0){d.apply(c,[e,f])}}};if(window.addEventListener){window.addEventListener("DOMMouseScroll",c._handleMousewheel,false)}window.onmousewheel=document.onmousewheel=c._handleMousewheel},removeFocus:function(a){if(!a._handleMousewheel){return}if(window.removeEventListener){window.removeEventListener("DOMMouseScroll",a._handleMousewheel,false)}window.onmousewheel=document.onmousewheel=null;a._handleMousewheel=null}};(function(a){a.fn.jCarouselLite=function(b){b=a.extend(a(this).data("options")||{},a.extend(a.fn.jCarouselLite.defaults,b||{}));a(this).data("options",b);return this.each(function(){a.fn.jCarouselLite.init(a(this))})};a.fn.jCarouselLite.init=function(b){a.fn.jCarouselLite._initActions(b);a.fn.jCarouselLite._initStyle(b)};a.fn.jCarouselLite._initActions=function(b){};a.fn.jCarouselLite._initStyle=function(i){var c=i.data("options");var d=a("ul",i);var b=a("ul li",i);var e=b.size();var h=b.width()+parseInt(b.css("margin-left"))+parseInt(b.css("margin-left"));i.data("itemLength",e);i.data("liSize",h);i.data("curr",c.start);i.addClass("jCarouselLite");i.css("visibility","visible");d.css({margin:"0",padding:"0","float":"left",position:"relative","list-style-type":"none","z-index":"1"});b.css({"float":"left",overflow:"visible"});i.css("position","relative");i.css("overflow","hidden");var f=h*e+40;var g=h*c.visible;b.css({width:b.width(),height:b.height()});d.css("width",f+"px").css("left",-(c.start*h));i.css("width",g+"px")};a.fn.jCarouselLite.defaults={btnPrev:null,btnNext:null,btnGo:null,mouseWheel:false,auto:null,speed:600,easing:null,visible:3,start:0,scroll:1,beforeStart:null,afterEnd:null};a.fn.carouselSize=function(){return a("li",a(this)).size()};a.fn.carouselRange=function(){return a("li",a(this)).size()-a(this).data("options").visible};a.fn.getCurrent=function(){return a(this).data("curr")};a.fn.scrollCarousel=function(c,b){a.fn.jCarouselLite.go(c,this,b)};a.fn.carouselNext=function(){return a(this).scrollCarousel(a(this).getCurrent()+1)};a.fn.carouselPrev=function(){return a(this).scrollCarousel(a(this).getCurrent()-1)};a.fn.jCarouselLite.visibleItems=function(d){var b=d.data("options");var c=d.data("curr");return a("li",d).slice(c).slice(0,b.visible)};a.fn.getCarouselPixPos=function(){var b=a("ul",a(this));return parseInt(b.css("left"))};a.fn.jCarouselLite.go=function(g,h,d){var j=h.data("options");if(j==undefined){return false}var b=j.visible;var f=a("ul",h);var e=h.data("itemLength");var c=h.data("liSize");var i=h.data("curr");if(d==undefined){d=1}if(j.beforeStart){j.beforeStart.call(this,a.fn.jCarouselLite.visibleItems(h))}if((g<0)||(g>(e-j.visible))||(g==i)){return false}else{i=g}h.data("curr",i);f.stop(true);f.animate({left:-(i*c+8)},j.speed*d,j.easing,function(){if(a(this).parents(".jCarouselLite").data("options")!=undefined&&a(this).parents(".jCarouselLite").data("options").afterEnd!=undefined){a(this).parents(".jCarouselLite").data("options").afterEnd.call()}});return true;j=null};a.fn.destroyCarousel=function(){}})(jQuery);(function(a){a.fn.channelSelect=function(b){b=a.extend({},a.extend(a.fn.channelSelect.defaults,b||{}));return this.each(function(){a(this).data("options",b);a.fn.channelSelect.init(a(this))})};a.fn.channelSelect.defaults={animation:100,width:340,easing:"linear",visible:5,start:0,showScrollbar:false};a.fn.channelSelect.SCROLLBAR_MARKUP=' <div id="scroll_bar"> <div id="scroll_prev"></div> <div id="scroll_container">     <div id="scroll_handle"></div> </div> 	<div id="scroll_next"></div> </div>';a.fn.channelSelect.init=function(b){a.fn.channelSelect._initScrollbar(b);a.fn.channelSelect._initMousewheel(b);a.fn.channelSelect._initData(b);a.fn.channelSelect._initCarousel(b);a.fn.channelSelect._initDrag(b)};a.fn.channelSelect._initData=function(b){var e=a("#scroll_container",b).width()-a("#scroll_handle").width();var c=b.carouselRange();var d=b.data("options");a.each({theinterval:false,range:c,total:e,step:e/c,lastRequested:d.start},function(f,g){b.data(f,g)});b=null;e=null;c=null;d=null};a.fn.channelSelect._initScrollbar=function(b){b.append(a.fn.channelSelect.SCROLLBAR_MARKUP);a("#scroll_handle",b).draggable({zIndex:1000,containment:"parent",axis:"x",opacity:0.7});a("#scroll_handle",b).bind("drag",a.fn.channelSelect._handler_drag_event);a("#scroll_handle",b).bind("stop",a.fn.channelSelect._handler_drag_event)};a.fn.channelSelect._initMousewheel=function(b){b.mousewheel(function(c,d){clearTimeout(window.carouselWheelTimer);window.carouselWheelTimer=setTimeout(function(){if(d>0){a("#channelSelect").scrollPrev()}else{if(d<0){a("#channelSelect").scrollNext()}}},3)})};a.fn.channelSelect._initCarousel=function(b){var c=b.data("options");b.addClass("channelSelect");b.jCarouselLite({animation:c.animation,scroll:c.scroll,visible:c.visible,easing:"linear",start:c.start,beforeStart:function(){b.unmarkAll()},afterEnd:function(){b.markMiddle();if(b.data("options").onSelectChange){b.data("options").onSelectChange.call()}}});a("#scroll_prev",b).bind("mouseover",function(f,g){f.preventDefault();window.scrollCarouselInterval=setInterval("$('#"+b.attr("id")+"').scrollPrev();",120)}).bind("mouseout",function(f,g){clearInterval(window.scrollCarouselInterval)});a("#scroll_next",b).bind("mouseover",function(f,g){f.preventDefault();window.scrollCarouselInterval=setInterval("$('#"+b.attr("id")+"').scrollNext();",120)}).bind("mouseout",function(f,g){clearInterval(window.scrollCarouselInterval)});a("#scroll_container",b).click(a.fn.channelSelect._scroll_container_onclick);b.markMiddle();var d=b.data("step");a.fn.channelSelect._moveHandle(b,c.start*d)};a.fn.channelSelect._initDrag=function(b){var c=a("#ulwrap",b);a(".carouselElement",c).bind("mousedown",function(d){d.preventDefault()});a(".channelLogo").bind("mousedown",function(d){d.preventDefault()});a(".channelTitle").bind("mousedown",function(d){d.preventDefault()});a(".channelButton").bind("mousedown",function(d){d.preventDefault()});a("#right_shade").bind("mousedown",function(f,g){f.preventDefault();c.trigger(f,g)}).bind("mousemove",function(f,g){f.preventDefault();c.trigger(f,g)});a("#left_shade").bind("mousedown",function(f,g){f.preventDefault();c.trigger(f,g)}).bind("mousemove",function(f,g){f.preventDefault();c.trigger(f,g)});a(".carouselElement",c).bind("mouseup",function(d){d.preventDefault()});a(".channelLogo",c).bind("mouseup",function(d){d.preventDefault()});c.bind("mousedown",a.fn.channelSelect._mousedownHandler);a(document).bind("mouseup",a.fn.channelSelect._mouseupHandler);a(document).bind("keydown",a.fn.channelSelect._keyDownHandler)};a.fn.channelSelect._mouseupHandler=function(b){a("#ulwrap").unbind("mousemove");a("#ulwrap").css("cursor",null);a("#ulwrap").data("prevStep",10)};a.fn.channelSelect._mousedownHandler=function(d){d.preventDefault();var b=a(this).parents(".channelSelect:first");var c=b.data("liSize");a(this).data("startdrag",d.clientX);a(this).css("cursor","move");a(this).unbind("mousemove");a(this).mousemove(a.fn.channelSelect._mousemoveHandler)};a.fn.channelSelect._mousemoveHandler=function(j){j.preventDefault();var b=a(this).parents(".channelSelect:first");var h=b.data("liSize");var d=a(this).data("startdrag")-j.clientX;var q=2;var m=16;if(d>=1||d<=-1){var k=a(this).data("prevStep");if(k==undefined){k=d}var g=Math.abs(d);var i=0.8;if(g>m){g=6}else{if(g>q){g=4}else{g=1.4;i=1}}var f=-1*d/Math.abs(d);var c=70*f*g;var l=parseInt(a(this).getCarouselPixPos()+c)/h*h;var o=f>0?-1*parseInt(l/h):-1*parseInt(l/h)+1;clearTimeout(b.data("thetimer"));b.data("thetimer",setTimeout("$('#"+b.attr("id")+"').scrollTo("+o+", "+i+")",10));a(this).data("startdrag",j.clientX)}a(this).data("prevStep",d)};a.fn.channelSelect._keyDownHandler=function(b){switch(b.keyCode){case a.ui.keyCode.LEFT:a("#channelSelect").scrollPrev();break;case a.ui.keyCode.RIGHT:a("#channelSelect").scrollNext();break;case a.ui.keyCode.ENTER:p.play(stations[a("#channelSelect").getCurrent()]["id"]);break;case a.ui.keyCode.SPACE:p.stop();break;case a.ui.keyCode.UP:p.incVolume();b.preventDefault();break;case a.ui.keyCode.DOWN:p.decVolume();b.preventDefault();break}};a.fn.channelSelect.BUTTON_TITLE_SELECTED_STYLE={fontSize:"12px",bottom:"9px",color:"#ffffff"};a.fn.channelSelect.BUTTON_TITLE_NORMAL_STYLE={fontSize:"9px",color:"#aaaaaa",bottom:"15px"};a.fn.unmarkAll=function(){var b=a(this).data("options");element=a(".carouselElementSelected");element.stop(true);element.css("overflow","visible");a(this).css("background-image","none");a(".channelTitle",element).stop(true);a(".channelTitle",element).css(a.fn.channelSelect.BUTTON_TITLE_NORMAL_STYLE);element.removeClass("carouselElementSelected")};a.fn.markMiddle=function(){var b=a(this).data("options");if(b==undefined){return}var d=a(this).data("lastRequested")+Math.floor(b.visible/2);a(this).css("background-image","url('images/red_shade.png')");element=a(".carouselElement:eq("+d+")");element.stop(true);element.addClass("carouselElementSelected");element.css("overflow","visible");a(".channelTitle",element).stop(true);a(".channelTitle",element).animate(a.fn.channelSelect.BUTTON_TITLE_SELECTED_STYLE,100)};a.fn.scrollBy=function(b){var c=a(this).data("curr");b=c+b;this.scrollTo(b)};a.fn.scrollByPx=function(b){this.scrollByPix(b)};a.fn.scrollTo=function(d,c){var b=a(this).data("range");var e=a(this).data("step");var f=a(this).data("curr");if(d>b){d=b}if(d<0){d=0}if(d!=f){a(this).scrollCarousel(d,c);a.fn.channelSelect._moveHandle(a(this),d*e);a(this).data("lastRequested",d)}};a.fn.scrollNext=function(){var d=a(this).data("lastRequested");var b=a(this).data("range");var c=a(this).data("step");if(d<b){d++;a(this).carouselNext();a.fn.channelSelect._moveHandle(a(this),d*c);a(this).data("lastRequested",d)}};a.fn.scrollPrev=function(){var c=a(this).data("lastRequested");var b=a(this).data("step");if(c>0){c--;a(this).carouselPrev();a.fn.channelSelect._moveHandle(a(this),c*b);a(this).data("lastRequested",c)}};a.fn.channelSelect._moveHandle=function(b,d){var c=b.data("total");a("#scroll_handle",b).stop();if((d>=0)&&(d<=c+30)){a("#scroll_handle",b).animate({left:Math.round(d)+"px"},300)}};a.fn.channelSelect._moveHandleToLastRequested=function(b){var d=b.data("lastRequested");var c=b.data("step");a.fn.channelSelect._moveHandle(b,d*c)};a.fn.channelSelect._handler_scroll_next=function(b){a(this).parents(".channelSelect:first").scrollNext()};a.fn.channelSelect._handler_scroll_prev=function(b){a(this).parents(".channelSelect:first").scrollPrev()};a.fn.channelSelect._scroll_container_onclick=function(i){var b=a(this).parents(".channelSelect:first");var h=b.data("total");var c=b.data("range");var g=b.data("lastRequested");var j=_getAbsolutePosition(a(this)).left;var f=i.clientX-j;var d=parseInt(c*f/a(this).width());if(d>c){d=c}if(d<0){d=0}if(d!=g){b.data("lastRequested",d);clearTimeout(b.data("thetimer"));b.data("thetimer",setTimeout("$('#"+b.attr("id")+"').scrollToLastRequested();$.fn.channelSelect._moveHandleToLastRequested($('#"+b.attr("id")+"'));",20))}};a.fn.channelSelect._handler_drag_event=function(h){var b=a(this).parents(".channelSelect:first");var g=b.data("total");var c=b.data("range");var f=b.data("lastRequested");var e=parseInt(a(this).css("left"));var d=(e/g*(c+1));d=parseInt(d);if(d>c){d=c}if(d<0){d=0}if(d!=f){b.data("lastRequested",d);clearTimeout(b.data("thetimer"));b.data("thetimer",setTimeout("$('#"+b.attr("id")+"').scrollToLastRequested();",10))}};a.fn.scrollToLastRequested=function(){a(this).scrollCarousel(a(this).data("lastRequested"))};a.fn.destroyChannelSelect=function(b){a(document).unbind("keydown",a.fn.channelSelect._keyPressHandler)}})(jQuery);_getAbsolutePosition=function(b){var a=0;var e=0;var d=b.position();var c=b.offset();if(c!=undefined){a=c.left;e=c.top}else{a=d.left;e=d.top}return{top:e,left:a}};(function(a){a.fn.volumeBar=function(b){b=a.extend(a.fn.volumeBar.defaults,b||{});return this.each(function(){a(this).data("options",b);a(this).html(a.fn.volumeBar.MARKUP);a.fn.volumeBar.init(a(this))})};a.fn.volumeBar.init=function(c){c.addClass("volumeBar");var b=a(".bars",c);var d=a(".bar",c);d.bind("mouseover",a.fn.volumeBar._barOnMouseOver);d.bind("mouseout",a.fn.volumeBar._barOnMouseOut);d.bind("mousedown",function(f){f.preventDefault();(a(this).parent(".bars").trigger(f))});d.bind("drag",function(f){f.preventDefault()});d.bind("mousenter",function(f){f.preventDefault()});d.bind("mouseleave",function(f){f.preventDefault()});d.bind("click",function(f){f.preventDefault()});b.bind("mousedown",function(f){a.fn.volumeBar._eventDragVolume.call(a(this),f);a(this).bind("mousemove",a.fn.volumeBar._eventDragVolume)});b.bind("mouseenter",function(f){if(window.pressed){a(this).bind("mousemove",a.fn.volumeBar._eventDragVolume)}});b.bind("mouseleave",function(f){a(this).unbind("mousemove")});a(document).bind("mouseup",function(f){a(".bars",c).unbind("mousemove");window.pressed=false});a(document).bind("mousedown",function(f){window.pressed=true});c.data("muted",false);a(".volumeIcon",c).click(function(f){f.preventDefault();c.setMuted(!c.data("muted"))})}})(jQuery);$.fn.setMuted=function(a){if($(this).data("muted")==a){return}$(this).data("muted",a);if($(this).data("muted")){$(".volumeIcon",$(this)).addClass("volumeIconMuted");$(".bar",$(this)).addClass("barWhite")}else{$(".volumeIcon",$(this)).removeClass("volumeIconMuted");$(this).setBarVolume($(this).data("volume"))}var b=$(this).data("mutedHandler");if(b!=undefined){b.call(this,$(this).data("muted"))}};$.fn.setBarVolume=function(a){if(isNaN(a)){a=40}$(this).data("volume",a);if($(this).data("muted")&&(a>0)){$(this).setMuted(false)}no=parseInt((($.fn.volumeBar.BARS_NR+1)*a)/100);$(".bar:gt("+no+")",$(this)).addClass("barWhite");$(".bar:eq("+no+")",$(this)).addClass("barWhite");$(".bar:lt("+no+")",$(this)).removeClass("barWhite")};$.fn.setVolumeChangedHandler=function(a){$(this).data("changeHandler",a)};$.fn.setMuteChangedHandler=function(a){$(this).data("mutedHandler",a)};$.fn.volumeBar.BARS_NR=7;$.fn.volumeBar.MARKUP='<a class="volumeIcon" title="Wycisz..." href="#"></a><div class="bars"><a class="bar" href="#"></a> <a class="bar" href="#"></a> <a class="bar" href="#"></a> <a class="bar" href="#"></a> <a class="bar" href="#"></a> <a class="bar" href="#"></a> <a class="bar" href="#"></a> </div>';$.fn.volumeBar.BAR_HOVERED_STYLE={top:"0px"};$.fn.volumeBar.BAR_NORMAL_STYLE={top:"8px"};$.fn.volumeBar._barOnMouseOver=function(){$(this).stop();$(this).animate($.fn.volumeBar.BAR_HOVERED_STYLE,100)};$.fn.volumeBar._barOnMouseOut=function(){$(this).animate($.fn.volumeBar.BAR_NORMAL_STYLE,180)};$.fn.volumeBar._eventDragVolume=function(d){var a=$(this);var b=$(d.target).parents(".volumeBar");vol=(d.clientX-_getAbsolutePosition(a).left)/a.width()*100;b.setBarVolume(vol);var c=b.data("changeHandler");if(c!=undefined){c.call(b.get(),b.data("volume"))}};_getAbsolutePosition=function(b){var a=0;var e=0;var d=b.position();var c=b.offset();if(c!=undefined){a=c.left;e=c.top}else{a=d.left;e=d.top}return{top:e,left:a}};var RDS_SPEED=30;(function(a){a.fn.RDSWidget=function(b){b=a.extend(a.fn.RDSWidget.defaults,b||{});return this.each(function(){a(this).data("options",b);a(this).html(a.fn.RDSWidget.MARKUP);a.fn.RDSWidget.init(a(this))})};a.fn.RDSWidget.init=function(b){b.addClass("RDSWrap");a.fn.RDSWidget._rdsStoppedStyle(b)}})(jQuery);$.fn.RDSGetText=function(){var a=$(this);return $(".rdsText",a).html()};$.fn.RDSSetText=function(b){var a=$(this);$(".rdsText",a).html(b);$(".RDS",a).attr("title",b);a.data("rds_width",parseInt($(".rdsText",a).width())+parseInt($(".rdsSpacer",a).width()))};$.fn.RDSResize=function(a){var b=$(this);b.css("width",a+"px");if($(this).data("scrolling")){$.fn.RDSWidget._rdsScrollingStyle(b)}else{$.fn.RDSWidget._rdsStoppedStyle(b)}b.data("rds_width",parseInt($(".rdsText",b).width())+parseInt($(".rdsSpacer",b).width()))};$.fn.RDSStart=function(){var a=$(this);clearInterval($(this).data("rdsScroll"));$.fn.RDSWidget._rdsScrollingStyle(a);a.data("rdsScroll",setInterval(function(){$.fn.RDSWidget._step(a)},RDS_SPEED));$(this).data("scrolling",true)};$.fn.RDSStop=function(){clearInterval($(this).data("rdsScroll"));$(this).data("scrolling",false);var a=$(this);$(".RDS",a).css("left",0)};$.fn.RDSWidget._rdsStoppedStyle=function(a){a.data("rds_width",parseInt($(".rdsText",a).width())+parseInt($(".rdsSpacer",a).width()));$(".rdsText:gt(0)",a).hide();$(".rdsSpacer",a).hide();$(".rdsText:eq(0)",a).css("width",a.width()-20);$(".rdsText:eq(0)",a).css("text-align","right")};$.fn.RDSWidget._rdsScrollingStyle=function(a){a.data("rds_width",parseInt($(".rdsText",a).width())+parseInt($(".rdsSpacer",a).width()));$(".rdsText:gt(0)",a).show();$(".rdsSpacer",a).show();$(".rdsText:eq(0)",a).css("width",null);$(".rdsText:eq(0)",a).css("text-align","left")};$.fn.RDSSetClick=function(a){$(".RDS",$(this)).unbind("click");$(".RDS",$(this)).click(a)};$.fn.RDSWidget.defaults={rdsScroll:null};$.fn.RDSWidget.MARKUP='<a class="RDS" href="#"><div class="rdsText"></div> <div class="rdsSpacer"></div><div class="rdsText"></div><div class="rdsSpacer"></div><div class="rdsText"></div><div class="rdsSpacer"></div></a><div id="prawy_dolny_gradient"><img src="images/prawy_dolny_gradient.png" /></div><div id="lewy_dolny_gradient"><img src="images/lewy_dolny_gradient.png" /></div>';$.fn.RDSWidget._step=function(d){var c=$(".RDS",d);var b=parseInt(c.css("left"));var a=$(d).data("rds_width");if(-b>a){b=0}c.css("left",(b-1)+"px")};(function(a){a.fn.multiStateButton=function(b){b=a.extend({},a.extend(a.fn.multiStateButton.defaults,b||{}));return this.each(function(d,c){a(c).data("options",b);a.fn.multiStateButton.init(a(c))})};a.fn.multiStateButton.init=function(b){var c=b.data("options");b.data("currentState",0);if(c.toggle){b.click(function(){var d=a(this).data("options");a(this).setButtonState((a(this).data("currentState")+1)%d.states.length)})}b.mouseover(function(){var e=a(this).data("options");var d=a(this).data("currentState");a(".buttonImage",a(this)).attr("src",e.states[d]["hover"])});b.mouseout(function(){var e=a(this).data("options");var d=a(this).data("currentState");a(".buttonImage",a(this)).attr("src",e.states[d]["button"])});b.mousedown(function(){var e=a(this).data("options");var d=a(this).data("currentState");a(".buttonImage",a(this)).attr("src",e.states[d]["active"])});b.mouseup(function(){var e=a(this).data("options");var d=a(this).data("currentState");a(".buttonImage",a(this)).attr("src",e.states[d]["button"])});b.append('<img class="buttonImage" src="" />');b.append('<span class="buttonText"></span>');b.setButtonState(0);b=null;c=null};a.fn.setButtonState=function(e){var f=a(this).data("options");if(f==undefined){return}var d=0;var b=f.states.length;for(var c=0;c<b;c++){if(f.states[c]["name"]==e){d=c;break}}a(this).data("currentState",d);a(".buttonImage",a(this)).attr("src",f.states[d]["button"]);a(".buttonImage",a(this)).attr("title",f.states[d]["tooltip"]);a(".buttonText",a(this)).html(f.states[d]["text"])};a.fn.multiStateButton.defaults={states:[{name:"stopped",caption:"",tooltip:"Play",button:"images/przycisk_play.png",hover:"images/przycisk_play_hover.png",active:"images/przycisk_play_wcisniety.png",text:""},{name:"playing",caption:"",tooltip:"Stop",button:"images/przycisk_stop.png",hover:"images/przycisk_stop_hover.png",active:"images/przycisk_stop_wcisniety.png",text:""}],toggle:false}})(jQuery);(function(a){a.urlParam=function(c){var d=new RegExp("[\\?&]"+c+"=([^&#]*)").exec(window.location.href);var e=null;if(c=="id"){var b=(window.location+"").split("/");e=b[b.length-1];if(!isNaN(parseInt(e))){return e}}return d&&(d[1]||0)}})(jQuery);var METADATA_REFRESH_TIMEOUT=2;var MAX_CURRENT_ARTIST_AND_TITLE=42;var MAX_NEXT_ARTIST_AND_TITLE=42;var METADATA_FADEOUT_TIMEOUT=60;var CHOOSE_CHANNEL_MSG="Wybierz Stacje...";var CHANNELS_HANDLERS={onStationsChange:function(){var a='<li class="carouselElement" ><div class="channelButton"></div> <div class="channelTitle"></div></li>';stations=p.getStations();$("#channelSelect").replaceWith('<div id="channelSelect"><div id="left_shade" class="carouselShade"><img src="images/left_shade.png" /></div><div id="right_shade"  class="carouselShade"><img src="images/right_shade.png" /></div><div id="ulwrap"><ul>'+a+a+"<div id='carouselContent'></div>"+a+a+"</ul></div></div>");_insertCarouselContent();_initChannelSelect();if(window.ggwindow==undefined){destroyStationsMenu();initStationsMenu()}},onStationChange:function(){DEFAULT_HANDLERS.onStationChange();$("#channelSelect").scrollTo(p.getStationIdx())},onSelectedStationMetadataChanged:function(){_updateMetadata(p.getSelectedStationMetadata())}};function _initChannelSelect(){$("#channelSelect .carouselElement").each(function(){$(this).click(function(c){c.preventDefault();var b=$(this).parent().children().index(this);clearTimeout(clickScroll);clickScroll=setTimeout("$('#channelSelect').scrollTo("+b+"-2);",220)});$(this).dblclick(function(){var b=$(this).parent().children().index(this)-2;b=stations[b]["id"];triggerEvent("userOnPlay",b);return false});$(this).mouseover(function(b){b.preventDefault()})});var a=p.getSelectedStationIdx();if(a==-1){a=p.getStationIdx()}$("#channelSelect").channelSelect({start:(a!=-1?a:0),onSelectChange:function(){var b=$("#channelSelect").getCurrent();p.setSelectedStation(stations[b]["id"]);_updateCurrentStationName()}});$(".rightArrow").bind("mouseover",function(b,c){b.preventDefault();window.scrollCarouselInterval=setInterval("$('#channelSelect').scrollNext();",120);$(this).addClass("rightArrowHovered")}).bind("mouseout",function(b,c){clearInterval(window.scrollCarouselInterval);$(this).removeClass("rightArrowHovered")});$(".leftArrow").bind("mouseover",function(b,c){b.preventDefault();window.scrollCarouselInterval=setInterval("$('#channelSelect').scrollPrev();",120);$(this).addClass("leftArrowHovered")}).bind("mouseout",function(b,c){clearInterval(window.scrollCarouselInterval);$(this).removeClass("leftArrowHovered")});$(".stationMetadata").unbind("click");$(".stationMetadata").click(function(){loadScreen("station_details.html",loadStationDetails,unloadStationDetails)});$(".stationMetadata").mouseover(function(){$(".stationMetadataBg").addClass("stationMetadataBgHovered");$(".stationMetadata").addClass("stationMetadataHovered")});$(".stationMetadata").mouseout(function(){$(".stationMetadataBg").removeClass("stationMetadataBgHovered");$(".stationMetadata").removeClass("stationMetadataHovered")})}function _initMetadataDisplay(){_initMetadataFading()}function _destroyMetadataDisplay(){_destroyMetadataFading()}function _initMetadataFading(){window.metadataFadingTimer=setInterval(_switchMetadata,METADATA_FADEOUT_TIMEOUT*100)}function _switchMetadata(){if(parseInt($("#switchToDetails").css("top"))>=0){_switchFromTo("#switchToDetails","#currentSongMetadata")}else{if(parseInt($("#currentSongMetadata").css("top"))>=0){_switchFromTo("#currentSongMetadata","#nextSongMetadata")}else{_switchFromTo("#nextSongMetadata","#switchToDetails")}}}function _destroyMetadataFading(){clearInterval(window.metadataFadingTimer)}function _switchFromTo(d,c){$(d).stop();$(d).animate({top:"-50px"},100,"linear");$(c).stop();$(c).animate({top:"0px"},400)}function _updateMetadata(a){if(a!=undefined&&a["0"]!=undefined){$(".stationMetadata #currentSongMetadata .songMetadata").html(_shorten(a["0"]["artist"]+" - "+a["0"]["title"],MAX_CURRENT_ARTIST_AND_TITLE));$(".stationMetadata #currentSongMetadata").attr("title",a["0"]["artist"]+": "+a["0"]["title"])}else{$(".stationMetadata #currentSongMetadata .songMetadata").html("...");$(".stationMetadata #currentSongMetadata").attr("title","...")}if(a!=undefined&&a["1"]!=undefined){$(".stationMetadata #nextSongMetadata .songMetadata").html(_shorten(a["1"]["artist"]+" - "+a["1"]["title"],MAX_NEXT_ARTIST_AND_TITLE));$(".stationMetadata #nextSongMetadata").attr("title",a["1"]["artist"]+": "+a["1"]["title"])}else{$(".stationMetadata #nextSongMetadata .songMetadata").html("...");$(".stationMetadata #nextSongMetadata").attr("title","...")}}function loadChannels(){window.currentHandlers=CHANNELS_HANDLERS;_insertCarouselContent();$("#channelSelect").css("display","block");$(".stationMetadata").css("display","block");$(".carouselArrow").css("display","block");$(".theCloud").unbind("click");$(".theCloud").click(function(){loadScreen("station_details.html",loadStationDetails,unloadStationDetails)});$(".theCloud").setButtonState("showDetails");maxify();if(isStandalone()){setTimeout("_initChannelSelect();_updateSelectedStation();_initMetadataDisplay();_updateMetadata( p.getSelectedStationMetadata() )",100)}else{_initChannelSelect();_updateSelectedStation();_initMetadataDisplay();_updateMetadata(p.getSelectedStationMetadata())}}function _updateSelectedStation(){_updateCurrentStationName()}function unloadChannels(){$("#channelSelect").css("display","none");$(".stationMetadata").css("display","none");$(".carouselArrow").css("display","none");_destroyMetadataDisplay()}function getDefaultStationLogo(a){return"images/logos/"+stations[a]["id"]+".png"}function _insertCarouselContent(){var b="";var e="";for(var d=0;d<stations.length;d++){b="";if(stations[d]["is_new"]){b='<img class="labelNew" src="images/new.png">'}var a=stations[d]["logo"];if(a==undefined||a==null||a==""){a=getDefaultStationLogo(d)}e+='<li class="carouselElement" ><div class="channelButton"><img class="channelLogo" src="'+a+'"  />'+b+'</div><div class="channelTitle"><div class="channelTitleInner"><img class="channelTitleBackground" src="images/chmurka.png" /><div class="channelTitleText">'+stations[d]["name"]+"</div></div></div></li> "}$("#channelSelect #carouselContent").replaceWith(e)}function _shorten(b,a){if(b!=undefined&&b.length>a){b=b.substring(0,a-3);b+="..."}return b}function _initSettings(){var a=ggview.skins.length;if(a<=1){$("#settingsScreen #settingsSkin").hide()}prevSkin=ggview.skinIdx;$("#settingsScreen #saveButton").click(settingsSubmit);$("#settingsScreen #cancelButton").click(settingsCancel);$("#settingsScreen").hide()}function loadSettings(d){_initSettings();$("#settingsScreen #showStatusCheckbox").attr("checked",ggconfig.setIMStatusMessage);$("#settingsScreen #closeWithIMCheckbox").attr("checked",ggconfig.closeOnIMShutdown);$("#settingsScreen #alwaysOnTopCheckbox").attr("checked",ggconfig.alwaysOnTop);$("#settingsScreen #settingsVersion").html(ggplayer.version);var a=ggview.skins.length;var c="";$("#skinSelect").html("");for(var b=0;b<a;b++){c="";if(ggview.skinIdx==b){c='selected="true"'}$("#skinSelect").append("<option "+c+'value="'+b+'" >'+ggview.skins[b]+"</option>")}$("#settings").unbind("click");$("#settings").click(settingsCancel);$("#settings").setButtonState("on");maxify();$("#settingsScreen").show();if(d!=undefined){d()}}function unloadSettings(){$("#settings").setButtonState("off");$("#settings").unbind("click");$("#settings").click(function(a){a.preventDefault();loadScreen("settings.html",loadSettings,unloadSettings)});$("#settingsScreen").hide()}function settingsSubmit(){if(prevSkin!=$("#skinSelect").val()){ggview.setSkin($("#skinSelect").val())}else{ggconfig.setIMStatusMessage=$("#settingsScreen #showStatusCheckbox").is(":checked");ggconfig.closeOnIMShutdown=$("#settingsScreen #closeWithIMCheckbox").is(":checked");if(ggconfig.alwaysOnTop!=$("#settingsScreen #alwaysOnTopCheckbox").is(":checked")){ggconfig.alwaysOnTop=$("#settingsScreen #alwaysOnTopCheckbox").is(":checked")}loadScreen(window.prevScreen,window.prevLoadF,window.prevUnloadF)}return false}function settingsCancel(){loadScreen(window.prevScreen,window.prevLoadF,window.prevUnloadF);return false}var NO_TEXT_MSG="Brak tekstu dla tej piosenki, przepraszamy :( ";var BANNER_KEYS=[""];BANNER_KEYS[1]="5HCQhs2sNwhyBo2GqprIDyhSs1v4rzITeMK2ubD8Z5P.g7";BANNER_KEYS[2]="y.AG5u43kqMVsVaO_a980ivM4foO.95BhXF9XNHfBHv.n7";BANNER_KEYS[3]="HW3gg_LodxYWai1DOU1SRvbCgiDQUx5RyiXQUH4qg_r.q7";BANNER_KEYS[4]="WCU1eE5.3SGGV6TaFKPX01DnIoK3bF4sll9jtb6tQVD.W7";BANNER_KEYS[5]="yTRMXlGQPRzNoE8aBomfRw12HW.GQkbC9V11W3FL4Gn.D7";BANNER_KEYS[6]="pSBK0wBf854O98NAPk413F09veZmJYc0C7WF72xPohP.Q7";BANNER_KEYS[7]="Yg.rnVeoiLBLkllHrxkE07VYnIa9_TBuObvsuD9Y_67.P7";BANNER_KEYS[8]="40U2lFprgqrrtfUFEOUvzblffT7AXgcH.v7yes0bpC7.J7";BANNER_KEYS[9]="kUqaTE7co4Sqv4zhY1LRi7fvH2u4sa8fVZAE9CkYy57.G7";BANNER_KEYS[10]="hCdXIu2S5zmslUY1Iu64QHntAy0LdlHCrczp_Oo782z.J7";BANNER_KEYS[11]="HcX6sOOCQzcWONHOkvQCIquAs6EzpDHRunXm6YeLyaj.r7";BANNER_KEYS[12]="93ysJOtwTXpvcx3XYX8Scd.Rw0jvmdH8XEAcRdkv7xH.m7";BANNER_KEYS[13]="7zlFHkkoPXK9yaoyzSPzf4lcURzwUibnZcF6R9ip.A..47";BANNER_KEYS[14]="oYxMDT73PXk0qN326OQ8MC1AEO_Wi0LnPshj82piFoD.K7";BANNER_KEYS[15]=".raqldXwA463kKK4P3Ry1SAYUR0PDCbng5s9ZtAGmF..T7";BANNER_KEYS[16]="nh5VSOa0nP7s1MUMoXrdOjV4wu39hZ3ff9.Nj1PQQfT.G7";BANNER_KEYS[17]="meFAL_EShvlXDfI6S9Fvz7jYXjPApvuZcsSY6erG2nX.97";BANNER_KEYS[18]="McylhW7OTaqk1gUOMgQnpCj985UAvrIM8uA5ZHUyo_D.s7";BANNER_KEYS[19]="oQI7tD85OE9VOy5ANxE6EV3KIffRA14Q5uYNMRcNtAf.h7";BANNER_KEYS[20]="wJxGz0v24hRU2cuDkQdiFot5wIOTYiMGk3VgxinaSmT.b7";BANNER_KEYS[21]="hSxLRF.lmMqeq4md6NLqp3GwID2HAeLmBkVDe8hKGAv.w7";BANNER_KEYS[22]="U_XqhwpY48smjON9lLyPbZCzcMhPygLY036TH_aOZq3.47";BANNER_KEYS[23]="U077xAnJ6OSGbQluSg108xh1fYko4wcDnxSIrli3bof.e7";BANNER_KEYS[24]="xf9AK.N0hvjqFEb0Pjc1ZeFoj3J32g7QPHxBs56N3eT.y7";BANNER_KEYS[25]="vuBKYGZ081w8dLz960ZBlBBqIrgPL13Adk2gs6OylZf.u7";BANNER_KEYS[26]="82.rKhpCiN5m3JLMafUxlS0T7myW9JsICFJba.j.ZA..07";BANNER_KEYS[27]="7TPlw2NzLTqRDDC3Pabg9AkEL5kwRk7fFQ8qGg3MkyL.P7";BANNER_KEYS[28]="5Dxb6s0x_FDdtINoscmX1b6X3KNBELBM8MCcJeZoOzX.17";BANNER_KEYS[29]="NsCamaLvoykvO_17WzDRYEjvjCLQ0ZCjH5Ac8DOLbPb.E7";BANNER_KEYS[30]="anjssOP4LQNTzv3li0osaR1A4WvGl8ejaE2at2jfbKr.s7";BANNER_KEYS[31]="FGnqEE1j44snPWJJsAAIHANdjMi6HJAOQaNZRNKRz8v.v7";BANNER_KEYS[32]="ah1GwuRz4m8uKssRkgICk9slMtYDkf6AykuACZ1xRY7.n7";BANNER_KEYS[33]="RSaskiBrTPL.2_SDGhaQYeIQPm8fYbrzvgn4atnn2EH.A7";BANNER_KEYS[34]="QrL1Nddwjdv1CqC6LrkgoTMwImhaRF5wp5jA3JfYNdj.y7";BANNER_KEYS[35]="X0qcKvkV7YdtHF6.ZvGSgjwwwMHe7SMQXucDMkU3Vjb.U7";BANNER_KEYS[36]=".fiaita3o7zhB0gBZDjbE3gm8W5od2dL8us6Ji.jj.L.e7";BANNER_KEYS[37]="Gf37oPPb6EkeGAmn_GkUM6MX7IFKdlC8FAU8K7A7C1f.97";BANNER_KEYS[38]="48jllVp3LTG77ZAYYM8Q0mz.EO828ULn6C2DO0kSqIf.t7";BANNER_KEYS[39]="BkCV2GN77SIv_DVrG5ntWBzDzxjGgI76JUF04YeT_Qr.17";BANNER_KEYS[40]="wiKc.Tdl7Q61zhmQvrn8ZAKPL0jv_U_PB4PxAcLbv_L.e7";BANNER_KEYS[41]="C1T1_qd0jS4E_8888ZuDt8KsY3ZPTBITZ6WGwH095xj.W7";BANNER_KEYS[42]="xvPsvXtcLThPLL7CIYkZPt_8TtaZvVuZEOHxCnE.E33.Q7";BANNER_KEYS[43]="SzGWkdeNkqD6GqZ5C.uMS._7sARpFYOwEEeQR3tVGqv.j7";BANNER_KEYS[44]="oiOc_be27RAgwmmZwkUs8Ov78WNuNGcGq_c6KE127JT.i7";BANNER_KEYS[45]="ZG46kD2hk3E896IRbHOyhuKozS0fPSbnJANFd5r1wEj._7";BANNER_KEYS[46]="vUI33fNiJz4QbLsxKIKeykxaLQbeBObXnrT.Kh8Imm7.27";BANNER_KEYS[47]="VOtcqX0knVznRfkOFlwMk8V.PoKNo7uSrGwYOodWCJL.c7";BANNER_KEYS[48]="dnzhhAO9rJ4FP8HD7CqeyAxvPog_nLuZ7oqrWi9lBm3.j7";BANNER_KEYS[49]="UZjspx78LdLUlm9e0pXpkeqfnpD7unrKuoRI5PgY_BD.D7";BANNER_KEYS[50]="L0FFUYlWPUS9Tp9k7WODfhpJLKWbZt.UM0P8i2rnTeP.37";BANNER_KEYS[51]=".NpMbfA.PUz6ZIktozRs9p5AsbxxfeeO8F999OaHWKv.f7";BANNER_KEYS[52]="JXnxnX.YDDD_.tJn_B2omVY.zRQlDCb0x3I1.jwwUNP.37";BANNER_KEYS[53]="IVY8Lq7.3SGKqzSFqWigA56dID1x5uLmkxGQAA5XPEX.z7";BANNER_KEYS[54]="X4wMyvkZ7PeSM39pYObvp3RhEliCmb5knvPgKlUz40H.97";BANNER_KEYS[55]="FLtac029U4D8ojNPHEsVTr59U0JBQHJMORyJMN92heL.67";BANNER_KEYS[56]="gUY7s48lOIrE37hH2D03NM8Pz_fJwo_k4z6UXiLsOb..F7";BANNER_KEYS[57]="EjfqqWeO46KQ4DNQsiRfMnkQnlEgCHt6MhNRAPrNw5n.F7";BANNER_KEYS[58]="TwFcpDkmnZQYHKR92vVG0CgSXVL4X8bnBPZFHkO8QDH.y7";BANNER_KEYS[59]="oalBLz_FvH1fSKeWrDF06jYWLSlV1_e2J0VFA.XJQgv.Q7";BANNER_KEYS[60]="sPg8A.7o3Rikay6pCLW8TfJ5sOofIYL0Bx_gW.Nz2nH.W7";BANNER_KEYS[61]="m9w6.Mc6k7M6bkHlUmHCFjhU0CDIecNYBe2KsxNFb8X.M7";BANNER_KEYS[62]="xthKRPMI8xWKP6HoeMIIlOy8YyBuxhK8iCRJEAqrkx..R7";BANNER_KEYS[63]="pnyQ7HOqNyzFzdd1sr1l0PtV4uzTfN6gyfUQ6EczRW3.N7";BANNER_KEYS[64]="1GjhhA11rJ5d9MHK0an4bJo3E_tbPvIiOg0Ws5H_t5..j7";BANNER_KEYS[65]="GT5LtIEkmHq9gmgDZrAX.sPaUZLyjSdOCPotAaoJ2MD.27";BANNER_KEYS[66]="wxBR8Kq3HMRxxUGtvfvx90lNjJTQKpBfVWxMd7gt23..X7";BANNER_KEYS[67]="If_sCye3TdpaBomm6qY8YKdDAOtg2qOzirmjp2RdWBD.p7";BANNER_KEYS[68]="h8rl7EuyLQnvlO.tQTygIsZxYJplbGMYrbuauNEibQ7.K7";BANNER_KEYS[69]="y8cFmDbu7aKvnaA6C2MwWqu7Em0zBL4vLVktQl9iBKj.E7";BANNER_KEYS[70]="vcAHP.NeNvhAxrFyOKC4b7TXP7W95_9CrESEeldlOb7.s7";BANNER_KEYS[71]="5m7xwKMyDMv6_SHgOO3elHIXgtrfEh6t3sItirnWJAn.X7";BANNER_KEYS[72]="RSQ3tyAnJzTELnEs0Afy.Y0jXlQGBfup2vKhUoJfAxX.L7";BANNER_KEYS[73]="rHRBv8.GvM2VQ0bjbaXk5Xf_oP5oDkcs3yLaHuhPKlP.17";BANNER_KEYS[74]="TbtXklNj53jAfqDbgt24ELsM.LYzTPC2ig8M7gcrzPj.D7";BANNER_KEYS[75]="fIaqmVAfA4yKy2g9E85F2dhwzYqIKibYOFQITUFZbL7.t7";BANNER_KEYS[76]="teE8OcB43Y_k7B5_VltcndfHjOiIAZAeMiVZJjBP0WH.M7";BANNER_KEYS[77]="TnRH4sZNh2biv8rj2VTkrHCkov2.IJJ6M18WFkX6l0..E7";BANNER_KEYS[78]="nUZB63MHvA7wmeF6smKhhduVf14Dwm7M_uphfqe6j6b.D7";BANNER_KEYS[79]="Bfj86WOMjaT1IF3h0ohsvbLHs7tKrzHa5HWpSOoJE2v.q7";BANNER_KEYS[80]="rAhVTMABnW1qimpI6QXdSWxWXVMu18bnbssllTWTAgT.m7";var textsAdURL="";function getTextBannerForStation(b){var a=BANNER_KEYS[b];return a==undefined?BANNER_KEYS[0]:a}function _initTexts(){$("#songTextButton").multiStateButton({states:[{name:"disabled",caption:"",tooltip:"Tekst niedost??pny",button:"images/t_disabled.png",hover:"images/t_disabled.png",active:"images/t_disabled.png"},{name:"enabled",caption:"",tooltip:"Tekst piosenki",button:"images/t.png",hover:"images/t.png",active:"images/t.png"}]});$("#songTextButton").unbind("click");$("#songTextButton").click(showSongText);$("#scrollHandle").draggable({zIndex:1200,containment:"parent",axis:"y",opacity:0.7,drag:function(){_adjustTextPosition.call(this)}});$("#textScrollPane").mousewheel(function(b,d){var c=$("#scrollHandle");var a=0.02;if(d<0){if(_getHandlePos.call(c)+a<1){_moveHandleTo.call(c,(_getHandlePos.call(c)+a)%1)}else{_moveHandleTo.call(c,1)}}else{if(d>0){if(_getHandlePos.call(c)-a>0){_moveHandleTo.call(c,(_getHandlePos.call(c)-a)%1)}else{_moveHandleTo.call(c,0)}}}})}function showTextsAd(){if($("#textBanner object").is(":visible")){getDataForPlacement(getTextBannerForStation(p.getSelectedStationId()),_showTextsAd)}}function hideTextsAd(){var a=getFlashObject("textBannerSwf");if((a!=undefined)&&(a.unloadBanner!=undefined)){a.unloadBanner()}}function _showTextsAd(a){a=_parsePlacementData(a);clearTimeout(window.textBannerLoadTimer);window.textsAdURL=a.file_url;if((window.textsAdURL!=undefined)&&(window.textsAdURL!="")){_loadTextBanner()}}function _loadTextBanner(){clearTimeout(window.textBannerLoadTimer);if((isStandalone()&&window.bottomDrawerOpen)||!$("#textBanner object").is(":visible")){return}var a=getFlashObject("textBannerSwf");if((a==undefined)||(a.loadBanner==undefined)){window.textBannerLoadTimer=setTimeout(_loadTextBanner,100);return}if((window.textsAdURL!=undefined)&&(window.textsAdURL!="")){getFlashObject("textBannerSwf").loadBanner(window.textsAdURL)}}function _updateCurrentSongText(){var a=p.getCurrentStationMetadata();if(a!=undefined&&a["0"]!=undefined&&a["0"].text_url!=undefined){_updateTButtonState();if((a["0"].text_url!=undefined)&&(a["0"].text_url!="")){p.loadExternalURL(a["0"].text_url,_updateSongText)}}else{_updateSongText(NO_TEXT_MSG)}}function _updateTButtonState(){if(p.isCurrentTextAvailable()){$("#songTextButton").setButtonState("enabled")}else{$("#songTextButton").setButtonState("disabled")}}function _updateSongText(c,b){var a=p.getCurrentStationMetadata();if(a!=undefined&&a["0"]!=undefined){$("#theText #artist").html(a["0"].artist);$("#theText #title").html(a["0"].title);$("#theText #lyrics").html(c)}else{$("#theText #artist").html("&nbsp;");$("#theText #title").html("&nbsp;");$("#theText #lyrics").html(NO_TEXT_MSG)}_adjustHandleLength.call($("#scrollHandle"));_moveHandleTo.call($("#scrollHandle"),0)}function _adjustHandleLength(){var d=$(this);var g=$(this).parents("#textScrollPane");var f=$(this).parents("#textVerticalScrollbar");var e=parseInt(g.height()-33);var c=parseInt($("#theText",g).height());var a=parseInt(f.height());var b=(c==0)||(a==0)?2:e/c*a;d.height(b+"px")}function _adjustTextPosition(){var h=$(this).parents("#textScrollPane");var f=$(this).parents("#textVerticalScrollbar");var c=parseInt(h.css("top"));var e=parseInt(h.height()-33);var d=parseInt($("#theText",h).height());var g=parseInt($(this).css("top"));var a=parseInt(f.height());var b=$(this).height();$("#theText",h).css("top",a==b||d==e?0:-1*g/(a-b)*(d-e)+"px")}function _getHandlePos(){var c=$(this);var e=$(this).parents("#textVerticalScrollbar");var a=parseInt(e.height());var b=parseInt(c.height());var d=parseInt(c.css("top"));return a==b?0:d/(a-b)}function _moveHandleTo(d){var c=$(this);var f=$(this).parents("#textVerticalScrollbar");var a=parseInt(f.height());var b=parseInt(c.height());var e=(a-b)*d;c.css("top",e+"px");_adjustTextPosition.call(c)}function showSongText(){var a=p.getCurrentStationMetadata();_updateCurrentSongText();openDrawer(showTextsAd);$("#songTextButton").unbind("click");$("#songTextButton").click(hideSongText);_adjustHandleLength.call($("#scrollHandle"))}function hideSongText(){hideTextsAd();closeDrawer();$("#songTextButton").unbind("click");$("#songTextButton").click(showSongText)}_getAbsolutePosition=function(b){var a=0;var e=0;var d=b.position();var c=b.offset();if(c!=undefined){a=c.left;e=c.top}else{a=d.left;e=d.top}return{top:e,left:a}};var MAX_LIST_STR=38;var MAX_ALBUM_NAME_STR=25;var MAX_ARTIST_AND_SONG_STR=90;var NEXT_SONGS_LEN=4;var STATION_DETAILS_HANDLERS={onPlay:function(){DEFAULT_HANDLERS.onPlay();_updateStationDetails()},onSelectedStationMetadataChanged:function(){DEFAULT_HANDLERS.onSelectedStationMetadataChanged();_updateStationDetails()}};function loadStationDetails(){window.currentHandlers=STATION_DETAILS_HANDLERS;$("#stationDetails").show();$(".theCloud").unbind("click");$(".theCloud").click(function(){loadScreen("carousel.html",loadChannels,unloadChannels)});$(".theCloud").setButtonState("showList");$(".theCloud").mouseover(function(){$(this).addClass("theCloudHovered")});$(".theCloud").mouseout(function(){$(this).removeClass("theCloudHovered")});maxify();_initVASMenu();_updateStationDetails()}function _initVASMenu(){$("#VASKup").click(function(a){a.preventDefault();return false});$("#VASKupMp3").click(function(a){a.preventDefault();p.buySelectedMp3();return false});$("#VASKupCD").click(function(a){a.preventDefault();p.buySelectedCD();return false});$("#VASKupRingtone").click(function(a){a.preventDefault();p.buySelectedRingtone();return false});$("#VASKupTicket").click(function(a){a.preventDefault();p.buySelectedTicket();return false})}function unloadStationDetails(){$("#stationDetails").hide();window.detailsStationId=null}function _updateStationDetails(){var b=p.getSelectedStationIdx();if(b==-1){b=p.getStationIdx()}if(b==-1){b=0}$(".currentStationNameCloud").html(stations[b]["name"]);var a=p.getSelectedStationMetadata();if(a==undefined){a={}}if(a["0"]!=undefined){$(".currentSongTitle").html(_shorten(a["0"]["artist"]+" - "+a["0"]["title"],MAX_ARTIST_AND_SONG_STR));$(".currentSongTitle").attr("title",a["0"]["artist"]+" - "+a["0"]["title"]);if(a["0"]["album"]!=undefined){if(a["0"]["album"]!=undefined&&a["0"]["album"]["title"]!=null){$(".currentSongAlbum .songDetailsValue").html(_shorten(a["0"]["album"]["title"],MAX_ALBUM_NAME_STR));$(".currentSongAlbum .songDetailsValue").attr("title",a["0"]["album"]["title"]);$(".currentSongAlbum").show()}else{$(".currentSongAlbum").hide()}if(a["0"]["album"]["year"]!=null){$(".currentSongYear .songDetailsValue").html(a["0"]["album"]["year"]);$(".currentSongYear").show()}else{$(".currentSongYear").hide()}if(a["0"]["album"]!=undefined&&a["0"]["album"]["cover_url"]!=undefined&&a["0"]["album"]["cover_url"]!=null){$(".songCover img").attr("src",a["0"]["album"]["cover_url"])}else{$(".songCover img").attr("src","images/empty_cover.png")}var c=a[0]["vas"];$(".VASButton").addClass("VASButtonDisabled");if(c!=undefined){if(c.buy_cd!=undefined&&c.buy_cd!=null&&c.buy_cd){$("#VASKupCD").removeClass("VASButtonDisabled");$(".VASButtonKup").removeClass("VASButtonDisabled")}else{$("#VASKupCD").addClass("VASButtonDisabled")}if(c.buy_mp3!=undefined&&c.buy_mp3!=null&&c.buy_mp3){$("#VASKupMp3").removeClass("VASButtonDisabled");$(".VASButtonKup").removeClass("VASButtonDisabled")}else{$("#VASKupMp3").addClass("VASButtonDisabled")}if(c.buy_ringtone!=undefined&&c.buy_ringtone!=null&&c.buy_ringtone){$("#VASKupRingtone").removeClass("VASButtonDisabled");$(".VASButtonKup").removeClass("VASButtonDisabled")}else{$("#VASKupRingtone").addClass("VASButtonDisabled")}if(c.buy_ticket!=undefined&&c.buy_ticket!=null&&c.buy_ticket){$("#VASKupTicket").removeClass("VASButtonDisabled");$(".VASButtonKup").removeClass("VASButtonDisabled")}else{$("#VASKupTicket").addClass("VASButtonDisabled")}}else{$(".VASButtonKup").addClass("VASButtonDisabled")}}}var d=1;while((d<=NEXT_SONGS_LEN)&&(a[d]!=undefined)){var c=a[d]["vas"];var e="";$(".nextSongs li:eq("+(d-1)+")").html(_shorten(a[d]["artist"]+" - "+a[d]["title"],MAX_LIST_STR)+e);$(".nextSongs li:eq("+(d-1)+")").attr("title",a[d]["artist"]+" - "+a[d]["title"]);$(".nextSongs li:gt("+(d-1)+")").show();d++}$(".nextSongs li:gt("+(d-2)+")").hide()}_shorten=function(b,a){if(b!=undefined&&b.length>a){b=b.substring(0,a-3);b+="..."}return b};$(document).ready(function(){triggerEvent("systemBeforeOnLoad");setTimeout('triggerEvent( "systemOnLoad" )',100)});var gemius_sarg_host="ggspl.hit.gemius.pl";var gsm_gemius_identifier="nLFFZoBhPdl7FuSzo2qH15dQPzgsAvu5HaNPr91UpPv.o7";var gsm_gemius_hitcollector="ggspl.hit.gemius.pl";var BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS"},searchString:function(d){for(var a=0;a<d.length;a++){var b=d[a].string;var c=d[a].prop;this.versionSearchString=d[a].versionSearch||d[a].identity;if(b){if(b.indexOf(d[a].subString)!=-1){return d[a].identity}}else{if(c){return d[a].identity}}}},searchVersion:function(b){var a=b.indexOf(this.versionSearchString);if(a==-1){return}return parseFloat(b.substring(a+this.versionSearchString.length+1))},dataBrowser:[{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari",versionSearch:"Version"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.userAgent,subString:"iPhone",identity:"iPhone/iPod"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};BrowserDetect.init();function getBrowserName(){return BrowserDetect.browser}function getBrowserVersion(){return BrowserDetect.version}var gemius_sarg_proto;if(document.location&&document.location.protocol){gemius_sarg_proto="http"+((document.location.protocol=="https:")?"s":"")+"://"}else{gemius_sarg_proto="http://"}function gemius_parameters(){var d=document;var href=new String(d.location.href);var ref;if(d.referrer){ref=new String(d.referrer)}else{ref=""}var t=typeof Error;if(t!="undefined"){eval("try { if (typeof(top.document.referrer)=='string') { ref = top.document.referrer } } catch(gemius_ex) { }")}var url="&tz="+(new Date()).getTimezoneOffset()+"&href="+escape(href.substring(0,299))+"&ref="+escape(ref.substring(0,299));if(screen){var s=screen;if(s.width){url+="&screen="+s.width+"x"+s.height}if(s.colorDepth){url+="&col="+s.colorDepth}}return url}function gemius_sarg_hit(d,c){var a=gemius_sarg_proto+gemius_sarg_host+"/_"+(new Date()).getTime()+"/redot.gif?l=16&id="+d+"&sarg="+c+gemius_parameters();if(typeof window.gemius_sarg_images=="undefined"){window.gemius_sarg_images=new Array()}var b=window.gemius_sarg_images.length;if(typeof gemius_sarg_sem=="undefined"){gemius_sarg_sem=0}if(b<=gemius_sarg_sem){window.gemius_sarg_images[b]=new Image();window.gemius_sarg_images[b].src=a}gemius_sarg_sem++}GemiusAuditDS.prototype.DOT="/dot.gif/";GemiusAuditDS.prototype.REDOT="/redot.gif/";GemiusAuditDS.prototype.HIT_COLLECTOR="http://gg.hit.gemius.pl/";GemiusAuditDS.prototype.TIMEOUT=60*1000;GemiusAuditDS.prototype.DEFAULT_STATION=2;GemiusAuditDS.prototype.DS_GEMIUS_HIT=[""];GemiusAuditDS.prototype.DS_GEMIUS_TIME=[""];GemiusAuditDS.prototype.DS_GEMIUS_HIT[1]="Bx2aoeeD9v21p_D_4GEfCmYkjw5B_ltLgIPFuQNXE5T.37";GemiusAuditDS.prototype.DS_GEMIUS_TIME[1]="dwM70ktzeIVWcy2CFOJfKLQZ.mMW1KOZcE9MYGTZqwP.R7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[2]="nc2Qm38ZG65w7UP7PQcXlLR3jw4_6FtLL3ClcEYKUwn.F7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[2]="zUc1NKOAHaGCf06qgZnAR7RH.mMWTaOZRhFMYLiXqwP.M7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[3]="Bx064eeD53wV3lEKyNZHiGaE76FB6huYqjVvmNiHAxf.27";GemiusAuditDS.prototype.DS_GEMIUS_TIME[3]="zUc1lKOAHSEsW06aASxIZrRHTMkWTXglEA_UFL1aLtT.B7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[4]="nS2QnX_JG_W6rQnYZWXqU2X2LQpBgQMgSoW8L_AhWUf.37";GemiusAuditDS.prototype.DS_GEMIUS_TIME[4]="zU2b8KMiiIaCH2ezAY98w2a0.oMZD6OpIbRMMsKSUzP.f7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[5]="Bx0wO_eDC62vyhRHP3BfHmYkLaBB_gMUqo8ylL.8hqf.Q7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[5]="dwObkEtziAaQiQbZM53kVLR5XqwWlGLqcL98Ho2FGzr.L7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[6]="Bx2an_eD98a1pyuEKMHT92YkLQpB_gMggJq8L4O7MSP.P7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[6]="dwM7MktzeAT25y1yvH.XibQZTMkW1HglRjqUFBAhrr7.H7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[7]="nc2aoX8Z9v0aXeG8vR2Xk7QXzQA__ELvz7Js6c58qbD.u7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[7]="zac70qMAeITi9mbD2YaMUrRH7OkWTbfgprPqyQf4Pt7.q7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[8]="Bx2Q.eeDG2UVfmpzSNuKUGaELcBB6gMkgNQyBIMcBtr.37";GemiusAuditDS.prototype.DS_GEMIUS_TIME[8]="zUeV9qOALZAsW05KgbA4x7Sn.oMWDaOpRrbG9ZA6U9v.C7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[9]="d2OQdIcoG6VQpQ729Ats6rdM33h8JnsWJ0cVsgpE32f.X7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[9]=".c1AqyNLx3FsE1BWURFsf.V4XrFRDWNYK2WcRRKCLyj.U7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[10]="d2Oadoco94XwYIYvLEBxjrdMHbd8JmLiXWjc6ATJ3ej.u7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[10]=".c1KsSNLM15iTsxPQZlkl.V47FpRDbhWKy9E7hJzUu..R7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[11]="nc0wPX8ZC_QQgtnhZUCq7rQXzZY__ELjLw.i0J6b.gb.37";GemiusAuditDS.prototype.DS_GEMIUS_TIME[11]="zaeb8qMAiLziXC0S2TvHsrSn.mMWDaOZEH7GlZVuUzv.G7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[12]="B7063_cT50VPypsvnwgD1WYkLcBB_gMkSgwyhu.Jhpv.57";GemiusAuditDS.prototype.DS_GEMIUS_TIME[12]="d2OV9ErzLVjwCgSFU8J8C7SnXowWDWLapiQWVwiYW_b.E7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[13]="nc2Q_38ZGy4aY6Q4vPt.eGZW76FBcRuYqnhvGj.SW7T.P7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[13]="zUc1lKOAHSEs9U46gYpI5mYmXfYZ1mLmi3ucR3ei21..z7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[14]="nc2QnX8ZG_UQ6GqDZeYCEbR3zeA_6ELfL6Zs_8XWAVb.F7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[14]="zaeVVKMALdji9k46IeewN2aG.mMZlqOZIdzGlUHQqyz.r7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[15]="nSea.37n90YQ3osfZdtz1bRJLcA_bwMkZesyBMFZruj.k7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[15]="zUc7MKOAeM6MK2dTIWcEM7SnTKkWDXgVRteUtDfRLtz.n7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[16]="Bx0wO_eDC60V5BSnyMPfnmYkj3hB_ltXSmIf5u.wq9H.M7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[16]="dwOVVEtzLdj2h046PJQ4F7R57OkWlLfgcJ7K.wzYViv.X7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[17]="nc0wPX8ZC_QaXbQ4vdTH2WX2j1hBgVtHSm_ls4fJq9n.z7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[17]="dwObkktziDzwagb3iz3sLbR5TBMWlHghEFJ0Lz0Mxpz.Q7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[18]="nSeaAX7n9326TUG45ak3ArPp76E_fxuYBS5vGslpW7T.27";GemiusAuditDS.prototype.DS_GEMIUS_TIME[18]="zaeV9qMALZCMkU5KIY04T2aG7AkZlrfwIPzqp8H9vmT.37";GemiusAuditDS.prototype.DS_GEMIUS_HIT[19]="nS2Qm3_JG666rUQ95bIfkmZWzQBBcULvqphs6bCEKZv.B7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[19]="zac1NKMAHaEsWwPHAPSECWYm7OkZ1rfg6zREQx9TVj..Q7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[20]=".c2an2_c98aKsosvxVD77WaEj_5B6ls7StKlfuC4UxX.Z7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[20]="1507Mir3eAVg7i1yk4.XibQZXqwW1GLqcGWcZg1vgwD.F7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[21]="nc2an38Z98a6V4svrR.zlWZWzeBBcULf4.Bs_9LMgUD.f7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[21]="d2M1lkrzHViQKQRXa0IMqbRHTKkWTXgVpsqUtG.1hs3.07";GemiusAuditDS.prototype.DS_GEMIUS_HIT[22]="zUeQcu_iG25bRa_MUuhMW7dMfcB8JiMQJvEcRQpNNTb.07";GemiusAuditDS.prototype.DS_GEMIUS_TIME[22]="ncdArTMmx6icdAZzceUgcMchTGQkwniHLJWUwmv_2tD.x7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[23]="Bx2QneeDG_WvMGqDv1kCmWaEj_5B6ls7qh_lflimqwb.07";GemiusAuditDS.prototype.DS_GEMIUS_TIME[23]="zUc7MqOAeATiHC0SoWlXkLRHXfYWTWLmppScR2.mW2X.07";GemiusAuditDS.prototype.DS_GEMIUS_HIT[24]=".c0w22_cCy1Ac7SKZWXHmGYk76FB_huYqo9vmDBi2vL.o7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[24]="1501Nir3HdfGCE3s1DvIrrQZ7H8W1LfURgREDhA61sH.t7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[25]="nc2an38Z98YaXSuEvVTTb2X27xdBgRt8gKb1s6tRW_n.z7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[25]="zac7MKMAeM3iXGezWXmMkmYmXhYZ1mL2i3ucp3b6g1b.j7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[26]="nScw237nCy0aubSKve.HmLPp76E_fxuYBS5vmHG42vL.W7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[26]="zac7MqMAeAWMKy1yIZ9f8GaG7J8ZlrfkIP1E4Bo0Vs3.l7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[27]=".Wc6P2_K58TqWVE85SjPT7Ppj1g_f1tHLyOls0Xrq9n.W7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[27]="baebksNaiD0SUWdjwdv0jJQKTMlGWnglpiQaUk.bhm3.r7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[28]="B70wPecTC_S1HdqBqKsq9mZW74FBcRuI4NBvqlL3W7z.i7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[28]="dwOV9ktzLZCQie59682gCbQZTDMW1HgxEKv6S5W7Rk7.j7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[29]="px2anvcB98XfRYsvh8.zlZPazeBuNULfZchs_6G9gUD.17";GemiusAuditDS.prototype.DS_GEMIUS_TIME[29]="1wM7MisZeAUmwmb1PJSMKWZUTDMZT3gx6wuUVZ8aLir.I7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[30]="nS06QX_J5vxwt7EmdPVfj2ZWj3hBcVtX4.Af5tOkU_D.e7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[30]="zU2b8qMiiL0s9S0SgcrHOma07OkZD7fgwV.K.8qgfl..37";GemiusAuditDS.prototype.DS_GEMIUS_HIT[31]="nS06QX_J5vwa87DG9ZXXIGZWLaBBcQMU4JoylFMQBpL.97";GemiusAuditDS.prototype.DS_GEMIUS_TIME[31]="zaeV9qMALZCCH05KgUK4P2YmXqwZ1mLqIVcWKZpCW7..R7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[32]="B706P_cT58UV7lE8yB3PT2Ykj1hB_ltHgJqlsysKq9n.X7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[32]="zUeV9KOALVmChQPHAXR0OrSnTBMWDXghECkatRUtBhL.f7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[33]="nSean37n98ZwHYsvvbn77bRJj_4_b1s7ZQulfkFfUxX.m7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[33]="zUc7MKOAeM4su2ezOaiMkrSn.u0WDaO1pgRMc4fqK2X.A7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[34]=".Wc6P2_K58TqWVE85SjPT7Ppj1g_f1tHLyOls0Xrq9n.W7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[34]="d2ObkErziAZWXS0ilCjHYrRH7AkWTbfwENjKXxV9.tr.j7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[35]="nc0wO38ZC60Q4rR6rehHb2ZWzXZBcULTShVsxmBEAYP.J7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[35]="zUebkKOAiAaCHy0igUHH6mYm.oMZ1qOp6xPmPUcXk1D.r7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[36]="dwMwEoeoC21Qa7mp9.m5oLbufSp8miLsxwaS4mKRCib.z7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[36]=".WbgjSM5t6cM_haFeTIwb9T4TGSBlniHwY0afpVl2nz.i7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[37]="nc06P38Z58UQgfsu5Xyb4rR374E_6BuIL4ZvqkapW7z.Y7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[37]="zaebkKMAiAaMyy0i2QZPybSnTDMWDXgxcKwak2VFBq7.57";GemiusAuditDS.prototype.DS_GEMIUS_HIT[38]="B706P_cT58UVtJrBAMELG2ZWLcBBcQMkqni8ajAqMZj.t7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[38]="dwOVVEtzLdj25046dFi4F7QZXowW1GLaEAKcBrzGWx..a7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[39]="nc0w3X8ZC2S6t9nTZdCixWX2LcBBgQMk4CoSPlOgxhD.s7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[39]="d2M1lkrzHViQ0wS3MymESbRH.u0WTaO1cFxMc_TXU4n.17";GemiusAuditDS.prototype.DS_GEMIUS_HIT[40]="zUc6Fu_i54T1zFXLyPOxQLes3y585ntK.VaP4DWTX8f.Y7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[40]="ncbqjzMmIyaSaNyhUUV0KseB.qgksqMnzJbGNJvnf_X.j7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[41]="1v06Fmes54TAy6.wjL919MWnHSDZM2O_QtZSAyszCm7.R7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[41]="p4LqkbuuI1zQSNxfA5x8_9T47FqBlrhWwTbKLJUW0pz.w7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[42]="1v0wEmesC21qBn8mj.UEeMWnPzfZMzt4Qo.PwKtx37n..7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[42]="p4Lgi7uut3A2WxaFRHq4TtT4XrGBlmNYiv8WikJkL3z.Q7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[43]="d2BL_YdXfG.1VDVYGI4HPZcifbqs7COMXchVoA1FcnX.C7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[43]="oqUw3XdiZ72mq0YgEiiE87QZzQAW1I76dkh20QhAz5..M7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[44]="zU.lPe7mEXuaHZKhld5H0LcfHbF8X2NeXU6P8QTmShj.x7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[44]="ofs64XdV03IGxWvJ6rTQF2a0LQoZD08rG8CGVhdTd1L.M7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[45]="d2.r2YdXbCiP2ru8j3GSr_WjfbqpIyOMrHLPYzCo8or.h7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[45]=".AGa.7Bg43NLVQvdjUY4MIXD7zbpiWeXu59pWmcfZIP.i7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[46]="d2BL_4dXfJb17jV2mNyPrZci376s7HrqvYFSnjTgHzP.T7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[46]="ofs633dV0ztseKYucxwFN2a07zcZD2eXUU3D1RIeJGb.b7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[47]="zUBFX_7mIepQ7Rv9JVdDercfP8h8XzsYJvaSjQqqx0n.d7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[47]=".KuQm7Btdz6hRZClDQiwAGa0zXYZD47eUS3QOZJwN_..x7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[48]="d2.r24dXbF_P2fTgxwxHSOWj376pI3rqrDz4ljCZX3n.Y7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[48]="oqWa.3di43NsBEZgc59tSbQZLSoW1E87oJMgP1zct7v.W7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[49]="dwBLmYbXfO.1V.tFULJS3MUGfV.ZcSOwDMDPb_CAcfL.J7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[49]="B7aVhqrzLVB2auMDzNNPKqdDj35UPabmpqSTSUwEZOv.77";GemiusAuditDS.prototype.DS_GEMIUS_HIT[50]="d2.lP4dXEbJVmdvkYKYDBpciP8is7DsYXagYy2U2RzT.P7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[50]="ofswO3dVZwYGJUYAoi2Eu2ZUzeAZT47q8SRWKZpKt3P.f7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[51]="zUBL__7mfJb6.PrzpZVSpbb.HbF8n2NeJ4YVsQo6yq7.47";GemiusAuditDS.prototype.DS_GEMIUS_TIME[51]=".Ks637Bt0ztLFUZiRUT18Ga0LSoZD087uxymfB78DwX.V7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[52]="d2BFX4dXIeqPOtHXD20PpeWjfbqpIyOMDMFVoAB0ymb.M7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[52]="oqWan3di4vNspEXC80tlsLQZj1gW1KdSdmgZymC2POz.J7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[53]="zZqQ__7DGy5QVkQEbYpfS2YTTF5B2Cwlh4pZOF1eNb3.Z7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[53]="nc.gwjNqt7.No7se7fpSGuUCLb9RKU8ZzlbjceqATvv.W7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[54]="d1A634cn50WPDbDvjvifr7Po7FQ_ymv3r.qTiVL.XX3.l7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[54]="ncBA5DNqx_fHfKtcBU1Kipbxj8NUH6dEf8JWOZ7gfMz.l7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[55]="zZqQ.e7DG2VQVkQipS3XzWYT.s5B2IeAh1RW9d0MMuj.H7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[55]="ByBK6KrwM53b82DXyF.3RJcP78xUK2d16bmmzNRUp.j.t7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[56]="d2BFX4dXIeqPOtHXD20PpeWjfbqpIyOMDMFVoAB0ymb.M7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[56]="nc.gxDNqt_dnT3FXrTOeLuUCj8NRKadEBMXQ.Iza.Ir.D7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[57]="d1CaAYcn93zvsyupV0SbiLPoXtc_ykeu4lKW5M69ikH.y7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[57]="nc.qyDNqI5zHfDd2hYlSopbx78xUH2d1ScAgHcwqpN..Y7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[58]="d6Yw3YcKC2RV9hQuYEifN2az.s5BGIeAXbj8.YiVcgn.A7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[58]="ByBA5Krwx_gxvWE3AAUGT5evzbVUa47oH4IdwnbPotH.o7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[59]="zZo64e7D53vwWvszlcxb9GYTXtdB2EeuvcwcIjBvCiz.b7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[59]="ncBK6DNqM53NAydUth3Kg_UCLb9RKU8ZpCxtVb01_sr.t7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[60]="d7CQ.YeXG2WPkwqfRzWqk7RI7FQ_imv3DO4ZSUrB3RP.77";GemiusAuditDS.prototype.DS_GEMIUS_TIME[60]="nS.gxDLat_dnf3FXLSieppdRzbVU347oH8_zovcitzD.M7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[61]="d2BFX4dXIeqPOtHXD20PpeWjfbqpIyOMDMFVoAB0ymb.M7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[61]="By.qxqrwI2YxI9FlgDYf_Zev7_xUa2eFH4IAp3d3vOn.A7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[62]="zZow3e7DC2Sa5hPslXkXwWaz7FRBGGv3Xe_TiWAY3Wf.W7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[62]="By.qyKrwI5zb_ZcAgLXqypevLb9Ua08Z6PLDKXxPD4b.z7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[63]="d2BFX4dXIeqPOtHXD20PpeWjfbqpIyOMDMFVoAB0ymb.M7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[63]="ncBK5jNqM2dnTydyLPBCFOUC7_xRKWeFzo2mLBH0.OL.X7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[64]="d6aa.4cK90ZVkEDRq.I.8WazXfdBGEe_J5eWRGVXMuj._7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[64]="nS.gIjLatzAtH3E3VpgWj5dRj6NU36c0f2fQnMbDp.j.57";GemiusAuditDS.prototype.DS_GEMIUS_HIT[65]="d6Y6P4cK58Vf7K.n.5N9IZRpXkFuI0e6NYpZySGlsmf.27";GemiusAuditDS.prototype.DS_GEMIUS_TIME[65]="B7XqxqrzI2XRO9xYuCR83_Tkjw1RHadAnoQZypHMfIz.g7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[66]="zZqQm_7DG63AEOj2hd.xApRp7FRuI2v3lWNWOcjttXj.l7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[66]="p4.gJLrdt2cL4Ra8aOw4A7dM7_wkHmeFTylpWucaJDn.i7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[67]="ofHglLNFWxcbfnjW5yktj4XzroERJGeZurls67Cffhn.x7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[67]="zC5AUjAmxvGMmAa64owkNbPpP_0WxId0gySQTGVusLb.i7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[68]="nF3qmAvNNzBZB2AdGc7p1JR6DotuRSbKlam8QXFvhgH.c7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[68]="bOfq_F.OI91cQxZMqs0tMIYh33jp4sc3nmbGA_87AE3.L7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[69]="AfhAsqNqaxhLjd8IL9fYqLPp.F4_fwxpNRj5fxlN2VL.h7";GemiusAuditDS.prototype.DS_GEMIUS_TIME[69]="cifg9AcItyeBD2ARpmBwqJPaP4NGeodoeXoW12.3ME3.w7";GemiusAuditDS.prototype.DS_GEMIUS_HIT[70]="";GemiusAuditDS.prototype.DS_GEMIUS_TIME[70]="";GemiusAuditDS.prototype.DS_GEMIUS_HIT[71]="";GemiusAuditDS.prototype.DS_GEMIUS_TIME[71]="";GemiusAuditDS.prototype.DS_GEMIUS_HIT[72]="";GemiusAuditDS.prototype.DS_GEMIUS_TIME[72]="";GemiusAuditDS.prototype.DS_GEMIUS_HIT[73]="";GemiusAuditDS.prototype.DS_GEMIUS_TIME[73]="";GemiusAuditDS.prototype.DS_GEMIUS_HIT[74]="";GemiusAuditDS.prototype.DS_GEMIUS_TIME[74]="";GemiusAuditDS.prototype.DS_GEMIUS_HIT[75]="";GemiusAuditDS.prototype.DS_GEMIUS_TIME[75]="";GemiusAuditDS.prototype.DS_GEMIUS_HIT[76]="";GemiusAuditDS.prototype.DS_GEMIUS_TIME[76]="";GemiusAuditDS.prototype.DS_GEMIUS_HIT[77]="";GemiusAuditDS.prototype.DS_GEMIUS_TIME[77]="";GemiusAuditDS.prototype.DS_GEMIUS_HIT[78]="";GemiusAuditDS.prototype.DS_GEMIUS_TIME[78]="";GemiusAuditDS.prototype.DS_GEMIUS_HIT[79]="";GemiusAuditDS.prototype.DS_GEMIUS_TIME[79]="";GemiusAuditDS.prototype.DS_GEMIUS_HIT[80]="";GemiusAuditDS.prototype.DS_GEMIUS_TIME[80]="";function GemiusAuditDS(){this.refresh_counter=0;this.image=new Image(1,1);this.station=0;this.runner=null;this.audit=null}GemiusAuditDS.prototype.getStationId=function(){return p==undefined?this.DEFAULT_STATION:p.getStationId()};GemiusAuditDS.prototype.getHitCode=function(){var b=this.getStationId();var a=this.DS_GEMIUS_HIT[b];return a==undefined?this.DS_GEMIUS_HIT[0]:a};GemiusAuditDS.prototype.getTimeCode=function(){var b=this.getStationId();var a=this.DS_GEMIUS_TIME[b];return a==undefined?this.DS_GEMIUS_TIME[0]:a};GemiusAuditDS.prototype.stationChanged=function(){var a=this.getStationId();if(a!=this.station){logger.log("GemiusAuditDS: stationChanged()");this.station=a;this.stop();this.run()}};GemiusAuditDS.prototype.run=function(a){this.audit=a;if(this.runner==null){this.runner=setInterval(function(){this.audit.hit()},this.TIMEOUT)}else{this.stop()}};GemiusAuditDS.prototype.stop=function(){this.refresh_counter=0;if(this.runner!=null){clearInterval(this.runner);this.runner=null;logger.log("GemiusAuditDS: stop()")}};GemiusAuditDS.prototype.hit=function(){this.stationChanged();var a=(new Date()).getTime();this.refresh_counter++;logger.log("GemiusAuditDS: run() station: "+this.station+" counter: "+this.refresh_counter);if(this.refresh_counter==1){var b=this.parameters();gemius_data=this.REDOT+"id="+this.getHitCode()+"/id="+this.getTimeCode()+b}else{gemius_data=this.DOT+"id="+this.getTimeCode()}this.image.src=this.HIT_COLLECTOR+"_"+a+gemius_data;logger.log("GemiusAuditDS: run() hit: "+gemius_data)};GemiusAuditDS.prototype.parameters=function(){var d=document;var href=new String(d.location.href);var ref="";if(d.referrer){ref=new String(d.referrer)}var t=typeof Error;if(t!="undefined"){eval("try { if (typeof(top.document.referrer)=='string') { ref = top.document.referrer } } catch(exception) { }")}var url="&tz="+(new Date()).getTimezoneOffset()+"&href="+escape(href.substring(0,299))+"&ref="+escape(ref.substring(0,299));if(screen){if(screen.width){url+="&screen="+screen.width+"x"+screen.height}if(screen.colorDepth){url+="&col="+screen.colorDepth}}return url};