(function(){var W=this,ab,F=W.jQuery,S=W.$,T=W.jQuery=W.$=function(b,a){return new T.fn.init(b,a)},M=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,ac=/^.[^:#\[\.,]*$/;T.fn=T.prototype={init:function(e,b){e=e||document;if(e.nodeType){this[0]=e;this.length=1;this.context=e;return this}if(typeof e==="string"){var c=M.exec(e);if(c&&(c[1]||!b)){if(c[1]){e=T.clean([c[1]],b)}else{var a=document.getElementById(c[3]);if(a&&a.id!=c[3]){return T().find(e)}var d=T(a||[]);d.context=document;d.selector=e;return d}}else{return T(b).find(e)}}else{if(T.isFunction(e)){return T(document).ready(e)}}if(e.selector&&e.context){this.selector=e.selector;this.context=e.context}return this.setArray(T.isArray(e)?e:T.makeArray(e))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(a){return a===ab?Array.prototype.slice.call(this):this[a]},pushStack:function(c,a,d){var b=T(c);b.prevObject=this;b.context=this.context;if(a==="find"){b.selector=this.selector+(this.selector?" ":"")+d}else{if(a){b.selector=this.selector+"."+a+"("+d+")"}}return b},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this},each:function(a,b){return T.each(this,a,b)},index:function(a){return T.inArray(a&&a.jquery?a[0]:a,this)},attr:function(c,a,b){var d=c;if(typeof c==="string"){if(a===ab){return this[0]&&T[b||"attr"](this[0],c)}else{d={};d[c]=a}}return this.each(function(e){for(c in d){T.attr(b?this.style:this,c,T.prop(this,d[c],b,e,c))}})},css:function(b,a){if((b=="width"||b=="height")&&parseFloat(a)<0){a=ab}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="";T.each(a||this,function(){T.each(this.childNodes,function(){if(this.nodeType!=8){b+=this.nodeType!=1?this.nodeValue:T.fn.text([this])}})});return b},wrapAll:function(b){if(this[0]){var a=T(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(){T(this).contents().wrapAll(a)})},wrap:function(a){return this.each(function(){T(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||T([])},push:[].push,sort:[].sort,splice:[].splice,find:function(b){if(this.length===1){var a=this.pushStack([],"find",b);a.length=0;T.find(b,this[0],a);return a}else{return this.pushStack(T.unique(T.map(this,function(c){return T.find(b,c)})),"find",b)}},clone:function(b){var d=this.map(function(){if(!T.support.noCloneEvent&&!T.isXMLDoc(this)){var f=this.outerHTML;if(!f){var e=this.ownerDocument.createElement("div");e.appendChild(this.cloneNode(true));f=e.innerHTML}return T.clean([f.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 g=T.data(a[c],"events");for(var e in g){for(var f in g[e]){T.event.add(this,e,g[e][f],g[e][f].data)}}c++})}return d},filter:function(a){return this.pushStack(T.isFunction(a)&&T.grep(this,function(b,c){return a.call(b,c)})||T.multiFilter(a,T.grep(this,function(b){return b.nodeType===1})),"filter",a)},closest:function(c){var a=T.expr.match.POS.test(c)?T(c):null,b=0;return this.map(function(){var d=this;while(d&&d.ownerDocument){if(a?a.index(d)>-1:T(d).is(c)){T.data(d,"closest",b);return d}d=d.parentNode;b++}})},not:function(b){if(typeof b==="string"){if(ac.test(b)){return this.pushStack(T.multiFilter(b,this,true),"not",b)}else{b=T.multiFilter(b,this)}}var a=b.length&&b[b.length-1]!==ab&&!b.nodeType;return this.filter(function(){return a?T.inArray(this,b)<0:this!=b})},add:function(a){return this.pushStack(T.unique(T.merge(this.get(),typeof a==="string"?T(a):T.makeArray(a))))},is:function(a){return !!a&&T.multiFilter(a,this).length>0},hasClass:function(a){return !!a&&this.is("."+a)},val:function(c){if(c===ab){var k=this[0];if(k){if(T.nodeName(k,"option")){return(k.attributes.value||{}).specified?k.value:k.text}if(T.nodeName(k,"select")){var e=k.selectedIndex,b=[],a=k.options,f=k.type=="select-one";if(e<0){return null}for(var h=f?e:0,d=f?e+1:a.length;h<d;h++){var g=a[h];if(g.selected){c=T(g).val();if(f){return c}b.push(c)}}return b}return(k.value||"").replace(/\r/g,"")}return ab}if(typeof c==="number"){c+=""}return this.each(function(){if(this.nodeType!=1){return}if(T.isArray(c)&&/radio|checkbox/.test(this.type)){this.checked=(T.inArray(this.value,c)>=0||T.inArray(this.name,c)>=0)}else{if(T.nodeName(this,"select")){var l=T.makeArray(c);T("option",this).each(function(){this.selected=(T.inArray(this.value,l)>=0||T.inArray(this.text,l)>=0)});if(!l.length){this.selectedIndex=-1}}else{this.value=c}}})},html:function(a){return a===ab?(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(T.map(this,function(b,c){return a.call(b,c,b)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(d,a,b){if(this[0]){var e=(this[0].ownerDocument||this[0]).createDocumentFragment(),h=T.clean(d,(this[0].ownerDocument||this[0]),e),f=e.firstChild;if(f){for(var g=0,k=this.length;g<k;g++){b.call(c(this[g],f),this.length>1||g>0?e.cloneNode(true):e)}}if(h){T.each(h,E)}}return this;function c(m,l){return a&&T.nodeName(m,"table")&&T.nodeName(l,"tr")?(m.getElementsByTagName("tbody")[0]||m.appendChild(m.ownerDocument.createElement("tbody"))):m}}};T.fn.init.prototype=T.fn;function E(b,a){if(a.src){T.ajax({url:a.src,async:false,dataType:"script"})}else{T.globalEval(a.text||a.textContent||a.innerHTML||"")}if(a.parentNode){a.parentNode.removeChild(a)}}function ad(){return +new Date}T.extend=T.fn.extend=function(){var c=arguments[0]||{},e=1,d=arguments.length,h=false,f;if(typeof c==="boolean"){h=c;c=arguments[1]||{};e=2}if(typeof c!=="object"&&!T.isFunction(c)){c={}}if(d==e){c=this;--e}for(;e<d;e++){if((f=arguments[e])!=null){for(var g in f){var b=c[g],a=f[g];if(c===a){continue}if(h&&a&&typeof a==="object"&&!a.nodeType){c[g]=T.extend(h,b||(a.length!=null?[]:{}),a)}else{if(a!==ab){c[g]=a}}}}}return c};var ag=/z-?index|font-?weight|opacity|zoom|line-?height/i,Q=document.defaultView||{},L=Object.prototype.toString;T.extend({noConflict:function(a){W.$=S;if(a){W.jQuery=F}return T},isFunction:function(a){return L.call(a)==="[object Function]"},isArray:function(a){return L.call(a)==="[object Array]"},isXMLDoc:function(a){return a.nodeType===9&&a.documentElement.nodeName!=="HTML"||!!a.ownerDocument&&T.isXMLDoc(a.ownerDocument)},globalEval:function(a){if(a&&/\S/.test(a)){var b=document.getElementsByTagName("head")[0]||document.documentElement,c=document.createElement("script");c.type="text/javascript";if(T.support.scriptEval){c.appendChild(document.createTextNode(a))}else{c.text=a}b.insertBefore(c,b.firstChild);b.removeChild(c)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()==b.toUpperCase()},each:function(e,a,f){var g,d=0,c=e.length;if(f){if(c===ab){for(g in e){if(a.apply(e[g],f)===false){break}}}else{for(;d<c;){if(a.apply(e[d++],f)===false){break}}}}else{if(c===ab){for(g in e){if(a.call(e[g],g,e[g])===false){break}}}else{for(var b=e[0];d<c&&a.call(b,d,b)!==false;b=e[++d]){}}}return e},prop:function(b,a,c,d,e){if(T.isFunction(a)){a=a.call(b,d)}return typeof a==="number"&&c=="curCSS"&&!ag.test(e)?a+"px":a},className:{add:function(b,a){T.each((a||"").split(/\s+/),function(d,c){if(b.nodeType==1&&!T.className.has(b.className,c)){b.className+=(b.className?" ":"")+c}})},remove:function(b,a){if(b.nodeType==1){b.className=a!==ab?T.grep(b.className.split(/\s+/),function(c){return !T.className.has(a,c)}).join(" "):""}},has:function(a,b){return a&&T.inArray(b,(a.className||a).toString().split(/\s+/))>-1}},swap:function(b,c,a){var e={};for(var d in c){e[d]=b.style[d];b.style[d]=c[d]}a.call(b);for(var d in c){b.style[d]=e[d]}},css:function(e,g,c,h){if(g=="width"||g=="height"){var a,f={position:"absolute",visibility:"hidden",display:"block"},b=g=="width"?["Left","Right"]:["Top","Bottom"];function d(){a=g=="width"?e.offsetWidth:e.offsetHeight;if(h==="border"){return}T.each(b,function(){if(!h){a-=parseFloat(T.curCSS(e,"padding"+this,true))||0}if(h==="margin"){a+=parseFloat(T.curCSS(e,"margin"+this,true))||0}else{a-=parseFloat(T.curCSS(e,"border"+this+"Width",true))||0}})}if(e.offsetWidth!==0){d()}else{T.swap(e,f,d)}return Math.max(0,Math.round(a))}return T.curCSS(e,g,c)},curCSS:function(e,h,g){var b,k=e.style;if(h=="opacity"&&!T.support.opacity){b=T.attr(k,"opacity");return b==""?"1":b}if(h.match(/float/i)){h=H}if(!g&&k&&k[h]){b=k[h]}else{if(Q.getComputedStyle){if(h.match(/float/i)){h="float"}h=h.replace(/([A-Z])/g,"-$1").toLowerCase();var a=Q.getComputedStyle(e,null);if(a){b=a.getPropertyValue(h)}if(h=="opacity"&&b==""){b="1"}}else{if(e.currentStyle){var d=h.replace(/\-(\w)/g,function(m,l){return l.toUpperCase()});b=e.currentStyle[h]||e.currentStyle[d];if(!/^\d+(px)?$/i.test(b)&&/^\d/.test(b)){var f=k.left,c=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left;k.left=b||0;b=k.pixelLeft+"px";k.left=f;e.runtimeStyle.left=c}}}}return b},clean:function(g,b,d){b=b||document;if(typeof b.createElement==="undefined"){b=b.ownerDocument||b[0]&&b[0].ownerDocument||document}if(!d&&g.length===1&&typeof g[0]==="string"){var e=/^<(\w+)\s*\/?>$/.exec(g[0]);if(e){return[b.createElement(e[1])]}}var f=[],h=[],a=b.createElement("div");T.each(g,function(o,k){if(typeof k==="number"){k+=""}if(!k){return}if(typeof k==="string"){k=k.replace(/(<(\w+)[^>]*?)\/>/g,function(u,t,v){return v.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?u:t+"></"+v+">"});var q=k.replace(/^\s+/,"").substring(0,10).toLowerCase();var m=!q.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!q.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||q.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!q.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!q.indexOf("<td")||!q.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!q.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!T.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];a.innerHTML=m[1]+k+m[2];while(m[0]--){a=a.lastChild}if(!T.support.tbody){var l=/<tbody/i.test(k),r=!q.indexOf("<table")&&!l?a.firstChild&&a.firstChild.childNodes:m[1]=="<table>"&&!l?a.childNodes:[];for(var s=r.length-1;s>=0;--s){if(T.nodeName(r[s],"tbody")&&!r[s].childNodes.length){r[s].parentNode.removeChild(r[s])}}}if(!T.support.leadingWhitespace&&/^\s/.test(k)){a.insertBefore(b.createTextNode(k.match(/^\s*/)[0]),a.firstChild)}k=T.makeArray(a.childNodes)}if(k.nodeType){f.push(k)}else{f=T.merge(f,k)}});if(d){for(var c=0;f[c];c++){if(T.nodeName(f[c],"script")&&(!f[c].type||f[c].type.toLowerCase()==="text/javascript")){h.push(f[c].parentNode?f[c].parentNode.removeChild(f[c]):f[c])}else{if(f[c].nodeType===1){f.splice.apply(f,[c+1,0].concat(T.makeArray(f[c].getElementsByTagName("script"))))}d.appendChild(f[c])}}return h}return f},attr:function(c,f,b){if(!c||c.nodeType==3||c.nodeType==8){return ab}var e=!T.isXMLDoc(c),a=b!==ab;f=e&&T.props[f]||f;if(c.tagName){var g=/href|src|style/.test(f);if(f=="selected"&&c.parentNode){c.parentNode.selectedIndex}if(f in c&&e&&!g){if(a){if(f=="type"&&T.nodeName(c,"input")&&c.parentNode){throw"type property can't be changed"}c[f]=b}if(T.nodeName(c,"form")&&c.getAttributeNode(f)){return c.getAttributeNode(f).nodeValue}if(f=="tabIndex"){var d=c.getAttributeNode("tabIndex");return d&&d.specified?d.value:c.nodeName.match(/(button|input|object|select|textarea)/i)?0:c.nodeName.match(/^(a|area)$/i)&&c.href?0:ab}return c[f]}if(!T.support.style&&e&&f=="style"){return T.attr(c.style,"cssText",b)}if(a){c.setAttribute(f,""+b)}var h=!T.support.hrefNormalized&&e&&g?c.getAttribute(f,2):c.getAttribute(f);return h===null?ab:h}if(!T.support.opacity&&f=="opacity"){if(a){c.zoom=1;c.filter=(c.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(b)+""=="NaN"?"":"alpha(opacity="+b*100+")")}return c.filter&&c.filter.indexOf("opacity=")>=0?(parseFloat(c.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}f=f.replace(/-([a-z])/ig,function(l,k){return k.toUpperCase()});if(a){c[f]=b}return c[f]},trim:function(a){return(a||"").replace(/^\s+|\s+$/g,"")},makeArray:function(a){var c=[];if(a!=null){var b=a.length;if(b==null||typeof a==="string"||T.isFunction(a)||a.setInterval){c[0]=a}else{while(b){c[--b]=a[b]}}}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,e){var d=0,c,a=b.length;if(!T.support.getAll){while((c=e[d++])!=null){if(c.nodeType!=8){b[a++]=c}}}else{while((c=e[d++])!=null){b[a++]=c}}return b},unique:function(a){var f=[],g={};try{for(var e=0,d=a.length;e<d;e++){var b=T.data(a[e]);if(!g[b]){g[b]=true;f.push(a[e])}}}catch(c){f=a}return f},grep:function(e,a,f){var d=[];for(var c=0,b=e.length;c<b;c++){if(!f!=!a(e[c],c)){d.push(e[c])}}return d},map:function(f,a){var e=[];for(var d=0,c=f.length;d<c;d++){var b=a(f[d],d);if(b!=null){e[e.length]=b}}return e.concat.apply([],e)}});var O=navigator.userAgent.toLowerCase();T.browser={version:(O.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(O),opera:/opera/.test(O),msie:/msie/.test(O)&&!/opera/.test(O),mozilla:/mozilla/.test(O)&&!/(compatible|webkit)/.test(O)};T.each({parent:function(a){return a.parentNode},parents:function(a){return T.dir(a,"parentNode")},next:function(a){return T.nth(a,2,"nextSibling")},prev:function(a){return T.nth(a,2,"previousSibling")},nextAll:function(a){return T.dir(a,"nextSibling")},prevAll:function(a){return T.dir(a,"previousSibling")},siblings:function(a){return T.sibling(a.parentNode.firstChild,a)},children:function(a){return T.sibling(a.firstChild)},contents:function(a){return T.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:T.makeArray(a.childNodes)}},function(b,a){T.fn[b]=function(d){var c=T.map(this,a);if(d&&typeof d=="string"){c=T.multiFilter(d,c)}return this.pushStack(T.unique(c),b,d)}});T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,a){T.fn[b]=function(h){var e=[],c=T(h);for(var d=0,g=c.length;d<g;d++){var f=(d>0?this.clone(true):this).get();T.fn[a].apply(T(c[d]),f);e=e.concat(f)}return this.pushStack(e,b,h)}});T.each({removeAttr:function(a){T.attr(this,a,"");if(this.nodeType==1){this.removeAttribute(a)}},addClass:function(a){T.className.add(this,a)},removeClass:function(a){T.className.remove(this,a)},toggleClass:function(a,b){if(typeof b!=="boolean"){b=!T.className.has(this,a)}T.className[b?"add":"remove"](this,a)},remove:function(a){if(!a||T.filter(a,[this]).length){T("*",this).add([this]).each(function(){T.event.remove(this);T.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){T(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(b,a){T.fn[b]=function(){return this.each(a,arguments)}});function Y(b,a){return b[0]&&parseInt(T.curCSS(b[0],a,true),10)||0}var aa="jQuery"+ad(),I=0,R={};T.extend({cache:{},data:function(c,d,b){c=c==W?R:c;var a=c[aa];if(!a){a=c[aa]=++I}if(d&&!T.cache[a]){T.cache[a]={}}if(b!==ab){T.cache[a][d]=b}return d?T.cache[a][d]:a},removeData:function(c,d){c=c==W?R:c;var a=c[aa];if(d){if(T.cache[a]){delete T.cache[a][d];d="";for(d in T.cache[a]){break}if(!d){T.removeData(c)}}}else{try{delete c[aa]}catch(b){if(c.removeAttribute){c.removeAttribute(aa)}}delete T.cache[a]}},queue:function(c,d,a){if(c){d=(d||"fx")+"queue";var b=T.data(c,d);if(!b||T.isArray(a)){b=T.data(c,d,T.makeArray(a))}else{if(a){b.push(a)}}}return b},dequeue:function(a,b){var d=T.queue(a,b),c=d.shift();if(!b||b==="fx"){c=d[0]}if(c!==ab){c.call(a)}}});T.fn.extend({data:function(d,b){var a=d.split(".");a[1]=a[1]?"."+a[1]:"";if(b===ab){var c=this.triggerHandler("getData"+a[1]+"!",[a[0]]);if(c===ab&&this.length){c=T.data(this[0],d)}return c===ab&&a[1]?this.data(a[0]):c}else{return this.trigger("setData"+a[1]+"!",[a[0],b]).each(function(){T.data(this,d,b)})}},removeData:function(a){return this.each(function(){T.removeData(this,a)})},queue:function(b,a){if(typeof b!=="string"){a=b;b="fx"}if(a===ab){return T.queue(this[0],b)}return this.each(function(){var c=T.queue(this,b,a);if(b=="fx"&&c.length==1){c[0].call(this)}})},dequeue:function(a){return this.each(function(){T.dequeue(this,a)})}});(function(){var b=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,h=0,o=Object.prototype.toString;var r=function(v,B,ao,an){ao=ao||[];B=B||document;if(B.nodeType!==1&&B.nodeType!==9){return[]}if(!v||typeof v!=="string"){return ao}var u=[],z,ak,D,C,am,A,y=true;b.lastIndex=0;while((z=b.exec(v))!==null){u.push(z[1]);if(z[2]){A=RegExp.rightContext;break}}if(u.length>1&&g.exec(v)){if(u.length===2&&m.relative[u[0]]){ak=l(u[0]+u[1],B)}else{ak=m.relative[u[0]]?[B]:r(u.shift(),B);while(u.length){v=u.shift();if(m.relative[v]){v+=u.shift()}ak=l(v,ak)}}}else{var al=an?{expr:u.pop(),set:s(an)}:r.find(u.pop(),u.length===1&&B.parentNode?B.parentNode:B,c(B));ak=r.filter(al.expr,al.set);if(u.length>0){D=s(ak)}else{y=false}while(u.length){var ai=u.pop(),aj=ai;if(!m.relative[ai]){ai=""}else{aj=u.pop()}if(aj==null){aj=B}m.relative[ai](D,aj,c(B))}}if(!D){D=ak}if(!D){throw"Syntax error, unrecognized expression: "+(ai||v)}if(o.call(D)==="[object Array]"){if(!y){ao.push.apply(ao,D)}else{if(B.nodeType===1){for(var t=0;D[t]!=null;t++){if(D[t]&&(D[t]===true||D[t].nodeType===1&&k(B,D[t]))){ao.push(ak[t])}}}else{for(var t=0;D[t]!=null;t++){if(D[t]&&D[t].nodeType===1){ao.push(ak[t])}}}}}else{s(D,ao)}if(A){r(A,B,ao,an);if(q){hasDuplicate=false;ao.sort(q);if(hasDuplicate){for(var t=1;t<ao.length;t++){if(ao[t]===ao[t-1]){ao.splice(t--,1)}}}}}return ao};r.matches=function(u,t){return r(u,null,null,t)};r.find=function(t,C,D){var u,y;if(!t){return[]}for(var z=0,A=m.order.length;z<A;z++){var v=m.order[z],y;if((y=m.match[v].exec(t))){var B=RegExp.leftContext;if(B.substr(B.length-1)!=="\\"){y[1]=(y[1]||"").replace(/\\/g,"");u=m.find[v](y,C,D);if(u!=null){t=t.replace(m.match[v],"");break}}}}if(!u){u=C.getElementsByTagName("*")}return{set:u,expr:t}};r.filter=function(am,an,aj,z){var A=am,D=[],t=an,v,C,u=an&&an[0]&&c(an[0]);while(am&&an.length){for(var ao in m.filter){if((v=m.match[ao].exec(am))!=null){var B=m.filter[ao],ai,ak;C=false;if(t==D){D=[]}if(m.preFilter[ao]){v=m.preFilter[ao](v,t,aj,D,z,u);if(!v){C=ai=true}else{if(v===true){continue}}}if(v){for(var y=0;(ak=t[y])!=null;y++){if(ak){ai=B(ak,v,y,t);var al=z^!!ai;if(aj&&ai!=null){if(al){C=true}else{t[y]=false}}else{if(al){D.push(ak);C=true}}}}}if(ai!==ab){if(!aj){t=D}am=am.replace(m.match[ao],"");if(!C){return[]}break}}}if(am==A){if(C==null){throw"Syntax error, unrecognized expression: "+am}else{break}}A=am}return t};var m=r.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(t){return t.getAttribute("href")}},relative:{"+":function(t,C,u){var y=typeof C==="string",D=y&&!/\W/.test(C),v=y&&!D;if(D&&!u){C=C.toUpperCase()}for(var z=0,A=t.length,B;z<A;z++){if((B=t[z])){while((B=B.previousSibling)&&B.nodeType!==1){}t[z]=v||B&&B.nodeName===C?B||false:B===C}}if(v){r.filter(C,t,true)}},">":function(A,v,z){var C=typeof v==="string";if(C&&!/\W/.test(v)){v=z?v:v.toUpperCase();for(var u=0,y=A.length;u<y;u++){var B=A[u];if(B){var t=B.parentNode;A[u]=t.nodeName===v?t:false}}}else{for(var u=0,y=A.length;u<y;u++){var B=A[u];if(B){A[u]=C?B.parentNode:B.parentNode===v}}if(C){r.filter(v,A,true)}}},"":function(t,v,z){var u=h++,y=a;if(!v.match(/\W/)){var A=v=z?v:v.toUpperCase();y=d}y("parentNode",v,u,t,A,z)},"~":function(t,v,z){var u=h++,y=a;if(typeof v==="string"&&!v.match(/\W/)){var A=v=z?v:v.toUpperCase();y=d}y("previousSibling",v,u,t,A,z)}},find:{ID:function(v,u,t){if(typeof u.getElementById!=="undefined"&&!t){var y=u.getElementById(v[1]);return y?[y]:[]}},NAME:function(u,A,z){if(typeof A.getElementsByName!=="undefined"){var v=[],B=A.getElementsByName(u[1]);for(var t=0,y=B.length;t<y;t++){if(B[t].getAttribute("name")===u[1]){v.push(B[t])}}return v.length===0?null:v}},TAG:function(u,t){return t.getElementsByTagName(u[1])}},preFilter:{CLASS:function(t,v,u,y,A,z){t=" "+t[1].replace(/\\/g,"")+" ";if(z){return t}for(var C=0,B;(B=v[C])!=null;C++){if(B){if(A^(B.className&&(" "+B.className+" ").indexOf(t)>=0)){if(!u){y.push(B)}}else{if(u){v[C]=false}}}}return false},ID:function(t){return t[1].replace(/\\/g,"")},TAG:function(u,v){for(var t=0;v[t]===false;t++){}return v[t]&&c(v[t])?u[1]:u[1].toUpperCase()},CHILD:function(u){if(u[1]=="nth"){var t=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(u[2]=="even"&&"2n"||u[2]=="odd"&&"2n+1"||!/\D/.test(u[2])&&"0n+"+u[2]||u[2]);u[2]=(t[1]+(t[2]||1))-0;u[3]=t[3]-0}u[0]=h++;return u},ATTR:function(B,v,u,y,A,z){var t=B[1].replace(/\\/g,"");if(!z&&m.attrMap[t]){B[1]=m.attrMap[t]}if(B[2]==="~="){B[4]=" "+B[4]+" "}return B},PSEUDO:function(A,v,u,y,z){if(A[1]==="not"){if(A[3].match(b).length>1||/^\w/.test(A[3])){A[3]=r(A[3],null,null,v)}else{var t=r.filter(A[3],v,u,true^z);if(!u){y.push.apply(y,t)}return false}}else{if(m.match.POS.test(A[0])||m.match.CHILD.test(A[0])){return true}}return A},POS:function(t){t.unshift(true);return t}},filters:{enabled:function(t){return t.disabled===false&&t.type!=="hidden"},disabled:function(t){return t.disabled===true},checked:function(t){return t.checked===true},selected:function(t){t.parentNode.selectedIndex;return t.selected===true},parent:function(t){return !!t.firstChild},empty:function(t){return !t.firstChild},has:function(t,u,v){return !!r(v[3],t).length},header:function(t){return/h\d/i.test(t.nodeName)},text:function(t){return"text"===t.type},radio:function(t){return"radio"===t.type},checkbox:function(t){return"checkbox"===t.type},file:function(t){return"file"===t.type},password:function(t){return"password"===t.type},submit:function(t){return"submit"===t.type},image:function(t){return"image"===t.type},reset:function(t){return"reset"===t.type},button:function(t){return"button"===t.type||t.nodeName.toUpperCase()==="BUTTON"},input:function(t){return/input|select|textarea|button/i.test(t.nodeName)}},setFilters:{first:function(t,u){return u===0},last:function(u,v,y,t){return v===t.length-1},even:function(t,u){return u%2===0},odd:function(t,u){return u%2===1},lt:function(t,u,v){return u<v[3]-0},gt:function(t,u,v){return u>v[3]-0},nth:function(t,u,v){return v[3]-0==u},eq:function(t,u,v){return v[3]-0==u}},filter:{PSEUDO:function(A,u,t,z){var v=u[1],C=m.filters[v];if(C){return C(A,t,u,z)}else{if(v==="contains"){return(A.textContent||A.innerText||"").indexOf(u[3])>=0}else{if(v==="not"){var B=u[3];for(var t=0,y=B.length;t<y;t++){if(B[t]===A){return false}}return true}}}},CHILD:function(C,z){var u=z[1],B=C;switch(u){case"only":case"first":while(B=B.previousSibling){if(B.nodeType===1){return false}}if(u=="first"){return true}B=C;case"last":while(B=B.nextSibling){if(B.nodeType===1){return false}}return true;case"nth":var A=z[2],D=z[3];if(A==1&&D==0){return true}var v=z[0],ai=C.parentNode;if(ai&&(ai.sizcache!==v||!C.nodeIndex)){var y=0;for(B=ai.firstChild;B;B=B.nextSibling){if(B.nodeType===1){B.nodeIndex=++y}}ai.sizcache=v}var t=C.nodeIndex-D;if(A==0){return t==0}else{return(t%A==0&&t/A>=0)}}},ID:function(t,u){return t.nodeType===1&&t.getAttribute("id")===u},TAG:function(t,u){return(u==="*"&&t.nodeType===1)||t.nodeName===u},CLASS:function(t,u){return(" "+(t.className||t.getAttribute("class"))+" ").indexOf(u)>-1},ATTR:function(A,t){var u=t[1],y=m.attrHandle[u]?m.attrHandle[u](A):A[u]!=null?A[u]:A.getAttribute(u),z=y+"",B=t[2],v=t[4];return y==null?B==="!=":B==="="?z===v:B==="*="?z.indexOf(v)>=0:B==="~="?(" "+z+" ").indexOf(v)>=0:!v?z&&y!==false:B==="!="?z!=v:B==="^="?z.indexOf(v)===0:B==="$="?z.substr(z.length-v.length)===v:B==="|="?z===v||z.substr(0,v.length+1)===v+"-":false},POS:function(A,v,u,z){var y=v[2],t=m.setFilters[y];if(t){return t(A,u,v,z)}}}};var g=m.match.POS;for(var e in m.match){m.match[e]=RegExp(m.match[e].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var s=function(t,u){t=Array.prototype.slice.call(t);if(u){u.push.apply(u,t);return u}return t};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(f){s=function(z,t){var v=t||[];if(o.call(z)==="[object Array]"){Array.prototype.push.apply(v,z)}else{if(typeof z.length==="number"){for(var u=0,y=z.length;u<y;u++){v.push(z[u])}}else{for(var u=0;z[u];u++){v.push(z[u])}}}return v}}var q;if(document.documentElement.compareDocumentPosition){q=function(u,v){var t=u.compareDocumentPosition(v)&4?-1:u===v?0:1;if(t===0){hasDuplicate=true}return t}}else{if("sourceIndex" in document.documentElement){q=function(u,v){var t=u.sourceIndex-v.sourceIndex;if(t===0){hasDuplicate=true}return t}}else{if(document.createRange){q=function(t,v){var u=t.ownerDocument.createRange(),y=v.ownerDocument.createRange();u.selectNode(t);u.collapse(true);y.selectNode(v);y.collapse(true);var z=u.compareBoundaryPoints(Range.START_TO_END,y);if(z===0){hasDuplicate=true}return z}}}}(function(){var u=document.createElement("form"),t="script"+(new Date).getTime();u.innerHTML="<input name='"+t+"'/>";var v=document.documentElement;v.insertBefore(u,v.firstChild);if(!!document.getElementById(t)){m.find.ID=function(B,A,z){if(typeof A.getElementById!=="undefined"&&!z){var y=A.getElementById(B[1]);return y?y.id===B[1]||typeof y.getAttributeNode!=="undefined"&&y.getAttributeNode("id").nodeValue===B[1]?[y]:ab:[]}};m.filter.ID=function(z,y){var A=typeof z.getAttributeNode!=="undefined"&&z.getAttributeNode("id");return z.nodeType===1&&A&&A.nodeValue===y}}v.removeChild(u)})();(function(){var t=document.createElement("div");t.appendChild(document.createComment(""));if(t.getElementsByTagName("*").length>0){m.find.TAG=function(y,z){var A=z.getElementsByTagName(y[1]);if(y[1]==="*"){var u=[];for(var v=0;A[v];v++){if(A[v].nodeType===1){u.push(A[v])}}A=u}return A}}t.innerHTML="<a href='#'></a>";if(t.firstChild&&typeof t.firstChild.getAttribute!=="undefined"&&t.firstChild.getAttribute("href")!=="#"){m.attrHandle.href=function(u){return u.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var u=r,t=document.createElement("div");t.innerHTML="<p class='TEST'></p>";if(t.querySelectorAll&&t.querySelectorAll(".TEST").length===0){return}r=function(A,B,y,v){B=B||document;if(!v&&B.nodeType===9&&!c(B)){try{return s(B.querySelectorAll(A),y)}catch(z){}}return u(A,B,y,v)};r.find=u.find;r.filter=u.filter;r.selectors=u.selectors;r.matches=u.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var t=document.createElement("div");t.innerHTML="<div class='test e'></div><div class='test'></div>";if(t.getElementsByClassName("e").length===0){return}t.lastChild.className="e";if(t.getElementsByClassName("e").length===1){return}m.order.splice(1,0,"CLASS");m.find.CLASS=function(y,v,u){if(typeof v.getElementsByClassName!=="undefined"&&!u){return v.getElementsByClassName(y[1])}}})()}function d(B,u,v,D,t,ai){var aj=B=="previousSibling"&&!ai;for(var z=0,A=D.length;z<A;z++){var C=D[z];if(C){if(aj&&C.nodeType===1){C.sizcache=v;C.sizset=z}C=C[B];var y=false;while(C){if(C.sizcache===v){y=D[C.sizset];break}if(C.nodeType===1&&!ai){C.sizcache=v;C.sizset=z}if(C.nodeName===u){y=C;break}C=C[B]}D[z]=y}}}function a(B,u,v,D,t,ai){var aj=B=="previousSibling"&&!ai;for(var z=0,A=D.length;z<A;z++){var C=D[z];if(C){if(aj&&C.nodeType===1){C.sizcache=v;C.sizset=z}C=C[B];var y=false;while(C){if(C.sizcache===v){y=D[C.sizset];break}if(C.nodeType===1){if(!ai){C.sizcache=v;C.sizset=z}if(typeof u!=="string"){if(C===u){y=true;break}}else{if(r.filter(u,[C]).length>0){y=C;break}}}C=C[B]}D[z]=y}}}var k=document.compareDocumentPosition?function(t,u){return t.compareDocumentPosition(u)&16}:function(t,u){return t!==u&&(t.contains?t.contains(u):true)};var c=function(t){return t.nodeType===9&&t.documentElement.nodeName!=="HTML"||!!t.ownerDocument&&c(t.ownerDocument)};var l=function(y,A){var t=[],C="",B,u=A.nodeType?[A]:A;while((B=m.match.PSEUDO.exec(y))){C+=B[0];y=y.replace(m.match.PSEUDO,"")}y=m.relative[y]?y+"*":y;for(var z=0,v=u.length;z<v;z++){r(y,u[z],t)}return r.filter(C,t)};T.find=r;T.filter=r.filter;T.expr=r.selectors;T.expr[":"]=T.expr.filters;r.selectors.filters.hidden=function(t){return t.offsetWidth===0||t.offsetHeight===0};r.selectors.filters.visible=function(t){return t.offsetWidth>0||t.offsetHeight>0};r.selectors.filters.animated=function(t){return T.grep(T.timers,function(u){return t===u.elem}).length};T.multiFilter=function(t,v,u){if(u){t=":not("+t+")"}return r.matches(t,v)};T.dir=function(u,v){var y=[],t=u[v];while(t&&t!=document){if(t.nodeType==1){y.push(t)}t=t[v]}return y};T.nth=function(z,y,u,t){y=y||1;var v=0;for(;z;z=z[u]){if(z.nodeType==1&&++v==y){break}}return z};T.sibling=function(t,u){var v=[];for(;t;t=t.nextSibling){if(t.nodeType==1&&t!=u){v.push(t)}}return v};return;W.Sizzle=r})();T.event={add:function(c,f,d,a){if(c.nodeType==3||c.nodeType==8){return}if(c.setInterval&&c!=W){c=W}if(!d.guid){d.guid=this.guid++}if(a!==ab){var e=d;d=this.proxy(e);d.data=a}var g=T.data(c,"events")||T.data(c,"events",{}),b=T.data(c,"handle")||T.data(c,"handle",function(){return typeof T!=="undefined"&&!T.event.triggered?T.event.handle.apply(arguments.callee.elem,arguments):ab});b.elem=c;T.each(f.split(/\s+/),function(m,l){var k=l.split(".");l=k.shift();d.type=k.slice().sort().join(".");var h=g[l];if(T.event.specialAll[l]){T.event.specialAll[l].setup.call(c,a,k)}if(!h){h=g[l]={};if(!T.event.special[l]||T.event.special[l].setup.call(c,a,k)===false){if(c.addEventListener){c.addEventListener(l,b,false)}else{if(c.attachEvent){c.attachEvent("on"+l,b)}}}}h[d.guid]=d;T.event.global[l]=true});c=null},guid:1,global:{},remove:function(b,e,c){if(b.nodeType==3||b.nodeType==8){return}var f=T.data(b,"events"),g,h;if(f){if(e===ab||(typeof e==="string"&&e.charAt(0)==".")){for(var d in f){this.remove(b,d+(e||""))}}else{if(e.type){c=e.handler;e=e.type}T.each(e.split(/\s+/),function(q,m){var k=m.split(".");m=k.shift();var o=RegExp("(^|\\.)"+k.slice().sort().join(".*\\.")+"(\\.|$)");if(f[m]){if(c){delete f[m][c.guid]}else{for(var l in f[m]){if(o.test(f[m][l].type)){delete f[m][l]}}}if(T.event.specialAll[m]){T.event.specialAll[m].teardown.call(b,k)}for(g in f[m]){break}if(!g){if(!T.event.special[m]||T.event.special[m].teardown.call(b,k)===false){if(b.removeEventListener){b.removeEventListener(m,T.data(b,"handle"),false)}else{if(b.detachEvent){b.detachEvent("on"+m,T.data(b,"handle"))}}}g=null;delete f[m]}}})}for(g in f){break}if(!g){var a=T.data(b,"handle");if(a){a.elem=null}T.removeData(b,"events");T.removeData(b,"handle")}}},trigger:function(d,b,e,h){var f=d.type||d;if(!h){d=typeof d==="object"?d[aa]?d:T.extend(T.Event(f),d):T.Event(f);if(f.indexOf("!")>=0){d.type=f=f.slice(0,-1);d.exclusive=true}if(!e){d.stopPropagation();if(this.global[f]){T.each(T.cache,function(){if(this.events&&this.events[f]){T.event.trigger(d,b,this.handle.elem)}})}}if(!e||e.nodeType==3||e.nodeType==8){return ab}d.result=ab;d.target=e;b=T.makeArray(b);b.unshift(d)}d.currentTarget=e;var c=T.data(e,"handle");if(c){c.apply(e,b)}if((!e[f]||(T.nodeName(e,"a")&&f=="click"))&&e["on"+f]&&e["on"+f].apply(e,b)===false){d.result=false}if(!h&&e[f]&&!d.isDefaultPrevented()&&!(T.nodeName(e,"a")&&f=="click")){this.triggered=true;try{e[f]()}catch(a){}}this.triggered=false;if(!d.isPropagationStopped()){var g=e.parentNode||e.ownerDocument;if(g){T.event.trigger(d,b,g,true)}}},handle:function(b){var c,h;b=arguments[0]=T.event.fix(b||W.event);b.currentTarget=this;var a=b.type.split(".");b.type=a.shift();c=!a.length&&!b.exclusive;var d=RegExp("(^|\\.)"+a.slice().sort().join(".*\\.")+"(\\.|$)");h=(T.data(this,"events")||{})[b.type];for(var f in h){var e=h[f];if(c||d.test(e.type)){b.handler=e;b.data=e.data;var g=e.apply(this,arguments);if(g!==ab){b.result=g;if(g===false){b.preventDefault();b.stopPropagation()}}if(b.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(c){if(c[aa]){return c}var e=c;c=T.Event(e);for(var d=this.props.length,a;d;){a=this.props[--d];c[a]=e[a]}if(!c.target){c.target=c.srcElement||document}if(c.target.nodeType==3){c.target=c.target.parentNode}if(!c.relatedTarget&&c.fromElement){c.relatedTarget=c.fromElement==c.target?c.toElement:c.fromElement}if(c.pageX==null&&c.clientX!=null){var b=document.documentElement,f=document.body;c.pageX=c.clientX+(b&&b.scrollLeft||f&&f.scrollLeft||0)-(b.clientLeft||0);c.pageY=c.clientY+(b&&b.scrollTop||f&&f.scrollTop||0)-(b.clientTop||0)}if(!c.which&&((c.charCode||c.charCode===0)?c.charCode:c.keyCode)){c.which=c.charCode||c.keyCode}if(!c.metaKey&&c.ctrlKey){c.metaKey=c.ctrlKey}if(!c.which&&c.button){c.which=(c.button&1?1:(c.button&2?3:(c.button&4?2:0)))}return c},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:P,teardown:function(){}}},specialAll:{live:{setup:function(b,a){T.event.add(this,a[0],af)},teardown:function(a){if(a.length){var c=0,b=RegExp("(^|\\.)"+a[0]+"(\\.|$)");T.each((T.data(this,"events").live||{}),function(){if(b.test(this.type)){c++}});if(c<1){T.event.remove(this,a[0],af)}}}}}};T.Event=function(a){if(!this.preventDefault){return new T.Event(a)}if(a&&a.type){this.originalEvent=a;this.type=a.type}else{this.type=a}this.timeStamp=ad();this[aa]=true};function X(){return false}function J(){return true}T.Event.prototype={preventDefault:function(){this.isDefaultPrevented=J;var a=this.originalEvent;if(!a){return}if(a.preventDefault){a.preventDefault()}a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=J;var a=this.originalEvent;if(!a){return}if(a.stopPropagation){a.stopPropagation()}a.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=J;this.stopPropagation()},isDefaultPrevented:X,isPropagationStopped:X,isImmediatePropagationStopped:X};var ah=function(b){var c=b.relatedTarget;while(c&&c!=this){try{c=c.parentNode}catch(a){c=this}}if(c!=this){b.type=b.data;T.event.handle.apply(this,arguments)}};T.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(a,b){T.event.special[b]={setup:function(){T.event.add(this,a,ah,b)},teardown:function(){T.event.remove(this,a,ah)}}});T.fn.extend({bind:function(b,a,c){return b=="unload"?this.one(b,a,c):this.each(function(){T.event.add(this,b,c||a,c&&a)})},one:function(b,a,c){var d=T.event.proxy(c||a,function(e){T(this).unbind(e,d);return(c||a).apply(this,arguments)});return this.each(function(){T.event.add(this,b,d,c&&a)})},unbind:function(a,b){return this.each(function(){T.event.remove(this,a,b)})},trigger:function(b,a){return this.each(function(){T.event.trigger(b,a,this)})},triggerHandler:function(c,a){if(this[0]){var b=T.Event(c);b.preventDefault();b.stopPropagation();T.event.trigger(b,a,this[0]);return b.result}},toggle:function(a){var c=arguments,b=1;while(b<c.length){T.event.proxy(a,c[b++])}return this.click(T.event.proxy(a,function(d){this.lastToggle=(this.lastToggle||0)%b;d.preventDefault();return c[this.lastToggle++].apply(this,arguments)||false}))},hover:function(b,a){return this.mouseenter(b).mouseleave(a)},ready:function(a){P();if(T.isReady){a.call(document,T)}else{T.readyList.push(a)}return this},live:function(a,b){var c=T.event.proxy(b);c.guid+=this.selector+a;T(document).bind(Z(a,this.selector),this.selector,c);return this},die:function(a,b){T(document).unbind(Z(a,this.selector),b?{guid:b.guid+this.selector+a}:null);return this}});function af(a){var d=RegExp("(^|\\.)"+a.type+"(\\.|$)"),b=true,c=[];T.each(T.data(this,"events").live||[],function(g,f){if(d.test(f.type)){var e=T(a.target).closest(f.data)[0];if(e){c.push({elem:e,fn:f})}}});c.sort(function(e,f){return T.data(e.elem,"closest")-T.data(f.elem,"closest")});T.each(c,function(){if(this.fn.call(this.elem,a,this.fn.data)===false){return(b=false)}});return b}function Z(a,b){return["live",a,b.replace(/\./g,"`").replace(/ /g,"|")].join(".")}T.extend({isReady:false,readyList:[],ready:function(){if(!T.isReady){T.isReady=true;if(T.readyList){T.each(T.readyList,function(){this.call(document,T)});T.readyList=null}T(document).triggerHandler("ready")}}});var G=false;function P(){if(G){return}G=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);T.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);T.ready()}});if(document.documentElement.doScroll&&W==W.top){(function(){if(T.isReady){return}try{document.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}T.ready()})()}}}T.event.add(W,"load",T.ready)}T.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){T.fn[b]=function(c){return c?this.bind(b,c):this.trigger(b)}});T(W).bind("unload",function(){for(var a in T.cache){if(a!=1&&T.cache[a].handle){T.event.remove(T.cache[a].handle.elem)}}});(function(){T.support={};var f=document.documentElement,e=document.createElement("script"),a=document.createElement("div"),b="script"+(new Date).getTime();a.style.display="none";a.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 d=a.getElementsByTagName("*"),g=a.getElementsByTagName("a")[0];if(!d||!d.length||!g){return}T.support={leadingWhitespace:a.firstChild.nodeType==3,tbody:!a.getElementsByTagName("tbody").length,objectAll:!!a.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/red/.test(g.getAttribute("style")),hrefNormalized:g.getAttribute("href")==="/a",opacity:g.style.opacity==="0.5",cssFloat:!!g.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};e.type="text/javascript";try{e.appendChild(document.createTextNode("window."+b+"=1;"))}catch(c){}f.insertBefore(e,f.firstChild);if(W[b]){T.support.scriptEval=true;delete W[b]}f.removeChild(e);if(a.attachEvent&&a.fireEvent){a.attachEvent("onclick",function(){T.support.noCloneEvent=false;a.detachEvent("onclick",arguments.callee)});a.cloneNode(true).fireEvent("onclick")}T(function(){var h=document.createElement("div");h.style.width=h.style.paddingLeft="1px";document.body.appendChild(h);T.boxModel=T.support.boxModel=h.offsetWidth===2;document.body.removeChild(h).style.display="none"})})();var H=T.support.cssFloat?"cssFloat":"styleFloat";T.props={"for":"htmlFor","class":"className","float":H,cssFloat:H,styleFloat:H,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};T.fn.extend({_load:T.fn.load,load:function(e,b,a){if(typeof e!=="string"){return this._load(e)}var c=e.indexOf(" ");if(c>=0){var g=e.slice(c,e.length);e=e.slice(0,c)}var d="GET";if(b){if(T.isFunction(b)){a=b;b=null}else{if(typeof b==="object"){b=T.param(b);d="POST"}}}var f=this;T.ajax({url:e,type:d,dataType:"html",data:b,complete:function(k,h){if(h=="success"||h=="notmodified"){f.html(g?T("<div/>").append(k.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(g):k.responseText)}if(a){f.each(a,[k.responseText,h,k])}}});return this},serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?T.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,b){var a=T(this).val();return a==null?null:T.isArray(a)?T.map(a,function(d,e){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});T.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(b,a){T.fn[a]=function(c){return this.bind(a,c)}});var N=ad();T.extend({get:function(d,b,a,c){if(T.isFunction(b)){a=b;b=null}return T.ajax({type:"GET",url:d,data:b,success:a,dataType:c})},getScript:function(b,a){return T.get(b,null,a,"script")},getJSON:function(c,b,a){return T.get(c,b,a,"json")},post:function(d,b,a,c){if(T.isFunction(b)){a=b;b={}}return T.ajax({type:"POST",url:d,data:b,success:a,dataType:c})},ajaxSetup:function(a){T.extend(T.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return W.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(m){m=T.extend(true,m,T.extend(true,{},T.ajaxSettings,m));var a,v=/=\?(&|$)/g,f,b,u=m.type.toUpperCase();if(m.data&&m.processData&&typeof m.data!=="string"){m.data=T.param(m.data)}if(m.dataType=="jsonp"){if(u=="GET"){if(!m.url.match(v)){m.url+=(m.url.match(/\?/)?"&":"?")+(m.jsonp||"callback")+"=?"}}else{if(!m.data||!m.data.match(v)){m.data=(m.data?m.data+"&":"")+(m.jsonp||"callback")+"=?"}}m.dataType="json"}if(m.dataType=="json"&&(m.data&&m.data.match(v)||m.url.match(v))){a="jsonp"+N++;if(m.data){m.data=(m.data+"").replace(v,"="+a+"$1")}m.url=m.url.replace(v,"="+a+"$1");m.dataType="script";W[a]=function(A){b=A;s();o();W[a]=ab;try{delete W[a]}catch(z){}if(t){t.removeChild(d)}}}if(m.dataType=="script"&&m.cache==null){m.cache=false}if(m.cache===false&&u=="GET"){var y=ad();var c=m.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+y+"$2");m.url=c+((c==m.url)?(m.url.match(/\?/)?"&":"?")+"_="+y:"")}if(m.data&&u=="GET"){m.url+=(m.url.match(/\?/)?"&":"?")+m.data;m.data=null}if(m.global&&!T.active++){T.event.trigger("ajaxStart")}var g=/^(\w+:)?\/\/([^\/?#]+)/.exec(m.url);if(m.dataType=="script"&&u=="GET"&&g&&(g[1]&&g[1]!=location.protocol||g[2]!=location.host)){var t=document.getElementsByTagName("head")[0];var d=document.createElement("script");d.src=m.url;if(m.scriptCharset){d.charset=m.scriptCharset}if(!a){var k=false;d.onload=d.onreadystatechange=function(){if(!k&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){k=true;s();o();d.onload=d.onreadystatechange=null;t.removeChild(d)}}}t.appendChild(d);return ab}var q=false;var r=m.xhr();if(m.username){r.open(u,m.url,m.async,m.username,m.password)}else{r.open(u,m.url,m.async)}try{if(m.data){r.setRequestHeader("Content-Type",m.contentType)}if(m.ifModified){r.setRequestHeader("If-Modified-Since",T.lastModified[m.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}r.setRequestHeader("X-Requested-With","XMLHttpRequest");r.setRequestHeader("Accept",m.dataType&&m.accepts[m.dataType]?m.accepts[m.dataType]+", */*":m.accepts._default)}catch(e){}if(m.beforeSend&&m.beforeSend(r,m)===false){if(m.global&&!--T.active){T.event.trigger("ajaxStop")}r.abort();return false}if(m.global){T.event.trigger("ajaxSend",[r,m])}var l=function(B){if(r.readyState==0){if(h){clearInterval(h);h=null;if(m.global&&!--T.active){T.event.trigger("ajaxStop")}}}else{if(!q&&r&&(r.readyState==4||B=="timeout")){q=true;if(h){clearInterval(h);h=null}f=B=="timeout"?"timeout":!T.httpSuccess(r)?"error":m.ifModified&&T.httpNotModified(r,m.url)?"notmodified":"success";if(f=="success"){try{b=T.httpData(r,m.dataType,m)}catch(z){f="parsererror"}}if(f=="success"){var A;try{A=r.getResponseHeader("Last-Modified")}catch(z){}if(m.ifModified&&A){T.lastModified[m.url]=A}if(!a){s()}}else{T.handleError(m,r,f)}o();if(B){r.abort()}if(m.async){r=null}}}};if(m.async){var h=setInterval(l,13);if(m.timeout>0){setTimeout(function(){if(r&&!q){l("timeout")}},m.timeout)}}try{r.send(m.data)}catch(e){T.handleError(m,r,null,e)}if(!m.async){l()}function s(){if(m.success){m.success(b,f)}if(m.global){T.event.trigger("ajaxSuccess",[r,m])}}function o(){if(m.complete){m.complete(r,f)}if(m.global){T.event.trigger("ajaxComplete",[r,m])}if(m.global&&!--T.active){T.event.trigger("ajaxStop")}}return r},handleError:function(c,a,d,b){if(c.error){c.error(a,d,b)}if(c.global){T.event.trigger("ajaxError",[a,c,b])}},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==T.lastModified[d]}catch(c){}return false},httpData:function(a,c,d){var e=a.getResponseHeader("content-type"),f=c=="xml"||!c&&e&&e.indexOf("xml")>=0,b=f?a.responseXML:a.responseText;if(f&&b.documentElement.tagName=="parsererror"){throw"parsererror"}if(d&&d.dataFilter){b=d.dataFilter(b,c)}if(typeof b==="string"){if(c=="script"){T.globalEval(b)}if(c=="json"){b=W["eval"]("("+b+")")}}return b},param:function(d){var b=[];function a(f,e){b[b.length]=encodeURIComponent(f)+"="+encodeURIComponent(e)}if(T.isArray(d)||d.jquery){T.each(d,function(){a(this.name,this.value)})}else{for(var c in d){if(T.isArray(d[c])){T.each(d[c],function(){a(c,this)})}else{a(c,T.isFunction(d[c])?d[c]():d[c])}}}return b.join("&").replace(/%20/g,"+")}});var V={},U,ae=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function K(b,c){var a={};T.each(ae.concat.apply([],ae.slice(0,c)),function(){a[this]=b});return a}T.fn.extend({show:function(c,a){if(c){return this.animate(K("show",3),c,a)}else{for(var e=0,g=this.length;e<g;e++){var h=T.data(this[e],"olddisplay");this[e].style.display=h||"";if(T.css(this[e],"display")==="none"){var f=this[e].tagName,b;if(V[f]){b=V[f]}else{var d=T("<"+f+" />").appendTo("body");b=d.css("display");if(b==="none"){b="block"}d.remove();V[f]=b}T.data(this[e],"olddisplay",b)}}for(var e=0,g=this.length;e<g;e++){this[e].style.display=T.data(this[e],"olddisplay")||""}return this}},hide:function(b,a){if(b){return this.animate(K("hide",3),b,a)}else{for(var c=0,d=this.length;c<d;c++){var e=T.data(this[c],"olddisplay");if(!e&&e!=="none"){T.data(this[c],"olddisplay",T.css(this[c],"display"))}}for(var c=0,d=this.length;c<d;c++){this[c].style.display="none"}return this}},_toggle:T.fn.toggle,toggle:function(a,b){var c=typeof a==="boolean";return T.isFunction(a)&&T.isFunction(b)?this._toggle.apply(this,arguments):a==null||c?this.each(function(){var d=c?a:T(this).is(":hidden");T(this)[d?"show":"hide"]()}):this.animate(K("toggle",3),a,b)},fadeTo:function(c,a,b){return this.animate({opacity:a},c,b)},animate:function(a,d,b,c){var e=T.speed(d,b,c);return this[e.queue===false?"each":"queue"](function(){var g=T.extend({},e),k,f=this.nodeType==1&&T(this).is(":hidden"),h=this;for(k in a){if(a[k]=="hide"&&f||a[k]=="show"&&!f){return g.complete.call(this)}if((k=="height"||k=="width")&&this.style){g.display=T.css(this,"display");g.overflow=this.style.overflow}}if(g.overflow!=null){this.style.overflow="hidden"}g.curAnim=T.extend({},a);T.each(a,function(s,m){var o=new T.fx(h,g,s);if(/toggle|show|hide/.test(m)){o[m=="toggle"?f?"show":"hide":m](a)}else{var q=m.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),l=o.cur(true)||0;if(q){var t=parseFloat(q[2]),r=q[3]||"px";if(r!="px"){h.style[s]=(t||1)+r;l=((t||1)/o.cur(true))*l;h.style[s]=l+r}if(q[1]){t=((q[1]=="-="?-1:1)*t)+l}o.custom(l,t,r)}else{o.custom(l,m,"")}}});return true})},stop:function(b,c){var a=T.timers;if(b){this.queue([])}this.each(function(){for(var d=a.length-1;d>=0;d--){if(a[d].elem==this){if(c){a[d](true)}a.splice(d,1)}}});if(!c){this.dequeue()}return this}});T.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(b,a){T.fn[b]=function(d,c){return this.animate(a,d,c)}});T.extend({speed:function(b,a,c){var d=typeof b==="object"?b:{complete:c||!c&&a||T.isFunction(b)&&b,duration:b,easing:c&&a||a&&!T.isFunction(a)&&a};d.duration=T.fx.off?0:typeof d.duration==="number"?d.duration:T.fx.speeds[d.duration]||T.fx.speeds._default;d.old=d.complete;d.complete=function(){if(d.queue!==false){T(this).dequeue()}if(T.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(b,c,a){this.options=c;this.elem=b;this.prop=a;if(!c.orig){c.orig={}}}});T.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(T.fx.step[this.prop]||T.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(T.css(this.elem,this.prop,a));return b&&b>-10000?b:parseFloat(T.curCSS(this.elem,this.prop))||0},custom:function(a,b,c){this.startTime=ad();this.start=a;this.end=b;this.unit=c||this.unit||"px";this.now=this.start;this.pos=this.state=0;var e=this;function d(f){return e.step(f)}d.elem=this.elem;if(d()&&T.timers.push(d)&&!U){U=setInterval(function(){var f=T.timers;for(var g=0;g<f.length;g++){if(!f[g]()){f.splice(g--,1)}}if(!f.length){clearInterval(U);U=ab}},13)}},show:function(){this.options.orig[this.prop]=T.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());T(this.elem).show()},hide:function(){this.options.orig[this.prop]=T.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(c){var d=ad();if(c||d>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var f=true;for(var e in this.options.curAnim){if(this.options.curAnim[e]!==true){f=false}}if(f){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(T.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){T(this.elem).hide()}if(this.options.hide||this.options.show){for(var b in this.options.curAnim){T.attr(this.elem.style,b,this.options.orig[b])}}this.options.complete.call(this.elem)}return false}else{var a=d-this.startTime;this.state=a/this.options.duration;this.pos=T.easing[this.options.easing||(T.easing.swing?"swing":"linear")](this.state,a,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};T.extend(T.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){T.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){T.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return T.offset.bodyOffset(this[0])}var f=this[0].getBoundingClientRect(),c=this[0].ownerDocument,g=c.body,h=c.documentElement,a=h.clientTop||g.clientTop||0,b=h.clientLeft||g.clientLeft||0,d=f.top+(self.pageYOffset||T.boxModel&&h.scrollTop||g.scrollTop)-a,e=f.left+(self.pageXOffset||T.boxModel&&h.scrollLeft||g.scrollLeft)-b;return{top:d,left:e}}}else{T.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return T.offset.bodyOffset(this[0])}T.offset.initialized||T.offset.initialize();var f=this[0],k=f.offsetParent,l=f,a=f.ownerDocument,c,h=a.documentElement,e=a.body,d=a.defaultView,m=d.getComputedStyle(f,null),b=f.offsetTop,g=f.offsetLeft;while((f=f.parentNode)&&f!==e&&f!==h){c=d.getComputedStyle(f,null);b-=f.scrollTop,g-=f.scrollLeft;if(f===k){b+=f.offsetTop,g+=f.offsetLeft;if(T.offset.doesNotAddBorder&&!(T.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(f.tagName))){b+=parseInt(c.borderTopWidth,10)||0,g+=parseInt(c.borderLeftWidth,10)||0}l=k,k=f.offsetParent}if(T.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"){b+=parseInt(c.borderTopWidth,10)||0,g+=parseInt(c.borderLeftWidth,10)||0}m=c}if(m.position==="relative"||m.position==="static"){b+=e.offsetTop,g+=e.offsetLeft}if(m.position==="fixed"){b+=Math.max(h.scrollTop,e.scrollTop),g+=Math.max(h.scrollLeft,e.scrollLeft)}return{top:b,left:g}}}T.offset={initialize:function(){if(this.initialized){return}var c=document.body,k=document.createElement("div"),g,h,a,f,b,l,e=c.style.marginTop,d='<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>';b={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(l in b){k.style[l]=b[l]}k.innerHTML=d;c.insertBefore(k,c.firstChild);g=k.firstChild,h=g.firstChild,f=g.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(h.offsetTop!==5);this.doesAddBorderForTableAndCells=(f.offsetTop===5);g.style.overflow="hidden",g.style.position="relative";this.subtractsBorderForOverflowNotVisible=(h.offsetTop===-5);c.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(c.offsetTop===0);c.style.marginTop=e;c.removeChild(k);this.initialized=true},bodyOffset:function(c){T.offset.initialized||T.offset.initialize();var a=c.offsetTop,b=c.offsetLeft;if(T.offset.doesNotIncludeMarginInBodyOffset){a+=parseInt(T.curCSS(c,"marginTop",true),10)||0,b+=parseInt(T.curCSS(c,"marginLeft",true),10)||0}return{top:a,left:b}}};T.fn.extend({position:function(){var b=0,c=0,e;if(this[0]){var d=this.offsetParent(),a=this.offset(),f=/^body|html$/i.test(d[0].tagName)?{top:0,left:0}:d.offset();a.top-=Y(this,"marginTop");a.left-=Y(this,"marginLeft");f.top+=Y(d,"borderTopWidth");f.left+=Y(d,"borderLeftWidth");e={top:a.top-f.top,left:a.left-f.left}}return e},offsetParent:function(){var a=this[0].offsetParent||document.body;while(a&&(!/^body|html$/i.test(a.tagName)&&T.css(a,"position")=="static")){a=a.offsetParent}return T(a)}});T.each(["Left","Top"],function(b,c){var a="scroll"+c;T.fn[a]=function(d){if(!this[0]){return null}return d!==ab?this.each(function(){this==W||this==document?W.scrollTo(!b?d:T(W).scrollLeft(),b?d:T(W).scrollTop()):this[a]=d}):this[0]==W||this[0]==document?self[b?"pageYOffset":"pageXOffset"]||T.boxModel&&document.documentElement[a]||document.body[a]:this[0][a]}});T.each(["Height","Width"],function(b,d){var f=b?"Left":"Top",c=b?"Right":"Bottom",e=d.toLowerCase();T.fn["inner"+d]=function(){return this[0]?T.css(this[0],e,false,"padding"):null};T.fn["outer"+d]=function(g){return this[0]?T.css(this[0],e,false,g?"margin":"border"):null};var a=d.toLowerCase();T.fn[a]=function(g){return this[0]==W?document.compatMode=="CSS1Compat"&&document.documentElement["client"+d]||document.body["client"+d]:this[0]==document?Math.max(document.documentElement["client"+d],document.body["scroll"+d],document.documentElement["scroll"+d],document.body["offset"+d],document.documentElement["offset"+d]):g===ab?(this.length?T.css(this[0],a):null):this.css(a,typeof g==="string"?g:g+"px")}})})();jQuery.autocomplete=function(aD,al){var aq=this;var ah=$(aD).attr("autocomplete","off");if(al.inputClass){ah.addClass(al.inputClass)}var ap=document.createElement("div");var ay=$(ap).hide().addClass(al.resultsClass).css("position","absolute");if(al.width>0){ay.css("width",al.width)}$("body").append(ap);aD.autocompleter=aq;var Y=null;var ai="";var X=-1;var ax={};var ae=false;var av=false;var aG=null;var aw=false;var az=false;function au(){ax={};ax.data={};ax.length=0}au();if(al.data!=null){var an="",k={},at=[];if(typeof al.url!="string"){al.cacheLength=1}for(var U=0;U<al.data.length;U++){at=((typeof al.data[U]=="string")?[al.data[U]]:al.data[U]);if(at[0].length>0){an=at[0].substring(0,1).toLowerCase();if(!k[an]){k[an]=[]}k[an].push(at)}}for(var V in k){al.cacheLength++;aC(V,k[V])}}ah.keydown(function(a){aG=a.keyCode;switch(a.keyCode){case 38:a.preventDefault();ac(-1);break;case 40:a.preventDefault();ac(1);break;case 9:case 13:if(aa()){ah.get(0).blur();a.preventDefault()}break;default:X=-1;if(Y){clearTimeout(Y)}Y=setTimeout(function(){am()},al.delay);break}}).focus(function(){av=true}).blur(function(){av=false;if(!aw){aE()}});ak();function am(){if(aG==46||(aG>8&&aG<32)){return ay.hide()}var a=ah.val();if(a==ai){return}ai=a;if(a.length>=al.minChars){ah.addClass(al.loadingClass);ad(a)}else{ah.removeClass(al.loadingClass);ay.hide()}}function ac(b){var a=$("li",ap);if(!a){return}X+=b;if(X<0){X=0}else{if(X>=a.size()){X=a.size()-1}}a.removeClass("ac_over");$(a[X]).addClass("ac_over")}function aa(){var a=$("li.ac_over",ap)[0];if(!a){var b=$("li",ap);if(al.selectOnly){if(b.length==1){a=b[0]}}else{if(al.selectFirst){a=b[0]}}}if(a){ao(a);return true}else{return false}}function ao(a){if(!a){a=document.createElement("li");a.extra=[];a.selectValue=""}var b=$.trim(a.selectValue?a.selectValue:a.innerHTML);aD.lastSelected=b;ai=b;ay.html("");ah.val(b);ak();if(al.onItemSelect){setTimeout(function(){al.onItemSelect(a)},1)}}function aF(a,d){var c=ah.get(0);if(c.createTextRange){var b=c.createTextRange();b.collapse(true);b.moveStart("character",a);b.moveEnd("character",d);b.select()}else{if(c.setSelectionRange){c.setSelectionRange(a,d)}else{if(c.selectionStart){c.selectionStart=a;c.selectionEnd=d}}}c.focus()}function aj(a){if(aG!=8){ah.val(ah.val()+a.substring(ai.length));aF(ai.length,a.length)}}function ab(){var b=ag(aD);var a=(al.width>0)?al.width:ah.width();ay.css({width:parseInt(a)+"px",top:(b.y+aD.offsetHeight)+"px",left:b.x+"px"}).show()}function aE(){if(Y){clearTimeout(Y)}Y=setTimeout(ak,200)}function ak(){if(az){return}az=true;if(Y){clearTimeout(Y)}var a=ah.removeClass(al.loadingClass).val();if(ay.is(":visible")){ay.hide()}if(al.mustMatch){if(!aD.lastSelected||aD.lastSelected!=a){ao(null)}}az=false}function aA(b,a){if(a){ah.removeClass(al.loadingClass);ap.innerHTML="";if(!av||a.length==0){return ak()}if($.browser.msie){ay.append(document.createElement("iframe"))}ap.appendChild(W(a));if(al.autoFill&&(ah.val().toLowerCase()==b.toLowerCase())){aj(a[0][0])}ab()}else{ak()}}function aB(b){if(!b){return null}var d=[];var c=b.split(al.lineSeparator);for(var e=0;e<c.length;e++){var a=$.trim(c[e]);if(a){d[d.length]=a.split(al.cellSeparator)}}return d}function W(g){var h=document.createElement("ul");var b=g.length;if((al.maxItemsToShow>0)&&(al.maxItemsToShow<b)){b=al.maxItemsToShow}for(var a=0;a<b;a++){var f=g[a];if(!f){continue}var e=document.createElement("li");if(al.formatItem){e.innerHTML=al.formatItem(f,a,b);e.selectValue=f[0]}else{e.innerHTML=f[0];e.selectValue=f[0]}var d=null;if(f.length>1){d=[];for(var c=1;c<f.length;c++){d[d.length]=f[c]}}e.extra=d;h.appendChild(e);$(e).hover(function(){$("li",h).removeClass("ac_over");$(this).addClass("ac_over");X=$("li",h).indexOf($(this).get(0))},function(){$(this).removeClass("ac_over")}).click(function(l){l.preventDefault();l.stopPropagation();ao(this)})}$(h).mousedown(function(){aw=true}).mouseup(function(){aw=false});return h}function ad(b){if(!al.matchCase){b=b.toLowerCase()}var a=al.cacheLength?T(b):null;if(a){aA(b,a)}else{if((typeof al.url=="string")&&(al.url.length>0)){$.get(ar(b),function(c){c=aB(c);aC(b,c);aA(b,c)})}else{ah.removeClass(al.loadingClass)}}}function ar(a){var d=al.url.indexOf("?")==-1?"?":"&";var c=al.url+d+"q="+encodeURI(a);for(var b in al.extraParams){c+="&"+b+"="+encodeURI(al.extraParams[b])}return c}function T(g){if(!g){return null}if(ax.data[g]){return ax.data[g]}if(al.matchSubset){for(var a=g.length-1;a>=al.minChars;a--){var e=g.substr(0,a);var f=ax.data[e];if(f){var h=[];for(var d=0;d<f.length;d++){var c=f[d];var b=c[0];if(af(b,g)){h[h.length]=c}}return h}}}return null}function af(b,c){if(!al.matchCase){b=b.toLowerCase()}var a=b.indexOf(c);if(a==-1){return false}return a==0||al.matchContains}this.flushCache=function(){au()};this.setExtraParams=function(a){al.extraParams=a};this.findValue=function(){var b=ah.val();if(!al.matchCase){b=b.toLowerCase()}var a=al.cacheLength?T(b):null;if(a){Z(b,a)}else{if((typeof al.url=="string")&&(al.url.length>0)){$.get(ar(b),function(c){c=aB(c);aC(b,c);Z(b,c)})}else{Z(b,null)}}};function Z(g,h){if(h){ah.removeClass(al.loadingClass)}var b=(h)?h.length:0;var e=null;for(var a=0;a<b;a++){var f=h[a];if(f[0].toLowerCase()==g.toLowerCase()){e=document.createElement("li");if(al.formatItem){e.innerHTML=al.formatItem(f,a,b);e.selectValue=f[0]}else{e.innerHTML=f[0];e.selectValue=f[0]}var d=null;if(f.length>1){d=[];for(var c=1;c<f.length;c++){d[d.length]=f[c]}}e.extra=d}}if(al.onFindValue){setTimeout(function(){al.onFindValue(e)},1)}}function aC(b,a){if(!a||!b||!al.cacheLength){return}if(!ax.length||ax.length>al.cacheLength){au();ax.length++}else{if(!ax[b]){ax.length++}}ax.data[b]=a}function ag(c){var b=c.offsetLeft||0;var a=c.offsetTop||0;while(c=c.offsetParent){b+=c.offsetLeft;a+=c.offsetTop}return{x:b,y:a}}};jQuery.fn.autocomplete=function(d,e,f){e=e||{};e.url=d;e.data=((typeof f=="object")&&(f.constructor==Array))?f:null;e=$.extend({inputClass:"ac_input",resultsClass:"ac_results",lineSeparator:"\n",cellSeparator:"|",minChars:1,delay:400,matchCase:0,matchSubset:1,matchContains:0,cacheLength:1,mustMatch:0,extraParams:{},loadingClass:"ac_loading",selectFirst:false,selectOnly:false,maxItemsToShow:-1,autoFill:false,width:0},e);e.width=parseInt(e.width,10);this.each(function(){var a=this;new jQuery.autocomplete(a,e)});return this};jQuery.fn.autocompleteArray=function(c,d){return this.autocomplete(null,d,c)};jQuery.fn.indexOf=function(c){for(var d=0;d<this.length;d++){if(this[d]==c){return d}}return -1};(function(b){b.fn.biggerlink=function(a){var d={biggerclass:"bl-bigger",hoverclass:"bl-hover",hoverclass2:"bl-hover2",clickableclass:"bl-hot",otherstriggermaster:true,follow:"auto"};if(a){b.extend(d,a)}b(this).filter(function(){return b("a",this).length>0}).addClass(d.clickableclass).css("cursor","pointer").each(function(k){var o=b(this).data("biggerlink",{hovered:false,focused:false,hovered2:false,focused2:false});var m={all:b("a",this),big:b(this),master:b("a:first",this).data("biggerlink",{status:"master"}).addClass(d.biggerclass),other:b("a",this).not(b("a:first",this)).data("biggerlink",{status:"other"})};b("a",this).andSelf().each(function(){var e=b.extend(b(this).data("biggerlink"),m);b(this).data("biggerlink",e)});var c=o.attr("title");var l=o.data("biggerlink").master.attr("title");if(l&&!c){o.attr("title",l)}o.mouseover(function(e){window.status=b(this).data("biggerlink").master.get(0).href;b(this).addClass(d.hoverclass);b(this).data("biggerlink").hovered=true}).mouseout(function(e){window.status="";if(!b(this).data("biggerlink").focused){b(this).removeClass(d.hoverclass)}b(this).data("biggerlink").hovered=false}).bind("click",function(e){if(!b(e.target).closest("a").length){b(this).data("biggerlink").master.trigger({type:"click",source:"biggerlink"});e.stopPropagation()}});m.all.bind("focus",function(){b(this).data("biggerlink").big.addClass(d.hoverclass);b(this).data("biggerlink").big.data("biggerlink").focused=true}).bind("blur",function(){if(!b(this).data("biggerlink").big.data("biggerlink").hovered){b(this).data("biggerlink").big.removeClass(d.hoverclass)}b(this).data("biggerlink").big.data("biggerlink").focused=false});m.master.bind("click",function(e){if(e.source=="biggerlink"){if(d.follow===true||d.follow=="auto"&&e.result!==false){window.location=b(this).attr("href")}else{e.stopPropagation()}}});if(d.otherstriggermaster){m.other.addClass(d.biggerclass).bind("click",function(e){b(this).data("biggerlink").master.trigger({type:"click",source:"biggerlink"});e.preventDefault();e.stopPropagation()})}else{m.other.bind("focus",function(){b(this).data("biggerlink").big.addClass(d.hoverclass2);b(this).data("biggerlink").big.data("biggerlink").focused2=true}).bind("blur",function(){if(!b(this).data("biggerlink").big.data("biggerlink").hovered2){b(this).data("biggerlink").big.removeClass(d.hoverclass2)}b(this).data("biggerlink").big.data("biggerlink").focused2=false}).bind("mouseover",function(e){b(this).data("biggerlink").big.addClass(d.hoverclass2);b(this).data("biggerlink").big.data("biggerlink").hovered2=true;e.stopPropagation()}).bind("mouseout",function(e){if(!b(this).data("biggerlink").big.data("biggerlink").focused2){b(this).data("biggerlink").big.removeClass(d.hoverclass2)}b(this).data("biggerlink").big.data("biggerlink").hovered2=false;e.stopPropagation()});if(!m.other.attr("title")){m.other.attr("title","")}}});return this}})(jQuery);(function(y){var t="2.54";if(y.support==undefined){y.support={opacity:!(y.browser.msie&&/MSIE 6.0/.test(navigator.userAgent))}}function B(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments,""))}}y.fn.cycle=function(b,c){if(this.length==0&&b!="stop"){if(!y.isReady&&this.selector){B("DOM not ready, queuing slideshow");var a={s:this.selector,c:this.context};y(function(){y(a.s,a.c).cycle(b,c)});return}B("terminating; zero elements found by selector"+(y.isReady?"":" (DOM not ready)"));return this}return this.each(function(){b=s(this,b,c);if(b===false){return}if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=this.cyclePause=0;var e=y(this);var d=b.slideExpr?y(b.slideExpr,this):e.children();var g=d.get();if(g.length<2){B("terminating; too few slides: "+g.length);return}var f=u(e,d,g,b);if(f===false){return}if(f.timeout||f.continuous){this.cycleTimeout=setTimeout(function(){C(g,f,0,!f.rev)},f.continuous?10:f.timeout+(f.delay||0))}})};function s(d,a,c){if(d.cycleStop==undefined){d.cycleStop=0}if(a===undefined||a===null){a={}}if(a.constructor==String){switch(a){case"stop":d.cycleStop++;if(d.cycleTimeout){clearTimeout(d.cycleTimeout)}d.cycleTimeout=0;y(d).removeData("cycle.opts");return false;case"pause":d.cyclePause=1;return false;case"resume":d.cyclePause=0;if(c===true){a=y(d).data("cycle.opts");if(!a){B("options not found, can not resume");return}if(d.cycleTimeout){clearTimeout(d.cycleTimeout);d.cycleTimeout=0}C(a.elements,a,1,1)}return false;default:a={fx:a}}}else{if(a.constructor==Number){var b=a;a=y(d).data("cycle.opts");if(!a){B("options not found, can not advance slide");return false}if(b<0||b>=a.elements.length){B("invalid slide index: "+b);return false}a.nextSlide=b;if(d.cycleTimeout){clearTimeout(this.cycleTimeout);d.cycleTimeout=0}if(typeof c=="string"){a.oneTimeFx=c}C(a.elements,a,1,b>=a.currSlide);return false}}return a}function u(K,e,L,l){var d=y.extend({},y.fn.cycle.defaults,l||{},y.metadata?K.metadata():y.meta?K.data():{});if(d.autostop){d.countdown=d.autostopCount||L.length}var k=K[0];K.data("cycle.opts",d);d.$cont=K;d.stopCount=k.cycleStop;d.elements=L;d.before=d.before?[d.before]:[];d.after=d.after?[d.after]:[];d.after.unshift(function(){d.busy=0});if(!y.support.opacity&&d.cleartype){d.after.push(function(){this.style.removeAttribute("filter")})}if(d.continuous){d.after.push(function(){C(L,d,0,!d.rev)})}r(d);if(!y.support.opacity&&d.cleartype&&!d.cleartypeNoBg){A(e)}if(K.css("position")=="static"){K.css("position","relative")}if(d.width){K.width(d.width)}if(d.height&&d.height!="auto"){K.height(d.height)}if(d.startingSlide){d.startingSlide=parseInt(d.startingSlide)}if(d.random){d.randomMap=[];for(var m=0;m<L.length;m++){d.randomMap.push(m)}d.randomMap.sort(function(G,F){return Math.random()-0.5});d.randomIndex=0;d.startingSlide=d.randomMap[0]}else{if(d.startingSlide>=L.length){d.startingSlide=0}}d.currSlide=d.startingSlide=d.startingSlide||0;var g=d.startingSlide;e.css({position:"absolute",top:0,left:0}).hide().each(function(F){var G=g?F>=g?L.length-(F-g):g-F:L.length-F;y(this).css("z-index",G)});y(L[g]).css("opacity",1).show();if(!y.support.opacity&&d.cleartype){L[g].style.removeAttribute("filter")}if(d.fit&&d.width){e.width(d.width)}if(d.fit&&d.height&&d.height!="auto"){e.height(d.height)}var J=d.containerResize&&!K.innerHeight();if(J){var c=0,N=0;for(var m=0;m<L.length;m++){var b=y(L[m]),f=b[0],M=b.outerWidth(),h=b.outerHeight();if(!M){M=f.offsetWidth}if(!h){h=f.offsetHeight}c=M>c?M:c;N=h>N?h:N}if(c>0&&N>0){K.css({width:c+"px",height:N+"px"})}}if(d.pause){K.hover(function(){this.cyclePause++},function(){this.cyclePause--})}E(d);if(!d.multiFx){var o=y.fn.cycle.transitions[d.fx];if(y.isFunction(o)){o(K,e,d)}else{if(d.fx!="custom"&&!d.multiFx){B("unknown transition: "+d.fx,"; slideshow terminating");return false}}}e.each(function(){var F=y(this);this.cycleH=(d.fit&&d.height)?d.height:F.height();this.cycleW=(d.fit&&d.width)?d.width:F.width()});d.cssBefore=d.cssBefore||{};d.animIn=d.animIn||{};d.animOut=d.animOut||{};e.not(":eq("+g+")").css(d.cssBefore);if(d.cssFirst){y(e[g]).css(d.cssFirst)}if(d.timeout){d.timeout=parseInt(d.timeout);if(d.speed.constructor==String){d.speed=y.fx.speeds[d.speed]||parseInt(d.speed)}if(!d.sync){d.speed=d.speed/2}while((d.timeout-d.speed)<250){d.timeout+=d.speed}}if(d.easing){d.easeIn=d.easeOut=d.easing}if(!d.speedIn){d.speedIn=d.speed}if(!d.speedOut){d.speedOut=d.speed}d.slideCount=L.length;d.currSlide=d.lastSlide=g;if(d.random){d.nextSlide=d.currSlide;if(++d.randomIndex==L.length){d.randomIndex=0}d.nextSlide=d.randomMap[d.randomIndex]}else{d.nextSlide=d.startingSlide>=(L.length-1)?0:d.startingSlide+1}var a=e[g];if(d.before.length){d.before[0].apply(a,[a,a,d,true])}if(d.after.length>1){d.after[1].apply(a,[a,a,d,true])}if(d.next){y(d.next).click(function(){return q(d,d.rev?-1:1)})}if(d.prev){y(d.prev).click(function(){return q(d,d.rev?1:-1)})}if(d.pager){D(L,d)}v(d,L);return d}function r(a){a.original={before:[],after:[]};a.original.cssBefore=y.extend({},a.cssBefore);a.original.cssAfter=y.extend({},a.cssAfter);a.original.animIn=y.extend({},a.animIn);a.original.animOut=y.extend({},a.animOut);y.each(a.before,function(){a.original.before.push(this)});y.each(a.after,function(){a.original.after.push(this)})}function E(a){var e=y.fn.cycle.transitions;if(a.fx.indexOf(",")>0){a.multiFx=true;a.fxs=a.fx.replace(/\s*/g,"").split(",");for(var c=0;c<a.fxs.length;c++){var b=a.fxs[c];var f=e[b];if(!f||!e.hasOwnProperty(b)||!y.isFunction(f)){B("discarding unknowtn transition: ",b);a.fxs.splice(c,1);c--}}if(!a.fxs.length){B("No valid transitions named; slideshow terminating.");return false}}else{if(a.fx=="all"){a.multiFx=true;a.fxs=[];for(p in e){var f=e[p];if(e.hasOwnProperty(p)&&y.isFunction(f)){a.fxs.push(p)}}}}if(a.multiFx&&a.randomizeEffects){var d=Math.floor(Math.random()*20)+30;for(var c=0;c<d;c++){var g=Math.floor(Math.random()*a.fxs.length);a.fxs.push(a.fxs.splice(g,1)[0])}B("randomized fx sequence: ",a.fxs)}}function v(a,b){a.addSlide=function(e,d){var f=y(e),c=f[0];if(!a.autostopCount){a.countdown++}b[d?"unshift":"push"](c);if(a.els){a.els[d?"unshift":"push"](c)}a.slideCount=b.length;f.css("position","absolute");f[d?"prependTo":"appendTo"](a.$cont);if(d){a.currSlide++;a.nextSlide++}if(!y.support.opacity&&a.cleartype&&!a.cleartypeNoBg){A(f)}if(a.fit&&a.width){f.width(a.width)}if(a.fit&&a.height&&a.height!="auto"){$slides.height(a.height)}c.cycleH=(a.fit&&a.height)?a.height:f.height();c.cycleW=(a.fit&&a.width)?a.width:f.width();f.css(a.cssBefore);if(a.pager){y.fn.cycle.createPagerAnchor(b.length-1,c,y(a.pager),b,a)}if(y.isFunction(a.onAddSlide)){a.onAddSlide(f)}else{f.hide()}}}y.fn.cycle.resetState=function(b,c){var c=c||b.fx;b.before=[];b.after=[];b.cssBefore=y.extend({},b.original.cssBefore);b.cssAfter=y.extend({},b.original.cssAfter);b.animIn=y.extend({},b.original.animIn);b.animOut=y.extend({},b.original.animOut);b.fxFn=null;y.each(b.original.before,function(){b.before.push(this)});y.each(b.original.after,function(){b.after.push(this)});var a=y.fn.cycle.transitions[c];if(y.isFunction(a)){a(b.$cont,y(b.elements),b)}};function C(f,b,g,e){if(g&&b.busy){y(f).stop(true,true);b.busy=false}if(b.busy){return}var k=b.$cont[0],c=f[b.currSlide],d=f[b.nextSlide];if(k.cycleStop!=b.stopCount||k.cycleTimeout===0&&!g){return}if(!g&&!k.cyclePause&&((b.autostop&&(--b.countdown<=0))||(b.nowrap&&!b.random&&b.nextSlide<b.currSlide))){if(b.end){b.end(b)}return}if(g||!k.cyclePause){var h=b.fx;c.cycleH=c.cycleH||c.offsetHeight;c.cycleW=c.cycleW||c.offsetWidth;d.cycleH=d.cycleH||d.offsetHeight;d.cycleW=d.cycleW||d.offsetWidth;if(b.multiFx){if(b.lastFx==undefined||++b.lastFx>=b.fxs.length){b.lastFx=0}h=b.fxs[b.lastFx];b.currFx=h}if(b.oneTimeFx){h=b.oneTimeFx;b.oneTimeFx=null}y.fn.cycle.resetState(b,h);if(b.before.length){y.each(b.before,function(F,o){if(k.cycleStop!=b.stopCount){return}o.apply(d,[c,d,b,e])})}var m=function(){y.each(b.after,function(F,o){if(k.cycleStop!=b.stopCount){return}o.apply(d,[c,d,b,e])})};if(b.nextSlide!=b.currSlide){b.busy=1;if(b.fxFn){b.fxFn(c,d,b,m,e)}else{if(y.isFunction(y.fn.cycle[b.fx])){y.fn.cycle[b.fx](c,d,b,m)}else{y.fn.cycle.custom(c,d,b,m,g&&b.fastOnEvent)}}}b.lastSlide=b.currSlide;if(b.random){b.currSlide=b.nextSlide;if(++b.randomIndex==f.length){b.randomIndex=0}b.nextSlide=b.randomMap[b.randomIndex]}else{var l=(b.nextSlide+1)==f.length;b.nextSlide=l?0:b.nextSlide+1;b.currSlide=l?f.length-1:b.nextSlide-1}if(b.pager){y.fn.cycle.updateActivePagerLink(b.pager,b.currSlide)}}var a=0;if(b.timeout&&!b.continuous){a=z(c,d,b,e)}else{if(b.continuous&&k.cyclePause){a=10}}if(a>0){k.cycleTimeout=setTimeout(function(){C(f,b,0,!b.rev)},a)}}y.fn.cycle.updateActivePagerLink=function(b,a){y(b).find("a").removeClass("activeSlide").filter("a:eq("+a+")").addClass("activeSlide")};function z(a,c,b,d){if(b.timeoutFn){var e=b.timeoutFn(a,c,b,d);if(e!==false){return e}}return b.timeout}y.fn.cycle.next=function(a){q(a,a.rev?-1:1)};y.fn.cycle.prev=function(a){q(a,a.rev?1:-1)};function q(d,a){var e=d.elements;var b=d.$cont[0],c=b.cycleTimeout;if(c){clearTimeout(c);b.cycleTimeout=0}if(d.random&&a<0){d.randomIndex--;if(--d.randomIndex==-2){d.randomIndex=e.length-2}else{if(d.randomIndex==-1){d.randomIndex=e.length-1}}d.nextSlide=d.randomMap[d.randomIndex]}else{if(d.random){if(++d.randomIndex==e.length){d.randomIndex=0}d.nextSlide=d.randomMap[d.randomIndex]}else{d.nextSlide=d.currSlide+a;if(d.nextSlide<0){if(d.nowrap){return false}d.nextSlide=e.length-1}else{if(d.nextSlide>=e.length){if(d.nowrap){return false}d.nextSlide=0}}}}if(y.isFunction(d.prevNextClick)){d.prevNextClick(a>0,d.nextSlide,e[d.nextSlide])}C(e,d,1,a>=0);return false}function D(b,a){var c=y(a.pager);y.each(b,function(e,d){y.fn.cycle.createPagerAnchor(e,d,c,b,a)});y.fn.cycle.updateActivePagerLink(a.pager,a.startingSlide)}y.fn.cycle.createPagerAnchor=function(d,c,f,e,b){var g=(y.isFunction(b.pagerAnchorBuilder))?b.pagerAnchorBuilder(d,c):'<a href="#">'+(d+1)+"</a>";if(!g){return}var a=y(g);if(a.parents("body").length==0){a.appendTo(f)}a.bind(b.pagerEvent,function(){b.nextSlide=d;var h=b.$cont[0],k=h.cycleTimeout;if(k){clearTimeout(k);h.cycleTimeout=0}if(y.isFunction(b.pagerClick)){b.pagerClick(b.nextSlide,e[b.nextSlide])}C(e,b,1,b.currSlide<d);return false});if(b.pauseOnPagerHover){a.hover(function(){b.$cont[0].cyclePause++},function(){b.$cont[0].cyclePause--})}};y.fn.cycle.hopsFromLast=function(b,c){var d,e=b.lastSlide,a=b.currSlide;if(c){d=a>e?a-e:b.slideCount-e}else{d=a<e?e-a:e+b.slideCount-a}return d};function A(a){function b(d){var d=parseInt(d).toString(16);return d.length<2?"0"+d:d}function c(d){for(;d&&d.nodeName.toLowerCase()!="html";d=d.parentNode){var f=y.css(d,"background-color");if(f.indexOf("rgb")>=0){var e=f.match(/\d+/g);return"#"+b(e[0])+b(e[1])+b(e[2])}if(f&&f!="transparent"){return f}}return"#ffffff"}a.each(function(){y(this).css("background-color",c(this))})}y.fn.cycle.commonReset=function(a,c,b,e,d,f){y(b.elements).not(a).hide();b.cssBefore.opacity=1;b.cssBefore.display="block";if(e!==false&&c.cycleW>0){b.cssBefore.width=c.cycleW}if(d!==false&&c.cycleH>0){b.cssBefore.height=c.cycleH}b.cssAfter=b.cssAfter||{};b.cssAfter.display="none";y(a).css("zIndex",b.slideCount+(f===true?1:0));y(c).css("zIndex",b.slideCount+(f===true?0:1))};y.fn.cycle.custom=function(b,k,c,o,a){var d=y(b),h=y(k);var m=c.speedIn,e=c.speedOut,l=c.easeIn,f=c.easeOut;h.css(c.cssBefore);if(a){if(typeof a=="number"){m=e=a}else{m=e=1}l=f=null}var g=function(){h.animate(c.animIn,m,l,o)};d.animate(c.animOut,e,f,function(){if(c.cssAfter){d.css(c.cssAfter)}if(!c.sync){g()}});if(c.sync){g()}};y.fn.cycle.transitions={fade:function(b,a,c){a.not(":eq("+c.currSlide+")").css("opacity",0);c.before.push(function(d,f,e){y.fn.cycle.commonReset(d,f,e);e.cssBefore.opacity=0});c.animIn={opacity:1};c.animOut={opacity:0};c.cssBefore={top:0,left:0}}};y.fn.cycle.ver=function(){return t};y.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,pager:null,pagerClick:null,pagerEvent:"click",pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!y.support.opacity,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0}})(jQuery);(function(b){b.fn.cycle.transitions.scrollUp=function(g,f,h){g.css("overflow","hidden");h.before.push(b.fn.cycle.commonReset);var a=g.height();h.cssBefore={top:a,left:0};h.cssFirst={top:0};h.animIn={top:0};h.animOut={top:-a}};b.fn.cycle.transitions.scrollDown=function(g,f,h){g.css("overflow","hidden");h.before.push(b.fn.cycle.commonReset);var a=g.height();h.cssFirst={top:0};h.cssBefore={top:-a,left:0};h.animIn={top:0};h.animOut={top:a}};b.fn.cycle.transitions.scrollLeft=function(g,f,h){g.css("overflow","hidden");h.before.push(b.fn.cycle.commonReset);var a=g.width();h.cssFirst={left:0};h.cssBefore={left:a,top:0};h.animIn={left:0};h.animOut={left:0-a}};b.fn.cycle.transitions.scrollRight=function(g,f,h){g.css("overflow","hidden");h.before.push(b.fn.cycle.commonReset);var a=g.width();h.cssFirst={left:0};h.cssBefore={left:-a,top:0};h.animIn={left:0};h.animOut={left:a}}})(jQuery);eval(function(e,c,a,o,k,d){k=function(b){return(b<c?"":k(parseInt(b/c)))+((b=b%c)>35?String.fromCharCode(b+29):b.toString(36))};if(!"".replace(/^/,String)){while(a--){d[k(a)]=o[a]||k(a)}o=[function(b){return d[b]}];k=function(){return"\\w+"};a=1}while(a--){if(o[a]){e=e.replace(new RegExp("\\b"+k(a)+"\\b","g"),o[a])}}return e}("(0($){6($.7.c){$.3.5=0(){2 1.4(0(){$(1).d({'a':'b'})})}}8 6($.7.i){$.3.5=0(){2 1.4(0(){$(1).f('g',0(){2 9})})}}8{$.3.5=0(){2 1.4(0(){$(1).h(0(){2 9})})}}})(e);",19,19,"function|this|return|fn|each|disableTextSelect|if|browser|else|false|MozUserSelect|none|mozilla|css|jQuery|bind|selectstart|mousedown|msie".split("|"),0,{}));eval(function(e,a,c,o,k,m){k=function(b){return(b<a?"":k(parseInt(b/a)))+((b=b%a)>35?String.fromCharCode(b+29):b.toString(36))};if(!"".replace(/^/,String)){while(c--){m[k(c)]=o[c]||k(c)}o=[function(b){return m[b]}];k=function(){return"\\w+"};c=1}while(c--){if(o[c]){e=e.replace(new RegExp("\\b"+k(c)+"\\b","g"),o[c])}}return e}("(9($){$.1v.C=9(o){z 4.1b(9(){3p r(4,o)})};8 q={Z:F,25:1,21:1,u:7,1c:3,15:7,1K:'2X',2c:'2Q',1q:0,B:7,1j:7,1G:7,2F:7,2B:7,2z:7,2x:7,2v:7,2s:7,2p:7,1S:'<P></P>',1Q:'<P></P>',2m:'2l',2k:'2l',1O:7,1L:7};$.C=9(e,o){4.5=$.16({},q,o||{});4.Q=F;4.D=7;4.H=7;4.t=7;4.U=7;4.R=7;4.N=!4.5.Z?'1H':'26';4.E=!4.5.Z?'24':'23';8 a='',1e=e.K.1e(' ');1r(8 i=0;i<1e.I;i++){6(1e[i].2y('C-2w')!=-1){$(e).1E(1e[i]);8 a=1e[i];1p}}6(e.2t=='3o'||e.2t=='3n'){4.t=$(e);4.D=4.t.19();6(4.D.1o('C-H')){6(!4.D.19().1o('C-D'))4.D=4.D.B('<P></P>');4.D=4.D.19()}10 6(!4.D.1o('C-D'))4.D=4.t.B('<P></P>').19()}10{4.D=$(e);4.t=$(e).3h('>2o,>2n,P>2o,P>2n')}6(a!=''&&4.D.19()[0].K.2y('C-2w')==-1)4.D.B('<P 3g=\" '+a+'\"></P>');4.H=4.t.19();6(!4.H.I||!4.H.1o('C-H'))4.H=4.t.B('<P></P>').19();4.R=$('.C-11',4.D);6(4.R.u()==0&&4.5.1Q!=7)4.R=4.H.1z(4.5.1Q).11();4.R.V(4.K('C-11'));4.U=$('.C-17',4.D);6(4.U.u()==0&&4.5.1S!=7)4.U=4.H.1z(4.5.1S).11();4.U.V(4.K('C-17'));4.H.V(4.K('C-H'));4.t.V(4.K('C-t'));4.D.V(4.K('C-D'));8 b=4.5.15!=7?1k.1P(4.1m()/4.5.15):7;8 c=4.t.32('1F');8 d=4;6(c.u()>0){8 f=0,i=4.5.21;c.1b(9(){d.1I(4,i++);f+=d.S(4,b)});4.t.y(4.N,f+'T');6(!o||o.u===J)4.5.u=c.u()}4.D.y('1y','1A');4.U.y('1y','1A');4.R.y('1y','1A');4.2G=9(){d.17()};4.2b=9(){d.11()};4.1U=9(){d.2q()};6(4.5.1j!=7)4.5.1j(4,'2a');6($.2A.28){4.1f(F,F);$(27).1u('2I',9(){d.1t()})}10 4.1t()};8 r=$.C;r.1v=r.2H={C:'0.2.3'};r.1v.16=r.16=$.16;r.1v.16({1t:9(){4.A=7;4.G=7;4.X=7;4.13=7;4.14=F;4.1d=7;4.O=7;4.W=F;6(4.Q)z;4.t.y(4.E,4.1s(4.5.21)+'T');8 p=4.1s(4.5.25);4.X=4.13=7;4.1i(p,F);$(27).22('2E',4.1U).1u('2E',4.1U)},2D:9(){4.t.2C();4.t.y(4.E,'3u');4.t.y(4.N,'3t');6(4.5.1j!=7)4.5.1j(4,'2D');4.1t()},2q:9(){6(4.O!=7&&4.W)4.t.y(4.E,r.M(4.t.y(4.E))+4.O);4.O=7;4.W=F;6(4.5.1G!=7)4.5.1G(4);6(4.5.15!=7){8 a=4;8 b=1k.1P(4.1m()/4.5.15),N=0,E=0;$('1F',4.t).1b(9(i){N+=a.S(4,b);6(i+1<a.A)E=N});4.t.y(4.N,N+'T');4.t.y(4.E,-E+'T')}4.1c(4.A,F)},3s:9(){4.Q=1h;4.1f()},3r:9(){4.Q=F;4.1f()},u:9(s){6(s!=J){4.5.u=s;6(!4.Q)4.1f()}z 4.5.u},3q:9(i,a){6(a==J||!a)a=i;6(4.5.u!==7&&a>4.5.u)a=4.5.u;1r(8 j=i;j<=a;j++){8 e=4.L(j);6(!e.I||e.1o('C-1a-1D'))z F}z 1h},L:9(i){z $('.C-1a-'+i,4.t)},2u:9(i,s){8 e=4.L(i),20=0,2u=0;6(e.I==0){8 c,e=4.1B(i),j=r.M(i);1n(c=4.L(--j)){6(j<=0||c.I){j<=0?4.t.2r(e):c.1X(e);1p}}}10 20=4.S(e);e.1E(4.K('C-1a-1D'));1R s=='3l'?e.3k(s):e.2C().3j(s);8 a=4.5.15!=7?1k.1P(4.1m()/4.5.15):7;8 b=4.S(e,a)-20;6(i>0&&i<4.A)4.t.y(4.E,r.M(4.t.y(4.E))-b+'T');4.t.y(4.N,r.M(4.t.y(4.N))+b+'T');z e},1V:9(i){8 e=4.L(i);6(!e.I||(i>=4.A&&i<=4.G))z;8 d=4.S(e);6(i<4.A)4.t.y(4.E,r.M(4.t.y(4.E))+d+'T');e.1V();4.t.y(4.N,r.M(4.t.y(4.N))-d+'T')},17:9(){4.1C();6(4.O!=7&&!4.W)4.1T(F);10 4.1c(((4.5.B=='1Z'||4.5.B=='G')&&4.5.u!=7&&4.G==4.5.u)?1:4.A+4.5.1c)},11:9(){4.1C();6(4.O!=7&&4.W)4.1T(1h);10 4.1c(((4.5.B=='1Z'||4.5.B=='A')&&4.5.u!=7&&4.A==1)?4.5.u:4.A-4.5.1c)},1T:9(b){6(4.Q||4.14||!4.O)z;8 a=r.M(4.t.y(4.E));!b?a-=4.O:a+=4.O;4.W=!b;4.X=4.A;4.13=4.G;4.1i(a)},1c:9(i,a){6(4.Q||4.14)z;4.1i(4.1s(i),a)},1s:9(i){6(4.Q||4.14)z;6(4.5.B!='18')i=i<1?1:(4.5.u&&i>4.5.u?4.5.u:i);8 a=4.A>i;8 b=r.M(4.t.y(4.E));8 f=4.5.B!='18'&&4.A<=1?1:4.A;8 c=a?4.L(f):4.L(4.G);8 j=a?f:f-1;8 e=7,l=0,p=F,d=0;1n(a?--j>=i:++j<i){e=4.L(j);p=!e.I;6(e.I==0){e=4.1B(j).V(4.K('C-1a-1D'));c[a?'1z':'1X'](e)}c=e;d=4.S(e);6(p)l+=d;6(4.A!=7&&(4.5.B=='18'||(j>=1&&(4.5.u==7||j<=4.5.u))))b=a?b+d:b-d}8 g=4.1m();8 h=[];8 k=0,j=i,v=0;8 c=4.L(i-1);1n(++k){e=4.L(j);p=!e.I;6(e.I==0){e=4.1B(j).V(4.K('C-1a-1D'));c.I==0?4.t.2r(e):c[a?'1z':'1X'](e)}c=e;8 d=4.S(e);6(d==0){3f('3e: 3d 1H/26 3c 1r 3b. 3a 39 38 37 36 35. 34...');z 0}6(4.5.B!='18'&&4.5.u!==7&&j>4.5.u)h.33(e);10 6(p)l+=d;v+=d;6(v>=g)1p;j++}1r(8 x=0;x<h.I;x++)h[x].1V();6(l>0){4.t.y(4.N,4.S(4.t)+l+'T');6(a){b-=l;4.t.y(4.E,r.M(4.t.y(4.E))-l+'T')}}8 n=i+k-1;6(4.5.B!='18'&&4.5.u&&n>4.5.u)n=4.5.u;6(j>n){k=0,j=n,v=0;1n(++k){8 e=4.L(j--);6(!e.I)1p;v+=4.S(e);6(v>=g)1p}}8 o=n-k+1;6(4.5.B!='18'&&o<1)o=1;6(4.W&&a){b+=4.O;4.W=F}4.O=7;6(4.5.B!='18'&&n==4.5.u&&(n-k+1)>=1){8 m=r.Y(4.L(n),!4.5.Z?'1l':'1N');6((v-m)>g)4.O=v-g-m}1n(i-->o)b+=4.S(4.L(i));4.X=4.A;4.13=4.G;4.A=o;4.G=n;z b},1i:9(p,a){6(4.Q||4.14)z;4.14=1h;8 b=4;8 c=9(){b.14=F;6(p==0)b.t.y(b.E,0);6(b.5.B=='1Z'||b.5.B=='G'||b.5.u==7||b.G<b.5.u)b.2j();b.1f();b.1M('2i')};4.1M('31');6(!4.5.1K||a==F){4.t.y(4.E,p+'T');c()}10{8 o=!4.5.Z?{'24':p}:{'23':p};4.t.1i(o,4.5.1K,4.5.2c,c)}},2j:9(s){6(s!=J)4.5.1q=s;6(4.5.1q==0)z 4.1C();6(4.1d!=7)z;8 a=4;4.1d=30(9(){a.17()},4.5.1q*2Z)},1C:9(){6(4.1d==7)z;2Y(4.1d);4.1d=7},1f:9(n,p){6(n==J||n==7){8 n=!4.Q&&4.5.u!==0&&((4.5.B&&4.5.B!='A')||4.5.u==7||4.G<4.5.u);6(!4.Q&&(!4.5.B||4.5.B=='A')&&4.5.u!=7&&4.G>=4.5.u)n=4.O!=7&&!4.W}6(p==J||p==7){8 p=!4.Q&&4.5.u!==0&&((4.5.B&&4.5.B!='G')||4.A>1);6(!4.Q&&(!4.5.B||4.5.B=='G')&&4.5.u!=7&&4.A==1)p=4.O!=7&&4.W}8 a=4;4.U[n?'1u':'22'](4.5.2m,4.2G)[n?'1E':'V'](4.K('C-17-1w')).1J('1w',n?F:1h);4.R[p?'1u':'22'](4.5.2k,4.2b)[p?'1E':'V'](4.K('C-11-1w')).1J('1w',p?F:1h);6(4.U.I>0&&(4.U[0].1g==J||4.U[0].1g!=n)&&4.5.1O!=7){4.U.1b(9(){a.5.1O(a,4,n)});4.U[0].1g=n}6(4.R.I>0&&(4.R[0].1g==J||4.R[0].1g!=p)&&4.5.1L!=7){4.R.1b(9(){a.5.1L(a,4,p)});4.R[0].1g=p}},1M:9(a){8 b=4.X==7?'2a':(4.X<4.A?'17':'11');4.12('2F',a,b);6(4.X!==4.A){4.12('2B',a,b,4.A);4.12('2z',a,b,4.X)}6(4.13!==4.G){4.12('2x',a,b,4.G);4.12('2v',a,b,4.13)}4.12('2s',a,b,4.A,4.G,4.X,4.13);4.12('2p',a,b,4.X,4.13,4.A,4.G)},12:9(a,b,c,d,e,f,g){6(4.5[a]==J||(1R 4.5[a]!='2h'&&b!='2i'))z;8 h=1R 4.5[a]=='2h'?4.5[a][b]:4.5[a];6(!$.2W(h))z;8 j=4;6(d===J)h(j,c,b);10 6(e===J)4.L(d).1b(9(){h(j,4,d,c,b)});10{1r(8 i=d;i<=e;i++)6(i!==7&&!(i>=f&&i<=g))4.L(i).1b(9(){h(j,4,i,c,b)})}},1B:9(i){z 4.1I('<1F></1F>',i)},1I:9(e,i){8 a=$(e).V(4.K('C-1a')).V(4.K('C-1a-'+i));a.1J('2V',i);z a},K:9(c){z c+' '+c+(!4.5.Z?'-2U':'-Z')},S:9(e,d){8 a=e.2g!=J?e[0]:e;8 b=!4.5.Z?a.1x+r.Y(a,'2f')+r.Y(a,'1l'):a.2e+r.Y(a,'2d')+r.Y(a,'1N');6(d==J||b==d)z b;8 w=!4.5.Z?d-r.Y(a,'2f')-r.Y(a,'1l'):d-r.Y(a,'2d')-r.Y(a,'1N');$(a).y(4.N,w+'T');z 4.S(a)},1m:9(){z!4.5.Z?4.H[0].1x-r.M(4.H.y('2T'))-r.M(4.H.y('2S')):4.H[0].2e-r.M(4.H.y('2R'))-r.M(4.H.y('3i'))},2P:9(i,s){6(s==J)s=4.5.u;z 1k.2O((((i-1)/s)-1k.2N((i-1)/s))*s)+1}});r.16({3m:9(d){z $.16(q,d||{})},Y:9(e,p){6(!e)z 0;8 a=e.2g!=J?e[0]:e;6(p=='1l'&&$.2A.28){8 b={'1y':'1A','2M':'2L','1H':'1q'},1Y,1W;$.29(a,b,9(){1Y=a.1x});b['1l']=0;$.29(a,b,9(){1W=a.1x});z 1W-1Y}z r.M($.y(a,p))},M:9(v){v=2K(v);z 2J(v)?0:v}})})(3v);",62,218,"||||this|options|if|null|var|function||||||||||||||||||||list|size||||css|return|first|wrap|jcarousel|container|lt|false|last|clip|length|undefined|className|get|intval|wh|tail|div|locked|buttonPrev|dimension|px|buttonNext|addClass|inTail|prevFirst|margin|vertical|else|prev|callback|prevLast|animating|visible|extend|next|circular|parent|item|each|scroll|timer|split|buttons|jcarouselstate|true|animate|initCallback|Math|marginRight|clipping|while|hasClass|break|auto|for|pos|setup|bind|fn|disabled|offsetWidth|display|before|block|create|stopAuto|placeholder|removeClass|li|reloadCallback|width|format|attr|animation|buttonPrevCallback|notify|marginBottom|buttonNextCallback|ceil|buttonPrevHTML|typeof|buttonNextHTML|scrollTail|funcResize|remove|oWidth2|after|oWidth|both|old|offset|unbind|top|left|start|height|window|safari|swap|init|funcPrev|easing|marginTop|offsetHeight|marginLeft|jquery|object|onAfterAnimation|startAuto|buttonPrevEvent|click|buttonNextEvent|ol|ul|itemVisibleOutCallback|reload|prepend|itemVisibleInCallback|nodeName|add|itemLastOutCallback|skin|itemLastInCallback|indexOf|itemFirstOutCallback|browser|itemFirstInCallback|empty|reset|resize|itemLoadCallback|funcNext|prototype|load|isNaN|parseInt|none|float|floor|round|index|swing|borderTopWidth|borderRightWidth|borderLeftWidth|horizontal|jcarouselindex|isFunction|normal|clearTimeout|1000|setTimeout|onBeforeAnimation|children|push|Aborting|loop|infinite|an|cause|will|This|items|set|No|jCarousel|alert|class|find|borderBottomWidth|append|html|string|defaults|OL|UL|new|has|unlock|lock|10px|0px|jQuery".split("|"),0,{}));(function(g){var h=location.href.replace(/#.*/,""),e=g.localScroll=function(a){g("body").localScroll(a)};e.defaults={duration:1000,axis:"y",event:"click",stop:1};e.hash=function(a){a=g.extend({},e.defaults,a);a.hash=0;if(location.hash){setTimeout(function(){f(0,location,a)},0)}};g.fn.localScroll=function(b){b=g.extend({},e.defaults,b);return(b.persistent||b.lazy)?this.bind(b.event,function(c){var d=g([c.target,c.target.parentNode]).filter(a)[0];d&&f(c,d,b)}):this.find("a,area").filter(a).bind(b.event,function(c){f(c,this,b)}).end().end();function a(){var c=this;return !!c.href&&!!c.hash&&c.href.replace(c.hash,"")==h&&(!b.filter||g(c).is(b.filter))}};function f(b,d,o){var q=d.hash.slice(1),a=document.getElementById(q)||document.getElementsByName(q)[0],c;if(a){b&&b.preventDefault();c=g(o.target||g.scrollTo.window());if(o.lock&&c.is(":animated")||o.onBefore&&o.onBefore.call(d,b,a,c)===!1){return}if(o.stop){c.queue("fx",[]).stop()}c.scrollTo(a,o).trigger("notify.serialScroll",[a]);if(o.hash){c.queue(function(){location=d.hash;g(this).dequeue()})}}}})(jQuery);(function(b){b.event.special.mousewheel={setup:function(){var a=b.event.special.mousewheel.handler;if(b.browser.mozilla){b(this).bind("mousemove.mousewheel",function(d){b.data(this,"mwcursorposdata",{pageX:d.pageX,pageY:d.pageY,clientX:d.clientX,clientY:d.clientY})})}if(this.addEventListener){this.addEventListener((b.browser.mozilla?"DOMMouseScroll":"mousewheel"),a,false)}else{this.onmousewheel=a}},teardown:function(){var a=b.event.special.mousewheel.handler;b(this).unbind("mousemove.mousewheel");if(this.removeEventListener){this.removeEventListener((b.browser.mozilla?"DOMMouseScroll":"mousewheel"),a,false)}else{this.onmousewheel=function(){}}b.removeData(this,"mwcursorposdata")},handler:function(g){var a=Array.prototype.slice.call(arguments,1);g=b.event.fix(g||window.event);b.extend(g,b.data(this,"mwcursorposdata")||{});var f=0,h=true;if(g.wheelDelta){f=g.wheelDelta/120}if(g.detail){f=-g.detail/3}g.data=g.data||{};g.type="mousewheel";a.unshift(f);a.unshift(g);return b.event.handle.apply(this,a)}};b.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery);(function(d){var e=d.scrollTo=function(c,a,b){d(window).scrollTo(c,a,b)};e.defaults={axis:"y",duration:1};e.window=function(a){return d(window).scrollable()};d.fn.scrollable=function(){return this.map(function(){var g=this.parentWindow||this.defaultView,a=this.nodeName=="#document"?g.frameElement||g:this,b=a.contentDocument||(a.contentWindow||a).document,c=a.setInterval;return a.nodeName=="IFRAME"||c&&d.browser.safari?b.body:c?b.documentElement:this})};d.fn.scrollTo=function(a,b,c){if(typeof b=="object"){c=b;b=0}if(typeof c=="function"){c={onAfter:c}}c=d.extend({},e.defaults,c);b=b||c.speed||c.duration;c.queue=c.queue&&c.axis.length>1;if(c.queue){b/=2}c.offset=f(c.offset);c.over=f(c.over);return this.scrollable().each(function(){var u=this,l=d(u),o=a,z,q={},y=l.is("html,body");switch(typeof o){case"number":case"string":if(/^([+-]=)?\d+(px)?$/.test(o)){o=f(o);break}o=d(o,this);case"object":if(o.is||o.style){z=(o=d(o)).offset()}}d.each(c.axis.split(""),function(m,v){var h=v=="x"?"Left":"Top",s=h.toLowerCase(),B="scroll"+h,r=u[B],t=v=="x"?"Width":"Height",g=t.toLowerCase();if(z){q[B]=z[s]+(y?0:r-l.offset()[s]);if(c.margin){q[B]-=parseInt(o.css("margin"+h))||0;q[B]-=parseInt(o.css("border"+h+"Width"))||0}q[B]+=c.offset[s]||0;if(c.over[s]){q[B]+=o[g]()*c.over[s]}}else{q[B]=o[s]}if(/^\d+$/.test(q[B])){q[B]=q[B]<=0?0:Math.min(q[B],k(t))}if(!m&&c.queue){if(r!=q[B]){A(c.onAfterFirst)}delete q[B]}});A(c.onAfter);function A(g){l.animate(q,b,c.easing,g&&function(){g.call(this,a,c)})}function k(h){var m="scroll"+h,g=u.ownerDocument;return y?Math.max(g.documentElement[m],g.body[m]):u[m]}}).end()};function f(a){return typeof a=="object"?a:{top:a,left:a}}})(jQuery);jQuery.fn.shortkeys=jQuery.fn.keys=function(f,d){var e=this;this.settings=jQuery.extend({split:"+",moreKeys:{}},d||{});this.wackyKeys={".":190,",":188,";":59,Space:32};this.formElements=new Array("input","select","textarea","button");this.keys=new Array();this.onFormElement=false;this.keysDown=new Array();this.init=function(a){for(x in this.wackyKeys){this.wackyKeys[x.toUpperCase()]=this.wackyKeys[x]}for(x in a){this.keys.push(x.split(this.settings.split))}for(i in this.keys){var b=new Array();for(j in this.keys[i]){b.push(this.convertToNumbers(this.keys[i][j].toUpperCase()))}b.sort();this.keys[i]=b}};this.convertToNumbers=function(a){if(this.wackyKeys[a]!=undefined){return this.wackyKeys[a]}return a.toUpperCase().charCodeAt(0)};this.keyAdd=function(a){this.keysDown.push(a);this.keysDown.sort()};this.keyRemove=function(a){for(i in this.keysDown){if(this.keysDown[i]==a){this.keysDown.splice(i,1)}}this.keysDown.sort()};this.keyTest=function(a){if(this.keys[a].length!=this.keysDown.length){return false}for(j in this.keys[a]){if(this.keys[a][j]!=this.keysDown[j]){return false}}return true};this.keyRemoveAll=function(){this.keysDown=new Array()};this.focused=function(a){this.onFormElement=a};$(document).keydown(function(a){e.keyAdd(a.keyCode);var b=0;for(x in f){if(e.keyTest(b)&&!e.onFormElement){f[x]();return false;break}b++}});$(document).keyup(function(a){e.keyRemove(a.keyCode)});for(x in this.formElements){$(this.formElements[x]).focus(function(){e.focused(true)});$(this.formElements[x]).blur(function(){e.focused(false)})}$(document).focus(function(){e.keyRemoveAll()});this.init(f);jQuery.extend(this.wackyKeys,this.settings.moreKeys);return this};(function(E){var H={},y,u,s,z=E.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),I=false;E.tooltip={blocked:false,defaults:{delay:200,fade:false,showURL:true,extraClass:"",top:15,left:15,id:"tooltip"},block:function(){E.tooltip.blocked=!E.tooltip.blocked}};E.fn.extend({tooltip:function(a){a=E.extend({},E.tooltip.defaults,a);B(a);return this.each(function(){E.data(this,"tooltip",a);this.tOpacity=H.parent.css("opacity");this.tooltipText=this.title;E(this).removeAttr("title");this.alt=""}).mouseover(v).mouseout(D).click(D)},fixPNG:z?function(){return this.each(function(){var a=E(this).css("backgroundImage");if(a.match(/^url\(["']?(.*\.png)["']?\)$/i)){a=RegExp.$1;E(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+a+"')"}).each(function(){var b=E(this).css("position");if(b!="absolute"&&b!="relative"){E(this).css("position","relative")}})}})}:function(){return this},unfixPNG:z?function(){return this.each(function(){E(this).css({filter:"",backgroundImage:""})})}:function(){return this},hideWhenEmpty:function(){return this.each(function(){E(this)[E(this).html()?"show":"hide"]()})},url:function(){return this.attr("href")||this.attr("src")}});function B(a){if(H.parent){return}H.parent=E('<div id="'+a.id+'"><h3></h3><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide();if(E.fn.bgiframe){H.parent.bgiframe()}H.title=E("h3",H.parent);H.body=E("div.body",H.parent);H.url=E("div.url",H.parent)}function G(a){return E.data(a,"tooltip")}function C(a){if(G(this).delay){s=setTimeout(t,G(this).delay)}else{t()}I=!!G(this).track;E(document.body).bind("mousemove",F);F(a)}function v(){if(E.tooltip.blocked||this==y||(!this.tooltipText&&!G(this).bodyHandler)){return}y=this;u=this.tooltipText;if(G(this).bodyHandler){H.title.hide();var a=G(this).bodyHandler.call(this);if(a.nodeType||a.jquery){H.body.empty().append(a)}else{H.body.html(a)}H.body.show()}else{if(G(this).showBody){var b=u.split(G(this).showBody);H.title.html(b.shift()).show();H.body.empty();for(var c=0,d;(d=b[c]);c++){if(c>0){H.body.append("<br/>")}H.body.append(d)}H.body.hideWhenEmpty()}else{H.title.html(u).show();H.body.hide()}}if(G(this).showURL&&E(this).url()){H.url.html(E(this).url().replace("http://","")).show()}else{H.url.hide()}H.parent.addClass(G(this).extraClass);if(G(this).fixPNG){H.parent.fixPNG()}C.apply(this,arguments)}function t(){s=null;if((!z||!E.fn.bgiframe)&&G(y).fade){if(H.parent.is(":animated")){H.parent.stop().show().fadeTo(G(y).fade,y.tOpacity)}else{H.parent.is(":visible")?H.parent.fadeTo(G(y).fade,y.tOpacity):H.parent.fadeIn(G(y).fade)}}else{H.parent.show()}F()}function F(a){if(E.tooltip.blocked){return}if(a&&a.target.tagName=="OPTION"){return}if(!I&&H.parent.is(":visible")){E(document.body).unbind("mousemove",F)}if(y==null){E(document.body).unbind("mousemove",F);return}H.parent.removeClass("viewport-right").removeClass("viewport-bottom");var e=H.parent[0].offsetLeft;var f=H.parent[0].offsetTop;if(a){e=a.pageX+G(y).left;f=a.pageY+G(y).top;var c="auto";if(G(y).positionLeft){c=E(window).width()-e;e="auto"}H.parent.css({left:e,right:c,top:f})}var d=A(),b=H.parent[0];if(d.x+d.cx<b.offsetLeft+b.offsetWidth){e-=b.offsetWidth+20+G(y).left;H.parent.css({left:e+"px"}).addClass("viewport-right")}if(d.y+d.cy<b.offsetTop+b.offsetHeight){f-=b.offsetHeight+20+G(y).top;H.parent.css({top:f+"px"}).addClass("viewport-bottom")}}function A(){return{x:E(window).scrollLeft(),y:E(window).scrollTop(),cx:E(window).width(),cy:E(window).height()}}function D(a){if(E.tooltip.blocked){return}if(s){clearTimeout(s)}y=null;var b=G(this);function c(){H.parent.removeClass(b.extraClass).hide().css("opacity","")}if((!z||!E.fn.bgiframe)&&b.fade){if(H.parent.is(":animated")){H.parent.stop().fadeTo(b.fade,0,c)}else{H.parent.stop().fadeOut(b.fade,c)}}else{c()}if(G(this).fixPNG){H.parent.unfixPNG()}}})(jQuery);(function(b){b.jScrollPane={active:[]};b.fn.jScrollPane=function(d){d=b.extend({},b.fn.jScrollPane.defaults,d);var a=function(){return false};return this.each(function(){var a9=b(this);a9.css("overflow","hidden");var aQ=this;if(b(this).parent().is(".jScrollPaneContainer")){var aE=d.maintainPosition?a9.position().top:0;var bc=b(this).parent();var aC=bc.innerWidth();var aB=bc.outerHeight();var bb=aB;b(">.jScrollPaneTrack, >.jScrollArrowUp, >.jScrollArrowDown",bc).remove();a9.css({top:0})}else{var aE=0;this.originalPadding=a9.css("paddingTop")+" "+a9.css("paddingRight")+" "+a9.css("paddingBottom")+" "+a9.css("paddingLeft");this.originalSidePaddingTotal=(parseInt(a9.css("paddingLeft"))||0)+(parseInt(a9.css("paddingRight"))||0);var aC=a9.innerWidth();var aB=a9.innerHeight();var bb=aB;a9.wrap(b("<div></div>").attr({className:"jScrollPaneContainer"}).css({height:aB+"px",width:aC+"px"}).attr("tabindex",d.tabIndex));b(document).bind("emchange",function(f,e,g){a9.jScrollPane(d)})}if(d.reinitialiseOnImageLoad){var ba=b.data(aQ,"jScrollPaneImagesToLoad")||b("img",a9);var bj=[];if(ba.length){ba.each(function(f,e){b(this).bind("load readystatechange",function(){if(b.inArray(f,bj)==-1){bj.push(e);ba=b.grep(ba,function(h,k){return h!=e});b.data(aQ,"jScrollPaneImagesToLoad",ba);var g=b.extend(d,{reinitialiseOnImageLoad:false});a9.jScrollPane(g)}}).each(function(g,h){if(this.complete||this.complete===undefined){this.src=this.src}})})}}var a5=this.originalSidePaddingTotal;var aL=aC-d.scrollbarWidth-d.scrollbarMargin-a5;var ar={height:"auto",width:aL+"px"};if(d.scrollbarOnLeft){ar.paddingLeft=d.scrollbarMargin+d.scrollbarWidth+"px"}else{ar.paddingRight=d.scrollbarMargin+"px"}a9.css(ar);var aq=a9.outerHeight();var av=aB/aq;if(av<0.99){var bi=a9.parent();bi.append(b("<div></div>").attr({className:"jScrollPaneTrack"}).css({width:d.scrollbarWidth+"px"}).append(b("<div></div>").attr({className:"jScrollPaneDrag"}).css({width:d.scrollbarWidth+"px"}).append(b("<div></div>").attr({className:"jScrollPaneDragTop"}).css({width:d.scrollbarWidth+"px"}),b("<div></div>").attr({className:"jScrollPaneDragBottom"}).css({width:d.scrollbarWidth+"px"}))));var aJ=b(">.jScrollPaneTrack",bi);var a8=b(">.jScrollPaneTrack .jScrollPaneDrag",bi);var aG;var bl=[];var a1;var au=function(){if(a1>4||a1%4==0){aN(aT+aG*aI)}a1++};if(d.enableKeyboardNavigation){bi.bind("keydown.jscrollpane",function(e){switch(e.keyCode){case 38:aG=-1;a1=0;au();bl[bl.length]=setInterval(au,100);return false;case 40:aG=1;a1=0;au();bl[bl.length]=setInterval(au,100);return false;case 32:case 33:case 34:return false;default:console.log(e.keyCode)}}).bind("keyup.jscrollpane",function(e){if(e.keyCode==38||e.keyCode==40){for(var f=0;f<bl.length;f++){clearInterval(bl[f])}return false}})}if(d.showArrows){var ax;var a2;var bd=function(e){b("html").unbind("mouseup",bd);ax.removeClass("jScrollActiveArrowButton");clearInterval(a2)};var aM=function(){b("html").bind("mouseup",bd);ax.addClass("jScrollActiveArrowButton");a1=0;au();a2=setInterval(au,100)};bi.append(b("<a></a>").attr({href:"javascript:;",className:"jScrollArrowUp",tabindex:-1}).css({width:d.scrollbarWidth+"px"}).html("Scroll up").bind("mousedown",function(){ax=b(this);aG=-1;aM();this.blur();return false}).bind("click",a),b("<a></a>").attr({href:"javascript:;",className:"jScrollArrowDown",tabindex:-1}).css({width:d.scrollbarWidth+"px"}).html("Scroll down").bind("mousedown",function(){ax=b(this);aG=1;aM();this.blur();return false}).bind("click",a));var a7=b(">.jScrollArrowUp",bi);var bf=b(">.jScrollArrowDown",bi);if(d.arrowSize){bb=aB-d.arrowSize-d.arrowSize;aJ.css({height:bb+"px",top:d.arrowSize+"px"})}else{var a0=a7.height();d.arrowSize=a0;bb=aB-a0-bf.height();aJ.css({height:bb+"px",top:a0+"px"})}}var aS=b(this).css({position:"absolute",overflow:"visible"});var bo;var aO;var aI;var aT=0;var aU=av*aB/2;var aK=function(g,e){var f=e=="X"?"Left":"Top";return g["page"+e]||(g["client"+e]+(document.documentElement["scroll"+f]||document.body["scroll"+f]))||0};var ay=function(){return false};var aW=function(){c();bo=a8.offset(false);bo.top-=aT;aO=bb-a8[0].offsetHeight;aI=2*d.wheelSpeed*aO/aq};var bn=function(e){aW();aU=aK(e,"Y")-aT-bo.top;b("html").bind("mouseup",aZ).bind("mousemove",aw);if(b.browser.msie){b("html").bind("dragstart",ay).bind("selectstart",ay)}return false};var aZ=function(){b("html").unbind("mouseup",aZ).unbind("mousemove",aw);aU=av*aB/2;if(b.browser.msie){b("html").unbind("dragstart",ay).unbind("selectstart",ay)}};var aN=function(f){f=f<0?0:(f>aO?aO:f);aT=f;a8.css({top:f+"px"});var e=f/aO;a9.data("jScrollPanePosition",(aB-aq)*-e);aS.css({top:((aB-aq)*e)+"px"});a9.trigger("scroll");if(d.showArrows){a7[f==0?"addClass":"removeClass"]("disabled");bf[f==aO?"addClass":"removeClass"]("disabled")}};var aw=function(e){aN(aK(e,"Y")-bo.top-aU)};var a4=Math.max(Math.min(av*(aB-d.arrowSize*2),d.dragMaxHeight),d.dragMinHeight);a8.css({height:a4+"px"}).bind("mousedown",bn);var at;var a6;var bg;var aY=function(){if(a6>8||a6%4==0){aN((aT-((aT-bg)/2)))}a6++};var aH=function(){clearInterval(at);b("html").unbind("mouseup",aH).unbind("mousemove",az)};var az=function(e){bg=aK(e,"Y")-bo.top-aU};var aX=function(e){aW();az(e);a6=0;b("html").bind("mouseup",aH).bind("mousemove",az);at=setInterval(aY,100);aY();return false};aJ.bind("mousedown",aX);bi.bind("mousewheel",function(f,h){aW();c();var e=aT;aN(aT-h*aI);var g=e!=aT;return !g});var bm;var aR;function aF(){var e=(bm-aT)/d.animateStep;if(e>1||e<-1){aN(aT+e)}else{aN(bm);c()}}var c=function(){if(aR){clearInterval(aR);delete bm}};var aP=function(h,g){if(typeof h=="string"){$e=b(h,a9);if(!$e.length){return}h=$e.offset().top-a9.offset().top}bi.scrollTop(0);c();var e=aq-aB;h=h>e?e:h;a9.data("jScrollPaneMaxScroll",e);var f=h/e*aO;if(g||!d.animateTo){aN(f)}else{bm=f;aR=setInterval(aF,d.animateInterval)}};a9[0].scrollTo=aP;a9[0].scrollBy=function(e){var f=-parseInt(aS.css("top"))||0;aP(f+e)};aW();aP(-aE,true);b("*",this).bind("focus",function(l){var m=b(this);var h=0;while(m[0]!=a9[0]){h+=m.position().top;m=m.offsetParent()}var g=-parseInt(aS.css("top"))||0;var k=g+aB;var e=h>g&&h<k;if(!e){var f=h-d.scrollbarMargin;if(h>g){f+=b(this).height()+15+d.scrollbarMargin-aB}aP(f)}});if(location.hash){aP(location.hash)}b(document).bind("click",function(e){$target=b(e.target);if($target.is("a")){var f=$target.attr("href");if(f&&f.substr(0,1)=="#"){aP(f)}}});function aV(e){b(document).bind("mousemove.jScrollPaneDragging",a3);b(document).bind("mouseup.jScrollPaneDragging",be)}var aA;var bk;function aD(){direction=aA<0?-1:1;a9[0].scrollBy(aA/2)}function bh(){if(bk){clearInterval(bk);bk=undefined}}function a3(e){var h=a9.parent().offset().top;var g=h+aB;var f=aK(e,"Y");aA=f<h?f-h:(f>g?f-g:0);if(aA==0){bh()}else{if(!bk){bk=setInterval(aD,100)}}}function be(e){b(document).unbind("mousemove.jScrollPaneDragging").unbind("mouseup.jScrollPaneDragging");bh()}bi.bind("mousedown.jScrollPane",aV);b.jScrollPane.active.push(a9[0])}else{a9.css({height:aB+"px",width:aC-this.originalSidePaddingTotal+"px",padding:this.originalPadding});a9.parent().unbind("mousewheel").unbind("mousedown.jScrollPane").unbind("keydown.jscrollpane").unbind("keyup.jscrollpane")}})};b.fn.jScrollPaneRemove=function(){b(this).each(function(){$this=b(this);var a=$this.parent();if(a.is(".jScrollPaneContainer")){$this.css({top:"",height:"",width:"",padding:"",overflow:"",position:""});a.after($this).remove()}})};b.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};b(window).bind("unload",function(){var d=b.jScrollPane.active;for(var a=0;a<d.length;a++){d[a].scrollTo=d[a].scrollBy=null}})})(jQuery);$(function(){$("#modalBox").jScrollPane({showArrows:true})});$(function(){$("#modalFrame").jScrollPane({showArrows:true})});jQuery.ui||(function(s){var k=s.fn.remove,r=s.browser.mozilla&&(parseFloat(s.browser.version)<1.9);s.ui={version:"1.7.2",plugin:{add:function(c,b,e){var a=s.ui[c].prototype;for(var d in e){a.plugins[d]=a.plugins[d]||[];a.plugins[d].push([b,e[d]])}},call:function(d,b,c){var e=d.plugins[b];if(!e||!d.element[0].parentNode){return}for(var a=0;a<e.length;a++){if(d.options[e[a][0]]){e[a][1].apply(d.element,c)}}}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(a,c){if(s(a).css("overflow")=="hidden"){return false}var d=(c&&c=="left")?"scrollLeft":"scrollTop",b=false;if(a[d]>0){return true}a[d]=1;b=(a[d]>0);a[d]=0;return b},isOverAxis:function(b,c,a){return(b>c)&&(b<(c+a))},isOver:function(e,c,f,a,d,b){return s.ui.isOverAxis(e,f,d)&&s.ui.isOverAxis(c,a,b)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(r){var o=s.attr,q=s.fn.removeAttr,l="http://www.w3.org/2005/07/aaa",u=/^aria-/,t=/^wairole:/;s.attr=function(c,d,b){var a=b!==undefined;return(d=="role"?(a?o.call(this,c,d,"wairole:"+b):(o.apply(this,arguments)||"").replace(t,"")):(u.test(d)?(a?c.setAttributeNS(l,d.replace(u,"aaa:"),b):o.call(this,c,d.replace(u,"aaa:"))):o.apply(this,arguments)))};s.fn.removeAttr=function(a){return(u.test(a)?this.each(function(){this.removeAttributeNS(l,a.replace(u,""))}):q.call(this,a))}}s.fn.extend({remove:function(){s("*",this).add(this).each(function(){s(this).triggerHandler("remove")});return k.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((s.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){a=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(s.curCSS(this,"position",1))&&(/(auto|scroll)/).test(s.curCSS(this,"overflow",1)+s.curCSS(this,"overflow-y",1)+s.curCSS(this,"overflow-x",1))}).eq(0)}else{a=this.parents().filter(function(){return(/(auto|scroll)/).test(s.curCSS(this,"overflow",1)+s.curCSS(this,"overflow-y",1)+s.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!a.length?s(document):a}});s.extend(s.expr[":"],{data:function(a,b,c){return !!s.data(a,c[3])},focusable:function(b){var a=b.nodeName.toLowerCase(),c=s.attr(b,"tabindex");return(/input|select|textarea|button|object/.test(a)?!b.disabled:"a"==a||"area"==a?b.href||!isNaN(c):!isNaN(c))&&!s(b)["area"==a?"parents":"closest"](":hidden").length},tabbable:function(a){var b=s.attr(a,"tabindex");return(isNaN(b)||b>=0)&&s(a).is(":focusable")}});function m(a,f,e,b){function c(g){var h=s[a][f][g]||[];return(typeof h=="string"?h.split(/,?\s+/):h)}var d=c("getter");if(b.length==1&&typeof b[0]=="string"){d=d.concat(c("getterSetter"))}return(s.inArray(e,d)!=-1)}s.widget=function(b,c){var a=b.split(".")[0];b=b.split(".")[1];s.fn[b]=function(e){var g=(typeof e=="string"),f=Array.prototype.slice.call(arguments,1);if(g&&e.substring(0,1)=="_"){return this}if(g&&m(a,b,e,f)){var d=s.data(this[0],b);return(d?d[e].apply(d,f):undefined)}return this.each(function(){var h=s.data(this,b);(!h&&!g&&s.data(this,b,new s[a][b](this,e))._init());(h&&g&&s.isFunction(h[e])&&h[e].apply(h,f))})};s[a]=s[a]||{};s[a][b]=function(e,f){var d=this;this.namespace=a;this.widgetName=b;this.widgetEventPrefix=s[a][b].eventPrefix||b;this.widgetBaseClass=a+"-"+b;this.options=s.extend({},s.widget.defaults,s[a][b].defaults,s.metadata&&s.metadata.get(e)[b],f);this.element=s(e).bind("setData."+b,function(h,v,g){if(h.target==e){return d._setData(v,g)}}).bind("getData."+b,function(g,h){if(g.target==e){return d._getData(h)}}).bind("remove",function(){return d.destroy()})};s[a][b].prototype=s.extend({},s.widget.prototype,c);s[a][b].getterSetter="option"};s.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(b,a){var c=b,d=this;if(typeof b=="string"){if(a===undefined){return this._getData(b)}c={};c[b]=a}s.each(c,function(f,e){d._setData(f,e)})},_getData:function(a){return this.options[a]},_setData:function(b,a){this.options[b]=a;if(b=="disabled"){this.element[a?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",a)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(b,a,g){var e=this.options[b],d=(b==this.widgetEventPrefix?b:this.widgetEventPrefix+b);a=s.Event(a);a.type=d;if(a.originalEvent){for(var c=s.event.props.length,f;c;){f=s.event.props[--c];a[f]=a.originalEvent[f]}}this.element.trigger(a,g);return !(s.isFunction(e)&&e.call(this.element[0],a,g)===false||a.isDefaultPrevented())}};s.widget.defaults={disabled:false};s.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(s.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(s.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(b){b.originalEvent=b.originalEvent||{};if(b.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(b));this._mouseDownEvent=b;var c=this,a=(b.which==1),d=(typeof this.options.cancel=="string"?s(b.target).parents().add(b.target).filter(this.options.cancel).length:false);if(!a||d||!this._mouseCapture(b)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=(this._mouseStart(b)!==false);if(!this._mouseStarted){b.preventDefault();return true}}this._mouseMoveDelegate=function(e){return c._mouseMove(e)};this._mouseUpDelegate=function(e){return c._mouseUp(e)};s(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(s.browser.safari||b.preventDefault());b.originalEvent.mouseHandled=true;return true},_mouseMove:function(a){if(s.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){s(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}};s.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function(b){b.widget("ui.draggable",b.extend({},b.ui.mouse,{_init:function(){if(this.options.helper=="original"&&!(/^(?:r|a|f)/).test(this.element.css("position"))){this.element[0].style.position="relative"}(this.options.addClasses&&this.element.addClass("ui-draggable"));(this.options.disabled&&this.element.addClass("ui-draggable-disabled"));this._mouseInit()},destroy:function(){if(!this.element.data("draggable")){return}this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy()},_mouseCapture:function(a){var d=this.options;if(this.helper||d.disabled||b(a.target).is(".ui-resizable-handle")){return false}this.handle=this._getHandle(a);if(!this.handle){return false}return true},_mouseStart:function(a){var d=this.options;this.helper=this._createHelper(a);this._cacheHelperProportions();if(b.ui.ddmanager){b.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};b.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;if(d.cursorAt){this._adjustOffsetFromHelper(d.cursorAt)}if(d.containment){this._setContainment()}this._trigger("start",a);this._cacheHelperProportions();if(b.ui.ddmanager&&!d.dropBehaviour){b.ui.ddmanager.prepareOffsets(this,a)}this.helper.addClass("ui-draggable-dragging");this._mouseDrag(a,true);return true},_mouseDrag:function(a,e){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");if(!e){var f=this._uiHash();this._trigger("drag",a,f);this.position=f.position}if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}if(b.ui.ddmanager){b.ui.ddmanager.drag(this,a)}return false},_mouseStop:function(f){var e=false;if(b.ui.ddmanager&&!this.options.dropBehaviour){e=b.ui.ddmanager.drop(this,f)}if(this.dropped){e=this.dropped;this.dropped=false}if((this.options.revert=="invalid"&&!e)||(this.options.revert=="valid"&&e)||this.options.revert===true||(b.isFunction(this.options.revert)&&this.options.revert.call(this.element,e))){var a=this;b(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){a._trigger("stop",f);a._clear()})}else{this._trigger("stop",f);this._clear()}return false},_getHandle:function(a){var d=!this.options.handle||!b(this.options.handle,this.element).length?true:false;b(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==a.target){d=true}});return d},_createHelper:function(f){var e=this.options;var a=b.isFunction(e.helper)?b(e.helper.apply(this.element[0],[f])):(e.helper=="clone"?this.element.clone():this.element);if(!a.parents("body").length){a.appendTo((e.appendTo=="parent"?this.element[0].parentNode:e.appendTo))}if(a[0]!=this.element[0]&&!(/(fixed|absolute)/).test(a.css("position"))){a.css("position","absolute")}return a},_adjustOffsetFromHelper:function(a){if(a.left!=undefined){this.offset.click.left=a.left+this.margins.left}if(a.right!=undefined){this.offset.click.left=this.helperProportions.width-a.right+this.margins.left}if(a.top!=undefined){this.offset.click.top=a.top+this.margins.top}if(a.bottom!=undefined){this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)){a={top:0,left:0}}return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var f=this.options;if(f.containment=="parent"){f.containment=this.helper[0].parentNode}if(f.containment=="document"||f.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,b(f.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b(f.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(f.containment)&&f.containment.constructor!=Array){var h=b(f.containment)[0];if(!h){return}var g=b(f.containment).offset();var a=(b(h).css("overflow")!="hidden");this.containment=[g.left+(parseInt(b(h).css("borderLeftWidth"),10)||0)+(parseInt(b(h).css("paddingLeft"),10)||0)-this.margins.left,g.top+(parseInt(b(h).css("borderTopWidth"),10)||0)+(parseInt(b(h).css("paddingTop"),10)||0)-this.margins.top,g.left+(a?Math.max(h.scrollWidth,h.offsetWidth):h.offsetWidth)-(parseInt(b(h).css("borderLeftWidth"),10)||0)-(parseInt(b(h).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,g.top+(a?Math.max(h.scrollHeight,h.offsetHeight):h.offsetHeight)-(parseInt(b(h).css("borderTopWidth"),10)||0)-(parseInt(b(h).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}else{if(f.containment.constructor==Array){this.containment=f.containment}}},_convertPositionTo:function(l,d){if(!d){d=this.position}var o=l=="absolute"?1:-1;var m=this.options,a=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(a[0].tagName);return{top:(d.top+this.offset.relative.top*o+this.offset.parent.top*o-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(k?0:a.scrollTop()))*o)),left:(d.left+this.offset.relative.left*o+this.offset.parent.left*o-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():k?0:a.scrollLeft())*o))}},_generatePosition:function(q){var l=this.options,a=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(a[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var r=q.pageX;var s=q.pageY;if(this.originalPosition){if(this.containment){if(q.pageX-this.offset.click.left<this.containment[0]){r=this.containment[0]+this.offset.click.left}if(q.pageY-this.offset.click.top<this.containment[1]){s=this.containment[1]+this.offset.click.top}if(q.pageX-this.offset.click.left>this.containment[2]){r=this.containment[2]+this.offset.click.left}if(q.pageY-this.offset.click.top>this.containment[3]){s=this.containment[3]+this.offset.click.top}}if(l.grid){var m=this.originalPageY+Math.round((s-this.originalPageY)/l.grid[1])*l.grid[1];s=this.containment?(!(m-this.offset.click.top<this.containment[1]||m-this.offset.click.top>this.containment[3])?m:(!(m-this.offset.click.top<this.containment[1])?m-l.grid[1]:m+l.grid[1])):m;var o=this.originalPageX+Math.round((r-this.originalPageX)/l.grid[0])*l.grid[0];r=this.containment?(!(o-this.offset.click.left<this.containment[0]||o-this.offset.click.left>this.containment[2])?o:(!(o-this.offset.click.left<this.containment[0])?o-l.grid[0]:o+l.grid[0])):o}}return{top:(s-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:a.scrollTop())))),left:(r-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:a.scrollLeft())))}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");if(this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false},_trigger:function(a,f,e){e=e||this._uiHash();b.ui.plugin.call(this,a,[f,e]);if(a=="drag"){this.positionAbs=this._convertPositionTo("absolute")}return b.widget.prototype._trigger.call(this,a,f,e)},plugins:{},_uiHash:function(a){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs}}}));b.extend(b.ui.draggable,{version:"1.7.2",eventPrefix:"drag",defaults:{addClasses:true,appendTo:"parent",axis:false,cancel:":input,option",connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false}});b.ui.plugin.add("draggable","connectToSortable",{start:function(l,h){var k=b(this).data("draggable"),g=k.options,a=b.extend({},h,{item:k.element});k.sortables=[];b(g.connectToSortable).each(function(){var c=b.data(this,"sortable");if(c&&!c.options.disabled){k.sortables.push({instance:c,shouldRevert:c.options.revert});c._refreshItems();c._trigger("activate",l,a)}})},stop:function(h,f){var g=b(this).data("draggable"),a=b.extend({},f,{item:g.element});b.each(g.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;g.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance._mouseStop(h);this.instance.options.helper=this.instance.options._helper;if(g.options.helper=="original"){this.instance.currentItem.css({top:"auto",left:"auto"})}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",h,a)}})},drag:function(l,g){var h=b(this).data("draggable"),a=this;var k=function(r){var d=this.offset.click.top,e=this.offset.click.left;var t=this.positionAbs.top,o=this.positionAbs.left;var q=r.height,f=r.width;var c=r.top,s=r.left;return b.ui.isOver(t+d,o+e,c,s,q,f)};b.each(h.sortables,function(c){this.instance.positionAbs=h.positionAbs;this.instance.helperProportions=h.helperProportions;this.instance.offset.click=h.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=b(a).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return g.helper[0]};l.target=this.instance.currentItem[0];this.instance._mouseCapture(l,true);this.instance._mouseStart(l,true,true);this.instance.offset.click.top=h.offset.click.top;this.instance.offset.click.left=h.offset.click.left;this.instance.offset.parent.left-=h.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=h.offset.parent.top-this.instance.offset.parent.top;h._trigger("toSortable",l);h.dropped=this.instance.element;h.currentItem=h.element;this.instance.fromOutside=h}if(this.instance.currentItem){this.instance._mouseDrag(l)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",l,this.instance._uiHash(this.instance));this.instance._mouseStop(l,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove()}h._trigger("fromSortable",l);h.dropped=false}}})}});b.ui.plugin.add("draggable","cursor",{start:function(h,g){var a=b("body"),f=b(this).data("draggable").options;if(a.css("cursor")){f._cursor=a.css("cursor")}a.css("cursor",f.cursor)},stop:function(a,f){var e=b(this).data("draggable").options;if(e._cursor){b("body").css("cursor",e._cursor)}}});b.ui.plugin.add("draggable","iframeFix",{start:function(a,f){var e=b(this).data("draggable").options;b(e.iframeFix===true?"iframe":e.iframeFix).each(function(){b('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(b(this).offset()).appendTo("body")})},stop:function(a,d){b("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});b.ui.plugin.add("draggable","opacity",{start:function(h,g){var a=b(g.helper),f=b(this).data("draggable").options;if(a.css("opacity")){f._opacity=a.css("opacity")}a.css("opacity",f.opacity)},stop:function(a,f){var e=b(this).data("draggable").options;if(e._opacity){b(f.helper).css("opacity",e._opacity)}}});b.ui.plugin.add("draggable","scroll",{start:function(f,e){var a=b(this).data("draggable");if(a.scrollParent[0]!=document&&a.scrollParent[0].tagName!="HTML"){a.overflowOffset=a.scrollParent.offset()}},drag:function(k,h){var l=b(this).data("draggable"),g=l.options,a=false;if(l.scrollParent[0]!=document&&l.scrollParent[0].tagName!="HTML"){if(!g.axis||g.axis!="x"){if((l.overflowOffset.top+l.scrollParent[0].offsetHeight)-k.pageY<g.scrollSensitivity){l.scrollParent[0].scrollTop=a=l.scrollParent[0].scrollTop+g.scrollSpeed}else{if(k.pageY-l.overflowOffset.top<g.scrollSensitivity){l.scrollParent[0].scrollTop=a=l.scrollParent[0].scrollTop-g.scrollSpeed}}}if(!g.axis||g.axis!="y"){if((l.overflowOffset.left+l.scrollParent[0].offsetWidth)-k.pageX<g.scrollSensitivity){l.scrollParent[0].scrollLeft=a=l.scrollParent[0].scrollLeft+g.scrollSpeed}else{if(k.pageX-l.overflowOffset.left<g.scrollSensitivity){l.scrollParent[0].scrollLeft=a=l.scrollParent[0].scrollLeft-g.scrollSpeed}}}}else{if(!g.axis||g.axis!="x"){if(k.pageY-b(document).scrollTop()<g.scrollSensitivity){a=b(document).scrollTop(b(document).scrollTop()-g.scrollSpeed)}else{if(b(window).height()-(k.pageY-b(document).scrollTop())<g.scrollSensitivity){a=b(document).scrollTop(b(document).scrollTop()+g.scrollSpeed)}}}if(!g.axis||g.axis!="y"){if(k.pageX-b(document).scrollLeft()<g.scrollSensitivity){a=b(document).scrollLeft(b(document).scrollLeft()-g.scrollSpeed)}else{if(b(window).width()-(k.pageX-b(document).scrollLeft())<g.scrollSensitivity){a=b(document).scrollLeft(b(document).scrollLeft()+g.scrollSpeed)}}}}if(a!==false&&b.ui.ddmanager&&!g.dropBehaviour){b.ui.ddmanager.prepareOffsets(l,k)}}});b.ui.plugin.add("draggable","snap",{start:function(h,g){var a=b(this).data("draggable"),f=a.options;a.snapElements=[];b(f.snap.constructor!=String?(f.snap.items||":data(draggable)"):f.snap).each(function(){var c=b(this);var d=c.offset();if(this!=a.element[0]){a.snapElements.push({item:this,width:c.outerWidth(),height:c.outerHeight(),top:d.top,left:d.left})}})},drag:function(t,E){var K=b(this).data("draggable"),C=K.options;var d=C.snapTolerance;var l=E.offset.left,o=l+K.helperProportions.width,L=E.offset.top,M=L+K.helperProportions.height;for(var r=K.snapElements.length-1;r>=0;r--){var B=K.snapElements[r].left,F=B+K.snapElements[r].width,G=K.snapElements[r].top,D=G+K.snapElements[r].height;if(!((B-d<l&&l<F+d&&G-d<L&&L<D+d)||(B-d<l&&l<F+d&&G-d<M&&M<D+d)||(B-d<o&&o<F+d&&G-d<L&&L<D+d)||(B-d<o&&o<F+d&&G-d<M&&M<D+d))){if(K.snapElements[r].snapping){(K.options.snap.release&&K.options.snap.release.call(K.element,t,b.extend(K._uiHash(),{snapItem:K.snapElements[r].item})))}K.snapElements[r].snapping=false;continue}if(C.snapMode!="inner"){var N=Math.abs(G-M)<=d;var a=Math.abs(D-L)<=d;var I=Math.abs(B-o)<=d;var H=Math.abs(F-l)<=d;if(N){E.position.top=K._convertPositionTo("relative",{top:G-K.helperProportions.height,left:0}).top-K.margins.top}if(a){E.position.top=K._convertPositionTo("relative",{top:D,left:0}).top-K.margins.top}if(I){E.position.left=K._convertPositionTo("relative",{top:0,left:B-K.helperProportions.width}).left-K.margins.left}if(H){E.position.left=K._convertPositionTo("relative",{top:0,left:F}).left-K.margins.left}}var J=(N||a||I||H);if(C.snapMode!="outer"){var N=Math.abs(G-L)<=d;var a=Math.abs(D-M)<=d;var I=Math.abs(B-l)<=d;var H=Math.abs(F-o)<=d;if(N){E.position.top=K._convertPositionTo("relative",{top:G,left:0}).top-K.margins.top}if(a){E.position.top=K._convertPositionTo("relative",{top:D-K.helperProportions.height,left:0}).top-K.margins.top}if(I){E.position.left=K._convertPositionTo("relative",{top:0,left:B}).left-K.margins.left}if(H){E.position.left=K._convertPositionTo("relative",{top:0,left:F-K.helperProportions.width}).left-K.margins.left}}if(!K.snapElements[r].snapping&&(N||a||I||H||J)){(K.options.snap.snap&&K.options.snap.snap.call(K.element,t,b.extend(K._uiHash(),{snapItem:K.snapElements[r].item})))}K.snapElements[r].snapping=(N||a||I||H||J)}}});b.ui.plugin.add("draggable","stack",{start:function(a,h){var f=b(this).data("draggable").options;var g=b.makeArray(b(f.stack.group)).sort(function(c,d){return(parseInt(b(c).css("zIndex"),10)||f.stack.min)-(parseInt(b(d).css("zIndex"),10)||f.stack.min)});b(g).each(function(c){this.style.zIndex=f.stack.min+c});this[0].style.zIndex=f.stack.min+g.length}});b.ui.plugin.add("draggable","zIndex",{start:function(h,g){var a=b(g.helper),f=b(this).data("draggable").options;if(a.css("zIndex")){f._zIndex=a.css("zIndex")}a.css("zIndex",f.zIndex)},stop:function(a,f){var e=b(this).data("draggable").options;if(e._zIndex){b(f.helper).css("zIndex",e._zIndex)}}})})(jQuery);(function(b){b.widget("ui.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(l,k){if(this.reverting){return false}if(this.options.disabled||this.options.type=="static"){return false}this._refreshItems(l);var m=null,o=this,a=b(l.target).parents().each(function(){if(b.data(this,"sortable-item")==o){m=b(this);return false}});if(b.data(l.target,"sortable-item")==o){m=b(l.target)}if(!m){return false}if(this.options.handle&&!k){var h=false;b(this.options.handle,m).find("*").andSelf().each(function(){if(this==l.target){h=true}});if(!h){return false}}this.currentItem=m;this._removeCurrentsFromItems();return true},_mouseStart:function(l,k,a){var h=this.options,o=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(l);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:l.pageX-this.offset.left,top:l.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(l);this.originalPageX=l.pageX;this.originalPageY=l.pageY;if(h.cursorAt){this._adjustOffsetFromHelper(h.cursorAt)}this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};if(this.helper[0]!=this.currentItem[0]){this.currentItem.hide()}this._createPlaceholder();if(h.containment){this._setContainment()}if(h.cursor){if(b("body").css("cursor")){this._storedCursor=b("body").css("cursor")}b("body").css("cursor",h.cursor)}if(h.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity")}this.helper.css("opacity",h.opacity)}if(h.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex")}this.helper.css("zIndex",h.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){this.overflowOffset=this.scrollParent.offset()}this._trigger("start",l,this._uiHash());if(!this._preserveHelperProportions){this._cacheHelperProportions()}if(!a){for(var m=this.containers.length-1;m>=0;m--){this.containers[m]._trigger("activate",l,o._uiHash(this))}}if(b.ui.ddmanager){b.ui.ddmanager.current=this}if(b.ui.ddmanager&&!h.dropBehaviour){b.ui.ddmanager.prepareOffsets(this,l)}this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(l);return true},_mouseDrag:function(m){this.position=this._generatePosition(m);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){var l=this.options,a=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-m.pageY<l.scrollSensitivity){this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop+l.scrollSpeed}else{if(m.pageY-this.overflowOffset.top<l.scrollSensitivity){this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop-l.scrollSpeed}}if((this.overflowOffset.left+this.scrollParent[0].offsetWidth)-m.pageX<l.scrollSensitivity){this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft+l.scrollSpeed}else{if(m.pageX-this.overflowOffset.left<l.scrollSensitivity){this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft-l.scrollSpeed}}}else{if(m.pageY-b(document).scrollTop()<l.scrollSensitivity){a=b(document).scrollTop(b(document).scrollTop()-l.scrollSpeed)}else{if(b(window).height()-(m.pageY-b(document).scrollTop())<l.scrollSensitivity){a=b(document).scrollTop(b(document).scrollTop()+l.scrollSpeed)}}if(m.pageX-b(document).scrollLeft()<l.scrollSensitivity){a=b(document).scrollLeft(b(document).scrollLeft()-l.scrollSpeed)}else{if(b(window).width()-(m.pageX-b(document).scrollLeft())<l.scrollSensitivity){a=b(document).scrollLeft(b(document).scrollLeft()+l.scrollSpeed)}}}if(a!==false&&b.ui.ddmanager&&!l.dropBehaviour){b.ui.ddmanager.prepareOffsets(this,m)}}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 q=this.items.length-1;q>=0;q--){var o=this.items[q],r=o.item[0],k=this._intersectsWithPointer(o);if(!k){continue}if(r!=this.currentItem[0]&&this.placeholder[k==1?"next":"prev"]()[0]!=r&&!b.ui.contains(this.placeholder[0],r)&&(this.options.type=="semi-dynamic"?!b.ui.contains(this.element[0],r):true)){this.direction=k==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(o)){this._rearrange(m,o)}else{break}this._trigger("change",m,this._uiHash());break}}this._contactContainers(m);if(b.ui.ddmanager){b.ui.ddmanager.drag(this,m)}this._trigger("sort",m,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(h,g){if(!h){return}if(b.ui.ddmanager&&!this.options.dropBehaviour){b.ui.ddmanager.drop(this,h)}if(this.options.revert){var a=this;var f=a.placeholder.offset();a.reverting=true;b(this.helper).animate({left:f.left-this.offset.parent.left-a.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:f.top-this.offset.parent.top-a.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){a._clear(h)})}else{this._clear(h,g)}return false},cancel:function(){var a=this;if(this.dragging){this._mouseUp();if(this.options.helper=="original"){this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}for(var d=this.containers.length-1;d>=0;d--){this.containers[d]._trigger("deactivate",null,a._uiHash(this));if(this.containers[d].containerCache.over){this.containers[d]._trigger("out",null,a._uiHash(this));this.containers[d].containerCache.over=0}}}if(this.placeholder[0].parentNode){this.placeholder[0].parentNode.removeChild(this.placeholder[0])}if(this.options.helper!="original"&&this.helper&&this.helper[0].parentNode){this.helper.remove()}b.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev){b(this.domPosition.prev).after(this.currentItem)}else{b(this.domPosition.parent).prepend(this.currentItem)}return true},serialize:function(e){var a=this._getItemsAsjQuery(e&&e.connected);var f=[];e=e||{};b(a).each(function(){var c=(b(e.item||this).attr(e.attribute||"id")||"").match(e.expression||(/(.+)[-=_](.+)/));if(c){f.push((e.key||c[1]+"[]")+"="+(e.key&&e.expression?c[1]:c[2]))}});return f.join("&")},toArray:function(e){var a=this._getItemsAsjQuery(e&&e.connected);var f=[];e=e||{};a.each(function(){f.push(b(e.item||this).attr(e.attribute||"id")||"")});return f},_intersectsWith:function(q){var z=this.positionAbs.left,A=z+this.helperProportions.width,r=this.positionAbs.top,s=r+this.helperProportions.height;var y=q.left,B=y+q.width,l=q.top,t=l+q.height;var a=this.offset.click.top,u=this.offset.click.left;var v=(r+a)>l&&(r+a)<t&&(z+u)>y&&(z+u)<B;if(this.options.tolerance=="pointer"||this.options.forcePointerForContainers||(this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>q[this.floating?"width":"height"])){return v}else{return(y<z+(this.helperProportions.width/2)&&A-(this.helperProportions.width/2)<B&&l<r+(this.helperProportions.height/2)&&s-(this.helperProportions.height/2)<t)}},_intersectsWithPointer:function(m){var l=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,m.top,m.height),o=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,m.left,m.width),h=l&&o,a=this._getDragVerticalDirection(),k=this._getDragHorizontalDirection();if(!h){return false}return this.floating?(((k&&k=="right")||a=="down")?2:1):(a&&(a=="down"?2:1))},_intersectsWithSides:function(h){var l=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,h.top+(h.height/2),h.height),k=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,h.left+(h.width/2),h.width),a=this._getDragVerticalDirection(),g=this._getDragHorizontalDirection();if(this.floating&&g){return((g=="right"&&k)||(g=="left"&&!k))}else{return a&&((a=="down"&&l)||(a=="up"&&!l))}},_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(v){var a=this;var q=[];var s=[];var o=this._connectWith();if(o&&v){for(var t=o.length-1;t>=0;t--){var m=b(o[t]);for(var u=m.length-1;u>=0;u--){var r=b.data(m[u],"sortable");if(r&&r!=this&&!r.options.disabled){s.push([b.isFunction(r.options.items)?r.options.items.call(r.element):b(r.options.items,r.element).not(".ui-sortable-helper"),r])}}}}s.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 t=s.length-1;t>=0;t--){s[t][0].each(function(){q.push(this)})}return b(q)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data(sortable-item)");for(var f=0;f<this.items.length;f++){for(var a=0;a<e.length;a++){if(e[a]==this.items[f].item[0]){this.items.splice(f,1)}}}},_refreshItems:function(D){this.items=[];this.containers=[this];var v=this.items;var a=this;var z=[[b.isFunction(this.options.items)?this.options.items.call(this.element[0],D,{item:this.currentItem}):b(this.options.items,this.element),this]];var t=this._connectWith();if(t){for(var A=t.length-1;A>=0;A--){var s=b(t[A]);for(var B=s.length-1;B>=0;B--){var y=b.data(s[B],"sortable");if(y&&y!=this&&!y.options.disabled){z.push([b.isFunction(y.options.items)?y.options.items.call(y.element[0],D,{item:this.currentItem}):b(y.options.items,y.element),y]);this.containers.push(y)}}}}for(var A=z.length-1;A>=0;A--){var u=z[A][1];var C=z[A][0];for(var B=0,r=C.length;B<r;B++){var q=b(C[B]);q.data("sortable-item",u);v.push({item:q,instance:u,width:0,height:0,left:0,top:0})}}},refreshPositions:function(a){if(this.offsetParent&&this.helper){this.offset.parent=this._getParentOffset()}for(var k=this.items.length-1;k>=0;k--){var h=this.items[k];if(h.instance!=this.currentContainer&&this.currentContainer&&h.item[0]!=this.currentItem[0]){continue}var l=this.options.toleranceElement?b(this.options.toleranceElement,h.item):h.item;if(!a){h.width=l.outerWidth();h.height=l.outerHeight()}var g=l.offset();h.left=g.left;h.top=g.top}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(var k=this.containers.length-1;k>=0;k--){var g=this.containers[k].element.offset();this.containers[k].containerCache.left=g.left;this.containers[k].containerCache.top=g.top;this.containers[k].containerCache.width=this.containers[k].element.outerWidth();this.containers[k].containerCache.height=this.containers[k].element.outerHeight()}}},_createPlaceholder:function(g){var a=g||this,f=a.options;if(!f.placeholder||f.placeholder.constructor==String){var h=f.placeholder;f.placeholder={element:function(){var c=b(document.createElement(a.currentItem[0].nodeName)).addClass(h||a.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!h){c.style.visibility="hidden"}return c},update:function(d,c){if(h&&!f.forcePlaceholderSize){return}if(!c.height()){c.height(a.currentItem.innerHeight()-parseInt(a.currentItem.css("paddingTop")||0,10)-parseInt(a.currentItem.css("paddingBottom")||0,10))}if(!c.width()){c.width(a.currentItem.innerWidth()-parseInt(a.currentItem.css("paddingLeft")||0,10)-parseInt(a.currentItem.css("paddingRight")||0,10))}}}}a.placeholder=b(f.placeholder.element.call(a.element,a.currentItem));a.currentItem.after(a.placeholder);f.placeholder.update(a,a.placeholder)},_contactContainers:function(q){for(var r=this.containers.length-1;r>=0;r--){if(this._intersectsWith(this.containers[r].containerCache)){if(!this.containers[r].containerCache.over){if(this.currentContainer!=this.containers[r]){var k=10000;var l=null;var o=this.positionAbs[this.containers[r].floating?"left":"top"];for(var a=this.items.length-1;a>=0;a--){if(!b.ui.contains(this.containers[r].element[0],this.items[a].item[0])){continue}var m=this.items[a][this.containers[r].floating?"left":"top"];if(Math.abs(m-o)<k){k=Math.abs(m-o);l=this.items[a]}}if(!l&&!this.options.dropOnEmpty){continue}this.currentContainer=this.containers[r];l?this._rearrange(q,l,null,true):this._rearrange(q,null,this.containers[r].element,true);this._trigger("change",q,this._uiHash());this.containers[r]._trigger("change",q,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder)}this.containers[r]._trigger("over",q,this._uiHash(this));this.containers[r].containerCache.over=1}}else{if(this.containers[r].containerCache.over){this.containers[r]._trigger("out",q,this._uiHash(this));this.containers[r].containerCache.over=0}}}},_createHelper:function(f){var e=this.options;var a=b.isFunction(e.helper)?b(e.helper.apply(this.element[0],[f,this.currentItem])):(e.helper=="clone"?this.currentItem.clone():this.currentItem);if(!a.parents("body").length){b(e.appendTo!="parent"?e.appendTo:this.currentItem[0].parentNode)[0].appendChild(a[0])}if(a[0]==this.currentItem[0]){this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}}if(a[0].style.width==""||e.forceHelperSize){a.width(this.currentItem.width())}if(a[0].style.height==""||e.forceHelperSize){a.height(this.currentItem.height())}return a},_adjustOffsetFromHelper:function(a){if(a.left!=undefined){this.offset.click.left=a.left+this.margins.left}if(a.right!=undefined){this.offset.click.left=this.helperProportions.width-a.right+this.margins.left}if(a.top!=undefined){this.offset.click.top=a.top+this.margins.top}if(a.bottom!=undefined){this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)){a={top:0,left:0}}return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.currentItem.css("marginLeft"),10)||0),top:(parseInt(this.currentItem.css("marginTop"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var f=this.options;if(f.containment=="parent"){f.containment=this.helper[0].parentNode}if(f.containment=="document"||f.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,b(f.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b(f.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(f.containment)){var h=b(f.containment)[0];var g=b(f.containment).offset();var a=(b(h).css("overflow")!="hidden");this.containment=[g.left+(parseInt(b(h).css("borderLeftWidth"),10)||0)+(parseInt(b(h).css("paddingLeft"),10)||0)-this.margins.left,g.top+(parseInt(b(h).css("borderTopWidth"),10)||0)+(parseInt(b(h).css("paddingTop"),10)||0)-this.margins.top,g.left+(a?Math.max(h.scrollWidth,h.offsetWidth):h.offsetWidth)-(parseInt(b(h).css("borderLeftWidth"),10)||0)-(parseInt(b(h).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,g.top+(a?Math.max(h.scrollHeight,h.offsetHeight):h.offsetHeight)-(parseInt(b(h).css("borderTopWidth"),10)||0)-(parseInt(b(h).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(l,d){if(!d){d=this.position}var o=l=="absolute"?1:-1;var m=this.options,a=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(a[0].tagName);return{top:(d.top+this.offset.relative.top*o+this.offset.parent.top*o-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(k?0:a.scrollTop()))*o)),left:(d.left+this.offset.relative.left*o+this.offset.parent.left*o-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():k?0:a.scrollLeft())*o))}},_generatePosition:function(q){var l=this.options,a=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(a[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var r=q.pageX;var s=q.pageY;if(this.originalPosition){if(this.containment){if(q.pageX-this.offset.click.left<this.containment[0]){r=this.containment[0]+this.offset.click.left}if(q.pageY-this.offset.click.top<this.containment[1]){s=this.containment[1]+this.offset.click.top}if(q.pageX-this.offset.click.left>this.containment[2]){r=this.containment[2]+this.offset.click.left}if(q.pageY-this.offset.click.top>this.containment[3]){s=this.containment[3]+this.offset.click.top}}if(l.grid){var m=this.originalPageY+Math.round((s-this.originalPageY)/l.grid[1])*l.grid[1];s=this.containment?(!(m-this.offset.click.top<this.containment[1]||m-this.offset.click.top>this.containment[3])?m:(!(m-this.offset.click.top<this.containment[1])?m-l.grid[1]:m+l.grid[1])):m;var o=this.originalPageX+Math.round((r-this.originalPageX)/l.grid[0])*l.grid[0];r=this.containment?(!(o-this.offset.click.left<this.containment[0]||o-this.offset.click.left>this.containment[2])?o:(!(o-this.offset.click.left<this.containment[0])?o-l.grid[0]:o+l.grid[0])):o}}return{top:(s-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:a.scrollTop())))),left:(r-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:a.scrollLeft())))}},_rearrange:function(h,k,o,l){o?o[0].appendChild(this.placeholder[0]):k.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction=="down"?k.item[0]:k.item[0].nextSibling));this.counter=this.counter?++this.counter:1;var m=this,a=this.counter;window.setTimeout(function(){if(a==m.counter){m.refreshPositions(!l)}},0)},_clear:function(k,h){this.reverting=false;var g=[],a=this;if(!this._noFinalSort&&this.currentItem[0].parentNode){this.placeholder.before(this.currentItem)}this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var l in this._storedCSS){if(this._storedCSS[l]=="auto"||this._storedCSS[l]=="static"){this._storedCSS[l]=""}}this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}if(this.fromOutside&&!h){g.push(function(c){this._trigger("receive",c,this._uiHash(this.fromOutside))})}if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!h){g.push(function(c){this._trigger("update",c,this._uiHash())})}if(!b.ui.contains(this.element[0],this.currentItem[0])){if(!h){g.push(function(c){this._trigger("remove",c,this._uiHash())})}for(var l=this.containers.length-1;l>=0;l--){if(b.ui.contains(this.containers[l].element[0],this.currentItem[0])&&!h){g.push((function(c){return function(d){c._trigger("receive",d,this._uiHash(this))}}).call(this,this.containers[l]));g.push((function(c){return function(d){c._trigger("update",d,this._uiHash(this))}}).call(this,this.containers[l]))}}}for(var l=this.containers.length-1;l>=0;l--){if(!h){g.push((function(c){return function(d){c._trigger("deactivate",d,this._uiHash(this))}}).call(this,this.containers[l]))}if(this.containers[l].containerCache.over){g.push((function(c){return function(d){c._trigger("out",d,this._uiHash(this))}}).call(this,this.containers[l]));this.containers[l].containerCache.over=0}}if(this._storedCursor){b("body").css("cursor",this._storedCursor)}if(this._storedOpacity){this.helper.css("opacity",this._storedOpacity)}if(this._storedZIndex){this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex)}this.dragging=false;if(this.cancelHelperRemoval){if(!h){this._trigger("beforeStop",k,this._uiHash());for(var l=0;l<g.length;l++){g[l].call(this,k)}this._trigger("stop",k,this._uiHash())}return false}if(!h){this._trigger("beforeStop",k,this._uiHash())}this.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(this.helper[0]!=this.currentItem[0]){this.helper.remove()}this.helper=null;if(!h){for(var l=0;l<g.length;l++){g[l].call(this,k)}this._trigger("stop",k,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);var Shadowbox=function(){var ua=navigator.userAgent.toLowerCase(),S={version:"3.0b",adapter:null,current:-1,gallery:[],cache:[],content:null,dimensions:null,plugins:null,path:"",options:{adapter:null,animate:true,animateFade:true,autoplayMovies:true,autoDimensions:false,continuous:false,counterLimit:10,counterType:"default",displayCounter:true,displayNav:true,ease:function(x){return 1+Math.pow(x-1,3)},enableKeys:true,errors:{fla:{name:"Flash",url:"http://www.adobe.com/products/flashplayer/"},qt:{name:"QuickTime",url:"http://www.apple.com/quicktime/download/"},wmp:{name:"Windows Media Player",url:"http://www.microsoft.com/windows/windowsmedia/"},f4m:{name:"Flip4Mac",url:"http://www.flip4mac.com/wmv_download.htm"}},ext:{img:["png","jpg","jpeg","gif","bmp"],swf:["swf"],flv:["flv"],qt:["dv","mov","moov","movie","mp4"],wmp:["asf","wm","wmv"],qtwmp:["avi","mpg","mpeg"],iframe:["asp","aspx","cgi","cfm","htm","html","jsp","pl","php","php3","php4","php5","phtml","rb","rhtml","shtml","txt","vbs"]},fadeDuration:0.35,flashParams:{bgcolor:"#000000",allowFullScreen:true},flashVars:{},flashVersion:"9.0.115",handleOversize:"resize",handleUnsupported:"link",initialHeight:160,initialWidth:320,language:"en",modal:false,onChange:null,onClose:null,onFinish:null,onOpen:null,overlayColor:"#000",overlayOpacity:0.8,players:["img"],resizeDuration:0.35,showOverlay:true,showMovieControls:true,skipSetup:false,slideshowDelay:0,useSizzle:true,viewportPadding:20},client:{isIE:ua.indexOf("msie")>-1,isIE6:ua.indexOf("msie 6")>-1,isIE7:ua.indexOf("msie 7")>-1,isGecko:ua.indexOf("gecko")>-1&&ua.indexOf("safari")==-1,isWebkit:ua.indexOf("applewebkit/")>-1,isWindows:ua.indexOf("windows")>-1||ua.indexOf("win32")>-1,isMac:ua.indexOf("macintosh")>-1||ua.indexOf("mac os x")>-1,isLinux:ua.indexOf("linux")>-1},regex:{domain:/:\/\/(.*?)[:\/]/,inline:/#(.+)$/,rel:/^(light|shadow)box/i,gallery:/^(light|shadow)box\[(.*?)\]/i,unsupported:/^unsupported-(\w+)/,param:/\s*([a-z_]*?)\s*=\s*(.+)\s*/},libraries:{Prototype:"prototype",jQuery:"jquery",MooTools:"mootools",YAHOO:"yui",dojo:"dojo",Ext:"ext"},applyOptions:function(opts){if(opts){default_options=apply({},S.options);apply(S.options,opts)}},buildCacheObj:function(link,opts){var href=link.href,obj={el:link,title:link.getAttribute("title"),options:apply({},opts||{}),content:href};each(["player","title","height","width","gallery"],function(o){if(typeof obj.options[o]!="undefined"){obj[o]=obj.options[o];delete obj.options[o]}});if(!obj.player){obj.player=getPlayer(href)}var rel=link.getAttribute("rel");if(rel){var m=rel.match(S.regex.gallery);if(m){obj.gallery=escape(m[2])}each(rel.split(";"),function(p){m=p.match(S.regex.param);if(m){if(m[1]=="options"){eval("apply(obj.options,"+m[2]+")")}else{obj[m[1]]=m[2]}}})}return obj},change:function(n){if(!S.gallery){return}if(!S.gallery[n]){if(!S.options.continuous){return}else{n=n<0?S.gallery.length-1:0}}S.current=n;if(typeof slide_timer=="number"){clearTimeout(slide_timer);slide_timer=null;slide_delay=slide_start=0}if(S.options.onChange){S.options.onChange()}loadContent()},clearCache:function(){each(S.cache,function(obj){if(obj.el){S.lib.removeEvent(obj.el,"click",handleClick)}});S.cache=[]},close:function(){if(!active){return}active=false;listenKeys(false);if(S.content){S.content.remove();S.content=null}if(typeof slide_timer=="number"){clearTimeout(slide_timer)}slide_timer=null;slide_delay=0;if(S.options.onClose){S.options.onClose()}S.skin.onClose();S.revertOptions();each(v_cache,function(c){c[0].style.visibility=c[1]})},contentId:function(){return content_id},getCounter:function(){var len=S.gallery.length;if(S.options.counterType=="skip"){var c=[],i=0,end=len,limit=parseInt(S.options.counterLimit)||0;if(limit<len&&limit>2){var h=Math.floor(limit/2);i=S.current-h;if(i<0){i+=len}end=S.current+(limit-h);if(end>len){end-=len}}while(i!=end){if(i==len){i=0}c.push(i++)}}else{var c=(S.current+1)+" "+S.lang.of+" "+len}return c},getCurrent:function(){return S.current>-1?S.gallery[S.current]:null},hasNext:function(){return S.gallery.length>1&&(S.current!=S.gallery.length-1||S.options.continuous)},init:function(opts){if(initialized){return}initialized=true;opts=opts||{};init_options=opts;if(opts){apply(S.options,opts)}for(var e in S.options.ext){S.regex[e]=new RegExp(".("+S.options.ext[e].join("|")+")s*$","i")}if(!S.path){var path_re=/(.+)shadowbox\.js/i,path;each(document.getElementsByTagName("script"),function(s){if((path=path_re.exec(s.src))!=null){S.path=path[1];return false}})}if(S.options.adapter){S.adapter=S.options.adapter}else{for(var lib in S.libraries){if(typeof window[lib]!="undefined"){S.adapter=S.libraries[lib];break}}if(!S.adapter){S.adapter="base"}}},isActive:function(){return active},isPaused:function(){return slide_timer=="paused"},load:function(){if(S.skin.options){apply(S.options,S.skin.options);apply(S.options,init_options)}var markup=S.skin.markup.replace(/\{(\w+)\}/g,function(m,p){return S.lang[p]});S.lib.append(document.body,markup);if(S.skin.init){S.skin.init()}var id;S.lib.addEvent(window,"resize",function(){if(id){clearTimeout(id);id=null}if(active){id=setTimeout(function(){if(S.skin.onWindowResize){S.skin.onWindowResize()}var c=S.content;if(c&&c.onWindowResize){c.onWindowResize()}},50)}});if(!S.options.skipSetup){S.setup()}},next:function(){if(S.current+2>S.gallery.length){S.close()}else{S.change(S.current+1)}},open:function(obj){if(U.isLink(obj)){obj=S.buildCacheObj(obj)}if(obj.constructor==Array){S.gallery=obj;S.current=0}else{if(!obj.gallery){S.gallery=[obj];S.current=0}else{S.current=null;S.gallery=[];each(S.cache,function(c){if(c.gallery&&c.gallery==obj.gallery){if(S.current==null&&c.content==obj.content&&c.title==obj.title){S.current=S.gallery.length}S.gallery.push(c)}});if(S.current==null){S.gallery.unshift(obj);S.current=0}}}obj=S.getCurrent();if(obj.options){S.revertOptions();S.applyOptions(obj.options)}var g,r,m,s,a,oe=S.options.errors,msg,el;for(var i=0;i<S.gallery.length;++i){g=S.gallery[i]=apply({},S.gallery[i]);r=false;if(g.player=="unsupported"){r=true}else{if(m=S.regex.unsupported.exec(g.player)){if(S.options.handleUnsupported=="link"){g.player="html";switch(m[1]){case"qtwmp":s="either";a=[oe.qt.url,oe.qt.name,oe.wmp.url,oe.wmp.name];break;case"qtf4m":s="shared";a=[oe.qt.url,oe.qt.name,oe.f4m.url,oe.f4m.name];break;default:s="single";if(m[1]=="swf"||m[1]=="flv"){m[1]="fla"}a=[oe[m[1]].url,oe[m[1]].name]}msg=S.lang.errors[s].replace(/\{(\d+)\}/g,function(m,n){return a[n]});g.content='<div class="sb-message">'+msg+"</div>"}else{r=true}}else{if(g.player=="inline"){m=S.regex.inline.exec(g.content);if(m){var el=U.get(m[1]);if(el){g.content=el.innerHTML}else{throw"Cannot find element with id "+m[1]}}else{throw"Cannot find element id for inline content"}}else{if(g.player=="swf"||g.player=="flv"){var version=(g.options&&g.options.flashVersion)||S.options.flashVersion;if(!swfobject.hasFlashPlayerVersion(version)){g.width=310;g.height=177}}}}}if(r){S.gallery.splice(i,1);if(i<S.current){--S.current}else{if(i==S.current){S.current=i>0?i-1:i}}--i}}if(S.gallery.length){if(!active){if(typeof S.options.onOpen=="function"&&S.options.onOpen(obj)===false){return}v_cache=[];each(["select","object","embed","canvas"],function(tag){each(document.getElementsByTagName(tag),function(el){v_cache.push([el,el.style.visibility||"visible"]);el.style.visibility="hidden"})});var h=S.options.autoDimensions&&"height" in obj?obj.height:S.options.initialHeight;var w=S.options.autoDimensions&&"width" in obj?obj.width:S.options.initialWidth;S.skin.onOpen(h,w,loadContent)}else{loadContent()}active=true}},pause:function(){if(typeof slide_timer!="number"){return}var time=new Date().getTime();slide_delay=Math.max(0,slide_delay-(time-slide_start));if(slide_delay){clearTimeout(slide_timer);slide_timer="paused";if(S.skin.onPause){S.skin.onPause()}}},play:function(){if(!S.hasNext()){return}if(!slide_delay){slide_delay=S.options.slideshowDelay*1000}if(slide_delay){slide_start=new Date().getTime();slide_timer=setTimeout(function(){slide_delay=slide_start=0;S.next()},slide_delay);if(S.skin.onPlay){S.skin.onPlay()}}},previous:function(){S.change(S.current-1)},revertOptions:function(){apply(S.options,default_options)},setDimensions:function(height,width,max_h,max_w,tb,lr,resizable){var h=height=parseInt(height),w=width=parseInt(width),pad=parseInt(S.options.viewportPadding)||0;var extra_h=2*pad+tb;if(h+extra_h>=max_h){h=max_h-extra_h}var extra_w=2*pad+lr;if(w+extra_w>=max_w){w=max_w-extra_w}var resize_h=height,resize_w=width,change_h=(height-h)/height,change_w=(width-w)/width,oversized=(change_h>0||change_w>0);if(resizable&&oversized&&S.options.handleOversize=="resize"){if(change_h>change_w){w=Math.round((width/height)*h)}else{if(change_w>change_h){h=Math.round((height/width)*w)}}resize_w=w;resize_h=h}S.dimensions={height:h+tb,width:w+lr,inner_h:h,inner_w:w,top:(max_h-(h+extra_h))/2+pad,left:(max_w-(w+extra_w))/2+pad,oversized:oversized,resize_h:resize_h,resize_w:resize_w};return S.dimensions},setup:function(links,opts){if(!links){var links=[],rel;each(document.getElementsByTagName("a"),function(a){rel=a.getAttribute("rel");if(rel&&S.regex.rel.test(rel)){links.push(a)}})}else{var len=links.length;if(len){if(window.Sizzle){if(typeof links=="string"){links=Sizzle(links)}else{if(len==2&&links.push&&typeof links[0]=="string"&&links[1].nodeType){links=Sizzle(links[0],links[1])}}}}else{links=[links]}}each(links,function(link){if(typeof link.shadowboxCacheKey=="undefined"){link.shadowboxCacheKey=S.cache.length;S.lib.addEvent(link,"click",handleClick)}S.cache[link.shadowboxCacheKey]=S.buildCacheObj(link,opts)})}},U=S.util={animate:function(el,p,to,d,cb){var from=parseFloat(S.lib.getStyle(el,p));if(isNaN(from)){from=0}var delta=to-from;if(delta==0){if(cb){cb()}return}var op=p=="opacity";function fn(ease){var to=from+ease*delta;if(op){U.setOpacity(el,to)}else{el.style[p]=to+"px"}}if(!d||(!op&&!S.options.animate)||(op&&!S.options.animateFade)){fn(1);if(cb){cb()}return}d*=1000;var begin=new Date().getTime(),end=begin+d,time,timer=setInterval(function(){time=new Date().getTime();if(time>=end){clearInterval(timer);fn(1);if(cb){cb()}}else{fn(S.options.ease((time-begin)/d))}},10)},apply:function(o,e){for(var p in e){o[p]=e[p]}return o},clearOpacity:function(el){var s=el.style;if(window.ActiveXObject){if(typeof s.filter=="string"&&(/alpha/i).test(s.filter)){s.filter=s.filter.replace(/[\w\.]*alpha\(.*?\);?/i,"")}}else{s.opacity=""}},each:function(obj,fn,scope){for(var i=0,len=obj.length;i<len;++i){if(fn.call(scope||obj[i],obj[i],i,obj)===false){return}}},get:function(id){return document.getElementById(id)},include:function(){var includes={};return function(file){if(includes[file]){return}includes[file]=true;document.write('<script type="text/javascript" src="'+file+'"><\/script>')}}(),isLink:function(obj){if(!obj||!obj.tagName){return false}var up=obj.tagName.toUpperCase();return up=="A"||up=="AREA"},removeChildren:function(el){while(el.firstChild){el.removeChild(el.firstChild)}},setOpacity:function(el,o){var s=el.style;if(window.ActiveXObject){s.zoom=1;s.filter=(s.filter||"").replace(/\s*alpha\([^\)]*\)/gi,"")+(o==1?"":" alpha(opacity="+(o*100)+")")}else{s.opacity=o}}},apply=U.apply,each=U.each,init_options,initialized=false,default_options={},content_id="sb-content",active=false,slide_timer,slide_start,slide_delay=0,v_cache=[];if(navigator.plugins&&navigator.plugins.length){var names=[];each(navigator.plugins,function(p){names.push(p.name)});names=names.join();var detectPlugin=function(n){return names.indexOf(n)>-1};var f4m=detectPlugin("Flip4Mac");S.plugins={fla:detectPlugin("Shockwave Flash"),qt:detectPlugin("QuickTime"),wmp:!f4m&&detectPlugin("Windows Media"),f4m:f4m}}else{function detectPlugin(n){try{var axo=new ActiveXObject(n)}catch(e){}return !!axo}S.plugins={fla:detectPlugin("ShockwaveFlash.ShockwaveFlash"),qt:detectPlugin("QuickTime.QuickTime"),wmp:detectPlugin("wmplayer.ocx"),f4m:false}}function getPlayer(url){var re=S.regex,p=S.plugins,m=url.match(re.domain),d=m&&document.domain==m[1];if(url.indexOf("#")>-1&&d){return"inline"}var q=url.indexOf("?");if(q>-1){url=url.substring(0,q)}if(re.img.test(url)){return"img"}if(re.swf.test(url)){return p.fla?"swf":"unsupported-swf"}if(re.flv.test(url)){return p.fla?"flv":"unsupported-flv"}if(re.qt.test(url)){return p.qt?"qt":"unsupported-qt"}if(re.wmp.test(url)){if(p.wmp){return"wmp"}if(p.f4m){return"qt"}if(S.client.isMac){return p.qt?"unsupported-f4m":"unsupported-qtf4m"}return"unsupported-wmp"}if(re.qtwmp.test(url)){if(p.qt){return"qt"}if(p.wmp){return"wmp"}return S.client.isMac?"unsupported-qt":"unsupported-qtwmp"}if(!d||re.iframe.test(url)){return"iframe"}return"unsupported"}function handleClick(e){var link;if(U.isLink(this)){link=this}else{link=S.lib.getTarget(e);while(!U.isLink(link)&&link.parentNode){link=link.parentNode}}if(link){var key=link.shadowboxCacheKey;if(typeof key!="undefined"&&typeof S.cache[key]!="undefined"){link=S.cache[key]}S.open(link);if(S.gallery.length){S.lib.preventDefault(e)}}}function listenKeys(on){if(!S.options.enableKeys){return}S.lib[(on?"add":"remove")+"Event"](document,"keydown",handleKey)}function handleKey(e){var code=S.lib.keyCode(e);S.lib.preventDefault(e);switch(code){case 81:case 88:case 27:S.close();break;case 37:S.previous();break;case 39:S.next();break;case 32:S[(typeof slide_timer=="number"?"pause":"play")]()}}function loadContent(){var obj=S.getCurrent();if(!obj){return}var p=obj.player=="inline"?"html":obj.player;if(typeof S[p]!="function"){throw"Unknown player: "+p}var change=false;if(S.content){S.content.remove();change=true;S.revertOptions();if(obj.options){S.applyOptions(obj.options)}}U.removeChildren(S.skin.bodyEl());S.content=new S[p](obj);listenKeys(false);S.skin.onLoad(S.content,change,function(){if(!S.content){return}if(typeof S.content.ready!="undefined"){var id=setInterval(function(){if(S.content){if(S.content.ready){clearInterval(id);id=null;S.skin.onReady(contentReady)}}else{clearInterval(id);id=null}},100)}else{S.skin.onReady(contentReady)}});if(S.gallery.length>1){var next=S.gallery[S.current+1]||S.gallery[0];if(next.player=="img"){var a=new Image();a.src=next.content}var prev=S.gallery[S.current-1]||S.gallery[S.gallery.length-1];if(prev.player=="img"){var b=new Image();b.src=prev.content}}}function contentReady(){if(!S.content){return}S.content.append(S.skin.bodyEl(),content_id,S.dimensions);S.skin.onFinish(finishContent)}function finishContent(){if(!S.content){return}if(S.content.onLoad){S.content.onLoad()}if(S.options.onFinish){S.options.onFinish()}if(!S.isPaused()){S.play()}listenKeys(true)}return S}();Shadowbox.skin=function(){var e=Shadowbox,d=e.util,s=false,m=["sb-nav-close","sb-nav-next","sb-nav-play","sb-nav-pause","sb-nav-previous"];function o(){d.get("sb-container").style.top=document.documentElement.scrollTop+"px"}function g(t){var u=d.get("sb-overlay"),v=d.get("sb-container"),z=d.get("sb-wrapper");if(t){if(e.client.isIE6){o();e.lib.addEvent(window,"scroll",o)}if(e.options.showOverlay){s=true;u.style.backgroundColor=e.options.overlayColor;d.setOpacity(u,0);if(!e.options.modal){e.lib.addEvent(u,"click",e.close)}z.style.display="none"}v.style.visibility="visible";if(s){var y=parseFloat(e.options.overlayOpacity);d.animate(u,"opacity",y,e.options.fadeDuration,t)}else{t()}}else{if(e.client.isIE6){e.lib.removeEvent(window,"scroll",o)}e.lib.removeEvent(u,"click",e.close);if(s){z.style.display="none";d.animate(u,"opacity",0,e.options.fadeDuration,function(){v.style.display="";z.style.display="";d.clearOpacity(u)})}else{v.style.visibility="hidden"}}}function b(v,t){var u=d.get("sb-nav-"+v);if(u){u.style.display=t?"":"none"}}function k(u,t){var y=d.get("sb-loading"),A=e.getCurrent().player,z=(A=="img"||A=="html");if(u){function v(){d.clearOpacity(y);if(t){t()}}d.setOpacity(y,0);y.style.display="";if(z){d.animate(y,"opacity",1,e.options.fadeDuration,v)}else{v()}}else{function v(){y.style.display="none";d.clearOpacity(y);if(t){t()}}if(z){d.animate(y,"opacity",0,e.options.fadeDuration,v)}else{v()}}}function a(v){var z=e.getCurrent();d.get("sb-title-inner").innerHTML=z.title||"";var C,u,y,D,t;if(e.options.displayNav){C=true;var B=e.gallery.length;if(B>1){if(e.options.continuous){u=t=true}else{u=(B-1)>e.current;t=e.current>0}}if(e.options.slideshowDelay>0&&e.hasNext()){D=!e.isPaused();y=!D}}else{C=u=y=D=t=false}b("close",C);b("next",u);b("play",y);b("pause",D);b("previous",t);var C="";if(e.options.displayCounter&&e.gallery.length>1){var A=e.getCounter();if(typeof A=="string"){C=A}else{d.each(A,function(E){C+='<a onclick="Shadowbox.change('+E+');"';if(E==e.current){C+=' class="sb-counter-current"'}C+=">"+(E+1)+"</a>"})}}d.get("sb-counter").innerHTML=C;v()}function h(y,v){var C=d.get("sb-wrapper"),F=d.get("sb-title"),z=d.get("sb-info"),u=d.get("sb-title-inner"),D=d.get("sb-info-inner"),E=parseInt(e.lib.getStyle(u,"height"))||0,B=parseInt(e.lib.getStyle(D,"height"))||0;function A(){u.style.visibility=D.style.visibility="hidden";a(v)}if(y){d.animate(F,"height",0,0.35);d.animate(z,"height",0,0.35);d.animate(C,"paddingTop",E,0.35);d.animate(C,"paddingBottom",B,0.35,A)}else{F.style.height=z.style.height="0px";C.style.paddingTop=E+"px";C.style.paddingBottom=B+"px";A()}}function l(y){var v=d.get("sb-wrapper"),A=d.get("sb-title"),z=d.get("sb-info"),D=d.get("sb-title-inner"),C=d.get("sb-info-inner"),B=parseInt(e.lib.getStyle(D,"height"))||0,u=parseInt(e.lib.getStyle(C,"height"))||0;D.style.visibility=C.style.visibility="";if(D.innerHTML!=""){d.animate(A,"height",B,0.35);d.animate(v,"paddingTop",0,0.35)}d.animate(z,"height",u,0.35);d.animate(v,"paddingBottom",0,0.35,y)}function c(v,C,B,u){var D=d.get("sb-body"),A=d.get("sb-wrapper"),z=parseInt(v),y=parseInt(C);if(B){d.animate(D,"height",z,e.options.resizeDuration);d.animate(A,"top",y,e.options.resizeDuration,u)}else{D.style.height=z+"px";A.style.top=y+"px";if(u){u()}}}function f(z,B,A,t){var y=d.get("sb-wrapper"),v=parseInt(z),u=parseInt(B);if(A){d.animate(y,"width",v,e.options.resizeDuration);d.animate(y,"left",u,e.options.resizeDuration,t)}else{y.style.width=v+"px";y.style.left=u+"px";if(t){t()}}}function r(t){var v=e.content;if(!v){return}var u=q(v.height,v.width,v.resizable);switch(e.options.animSequence){case"hw":c(u.inner_h,u.top,true,function(){f(u.width,u.left,true,t)});break;case"wh":f(u.width,u.left,true,function(){c(u.inner_h,u.top,true,t)});break;default:f(u.width,u.left,true);c(u.inner_h,u.top,true,t)}}function q(t,y,v){var u=d.get("sb-body-inner");sw=d.get("sb-wrapper"),so=d.get("sb-overlay"),tb=sw.offsetHeight-u.offsetHeight,lr=sw.offsetWidth-u.offsetWidth,max_h=so.offsetHeight,max_w=so.offsetWidth;return e.setDimensions(t,y,max_h,max_w,tb,lr,v)}return{markup:'<div id="sb-container"><div id="sb-overlay"></div><div id="sb-wrapper"><div id="sb-title"><div id="sb-title-inner"></div></div><div id="sb-body"><div id="sb-body-inner" style="cursor: pointer;" onclick="Shadowbox.next()"></div><div id="sb-loading"><a onclick="Shadowbox.close()">{cancel}</a></div></div><div id="sb-info"><div id="sb-info-inner"><div id="sb-counter"></div><div id="sb-nav"><a id="sb-nav-close" title="{close}" onclick="Shadowbox.close()"></a><a id="sb-nav-next" title="{next}" onclick="Shadowbox.next()"></a><a id="sb-nav-play" title="{play}" onclick="Shadowbox.play()"></a><a id="sb-nav-pause" title="{pause}" onclick="Shadowbox.pause()"></a><a id="sb-nav-previous" title="{previous}" onclick="Shadowbox.previous()"></a></div><div style="clear:both"></div></div></div></div></div>',options:{animSequence:"sync"},init:function(){if(e.client.isIE6){d.get("sb-body").style.zoom=1;var v,t,u=/url\("(.*\.png)"\)/;d.each(m,function(y){v=d.get(y);if(v){t=e.lib.getStyle(v,"backgroundImage").match(u);if(t){v.style.backgroundImage="none";v.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,src="+t[1]+",sizingMethod=scale);"}}})}},bodyEl:function(){return d.get("sb-body-inner")},onOpen:function(v,u,t){$(".image").css("visibility","hidden");d.get("sb-container").style.display="block";var y=q(v,u);c(y.inner_h,y.top,false);f(y.width,y.left,false);g(t)},onLoad:function(u,v,t){k(true);h(v,function(){if(!u){return}if(!v){d.get("sb-wrapper").style.display=""}t()})},onReady:function(t){r(function(){l(t)})},onFinish:function(t){k(false,t)},onClose:function(){g(false);$(".image").css("visibility","visible")},onPlay:function(){b("play",false);b("pause",true)},onPause:function(){b("pause",false);b("play",true)},onWindowResize:function(){var v=e.content;if(!v){return}var u=q(v.height,v.width,v.resizable);f(u.width,u.left,false);c(u.inner_h,u.top,false);var t=d.get(e.contentId());if(t){if(v.resizable&&e.options.handleOversize=="resize"){t.height=u.resize_h;t.width=u.resize_w}}}}}();(function(){var r=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,A=0,E=Object.prototype.toString,t=false;var G=function(I,o,M,h){M=M||[];var N=o=o||document;if(o.nodeType!==1&&o.nodeType!==9){return[]}if(!I||typeof I!=="string"){return M}var L=[],J,b,g,k,a,q,K=true,f=s(o);r.lastIndex=0;while((J=r.exec(I))!==null){L.push(J[1]);if(J[2]){q=RegExp.rightContext;break}}if(L.length>1&&z.exec(I)){if(L.length===2&&D.relative[L[0]]){b=C(L[0]+L[1],o)}else{b=D.relative[L[0]]?[o]:G(L.shift(),o);while(L.length){I=L.shift();if(D.relative[I]){I+=L.shift()}b=C(I,b)}}}else{if(!h&&L.length>1&&o.nodeType===9&&!f&&D.match.ID.test(L[0])&&!D.match.ID.test(L[L.length-1])){var d=G.find(L.shift(),o,f);o=d.expr?G.filter(d.expr,d.set)[0]:d.set[0]}if(o){var d=h?{expr:L.pop(),set:H(h)}:G.find(L.pop(),L.length===1&&(L[0]==="~"||L[0]==="+")&&o.parentNode?o.parentNode:o,f);b=d.expr?G.filter(d.expr,d.set):d.set;if(L.length>0){g=H(b)}else{K=false}while(L.length){var l=L.pop(),c=l;if(!D.relative[l]){l=""}else{c=L.pop()}if(c==null){c=o}D.relative[l](g,c,f)}}else{g=L=[]}}if(!g){g=b}if(!g){throw"Syntax error, unrecognized expression: "+(l||I)}if(E.call(g)==="[object Array]"){if(!K){M.push.apply(M,g)}else{if(o&&o.nodeType===1){for(var m=0;g[m]!=null;m++){if(g[m]&&(g[m]===true||g[m].nodeType===1&&B(o,g[m]))){M.push(b[m])}}}else{for(var m=0;g[m]!=null;m++){if(g[m]&&g[m].nodeType===1){M.push(b[m])}}}}}else{H(g,M)}if(q){G(q,N,M,h);G.uniqueSort(M)}return M};G.uniqueSort=function(a){if(F){t=false;a.sort(F);if(t){for(var b=1;b<a.length;b++){if(a[b]===a[b-1]){a.splice(b--,1)}}}}};G.matches=function(b,a){return G(b,null,null,a)};G.find=function(d,b,c){var f,h;if(!d){return[]}for(var k=0,l=D.order.length;k<l;k++){var g=D.order[k],h;if((h=D.match[g].exec(d))){var a=RegExp.leftContext;if(a.substr(a.length-1)!=="\\"){h[1]=(h[1]||"").replace(/\\/g,"");f=D.find[g](h,b,c);if(f!=null){d=d.replace(D.match[g],"");break}}}}if(!f){f=b.getElementsByTagName("*")}return{set:f,expr:d}};G.filter=function(f,h,b,J){var L=f,I=[],l=h,o,g,m=h&&h[0]&&s(h[0]);while(f&&h.length){for(var k in D.filter){if((o=D.match[k].exec(f))!=null){var a=D.filter[k],K,c;g=false;if(l==I){I=[]}if(D.preFilter[k]){o=D.preFilter[k](o,l,b,I,J,m);if(!o){g=K=true}else{if(o===true){continue}}}if(o){for(var q=0;(c=l[q])!=null;q++){if(c){K=a(c,o,q,l);var d=J^!!K;if(b&&K!=null){if(d){g=true}else{l[q]=false}}else{if(d){I.push(c);g=true}}}}}if(K!==undefined){if(!b){l=I}f=f.replace(D.match[k],"");if(!g){return[]}break}}}if(f==L){if(g==null){throw"Syntax error, unrecognized expression: "+f}else{break}}L=f}return l};var D=G.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(a){return a.getAttribute("href")}},relative:{"+":function(d,b,f){var h=typeof b==="string",c=h&&!/\W/.test(b),g=h&&!c;if(c&&!f){b=b.toUpperCase()}for(var k=0,l=d.length,a;k<l;k++){if((a=d[k])){while((a=a.previousSibling)&&a.nodeType!==1){}d[k]=g||a&&a.nodeName===b?a||false:a===b}}if(g){G.filter(b,d,true)}},">":function(b,h,a){var d=typeof h==="string";if(d&&!/\W/.test(h)){h=a?h:h.toUpperCase();for(var g=0,k=b.length;g<k;g++){var c=b[g];if(c){var f=c.parentNode;b[g]=f.nodeName===h?f:false}}}else{for(var g=0,k=b.length;g<k;g++){var c=b[g];if(c){b[g]=d?c.parentNode:c.parentNode===h}}if(d){G.filter(h,b,true)}}},"":function(c,f,a){var d=A++,g=e;if(!f.match(/\W/)){var b=f=a?f:f.toUpperCase();g=u}g("parentNode",f,d,c,b,a)},"~":function(c,f,a){var d=A++,g=e;if(typeof f==="string"&&!f.match(/\W/)){var b=f=a?f:f.toUpperCase();g=u}g("previousSibling",f,d,c,b,a)}},find:{ID:function(c,b,a){if(typeof b.getElementById!=="undefined"&&!a){var d=b.getElementById(c[1]);return d?[d]:[]}},NAME:function(f,b,a){if(typeof b.getElementsByName!=="undefined"){var g=[],c=b.getElementsByName(f[1]);for(var d=0,h=c.length;d<h;d++){if(c[d].getAttribute("name")===f[1]){g.push(c[d])}}return g.length===0?null:g}},TAG:function(b,a){return a.getElementsByTagName(b[1])}},preFilter:{CLASS:function(f,h,g,k,b,a){f=" "+f[1].replace(/\\/g,"")+" ";if(a){return f}for(var d=0,c;(c=h[d])!=null;d++){if(c){if(b^(c.className&&(" "+c.className+" ").indexOf(f)>=0)){if(!g){k.push(c)}}else{if(g){h[d]=false}}}}return false},ID:function(a){return a[1].replace(/\\/g,"")},TAG:function(b,c){for(var a=0;c[a]===false;a++){}return c[a]&&s(c[a])?b[1]:b[1].toUpperCase()},CHILD:function(b){if(b[1]=="nth"){var a=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(b[2]=="even"&&"2n"||b[2]=="odd"&&"2n+1"||!/\D/.test(b[2])&&"0n+"+b[2]||b[2]);b[2]=(a[1]+(a[2]||1))-0;b[3]=a[3]-0}b[0]=A++;return b},ATTR:function(c,g,f,h,b,a){var d=c[1].replace(/\\/g,"");if(!a&&D.attrMap[d]){c[1]=D.attrMap[d]}if(c[2]==="~="){c[4]=" "+c[4]+" "}return c},PSEUDO:function(b,f,d,g,a){if(b[1]==="not"){if(b[3].match(r).length>1||/^\w/.test(b[3])){b[3]=G(b[3],null,null,f)}else{var c=G.filter(b[3],f,d,true^a);if(!d){g.push.apply(g,c)}return false}}else{if(D.match.POS.test(b[0])||D.match.CHILD.test(b[0])){return true}}return b},POS:function(a){a.unshift(true);return a}},filters:{enabled:function(a){return a.disabled===false&&a.type!=="hidden"},disabled:function(a){return a.disabled===true},checked:function(a){return a.checked===true},selected:function(a){a.parentNode.selectedIndex;return a.selected===true},parent:function(a){return !!a.firstChild},empty:function(a){return !a.firstChild},has:function(a,b,c){return !!G(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.type},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toUpperCase()==="BUTTON"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,b){return b===0},last:function(b,c,d,a){return c===a.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0==b},eq:function(a,b,c){return c[3]-0==b}},filter:{PSEUDO:function(b,g,f,a){var h=g[1],d=D.filters[h];if(d){return d(b,f,g,a)}else{if(h==="contains"){return(b.textContent||b.innerText||"").indexOf(g[3])>=0}else{if(h==="not"){var c=g[3];for(var f=0,k=c.length;f<k;f++){if(c[f]===b){return false}}return true}}}},CHILD:function(b,l){var g=l[1],a=b;switch(g){case"only":case"first":while(a=a.previousSibling){if(a.nodeType===1){return false}}if(g=="first"){return true}a=b;case"last":while(a=a.nextSibling){if(a.nodeType===1){return false}}return true;case"nth":var m=l[2],c=l[3];if(m==1&&c==0){return true}var h=l[0],d=b.parentNode;if(d&&(d.sizcache!==h||!b.nodeIndex)){var k=0;for(a=d.firstChild;a;a=a.nextSibling){if(a.nodeType===1){a.nodeIndex=++k}}d.sizcache=h}var f=b.nodeIndex-c;if(m==0){return f==0}else{return(f%m==0&&f/m>=0)}}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return(b==="*"&&a.nodeType===1)||a.nodeName===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(b,d){var f=d[1],h=D.attrHandle[f]?D.attrHandle[f](b):b[f]!=null?b[f]:b.getAttribute(f),a=h+"",c=d[2],g=d[4];return h==null?c==="!=":c==="="?a===g:c==="*="?a.indexOf(g)>=0:c==="~="?(" "+a+" ").indexOf(g)>=0:!g?a&&h!==false:c==="!="?a!=g:c==="^="?a.indexOf(g)===0:c==="$="?a.substr(a.length-g.length)===g:c==="|="?a===g||a.substr(0,g.length+1)===g+"-":false},POS:function(b,f,d,a){var g=f[2],c=D.setFilters[g];if(c){return c(b,d,f,a)}}}};var z=D.match.POS;for(var v in D.match){D.match[v]=new RegExp(D.match[v].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var H=function(a,b){a=Array.prototype.slice.call(a);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(y){H=function(a,b){var d=b||[];if(E.call(a)==="[object Array]"){Array.prototype.push.apply(d,a)}else{if(typeof a.length==="number"){for(var c=0,f=a.length;c<f;c++){d.push(a[c])}}else{for(var c=0;a[c];c++){d.push(a[c])}}}return d}}var F;if(document.documentElement.compareDocumentPosition){F=function(b,c){var a=b.compareDocumentPosition(c)&4?-1:b===c?0:1;if(a===0){t=true}return a}}else{if("sourceIndex" in document.documentElement){F=function(b,c){var a=b.sourceIndex-c.sourceIndex;if(a===0){t=true}return a}}else{if(document.createRange){F=function(b,d){var c=b.ownerDocument.createRange(),f=d.ownerDocument.createRange();c.selectNode(b);c.collapse(true);f.selectNode(d);f.collapse(true);var a=c.compareBoundaryPoints(Range.START_TO_END,f);if(a===0){t=true}return a}}}}(function(){var b=document.createElement("div"),a="script"+(new Date).getTime();b.innerHTML="<a name='"+a+"'/>";var c=document.documentElement;c.insertBefore(b,c.firstChild);if(!!document.getElementById(a)){D.find.ID=function(g,f,d){if(typeof f.getElementById!=="undefined"&&!d){var h=f.getElementById(g[1]);return h?h.id===g[1]||typeof h.getAttributeNode!=="undefined"&&h.getAttributeNode("id").nodeValue===g[1]?[h]:undefined:[]}};D.filter.ID=function(d,g){var f=typeof d.getAttributeNode!=="undefined"&&d.getAttributeNode("id");return d.nodeType===1&&f&&f.nodeValue===g}}c.removeChild(b)})();(function(){var a=document.createElement("div");a.appendChild(document.createComment(""));if(a.getElementsByTagName("*").length>0){D.find.TAG=function(g,b){var c=b.getElementsByTagName(g[1]);if(g[1]==="*"){var d=[];for(var f=0;c[f];f++){if(c[f].nodeType===1){d.push(c[f])}}c=d}return c}}a.innerHTML="<a href='#'></a>";if(a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#"){D.attrHandle.href=function(b){return b.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var c=G,a=document.createElement("div");a.innerHTML="<p class='TEST'></p>";if(a.querySelectorAll&&a.querySelectorAll(".TEST").length===0){return}G=function(f,g,k,h){g=g||document;if(!h&&g.nodeType===9&&!s(g)){try{return H(g.querySelectorAll(f),k)}catch(d){}}return c(f,g,k,h)};for(var b in c){G[b]=c[b]}})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var a=document.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(a.getElementsByClassName("e").length===0){return}a.lastChild.className="e";if(a.getElementsByClassName("e").length===1){return}D.order.splice(1,0,"CLASS");D.find.CLASS=function(d,c,b){if(typeof c.getElementsByClassName!=="undefined"&&!b){return c.getElementsByClassName(d[1])}}})()}function u(a,h,k,b,g,d){var f=a=="previousSibling"&&!d;for(var m=0,o=b.length;m<o;m++){var c=b[m];if(c){if(f&&c.nodeType===1){c.sizcache=k;c.sizset=m}c=c[a];var l=false;while(c){if(c.sizcache===k){l=b[c.sizset];break}if(c.nodeType===1&&!d){c.sizcache=k;c.sizset=m}if(c.nodeName===h){l=c;break}c=c[a]}b[m]=l}}}function e(a,h,k,b,g,d){var f=a=="previousSibling"&&!d;for(var m=0,o=b.length;m<o;m++){var c=b[m];if(c){if(f&&c.nodeType===1){c.sizcache=k;c.sizset=m}c=c[a];var l=false;while(c){if(c.sizcache===k){l=b[c.sizset];break}if(c.nodeType===1){if(!d){c.sizcache=k;c.sizset=m}if(typeof h!=="string"){if(c===h){l=true;break}}else{if(G.filter(h,[c]).length>0){l=c;break}}}c=c[a]}b[m]=l}}}var B=document.compareDocumentPosition?function(a,b){return a.compareDocumentPosition(b)&16}:function(a,b){return a!==b&&(a.contains?a.contains(b):true)};var s=function(a){return a.nodeType===9&&a.documentElement.nodeName!=="HTML"||!!a.ownerDocument&&a.ownerDocument.documentElement.nodeName!=="HTML"};var C=function(k,a){var f=[],d="",c,g=a.nodeType?[a]:a;while((c=D.match.PSEUDO.exec(k))){d+=c[0];k=k.replace(D.match.PSEUDO,"")}k=D.relative[k]?k+"*":k;for(var b=0,h=g.length;b<h;b++){G(k,g[b],f)}return G.filter(d,f)};window.Sizzle=G})();if(typeof Shadowbox=="undefined"){throw"Unable to load Shadowbox language file, Shadowbox not found."}Shadowbox.lang={code:"fi",of:"/",loading:"ladataan",cancel:"Peruuta",next:"Seuraava",previous:"Edellinen",play:"Toista",pause:"Pysäytä",close:"Sulje",errors:{single:'Sinun on asennettava <a href="{0}">{1}</a> nähdäksesi sisällön.',shared:'Sinun on asennettava <a href="{0}">{1}</a> - ja <a href="{2}">{3}</a> selainlaajennukset nähdäksesi sisällön.',either:'Sinun on asennetteva joko <a href="{0}">{1}</a> tai <a href="{2}">{3}</a> selainlaajennus nähdäksesi sisällön.'}};(function(){var q=Shadowbox,t=q.util,o,l,m="sb-drag-layer",u;function y(){o={x:0,y:0,start_x:null,start_y:null}}function v(a,d,b){if(a){y();var e=["position:absolute","height:"+d+"px","width:"+b+"px","cursor:"+(q.client.isGecko?"-moz-grab":"move"),"background-color:"+(q.client.isIE?"#fff;filter:alpha(opacity=0)":"transparent")].join(";");q.lib.append(q.skin.bodyEl(),'<div id="'+m+'" style="'+e+'"></div>');q.lib.addEvent(t.get(m),"mousedown",r)}else{var c=t.get(m);if(c){q.lib.removeEvent(c,"mousedown",r);q.lib.remove(c)}l=null}}function r(a){q.lib.preventDefault(a);var b=q.lib.getPageXY(a);o.start_x=b[0];o.start_y=b[1];l=t.get(q.contentId());q.lib.addEvent(document,"mousemove",s);q.lib.addEvent(document,"mouseup",z);if(q.client.isGecko){t.get(m).style.cursor="-moz-grabbing"}}function z(){q.lib.removeEvent(document,"mousemove",s);q.lib.removeEvent(document,"mouseup",z);if(q.client.isGecko){t.get(m).style.cursor="-moz-grab"}}function s(e){var c=q.content,d=q.dimensions,f=q.lib.getPageXY(e);var a=f[0]-o.start_x;o.start_x+=a;o.x=Math.max(Math.min(0,o.x+a),d.inner_w-c.width);l.style.left=o.x+"px";var b=f[1]-o.start_y;o.start_y+=b;o.y=Math.max(Math.min(0,o.y+b),d.inner_h-c.height);l.style.top=o.y+"px"}q.img=function(a){this.obj=a;this.resizable=true;this.ready=false;var b=this;u=new Image();u.onload=function(){b.height=a.height?parseInt(a.height,10):u.height;b.width=a.width?parseInt(a.width,10):u.width;b.ready=true;u.onload="";u=null};u.src=a.content};q.img.prototype={append:function(b,c,d){this.id=c;var a=document.createElement("img");a.id=c;a.src=this.obj.content;a.style.position="absolute";a.setAttribute("height",d.resize_h);a.setAttribute("width",d.resize_w);b.appendChild(a)},remove:function(){var a=t.get(this.id);if(a){q.lib.remove(a)}v(false);if(u){u.onload="";u=null}},onLoad:function(){var a=q.dimensions;if(a.oversized&&q.options.handleOversize=="drag"){v(true,a.resize_h,a.resize_w)}},onWindowResize:function(){if(l){var b=q.content,c=q.dimensions,d=parseInt(q.lib.getStyle(l,"top")),a=parseInt(q.lib.getStyle(l,"left"));if(d+b.height<c.inner_h){l.style.top=c.inner_h-b.height+"px"}if(a+b.width<c.inner_w){l.style.left=c.inner_w-b.width+"px"}}}}})();(function(){var b=Shadowbox;b.iframe=function(d){this.obj=d;var a=document.getElementById("sb-overlay");this.height=d.height?parseInt(d.height,10):a.offsetHeight;this.width=d.width?parseInt(d.width,10):a.offsetWidth};b.iframe.prototype={append:function(a,f,g){this.id=f;var h='<iframe id="'+f+'" name="'+f+'" height="100%" width="100%" frameborder="0" marginwidth="0" marginheight="0" scrolling="auto"';if(b.client.isIE){h+=' allowtransparency="true"';if(b.client.isIE6){h+=" src=\"javascript:false;document.write('');\""}}h+="></iframe>";a.innerHTML=h},remove:function(){var a=document.getElementById(this.id);if(a){b.lib.remove(a);if(b.client.isGecko){delete window.frames[this.id]}}},onLoad:function(){var a=b.client.isIE?document.getElementById(this.id).contentWindow:window.frames[this.id];a.location.href=this.obj.content}}})();if(typeof jQuery=="undefined"){throw"Unable to load Shadowbox adapter, jQuery not found"}if(typeof Shadowbox=="undefined"){throw"Unable to load Shadowbox adapter, Shadowbox not found"}Shadowbox.lib=function(b){return{getStyle:function(d,a){return b(d).css(a)},remove:function(a){b(a).remove()},getTarget:function(a){return a.target},getPageXY:function(a){return[a.pageX,a.pageY]},preventDefault:function(a){a.preventDefault()},keyCode:function(a){return a.keyCode},addEvent:function(e,a,f){b(e).bind(a,f)},removeEvent:function(e,a,f){b(e).unbind(a,f)},append:function(d,a){b(d).append(a)}}}(jQuery);jQuery(Shadowbox.load);(function(b){b.fn.shadowbox=function(a){return this.each(function(){var g=b(this);var f=b.extend({},a||{},b.metadata?g.metadata():b.meta?g.data():{});var h=this.className||"";f.width=parseInt((h.match(/w:(\d+)/)||[])[1])||f.width;f.height=parseInt((h.match(/h:(\d+)/)||[])[1])||f.height;Shadowbox.setup(g,f)})}})(jQuery);Shadowbox.init({players:["img","iframe"],language:"fi"});$(function(){$.localScroll();$("a#as").click();$(document).ready(function(){$("#user-box").autocomplete("search_usernames.php",{minChars:2,selectOnly:1,onItemSelect:function(){document.usersearch.submit()}})});$(document).ready(function(){$("#recipient").autocomplete("search_usernames.php",{minChars:2,selectOnly:1})});var browser={isIE:false,isIE6:false,isOpera:false};with(browser){isOpera=(window.opera);isIE=(!isOpera&&navigator.appName=="Microsoft Internet Explorer"&&document.documentElement&&typeof document.documentElement.style.maxHeight!="undefined");isIE6=(!isIE&&!isOpera&&document.compatMode&&document.all&&!window.opera)}function addShadow(img){Size={w:(img.width+4),h:(img.height+4)};if(browser.isIE||browser.isIE6||browser.isOpera){Size.w=Size.w-4;Size.h=Size.h-4}n=$(img).parents(".shadow");sBg="http://static.harhakuva.fi/shadow/"+Size.w+"x"+Size.h+".png";if(browser.isIE6){n.css("width",Size.w);n.css("height",Size.h);n.css("filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+sBg+", sizingMethod=scale)")}else{n.css("background","url("+sBg+") center no-repeat")}}$(".shadow img").each(function(){addShadow(this)});$(".shadow img").load(function(){addShadow(this)});$(".gallery-ml").biggerlink({otherstriggermaster:false});$("a.gal-author").hover(function(){$(this).parent("span").parent("div").addClass("bl-hoverauthor")},function(){$(this).parent("span").parent("div").removeClass("bl-hoverauthor")});$("img.pop").tooltip({delay:0,showURL:false,bodyHandler:function(){return $("<img/>").attr("src",this.src)}});function checkgroup(id){var allchecked=true;var allunchecked=true;$("#cat-"+id+" .subforum").each(function(){if($(this).is(":checked")==false){allchecked=false}else{allunchecked=false}});if(allchecked&&!allunchecked){$(".mainforums[value="+id+"]").attr("checked",true);$(".mainforums[value="+id+"]").attr("disabled",false)}else{if(!allchecked&&allunchecked){$(".mainforums[value="+id+"]").attr("checked",false);$(".mainforums[value="+id+"]").attr("disabled",false)}else{if(!allchecked&&!allunchecked){$(".mainforums[value="+id+"]").attr("checked",true);$(".mainforums[value="+id+"]").attr("disabled",true)}}}}$(".mainforums").click(function(){var id=$(this).val();if($(this).is(":checked")==true){$("#cat-"+id+" .subforum").attr("checked",true)}else{$("#cat-"+id+" .subforum").attr("checked",false)}});$(".mainforums").each(function(){var id=$(this).val();checkgroup(id)});$(".subforum").click(function(){var id=$(this).parent().attr("id").split("-")[1];checkgroup(id)});$("#categorynav li em a").mouseover(function(){$("#categorynav>ul>li>ul").show();$("#categorynav li em a").addClass("active")});$("#categorynav li h4 span#type").mouseover(function(){$("#categorynav>ul>li>ul").hide();$("#categorynav li em a").removeClass("active")});$("#categorynav ul").hover(function(){},function(){$("#categorynav>ul>li>ul").hide();$("#categorynav li em a").removeClass("active")});$("#categorynavsub li em a").mouseover(function(){$("#categorynavsub>ul>li>ul").show();$("#categorynavsub li em a").addClass("active")});$("#categorynavsub li h4 span#type2").mouseover(function(){$("#categorynavsub>ul>li>ul").hide();$("#categorynavsub li em a").removeClass("active")});$("#categorynavsub ul").hover(function(){},function(){$("#categorynavsub>ul>li>ul").hide();$("#categorynavsub li em a").removeClass("active")});$("#categorynavsort li em a").mouseover(function(){$("#categorynavsort>ul>li>ul").show();$("#categorynavsort li em a").addClass("active")});$("#categorynavsort li h4 span#type3").mouseover(function(){$("#categorynavsort>ul>li>ul").hide();$("#categorynavsort li em a").removeClass("active")});$("#categorynavsort ul").hover(function(){},function(){$("#categorynavsort>ul>li>ul").hide();$("#categorynavsort li em a").removeClass("active")});$("#categorynavsortmain li em a").mouseover(function(){$("#categorynavsortmain>ul>li>ul").show();$("#categorynavsortmain li em a").addClass("active")});$("#categorynavsortmain li h4 span#type3").mouseover(function(){$("#categorynavsortmain>ul>li>ul").hide();$("#categorynavsortmain li em a").removeClass("active")});$("#categorynavsortmain ul").hover(function(){},function(){$("#categorynavsortmain>ul>li>ul").hide();$("#categorynavsortmain li em a").removeClass("active")});$("#categorynavview li em a").mouseover(function(){$("#categorynavview>ul>li>ul").show();$("#categorynavview li em a").addClass("active")});$("#categorynavview li h4 span#type3").mouseover(function(){$("#categorynavview>ul>li>ul").hide();$("#categorynavview li em a").removeClass("active")});$("#categorynavview ul").hover(function(){},function(){$("#categorynavview>ul>li>ul").hide();$("#categorynavview li em a").removeClass("active")});$("#seduction.splitted .hide").css("display","none");$("#seduction.splitted").click(function(){$("#leftsedu").animate({width:"0px"},1500);$("#rightsedu").animate({width:"0px"},1500);$("#seduction .hide").css({display:"inline"},1500);$("#seduction").css({cursor:"default"})});$("#seduction.splitted").hover(function(){w=$("#leftsedu").css("width").split("px");$("#leftsedu").stop();$("#rightsedu").stop();if(w[0]>445){$("#leftsedu").animate({width:"446px"},"fast");$("#rightsedu").animate({width:"385px"},"fast")}},function(){w=$("#leftsedu").css("width").split("px");$("#leftsedu").stop();$("#rightsedu").stop();if(w[0]>445){$("#leftsedu").animate({width:"449px"},"fast");$("#rightsedu").animate({width:"388px"},"fast")}});$(".imginfo").each(function(){width=$(this).width();$(this).parents().next("div.imginfobox").css("width",width);$(this).parents().next("div.imginfobox").children("div").css("left",-(57.5-width/2))});$(".imginfo").load(function(){width=$(this).width();$(this).parents().next("div.imginfobox").css("width",width);$(this).parents().next("div.imginfobox").children("div").css("left",-(57.5-width/2))});$(".imginfo").hover(function(){$(this).parents().next("div.imginfobox").children("div").stop();$(this).parents().next("div.imginfobox").children("div").animate({top:"21px"},200,function(){$(this).parent().hide()})},function(){$(this).parents().next("div.imginfobox").show();$(this).parents().next("div.imginfobox").children("div").stop();$(this).parents().next("div.imginfobox").children("div").animate({top:"0"},200)});$("div.boxi").hover(function(){$(this).stop();$(this).animate({top:"21px"},200,function(){$(this).parent().hide()})},function(){});$("#showroom").hover(function(){if(document.getElementById("showroom").style.height=="410px"){$shopen=1}else{$shopen=0}if($shopen==1){$("#shroomc").css("display","block")}else{$("#shroom").css("display","block")}},function(){if(document.getElementById("showroom").style.height=="410px"){$shopen=1}else{$shopen=0}if($shopen==1){$("#shroomc").css("display","none")}else{$("#shroom").css("display","none")}});$("a#shroom").click(function(){$(this).css("display","none");$("#shroomc").css("display","block");$("#showroom").animate({height:"410px"},500);return false});$("a#shroomc").click(function(){$(this).css("display","none");$("#showroom").animate({height:"140px"},400);return false});$("a#toggle").click(function(){$("#ssort").slideToggle(400,function(){if($("#ssort").css("display")!="none"){document.search.name.focus()}});return false});if(browser.isIE6){$(".image em").css("background","none");$(".image em").css("filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../i/exif.png', sizingMethod='scale');");$(".image em").css("right","0px");$(".image").hover(function(){$(".image em").stop(true,true).animate({width:"212px",right:"0px"},"fast")},function(){$(".image em").animate({width:"0px",right:"10px"},"fast")})}else{$(".image").hover(function(){$(".image em").stop(true,true).animate({opacity:"show",right:"0px"},"fast")},function(){$(".image em").animate({opacity:"hide",right:"10px"},"fast")})}$(".jumpto").click(function(){showid=$(this).attr("rel");last_id=showid.split("w");last_id=last_id[1];for(id=1;id<last_id;id=id+1){$("#w"+id).css("display","block")}$("#w"+last_id).show("slow");jQuery.scrollTo("div[id="+showid+"]",1000);return false});$(".morecomments").click(function(event,gotoo){data=$(this).attr("rel").split("/");if(data[0]=="w"){$.post("/view.php",{work:data[1],morecomments:data[2]},function(data){$("#morecomments").hide();$("#commentsholder").html(data);$("#commentsholder").show(1500,function(){if(gotoo==undefined){jQuery.scrollTo("div[id=commentsholder]",1000)}else{jQuery.scrollTo(gotoo,1000)}})})}else{if(data[0]=="s"){$.post("/view.php",{show:data[1],morecomments:data[2]},function(data){$("#morecomments").hide();$("#commentsholder").html(data);$("#commentsholder").show(1500,function(){if(gotoo==undefined){jQuery.scrollTo("div[id=commentsholder]",1000)}else{jQuery.scrollTo(gotoo,1000)}})})}}return false});if(location.hash!=""){$(".morecomments").trigger("click",location.hash)}$(".imagecenter img").each(function(){width=$(this).width();height=$(this).height();$(this).parents(".imagecenter").css("width",width+4);$(this).parents(".imagecenter").css("height",height+4);$(this).prev(".disabled").css("width",width);$(this).prev(".disabled").css("height",height)});$(".imagecenter img").load(function(){width=$(this).width();height=$(this).height();$(this).parents(".imagecenter").css("width",width+4);$(this).parents(".imagecenter").css("height",height+4);$(this).prev(".disabled").css("width",width);$(this).prev(".disabled").css("height",height)});$(".check").click(function(){document.sitelogin.remember.value="true";$(this).css("display","none");$(".uncheck").css("display","inline")});$(".uncheck").click(function(){document.sitelogin.remember.value="false";$(this).css("display","none");$(".check").css("display","inline")});$(".forumIndiMsg4 img").each(function(){if(this.width>540){this.width=540}});$(".forumIndiMsg4 img").load(function(){if(this.width>540){this.width=540}});$(".sortableworks li").css("cursor","move");$(".sortableworks").sortable();$(".sortableworks").disableSelection();$(".sortableworks").bind("sortstop",function(){$.post("edit_show.php",{show:$(".sortableworks").attr("id"),changeorder:$(".sortableworks").sortable("serialize")})})});function insertAtCursor(s,m,r){if(document.selection){s.focus();sel=document.selection.createRange();sel.text=m+r}else{if(s.selectionStart||s.selectionStart=="0"){var t=s.selectionStart;var k=s.selectionEnd;var q=s.value.substring(0,t);var l=s.value.substring(t,k);var o=s.value.substring(k,s.value.length);s.value=q+m+l+r+o}else{s.value+=myValue}}}function checkAll(h,e){var f=document.getElementById(h);var g=f.length;for(i=0;i<g;i++){if(e==true){f.elements[i].checked=true}else{f.elements[i].checked=false}}}function add_poll_choice(){var b=document.createElement("input");b.setAttribute("name","poll_choices[]");b.setAttribute("class","reg");b.setAttribute("maxlength","255");document.getElementById("poll_choices").appendChild(b)}function br2nl(b){return b.replace(/(<br>)/g,"")}function editAnswer(b){document.getElementById("answer-"+b).innerHTML='<form name="edit"><textarea name="answer" cols="60" rows="2">'+br2nl(document.getElementById("answer-"+b).innerHTML)+'</textarea><br /><input type="image" onclick="saveAnswer('+b+'); return false;" name="tallenna" src="http://www.harhakuva.org/i/tallenna19.gif" /></form>';document.edit.answer.focus();document.getElementById("edit-"+b).style.display="none"}function saveAnswer(b){$.post("/view.php",{saveanswer:b,answer:document.edit.answer.value},function(a){document.getElementById("answer-"+b).innerHTML=a});document.getElementById("edit-"+b).style.display="inline"};