/*
 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
 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/
*/
var a;
(function(){function n(b,c){c.src?d.ajax({url:c.src,async:false,dataType:"script"}):d.globalEval(c.text||c.textContent||c.innerHTML||"");c.parentNode&&c.parentNode.removeChild(c)}function t(){return+new Date}function w(b,c){return b[0]&&parseInt(d.curCSS(b[0],c,true),10)||0}function y(){return false}function q(){return true}function F(b){var c=RegExp("(^|\\.)"+b.type+"(\\.|$)"),e=true,g=[];d.each(d.data(this,"events").live||[],function(i,k){if(c.test(k.type))(i=d(b.target).closest(k.data)[0])&&g.push({elem:i,
fn:k})});g.sort(function(i,k){return d.data(i.elem,"closest")-d.data(k.elem,"closest")});d.each(g,function(){if(this.fn.call(this.elem,b,this.fn.data)===false)return e=false});return e}function E(b,c){return["live",b,c.replace(/\./g,"`").replace(/ /g,"|")].join(".")}function Q(){if(!ea){ea=true;if(document.addEventListener)document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);d.ready()},false);else if(document.attachEvent){document.attachEvent("onreadystatechange",
function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);d.ready()}});document.documentElement.doScroll&&r==r.top&&function(){if(!d.isReady){try{document.documentElement.doScroll("left")}catch(b){setTimeout(arguments.callee,0);return}d.ready()}}()}d.event.add(r,"load",d.ready)}}function K(b,c){var e={};d.each(fa.concat.apply([],fa.slice(0,c)),function(){e[this]=b});return e}var r=this,z,L=r.jQuery,R=r.$,d=r.jQuery=r.$=function(b,c){return new d.fn.init(b,
c)},N=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,V=/^.[^:#\[\.,]*$/;d.fn=d.prototype={init:function(b,c){b=b||document;if(b.nodeType){this[0]=b;this.length=1;this.context=b;return this}if(typeof b==="string"){var e=N.exec(b);if(e&&(e[1]||!c))if(e[1])b=d.clean([e[1]],c);else{if((c=document.getElementById(e[3]))&&c.id!=e[3])return d().find(b);e=d(c||[]);e.context=document;e.selector=b;return e}else return d(c).find(b)}else if(d.isFunction(b))return d(document).ready(b);if(b.selector&&b.context){this.selector=
b.selector;this.context=b.context}return this.setArray(d.isArray(b)?b:d.makeArray(b))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(b){return b===z?Array.prototype.slice.call(this):this[b]},pushStack:function(b,c,e){b=d(b);b.prevObject=this;b.context=this.context;if(c==="find")b.selector=this.selector+(this.selector?" ":"")+e;else if(c)b.selector=this.selector+"."+c+"("+e+")";return b},setArray:function(b){this.length=0;Array.prototype.push.apply(this,b);return this},
each:function(b,c){return d.each(this,b,c)},index:function(b){return d.inArray(b&&b.jquery?b[0]:b,this)},attr:function(b,c,e){var g=b;if(typeof b==="string")if(c===z)return this[0]&&d[e||"attr"](this[0],b);else{g={};g[b]=c}return this.each(function(i){for(b in g)d.attr(e?this.style:this,b,d.prop(this,g[b],e,i,b))})},css:function(b,c){if((b=="width"||b=="height")&&parseFloat(c)<0)c=z;return this.attr(b,c,"curCSS")},text:function(b){if(typeof b!=="object"&&b!=null)return this.empty().append((this[0]&&
this[0].ownerDocument||document).createTextNode(b));var c="";d.each(b||this,function(){d.each(this.childNodes,function(){if(this.nodeType!=8)c+=this.nodeType!=1?this.nodeValue:d.fn.text([this])})});return c},wrapAll:function(b){if(this[0]){b=d(b,this[0].ownerDocument).clone();this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var c=this;c.firstChild;)c=c.firstChild;return c}).append(this)}return this},wrapInner:function(b){return this.each(function(){d(this).contents().wrapAll(b)})},
wrap:function(b){return this.each(function(){d(this).wrapAll(b)})},append:function(){return this.domManip(arguments,true,function(b){this.nodeType==1&&this.appendChild(b)})},prepend:function(){return this.domManip(arguments,true,function(b){this.nodeType==1&&this.insertBefore(b,this.firstChild)})},before:function(){return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)})},after:function(){return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,
this.nextSibling)})},end:function(){return this.prevObject||d([])},push:[].push,sort:[].sort,splice:[].splice,find:function(b){if(this.length===1){var c=this.pushStack([],"find",b);c.length=0;d.find(b,this[0],c);return c}else return this.pushStack(d.unique(d.map(this,function(e){return d.find(b,e)})),"find",b)},clone:function(b){var c=this.map(function(){if(!d.support.noCloneEvent&&!d.isXMLDoc(this)){var i=this.outerHTML;if(!i){i=this.ownerDocument.createElement("div");i.appendChild(this.cloneNode(true));
i=i.innerHTML}return d.clean([i.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else return this.cloneNode(true)});if(b===true){var e=this.find("*").andSelf(),g=0;c.find("*").andSelf().each(function(){if(this.nodeName===e[g].nodeName){var i=d.data(e[g],"events");for(var k in i)for(var m in i[k])d.event.add(this,k,i[k][m],i[k][m].data);g++}})}return c},filter:function(b){return this.pushStack(d.isFunction(b)&&d.grep(this,function(c,e){return b.call(c,e)})||d.multiFilter(b,d.grep(this,
function(c){return c.nodeType===1})),"filter",b)},closest:function(b){var c=d.expr.match.POS.test(b)?d(b):null,e=0;return this.map(function(){for(var g=this;g&&g.ownerDocument;){if(c?c.index(g)>-1:d(g).is(b)){d.data(g,"closest",e);return g}g=g.parentNode;e++}})},not:function(b){if(typeof b==="string")if(V.test(b))return this.pushStack(d.multiFilter(b,this,true),"not",b);else b=d.multiFilter(b,this);var c=b.length&&b[b.length-1]!==z&&!b.nodeType;return this.filter(function(){return c?d.inArray(this,
b)<0:this!=b})},add:function(b){return this.pushStack(d.unique(d.merge(this.get(),typeof b==="string"?d(b):d.makeArray(b))))},is:function(b){return!!b&&d.multiFilter(b,this).length>0},hasClass:function(b){return!!b&&this.is("."+b)},val:function(b){if(b===z){var c=this[0];if(c){if(d.nodeName(c,"option"))return(c.attributes.value||{}).specified?c.value:c.text;if(d.nodeName(c,"select")){var e=c.selectedIndex,g=[],i=c.options;c=c.type=="select-one";if(e<0)return null;var k=c?e:0;for(e=c?e+1:i.length;k<
e;k++){var m=i[k];if(m.selected){b=d(m).val();if(c)return b;g.push(b)}}return g}return(c.value||"").replace(/\r/g,"")}return z}if(typeof b==="number")b+="";return this.each(function(){if(this.nodeType==1)if(d.isArray(b)&&/radio|checkbox/.test(this.type))this.checked=d.inArray(this.value,b)>=0||d.inArray(this.name,b)>=0;else if(d.nodeName(this,"select")){var o=d.makeArray(b);d("option",this).each(function(){this.selected=d.inArray(this.value,o)>=0||d.inArray(this.text,o)>=0});if(!o.length)this.selectedIndex=
-1}else this.value=b})},html:function(b){return b===z?this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null:this.empty().append(b)},replaceWith:function(b){return this.after(b).remove()},eq:function(b){return this.slice(b,+b+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(b){return this.pushStack(d.map(this,function(c,e){return b.call(c,e,c)}))},andSelf:function(){return this.add(this.prevObject)},
domManip:function(b,c,e){function g(G,J){return c&&d.nodeName(G,"table")&&d.nodeName(J,"tr")?G.getElementsByTagName("tbody")[0]||G.appendChild(G.ownerDocument.createElement("tbody")):G}if(this[0]){var i=(this[0].ownerDocument||this[0]).createDocumentFragment();b=d.clean(b,this[0].ownerDocument||this[0],i);var k=i.firstChild;if(k)for(var m=0,o=this.length;m<o;m++)e.call(g(this[m],k),this.length>1||m>0?i.cloneNode(true):i);b&&d.each(b,n)}return this}};d.fn.init.prototype=d.fn;d.extend=d.fn.extend=function(){var b=
arguments[0]||{},c=1,e=arguments.length,g=false,i;if(typeof b==="boolean"){g=b;b=arguments[1]||{};c=2}if(typeof b!=="object"&&!d.isFunction(b))b={};if(e==c){b=this;--c}for(;c<e;c++)if((i=arguments[c])!=null)for(var k in i){var m=b[k],o=i[k];if(b!==o)if(g&&o&&typeof o==="object"&&!o.nodeType)b[k]=d.extend(g,m||(o.length!=null?[]:{}),o);else if(o!==z)b[k]=o}return b};var v=/z-?index|font-?weight|opacity|zoom|line-?height/i,X=document.defaultView||{},Y=Object.prototype.toString;d.extend({noConflict:function(b){r.$=
R;if(b)r.jQuery=L;return d},isFunction:function(b){return Y.call(b)==="[object Function]"},isArray:function(b){return Y.call(b)==="[object Array]"},isXMLDoc:function(b){return b.nodeType===9&&b.documentElement.nodeName!=="HTML"||!!b.ownerDocument&&d.isXMLDoc(b.ownerDocument)},globalEval:function(b){if(b&&/\S/.test(b)){var c=document.getElementsByTagName("head")[0]||document.documentElement,e=document.createElement("script");e.type="text/javascript";if(d.support.scriptEval)e.appendChild(document.createTextNode(b));
else e.text=b;c.insertBefore(e,c.firstChild);c.removeChild(e)}},nodeName:function(b,c){return b.nodeName&&b.nodeName.toUpperCase()==c.toUpperCase()},each:function(b,c,e){var g,i=0,k=b.length;if(e)if(k===z)for(g in b){if(c.apply(b[g],e)===false)break}else for(;i<k;){if(c.apply(b[i++],e)===false)break}else if(k===z)for(g in b){if(c.call(b[g],g,b[g])===false)break}else for(e=b[0];i<k&&c.call(e,i,e)!==false;e=b[++i]);return b},prop:function(b,c,e,g,i){if(d.isFunction(c))c=c.call(b,g);return typeof c===
"number"&&e=="curCSS"&&!v.test(i)?c+"px":c},className:{add:function(b,c){d.each((c||"").split(/\s+/),function(e,g){if(b.nodeType==1&&!d.className.has(b.className,g))b.className+=(b.className?" ":"")+g})},remove:function(b,c){if(b.nodeType==1)b.className=c!==z?d.grep(b.className.split(/\s+/),function(e){return!d.className.has(c,e)}).join(" "):""},has:function(b,c){return b&&d.inArray(c,(b.className||b).toString().split(/\s+/))>-1}},swap:function(b,c,e){var g={};for(var i in c){g[i]=b.style[i];b.style[i]=
c[i]}e.call(b);for(i in c)b.style[i]=g[i]},css:function(b,c,e,g){if(c=="width"||c=="height"){var i;e={position:"absolute",visibility:"hidden",display:"block"};var k=c=="width"?["Left","Right"]:["Top","Bottom"];function m(){i=c=="width"?b.offsetWidth:b.offsetHeight;g!=="border"&&d.each(k,function(){g||(i-=parseFloat(d.curCSS(b,"padding"+this,true))||0);if(g==="margin")i+=parseFloat(d.curCSS(b,"margin"+this,true))||0;else i-=parseFloat(d.curCSS(b,"border"+this+"Width",true))||0})}b.offsetWidth!==0?
m():d.swap(b,e,m);return Math.max(0,Math.round(i))}return d.curCSS(b,c,e)},curCSS:function(b,c,e){var g,i=b.style;if(c=="opacity"&&!d.support.opacity){g=d.attr(i,"opacity");return g==""?"1":g}if(c.match(/float/i))c=$;if(!e&&i&&i[c])g=i[c];else if(X.getComputedStyle){if(c.match(/float/i))c="float";c=c.replace(/([A-Z])/g,"-$1").toLowerCase();if(b=X.getComputedStyle(b,null))g=b.getPropertyValue(c);if(c=="opacity"&&g=="")g="1"}else if(b.currentStyle){g=c.replace(/\-(\w)/g,function(k,m){return m.toUpperCase()});
g=b.currentStyle[c]||b.currentStyle[g];if(!/^\d+(px)?$/i.test(g)&&/^\d/.test(g)){c=i.left;e=b.runtimeStyle.left;b.runtimeStyle.left=b.currentStyle.left;i.left=g||0;g=i.pixelLeft+"px";i.left=c;b.runtimeStyle.left=e}}return g},clean:function(b,c,e){c=c||document;if(typeof c.createElement==="undefined")c=c.ownerDocument||c[0]&&c[0].ownerDocument||document;if(!e&&b.length===1&&typeof b[0]==="string"){var g=/^<(\w+)\s*\/?>$/.exec(b[0]);if(g)return[c.createElement(g[1])]}var i=[];g=[];var k=c.createElement("div");
d.each(b,function(m,o){if(typeof o==="number")o+="";if(o){if(typeof o==="string"){o=o.replace(/(<(\w+)[^>]*?)\/>/g,function(H,O,S){return S.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?H:O+"></"+S+">"});m=o.replace(/^\s+/,"").substring(0,10).toLowerCase();var G=!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>"]||!d.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];for(k.innerHTML=G[1]+o+G[2];G[0]--;)k=k.lastChild;if(!d.support.tbody){var J=/<tbody/i.test(o);m=!m.indexOf("<table")&&!J?k.firstChild&&k.firstChild.childNodes:G[1]=="<table>"&&!J?k.childNodes:[];for(G=m.length-1;G>=0;--G)d.nodeName(m[G],"tbody")&&
!m[G].childNodes.length&&m[G].parentNode.removeChild(m[G])}!d.support.leadingWhitespace&&/^\s/.test(o)&&k.insertBefore(c.createTextNode(o.match(/^\s*/)[0]),k.firstChild);o=d.makeArray(k.childNodes)}if(o.nodeType)i.push(o);else i=d.merge(i,o)}});if(e){for(b=0;i[b];b++)if(d.nodeName(i[b],"script")&&(!i[b].type||i[b].type.toLowerCase()==="text/javascript"))g.push(i[b].parentNode?i[b].parentNode.removeChild(i[b]):i[b]);else{i[b].nodeType===1&&i.splice.apply(i,[b+1,0].concat(d.makeArray(i[b].getElementsByTagName("script"))));
e.appendChild(i[b])}return g}return i},attr:function(b,c,e){if(!b||b.nodeType==3||b.nodeType==8)return z;var g=!d.isXMLDoc(b),i=e!==z;c=g&&d.props[c]||c;if(b.tagName){var k=/href|src|style/.test(c);if(c in b&&g&&!k){if(i){if(c=="type"&&d.nodeName(b,"input")&&b.parentNode)throw"type property can't be changed";b[c]=e}if(d.nodeName(b,"form")&&b.getAttributeNode(c))return b.getAttributeNode(c).nodeValue;if(c=="tabIndex")return(c=b.getAttributeNode("tabIndex"))&&c.specified?c.value:b.nodeName.match(/(button|input|object|select|textarea)/i)?
0:b.nodeName.match(/^(a|area)$/i)&&b.href?0:z;return b[c]}if(!d.support.style&&g&&c=="style")return d.attr(b.style,"cssText",e);i&&b.setAttribute(c,""+e);b=!d.support.hrefNormalized&&g&&k?b.getAttribute(c,2):b.getAttribute(c);return b===null?z:b}if(!d.support.opacity&&c=="opacity"){if(i){b.zoom=1;b.filter=(b.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(e)+""=="NaN"?"":"alpha(opacity="+e*100+")")}return b.filter&&b.filter.indexOf("opacity=")>=0?parseFloat(b.filter.match(/opacity=([^)]*)/)[1])/
100+"":""}c=c.replace(/-([a-z])/ig,function(m,o){return o.toUpperCase()});if(i)b[c]=e;return b[c]},trim:function(b){return(b||"").replace(/^\s+|\s+$/g,"")},makeArray:function(b){var c=[];if(b!=null){var e=b.length;if(e==null||typeof b==="string"||d.isFunction(b)||b.setInterval)c[0]=b;else for(;e;)c[--e]=b[e]}return c},inArray:function(b,c){for(var e=0,g=c.length;e<g;e++)if(c[e]===b)return e;return-1},merge:function(b,c){var e=0,g,i=b.length;if(d.support.getAll)for(;(g=c[e++])!=null;)b[i++]=g;else for(;(g=
c[e++])!=null;)if(g.nodeType!=8)b[i++]=g;return b},unique:function(b){var c=[],e={};try{for(var g=0,i=b.length;g<i;g++){var k=d.data(b[g]);if(!e[k]){e[k]=true;c.push(b[g])}}}catch(m){c=b}return c},grep:function(b,c,e){for(var g=[],i=0,k=b.length;i<k;i++)!e!=!c(b[i],i)&&g.push(b[i]);return g},map:function(b,c){for(var e=[],g=0,i=b.length;g<i;g++){var k=c(b[g],g);if(k!=null)e[e.length]=k}return e.concat.apply([],e)}});var s=navigator.userAgent.toLowerCase();d.browser={version:(s.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||
[0,"0"])[1],safari:/webkit/.test(s),opera:/opera/.test(s),msie:/msie/.test(s)&&!/opera/.test(s),mozilla:/mozilla/.test(s)&&!/(compatible|webkit)/.test(s)};d.each({parent:function(b){return b.parentNode},parents:function(b){return d.dir(b,"parentNode")},next:function(b){return d.nth(b,2,"nextSibling")},prev:function(b){return d.nth(b,2,"previousSibling")},nextAll:function(b){return d.dir(b,"nextSibling")},prevAll:function(b){return d.dir(b,"previousSibling")},siblings:function(b){return d.sibling(b.parentNode.firstChild,
b)},children:function(b){return d.sibling(b.firstChild)},contents:function(b){return d.nodeName(b,"iframe")?b.contentDocument||b.contentWindow.document:d.makeArray(b.childNodes)}},function(b,c){d.fn[b]=function(e){var g=d.map(this,c);if(e&&typeof e=="string")g=d.multiFilter(e,g);return this.pushStack(d.unique(g),b,e)}});d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,c){d.fn[b]=function(e){for(var g=[],i=d(e),k=0,m=i.length;k<
m;k++){var o=(k>0?this.clone(true):this).get();d.fn[c].apply(d(i[k]),o);g=g.concat(o)}return this.pushStack(g,b,e)}});d.each({removeAttr:function(b){d.attr(this,b,"");this.nodeType==1&&this.removeAttribute(b)},addClass:function(b){d.className.add(this,b)},removeClass:function(b){d.className.remove(this,b)},toggleClass:function(b,c){if(typeof c!=="boolean")c=!d.className.has(this,b);d.className[c?"add":"remove"](this,b)},remove:function(b){if(!b||d.filter(b,[this]).length){d("*",this).add([this]).each(function(){d.event.remove(this);
d.removeData(this)});this.parentNode&&this.parentNode.removeChild(this)}},empty:function(){for(d(this).children().remove();this.firstChild;)this.removeChild(this.firstChild)}},function(b,c){d.fn[b]=function(){return this.each(c,arguments)}});var x="jQuery"+t(),I=0,C={};d.extend({cache:{},data:function(b,c,e){b=b==r?C:b;var g=b[x];g||(g=b[x]=++I);if(c&&!d.cache[g])d.cache[g]={};if(e!==z)d.cache[g][c]=e;return c?d.cache[g][c]:g},removeData:function(b,c){b=b==r?C:b;var e=b[x];if(c){if(d.cache[e]){delete d.cache[e][c];
c="";for(c in d.cache[e])break;c||d.removeData(b)}}else{try{delete b[x]}catch(g){b.removeAttribute&&b.removeAttribute(x)}delete d.cache[e]}},queue:function(b,c,e){if(b){c=(c||"fx")+"queue";var g=d.data(b,c);if(!g||d.isArray(e))g=d.data(b,c,d.makeArray(e));else e&&g.push(e)}return g},dequeue:function(b,c){var e=d.queue(b,c),g=e.shift();if(!c||c==="fx")g=e[0];g!==z&&g.call(b)}});d.fn.extend({data:function(b,c){var e=b.split(".");e[1]=e[1]?"."+e[1]:"";if(c===z){var g=this.triggerHandler("getData"+e[1]+
"!",[e[0]]);if(g===z&&this.length)g=d.data(this[0],b);return g===z&&e[1]?this.data(e[0]):g}else return this.trigger("setData"+e[1]+"!",[e[0],c]).each(function(){d.data(this,b,c)})},removeData:function(b){return this.each(function(){d.removeData(this,b)})},queue:function(b,c){if(typeof b!=="string"){c=b;b="fx"}if(c===z)return d.queue(this[0],b);return this.each(function(){var e=d.queue(this,b,c);b=="fx"&&e.length==1&&e[0].call(this)})},dequeue:function(b){return this.each(function(){d.dequeue(this,
b)})}});(function(){function b(f,h,j,l,p,u){p=f=="previousSibling"&&!u;for(var A=0,M=l.length;A<M;A++){var B=l[A];if(B){if(p&&B.nodeType===1){B.sizcache=j;B.sizset=A}B=B[f];for(var P=false;B;){if(B.sizcache===j){P=l[B.sizset];break}if(B.nodeType===1&&!u){B.sizcache=j;B.sizset=A}if(B.nodeName===h){P=B;break}B=B[f]}l[A]=P}}}function c(f,h,j,l,p,u){p=f=="previousSibling"&&!u;for(var A=0,M=l.length;A<M;A++){var B=l[A];if(B){if(p&&B.nodeType===1){B.sizcache=j;B.sizset=A}B=B[f];for(var P=false;B;){if(B.sizcache===
j){P=l[B.sizset];break}if(B.nodeType===1){if(!u){B.sizcache=j;B.sizset=A}if(typeof h!=="string"){if(B===h){P=true;break}}else if(k.filter(h,[B]).length>0){P=B;break}}B=B[f]}l[A]=P}}}var e=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,g=0,i=Object.prototype.toString,k=function(f,h,j,l){j=j||[];h=h||document;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!f||typeof f!=="string")return j;var p=[],u,A,M,B=true;for(e.lastIndex=0;(u=
e.exec(f))!==null;){p.push(u[1]);if(u[2]){M=RegExp.rightContext;break}}if(p.length>1&&o.exec(f))if(p.length===2&&m.relative[p[0]])u=W(p[0]+p[1],h);else for(u=m.relative[p[0]]?[h]:k(p.shift(),h);p.length;){f=p.shift();if(m.relative[f])f+=p.shift();u=W(f,u)}else{u=l?{expr:p.pop(),set:J(l)}:k.find(p.pop(),p.length===1&&h.parentNode?h.parentNode:h,D(h));u=k.filter(u.expr,u.set);if(p.length>0)A=J(u);else B=false;for(;p.length;){var P=p.pop(),U=P;if(m.relative[P])U=p.pop();else P="";if(U==null)U=h;m.relative[P](A,
U,D(h))}}A||(A=u);if(!A)throw"Syntax error, unrecognized expression: "+(P||f);if(i.call(A)==="[object Array]")if(B)if(h.nodeType===1)for(f=0;A[f]!=null;f++){if(A[f]&&(A[f]===true||A[f].nodeType===1&&S(h,A[f])))j.push(u[f])}else for(f=0;A[f]!=null;f++)A[f]&&A[f].nodeType===1&&j.push(u[f]);else j.push.apply(j,A);else J(A,j);if(M){k(M,h,j,l);if(O){hasDuplicate=false;j.sort(O);if(hasDuplicate)for(f=1;f<j.length;f++)j[f]===j[f-1]&&j.splice(f--,1)}}return j};k.matches=function(f,h){return k(f,null,null,
h)};k.find=function(f,h,j){var l,p;if(!f)return[];for(var u=0,A=m.order.length;u<A;u++){var M=m.order[u];if(p=m.match[M].exec(f)){var B=RegExp.leftContext;if(B.substr(B.length-1)!=="\\"){p[1]=(p[1]||"").replace(/\\/g,"");l=m.find[M](p,h,j);if(l!=null){f=f.replace(m.match[M],"");break}}}}l||(l=h.getElementsByTagName("*"));return{set:l,expr:f}};k.filter=function(f,h,j,l){for(var p=f,u=[],A=h,M,B,P=h&&h[0]&&D(h[0]);f&&h.length;){for(var U in m.filter)if((M=m.match[U].exec(f))!=null){var ha=m.filter[U],
Z,aa;B=false;if(A==u)u=[];if(m.preFilter[U])if(M=m.preFilter[U](M,A,j,u,l,P)){if(M===true)continue}else B=Z=true;if(M)for(var ba=0;(aa=A[ba])!=null;ba++)if(aa){Z=ha(aa,M,ba,A);var ga=l^!!Z;if(j&&Z!=null)if(ga)B=true;else A[ba]=false;else if(ga){u.push(aa);B=true}}if(Z!==z){j||(A=u);f=f.replace(m.match[U],"");if(!B)return[];break}}if(f==p)if(B==null)throw"Syntax error, unrecognized expression: "+f;else break;p=f}return A};var m=k.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(f){return f.getAttribute("href")}},
relative:{"+":function(f,h,j){var l=typeof h==="string",p=l&&!/\W/.test(h);l=l&&!p;if(p&&!j)h=h.toUpperCase();j=0;p=f.length;for(var u;j<p;j++)if(u=f[j]){for(;(u=u.previousSibling)&&u.nodeType!==1;);f[j]=l||u&&u.nodeName===h?u||false:u===h}l&&k.filter(h,f,true)},">":function(f,h,j){var l=typeof h==="string";if(l&&!/\W/.test(h)){h=j?h:h.toUpperCase();j=0;for(var p=f.length;j<p;j++){var u=f[j];if(u){l=u.parentNode;f[j]=l.nodeName===h?l:false}}}else{j=0;for(p=f.length;j<p;j++)if(u=f[j])f[j]=l?u.parentNode:
u.parentNode===h;l&&k.filter(h,f,true)}},"":function(f,h,j){var l=g++,p=c;if(!h.match(/\W/)){var u=h=j?h:h.toUpperCase();p=b}p("parentNode",h,l,f,u,j)},"~":function(f,h,j){var l=g++,p=c;if(typeof h==="string"&&!h.match(/\W/)){var u=h=j?h:h.toUpperCase();p=b}p("previousSibling",h,l,f,u,j)}},find:{ID:function(f,h,j){if(typeof h.getElementById!=="undefined"&&!j)return(f=h.getElementById(f[1]))?[f]:[]},NAME:function(f,h){if(typeof h.getElementsByName!=="undefined"){var j=[];h=h.getElementsByName(f[1]);
for(var l=0,p=h.length;l<p;l++)h[l].getAttribute("name")===f[1]&&j.push(h[l]);return j.length===0?null:j}},TAG:function(f,h){return h.getElementsByTagName(f[1])}},preFilter:{CLASS:function(f,h,j,l,p,u){f=" "+f[1].replace(/\\/g,"")+" ";if(u)return f;u=0;for(var A;(A=h[u])!=null;u++)if(A)if(p^(A.className&&(" "+A.className+" ").indexOf(f)>=0))j||l.push(A);else if(j)h[u]=false;return false},ID:function(f){return f[1].replace(/\\/g,"")},TAG:function(f,h){for(var j=0;h[j]===false;j++);return h[j]&&D(h[j])?
f[1]:f[1].toUpperCase()},CHILD:function(f){if(f[1]=="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(f[2]=="even"&&"2n"||f[2]=="odd"&&"2n+1"||!/\D/.test(f[2])&&"0n+"+f[2]||f[2]);f[2]=h[1]+(h[2]||1)-0;f[3]=h[3]-0}f[0]=g++;return f},ATTR:function(f,h,j,l,p,u){h=f[1].replace(/\\/g,"");if(!u&&m.attrMap[h])f[1]=m.attrMap[h];if(f[2]==="~=")f[4]=" "+f[4]+" ";return f},PSEUDO:function(f,h,j,l,p){if(f[1]==="not")if(f[3].match(e).length>1||/^\w/.test(f[3]))f[3]=k(f[3],null,null,h);else{f=k.filter(f[3],h,j,true^
p);j||l.push.apply(l,f);return false}else if(m.match.POS.test(f[0])||m.match.CHILD.test(f[0]))return true;return f},POS:function(f){f.unshift(true);return f}},filters:{enabled:function(f){return f.disabled===false&&f.type!=="hidden"},disabled:function(f){return f.disabled===true},checked:function(f){return f.checked===true},selected:function(f){return f.selected===true},parent:function(f){return!!f.firstChild},empty:function(f){return!f.firstChild},has:function(f,h,j){return!!k(j[3],f).length},header:function(f){return/h\d/i.test(f.nodeName)},
text:function(f){return"text"===f.type},radio:function(f){return"radio"===f.type},checkbox:function(f){return"checkbox"===f.type},file:function(f){return"file"===f.type},password:function(f){return"password"===f.type},submit:function(f){return"submit"===f.type},image:function(f){return"image"===f.type},reset:function(f){return"reset"===f.type},button:function(f){return"button"===f.type||f.nodeName.toUpperCase()==="BUTTON"},input:function(f){return/input|select|textarea|button/i.test(f.nodeName)}},
setFilters:{first:function(f,h){return h===0},last:function(f,h,j,l){return h===l.length-1},even:function(f,h){return h%2===0},odd:function(f,h){return h%2===1},lt:function(f,h,j){return h<j[3]-0},gt:function(f,h,j){return h>j[3]-0},nth:function(f,h,j){return j[3]-0==h},eq:function(f,h,j){return j[3]-0==h}},filter:{PSEUDO:function(f,h,j,l){var p=h[1],u=m.filters[p];if(u)return u(f,j,h,l);else if(p==="contains")return(f.textContent||f.innerText||"").indexOf(h[3])>=0;else if(p==="not"){h=h[3];j=0;for(l=
h.length;j<l;j++)if(h[j]===f)return false;return true}},CHILD:function(f,h){var j=h[1],l=f;switch(j){case "only":case "first":for(;l=l.previousSibling;)if(l.nodeType===1)return false;if(j=="first")return true;l=f;case "last":for(;l=l.nextSibling;)if(l.nodeType===1)return false;return true;case "nth":j=h[2];var p=h[3];if(j==1&&p==0)return true;h=h[0];var u=f.parentNode;if(u&&(u.sizcache!==h||!f.nodeIndex)){var A=0;for(l=u.firstChild;l;l=l.nextSibling)if(l.nodeType===1)l.nodeIndex=++A;u.sizcache=h}f=
f.nodeIndex-p;return j==0?f==0:f%j==0&&f/j>=0}},ID:function(f,h){return f.nodeType===1&&f.getAttribute("id")===h},TAG:function(f,h){return h==="*"&&f.nodeType===1||f.nodeName===h},CLASS:function(f,h){return(" "+(f.className||f.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(f,h){var j=h[1];f=m.attrHandle[j]?m.attrHandle[j](f):f[j]!=null?f[j]:f.getAttribute(j);j=f+"";var l=h[2];h=h[4];return f==null?l==="!=":l==="="?j===h:l==="*="?j.indexOf(h)>=0:l==="~="?(" "+j+" ").indexOf(h)>=0:!h?j&&f!==
false:l==="!="?j!=h:l==="^="?j.indexOf(h)===0:l==="$="?j.substr(j.length-h.length)===h:l==="|="?j===h||j.substr(0,h.length+1)===h+"-":false},POS:function(f,h,j,l){var p=m.setFilters[h[2]];if(p)return p(f,j,h,l)}}},o=m.match.POS;for(var G in m.match)m.match[G]=RegExp(m.match[G].source+/(?![^\[]*\])(?![^\(]*\))/.source);var J=function(f,h){f=Array.prototype.slice.call(f);if(h){h.push.apply(h,f);return h}return f};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(H){J=function(f,
h){h=h||[];if(i.call(f)==="[object Array]")Array.prototype.push.apply(h,f);else if(typeof f.length==="number")for(var j=0,l=f.length;j<l;j++)h.push(f[j]);else for(j=0;f[j];j++)h.push(f[j]);return h}}var O;if(document.documentElement.compareDocumentPosition)O=function(f,h){f=f.compareDocumentPosition(h)&4?-1:f===h?0:1;if(f===0)hasDuplicate=true;return f};else if("sourceIndex"in document.documentElement)O=function(f,h){f=f.sourceIndex-h.sourceIndex;if(f===0)hasDuplicate=true;return f};else if(document.createRange)O=
function(f,h){var j=f.ownerDocument.createRange(),l=h.ownerDocument.createRange();j.selectNode(f);j.collapse(true);l.selectNode(h);l.collapse(true);f=j.compareBoundaryPoints(Range.START_TO_END,l);if(f===0)hasDuplicate=true;return f};(function(){var f=document.createElement("form"),h="script"+(new Date).getTime();f.innerHTML="<input name='"+h+"'/>";var j=document.documentElement;j.insertBefore(f,j.firstChild);if(document.getElementById(h)){m.find.ID=function(l,p,u){if(typeof p.getElementById!=="undefined"&&
!u)return(p=p.getElementById(l[1]))?p.id===l[1]||typeof p.getAttributeNode!=="undefined"&&p.getAttributeNode("id").nodeValue===l[1]?[p]:z:[]};m.filter.ID=function(l,p){var u=typeof l.getAttributeNode!=="undefined"&&l.getAttributeNode("id");return l.nodeType===1&&u&&u.nodeValue===p}}j.removeChild(f)})();(function(){var f=document.createElement("div");f.appendChild(document.createComment(""));if(f.getElementsByTagName("*").length>0)m.find.TAG=function(h,j){j=j.getElementsByTagName(h[1]);if(h[1]==="*"){h=
[];for(var l=0;j[l];l++)j[l].nodeType===1&&h.push(j[l]);j=h}return j};f.innerHTML="<a href='#'></a>";if(f.firstChild&&typeof f.firstChild.getAttribute!=="undefined"&&f.firstChild.getAttribute("href")!=="#")m.attrHandle.href=function(h){return h.getAttribute("href",2)}})();document.querySelectorAll&&function(){var f=k,h=document.createElement("div");h.innerHTML="<p class='TEST'></p>";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){k=function(j,l,p,u){l=l||document;if(!u&&l.nodeType===
9&&!D(l))try{return J(l.querySelectorAll(j),p)}catch(A){}return f(j,l,p,u)};k.find=f.find;k.filter=f.filter;k.selectors=f.selectors;k.matches=f.matches}}();document.getElementsByClassName&&document.documentElement.getElementsByClassName&&function(){var f=document.createElement("div");f.innerHTML="<div class='test e'></div><div class='test'></div>";if(f.getElementsByClassName){try{f.getElementsByClassName("e")}catch(h){return}if(f.getElementsByClassName("e").length!==0){f.lastChild.className="e";if(f.getElementsByClassName("e").length!==
1){m.order.splice(1,0,"CLASS");m.find.CLASS=function(j,l,p){if(typeof l.getElementsByClassName!=="undefined"&&!p)return l.getElementsByClassName(j[1])}}}}}();var S=document.compareDocumentPosition?function(f,h){return f.compareDocumentPosition(h)&16}:function(f,h){return f!==h&&(f.contains?f.contains(h):true)},D=function(f){return f.nodeType===9&&f.documentElement.nodeName!=="HTML"||!!f.ownerDocument&&D(f.ownerDocument)},W=function(f,h){var j=[],l="",p;for(h=h.nodeType?[h]:h;p=m.match.PSEUDO.exec(f);){l+=
p[0];f=f.replace(m.match.PSEUDO,"")}f=m.relative[f]?f+"*":f;p=0;for(var u=h.length;p<u;p++)k(f,h[p],j);return k.filter(l,j)};d.find=k;d.filter=k.filter;d.expr=k.selectors;d.expr[":"]=d.expr.filters;k.selectors.filters.hidden=function(f){return f.offsetWidth===0||f.offsetHeight===0};k.selectors.filters.visible=function(f){return f.offsetWidth>0||f.offsetHeight>0};k.selectors.filters.animated=function(f){return d.grep(d.timers,function(h){return f===h.elem}).length};d.multiFilter=function(f,h,j){if(j)f=
":not("+f+")";return k.matches(f,h)};d.dir=function(f,h){var j=[];for(f=f[h];f&&f!=document;){f.nodeType==1&&j.push(f);f=f[h]}return j};d.nth=function(f,h,j){h=h||1;for(var l=0;f;f=f[j])if(f.nodeType==1&&++l==h)break;return f};d.sibling=function(f,h){for(var j=[];f;f=f.nextSibling)f.nodeType==1&&f!=h&&j.push(f);return j}})();d.event={add:function(b,c,e,g){if(!(b.nodeType==3||b.nodeType==8)){if(b.setInterval&&b!=r)b=r;if(!e.guid)e.guid=this.guid++;if(g!==z){e=this.proxy(e);e.data=g}var i=d.data(b,
"events")||d.data(b,"events",{}),k=d.data(b,"handle")||d.data(b,"handle",function(){return typeof d!=="undefined"&&!d.event.triggered?d.event.handle.apply(arguments.callee.elem,arguments):z});k.elem=b;d.each(c.split(/\s+/),function(m,o){m=o.split(".");o=m.shift();e.type=m.slice().sort().join(".");var G=i[o];d.event.specialAll[o]&&d.event.specialAll[o].setup.call(b,g,m);if(!G){G=i[o]={};if(!d.event.special[o]||d.event.special[o].setup.call(b,g,m)===false)if(b.addEventListener)b.addEventListener(o,
k,false);else b.attachEvent&&b.attachEvent("on"+o,k)}G[e.guid]=e;d.event.global[o]=true});b=null}},guid:1,global:{},remove:function(b,c,e){if(!(b.nodeType==3||b.nodeType==8)){var g=d.data(b,"events"),i;if(g){if(c===z||typeof c==="string"&&c.charAt(0)==".")for(var k in g)this.remove(b,k+(c||""));else{if(c.type){e=c.handler;c=c.type}d.each(c.split(/\s+/),function(m,o){m=o.split(".");o=m.shift();var G=RegExp("(^|\\.)"+m.slice().sort().join(".*\\.")+"(\\.|$)");if(g[o]){if(e)delete g[o][e.guid];else for(var J in g[o])G.test(g[o][J].type)&&
delete g[o][J];d.event.specialAll[o]&&d.event.specialAll[o].teardown.call(b,m);for(i in g[o])break;if(!i){if(!d.event.special[o]||d.event.special[o].teardown.call(b,m)===false)if(b.removeEventListener)b.removeEventListener(o,d.data(b,"handle"),false);else b.detachEvent&&b.detachEvent("on"+o,d.data(b,"handle"));i=null;delete g[o]}}})}for(i in g)break;if(!i){if(c=d.data(b,"handle"))c.elem=null;d.removeData(b,"events");d.removeData(b,"handle")}}}},trigger:function(b,c,e,g){var i=b.type||b;if(!g){b=typeof b===
"object"?b[x]?b:d.extend(d.Event(i),b):d.Event(i);if(i.indexOf("!")>=0){b.type=i=i.slice(0,-1);b.exclusive=true}if(!e){b.stopPropagation();this.global[i]&&d.each(d.cache,function(){this.events&&this.events[i]&&d.event.trigger(b,c,this.handle.elem)})}if(!e||e.nodeType==3||e.nodeType==8)return z;b.result=z;b.target=e;c=d.makeArray(c);c.unshift(b)}b.currentTarget=e;var k=d.data(e,"handle");k&&k.apply(e,c);if((!e[i]||d.nodeName(e,"a")&&i=="click")&&e["on"+i]&&e["on"+i].apply(e,c)===false)b.result=false;
if(!g&&e[i]&&!b.isDefaultPrevented()&&!(d.nodeName(e,"a")&&i=="click")){this.triggered=true;try{e[i]()}catch(m){}}this.triggered=false;if(!b.isPropagationStopped())(e=e.parentNode||e.ownerDocument)&&d.event.trigger(b,c,e,true)},handle:function(b){var c,e;b=arguments[0]=d.event.fix(b||r.event);b.currentTarget=this;e=b.type.split(".");b.type=e.shift();c=!e.length&&!b.exclusive;var g=RegExp("(^|\\.)"+e.slice().sort().join(".*\\.")+"(\\.|$)");e=(d.data(this,"events")||{})[b.type];for(var i in e){var k=
e[i];if(c||g.test(k.type)){b.handler=k;b.data=k.data;k=k.apply(this,arguments);if(k!==z){b.result=k;if(k===false){b.preventDefault();b.stopPropagation()}}if(b.isImmediatePropagationStopped())break}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(b){if(b[x])return b;var c=b;b=d.Event(c);for(var e=this.props.length,g;e;){g=this.props[--e];b[g]=c[g]}if(!b.target)b.target=b.srcElement||document;if(b.target.nodeType==3)b.target=b.target.parentNode;if(!b.relatedTarget&&b.fromElement)b.relatedTarget=b.fromElement==b.target?b.toElement:b.fromElement;if(b.pageX==null&&b.clientX!=null){c=document.documentElement;e=document.body;b.pageX=b.clientX+(c&&c.scrollLeft||e&&e.scrollLeft||0)-(c.clientLeft||0);b.pageY=b.clientY+(c&&c.scrollTop||
e&&e.scrollTop||0)-(c.clientTop||0)}if(!b.which&&(b.charCode||b.charCode===0?b.charCode:b.keyCode))b.which=b.charCode||b.keyCode;if(!b.metaKey&&b.ctrlKey)b.metaKey=b.ctrlKey;if(!b.which&&b.button)b.which=b.button&1?1:b.button&2?3:b.button&4?2:0;return b},proxy:function(b,c){c=c||function(){return b.apply(this,arguments)};c.guid=b.guid=b.guid||c.guid||this.guid++;return c},special:{ready:{setup:Q,teardown:function(){}}},specialAll:{live:{setup:function(b,c){d.event.add(this,c[0],F)},teardown:function(b){if(b.length){var c=
0,e=RegExp("(^|\\.)"+b[0]+"(\\.|$)");d.each(d.data(this,"events").live||{},function(){e.test(this.type)&&c++});c<1&&d.event.remove(this,b[0],F)}}}}};d.Event=function(b){if(!this.preventDefault)return new d.Event(b);if(b&&b.type){this.originalEvent=b;this.type=b.type}else this.type=b;this.timeStamp=t();this[x]=true};d.Event.prototype={preventDefault:function(){this.isDefaultPrevented=q;var b=this.originalEvent;if(b){b.preventDefault&&b.preventDefault();b.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=
q;var b=this.originalEvent;if(b){b.stopPropagation&&b.stopPropagation();b.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=q;this.stopPropagation()},isDefaultPrevented:y,isPropagationStopped:y,isImmediatePropagationStopped:y};var T=function(b){for(var c=b.relatedTarget;c&&c!=this;)try{c=c.parentNode}catch(e){c=this}if(c!=this){b.type=b.data;d.event.handle.apply(this,arguments)}};d.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(b,c){d.event.special[c]=
{setup:function(){d.event.add(this,b,T,c)},teardown:function(){d.event.remove(this,b,T)}}});d.fn.extend({bind:function(b,c,e){return b=="unload"?this.one(b,c,e):this.each(function(){d.event.add(this,b,e||c,e&&c)})},one:function(b,c,e){var g=d.event.proxy(e||c,function(i){d(this).unbind(i,g);return(e||c).apply(this,arguments)});return this.each(function(){d.event.add(this,b,g,e&&c)})},unbind:function(b,c){return this.each(function(){d.event.remove(this,b,c)})},trigger:function(b,c){return this.each(function(){d.event.trigger(b,
c,this)})},triggerHandler:function(b,c){if(this[0]){b=d.Event(b);b.preventDefault();b.stopPropagation();d.event.trigger(b,c,this[0]);return b.result}},toggle:function(b){for(var c=arguments,e=1;e<c.length;)d.event.proxy(b,c[e++]);return this.click(d.event.proxy(b,function(g){this.lastToggle=(this.lastToggle||0)%e;g.preventDefault();return c[this.lastToggle++].apply(this,arguments)||false}))},hover:function(b,c){return this.mouseenter(b).mouseleave(c)},ready:function(b){Q();d.isReady?b.call(document,
d):d.readyList.push(b);return this},live:function(b,c){c=d.event.proxy(c);c.guid+=this.selector+b;d(document).bind(E(b,this.selector),this.selector,c);return this},die:function(b,c){d(document).unbind(E(b,this.selector),c?{guid:c.guid+this.selector+b}:null);return this}});d.extend({isReady:false,readyList:[],ready:function(){if(!d.isReady){d.isReady=true;if(d.readyList){d.each(d.readyList,function(){this.call(document,d)});d.readyList=null}d(document).triggerHandler("ready")}}});var ea=false;d.each("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error".split(","),
function(b,c){d.fn[c]=function(e){return e?this.bind(c,e):this.trigger(c)}});d(r).bind("unload",function(){for(var b in d.cache)b!=1&&d.cache[b].handle&&d.event.remove(d.cache[b].handle.elem)});(function(){d.support={};var b=document.documentElement,c=document.createElement("script"),e=document.createElement("div"),g="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 i=e.getElementsByTagName("*"),k=e.getElementsByTagName("a")[0];if(!(!i||!i.length||!k)){d.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};c.type="text/javascript";try{c.appendChild(document.createTextNode("window."+g+"=1;"))}catch(m){}b.insertBefore(c,b.firstChild);if(r[g]){d.support.scriptEval=true;delete r[g]}b.removeChild(c);if(e.attachEvent&&e.fireEvent){e.attachEvent("onclick",function(){d.support.noCloneEvent=false;e.detachEvent("onclick",arguments.callee)});e.cloneNode(true).fireEvent("onclick")}d(function(){var o=document.createElement("div");o.style.width=o.style.paddingLeft="1px";document.body.appendChild(o);
d.boxModel=d.support.boxModel=o.offsetWidth===2;document.body.removeChild(o).style.display="none"})}})();var $=d.support.cssFloat?"cssFloat":"styleFloat";d.props={"for":"htmlFor","class":"className","float":$,cssFloat:$,styleFloat:$,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};d.fn.extend({_load:d.fn.load,load:function(b,c,e){if(typeof b!=="string")return this._load(b);var g=b.indexOf(" ");if(g>=0){var i=b.slice(g,b.length);b=b.slice(0,
g)}g="GET";if(c)if(d.isFunction(c)){e=c;c=null}else if(typeof c==="object"){c=d.param(c);g="POST"}var k=this;d.ajax({url:b,type:g,dataType:"html",data:c,complete:function(m,o){if(o=="success"||o=="notmodified")k.html(i?d("<div/>").append(m.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(i):m.responseText);e&&k.each(e,[m.responseText,o,m])}});return this},serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?
d.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(b,c){b=d(this).val();return b==null?null:d.isArray(b)?d.map(b,function(e){return{name:c.name,value:e}}):{name:c.name,value:b}}).get()}});d.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(b,c){d.fn[c]=function(e){return this.bind(c,e)}});var ia=t();d.extend({get:function(b,
c,e,g){if(d.isFunction(c)){e=c;c=null}return d.ajax({type:"GET",url:b,data:c,success:e,dataType:g})},getScript:function(b,c){return d.get(b,null,c,"script")},getJSON:function(b,c,e){return d.get(b,c,e,"json")},post:function(b,c,e,g){if(d.isFunction(c)){e=c;c={}}return d.ajax({type:"POST",url:b,data:c,success:e,dataType:g})},ajaxSetup:function(b){d.extend(d.ajaxSettings,b)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,
xhr:function(){return r.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(b){function c(){b.success&&b.success(m,k);b.global&&d.event.trigger("ajaxSuccess",[D,b])}function e(){b.complete&&b.complete(D,k);b.global&&d.event.trigger("ajaxComplete",[D,b]);b.global&&!--d.active&&
d.event.trigger("ajaxStop")}b=d.extend(true,b,d.extend(true,{},d.ajaxSettings,b));var g,i=/=\?(&|$)/g,k,m,o=b.type.toUpperCase();if(b.data&&b.processData&&typeof b.data!=="string")b.data=d.param(b.data);if(b.dataType=="jsonp"){if(o=="GET")b.url.match(i)||(b.url+=(b.url.match(/\?/)?"&":"?")+(b.jsonp||"callback")+"=?");else if(!b.data||!b.data.match(i))b.data=(b.data?b.data+"&":"")+(b.jsonp||"callback")+"=?";b.dataType="json"}if(b.dataType=="json"&&(b.data&&b.data.match(i)||b.url.match(i))){g="jsonp"+
ia++;if(b.data)b.data=(b.data+"").replace(i,"="+g+"$1");b.url=b.url.replace(i,"="+g+"$1");b.dataType="script";r[g]=function(l){m=l;c();e();r[g]=z;try{delete r[g]}catch(p){}J&&J.removeChild(H)}}if(b.dataType=="script"&&b.cache==null)b.cache=false;if(b.cache===false&&o=="GET"){i=t();var G=b.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+i+"$2");b.url=G+(G==b.url?(b.url.match(/\?/)?"&":"?")+"_="+i:"")}if(b.data&&o=="GET"){b.url+=(b.url.match(/\?/)?"&":"?")+b.data;b.data=null}b.global&&!d.active++&&d.event.trigger("ajaxStart");
i=/^(\w+:)?\/\/([^\/?#]+)/.exec(b.url);if(b.dataType=="script"&&o=="GET"&&i&&(i[1]&&i[1]!=location.protocol||i[2]!=location.host)){var J=document.getElementsByTagName("head")[0],H=document.createElement("script");H.src=b.url;if(b.scriptCharset)H.charset=b.scriptCharset;if(!g){var O=false;H.onload=H.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;c();e();H.onload=H.onreadystatechange=null;J.removeChild(H)}}}J.appendChild(H);return z}var S=
false,D=b.xhr();b.username?D.open(o,b.url,b.async,b.username,b.password):D.open(o,b.url,b.async);try{b.data&&D.setRequestHeader("Content-Type",b.contentType);if(b.ifModified)D.setRequestHeader("If-Modified-Since",d.lastModified[b.url]||"Thu, 01 Jan 1970 00:00:00 GMT");D.setRequestHeader("X-Requested-With","XMLHttpRequest");D.setRequestHeader("Accept",b.dataType&&b.accepts[b.dataType]?b.accepts[b.dataType]+", */*":b.accepts._default)}catch(W){}if(b.beforeSend&&b.beforeSend(D,b)===false){b.global&&
!--d.active&&d.event.trigger("ajaxStop");D.abort();return false}b.global&&d.event.trigger("ajaxSend",[D,b]);var f=function(l){if(D.readyState==0){if(h){clearInterval(h);h=null;b.global&&!--d.active&&d.event.trigger("ajaxStop")}}else if(!S&&D&&(D.readyState==4||l=="timeout")){S=true;if(h){clearInterval(h);h=null}k=l=="timeout"?"timeout":!d.httpSuccess(D)?"error":b.ifModified&&d.httpNotModified(D,b.url)?"notmodified":"success";if(k=="success")try{m=d.httpData(D,b.dataType,b)}catch(p){k="parsererror"}if(k==
"success"){var u;try{u=D.getResponseHeader("Last-Modified")}catch(A){}if(b.ifModified&&u)d.lastModified[b.url]=u;g||c()}else d.handleError(b,D,k);e();l&&D.abort();if(b.async)D=null}};if(b.async){var h=setInterval(f,13);b.timeout>0&&setTimeout(function(){D&&!S&&f("timeout")},b.timeout)}try{D.send(b.data)}catch(j){d.handleError(b,D,null,j)}b.async||f();return D},handleError:function(b,c,e,g){b.error&&b.error(c,e,g);b.global&&d.event.trigger("ajaxError",[c,b,g])},active:0,httpSuccess:function(b){try{return!b.status&&
location.protocol=="file:"||b.status>=200&&b.status<300||b.status==304||b.status==1223}catch(c){}return false},httpNotModified:function(b,c){try{var e=b.getResponseHeader("Last-Modified");return b.status==304||e==d.lastModified[c]}catch(g){}return false},httpData:function(b,c,e){var g=b.getResponseHeader("content-type");b=(g=c=="xml"||!c&&g&&g.indexOf("xml")>=0)?b.responseXML:b.responseText;if(g&&b.documentElement.tagName=="parsererror")throw"parsererror";if(e&&e.dataFilter)b=e.dataFilter(b,c);if(typeof b===
"string"){c=="script"&&d.globalEval(b);if(c=="json")b=r.eval("("+b+")")}return b},param:function(b){function c(i,k){e[e.length]=encodeURIComponent(i)+"="+encodeURIComponent(k)}var e=[];if(d.isArray(b)||b.jquery)d.each(b,function(){c(this.name,this.value)});else for(var g in b)d.isArray(b[g])?d.each(b[g],function(){c(g,this)}):c(g,d.isFunction(b[g])?b[g]():b[g]);return e.join("&").replace(/%20/g,"+")}});var da={},ca,fa=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft",
"marginRight","paddingLeft","paddingRight"],["opacity"]];d.fn.extend({show:function(b,c){if(b)return this.animate(K("show",3),b,c);else{b=0;for(c=this.length;b<c;b++){var e=d.data(this[b],"olddisplay");this[b].style.display=e||"";if(d.css(this[b],"display")==="none"){e=this[b].tagName;var g;if(da[e])g=da[e];else{var i=d("<"+e+" />").appendTo("body");g=i.css("display");if(g==="none")g="block";i.remove();da[e]=g}d.data(this[b],"olddisplay",g)}}b=0;for(c=this.length;b<c;b++)this[b].style.display=d.data(this[b],
"olddisplay")||"";return this}},hide:function(b,c){if(b)return this.animate(K("hide",3),b,c);else{b=0;for(c=this.length;b<c;b++){var e=d.data(this[b],"olddisplay");!e&&e!=="none"&&d.data(this[b],"olddisplay",d.css(this[b],"display"))}b=0;for(c=this.length;b<c;b++)this[b].style.display="none";return this}},_toggle:d.fn.toggle,toggle:function(b,c){var e=typeof b==="boolean";return d.isFunction(b)&&d.isFunction(c)?this._toggle.apply(this,arguments):b==null||e?this.each(function(){var g=e?b:d(this).is(":hidden");
d(this)[g?"show":"hide"]()}):this.animate(K("toggle",3),b,c)},fadeTo:function(b,c,e){return this.animate({opacity:c},b,e)},animate:function(b,c,e,g){var i=d.speed(c,e,g);return this[i.queue===false?"each":"queue"](function(){var k=d.extend({},i),m,o=this.nodeType==1&&d(this).is(":hidden"),G=this;for(m in b){if(b[m]=="hide"&&o||b[m]=="show"&&!o)return k.complete.call(this);if((m=="height"||m=="width")&&this.style){k.display=d.css(this,"display");k.overflow=this.style.overflow}}if(k.overflow!=null)this.style.overflow=
"hidden";k.curAnim=d.extend({},b);d.each(b,function(J,H){var O=new d.fx(G,k,J);if(/toggle|show|hide/.test(H))O[H=="toggle"?o?"show":"hide":H](b);else{var S=H.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),D=O.cur(true)||0;if(S){H=parseFloat(S[2]);var W=S[3]||"px";if(W!="px"){G.style[J]=(H||1)+W;D=(H||1)/O.cur(true)*D;G.style[J]=D+W}if(S[1])H=(S[1]=="-="?-1:1)*H+D;O.custom(D,H,W)}else O.custom(D,H,"")}});return true})},stop:function(b,c){var e=d.timers;b&&this.queue([]);this.each(function(){for(var g=
e.length-1;g>=0;g--)if(e[g].elem==this){c&&e[g](true);e.splice(g,1)}});c||this.dequeue();return this}});d.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(b,c){d.fn[b]=function(e,g){return this.animate(c,e,g)}});d.extend({speed:function(b,c,e){var g=typeof b==="object"?b:{complete:e||!e&&c||d.isFunction(b)&&b,duration:b,easing:e&&c||c&&!d.isFunction(c)&&c};g.duration=d.fx.off?0:typeof g.duration==="number"?g.duration:
d.fx.speeds[g.duration]||d.fx.speeds._default;g.old=g.complete;g.complete=function(){g.queue!==false&&d(this).dequeue();d.isFunction(g.old)&&g.old.call(this)};return g},easing:{linear:function(b,c,e,g){return e+g*b},swing:function(b,c,e,g){return(-Math.cos(b*Math.PI)/2+0.5)*g+e}},timers:[],fx:function(b,c,e){this.options=c;this.elem=b;this.prop=e;if(!c.orig)c.orig={}}});d.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(d.fx.step[this.prop]||d.fx.step._default)(this);
if((this.prop=="height"||this.prop=="width")&&this.elem.style)this.elem.style.display="block"},cur:function(b){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(b=parseFloat(d.css(this.elem,this.prop,b)))&&b>-10000?b:parseFloat(d.curCSS(this.elem,this.prop))||0},custom:function(b,c,e){function g(k){return i.step(k)}this.startTime=t();this.start=b;this.end=c;this.unit=e||this.unit||"px";this.now=this.start;this.pos=this.state=0;var i=
this;g.elem=this.elem;if(g()&&d.timers.push(g)&&!ca)ca=setInterval(function(){for(var k=d.timers,m=0;m<k.length;m++)k[m]()||k.splice(m--,1);if(!k.length){clearInterval(ca);ca=z}},13)},show:function(){this.options.orig[this.prop]=d.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());d(this.elem).show()},hide:function(){this.options.orig[this.prop]=d.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},
step:function(b){var c=t();if(b||c>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();b=this.options.curAnim[this.prop]=true;for(var e in this.options.curAnim)if(this.options.curAnim[e]!==true)b=false;if(b){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(d.css(this.elem,"display")=="none")this.elem.style.display="block"}this.options.hide&&d(this.elem).hide();if(this.options.hide||
this.options.show)for(var g in this.options.curAnim)d.attr(this.elem.style,g,this.options.orig[g]);this.options.complete.call(this.elem)}return false}else{e=c-this.startTime;this.state=e/this.options.duration;this.pos=d.easing[this.options.easing||(d.easing.swing?"swing":"linear")](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};d.extend(d.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(b){d.attr(b.elem.style,
"opacity",b.now)},_default:function(b){if(b.elem.style&&b.elem.style[b.prop]!=null)b.elem.style[b.prop]=b.now+b.unit;else b.elem[b.prop]=b.now}}});d.fn.offset=document.documentElement.getBoundingClientRect?function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return d.offset.bodyOffset(this[0]);var b=this[0].getBoundingClientRect(),c=this[0].ownerDocument,e=c.body;c=c.documentElement;return{top:b.top+(self.pageYOffset||d.boxModel&&c.scrollTop||e.scrollTop)-(c.clientTop||
e.clientTop||0),left:b.left+(self.pageXOffset||d.boxModel&&c.scrollLeft||e.scrollLeft)-(c.clientLeft||e.clientLeft||0)}}:function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return d.offset.bodyOffset(this[0]);d.offset.initialized||d.offset.initialize();var b=this[0],c=b.offsetParent,e=b.ownerDocument,g,i=e.documentElement,k=e.body;e=e.defaultView;g=e.getComputedStyle(b,null);for(var m=b.offsetTop,o=b.offsetLeft;(b=b.parentNode)&&b!==k&&b!==i;){g=e.getComputedStyle(b,
null);m-=b.scrollTop;o-=b.scrollLeft;if(b===c){m+=b.offsetTop;o+=b.offsetLeft;if(d.offset.doesNotAddBorder&&!(d.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.tagName))){m+=parseInt(g.borderTopWidth,10)||0;o+=parseInt(g.borderLeftWidth,10)||0}c=b.offsetParent}if(d.offset.subtractsBorderForOverflowNotVisible&&g.overflow!=="visible"){m+=parseInt(g.borderTopWidth,10)||0;o+=parseInt(g.borderLeftWidth,10)||0}g=g}if(g.position==="relative"||g.position==="static"){m+=k.offsetTop;o+=k.offsetLeft}if(g.position===
"fixed"){m+=Math.max(i.scrollTop,k.scrollTop);o+=Math.max(i.scrollLeft,k.scrollLeft)}return{top:m,left:o}};d.offset={initialize:function(){if(!this.initialized){var b=document.body,c=document.createElement("div"),e,g,i,k=b.style.marginTop;e={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(g in e)c.style[g]=e[g];c.innerHTML='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';
b.insertBefore(c,b.firstChild);e=c.firstChild;g=e.firstChild;i=e.nextSibling.firstChild.firstChild;this.doesNotAddBorder=g.offsetTop!==5;this.doesAddBorderForTableAndCells=i.offsetTop===5;e.style.overflow="hidden";e.style.position="relative";this.subtractsBorderForOverflowNotVisible=g.offsetTop===-5;b.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=b.offsetTop===0;b.style.marginTop=k;b.removeChild(c);this.initialized=true}},bodyOffset:function(b){d.offset.initialized||d.offset.initialize();
var c=b.offsetTop,e=b.offsetLeft;if(d.offset.doesNotIncludeMarginInBodyOffset){c+=parseInt(d.curCSS(b,"marginTop",true),10)||0;e+=parseInt(d.curCSS(b,"marginLeft",true),10)||0}return{top:c,left:e}}};d.fn.extend({position:function(){var b;if(this[0]){b=this.offsetParent();var c=this.offset(),e=/^body|html$/i.test(b[0].tagName)?{top:0,left:0}:b.offset();c.top-=w(this,"marginTop");c.left-=w(this,"marginLeft");e.top+=w(b,"borderTopWidth");e.left+=w(b,"borderLeftWidth");b={top:c.top-e.top,left:c.left-
e.left}}return b},offsetParent:function(){for(var b=this[0].offsetParent||document.body;b&&!/^body|html$/i.test(b.tagName)&&d.css(b,"position")=="static";)b=b.offsetParent;return d(b)}});d.each(["Left","Top"],function(b,c){var e="scroll"+c;d.fn[e]=function(g){if(!this[0])return null;return g!==z?this.each(function(){this==r||this==document?r.scrollTo(!b?g:d(r).scrollLeft(),b?g:d(r).scrollTop()):(this[e]=g)}):this[0]==r||this[0]==document?self[b?"pageYOffset":"pageXOffset"]||d.boxModel&&document.documentElement[e]||
document.body[e]:this[0][e]}});d.each(["Height","Width"],function(b,c){var e=c.toLowerCase();d.fn["inner"+c]=function(){return this[0]?d.css(this[0],e,false,"padding"):null};d.fn["outer"+c]=function(i){return this[0]?d.css(this[0],e,false,i?"margin":"border"):null};var g=c.toLowerCase();d.fn[g]=function(i){return this[0]==r?document.compatMode=="CSS1Compat"&&document.documentElement["client"+c]||document.body["client"+c]:this[0]==document?Math.max(document.documentElement["client"+c],document.body["scroll"+
c],document.documentElement["scroll"+c],document.body["offset"+c],document.documentElement["offset"+c]):i===z?this.length?d.css(this[0],g):null:this.css(g,typeof i==="string"?i:i+"px")}})})();window.$=window.$;window.$.fn=window.$.fn;/*

 jquery.tools 1.0.0 - The missing UI library

 [tools.scrollable-1.0.3]

 Copyright (c) 2009 Tero Piirainen
 http://flowplayer.org/tools/

 Dual licensed under MIT and GPL 2+ licenses
 http://www.opensource.org/licenses

 -----

 Build: Wed Jun 03 08:51:16 GMT+00:00 2009
*/
(function(n){function t(y,q){function F(s,x){n(r).bind(s,function(I,C){if(x&&x.call(this,C.index)===false&&C)C.proceed=false});return r}function E(s,x){return s.indexOf("#")!=-1?n(s).eq(0):x.siblings(s).eq(0)}function Q(){if(d.is(":empty")||d.data("me")==r){d.empty();d.data("me",r);for(var s=0;s<r.getPageAmount();s++){var x=n("<"+q.naviItem+"/>").attr("href",s).click(function(I){var C=n(this);C.parent().children().removeClass(q.activeClass);C.addClass(q.activeClass);r.setPage(C.attr("href"));return I.preventDefault()});
s===0&&x.addClass(q.activeClass);d.append(x)}}else d.children().each(function(I){var C=n(this);C.attr("href",I);I===0&&C.addClass(q.activeClass);C.click(function(){d.find("."+q.activeClass).removeClass(q.activeClass);C.addClass(q.activeClass);r.setPage(C.attr("href"))})});q.clickable&&r.getItems().each(function(I){var C=n(this);if(!C.data("set")){C.bind("click.scrollable",function(){r.click(I)});C.data("set",true)}});q.hoverClass&&r.getItems().hover(function(){n(this).addClass(q.hoverClass)},function(){n(this).removeClass(q.hoverClass)});
return r}function K(){Y=setInterval(function(){q.interval===0&&clearInterval(Y);r.next()},q.interval)}var r=this;w||(w=r);n.each(q,function(s,x){n.isFunction(x)&&F(s,x)});var z=!q.vertical,L=n(q.items,y),R=0,d=E(q.navi,y),N=E(q.prev,y),V=E(q.next,y),v=E(q.prevPage,y),X=E(q.nextPage,y);n.extend(r,{getIndex:function(){return R},getConf:function(){return q},getSize:function(){return r.getItems().size()},getPageAmount:function(){return Math.ceil(this.getSize()/q.size)},getPageIndex:function(){return Math.ceil(R/
q.size)},getRoot:function(){return y},getItemWrap:function(){return L},getItems:function(){return L.children()},seekTo:function(s,x,I){x=x||q.speed;if(n.isFunction(x)){I=x;x=q.speed}if(s<0)s=0;if(s>r.getSize()-q.size)return r;var C=r.getItems().eq(s);if(!C.length)return r;var T={index:s,proceed:true};n(r).trigger("onBeforeSeek",T);if(!T.proceed)return r;if(z){C=-C.position().left;L.animate({left:C},x,q.easing,I?function(){I.call(r)}:null)}else{C=-C.position().top;L.animate({top:C},x,q.easing,I?function(){I.call(r)}:
null)}if(d.length){x=q.activeClass;C=Math.ceil(s/q.size);C=Math.min(C,d.children().length-1);d.children().removeClass(x).eq(C).addClass(x)}s===0?N.add(v).addClass(q.disabledClass):N.add(v).removeClass(q.disabledClass);s>=r.getSize()-q.size?V.add(X).addClass(q.disabledClass):V.add(X).removeClass(q.disabledClass);w=r;R=s;n(r).trigger("onSeek",{index:s});return r},move:function(s,x,I){s=R+s;if(q.loop&&s>r.getSize()-q.size)s=0;return this.seekTo(s,x,I)},next:function(s,x){return this.move(1,s,x)},prev:function(s,
x){return this.move(-1,s,x)},movePage:function(s,x,I){return this.move(q.size*s,x,I)},setPage:function(s,x,I){var C=q.size;s=C*s;if(s+C>=this.getSize())s=this.getSize()-q.size;return this.seekTo(s,x,I)},prevPage:function(s,x){return this.setPage(this.getPageIndex()-1,s,x)},nextPage:function(s,x){return this.setPage(this.getPageIndex()+1,s,x)},begin:function(s,x){return this.seekTo(0,s,x)},end:function(s,x){return this.seekTo(this.getSize()-q.size,s,x)},reload:function(){return Q()},click:function(s,
x,I){var C=r.getItems().eq(s),T=q.activeClass;if(s<0||s>=this.getSize())return r;if(q.size==2){s==r.getIndex()&&s--;r.getItems().removeClass(T);C.addClass(T);return this.seekTo(s,x,I)}if(!C.hasClass(T)){r.getItems().removeClass(T);C.addClass(T);C=Math.floor(q.size/2);C=s-C;if(C>r.getSize()-q.size)C=r.getSize()-q.size;if(C!==s)return this.seekTo(C,x,I)}return r},onBeforeSeek:function(s){return F("onBeforeSeek",s)},onSeek:function(s){return F("onSeek",s)}});n.isFunction(n.fn.mousewheel)&&y.bind("mousewheel.scrollable",
function(s,x){s=n.browser.opera?1:-1;r.move(x>0?s:-s,50);return false});N.addClass(q.disabledClass).click(function(){r.prev()});V.click(function(){r.next()});X.click(function(){r.nextPage()});v.addClass(q.disabledClass).click(function(){r.prevPage()});q.keyboard&&n(document).unbind("keydown.scrollable").bind("keydown.scrollable",function(s){var x=w;if(x){if(z&&(s.keyCode==37||s.keyCode==39)){x.move(s.keyCode==37?-1:1);return s.preventDefault()}if(!z&&(s.keyCode==38||s.keyCode==40)){x.move(s.keyCode==
38?-1:1);return s.preventDefault()}return true}});Q();var Y=null;if(q.interval>0){y.hover(function(){clearInterval(Y)},function(){K()});K()}}n.tools=n.tools||{version:{}};n.tools.version.scrollable="1.0.3";var w=null;n.fn.scrollable=function(y){var q=this.eq(typeof y=="number"?y:0).data("scrollable");if(q)return q;var F={size:5,vertical:false,clickable:true,loop:false,interval:0,speed:400,keyboard:true,activeClass:"active",disabledClass:"disabled",hoverClass:null,easing:"swing",items:".items",prev:".prev",
next:".next",prevPage:".prevPage",nextPage:".nextPage",navi:".navi",naviItem:"a",api:false,onBeforeSeek:null,onSeek:null};n.extend(F,y);this.each(function(){q=new t(n(this),F);n(this).data("scrollable",q)});return F.api?q:this}})(jQuery);var obJQuery=jQuery.noConflict(true),outbrain_strip_version="6.2.0.0",outbrain_strip_template_object=typeof outbrain_strip_template_object=="function"?outbrain_strip_template_object:function(n,t,w,y,q){var F=new ObStripWidget(this,outbrain_settings,outbrain_template_manager);outbrain_strip_template_object.baseConstructor.call(this,n,t,w,y,q);this.buildDomRecommendations=function(){return F.buildDomRecommendations()};this.showRecommendations=function(E,Q){return F.showRecommendations(E,Q)};this.recommendationsShowBefore=
function(E){return F.recommendationsShowBefore(E)};this.imagesPreload=function(){return F.imagesPreload()};this.onAfterRecCancelation=function(E,Q){return F.onAfterRecCancelation(E,Q)}};outbrain_strip_template_object.prototype=outbrain_template_object;outbrain_strip_template_object.prototype.constructor=outbrain_strip_template_object;outbrain_strip_template_object.baseConstructor=outbrain_template_object;function ImageSpec(n,t,w,y){this.url=n;this.width=t;this.height=w;this.isDefault=y}
ImageSpec.DEFAULT_WIDTH=109;ImageSpec.DEFAULT_HEIGHT=109;ImageSpec.DEFAULT_IMG_URL="http://widgets.outbrain.com/strip_default.png";ImageSpec.CURRENT_IMG_WIDTH=ImageSpec.DEFAULT_WIDTH;ImageSpec.CURRENT_IMG_HEIGHT=ImageSpec.DEFAULT_HEIGHT;
ImageSpec.readFromJson=function(n){var t=ImageSpec.DEFAULT_IMG_URL,w=ImageSpec.DEFAULT_WIDTH,y=ImageSpec.DEFAULT_HEIGHT;if(n=n.thumbnail){t=n.url;w=n.width;y=n.height;ImageSpec.CURRENT_IMG_WIDTH=Number(w);ImageSpec.CURRENT_IMG_HEIGHT=Number(y)}return new ImageSpec(t,w,y,true)};ImageSpec.prototype.getUrl=function(){return this.url};ImageSpec.prototype.getWidth=function(){return this.width};ImageSpec.prototype.getHeight=function(){return this.height};
function ObStripWidget(n,t,w){this.tmpl=n;this.settings=t;this.templateManager=w}a=ObStripWidget.prototype;a.init=function(){this.initialized||this.tmpl.addCssFileByUrl(this.settings.domains.js+"strip.css?"+this.settings.versions.css);this.initialized=true};a.getItemPaddingRight=function(){if(window.OB_IMAGE_PADDING!=undefined&&OB_IMAGE_PADDING>=0)return OB_IMAGE_PADDING;return Math.round(ImageSpec.CURRENT_IMG_WIDTH/12.11)};a.getItemWidthNoPadding=function(){return ImageSpec.CURRENT_IMG_WIDTH+10};
a.getItemWidth=function(){return this.getItemPaddingRight()+this.getItemWidthNoPadding()};
a.buildDomRecommendations=function(){this.init();var n=obJQuery.browser.msie&&obJQuery.browser.version=="6.0",t=[];n&&t.push('<div class="strip-ie6">');t.push('<div id="$RECOMMENDATIONS_WAIT_ID_outer_$INDEX" class="$RECOMMENDATIONS_WAIT_CLASS_outer" style="display:none;">');t.push('<div class="$RECOMMENDATIONS_WAIT_CLASS_inner">');t.push('<p ><img style="border:0px !important"/></p>');t.push("</div>");t.push("</div>");t.push('<div class="thumbs-container">');t.push('<div class="strip-header" id="strip-header-$INDEX">');
t.push('<div class="strip-like">');t.push("</div>");t.push('<div class="strip-navi-cont">');t.push('<div class="strip-next-container">');t.push('<a class="strip-next" id="strip-next-$INDEX"></a>');t.push("</div>");t.push('<div class="strip-navi" id="strip-navi-$INDEX">');t.push("</div>");t.push('<div class="strip-prev-container">');t.push('<a class="strip-prev" id="strip-prev-$INDEX"></a>');t.push("</div>");t.push("</div>");t.push("</div>");t.push('<div id="$RECOMMENDATIONS_STRIP_ID_$INDEX_$POSITION" class="scrollable">');
t.push('<div class="ob-thumbs">');t.push("</div>");t.push("</div>");t.push("</div>");t.push('<div style="clear:both"></div>');n&&t.push("</div>");return t.join("")};a.recommendationsShowBefore=function(n){n=this.tmpl.getElementWithFullName(this.tmpl.constants.containerId,n);return obJQuery(".thumbs-container",n).is(":visible")};
a.showRecommendations=function(n,t){var w=t.rankInfo.vote,y=t.recTitle;t=t.jsonObj;var q=this.tmpl.getElementWithFullName(this.tmpl.constants.containerId,n);y=this.tmpl.changeStarsTextToImage(y,w,true);if(!this.tmpl.all_user_elements[this.tmpl.positionRec])return false;if(!this.recommendationsShowBefore(n)){w=this.tmpl.getElementWithFullName(this.tmpl.constants.recommendationsStripId,n);y=new ObColorPicker;var F=y.getLinkFontColor(q),E=y.getSimpleFontColor(q);this.replaceLocalizedStrings(q);var Q=
this.templateManager.isAllSameSource(t.response.documents);y=t.response.documents.doc.length;var K=this.templateManager.getRecommendationsPerDoc(outbrain_template_manager.DATA_REC_MIXED,t.response.documents.doc,null,null);ImageSpec.readFromJson(K[0]);for(var r=this.calculateNumRecommendationsToShow(y,q),z=0;z<y;z++){var L=z<r;this.renderOneRecommendation(n,obJQuery(".ob-thumbs",w),K[z],z,Q,L,null,F,E)}if(r>0){obJQuery(".thumbs-container",q).show();obJQuery("#strip-header-"+n).show();F=r*this.getItemWidth();
if(r==y)F-=this.getItemPaddingRight();E=typeof outbrain_browsers.isMobile=="boolean"&&outbrain_browsers.isMobile==true;var R=obJQuery(w).scrollable({size:r,items:obJQuery(".ob-thumbs",w),hoverClass:E?"":"hover",clickable:false,navi:"#strip-navi-"+n,nextPage:"#strip-next-"+n,prevPage:"#strip-prev-"+n,keyboard:false}).width(F);w=obJQuery(w).scrollable({api:true});w.begin();w.onSeek(function(){obJQuery(".strip-img-lazy").each(function(){if(this.src!==this.alt)this.src=this.alt})});y<=r?obJQuery(".strip-navi-cont",
q).hide():obJQuery("#strip-header-"+n).width(F-8);obJQuery(".ob-thumbs a.strip-rec-link-img",R).css("float","none");var d=false;obJQuery("img.strip-img",R).load(function(){if(!d){var N=0;obJQuery(".item-container .strip-text-content",q).each(function(){N=Math.max(N,obJQuery(this).position().top+obJQuery(this).height())});d=true;N>0&&setTimeout(function(){R.height(N);obJQuery(".item-container",R).height(N)},3E3)}}).error(function(){if(this.src==ImageSpec.DEFAULT_IMG_URL)obJQuery(this).hide();else this.src=
ImageSpec.DEFAULT_IMG_URL});this.applyBlogSpecificStyle(q)}this.tmpl.showHideRecsElements(n,t);this.tmpl.enableBlogExternalElements(n)}};
a.applyBlogSpecificStyle=function(n){n=(new ObColorPicker).getSimpleFontColor(n);if(n=="rgb(0, 0, 0)")n="#555";this.createCss("div.strip-navi a.active","background-color:"+n);this.createCss(".ob-thumbs div.hover .top-bar","background-color:"+n);this.createCss(".ob-thumbs div.hover a.strip-rec-link-img","border: 2px solid "+n+" !important");this.createCss(".strip-slant-borderdraw","border-color:"+n+" transparent transparent");this.createCss(".item-container-ad .paid-distribution a, .item-container-ad .paid-distribution a:hover",
"background-color:"+n);this.createCss(".ob-thumbs div.hover .top-bar","background-color:"+n);if(ImageSpec.CURRENT_IMG_WIDTH!=ImageSpec.DEFAULT_WIDTH||ImageSpec.CURRENT_IMG_HEIGHT!=ImageSpec.DEFAULT_HEIGHT||window.OB_IMAGE_PADDING!=undefined&&OB_IMAGE_PADDING>=0){this.createCss(".ob-thumbs a.strip-rec-link-img","width:"+ImageSpec.CURRENT_IMG_WIDTH+"px; height:"+ImageSpec.CURRENT_IMG_HEIGHT+"px");this.createCss(".item-container .top-bar","width:"+(ImageSpec.CURRENT_IMG_WIDTH+8)+'px;"');this.createCss(".ob-thumbs .item-container",
"width:"+(ImageSpec.CURRENT_IMG_WIDTH+10)+'px;"');this.createCss(".strip-slant-borderdraw","margin-left:"+(ImageSpec.CURRENT_IMG_WIDTH/2-4)+'px;"');this.createCss(".ob-thumbs .item-container","padding-right:"+this.getItemPaddingRight()+'px;"')}};
a.createCss=function(n,t){var w=navigator.userAgent.toLowerCase();w=/msie/.test(w)&&!/opera/.test(w)&&/win/.test(w);var y=document.createElement("style");y.setAttribute("type","text/css");y.setAttribute("media","screen");w||y.appendChild(document.createTextNode(n+" {"+t+"}"));document.getElementsByTagName("head")[0].appendChild(y);if(w&&document.styleSheets&&document.styleSheets.length>0){w=document.styleSheets[document.styleSheets.length-1];if(typeof w.addRule=="object")try{w.addRule(n,t)}catch(q){}}};
a.replaceLocalizedStrings=function(n){obJQuery(".strip-like",n).html(this.getYouMightAlsoLike())};a.calculateNumRecommendationsToShow=function(n,t){for(t=obJQuery(t);t.width()==0;)t=t.parent();t=t.width();t+=this.getItemPaddingRight();var w=this.getItemWidth();numAvailableInWidth=Math.floor(t/w);return Math.min(n,numAvailableInWidth)};
a.renderOneRecommendation=function(n,t,w,y,q,F,E,Q,K){if(!t)return false;E=this.templateManager.getRecommendationDataPerDoc(this.tmpl.templateIndex,n,w,y);var r=E[0],z=E[1],L=E[2],R=E[3],d=E[5],N=E[7];E=E[8];w=ImageSpec.readFromJson(w);if(r==null||z==null||L==null||R==null||d==null)return false;n=this.createScrollItemHtml(n,y,d,r,z,'target="_blank"',L,q,N,E,F,w,Q,K);t.append(n)};
a.createScrollItemHtml=function(n,t,w,y,q,F,E,Q,K,r,z,L,R,d){var N=this.settings.rater.recommendations.displaySameSiteTitle,V;F="_blank";if(!K&&!this.settings.rater.recommendations.openNewTab)F="_self";if(w&&N)E=outbrain_language_manager.getThisSiteString(this.tmpl.languageName);E=this.insertWbrToLongWords(E);N=this.insertWbrToLongWords(q);if(w&&!K)F="_self";w="";if(K&&typeof OB_add_nofollow=="string"&&(OB_add_nofollow==outbrain_settings.rater.recommendations.rel.REL_ALL||OB_add_nofollow==outbrain_settings.rater.recommendations.rel.REL_ADS))w=
"rel='nofollow'";if(!K&&typeof OB_add_nofollow=="string"&&(OB_add_nofollow==outbrain_settings.rater.recommendations.rel.REL_ALL||OB_add_nofollow==outbrain_settings.rater.recommendations.rel.REL_ORGANIC))w="rel='nofollow'";var v=[];v.push('<div class="item-container');K&&v.push(" item-container-ad");v.push('" id="item-container-');v.push(n);v.push("-");v.push(t);v.push('">');v.push('<div class="top-bar"></div>');v.push("<div>");v.push("<a ");v.push(w);v.push(' class="strip-rec-link-img" target="');
v.push(F);v.push('" href="');v.push(y);v.push('">');v.push('<img src="');V=L.getUrl();v.push(V);v.push('" alt="');v.push(L.getUrl());v.push('" width="');v.push(L.getWidth());v.push('" height="');v.push(L.getHeight());z="strip-img"+(z?"":" strip-img-lazy");v.push('" class="');v.push(z);v.push('" title="');v.push(q);v.push('" style="padding:0px!important;width:'+L.getWidth()+"px!important;height:"+L.getHeight()+'px!important"');v.push("/>");v.push("</a>");if(K){q=this.tmpl.callForToolTip("this");v.push('<div class="paid-distribution"><a href="javascript:void(0)" onClick="'+
q+'">');v.push(outbrain_language_manager.getSponsoredLinkImage(this.tmpl.languageName));v.push("</a></div>")}v.push("<div>");v.push('<div class="strip-slant-borderdraw"><!-- empty --\></div>');v.push('<div class="strip-text-content">');v.push("<a ");v.push(' style="color:');v.push(d);v.push('" ');v.push(w);v.push(' class="strip-rec-link-title" target="');v.push(F);v.push('" href="');v.push(y);v.push('">');v.push(N);v.push("</a>");if(!Q&&E&&E.length>0||typeof OB_same_source_visible=="boolean"&&OB_same_source_visible==
true){v.push("<a ");v.push(' style="color:');v.push(R);v.push('" ');v.push(w);v.push(' class="strip-rec-link-source" target="');v.push(F);v.push('" href="');v.push(y);v.push('">');v.push(E);v.push("</a>")}typeof r=="string"&&r.length>0&&typeof OB_user_mode=="number"&&OB_user_mode==1&&v.push(this.renderRecCancelation(n,t,r));v.push("</div>");v.push("</div>");return v.join("")};a.getPreloaderImageUrl=function(){return"http://widgets.outbrain.com/strip_preloader.gif"};
a.insertWbrToLongWords=function(n){if(!n)return"";return n.replace(/([a-z\/\\])([A-Z])/gm,"$1<wbr>$2").replace(/(\.)/gm,".<wbr>")};a.createInfoIcon=function(n,t,w,y,q,F,E){return this.tmpl.createInfoIcon(n,t,w,y,q,F,E)};a.getYouMightAlsoLike=function(){return this.tmpl.getYouMightAlsoLike(this.tmpl.getLanguageId())};a.renderRecCancelation=function(n,t,w){var y=this.tmpl.getElementWithFullName(this.tmpl.constants.recommendationsStripId,n);return this.tmpl.renderRecCancelation(n,t,w,y)};
a.onAfterRecCancelation=function(n,t){var w=this.tmpl.getElementWithFullName(this.tmpl.constants.containerId,n),y=this;obJQuery("#item-container-"+n+"-"+t,w).hide(500,function(){var q=y.tmpl.getElementWithFullName(y.tmpl.constants.recommendationsStripId,n);obJQuery(q).scrollable({api:true}).reload()})};a.imagesPreload=function(){};function ObColorPicker(){}
ObColorPicker.prototype.getSimpleFontColor=function(n){obJQuery(n).append('<span id="ObColorPicker_getSimpleFontColor">.</span>');tmp=obJQuery("#ObColorPicker_getSimpleFontColor");n=tmp.css("color");tmp.remove();return n};
ObColorPicker.prototype.getLinkFontColor=function(n){if((n=obJQuery(n))&&n[0]&&n[0].tagName=="A")return n.css("color");n.append('<a href="/random'+Math.random()+'" id="ObColorPicker_getLinkFontColor">.</a>');tmp=obJQuery("#ObColorPicker_getLinkFontColor",n);n=tmp.css("color");tmp.remove();return n};outbrainTemplateRegistry.reportTemplateLoaded(OutbrainTemplateRegistry.STRIP);outbrain_template_manager.addTemplate([["general",outbrain_template_object],["strip",outbrain_strip_template_object]]);
