/*
 * jQuery JavaScript Library v1.3.2
 * http://jquery.com/
 *
 * Copyright (c) 2009 John Resig
 * Dual licensed under the MIT and GPL licenses.
 * http://docs.jquery.com/License
 *
 * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
 * Revision: 6246
 */
(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(f,b){f=f||document;if(f.nodeType){this[0]=f;this.length=1;this.context=f;return this}if(typeof f==="string"){var d=M.exec(f);if(d&&(d[1]||!b)){if(d[1]){f=T.clean([d[1]],b)}else{var a=document.getElementById(d[3]);if(a&&a.id!=d[3]){return T().find(f)}var e=T(a||[]);e.context=document;e.selector=f;return e}}else{return T(b).find(f)}}else{if(T.isFunction(f)){return T(document).ready(f)}}if(f.selector&&f.context){this.selector=f.selector;this.context=f.context}return this.setArray(T.isArray(f)?f:T.makeArray(f))},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(d,a,e){var b=T(d);b.prevObject=this;b.context=this.context;if(a==="find"){b.selector=this.selector+(this.selector?" ":"")+e}else{if(a){b.selector=this.selector+"."+a+"("+e+")"}}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(d,a,b){var e=d;if(typeof d==="string"){if(a===ab){return this[0]&&T[b||"attr"](this[0],d)}else{e={};e[d]=a}}return this.each(function(f){for(d in e){T.attr(b?this.style:this,d,T.prop(this,e[d],b,f,d))}})},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 d=this;while(d.firstChild){d=d.firstChild}return d}).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(d){return T.find(b,d)})),"find",b)}},clone:function(b){var e=this.map(function(){if(!T.support.noCloneEvent&&!T.isXMLDoc(this)){var g=this.outerHTML;if(!g){var f=this.ownerDocument.createElement("div");f.appendChild(this.cloneNode(true));g=f.innerHTML}return T.clean([g.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(b===true){var a=this.find("*").andSelf(),d=0;e.find("*").andSelf().each(function(){if(this.nodeName!==a[d].nodeName){return}var h=T.data(a[d],"events");for(var f in h){for(var g in h[f]){T.event.add(this,f,h[f][g],h[f][g].data)}}d++})}return e},filter:function(a){return this.pushStack(T.isFunction(a)&&T.grep(this,function(b,d){return a.call(b,d)})||T.multiFilter(a,T.grep(this,function(b){return b.nodeType===1})),"filter",a)},closest:function(d){var a=T.expr.match.POS.test(d)?T(d):null,b=0;return this.map(function(){var e=this;while(e&&e.ownerDocument){if(a?a.index(e)>-1:T(e).is(d)){T.data(e,"closest",b);return e}e=e.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(d){if(d===ab){var j=this[0];if(j){if(T.nodeName(j,"option")){return(j.attributes.value||{}).specified?j.value:j.text}if(T.nodeName(j,"select")){var f=j.selectedIndex,b=[],a=j.options,g=j.type=="select-one";if(f<0){return null}for(var i=g?f:0,e=g?f+1:a.length;i<e;i++){var h=a[i];if(h.selected){d=T(h).val();if(g){return d}b.push(d)}}return b}return(j.value||"").replace(/\r/g,"")}return ab}if(typeof d==="number"){d+=""}return this.each(function(){if(this.nodeType!=1){return}if(T.isArray(d)&&/radio|checkbox/.test(this.type)){this.checked=(T.inArray(this.value,d)>=0||T.inArray(this.name,d)>=0)}else{if(T.nodeName(this,"select")){var k=T.makeArray(d);T("option",this).each(function(){this.selected=(T.inArray(this.value,k)>=0||T.inArray(this.text,k)>=0)});if(!k.length){this.selectedIndex=-1}}else{this.value=d}}})},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,d){return a.call(b,d,b)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(e,a,b){if(this[0]){var f=(this[0].ownerDocument||this[0]).createDocumentFragment(),i=T.clean(e,(this[0].ownerDocument||this[0]),f),g=f.firstChild;if(g){for(var h=0,j=this.length;h<j;h++){b.call(d(this[h],g),this.length>1||h>0?f.cloneNode(true):f)}}if(i){T.each(i,E)}}return this;function d(l,k){return a&&T.nodeName(l,"table")&&T.nodeName(k,"tr")?(l.getElementsByTagName("tbody")[0]||l.appendChild(l.ownerDocument.createElement("tbody"))):l}}};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 d=arguments[0]||{},f=1,e=arguments.length,i=false,g;if(typeof d==="boolean"){i=d;d=arguments[1]||{};f=2}if(typeof d!=="object"&&!T.isFunction(d)){d={}}if(e==f){d=this;--f}for(;f<e;f++){if((g=arguments[f])!=null){for(var h in g){var b=d[h],a=g[h];if(d===a){continue}if(i&&a&&typeof a==="object"&&!a.nodeType){d[h]=T.extend(i,b||(a.length!=null?[]:{}),a)}else{if(a!==ab){d[h]=a}}}}}return d};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,d=document.createElement("script");d.type="text/javascript";if(T.support.scriptEval){d.appendChild(document.createTextNode(a))}else{d.text=a}b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()==b.toUpperCase()},each:function(f,a,g){var h,e=0,d=f.length;if(g){if(d===ab){for(h in f){if(a.apply(f[h],g)===false){break}}}else{for(;e<d;){if(a.apply(f[e++],g)===false){break}}}}else{if(d===ab){for(h in f){if(a.call(f[h],h,f[h])===false){break}}}else{for(var b=f[0];e<d&&a.call(b,e,b)!==false;b=f[++e]){}}}return f},prop:function(b,a,d,e,f){if(T.isFunction(a)){a=a.call(b,e)}return typeof a==="number"&&d=="curCSS"&&!ag.test(f)?a+"px":a},className:{add:function(b,a){T.each((a||"").split(/\s+/),function(e,d){if(b.nodeType==1&&!T.className.has(b.className,d)){b.className+=(b.className?" ":"")+d}})},remove:function(b,a){if(b.nodeType==1){b.className=a!==ab?T.grep(b.className.split(/\s+/),function(d){return !T.className.has(a,d)}).join(" "):""}},has:function(a,b){return a&&T.inArray(b,(a.className||a).toString().split(/\s+/))>-1}},swap:function(b,d,a){var f={};for(var e in d){f[e]=b.style[e];b.style[e]=d[e]}a.call(b);for(var e in d){b.style[e]=f[e]}},css:function(f,h,d,i){if(h=="width"||h=="height"){var a,g={position:"absolute",visibility:"hidden",display:"block"},b=h=="width"?["Left","Right"]:["Top","Bottom"];function e(){a=h=="width"?f.offsetWidth:f.offsetHeight;if(i==="border"){return}T.each(b,function(){if(!i){a-=parseFloat(T.curCSS(f,"padding"+this,true))||0}if(i==="margin"){a+=parseFloat(T.curCSS(f,"margin"+this,true))||0}else{a-=parseFloat(T.curCSS(f,"border"+this+"Width",true))||0}})}if(f.offsetWidth!==0){e()}else{T.swap(f,g,e)}return Math.max(0,Math.round(a))}return T.curCSS(f,h,d)},curCSS:function(f,i,h){var b,j=f.style;if(i=="opacity"&&!T.support.opacity){b=T.attr(j,"opacity");return b==""?"1":b}if(i.match(/float/i)){i=H}if(!h&&j&&j[i]){b=j[i]}else{if(Q.getComputedStyle){if(i.match(/float/i)){i="float"}i=i.replace(/([A-Z])/g,"-$1").toLowerCase();var a=Q.getComputedStyle(f,null);if(a){b=a.getPropertyValue(i)}if(i=="opacity"&&b==""){b="1"}}else{if(f.currentStyle){var e=i.replace(/\-(\w)/g,function(l,k){return k.toUpperCase()});b=f.currentStyle[i]||f.currentStyle[e];if(!/^\d+(px)?$/i.test(b)&&/^\d/.test(b)){var g=j.left,d=f.runtimeStyle.left;f.runtimeStyle.left=f.currentStyle.left;j.left=b||0;b=j.pixelLeft+"px";j.left=g;f.runtimeStyle.left=d}}}}return b},clean:function(h,b,e){b=b||document;if(typeof b.createElement==="undefined"){b=b.ownerDocument||b[0]&&b[0].ownerDocument||document}if(!e&&h.length===1&&typeof h[0]==="string"){var f=/^<(\w+)\s*\/?>$/.exec(h[0]);if(f){return[b.createElement(f[1])]}}var g=[],i=[],a=b.createElement("div");T.each(h,function(m,j){if(typeof j==="number"){j+=""}if(!j){return}if(typeof j==="string"){j=j.replace(/(<(\w+)[^>]*?)\/>/g,function(r,q,s){return s.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?r:q+"></"+s+">"});var n=j.replace(/^\s+/,"").substring(0,10).toLowerCase();var l=!n.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!n.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||n.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!n.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!n.indexOf("<td")||!n.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!n.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!T.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];a.innerHTML=l[1]+j+l[2];while(l[0]--){a=a.lastChild}if(!T.support.tbody){var k=/<tbody/i.test(j),o=!n.indexOf("<table")&&!k?a.firstChild&&a.firstChild.childNodes:l[1]=="<table>"&&!k?a.childNodes:[];for(var p=o.length-1;p>=0;--p){if(T.nodeName(o[p],"tbody")&&!o[p].childNodes.length){o[p].parentNode.removeChild(o[p])}}}if(!T.support.leadingWhitespace&&/^\s/.test(j)){a.insertBefore(b.createTextNode(j.match(/^\s*/)[0]),a.firstChild)}j=T.makeArray(a.childNodes)}if(j.nodeType){g.push(j)}else{g=T.merge(g,j)}});if(e){for(var d=0;g[d];d++){if(T.nodeName(g[d],"script")&&(!g[d].type||g[d].type.toLowerCase()==="text/javascript")){i.push(g[d].parentNode?g[d].parentNode.removeChild(g[d]):g[d])}else{if(g[d].nodeType===1){g.splice.apply(g,[d+1,0].concat(T.makeArray(g[d].getElementsByTagName("script"))))}e.appendChild(g[d])}}return i}return g},attr:function(d,g,b){if(!d||d.nodeType==3||d.nodeType==8){return ab}var f=!T.isXMLDoc(d),a=b!==ab;g=f&&T.props[g]||g;if(d.tagName){var h=/href|src|style/.test(g);if(g=="selected"&&d.parentNode){d.parentNode.selectedIndex}if(g in d&&f&&!h){if(a){if(g=="type"&&T.nodeName(d,"input")&&d.parentNode){throw"type property can't be changed"}d[g]=b}if(T.nodeName(d,"form")&&d.getAttributeNode(g)){return d.getAttributeNode(g).nodeValue}if(g=="tabIndex"){var e=d.getAttributeNode("tabIndex");return e&&e.specified?e.value:d.nodeName.match(/(button|input|object|select|textarea)/i)?0:d.nodeName.match(/^(a|area)$/i)&&d.href?0:ab}return d[g]}if(!T.support.style&&f&&g=="style"){return T.attr(d.style,"cssText",b)}if(a){d.setAttribute(g,""+b)}var i=!T.support.hrefNormalized&&f&&h?d.getAttribute(g,2):d.getAttribute(g);return i===null?ab:i}if(!T.support.opacity&&g=="opacity"){if(a){d.zoom=1;d.filter=(d.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(b)+""=="NaN"?"":"alpha(opacity="+b*100+")")}return d.filter&&d.filter.indexOf("opacity=")>=0?(parseFloat(d.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}g=g.replace(/-([a-z])/ig,function(k,j){return j.toUpperCase()});if(a){d[g]=b}return d[g]},trim:function(a){return(a||"").replace(/^\s+|\s+$/g,"")},makeArray:function(a){var d=[];if(a!=null){var b=a.length;if(b==null||typeof a==="string"||T.isFunction(a)||a.setInterval){d[0]=a}else{while(b){d[--b]=a[b]}}}return d},inArray:function(b,a){for(var e=0,d=a.length;e<d;e++){if(a[e]===b){return e}}return -1},merge:function(b,f){var e=0,d,a=b.length;if(!T.support.getAll){while((d=f[e++])!=null){if(d.nodeType!=8){b[a++]=d}}}else{while((d=f[e++])!=null){b[a++]=d}}return b},unique:function(a){var g=[],h={};try{for(var f=0,e=a.length;f<e;f++){var b=T.data(a[f]);if(!h[b]){h[b]=true;g.push(a[f])}}}catch(d){g=a}return g},grep:function(f,a,g){var e=[];for(var d=0,b=f.length;d<b;d++){if(!g!=!a(f[d],d)){e.push(f[d])}}return e},map:function(g,a){var f=[];for(var e=0,d=g.length;e<d;e++){var b=a(g[e],e);if(b!=null){f[f.length]=b}}return f.concat.apply([],f)}});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(e){var d=T.map(this,a);if(e&&typeof e=="string"){d=T.multiFilter(e,d)}return this.pushStack(T.unique(d),b,e)}});T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,a){T.fn[b]=function(i){var f=[],d=T(i);for(var e=0,h=d.length;e<h;e++){var g=(e>0?this.clone(true):this).get();T.fn[a].apply(T(d[e]),g);f=f.concat(g)}return this.pushStack(f,b,i)}});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(d,e,b){d=d==W?R:d;var a=d[aa];if(!a){a=d[aa]=++I}if(e&&!T.cache[a]){T.cache[a]={}}if(b!==ab){T.cache[a][e]=b}return e?T.cache[a][e]:a},removeData:function(d,e){d=d==W?R:d;var a=d[aa];if(e){if(T.cache[a]){delete T.cache[a][e];e="";for(e in T.cache[a]){break}if(!e){T.removeData(d)}}}else{try{delete d[aa]}catch(b){if(d.removeAttribute){d.removeAttribute(aa)}}delete T.cache[a]}},queue:function(d,e,a){if(d){e=(e||"fx")+"queue";var b=T.data(d,e);if(!b||T.isArray(a)){b=T.data(d,e,T.makeArray(a))}else{if(a){b.push(a)}}}return b},dequeue:function(a,b){var e=T.queue(a,b),d=e.shift();if(!b||b==="fx"){d=e[0]}if(d!==ab){d.call(a)}}});T.fn.extend({data:function(e,b){var a=e.split(".");a[1]=a[1]?"."+a[1]:"";if(b===ab){var d=this.triggerHandler("getData"+a[1]+"!",[a[0]]);if(d===ab&&this.length){d=T.data(this[0],e)}return d===ab&&a[1]?this.data(a[0]):d}else{return this.trigger("setData"+a[1]+"!",[a[0],b]).each(function(){T.data(this,e,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 d=T.queue(this,b,a);if(b=="fx"&&d.length==1){d[0].call(this)}})},dequeue:function(a){return this.each(function(){T.dequeue(this,a)})}});
/*
 * Sizzle CSS Selector Engine - v0.9.3
 *  Copyright 2009, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var b=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,i=0,m=Object.prototype.toString;var o=function(s,y,al,ak){al=al||[];y=y||document;if(y.nodeType!==1&&y.nodeType!==9){return[]}if(!s||typeof s!=="string"){return al}var r=[],w,D,A,z,aj,x,v=true;b.lastIndex=0;while((w=b.exec(s))!==null){r.push(w[1]);if(w[2]){x=RegExp.rightContext;break}}if(r.length>1&&h.exec(s)){if(r.length===2&&l.relative[r[0]]){D=k(r[0]+r[1],y)}else{D=l.relative[r[0]]?[y]:o(r.shift(),y);while(r.length){s=r.shift();if(l.relative[s]){s+=r.shift()}D=k(s,D)}}}else{var ai=ak?{expr:r.pop(),set:p(ak)}:o.find(r.pop(),r.length===1&&y.parentNode?y.parentNode:y,d(y));D=o.filter(ai.expr,ai.set);if(r.length>0){A=p(D)}else{v=false}while(r.length){var B=r.pop(),C=B;if(!l.relative[B]){B=""}else{C=r.pop()}if(C==null){C=y}l.relative[B](A,C,d(y))}}if(!A){A=D}if(!A){throw"Syntax error, unrecognized expression: "+(B||s)}if(m.call(A)==="[object Array]"){if(!v){al.push.apply(al,A)}else{if(y.nodeType===1){for(var q=0;A[q]!=null;q++){if(A[q]&&(A[q]===true||A[q].nodeType===1&&j(y,A[q]))){al.push(D[q])}}}else{for(var q=0;A[q]!=null;q++){if(A[q]&&A[q].nodeType===1){al.push(D[q])}}}}}else{p(A,al)}if(x){o(x,y,al,ak);if(n){hasDuplicate=false;al.sort(n);if(hasDuplicate){for(var q=1;q<al.length;q++){if(al[q]===al[q-1]){al.splice(q--,1)}}}}}return al};o.matches=function(r,q){return o(r,null,null,q)};o.find=function(q,z,A){var r,v;if(!q){return[]}for(var w=0,x=l.order.length;w<x;w++){var s=l.order[w],v;if((v=l.match[s].exec(q))){var y=RegExp.leftContext;if(y.substr(y.length-1)!=="\\"){v[1]=(v[1]||"").replace(/\\/g,"");r=l.find[s](v,z,A);if(r!=null){q=q.replace(l.match[s],"");break}}}}if(!r){r=z.getElementsByTagName("*")}return{set:r,expr:q}};o.filter=function(aj,ak,C,w){var x=aj,A=[],q=ak,s,z,r=ak&&ak[0]&&d(ak[0]);while(aj&&ak.length){for(var al in l.filter){if((s=l.match[al].exec(aj))!=null){var y=l.filter[al],B,D;z=false;if(q==A){A=[]}if(l.preFilter[al]){s=l.preFilter[al](s,q,C,A,w,r);if(!s){z=B=true}else{if(s===true){continue}}}if(s){for(var v=0;(D=q[v])!=null;v++){if(D){B=y(D,s,v,q);var ai=w^!!B;if(C&&B!=null){if(ai){z=true}else{q[v]=false}}else{if(ai){A.push(D);z=true}}}}}if(B!==ab){if(!C){q=A}aj=aj.replace(l.match[al],"");if(!z){return[]}break}}}if(aj==x){if(z==null){throw"Syntax error, unrecognized expression: "+aj}else{break}}x=aj}return q};var l=o.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(q){return q.getAttribute("href")}},relative:{"+":function(q,z,r){var v=typeof z==="string",A=v&&!/\W/.test(z),s=v&&!A;if(A&&!r){z=z.toUpperCase()}for(var w=0,x=q.length,y;w<x;w++){if((y=q[w])){while((y=y.previousSibling)&&y.nodeType!==1){}q[w]=s||y&&y.nodeName===z?y||false:y===z}}if(s){o.filter(z,q,true)}},">":function(x,s,w){var z=typeof s==="string";if(z&&!/\W/.test(s)){s=w?s:s.toUpperCase();for(var r=0,v=x.length;r<v;r++){var y=x[r];if(y){var q=y.parentNode;x[r]=q.nodeName===s?q:false}}}else{for(var r=0,v=x.length;r<v;r++){var y=x[r];if(y){x[r]=z?y.parentNode:y.parentNode===s}}if(z){o.filter(s,x,true)}}},"":function(q,s,w){var r=i++,v=a;if(!s.match(/\W/)){var x=s=w?s:s.toUpperCase();v=e}v("parentNode",s,r,q,x,w)},"~":function(q,s,w){var r=i++,v=a;if(typeof s==="string"&&!s.match(/\W/)){var x=s=w?s:s.toUpperCase();v=e}v("previousSibling",s,r,q,x,w)}},find:{ID:function(s,r,q){if(typeof r.getElementById!=="undefined"&&!q){var v=r.getElementById(s[1]);return v?[v]:[]}},NAME:function(r,x,w){if(typeof x.getElementsByName!=="undefined"){var s=[],y=x.getElementsByName(r[1]);for(var q=0,v=y.length;q<v;q++){if(y[q].getAttribute("name")===r[1]){s.push(y[q])}}return s.length===0?null:s}},TAG:function(r,q){return q.getElementsByTagName(r[1])}},preFilter:{CLASS:function(q,s,r,v,x,w){q=" "+q[1].replace(/\\/g,"")+" ";if(w){return q}for(var z=0,y;(y=s[z])!=null;z++){if(y){if(x^(y.className&&(" "+y.className+" ").indexOf(q)>=0)){if(!r){v.push(y)}}else{if(r){s[z]=false}}}}return false},ID:function(q){return q[1].replace(/\\/g,"")},TAG:function(r,s){for(var q=0;s[q]===false;q++){}return s[q]&&d(s[q])?r[1]:r[1].toUpperCase()},CHILD:function(r){if(r[1]=="nth"){var q=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(r[2]=="even"&&"2n"||r[2]=="odd"&&"2n+1"||!/\D/.test(r[2])&&"0n+"+r[2]||r[2]);r[2]=(q[1]+(q[2]||1))-0;r[3]=q[3]-0}r[0]=i++;return r},ATTR:function(y,s,r,v,x,w){var q=y[1].replace(/\\/g,"");if(!w&&l.attrMap[q]){y[1]=l.attrMap[q]}if(y[2]==="~="){y[4]=" "+y[4]+" "}return y},PSEUDO:function(x,s,r,v,w){if(x[1]==="not"){if(x[3].match(b).length>1||/^\w/.test(x[3])){x[3]=o(x[3],null,null,s)}else{var q=o.filter(x[3],s,r,true^w);if(!r){v.push.apply(v,q)}return false}}else{if(l.match.POS.test(x[0])||l.match.CHILD.test(x[0])){return true}}return x},POS:function(q){q.unshift(true);return q}},filters:{enabled:function(q){return q.disabled===false&&q.type!=="hidden"},disabled:function(q){return q.disabled===true},checked:function(q){return q.checked===true},selected:function(q){q.parentNode.selectedIndex;return q.selected===true},parent:function(q){return !!q.firstChild},empty:function(q){return !q.firstChild},has:function(q,r,s){return !!o(s[3],q).length},header:function(q){return/h\d/i.test(q.nodeName)},text:function(q){return"text"===q.type},radio:function(q){return"radio"===q.type},checkbox:function(q){return"checkbox"===q.type},file:function(q){return"file"===q.type},password:function(q){return"password"===q.type},submit:function(q){return"submit"===q.type},image:function(q){return"image"===q.type},reset:function(q){return"reset"===q.type},button:function(q){return"button"===q.type||q.nodeName.toUpperCase()==="BUTTON"},input:function(q){return/input|select|textarea|button/i.test(q.nodeName)}},setFilters:{first:function(q,r){return r===0},last:function(r,s,v,q){return s===q.length-1},even:function(q,r){return r%2===0},odd:function(q,r){return r%2===1},lt:function(q,r,s){return r<s[3]-0},gt:function(q,r,s){return r>s[3]-0},nth:function(q,r,s){return s[3]-0==r},eq:function(q,r,s){return s[3]-0==r}},filter:{PSEUDO:function(x,r,q,w){var s=r[1],z=l.filters[s];if(z){return z(x,q,r,w)}else{if(s==="contains"){return(x.textContent||x.innerText||"").indexOf(r[3])>=0}else{if(s==="not"){var y=r[3];for(var q=0,v=y.length;q<v;q++){if(y[q]===x){return false}}return true}}}},CHILD:function(z,w){var r=w[1],y=z;switch(r){case"only":case"first":while(y=y.previousSibling){if(y.nodeType===1){return false}}if(r=="first"){return true}y=z;case"last":while(y=y.nextSibling){if(y.nodeType===1){return false}}return true;case"nth":var x=w[2],A=w[3];if(x==1&&A==0){return true}var s=w[0],B=z.parentNode;if(B&&(B.sizcache!==s||!z.nodeIndex)){var v=0;for(y=B.firstChild;y;y=y.nextSibling){if(y.nodeType===1){y.nodeIndex=++v}}B.sizcache=s}var q=z.nodeIndex-A;if(x==0){return q==0}else{return(q%x==0&&q/x>=0)}}},ID:function(q,r){return q.nodeType===1&&q.getAttribute("id")===r},TAG:function(q,r){return(r==="*"&&q.nodeType===1)||q.nodeName===r},CLASS:function(q,r){return(" "+(q.className||q.getAttribute("class"))+" ").indexOf(r)>-1},ATTR:function(x,q){var r=q[1],v=l.attrHandle[r]?l.attrHandle[r](x):x[r]!=null?x[r]:x.getAttribute(r),w=v+"",y=q[2],s=q[4];return v==null?y==="!=":y==="="?w===s:y==="*="?w.indexOf(s)>=0:y==="~="?(" "+w+" ").indexOf(s)>=0:!s?w&&v!==false:y==="!="?w!=s:y==="^="?w.indexOf(s)===0:y==="$="?w.substr(w.length-s.length)===s:y==="|="?w===s||w.substr(0,s.length+1)===s+"-":false},POS:function(x,s,r,w){var v=s[2],q=l.setFilters[v];if(q){return q(x,r,s,w)}}}};var h=l.match.POS;for(var f in l.match){l.match[f]=RegExp(l.match[f].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var p=function(q,r){q=Array.prototype.slice.call(q);if(r){r.push.apply(r,q);return r}return q};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(g){p=function(w,q){var s=q||[];if(m.call(w)==="[object Array]"){Array.prototype.push.apply(s,w)}else{if(typeof w.length==="number"){for(var r=0,v=w.length;r<v;r++){s.push(w[r])}}else{for(var r=0;w[r];r++){s.push(w[r])}}}return s}}var n;if(document.documentElement.compareDocumentPosition){n=function(r,s){var q=r.compareDocumentPosition(s)&4?-1:r===s?0:1;if(q===0){hasDuplicate=true}return q}}else{if("sourceIndex" in document.documentElement){n=function(r,s){var q=r.sourceIndex-s.sourceIndex;if(q===0){hasDuplicate=true}return q}}else{if(document.createRange){n=function(q,s){var r=q.ownerDocument.createRange(),v=s.ownerDocument.createRange();r.selectNode(q);r.collapse(true);v.selectNode(s);v.collapse(true);var w=r.compareBoundaryPoints(Range.START_TO_END,v);if(w===0){hasDuplicate=true}return w}}}}(function(){var r=document.createElement("form"),q="script"+(new Date).getTime();r.innerHTML="<input name='"+q+"'/>";var s=document.documentElement;s.insertBefore(r,s.firstChild);if(!!document.getElementById(q)){l.find.ID=function(y,x,w){if(typeof x.getElementById!=="undefined"&&!w){var v=x.getElementById(y[1]);return v?v.id===y[1]||typeof v.getAttributeNode!=="undefined"&&v.getAttributeNode("id").nodeValue===y[1]?[v]:ab:[]}};l.filter.ID=function(w,v){var x=typeof w.getAttributeNode!=="undefined"&&w.getAttributeNode("id");return w.nodeType===1&&x&&x.nodeValue===v}}s.removeChild(r)})();(function(){var q=document.createElement("div");q.appendChild(document.createComment(""));if(q.getElementsByTagName("*").length>0){l.find.TAG=function(v,w){var x=w.getElementsByTagName(v[1]);if(v[1]==="*"){var r=[];for(var s=0;x[s];s++){if(x[s].nodeType===1){r.push(x[s])}}x=r}return x}}q.innerHTML="<a href='#'></a>";if(q.firstChild&&typeof q.firstChild.getAttribute!=="undefined"&&q.firstChild.getAttribute("href")!=="#"){l.attrHandle.href=function(r){return r.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var r=o,q=document.createElement("div");q.innerHTML="<p class='TEST'></p>";if(q.querySelectorAll&&q.querySelectorAll(".TEST").length===0){return}o=function(x,y,v,s){y=y||document;if(!s&&y.nodeType===9&&!d(y)){try{return p(y.querySelectorAll(x),v)}catch(w){}}return r(x,y,v,s)};o.find=r.find;o.filter=r.filter;o.selectors=r.selectors;o.matches=r.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var q=document.createElement("div");q.innerHTML="<div class='test e'></div><div class='test'></div>";if(q.getElementsByClassName("e").length===0){return}q.lastChild.className="e";if(q.getElementsByClassName("e").length===1){return}l.order.splice(1,0,"CLASS");l.find.CLASS=function(v,s,r){if(typeof s.getElementsByClassName!=="undefined"&&!r){return s.getElementsByClassName(v[1])}}})()}function e(y,r,s,A,q,B){var C=y=="previousSibling"&&!B;for(var w=0,x=A.length;w<x;w++){var z=A[w];if(z){if(C&&z.nodeType===1){z.sizcache=s;z.sizset=w}z=z[y];var v=false;while(z){if(z.sizcache===s){v=A[z.sizset];break}if(z.nodeType===1&&!B){z.sizcache=s;z.sizset=w}if(z.nodeName===r){v=z;break}z=z[y]}A[w]=v}}}function a(y,r,s,A,q,B){var C=y=="previousSibling"&&!B;for(var w=0,x=A.length;w<x;w++){var z=A[w];if(z){if(C&&z.nodeType===1){z.sizcache=s;z.sizset=w}z=z[y];var v=false;while(z){if(z.sizcache===s){v=A[z.sizset];break}if(z.nodeType===1){if(!B){z.sizcache=s;z.sizset=w}if(typeof r!=="string"){if(z===r){v=true;break}}else{if(o.filter(r,[z]).length>0){v=z;break}}}z=z[y]}A[w]=v}}}var j=document.compareDocumentPosition?function(q,r){return q.compareDocumentPosition(r)&16}:function(q,r){return q!==r&&(q.contains?q.contains(r):true)};var d=function(q){return q.nodeType===9&&q.documentElement.nodeName!=="HTML"||!!q.ownerDocument&&d(q.ownerDocument)};var k=function(v,x){var q=[],z="",y,r=x.nodeType?[x]:x;while((y=l.match.PSEUDO.exec(v))){z+=y[0];v=v.replace(l.match.PSEUDO,"")}v=l.relative[v]?v+"*":v;for(var w=0,s=r.length;w<s;w++){o(v,r[w],q)}return o.filter(z,q)};T.find=o;T.filter=o.filter;T.expr=o.selectors;T.expr[":"]=T.expr.filters;o.selectors.filters.hidden=function(q){return q.offsetWidth===0||q.offsetHeight===0};o.selectors.filters.visible=function(q){return q.offsetWidth>0||q.offsetHeight>0};o.selectors.filters.animated=function(q){return T.grep(T.timers,function(r){return q===r.elem}).length};T.multiFilter=function(q,s,r){if(r){q=":not("+q+")"}return o.matches(q,s)};T.dir=function(r,s){var v=[],q=r[s];while(q&&q!=document){if(q.nodeType==1){v.push(q)}q=q[s]}return v};T.nth=function(w,v,r,q){v=v||1;var s=0;for(;w;w=w[r]){if(w.nodeType==1&&++s==v){break}}return w};T.sibling=function(q,r){var s=[];for(;q;q=q.nextSibling){if(q.nodeType==1&&q!=r){s.push(q)}}return s};return;W.Sizzle=o})();T.event={add:function(d,g,e,a){if(d.nodeType==3||d.nodeType==8){return}if(d.setInterval&&d!=W){d=W}if(!e.guid){e.guid=this.guid++}if(a!==ab){var f=e;e=this.proxy(f);e.data=a}var h=T.data(d,"events")||T.data(d,"events",{}),b=T.data(d,"handle")||T.data(d,"handle",function(){return typeof T!=="undefined"&&!T.event.triggered?T.event.handle.apply(arguments.callee.elem,arguments):ab});b.elem=d;T.each(g.split(/\s+/),function(l,k){var j=k.split(".");k=j.shift();e.type=j.slice().sort().join(".");var i=h[k];if(T.event.specialAll[k]){T.event.specialAll[k].setup.call(d,a,j)}if(!i){i=h[k]={};if(!T.event.special[k]||T.event.special[k].setup.call(d,a,j)===false){if(d.addEventListener){d.addEventListener(k,b,false)}else{if(d.attachEvent){d.attachEvent("on"+k,b)}}}}i[e.guid]=e;T.event.global[k]=true});d=null},guid:1,global:{},remove:function(b,f,d){if(b.nodeType==3||b.nodeType==8){return}var g=T.data(b,"events"),h,i;if(g){if(f===ab||(typeof f==="string"&&f.charAt(0)==".")){for(var e in g){this.remove(b,e+(f||""))}}else{if(f.type){d=f.handler;f=f.type}T.each(f.split(/\s+/),function(n,l){var j=l.split(".");l=j.shift();var m=RegExp("(^|\\.)"+j.slice().sort().join(".*\\.")+"(\\.|$)");if(g[l]){if(d){delete g[l][d.guid]}else{for(var k in g[l]){if(m.test(g[l][k].type)){delete g[l][k]}}}if(T.event.specialAll[l]){T.event.specialAll[l].teardown.call(b,j)}for(h in g[l]){break}if(!h){if(!T.event.special[l]||T.event.special[l].teardown.call(b,j)===false){if(b.removeEventListener){b.removeEventListener(l,T.data(b,"handle"),false)}else{if(b.detachEvent){b.detachEvent("on"+l,T.data(b,"handle"))}}}h=null;delete g[l]}}})}for(h in g){break}if(!h){var a=T.data(b,"handle");if(a){a.elem=null}T.removeData(b,"events");T.removeData(b,"handle")}}},trigger:function(e,b,f,i){var g=e.type||e;if(!i){e=typeof e==="object"?e[aa]?e:T.extend(T.Event(g),e):T.Event(g);if(g.indexOf("!")>=0){e.type=g=g.slice(0,-1);e.exclusive=true}if(!f){e.stopPropagation();if(this.global[g]){T.each(T.cache,function(){if(this.events&&this.events[g]){T.event.trigger(e,b,this.handle.elem)}})}}if(!f||f.nodeType==3||f.nodeType==8){return ab}e.result=ab;e.target=f;b=T.makeArray(b);b.unshift(e)}e.currentTarget=f;var d=T.data(f,"handle");if(d){d.apply(f,b)}if((!f[g]||(T.nodeName(f,"a")&&g=="click"))&&f["on"+g]&&f["on"+g].apply(f,b)===false){e.result=false}if(!i&&f[g]&&!e.isDefaultPrevented()&&!(T.nodeName(f,"a")&&g=="click")){this.triggered=true;try{f[g]()}catch(a){}}this.triggered=false;if(!e.isPropagationStopped()){var h=f.parentNode||f.ownerDocument;if(h){T.event.trigger(e,b,h,true)}}},handle:function(b){var d,i;b=arguments[0]=T.event.fix(b||W.event);b.currentTarget=this;var a=b.type.split(".");b.type=a.shift();d=!a.length&&!b.exclusive;var e=RegExp("(^|\\.)"+a.slice().sort().join(".*\\.")+"(\\.|$)");i=(T.data(this,"events")||{})[b.type];for(var g in i){var f=i[g];if(d||e.test(f.type)){b.handler=f;b.data=f.data;var h=f.apply(this,arguments);if(h!==ab){b.result=h;if(h===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(d){if(d[aa]){return d}var f=d;d=T.Event(f);for(var e=this.props.length,a;e;){a=this.props[--e];d[a]=f[a]}if(!d.target){d.target=d.srcElement||document}if(d.target.nodeType==3){d.target=d.target.parentNode}if(!d.relatedTarget&&d.fromElement){d.relatedTarget=d.fromElement==d.target?d.toElement:d.fromElement}if(d.pageX==null&&d.clientX!=null){var b=document.documentElement,g=document.body;d.pageX=d.clientX+(b&&b.scrollLeft||g&&g.scrollLeft||0)-(b.clientLeft||0);d.pageY=d.clientY+(b&&b.scrollTop||g&&g.scrollTop||0)-(b.clientTop||0)}if(!d.which&&((d.charCode||d.charCode===0)?d.charCode:d.keyCode)){d.which=d.charCode||d.keyCode}if(!d.metaKey&&d.ctrlKey){d.metaKey=d.ctrlKey}if(!d.which&&d.button){d.which=(d.button&1?1:(d.button&2?3:(d.button&4?2:0)))}return d},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 d=0,b=RegExp("(^|\\.)"+a[0]+"(\\.|$)");T.each((T.data(this,"events").live||{}),function(){if(b.test(this.type)){d++}});if(d<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 d=b.relatedTarget;while(d&&d!=this){try{d=d.parentNode}catch(a){d=this}}if(d!=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,d){return b=="unload"?this.one(b,a,d):this.each(function(){T.event.add(this,b,d||a,d&&a)})},one:function(b,a,d){var e=T.event.proxy(d||a,function(f){T(this).unbind(f,e);return(d||a).apply(this,arguments)});return this.each(function(){T.event.add(this,b,e,d&&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(d,a){if(this[0]){var b=T.Event(d);b.preventDefault();b.stopPropagation();T.event.trigger(b,a,this[0]);return b.result}},toggle:function(a){var d=arguments,b=1;while(b<d.length){T.event.proxy(a,d[b++])}return this.click(T.event.proxy(a,function(e){this.lastToggle=(this.lastToggle||0)%b;e.preventDefault();return d[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 d=T.event.proxy(b);d.guid+=this.selector+a;T(document).bind(Z(a,this.selector),this.selector,d);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 e=RegExp("(^|\\.)"+a.type+"(\\.|$)"),b=true,d=[];T.each(T.data(this,"events").live||[],function(h,g){if(e.test(g.type)){var f=T(a.target).closest(g.data)[0];if(f){d.push({elem:f,fn:g})}}});d.sort(function(f,g){return T.data(f.elem,"closest")-T.data(g.elem,"closest")});T.each(d,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(d){return d?this.bind(b,d):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 g=document.documentElement,f=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 e=a.getElementsByTagName("*"),h=a.getElementsByTagName("a")[0];if(!e||!e.length||!h){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(h.getAttribute("style")),hrefNormalized:h.getAttribute("href")==="/a",opacity:h.style.opacity==="0.5",cssFloat:!!h.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};f.type="text/javascript";try{f.appendChild(document.createTextNode("window."+b+"=1;"))}catch(d){}g.insertBefore(f,g.firstChild);if(W[b]){T.support.scriptEval=true;delete W[b]}g.removeChild(f);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 i=document.createElement("div");i.style.width=i.style.paddingLeft="1px";document.body.appendChild(i);T.boxModel=T.support.boxModel=i.offsetWidth===2;document.body.removeChild(i).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(f,b,a){if(typeof f!=="string"){return this._load(f)}var d=f.indexOf(" ");if(d>=0){var h=f.slice(d,f.length);f=f.slice(0,d)}var e="GET";if(b){if(T.isFunction(b)){a=b;b=null}else{if(typeof b==="object"){b=T.param(b);e="POST"}}}var g=this;T.ajax({url:f,type:e,dataType:"html",data:b,complete:function(j,i){if(i=="success"||i=="notmodified"){g.html(h?T("<div/>").append(j.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(h):j.responseText)}if(a){g.each(a,[j.responseText,i,j])}}});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(d,b){var a=T(this).val();return a==null?null:T.isArray(a)?T.map(a,function(e,f){return{name:b.name,value:e}}):{name:b.name,value:a}}).get()}});T.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(b,a){T.fn[a]=function(d){return this.bind(a,d)}});var N=ad();T.extend({get:function(e,b,a,d){if(T.isFunction(b)){a=b;b=null}return T.ajax({type:"GET",url:e,data:b,success:a,dataType:d})},getScript:function(b,a){return T.get(b,null,a,"script")},getJSON:function(d,b,a){return T.get(d,b,a,"json")},post:function(e,b,a,d){if(T.isFunction(b)){a=b;b={}}return T.ajax({type:"POST",url:e,data:b,success:a,dataType:d})},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(l){l=T.extend(true,l,T.extend(true,{},T.ajaxSettings,l));var a,s=/=\?(&|$)/g,g,b,r=l.type.toUpperCase();if(l.data&&l.processData&&typeof l.data!=="string"){l.data=T.param(l.data)}if(l.dataType=="jsonp"){if(r=="GET"){if(!l.url.match(s)){l.url+=(l.url.match(/\?/)?"&":"?")+(l.jsonp||"callback")+"=?"}}else{if(!l.data||!l.data.match(s)){l.data=(l.data?l.data+"&":"")+(l.jsonp||"callback")+"=?"}}l.dataType="json"}if(l.dataType=="json"&&(l.data&&l.data.match(s)||l.url.match(s))){a="jsonp"+N++;if(l.data){l.data=(l.data+"").replace(s,"="+a+"$1")}l.url=l.url.replace(s,"="+a+"$1");l.dataType="script";W[a]=function(x){b=x;p();m();W[a]=ab;try{delete W[a]}catch(w){}if(q){q.removeChild(e)}}}if(l.dataType=="script"&&l.cache==null){l.cache=false}if(l.cache===false&&r=="GET"){var v=ad();var d=l.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+v+"$2");l.url=d+((d==l.url)?(l.url.match(/\?/)?"&":"?")+"_="+v:"")}if(l.data&&r=="GET"){l.url+=(l.url.match(/\?/)?"&":"?")+l.data;l.data=null}if(l.global&&!T.active++){T.event.trigger("ajaxStart")}var h=/^(\w+:)?\/\/([^\/?#]+)/.exec(l.url);if(l.dataType=="script"&&r=="GET"&&h&&(h[1]&&h[1]!=location.protocol||h[2]!=location.host)){var q=document.getElementsByTagName("head")[0];var e=document.createElement("script");e.src=l.url;if(l.scriptCharset){e.charset=l.scriptCharset}if(!a){var j=false;e.onload=e.onreadystatechange=function(){if(!j&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){j=true;p();m();e.onload=e.onreadystatechange=null;q.removeChild(e)}}}q.appendChild(e);return ab}var n=false;var o=l.xhr();if(l.username){o.open(r,l.url,l.async,l.username,l.password)}else{o.open(r,l.url,l.async)}try{if(l.data){o.setRequestHeader("Content-Type",l.contentType)}if(l.ifModified){o.setRequestHeader("If-Modified-Since",T.lastModified[l.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}o.setRequestHeader("X-Requested-With","XMLHttpRequest");o.setRequestHeader("Accept",l.dataType&&l.accepts[l.dataType]?l.accepts[l.dataType]+", */*":l.accepts._default)}catch(f){}if(l.beforeSend&&l.beforeSend(o,l)===false){if(l.global&&!--T.active){T.event.trigger("ajaxStop")}o.abort();return false}if(l.global){T.event.trigger("ajaxSend",[o,l])}var k=function(y){if(o.readyState==0){if(i){clearInterval(i);i=null;if(l.global&&!--T.active){T.event.trigger("ajaxStop")}}}else{if(!n&&o&&(o.readyState==4||y=="timeout")){n=true;if(i){clearInterval(i);i=null}g=y=="timeout"?"timeout":!T.httpSuccess(o)?"error":l.ifModified&&T.httpNotModified(o,l.url)?"notmodified":"success";if(g=="success"){try{b=T.httpData(o,l.dataType,l)}catch(w){g="parsererror"}}if(g=="success"){var x;try{x=o.getResponseHeader("Last-Modified")}catch(w){}if(l.ifModified&&x){T.lastModified[l.url]=x}if(!a){p()}}else{T.handleError(l,o,g)}m();if(y){o.abort()}if(l.async){o=null}}}};if(l.async){var i=setInterval(k,13);if(l.timeout>0){setTimeout(function(){if(o&&!n){k("timeout")}},l.timeout)}}try{o.send(l.data)}catch(f){T.handleError(l,o,null,f)}if(!l.async){k()}function p(){if(l.success){l.success(b,g)}if(l.global){T.event.trigger("ajaxSuccess",[o,l])}}function m(){if(l.complete){l.complete(o,g)}if(l.global){T.event.trigger("ajaxComplete",[o,l])}if(l.global&&!--T.active){T.event.trigger("ajaxStop")}}return o},handleError:function(d,a,e,b){if(d.error){d.error(a,e,b)}if(d.global){T.event.trigger("ajaxError",[a,d,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,e){try{var a=b.getResponseHeader("Last-Modified");return b.status==304||a==T.lastModified[e]}catch(d){}return false},httpData:function(a,d,e){var f=a.getResponseHeader("content-type"),g=d=="xml"||!d&&f&&f.indexOf("xml")>=0,b=g?a.responseXML:a.responseText;if(g&&b.documentElement.tagName=="parsererror"){throw"parsererror"}if(e&&e.dataFilter){b=e.dataFilter(b,d)}if(typeof b==="string"){if(d=="script"){T.globalEval(b)}if(d=="json"){b=W["eval"]("("+b+")")}}return b},param:function(e){var b=[];function a(g,f){b[b.length]=encodeURIComponent(g)+"="+encodeURIComponent(f)}if(T.isArray(e)||e.jquery){T.each(e,function(){a(this.name,this.value)})}else{for(var d in e){if(T.isArray(e[d])){T.each(e[d],function(){a(d,this)})}else{a(d,T.isFunction(e[d])?e[d]():e[d])}}}return b.join("&").replace(/%20/g,"+")}});var V={},U,ae=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function K(b,d){var a={};T.each(ae.concat.apply([],ae.slice(0,d)),function(){a[this]=b});return a}T.fn.extend({show:function(d,a){if(d){return this.animate(K("show",3),d,a)}else{for(var f=0,h=this.length;f<h;f++){var i=T.data(this[f],"olddisplay");this[f].style.display=i||"";if(T.css(this[f],"display")==="none"){var g=this[f].tagName,b;if(V[g]){b=V[g]}else{var e=T("<"+g+" />").appendTo("body");b=e.css("display");if(b==="none"){b="block"}e.remove();V[g]=b}T.data(this[f],"olddisplay",b)}}for(var f=0,h=this.length;f<h;f++){this[f].style.display=T.data(this[f],"olddisplay")||""}return this}},hide:function(b,a){if(b){return this.animate(K("hide",3),b,a)}else{for(var d=0,e=this.length;d<e;d++){var f=T.data(this[d],"olddisplay");if(!f&&f!=="none"){T.data(this[d],"olddisplay",T.css(this[d],"display"))}}for(var d=0,e=this.length;d<e;d++){this[d].style.display="none"}return this}},_toggle:T.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";return T.isFunction(a)&&T.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var e=d?a:T(this).is(":hidden");T(this)[e?"show":"hide"]()}):this.animate(K("toggle",3),a,b)},fadeTo:function(d,a,b){return this.animate({opacity:a},d,b)},animate:function(a,e,b,d){var f=T.speed(e,b,d);return this[f.queue===false?"each":"queue"](function(){var h=T.extend({},f),j,g=this.nodeType==1&&T(this).is(":hidden"),i=this;for(j in a){if(a[j]=="hide"&&g||a[j]=="show"&&!g){return h.complete.call(this)}if((j=="height"||j=="width")&&this.style){h.display=T.css(this,"display");h.overflow=this.style.overflow}}if(h.overflow!=null){this.style.overflow="hidden"}h.curAnim=T.extend({},a);T.each(a,function(p,l){var m=new T.fx(i,h,p);if(/toggle|show|hide/.test(l)){m[l=="toggle"?g?"show":"hide":l](a)}else{var n=l.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),k=m.cur(true)||0;if(n){var q=parseFloat(n[2]),o=n[3]||"px";if(o!="px"){i.style[p]=(q||1)+o;k=((q||1)/m.cur(true))*k;i.style[p]=k+o}if(n[1]){q=((n[1]=="-="?-1:1)*q)+k}m.custom(k,q,o)}else{m.custom(k,l,"")}}});return true})},stop:function(b,d){var a=T.timers;if(b){this.queue([])}this.each(function(){for(var e=a.length-1;e>=0;e--){if(a[e].elem==this){if(d){a[e](true)}a.splice(e,1)}}});if(!d){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(e,d){return this.animate(a,e,d)}});T.extend({speed:function(b,a,d){var e=typeof b==="object"?b:{complete:d||!d&&a||T.isFunction(b)&&b,duration:b,easing:d&&a||a&&!T.isFunction(a)&&a};e.duration=T.fx.off?0:typeof e.duration==="number"?e.duration:T.fx.speeds[e.duration]||T.fx.speeds._default;e.old=e.complete;e.complete=function(){if(e.queue!==false){T(this).dequeue()}if(T.isFunction(e.old)){e.old.call(this)}};return e},easing:{linear:function(b,a,e,d){return e+d*b},swing:function(b,a,e,d){return((-Math.cos(b*Math.PI)/2)+0.5)*d+e}},timers:[],fx:function(b,d,a){this.options=d;this.elem=b;this.prop=a;if(!d.orig){d.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,d){this.startTime=ad();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;var f=this;function e(g){return f.step(g)}e.elem=this.elem;if(e()&&T.timers.push(e)&&!U){U=setInterval(function(){var g=T.timers;for(var h=0;h<g.length;h++){if(!g[h]()){g.splice(h--,1)}}if(!g.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(d){var e=ad();if(d||e>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var g=true;for(var f in this.options.curAnim){if(this.options.curAnim[f]!==true){g=false}}if(g){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=e-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 g=this[0].getBoundingClientRect(),d=this[0].ownerDocument,h=d.body,i=d.documentElement,a=i.clientTop||h.clientTop||0,b=i.clientLeft||h.clientLeft||0,e=g.top+(self.pageYOffset||T.boxModel&&i.scrollTop||h.scrollTop)-a,f=g.left+(self.pageXOffset||T.boxModel&&i.scrollLeft||h.scrollLeft)-b;return{top:e,left:f}}}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 g=this[0],j=g.offsetParent,k=g,a=g.ownerDocument,d,i=a.documentElement,f=a.body,e=a.defaultView,l=e.getComputedStyle(g,null),b=g.offsetTop,h=g.offsetLeft;while((g=g.parentNode)&&g!==f&&g!==i){d=e.getComputedStyle(g,null);b-=g.scrollTop,h-=g.scrollLeft;if(g===j){b+=g.offsetTop,h+=g.offsetLeft;if(T.offset.doesNotAddBorder&&!(T.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(g.tagName))){b+=parseInt(d.borderTopWidth,10)||0,h+=parseInt(d.borderLeftWidth,10)||0}k=j,j=g.offsetParent}if(T.offset.subtractsBorderForOverflowNotVisible&&d.overflow!=="visible"){b+=parseInt(d.borderTopWidth,10)||0,h+=parseInt(d.borderLeftWidth,10)||0}l=d}if(l.position==="relative"||l.position==="static"){b+=f.offsetTop,h+=f.offsetLeft}if(l.position==="fixed"){b+=Math.max(i.scrollTop,f.scrollTop),h+=Math.max(i.scrollLeft,f.scrollLeft)}return{top:b,left:h}}}T.offset={initialize:function(){if(this.initialized){return}var d=document.body,j=document.createElement("div"),h,i,a,g,b,k,f=d.style.marginTop,e='<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(k in b){j.style[k]=b[k]}j.innerHTML=e;d.insertBefore(j,d.firstChild);h=j.firstChild,i=h.firstChild,g=h.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(i.offsetTop!==5);this.doesAddBorderForTableAndCells=(g.offsetTop===5);h.style.overflow="hidden",h.style.position="relative";this.subtractsBorderForOverflowNotVisible=(i.offsetTop===-5);d.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(d.offsetTop===0);d.style.marginTop=f;d.removeChild(j);this.initialized=true},bodyOffset:function(d){T.offset.initialized||T.offset.initialize();var a=d.offsetTop,b=d.offsetLeft;if(T.offset.doesNotIncludeMarginInBodyOffset){a+=parseInt(T.curCSS(d,"marginTop",true),10)||0,b+=parseInt(T.curCSS(d,"marginLeft",true),10)||0}return{top:a,left:b}}};T.fn.extend({position:function(){var b=0,d=0,f;if(this[0]){var e=this.offsetParent(),a=this.offset(),g=/^body|html$/i.test(e[0].tagName)?{top:0,left:0}:e.offset();a.top-=Y(this,"marginTop");a.left-=Y(this,"marginLeft");g.top+=Y(e,"borderTopWidth");g.left+=Y(e,"borderLeftWidth");f={top:a.top-g.top,left:a.left-g.left}}return f},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,d){var a="scroll"+d;T.fn[a]=function(e){if(!this[0]){return null}return e!==ab?this.each(function(){this==W||this==document?W.scrollTo(!b?e:T(W).scrollLeft(),b?e:T(W).scrollTop()):this[a]=e}):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,e){var g=b?"Left":"Top",d=b?"Right":"Bottom",f=e.toLowerCase();T.fn["inner"+e]=function(){return this[0]?T.css(this[0],f,false,"padding"):null};T.fn["outer"+e]=function(h){return this[0]?T.css(this[0],f,false,h?"margin":"border"):null};var a=e.toLowerCase();T.fn[a]=function(h){return this[0]==W?document.compatMode=="CSS1Compat"&&document.documentElement["client"+e]||document.body["client"+e]:this[0]==document?Math.max(document.documentElement["client"+e],document.body["scroll"+e],document.documentElement["scroll"+e],document.body["offset"+e],document.documentElement["offset"+e]):h===ab?(this.length?T.css(this[0],a):null):this.css(a,typeof h==="string"?h:h+"px")}})})();(function(a){a.fn.extend({autocomplete:function(b,d){var e=typeof b=="string";d=a.extend({},a.Autocompleter.defaults,{url:e?b:null,data:e?null:b,delay:e?a.Autocompleter.defaults.delay:10,max:d&&!d.scroll?10:150},d);d.highlight=d.highlight||function(f){return f};d.formatMatch=d.formatMatch||d.formatItem;return this.each(function(){new a.Autocompleter(this,d)})},result:function(b){return this.bind("result",b)},search:function(b){return this.trigger("search",[b])},flushCache:function(){return this.trigger("flushCache")},setOptions:function(b){return this.trigger("setOptions",[b])},unautocomplete:function(){return this.trigger("unautocomplete")}});a.Autocompleter=function(m,h){var d={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8};var b=a(m).attr("autocomplete","off").addClass(h.inputClass);var k;var q="";var n=a.Autocompleter.Cache(h);var f=0;var x;var A={mouseDownOnSelect:false};var s=a.Autocompleter.Select(h,m,e,A);var z;a.browser.opera&&a(m.form).bind("submit.autocomplete",function(){if(z){z=false;return false}});b.bind((a.browser.opera?"keypress":"keydown")+".autocomplete",function(B){f=1;x=B.keyCode;switch(B.keyCode){case d.UP:B.preventDefault();if(s.visible()){s.prev()}else{w(0,true)}break;case d.DOWN:B.preventDefault();if(s.visible()){s.next()}else{w(0,true)}break;case d.PAGEUP:B.preventDefault();if(s.visible()){s.pageUp()}else{w(0,true)}break;case d.PAGEDOWN:B.preventDefault();if(s.visible()){s.pageDown()}else{w(0,true)}break;case h.multiple&&a.trim(h.multipleSeparator)==","&&d.COMMA:case d.TAB:case d.RETURN:if(e()){B.preventDefault();z=true;return false}break;case d.ESC:s.hide();break;default:clearTimeout(k);k=setTimeout(w,h.delay);break}}).focus(function(){f++}).blur(function(){f=0;if(!A.mouseDownOnSelect){v()}}).click(function(){if(f++>1&&!s.visible()){w(0,true)}}).bind("search",function(){var B=(arguments.length>1)?arguments[1]:null;function C(G,F){var D;if(F&&F.length){for(var E=0;E<F.length;E++){if(F[E].result.toLowerCase()==G.toLowerCase()){D=F[E];break}}}if(typeof B=="function"){B(D)}else{b.trigger("result",D&&[D.data,D.value])}}a.each(i(b.val()),function(D,E){g(E,C,C)})}).bind("flushCache",function(){n.flush()}).bind("setOptions",function(){a.extend(h,arguments[1]);if("data" in arguments[1]){n.populate()}}).bind("unautocomplete",function(){s.unbind();b.unbind();a(m.form).unbind(".autocomplete")});function e(){var E=s.selected();if(!E){return false}var B=E.result;q=B;if(h.multiple){var H=i(b.val());if(H.length>1){var D=h.multipleSeparator.length;var G=a(m).selection().start;var F,C=0;a.each(H,function(I,J){C+=J.length;if(G<=C){F=I;return false}C+=D});H[F]=B;B=H.join(h.multipleSeparator)}B+=h.multipleSeparator}b.val(B);y();b.trigger("result",[E.data,E.value]);return true}function w(D,C){if(x==d.DEL){s.hide();return}var B=b.val();if(!C&&B==q){return}q=B;B=j(B);if(B.length>=h.minChars){b.addClass(h.loadingClass);if(!h.matchCase){B=B.toLowerCase()}g(B,l,y)}else{o();s.hide()}}function i(B){if(!B){return[""]}if(!h.multiple){return[a.trim(B)]}return a.map(B.split(h.multipleSeparator),function(C){return a.trim(B).length?a.trim(C):null})}function j(B){if(!h.multiple){return B}var D=i(B);if(D.length==1){return D[0]}var C=a(m).selection().start;if(C==B.length){D=i(B)}else{D=i(B.replace(B.substring(C),""))}return D[D.length-1]}function r(B,C){if(h.autoFill&&(j(b.val()).toLowerCase()==B.toLowerCase())&&x!=d.BACKSPACE){b.val(b.val()+C.substring(j(q).length));a(m).selection(q.length,q.length+C.length)}}function v(){clearTimeout(k);k=setTimeout(y,200)}function y(){var B=s.visible();s.hide();clearTimeout(k);o();if(h.mustMatch){b.search(function(C){if(!C){if(h.multiple){var D=i(b.val()).slice(0,-1);b.val(D.join(h.multipleSeparator)+(D.length?h.multipleSeparator:""))}else{b.val("");b.trigger("result",null)}}})}}function l(C,B){if(B&&B.length&&f){o();s.display(B,C);r(C,B[0].value);s.show()}else{y()}}function g(C,E,B){if(!h.matchCase){C=C.toLowerCase()}var D=n.load(C);if(D&&D.length){E(C,D)}else{if((typeof h.url=="string")&&(h.url.length>0)){var F={timestamp:+new Date()};a.each(h.extraParams,function(G,H){F[G]=typeof H=="function"?H():H});a.ajax({mode:"abort",port:"autocomplete"+m.name,dataType:h.dataType,url:h.url,data:a.extend({q:j(C),limit:h.max},F),success:function(H){var G=h.parse&&h.parse(H)||p(H);n.add(C,G);E(C,G)}})}else{s.emptyList();B(C)}}}function p(E){var B=[];var D=E.split("\n");for(var C=0;C<D.length;C++){var F=a.trim(D[C]);if(F){F=F.split("|");B[B.length]={data:F,value:F[0],result:h.formatResult&&h.formatResult(F,F[0])||F[0]}}}return B}function o(){b.removeClass(h.loadingClass)}};a.Autocompleter.defaults={inputClass:"ac_input",resultsClass:"ac_results",loadingClass:"ac_loading",minChars:1,delay:400,matchCase:false,matchSubset:true,matchContains:false,cacheLength:10,max:100,mustMatch:false,extraParams:{},selectFirst:true,formatItem:function(b){return b[0]},formatMatch:null,autoFill:false,width:0,multiple:false,multipleSeparator:", ",highlight:function(d,b){return d.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+b.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>")},scroll:true,scrollHeight:180};a.Autocompleter.Cache=function(d){var g={};var e=0;function i(l,k){if(!d.matchCase){l=l.toLowerCase()}var j=l.indexOf(k);if(d.matchContains=="word"){j=l.toLowerCase().search("\\b"+k.toLowerCase())}if(j==-1){return false}return j==0||d.matchContains}function h(k,j){if(e>d.cacheLength){b()}if(!g[k]){e++}g[k]=j}function f(){if(!d.data){return false}var k={},j=0;if(!d.url){d.cacheLength=1}k[""]=[];for(var m=0,l=d.data.length;m<l;m++){var p=d.data[m];p=(typeof p=="string")?[p]:p;var o=d.formatMatch(p,m+1,d.data.length);if(o===false){continue}var n=o.charAt(0).toLowerCase();if(!k[n]){k[n]=[]}var q={value:o,data:p,result:d.formatResult&&d.formatResult(p)||o};k[n].push(q);if(j++<d.max){k[""].push(q)}}a.each(k,function(r,s){d.cacheLength++;h(r,s)})}setTimeout(f,25);function b(){g={};e=0}return{flush:b,add:h,populate:f,load:function(n){if(!d.cacheLength||!e){return null}if(!d.url&&d.matchContains){var m=[];for(var j in g){if(j.length>0){var o=g[j];a.each(o,function(p,k){if(i(k.value,n)){m.push(k)}})}}return m}else{if(g[n]){return g[n]}else{if(d.matchSubset){for(var l=n.length-1;l>=d.minChars;l--){var o=g[n.substr(0,l)];if(o){var m=[];a.each(o,function(p,k){if(i(k.value,n)){m[m.length]=k}});return m}}}}}return null}}};a.Autocompleter.Select=function(f,k,m,q){var j={ACTIVE:"ac_over"};var l,g=-1,s,n="",v=true,d,p;function o(){if(!v){return}d=a("<div/>").hide().addClass(f.resultsClass).css("position","absolute").appendTo(document.body);p=a("<ul/>").appendTo(d).mouseover(function(w){if(r(w).nodeName&&r(w).nodeName.toUpperCase()=="LI"){g=a("li",p).removeClass(j.ACTIVE).index(r(w));a(r(w)).addClass(j.ACTIVE)}}).click(function(w){a(r(w)).addClass(j.ACTIVE);m();k.focus();return false}).mousedown(function(){q.mouseDownOnSelect=true}).mouseup(function(){q.mouseDownOnSelect=false});if(f.width>0){d.css("width",f.width)}v=false}function r(x){var w=x.target;while(w&&w.tagName!="LI"){w=w.parentNode}if(!w){return[]}return w}function i(w){l.slice(g,g+1).removeClass(j.ACTIVE);h(w);var y=l.slice(g,g+1).addClass(j.ACTIVE);if(f.scroll){var x=0;l.slice(0,g).each(function(){x+=this.offsetHeight});if((x+y[0].offsetHeight-p.scrollTop())>p[0].clientHeight){p.scrollTop(x+y[0].offsetHeight-p.innerHeight())}else{if(x<p.scrollTop()){p.scrollTop(x)}}}}function h(w){g+=w;if(g<0){g=l.size()-1}else{if(g>=l.size()){g=0}}}function b(w){return f.max&&f.max<w?f.max:w}function e(){p.empty();var x=b(s.length);for(var y=0;y<x;y++){if(!s[y]){continue}var z=f.formatItem(s[y].data,y+1,x,s[y].value,n);if(z===false){continue}var w=a("<li/>").html(f.highlight(z,n)).addClass(y%2==0?"ac_even":"ac_odd").appendTo(p)[0];a.data(w,"ac_data",s[y])}l=p.find("li");if(f.selectFirst){l.slice(0,1).addClass(j.ACTIVE);g=0}if(a.fn.bgiframe){p.bgiframe()}}return{display:function(x,w){o();s=x;n=w;e()},next:function(){i(1)},prev:function(){i(-1)},pageUp:function(){if(g!=0&&g-8<0){i(-g)}else{i(-8)}},pageDown:function(){if(g!=l.size()-1&&g+8>l.size()){i(l.size()-1-g)}else{i(8)}},hide:function(){d&&d.hide();l&&l.removeClass(j.ACTIVE);g=-1},visible:function(){return d&&d.is(":visible")},current:function(){return this.visible()&&(l.filter("."+j.ACTIVE)[0]||f.selectFirst&&l[0])},show:function(){var y=a(k).offset();d.css({width:typeof f.width=="string"||f.width>0?f.width:a(k).width(),top:y.top+k.offsetHeight,left:y.left}).show();if(f.scroll){p.scrollTop(0);p.css({maxHeight:f.scrollHeight,overflow:"auto"});if(a.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var w=0;l.each(function(){w+=this.offsetHeight});var x=w>f.scrollHeight;p.css("height",x?f.scrollHeight:w);if(!x){l.width(p.width()-parseInt(l.css("padding-left"))-parseInt(l.css("padding-right")))}}}},selected:function(){var w=l&&l.filter("."+j.ACTIVE).removeClass(j.ACTIVE);return w&&w.length&&a.data(w[0],"ac_data")},emptyList:function(){p&&p.empty()},unbind:function(){d&&d.remove()}}};a.fn.selection=function(j,b){if(j!==undefined){return this.each(function(){if(this.createTextRange){var k=this.createTextRange();if(b===undefined||j==b){k.move("character",j);k.select()}else{k.collapse(true);k.moveStart("character",j);k.moveEnd("character",b);k.select()}}else{if(this.setSelectionRange){this.setSelectionRange(j,b)}else{if(this.selectionStart){this.selectionStart=j;this.selectionEnd=b}}}})}var h=this[0];if(h.createTextRange){var d=document.selection.createRange(),i=h.value,g="<->",e=d.text.length;d.text=g;var f=h.value.indexOf(g);h.value=i;this.selection(f,f+e);return{start:f,end:f+e}}else{if(h.selectionStart!==undefined){return{start:h.selectionStart,end:h.selectionEnd}}}}})(jQuery);
/*
 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
 *
 * Uses the built in easing capabilities added In jQuery 1.1
 * to offer multiple easing options
 *
 * TERMS OF USE - jQuery Easing
 * 
 * Open source under the BSD License. 
 * 
 * Copyright Â© 2008 George McGinley Smith
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification, 
 * are permitted provided that the following conditions are met:
 * 
 * Redistributions of source code must retain the above copyright notice, this list of 
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list 
 * of conditions and the following disclaimer in the documentation and/or other materials 
 * provided with the distribution.
 * 
 * Neither the name of the author nor the names of contributors may be used to endorse 
 * or promote products derived from this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
 * OF THE POSSIBILITY OF SUCH DAMAGE. 
 *
*/
jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},easeOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},easeInOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},easeInBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});
/*
 *
 * TERMS OF USE - EASING EQUATIONS
 * 
 * Open source under the BSD License. 
 * 
 * Copyright Â© 2001 Robert Penner
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification, 
 * are permitted provided that the following conditions are met:
 * 
 * Redistributions of source code must retain the above copyright notice, this list of 
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list 
 * of conditions and the following disclaimer in the documentation and/or other materials 
 * provided with the distribution.
 * 
 * Neither the name of the author nor the names of contributors may be used to endorse 
 * or promote products derived from this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
 * OF THE POSSIBILITY OF SUCH DAMAGE. 
 *
 */
/* Copyright (c) 2006 Kelvin Luck (kelvin AT kelvinluck DOT com || http://www.kelvinluck.com)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 * 
 * See http://kelvinluck.com/assets/jquery/jScrollPane/
 * $Id: jScrollPane.js 56 2009-02-23 03:50:43Z kelvin.luck $
 */
(function(a){a.jScrollPane={active:[]};a.fn.jScrollPane=function(d){d=a.extend({},a.fn.jScrollPane.defaults,d);var b=function(){return false};return this.each(function(){var w=a(this);w.css("overflow","hidden");var H=this;if(a(this).parent().is(".jScrollPaneContainer")){var ao=d.maintainPosition?w.position().top:0;var r=a(this).parent();var O=r.innerWidth();var ap=r.outerHeight();var s=ap-20;a(">.jScrollPaneTrack, >.jScrollArrowUp, >.jScrollArrowDown",r).remove();w.css({top:0})}else{var ao=0;this.originalPadding=w.css("paddingTop")+" "+w.css("paddingRight")+" "+w.css("paddingBottom")+" "+w.css("paddingLeft");this.originalSidePaddingTotal=(parseInt(w.css("paddingLeft"))||0)+(parseInt(w.css("paddingRight"))||0);var O=w.innerWidth();var ap=w.innerHeight();var s=ap-20;w.wrap(a("<div></div>").attr({className:"jScrollPaneContainer"}).css({height:ap+"px",width:O+"px"}).attr("tabindex",d.tabIndex));a(document).bind("emchange",function(aq,ar,p){w.jScrollPane(d)})}if(d.reinitialiseOnImageLoad){var v=a.data(H,"jScrollPaneImagesToLoad")||a("img",w);var j=[];if(v.length){v.each(function(p,aq){a(this).bind("load readystatechange",function(){if(a.inArray(p,j)==-1){j.push(aq);v=a.grep(v,function(au,at){return au!=aq});a.data(H,"jScrollPaneImagesToLoad",v);var ar=a.extend(d,{reinitialiseOnImageLoad:false});w.jScrollPane(ar)}}).each(function(ar,at){if(this.complete||this.complete===undefined){this.src=this.src}})})}}var aa=this.originalSidePaddingTotal;var ak=O-d.scrollbarWidth-d.scrollbarMargin-aa;var X={height:"auto",width:ak+"px"};if(d.scrollbarOnLeft){X.paddingLeft=d.scrollbarMargin+d.scrollbarWidth+"px"}else{X.paddingRight=d.scrollbarMargin+"px"}w.css(X);var Y=w.outerHeight();var U=ap/Y;if(U<0.99){var k=w.parent();k.append(a("<div></div>").attr({className:"jScrollPaneTrack"}).css({width:d.scrollbarWidth+"px"}).append(a("<div></div>").attr({className:"jScrollPaneDrag"}).css({width:d.scrollbarWidth+"px"}).append(a("<div></div>").attr({className:"jScrollPaneDragTop"}).css({width:d.scrollbarWidth+"px"}),a("<div></div>").attr({className:"jScrollPaneDragBottom"}).css({width:d.scrollbarWidth+"px"})),a("<div></div>").attr({className:"jScrollPaneTrackBottom"}).css({width:d.scrollbarWidth+"px"})));var al=a(">.jScrollPaneTrack",k);var x=a(">.jScrollPaneTrack .jScrollPaneDrag",k);var an;var h=[];var ac;var V=function(){if(ac>4||ac%4==0){aj(ag+an*L)}ac++};if(d.enableKeyboardNavigation){k.bind("keydown.jscrollpane",function(p){switch(p.keyCode){case 38:an=-1;ac=0;V();h[h.length]=setInterval(V,100);return false;case 40:an=1;ac=0;V();h[h.length]=setInterval(V,100);return false;case 32:case 33:case 34:return false;default:console.log(p.keyCode)}}).bind("keyup.jscrollpane",function(aq){if(aq.keyCode==38||aq.keyCode==40){for(var p=0;p<h.length;p++){clearInterval(h[p])}return false}})}if(d.showArrows){var S;var B;var q=function(p){a("html").unbind("mouseup",q);S.removeClass("jScrollActiveArrowButton");clearInterval(B)};var J=function(){a("html").bind("mouseup",q);S.addClass("jScrollActiveArrowButton");ac=0;V();B=setInterval(V,100)};k.append(a("<a></a>").attr({href:"javascript:;",className:"jScrollArrowUp",tabindex:-1}).css({width:d.scrollbarWidth+"px"}).html("Scroll up").bind("mousedown",function(){S=a(this);an=-1;J();this.blur();return false}).bind("click",b),a("<a></a>").attr({href:"javascript:;",className:"jScrollArrowDown",tabindex:-1}).css({width:d.scrollbarWidth+"px"}).html("Scroll down").bind("mousedown",function(){S=a(this);an=1;J();this.blur();return false}).bind("click",b));var y=a(">.jScrollArrowUp",k);var n=a(">.jScrollArrowDown",k);if(d.arrowSize){s=ap-d.arrowSize-d.arrowSize;al.css({height:s+"px",top:d.arrowSize+"px"})}else{var ad=y.height();d.arrowSize=ad;s=ap-ad-n.height();al.css({height:s+"px",top:ad+"px"})}}var ah=a(this).css({position:"absolute",overflow:"visible"});var e;var I;var L;var ag=0;var F=U*ap/2;var K=function(aq,at){var ar=at=="X"?"Left":"Top";return aq["page"+at]||(aq["client"+at]+(document.documentElement["scroll"+ar]||document.body["scroll"+ar]))||0};var R=function(){return false};var af=function(){Z();e=x.offset(false);e.top-=ag;I=s-x[0].offsetHeight;L=2*d.wheelSpeed*I/Y};var f=function(p){af();F=K(p,"Y")-ag-e.top;a("html").bind("mouseup",C).bind("mousemove",T);if(a.browser.msie){a("html").bind("dragstart",R).bind("selectstart",R)}return false};var C=function(){a("html").unbind("mouseup",C).unbind("mousemove",T);F=U*ap/2;if(a.browser.msie){a("html").unbind("dragstart",R).unbind("selectstart",R)}};var aj=function(aq){aq=aq<0?0:(aq>I?I:aq);ag=aq;x.css({top:aq+"px"});var ar=aq/I;w.data("jScrollPanePosition",(ap-Y)*-ar);ah.css({top:((ap-Y)*ar)+"px"});w.trigger("scroll");if(d.showArrows){y[aq==0?"addClass":"removeClass"]("disabled");n[aq==I?"addClass":"removeClass"]("disabled")}};var T=function(p){aj(K(p,"Y")-e.top-F)};var ab=Math.max(Math.min(U*(ap-d.arrowSize*2),d.dragMaxHeight),d.dragMinHeight);x.css({height:ab+"px"}).bind("mousedown",f);var W;var z;var m;var ae=function(){if(z>8||z%4==0){aj((ag-((ag-m)/2)))}z++};var am=function(){clearInterval(W);a("html").unbind("mouseup",am).unbind("mousemove",Q)};var Q=function(p){m=K(p,"Y")-e.top-F};var D=function(p){af();Q(p);z=0;a("html").bind("mouseup",am).bind("mousemove",Q);W=setInterval(ae,100);ae();return false};al.bind("mousedown",D);k.bind("mousewheel",function(aq,at){af();Z();var ar=ag;aj(ag-at*L);var p=ar!=ag;return !p});var g;var G;function M(){var p=(g-ag)/d.animateStep;if(p>1||p<-1){aj(ag+p)}else{aj(g);Z()}}var Z=function(){if(G){clearInterval(G);delete g}};var ai=function(at,p){if(typeof at=="string"){$e=a(at,w);if(!$e.length){return}at=$e.offset().top-w.offset().top}k.scrollTop(0);Z();var ar=Y-ap;at=at>ar?ar:at;w.data("jScrollPaneMaxScroll",ar);var aq=at/ar*I;if(p||!d.animateTo){aj(aq)}else{g=aq;G=setInterval(M,d.animateInterval)}};w[0].scrollTo=ai;w[0].scrollBy=function(aq){var p=-parseInt(ah.css("top"))||0;ai(p+aq)};af();ai(-ao,true);a("*",this).bind("focus",function(au){var at=a(this);var aw=0;while(at[0]!=w[0]){aw+=at.position().top;at=at.offsetParent()}var p=-parseInt(ah.css("top"))||0;var av=p+ap;var ar=aw>p&&aw<av;if(!ar){var aq=aw-d.scrollbarMargin;if(aw>p){aq+=a(this).height()+15+d.scrollbarMargin-ap}ai(aq)}});if(location.hash){setTimeout(function(){ai(location.hash)},a.browser.safari?100:0)}a(document).bind("click",function(aq){$target=a(aq.target);if($target.is("a")){var p=$target.attr("href");if(p&&p.substr(0,1)=="#"){setTimeout(function(){ai(p,!d.animateToInternalLinks)},a.browser.safari?100:0)}}});function E(p){a(document).bind("mousemove.jScrollPaneDragging",A);a(document).bind("mouseup.jScrollPaneDragging",o)}var P;var i;function N(){direction=P<0?-1:1;w[0].scrollBy(P/2)}function l(){if(i){clearInterval(i);i=undefined}}function A(ar){var at=w.parent().offset().top;var p=at+ap;var aq=K(ar,"Y");P=aq<at?aq-at:(aq>p?aq-p:0);if(P==0){l()}else{if(!i){i=setInterval(N,100)}}}function o(p){a(document).unbind("mousemove.jScrollPaneDragging").unbind("mouseup.jScrollPaneDragging");l()}k.bind("mousedown.jScrollPane",E);a.jScrollPane.active.push(w[0])}else{w.css({height:ap+"px",width:O-this.originalSidePaddingTotal+"px",padding:this.originalPadding});w.parent().unbind("mousewheel").unbind("mousedown.jScrollPane").unbind("keydown.jscrollpane").unbind("keyup.jscrollpane")}})};a.fn.jScrollPaneRemove=function(){a(this).each(function(){$this=a(this);var b=$this.parent();if(b.is(".jScrollPaneContainer")){$this.css({top:"",height:"",width:"",padding:"",overflow:"",position:""});b.after($this).remove()}})};a.fn.jScrollPane.defaults={scrollbarWidth:10,scrollbarMargin:5,wheelSpeed:18,showArrows:false,arrowSize:0,animateTo:false,dragMinHeight:1,dragMaxHeight:99999,animateInterval:100,animateStep:3,maintainPosition:true,scrollbarOnLeft:false,reinitialiseOnImageLoad:false,tabIndex:0,enableKeyboardNavigation:true,animateToInternalLinks:false};a(window).bind("unload",function(){var d=a.jScrollPane.active;for(var b=0;b<d.length;b++){d[b].scrollTo=d[b].scrollBy=null}})})(jQuery);
/* Copyright (c) 2009 Brandon Aaron (http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 *
 * Version: 1.1.0-pre
 * Requires jQuery 1.3+
 * Docs: http://docs.jquery.com/Plugins/livequery
 */
(function(a){a.extend(a.fn,{livequery:function(f,e,d){var b=this,g;if(a.isFunction(f)){d=e,e=f,f=undefined}a.each(a.livequery.queries,function(h,j){if(b.selector==j.selector&&b.context==j.context&&f==j.type&&(!e||e.$lqguid==j.fn.$lqguid)&&(!d||d.$lqguid==j.fn2.$lqguid)){return(g=j)&&false}});g=g||new a.livequery(this.selector,this.context,f,e,d);g.stopped=false;g.run();return this},expire:function(f,e,d){var b=this;if(a.isFunction(f)){d=e,e=f,f=undefined}a.each(a.livequery.queries,function(g,h){if(b.selector==h.selector&&b.context==h.context&&(!f||f==h.type)&&(!e||e.$lqguid==h.fn.$lqguid)&&(!d||d.$lqguid==h.fn2.$lqguid)&&!this.stopped){a.livequery.stop(h.id)}});return this}});a.livequery=function(b,e,g,f,d){this.selector=b;this.context=e;this.type=g;this.fn=f;this.fn2=d;this.elements=[];this.stopped=false;this.id=a.livequery.queries.push(this)-1;f.$lqguid=f.$lqguid||a.livequery.guid++;if(d){d.$lqguid=d.$lqguid||a.livequery.guid++}return this};a.livequery.prototype={stop:function(){var b=this;if(this.type){this.elements.unbind(this.type,this.fn)}else{if(this.fn2){this.elements.each(function(d,e){b.fn2.apply(e)})}}this.elements=[];this.stopped=true},run:function(){if(this.stopped){return}var e=this;var f=this.elements,d=a(this.selector,this.context),b=d.not(f);this.elements=d;if(this.type){b.bind(this.type,this.fn);if(f.length>0){a.each(f,function(g,h){if(a.inArray(h,d)<0){a.event.remove(h,e.type,e.fn)}})}}else{b.each(function(){e.fn.apply(this)});if(this.fn2&&f.length>0){a.each(f,function(g,h){if(a.inArray(h,d)<0){e.fn2.apply(h)}})}}}};a.extend(a.livequery,{guid:0,queries:[],queue:[],running:false,timeout:null,checkQueue:function(){if(a.livequery.running&&a.livequery.queue.length){var b=a.livequery.queue.length;while(b--){a.livequery.queries[a.livequery.queue.shift()].run()}}},pause:function(){a.livequery.running=false},play:function(){a.livequery.running=true;a.livequery.run()},registerPlugin:function(){a.each(arguments,function(d,e){if(!a.fn[e]){return}var b=a.fn[e];a.fn[e]=function(){var f=b.apply(this,arguments);a.livequery.run();return f}})},run:function(b){if(b!=undefined){if(a.inArray(b,a.livequery.queue)<0){a.livequery.queue.push(b)}}else{a.each(a.livequery.queries,function(d){if(a.inArray(d,a.livequery.queue)<0){a.livequery.queue.push(d)}})}if(a.livequery.timeout){clearTimeout(a.livequery.timeout)}a.livequery.timeout=setTimeout(a.livequery.checkQueue,20)},stop:function(b){if(b!=undefined){a.livequery.queries[b].stop()}else{a.each(a.livequery.queries,function(d){a.livequery.queries[d].stop()})}}});a.livequery.registerPlugin("append","prepend","after","before","wrap","attr","removeAttr","addClass","removeClass","toggleClass","empty","remove");a(function(){a.livequery.play()})})(jQuery);
/*
 * Metadata - jQuery plugin for parsing metadata from elements
 *
 * Copyright (c) 2006 John Resig, Yehuda Katz, J�örn Zaefferer, Paul McLanahan
 *
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 *
 * Revision: $Id: jquery.metadata.js 3640 2007-10-11 18:34:38Z pmclanahan $
 *
 */
(function($){$.extend({metadata:{defaults:{type:"class",name:"metadata",cre:/({.*})/,single:"metadata"},setType:function(type,name){this.defaults.type=type;this.defaults.name=name},get:function(elem,opts){var settings=$.extend({},this.defaults,opts);if(!settings.single.length){settings.single="metadata"}var data=$.data(elem,settings.single);if(data){return data}data="{}";if(settings.type=="class"){var m=settings.cre.exec(elem.className);if(m){data=m[1]}}else{if(settings.type=="elem"){if(!elem.getElementsByTagName){return}var e=elem.getElementsByTagName(settings.name);if(e.length){data=$.trim(e[0].innerHTML)}}else{if(elem.getAttribute!=undefined){var attr=elem.getAttribute(settings.name);if(attr){data=attr}}}}if(data.indexOf("{")<0){data="{"+data+"}"}data=eval("("+data+")");$.data(elem,settings.single,data);return data}}});$.fn.metadata=function(opts){return $.metadata.get(this[0],opts)}})(jQuery);
/* Copyright (c) 2006 Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
 * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
 *
 * $LastChangedDate: 2007-12-20 09:02:08 -0600 (Thu, 20 Dec 2007) $
 * $Rev: 4265 $
 *
 * Version: 3.0
 * 
 * Requires: $ 1.2.2+
 */
(function(a){a.event.special.mousewheel={setup:function(){var b=a.event.special.mousewheel.handler;if(a.browser.mozilla){a(this).bind("mousemove.mousewheel",function(d){a.data(this,"mwcursorposdata",{pageX:d.pageX,pageY:d.pageY,clientX:d.clientX,clientY:d.clientY})})}if(this.addEventListener){this.addEventListener((a.browser.mozilla?"DOMMouseScroll":"mousewheel"),b,false)}else{this.onmousewheel=b}},teardown:function(){var b=a.event.special.mousewheel.handler;a(this).unbind("mousemove.mousewheel");if(this.removeEventListener){this.removeEventListener((a.browser.mozilla?"DOMMouseScroll":"mousewheel"),b,false)}else{this.onmousewheel=function(){}}a.removeData(this,"mwcursorposdata")},handler:function(e){var b=Array.prototype.slice.call(arguments,1);e=a.event.fix(e||window.event);a.extend(e,a.data(this,"mwcursorposdata")||{});var f=0,d=true;if(e.wheelDelta){f=e.wheelDelta/120}if(e.detail){f=-e.detail/3}e.data=e.data||{};e.type="mousewheel";b.unshift(f);b.unshift(e);return a.event.handle.apply(this,b)}};a.fn.extend({mousewheel:function(b){return b?this.bind("mousewheel",b):this.trigger("mousewheel")},unmousewheel:function(b){return this.unbind("mousewheel",b)}})})(jQuery);(function(a){a.fn.replaceTo=function(b){return this.each(function(){a.replaceTo(this,b)})};a.replaceTo=function(e,f){var h=a(e).contents().wrapAll("<div></div>");var d=null;var j=a(e).height();var b=null;var i=null;if(a(e).attr("id")==""){a(e).attr("id","tmpid"+Math.floor(Math.random()*50000))}var g={href:"",data:{},easing:"def",duration:1000,loader:700,direction:"left",complete:""};if(f){a.extend(g,f)}i=setTimeout('$.replaceTo.showLoader("'+a(e).attr("id")+'")',g.loader);a.get(g.href,g.data,function(k){a(e).removeClass("loading");d=a('<div class="hidden"></div>');d.html(k);a(e).append(d);clearTimeout(i);if(a(e).attr("id").indexOf("tmpid")>-1){a(e).attr("id","")}a.replaceTo.anim(e,a(e).children("div:first"),a(e).children("div:last"),g)})};a.replaceTo.showLoader=function(b){a("#"+b).addClass("loading");if(b.indexOf("tmpid")>-1){a("#"+b).attr("id","")}};a.replaceTo.anim=function(b,m,f,g){var d=false;if(a(b).parents("div.row").find("div.promo-browser").length>0||a(b).parents("div.row").find("div.tv4play-recommended-content").length>0){d=true}var n=a(b).width();var j;var e;if(d!=true){j=618;e=618}else{j=a(b).height();e=f.height()}var l={};var i={};var k=false;m.width(n);f.width(n);if(d!=true){a(b).height(618)}else{a(b).height(m.height())}m.css({position:"absolute",left:0,top:0});switch(g.direction){case"left":l={left:-n};i={left:0};f.css({position:"absolute",left:n,top:0});break;case"right":l={left:n};i={left:0};f.css({position:"absolute",left:-n,top:0});break;case"up":l={top:-j};i={top:0};f.css({position:"absolute",left:0,top:j});break;case"down":l={top:e};i={top:0};f.css({position:"absolute",left:0,top:-e});break;case"fade":l={opacity:0};i={opacity:100};f.css({position:"absolute",left:0,top:0,opacity:0});break;case"sweep":l={height:0};i={height:e};f.css({position:"absolute",left:0,top:0,height:0});break;case"fadeseq":l={opacity:0};i={opacity:100};f.css({position:"absolute",left:0,top:0,display:"none"});k=true;break}if(k==true){m.fadeOut({duration:g.duration,easing:g.easing,complete:function(){a(b).animate({height:e},{duration:g.duration,easing:g.easing});f.removeClass("hidden").fadeIn({duration:g.duration,easing:g.easing,complete:function(){a(f).after(a(this).contents());a(f).remove();a(m).remove()}})}})}else{m.animate(l,{duration:g.duration,easing:g.easing,complete:function(){a(this).remove()}});f.removeClass("hidden").animate(i,{duration:g.duration,easing:g.easing,complete:function(){a(this).after(a(this).contents());a(this).remove();if(typeof(g.complete)=="function"){g.complete.apply()}}});a(b).animate({height:e},{duration:g.duration,easing:g.easing})}}})(jQuery);(function(a){a.fn.tv4accordion=function(b){return this.each(function(){a.tv4accordion(this,b)})};a.tv4accordion=function(b,n){a.tv4accordion.resize(b,n);var d;var m;var l;var j;var e=0;var f={header:"h3",easing:"easeInOutQuint",duration:1000,init:"",complete:""};if(n){a.extend(f,n)}m=a(b).find(">div.accordion-tab");d=a(b).find(f.header);m.each(function(h){this.placeInOrder=h});a(d[0]).addClass("selected");a(m[0]).addClass("selected");var k=0;for(var g=0;g<d.length;g++){k+=a(d[g]).height()}b.commentHeight=a(b).height()-k;if(f.init!=""){f.init.apply()}for(var g=1;g<m.length;g++){a.tv4accordion.contentsOf(m[g]).hide();a(m[g]).css({zIndex:(g+10),position:"absolute",left:0,top:a(b).height()-(m.length-g)*a(m[g]).height()})}a(m[0]).css({zIndex:1,position:"absolute",left:0,top:0});l=a(b).height()-(m.length-1)*a(d[0]).height()-1;j=a(d[0]).height();d.click(function(){var p=0;var r=a(this).parent()[0];if(a(d[r.placeInOrder]).is(".selected")){return false}a(d).removeClass("selected");a(m).removeClass("selected");a.tv4accordion.contentsOf(r).show();a(d[r.placeInOrder]).addClass("selected");a(m[r.placeInOrder]).addClass("selected");var q=function(){a.tv4accordion.contentsOf(m[e]).hide();e=r.placeInOrder;f.complete.apply()};$rc=0;for(var o=1;o<m.length;o++){var p=a.tv4accordion.toHeight(m,o,l,j,r.placeInOrder);if(p!=a(m[o]).position().top){a(m[o]).animate({top:p},f.duration,f.easing,function(){$rc++;if($rc>1){return false}q()})}}})};a.tv4accordion.resize=function(b,d){if(d.scaleTo==null){return}};a.tv4accordion.contentsOf=function(b){return a(b).find('>div:not(".introduction")')};a.tv4accordion.toHeight=function(h,b,g,e,k){var f=0;for(var d=0;d<b;d++){if(d==k){f+=g}else{f+=e}}return f}})(jQuery);
/* SWFObject v2.1 <http://code.google.com/p/swfobject/>
	Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis
	This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);
/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/
return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return}f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e){return}if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return}}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(u,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"}if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}}var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return}var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}}function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u<t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return}var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return}AB+="";AD+="";if(c(q)){W(AE,false);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}();var ANIM_SPEED=600;var PAGINATION_MAX=7;function setPage(a,b){a.currPage=b;(a.currPage==0)?disablePrevButton(a):enablePrevButton(a);(a.currPage==(a.numPages-1))?disableNextButton(a):enableNextButton(a);reorderPagination(a);markPagination(a)}function saveUndoState(a){if($(a).find("div.playing").length>0){return false}if($("#playerFlash").length<1){return false}var d=$(a).find("ul.tabs");var b=$(a).find("ul.breadcrumbs");a.undoTabUrl=a.tabUrl;a.undoPage=a.currPage;a.undoTabLevel=a.tabLevel;a.undoTabSystem=(d.length)?d.html().toString():"";a.undoCrumbSystem=(b.length)?b.html().toString():"";var e=$('<div class="playing"><span><a href="#">Spelas nu</a></span></div>');e.click(restoreUndoState);$(a).find("div.breadcrumbs").append(e)}function restoreUndoState(){var a=$(this).parents("div.browser")[0];dir="fade";a.tabLevel=a.undoTabLevel;a.tabUrl=a.undoTabUrl;setPage(a,a.undoPage);hideTabs(a);$(this).parents("div.browser").find("div.content").replaceTo({href:getAjaxUrl(a),data:getBrowserDataObject(a),easing:"easeInOutExpo",duration:ANIM_SPEED,direction:dir,complete:function(){restoreCrumbs(a);restoreTabs(a);buildPagination(a)}});$(a).find("div.playing").remove();return false}function restoreCrumbs(a){var b=$(a).find("ul.breadcrumbs");if(b.length<1){var d=$('<ul class="breadcrumbs"></ul>');$(a).find("div.breadcrumbs").append(d);b=$(a).find("ul.breadcrumbs")}else{b.empty()}b.append(a.undoCrumbSystem);b.find("a").click(crumbButton);showTabs()}function restoreTabs(a){var b=$(a).find("ul.tabs");if(b.length<1){var d=$('<ul class="tabs"></ul>');$(a).find("div.tab-section").prepend(d);b=$(a).find("ul.tabs")}else{b.empty()}b.append(a.undoTabSystem);$(a).find("ul.tabs a").click(tabButton);showTabs()}function disablePrevButton(a){$(a).find("li.prev").addClass("disabled")}function enablePrevButton(a){$(a).find("li.prev").removeClass("disabled")}function disableNextButton(a){$(a).find("li.next").addClass("disabled")}function enableNextButton(a){$(a).find("li.next").removeClass("disabled")}function buildCrumbs(a){var e=$(a).find("p.hidden").metadata();var b=$(a).find("ul.breadcrumbs");if(b.length<1){var f=$('<ul class="breadcrumbs"></ul>');$(a).find("div.breadcrumbs").append(f);b=$(a).find("ul.breadcrumbs")}else{b.empty()}var f=$('<li class="button first-child"><h3><a href="#" class="{tabUrl:\''+e.crumbs[0].tabUrl+'\'}"><img src="'+IMAGE_PATH+'icons/browserCrumbHome.gif" alt="Hem" /></a></h3></li>');b.append(f);for(var d=1;d<e.crumbs.length;d++){c=(d==e.crumbs.length-1)?"last-child":"";var f=$('<li class="'+c+' button"><h3><a href="#" class="{tabUrl:\''+e.crumbs[d].tabUrl+"'}\">"+e.crumbs[d].tabName+"</a></h3></li>");b.append(f)}b.find("a").click(crumbButton);showTabs()}function buildLastTabSystem(a){$(a).find("ul.tabs").html(a.lastTabSystem);$(a).find("ul.tabs a").click(tabButton)}function buildBackTab(a){var b=$(a).find("p.hidden").metadata();var d=$(a).find("ul.tabs");if(d.length<1){var e=$('<ul class="tabs"></ul>');$(a).find("div.tab-section").append(e);d=$(a).find("ul.tabs")}else{d.empty()}var e=$('<li class="back button"><h3><a href="#" class="{tabUrl:\''+a.lastUrl+"'}\">Tillbaka till "+a.lastTabName+"</a></h3></li>");d.append(e);$(a).find("ul.tabs a").click(backTabButton);showTabs()}function buildTabs(a){var d=$(a).find("p.hidden").metadata();var e=$(a).find("ul.tabs");if(e.length<1){var f=$('<ul class="tabs"></ul>');$(a).find("div.tab-section").prepend(f);e=$(a).find("ul.tabs")}else{e.empty()}for(var b=0;b<d.tabs.length;b++){c=(b==0)?"selected ":"";var f=$('<li class="'+c+' button"><h3><a href="#" class="{tabUrl:\''+d.tabs[b].tabUrl+"'}\">"+d.tabs[b].tabName+"</a></h3></li>");e.append(f)}$(a).find("ul.tabs a").click(tabButton);showTabs()}function hideTabs(a){}function showTabs(a){}function buildPagination(b){var f=$(b).find("p.hidden").metadata();var e=$(b).find("ul.main");if(f.paginationLength<2){$(b).find("div.pagination").empty();return}if(e.length==0){$(b).find("div.pagination").append('<ul class="main"></ul>');e=$(b).find("ul.main")}b.numPages=f.paginationLength;e.empty();var g=$('<li class="button prev"><a href="#"><img src="'+IMAGE_PATH+'button/spacer.gif" alt="F�reg�ende sida" /></a></li>');e.append(g);if(b.numPages<=PAGINATION_MAX){for(var d=0;d<b.numPages;d++){var g=$('<li class="button number"><a href="#">'+(d+1)+"</a></li>");e.append(g)}}else{for(var d=0;d<PAGINATION_MAX;d++){var a=(d==(PAGINATION_MAX-1))?b.numPages:d+1;var g=$('<li class="button number"><a href="#">'+a+"</a></li>");e.append(g)}}var g=$('<li class="button next"><a href="#"><img src="'+IMAGE_PATH+'button/spacer.gif" alt="N�sta sida" /></a></li>');e.append(g);e.find("li.number a").click(paginationButton);e.find("li.prev a, li.next a").click(paginationPrevNextButton);setPage(b,0);markPagination(b)}function reorderPagination(a){if(a.numPages<=PAGINATION_MAX){return}var b=a.currPage-Math.floor(PAGINATION_MAX/2);if(b<0){b=0}if(b>(a.numPages-PAGINATION_MAX)){b=(a.numPages-PAGINATION_MAX)}$(a).find("ul.main li.number a").each(function(d){if(d==0){$(this).text(1)}else{if(d==(PAGINATION_MAX-1)){$(this).text(a.numPages)}else{$(this).text(b+(d+1))}}})}function markPagination(a){$(a).find("ul.main li.number").each(function(){($(this).text()==(a.currPage+1))?$(this).addClass("selected"):$(this).removeClass("selected")})}function getBrowserDataObject(a){var b={currPage:a.currPage};return b}function getAjaxUrl(a){return a.tabUrl}function ajaxbrowswerfollowURL(a){window.location(a);return false}$(document).ready(function(){$("div.browser").each(function(){this.currPage=parseInt($(this).find("div.pagination ul.main li.selected").text())-1;this.numPages=$(this).find("div.pagination ul.main li.number:last").text();if($(this).hasClass("search-results")){this.tabUrl=$(this).metadata().tabUrl}else{this.tabLevel=($(this).find("ul.tabs li.selected").length)?1:0;this.tabUrl=(this.tabLevel==0)?$(this).find("ul.breadcrumbs li.selected a").metadata().tabUrl:$(this).find("ul.tabs li.selected a").metadata().tabUrl}if(this.tabLevel==null){this.tabLevel=1}if(this.currPage==null){this.currPage=0}if(this.numPages==null){this.numPages=1}if(this.tabUrl==null){this.tabUrl=0}if(this.currPage==0){disablePrevButton(this)}if(this.currPage==this.numPages){disablePrevButton(this)}});$("ul.breadcrumbs a").click(crumbButton);$("div.pagination li.number a").click(paginationButton);$("div.pagination li.prev a, div.pagination li.next a").click(paginationPrevNextButton);$("ul.tabs a").click(tabButton);$("#tooltip").mouseover(function(a){$(this).css("left",a.pageX+20)})});function paginationPrevNextButton(){var b=$(this).parents("div.browser")[0];var a="fade";animationDirection="left";if($(this).parent().hasClass("next")){if(b.currPage+1>(b.numPages-1)){return false}a="fade";animationDirection="left";saveUndoState(b);setPage(b,b.currPage+1)}else{if(b.currPage-1<0){return false}a="fade";animationDirection="right";saveUndoState(b);setPage(b,b.currPage-1)}if($(this).hasClass("animate")){$(this).parents("div.browser").find("div.content").replaceTo({href:getAjaxUrl(b),data:getBrowserDataObject(b),easing:"easeOutQuad",duration:500,direction:animationDirection})}else{$(this).parents("div.browser").find("div.content").replaceTo({href:getAjaxUrl(b),data:getBrowserDataObject(b),easing:"easeInOutExpo",duration:ANIM_SPEED,direction:a})}return false}function paginationButton(){var a=$(this).parents("div.browser")[0];var b=parseInt($(this).text())-1;dir="fade";animationDirection="left";if(b>a.currPage){dir="fade"}if(b<a.currPage){dir="fade"}if(b>a.currPage){animationDirection="left"}if(b<a.currPage){animationDirection="right"}if(b!=a.currPage){saveUndoState(a)}setPage(a,b);if($(this).hasClass("animate")){$(this).parents("div.browser").find("div.content").replaceTo({href:getAjaxUrl(a),data:getBrowserDataObject(a),easing:"easeOutQuad",duration:500,direction:animationDirection})}else{$(this).parents("div.browser").find("div.content").replaceTo({href:getAjaxUrl(a),data:getBrowserDataObject(a),easing:"easeInOutExpo",duration:ANIM_SPEED,direction:dir})}return false}function crumbButton(){var b=$(this).metadata();var a=$(this).parents("div.browser")[0];dir="fade";saveUndoState(a);if($(this).parent().parent().hasClass("last-child")){$(this).parents("ul").find("li").removeClass("last-child");$(this).parent().parent().addClass("last-child")}else{$(this).parent().parent().nextAll().remove();$(this).parent().parent().addClass("last-child")}a.tabLevel=0;a.tabUrl=b.tabUrl;setPage(a,0);hideTabs(a);$(this).parents("div.browser").find("div.content").replaceTo({href:getAjaxUrl(a),data:getBrowserDataObject(a),easing:"easeInOutExpo",duration:ANIM_SPEED,direction:dir,complete:function(){buildTabs(a);buildPagination(a)}});return false}function tabButton(){var b=$(this).metadata();var a=$(this).parents("div.browser")[0];dir="fade";saveUndoState(a);$(this).parents("ul").find("li").removeClass("selected");$(this).parent().parent().addClass("selected");a.tabLevel=1;a.tabUrl=b.tabUrl;setPage(a,0);$(this).parents("div.browser").find("div.content").replaceTo({href:getAjaxUrl(a),data:getBrowserDataObject(a),easing:"easeInOutExpo",duration:ANIM_SPEED,direction:dir,complete:function(){buildPagination(a)}});return false}function backTabButton(){var b=$(this).metadata();var a=$(this).parents("div.browser")[0];dir="fade";saveUndoState(a);a.tabLevel=1;a.tabUrl=b.tabUrl;setPage(a,0);$(this).parents("div.browser").find("div.content").replaceTo({href:getAjaxUrl(a),data:getBrowserDataObject(a),easing:"easeInOutExpo",duration:ANIM_SPEED,direction:dir,complete:function(){buildPagination(a)}});buildLastTabSystem(a);return false}function listButton(){if($(this).is(".noAjax")){ajaxbrowswerfollowURL($(this).attr("href"));return false}var b=$(this).metadata();var a=$(this).parents("div.browser")[0];a.lastUrl=a.tabUrl;a.lastTabName=$(a).find("ul.tabs li.selected a").text();a.lastTabSystem=$(a).find("ul.tabs").html();buildBackTab(a);dir="fade";saveUndoState(a);a.tabLevel=1;a.tabUrl=b.tabUrl;setPage(a,0);$(this).parents("div.browser").find("div.content").replaceTo({href:getAjaxUrl(a),data:getBrowserDataObject(a),easing:"easeInOutExpo",duration:ANIM_SPEED,direction:dir,complete:function(){buildPagination(a)}});return false}function indexButton(){var b=$(this).metadata();var a=$(this).parents("div.browser")[0];dir="fade";saveUndoState(a);a.tabLevel=0;a.tabUrl=b.tabUrl;setPage(a,0);hideTabs(a);$(this).parents("div.browser").find("div.content").replaceTo({href:getAjaxUrl(a),data:getBrowserDataObject(a),easing:"easeInOutExpo",duration:ANIM_SPEED,direction:dir,complete:function(){buildCrumbs(a);buildTabs(a);buildPagination(a)}});return false}var toolTipTimer;$("div.browser div.content li,div.promo-browser div.content li").livequery(function(){this.toolTipText=$(this).find("span.tooltip").text();if(this.toolTipText.length>0){$(this).mousemove(function(b){$("#tooltip").css({left:(b.pageX+20),top:(b.pageY-40)})})}$(this).hover(function(){if($(this).hasClass("recommended-text-area")){if(this.toolTipText.length<155){return false}}else{if(this.toolTipText.length>9){$("#tooltip div").text(this.toolTipText);toolTipTimer=setTimeout(showToolTip,700)}$(this).addClass("mouseover")}},function(){$("#tooltip").hide();toolTipTimer=clearTimeout(toolTipTimer);$(this).removeClass("mouseover")});var a=$(this).parent().attr("class");if(a.indexOf("list")>-1){$(this).find("a").click(listButton)}if(a.indexOf("index")>-1){$(this).find("a").click(indexButton)}});$("div.browser div.tv4play-recommended-content ul li").livequery(function(){this.toolTipText=$(this).find("div.tooltip").html();if(this.toolTipText.length>0){$(this).mousemove(function(b){$("#tooltip").css({left:(b.pageX+20),top:(b.pageY-40)})})}$(this).hover(function(){if(this.toolTipText.length>40){$("#tooltip div").html(this.toolTipText);toolTipTimer=setTimeout(showToolTip,700)}$(this).addClass("mouseover")},function(){$("#tooltip").hide();toolTipTimer=clearTimeout(toolTipTimer);$(this).removeClass("mouseover")});var a=$(this).parent().attr("class");if(a.indexOf("list")>-1){$(this).find("a").click(listButton)}if(a.indexOf("index")>-1){$(this).find("a").click(indexButton)}});function showToolTip(){$("#tooltip").fadeIn(400)}$(document).ready(function(){$("#header span.droppable").each(function(){var a=$(this).parent();var b="#"+$(this).attr("id").substr(5)+"-container";$(this).find("a").click(function(){var d=$("#droppables>div:visible");if(d.length>0){if(d[0]==$(b)[0]){a.removeClass("open");d.slideUp(600,"easeInOutQuint");return false}$("#header li.open").removeClass("open");d.slideUp(300,function(){$(b).slideDown(600,"easeInOutQuint")})}else{$(b).slideDown(600,"easeInOutQuint")}a.addClass("open");return false})});$("#droppables a.anytime").click(function(){window.open($(this).attr("href"),"anytime");return false});$("div.recommended li").hover(function(){$(this).addClass("mouseover")},function(){$(this).removeClass("mouseover")}).click(function(){window.location.href=$(this).find("a:first").attr("href")});$("input.play-only").click(function(){if($(this).attr("checked")){$(this).parents("div.contents").find("a.anytime").hide()}else{$(this).parents("div.contents").find("a.anytime").show()}});$("#search-field").focus(function(){if($(this).val()==""){$(this).prev().fadeOut(300)}}).blur(function(){if($(this).val()==""){$(this).prev().fadeIn(300)}});$("input.header-search-button").hover(function(){$(this).attr("src","/tv4play/img/button/headerSearchButtonHover.gif")},function(){$(this).attr("src","/tv4play/img/button/headerSearchButton.gif")});$("div.latest").mousedown(function(){$(this).addClass("mousedown")}).mouseup(function(){$(this).addClass("mouseup")});$("#share").click(fbs_click)});$("li.button").live("mousedown",function(){$(this).addClass("mousedown")});$("li.button").live("mouseup",function(){$(this).removeClass("mousedown")});var tv4={getCookie:function(b){var e=b+"=";var a=document.cookie.split(";");for(var d=0;d<a.length;d++){var f=a[d];while(f.charAt(0)==" "){f=f.substring(1,f.length)}if(f.indexOf(e)==0){return f.substring(e.length,f.length)}}return null}};function fbs_click(){u=location.href;t=document.title;window.open("http://www.facebook.com/sharer.php?u="+encodeURIComponent(u)+"&t="+encodeURIComponent(t),"sharer","toolbar=0,status=0,width=626,height=436");return false}function saveToDelicious(){window.open("http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url="+encodeURIComponent(location.href)+"&amp;title="+encodeURIComponent(document.title),"delicious","toolbar=no,width=550,height=550");return false}function saveToBloggy(){window.open("http://bloggy.se/home?link="+encodeURIComponent(location.href)+"&status="+encodeURIComponent(document.title),"bloggy","toolbar=no,width=820,height=348");return false}$("div.tabs a").livequery("click",function(){var b=Math.floor(Math.random()*4);var a="left";if(b==1){a="right"}if(b==2){a="down"}if(b==3){a="up"}$(this).parents("div.browser").find("div.content").replaceTo({href:$(this).attr("href"),easing:"easeInOutQuint",speed:1000,direction:a});return false});var general={init:function(){general.flare()},flare:function(){var a=jQuery(".browser .content li div");var b=jQuery(".browser .content li div a:first").attr("href");$('<a href="'+b+'" class="flare"></a>').appendTo(a)},playButton:function(){jQuery(".browser .content li div").hover(function(){jQuery(this).addClass("hover")},function(){jQuery(this).removeClass("hover")})}};jQuery(document).ready(function(){general.init()});function fixOverflow(){if($(window).width()<980){$("body").css("overflow-x","auto")}else{$("body").css("overflow-x","hidden")}}$(window).load(fixOverflow);$(window).resize(fixOverflow);$.fn.defaultInputText=function(b){var a=$.extend({},$.fn.defaultInputText.defaults,b);return this.each(function(){var d=a.message;$(this).val(d);$(this).focus(function(){if($(this).val()==d){$(this).val("").css("color","black")}}).blur(function(){if($(this).val()==""){$(this).val(d).css("color","#888")}})});jQuery.fn.defaultInputText.defaults={message:"Enter text here."}};$(document).ready(function(){$("#shows-search-query").defaultInputText({message:"Sök lattjo-program"});$("#episodes-search-query").defaultInputText({message:"Sök lattjo-avsnitt"})});var spotCycleIntervalDelay=10000;var spotCycleInterval=setInterval("cycleSpotlight()",spotCycleIntervalDelay*2);var spotFadeSpeed=500;var spotDirections=4;var spotCurrentColor=0;var spotCurrentDirection=0;var spotColors=["blue","green","orange","pink"];function cycleSpotlight(){if(!isPlaying){setSpotlight(spotCurrentColor,++spotCurrentDirection)}}function setSpotlight(d,f){clearTimeout(spotCycleInterval);spotCycleInterval=setInterval("cycleSpotlight()",spotCycleIntervalDelay);spotCurrentColor=d%spotColors.length;spotCurrentDirection=f%spotDirections;var b=spotColors[spotCurrentColor];var a=$('<img src="/tv4play/img/lattjolajban/spot-'+b+"-left-"+spotCurrentDirection+'.png" alt="" style="display:none;" class="nextlight" />');var e=$('<img src="/tv4play/img/lattjolajban/spot-'+b+"-right-"+spotCurrentDirection+'.png" alt="" style="display:none;" class="nextlight" />');$("img","#spotlights").removeClass("nextlight").removeClass("currentlight").addClass("oldlight").stop().fadeOut(spotFadeSpeed,function(){$(".oldlight","#spotlights").remove()});$("#spotlightleft").prepend(a);$("#spotlightright").prepend(e);$(".nextlight","#spotlights").fadeIn(spotFadeSpeed,function(){$(this).removeClass("nextlight").addClass("currentlight")})}function updateOnAirSign(){if(isPlaying){$("#onair").addClass("active")}else{$("#onair").removeClass("active")}}var isPlaying=false;var videoPlayer;var videoControls;function getPlayer(){return swfobject.getObjectById("videoplayercontainer")}function getControls(){return swfobject.getObjectById("videocontrols")}function video_setIsPlaying(a){getPlayer().tv4Player_setIsPlaying(a);isPlaying=a;updateOnAirSign()}function video_getIsPlaying(){return getPlayer().tv4Player_getIsPlaying()}function video_setVolume(a){getPlayer().tv4Player_setVolume(a)}function video_getVolume(){return getPlayer().tv4Player_getVolume()}function video_getDuration(){return getPlayer().tv4Player_getDuration()}function video_getPos(){return getPlayer().tv4Player_getPos()}function video_onPlayCallback(){setControlsIsPlaying(true)}function video_onPauseCallback(){setControlsIsPlaying(false)}function setControlsPosition(a,b){getControls().setPositionInSeconds(a,b)}function setControlsIsPlaying(a){isPlaying=a;getControls().setIsPlaying(a);updateOnAirSign()}function setControlsEnabled(a){getControls().setListenForInput(a)}function setCurrentlyPlayingText(a){$("#currentshow").html(a)}if(typeof jQuery!="undefined"){jQuery.fn.paralax=function(b){var a=$.extend({},$.fn.paralax.defaults,b);return this.each(function(){var g=$(this);g.css("position","relative");for(var d=0;d<a.layers;++d){var e=$('<img class="paralax-layer-'+d+'" src="'+a.images[d]+'" alt="" />');g.append(e);e.css({position:"absolute",top:0+"px",left:((g.width()-$(e).width())*0.5)+"px"})}var f=function(k){var j=g.width();var l=g.width()*0.5;for(var h=0;h<a.layers;++h){$(".paralax-layer-"+h,g).each(function(){var i=0;if(typeof k.pageX!="undefined"){i=((l-k.pageX)/l)*((h+1)/a.layers)*a.distance}$(this).css("left",(((j-$(this).width())*0.5)+i)+"px")})}};$(window).load(f);$(window).resize(f);$(document).mousemove(f)})};jQuery.fn.paralax.defaults={layers:3,distance:20,images:["/tv4play/img/lattjolajban/tc-background1.png","/tv4play/img/lattjolajban/tc-background2.png","/tv4play/img/lattjolajban/tc-background3.png"]};$(document).ready(function(){$(".paralax").paralax()})}function disablePromoPrevButton(a){$(a).find("div.gutter-left").addClass("disabled")}function enablePromoPrevButton(a){$(a).find("div.gutter-left").removeClass("disabled")}function disablePromoNextButton(a){$(a).find("div.gutter-right").addClass("disabled")}function enablePromoNextButton(a){$(a).find("div.gutter-right").removeClass("disabled")}function showToolTip(){$("#tooltip").fadeIn(400)}$(document).ready(function(){$("div.promo-browser").each(function(){var a=this;this.currPage=0;this.tabUrl=$(this).metadata().tabUrl;this.numPages=$(this).metadata().numPages;if(this.numPages==null){this.numPages=1}if(this.tabUrl==null){this.tabUrl=0}if(this.currPage==0){disablePromoPrevButton(a)}if(this.currPage==this.numPages){disablePromoPrevButton(a)}$(this).find("div.gutter-left a").click(function(){if(a.currPage<1){return false}a.currPage--;if(a.currPage<a.numPages){enablePromoNextButton(a)}if(a.currPage==0){disablePromoPrevButton(a)}$(a).find("div.content").replaceTo({href:getAjaxUrl(a),data:getBrowserDataObject(a),easing:"easeOutQuad",duration:500,direction:"right"});return false}).mousedown(function(){$(this).parent().addClass("mousedown")}).mouseup(function(){$(this).parent().removeClass("mousedown")});$(this).find("div.gutter-right a").click(function(){if(a.currPage>=a.numPages){return false}a.currPage++;if(a.currPage>0){enablePromoPrevButton(a)}if(a.currPage==a.numPages){disablePromoNextButton(a)}$(a).find("div.content").replaceTo({href:getAjaxUrl(a),data:getBrowserDataObject(a),easing:"easeOutQuad",duration:500,direction:"left"});return false}).mousedown(function(){$(this).parent().addClass("mousedown")}).mouseup(function(){$(this).parent().removeClass("mousedown")})})});
