(function(){var S=this,Y,ah=S.jQuery,G=S.$,R=S.jQuery=S.$=function(b,a){return new R.fn.init(b,a);},ae=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,X=/^.[^:#\[\.,]*$/;
R.fn=R.prototype={init:function(d,b){d=d||document;if(d.nodeType){this[0]=d;this.length=1;this.context=d;return this;}if(typeof d==="string"){var c=ae.exec(d);
if(c&&(c[1]||!b)){if(c[1]){d=R.clean([c[1]],b);}else{var a=document.getElementById(c[3]);if(a&&a.id!=c[3]){return R().find(d);
}var e=R(a||[]);e.context=document;e.selector=d;return e;}}else{return R(b).find(d);}}else{if(R.isFunction(d)){return R(document).ready(d);
}}if(d.selector&&d.context){this.selector=d.selector;this.context=d.context;}return this.setArray(R.isArray(d)?d:R.makeArray(d));
},selector:"",jquery:"1.3.2",size:function(){return this.length;},get:function(a){return a===Y?Array.prototype.slice.call(this):this[a];
},pushStack:function(a,b,d){var c=R(a);c.prevObject=this;c.context=this.context;if(b==="find"){c.selector=this.selector+(this.selector?" ":"")+d;
}else{if(b){c.selector=this.selector+"."+b+"("+d+")";}}return c;},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);
return this;},each:function(a,b){return R.each(this,a,b);},index:function(a){return R.inArray(a&&a.jquery?a[0]:a,this);},attr:function(a,b,c){var d=a;
if(typeof a==="string"){if(b===Y){return this[0]&&R[c||"attr"](this[0],a);}else{d={};d[a]=b;}}return this.each(function(e){for(a in d){R.attr(c?this.style:this,a,R.prop(this,d[a],c,e,a));
}});},css:function(b,a){if((b=="width"||b=="height")&&parseFloat(a)<0){a=Y;}return this.attr(b,a,"curCSS");},text:function(a){if(typeof a!=="object"&&a!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(a));
}var b="";R.each(a||this,function(){R.each(this.childNodes,function(){if(this.nodeType!=8){b+=this.nodeType!=1?this.nodeValue:R.fn.text([this]);
}});});return b;},wrapAll:function(b){if(this[0]){var a=R(b,this[0].ownerDocument).clone();if(this[0].parentNode){a.insertBefore(this[0]);
}a.map(function(){var c=this;while(c.firstChild){c=c.firstChild;}return c;}).append(this);}return this;},wrapInner:function(a){return this.each(function(){R(this).contents().wrapAll(a);
});},wrap:function(a){return this.each(function(){R(this).wrapAll(a);});},append:function(){return this.domManip(arguments,true,function(a){if(this.nodeType==1){this.appendChild(a);
}});},prepend:function(){return this.domManip(arguments,true,function(a){if(this.nodeType==1){this.insertBefore(a,this.firstChild);
}});},before:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this);});},after:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this.nextSibling);
});},end:function(){return this.prevObject||R([]);},push:[].push,sort:[].sort,splice:[].splice,find:function(b){if(this.length===1){var a=this.pushStack([],"find",b);
a.length=0;R.find(b,this[0],a);return a;}else{return this.pushStack(R.unique(R.map(this,function(c){return R.find(b,c);})),"find",b);
}},clone:function(b){var d=this.map(function(){if(!R.support.noCloneEvent&&!R.isXMLDoc(this)){var e=this.outerHTML;if(!e){var f=this.ownerDocument.createElement("div");
f.appendChild(this.cloneNode(true));e=f.innerHTML;}return R.clean([e.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0];
}else{return this.cloneNode(true);}});if(b===true){var a=this.find("*").andSelf(),c=0;d.find("*").andSelf().each(function(){if(this.nodeName!==a[c].nodeName){return;
}var f=R.data(a[c],"events");for(var e in f){for(var g in f[e]){R.event.add(this,e,f[e][g],f[e][g].data);}}c++;});}return d;
},filter:function(a){return this.pushStack(R.isFunction(a)&&R.grep(this,function(c,b){return a.call(c,b);})||R.multiFilter(a,R.grep(this,function(b){return b.nodeType===1;
})),"filter",a);},closest:function(c){var b=R.expr.match.POS.test(c)?R(c):null,a=0;return this.map(function(){var d=this;
while(d&&d.ownerDocument){if(b?b.index(d)>-1:R(d).is(c)){R.data(d,"closest",a);return d;}d=d.parentNode;a++;}});},not:function(b){if(typeof b==="string"){if(X.test(b)){return this.pushStack(R.multiFilter(b,this,true),"not",b);
}else{b=R.multiFilter(b,this);}}var a=b.length&&b[b.length-1]!==Y&&!b.nodeType;return this.filter(function(){return a?R.inArray(this,b)<0:this!=b;
});},add:function(a){return this.pushStack(R.unique(R.merge(this.get(),typeof a==="string"?R(a):R.makeArray(a))));},is:function(a){return !!a&&R.multiFilter(a,this).length>0;
},hasClass:function(a){return !!a&&this.is("."+a);},val:function(a){if(a===Y){var h=this[0];if(h){if(R.nodeName(h,"option")){return(h.attributes.value||{}).specified?h.value:h.text;
}if(R.nodeName(h,"select")){var c=h.selectedIndex,d=[],e=h.options,b=h.type=="select-one";if(c<0){return null;}for(var f=b?c:0,i=b?c+1:e.length;
f<i;f++){var g=e[f];if(g.selected){a=R(g).val();if(b){return a;}d.push(a);}}return d;}return(h.value||"").replace(/\r/g,"");
}return Y;}if(typeof a==="number"){a+="";}return this.each(function(){if(this.nodeType!=1){return;}if(R.isArray(a)&&/radio|checkbox/.test(this.type)){this.checked=(R.inArray(this.value,a)>=0||R.inArray(this.name,a)>=0);
}else{if(R.nodeName(this,"select")){var j=R.makeArray(a);R("option",this).each(function(){this.selected=(R.inArray(this.value,j)>=0||R.inArray(this.text,j)>=0);
});if(!j.length){this.selectedIndex=-1;}}else{this.value=a;}}});},html:function(a){return a===Y?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(a);
},replaceWith:function(a){return this.after(a).remove();},eq:function(a){return this.slice(a,+a+1);},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","));
},map:function(a){return this.pushStack(R.map(this,function(c,b){return a.call(c,b,c);}));},andSelf:function(){return this.add(this.prevObject);
},domManip:function(i,e,d){if(this[0]){var c=(this[0].ownerDocument||this[0]).createDocumentFragment(),f=R.clean(i,(this[0].ownerDocument||this[0]),c),b=c.firstChild;
if(b){for(var g=0,h=this.length;g<h;g++){d.call(a(this[g],b),this.length>1||g>0?c.cloneNode(true):c);}}if(f){R.each(f,af);
}}return this;function a(j,k){return e&&R.nodeName(j,"table")&&R.nodeName(k,"tr")?(j.getElementsByTagName("tbody")[0]||j.appendChild(j.ownerDocument.createElement("tbody"))):j;
}}};R.fn.init.prototype=R.fn;function af(b,a){if(a.src){R.ajax({url:a.src,async:false,dataType:"script"});}else{R.globalEval(a.text||a.textContent||a.innerHTML||"");
}if(a.parentNode){a.parentNode.removeChild(a);}}function aa(){return +new Date;}R.extend=R.fn.extend=function(){var h=arguments[0]||{},b=1,c=arguments.length,g=false,f;
if(typeof h==="boolean"){g=h;h=arguments[1]||{};b=2;}if(typeof h!=="object"&&!R.isFunction(h)){h={};}if(c==b){h=this;--b;
}for(;b<c;b++){if((f=arguments[b])!=null){for(var e in f){var a=h[e],d=f[e];if(h===d){continue;}if(g&&d&&typeof d==="object"&&!d.nodeType){h[e]=R.extend(g,a||(d.length!=null?[]:{}),d);
}else{if(d!==Y){h[e]=d;}}}}}return h;};var U=/z-?index|font-?weight|opacity|zoom|line-?height/i,H=document.defaultView||{},F=Object.prototype.toString;
R.extend({noConflict:function(a){S.$=G;if(a){S.jQuery=ah;}return R;},isFunction:function(a){return F.call(a)==="[object Function]";
},isArray:function(a){return F.call(a)==="[object Array]";},isXMLDoc:function(a){return a.nodeType===9&&a.documentElement.nodeName!=="HTML"||!!a.ownerDocument&&R.isXMLDoc(a.ownerDocument);
},globalEval:function(b){if(b&&/\S/.test(b)){var a=document.getElementsByTagName("head")[0]||document.documentElement,c=document.createElement("script");
c.type="text/javascript";if(R.support.scriptEval){c.appendChild(document.createTextNode(b));}else{c.text=b;}a.insertBefore(c,a.firstChild);
a.removeChild(c);}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()==b.toUpperCase();},each:function(b,a,c){var d,g=0,f=b.length;
if(c){if(f===Y){for(d in b){if(a.apply(b[d],c)===false){break;}}}else{for(;g<f;){if(a.apply(b[g++],c)===false){break;}}}}else{if(f===Y){for(d in b){if(a.call(b[d],d,b[d])===false){break;
}}}else{for(var e=b[0];g<f&&a.call(e,g,e)!==false;e=b[++g]){}}}return b;},prop:function(b,c,d,a,e){if(R.isFunction(c)){c=c.call(b,a);
}return typeof c==="number"&&d=="curCSS"&&!U.test(e)?c+"px":c;},className:{add:function(b,a){R.each((a||"").split(/\s+/),function(d,c){if(b.nodeType==1&&!R.className.has(b.className,c)){b.className+=(b.className?" ":"")+c;
}});},remove:function(b,a){if(b.nodeType==1){b.className=a!==Y?R.grep(b.className.split(/\s+/),function(c){return !R.className.has(a,c);
}).join(" "):"";}},has:function(a,b){return a&&R.inArray(b,(a.className||a).toString().split(/\s+/))>-1;}},swap:function(b,c,a){var d={};
for(var e in c){d[e]=b.style[e];b.style[e]=c[e];}a.call(b);for(var e in c){b.style[e]=d[e];}},css:function(b,e,h,g){if(e=="width"||e=="height"){var d,f={position:"absolute",visibility:"hidden",display:"block"},a=e=="width"?["Left","Right"]:["Top","Bottom"];
function c(){d=e=="width"?b.offsetWidth:b.offsetHeight;if(g==="border"){return;}R.each(a,function(){if(!g){d-=parseFloat(R.curCSS(b,"padding"+this,true))||0;
}if(g==="margin"){d+=parseFloat(R.curCSS(b,"margin"+this,true))||0;}else{d-=parseFloat(R.curCSS(b,"border"+this+"Width",true))||0;
}});}if(b.offsetWidth!==0){c();}else{R.swap(b,f,c);}return Math.max(0,Math.round(d));}return R.curCSS(b,e,h);},curCSS:function(c,f,g){var d,h=c.style;
if(f=="opacity"&&!R.support.opacity){d=R.attr(h,"opacity");return d==""?"1":d;}if(f.match(/float/i)){f=J;}if(!g&&h&&h[f]){d=h[f];
}else{if(H.getComputedStyle){if(f.match(/float/i)){f="float";}f=f.replace(/([A-Z])/g,"-$1").toLowerCase();var e=H.getComputedStyle(c,null);
if(e){d=e.getPropertyValue(f);}if(f=="opacity"&&d==""){d="1";}}else{if(c.currentStyle){var i=f.replace(/\-(\w)/g,function(j,k){return k.toUpperCase();
});d=c.currentStyle[f]||c.currentStyle[i];if(!/^\d+(px)?$/i.test(d)&&/^\d/.test(d)){var b=h.left,a=c.runtimeStyle.left;c.runtimeStyle.left=c.currentStyle.left;
h.left=d||0;d=h.pixelLeft+"px";h.left=b;c.runtimeStyle.left=a;}}}}return d;},clean:function(e,a,c){a=a||document;if(typeof a.createElement==="undefined"){a=a.ownerDocument||a[0]&&a[0].ownerDocument||document;
}if(!c&&e.length===1&&typeof e[0]==="string"){var b=/^<(\w+)\s*\/?>$/.exec(e[0]);if(b){return[a.createElement(b[1])];}}var f=[],g=[],d=a.createElement("div");
R.each(e,function(m,l){if(typeof l==="number"){l+="";}if(!l){return;}if(typeof l==="string"){l=l.replace(/(<(\w+)[^>]*?)\/>/g,function(s,p,q){return q.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?s:p+"></"+q+">";
});var k=l.replace(/^\s+/,"").substring(0,10).toLowerCase();var n=!k.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!k.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||k.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!k.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!k.indexOf("<td")||!k.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!k.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!R.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];
d.innerHTML=n[1]+l+n[2];while(n[0]--){d=d.lastChild;}if(!R.support.tbody){var j=/<tbody/i.test(l),i=!k.indexOf("<table")&&!j?d.firstChild&&d.firstChild.childNodes:n[1]=="<table>"&&!j?d.childNodes:[];
for(var o=i.length-1;o>=0;--o){if(R.nodeName(i[o],"tbody")&&!i[o].childNodes.length){i[o].parentNode.removeChild(i[o]);}}}if(!R.support.leadingWhitespace&&/^\s/.test(l)){d.insertBefore(a.createTextNode(l.match(/^\s*/)[0]),d.firstChild);
}l=R.makeArray(d.childNodes);}if(l.nodeType){f.push(l);}else{f=R.merge(f,l);}});if(c){for(var h=0;f[h];h++){if(R.nodeName(f[h],"script")&&(!f[h].type||f[h].type.toLowerCase()==="text/javascript")){g.push(f[h].parentNode?f[h].parentNode.removeChild(f[h]):f[h]);
}else{if(f[h].nodeType===1){f.splice.apply(f,[h+1,0].concat(R.makeArray(f[h].getElementsByTagName("script"))));}c.appendChild(f[h]);
}}return g;}return f;},attr:function(h,f,a){if(!h||h.nodeType==3||h.nodeType==8){return Y;}var b=!R.isXMLDoc(h),d=a!==Y;f=b&&R.props[f]||f;
if(h.tagName){var e=/href|src|style/.test(f);if(f=="selected"&&h.parentNode){h.parentNode.selectedIndex;}if(f in h&&b&&!e){if(d){if(f=="type"&&R.nodeName(h,"input")&&h.parentNode){throw"type property can't be changed";
}h[f]=a;}if(R.nodeName(h,"form")&&h.getAttributeNode(f)){return h.getAttributeNode(f).nodeValue;}if(f=="tabIndex"){var c=h.getAttributeNode("tabIndex");
return c&&c.specified?c.value:h.nodeName.match(/(button|input|object|select|textarea)/i)?0:h.nodeName.match(/^(a|area)$/i)&&h.href?0:Y;
}return h[f];}if(!R.support.style&&b&&f=="style"){return R.attr(h.style,"cssText",a);}if(d){h.setAttribute(f,""+a);}var g=!R.support.hrefNormalized&&b&&e?h.getAttribute(f,2):h.getAttribute(f);
return g===null?Y:g;}if(!R.support.opacity&&f=="opacity"){if(d){h.zoom=1;h.filter=(h.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(a)+""=="NaN"?"":"alpha(opacity="+a*100+")");
}return h.filter&&h.filter.indexOf("opacity=")>=0?(parseFloat(h.filter.match(/opacity=([^)]*)/)[1])/100)+"":"";}f=f.replace(/-([a-z])/ig,function(j,i){return i.toUpperCase();
});if(d){h[f]=a;}return h[f];},trim:function(a){return(a||"").replace(/^\s+|\s+$/g,"");},makeArray:function(b){var c=[];if(b!=null){var a=b.length;
if(a==null||typeof b==="string"||R.isFunction(b)||b.setInterval){c[0]=b;}else{while(a){c[--a]=b[a];}}}return c;},inArray:function(b,a){for(var d=0,c=a.length;
d<c;d++){if(a[d]===b){return d;}}return -1;},merge:function(b,d){var a=0,c,e=b.length;if(!R.support.getAll){while((c=d[a++])!=null){if(c.nodeType!=8){b[e++]=c;
}}}else{while((c=d[a++])!=null){b[e++]=c;}}return b;},unique:function(a){var b=[],d={};try{for(var c=0,g=a.length;c<g;c++){var f=R.data(a[c]);
if(!d[f]){d[f]=true;b.push(a[c]);}}}catch(e){b=a;}return b;},grep:function(a,f,d){var b=[];for(var e=0,c=a.length;e<c;e++){if(!d!=!f(a[e],e)){b.push(a[e]);
}}return b;},map:function(d,f){var a=[];for(var b=0,e=d.length;b<e;b++){var c=f(d[b],b);if(c!=null){a[a.length]=c;}}return a.concat.apply([],a);
}});var ac=navigator.userAgent.toLowerCase();R.browser={version:(ac.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(ac),opera:/opera/.test(ac),msie:/msie/.test(ac)&&!/opera/.test(ac),mozilla:/mozilla/.test(ac)&&!/(compatible|webkit)/.test(ac)};
R.each({parent:function(a){return a.parentNode;},parents:function(a){return R.dir(a,"parentNode");},next:function(a){return R.nth(a,2,"nextSibling");
},prev:function(a){return R.nth(a,2,"previousSibling");},nextAll:function(a){return R.dir(a,"nextSibling");},prevAll:function(a){return R.dir(a,"previousSibling");
},siblings:function(a){return R.sibling(a.parentNode.firstChild,a);},children:function(a){return R.sibling(a.firstChild);
},contents:function(a){return R.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:R.makeArray(a.childNodes);
}},function(b,a){R.fn[b]=function(d){var c=R.map(this,a);if(d&&typeof d=="string"){c=R.multiFilter(d,c);}return this.pushStack(R.unique(c),b,d);
};});R.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,a){R.fn[b]=function(d){var h=[],f=R(d);
for(var c=0,g=f.length;c<g;c++){var e=(c>0?this.clone(true):this).get();R.fn[a].apply(R(f[c]),e);h=h.concat(e);}return this.pushStack(h,b,d);
};});R.each({removeAttr:function(a){R.attr(this,a,"");if(this.nodeType==1){this.removeAttribute(a);}},addClass:function(a){R.className.add(this,a);
},removeClass:function(a){R.className.remove(this,a);},toggleClass:function(a,b){if(typeof b!=="boolean"){b=!R.className.has(this,a);
}R.className[b?"add":"remove"](this,a);},remove:function(a){if(!a||R.filter(a,[this]).length){R("*",this).add([this]).each(function(){R.event.remove(this);
R.removeData(this);});if(this.parentNode){this.parentNode.removeChild(this);}}},empty:function(){R(this).children().remove();
while(this.firstChild){this.removeChild(this.firstChild);}}},function(b,a){R.fn[b]=function(){return this.each(a,arguments);
};});function M(b,a){return b[0]&&parseInt(R.curCSS(b[0],a,true),10)||0;}var O="jQuery"+aa(),I=0,ad={};R.extend({cache:{},data:function(a,c,b){a=a==S?ad:a;
var d=a[O];if(!d){d=a[O]=++I;}if(c&&!R.cache[d]){R.cache[d]={};}if(b!==Y){R.cache[d][c]=b;}return c?R.cache[d][c]:d;},removeData:function(a,d){a=a==S?ad:a;
var b=a[O];if(d){if(R.cache[b]){delete R.cache[b][d];d="";for(d in R.cache[b]){break;}if(!d){R.removeData(a);}}}else{try{delete a[O];
}catch(c){if(a.removeAttribute){a.removeAttribute(O);}}delete R.cache[b];}},queue:function(a,d,b){if(a){d=(d||"fx")+"queue";
var c=R.data(a,d);if(!c||R.isArray(b)){c=R.data(a,d,R.makeArray(b));}else{if(b){c.push(b);}}}return c;},dequeue:function(b,c){var d=R.queue(b,c),a=d.shift();
if(!c||c==="fx"){a=d[0];}if(a!==Y){a.call(b);}}});R.fn.extend({data:function(d,b){var a=d.split(".");a[1]=a[1]?"."+a[1]:"";
if(b===Y){var c=this.triggerHandler("getData"+a[1]+"!",[a[0]]);if(c===Y&&this.length){c=R.data(this[0],d);}return c===Y&&a[1]?this.data(a[0]):c;
}else{return this.trigger("setData"+a[1]+"!",[a[0],b]).each(function(){R.data(this,d,b);});}},removeData:function(a){return this.each(function(){R.removeData(this,a);
});},queue:function(b,a){if(typeof b!=="string"){a=b;b="fx";}if(a===Y){return R.queue(this[0],b);}return this.each(function(){var c=R.queue(this,b,a);
if(b=="fx"&&c.length==1){c[0].call(this);}});},dequeue:function(a){return this.each(function(){R.dequeue(this,a);});}});(function(){var j=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,f=0,b=Object.prototype.toString;
var h=function(w,ai,A,s){A=A||[];ai=ai||document;if(ai.nodeType!==1&&ai.nodeType!==9){return[];}if(!w||typeof w!=="string"){return A;
}var u=[],C,p,z,D,t,B,v=true;j.lastIndex=0;while((C=j.exec(w))!==null){u.push(C[1]);if(C[2]){B=RegExp.rightContext;break;
}}if(u.length>1&&g.exec(w)){if(u.length===2&&c.relative[u[0]]){p=o(u[0]+u[1],ai);}else{p=c.relative[u[0]]?[ai]:h(u.shift(),ai);
while(u.length){w=u.shift();if(c.relative[w]){w+=u.shift();}p=o(w,p);}}}else{var x=s?{expr:u.pop(),set:m(s)}:h.find(u.pop(),u.length===1&&ai.parentNode?ai.parentNode:ai,n(ai));
p=h.filter(x.expr,x.set);if(u.length>0){z=m(p);}else{v=false;}while(u.length){var y=u.pop(),q=y;if(!c.relative[y]){y="";}else{q=u.pop();
}if(q==null){q=ai;}c.relative[y](z,q,n(ai));}}if(!z){z=p;}if(!z){throw"Syntax error, unrecognized expression: "+(y||w);}if(b.call(z)==="[object Array]"){if(!v){A.push.apply(A,z);
}else{if(ai.nodeType===1){for(var aj=0;z[aj]!=null;aj++){if(z[aj]&&(z[aj]===true||z[aj].nodeType===1&&a(ai,z[aj]))){A.push(p[aj]);
}}}else{for(var aj=0;z[aj]!=null;aj++){if(z[aj]&&z[aj].nodeType===1){A.push(p[aj]);}}}}}else{m(z,A);}if(B){h(B,ai,A,s);if(i){hasDuplicate=false;
A.sort(i);if(hasDuplicate){for(var aj=1;aj<A.length;aj++){if(A[aj]===A[aj-1]){A.splice(aj--,1);}}}}}return A;};h.matches=function(p,q){return h(p,null,null,q);
};h.find=function(p,x,u){var q,s;if(!p){return[];}for(var w=0,v=c.order.length;w<v;w++){var t=c.order[w],s;if((s=c.match[t].exec(p))){var y=RegExp.leftContext;
if(y.substr(y.length-1)!=="\\"){s[1]=(s[1]||"").replace(/\\/g,"");q=c.find[t](s,x,u);if(q!=null){p=p.replace(c.match[t],"");
break;}}}}if(!q){q=x.getElementsByTagName("*");}return{set:q,expr:p};};h.filter=function(p,A,D,C){var B=p,y=[],q=A,w,aj,u=A&&A[0]&&n(A[0]);
while(p&&A.length){for(var t in c.filter){if((w=c.match[t].exec(p))!=null){var ai=c.filter[t],x,z;aj=false;if(q==y){y=[];
}if(c.preFilter[t]){w=c.preFilter[t](w,q,D,y,C,u);if(!w){aj=x=true;}else{if(w===true){continue;}}}if(w){for(var v=0;(z=q[v])!=null;
v++){if(z){x=ai(z,w,v,q);var s=C^!!x;if(D&&x!=null){if(s){aj=true;}else{q[v]=false;}}else{if(s){y.push(z);aj=true;}}}}}if(x!==Y){if(!D){q=y;
}p=p.replace(c.match[t],"");if(!aj){return[];}break;}}}if(p==B){if(aj==null){throw"Syntax error, unrecognized expression: "+p;
}else{break;}}B=p;}return q;};var c=h.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\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(p){return p.getAttribute("href");
}},relative:{"+":function(p,x,q){var s=typeof x==="string",u=s&&!/\W/.test(x),t=s&&!u;if(u&&!q){x=x.toUpperCase();}for(var w=0,v=p.length,y;
w<v;w++){if((y=p[w])){while((y=y.previousSibling)&&y.nodeType!==1){}p[w]=t||y&&y.nodeName===x?y||false:y===x;}}if(t){h.filter(x,p,true);
}},">":function(q,x,p){var s=typeof x==="string";if(s&&!/\W/.test(x)){x=p?x:x.toUpperCase();for(var u=0,w=q.length;u<w;u++){var t=q[u];
if(t){var v=t.parentNode;q[u]=v.nodeName===x?v:false;}}}else{for(var u=0,w=q.length;u<w;u++){var t=q[u];if(t){q[u]=s?t.parentNode:t.parentNode===x;
}}if(s){h.filter(x,q,true);}}},"":function(t,v,u){var s=f++,q=k;if(!v.match(/\W/)){var p=v=u?v:v.toUpperCase();q=l;}q("parentNode",v,s,t,p,u);
},"~":function(t,v,u){var s=f++,q=k;if(typeof v==="string"&&!v.match(/\W/)){var p=v=u?v:v.toUpperCase();q=l;}q("previousSibling",v,s,t,p,u);
}},find:{ID:function(t,p,q){if(typeof p.getElementById!=="undefined"&&!q){var s=p.getElementById(t[1]);return s?[s]:[];}},NAME:function(t,v,s){if(typeof v.getElementsByName!=="undefined"){var w=[],u=v.getElementsByName(t[1]);
for(var q=0,p=u.length;q<p;q++){if(u[q].getAttribute("name")===t[1]){w.push(u[q]);}}return w.length===0?null:w;}},TAG:function(p,q){return q.getElementsByTagName(p[1]);
}},preFilter:{CLASS:function(v,x,u,w,q,p){v=" "+v[1].replace(/\\/g,"")+" ";if(p){return v;}for(var s=0,t;(t=x[s])!=null;s++){if(t){if(q^(t.className&&(" "+t.className+" ").indexOf(v)>=0)){if(!u){w.push(t);
}}else{if(u){x[s]=false;}}}}return false;},ID:function(p){return p[1].replace(/\\/g,"");},TAG:function(s,q){for(var p=0;q[p]===false;
p++){}return q[p]&&n(q[p])?s[1]:s[1].toUpperCase();},CHILD:function(p){if(p[1]=="nth"){var q=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(p[2]=="even"&&"2n"||p[2]=="odd"&&"2n+1"||!/\D/.test(p[2])&&"0n+"+p[2]||p[2]);
p[2]=(q[1]+(q[2]||1))-0;p[3]=q[3]-0;}p[0]=f++;return p;},ATTR:function(u,w,t,v,s,q){var p=u[1].replace(/\\/g,"");if(!q&&c.attrMap[p]){u[1]=c.attrMap[p];
}if(u[2]==="~="){u[4]=" "+u[4]+" ";}return u;},PSEUDO:function(t,v,s,u,q){if(t[1]==="not"){if(t[3].match(j).length>1||/^\w/.test(t[3])){t[3]=h(t[3],null,null,v);
}else{var p=h.filter(t[3],v,s,true^q);if(!s){u.push.apply(u,p);}return false;}}else{if(c.match.POS.test(t[0])||c.match.CHILD.test(t[0])){return true;
}}return t;},POS:function(p){p.unshift(true);return p;}},filters:{enabled:function(p){return p.disabled===false&&p.type!=="hidden";
},disabled:function(p){return p.disabled===true;},checked:function(p){return p.checked===true;},selected:function(p){p.parentNode.selectedIndex;
return p.selected===true;},parent:function(p){return !!p.firstChild;},empty:function(p){return !p.firstChild;},has:function(p,s,q){return !!h(q[3],p).length;
},header:function(p){return/h\d/i.test(p.nodeName);},text:function(p){return"text"===p.type;},radio:function(p){return"radio"===p.type;
},checkbox:function(p){return"checkbox"===p.type;},file:function(p){return"file"===p.type;},password:function(p){return"password"===p.type;
},submit:function(p){return"submit"===p.type;},image:function(p){return"image"===p.type;},reset:function(p){return"reset"===p.type;
},button:function(p){return"button"===p.type||p.nodeName.toUpperCase()==="BUTTON";},input:function(p){return/input|select|textarea|button/i.test(p.nodeName);
}},setFilters:{first:function(q,p){return p===0;},last:function(p,t,s,q){return t===q.length-1;},even:function(q,p){return p%2===0;
},odd:function(q,p){return p%2===1;},lt:function(p,s,q){return s<q[3]-0;},gt:function(p,s,q){return s>q[3]-0;},nth:function(p,s,q){return q[3]-0==s;
},eq:function(p,s,q){return q[3]-0==s;}},filter:{PSEUDO:function(q,u,v,p){var x=u[1],s=c.filters[x];if(s){return s(q,v,u,p);
}else{if(x==="contains"){return(q.textContent||q.innerText||"").indexOf(u[3])>=0;}else{if(x==="not"){var t=u[3];for(var v=0,w=t.length;
v<w;v++){if(t[v]===q){return false;}}return true;}}}},CHILD:function(x,w){var q=w[1],y=x;switch(q){case"only":case"first":while(y=y.previousSibling){if(y.nodeType===1){return false;
}}if(q=="first"){return true;}y=x;case"last":while(y=y.nextSibling){if(y.nodeType===1){return false;}}return true;case"nth":var v=w[2],p=w[3];
if(v==1&&p==0){return true;}var t=w[0],u=x.parentNode;if(u&&(u.sizcache!==t||!x.nodeIndex)){var s=0;for(y=u.firstChild;y;
y=y.nextSibling){if(y.nodeType===1){y.nodeIndex=++s;}}u.sizcache=t;}var z=x.nodeIndex-p;if(v==0){return z==0;}else{return(z%v==0&&z/v>=0);
}}},ID:function(q,p){return q.nodeType===1&&q.getAttribute("id")===p;},TAG:function(q,p){return(p==="*"&&q.nodeType===1)||q.nodeName===p;
},CLASS:function(q,p){return(" "+(q.className||q.getAttribute("class"))+" ").indexOf(p)>-1;},ATTR:function(v,u){var t=u[1],s=c.attrHandle[t]?c.attrHandle[t](v):v[t]!=null?v[t]:v.getAttribute(t),q=s+"",p=u[2],w=u[4];
return s==null?p==="!=":p==="="?q===w:p==="*="?q.indexOf(w)>=0:p==="~="?(" "+q+" ").indexOf(w)>=0:!w?q&&s!==false:p==="!="?q!=w:p==="^="?q.indexOf(w)===0:p==="$="?q.substr(q.length-w.length)===w:p==="|="?q===w||q.substr(0,w.length+1)===w+"-":false;
},POS:function(t,v,s,u){var q=v[2],p=c.setFilters[q];if(p){return p(t,s,v,u);}}}};var g=c.match.POS;for(var e in c.match){c.match[e]=RegExp(c.match[e].source+/(?![^\[]*\])(?![^\(]*\))/.source);
}var m=function(q,p){q=Array.prototype.slice.call(q);if(p){p.push.apply(p,q);return p;}return q;};try{Array.prototype.slice.call(document.documentElement.childNodes);
}catch(d){m=function(s,q){var u=q||[];if(b.call(s)==="[object Array]"){Array.prototype.push.apply(u,s);}else{if(typeof s.length==="number"){for(var p=0,t=s.length;
p<t;p++){u.push(s[p]);}}else{for(var p=0;s[p];p++){u.push(s[p]);}}}return u;};}var i;if(document.documentElement.compareDocumentPosition){i=function(s,q){var p=s.compareDocumentPosition(q)&4?-1:s===q?0:1;
if(p===0){hasDuplicate=true;}return p;};}else{if("sourceIndex" in document.documentElement){i=function(s,q){var p=s.sourceIndex-q.sourceIndex;
if(p===0){hasDuplicate=true;}return p;};}else{if(document.createRange){i=function(s,u){var q=s.ownerDocument.createRange(),t=u.ownerDocument.createRange();
q.selectNode(s);q.collapse(true);t.selectNode(u);t.collapse(true);var p=q.compareBoundaryPoints(Range.START_TO_END,t);if(p===0){hasDuplicate=true;
}return p;};}}}(function(){var s=document.createElement("form"),p="script"+(new Date).getTime();s.innerHTML="<input name='"+p+"'/>";
var q=document.documentElement;q.insertBefore(s,q.firstChild);if(!!document.getElementById(p)){c.find.ID=function(v,w,t){if(typeof w.getElementById!=="undefined"&&!t){var u=w.getElementById(v[1]);
return u?u.id===v[1]||typeof u.getAttributeNode!=="undefined"&&u.getAttributeNode("id").nodeValue===v[1]?[u]:Y:[];}};c.filter.ID=function(v,u){var t=typeof v.getAttributeNode!=="undefined"&&v.getAttributeNode("id");
return v.nodeType===1&&t&&t.nodeValue===u;};}q.removeChild(s);})();(function(){var p=document.createElement("div");p.appendChild(document.createComment(""));
if(p.getElementsByTagName("*").length>0){c.find.TAG=function(v,u){var t=u.getElementsByTagName(v[1]);if(v[1]==="*"){var s=[];
for(var q=0;t[q];q++){if(t[q].nodeType===1){s.push(t[q]);}}t=s;}return t;};}p.innerHTML="<a href='#'></a>";if(p.firstChild&&typeof p.firstChild.getAttribute!=="undefined"&&p.firstChild.getAttribute("href")!=="#"){c.attrHandle.href=function(q){return q.getAttribute("href",2);
};}})();if(document.querySelectorAll){(function(){var p=h,q=document.createElement("div");q.innerHTML="<p class='TEST'></p>";
if(q.querySelectorAll&&q.querySelectorAll(".TEST").length===0){return;}h=function(w,v,u,t){v=v||document;if(!t&&v.nodeType===9&&!n(v)){try{return m(v.querySelectorAll(w),u);
}catch(s){}}return p(w,v,u,t);};h.find=p.find;h.filter=p.filter;h.selectors=p.selectors;h.matches=p.matches;})();}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var p=document.createElement("div");
p.innerHTML="<div class='test e'></div><div class='test'></div>";if(p.getElementsByClassName("e").length===0){return;}p.lastChild.className="e";
if(p.getElementsByClassName("e").length===1){return;}c.order.splice(1,0,"CLASS");c.find.CLASS=function(t,q,s){if(typeof q.getElementsByClassName!=="undefined"&&!s){return q.getElementsByClassName(t[1]);
}};})();}function l(A,t,v,p,q,w){var s=A=="previousSibling"&&!w;for(var y=0,x=p.length;y<x;y++){var z=p[y];if(z){if(s&&z.nodeType===1){z.sizcache=v;
z.sizset=y;}z=z[A];var u=false;while(z){if(z.sizcache===v){u=p[z.sizset];break;}if(z.nodeType===1&&!w){z.sizcache=v;z.sizset=y;
}if(z.nodeName===t){u=z;break;}z=z[A];}p[y]=u;}}}function k(A,t,v,p,q,w){var s=A=="previousSibling"&&!w;for(var y=0,x=p.length;
y<x;y++){var z=p[y];if(z){if(s&&z.nodeType===1){z.sizcache=v;z.sizset=y;}z=z[A];var u=false;while(z){if(z.sizcache===v){u=p[z.sizset];
break;}if(z.nodeType===1){if(!w){z.sizcache=v;z.sizset=y;}if(typeof t!=="string"){if(z===t){u=true;break;}}else{if(h.filter(t,[z]).length>0){u=z;
break;}}}z=z[A];}p[y]=u;}}}var a=document.compareDocumentPosition?function(q,p){return q.compareDocumentPosition(p)&16;}:function(q,p){return q!==p&&(q.contains?q.contains(p):true);
};var n=function(p){return p.nodeType===9&&p.documentElement.nodeName!=="HTML"||!!p.ownerDocument&&n(p.ownerDocument);};var o=function(w,p){var v=[],s="",t,u=p.nodeType?[p]:p;
while((t=c.match.PSEUDO.exec(w))){s+=t[0];w=w.replace(c.match.PSEUDO,"");}w=c.relative[w]?w+"*":w;for(var q=0,x=u.length;
q<x;q++){h(w,u[q],v);}return h.filter(s,v);};R.find=h;R.filter=h.filter;R.expr=h.selectors;R.expr[":"]=R.expr.filters;h.selectors.filters.hidden=function(p){return p.offsetWidth===0||p.offsetHeight===0;
};h.selectors.filters.visible=function(p){return p.offsetWidth>0||p.offsetHeight>0;};h.selectors.filters.animated=function(p){return R.grep(R.timers,function(q){return p===q.elem;
}).length;};R.multiFilter=function(p,q,s){if(s){p=":not("+p+")";}return h.matches(p,q);};R.dir=function(p,t){var s=[],q=p[t];
while(q&&q!=document){if(q.nodeType==1){s.push(q);}q=q[t];}return s;};R.nth=function(s,t,q,p){t=t||1;var u=0;for(;s;s=s[q]){if(s.nodeType==1&&++u==t){break;
}}return s;};R.sibling=function(p,s){var q=[];for(;p;p=p.nextSibling){if(p.nodeType==1&&p!=s){q.push(p);}}return q;};return;
S.Sizzle=h;})();R.event={add:function(c,a,b,g){if(c.nodeType==3||c.nodeType==8){return;}if(c.setInterval&&c!=S){c=S;}if(!b.guid){b.guid=this.guid++;
}if(g!==Y){var d=b;b=this.proxy(d);b.data=g;}var e=R.data(c,"events")||R.data(c,"events",{}),f=R.data(c,"handle")||R.data(c,"handle",function(){return typeof R!=="undefined"&&!R.event.triggered?R.event.handle.apply(arguments.callee.elem,arguments):Y;
});f.elem=c;R.each(a.split(/\s+/),function(k,h){var i=h.split(".");h=i.shift();b.type=i.slice().sort().join(".");var j=e[h];
if(R.event.specialAll[h]){R.event.specialAll[h].setup.call(c,g,i);}if(!j){j=e[h]={};if(!R.event.special[h]||R.event.special[h].setup.call(c,g,i)===false){if(c.addEventListener){c.addEventListener(h,f,false);
}else{if(c.attachEvent){c.attachEvent("on"+h,f);}}}}j[b.guid]=b;R.event.global[h]=true;});c=null;},guid:1,global:{},remove:function(a,b,h){if(a.nodeType==3||a.nodeType==8){return;
}var f=R.data(a,"events"),e,g;if(f){if(b===Y||(typeof b==="string"&&b.charAt(0)==".")){for(var c in f){this.remove(a,c+(b||""));
}}else{if(b.type){h=b.handler;b=b.type;}R.each(b.split(/\s+/),function(m,k){var l=k.split(".");k=l.shift();var j=RegExp("(^|\\.)"+l.slice().sort().join(".*\\.")+"(\\.|$)");
if(f[k]){if(h){delete f[k][h.guid];}else{for(var i in f[k]){if(j.test(f[k][i].type)){delete f[k][i];}}}if(R.event.specialAll[k]){R.event.specialAll[k].teardown.call(a,l);
}for(e in f[k]){break;}if(!e){if(!R.event.special[k]||R.event.special[k].teardown.call(a,l)===false){if(a.removeEventListener){a.removeEventListener(k,R.data(a,"handle"),false);
}else{if(a.detachEvent){a.detachEvent("on"+k,R.data(a,"handle"));}}}e=null;delete f[k];}}});}for(e in f){break;}if(!e){var d=R.data(a,"handle");
if(d){d.elem=null;}R.removeData(a,"events");R.removeData(a,"handle");}}},trigger:function(c,a,b,g){var f=c.type||c;if(!g){c=typeof c==="object"?c[O]?c:R.extend(R.Event(f),c):R.Event(f);
if(f.indexOf("!")>=0){c.type=f=f.slice(0,-1);c.exclusive=true;}if(!b){c.stopPropagation();if(this.global[f]){R.each(R.cache,function(){if(this.events&&this.events[f]){R.event.trigger(c,a,this.handle.elem);
}});}}if(!b||b.nodeType==3||b.nodeType==8){return Y;}c.result=Y;c.target=b;a=R.makeArray(a);a.unshift(c);}c.currentTarget=b;
var h=R.data(b,"handle");if(h){h.apply(b,a);}if((!b[f]||(R.nodeName(b,"a")&&f=="click"))&&b["on"+f]&&b["on"+f].apply(b,a)===false){c.result=false;
}if(!g&&b[f]&&!c.isDefaultPrevented()&&!(R.nodeName(b,"a")&&f=="click")){this.triggered=true;try{b[f]();}catch(d){}}this.triggered=false;
if(!c.isPropagationStopped()){var e=b.parentNode||b.ownerDocument;if(e){R.event.trigger(c,a,e,true);}}},handle:function(a){var h,g;
a=arguments[0]=R.event.fix(a||S.event);a.currentTarget=this;var d=a.type.split(".");a.type=d.shift();h=!d.length&&!a.exclusive;
var c=RegExp("(^|\\.)"+d.slice().sort().join(".*\\.")+"(\\.|$)");g=(R.data(this,"events")||{})[a.type];for(var f in g){var b=g[f];
if(h||c.test(b.type)){a.handler=b;a.data=b.data;var e=b.apply(this,arguments);if(e!==Y){a.result=e;if(e===false){a.preventDefault();
a.stopPropagation();}}if(a.isImmediatePropagationStopped()){break;}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(b){if(b[O]){return b;
}var a=b;b=R.Event(a);for(var c=this.props.length,f;c;){f=this.props[--c];b[f]=a[f];}if(!b.target){b.target=b.srcElement||document;
}if(b.target.nodeType==3){b.target=b.target.parentNode;}if(!b.relatedTarget&&b.fromElement){b.relatedTarget=b.fromElement==b.target?b.toElement:b.fromElement;
}if(b.pageX==null&&b.clientX!=null){var e=document.documentElement,d=document.body;b.pageX=b.clientX+(e&&e.scrollLeft||d&&d.scrollLeft||0)-(e.clientLeft||0);
b.pageY=b.clientY+(e&&e.scrollTop||d&&d.scrollTop||0)-(e.clientTop||0);}if(!b.which&&((b.charCode||b.charCode===0)?b.charCode:b.keyCode)){b.which=b.charCode||b.keyCode;
}if(!b.metaKey&&b.ctrlKey){b.metaKey=b.ctrlKey;}if(!b.which&&b.button){b.which=(b.button&1?1:(b.button&2?3:(b.button&4?2:0)));
}return b;},proxy:function(a,b){b=b||function(){return a.apply(this,arguments);};b.guid=a.guid=a.guid||b.guid||this.guid++;
return b;},special:{ready:{setup:ab,teardown:function(){}}},specialAll:{live:{setup:function(b,a){R.event.add(this,a[0],V);
},teardown:function(b){if(b.length){var c=0,a=RegExp("(^|\\.)"+b[0]+"(\\.|$)");R.each((R.data(this,"events").live||{}),function(){if(a.test(this.type)){c++;
}});if(c<1){R.event.remove(this,b[0],V);}}}}}};R.Event=function(a){if(!this.preventDefault){return new R.Event(a);}if(a&&a.type){this.originalEvent=a;
this.type=a.type;}else{this.type=a;}this.timeStamp=aa();this[O]=true;};function N(){return false;}function L(){return true;
}R.Event.prototype={preventDefault:function(){this.isDefaultPrevented=L;var a=this.originalEvent;if(!a){return;}if(a.preventDefault){a.preventDefault();
}a.returnValue=false;},stopPropagation:function(){this.isPropagationStopped=L;var a=this.originalEvent;if(!a){return;}if(a.stopPropagation){a.stopPropagation();
}a.cancelBubble=true;},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=L;this.stopPropagation();},isDefaultPrevented:N,isPropagationStopped:N,isImmediatePropagationStopped:N};
var W=function(a){var c=a.relatedTarget;while(c&&c!=this){try{c=c.parentNode;}catch(b){c=this;}}if(c!=this){a.type=a.data;
R.event.handle.apply(this,arguments);}};R.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(a,b){R.event.special[b]={setup:function(){R.event.add(this,a,W,b);
},teardown:function(){R.event.remove(this,a,W);}};});R.fn.extend({bind:function(a,b,c){return a=="unload"?this.one(a,b,c):this.each(function(){R.event.add(this,a,c||b,c&&b);
});},one:function(b,a,c){var d=R.event.proxy(c||a,function(e){R(this).unbind(e,d);return(c||a).apply(this,arguments);});return this.each(function(){R.event.add(this,b,d,c&&a);
});},unbind:function(a,b){return this.each(function(){R.event.remove(this,a,b);});},trigger:function(b,a){return this.each(function(){R.event.trigger(b,a,this);
});},triggerHandler:function(c,b){if(this[0]){var a=R.Event(c);a.preventDefault();a.stopPropagation();R.event.trigger(a,b,this[0]);
return a.result;}},toggle:function(b){var c=arguments,a=1;while(a<c.length){R.event.proxy(b,c[a++]);}return this.click(R.event.proxy(b,function(d){this.lastToggle=(this.lastToggle||0)%a;
d.preventDefault();return c[this.lastToggle++].apply(this,arguments)||false;}));},hover:function(b,a){return this.mouseenter(b).mouseleave(a);
},ready:function(a){ab();if(R.isReady){a.call(document,R);}else{R.readyList.push(a);}return this;},live:function(b,a){var c=R.event.proxy(a);
c.guid+=this.selector+b;R(document).bind(P(b,this.selector),this.selector,c);return this;},die:function(a,b){R(document).unbind(P(a,this.selector),b?{guid:b.guid+this.selector+a}:null);
return this;}});function V(b){var d=RegExp("(^|\\.)"+b.type+"(\\.|$)"),c=true,a=[];R.each(R.data(this,"events").live||[],function(f,g){if(d.test(g.type)){var e=R(b.target).closest(g.data)[0];
if(e){a.push({elem:e,fn:g});}}});a.sort(function(f,e){return R.data(f.elem,"closest")-R.data(e.elem,"closest");});R.each(a,function(){if(this.fn.call(this.elem,b,this.fn.data)===false){return(c=false);
}});return c;}function P(a,b){return["live",a,b.replace(/\./g,"`").replace(/ /g,"|")].join(".");}R.extend({isReady:false,readyList:[],ready:function(){if(!R.isReady){R.isReady=true;
if(R.readyList){R.each(R.readyList,function(){this.call(document,R);});R.readyList=null;}R(document).triggerHandler("ready");
}}});var ag=false;function ab(){if(ag){return;}ag=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);
R.ready();},false);}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);
R.ready();}});if(document.documentElement.doScroll&&S==S.top){(function(){if(R.isReady){return;}try{document.documentElement.doScroll("left");
}catch(a){setTimeout(arguments.callee,0);return;}R.ready();})();}}}R.event.add(S,"load",R.ready);}R.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(a,b){R.fn[b]=function(c){return c?this.bind(b,c):this.trigger(b);
};});R(S).bind("unload",function(){for(var a in R.cache){if(a!=1&&R.cache[a].handle){R.event.remove(R.cache[a].handle.elem);
}}});(function(){R.support={};var a=document.documentElement,b=document.createElement("script"),g=document.createElement("div"),f="script"+(new Date).getTime();
g.style.display="none";g.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';
var e=g.getElementsByTagName("*"),d=g.getElementsByTagName("a")[0];if(!e||!e.length||!d){return;}R.support={leadingWhitespace:g.firstChild.nodeType==3,tbody:!g.getElementsByTagName("tbody").length,objectAll:!!g.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!g.getElementsByTagName("link").length,style:/red/.test(d.getAttribute("style")),hrefNormalized:d.getAttribute("href")==="/a",opacity:d.style.opacity==="0.5",cssFloat:!!d.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};
b.type="text/javascript";try{b.appendChild(document.createTextNode("window."+f+"=1;"));}catch(c){}a.insertBefore(b,a.firstChild);
if(S[f]){R.support.scriptEval=true;delete S[f];}a.removeChild(b);if(g.attachEvent&&g.fireEvent){g.attachEvent("onclick",function(){R.support.noCloneEvent=false;
g.detachEvent("onclick",arguments.callee);});g.cloneNode(true).fireEvent("onclick");}R(function(){var h=document.createElement("div");
h.style.width=h.style.paddingLeft="1px";document.body.appendChild(h);R.boxModel=R.support.boxModel=h.offsetWidth===2;document.body.removeChild(h).style.display="none";
});})();var J=R.support.cssFloat?"cssFloat":"styleFloat";R.props={"for":"htmlFor","class":"className","float":J,cssFloat:J,styleFloat:J,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};
R.fn.extend({_load:R.fn.load,load:function(b,g,a){if(typeof b!=="string"){return this._load(b);}var c=b.indexOf(" ");if(c>=0){var d=b.slice(c,b.length);
b=b.slice(0,c);}var f="GET";if(g){if(R.isFunction(g)){a=g;g=null;}else{if(typeof g==="object"){g=R.param(g);f="POST";}}}var e=this;
R.ajax({url:b,type:f,dataType:"html",data:g,complete:function(i,h){if(h=="success"||h=="notmodified"){e.html(d?R("<div/>").append(i.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(d):i.responseText);
}if(a){e.each(a,[i.responseText,h,i]);}}});return this;},serialize:function(){return R.param(this.serializeArray());},serializeArray:function(){return this.map(function(){return this.elements?R.makeArray(this.elements):this;
}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type));
}).map(function(c,a){var b=R(this).val();return b==null?null:R.isArray(b)?R.map(b,function(e,d){return{name:a.name,value:e};
}):{name:a.name,value:b};}).get();}});R.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(b,a){R.fn[a]=function(c){return this.bind(a,c);
};});var E=aa();R.extend({get:function(d,b,a,c){if(R.isFunction(b)){a=b;b=null;}return R.ajax({type:"GET",url:d,data:b,success:a,dataType:c});
},getScript:function(b,a){return R.get(b,null,a,"script");},getJSON:function(c,a,b){return R.get(c,a,b,"json");},post:function(d,b,a,c){if(R.isFunction(b)){a=b;
b={};}return R.ajax({type:"POST",url:d,data:b,success:a,dataType:c});},ajaxSetup:function(a){R.extend(R.ajaxSettings,a);},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return S.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();
},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(p){p=R.extend(true,p,R.extend(true,{},R.ajaxSettings,p));
var f,q=/=\?(&|$)/g,a,e,s=p.type.toUpperCase();if(p.data&&p.processData&&typeof p.data!=="string"){p.data=R.param(p.data);
}if(p.dataType=="jsonp"){if(s=="GET"){if(!p.url.match(q)){p.url+=(p.url.match(/\?/)?"&":"?")+(p.jsonp||"callback")+"=?";}}else{if(!p.data||!p.data.match(q)){p.data=(p.data?p.data+"&":"")+(p.jsonp||"callback")+"=?";
}}p.dataType="json";}if(p.dataType=="json"&&(p.data&&p.data.match(q)||p.url.match(q))){f="jsonp"+E++;if(p.data){p.data=(p.data+"").replace(q,"="+f+"$1");
}p.url=p.url.replace(q,"="+f+"$1");p.dataType="script";S[f]=function(u){e=u;l();o();S[f]=Y;try{delete S[f];}catch(v){}if(k){k.removeChild(g);
}};}if(p.dataType=="script"&&p.cache==null){p.cache=false;}if(p.cache===false&&s=="GET"){var t=aa();var h=p.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+t+"$2");
p.url=h+((h==p.url)?(p.url.match(/\?/)?"&":"?")+"_="+t:"");}if(p.data&&s=="GET"){p.url+=(p.url.match(/\?/)?"&":"?")+p.data;
p.data=null;}if(p.global&&!R.active++){R.event.trigger("ajaxStart");}var d=/^(\w+:)?\/\/([^\/?#]+)/.exec(p.url);if(p.dataType=="script"&&s=="GET"&&d&&(d[1]&&d[1]!=location.protocol||d[2]!=location.host)){var k=document.getElementsByTagName("head")[0];
var g=document.createElement("script");g.src=p.url;if(p.scriptCharset){g.charset=p.scriptCharset;}if(!f){var n=false;g.onload=g.onreadystatechange=function(){if(!n&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){n=true;
l();o();g.onload=g.onreadystatechange=null;k.removeChild(g);}};}k.appendChild(g);return Y;}var j=false;var i=p.xhr();if(p.username){i.open(s,p.url,p.async,p.username,p.password);
}else{i.open(s,p.url,p.async);}try{if(p.data){i.setRequestHeader("Content-Type",p.contentType);}if(p.ifModified){i.setRequestHeader("If-Modified-Since",R.lastModified[p.url]||"Thu, 01 Jan 1970 00:00:00 GMT");
}i.setRequestHeader("X-Requested-With","XMLHttpRequest");i.setRequestHeader("Accept",p.dataType&&p.accepts[p.dataType]?p.accepts[p.dataType]+", */*":p.accepts._default);
}catch(b){}if(p.beforeSend&&p.beforeSend(i,p)===false){if(p.global&&!--R.active){R.event.trigger("ajaxStop");}i.abort();return false;
}if(p.global){R.event.trigger("ajaxSend",[i,p]);}var m=function(v){if(i.readyState==0){if(c){clearInterval(c);c=null;if(p.global&&!--R.active){R.event.trigger("ajaxStop");
}}}else{if(!j&&i&&(i.readyState==4||v=="timeout")){j=true;if(c){clearInterval(c);c=null;}a=v=="timeout"?"timeout":!R.httpSuccess(i)?"error":p.ifModified&&R.httpNotModified(i,p.url)?"notmodified":"success";
if(a=="success"){try{e=R.httpData(i,p.dataType,p);}catch(u){a="parsererror";}}if(a=="success"){var w;try{w=i.getResponseHeader("Last-Modified");
}catch(u){}if(p.ifModified&&w){R.lastModified[p.url]=w;}if(!f){l();}}else{R.handleError(p,i,a);}o();if(v){i.abort();}if(p.async){i=null;
}}}};if(p.async){var c=setInterval(m,13);if(p.timeout>0){setTimeout(function(){if(i&&!j){m("timeout");}},p.timeout);}}try{i.send(p.data);
}catch(b){R.handleError(p,i,null,b);}if(!p.async){m();}function l(){if(p.success){p.success(e,a);}if(p.global){R.event.trigger("ajaxSuccess",[i,p]);
}}function o(){if(p.complete){p.complete(i,a);}if(p.global){R.event.trigger("ajaxComplete",[i,p]);}if(p.global&&!--R.active){R.event.trigger("ajaxStop");
}}return i;},handleError:function(a,b,d,c){if(a.error){a.error(b,d,c);}if(a.global){R.event.trigger("ajaxError",[b,a,c]);
}},active:0,httpSuccess:function(a){try{return !a.status&&location.protocol=="file:"||(a.status>=200&&a.status<300)||a.status==304||a.status==1223;
}catch(b){}return false;},httpNotModified:function(b,d){try{var a=b.getResponseHeader("Last-Modified");return b.status==304||a==R.lastModified[d];
}catch(c){}return false;},httpData:function(f,b,c){var a=f.getResponseHeader("content-type"),d=b=="xml"||!b&&a&&a.indexOf("xml")>=0,e=d?f.responseXML:f.responseText;
if(d&&e.documentElement.tagName=="parsererror"){throw"parsererror";}if(c&&c.dataFilter){e=c.dataFilter(e,b);}if(typeof e==="string"){if(b=="script"){R.globalEval(e);
}if(b=="json"){e=S["eval"]("("+e+")");}}return e;},param:function(d){var b=[];function a(e,f){b[b.length]=encodeURIComponent(e)+"="+encodeURIComponent(f);
}if(R.isArray(d)||d.jquery){R.each(d,function(){a(this.name,this.value);});}else{for(var c in d){if(R.isArray(d[c])){R.each(d[c],function(){a(c,this);
});}else{a(c,R.isFunction(d[c])?d[c]():d[c]);}}}return b.join("&").replace(/%20/g,"+");}});var T={},Q,Z=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];
function K(a,c){var b={};R.each(Z.concat.apply([],Z.slice(0,c)),function(){b[this]=a;});return b;}R.fn.extend({show:function(h,d){if(h){return this.animate(K("show",3),h,d);
}else{for(var b=0,e=this.length;b<e;b++){var g=R.data(this[b],"olddisplay");this[b].style.display=g||"";if(R.css(this[b],"display")==="none"){var f=this[b].tagName,a;
if(T[f]){a=T[f];}else{var c=R("<"+f+" />").appendTo("body");a=c.css("display");if(a==="none"){a="block";}c.remove();T[f]=a;
}R.data(this[b],"olddisplay",a);}}for(var b=0,e=this.length;b<e;b++){this[b].style.display=R.data(this[b],"olddisplay")||"";
}return this;}},hide:function(b,c){if(b){return this.animate(K("hide",3),b,c);}else{for(var d=0,a=this.length;d<a;d++){var e=R.data(this[d],"olddisplay");
if(!e&&e!=="none"){R.data(this[d],"olddisplay",R.css(this[d],"display"));}}for(var d=0,a=this.length;d<a;d++){this[d].style.display="none";
}return this;}},_toggle:R.fn.toggle,toggle:function(b,a){var c=typeof b==="boolean";return R.isFunction(b)&&R.isFunction(a)?this._toggle.apply(this,arguments):b==null||c?this.each(function(){var d=c?b:R(this).is(":hidden");
R(this)[d?"show":"hide"]();}):this.animate(K("toggle",3),b,a);},fadeTo:function(c,b,a){return this.animate({opacity:b},c,a);
},animate:function(c,a,b,d){var e=R.speed(a,b,d);return this[e.queue===false?"each":"queue"](function(){var f=R.extend({},e),h,g=this.nodeType==1&&R(this).is(":hidden"),i=this;
for(h in c){if(c[h]=="hide"&&g||c[h]=="show"&&!g){return f.complete.call(this);}if((h=="height"||h=="width")&&this.style){f.display=R.css(this,"display");
f.overflow=this.style.overflow;}}if(f.overflow!=null){this.style.overflow="hidden";}f.curAnim=R.extend({},c);R.each(c,function(n,m){var l=new R.fx(i,f,n);
if(/toggle|show|hide/.test(m)){l[m=="toggle"?g?"show":"hide":m](c);}else{var o=m.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),p=l.cur(true)||0;
if(o){var k=parseFloat(o[2]),j=o[3]||"px";if(j!="px"){i.style[n]=(k||1)+j;p=((k||1)/l.cur(true))*p;i.style[n]=p+j;}if(o[1]){k=((o[1]=="-="?-1:1)*k)+p;
}l.custom(p,k,j);}else{l.custom(p,m,"");}}});return true;});},stop:function(a,c){var b=R.timers;if(a){this.queue([]);}this.each(function(){for(var d=b.length-1;
d>=0;d--){if(b[d].elem==this){if(c){b[d](true);}b.splice(d,1);}}});if(!c){this.dequeue();}return this;}});R.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(b,a){R.fn[b]=function(d,c){return this.animate(a,d,c);
};});R.extend({speed:function(b,a,c){var d=typeof b==="object"?b:{complete:c||!c&&a||R.isFunction(b)&&b,duration:b,easing:c&&a||a&&!R.isFunction(a)&&a};
d.duration=R.fx.off?0:typeof d.duration==="number"?d.duration:R.fx.speeds[d.duration]||R.fx.speeds._default;d.old=d.complete;
d.complete=function(){if(d.queue!==false){R(this).dequeue();}if(R.isFunction(d.old)){d.old.call(this);}};return d;},easing:{linear:function(b,a,d,c){return d+c*b;
},swing:function(b,a,d,c){return((-Math.cos(b*Math.PI)/2)+0.5)*c+d;}},timers:[],fx:function(a,c,b){this.options=c;this.elem=a;
this.prop=b;if(!c.orig){c.orig={};}}});R.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this);
}(R.fx.step[this.prop]||R.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block";
}},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop];
}var b=parseFloat(R.css(this.elem,this.prop,a));return b&&b>-10000?b:parseFloat(R.curCSS(this.elem,this.prop))||0;},custom:function(c,b,d){this.startTime=aa();
this.start=c;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;var e=this;function a(f){return e.step(f);
}a.elem=this.elem;if(a()&&R.timers.push(a)&&!Q){Q=setInterval(function(){var f=R.timers;for(var g=0;g<f.length;g++){if(!f[g]()){f.splice(g--,1);
}}if(!f.length){clearInterval(Q);Q=Y;}},13);}},show:function(){this.options.orig[this.prop]=R.attr(this.elem.style,this.prop);
this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());R(this.elem).show();},hide:function(){this.options.orig[this.prop]=R.attr(this.elem.style,this.prop);
this.options.hide=true;this.custom(this.cur(),0);},step:function(b){var c=aa();if(b||c>=this.options.duration+this.startTime){this.now=this.end;
this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var d=true;for(var a in this.options.curAnim){if(this.options.curAnim[a]!==true){d=false;
}}if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;
if(R.css(this.elem,"display")=="none"){this.elem.style.display="block";}}if(this.options.hide){R(this.elem).hide();}if(this.options.hide||this.options.show){for(var f in this.options.curAnim){R.attr(this.elem.style,f,this.options.orig[f]);
}}this.options.complete.call(this.elem);}return false;}else{var e=c-this.startTime;this.state=e/this.options.duration;this.pos=R.easing[this.options.easing||(R.easing.swing?"swing":"linear")](this.state,e,0,1,this.options.duration);
this.now=this.start+((this.end-this.start)*this.pos);this.update();}return true;}};R.extend(R.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){R.attr(a.elem.style,"opacity",a.now);
},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null){a.elem.style[a.prop]=a.now+a.unit;}else{a.elem[a.prop]=a.now;
}}}});if(document.documentElement.getBoundingClientRect){R.fn.offset=function(){if(!this[0]){return{top:0,left:0};}if(this[0]===this[0].ownerDocument.body){return R.offset.bodyOffset(this[0]);
}var f=this[0].getBoundingClientRect(),h=this[0].ownerDocument,e=h.body,g=h.documentElement,d=g.clientTop||e.clientTop||0,a=g.clientLeft||e.clientLeft||0,c=f.top+(self.pageYOffset||R.boxModel&&g.scrollTop||e.scrollTop)-d,b=f.left+(self.pageXOffset||R.boxModel&&g.scrollLeft||e.scrollLeft)-a;
return{top:c,left:b};};}else{R.fn.offset=function(){if(!this[0]){return{top:0,left:0};}if(this[0]===this[0].ownerDocument.body){return R.offset.bodyOffset(this[0]);
}R.offset.initialized||R.offset.initialize();var k=this[0],i=k.offsetParent,h=k,e=k.ownerDocument,g,b=e.documentElement,a=e.body,f=e.defaultView,j=f.getComputedStyle(k,null),d=k.offsetTop,c=k.offsetLeft;
while((k=k.parentNode)&&k!==a&&k!==b){g=f.getComputedStyle(k,null);d-=k.scrollTop,c-=k.scrollLeft;if(k===i){d+=k.offsetTop,c+=k.offsetLeft;
if(R.offset.doesNotAddBorder&&!(R.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(k.tagName))){d+=parseInt(g.borderTopWidth,10)||0,c+=parseInt(g.borderLeftWidth,10)||0;
}h=i,i=k.offsetParent;}if(R.offset.subtractsBorderForOverflowNotVisible&&g.overflow!=="visible"){d+=parseInt(g.borderTopWidth,10)||0,c+=parseInt(g.borderLeftWidth,10)||0;
}j=g;}if(j.position==="relative"||j.position==="static"){d+=a.offsetTop,c+=a.offsetLeft;}if(j.position==="fixed"){d+=Math.max(b.scrollTop,a.scrollTop),c+=Math.max(b.scrollLeft,a.scrollLeft);
}return{top:d,left:c};};}R.offset={initialize:function(){if(this.initialized){return;}var e=document.body,g=document.createElement("div"),b,h,d,c,f,i,j=e.style.marginTop,a='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';
f={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(i in f){g.style[i]=f[i];
}g.innerHTML=a;e.insertBefore(g,e.firstChild);b=g.firstChild,h=b.firstChild,c=b.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(h.offsetTop!==5);
this.doesAddBorderForTableAndCells=(c.offsetTop===5);b.style.overflow="hidden",b.style.position="relative";this.subtractsBorderForOverflowNotVisible=(h.offsetTop===-5);
e.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(e.offsetTop===0);e.style.marginTop=j;e.removeChild(g);this.initialized=true;
},bodyOffset:function(c){R.offset.initialized||R.offset.initialize();var b=c.offsetTop,a=c.offsetLeft;if(R.offset.doesNotIncludeMarginInBodyOffset){b+=parseInt(R.curCSS(c,"marginTop",true),10)||0,a+=parseInt(R.curCSS(c,"marginLeft",true),10)||0;
}return{top:b,left:a};}};R.fn.extend({position:function(){var c=0,b=0,a;if(this[0]){var d=this.offsetParent(),f=this.offset(),e=/^body|html$/i.test(d[0].tagName)?{top:0,left:0}:d.offset();
f.top-=M(this,"marginTop");f.left-=M(this,"marginLeft");e.top+=M(d,"borderTopWidth");e.left+=M(d,"borderLeftWidth");a={top:f.top-e.top,left:f.left-e.left};
}return a;},offsetParent:function(){var a=this[0].offsetParent||document.body;while(a&&(!/^body|html$/i.test(a.tagName)&&R.css(a,"position")=="static")){a=a.offsetParent;
}return R(a);}});R.each(["Left","Top"],function(a,c){var b="scroll"+c;R.fn[b]=function(d){if(!this[0]){return null;}return d!==Y?this.each(function(){this==S||this==document?S.scrollTo(!a?d:R(S).scrollLeft(),a?d:R(S).scrollTop()):this[b]=d;
}):this[0]==S||this[0]==document?self[a?"pageYOffset":"pageXOffset"]||R.boxModel&&document.documentElement[b]||document.body[b]:this[0][b];
};});R.each(["Height","Width"],function(c,b){var d=c?"Left":"Top",a=c?"Right":"Bottom",e=b.toLowerCase();R.fn["inner"+b]=function(){return this[0]?R.css(this[0],e,false,"padding"):null;
};R.fn["outer"+b]=function(g){return this[0]?R.css(this[0],e,false,g?"margin":"border"):null;};var f=b.toLowerCase();R.fn[f]=function(g){return this[0]==S?document.compatMode=="CSS1Compat"&&document.documentElement["client"+b]||document.body["client"+b]:this[0]==document?Math.max(document.documentElement["client"+b],document.body["scroll"+b],document.documentElement["scroll"+b],document.body["offset"+b],document.documentElement["offset"+b]):g===Y?(this.length?R.css(this[0],f):null):this.css(f,typeof g==="string"?g:g+"px");
};});})();jQuery.ui||(function(n){var l=n.fn.remove,s=n.browser.mozilla&&(parseFloat(n.browser.version)<1.9);n.ui={version:"1.7.2",plugin:{add:function(e,b,a){var c=n.ui[e].prototype;
for(var d in a){c.plugins[d]=c.plugins[d]||[];c.plugins[d].push([b,a[d]]);}},call:function(d,b,e){var a=d.plugins[b];if(!a||!d.element[0].parentNode){return;
}for(var c=0;c<a.length;c++){if(d.options[a[c][0]]){a[c][1].apply(d.element,e);}}}},contains:function(b,a){return document.compareDocumentPosition?b.compareDocumentPosition(a)&16:b!==a&&b.contains(a);
},hasScroll:function(b,d){if(n(b).css("overflow")=="hidden"){return false;}var c=(d&&d=="left")?"scrollLeft":"scrollTop",a=false;
if(b[c]>0){return true;}b[c]=1;a=(b[c]>0);b[c]=0;return a;},isOverAxis:function(c,b,a){return(c>b)&&(c<(b+a));},isOver:function(b,f,a,d,e,c){return n.ui.isOverAxis(b,a,e)&&n.ui.isOverAxis(f,d,c);
},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(s){var p=n.attr,j=n.fn.removeAttr,k="http://www.w3.org/2005/07/aaa",o=/^aria-/,m=/^wairole:/;n.attr=function(d,c,a){var b=a!==undefined;
return(c=="role"?(b?p.call(this,d,c,"wairole:"+a):(p.apply(this,arguments)||"").replace(m,"")):(o.test(c)?(b?d.setAttributeNS(k,c.replace(o,"aaa:"),a):p.call(this,d,c.replace(o,"aaa:"))):p.apply(this,arguments)));
};n.fn.removeAttr=function(a){return(o.test(a)?this.each(function(){this.removeAttributeNS(k,a.replace(o,""));}):j.call(this,a));
};}n.fn.extend({remove:function(){n("*",this).add(this).each(function(){n(this).triggerHandler("remove");});return l.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((n.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){a=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(n.curCSS(this,"position",1))&&(/(auto|scroll)/).test(n.curCSS(this,"overflow",1)+n.curCSS(this,"overflow-y",1)+n.curCSS(this,"overflow-x",1));
}).eq(0);}else{a=this.parents().filter(function(){return(/(auto|scroll)/).test(n.curCSS(this,"overflow",1)+n.curCSS(this,"overflow-y",1)+n.curCSS(this,"overflow-x",1));
}).eq(0);}return(/fixed/).test(this.css("position"))||!a.length?n(document):a;}});n.extend(n.expr[":"],{data:function(a,c,b){return !!n.data(a,b[3]);
},focusable:function(c){var a=c.nodeName.toLowerCase(),b=n.attr(c,"tabindex");return(/input|select|textarea|button|object/.test(a)?!c.disabled:"a"==a||"area"==a?c.href||!isNaN(b):!isNaN(b))&&!n(c)["area"==a?"parents":"closest"](":hidden").length;
},tabbable:function(b){var a=n.attr(b,"tabindex");return(isNaN(a)||a>=0)&&n(b).is(":focusable");}});function q(d,a,b,c){function f(h){var g=n[d][a][h]||[];
return(typeof g=="string"?g.split(/,?\s+/):g);}var e=f("getter");if(c.length==1&&typeof c[0]=="string"){e=e.concat(f("getterSetter"));
}return(n.inArray(b,e)!=-1);}n.widget=function(c,b){var a=c.split(".")[0];c=c.split(".")[1];n.fn[c]=function(e){var d=(typeof e=="string"),f=Array.prototype.slice.call(arguments,1);
if(d&&e.substring(0,1)=="_"){return this;}if(d&&q(a,c,e,f)){var g=n.data(this[0],c);return(g?g[e].apply(g,f):undefined);}return this.each(function(){var h=n.data(this,c);
(!h&&!d&&n.data(this,c,new n[a][c](this,e))._init());(h&&d&&n.isFunction(h[e])&&h[e].apply(h,f));});};n[a]=n[a]||{};n[a][c]=function(e,d){var f=this;
this.namespace=a;this.widgetName=c;this.widgetEventPrefix=n[a][c].eventPrefix||c;this.widgetBaseClass=a+"-"+c;this.options=n.extend({},n.widget.defaults,n[a][c].defaults,n.metadata&&n.metadata.get(e)[c],d);
this.element=n(e).bind("setData."+c,function(i,h,g){if(i.target==e){return f._setData(h,g);}}).bind("getData."+c,function(h,g){if(h.target==e){return f._getData(g);
}}).bind("remove",function(){return f.destroy();});};n[a][c].prototype=n.extend({},n.widget.prototype,b);n[a][c].getterSetter="option";
};n.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled");
},option:function(a,b){var d=a,c=this;if(typeof a=="string"){if(b===undefined){return this._getData(a);}d={};d[a]=b;}n.each(d,function(e,f){c._setData(e,f);
});},_getData:function(a){return this.options[a];},_setData:function(a,b){this.options[a]=b;if(a=="disabled"){this.element[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",b);
}},enable:function(){this._setData("disabled",false);},disable:function(){this._setData("disabled",true);},_trigger:function(c,d,a){var b=this.options[c],f=(c==this.widgetEventPrefix?c:this.widgetEventPrefix+c);
d=n.Event(d);d.type=f;if(d.originalEvent){for(var g=n.event.props.length,e;g;){e=n.event.props[--g];d[e]=d.originalEvent[e];
}}this.element.trigger(d,a);return !(n.isFunction(b)&&b.call(this.element[0],d,a)===false||d.isDefaultPrevented());}};n.widget.defaults={disabled:false};
n.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(n.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on");
}this.started=false;},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(n.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable));
},_mouseDown:function(a){a.originalEvent=a.originalEvent||{};if(a.originalEvent.mouseHandled){return;}(this._mouseStarted&&this._mouseUp(a));
this._mouseDownEvent=a;var d=this,b=(a.which==1),c=(typeof this.options.cancel=="string"?n(a.target).parents().add(a.target).filter(this.options.cancel).length:false);
if(!b||c||!this._mouseCapture(a)){return true;}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){d.mouseDelayMet=true;
},this.options.delay);}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted=(this._mouseStart(a)!==false);
if(!this._mouseStarted){a.preventDefault();return true;}}this._mouseMoveDelegate=function(e){return d._mouseMove(e);};this._mouseUpDelegate=function(e){return d._mouseUp(e);
};n(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);
(n.browser.safari||a.preventDefault());a.originalEvent.mouseHandled=true;return true;},_mouseMove:function(a){if(n.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){n(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;
}};n.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(e,a){this.position=this._generatePosition(e);
this.positionAbs=this._convertPositionTo("absolute");if(!a){var f=this._uiHash();this._trigger("drag",e,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,e);}return false;},_mouseStop:function(f){var a=false;if(b.ui.ddmanager&&!this.options.dropBehaviour){a=b.ui.ddmanager.drop(this,f);
}if(this.dropped){a=this.dropped;this.dropped=false;}if((this.options.revert=="invalid"&&!a)||(this.options.revert=="valid"&&a)||this.options.revert===true||(b.isFunction(this.options.revert)&&this.options.revert.call(this.element,a))){var e=this;
b(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){e._trigger("stop",f);e._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 a=this.options;
var e=b.isFunction(a.helper)?b(a.helper.apply(this.element[0],[f])):(a.helper=="clone"?this.element.clone():this.element);
if(!e.parents("body").length){e.appendTo((a.appendTo=="parent"?this.element[0].parentNode:a.appendTo));}if(e[0]!=this.element[0]&&!(/(fixed|absolute)/).test(e.css("position"))){e.css("position","absolute");
}return e;},_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 a=b(f.containment).offset();var g=(b(h).css("overflow")!="hidden");this.containment=[a.left+(parseInt(b(h).css("borderLeftWidth"),10)||0)+(parseInt(b(h).css("paddingLeft"),10)||0)-this.margins.left,a.top+(parseInt(b(h).css("borderTopWidth"),10)||0)+(parseInt(b(h).css("paddingTop"),10)||0)-this.margins.top,a.left+(g?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,a.top+(g?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(l,a){if(!a){a=this.position;
}var k=l=="absolute"?1:-1;var d=this.options,j=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(j[0].tagName);
return{top:(a.top+this.offset.relative.top*k+this.offset.parent.top*k-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(i?0:j.scrollTop()))*k)),left:(a.left+this.offset.relative.left*k+this.offset.parent.left*k-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():i?0:j.scrollLeft())*k))};
},_generatePosition:function(a){var j=this.options,l=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,k=(/(html|body)/i).test(l[0].tagName);
if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset();
}var p=a.pageX;var m=a.pageY;if(this.originalPosition){if(this.containment){if(a.pageX-this.offset.click.left<this.containment[0]){p=this.containment[0]+this.offset.click.left;
}if(a.pageY-this.offset.click.top<this.containment[1]){m=this.containment[1]+this.offset.click.top;}if(a.pageX-this.offset.click.left>this.containment[2]){p=this.containment[2]+this.offset.click.left;
}if(a.pageY-this.offset.click.top>this.containment[3]){m=this.containment[3]+this.offset.click.top;}}if(j.grid){var o=this.originalPageY+Math.round((m-this.originalPageY)/j.grid[1])*j.grid[1];
m=this.containment?(!(o-this.offset.click.top<this.containment[1]||o-this.offset.click.top>this.containment[3])?o:(!(o-this.offset.click.top<this.containment[1])?o-j.grid[1]:o+j.grid[1])):o;
var n=this.originalPageX+Math.round((p-this.originalPageX)/j.grid[0])*j.grid[0];p=this.containment?(!(n-this.offset.click.left<this.containment[0]||n-this.offset.click.left>this.containment[2])?n:(!(n-this.offset.click.left<this.containment[0])?n-j.grid[0]:n+j.grid[0])):n;
}}return{top:(m-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():(k?0:l.scrollTop())))),left:(p-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():k?0:l.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(e,f,a){a=a||this._uiHash();b.ui.plugin.call(this,e,[f,a]);
if(e=="drag"){this.positionAbs=this._convertPositionTo("absolute");}return b.widget.prototype._trigger.call(this,e,f,a);},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(i,g){var a=b(this).data("draggable"),j=a.options,h=b.extend({},g,{item:a.element});
a.sortables=[];b(j.connectToSortable).each(function(){var c=b.data(this,"sortable");if(c&&!c.options.disabled){a.sortables.push({instance:c,shouldRevert:c.options.revert});
c._refreshItems();c._trigger("activate",i,h);}});},stop:function(h,f){var a=b(this).data("draggable"),g=b.extend({},f,{item:a.element});
b.each(a.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;a.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(a.options.helper=="original"){this.instance.currentItem.css({top:"auto",left:"auto"});}}else{this.instance.cancelHelperRemoval=false;
this.instance._trigger("deactivate",h,g);}});},drag:function(i,j){var g=b(this).data("draggable"),h=this;var a=function(o){var q=this.offset.click.top,t=this.offset.click.left;
var u=this.positionAbs.top,e=this.positionAbs.left;var d=o.height,s=o.width;var c=o.top,f=o.left;return b.ui.isOver(u+q,e+t,c,f,d,s);
};b.each(g.sortables,function(c){this.instance.positionAbs=g.positionAbs;this.instance.helperProportions=g.helperProportions;
this.instance.offset.click=g.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;
this.instance.currentItem=b(h).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;
this.instance.options.helper=function(){return j.helper[0];};i.target=this.instance.currentItem[0];this.instance._mouseCapture(i,true);
this.instance._mouseStart(i,true,true);this.instance.offset.click.top=g.offset.click.top;this.instance.offset.click.left=g.offset.click.left;
this.instance.offset.parent.left-=g.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=g.offset.parent.top-this.instance.offset.parent.top;
g._trigger("toSortable",i);g.dropped=this.instance.element;g.currentItem=g.element;this.instance.fromOutside=g;}if(this.instance.currentItem){this.instance._mouseDrag(i);
}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;
this.instance._trigger("out",i,this.instance._uiHash(this.instance));this.instance._mouseStop(i,true);this.instance.options.helper=this.instance.options._helper;
this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove();}g._trigger("fromSortable",i);
g.dropped=false;}}});}});b.ui.plugin.add("draggable","cursor",{start:function(h,a){var g=b("body"),f=b(this).data("draggable").options;
if(g.css("cursor")){f._cursor=g.css("cursor");}g.css("cursor",f.cursor);},stop:function(e,f){var a=b(this).data("draggable").options;
if(a._cursor){b("body").css("cursor",a._cursor);}}});b.ui.plugin.add("draggable","iframeFix",{start:function(e,f){var a=b(this).data("draggable").options;
b(a.iframeFix===true?"iframe":a.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,a){var g=b(a.helper),f=b(this).data("draggable").options;
if(g.css("opacity")){f._opacity=g.css("opacity");}g.css("opacity",f.opacity);},stop:function(e,f){var a=b(this).data("draggable").options;
if(a._opacity){b(f.helper).css("opacity",a._opacity);}}});b.ui.plugin.add("draggable","scroll",{start:function(f,a){var e=b(this).data("draggable");
if(e.scrollParent[0]!=document&&e.scrollParent[0].tagName!="HTML"){e.overflowOffset=e.scrollParent.offset();}},drag:function(a,g){var i=b(this).data("draggable"),j=i.options,h=false;
if(i.scrollParent[0]!=document&&i.scrollParent[0].tagName!="HTML"){if(!j.axis||j.axis!="x"){if((i.overflowOffset.top+i.scrollParent[0].offsetHeight)-a.pageY<j.scrollSensitivity){i.scrollParent[0].scrollTop=h=i.scrollParent[0].scrollTop+j.scrollSpeed;
}else{if(a.pageY-i.overflowOffset.top<j.scrollSensitivity){i.scrollParent[0].scrollTop=h=i.scrollParent[0].scrollTop-j.scrollSpeed;
}}}if(!j.axis||j.axis!="y"){if((i.overflowOffset.left+i.scrollParent[0].offsetWidth)-a.pageX<j.scrollSensitivity){i.scrollParent[0].scrollLeft=h=i.scrollParent[0].scrollLeft+j.scrollSpeed;
}else{if(a.pageX-i.overflowOffset.left<j.scrollSensitivity){i.scrollParent[0].scrollLeft=h=i.scrollParent[0].scrollLeft-j.scrollSpeed;
}}}}else{if(!j.axis||j.axis!="x"){if(a.pageY-b(document).scrollTop()<j.scrollSensitivity){h=b(document).scrollTop(b(document).scrollTop()-j.scrollSpeed);
}else{if(b(window).height()-(a.pageY-b(document).scrollTop())<j.scrollSensitivity){h=b(document).scrollTop(b(document).scrollTop()+j.scrollSpeed);
}}}if(!j.axis||j.axis!="y"){if(a.pageX-b(document).scrollLeft()<j.scrollSensitivity){h=b(document).scrollLeft(b(document).scrollLeft()-j.scrollSpeed);
}else{if(b(window).width()-(a.pageX-b(document).scrollLeft())<j.scrollSensitivity){h=b(document).scrollLeft(b(document).scrollLeft()+j.scrollSpeed);
}}}}if(h!==false&&b.ui.ddmanager&&!j.dropBehaviour){b.ui.ddmanager.prepareOffsets(i,a);}}});b.ui.plugin.add("draggable","snap",{start:function(h,a){var g=b(this).data("draggable"),f=g.options;
g.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!=g.element[0]){g.snapElements.push({item:this,width:c.outerWidth(),height:c.outerHeight(),top:d.top,left:d.left});
}});},drag:function(t,d){var I=b(this).data("draggable"),i=I.options;var N=i.snapTolerance;var M=d.offset.left,o=M+I.helperProportions.width,H=d.offset.top,J=H+I.helperProportions.height;
for(var l=I.snapElements.length-1;l>=0;l--){var a=I.snapElements[l].left,E=a+I.snapElements[l].width,F=I.snapElements[l].top,K=F+I.snapElements[l].height;
if(!((a-N<M&&M<E+N&&F-N<H&&H<K+N)||(a-N<M&&M<E+N&&F-N<J&&J<K+N)||(a-N<o&&o<E+N&&F-N<H&&H<K+N)||(a-N<o&&o<E+N&&F-N<J&&J<K+N))){if(I.snapElements[l].snapping){(I.options.snap.release&&I.options.snap.release.call(I.element,t,b.extend(I._uiHash(),{snapItem:I.snapElements[l].item})));
}I.snapElements[l].snapping=false;continue;}if(i.snapMode!="inner"){var G=Math.abs(F-J)<=N;var L=Math.abs(K-H)<=N;var B=Math.abs(a-o)<=N;
var C=Math.abs(E-M)<=N;if(G){d.position.top=I._convertPositionTo("relative",{top:F-I.helperProportions.height,left:0}).top-I.margins.top;
}if(L){d.position.top=I._convertPositionTo("relative",{top:K,left:0}).top-I.margins.top;}if(B){d.position.left=I._convertPositionTo("relative",{top:0,left:a-I.helperProportions.width}).left-I.margins.left;
}if(C){d.position.left=I._convertPositionTo("relative",{top:0,left:E}).left-I.margins.left;}}var D=(G||L||B||C);if(i.snapMode!="outer"){var G=Math.abs(F-H)<=N;
var L=Math.abs(K-J)<=N;var B=Math.abs(a-M)<=N;var C=Math.abs(E-o)<=N;if(G){d.position.top=I._convertPositionTo("relative",{top:F,left:0}).top-I.margins.top;
}if(L){d.position.top=I._convertPositionTo("relative",{top:K-I.helperProportions.height,left:0}).top-I.margins.top;}if(B){d.position.left=I._convertPositionTo("relative",{top:0,left:a}).left-I.margins.left;
}if(C){d.position.left=I._convertPositionTo("relative",{top:0,left:E-I.helperProportions.width}).left-I.margins.left;}}if(!I.snapElements[l].snapping&&(G||L||B||C||D)){(I.options.snap.snap&&I.options.snap.snap.call(I.element,t,b.extend(I._uiHash(),{snapItem:I.snapElements[l].item})));
}I.snapElements[l].snapping=(G||L||B||C||D);}}});b.ui.plugin.add("draggable","stack",{start:function(g,h){var f=b(this).data("draggable").options;
var a=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(a).each(function(c){this.style.zIndex=f.stack.min+c;});this[0].style.zIndex=f.stack.min+a.length;}});b.ui.plugin.add("draggable","zIndex",{start:function(h,a){var g=b(a.helper),f=b(this).data("draggable").options;
if(g.css("zIndex")){f._zIndex=g.css("zIndex");}g.css("zIndex",f.zIndex);},stop:function(e,f){var a=b(this).data("draggable").options;
if(a._zIndex){b(f.helper).css("zIndex",a._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,a){var g=a||b.ui.ddmanager.current;if(!g||(g.currentItem||g.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(g,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],(g.currentItem||g.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(g));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(s,t,y){if(!t.offset){return false;}var a=(s.positionAbs||s.position.absolute).left,D=a+s.helperProportions.width,x=(s.positionAbs||s.position.absolute).top,z=x+s.helperProportions.height;
var C=t.offset.left,A=C+t.proportions.width,l=t.offset.top,u=l+t.proportions.height;switch(y){case"fit":return(C<a&&D<A&&l<x&&z<u);
break;case"intersect":return(C<a+(s.helperProportions.width/2)&&D-(s.helperProportions.width/2)<A&&l<x+(s.helperProportions.height/2)&&z-(s.helperProportions.height/2)<u);
break;case"pointer":var v=((s.positionAbs||s.position.absolute).left+(s.clickOffset||s.offset.click).left),w=((s.positionAbs||s.position.absolute).top+(s.clickOffset||s.offset.click).top),B=b.ui.isOver(w,v,l,C,t.proportions.height,t.proportions.width);
return B;break;case"touch":return((x>=l&&x<=u)||(z>=l&&z<=u)||(x<l&&z>u))&&((a>=C&&a<=A)||(D>=C&&D<=A)||(a<C&&D>A));break;
default:return false;break;}};b.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(j,a){var l=b.ui.ddmanager.droppables[j.options.scope];
var n=a?a.type:null;var i=(j.currentItem||j.element).find(":data(droppable)").andSelf();droppablesLoop:for(var k=0;k<l.length;
k++){if(l[k].options.disabled||(j&&!l[k].options.accept.call(l[k].element[0],(j.currentItem||j.element)))){continue;}for(var m=0;
m<i.length;m++){if(i[m]==l[k].element[0]){l[k].proportions.height=0;continue droppablesLoop;}}l[k].visible=l[k].element.css("display")!="none";
if(!l[k].visible){continue;}l[k].offset=l[k].element.offset();l[k].proportions={width:l[k].element[0].offsetWidth,height:l[k].element[0].offsetHeight};
if(n=="mousedown"){l[k]._activate.call(l[k],a);}}},drop:function(e,f){var a=false;b.each(b.ui.ddmanager.droppables[e.options.scope],function(){if(!this.options){return;
}if(!this.options.disabled&&this.visible&&b.ui.intersect(e,this,this.options.tolerance)){a=this._drop.call(this,f);}if(!this.options.disabled&&this.visible&&this.options.accept.call(this.element[0],(e.currentItem||e.element))){this.isout=1;
this.isover=0;this._deactivate.call(this,f);}});return a;},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 j;if(this.options.greedy){var h=this.element.parents(":data(droppable):eq(0)");if(h.length){j=b.data(h[0],"droppable");
j.greedyChild=(c=="isover"?1:0);}}if(j&&c=="isover"){j.isover=0;j.isout=1;j._out.call(j,d);}this[c]=1;this[c=="isout"?"isover":"isout"]=0;
this[c=="isover"?"_over":"_out"].call(this,d);if(j&&c=="isout"){j.isout=0;j.isover=1;j._over.call(j,d);}});}};})(jQuery);
(function(e){e.widget("ui.resizable",e.extend({},e.ui.mouse,{_init:function(){var c=this,m=this.options;this.element.addClass("ui-resizable");
e.extend(this,{_aspectRatio:!!(m.aspectRatio),aspectRatio:m.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:m.helper||m.ghost||m.animate?m.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"))&&e.browser.opera){this.element.css({position:"relative",top:"auto",left:"auto"});
}this.element.wrap(e('<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=m.handles||(!e(".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 n=this.handles.split(",");
this.handles={};for(var b=0;b<n.length;b++){var a=e.trim(n[b]),i="ui-resizable-"+a;var l=e('<div class="ui-resizable-handle '+i+'"></div>');
if(/sw|se|ne|nw/.test(a)){l.css({zIndex:++m.zIndex});}if("se"==a){l.addClass("ui-icon ui-icon-gripsmall-diagonal-se");}this.handles[a]=".ui-resizable-"+a;
this.element.append(l);}}this._renderAxis=function(h){h=h||this.element;for(var k in this.handles){if(this.handles[k].constructor==String){this.handles[k]=e(this.handles[k],this.element).show();
}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var g=e(this.handles[k],this.element),j=0;
j=/sw|ne|nw|se|n|s/.test(k)?g.outerHeight():g.outerWidth();var q=["padding",/ne|nw|n/.test(k)?"Top":/se|sw|s/.test(k)?"Bottom":/^e$/.test(k)?"Right":"Left"].join("");
h.css(q,j);this._proportionallyResize();}if(!e(this.handles[k]).length){continue;}}};this._renderAxis(this.element);this._handles=e(".ui-resizable-handle",this.element).disableSelection();
this._handles.mouseover(function(){if(!c.resizing){if(this.className){var g=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);
}c.axis=g&&g[1]?g[1]:"se";}});if(m.autoHide){this._handles.hide();e(this.element).addClass("ui-resizable-autohide").hover(function(){e(this).removeClass("ui-resizable-autohide");
c._handles.show();},function(){if(!c.resizing){e(this).addClass("ui-resizable-autohide");c._handles.hide();}});}this._mouseInit();
},destroy:function(){this._mouseDestroy();var a=function(c){e(c).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove();
};if(this.elementIsWrapper){a(this.element);var b=this.element;b.parent().append(this.originalElement.css({position:b.css("position"),width:b.outerWidth(),height:b.outerHeight(),top:b.css("top"),left:b.css("left")})).end().remove();
}this.originalElement.css("resize",this.originalResizeStyle);a(this.originalElement);},_mouseCapture:function(b){var c=false;
for(var a in this.handles){if(e(this.handles[a])[0]==b.target){c=true;}}return this.options.disabled||!!c;},_mouseStart:function(n){var b=this.options,c=this.element.position(),k=this.element;
this.resizing=true;this.documentScroll={top:e(document).scrollTop(),left:e(document).scrollLeft()};if(k.is(".ui-draggable")||(/absolute/).test(k.css("position"))){k.css({position:"absolute",top:c.top,left:c.left});
}if(e.browser.opera&&(/relative/).test(k.css("position"))){k.css({position:"relative",top:"auto",left:"auto"});}this._renderProxy();
var m=d(this.helper.css("left")),a=d(this.helper.css("top"));if(b.containment){m+=e(b.containment).scrollLeft()||0;a+=e(b.containment).scrollTop()||0;
}this.offset=this.helper.offset();this.position={left:m,top:a};this.size=this._helper?{width:k.outerWidth(),height:k.outerHeight()}:{width:k.width(),height:k.height()};
this.originalSize=this._helper?{width:k.outerWidth(),height:k.outerHeight()}:{width:k.width(),height:k.height()};this.originalPosition={left:m,top:a};
this.sizeDiff={width:k.outerWidth()-k.width(),height:k.outerHeight()-k.height()};this.originalMousePosition={left:n.pageX,top:n.pageY};
this.aspectRatio=(typeof b.aspectRatio=="number")?b.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);var l=e(".ui-resizable-"+this.axis).css("cursor");
e("body").css("cursor",l=="auto"?this.axis+"-resize":l);k.addClass("ui-resizable-resizing");this._propagate("start",n);return true;
},_mouseDrag:function(A){var z=this.helper,y=this.options,w={},b=this,u=this.originalMousePosition,x=this.axis;var c=(A.pageX-u.left)||0,v=(A.pageY-u.top)||0;
var t=this._change[x];if(!t){return false;}var s=t.apply(this,[A,c,v]),o=e.browser.msie&&e.browser.version<7,a=this.sizeDiff;
if(this._aspectRatio||A.shiftKey){s=this._updateRatio(s,A);}s=this._respectSize(s,A);this._propagate("resize",A);z.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",A,this.ui());
return false;},_mouseStop:function(t){this.resizing=false;var n=this.options,p=this;if(this._helper){var s=this._proportionallyResizeElements,u=s.length&&(/textarea/i).test(s[0].nodeName),a=u&&e.ui.hasScroll(s[0],"left")?0:p.sizeDiff.height,b=u?0:p.sizeDiff.width;
var q={width:(p.size.width-b),height:(p.size.height-a)},o=(parseInt(p.element.css("left"),10)+(p.position.left-p.originalPosition.left))||null,c=(parseInt(p.element.css("top"),10)+(p.position.top-p.originalPosition.top))||null;
if(!n.animate){this.element.css(e.extend(q,{top:c,left:o}));}p.helper.height(p.size.height);p.helper.width(p.size.width);
if(this._helper&&!n.animate){this._proportionallyResize();}}e("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");
this._propagate("stop",t);if(this._helper){this.helper.remove();}return false;},_updateCache:function(a){var b=this.options;
this.offset=this.helper.offset();if(f(a.left)){this.position.left=a.left;}if(f(a.top)){this.position.top=a.top;}if(f(a.height)){this.size.height=a.height;
}if(f(a.width)){this.size.width=a.width;}},_updateRatio:function(a,l){var b=this.options,c=this.position,k=this.size,j=this.axis;
if(a.height){a.width=(k.height*this.aspectRatio);}else{if(a.width){a.height=(k.width/this.aspectRatio);}}if(j=="sw"){a.left=c.left+(k.width-a.width);
a.top=null;}if(j=="nw"){a.top=c.top+(k.height-a.height);a.left=c.left+(k.width-a.width);}return a;},_respectSize:function(v,B){var x=this.helper,w=this.options,o=this._aspectRatio||B.shiftKey,c=this.axis,b=f(v.width)&&w.maxWidth&&(w.maxWidth<v.width),z=f(v.height)&&w.maxHeight&&(w.maxHeight<v.height),C=f(v.width)&&w.minWidth&&(w.minWidth>v.width),a=f(v.height)&&w.minHeight&&(w.minHeight>v.height);
if(C){v.width=w.minWidth;}if(a){v.height=w.minHeight;}if(b){v.width=w.maxWidth;}if(z){v.height=w.maxHeight;}var t=this.originalPosition.left+this.originalSize.width,y=this.position.top+this.size.height;
var u=/sw|nw|w/.test(c),D=/nw|ne|n/.test(c);if(C&&u){v.left=t-w.minWidth;}if(b&&u){v.left=t-w.maxWidth;}if(a&&D){v.top=y-w.minHeight;
}if(z&&D){v.top=y-w.maxHeight;}var A=!v.width&&!v.height;if(A&&!v.left&&v.top){v.top=null;}else{if(A&&!v.top&&v.left){v.left=null;
}}return v;},_proportionallyResize:function(){var k=this.options;if(!this._proportionallyResizeElements.length){return;}var l=this.helper||this.element;
for(var c=0;c<this._proportionallyResizeElements.length;c++){var a=this._proportionallyResizeElements[c];if(!this.borderDif){var b=[a.css("borderTopWidth"),a.css("borderRightWidth"),a.css("borderBottomWidth"),a.css("borderLeftWidth")],i=[a.css("paddingTop"),a.css("paddingRight"),a.css("paddingBottom"),a.css("paddingLeft")];
this.borderDif=e.map(b,function(o,j){var h=parseInt(o,10)||0,g=parseInt(i[j],10)||0;return h+g;});}if(e.browser.msie&&!(!(e(l).is(":hidden")||e(l).parents(":hidden").length))){continue;
}a.css({height:(l.height()-this.borderDif[0]-this.borderDif[2])||0,width:(l.width()-this.borderDif[1]-this.borderDif[3])||0});
}},_renderProxy:function(){var c=this.element,a=this.options;this.elementOffset=c.offset();if(this._helper){this.helper=this.helper||e('<div style="overflow:hidden;"></div>');
var b=e.browser.msie&&e.browser.version<7,j=(b?1:0),i=(b?2:-1);this.helper.addClass(this._helper).css({width:this.element.outerWidth()+i,height:this.element.outerHeight()+i,position:"absolute",left:this.elementOffset.left-j+"px",top:this.elementOffset.top-j+"px",zIndex:++a.zIndex});
this.helper.appendTo("body").disableSelection();}else{this.helper=this.element;}},_change:{e:function(c,b,a){return{width:this.originalSize.width+b};
},w:function(a,c,b){var j=this.options,l=this.originalSize,k=this.originalPosition;return{left:k.left+c,width:l.width-c};
},n:function(a,c,b){var j=this.options,l=this.originalSize,k=this.originalPosition;return{top:k.top+b,height:l.height-b};
},s:function(c,b,a){return{height:this.originalSize.height+a};},se:function(c,b,a){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[c,b,a]));
},sw:function(c,b,a){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[c,b,a]));},ne:function(c,b,a){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[c,b,a]));
},nw:function(c,b,a){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[c,b,a]));}},_propagate:function(b,a){e.ui.plugin.call(this,b,[a,this.ui()]);
(b!="resize"&&this._trigger(b,a,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};
}}));e.extend(e.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}});
e.ui.plugin.add("resizable","alsoResize",{start:function(c,h){var b=e(this).data("resizable"),a=b.options;_store=function(g){e(g).each(function(){e(this).data("resizable-alsoresize",{width:parseInt(e(this).width(),10),height:parseInt(e(this).height(),10),left:parseInt(e(this).css("left"),10),top:parseInt(e(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{e.each(a.alsoResize,function(g,j){_store(g);});}}else{_store(a.alsoResize);}},resize:function(n,l){var a=e(this).data("resizable"),m=a.options,o=a.originalSize,c=a.originalPosition;
var b={height:(a.size.height-o.height)||0,width:(a.size.width-o.width)||0,top:(a.position.top-c.top)||0,left:(a.position.left-c.left)||0},p=function(g,h){e(g).each(function(){var j=e(this),k=e(this).data("resizable-alsoresize"),s={},i=h&&h.length?h:["width","height","top","left"];
e.each(i||["width","height","top","left"],function(q,v){var u=(k[v]||0)+(b[v]||0);if(u&&u>=0){s[v]=u||null;}});if(/relative/.test(j.css("position"))&&e.browser.opera){a._revertToRelativePosition=true;
j.css({position:"absolute",top:"auto",left:"auto"});}j.css(s);});};if(typeof(m.alsoResize)=="object"&&!m.alsoResize.nodeType){e.each(m.alsoResize,function(g,h){p(g,h);
});}else{p(m.alsoResize);}},stop:function(b,c){var a=e(this).data("resizable");if(a._revertToRelativePosition&&e.browser.opera){a._revertToRelativePosition=false;
el.css({position:"relative"});}e(this).removeData("resizable-alsoresize-start");}});e.ui.plugin.add("resizable","animate",{stop:function(o,t){var q=e(this).data("resizable"),p=q.options;
var v=q._proportionallyResizeElements,w=v.length&&(/textarea/i).test(v[0].nodeName),a=w&&e.ui.hasScroll(v[0],"left")?0:q.sizeDiff.height,c=w?0:q.sizeDiff.width;
var u={width:(q.size.width-c),height:(q.size.height-a)},b=(parseInt(q.element.css("left"),10)+(q.position.left-q.originalPosition.left))||null,s=(parseInt(q.element.css("top"),10)+(q.position.top-q.originalPosition.top))||null;
q.element.animate(e.extend(u,s&&b?{top:s,left:b}:{}),{duration:p.animateDuration,easing:p.animateEasing,step:function(){var g={width:parseInt(q.element.css("width"),10),height:parseInt(q.element.css("height"),10),top:parseInt(q.element.css("top"),10),left:parseInt(q.element.css("left"),10)};
if(v&&v.length){e(v[0]).css({width:g.width,height:g.height});}q._updateCache(g);q._propagate("resize",o);}});}});e.ui.plugin.add("resizable","containment",{start:function(a,c){var b=e(this).data("resizable"),v=b.options,t=b.element;
var z=v.containment,p=(z instanceof e)?z.get(0):(/parent/.test(z))?t.parent().get(0):z;if(!p){return;}b.containerElement=e(p);
if(/document/.test(z)||z==document){b.containerOffset={left:0,top:0};b.containerPosition={left:0,top:0};b.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight};
}else{var y=e(p),u=[];e(["Top","Right","Left","Bottom"]).each(function(g,h){u[g]=d(y.css("padding"+h));});b.containerOffset=y.offset();
b.containerPosition=y.position();b.containerSize={height:(y.innerHeight()-u[3]),width:(y.innerWidth()-u[1])};var w=b.containerOffset,B=b.containerSize.height,x=b.containerSize.width,A=(e.ui.hasScroll(p,"left")?p.scrollWidth:x),o=(e.ui.hasScroll(p)?p.scrollHeight:B);
b.parentData={element:p,left:w.left,top:w.top,width:A,height:o};}},resize:function(B,c){var b=e(this).data("resizable"),w=b.options,a=b.containerSize,y=b.containerOffset,z=b.size,A=b.position,o=b._aspectRatio||B.shiftKey,D={top:0,left:0},C=b.containerElement;
if(C[0]!=document&&(/static/).test(C.css("position"))){D=y;}if(A.left<(b._helper?y.left:0)){b.size.width=b.size.width+(b._helper?(b.position.left-y.left):(b.position.left-D.left));
if(o){b.size.height=b.size.width/w.aspectRatio;}b.position.left=w.helper?y.left:0;}if(A.top<(b._helper?y.top:0)){b.size.height=b.size.height+(b._helper?(b.position.top-y.top):b.position.top);
if(o){b.size.width=b.size.height*w.aspectRatio;}b.position.top=b._helper?y.top:0;}b.offset.left=b.parentData.left+b.position.left;
b.offset.top=b.parentData.top+b.position.top;var v=Math.abs((b._helper?b.offset.left-D.left:(b.offset.left-D.left))+b.sizeDiff.width),t=Math.abs((b._helper?b.offset.top-D.top:(b.offset.top-y.top))+b.sizeDiff.height);
var u=b.containerElement.get(0)==b.element.parent().get(0),x=/relative|absolute/.test(b.containerElement.css("position"));
if(u&&x){v-=b.parentData.left;}if(v+b.size.width>=b.parentData.width){b.size.width=b.parentData.width-v;if(o){b.size.height=b.size.width/b.aspectRatio;
}}if(t+b.size.height>=b.parentData.height){b.size.height=b.parentData.height-t;if(o){b.size.width=b.size.height*b.aspectRatio;
}}},stop:function(a,v){var b=e(this).data("resizable"),w=b.options,o=b.position,u=b.containerOffset,y=b.containerPosition,x=b.containerElement;
var s=e(b.helper),c=s.offset(),t=s.outerWidth()-b.sizeDiff.width,h=s.outerHeight()-b.sizeDiff.height;if(b._helper&&!w.animate&&(/relative/).test(x.css("position"))){e(this).css({left:c.left-y.left-u.left,width:t,height:h});
}if(b._helper&&!w.animate&&(/static/).test(x.css("position"))){e(this).css({left:c.left-y.left-u.left,width:t,height:h});
}}});e.ui.plugin.add("resizable","ghost",{start:function(j,a){var b=e(this).data("resizable"),c=b.options,i=b.size;b.ghost=b.originalElement.clone();
b.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 c.ghost=="string"?c.ghost:"");
b.ghost.appendTo(b.helper);},resize:function(c,h){var b=e(this).data("resizable"),a=b.options;if(b.ghost){b.ghost.css({position:"relative",height:b.size.height,width:b.size.width});
}},stop:function(c,h){var b=e(this).data("resizable"),a=b.options;if(b.ghost&&b.helper){b.helper.get(0).removeChild(b.ghost.get(0));
}}});e.ui.plugin.add("resizable","grid",{resize:function(w,s){var q=e(this).data("resizable"),v=q.options,b=q.size,o=q.originalSize,p=q.originalPosition,t=q.axis,c=v._aspectRatio||w.shiftKey;
v.grid=typeof v.grid=="number"?[v.grid,v.grid]:v.grid;var u=Math.round((b.width-o.width)/(v.grid[0]||1))*(v.grid[0]||1),a=Math.round((b.height-o.height)/(v.grid[1]||1))*(v.grid[1]||1);
if(/^(se|s|e)$/.test(t)){q.size.width=o.width+u;q.size.height=o.height+a;}else{if(/^(ne)$/.test(t)){q.size.width=o.width+u;
q.size.height=o.height+a;q.position.top=p.top-a;}else{if(/^(sw)$/.test(t)){q.size.width=o.width+u;q.size.height=o.height+a;
q.position.left=p.left-u;}else{q.size.width=o.width+u;q.size.height=o.height+a;q.position.top=p.top-a;q.position.left=p.left-u;
}}}}});var d=function(a){return parseInt(a,10)||0;};var f=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 c=b(this);var f=c.offset();b.data(this,"selectable-item",{element:this,$element:c,left:f.left,top:f.top,right:f.left+c.outerWidth(),bottom:f.top+c.outerHeight(),startselected:false,selected:c.hasClass("ui-selected"),selecting:c.hasClass("ui-selecting"),unselecting:c.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(a){var e=this;this.opos=[a.pageX,a.pageY];if(this.options.disabled){return;}var f=this.options;
this.selectees=b(f.filter,this.element[0]);this._trigger("start",a);b(f.appendTo).append(this.helper);this.helper.css({"z-index":100,position:"absolute",left:a.clientX,top:a.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(!a.metaKey){c.$element.removeClass("ui-selected");c.selected=false;c.$element.addClass("ui-unselecting");
c.unselecting=true;e._trigger("unselecting",a,{unselecting:c.element});}});b(a.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;
e._trigger("selecting",a,{selecting:c.element});return false;}});},_mouseDrag:function(k){var m=this;this.dragged=true;if(this.options.disabled){return;
}var a=this.options;var p=this.opos[0],j=this.opos[1],l=k.pageX,o=k.pageY;if(p>l){var n=l;l=p;p=n;}if(j>o){var n=o;o=j;j=n;
}this.helper.css({left:p,top:j,width:l-p,height:o-j});this.selectees.each(function(){var c=b.data(this,"selectable-item");
if(!c||c.element==m.element[0]){return;}var d=false;if(a.tolerance=="touch"){d=(!(c.left>l||c.right<p||c.top>o||c.bottom<j));
}else{if(a.tolerance=="fit"){d=(c.left>p&&c.right<l&&c.top>j&&c.bottom<o);}}if(d){if(c.selected){c.$element.removeClass("ui-selected");
c.selected=false;}if(c.unselecting){c.$element.removeClass("ui-unselecting");c.unselecting=false;}if(!c.selecting){c.$element.addClass("ui-selecting");
c.selecting=true;m._trigger("selecting",k,{selecting:c.element});}}else{if(c.selecting){if(k.metaKey&&c.startselected){c.$element.removeClass("ui-selecting");
c.selecting=false;c.$element.addClass("ui-selected");c.selected=true;}else{c.$element.removeClass("ui-selecting");c.selecting=false;
if(c.startselected){c.$element.addClass("ui-unselecting");c.unselecting=true;}m._trigger("unselecting",k,{unselecting:c.element});
}}if(c.selected){if(!k.metaKey&&!c.startselected){c.$element.removeClass("ui-selected");c.selected=false;c.$element.addClass("ui-unselecting");
c.unselecting=true;m._trigger("unselecting",k,{unselecting:c.element});}}}});return false;},_mouseStop:function(a){var e=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;e._trigger("unselected",a,{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;e._trigger("selected",a,{selected:c.element});});this._trigger("stop",a);
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(i,l){if(this.reverting){return false;
}if(this.options.disabled||this.options.type=="static"){return false;}this._refreshItems(i);var h=null,k=this,j=b(i.target).parents().each(function(){if(b.data(this,"sortable-item")==k){h=b(this);
return false;}});if(b.data(i.target,"sortable-item")==k){h=b(i.target);}if(!h){return false;}if(this.options.handle&&!l){var a=false;
b(this.options.handle,h).find("*").andSelf().each(function(){if(this==i.target){a=true;}});if(!a){return false;}}this.currentItem=h;
this._removeCurrentsFromItems();return true;},_mouseStart:function(i,l,j){var a=this.options,k=this;this.currentContainer=this;
this.refreshPositions();this.helper=this._createHelper(i);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:i.pageX-this.offset.left,top:i.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});
this.originalPosition=this._generatePosition(i);this.originalPageX=i.pageX;this.originalPageY=i.pageY;if(a.cursorAt){this._adjustOffsetFromHelper(a.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(a.containment){this._setContainment();}if(a.cursor){if(b("body").css("cursor")){this._storedCursor=b("body").css("cursor");
}b("body").css("cursor",a.cursor);}if(a.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity");
}this.helper.css("opacity",a.opacity);}if(a.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex");
}this.helper.css("zIndex",a.zIndex);}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){this.overflowOffset=this.scrollParent.offset();
}this._trigger("start",i,this._uiHash());if(!this._preserveHelperProportions){this._cacheHelperProportions();}if(!j){for(var h=this.containers.length-1;
h>=0;h--){this.containers[h]._trigger("activate",i,k._uiHash(this));}}if(b.ui.ddmanager){b.ui.ddmanager.current=this;}if(b.ui.ddmanager&&!a.dropBehaviour){b.ui.ddmanager.prepareOffsets(this,i);
}this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(i);return true;},_mouseDrag:function(n){this.position=this._generatePosition(n);
this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs;}if(this.options.scroll){var a=this.options,l=false;
if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-n.pageY<a.scrollSensitivity){this.scrollParent[0].scrollTop=l=this.scrollParent[0].scrollTop+a.scrollSpeed;
}else{if(n.pageY-this.overflowOffset.top<a.scrollSensitivity){this.scrollParent[0].scrollTop=l=this.scrollParent[0].scrollTop-a.scrollSpeed;
}}if((this.overflowOffset.left+this.scrollParent[0].offsetWidth)-n.pageX<a.scrollSensitivity){this.scrollParent[0].scrollLeft=l=this.scrollParent[0].scrollLeft+a.scrollSpeed;
}else{if(n.pageX-this.overflowOffset.left<a.scrollSensitivity){this.scrollParent[0].scrollLeft=l=this.scrollParent[0].scrollLeft-a.scrollSpeed;
}}}else{if(n.pageY-b(document).scrollTop()<a.scrollSensitivity){l=b(document).scrollTop(b(document).scrollTop()-a.scrollSpeed);
}else{if(b(window).height()-(n.pageY-b(document).scrollTop())<a.scrollSensitivity){l=b(document).scrollTop(b(document).scrollTop()+a.scrollSpeed);
}}if(n.pageX-b(document).scrollLeft()<a.scrollSensitivity){l=b(document).scrollLeft(b(document).scrollLeft()-a.scrollSpeed);
}else{if(b(window).width()-(n.pageX-b(document).scrollLeft())<a.scrollSensitivity){l=b(document).scrollLeft(b(document).scrollLeft()+a.scrollSpeed);
}}}if(l!==false&&b.ui.ddmanager&&!a.dropBehaviour){b.ui.ddmanager.prepareOffsets(this,n);}}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 i=this.items.length-1;i>=0;i--){var j=this.items[i],m=j.item[0],k=this._intersectsWithPointer(j);if(!k){continue;
}if(m!=this.currentItem[0]&&this.placeholder[k==1?"next":"prev"]()[0]!=m&&!b.ui.contains(this.placeholder[0],m)&&(this.options.type=="semi-dynamic"?!b.ui.contains(this.element[0],m):true)){this.direction=k==1?"down":"up";
if(this.options.tolerance=="pointer"||this._intersectsWithSides(j)){this._rearrange(n,j);}else{break;}this._trigger("change",n,this._uiHash());
break;}}this._contactContainers(n);if(b.ui.ddmanager){b.ui.ddmanager.drag(this,n);}this._trigger("sort",n,this._uiHash());
this.lastPositionAbs=this.positionAbs;return false;},_mouseStop:function(h,a){if(!h){return;}if(b.ui.ddmanager&&!this.options.dropBehaviour){b.ui.ddmanager.drop(this,h);
}if(this.options.revert){var g=this;var f=g.placeholder.offset();g.reverting=true;b(this.helper).animate({left:f.left-this.offset.parent.left-g.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:f.top-this.offset.parent.top-g.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){g._clear(h);
});}else{this._clear(h,a);}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(a){var e=this._getItemsAsjQuery(a&&a.connected);
var f=[];a=a||{};b(e).each(function(){var c=(b(a.item||this).attr(a.attribute||"id")||"").match(a.expression||(/(.+)[-=_](.+)/));
if(c){f.push((a.key||c[1]+"[]")+"="+(a.key&&a.expression?c[1]:c[2]));}});return f.join("&");},toArray:function(a){var e=this._getItemsAsjQuery(a&&a.connected);
var f=[];a=a||{};e.each(function(){f.push(b(a.item||this).attr(a.attribute||"id")||"");});return f;},_intersectsWith:function(v){var a=this.positionAbs.left,z=a+this.helperProportions.width,p=this.positionAbs.top,l=p+this.helperProportions.height;
var x=v.left,w=x+v.width,t=v.top,s=t+v.height;var u=this.offset.click.top,q=this.offset.click.left;var y=(p+u)>t&&(p+u)<s&&(a+q)>x&&(a+q)<w;
if(this.options.tolerance=="pointer"||this.options.forcePointerForContainers||(this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>v[this.floating?"width":"height"])){return y;
}else{return(x<a+(this.helperProportions.width/2)&&z-(this.helperProportions.width/2)<w&&t<p+(this.helperProportions.height/2)&&l-(this.helperProportions.height/2)<s);
}},_intersectsWithPointer:function(h){var i=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,h.top,h.height),k=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,h.left,h.width),a=i&&k,j=this._getDragVerticalDirection(),l=this._getDragHorizontalDirection();
if(!a){return false;}return this.floating?(((l&&l=="right")||j=="down")?2:1):(j&&(j=="down"?2:1));},_intersectsWithSides:function(g){var i=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,g.top+(g.height/2),g.height),a=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,g.left+(g.width/2),g.width),h=this._getDragVerticalDirection(),j=this._getDragHorizontalDirection();
if(this.floating&&j){return((j=="right"&&a)||(j=="left"&&!a));}else{return h&&((h=="down"&&i)||(h=="up"&&!i));}},_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(n){var m=this;var q=[];
var a=[];var j=this._connectWith();if(j&&n){for(var s=j.length-1;s>=0;s--){var i=b(j[s]);for(var o=i.length-1;o>=0;o--){var p=b.data(i[o],"sortable");
if(p&&p!=this&&!p.options.disabled){a.push([b.isFunction(p.options.items)?p.options.items.call(p.element):b(p.options.items,p.element).not(".ui-sortable-helper"),p]);
}}}}a.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 s=a.length-1;s>=0;s--){a[s][0].each(function(){q.push(this);});}return b(q);},_removeCurrentsFromItems:function(){var a=this.currentItem.find(":data(sortable-item)");
for(var f=0;f<this.items.length;f++){for(var e=0;e<a.length;e++){if(a[e]==this.items[f].item[0]){this.items.splice(f,1);}}}},_refreshItems:function(w){this.items=[];
this.containers=[this];var q=this.items;var i=this;var y=[[b.isFunction(this.options.items)?this.options.items.call(this.element[0],w,{item:this.currentItem}):b(this.options.items,this.element),this]];
var u=this._connectWith();if(u){for(var a=u.length-1;a>=0;a--){var v=b(u[a]);for(var A=v.length-1;A>=0;A--){var z=b.data(v[A],"sortable");
if(z&&z!=this&&!z.options.disabled){y.push([b.isFunction(z.options.items)?z.options.items.call(z.element[0],w,{item:this.currentItem}):b(z.options.items,z.element),z]);
this.containers.push(z);}}}}for(var a=y.length-1;a>=0;a--){var j=y[a][1];var x=y[a][0];for(var A=0,s=x.length;A<s;A++){var t=b(x[A]);
t.data("sortable-item",j);q.push({item:t,instance:j,width:0,height:0,left:0,top:0});}}},refreshPositions:function(h){if(this.offsetParent&&this.helper){this.offset.parent=this._getParentOffset();
}for(var a=this.items.length-1;a>=0;a--){var g=this.items[a];if(g.instance!=this.currentContainer&&this.currentContainer&&g.item[0]!=this.currentItem[0]){continue;
}var i=this.options.toleranceElement?b(this.options.toleranceElement,g.item):g.item;if(!h){g.width=i.outerWidth();g.height=i.outerHeight();
}var j=i.offset();g.left=j.left;g.top=j.top;}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this);
}else{for(var a=this.containers.length-1;a>=0;a--){var j=this.containers[a].element.offset();this.containers[a].containerCache.left=j.left;
this.containers[a].containerCache.top=j.top;this.containers[a].containerCache.width=this.containers[a].element.outerWidth();
this.containers[a].containerCache.height=this.containers[a].element.outerHeight();}}},_createPlaceholder:function(a){var g=a||this,f=g.options;
if(!f.placeholder||f.placeholder.constructor==String){var h=f.placeholder;f.placeholder={element:function(){var c=b(document.createElement(g.currentItem[0].nodeName)).addClass(h||g.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(g.currentItem.innerHeight()-parseInt(g.currentItem.css("paddingTop")||0,10)-parseInt(g.currentItem.css("paddingBottom")||0,10));
}if(!c.width()){c.width(g.currentItem.innerWidth()-parseInt(g.currentItem.css("paddingLeft")||0,10)-parseInt(g.currentItem.css("paddingRight")||0,10));
}}};}g.placeholder=b(f.placeholder.element.call(g.element,g.currentItem));g.currentItem.after(g.placeholder);f.placeholder.update(g,g.placeholder);
},_contactContainers:function(i){for(var m=this.containers.length-1;m>=0;m--){if(this._intersectsWith(this.containers[m].containerCache)){if(!this.containers[m].containerCache.over){if(this.currentContainer!=this.containers[m]){var a=10000;
var j=null;var k=this.positionAbs[this.containers[m].floating?"left":"top"];for(var l=this.items.length-1;l>=0;l--){if(!b.ui.contains(this.containers[m].element[0],this.items[l].item[0])){continue;
}var n=this.items[l][this.containers[m].floating?"left":"top"];if(Math.abs(n-k)<a){a=Math.abs(n-k);j=this.items[l];}}if(!j&&!this.options.dropOnEmpty){continue;
}this.currentContainer=this.containers[m];j?this._rearrange(i,j,null,true):this._rearrange(i,null,this.containers[m].element,true);
this._trigger("change",i,this._uiHash());this.containers[m]._trigger("change",i,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);
}this.containers[m]._trigger("over",i,this._uiHash(this));this.containers[m].containerCache.over=1;}}else{if(this.containers[m].containerCache.over){this.containers[m]._trigger("out",i,this._uiHash(this));
this.containers[m].containerCache.over=0;}}}},_createHelper:function(f){var a=this.options;var e=b.isFunction(a.helper)?b(a.helper.apply(this.element[0],[f,this.currentItem])):(a.helper=="clone"?this.currentItem.clone():this.currentItem);
if(!e.parents("body").length){b(a.appendTo!="parent"?a.appendTo:this.currentItem[0].parentNode)[0].appendChild(e[0]);}if(e[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(e[0].style.width==""||a.forceHelperSize){e.width(this.currentItem.width());}if(e[0].style.height==""||a.forceHelperSize){e.height(this.currentItem.height());
}return e;},_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 a=b(f.containment).offset();var g=(b(h).css("overflow")!="hidden");
this.containment=[a.left+(parseInt(b(h).css("borderLeftWidth"),10)||0)+(parseInt(b(h).css("paddingLeft"),10)||0)-this.margins.left,a.top+(parseInt(b(h).css("borderTopWidth"),10)||0)+(parseInt(b(h).css("paddingTop"),10)||0)-this.margins.top,a.left+(g?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,a.top+(g?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(l,a){if(!a){a=this.position;}var k=l=="absolute"?1:-1;var d=this.options,j=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(j[0].tagName);
return{top:(a.top+this.offset.relative.top*k+this.offset.parent.top*k-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(i?0:j.scrollTop()))*k)),left:(a.left+this.offset.relative.left*k+this.offset.parent.left*k-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():i?0:j.scrollLeft())*k))};
},_generatePosition:function(a){var j=this.options,l=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,k=(/(html|body)/i).test(l[0].tagName);
if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset();
}var p=a.pageX;var m=a.pageY;if(this.originalPosition){if(this.containment){if(a.pageX-this.offset.click.left<this.containment[0]){p=this.containment[0]+this.offset.click.left;
}if(a.pageY-this.offset.click.top<this.containment[1]){m=this.containment[1]+this.offset.click.top;}if(a.pageX-this.offset.click.left>this.containment[2]){p=this.containment[2]+this.offset.click.left;
}if(a.pageY-this.offset.click.top>this.containment[3]){m=this.containment[3]+this.offset.click.top;}}if(j.grid){var o=this.originalPageY+Math.round((m-this.originalPageY)/j.grid[1])*j.grid[1];
m=this.containment?(!(o-this.offset.click.top<this.containment[1]||o-this.offset.click.top>this.containment[3])?o:(!(o-this.offset.click.top<this.containment[1])?o-j.grid[1]:o+j.grid[1])):o;
var n=this.originalPageX+Math.round((p-this.originalPageX)/j.grid[0])*j.grid[0];p=this.containment?(!(n-this.offset.click.left<this.containment[0]||n-this.offset.click.left>this.containment[2])?n:(!(n-this.offset.click.left<this.containment[0])?n-j.grid[0]:n+j.grid[0])):n;
}}return{top:(m-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():(k?0:l.scrollTop())))),left:(p-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():k?0:l.scrollLeft())))};
},_rearrange:function(a,l,k,i){k?k[0].appendChild(this.placeholder[0]):l.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction=="down"?l.item[0]:l.item[0].nextSibling));
this.counter=this.counter?++this.counter:1;var h=this,j=this.counter;window.setTimeout(function(){if(j==h.counter){h.refreshPositions(!i);
}},0);},_clear:function(a,g){this.reverting=false;var j=[],h=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 i in this._storedCSS){if(this._storedCSS[i]=="auto"||this._storedCSS[i]=="static"){this._storedCSS[i]="";
}}this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper");}else{this.currentItem.show();}if(this.fromOutside&&!g){j.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])&&!g){j.push(function(c){this._trigger("update",c,this._uiHash());
});}if(!b.ui.contains(this.element[0],this.currentItem[0])){if(!g){j.push(function(c){this._trigger("remove",c,this._uiHash());
});}for(var i=this.containers.length-1;i>=0;i--){if(b.ui.contains(this.containers[i].element[0],this.currentItem[0])&&!g){j.push((function(c){return function(d){c._trigger("receive",d,this._uiHash(this));
};}).call(this,this.containers[i]));j.push((function(c){return function(d){c._trigger("update",d,this._uiHash(this));};}).call(this,this.containers[i]));
}}}for(var i=this.containers.length-1;i>=0;i--){if(!g){j.push((function(c){return function(d){c._trigger("deactivate",d,this._uiHash(this));
};}).call(this,this.containers[i]));}if(this.containers[i].containerCache.over){j.push((function(c){return function(d){c._trigger("out",d,this._uiHash(this));
};}).call(this,this.containers[i]));this.containers[i].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(!g){this._trigger("beforeStop",a,this._uiHash());for(var i=0;i<j.length;
i++){j[i].call(this,a);}this._trigger("stop",a,this._uiHash());}return false;}if(!g){this._trigger("beforeStop",a,this._uiHash());
}this.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(this.helper[0]!=this.currentItem[0]){this.helper.remove();
}this.helper=null;if(!g){for(var i=0;i<j.length;i++){j[i].call(this,a);}this._trigger("stop",a,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(f){f.effects={version:"1.7.2",save:function(a,b){for(var c=0;c<b.length;c++){if(b[c]!==null){a.data("ec.storage."+b[c],a[0].style[b[c]]);
}}},restore:function(a,b){for(var c=0;c<b.length;c++){if(b[c]!==null){a.css(b[c],a.data("ec.storage."+b[c]));}}},setMode:function(b,a){if(a=="toggle"){a=b.is(":hidden")?"show":"hide";
}return a;},getBaseline:function(a,b){var c,d;switch(a[0]){case"top":c=0;break;case"middle":c=0.5;break;case"bottom":c=1;
break;default:c=a[0]/b.height;}switch(a[1]){case"left":d=0;break;case"center":d=0.5;break;case"right":d=1;break;default:d=a[1]/b.width;
}return{x:d,y:c};},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper")){return e.parent();}var a={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 d=e.parent();if(e.css("position")=="static"){d.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";}d.css({position:e.css("position"),top:b,left:c,zIndex:e.css("z-index")}).show();
e.css({position:"relative",top:0,left:0});}d.css(a);return d;},removeWrapper:function(a){if(a.parent().is(".ui-effects-wrapper")){return a.parent().replaceWith(a);
}return a;},setTransition:function(a,b,d,c){c=c||{};f.each(b,function(l,e){unit=a.cssUnit(e);if(unit[0]>0){c[e]=unit[0]*d+unit[1];
}});return c;},animateClass:function(a,b,l,e){var d=(typeof l=="function"?l:(e?e:null));var c=(typeof l=="string"?l:null);
return this.each(function(){var s={};var n=f(this);var t=n.attr("style")||"";if(typeof t=="object"){t=t.cssText;}if(a.toggle){n.hasClass(a.toggle)?a.remove=a.toggle:a.add=a.toggle;
}var u=f.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(a.add){n.addClass(a.add);
}if(a.remove){n.removeClass(a.remove);}var v=f.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));
if(a.add){n.removeClass(a.add);}if(a.remove){n.addClass(a.remove);}for(var k in v){if(typeof v[k]!="function"&&v[k]&&k.indexOf("Moz")==-1&&k.indexOf("length")==-1&&v[k]!=u[k]&&(k.match(/color/i)||(!k.match(/color/i)&&!isNaN(parseInt(v[k],10))))&&(u.position!="static"||(u.position=="static"&&!k.match(/left|top|bottom|right/)))){s[k]=v[k];
}}n.animate(s,b,c,function(){if(typeof f(this).attr("style")=="object"){f(this).attr("style")["cssText"]="";f(this).attr("style")["cssText"]=t;
}else{f(this).attr("style",t);}if(a.add){f(this).addClass(a.add);}if(a.remove){f(this).removeClass(a.remove);}if(d){d.apply(this,arguments);
}});});}};function i(a,e){var b=a[1]&&a[1].constructor==Object?a[1]:{};if(e){b.mode=e;}var c=a[1]&&a[1].constructor!=Object?a[1]:(b.duration?b.duration:a[2]);
c=f.fx.off?0:typeof c==="number"?c:f.fx.speeds[c]||f.fx.speeds._default;var d=b.callback||(f.isFunction(a[1])&&a[1])||(f.isFunction(a[2])&&a[2])||(f.isFunction(a[3])&&a[3]);
return[a[0],b,c,d];}f.fn.extend({_show:f.fn.show,_hide:f.fn.hide,__toggle:f.fn.toggle,_addClass:f.fn.addClass,_removeClass:f.fn.removeClass,_toggleClass:f.fn.toggleClass,effect:function(a,d,b,c){return f.effects[a]?f.effects[a].call(this,{method:a,options:d||{},duration:b,callback:c}):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,i(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,i(arguments,"hide"));}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))||(f.isFunction(arguments[0])||typeof arguments[0]=="boolean")){return this.__toggle.apply(this,arguments);
}else{return this.effect.apply(this,i(arguments,"toggle"));}},addClass:function(a,d,b,c){return d?f.effects.animateClass.apply(this,[{add:a},d,b,c]):this._addClass(a);
},removeClass:function(a,d,b,c){return d?f.effects.animateClass.apply(this,[{remove:a},d,b,c]):this._removeClass(a);},toggleClass:function(a,d,b,c){return((typeof d!=="boolean")&&d)?f.effects.animateClass.apply(this,[{toggle:a},d,b,c]):this._toggleClass(a,d);
},morph:function(e,a,c,d,b){return f.effects.animateClass.apply(this,[{add:a,remove:e},c,d,b]);},switchClass:function(){return this.morph.apply(this,arguments);
},cssUnit:function(c){var a=this.css(c),b=[];f.each(["em","px","%","pt"],function(d,e){if(a.indexOf(e)>0){b=[parseFloat(a),e];
}});return b;}});f.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(a,b){f.fx.step[b]=function(c){if(c.state==0){c.start=g(c.elem,b);
c.end=h(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 h(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 j.transparent;}return j[f.trim(a).toLowerCase()];}function g(a,c){var b;do{b=f.curCSS(a,c);
if(b!=""&&b!="transparent"||f.nodeName(a,"body")){break;}c="backgroundColor";}while(a=a.parentNode);return h(b);}var j={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]};
f.easing.jswing=f.easing.swing;f.extend(f.easing,{def:"easeOutQuad",swing:function(a,b,e,d,c){return f.easing[f.easing.def](a,b,e,d,c);
},easeInQuad:function(a,b,e,d,c){return d*(b/=c)*b+e;},easeOutQuad:function(a,b,e,d,c){return -d*(b/=c)*(b-2)+e;},easeInOutQuad:function(a,b,e,d,c){if((b/=c/2)<1){return d/2*b*b+e;
}return -d/2*((--b)*(b-2)-1)+e;},easeInCubic:function(a,b,e,d,c){return d*(b/=c)*b*b+e;},easeOutCubic:function(a,b,e,d,c){return d*((b=b/c-1)*b*b+1)+e;
},easeInOutCubic:function(a,b,e,d,c){if((b/=c/2)<1){return d/2*b*b*b+e;}return d/2*((b-=2)*b*b+2)+e;},easeInQuart:function(a,b,e,d,c){return d*(b/=c)*b*b*b+e;
},easeOutQuart:function(a,b,e,d,c){return -d*((b=b/c-1)*b*b*b-1)+e;},easeInOutQuart:function(a,b,e,d,c){if((b/=c/2)<1){return d/2*b*b*b*b+e;
}return -d/2*((b-=2)*b*b*b-2)+e;},easeInQuint:function(a,b,e,d,c){return d*(b/=c)*b*b*b*b+e;},easeOutQuint:function(a,b,e,d,c){return d*((b=b/c-1)*b*b*b*b+1)+e;
},easeInOutQuint:function(a,b,e,d,c){if((b/=c/2)<1){return d/2*b*b*b*b*b+e;}return d/2*((b-=2)*b*b*b*b+2)+e;},easeInSine:function(a,b,e,d,c){return -d*Math.cos(b/c*(Math.PI/2))+d+e;
},easeOutSine:function(a,b,e,d,c){return d*Math.sin(b/c*(Math.PI/2))+e;},easeInOutSine:function(a,b,e,d,c){return -d/2*(Math.cos(Math.PI*b/c)-1)+e;
},easeInExpo:function(a,b,e,d,c){return(b==0)?e:d*Math.pow(2,10*(b/c-1))+e;},easeOutExpo:function(a,b,e,d,c){return(b==c)?e+d:d*(-Math.pow(2,-10*b/c)+1)+e;
},easeInOutExpo:function(a,b,e,d,c){if(b==0){return e;}if(b==c){return e+d;}if((b/=c/2)<1){return d/2*Math.pow(2,10*(b-1))+e;
}return d/2*(-Math.pow(2,-10*--b)+2)+e;},easeInCirc:function(a,b,e,d,c){return -d*(Math.sqrt(1-(b/=c)*b)-1)+e;},easeOutCirc:function(a,b,e,d,c){return d*Math.sqrt(1-(b=b/c-1)*b)+e;
},easeInOutCirc:function(a,b,e,d,c){if((b/=c/2)<1){return -d/2*(Math.sqrt(1-b*b)-1)+e;}return d/2*(Math.sqrt(1-(b-=2)*b)+1)+e;
},easeInElastic:function(p,d,o,n,e){var a=1.70158;var b=0;var c=n;if(d==0){return o;}if((d/=e)==1){return o+n;}if(!b){b=e*0.3;
}if(c<Math.abs(n)){c=n;var a=b/4;}else{var a=b/(2*Math.PI)*Math.asin(n/c);}return -(c*Math.pow(2,10*(d-=1))*Math.sin((d*e-a)*(2*Math.PI)/b))+o;
},easeOutElastic:function(p,d,o,n,e){var a=1.70158;var b=0;var c=n;if(d==0){return o;}if((d/=e)==1){return o+n;}if(!b){b=e*0.3;
}if(c<Math.abs(n)){c=n;var a=b/4;}else{var a=b/(2*Math.PI)*Math.asin(n/c);}return c*Math.pow(2,-10*d)*Math.sin((d*e-a)*(2*Math.PI)/b)+n+o;
},easeInOutElastic:function(p,d,o,n,e){var a=1.70158;var b=0;var c=n;if(d==0){return o;}if((d/=e/2)==2){return o+n;}if(!b){b=e*(0.3*1.5);
}if(c<Math.abs(n)){c=n;var a=b/4;}else{var a=b/(2*Math.PI)*Math.asin(n/c);}if(d<1){return -0.5*(c*Math.pow(2,10*(d-=1))*Math.sin((d*e-a)*(2*Math.PI)/b))+o;
}return c*Math.pow(2,-10*(d-=1))*Math.sin((d*e-a)*(2*Math.PI)/b)*0.5+n+o;},easeInBack:function(a,b,l,c,e,d){if(d==undefined){d=1.70158;
}return c*(b/=e)*b*((d+1)*b-d)+l;},easeOutBack:function(a,b,l,c,e,d){if(d==undefined){d=1.70158;}return c*((b=b/e-1)*b*((d+1)*b+d)+1)+l;
},easeInOutBack:function(a,b,l,c,e,d){if(d==undefined){d=1.70158;}if((b/=e/2)<1){return c/2*(b*b*(((d*=(1.525))+1)*b-d))+l;
}return c/2*((b-=2)*b*(((d*=(1.525))+1)*b+d)+2)+l;},easeInBounce:function(a,b,e,d,c){return d-f.easing.easeOutBounce(a,c-b,0,d,c)+e;
},easeOutBounce:function(a,b,e,d,c){if((b/=c)<(1/2.75)){return d*(7.5625*b*b)+e;}else{if(b<(2/2.75)){return d*(7.5625*(b-=(1.5/2.75))*b+0.75)+e;
}else{if(b<(2.5/2.75)){return d*(7.5625*(b-=(2.25/2.75))*b+0.9375)+e;}else{return d*(7.5625*(b-=(2.625/2.75))*b+0.984375)+e;
}}}},easeInOutBounce:function(a,b,e,d,c){if(b<c/2){return f.easing.easeInBounce(a,b*2,0,d,c)*0.5+e;}return f.easing.easeOutBounce(a,b*2-c,0,d,c)*0.5+d*0.5+e;
}});})(jQuery);(function($){$.toJSON=function(o){if(typeof(JSON)=="object"&&JSON.stringify){return JSON.stringify(o);}var type=typeof(o);
if(o===null){return"null";}if(type=="undefined"){return undefined;}if(type=="number"||type=="boolean"){return o+"";}if(type=="string"){return $.quoteString(o);
}if(type=="object"){if(typeof o.toJSON=="function"){return $.toJSON(o.toJSON());}if(o.constructor===Date){var month=o.getUTCMonth()+1;
if(month<10){month="0"+month;}var day=o.getUTCDate();if(day<10){day="0"+day;}var year=o.getUTCFullYear();var hours=o.getUTCHours();
if(hours<10){hours="0"+hours;}var minutes=o.getUTCMinutes();if(minutes<10){minutes="0"+minutes;}var seconds=o.getUTCSeconds();
if(seconds<10){seconds="0"+seconds;}var milli=o.getUTCMilliseconds();if(milli<100){milli="0"+milli;}if(milli<10){milli="0"+milli;
}return'"'+year+"-"+month+"-"+day+"T"+hours+":"+minutes+":"+seconds+"."+milli+'Z"';}if(o.constructor===Array){var ret=[];
for(var i=0;i<o.length;i++){ret.push($.toJSON(o[i])||"null");}return"["+ret.join(",")+"]";}var pairs=[];for(var k in o){var name;
var type=typeof k;if(type=="number"){name='"'+k+'"';}else{if(type=="string"){name=$.quoteString(k);}else{continue;}}if(typeof o[k]=="function"){continue;
}var val=$.toJSON(o[k]);pairs.push(name+":"+val);}return"{"+pairs.join(", ")+"}";}};$.evalJSON=function(src){if(typeof(JSON)=="object"&&JSON.parse){return JSON.parse(src);
}return eval("("+src+")");};$.secureEvalJSON=function(src){if(typeof(JSON)=="object"&&JSON.parse){return JSON.parse(src);
}var filtered=src;filtered=filtered.replace(/\\["\\\/bfnrtu]/g,"@");filtered=filtered.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]");
filtered=filtered.replace(/(?:^|:|,)(?:\s*\[)+/g,"");if(/^[\],:{}\s]*$/.test(filtered)){return eval("("+src+")");}else{throw new SyntaxError("Error parsing JSON, source is not valid.");
}};$.quoteString=function(string){if(string.match(_escapeable)){return'"'+string.replace(_escapeable,function(a){var c=_meta[a];
if(typeof c==="string"){return c;}c=a.charCodeAt();return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16);})+'"';
}return'"'+string+'"';};var _escapeable=/["\\\x00-\x1f\x7f-\x9f]/g;var _meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};
})(jQuery);(function(b){b.topZIndex=function(a){return Math.max(0,Math.max.apply(null,b.map(b(a||"*"),function(d){return isNaN(d=parseInt(b(d).css("z-index")))?null:d;
})));};b.fn.topZIndex=function(e){if(this.length===0){return this;}e=b.extend({increment:1,selector:"*"},e);var a=b.topZIndex(e.selector),f=e.increment;
return this.each(function(){b(this).css("z-index",a+=f);});};})(jQuery);(function(a){a.event.special.mousewheel={setup:function(){var b=a.event.special.mousewheel.handler;
if(a.browser.mozilla){a(this).bind("mousemove.mousewheel",function(c){a.data(this,"mwcursorposdata",{pageX:c.pageX,pageY:c.pageY,clientX:c.clientX,clientY:c.clientY});
});}if(this.addEventListener){this.addEventListener((a.browser.mozilla?"DOMMouseScroll":"mousewheel"),b,false);}else{this.onmousewheel=b;
}},teardown:function(){var b=a.event.special.mousewheel.handler;a(this).unbind("mousemove.mousewheel");if(this.removeEventListener){this.removeEventListener((a.browser.mozilla?"DOMMouseScroll":"mousewheel"),b,false);
}else{this.onmousewheel=function(){};}a.removeData(this,"mwcursorposdata");},handler:function(d){var e=Array.prototype.slice.call(arguments,1);
d=a.event.fix(d||window.event);a.extend(d,a.data(this,"mwcursorposdata")||{});var c=0,b=true;if(d.wheelDelta){c=d.wheelDelta/120;
}if(d.detail){c=-d.detail/3;}d.data=d.data||{};d.type="mousewheel";e.unshift(c);e.unshift(d);return a.event.handle.apply(this,e);
}};a.fn.extend({mousewheel:function(b){return b?this.bind("mousewheel",b):this.trigger("mousewheel");},unmousewheel:function(b){return this.unbind("mousewheel",b);
}});})(jQuery);(function(a){a.jScrollPane={active:[]};a.fn.jScrollPane=function(c){c=a.extend({},a.fn.jScrollPane.defaults,c);
var b=function(){return false;};return this.each(function(){var z=a(this);var N=this;var o=0;var t;var h;var j;var I=c.topCapHeight;
if(a(this).parent().is(".jScrollPaneContainer")){o=c.maintainPosition?z.position().top:0;var C=a(this).parent();t=C.innerWidth();
h=C.outerHeight();a(">.jScrollPaneTrack, >.jScrollArrowUp, >.jScrollArrowDown, >.jScollCap",C).remove();z.css({top:0});}else{z.data("originalStyleTag",z.attr("style"));
z.css("overflow","hidden");this.originalPadding=z.css("paddingTop")+" "+z.css("paddingRight")+" "+z.css("paddingBottom")+" "+z.css("paddingLeft");
this.originalSidePaddingTotal=(parseInt(z.css("paddingLeft"))||0)+(parseInt(z.css("paddingRight"))||0);t=z.innerWidth();h=z.innerHeight();
var i=a("<div></div>").attr({className:"jScrollPaneContainer"}).css({height:h+"px",width:t+"px"});if(c.enableKeyboardNavigation){i.attr("tabindex",c.tabIndex);
}z.wrap(i);a(document).bind("emchange",function(ap,p,aq){z.jScrollPane(c);});}j=h;if(c.reinitialiseOnImageLoad){var aj=a.data(N,"jScrollPaneImagesToLoad")||a("img",z);
var ai=[];if(aj.length){aj.each(function(p,ap){a(this).bind("load readystatechange",function(){if(a.inArray(p,ai)==-1){ai.push(ap);
aj=a.grep(aj,function(at,ar){return at!=ap;});a.data(N,"jScrollPaneImagesToLoad",aj);var aq=a.extend(c,{reinitialiseOnImageLoad:false});
z.jScrollPane(aq);}}).each(function(aq,ar){if(this.complete||this.complete===undefined){this.src=this.src;}});});}}var ae=this.originalSidePaddingTotal;
var V=t-c.scrollbarWidth-c.scrollbarMargin-ae;var d={height:"auto",width:V+"px"};if(c.scrollbarOnLeft){d.paddingLeft=c.scrollbarMargin+c.scrollbarWidth+"px";
}else{d.paddingRight=c.scrollbarMargin+"px";}z.css(d);var F=z.outerHeight();var S=h/F;if(S<0.99){var i=z.parent();i.append(a("<div></div>").addClass("jScrollCap jScrollCapTop").css({height:c.topCapHeight}),a("<div></div>").attr({className:"jScrollPaneTrack"}).css({width:c.scrollbarWidth+"px"}).append(a("<div></div>").attr({className:"jScrollPaneDrag"}).css({width:c.scrollbarWidth+"px"}).append(a("<div></div>").attr({className:"jScrollPaneDragTop"}).css({width:c.scrollbarWidth+"px"}),a("<div></div>").attr({className:"jScrollPaneDragBottom"}).css({width:c.scrollbarWidth+"px"}))),a("<div></div>").addClass("jScrollCap jScrollCapBottom").css({height:c.bottomCapHeight}));
var O=a(">.jScrollPaneTrack",i);var u=a(">.jScrollPaneTrack .jScrollPaneDrag",i);var ao;var X=[];var af;var n=function(){if(af>4||af%4==0){ad(l+ao*q);
}af++;};if(c.enableKeyboardNavigation){i.bind("keydown.jscrollpane",function(p){switch(p.keyCode){case 38:ao=-1;af=0;n();
X[X.length]=setInterval(n,100);return false;case 40:ao=1;af=0;n();X[X.length]=setInterval(n,100);return false;case 33:case 34:return false;
default:}}).bind("keyup.jscrollpane",function(ap){if(ap.keyCode==38||ap.keyCode==40){for(var p=0;p<X.length;p++){clearInterval(X[p]);
}return false;}});}if(c.showArrows){var ac;var W;var v=function(p){a("html").unbind("mouseup",v);ac.removeClass("jScrollActiveArrowButton");
clearInterval(W);};var Y=function(){a("html").bind("mouseup",v);ac.addClass("jScrollActiveArrowButton");af=0;n();W=setInterval(n,100);
};i.append(a("<a></a>").attr({href:"javascript:;",className:"jScrollArrowUp",tabindex:-1}).css({width:c.scrollbarWidth+"px",top:c.topCapHeight+"px"}).html("Scroll up").bind("mousedown",function(){ac=a(this);
ao=-1;Y();this.blur();return false;}).bind("click",b),a("<a></a>").attr({href:"javascript:;",className:"jScrollArrowDown",tabindex:-1}).css({width:c.scrollbarWidth+"px",bottom:c.bottomCapHeight+"px"}).html("Scroll down").bind("mousedown",function(){ac=a(this);
ao=1;Y();this.blur();return false;}).bind("click",b));var m=a(">.jScrollArrowUp",i);var ab=a(">.jScrollArrowDown",i);}if(c.arrowSize){j=h-c.arrowSize-c.arrowSize;
I+=c.arrowSize;}else{if(m){var E=m.height();c.arrowSize=E;j=h-E-ab.height();I+=E;}}j-=c.topCapHeight+c.bottomCapHeight;O.css({height:j+"px",top:I+"px"});
var x=a(this).css({position:"absolute",overflow:"visible"});var ak;var M;var q;var l=0;var al=S*h/2;var s=function(aq,ar){var ap=ar=="X"?"Left":"Top";
return aq["page"+ar]||(aq["client"+ar]+(document.documentElement["scroll"+ap]||document.body["scroll"+ap]))||0;};var T=function(){return false;
};var U=function(){B();ak=u.offset(false);ak.top-=l;M=j-u[0].offsetHeight;q=2*c.wheelSpeed*M/F;};var Q=function(p){U();al=s(p,"Y")-l-ak.top;
a("html").bind("mouseup",ah).bind("mousemove",e);if(a.browser.msie){a("html").bind("dragstart",T).bind("selectstart",T);}return false;
};var ah=function(){a("html").unbind("mouseup",ah).unbind("mousemove",e);al=S*h/2;if(a.browser.msie){a("html").unbind("dragstart",T).unbind("selectstart",T);
}};var ad=function(aq){i.scrollTop(0);aq=aq<0?0:(aq>M?M:aq);l=aq;u.css({top:aq+"px"});var ap=aq/M;z.data("jScrollPanePosition",(h-F)*-ap);
x.css({top:((h-F)*ap)+"px"});z.trigger("scroll");if(c.showArrows){m[aq==0?"addClass":"removeClass"]("disabled");ab[aq==M?"addClass":"removeClass"]("disabled");
}};var e=function(p){ad(s(p,"Y")-ak.top-al);};var H=Math.max(Math.min(S*(h-c.arrowSize*2),c.dragMaxHeight),c.dragMinHeight);
u.css({height:H+"px"}).bind("mousedown",Q);var L;var w;var k;var y=function(){if(w>8||w%4==0){ad((l-((l-k)/2)));}w++;};var Z=function(){clearInterval(L);
a("html").unbind("mouseup",Z).unbind("mousemove",A);};var A=function(p){k=s(p,"Y")-ak.top-al;};var ag=function(p){U();A(p);
w=0;a("html").bind("mouseup",Z).bind("mousemove",A);L=setInterval(y,100);y();return false;};O.bind("mousedown",ag);i.bind("mousewheel",function(ar,ap){ap=ap||(ar.wheelDelta?ar.wheelDelta/120:(ar.detail)?-ar.detail/3:0);
U();B();var p=l;ad(l-ap*q);var aq=p!=l;return !aq;});var an;var P;function R(){var p=(an-l)/c.animateStep;if(p>1||p<-1){ad(l+p);
}else{ad(an);B();}}var B=function(){if(P){clearInterval(P);delete an;}};var g=function(ap,p){if(typeof ap=="string"){$e=a(ap,z);
if(!$e.length){return;}ap=$e.offset().top-z.offset().top;}B();var aq=F-h;ap=ap>aq?aq:ap;z.data("jScrollPaneMaxScroll",aq);
var ar=ap/aq*M;if(p||!c.animateTo){ad(ar);}else{i.scrollTop(0);an=ar;P=setInterval(R,c.animateInterval);}};z[0].scrollTo=g;
z[0].scrollBy=function(p){var ap=-parseInt(x.css("top"))||0;g(ap+p);};U();g(-o,true);a("*",this).bind("focus",function(at){var av=a(this);
var ap=0;while(av[0]!=z[0]){ap+=av.position().top;av=av.offsetParent();}var ar=-parseInt(x.css("top"))||0;var au=ar+h;var p=ap>ar&&ap<au;
if(!p){var aq=ap-c.scrollbarMargin;if(ap>ar){aq+=a(this).height()+15+c.scrollbarMargin-h;}g(aq);}});if(location.hash&&location.hash.length>1){setTimeout(function(){g(location.hash);
},a.browser.safari?100:0);}a(document).bind("click",function(ap){$target=a(ap.target);if($target.is("a")){var p=$target.attr("href");
if(p&&p.substr(0,1)=="#"&&p.length>1){setTimeout(function(){g(p,!c.animateToInternalLinks);},a.browser.safari?100:0);}}});
function aa(p){a(document).bind("mousemove.jScrollPaneDragging",am);a(document).bind("mouseup.jScrollPaneDragging",J);}var K;
var G;function f(){direction=K<0?-1:1;z[0].scrollBy(K/2);}function D(){if(G){clearInterval(G);G=undefined;}}function am(ap){var p=z.parent().offset().top;
var ar=p+h;var aq=s(ap,"Y");K=aq<p?aq-p:(aq>ar?aq-ar:0);if(K==0){D();}else{if(!G){G=setInterval(f,100);}}}function J(p){a(document).unbind("mousemove.jScrollPaneDragging").unbind("mouseup.jScrollPaneDragging");
D();}i.bind("mousedown.jScrollPane",aa);a.jScrollPane.active.push(z[0]);}else{z.css({height:h+"px",width:t-this.originalSidePaddingTotal+"px",padding:this.originalPadding});
z[0].scrollTo=z[0].scrollBy=function(){};z.parent().unbind("mousewheel").unbind("mousedown.jScrollPane").unbind("keydown.jscrollpane").unbind("keyup.jscrollpane");
}});};a.fn.jScrollPaneRemove=function(){a(this).each(function(){$this=a(this);var b=$this.parent();if(b.is(".jScrollPaneContainer")){$this.css({top:"",height:"",width:"",padding:"",overflow:"",position:""});
$this.attr("style",$this.data("originalStyleTag"));b.after($this).remove();}});};a.fn.jScrollPane.defaults={scrollbarWidth:10,scrollbarMargin:5,wheelSpeed:18,showArrows:false,arrowSize:0,animateTo:false,dragMinHeight:1,dragMaxHeight:99999,animateInterval:100,animateStep:3,maintainPosition:true,scrollbarOnLeft:false,reinitialiseOnImageLoad:false,tabIndex:0,enableKeyboardNavigation:true,animateToInternalLinks:false,topCapHeight:0,bottomCapHeight:0};
a(window).bind("unload",function(){var c=a.jScrollPane.active;for(var b=0;b<c.length;b++){c[b].scrollTo=c[b].scrollBy=null;
}});})(jQuery);jQuery.fn.center=function(a){return this.each(function(){var b=jQuery(this);b.css({position:a?"absolute":"fixed",left:"50%",top:"50%",zIndex:"99"}).css({marginLeft:"-"+(b.outerWidth()/2)+"px",marginTop:"-"+(b.outerHeight()/2)+"px"});
if(a){b.css({marginTop:parseInt(b.css("marginTop"),10)+jQuery(window).scrollTop(),marginLeft:parseInt(b.css("marginLeft"),10)+jQuery(window).scrollLeft()});
}});};(function(c){var b=c.scrollTo=function(e,d,g){c(window).scrollTo(e,d,g);};b.defaults={axis:"xy",duration:parseFloat(c.fn.jquery)>=1.3?0:1};
b.window=function(d){return c(window).scrollable();};c.fn.scrollable=function(){return this.map(function(){var e=this,d=!e.nodeName||c.inArray(e.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;
if(!d){return e;}var g=(e.contentWindow||e).document||e.ownerDocument||e;return c.browser.safari||g.compatMode=="BackCompat"?g.body:g.documentElement;
});};c.fn.scrollTo=function(e,f,d){if(typeof f=="object"){d=f;f=0;}if(typeof d=="function"){d={onAfter:d};}if(e=="max"){e=9000000000;
}d=c.extend({},b.defaults,d);f=f||d.speed||d.duration;d.queue=d.queue&&d.axis.length>1;if(d.queue){f/=2;}d.offset=a(d.offset);
d.over=a(d.over);return this.scrollable().each(function(){var m=this,n=c(m),v=e,h,s={},i=n.is("html,body");switch(typeof v){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px)?$/.test(v)){v=a(v);
break;}v=c(v,this);case"object":if(v.is||v.style){h=(v=c(v)).offset();}}c.each(d.axis.split(""),function(q,g){var u=g=="x"?"Left":"Top",k=u.toLowerCase(),t="scroll"+u,o=m[t],p=g=="x"?"Width":"Height";
if(h){s[t]=h[k]+(i?0:o-n.offset()[k]);if(d.margin){s[t]-=parseInt(v.css("margin"+u))||0;s[t]-=parseInt(v.css("border"+u+"Width"))||0;
}s[t]+=d.offset[k]||0;if(d.over[k]){s[t]+=v[p.toLowerCase()]()*d.over[k];}}else{s[t]=v[k];}if(/^\d+$/.test(s[t])){s[t]=s[t]<=0?0:Math.min(s[t],l(p));
}if(!q&&d.queue){if(o!=s[t]){j(d.onAfterFirst);}delete s[t];}});j(d.onAfter);function j(g){n.animate(s,f,d.easing,g&&function(){g.call(this,e,d);
});}function l(o){var g="scroll"+o;if(!i){return m[g];}var q="client"+o,k=m.ownerDocument.documentElement,p=m.ownerDocument.body;
return Math.max(k[g],p[g])-Math.min(k[q],p[q]);}}).end();};function a(d){return typeof d=="object"?d:{top:d,left:d};}})(jQuery);
(function(a){a.scrollFollow=function(c,e){c=a(c);var b=c.css("position");function d(){c.queue([]);var h=parseInt(a(window).height());
var g=parseInt(a(document).scrollTop());var i=parseInt(c.cont.offset().top);var j=parseInt(c.cont.attr("offsetHeight"));var k=parseInt(c.attr("offsetHeight")+(parseInt(c.css("marginTop"))||0)+(parseInt(c.css("marginBottom"))||0));
var l;if(f){if(e.relativeTo=="top"){if(c.initialOffsetTop>=(g+e.offset)){l=c.initialTop;}else{l=Math.min((Math.max((-i),(g-c.initialOffsetTop+c.initialTop))+e.offset),(j-k-c.paddingAdjustment));
}}else{if(e.relativeTo=="bottom"){if((c.initialOffsetTop+k)>=(g+e.offset+h)){l=c.initialTop;}else{l=Math.min((g+h-k-e.offset),(j-k));
}}}if((new Date().getTime()-c.lastScroll)>=(e.delay-20)){c.animate({top:l},e.speed,e.easing);}}}var f=true;if(a.cookie!=undefined){if(a.cookie("scrollFollowSetting"+c.attr("id"))=="false"){var f=false;
a("#"+e.killSwitch).text(e.offText).toggle(function(){f=true;a(this).text(e.onText);a.cookie("scrollFollowSetting"+c.attr("id"),true,{expires:365,path:"/"});
d();},function(){f=false;a(this).text(e.offText);c.animate({top:c.initialTop},e.speed,e.easing);a.cookie("scrollFollowSetting"+c.attr("id"),false,{expires:365,path:"/"});
});}else{a("#"+e.killSwitch).text(e.onText).toggle(function(){f=false;a(this).text(e.offText);c.animate({top:c.initialTop},0);
a.cookie("scrollFollowSetting"+c.attr("id"),false,{expires:365,path:"/"});},function(){f=true;a(this).text(e.onText);a.cookie("scrollFollowSetting"+c.attr("id"),true,{expires:365,path:"/"});
d();});}}if(e.container==""){c.cont=c.parent();}else{c.cont=a("#"+e.container);}c.initialOffsetTop=parseInt(c.offset().top);
c.initialTop=parseInt(c.css("top"))||0;if(c.css("position")=="relative"){c.paddingAdjustment=parseInt(c.cont.css("paddingTop"))+parseInt(c.cont.css("paddingBottom"));
}else{c.paddingAdjustment=0;}a(window).scroll(function(){a.fn.scrollFollow.interval=setTimeout(function(){d();},e.delay);
c.lastScroll=new Date().getTime();});a(window).resize(function(){a.fn.scrollFollow.interval=setTimeout(function(){d();},e.delay);
c.lastScroll=new Date().getTime();});c.lastScroll=0;d();};a.fn.scrollFollow=function(b){b=b||{};b.relativeTo=b.relativeTo||"top";
b.speed=b.speed||500;b.offset=b.offset||0;b.easing=b.easing||"swing";b.container=b.container||this.parent().attr("id");b.killSwitch=b.killSwitch||"killSwitch";
b.onText=b.onText||"Turn Slide Off";b.offText=b.offText||"Turn Slide On";b.delay=b.delay||0;this.each(function(){new a.scrollFollow(this,b);
});return this;};})(jQuery);(function(b,c){var d=function(g){var f,h=[];for(f in g){h.push(f+'="'+g[f]+'"');}return h.join("");
},a=function(g){var f,j,h=[],i;for(f in g){if(typeof g[f]=="object"){i=[];for(j in g[f]){i.push([j,"=",encodeURIComponent(g[f][j])].join(""));
}g[f]=i.join("&amp;");}h.push(['<param name="',f,'" value="',g[f],'" />'].join(""));}return h.join("");},e=false;b[c]=(function(){var f="0,0,0",g=navigator.plugins["Shockwave Flash"]||ActiveXObject;
f=g.description||(function(){try{return(new g("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version");}catch(h){}}());f=f.match(/^[A-Za-z\s]*?(\d+)[\.|,](\d+)(?:\s+r|,)(\d+)/);
return{available:f[1]>0,activeX:!g.name,version:{major:f[1]*1,minor:f[2]*1,release:f[3]*1},hasVersion:function(j){var k=this.version,l="major",h="minor",i="release";
j=(/string|number/.test(typeof j))?j.toString().split("."):j||[0,0,0];j=[j[l]||j[0]||k[l],j[h]||j[1]||k[h],j[i]||j[2]||k[i]];
return(j[0]<k[l])||(j[0]==k[l]&&j[1]<k[h])||(j[0]==k[l]&&j[1]==k[h]&&j[2]<=k[i]);},expressInstall:"expressInstall.swf",create:function(h){if(!b[c].available||e||!typeof h=="object"||!h.swf){return false;
}if(h.hasVersion&&!b[c].hasVersion(h.hasVersion)){h={swf:h.expressInstall||b[c].expressInstall,attrs:{id:"SWFObjectExprInst",height:Math.max(h.height||137),width:Math.max(h.width||214)},params:{flashvars:{MMredirectURL:location.href,MMplayerType:(b[c].activeX)?"ActiveX":"PlugIn",MMdoctitle:document.title.slice(0,47)+" - Flash Player Installation"}}};
e=true;}else{h=b.extend(true,{attrs:{height:h.height||180,width:h.width||320},params:{wmode:h.wmode||"opaque",flashvars:h.flashvars}},h);
}return"<object "+(d(h.attrs))+(b[c].activeX?' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="movie" value="'+h.swf+'" />':' type="application/x-shockwave-flash" data="'+h.swf+'">')+(a(h.params))+"</object>";
}};}());b.fn[c]=function(f){if(typeof f=="object"){this.each(function(){var g=document.createElement(c);g.innerHTML=b[c].create(f);
if(g.childNodes[0]){this.appendChild(g.childNodes[0]);}});}else{if(typeof f=="function"){this.find("object").andSelf().filter("object").each(function(){var g=this,h="jsInteractionTimeoutMs";
g[h]=g[h]||0;if(g[h]<660){if(g.clientWidth||g.clientHeight){f.call(this);}else{setTimeout(function(){b(g)[c](f);},g[h]+66);
}}});}}return this;};}(jQuery,"flash"));Date.CultureInfo={name:"en-US",englishName:"English (United States)",nativeName:"English (United States)",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbreviatedDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],shortestDayNames:["Su","Mo","Tu","We","Th","Fr","Sa"],firstLetterDayNames:["S","M","T","W","T","F","S"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],abbreviatedMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],amDesignator:"AM",pmDesignator:"PM",firstDayOfWeek:0,twoDigitYearMax:2029,dateElementOrder:"mdy",formatPatterns:{shortDate:"M/d/yyyy",longDate:"dddd, MMMM dd, yyyy",shortTime:"h:mm tt",longTime:"h:mm:ss tt",fullDateTime:"dddd, MMMM dd, yyyy h:mm:ss tt",sortableDateTime:"yyyy-MM-ddTHH:mm:ss",universalSortableDateTime:"yyyy-MM-dd HH:mm:ssZ",rfc1123:"ddd, dd MMM yyyy HH:mm:ss GMT",monthDay:"MMMM dd",yearMonth:"MMMM, yyyy"},regexPatterns:{jan:/^jan(uary)?/i,feb:/^feb(ruary)?/i,mar:/^mar(ch)?/i,apr:/^apr(il)?/i,may:/^may/i,jun:/^jun(e)?/i,jul:/^jul(y)?/i,aug:/^aug(ust)?/i,sep:/^sep(t(ember)?)?/i,oct:/^oct(ober)?/i,nov:/^nov(ember)?/i,dec:/^dec(ember)?/i,sun:/^su(n(day)?)?/i,mon:/^mo(n(day)?)?/i,tue:/^tu(e(s(day)?)?)?/i,wed:/^we(d(nesday)?)?/i,thu:/^th(u(r(s(day)?)?)?)?/i,fri:/^fr(i(day)?)?/i,sat:/^sa(t(urday)?)?/i,future:/^next/i,past:/^last|past|prev(ious)?/i,add:/^(\+|after|from)/i,subtract:/^(\-|before|ago)/i,yesterday:/^yesterday/i,today:/^t(oday)?/i,tomorrow:/^tomorrow/i,now:/^n(ow)?/i,millisecond:/^ms|milli(second)?s?/i,second:/^sec(ond)?s?/i,minute:/^min(ute)?s?/i,hour:/^h(ou)?rs?/i,week:/^w(ee)?k/i,month:/^m(o(nth)?s?)?/i,day:/^d(ays?)?/i,year:/^y((ea)?rs?)?/i,shortMeridian:/^(a|p)/i,longMeridian:/^(a\.?m?\.?|p\.?m?\.?)/i,timezone:/^((e(s|d)t|c(s|d)t|m(s|d)t|p(s|d)t)|((gmt)?\s*(\+|\-)\s*\d\d\d\d?)|gmt)/i,ordinalSuffix:/^\s*(st|nd|rd|th)/i,timeContext:/^\s*(\:|a|p)/i},abbreviatedTimeZoneStandard:{GMT:"-000",EST:"-0400",CST:"-0500",MST:"-0600",PST:"-0700"},abbreviatedTimeZoneDST:{GMT:"-000",EDT:"-0500",CDT:"-0600",MDT:"-0700",PDT:"-0800"}};
Date.getMonthNumberFromName=function(d){var b=Date.CultureInfo.monthNames,e=Date.CultureInfo.abbreviatedMonthNames,c=d.toLowerCase();
for(var a=0;a<b.length;a++){if(b[a].toLowerCase()==c||e[a].toLowerCase()==c){return a;}}return -1;};Date.getDayNumberFromName=function(e){var b=Date.CultureInfo.dayNames,f=Date.CultureInfo.abbreviatedDayNames,c=Date.CultureInfo.shortestDayNames,d=e.toLowerCase();
for(var a=0;a<b.length;a++){if(b[a].toLowerCase()==d||f[a].toLowerCase()==d){return a;}}return -1;};Date.isLeapYear=function(a){return(((a%4===0)&&(a%100!==0))||(a%400===0));
};Date.getDaysInMonth=function(b,a){return[31,(Date.isLeapYear(b)?29:28),31,30,31,30,31,31,30,31,30,31][a];};Date.getTimezoneOffset=function(a,b){return(b||false)?Date.CultureInfo.abbreviatedTimeZoneDST[a.toUpperCase()]:Date.CultureInfo.abbreviatedTimeZoneStandard[a.toUpperCase()];
};Date.getTimezoneAbbreviation=function(a,d){var b=(d||false)?Date.CultureInfo.abbreviatedTimeZoneDST:Date.CultureInfo.abbreviatedTimeZoneStandard,c;
for(c in b){if(b[c]===a){return c;}}return null;};Date.prototype.clone=function(){return new Date(this.getTime());};Date.prototype.compareTo=function(a){if(isNaN(this)){throw new Error(this);
}if(a instanceof Date&&!isNaN(a)){return(this>a)?1:(this<a)?-1:0;}else{throw new TypeError(a);}};Date.prototype.equals=function(a){return(this.compareTo(a)===0);
};Date.prototype.between=function(c,a){var b=this.getTime();return b>=c.getTime()&&b<=a.getTime();};Date.prototype.addMilliseconds=function(a){this.setMilliseconds(this.getMilliseconds()+a);
return this;};Date.prototype.addSeconds=function(a){return this.addMilliseconds(a*1000);};Date.prototype.addMinutes=function(a){return this.addMilliseconds(a*60000);
};Date.prototype.addHours=function(a){return this.addMilliseconds(a*3600000);};Date.prototype.addDays=function(a){return this.addMilliseconds(a*86400000);
};Date.prototype.addWeeks=function(a){return this.addMilliseconds(a*604800000);};Date.prototype.addMonths=function(b){var a=this.getDate();
this.setDate(1);this.setMonth(this.getMonth()+b);this.setDate(Math.min(a,this.getDaysInMonth()));return this;};Date.prototype.addYears=function(a){return this.addMonths(a*12);
};Date.prototype.add=function(a){if(typeof a=="number"){this._orient=a;return this;}var b=a;if(b.millisecond||b.milliseconds){this.addMilliseconds(b.millisecond||b.milliseconds);
}if(b.second||b.seconds){this.addSeconds(b.second||b.seconds);}if(b.minute||b.minutes){this.addMinutes(b.minute||b.minutes);
}if(b.hour||b.hours){this.addHours(b.hour||b.hours);}if(b.month||b.months){this.addMonths(b.month||b.months);}if(b.year||b.years){this.addYears(b.year||b.years);
}if(b.day||b.days){this.addDays(b.day||b.days);}return this;};Date._validate=function(c,a,d,b){if(typeof c!="number"){throw new TypeError(c+" is not a Number.");
}else{if(c<a||c>d){throw new RangeError(c+" is not a valid value for "+b+".");}}return true;};Date.validateMillisecond=function(a){return Date._validate(a,0,999,"milliseconds");
};Date.validateSecond=function(a){return Date._validate(a,0,59,"seconds");};Date.validateMinute=function(a){return Date._validate(a,0,59,"minutes");
};Date.validateHour=function(a){return Date._validate(a,0,23,"hours");};Date.validateDay=function(a,b,c){return Date._validate(a,1,Date.getDaysInMonth(b,c),"days");
};Date.validateMonth=function(a){return Date._validate(a,0,11,"months");};Date.validateYear=function(a){return Date._validate(a,1,9999,"seconds");
};Date.prototype.set=function(a){var b=a;if(!b.millisecond&&b.millisecond!==0){b.millisecond=-1;}if(!b.second&&b.second!==0){b.second=-1;
}if(!b.minute&&b.minute!==0){b.minute=-1;}if(!b.hour&&b.hour!==0){b.hour=-1;}if(!b.day&&b.day!==0){b.day=-1;}if(!b.month&&b.month!==0){b.month=-1;
}if(!b.year&&b.year!==0){b.year=-1;}if(b.millisecond!=-1&&Date.validateMillisecond(b.millisecond)){this.addMilliseconds(b.millisecond-this.getMilliseconds());
}if(b.second!=-1&&Date.validateSecond(b.second)){this.addSeconds(b.second-this.getSeconds());}if(b.minute!=-1&&Date.validateMinute(b.minute)){this.addMinutes(b.minute-this.getMinutes());
}if(b.hour!=-1&&Date.validateHour(b.hour)){this.addHours(b.hour-this.getHours());}if(b.month!==-1&&Date.validateMonth(b.month)){this.addMonths(b.month-this.getMonth());
}if(b.year!=-1&&Date.validateYear(b.year)){this.addYears(b.year-this.getFullYear());}if(b.day!=-1&&Date.validateDay(b.day,this.getFullYear(),this.getMonth())){this.addDays(b.day-this.getDate());
}if(b.timezone){this.setTimezone(b.timezone);}if(b.timezoneOffset){this.setTimezoneOffset(b.timezoneOffset);}return this;
};Date.prototype.clearTime=function(){this.setHours(0);this.setMinutes(0);this.setSeconds(0);this.setMilliseconds(0);return this;
};Date.prototype.isLeapYear=function(){var a=this.getFullYear();return(((a%4===0)&&(a%100!==0))||(a%400===0));};Date.prototype.isWeekday=function(){return !(this.is().sat()||this.is().sun());
};Date.prototype.getDaysInMonth=function(){return Date.getDaysInMonth(this.getFullYear(),this.getMonth());};Date.prototype.moveToFirstDayOfMonth=function(){return this.set({day:1});
};Date.prototype.moveToLastDayOfMonth=function(){return this.set({day:this.getDaysInMonth()});};Date.prototype.moveToDayOfWeek=function(a,b){var c=(a-this.getDay()+7*(b||+1))%7;
return this.addDays((c===0)?c+=7*(b||+1):c);};Date.prototype.moveToMonth=function(a,b){var c=(a-this.getMonth()+12*(b||+1))%12;
return this.addMonths((c===0)?c+=12*(b||+1):c);};Date.prototype.getDayOfYear=function(){return Math.floor((this-new Date(this.getFullYear(),0,1))/86400000);
};Date.prototype.getWeekOfYear=function(i){var h=this.getFullYear(),f=this.getMonth(),j=this.getDate();var g=i||Date.CultureInfo.firstDayOfWeek;
var a=7+1-new Date(h,0,1).getDay();if(a==8){a=1;}var c=((Date.UTC(h,f,j,0,0,0)-Date.UTC(h,0,1,0,0,0))/86400000)+1;var b=Math.floor((c-a+7)/7);
if(b===g){h--;var e=7+1-new Date(h,0,1).getDay();if(e==2||e==8){b=53;}else{b=52;}}return b;};Date.prototype.isDST=function(){console.log("isDST");
return this.toString().match(/(E|C|M|P)(S|D)T/)[2]=="D";};Date.prototype.getTimezone=function(){return Date.getTimezoneAbbreviation(this.getUTCOffset,this.isDST());
};Date.prototype.setTimezoneOffset=function(a){var b=this.getTimezoneOffset(),c=Number(a)*-6/10;this.addMinutes(c-b);return this;
};Date.prototype.setTimezone=function(a){return this.setTimezoneOffset(Date.getTimezoneOffset(a));};Date.prototype.getUTCOffset=function(){var b=this.getTimezoneOffset()*-10/6,a;
if(b<0){a=(b-10000).toString();return a[0]+a.substr(2);}else{a=(b+10000).toString();return"+"+a.substr(1);}};Date.prototype.getDayName=function(a){return a?Date.CultureInfo.abbreviatedDayNames[this.getDay()]:Date.CultureInfo.dayNames[this.getDay()];
};Date.prototype.getMonthName=function(a){return a?Date.CultureInfo.abbreviatedMonthNames[this.getMonth()]:Date.CultureInfo.monthNames[this.getMonth()];
};Date.prototype._toString=Date.prototype.toString;Date.prototype.toString=function(a){var c=this;var b=function b(d){return(d.toString().length==1)?"0"+d:d;
};return a?a.replace(/dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|zz?z?/g,function(d){switch(d){case"hh":return b(c.getHours()<13?c.getHours():(c.getHours()-12));
case"h":return c.getHours()<13?c.getHours():(c.getHours()-12);case"HH":return b(c.getHours());case"H":return c.getHours();
case"mm":return b(c.getMinutes());case"m":return c.getMinutes();case"ss":return b(c.getSeconds());case"s":return c.getSeconds();
case"yyyy":return c.getFullYear();case"yy":return c.getFullYear().toString().substring(2,4);case"dddd":return c.getDayName();
case"ddd":return c.getDayName(true);case"dd":return b(c.getDate());case"d":return c.getDate().toString();case"MMMM":return c.getMonthName();
case"MMM":return c.getMonthName(true);case"MM":return b((c.getMonth()+1));case"M":return c.getMonth()+1;case"t":return c.getHours()<12?Date.CultureInfo.amDesignator.substring(0,1):Date.CultureInfo.pmDesignator.substring(0,1);
case"tt":return c.getHours()<12?Date.CultureInfo.amDesignator:Date.CultureInfo.pmDesignator;case"zzz":case"zz":case"z":return"";
}}):this._toString();};Date.now=function(){return new Date();};Date.today=function(){return Date.now().clearTime();};Date.prototype._orient=+1;
Date.prototype.next=function(){this._orient=+1;return this;};Date.prototype.last=Date.prototype.prev=Date.prototype.previous=function(){this._orient=-1;
return this;};Date.prototype._is=false;Date.prototype.is=function(){this._is=true;return this;};Number.prototype._dateElement="day";
Number.prototype.fromNow=function(){var a={};a[this._dateElement]=this;return Date.now().add(a);};Number.prototype.ago=function(){var a={};
a[this._dateElement]=this*-1;return Date.now().add(a);};(function(){var n=Date.prototype,d=Number.prototype;var m=("sunday monday tuesday wednesday thursday friday saturday").split(/\s/),f=("january february march april may june july august september october november december").split(/\s/),p=("Millisecond Second Minute Hour Day Week Month Year").split(/\s/),a;
var b=function(i){return function(){if(this._is){this._is=false;return this.getDay()==i;}return this.moveToDayOfWeek(i,this._orient);
};};for(var g=0;g<m.length;g++){n[m[g]]=n[m[g].substring(0,3)]=b(g);}var o=function(i){return function(){if(this._is){this._is=false;
return this.getMonth()===i;}return this.moveToMonth(i,this._orient);};};for(var e=0;e<f.length;e++){n[f[e]]=n[f[e].substring(0,3)]=o(e);
}var c=function(i){return function(){if(i.substring(i.length-1)!="s"){i+="s";}return this["add"+i](this._orient);};};var l=function(i){return function(){this._dateElement=i;
return this;};};for(var h=0;h<p.length;h++){a=p[h].toLowerCase();n[a]=n[a+"s"]=c(p[h]);d[a]=d[a+"s"]=l(a);}}());Date.prototype.toJSONString=function(){return this.toString("yyyy-MM-ddThh:mm:ssZ");
};Date.prototype.toShortDateString=function(){return this.toString(Date.CultureInfo.formatPatterns.shortDatePattern);};Date.prototype.toLongDateString=function(){return this.toString(Date.CultureInfo.formatPatterns.longDatePattern);
};Date.prototype.toShortTimeString=function(){return this.toString(Date.CultureInfo.formatPatterns.shortTimePattern);};Date.prototype.toLongTimeString=function(){return this.toString(Date.CultureInfo.formatPatterns.longTimePattern);
};Date.prototype.getOrdinal=function(){switch(this.getDate()){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";
case 3:case 23:return"rd";default:return"th";}};(function(){Date.Parsing={Exception:function(i){this.message="Parse error at '"+i.substring(0,10)+" ...'";
}};var a=Date.Parsing;var d=a.Operators={rtoken:function(i){return function(j){var k=j.match(i);if(k){return([k[0],j.substring(k[0].length)]);
}else{throw new a.Exception(j);}};},token:function(i){return function(j){return d.rtoken(new RegExp("^s*"+j+"s*"))(j);};},stoken:function(i){return d.rtoken(new RegExp("^"+i));
},until:function(i){return function(j){var m=[],k=null;while(j.length){try{k=i.call(this,j);}catch(l){m.push(k[0]);j=k[1];
continue;}break;}return[m,j];};},many:function(i){return function(k){var l=[],j=null;while(k.length){try{j=i.call(this,k);
}catch(m){return[l,k];}l.push(j[0]);k=j[1];}return[l,k];};},optional:function(i){return function(k){var j=null;try{j=i.call(this,k);
}catch(l){return[null,k];}return[j[0],j[1]];};},not:function(i){return function(j){try{i.call(this,j);}catch(k){return[null,j];
}throw new a.Exception(j);};},ignore:function(i){return i?function(k){var j=null;j=i.call(this,k);return[null,j[1]];}:null;
},product:function(){var l=arguments[0],m=Array.prototype.slice.call(arguments,1),k=[];for(var j=0;j<l.length;j++){k.push(d.each(l[j],m));
}return k;},cache:function(j){var i={},k=null;return function(l){try{k=i[l]=(i[l]||j.call(this,l));}catch(m){k=i[l]=m;}if(k instanceof a.Exception){throw k;
}else{return k;}};},any:function(){var i=arguments;return function(k){var j=null;for(var l=0;l<i.length;l++){if(i[l]==null){continue;
}try{j=(i[l].call(this,k));}catch(m){j=null;}if(j){return j;}}throw new a.Exception(k);};},each:function(){var i=arguments;
return function(k){var m=[],j=null;for(var l=0;l<i.length;l++){if(i[l]==null){continue;}try{j=(i[l].call(this,k));}catch(n){throw new a.Exception(k);
}m.push(j[0]);k=j[1];}return[m,k];};},all:function(){var i=arguments,j=j;return j.each(j.optional(i));},sequence:function(j,i,k){i=i||d.rtoken(/^\s*/);
k=k||null;if(j.length==1){return j[0];}return function(m){var o=null,n=null;var t=[];for(var p=0;p<j.length;p++){try{o=j[p].call(this,m);
}catch(l){break;}t.push(o[0]);try{n=i.call(this,o[1]);}catch(v){n=null;break;}m=n[1];}if(!o){throw new a.Exception(m);}if(n){throw new a.Exception(n[1]);
}if(k){try{o=k.call(this,o[1]);}catch(u){throw new a.Exception(o[1]);}}return[t,(o?o[1]:m)];};},between:function(j,k,l){l=l||j;
var i=d.each(d.ignore(j),k,d.ignore(l));return function(m){var n=i.call(this,m);return[[n[0][0],r[0][2]],n[1]];};},list:function(j,i,k){i=i||d.rtoken(/^\s*/);
k=k||null;return(j instanceof Array?d.each(d.product(j.slice(0,-1),d.ignore(i)),j.slice(-1),d.ignore(k)):d.each(d.many(d.each(j,d.ignore(i))),px,d.ignore(k)));
},set:function(j,i,k){i=i||d.rtoken(/^\s*/);k=k||null;return function(m){var l=null,n=null,o=null,A=null,v=[[],m],x=false;
for(var w=0;w<j.length;w++){o=null;n=null;l=null;x=(j.length==1);try{l=j[w].call(this,m);}catch(t){continue;}A=[[l[0]],l[1]];
if(l[1].length>0&&!x){try{o=i.call(this,l[1]);}catch(y){x=true;}}else{x=true;}if(!x&&o[1].length===0){x=true;}if(!x){var B=[];
for(var u=0;u<j.length;u++){if(w!=u){B.push(j[u]);}}n=d.set(B,i).call(this,o[1]);if(n[0].length>0){A[0]=A[0].concat(n[0]);
A[1]=n[1];}}if(A[1].length<v[1].length){v=A;}if(v[1].length===0){break;}}if(v[0].length===0){return v;}if(k){try{o=k.call(this,v[1]);
}catch(z){throw new a.Exception(v[1]);}v[1]=o[1];}return v;};},forward:function(i,j){return function(k){return i[j].call(this,k);
};},replace:function(i,j){return function(l){var k=i.call(this,l);return[j,k[1]];};},process:function(i,j){return function(l){var k=i.call(this,l);
return[j.call(this,k[0]),k[1]];};},min:function(i,j){return function(k){var l=j.call(this,k);if(l[0].length<i){throw new a.Exception(k);
}return l;};}};var b=function(i){return function(){var m=null,k=[];if(arguments.length>1){m=Array.prototype.slice.call(arguments);
}else{if(arguments[0] instanceof Array){m=arguments[0];}}if(m){for(var j=0,l=m.shift();j<l.length;j++){m.unshift(l[j]);k.push(i.apply(null,m));
m.shift();return k;}}else{return i.apply(null,arguments);}};};var f="optional not ignore cache".split(/\s/);for(var e=0;e<f.length;
e++){d[f[e]]=b(d[f[e]]);}var h=function(i){return function(){if(arguments[0] instanceof Array){return i.apply(null,arguments[0]);
}else{return i.apply(null,arguments);}};};var g="each any all".split(/\s/);for(var c=0;c<g.length;c++){d[g[c]]=h(d[g[c]]);
}}());(function(){var i=function(g){var k=[];for(var j=0;j<g.length;j++){if(g[j] instanceof Array){k=k.concat(i(g[j]));}else{if(g[j]){k.push(g[j]);
}}}return k;};Date.Grammar={};Date.Translator={hour:function(g){return function(){this.hour=Number(g);};},minute:function(g){return function(){this.minute=Number(g);
};},second:function(g){return function(){this.second=Number(g);};},meridian:function(g){return function(){this.meridian=g.slice(0,1).toLowerCase();
};},timezone:function(g){return function(){var j=g.replace(/[^\d\+\-]/g,"");if(j.length){this.timezoneOffset=Number(j);}else{this.timezone=g.toLowerCase();
}};},day:function(j){var g=j[0];return function(){this.day=Number(g.match(/\d+/)[0]);};},month:function(g){return function(){this.month=((g.length==3)?Date.getMonthNumberFromName(g):(Number(g)-1));
};},year:function(g){return function(){var j=Number(g);this.year=((g.length>2)?j:(j+(((j+2000)<Date.CultureInfo.twoDigitYearMax)?2000:1900)));
};},rday:function(g){return function(){switch(g){case"yesterday":this.days=-1;break;case"tomorrow":this.days=1;break;case"today":this.days=0;
break;case"now":this.days=0;this.now=true;break;}};},finishExact:function(k){k=(k instanceof Array)?k:[k];var l=new Date();
this.year=l.getFullYear();this.month=l.getMonth();this.day=1;this.hour=0;this.minute=0;this.second=0;for(var g=0;g<k.length;
g++){if(k[g]){k[g].call(this);}}this.hour=(this.meridian=="p"&&this.hour<13)?this.hour+12:this.hour;if(this.day>Date.getDaysInMonth(this.year,this.month)){throw new RangeError(this.day+" is not a valid value for days.");
}var j=new Date(this.year,this.month,this.day,this.hour,this.minute,this.second);if(this.timezone){j.set({timezone:this.timezone});
}else{if(this.timezoneOffset){j.set({timezoneOffset:this.timezoneOffset});}}return j;},finish:function(o){o=(o instanceof Array)?i(o):[o];
if(o.length===0){return null;}for(var k=0;k<o.length;k++){if(typeof o[k]=="function"){o[k].call(this);}}if(this.now){return new Date();
}var j=Date.today();var n=null;var g=!!(this.days!=null||this.orient||this.operator);if(g){var p,m,l;l=((this.orient=="past"||this.operator=="subtract")?-1:1);
if(this.weekday){this.unit="day";p=(Date.getDayNumberFromName(this.weekday)-j.getDay());m=7;this.days=p?((p+(l*m))%m):(l*m);
}if(this.month){this.unit="month";p=(this.month-j.getMonth());m=12;this.months=p?((p+(l*m))%m):(l*m);this.month=null;}if(!this.unit){this.unit="day";
}if(this[this.unit+"s"]==null||this.operator!=null){if(!this.value){this.value=1;}if(this.unit=="week"){this.unit="day";this.value=this.value*7;
}this[this.unit+"s"]=this.value*l;}return j.add(this);}else{if(this.meridian&&this.hour){this.hour=(this.hour<13&&this.meridian=="p")?this.hour+12:this.hour;
}if(this.weekday&&!this.day){this.day=(j.addDays((Date.getDayNumberFromName(this.weekday)-j.getDay()))).getDate();}if(this.month&&!this.day){this.day=1;
}return j.set(this);}}};var d=Date.Parsing.Operators,h=Date.Grammar,b=Date.Translator,a;h.datePartDelimiter=d.rtoken(/^([\s\-\.\,\/\x27]+)/);
h.timePartDelimiter=d.stoken(":");h.whiteSpace=d.rtoken(/^\s*/);h.generalDelimiter=d.rtoken(/^(([\s\,]|at|on)+)/);var f={};
h.ctoken=function(m){var k=f[m];if(!k){var n=Date.CultureInfo.regexPatterns;var j=m.split(/\s+/),l=[];for(var g=0;g<j.length;
g++){l.push(d.replace(d.rtoken(n[j[g]]),j[g]));}k=f[m]=d.any.apply(null,l);}return k;};h.ctoken2=function(g){return d.rtoken(Date.CultureInfo.regexPatterns[g]);
};h.h=d.cache(d.process(d.rtoken(/^(0[0-9]|1[0-2]|[1-9])/),b.hour));h.hh=d.cache(d.process(d.rtoken(/^(0[0-9]|1[0-2])/),b.hour));
h.H=d.cache(d.process(d.rtoken(/^([0-1][0-9]|2[0-3]|[0-9])/),b.hour));h.HH=d.cache(d.process(d.rtoken(/^([0-1][0-9]|2[0-3])/),b.hour));
h.m=d.cache(d.process(d.rtoken(/^([0-5][0-9]|[0-9])/),b.minute));h.mm=d.cache(d.process(d.rtoken(/^[0-5][0-9]/),b.minute));
h.s=d.cache(d.process(d.rtoken(/^([0-5][0-9]|[0-9])/),b.second));h.ss=d.cache(d.process(d.rtoken(/^[0-5][0-9]/),b.second));
h.hms=d.cache(d.sequence([h.H,h.mm,h.ss],h.timePartDelimiter));h.t=d.cache(d.process(h.ctoken2("shortMeridian"),b.meridian));
h.tt=d.cache(d.process(h.ctoken2("longMeridian"),b.meridian));h.z=d.cache(d.process(d.rtoken(/^(\+|\-)?\s*\d\d\d\d?/),b.timezone));
h.zz=d.cache(d.process(d.rtoken(/^(\+|\-)\s*\d\d\d\d/),b.timezone));h.zzz=d.cache(d.process(h.ctoken2("timezone"),b.timezone));
h.timeSuffix=d.each(d.ignore(h.whiteSpace),d.set([h.tt,h.zzz]));h.time=d.each(d.optional(d.ignore(d.stoken("T"))),h.hms,h.timeSuffix);
h.d=d.cache(d.process(d.each(d.rtoken(/^([0-2]\d|3[0-1]|\d)/),d.optional(h.ctoken2("ordinalSuffix"))),b.day));h.dd=d.cache(d.process(d.each(d.rtoken(/^([0-2]\d|3[0-1])/),d.optional(h.ctoken2("ordinalSuffix"))),b.day));
h.ddd=h.dddd=d.cache(d.process(h.ctoken("sun mon tue wed thu fri sat"),function(g){return function(){this.weekday=g;};}));
h.M=d.cache(d.process(d.rtoken(/^(1[0-2]|0\d|\d)/),b.month));h.MM=d.cache(d.process(d.rtoken(/^(1[0-2]|0\d)/),b.month));h.MMM=h.MMMM=d.cache(d.process(h.ctoken("jan feb mar apr may jun jul aug sep oct nov dec"),b.month));
h.y=d.cache(d.process(d.rtoken(/^(\d\d?)/),b.year));h.yy=d.cache(d.process(d.rtoken(/^(\d\d)/),b.year));h.yyy=d.cache(d.process(d.rtoken(/^(\d\d?\d?\d?)/),b.year));
h.yyyy=d.cache(d.process(d.rtoken(/^(\d\d\d\d)/),b.year));a=function(){return d.each(d.any.apply(null,arguments),d.not(h.ctoken2("timeContext")));
};h.day=a(h.d,h.dd);h.month=a(h.M,h.MMM);h.year=a(h.yyyy,h.yy);h.orientation=d.process(h.ctoken("past future"),function(g){return function(){this.orient=g;
};});h.operator=d.process(h.ctoken("add subtract"),function(g){return function(){this.operator=g;};});h.rday=d.process(h.ctoken("yesterday tomorrow today now"),b.rday);
h.unit=d.process(h.ctoken("minute hour day week month year"),function(g){return function(){this.unit=g;};});h.value=d.process(d.rtoken(/^\d\d?(st|nd|rd|th)?/),function(g){return function(){this.value=g.replace(/\D/g,"");
};});h.expression=d.set([h.rday,h.operator,h.value,h.unit,h.orientation,h.ddd,h.MMM]);a=function(){return d.set(arguments,h.datePartDelimiter);
};h.mdy=a(h.ddd,h.month,h.day,h.year);h.ymd=a(h.ddd,h.year,h.month,h.day);h.dmy=a(h.ddd,h.day,h.month,h.year);h.date=function(g){return((h[Date.CultureInfo.dateElementOrder]||h.mdy).call(this,g));
};h.format=d.process(d.many(d.any(d.process(d.rtoken(/^(dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|zz?z?)/),function(g){if(h[g]){return h[g];
}else{throw Date.Parsing.Exception(g);}}),d.process(d.rtoken(/^[^dMyhHmstz]+/),function(g){return d.ignore(d.stoken(g));}))),function(g){return d.process(d.each.apply(null,g),b.finishExact);
});var e={};var c=function(g){return e[g]=(e[g]||h.format(g)[0]);};h.formats=function(j){if(j instanceof Array){var k=[];
for(var g=0;g<j.length;g++){k.push(c(j[g]));}return d.any.apply(null,k);}else{return c(j);}};h._formats=h.formats(["yyyy-MM-ddTHH:mm:ss","ddd, MMM dd, yyyy H:mm:ss tt","ddd MMM d yyyy HH:mm:ss zzz","d"]);
h._start=d.process(d.set([h.date,h.time,h.expression],h.generalDelimiter,h.whiteSpace),b.finish);h.start=function(j){try{var g=h._formats.call({},j);
if(g[1].length===0){return g;}}catch(k){}return h._start.call({},j);};}());Date._parse=Date.parse;Date.parse=function(b){var a=null;
if(!b){return null;}try{a=Date.Grammar.start.call({},b);}catch(c){return null;}return((a[1].length===0)?a[0]:null);};Date.getParseFunction=function(a){var b=Date.Grammar.formats(a);
return function(d){var c=null;try{c=b.call({},d);}catch(f){return null;}return((c[1].length===0)?c[0]:null);};};Date.parseExact=function(b,a){return Date.getParseFunction(a)(b);
};String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"");};String.prototype.ltrim=function(){return this.replace(/^\s+/,"");
};String.prototype.rtrim=function(){return this.replace(/\s+$/,"");};function slideIt(b){var a=$("#"+b);a.parent().css("height","auto");
var c=a.find(".cprograms");c.toggleClass("half");if(c.hasClass("half")){c.css("height","64px");}else{c.css("height","auto");
}tallest=0;a.parent().find(".chart").each(function(){var d=$(this).height();if(d>tallest){tallest=d;}});a.parent().css("height",tallest);
}function checkFormFilled(){if($(".searchinput").val()=="Sök"){$(".searchinput").val("");}}function saveProgramCookie(c,a){var b=$("#eventdroppopupid").val();
$.ajax({url:"/Services/Robot.aspx/SaveProgramCookie",type:"post",contentType:"application/json; charset=utf-8",async:false,cache:false,timeout:30000,data:$.toJSON({programId:b,isSeries:c,isRerun:a}),dataType:"json",processData:false,success:function(e,d){if(e.d!=""){$("#ctl00_ContentPlaceHolder1_MyProgramsControl_EventDropPanel .programs").html(e.d);
$("#ctl00_ContentPlaceHolder1_MyProgramsControl_EventDropPanel").removeClass("green");$("#ctl00_ContentPlaceHolder1_MyProgramsControl_EventDropPanel").addClass("content");
}$("body #eventdroppopup").css("visibility","hidden");$(".skyscaper_160x600").show();$(".skyscaper_160x600, .skyscaper_160x600 *").css("position:relative;top:0;");
$(".skyscaper_160x300").show();$("#loadExportSettingsPopupTrigger").show();},error:function(e,d,f){}});}function deleteProgramCookie(a){$.ajax({url:"/Services/Robot.aspx/DeleteProgramCookie",type:"post",contentType:"application/json; charset=utf-8",async:false,cache:false,timeout:30000,data:$.toJSON({programId:a}),dataType:"json",processData:false,success:function(c,b){$("#ctl00_ContentPlaceHolder1_MyProgramsControl_EventDropPanel .programs .channel:contains('"+a+"')").remove();
$("#loadExportSettingsPopupTrigger").show();},error:function(c,b,d){}});}function getProgramInfo(a,b){var c="tomt!";$.ajax({url:"/Services/Robot.aspx/GetProgramInfo",type:"post",async:false,cache:false,timeout:30000,contentType:"application/json; charset=utf-8",data:$.toJSON({programId:b,programDate:a}),dataType:"json",processData:false,success:function(e,d){return e.d;
},error:function(e,d,f){return"";}});}function getToplist(a){setTimeout("getAjaxToplist('"+a+"')",150);}function getAjaxToplist(a){$.ajax({url:"/Services/Robot.aspx/GetToplist",type:"post",async:false,cache:false,timeout:30000,contentType:"application/json; charset=utf-8",data:$.toJSON({date:a}),dataType:"json",processData:false,success:function(c,b){$("#toplist").html(c.d);
},error:function(c,b,d){}});}function initScrollPanes(){$(".scrollPane").jScrollPane({scrollbarWidth:22,scrollbarMargin:5,showArrows:true,animateInterval:100,animateStep:3,maintainPosition:true,reinitialiseOnImageLoad:false,tabIndex:0,enableKeyboardNavigation:true,animateToInternalLinks:false,topCapHeight:0,bottomCapHeight:0});
}function makeDragable(a){a.draggable({addClasses:false,appendTo:"body",helper:"clone",zIndex:300,start:function(c,b){b.helper.addClass("dragbox");
},stop:function(c,b){b.helper.removeClass("dragbox");}});}function filterResetCategory(){location.href=location.pathname;
}function filterCategory(a){location.href=location.pathname+"?category="+a;}function closeEventPopup(){$("#eventdroppopup").css("visibility","hidden");
$(".skyscaper_160x600").show();$(".skyscaper_160x600, .skyscaper_160x600 *").css("position:relative;top:0;");$(".skyscaper_160x300").show();
}function hideBanners(){$(".banner-leaderboard").hide();$(".skyscaper_160x600").hide();$(".skyscaper_160x600, .skyscaper_160x600 *").css("position:relative;top:0;");
$(".skyscaper_160x300").hide();$(".takeover").hide();}function showBanners(){$(".banner-leaderboard").show();$(".skyscaper_160x600").show();
$(".skyscaper_160x600, .skyscaper_160x600 *").css("position:relative;top:0;");$(".skyscaper_160x300").show();$(".takeover").show();
}function loadProgramInfo(a,b){$.ajax({url:"/Services/Robot.aspx/GetProgramInfo",type:"post",async:false,cache:false,timeout:30000,contentType:"application/json; charset=utf-8",data:$.toJSON({programId:b,programDate:a}),dataType:"json",processData:false,success:function(v,s){var h=v.d.split("|");
if(v.d.length==0||h.length==0){return;}var o=h[0];var e=h[1];var g=h[2];var i=h[3];var u=h[5];var x=h[6];var p=h[7];var z=h[8];
var f=h[9];var m=h[10];var q=h[11];var w=h[12];var A=h[16];var d=h[17];var n=h[18];var j=h[19];var c=h[20];p=p.split(":")[1].trim()!=""?p:"";
z=z.split(":")[1].trim()!=""&&z.split(":")[1].trim()!="/"?z:"";f=f.split(":")[1].trim()!=""?f:"";m=m.split(":")[1].trim()!=""?m:"";
q=q.split(":")[1].trim()!=""?q:"";w=w.split(":")[1].trim()!=""?w:"";var t=$("body #popupProgram");t.find("#channelLogo").attr("src",x);
t.find("#longDescriptionText").html(u+"<br />"+p+"<br /> "+f+" "+z+" "+w+"<br /><br />"+A+" "+d+" "+n+' <span class="red">'+j+"</span>");
t.find("#longDescriptionText").append(m+" "+q);t.find("#popupTitle").html(i);var l=e.substring(11,16)+" - "+g.substring(11,16);
t.find("#popupTime").html(l);t.find("#voteText").html('<a href="javascript:void(0);" onclick="sendVote('+o+");getToplist('"+e+"');\">Gilla</a>");
t.find("#voteImage").html('<a href="javascript:void(0);" onclick="sendVote('+o+");getToplist('"+e+"');\"><img src='/images/thumbsup.png' alt='Gilla' class='icon' /></a>");
var k=t.find("#imdbLink");if(c=="Genre: 06"||c=="Genre: 04"){k.click(function(){window.open("http://akas.imdb.com/Tsearch?"+i,"IMDb","menubar=1, toolbar=1,location=1,scrollbars=yes,resizable=yes,status=1,directories=1");
});k.css("display","inline");}else{k.css("display","none");}var y=t.find("#tipafriend");y.find("input[type=text], textarea").val("");
y.find(".error").html("").hide();y.find(".response").html("");y.find(".send").unbind("click");y.find(".send").click(function(D){var B={Name:y.find("input.senderName").val(),Email:y.find("input.senderEmail").val()};
var C={Name:y.find("input.recipientName").val(),Email:y.find("input.recipientEmail").val()};var E=y.find("textarea.messageBody").val();
sendTipFriend(o,E,B,C);D.preventDefault();return false;});Page_ClientValidate("TipFriend_ValidationGroup");t.find("a#addProgramToOutlook").click(function(B){location.href=("/Kalender/Outlook/?id="+o);
B.preventDefault();return false;});t.find("a#addToChart").click(function(C){var D=$("body #eventdroppopup");var B=v.d.split("|");
if(B.length>0){D.find("#eventdroppopuplogo").attr("src",x);D.find("#eventdroppopuptitle").html(i);D.find("#eventdroppopupdate").val(e);
D.find("#eventdroppopupid").val(o);}disableProgramPopup();D.css("visibility","visible");D.center(true);C.preventDefault();
$(".skyscaper_160x600").hide();$(".skyscaper_160x300").hide();$(".skyscaper_160x600, .skyscaper_160x600 *").css("position:relative;top:0;");
return false;});if(Date.parse(g)<new Date()){t.find(".hideable").hide();t.find(".hideable").parent().hide();t.find("#voteImage, #voteText").hide();
t.find("#voteImage, #voteText").parent().hide();}else{t.find(".hideable").show();t.find(".hideable").parent().show();t.find("#voteImage, #voteText").show();
t.find("#voteImage, #voteText").parent().show();}y.hide();},error:function(d,c,e){return"";}});}function checkCheckBoxes(a){if($(a).attr("id")=="ctl00_KanalpaketControl_CheckBox_31"){if($("body #popupAnpassadVy input[id='ctl00_KanalpaketControl_CheckBox_31']").attr("checked")==true){$("body #popupAnpassadVy input[type=checkbox]").attr("checked",false);
$("body #popupAnpassadVy input[id='ctl00_KanalpaketControl_CheckBox_31']").attr("checked",true);}}else{$("body #popupAnpassadVy input[id='ctl00_KanalpaketControl_CheckBox_31']").attr("checked",false);
}}function sendVote(a){$.ajax({url:"/Services/Robot.aspx/AddVote",type:"post",async:false,cache:false,timeout:30000,contentType:"application/json; charset=utf-8",data:$.toJSON({programId:a}),dataType:"json",processData:false,success:function(c,b){$("#VoteMessage").html(c.d);
},error:function(c,b,d){return"";}});}function sendTipFriend(programId,message,sender,recipient){$.ajax({url:"/Services/Robot.aspx/TipFriend",type:"post",async:false,cache:false,timeout:30000,contentType:"application/json; charset=utf-8",data:$.toJSON({programId:programId,message:message,recipientName:recipient.Name,recipientEmail:recipient.Email,senderName:sender.Name,senderEmail:sender.Email}),dataType:"json",processData:false,success:function(data,textStatus){$("#tipafriend").hide();
$("#tipafriend .response").html(data.d+"<br /><br />");$("#tipafriend .response").show();},error:function(XMLHttpRequest,textStatus,errorThrown){var ex=eval("("+XMLHttpRequest.responseText+")");
$("#tipafriend .error").html("Det gick inte att skicka tipset.<br /><br />");$("#tipafriend .error").show();return;}});}function Toggle(a){$("#"+a).toggleClass("show");
}function loadAVPopup(){if(popupAVStatus==0){hideBanners();$("body #popupAnpassadVy").css("z-index","100002");$("body #popupAnpassadVy").center(true);
$("body #popupAnpassadVy").fadeIn("fast");$("body #popupAnpassadVy").show();popupAVStatus=1;}}function disableAVPopup(){if(popupAVStatus==1){showBanners();
$("body #popupAnpassadVy").fadeOut("fast");$("body #popupAnpassadVy").hide();popupAVStatus=0;}}function loadExportSettingsPopup(){if(popupExportSettingsStatus==0){var hashcode="";
$.ajax({url:"/Services/Robot.aspx/GenerateUserSettingsHash",type:"POST",data:$.toJSON({ticks:new Date().getTime()}),async:false,timeout:30000,contentType:"application/json; charset=utf-8",dataType:"json",processData:false,success:function(data,textStatus){if(data.d!=""){var hashcode=eval(data.d);
var value=$("#ExportSettingsPopup input[type=text]").attr("defaultValue");$("#ExportSettingsPopup input[type=text]").val(value+hashcode);
}}});hideBanners();$("#ExportSettingsPopup").css("z-index","100002");$("#ExportSettingsPopup").center(true);$("#ExportSettingsPopup").fadeIn("fast");
$("#ExportSettingsPopup").show();popupExportSettingsStatus=1;}}function disableExportSettingsPopup(){if(popupExportSettingsStatus==1){showBanners();
$("#ExportSettingsPopup").fadeOut("fast");$("#ExportSettingsPopup").hide();popupExportSettingsStatus=0;}}function loadProgramPopup(b,c){loadProgramInfo(b,c);
if(popupProgramStatus==0){hideBanners();var a=$("body #popupProgram");a.css("z-index","100003");a.center(true);a.fadeIn("fast");
a.show();popupProgramStatus=1;}}function disableProgramPopup(){if(popupProgramStatus==1){showBanners();$("#popupProgram").fadeOut("fast");
$("#VoteMessage").html("");$("#tipafriend").addClass("hide");$("#popupProgram").hide();$("#PopupInfo").hide();popupProgramStatus=0;
}}var added=0;var popupStatus=0;var popupSmallStatus=0;var popupProgramStatus=0;var popupAVStatus=0;var popupExportSettingsStatus=0;
$(function(){$(".channelGroup .chart .cprograms:not(.half)").each(function(){$(this).parent().height($(this).parent().parent().height());
});var b=135;var a=0;if($(".banner-leaderboard div img").length>0){a=120;}$(".searchform,.searchbtn").css("top",a+b);initScrollPanes();
$("#ctl00_ContentPlaceHolder1_MyProgramsControl_EventDropPanel").droppable({hoverClass:"mycharthover",drop:function(f,c){var d=c.draggable.attr("data-program");
var e=c.draggable.attr("data-programdate");var g=$("#eventdroppopup");g.find("#eventdroppopupid").val(d);$.ajax({url:"/Services/Robot.aspx/GetProgramInfo",type:"post",async:false,cache:false,timeout:30000,contentType:"application/json; charset=utf-8",data:$.toJSON({programId:d,programDate:e}),dataType:"json",processData:false,success:function(k,h){var j=k.d.split("|");
if(j.length>0){var i=j[6].replace("/images/logos/","/images/logos/small/");g.find("#eventdroppopuplogo").attr("src",i);g.find("#eventdroppopuptitle").html(j[3]);
g.find("#eventdroppopupdate").val(j[1]);g.find("#eventdroppopuptime").html(j[1].substring(11,16));}g.center(true);g.css("visibility","visible");
$(".skyscaper_160x600").hide();$(".skyscaper_160x300").hide();$(".skyscaper_160x600, .skyscaper_160x600 *").css("position:relative;top:0;");
},error:function(i,h,j){}});}});$("li.headlink").hover(function(){$("ul",this).css("display","block");},function(){$("ul",this).css("display","none");
});if($(".rightcolumn").height()<$(".maincolumn").height()){$(".rightcolumn").height($(".maincolumn").height());}$("#follower").scrollFollow();
$(document).keypress(function(c){if(c.keyCode==27&&popupSmallStatus==1){disableSmallPopup();}if(c.keyCode==27&&popupProgramStatus==1){disableProgramPopup();
}});$("#popupProgramClose").click(function(){disableProgramPopup();});$(".mychart h3 a.print").click(function(g){var h=640;
var c=500;var d=parseInt((screen.availWidth/2)-(h/2),10);var f=parseInt((screen.availHeight/2)-(c/2),10);var e="width="+h+", height="+c+", status=1, resizable=1, scrollbars=1, left="+d+", top="+f+", screenX="+d+", screenY="+f;
window.open($(this).attr("href"),"myChart_PrinterFriendly",e);g.preventDefault();});});function readCookie(d){var b=d+"=";
var f=document.cookie.split(";");for(var a=0;a<f.length;a++){var e=f[a];while(e.charAt(0)==" "){e=e.substring(1,e.length);
}if(e.indexOf(b)==0){return e.substring(b.length,e.length);}}return null;}