/*
 * jQuery JavaScript Library v1.4
 * http://jquery.com/
 *
 * Copyright 2010, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://docs.jquery.com/License
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2010, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Wed Jan 13 15:23:05 2010 -0500
 */
(function(bf,b){function aq(){if(!d.isReady){try{a.documentElement.doScroll("left");}catch(c){setTimeout(aq,1);return;}d.ready();}}function x(c,s){s.src?d.ajax({url:s.src,async:false,dataType:"script"}):d.globalEval(s.text||s.textContent||s.innerHTML||"");s.parentNode&&s.parentNode.removeChild(s);}function h(A,G,H,L,K,c){var s=A.length;if(typeof G==="object"){for(var w in G){h(A,w,G[w],L,K,H);}return A;}if(H!==b){L=!c&&L&&d.isFunction(H);for(w=0;w<s;w++){K(A[w],G,L?H.call(A[w],w,K(A[w],G)):H,c);}return A;}return s?K(A[0],G):null;}function a9(){return(new Date).getTime();}function ar(){return false;}function at(){return true;}function ac(c,s,w){w[0].type=c;return d.event.handle.apply(s,w);}function ad(G){var H=true,K=[],M=[],L=arguments,c,s,A,O,w,P=d.extend({},d.data(this,"events").live);for(O in P){s=P[O];if(s.live===G.type||s.altLive&&d.inArray(G.type,s.altLive)>-1){c=s.data;c.beforeFilter&&c.beforeFilter[G.type]&&!c.beforeFilter[G.type](G)||M.push(s.selector);}else{delete P[O];}}c=d(G.target).closest(M,G.currentTarget);w=0;for(l=c.length;w<l;w++){for(O in P){s=P[O];A=c[w].elem;M=null;if(c[w].selector===s.selector){if(s.live==="mouseenter"||s.live==="mouseleave"){M=d(G.relatedTarget).closest(s.selector)[0];}if(!M||M!==A){K.push({elem:A,fn:s});}}}}w=0;for(l=K.length;w<l;w++){c=K[w];G.currentTarget=c.elem;G.data=c.fn.data;if(c.fn.apply(c.elem,L)===false){H=false;break;}}return H;}function ae(c,s){return["live",c,s.replace(/\./g,"`").replace(/ /g,"&")].join(".");}function af(c){return !c||!c.parentNode||c.parentNode.nodeType===11;}function ag(c,s){var w=0;s.each(function(){if(this.nodeName===(c[w]&&c[w].nodeName)){var K=d.data(c[w++]),H=d.data(this,K);if(K=K&&K.events){delete H.handle;H.events={};for(var G in K){for(var A in K[G]){d.event.add(this,G,K[G][A],K[G][A].data);}}}}});}function ah(s,w,A){var H,G,c;if(s.length===1&&typeof s[0]==="string"&&s[0].length<512&&s[0].indexOf("<option")<0){G=true;if(c=d.fragments[s[0]]){if(c!==1){H=c;}}}if(!H){w=w&&w[0]?w[0].ownerDocument||w[0]:a;H=w.createDocumentFragment();d.clean(s,w,H,A);}if(G){d.fragments[s[0]]=c?H:1;}return{fragment:H,cacheable:G};}function a3(c){for(var s=0,w,A;(w=c[s])!=null;s++){if(!d.noData[w.nodeName.toLowerCase()]&&(A=w[a7])){delete d.cache[A];}}}function bc(c,s){var w={};d.each(ai.concat.apply([],ai.slice(0,s)),function(){w[this]=c;});return w;}function aj(c){return"scrollTo" in c&&c.document?c:c.nodeType===9?c.defaultView||c.parentWindow:false;}var d=function(c,s){return new d.fn.init(c,s);},y=bf.jQuery,z=bf.$,a=bf.document,a4,B=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,i=/^.[^:#\[\.,]*$/,j=/\S/,k=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,a8=navigator.userAgent,N=false,a1=[],bd,au=Object.prototype.toString,av=Object.prototype.hasOwnProperty,aw=Array.prototype.push,a2=Array.prototype.slice,a5=Array.prototype.indexOf;d.fn=d.prototype={init:function(c,s){var w,A;if(!c){return this;}if(c.nodeType){this.context=this[0]=c;this.length=1;return this;}if(typeof c==="string"){if((w=B.exec(c))&&(w[1]||!s)){if(w[1]){A=s?s.ownerDocument||s:a;if(c=m.exec(c)){if(d.isPlainObject(s)){c=[a.createElement(c[1])];d.fn.attr.call(c,s,true);}else{c=[A.createElement(c[1])];}}else{c=ah([w[1]],[A]);c=(c.cacheable?c.fragment.cloneNode(true):c.fragment).childNodes;}}else{if(s=a.getElementById(w[2])){if(s.id!==w[2]){return a4.find(c);}this.length=1;this[0]=s;}this.context=a;this.selector=c;return this;}}else{if(!s&&/^\w+$/.test(c)){this.selector=c;this.context=a;c=a.getElementsByTagName(c);}else{return !s||s.jquery?(s||a4).find(c):d(s).find(c);}}}else{if(d.isFunction(c)){return a4.ready(c);}}if(c.selector!==b){this.selector=c.selector;this.context=c.context;}return d.isArray(c)?this.setArray(c):d.makeArray(c,this);},selector:"",jquery:"1.4",length:0,size:function(){return this.length;},toArray:function(){return a2.call(this,0);},get:function(c){return c==null?this.toArray():c<0?this.slice(c)[0]:this[c];},pushStack:function(c,s,w){c=d(c||null);c.prevObject=this;c.context=this.context;if(s==="find"){c.selector=this.selector+(this.selector?" ":"")+w;}else{if(s){c.selector=this.selector+"."+s+"("+w+")";}}return c;},setArray:function(c){this.length=0;aw.apply(this,c);return this;},each:function(c,s){return d.each(this,c,s);},ready:function(c){d.bindReady();if(d.isReady){c.call(a,d);}else{a1&&a1.push(c);}return this;},eq:function(c){return c===-1?this.slice(c):this.slice(c,+c+1);},first:function(){return this.eq(0);},last:function(){return this.eq(-1);},slice:function(){return this.pushStack(a2.apply(this,arguments),"slice",a2.call(arguments).join(","));},map:function(c){return this.pushStack(d.map(this,function(s,w){return c.call(s,w,s);}));},end:function(){return this.prevObject||d(null);},push:aw,sort:[].sort,splice:[].splice};d.fn.init.prototype=d.fn;d.extend=d.fn.extend=function(){var A=arguments[0]||{},G=1,H=arguments.length,L=false,K,c,s,w;if(typeof A==="boolean"){L=A;A=arguments[1]||{};G=2;}if(typeof A!=="object"&&!d.isFunction(A)){A={};}if(H===G){A=this;--G;}for(;G<H;G++){if((K=arguments[G])!=null){for(c in K){s=A[c];w=K[c];if(A!==w){if(L&&w&&(d.isPlainObject(w)||d.isArray(w))){s=s&&(d.isPlainObject(s)||d.isArray(s))?s:d.isArray(w)?[]:{};A[c]=d.extend(L,s,w);}else{if(w!==b){A[c]=w;}}}}}}return A;};d.extend({noConflict:function(c){bf.$=z;if(c){bf.jQuery=y;}return d;},isReady:false,ready:function(){if(!d.isReady){if(!a.body){return setTimeout(d.ready,13);}d.isReady=true;if(a1){for(var c,s=0;c=a1[s++];){c.call(a,d);}a1=null;}d.fn.triggerHandler&&d(a).triggerHandler("ready");}},bindReady:function(){if(!N){N=true;if(a.readyState==="complete"){return d.ready();}if(a.addEventListener){a.addEventListener("DOMContentLoaded",bd,false);bf.addEventListener("load",d.ready,false);}else{if(a.attachEvent){a.attachEvent("onreadystatechange",bd);bf.attachEvent("onload",d.ready);var c=false;try{c=bf.frameElement==null;}catch(s){}a.documentElement.doScroll&&c&&aq();}}}},isFunction:function(c){return au.call(c)==="[object Function]";},isArray:function(c){return au.call(c)==="[object Array]";},isPlainObject:function(c){if(!c||au.call(c)!=="[object Object]"||c.nodeType||c.setInterval){return false;}if(c.constructor&&!av.call(c,"constructor")&&!av.call(c.constructor.prototype,"isPrototypeOf")){return false;}var s;for(s in c){}return s===b||av.call(c,s);},isEmptyObject:function(c){for(var s in c){return false;}return true;},noop:function(){},globalEval:function(c){if(c&&j.test(c)){var s=a.getElementsByTagName("head")[0]||a.documentElement,w=a.createElement("script");w.type="text/javascript";if(d.support.scriptEval){w.appendChild(a.createTextNode(c));}else{w.text=c;}s.insertBefore(w,s.firstChild);s.removeChild(w);}},nodeName:function(c,s){return c.nodeName&&c.nodeName.toUpperCase()===s.toUpperCase();},each:function(w,A,G){var K,H=0,s=w.length,c=s===b||d.isFunction(w);if(G){if(c){for(K in w){if(A.apply(w[K],G)===false){break;}}}else{for(;H<s;){if(A.apply(w[H++],G)===false){break;}}}}else{if(c){for(K in w){if(A.call(w[K],K,w[K])===false){break;}}}else{for(G=w[0];H<s&&A.call(G,H,G)!==false;G=w[++H]){}}}return w;},trim:function(c){return(c||"").replace(k,"");},makeArray:function(c,s){s=s||[];if(c!=null){c.length==null||typeof c==="string"||d.isFunction(c)||typeof c!=="function"&&c.setInterval?aw.call(s,c):d.merge(s,c);}return s;},inArray:function(c,s){if(s.indexOf){return s.indexOf(c);}for(var w=0,A=s.length;w<A;w++){if(s[w]===c){return w;}}return -1;},merge:function(c,s){var w=c.length,G=0;if(typeof s.length==="number"){for(var A=s.length;G<A;G++){c[w++]=s[G];}}else{for(;s[G]!==b;){c[w++]=s[G++];}}c.length=w;return c;},grep:function(s,w,A){for(var H=[],G=0,c=s.length;G<c;G++){!A!==!w(s[G],G)&&H.push(s[G]);}return H;},map:function(w,A,G){for(var K=[],H,s=0,c=w.length;s<c;s++){H=A(w[s],s,G);if(H!=null){K[K.length]=H;}}return K.concat.apply([],K);},guid:1,proxy:function(c,s,w){if(arguments.length===2){if(typeof s==="string"){w=c;c=w[s];s=b;}else{if(s&&!d.isFunction(s)){w=s;s=b;}}}if(!s&&c){s=function(){return c.apply(w||this,arguments);};}if(c){s.guid=c.guid=c.guid||s.guid||d.guid++;}return s;},uaMatch:function(c){var s={browser:""};c=c.toLowerCase();if(/webkit/.test(c)){s={browser:"webkit",version:/webkit[\/ ]([\w.]+)/};}else{if(/opera/.test(c)){s={browser:"opera",version:/version/.test(c)?/version[\/ ]([\w.]+)/:/opera[\/ ]([\w.]+)/};}else{if(/msie/.test(c)){s={browser:"msie",version:/msie ([\w.]+)/};}else{if(/mozilla/.test(c)&&!/compatible/.test(c)){s={browser:"mozilla",version:/rv:([\w.]+)/};}}}}s.version=(s.version&&s.version.exec(c)||[0,"0"])[1];return s;},browser:{}});a8=d.uaMatch(a8);if(a8.browser){d.browser[a8.browser]=true;d.browser.version=a8.version;}if(d.browser.webkit){d.browser.safari=true;}if(a5){d.inArray=function(c,s){return a5.call(s,c);};}a4=d(a);if(a.addEventListener){bd=function(){a.removeEventListener("DOMContentLoaded",bd,false);d.ready();};}else{if(a.attachEvent){bd=function(){if(a.readyState==="complete"){a.detachEvent("onreadystatechange",bd);d.ready();}};}}if(a5){d.inArray=function(c,s){return a5.call(s,c);};}(function(){d.support={};var A=a.documentElement,G=a.createElement("script"),H=a.createElement("div"),L="script"+a9();H.style.display="none";H.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var K=H.getElementsByTagName("*"),c=H.getElementsByTagName("a")[0];if(!(!K||!K.length||!c)){d.support={leadingWhitespace:H.firstChild.nodeType===3,tbody:!H.getElementsByTagName("tbody").length,htmlSerialize:!!H.getElementsByTagName("link").length,style:/red/.test(c.getAttribute("style")),hrefNormalized:c.getAttribute("href")==="/a",opacity:/^0.55$/.test(c.style.opacity),cssFloat:!!c.style.cssFloat,checkOn:H.getElementsByTagName("input")[0].value==="on",optSelected:a.createElement("select").appendChild(a.createElement("option")).selected,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(a.createTextNode("window."+L+"=1;"));}catch(s){}A.insertBefore(G,A.firstChild);if(bf[L]){d.support.scriptEval=true;delete bf[L];}A.removeChild(G);if(H.attachEvent&&H.fireEvent){H.attachEvent("onclick",function w(){d.support.noCloneEvent=false;H.detachEvent("onclick",w);});H.cloneNode(true).fireEvent("onclick");}d(function(){var M=a.createElement("div");M.style.width=M.style.paddingLeft="1px";a.body.appendChild(M);d.boxModel=d.support.boxModel=M.offsetWidth===2;a.body.removeChild(M).style.display="none";});A=function(O){var P=a.createElement("div");O="on"+O;var M=O in P;if(!M){P.setAttribute(O,"return;");M=typeof P[O]==="function";}return M;};d.support.submitBubbles=A("submit");d.support.changeBubbles=A("change");A=G=H=K=c=null;}})();d.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var a7="jQuery"+a9(),n=0,S={},o={};d.extend({cache:{},expando:a7,noData:{embed:true,object:true,applet:true},data:function(c,s,w){if(!(c.nodeName&&d.noData[c.nodeName.toLowerCase()])){c=c==bf?S:c;var G=c[a7],A=d.cache;if(!s&&!G){return null;}G||(G=++n);if(typeof s==="object"){c[a7]=G;A=A[G]=d.extend(true,{},s);}else{A=A[G]?A[G]:typeof w==="undefined"?o:(A[G]={});}if(w!==b){c[a7]=G;A[s]=w;}return typeof s==="string"?A[s]:A;}},removeData:function(s,w){if(!(s.nodeName&&d.noData[s.nodeName.toLowerCase()])){s=s==bf?S:s;var A=s[a7],H=d.cache,G=H[A];if(w){if(G){delete G[w];d.isEmptyObject(G)&&d.removeData(s);}}else{try{delete s[a7];}catch(c){s.removeAttribute&&s.removeAttribute(a7);}delete H[A];}}}});d.fn.extend({data:function(c,s){if(typeof c==="undefined"&&this.length){return d.data(this[0]);}else{if(typeof c==="object"){return this.each(function(){d.data(this,c);});}}var w=c.split(".");w[1]=w[1]?"."+w[1]:"";if(s===b){var A=this.triggerHandler("getData"+w[1]+"!",[w[0]]);if(A===b&&this.length){A=d.data(this[0],c);}return A===b&&w[1]?this.data(w[0]):A;}else{return this.trigger("setData"+w[1]+"!",[w[0],s]).each(function(){d.data(this,c,s);});}},removeData:function(c){return this.each(function(){d.removeData(this,c);});}});d.extend({queue:function(c,s,w){if(c){s=(s||"fx")+"queue";var A=d.data(c,s);if(!w){return A||[];}if(!A||d.isArray(w)){A=d.data(c,s,d.makeArray(w));}else{A.push(w);}return A;}},dequeue:function(c,s){s=s||"fx";var w=d.queue(c,s),A=w.shift();if(A==="inprogress"){A=w.shift();}if(A){s==="fx"&&w.unshift("inprogress");A.call(c,function(){d.dequeue(c,s);});}}});d.fn.extend({queue:function(c,s){if(typeof c!=="string"){s=c;c="fx";}if(s===b){return d.queue(this[0],c);}return this.each(function(){var w=d.queue(this,c,s);c==="fx"&&w[0]!=="inprogress"&&d.dequeue(this,c);});},dequeue:function(c){return this.each(function(){d.dequeue(this,c);});},delay:function(c,s){c=d.fx?d.fx.speeds[c]||c:c;s=s||"fx";return this.queue(s,function(){var w=this;setTimeout(function(){d.dequeue(w,s);},c);});},clearQueue:function(c){return this.queue(c||"fx",[]);}});var X=/[\n\t]/g,ax=/\s+/,p=/\r/g,q=/href|src|style/,e=/(button|input)/i,f=/(button|input|object|select|textarea)/i,g=/^(a|area)$/i,C=/radio|checkbox/;d.fn.extend({attr:function(c,s){return h(this,c,s,true,d.attr);},removeAttr:function(c){return this.each(function(){d.attr(this,c,"");this.nodeType===1&&this.removeAttribute(c);});},addClass:function(A){if(d.isFunction(A)){return this.each(function(O){var M=d(this);M.addClass(A.call(this,O,M.attr("class")));});}if(A&&typeof A==="string"){for(var G=(A||"").split(ax),H=0,L=this.length;H<L;H++){var K=this[H];if(K.nodeType===1){if(K.className){for(var c=" "+K.className+" ",s=0,w=G.length;s<w;s++){if(c.indexOf(" "+G[s]+" ")<0){K.className+=" "+G[s];}}}else{K.className=A;}}}}return this;},removeClass:function(A){if(d.isFunction(A)){return this.each(function(O){var M=d(this);M.removeClass(A.call(this,O,M.attr("class")));});}if(A&&typeof A==="string"||A===b){for(var G=(A||"").split(ax),H=0,L=this.length;H<L;H++){var K=this[H];if(K.nodeType===1&&K.className){if(A){for(var c=(" "+K.className+" ").replace(X," "),s=0,w=G.length;s<w;s++){c=c.replace(" "+G[s]+" "," ");}K.className=c.substring(1,c.length-1);}else{K.className="";}}}}return this;},toggleClass:function(c,s){var w=typeof c,A=typeof s==="boolean";if(d.isFunction(c)){return this.each(function(H){var G=d(this);G.toggleClass(c.call(this,H,G.attr("class"),s),s);});}return this.each(function(){if(w==="string"){for(var L,K=0,H=d(this),G=s,M=c.split(ax);L=M[K++];){G=A?G:!H.hasClass(L);H[G?"addClass":"removeClass"](L);}}else{if(w==="undefined"||w==="boolean"){this.className&&d.data(this,"__className__",this.className);this.className=this.className||c===false?"":d.data(this,"__className__")||"";}}});},hasClass:function(c){c=" "+c+" ";for(var s=0,w=this.length;s<w;s++){if((" "+this[s].className+" ").replace(X," ").indexOf(c)>-1){return true;}}return false;},val:function(A){if(A===b){var G=this[0];if(G){if(d.nodeName(G,"option")){return(G.attributes.value||{}).specified?G.value:G.text;}if(d.nodeName(G,"select")){var H=G.selectedIndex,L=[],K=G.options;G=G.type==="select-one";if(H<0){return null;}var c=G?H:0;for(H=G?H+1:K.length;c<H;c++){var s=K[c];if(s.selected){A=d(s).val();if(G){return A;}L.push(A);}}return L;}if(C.test(G.type)&&!d.support.checkOn){return G.getAttribute("value")===null?"on":G.value;}return(G.value||"").replace(p,"");}return b;}var w=d.isFunction(A);return this.each(function(Q){var M=d(this),O=A;if(this.nodeType===1){if(w){O=A.call(this,Q,M.val());}if(typeof O==="number"){O+="";}if(d.isArray(O)&&C.test(this.type)){this.checked=d.inArray(M.val(),O)>=0;}else{if(d.nodeName(this,"select")){var P=d.makeArray(O);d("option",this).each(function(){this.selected=d.inArray(d(this).val(),P)>=0;});if(!P.length){this.selectedIndex=-1;}}else{this.value=O;}}}});}});d.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(s,w,A,H){if(!s||s.nodeType===3||s.nodeType===8){return b;}if(H&&w in d.attrFn){return d(s)[w](A);}H=s.nodeType!==1||!d.isXMLDoc(s);var G=A!==b;w=H&&d.props[w]||w;if(s.nodeType===1){var c=q.test(w);if(w in s&&H&&!c){if(G){if(w==="type"&&e.test(s.nodeName)&&s.parentNode){throw"type property can't be changed";}s[w]=A;}if(d.nodeName(s,"form")&&s.getAttributeNode(w)){return s.getAttributeNode(w).nodeValue;}if(w==="tabIndex"){return(w=s.getAttributeNode("tabIndex"))&&w.specified?w.value:f.test(s.nodeName)||g.test(s.nodeName)&&s.href?0:b;}return s[w];}if(!d.support.style&&H&&w==="style"){if(G){s.style.cssText=""+A;}return s.style.cssText;}G&&s.setAttribute(w,""+A);s=!d.support.hrefNormalized&&H&&c?s.getAttribute(w,2):s.getAttribute(w);return s===null?b:s;}return d.style(s,w,A);}});var a0=function(c){return c.replace(/[^\w\s\.\|`]/g,function(s){return"\\"+s;});};d.event={add:function(H,K,L,O){if(!(H.nodeType===3||H.nodeType===8)){if(H.setInterval&&H!==bf&&!H.frameElement){H=bf;}if(!L.guid){L.guid=d.guid++;}if(O!==b){L=d.proxy(L);L.data=O;}var M=d.data(H,"events")||d.data(H,"events",{}),c=d.data(H,"handle"),s;if(!c){s=function(){return typeof d!=="undefined"&&!d.event.triggered?d.event.handle.apply(s.elem,arguments):b;};c=d.data(H,"handle",s);}if(c){c.elem=H;K=K.split(/\s+/);for(var G,P=0;G=K[P++];){var A=G.split(".");G=A.shift();L.type=A.slice(0).sort().join(".");var Q=M[G],w=this.special[G]||{};if(!Q){Q=M[G]={};if(!w.setup||w.setup.call(H,O,A,L)===false){if(H.addEventListener){H.addEventListener(G,c,false);}else{H.attachEvent&&H.attachEvent("on"+G,c);}}}if(w.add){if((A=w.add.call(H,L,O,A,Q))&&d.isFunction(A)){A.guid=A.guid||L.guid;L=A;}}Q[L.guid]=L;this.global[G]=true;}H=null;}}},global:{},remove:function(H,K,L){if(!(H.nodeType===3||H.nodeType===8)){var O=d.data(H,"events"),M,c,s;if(O){if(K===b||typeof K==="string"&&K.charAt(0)==="."){for(c in O){this.remove(H,c+(K||""));}}else{if(K.type){L=K.handler;K=K.type;}K=K.split(/\s+/);for(var G=0;c=K[G++];){var P=c.split(".");c=P.shift();var A=!P.length,R=d.map(P.slice(0).sort(),a0);R=new RegExp("(^|\\.)"+R.join("\\.(?:.*\\.)?")+"(\\.|$)");var w=this.special[c]||{};if(O[c]){if(L){s=O[c][L.guid];delete O[c][L.guid];}else{for(var Q in O[c]){if(A||R.test(O[c][Q].type)){delete O[c][Q];}}}w.remove&&w.remove.call(H,P,s);for(M in O[c]){break;}if(!M){if(!w.teardown||w.teardown.call(H,P)===false){if(H.removeEventListener){H.removeEventListener(c,d.data(H,"handle"),false);}else{H.detachEvent&&H.detachEvent("on"+c,d.data(H,"handle"));}}M=null;delete O[c];}}}}for(M in O){break;}if(!M){if(Q=d.data(H,"handle")){Q.elem=null;}d.removeData(H,"events");d.removeData(H,"handle");}}}},trigger:function(G,H,K,M){var L=G.type||G;if(!M){G=typeof G==="object"?G[a7]?G:d.extend(d.Event(L),G):d.Event(L);if(L.indexOf("!")>=0){G.type=L=L.slice(0,-1);G.exclusive=true;}if(!K){G.stopPropagation();this.global[L]&&d.each(d.cache,function(){this.events&&this.events[L]&&d.event.trigger(G,H,this.handle.elem);});}if(!K||K.nodeType===3||K.nodeType===8){return b;}G.result=b;G.target=K;H=d.makeArray(H);H.unshift(G);}G.currentTarget=K;var c=d.data(K,"handle");c&&c.apply(K,H);var s,A;try{if(!(K&&K.nodeName&&d.noData[K.nodeName.toLowerCase()])){s=K[L];A=K["on"+L];}}catch(O){}c=d.nodeName(K,"a")&&L==="click";if(!M&&s&&!G.isDefaultPrevented()&&!c){this.triggered=true;try{K[L]();}catch(w){}}else{if(A&&K["on"+L].apply(K,H)===false){G.result=false;}}this.triggered=false;if(!G.isPropagationStopped()){(K=K.parentNode||K.ownerDocument)&&d.event.trigger(G,H,K,true);}},handle:function(s){var w,A;s=arguments[0]=d.event.fix(s||bf.event);s.currentTarget=this;A=s.type.split(".");s.type=A.shift();w=!A.length&&!s.exclusive;var H=new RegExp("(^|\\.)"+A.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)");A=(d.data(this,"events")||{})[s.type];for(var G in A){var c=A[G];if(w||H.test(c.type)){s.handler=c;s.data=c.data;c=c.apply(this,arguments);if(c!==b){s.result=c;if(c===false){s.preventDefault();s.stopPropagation();}}if(s.isImmediatePropagationStopped()){break;}}}return s.result;},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(c){if(c[a7]){return c;}var s=c;c=d.Event(s);for(var w=this.props.length,A;w;){A=this.props[--w];c[A]=s[A];}if(!c.target){c.target=c.srcElement||a;}if(c.target.nodeType===3){c.target=c.target.parentNode;}if(!c.relatedTarget&&c.fromElement){c.relatedTarget=c.fromElement===c.target?c.toElement:c.fromElement;}if(c.pageX==null&&c.clientX!=null){s=a.documentElement;w=a.body;c.pageX=c.clientX+(s&&s.scrollLeft||w&&w.scrollLeft||0)-(s&&s.clientLeft||w&&w.clientLeft||0);c.pageY=c.clientY+(s&&s.scrollTop||w&&w.scrollTop||0)-(s&&s.clientTop||w&&w.clientTop||0);}if(!c.which&&(c.charCode||c.charCode===0?c.charCode:c.keyCode)){c.which=c.charCode||c.keyCode;}if(!c.metaKey&&c.ctrlKey){c.metaKey=c.ctrlKey;}if(!c.which&&c.button!==b){c.which=c.button&1?1:c.button&2?3:c.button&4?2:0;}return c;},guid:100000000,proxy:d.proxy,special:{ready:{setup:d.bindReady,teardown:d.noop},live:{add:function(c,s){d.extend(c,s||{});c.guid+=s.selector+s.live;d.event.add(this,s.live,ad,s);},remove:function(c){if(c.length){var s=0,w=new RegExp("(^|\\.)"+c[0]+"(\\.|$)");d.each(d.data(this,"events").live||{},function(){w.test(this.type)&&s++;});s<1&&d.event.remove(this,c[0],ad);}},special:{}},beforeunload:{setup:function(c,s,w){if(this.setInterval){this.onbeforeunload=w;}return false;},teardown:function(c,s){if(this.onbeforeunload===s){this.onbeforeunload=null;}}}}};d.Event=function(c){if(!this.preventDefault){return new d.Event(c);}if(c&&c.type){this.originalEvent=c;this.type=c.type;}else{this.type=c;}this.timeStamp=a9();this[a7]=true;};d.Event.prototype={preventDefault:function(){this.isDefaultPrevented=at;var c=this.originalEvent;if(c){c.preventDefault&&c.preventDefault();c.returnValue=false;}},stopPropagation:function(){this.isPropagationStopped=at;var c=this.originalEvent;if(c){c.stopPropagation&&c.stopPropagation();c.cancelBubble=true;}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=at;this.stopPropagation();},isDefaultPrevented:ar,isPropagationStopped:ar,isImmediatePropagationStopped:ar};var D=function(c){for(var s=c.relatedTarget;s&&s!==this;){try{s=s.parentNode;}catch(w){break;}}if(s!==this){c.type=c.data;d.event.handle.apply(this,arguments);}},E=function(c){c.type=c.data;d.event.handle.apply(this,arguments);};d.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(c,s){d.event.special[c]={setup:function(w){d.event.add(this,s,w&&w.selector?E:D,c);},teardown:function(w){d.event.remove(this,s,w&&w.selector?E:D);}};});if(!d.support.submitBubbles){d.event.special.submit={setup:function(c,s,w){if(this.nodeName.toLowerCase()!=="form"){d.event.add(this,"click.specialSubmit."+w.guid,function(H){var G=H.target,A=G.type;if((A==="submit"||A==="image")&&d(G).closest("form").length){return ac("submit",this,arguments);}});d.event.add(this,"keypress.specialSubmit."+w.guid,function(H){var G=H.target,A=G.type;if((A==="text"||A==="password")&&d(G).closest("form").length&&H.keyCode===13){return ac("submit",this,arguments);}});}else{return false;}},remove:function(c,s){d.event.remove(this,"click.specialSubmit"+(s?"."+s.guid:""));d.event.remove(this,"keypress.specialSubmit"+(s?"."+s.guid:""));}};}if(!d.support.changeBubbles){var ay=/textarea|input|select/i;function F(c){var s=c.type,w=c.value;if(s==="radio"||s==="checkbox"){w=c.checked;}else{if(s==="select-multiple"){w=c.selectedIndex>-1?d.map(c.options,function(A){return A.selected;}).join("-"):"";}else{if(c.nodeName.toLowerCase()==="select"){w=c.selectedIndex;}}}return w;}function ak(c,s){var w=c.target,G,A;if(!(!ay.test(w.nodeName)||w.readOnly)){G=d.data(w,"_change_data");A=F(w);if(A!==G){if(c.type!=="focusout"||w.type!=="radio"){d.data(w,"_change_data",A);}if(w.type!=="select"&&(G!=null||A)){c.type="change";return d.event.trigger(c,s,this);}}}}d.event.special.change={filters:{focusout:ak,click:function(c){var s=c.target,w=s.type;if(w==="radio"||w==="checkbox"||s.nodeName.toLowerCase()==="select"){return ak.call(this,c);}},keydown:function(c){var s=c.target,w=s.type;if(c.keyCode===13&&s.nodeName.toLowerCase()!=="textarea"||c.keyCode===32&&(w==="checkbox"||w==="radio")||w==="select-multiple"){return ak.call(this,c);}},beforeactivate:function(c){c=c.target;c.nodeName.toLowerCase()==="input"&&c.type==="radio"&&d.data(c,"_change_data",F(c));}},setup:function(c,s,w){for(var A in a6){d.event.add(this,A+".specialChange."+w.guid,a6[A]);}return ay.test(this.nodeName);},remove:function(c,s){for(var w in a6){d.event.remove(this,w+".specialChange"+(s?"."+s.guid:""),a6[w]);}return ay.test(this.nodeName);}};var a6=d.event.special.change.filters;}a.addEventListener&&d.each({focus:"focusin",blur:"focusout"},function(c,s){function w(A){A=d.event.fix(A);A.type=s;return d.event.handle.call(this,A);}d.event.special[s]={setup:function(){this.addEventListener(c,w,true);},teardown:function(){this.removeEventListener(c,w,true);}};});d.each(["bind","one"],function(c,s){d.fn[s]=function(G,K,H){if(typeof G==="object"){for(var w in G){this[s](w,K,G[w],H);}return this;}if(d.isFunction(K)){thisObject=H;H=K;K=b;}var A=s==="one"?d.proxy(H,function(L){d(this).unbind(L,A);return H.apply(this,arguments);}):H;return G==="unload"&&s!=="one"?this.one(G,K,H,thisObject):this.each(function(){d.event.add(this,G,A,K);});};});d.fn.extend({unbind:function(c,s){if(typeof c==="object"&&!c.preventDefault){for(var w in c){this.unbind(w,c[w]);}return this;}return this.each(function(){d.event.remove(this,c,s);});},trigger:function(c,s){return this.each(function(){d.event.trigger(c,s,this);});},triggerHandler:function(c,s){if(this[0]){c=d.Event(c);c.preventDefault();c.stopPropagation();d.event.trigger(c,s,this[0]);return c.result;}},toggle:function(c){for(var s=arguments,w=1;w<s.length;){d.proxy(c,s[w++]);}return this.click(d.proxy(c,function(G){var A=(d.data(this,"lastToggle"+c.guid)||0)%w;d.data(this,"lastToggle"+c.guid,A+1);G.preventDefault();return s[A].apply(this,arguments)||false;}));},hover:function(c,s){return this.mouseenter(c).mouseleave(s||c);},live:function(c,s,w){if(d.isFunction(s)){w=s;s=b;}d(this.context).bind(ae(c,this.selector),{data:s,selector:this.selector,live:c},w);return this;},die:function(c,s){d(this.context).unbind(ae(c,this.selector),s?{guid:s.guid+this.selector+c}:null);return this;}});d.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(c,s){d.fn[s]=function(w){return w?this.bind(s,w):this.trigger(s);};if(d.attrFn){d.attrFn[s]=true;}});bf.attachEvent&&!bf.addEventListener&&bf.attachEvent("onunload",function(){for(var c in d.cache){if(d.cache[c].handle){try{d.event.remove(d.cache[c].handle.elem);}catch(s){}}}});(function(){function M(ba){for(var aa="",ab,Z=0;ba[Z];Z++){ab=ba[Z];if(ab.nodeType===3||ab.nodeType===4){aa+=ab.nodeValue;}else{if(ab.nodeType!==8){aa+=M(ab.childNodes);}}}return aa;}function O(ba,bk,Z,aa,bh,bb){bh=0;for(var bj=aa.length;bh<bj;bh++){var bi=aa[bh];if(bi){bi=bi[ba];for(var ab=false;bi;){if(bi.sizcache===Z){ab=aa[bi.sizset];break;}if(bi.nodeType===1&&!bb){bi.sizcache=Z;bi.sizset=bh;}if(bi.nodeName.toLowerCase()===bk){ab=bi;break;}bi=bi[ba];}aa[bh]=ab;}}}function P(ba,bk,Z,aa,bh,bb){bh=0;for(var bj=aa.length;bh<bj;bh++){var bi=aa[bh];if(bi){bi=bi[ba];for(var ab=false;bi;){if(bi.sizcache===Z){ab=aa[bi.sizset];break;}if(bi.nodeType===1){if(!bb){bi.sizcache=Z;bi.sizset=bh;}if(typeof bk!=="string"){if(bi===bk){ab=true;break;}}else{if(s.filter(bk,[bi]).length>0){ab=bi;break;}}}bi=bi[ba];}aa[bh]=ab;}}}var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,Q=0,A=Object.prototype.toString,G=false,L=true;[0,0].sort(function(){L=false;return 0;});var s=function(bk,bp,ab,bb){ab=ab||[];var bm=bp=bp||a;if(bp.nodeType!==1&&bp.nodeType!==9){return[];}if(!bk||typeof bk!=="string"){return ab;}for(var bl=[],bo,bn,bh,bi,Z=true,bj=Y(bp),aa=bk;(R.exec(""),bo=R.exec(aa))!==null;){aa=bo[3];bl.push(bo[1]);if(bo[2]){bi=bo[3];break;}}if(bl.length>1&&w.exec(bk)){if(bl.length===2&&K.relative[bl[0]]){bn=H(bl[0]+bl[1],bp);}else{for(bn=K.relative[bl[0]]?[bp]:s(bl.shift(),bp);bl.length;){bk=bl.shift();if(K.relative[bk]){bk+=bl.shift();}bn=H(bk,bn);}}}else{if(!bb&&bl.length>1&&bp.nodeType===9&&!bj&&K.match.ID.test(bl[0])&&!K.match.ID.test(bl[bl.length-1])){bo=s.find(bl.shift(),bp,bj);bp=bo.expr?s.filter(bo.expr,bo.set)[0]:bo.set[0];}if(bp){bo=bb?{expr:bl.pop(),set:T(bb)}:s.find(bl.pop(),bl.length===1&&(bl[0]==="~"||bl[0]==="+")&&bp.parentNode?bp.parentNode:bp,bj);bn=bo.expr?s.filter(bo.expr,bo.set):bo.set;if(bl.length>0){bh=T(bn);}else{Z=false;}for(;bl.length;){var ba=bl.pop();bo=ba;if(K.relative[ba]){bo=bl.pop();}else{ba="";}if(bo==null){bo=bp;}K.relative[ba](bh,bo,bj);}}else{bh=[];}}bh||(bh=bn);if(!bh){throw"Syntax error, unrecognized expression: "+(ba||bk);}if(A.call(bh)==="[object Array]"){if(Z){if(bp&&bp.nodeType===1){for(bk=0;bh[bk]!=null;bk++){if(bh[bk]&&(bh[bk]===true||bh[bk].nodeType===1&&W(bp,bh[bk]))){ab.push(bn[bk]);}}}else{for(bk=0;bh[bk]!=null;bk++){bh[bk]&&bh[bk].nodeType===1&&ab.push(bn[bk]);}}}else{ab.push.apply(ab,bh);}}else{T(bh,ab);}if(bi){s(bi,bm,ab,bb);s.uniqueSort(ab);}return ab;};s.uniqueSort=function(aa){if(V){G=L;aa.sort(V);if(G){for(var Z=1;Z<aa.length;Z++){aa[Z]===aa[Z-1]&&aa.splice(Z--,1);}}}return aa;};s.matches=function(aa,Z){return s(aa,null,null,Z);};s.find=function(ba,bk,Z){var aa,bh;if(!ba){return[];}for(var bb=0,bj=K.order.length;bb<bj;bb++){var bi=K.order[bb];if(bh=K.leftMatch[bi].exec(ba)){var ab=bh[1];bh.splice(1,1);if(ab.substr(ab.length-1)!=="\\"){bh[1]=(bh[1]||"").replace(/\\/g,"");aa=K.find[bi](bh,bk,Z);if(aa!=null){ba=ba.replace(K.match[bi],"");break;}}}}aa||(aa=bk.getElementsByTagName("*"));return{set:aa,expr:ba};};s.filter=function(bl,br,ab,bb){for(var bn=bl,bm=[],bp=br,bo,bh,bi=br&&br[0]&&Y(br[0]);bl&&br.length;){for(var Z in K.filter){if((bo=K.leftMatch[Z].exec(bl))!=null&&bo[2]){var bj=K.filter[Z],aa,ba;ba=bo[1];bh=false;bo.splice(1,1);if(ba.substr(ba.length-1)!=="\\"){if(bp===bm){bm=[];}if(K.preFilter[Z]){if(bo=K.preFilter[Z](bo,bp,ab,bm,bb,bi)){if(bo===true){continue;}}else{bh=aa=true;}}if(bo){for(var bk=0;(ba=bp[bk])!=null;bk++){if(ba){aa=bj(ba,bo,bk,bp);var bq=bb^!!aa;if(ab&&aa!=null){if(bq){bh=true;}else{bp[bk]=false;}}else{if(bq){bm.push(ba);bh=true;}}}}}if(aa!==b){ab||(bp=bm);bl=bl.replace(K.match[Z],"");if(!bh){return[];}break;}}}}if(bl===bn){if(bh==null){throw"Syntax error, unrecognized expression: "+bl;}else{break;}}bn=bl;}return bp;};var K=s.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\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(Z){return Z.getAttribute("href");}},relative:{"+":function(bh,ab){var bb=typeof ab==="string",Z=bb&&!/\W/.test(ab);bb=bb&&!Z;if(Z){ab=ab.toLowerCase();}Z=0;for(var ba=bh.length,aa;Z<ba;Z++){if(aa=bh[Z]){for(;(aa=aa.previousSibling)&&aa.nodeType!==1;){}bh[Z]=bb||aa&&aa.nodeName.toLowerCase()===ab?aa||false:aa===ab;}}bb&&s.filter(ab,bh,true);},">":function(bh,ab){var bb=typeof ab==="string";if(bb&&!/\W/.test(ab)){ab=ab.toLowerCase();for(var Z=0,ba=bh.length;Z<ba;Z++){var aa=bh[Z];if(aa){bb=aa.parentNode;bh[Z]=bb.nodeName.toLowerCase()===ab?bb:false;}}}else{Z=0;for(ba=bh.length;Z<ba;Z++){if(aa=bh[Z]){bh[Z]=bb?aa.parentNode:aa.parentNode===ab;}}bb&&s.filter(ab,bh,true);}},"":function(bh,ab,bb){var Z=Q++,ba=P;if(typeof ab==="string"&&!/\W/.test(ab)){var aa=ab=ab.toLowerCase();ba=O;}ba("parentNode",ab,Z,bh,aa,bb);},"~":function(bh,ab,bb){var Z=Q++,ba=P;if(typeof ab==="string"&&!/\W/.test(ab)){var aa=ab=ab.toLowerCase();ba=O;}ba("previousSibling",ab,Z,bh,aa,bb);}},find:{ID:function(ab,Z,aa){if(typeof Z.getElementById!=="undefined"&&!aa){return(ab=Z.getElementById(ab[1]))?[ab]:[];}},NAME:function(bb,aa){if(typeof aa.getElementsByName!=="undefined"){var ba=[];aa=aa.getElementsByName(bb[1]);for(var Z=0,ab=aa.length;Z<ab;Z++){aa[Z].getAttribute("name")===bb[1]&&ba.push(aa[Z]);}return ba.length===0?null:ba;}},TAG:function(aa,Z){return Z.getElementsByTagName(aa[1]);}},preFilter:{CLASS:function(bi,ba,bh,Z,bb,aa){bi=" "+bi[1].replace(/\\/g,"")+" ";if(aa){return bi;}aa=0;for(var ab;(ab=ba[aa])!=null;aa++){if(ab){if(bb^(ab.className&&(" "+ab.className+" ").replace(/[\t\n]/g," ").indexOf(bi)>=0)){bh||Z.push(ab);}else{if(bh){ba[aa]=false;}}}}return false;},ID:function(Z){return Z[1].replace(/\\/g,"");},TAG:function(Z){return Z[1].toLowerCase();},CHILD:function(aa){if(aa[1]==="nth"){var Z=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(aa[2]==="even"&&"2n"||aa[2]==="odd"&&"2n+1"||!/\D/.test(aa[2])&&"0n+"+aa[2]||aa[2]);aa[2]=Z[1]+(Z[2]||1)-0;aa[3]=Z[3]-0;}aa[0]=Q++;return aa;},ATTR:function(bh,ab,bb,Z,ba,aa){ab=bh[1].replace(/\\/g,"");if(!aa&&K.attrMap[ab]){bh[1]=K.attrMap[ab];}if(bh[2]==="~="){bh[4]=" "+bh[4]+" ";}return bh;},PSEUDO:function(bb,aa,ba,Z,ab){if(bb[1]==="not"){if((R.exec(bb[3])||"").length>1||/^\w/.test(bb[3])){bb[3]=s(bb[3],null,null,aa);}else{bb=s.filter(bb[3],aa,ba,true^ab);ba||Z.push.apply(Z,bb);return false;}}else{if(K.match.POS.test(bb[0])||K.match.CHILD.test(bb[0])){return true;}}return bb;},POS:function(Z){Z.unshift(true);return Z;}},filters:{enabled:function(Z){return Z.disabled===false&&Z.type!=="hidden";},disabled:function(Z){return Z.disabled===true;},checked:function(Z){return Z.checked===true;},selected:function(Z){return Z.selected===true;},parent:function(Z){return !!Z.firstChild;},empty:function(Z){return !Z.firstChild;},has:function(ab,Z,aa){return !!s(aa[3],ab).length;},header:function(Z){return/h\d/i.test(Z.nodeName);},text:function(Z){return"text"===Z.type;},radio:function(Z){return"radio"===Z.type;},checkbox:function(Z){return"checkbox"===Z.type;},file:function(Z){return"file"===Z.type;},password:function(Z){return"password"===Z.type;},submit:function(Z){return"submit"===Z.type;},image:function(Z){return"image"===Z.type;},reset:function(Z){return"reset"===Z.type;},button:function(Z){return"button"===Z.type||Z.nodeName.toLowerCase()==="button";},input:function(Z){return/input|select|textarea|button/i.test(Z.nodeName);}},setFilters:{first:function(aa,Z){return Z===0;},last:function(ba,aa,ab,Z){return aa===Z.length-1;},even:function(aa,Z){return Z%2===0;},odd:function(aa,Z){return Z%2===1;},lt:function(ab,Z,aa){return Z<aa[3]-0;},gt:function(ab,Z,aa){return Z>aa[3]-0;},nth:function(ab,Z,aa){return aa[3]-0===Z;},eq:function(ab,Z,aa){return aa[3]-0===Z;}},filter:{PSEUDO:function(bh,ab,bb,Z){var ba=ab[1],aa=K.filters[ba];if(aa){return aa(bh,bb,ab,Z);}else{if(ba==="contains"){return(bh.textContent||bh.innerText||M([bh])||"").indexOf(ab[3])>=0;}else{if(ba==="not"){ab=ab[3];bb=0;for(Z=ab.length;bb<Z;bb++){if(ab[bb]===bh){return false;}}return true;}else{throw"Syntax error, unrecognized expression: "+ba;}}}},CHILD:function(bi,ba){var bh=ba[1],Z=bi;switch(bh){case"only":case"first":for(;Z=Z.previousSibling;){if(Z.nodeType===1){return false;}}if(bh==="first"){return true;}Z=bi;case"last":for(;Z=Z.nextSibling;){if(Z.nodeType===1){return false;}}return true;case"nth":bh=ba[2];var bb=ba[3];if(bh===1&&bb===0){return true;}ba=ba[0];var aa=bi.parentNode;if(aa&&(aa.sizcache!==ba||!bi.nodeIndex)){var ab=0;for(Z=aa.firstChild;Z;Z=Z.nextSibling){if(Z.nodeType===1){Z.nodeIndex=++ab;}}aa.sizcache=ba;}bi=bi.nodeIndex-bb;return bh===0?bi===0:bi%bh===0&&bi/bh>=0;}},ID:function(aa,Z){return aa.nodeType===1&&aa.getAttribute("id")===Z;},TAG:function(aa,Z){return Z==="*"&&aa.nodeType===1||aa.nodeName.toLowerCase()===Z;},CLASS:function(aa,Z){return(" "+(aa.className||aa.getAttribute("class"))+" ").indexOf(Z)>-1;},ATTR:function(ba,aa){var ab=aa[1];ba=K.attrHandle[ab]?K.attrHandle[ab](ba):ba[ab]!=null?ba[ab]:ba.getAttribute(ab);ab=ba+"";var Z=aa[2];aa=aa[4];return ba==null?Z==="!=":Z==="="?ab===aa:Z==="*="?ab.indexOf(aa)>=0:Z==="~="?(" "+ab+" ").indexOf(aa)>=0:!aa?ab&&ba!==false:Z==="!="?ab!==aa:Z==="^="?ab.indexOf(aa)===0:Z==="$="?ab.substr(ab.length-aa.length)===aa:Z==="|="?ab===aa||ab.substr(0,aa.length+1)===aa+"-":false;},POS:function(bb,aa,ba,Z){var ab=K.setFilters[aa[2]];if(ab){return ab(bb,ba,aa,Z);}}}},w=K.match.POS;for(var c in K.match){K.match[c]=new RegExp(K.match[c].source+/(?![^\[]*\])(?![^\(]*\))/.source);K.leftMatch[c]=new RegExp(/(^(?:.|\r|\n)*?)/.source+K.match[c].source.replace(/\\(\d+)/g,function(aa,Z){return"\\"+(Z-0+1);}));}var T=function(aa,Z){aa=Array.prototype.slice.call(aa,0);if(Z){Z.push.apply(Z,aa);return Z;}return aa;};try{Array.prototype.slice.call(a.documentElement.childNodes,0);}catch(U){T=function(ba,aa){aa=aa||[];if(A.call(ba)==="[object Array]"){Array.prototype.push.apply(aa,ba);}else{if(typeof ba.length==="number"){for(var ab=0,Z=ba.length;ab<Z;ab++){aa.push(ba[ab]);}}else{for(ab=0;ba[ab];ab++){aa.push(ba[ab]);}}}return aa;};}var V;if(a.documentElement.compareDocumentPosition){V=function(aa,Z){if(!aa.compareDocumentPosition||!Z.compareDocumentPosition){if(aa==Z){G=true;}return aa.compareDocumentPosition?-1:1;}aa=aa.compareDocumentPosition(Z)&4?-1:aa===Z?0:1;if(aa===0){G=true;}return aa;};}else{if("sourceIndex" in a.documentElement){V=function(aa,Z){if(!aa.sourceIndex||!Z.sourceIndex){if(aa==Z){G=true;}return aa.sourceIndex?-1:1;}aa=aa.sourceIndex-Z.sourceIndex;if(aa===0){G=true;}return aa;};}else{if(a.createRange){V=function(ba,aa){if(!ba.ownerDocument||!aa.ownerDocument){if(ba==aa){G=true;}return ba.ownerDocument?-1:1;}var ab=ba.ownerDocument.createRange(),Z=aa.ownerDocument.createRange();ab.setStart(ba,0);ab.setEnd(ba,0);Z.setStart(aa,0);Z.setEnd(aa,0);ba=ab.compareBoundaryPoints(Range.START_TO_END,Z);if(ba===0){G=true;}return ba;};}}}(function(){var ab=a.createElement("div"),Z="script"+(new Date).getTime();ab.innerHTML="<a name='"+Z+"'/>";var aa=a.documentElement;aa.insertBefore(ab,aa.firstChild);if(a.getElementById(Z)){K.find.ID=function(ba,bb,bh){if(typeof bb.getElementById!=="undefined"&&!bh){return(bb=bb.getElementById(ba[1]))?bb.id===ba[1]||typeof bb.getAttributeNode!=="undefined"&&bb.getAttributeNode("id").nodeValue===ba[1]?[bb]:b:[];}};K.filter.ID=function(ba,bb){var bh=typeof ba.getAttributeNode!=="undefined"&&ba.getAttributeNode("id");return ba.nodeType===1&&bh&&bh.nodeValue===bb;};}aa.removeChild(ab);aa=ab=null;})();(function(){var Z=a.createElement("div");Z.appendChild(a.createComment(""));if(Z.getElementsByTagName("*").length>0){K.find.TAG=function(ab,ba){ba=ba.getElementsByTagName(ab[1]);if(ab[1]==="*"){ab=[];for(var aa=0;ba[aa];aa++){ba[aa].nodeType===1&&ab.push(ba[aa]);}ba=ab;}return ba;};}Z.innerHTML="<a href='#'></a>";if(Z.firstChild&&typeof Z.firstChild.getAttribute!=="undefined"&&Z.firstChild.getAttribute("href")!=="#"){K.attrHandle.href=function(aa){return aa.getAttribute("href",2);};}Z=null;})();a.querySelectorAll&&function(){var ab=s,Z=a.createElement("div");Z.innerHTML="<p class='TEST'></p>";if(!(Z.querySelectorAll&&Z.querySelectorAll(".TEST").length===0)){s=function(ba,bi,bj,bh){bi=bi||a;if(!bh&&bi.nodeType===9&&!Y(bi)){try{return T(bi.querySelectorAll(ba),bj);}catch(bb){}}return ab(ba,bi,bj,bh);};for(var aa in ab){s[aa]=ab[aa];}Z=null;}}();(function(){var Z=a.createElement("div");Z.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!Z.getElementsByClassName||Z.getElementsByClassName("e").length===0)){Z.lastChild.className="e";if(Z.getElementsByClassName("e").length!==1){K.order.splice(1,0,"CLASS");K.find.CLASS=function(ab,ba,aa){if(typeof ba.getElementsByClassName!=="undefined"&&!aa){return ba.getElementsByClassName(ab[1]);}};Z=null;}}})();var W=a.compareDocumentPosition?function(aa,Z){return aa.compareDocumentPosition(Z)&16;}:function(aa,Z){return aa!==Z&&(aa.contains?aa.contains(Z):true);},Y=function(Z){return(Z=(Z?Z.ownerDocument||Z:0).documentElement)?Z.nodeName!=="HTML":false;},H=function(bh,ab){var bb=[],Z="",ba;for(ab=ab.nodeType?[ab]:ab;ba=K.match.PSEUDO.exec(bh);){Z+=ba[0];bh=bh.replace(K.match.PSEUDO,"");}bh=K.relative[bh]?bh+"*":bh;ba=0;for(var aa=ab.length;ba<aa;ba++){s(bh,ab[ba],bb);}return s.filter(Z,bb);};d.find=s;d.expr=s.selectors;d.expr[":"]=d.expr.filters;d.unique=s.uniqueSort;d.getText=M;d.isXMLDoc=Y;d.contains=W;})();var aR=/Until$/,aS=/^(?:parents|prevUntil|prevAll)/,aT=/,/;a2=Array.prototype.slice;var I=function(c,s,w){if(d.isFunction(s)){return d.grep(c,function(H,G){return !!s.call(H,G,H)===w;});}else{if(s.nodeType){return d.grep(c,function(G){return G===s===w;});}else{if(typeof s==="string"){var A=d.grep(c,function(G){return G.nodeType===1;});if(i.test(s)){return d.filter(s,A,!w);}else{s=d.filter(s,c);}}}}return d.grep(c,function(G){return d.inArray(G,s)>=0===w;});};d.fn.extend({find:function(w){for(var A=this.pushStack("","find",w),G=0,K=0,H=this.length;K<H;K++){G=A.length;d.find(w,this[K],A);if(K>0){for(var s=G;s<A.length;s++){for(var c=0;c<G;c++){if(A[c]===A[s]){A.splice(s--,1);break;}}}}}return A;},has:function(c){var s=d(c);return this.filter(function(){for(var w=0,A=s.length;w<A;w++){if(d.contains(this,s[w])){return true;}}});},not:function(c){return this.pushStack(I(this,c,false),"not",c);},filter:function(c){return this.pushStack(I(this,c,true),"filter",c);},is:function(c){return !!c&&d.filter(c,this).length>0;},closest:function(A,G){if(d.isArray(A)){var H=[],L=this[0],K,c={},s;if(L&&A.length){K=0;for(var w=A.length;K<w;K++){s=A[K];c[s]||(c[s]=d.expr.match.POS.test(s)?d(s,G||this.context):s);}for(;L&&L.ownerDocument&&L!==G;){for(s in c){K=c[s];if(K.jquery?K.index(L)>-1:d(L).is(K)){H.push({selector:s,elem:L});delete c[s];}}L=L.parentNode;}}return H;}var M=d.expr.match.POS.test(A)?d(A,G||this.context):null;return this.map(function(O,P){for(;P&&P.ownerDocument&&P!==G;){if(M?M.index(P)>-1:d(P).is(A)){return P;}P=P.parentNode;}return null;});},index:function(c){if(!c||typeof c==="string"){return d.inArray(this[0],c?d(c):this.parent().children());}return d.inArray(c.jquery?c[0]:c,this);},add:function(c,s){c=typeof c==="string"?d(c,s||this.context):d.makeArray(c);s=d.merge(this.get(),c);return this.pushStack(af(c[0])||af(s[0])?s:d.unique(s));},andSelf:function(){return this.add(this.prevObject);}});d.each({parent:function(c){return(c=c.parentNode)&&c.nodeType!==11?c:null;},parents:function(c){return d.dir(c,"parentNode");},parentsUntil:function(c,s,w){return d.dir(c,"parentNode",w);},next:function(c){return d.nth(c,2,"nextSibling");},prev:function(c){return d.nth(c,2,"previousSibling");},nextAll:function(c){return d.dir(c,"nextSibling");},prevAll:function(c){return d.dir(c,"previousSibling");},nextUntil:function(c,s,w){return d.dir(c,"nextSibling",w);},prevUntil:function(c,s,w){return d.dir(c,"previousSibling",w);},siblings:function(c){return d.sibling(c.parentNode.firstChild,c);},children:function(c){return d.sibling(c.firstChild);},contents:function(c){return d.nodeName(c,"iframe")?c.contentDocument||c.contentWindow.document:d.makeArray(c.childNodes);}},function(c,s){d.fn[c]=function(w,G){var A=d.map(this,s,w);aR.test(c)||(G=w);if(G&&typeof G==="string"){A=d.filter(G,A);}A=this.length>1?d.unique(A):A;if((this.length>1||aT.test(G))&&aS.test(c)){A=A.reverse();}return this.pushStack(A,c,a2.call(arguments).join(","));};});d.extend({filter:function(c,s,w){if(w){c=":not("+c+")";}return d.find.matches(c,s);},dir:function(c,s,w){var A=[];for(c=c[s];c&&c.nodeType!==9&&(w===b||!d(c).is(w));){c.nodeType===1&&A.push(c);c=c[s];}return A;},nth:function(c,s,w){s=s||1;for(var A=0;c;c=c[w]){if(c.nodeType===1&&++A===s){break;}}return c;},sibling:function(c,s){for(var w=[];c;c=c.nextSibling){c.nodeType===1&&c!==s&&w.push(c);}return w;}});var J=/ jQuery\d+="(?:\d+|null)"/g,aY=/^\s+/,aU=/(<([\w:]+)[^>]*?)\/>/g,aV=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,r=/<([\w:]+)/,aW=/<tbody/i,aX=/<|&\w+;/,aJ=function(c,s,w){return aV.test(w)?c:s+"></"+w+">";},bg={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};bg.optgroup=bg.option;bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead;bg.th=bg.td;if(!d.support.htmlSerialize){bg._default=[1,"div<div>","</div>"];}d.fn.extend({text:function(c){if(d.isFunction(c)){return this.each(function(s){var w=d(this);return w.text(c.call(this,s,w.text()));});}if(typeof c!=="object"&&c!==b){return this.empty().append((this[0]&&this[0].ownerDocument||a).createTextNode(c));}return d.getText(this);},wrapAll:function(c){if(d.isFunction(c)){return this.each(function(w){d(this).wrapAll(c.call(this,w));});}if(this[0]){var s=d(c,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&s.insertBefore(this[0]);s.map(function(){for(var w=this;w.firstChild&&w.firstChild.nodeType===1;){w=w.firstChild;}return w;}).append(this);}return this;},wrapInner:function(c){return this.each(function(){var s=d(this),w=s.contents();w.length?w.wrapAll(c):s.append(c);});},wrap:function(c){return this.each(function(){d(this).wrapAll(c);});},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes);}).end();},append:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.appendChild(c);});},prepend:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.insertBefore(c,this.firstChild);});},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(s){this.parentNode.insertBefore(s,this);});}else{if(arguments.length){var c=d(arguments[0]);c.push.apply(c,this.toArray());return this.pushStack(c,"before",arguments);}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(s){this.parentNode.insertBefore(s,this.nextSibling);});}else{if(arguments.length){var c=this.pushStack(this,"after",arguments);c.push.apply(c,d(arguments[0]).toArray());return c;}}},clone:function(c){var s=this.map(function(){if(!d.support.noCloneEvent&&!d.isXMLDoc(this)){var w=this.outerHTML,A=this.ownerDocument;if(!w){w=A.createElement("div");w.appendChild(this.cloneNode(true));w=w.innerHTML;}return d.clean([w.replace(J,"").replace(aY,"")],A)[0];}else{return this.cloneNode(true);}});if(c===true){ag(this,s);ag(this.find("*"),s.find("*"));}return s;},html:function(c){if(c===b){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(J,""):null;}else{if(typeof c==="string"&&!/<script/i.test(c)&&(d.support.leadingWhitespace||!aY.test(c))&&!bg[(r.exec(c)||["",""])[1].toLowerCase()]){try{for(var s=0,w=this.length;s<w;s++){if(this[s].nodeType===1){a3(this[s].getElementsByTagName("*"));this[s].innerHTML=c;}}}catch(A){this.empty().append(c);}}else{d.isFunction(c)?this.each(function(K){var H=d(this),G=H.html();H.empty().append(function(){return c.call(this,K,G);});}):this.empty().append(c);}}return this;},replaceWith:function(c){if(this[0]&&this[0].parentNode){d.isFunction(c)||(c=d(c).detach());return this.each(function(){var s=this.nextSibling,w=this.parentNode;d(this).remove();s?d(s).before(c):d(w).append(c);});}else{return this.pushStack(d(d.isFunction(c)?c():c),"replaceWith",c);}},detach:function(c){return this.remove(c,true);},domManip:function(G,H,K){function M(P){return d.nodeName(P,"table")?P.getElementsByTagName("tbody")[0]||P.appendChild(P.ownerDocument.createElement("tbody")):P;}var L,c,s=G[0],A=[];if(d.isFunction(s)){return this.each(function(P){var Q=d(this);G[0]=s.call(this,P,H?Q.html():b);return Q.domManip(G,H,K);});}if(this[0]){L=G[0]&&G[0].parentNode&&G[0].parentNode.nodeType===11?{fragment:G[0].parentNode}:ah(G,this,A);if(c=L.fragment.firstChild){H=H&&d.nodeName(c,"tr");for(var O=0,w=this.length;O<w;O++){K.call(H?M(this[O],c):this[O],L.cacheable||this.length>1||O>0?L.fragment.cloneNode(true):L.fragment);}}A&&d.each(A,x);}return this;}});d.fragments={};d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(c,s){d.fn[c]=function(G){var K=[];G=d(G);for(var H=0,w=G.length;H<w;H++){var A=(H>0?this.clone(true):this).get();d.fn[s].apply(d(G[H]),A);K=K.concat(A);}return this.pushStack(K,c,G.selector);};});d.each({remove:function(c,s){if(!c||d.filter(c,[this]).length){if(!s&&this.nodeType===1){a3(this.getElementsByTagName("*"));a3([this]);}this.parentNode&&this.parentNode.removeChild(this);}},empty:function(){for(this.nodeType===1&&a3(this.getElementsByTagName("*"));this.firstChild;){this.removeChild(this.firstChild);}}},function(c,s){d.fn[c]=function(){return this.each(s,arguments);};});d.extend({clean:function(c,s,w,G){s=s||a;if(typeof s.createElement==="undefined"){s=s.ownerDocument||s[0]&&s[0].ownerDocument||a;}var A=[];d.each(c,function(L,M){if(typeof M==="number"){M+="";}if(M){if(typeof M==="string"&&!aX.test(M)){M=s.createTextNode(M);}else{if(typeof M==="string"){M=M.replace(aU,aJ);var K=(r.exec(M)||["",""])[1].toLowerCase(),O=bg[K]||bg._default,H=O[0];L=s.createElement("div");for(L.innerHTML=O[1]+M+O[2];H--;){L=L.lastChild;}if(!d.support.tbody){H=aW.test(M);K=K==="table"&&!H?L.firstChild&&L.firstChild.childNodes:O[1]==="<table>"&&!H?L.childNodes:[];for(O=K.length-1;O>=0;--O){d.nodeName(K[O],"tbody")&&!K[O].childNodes.length&&K[O].parentNode.removeChild(K[O]);}}!d.support.leadingWhitespace&&aY.test(M)&&L.insertBefore(s.createTextNode(aY.exec(M)[0]),L.firstChild);M=d.makeArray(L.childNodes);}}if(M.nodeType){A.push(M);}else{A=d.merge(A,M);}}});if(w){for(c=0;A[c];c++){if(G&&d.nodeName(A[c],"script")&&(!A[c].type||A[c].type.toLowerCase()==="text/javascript")){G.push(A[c].parentNode?A[c].parentNode.removeChild(A[c]):A[c]);}else{A[c].nodeType===1&&A.splice.apply(A,[c+1,0].concat(d.makeArray(A[c].getElementsByTagName("script"))));w.appendChild(A[c]);}}}return A;}});var aK=/z-?index|font-?weight|opacity|zoom|line-?height/i,t=/alpha\([^)]*\)/,u=/opacity=([^)]*)/,al=/float/i,am=/-([a-z])/ig,aL=/([A-Z])/g,aM=/^-?\d+(?:px)?$/i,aN=/^-?\d/,aO={position:"absolute",visibility:"hidden",display:"block"},aP=["Left","Right"],aQ=["Top","Bottom"],aB=a.defaultView&&a.defaultView.getComputedStyle,v=d.support.cssFloat?"cssFloat":"styleFloat",an=function(c,s){return s.toUpperCase();};d.fn.css=function(c,s){return h(this,c,s,true,function(w,G,A){if(A===b){return d.curCSS(w,G);}if(typeof A==="number"&&!aK.test(G)){A+="px";}d.style(w,G,A);});};d.extend({style:function(c,s,w){if(!c||c.nodeType===3||c.nodeType===8){return b;}if((s==="width"||s==="height")&&parseFloat(w)<0){w=b;}var G=c.style||c,A=w!==b;if(!d.support.opacity&&s==="opacity"){if(A){G.zoom=1;s=parseInt(w,10)+""==="NaN"?"":"alpha(opacity="+w*100+")";c=G.filter||d.curCSS(c,"filter")||"";G.filter=t.test(c)?c.replace(t,s):s;}return G.filter&&G.filter.indexOf("opacity=")>=0?parseFloat(u.exec(G.filter)[1])/100+"":"";}if(al.test(s)){s=v;}s=s.replace(am,an);if(A){G[s]=w;}return G[s];},css:function(w,A,G,K){if(A==="width"||A==="height"){var H,s=A==="width"?aP:aQ;function c(){H=A==="width"?w.offsetWidth:w.offsetHeight;K!=="border"&&d.each(s,function(){K||(H-=parseFloat(d.curCSS(w,"padding"+this,true))||0);if(K==="margin"){H+=parseFloat(d.curCSS(w,"margin"+this,true))||0;}else{H-=parseFloat(d.curCSS(w,"border"+this+"Width",true))||0;}});}w.offsetWidth!==0?c():d.swap(w,aO,c);return Math.max(0,Math.round(H));}return d.curCSS(w,A,G);},curCSS:function(s,w,A){var H,G=s.style;if(!d.support.opacity&&w==="opacity"&&s.currentStyle){H=u.test(s.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return H===""?"1":H;}if(al.test(w)){w=v;}if(!A&&G&&G[w]){H=G[w];}else{if(aB){if(al.test(w)){w="float";}w=w.replace(aL,"-$1").toLowerCase();G=s.ownerDocument.defaultView;if(!G){return null;}if(s=G.getComputedStyle(s,null)){H=s.getPropertyValue(w);}if(w==="opacity"&&H===""){H="1";}}else{if(s.currentStyle){A=w.replace(am,an);H=s.currentStyle[w]||s.currentStyle[A];if(!aM.test(H)&&aN.test(H)){w=G.left;var c=s.runtimeStyle.left;s.runtimeStyle.left=s.currentStyle.left;G.left=A==="fontSize"?"1em":H||0;H=G.pixelLeft+"px";G.left=w;s.runtimeStyle.left=c;}}}}return H;},swap:function(c,s,w){var G={};for(var A in s){G[A]=c.style[A];c.style[A]=s[A];}w.call(c);for(A in s){c.style[A]=G[A];}}});if(d.expr&&d.expr.filters){d.expr.filters.hidden=function(c){var s=c.offsetWidth,w=c.offsetHeight,A=c.nodeName.toLowerCase()==="tr";return s===0&&w===0&&!A?true:s>0&&w>0&&!A?false:d.curCSS(c,"display")==="none";};d.expr.filters.visible=function(c){return !d.expr.filters.hidden(c);};}var aC=a9(),aD=/<script(.|\s)*?\/script>/gi,aE=/select|textarea/i,aF=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,be=/=\?(&|$)/,ao=/\?/,aG=/(\?|&)_=.*?(&|$)/,aH=/^(\w+:)?\/\/([^\/?#]+)/,aI=/%20/g;d.fn.extend({_load:d.fn.load,load:function(c,s,w){if(typeof c!=="string"){return this._load(c);}else{if(!this.length){return this;}}var G=c.indexOf(" ");if(G>=0){var A=c.slice(G,c.length);c=c.slice(0,G);}G="GET";if(s){if(d.isFunction(s)){w=s;s=null;}else{if(typeof s==="object"){s=d.param(s,d.ajaxSettings.traditional);G="POST";}}}d.ajax({url:c,type:G,dataType:"html",data:s,context:this,complete:function(H,K){if(K==="success"||K==="notmodified"){this.html(A?d("<div />").append(H.responseText.replace(aD,"")).find(A):H.responseText);}w&&this.each(w,[H.responseText,K,H]);}});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||aE.test(this.nodeName)||aF.test(this.type));}).map(function(c,s){c=d(this).val();return c==null?null:d.isArray(c)?d.map(c,function(w){return{name:s.name,value:w};}):{name:s.name,value:c};}).get();}});d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(c,s){d.fn[s]=function(w){return this.bind(s,w);};});d.extend({get:function(c,s,w,A){if(d.isFunction(s)){A=A||w;w=s;s=null;}return d.ajax({type:"GET",url:c,data:s,success:w,dataType:A});},getScript:function(c,s){return d.get(c,null,s,"script");},getJSON:function(c,s,w){return d.get(c,s,w,"json");},post:function(c,s,w,A){if(d.isFunction(s)){A=A||w;w=s;s={};}return d.ajax({type:"POST",url:c,data:s,success:w,dataType:A});},ajaxSetup:function(c){d.extend(d.ajaxSettings,c);},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:bf.XMLHttpRequest&&(bf.location.protocol!=="file:"||!bf.ActiveXObject)?function(){return new bf.XMLHttpRequest;}:function(){try{return new bf.ActiveXObject("Microsoft.XMLHTTP");}catch(c){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(Q){function R(){U.success&&U.success.call(s,O,H,ba);U.global&&V("ajaxSuccess",[ba,U]);}function T(){U.complete&&U.complete.call(s,ba,H);U.global&&V("ajaxComplete",[ba,U]);U.global&&!--d.active&&d.event.trigger("ajaxStop");}function V(bb,bh){(U.context?d(U.context):d.event).trigger(bb,bh);}var U=d.extend(true,{},d.ajaxSettings,Q),G,H,O,s=U.context||U,M=U.type.toUpperCase();if(U.data&&U.processData&&typeof U.data!=="string"){U.data=d.param(U.data,U.traditional);}if(U.dataType==="jsonp"){if(M==="GET"){be.test(U.url)||(U.url+=(ao.test(U.url)?"&":"?")+(U.jsonp||"callback")+"=?");}else{if(!U.data||!be.test(U.data)){U.data=(U.data?U.data+"&":"")+(U.jsonp||"callback")+"=?";}}U.dataType="json";}if(U.dataType==="json"&&(U.data&&be.test(U.data)||be.test(U.url))){G=U.jsonpCallback||"jsonp"+aC++;if(U.data){U.data=(U.data+"").replace(be,"="+G+"$1");}U.url=U.url.replace(be,"="+G+"$1");U.dataType="script";bf[G]=bf[G]||function(bb){O=bb;R();T();bf[G]=b;try{delete bf[G];}catch(bh){}Y&&Y.removeChild(Z);};}if(U.dataType==="script"&&U.cache===null){U.cache=false;}if(U.cache===false&&M==="GET"){var w=a9(),c=U.url.replace(aG,"$1_="+w+"$2");U.url=c+(c===U.url?(ao.test(U.url)?"&":"?")+"_="+w:"");}if(U.data&&M==="GET"){U.url+=(ao.test(U.url)?"&":"?")+U.data;}U.global&&!d.active++&&d.event.trigger("ajaxStart");w=(w=aH.exec(U.url))&&(w[1]&&w[1]!==location.protocol||w[2]!==location.host);if(U.dataType==="script"&&M==="GET"&&w){var Y=a.getElementsByTagName("head")[0]||a.documentElement,Z=a.createElement("script");Z.src=U.url;if(U.scriptCharset){Z.charset=U.scriptCharset;}if(!G){var aa=false;Z.onload=Z.onreadystatechange=function(){if(!aa&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){aa=true;R();T();Z.onload=Z.onreadystatechange=null;Y&&Z.parentNode&&Y.removeChild(Z);}};}Y.insertBefore(Z,Y.firstChild);return b;}var ab=false,ba=U.xhr();if(ba){U.username?ba.open(M,U.url,U.async,U.username,U.password):ba.open(M,U.url,U.async);try{if(U.data||Q&&Q.contentType){ba.setRequestHeader("Content-Type",U.contentType);}if(U.ifModified){d.lastModified[U.url]&&ba.setRequestHeader("If-Modified-Since",d.lastModified[U.url]);d.etag[U.url]&&ba.setRequestHeader("If-None-Match",d.etag[U.url]);}w||ba.setRequestHeader("X-Requested-With","XMLHttpRequest");ba.setRequestHeader("Accept",U.dataType&&U.accepts[U.dataType]?U.accepts[U.dataType]+", */*":U.accepts._default);}catch(K){}if(U.beforeSend&&U.beforeSend.call(s,ba,U)===false){U.global&&!--d.active&&d.event.trigger("ajaxStop");ba.abort();return false;}U.global&&V("ajaxSend",[ba,U]);var W=ba.onreadystatechange=function(bb){if(!ba||ba.readyState===0){ab||T();ab=true;if(ba){ba.onreadystatechange=d.noop;}}else{if(!ab&&ba&&(ba.readyState===4||bb==="timeout")){ab=true;ba.onreadystatechange=d.noop;H=bb==="timeout"?"timeout":!d.httpSuccess(ba)?"error":U.ifModified&&d.httpNotModified(ba,U.url)?"notmodified":"success";if(H==="success"){try{O=d.httpData(ba,U.dataType,U);}catch(bh){H="parsererror";}}if(H==="success"||H==="notmodified"){G||R();}else{d.handleError(U,ba,H);}T();bb==="timeout"&&ba.abort();if(U.async){ba=null;}}}};try{var A=ba.abort;ba.abort=function(){if(ba){A.call(ba);if(ba){ba.readyState=0;}}W();};}catch(P){}U.async&&U.timeout>0&&setTimeout(function(){ba&&!ab&&W("timeout");},U.timeout);try{ba.send(M==="POST"||M==="PUT"||M==="DELETE"?U.data:null);}catch(L){d.handleError(U,ba,null,L);T();}U.async||W();return ba;}},handleError:function(c,s,w,A){if(c.error){c.error.call(c.context||bf,s,w,A);}if(c.global){(c.context?d(c.context):d.event).trigger("ajaxError",[s,c,A]);}},active:0,httpSuccess:function(c){try{return !c.status&&location.protocol==="file:"||c.status>=200&&c.status<300||c.status===304||c.status===1223||c.status===0;}catch(s){}return false;},httpNotModified:function(c,s){var w=c.getResponseHeader("Last-Modified"),A=c.getResponseHeader("Etag");if(w){d.lastModified[s]=w;}if(A){d.etag[s]=A;}return c.status===304||c.status===0;},httpData:function(c,s,w){var G=c.getResponseHeader("content-type")||"",A=s==="xml"||!s&&G.indexOf("xml")>=0;c=A?c.responseXML:c.responseText;if(A&&c.documentElement.nodeName==="parsererror"){throw"parsererror";}if(w&&w.dataFilter){c=w.dataFilter(c,s);}if(typeof c==="string"){if(s==="json"||!s&&G.indexOf("json")>=0){if(/^[\],:{}\s]*$/.test(c.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){c=bf.JSON&&bf.JSON.parse?bf.JSON.parse(c):(new Function("return "+c))();}else{throw"Invalid JSON: "+c;}}else{if(s==="script"||!s&&G.indexOf("javascript")>=0){d.globalEval(c);}}}return c;},param:function(c,s){function w(K,H){H=d.isFunction(H)?H():H;G[G.length]=encodeURIComponent(K)+"="+encodeURIComponent(H);}var G=[];if(s===b){s=d.ajaxSettings.traditional;}d.isArray(c)||c.jquery?d.each(c,function(){w(this.name,this.value);}):d.each(c,function A(H,K){if(d.isArray(K)){d.each(K,function(L,M){s?w(H,M):A(H+"["+(typeof M==="object"||d.isArray(M)?L:"")+"]",M);});}else{!s&&K!=null&&typeof K==="object"?d.each(K,function(L,M){A(H+"["+L+"]",M);}):w(H,K);}});return G.join("&").replace(aI,"+");}});var ap={},az=/toggle|show|hide/,aA=/^([+-]=)?([\d+-.]+)(.*)$/,aZ,ai=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];d.fn.extend({show:function(c,s){if(c!=null){return this.animate(bc("show",3),c,s);}else{c=0;for(s=this.length;c<s;c++){var w=d.data(this[c],"olddisplay");this[c].style.display=w||"";if(d.css(this[c],"display")==="none"){w=this[c].nodeName;var G;if(ap[w]){G=ap[w];}else{var A=d("<"+w+" />").appendTo("body");G=A.css("display");if(G==="none"){G="block";}A.remove();ap[w]=G;}d.data(this[c],"olddisplay",G);}}c=0;for(s=this.length;c<s;c++){this[c].style.display=d.data(this[c],"olddisplay")||"";}return this;}},hide:function(c,s){if(c!=null){return this.animate(bc("hide",3),c,s);}else{c=0;for(s=this.length;c<s;c++){var w=d.data(this[c],"olddisplay");!w&&w!=="none"&&d.data(this[c],"olddisplay",d.css(this[c],"display"));}c=0;for(s=this.length;c<s;c++){this[c].style.display="none";}return this;}},_toggle:d.fn.toggle,toggle:function(c,s){var w=typeof c==="boolean";if(d.isFunction(c)&&d.isFunction(s)){this._toggle.apply(this,arguments);}else{c==null||w?this.each(function(){var A=w?c:d(this).is(":hidden");d(this)[A?"show":"hide"]();}):this.animate(bc("toggle",3),c,s);}return this;},fadeTo:function(c,s,w){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:s},c,w);},animate:function(c,s,w,G){var A=d.speed(s,w,G);if(d.isEmptyObject(c)){return this.each(A.complete);}return this[A.queue===false?"each":"queue"](function(){var L=d.extend({},A),M,K=this.nodeType===1&&d(this).is(":hidden"),O=this;for(M in c){var H=M.replace(am,an);if(M!==H){c[H]=c[M];delete c[M];M=H;}if(c[M]==="hide"&&K||c[M]==="show"&&!K){return L.complete.call(this);}if((M==="height"||M==="width")&&this.style){L.display=d.css(this,"display");L.overflow=this.style.overflow;}if(d.isArray(c[M])){(L.specialEasing=L.specialEasing||{})[M]=c[M][1];c[M]=c[M][0];}}if(L.overflow!=null){this.style.overflow="hidden";}L.curAnim=d.extend({},c);d.each(c,function(P,Q){var R=new d.fx(O,L,P);if(az.test(Q)){R[Q==="toggle"?K?"show":"hide":Q](c);}else{var T=aA.exec(Q),U=R.cur(true)||0;if(T){Q=parseFloat(T[2]);var V=T[3]||"px";if(V!=="px"){O.style[P]=(Q||1)+V;U=(Q||1)/R.cur(true)*U;O.style[P]=U+V;}if(T[1]){Q=(T[1]==="-="?-1:1)*Q+U;}R.custom(U,Q,V);}else{R.custom(U,Q,"");}}});return true;});},stop:function(c,s){var w=d.timers;c&&this.queue([]);this.each(function(){for(var A=w.length-1;A>=0;A--){if(w[A].elem===this){s&&w[A](true);w.splice(A,1);}}});s||this.dequeue();return this;}});d.each({slideDown:bc("show",1),slideUp:bc("hide",1),slideToggle:bc("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(c,s){d.fn[c]=function(w,A){return this.animate(s,w,A);};});d.extend({speed:function(c,s,w){var A=c&&typeof c==="object"?c:{complete:w||!w&&s||d.isFunction(c)&&c,duration:c,easing:w&&s||s&&!d.isFunction(s)&&s};A.duration=d.fx.off?0:typeof A.duration==="number"?A.duration:d.fx.speeds[A.duration]||d.fx.speeds._default;A.old=A.complete;A.complete=function(){A.queue!==false&&d(this).dequeue();d.isFunction(A.old)&&A.old.call(this);};return A;},easing:{linear:function(c,s,w,A){return w+A*c;},swing:function(c,s,w,A){return(-Math.cos(c*Math.PI)/2+0.5)*A+w;}},timers:[],fx:function(c,s,w){this.options=s;this.elem=c;this.prop=w;if(!s.orig){s.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(c){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop];}return(c=parseFloat(d.css(this.elem,this.prop,c)))&&c>-10000?c:parseFloat(d.curCSS(this.elem,this.prop))||0;},custom:function(c,s,w){function G(H){return A.step(H);}this.startTime=a9();this.start=c;this.end=s;this.unit=w||this.unit||"px";this.now=this.start;this.pos=this.state=0;var A=this;G.elem=this.elem;if(G()&&d.timers.push(G)&&!aZ){aZ=setInterval(d.fx.tick,13);}},show:function(){this.options.orig[this.prop]=d.style(this.elem,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.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0);},step:function(c){var s=a9(),w=true;if(c||s>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var G in this.options.curAnim){if(this.options.curAnim[G]!==true){w=false;}}if(w){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;c=d.data(this.elem,"olddisplay");this.elem.style.display=c?c: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 A in this.options.curAnim){d.style(this.elem,A,this.options.orig[A]);}}this.options.complete.call(this.elem);}return false;}else{A=s-this.startTime;this.state=A/this.options.duration;c=this.options.easing||(d.easing.swing?"swing":"linear");this.pos=d.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||c](this.state,A,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update();}return true;}};d.extend(d.fx,{tick:function(){for(var c=d.timers,s=0;s<c.length;s++){c[s]()||c.splice(s--,1);}c.length||d.fx.stop();},stop:function(){clearInterval(aZ);aZ=null;},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(c){d.style(c.elem,"opacity",c.now);},_default:function(c){if(c.elem.style&&c.elem.style[c.prop]!=null){c.elem.style[c.prop]=(c.prop==="width"||c.prop==="height"?Math.max(0,c.now):c.now)+c.unit;}else{c.elem[c.prop]=c.now;}}}});if(d.expr&&d.expr.filters){d.expr.filters.animated=function(c){return d.grep(d.timers,function(s){return c===s.elem;}).length;};}d.fn.offset="getBoundingClientRect" in a.documentElement?function(c){var s=this[0];if(!s||!s.ownerDocument){return null;}if(c){return this.each(function(G){d.offset.setOffset(this,c,G);});}if(s===s.ownerDocument.body){return d.offset.bodyOffset(s);}var w=s.getBoundingClientRect(),A=s.ownerDocument;s=A.body;A=A.documentElement;return{top:w.top+(self.pageYOffset||d.support.boxModel&&A.scrollTop||s.scrollTop)-(A.clientTop||s.clientTop||0),left:w.left+(self.pageXOffset||d.support.boxModel&&A.scrollLeft||s.scrollLeft)-(A.clientLeft||s.clientLeft||0)};}:function(G){var H=this[0];if(!H||!H.ownerDocument){return null;}if(G){return this.each(function(P){d.offset.setOffset(this,G,P);});}if(H===H.ownerDocument.body){return d.offset.bodyOffset(H);}d.offset.initialize();var K=H.offsetParent,M=H,L=H.ownerDocument,c,s=L.documentElement,A=L.body;M=(L=L.defaultView)?L.getComputedStyle(H,null):H.currentStyle;for(var O=H.offsetTop,w=H.offsetLeft;(H=H.parentNode)&&H!==A&&H!==s;){if(d.offset.supportsFixedPosition&&M.position==="fixed"){break;}c=L?L.getComputedStyle(H,null):H.currentStyle;O-=H.scrollTop;w-=H.scrollLeft;if(H===K){O+=H.offsetTop;w+=H.offsetLeft;if(d.offset.doesNotAddBorder&&!(d.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(H.nodeName))){O+=parseFloat(c.borderTopWidth)||0;w+=parseFloat(c.borderLeftWidth)||0;}M=K;K=H.offsetParent;}if(d.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"){O+=parseFloat(c.borderTopWidth)||0;w+=parseFloat(c.borderLeftWidth)||0;}M=c;}if(M.position==="relative"||M.position==="static"){O+=A.offsetTop;w+=A.offsetLeft;}if(d.offset.supportsFixedPosition&&M.position==="fixed"){O+=Math.max(s.scrollTop,A.scrollTop);w+=Math.max(s.scrollLeft,A.scrollLeft);}return{top:O,left:w};};d.offset={initialize:function(){var s=a.body,w=a.createElement("div"),A,H,G,c=parseFloat(d.curCSS(s,"marginTop",true))||0;d.extend(w.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});w.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>";s.insertBefore(w,s.firstChild);A=w.firstChild;H=A.firstChild;G=A.nextSibling.firstChild.firstChild;this.doesNotAddBorder=H.offsetTop!==5;this.doesAddBorderForTableAndCells=G.offsetTop===5;H.style.position="fixed";H.style.top="20px";this.supportsFixedPosition=H.offsetTop===20||H.offsetTop===15;H.style.position=H.style.top="";A.style.overflow="hidden";A.style.position="relative";this.subtractsBorderForOverflowNotVisible=H.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=s.offsetTop!==c;s.removeChild(w);d.offset.initialize=d.noop;},bodyOffset:function(c){var s=c.offsetTop,w=c.offsetLeft;d.offset.initialize();if(d.offset.doesNotIncludeMarginInBodyOffset){s+=parseFloat(d.curCSS(c,"marginTop",true))||0;w+=parseFloat(d.curCSS(c,"marginLeft",true))||0;}return{top:s,left:w};},setOffset:function(w,A,G){if(/static/.test(d.curCSS(w,"position"))){w.style.position="relative";}var K=d(w),H=K.offset(),s=parseInt(d.curCSS(w,"top",true),10)||0,c=parseInt(d.curCSS(w,"left",true),10)||0;if(d.isFunction(A)){A=A.call(w,G,H);}G={top:A.top-H.top+s,left:A.left-H.left+c};"using" in A?A.using.call(w,G):K.css(G);}};d.fn.extend({position:function(){if(!this[0]){return null;}var c=this[0],s=this.offsetParent(),w=this.offset(),A=/^body|html$/i.test(s[0].nodeName)?{top:0,left:0}:s.offset();w.top-=parseFloat(d.curCSS(c,"marginTop",true))||0;w.left-=parseFloat(d.curCSS(c,"marginLeft",true))||0;A.top+=parseFloat(d.curCSS(s[0],"borderTopWidth",true))||0;A.left+=parseFloat(d.curCSS(s[0],"borderLeftWidth",true))||0;return{top:w.top-A.top,left:w.left-A.left};},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent||a.body;c&&!/^body|html$/i.test(c.nodeName)&&d.css(c,"position")==="static";){c=c.offsetParent;}return c;});}});d.each(["Left","Top"],function(c,s){var w="scroll"+s;d.fn[w]=function(H){var G=this[0],A;if(!G){return null;}if(H!==b){return this.each(function(){if(A=aj(this)){A.scrollTo(!c?H:d(A).scrollLeft(),c?H:d(A).scrollTop());}else{this[w]=H;}});}else{return(A=aj(G))?"pageXOffset" in A?A[c?"pageYOffset":"pageXOffset"]:d.support.boxModel&&A.document.documentElement[w]||A.document.body[w]:G[w];}};});d.each(["Height","Width"],function(c,s){var w=s.toLowerCase();d.fn["inner"+s]=function(){return this[0]?d.css(this[0],w,false,"padding"):null;};d.fn["outer"+s]=function(A){return this[0]?d.css(this[0],w,false,A?"margin":"border"):null;};d.fn[w]=function(G){var A=this[0];if(!A){return G==null?null:this;}return"scrollTo" in A&&A.document?A.document.compatMode==="CSS1Compat"&&A.document.documentElement["client"+s]||A.document.body["client"+s]:A.nodeType===9?Math.max(A.documentElement["client"+s],A.body["scroll"+s],A.documentElement["scroll"+s],A.body["offset"+s],A.documentElement["offset"+s]):G===b?d.css(A,w):this.css(w,typeof G==="string"?G:G+"px");};});bf.jQuery=bf.$=d;})(window);var Marinmuseum=function(){var f,g=null,a=null,h=null,d=null,c=function(){e();window.onresize=e;if($.fn.scrollable){g=$(".scrollable:not(.scrollable-highlights):not(.scrollable-collections)").scrollable({size:4,clickable:false,api:true});if(g){g.getRoot().navigator();if(g.getPageAmount()===1){g.getNaviButtons().css("visibility","hidden");}}var j=$("#highlights-nav li"),o=0;for(var p=0,q=j.length;p<q;p++){j[p].onclick=function(i){return function(){a.setPage(i);return false;};}(p);}h=$(j).filter(".current");o=h.prevAll("li").length;$(".show-highlight-info a").click(function(){$(this).parents(".scrollable-highlights-container").toggleClass("show-highlight-information");});a=$(".scrollable-highlights").scrollable({size:1,clickable:false,api:true,onBeforeSeek:function(i,r){if(h){h.removeClass("current");}h=$(j[r]);h.addClass("current");}});if(a&&o>0){a.setPage(o);}if(a){if(a.getPageAmount()===1){a.getNaviButtons().css("visibility","hidden");}}var k=$(".scrollable-small").scrollable({size:1,clickable:false,api:true});if(k){k.getRoot().navigator();if(k.getPageAmount()===1){k.getNaviButtons().css("visibility","hidden");}}}$("ul.toggle-content").click(function(i){$(this).next(".tab-nav-content").toggle();$(this).toggleClass("expanded");return false;});if($.fn.cycle){$(".page-main-image").cycle({speed:1000,timeout:7000,cleartype:true,pager:".main-image-nav"});$(".main-image-nav-pause").click(function(){$(".page-main-image").cycle("pause");$(this).hide();$(".main-image-nav-play").show();});$(".main-image-nav-play").click(function(){$(".page-main-image").cycle("resume");$(this).hide();$(".main-image-nav-pause").show();});}if($.fn.colorbox){$("a[rel='lightbox']").each(function(){$(this).colorbox({slideshow:true,slideshowAuto:false,opacity:"0.7",title:$(this).parent().find("p.description").html(),slideshowStart:"Starta bildspel",slideshowStop:"Stoppa bildspel",slideshowSpeed:5000,current:"Bild {current} av {total}",previous:"Föregående",next:"Nästa",close:"Stäng",maxWidth:"90%",maxHeight:"90%",scalePhotos:true,photo:true,onLoad:function(){$("#cboxTitle").hide();},onComplete:function(){$("#cboxTitle").show();}});});$("a[rel='lightbox-video']").each(function(){$(this).colorbox({slideshow:true,slideshowAuto:false,opacity:"0.7",title:$(this).parent().find("p.description").html(),slideshowStart:"Starta bildspel",slideshowStop:"Stoppa bildspel",slideshowSpeed:5000,current:"Video {current} av {total}",previous:"Föregående",next:"Nästa",close:"Stäng",maxWidth:"90%",maxHeight:"90%",scalePhotos:true,onLoad:function(){$("#cboxTitle").hide();},onComplete:function(){$("#cboxTitle").show();}});});}if($.fn.elastic){$("textarea").elastic();}$("#choose-language-opener").click(function(){$("#available-languages").toggle();return false;});$(document).click(function(){$("#available-languages").hide();});$("table").each(function(){if(!$(this).hasClass("ui-datepicker-calendar")&&!$(this).parents().hasClass("form-container")){$(this).find("tr:nth-child(odd)").addClass("odd");}});$("a.print").click(function(){window.print();return false;});$(".complementary p.show-all a").click(function(){var i=$(this).parent(),r=i.prev("ul.additional-content");if(i.hasClass("expanded")){i.removeClass("expanded");r.slideUp("fast");}else{i.addClass("expanded");r.fadeIn("slow");}return false;});b();var n=document.createElement("input");placeHolderSupport=("placeholder" in n);if(!placeHolderSupport){var l=$("#collections-search-text"),m=$("#collections-search-text").attr("placeholder");l.val(m);l.addClass("placeholder");l.bind("focus",function(){l.removeClass("placeholder");if(l.val()===m){l.val("");}});l.bind("blur",function(){if(l.val().length===0){l.val(m);l.addClass("placeholder");}});}(function(){var i=$("#blog-navigation"),t=parseInt(i.css("top"),10),s,r;i.bind("mouseenter",function(){clearTimeout(r);clearTimeout(s);i.clearQueue();if(t<0){s=setTimeout(function(){i.animate({top:0},500);},50);}});i.bind("mouseleave",function(){clearTimeout(r);clearTimeout(s);i.clearQueue();r=setTimeout(function(){over=false;i.animate({top:t},500);},50);});})();},e=function(){if(f!==document.documentElement.clientHeight){f=document.documentElement.clientHeight;$("#container").css("min-height",($(document).height()-($("#page-footer").height()+$("#site-nav-bar").outerHeight()))+"px");}},b=function(){var p=$(".scrollable-collections"),n=p.find(".item-info"),q=p.find(".item-info-close"),l=$(".collections-item-nav-container .enable-item-info");q.click(function(i){n.slideUp("fast",function(){l.fadeIn("fast",function(){p.addClass("no-item-info");});});return false;});l.click(function(){$(this).fadeOut("fast",function(){n.slideDown("fast",function(){p.removeClass("no-item-info");});});});var o=$(".collections-item-nav-choices");o.click(function(i){if($(i.target).parents("li").hasClass("collections-list-choice")){$(".collections-item-nav").removeClass("collections-thumbnail");o.addClass("chosen-list");o.removeClass("chosen-thumbnails");}else{$(".collections-item-nav").addClass("collections-thumbnail");o.addClass("chosen-thumbnails");o.removeClass("chosen-list");}return false;});var r=$(".collections-item-nav li"),k=0,j;for(var m=0,s=r.length;m<s;m++){r[m].onclick=function(i){return function(){a.setPage(i);return false;};}(m);}j=$(r).filter(".current");k=j.prevAll("li").length;if($.fn.scrollable){a=$(".scrollable-collections").scrollable({size:1,clickable:false,api:true,onBeforeSeek:function(i,t){if(j){j.removeClass("current");}j=$(r[t]);j.addClass("current");}});if(a&&k>0){a.setPage(k);}if(a){if(a.getPageAmount()===1){a.getNaviButtons().css("visibility","hidden");}}}};return{init:c};}();$(document).ready(function(){Marinmuseum.init();});(function(e){e.tools=e.tools||{};e.tools.scrollable={version:"1.1.2",conf:{size:5,vertical:false,speed:400,keyboard:true,keyboardSteps:null,disabledClass:"disabled",hoverClass:null,clickable:true,activeClass:"active",easing:"swing",loop:false,items:".items",item:null,prev:".prev",next:".next",prevPage:".prevPage",nextPage:".nextPage",api:false}};var f;function d(v,t){var C=this,A=e(this),x=!t.vertical,y=v.children(),c=0,a;if(!f){f=C;}e.each(t,function(g,h){if(e.isFunction(h)){A.bind(g,h);}});if(y.length>1){y=e(t.items,v);}function s(h){var g=e(h);return t.globalNav?g:v.parent().find(h);}v.data("finder",s);var z=s(t.prev),D=s(t.next),w=s(t.prevPage),u=s(t.nextPage);e.extend(C,{getIndex:function(){return c;},getClickIndex:function(){var g=C.getItems();return g.index(g.filter("."+t.activeClass));},getConf:function(){return t;},getSize:function(){return C.getItems().size();},getPageAmount:function(){return Math.ceil(this.getSize()/t.size);},getPageIndex:function(){return Math.ceil(c/t.size);},getNaviButtons:function(){return z.add(D).add(w).add(u);},getRoot:function(){return v;},getItemWrap:function(){return y;},getItems:function(){return y.children(t.item);},getVisibleItems:function(){return C.getItems().slice(c,c+t.size);},seekTo:function(g,k,h){if(g<0){g=0;}if(c===g){return C;}if(e.isFunction(k)){h=k;}if(g>C.getSize()-t.size){return t.loop?C.begin():this.end();}var i=C.getItems().eq(g);if(!i.length){return C;}var j=e.Event("onBeforeSeek");A.trigger(j,[g]);if(j.isDefaultPrevented()){return C;}if(k===undefined||e.isFunction(k)){k=t.speed;}function l(){if(h){h.call(C,g);}A.trigger("onSeek",[g]);}if(x){y.animate({left:-i.position().left},k,t.easing,l);}else{y.animate({top:-i.position().top},k,t.easing,l);}f=C;c=g;j=e.Event("onStart");A.trigger(j,[g]);if(j.isDefaultPrevented()){return C;}z.add(w).toggleClass(t.disabledClass,g===0);D.add(u).toggleClass(t.disabledClass,g>=C.getSize()-t.size);return C;},move:function(i,h,g){a=i>0;return this.seekTo(c+i,h,g);},next:function(h,g){return this.move(1,h,g);},prev:function(h,g){return this.move(-1,h,g);},movePage:function(k,j,i){a=k>0;var g=t.size*k;var h=c%t.size;if(h>0){g+=(k>0?-h:t.size-h);}return this.move(g,j,i);},prevPage:function(h,g){return this.movePage(-1,h,g);},nextPage:function(h,g){return this.movePage(1,h,g);},setPage:function(h,i,g){return this.seekTo(h*t.size,i,g);},begin:function(h,g){a=false;return this.seekTo(0,h,g);},end:function(h,g){a=true;var i=this.getSize()-t.size;return i>0?this.seekTo(i,h,g):C;},reload:function(){A.trigger("onReload");return C;},focus:function(){f=C;return C;},click:function(i){var j=C.getItems().eq(i),g=t.activeClass,h=t.size;if(i<0||i>=C.getSize()){return C;}if(h==1){if(t.loop){return C.next();}if(i===0||i==C.getSize()-1){a=(a===undefined)?true:!a;}return a===false?C.prev():C.next();}if(h==2){if(i==c){i--;}C.getItems().removeClass(g);j.addClass(g);return C.seekTo(i,time,fn);}if(!j.hasClass(g)){C.getItems().removeClass(g);j.addClass(g);var l=Math.floor(h/2);var k=i-l;if(k>C.getSize()-h){k=C.getSize()-h;}if(k!==i){return C.seekTo(k);}}return C;},bind:function(g,h){A.bind(g,h);return C;},unbind:function(g){A.unbind(g);return C;}});e.each("onBeforeSeek,onStart,onSeek,onReload".split(","),function(g,h){C[h]=function(i){return C.bind(h,i);};});z.addClass(t.disabledClass).click(function(){C.prev();});D.click(function(){C.next();});u.click(function(){C.nextPage();});if(C.getSize()<t.size){D.add(u).addClass(t.disabledClass);}w.addClass(t.disabledClass).click(function(){C.prevPage();});var b=t.hoverClass,B="keydown."+Math.random().toString().substring(10);C.onReload(function(){if(b){C.getItems().hover(function(){e(this).addClass(b);},function(){e(this).removeClass(b);});}if(t.clickable){C.getItems().each(function(g){e(this).unbind("click.scrollable").bind("click.scrollable",function(h){if(e(h.target).is("a")){return;}return C.click(g);});});}if(t.keyboard){e(document).unbind(B).bind(B,function(g){if(g.altKey||g.ctrlKey){return;}if(t.keyboard!="static"&&f!=C){return;}var h=t.keyboardSteps;if(x&&(g.keyCode==37||g.keyCode==39)){C.move(g.keyCode==37?-h:h);return g.preventDefault();}if(!x&&(g.keyCode==38||g.keyCode==40)){C.move(g.keyCode==38?-h:h);return g.preventDefault();}return true;});}else{e(document).unbind(B);}});C.reload();}e.fn.scrollable=function(a){var b=this.eq(typeof a=="number"?a:0).data("scrollable");if(b){return b;}var c=e.extend({},e.tools.scrollable.conf);a=e.extend(c,a);a.keyboardSteps=a.keyboardSteps||a.size;this.each(function(){b=new d(e(this),a);e(this).data("scrollable",b);});return a.api?b:this;};})(jQuery);(function(d){var c=d.tools.scrollable;c.plugins=c.plugins||{};c.plugins.navigator={version:"1.0.2",conf:{navi:".navi",naviItem:null,activeClass:"active",indexed:false,api:false,idPrefix:null}};d.fn.navigator=function(b){var f=d.extend({},c.plugins.navigator.conf),a;if(typeof b=="string"){b={navi:b};}b=d.extend(f,b);this.each(function(){var o=d(this).scrollable(),q=o.getRoot(),r=q.data("finder").call(null,b.navi),e=null,m=o.getNaviButtons();if(o){a=o;}o.getNaviButtons=function(){return m.add(r);};function p(){if(!r.children().length||r.data("navi")==o){r.empty();r.data("navi",o);for(var g=0;g<o.getPageAmount();g++){r.append(d("<"+(b.naviItem||"a")+"/>"));}e=r.children().each(function(h){var i=d(this);i.click(function(j){o.setPage(h);return j.preventDefault();});if(b.indexed){i.text(h);}if(b.idPrefix){i.attr("id",b.idPrefix+h);}});}else{e=b.naviItem?r.find(b.naviItem):r.children();e.each(function(h){var i=d(this);i.click(function(j){o.setPage(h);return j.preventDefault();});});}e.eq(0).addClass(b.activeClass);}o.onStart(function(i,h){var g=b.activeClass;e.removeClass(g).eq(o.getPageIndex()).addClass(g);});o.onReload(function(){p();});p();var n=e.filter("[href="+location.hash+"]");if(n.length){o.move(e.index(n));}});return b.api?a:this;};})(jQuery);(function(q){var t="2.73";if(q.support==undefined){q.support={opacity:!(q.browser.msie)};}function x(a){if(q.fn.cycle.debug){C(a);}}function C(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "));}}q.fn.cycle=function(a,c){var b={s:this.selector,c:this.context};if(this.length===0&&a!="stop"){if(!q.isReady&&b.s){C("DOM not ready, queuing slideshow");q(function(){q(b.s,b.c).cycle(a,c);});return this;}C("terminating; zero elements found by selector"+(q.isReady?"":" (DOM not ready)"));return this;}return this.each(function(){var h=u(this,a,c);if(h===false){return;}if(this.cycleTimeout){clearTimeout(this.cycleTimeout);}this.cycleTimeout=this.cyclePause=0;var d=q(this);var e=h.slideExpr?q(h.slideExpr,this):d.children();var f=e.get();if(f.length<2){C("terminating; too few slides: "+f.length);return;}var i=s(d,e,f,h,b);if(i===false){return;}var g=i.continuous?10:E(i.currSlide,i.nextSlide,i,!i.rev);if(g){g+=(i.delay||0);if(g<10){g=10;}x("first timeout: "+g);this.cycleTimeout=setTimeout(function(){B(f,i,0,!i.rev);},g);}});};function u(e,c,a){if(e.cycleStop==undefined){e.cycleStop=0;}if(c===undefined||c===null){c={};}if(c.constructor==String){switch(c){case"stop":e.cycleStop++;if(e.cycleTimeout){clearTimeout(e.cycleTimeout);}e.cycleTimeout=0;q(e).removeData("cycle.opts");return false;case"pause":e.cyclePause=1;return false;case"resume":e.cyclePause=0;if(a===true){c=q(e).data("cycle.opts");if(!c){C("options not found, can not resume");return false;}if(e.cycleTimeout){clearTimeout(e.cycleTimeout);e.cycleTimeout=0;}B(c.elements,c,1,1);}return false;case"prev":case"next":var d=q(e).data("cycle.opts");if(!d){C('options not found, "prev/next" ignored');return false;}q.fn.cycle[c](d);return false;default:c={fx:c};}return c;}else{if(c.constructor==Number){var b=c;c=q(e).data("cycle.opts");if(!c){C("options not found, can not advance slide");return false;}if(b<0||b>=c.elements.length){C("invalid slide index: "+b);return false;}c.nextSlide=b;if(e.cycleTimeout){clearTimeout(e.cycleTimeout);e.cycleTimeout=0;}if(typeof a=="string"){c.oneTimeFx=a;}B(c.elements,c,1,b>=c.currSlide);return false;}}return c;}function y(c,a){if(!q.support.opacity&&a.cleartype&&c.style.filter){try{c.style.removeAttribute("filter");}catch(b){}}}function s(a,k,g,f,M){var o=q.extend({},q.fn.cycle.defaults,f||{},q.metadata?a.metadata():q.meta?a.data():{});if(o.autostop){o.countdown=o.autostopCount||g.length;}var d=a[0];a.data("cycle.opts",o);o.$cont=a;o.stopCount=d.cycleStop;o.elements=g;o.before=o.before?[o.before]:[];o.after=o.after?[o.after]:[];o.after.unshift(function(){o.busy=0;});if(!q.support.opacity&&o.cleartype){o.after.push(function(){y(this,o);});}if(o.continuous){o.after.push(function(){B(g,o,0,!o.rev);});}v(o);if(!q.support.opacity&&o.cleartype&&!o.cleartypeNoBg){D(k);}if(a.css("position")=="static"){a.css("position","relative");}if(o.width){a.width(o.width);}if(o.height&&o.height!="auto"){a.height(o.height);}if(o.startingSlide){o.startingSlide=parseInt(o.startingSlide);}if(o.random){o.randomMap=[];for(var i=0;i<g.length;i++){o.randomMap.push(i);}o.randomMap.sort(function(F,G){return Math.random()-0.5;});o.randomIndex=0;o.startingSlide=o.randomMap[0];}else{if(o.startingSlide>=g.length){o.startingSlide=0;}}o.currSlide=o.startingSlide=o.startingSlide||0;var P=o.startingSlide;k.css({position:"absolute",top:0,left:0}).hide().each(function(G){var F=P?G>=P?g.length-(G-P):P-G:g.length-G;q(this).css("z-index",F);});q(g[P]).css("opacity",1).show();y(g[P],o);if(o.fit&&o.width){k.width(o.width);}if(o.fit&&o.height&&o.height!="auto"){k.height(o.height);}var L=o.containerResize&&!a.innerHeight();if(L){var h=0,n=0;for(var N=0;N<g.length;N++){var c=q(g[N]),l=c[0],m=c.outerWidth(),j=c.outerHeight();if(!m){m=l.offsetWidth;}if(!j){j=l.offsetHeight;}h=m>h?m:h;n=j>n?j:n;}if(h>0&&n>0){a.css({width:h+"px",height:n+"px"});}}if(o.pause){a.hover(function(){this.cyclePause++;},function(){this.cyclePause--;});}if(z(o)===false){return false;}var e=false;f.requeueAttempts=f.requeueAttempts||0;k.each(function(){var H=q(this);this.cycleH=(o.fit&&o.height)?o.height:H.height();this.cycleW=(o.fit&&o.width)?o.width:H.width();if(H.is("img")){var F=(q.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var I=(q.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var G=(q.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var J=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(F||I||G||J){if(M.s&&o.requeueOnImageNotLoaded&&++f.requeueAttempts<100){C(f.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){q(M.s,M.c).cycle(f);},o.requeueTimeout);e=true;return false;}else{C("could not determine size of image: "+this.src,this.cycleW,this.cycleH);}}}return true;});if(e){return false;}o.cssBefore=o.cssBefore||{};o.animIn=o.animIn||{};o.animOut=o.animOut||{};k.not(":eq("+P+")").css(o.cssBefore);if(o.cssFirst){q(k[P]).css(o.cssFirst);}if(o.timeout){o.timeout=parseInt(o.timeout);if(o.speed.constructor==String){o.speed=q.fx.speeds[o.speed]||parseInt(o.speed);}if(!o.sync){o.speed=o.speed/2;}while((o.timeout-o.speed)<250){o.timeout+=o.speed;}}if(o.easing){o.easeIn=o.easeOut=o.easing;}if(!o.speedIn){o.speedIn=o.speed;}if(!o.speedOut){o.speedOut=o.speed;}o.slideCount=g.length;o.currSlide=o.lastSlide=P;if(o.random){o.nextSlide=o.currSlide;if(++o.randomIndex==g.length){o.randomIndex=0;}o.nextSlide=o.randomMap[o.randomIndex];}else{o.nextSlide=o.startingSlide>=(g.length-1)?0:o.startingSlide+1;}if(!o.multiFx){var O=q.fn.cycle.transitions[o.fx];if(q.isFunction(O)){O(a,k,o);}else{if(o.fx!="custom"&&!o.multiFx){C("unknown transition: "+o.fx,"; slideshow terminating");return false;}}}var b=k[P];if(o.before.length){o.before[0].apply(b,[b,b,o,true]);}if(o.after.length>1){o.after[1].apply(b,[b,b,o,true]);}if(o.next){q(o.next).bind(o.prevNextEvent,function(){return w(o,o.rev?-1:1);});}if(o.prev){q(o.prev).bind(o.prevNextEvent,function(){return w(o,o.rev?1:-1);});}if(o.pager){A(g,o);}r(o,g);return o;}function v(a){a.original={before:[],after:[]};a.original.cssBefore=q.extend({},a.cssBefore);a.original.cssAfter=q.extend({},a.cssAfter);a.original.animIn=q.extend({},a.animIn);a.original.animOut=q.extend({},a.animOut);q.each(a.before,function(){a.original.before.push(this);});q.each(a.after,function(){a.original.after.push(this);});}function z(f){var d,b,a=q.fn.cycle.transitions;if(f.fx.indexOf(",")>0){f.multiFx=true;f.fxs=f.fx.replace(/\s*/g,"").split(",");for(d=0;d<f.fxs.length;d++){var e=f.fxs[d];b=a[e];if(!b||!a.hasOwnProperty(e)||!q.isFunction(b)){C("discarding unknown transition: ",e);f.fxs.splice(d,1);d--;}}if(!f.fxs.length){C("No valid transitions named; slideshow terminating.");return false;}}else{if(f.fx=="all"){f.multiFx=true;f.fxs=[];for(p in a){b=a[p];if(a.hasOwnProperty(p)&&q.isFunction(b)){f.fxs.push(p);}}}}if(f.multiFx&&f.randomizeEffects){var c=Math.floor(Math.random()*20)+30;for(d=0;d<c;d++){var g=Math.floor(Math.random()*f.fxs.length);f.fxs.push(f.fxs.splice(g,1)[0]);}x("randomized fx sequence: ",f.fxs);}return true;}function r(a,b){a.addSlide=function(d,e){var c=q(d),f=c[0];if(!a.autostopCount){a.countdown++;}b[e?"unshift":"push"](f);if(a.els){a.els[e?"unshift":"push"](f);}a.slideCount=b.length;c.css("position","absolute");c[e?"prependTo":"appendTo"](a.$cont);if(e){a.currSlide++;a.nextSlide++;}if(!q.support.opacity&&a.cleartype&&!a.cleartypeNoBg){D(c);}if(a.fit&&a.width){c.width(a.width);}if(a.fit&&a.height&&a.height!="auto"){$slides.height(a.height);}f.cycleH=(a.fit&&a.height)?a.height:c.height();f.cycleW=(a.fit&&a.width)?a.width:c.width();c.css(a.cssBefore);if(a.pager){q.fn.cycle.createPagerAnchor(b.length-1,f,q(a.pager),b,a);}if(q.isFunction(a.onAddSlide)){a.onAddSlide(c);}else{c.hide();}};}q.fn.cycle.resetState=function(a,c){c=c||a.fx;a.before=[];a.after=[];a.cssBefore=q.extend({},a.original.cssBefore);a.cssAfter=q.extend({},a.original.cssAfter);a.animIn=q.extend({},a.original.animIn);a.animOut=q.extend({},a.original.animOut);a.fxFn=null;q.each(a.original.before,function(){a.before.push(this);});q.each(a.original.after,function(){a.after.push(this);});var b=q.fn.cycle.transitions[c];if(q.isFunction(b)){b(a.$cont,q(a.elements),a);}};function B(a,d,j,b){if(j&&d.busy&&d.manualTrump){q(a).stop(true,true);d.busy=false;}if(d.busy){return;}var h=d.$cont[0],k=a[d.currSlide],c=a[d.nextSlide];if(h.cycleStop!=d.stopCount||h.cycleTimeout===0&&!j){return;}if(!j&&!h.cyclePause&&((d.autostop&&(--d.countdown<=0))||(d.nowrap&&!d.random&&d.nextSlide<d.currSlide))){if(d.end){d.end(d);}return;}if(j||!h.cyclePause){var i=d.fx;k.cycleH=k.cycleH||q(k).height();k.cycleW=k.cycleW||q(k).width();c.cycleH=c.cycleH||q(c).height();c.cycleW=c.cycleW||q(c).width();if(d.multiFx){if(d.lastFx==undefined||++d.lastFx>=d.fxs.length){d.lastFx=0;}i=d.fxs[d.lastFx];d.currFx=i;}if(d.oneTimeFx){i=d.oneTimeFx;d.oneTimeFx=null;}q.fn.cycle.resetState(d,i);if(d.before.length){q.each(d.before,function(l,m){if(h.cycleStop!=d.stopCount){return;}m.apply(c,[k,c,d,b]);});}var f=function(){q.each(d.after,function(l,m){if(h.cycleStop!=d.stopCount){return;}m.apply(c,[k,c,d,b]);});};if(d.nextSlide!=d.currSlide){d.busy=1;if(d.fxFn){d.fxFn(k,c,d,f,b);}else{if(q.isFunction(q.fn.cycle[d.fx])){q.fn.cycle[d.fx](k,c,d,f);}else{q.fn.cycle.custom(k,c,d,f,j&&d.fastOnEvent);}}}d.lastSlide=d.currSlide;if(d.random){d.currSlide=d.nextSlide;if(++d.randomIndex==a.length){d.randomIndex=0;}d.nextSlide=d.randomMap[d.randomIndex];}else{var g=(d.nextSlide+1)==a.length;d.nextSlide=g?0:d.nextSlide+1;d.currSlide=g?a.length-1:d.nextSlide-1;}if(d.pager){q.fn.cycle.updateActivePagerLink(d.pager,d.currSlide);}}var e=0;if(d.timeout&&!d.continuous){e=E(k,c,d,b);}else{if(d.continuous&&h.cyclePause){e=10;}}if(e>0){h.cycleTimeout=setTimeout(function(){B(a,d,0,!d.rev);},e);}}q.fn.cycle.updateActivePagerLink=function(b,a){q(b).each(function(){q(this).find("a").removeClass("activeSlide").filter("a:eq("+a+")").addClass("activeSlide");});};function E(d,b,c,a){if(c.timeoutFn){var e=c.timeoutFn(d,b,c,a);while((e-c.speed)<250){e+=c.speed;}x("calculated timeout: "+e+"; speed: "+c.speed);if(e!==false){return e;}}return c.timeout;}q.fn.cycle.next=function(a){w(a,a.rev?-1:1);};q.fn.cycle.prev=function(a){w(a,a.rev?1:-1);};function w(a,d){var e=a.elements;var c=a.$cont[0],b=c.cycleTimeout;if(b){clearTimeout(b);c.cycleTimeout=0;}if(a.random&&d<0){a.randomIndex--;if(--a.randomIndex==-2){a.randomIndex=e.length-2;}else{if(a.randomIndex==-1){a.randomIndex=e.length-1;}}a.nextSlide=a.randomMap[a.randomIndex];}else{if(a.random){if(++a.randomIndex==e.length){a.randomIndex=0;}a.nextSlide=a.randomMap[a.randomIndex];}else{a.nextSlide=a.currSlide+d;if(a.nextSlide<0){if(a.nowrap){return false;}a.nextSlide=e.length-1;}else{if(a.nextSlide>=e.length){if(a.nowrap){return false;}a.nextSlide=0;}}}}if(q.isFunction(a.prevNextClick)){a.prevNextClick(d>0,a.nextSlide,e[a.nextSlide]);}B(e,a,1,d>=0);return false;}function A(a,b){var c=q(b.pager);q.each(a,function(d,e){q.fn.cycle.createPagerAnchor(d,e,c,a,b);});q.fn.cycle.updateActivePagerLink(b.pager,b.startingSlide);}q.fn.cycle.createPagerAnchor=function(f,g,d,e,h){var c;if(q.isFunction(h.pagerAnchorBuilder)){c=h.pagerAnchorBuilder(f,g);}else{c='<a href="#">'+(f+1)+"</a>";}if(!c){return;}var a=q(c);if(a.parents("body").length===0){var b=[];if(d.length>1){d.each(function(){var i=a.clone(true);q(this).append(i);b.push(i[0]);});a=q(b);}else{a.appendTo(d);}}a.bind(h.pagerEvent,function(k){k.preventDefault();h.nextSlide=f;var j=h.$cont[0],i=j.cycleTimeout;if(i){clearTimeout(i);j.cycleTimeout=0;}if(q.isFunction(h.pagerClick)){h.pagerClick(h.nextSlide,e[h.nextSlide]);}B(e,h,1,h.currSlide<f);return false;});if(h.pagerEvent!="click"){a.click(function(){return false;});}if(h.pauseOnPagerHover){a.hover(function(){h.$cont[0].cyclePause++;},function(){h.$cont[0].cyclePause--;});}};q.fn.cycle.hopsFromLast=function(c,b){var a,e=c.lastSlide,d=c.currSlide;if(b){a=d>e?d-e:c.slideCount-e;}else{a=d<e?e-d:e+c.slideCount-d;}return a;};function D(b){function a(d){d=parseInt(d).toString(16);return d.length<2?"0"+d:d;}function c(f){for(;f&&f.nodeName.toLowerCase()!="html";f=f.parentNode){var d=q.css(f,"background-color");if(d.indexOf("rgb")>=0){var e=d.match(/\d+/g);return"#"+a(e[0])+a(e[1])+a(e[2]);}if(d&&d!="transparent"){return d;}}return"#ffffff";}b.each(function(){q(this).css("background-color",c(this));});}q.fn.cycle.commonReset=function(e,c,d,a,b,f){q(d.elements).not(e).hide();d.cssBefore.opacity=1;d.cssBefore.display="block";if(a!==false&&c.cycleW>0){d.cssBefore.width=c.cycleW;}if(b!==false&&c.cycleH>0){d.cssBefore.height=c.cycleH;}d.cssAfter=d.cssAfter||{};d.cssAfter.display="none";q(e).css("zIndex",d.slideCount+(f===true?1:0));q(c).css("zIndex",d.slideCount+(f===true?0:1));};q.fn.cycle.custom=function(a,j,e,g,f){var l=q(a),k=q(j);var h=e.speedIn,d=e.speedOut,i=e.easeIn,c=e.easeOut;k.css(e.cssBefore);if(f){if(typeof f=="number"){h=d=f;}else{h=d=1;}i=c=null;}var b=function(){k.animate(e.animIn,h,i,g);};l.animate(e.animOut,d,c,function(){if(e.cssAfter){l.css(e.cssAfter);}if(!e.sync){b();}});if(e.sync){b();}};q.fn.cycle.transitions={fade:function(a,b,c){b.not(":eq("+c.currSlide+")").css("opacity",0);c.before.push(function(f,d,e){q.fn.cycle.commonReset(f,d,e);e.cssBefore.opacity=0;});c.animIn={opacity:1};c.animOut={opacity:0};c.cssBefore={top:0,left:0};}};q.fn.cycle.ver=function(){return t;};q.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,prevNextEvent:"click",pager:null,pagerClick:null,pagerEvent:"click",pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!q.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250};})(jQuery);(function(aJ){function aw(a,c){c=c==="x"?aG.width():aG.height();return typeof a==="string"?Math.round(a.match(/%/)?c/100*parseInt(a,10):parseInt(a,10)):a;}function ai(a){a=aJ.isFunction(a)?a.call(aC):a;return aI.photo||a.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i);}function d(){for(var a in aI){if(aJ.isFunction(aI[a])&&a.substring(0,2)!=="on"){aI[a]=aI[a].call(aC);}}aI.rel=aI.rel||aC.rel;aI.href=aI.href||aC.href;aI.title=aI.title||aC.title;}function f(a){aC=a;aI=aJ(aC).data(av);d();if(aI.rel&&aI.rel!=="nofollow"){aL=aJ(".cboxElement").filter(function(){return(aJ(this).data(av).rel||this.rel)===aI.rel;});aM=aL.index(aC);if(aM<0){aL=aL.add(aC);aM=aL.length-1;}}else{aL=aJ(aC);aM=0;}if(!al){am=al=aH;aj=aC;aj.blur();aJ(document).bind("keydown.cbox_close",function(c){if(c.keyCode===27){c.preventDefault();aK.close();}}).bind("keydown.cbox_arrows",function(c){if(aL.length>1){if(c.keyCode===37){c.preventDefault();an.click();}else{if(c.keyCode===39){c.preventDefault();ao.click();}}}});aI.overlayClose&&ax.css({cursor:"pointer"}).one("click",aK.close);aJ.event.trigger(aD);aI.onOpen&&aI.onOpen.call(aC);ax.css({opacity:aI.opacity}).show();aI.w=aw(aI.initialWidth,"x");aI.h=aw(aI.initialHeight,"y");aK.position(0);ak&&aG.bind("resize.cboxie6 scroll.cboxie6",function(){ax.css({width:aG.width(),height:aG.height(),top:aG.scrollTop(),left:aG.scrollLeft()});}).trigger("scroll.cboxie6");}h.add(an).add(ao).add(ay).add(o).hide();A.html(aI.close).show();aK.slideshow();aK.load();}var av="colorbox",ap="hover",aH=true,aK,aq=!aJ.support.opacity,ak=aq&&!window.XMLHttpRequest,aD="cbox_open",ae="cbox_load",G="cbox_complete",L="resize.cbox_resize",ax,aE,az,au,ab,ac,ad,b,aL,aG,aF,af,ag,ah,o,h,ay,ao,an,A,ar,at,aA,aB,aC,aj,aM,aI,al,am,aN={transition:"elastic",speed:350,width:false,height:false,innerWidth:false,innerHeight:false,initialWidth:"400",initialHeight:"400",maxWidth:false,maxHeight:false,scalePhotos:aH,scrolling:aH,inline:false,html:false,iframe:false,photo:false,href:false,title:false,rel:false,opacity:0.9,preloading:aH,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:false,overlayClose:aH,slideshow:false,slideshowAuto:aH,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:false,onLoad:false,onComplete:false,onCleanup:false,onClosed:false};aK=aJ.fn.colorbox=function(a,e){var c=this;if(!c.length){if(c.selector===""){c=aJ("<a/>");a.open=aH;}else{return this;}}c.each(function(){var g=aJ.extend({},aJ(this).data(av)?aJ(this).data(av):aN,a);aJ(this).data(av,g).addClass("cboxElement");if(e){aJ(this).data(av).onComplete=e;}});a&&a.open&&f(c);return this;};aK.init=function(){function a(c){return aJ('<div id="cbox'+c+'"/>');}aG=aJ(window);aE=aJ('<div id="colorbox"/>');ax=a("Overlay").hide();az=a("Wrapper");au=a("Content").append(aF=a("LoadedContent").css({width:0,height:0}),ag=a("LoadingOverlay"),ah=a("LoadingGraphic"),o=a("Title"),h=a("Current"),ay=a("Slideshow"),ao=a("Next"),an=a("Previous"),A=a("Close"));az.append(aJ("<div/>").append(a("TopLeft"),ab=a("TopCenter"),a("TopRight")),aJ("<div/>").append(ac=a("MiddleLeft"),au,ad=a("MiddleRight")),aJ("<div/>").append(a("BottomLeft"),b=a("BottomCenter"),a("BottomRight"))).children().children().css({"float":"left"});af=aJ("<div style='position:absolute; top:0; left:0; width:9999px; height:0;'/>");aJ("body").prepend(ax,aE.append(az,af));if(aq){aE.addClass("cboxIE");ak&&ax.css("position","absolute");}au.children().bind("mouseover mouseout",function(){aJ(this).toggleClass(ap);}).addClass(ap);ar=ab.height()+b.height()+au.outerHeight(aH)-au.height();at=ac.width()+ad.width()+au.outerWidth(aH)-au.width();aA=aF.outerHeight(aH);aB=aF.outerWidth(aH);aE.css({"padding-bottom":ar,"padding-right":at}).hide();ao.click(aK.next);an.click(aK.prev);A.click(aK.close);au.children().removeClass(ap);aJ(".cboxElement").live("click",function(c){if(c.button!==0&&typeof c.button!=="undefined"){return aH;}else{f(this);return false;}});};aK.position=function(c,g){function e(j){ab[0].style.width=b[0].style.width=au[0].style.width=j.style.width;ah[0].style.height=ag[0].style.height=au[0].style.height=ac[0].style.height=ad[0].style.height=j.style.height;}var i=aG.height();i=Math.max(i-aI.h-aA-ar,0)/2+aG.scrollTop();var a=Math.max(document.documentElement.clientWidth-aI.w-aB-at,0)/2+aG.scrollLeft();c=aE.width()===aI.w+aB&&aE.height()===aI.h+aA?0:c;az[0].style.width=az[0].style.height="9999px";aE.dequeue().animate({width:aI.w+aB,height:aI.h+aA,top:i,left:a},{duration:c,complete:function(){e(this);am=false;az[0].style.width=aI.w+aB+at+"px";az[0].style.height=aI.h+aA+ar+"px";g&&g();},step:function(){e(this);}});};aK.resize=function(g){function j(){aI.w=aI.w||aF.width();aI.w=aI.mw&&aI.mw<aI.w?aI.mw:aI.w;return aI.w;}function i(){aI.h=aI.h||aF.height();aI.h=aI.mh&&aI.mh<aI.h?aI.mh:aI.h;return aI.h;}function k(l){aK.position(l,function(){if(al){if(aq){c&&aF.fadeIn(100);aE[0].style.removeAttribute("filter");}if(aI.iframe){aF.append("<iframe id='cboxIframe'"+(aI.scrolling?" ":"scrolling='no'")+" name='iframe_"+(new Date).getTime()+"' frameborder=0 src='"+aI.href+"' "+(aq?"allowtransparency='true'":"")+" />");}aF.show();o.show().html(aI.title);if(aL.length>1){h.html(aI.current.replace(/\{current\}/,aM+1).replace(/\{total\}/,aL.length)).show();ao.html(aI.next).show();an.html(aI.previous).show();aI.slideshow&&ay.show();}ag.hide();ah.hide();aJ.event.trigger(G);aI.onComplete&&aI.onComplete.call(aC);aI.transition==="fade"&&aE.fadeTo(a,1,function(){aq&&aE[0].style.removeAttribute("filter");});aG.bind(L,function(){aK.position(0);});}});}if(al){var e,c,a=aI.transition==="none"?0:aI.speed;aG.unbind(L);if(g){aF.remove();aF=aJ('<div id="cboxLoadedContent"/>').html(g);aF.hide().appendTo(af).css({width:j(),overflow:aI.scrolling?"auto":"hidden"}).css({height:i()}).prependTo(au);aJ("#cboxPhoto").css({cssFloat:"none"});ak&&aJ("select:not(#colorbox select)").filter(function(){return this.style.visibility!=="hidden";}).css({visibility:"hidden"}).one("cbox_cleanup",function(){this.style.visibility="inherit";});aI.transition==="fade"&&aE.fadeTo(a,0,function(){k(0);})||k(a);if(aI.preloading&&aL.length>1){g=aM>0?aL[aM-1]:aL[aL.length-1];e=aM<aL.length-1?aL[aM+1]:aL[0];e=aJ(e).data(av).href||e.href;g=aJ(g).data(av).href||g.href;ai(e)&&aJ("<img />").attr("src",e);ai(g)&&aJ("<img />").attr("src",g);}}else{setTimeout(function(){var l=aF.wrapInner("<div style='overflow:auto'></div>").children();aI.h=l.height();aF.css({height:aI.h});l.replaceWith(l.children());aK.position(a);},1);}}};aK.load=function(){var a,e,c,g=aK.resize;am=aH;aC=aL[aM];aI=aJ(aC).data(av);d();aJ.event.trigger(ae);aI.onLoad&&aI.onLoad.call(aC);aI.h=aI.height?aw(aI.height,"y")-aA-ar:aI.innerHeight?aw(aI.innerHeight,"y"):false;aI.w=aI.width?aw(aI.width,"x")-aB-at:aI.innerWidth?aw(aI.innerWidth,"x"):false;aI.mw=aI.w;aI.mh=aI.h;if(aI.maxWidth){aI.mw=aw(aI.maxWidth,"x")-aB-at;aI.mw=aI.w&&aI.w<aI.mw?aI.w:aI.mw;}if(aI.maxHeight){aI.mh=aw(aI.maxHeight,"y")-aA-ar;aI.mh=aI.h&&aI.h<aI.mh?aI.h:aI.mh;}a=aI.href;ag.show();ah.show();if(aI.inline){aJ('<div id="cboxInlineTemp" />').hide().insertBefore(aJ(a)[0]).bind(ae+" cbox_cleanup",function(){aJ(this).replaceWith(aF.children());});g(aJ(a));}else{if(aI.iframe){g(" ");}else{if(aI.html){g(aI.html);}else{if(ai(a)){e=new Image;e.onload=function(){var i;e.onload=null;e.id="cboxPhoto";aJ(e).css({margin:"auto",border:"none",display:"block",cssFloat:"left"});if(aI.scalePhotos){c=function(){e.height-=e.height*i;e.width-=e.width*i;};if(aI.mw&&e.width>aI.mw){i=(e.width-aI.mw)/e.width;c();}if(aI.mh&&e.height>aI.mh){i=(e.height-aI.mh)/e.height;c();}}if(aI.h){e.style.marginTop=Math.max(aI.h-e.height,0)/2+"px";}g(e);aL.length>1&&aJ(e).css({cursor:"pointer"}).click(aK.next);if(aq){e.style.msInterpolationMode="bicubic";}};e.src=a;}else{aJ("<div />").appendTo(af).load(a,function(i,j){j==="success"?g(this):g(aJ("<p>Request unsuccessful.</p>"));});}}}}};aK.next=function(){if(!am){aM=aM<aL.length-1?aM+1:0;aK.load();}};aK.prev=function(){if(!am){aM=aM>0?aM-1:aL.length-1;aK.load();}};aK.slideshow=function(){function a(){ay.text(aI.slideshowStop).bind(G,function(){c=setTimeout(aK.next,aI.slideshowSpeed);}).bind(ae,function(){clearTimeout(c);}).one("click",function(){e();aJ(this).removeClass(ap);});aE.removeClass(g+"off").addClass(g+"on");}var e,c,g="cboxSlideshow_";ay.bind("cbox_closed",function(){ay.unbind();clearTimeout(c);aE.removeClass(g+"off "+g+"on");});e=function(){clearTimeout(c);ay.text(aI.slideshowStart).unbind(G+" "+ae).one("click",function(){a();c=setTimeout(aK.next,aI.slideshowSpeed);aJ(this).removeClass(ap);});aE.removeClass(g+"on").addClass(g+"off");};if(aI.slideshow&&aL.length>1){aI.slideshowAuto?a():e();}};aK.close=function(){aJ.event.trigger("cbox_cleanup");aI.onCleanup&&aI.onCleanup.call(aC);al=false;aJ(document).unbind("keydown.cbox_close keydown.cbox_arrows");aG.unbind(L+" resize.cboxie6 scroll.cboxie6");ax.css({cursor:"auto"}).fadeOut("fast");aE.stop(aH,false).fadeOut("fast",function(){aJ("#colorbox iframe").attr("src","about:blank");aF.remove();aE.css({opacity:1});try{aj.focus();}catch(a){}aJ.event.trigger("cbox_closed");aI.onClosed&&aI.onClosed.call(aC);});};aK.element=function(){return aJ(aC);};aK.settings=aN;aJ(aK.init);})(jQuery);var Sitester_average_number_of_executions=1;var Sitester_def_lang="se";var Sitester_swap_lang="";var Sitester_SurveyId=1144;var Sitester_sekunder1=600;var Sitester_sekunder2=120;var Sitester_sekunder3=7776000;var Sitester_sekunder4=31536000;var Sitester_ExcludeURL="";var Sitester_BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";},searchString:function(d){for(var c=0;c<d.length;c++){var a=d[c].string;var b=d[c].prop;this.versionSearchString=d[c].versionSearch||d[c].identity;if(a){if(a.indexOf(d[c].subString)!=-1){return d[c].identity;}}else{if(b){return d[c].identity;}}}},searchVersion:function(a){var b=a.indexOf(this.versionSearchString);if(b==-1){return;}return parseFloat(a.substring(b+this.versionSearchString.length+1));},dataBrowser:[{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};function Sitester_Debug(){this.params=new Object();this.get=Sitester_Debug_get;qs=location.search.substring(1,location.search.length);if(qs.length==0){return;}qs=qs.replace(/\+/g," ");var c=qs.split("&");for(var d=0;d<c.length;d++){var b;var a=c[d].split("=");var e=unescape(a[0]);if(a.length==2){b=unescape(a[1]);}else{b=e;}this.params[e]=b;}}function Sitester_Debug_get(b,c){if(c==null){c=null;}var a=this.params[b];if(a==null){a=c;}return a;}function Sitester_RanLCase(){return String.fromCharCode(97+Math.round(Math.random()*25));}function Sitester_RanUCase(){return String.fromCharCode(65+Math.round(Math.random()*25));}function Sitester_r_nr(){return Math.round((Math.random()*9));}function Sitester_Generate_guid(){return"80b"+Sitester_r_nr()+Sitester_r_nr()+Sitester_r_nr()+Sitester_r_nr()+"-"+Sitester_RanLCase()+Sitester_r_nr()+Sitester_r_nr()+Sitester_r_nr()+"-"+Sitester_RanLCase()+Sitester_SurveyId+"-"+Sitester_r_nr()+Sitester_r_nr()+"-"+Sitester_r_nr()+Sitester_r_nr()+Sitester_RanLCase();}function Sitester_openWindow(){Sitester_guid=Sitester_Generate_guid();window.open("http://www.sitester.com/sform/start.asp?PK_Id="+Sitester_guid+"&Language="+Sitester_def_lang+"&SwapLanguage="+Sitester_swap_lang+"","","scrollbars=yes,width=450,height=350");document.getElementById("Sitester").style.display="none";if(Sitester_BrowserDetect.browser=="Safari"){Sitester_setCookie(Sitester_strExposedDateTime,Sitester_strMacTime,Sitester_dat4);}else{Sitester_setCookie(Sitester_strExposedDateTime,Sitester_exposure_dat,Sitester_dat4);}Sitester_setCookie(Sitester_strExposed,Sitester_strCookie,Sitester_dat4);Sitester_deleteCookie(Sitester_strActiveUser);Sitester_deleteCookie(Sitester_strDelay);for(i=0;(i<parent.frames.length);i++){if(parent.frames[i].document.getElementById("Sitester")!=null){parent.frames[i].document.getElementById("Sitester").style.display="none";}}}function Sitester_Go(){document.write("<div id='Sitester' title='Sitester' style='position: absolute; left:0; top:0; width:1024px; height:768px; z-index:9000; visibility: visible;'>");document.write("<img src='http://www.sitester.com/style/Sitesterlager50px.gif' width='1024' height='768' alt='Sitester' title='Sitester' onClick='Sitester_openWindow();'>");document.write("</div>");}function Sitester_rnd(b){var a=Math.round(Math.random()*(b-1));return(a==0);}function Sitester_setCookieSafari(a,f,e,c,b){var d=a+"="+escape(f)+((e)?"; expires="+e.toGMTString():"");+((c)?"; domain="+c:"")+((b)?"; secure":"");document.cookie=d;}function Sitester_setCookie(a,c,b){if(Sitester_BrowserDetect.browser=="Safari"){Sitester_setCookieSafari(a,c,b,false,false);}else{document.cookie=a+"="+c+"; path=/; expires="+b.toGMTString();}}function Sitester_getCookie(a){var b=a+"=";if(document.cookie.length>0){offset=document.cookie.indexOf(b);if(offset!=-1){offset+=b.length;end=document.cookie.indexOf(";",offset);if(end==-1){end=document.cookie.length;}if(document.cookie.substring(offset,end)==Sitester_strCookie){}return true;}}return false;}function Sitester_deleteCookie(a){var c=new Date();c.setTime(1);var b=new Date("Thu Jan 01 00:00:01 1970");if(Sitester_BrowserDetect.browser=="Firefox"){if(Sitester_getCookie(a)){Sitester_setCookie(a,Sitester_strCookie,b);}}else{if(Sitester_getCookie(a)){Sitester_setCookie(a,Sitester_strCookie,c);}}}function Sitester_checkTime(d){var c=new Date();var a=new Date();var b=Sitester_strExposedDateTime+"=";if(document.cookie.length>0){offset=document.cookie.indexOf(Sitester_strExposedDateTime);if(offset!=-1){offset+=b.length;end=document.cookie.indexOf(";",offset);if(end==-1){end=document.cookie.length;}a.getTime();check_date=new Date(document.cookie.substring(offset,end));if((check_date.getTime()+d*1000)<a.getTime()){return true;}}}return false;}var Sitester_strCookie="true";var Sitester_strDelay="Sitester_DelayId"+Sitester_SurveyId;var Sitester_strActiveUser="Sitester_ActiveUserId"+Sitester_SurveyId;var Sitester_strExposed="Sitester_ExposedId"+Sitester_SurveyId;var Sitester_strExposedDateTime="Sitester_ExposedDateTimeId"+Sitester_SurveyId;var Sitester_Trigger=false;var Sitester_dat1=new Date();var Sitester_dat2=new Date();var Sitester_dat3=new Date();var Sitester_dat4=new Date();var Sitester_exposure_dat=new Date();Sitester_BrowserDetect.init();Sitester_Location=new String(window.location.href);var Sitester_Debug_Opt=new Sitester_Debug();var do_Sitester_Debug;var Sitester_splitString=Sitester_ExcludeURL.split(",");var Sitester_DoExclude=false;if(Sitester_Debug_Opt.get("SitesterDebug")=="day8"){do_Sitester_Debug=true;alert("Sitester_average_number_of_executions: "+Sitester_average_number_of_executions+"\nSitester_def_lang: "+Sitester_def_lang+"\nSitester_swap_lang: "+Sitester_swap_lang+"\nSitester_SurveyId: "+Sitester_SurveyId+"\nSitester_sekunder1: "+Sitester_sekunder1+"\nSitester_sekunder2: "+Sitester_sekunder2+"\nSitester_sekunder3: "+Sitester_sekunder3+"\nSitester_sekunder4: "+Sitester_sekunder4+"\nSitester_ExcludeURL: "+Sitester_ExcludeURL+"\n");Sitester_Go();}if(Sitester_ExcludeURL!=""){for(i=0;i<(Sitester_splitString.length);i++){if(Sitester_Location.toLowerCase().indexOf(Sitester_splitString[i].toLowerCase())>-1&&!Sitester_DoExclude){Sitester_DoExclude=true;}else{Sitester_DoExclude=false;}}}else{Sitester_DoExclude=false;}if(Sitester_DoExclude||do_Sitester_Debug){}else{if(Sitester_getCookie("BefInt")){Sitester_deleteCookie("BefInt");Sitester_deleteCookie("AllReady");Sitester_deleteCookie("Delay");Sitester_deleteCookie("LastExposure");Sitester_deleteCookie("Exposed");}if(Sitester_getCookie("LastExposure")){Sitester_deleteCookie("BefInt");Sitester_deleteCookie("AllReady");Sitester_deleteCookie("Delay");Sitester_deleteCookie("LastExposure");Sitester_deleteCookie("Exposed");}if(!Sitester_getCookie(Sitester_strActiveUser)&&!Sitester_getCookie(Sitester_strDelay)){Sitester_dat1.setTime(Sitester_dat1.getTime()+(Sitester_sekunder1*1000));Sitester_setCookie(Sitester_strActiveUser,Sitester_strCookie,Sitester_dat1);Sitester_dat2.setTime(Sitester_dat2.getTime()+(Sitester_sekunder2*1000));Sitester_setCookie(Sitester_strDelay,Sitester_strCookie,Sitester_dat2);}if(Sitester_getCookie(Sitester_strExposed)){if(Sitester_checkTime(Sitester_sekunder3)){Sitester_dat1.setTime(Sitester_dat1.getTime()+(Sitester_sekunder1*1000));Sitester_setCookie(Sitester_strActiveUser,Sitester_strCookie,Sitester_dat1);Sitester_dat2.setTime(Sitester_dat2.getTime()+(Sitester_sekunder2*1000));Sitester_setCookie(Sitester_strDelay,Sitester_strCookie,Sitester_dat2);Sitester_deleteCookie(Sitester_strExposed);Sitester_deleteCookie(Sitester_strExposedDateTime);}}else{if(Sitester_rnd(Sitester_average_number_of_executions)){if(Sitester_getCookie(Sitester_strActiveUser)&&!Sitester_getCookie(Sitester_strDelay)){Sitester_Trigger=true;}}}if(!Sitester_getCookie(Sitester_strActiveUser)&&Sitester_checkTime(Sitester_sekunder1)){Sitester_dat1.setTime(Sitester_dat1.getTime()+(Sitester_sekunder1*1000));Sitester_setCookie(Sitester_strActiveUser,Sitester_strCookie,Sitester_dat1);}if(Sitester_Trigger){Sitester_exposure_dat.setTime(Sitester_exposure_dat.getTime());Sitester_dat4.setTime(Sitester_dat4.getTime()+(Sitester_sekunder4*1000));Sitester_strMacTime=Sitester_exposure_dat.getTime();Sitester_Go();}}(function(b){var a=-1;b.fn.extend({autocomplete:function(c,e){var d=typeof c=="string";e=b.extend({},b.Autocompleter.defaults,{url:d?c:null,data:d?null:c,delay:d?b.Autocompleter.defaults.delay:10,max:e&&!e.scroll?10:150},e);e.highlight=e.highlight||function(f){return f;};e.formatMatch=e.formatMatch||e.formatItem;return this.each(function(){new b.Autocompleter(this,e);});},result:function(c){return this.bind("result",c);},search:function(c){return this.trigger("search",[c]);},flushCache:function(){return this.trigger("flushCache");},setOptions:function(c){return this.trigger("setOptions",[c]);},unautocomplete:function(){return this.trigger("unautocomplete");}});b.Autocompleter=function(t,n){var y={LEFT:37,UP:38,RIGHT:39,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8};var j=b(t).attr("autocomplete","off").addClass(n.inputClass);var q;var c="";var u=b.Autocompleter.Cache(n);var l=0;var o;var f={mouseDownOnSelect:false};var s=b.Autocompleter.Select(n,t,k,f);var r;b.browser.opera&&b(t.form).bind("submit.autocomplete",function(){if(r){r=false;return false;}});j.bind((b.browser.opera?"keypress":"keydown")+".autocomplete",function(z){l=1;o=z.keyCode;switch(z.keyCode){case y.UP:z.preventDefault();if(s.visible()){s.prev();}else{x(0,true);}break;case y.DOWN:z.preventDefault();if(s.visible()){s.next();}else{x(0,true);}break;case y.PAGEUP:z.preventDefault();if(s.visible()){s.pageUp();}else{x(0,true);}break;case y.PAGEDOWN:z.preventDefault();if(s.visible()){s.pageDown();}else{x(0,true);}break;case n.multiple&&b.trim(n.multipleSeparator)==","&&y.COMMA:case y.RETURN:if(k()){z.preventDefault();r=true;return false;}break;case y.TAB:case y.ESC:s.hide();break;case y.LEFT:case y.RIGHT:break;default:a=-1;clearTimeout(q);q=setTimeout(x,n.delay);break;}}).focus(function(){l++;}).blur(function(){l=0;if(!f.mouseDownOnSelect){g();}}).click(function(){if(l++>=1&&!s.visible()){x(0,true);}}).bind("search",function(){var z=(arguments.length>1)?arguments[1]:null;function A(E,C){var B;if(C&&C.length){for(var D=0;D<C.length;D++){if(C[D].result.toLowerCase()==E.toLowerCase()){B=C[D];break;}}}if(typeof z=="function"){z(B);}else{j.trigger("result",B&&[B.data,B.value]);}}b.each(d(j.val()),function(C,B){w(B,A,A);});}).bind("flushCache",function(){u.flush();}).bind("setOptions",function(){b.extend(n,arguments[1]);if("data" in arguments[1]){u.populate();}}).bind("unautocomplete",function(){s.unbind();j.unbind();b(t.form).unbind(".autocomplete");});function k(){var F=s.selected();if(!F){return false;}var C=F.result;c=C;if(n.multiple){var D=d(j.val());if(D.length>1){var A=n.multipleSeparator.length;var E=b(t).selection().start;var B,z=0;b.each(D,function(G,H){z+=H.length;if(E<=z){B=G;return false;}z+=A;});D[B]=C;C=D.join(n.multipleSeparator);}C+=n.multipleSeparator;}j.val(C);h();j.trigger("result",[F.data,F.value]);return true;}function x(z,A){if(o==y.DEL){s.hide();return;}var B=j.val();if(!A&&B==c){return;}c=B;B=m(B);if(B.length>=n.minChars){j.addClass(n.loadingClass);if(!n.matchCase){B=B.toLowerCase();}w(B,p,h);}else{v();s.hide();}}function d(z){if(!z){return[""];}if(!n.multiple){return[b.trim(z)];}return b.map(z.split(n.multipleSeparator),function(A){return b.trim(z).length?b.trim(A):null;});}function m(z){if(!n.multiple){return z;}var A=d(z);if(A.length==1){return A[0];}var B=b(t).selection().start;if(B==z.length){A=d(z);}else{A=d(z.replace(z.substring(B),""));}return A[A.length-1];}function e(A,z){if(n.autoFill&&(m(j.val()).toLowerCase()==A.toLowerCase())&&o!=y.BACKSPACE){j.val(j.val()+z.substring(m(c).length));b(t).selection(c.length,c.length+z.length);}}function g(){clearTimeout(q);q=setTimeout(h,200);}function h(){var z=s.visible();s.hide();clearTimeout(q);v();if(n.mustMatch){j.search(function(A){if(!A){if(n.multiple){var B=d(j.val()).slice(0,-1);j.val(B.join(n.multipleSeparator)+(B.length?n.multipleSeparator:""));}else{j.val("");j.trigger("result",null);}}});}}function p(A,z){if(z&&z.length&&l){v();s.display(z,A);e(A,z[0].value);s.show();}else{h();}}function w(C,z,A){if(!n.matchCase){C=C.toLowerCase();}var D=u.load(C);if(D&&D.length){z(C,D);}else{if((typeof n.url=="string")&&(n.url.length>0)){var B={timestamp:+new Date()};b.each(n.extraParams,function(E,F){B[E]=typeof F=="function"?F():F;});b.ajax({mode:"abort",port:"autocomplete"+t.name,dataType:n.dataType,url:n.url,data:b.extend({q:m(C),limit:n.max},B),success:function(F){var E=n.parse&&n.parse(F)||i(F);u.add(C,E);z(C,E);}});}else{s.emptyList();A(C);}}}function i(C){var B=[];for(var A=0;A<rows.length;A++){var z=b.trim(rows[A]);if(z){z=z.split("|");B[B.length]={data:z,value:z[0],result:n.formatResult&&n.formatResult(z,z[0])||z[0]};}}return B;}function v(){j.removeClass(n.loadingClass);}};b.Autocompleter.defaults={inputClass:"ac_input",resultsClass:"ac_results",loadingClass:"ac_loading",minChars:1,delay:400,matchCase:false,matchSubset:true,matchContains:false,cacheLength:10,max:100,mustMatch:false,extraParams:{},selectFirst:true,formatItem:function(c){return c[0];},formatMatch:null,autoFill:false,width:0,multiple:false,multipleSeparator:", ",highlight:function(c,d){return c.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+d.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>");},scroll:true,scrollHeight:180};b.Autocompleter.Cache=function(g){var i={};var h=0;function c(k,j){if(!g.matchCase){k=k.toLowerCase();}var l=k.indexOf(j);if(g.matchContains=="word"){l=k.toLowerCase().search("\\b"+j.toLowerCase());}if(l==-1){return false;}return l==0||g.matchContains;}function e(k,j){if(h>g.cacheLength){d();}if(!i[k]){h++;}i[k]=j;}function f(){if(!g.data){return false;}var m={},o=0;if(!g.url){g.cacheLength=1;}m[""]=[];for(var j=0,k=g.data.length;j<k;j++){var q=g.data[j];q=(typeof q=="string")?[q]:q;var l=g.formatMatch(q,j+1,g.data.length);if(l===false){continue;}var p=l.charAt(0).toLowerCase();if(!m[p]){m[p]=[];}var n={value:l,data:q,result:g.formatResult&&g.formatResult(q)||l};m[p].push(n);if(o++<g.max){m[""].push(n);}}b.each(m,function(s,r){g.cacheLength++;e(s,r);});}setTimeout(f,25);function d(){i={};h=0;}return{flush:d,add:e,populate:f,load:function(o){if(!g.cacheLength||!h){return null;}if(!g.url&&g.matchContains){var j=[];for(var n in i){if(n.length>0){var l=i[n];b.each(l,function(p,k){if(c(k.value,o)){j.push(k);}});}}return j;}else{if(i[o]){return i[o];}else{if(g.matchSubset){for(var m=o.length-1;m>=g.minChars;m--){var l=i[o.substr(0,m)];if(l){var j=[];b.each(l,function(p,k){if(c(k.value,o)){j[j.length]=k;}});return j;}}}}}return null;}};};b.Autocompleter.Select=function(h,s,r,d){var m={ACTIVE:"ac_over"};var q="";var l,o=-1,u,g="",e=true,k,f;function p(){if(!e){return;}k=b("<div/>").hide().addClass(h.resultsClass).css("position","absolute").appendTo(document.body);f=b("<ul/>").appendTo(k).mouseover(function(v){if(t(v).nodeName&&t(v).nodeName.toUpperCase()=="LI"){o=b("li",f).removeClass(m.ACTIVE).index(t(v));b(t(v)).addClass(m.ACTIVE);}}).click(function(v){b(t(v)).addClass(m.ACTIVE);r();s.focus();return false;}).mousedown(function(){d.mouseDownOnSelect=true;}).mouseup(function(){d.mouseDownOnSelect=false;});if(h.width>0){k.css("width",h.width);}e=false;}function t(v){var w=v.target;while(w&&w.tagName!="LI"){w=w.parentNode;}if(!w){return[];}return w;}function i(v){l.slice(o,o+1).removeClass(m.ACTIVE);j(v);var w=l.slice(o,o+1).addClass(m.ACTIVE);if(h.scroll){var x=0;l.slice(0,o).each(function(){x+=this.offsetHeight;});if((x+w[0].offsetHeight-f.scrollTop())>f[0].clientHeight){f.scrollTop(x+w[0].offsetHeight-f.innerHeight());}else{if(x<f.scrollTop()){f.scrollTop(x);}}}}function j(v){if(a==-1){o=-1;}if(o==-1){q=s.value;}o+=v;if(o<-1){o=l.size()-1;}else{if(o>=l.size()){o=-1;}}if(o>=0){if(u[o].data){s.value=u[o].data.suggestion;}}else{s.value=q;}a=o;}function c(v){return h.max&&h.max<v?h.max:v;}function n(){f.empty();var y=c(u.length);for(var x=0;x<y;x++){if(!u[x]||!u[x].data){continue;}var v=h.formatItem(u[x].data,x+1,y,u[x].value,g);if(v===false){continue;}var w=b("<li/>").html(h.highlight(v,g)).addClass(x%2==0?"ac_even":"ac_odd").appendTo(f)[0];b.data(w,"ac_data",u[x]);}l=f.find("li");if(h.selectFirst){l.slice(0,1).addClass(m.ACTIVE);o=0;}if(b.fn.bgiframe){f.bgiframe();}}return{display:function(v,w){p();u=v;g=w;n();},next:function(){i(1);},prev:function(){i(-1);},pageUp:function(){if(o!=0&&o-8<0){i(-o);}else{i(-8);}},pageDown:function(){if(o!=l.size()-1&&o+8>l.size()){i(l.size()-1-o);}else{i(8);}},hide:function(){k&&k.hide();l&&l.removeClass(m.ACTIVE);o=-1;},visible:function(){return k&&k.is(":visible");},current:function(){return this.visible()&&(l.filter("."+m.ACTIVE)[0]||h.selectFirst&&l[0]);},show:function(){var w=b(s).offset();k.css({width:typeof h.width=="string"||h.width>0?h.width:b(s).width(),top:w.top+s.offsetHeight,left:w.left}).show();if(h.scroll){f.scrollTop(0);f.css({maxHeight:h.scrollHeight,overflow:"auto"});if(b.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var v=0;l.each(function(){v+=this.offsetHeight;});var x=v>h.scrollHeight;f.css("height",x?h.scrollHeight:v);if(!x){l.width(f.width()-parseInt(l.css("padding-left"))-parseInt(l.css("padding-right")));}}}},selected:function(){var v=l&&l.filter("."+m.ACTIVE).removeClass(m.ACTIVE);return v&&v.length&&b.data(v[0],"ac_data");},emptyList:function(){f&&f.empty();},unbind:function(){k&&k.remove();}};};b.fn.selection=function(h,d){if(h!==undefined){return this.each(function(){if(this.createTextRange){var k=this.createTextRange();if(d===undefined||h==d){k.move("character",h);k.select();}else{k.collapse(true);k.moveStart("character",h);k.moveEnd("character",d);k.select();}}else{if(this.setSelectionRange){this.setSelectionRange(h,d);}else{if(this.selectionStart){this.selectionStart=h;this.selectionEnd=d;}}}});}var f=this[0];if(f.createTextRange){var e=document.selection.createRange(),g=f.value,j="<->",c=e.text.length;e.text=j;var i=f.value.indexOf(j);f.value=g;this.selection(i,i+c);return{start:i,end:i+c};}else{if(f.selectionStart!==undefined){return{start:f.selectionStart,end:f.selectionEnd};}}};})(jQuery);$(document).ready(function(){if(typeof(queryCompletionSearchForms)=="undefined"||queryCompletionSearchForms.length==0){return;}$.each(queryCompletionSearchForms,function(b,a){$(a.textField).autocomplete(queryCompletionUrl,{cacheLength:0,extraParams:{ilang:queryCompletionLanguage},delay:200,selectFirst:false,dataType:"jsonp",highlight:false,scroll:false,parse:function(c){return $.map(c,function(d){return{data:d};});},formatItem:function(d){if(d){var c="<span>"+d.nHits+"</span>";return c+d.suggestionHighlighted;}return;}}).result(function(c,d){location.href=queryCompletionSearchUrl+"?q="+encodeURIComponent(d.suggestion);});});});