﻿/*
 * jQuery JavaScript Library v1.3.2
 * http://jquery.com/
 *
 * Copyright (c) 2009 John Resig
 * Dual licensed under the MIT and GPL licenses.
 * http://docs.jquery.com/License
 *
 * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
 * Revision: 6246
 */
(function(){var s=this,w,g=s.jQuery,j=s.$,m=s.jQuery=s.$=function(F,E){return new m.fn.init(F,E)},f=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,z=/^.[^:#\[\.,]*$/;m.fn=m.prototype={init:function(H,G){H=H||document;if(H.nodeType){this[0]=H;this.length=1;this.context=H;return this}if(typeof H==="string"){var E=f.exec(H);if(E&&(E[1]||!G)){if(E[1]){H=m.clean([E[1]],G)}else{var F=document.getElementById(E[3]);if(F&&F.id!=E[3]){return m().find(H)}var I=m(F||[]);I.context=document;I.selector=H;return I}}else{return m(G).find(H)}}else{if(m.isFunction(H)){return m(document).ready(H)}}if(H.selector&&H.context){this.selector=H.selector;this.context=H.context}return this.setArray(m.isArray(H)?H:m.makeArray(H))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===w?Array.prototype.slice.call(this):this[E]},pushStack:function(H,E,G){var F=m(H);F.prevObject=this;F.context=this.context;if(E==="find"){F.selector=this.selector+(this.selector?" ":"")+G}else{if(E){F.selector=this.selector+"."+E+"("+G+")"}}return F},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return m.each(this,F,E)},index:function(E){return m.inArray(E&&E.jquery?E[0]:E,this)},attr:function(E,H,F){var G=E;if(typeof E==="string"){if(H===w){return this[0]&&m[F||"attr"](this[0],E)}else{G={};G[E]=H}}return this.each(function(I){for(E in G){m.attr(F?this.style:this,E,m.prop(this,G[E],F,I,E))}})},css:function(F,E){if((F=="width"||F=="height")&&parseFloat(E)<0){E=w}return this.attr(F,E,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";m.each(F||this,function(){m.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:m.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=m(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){m(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){m(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||m([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;m.find(E,this[0],F);return F}else{return this.pushStack(m.unique(m.map(this,function(G){return m.find(E,G)})),"find",E)}},clone:function(F){var H=this.map(function(){if(!m.support.noCloneEvent&&!m.isXMLDoc(this)){var J=this.outerHTML;if(!J){var I=this.ownerDocument.createElement("div");I.appendChild(this.cloneNode(true));J=I.innerHTML}return m.clean([J.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(F===true){var E=this.find("*").andSelf(),G=0;H.find("*").andSelf().each(function(){if(this.nodeName!==E[G].nodeName){return}var J=m.data(E[G],"events");for(var K in J){for(var I in J[K]){m.event.add(this,K,J[K][I],J[K][I].data)}}G++})}return H},filter:function(E){return this.pushStack(m.isFunction(E)&&m.grep(this,function(F,G){return E.call(F,G)})||m.multiFilter(E,m.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(F){var E=m.expr.match.POS.test(F)?m(F):null,G=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(E?E.index(H)>-1:m(H).is(F)){m.data(H,"closest",G);return H}H=H.parentNode;G++}})},not:function(F){if(typeof F==="string"){if(z.test(F)){return this.pushStack(m.multiFilter(F,this,true),"not",F)}else{F=m.multiFilter(F,this)}}var E=F.length&&F[F.length-1]!==w&&!F.nodeType;return this.filter(function(){return E?m.inArray(this,F)<0:this!=F})},add:function(E){return this.pushStack(m.unique(m.merge(this.get(),typeof E==="string"?m(E):m.makeArray(E))))},is:function(E){return !!E&&m.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(F){if(F===w){var L=this[0];if(L){if(m.nodeName(L,"option")){return(L.attributes.value||{}).specified?L.value:L.text}if(m.nodeName(L,"select")){var G=L.selectedIndex,H=[],E=L.options,K=L.type=="select-one";if(G<0){return null}for(var J=K?G:0,M=K?G+1:E.length;J<M;J++){var I=E[J];if(I.selected){F=m(I).val();if(K){return F}H.push(F)}}return H}return(L.value||"").replace(/\r/g,"")}return w}if(typeof F==="number"){F+=""}return this.each(function(){if(this.nodeType!=1){return}if(m.isArray(F)&&/radio|checkbox/.test(this.type)){this.checked=(m.inArray(this.value,F)>=0||m.inArray(this.name,F)>=0)}else{if(m.nodeName(this,"select")){var N=m.makeArray(F);m("option",this).each(function(){this.selected=(m.inArray(this.value,N)>=0||m.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=F}}})},html:function(E){return E===w?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(m.map(this,function(F,G){return E.call(F,G,F)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,L,M){if(this[0]){var G=(this[0].ownerDocument||this[0]).createDocumentFragment(),I=m.clean(J,(this[0].ownerDocument||this[0]),G),K=G.firstChild;if(K){for(var E=0,H=this.length;E<H;E++){M.call(F(this[E],K),this.length>1||E>0?G.cloneNode(true):G)}}if(I){m.each(I,e)}}return this;function F(N,O){return L&&m.nodeName(N,"table")&&m.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};m.fn.init.prototype=m.fn;function e(F,E){if(E.src){m.ajax({url:E.src,async:false,dataType:"script"})}else{m.globalEval(E.text||E.textContent||E.innerHTML||"")}if(E.parentNode){E.parentNode.removeChild(E)}}function a(){return +new Date}m.extend=m.fn.extend=function(){var K=arguments[0]||{},I=1,J=arguments.length,G=false,E;if(typeof K==="boolean"){G=K;K=arguments[1]||{};I=2}if(typeof K!=="object"&&!m.isFunction(K)){K={}}if(J==I){K=this;--I}for(;I<J;I++){if((E=arguments[I])!=null){for(var F in E){var L=K[F],H=E[F];if(K===H){continue}if(G&&H&&typeof H==="object"&&!H.nodeType){K[F]=m.extend(G,L||(H.length!=null?[]:{}),H)}else{if(H!==w){K[F]=H}}}}}return K};var t=/z-?index|font-?weight|opacity|zoom|line-?height/i,A=document.defaultView||{},h=Object.prototype.toString;m.extend({noConflict:function(E){s.$=j;if(E){s.jQuery=g}return m},isFunction:function(E){return h.call(E)==="[object Function]"},isArray:function(E){return h.call(E)==="[object Array]"},isXMLDoc:function(E){return E.nodeType===9&&E.documentElement.nodeName!=="HTML"||!!E.ownerDocument&&m.isXMLDoc(E.ownerDocument)},globalEval:function(G){if(G&&/\S/.test(G)){var E=document.getElementsByTagName("head")[0]||document.documentElement,F=document.createElement("script");F.type="text/javascript";if(m.support.scriptEval){F.appendChild(document.createTextNode(G))}else{F.text=G}E.insertBefore(F,E.firstChild);E.removeChild(F)}},nodeName:function(F,E){return F.nodeName&&F.nodeName.toUpperCase()==E.toUpperCase()},each:function(G,K,F){var E,H=0,J=G.length;if(F){if(J===w){for(E in G){if(K.apply(G[E],F)===false){break}}}else{for(;H<J;){if(K.apply(G[H++],F)===false){break}}}}else{if(J===w){for(E in G){if(K.call(G[E],E,G[E])===false){break}}}else{for(var I=G[0];H<J&&K.call(I,H,I)!==false;I=G[++H]){}}}return G},prop:function(G,E,H,I,F){if(m.isFunction(E)){E=E.call(G,I)}return typeof E==="number"&&H=="curCSS"&&!t.test(F)?E+"px":E},className:{add:function(E,F){m.each((F||"").split(/\s+/),function(H,G){if(E.nodeType==1&&!m.className.has(E.className,G)){E.className+=(E.className?" ":"")+G}})},remove:function(E,F){if(E.nodeType==1){E.className=F!==w?m.grep(E.className.split(/\s+/),function(G){return !m.className.has(F,G)}).join(" "):""}},has:function(E,F){return E&&m.inArray(F,(E.className||E).toString().split(/\s+/))>-1}},swap:function(G,H,I){var E={};for(var F in H){E[F]=G.style[F];G.style[F]=H[F]}I.call(G);for(var F in H){G.style[F]=E[F]}},css:function(J,I,L,K){if(I=="width"||I=="height"){var H,G={position:"absolute",visibility:"hidden",display:"block"},F=I=="width"?["Left","Right"]:["Top","Bottom"];function E(){H=I=="width"?J.offsetWidth:J.offsetHeight;if(K==="border"){return}m.each(F,function(){if(!K){H-=parseFloat(m.curCSS(J,"padding"+this,true))||0}if(K==="margin"){H+=parseFloat(m.curCSS(J,"margin"+this,true))||0}else{H-=parseFloat(m.curCSS(J,"border"+this+"Width",true))||0}})}if(J.offsetWidth!==0){E()}else{m.swap(J,G,E)}return Math.max(0,Math.round(H))}return m.curCSS(J,I,L)},curCSS:function(K,G,M){var E,L=K.style;if(G=="opacity"&&!m.support.opacity){E=m.attr(L,"opacity");return E==""?"1":E}if(G.match(/float/i)){G=y}if(!M&&L&&L[G]){E=L[G]}else{if(A.getComputedStyle){if(G.match(/float/i)){G="float"}G=G.replace(/([A-Z])/g,"-$1").toLowerCase();var J=A.getComputedStyle(K,null);if(J){E=J.getPropertyValue(G)}if(G=="opacity"&&E==""){E="1"}}else{if(K.currentStyle){var H=G.replace(/\-(\w)/g,function(O,N){return N.toUpperCase()});E=K.currentStyle[G]||K.currentStyle[H];if(!/^\d+(px)?$/i.test(E)&&/^\d/.test(E)){var F=L.left,I=K.runtimeStyle.left;K.runtimeStyle.left=K.currentStyle.left;L.left=E||0;E=L.pixelLeft+"px";L.left=F;K.runtimeStyle.left=I}}}}return E},clean:function(I,K,F){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!F&&I.length===1&&typeof I[0]==="string"){var J=/^<(\w+)\s*\/?>$/.exec(I[0]);if(J){return[K.createElement(J[1])]}}var G=[],L=[],H=K.createElement("div");m.each(I,function(Q,N){if(typeof N==="number"){N+=""}if(!N){return}if(typeof N==="string"){N=N.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+"></"+T+">"});var M=N.replace(/^\s+/,"").substring(0,10).toLowerCase();var S=!M.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!M.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||M.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!M.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!M.indexOf("<td")||!M.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!M.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!m.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];H.innerHTML=S[1]+N+S[2];while(S[0]--){H=H.lastChild}if(!m.support.tbody){var P=/<tbody/i.test(N),O=!M.indexOf("<table")&&!P?H.firstChild&&H.firstChild.childNodes:S[1]=="<table>"&&!P?H.childNodes:[];for(var R=O.length-1;R>=0;--R){if(m.nodeName(O[R],"tbody")&&!O[R].childNodes.length){O[R].parentNode.removeChild(O[R])}}}if(!m.support.leadingWhitespace&&/^\s/.test(N)){H.insertBefore(K.createTextNode(N.match(/^\s*/)[0]),H.firstChild)}N=m.makeArray(H.childNodes)}if(N.nodeType){G.push(N)}else{G=m.merge(G,N)}});if(F){for(var E=0;G[E];E++){if(m.nodeName(G[E],"script")&&(!G[E].type||G[E].type.toLowerCase()==="text/javascript")){L.push(G[E].parentNode?G[E].parentNode.removeChild(G[E]):G[E])}else{if(G[E].nodeType===1){G.splice.apply(G,[E+1,0].concat(m.makeArray(G[E].getElementsByTagName("script"))))}F.appendChild(G[E])}}return L}return G},attr:function(I,E,G){if(!I||I.nodeType==3||I.nodeType==8){return w}var L=!m.isXMLDoc(I),F=G!==w;E=L&&m.props[E]||E;if(I.tagName){var K=/href|src|style/.test(E);if(E=="selected"&&I.parentNode){I.parentNode.selectedIndex}if(E in I&&L&&!K){if(F){if(E=="type"&&m.nodeName(I,"input")&&I.parentNode){throw"type property can't be changed"}I[E]=G}if(m.nodeName(I,"form")&&I.getAttributeNode(E)){return I.getAttributeNode(E).nodeValue}if(E=="tabIndex"){var J=I.getAttributeNode("tabIndex");return J&&J.specified?J.value:I.nodeName.match(/(button|input|object|select|textarea)/i)?0:I.nodeName.match(/^(a|area)$/i)&&I.href?0:w}return I[E]}if(!m.support.style&&L&&E=="style"){return m.attr(I.style,"cssText",G)}if(F){I.setAttribute(E,""+G)}var H=!m.support.hrefNormalized&&L&&K?I.getAttribute(E,2):I.getAttribute(E);return H===null?w:H}if(!m.support.opacity&&E=="opacity"){if(F){I.zoom=1;I.filter=(I.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(G)+""=="NaN"?"":"alpha(opacity="+G*100+")")}return I.filter&&I.filter.indexOf("opacity=")>=0?(parseFloat(I.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}E=E.replace(/-([a-z])/ig,function(N,M){return M.toUpperCase()});if(F){I[E]=G}return I[E]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(F){var G=[];if(F!=null){var E=F.length;if(E==null||typeof F==="string"||m.isFunction(F)||F.setInterval){G[0]=F}else{while(E){G[--E]=F[E]}}}return G},inArray:function(F,H){for(var G=0,E=H.length;G<E;G++){if(H[G]===F){return G}}return -1},merge:function(F,G){var I=0,E,H=F.length;if(!m.support.getAll){while((E=G[I++])!=null){if(E.nodeType!=8){F[H++]=E}}}else{while((E=G[I++])!=null){F[H++]=E}}return F},unique:function(J){var K=[],E={};try{for(var H=0,G=J.length;H<G;H++){var I=m.data(J[H]);if(!E[I]){E[I]=true;K.push(J[H])}}}catch(F){K=J}return K},grep:function(J,E,F){var G=[];for(var H=0,I=J.length;H<I;H++){if(!F!=!E(J[H],H)){G.push(J[H])}}return G},map:function(J,E){var F=[];for(var G=0,I=J.length;G<I;G++){var H=E(J[G],G);if(H!=null){F[F.length]=H}}return F.concat.apply([],F)}});var n=navigator.userAgent.toLowerCase();m.browser={version:(n.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(n),opera:/opera/.test(n),msie:/msie/.test(n)&&!/opera/.test(n),mozilla:/mozilla/.test(n)&&!/(compatible|webkit)/.test(n)};m.each({parent:function(E){return E.parentNode},parents:function(E){return m.dir(E,"parentNode")},next:function(E){return m.nth(E,2,"nextSibling")},prev:function(E){return m.nth(E,2,"previousSibling")},nextAll:function(E){return m.dir(E,"nextSibling")},prevAll:function(E){return m.dir(E,"previousSibling")},siblings:function(E){return m.sibling(E.parentNode.firstChild,E)},children:function(E){return m.sibling(E.firstChild)},contents:function(E){return m.nodeName(E,"iframe")?E.contentDocument||E.contentWindow.document:m.makeArray(E.childNodes)}},function(F,E){m.fn[F]=function(G){var H=m.map(this,E);if(G&&typeof G=="string"){H=m.multiFilter(G,H)}return this.pushStack(m.unique(H),F,G)}});m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(F,E){m.fn[F]=function(I){var L=[],H=m(I);for(var J=0,G=H.length;J<G;J++){var K=(J>0?this.clone(true):this).get();m.fn[E].apply(m(H[J]),K);L=L.concat(K)}return this.pushStack(L,F,I)}});m.each({removeAttr:function(E){m.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){m.className.add(this,E)},removeClass:function(E){m.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!m.className.has(this,F)}m.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||m.filter(E,[this]).length){m("*",this).add([this]).each(function(){m.event.remove(this);m.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){m(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(F,E){m.fn[F]=function(){return this.each(E,arguments)}});function o(E,F){return E[0]&&parseInt(m.curCSS(E[0],F,true),10)||0}var r="jQuery"+a(),x=0,q={};m.extend({cache:{},data:function(F,E,H){F=F==s?q:F;var G=F[r];if(!G){G=F[r]=++x}if(E&&!m.cache[G]){m.cache[G]={}}if(H!==w){m.cache[G][E]=H}return E?m.cache[G][E]:G},removeData:function(F,E){F=F==s?q:F;var H=F[r];if(E){if(m.cache[H]){delete m.cache[H][E];E="";for(E in m.cache[H]){break}if(!E){m.removeData(F)}}}else{try{delete F[r]}catch(G){if(F.removeAttribute){F.removeAttribute(r)}}delete m.cache[H]}},queue:function(E,F,H){if(E){F=(F||"fx")+"queue";var G=m.data(E,F);if(!G||m.isArray(H)){G=m.data(E,F,m.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(F,G){var H=m.queue(F,G),E=H.shift();if(!G||G==="fx"){E=H[0]}if(E!==w){E.call(F)}}});m.fn.extend({data:function(F,E){var G=F.split(".");G[1]=G[1]?"."+G[1]:"";if(E===w){var H=this.triggerHandler("getData"+G[1]+"!",[G[0]]);if(H===w&&this.length){H=m.data(this[0],F)}return H===w&&G[1]?this.data(G[0]):H}else{return this.trigger("setData"+G[1]+"!",[G[0],E]).each(function(){m.data(this,F,E)})}},removeData:function(E){return this.each(function(){m.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===w){return m.queue(this[0],E)}return this.each(function(){var G=m.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){m.dequeue(this,E)})}});
/*
 * Sizzle CSS Selector Engine - v0.9.3
 *  Copyright 2009, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var H=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,R=0,P=Object.prototype.toString;var O=function(Y,ae,X,ac){X=X||[];ae=ae||document;if(ae.nodeType!==1&&ae.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return X}var aa=[],ah,V,ai,ag,T,W,Z=true;H.lastIndex=0;while((ah=H.exec(Y))!==null){aa.push(ah[1]);if(ah[2]){W=RegExp.rightContext;break}}if(aa.length>1&&I.exec(Y)){if(aa.length===2&&M.relative[aa[0]]){V=N(aa[0]+aa[1],ae)}else{V=M.relative[aa[0]]?[ae]:O(aa.shift(),ae);while(aa.length){Y=aa.shift();if(M.relative[Y]){Y+=aa.shift()}V=N(Y,V)}}}else{var U=ac?{expr:aa.pop(),set:F(ac)}:O.find(aa.pop(),aa.length===1&&ae.parentNode?ae.parentNode:ae,K(ae));V=O.filter(U.expr,U.set);if(aa.length>0){ai=F(V)}else{Z=false}while(aa.length){var ab=aa.pop(),af=ab;if(!M.relative[ab]){ab=""}else{af=aa.pop()}if(af==null){af=ae}M.relative[ab](ai,af,K(ae))}}if(!ai){ai=V}if(!ai){throw"Syntax error, unrecognized expression: "+(ab||Y)}if(P.call(ai)==="[object Array]"){if(!Z){X.push.apply(X,ai)}else{if(ae.nodeType===1){for(var ad=0;ai[ad]!=null;ad++){if(ai[ad]&&(ai[ad]===true||ai[ad].nodeType===1&&L(ae,ai[ad]))){X.push(V[ad])}}}else{for(var ad=0;ai[ad]!=null;ad++){if(ai[ad]&&ai[ad].nodeType===1){X.push(V[ad])}}}}}else{F(ai,X)}if(W){O(W,ae,X,ac);if(Q){hasDuplicate=false;X.sort(Q);if(hasDuplicate){for(var ad=1;ad<X.length;ad++){if(X[ad]===X[ad-1]){X.splice(ad--,1)}}}}}return X};O.matches=function(U,T){return O(U,null,null,T)};O.find=function(ab,aa,Y){var W,Z;if(!ab){return[]}for(var T=0,V=M.order.length;T<V;T++){var X=M.order[T],Z;if((Z=M.match[X].exec(ab))){var U=RegExp.leftContext;if(U.substr(U.length-1)!=="\\"){Z[1]=(Z[1]||"").replace(/\\/g,"");W=M.find[X](Z,aa,Y);if(W!=null){ab=ab.replace(M.match[X],"");break}}}}if(!W){W=aa.getElementsByTagName("*")}return{set:W,expr:ab}};O.filter=function(W,Y,Z,ag){var aa=W,X=[],ai=Y,af,V,ah=Y&&Y[0]&&K(Y[0]);while(W&&Y.length){for(var U in M.filter){if((af=M.match[U].exec(W))!=null){var ac=M.filter[U],ae,T;V=false;if(ai==X){X=[]}if(M.preFilter[U]){af=M.preFilter[U](af,ai,Z,X,ag,ah);if(!af){V=ae=true}else{if(af===true){continue}}}if(af){for(var ad=0;(T=ai[ad])!=null;ad++){if(T){ae=ac(T,af,ad,ai);var ab=ag^!!ae;if(Z&&ae!=null){if(ab){V=true}else{ai[ad]=false}}else{if(ab){X.push(T);V=true}}}}}if(ae!==w){if(!Z){ai=X}W=W.replace(M.match[U],"");if(!V){return[]}break}}}if(W==aa){if(V==null){throw"Syntax error, unrecognized expression: "+W}else{break}}aa=W}return ai};var M=O.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(T){return T.getAttribute("href")}},relative:{"+":function(ab,W,Z){var X=typeof W==="string",Y=X&&!/\W/.test(W),U=X&&!Y;if(Y&&!Z){W=W.toUpperCase()}for(var T=0,V=ab.length,aa;T<V;T++){if((aa=ab[T])){while((aa=aa.previousSibling)&&aa.nodeType!==1){}ab[T]=U||aa&&aa.nodeName===W?aa||false:aa===W}}if(U){O.filter(W,ab,true)}},">":function(aa,V,X){var W=typeof V==="string";if(W&&!/\W/.test(V)){V=X?V:V.toUpperCase();for(var T=0,U=aa.length;T<U;T++){var Z=aa[T];if(Z){var Y=Z.parentNode;aa[T]=Y.nodeName===V?Y:false}}}else{for(var T=0,U=aa.length;T<U;T++){var Z=aa[T];if(Z){aa[T]=W?Z.parentNode:Z.parentNode===V}}if(W){O.filter(V,aa,true)}}},"":function(V,W,Y){var U=R++,T=E;if(!W.match(/\W/)){var X=W=Y?W:W.toUpperCase();T=S}T("parentNode",W,U,V,X,Y)},"~":function(V,W,Y){var U=R++,T=E;if(typeof W==="string"&&!W.match(/\W/)){var X=W=Y?W:W.toUpperCase();T=S}T("previousSibling",W,U,V,X,Y)}},find:{ID:function(U,W,T){if(typeof W.getElementById!=="undefined"&&!T){var V=W.getElementById(U[1]);return V?[V]:[]}},NAME:function(U,Y,T){if(typeof Y.getElementsByName!=="undefined"){var Z=[],X=Y.getElementsByName(U[1]);for(var W=0,V=X.length;W<V;W++){if(X[W].getAttribute("name")===U[1]){Z.push(X[W])}}return Z.length===0?null:Z}},TAG:function(T,U){return U.getElementsByTagName(T[1])}},preFilter:{CLASS:function(Y,aa,V,U,W,X){Y=" "+Y[1].replace(/\\/g,"")+" ";if(X){return Y}for(var T=0,Z;(Z=aa[T])!=null;T++){if(Z){if(W^(Z.className&&(" "+Z.className+" ").indexOf(Y)>=0)){if(!V){U.push(Z)}}else{if(V){aa[T]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(T,U){for(var V=0;U[V]===false;V++){}return U[V]&&K(U[V])?T[1]:T[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=R++;return T},ATTR:function(W,X,Z,V,U,T){var Y=W[1].replace(/\\/g,"");if(!T&&M.attrMap[Y]){W[1]=M.attrMap[Y]}if(W[2]==="~="){W[4]=" "+W[4]+" "}return W},PSEUDO:function(V,W,X,U,T){if(V[1]==="not"){if(V[3].match(H).length>1||/^\w/.test(V[3])){V[3]=O(V[3],null,null,W)}else{var Y=O.filter(V[3],W,X,true^T);if(!X){U.push.apply(U,Y)}return false}}else{if(M.match.POS.test(V[0])||M.match.CHILD.test(V[0])){return true}}return V},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(U,V,T){return !!O(T[3],U).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(T,U){return U===0},last:function(U,V,T,W){return V===W.length-1},even:function(T,U){return U%2===0},odd:function(T,U){return U%2===1},lt:function(U,V,T){return V<T[3]-0},gt:function(U,V,T){return V>T[3]-0},nth:function(U,V,T){return T[3]-0==V},eq:function(U,V,T){return T[3]-0==V}},filter:{PSEUDO:function(Z,Y,T,X){var W=Y[1],U=M.filters[W];if(U){return U(Z,T,Y,X)}else{if(W==="contains"){return(Z.textContent||Z.innerText||"").indexOf(Y[3])>=0}else{if(W==="not"){var V=Y[3];for(var T=0,aa=V.length;T<aa;T++){if(V[T]===Z){return false}}return true}}}},CHILD:function(aa,Y){var U=Y[1],T=aa;switch(U){case"only":case"first":while(T=T.previousSibling){if(T.nodeType===1){return false}}if(U=="first"){return true}T=aa;case"last":while(T=T.nextSibling){if(T.nodeType===1){return false}}return true;case"nth":var ac=Y[2],Z=Y[3];if(ac==1&&Z==0){return true}var X=Y[0],W=aa.parentNode;if(W&&(W.sizcache!==X||!aa.nodeIndex)){var ab=0;for(T=W.firstChild;T;T=T.nextSibling){if(T.nodeType===1){T.nodeIndex=++ab}}W.sizcache=X}var V=aa.nodeIndex-Z;if(ac==0){return V==0}else{return(V%ac==0&&V/ac>=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(V,T){var Y=T[1],U=M.attrHandle[Y]?M.attrHandle[Y](V):V[Y]!=null?V[Y]:V.getAttribute(Y),Z=U+"",W=T[2],X=T[4];return U==null?W==="!=":W==="="?Z===X:W==="*="?Z.indexOf(X)>=0:W==="~="?(" "+Z+" ").indexOf(X)>=0:!X?Z&&U!==false:W==="!="?Z!=X:W==="^="?Z.indexOf(X)===0:W==="$="?Z.substr(Z.length-X.length)===X:W==="|="?Z===X||Z.substr(0,X.length+1)===X+"-":false},POS:function(V,T,W,Y){var U=T[2],X=M.setFilters[U];if(X){return X(V,W,T,Y)}}}};var I=M.match.POS;for(var J in M.match){M.match[J]=RegExp(M.match[J].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var F=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(G){F=function(W,V){var X=V||[];if(P.call(W)==="[object Array]"){Array.prototype.push.apply(X,W)}else{if(typeof W.length==="number"){for(var U=0,T=W.length;U<T;U++){X.push(W[U])}}else{for(var U=0;W[U];U++){X.push(W[U])}}}return X}}var Q;if(document.documentElement.compareDocumentPosition){Q=function(T,U){var V=T.compareDocumentPosition(U)&4?-1:T===U?0:1;if(V===0){hasDuplicate=true}return V}}else{if("sourceIndex" in document.documentElement){Q=function(T,U){var V=T.sourceIndex-U.sourceIndex;if(V===0){hasDuplicate=true}return V}}else{if(document.createRange){Q=function(U,V){var W=U.ownerDocument.createRange(),T=V.ownerDocument.createRange();W.selectNode(U);W.collapse(true);T.selectNode(V);T.collapse(true);var X=W.compareBoundaryPoints(Range.START_TO_END,T);if(X===0){hasDuplicate=true}return X}}}}(function(){var U=document.createElement("form"),V="script"+(new Date).getTime();U.innerHTML="<input name='"+V+"'/>";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){M.find.ID=function(X,Z,W){if(typeof Z.getElementById!=="undefined"&&!W){var Y=Z.getElementById(X[1]);return Y?Y.id===X[1]||typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id").nodeValue===X[1]?[Y]:w:[]}};M.filter.ID=function(X,W){var Y=typeof X.getAttributeNode!=="undefined"&&X.getAttributeNode("id");return X.nodeType===1&&Y&&Y.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){M.find.TAG=function(V,Y){var X=Y.getElementsByTagName(V[1]);if(V[1]==="*"){var W=[];for(var U=0;X[U];U++){if(X[U].nodeType===1){W.push(X[U])}}X=W}return X}}T.innerHTML="<a href='#'></a>";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){M.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=O,U=document.createElement("div");U.innerHTML="<p class='TEST'></p>";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}O=function(X,V,Z,W){V=V||document;if(!W&&V.nodeType===9&&!K(V)){try{return F(V.querySelectorAll(X),Z)}catch(Y){}}return T(X,V,Z,W)};O.find=T.find;O.filter=T.filter;O.selectors=T.selectors;O.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="<div class='test e'></div><div class='test'></div>";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}M.order.splice(1,0,"CLASS");M.find.CLASS=function(V,W,U){if(typeof W.getElementsByClassName!=="undefined"&&!U){return W.getElementsByClassName(V[1])}}})()}function S(V,Y,aa,ad,ab,Z){var T=V=="previousSibling"&&!Z;for(var X=0,U=ad.length;X<U;X++){var ac=ad[X];if(ac){if(T&&ac.nodeType===1){ac.sizcache=aa;ac.sizset=X}ac=ac[V];var W=false;while(ac){if(ac.sizcache===aa){W=ad[ac.sizset];break}if(ac.nodeType===1&&!Z){ac.sizcache=aa;ac.sizset=X}if(ac.nodeName===Y){W=ac;break}ac=ac[V]}ad[X]=W}}}function E(V,Y,aa,ad,ab,Z){var T=V=="previousSibling"&&!Z;for(var X=0,U=ad.length;X<U;X++){var ac=ad[X];if(ac){if(T&&ac.nodeType===1){ac.sizcache=aa;ac.sizset=X}ac=ac[V];var W=false;while(ac){if(ac.sizcache===aa){W=ad[ac.sizset];break}if(ac.nodeType===1){if(!Z){ac.sizcache=aa;ac.sizset=X}if(typeof Y!=="string"){if(ac===Y){W=true;break}}else{if(O.filter(Y,[ac]).length>0){W=ac;break}}}ac=ac[V]}ad[X]=W}}}var L=document.compareDocumentPosition?function(T,U){return T.compareDocumentPosition(U)&16}:function(T,U){return T!==U&&(T.contains?T.contains(U):true)};var K=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&K(T.ownerDocument)};var N=function(X,aa){var W=[],Y="",Z,U=aa.nodeType?[aa]:aa;while((Z=M.match.PSEUDO.exec(X))){Y+=Z[0];X=X.replace(M.match.PSEUDO,"")}X=M.relative[X]?X+"*":X;for(var T=0,V=U.length;T<V;T++){O(X,U[T],W)}return O.filter(Y,W)};m.find=O;m.filter=O.filter;m.expr=O.selectors;m.expr[":"]=m.expr.filters;s.Sizzle=O;O.selectors.filters.hidden=function(T){return T.offsetWidth===0||T.offsetHeight===0};O.selectors.filters.visible=function(T){return T.offsetWidth>0||T.offsetHeight>0};O.selectors.filters.animated=function(T){return m.grep(m.timers,function(U){return T===U.elem}).length};m.multiFilter=function(U,V,T){if(T){U=":not("+U+")"}return O.matches(U,V)};m.dir=function(U,T){var V=[],W=U[T];while(W&&W!=document){if(W.nodeType==1){V.push(W)}W=W[T]}return V};m.nth=function(W,U,T,V){U=U||1;var X=0;for(;W;W=W[T]){if(W.nodeType==1&&++X==U){break}}return W};m.sibling=function(U,V){var T=[];for(;U;U=U.nextSibling){if(U.nodeType==1&&U!=V){T.push(U)}}return T};return;s.Sizzle=O})();m.event={add:function(H,I,G,K){if(H.nodeType==3||H.nodeType==8){return}if(H.setInterval&&H!=s){H=s}if(!G.guid){G.guid=this.guid++}if(K!==w){var E=G;G=this.proxy(E);G.data=K}var J=m.data(H,"events")||m.data(H,"events",{}),F=m.data(H,"handle")||m.data(H,"handle",function(){return typeof m!=="undefined"&&!m.event.triggered?m.event.handle.apply(arguments.callee.elem,arguments):w});F.elem=H;m.each(I.split(/\s+/),function(N,M){var L=M.split(".");M=L.shift();G.type=L.slice().sort().join(".");var O=J[M];if(m.event.specialAll[M]){m.event.specialAll[M].setup.call(H,K,L)}if(!O){O=J[M]={};if(!m.event.special[M]||m.event.special[M].setup.call(H,K,L)===false){if(H.addEventListener){H.addEventListener(M,F,false)}else{if(H.attachEvent){H.attachEvent("on"+M,F)}}}}O[G.guid]=G;m.event.global[M]=true});H=null},guid:1,global:{},remove:function(K,G,L){if(K.nodeType==3||K.nodeType==8){return}var H=m.data(K,"events"),F,I;if(H){if(G===w||(typeof G==="string"&&G.charAt(0)==".")){for(var E in H){this.remove(K,E+(G||""))}}else{if(G.type){L=G.handler;G=G.type}m.each(G.split(/\s+/),function(P,O){var M=O.split(".");O=M.shift();var N=RegExp("(^|\\.)"+M.slice().sort().join(".*\\.")+"(\\.|$)");if(H[O]){if(L){delete H[O][L.guid]}else{for(var Q in H[O]){if(N.test(H[O][Q].type)){delete H[O][Q]}}}if(m.event.specialAll[O]){m.event.specialAll[O].teardown.call(K,M)}for(F in H[O]){break}if(!F){if(!m.event.special[O]||m.event.special[O].teardown.call(K,M)===false){if(K.removeEventListener){K.removeEventListener(O,m.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,m.data(K,"handle"))}}}F=null;delete H[O]}}})}for(F in H){break}if(!F){var J=m.data(K,"handle");if(J){J.elem=null}m.removeData(K,"events");m.removeData(K,"handle")}}},trigger:function(F,G,L,H){var E=F.type||F;if(!H){F=typeof F==="object"?F[r]?F:m.extend(m.Event(E),F):m.Event(E);if(E.indexOf("!")>=0){F.type=E=E.slice(0,-1);F.exclusive=true}if(!L){F.stopPropagation();if(this.global[E]){m.each(m.cache,function(){if(this.events&&this.events[E]){m.event.trigger(F,G,this.handle.elem)}})}}if(!L||L.nodeType==3||L.nodeType==8){return w}F.result=w;F.target=L;G=m.makeArray(G);G.unshift(F)}F.currentTarget=L;var J=m.data(L,"handle");if(J){J.apply(L,G)}if((!L[E]||(m.nodeName(L,"a")&&E=="click"))&&L["on"+E]&&L["on"+E].apply(L,G)===false){F.result=false}if(!H&&L[E]&&!F.isDefaultPrevented()&&!(m.nodeName(L,"a")&&E=="click")){this.triggered=true;try{L[E]()}catch(I){}}this.triggered=false;if(!F.isPropagationStopped()){var K=L.parentNode||L.ownerDocument;if(K){m.event.trigger(F,G,K,true)}}},handle:function(H){var K,J;H=arguments[0]=m.event.fix(H||s.event);H.currentTarget=this;var I=H.type.split(".");H.type=I.shift();K=!I.length&&!H.exclusive;var F=RegExp("(^|\\.)"+I.slice().sort().join(".*\\.")+"(\\.|$)");J=(m.data(this,"events")||{})[H.type];for(var E in J){var L=J[E];if(K||F.test(L.type)){H.handler=L;H.data=L.data;var G=L.apply(this,arguments);if(G!==w){H.result=G;if(G===false){H.preventDefault();H.stopPropagation()}}if(H.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(H){if(H[r]){return H}var G=H;H=m.Event(G);for(var I=this.props.length,J;I;){J=this.props[--I];H[J]=G[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var F=document.documentElement,E=document.body;H.pageX=H.clientX+(F&&F.scrollLeft||E&&E.scrollLeft||0)-(F.clientLeft||0);H.pageY=H.clientY+(F&&F.scrollTop||E&&E.scrollTop||0)-(F.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(E,F){F=F||function(){return E.apply(this,arguments)};F.guid=E.guid=E.guid||F.guid||this.guid++;return F},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(F,E){m.event.add(this,E[0],D)},teardown:function(E){if(E.length){var G=0,F=RegExp("(^|\\.)"+E[0]+"(\\.|$)");m.each((m.data(this,"events").live||{}),function(){if(F.test(this.type)){G++}});if(G<1){m.event.remove(this,E[0],D)}}}}}};m.Event=function(E){if(!this.preventDefault){return new m.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=a();this[r]=true};function d(){return false}function l(){return true}m.Event.prototype={preventDefault:function(){this.isDefaultPrevented=l;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=l;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=l;this.stopPropagation()},isDefaultPrevented:d,isPropagationStopped:d,isImmediatePropagationStopped:d};var c=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;m.event.handle.apply(this,arguments)}};m.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){m.event.special[E]={setup:function(){m.event.add(this,F,c,E)},teardown:function(){m.event.remove(this,F,c)}}});m.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){m.event.add(this,F,E||G,E&&G)})},one:function(G,H,E){var F=m.event.proxy(E||H,function(I){m(this).unbind(I,F);return(E||H).apply(this,arguments)});return this.each(function(){m.event.add(this,G,F,E&&H)})},unbind:function(F,E){return this.each(function(){m.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){m.event.trigger(E,F,this)})},triggerHandler:function(F,G){if(this[0]){var E=m.Event(F);E.preventDefault();E.stopPropagation();m.event.trigger(E,G,this[0]);return E.result}},toggle:function(E){var F=arguments,G=1;while(G<F.length){m.event.proxy(E,F[G++])}return this.click(m.event.proxy(E,function(H){this.lastToggle=(this.lastToggle||0)%G;H.preventDefault();return F[this.lastToggle++].apply(this,arguments)||false}))},hover:function(F,E){return this.mouseenter(F).mouseleave(E)},ready:function(E){B();if(m.isReady){E.call(document,m)}else{m.readyList.push(E)}return this},live:function(F,E){var G=m.event.proxy(E);G.guid+=this.selector+F;m(document).bind(p(F,this.selector),this.selector,G);return this},die:function(F,E){m(document).unbind(p(F,this.selector),E?{guid:E.guid+this.selector+F}:null);return this}});function D(E){var F=RegExp("(^|\\.)"+E.type+"(\\.|$)"),G=true,H=[];m.each(m.data(this,"events").live||[],function(K,I){if(F.test(I.type)){var J=m(E.target).closest(I.data)[0];if(J){H.push({elem:J,fn:I})}}});H.sort(function(I,J){return m.data(I.elem,"closest")-m.data(J.elem,"closest")});m.each(H,function(){if(this.fn.call(this.elem,E,this.fn.data)===false){return(G=false)}});return G}function p(E,F){return["live",E,F.replace(/\./g,"`").replace(/ /g,"|")].join(".")}m.extend({isReady:false,readyList:[],ready:function(){if(!m.isReady){m.isReady=true;if(m.readyList){m.each(m.readyList,function(){this.call(document,m)});m.readyList=null}m(document).triggerHandler("ready")}}});var C=false;function B(){if(C){return}C=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);m.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);m.ready()}});if(document.documentElement.doScroll&&s==s.top){(function(){if(m.isReady){return}try{document.documentElement.doScroll("left")}catch(E){setTimeout(arguments.callee,0);return}m.ready()})()}}}m.event.add(s,"load",m.ready)}m.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(F,E){m.fn[E]=function(G){return G?this.bind(E,G):this.trigger(E)}});m(s).bind("unload",function(){for(var E in m.cache){if(E!=1&&m.cache[E].handle){m.event.remove(m.cache[E].handle.elem)}}});(function(){m.support={};var F=document.documentElement,I=document.createElement("script"),E=document.createElement("div"),J="script"+(new Date).getTime();E.style.display="none";E.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 G=E.getElementsByTagName("*"),K=E.getElementsByTagName("a")[0];if(!G||!G.length||!K){return}m.support={leadingWhitespace:E.firstChild.nodeType==3,tbody:!E.getElementsByTagName("tbody").length,objectAll:!!E.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!E.getElementsByTagName("link").length,style:/red/.test(K.getAttribute("style")),hrefNormalized:K.getAttribute("href")==="/a",opacity:K.style.opacity==="0.5",cssFloat:!!K.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};I.type="text/javascript";try{I.appendChild(document.createTextNode("window."+J+"=1;"))}catch(H){}F.insertBefore(I,F.firstChild);if(s[J]){m.support.scriptEval=true;delete s[J]}F.removeChild(I);if(E.attachEvent&&E.fireEvent){E.attachEvent("onclick",function(){m.support.noCloneEvent=false;E.detachEvent("onclick",arguments.callee)});E.cloneNode(true).fireEvent("onclick")}m(function(){var L=document.createElement("div");L.style.width=L.style.paddingLeft="1px";document.body.appendChild(L);m.boxModel=m.support.boxModel=L.offsetWidth===2;document.body.removeChild(L).style.display="none"})})();var y=m.support.cssFloat?"cssFloat":"styleFloat";m.props={"for":"htmlFor","class":"className","float":y,cssFloat:y,styleFloat:y,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};m.fn.extend({_load:m.fn.load,load:function(H,E,K){if(typeof H!=="string"){return this._load(H)}var F=H.indexOf(" ");if(F>=0){var I=H.slice(F,H.length);H=H.slice(0,F)}var G="GET";if(E){if(m.isFunction(E)){K=E;E=null}else{if(typeof E==="object"){E=m.param(E);G="POST"}}}var J=this;m.ajax({url:H,type:G,dataType:"html",data:E,complete:function(M,L){if(L=="success"||L=="notmodified"){J.html(I?m("<div/>").append(M.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(I):M.responseText)}if(K){J.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?m.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(F,E){var G=m(this).val();return G==null?null:m.isArray(G)?m.map(G,function(I,H){return{name:E.name,value:I}}):{name:E.name,value:G}}).get()}});m.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(F,E){m.fn[E]=function(G){return this.bind(E,G)}});var k=a();m.extend({get:function(G,H,E,F){if(m.isFunction(H)){E=H;H=null}return m.ajax({type:"GET",url:G,data:H,success:E,dataType:F})},getScript:function(E,F){return m.get(E,null,F,"script")},getJSON:function(F,G,E){return m.get(F,G,E,"json")},post:function(G,H,E,F){if(m.isFunction(H)){E=H;H={}}return m.ajax({type:"POST",url:G,data:H,success:E,dataType:F})},ajaxSetup:function(E){m.extend(m.ajaxSettings,E)},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(K){K=m.extend(true,K,m.extend(true,{},m.ajaxSettings,K));var F,O=/=\?(&|$)/g,L,M,G=K.type.toUpperCase();if(K.data&&K.processData&&typeof K.data!=="string"){K.data=m.param(K.data)}if(K.dataType=="jsonp"){if(G=="GET"){if(!K.url.match(O)){K.url+=(K.url.match(/\?/)?"&":"?")+(K.jsonp||"callback")+"=?"}}else{if(!K.data||!K.data.match(O)){K.data=(K.data?K.data+"&":"")+(K.jsonp||"callback")+"=?"}}K.dataType="json"}if(K.dataType=="json"&&(K.data&&K.data.match(O)||K.url.match(O))){F="jsonp"+k++;if(K.data){K.data=(K.data+"").replace(O,"="+F+"$1")}K.url=K.url.replace(O,"="+F+"$1");K.dataType="script";s[F]=function(X){M=X;P();S();s[F]=w;try{delete s[F]}catch(Y){}if(W){W.removeChild(U)}}}if(K.dataType=="script"&&K.cache==null){K.cache=false}if(K.cache===false&&G=="GET"){var E=a();var J=K.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");K.url=J+((J==K.url)?(K.url.match(/\?/)?"&":"?")+"_="+E:"")}if(K.data&&G=="GET"){K.url+=(K.url.match(/\?/)?"&":"?")+K.data;K.data=null}if(K.global&&!m.active++){m.event.trigger("ajaxStart")}var V=/^(\w+:)?\/\/([^\/?#]+)/.exec(K.url);if(K.dataType=="script"&&G=="GET"&&V&&(V[1]&&V[1]!=location.protocol||V[2]!=location.host)){var W=document.getElementsByTagName("head")[0];var U=document.createElement("script");U.src=K.url;if(K.scriptCharset){U.charset=K.scriptCharset}if(!F){var I=false;U.onload=U.onreadystatechange=function(){if(!I&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){I=true;P();S();U.onload=U.onreadystatechange=null;W.removeChild(U)}}}W.appendChild(U);return w}var T=false;var H=K.xhr();if(K.username){H.open(G,K.url,K.async,K.username,K.password)}else{H.open(G,K.url,K.async)}try{if(K.data){H.setRequestHeader("Content-Type",K.contentType)}if(K.ifModified){H.setRequestHeader("If-Modified-Since",m.lastModified[K.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}H.setRequestHeader("X-Requested-With","XMLHttpRequest");H.setRequestHeader("Accept",K.dataType&&K.accepts[K.dataType]?K.accepts[K.dataType]+", */*":K.accepts._default)}catch(Q){}if(K.beforeSend&&K.beforeSend(H,K)===false){if(K.global&&!--m.active){m.event.trigger("ajaxStop")}H.abort();return false}if(K.global){m.event.trigger("ajaxSend",[H,K])}var R=function(X){if(H.readyState==0){if(N){clearInterval(N);N=null;if(K.global&&!--m.active){m.event.trigger("ajaxStop")}}}else{if(!T&&H&&(H.readyState==4||X=="timeout")){T=true;if(N){clearInterval(N);N=null}L=X=="timeout"?"timeout":!m.httpSuccess(H)?"error":K.ifModified&&m.httpNotModified(H,K.url)?"notmodified":"success";if(L=="success"){try{M=m.httpData(H,K.dataType,K)}catch(Z){L="parsererror"}}if(L=="success"){var Y;try{Y=H.getResponseHeader("Last-Modified")}catch(Z){}if(K.ifModified&&Y){m.lastModified[K.url]=Y}if(!F){P()}}else{m.handleError(K,H,L)}S();if(X){H.abort()}if(K.async){H=null}}}};if(K.async){var N=setInterval(R,13);if(K.timeout>0){setTimeout(function(){if(H&&!T){R("timeout")}},K.timeout)}}try{H.send(K.data)}catch(Q){m.handleError(K,H,null,Q)}if(!K.async){R()}function P(){if(K.success){K.success(M,L)}if(K.global){m.event.trigger("ajaxSuccess",[H,K])}}function S(){if(K.complete){K.complete(H,L)}if(K.global){m.event.trigger("ajaxComplete",[H,K])}if(K.global&&!--m.active){m.event.trigger("ajaxStop")}}return H},handleError:function(E,H,F,G){if(E.error){E.error(H,F,G)}if(E.global){m.event.trigger("ajaxError",[H,E,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(H,F){try{var G=H.getResponseHeader("Last-Modified");return H.status==304||G==m.lastModified[F]}catch(E){}return false},httpData:function(I,G,E){var H=I.getResponseHeader("content-type"),F=G=="xml"||!G&&H&&H.indexOf("xml")>=0,J=F?I.responseXML:I.responseText;if(F&&J.documentElement.tagName=="parsererror"){throw"parsererror"}if(E&&E.dataFilter){J=E.dataFilter(J,G)}if(typeof J==="string"){if(G=="script"){m.globalEval(J)}if(G=="json"){J=s["eval"]("("+J+")")}}return J},param:function(G){var E=[];function F(J,I){E[E.length]=encodeURIComponent(J)+"="+encodeURIComponent(I)}if(m.isArray(G)||G.jquery){m.each(G,function(){F(this.name,this.value)})}else{for(var H in G){if(m.isArray(G[H])){m.each(G[H],function(){F(H,this)})}else{F(H,m.isFunction(G[H])?G[H]():G[H])}}}return E.join("&").replace(/%20/g,"+")}});var u={},b,i=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function v(F,G){var E={};m.each(i.concat.apply([],i.slice(0,G)),function(){E[this]=F});return E}m.fn.extend({show:function(H,L){if(H){return this.animate(v("show",3),H,L)}else{for(var E=0,F=this.length;E<F;E++){var I=m.data(this[E],"olddisplay");this[E].style.display=I||"";if(m.css(this[E],"display")==="none"){var G=this[E].tagName,J;if(u[G]){J=u[G]}else{var K=m("<"+G+" />").appendTo("body");J=K.css("display");if(J==="none"){J="block"}K.remove();u[G]=J}m.data(this[E],"olddisplay",J)}}for(var E=0,F=this.length;E<F;E++){this[E].style.display=m.data(this[E],"olddisplay")||""}return this}},hide:function(F,I){if(F){return this.animate(v("hide",3),F,I)}else{for(var H=0,G=this.length;H<G;H++){var E=m.data(this[H],"olddisplay");if(!E&&E!=="none"){m.data(this[H],"olddisplay",m.css(this[H],"display"))}}for(var H=0,G=this.length;H<G;H++){this[H].style.display="none"}return this}},_toggle:m.fn.toggle,toggle:function(E,F){var G=typeof E==="boolean";return m.isFunction(E)&&m.isFunction(F)?this._toggle.apply(this,arguments):E==null||G?this.each(function(){var H=G?E:m(this).is(":hidden");m(this)[H?"show":"hide"]()}):this.animate(v("toggle",3),E,F)},fadeTo:function(F,E,G){return this.animate({opacity:E},F,G)},animate:function(I,G,E,F){var H=m.speed(G,E,F);return this[H.queue===false?"each":"queue"](function(){var M=m.extend({},H),L,J=this.nodeType==1&&m(this).is(":hidden"),K=this;for(L in I){if(I[L]=="hide"&&J||I[L]=="show"&&!J){return M.complete.call(this)}if((L=="height"||L=="width")&&this.style){M.display=m.css(this,"display");M.overflow=this.style.overflow}}if(M.overflow!=null){this.style.overflow="hidden"}M.curAnim=m.extend({},I);m.each(I,function(N,T){var S=new m.fx(K,M,N);if(/toggle|show|hide/.test(T)){S[T=="toggle"?J?"show":"hide":T](I)}else{var R=T.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),P=S.cur(true)||0;if(R){var Q=parseFloat(R[2]),O=R[3]||"px";if(O!="px"){K.style[N]=(Q||1)+O;P=((Q||1)/S.cur(true))*P;K.style[N]=P+O}if(R[1]){Q=((R[1]=="-="?-1:1)*Q)+P}S.custom(P,Q,O)}else{S.custom(P,T,"")}}});return true})},stop:function(E,G){var F=m.timers;if(E){this.queue([])}this.each(function(){for(var H=F.length-1;H>=0;H--){if(F[H].elem==this){if(G){F[H](true)}F.splice(H,1)}}});if(!G){this.dequeue()}return this}});m.each({slideDown:v("show",1),slideUp:v("hide",1),slideToggle:v("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(F,E){m.fn[F]=function(G,H){return this.animate(E,G,H)}});m.extend({speed:function(G,F,E){var H=typeof G==="object"?G:{complete:E||!E&&F||m.isFunction(G)&&G,duration:G,easing:E&&F||F&&!m.isFunction(F)&&F};H.duration=m.fx.off?0:typeof H.duration==="number"?H.duration:m.fx.speeds[H.duration]||m.fx.speeds._default;H.old=H.complete;H.complete=function(){if(H.queue!==false){m(this).dequeue()}if(m.isFunction(H.old)){H.old.call(this)}};return H},easing:{linear:function(G,E,H,F){return H+F*G},swing:function(G,E,H,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+H}},timers:[],fx:function(E,F,G){this.options=F;this.elem=E;this.prop=G;if(!F.orig){F.orig={}}}});m.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(m.fx.step[this.prop]||m.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(m.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(m.curCSS(this.elem,this.prop))||0},custom:function(E,F,G){this.startTime=a();this.start=E;this.end=F;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var H=this;function I(J){return H.step(J)}I.elem=this.elem;if(I()&&m.timers.push(I)&&!b){b=setInterval(function(){var J=m.timers;for(var K=0;K<J.length;K++){if(!J[K]()){J.splice(K--,1)}}if(!J.length){clearInterval(b);b=w}},13)}},show:function(){this.options.orig[this.prop]=m.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());m(this.elem).show()},hide:function(){this.options.orig[this.prop]=m.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(I){var G=a();if(I||G>=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 H in this.options.curAnim){if(this.options.curAnim[H]!==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(m.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){m(this.elem).hide()}if(this.options.hide||this.options.show){for(var J in this.options.curAnim){m.attr(this.elem.style,J,this.options.orig[J])}}this.options.complete.call(this.elem)}return false}else{var F=G-this.startTime;this.state=F/this.options.duration;this.pos=m.easing[this.options.easing||(m.easing.swing?"swing":"linear")](this.state,F,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};m.extend(m.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){m.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){m.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return m.offset.bodyOffset(this[0])}var E=this[0].getBoundingClientRect(),I=this[0].ownerDocument,L=I.body,J=I.documentElement,K=J.clientTop||L.clientTop||0,F=J.clientLeft||L.clientLeft||0,G=E.top+(self.pageYOffset||m.boxModel&&J.scrollTop||L.scrollTop)-K,H=E.left+(self.pageXOffset||m.boxModel&&J.scrollLeft||L.scrollLeft)-F;return{top:G,left:H}}}else{m.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return m.offset.bodyOffset(this[0])}m.offset.initialized||m.offset.initialize();var O=this[0],N=O.offsetParent,F=O,K=O.ownerDocument,E,L=K.documentElement,M=K.body,I=K.defaultView,J=I.getComputedStyle(O,null),G=O.offsetTop,H=O.offsetLeft;while((O=O.parentNode)&&O!==M&&O!==L){E=I.getComputedStyle(O,null);G-=O.scrollTop,H-=O.scrollLeft;if(O===N){G+=O.offsetTop,H+=O.offsetLeft;if(m.offset.doesNotAddBorder&&!(m.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(O.tagName))){G+=parseInt(E.borderTopWidth,10)||0,H+=parseInt(E.borderLeftWidth,10)||0}F=N,N=O.offsetParent}if(m.offset.subtractsBorderForOverflowNotVisible&&E.overflow!=="visible"){G+=parseInt(E.borderTopWidth,10)||0,H+=parseInt(E.borderLeftWidth,10)||0}J=E}if(J.position==="relative"||J.position==="static"){G+=M.offsetTop,H+=M.offsetLeft}if(J.position==="fixed"){G+=Math.max(L.scrollTop,M.scrollTop),H+=Math.max(L.scrollLeft,M.scrollLeft)}return{top:G,left:H}}}m.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),N,I,E,M,J,G,K=L.style.marginTop,H='<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>';J={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(G in J){F.style[G]=J[G]}F.innerHTML=H;L.insertBefore(F,L.firstChild);N=F.firstChild,I=N.firstChild,M=N.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(I.offsetTop!==5);this.doesAddBorderForTableAndCells=(M.offsetTop===5);N.style.overflow="hidden",N.style.position="relative";this.subtractsBorderForOverflowNotVisible=(I.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=K;L.removeChild(F);this.initialized=true},bodyOffset:function(E){m.offset.initialized||m.offset.initialize();var F=E.offsetTop,G=E.offsetLeft;if(m.offset.doesNotIncludeMarginInBodyOffset){F+=parseInt(m.curCSS(E,"marginTop",true),10)||0,G+=parseInt(m.curCSS(E,"marginLeft",true),10)||0}return{top:F,left:G}}};m.fn.extend({position:function(){var H=0,F=0,I;if(this[0]){var J=this.offsetParent(),G=this.offset(),E=/^body|html$/i.test(J[0].tagName)?{top:0,left:0}:J.offset();G.top-=o(this,"marginTop");G.left-=o(this,"marginLeft");E.top+=o(J,"borderTopWidth");E.left+=o(J,"borderLeftWidth");I={top:G.top-E.top,left:G.left-E.left}}return I},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&m.css(E,"position")=="static")){E=E.offsetParent}return m(E)}});m.each(["Left","Top"],function(G,E){var F="scroll"+E;m.fn[F]=function(H){if(!this[0]){return null}return H!==w?this.each(function(){this==s||this==document?s.scrollTo(!G?H:m(s).scrollLeft(),G?H:m(s).scrollTop()):this[F]=H}):this[0]==s||this[0]==document?self[G?"pageYOffset":"pageXOffset"]||m.boxModel&&document.documentElement[F]||document.body[F]:this[0][F]}});m.each(["Height","Width"],function(H,F){var I=H?"Left":"Top",J=H?"Right":"Bottom",E=F.toLowerCase();m.fn["inner"+F]=function(){return this[0]?m.css(this[0],E,false,"padding"):null};m.fn["outer"+F]=function(K){return this[0]?m.css(this[0],E,false,K?"margin":"border"):null};var G=F.toLowerCase();m.fn[G]=function(K){return this[0]==s?document.compatMode=="CSS1Compat"&&document.documentElement["client"+F]||document.body["client"+F]:this[0]==document?Math.max(document.documentElement["client"+F],document.body["scroll"+F],document.documentElement["scroll"+F],document.body["offset"+F],document.documentElement["offset"+F]):K===w?(this.length?m.css(this[0],G):null):this.css(G,typeof K==="string"?K:K+"px")}})})();function addLoadListener(a){$(document).ready(a)}function menuHighlightOn(){return true}function menuHighlightOff(){return true}sfHover=function(){var a=document.getElementById("top-level-nav");if(a!=null){var b=a.getElementsByTagName("LI");for(var c=0;c<b.length;c++){b[c].onmouseover=function(){this.className+=" over"};b[c].onmouseout=function(){this.className=this.className.replace(new RegExp("\\b(\\s)?over\\b"),"")}}}};function generateTOC(){var m,i;var f=document.getElementsByTagName("html")[0].getAttribute("Lang");if(f=="undefined"){f="en"}switch(f){case"cs":m="Horní strana";i="Obsah strany";break;case"de":m="Nach oben";i="Seiteninhalt";break;case"es":m="Arriba";i="Contenido de la página";break;case"fr":m="Haut de page";i="Sur cette page";break;case"it":m="All'inizio";i="Contenuto della pagina";break;case"jp":m="トップへ";i="ページコンテンツ";break;case"ko":m="맨 위";i="페이지 내용";break;case"nl":m="Naar boven";i="Op deze pagina";break;case"pl":m="Do góry";i="Zawartość strony";break;case"pt":m="Topo da página";i="Conteúdo da página";break;case"ru":m="К началу";i="Содержание страницы";break;case"sl":m="Na vrh";i="Vsebina strani";break;case"sv":m="Upp";i="Sidans innehåll";break;case"tr":m="En başa";i="Sayfa içeriği";break;case"tw":m="頂部";i="頁面內容";break;case"zh":m="顶部";i="网页内容";break;default:m="Top";i="Page content";break}var d=document.getElementById("TOC");if(null==d){return}var c=$("#centralContent h2,#centralContent h3,#centralContent h4").get();var h,n,j;if(c.length<3){$("#post-intro-nav-TOC").hide();return}if(c.length>10){c=$("#centralContent h2").get()}d.className="TOC";tocList=document.createElement("ul");for(var a=0;a<c.length;a++){var p=c[a];if(p.parentNode.id!="next_steps"){j=p.id||uniqueId("tocTarget"+a);h=document.createElement("li");if(p.className=="medialist-title"){h.className="tocEntry"+p.nodeName.toLowerCase()+" tocEntry-media"}else{h.className="tocEntry"+p.nodeName.toLowerCase()}var n=document.createElement("a");var o=/<\/?[^>]*?>/gim;var e=p.innerHTML.replace(o,"");n.innerHTML=e;n.href='javascript:goToContent("'+j+'");';h.appendChild(n);if(n.innerHTML.replace(/\&nbsp;/,"").replace(/\&#160;/,"").replace(/\s/,"").length>0){tocList.appendChild(h);p.id=j;var k=document.createElement("a");k.href="#pageTop";k.className="top";var l=document.createTextNode(m);k.appendChild(l);var g=document.createElement("div");g.className="tocHeader";g.appendChild(k);var b=p.cloneNode(true);g.appendChild(b);p.parentNode.replaceChild(g,p)}}}d.appendChild(tocList)}function uniqueId(a){var b=a;while(document.getElementById(b)){b+="_"}return b}function goToContent(a){tocMenuOver=false;$("#post-intro-nav-TOC-content").hide();window.location="#"+a}function goToDownloadContent(a){downloadMenuOver=false;$("#post-intro-nav-download-content").hide();window.location="#"+a}function highlightAlternateRows(){var h=$("table.contentTable");for(var a=0;a<h.length;a++){var g=h[a].getElementsByTagName("TBODY")[0];var d=g.childNodes;var k=new Array();for(var c=0;c<d.length;c++){var b=false;if(d[c].nodeName=="TR"){var e=d[c].childNodes;for(var f=1;f<e.length;f++){if(e[f].nodeName=="TH"){b=true}}if(b==false){k[k.length]=d[c]}}}for(var l=0;l<k.length;l++){if(l%2!=0){k[l].className+=" altRow"}}}}var Search={langcode:"en",sb:{},init:function(){Search.sb=$("#terms");if(location.pathname!=null&&location.pathname.length>0){var a=location.pathname.match(/\/([a-zA-Z\-]{2,5})\//i);if((null!=a)&&(a[1])){Search.langcode=a[1]}}Search.sb.keydown(Search.Keypress)},submit:function(){try{if(Search.sb.val().length>0){var c="all";var b=$("input[name=search-div]:radio");for(var d=0;d<b.length;d++){if(b[d].checked){c=b[d].value;break}}var a="http://resources.renishaw.com/"+encodeURI(Search.langcode)+"/search/documents/"+encodeURI(Search.sb.val());if(c!="all"){a+="?options=less&div="+encodeURI(c)}location.href=a}}catch(f){alert("No search terms entered")}return false},Keypress:function(a){if(a.keyCode=="13"){if(a.preventDefault){a.preventDefault()}if(a.stopPropagation){a.stopPropagation()}setTimeout(Search.submit,250);a.cancelBubble=true;a.returnValue=false}}};function searchSite(d,f){var e=document.getElementById(d);var c="all";if(d=="terms-footer"){var b=$("input[name=search-div]:radio");for(var g=0;g<b.length;g++){if(b[g].checked){c=b[g].value;break}}}if(d=="search-terms-footer"){var b=$("input[name=search-type]:radio");for(var g=0;g<b.length;g++){if(b[g].checked){c=b[g].value;break}}}if((e!=null)&&(e!="undefined")&&(e.value!="")){var a="http://resources.renishaw.com/"+encodeURI(f)+"/search/"+encodeURI(e.value);if(c!="all"&&d=="terms-footer"){a+="?div="+encodeURI(c)}else{if(c!="all"&&d=="search-terms-footer"){a+="?tab="+encodeURI(c)}}if((location.hostname=="renishawdiagnostics.com")||(location.hostname=="www.renishawdiagnostics.com")){a="http://www.renishawdiagnostics.com/"+encodeURI(f)+"/search--10497?terms="+encodeURI(e.value)}location.href=a}else{alert("No search terms entered.")}return false}$("document").ready(Search.init);function FaqCollapsibleInit(){$(".FAQ-collapsible-title").each(function(){$(this).click(FaqToggleText)})}function FaqToggleText(){$(this).parent().toggleClass("expanded")}$(document).ready(FaqCollapsibleInit);function hideTableRows(c,b,a){switch(a){case true:$("#table_"+c+"_row_"+b).hide();$("#table_"+c+"_row_"+(b-1)).show();break;case false:$("#table_"+c+"_row_"+(b-1)).hide();$("#table_"+c+"_row_"+b).show();break}}function hideTableColumns(e,b,c,a){switch(a){case true:for(var d=0;d<b;d=d+2){$("#table_"+e+"_row_"+d+"_column_"+c).hide();$("#table_"+e+"_row_"+d+"_column_"+(parseInt(c)+1)).show()}break;case false:for(var d=0;d<b;d=d+2){$("#table_"+e+"_row_"+d+"_column_"+(parseInt(c)+1)).hide();$("#table_"+e+"_row_"+d+"_column_"+c).show()}break}}function addComparisionRows(){var n=$("table.interactiveRows");var h=false;for(var a=0;a<n.length;a++){var r=n[a].getElementsByTagName("TR");var f=(r.length*2);var e="";for(var b=0;b<=r.length;b=b+2){if(b==0){var q=r[b].insertCell(0);q.innerHTML="<br />"}else{r[b-1].id="table_"+a+"_row_"+b;var q=r[b-1].insertCell(0);q.innerHTML='<a onclick=hideTableRows("'+a+'","'+b+'",true);><img src="http://www.renishaw.com/media/shared/icons/minus.gif" /></a>';var p=n[a].insertRow(b-1);p.insertCell(0);p.insertCell(1);var m=p.cells[0];m.innerHTML='<a onclick=hideTableRows("'+a+'","'+b+'",false);><img src="http://www.renishaw.com/media/shared/icons/plus.gif" /></a>';var g=p.cells[1];g.colSpan=r[b].cells.length-1;var o=r[b].cells[1];if(r[b].cells[1].childNodes[0].data=="\n"){g.innerHTML=r[b].cells[1].childNodes[1].innerHTML}else{g.innerHTML=r[b].cells[1].childNodes[0].innerHTML}p.id="table_"+a+"_row_"+(b-1);$("#"+p.id).hide()}}}for(var c=0;c<n.length;c++){var r=n[c].getElementsByTagName("TR");for(var d=0;d<r.length;d+=2){hideTableRows(c,d,true)}}}$(document).ready(addComparisionRows);function addComparisionTable(){var e=$("table.interactiveTable");var f=false;for(var m=0;m<e.length;m++){var r=e[m].getElementsByTagName("TR");var h=(r.length*2);var x="";for(var g=0;g<=r.length;g=g+2){if(g==0){var s=r[g].insertCell(0);s.innerHTML="<br />"}else{r[g-1].id="table_"+m+"_row_"+g;var s=r[g-1].insertCell(0);s.innerHTML='<a onclick=hideTableRows("'+m+'","'+g+'",true);><img src="http://www.renishaw.com/media/shared/icons/minus.gif" /></a>';var u=e[m].insertRow(g-1);u.insertCell(0);u.insertCell(1);var q=u.cells[0];q.innerHTML='<a onclick=hideTableRows("'+m+'","'+g+'",false);><img src="http://www.renishaw.com/media/shared/icons/plus.gif" /></a>';var w=u.cells[1];w.colSpan=r[g].cells.length-1;var p=r[g].cells[1];if(r[g].cells[1].childNodes[0].data=="\n"){w.innerHTML=r[g].cells[1].childNodes[1].innerHTML}else{w.innerHTML=r[g].cells[1].childNodes[0].innerHTML}u.id="table_"+m+"_row_"+(g-1);$("#"+u.id).hide()}var t=r[g].childNodes;var o=0;var d=2;var l=0;var c=t.length;if(f){c=t.length}for(var n=1;n<c;n=n+2){if(r[g].childNodes[0].data!="\n"){c++;if(g==0){var b="";b=r[g].childNodes[n].innerHTML;r[g].childNodes[n].id="table_"+m+"_row_"+g+"_column_"+n;r[g].childNodes[n].innerHTML='<a onclick=hideTableColumns("'+m+'","'+h+'","'+n+'",true);><img src="http://www.renishaw.com/media/shared/icons/minus.gif" /></a>'+r[g].childNodes[n].innerHTML;var s=r[g].insertCell(n+1);s.id="table_"+m+"_row_"+g+"_column_"+(n+1);s.innerHTML='<a onclick=hideTableColumns("'+m+'","'+h+'","'+n+'",false); title="'+b+'"><img src="http://www.renishaw.com/media/shared/icons/plus.gif" /></a>';x+=s.id+","}else{r[g].childNodes[n].id="table_"+m+"_row_"+g+"_column_"+n;var s=r[g].insertCell(n+1);s.id="table_"+m+"_row_"+g+"_column_"+(n+1);s.innerHTML="<br />";x+=s.id+","}}else{f=true;o+=d;if(g==0){var b="";b=r[g].childNodes[o].innerHTML;r[g].childNodes[o].id="table_"+m+"_row_"+g+"_column_"+n;r[g].childNodes[o].innerHTML='<a onclick=hideTableColumns("'+m+'","'+h+'","'+n+'",true);><img src="http://www.renishaw.com/media/shared/icons/minus.gif" /></a>'+r[g].childNodes[o].innerHTML;if(n!=1){o-=l}var s=r[g].insertCell(o);s.id="table_"+m+"_row_"+g+"_column_"+(o);s.innerHTML='<a onclick=hideTableColumns("'+m+'","'+h+'","'+n+'",false); title="'+b+'"><img src="http://www.renishaw.com/media/shared/icons/plus.gif" /></a>';x+=s.id+","}else{r[g].childNodes[o].id="table_"+m+"_row_"+g+"_column_"+n;if(n!=1){o-=l}var s=r[g].insertCell(n+1);s.id="table_"+m+"_row_"+g+"_column_"+(n+1);s.innerHTML="<br />";x+=s.id+","}d++;l++}}}var v=x.split(",");for(var a=0;a<v.length-1;a++){$("#"+v[a]).hide()}}}$(document).ready(addComparisionTable);function ManualInlineLinks(){if($("#ElementHTML25760 img").length==1){$("#ElementHTML25760 img").bind("click",function(){var a=$("#ElementHTML25990").clone();$(".shadowbox-inline",a).removeClass("shadowbox-inline");Shadowbox.open({content:a.html(),player:"html",title:"Typical FASTRACK&trade; linear encoder system hysteresis graph",width:1000,height:600})})}}$(document).ready(ManualInlineLinks);function resoluteImageMapInit(){if($("body#page10940").length==1){try{var a='<map id="ResoluteProdTourMap" name="ResoluteProdTourMap"><area shape="circle" coords="140,320,15" href="#ElementHTML26203" alt="Area 1"><area shape="circle" coords="208,184,15" href="#ElementHTML26204" alt="Area 2"><area shape="circle" coords="260,120,15" href="#ElementHTML26205" alt="Area 3"><area shape="circle" coords="396,70,15" href="#ElementHTML26206" alt="Area 4"><area shape="circle" coords="350,110,15" href="#ElementHTML26207" alt="Area 5"><area shape="circle" coords="278,100,15" href="#ElementHTML26208" alt="Area 6"><area shape="circle" coords="294,220,15" href="#ElementHTML26209" alt="Area 7"><area shape="circle" coords="140,355,15" href="#ElementHTML26210" alt="Area 8"><area shape="circle" coords="225,146,15" href="#ElementHTML26211" alt="Area 9"><area shape="circle" coords="208,257,15" href="#ElementHTML26212" alt="Area 10"></map>';$("#ElementHTML26025 .htmlInner img").attr("usemap","#ResoluteProdTourMap");if($.browser.msie){$("#ElementHTML26025 .htmlInner img").clone().insertAfter("#ElementHTML26025 .htmlInner img");$("#ElementHTML26025 .htmlInner img:first").remove()}Shadowbox.setup($("#ResoluteProdTourMap area"))}catch(b){}}}$(document).ready(resoluteImageMapInit);$(document).ready(function(){if($("body#page11455").length==1||$("body#page10249").length==1){var a=$("#pageTitle").html();a=a.replace("3i incise","<em>3i incise</em>");$("#pageTitle").html(a)}});function UpgradePPPTimelineToImageMap(){$("#ElementHTML32108").html('<div class="htmlInner"><p><img width="500" height="279" src="/media/img/en/1d23a277f0e84bc28e158f38ba693fca.jpg" alt="Manufacturing process timeline" style="margin: 0px 0px 2px; float: left;" usemap="#ppp-timeline"><map name="ppp-timeline"><area shape="rect" coords="0,0,125,279" href="http://derby:8073/en/process-foundation--14157" alt="Preventative" /><area shape="rect" coords="125,0,250,279" href="http://derby:8073/en/process-setting--14158" alt="Predictive" /><area shape="rect"coords="250,0,375,279" href="http://derby:8073/en/in-process-control--14159" alt="Active" /><area shape="rect" coords="375,0,500,279"href="http://derby:8073/en/post-process-monitoring--14160" alt="Informative" /></map></p></div>')}var tocMenuOver=false;function showTOC(){if(tocMenuOver){$("#post-intro-nav-TOC-content").slideDown()}}function hideTOC(){if(!tocMenuOver){$("#post-intro-nav-TOC-content").slideUp()}}$(document).ready(function(){$("#post-intro-nav-TOC-content, #post-intro-nav-TOC").mouseenter(function(){tocMenuOver=true;setTimeout("showTOC();",250)});$("#post-intro-nav-TOC-content, #post-intro-nav-TOC").mouseleave(function(){tocMenuOver=false;setTimeout("hideTOC();",250)})});function getDownLoadItems(){if($("#post-intro-nav-downloads")[0]!=undefined){var h=$("div[id^='ElementMediaList']");var g=0;var e=document.createElement("ul");if(h.length==1){$("#post-intro-nav-downloads")[0].href='javascript:goToDownloadContent("'+h[0].id+'");'}else{if(h.length>0){for(var a=0;a<h.length;a++){if(a==0){$("#post-intro-nav-downloads")[0].href='javascript:goToDownloadContent("'+h[a].id+'");'}var d=$(h[a]).find("h2")[0];if(d!=undefined){var b=document.createElement("li");var c=document.createElement("a");c.href='javascript:goToDownloadContent("'+h[a].id+'");';c.innerHTML=d.innerHTML;b.appendChild(c);e.appendChild(b);g++}}if(g>0){var f=$("#downloadDiv");f[0].appendChild(e)}else{if($("#post-intro-downloads-wrapper")!=undefined){$("#post-intro-downloads-wrapper").hide()}}setDownloadMouseEvents()}else{if($("#post-intro-downloads-wrapper")!=undefined){$("#post-intro-downloads-wrapper").hide()}}}}}$(document).ready(getDownLoadItems);var downloadMenuOver=false;function showDownload(){if(downloadMenuOver){$("#post-intro-nav-download-content").slideDown()}}function hideDownload(){if(!downloadMenuOver){$("#post-intro-nav-download-content").slideUp()}}function setDownloadMouseEvents(){$("#post-intro-nav-download-content, #post-intro-downloads-wrapper").mouseenter(function(){downloadMenuOver=true;setTimeout("showDownload();",250)});$("#post-intro-nav-download-content, #post-intro-downloads-wrapper").mouseleave(function(){downloadMenuOver=false;setTimeout("hideDownload();",250)})};var frame=$("#banner-content");var title=$("#banner-content-strapline");var text=$("#banner-content-text");var linkText=$("#banner-content-link");var displayFor=10;var fadeTime=1;var bannersArrayIn;function showBanner(b){var b="banner-1";var c="banner-button-1";var a=2000;$("#"+b).show();$("#"+b).fadeTo(a,1);$("#"+b).addClass("active");$("#"+c).addClass("active")}function ShowBannerItem(e){var c="banner-"+e;var b="banner-button-"+e;var d=$("#activeBanner").val();if(d!=e){$("#activeBanner").val(e);var a=2000;$("#"+c).css("z-index","3");$("#banner-"+d).removeClass("active").css("z-index","2").fadeTo(a,0);$("#"+c).show();$("#"+c).fadeTo(a,1);$("#"+c).addClass("active");$("#banner-button-"+d).removeClass("active");$("#"+b).addClass("active")}banners.IsStopped=true}function ShowBannerPrev(){var b=$("#activeBanner").val();var a=parseInt(getBannerPosition(b));bannerToShow=a-1;if(bannerToShow<0){bannerToShow=bannersArrayIn.length-1}ShowBannerItem(bannersArrayIn[bannerToShow])}function ShowBannerNext(){var b=$("#activeBanner").val();var a=parseInt(getBannerPosition(b));bannerToShow=a+1;if(bannerToShow>=bannersArrayIn.length){bannerToShow=0}ShowBannerItem(bannersArrayIn[bannerToShow])}function getBannerPosition(b){var c=0;for(var a=0;a<bannersArrayIn.length;a++){if(bannersArrayIn[a]==b){c=a;break}}return c}function BannerRotater(d,c,a){bannersArrayIn=a;this.Name=d;this.IsStopped=false;this.IsRandomStart=true;this.RotateBanners=b;if(a.length>1){for(i=0;i<a.length;i++){$("#"+a[i]).fadeTo(0,0)}}else{}function b(e){if(!this.IsStopped){var g=6000;var f=1000;nextIndex=0;if((e+1)<a.length){nextIndex=e+1}bannerIdOld=a[e];bannerIdNew=a[nextIndex];$("#banner-"+bannerIdNew).css("z-index","3");$("#banner-"+bannerIdOld).css("z-index","2");$("#banner-"+bannerIdNew).fadeTo(f,1).addClass("active");$("#banner-"+bannerIdOld).removeClass("active");setTimeout('$("#banner-'+bannerIdOld+'").fadeTo('+(f/4)+", 0);",f);setTimeout(this.Name+".RotateBanners("+nextIndex+")",g);$("#banner-button-"+bannerIdOld).removeClass("active");$("#banner-button-"+bannerIdNew).addClass("active");$("#activeBanner").val(bannerIdNew)}}}(function(a){a.homeLineChooserContent=function(b,e){var d=a(b).parents("#home-line-chooser");var f=a(b);f.mouseenter(function(){if(!f.hasClass("inactive")){return false}f.removeClass("inactive");d.find(".line-top-level.inactive h2").addClass("hidden");d.find(".line-top-level.inactive").stop(true).animate({width:e.minWidth+"px"},e.speed,"linear");f.children(".line-top-level-content").hide();f.stop(true).animate({width:e.maxWidth+"px"},e.speed,"linear",function(){a(this).children(".line-top-level-content").slideDown(e.speed)})});f.mouseleave(function(){f.addClass("inactive");d.find(".line-top-level").animate({width:e.defaultWidth+"px"},e.speed,"linear");d.find(".line-top-level.inactive h2").removeClass("hidden")})};a.homeLineChooser=function(b,e){var d=a(b);d.find(".line-top-level").addClass("inactive");d.mouseenter(function(){d.find(".line-top-level").filter(function(c){return a(this).hasClass(".inactive")}).stop(true).animate({width:e.minWidth+"px"},e.speed,"linear")});d.mouseleave(function(){d.find(".line-top-level").stop(true);d.find(".line-top-level").addClass("inactive").animate({width:e.defaultWidth+"px"},e.speed,"linear")})};getHLCOptions=function(){var e={};if(arguments.length>0){a.extend(e,arguments[0])}e.speed=e.speed||200;e.minWidth=e.minWidth||90;var d=a("#home-line-chooser").width();var f=a("#home-line-chooser>div.line-top-level").length;var c=Math.floor(d/f)-1;var b=d-f-((f-1)*e.minWidth);e.maxWidth=e.maxWidth||b;e.defaultWidth=e.defaultWidth||c;return e};a.fn.homeLineChooserContent=function(b){b=getHLCOptions(b);this.each(function(){a(this).css("width",b.defaultWidth+"px");a.homeLineChooserContent(this,b)})};a.fn.homeLineChooser=function(b){b=getHLCOptions(b);this.each(function(){a.homeLineChooser(this,b)})}})($);$(document).ready(function(){$("#home-line-chooser .line-top-level").homeLineChooserContent();$("#home-line-chooser").homeLineChooser()});var cnt=1;function AddHomePageNews(){if(((location.hostname=="renishaw.com")||(location.hostname=="stoke")||(location.hostname=="www.renishaw.com"))&&cnt==1){$("#home-news-feed").after('<ul class="medialist"><li class="medialist-row media-file pdf"><a class="mediaItem" href="/media/shared/Interim_Report_2012.pdf">Interim report 2012</a></li></ul>')}cnt++}$(document).ready(AddHomePageNews);function AddRegulatoryPageUpdate(){$("#ElementMediaList12630 ul.medialist").prepend('<li class="medialist-row media-file pdf"><span class="medialist-filesize">[1.25MB]</span><span class="media-list-item-title"><a href="/media/shared/Interim_Report_2012.pdf">Interim Report 2012</a></span></li>');$("#ElementMediaList12631 ul.medialist").prepend('<li class="medialist-row media-file pdf"><span class="medialist-filesize">[954KB]</span><span class="media-list-item-title"><a href="/media/shared/Presentation_on_unaudited_2012_interim_results.pdf">Presentation on unaudited 2012 interim results</a></span></li>')}$(document).ready(AddRegulatoryPageUpdate);(function(window,undefined){var S={version:"3.0.3"};var ua=navigator.userAgent.toLowerCase();if(ua.indexOf("windows")>-1||ua.indexOf("win32")>-1){S.isWindows=true}else{if(ua.indexOf("macintosh")>-1||ua.indexOf("mac os x")>-1){S.isMac=true}else{if(ua.indexOf("linux")>-1){S.isLinux=true}}}S.isIE=ua.indexOf("msie")>-1;S.isIE6=ua.indexOf("msie 6")>-1;S.isIE7=ua.indexOf("msie 7")>-1;S.isGecko=ua.indexOf("gecko")>-1&&ua.indexOf("safari")==-1;S.isWebKit=ua.indexOf("applewebkit/")>-1;var inlineId=/#(.+)$/,galleryName=/^(light|shadow)box\[(.*?)\]/i,inlineParam=/\s*([a-z_]*?)\s*=\s*(.+)\s*/,fileExtension=/[0-9a-z]+$/i,scriptPath=/(.+\/)shadowbox\.js/i;var open=false,initialized=false,lastOptions={},slideDelay=0,slideStart,slideTimer;S.current=-1;S.dimensions=null;S.ease=function(state){return 1+Math.pow(state-1,3)};S.errorInfo={fla:{name:"Flash",url:"http://www.adobe.com/products/flashplayer/"},qt:{name:"QuickTime",url:"http://www.apple.com/quicktime/download/"},wmp:{name:"Windows Media Player",url:"http://www.microsoft.com/windows/windowsmedia/"},f4m:{name:"Flip4Mac",url:"http://www.flip4mac.com/wmv_download.htm"}};S.gallery=[];S.onReady=noop;S.path=null;S.player=null;S.playerId="sb-player";S.options={animate:true,animateFade:true,autoplayMovies:true,continuous:false,enableKeys:true,flashParams:{bgcolor:"#000000",allowfullscreen:true},flashVars:{},flashVersion:"9.0.115",handleOversize:"resize",handleUnsupported:"link",onChange:noop,onClose:noop,onFinish:noop,onOpen:noop,showMovieControls:true,skipSetup:false,slideshowDelay:0,viewportPadding:20};S.getCurrent=function(){return S.current>-1?S.gallery[S.current]:null};S.hasNext=function(){return S.gallery.length>1&&(S.current!=S.gallery.length-1||S.options.continuous)};S.isOpen=function(){return open};S.isPaused=function(){return slideTimer=="pause"};S.applyOptions=function(options){lastOptions=apply({},S.options);apply(S.options,options)};S.revertOptions=function(){apply(S.options,lastOptions)};S.init=function(options,callback){if(initialized){return}initialized=true;if(S.skin.options){apply(S.options,S.skin.options)}if(options){apply(S.options,options)}if(!S.path){var path,scripts=document.getElementsByTagName("script");for(var i=0,len=scripts.length;i<len;++i){path=scriptPath.exec(scripts[i].src);if(path){S.path=path[1];break}}}if(callback){S.onReady=callback}bindLoad()};S.open=function(obj){if(open){return}var gc=S.makeGallery(obj);S.gallery=gc[0];S.current=gc[1];obj=S.getCurrent();if(obj==null){return}S.applyOptions(obj.options||{});filterGallery();if(S.gallery.length){obj=S.getCurrent();if(S.options.onOpen(obj)===false){return}open=true;S.skin.onOpen(obj,load)}};S.close=function(){if(!open){return}open=false;if(S.player){S.player.remove();S.player=null}if(typeof slideTimer=="number"){clearTimeout(slideTimer);slideTimer=null}slideDelay=0;listenKeys(false);S.options.onClose(S.getCurrent());S.skin.onClose();S.revertOptions()};S.play=function(){if(!S.hasNext()){return}if(!slideDelay){slideDelay=S.options.slideshowDelay*1000}if(slideDelay){slideStart=now();slideTimer=setTimeout(function(){slideDelay=slideStart=0;S.next()},slideDelay);if(S.skin.onPlay){S.skin.onPlay()}}};S.pause=function(){if(typeof slideTimer!="number"){return}slideDelay=Math.max(0,slideDelay-(now()-slideStart));if(slideDelay){clearTimeout(slideTimer);slideTimer="pause";if(S.skin.onPause){S.skin.onPause()}}};S.change=function(index){if(!(index in S.gallery)){if(S.options.continuous){index=(index<0?S.gallery.length+index:0);if(!(index in S.gallery)){return}}else{return}}S.current=index;if(typeof slideTimer=="number"){clearTimeout(slideTimer);slideTimer=null;slideDelay=slideStart=0}S.options.onChange(S.getCurrent());load(true)};S.next=function(){S.change(S.current+1)};S.previous=function(){S.change(S.current-1)};S.setDimensions=function(height,width,maxHeight,maxWidth,topBottom,leftRight,padding,preserveAspect){var originalHeight=height,originalWidth=width;var extraHeight=2*padding+topBottom;if(height+extraHeight>maxHeight){height=maxHeight-extraHeight}var extraWidth=2*padding+leftRight;if(width+extraWidth>maxWidth){width=maxWidth-extraWidth}var changeHeight=(originalHeight-height)/originalHeight,changeWidth=(originalWidth-width)/originalWidth,oversized=(changeHeight>0||changeWidth>0);if(preserveAspect&&oversized){if(changeHeight>changeWidth){width=Math.round((originalWidth/originalHeight)*height)}else{if(changeWidth>changeHeight){height=Math.round((originalHeight/originalWidth)*width)}}}S.dimensions={height:height+topBottom,width:width+leftRight,innerHeight:height,innerWidth:width,top:Math.floor((maxHeight-(height+extraHeight))/2+padding),left:Math.floor((maxWidth-(width+extraWidth))/2+padding),oversized:oversized};return S.dimensions};S.makeGallery=function(obj){var gallery=[],current=-1;if(typeof obj=="string"){obj=[obj]}if(typeof obj.length=="number"){each(obj,function(i,o){if(o.content){gallery[i]=o}else{gallery[i]={content:o}}});current=0}else{if(obj.tagName){var cacheObj=S.getCache(obj);obj=cacheObj?cacheObj:S.makeObject(obj)}if(obj.gallery){gallery=[];var o;for(var key in S.cache){o=S.cache[key];if(o.gallery&&o.gallery==obj.gallery){if(current==-1&&o.content==obj.content){current=gallery.length}gallery.push(o)}}if(current==-1){gallery.unshift(obj);current=0}}else{gallery=[obj];current=0}}each(gallery,function(i,o){gallery[i]=apply({},o)});return[gallery,current]};S.makeObject=function(link,options){var obj={content:link.href,title:link.getAttribute("title")||"",link:link};if(options){options=apply({},options);each(["player","title","height","width","gallery"],function(i,o){if(typeof options[o]!="undefined"){obj[o]=options[o];delete options[o]}});obj.options=options}else{obj.options={}}if(!obj.player){obj.player=S.getPlayer(obj.content)}var rel=link.getAttribute("rel");if(rel){var match=rel.match(galleryName);if(match){obj.gallery=escape(match[2])}each(rel.split(";"),function(i,p){match=p.match(inlineParam);if(match){obj[match[1]]=match[2]}})}return obj};S.getPlayer=function(content){if(content.indexOf("#")>-1&&content.indexOf(document.location.href)==0){return"inline"}var q=content.indexOf("?");if(q>-1){content=content.substring(0,q)}var ext,m=content.match(fileExtension);if(m){ext=m[0].toLowerCase()}if(ext){if(S.img&&S.img.ext.indexOf(ext)>-1){return"img"}if(S.swf&&S.swf.ext.indexOf(ext)>-1){return"swf"}if(S.flv&&S.flv.ext.indexOf(ext)>-1){return"flv"}if(S.qt&&S.qt.ext.indexOf(ext)>-1){if(S.wmp&&S.wmp.ext.indexOf(ext)>-1){return"qtwmp"}else{return"qt"}}if(S.wmp&&S.wmp.ext.indexOf(ext)>-1){return"wmp"}}return"iframe"};function filterGallery(){var err=S.errorInfo,plugins=S.plugins,obj,remove,needed,m,format,replace,inlineEl,flashVersion;for(var i=0;i<S.gallery.length;++i){obj=S.gallery[i];remove=false;needed=null;switch(obj.player){case"flv":case"swf":if(!plugins.fla){needed="fla"}break;case"qt":if(!plugins.qt){needed="qt"}break;case"wmp":if(S.isMac){if(plugins.qt&&plugins.f4m){obj.player="qt"}else{needed="qtf4m"}}else{if(!plugins.wmp){needed="wmp"}}break;case"qtwmp":if(plugins.qt){obj.player="qt"}else{if(plugins.wmp){obj.player="wmp"}else{needed="qtwmp"}}break}if(needed){if(S.options.handleUnsupported=="link"){switch(needed){case"qtf4m":format="shared";replace=[err.qt.url,err.qt.name,err.f4m.url,err.f4m.name];break;case"qtwmp":format="either";replace=[err.qt.url,err.qt.name,err.wmp.url,err.wmp.name];break;default:format="single";replace=[err[needed].url,err[needed].name]}obj.player="html";obj.content='<div class="sb-message">'+sprintf(S.lang.errors[format],replace)+"</div>"}else{remove=true}}else{if(obj.player=="inline"){m=inlineId.exec(obj.content);if(m){inlineEl=get(m[1]);if(inlineEl){obj.content=inlineEl.innerHTML}else{remove=true}}else{remove=true}}else{if(obj.player=="swf"||obj.player=="flv"){flashVersion=(obj.options&&obj.options.flashVersion)||S.options.flashVersion;if(S.flash&&!S.flash.hasFlashPlayerVersion(flashVersion)){obj.width=310;obj.height=177}}}}if(remove){S.gallery.splice(i,1);if(i<S.current){--S.current}else{if(i==S.current){S.current=i>0?i-1:i}}--i}}}function listenKeys(on){if(!S.options.enableKeys){return}(on?addEvent:removeEvent)(document,"keydown",handleKey)}function handleKey(e){if(e.metaKey||e.shiftKey||e.altKey||e.ctrlKey){return}var code=keyCode(e),handler;switch(code){case 81:case 88:case 27:handler=S.close;break;case 37:handler=S.previous;break;case 39:handler=S.next;break;case 32:handler=typeof slideTimer=="number"?S.pause:S.play;break}if(handler){preventDefault(e);handler()}}function load(changing){listenKeys(false);var obj=S.getCurrent();var player=(obj.player=="inline"?"html":obj.player);if(typeof S[player]!="function"){throw"unknown player "+player}if(changing){S.player.remove();S.revertOptions();S.applyOptions(obj.options||{})}S.player=new S[player](obj,S.playerId);if(S.gallery.length>1){var next=S.gallery[S.current+1]||S.gallery[0];if(next.player=="img"){var a=new Image();a.src=next.content}var prev=S.gallery[S.current-1]||S.gallery[S.gallery.length-1];if(prev.player=="img"){var b=new Image();b.src=prev.content}}S.skin.onLoad(changing,waitReady)}function waitReady(){if(!open){return}if(typeof S.player.ready!="undefined"){var timer=setInterval(function(){if(open){if(S.player.ready){clearInterval(timer);timer=null;S.skin.onReady(show)}}else{clearInterval(timer);timer=null}},10)}else{S.skin.onReady(show)}}function show(){if(!open){return}S.player.append(S.skin.body,S.dimensions);S.skin.onShow(finish)}function finish(){if(!open){return}if(S.player.onLoad){S.player.onLoad()}S.options.onFinish(S.getCurrent());if(!S.isPaused()){S.play()}listenKeys(true)}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(obj,from){var len=this.length>>>0;from=from||0;if(from<0){from+=len}for(;from<len;++from){if(from in this&&this[from]===obj){return from}}return -1}}function now(){return(new Date).getTime()}function apply(original,extension){for(var property in extension){original[property]=extension[property]}return original}function each(obj,callback){var i=0,len=obj.length;for(var value=obj[0];i<len&&callback.call(value,i,value)!==false;value=obj[++i]){}}function sprintf(str,replace){return str.replace(/\{(\w+?)\}/g,function(match,i){return replace[i]})}function noop(){}function get(id){return document.getElementById(id)}function remove(el){el.parentNode.removeChild(el)}var supportsOpacity=true,supportsFixed=true;function checkSupport(){var body=document.body,div=document.createElement("div");supportsOpacity=typeof div.style.opacity==="string";div.style.position="fixed";div.style.margin=0;div.style.top="20px";body.appendChild(div,body.firstChild);supportsFixed=div.offsetTop==20;body.removeChild(div)}S.getStyle=(function(){var opacity=/opacity=([^)]*)/,getComputedStyle=document.defaultView&&document.defaultView.getComputedStyle;return function(el,style){var ret;if(!supportsOpacity&&style=="opacity"&&el.currentStyle){ret=opacity.test(el.currentStyle.filter||"")?(parseFloat(RegExp.$1)/100)+"":"";return ret===""?"1":ret}if(getComputedStyle){var computedStyle=getComputedStyle(el,null);if(computedStyle){ret=computedStyle[style]}if(style=="opacity"&&ret==""){ret="1"}}else{ret=el.currentStyle[style]}return ret}})();S.appendHTML=function(el,html){if(el.insertAdjacentHTML){el.insertAdjacentHTML("BeforeEnd",html)}else{if(el.lastChild){var range=el.ownerDocument.createRange();range.setStartAfter(el.lastChild);var frag=range.createContextualFragment(html);el.appendChild(frag)}else{el.innerHTML=html}}};S.getWindowSize=function(dimension){if(document.compatMode==="CSS1Compat"){return document.documentElement["client"+dimension]}return document.body["client"+dimension]};S.setOpacity=function(el,opacity){var style=el.style;if(supportsOpacity){style.opacity=(opacity==1?"":opacity)}else{style.zoom=1;if(opacity==1){if(typeof style.filter=="string"&&(/alpha/i).test(style.filter)){style.filter=style.filter.replace(/\s*[\w\.]*alpha\([^\)]*\);?/gi,"")}}else{style.filter=(style.filter||"").replace(/\s*[\w\.]*alpha\([^\)]*\)/gi,"")+" alpha(opacity="+(opacity*100)+")"}}};S.clearOpacity=function(el){S.setOpacity(el,1)};function getTarget(e){return e.target}function getPageXY(e){return[e.pageX,e.pageY]}function preventDefault(e){e.preventDefault()}function keyCode(e){return e.keyCode}function addEvent(el,type,handler){jQuery(el).bind(type,handler)}function removeEvent(el,type,handler){jQuery(el).unbind(type,handler)}jQuery.fn.shadowbox=function(options){return this.each(function(){var el=jQuery(this);var opts=jQuery.extend({},options||{},jQuery.metadata?el.metadata():jQuery.meta?el.data():{});var cls=this.className||"";opts.width=parseInt((cls.match(/w:(\d+)/)||[])[1])||opts.width;opts.height=parseInt((cls.match(/h:(\d+)/)||[])[1])||opts.height;Shadowbox.setup(el,opts)})};var loaded=false,DOMContentLoaded;if(document.addEventListener){DOMContentLoaded=function(){document.removeEventListener("DOMContentLoaded",DOMContentLoaded,false);S.load()}}else{if(document.attachEvent){DOMContentLoaded=function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",DOMContentLoaded);S.load()}}}}function doScrollCheck(){if(loaded){return}try{document.documentElement.doScroll("left")}catch(e){setTimeout(doScrollCheck,1);return}S.load()}function bindLoad(){if(document.readyState==="complete"){return S.load()}if(document.addEventListener){document.addEventListener("DOMContentLoaded",DOMContentLoaded,false);window.addEventListener("load",S.load,false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",DOMContentLoaded);window.attachEvent("onload",S.load);var topLevel=false;try{topLevel=window.frameElement===null}catch(e){}if(document.documentElement.doScroll&&topLevel){doScrollCheck()}}}}S.load=function(){if(loaded){return}if(!document.body){return setTimeout(S.load,13)}loaded=true;checkSupport();S.onReady();if(!S.options.skipSetup){S.setup()}S.skin.init()};S.plugins={};if(navigator.plugins&&navigator.plugins.length){var names=[];each(navigator.plugins,function(i,p){names.push(p.name)});names=names.join(",");var f4m=names.indexOf("Flip4Mac")>-1;S.plugins={fla:names.indexOf("Shockwave Flash")>-1,qt:names.indexOf("QuickTime")>-1,wmp:!f4m&&names.indexOf("Windows Media")>-1,f4m:f4m}}else{var detectPlugin=function(name){var axo;try{axo=new ActiveXObject(name)}catch(e){}return !!axo};S.plugins={fla:detectPlugin("ShockwaveFlash.ShockwaveFlash"),qt:detectPlugin("QuickTime.QuickTime"),wmp:detectPlugin("wmplayer.ocx"),f4m:false}}var relAttr=/^(light|shadow)box/i,expando="shadowboxCacheKey",cacheKey=1;S.cache={};S.select=function(selector){var links=[];if(!selector){var rel;each(document.getElementsByTagName("a"),function(i,el){rel=el.getAttribute("rel");if(rel&&relAttr.test(rel)){links.push(el)}})}else{var length=selector.length;if(length){if(typeof selector=="string"){if(S.find){links=S.find(selector)}}else{if(length==2&&typeof selector[0]=="string"&&selector[1].nodeType){if(S.find){links=S.find(selector[0],selector[1])}}else{for(var i=0;i<length;++i){links[i]=selector[i]}}}}else{links.push(selector)}}return links};S.setup=function(selector,options){each(S.select(selector),function(i,link){S.addCache(link,options)})};S.teardown=function(selector){each(S.select(selector),function(i,link){S.removeCache(link)})};S.addCache=function(link,options){var key=link[expando];if(key==undefined){key=cacheKey++;link[expando]=key;addEvent(link,"click",handleClick)}S.cache[key]=S.makeObject(link,options)};S.removeCache=function(link){removeEvent(link,"click",handleClick);delete S.cache[link[expando]];link[expando]=null};S.getCache=function(link){var key=link[expando];return(key in S.cache&&S.cache[key])};S.clearCache=function(){for(var key in S.cache){S.removeCache(S.cache[key].link)}S.cache={}};function handleClick(e){S.open(this);if(S.gallery.length){preventDefault(e)}}S.find=(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;[0,0].sort(function(){baseHasDuplicate=false;return 0});var Sizzle=function(selector,context,results,seed){results=results||[];var origContext=context=context||document;if(context.nodeType!==1&&context.nodeType!==9){return[]}if(!selector||typeof selector!=="string"){return results}var parts=[],m,set,checkSet,extra,prune=true,contextXML=isXML(context),soFar=selector;while((chunker.exec(""),m=chunker.exec(soFar))!==null){soFar=m[3];parts.push(m[1]);if(m[2]){extra=m[3];break}}if(parts.length>1&&origPOS.exec(selector)){if(parts.length===2&&Expr.relative[parts[0]]){set=posProcess(parts[0]+parts[1],context)}else{set=Expr.relative[parts[0]]?[context]:Sizzle(parts.shift(),context);while(parts.length){selector=parts.shift();if(Expr.relative[selector]){selector+=parts.shift()}set=posProcess(selector,set)}}}else{if(!seed&&parts.length>1&&context.nodeType===9&&!contextXML&&Expr.match.ID.test(parts[0])&&!Expr.match.ID.test(parts[parts.length-1])){var ret=Sizzle.find(parts.shift(),context,contextXML);context=ret.expr?Sizzle.filter(ret.expr,ret.set)[0]:ret.set[0]}if(context){var ret=seed?{expr:parts.pop(),set:makeArray(seed)}:Sizzle.find(parts.pop(),parts.length===1&&(parts[0]==="~"||parts[0]==="+")&&context.parentNode?context.parentNode:context,contextXML);set=ret.expr?Sizzle.filter(ret.expr,ret.set):ret.set;if(parts.length>0){checkSet=makeArray(set)}else{prune=false}while(parts.length){var cur=parts.pop(),pop=cur;if(!Expr.relative[cur]){cur=""}else{pop=parts.pop()}if(pop==null){pop=context}Expr.relative[cur](checkSet,pop,contextXML)}}else{checkSet=parts=[]}}if(!checkSet){checkSet=set}if(!checkSet){throw"Syntax error, unrecognized expression: "+(cur||selector)}if(toString.call(checkSet)==="[object Array]"){if(!prune){results.push.apply(results,checkSet)}else{if(context&&context.nodeType===1){for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&(checkSet[i]===true||checkSet[i].nodeType===1&&contains(context,checkSet[i]))){results.push(set[i])}}}else{for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&checkSet[i].nodeType===1){results.push(set[i])}}}}}else{makeArray(checkSet,results)}if(extra){Sizzle(extra,origContext,results,seed);Sizzle.uniqueSort(results)}return results};Sizzle.uniqueSort=function(results){if(sortOrder){hasDuplicate=baseHasDuplicate;results.sort(sortOrder);if(hasDuplicate){for(var i=1;i<results.length;i++){if(results[i]===results[i-1]){results.splice(i--,1)}}}}return results};Sizzle.matches=function(expr,set){return Sizzle(expr,null,null,set)};Sizzle.find=function(expr,context,isXML){var set,match;if(!expr){return[]}for(var i=0,l=Expr.order.length;i<l;i++){var type=Expr.order[i],match;if((match=Expr.leftMatch[type].exec(expr))){var left=match[1];match.splice(1,1);if(left.substr(left.length-1)!=="\\"){match[1]=(match[1]||"").replace(/\\/g,"");set=Expr.find[type](match,context,isXML);if(set!=null){expr=expr.replace(Expr.match[type],"");break}}}}if(!set){set=context.getElementsByTagName("*")}return{set:set,expr:expr}};Sizzle.filter=function(expr,set,inplace,not){var old=expr,result=[],curLoop=set,match,anyFound,isXMLFilter=set&&set[0]&&isXML(set[0]);while(expr&&set.length){for(var type in Expr.filter){if((match=Expr.match[type].exec(expr))!=null){var filter=Expr.filter[type],found,item;anyFound=false;if(curLoop===result){result=[]}if(Expr.preFilter[type]){match=Expr.preFilter[type](match,curLoop,inplace,result,not,isXMLFilter);if(!match){anyFound=found=true}else{if(match===true){continue}}}if(match){for(var i=0;(item=curLoop[i])!=null;i++){if(item){found=filter(item,match,i,curLoop);var pass=not^!!found;if(inplace&&found!=null){if(pass){anyFound=true}else{curLoop[i]=false}}else{if(pass){result.push(item);anyFound=true}}}}}if(found!==undefined){if(!inplace){curLoop=result}expr=expr.replace(Expr.match[type],"");if(!anyFound){return[]}break}}}if(expr===old){if(anyFound==null){throw"Syntax error, unrecognized expression: "+expr}else{break}}old=expr}return curLoop};var Expr=Sizzle.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\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(elem){return elem.getAttribute("href")}},relative:{"+":function(checkSet,part){var isPartStr=typeof part==="string",isTag=isPartStr&&!/\W/.test(part),isPartStrNotTag=isPartStr&&!isTag;if(isTag){part=part.toLowerCase()}for(var i=0,l=checkSet.length,elem;i<l;i++){if((elem=checkSet[i])){while((elem=elem.previousSibling)&&elem.nodeType!==1){}checkSet[i]=isPartStrNotTag||elem&&elem.nodeName.toLowerCase()===part?elem||false:elem===part}}if(isPartStrNotTag){Sizzle.filter(part,checkSet,true)}},">":function(checkSet,part){var isPartStr=typeof part==="string";if(isPartStr&&!/\W/.test(part)){part=part.toLowerCase();for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){var parent=elem.parentNode;checkSet[i]=parent.nodeName.toLowerCase()===part?parent:false}}}else{for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){checkSet[i]=isPartStr?elem.parentNode:elem.parentNode===part}}if(isPartStr){Sizzle.filter(part,checkSet,true)}}},"":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(typeof part==="string"&&!/\W/.test(part)){var nodeCheck=part=part.toLowerCase();checkFn=dirNodeCheck}checkFn("parentNode",part,doneName,checkSet,nodeCheck,isXML)},"~":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(typeof part==="string"&&!/\W/.test(part)){var nodeCheck=part=part.toLowerCase();checkFn=dirNodeCheck}checkFn("previousSibling",part,doneName,checkSet,nodeCheck,isXML)}},find:{ID:function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?[m]:[]}},NAME:function(match,context){if(typeof context.getElementsByName!=="undefined"){var ret=[],results=context.getElementsByName(match[1]);for(var i=0,l=results.length;i<l;i++){if(results[i].getAttribute("name")===match[1]){ret.push(results[i])}}return ret.length===0?null:ret}},TAG:function(match,context){return context.getElementsByTagName(match[1])}},preFilter:{CLASS:function(match,curLoop,inplace,result,not,isXML){match=" "+match[1].replace(/\\/g,"")+" ";if(isXML){return match}for(var i=0,elem;(elem=curLoop[i])!=null;i++){if(elem){if(not^(elem.className&&(" "+elem.className+" ").replace(/[\t\n]/g," ").indexOf(match)>=0)){if(!inplace){result.push(elem)}}else{if(inplace){curLoop[i]=false}}}}return false},ID:function(match){return match[1].replace(/\\/g,"")},TAG:function(match,curLoop){return match[1].toLowerCase()},CHILD:function(match){if(match[1]==="nth"){var test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(match[2]==="even"&&"2n"||match[2]==="odd"&&"2n+1"||!/\D/.test(match[2])&&"0n+"+match[2]||match[2]);match[2]=(test[1]+(test[2]||1))-0;match[3]=test[3]-0}match[0]=done++;return match},ATTR:function(match,curLoop,inplace,result,not,isXML){var name=match[1].replace(/\\/g,"");if(!isXML&&Expr.attrMap[name]){match[1]=Expr.attrMap[name]}if(match[2]==="~="){match[4]=" "+match[4]+" "}return match},PSEUDO:function(match,curLoop,inplace,result,not){if(match[1]==="not"){if((chunker.exec(match[3])||"").length>1||/^\w/.test(match[3])){match[3]=Sizzle(match[3],null,null,curLoop)}else{var ret=Sizzle.filter(match[3],curLoop,inplace,true^not);if(!inplace){result.push.apply(result,ret)}return false}}else{if(Expr.match.POS.test(match[0])||Expr.match.CHILD.test(match[0])){return true}}return match},POS:function(match){match.unshift(true);return match}},filters:{enabled:function(elem){return elem.disabled===false&&elem.type!=="hidden"},disabled:function(elem){return elem.disabled===true},checked:function(elem){return elem.checked===true},selected:function(elem){elem.parentNode.selectedIndex;return elem.selected===true},parent:function(elem){return !!elem.firstChild},empty:function(elem){return !elem.firstChild},has:function(elem,i,match){return !!Sizzle(match[3],elem).length},header:function(elem){return/h\d/i.test(elem.nodeName)},text:function(elem){return"text"===elem.type},radio:function(elem){return"radio"===elem.type},checkbox:function(elem){return"checkbox"===elem.type},file:function(elem){return"file"===elem.type},password:function(elem){return"password"===elem.type},submit:function(elem){return"submit"===elem.type},image:function(elem){return"image"===elem.type},reset:function(elem){return"reset"===elem.type},button:function(elem){return"button"===elem.type||elem.nodeName.toLowerCase()==="button"},input:function(elem){return/input|select|textarea|button/i.test(elem.nodeName)}},setFilters:{first:function(elem,i){return i===0},last:function(elem,i,match,array){return i===array.length-1},even:function(elem,i){return i%2===0},odd:function(elem,i){return i%2===1},lt:function(elem,i,match){return i<match[3]-0},gt:function(elem,i,match){return i>match[3]-0},nth:function(elem,i,match){return match[3]-0===i},eq:function(elem,i,match){return match[3]-0===i}},filter:{PSEUDO:function(elem,match,i,array){var name=match[1],filter=Expr.filters[name];if(filter){return filter(elem,i,match,array)}else{if(name==="contains"){return(elem.textContent||elem.innerText||getText([elem])||"").indexOf(match[3])>=0}else{if(name==="not"){var not=match[3];for(var i=0,l=not.length;i<l;i++){if(not[i]===elem){return false}}return true}else{throw"Syntax error, unrecognized expression: "+name}}}},CHILD:function(elem,match){var type=match[1],node=elem;switch(type){case"only":case"first":while((node=node.previousSibling)){if(node.nodeType===1){return false}}if(type==="first"){return true}node=elem;case"last":while((node=node.nextSibling)){if(node.nodeType===1){return false}}return true;case"nth":var first=match[2],last=match[3];if(first===1&&last===0){return true}var doneName=match[0],parent=elem.parentNode;if(parent&&(parent.sizcache!==doneName||!elem.nodeIndex)){var count=0;for(node=parent.firstChild;node;node=node.nextSibling){if(node.nodeType===1){node.nodeIndex=++count}}parent.sizcache=doneName}var diff=elem.nodeIndex-last;if(first===0){return diff===0}else{return(diff%first===0&&diff/first>=0)}}},ID:function(elem,match){return elem.nodeType===1&&elem.getAttribute("id")===match},TAG:function(elem,match){return(match==="*"&&elem.nodeType===1)||elem.nodeName.toLowerCase()===match},CLASS:function(elem,match){return(" "+(elem.className||elem.getAttribute("class"))+" ").indexOf(match)>-1},ATTR:function(elem,match){var name=match[1],result=Expr.attrHandle[name]?Expr.attrHandle[name](elem):elem[name]!=null?elem[name]:elem.getAttribute(name),value=result+"",type=match[2],check=match[4];return result==null?type==="!=":type==="="?value===check:type==="*="?value.indexOf(check)>=0:type==="~="?(" "+value+" ").indexOf(check)>=0:!check?value&&result!==false:type==="!="?value!==check:type==="^="?value.indexOf(check)===0:type==="$="?value.substr(value.length-check.length)===check:type==="|="?value===check||value.substr(0,check.length+1)===check+"-":false},POS:function(elem,match,i,array){var name=match[2],filter=Expr.setFilters[name];if(filter){return filter(elem,i,match,array)}}}};var origPOS=Expr.match.POS;for(var type in Expr.match){Expr.match[type]=new RegExp(Expr.match[type].source+/(?![^\[]*\])(?![^\(]*\))/.source);Expr.leftMatch[type]=new RegExp(/(^(?:.|\r|\n)*?)/.source+Expr.match[type].source)}var makeArray=function(array,results){array=Array.prototype.slice.call(array,0);if(results){results.push.apply(results,array);return results}return array};try{Array.prototype.slice.call(document.documentElement.childNodes,0)}catch(e){makeArray=function(array,results){var ret=results||[];if(toString.call(array)==="[object Array]"){Array.prototype.push.apply(ret,array)}else{if(typeof array.length==="number"){for(var i=0,l=array.length;i<l;i++){ret.push(array[i])}}else{for(var i=0;array[i];i++){ret.push(array[i])}}}return ret}}var sortOrder;if(document.documentElement.compareDocumentPosition){sortOrder=function(a,b){if(!a.compareDocumentPosition||!b.compareDocumentPosition){if(a==b){hasDuplicate=true}return a.compareDocumentPosition?-1:1}var ret=a.compareDocumentPosition(b)&4?-1:a===b?0:1;if(ret===0){hasDuplicate=true}return ret}}else{if("sourceIndex" in document.documentElement){sortOrder=function(a,b){if(!a.sourceIndex||!b.sourceIndex){if(a==b){hasDuplicate=true}return a.sourceIndex?-1:1}var ret=a.sourceIndex-b.sourceIndex;if(ret===0){hasDuplicate=true}return ret}}else{if(document.createRange){sortOrder=function(a,b){if(!a.ownerDocument||!b.ownerDocument){if(a==b){hasDuplicate=true}return a.ownerDocument?-1:1}var aRange=a.ownerDocument.createRange(),bRange=b.ownerDocument.createRange();aRange.setStart(a,0);aRange.setEnd(a,0);bRange.setStart(b,0);bRange.setEnd(b,0);var ret=aRange.compareBoundaryPoints(Range.START_TO_END,bRange);if(ret===0){hasDuplicate=true}return ret}}}}function getText(elems){var ret="",elem;for(var i=0;elems[i];i++){elem=elems[i];if(elem.nodeType===3||elem.nodeType===4){ret+=elem.nodeValue}else{if(elem.nodeType!==8){ret+=getText(elem.childNodes)}}}return ret}(function(){var form=document.createElement("div"),id="script"+(new Date).getTime();form.innerHTML="<a name='"+id+"'/>";var root=document.documentElement;root.insertBefore(form,root.firstChild);if(document.getElementById(id)){Expr.find.ID=function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?m.id===match[1]||typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id").nodeValue===match[1]?[m]:undefined:[]}};Expr.filter.ID=function(elem,match){var node=typeof elem.getAttributeNode!=="undefined"&&elem.getAttributeNode("id");return elem.nodeType===1&&node&&node.nodeValue===match}}root.removeChild(form);root=form=null})();(function(){var div=document.createElement("div");div.appendChild(document.createComment(""));if(div.getElementsByTagName("*").length>0){Expr.find.TAG=function(match,context){var results=context.getElementsByTagName(match[1]);if(match[1]==="*"){var tmp=[];for(var i=0;results[i];i++){if(results[i].nodeType===1){tmp.push(results[i])}}results=tmp}return results}}div.innerHTML="<a href='#'></a>";if(div.firstChild&&typeof div.firstChild.getAttribute!=="undefined"&&div.firstChild.getAttribute("href")!=="#"){Expr.attrHandle.href=function(elem){return elem.getAttribute("href",2)}}div=null})();if(document.querySelectorAll){(function(){var oldSizzle=Sizzle,div=document.createElement("div");div.innerHTML="<p class='TEST'></p>";if(div.querySelectorAll&&div.querySelectorAll(".TEST").length===0){return}Sizzle=function(query,context,extra,seed){context=context||document;if(!seed&&context.nodeType===9&&!isXML(context)){try{return makeArray(context.querySelectorAll(query),extra)}catch(e){}}return oldSizzle(query,context,extra,seed)};for(var prop in oldSizzle){Sizzle[prop]=oldSizzle[prop]}div=null})()}(function(){var div=document.createElement("div");div.innerHTML="<div class='test e'></div><div class='test'></div>";if(!div.getElementsByClassName||div.getElementsByClassName("e").length===0){return}div.lastChild.className="e";if(div.getElementsByClassName("e").length===1){return}Expr.order.splice(1,0,"CLASS");Expr.find.CLASS=function(match,context,isXML){if(typeof context.getElementsByClassName!=="undefined"&&!isXML){return context.getElementsByClassName(match[1])}};div=null})();function dirNodeCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break}if(elem.nodeType===1&&!isXML){elem.sizcache=doneName;elem.sizset=i}if(elem.nodeName.toLowerCase()===cur){match=elem;break}elem=elem[dir]}checkSet[i]=match}}}function dirCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break}if(elem.nodeType===1){if(!isXML){elem.sizcache=doneName;elem.sizset=i}if(typeof cur!=="string"){if(elem===cur){match=true;break}}else{if(Sizzle.filter(cur,[elem]).length>0){match=elem;break}}}elem=elem[dir]}checkSet[i]=match}}}var contains=document.compareDocumentPosition?function(a,b){return a.compareDocumentPosition(b)&16}:function(a,b){return a!==b&&(a.contains?a.contains(b):true)};var isXML=function(elem){var documentElement=(elem?elem.ownerDocument||elem:0).documentElement;return documentElement?documentElement.nodeName!=="HTML":false};var posProcess=function(selector,context){var tmpSet=[],later="",match,root=context.nodeType?[context]:context;while((match=Expr.match.PSEUDO.exec(selector))){later+=match[0];selector=selector.replace(Expr.match.PSEUDO,"")}selector=Expr.relative[selector]?selector+"*":selector;for(var i=0,l=root.length;i<l;i++){Sizzle(selector,root[i],tmpSet)}return Sizzle.filter(later,tmpSet)};return Sizzle})();S.flash=(function(){var swfobject=function(){var UNDEF="undefined",OBJECT="object",SHOCKWAVE_FLASH="Shockwave Flash",SHOCKWAVE_FLASH_AX="ShockwaveFlash.ShockwaveFlash",FLASH_MIME_TYPE="application/x-shockwave-flash",EXPRESS_INSTALL_ID="SWFObjectExprInst",win=window,doc=document,nav=navigator,domLoadFnArr=[],regObjArr=[],objIdArr=[],listenersArr=[],script,timer=null,storedAltContent=null,storedAltContentId=null,isDomLoaded=false,isExpressInstallActive=false;var ua=function(){var w3cdom=typeof doc.getElementById!=UNDEF&&typeof doc.getElementsByTagName!=UNDEF&&typeof doc.createElement!=UNDEF,playerVersion=[0,0,0],d=null;if(typeof nav.plugins!=UNDEF&&typeof nav.plugins[SHOCKWAVE_FLASH]==OBJECT){d=nav.plugins[SHOCKWAVE_FLASH].description;if(d&&!(typeof nav.mimeTypes!=UNDEF&&nav.mimeTypes[FLASH_MIME_TYPE]&&!nav.mimeTypes[FLASH_MIME_TYPE].enabledPlugin)){d=d.replace(/^.*\s+(\S+\s+\S+$)/,"$1");playerVersion[0]=parseInt(d.replace(/^(.*)\..*$/,"$1"),10);playerVersion[1]=parseInt(d.replace(/^.*\.(.*)\s.*$/,"$1"),10);playerVersion[2]=/r/.test(d)?parseInt(d.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof win.ActiveXObject!=UNDEF){var a=null,fp6Crash=false;try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".7")}catch(e){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".6");playerVersion=[6,0,21];a.AllowScriptAccess="always"}catch(e){if(playerVersion[0]==6){fp6Crash=true}}if(!fp6Crash){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX)}catch(e){}}}if(!fp6Crash&&a){try{d=a.GetVariable("$version");if(d){d=d.split(" ")[1].split(",");playerVersion=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10)]}}catch(e){}}}}var u=nav.userAgent.toLowerCase(),p=nav.platform.toLowerCase(),webkit=/webkit/.test(u)?parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,ie=false,windows=p?/win/.test(p):/win/.test(u),mac=p?/mac/.test(p):/mac/.test(u);
/*@cc_on ie = true;
@if (@_win32)windows = true;
@elif (@_mac)mac = true;
@end
@*/
return{w3cdom:w3cdom,pv:playerVersion,webkit:webkit,ie:ie,win:windows,mac:mac}}();var onDomLoad=function(){if(!ua.w3cdom){return}addDomLoadEvent(main);if(ua.ie&&ua.win){try{doc.write("<script id=__ie_ondomload defer=true src=//:></script>");script=getElementById("__ie_ondomload");if(script){addListener(script,"onreadystatechange",checkReadyState)}}catch(e){}}if(ua.webkit&&typeof doc.readyState!=UNDEF){timer=setInterval(function(){if(/loaded|complete/.test(doc.readyState)){callDomLoadFunctions()}},10)}if(typeof doc.addEventListener!=UNDEF){doc.addEventListener("DOMContentLoaded",callDomLoadFunctions,null)}addLoadEvent(callDomLoadFunctions)}();function checkReadyState(){if(script.readyState=="complete"){script.parentNode.removeChild(script);callDomLoadFunctions()}}function callDomLoadFunctions(){if(isDomLoaded){return}if(ua.ie&&ua.win){var s=createElement("span");try{var t=doc.getElementsByTagName("body")[0].appendChild(s);t.parentNode.removeChild(t)}catch(e){return}}isDomLoaded=true;if(timer){clearInterval(timer);timer=null}var dl=domLoadFnArr.length;for(var i=0;i<dl;i++){domLoadFnArr[i]()}}function addDomLoadEvent(fn){if(isDomLoaded){fn()}else{domLoadFnArr[domLoadFnArr.length]=fn}}function addLoadEvent(fn){if(typeof win.addEventListener!=UNDEF){win.addEventListener("load",fn,false)}else{if(typeof doc.addEventListener!=UNDEF){doc.addEventListener("load",fn,false)}else{if(typeof win.attachEvent!=UNDEF){addListener(win,"onload",fn)}else{if(typeof win.onload=="function"){var fnOld=win.onload;win.onload=function(){fnOld();fn()}}else{win.onload=fn}}}}}function main(){var rl=regObjArr.length;for(var i=0;i<rl;i++){var id=regObjArr[i].id;if(ua.pv[0]>0){var obj=getElementById(id);if(obj){regObjArr[i].width=obj.getAttribute("width")?obj.getAttribute("width"):"0";regObjArr[i].height=obj.getAttribute("height")?obj.getAttribute("height"):"0";if(hasPlayerVersion(regObjArr[i].swfVersion)){if(ua.webkit&&ua.webkit<312){fixParams(obj)}setVisibility(id,true)}else{if(regObjArr[i].expressInstall&&!isExpressInstallActive&&hasPlayerVersion("6.0.65")&&(ua.win||ua.mac)){showExpressInstall(regObjArr[i])}else{displayAltContent(obj)}}}}else{setVisibility(id,true)}}}function fixParams(obj){var nestedObj=obj.getElementsByTagName(OBJECT)[0];if(nestedObj){var e=createElement("embed"),a=nestedObj.attributes;if(a){var al=a.length;for(var i=0;i<al;i++){if(a[i].nodeName=="DATA"){e.setAttribute("src",a[i].nodeValue)}else{e.setAttribute(a[i].nodeName,a[i].nodeValue)}}}var c=nestedObj.childNodes;if(c){var cl=c.length;for(var j=0;j<cl;j++){if(c[j].nodeType==1&&c[j].nodeName=="PARAM"){e.setAttribute(c[j].getAttribute("name"),c[j].getAttribute("value"))}}}obj.parentNode.replaceChild(e,obj)}}function showExpressInstall(regObj){isExpressInstallActive=true;var obj=getElementById(regObj.id);if(obj){if(regObj.altContentId){var ac=getElementById(regObj.altContentId);if(ac){storedAltContent=ac;storedAltContentId=regObj.altContentId}}else{storedAltContent=abstractAltContent(obj)}if(!(/%$/.test(regObj.width))&&parseInt(regObj.width,10)<310){regObj.width="310"}if(!(/%$/.test(regObj.height))&&parseInt(regObj.height,10)<137){regObj.height="137"}doc.title=doc.title.slice(0,47)+" - Flash Player Installation";var pt=ua.ie&&ua.win?"ActiveX":"PlugIn",dt=doc.title,fv="MMredirectURL="+win.location+"&MMplayerType="+pt+"&MMdoctitle="+dt,replaceId=regObj.id;if(ua.ie&&ua.win&&obj.readyState!=4){var newObj=createElement("div");replaceId+="SWFObjectNew";newObj.setAttribute("id",replaceId);obj.parentNode.insertBefore(newObj,obj);obj.style.display="none";var fn=function(){obj.parentNode.removeChild(obj)};addListener(win,"onload",fn)}createSWF({data:regObj.expressInstall,id:EXPRESS_INSTALL_ID,width:regObj.width,height:regObj.height},{flashvars:fv},replaceId)}}function displayAltContent(obj){if(ua.ie&&ua.win&&obj.readyState!=4){var el=createElement("div");obj.parentNode.insertBefore(el,obj);el.parentNode.replaceChild(abstractAltContent(obj),el);obj.style.display="none";var fn=function(){obj.parentNode.removeChild(obj)};addListener(win,"onload",fn)}else{obj.parentNode.replaceChild(abstractAltContent(obj),obj)}}function abstractAltContent(obj){var ac=createElement("div");if(ua.win&&ua.ie){ac.innerHTML=obj.innerHTML}else{var nestedObj=obj.getElementsByTagName(OBJECT)[0];if(nestedObj){var c=nestedObj.childNodes;if(c){var cl=c.length;for(var i=0;i<cl;i++){if(!(c[i].nodeType==1&&c[i].nodeName=="PARAM")&&!(c[i].nodeType==8)){ac.appendChild(c[i].cloneNode(true))}}}}}return ac}function createSWF(attObj,parObj,id){var r,el=getElementById(id);if(el){if(typeof attObj.id==UNDEF){attObj.id=id}if(ua.ie&&ua.win){var att="";for(var i in attObj){if(attObj[i]!=Object.prototype[i]){if(i.toLowerCase()=="data"){parObj.movie=attObj[i]}else{if(i.toLowerCase()=="styleclass"){att+=' class="'+attObj[i]+'"'}else{if(i.toLowerCase()!="classid"){att+=" "+i+'="'+attObj[i]+'"'}}}}}var par="";for(var j in parObj){if(parObj[j]!=Object.prototype[j]){par+='<param name="'+j+'" value="'+parObj[j]+'" />'}}el.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+att+">"+par+"</object>";objIdArr[objIdArr.length]=attObj.id;r=getElementById(attObj.id)}else{if(ua.webkit&&ua.webkit<312){var e=createElement("embed");e.setAttribute("type",FLASH_MIME_TYPE);for(var k in attObj){if(attObj[k]!=Object.prototype[k]){if(k.toLowerCase()=="data"){e.setAttribute("src",attObj[k])}else{if(k.toLowerCase()=="styleclass"){e.setAttribute("class",attObj[k])}else{if(k.toLowerCase()!="classid"){e.setAttribute(k,attObj[k])}}}}}for(var l in parObj){if(parObj[l]!=Object.prototype[l]){if(l.toLowerCase()!="movie"){e.setAttribute(l,parObj[l])}}}el.parentNode.replaceChild(e,el);r=e}else{var o=createElement(OBJECT);o.setAttribute("type",FLASH_MIME_TYPE);for(var m in attObj){if(attObj[m]!=Object.prototype[m]){if(m.toLowerCase()=="styleclass"){o.setAttribute("class",attObj[m])}else{if(m.toLowerCase()!="classid"){o.setAttribute(m,attObj[m])}}}}for(var n in parObj){if(parObj[n]!=Object.prototype[n]&&n.toLowerCase()!="movie"){createObjParam(o,n,parObj[n])}}el.parentNode.replaceChild(o,el);r=o}}}return r}function createObjParam(el,pName,pValue){var p=createElement("param");p.setAttribute("name",pName);p.setAttribute("value",pValue);el.appendChild(p)}function removeSWF(id){var obj=getElementById(id);if(obj&&(obj.nodeName=="OBJECT"||obj.nodeName=="EMBED")){if(ua.ie&&ua.win){if(obj.readyState==4){removeObjectInIE(id)}else{win.attachEvent("onload",function(){removeObjectInIE(id)})}}else{obj.parentNode.removeChild(obj)}}}function removeObjectInIE(id){var obj=getElementById(id);if(obj){for(var i in obj){if(typeof obj[i]=="function"){obj[i]=null}}obj.parentNode.removeChild(obj)}}function getElementById(id){var el=null;try{el=doc.getElementById(id)}catch(e){}return el}function createElement(el){return doc.createElement(el)}function addListener(target,eventType,fn){target.attachEvent(eventType,fn);listenersArr[listenersArr.length]=[target,eventType,fn]}function hasPlayerVersion(rv){var pv=ua.pv,v=rv.split(".");v[0]=parseInt(v[0],10);v[1]=parseInt(v[1],10)||0;v[2]=parseInt(v[2],10)||0;return(pv[0]>v[0]||(pv[0]==v[0]&&pv[1]>v[1])||(pv[0]==v[0]&&pv[1]==v[1]&&pv[2]>=v[2]))?true:false}function createCSS(sel,decl){if(ua.ie&&ua.mac){return}var h=doc.getElementsByTagName("head")[0],s=createElement("style");s.setAttribute("type","text/css");s.setAttribute("media","screen");if(!(ua.ie&&ua.win)&&typeof doc.createTextNode!=UNDEF){s.appendChild(doc.createTextNode(sel+" {"+decl+"}"))}h.appendChild(s);if(ua.ie&&ua.win&&typeof doc.styleSheets!=UNDEF&&doc.styleSheets.length>0){var ls=doc.styleSheets[doc.styleSheets.length-1];if(typeof ls.addRule==OBJECT){ls.addRule(sel,decl)}}}function setVisibility(id,isVisible){var v=isVisible?"visible":"hidden";if(isDomLoaded&&getElementById(id)){getElementById(id).style.visibility=v}else{createCSS("#"+id,"visibility:"+v)}}function urlEncodeIfNecessary(s){var regex=/[\\\"<>\.;]/;var hasBadChars=regex.exec(s)!=null;return hasBadChars?encodeURIComponent(s):s}var cleanup=function(){if(ua.ie&&ua.win){window.attachEvent("onunload",function(){var ll=listenersArr.length;for(var i=0;i<ll;i++){listenersArr[i][0].detachEvent(listenersArr[i][1],listenersArr[i][2])}var il=objIdArr.length;for(var j=0;j<il;j++){removeSWF(objIdArr[j])}for(var k in ua){ua[k]=null}ua=null;for(var l in swfobject){swfobject[l]=null}swfobject=null})}}();return{registerObject:function(objectIdStr,swfVersionStr,xiSwfUrlStr){if(!ua.w3cdom||!objectIdStr||!swfVersionStr){return}var regObj={};regObj.id=objectIdStr;regObj.swfVersion=swfVersionStr;regObj.expressInstall=xiSwfUrlStr?xiSwfUrlStr:false;regObjArr[regObjArr.length]=regObj;setVisibility(objectIdStr,false)},getObjectById:function(objectIdStr){var r=null;if(ua.w3cdom){var o=getElementById(objectIdStr);if(o){var n=o.getElementsByTagName(OBJECT)[0];if(!n||(n&&typeof o.SetVariable!=UNDEF)){r=o}else{if(typeof n.SetVariable!=UNDEF){r=n}}}}return r},embedSWF:function(swfUrlStr,replaceElemIdStr,widthStr,heightStr,swfVersionStr,xiSwfUrlStr,flashvarsObj,parObj,attObj){if(!ua.w3cdom||!swfUrlStr||!replaceElemIdStr||!widthStr||!heightStr||!swfVersionStr){return}widthStr+="";heightStr+="";if(hasPlayerVersion(swfVersionStr)){setVisibility(replaceElemIdStr,false);var att={};if(attObj&&typeof attObj===OBJECT){for(var i in attObj){if(attObj[i]!=Object.prototype[i]){att[i]=attObj[i]}}}att.data=swfUrlStr;att.width=widthStr;att.height=heightStr;var par={};if(parObj&&typeof parObj===OBJECT){for(var j in parObj){if(parObj[j]!=Object.prototype[j]){par[j]=parObj[j]}}}if(flashvarsObj&&typeof flashvarsObj===OBJECT){for(var k in flashvarsObj){if(flashvarsObj[k]!=Object.prototype[k]){if(typeof par.flashvars!=UNDEF){par.flashvars+="&"+k+"="+flashvarsObj[k]}else{par.flashvars=k+"="+flashvarsObj[k]}}}}addDomLoadEvent(function(){createSWF(att,par,replaceElemIdStr);if(att.id==replaceElemIdStr){setVisibility(replaceElemIdStr,true)}})}else{if(xiSwfUrlStr&&!isExpressInstallActive&&hasPlayerVersion("6.0.65")&&(ua.win||ua.mac)){isExpressInstallActive=true;setVisibility(replaceElemIdStr,false);addDomLoadEvent(function(){var regObj={};regObj.id=regObj.altContentId=replaceElemIdStr;regObj.width=widthStr;regObj.height=heightStr;regObj.expressInstall=xiSwfUrlStr;showExpressInstall(regObj)})}}},getFlashPlayerVersion:function(){return{major:ua.pv[0],minor:ua.pv[1],release:ua.pv[2]}},hasFlashPlayerVersion:hasPlayerVersion,createSWF:function(attObj,parObj,replaceElemIdStr){if(ua.w3cdom){return createSWF(attObj,parObj,replaceElemIdStr)}else{return undefined}},removeSWF:function(objElemIdStr){if(ua.w3cdom){removeSWF(objElemIdStr)}},createCSS:function(sel,decl){if(ua.w3cdom){createCSS(sel,decl)}},addDomLoadEvent:addDomLoadEvent,addLoadEvent:addLoadEvent,getQueryParamValue:function(param){var q=doc.location.search||doc.location.hash;if(param==null){return urlEncodeIfNecessary(q)}if(q){var pairs=q.substring(1).split("&");for(var i=0;i<pairs.length;i++){if(pairs[i].substring(0,pairs[i].indexOf("="))==param){return urlEncodeIfNecessary(pairs[i].substring((pairs[i].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(isExpressInstallActive&&storedAltContent){var obj=getElementById(EXPRESS_INSTALL_ID);if(obj){obj.parentNode.replaceChild(storedAltContent,obj);if(storedAltContentId){setVisibility(storedAltContentId,true);if(ua.ie&&ua.win){storedAltContent.style.display="block"}}storedAltContent=null;storedAltContentId=null;isExpressInstallActive=false}}}}}();return swfobject})();S.lang={code:"en",of:"of",loading:"loading",cancel:"Cancel",next:"Next",previous:"Previous",play:"Play",pause:"Pause",close:"Close",errors:{single:'You must install the <a href="{0}">{1}</a> browser plugin to view this content.',shared:'You must install both the <a href="{0}">{1}</a> and <a href="{2}">{3}</a> browser plugins to view this content.',either:'You must install either the <a href="{0}">{1}</a> or the <a href="{2}">{3}</a> browser plugin to view this content.'}};var pre,proxyId="sb-drag-proxy",dragData,dragProxy,dragTarget;function resetDrag(){dragData={x:0,y:0,startX:null,startY:null}}function updateProxy(){var dims=S.dimensions;apply(dragProxy.style,{height:dims.innerHeight+"px",width:dims.innerWidth+"px"})}function enableDrag(){resetDrag();var style=["position:absolute","cursor:"+(S.isGecko?"-moz-grab":"move"),"background-color:"+(S.isIE?"#fff;filter:alpha(opacity=0)":"transparent")].join(";");S.appendHTML(S.skin.body,'<div id="'+proxyId+'" style="'+style+'"></div>');dragProxy=get(proxyId);updateProxy();addEvent(dragProxy,"mousedown",startDrag)}function disableDrag(){if(dragProxy){removeEvent(dragProxy,"mousedown",startDrag);remove(dragProxy);dragProxy=null}dragTarget=null}function startDrag(e){preventDefault(e);var xy=getPageXY(e);dragData.startX=xy[0];dragData.startY=xy[1];dragTarget=get(S.player.id);addEvent(document,"mousemove",positionDrag);addEvent(document,"mouseup",endDrag);if(S.isGecko){dragProxy.style.cursor="-moz-grabbing"}}function positionDrag(e){var player=S.player,dims=S.dimensions,xy=getPageXY(e);var moveX=xy[0]-dragData.startX;dragData.startX+=moveX;dragData.x=Math.max(Math.min(0,dragData.x+moveX),dims.innerWidth-player.width);var moveY=xy[1]-dragData.startY;dragData.startY+=moveY;dragData.y=Math.max(Math.min(0,dragData.y+moveY),dims.innerHeight-player.height);apply(dragTarget.style,{left:dragData.x+"px",top:dragData.y+"px"})}function endDrag(){removeEvent(document,"mousemove",positionDrag);removeEvent(document,"mouseup",endDrag);if(S.isGecko){dragProxy.style.cursor="-moz-grab"}}S.img=function(obj,id){this.obj=obj;this.id=id;this.ready=false;var self=this;pre=new Image();pre.onload=function(){self.height=obj.height?parseInt(obj.height,10):pre.height;self.width=obj.width?parseInt(obj.width,10):pre.width;self.ready=true;pre.onload=null;pre=null};pre.src=obj.content};S.img.ext=["bmp","gif","jpg","jpeg","png"];S.img.prototype={append:function(body,dims){var img=document.createElement("img");img.id=this.id;img.src=this.obj.content;img.style.position="absolute";var height,width;if(dims.oversized&&S.options.handleOversize=="resize"){height=dims.innerHeight;width=dims.innerWidth}else{height=this.height;width=this.width}img.setAttribute("height",height);img.setAttribute("width",width);body.appendChild(img)},remove:function(){var el=get(this.id);if(el){remove(el)}disableDrag();if(pre){pre.onload=null;pre=null}},onLoad:function(){var dims=S.dimensions;if(dims.oversized&&S.options.handleOversize=="drag"){enableDrag()}},onWindowResize:function(){var dims=S.dimensions;switch(S.options.handleOversize){case"resize":var el=get(this.id);el.height=dims.innerHeight;el.width=dims.innerWidth;break;case"drag":if(dragTarget){var top=parseInt(S.getStyle(dragTarget,"top")),left=parseInt(S.getStyle(dragTarget,"left"));if(top+this.height<dims.innerHeight){dragTarget.style.top=dims.innerHeight-this.height+"px"}if(left+this.width<dims.innerWidth){dragTarget.style.left=dims.innerWidth-this.width+"px"}updateProxy()}break}}};S.iframe=function(obj,id){this.obj=obj;this.id=id;var overlay=get("sb-overlay");this.height=obj.height?parseInt(obj.height,10):overlay.offsetHeight;this.width=obj.width?parseInt(obj.width,10):overlay.offsetWidth};S.iframe.prototype={append:function(body,dims){var html='<iframe id="'+this.id+'" name="'+this.id+'" height="100%" width="100%" frameborder="0" marginwidth="0" marginheight="0" style="visibility:hidden" onload="this.style.visibility=\'visible\'" scrolling="auto"';if(S.isIE){html+=' allowtransparency="true"';if(S.isIE6){html+=" src=\"javascript:false;document.write('');\""}}html+="></iframe>";body.innerHTML=html},remove:function(){var el=get(this.id);if(el){remove(el);if(S.isGecko){delete window.frames[this.id]}}},onLoad:function(){var win=S.isIE?get(this.id).contentWindow:window.frames[this.id];win.location.href=this.obj.content}};S.html=function(obj,id){this.obj=obj;this.id=id;this.height=obj.height?parseInt(obj.height,10):300;this.width=obj.width?parseInt(obj.width,10):500};S.html.prototype={append:function(body,dims){var div=document.createElement("div");div.id=this.id;div.className="html";div.innerHTML=this.obj.content;body.appendChild(div)},remove:function(){var el=get(this.id);if(el){remove(el)}}};S.swf=function(obj,id){this.obj=obj;this.id=id;this.height=obj.height?parseInt(obj.height,10):300;this.width=obj.width?parseInt(obj.width,10):300};S.swf.ext=["swf"];S.swf.prototype={append:function(body,dims){var tmp=document.createElement("div");tmp.id=this.id;body.appendChild(tmp);var height=dims.innerHeight,width=dims.innerWidth,swf=this.obj.content,version=S.options.flashVersion,express=S.path+"expressInstall.swf",flashvars=S.options.flashVars,params=S.options.flashParams;S.flash.embedSWF(swf,this.id,width,height,version,express,flashvars,params)},remove:function(){S.flash.expressInstallCallback();S.flash.removeSWF(this.id)},onWindowResize:function(){var dims=S.dimensions,el=get(this.id);el.height=dims.innerHeight;el.width=dims.innerWidth}};var jwControllerHeight=20;S.flv=function(obj,id){this.obj=obj;this.id=id;this.height=obj.height?parseInt(obj.height,10):300;if(S.options.showMovieControls){this.height+=jwControllerHeight}this.width=obj.width?parseInt(obj.width,10):300};S.flv.ext=["flv","m4v"];S.flv.prototype={append:function(body,dims){var tmp=document.createElement("div");tmp.id=this.id;body.appendChild(tmp);var height=dims.innerHeight,width=dims.innerWidth,swf=S.path+"player.swf",version=S.options.flashVersion,express=S.path+"expressInstall.swf",flashvars=apply({file:this.obj.content,height:height,width:width,autostart:(S.options.autoplayMovies?"true":"false"),controlbar:(S.options.showMovieControls?"bottom":"none"),backcolor:"0x000000",frontcolor:"0xCCCCCC",lightcolor:"0x557722"},S.options.flashVars),params=S.options.flashParams;S.flash.embedSWF(swf,this.id,width,height,version,express,flashvars,params)},remove:function(){S.flash.expressInstallCallback();S.flash.removeSWF(this.id)},onWindowResize:function(){var dims=S.dimensions,el=get(this.id);el.height=dims.innerHeight;el.width=dims.innerWidth}};var overlayOn=false,visibilityCache=[],pngIds=["sb-nav-close","sb-nav-next","sb-nav-play","sb-nav-pause","sb-nav-previous"],container,overlay,wrapper,doWindowResize=true;function animate(el,property,to,duration,callback){var isOpacity=(property=="opacity"),anim=isOpacity?S.setOpacity:function(el,value){el.style[property]=""+value+"px"};if(duration==0||(!isOpacity&&!S.options.animate)||(isOpacity&&!S.options.animateFade)){anim(el,to);if(callback){callback()}return}var from=parseFloat(S.getStyle(el,property))||0;var delta=to-from;if(delta==0){if(callback){callback()}return}duration*=1000;var begin=now(),ease=S.ease,end=begin+duration,time;var interval=setInterval(function(){time=now();if(time>=end){clearInterval(interval);interval=null;anim(el,to);if(callback){callback()}}else{anim(el,from+ease((time-begin)/duration)*delta)}},10)}function setSize(){container.style.height=S.getWindowSize("Height")+"px";container.style.width=S.getWindowSize("Width")+"px"}function setPosition(){container.style.top=document.documentElement.scrollTop+"px";container.style.left=document.documentElement.scrollLeft+"px"}function toggleTroubleElements(on){if(on){each(visibilityCache,function(i,el){el[0].style.visibility=el[1]||""})}else{visibilityCache=[];each(S.options.troubleElements,function(i,tag){each(document.getElementsByTagName(tag),function(j,el){visibilityCache.push([el,el.style.visibility]);el.style.visibility="hidden"})})}}function toggleNav(id,on){var el=get("sb-nav-"+id);if(el){el.style.display=on?"":"none"}}function toggleLoading(on,callback){var loading=get("sb-loading"),playerName=S.getCurrent().player,anim=(playerName=="img"||playerName=="html");if(on){S.setOpacity(loading,0);loading.style.display="block";var wrapped=function(){S.clearOpacity(loading);if(callback){callback()}};if(anim){animate(loading,"opacity",1,S.options.fadeDuration,wrapped)}else{wrapped()}}else{var wrapped=function(){loading.style.display="none";S.clearOpacity(loading);if(callback){callback()}};if(anim){animate(loading,"opacity",0,S.options.fadeDuration,wrapped)}else{wrapped()}}}function buildBars(callback){var obj=S.getCurrent();get("sb-title-inner").innerHTML=obj.title||"";var close,next,play,pause,previous;if(S.options.displayNav){close=true;var len=S.gallery.length;if(len>1){if(S.options.continuous){next=previous=true}else{next=(len-1)>S.current;previous=S.current>0}}if(S.options.slideshowDelay>0&&S.hasNext()){pause=!S.isPaused();play=!pause}}else{close=next=play=pause=previous=false}toggleNav("close",close);toggleNav("next",next);toggleNav("play",play);toggleNav("pause",pause);toggleNav("previous",previous);var counter="";if(S.options.displayCounter&&S.gallery.length>1){var len=S.gallery.length;if(S.options.counterType=="skip"){var i=0,end=len,limit=parseInt(S.options.counterLimit)||0;if(limit<len&&limit>2){var h=Math.floor(limit/2);i=S.current-h;if(i<0){i+=len}end=S.current+(limit-h);if(end>len){end-=len}}while(i!=end){if(i==len){i=0}counter+='<a onclick="Shadowbox.change('+i+');"';if(i==S.current){counter+=' class="sb-counter-current"'}counter+=">"+(++i)+"</a>"}}else{counter=[S.current+1,S.lang.of,len].join(" ")}}get("sb-counter").innerHTML=counter;callback()}function showBars(callback){var titleInner=get("sb-title-inner"),infoInner=get("sb-info-inner"),duration=0.35;titleInner.style.visibility=infoInner.style.visibility="";if(titleInner.innerHTML!=""){animate(titleInner,"marginTop",0,duration)}animate(infoInner,"marginTop",0,duration,callback)}function hideBars(anim,callback){var title=get("sb-title"),info=get("sb-info"),titleHeight=title.offsetHeight,infoHeight=info.offsetHeight,titleInner=get("sb-title-inner"),infoInner=get("sb-info-inner"),duration=(anim?0.35:0);animate(titleInner,"marginTop",titleHeight,duration);animate(infoInner,"marginTop",infoHeight*-1,duration,function(){titleInner.style.visibility=infoInner.style.visibility="hidden";callback()})}function adjustHeight(height,top,anim,callback){var wrapperInner=get("sb-wrapper-inner"),duration=(anim?S.options.resizeDuration:0);animate(wrapper,"top",top,duration);animate(wrapperInner,"height",height,duration,callback)}function adjustWidth(width,left,anim,callback){var duration=(anim?S.options.resizeDuration:0);animate(wrapper,"left",left,duration);animate(wrapper,"width",width,duration,callback)}function setDimensions(height,width){var bodyInner=get("sb-body-inner"),height=parseInt(height),width=parseInt(width),topBottom=wrapper.offsetHeight-bodyInner.offsetHeight,leftRight=wrapper.offsetWidth-bodyInner.offsetWidth,maxHeight=overlay.offsetHeight,maxWidth=overlay.offsetWidth,padding=parseInt(S.options.viewportPadding)||20,preserveAspect=(S.player&&S.options.handleOversize!="drag");return S.setDimensions(height,width,maxHeight,maxWidth,topBottom,leftRight,padding,preserveAspect)}var K={};K.markup='<div id="sb-container"><div id="sb-overlay"></div><div id="sb-wrapper"><div id="sb-title"><div id="sb-title-inner"></div></div><div id="sb-wrapper-inner"><div id="sb-body"><div id="sb-body-inner"></div><div id="sb-loading"><div id="sb-loading-inner"><span>{loading}</span></div></div></div></div><div id="sb-info"><div id="sb-info-inner"><div id="sb-counter"></div><div id="sb-nav"><a id="sb-nav-close" title="{close}" onclick="Shadowbox.close()"></a><a id="sb-nav-next" title="{next}" onclick="Shadowbox.next()"></a><a id="sb-nav-play" title="{play}" onclick="Shadowbox.play()"></a><a id="sb-nav-pause" title="{pause}" onclick="Shadowbox.pause()"></a><a id="sb-nav-previous" title="{previous}" onclick="Shadowbox.previous()"></a></div></div></div></div></div>';K.options={animSequence:"sync",counterLimit:10,counterType:"default",displayCounter:true,displayNav:true,fadeDuration:0.35,initialHeight:160,initialWidth:320,modal:false,overlayColor:"#000",overlayOpacity:0.5,resizeDuration:0.35,showOverlay:true,troubleElements:["select","object","embed","canvas"]};K.init=function(){S.appendHTML(document.body,sprintf(K.markup,S.lang));K.body=get("sb-body-inner");container=get("sb-container");overlay=get("sb-overlay");wrapper=get("sb-wrapper");if(!supportsFixed){container.style.position="absolute"}if(!supportsOpacity){var el,m,re=/url\("(.*\.png)"\)/;each(pngIds,function(i,id){el=get(id);if(el){m=S.getStyle(el,"backgroundImage").match(re);if(m){el.style.backgroundImage="none";el.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,src="+m[1]+",sizingMethod=scale);"}}})}var timer;addEvent(window,"resize",function(){if(timer){clearTimeout(timer);timer=null}if(open){timer=setTimeout(K.onWindowResize,10)}})};K.onOpen=function(obj,callback){doWindowResize=false;container.style.display="block";setSize();var dims=setDimensions(S.options.initialHeight,S.options.initialWidth);adjustHeight(dims.innerHeight,dims.top);adjustWidth(dims.width,dims.left);if(S.options.showOverlay){overlay.style.backgroundColor=S.options.overlayColor;S.setOpacity(overlay,0);if(!S.options.modal){addEvent(overlay,"click",S.close)}overlayOn=true}if(!supportsFixed){setPosition();addEvent(window,"scroll",setPosition)}toggleTroubleElements();container.style.visibility="visible";if(overlayOn){animate(overlay,"opacity",S.options.overlayOpacity,S.options.fadeDuration,callback)}else{callback()}};K.onLoad=function(changing,callback){toggleLoading(true);while(K.body.firstChild){remove(K.body.firstChild)}hideBars(changing,function(){if(!open){return}if(!changing){wrapper.style.visibility="visible"}buildBars(callback)})};K.onReady=function(callback){if(!open){return}var player=S.player,dims=setDimensions(player.height,player.width);var wrapped=function(){showBars(callback)};switch(S.options.animSequence){case"hw":adjustHeight(dims.innerHeight,dims.top,true,function(){adjustWidth(dims.width,dims.left,true,wrapped)});break;case"wh":adjustWidth(dims.width,dims.left,true,function(){adjustHeight(dims.innerHeight,dims.top,true,wrapped)});break;default:adjustWidth(dims.width,dims.left,true);adjustHeight(dims.innerHeight,dims.top,true,wrapped)}};K.onShow=function(callback){toggleLoading(false,callback);doWindowResize=true};K.onClose=function(){if(!supportsFixed){removeEvent(window,"scroll",setPosition)}removeEvent(overlay,"click",S.close);wrapper.style.visibility="hidden";var callback=function(){container.style.visibility="hidden";container.style.display="none";toggleTroubleElements(true)};if(overlayOn){animate(overlay,"opacity",0,S.options.fadeDuration,callback)}else{callback()}};K.onPlay=function(){toggleNav("play",false);toggleNav("pause",true)};K.onPause=function(){toggleNav("pause",false);toggleNav("play",true)};K.onWindowResize=function(){if(!doWindowResize){return}setSize();var player=S.player,dims=setDimensions(player.height,player.width);adjustWidth(dims.width,dims.left);adjustHeight(dims.innerHeight,dims.top);if(player.onWindowResize){player.onWindowResize()}};S.skin=K;window.Shadowbox=S})(window);sb_change=function(a){};sb_finish=function(){var a=$("#sb-title");a.height("");a.height(a.height())};Shadowbox.init({skipSetup:false,flvPlayer:"/shared/flash/player_flv.swf",continuous:true,fadeDuration:0.2,resizeDuration:0.2,overlayOpacity:0.8,onChange:sb_change,onFinish:sb_finish});$("document").ready(function(){var c=$("a[href$='.jpg']:has(img), a[href$='.gif']:has(img), a[href$='.png']:has(img)");if(c!=(null)&&c.length>0){for(var a=0;a<c.length;a++){var b=$(c[a])[0].getElementsByTagName("IMG")[0];c[a].title=b.alt}Shadowbox.setup(c,{player:"img"})}});addFlvPlayer=function(c,b,a){var d=/((details\/)|((&?)showForm=t(rue)?))/i;c.href=c.href.replace(d,"");Shadowbox.setup(c,{player:"flv",width:b,height:a})};(function(){function A(a){console.log("$f.fireEvent",[].slice.call(a))}function q(c){if(!c||typeof c!="object"){return c}var a=new c.constructor();for(var b in c){if(c.hasOwnProperty(b)){a[b]=q(c[b])}}return a}function s(c,f){if(!c){return}var e,d=0,a=c.length;if(a===undefined){for(e in c){if(f.call(c[e],e,c[e])===false){break}}}else{for(var b=c[0];d<a&&f.call(b,d,b)!==false;b=c[++d]){}}return c}function w(a){return document.getElementById(a)}function o(c,b,a){if(typeof b!="object"){return c}if(c&&b){s(b,function(d,e){if(!a||typeof e!="function"){c[d]=e}})}return c}function t(b){var e=b.indexOf(".");if(e!=-1){var d=b.slice(0,e)||"*";var c=b.slice(e+1,b.length);var a=[];s(document.getElementsByTagName(d),function(){if(this.className&&this.className.indexOf(c)!=-1){a.push(this)}});return a}}function z(a){a=a||window.event;if(a.preventDefault){a.stopPropagation();a.preventDefault()}else{a.returnValue=false;a.cancelBubble=true}return false}function p(c,a,b){c[a]=c[a]||[];c[a].push(b)}function y(){return"_"+(""+Math.random()).slice(2,10)}var B=function(c,a,b){var g=this,f={},d={};g.index=a;if(typeof c=="string"){c={url:c}}o(this,c,true);s(("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop").split(","),function(){var h="on"+this;if(h.indexOf("*")!=-1){h=h.slice(0,h.length-1);var i="onBefore"+h.slice(2);g[i]=function(j){p(d,i,j);return g}}g[h]=function(j){p(d,h,j);return g};if(a==-1){if(g[i]){b[i]=g[i]}if(g[h]){b[h]=g[h]}}});o(this,{onCuepoint:function(h,j){if(arguments.length==1){f.embedded=[null,h];return g}if(typeof h=="number"){h=[h]}var i=y();f[i]=[h,j];if(b.isLoaded()){b._api().fp_addCuepoints(h,a,i)}return g},update:function(j){o(g,j);if(b.isLoaded()){b._api().fp_updateClip(j,a)}var i=b.getConfig();var h=(a==-1)?i.clip:i.playlist[a];o(h,j,true)},_fireEvent:function(k,i,l,h){if(k=="onLoad"){s(f,function(n,D){if(D[0]){b._api().fp_addCuepoints(D[0],a,n)}});return false}h=h||g;if(k=="onCuepoint"){var j=f[i];if(j){return j[1].call(b,h,l)}}if(i&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(k)!=-1){o(h,i);if(i.metaData){if(!h.duration){h.duration=i.metaData.duration}else{h.fullDuration=i.metaData.duration}}}var m=true;s(d[k],function(){m=this.call(b,h,i,l)});return m}});if(c.onCuepoint){var e=c.onCuepoint;g.onCuepoint.apply(g,typeof e=="function"?[e]:e);delete c.onCuepoint}s(c,function(h,i){if(typeof i=="function"){p(d,h,i);delete c[h]}});if(a==-1){b.onCuepoint=this.onCuepoint}};var r=function(f,a,g,c){var e=this,b={},d=false;if(c){o(b,c)}s(a,function(h,i){if(typeof i=="function"){b[h]=i;delete a[h]}});o(this,{animate:function(i,j,h){if(!i){return e}if(typeof j=="function"){h=j;j=500}if(typeof i=="string"){var l=i;i={};i[l]=j;j=500}if(h){var k=y();b[k]=h}if(j===undefined){j=500}a=g._api().fp_animate(f,i,j,k);return e},css:function(j,h){if(h!==undefined){var i={};i[j]=h;j=i}a=g._api().fp_css(f,j);o(e,a);return e},show:function(){this.display="block";g._api().fp_showPlugin(f);return e},hide:function(){this.display="none";g._api().fp_hidePlugin(f);return e},toggle:function(){this.display=g._api().fp_togglePlugin(f);return e},fadeTo:function(i,h,k){if(typeof h=="function"){k=h;h=500}if(k){var j=y();b[j]=k}this.display=g._api().fp_fadeTo(f,i,h,j);this.opacity=i;return e},fadeIn:function(i,h){return e.fadeTo(1,i,h)},fadeOut:function(i,h){return e.fadeTo(0,i,h)},getName:function(){return f},getPlayer:function(){return g},_fireEvent:function(l,k,h){if(l=="onUpdate"){var j=g._api().fp_getPlugin(f);if(!j){return}o(e,j);delete e.methods;if(!d){s(j.methods,function(){var n=""+this;e[n]=function(){var E=[].slice.call(arguments);var F=g._api().fp_invoke(f,n,E);return F==="undefined"||F===undefined?e:F}});d=true}}var m=b[l];if(m){var i=m.apply(e,k);if(l.slice(0,1)=="_"){delete b[l]}return i}return e}})};function v(d,K,g){var j=this,i=null,H=false,h,f,J=[],a={},L={},I,e,c,n,k,l;o(j,{id:function(){return I},isLoaded:function(){return(i!==null&&i.fp_play!==undefined&&!H)},getParent:function(){return d},hide:function(C){if(C){d.style.height="0px"}if(j.isLoaded()){i.style.height="0px"}return j},show:function(){d.style.height=l+"px";if(j.isLoaded()){i.style.height=k+"px"}return j},isHidden:function(){return j.isLoaded()&&parseInt(i.style.height,10)===0},load:function(E){if(!j.isLoaded()&&j._fireEvent("onBeforeLoad")!==false){var C=function(){h=d.innerHTML;if(h&&!flashembed.isSupported(K.version)){d.innerHTML=""}if(E){E.cached=true;p(L,"onLoad",E)}flashembed(d,K,{config:g})};var D=0;s(u,function(){this.unload(function(F){if(++D==u.length){C()}})})}return j},unload:function(E){if(this.isFullscreen()&&/WebKit/i.test(navigator.userAgent)){if(E){E(false)}return j}if(h.replace(/\s/g,"")!==""){if(j._fireEvent("onBeforeUnload")===false){if(E){E(false)}return j}H=true;try{if(i){i.fp_close();j._fireEvent("onUnload")}}catch(C){}var D=function(){i=null;d.innerHTML=h;H=false;if(E){E(true)}};setTimeout(D,50)}else{if(E){E(false)}}return j},getClip:function(C){if(C===undefined){C=n}return J[C]},getCommonClip:function(){return f},getPlaylist:function(){return J},getPlugin:function(C){var E=a[C];if(!E&&j.isLoaded()){var D=j._api().fp_getPlugin(C);if(D){E=new r(C,D,j);a[C]=E}}return E},getScreen:function(){return j.getPlugin("screen")},getControls:function(){return j.getPlugin("controls")._fireEvent("onUpdate")},getLogo:function(){try{return j.getPlugin("logo")._fireEvent("onUpdate")}catch(C){}},getPlay:function(){return j.getPlugin("play")._fireEvent("onUpdate")},getConfig:function(C){return C?q(g):g},getFlashParams:function(){return K},loadPlugin:function(P,O,D,C){if(typeof D=="function"){C=D;D={}}var G=C?y():"_";j._api().fp_loadPlugin(P,O,D,G);var F={};F[G]=C;var E=new r(P,null,j,F);a[P]=E;return E},getState:function(){return j.isLoaded()?i.fp_getState():-1},play:function(D,C){var E=function(){if(D!==undefined){j._api().fp_play(D,C)}else{j._api().fp_play()}};if(j.isLoaded()){E()}else{if(H){setTimeout(function(){j.play(D,C)},50)}else{j.load(function(){E()})}}return j},getVersion:function(){var D="flowplayer.js 3.2.6";if(j.isLoaded()){var C=i.fp_getVersion();C.push(D);return C}return D},_api:function(){if(!j.isLoaded()){throw"Flowplayer "+j.id()+" not loaded when calling an API method"}return i},setClip:function(C){j.setPlaylist([C]);return j},getIndex:function(){return c},_swfHeight:function(){return i.clientHeight}});s(("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut").split(","),function(){var C="on"+this;if(C.indexOf("*")!=-1){C=C.slice(0,C.length-1);var D="onBefore"+C.slice(2);j[D]=function(E){p(L,D,E);return j}}j[C]=function(E){p(L,C,E);return j}});s(("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed,setKeyboardShortcutsEnabled,isKeyboardShortcutsEnabled").split(","),function(){var C=this;j[C]=function(E,D){if(!j.isLoaded()){return j}var F=null;if(E!==undefined&&D!==undefined){F=i["fp_"+C](E,D)}else{F=(E===undefined)?i["fp_"+C]():i["fp_"+C](E)}return F==="undefined"||F===undefined?j:F}});j._fireEvent=function(D){if(typeof D=="string"){D=[D]}var E=D[0],X=D[1],V=D[2],U=D[3],T=0;if(g.debug){A(D)}if(!j.isLoaded()&&E=="onLoad"&&X=="player"){i=i||w(e);k=j._swfHeight();s(J,function(){this._fireEvent("onLoad")});s(a,function(M,N){N._fireEvent("onUpdate")});f._fireEvent("onLoad")}if(E=="onLoad"&&X!="player"){return}if(E=="onError"){if(typeof X=="string"||(typeof X=="number"&&typeof V=="number")){X=V;V=U}}if(E=="onContextMenu"){s(g.contextMenu[X],function(M,N){N.call(j)});return}if(E=="onPluginEvent"||E=="onBeforePluginEvent"){var F=X.name||X;var G=a[F];if(G){G._fireEvent("onUpdate",X);return G._fireEvent(V,D.slice(3))}return}if(E=="onPlaylistReplace"){J=[];var W=0;s(X,function(){J.push(new B(this,W++,j))})}if(E=="onClipAdd"){if(X.isInStream){return}X=new B(X,V,j);J.splice(V,0,X);for(T=V+1;T<J.length;T++){J[T].index++}}var C=true;if(typeof X=="number"&&X<J.length){n=X;var S=J[X];if(S){C=S._fireEvent(E,V,U)}if(!S||C!==false){C=f._fireEvent(E,V,U,S)}}s(L[E],function(){C=this.call(j,X,V);if(this.cached){L[E].splice(T,1)}if(C===false){return false}T++});return C};function m(){if($f(d)){$f(d).getParent().innerHTML="";c=$f(d).getIndex();u[c]=j}else{u.push(j);c=u.length-1}l=parseInt(d.style.height,10)||d.clientHeight;I=d.id||"fp"+y();e=K.id||I+"_api";K.id=e;g.playerId=I;if(typeof g=="string"){g={clip:{url:g}}}if(typeof g.clip=="string"){g.clip={url:g.clip}}g.clip=g.clip||{};if(d.getAttribute("href",2)&&!g.clip.url){g.clip.url=d.getAttribute("href",2)}f=new B(g.clip,-1,j);g.playlist=g.playlist||[g.clip];var D=0;s(g.playlist,function(){var F=this;if(typeof F=="object"&&F.length){F={url:""+F}}s(g.clip,function(G,N){if(N!==undefined&&F[G]===undefined&&typeof N!="function"){F[G]=N}});g.playlist[D]=F;F=new B(F,D,j);J.push(F);D++});s(g,function(G,F){if(typeof F=="function"){if(f[G]){f[G](F)}else{p(L,G,F)}delete g[G]}});s(g.plugins,function(G,F){if(F){a[G]=new r(G,F,j)}});if(!g.plugins||g.plugins.controls===undefined){a.controls=new r("controls",null,j)}a.canvas=new r("canvas",null,j);h=d.innerHTML;function E(F){var G=j.hasiPadSupport&&j.hasiPadSupport();if(/iPad|iPhone|iPod/i.test(navigator.userAgent)&&!/.flv$/i.test(J[0].url)&&!G){return true}if(!j.isLoaded()&&j._fireEvent("onBeforeClick")!==false){j.load()}return z(F)}function C(){if(h.replace(/\s/g,"")!==""){if(d.addEventListener){d.addEventListener("click",E,false)}else{if(d.attachEvent){d.attachEvent("onclick",E)}}}else{if(d.addEventListener){d.addEventListener("click",z,false)}j.load()}}setTimeout(C,0)}if(typeof d=="string"){var b=w(d);if(!b){throw"Flowplayer cannot access element: "+d}d=b;m()}else{m()}}var u=[];function x(a){this.length=a.length;this.each=function(b){s(a,b)};this.size=function(){return a.length}}window.flowplayer=window.$f=function(){var e=null;var c=arguments[0];if(!arguments.length){s(u,function(){if(this.isLoaded()){e=this;return false}});return e||u[0]}if(arguments.length==1){if(typeof c=="number"){return u[c]}else{if(c=="*"){return new x(u)}s(u,function(){if(this.id()==c.id||this.id()==c||this.getParent()==c){e=this;return false}});return e}}if(arguments.length>1){var d=arguments[1],f=(arguments.length==3)?arguments[2]:{};if(typeof d=="string"){d={src:d}}d=o({bgcolor:"#000000",version:[9,0],expressInstall:"http://static.flowplayer.org/swf/expressinstall.swf",cachebusting:false},d);if(typeof c=="string"){if(c.indexOf(".")!=-1){var b=[];s(t(c),function(){b.push(new v(this,q(d),q(f)))});return new x(b)}else{var a=w(c);return new v(a!==null?a:c,d,f)}}else{if(c){return new v(c,d,f)}}}return null};o(window.$f,{fireEvent:function(){var a=[].slice.call(arguments);var b=$f(a[0]);return b?b._fireEvent(a.slice(1)):null},addPlugin:function(a,b){v.prototype[a]=b;return $f},each:s,extend:o});if(typeof jQuery=="function"){jQuery.fn.flowplayer=function(c,b){if(!arguments.length||typeof arguments[0]=="number"){var a=[];this.each(function(){var d=$f(this);if(d){a.push(d)}});return arguments.length?a[arguments[0]]:new x(a)}return this.each(function(){$f(this,q(c),b?q(b):{})})}}})();(function(){var q=typeof jQuery=="function";var k={width:"100%",height:"100%",allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(q){jQuery.tools=jQuery.tools||{};jQuery.tools.flashembed={version:"1.0.4",conf:k}}function l(){if(o.done){return false}var b=document;if(b&&b.getElementsByTagName&&b.getElementById&&b.body){clearInterval(o.timer);o.timer=null;for(var a=0;a<o.ready.length;a++){o.ready[a].call()}o.ready=null;o.done=true}}var o=q?jQuery:function(a){if(o.done){return a()}if(o.timer){o.ready.push(a)}else{o.ready=[a];o.timer=setInterval(l,13)}};function r(b,a){if(a){for(key in a){if(a.hasOwnProperty(key)){b[key]=a[key]}}}return b}function s(b){switch(t(b)){case"string":b=b.replace(new RegExp('(["\\\\])',"g"),"\\$1");b=b.replace(/^\s?(\d+)%/,"$1pct");return'"'+b+'"';case"array":return"["+n(b,function(d){return s(d)}).join(",")+"]";case"function":return'"function()"';case"object":var c=[];for(var a in b){if(b.hasOwnProperty(a)){c.push('"'+a+'":'+s(b[a]))}}return"{"+c.join(",")+"}"}return String(b).replace(/\s/g," ").replace(/\'/g,'"')}function t(b){if(b===null||b===undefined){return false}var a=typeof b;return(a=="object"&&b.push)?"array":a}if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function n(c,b){var a=[];for(var d in c){if(c.hasOwnProperty(d)){a[d]=b(c[d])}}return a}function m(f,h){var e=r({},f);var g=document.all;var c='<object width="'+e.width+'" height="'+e.height+'"';if(g&&!e.id){e.id="_"+(""+Math.random()).substring(9)}if(e.id){c+=' id="'+e.id+'"'}if(e.cachebusting){e.src+=((e.src.indexOf("?")!=-1?"&":"?")+Math.random())}if(e.w3c||!g){c+=' data="'+e.src+'" type="application/x-shockwave-flash"'}else{c+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}c+=">";if(e.w3c||g){c+='<param name="movie" value="'+e.src+'" />'}e.width=e.height=e.id=e.w3c=e.src=null;for(var a in e){if(e[a]!==null){c+='<param name="'+a+'" value="'+e[a]+'" />'}}var d="";if(h){for(var b in h){if(h[b]!==null){d+=b+"="+(typeof h[b]=="object"?s(h[b]):h[b])+"&"}}d=d.substring(0,d.length-1);c+='<param name="flashvars" value=\''+d+"' />"}c+="</object>";return c}function p(c,f,b){var a=flashembed.getVersion();r(this,{getContainer:function(){return c},getConf:function(){return f},getVersion:function(){return a},getFlashvars:function(){return b},getApi:function(){return c.firstChild},getHTML:function(){return m(f,b)}});var g=f.version;var h=f.expressInstall;var e=!g||flashembed.isSupported(g);if(e){f.onFail=f.version=f.expressInstall=null;c.innerHTML=m(f,b)}else{if(g&&h&&flashembed.isSupported([6,65])){r(f,{src:h});b={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};c.innerHTML=m(f,b)}else{if(c.innerHTML.replace(/\s/g,"")!==""){}else{c.innerHTML="<h2>Flash version "+g+" or greater is required</h2><h3>"+(a[0]>0?"Your version is "+a:"You have no flash plugin installed")+"</h3>"+(c.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='http://www.adobe.com/go/getflashplayer'>here</a></p>");if(c.tagName=="A"){c.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"}}}}}if(!e&&f.onFail){var d=f.onFail.call(this);if(typeof d=="string"){c.innerHTML=d}}if(document.all){window[f.id]=document.getElementById(f.id)}}window.flashembed=function(e,a,d){if(typeof e=="string"){var b=document.getElementById(e);if(b){e=b}else{o(function(){flashembed(e,a,d)});return}}if(!e){return}if(typeof a=="string"){a={src:a}}var c=r({},k);r(c,a);return new p(e,c,d)};r(window.flashembed,{getVersion:function(){var c=[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var b=navigator.plugins["Shockwave Flash"].description;if(typeof b!="undefined"){b=b.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var d=parseInt(b.replace(/^(.*)\..*$/,"$1"),10);var h=/r/.test(b)?parseInt(b.replace(/^.*r(.*)$/,"$1"),10):0;c=[d,h]}}else{if(window.ActiveXObject){try{var f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(g){try{f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");c=[6,0];f.AllowScriptAccess="always"}catch(a){if(c[0]==6){return c}}try{f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){}}if(typeof f=="object"){b=f.GetVariable("$version");if(typeof b!="undefined"){b=b.replace(/^\S+\s+(.*)$/,"$1").split(",");c=[parseInt(b[0],10),parseInt(b[2],10)]}}}}return c},isSupported:function(b){var a=flashembed.getVersion();var c=(a[0]>b[0])||(a[0]==b[0]&&a[1]>=b[1]);return c},domReady:o,asString:s,getHTML:m});if(q){jQuery.fn.flashembed=function(c,b){var a=null;this.each(function(){a=flashembed(this,c,b)});return c.api===false?this:a}}})();var translations={close:"Close",vpError:"Video player error",flashRV:"This video player requires Flash version %.",flashYV:"Your version is %.",flashNI:"You have no Flash plugin installed.",flashDL:"Download the latest version from Adobe.",again:"Play again"};function setTranslations(a){switch(a.toLowerCase()){case"de":translations={close:"Schließen",vpError:"Fehler Videoplayer",flashRV:"Dieser Videoplayer erfordert Flash Version %.",flashYV:"Sie nutzen Version %.",flashNI:"Sie haben kein Flash Plugin installiert.",flashDL:"Laden Sie sich die neueste Version von Adobe herunter.",again:"Nochmals abspielen"};break;case"es":translations={close:"Cerrar",vpError:"Error del reproductor de vídeo",flashRV:"Este reproductor de vídeo requiere Flash versión %.",flashYV:"Su versión es %.",flashNI:"No está instalado el plugin Flash.",flashDL:"Descargue la última versión en Adobe.",again:"Reproducir de nuevo"};break;case"jp":translations={close:"閉じる",vpError:"ビデオプレイヤーエラー",flashRV:"この動画をご覧いただくためには Flash バージョン % が必要です。",flashYV:"インストールされているバージョンは % です。",flashNI:"Flash プラグインがインストールされていません。",flashDL:"最新バージョンを Adobe からダウンロードしてください。",again:"もう一度再生する"};break;case"zh":translations={close:"关闭",vpError:"视频播放器错误",flashRV:"本视频播放器需要Flash版本%。",flashYV:"您的版本是%。",flashNI:"您没有安装Flash插件。",flashDL:"从Adobe下载最新版本。",again:"重新播放"};break;default:break}}function setTranslationsFromUrl(){code=(/\/([a-z]{2})\/[^\/]+$/i.exec(window.location.href)||/:\/\/[^\/]+\/(?:zh-)?([a-z]{2})[-,\/]/i.exec(window.location.href)||{1:"en"})[1];setTranslations(code)}function getLicenceKey(){switch(document.domain.toLowerCase().replace(/www\.|resources\.|:\d{1,6}/g,"")){case"localhost":return"#@d120d7af4975dee766a";case"derby":return"#@89ae8c2ca79ea015349";case"stoke":return"#@a6518ea3e707926d90c";case"pulseteq.com":return"#@e1dd6e71e7f06549b2f";case"renishaw.at":return"#@ebe3ac3de8052fb22c6";case"renishaw.be":return"#@80a6c84f1e58bf57561";case"renishaw.ch":return"#@b443c748c719ab5e75c";case"renishaw.co.in":return"#@556a7fd5ad033649864";case"renishaw.co.kr":return"#@f4e9df7eaa9fe78989b";case"renishaw.co.pt":return"#@ce9eb53d8164901771b";case"renishaw.com":return"#@5825a905406ea98c180";case"renishaw.com.br":return"#@71674450392c34325b3";case"renishaw.com.cn":return"#@90ba319bd4423aab8d3";case"renishaw.com.sg":return"#@2e15ac6a4f45ca1b55a";case"renishaw.com.tr":return"#@8ffb0d9b2a3cd42604a";case"renishaw.com.tw":return"#@b95f0779877103579c6";case"renishaw.cz":return"#@74fbb62e3ce4905367c";case"renishaw.de":return"#@17ac8820556a6abef34";case"renishaw.es":return"#@5739f46233f1206e602";case"renishaw.fr":return"#@2f91f4b001018681c72";case"renishaw.info":return"#@37e6892f1bc5df216ea";case"renishaw.it":return"#@5c4b10f46642cde0766";case"renishaw.jp":return"#@02fffc296c9a1dfd366";case"renishaw.net":return"#@7ad9263dd78f6a908c1";case"renishaw.nl":return"#@3f3cd81673b78f567b7";case"renishaw.pl":return"#@bf5eb0705b578620960";case"renishaw.ru":return"#@452227feeb1489f03e4";case"renishaw.se":return"#@be151d7ac05769d80e8";case"renishaw.si":return"#@f4fbe8fe39f217e7ca6";case"renishawdiagnostics.com":return"#@95767b3fd2f3f6aa92f";case"renishawsupport.com":return"#@569acbb718ee799db8b";case"mdl.co.uk":return"#@f4b2e14971822edaae0";default:return""}}function setupVideo(){setTranslationsFromUrl();$f("a.media-vid-player",{src:"/shared/flash/flowplayer.commercial-3.2.7.swf",version:[9,115]},{key:getLicenceKey(),clip:{autoBuffering:true,autoPlay:true,scaling:"fit"},onError:function(a,b){if(!b){b=a?": "+a:""}if($("#media-vid-error").length<1){$(this.getParent()).after('<div id="media-vid-error" class="error"><a class="media-vid-error-close" onclick="$f().unload(); $(\'div.error\').empty();">'+translations.close+"</a></div>")}$("#media-vid-error").append("<p><strong>"+translations.vpError+"</strong>"+b+"</p>")}})};var mediaGalTimeout;function mediaGalScroll(d){var c=(d.substring(0,7)=="arrBwd_");var a=$("#"+d.substring(7));var b;if(c){b=a.children("li:last-child");b.clone(true).prependTo(a)}else{b=a.children("li:first-child");b.clone(true).appendTo(a)}b.remove();mediaGalTimeout=window.setTimeout('mediaGalScroll("'+d+'");',200)}(function(){$(function(){if(($.browser.msie&&$.browser.version<9)){$("a.mediaGallery[title]").attr("title",function(){return this.title.replace(/\n+|(\&#10;)+/,"|")})}$("ul.mediaGallery").each(function(){Shadowbox.setup("#"+this.id+"  li a",{gallery:this.id.substring(19)})});$("ul.mediaGalleryLine").each(function(){$(this).css("overflow","hidden");$(this).before('<div id="arrBwd_'+this.id+'" class="arrowBack"></div><div id="arrFwd_'+this.id+'" class="arrowFwd"></div>')});$(".arrowFwd,.arrowBack").mousedown(function(){mediaGalScroll(this.id)});$(".arrowFwd,.arrowBack").mouseup(function(){window.clearTimeout(mediaGalTimeout);if(window.getSelection){window.getSelection().removeAllRanges()}})})})();
