(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(a,B){a=a||document;if(a.nodeType){this[0]=a;this.length=1;this.context=a;return this}if(typeof a==="string"){var C=M.exec(a);if(C&&(C[1]||!B)){if(C[1]){a=T.clean([C[1]],B)}else{var A=document.getElementById(C[3]);if(A&&A.id!=C[3]){return T().find(a)}var D=T(A||[]);D.context=document;D.selector=a;return D}}else{return T(B).find(a)}}else{if(T.isFunction(a)){return T(document).ready(a)}}if(a.selector&&a.context){this.selector=a.selector;this.context=a.context}return this.setArray(T.isArray(a)?a:T.makeArray(a))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(A){return A===AB?Array.prototype.slice.call(this):this[A]},pushStack:function(C,A,D){var B=T(C);B.prevObject=this;B.context=this.context;if(A==="find"){B.selector=this.selector+(this.selector?" ":"")+D}else{if(A){B.selector=this.selector+"."+A+"("+D+")"}}return B},setArray:function(A){this.length=0;Array.prototype.push.apply(this,A);return this},each:function(A,B){return T.each(this,A,B)},index:function(A){return T.inArray(A&&A.jquery?A[0]:A,this)},attr:function(C,A,B){var D=C;if(typeof C==="string"){if(A===AB){return this[0]&&T[B||"attr"](this[0],C)}else{D={};D[C]=A}}return this.each(function(a){for(C in D){T.attr(B?this.style:this,C,T.prop(this,D[C],B,a,C))}})},css:function(B,A){if((B=="width"||B=="height")&&parseFloat(A)<0){A=AB}return this.attr(B,A,"curCSS")},text:function(A){if(typeof A!=="object"&&A!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(A))}var B="";T.each(A||this,function(){T.each(this.childNodes,function(){if(this.nodeType!=8){B+=this.nodeType!=1?this.nodeValue:T.fn.text([this])}})});return B},wrapAll:function(B){if(this[0]){var A=T(B,this[0].ownerDocument).clone();if(this[0].parentNode){A.insertBefore(this[0])}A.map(function(){var C=this;while(C.firstChild){C=C.firstChild}return C}).append(this)}return this},wrapInner:function(A){return this.each(function(){T(this).contents().wrapAll(A)})},wrap:function(A){return this.each(function(){T(this).wrapAll(A)})},append:function(){return this.domManip(arguments,true,function(A){if(this.nodeType==1){this.appendChild(A)}})},prepend:function(){return this.domManip(arguments,true,function(A){if(this.nodeType==1){this.insertBefore(A,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(A){this.parentNode.insertBefore(A,this)})},after:function(){return this.domManip(arguments,false,function(A){this.parentNode.insertBefore(A,this.nextSibling)})},end:function(){return this.prevObject||T([])},push:[].push,sort:[].sort,splice:[].splice,find:function(B){if(this.length===1){var A=this.pushStack([],"find",B);A.length=0;T.find(B,this[0],A);return A}else{return this.pushStack(T.unique(T.map(this,function(C){return T.find(B,C)})),"find",B)}},clone:function(B){var D=this.map(function(){if(!T.support.noCloneEvent&&!T.isXMLDoc(this)){var b=this.outerHTML;if(!b){var a=this.ownerDocument.createElement("div");a.appendChild(this.cloneNode(true));b=a.innerHTML}return T.clean([b.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(B===true){var A=this.find("*").andSelf(),C=0;D.find("*").andSelf().each(function(){if(this.nodeName!==A[C].nodeName){return }var c=T.data(A[C],"events");for(var a in c){for(var b in c[a]){T.event.add(this,a,c[a][b],c[a][b].data)}}C++})}return D},filter:function(A){return this.pushStack(T.isFunction(A)&&T.grep(this,function(B,C){return A.call(B,C)})||T.multiFilter(A,T.grep(this,function(B){return B.nodeType===1})),"filter",A)},closest:function(C){var A=T.expr.match.POS.test(C)?T(C):null,B=0;return this.map(function(){var D=this;while(D&&D.ownerDocument){if(A?A.index(D)>-1:T(D).is(C)){T.data(D,"closest",B);return D}D=D.parentNode;B++}})},not:function(B){if(typeof B==="string"){if(AC.test(B)){return this.pushStack(T.multiFilter(B,this,true),"not",B)}else{B=T.multiFilter(B,this)}}var A=B.length&&B[B.length-1]!==AB&&!B.nodeType;return this.filter(function(){return A?T.inArray(this,B)<0:this!=B})},add:function(A){return this.pushStack(T.unique(T.merge(this.get(),typeof A==="string"?T(A):T.makeArray(A))))},is:function(A){return !!A&&T.multiFilter(A,this).length>0},hasClass:function(A){return !!A&&this.is("."+A)},val:function(C){if(C===AB){var e=this[0];if(e){if(T.nodeName(e,"option")){return(e.attributes.value||{}).specified?e.value:e.text}if(T.nodeName(e,"select")){var a=e.selectedIndex,B=[],A=e.options,b=e.type=="select-one";if(a<0){return null}for(var d=b?a:0,D=b?a+1:A.length;d=0||T.inArray(this.name,C)>=0)}else{if(T.nodeName(this,"select")){var f=T.makeArray(C);T("option",this).each(function(){this.selected=(T.inArray(this.value,f)>=0||T.inArray(this.text,f)>=0)});if(!f.length){this.selectedIndex=-1}}else{this.value=C}}})},html:function(A){return A===AB?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(A)},replaceWith:function(A){return this.after(A).remove()},eq:function(A){return this.slice(A,+A+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(A){return this.pushStack(T.map(this,function(B,C){return A.call(B,C,B)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(D,A,B){if(this[0]){var a=(this[0].ownerDocument||this[0]).createDocumentFragment(),d=T.clean(D,(this[0].ownerDocument||this[0]),a),b=a.firstChild;if(b){for(var c=0,e=this.length;c1||c>0?a.cloneNode(true):a)}}if(d){T.each(d,E)}}return this;function C(g,f){return A&&T.nodeName(g,"table")&&T.nodeName(f,"tr")?(g.getElementsByTagName("tbody")[0]||g.appendChild(g.ownerDocument.createElement("tbody"))):g}}};T.fn.init.prototype=T.fn;function E(B,A){if(A.src){T.ajax({url:A.src,async:false,dataType:"script"})}else{T.globalEval(A.text||A.textContent||A.innerHTML||"")}if(A.parentNode){A.parentNode.removeChild(A)}}function AD(){return +new Date}T.extend=T.fn.extend=function(){var C=arguments[0]||{},a=1,D=arguments.length,d=false,b;if(typeof C==="boolean"){d=C;C=arguments[1]||{};a=2}if(typeof C!=="object"&&!T.isFunction(C)){C={}}if(D==a){C=this;--a}for(;a-1}},swap:function(B,C,A){var a={};for(var D in C){a[D]=B.style[D];B.style[D]=C[D]}A.call(B);for(var D in C){B.style[D]=a[D]}},css:function(a,c,C,d){if(c=="width"||c=="height"){var A,b={position:"absolute",visibility:"hidden",display:"block"},B=c=="width"?["Left","Right"]:["Top","Bottom"];function D(){A=c=="width"?a.offsetWidth:a.offsetHeight;if(d==="border"){return }T.each(B,function(){if(!d){A-=parseFloat(T.curCSS(a,"padding"+this,true))||0}if(d==="margin"){A+=parseFloat(T.curCSS(a,"margin"+this,true))||0}else{A-=parseFloat(T.curCSS(a,"border"+this+"Width",true))||0}})}if(a.offsetWidth!==0){D()}else{T.swap(a,b,D)}return Math.max(0,Math.round(A))}return T.curCSS(a,c,C)},curCSS:function(a,d,c){var B,e=a.style;if(d=="opacity"&&!T.support.opacity){B=T.attr(e,"opacity");return B==""?"1":B}if(d.match(/float/i)){d=H}if(!c&&e&&e[d]){B=e[d]}else{if(Q.getComputedStyle){if(d.match(/float/i)){d="float"}d=d.replace(/([A-Z])/g,"-$1").toLowerCase();var A=Q.getComputedStyle(a,null);if(A){B=A.getPropertyValue(d)}if(d=="opacity"&&B==""){B="1"}}else{if(a.currentStyle){var D=d.replace(/\-(\w)/g,function(g,f){return f.toUpperCase()});B=a.currentStyle[d]||a.currentStyle[D];if(!/^\d+(px)?$/i.test(B)&&/^\d/.test(B)){var b=e.left,C=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=B||0;B=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=C}}}}return B},clean:function(c,B,D){B=B||document;if(typeof B.createElement==="undefined"){B=B.ownerDocument||B[0]&&B[0].ownerDocument||document}if(!D&&c.length===1&&typeof c[0]==="string"){var a=/^<(\w+)\s*\/?>$/.exec(c[0]);if(a){return[B.createElement(a[1])]}}var b=[],d=[],A=B.createElement("div");T.each(c,function(h,e){if(typeof e==="number"){e+=""}if(!e){return }if(typeof e==="string"){e=e.replace(/(<(\w+)[^>]*?)\/>/g,function(m,l,n){return n.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?m:l+">"});var i=e.replace(/^\s+/,"").substring(0,10).toLowerCase();var g=!i.indexOf("",""]||!i.indexOf("",""]||i.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"","
"]||!i.indexOf("",""]||(!i.indexOf("",""]||!i.indexOf("",""]||!T.support.htmlSerialize&&[1,"div
","
"]||[0,"",""];A.innerHTML=g[1]+e+g[2];while(g[0]--){A=A.lastChild}if(!T.support.tbody){var f=/"&&!f?A.childNodes:[];for(var k=j.length-1;k>=0;--k){if(T.nodeName(j[k],"tbody")&&!j[k].childNodes.length){j[k].parentNode.removeChild(j[k])}}}if(!T.support.leadingWhitespace&&/^\s/.test(e)){A.insertBefore(B.createTextNode(e.match(/^\s*/)[0]),A.firstChild)}e=T.makeArray(A.childNodes)}if(e.nodeType){b.push(e)}else{b=T.merge(b,e)}});if(D){for(var C=0;b[C];C++){if(T.nodeName(b[C],"script")&&(!b[C].type||b[C].type.toLowerCase()==="text/javascript")){d.push(b[C].parentNode?b[C].parentNode.removeChild(b[C]):b[C])}else{if(b[C].nodeType===1){b.splice.apply(b,[C+1,0].concat(T.makeArray(b[C].getElementsByTagName("script"))))}D.appendChild(b[C])}}return d}return b},attr:function(C,b,B){if(!C||C.nodeType==3||C.nodeType==8){return AB}var a=!T.isXMLDoc(C),A=B!==AB;b=a&&T.props[b]||b;if(C.tagName){var c=/href|src|style/.test(b);if(b=="selected"&&C.parentNode){C.parentNode.selectedIndex}if(b in C&&a&&!c){if(A){if(b=="type"&&T.nodeName(C,"input")&&C.parentNode){throw"type property can't be changed"}C[b]=B}if(T.nodeName(C,"form")&&C.getAttributeNode(b)){return C.getAttributeNode(b).nodeValue}if(b=="tabIndex"){var D=C.getAttributeNode("tabIndex");return D&&D.specified?D.value:C.nodeName.match(/(button|input|object|select|textarea)/i)?0:C.nodeName.match(/^(a|area)$/i)&&C.href?0:AB}return C[b]}if(!T.support.style&&a&&b=="style"){return T.attr(C.style,"cssText",B)}if(A){C.setAttribute(b,""+B)}var d=!T.support.hrefNormalized&&a&&c?C.getAttribute(b,2):C.getAttribute(b);return d===null?AB:d}if(!T.support.opacity&&b=="opacity"){if(A){C.zoom=1;C.filter=(C.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(B)+""=="NaN"?"":"alpha(opacity="+B*100+")")}return C.filter&&C.filter.indexOf("opacity=")>=0?(parseFloat(C.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}b=b.replace(/-([a-z])/ig,function(f,e){return e.toUpperCase()});if(A){C[b]=B}return C[b]},trim:function(A){return(A||"").replace(/^\s+|\s+$/g,"")},makeArray:function(A){var C=[];if(A!=null){var B=A.length;if(B==null||typeof A==="string"||T.isFunction(A)||A.setInterval){C[0]=A}else{while(B){C[--B]=A[B]}}}return C},inArray:function(B,A){for(var D=0,C=A.length;D0?this.clone(true):this).get();T.fn[A].apply(T(C[D]),b);a=a.concat(b)}return this.pushStack(a,B,d)}});T.each({removeAttr:function(A){T.attr(this,A,"");if(this.nodeType==1){this.removeAttribute(A)}},addClass:function(A){T.className.add(this,A)},removeClass:function(A){T.className.remove(this,A)},toggleClass:function(A,B){if(typeof B!=="boolean"){B=!T.className.has(this,A)}T.className[B?"add":"remove"](this,A)},remove:function(A){if(!A||T.filter(A,[this]).length){T("*",this).add([this]).each(function(){T.event.remove(this);T.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){T(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(B,A){T.fn[B]=function(){return this.each(A,arguments)}});function Y(B,A){return B[0]&&parseInt(T.curCSS(B[0],A,true),10)||0}var AA="jQuery"+AD(),I=0,R={};T.extend({cache:{},data:function(C,D,B){C=C==W?R:C;var A=C[AA];if(!A){A=C[AA]=++I}if(D&&!T.cache[A]){T.cache[A]={}}if(B!==AB){T.cache[A][D]=B}return D?T.cache[A][D]:A},removeData:function(C,D){C=C==W?R:C;var A=C[AA];if(D){if(T.cache[A]){delete T.cache[A][D];D="";for(D in T.cache[A]){break}if(!D){T.removeData(C)}}}else{try{delete C[AA]}catch(B){if(C.removeAttribute){C.removeAttribute(AA)}}delete T.cache[A]}},queue:function(C,D,A){if(C){D=(D||"fx")+"queue";var B=T.data(C,D);if(!B||T.isArray(A)){B=T.data(C,D,T.makeArray(A))}else{if(A){B.push(A)}}}return B},dequeue:function(A,B){var D=T.queue(A,B),C=D.shift();if(!B||B==="fx"){C=D[0]}if(C!==AB){C.call(A)}}});T.fn.extend({data:function(D,B){var A=D.split(".");A[1]=A[1]?"."+A[1]:"";if(B===AB){var C=this.triggerHandler("getData"+A[1]+"!",[A[0]]);if(C===AB&&this.length){C=T.data(this[0],D)}return C===AB&&A[1]?this.data(A[0]):C}else{return this.trigger("setData"+A[1]+"!",[A[0],B]).each(function(){T.data(this,D,B)})}},removeData:function(A){return this.each(function(){T.removeData(this,A)})},queue:function(B,A){if(typeof B!=="string"){A=B;B="fx"}if(A===AB){return T.queue(this[0],B)}return this.each(function(){var C=T.queue(this,B,A);if(B=="fx"&&C.length==1){C[0].call(this)}})},dequeue:function(A){return this.each(function(){T.dequeue(this,A)})}});(function(){var B=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,d=0,h=Object.prototype.toString;var j=function(n,r,AI,z){AI=AI||[];r=r||document;if(r.nodeType!==1&&r.nodeType!==9){return[]}if(!n||typeof n!=="string"){return AI}var m=[],p,w,t,s,y,q,o=true;B.lastIndex=0;while((p=B.exec(n))!==null){m.push(p[1]);if(p[2]){q=RegExp.rightContext;break}}if(m.length>1&&c.exec(n)){if(m.length===2&&g.relative[m[0]]){w=f(m[0]+m[1],r)}else{w=g.relative[m[0]]?[r]:j(m.shift(),r);while(m.length){n=m.shift();if(g.relative[n]){n+=m.shift()}w=f(n,w)}}}else{var x=z?{expr:m.pop(),set:k(z)}:j.find(m.pop(),m.length===1&&r.parentNode?r.parentNode:r,C(r));w=j.filter(x.expr,x.set);if(m.length>0){t=k(w)}else{o=false}while(m.length){var u=m.pop(),v=u;if(!g.relative[u]){u=""}else{v=m.pop()}if(v==null){v=r}g.relative[u](t,v,C(r))}}if(!t){t=w}if(!t){throw"Syntax error, unrecognized expression: "+(u||n)}if(h.call(t)==="[object Array]"){if(!o){AI.push.apply(AI,t)}else{if(r.nodeType===1){for(var l=0;t[l]!=null;l++){if(t[l]&&(t[l]===true||t[l].nodeType===1&&e(r,t[l]))){AI.push(w[l])}}}else{for(var l=0;t[l]!=null;l++){if(t[l]&&t[l].nodeType===1){AI.push(w[l])}}}}}else{k(t,AI)}if(q){j(q,r,AI,z);if(i){hasDuplicate=false;AI.sort(i);if(hasDuplicate){for(var l=1;l":function(q,n,p){var s=typeof n==="string";if(s&&!/\W/.test(n)){n=p?n:n.toUpperCase();for(var m=0,o=q.length;m=0)){if(!m){o.push(r)}}else{if(m){n[s]=false}}}}return false},ID:function(l){return l[1].replace(/\\/g,"")},TAG:function(m,n){for(var l=0;n[l]===false;l++){}return n[l]&&C(n[l])?m[1]:m[1].toUpperCase()},CHILD:function(m){if(m[1]=="nth"){var l=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[2]=="even"&&"2n"||m[2]=="odd"&&"2n+1"||!/\D/.test(m[2])&&"0n+"+m[2]||m[2]);m[2]=(l[1]+(l[2]||1))-0;m[3]=l[3]-0}m[0]=d++;return m},ATTR:function(r,n,m,o,q,p){var l=r[1].replace(/\\/g,"");if(!p&&g.attrMap[l]){r[1]=g.attrMap[l]}if(r[2]==="~="){r[4]=" "+r[4]+" "}return r},PSEUDO:function(q,n,m,o,p){if(q[1]==="not"){if(q[3].match(B).length>1||/^\w/.test(q[3])){q[3]=j(q[3],null,null,n)}else{var l=j.filter(q[3],n,m,true^p);if(!m){o.push.apply(o,l)}return false}}else{if(g.match.POS.test(q[0])||g.match.CHILD.test(q[0])){return true}}return q},POS:function(l){l.unshift(true);return l}},filters:{enabled:function(l){return l.disabled===false&&l.type!=="hidden"},disabled:function(l){return l.disabled===true},checked:function(l){return l.checked===true},selected:function(l){l.parentNode.selectedIndex;return l.selected===true},parent:function(l){return !!l.firstChild},empty:function(l){return !l.firstChild},has:function(l,m,n){return !!j(n[3],l).length},header:function(l){return/h\d/i.test(l.nodeName)},text:function(l){return"text"===l.type},radio:function(l){return"radio"===l.type},checkbox:function(l){return"checkbox"===l.type},file:function(l){return"file"===l.type},password:function(l){return"password"===l.type},submit:function(l){return"submit"===l.type},image:function(l){return"image"===l.type},reset:function(l){return"reset"===l.type},button:function(l){return"button"===l.type||l.nodeName.toUpperCase()==="BUTTON"},input:function(l){return/input|select|textarea|button/i.test(l.nodeName)}},setFilters:{first:function(l,m){return m===0},last:function(m,n,o,l){return n===l.length-1},even:function(l,m){return m%2===0},odd:function(l,m){return m%2===1},lt:function(l,m,n){return mn[3]-0},nth:function(l,m,n){return n[3]-0==m},eq:function(l,m,n){return n[3]-0==m}},filter:{PSEUDO:function(q,m,l,p){var n=m[1],s=g.filters[n];if(s){return s(q,l,m,p)}else{if(n==="contains"){return(q.textContent||q.innerText||"").indexOf(m[3])>=0}else{if(n==="not"){var r=m[3];for(var l=0,o=r.length;l=0)}}},ID:function(l,m){return l.nodeType===1&&l.getAttribute("id")===m},TAG:function(l,m){return(m==="*"&&l.nodeType===1)||l.nodeName===m},CLASS:function(l,m){return(" "+(l.className||l.getAttribute("class"))+" ").indexOf(m)>-1},ATTR:function(q,l){var m=l[1],o=g.attrHandle[m]?g.attrHandle[m](q):q[m]!=null?q[m]:q.getAttribute(m),p=o+"",r=l[2],n=l[4];return o==null?r==="!=":r==="="?p===n:r==="*="?p.indexOf(n)>=0:r==="~="?(" "+p+" ").indexOf(n)>=0:!n?p&&o!==false:r==="!="?p!=n:r==="^="?p.indexOf(n)===0:r==="$="?p.substr(p.length-n.length)===n:r==="|="?p===n||p.substr(0,n.length+1)===n+"-":false},POS:function(q,n,m,p){var o=n[2],l=g.setFilters[o];if(l){return l(q,m,n,p)}}}};var c=g.match.POS;for(var a in g.match){g.match[a]=RegExp(g.match[a].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var k=function(l,m){l=Array.prototype.slice.call(l);if(m){m.push.apply(m,l);return m}return l};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(b){k=function(p,l){var n=l||[];if(h.call(p)==="[object Array]"){Array.prototype.push.apply(n,p)}else{if(typeof p.length==="number"){for(var m=0,o=p.length;m";var n=document.documentElement;n.insertBefore(m,n.firstChild);if(!!document.getElementById(l)){g.find.ID=function(r,q,p){if(typeof q.getElementById!=="undefined"&&!p){var o=q.getElementById(r[1]);return o?o.id===r[1]||typeof o.getAttributeNode!=="undefined"&&o.getAttributeNode("id").nodeValue===r[1]?[o]:AB:[]}};g.filter.ID=function(p,o){var q=typeof p.getAttributeNode!=="undefined"&&p.getAttributeNode("id");return p.nodeType===1&&q&&q.nodeValue===o}}n.removeChild(m)})();(function(){var l=document.createElement("div");l.appendChild(document.createComment(""));if(l.getElementsByTagName("*").length>0){g.find.TAG=function(o,p){var q=p.getElementsByTagName(o[1]);if(o[1]==="*"){var m=[];for(var n=0;q[n];n++){if(q[n].nodeType===1){m.push(q[n])}}q=m}return q}}l.innerHTML="";if(l.firstChild&&typeof l.firstChild.getAttribute!=="undefined"&&l.firstChild.getAttribute("href")!=="#"){g.attrHandle.href=function(m){return m.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var m=j,l=document.createElement("div");l.innerHTML="

";if(l.querySelectorAll&&l.querySelectorAll(".TEST").length===0){return }j=function(q,r,o,n){r=r||document;if(!n&&r.nodeType===9&&!C(r)){try{return k(r.querySelectorAll(q),o)}catch(p){}}return m(q,r,o,n)};j.find=m.find;j.filter=m.filter;j.selectors=m.selectors;j.matches=m.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var l=document.createElement("div");l.innerHTML="
";if(l.getElementsByClassName("e").length===0){return }l.lastChild.className="e";if(l.getElementsByClassName("e").length===1){return }g.order.splice(1,0,"CLASS");g.find.CLASS=function(o,n,m){if(typeof n.getElementsByClassName!=="undefined"&&!m){return n.getElementsByClassName(o[1])}}})()}function D(r,m,n,t,l,u){var v=r=="previousSibling"&&!u;for(var p=0,q=t.length;p0){o=s;break}}}s=s[r]}t[p]=o}}}var e=document.compareDocumentPosition?function(l,m){return l.compareDocumentPosition(m)&16}:function(l,m){return l!==m&&(l.contains?l.contains(m):true)};var C=function(l){return l.nodeType===9&&l.documentElement.nodeName!=="HTML"||!!l.ownerDocument&&C(l.ownerDocument)};var f=function(o,q){var l=[],s="",r,m=q.nodeType?[q]:q;while((r=g.match.PSEUDO.exec(o))){s+=r[0];o=o.replace(g.match.PSEUDO,"")}o=g.relative[o]?o+"*":o;for(var p=0,n=m.length;p0||l.offsetHeight>0};j.selectors.filters.animated=function(l){return T.grep(T.timers,function(m){return l===m.elem}).length};T.multiFilter=function(l,n,m){if(m){l=":not("+l+")"}return j.matches(l,n)};T.dir=function(m,n){var o=[],l=m[n];while(l&&l!=document){if(l.nodeType==1){o.push(l)}l=l[n]}return o};T.nth=function(p,o,m,l){o=o||1;var n=0;for(;p;p=p[m]){if(p.nodeType==1&&++n==o){break}}return p};T.sibling=function(l,m){var n=[];for(;l;l=l.nextSibling){if(l.nodeType==1&&l!=m){n.push(l)}}return n};return ;W.Sizzle=j})();T.event={add:function(C,b,D,A){if(C.nodeType==3||C.nodeType==8){return }if(C.setInterval&&C!=W){C=W}if(!D.guid){D.guid=this.guid++}if(A!==AB){var a=D;D=this.proxy(a);D.data=A}var c=T.data(C,"events")||T.data(C,"events",{}),B=T.data(C,"handle")||T.data(C,"handle",function(){return typeof T!=="undefined"&&!T.event.triggered?T.event.handle.apply(arguments.callee.elem,arguments):AB});B.elem=C;T.each(b.split(/\s+/),function(g,f){var e=f.split(".");f=e.shift();D.type=e.slice().sort().join(".");var d=c[f];if(T.event.specialAll[f]){T.event.specialAll[f].setup.call(C,A,e)}if(!d){d=c[f]={};if(!T.event.special[f]||T.event.special[f].setup.call(C,A,e)===false){if(C.addEventListener){C.addEventListener(f,B,false)}else{if(C.attachEvent){C.attachEvent("on"+f,B)}}}}d[D.guid]=D;T.event.global[f]=true});C=null},guid:1,global:{},remove:function(B,a,C){if(B.nodeType==3||B.nodeType==8){return }var b=T.data(B,"events"),c,d;if(b){if(a===AB||(typeof a==="string"&&a.charAt(0)==".")){for(var D in b){this.remove(B,D+(a||""))}}else{if(a.type){C=a.handler;a=a.type}T.each(a.split(/\s+/),function(i,g){var e=g.split(".");g=e.shift();var h=RegExp("(^|\\.)"+e.slice().sort().join(".*\\.")+"(\\.|$)");if(b[g]){if(C){delete b[g][C.guid]}else{for(var f in b[g]){if(h.test(b[g][f].type)){delete b[g][f]}}}if(T.event.specialAll[g]){T.event.specialAll[g].teardown.call(B,e)}for(c in b[g]){break}if(!c){if(!T.event.special[g]||T.event.special[g].teardown.call(B,e)===false){if(B.removeEventListener){B.removeEventListener(g,T.data(B,"handle"),false)}else{if(B.detachEvent){B.detachEvent("on"+g,T.data(B,"handle"))}}}c=null;delete b[g]}}})}for(c in b){break}if(!c){var A=T.data(B,"handle");if(A){A.elem=null}T.removeData(B,"events");T.removeData(B,"handle")}}},trigger:function(D,B,a,d){var b=D.type||D;if(!d){D=typeof D==="object"?D[AA]?D:T.extend(T.Event(b),D):T.Event(b);if(b.indexOf("!")>=0){D.type=b=b.slice(0,-1);D.exclusive=true}if(!a){D.stopPropagation();if(this.global[b]){T.each(T.cache,function(){if(this.events&&this.events[b]){T.event.trigger(D,B,this.handle.elem)}})}}if(!a||a.nodeType==3||a.nodeType==8){return AB}D.result=AB;D.target=a;B=T.makeArray(B);B.unshift(D)}D.currentTarget=a;var C=T.data(a,"handle");if(C){C.apply(a,B)}if((!a[b]||(T.nodeName(a,"a")&&b=="click"))&&a["on"+b]&&a["on"+b].apply(a,B)===false){D.result=false}if(!d&&a[b]&&!D.isDefaultPrevented()&&!(T.nodeName(a,"a")&&b=="click")){this.triggered=true;try{a[b]()}catch(A){}}this.triggered=false;if(!D.isPropagationStopped()){var c=a.parentNode||a.ownerDocument;if(c){T.event.trigger(D,B,c,true)}}},handle:function(B){var C,d;B=arguments[0]=T.event.fix(B||W.event);B.currentTarget=this;var A=B.type.split(".");B.type=A.shift();C=!A.length&&!B.exclusive;var D=RegExp("(^|\\.)"+A.slice().sort().join(".*\\.")+"(\\.|$)");d=(T.data(this,"events")||{})[B.type];for(var b in d){var a=d[b];if(C||D.test(a.type)){B.handler=a;B.data=a.data;var c=a.apply(this,arguments);if(c!==AB){B.result=c;if(c===false){B.preventDefault();B.stopPropagation()}}if(B.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(C){if(C[AA]){return C}var a=C;C=T.Event(a);for(var D=this.props.length,A;D;){A=this.props[--D];C[A]=a[A]}if(!C.target){C.target=C.srcElement||document}if(C.target.nodeType==3){C.target=C.target.parentNode}if(!C.relatedTarget&&C.fromElement){C.relatedTarget=C.fromElement==C.target?C.toElement:C.fromElement}if(C.pageX==null&&C.clientX!=null){var B=document.documentElement,b=document.body;C.pageX=C.clientX+(B&&B.scrollLeft||b&&b.scrollLeft||0)-(B.clientLeft||0);C.pageY=C.clientY+(B&&B.scrollTop||b&&b.scrollTop||0)-(B.clientTop||0)}if(!C.which&&((C.charCode||C.charCode===0)?C.charCode:C.keyCode)){C.which=C.charCode||C.keyCode}if(!C.metaKey&&C.ctrlKey){C.metaKey=C.ctrlKey}if(!C.which&&C.button){C.which=(C.button&1?1:(C.button&2?3:(C.button&4?2:0)))}return C},proxy:function(A,B){B=B||function(){return A.apply(this,arguments)};B.guid=A.guid=A.guid||B.guid||this.guid++;return B},special:{ready:{setup:P,teardown:function(){}}},specialAll:{live:{setup:function(B,A){T.event.add(this,A[0],AF)},teardown:function(A){if(A.length){var C=0,B=RegExp("(^|\\.)"+A[0]+"(\\.|$)");T.each((T.data(this,"events").live||{}),function(){if(B.test(this.type)){C++}});if(C<1){T.event.remove(this,A[0],AF)}}}}}};T.Event=function(A){if(!this.preventDefault){return new T.Event(A)}if(A&&A.type){this.originalEvent=A;this.type=A.type}else{this.type=A}this.timeStamp=AD();this[AA]=true};function X(){return false}function J(){return true}T.Event.prototype={preventDefault:function(){this.isDefaultPrevented=J;var A=this.originalEvent;if(!A){return }if(A.preventDefault){A.preventDefault()}A.returnValue=false},stopPropagation:function(){this.isPropagationStopped=J;var A=this.originalEvent;if(!A){return }if(A.stopPropagation){A.stopPropagation()}A.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=J;this.stopPropagation()},isDefaultPrevented:X,isPropagationStopped:X,isImmediatePropagationStopped:X};var AH=function(B){var C=B.relatedTarget;while(C&&C!=this){try{C=C.parentNode}catch(A){C=this}}if(C!=this){B.type=B.data;T.event.handle.apply(this,arguments)}};T.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(A,B){T.event.special[B]={setup:function(){T.event.add(this,A,AH,B)},teardown:function(){T.event.remove(this,A,AH)}}});T.fn.extend({bind:function(B,A,C){return B=="unload"?this.one(B,A,C):this.each(function(){T.event.add(this,B,C||A,C&&A)})},one:function(B,A,C){var D=T.event.proxy(C||A,function(a){T(this).unbind(a,D);return(C||A).apply(this,arguments)});return this.each(function(){T.event.add(this,B,D,C&&A)})},unbind:function(A,B){return this.each(function(){T.event.remove(this,A,B)})},trigger:function(B,A){return this.each(function(){T.event.trigger(B,A,this)})},triggerHandler:function(C,A){if(this[0]){var B=T.Event(C);B.preventDefault();B.stopPropagation();T.event.trigger(B,A,this[0]);return B.result}},toggle:function(A){var C=arguments,B=1;while(B=0){var c=a.slice(C,a.length);a=a.slice(0,C)}var D="GET";if(B){if(T.isFunction(B)){A=B;B=null}else{if(typeof B==="object"){B=T.param(B);D="POST"}}}var b=this;T.ajax({url:a,type:D,dataType:"html",data:B,complete:function(e,d){if(d=="success"||d=="notmodified"){b.html(c?T("
").append(e.responseText.replace(//g,"")).find(c):e.responseText)}if(A){b.each(A,[e.responseText,d,e])}}});return this},serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?T.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(C,B){var A=T(this).val();return A==null?null:T.isArray(A)?T.map(A,function(D,a){return{name:B.name,value:D}}):{name:B.name,value:A}}).get()}});T.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(B,A){T.fn[A]=function(C){return this.bind(A,C)}});var N=AD();T.extend({get:function(D,B,A,C){if(T.isFunction(B)){A=B;B=null}return T.ajax({type:"GET",url:D,data:B,success:A,dataType:C})},getScript:function(B,A){return T.get(B,null,A,"script")},getJSON:function(C,B,A){return T.get(C,B,A,"json")},post:function(D,B,A,C){if(T.isFunction(B)){A=B;B={}}return T.ajax({type:"POST",url:D,data:B,success:A,dataType:C})},ajaxSetup:function(A){T.extend(T.ajaxSettings,A)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return W.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(g){g=T.extend(true,g,T.extend(true,{},T.ajaxSettings,g));var A,n=/=\?(&|$)/g,b,B,m=g.type.toUpperCase();if(g.data&&g.processData&&typeof g.data!=="string"){g.data=T.param(g.data)}if(g.dataType=="jsonp"){if(m=="GET"){if(!g.url.match(n)){g.url+=(g.url.match(/\?/)?"&":"?")+(g.jsonp||"callback")+"=?"}}else{if(!g.data||!g.data.match(n)){g.data=(g.data?g.data+"&":"")+(g.jsonp||"callback")+"=?"}}g.dataType="json"}if(g.dataType=="json"&&(g.data&&g.data.match(n)||g.url.match(n))){A="jsonp"+N++;if(g.data){g.data=(g.data+"").replace(n,"="+A+"$1")}g.url=g.url.replace(n,"="+A+"$1");g.dataType="script";W[A]=function(q){B=q;k();h();W[A]=AB;try{delete W[A]}catch(p){}if(l){l.removeChild(D)}}}if(g.dataType=="script"&&g.cache==null){g.cache=false}if(g.cache===false&&m=="GET"){var o=AD();var C=g.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+o+"$2");g.url=C+((C==g.url)?(g.url.match(/\?/)?"&":"?")+"_="+o:"")}if(g.data&&m=="GET"){g.url+=(g.url.match(/\?/)?"&":"?")+g.data;g.data=null}if(g.global&&!T.active++){T.event.trigger("ajaxStart")}var c=/^(\w+:)?\/\/([^\/?#]+)/.exec(g.url);if(g.dataType=="script"&&m=="GET"&&c&&(c[1]&&c[1]!=location.protocol||c[2]!=location.host)){var l=document.getElementsByTagName("head")[0];var D=document.createElement("script");D.src=g.url;if(g.scriptCharset){D.charset=g.scriptCharset}if(!A){var e=false;D.onload=D.onreadystatechange=function(){if(!e&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){e=true;k();h();D.onload=D.onreadystatechange=null;l.removeChild(D)}}}l.appendChild(D);return AB}var i=false;var j=g.xhr();if(g.username){j.open(m,g.url,g.async,g.username,g.password)}else{j.open(m,g.url,g.async)}try{if(g.data){j.setRequestHeader("Content-Type",g.contentType)}if(g.ifModified){j.setRequestHeader("If-Modified-Since",T.lastModified[g.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}j.setRequestHeader("X-Requested-With","XMLHttpRequest");j.setRequestHeader("Accept",g.dataType&&g.accepts[g.dataType]?g.accepts[g.dataType]+", */*":g.accepts._default)}catch(a){}if(g.beforeSend&&g.beforeSend(j,g)===false){if(g.global&&!--T.active){T.event.trigger("ajaxStop")}j.abort();return false}if(g.global){T.event.trigger("ajaxSend",[j,g])}var f=function(r){if(j.readyState==0){if(d){clearInterval(d);d=null;if(g.global&&!--T.active){T.event.trigger("ajaxStop")}}}else{if(!i&&j&&(j.readyState==4||r=="timeout")){i=true;if(d){clearInterval(d);d=null}b=r=="timeout"?"timeout":!T.httpSuccess(j)?"error":g.ifModified&&T.httpNotModified(j,g.url)?"notmodified":"success";if(b=="success"){try{B=T.httpData(j,g.dataType,g)}catch(p){b="parsererror"}}if(b=="success"){var q;try{q=j.getResponseHeader("Last-Modified")}catch(p){}if(g.ifModified&&q){T.lastModified[g.url]=q}if(!A){k()}}else{T.handleError(g,j,b)}h();if(r){j.abort()}if(g.async){j=null}}}};if(g.async){var d=setInterval(f,13);if(g.timeout>0){setTimeout(function(){if(j&&!i){f("timeout")}},g.timeout)}}try{j.send(g.data)}catch(a){T.handleError(g,j,null,a)}if(!g.async){f()}function k(){if(g.success){g.success(B,b)}if(g.global){T.event.trigger("ajaxSuccess",[j,g])}}function h(){if(g.complete){g.complete(j,b)}if(g.global){T.event.trigger("ajaxComplete",[j,g])}if(g.global&&!--T.active){T.event.trigger("ajaxStop")}}return j},handleError:function(C,A,D,B){if(C.error){C.error(A,D,B)}if(C.global){T.event.trigger("ajaxError",[A,C,B])}},active:0,httpSuccess:function(A){try{return !A.status&&location.protocol=="file:"||(A.status>=200&&A.status<300)||A.status==304||A.status==1223}catch(B){}return false},httpNotModified:function(B,D){try{var A=B.getResponseHeader("Last-Modified");return B.status==304||A==T.lastModified[D]}catch(C){}return false},httpData:function(A,C,D){var a=A.getResponseHeader("content-type"),b=C=="xml"||!C&&a&&a.indexOf("xml")>=0,B=b?A.responseXML:A.responseText;if(b&&B.documentElement.tagName=="parsererror"){throw"parsererror"}if(D&&D.dataFilter){B=D.dataFilter(B,C)}if(typeof B==="string"){if(C=="script"){T.globalEval(B)}if(C=="json"){B=W["eval"]("("+B+")")}}return B},param:function(D){var B=[];function A(b,a){B[B.length]=encodeURIComponent(b)+"="+encodeURIComponent(a)}if(T.isArray(D)||D.jquery){T.each(D,function(){A(this.name,this.value)})}else{for(var C in D){if(T.isArray(D[C])){T.each(D[C],function(){A(C,this)})}else{A(C,T.isFunction(D[C])?D[C]():D[C])}}}return B.join("&").replace(/%20/g,"+")}});var V={},U,AE=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function K(B,C){var A={};T.each(AE.concat.apply([],AE.slice(0,C)),function(){A[this]=B});return A}T.fn.extend({show:function(C,A){if(C){return this.animate(K("show",3),C,A)}else{for(var a=0,c=this.length;a").appendTo("body");B=D.css("display");if(B==="none"){B="block"}D.remove();V[b]=B}T.data(this[a],"olddisplay",B)}}for(var a=0,c=this.length;a=0;D--){if(A[D].elem==this){if(C){A[D](true)}A.splice(D,1)}}});if(!C){this.dequeue()}return this}});T.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(B,A){T.fn[B]=function(D,C){return this.animate(A,D,C)}});T.extend({speed:function(B,A,C){var D=typeof B==="object"?B:{complete:C||!C&&A||T.isFunction(B)&&B,duration:B,easing:C&&A||A&&!T.isFunction(A)&&A};D.duration=T.fx.off?0:typeof D.duration==="number"?D.duration:T.fx.speeds[D.duration]||T.fx.speeds._default;D.old=D.complete;D.complete=function(){if(D.queue!==false){T(this).dequeue()}if(T.isFunction(D.old)){D.old.call(this)}};return D},easing:{linear:function(B,A,D,C){return D+C*B},swing:function(B,A,D,C){return((-Math.cos(B*Math.PI)/2)+0.5)*C+D}},timers:[],fx:function(B,C,A){this.options=C;this.elem=B;this.prop=A;if(!C.orig){C.orig={}}}});T.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(T.fx.step[this.prop]||T.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(A){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var B=parseFloat(T.css(this.elem,this.prop,A));return B&&B>-10000?B:parseFloat(T.curCSS(this.elem,this.prop))||0},custom:function(A,B,C){this.startTime=AD();this.start=A;this.end=B;this.unit=C||this.unit||"px";this.now=this.start;this.pos=this.state=0;var a=this;function D(b){return a.step(b)}D.elem=this.elem;if(D()&&T.timers.push(D)&&!U){U=setInterval(function(){var b=T.timers;for(var c=0;c=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var b=true;for(var a in this.options.curAnim){if(this.options.curAnim[a]!==true){b=false}}if(b){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(T.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){T(this.elem).hide()}if(this.options.hide||this.options.show){for(var B in this.options.curAnim){T.attr(this.elem.style,B,this.options.orig[B])}}this.options.complete.call(this.elem)}return false}else{var A=D-this.startTime;this.state=A/this.options.duration;this.pos=T.easing[this.options.easing||(T.easing.swing?"swing":"linear")](this.state,A,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};T.extend(T.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(A){T.attr(A.elem.style,"opacity",A.now)},_default:function(A){if(A.elem.style&&A.elem.style[A.prop]!=null){A.elem.style[A.prop]=A.now+A.unit}else{A.elem[A.prop]=A.now}}}});if(document.documentElement.getBoundingClientRect){T.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return T.offset.bodyOffset(this[0])}var b=this[0].getBoundingClientRect(),C=this[0].ownerDocument,c=C.body,d=C.documentElement,A=d.clientTop||c.clientTop||0,B=d.clientLeft||c.clientLeft||0,D=b.top+(self.pageYOffset||T.boxModel&&d.scrollTop||c.scrollTop)-A,a=b.left+(self.pageXOffset||T.boxModel&&d.scrollLeft||c.scrollLeft)-B;return{top:D,left:a}}}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 b=this[0],e=b.offsetParent,f=b,A=b.ownerDocument,C,d=A.documentElement,a=A.body,D=A.defaultView,g=D.getComputedStyle(b,null),B=b.offsetTop,c=b.offsetLeft;while((b=b.parentNode)&&b!==a&&b!==d){C=D.getComputedStyle(b,null);B-=b.scrollTop,c-=b.scrollLeft;if(b===e){B+=b.offsetTop,c+=b.offsetLeft;if(T.offset.doesNotAddBorder&&!(T.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.tagName))){B+=parseInt(C.borderTopWidth,10)||0,c+=parseInt(C.borderLeftWidth,10)||0}f=e,e=b.offsetParent}if(T.offset.subtractsBorderForOverflowNotVisible&&C.overflow!=="visible"){B+=parseInt(C.borderTopWidth,10)||0,c+=parseInt(C.borderLeftWidth,10)||0}g=C}if(g.position==="relative"||g.position==="static"){B+=a.offsetTop,c+=a.offsetLeft}if(g.position==="fixed"){B+=Math.max(d.scrollTop,a.scrollTop),c+=Math.max(d.scrollLeft,a.scrollLeft)}return{top:B,left:c}}}T.offset={initialize:function(){if(this.initialized){return }var C=document.body,e=document.createElement("div"),c,d,A,b,B,f,a=C.style.marginTop,D='
';B={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(f in B){e.style[f]=B[f]}e.innerHTML=D;C.insertBefore(e,C.firstChild);c=e.firstChild,d=c.firstChild,b=c.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(d.offsetTop!==5);this.doesAddBorderForTableAndCells=(b.offsetTop===5);c.style.overflow="hidden",c.style.position="relative";this.subtractsBorderForOverflowNotVisible=(d.offsetTop===-5);C.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(C.offsetTop===0);C.style.marginTop=a;C.removeChild(e);this.initialized=true},bodyOffset:function(C){T.offset.initialized||T.offset.initialize();var A=C.offsetTop,B=C.offsetLeft;if(T.offset.doesNotIncludeMarginInBodyOffset){A+=parseInt(T.curCSS(C,"marginTop",true),10)||0,B+=parseInt(T.curCSS(C,"marginLeft",true),10)||0}return{top:A,left:B}}};T.fn.extend({position:function(){var B=0,C=0,a;if(this[0]){var D=this.offsetParent(),A=this.offset(),b=/^body|html$/i.test(D[0].tagName)?{top:0,left:0}:D.offset();A.top-=Y(this,"marginTop");A.left-=Y(this,"marginLeft");b.top+=Y(D,"borderTopWidth");b.left+=Y(D,"borderLeftWidth");a={top:A.top-b.top,left:A.left-b.left}}return a},offsetParent:function(){var A=this[0].offsetParent||document.body;while(A&&(!/^body|html$/i.test(A.tagName)&&T.css(A,"position")=="static")){A=A.offsetParent}return T(A)}});T.each(["Left","Top"],function(B,C){var A="scroll"+C;T.fn[A]=function(D){if(!this[0]){return null}return D!==AB?this.each(function(){this==W||this==document?W.scrollTo(!B?D:T(W).scrollLeft(),B?D:T(W).scrollTop()):this[A]=D}):this[0]==W||this[0]==document?self[B?"pageYOffset":"pageXOffset"]||T.boxModel&&document.documentElement[A]||document.body[A]:this[0][A]}});T.each(["Height","Width"],function(B,D){var b=B?"Left":"Top",C=B?"Right":"Bottom",a=D.toLowerCase();T.fn["inner"+D]=function(){return this[0]?T.css(this[0],a,false,"padding"):null};T.fn["outer"+D]=function(c){return this[0]?T.css(this[0],a,false,c?"margin":"border"):null};var A=D.toLowerCase();T.fn[A]=function(c){return this[0]==W?document.compatMode=="CSS1Compat"&&document.documentElement["client"+D]||document.body["client"+D]:this[0]==document?Math.max(document.documentElement["client"+D],document.body["scroll"+D],document.documentElement["scroll"+D],document.body["offset"+D],document.documentElement["offset"+D]):c===AB?(this.length?T.css(this[0],A):null):this.css(A,typeof c==="string"?c:c+"px")}})})();jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(B,C,A,E,D){return jQuery.easing[jQuery.easing.def](B,C,A,E,D)},easeInQuad:function(B,C,A,E,D){return E*(C/=D)*C+A},easeOutQuad:function(B,C,A,E,D){return -E*(C/=D)*(C-2)+A},easeInOutQuad:function(B,C,A,E,D){if((C/=D/2)<1){return E/2*C*C+A}return -E/2*((--C)*(C-2)-1)+A},easeInCubic:function(B,C,A,E,D){return E*(C/=D)*C*C+A},easeOutCubic:function(B,C,A,E,D){return E*((C=C/D-1)*C*C+1)+A},easeInOutCubic:function(B,C,A,E,D){if((C/=D/2)<1){return E/2*C*C*C+A}return E/2*((C-=2)*C*C+2)+A},easeInQuart:function(B,C,A,E,D){return E*(C/=D)*C*C*C+A},easeOutQuart:function(B,C,A,E,D){return -E*((C=C/D-1)*C*C*C-1)+A},easeInOutQuart:function(B,C,A,E,D){if((C/=D/2)<1){return E/2*C*C*C*C+A}return -E/2*((C-=2)*C*C*C-2)+A},easeInQuint:function(B,C,A,E,D){return E*(C/=D)*C*C*C*C+A},easeOutQuint:function(B,C,A,E,D){return E*((C=C/D-1)*C*C*C*C+1)+A},easeInOutQuint:function(B,C,A,E,D){if((C/=D/2)<1){return E/2*C*C*C*C*C+A}return E/2*((C-=2)*C*C*C*C+2)+A},easeInSine:function(B,C,A,E,D){return -E*Math.cos(C/D*(Math.PI/2))+E+A},easeOutSine:function(B,C,A,E,D){return E*Math.sin(C/D*(Math.PI/2))+A},easeInOutSine:function(B,C,A,E,D){return -E/2*(Math.cos(Math.PI*C/D)-1)+A},easeInExpo:function(B,C,A,E,D){return(C==0)?A:E*Math.pow(2,10*(C/D-1))+A},easeOutExpo:function(B,C,A,E,D){return(C==D)?A+E:E*(-Math.pow(2,-10*C/D)+1)+A},easeInOutExpo:function(B,C,A,E,D){if(C==0){return A}if(C==D){return A+E}if((C/=D/2)<1){return E/2*Math.pow(2,10*(C-1))+A}return E/2*(-Math.pow(2,-10*--C)+2)+A},easeInCirc:function(B,C,A,E,D){return -E*(Math.sqrt(1-(C/=D)*C)-1)+A},easeOutCirc:function(B,C,A,E,D){return E*Math.sqrt(1-(C=C/D-1)*C)+A},easeInOutCirc:function(B,C,A,E,D){if((C/=D/2)<1){return -E/2*(Math.sqrt(1-C*C)-1)+A}return E/2*(Math.sqrt(1-(C-=2)*C)+1)+A},easeInElastic:function(B,D,A,H,G){var E=1.70158;var F=0;var C=H;if(D==0){return A}if((D/=G)==1){return A+H}if(!F){F=G*0.3}if(C=B.left&&A<=B.right&&D>=B.top&&D<=B.bottom)}});jQuery.fn.extend({everyTime:function(B,C,D,E,A){return this.each(function(){jQuery.timer.add(this,B,C,D,E,A)})},oneTime:function(A,B,C){return this.each(function(){jQuery.timer.add(this,A,B,C,1)})},stopTime:function(A,B){return this.each(function(){jQuery.timer.remove(this,A,B)})}});jQuery.event.special;jQuery.extend({timer:{global:[],guid:1,dataKey:"jQuery.timer",regex:/^([0-9]+(?:\.[0-9]*)?)\s*(.*s)?$/,powers:{ms:1,cs:10,ds:100,s:1000,das:10000,hs:100000,ks:1000000},timeParse:function(C){if(C==undefined||C==null){return null}var A=this.regex.exec(jQuery.trim(C.toString()));if(A[2]){var B=parseFloat(A[1]);var D=this.powers[A[2]]||1;return B*D}else{return C}},add:function(E,C,H,G,B,F){var A=0;if(jQuery.isFunction(H)){if(!B){B=G}G=H;H=C}C=jQuery.timer.timeParse(C);if(typeof C!="number"||isNaN(C)||C<=0){return }if(B&&B.constructor!=Number){F=!!B;B=0}B=B||0;F=F||false;var D=jQuery.data(E,this.dataKey)||jQuery.data(E,this.dataKey,{});if(!D[H]){D[H]={}}G.timerID=G.timerID||this.guid++;var I=function(){if(F&&this.inProgress){return }this.inProgress=true;if((++A>B&&B!==0)||G.call(E,A)===false){jQuery.timer.remove(E,H,G)}this.inProgress=false};I.timerID=G.timerID;if(!D[H][G.timerID]){D[H][G.timerID]=window.setInterval(I,C)}this.global.push(E)},remove:function(C,B,D){var E=jQuery.data(C,this.dataKey),A;if(E){if(!B){for(B in E){this.remove(C,B,D)}}else{if(E[B]){if(D){if(D.timerID){window.clearInterval(E[B][D.timerID]);delete E[B][D.timerID]}}else{for(var D in E[B]){window.clearInterval(E[B][D]);delete E[B][D]}}for(A in E[B]){break}if(!A){A=null;delete E[B]}}}for(A in E){break}if(!A){jQuery.removeData(C,this.dataKey)}}}}});jQuery(window).bind("unload",function(){jQuery.each(jQuery.timer.global,function(A,B){jQuery.timer.remove(B)})});if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={}}YAHOO.namespace=function(){var F=arguments,G=null,I,J,H;for(I=0;I0)?D.dump(A[Q],N-1):B)}else{C.push(A[Q])}C.push(M)}if(C.length>1){C.pop()}C.push("]")}else{C.push("{");for(Q in A){if(D.hasOwnProperty(A,Q)){C.push(Q+P);if(D.isObject(A[Q])){C.push((N>0)?D.dump(A[Q],N-1):B)}else{C.push(A[Q])}C.push(M)}}if(C.length>1){C.pop()}C.push("}")}return C.join("")},substitute:function(B,f,Y){var b,c,d,V,U,C,W=[],e,a="dump",X=" ",A="{",T="}";for(;;){b=B.lastIndexOf(A);if(b<0){break}c=B.indexOf(T,b);if(b+1>=c){break}e=B.substring(b+1,c);V=e;C=null;d=V.indexOf(X);if(d>-1){C=V.substring(d+1);V=V.substring(0,d)}U=f[V];if(Y){U=Y(V,U,C)}if(D.isObject(U)){if(D.isArray(U)){U=D.dump(U,parseInt(C,10))}else{C=C||"";var Z=C.indexOf(a);if(Z>-1){C=C.substring(4)}if(U.toString===Object.prototype.toString||Z>-1){U=D.dump(U,parseInt(C,10))}else{U=U.toString()}}}else{if(!D.isString(U)&&!D.isNumber(U)){U="~-"+W.length+"-~";W[W.length]=e}}B=B.substring(0,b)+U+B.substring(c+1)}for(b=W.length-1;b>=0;b=b-1){B=B.replace(new RegExp("~-"+b+"-~"),"{"+W[b]+"}","g")}return B},trim:function(B){try{return B.replace(/^\s+|\s+$/g,"")}catch(A){return B}},merge:function(){var A={},C=arguments;for(var B=0,H=C.length;B=this.left&&B.right<=this.right&&B.top>=this.top&&B.bottom<=this.bottom)};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left))};YAHOO.util.Region.prototype.intersect=function(G){var I=Math.max(this.top,G.top);var H=Math.min(this.right,G.right);var F=Math.min(this.bottom,G.bottom);var J=Math.max(this.left,G.left);if(F>=I&&H>=J){return new YAHOO.util.Region(I,H,F,J)}else{return null}};YAHOO.util.Region.prototype.union=function(G){var I=Math.min(this.top,G.top);var H=Math.max(this.right,G.right);var F=Math.max(this.bottom,G.bottom);var J=Math.min(this.left,G.left);return new YAHOO.util.Region(I,H,F,J)};YAHOO.util.Region.prototype.toString=function(){return("Region {top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+"}")};YAHOO.util.Region.getRegion=function(J){var H=YAHOO.util.Dom.getXY(J);var K=H[1];var I=H[0]+J.offsetWidth;var G=H[1]+J.offsetHeight;var L=H[0];return new YAHOO.util.Region(K,I,G,L)};YAHOO.util.Point=function(C,D){if(YAHOO.lang.isArray(C)){D=C[1];C=C[0]}this.x=this.right=this.left=this[0]=C;this.y=this.top=this.bottom=this[1]=D};YAHOO.util.Point.prototype=new YAHOO.util.Region();YAHOO.register("dom",YAHOO.util.Dom,{version:"2.5.2",build:"1076"});YAHOO.util.CustomEvent=function(H,J,I,F){this.type=H;this.scope=J||window;this.silent=I;this.signature=F||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var G="_YUICEOnSubscribe";if(H!==G){this.subscribeEvent=new YAHOO.util.CustomEvent(G,this,true)}this.lastError=null};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(F,E,D){if(!F){throw new Error("Invalid callback for subscriber to '"+this.type+"'")}if(this.subscribeEvent){this.subscribeEvent.fire(F,E,D)}this.subscribers.push(new YAHOO.util.Subscriber(F,E,D))},unsubscribe:function(J,H){if(!J){return this.unsubscribeAll()}var I=false;for(var L=0,G=this.subscribers.length;L0){P=V[0]}try{X=R.fn.call(S,P,R.obj)}catch(Y){this.lastError=Y;if(Q){throw Y}}}else{try{X=R.fn.call(S,this.type,V,R.obj)}catch(W){this.lastError=W;if(Q){throw W}}}if(false===X){if(!this.silent){}break}}}return(X!==false)},unsubscribeAll:function(){for(var B=this.subscribers.length-1;B>-1;B--){this._delete(B)}this.subscribers=[];return B},_delete:function(C){var D=this.subscribers[C];if(D){delete D.fn;delete D.obj}this.subscribers.splice(C,1)},toString:function(){return"CustomEvent: '"+this.type+"', scope: "+this.scope}};YAHOO.util.Subscriber=function(F,E,D){this.fn=F;this.obj=YAHOO.lang.isUndefined(E)?null:E;this.override=D};YAHOO.util.Subscriber.prototype.getScope=function(B){if(this.override){if(this.override===true){return this.obj}else{return this.override}}return B};YAHOO.util.Subscriber.prototype.contains=function(C,D){if(D){return(this.fn==C&&this.obj==D)}else{return(this.fn==C)}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", override: "+(this.override||"no")+" }"};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var Q=false;var P=[];var O=[];var R=[];var T=[];var L=0;var S=[];var M=[];var N=0;var K={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9};return{POLL_RETRYS:2000,POLL_INTERVAL:20,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:YAHOO.env.ua.ie,_interval:null,_dri:null,DOMReady:false,throwErrors:false,startInterval:function(){if(!this._interval){var B=this;var A=function(){B._tryPreloadAttach()};this._interval=setInterval(A,this.POLL_INTERVAL)}},onAvailable:function(D,G,C,E,F){var B=(YAHOO.lang.isString(D))?[D]:D;for(var A=0;A-1;H--){B=(this.removeListener(W[H],X,C)&&B)}return B}}if(!C||!C.call){return this.purgeElement(W,false,X)}if("unload"==X){for(H=O.length-1;H>-1;H--){A=O[H];if(A&&A[0]==W&&A[1]==X&&A[2]==C){O.splice(H,1);return true}}return false}var G=null;var F=arguments[3];if("undefined"===typeof F){F=this._getCacheIndex(W,X,C)}if(F>=0){G=P[F]}if(!W||!G){return false}if(this.useLegacyEvent(W,X)){var I=this.getLegacyIndex(W,X);var J=T[I];if(J){for(H=0,E=J.length;H0&&S.length>0)}var E=[];var C=function(J,I){var V=J;if(I.override){if(I.override===true){V=I.obj}else{V=I.override}}I.fn.call(V,I.obj)};var A,B,F,G,H=[];for(A=0,B=S.length;A-1;A--){F=S[A];if(!F||!F.id){S.splice(A,1)}}this.startInterval()}else{clearInterval(this._interval);this._interval=null}this.locked=false},purgeElement:function(F,E,C){var H=(YAHOO.lang.isString(F))?this.getEl(F):F;var D=this.getListeners(H,C),G,B;if(D){for(G=D.length-1;G>-1;G--){var A=D[G];this.removeListener(H,A.type,A.fn)}}if(E&&H&&H.childNodes){for(G=0,B=H.childNodes.length;G-1;G--){H=P[G];if(H){I.removeListener(H[I.EL],H[I.TYPE],H[I.FN],G)}}H=null}R=null;I._simpleRemove(window,"unload",I._unload)},_getScrollLeft:function(){return this._getScroll()[1]},_getScrollTop:function(){return this._getScroll()[0]},_getScroll:function(){var B=document.documentElement,A=document.body;if(B&&(B.scrollTop||B.scrollLeft)){return[B.scrollTop,B.scrollLeft]}else{if(A){return[A.scrollTop,A.scrollLeft]}else{return[0,0]}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(D,C,A,B){D.addEventListener(C,A,(B))}}else{if(window.attachEvent){return function(D,C,A,B){D.attachEvent("on"+C,A)}}else{return function(){}}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(D,C,A,B){D.removeEventListener(C,A,(B))}}else{if(window.detachEvent){return function(A,C,B){A.detachEvent("on"+C,B)}}else{return function(){}}}}()}}();(function(){var A=YAHOO.util.Event;A.on=A.addListener;if(A.isIE){YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var B=document.createElement("p");A._dri=setInterval(function(){try{B.doScroll("left");clearInterval(A._dri);A._dri=null;A._ready();B=null}catch(C){}},A.POLL_INTERVAL)}else{if(A.webkit&&A.webkit<525){A._dri=setInterval(function(){var C=document.readyState;if("loaded"==C||"complete"==C){clearInterval(A._dri);A._dri=null;A._ready()}},A.POLL_INTERVAL)}else{A._simpleAdd(document,"DOMContentLoaded",A._ready)}}A._simpleAdd(window,"load",A._load);A._simpleAdd(window,"unload",A._unload);A._tryPreloadAttach()})()}YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(G,K,H,I){this.__yui_events=this.__yui_events||{};var J=this.__yui_events[G];if(J){J.subscribe(K,H,I)}else{this.__yui_subscribers=this.__yui_subscribers||{};var L=this.__yui_subscribers;if(!L[G]){L[G]=[]}L[G].push({fn:K,obj:H,override:I})}},unsubscribe:function(M,K,I){this.__yui_events=this.__yui_events||{};var H=this.__yui_events;if(M){var J=H[M];if(J){return J.unsubscribe(K,I)}}else{var N=true;for(var L in H){if(YAHOO.lang.hasOwnProperty(H,L)){N=N&&H[L].unsubscribe(K,I)}}return N}return false},unsubscribeAll:function(B){return this.unsubscribe(B)},createEvent:function(P,J){this.__yui_events=this.__yui_events||{};var M=J||{};var N=this.__yui_events;if(N[P]){}else{var O=M.scope||this;var R=(M.silent);var L=new YAHOO.util.CustomEvent(P,O,R,YAHOO.util.CustomEvent.FLAT);N[P]=L;if(M.onSubscribeCallback){L.subscribeEvent.subscribe(M.onSubscribeCallback)}this.__yui_subscribers=this.__yui_subscribers||{};var Q=this.__yui_subscribers[P];if(Q){for(var K=0;K0)?A:0}D.Dom.setStyle(this.getEl(),F,A+B)},getAttribute:function(L){var J=this.getEl();var B=D.Dom.getStyle(J,L);if(B!=="auto"&&!this.patterns.offsetUnit.test(B)){return parseFloat(B)}var K=this.patterns.offsetAttribute.exec(L)||[];var A=!!(K[3]);var I=!!(K[2]);if(I||(D.Dom.getStyle(J,"position")=="absolute"&&A)){B=J["offset"+K[0].charAt(0).toUpperCase()+K[0].substr(1)]}else{B=0}return B},getDefaultUnit:function(A){if(this.patterns.defaultUnit.test(A)){return"px"}return""},setRuntimeAttribute:function(M){var A;var L;var K=this.attributes;this.runtimeAttributes[M]={};var B=function(E){return(typeof E!=="undefined")};if(!B(K[M]["to"])&&!B(K[M]["by"])){return false}A=(B(K[M]["from"]))?K[M]["from"]:this.getAttribute(M);if(B(K[M]["to"])){L=K[M]["to"]}else{if(B(K[M]["by"])){if(A.constructor==Array){L=[];for(var J=0,N=A.length;J0&&isFinite(A)){if(E.currentFrame+A>=B){A=B-(C+1)}E.currentFrame+=A}}};YAHOO.util.Bezier=new function(){this.getPosition=function(I,J){var H=I.length;var K=[];for(var L=0;L0&&!(E[0] instanceof Array)){E=[E]}else{var F=[];for(D=0,B=E.length;D0){this.runtimeAttributes[A]=this.runtimeAttributes[A].concat(E)}this.runtimeAttributes[A][this.runtimeAttributes[A].length]=R}else{H.setRuntimeAttribute.call(this,A)}};var L=function(C,A){var B=I.Dom.getXY(this.getEl());C=[C[0]-B[0]+A[0],C[1]-B[1]+A[1]];return C};var J=function(A){return(typeof A!=="undefined")};I.Motion=G})();(function(){var F=function(C,D,B,A){if(C){F.superclass.constructor.call(this,C,D,B,A)}};F.NAME="Scroll";var H=YAHOO.util;YAHOO.extend(F,H.ColorAnim);var G=F.superclass;var E=F.prototype;E.doMethod=function(D,A,C){var B=null;if(D=="scroll"){B=[this.method(this.currentFrame,A[0],C[0]-A[0],this.totalFrames),this.method(this.currentFrame,A[1],C[1]-A[1],this.totalFrames)]}else{B=G.doMethod.call(this,D,A,C)}return B};E.getAttribute=function(C){var A=null;var B=this.getEl();if(C=="scroll"){A=[B.scrollLeft,B.scrollTop]}else{A=G.getAttribute.call(this,C)}return A};E.setAttribute=function(D,A,B){var C=this.getEl();if(D=="scroll"){C.scrollLeft=A[0];C.scrollTop=A[1]}else{G.setAttribute.call(this,D,A,B)}};H.Scroll=F})();YAHOO.register("animation",YAHOO.util.Anim,{version:"2.5.2",build:"1076"});YAHOO.util.Attribute=function(D,C){if(C){this.owner=C;this.configure(D,true)}};YAHOO.util.Attribute.prototype={name:undefined,value:null,owner:null,readOnly:false,writeOnce:false,_initialConfig:null,_written:false,method:null,validator:null,getValue:function(){return this.value},setValue:function(H,L){var I;var G=this.owner;var K=this.name;var J={type:K,prevValue:this.getValue(),newValue:H};if(this.readOnly||(this.writeOnce&&this._written)){return false}if(this.validator&&!this.validator.call(G,H)){return false}if(!L){I=G.fireBeforeChangeEvent(J);if(I===false){return false}}if(this.method){this.method.call(G,H)}this.value=H;this._written=true;J.type=K;if(!L){this.owner.fireChangeEvent(J)}return true},configure:function(F,E){F=F||{};this._written=false;this._initialConfig=this._initialConfig||{};for(var D in F){if(D&&YAHOO.lang.hasOwnProperty(F,D)){this[D]=F[D];if(E){this._initialConfig[D]=F[D]}}}},resetValue:function(){return this.setValue(this._initialConfig.value)},resetConfig:function(){this.configure(this._initialConfig)},refresh:function(B){this.setValue(this.value,B)}};(function(){var B=YAHOO.util.Lang;YAHOO.util.AttributeProvider=function(){};YAHOO.util.AttributeProvider.prototype={_configs:null,get:function(A){this._configs=this._configs||{};var D=this._configs[A];if(!D){return undefined}return D.value},set:function(F,A,H){this._configs=this._configs||{};var G=this._configs[F];if(!G){return false}return G.setValue(A,H)},getAttributeKeys:function(){this._configs=this._configs;var A=[];var F;for(var E in this._configs){F=this._configs[E];if(B.hasOwnProperty(this._configs,E)&&!B.isUndefined(F)){A[A.length]=E}}return A},setAttributes:function(A,F){for(var E in A){if(B.hasOwnProperty(A,E)){this.set(E,A[E],F)}}},resetValue:function(A,D){this._configs=this._configs||{};if(this._configs[A]){this.set(A,this._configs[A]._initialConfig.value,D);return true}return false},refresh:function(A,G){this._configs=this._configs;A=((B.isString(A))?[A]:A)||this.getAttributeKeys();for(var F=0,H=A.length;F-1},"|=":function(A,B){return l("^"+B+"[-]?").test(A)},"^=":function(A,B){return A.indexOf(B)===0},"$=":function(A,B){return A.lastIndexOf(B)===A.length-B.length},"*=":function(A,B){return A.indexOf(B)>-1},"":function(A,B){return A}},pseudos:{root:function(A){return A===A.ownerDocument.documentElement},"nth-child":function(A,B){return a(A,B)},"nth-last-child":function(A,B){return a(A,B,null,true)},"nth-of-type":function(A,B){return a(A,B,A.tagName)},"nth-last-of-type":function(A,B){return a(A,B,A.tagName,true)},"first-child":function(A){return m(A.parentNode)[0]===A},"last-child":function(B){var A=m(B.parentNode);return A[A.length-1]===B},"first-of-type":function(A,B){return m(A.parentNode,A.tagName.toLowerCase())[0]},"last-of-type":function(C,B){var A=m(C.parentNode,C.tagName.toLowerCase());return A[A.length-1]},"only-child":function(B){var A=m(B.parentNode);return A.length===1&&A[0]===B},"only-of-type":function(A){return m(A.parentNode,A.tagName.toLowerCase()).length===1},empty:function(A){return A.childNodes.length===0},not:function(A,B){return !Y.test(A,B)},contains:function(A,B){var C=A.innerText||A.textContent||"";return C.indexOf(B)>-1},checked:function(A){return A.checked===true}},test:function(B,D){B=Y.document.getElementById(B)||B;if(!B){return false}var E=D?D.split(","):[];if(E.length){for(var C=0,A=E.length;C1){var F;for(var L=0,K=B.length;L":function(B,A){return W(B.parentNode,null,A.previous)},"+":function(B,C){var A=B.previousSibling;while(A&&A.nodeType!==1){A=A.previousSibling}if(A&&W(A,null,C.previous)){return true}return false},"~":function(B,C){var A=B.previousSibling;while(A){if(A.nodeType===1&&W(A,null,C.previous)){return true}A=A.previousSibling}return false}};var m=function(){if(document.documentElement.children){return function(B,A){return(A)?B.children.tags(A):B.children||[]}}else{return function(C,F){if(C._children){return C._children}var D=[],B=C.childNodes;for(var E=0,A=B.length;E=0&&I[B]===C){return true}}}else{for(var B=I.length-J,A=I.length;B>=0;B-=H){if(B+~]|\s)\s*/};var p=function(B){var E={},A=[],G,C=false,F;B=r(B);do{C=false;for(var D in o){if(!YAHOO.lang.hasOwnProperty(o,D)){continue}if(D!="tag"&&D!="combinator"){E[D]=E[D]||[]}if(F=o[D].exec(B)){C=true;if(D!="tag"&&D!="combinator"){if(D==="attributes"&&F[1]==="id"){E.id=F[3]}E[D].push(F.slice(1))}else{E[D]=F[1]}B=B.replace(F[0],"");if(D==="combinator"||!B.length){E.attributes=i(E.attributes);E.pseudos=E.pseudos||[];E.tag=E.tag?E.tag.toUpperCase():"*";A.push(E);E={previous:E}}}}}while(C);return A};var i=function(D){var C=Y.attrAliases;D=D||[];for(var B=0,A=D.length;B=200&&L<300||L===1223){M=this.createResponseObject(J,N);if(I&&I.success){if(!I.scope){I.success(M);YAHOO.log("Success callback. HTTP code is "+L,"info","Connection")}else{I.success.apply(I.scope,[M]);YAHOO.log("Success callback with scope. HTTP code is "+L,"info","Connection")}}this.successEvent.fire(M);if(J.successEvent){J.successEvent.fire(M)}}else{switch(L){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:M=this.createExceptionObject(J.tId,N,(H?H:false));if(I&&I.failure){if(!I.scope){I.failure(M);YAHOO.log("Failure callback. Exception detected. Status code is "+L,"warn","Connection")}else{I.failure.apply(I.scope,[M]);YAHOO.log("Failure callback with scope. Exception detected. Status code is "+L,"warn","Connection")}}break;default:M=this.createResponseObject(J,N);if(I&&I.failure){if(!I.scope){I.failure(M);YAHOO.log("Failure callback. HTTP status code is "+L,"warn","Connection")}else{I.failure.apply(I.scope,[M]);YAHOO.log("Failure callback with scope. HTTP status code is "+L,"warn","Connection")}}}this.failureEvent.fire(M);if(J.failureEvent){J.failureEvent.fire(M)}}this.releaseObject(J);M=null},createResponseObject:function(M,P){var J={};var N={};try{var K=M.conn.getAllResponseHeaders();var Q=K.split("\n");for(var R=0;R');if(typeof D=="boolean"){E.src="javascript:false"}}else{E=document.createElement("iframe");E.id=F;E.name=F}E.style.position="absolute";E.style.top="-1000px";E.style.left="-1000px";document.body.appendChild(E);YAHOO.log("File upload iframe created. Id is:"+F,"info","Connection")},appendPostData:function(F){var H=[];var J=F.split("&");for(var I=0;I0){for(var Z=0;Z=0;--H){if(O[H]===L){return"null"}}O[O.length]=L;E=[];if(F>0){for(H=L.length-1;H>=0;--H){E[H]=V(L[H],D,F-1)||"null"}}O.pop();return"["+E.join(",")+"]"}if(A==="object"){if(!L){return"null"}for(H=O.length-1;H>=0;--H){if(O[H]===L){return"null"}}O[O.length]=L;E=[];if(F>0){if(D){for(H=0,I=0,G=D.length;H=0?W:1/0;return V(N,S,W)}};YAHOO.register("json",YAHOO.lang.JSON,{version:"2.5.2",build:"1076"});if(!window.console){window.console=new function(){this.log=function(A){};this.dir=function(A){}}}var UKTV={NS:"UKTV"};UKTV.loader=new function(){this.NS="UKTV.loader";var D=new Array();var A=false;var C=function(){YAHOO.util.Dom.addClass(this,"js");YAHOO.util.Dom.removeClass(this,"nojs");if(YAHOO.env.ua.opera){YAHOO.util.Dom.addClass(this,"opera")}if(YAHOO.env.ua.webkit){YAHOO.util.Dom.addClass(this,"safari")}if(navigator.appVersion.indexOf("Mac")>-1){YAHOO.util.Dom.addClass(this,"mac")}if(YAHOO.env.ua.gecko){YAHOO.util.Dom.addClass(this,"firefox")}if(YAHOO.env.ua.gecko>1.8){YAHOO.util.Dom.addClass(this,"ff3")}};var B=function(G){if(G){var F='';document.write(F)}};this.loadStyleSheet=B;var E=function(){var F=D.length;while(F--){D[F].init.call()}};this.registerObj=function(F){D[D.length]=F};YAHOO.util.Event.onAvailable("html-body",C,this);YAHOO.util.Event.onDOMReady(E)};Array.prototype.contains=function(B){var A;for(A=0;A0){B+='flashvars="'+D+'"'}B+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX")}B='';B+='';var C=this.getParams();for(var E in C){B+=''}var A=this.getVariablePairs().join("&");if(A.length>0){B+=''}B+='';B+='';B+=""}return B},write:function(B){if(this.getAttribute("useExpressInstall")){var A=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(A)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var C=(typeof B=="string")?document.getElementById(B):B;C.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(G,F){var D=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var A=navigator.plugins["Shockwave Flash"];if(A&&A.description){D=new deconcept.PlayerVersion(A.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{try{var C=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");for(var B=3;C!=null;B++){C=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+B);D=new deconcept.PlayerVersion([B,0,0])}}catch(E){}if(G&&D.major>G.major){return D}if(!G||((G.minor!=0||G.rev!=0)&&D.major==G.major)||D.major!=6||F){try{D=new deconcept.PlayerVersion(C.GetVariable("$version").split(" ")[1].split(","))}catch(E){}}}return D};deconcept.PlayerVersion=function(A){this.major=parseInt(A[0])!=null?parseInt(A[0]):0;this.minor=parseInt(A[1])||0;this.rev=parseInt(A[2])||0};deconcept.PlayerVersion.prototype.versionIsValid=function(A){if(this.majorA.major){return true}if(this.minorA.minor){return true}if(this.rev-1)?D.indexOf("&",B):D.length;if(D.length>1&&B>-1){return D.substring(D.indexOf("=",B)+1,A)}}return""}};if(Array.prototype.push==null){Array.prototype.push=function(A){this[this.length]=A;return this.length}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(L,B,M,D,H,J,F,E,C,K,I){if(!document.createElement||!document.getElementById){return }this.DETECT_KEY=I?I:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(L){this.setAttribute("swf",L)}if(B){this.setAttribute("id",B)}if(M){this.setAttribute("width",M)}if(D){this.setAttribute("height",D)}if(H){this.setAttribute("version",new deconcept.PlayerVersion(H.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion(this.getAttribute("version"),F);if(J){this.addParam("bgcolor",J)}var A=E?E:"high";this.addParam("quality",A);this.setAttribute("useExpressInstall",F);this.setAttribute("doExpressInstall",false);var G=(C)?C:window.location;this.setAttribute("xiRedirectUrl",G);this.setAttribute("redirectUrl","");if(K){this.setAttribute("redirectUrl",K)}};deconcept.SWFObject.prototype={setAttribute:function(A,B){this.attributes[A]=B},getAttribute:function(A){return this.attributes[A]},addParam:function(B,A){this.params[B]=A},getParams:function(){return this.params},addVariable:function(B,A){this.variables[B]=A},getVariable:function(A){return this.variables[A]},getVariables:function(){return this.variables},getVariablePairs:function(){var C=new Array();var B;var A=this.getVariables();for(B in A){C.push(B+"="+A[B])}return C},getSWFHTML:function(){var B="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn")}B='0){B+='flashvars="'+D+'"'}B+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX")}B='';B+='';var C=this.getParams();for(var E in C){B+=''}var A=this.getVariablePairs().join("&");if(A.length>0){B+=''}B+=""}return B},write:function(B){if(this.getAttribute("useExpressInstall")){var A=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(A)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var C=(typeof B=="string")?document.getElementById(B):B;C.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(G,F){var D=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var A=navigator.plugins["Shockwave Flash"];if(A&&A.description){D=new deconcept.PlayerVersion(A.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{try{var C=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");for(var B=3;C!=null;B++){C=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+B);D=new deconcept.PlayerVersion([B,0,0])}}catch(E){}if(G&&D.major>G.major){return D}if(!G||((G.minor!=0||G.rev!=0)&&D.major==G.major)||D.major!=6||F){try{D=new deconcept.PlayerVersion(C.GetVariable("$version").split(" ")[1].split(","))}catch(E){}}}return D};deconcept.PlayerVersion=function(A){this.major=parseInt(A[0])!=null?parseInt(A[0]):0;this.minor=parseInt(A[1])||0;this.rev=parseInt(A[2])||0};deconcept.PlayerVersion.prototype.versionIsValid=function(A){if(this.majorA.major){return true}if(this.minorA.minor){return true}if(this.rev-1)?D.indexOf("&",B):D.length;if(D.length>1&&B>-1){return D.substring(D.indexOf("=",B)+1,A)}}return""}};if(Array.prototype.push==null){Array.prototype.push=function(A){this[this.length]=A;return this.length}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;(function(A){A.fn.jcarousel=function(D){return this.each(function(){new B(this,D)})};var C={vertical:false,start:1,offset:1,size:null,scroll:3,visible:null,animation:"normal",easing:"swing",auto:0,wrap:null,initCallback:null,reloadCallback:null,itemLoadCallback:null,itemFirstInCallback:null,itemFirstOutCallback:null,itemLastInCallback:null,itemLastOutCallback:null,itemVisibleInCallback:null,itemVisibleOutCallback:null,buttonNextHTML:"
",buttonPrevHTML:"
",buttonNextEvent:"click",buttonPrevEvent:"click",buttonNextCallback:null,buttonPrevCallback:null};A.jcarousel=function(I,K){this.options=A.extend({},C,K||{});this.locked=false;this.container=null;this.clip=null;this.list=null;this.buttonNext=null;this.buttonPrev=null;this.wh=!this.options.vertical?"width":"height";this.lt=!this.options.vertical?"left":"top";var E="",G=I.className.split(" ");for(var J=0;J
")}this.container=this.container.parent()}else{if(!this.container.hasClass("jcarousel-container")){this.container=this.list.wrap("
").parent()}}}else{this.container=A(I);this.list=A(I).find(">ul,>ol,div>ul,div>ol")}if(E!=""&&this.container.parent()[0].className.indexOf("jcarousel-skin")==-1){this.container.wrap('
')}this.clip=this.list.parent();if(!this.clip.length||!this.clip.hasClass("jcarousel-clip")){this.clip=this.list.wrap("
").parent()}this.buttonPrev=A(".jcarousel-prev",this.container);if(this.buttonPrev.size()==0&&this.options.buttonPrevHTML!=null){this.buttonPrev=this.clip.before(this.options.buttonPrevHTML).prev()}this.buttonPrev.addClass(this.className("jcarousel-prev"));this.buttonNext=A(".jcarousel-next",this.container);if(this.buttonNext.size()==0&&this.options.buttonNextHTML!=null){this.buttonNext=this.clip.before(this.options.buttonNextHTML).prev()}this.buttonNext.addClass(this.className("jcarousel-next"));this.clip.addClass(this.className("jcarousel-clip"));this.list.addClass(this.className("jcarousel-list"));this.container.addClass(this.className("jcarousel-container"));var H=this.options.visible!=null?Math.ceil(this.clipping()/this.options.visible):null;var F=this.list.children("li");var D=this;if(F.size()>0){var L=0,J=this.options.offset;F.each(function(){D.format(this,J++);L+=D.dimension(this,H)});this.list.css(this.wh,L+"px");if(!K||K.size===undefined){this.options.size=F.size()}}this.container.css("display","block");this.buttonNext.css("display","block");this.buttonPrev.css("display","block");this.funcNext=function(){D.next()};this.funcPrev=function(){D.prev()};this.funcResize=function(){D.reload()};if(this.options.initCallback!=null){this.options.initCallback(this,"init")}if(A.browser.safari){this.buttons(false,false);A(window).bind("load",function(){D.setup()})}else{this.setup()}};var B=A.jcarousel;B.fn=B.prototype={jcarousel:"0.2.3"};B.fn.extend=B.extend=A.extend;B.fn.extend({setup:function(){this.first=null;this.last=null;this.prevFirst=null;this.prevLast=null;this.animating=false;this.timer=null;this.tail=null;this.inTail=false;if(this.locked){return }this.list.css(this.lt,this.pos(this.options.offset)+"px");var D=this.pos(this.options.start);this.prevFirst=this.prevLast=null;this.animate(D,false);A(window).unbind("resize",this.funcResize).bind("resize",this.funcResize)},reset:function(){this.list.empty();this.list.css(this.lt,"0px");this.list.css(this.wh,"10px");if(this.options.initCallback!=null){this.options.initCallback(this,"reset")}this.setup()},reload:function(){if(this.tail!=null&&this.inTail){this.list.css(this.lt,B.intval(this.list.css(this.lt))+this.tail)}this.tail=null;this.inTail=false;if(this.options.reloadCallback!=null){this.options.reloadCallback(this)}if(this.options.visible!=null){var E=this;var D=Math.ceil(this.clipping()/this.options.visible),F=0,G=0;A("li",this.list).each(function(H){F+=E.dimension(this,D);if(H+1this.options.size){E=this.options.size}for(var G=F;G<=E;G++){var D=this.get(G);if(!D.length||D.hasClass("jcarousel-item-placeholder")){return false}}return true},get:function(D){return A(".jcarousel-item-"+D,this.list)},add:function(I,D){var H=this.get(I),K=0,E=0;if(H.length==0){var F,H=this.create(I),J=B.intval(I);while(F=this.get(--J)){if(J<=0||F.length){J<=0?this.list.prepend(H):F.after(H);break}}}else{K=this.dimension(H)}H.removeClass(this.className("jcarousel-item-placeholder"));typeof D=="string"?H.html(D):H.empty().append(D);var G=this.options.visible!=null?Math.ceil(this.clipping()/this.options.visible):null;var L=this.dimension(H,G)-K;if(I>0&&I=this.first&&F<=this.last)){return }var D=this.dimension(E);if(Fthis.options.size?this.options.size:R)}var H=this.first>R;var V=B.intval(this.list.css(this.lt));var P=this.options.wrap!="circular"&&this.first<=1?1:this.first;var J=H?this.get(P):this.get(this.last);var F=H?P:P-1;var N=null,G=0,K=false,M=0;while(H?--F>=R:++F=1&&(this.options.size==null||F<=this.options.size)))){V=H?V+M:V-M}}var Q=this.clipping();var L=[];var W=0,F=R,O=0;var J=this.get(R-1);while(++W){N=this.get(F);K=!N.length;if(N.length==0){N=this.create(F).addClass(this.className("jcarousel-item-placeholder"));J.length==0?this.list.prepend(N):J[H?"before":"after"](N)}J=N;var M=this.dimension(N);if(M==0){alert("jCarousel: No width/height set for items. This will cause an infinite loop. Aborting...");return 0}if(this.options.wrap!="circular"&&this.options.size!==null&&F>this.options.size){L.push(N)}else{if(K){G+=M}}O+=M;if(O>=Q){break}F++}for(var S=0;S0){this.list.css(this.wh,this.dimension(this.list)+G+"px");if(H){V-=G;this.list.css(this.lt,B.intval(this.list.css(this.lt))-G+"px")}}var T=R+W-1;if(this.options.wrap!="circular"&&this.options.size&&T>this.options.size){T=this.options.size}if(F>T){W=0,F=T,O=0;while(++W){var N=this.get(F--);if(!N.length){break}O+=this.dimension(N);if(O>=Q){break}}}var U=T-W+1;if(this.options.wrap!="circular"&&U<1){U=1}if(this.inTail&&H){V+=this.tail;this.inTail=false}this.tail=null;if(this.options.wrap!="circular"&&T==this.options.size&&(T-W+1)>=1){var I=B.margin(this.get(T),!this.options.vertical?"marginRight":"marginBottom");if((O-I)>Q){this.tail=O-Q-I}}while(R-->U){V+=this.dimension(this.get(R))}this.prevFirst=this.first;this.prevLast=this.last;this.first=U;this.last=T;this.setVisibleIndexClasses();return V},setVisibleIndexClasses:function(){if(this.prevFirst&&this.prevLast){for(var E=this.prevFirst,D=1;E<=this.prevLast;E++,D++){this.get(E).removeClass("jcarousel-visible-item"+D)}}for(var E=this.first,D=1;E<=this.last;E++,D++){this.get(E).addClass("jcarousel-visible-item"+D)}},animate:function(E,H){if(this.locked||this.animating){return }this.animating=true;var G=this;var F=function(){G.animating=false;if(E==0){G.list.css(G.lt,0)}if(G.options.wrap=="both"||G.options.wrap=="last"||G.options.size==null||G.last=this.options.size){D=this.tail!=null&&!this.inTail}}if(E==undefined||E==null){var E=!this.locked&&this.options.size!==0&&((this.options.wrap&&this.options.wrap!="last")||this.first>1);if(!this.locked&&(!this.options.wrap||this.options.wrap=="last")&&this.options.size!=null&&this.first==1){E=this.tail!=null&&this.inTail}}var F=this;this.buttonNext[D?"bind":"unbind"](this.options.buttonNextEvent,this.funcNext)[D?"removeClass":"addClass"](this.className("jcarousel-next-disabled")).attr("disabled",D?false:true);this.buttonPrev[E?"bind":"unbind"](this.options.buttonPrevEvent,this.funcPrev)[E?"removeClass":"addClass"](this.className("jcarousel-prev-disabled")).attr("disabled",E?false:true);if(this.buttonNext.hasClass("jcarousel-next-disabled")&&this.buttonPrev.hasClass("jcarousel-prev-disabled")){this.buttonNext.addClass("jcarousel-both-disabled");this.buttonPrev.addClass("jcarousel-both-disabled")}if(this.buttonNext.length>0&&(this.buttonNext[0].jcarouselstate==undefined||this.buttonNext[0].jcarouselstate!=D)&&this.options.buttonNextCallback!=null){this.buttonNext.each(function(){F.options.buttonNextCallback(F,this,D)});this.buttonNext[0].jcarouselstate=D}if(this.buttonPrev.length>0&&(this.buttonPrev[0].jcarouselstate==undefined||this.buttonPrev[0].jcarouselstate!=E)&&this.options.buttonPrevCallback!=null){this.buttonPrev.each(function(){F.options.buttonPrevCallback(F,this,E)});this.buttonPrev[0].jcarouselstate=E}},notify:function(E){var D=this.prevFirst==null?"init":(this.prevFirst=K&&G<=L)){this.get(G).each(function(){E(D,this,G,M,F)})}}}}},create:function(D){return this.format("
  • ",D)},format:function(D,E){var F=A(D).addClass(this.className("jcarousel-item")).addClass(this.className("jcarousel-item-"+E));F.attr("jcarouselindex",E);return F},className:function(D){return D+" "+D+(!this.options.vertical?"-horizontal":"-vertical")},dimension:function(E,D){var F=E.jquery!=undefined?E[0]:E;var G=!this.options.vertical?F.offsetWidth+B.margin(F,"marginLeft")+B.margin(F,"marginRight"):F.offsetHeight+B.margin(F,"marginTop")+B.margin(F,"marginBottom");if(D==undefined||G==D){return G}var H=!this.options.vertical?D-B.margin(F,"marginLeft")-B.margin(F,"marginRight"):D-B.margin(F,"marginTop")-B.margin(F,"marginBottom");A(F).css(this.wh,H+"px");return this.dimension(F)},clipping:function(){return !this.options.vertical?this.clip[0].offsetWidth-B.intval(this.clip.css("borderLeftWidth"))-B.intval(this.clip.css("borderRightWidth")):this.clip[0].offsetHeight-B.intval(this.clip.css("borderTopWidth"))-B.intval(this.clip.css("borderBottomWidth"))},index:function(E,D){if(D==undefined){D=this.options.size}return Math.round((((E-1)/D)-Math.floor((E-1)/D))*D)+1}});B.extend({defaults:function(D){return A.extend(C,D||{})},margin:function(E,F){if(!E){return 0}var G=E.jquery!=undefined?E[0]:E;if(F=="marginRight"&&A.browser.safari){var H={display:"block","float":"none",width:"auto"},I,D;A.swap(G,H,function(){I=G.offsetWidth});H.marginRight=0;A.swap(G,H,function(){D=G.offsetWidth});return D-I}return B.intval(A.css(G,F))},intval:function(D){D=parseInt(D);return isNaN(D)?0:D}})})(jQuery);$.fn.jCarouselWithTitle=function(E){var D=this;var B={itemCopyHolder:"p.hide",copyTarget:"#copy-target",visible:1};for(var C in E){B[C]=E[C]}B.itemVisibleInCallback=function(I,F,G,H){A(I.get(I.first))};$("li",this).hover(function(){A(this)});var A=function(H){var I=new RegExp("jcarousel-visible-item[0-9]+","i");var G=$(H).attr("class").match(I);if(G.length){$("li.active",D).removeClass("active");$(H).addClass("active");for(var F=1;F<=B.visible;F++){$(B.copyTarget).removeClass("jcarousel-item-text"+F)}$(B.copyTarget).html($(B.itemCopyHolder,H).html()).addClass("jcarousel-item-text"+G[0].substr(22,1))}};return $(this).jcarousel(B)};$.fn.jCarouselWithPagination=function(E){var C=this;var D=$("li",this).length;var A={fromEl:"#carousel-pagination-from",toEl:"#carousel-pagination-to",reverse:false,visible:3};for(var B in E){A[B]=E[B]}A.itemVisibleInCallback=function(I,F,G,H){if(!A.reverse){$(A.fromEl).html(I.first);$(A.toEl).html(I.last)}else{$(A.fromEl).html(D-(I.first-1));$(A.toEl).html(D-(I.last-1))}};return $(this).each(function(){var G=1;$("li",this).each(function(H){if($(this).hasClass("active")){G=H+1}});var F=Math.ceil(G/A.visible);A.start=A.visible*(F-1)+1;$(this).jcarousel(A)})};$.fn.jcarouselWithSelectorZoom=function(B,A){return $(this).each(function(){A.start=1;$("li",this).each(function(C){if($(this).hasClass("active")){A.start=C>B?C:(C+B)}});$(this).jcarousel(A)})};if(brightcove==undefined){var brightcove={};brightcove.getExperience=function(){alert("Please import APIModules_all.js in order to use the API.")}}if(brightcove.experiences==undefined){brightcove.servicesURL="http://c.brightcove.com/services";brightcove.cdnURL="http://admin.brightcove.com";brightcove.secureServicesURL="https://secure.brightcove.com/services";brightcove.pubHost="c.$pubcode$.$zoneprefix$$zone$";brightcove.pubSecureHost="secure.$pubcode$.$zoneprefix$$zone$";brightcove.pubSubdomain="ariessaucetown.local";brightcove.experiences={};brightcove.experienceNum=0;brightcove.majorVersion=9;brightcove.majorRevision=0;brightcove.minorRevision=28;var brightcoveJS=brightcove;brightcove.createExperiences=function(Y,C){var u={};u.width="100%";u.height="100%";var A={};A.allowScriptAccess="always";A.allowFullScreen="true";A.seamlessTabbing=false;A.swliveconnect=true;A.wmode="window";A.quality="high";A.bgcolor="#999999";var H=(window.ActiveXObject!=undefined);var O=0;var P=0;var F;var a=false;if(typeof navigator.plugins!="undefined"&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var W=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var k=navigator.plugins["Shockwave Flash"+W].description;F=k.split(" ");O=F[2].split(".")[0];P=F[3];if(P==""){P=F[4]}if(P[0]=="d"){P=P.substring(1)}else{if(P[0]=="r"){P=P.substring(1);if(P.indexOf("d")>0){P=P.substring(0,P.indexOf("d"))}}}}}else{if(H){try{var B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");F=/ ([0-9]+),[0-9],([0-9]+),/.exec(B.GetVariable("$version"));O=F[1];P=F[2]}catch(r){a=true}}else{a=true}}var N=[];if(C!=null){N.push(document.getElementById(C))}else{var c=document.getElementsByTagName("object");var G=c.length;for(var p=0;p0){n.params.flashID=n.id}else{n.id=n.params.flashID="bcExperienceObj"+(brightcove.experienceNum++)}if(!H){var m=n.getElementsByTagName("param")}var R=m.length;var l;for(var o=0;o0){n.params.playerID=q}if(X.length>0){n.params.videoID=X;n.params.autoStart=(n.params.autoStart!="false"&&s!="false")}if(b.length>0){n.params.lineupID=b}}var f;if(U){f=brightcove.cdnURL+"/viewer/playerProductInstall.swf";var Q=H?"ActiveX":"PlugIn";document.title=document.title.slice(0,47)+" - Flash Player Installation";var d=document.title;f+="?&MMredirectURL="+window.location+"&MMplayerType="+Q+"&MMdoctitle="+d}else{if(n.params.secureConnections=="true"){f=brightcove.getPubURL(brightcove.secureServicesURL,brightcove.pubSecureHost,n.params.pubCode)}else{f=brightcove.getPubURL(brightcove.servicesURL,brightcove.pubHost,n.params.pubCode)}f+=("/viewer/federated_f9?"+brightcove.getOverrides());for(var T in n.params){f+="&"+encodeURIComponent(T)+"="+encodeURIComponent(n.params[T])}}var h;var g="_container"+n.id;if(a){var J=document.createElement("span");if(n.params.height.charAt(n.params.height.length-1)=="%"){J.style.display="block"}else{J.style.display="inline-block"}J.id=g;var L="Get Flash Player";n.parentNode.replaceChild(J,n);document.getElementById(g).innerHTML=L}else{if(H){var J=document.createElement("span");if(n.params.height.charAt(n.params.height.length-1)=="%"){J.style.display="block"}else{J.style.display="inline-block"}J.id=g;n.fParams.movie=f;var E="";for(var S in n.fParams){E+=''}var Z=(n.params.secureConnections=="true")?"https":"http";var M=''+E+"";n.parentNode.replaceChild(J,n);document.getElementById(g).innerHTML=M;n.experience=document.getElementById(n.id);brightcove.experiences[n.id]=J}else{var h=document.createElementNS("http://www.w3.org/1999/xhtml","object");h.type="application/x-shockwave-flash";h.data=f;h.id=n.params.flashID;h.width=n.params.width;h.height=n.params.height;h.className=n.className;var t;for(var T in n.fParams){t=document.createElementNS("http://www.w3.org/1999/xhtml","param");t.name=T;t.value=n.fParams[T];h.appendChild(t)}n.parentNode.replaceChild(h,n);brightcove.experiences[n.id]=h}}}};brightcove.createExperience=function(A,C,B){if(!A.id||A.id.length<1){A.id="bcExperienceObj"+(brightcove.experienceNum++)}if(B){C.appendChild(A)}else{C.parentNode.insertBefore(A,C)}brightcove.createExperiences(null,A.id)};brightcove.removeExperience=function(A){if(brightcove.experiences[A]!=null){brightcove.experiences[A].parentNode.removeChild(brightcove.experiences[A])}};brightcove.getURL=function(){var A;if(typeof window.location.search!="undefined"){A=window.location.search}else{A=/(\?.*)$/.exec(document.location.href)}return A};brightcove.getOverrides=function(){var D=brightcove.getURL();var C=new RegExp("@[\\w\\.]+=[^&]+","g");var B=C.exec(D);var A="";while(B!=null){A+="&"+B;B=C.exec(D)}return A};brightcove.getParameter=function(A,E){if(E==null){E=""}var D=brightcove.getURL();var C=new RegExp(A+"=([^&]*)");var B=C.exec(D);if(B!=null){return B[1]}else{return E}};brightcove.createElement=function(A){if(document.createElementNS){return document.createElementNS("http://www.w3.org/1999/xhtml",A)}else{return document.createElement(A)}};brightcove.i18n={BROWSER_TOO_OLD:"The browser you are using is too old. Please upgrade to the latest version of your browser."};brightcove.removeListeners=function(){if(/KHTML/i.test(navigator.userAgent)){clearInterval(checkLoad);document.removeEventListener("load",brightcove.createExperiences,false)}if(typeof document.addEventListener!="undefined"){document.removeEventListener("DOMContentLoaded",brightcove.createExperiences,false);document.removeEventListener("load",brightcove.createExperiences,false)}else{if(typeof window.attachEvent!="undefined"){window.detachEvent("onload",brightcove.createExperiences)}}};brightcove.getPubURL=function(D,C,A){if(!A||A==""){return D}var B=/^([htps]{4,5}\:\/\/)([^\/\:]+)/i;C=C.replace("$pubcode$",A).replace("$zoneprefix$$zone$",brightcove.pubSubdomain);return D.replace(B,"$1"+C)};brightcove.createExperiencesPostLoad=function(){brightcove.removeListeners();brightcove.createExperiences()};brightcove.onTemplateLoaded=function(id,handler){var player=brightcove.getExperience(id);if(player){player.getModule("experience").addEventListener("templateReady",eval(handler))}};if(/KHTML/i.test(navigator.userAgent)){var checkLoad=setInterval(function(){if(/loaded|complete/.test(document.readyState)){clearInterval(checkLoad);brightcove.createExperiencesPostLoad()}},70);document.addEventListener("load",brightcove.createExperiencesPostLoad,false)}if(typeof document.addEventListener!="undefined"){document.addEventListener("DOMContentLoaded",brightcove.createExperiencesPostLoad,false);document.addEventListener("load",brightcove.createExperiencesPostLoad,false)}else{if(typeof window.attachEvent!="undefined"){window.attachEvent("onload",brightcove.createExperiencesPostLoad)}else{alert(brightcove.i18n.BROWSER_TOO_OLD)}}}var APIModules={};APIModules.EXPERIENCE="experience";APIModules.CONTENT="content";APIModules.VIDEO_PLAYER="videoPlayer";APIModules.SOCIAL="social";APIModules.SEARCH="search";APIModules.CUE_POINTS="cuePoints";APIModules.ADVERTISING="advertising";APIModules.MENU="menu";APIModules.EFFECTS="effects";if(brightcove==undefined){var brightcove={}}brightcove.instances={};brightcove.modules={};brightcove.ID_DELIM="|||";var bcPlayer=brightcove;brightcove.getExperience=function(A){if(this.instances[A]==null){alert("Experience '"+A+"' not found. Please ensure the name is correct and the API for the player is enabled.")}return this.instances[A]};brightcove.getPlayer=brightcove.getExperience;function setAPICallback(B,A){brightcove.instances[B]=new BrightcoveExperience(A)}function BrightcoveExperience(A){this.callback=A;this.modules={}}BrightcoveExperience.prototype.getModule=function(A){if(this.modules[A]==null){var B=new brightcove.modules[A](this);if(B.isPlayerDefined!=null){if(!B.isPlayerDefined()){return null}}this.modules[A]=B}return this.modules[A]};function APIModule(){this.handlers=[]}APIModule.handlerCount=0;APIModule.getHandler=function(){return"bc_handler"+(APIModule.handlerCount++)};APIModule.callFlash=function(C,E){var B=C.split(brightcove.ID_DELIM);if(B.length<2){return }if(B[0].length<1){return }var D=B[0];var C=B[1];var A=document.getElementById(D);if(A[C]!=null){return A[C](BCXML.convertToXML(E,"js2flash"))}};APIModule.prototype.name="APIModule";APIModule.prototype.addEventListener=function(A,B){var C=APIModule.getHandler();this.handlers.push({handler:B,bcHandler:C,event:A});window[C]=B;return this.callMethod("addEventListener",[A,C])};APIModule.prototype.removeEventListener=function(B,C){var E=this.handlers.length;for(var D=0;D";if(C.name=="obj"){for(var D in F){E+=BCXML.convertToXML(F[D],D)}}else{if(C.name=="arr"){for(var B=0;B";return E};BCXML.replaceEntities=function(A){A=A.replace(new RegExp("&","g"),"&");A=A.replace(new RegExp("<","g"),"<");A=A.replace(new RegExp(">","g"),">");return A};BCXML.getType=function(A){switch(typeof (A)){case"boolean":return{name:"boo",type:Boolean};case"string":return{name:"str",type:String};case"number":return{name:"num",type:Number};default:if(A instanceof Array){return{name:"arr",type:Array}}else{return{name:"obj",type:Object}}}};BCAdvertisingEvent={};BCAdvertisingEvent.AD_COMPLETE="adComplete";BCAdvertisingEvent.AD_PAUSE="adPause";BCAdvertisingEvent.AD_PROGRESS="adProgress";BCAdvertisingEvent.AD_RESUME="adResume";BCAdvertisingEvent.AD_START="adStart";BCAdvertisingEvent.AD_CLICK="adClick";BCAdvertisingEvent.EXTERNAL_AD="externalAd";brightcove.modules[APIModules.ADVERTISING]=AdvertisingAPI;function AdvertisingAPI(A){this.experience=A;this.callback=A.callback;this.name=APIModules.ADVERTISING}var pttp=AdvertisingAPI.prototype=new APIModule();pttp.showAd=function(){return this.callMethod("showAd",arguments)};pttp.resumeAfterExternalAd=function(){return this.callMethod("resumeAfterExternalAd",arguments)};pttp.getEnabledAdFormats=function(){return this.callMethod("getEnabledAdFormats",arguments)};pttp.enableAdFormats=function(){return this.callMethod("enableAdFormats",arguments)};pttp.enableExternalAds=function(){return this.callMethod("enableExternalAds",arguments)};pttp.enableOverrideAds=function(){return this.callMethod("enableOverrideAds",arguments)};pttp.getExternalAdsEnabled=function(){return this.callMethod("getExternalAdsEnabled",arguments)};pttp.getOverrideAdsEnabled=function(){return this.callMethod("getOverrideAdsEnabled",arguments)};pttp.disableForExternalAd=function(){return this.callMethod("disableForExternalAd",arguments)};pttp.getCurrentAdProperties=function(){return this.callMethod("getCurrentAdProperties",arguments)};pttp.showSponsorMessage=function(){return this.callMethod("showSponsorMessage",arguments)};pttp.getShowSponsorMessage=function(){return this.callMethod("getShowSponsorMessage",arguments)};pttp.allowThirdPartyControl=function(){return this.callMethod("allowThirdPartyControl",arguments)};pttp.setThirdPartyTime=function(){return this.callMethod("setThirdPartyTime",arguments)};pttp.getThirdPartyTime=function(){return this.callMethod("getThirdPartyTime",arguments)};pttp.getAdPolicy=function(){return this.callMethod("getAdPolicy",arguments)};pttp.setAdPolicy=function(){return this.callMethod("setAdPolicy",arguments)};pttp.requestAd=function(){return this.callMethod("requestAd",arguments)};pttp.getStayInFullScreen=function(){return this.callMethod("getStayInFullScreen",arguments)};pttp.setStayInFullScreen=function(){return this.callMethod("setStayInFullScreen",arguments)};BCContentEvent={};BCContentEvent.VIDEO_LOAD="videoLoad";BCContentEvent.PLAYLIST_LOAD="playlistLoad";BCContentEvent.MEDIA_LOAD="mediaLoad";BCContentEvent.MEDIA_COLLECTION_LOAD="mediaCollectionLoad";brightcove.modules[APIModules.CONTENT]=ContentAPI;function ContentAPI(A){this.experience=A;this.callback=A.callback;this.name=APIModules.CONTENT}var pttp=ContentAPI.prototype=new APIModule();pttp.getAllMediaCollections=function(){return this.callMethod("getAllMediaCollections",arguments)};pttp.getAllMediaCollectionIDs=function(){return this.callMethod("getAllMediaCollectionIDs",arguments)};pttp.getAllPlaylists=function(){return this.callMethod("getAllPlaylists",arguments)};pttp.getAllPlaylistIDs=function(){return this.callMethod("getAllPlaylistIDs",arguments)};pttp.getMediaCollection=function(){return this.callMethod("getMediaCollection",arguments)};pttp.getMediaCollectionAsynch=function(){return this.callMethod("getMediaCollectionAsynch",arguments)};pttp.getPlaylist=function(){return this.callMethod("getPlaylist",arguments)};pttp.getPlaylistAsynch=function(){return this.callMethod("getPlaylistAsynch",arguments)};pttp.getMedia=function(){return this.callMethod("getMedia",arguments)};pttp.getMediaAsynch=function(){return this.callMethod("getMediaAsynch",arguments)};pttp.getVideo=function(){return this.callMethod("getVideo",arguments)};pttp.getVideoAsynch=function(){return this.callMethod("getVideoAsynch",arguments)};pttp.purgeAllContent=function(){return this.callMethod("purgeAllContent",arguments)};pttp.purgeMediaCollections=function(){return this.callMethod("purgeMediaCollections",arguments)};pttp.purgeMedia=function(){return this.callMethod("purgeMedia",arguments)};pttp.purgePlaylist=function(){return this.callMethod("purgePlaylist",arguments)};pttp.purgePlaylists=function(){return this.callMethod("purgePlaylists",arguments)};pttp.purgeVideo=function(){return this.callMethod("purgeVideo",arguments)};pttp.purgeVideos=function(){return this.callMethod("purgeVideos",arguments)};pttp.getMediaInGroupAsynch=function(){return this.callMethod("getMediaInGroupAsynch",arguments)};pttp.createRuntimeMediaCollection=function(){return this.callMethod("createRuntimeMediaCollection",arguments)};pttp.appendArgsToMediaRequest=function(){return this.callMethod("appendArgsToMediaRequest",arguments)};BCCuePointEvent={};BCCuePointEvent.CUE="cuePoint";brightcove.modules[APIModules.CUE_POINTS]=CuePointsAPI;function CuePointsAPI(A){this.experience=A;this.callback=A.callback;this.name=APIModules.CUE_POINTS}var pttp=CuePointsAPI.prototype=new APIModule();pttp.addCuePoints=function(){return this.callMethod("addCuePoints",arguments)};pttp.clearCodeCuePoints=function(){return this.callMethod("clearCodeCuePoints",arguments)};pttp.removeCodeCuePointsAtTime=function(){return this.callMethod("removeCodeCuePointsAtTime",arguments)};pttp.getCuePoints=function(){return this.callMethod("getCuePoints",arguments)};pttp.clearAdCuePoints=function(){return this.callMethod("clearAdCuePoints",arguments)};pttp.removeAdCuePointsAtTime=function(){return this.callMethod("removeAdCuePointsAtTime",arguments)};BCEffectsEvent={};BCEffectsEvent.BEGIN="animationBegin";BCEffectsEvent.COMPLETE="animationComplete";BCEffectsEvent.CHANGE="animationChange";brightcove.modules[APIModules.EFFECTS]=EffectsAPI;function EffectsAPI(A){this.experience=A;this.callback=A.callback;this.name=APIModules.EFFECTS}EffectsAPI.animations={};var pttp=EffectsAPI.prototype=new APIModule();pttp.createAnimation=function(){var A=this.callMethod("createAnimationJS",arguments);return this.getAnimation(A)};pttp.getAnimation=function(){var A=this.callMethod("getAnimationJS",arguments);if(A){return this.getAnimationWrapper(A)}return null};pttp.getAnimationWrapper=function(B){var A=EffectsAPI.animations[B];if(A==undefined){A=new EffectsAPIAnimation(B,this.callback);EffectsAPI.animations[B]=A}return A};function EffectsAPIAnimation(B,A){this.id=B;this.name=APIModules.EFFECTS;this.callback=A}pttp=EffectsAPIAnimation.prototype=new APIModule();pttp.id=-1;pttp.callMethod=function(C,D){if(D==undefined){D=[]}var A=[this.id];for(var B=0;B');$(this).append('
    ');this.videoControls=$(".videoControls",this).hover(function(F){$(this).animate({opacity:1},400,"linear")},function(F){$(this).animate({opacity:0.7},400,"linear")}).click(function(F){D.destroyVideo(E)});this.videoButton=$(".videoButton",this).hover(function(F){$(this).animate({opacity:1},400,"linear")},function(F){$(this).animate({opacity:0.8},400,"linear")}).click(function(F){D.showVideo(E)})}}).hover(function(E){D.selectNode(this.index)});this.container=B;this.container.accordion=this;$(this.container).removeClass("dave-horiz-accordion");$(this.container).addClass("dave-horiz-accordion-active");$(this.container).hover(function(E){this.accordion.stopTimedLoop()},function(E){this.accordion.startTimedLoop()});this.currentBlock=this.nodes[0];this.selectedIndex=0;this.directionLock="none";this.fixPositions();this.startTimedLoop();return this};uktv.horizAccordion.prototype.selectNode=function(C){if(!this.locked&&this.currentBlock!=this.nodes[C]){var D=this.currentBlock;var B=this.nodes[C];var A=D.index=0;E--){if((EB.index)||(E>D.index&&E=this.nodes.length-1?0:this.selectedIndex+1)};uktv.horizAccordion.prototype.startTimedLoop=function(){if(!this.timedLoop&&this.autoplay){this.timedLoop=true;$(this.container).everyTime(this.timerSpeed,"uktv-horiz-accordion"+this.container.id,function(){this.accordion.selectNext()})}};uktv.horizAccordion.prototype.stopTimedLoop=function(){if(this.timedLoop){this.timedLoop=false;$(this.container).stopTime("uktv-horiz-accordion"+this.container.id)}};uktv.horizAccordion.prototype.fixPositions=function(){var A=((this.nodes.length-1)*this.minWidth)+this.maxWidth;for(var C=this.nodes.length-1;C>=0;C--){var B=(C*this.minWidth)+"px";var D=A-(this.nodes.length-C)*this.minWidth+"px";this.nodes[C].positions={expanded:{left:B,width:this.maxWidth+"px"},collapsedLeft:{left:B,width:this.minWidth+"px"},collapsedRight:{left:D,width:this.minWidth+"px"}}}$(this.nodes).each(function(E){if(E==0){$(this).css("left",this.positions.expanded.left)}else{$(this).css("left",this.positions.collapsedRight.left)}$(this).css("position","absolute")})};uktv.horizAccordion.prototype.showVideo=function(B){var C=this.nodes[B];var E=$(C.vid).attr("id").substr(3);var A=this.brightcovePlayerId;var D=this;this.locked=true;for(var F=0;FG.right||H.pageYG.bottom){$(C.videoControls).fadeOut()}})})};uktv.horizAccordion.prototype.destroyVideo=function(A){var B=this.nodes[A];if(B.videoPlayer.isLoaded()){B.videoPlayer.stop();B.videoPlayer.unload()}B.vid.html("");$(B.videoControls).hide();$(B.full).fadeIn(this.videoTransitionSpeed);$(B.info).fadeIn(this.videoTransitionSpeed);$(B.videoButton).fadeIn(this.videoTransitionSpeed);var C=this;for(var D=0;D0){var E=$(this.vidLinks[0]).attr("videoId");this.player=new uktv.brightcove.player("bcvideo"+E,{target:F,playerId:B.playerId,videoId:E,width:B.width,height:B.height,bgcolor:B.bgcolor,autostart:B.autostart,wmode:"transparent",externalAds:true,adServerURL:B.adServer})}this.switchVideo=function(H){var G=this.vidLinks[H].videoId;D.player.loadVideo(G,"id",false);for(var I=0;I=0){E(I)}});$("ul.pagination li.last a",this).click(function(I){I.preventDefault();E(G.length-1)});var F=null;var E=function(I){if(!H){if(F!=null){H=true;$(B[F]).fadeOut("slow",function(){$(B[I]).fadeIn("slow",function(){F=I;H=false})})}else{B.hide();$(B[I]).show();F=I}D(I)}};var D=function(I){G.removeClass("current");$(G[I]).addClass("current");var K=I>1?(I-2):0;var L=(K+4)>=B.length?B.length-1:(K+4);if(L-K<4){K=L-4}for(var J=G.length-1;J>=0;J--){if(J>L|J0&&this.target.indexOf(window.location.hash)>=0){A=E}$("a[href="+this.target+"]").click(function(F){F.preventDefault();D(E,true)})});var D=function(E,F){var G=A;A=E;C.each(function(H){if(H==A){if(F&window.location.hash!=this.target&G!=A){window.location.hash=this.target}$(this).parents("li:first").addClass("active");$(this.target).show();if($(window).scrollTop()>$(B).offset().top){window.scrollTo(0,0)}}else{$(this).parents("li:first").removeClass("active");$(this.target).hide()}})};D(A)})};$.fn.uktvQuotesFacts=function(){return $(this).each(function(){var E=0;var H=0;var C=$("ul#quotes-content li",this).hide();var G=$("a#prev-box",this).show();var A=$("a#next-box",this).show();var D=false;H=C.length;$(C[E]).show();$(C[E]).addClass("current");$(G).hide();$("a#prev-box",this).click(function(J){J.preventDefault();if(!D){D=true;var I=$(C[E]);E=E-1;if(E>0){B()}else{F()}if(E<=0){var K=$(C[0]);E=0}else{var K=$(C[E])}I.fadeOut("slow",function(){I.removeClass("current");K.addClass("current");K.fadeIn("slow",function(){D=false})})}});$("a#next-box",this).click(function(J){J.preventDefault();if(!D){D=true;var I=$(C[E]);E=E+1;if(E>0){B()}else{F()}if(E>=H){var K=$(C[0]);E=0}else{var K=$(C[E])}I.fadeOut("slow",function(){I.removeClass("current");K.addClass("current");K.fadeIn("slow",function(){D=false})})}});var F=function(){$(G).hide()};var B=function(){$(G).show()}})};UKTV.GalleryScroller=new function(){this.NS="UKTV.GalleryScroller";var I=this;var X=YAHOO.util.Dom;var W=YAHOO.util.Event;var Q=YAHOO.util.Selector;var Y=YAHOO.util.Connect;var G=YAHOO.lang.JSON;var J=false;var A=1;var N=[];var U=false;var B=false;var L=false;var D=false;var R=false;var Z=false;var F;var E;var H;var C;var P=function(b,c,d){if(c){X.removeClass(b,"disabled");b.setAttribute("href",c);b.setAttribute("rel","position-"+d)}else{X.addClass(b,"disabled");b.removeAttribute("href");b.setAttribute("rel","position-false")}};var a=function(b,c){P(E,b,c)};var M=function(b,c){P(H,b,c)};var K=function(b){F.innerHTML=b.pagination};var T=function(d){var l=(d.position>(D+1)||d.position<(D-1))?true:false;var m=-1*((d.position-1)*J);if(!l){var j={left:{to:m}};var i=new YAHOO.util.Anim(B,j,A,YAHOO.util.Easing.easeOut);i.animate()}else{var h=-1*((l-R)*J);X.setStyle(B,"left",h+"px");var f=Z.cloneNode(true);L.appendChild(f);X.setStyle(f,"width",J+"px");X.setStyle(f,"left",0+"px");X.setStyle(f,"opacity",1);X.setStyle(B,"left",m+"px");X.setStyle(B,"opacity",0);var b={opacity:{to:1}};var e=new YAHOO.util.Anim(B,b,A,YAHOO.util.Easing.easeOut);var c=function(){var n=this.getEl();n.parentNode.removeChild(n)};var k={opacity:{to:0}};var g=new YAHOO.util.Anim(f,k,A,YAHOO.util.Easing.easeOut);g.onComplete.subscribe(c);e.animate();g.animate()}D=d.position;Z=d.slide;M(d.next_link,(d.position+1));a(d.prev_link,(d.position-1))};var O=function(e,c){var d=document.createElement("ul");d.innerHTML=e;B.appendChild(d);X.setStyle(d,"top","0px");var b=(c-1)*J;X.setStyle(d,"left",b+"px");return d};var S=function(c){var e=function(i){if(i.responseText&&i.responseText!=""){var g=i.responseText;var h=YAHOO.lang.JSON.parse(g);var f=O(h.markup,h.position);h.slide=f;N[c]=h;T(h);K(h)}};var b={success:e,failure:function(){},args:[]};ajax_suffix=(c.indexOf("?")>-1)?"&ajax=true":"?ajax=true";var d=YAHOO.util.Connect.asyncRequest("GET",c+ajax_suffix,b)};var V=function(f){var d=W.getEvent(f);var c=W.getTarget(d);W.stopEvent(d);if(c.nodeName.toLowerCase()=="a"&&c.getAttribute("href")){var b=c.getAttribute("href");if(N[b]){K(N[b]);T(N[b])}else{S(b)}}};this.init=function(){var b=Q.query("div.gallery-nav ul[class!='gallery-pagination'][class!='next-previous'][class!='pageNum']");if(b[0]){Z=b[0];var c=/slide-width-([0-9]+)/i;J=c.exec(Z.className)[1];L=document.createElement("div");X.addClass(L,"slider-container");B=document.createElement("div");X.addClass(B,"slider-inner");X.insertAfter(L,X.getPreviousSibling(Z));L.appendChild(B);B.appendChild(Z);F=Q.query("div.gallery-nav ul.gallery-pagination")[0];E=Q.query("div.gallery-nav p.prev-link a")[0];H=Q.query("div.gallery-nav p.next-link a")[0];var d=Q.query("div.gallery-nav p.current-link a")[0];U=d.getAttribute("href");R=parseInt(d.getAttribute("rel").replace("position-",""));D=R;X.setStyle(B,"width","10000px");X.setStyle(B,"left",(-1*((R-1)*J))+"px");X.setStyle(Z,"left",((R-1)*J)+"px");N[U]={position:D,next_link:H.getAttribute("href"),prev_link:E.getAttribute("href"),slide:Z,pagination:F.innerHTML};W.on(E,"click",V);W.on(H,"click",V);W.on(F,"click",V)}};UKTV.loader.registerObj(this)};$.fn.toEm=function(A){A=jQuery.extend({scope:"body"},A);var C=parseInt(this[0],10);var D=jQuery('
     
    ').appendTo(A.scope);var B=D.height();D.remove();return(C/B).toFixed(8)+"em"};$.fn.toPx=function(A){A=jQuery.extend({scope:"body"},A);var C=parseFloat(this[0]);var D=jQuery('
     
    ').appendTo(A.scope);var B=D.height();D.remove();return Math.round(C*B)+"px"};(function(C){var B=C.browser.msie&&parseInt(C.browser.version)==6&&typeof window.XMLHttpRequest!="object",D=null,A=[];C.modal=function(F,E){return C.modal.impl.init(F,E)};C.modal.close=function(){C.modal.impl.close()};C.fn.modal=function(E){return C.modal.impl.init(this,E)};C.modal.defaults={opacity:50,overlayId:"simplemodal-overlay",overlayCss:{},containerId:"simplemodal-container",containerCss:{},dataCss:{},zIndex:1000,close:true,closeHTML:'',closeClass:"simplemodal-close",position:null,persist:false,onOpen:null,onShow:null,onClose:null};C.modal.impl={opts:null,dialog:{},init:function(F,E){if(this.dialog.data){return false}D=C.browser.msie&&!C.boxModel;this.opts=C.extend({},C.modal.defaults,E);this.zIndex=this.opts.zIndex;this.occb=false;if(typeof F=="object"){F=F instanceof jQuery?F:C(F);if(F.parent().parent().size()>0){this.dialog.parentNode=F.parent();if(!this.opts.persist){this.dialog.orig=F.clone(true)}}}else{if(typeof F=="string"||typeof F=="number"){F=C("
    ").html(F)}else{alert("SimpleModal Error: Unsupported data type: "+typeof F);return false}}this.dialog.data=F.addClass("simplemodal-data").css(this.opts.dataCss);F=null;this.create();this.open();if(C.isFunction(this.opts.onShow)){this.opts.onShow.apply(this,[this.dialog])}return this},create:function(){A=this.getDimensions();if(B){this.dialog.iframe=C('