(function(){var S=this,ac,E=S.jQuery,G=S.$,V=S.jQuery=S.$=function(a,b){return new V.fn.init(a,b);
},ag=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,ab=/^.[^:#\[\.,]*$/;
V.fn=V.prototype={init:function(d,b){d=d||document;
if(d.nodeType){this[0]=d;
this.length=1;
this.context=d;
return this;
}if(typeof d==="string"){var a=ag.exec(d);
if(a&&(a[1]||!b)){if(a[1]){d=V.clean([a[1]],b);
}else{var c=document.getElementById(a[3]);
if(c&&c.id!=a[3]){return V().find(d);
}var e=V(c||[]);
e.context=document;
e.selector=d;
return e;
}}else{return V(b).find(d);
}}else{if(V.isFunction(d)){return V(document).ready(d);
}}if(d.selector&&d.context){this.selector=d.selector;
this.context=d.context;
}return this.setArray(V.isArray(d)?d:V.makeArray(d));
},selector:"",jquery:"1.3.2",size:function(){return this.length;
},get:function(a){return a===ac?Array.prototype.slice.call(this):this[a];
},pushStack:function(d,b,c){var a=V(d);
a.prevObject=this;
a.context=this.context;
if(b==="find"){a.selector=this.selector+(this.selector?" ":"")+c;
}else{if(b){a.selector=this.selector+"."+b+"("+c+")";
}}return a;
},setArray:function(a){this.length=0;
Array.prototype.push.apply(this,a);
return this;
},each:function(b,a){return V.each(this,b,a);
},index:function(a){return V.inArray(a&&a.jquery?a[0]:a,this);
},attr:function(d,b,a){var c=d;
if(typeof d==="string"){if(b===ac){return this[0]&&V[a||"attr"](this[0],d);
}else{c={};
c[d]=b;
}}return this.each(function(e){for(d in c){V.attr(a?this.style:this,d,V.prop(this,c[d],a,e,d));
}});
},css:function(a,b){if((a=="width"||a=="height")&&parseFloat(b)<0){b=ac;
}return this.attr(a,b,"curCSS");
},text:function(b){if(typeof b!=="object"&&b!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(b));
}var a="";
V.each(b||this,function(){V.each(this.childNodes,function(){if(this.nodeType!=8){a+=this.nodeType!=1?this.nodeValue:V.fn.text([this]);
}});
});
return a;
},wrapAll:function(a){if(this[0]){var b=V(a,this[0].ownerDocument).clone();
if(this[0].parentNode){b.insertBefore(this[0]);
}b.map(function(){var c=this;
while(c.firstChild){c=c.firstChild;
}return c;
}).append(this);
}return this;
},wrapInner:function(a){return this.each(function(){V(this).contents().wrapAll(a);
});
},wrap:function(a){return this.each(function(){V(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||V([]);
},push:[].push,sort:[].sort,splice:[].splice,find:function(a){if(this.length===1){var b=this.pushStack([],"find",a);
b.length=0;
V.find(a,this[0],b);
return b;
}else{return this.pushStack(V.unique(V.map(this,function(c){return V.find(a,c);
})),"find",a);
}},clone:function(a){var c=this.map(function(){if(!V.support.noCloneEvent&&!V.isXMLDoc(this)){var e=this.outerHTML;
if(!e){var f=this.ownerDocument.createElement("div");
f.appendChild(this.cloneNode(true));
e=f.innerHTML;
}return V.clean([e.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0];
}else{return this.cloneNode(true);
}});
if(a===true){var b=this.find("*").andSelf(),d=0;
c.find("*").andSelf().each(function(){if(this.nodeName!==b[d].nodeName){return;
}var e=V.data(b[d],"events");
for(var g in e){for(var f in e[g]){V.event.add(this,g,e[g][f],e[g][f].data);
}}d++;
});
}return c;
},filter:function(a){return this.pushStack(V.isFunction(a)&&V.grep(this,function(b,c){return a.call(b,c);
})||V.multiFilter(a,V.grep(this,function(b){return b.nodeType===1;
})),"filter",a);
},closest:function(b){var a=V.expr.match.POS.test(b)?V(b):null,c=0;
return this.map(function(){var d=this;
while(d&&d.ownerDocument){if(a?a.index(d)>-1:V(d).is(b)){V.data(d,"closest",c);
return d;
}d=d.parentNode;
c++;
}});
},not:function(a){if(typeof a==="string"){if(ab.test(a)){return this.pushStack(V.multiFilter(a,this,true),"not",a);
}else{a=V.multiFilter(a,this);
}}var b=a.length&&a[a.length-1]!==ac&&!a.nodeType;
return this.filter(function(){return b?V.inArray(this,a)<0:this!=a;
});
},add:function(a){return this.pushStack(V.unique(V.merge(this.get(),typeof a==="string"?V(a):V.makeArray(a))));
},is:function(a){return !!a&&V.multiFilter(a,this).length>0;
},hasClass:function(a){return !!a&&this.is("."+a);
},val:function(g){if(g===ac){var a=this[0];
if(a){if(V.nodeName(a,"option")){return(a.attributes.value||{}).specified?a.value:a.text;
}if(V.nodeName(a,"select")){var e=a.selectedIndex,h=[],i=a.options,d=a.type=="select-one";
if(e<0){return null;
}for(var b=d?e:0,f=d?e+1:i.length;
b<f;
b++){var c=i[b];
if(c.selected){g=V(c).val();
if(d){return g;
}h.push(g);
}}return h;
}return(a.value||"").replace(/\r/g,"");
}return ac;
}if(typeof g==="number"){g+="";
}return this.each(function(){if(this.nodeType!=1){return;
}if(V.isArray(g)&&/radio|checkbox/.test(this.type)){this.checked=(V.inArray(this.value,g)>=0||V.inArray(this.name,g)>=0);
}else{if(V.nodeName(this,"select")){var j=V.makeArray(g);
V("option",this).each(function(){this.selected=(V.inArray(this.value,j)>=0||V.inArray(this.text,j)>=0);
});
if(!j.length){this.selectedIndex=-1;
}}else{this.value=g;
}}});
},html:function(a){return a===ac?(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(V.map(this,function(b,c){return a.call(b,c,b);
}));
},andSelf:function(){return this.add(this.prevObject);
},domManip:function(f,i,h){if(this[0]){var e=(this[0].ownerDocument||this[0]).createDocumentFragment(),b=V.clean(f,(this[0].ownerDocument||this[0]),e),d=e.firstChild;
if(d){for(var c=0,a=this.length;
c<a;
c++){h.call(g(this[c],d),this.length>1||c>0?e.cloneNode(true):e);
}}if(b){V.each(b,F);
}}return this;
function g(j,k){return i&&V.nodeName(j,"table")&&V.nodeName(k,"tr")?(j.getElementsByTagName("tbody")[0]||j.appendChild(j.ownerDocument.createElement("tbody"))):j;
}}};
V.fn.init.prototype=V.fn;
function F(a,b){if(b.src){V.ajax({url:b.src,async:false,dataType:"script"});
}else{V.globalEval(b.text||b.textContent||b.innerHTML||"");
}if(b.parentNode){b.parentNode.removeChild(b);
}}function aa(){return +new Date;
}V.extend=V.fn.extend=function(){var f=arguments[0]||{},d=1,e=arguments.length,a=false,c;
if(typeof f==="boolean"){a=f;
f=arguments[1]||{};
d=2;
}if(typeof f!=="object"&&!V.isFunction(f)){f={};
}if(e==d){f=this;
--d;
}for(;
d<e;
d++){if((c=arguments[d])!=null){for(var b in c){var g=f[b],h=c[b];
if(f===h){continue;
}if(a&&h&&typeof h==="object"&&!h.nodeType){f[b]=V.extend(a,g||(h.length!=null?[]:{}),h);
}else{if(h!==ac){f[b]=h;
}}}}}return f;
};
var X=/z-?index|font-?weight|opacity|zoom|line-?height/i,H=document.defaultView||{},J=Object.prototype.toString;
V.extend({noConflict:function(a){S.$=G;
if(a){S.jQuery=E;
}return V;
},isFunction:function(a){return J.call(a)==="[object Function]";
},isArray:function(a){return J.call(a)==="[object Array]";
},isXMLDoc:function(a){return a.nodeType===9&&a.documentElement.nodeName!=="HTML"||!!a.ownerDocument&&V.isXMLDoc(a.ownerDocument);
},globalEval:function(a){if(a&&/\S/.test(a)){var c=document.getElementsByTagName("head")[0]||document.documentElement,b=document.createElement("script");
b.type="text/javascript";
if(V.support.scriptEval){b.appendChild(document.createTextNode(a));
}else{b.text=a;
}c.insertBefore(b,c.firstChild);
c.removeChild(b);
}},nodeName:function(b,a){return b.nodeName&&b.nodeName.toUpperCase()==a.toUpperCase();
},each:function(a,g,c){var f,d=0,e=a.length;
if(c){if(e===ac){for(f in a){if(g.apply(a[f],c)===false){break;
}}}else{for(;
d<e;
){if(g.apply(a[d++],c)===false){break;
}}}}else{if(e===ac){for(f in a){if(g.call(a[f],f,a[f])===false){break;
}}}else{for(var b=a[0];
d<e&&g.call(b,d,b)!==false;
b=a[++d]){}}}return a;
},prop:function(b,c,a,e,d){if(V.isFunction(c)){c=c.call(b,e);
}return typeof c==="number"&&a=="curCSS"&&!X.test(d)?c+"px":c;
},className:{add:function(a,b){V.each((b||"").split(/\s+/),function(c,d){if(a.nodeType==1&&!V.className.has(a.className,d)){a.className+=(a.className?" ":"")+d;
}});
},remove:function(a,b){if(a.nodeType==1){a.className=b!==ac?V.grep(a.className.split(/\s+/),function(c){return !V.className.has(b,c);
}).join(" "):"";
}},has:function(b,a){return b&&V.inArray(a,(b.className||b).toString().split(/\s+/))>-1;
}},swap:function(b,a,c){var d={};
for(var e in a){d[e]=b.style[e];
b.style[e]=a[e];
}c.call(b);
for(var e in a){b.style[e]=d[e];
}},css:function(d,b,f,a){if(b=="width"||b=="height"){var h,c={position:"absolute",visibility:"hidden",display:"block"},g=b=="width"?["Left","Right"]:["Top","Bottom"];
function e(){h=b=="width"?d.offsetWidth:d.offsetHeight;
if(a==="border"){return;
}V.each(g,function(){if(!a){h-=parseFloat(V.curCSS(d,"padding"+this,true))||0;
}if(a==="margin"){h+=parseFloat(V.curCSS(d,"margin"+this,true))||0;
}else{h-=parseFloat(V.curCSS(d,"border"+this+"Width",true))||0;
}});
}if(d.offsetWidth!==0){e();
}else{V.swap(d,c,e);
}return Math.max(0,Math.round(h));
}return V.curCSS(d,b,f);
},curCSS:function(e,b,c){var h,a=e.style;
if(b=="opacity"&&!V.support.opacity){h=V.attr(a,"opacity");
return h==""?"1":h;
}if(b.match(/float/i)){b=N;
}if(!c&&a&&a[b]){h=a[b];
}else{if(H.getComputedStyle){if(b.match(/float/i)){b="float";
}b=b.replace(/([A-Z])/g,"-$1").toLowerCase();
var i=H.getComputedStyle(e,null);
if(i){h=i.getPropertyValue(b);
}if(b=="opacity"&&h==""){h="1";
}}else{if(e.currentStyle){var f=b.replace(/\-(\w)/g,function(j,k){return k.toUpperCase();
});
h=e.currentStyle[b]||e.currentStyle[f];
if(!/^\d+(px)?$/i.test(h)&&/^\d/.test(h)){var d=a.left,g=e.runtimeStyle.left;
e.runtimeStyle.left=e.currentStyle.left;
a.left=h||0;
h=a.pixelLeft+"px";
a.left=d;
e.runtimeStyle.left=g;
}}}}return h;
},clean:function(b,g,e){g=g||document;
if(typeof g.createElement==="undefined"){g=g.ownerDocument||g[0]&&g[0].ownerDocument||document;
}if(!e&&b.length===1&&typeof b[0]==="string"){var d=/^<(\w+)\s*\/?>$/.exec(b[0]);
if(d){return[g.createElement(d[1])];
}}var c=[],a=[],h=g.createElement("div");
V.each(b,function(p,k){if(typeof k==="number"){k+="";
}if(!k){return;
}if(typeof k==="string"){k=k.replace(/(<(\w+)[^>]*?)\/>/g,function(r,s,q){return q.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?r:s+"></"+q+">";
});
var l=k.replace(/^\s+/,"").substring(0,10).toLowerCase();
var i=!l.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!l.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||l.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!l.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!l.indexOf("<td")||!l.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!l.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!V.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];
h.innerHTML=i[1]+k+i[2];
while(i[0]--){h=h.lastChild;
}if(!V.support.tbody){var j=/<tbody/i.test(k),o=!l.indexOf("<table")&&!j?h.firstChild&&h.firstChild.childNodes:i[1]=="<table>"&&!j?h.childNodes:[];
for(var m=o.length-1;
m>=0;
--m){if(V.nodeName(o[m],"tbody")&&!o[m].childNodes.length){o[m].parentNode.removeChild(o[m]);
}}}if(!V.support.leadingWhitespace&&/^\s/.test(k)){h.insertBefore(g.createTextNode(k.match(/^\s*/)[0]),h.firstChild);
}k=V.makeArray(h.childNodes);
}if(k.nodeType){c.push(k);
}else{c=V.merge(c,k);
}});
if(e){for(var f=0;
c[f];
f++){if(V.nodeName(c[f],"script")&&(!c[f].type||c[f].type.toLowerCase()==="text/javascript")){a.push(c[f].parentNode?c[f].parentNode.removeChild(c[f]):c[f]);
}else{if(c[f].nodeType===1){c.splice.apply(c,[f+1,0].concat(V.makeArray(c[f].getElementsByTagName("script"))));
}e.appendChild(c[f]);
}}return a;
}return c;
},attr:function(f,c,g){if(!f||f.nodeType==3||f.nodeType==8){return ac;
}var d=!V.isXMLDoc(f),h=g!==ac;
c=d&&V.props[c]||c;
if(f.tagName){var b=/href|src|style/.test(c);
if(c=="selected"&&f.parentNode){f.parentNode.selectedIndex;
}if(c in f&&d&&!b){if(h){if(c=="type"&&V.nodeName(f,"input")&&f.parentNode){throw"type property can't be changed";
}f[c]=g;
}if(V.nodeName(f,"form")&&f.getAttributeNode(c)){return f.getAttributeNode(c).nodeValue;
}if(c=="tabIndex"){var e=f.getAttributeNode("tabIndex");
return e&&e.specified?e.value:f.nodeName.match(/(button|input|object|select|textarea)/i)?0:f.nodeName.match(/^(a|area)$/i)&&f.href?0:ac;
}return f[c];
}if(!V.support.style&&d&&c=="style"){return V.attr(f.style,"cssText",g);
}if(h){f.setAttribute(c,""+g);
}var a=!V.support.hrefNormalized&&d&&b?f.getAttribute(c,2):f.getAttribute(c);
return a===null?ac:a;
}if(!V.support.opacity&&c=="opacity"){if(h){f.zoom=1;
f.filter=(f.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(g)+""=="NaN"?"":"alpha(opacity="+g*100+")");
}return f.filter&&f.filter.indexOf("opacity=")>=0?(parseFloat(f.filter.match(/opacity=([^)]*)/)[1])/100)+"":"";
}c=c.replace(/-([a-z])/ig,function(i,j){return j.toUpperCase();
});
if(h){f[c]=g;
}return f[c];
},trim:function(a){return(a||"").replace(/^\s+|\s+$/g,"");
},makeArray:function(a){var b=[];
if(a!=null){var c=a.length;
if(c==null||typeof a==="string"||V.isFunction(a)||a.setInterval){b[0]=a;
}else{while(c){b[--c]=a[c];
}}}return b;
},inArray:function(a,b){for(var c=0,d=b.length;
c<d;
c++){if(b[c]===a){return c;
}}return -1;
},merge:function(b,d){var e=0,a,c=b.length;
if(!V.support.getAll){while((a=d[e++])!=null){if(a.nodeType!=8){b[c++]=a;
}}}else{while((a=d[e++])!=null){b[c++]=a;
}}return b;
},unique:function(g){var c=[],f={};
try{for(var a=0,d=g.length;
a<d;
a++){var b=V.data(g[a]);
if(!f[b]){f[b]=true;
c.push(g[a]);
}}}catch(e){c=g;
}return c;
},grep:function(f,e,b){var a=[];
for(var c=0,d=f.length;
c<d;
c++){if(!b!=!e(f[c],c)){a.push(f[c]);
}}return a;
},map:function(e,b){var f=[];
for(var a=0,c=e.length;
a<c;
a++){var d=b(e[a],a);
if(d!=null){f[f.length]=d;
}}return f.concat.apply([],f);
}});
var af=navigator.userAgent.toLowerCase();
V.browser={version:(af.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(af),opera:/opera/.test(af),msie:/msie/.test(af)&&!/opera/.test(af),mozilla:/mozilla/.test(af)&&!/(compatible|webkit)/.test(af)};
V.each({parent:function(a){return a.parentNode;
},parents:function(a){return V.dir(a,"parentNode");
},next:function(a){return V.nth(a,2,"nextSibling");
},prev:function(a){return V.nth(a,2,"previousSibling");
},nextAll:function(a){return V.dir(a,"nextSibling");
},prevAll:function(a){return V.dir(a,"previousSibling");
},siblings:function(a){return V.sibling(a.parentNode.firstChild,a);
},children:function(a){return V.sibling(a.firstChild);
},contents:function(a){return V.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:V.makeArray(a.childNodes);
}},function(a,b){V.fn[a]=function(c){var d=V.map(this,b);
if(c&&typeof c=="string"){d=V.multiFilter(c,d);
}return this.pushStack(V.unique(d),a,c);
};
});
V.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){V.fn[a]=function(c){var g=[],d=V(c);
for(var h=0,e=d.length;
h<e;
h++){var f=(h>0?this.clone(true):this).get();
V.fn[b].apply(V(d[h]),f);
g=g.concat(f);
}return this.pushStack(g,a,c);
};
});
V.each({removeAttr:function(a){V.attr(this,a,"");
if(this.nodeType==1){this.removeAttribute(a);
}},addClass:function(a){V.className.add(this,a);
},removeClass:function(a){V.className.remove(this,a);
},toggleClass:function(b,a){if(typeof a!=="boolean"){a=!V.className.has(this,b);
}V.className[a?"add":"remove"](this,b);
},remove:function(a){if(!a||V.filter(a,[this]).length){V("*",this).add([this]).each(function(){V.event.remove(this);
V.removeData(this);
});
if(this.parentNode){this.parentNode.removeChild(this);
}}},empty:function(){V(this).children().remove();
while(this.firstChild){this.removeChild(this.firstChild);
}}},function(a,b){V.fn[a]=function(){return this.each(b,arguments);
};
});
function Q(a,b){return a[0]&&parseInt(V.curCSS(a[0],b,true),10)||0;
}var O="jQuery"+aa(),M=0,ad={};
V.extend({cache:{},data:function(d,c,a){d=d==S?ad:d;
var b=d[O];
if(!b){b=d[O]=++M;
}if(c&&!V.cache[b]){V.cache[b]={};
}if(a!==ac){V.cache[b][c]=a;
}return c?V.cache[b][c]:b;
},removeData:function(d,c){d=d==S?ad:d;
var b=d[O];
if(c){if(V.cache[b]){delete V.cache[b][c];
c="";
for(c in V.cache[b]){break;
}if(!c){V.removeData(d);
}}}else{try{delete d[O];
}catch(a){if(d.removeAttribute){d.removeAttribute(O);
}}delete V.cache[b];
}},queue:function(d,c,b){if(d){c=(c||"fx")+"queue";
var a=V.data(d,c);
if(!a||V.isArray(b)){a=V.data(d,c,V.makeArray(b));
}else{if(b){a.push(b);
}}}return a;
},dequeue:function(b,a){var c=V.queue(b,a),d=c.shift();
if(!a||a==="fx"){d=c[0];
}if(d!==ac){d.call(b);
}}});
V.fn.extend({data:function(c,a){var b=c.split(".");
b[1]=b[1]?"."+b[1]:"";
if(a===ac){var d=this.triggerHandler("getData"+b[1]+"!",[b[0]]);
if(d===ac&&this.length){d=V.data(this[0],c);
}return d===ac&&b[1]?this.data(b[0]):d;
}else{return this.trigger("setData"+b[1]+"!",[b[0],a]).each(function(){V.data(this,c,a);
});
}},removeData:function(a){return this.each(function(){V.removeData(this,a);
});
},queue:function(a,b){if(typeof a!=="string"){b=a;
a="fx";
}if(b===ac){return V.queue(this[0],a);
}return this.each(function(){var c=V.queue(this,a,b);
if(a=="fx"&&c.length==1){c[0].call(this);
}});
},dequeue:function(a){return this.each(function(){V.dequeue(this,a);
});
}});
(function(){var e=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,k=0,g=Object.prototype.toString;
var b=function(ai,v,z,q){z=z||[];
v=v||document;
if(v.nodeType!==1&&v.nodeType!==9){return[];
}if(!ai||typeof ai!=="string"){return z;
}var aj=[],x,s,r,u,A,w,D=true;
e.lastIndex=0;
while((x=e.exec(ai))!==null){aj.push(x[1]);
if(x[2]){w=RegExp.rightContext;
break;
}}if(aj.length>1&&l.exec(ai)){if(aj.length===2&&h.relative[aj[0]]){s=i(aj[0]+aj[1],v);
}else{s=h.relative[aj[0]]?[v]:b(aj.shift(),v);
while(aj.length){ai=aj.shift();
if(h.relative[ai]){ai+=aj.shift();
}s=i(ai,s);
}}}else{var C=q?{expr:aj.pop(),set:a(q)}:b.find(aj.pop(),aj.length===1&&v.parentNode?v.parentNode:v,d(v));
s=b.filter(C.expr,C.set);
if(aj.length>0){r=a(s);
}else{D=false;
}while(aj.length){var B=aj.pop(),y=B;
if(!h.relative[B]){B="";
}else{y=aj.pop();
}if(y==null){y=v;
}h.relative[B](r,y,d(v));
}}if(!r){r=s;
}if(!r){throw"Syntax error, unrecognized expression: "+(B||ai);
}if(g.call(r)==="[object Array]"){if(!D){z.push.apply(z,r);
}else{if(v.nodeType===1){for(var t=0;
r[t]!=null;
t++){if(r[t]&&(r[t]===true||r[t].nodeType===1&&j(v,r[t]))){z.push(s[t]);
}}}else{for(var t=0;
r[t]!=null;
t++){if(r[t]&&r[t].nodeType===1){z.push(s[t]);
}}}}}else{a(r,z);
}if(w){b(w,v,z,q);
if(c){hasDuplicate=false;
z.sort(c);
if(hasDuplicate){for(var t=1;
t<z.length;
t++){if(z[t]===z[t-1]){z.splice(t--,1);
}}}}}return z;
};
b.matches=function(q,r){return b(q,null,null,r);
};
b.find=function(q,r,v){var y,w;
if(!q){return[];
}for(var u=0,t=h.order.length;
u<t;
u++){var x=h.order[u],w;
if((w=h.match[x].exec(q))){var s=RegExp.leftContext;
if(s.substr(s.length-1)!=="\\"){w[1]=(w[1]||"").replace(/\\/g,"");
y=h.find[x](w,r,v);
if(y!=null){q=q.replace(h.match[x],"");
break;
}}}}if(!y){y=r.getElementsByTagName("*");
}return{set:y,expr:q};
};
b.filter=function(v,q,z,y){var x=v,r=[],u=q,ai,C,aj=q&&q[0]&&d(q[0]);
while(v&&q.length){for(var A in h.filter){if((ai=h.match[A].exec(v))!=null){var w=h.filter[A],B,t;
C=false;
if(u==r){r=[];
}if(h.preFilter[A]){ai=h.preFilter[A](ai,u,z,r,y,aj);
if(!ai){C=B=true;
}else{if(ai===true){continue;
}}}if(ai){for(var D=0;
(t=u[D])!=null;
D++){if(t){B=w(t,ai,D,u);
var s=y^!!B;
if(z&&B!=null){if(s){C=true;
}else{u[D]=false;
}}else{if(s){r.push(t);
C=true;
}}}}}if(B!==ac){if(!z){u=r;
}v=v.replace(h.match[A],"");
if(!C){return[];
}break;
}}}if(v==x){if(C==null){throw"Syntax error, unrecognized expression: "+v;
}else{break;
}}x=v;
}return u;
};
var h=b.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(q){return q.getAttribute("href");
}},relative:{"+":function(q,r,y){var w=typeof r==="string",v=w&&!/\W/.test(r),x=w&&!v;
if(v&&!y){r=r.toUpperCase();
}for(var u=0,t=q.length,s;
u<t;
u++){if((s=q[u])){while((s=s.previousSibling)&&s.nodeType!==1){}q[u]=x||s&&s.nodeName===r?s||false:s===r;
}}if(x){b.filter(r,q,true);
}},">":function(x,s,q){var v=typeof s==="string";
if(v&&!/\W/.test(s)){s=q?s:s.toUpperCase();
for(var t=0,r=x.length;
t<r;
t++){var w=x[t];
if(w){var u=w.parentNode;
x[t]=u.nodeName===s?u:false;
}}}else{for(var t=0,r=x.length;
t<r;
t++){var w=x[t];
if(w){x[t]=v?w.parentNode:w.parentNode===s;
}}if(v){b.filter(s,x,true);
}}},"":function(u,s,r){var t=k++,v=f;
if(!s.match(/\W/)){var q=s=r?s:s.toUpperCase();
v=p;
}v("parentNode",s,t,u,q,r);
},"~":function(u,s,r){var t=k++,v=f;
if(typeof s==="string"&&!s.match(/\W/)){var q=s=r?s:s.toUpperCase();
v=p;
}v("previousSibling",s,t,u,q,r);
}},find:{ID:function(r,s,t){if(typeof s.getElementById!=="undefined"&&!t){var q=s.getElementById(r[1]);
return q?[q]:[];
}},NAME:function(t,r,s){if(typeof r.getElementsByName!=="undefined"){var w=[],q=r.getElementsByName(t[1]);
for(var u=0,v=q.length;
u<v;
u++){if(q[u].getAttribute("name")===t[1]){w.push(q[u]);
}}return w.length===0?null:w;
}},TAG:function(q,r){return r.getElementsByTagName(q[1]);
}},preFilter:{CLASS:function(u,s,t,r,x,q){u=" "+u[1].replace(/\\/g,"")+" ";
if(q){return u;
}for(var v=0,w;
(w=s[v])!=null;
v++){if(w){if(x^(w.className&&(" "+w.className+" ").indexOf(u)>=0)){if(!t){r.push(w);
}}else{if(t){s[v]=false;
}}}}return false;
},ID:function(q){return q[1].replace(/\\/g,"");
},TAG:function(r,q){for(var s=0;
q[s]===false;
s++){}return q[s]&&d(q[s])?r[1]:r[1].toUpperCase();
},CHILD:function(q){if(q[1]=="nth"){var r=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(q[2]=="even"&&"2n"||q[2]=="odd"&&"2n+1"||!/\D/.test(q[2])&&"0n+"+q[2]||q[2]);
q[2]=(r[1]+(r[2]||1))-0;
q[3]=r[3]-0;
}q[0]=k++;
return q;
},ATTR:function(q,s,t,r,v,w){var u=q[1].replace(/\\/g,"");
if(!w&&h.attrMap[u]){q[1]=h.attrMap[u];
}if(q[2]==="~="){q[4]=" "+q[4]+" ";
}return q;
},PSEUDO:function(q,s,t,r,v){if(q[1]==="not"){if(q[3].match(e).length>1||/^\w/.test(q[3])){q[3]=b(q[3],null,null,s);
}else{var u=b.filter(q[3],s,t,true^v);
if(!t){r.push.apply(r,u);
}return false;
}}else{if(h.match.POS.test(q[0])||h.match.CHILD.test(q[0])){return true;
}}return q;
},POS:function(q){q.unshift(true);
return q;
}},filters:{enabled:function(q){return q.disabled===false&&q.type!=="hidden";
},disabled:function(q){return q.disabled===true;
},checked:function(q){return q.checked===true;
},selected:function(q){q.parentNode.selectedIndex;
return q.selected===true;
},parent:function(q){return !!q.firstChild;
},empty:function(q){return !q.firstChild;
},has:function(s,r,q){return !!b(q[3],s).length;
},header:function(q){return/h\d/i.test(q.nodeName);
},text:function(q){return"text"===q.type;
},radio:function(q){return"radio"===q.type;
},checkbox:function(q){return"checkbox"===q.type;
},file:function(q){return"file"===q.type;
},password:function(q){return"password"===q.type;
},submit:function(q){return"submit"===q.type;
},image:function(q){return"image"===q.type;
},reset:function(q){return"reset"===q.type;
},button:function(q){return"button"===q.type||q.nodeName.toUpperCase()==="BUTTON";
},input:function(q){return/input|select|textarea|button/i.test(q.nodeName);
}},setFilters:{first:function(r,q){return q===0;
},last:function(s,r,q,t){return r===t.length-1;
},even:function(r,q){return q%2===0;
},odd:function(r,q){return q%2===1;
},lt:function(s,r,q){return r<q[3]-0;
},gt:function(s,r,q){return r>q[3]-0;
},nth:function(s,r,q){return q[3]-0==r;
},eq:function(s,r,q){return q[3]-0==r;
}},filter:{PSEUDO:function(x,t,u,q){var s=t[1],v=h.filters[s];
if(v){return v(x,u,t,q);
}else{if(s==="contains"){return(x.textContent||x.innerText||"").indexOf(t[3])>=0;
}else{if(s==="not"){var w=t[3];
for(var u=0,r=w.length;
u<r;
u++){if(w[u]===x){return false;
}}return true;
}}}},CHILD:function(s,v){var z=v[1],t=s;
switch(z){case"only":case"first":while(t=t.previousSibling){if(t.nodeType===1){return false;
}}if(z=="first"){return true;
}t=s;
case"last":while(t=t.nextSibling){if(t.nodeType===1){return false;
}}return true;
case"nth":var u=v[2],q=v[3];
if(u==1&&q==0){return true;
}var y=v[0],w=s.parentNode;
if(w&&(w.sizcache!==y||!s.nodeIndex)){var x=0;
for(t=w.firstChild;
t;
t=t.nextSibling){if(t.nodeType===1){t.nodeIndex=++x;
}}w.sizcache=y;
}var r=s.nodeIndex-q;
if(u==0){return r==0;
}else{return(r%u==0&&r/u>=0);
}}},ID:function(r,q){return r.nodeType===1&&r.getAttribute("id")===q;
},TAG:function(r,q){return(q==="*"&&r.nodeType===1)||r.nodeName===q;
},CLASS:function(r,q){return(" "+(r.className||r.getAttribute("class"))+" ").indexOf(q)>-1;
},ATTR:function(r,u){var t=u[1],v=h.attrHandle[t]?h.attrHandle[t](r):r[t]!=null?r[t]:r.getAttribute(t),s=v+"",q=u[2],w=u[4];
return v==null?q==="!=":q==="="?s===w:q==="*="?s.indexOf(w)>=0:q==="~="?(" "+s+" ").indexOf(w)>=0:!w?s&&v!==false:q==="!="?s!=w:q==="^="?s.indexOf(w)===0:q==="$="?s.substr(s.length-w.length)===w:q==="|="?s===w||s.substr(0,w.length+1)===w+"-":false;
},POS:function(q,s,t,r){var v=s[2],u=h.setFilters[v];
if(u){return u(q,t,s,r);
}}}};
var l=h.match.POS;
for(var o in h.match){h.match[o]=RegExp(h.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source);
}var a=function(r,q){r=Array.prototype.slice.call(r);
if(q){q.push.apply(q,r);
return q;
}return r;
};
try{Array.prototype.slice.call(document.documentElement.childNodes);
}catch(m){a=function(q,u){var s=u||[];
if(g.call(q)==="[object Array]"){Array.prototype.push.apply(s,q);
}else{if(typeof q.length==="number"){for(var t=0,r=q.length;
t<r;
t++){s.push(q[t]);
}}else{for(var t=0;
q[t];
t++){s.push(q[t]);
}}}return s;
};
}var c;
if(document.documentElement.compareDocumentPosition){c=function(r,q){var s=r.compareDocumentPosition(q)&4?-1:r===q?0:1;
if(s===0){hasDuplicate=true;
}return s;
};
}else{if("sourceIndex" in document.documentElement){c=function(r,q){var s=r.sourceIndex-q.sourceIndex;
if(s===0){hasDuplicate=true;
}return s;
};
}else{if(document.createRange){c=function(u,s){var t=u.ownerDocument.createRange(),r=s.ownerDocument.createRange();
t.selectNode(u);
t.collapse(true);
r.selectNode(s);
r.collapse(true);
var q=t.compareBoundaryPoints(Range.START_TO_END,r);
if(q===0){hasDuplicate=true;
}return q;
};
}}}(function(){var r=document.createElement("form"),s="script"+(new Date).getTime();
r.innerHTML="<input name='"+s+"'/>";
var q=document.documentElement;
q.insertBefore(r,q.firstChild);
if(!!document.getElementById(s)){h.find.ID=function(t,u,v){if(typeof u.getElementById!=="undefined"&&!v){var w=u.getElementById(t[1]);
return w?w.id===t[1]||typeof w.getAttributeNode!=="undefined"&&w.getAttributeNode("id").nodeValue===t[1]?[w]:ac:[];
}};
h.filter.ID=function(u,v){var t=typeof u.getAttributeNode!=="undefined"&&u.getAttributeNode("id");
return u.nodeType===1&&t&&t.nodeValue===v;
};
}q.removeChild(r);
})();
(function(){var q=document.createElement("div");
q.appendChild(document.createComment(""));
if(q.getElementsByTagName("*").length>0){h.find.TAG=function(t,s){var r=s.getElementsByTagName(t[1]);
if(t[1]==="*"){var v=[];
for(var u=0;
r[u];
u++){if(r[u].nodeType===1){v.push(r[u]);
}}r=v;
}return r;
};
}q.innerHTML="<a href='#'></a>";
if(q.firstChild&&typeof q.firstChild.getAttribute!=="undefined"&&q.firstChild.getAttribute("href")!=="#"){h.attrHandle.href=function(r){return r.getAttribute("href",2);
};
}})();
if(document.querySelectorAll){(function(){var q=b,r=document.createElement("div");
r.innerHTML="<p class='TEST'></p>";
if(r.querySelectorAll&&r.querySelectorAll(".TEST").length===0){return;
}b=function(t,s,v,w){s=s||document;
if(!w&&s.nodeType===9&&!d(s)){try{return a(s.querySelectorAll(t),v);
}catch(u){}}return q(t,s,v,w);
};
b.find=q.find;
b.filter=q.filter;
b.selectors=q.selectors;
b.matches=q.matches;
})();
}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var q=document.createElement("div");
q.innerHTML="<div class='test e'></div><div class='test'></div>";
if(q.getElementsByClassName("e").length===0){return;
}q.lastChild.className="e";
if(q.getElementsByClassName("e").length===1){return;
}h.order.splice(1,0,"CLASS");
h.find.CLASS=function(r,s,t){if(typeof s.getElementsByClassName!=="undefined"&&!t){return s.getElementsByClassName(r[1]);
}};
})();
}function p(u,A,z,t,s,q){var x=u=="previousSibling"&&!q;
for(var w=0,v=t.length;
w<v;
w++){var r=t[w];
if(r){if(x&&r.nodeType===1){r.sizcache=z;
r.sizset=w;
}r=r[u];
var y=false;
while(r){if(r.sizcache===z){y=t[r.sizset];
break;
}if(r.nodeType===1&&!q){r.sizcache=z;
r.sizset=w;
}if(r.nodeName===A){y=r;
break;
}r=r[u];
}t[w]=y;
}}}function f(u,A,z,t,s,q){var x=u=="previousSibling"&&!q;
for(var w=0,v=t.length;
w<v;
w++){var r=t[w];
if(r){if(x&&r.nodeType===1){r.sizcache=z;
r.sizset=w;
}r=r[u];
var y=false;
while(r){if(r.sizcache===z){y=t[r.sizset];
break;
}if(r.nodeType===1){if(!q){r.sizcache=z;
r.sizset=w;
}if(typeof A!=="string"){if(r===A){y=true;
break;
}}else{if(b.filter(A,[r]).length>0){y=r;
break;
}}}r=r[u];
}t[w]=y;
}}}var j=document.compareDocumentPosition?function(r,q){return r.compareDocumentPosition(q)&16;
}:function(r,q){return r!==q&&(r.contains?r.contains(q):true);
};
var d=function(q){return q.nodeType===9&&q.documentElement.nodeName!=="HTML"||!!q.ownerDocument&&d(q.ownerDocument);
};
var i=function(r,q){var u=[],v="",w,t=q.nodeType?[q]:q;
while((w=h.match.PSEUDO.exec(r))){v+=w[0];
r=r.replace(h.match.PSEUDO,"");
}r=h.relative[r]?r+"*":r;
for(var x=0,s=t.length;
x<s;
x++){b(r,t[x],u);
}return b.filter(v,u);
};
V.find=b;
V.filter=b.filter;
V.expr=b.selectors;
V.expr[":"]=V.expr.filters;
b.selectors.filters.hidden=function(q){return q.offsetWidth===0||q.offsetHeight===0;
};
b.selectors.filters.visible=function(q){return q.offsetWidth>0||q.offsetHeight>0;
};
b.selectors.filters.animated=function(q){return V.grep(V.timers,function(r){return q===r.elem;
}).length;
};
V.multiFilter=function(s,q,r){if(r){s=":not("+s+")";
}return b.matches(s,q);
};
V.dir=function(s,r){var q=[],t=s[r];
while(t&&t!=document){if(t.nodeType==1){q.push(t);
}t=t[r];
}return q;
};
V.nth=function(q,r,t,u){r=r||1;
var s=0;
for(;
q;
q=q[t]){if(q.nodeType==1&&++s==r){break;
}}return q;
};
V.sibling=function(s,r){var q=[];
for(;
s;
s=s.nextSibling){if(s.nodeType==1&&s!=r){q.push(s);
}}return q;
};
return;
S.Sizzle=b;
})();
V.event={add:function(e,g,d,c){if(e.nodeType==3||e.nodeType==8){return;
}if(e.setInterval&&e!=S){e=S;
}if(!d.guid){d.guid=this.guid++;
}if(c!==ac){var a=d;
d=this.proxy(a);
d.data=c;
}var f=V.data(e,"events")||V.data(e,"events",{}),b=V.data(e,"handle")||V.data(e,"handle",function(){return typeof V!=="undefined"&&!V.event.triggered?V.event.handle.apply(arguments.callee.elem,arguments):ac;
});
b.elem=e;
V.each(g.split(/\s+/),function(i,j){var k=j.split(".");
j=k.shift();
d.type=k.slice().sort().join(".");
var h=f[j];
if(V.event.specialAll[j]){V.event.specialAll[j].setup.call(e,c,k);
}if(!h){h=f[j]={};
if(!V.event.special[j]||V.event.special[j].setup.call(e,c,k)===false){if(e.addEventListener){e.addEventListener(j,b,false);
}else{if(e.attachEvent){e.attachEvent("on"+j,b);
}}}}h[d.guid]=d;
V.event.global[j]=true;
});
e=null;
},guid:1,global:{},remove:function(g,d,f){if(g.nodeType==3||g.nodeType==8){return;
}var c=V.data(g,"events"),b,a;
if(c){if(d===ac||(typeof d==="string"&&d.charAt(0)==".")){for(var e in c){this.remove(g,e+(d||""));
}}else{if(d.type){f=d.handler;
d=d.type;
}V.each(d.split(/\s+/),function(j,l){var i=l.split(".");
l=i.shift();
var k=RegExp("(^|\\.)"+i.slice().sort().join(".*\\.")+"(\\.|$)");
if(c[l]){if(f){delete c[l][f.guid];
}else{for(var m in c[l]){if(k.test(c[l][m].type)){delete c[l][m];
}}}if(V.event.specialAll[l]){V.event.specialAll[l].teardown.call(g,i);
}for(b in c[l]){break;
}if(!b){if(!V.event.special[l]||V.event.special[l].teardown.call(g,i)===false){if(g.removeEventListener){g.removeEventListener(l,V.data(g,"handle"),false);
}else{if(g.detachEvent){g.detachEvent("on"+l,V.data(g,"handle"));
}}}b=null;
delete c[l];
}}});
}for(b in c){break;
}if(!b){var h=V.data(g,"handle");
if(h){h.elem=null;
}V.removeData(g,"events");
V.removeData(g,"handle");
}}},trigger:function(e,g,d,a){var c=e.type||e;
if(!a){e=typeof e==="object"?e[O]?e:V.extend(V.Event(c),e):V.Event(c);
if(c.indexOf("!")>=0){e.type=c=c.slice(0,-1);
e.exclusive=true;
}if(!d){e.stopPropagation();
if(this.global[c]){V.each(V.cache,function(){if(this.events&&this.events[c]){V.event.trigger(e,g,this.handle.elem);
}});
}}if(!d||d.nodeType==3||d.nodeType==8){return ac;
}e.result=ac;
e.target=d;
g=V.makeArray(g);
g.unshift(e);
}e.currentTarget=d;
var f=V.data(d,"handle");
if(f){f.apply(d,g);
}if((!d[c]||(V.nodeName(d,"a")&&c=="click"))&&d["on"+c]&&d["on"+c].apply(d,g)===false){e.result=false;
}if(!a&&d[c]&&!e.isDefaultPrevented()&&!(V.nodeName(d,"a")&&c=="click")){this.triggered=true;
try{d[c]();
}catch(h){}}this.triggered=false;
if(!e.isPropagationStopped()){var b=d.parentNode||d.ownerDocument;
if(b){V.event.trigger(e,g,b,true);
}}},handle:function(g){var f,a;
g=arguments[0]=V.event.fix(g||S.event);
g.currentTarget=this;
var h=g.type.split(".");
g.type=h.shift();
f=!h.length&&!g.exclusive;
var e=RegExp("(^|\\.)"+h.slice().sort().join(".*\\.")+"(\\.|$)");
a=(V.data(this,"events")||{})[g.type];
for(var c in a){var d=a[c];
if(f||e.test(d.type)){g.handler=d;
g.data=d.data;
var b=d.apply(this,arguments);
if(b!==ac){g.result=b;
if(b===false){g.preventDefault();
g.stopPropagation();
}}if(g.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[O]){return c;
}var f=c;
c=V.Event(f);
for(var a=this.props.length,e;
a;
){e=this.props[--a];
c[e]=f[e];
}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 d=document.documentElement,b=document.body;
c.pageX=c.clientX+(d&&d.scrollLeft||b&&b.scrollLeft||0)-(d.clientLeft||0);
c.pageY=c.clientY+(d&&d.scrollTop||b&&b.scrollTop||0)-(d.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(b,a){a=a||function(){return b.apply(this,arguments);
};
a.guid=b.guid=b.guid||a.guid||this.guid++;
return a;
},special:{ready:{setup:ae,teardown:function(){}}},specialAll:{live:{setup:function(a,b){V.event.add(this,b[0],Y);
},teardown:function(a){if(a.length){var b=0,c=RegExp("(^|\\.)"+a[0]+"(\\.|$)");
V.each((V.data(this,"events").live||{}),function(){if(c.test(this.type)){b++;
}});
if(b<1){V.event.remove(this,a[0],Y);
}}}}}};
V.Event=function(a){if(!this.preventDefault){return new V.Event(a);
}if(a&&a.type){this.originalEvent=a;
this.type=a.type;
}else{this.type=a;
}this.timeStamp=aa();
this[O]=true;
};
function R(){return false;
}function L(){return true;
}V.Event.prototype={preventDefault:function(){this.isDefaultPrevented=L;
var a=this.originalEvent;
if(!a){return;
}if(a.preventDefault){a.preventDefault();
}a.returnValue=false;
},stopPropagation:function(){this.isPropagationStopped=L;
var a=this.originalEvent;
if(!a){return;
}if(a.stopPropagation){a.stopPropagation();
}a.cancelBubble=true;
},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=L;
this.stopPropagation();
},isDefaultPrevented:R,isPropagationStopped:R,isImmediatePropagationStopped:R};
var W=function(c){var b=c.relatedTarget;
while(b&&b!=this){try{b=b.parentNode;
}catch(a){b=this;
}}if(b!=this){c.type=c.data;
V.event.handle.apply(this,arguments);
}};
V.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(b,a){V.event.special[a]={setup:function(){V.event.add(this,b,W,a);
},teardown:function(){V.event.remove(this,b,W);
}};
});
V.fn.extend({bind:function(c,a,b){return c=="unload"?this.one(c,a,b):this.each(function(){V.event.add(this,c,b||a,b&&a);
});
},one:function(a,b,d){var c=V.event.proxy(d||b,function(e){V(this).unbind(e,c);
return(d||b).apply(this,arguments);
});
return this.each(function(){V.event.add(this,a,c,d&&b);
});
},unbind:function(b,a){return this.each(function(){V.event.remove(this,b,a);
});
},trigger:function(a,b){return this.each(function(){V.event.trigger(a,b,this);
});
},triggerHandler:function(b,a){if(this[0]){var c=V.Event(b);
c.preventDefault();
c.stopPropagation();
V.event.trigger(c,a,this[0]);
return c.result;
}},toggle:function(a){var b=arguments,c=1;
while(c<b.length){V.event.proxy(a,b[c++]);
}return this.click(V.event.proxy(a,function(d){this.lastToggle=(this.lastToggle||0)%c;
d.preventDefault();
return b[this.lastToggle++].apply(this,arguments)||false;
}));
},hover:function(a,b){return this.mouseenter(a).mouseleave(b);
},ready:function(a){ae();
if(V.isReady){a.call(document,V);
}else{V.readyList.push(a);
}return this;
},live:function(a,c){var b=V.event.proxy(c);
b.guid+=this.selector+a;
V(document).bind(P(a,this.selector),this.selector,b);
return this;
},die:function(b,a){V(document).unbind(P(b,this.selector),a?{guid:a.guid+this.selector+b}:null);
return this;
}});
function Y(b){var c=RegExp("(^|\\.)"+b.type+"(\\.|$)"),a=true,d=[];
V.each(V.data(this,"events").live||[],function(e,f){if(c.test(f.type)){var g=V(b.target).closest(f.data)[0];
if(g){d.push({elem:g,fn:f});
}}});
d.sort(function(f,e){return V.data(f.elem,"closest")-V.data(e.elem,"closest");
});
V.each(d,function(){if(this.fn.call(this.elem,b,this.fn.data)===false){return(a=false);
}});
return a;
}function P(b,a){return["live",b,a.replace(/\./g,"`").replace(/ /g,"|")].join(".");
}V.extend({isReady:false,readyList:[],ready:function(){if(!V.isReady){V.isReady=true;
if(V.readyList){V.each(V.readyList,function(){this.call(document,V);
});
V.readyList=null;
}V(document).triggerHandler("ready");
}}});
var ah=false;
function ae(){if(ah){return;
}ah=true;
if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);
V.ready();
},false);
}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);
V.ready();
}});
if(document.documentElement.doScroll&&S==S.top){(function(){if(V.isReady){return;
}try{document.documentElement.doScroll("left");
}catch(a){setTimeout(arguments.callee,0);
return;
}V.ready();
})();
}}}V.event.add(S,"load",V.ready);
}V.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(b,a){V.fn[a]=function(c){return c?this.bind(a,c):this.trigger(a);
};
});
V(S).bind("unload",function(){for(var a in V.cache){if(a!=1&&V.cache[a].handle){V.event.remove(V.cache[a].handle.elem);
}}});
(function(){V.support={};
var g=document.documentElement,a=document.createElement("script"),c=document.createElement("div"),f="script"+(new Date).getTime();
c.style.display="none";
c.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';
var d=c.getElementsByTagName("*"),b=c.getElementsByTagName("a")[0];
if(!d||!d.length||!b){return;
}V.support={leadingWhitespace:c.firstChild.nodeType==3,tbody:!c.getElementsByTagName("tbody").length,objectAll:!!c.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!c.getElementsByTagName("link").length,style:/red/.test(b.getAttribute("style")),hrefNormalized:b.getAttribute("href")==="/a",opacity:b.style.opacity==="0.5",cssFloat:!!b.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};
a.type="text/javascript";
try{a.appendChild(document.createTextNode("window."+f+"=1;"));
}catch(e){}g.insertBefore(a,g.firstChild);
if(S[f]){V.support.scriptEval=true;
delete S[f];
}g.removeChild(a);
if(c.attachEvent&&c.fireEvent){c.attachEvent("onclick",function(){V.support.noCloneEvent=false;
c.detachEvent("onclick",arguments.callee);
});
c.cloneNode(true).fireEvent("onclick");
}V(function(){var h=document.createElement("div");
h.style.width=h.style.paddingLeft="1px";
document.body.appendChild(h);
V.boxModel=V.support.boxModel=h.offsetWidth===2;
document.body.removeChild(h).style.display="none";
});
})();
var N=V.support.cssFloat?"cssFloat":"styleFloat";
V.props={"for":"htmlFor","class":"className","float":N,cssFloat:N,styleFloat:N,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};
V.fn.extend({_load:V.fn.load,load:function(a,f,g){if(typeof a!=="string"){return this._load(a);
}var e=a.indexOf(" ");
if(e>=0){var b=a.slice(e,a.length);
a=a.slice(0,e);
}var d="GET";
if(f){if(V.isFunction(f)){g=f;
f=null;
}else{if(typeof f==="object"){f=V.param(f);
d="POST";
}}}var c=this;
V.ajax({url:a,type:d,dataType:"html",data:f,complete:function(i,h){if(h=="success"||h=="notmodified"){c.html(b?V("<div/>").append(i.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(b):i.responseText);
}if(g){c.each(g,[i.responseText,h,i]);
}}});
return this;
},serialize:function(){return V.param(this.serializeArray());
},serializeArray:function(){return this.map(function(){return this.elements?V.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(b,c){var a=V(this).val();
return a==null?null:V.isArray(a)?V.map(a,function(e,d){return{name:c.name,value:e};
}):{name:c.name,value:a};
}).get();
}});
V.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(a,b){V.fn[b]=function(c){return this.bind(b,c);
};
});
var I=aa();
V.extend({get:function(c,a,b,d){if(V.isFunction(a)){b=a;
a=null;
}return V.ajax({type:"GET",url:c,data:a,success:b,dataType:d});
},getScript:function(a,b){return V.get(a,null,b,"script");
},getJSON:function(b,c,a){return V.get(b,c,a,"json");
},post:function(c,a,b,d){if(V.isFunction(a)){b=a;
a={};
}return V.ajax({type:"POST",url:c,data:a,success:b,dataType:d});
},ajaxSetup:function(a){V.extend(V.ajaxSettings,a);
},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return S.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();
},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(o){o=V.extend(true,o,V.extend(true,{},V.ajaxSettings,o));
var h,s=/=\?(&|$)/g,c,g,t=o.type.toUpperCase();
if(o.data&&o.processData&&typeof o.data!=="string"){o.data=V.param(o.data);
}if(o.dataType=="jsonp"){if(t=="GET"){if(!o.url.match(s)){o.url+=(o.url.match(/\?/)?"&":"?")+(o.jsonp||"callback")+"=?";
}}else{if(!o.data||!o.data.match(s)){o.data=(o.data?o.data+"&":"")+(o.jsonp||"callback")+"=?";
}}o.dataType="json";
}if(o.dataType=="json"&&(o.data&&o.data.match(s)||o.url.match(s))){h="jsonp"+I++;
if(o.data){o.data=(o.data+"").replace(s,"="+h+"$1");
}o.url=o.url.replace(s,"="+h+"$1");
o.dataType="script";
S[h]=function(u){g=u;
j();
m();
S[h]=ac;
try{delete S[h];
}catch(v){}if(i){i.removeChild(e);
}};
}if(o.dataType=="script"&&o.cache==null){o.cache=false;
}if(o.cache===false&&t=="GET"){var r=aa();
var f=o.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+r+"$2");
o.url=f+((f==o.url)?(o.url.match(/\?/)?"&":"?")+"_="+r:"");
}if(o.data&&t=="GET"){o.url+=(o.url.match(/\?/)?"&":"?")+o.data;
o.data=null;
}if(o.global&&!V.active++){V.event.trigger("ajaxStart");
}var b=/^(\w+:)?\/\/([^\/?#]+)/.exec(o.url);
if(o.dataType=="script"&&t=="GET"&&b&&(b[1]&&b[1]!=location.protocol||b[2]!=location.host)){var i=document.getElementsByTagName("head")[0];
var e=document.createElement("script");
e.src=o.url;
if(o.scriptCharset){e.charset=o.scriptCharset;
}if(!h){var q=false;
e.onload=e.onreadystatechange=function(){if(!q&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){q=true;
j();
m();
e.onload=e.onreadystatechange=null;
i.removeChild(e);
}};
}i.appendChild(e);
return ac;
}var l=false;
var k=o.xhr();
if(o.username){k.open(t,o.url,o.async,o.username,o.password);
}else{k.open(t,o.url,o.async);
}try{if(o.data){k.setRequestHeader("Content-Type",o.contentType);
}if(o.ifModified){k.setRequestHeader("If-Modified-Since",V.lastModified[o.url]||"Thu, 01 Jan 1970 00:00:00 GMT");
}k.setRequestHeader("X-Requested-With","XMLHttpRequest");
k.setRequestHeader("Accept",o.dataType&&o.accepts[o.dataType]?o.accepts[o.dataType]+", */*":o.accepts._default);
}catch(d){}if(o.beforeSend&&o.beforeSend(k,o)===false){if(o.global&&!--V.active){V.event.trigger("ajaxStop");
}k.abort();
return false;
}if(o.global){V.event.trigger("ajaxSend",[k,o]);
}var p=function(u){if(k.readyState==0){if(a){clearInterval(a);
a=null;
if(o.global&&!--V.active){V.event.trigger("ajaxStop");
}}}else{if(!l&&k&&(k.readyState==4||u=="timeout")){l=true;
if(a){clearInterval(a);
a=null;
}c=u=="timeout"?"timeout":!V.httpSuccess(k)?"error":o.ifModified&&V.httpNotModified(k,o.url)?"notmodified":"success";
if(c=="success"){try{g=V.httpData(k,o.dataType,o);
}catch(w){c="parsererror";
}}if(c=="success"){var v;
try{v=k.getResponseHeader("Last-Modified");
}catch(w){}if(o.ifModified&&v){V.lastModified[o.url]=v;
}if(!h){j();
}}else{V.handleError(o,k,c);
}m();
if(u){k.abort();
}if(o.async){k=null;
}}}};
if(o.async){var a=setInterval(p,13);
if(o.timeout>0){setTimeout(function(){if(k&&!l){p("timeout");
}},o.timeout);
}}try{k.send(o.data);
}catch(d){V.handleError(o,k,null,d);
}if(!o.async){p();
}function j(){if(o.success){o.success(g,c);
}if(o.global){V.event.trigger("ajaxSuccess",[k,o]);
}}function m(){if(o.complete){o.complete(k,c);
}if(o.global){V.event.trigger("ajaxComplete",[k,o]);
}if(o.global&&!--V.active){V.event.trigger("ajaxStop");
}}return k;
},handleError:function(d,b,c,a){if(d.error){d.error(b,c,a);
}if(d.global){V.event.trigger("ajaxError",[b,d,a]);
}},active:0,httpSuccess:function(b){try{return !b.status&&location.protocol=="file:"||(b.status>=200&&b.status<300)||b.status==304||b.status==1223;
}catch(a){}return false;
},httpNotModified:function(a,c){try{var b=a.getResponseHeader("Last-Modified");
return a.status==304||b==V.lastModified[c];
}catch(d){}return false;
},httpData:function(e,c,a){var f=e.getResponseHeader("content-type"),b=c=="xml"||!c&&f&&f.indexOf("xml")>=0,d=b?e.responseXML:e.responseText;
if(b&&d.documentElement.tagName=="parsererror"){throw"parsererror";
}if(a&&a.dataFilter){d=a.dataFilter(d,c);
}if(typeof d==="string"){if(c=="script"){V.globalEval(d);
}if(c=="json"){d=S["eval"]("("+d+")");
}}return d;
},param:function(c){var a=[];
function b(e,f){a[a.length]=encodeURIComponent(e)+"="+encodeURIComponent(f);
}if(V.isArray(c)||c.jquery){V.each(c,function(){b(this.name,this.value);
});
}else{for(var d in c){if(V.isArray(c[d])){V.each(c[d],function(){b(d,this);
});
}else{b(d,V.isFunction(c[d])?c[d]():c[d]);
}}}return a.join("&").replace(/%20/g,"+");
}});
var T={},U,Z=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];
function K(c,b){var a={};
V.each(Z.concat.apply([],Z.slice(0,b)),function(){a[this]=c;
});
return a;
}V.fn.extend({show:function(f,h){if(f){return this.animate(K("show",3),f,h);
}else{for(var d=0,b=this.length;
d<b;
d++){var a=V.data(this[d],"olddisplay");
this[d].style.display=a||"";
if(V.css(this[d],"display")==="none"){var c=this[d].tagName,g;
if(T[c]){g=T[c];
}else{var e=V("<"+c+" />").appendTo("body");
g=e.css("display");
if(g==="none"){g="block";
}e.remove();
T[c]=g;
}V.data(this[d],"olddisplay",g);
}}for(var d=0,b=this.length;
d<b;
d++){this[d].style.display=V.data(this[d],"olddisplay")||"";
}return this;
}},hide:function(b,c){if(b){return this.animate(K("hide",3),b,c);
}else{for(var a=0,e=this.length;
a<e;
a++){var d=V.data(this[a],"olddisplay");
if(!d&&d!=="none"){V.data(this[a],"olddisplay",V.css(this[a],"display"));
}}for(var a=0,e=this.length;
a<e;
a++){this[a].style.display="none";
}return this;
}},_toggle:V.fn.toggle,toggle:function(a,c){var b=typeof a==="boolean";
return V.isFunction(a)&&V.isFunction(c)?this._toggle.apply(this,arguments):a==null||b?this.each(function(){var d=b?a:V(this).is(":hidden");
V(this)[d?"show":"hide"]();
}):this.animate(K("toggle",3),a,c);
},fadeTo:function(b,a,c){return this.animate({opacity:a},b,c);
},animate:function(c,e,b,a){var d=V.speed(e,b,a);
return this[d.queue===false?"each":"queue"](function(){var i=V.extend({},d),g,f=this.nodeType==1&&V(this).is(":hidden"),h=this;
for(g in c){if(c[g]=="hide"&&f||c[g]=="show"&&!f){return i.complete.call(this);
}if((g=="height"||g=="width")&&this.style){i.display=V.css(this,"display");
i.overflow=this.style.overflow;
}}if(i.overflow!=null){this.style.overflow="hidden";
}i.curAnim=V.extend({},c);
V.each(c,function(m,l){var k=new V.fx(h,i,m);
if(/toggle|show|hide/.test(l)){k[l=="toggle"?f?"show":"hide":l](c);
}else{var j=l.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),p=k.cur(true)||0;
if(j){var o=parseFloat(j[2]),q=j[3]||"px";
if(q!="px"){h.style[m]=(o||1)+q;
p=((o||1)/k.cur(true))*p;
h.style[m]=p+q;
}if(j[1]){o=((j[1]=="-="?-1:1)*o)+p;
}k.custom(p,o,q);
}else{k.custom(p,l,"");
}}});
return true;
});
},stop:function(c,b){var a=V.timers;
if(c){this.queue([]);
}this.each(function(){for(var d=a.length-1;
d>=0;
d--){if(a[d].elem==this){if(b){a[d](true);
}a.splice(d,1);
}}});
if(!b){this.dequeue();
}return this;
}});
V.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){V.fn[a]=function(c,d){return this.animate(b,c,d);
};
});
V.extend({speed:function(a,b,d){var c=typeof a==="object"?a:{complete:d||!d&&b||V.isFunction(a)&&a,duration:a,easing:d&&b||b&&!V.isFunction(b)&&b};
c.duration=V.fx.off?0:typeof c.duration==="number"?c.duration:V.fx.speeds[c.duration]||V.fx.speeds._default;
c.old=c.complete;
c.complete=function(){if(c.queue!==false){V(this).dequeue();
}if(V.isFunction(c.old)){c.old.call(this);
}};
return c;
},easing:{linear:function(a,b,c,d){return c+d*a;
},swing:function(a,b,c,d){return((-Math.cos(a*Math.PI)/2)+0.5)*d+c;
}},timers:[],fx:function(c,b,a){this.options=b;
this.elem=c;
this.prop=a;
if(!b.orig){b.orig={};
}}});
V.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this);
}(V.fx.step[this.prop]||V.fx.step._default)(this);
if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block";
}},cur:function(b){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop];
}var a=parseFloat(V.css(this.elem,this.prop,b));
return a&&a>-10000?a:parseFloat(V.curCSS(this.elem,this.prop))||0;
},custom:function(c,b,a){this.startTime=aa();
this.start=c;
this.end=b;
this.unit=a||this.unit||"px";
this.now=this.start;
this.pos=this.state=0;
var d=this;
function e(f){return d.step(f);
}e.elem=this.elem;
if(e()&&V.timers.push(e)&&!U){U=setInterval(function(){var g=V.timers;
for(var f=0;
f<g.length;
f++){if(!g[f]()){g.splice(f--,1);
}}if(!g.length){clearInterval(U);
U=ac;
}},13);
}},show:function(){this.options.orig[this.prop]=V.attr(this.elem.style,this.prop);
this.options.show=true;
this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());
V(this.elem).show();
},hide:function(){this.options.orig[this.prop]=V.attr(this.elem.style,this.prop);
this.options.hide=true;
this.custom(this.cur(),0);
},step:function(c){var a=aa();
if(c||a>=this.options.duration+this.startTime){this.now=this.end;
this.pos=this.state=1;
this.update();
this.options.curAnim[this.prop]=true;
var e=true;
for(var f in this.options.curAnim){if(this.options.curAnim[f]!==true){e=false;
}}if(e){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;
this.elem.style.display=this.options.display;
if(V.css(this.elem,"display")=="none"){this.elem.style.display="block";
}}if(this.options.hide){V(this.elem).hide();
}if(this.options.hide||this.options.show){for(var d in this.options.curAnim){V.attr(this.elem.style,d,this.options.orig[d]);
}}this.options.complete.call(this.elem);
}return false;
}else{var b=a-this.startTime;
this.state=b/this.options.duration;
this.pos=V.easing[this.options.easing||(V.easing.swing?"swing":"linear")](this.state,b,0,1,this.options.duration);
this.now=this.start+((this.end-this.start)*this.pos);
this.update();
}return true;
}};
V.extend(V.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){V.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){V.fn.offset=function(){if(!this[0]){return{top:0,left:0};
}if(this[0]===this[0].ownerDocument.body){return V.offset.bodyOffset(this[0]);
}var c=this[0].getBoundingClientRect(),f=this[0].ownerDocument,b=f.body,a=f.documentElement,h=a.clientTop||b.clientTop||0,g=a.clientLeft||b.clientLeft||0,e=c.top+(self.pageYOffset||V.boxModel&&a.scrollTop||b.scrollTop)-h,d=c.left+(self.pageXOffset||V.boxModel&&a.scrollLeft||b.scrollLeft)-g;
return{top:e,left:d};
};
}else{V.fn.offset=function(){if(!this[0]){return{top:0,left:0};
}if(this[0]===this[0].ownerDocument.body){return V.offset.bodyOffset(this[0]);
}V.offset.initialized||V.offset.initialize();
var f=this[0],c=f.offsetParent,b=f,k=f.ownerDocument,i,d=k.documentElement,g=k.body,h=k.defaultView,a=h.getComputedStyle(f,null),j=f.offsetTop,e=f.offsetLeft;
while((f=f.parentNode)&&f!==g&&f!==d){i=h.getComputedStyle(f,null);
j-=f.scrollTop,e-=f.scrollLeft;
if(f===c){j+=f.offsetTop,e+=f.offsetLeft;
if(V.offset.doesNotAddBorder&&!(V.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(f.tagName))){j+=parseInt(i.borderTopWidth,10)||0,e+=parseInt(i.borderLeftWidth,10)||0;
}b=c,c=f.offsetParent;
}if(V.offset.subtractsBorderForOverflowNotVisible&&i.overflow!=="visible"){j+=parseInt(i.borderTopWidth,10)||0,e+=parseInt(i.borderLeftWidth,10)||0;
}a=i;
}if(a.position==="relative"||a.position==="static"){j+=g.offsetTop,e+=g.offsetLeft;
}if(a.position==="fixed"){j+=Math.max(d.scrollTop,g.scrollTop),e+=Math.max(d.scrollLeft,g.scrollLeft);
}return{top:j,left:e};
};
}V.offset={initialize:function(){if(this.initialized){return;
}var h=document.body,b=document.createElement("div"),d,c,j,e,i,a,f=h.style.marginTop,g='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';
i={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};
for(a in i){b.style[a]=i[a];
}b.innerHTML=g;
h.insertBefore(b,h.firstChild);
d=b.firstChild,c=d.firstChild,e=d.nextSibling.firstChild.firstChild;
this.doesNotAddBorder=(c.offsetTop!==5);
this.doesAddBorderForTableAndCells=(e.offsetTop===5);
d.style.overflow="hidden",d.style.position="relative";
this.subtractsBorderForOverflowNotVisible=(c.offsetTop===-5);
h.style.marginTop="1px";
this.doesNotIncludeMarginInBodyOffset=(h.offsetTop===0);
h.style.marginTop=f;
h.removeChild(b);
this.initialized=true;
},bodyOffset:function(b){V.offset.initialized||V.offset.initialize();
var a=b.offsetTop,c=b.offsetLeft;
if(V.offset.doesNotIncludeMarginInBodyOffset){a+=parseInt(V.curCSS(b,"marginTop",true),10)||0,c+=parseInt(V.curCSS(b,"marginLeft",true),10)||0;
}return{top:a,left:c};
}};
V.fn.extend({position:function(){var d=0,c=0,f;
if(this[0]){var a=this.offsetParent(),e=this.offset(),b=/^body|html$/i.test(a[0].tagName)?{top:0,left:0}:a.offset();
e.top-=Q(this,"marginTop");
e.left-=Q(this,"marginLeft");
b.top+=Q(a,"borderTopWidth");
b.left+=Q(a,"borderLeftWidth");
f={top:e.top-b.top,left:e.left-b.left};
}return f;
},offsetParent:function(){var a=this[0].offsetParent||document.body;
while(a&&(!/^body|html$/i.test(a.tagName)&&V.css(a,"position")=="static")){a=a.offsetParent;
}return V(a);
}});
V.each(["Left","Top"],function(c,b){var a="scroll"+b;
V.fn[a]=function(d){if(!this[0]){return null;
}return d!==ac?this.each(function(){this==S||this==document?S.scrollTo(!c?d:V(S).scrollLeft(),c?d:V(S).scrollTop()):this[a]=d;
}):this[0]==S||this[0]==document?self[c?"pageYOffset":"pageXOffset"]||V.boxModel&&document.documentElement[a]||document.body[a]:this[0][a];
};
});
V.each(["Height","Width"],function(d,a){var e=d?"Left":"Top",c=d?"Right":"Bottom",f=a.toLowerCase();
V.fn["inner"+a]=function(){return this[0]?V.css(this[0],f,false,"padding"):null;
};
V.fn["outer"+a]=function(g){return this[0]?V.css(this[0],f,false,g?"margin":"border"):null;
};
var b=a.toLowerCase();
V.fn[b]=function(g){return this[0]==S?document.compatMode=="CSS1Compat"&&document.documentElement["client"+a]||document.body["client"+a]:this[0]==document?Math.max(document.documentElement["client"+a],document.body["scroll"+a],document.documentElement["scroll"+a],document.body["offset"+a],document.documentElement["offset"+a]):g===ac?(this.length?V.css(this[0],b):null):this.css(b,typeof g==="string"?g:g+"px");
};
});
})();
(function(b){var e="http://www.w3.org/2005/07/aaa";
var d=["main","secondary","navigation","banner","contentinfo","statements","note","seealso","search"];
var g=new RegExp("^"+d.join("|")+"jQuery");
var c=["button","checkbox","columnheader","combobox","grid","gridcell","group","listbox","listitem","menu","menubar","menuitem","menuitemcheckbox","menuitemradio","option","radio","radiogroup","row","rowheader","slider","spinbutton","tab","tabpanel","textbox","toolbar","tree","treegrid","treeitem"];
var a=new RegExp("^(wairole:)?"+c.join("|")+"jQuery");
var f=(function(){if(b.browser.mozilla&&parseFloat(b.browser.version)<1.9){return function(h,j,i){if(typeof i!="undefined"){h.each(function(l,k){k.setAttributeNS(e,j,i);
});
}else{return h.get(0).getAttributeNS(e,j);
}};
}else{return function(h,j,i){if(typeof i!="undefined"){h.each(function(l,k){b(k).attr("aria-"+j,i);
});
}else{return h.attr("aria-"+j);
}};
}})();
b.fn.extend({ariaRole:function(h){var i=this;
if(h){h=g.test(h)?h:"wairole:"+h;
i.each(function(k,j){b(j).attr("role",h);
if(a.test(h)&&j.tabIndex<0){j.tabIndex=0;
}});
return i;
}else{var h=i.eq(0).attr("role");
if(h){h=h.replace(/^wairole:/,"");
}return h;
}},ariaState:function(){var h=arguments;
var i=this;
if(h.length==2){i.each(function(k,j){f(b(j),h[0],h[1]);
});
return i;
}else{if(typeof h[0]=="string"){return f(i.eq(0),h[0]);
}else{i.each(function(k,j){b.each(h[0],function(l,m){b(j).ariaState(l,m);
});
});
return i;
}}},ariaParse:function(){var h=this;
h.find("*").filter(".axs").each(function(m,k){var o=b(k).attr("className").split(/\s+/);
var j=false;
var l=false;
b.each(o,function(r,q){if(q=="axs"){j=true;
return true;
}if(j){if(l){var p=q.split(/-/);
b(k).ariaState(p[0],p[1]||"true");
}else{b(k).ariaRole(q);
l=true;
}}});
});
h.trigger("ariaready");
return h;
}});
b.extend(b.expr[":"],{ariaRole:"jQuery(a).ariaRole()==m[3]",ariaState:"jQuery(a).ariaState(m[3].split(/=/)[0])==(/=/.test(m[3])?m[3].split(/=/)[1]:'true')"});
b(document).ready(function(){b(document).ariaParse();
});
})(jQuery);
jQuery.browser.hasAria=(jQuery.browser.opera&&jQuery.browser.version<"9.5"||jQuery.browser.safari&&jQuery.browser.version<="3.0.2"||jQuery.browser.msie&&jQuery.browser.version<"8"||jQuery.browser.mozilla&&jQuery.browser.version<"1.8.1")?false:true;
DOM_VK_END=35;
DOM_VK_HOME=36;
DOM_VK_LEFT=37;
DOM_VK_UP=38;
DOM_VK_RIGHT=39;
DOM_VK_DOWN=40;
DOM_VK_ENTER=14;
DOM_VK_RETURN=13;
jQuery.AKN={DIRECTION_PREV:0,DIRECTION_NEXT:1,DIRECTION_FIRST:2,DIRECTION_LAST:3,ORDER_NORMAL:1,ORDER_REVERSE:0};
jQuery.AKN.defaultOptions={controlOrder:jQuery.AKN.ORDER_NORMAL,ignoreKeys:[],keyHandlers:{},role:"toolbar",controlRole:"button"};
jQuery.AKN.conf={controlsetClass:"controlset",regionClass:"region",controlClass:"control",ariaFocusClass:"aria-focus"};
(function(a){regionCount=0;
controlCount=0;
a.fn.managefocus=function(b,c){if(typeof c.controlRole=="undefined"||c.controlRole==""){switch(a.trim(c.role)){case"menubar":case"toolbar":c.controlRole="button";
break;
case"tablist":c.controlRole="tab";
break;
case"menu":c.controlRole="menuitem";
break;
default:break;
}}c=(typeof c=="undefined")?a.AKN.defaultOptions:a.extend({},a.AKN.defaultOptions,c);
a(this).addClass(a.AKN.conf.controlsetClass).data("controlSelector",b).data("options",c).bind("keydown",handleKeyEvent);
if(a.browser.hasAria){a(this).attr("tabindex",0).bind("focus",handleContainerFocusEvent).bind("blur",handleContainerBlurEvent);
if(typeof a(this).ariaRole()=="undefined"){a(this).ariaRole(c.role);
}else{}a(this).find(b).attr("tabindex",-1).each(function(){if(a(this).attr("id")==""){controlCount++;
a(this).attr("id",a.AKN.conf.controlClass+"-"+controlCount);
}if(typeof a(this).ariaRole()=="undefined"){a(this).ariaRole(c.controlRole);
}}).bind("click",handleControlClickEvent);
}if(c.controlOrder==a.AKN.ORDER_NORMAL){a(this).each(function(){a(this).data("lastFocussed",a(this).find(b+":first").attr("id"));
});
}else{a(this).each(function(){a(this).data("lastFocussed",a(this).find(b+":last").attr("id"));
});
}return a(this);
};
handleKeyEvent=function(b){if(b.altKey||b.ctrlKey||b.shiftKey){return true;
}containerEl=a(this).is("."+a.AKN.conf.controlsetClass)?a(this):a(this).parents("."+a.AKN.conf.controlsetClass+":first");
currentControl=containerEl.find("#"+containerEl.data("lastFocussed"));
options=containerEl.data("options");
if(!a.browser.hasAria){processKeyHandlers(options.keyHandlers,b);
return true;
}if(a.inArray(b.keyCode,options.ignoreKeys)!=-1){processKeyHandlers(options.keyHandlers,b);
return true;
}switch(b.keyCode){case DOM_VK_ENTER:case DOM_VK_RETURN:if(currentControl.triggerResult("click")!=false){if(currentControl.is("a")){window.location=currentControl.attr("href");
}return true;
}else{return false;
}break;
case DOM_VK_UP:case DOM_VK_LEFT:b.preventDefault();
if(options.controlOrder==a.AKN.ORDER_NORMAL){nextControl=currentControl.getNextControl(a.AKN.DIRECTION_PREV);
}else{nextControl=currentControl.getNextControl(a.AKN.DIRECTION_NEXT);
}break;
case DOM_VK_DOWN:case DOM_VK_RIGHT:b.preventDefault();
if(options.controlOrder==a.AKN.ORDER_NORMAL){nextControl=currentControl.getNextControl(a.AKN.DIRECTION_NEXT);
}else{nextControl=currentControl.getNextControl(a.AKN.DIRECTION_PREV);
}break;
case DOM_VK_HOME:b.preventDefault();
if(options.controlOrder==a.AKN.ORDER_NORMAL){nextControl=currentControl.getNextControl(a.AKN.DIRECTION_FIRST);
}else{nextControl=currentControl.getNextControl(a.AKN.DIRECTION_LAST);
}break;
case DOM_VK_END:b.preventDefault();
if(options.controlOrder==a.AKN.ORDER_NORMAL){nextControl=currentControl.getNextControl(a.AKN.DIRECTION_LAST);
}else{nextControl=currentControl.getNextControl(a.AKN.DIRECTION_FIRST);
}break;
default:return true;
break;
}containerEl.removeAriaFocus("#"+containerEl.data("lastFocussed"));
containerEl.setAriaFocus(nextControl);
processKeyHandlers(options.keyHandlers,b);
};
processKeyHandlers=function(c,b){if(a(b.target).is("."+a.AKN.conf.controlsetClass)){controlSet=a(b.target);
}else{controlSet=a(b.target).parents("."+a.AKN.conf.controlsetClass+":first");
}target=a("#"+controlSet.ariaState("activedescendant")).get();
if(b.keyCode in c){for(keyCode in c){if(keyCode==b.keyCode){c[keyCode].apply(target,[b]);
}}}};
handleControlClickEvent=function(b){a(this).parents("."+a.AKN.conf.controlsetClass+":first").data("lastFocussed",a(this).attr("id")).focus();
return true;
};
handleContainerFocusEvent=function(b){a(this).find(a(this).data("controlSelector")).attr("tabindex",-1);
if(this.scrollIntoView){}if(this!=b.target){a(this).setAriaFocus(b.target);
}else{a(this).setAriaFocus("#"+a(this).data("lastFocussed"));
}};
handleContainerBlurEvent=function(b){if(this!=b.target){}else{a(this).removeAriaFocus();
}};
a.fn.getNextControl=function(b){containerEl=a(this).parents("."+a.AKN.conf.controlsetClass+":first");
allControls=containerEl.find(containerEl.data("controlSelector"));
currentControlIndex=allControls.index(a(this));
switch(b){default:case a.AKN.DIRECTION_NEXT:nextControl=(currentControlIndex+1<allControls.size())?allControls.eq(currentControlIndex+1):allControls.eq(0);
break;
case a.AKN.DIRECTION_PREV:nextControl=(currentControlIndex-1>=0)?allControls.eq(currentControlIndex-1):allControls.eq(allControls.size()-1);
break;
case a.AKN.DIRECTION_FIRST:nextControl=allControls.eq(0);
break;
case a.AKN.DIRECTION_LAST:nextControl=allControls.eq(allControls.size()-1);
break;
}return nextControl;
};
a.fn.triggerResult=function(d){if(typeof d=="undefined"){return null;
}el=a(this).get(0);
if(typeof document.createEvent!="undefined"){var c=document.createEvent("MouseEvents");
c.initMouseEvent(d,true,true,window,0,0,0,0,0,false,false,false,false,0,null);
return el.dispatchEvent(c);
}else{if(typeof document.createEventObject!="undefined"){var b=document.createEventObject();
return el.fireEvent("on"+d,b);
}else{return null;
}}};
a.fn.setAriaFocus=function(b){b=a(b).get();
a("#"+a(this).data("lastFocussed")).removeClass(a.AKN.conf.ariaFocusClass);
a(this).ariaState("activedescendant",a(b).attr("id")).data("lastFocussed",a(b).attr("id"));
a(b).addClass(a.AKN.conf.ariaFocusClass);
if(b.scrollIntoView){b.scrollIntoView();
}return a(this);
};
a.fn.removeAriaFocus=function(){a("#"+a(this).ariaState("activedescendant")).removeClass(a.AKN.conf.ariaFocusClass);
a(this).ariaState("activedescendant","");
return a(this);
};
a.fn.controls=function(b){a(this).each(function(){elementList="";
a(b).each(function(){if(a(this).attr("id")==""){regionCount++;
a(this).attr("id",a.AKN.conf.regionClass+"-"+regionCount);
}elementList+=" "+a(this).attr("id");
});
if(elementList!=""){a(this).ariaState("controls",a.trim(elementList));
}});
return a(this);
};
a.fn.controlsParent=function(b){a(this).each(function(){a(this).controls(a(this).parents(b+":lt(1)"));
});
return a(this);
};
})(jQuery);
var ResizeEvents={baseTextHeight:0,currentTextHeight:0,baseWindowWidth:0,currentWindowWidth:0,initialised:false,intervalReference:null,controlElement:null,eventElement:jQuery(document),conf:{textResizeEvent:"x-text-resize",windowResizeEvent:"x-window-resize",initialResizeEvent:"x-initial-sizes",pollFrequency:500,controlElementId:"text-resize"}};
(function(a){a(function(){if(ResizeEvents.initialised!==true){ResizeEvents.initialise();
}});
ResizeEvents.initialise=function(){if(ResizeEvents.initialised===true){return;
}ResizeEvents.controlElement=a('<span id="'+ResizeEvents.conf.controlElementId+'">&nbsp;</span>').css({position:"absolute",left:"-9999px","font-size":"100%","font-family":"Courier New, mono",padding:"0",margin:"0"}).get(0);
a("body").append(ResizeEvents.controlElement);
ResizeEvents.baseTextHeight=ResizeEvents.currentTextHeight=getTextHeight();
ResizeEvents.baseWindowWidth=ResizeEvents.currentWindowWidth=getWindowWidth();
startResizePolling();
ResizeEvents.initialised=true;
windowWidthNow=getWindowWidth();
textHeightNow=getTextHeight();
emPixelNow=windowWidthNow/textHeightNow;
ResizeEvents.triggerEvent(ResizeEvents.conf.initialResizeEvent,[emPixelNow,textHeightNow,windowWidthNow]);
};
ResizeEvents.bind=function(c,b){ResizeEvents.eventElement.bind(c,b);
};
ResizeEvents.triggerEvent=function(c,b){ResizeEvents.eventElement.trigger(c,b);
};
ResizeEventsPoll=function(){windowWidthNow=getWindowWidth();
textHeightNow=getTextHeight();
emPixelNow=windowWidthNow/textHeightNow;
if(ResizeEvents.currentTextHeight!=textHeightNow){ResizeEvents.triggerEvent(ResizeEvents.conf.textResizeEvent,[emPixelNow,textHeightNow,windowWidthNow]);
ResizeEvents.currentTextHeight=textHeightNow;
}if(ResizeEvents.currentWindowWidth!=windowWidthNow){ResizeEvents.triggerEvent(ResizeEvents.conf.windowResizeEvent,[emPixelNow,textHeightNow,windowWidthNow]);
ResizeEvents.currentWindowWidth=windowWidthNow;
}};
getTextHeight=function(){return ResizeEvents.controlElement.offsetHeight;
};
getWindowWidth=function(){if(document.documentElement&&document.documentElement.clientWidth){return document.documentElement.clientWidth;
}else{if(typeof document.body.clientWidth!="undefined"){return document.body.clientWidth;
}else{return window.innerWidth;
}}};
startResizePolling=function(){if(ResizeEvents.intervalReference==null){ResizeEvents.intervalReference=window.setInterval("ResizeEventsPoll()",ResizeEvents.conf.pollFrequency);
}};
stopResizePolling=function(){if(ResizeEvents.intervalReference!=null){window.clearInterval(ResizeEvents.intervalReference);
ResizeEvents.intervalReference=null;
}};
})(jQuery);
(function(a){a.browser.gotStyleCache=null;
a(document).ready(function(){a.browser.gotStyle();
});
a.browser.gotStyle=function(b){if(a.browser.gotStyleCache==null){b=b||a("body");
gotStyleTestEl=a('<div id="got-style"></div>').css({width:"1px",height:"1px",padding:"0",margin:"0",overflow:"hidden",zoom:"1"});
a(b).append(gotStyleTestEl);
a.browser.gotStyleCache=(gotStyleTestEl.width()==1)?true:false;
gotStyleTestEl.remove();
}return a.browser.gotStyleCache;
};
})(jQuery);
jQuery.cookie=function(h,d,a){if(typeof d!="undefined"){a=a||{};
if(d===null){d="";
a.expires=-1;
}var g="";
if(a.expires&&(typeof a.expires=="number"||a.expires.toUTCString)){var b;
if(typeof a.expires=="number"){b=new Date();
b.setTime(b.getTime()+(a.expires*24*60*60*1000));
}else{b=a.expires;
}g="; expires="+b.toUTCString();
}var l=a.path?"; path="+(a.path):"";
var c=a.domain?"; domain="+(a.domain):"";
var j=a.secure?"; secure":"";
document.cookie=[h,"=",encodeURIComponent(d),g,l,c,j].join("");
}else{var f=null;
if(document.cookie&&document.cookie!=""){var m=document.cookie.split(";");
for(var k=0;
k<m.length;
k++){var e=jQuery.trim(m[k]);
if(e.substring(0,h.length+1)==(h+"=")){f=decodeURIComponent(e.substring(h.length+1));
break;
}}}return f;
}};
jQuery.exmenu={};
jQuery.exmenu.conf={exmenuClass:"exmenu",simpleClass:"simple",parentClass:"parent",pageTitleSelector:"a.current-page",activeClass:"active",currentClass:"current",toggleClass:"toggle",closedClass:"closed",noLinkClass:"no-link",parentLinkClass:"parent-link",openToggleText:"[-]",closedToggleText:"[+]",openToggleTitle:"Close the %s submenu",closedToggleTitle:"Open the %s submenu",clearPixelClass:"for-css-replacement"};
jQuery.exmenu.defaultOptions={topLevelCanToggle:true,supportCSSImgReplace:true,clearPixelImg:"/images/ui/displacement.png"};
(function(d){xmMenuIds=[];
xmMenuIdCount=0;
xmMatchCurrentText="";
xmCurrentMenu=null;
d(document).ready(function(){d(".exmenu").exmenu();
});
d.fn.extend({exmenu:function(){action=(arguments.length>0)?arguments[0]:"";
switch(action.toLowerCase()){default:case"":case"init":options=arguments[1]||{};
d(this).each(function(){a.apply(this,[options]);
});
return d(this);
break;
case"setcurrent":xmMatchCurrentText=(arguments.length>1)?arguments[1]:"";
d(this).each(xmSetCurrent);
return d(this);
break;
case"expandall":case"openall":d(this).each(xmExpandAll);
return d(this);
break;
case"collapseall":case"closeall":d(this).each(xmCollapseAll);
return d(this);
break;
}}});
function a(g){if(this.tagName!="UL"){return d(this);
}if(d(this).is("."+d.exmenu.conf.activeClass)){return d(this);
}if(!d(this).is(d.exmenu.conf.exmenuClass)){d(this).addClass(d.exmenu.conf.exmenuClass);
}g=(typeof g=="undefined")?d.exmenu.defaultOptions:d.extend({},d.exmenu.defaultOptions,g);
d(this).data("options",g);
d.exmenu.currentOptions=g;
xmMatched=this;
if(xmMatched.id===""){if(typeof(console)!="undefined"){console.error('Failed to initialise exmenu "'+xmMatched.id+'": Selector matched, but each exmenu must have an unique id.');
}}else{xmMenuIds[xmMenuIdCount++]=xmMatched.id;
}xmMenuSelector="#"+xmMatched.id;
if(g.topLevelCanToggle){d(xmMenuSelector+" li").each(c);
}else{d(xmMenuSelector+" li li").each(c);
}allToggles=d(xmMenuSelector+" ."+d.exmenu.conf.toggleClass).click(b).ariaRole("button");
if(g.supportCSSImgReplace!==false){allToggles.prepend('<img src="'+g.clearPixelImg+'" alt="" class="'+d.exmenu.conf.clearPixelClass+'" />');
}d(xmMenuSelector+" li."+d.exmenu.conf.parentClass).addClass(d.exmenu.conf.closedClass).children("ul").ariaState("hidden","true");
d(xmMenuSelector+" li."+d.exmenu.conf.parentClass+" a."+d.exmenu.conf.toggleClass).each(f);
xmCurrentNode=d(xmMenuSelector+" li."+d.exmenu.conf.currentClass);
xmCurrentNode.removeClass(d.exmenu.conf.closedClass).children("ul").ariaState("hidden","false");
e(xmCurrentNode.children("."+d.exmenu.conf.toggleClass).get());
xmParentsOfCurrent=d(xmMenuSelector+" li."+d.exmenu.conf.currentClass).parents("li."+d.exmenu.conf.parentClass);
xmParentsOfCurrent.removeClass(d.exmenu.conf.closedClass).children("ul").ariaState("hidden","false");
e(xmParentsOfCurrent.children("."+d.exmenu.conf.toggleClass).get());
d(this).addClass(d.exmenu.conf.activeClass);
d(this).addClass(d.exmenu.conf.exmenuClass);
xmTitle=d(d.exmenu.conf.pageTitleSelector+":lt(1)").text();
if(xmTitle!=""){d(this).exmenu("setCurrent",xmTitle);
}}function c(){if(d(this).children("a").size()===0){xmTempChildren=d(this).children();
d(this).children().remove();
xmTempText=d(this).text();
d(this).empty();
d(this).append('<span class="'+d.exmenu.conf.noLinkClass+'">'+xmTempText+"</span>");
d(this).append(xmTempChildren);
}if(d(this).find("li").size()>0){d(this).addClass(d.exmenu.conf.parentClass);
if(d(this).parents(".exmenu.simple").size()>0){d(this).children("a").addClass(d.exmenu.conf.toggleClass);
}else{d(this).children("a").addClass(d.exmenu.conf.parentLinkClass);
d(this).children("."+d.exmenu.conf.noLinkClass).addClass(d.exmenu.conf.parentLinkClass);
d(this).prepend('<a href="#" class="'+d.exmenu.conf.toggleClass+'">'+d.exmenu.conf.closedToggleText+"</a> ");
}}}function b(g){d(this).parent().toggleClass(d.exmenu.conf.closedClass);
if(d(this).parent().is("."+d.exmenu.conf.closedClass)){d(this).parent().children("ul").ariaState("hidden","true");
}else{d(this).parent().children("ul").ariaState("hidden","false");
}d.exmenu.currentOptions=d(this).parents("."+d.exmenu.conf.exmenuClass+":first").data("options");
e(this);
g.preventDefault();
}function e(g){options=d.exmenu.currentOptions;
xmMenuText=d(g).siblings("a").text();
xmMenuText=(xmMenuText!=="")?xmMenuText:d(g).siblings("."+d.exmenu.conf.noLinkClass).text();
if(d(g).parent().is("."+d.exmenu.conf.closedClass)){d(g).text(d.exmenu.conf.closedToggleText);
d(g).attr("title",d.exmenu.conf.closedToggleTitle.replace("%s",xmMenuText,"gi"));
if(options.supportCSSImgReplace!==false){d(g).prepend('<img src="'+options.clearPixelImg+'" alt="" class="'+d.exmenu.conf.clearPixelClass+'" />');
}}else{d(g).text(d.exmenu.conf.openToggleText);
d(g).attr("title",d.exmenu.conf.openToggleTitle.replace("%s",xmMenuText,"gi"));
if(options.supportCSSImgReplace!==false){d(g).prepend('<img src="'+options.clearPixelImg+'" alt="" class="'+d.exmenu.conf.clearPixelClass+'" />');
}}}function f(){return e(this);
}xmSetCurrent=function(){jQuery.debug("xmMatchCurrentText: "+xmMatchCurrentText);
if(xmMatchCurrentText==""){xmCollapseAll.apply(this);
}else{xmCurrentMenu=this;
xmNavElements=d(this).find("a, ."+d.exmenu.conf.noLinkClass).not("."+d.exmenu.conf.toggleClass);
for(xmN=0;
xmN<xmNavElements.size();
xmN++){if(xmTestAndSetMenuItemAsCurrent(xmNavElements.get(xmN))){break;
}}}};
xmTestAndSetMenuItemAsCurrent=function(g){if(d.trim(d(g).text()).toLowerCase()==d.trim(xmMatchCurrentText).toLowerCase()){xmCollapseAll.apply(xmCurrentMenu);
xmPreviousCurrent=d(xmCurrentMenu).find("."+d.exmenu.conf.currentClass);
xmPreviousCurrent.removeClass(d.exmenu.conf.currentClass);
e(xmPreviousCurrent.children("."+d.exmenu.conf.toggleClass).get());
xmCurrentNode=d(g).parent();
xmCurrentNode.addClass(d.exmenu.conf.currentClass);
xmCurrentNode.removeClass(d.exmenu.conf.closedClass).children("ul").ariaState("hidden","false");
e(xmCurrentNode.children("."+d.exmenu.conf.toggleClass).get());
xmCurrentParents=xmCurrentNode.parents("li."+d.exmenu.conf.parentClass);
xmCurrentParents.removeClass(d.exmenu.conf.closedClass).children("ul").ariaState("hidden","false");
e(xmCurrentParents.children("."+d.exmenu.conf.toggleClass).get());
return true;
}return false;
};
xmCollapseAll=function(){d(this).find("li."+d.exmenu.conf.parentClass).addClass(d.exmenu.conf.closedClass).children("ul").ariaState("hidden","true");
e(d(this).find("li."+d.exmenu.conf.parentClass+" > ."+d.exmenu.conf.toggleClass).get());
};
xmExpandAll=function(){d(this).find("li."+d.exmenu.conf.parentClass).removeClass(d.exmenu.conf.closedClass).children("ul").ariaState("hidden","false");
e(d(this).find("li."+d.exmenu.conf.parentClass+" > ."+d.exmenu.conf.toggleClass).get());
};
xmTestCurrent=function(g){return(d.trim(g).toLowerCase()==this.findText.toLowerCase())?true:false;
};
})(jQuery);
jQuery.compact={};
jQuery.compact._conf={compactClass:"compact",activeClass:"active"};
(function(a){a(function(){a("."+a.compact._conf.compactClass).not("."+a.compact._conf.activeClass).compact();
if(typeof ResizeEvents!="undefined"){a(this).each(function(){ResizeEvents.bind("x-text-resize x-window-resize",function(b,d,e,c){window.setTimeout(a.compact._handleResizeEvent,20);
});
});
}});
a.compact._handleResizeEvent=function(){for(id in a.compact){if(id.substr(0,1)=="_"){continue;
}a.compact[id].handleResizeEvent();
}};
a.fn.compact=function(b){b=b||{};
a(this).each(function(){for(id in a.compact){if(id.substr(0,1)=="_"){continue;
}if(a(this).is(a.compact[id].conf.containerSelector)){a.compact[id].init(this,b);
return;
}}if(typeof b.type!="undefined"&&b.type!=""){if(typeof a.compact[b.type]!="undefined"){a.compact[b.type].init(this,b);
return;
}else{a.debug('DEBUG: Compact plugin type not found for container element (with options.type of "'+b.type+'"). Make sure options.type is correct and the required plugin file has been included.');
return;
}}else{a.debug('DEBUG: Compact plugin type not found for container element (with class="'+a(this).attr("class")+'"). Make sure the required plugin file has been included.');
return;
}});
return a(this);
};
a.compact._cookie=function(c,b,d){if(a.cookie){b=b||null;
d=d||{};
if(typeof c=="undefined"){a.debug("DEBUG: No reference was sent for call to jQuery.compact._cookie()");
return false;
}if(b==null){return a.cookie(c);
}else{return a.cookie(c,b,d);
}}else{a.debug("DEBUG: Cookie plugin not available to save state of compact section widgets.");
return null;
}};
a.debug=function(b){if(typeof window.console!="undefined"&&window.console.log!="undefined"){window.console.log(b);
}else{}};
a.fn.firstHeading=function(b){b=b||false;
headingSelector="h1:first, h2:first, h3:first, h4:first, h5:first, h6:first";
if(b){return(heading=a(this).find(headingSelector).eq(0)).text()!=""?heading:a("<h2></h2>");
}else{return(heading=a(this).children(headingSelector).eq(0)).text()!=""?heading:a("<h2></h2>");
}};
a.fn.fullHeight=function(){if(a(this).css("display")=="none"){a(this).css("display","block");
fullHeight=a(this).outerHeight({margin:true});
a(this).css("display","none");
}else{fullHeight=a(this).outerHeight({margin:true});
}return fullHeight;
};
a.fn.visible=function(){return a(this).filter(function(){return(a(this).css("display")=="none")?false:true;
});
};
a.frag=function(b,c){b=b||null;
c=c||false;
if(b!==null){if(c){window.location.hash=b;
}else{if(a.browser.msie&&a.browser.version<=7){currentY=a(window).scrollLeft();
currentX=a(window).scrollTop();
window.location.hash=b;
a(window).scrollTop(currentX);
a(window).scrollLeft(currentY);
}else{window.location.replace("#"+b);
}}return b;
}else{currentFragment=window.location.hash.replace("#","");
return currentFragment;
}};
})(jQuery);
if(typeof jQuery.compact=="undefined"){jQuery.compact={};
}jQuery.compact.slideshow={};
jQuery.compact.slideshow.defaultOptions={type:"slideshow",panelsLoop:true,slideshowAutoStart:true,slideshowInterval:10000,controlsPosition:"after",variableHeight:false,rememberStateInCookie:true,transitionSpeed:"slow",heightAdjustSpeed:"fast",cookieExpiryDays:30,nextControlText:">",nextControlTitleText:"Next section",prevControlText:"<",prevControlTitleText:"Previous section",pauseControlText:"||",pauseControlTitleText:"Pause slideshow",playControlText:"|>",playControlTitleText:"Start slideshow",supportCSSImgReplace:true,clearPixelImg:"/images/ui/displacement.png"};
jQuery.compact.slideshow.conf={containerSelector:"."+jQuery.compact._conf.compactClass+".slideshow",activeClass:jQuery.compact._conf.activeClass,cookieRefPrefix:"c.slideshow#",currentRef:"current-slideshow-panel",contentsClass:"compact-contents",windowClass:"viewport",sliderClass:"sliding-tray",sectionClass:"section",controlsClass:"controlbar",panelsClass:"panels",currentClass:"current",actionsClass:"actions",previousClass:"previous",nextClass:"next",toggleClass:"toggle-animation",animationOnClass:"animation-running",clearPixelClass:"for-css-replacement"};
(function(a){var b=null;
a.compact.slideshow.initialised=[];
a.fn.compactSlideshow=function(c){c=c||{};
a(this).each(function(){initCompactSlideshow.apply(this,[c]);
});
return a(this);
};
a.compact.slideshow.init=function(c,d){d=d||{};
initCompactSlideshow.apply(c,[d]);
};
a.compact.slideshow.handleResizeEvent=function(){for(n=0;
n<a.compact.slideshow.initialised.length;
n++){setStaticHeightForContainer("#"+a.compact.slideshow.initialised[n]);
}};
a(document).ready(function(){window.setTimeout(setAllSlideshowStaticHeights,500);
});
setAllSlideshowStaticHeights=function(){for(n=0;
n<a.compact.slideshow.initialised.length;
n++){containerEl=a("#"+a.compact.slideshow.initialised[n]);
options=containerEl.data("options");
if(!options.variableHeight){setStaticHeight.apply(containerEl);
}}};
initCompactSlideshow=function(e){if(typeof a.browser.gotStyle!="undefined"&&a.browser.gotStyle(this)===false){a.debug("DEBUG: Your browser does not have CSS support available or enabled, slideshow script exiting");
return;
}if(a(this).attr("id")==""){a.debug('DEBUG: Each "compact slideshow" ('+a.compact.slideshow.conf.containerSelector+") container must have a unique id");
return false;
}if(!a(this).is(a.compact.slideshow.conf.containerSelector)){a(this).addClass(a.compact.slideshow.conf.containerSelector.split(".").join(" "));
}a(this).css("visibility","hidden");
e=(typeof e=="undefined")?a.compact.slideshow.defaultOptions:a.extend({},a.compact.slideshow.defaultOptions,e);
a(this).data("options",e);
contentsEl=a('<div class="'+a.compact.slideshow.conf.contentsClass+'"></div>');
heading=a(this).firstHeading().remove();
if(heading.text()!=""){contentsEl.append(heading);
}windowEl=a('<div class="'+a.compact.slideshow.conf.windowClass+'"><div class="'+a.compact.slideshow.conf.sliderClass+'"></div></div>');
windowEl.find("."+a.compact.slideshow.conf.sliderClass).append(a(this).contents());
a(this).empty();
contentsEl.append(windowEl);
a(this).append(contentsEl);
buttons=a('<div class="'+a.compact.slideshow.conf.controlsClass+'"><ul class="'+a.compact.slideshow.conf.panelsClass+'"></ul><ul class="'+a.compact.slideshow.conf.actionsClass+'"><li><a href="#" class="'+a.compact.slideshow.conf.previousClass+'" title="'+e.prevControlTitleText+'"><span>'+e.prevControlText+'</span></a></li><li><a href="#" class="'+a.compact.slideshow.conf.toggleClass+'" title="'+e.pauseControlTitleText+'"><span>'+e.pauseControlText+'</span></a></li><li><a href="#" class="'+a.compact.slideshow.conf.nextClass+'" title="'+e.nextControlTitleText+'"><span>'+e.nextControlText+"</span></a></li></ul></div>");
if(e.controlsPosition=="after"){a(this).append(buttons);
}else{a(this).prepend(buttons);
}if(e.supportCSSImgReplace!==false){buttons.find("a span").prepend('<img src="'+e.clearPixelImg+'" alt="" class="'+a.compact.slideshow.conf.clearPixelClass+'" />');
}a(this).find("."+a.compact.slideshow.conf.previousClass).click(handlePreviousClick);
a(this).find("."+a.compact.slideshow.conf.toggleClass).click(toggleAutoTransitions);
a(this).find("."+a.compact.slideshow.conf.nextClass).click(handleNextClick);
b=1;
a(this).find("."+a.compact.slideshow.conf.sectionClass).ariaState("atomic","true").each(addSectionTab);
if(e.rememberStateInCookie){var d=a.compact._cookie(a.compact.slideshow.conf.cookieRefPrefix+a(this).attr("id")+".current");
}else{var d=null;
}if(d===null||a(this).find("."+a.compact.slideshow.conf.sectionClass+"#"+d).size()==0){d=a(this).find("."+a.compact.slideshow.conf.sectionClass+":first").attr("id");
}a(this).data(a.compact.slideshow.conf.currentRef,d);
a(this).find("."+a.compact.slideshow.conf.sectionClass).css("overflow","hidden");
a(this).find("."+a.compact.slideshow.conf.sectionClass).not("#"+d).hide();
a(this).find("."+a.compact.slideshow.conf.panelsClass+" a[href$=#"+d+"]").addClass(a.compact.slideshow.conf.currentClass);
if(e.rememberStateInCookie){var c=a.compact._cookie(a.compact.slideshow.conf.cookieRefPrefix+a(this).attr("id")+".status");
}else{var c=null;
}if(c===null){if(e.slideshowAutoStart){startSlideshow(this);
}else{pauseSlideshow(this);
}}else{if(c=="paused"){pauseSlideshow(this);
}else{startSlideshow(this);
}}a("."+a.compact.slideshow.conf.panelsClass).managefocus("a",{role:"menu",ignoreKeys:[38,40],keyHandlers:{38:panelsNavEvent,40:panelsNavEvent}});
a("."+a.compact.slideshow.conf.actionsClass).managefocus("a",{role:"toolbar",ignoreKeys:[38,40],keyHandlers:{38:actionsNavEvent,40:actionsNavEvent}});
a(this).addClass(a.compact.slideshow.conf.activeClass).ariaState("live","polite");
a.compact.slideshow.initialised[a.compact.slideshow.initialised.length++]=a(this).attr("id");
if(!e.variableHeight){windowEl.height(getTallestSlideshowSection(this));
}a(this).css("visibility","visible");
};
panelsNavEvent=function(c){handleTabClick.apply(this);
c.preventDefault();
return false;
};
actionsNavEvent=function(c){if(a(this).is("."+a.compact.slideshow.conf.previousClass)){handlePreviousClick.apply(this);
}else{if(a(this).is("."+a.compact.slideshow.conf.nextClass)){handleNextClick.apply(this);
}else{if(a(this).is("."+a.compact.slideshow.conf.toggleClass)){toggleAutoTransitions.apply(this);
}}}c.preventDefault();
return false;
};
setStaticHeightForContainer=function(c){setStaticHeight.apply(a(c));
};
setStaticHeight=function(){options=a(this).data("options");
windowEl=a(this).find("."+a.compact.slideshow.conf.windowClass);
if(options.variableHeight){currentSection=getCurrentPanel(this);
windowEl.stop().animate({"height":a(currentSection).fullHeight()},options.heightAdjustSpeed);
}else{windowEl.stop().animate({"height":getTallestSlideshowSection(this)},options.heightAdjustSpeed);
}};
getTallestSlideshowSection=function(c){tallest=0;
a(c).find("."+a.compact.slideshow.conf.sectionClass).each(function(){if(tallest<(sectionHeight=a(this).fullHeight())){tallest=sectionHeight;
}});
return tallest;
};
startSlideshow=function(c){_setSlideshowTimeout(c);
options=a(c).data("options");
a.compact._cookie(a.compact.slideshow.conf.cookieRefPrefix+a(c).attr("id")+".status","running",{expires:options.cookieExpiryDays});
controlSpan=a(c).data("animation","running").addClass(a.compact.slideshow.conf.animationOnClass).find("."+a.compact.slideshow.conf.actionsClass+" ."+a.compact.slideshow.conf.toggleClass).attr("title",options.pauseControlTitleText).ariaState("pressed","true").find("span").text(options.pauseControlText);
if(options.supportCSSImgReplace!==false){controlSpan.prepend('<img src="'+options.clearPixelImg+'" alt="" class="'+a.compact.slideshow.conf.clearPixelClass+'" />');
}};
pauseSlideshow=function(c){_clearSlideshowTimeout(c);
options=a(c).data("options");
a.compact._cookie(a.compact.slideshow.conf.cookieRefPrefix+a(c).attr("id")+".status","paused",{expires:options.cookieExpiryDays});
controlSpan=a(c).data("animation","paused").removeClass(a.compact.slideshow.conf.animationOnClass).find("."+a.compact.slideshow.conf.actionsClass+" ."+a.compact.slideshow.conf.toggleClass).attr("title",options.playControlTitleText).ariaState("pressed","false").find("span").text(options.playControlText);
if(options.supportCSSImgReplace!==false){controlSpan.prepend('<img src="'+options.clearPixelImg+'" alt="" class="'+a.compact.slideshow.conf.clearPixelClass+'" />');
}};
_clearSlideshowTimeout=function(c){toID=a(c).data("animationTimeoutId");
if(typeof toID!="undefined"){window.clearTimeout(toID);
}};
_setSlideshowTimeout=function(c){_clearSlideshowTimeout(c);
options=a(c).data("options");
toID=window.setTimeout("handleSlideshowNext('#"+a(c).attr("id")+"')",options.slideshowInterval);
a(c).data("animationTimeoutId",toID);
};
handleSlideshowNext=function(c){handleNextClick.apply(a(c).find("."+a.compact.slideshow.conf.actionsClass+" ."+a.compact.slideshow.conf.nextClass),[beAssertive=false]);
};
addSectionTab=function(){id=a(this).attr("id");
listItem=a('<li><a href="#'+id+'" title="'+a(this).firstHeading(true).text()+'"><span>'+(b++)+"</span></a></li>");
listItem.find("a").data("section",id).click(handleTabClick);
getContainerEl(this).find("ul."+a.compact.slideshow.conf.panelsClass).append(listItem);
};
handleTabClick=function(){containerEl=getContainerEl(this);
currentPanel=getCurrentPanel(this);
newPanel=containerEl.find("."+a.compact.slideshow.conf.sectionClass+"#"+a(this).data("section"));
if(newPanel.attr("id")==currentPanel.attr("id")){return false;
}jumpToPanel(newPanel);
return false;
};
handlePreviousClick=function(){containerEl=getContainerEl(this);
options=a(containerEl).data("options");
containerEl.ariaState("live","assertive");
currentPanel=getCurrentPanel(this);
newPanel=currentPanel.prevAll("."+a.compact.slideshow.conf.sectionClass+":first");
if(newPanel.size()>0){jumpToPanel(newPanel);
}else{if(options.panelsLoop){newPanel=currentPanel.siblings(":last-child");
jumpToPanel(newPanel);
}}return false;
};
handleNextClick=function(c){containerEl=getContainerEl(this);
options=a(containerEl).data("options");
c=(c!==false)?true:false;
if(c){containerEl.ariaState("live","assertive");
}currentPanel=getCurrentPanel(this);
newPanel=currentPanel.nextAll("."+a.compact.slideshow.conf.sectionClass+":first");
if(newPanel.size()>0){jumpToPanel(newPanel);
}else{if(options.panelsLoop){newPanel=currentPanel.siblings(":first");
jumpToPanel(newPanel);
}}return false;
};
toggleAutoTransitions=function(){containerEl=getContainerEl(this);
if(containerEl.data("animation")=="running"){pauseSlideshow(containerEl);
}else{startSlideshow(containerEl);
handleSlideshowNext(containerEl);
}return false;
};
jumpToPanel=function(c){setCurrentPanel(c);
updatePanelLinks(c);
containerEl=getContainerEl(c);
options=a(containerEl).data("options");
windowEl=containerEl.find("."+a.compact.slideshow.conf.windowClass+":first");
if(options.variableHeight){windowEl.animate({height:c.fullHeight()});
}containerEl.ariaState("busy","true");
windowEl.find("."+a.compact.slideshow.conf.sectionClass+":visible").not(c).stop().ariaState("hidden","true").fadeOut(options.transitionSpeed,function(){getContainerEl(c).find("."+a.compact.slideshow.conf.windowClass+":first ."+a.compact.slideshow.conf.sectionClass).visible().not(c).stop().hide().ariaState("hidden","true");
c.stop().fadeTo(0,0).show().fadeTo(options.transitionSpeed,1,function(){if(a.browser.msie&&a.browser.version<"9"){a(this).get(0).style.filter="";
}a(this).ariaState("hidden","false");
containerEl.ariaState("relevant","all").ariaState("busy","false").ariaState("live","polite");
});
});
if(options.variableHeight){windowEl.stop().animate({height:c.fullHeight()},"","",function(){});
}a.compact._cookie(a.compact.slideshow.conf.cookieRefPrefix+containerEl.attr("id")+".current",c.attr("id"),{expires:options.cookieExpiryDays});
if(containerEl.data("animation")=="running"){_setSlideshowTimeout(containerEl);
}};
getContainerEl=function(c){return(a(c).eq(0).is(a.compact.slideshow.conf.containerSelector))?a(c).eq(0):a(c).parents(a.compact.slideshow.conf.containerSelector+":first");
};
getCurrentPanel=function(c,d){d=d||getContainerEl(c);
return d.find("#"+d.data(a.compact.slideshow.conf.currentRef));
};
setCurrentPanel=function(c){getContainerEl(c).data(a.compact.slideshow.conf.currentRef,c.attr("id"));
};
updatePanelLinks=function(c){getContainerEl(c).find("."+a.compact.slideshow.conf.panelsClass+" a").removeClass(a.compact.slideshow.conf.currentClass).filter("[href$=#"+a(c).attr("id")+"]").addClass(a.compact.slideshow.conf.currentClass);
};
})(jQuery);
if(typeof jQuery.compact=="undefined"){jQuery.compact={};
}jQuery.compact.tabbed={};
jQuery.compact.tabbed.defaultOptions={type:"tabbed",variableHeight:false,transitionSpeed:"fast",heightAdjustSpeed:"def",rememberStateInCookie:true,controlsPosition:"before",cookieExpiryDays:30};
jQuery.compact.tabbed.conf={containerSelector:"."+jQuery.compact._conf.compactClass+".tabbed",activeClass:jQuery.compact._conf.activeClass,cookieRefPrefix:"c.tabbed#",viewportElClass:"viewport",viewportInnerElClass:"viewport-inner",sectionClass:"section",headingClass:"heading",contentClass:"content",buttonClass:"button",closedClass:"closed",openClass:"open",currentClass:"current",updateURL:true,updateURLForIE6_7:false};
(function(b){b.compact.tabbed.initialised=[];
b.fn.compactTabbed=function(h){h=h||{};
b(this).each(function(){initCompactTabbed.apply(this,[h]);
});
return b(this);
};
b.compact.tabbed.init=function(h,i){i=i||{};
initCompactTabbed.apply(h,[i]);
};
b.compact.tabbed.handleResizeEvent=function(){for(n=0;
n<b.compact.tabbed.initialised.length;
n++){adjustTabbedViewportHeight("#"+b.compact.tabbed.initialised[n]);
}};
initCompactTabbed=function(h){if(typeof b.browser.gotStyle!="undefined"&&b.browser.gotStyle(this)===false){b.debug("DEBUG: Your browser does not have CSS support available or enabled, tabbed script exiting");
return;
}if(b(this).attr("id")==""){b.debug('DEBUG: Each "compact tabbed" ('+b.compact.tabbed.conf.containerSelector+") container must have a unique id");
return false;
}if(!b(this).is(b.compact.tabbed.conf.containerSelector)){b(this).addClass(b.compact.tabbed.conf.containerSelector.split(".").join(" "));
}updateURL=false;
if(b.browser.msie&&b.browser.version<=7){if(b.compact.tabbed.conf.updateURLForIE6_7){updateURL=true;
}}else{if(b.compact.tabbed.conf.updateURL){updateURL=true;
}}h=(typeof h=="undefined")?b.compact.tabbed.defaultOptions:b.extend({},b.compact.tabbed.defaultOptions,h);
h.updateURL=updateURL;
b(this).data("options",h).ariaState("live","assertive");
var o=this;
var j=b('<ul class="nl tabs"></ul>');
var p=b('<div class="'+b.compact.tabbed.conf.viewportElClass+'"><div class="'+b.compact.tabbed.conf.viewportInnerElClass+'"></div></div>');
var m=p.find("."+b.compact.tabbed.conf.viewportInnerElClass);
var l=null;
if(h.rememberStateInCookie){var k=b.compact._cookie(b.compact.tabbed.conf.cookieRefPrefix+b(this).attr("id")+".current");
}else{var k=null;
}allSections=b(o).children("."+b.compact.tabbed.conf.sectionClass);
if(allSections.filter("[id="+b.frag()+"]").size()>0){var q=b.frag();
}else{var q=null;
}m.append(allSections);
b(o).append(p);
var r=allSections.filter("."+b.compact.tabbed.conf.openClass+":first");
var i=(r.size()>0)?r.eq(0).attr("id"):null;
allSections.each(function(){if(b(this).attr("id")==""){b.debug("DEBUG: Each tabbed section must have an unique id");
b(this).addClass("error");
return false;
}var w=b(this).attr("id");
var u=w+"-"+b.compact.tabbed.conf.contentClass;
var t=w+"-"+b.compact.tabbed.conf.buttonClass;
heading=b(this).firstHeading(true);
heading.addClass(b.compact.tabbed.conf.headingClass);
hText=heading.text();
listItem=b('<li><a href="#'+w+'" id="'+t+'"><span>'+hText+"</span></a></li>");
listItem.find("a").click(d).ariaState("pressed","false");
j.append(listItem);
var v=b(this).children().not(heading);
v.remove();
var s=b('<div class="'+b.compact.tabbed.conf.contentClass+'" id="'+u+'"></div>').append(v).ariaRole("tabpanel").ariaState({hidden:"true",expanded:"false",labelledby:t,atomic:"true"});
b(this).append(s);
if(q!==null){initialiseSectionState.apply(this,[q,listItem,o]);
}else{if(k!==null&&b("#"+k).size()>0){b.debug("DEBUG: jQuery(#"+k+").size() "+(b("#"+k).size()));
initialiseSectionState.apply(this,[k,listItem,o]);
}else{if(i!==null){initialiseSectionState.apply(this,[i,listItem,o]);
}else{if(l===null){initialiseSectionState.apply(this,[b(this).attr("id"),listItem,o]);
}else{initialiseSectionState.apply(this,[l,listItem,o]);
}}}}if(l===null){l=this;
}});
if(b.fn.managefocus){j.managefocus("a",{role:"tablist",ignoreKeys:[38,40],keyHandlers:{38:tabNavigationEv,40:tabNavigationEv}}).controls(o);
}if(h.controlsPosition=="before"){b(o).prepend(j);
}else{b(o).append(j);
}b(this).addClass(b.compact.tabbed.conf.activeClass);
b.compact.tabbed.initialised[b.compact.tabbed.initialised.length++]=b(this).attr("id");
if(!h.variableHeight){m.height(getTallestTabbedSection(this));
}return;
};
initialiseSectionState=function(i,j,h){if(b(this).attr("id")==i){g.apply(this);
j.addClass(b.compact.tabbed.conf.currentClass);
b(h).addClass(b.compact.tabbed.conf.currentClass+"-"+b(this).attr("id"));
}else{c.apply(this);
b(this).hide();
j.removeClass(b.compact.tabbed.conf.currentClass);
}};
adjustTabbedViewportHeight=function(h){containerEl=b(h);
options=containerEl.data("options");
if(!options.variableHeight){viewportEl=b(containerEl).find("."+b.compact.tabbed.conf.viewportInnerElClass+":first");
viewportEl.stop().animate({"height":getTallestTabbedSection(containerEl)},options.heightAdjustSpeed);
}};
getTallestTabbedSection=function(h){tallest=0;
b(h).find("."+b.compact.tabbed.conf.sectionClass).each(function(){if((temp=b(this).fullHeight())>tallest){tallest=temp;
}});
return tallest;
};
tabNavigationEv=function(h){d.apply(this);
h.preventDefault();
return false;
};
function g(){b(this).removeClass(b.compact.tabbed.conf.closedClass).addClass(b.compact.tabbed.conf.openClass).ariaState({hidden:"false",expanded:"true"});
}function c(){b(this).removeClass(b.compact.tabbed.conf.openClass).addClass(b.compact.tabbed.conf.closedClass).ariaState({hidden:"true",expanded:"false"});
}function a(h){return b(b.compact.tabbed.conf.containerSelector+" #"+h).each(e);
}function e(){containerEl=b(this).parents(b.compact.tabbed.conf.containerSelector+":first");
options=containerEl.data("options");
viewportEl=b(this).parents("."+b.compact.tabbed.conf.viewportInnerElClass+":first");
newTab=b(this);
previousTab=b(this).siblings("."+b.compact.tabbed.conf.openClass);
containerEl.removeClass(b.compact.tabbed.conf.currentClass+"-"+previousTab.attr("id")).addClass(b.compact.tabbed.conf.currentClass+"-"+newTab.attr("id"));
containerEl.ariaState("busy","true");
c.apply(previousTab);
previousTab.fadeOut(options.transitionSpeed,function(){g.apply(newTab);
newTab.fadeIn(options.transitionSpeed);
containerEl.ariaState("relevant","all").ariaState("busy","false");
});
if(options.variableHeight&&previousTab.fullHeight()!=newTab.fullHeight()){viewportEl.stop().animate({"height":b(this).fullHeight()},options.heightAdjustSpeed,"",function(){viewportEl.css("height","auto");
});
}if(options.rememberStateInCookie){b.compact._cookie(b.compact.tabbed.conf.cookieRefPrefix+containerEl.attr("id")+".current",b(this).attr("id"),{expires:options.cookieExpiryDays});
}if(options.updateURL){currentCompactFrag=b(this).attr("id");
b.frag(currentCompactFrag,false);
}b('a[href$="#'+b(this).attr("id")+'"]').each(f);
return;
}function d(){href=b(this).attr("href");
a(href.substr(href.indexOf("#")+1));
f.apply(this);
return false;
}function f(){b(this).parent().siblings().removeClass(b.compact.tabbed.conf.currentClass).find("a").ariaState("pressed","false");
b(this).parent().addClass(b.compact.tabbed.conf.currentClass).find("a").ariaState("pressed","true");
}})(jQuery);
var rotatorOffset;
var rotatorCount;
var rotatorInterval;
var currentItem=0;
var animationSpeed=1500;
var animationStatus;
var rotatorDisplacementImg='<img src="/images/ui/displacement.png" alt="" class="for-css-replacement" />';
var rotatorPauseTitle="Pause rotator";
var rotatorPlayTitle="Start rotator";
jQuery(document).ready(function(){initNewsRotator=function(){if(typeof jQuery.browser.gotStyle!="undefined"&&jQuery.browser.gotStyle(this)===false){debug("DEBUG: Your browser does not have CSS support available or enabled, rotator script exiting");
return;
}var a=jQuery("#breaking-news");
a.append('			<div class="controls">				<a href="#" class="toggle pause" title="'+rotatorPauseTitle+'"><span>'+rotatorDisplacementImg+'|&gt;</span></a>				<a href="#" class="previous" title="Previous item"><span>'+rotatorDisplacementImg+'&lt;</span></a>				<a href="#" class="next" title="Next item"><span>'+rotatorDisplacementImg+"&gt;</span></a>			</div>");
a.addClass("active");
rotatorOffset=a.attr("clientHeight");
jQuery("ul.news-list li").css("position","absolute").css("top",rotatorOffset);
jQuery("ul.news-list li:eq(0)").css("top",0);
startRotator();
jQuery("#breaking-news a.toggle").click(function(){toggleRotator();
return false;
});
jQuery("#breaking-news a.previous").click(function(){pauseRotator();
moveRotatorBackward();
return false;
});
jQuery("#breaking-news a.next").click(function(){pauseRotator();
moveRotatorForward();
return false;
});
};
toggleRotator=function(){if(jQuery("#breaking-news a.toggle").attr("title")==rotatorPauseTitle){pauseRotator();
}else{moveRotatorForward();
startRotator();
}};
startRotator=function(){jQuery("#breaking-news a.toggle").removeClass("pause").attr("title",rotatorPauseTitle).find("span").text("|>").prepend(rotatorDisplacementImg);
rotatorInterval=setInterval(moveRotatorForward,6000);
};
pauseRotator=function(){jQuery("#breaking-news a.toggle").addClass("pause").attr("title",rotatorPlayTitle).find("span").text("||").prepend(rotatorDisplacementImg);
clearInterval(rotatorInterval);
};
moveRotatorForward=function(){if(animationStatus==true){return;
}setAnimationStatus(true);
jQuery("ul.news-list li:eq("+currentItem+")").animate({top:-rotatorOffset},animationSpeed);
updateRotatorIndex(1);
jQuery("ul.news-list li:eq("+currentItem+")").css("top",rotatorOffset).animate({top:0},animationSpeed,"",function(){setAnimationStatus(false);
});
};
moveRotatorBackward=function(){if(animationStatus==true){return;
}setAnimationStatus(true);
jQuery("ul.news-list li:eq("+currentItem+")").animate({top:rotatorOffset},animationSpeed);
updateRotatorIndex(-1);
jQuery("ul.news-list li:eq("+currentItem+")").css("top",-rotatorOffset).animate({top:0},animationSpeed,"",function(){setAnimationStatus(false);
});
};
updateRotatorIndex=function(a){var b=(rotatorCount-1);
currentItem=currentItem+a;
if(currentItem<0){currentItem=b;
}else{if(currentItem>b){currentItem=0;
}}};
setAnimationStatus=function(a){animationStatus=a;
};
debug=function(a){if(typeof window.console!="undefined"&&window.console.log!="undefined"){window.console.log(a);
}else{}};
rotatorCount=jQuery("ul.news-list li").size();
if(rotatorCount>1){initNewsRotator();
}});
