﻿/*
 * include all jquery plugins in this one single file to reduce http requests
 *
 * Image Map Highlighting Plugin
 * jscript/jquery/ui.core-1.5.2.min.js 						--> updated to jQuery UI 1.8.15
 * jscript/jquery/ui.slider.min.js							--> updated to jQuery UI Slider 1.8.15
																needed: jQuery UI Widget 1.8.15
																		jQuery UI Mouse 1.8.15
 * jscript/jquery/jquery.jcarousel-0.2.3.pack.js
 * only on touch devices: Scroll v4.1.9
 * jscript/jquery/chili-1.7.pack.js
 * jscript/jquery/jquery.easing-1.1.1.min.js 				--> updated to jQuery Easing v1.3 
 * jscript/jquery/jquery.dimensions-1.2rev3581.min.js 		--> removed because of new jQuery 1.6.2
 * jscript/jquery/jquery.accordion-1.6.min.js
 * jscript/jquery/jquery.form-2.12.min.js
 * jscript/jquery/thickbox-3.1.min.js
 * sIFR v2.0.7 / sIFR 2.0.1 Official Add-ons 1.2
 * jQuery Tooltip plugin 1.3
 *  jQuery UI Datepicker
 * jQuery history event v0.1
 * Mousewheel
 * Cookie plugin
 * Equal Heights Plugin
 * slideViewerPro 1.0
 * jQuery.timers
 * Cufon
 * self made tabs plugin
 */

/* 
 * check for touch device
 * check placed here because we load plugins only in case it is a touch device
 * http://modernizr.github.com/Modernizr/touch.html
 */
window.isTouchDevice = (function(d){
	/* works on iPad, iPhone, iPod, Android */
	try {
		document.createEvent("TouchEvent");
		return true;
	} catch (e) {
		return false;
	}
})(document);
 
/* 
	Image Map Highlighting Plugin
	Copyright (c) 2008 David Lynch, http://davidlynch.org/ 
	
	http://davidlynch.org/js/maphilight/
	
	place here, it doesn't work at the end of the file

*/
(function(F){var B,C,I,L,K,H,E,G,A,J;B=document.namespaces;has_canvas=!!document.createElement("canvas").getContext;if(!(has_canvas||B)){F.fn.maphilight=function(){return this};return }if(has_canvas){E=function(M){return Math.max(0,Math.min(parseInt(M,16),255))};G=function(M,N){return"rgba("+E(M.substr(0,2))+","+E(M.substr(2,2))+","+E(M.substr(4,2))+","+N+")"};C=function(M){var N=F('<canvas style="width:'+M.width+"px;height:"+M.height+'px;"></canvas>').get(0);N.getContext("2d").clearRect(0,0,N.width,N.height);return N};I=function(P,M,S,O,N){var R,Q=P.getContext("2d");Q.beginPath();if(M=="rect"){Q.rect(S[0],S[1],S[2]-S[0],S[3]-S[1])}else{if(M=="poly"){Q.moveTo(S[0],S[1]);for(R=2;R<S.length;R+=2){Q.lineTo(S[R],S[R+1])}}else{if(M=="circ"){Q.arc(S[0],S[1],S[2],0,Math.PI*2,false)}}}Q.closePath();if(O.fill){Q.fillStyle=G(O.fillColor,O.fillOpacity);Q.fill()}if(O.stroke){Q.strokeStyle=G(O.strokeColor,O.strokeOpacity);Q.lineWidth=O.strokeWidth;Q.stroke()}if(O.fade){F(P).css("opacity",0).animate({opacity:1},100)}};L=function(M){M.getContext("2d").clearRect(0,0,M.width,M.height)}}else{C=function(M){return F('<var style="zoom:1;overflow:hidden;display:block;width:'+M.width+"px;height:"+M.height+'px;"></var>').get(0)};I=function(N,Q,R,U,M){var S,T,O,P;S='<v:fill color="#'+U.fillColor+'" opacity="'+(U.fill?U.fillOpacity:0)+'" />';T=(U.stroke?'strokeweight="'+U.strokeWidth+'" stroked="t" strokecolor="#'+U.strokeColor+'"':'stroked="f"');O='<v:stroke opacity="'+U.strokeOpacity+'"/>';if(Q=="rect"){P=F('<v:rect name="'+M+'" filled="t" '+T+' style="zoom:1;margin:0;padding:0;display:block;position:absolute;left:'+R[0]+"px;top:"+R[1]+"px;width:"+(R[2]-R[0])+"px;height:"+(R[3]-R[1])+'px;"></v:rect>')}else{if(Q=="poly"){P=F('<v:shape name="'+M+'" filled="t" '+T+' coordorigin="0,0" coordsize="'+N.width+","+N.height+'" path="m '+R[0]+","+R[1]+" l "+R.join(",")+' x e" style="zoom:1;margin:0;padding:0;display:block;position:absolute;top:0px;left:0px;width:'+N.width+"px;height:"+N.height+'px;"></v:shape>')}else{if(Q=="circ"){P=F('<v:oval name="'+M+'" filled="t" '+T+' style="zoom:1;margin:0;padding:0;display:block;position:absolute;left:'+(R[0]-R[2])+"px;top:"+(R[1]-R[2])+"px;width:"+(R[2]*2)+"px;height:"+(R[2]*2)+'px;"></v:oval>')}}}P.get(0).innerHTML=S+O;F(N).append(P)};L=function(M){F(M).find("[name=highlighted]").remove()}}K=function(N){var M,O=N.getAttribute("coords").split(",");for(M=0;M<O.length;M++){O[M]=parseFloat(O[M])}return[N.getAttribute("shape").toLowerCase().substr(0,4),O]};J=function(O,N){var M=F(O);return F.extend({},N,F.metadata?M.metadata():false,M.data("maphilight"))};A=function(M){if(!M.complete){return false}if(typeof M.naturalWidth!="undefined"&&M.naturalWidth==0){return false}return true};H={position:"absolute",left:0,top:0,padding:0,border:0};var D=false;F.fn.maphilight=function(O){O=F.extend({},F.fn.maphilight.defaults,O);if(!has_canvas&&F.browser.msie&&!D){document.namespaces.add("v","urn:schemas-microsoft-com:vml");var N=document.createStyleSheet();var M=["shape","rect","oval","circ","fill","stroke","imagedata","group","textbox"];F.each(M,function(){N.addRule("v\\:"+this,"behavior: url(#default#VML); antialias:true")});D=true}return this.each(function(){var U,R,Y,Q,T,V,X,S,W;U=F(this);if(!A(this)){return window.setTimeout(function(){U.maphilight(O)},200)}Y=F.extend({},O,F.metadata?U.metadata():false,U.data("maphilight"));W=U.get(0).getAttribute("usemap");Q=F('map[name="'+W.substr(1)+'"]');if(!(U.is("img")&&W&&Q.size()>0)){return }if(U.hasClass("maphilighted")){var P=U.parent();U.insertBefore(P);P.remove();F(Q).unbind(".maphilight").find("area[coords]").unbind(".maphilight")}R=F("<div></div>").css({display:"block",background:'url("'+this.src+'")',position:"relative",padding:0,width:this.width,height:this.height});if(Y.wrapClass){if(Y.wrapClass===true){R.addClass(F(this).attr("class"))}else{R.addClass(Y.wrapClass)}}U.before(R).css("opacity",0).css(H).remove();if(F.browser.msie){U.css("filter","Alpha(opacity=0)")}R.append(U);T=C(this);F(T).css(H);T.height=this.height;T.width=this.width;X=function(c){var a,b;b=J(this,Y);if(!b.neverOn&&!b.alwaysOn){a=K(this);I(T,a[0],a[1],b,"highlighted");if(b.groupBy){var Z;if(/^[a-zA-Z][-a-zA-Z]+$/.test(b.groupBy)){Z=Q.find("area["+b.groupBy+'="'+F(this).attr(b.groupBy)+'"]')}else{Z=Q.find(b.groupBy)}var d=this;Z.each(function(){if(this!=d){var f=J(this,Y);if(!f.neverOn&&!f.alwaysOn){var e=K(this);I(T,e[0],e[1],f,"highlighted")}}})}if(!has_canvas){F(T).append("<v:rect></v:rect>")}}};F(Q).bind("alwaysOn.maphilight",function(){if(V){L(V)}if(!has_canvas){F(T).empty()}F(Q).find("area[coords]").each(function(){var Z,a;a=J(this,Y);if(a.alwaysOn){if(!V&&has_canvas){V=C(U.get());F(V).css(H);V.width=U.width();V.height=U.height();U.before(V)}a.fade=a.alwaysOnFade;Z=K(this);if(has_canvas){I(V,Z[0],Z[1],a,"")}else{I(T,Z[0],Z[1],a,"")}}})});F(Q).trigger("alwaysOn.maphilight").find("area[coords]").bind("mouseover.maphilight",X).bind("mouseout.maphilight",function(Z){L(T)});U.before(T);U.addClass("maphilighted")})};F.fn.maphilight.defaults={fill:true,fillColor:"000000",fillOpacity:0.2,stroke:true,strokeColor:"ff0000",strokeOpacity:1,strokeWidth:1,fade:true,alwaysOn:false,neverOn:false,groupBy:false,wrapClass:true}})(jQuery);

/*!
 * jQuery UI 1.8.15
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI
 */
(function(c,j){function k(a,b){var d=a.nodeName.toLowerCase();if("area"===d){b=a.parentNode;d=b.name;if(!a.href||!d||b.nodeName.toLowerCase()!=="map")return false;a=c("img[usemap=#"+d+"]")[0];return!!a&&l(a)}return(/input|select|textarea|button|object/.test(d)?!a.disabled:"a"==d?a.href||b:b)&&l(a)}function l(a){return!c(a).parents().andSelf().filter(function(){return c.curCSS(this,"visibility")==="hidden"||c.expr.filters.hidden(this)}).length}c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.15",
keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});c.fn.extend({propAttr:c.fn.prop||c.fn.attr,_focus:c.fn.focus,focus:function(a,b){return typeof a==="number"?this.each(function(){var d=
this;setTimeout(function(){c(d).focus();b&&b.call(d)},a)}):this._focus.apply(this,arguments)},scrollParent:function(){var a;a=c.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,
"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!a.length?c(document):a},zIndex:function(a){if(a!==j)return this.css("zIndex",a);if(this.length){a=c(this[0]);for(var b;a.length&&a[0]!==document;){b=a.css("position");if(b==="absolute"||b==="relative"||b==="fixed"){b=parseInt(a.css("zIndex"),10);if(!isNaN(b)&&b!==0)return b}a=a.parent()}}return 0},disableSelection:function(){return this.bind((c.support.selectstart?"selectstart":
"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});c.each(["Width","Height"],function(a,b){function d(f,g,m,n){c.each(e,function(){g-=parseFloat(c.curCSS(f,"padding"+this,true))||0;if(m)g-=parseFloat(c.curCSS(f,"border"+this+"Width",true))||0;if(n)g-=parseFloat(c.curCSS(f,"margin"+this,true))||0});return g}var e=b==="Width"?["Left","Right"]:["Top","Bottom"],h=b.toLowerCase(),i={innerWidth:c.fn.innerWidth,innerHeight:c.fn.innerHeight,
outerWidth:c.fn.outerWidth,outerHeight:c.fn.outerHeight};c.fn["inner"+b]=function(f){if(f===j)return i["inner"+b].call(this);return this.each(function(){c(this).css(h,d(this,f)+"px")})};c.fn["outer"+b]=function(f,g){if(typeof f!=="number")return i["outer"+b].call(this,f);return this.each(function(){c(this).css(h,d(this,f,true,g)+"px")})}});c.extend(c.expr[":"],{data:function(a,b,d){return!!c.data(a,d[3])},focusable:function(a){return k(a,!isNaN(c.attr(a,"tabindex")))},tabbable:function(a){var b=c.attr(a,
"tabindex"),d=isNaN(b);return(d||b>=0)&&k(a,!d)}});c(function(){var a=document.body,b=a.appendChild(b=document.createElement("div"));c.extend(b.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});c.support.minHeight=b.offsetHeight===100;c.support.selectstart="onselectstart"in b;a.removeChild(b).style.display="none"});c.extend(c.ui,{plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];a.plugins[e].push([b,d[e]])}},call:function(a,b,d){if((b=a.plugins[b])&&
a.element[0].parentNode)for(var e=0;e<b.length;e++)a.options[b[e][0]]&&b[e][1].apply(a.element,d)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(a,b){if(c(a).css("overflow")==="hidden")return false;b=b&&b==="left"?"scrollLeft":"scrollTop";var d=false;if(a[b]>0)return true;a[b]=1;d=a[b]>0;a[b]=0;return d},isOverAxis:function(a,b,d){return a>b&&a<b+d},isOver:function(a,b,d,e,h,i){return c.ui.isOverAxis(a,d,h)&&
c.ui.isOverAxis(b,e,i)}})}})(jQuery);
;/*!
 * jQuery UI Widget 1.8.15
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Widget
 */
(function(b,j){if(b.cleanData){var k=b.cleanData;b.cleanData=function(a){for(var c=0,d;(d=a[c])!=null;c++)b(d).triggerHandler("remove");k(a)}}else{var l=b.fn.remove;b.fn.remove=function(a,c){return this.each(function(){if(!c)if(!a||b.filter(a,[this]).length)b("*",this).add([this]).each(function(){b(this).triggerHandler("remove")});return l.call(b(this),a,c)})}}b.widget=function(a,c,d){var e=a.split(".")[0],f;a=a.split(".")[1];f=e+"-"+a;if(!d){d=c;c=b.Widget}b.expr[":"][f]=function(h){return!!b.data(h,
a)};b[e]=b[e]||{};b[e][a]=function(h,g){arguments.length&&this._createWidget(h,g)};c=new c;c.options=b.extend(true,{},c.options);b[e][a].prototype=b.extend(true,c,{namespace:e,widgetName:a,widgetEventPrefix:b[e][a].prototype.widgetEventPrefix||a,widgetBaseClass:f},d);b.widget.bridge(a,b[e][a])};b.widget.bridge=function(a,c){b.fn[a]=function(d){var e=typeof d==="string",f=Array.prototype.slice.call(arguments,1),h=this;d=!e&&f.length?b.extend.apply(null,[true,d].concat(f)):d;if(e&&d.charAt(0)==="_")return h;
e?this.each(function(){var g=b.data(this,a),i=g&&b.isFunction(g[d])?g[d].apply(g,f):g;if(i!==g&&i!==j){h=i;return false}}):this.each(function(){var g=b.data(this,a);g?g.option(d||{})._init():b.data(this,a,new c(d,this))});return h}};b.Widget=function(a,c){arguments.length&&this._createWidget(a,c)};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(a,c){b.data(c,this.widgetName,this);this.element=b(c);this.options=b.extend(true,{},this.options,
this._getCreateOptions(),a);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},
widget:function(){return this.element},option:function(a,c){var d=a;if(arguments.length===0)return b.extend({},this.options);if(typeof a==="string"){if(c===j)return this.options[a];d={};d[a]=c}this._setOptions(d);return this},_setOptions:function(a){var c=this;b.each(a,function(d,e){c._setOption(d,e)});return this},_setOption:function(a,c){this.options[a]=c;if(a==="disabled")this.widget()[c?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",c);return this},
enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(a,c,d){var e=this.options[a];c=b.Event(c);c.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase();d=d||{};if(c.originalEvent){a=b.event.props.length;for(var f;a;){f=b.event.props[--a];c[f]=c.originalEvent[f]}}this.element.trigger(c,d);return!(b.isFunction(e)&&e.call(this.element[0],c,d)===false||c.isDefaultPrevented())}}})(jQuery);
;/*!
 * jQuery UI Mouse 1.8.15
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Mouse
 *
 * Depends:
 *	jquery.ui.widget.js
 */
(function(b){b.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(c){return a._mouseDown(c)}).bind("click."+this.widgetName,function(c){if(true===b.data(c.target,a.widgetName+".preventClickEvent")){b.removeData(c.target,a.widgetName+".preventClickEvent");c.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(a){a.originalEvent=
a.originalEvent||{};if(!a.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(a);this._mouseDownEvent=a;var c=this,e=a.which==1,f=typeof this.options.cancel=="string"?b(a.target).closest(this.options.cancel).length:false;if(!e||f||!this._mouseCapture(a))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted=this._mouseStart(a)!==
false;if(!this._mouseStarted){a.preventDefault();return true}}true===b.data(a.target,this.widgetName+".preventClickEvent")&&b.removeData(a.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(d){return c._mouseMove(d)};this._mouseUpDelegate=function(d){return c._mouseUp(d)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);a.preventDefault();return a.originalEvent.mouseHandled=true}},_mouseMove:function(a){if(b.browser.msie&&
!(document.documentMode>=9)&&!a.button)return this._mouseUp(a);if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,a)!==false)?this._mouseDrag(a):this._mouseUp(a);return!this._mouseStarted},_mouseUp:function(a){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=
false;a.target==this._mouseDownEvent.target&&b.data(a.target,this.widgetName+".preventClickEvent",true);this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
;/*
 * jQuery UI Slider 1.8.15
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Slider
 *
 * Depends:
 *	jquery.ui.core.js
 *	jquery.ui.mouse.js
 *	jquery.ui.widget.js
 */
(function(d){d.widget("ui.slider",d.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var a=this,b=this.options,c=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),f=b.values&&b.values.length||1,e=[];this._mouseSliding=this._keySliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+
this.orientation+" ui-widget ui-widget-content ui-corner-all"+(b.disabled?" ui-slider-disabled ui-disabled":""));this.range=d([]);if(b.range){if(b.range===true){if(!b.values)b.values=[this._valueMin(),this._valueMin()];if(b.values.length&&b.values.length!==2)b.values=[b.values[0],b.values[0]]}this.range=d("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+(b.range==="min"||b.range==="max"?" ui-slider-range-"+b.range:""))}for(var j=c.length;j<f;j+=1)e.push("<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>");
this.handles=c.add(d(e.join("")).appendTo(a.element));this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(g){g.preventDefault()}).hover(function(){b.disabled||d(this).addClass("ui-state-hover")},function(){d(this).removeClass("ui-state-hover")}).focus(function(){if(b.disabled)d(this).blur();else{d(".ui-slider .ui-state-focus").removeClass("ui-state-focus");d(this).addClass("ui-state-focus")}}).blur(function(){d(this).removeClass("ui-state-focus")});this.handles.each(function(g){d(this).data("index.ui-slider-handle",
g)});this.handles.keydown(function(g){var k=true,l=d(this).data("index.ui-slider-handle"),i,h,m;if(!a.options.disabled){switch(g.keyCode){case d.ui.keyCode.HOME:case d.ui.keyCode.END:case d.ui.keyCode.PAGE_UP:case d.ui.keyCode.PAGE_DOWN:case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:k=false;if(!a._keySliding){a._keySliding=true;d(this).addClass("ui-state-active");i=a._start(g,l);if(i===false)return}break}m=a.options.step;i=a.options.values&&a.options.values.length?
(h=a.values(l)):(h=a.value());switch(g.keyCode){case d.ui.keyCode.HOME:h=a._valueMin();break;case d.ui.keyCode.END:h=a._valueMax();break;case d.ui.keyCode.PAGE_UP:h=a._trimAlignValue(i+(a._valueMax()-a._valueMin())/5);break;case d.ui.keyCode.PAGE_DOWN:h=a._trimAlignValue(i-(a._valueMax()-a._valueMin())/5);break;case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:if(i===a._valueMax())return;h=a._trimAlignValue(i+m);break;case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:if(i===a._valueMin())return;h=a._trimAlignValue(i-
m);break}a._slide(g,l,h);return k}}).keyup(function(g){var k=d(this).data("index.ui-slider-handle");if(a._keySliding){a._keySliding=false;a._stop(g,k);a._change(g,k);d(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy();
return this},_mouseCapture:function(a){var b=this.options,c,f,e,j,g;if(b.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();c=this._normValueFromMouse({x:a.pageX,y:a.pageY});f=this._valueMax()-this._valueMin()+1;j=this;this.handles.each(function(k){var l=Math.abs(c-j.values(k));if(f>l){f=l;e=d(this);g=k}});if(b.range===true&&this.values(1)===b.min){g+=1;e=d(this.handles[g])}if(this._start(a,g)===false)return false;
this._mouseSliding=true;j._handleIndex=g;e.addClass("ui-state-active").focus();b=e.offset();this._clickOffset=!d(a.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:a.pageX-b.left-e.width()/2,top:a.pageY-b.top-e.height()/2-(parseInt(e.css("borderTopWidth"),10)||0)-(parseInt(e.css("borderBottomWidth"),10)||0)+(parseInt(e.css("marginTop"),10)||0)};this.handles.hasClass("ui-state-hover")||this._slide(a,g,c);return this._animateOff=true},_mouseStart:function(){return true},_mouseDrag:function(a){var b=
this._normValueFromMouse({x:a.pageX,y:a.pageY});this._slide(a,this._handleIndex,b);return false},_mouseStop:function(a){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(a,this._handleIndex);this._change(a,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(a){var b;if(this.orientation==="horizontal"){b=
this.elementSize.width;a=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{b=this.elementSize.height;a=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}b=a/b;if(b>1)b=1;if(b<0)b=0;if(this.orientation==="vertical")b=1-b;a=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+b*a)},_start:function(a,b){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b);
c.values=this.values()}return this._trigger("start",a,c)},_slide:function(a,b,c){var f;if(this.options.values&&this.options.values.length){f=this.values(b?0:1);if(this.options.values.length===2&&this.options.range===true&&(b===0&&c>f||b===1&&c<f))c=f;if(c!==this.values(b)){f=this.values();f[b]=c;a=this._trigger("slide",a,{handle:this.handles[b],value:c,values:f});this.values(b?0:1);a!==false&&this.values(b,c,true)}}else if(c!==this.value()){a=this._trigger("slide",a,{handle:this.handles[b],value:c});
a!==false&&this.value(c)}},_stop:function(a,b){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b);c.values=this.values()}this._trigger("stop",a,c)},_change:function(a,b){if(!this._keySliding&&!this._mouseSliding){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b);c.values=this.values()}this._trigger("change",a,c)}},value:function(a){if(arguments.length){this.options.value=
this._trimAlignValue(a);this._refreshValue();this._change(null,0)}else return this._value()},values:function(a,b){var c,f,e;if(arguments.length>1){this.options.values[a]=this._trimAlignValue(b);this._refreshValue();this._change(null,a)}else if(arguments.length)if(d.isArray(arguments[0])){c=this.options.values;f=arguments[0];for(e=0;e<c.length;e+=1){c[e]=this._trimAlignValue(f[e]);this._change(null,e)}this._refreshValue()}else return this.options.values&&this.options.values.length?this._values(a):
this.value();else return this._values()},_setOption:function(a,b){var c,f=0;if(d.isArray(this.options.values))f=this.options.values.length;d.Widget.prototype._setOption.apply(this,arguments);switch(a){case "disabled":if(b){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.propAttr("disabled",true);this.element.addClass("ui-disabled")}else{this.handles.propAttr("disabled",false);this.element.removeClass("ui-disabled")}break;case "orientation":this._detectOrientation();
this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case "value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case "values":this._animateOff=true;this._refreshValue();for(c=0;c<f;c+=1)this._change(null,c);this._animateOff=false;break}},_value:function(){var a=this.options.value;return a=this._trimAlignValue(a)},_values:function(a){var b,c;if(arguments.length){b=this.options.values[a];
return b=this._trimAlignValue(b)}else{b=this.options.values.slice();for(c=0;c<b.length;c+=1)b[c]=this._trimAlignValue(b[c]);return b}},_trimAlignValue:function(a){if(a<=this._valueMin())return this._valueMin();if(a>=this._valueMax())return this._valueMax();var b=this.options.step>0?this.options.step:1,c=(a-this._valueMin())%b;a=a-c;if(Math.abs(c)*2>=b)a+=c>0?b:-b;return parseFloat(a.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var a=
this.options.range,b=this.options,c=this,f=!this._animateOff?b.animate:false,e,j={},g,k,l,i;if(this.options.values&&this.options.values.length)this.handles.each(function(h){e=(c.values(h)-c._valueMin())/(c._valueMax()-c._valueMin())*100;j[c.orientation==="horizontal"?"left":"bottom"]=e+"%";d(this).stop(1,1)[f?"animate":"css"](j,b.animate);if(c.options.range===true)if(c.orientation==="horizontal"){if(h===0)c.range.stop(1,1)[f?"animate":"css"]({left:e+"%"},b.animate);if(h===1)c.range[f?"animate":"css"]({width:e-
g+"%"},{queue:false,duration:b.animate})}else{if(h===0)c.range.stop(1,1)[f?"animate":"css"]({bottom:e+"%"},b.animate);if(h===1)c.range[f?"animate":"css"]({height:e-g+"%"},{queue:false,duration:b.animate})}g=e});else{k=this.value();l=this._valueMin();i=this._valueMax();e=i!==l?(k-l)/(i-l)*100:0;j[c.orientation==="horizontal"?"left":"bottom"]=e+"%";this.handle.stop(1,1)[f?"animate":"css"](j,b.animate);if(a==="min"&&this.orientation==="horizontal")this.range.stop(1,1)[f?"animate":"css"]({width:e+"%"},
b.animate);if(a==="max"&&this.orientation==="horizontal")this.range[f?"animate":"css"]({width:100-e+"%"},{queue:false,duration:b.animate});if(a==="min"&&this.orientation==="vertical")this.range.stop(1,1)[f?"animate":"css"]({height:e+"%"},b.animate);if(a==="max"&&this.orientation==="vertical")this.range[f?"animate":"css"]({height:100-e+"%"},{queue:false,duration:b.animate})}}});d.extend(d.ui.slider,{version:"1.8.15"})})(jQuery);
;

/**
 * jCarousel - Riding carousels with jQuery
 *   http://sorgalla.com/jcarousel/
 *
 * Copyright (c) 2006 Jan Sorgalla (http://sorgalla.com)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * Built on top of the jQuery library
 *   http://jquery.com
 *
 * Inspired by the "Carousel Component" by Bill Scott
 *   http://billwscott.com/carousel/
 */
/**
 * Your JavaScript-Code was crunched by
 * www.seo-ranking-tools.de
 * Tools for SEO's and Webmaster!
 * last edit 2008-12-12
 *** NOTE: we've removed following alert:   alert('jCarousel: No width/height set for items. This will cause an infinite loop. Aborting...');
 */
(function($){$.fn.jcarousel=function(o){return this.each(function(){new $jc(this,o)})};var defaults={vertical:false,start:1,offset:1,size:null,scroll:3,visible:null,animation:'normal',easing:'swing',auto:0,wrap:null,initCallback:null,reloadCallback:null,itemLoadCallback:null,itemFirstInCallback:null,itemFirstOutCallback:null,itemLastInCallback:null,itemLastOutCallback:null,itemVisibleInCallback:null,itemVisibleOutCallback:null,buttonNextHTML:'<div></div>',buttonPrevHTML:'<div></div>',buttonNextEvent:'click',buttonPrevEvent:'click',buttonNextCallback:null,buttonPrevCallback:null};$.jcarousel=function(e,o){this.options=$.extend({},defaults,o||{});this.locked=false;this.container=null;this.clip=null;this.list=null;this.buttonNext=null;this.buttonPrev=null;this.wh=!this.options.vertical?'width':'height';this.lt=!this.options.vertical?'left':'top';var skin='',split=e.className.split(' ');for(var i=0;i<split.length;i++){if(split[i].indexOf('jcarousel-skin')!=-1){$(e).removeClass(split[i]);var skin=split[i];break}}if(e.nodeName=='UL'||e.nodeName=='OL'){this.list=$(e);this.container=this.list.parent();if(this.container.hasClass('jcarousel-clip')){if(!this.container.parent().hasClass('jcarousel-container'))this.container=this.container.wrap('<div></div>');this.container=this.container.parent()}else if(!this.container.hasClass('jcarousel-container'))this.container=this.list.wrap('<div></div>').parent()}else{this.container=$(e);this.list=$(e).find('>ul,>ol,div>ul,div>ol')}if(skin!=''&&this.container.parent()[0].className.indexOf('jcarousel-skin')==-1)this.container.wrap('<div class=" '+skin+'"></div>');this.clip=this.list.parent();if(!this.clip.length||!this.clip.hasClass('jcarousel-clip'))this.clip=this.list.wrap('<div></div>').parent();this.buttonPrev=$('.jcarousel-prev',this.container);if(this.buttonPrev.size()==0&&this.options.buttonPrevHTML!=null)this.buttonPrev=this.clip.before(this.options.buttonPrevHTML).prev();this.buttonPrev.addClass(this.className('jcarousel-prev'));this.buttonNext=$('.jcarousel-next',this.container);if(this.buttonNext.size()==0&&this.options.buttonNextHTML!=null)this.buttonNext=this.clip.before(this.options.buttonNextHTML).prev();this.buttonNext.addClass(this.className('jcarousel-next'));this.clip.addClass(this.className('jcarousel-clip'));this.list.addClass(this.className('jcarousel-list'));this.container.addClass(this.className('jcarousel-container'));var di=this.options.visible!=null?Math.ceil(this.clipping()/this.options.visible):null;var li=this.list.children('li');var self=this;if(li.size()>0){var wh=0,i=this.options.offset;li.each(function(){self.format(this,i++);wh+=self.dimension(this,di)});this.list.css(this.wh,wh+'px');if(!o||o.size===undefined)this.options.size=li.size()}this.container.css('display','block');this.buttonNext.css('display','block');this.buttonPrev.css('display','block');this.funcNext=function(){self.next()};this.funcPrev=function(){self.prev()};this.funcResize=function(){self.reload()};if(this.options.initCallback!=null)this.options.initCallback(this,'init');if($.browser.safari && $.browser.version < 523){this.buttons(false,false);$(window).bind('load',function(){self.setup()})}else this.setup()};var $jc=$.jcarousel;$jc.fn=$jc.prototype={jcarousel:'0.2.3'};$jc.fn.extend=$jc.extend=$.extend;$jc.fn.extend({setup:function(){this.first=null;this.last=null;this.prevFirst=null;this.prevLast=null;this.animating=false;this.timer=null;this.tail=null;this.inTail=false;if(this.locked)return;this.list.css(this.lt,this.pos(this.options.offset)+'px');var p=this.pos(this.options.start);this.prevFirst=this.prevLast=null;this.animate(p,false);$(window).unbind('resize',this.funcResize).bind('resize',this.funcResize)},reset:function(){this.list.empty();this.list.css(this.lt,'0px');this.list.css(this.wh,'10px');if(this.options.initCallback!=null)this.options.initCallback(this,'reset');this.setup()},reload:function(){if(this.tail!=null&&this.inTail)this.list.css(this.lt,$jc.intval(this.list.css(this.lt))+this.tail);this.tail=null;this.inTail=false;if(this.options.reloadCallback!=null)this.options.reloadCallback(this);if(this.options.visible!=null){var self=this;var di=Math.ceil(this.clipping()/this.options.visible),wh=0,lt=0;$('li',this.list).each(function(i){wh+=self.dimension(this,di);if(i+1<self.first)lt=wh});this.list.css(this.wh,wh+'px');this.list.css(this.lt,-lt+'px')}this.scroll(this.first,false)},lock:function(){this.locked=true;this.buttons()},unlock:function(){this.locked=false;this.buttons()},size:function(s){if(s!=undefined){this.options.size=s;if(!this.locked)this.buttons()}return this.options.size},has:function(i,i2){if(i2==undefined||!i2)i2=i;if(this.options.size!==null&&i2>this.options.size)i2=this.options.size;for(var j=i;j<=i2;j++){var e=this.get(j);if(!e.length||e.hasClass('jcarousel-item-placeholder'))return false}return true},get:function(i){return $('.jcarousel-item-'+i,this.list)},add:function(i,s){var e=this.get(i),old=0,add=0;if(e.length==0){var c,e=this.create(i),j=$jc.intval(i);while(c=this.get(--j)){if(j<=0||c.length){j<=0?this.list.prepend(e):c.after(e);break}}}else old=this.dimension(e);e.removeClass(this.className('jcarousel-item-placeholder'));typeof s=='string'?e.html(s):e.empty().append(s);var di=this.options.visible!=null?Math.ceil(this.clipping()/this.options.visible):null;var wh=this.dimension(e,di)-old;if(i>0&&i<this.first)this.list.css(this.lt,$jc.intval(this.list.css(this.lt))-wh+'px');this.list.css(this.wh,$jc.intval(this.list.css(this.wh))+wh+'px');return e},remove:function(i){var e=this.get(i);if(!e.length||(i>=this.first&&i<=this.last))return;var d=this.dimension(e);if(i<this.first)this.list.css(this.lt,$jc.intval(this.list.css(this.lt))+d+'px');e.remove();this.list.css(this.wh,$jc.intval(this.list.css(this.wh))-d+'px')},next:function(){this.stopAuto();if(this.tail!=null&&!this.inTail)this.scrollTail(false);else this.scroll(((this.options.wrap=='both'||this.options.wrap=='last')&&this.options.size!=null&&this.last==this.options.size)?1:this.first+this.options.scroll)},prev:function(){this.stopAuto();if(this.tail!=null&&this.inTail)this.scrollTail(true);else this.scroll(((this.options.wrap=='both'||this.options.wrap=='first')&&this.options.size!=null&&this.first==1)?this.options.size:this.first-this.options.scroll)},scrollTail:function(b){if(this.locked||this.animating||!this.tail)return;var pos=$jc.intval(this.list.css(this.lt));!b?pos-=this.tail:pos+=this.tail;this.inTail=!b;this.prevFirst=this.first;this.prevLast=this.last;this.animate(pos)},scroll:function(i,a){if(this.locked||this.animating)return;this.animate(this.pos(i),a)},pos:function(i){if(this.locked||this.animating)return;if(this.options.wrap!='circular')i=i<1?1:(this.options.size&&i>this.options.size?this.options.size:i);var back=this.first>i;var pos=$jc.intval(this.list.css(this.lt));var f=this.options.wrap!='circular'&&this.first<=1?1:this.first;var c=back?this.get(f):this.get(this.last);var j=back?f:f-1;var e=null,l=0,p=false,d=0;while(back?--j>=i:++j<i){e=this.get(j);p=!e.length;if(e.length==0){e=this.create(j).addClass(this.className('jcarousel-item-placeholder'));c[back?'before':'after'](e)}c=e;d=this.dimension(e);if(p)l+=d;if(this.first!=null&&(this.options.wrap=='circular'||(j>=1&&(this.options.size==null||j<=this.options.size))))pos=back?pos+d:pos-d}var clipping=this.clipping();var cache=[];var visible=0,j=i,v=0;var c=this.get(i-1);while(++visible){e=this.get(j);p=!e.length;if(e.length==0){e=this.create(j).addClass(this.className('jcarousel-item-placeholder'));c.length==0?this.list.prepend(e):c[back?'before':'after'](e)}c=e;var d=this.dimension(e);if(this.options.wrap!='circular'&&this.options.size!==null&&j>this.options.size)cache.push(e);else if(p)l+=d;v+=d;if(v>=clipping)break;j++}for(var x=0;x<cache.length;x++)cache[x].remove();if(l>0){this.list.css(this.wh,this.dimension(this.list)+l+'px');if(back){pos-=l;this.list.css(this.lt,$jc.intval(this.list.css(this.lt))-l+'px')}}var last=i+visible-1;if(this.options.wrap!='circular'&&this.options.size&&last>this.options.size)last=this.options.size;if(j>last){visible=0,j=last,v=0;while(++visible){var e=this.get(j--);if(!e.length)break;v+=this.dimension(e);if(v>=clipping)break}}var first=last-visible+1;if(this.options.wrap!='circular'&&first<1)first=1;if(this.inTail&&back){pos+=this.tail;this.inTail=false}this.tail=null;if(this.options.wrap!='circular'&&last==this.options.size&&(last-visible+1)>=1){var m=$jc.margin(this.get(last),!this.options.vertical?'marginRight':'marginBottom');if((v-m)>clipping)this.tail=v-clipping-m}while(i-->first)pos+=this.dimension(this.get(i));this.prevFirst=this.first;this.prevLast=this.last;this.first=first;this.last=last;return pos},animate:function(p,a){if(this.locked||this.animating)return;this.animating=true;var self=this;var scrolled=function(){self.animating=false;if(p==0)self.list.css(self.lt,0);if(self.options.wrap=='both'||self.options.wrap=='last'||self.options.size==null||self.last<self.options.size)self.startAuto();self.buttons();self.notify('onAfterAnimation')};this.notify('onBeforeAnimation');if(!this.options.animation||a==false){this.list.css(this.lt,p+'px');scrolled()}else{var o=!this.options.vertical?{'left':p}:{'top':p};this.list.animate(o,this.options.animation,this.options.easing,scrolled)}},startAuto:function(s){if(s!=undefined)this.options.auto=s;if(this.options.auto==0)return this.stopAuto();if(this.timer!=null)return;var self=this;this.timer=setTimeout(function(){self.next()},this.options.auto*1000)},stopAuto:function(){if(this.timer==null)return;clearTimeout(this.timer);this.timer=null},buttons:function(n,p){if(n==undefined||n==null){var n=!this.locked&&this.options.size!==0&&((this.options.wrap&&this.options.wrap!='first')||this.options.size==null||this.last<this.options.size);if(!this.locked&&(!this.options.wrap||this.options.wrap=='first')&&this.options.size!=null&&this.last>=this.options.size)n=this.tail!=null&&!this.inTail}if(p==undefined||p==null){var p=!this.locked&&this.options.size!==0&&((this.options.wrap&&this.options.wrap!='last')||this.first>1);if(!this.locked&&(!this.options.wrap||this.options.wrap=='last')&&this.options.size!=null&&this.first==1)p=this.tail!=null&&this.inTail}var self=this;this.buttonNext[n?'bind':'unbind'](this.options.buttonNextEvent,this.funcNext)[n?'removeClass':'addClass'](this.className('jcarousel-next-disabled')).attr('disabled',n?false:true);this.buttonPrev[p?'bind':'unbind'](this.options.buttonPrevEvent,this.funcPrev)[p?'removeClass':'addClass'](this.className('jcarousel-prev-disabled')).attr('disabled',p?false:true);if(this.buttonNext.length>0&&(this.buttonNext[0].jcarouselstate==undefined||this.buttonNext[0].jcarouselstate!=n)&&this.options.buttonNextCallback!=null){this.buttonNext.each(function(){self.options.buttonNextCallback(self,this,n)});this.buttonNext[0].jcarouselstate=n}if(this.buttonPrev.length>0&&(this.buttonPrev[0].jcarouselstate==undefined||this.buttonPrev[0].jcarouselstate!=p)&&this.options.buttonPrevCallback!=null){this.buttonPrev.each(function(){self.options.buttonPrevCallback(self,this,p)});this.buttonPrev[0].jcarouselstate=p}},notify:function(evt){var state=this.prevFirst==null?'init':(this.prevFirst<this.first?'next':'prev');this.callback('itemLoadCallback',evt,state);if(this.prevFirst!==this.first){this.callback('itemFirstInCallback',evt,state,this.first);this.callback('itemFirstOutCallback',evt,state,this.prevFirst)}if(this.prevLast!==this.last){this.callback('itemLastInCallback',evt,state,this.last);this.callback('itemLastOutCallback',evt,state,this.prevLast)}this.callback('itemVisibleInCallback',evt,state,this.first,this.last,this.prevFirst,this.prevLast);this.callback('itemVisibleOutCallback',evt,state,this.prevFirst,this.prevLast,this.first,this.last)},callback:function(cb,evt,state,i1,i2,i3,i4){if(this.options[cb]==undefined||(typeof this.options[cb]!='object'&&evt!='onAfterAnimation'))return;var callback=typeof this.options[cb]=='object'?this.options[cb][evt]:this.options[cb];if(!$.isFunction(callback))return;var self=this;if(i1===undefined)callback(self,state,evt);else if(i2===undefined)this.get(i1).each(function(){callback(self,this,i1,state,evt)});else{for(var i=i1;i<=i2;i++)if(i!==null&&!(i>=i3&&i<=i4))this.get(i).each(function(){callback(self,this,i,state,evt)})}},create:function(i){return this.format('<li></li>',i)},format:function(e,i){var $e=$(e).addClass(this.className('jcarousel-item')).addClass(this.className('jcarousel-item-'+i));$e.attr('jcarouselindex',i);return $e},className:function(c){return c+' '+c+(!this.options.vertical?'-horizontal':'-vertical')},dimension:function(e,d){var el=e.jquery!=undefined?e[0]:e;var old=!this.options.vertical?el.offsetWidth+$jc.margin(el,'marginLeft')+$jc.margin(el,'marginRight'):el.offsetHeight+$jc.margin(el,'marginTop')+$jc.margin(el,'marginBottom');if(d==undefined||old==d)return old;var w=!this.options.vertical?d-$jc.margin(el,'marginLeft')-$jc.margin(el,'marginRight'):d-$jc.margin(el,'marginTop')-$jc.margin(el,'marginBottom');$(el).css(this.wh,w+'px');return this.dimension(el)},clipping:function(){return!this.options.vertical?this.clip[0].offsetWidth-$jc.intval(this.clip.css('borderLeftWidth'))-$jc.intval(this.clip.css('borderRightWidth')):this.clip[0].offsetHeight-$jc.intval(this.clip.css('borderTopWidth'))-$jc.intval(this.clip.css('borderBottomWidth'))},index:function(i,s){if(s==undefined)s=this.options.size;return Math.round((((i-1)/s)-Math.floor((i-1)/s))*s)+1}});$jc.extend({defaults:function(d){return $.extend(defaults,d||{})},margin:function(e,p){if(!e)return 0;var el=e.jquery!=undefined?e[0]:e;if(p=='marginRight'&&$.browser.safari){var old={'display':'block','float':'none','width':'auto'},oWidth,oWidth2;$.swap(el,old,function(){oWidth=el.offsetWidth});old['marginRight']=0;$.swap(el,old,function(){oWidth2=el.offsetWidth});return oWidth2-oWidth}return $jc.intval($.css(el,p))},intval:function(v){v=parseInt(v);return isNaN(v)?0:v}})})(jQuery);

var preventDefault = true;
// only on touch devices
if (isTouchDevice) {

/*
 * iScroll v4.1.9 ~ Copyright (c) 2011 Matteo Spinelli, http://cubiq.org
 * Released under MIT license, http://cubiq.org/license
 */
(function(){var p=Math,t=(/webkit/i).test(navigator.appVersion)?"webkit":(/firefox/i).test(navigator.userAgent)?"Moz":"opera" in window?"O":"",j="WebKitCSSMatrix" in window&&"m11" in new WebKitCSSMatrix(),s="ontouchstart" in window,e=t+"Transform" in document.documentElement.style,u=(/android/gi).test(navigator.appVersion),h=(/iphone|ipad/gi).test(navigator.appVersion),c=(/playbook/gi).test(navigator.appVersion),f=h||c,l=(function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(m){return setTimeout(m,1)}})(),k=(function(){return window.cancelRequestAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout})(),g="onorientationchange" in window?"orientationchange":"resize",b=s?"touchstart":"mousedown",n=s?"touchmove":"mousemove",d=s?"touchend":"mouseup",r=s?"touchcancel":"mouseup",o=t=="Moz"?"DOMMouseScroll":"mousewheel",a="translate"+(j?"3d(":"("),i=j?",0)":")",q=function(w,m){var x=this,y=document,v;x.wrapper=typeof w=="object"?w:y.getElementById(w);x.wrapper.style.overflow="hidden";x.scroller=x.wrapper.children[0];x.options={hScroll:true,vScroll:true,bounce:true,bounceLock:false,momentum:true,lockDirection:true,useTransform:true,useTransition:false,topOffset:0,checkDOMChanges:false,hScrollbar:true,vScrollbar:true,fixedScrollbar:u,hideScrollbar:h,fadeScrollbar:h&&j,scrollbarClass:"",zoom:false,zoomMin:1,zoomMax:4,doubleTapZoom:2,wheelAction:"scroll",snap:false,snapThreshold:1,onRefresh:null,onBeforeScrollStart:function(z){if(preventDefault)z.preventDefault()},onScrollStart:null,onBeforeScrollMove:null,onScrollMove:null,onBeforeScrollEnd:null,onScrollEnd:null,onTouchEnd:null,onDestroy:null,onZoomStart:null,onZoom:null,onZoomEnd:null};for(v in m){x.options[v]=m[v]}x.options.useTransform=e?x.options.useTransform:false;x.options.hScrollbar=x.options.hScroll&&x.options.hScrollbar;x.options.vScrollbar=x.options.vScroll&&x.options.vScrollbar;x.options.zoom=x.options.useTransform&&x.options.zoom;x.options.useTransition=f&&x.options.useTransition;x.scroller.style[t+"TransitionProperty"]=x.options.useTransform?"-"+t.toLowerCase()+"-transform":"top left";x.scroller.style[t+"TransitionDuration"]="0";x.scroller.style[t+"TransformOrigin"]="0 0";if(x.options.useTransition){x.scroller.style[t+"TransitionTimingFunction"]="cubic-bezier(0.33,0.66,0.66,1)"}if(x.options.useTransform){x.scroller.style[t+"Transform"]=a+"0,0"+i}else{x.scroller.style.cssText+=";position:absolute;top:0;left:0"}if(x.options.useTransition){x.options.fixedScrollbar=true}x.refresh();x._bind(g,window);x._bind(b);if(!s){x._bind("mouseout",x.wrapper);x._bind(o)}if(x.options.checkDOMChanges){x.checkDOMTime=setInterval(function(){x._checkDOMChanges()},500)}};q.prototype={enabled:true,x:0,y:0,steps:[],scale:1,currPageX:0,currPageY:0,pagesX:[],pagesY:[],aniTime:null,wheelZoomCount:0,handleEvent:function(v){var m=this;switch(v.type){case b:if(!s&&v.button!==0){return}m._start(v);break;case n:m._move(v);break;case d:case r:m._end(v);break;case g:m._resize();break;case o:m._wheel(v);break;case"mouseout":m._mouseout(v);break;case"webkitTransitionEnd":m._transitionEnd(v);break}},_checkDOMChanges:function(){if(this.moved||this.zoomed||this.animating||(this.scrollerW==this.scroller.offsetWidth*this.scale&&this.scrollerH==this.scroller.offsetHeight*this.scale)){return}this.refresh()},_scrollbar:function(m){var w=this,x=document,v;if(!w[m+"Scrollbar"]){if(w[m+"ScrollbarWrapper"]){if(e){w[m+"ScrollbarIndicator"].style[t+"Transform"]=""}w[m+"ScrollbarWrapper"].parentNode.removeChild(w[m+"ScrollbarWrapper"]);w[m+"ScrollbarWrapper"]=null;w[m+"ScrollbarIndicator"]=null}return}if(!w[m+"ScrollbarWrapper"]){v=x.createElement("div");if(w.options.scrollbarClass){v.className=w.options.scrollbarClass+m.toUpperCase()}else{v.style.cssText="position:absolute;z-index:100;"+(m=="h"?"height:7px;bottom:1px;left:2px;right:"+(w.vScrollbar?"7":"2")+"px":"width:7px;bottom:"+(w.hScrollbar?"7":"2")+"px;top:2px;right:1px")}v.style.cssText+=";pointer-events:none;-"+t+"-transition-property:opacity;-"+t+"-transition-duration:"+(w.options.fadeScrollbar?"350ms":"0")+";overflow:hidden;opacity:"+(w.options.hideScrollbar?"0":"1");w.wrapper.appendChild(v);w[m+"ScrollbarWrapper"]=v;v=x.createElement("div");if(!w.options.scrollbarClass){v.style.cssText="position:absolute;z-index:100;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);-"+t+"-background-clip:padding-box;-"+t+"-box-sizing:border-box;"+(m=="h"?"height:100%":"width:100%")+";-"+t+"-border-radius:3px;border-radius:3px"}v.style.cssText+=";pointer-events:none;-"+t+"-transition-property:-"+t+"-transform;-"+t+"-transition-timing-function:cubic-bezier(0.33,0.66,0.66,1);-"+t+"-transition-duration:0;-"+t+"-transform:"+a+"0,0"+i;if(w.options.useTransition){v.style.cssText+=";-"+t+"-transition-timing-function:cubic-bezier(0.33,0.66,0.66,1)"}w[m+"ScrollbarWrapper"].appendChild(v);w[m+"ScrollbarIndicator"]=v}if(m=="h"){w.hScrollbarSize=w.hScrollbarWrapper.clientWidth;w.hScrollbarIndicatorSize=p.max(p.round(w.hScrollbarSize*w.hScrollbarSize/w.scrollerW),8);w.hScrollbarIndicator.style.width=w.hScrollbarIndicatorSize+"px";w.hScrollbarMaxScroll=w.hScrollbarSize-w.hScrollbarIndicatorSize;w.hScrollbarProp=w.hScrollbarMaxScroll/w.maxScrollX}else{w.vScrollbarSize=w.vScrollbarWrapper.clientHeight;w.vScrollbarIndicatorSize=p.max(p.round(w.vScrollbarSize*w.vScrollbarSize/w.scrollerH),8);w.vScrollbarIndicator.style.height=w.vScrollbarIndicatorSize+"px";w.vScrollbarMaxScroll=w.vScrollbarSize-w.vScrollbarIndicatorSize;w.vScrollbarProp=w.vScrollbarMaxScroll/w.maxScrollY}w._scrollbarPos(m,true)},_resize:function(){var m=this;setTimeout(function(){m.refresh()},u?200:0)},_pos:function(m,v){m=this.hScroll?m:0;v=this.vScroll?v:0;if(this.options.useTransform){this.scroller.style[t+"Transform"]=a+m+"px,"+v+"px"+i+" scale("+this.scale+")"}else{m=p.round(m);v=p.round(v);this.scroller.style.left=m+"px";this.scroller.style.top=v+"px"}this.x=m;this.y=v;this._scrollbarPos("h");this._scrollbarPos("v")},_scrollbarPos:function(m,x){var w=this,y=m=="h"?w.x:w.y,v;if(!w[m+"Scrollbar"]){return}y=w[m+"ScrollbarProp"]*y;if(y<0){if(!w.options.fixedScrollbar){v=w[m+"ScrollbarIndicatorSize"]+p.round(y*3);if(v<8){v=8}w[m+"ScrollbarIndicator"].style[m=="h"?"width":"height"]=v+"px"}y=0}else{if(y>w[m+"ScrollbarMaxScroll"]){if(!w.options.fixedScrollbar){v=w[m+"ScrollbarIndicatorSize"]-p.round((y-w[m+"ScrollbarMaxScroll"])*3);if(v<8){v=8}w[m+"ScrollbarIndicator"].style[m=="h"?"width":"height"]=v+"px";y=w[m+"ScrollbarMaxScroll"]+(w[m+"ScrollbarIndicatorSize"]-v)}else{y=w[m+"ScrollbarMaxScroll"]}}}w[m+"ScrollbarWrapper"].style[t+"TransitionDelay"]="0";w[m+"ScrollbarWrapper"].style.opacity=x&&w.options.hideScrollbar?"0":"1";w[m+"ScrollbarIndicator"].style[t+"Transform"]=a+(m=="h"?y+"px,0":"0,"+y+"px")+i},_start:function(C){var B=this,v=s?C.touches[0]:C,w,m,D,A,z;if(!B.enabled){return}if(B.options.onBeforeScrollStart){B.options.onBeforeScrollStart.call(B,C)}if(B.options.useTransition||B.options.zoom){B._transitionTime(0)}B.moved=false;B.animating=false;B.zoomed=false;B.distX=0;B.distY=0;B.absDistX=0;B.absDistY=0;B.dirX=0;B.dirY=0;if(B.options.zoom&&s&&C.touches.length>1){A=p.abs(C.touches[0].pageX-C.touches[1].pageX);z=p.abs(C.touches[0].pageY-C.touches[1].pageY);B.touchesDistStart=p.sqrt(A*A+z*z);B.originX=p.abs(C.touches[0].pageX+C.touches[1].pageX-B.wrapperOffsetLeft*2)/2-B.x;B.originY=p.abs(C.touches[0].pageY+C.touches[1].pageY-B.wrapperOffsetTop*2)/2-B.y;if(B.options.onZoomStart){B.options.onZoomStart.call(B,C)}}if(B.options.momentum){if(B.options.useTransform){w=getComputedStyle(B.scroller,null)[t+"Transform"].replace(/[^0-9-.,]/g,"").split(",");m=w[4]*1;D=w[5]*1}else{m=getComputedStyle(B.scroller,null).left.replace(/[^0-9-]/g,"")*1;D=getComputedStyle(B.scroller,null).top.replace(/[^0-9-]/g,"")*1}if(m!=B.x||D!=B.y){if(B.options.useTransition){B._unbind("webkitTransitionEnd")}else{k(B.aniTime)}B.steps=[];B._pos(m,D)}}B.absStartX=B.x;B.absStartY=B.y;B.startX=B.x;B.startY=B.y;B.pointX=v.pageX;B.pointY=v.pageY;B.startTime=C.timeStamp||Date.now();if(B.options.onScrollStart){B.options.onScrollStart.call(B,C)}B._bind(n);B._bind(d);B._bind(r)},_move:function(C){var A=this,D=s?C.touches[0]:C,y=D.pageX-A.pointX,w=D.pageY-A.pointY,m=A.x+y,E=A.y+w,z,x,v,B=C.timeStamp||Date.now();if(A.options.onBeforeScrollMove){A.options.onBeforeScrollMove.call(A,C)}if(A.options.zoom&&s&&C.touches.length>1){z=p.abs(C.touches[0].pageX-C.touches[1].pageX);x=p.abs(C.touches[0].pageY-C.touches[1].pageY);A.touchesDist=p.sqrt(z*z+x*x);A.zoomed=true;v=1/A.touchesDistStart*A.touchesDist*this.scale;if(v<A.options.zoomMin){v=0.5*A.options.zoomMin*Math.pow(2,v/A.options.zoomMin)}else{if(v>A.options.zoomMax){v=2*A.options.zoomMax*Math.pow(0.5,A.options.zoomMax/v)}}A.lastScale=v/this.scale;m=this.originX-this.originX*A.lastScale+this.x,E=this.originY-this.originY*A.lastScale+this.y;this.scroller.style[t+"Transform"]=a+m+"px,"+E+"px"+i+" scale("+v+")";if(A.options.onZoom){A.options.onZoom.call(A,C)}return}A.pointX=D.pageX;A.pointY=D.pageY;if(m>0||m<A.maxScrollX){m=A.options.bounce?A.x+(y/2):m>=0||A.maxScrollX>=0?0:A.maxScrollX}if(E>A.minScrollY||E<A.maxScrollY){E=A.options.bounce?A.y+(w/2):E>=A.minScrollY||A.maxScrollY>=0?A.minScrollY:A.maxScrollY}if(A.absDistX<6&&A.absDistY<6){A.distX+=y;A.distY+=w;A.absDistX=p.abs(A.distX);A.absDistY=p.abs(A.distY);return}if(A.options.lockDirection){if(A.absDistX>A.absDistY+5){E=A.y;w=0}else{if(A.absDistY>A.absDistX+5){m=A.x;y=0}}}A.moved=true;A._pos(m,E);A.dirX=y>0?-1:y<0?1:0;A.dirY=w>0?-1:w<0?1:0;if(B-A.startTime>300){A.startTime=B;A.startX=A.x;A.startY=A.y}if(A.options.onScrollMove){A.options.onScrollMove.call(A,C)}},_end:function(C){if(s&&C.touches.length!=0){return}var A=this,I=s?C.changedTouches[0]:C,D,H,w={dist:0,time:0},m={dist:0,time:0},z=(C.timeStamp||Date.now())-A.startTime,E=A.x,B=A.y,G,F,v,y,x;A._unbind(n);A._unbind(d);A._unbind(r);if(A.options.onBeforeScrollEnd){A.options.onBeforeScrollEnd.call(A,C)}if(A.zoomed){x=A.scale*A.lastScale;x=Math.max(A.options.zoomMin,x);x=Math.min(A.options.zoomMax,x);A.lastScale=x/A.scale;A.scale=x;A.x=A.originX-A.originX*A.lastScale+A.x;A.y=A.originY-A.originY*A.lastScale+A.y;A.scroller.style[t+"TransitionDuration"]="200ms";A.scroller.style[t+"Transform"]=a+A.x+"px,"+A.y+"px"+i+" scale("+A.scale+")";A.zoomed=false;A.refresh();if(A.options.onZoomEnd){A.options.onZoomEnd.call(A,C)}return}if(!A.moved){if(s){if(A.doubleTapTimer&&A.options.zoom){clearTimeout(A.doubleTapTimer);A.doubleTapTimer=null;if(A.options.onZoomStart){A.options.onZoomStart.call(A,C)}A.zoom(A.pointX,A.pointY,A.scale==1?A.options.doubleTapZoom:1);if(A.options.onZoomEnd){setTimeout(function(){A.options.onZoomEnd.call(A,C)},200)}}else{A.doubleTapTimer=setTimeout(function(){A.doubleTapTimer=null;D=I.target;while(D.nodeType!=1){D=D.parentNode}if(D.tagName!="SELECT"&&D.tagName!="INPUT"&&D.tagName!="TEXTAREA"){H=document.createEvent("MouseEvents");H.initMouseEvent("click",true,true,C.view,1,I.screenX,I.screenY,I.clientX,I.clientY,C.ctrlKey,C.altKey,C.shiftKey,C.metaKey,0,null);H._fake=true;D.dispatchEvent(H)}},A.options.zoom?250:0)}}A._resetPos(200);if(A.options.onTouchEnd){A.options.onTouchEnd.call(A,C)}return}if(z<300&&A.options.momentum){w=E?A._momentum(E-A.startX,z,-A.x,A.scrollerW-A.wrapperW+A.x,A.options.bounce?A.wrapperW:0):w;m=B?A._momentum(B-A.startY,z,-A.y,(A.maxScrollY<0?A.scrollerH-A.wrapperH+A.y-A.minScrollY:0),A.options.bounce?A.wrapperH:0):m;E=A.x+w.dist;B=A.y+m.dist;if((A.x>0&&E>0)||(A.x<A.maxScrollX&&E<A.maxScrollX)){w={dist:0,time:0}}if((A.y>A.minScrollY&&B>A.minScrollY)||(A.y<A.maxScrollY&&B<A.maxScrollY)){m={dist:0,time:0}}}if(w.dist||m.dist){v=p.max(p.max(w.time,m.time),10);if(A.options.snap){G=E-A.absStartX;F=B-A.absStartY;if(p.abs(G)<A.options.snapThreshold&&p.abs(F)<A.options.snapThreshold){A.scrollTo(A.absStartX,A.absStartY,200)}else{y=A._snap(E,B);E=y.x;B=y.y;v=p.max(y.time,v)}}A.scrollTo(p.round(E),p.round(B),v);if(A.options.onTouchEnd){A.options.onTouchEnd.call(A,C)}return}if(A.options.snap){G=E-A.absStartX;F=B-A.absStartY;if(p.abs(G)<A.options.snapThreshold&&p.abs(F)<A.options.snapThreshold){A.scrollTo(A.absStartX,A.absStartY,200)}else{y=A._snap(A.x,A.y);if(y.x!=A.x||y.y!=A.y){A.scrollTo(y.x,y.y,y.time)}}if(A.options.onTouchEnd){A.options.onTouchEnd.call(A,C)}return}A._resetPos(200);if(A.options.onTouchEnd){A.options.onTouchEnd.call(A,C)}},_resetPos:function(w){var m=this,x=m.x>=0?0:m.x<m.maxScrollX?m.maxScrollX:m.x,v=m.y>=m.minScrollY||m.maxScrollY>0?m.minScrollY:m.y<m.maxScrollY?m.maxScrollY:m.y;if(x==m.x&&v==m.y){if(m.moved){m.moved=false;if(m.options.onScrollEnd){m.options.onScrollEnd.call(m)}}if(m.hScrollbar&&m.options.hideScrollbar){if(t=="webkit"){m.hScrollbarWrapper.style[t+"TransitionDelay"]="300ms"}m.hScrollbarWrapper.style.opacity="0"}if(m.vScrollbar&&m.options.hideScrollbar){if(t=="webkit"){m.vScrollbarWrapper.style[t+"TransitionDelay"]="300ms"}m.vScrollbarWrapper.style.opacity="0"}return}m.scrollTo(x,v,w||0)},_wheel:function(z){var x=this,y,w,v,m,A;if("wheelDeltaX" in z){y=z.wheelDeltaX/12;w=z.wheelDeltaY/12}else{if("detail" in z){y=w=-z.detail*3}else{y=w=-z.wheelDelta}}if(x.options.wheelAction=="zoom"){A=x.scale*Math.pow(2,1/3*(w?w/Math.abs(w):0));if(A<x.options.zoomMin){A=x.options.zoomMin}if(A>x.options.zoomMax){A=x.options.zoomMax}if(A!=x.scale){if(!x.wheelZoomCount&&x.options.onZoomStart){x.options.onZoomStart.call(x,z)}x.wheelZoomCount++;x.zoom(z.pageX,z.pageY,A,400);setTimeout(function(){x.wheelZoomCount--;if(!x.wheelZoomCount&&x.options.onZoomEnd){x.options.onZoomEnd.call(x,z)}},400)}return}v=x.x+y;m=x.y+w;if(v>0){v=0}else{if(v<x.maxScrollX){v=x.maxScrollX}}if(m>x.minScrollY){m=x.minScrollY}else{if(m<x.maxScrollY){m=x.maxScrollY}}x.scrollTo(v,m,0)},_mouseout:function(v){var m=v.relatedTarget;if(!m){this._end(v);return}while(m=m.parentNode){if(m==this.wrapper){return}}this._end(v)},_transitionEnd:function(v){var m=this;if(v.target!=m.scroller){return}m._unbind("webkitTransitionEnd");m._startAni()},_startAni:function(){var A=this,v=A.x,m=A.y,y=Date.now(),z,x;if(A.animating){return}if(!A.steps.length){A._resetPos(400);return}z=A.steps.shift();if(z.x==v&&z.y==m){z.time=0}A.animating=true;A.moved=true;if(A.options.useTransition){A._transitionTime(z.time);A._pos(z.x,z.y);A.animating=false;if(z.time){A._bind("webkitTransitionEnd")}else{A._resetPos(0)}return}(function w(){var B=Date.now(),D,C;if(B>=y+z.time){A._pos(z.x,z.y);A.animating=false;if(A.options.onAnimationEnd){A.options.onAnimationEnd.call(A)}A._startAni();return}B=(B-y)/z.time-1;x=p.sqrt(1-B*B);D=(z.x-v)*x+v;C=(z.y-m)*x+m;A._pos(D,C);if(A.animating){A.aniTime=l(w)}})()},_transitionTime:function(m){m+="ms";this.scroller.style[t+"TransitionDuration"]=m;if(this.hScrollbar){this.hScrollbarIndicator.style[t+"TransitionDuration"]=m}if(this.vScrollbar){this.vScrollbarIndicator.style[t+"TransitionDuration"]=m}},_momentum:function(B,v,z,m,D){var A=0.0006,w=p.abs(B)/v,x=(w*w)/(2*A),C=0,y=0;if(B>0&&x>z){y=D/(6/(x/w*A));z=z+y;w=w*z/x;x=z}else{if(B<0&&x>m){y=D/(6/(x/w*A));m=m+y;w=w*m/x;x=m}}x=x*(B<0?-1:1);C=w/A;return{dist:x,time:p.round(C)}},_offset:function(m){var w=-m.offsetLeft,v=-m.offsetTop;while(m=m.offsetParent){w-=m.offsetLeft;v-=m.offsetTop}if(m!=this.wrapper){w*=this.scale;v*=this.scale}return{left:w,top:v}},_snap:function(E,D){var B=this,A,z,C,w,v,m;C=B.pagesX.length-1;for(A=0,z=B.pagesX.length;A<z;A++){if(E>=B.pagesX[A]){C=A;break}}if(C==B.currPageX&&C>0&&B.dirX<0){C--}E=B.pagesX[C];v=p.abs(E-B.pagesX[B.currPageX]);v=v?p.abs(B.x-E)/v*500:0;B.currPageX=C;C=B.pagesY.length-1;for(A=0;A<C;A++){if(D>=B.pagesY[A]){C=A;break}}if(C==B.currPageY&&C>0&&B.dirY<0){C--}D=B.pagesY[C];m=p.abs(D-B.pagesY[B.currPageY]);m=m?p.abs(B.y-D)/m*500:0;B.currPageY=C;w=p.round(p.max(v,m))||200;return{x:E,y:D,time:w}},_bind:function(w,v,m){(v||this.scroller).addEventListener(w,this,!!m)},_unbind:function(w,v,m){(v||this.scroller).removeEventListener(w,this,!!m)},destroy:function(){var m=this;m.scroller.style[t+"Transform"]="";m.hScrollbar=false;m.vScrollbar=false;m._scrollbar("h");m._scrollbar("v");m._unbind(g,window);m._unbind(b);m._unbind(n);m._unbind(d);m._unbind(r);if(m.options.hasTouch){m._unbind("mouseout",m.wrapper);m._unbind(o)}if(m.options.useTransition){m._unbind("webkitTransitionEnd")}if(m.options.checkDOMChanges){clearInterval(m.checkDOMTime)}if(m.options.onDestroy){m.options.onDestroy.call(m)}},refresh:function(){var x=this,z,w,m,v,A=0,y=0;if(x.scale<x.options.zoomMin){x.scale=x.options.zoomMin}x.wrapperW=x.wrapper.clientWidth||1;x.wrapperH=x.wrapper.clientHeight||1;x.minScrollY=-x.options.topOffset||0;x.scrollerW=p.round(x.scroller.offsetWidth*x.scale);x.scrollerH=p.round((x.scroller.offsetHeight+x.minScrollY)*x.scale);x.maxScrollX=x.wrapperW-x.scrollerW;x.maxScrollY=x.wrapperH-x.scrollerH+x.minScrollY;x.dirX=0;x.dirY=0;if(x.options.onRefresh){x.options.onRefresh.call(x)}x.hScroll=x.options.hScroll&&x.maxScrollX<0;x.vScroll=x.options.vScroll&&(!x.options.bounceLock&&!x.hScroll||x.scrollerH>x.wrapperH);x.hScrollbar=x.hScroll&&x.options.hScrollbar;x.vScrollbar=x.vScroll&&x.options.vScrollbar&&x.scrollerH>x.wrapperH;z=x._offset(x.wrapper);x.wrapperOffsetLeft=-z.left;x.wrapperOffsetTop=-z.top;if(typeof x.options.snap=="string"){x.pagesX=[];x.pagesY=[];v=x.scroller.querySelectorAll(x.options.snap);for(w=0,m=v.length;w<m;w++){A=x._offset(v[w]);A.left+=x.wrapperOffsetLeft;A.top+=x.wrapperOffsetTop;x.pagesX[w]=A.left<x.maxScrollX?x.maxScrollX:A.left*x.scale;x.pagesY[w]=A.top<x.maxScrollY?x.maxScrollY:A.top*x.scale}}else{if(x.options.snap){x.pagesX=[];while(A>=x.maxScrollX){x.pagesX[y]=A;A=A-x.wrapperW;y++}if(x.maxScrollX%x.wrapperW){x.pagesX[x.pagesX.length]=x.maxScrollX-x.pagesX[x.pagesX.length-1]+x.pagesX[x.pagesX.length-1]}A=0;y=0;x.pagesY=[];while(A>=x.maxScrollY){x.pagesY[y]=A;A=A-x.wrapperH;y++}if(x.maxScrollY%x.wrapperH){x.pagesY[x.pagesY.length]=x.maxScrollY-x.pagesY[x.pagesY.length-1]+x.pagesY[x.pagesY.length-1]}}}x._scrollbar("h");x._scrollbar("v");if(!x.zoomed){x.scroller.style[t+"TransitionDuration"]="0";x._resetPos(200)}},scrollTo:function(m,D,C,B){var A=this,z=m,w,v;A.stop();if(!z.length){z=[{x:m,y:D,time:C,relative:B}]}for(w=0,v=z.length;w<v;w++){if(z[w].relative){z[w].x=A.x-z[w].x;z[w].y=A.y-z[w].y}A.steps.push({x:z[w].x,y:z[w].y,time:z[w].time||0})}A._startAni()},scrollToElement:function(m,w){var v=this,x;m=m.nodeType?m:v.scroller.querySelector(m);if(!m){return}x=v._offset(m);x.left+=v.wrapperOffsetLeft;x.top+=v.wrapperOffsetTop;x.left=x.left>0?0:x.left<v.maxScrollX?v.maxScrollX:x.left;x.top=x.top>v.minScrollY?v.minScrollY:x.top<v.maxScrollY?v.maxScrollY:x.top;w=w===undefined?p.max(p.abs(x.left)*2,p.abs(x.top)*2):w;v.scrollTo(x.left,x.top,w)},scrollToPage:function(w,v,A){var z=this,m,B;if(z.options.onScrollStart){z.options.onScrollStart.call(z)}if(z.options.snap){w=w=="next"?z.currPageX+1:w=="prev"?z.currPageX-1:w;v=v=="next"?z.currPageY+1:v=="prev"?z.currPageY-1:v;w=w<0?0:w>z.pagesX.length-1?z.pagesX.length-1:w;v=v<0?0:v>z.pagesY.length-1?z.pagesY.length-1:v;z.currPageX=w;z.currPageY=v;m=z.pagesX[w];B=z.pagesY[v]}else{m=-z.wrapperW*w;B=-z.wrapperH*v;if(m<z.maxScrollX){m=z.maxScrollX}if(B<z.maxScrollY){B=z.maxScrollY}}z.scrollTo(m,B,A||400)},disable:function(){this.stop();this._resetPos(0);this.enabled=false;this._unbind(n);this._unbind(d);this._unbind(r)},enable:function(){this.enabled=true},stop:function(){if(this.options.useTransition){this._unbind("webkitTransitionEnd")}else{k(this.aniTime)}this.steps=[];this.moved=false;this.animating=false},zoom:function(m,B,A,z){var v=this,w=A/v.scale;if(!v.options.useTransform){return}v.zoomed=true;z=z===undefined?200:z;m=m-v.wrapperOffsetLeft-v.x;B=B-v.wrapperOffsetTop-v.y;v.x=m-m*w+v.x;v.y=B-B*w+v.y;v.scale=A;v.refresh();v.x=v.x>0?0:v.x<v.maxScrollX?v.maxScrollX:v.x;v.y=v.y>v.minScrollY?v.minScrollY:v.y<v.maxScrollY?v.maxScrollY:v.y;v.scroller.style[t+"TransitionDuration"]=z+"ms";v.scroller.style[t+"Transform"]=a+v.x+"px,"+v.y+"px"+i+" scale("+A+")";v.zoomed=false},isReady:function(){return !this.moved&&!this.zoomed&&!this.animating}};if(typeof exports!=="undefined"){exports.iScroll=q}else{window.iScroll=q}})();

}


/*
 * chili-1.7.pack.js
 */
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('8={3b:"1.6",2o:"1B.1Y,1B.23,1B.2e",2i:"",2H:1a,12:"",2C:1a,Z:"",2a:\'<H V="$0">$$</H>\',R:"&#F;",1j:"&#F;&#F;&#F;&#F;",1f:"&#F;<1W/>",3c:5(){9 $(y).39("1k")[0]},I:{},N:{}};(5($){$(5(){5 1J(l,a){5 2I(A,h){4 3=(1v h.3=="1h")?h.3:h.3.1w;k.1m({A:A,3:"("+3+")",u:1+(3.c(/\\\\./g,"%").c(/\\[.*?\\]/g,"%").3a(/\\((?!\\?)/g)||[]).u,z:(h.z)?h.z:8.2a})}5 2z(){4 1E=0;4 1x=x 2A;Q(4 i=0;i<k.u;i++){4 3=k[i].3;3=3.c(/\\\\\\\\|\\\\(\\d+)/g,5(m,1F){9!1F?m:"\\\\"+(1E+1+1t(1F))});1x.1m(3);1E+=k[i].u}4 1w=1x.3d("|");9 x 1u(1w,(a.3g)?"2j":"g")}5 1S(o){9 o.c(/&/g,"&3h;").c(/</g,"&3e;")}5 1R(o){9 o.c(/ +/g,5(1X){9 1X.c(/ /g,R)})}5 G(o){o=1S(o);7(R){o=1R(o)}9 o}5 2m(2E){4 i=0;4 j=1;4 h;19(h=k[i++]){4 1b=D;7(1b[j]){4 1U=/(\\\\\\$)|(?:\\$\\$)|(?:\\$(\\d+))/g;4 z=h.z.c(1U,5(m,1V,K){4 3f=\'\';7(1V){9"$"}v 7(!K){9 G(1b[j])}v 7(K=="0"){9 h.A}v{9 G(1b[j+1t(K,10)])}});4 1A=D[D.u-2];4 2h=D[D.u-1];4 2G=2h.2v(11,1A);11=1A+2E.u;14+=G(2G)+z;9 z}v{j+=h.u}}}4 R=8.R;4 k=x 2A;Q(4 A 2r a.k){2I(A,a.k[A])}4 14="";4 11=0;l.c(2z(),2m);4 2y=l.2v(11,l.u);14+=G(2y);9 14}5 2B(X){7(!8.N[X]){4 Y=\'<Y 32="1p" 33="p/2u"\'+\' 30="\'+X+\'">\';8.N[X]=1H;7($.31.34){4 W=J.1L(Y);4 $W=$(W);$("2d").1O($W)}v{$("2d").1O(Y)}}}5 1q(e,a){4 l=e&&e.1g&&e.1g[0]&&e.1g[0].37;7(!l)l="";l=l.c(/\\r\\n?/g,"\\n");4 C=1J(l,a);7(8.1j){C=C.c(/\\t/g,8.1j)}7(8.1f){C=C.c(/\\n/g,8.1f)}$(e).38(C)}5 1o(q,13){4 1l={12:8.12,2x:q+".1d",Z:8.Z,2w:q+".2u"};4 B;7(13&&1v 13=="2l")B=$.35(1l,13);v B=1l;9{a:B.12+B.2x,1p:B.Z+B.2w}}7($.2q)$.2q({36:"2l.15"});4 2n=x 1u("\\\\b"+8.2i+"\\\\b","2j");4 1e=[];$(8.2o).2D(5(){4 e=y;4 1n=$(e).3i("V");7(!1n){9}4 q=$.3u(1n.c(2n,""));7(\'\'!=q){1e.1m(e);4 f=1o(q,e.15);7(8.2H||e.15){7(!8.N[f.a]){1D{8.N[f.a]=1H;$.3v(f.a,5(M){M.f=f.a;8.I[f.a]=M;7(8.2C){2B(f.1p)}$("."+q).2D(5(){4 f=1o(q,y.15);7(M.f==f.a){1q(y,M)}})})}1I(3s){3t("a 3w Q: "+q+\'@\'+3z)}}}v{4 a=8.I[f.a];7(a){1q(e,a)}}}});7(J.1i&&J.1i.29){5 22(p){7(\'\'==p){9""}1z{4 16=(x 3A()).2k()}19(p.3x(16)>-1);p=p.c(/\\<1W[^>]*?\\>/3y,16);4 e=J.1L(\'<1k>\');e.3l=p;p=e.3m.c(x 1u(16,"g"),\'\\r\\n\');9 p}4 T="";4 18=1G;$(1e).3j().G("1k").U("2c",5(){18=y}).U("1M",5(){7(18==y)T=J.1i.29().3k});$("3n").U("3q",5(){7(\'\'!=T){2p.3r.3o(\'3p\',22(T));2V.2R=1a}}).U("2c",5(){T=""}).U("1M",5(){18=1G})}})})(1Z);8.I["1Y.1d"]={k:{2M:{3:/\\/\\*[^*]*\\*+(?:[^\\/][^*]*\\*+)*\\//},25:{3:/\\<!--(?:.|\\n)*?--\\>/},2f:{3:/\\/\\/.*/},2P:{3:/2L|2T|2J|2O|2N|2X|2K|2Z|2U|2S|2W|2Y|2Q|51|c-50/},53:{3:/\\/[^\\/\\\\\\n]*(?:\\\\.[^\\/\\\\\\n]*)*\\/[52]*/},1h:{3:/(?:\\\'[^\\\'\\\\\\n]*(?:\\\\.[^\\\'\\\\\\n]*)*\\\')|(?:\\"[^\\"\\\\\\n]*(?:\\\\.[^\\"\\\\\\n]*)*\\")/},27:{3:/\\b[+-]?(?:\\d*\\.?\\d+|\\d+\\.?\\d*)(?:[1r][+-]?\\d+)?\\b/},4X:{3:/\\b(D|1N|1K|1I|2t|2s|4W|1z|v|1a|Q|5|7|2r|4Z|x|1G|9|1Q|y|1H|1D|1v|4|4Y|19|59)\\b/},1y:{3:/\\b(58|2k|2p|5b|5a|55|J|54|57|1t|56|4L|4K|4N|4M|4H|4G|4J)\\b/},1C:{3:/(?:\\<\\w+)|(?:\\>)|(?:\\<\\/\\w+\\>)|(?:\\/\\>)/},26:{3:/\\s+\\w+(?=\\s*=)/},20:{3:/([\\"\\\'])(?:(?:[^\\1\\\\\\r\\n]*?(?:\\1\\1|\\\\.))*[^\\1\\\\\\r\\n]*?)\\1/},21:{3:/&[\\w#]+?;/},4I:{3:/(\\$|1Z)/}}};8.I["23.1d"]={k:{25:{3:/\\<!--(?:.|\\n)*?--\\>/},1h:{3:/(?:\\\'[^\\\'\\\\\\n]*(?:\\\\.[^\\\'\\\\\\n]*)*\\\')|(?:\\"[^\\"\\\\\\n]*(?:\\\\.[^\\"\\\\\\n]*)*\\")/},27:{3:/\\b[+-]?(?:\\d*\\.?\\d+|\\d+\\.?\\d*)(?:[1r][+-]?\\d+)?\\b/},1C:{3:/(?:\\<\\w+)|(?:\\>)|(?:\\<\\/\\w+\\>)|(?:\\/\\>)/},26:{3:/\\s+\\w+(?=\\s*=)/},20:{3:/([\\"\\\'])(?:(?:[^\\1\\\\\\r\\n]*?(?:\\1\\1|\\\\.))*[^\\1\\\\\\r\\n]*?)\\1/},21:{3:/&[\\w#]+?;/}}};8.I["2e.1d"]={k:{4S:{3:/\\/\\*[^*]*\\*+([^\\/][^*]*\\*+)*\\//},2f:{3:/(?:\\/\\/.*)|(?:[^\\\\]\\#.*)/},4V:{3:/\\\'[^\\\'\\\\]*(?:\\\\.[^\\\'\\\\]*)*\\\'/},4U:{3:/\\"[^\\"\\\\]*(?:\\\\.[^\\"\\\\]*)*\\"/},4P:{3:/\\b(?:[4O][2b][1s][1s]|[4R][4Q][2b][1P]|[5c][5v][1s][5u][1P])\\b/},5x:{3:/\\b[+-]?(\\d*\\.?\\d+|\\d+\\.?\\d*)([1r][+-]?\\d+)?\\b/},5y:{3:/\\b(?:5z|5w(?:5A|5E(?:5F(?:17|1c)|5G(?:17|1c))|17|1T|5B|5C|5D(?:17|1T|1c)|1c)|P(?:5h(?:5k|5j)|5e(?:5d|5g(?:5f|5l)|5r|E(?:5t|5s)|5n(?:5m|5p)|L(?:3X|3W)|O(?:S|3Y(?:3T|3S|3V))|3U|S(?:44|47|46)|41))|40)\\b/},1y:{3:/(?:\\$43|\\$42|\\$3R|\\$3G|\\$3F|\\$3I|\\$3H|\\$3C|\\$3B|\\$3D)\\b/},28:{3:/\\b(?:3O|3N|3P|3K|3J|3M|3L|48|4v|1N|1K|1I|4u|V|4x|4w|2t|4r|2s|4q|1z|4t|v|4s|4D|4C|4F|4E|4z|4y|4B|4A|4p|4d|2F|2F|4g|Q|4f|5|1y|7|4a|4m|4l|4o|4i|4k|x|4j|4h|4n|4b|4c|49|4e|3Q|3E|9|45|1Q|y|3Z|1D|5o|5q|4|19|5i)\\b/},2g:{3:/\\$(\\w+)/,z:\'<H V="28">$</H><H V="2g">$1</H>\'},1C:{3:/(?:\\<\\?[24][4T][24])|(?:\\<\\?)|(?:\\?\\>)/}}}',62,353,'|||exp|var|function||if|ChiliBook|return|recipe||replace||el|path||step|||steps|ingredients|||str|text|recipeName||||length|else||new|this|replacement|stepName|settings|dish|arguments||160|filter|span|recipes|document|||recipeLoaded|required|||for|replaceSpace||insidePRE|bind|class|domLink|stylesheetPath|link|stylesheetFolder||lastIndex|recipeFolder|options|perfect|chili|newline|ERROR|downPRE|while|false|aux|WARNING|js|codes|replaceNewLine|childNodes|string|selection|replaceTab|pre|settingsDef|push|elClass|getPath|stylesheet|makeDish|eE|Ll|parseInt|RegExp|typeof|source|exps|global|do|offset|code|tag|try|prevLength|aNum|null|true|catch|cook|case|createElement|mouseup|break|append|Ee|switch|replaceSpaces|escapeHTML|NOTICE|pattern|escaped|br|spaces|mix|jQuery|avalue|entity|preformatted|xml|Pp|htcom|aname|numbers|keyword|createRange|defaultReplacement|Uu|mousedown|head|php|com|variable|input|elementClass|gi|valueOf|object|chef|selectClass|elementPath|window|metaobjects|in|default|continue|css|substring|stylesheetFile|recipeFile|lastUnmatched|knowHow|Array|checkCSS|stylesheetLoading|each|matched|extends|unmatched|recipeLoading|prepareStep|unblockUI|ajaxSubmit|silverlight|jscom|unblock|block|plugin|clearFields|returnValue|fieldValue|blockUI|formSerialize|event|resetForm|ajaxForm|clearForm|fieldSerialize|href|browser|rel|type|msie|extend|selector|data|html|next|match|version|getPRE|join|lt|bit|ignoreCase|amp|attr|parents|htmlText|innerHTML|innerText|body|setData|Text|copy|clipboardData|recipeNotAvailable|alert|trim|getJSON|unavailable|indexOf|ig|recipePath|Date|_SESSION|_SERVER|php_errormsg|require_once|_GET|_FILES|_REQUEST|_POST|__METHOD__|__LINE__|and|abstract|__FILE__|__CLASS__|__FUNCTION__|require|_ENV|END|CONT|PREFIX|START|OCALSTATEDIR|IBDIR|UTPUT_HANDLER_|throw|__COMPILER_HALT_OFFSET__|VERSION|_COOKIE|GLOBALS|API|static|YSCONFDIR|HLIB_SUFFIX|array|protected|implements|print|private|exit|public|foreach|final|or|isset|old_function|list|include_once|include|php_user_filter|interface|exception|die|declare|elseif|echo|cfunction|as|const|clone|endswitch|endif|eval|endwhile|enddeclare|empty|endforeach|endfor|isNaN|NaN|jquery|Infinity|clearTimeout|setTimeout|clearInterval|setInterval|Nn|value|Rr|Tt|mlcom|Hh|string2|string1|delete|keywords|void|instanceof|content|taconite|gim|regexp|escape|constructor|parseFloat|unescape|toString|with|prototype|element|Ff|BINDIR|HP_|PATH|CONFIG_FILE_|EAR_|xor|INSTALL_DIR|EXTENSION_DIR|SCAN_DIR|MAX|INT_|unset|SIZE|use|DATADIR|XTENSION_DIR|OL|Ss|Aa|E_|number|const1|DEFAULT_INCLUDE_PATH|ALL|PARSE|STRICT|USER_|CO|MPILE_|RE_'.split('|'),0,{}))

/*
 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
 *
 * Uses the built in easing capabilities added In jQuery 1.1
 * to offer multiple easing options
 *
 * TERMS OF USE - jQuery Easing
 * 
 * Open source under the BSD License. 
 * 
 * Copyright Â© 2008 George McGinley Smith
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification, 
 * are permitted provided that the following conditions are met:
 * 
 * Redistributions of source code must retain the above copyright notice, this list of 
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list 
 * of conditions and the following disclaimer in the documentation and/or other materials 
 * provided with the distribution.
 * 
 * Neither the name of the author nor the names of contributors may be used to endorse 
 * or promote products derived from this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
 * OF THE POSSIBILITY OF SUCH DAMAGE. 
 *
*/
jQuery.easing['jswing']=jQuery.easing['swing'];jQuery.extend(jQuery.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d)},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return jQuery.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b}});

/*
 * jQuery UI Accordion 1.6
 * 
 * Copyright (c) 2007 J�rn Zaefferer
 *
 * http://docs.jquery.com/UI/Accordion
 *
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 *
 * Revision: $Id: jquery.accordion.js 4876 2008-03-08 11:49:04Z joern.zaefferer $
 *
 * SH: I've compressed with http://www.seo-ranking-tools.de/javascript-compressor-cruncher.html. The original minified/packed version (2008-10-06) was not working.
 */
;(function($){$.ui=$.ui||{};$.fn.extend({accordion:function(options,data){var args=Array.prototype.slice.call(arguments,1);return this.each(function(){if(typeof options=="string"){var accordion=$.data(this,"ui-accordion");accordion[options].apply(accordion,args);}else if(!$(this).is(".ui-accordion"))
$.data(this,"ui-accordion",new $.ui.accordion(this,options));});},activate:function(index){return this.accordion("activate",index);}});$.ui.accordion=function(container,options){this.options=options=$.extend({},$.ui.accordion.defaults,options);this.element=container;$(container).addClass("ui-accordion");if(options.navigation){var current=$(container).find("a").filter(options.navigationFilter);if(current.length){if(current.filter(options.header).length){options.active=current;}else{options.active=current.parent().parent().prev();current.addClass("current");}}}
options.headers=$(container).find(options.header);options.active=findActive(options.headers,options.active);if(options.fillSpace){var maxHeight=$(container).parent().height();options.headers.each(function(){maxHeight-=$(this).outerHeight();});var maxPadding=0;options.headers.next().each(function(){maxPadding=Math.max(maxPadding,$(this).innerHeight()-$(this).height());}).height(maxHeight-maxPadding);}else if(options.autoheight){var maxHeight=0;options.headers.next().each(function(){maxHeight=Math.max(maxHeight,$(this).outerHeight());}).height(maxHeight);}
options.headers.not(options.active||"").next().hide();options.active.parent().andSelf().addClass(options.selectedClass);if(options.event)
$(container).bind((options.event)+".ui-accordion",clickHandler);};$.ui.accordion.prototype={activate:function(index){clickHandler.call(this.element,{target:findActive(this.options.headers,index)[0]});},enable:function(){this.options.disabled=false;},disable:function(){this.options.disabled=true;},destroy:function(){this.options.headers.next().css("display","");if(this.options.fillSpace||this.options.autoheight){this.options.headers.next().css("height","");}
$.removeData(this.element,"ui-accordion");$(this.element).removeClass("ui-accordion").unbind(".ui-accordion");}}
function scopeCallback(callback,scope){return function(){return callback.apply(scope,arguments);};}
function completed(cancel){if(!$.data(this,"ui-accordion"))
return;var instance=$.data(this,"ui-accordion");var options=instance.options;options.running=cancel?0:--options.running;if(options.running)
return;if(options.clearStyle){options.toShow.add(options.toHide).css({height:"",overflow:""});}
$(this).triggerHandler("change.ui-accordion",[options.data],options.change);}
function toggle(toShow,toHide,data,clickedActive,down){var options=$.data(this,"ui-accordion").options;options.toShow=toShow;options.toHide=toHide;options.data=data;var complete=scopeCallback(completed,this);options.running=toHide.size()==0?toShow.size():toHide.size();if(options.animated){if(!options.alwaysOpen&&clickedActive){$.ui.accordion.animations[options.animated]({toShow:jQuery([]),toHide:toHide,complete:complete,down:down,autoheight:options.autoheight});}else{$.ui.accordion.animations[options.animated]({toShow:toShow,toHide:toHide,complete:complete,down:down,autoheight:options.autoheight});}}else{if(!options.alwaysOpen&&clickedActive){toShow.toggle();}else{toHide.hide();toShow.show();}
complete(true);}}
function clickHandler(event){var options=$.data(this,"ui-accordion").options;if(options.disabled)
return false;if(!event.target&&!options.alwaysOpen){options.active.parent().andSelf().toggleClass(options.selectedClass);var toHide=options.active.next(),data={instance:this,options:options,newHeader:jQuery([]),oldHeader:options.active,newContent:jQuery([]),oldContent:toHide},toShow=options.active=$([]);toggle.call(this,toShow,toHide,data);return false;}
var clicked=$(event.target);if(clicked.parents(options.header).length)
while(!clicked.is(options.header))
clicked=clicked.parent();var clickedActive=clicked[0]==options.active[0];if(options.running||(options.alwaysOpen&&clickedActive))
return false;if(!clicked.is(options.header))
return;options.active.parent().andSelf().toggleClass(options.selectedClass);if(!clickedActive){clicked.parent().andSelf().addClass(options.selectedClass);}
var toShow=clicked.next(),toHide=options.active.next(),data={instance:this,options:options,newHeader:clicked,oldHeader:options.active,newContent:toShow,oldContent:toHide},down=options.headers.index(options.active[0])>options.headers.index(clicked[0]);options.active=clickedActive?$([]):clicked;toggle.call(this,toShow,toHide,data,clickedActive,down);return false;};function findActive(headers,selector){return selector!=undefined?typeof selector=="number"?headers.filter(":eq("+selector+")"):headers.not(headers.not(selector)):selector===false?$([]):headers.filter(":eq(0)");}
$.extend($.ui.accordion,{defaults:{selectedClass:"selected",alwaysOpen:true,animated:'slide',event:"click",header:"a",autoheight:true,running:0,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase();}},animations:{slide:function(options,additions){options=$.extend({easing:"swing",duration:300},options,additions);if(!options.toHide.size()){options.toShow.animate({height:"show"},options);return;}
var hideHeight=options.toHide.height(),showHeight=options.toShow.height(),difference=showHeight/hideHeight;options.toShow.css({height:0,overflow:'hidden'}).show();options.toHide.filter(":hidden").each(options.complete).end().filter(":visible").animate({height:"hide"},{step:function(now){var current=(hideHeight-now)*difference;if($.browser.msie||$.browser.opera){current=Math.ceil(current);}
options.toShow.height(current);},duration:options.duration,easing:options.easing,complete:function(){if(!options.autoheight){options.toShow.css("height","auto");}
options.complete();}});},bounceslide:function(options){this.slide(options,{easing:options.down?"bounceout":"swing",duration:options.down?1000:200});},easeslide:function(options){this.slide(options,{easing:"easeinout",duration:700})}}});})(jQuery);

/*
 * jQuery Form Plugin
 * version: 2.12 (06/07/2008)
 * @requires jQuery v1.2.2 or later
 *
 * Examples and documentation at: http://malsup.com/jquery/form/
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 *
 * Revision: $Id$
 */
(function(b){b.fn.ajaxSubmit=function(m){if(!this.length){a("ajaxSubmit: skipping submit process - no element selected");return this}if(typeof m=="function"){m={success:m}}m=b.extend({url:this.attr("action")||window.location.toString(),type:this.attr("method")||"GET"},m||{});var p={};this.trigger("form-pre-serialize",[this,m,p]);if(p.veto){a("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}var h=this.formToArray(m.semantic);if(m.data){m.extraData=m.data;for(var e in m.data){h.push({name:e,value:m.data[e]})}}if(m.beforeSubmit&&m.beforeSubmit(h,this,m)===false){a("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[h,this,m,p]);if(p.veto){a("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var d=b.param(h);if(m.type.toUpperCase()=="GET"){m.url+=(m.url.indexOf("?")>=0?"&":"?")+d;m.data=null}else{m.data=d}var o=this,g=[];if(m.resetForm){g.push(function(){o.resetForm()})}if(m.clearForm){g.push(function(){o.clearForm()})}if(!m.dataType&&m.target){var k=m.success||function(){};g.push(function(j){b(m.target).html(j).each(k,arguments)})}else{if(m.success){g.push(m.success)}}m.success=function(r,n){for(var q=0,j=g.length;q<j;q++){g[q](r,n,o)}};var c=b("input:file",this).fieldValue();var l=false;for(var f=0;f<c.length;f++){if(c[f]){l=true}}if(m.iframe||l){if(b.browser.safari&&m.closeKeepAlive){b.get(m.closeKeepAlive,i)}else{i()}}else{b.ajax(m)}this.trigger("form-submit-notify",[this,m]);return this;function i(){var t=o[0];if(b(":input[@name=submit]",t).length){alert('Error: Form elements must not be named "submit".');return}var r=b.extend({},b.ajaxSettings,m);var s="jqFormIO"+(new Date().getTime());var y=b('<iframe id="'+s+'" name="'+s+'" />');var A=y[0];if(b.browser.msie||b.browser.opera){A.src='javascript:false;document.write("");'}y.css({position:"absolute",top:"-1000px",left:"-1000px"});var B={responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){}};var z=r.global;if(z&&!b.active++){b.event.trigger("ajaxStart")}if(z){b.event.trigger("ajaxSend",[B,r])}var q=0;var v=0;var j=t.clk;if(j){var u=j.name;if(u&&!j.disabled){m.extraData=m.extraData||{};m.extraData[u]=j.value;if(j.type=="image"){m.extraData[name+".x"]=t.clk_x;m.extraData[name+".y"]=t.clk_y}}}setTimeout(function(){var E=o.attr("target"),C=o.attr("action");o.attr({target:s,encoding:"multipart/form-data",enctype:"multipart/form-data",method:"POST",action:r.url});if(r.timeout){setTimeout(function(){v=true;w()},r.timeout)}var D=[];try{if(m.extraData){for(var F in m.extraData){D.push(b('<input type="hidden" name="'+F+'" value="'+m.extraData[F]+'" />').appendTo(t)[0])}}y.appendTo("body");A.attachEvent?A.attachEvent("onload",w):A.addEventListener("load",w,false);t.submit()}finally{o.attr("action",C);E?o.attr("target",E):o.removeAttr("target");b(D).remove()}},10);function w(){if(q++){return}A.detachEvent?A.detachEvent("onload",w):A.removeEventListener("load",w,false);var C=0;var D=true;try{if(v){throw"timeout"}var E,G;G=A.contentWindow?A.contentWindow.document:A.contentDocument?A.contentDocument:A.document;if(G.body==null&&!C&&b.browser.opera){C=1;q--;setTimeout(w,100);return}B.responseText=G.body?G.body.innerHTML:null;B.responseXML=G.XMLDocument?G.XMLDocument:G;B.getResponseHeader=function(I){var H={"content-type":r.dataType};return H[I]};if(r.dataType=="json"||r.dataType=="script"){var n=G.getElementsByTagName("textarea")[0];B.responseText=n?n.value:B.responseText}else{if(r.dataType=="xml"&&!B.responseXML&&B.responseText!=null){B.responseXML=x(B.responseText)}}E=b.httpData(B,r.dataType)}catch(F){D=false;b.handleError(r,B,"error",F)}if(D){r.success(E,"success");if(z){b.event.trigger("ajaxSuccess",[B,r])}}if(z){b.event.trigger("ajaxComplete",[B,r])}if(z&&!--b.active){b.event.trigger("ajaxStop")}if(r.complete){r.complete(B,D?"success":"error")}setTimeout(function(){y.remove();B.responseXML=null},100)}function x(n,C){if(window.ActiveXObject){C=new ActiveXObject("Microsoft.XMLDOM");C.async="false";C.loadXML(n)}else{C=(new DOMParser()).parseFromString(n,"text/xml")}return(C&&C.documentElement&&C.documentElement.tagName!="parsererror")?C:null}}};b.fn.ajaxForm=function(c){return this.ajaxFormUnbind().bind("submit.form-plugin",function(){b(this).ajaxSubmit(c);return false}).each(function(){b(":submit,input:image",this).bind("click.form-plugin",function(f){var d=this.form;d.clk=this;if(this.type=="image"){if(f.offsetX!=undefined){d.clk_x=f.offsetX;d.clk_y=f.offsetY}else{if(typeof b.fn.offset=="function"){var g=b(this).offset();d.clk_x=f.pageX-g.left;d.clk_y=f.pageY-g.top}else{d.clk_x=f.pageX-this.offsetLeft;d.clk_y=f.pageY-this.offsetTop}}}setTimeout(function(){d.clk=d.clk_x=d.clk_y=null},10)})})};b.fn.ajaxFormUnbind=function(){this.unbind("submit.form-plugin");return this.each(function(){b(":submit,input:image",this).unbind("click.form-plugin")})};b.fn.formToArray=function(q){var p=[];if(this.length==0){return p}var d=this[0];var h=q?d.getElementsByTagName("*"):d.elements;if(!h){return p}for(var k=0,m=h.length;k<m;k++){var e=h[k];var f=e.name;if(!f){continue}if(q&&d.clk&&e.type=="image"){if(!e.disabled&&d.clk==e){p.push({name:f+".x",value:d.clk_x},{name:f+".y",value:d.clk_y})}continue}var r=b.fieldValue(e,true);if(r&&r.constructor==Array){for(var g=0,c=r.length;g<c;g++){p.push({name:f,value:r[g]})}}else{if(r!==null&&typeof r!="undefined"){p.push({name:f,value:r})}}}if(!q&&d.clk){var l=d.getElementsByTagName("input");for(var k=0,m=l.length;k<m;k++){var o=l[k];var f=o.name;if(f&&!o.disabled&&o.type=="image"&&d.clk==o){p.push({name:f+".x",value:d.clk_x},{name:f+".y",value:d.clk_y})}}}return p};b.fn.formSerialize=function(c){return b.param(this.formToArray(c))};b.fn.fieldSerialize=function(d){var c=[];this.each(function(){var h=this.name;if(!h){return}var f=b.fieldValue(this,d);if(f&&f.constructor==Array){for(var g=0,e=f.length;g<e;g++){c.push({name:h,value:f[g]})}}else{if(f!==null&&typeof f!="undefined"){c.push({name:this.name,value:f})}}});return b.param(c)};b.fn.fieldValue=function(h){for(var g=[],e=0,c=this.length;e<c;e++){var f=this[e];var d=b.fieldValue(f,h);if(d===null||typeof d=="undefined"||(d.constructor==Array&&!d.length)){continue}d.constructor==Array?b.merge(g,d):g.push(d)}return g};b.fieldValue=function(c,j){var e=c.name,p=c.type,q=c.tagName.toLowerCase();if(typeof j=="undefined"){j=true}if(j&&(!e||c.disabled||p=="reset"||p=="button"||(p=="checkbox"||p=="radio")&&!c.checked||(p=="submit"||p=="image")&&c.form&&c.form.clk!=c||q=="select"&&c.selectedIndex==-1)){return null}if(q=="select"){var k=c.selectedIndex;if(k<0){return null}var m=[],d=c.options;var g=(p=="select-one");var l=(g?k+1:d.length);for(var f=(g?k:0);f<l;f++){var h=d[f];if(h.selected){var o=b.browser.msie&&!(h.attributes.value.specified)?h.text:h.value;if(g){return o}m.push(o)}}return m}return c.value};b.fn.clearForm=function(){return this.each(function(){b("input,select,textarea",this).clearFields()})};b.fn.clearFields=b.fn.clearInputs=function(){return this.each(function(){var d=this.type,c=this.tagName.toLowerCase();if(d=="text"||d=="password"||c=="textarea"){this.value=""}else{if(d=="checkbox"||d=="radio"){this.checked=false}else{if(c=="select"){this.selectedIndex=-1}}}})};b.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset()}})};b.fn.enable=function(c){if(c==undefined){c=true}return this.each(function(){this.disabled=!c})};b.fn.select=function(c){if(c==undefined){c=true}return this.each(function(){var d=this.type;if(d=="checkbox"||d=="radio"){this.checked=c}else{if(this.tagName.toLowerCase()=="option"){var e=b(this).parent("select");if(c&&e[0]&&e[0].type=="select-one"){e.find("option").select(false)}this.selected=c}}})};function a(){if(b.fn.ajaxSubmit.debug&&window.console&&window.console.log){window.console.log("[jquery.form] "+Array.prototype.join.call(arguments,""))}}})(jQuery);

/*
 * jQuery UI Datepicker
 *
 * Copyright (c) 2006, 2007, 2008 Marc Grabanski
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 * 
 * http://docs.jquery.com/UI/Datepicker
 *
 * Depends:
 *	ui.core.js
 *
 * Marc Grabanski (m@marcgrabanski.com) and Keith Wood (kbwood@virginbroadband.com.au).
 
 * !!! MAKE SURE not to set this datepicker script after sifr because it causes problems with initializing (date picker doesn't work correctly than).
 
 */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(19($){15 1q=\'16\';19 2W(){8.4U=1h;8.2X=1b;8.21=[];8.2v=1h;8.2i=1h;8.43=\'1c-16-1i\';8.44=\'1c-16-2E\';8.22=\'1c-16-4V\';8.45=\'1c-16-6G\';8.46=\'1c-16-47\';8.48=\'1c-16-6H\';8.3t=\'1c-16-3u-4W\';8.49=[];8.49[\'\']={4X:\'6I\',4Y:\'6J 2Y 3u 3v\',4Z:\'50\',51:\'50 6K 52\',53:\'&#6L;6M\',54:\'2Z 2Y 6N 2F\',55:\'6O&#6P;\',56:\'2Z 2Y 57 2F\',58:\'6Q\',59:\'2Z 2Y 3u 2F\',2j:[\'6R\',\'6S\',\'6T\',\'6U\',\'5a\',\'6V\',\'6W\',\'6X\',\'6Y\',\'6Z\',\'70\',\'71\'],2w:[\'72\',\'73\',\'74\',\'75\',\'5a\',\'76\',\'77\',\'78\',\'79\',\'7a\',\'7b\',\'7c\'],5b:\'2Z a 5c 2F\',5d:\'2Z a 5c 4a\',5e:\'7d\',7e:\'7f 7g 2Y 4a\',2k:[\'7h\',\'7i\',\'7j\',\'7k\',\'7l\',\'7m\',\'7n\'],2l:[\'7o\',\'7p\',\'7q\',\'7r\',\'7s\',\'7t\',\'7u\'],5f:[\'7v\',\'7w\',\'7x\',\'7y\',\'7z\',\'7A\',\'7B\'],5g:\'7C 30 7D 7E 2m 4W\',31:\'5h 30, M d\',3w:\'3x/2G/2x\',4b:0,5i:\'5h a 3v\',3a:1h};8.1C={5j:\'2n\',4c:\'4d\',4e:{},2H:1b,5k:\'\',5l:\'...\',5m:\'\',5n:1h,5o:1x,4f:1h,5p:1h,5q:1h,4g:1h,5r:1x,5s:1x,5t:\'-10:+10\',5u:1x,5v:1h,5w:1h,5x:1h,5y:8.3b,3c:\'+10\',5z:1h,5A:8.31,7F:1b,7G:1b,3d:\'7H\',5B:1b,5C:1b,4h:1b,5D:1b,5E:1b,5F:1,3y:1,2y:1h,3e:\' - \',5G:\'\',5H:\'\'};$.3z(8.1C,8.49[\'\']);8.1j=$(\'<1i 1n="\'+8.43+\'" 3A="4i: 5I;"></1i>\')}$.3z(2W.5J,{2o:\'7I\',4j:19(){17(8.4U)7J.4j.23(\'\',4k)},7K:19(a){3f(8.1C,a||{});1a 8},5K:19(a,b){15 c=1b;1A(3B 5L 8.1C){15 d=a.7L(\'3v:\'+3B);17(d){c=c||{};5M{c[3B]=7M(d)}5N(7N){c[3B]=d}}}15 e=a.4l.4m();15 f=(e==\'1i\'||e==\'2I\');17(!a.1n)a.1n=\'5O\'+1d 1e().1O();15 g=8.4n($(a),f);g.1K=$.3z({},b||{},c||{});17(e==\'1f\'){8.5P(a,g)}1l 17(f){8.5Q(a,g)}},4n:19(a,b){1a{1n:a[0].1n,1f:a,1D:0,1E:0,1H:0,24:0,25:0,2p:b,1j:(!b?8.1j:$(\'<1i 1p="1c-16-2p"></1i>\'))}},5P:19(d,e){15 f=$(d);17(f.3g(8.2o))1a;15 g=8.18(e,\'5k\');15 h=8.18(e,\'3a\');17(g)f[h?\'5R\':\'5S\'](\'<2I 1p="\'+8.44+\'">\'+g+\'</2I>\');15 i=8.18(e,\'5j\');17(i==\'2n\'||i==\'3C\')f.2n(8.2J);17(i==\'2K\'||i==\'3C\'){15 j=8.18(e,\'5l\');15 k=8.18(e,\'5m\');15 l=$(8.18(e,\'5n\')?$(\'<3D/>\').26(8.22).5T({4o:k,5U:j,3h:j}):$(\'<2K 3i="2K"></2K>\').26(8.22).2L(k==\'\'?j:$(\'<3D/>\').5T({4o:k,5U:j,3h:j})));f[h?\'5R\':\'5S\'](l);l.7O(19(){17($.16.2v&&$.16.2M==d)$.16.2q();1l $.16.2J(d);1a 1h})}f.26(8.2o).4p(8.3E).5V(8.4q).3F("5W.16",19(a,b,c){e.1K[b]=c}).3F("5X.16",19(a,b){1a 8.18(e,b)});$.1v(d,1q,e)},5Q:19(d,e){15 f=$(d);17(f.3g(8.2o))1a;f.26(8.2o).2E(e.1j).3F("5W.16",19(a,b,c){e.1K[b]=c}).3F("5X.16",19(a,b){1a 8.18(e,b)});$.1v(d,1q,e);8.4r(e,8.4s(e));8.1V(e)},7P:19(a){15 b=8.2N(a);a.1j.1L(b[1]*$(\'.1c-16\',a.1j[0]).1L())},7Q:19(a,b,c,d,e){15 f=8.5Y;17(!f){15 g=\'5O\'+1d 1e().1O();8.1W=$(\'<1f 3i="7R" 1n="\'+g+\'" 7S="1" 3A="2r: 3G; 1P: -5Z;"/>\');8.1W.4p(8.3E);$(\'29\').2E(8.1W);f=8.5Y=8.4n(8.1W,1h);f.1K={};$.1v(8.1W[0],1q,f)}3f(f.1K,d||{});8.1W.2O(b);8.1I=(e?(e.1w?e:[e.7T,e.7U]):1b);17(!8.1I){15 h=3H.61||1r.1M.4t||1r.29.4t;15 i=3H.62||1r.1M.4u||1r.29.4u;15 j=1r.1M.2P||1r.29.2P;15 k=1r.1M.2Q||1r.29.2Q;8.1I=[(h/2)-2z+j,(i/2)-7V+k]}8.1W.1X(\'2a\',8.1I[0]+\'3I\').1X(\'1P\',8.1I[1]+\'3I\');f.1K.4h=c;8.2i=1x;8.1j.26(8.45);8.2J(8.1W[0]);17($.3j)$.3j(8.1j);$.1v(8.1W[0],1q,f);1a 8},7W:19(a){15 b=a.4l.4m();15 c=$(a);$.7X(a,1q);17(b==\'1f\'){c.2R(\'.\'+8.44).3k().2S().2R(\'.\'+8.22).3k().2S().2A(8.2o).3J(\'2n\',8.2J).3J(\'4p\',8.3E).3J(\'5V\',8.4q)}1l 17(b==\'1i\'||b==\'2I\')c.2A(8.2o).63()},7Y:19(b){b.3K=1h;$(b).2R(\'2K.\'+8.22).3l(19(){8.3K=1h}).2S().2R(\'3D.\'+8.22).1X({64:\'1.0\',65:\'\'});8.21=$.66(8.21,19(a){1a(a==b?1b:a)})},7Z:19(b){b.3K=1x;$(b).2R(\'2K.\'+8.22).3l(19(){8.3K=1x}).2S().2R(\'3D.\'+8.22).1X({64:\'0.5\',65:\'3m\'});8.21=$.66(8.21,19(a){1a(a==b?1b:a)});8.21[8.21.1w]=b},67:19(a){17(!a)1a 1h;1A(15 i=0;i<8.21.1w;i++){17(8.21[i]==a)1a 1x}1a 1h},80:19(a,b,c){15 d=b||{};17(1Q b==\'3n\'){d={};d[b]=c}17(4v=$.1v(a,1q)){3f(4v.1K,d);8.1V(4v)}},81:19(a,b,c){15 d=$.1v(a,1q);17(d){8.4r(d,b,c);8.1V(d)}},82:19(a){15 b=$.1v(a,1q);17(b)8.4w(b);1a(b?8.3L(b):1b)},3E:19(e){15 a=$.1v(e.1J,1q);15 b=1x;17($.16.2v)3o(e.4x){1g 9:$.16.2q(1b,\'\');1k;1g 13:$.16.4y(e.1J,a.1E,a.1H,$(\'1Y.1c-16-2T-2B-2s\',a.1j)[0]);1a 1h;1k;1g 27:$.16.2q(1b,$.16.18(a,\'3d\'));1k;1g 33:$.16.1R(e.1J,(e.1N?-1:-$.16.18(a,\'3y\')),(e.1N?\'Y\':\'M\'));1k;1g 34:$.16.1R(e.1J,(e.1N?+1:+$.16.18(a,\'3y\')),(e.1N?\'Y\':\'M\'));1k;1g 35:17(e.1N)$.16.4z(e.1J);1k;1g 36:17(e.1N)$.16.4A(e.1J);1k;1g 37:17(e.1N)$.16.1R(e.1J,-1,\'D\');1k;1g 38:17(e.1N)$.16.1R(e.1J,-7,\'D\');1k;1g 39:17(e.1N)$.16.1R(e.1J,+1,\'D\');1k;1g 40:17(e.1N)$.16.1R(e.1J,+7,\'D\');1k;3m:b=1h}1l 17(e.4x==36&&e.1N)$.16.2J(8);1l b=1h;17(b){e.83();e.84()}},4q:19(e){15 a=$.1v(e.1J,1q);15 b=$.16.68($.16.18(a,\'3w\'));15 c=85.86(e.69==4B?e.4x:e.69);1a e.1N||(c<\' \'||!b||b.6a(c)>-1)},2J:19(a){a=a.1J||a;17(a.4l.4m()!=\'1f\')a=$(\'1f\',a.87)[0];17($.16.67(a)||$.16.2M==a)1a;15 b=$.1v(a,1q);15 c=$.16.18(b,\'5C\');3f(b.1K,(c?c.23(a,[a,b]):{}));$.16.2q(1b,\'\');$.16.2M=a;$.16.4w(b);17($.16.2i)a.3M=\'\';17(!$.16.1I){$.16.1I=$.16.4C(a);$.16.1I[1]+=a.88}15 d=1h;$(a).6b().3l(19(){d|=$(8).1X(\'2r\')==\'6c\';1a!d});17(d&&$.2b.4D){$.16.1I[0]-=1r.1M.2P;$.16.1I[1]-=1r.1M.2Q}15 e={2a:$.16.1I[0],1P:$.16.1I[1]};$.16.1I=1b;b.1y=1b;b.1j.1X({2r:\'3G\',4i:\'89\',1P:\'-8a\'});$.16.1V(b);b.1j.1L($.16.2N(b)[1]*$(\'.1c-16\',b.1j[0])[0].8b);e=$.16.6d(b,e,d);b.1j.1X({2r:($.16.2i&&$.3j?\'8c\':(d?\'6c\':\'3G\')),4i:\'5I\',2a:e.2a+\'3I\',1P:e.1P+\'3I\'});17(!b.2p){15 f=$.16.18(b,\'4c\')||\'4d\';15 g=$.16.18(b,\'3d\');15 h=19(){$.16.2v=1x;17($.2b.4E&&2C($.2b.6e)<7)$(\'3N.1c-16-4F\').1X({1L:b.1j.1L()+4,2t:b.1j.2t()+4})};17($.3O&&$.3O[f])b.1j.4d(f,$.16.18(b,\'4e\'),g,h);1l b.1j[f](g,h);17(g==\'\')h();17(b.1f[0].3i!=\'4G\')b.1f[0].2n();$.16.2X=b}},1V:19(a){15 b={1L:a.1j.1L()+4,2t:a.1j.2t()+4};a.1j.63().2E(8.6f(a)).8d(\'3N.1c-16-4F\').1X({1L:b.1L,2t:b.2t});15 c=8.2N(a);a.1j[(c[0]!=1||c[1]!=1?\'6g\':\'3k\')+\'6h\'](\'1c-16-8e\');a.1j[(8.18(a,\'3a\')?\'6g\':\'3k\')+\'6h\'](\'1c-16-8f\');17(a.1f&&a.1f[0].3i!=\'4G\')$(a.1f[0]).2n()},6d:19(a,b,c){15 d=a.1f?8.4C(a.1f[0]):1b;15 e=3H.61||1r.1M.4t;15 f=3H.62||1r.1M.4u;15 g=1r.1M.2P||1r.29.2P;15 h=1r.1M.2Q||1r.29.2Q;17(8.18(a,\'3a\')||(b.2a+a.1j.1L()-g)>e)b.2a=1S.2u((c?0:g),d[0]+(a.1f?a.1f.1L():0)-(c?g:0)-a.1j.1L()-(c&&$.2b.4D?1r.1M.2P:0));1l b.2a-=(c?g:0);17((b.1P+a.1j.2t()-h)>f)b.1P=1S.2u((c?0:h),d[1]-(c?h:0)-(8.2i?0:a.1j.2t())-(c&&$.2b.4D?1r.1M.2Q:0));1l b.1P-=(c?h:0);1a b},4C:19(a){3p(a&&(a.3i==\'4G\'||a.8g!=1)){a=a.8h}15 b=$(a).8i();1a[b.2a,b.1P]},2q:19(a,b){15 c=8.2X;17(!c)1a;15 d=8.18(c,\'2y\');17(d&&8.2c)8.3P(\'#\'+c.1n,8.2D(c,c.1z,c.1F,c.1B));8.2c=1h;17(8.2v){b=(b!=1b?b:8.18(c,\'3d\'));15 e=8.18(c,\'4c\');15 f=19(){$.16.4H(c)};17(b!=\'\'&&$.3O&&$.3O[e])c.1j.4I(e,$.16.18(c,\'4e\'),b,f);1l c.1j[(b==\'\'?\'4I\':(e==\'8j\'?\'8k\':(e==\'8l\'?\'8m\':\'4I\')))](b,f);17(b==\'\')8.4H(c);15 g=8.18(c,\'5E\');17(g)g.23((c.1f?c.1f[0]:1b),[8.3L(c),c]);8.2v=1h;8.2M=1b;c.1K.47=1b;17(8.2i){8.1W.1X({2r:\'3G\',2a:\'0\',1P:\'-5Z\'});17($.3j){$.8n();$(\'29\').2E(8.1j)}}8.2i=1h}8.2X=1b},4H:19(a){a.1j.2A(8.45).3J(\'.1c-16\');$(\'.\'+8.46,a.1j).3k()},6i:19(a){17(!$.16.2X)1a;15 b=$(a.1J);17((b.6b(\'#\'+$.16.43).1w==0)&&!b.3g($.16.2o)&&!b.3g($.16.22)&&$.16.2v&&!($.16.2i&&$.3j))$.16.2q(1b,\'\')},1R:19(a,b,c){15 d=$(a);15 e=$.1v(d[0],1q);8.3Q(e,b,c);8.1V(e)},4A:19(a){15 b=$(a);15 c=$.1v(b[0],1q);17(8.18(c,\'4g\')&&c.1z){c.1D=c.1z;c.24=c.1E=c.1F;c.25=c.1H=c.1B}1l{15 d=1d 1e();c.1D=d.1o();c.24=c.1E=d.1s();c.25=c.1H=d.1m()}8.1R(b);8.3R(c)},4J:19(a,b,c){15 d=$(a);15 e=$.1v(d[0],1q);e.3S=1h;e[c==\'M\'?\'24\':\'25\']=b.8o[b.8p].3M-0;8.1R(d);8.3R(e)},4K:19(a){15 b=$(a);15 c=$.1v(b[0],1q);17(c.1f&&c.3S&&!$.2b.4E)c.1f[0].2n();c.3S=!c.3S},6j:19(a,b){15 c=$(a);15 d=$.1v(c[0],1q);d.1K.4b=b;8.1V(d)},4y:19(a,b,c,d){17($(d).3g(8.48))1a;15 e=$(a);15 f=$.1v(e[0],1q);15 g=8.18(f,\'2y\');17(g){8.2c=!8.2c;17(8.2c){$(\'.1c-16 1Y\').2A(8.3t);$(d).26(8.3t)}}f.1D=f.1z=$(\'a\',d).2L();f.1E=f.1F=b;f.1H=f.1B=c;17(8.2c){f.1T=f.1Z=f.1U=1b}1l 17(g){f.1T=f.1z;f.1Z=f.1F;f.1U=f.1B}8.3P(a,8.2D(f,f.1z,f.1F,f.1B));17(8.2c){f.1y=1d 1e(f.1B,f.1F,f.1z);8.1V(f)}1l 17(g){f.1D=f.1z=f.1y.1o();f.1E=f.1F=f.1y.1s();f.1H=f.1B=f.1y.1m();f.1y=1b;17(f.2p)8.1V(f)}},4z:19(a){15 b=$(a);15 c=$.1v(b[0],1q);17(8.18(c,\'4f\'))1a;8.2c=1h;c.1T=c.1Z=c.1U=c.1y=1b;8.3P(b,\'\')},3P:19(a,b){15 c=$(a);15 d=$.1v(c[0],1q);b=(b!=1b?b:8.2D(d));17(8.18(d,\'2y\')&&b)b=(d.1y?8.2D(d,d.1y):b)+8.18(d,\'3e\')+b;17(d.1f)d.1f.2O(b);8.6k(d);15 e=8.18(d,\'4h\');17(e)e.23((d.1f?d.1f[0]:1b),[b,d]);1l 17(d.1f)d.1f.4V(\'52\');17(d.2p)8.1V(d);1l 17(!8.2c){8.2q(1b,8.18(d,\'3d\'));8.2M=d.1f[0];17(1Q(d.1f[0])!=\'3T\')d.1f[0].2n();8.2M=1b}},6k:19(a){15 b=8.18(a,\'5G\');17(b){15 c=8.18(a,\'5H\');15 d=8.3L(a);6l=(6m(d)?(!d[0]&&!d[1]?\'\':8.2d(c,d[0],8.20(a))+8.18(a,\'3e\')+8.2d(c,d[1]||d[0],8.20(a))):8.2d(c,d,8.20(a)));$(b).3l(19(){$(8).2O(6l)})}},8q:19(a){15 b=a.2U();1a[(b>0&&b<6),\'\']},3b:19(a){15 b=1d 1e(a.1m(),a.1s(),a.1o(),(a.8r()/-60));15 c=1d 1e(b.1m(),1-1,4);15 d=c.2U()||7;c.3U(c.1o()+1-d);17(d<4&&b<c){b.3U(b.1o()-3);1a $.16.3b(b)}1l 17(b>1d 1e(b.1m(),12-1,28)){d=1d 1e(b.1m()+1,1-1,4).2U()||7;17(d>4&&(b.2U()||7)<d-3){b.3U(b.1o()+3);1a $.16.3b(b)}}1a 1S.8s(((b-c)/8t)/7)+1},31:19(a,b){1a $.16.2d($.16.18(b,\'31\'),a,$.16.20(b))},4L:19(h,k,l){17(h==1b||k==1b)3q\'6n 4k\';k=(1Q k==\'3T\'?k.6o():k+\'\');17(k==\'\')1a 1b;15 m=(l?l.3c:1b)||8.1C.3c;15 n=(l?l.2l:1b)||8.1C.2l;15 o=(l?l.2k:1b)||8.1C.2k;15 p=(l?l.2w:1b)||8.1C.2w;15 q=(l?l.2j:1b)||8.1C.2j;15 r=-1;15 s=-1;15 t=-1;15 u=1h;15 v=19(a){15 b=(A+1<h.1w&&h.1t(A+1)==a);17(b)A++;1a b};15 w=19(a){v(a);15 b=(a==\'@\'?14:(a==\'y\'?4:2));15 c=b;15 d=0;3p(c>0&&z<k.1w&&k.1t(z)>=\'0\'&&k.1t(z)<=\'9\'){d=d*10+(k.1t(z++)-0);c--}17(c==b)3q\'8u 4M 4N 2r \'+z;1a d};15 x=19(a,b,c){15 d=(v(a)?c:b);15 e=0;1A(15 j=0;j<d.1w;j++)e=1S.2u(e,d[j].1w);15 f=\'\';15 g=z;3p(e>0&&z<k.1w){f+=k.1t(z++);1A(15 i=0;i<d.1w;i++)17(f==d[i])1a i+1;e--}3q\'8v 8w 4N 2r \'+g;};15 y=19(){17(k.1t(z)!=h.1t(A))3q\'8x 8y 4N 2r \'+z;z++};15 z=0;1A(15 A=0;A<h.1w;A++){17(u)17(h.1t(A)=="\'"&&!v("\'"))u=1h;1l y();1l 3o(h.1t(A)){1g\'d\':t=w(\'d\');1k;1g\'D\':x(\'D\',n,o);1k;1g\'m\':s=w(\'m\');1k;1g\'M\':s=x(\'M\',p,q);1k;1g\'y\':r=w(\'y\');1k;1g\'@\':15 B=1d 1e(w(\'@\'));r=B.1m();s=B.1s()+1;t=B.1o();1k;1g"\'":17(v("\'"))y();1l u=1x;1k;3m:y()}}17(r<2z)r+=1d 1e().1m()-1d 1e().1m()%2z+(r<=m?0:-2z);15 B=1d 1e(r,s-1,t);17(B.1m()!=r||B.1s()+1!=s||B.1o()!=t)3q\'6n 3v\';1a B},8z:\'2x-3x-2G\',8A:\'D, 2G M 2x\',8B:\'2x-3x-2G\',8C:\'D, d M y\',8D:\'30, 2G-M-y\',8E:\'D, d M y\',8F:\'D, d M 2x\',8G:\'D, d M 2x\',8H:\'D, d M y\',8I:\'@\',8J:\'2x-3x-2G\',2d:19(e,f,g){17(!f)1a\'\';15 h=(g?g.2l:1b)||8.1C.2l;15 i=(g?g.2k:1b)||8.1C.2k;15 j=(g?g.2w:1b)||8.1C.2w;15 k=(g?g.2j:1b)||8.1C.2j;15 l=19(a){15 b=(q+1<e.1w&&e.1t(q+1)==a);17(b)q++;1a b};15 m=19(a,b){1a(l(a)&&b<10?\'0\':\'\')+b};15 n=19(a,b,c,d){1a(l(a)?d[b]:c[b])};15 o=\'\';15 p=1h;17(f)1A(15 q=0;q<e.1w;q++){17(p)17(e.1t(q)=="\'"&&!l("\'"))p=1h;1l o+=e.1t(q);1l 3o(e.1t(q)){1g\'d\':o+=m(\'d\',f.1o());1k;1g\'D\':o+=n(\'D\',f.2U(),h,i);1k;1g\'m\':o+=m(\'m\',f.1s()+1);1k;1g\'M\':o+=n(\'M\',f.1s(),j,k);1k;1g\'y\':o+=(l(\'y\')?f.1m():(f.6p()%2z<10?\'0\':\'\')+f.6p()%2z);1k;1g\'@\':o+=f.1O();1k;1g"\'":17(l("\'"))o+="\'";1l p=1x;1k;3m:o+=e.1t(q)}}1a o},68:19(a){15 b=\'\';15 c=1h;1A(15 d=0;d<a.1w;d++)17(c)17(a.1t(d)=="\'"&&!6q("\'"))c=1h;1l b+=a.1t(d);1l 3o(a.1t(d)){1g\'d\':1g\'m\':1g\'y\':1g\'@\':b+=\'8K\';1k;1g\'D\':1g\'M\':1a 1b;1g"\'":17(6q("\'"))b+="\'";1l c=1x;1k;3m:b+=a.1t(d)}1a b},18:19(a,b){1a a.1K[b]!==4B?a.1K[b]:8.1C[b]},4w:19(a){15 b=8.18(a,\'3w\');15 c=a.1f?a.1f.2O().6r(8.18(a,\'3e\')):1b;a.1T=a.1Z=a.1U=1b;15 d=2H=8.4s(a);17(c.1w>0){15 f=8.20(a);17(c.1w>1){d=8.4L(b,c[1],f)||2H;a.1T=d.1o();a.1Z=d.1s();a.1U=d.1m()}5M{d=8.4L(b,c[0],f)||2H}5N(e){8.4j(e);d=2H}}a.1D=d.1o();a.24=a.1E=d.1s();a.25=a.1H=d.1m();a.1z=(c[0]?d.1o():0);a.1F=(c[0]?d.1s():0);a.1B=(c[0]?d.1m():0);8.3Q(a)},4s:19(a){15 b=8.3r(8.18(a,\'2H\'),1d 1e());15 c=8.2e(a,\'2f\',1x);15 d=8.2e(a,\'2u\');b=(c&&b<c?c:b);b=(d&&b>d?d:b);1a b},3r:19(i,j){15 k=19(a){15 b=1d 1e();b.6s(b.6t()+a);1a b};15 l=19(a,b){15 c=1d 1e();15 d=c.1m();15 e=c.1s();15 f=c.1o();15 g=/([+-]?[0-9]+)\\s*(d|D|w|W|m|M|y|Y)?/g;15 h=g.6u(a);3p(h){3o(h[2]||\'d\'){1g\'d\':1g\'D\':f+=(h[1]-0);1k;1g\'w\':1g\'W\':f+=(h[1]*7);1k;1g\'m\':1g\'M\':e+=(h[1]-0);f=1S.2f(f,b(d,e));1k;1g\'y\':1g\'Y\':d+=(h[1]-0);f=1S.2f(f,b(d,e));1k}h=g.6u(a)}1a 1d 1e(d,e,f)};1a(i==1b?j:(1Q i==\'3n\'?l(i,8.3s):(1Q i==\'4M\'?k(i):i)))},4r:19(a,b,c){15 d=!(b);b=8.3r(b,1d 1e());a.1D=a.1z=b.1o();a.24=a.1E=a.1F=b.1s();a.25=a.1H=a.1B=b.1m();17(8.18(a,\'2y\')){17(c){c=8.3r(c,1b);a.1T=c.1o();a.1Z=c.1s();a.1U=c.1m()}1l{a.1T=a.1z;a.1Z=a.1F;a.1U=a.1B}}8.3Q(a);17(a.1f)a.1f.2O(d?\'\':8.2D(a)+(!8.18(a,\'2y\')?\'\':8.18(a,\'3e\')+8.2D(a,a.1T,a.1Z,a.1U)))},3L:19(a){15 b=(!a.1B||(a.1f&&a.1f.2O()==\'\')?1b:1d 1e(a.1B,a.1F,a.1z));17(8.18(a,\'2y\')){1a[a.1y||b,(!a.1U?1b:1d 1e(a.1U,a.1Z,a.1T))]}1l 1a b},6f:19(a){15 b=1d 1e();b=1d 1e(b.1m(),b.1s(),b.1o());15 c=8.18(a,\'5z\');15 d=8.18(a,\'3a\');15 e=(8.18(a,\'4f\')?\'\':\'<1i 1p="1c-16-4O"><a 2g="1u.16.4z(\\\'#\'+a.1n+\'\\\');"\'+(c?8.2h(a,8.18(a,\'4Y\')||\'&#1G;\'):\'\')+\'>\'+8.18(a,\'4X\')+\'</a></1i>\');15 f=\'<1i 1p="1c-16-8L">\'+(d?\'\':e)+\'<1i 1p="1c-16-8M"><a 2g="1u.16.2q();"\'+(c?8.2h(a,8.18(a,\'51\')||\'&#1G;\'):\'\')+\'>\'+8.18(a,\'4Z\')+\'</a></1i>\'+(d?e:\'\')+\'</1i>\';15 g=8.18(a,\'47\');15 h=8.18(a,\'5o\');15 i=8.18(a,\'5p\');15 j=8.18(a,\'5q\');15 k=8.2N(a);15 l=8.18(a,\'3y\');15 m=(k[0]!=1||k[1]!=1);15 n=(!a.1z?1d 1e(8N,9,9):1d 1e(a.1B,a.1F,a.1z));15 o=8.2e(a,\'2f\',1x);15 p=8.2e(a,\'2u\');15 q=a.24;15 r=a.25;17(p){15 s=1d 1e(p.1m(),p.1s()-k[1]+1,p.1o());s=(o&&s<o?o:s);3p(1d 1e(r,q,1)>s){q--;17(q<0){q=11;r--}}}15 t=8.18(a,\'53\');t=(!j?t:8.2d(t,1d 1e(r,q-l,1),8.20(a)));15 u=\'<1i 1p="1c-16-8O">\'+(8.4P(a,-1,r,q)?\'<a 2g="1u.16.1R(\\\'#\'+a.1n+\'\\\', -\'+l+\', \\\'M\\\');"\'+(c?8.2h(a,8.18(a,\'54\')||\'&#1G;\'):\'\')+\'>\'+t+\'</a>\':(i?\'\':\'<3V>\'+t+\'</3V>\'))+\'</1i>\';15 v=8.18(a,\'55\');v=(!j?v:8.2d(v,1d 1e(r,q+l,1),8.20(a)));15 w=\'<1i 1p="1c-16-57">\'+(8.4P(a,+1,r,q)?\'<a 2g="1u.16.1R(\\\'#\'+a.1n+\'\\\', +\'+l+\', \\\'M\\\');"\'+(c?8.2h(a,8.18(a,\'56\')||\'&#1G;\'):\'\')+\'>\'+v+\'</a>\':(i?\'\':\'<3V>\'+v+\'</3V>\'))+\'</1i>\';15 x=8.18(a,\'58\');x=(!j?x:8.2d(x,b,8.20(a)));15 y=(g?\'<1i 1p="\'+8.46+\'">\'+g+\'</1i>\':\'\')+(h&&!a.2p?f:\'\')+\'<1i 1p="1c-16-8P">\'+(d?w:u)+(8.4Q(a,(8.18(a,\'4g\')&&a.1z?n:b))?\'<1i 1p="1c-16-3u">\'+\'<a 2g="1u.16.4A(\\\'#\'+a.1n+\'\\\');"\'+(c?8.2h(a,8.18(a,\'59\')||\'&#1G;\'):\'\')+\'>\'+x+\'</a></1i>\':\'\')+(d?u:w)+\'</1i>\';15 z=8.18(a,\'4b\');15 A=8.18(a,\'5u\');15 B=8.18(a,\'2k\');15 C=8.18(a,\'2l\');15 D=8.18(a,\'5f\');15 E=8.18(a,\'2j\');15 F=8.18(a,\'5B\');15 G=8.18(a,\'5v\');15 H=8.18(a,\'5w\');15 I=8.18(a,\'5x\');15 J=8.18(a,\'5y\')||8.3b;15 K=(c?8.18(a,\'5g\')||\'&#1G;\':\'\');15 L=8.18(a,\'5A\')||8.31;15 M=a.1T?1d 1e(a.1U,a.1Z,a.1T):n;1A(15 N=0;N<k[0];N++)1A(15 O=0;O<k[1];O++){15 P=1d 1e(r,q,a.1D);y+=\'<1i 1p="1c-16-8Q-2F\'+(O==0?\' 1c-16-1d-4R\':\'\')+\'">\'+8.6v(a,q,r,o,p,P,N>0||O>0,c,E)+\'<6w 1p="1c-16" 8R="0" 8S="0"><6x>\'+\'<3W 1p="1c-16-3h-4R">\'+(I?\'<1Y>\'+8.18(a,\'5e\')+\'</1Y>\':\'\');1A(15 Q=0;Q<7;Q++){15 R=(Q+z)%7;15 S=(K.6a(\'30\')>-1?K.6y(/30/,B[R]):K.6y(/D/,C[R]));y+=\'<1Y\'+((Q+z+6)%7>=5?\' 1p="1c-16-2m-2S-2B"\':\'\')+\'>\'+(!A?\'<2I\':\'<a 2g="1u.16.6j(\\\'#\'+a.1n+\'\\\', \'+R+\');"\')+(c?8.2h(a,S):\'\')+\' 3h="\'+B[R]+\'">\'+D[R]+(A?\'</a>\':\'</2I>\')+\'</1Y>\'}y+=\'</3W></6x><6z>\';15 T=8.3s(r,q);17(r==a.1H&&q==a.1E)a.1D=1S.2f(a.1D,T);15 U=(8.6A(r,q)-z+7)%7;15 V=1d 1e(r,q,1-U);15 W=(m?6:1S.8T((U+T)/7));1A(15 X=0;X<W;X++){y+=\'<3W 1p="1c-16-2T-4R">\'+(I?\'<1Y 1p="1c-16-2m-8U">\'+J(V)+\'</1Y>\':\'\');1A(15 Q=0;Q<7;Q++){15 Y=(F?F.23((a.1f?a.1f[0]:1b),[V]):[1x,\'\']);15 Z=(V.1s()!=q);15 3X=Z||!Y[0]||(o&&V<o)||(p&&V>p);y+=\'<1Y 1p="1c-16-2T-2B\'+((Q+z+6)%7>=5?\' 1c-16-2m-2S-2B\':\'\')+(Z?\' 1c-16-8V\':\'\')+(V.1O()==P.1O()&&q==a.1E?\' 1c-16-2T-2B-2s\':\'\')+(3X?\' \'+8.48:\'\')+(Z&&!H?\'\':\' \'+Y[1]+(V.1O()>=n.1O()&&V.1O()<=M.1O()?\' \'+8.3t:\'\')+(V.1O()==b.1O()?\' 1c-16-8W\':\'\'))+\'"\'+((!Z||H)&&Y[2]?\' 3h="\'+Y[2]+\'"\':\'\')+(3X?(G?\' 4S="1u(8).3Y().26(\\\'1c-16-2m-2s\\\');"\'+\' 4T="1u(8).3Y().2A(\\\'1c-16-2m-2s\\\');"\':\'\'):\' 4S="1u(8).26(\\\'1c-16-2T-2B-2s\\\')\'+(G?\'.3Y().26(\\\'1c-16-2m-2s\\\')\':\'\')+\';\'+(!c||(Z&&!H)?\'\':\'1u(\\\'#1c-16-2V-\'+a.1n+\'\\\').2L(\\\'\'+(L.23((a.1f?a.1f[0]:1b),[V,a])||\'&#1G;\')+\'\\\');\')+\'"\'+\' 4T="1u(8).2A(\\\'1c-16-2T-2B-2s\\\')\'+(G?\'.3Y().2A(\\\'1c-16-2m-2s\\\')\':\'\')+\';\'+(!c||(Z&&!H)?\'\':\'1u(\\\'#1c-16-2V-\'+a.1n+\'\\\').2L(\\\'&#1G;\\\');\')+\'" 2g="1u.16.4y(\\\'#\'+a.1n+\'\\\',\'+q+\',\'+r+\', 8);"\')+\'>\'+(Z?(H?V.1o():\'&#1G;\'):(3X?V.1o():\'<a>\'+V.1o()+\'</a>\'))+\'</1Y>\';V.6s(V.6t()+1)}y+=\'</3W>\'}q++;17(q>11){q=0;r++}y+=\'</6z></6w></1i>\'}y+=(c?\'<1i 3A="4O: 3C;"></1i><1i 1n="1c-16-2V-\'+a.1n+\'" 1p="1c-16-2V">\'+(8.18(a,\'5i\')||\'&#1G;\')+\'</1i>\':\'\')+(!h&&!a.2p?f:\'\')+\'<1i 3A="4O: 3C;"></1i>\'+($.2b.4E&&2C($.2b.6e)<7&&!a.2p?\'<3N 4o="8X:1h;" 1p="1c-16-4F"></3N>\':\'\');1a y},6v:19(a,b,c,d,e,f,g,h,i){d=(a.1y&&d&&f<d?f:d);15 j=\'<1i 1p="1c-16-8Y">\';17(g||!8.18(a,\'5r\'))j+=i[b]+\'&#1G;\';1l{15 k=(d&&d.1m()==c);15 l=(e&&e.1m()==c);j+=\'<3Z 1p="1c-16-1d-2F" \'+\'6B="1u.16.4J(\\\'#\'+a.1n+\'\\\', 8, \\\'M\\\');" \'+\'2g="1u.16.4K(\\\'#\'+a.1n+\'\\\');"\'+(h?8.2h(a,8.18(a,\'5b\')||\'&#1G;\'):\'\')+\'>\';1A(15 m=0;m<12;m++){17((!k||m>=d.1s())&&(!l||m<=e.1s()))j+=\'<41 3M="\'+m+\'"\'+(m==b?\' 42="42"\':\'\')+\'>\'+i[m]+\'</41>\'}j+=\'</3Z>\'}17(g||!8.18(a,\'5s\'))j+=c;1l{15 n=8.18(a,\'5t\').6r(\':\');15 o=0;15 p=0;17(n.1w!=2){o=c-10;p=c+10}1l 17(n[0].1t(0)==\'+\'||n[0].1t(0)==\'-\'){o=p=1d 1e().1m();o+=2C(n[0],10);p+=2C(n[1],10)}1l{o=2C(n[0],10);p=2C(n[1],10)}o=(d?1S.2u(o,d.1m()):o);p=(e?1S.2f(p,e.1m()):p);j+=\'<3Z 1p="1c-16-1d-4a" \'+\'6B="1u.16.4J(\\\'#\'+a.1n+\'\\\', 8, \\\'Y\\\');" \'+\'2g="1u.16.4K(\\\'#\'+a.1n+\'\\\');"\'+(h?8.2h(a,8.18(a,\'5d\')||\'&#1G;\'):\'\')+\'>\';1A(;o<=p;o++){j+=\'<41 3M="\'+o+\'"\'+(o==c?\' 42="42"\':\'\')+\'>\'+o+\'</41>\'}j+=\'</3Z>\'}j+=\'</1i>\';1a j},2h:19(a,b){1a\' 4S="1u(\\\'#1c-16-2V-\'+a.1n+\'\\\').2L(\\\'\'+b+\'\\\');" \'+\'4T="1u(\\\'#1c-16-2V-\'+a.1n+\'\\\').2L(\\\'&#1G;\\\');"\'},3Q:19(a,b,c){15 d=a.25+(c==\'Y\'?b:0);15 e=a.24+(c==\'M\'?b:0);15 f=1S.2f(a.1D,8.3s(d,e))+(c==\'D\'?b:0);15 g=1d 1e(d,e,f);15 h=8.2e(a,\'2f\',1x);15 i=8.2e(a,\'2u\');g=(h&&g<h?h:g);g=(i&&g>i?i:g);a.1D=g.1o();a.24=a.1E=g.1s();a.25=a.1H=g.1m();17(c==\'M\'||c==\'Y\')8.3R(a)},3R:19(a){15 b=8.18(a,\'5D\');17(b)b.23((a.1f?a.1f[0]:1b),[1d 1e(a.1H,a.1E,1),a])},2N:19(a){15 b=8.18(a,\'5F\');1a(b==1b?[1,1]:(1Q b==\'4M\'?[1,b]:b))},2e:19(a,b,c){15 d=8.3r(8.18(a,b+\'1e\'),1b);17(d){d.8Z(0);d.90(0);d.91(0);d.92(0)}1a(!c||!a.1y?d:(!d||a.1y>d?a.1y:d))},3s:19(a,b){1a 32-1d 1e(a,b,32).1o()},6A:19(a,b){1a 1d 1e(a,b,1).2U()},4P:19(a,b,c,d){15 e=8.2N(a);15 f=1d 1e(c,d+(b<0?b:e[1]),1);17(b<0)f.3U(8.3s(f.1m(),f.1s()));1a 8.4Q(a,f)},4Q:19(a,b){15 c=(!a.1y?1b:1d 1e(a.1H,a.1E,a.1D));c=(c&&a.1y<c?a.1y:c);15 d=c||8.2e(a,\'2f\');15 e=8.2e(a,\'2u\');1a((!d||b>=d)&&(!e||b<=e))},20:19(a){15 b=8.18(a,\'3c\');b=(1Q b!=\'3n\'?b:1d 1e().1m()%2z+2C(b,10));1a{3c:b,2l:8.18(a,\'2l\'),2k:8.18(a,\'2k\'),2w:8.18(a,\'2w\'),2j:8.18(a,\'2j\')}},2D:19(a,b,c,d){17(!b){a.1z=a.1D;a.1F=a.1E;a.1B=a.1H}15 e=(b?(1Q b==\'3T\'?b:1d 1e(d,c,b)):1d 1e(a.1B,a.1F,a.1z));1a 8.2d(8.18(a,\'3w\'),e,8.20(a))}});19 3f(a,b){$.3z(a,b);1A(15 c 5L b)17(b[c]==1b||b[c]==4B)a[c]=b[c];1a a};19 6m(a){1a(a&&(($.2b.93&&1Q a==\'3T\'&&a.1w)||(a.6C&&a.6C.6o().94(/\\6D\\(\\)/))))};$.95.16=19(a){15 b=6D.5J.96.97(4k,1);17(1Q a==\'3n\'&&(a==\'98\'||a==\'1o\'))1a $.16[\'6E\'+a+\'2W\'].23($.16,[8[0]].6F(b));1a 8.3l(19(){1Q a==\'3n\'?$.16[\'6E\'+a+\'2W\'].23($.16,[8].6F(b)):$.16.5K(8,a)})};$.16=1d 2W();$(1r).99(19(){$(1r.29).2E($.16.1j).9a($.16.6i)})})(1u);',62,569,'||||||||this|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||var|datepicker|if|_get|function|return|null|ui|new|Date|input|case|false|div|dpDiv|break|else|getFullYear|id|getDate|class|bb|document|getMonth|charAt|jQuery|data|length|true|rangeStart|currentDay|for|currentYear|_defaults|selectedDay|selectedMonth|currentMonth|xa0|selectedYear|_pos|target|settings|width|documentElement|ctrlKey|getTime|top|typeof|_adjustDate|Math|endDay|endYear|_updateDatepicker|_dialogInput|css|td|endMonth|_getFormatConfig|_disabledInputs|_triggerClass|apply|drawMonth|drawYear|addClass|||body|left|browser|_stayOpen|formatDate|_getMinMaxDate|min|onclick|_addStatus|_inDialog|monthNames|dayNames|dayNamesShort|week|focus|markerClassName|inline|_hideDatepicker|position|over|height|max|_datepickerShowing|monthNamesShort|yy|rangeSelect|100|removeClass|cell|parseInt|_formatDate|append|month|dd|defaultDate|span|_showDatepicker|button|html|_lastInput|_getNumberOfMonths|val|scrollLeft|scrollTop|siblings|end|days|getDay|status|Datepicker|_curInst|the|Show|DD|dateStatus|||||||||isRTL|iso8601Week|shortYearCutoff|duration|rangeSeparator|extendRemove|hasClass|title|type|blockUI|remove|each|default|string|switch|while|throw|_determineDate|_getDaysInMonth|_currentClass|current|date|dateFormat|mm|stepMonths|extend|style|attrName|both|img|_doKeyDown|bind|absolute|window|px|unbind|disabled|_getDate|value|iframe|effects|_selectDate|_adjustInstDate|_notifyChange|_selectingMonthYear|object|setDate|label|tr|bc|parent|select||option|selected|_mainDivId|_appendClass|_dialogClass|_promptClass|prompt|_unselectableClass|regional|year|firstDay|showAnim|show|showOptions|mandatory|gotoCurrent|onSelect|display|log|arguments|nodeName|toLowerCase|_newInst|src|keydown|_doKeyPress|_setDate|_getDefaultDate|clientWidth|clientHeight|inst|_setDateFromField|keyCode|_selectDay|_clearDate|_gotoToday|undefined|_findPos|opera|msie|cover|hidden|_tidyDialog|hide|_selectMonthYear|_clickMonthYear|parseDate|number|at|clear|_canAdjustMonth|_isInRange|row|onmouseover|onmouseout|debug|trigger|day|clearText|clearStatus|closeText|Close|closeStatus|change|prevText|prevStatus|nextText|nextStatus|next|currentText|currentStatus|May|monthStatus|different|yearStatus|weekHeader|dayNamesMin|dayStatus|Select|initStatus|showOn|appendText|buttonText|buttonImage|buttonImageOnly|closeAtTop|hideIfNoPrevNext|navigationAsDateFormat|changeMonth|changeYear|yearRange|changeFirstDay|highlightWeek|showOtherMonths|showWeeks|calculateWeek|showStatus|statusForDate|beforeShowDay|beforeShow|onChangeMonthYear|onClose|numberOfMonths|altField|altFormat|none|prototype|_attachDatepicker|in|try|catch|dp|_connectDatepicker|_inlineDatepicker|before|after|attr|alt|keypress|setData|getData|_dialogInst|100px||innerWidth|innerHeight|empty|opacity|cursor|map|_isDisabledDatepicker|_possibleChars|charCode|indexOf|parents|fixed|_checkOffset|version|_generateDatepicker|add|Class|_checkExternalClick|_changeFirstDay|_updateAlternate|dateStr|isArray|Invalid|toString|getYear|lookAhead|split|setUTCDate|getUTCDate|exec|_generateMonthYearHeader|table|thead|replace|tbody|_getFirstDayOfMonth|onchange|constructor|Array|_|concat|dialog|unselectable|Clear|Erase|without|x3c|Prev|previous|Next|x3e|Today|January|February|March|April|June|July|August|September|October|November|December|Jan|Feb|Mar|Apr|Jun|Jul|Aug|Sep|Oct|Nov|Dec|Wk|weekStatus|Week|of|Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sun|Mon|Tue|Wed|Thu|Fri|Sat|Su|Mo|Tu|We|Th|Fr|Sa|Set|as|first|minDate|maxDate|normal|hasDatepicker|console|setDefaults|getAttribute|eval|err|click|_inlineShow|_dialogDatepicker|text|size|pageX|pageY|150|_destroyDatepicker|removeData|_enableDatepicker|_disableDatepicker|_changeDatepicker|_setDateDatepicker|_getDateDatepicker|preventDefault|stopPropagation|String|fromCharCode|parentNode|offsetHeight|block|1000px|offsetWidth|static|find|multi|rtl|nodeType|nextSibling|offset|slideDown|slideUp|fadeIn|fadeOut|unblockUI|options|selectedIndex|noWeekends|getTimezoneOffset|floor|86400000|Missing|Unknown|name|Unexpected|literal|ATOM|COOKIE|ISO_8601|RFC_822|RFC_850|RFC_1036|RFC_1123|RFC_2822|RSS|TIMESTAMP|W3C|0123456789|control|close|9999|prev|links|one|cellpadding|cellspacing|ceil|col|otherMonth|today|javascript|header|setHours|setMinutes|setSeconds|setMilliseconds|safari|match|fn|slice|call|isDisabled|ready|mousedown'.split('|'),0,{}))

/*
 * Thickbox 3.1 - One Box To Rule Them All.
 * By Cody Lindley (http://www.codylindley.com)
 * Copyright (c) 2007 cody lindley
 * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
*/
var tb_pathToImage=webRoot+"/images/ajax-loader_bg-transparent_black.gif";
/*!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/
$(document).ready(function(){imgLoader=new Image();imgLoader.src=tb_pathToImage});function tb_init(a,b,c){$(a,b).click(function(){var e=this.title||this.name||null;var d=this.href||this.alt;var f=this.rel||false;if(c){var h=c}tb_show(e,d,f,h);this.blur();return false})}function tb_show(l,b,i,k){try{if(typeof document.body.style.maxHeight==="undefined"){$("body","html").css({height:"100%",width:"100%"});$("html").css("overflow","hidden");if(document.getElementById("TB_HideSelect")===null){$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window' class='area'></div>");$("#TB_overlay").click(tb_remove)}}else{if(document.getElementById("TB_overlay")===null){$("body").append("<div id='TB_overlay'></div><div id='TB_window' class='area'></div>");$("#TB_overlay").click(tb_remove)}}if(tb_detectMacXFF()){$("#TB_overlay").addClass("TB_overlayMacFFBGHack")}else{$("#TB_overlay").addClass("TB_overlayBG")}if(l===null){l=""}$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");if(!k){$("#TB_load").show()}var c;if(b.indexOf("?")!==-1){c=b.substr(0,b.indexOf("?"))}else{c=b}var f=/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/;var m=c.toLowerCase().match(f);if(m==".jpg"||m==".jpeg"||m==".png"||m==".gif"||m==".bmp"){TB_PrevCaption="";TB_PrevURL="";TB_PrevHTML="";TB_NextCaption="";TB_NextURL="";TB_NextHTML="";TB_imageCount="";TB_FoundURL=false;if(i){TB_TempArray=$("a[@rel="+i+"]").get();for(TB_Counter=0;((TB_Counter<TB_TempArray.length)&&(TB_NextHTML===""));TB_Counter++){var g=TB_TempArray[TB_Counter].href.toLowerCase().match(f);if(!(TB_TempArray[TB_Counter].href==b)){if(TB_FoundURL){TB_NextCaption=TB_TempArray[TB_Counter].title;TB_NextURL=TB_TempArray[TB_Counter].href;TB_NextHTML="<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;</a></span>"}else{TB_PrevCaption=TB_TempArray[TB_Counter].title;TB_PrevURL=TB_TempArray[TB_Counter].href;TB_PrevHTML="<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev</a></span>"}}else{TB_FoundURL=true;TB_imageCount="Image "+(TB_Counter+1)+" of "+(TB_TempArray.length)}}}imgPreloader=new Image();imgPreloader.onload=function(){imgPreloader.onload=null;var p=tb_getPageSize();var n=p[0]-150;var s=p[1]-150;var o=imgPreloader.width;var e=imgPreloader.height;if(o>n){e=e*(n/o);o=n;if(e>s){o=o*(s/e);e=s}}else{if(e>s){o=o*(s/e);e=s;if(o>n){e=e*(n/o);o=n}}}TB_WIDTH=o+30;TB_HEIGHT=e+60;$("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+b+"' width='"+o+"' height='"+e+"' alt='"+l+"'/></a><div id='TB_caption'>"+l+"<div id='TB_secondLine'>"+TB_imageCount+TB_PrevHTML+TB_NextHTML+"</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div>");$("#TB_closeWindowButton").click(tb_remove);if(!(TB_PrevHTML==="")){function r(){if($(document).unbind("click",r)){$(document).unbind("click",r)}$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_PrevCaption,TB_PrevURL,i);return false}$("#TB_prev").click(r)}if(!(TB_NextHTML==="")){function q(){$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_NextCaption,TB_NextURL,i);return false}$("#TB_next").click(q)}document.onkeydown=function(t){if(t==null){keycode=event.keyCode}else{keycode=t.which}if(keycode==27){tb_remove()}else{if(keycode==190){if(!(TB_NextHTML=="")){document.onkeydown="";q()}}else{if(keycode==188){if(!(TB_PrevHTML=="")){document.onkeydown="";r()}}}}};tb_position();$("#TB_load").remove();$("#TB_ImageOff").click(tb_remove);$("#TB_window").css({display:"block"})};imgPreloader.src=b}else{var a=b.replace(/^[^\?]+\??/,"");var d=tb_parseQuery(a);var h=$(window).height();TB_WIDTH=(d.width*1)+30||440;TB_HEIGHT=(d.height*1)+40||398;ajaxContentW=TB_WIDTH-2;ajaxContentH=TB_HEIGHT-45;if(b.indexOf("TB_iframe")!=-1){urlNoQuery=b.split("TB_");$("#TB_iframeContent").remove();if(d.modal!="true"){$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+l+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>&nbsp;<span class='skip'>close</span></a></div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW)+"px;height:"+(ajaxContentH+17)+"px;' > </iframe>")}else{$("#TB_overlay").unbind();$("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;'> </iframe>")}}else{if($("#TB_window").css("display")!="block"){if(d.modal!="true"){$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+l+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>&nbsp;<span class='skip'>close</span></a></div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>")}else{$("#TB_overlay").unbind();$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>")}}else{$("#TB_ajaxContent")[0].style.width=ajaxContentW+"px";$("#TB_ajaxContent")[0].style.height=ajaxContentH+"px";$("#TB_ajaxContent")[0].scrollTop=0;$("#TB_ajaxWindowTitle").html(l)}}$("#TB_closeWindowButton").click(tb_remove);if(b.indexOf("TB_inline")!=-1){$("#TB_ajaxContent").append($("#"+d.inlineId).children());$("#TB_window").unload(function(){$("#"+d.inlineId).append($("#TB_ajaxContent").children())});tb_position();$("#TB_load").remove();
/* doWhenThickBoxContentReady has to be called also in case of inline content, 
but we have to check for anything to make sure that this is only done once, 
if we would not check, this function is called two times! */
if($("#TB_window").css('display') == 'block') { 
	doWhenThickBoxContentReady(this, b);
};
$("#TB_window").css({display:"block"})}else{if(b.indexOf("TB_iframe")!=-1){tb_position();if($.browser.safari){$("#TB_load").remove();$("#TB_window").css({display:"block"})}}else{$("#TB_ajaxContent").load(b/* random parameter has to be removed because all URLs to the same pipeline have to be the same because of caching *//*+="&random="+(new Date().getTime())*/,function(){tb_position();$("#TB_load").remove();tb_init("#TB_ajaxContent a.thickbox");doWhenThickBoxContentReady(this);$("#TB_window").css({display:"block"})})}}}if(!d.modal){document.onkeyup=function(n){if(n==null){keycode=event.keyCode}else{keycode=n.which}if(keycode==27){tb_remove()}}}}catch(j){}}function tb_showIframe(){$("#TB_load").remove();$("#TB_window").css({display:"block"})}function tb_remove(){$("#TB_imageOff").unbind("click");$("#TB_closeWindowButton").unbind("click");$("#TB_window").fadeOut("fast",function(){$("#TB_window,#TB_overlay,#TB_HideSelect").trigger("unload").unbind().remove()});$("#TB_load").remove();if(typeof document.body.style.maxHeight=="undefined"){$("body","html").css({height:"auto",width:"auto"});$("html").css("overflow","")}document.onkeydown="";document.onkeyup="";doWhenThickBoxContentClose(this);return false}function tb_position(){$("#TB_window").css({marginLeft:"-"+parseInt((TB_WIDTH/2),10)+"px",width:TB_WIDTH+"px"});if(!(jQuery.browser.msie&&jQuery.browser.version<7)){$("#TB_window").css({marginTop:"-"+parseInt((TB_HEIGHT/2),10)+"px"})}}function tb_parseQuery(d){var e={};if(!d){return e}var a=d.split(/[;&]/);for(var c=0;c<a.length;c++){var g=a[c].split("=");if(!g||g.length!=2){continue}var b=unescape(g[0]);var f=unescape(g[1]);f=f.replace(/\+/g," ");e[b]=f}return e}function tb_getPageSize(){var c=document.documentElement;var a=window.innerWidth||self.innerWidth||(c&&c.clientWidth)||document.body.clientWidth;var b=window.innerHeight||self.innerHeight||(c&&c.clientHeight)||document.body.clientHeight;arrayPageSize=[a,b];return arrayPageSize}function tb_detectMacXFF(){var a=navigator.userAgent.toLowerCase();if(a.indexOf("mac")!=-1&&a.indexOf("firefox")!=-1){return true}};


if(navigator.appVersion.toLowerCase().indexOf("msie") != -1 && navigator.appVersion.toLowerCase().indexOf("6.0") != -1) {} else {
	// do not initialize sIFR for IE6

	/*	sIFR v2.0.7
		Copyright 2004 - 2008 Mark Wubben and Mike Davidson. Prior contributions by Shaun Inman and Tomas Jogin.
		This software is licensed under the CC-GNU LGPL <http://creativecommons.org/licenses/LGPL/2.1/>
		
		NOTE / SH: added workaround to fix Problems with sIFR and THICKBOX. Search for WORKAROUND to find this fix
	*/
	var hasFlash=function(){var a=6;if(navigator.appVersion.indexOf("MSIE")!=-1&&navigator.appVersion.indexOf("Windows")>-1){document.write('<script language="VBScript"\> \non error resume next \nhasFlash = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & '+a+'))) \n</script\> \n');if(window.hasFlash!=null)return window.hasFlash}if(navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"]&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){var b=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description;return parseInt(b.substr(b.indexOf(".")-2,2),10)>=a}return false}();String.prototype.normalize=function(){return this.replace(/\s+/g," ")};if(Array.prototype.push==null){Array.prototype.push=function(){var i=0,a=this.length,b=arguments.length;while(i<b){this[a++]=arguments[i++]}return this.length}}if(!Function.prototype.apply){Function.prototype.apply=function(a,b){var c=[];var d,e;if(!a)a=window;if(!b)b=[];for(var i=0;i<b.length;i++){c[i]="b["+i+"]"}e="a.__applyTemp__("+c.join(",")+");";a.__applyTemp__=this;d=eval(e);a.__applyTemp__=null;return d}}function named(a){return new named.Arguments(a)}named.Arguments=function(a){this.oArgs=a};named.Arguments.prototype.constructor=named.Arguments;named.extract=function(a,b){var c,d;var i=a.length;while(i--){d=a[i];if(d!=null&&d.constructor!=null&&d.constructor==named.Arguments){c=a[i].oArgs;break}}if(c==null)return;for(e in c)if(b[e]!=null)b[e](c[e]);return};var parseSelector=function(){var a=/^([^#.>`]*)(#|\.|\>|\`)(.+)$/;function r(s,t){var u=s.split(/\s*\,\s*/);var v=[];for(var i=0;i<u.length;i++)v=v.concat(b(u[i],t));return v}function b(c,d,e){c=c.normalize().replace(" ","`");var f=c.match(a);var g,h,i,j,k,n;var l=[];if(f==null)f=[c,c];if(f[1]=="")f[1]="*";if(e==null)e="`";if(d==null)d=document;switch(f[2]){case "#":k=f[3].match(a);if(k==null)k=[null,f[3]];g=document.getElementById(k[1]);if(g==null||(f[1]!="*"&&!o(g,f[1])))return l;if(k.length==2){l.push(g);return l}return b(k[3],g,k[2]);case ".":if(e!=">")h=m(d,f[1]);else h=d.childNodes;for(i=0,n=h.length;i<n;i++){g=h[i];if(g.nodeType!=1)continue;k=f[3].match(a);if(k!=null){if(g.className==null||g.className.match("(\\s|^)"+k[1]+"(\\s|$)")==null)continue;j=b(k[3],g,k[2]);l=l.concat(j)}else if(g.className!=null&&g.className.match("(\\s|^)"+f[3]+"(\\s|$)")!=null)l.push(g)}return l;case ">":if(e!=">")h=m(d,f[1]);else h=d.childNodes;for(i=0,n=h.length;i<n;i++){g=h[i];if(g.nodeType!=1)continue;if(!o(g,f[1]))continue;j=b(f[3],g,">");l=l.concat(j)}return l;case "`":h=m(d,f[1]);for(i=0,n=h.length;i<n;i++){g=h[i];j=b(f[3],g,"`");l=l.concat(j)}return l;default:if(e!=">")h=m(d,f[1]);else h=d.childNodes;for(i=0,n=h.length;i<n;i++){g=h[i];if(g.nodeType!=1)continue;if(!o(g,f[1]))continue;l.push(g)}return l}}function m(d,o){if(o=="*"&&d.all!=null)return d.all;return d.getElementsByTagName(o)}function o(p,q){return q=="*"?true:p.nodeName.toLowerCase().replace("html:", "")==q.toLowerCase()}return r}();var sIFR=function(){var a="http://www.w3.org/1999/xhtml";var b=false;var c=false;var d;var ah=[];var al=document;var ak=al.documentElement;var am=window;var au=al.addEventListener;var av=am.addEventListener;var f=function(){var g=navigator.userAgent.toLowerCase();var f={a:g.indexOf("applewebkit")>-1,b:g.indexOf("safari")>-1,c:navigator.product!=null&&navigator.product.toLowerCase().indexOf("konqueror")>-1,d:g.indexOf("opera")>-1,e:al.contentType!=null&&al.contentType.indexOf("xml")>-1,f:true,g:true,h:null,i:null,j:null,k:null};f.l=f.a||f.c;f.m=!f.a&&navigator.product!=null&&navigator.product.toLowerCase()=="gecko";if(f.m&&g.match(/.*gecko\/(\d{8}).*/))f.j=new Number(g.match(/.*gecko\/(\d{8}).*/)[1]);f.n=g.indexOf("msie")>-1&&!f.d&&!f.l&&!f.m;f.o=f.n&&g.match(/.*mac.*/)!=null;if(f.d&&g.match(/.*opera(\s|\/)(\d+\.\d+)/))f.i=new Number(g.match(/.*opera(\s|\/)(\d+\.\d+)/)[2]);if(f.n||(f.d&&f.i<7.6))f.g=false;if(f.a&&g.match(/.*applewebkit\/(\d+).*/))f.k=new Number(g.match(/.*applewebkit\/(\d+).*/)[1]);if(am.hasFlash&&(!f.n||f.o)){var aj=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description;f.h=parseInt(aj.substr(aj.indexOf(".")-2,2),10)}if(g.match(/.*(windows|mac).*/)==null||f.o||f.c||(f.d&&(g.match(/.*mac.*/)!=null||f.i<7.6))||(f.b&&f.h<7)||(!f.b&&f.a&&f.k<312)||(f.m&&f.j<20020523))f.f=false;if(!f.o&&!f.m&&al.createElementNS)try{al.createElementNS(a,"i").innerHTML=""}catch(e){f.e=true}f.p=f.c||(f.a&&f.k<312);return f}();function at(){return{bIsWebKit:f.a,bIsSafari:f.b,bIsKonq:f.c,bIsOpera:f.d,bIsXML:f.e,bHasTransparencySupport:f.f,bUseDOM:f.g,nFlashVersion:f.h,nOperaVersion:f.i,nGeckoBuildDate:f.j,nWebKitVersion:f.k,bIsKHTML:f.l,bIsGecko:f.m,bIsIE:f.n,bIsIEMac:f.o,bUseInnerHTMLHack:f.p}}if(am.hasFlash==false||!al.getElementsByTagName||!al.getElementById||(f.e&&(f.p||f.n)))return{UA:at()};function af(e){if((!k.bAutoInit&&(am.event||e)!=null)||!l(e))return;b=true;for(var i=0,h=ah.length;i<h;i++)j.apply(null,ah[i]);ah=[]}var k=af;function l(e){if(c==false||k.bIsDisabled==true||((f.e&&f.m||f.l)&&e==null&&b==false)||al.getElementsByTagName("body").length==0)return false;return true}function m(n){if(f.n)return n.replace(new RegExp("%\d{0}","g"),"%25");return n.replace(new RegExp("%(?!\d)","g"),"%25")}function as(p,q){return q=="*"?true:p.nodeName.toLowerCase().replace("html:", "")==q.toLowerCase()}function o(p,q,r,s,t){var u="";var v=p.firstChild;var w,x,y,z;if(s==null)s=0;if(t==null)t="";while(v){if(v.nodeType==3){z=v.nodeValue.replace("<","&lt;");switch(r){case "lower":u+=z.toLowerCase();break;case "upper":u+=z.toUpperCase();break;default:u+=z}}else if(v.nodeType==1){if(as(v,"a")&&!v.getAttribute("href")==false){if(v.getAttribute("target"))t+="&sifr_url_"+s+"_target="+v.getAttribute("target");t+="&sifr_url_"+s+"="+m(v.getAttribute("href")).replace(/&/g,"%26");u+='<a href="asfunction:_root.launchURL,'+s+'">';s++}else if(as(v,"br"))u+="<br/>";if(v.hasChildNodes()){y=o(v,null,r,s,t);u+=y.u;s=y.s;t=y.t}if(as(v,"a"))u+="</a>"}w=v;v=v.nextSibling;if(q!=null){x=w.parentNode.removeChild(w);q.appendChild(x)}}return{"u":u,"s":s,"t":t}}function A(B){if(al.createElementNS&&f.g)return al.createElementNS(a,B);return al.createElement(B)}function C(D,E,z){var p=A("param");p.setAttribute("name",E);p.setAttribute("value",z);D.appendChild(p)}function F(p,G){var H=p.className;if(H==null)H=G;else H=H.normalize()+(H==""?"":" ")+G;p.className=H}function aq(ar){var a=ak;if(k.bHideBrowserText==false)a=al.getElementsByTagName("body")[0];if((k.bHideBrowserText==false||ar)&&a)if(a.className==null||a.className.match(/\bsIFR\-hasFlash\b/)==null)F(a, "sIFR-hasFlash")}function j(I,J,K,L,M,N,O,P,Q,R,S,r,T){if(!l())return ah.push(arguments);aq();named.extract(arguments,{/*WORKAROUND / PART 1 - BEGIN*/sCustomWidth:function(ap){Z=ap},sCustomHeight:function(ap){Y=ap},/*WORKAROUND / PART 1 - END*/sSelector:function(ap){I=ap},sFlashSrc:function(ap){J=ap},sColor:function(ap){K=ap},sLinkColor:function(ap){L=ap},sHoverColor:function(ap){M=ap},sBgColor:function(ap){N=ap},nPaddingTop:function(ap){O=ap},nPaddingRight:function(ap){P=ap},nPaddingBottom:function(ap){Q=ap},nPaddingLeft:function(ap){R=ap},sFlashVars:function(ap){S=ap},sCase:function(ap){r=ap},sWmode:function(ap){T=ap}});var U=parseSelector(I);if(U.length==0)return false;if(S!=null)S="&"+S.normalize();else S="";if(K!=null)S+="&textcolor="+K;if(M!=null)S+="&hovercolor="+M;if(M!=null||L!=null)S+="&linkcolor="+(L||K);if(O==null)O=0;if(P==null)P=0;if(Q==null)Q=0;if(R==null)R=0;if(N==null)N="#FFFFFF";if(T=="transparent")if(!f.f)T="opaque";else N="transparent";if(T==null)T="";var p,V,W,X,Y,Z,aa,ab,ac;var ad=null;for(var i=0,h=U.length;i<h;i++){p=U[i];if(p.className!=null&&p.className.match(/\bsIFR\-replaced\b/)!=null)continue;V=p.offsetWidth-R-P;W=p.offsetHeight-O-Q;aa=A("span");/*WORKAROUND / PART 2 - BEGIN*/if(Z!=null && Z!="" && Y!=null && Y!=""){V=Z;W=Y;}else if(V==0 && W==0){V=600;W=30;}/*WORKAROUND / PART 2 - END*/aa.className="sIFR-alternate";ac=o(p,aa,r);Z="txt="+m(ac.u).replace(/\+/g,"%2B").replace(/&/g,"%26").replace(/\"/g, "%22").normalize() + S + "&w=" + V + "&h=" + W + ac.t;F(p,"sIFR-replaced");if(ad==null||!f.g){if(!f.g){if(!f.n)p.innerHTML=['<embed class="sIFR-flash" type="application/x-shockwave-flash" src="',J,'" quality="best" wmode="',T,'" bgcolor="',N,'" flashvars="',Z,'" width="',V,'" height="',W,'" sifr="true"></embed>'].join("");else p.innerHTML=['<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" sifr="true" width="',V,'" height="',W,'" class="sIFR-flash"><param name="movie" value="',J,'"></param><param name="flashvars" value="',Z,'"></param><param name="quality" value="best"></param><param name="wmode" value="',T,'"></param><param name="bgcolor" value="',N,'"></param> </object>'].join('')}else{if(f.d){ab=A("object");ab.setAttribute("data",J);C(ab,"quality","best");C(ab,"wmode",T);C(ab,"bgcolor",N)}else{ab=A("embed");ab.setAttribute("src",J);ab.setAttribute("quality","best");ab.setAttribute("flashvars",Z);ab.setAttribute("wmode",T);ab.setAttribute("bgcolor",N)}ab.setAttribute("sifr","true");ab.setAttribute("type","application/x-shockwave-flash");ab.className="sIFR-flash";if(!f.l||!f.e)ad=ab.cloneNode(true)}}else ab=ad.cloneNode(true);if(f.g){if(f.d)C(ab,"flashvars",Z);else ab.setAttribute("flashvars",Z);ab.setAttribute("width",V);ab.setAttribute("height",W);ab.style.width=V+"px";ab.style.height=W+"px";p.appendChild(ab)}p.appendChild(aa);if(f.p)p.innerHTML+=""}if(f.n&&k.bFixFragIdBug)setTimeout(function(){al.title=d},0)}function ai(){d=al.title}function ae(){if(k.bIsDisabled==true)return;c=true;if(k.bHideBrowserText)aq(true);if(am.attachEvent)am.attachEvent("onload",af);else if(!f.c&&(al.addEventListener||am.addEventListener)){if(f.a&&f.k>=132&&am.addEventListener)am.addEventListener("load",function(){setTimeout("sIFR({})",1)},false);else{if(al.addEventListener)al.addEventListener("load",af,false);if(am.addEventListener)am.addEventListener("load",af,false)}}else if(typeof am.onload=="function"){var ag=am.onload;am.onload=function(){ag();af()}}else am.onload=af;if(!f.n||am.location.hash=="")k.bFixFragIdBug=false;else ai()}k.UA=at();k.bAutoInit=true;k.bFixFragIdBug=true;k.replaceElement=j;k.updateDocumentTitle=ai;k.appendToClassName=F;k.setup=ae;k.debug=function(){aq(true)};k.debug.replaceNow=function(){ae();k()};k.bIsDisabled=false;k.bHideBrowserText=true;return k}();
	if(typeof sIFR == "function" && !sIFR.UA.bIsIEMac && (!sIFR.UA.bIsWebKit || sIFR.UA.nWebKitVersion >= 100)){
		sIFR.setup();
	};
	/*	sIFR 2.0.1 Official Add-ons 1.2
		Copyright 2005 Mark Wubben
		This software is licensed under the CC-GNU LGPL <http://creativecommons.org/licenses/LGPL/2.1/>
	*/
	if(typeof sIFR=="function")(function(){var j=document;var h=j.documentElement;sIFR.removeDecoyClasses=function(){function a(b){if(b&&b.className!=null)b.className=b.className.replace(/\bsIFR-hasFlash\b/,"")}return function(){a(h);a(j.getElementsByTagName("body")[0])}}();sIFR.preferenceManager={storage:{sCookieId:"sifr",set:function(a){var b=new Date();b.setFullYear(b.getFullYear()+3);j.cookie=[this.sCookieId,"=",a,";expires=",b.toGMTString(),";path=/"].join("")},get:function(){var a=j.cookie.match(new RegExp(";?"+this.sCookieId+"=([^;]+);?"));if(a!=null&&a[1]=="false")return false;else return true},reset:function(){var a=new Date();a.setFullYear(a.getFullYear()-1);j.cookie=[this.sCookieId,"=true;expires=",a.toGMTString(),";path=/"].join("")}},disable:function(){this.storage.set(false)},enable:function(){this.storage.set(true)},test:function(){return this.storage.get()}};if(sIFR.preferenceManager.test()==false){sIFR.bIsDisabled=true;sIFR.removeDecoyClasses()}sIFR.rollback=function(){function a(b){var c,d,e,f,g,h;var l=parseSelector(b);var i=l.length-1;var m=false;while(i>=0){c=l[i];l.length--;d=c.parentNode;if(c.getAttribute("sifr")=="true"){h=0;while(h<d.childNodes.length){c=d.childNodes[h];if(c.className=="sIFR-alternate"){e=c;h++;continue}d.removeChild(c)}if(e!=null){f=e.firstChild;while(f!=null){g=f.nextSibling;d.appendChild(e.removeChild(f));f=g}d.removeChild(e)}if(!sIFR.UA.bIsXML&&sIFR.UA.bUseInnerHTMLHack)d.innerHTML+="";d.className=d.className.replace(/\bsIFR\-replaced\b/,"")};m=true;i--}return m}return function(k){named.extract(arguments,{sSelector:function(a){k=a}});if(k==null)k="";else k+=">";sIFR.removeDecoyClasses();sIFR.bHideBrowserText=false;if(a(k+"embed")==false)a(k+"object")}}()})();
}

/*
 * jQuery Tooltip plugin 1.3
 *
 * http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/
 * http://docs.jquery.com/Plugins/Tooltip
 *
 * Copyright (c) 2006 - 2008 J�rn Zaefferer
 *
 * $Id: jquery.tooltip.js 5741 2008-06-21 15:22:16Z joern.zaefferer $
 * 
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */
 // <span class="icon"></span> and <div class="bottom"></div> have been added to support design
(function(e){var b={},k,m,o,j=e.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),a=false;e.tooltip={blocked:false,defaults:{delay:200,fade:false,showURL:true,extraClass:"",top:15,left:15,id:"tooltip",hideEvent:"mouseout click"},block:function(){e.tooltip.blocked=!e.tooltip.blocked}};e.fn.extend({tooltip:function(p){p=e.extend({},e.tooltip.defaults,p);h(p);return this.each(function(){e.data(this,"tooltip",p);this.tOpacity=b.parent.css("opacity");this.tooltipText=this.title;e(this).removeAttr("title");this.alt=""}).mouseover(l).bind(p.hideEvent,f)},fixPNG:j?function(){return this.each(function(){var p=e(this).css("backgroundImage");if(p.match(/^url\(["']?(.*\.png)["']?\)$/i)){p=RegExp.$1;e(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+p+"')"}).each(function(){var q=e(this).css("position");if(q!="absolute"&&q!="relative"){e(this).css("position","relative")}})}})}:function(){return this},unfixPNG:j?function(){return this.each(function(){e(this).css({filter:"",backgroundImage:""})})}:function(){return this},hideWhenEmpty:function(){return this.each(function(){e(this)[e(this).html()?"show":"hide"]()})},url:function(){return this.attr("href")||this.attr("src")}});function h(p){if(b.parent){return}b.parent=e('<div id="'+p.id+'"><h3></h3><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide();if(e.fn.bgiframe){b.parent.bgiframe()}b.title=e("h3",b.parent);b.body=e("div.body",b.parent);b.url=e("div.url",b.parent)}function c(p){return e.data(p,"tooltip")}function g(p){if(c(this).delay){o=setTimeout(n,c(this).delay)}else{n()}a=!!c(this).track;e(document.body).bind("mousemove",d);d(p)}function l(){if(e.tooltip.blocked||this==k||(!this.tooltipText&&!c(this).bodyHandler)){return}k=this;m=this.tooltipText;if(c(this).bodyHandler){b.title.hide();var s=c(this).bodyHandler.call(this);if(s.nodeType||s.jquery){b.body.empty().append(s)}else{b.body.html(s)}b.body.show()}else{if(c(this).showBody){var r=m.split(c(this).showBody);b.title.html(r.shift()).show();b.body.empty();for(var q=0,p;(p=r[q]);q++){if(q>0){b.body.append("<br/>")}b.body.append(p)}b.body.hideWhenEmpty()}else{b.title.html(m).show();b.body.hide()}}if(c(this).showURL&&e(this).url()){b.url.html(e(this).url().replace("http://","")).show()}else{b.url.hide()}b.parent.addClass(c(this).extraClass);if(c(this).fixPNG){b.parent.fixPNG()}g.apply(this,arguments)}function n(){o=null;if((!j||!e.fn.bgiframe)&&c(k).fade){if(b.parent.is(":animated")){b.parent.stop().show().fadeTo(c(k).fade,k.tOpacity)}else{b.parent.is(":visible")?b.parent.fadeTo(c(k).fade,k.tOpacity):b.parent.fadeIn(c(k).fade)}}else{b.parent.show()}d()}function d(s){if(e.tooltip.blocked){return}if(s&&s.target.tagName=="OPTION"){return}if(!a&&b.parent.is(":visible")){e(document.body).unbind("mousemove",d)}if(k==null){e(document.body).unbind("mousemove",d);return}b.parent.removeClass("viewport-right").removeClass("viewport-bottom");var u=b.parent[0].offsetLeft;var t=b.parent[0].offsetTop;if(s){u=s.pageX+c(k).left;t=s.pageY+c(k).top;var q="auto";if(c(k).positionLeft){q=e(window).width()-u;u="auto"}b.parent.css({left:u,right:q,top:t})}var p=i(),r=b.parent[0];if(p.x+p.cx<r.offsetLeft+r.offsetWidth){u-=r.offsetWidth+20+c(k).left;b.parent.css({left:u+"px"}).addClass("viewport-right")}if(p.y+p.cy<r.offsetTop+r.offsetHeight){t-=r.offsetHeight+20+c(k).top;b.parent.css({top:t+"px"}).addClass("viewport-bottom")}}function i(){return{x:e(window).scrollLeft(),y:e(window).scrollTop(),cx:e(window).width(),cy:e(window).height()}}function f(r){if(e.tooltip.blocked){return}if(o){clearTimeout(o)}k=null;var q=c(this);function p(){b.parent.removeClass(q.extraClass).hide().css("opacity","")}if((!j||!e.fn.bgiframe)&&q.fade){if(b.parent.is(":animated")){b.parent.stop().fadeTo(q.fade,0,p)}else{b.parent.stop().fadeOut(q.fade,p)}}else{p()}if(c(this).fixPNG){b.parent.unfixPNG()}}})(jQuery);

/**
 * jQuery history event v0.1
 * Copyright (c) 2008 Tom Rodenberg <tarodenberg gmail com>
 * Licensed under the GPL (http://www.gnu.org/licenses/gpl.html) license.
 */
(function($){var currentHash,previousNav,timer,hashTrim=/^.*#/;var msie={iframe:null,getDoc:function(){return msie.iframe.contentWindow.document},getHash:function(){return msie.getDoc().location.hash},setHash:function(hash){var d=msie.getDoc();d.open();d.close();d.location.hash=hash}};var historycheck=function(){var hash=msie.iframe?msie.getHash():location.hash;if(hash!=currentHash){currentHash=hash;if(msie.iframe){location.hash=currentHash}var current=$.history.getCurrent();$.event.trigger('history',[current,previousNav]);previousNav=current}};$.history={add:function(hash){hash='#'+hash.replace(hashTrim,'');if(currentHash!=hash){var previous=$.history.getCurrent();location.hash=currentHash=hash;if(msie.iframe){msie.setHash(currentHash)}$.event.trigger('historyadd',[$.history.getCurrent(),previous])}if(!timer){timer=setInterval(historycheck,100)}},getCurrent:function(){return currentHash.replace(hashTrim,'')}};$.fn.history=function(fn){$(this).bind('history',fn)};$.fn.historyadd=function(fn){$(this).bind('historyadd',fn)};$(function(){currentHash=location.hash;if($.browser.msie){msie.iframe=$('<iframe style="display:none" src="javascript:false;"></iframe>').prependTo('body')[0];msie.setHash(currentHash);currentHash=msie.getHash()}})})(jQuery);

/** 
 * Mousewheel
 * Copyright (c) 2006 Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
 * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
 *
 * $LastChangedDate: 2007-12-14 23:57:10 -0600 (Fri, 14 Dec 2007) $
 * $Rev: 4163 $
 *
 * Version: 3.0
 * Requires: jQuery 1.2.2+
 *
 * St. Willschuetz @ 18.03.2009:
 * See ...
 * http://plugins.jquery.com/project/mousewheel
 * http://github.com/triplef/jquery-mousewheel/commit/ce64de44484dfae84cc3003e18ed0abbea21d9d8
 *
 */
(function($){$.event.special.mousewheel={setup:function(){var handler=$.event.special.mousewheel.handler;if($.browser.mozilla)$(this).bind('mousemove.mousewheel',function(event){$.data(this,'mwcursorposdata',{pageX:event.pageX,pageY:event.pageY,clientX:event.clientX,clientY:event.clientY});});if(this.addEventListener)this.addEventListener(($.browser.mozilla?'DOMMouseScroll':'mousewheel'),handler,false);else
this.onmousewheel=handler;},teardown:function(){var handler=$.event.special.mousewheel.handler;$(this).unbind('mousemove.mousewheel');if(this.removeEventListener)this.removeEventListener(($.browser.mozilla?'DOMMouseScroll':'mousewheel'),handler,false);else
this.onmousewheel=function(){};$.removeData(this,'mwcursorposdata');},handler:function(event){var args=Array.prototype.slice.call(arguments,1);event=$.event.fix(event||window.event);$.extend(event,$.data(this,'mwcursorposdata')||{});var delta=0,returnValue=true;if(event.wheelDelta)delta=event.wheelDelta/120;if(event.detail)delta=-event.detail/3;if($.browser.opera)delta=-event.wheelDelta;event.data=event.data||{};event.type="mousewheel";args.unshift(delta);args.unshift(event);return $.event.handle.apply(this,args);}};$.fn.extend({mousewheel:function(fn){return fn?this.bind("mousewheel",fn):this.trigger("mousewheel");},unmousewheel:function(fn){return this.unbind("mousewheel",fn);}});})(jQuery);

/**
 * Cookie plugin
 *
 * Copyright (c) 2006 Klaus Hartl (stilbuero.de)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 */
jQuery.cookie=function(b,j,m){if(typeof j!="undefined"){m=m||{};if(j===null){j="";m.expires=-1}var e="";if(m.expires&&(typeof m.expires=="number"||m.expires.toUTCString)){var f;if(typeof m.expires=="number"){f=new Date();f.setTime(f.getTime()+(m.expires*24*60*60*1000))}else{f=m.expires}e="; expires="+f.toUTCString()}var l=m.path?"; path="+(m.path):"";var g=m.domain?"; domain="+(m.domain):"";var a=m.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(j),e,l,g,a].join("")}else{var d=null;if(document.cookie&&document.cookie!=""){var k=document.cookie.split(";");for(var h=0;h<k.length;h++){var c=jQuery.trim(k[h]);if(c.substring(0,b.length+1)==(b+"=")){d=decodeURIComponent(c.substring(b.length+1));break}}}return d}};

/**
 * Equal Heights Plugin
 * Equalize the heights of elements. Great for columns or any elements
 * that need to be the same size (floats, etc).
 * 
 * Version 1.0
 * Updated 12/10/2008
 *
 * Copyright (c) 2008 Rob Glazebrook (cssnewbie.com) 
 *
 * Usage: $(object).equalHeights([minHeight], [maxHeight]);
 * 
 * Example 1: $(".cols").equalHeights(); Sets all columns to the same height.
 * Example 2: $(".cols").equalHeights(400); Sets all cols to at least 400px tall.
 * Example 3: $(".cols").equalHeights(100,300); Cols are at least 100 but no more
 * than 300 pixels tall. Elements with too much content will gain a scrollbar.
 *
 * http://www.cssnewbie.com/equalheights-jquery-plugin/
 * 
 */

(function($) {
	$.fn.equalHeights = function(minHeight, maxHeight) {
		tallest = (minHeight) ? minHeight : 0;
		this.each(function() {
			if($(this).height() > tallest) {
				tallest = $(this).height();
			}
		});
		if((maxHeight) && tallest > maxHeight) tallest = maxHeight;
		return this.each(function() {
			// overflow: auto creates not wanted scrollbars
			$(this).height(tallest); 
			// .css("overflow","auto");
		});
	}
})(jQuery);

/*
 * slideViewerPro 1.0
 * Examples and documentation at: 
 * http://www.gcmingati.net/wordpress/wp-content/lab/jquery/svwt/
 * 2009 Gian Carlo Mingati
 * Version: 1.0.4 (12-AUGUST-2009)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 * Requires:
 * jQuery v1.3.2 or later
 * Option:
 * jQuery Timers plugin | plugins.jquery.com/project/timers (for autoslide mode)
 * 
 */
/*!
 * slideViewerPro 1.0
 * Examples and documentation at: 
 * http://www.gcmingati.net/wordpress/wp-content/lab/jquery/svwt/
 * 2009 Gian Carlo Mingati
 * Version: 1.0.4 (12-AUGUST-2009)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 * Requires:
 * jQuery v1.3.2 or later
 * Option:
 * jQuery Timers plugin | plugins.jquery.com/project/timers (for autoslide mode)
 * 
 */
 
 /*
  * IMPORTANT: We have to change the slider script, that's why the script is not used in a minified version.
  * The changes are marked with "// changed: "
  */
 
jQuery.extend( jQuery.easing, // from the jquery.easing plugin
{
	easeInOutExpo: function (x, t, b, c, d) {
		if (t==0) return b;
		if (t==d) return b+c;
		if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
		return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
	}
});
// changed: a preloader is not needed
/*jQuery(function(){
   jQuery("div.svwp").prepend("<img src='images/svwloader.gif' class='ldrgif' alt='loading...'/ >"); //change with YOUR loader image path   
});*/
var j = 0;
jQuery.fn.slideViewerPro = function(settings) {
	  settings = jQuery.extend({
			galBorderWidth: 6,
			buttonsWidth: 20,
			galBorderColor: "#ff0000",
			thumbsBorderColor: "#d8d8d8",
			thumbsActiveBorderColor: "#ff0000",
			buttonsTextColor: "#ff0000",
			thumbsType: 'default',
			thumbsPos: {left: 0, top: 0},
			thumbsControl:false,
			easeTime: 750,
			asTimer: 4000,
			thumbs: 5,
			thumbsVis: true,
			easeFunc: "easeInOutExpo",
			leftButtonInner: "-", //could be an image "<img src='images/larw.gif' />" or an escaped char as "&larr";
			rightButtonInner: "+", //could be an image or an escaped char as "&rarr";
			autoslide: false,
			typo: false,
			typoFullOpacity: 0.9,
			shuffle: false,
			infinite : true,
			thumbsPos: {left:0,top:0},
			thumbsAlignment: 'horizontal',
			thumbsMargin: 'auto',
			thumbWidth: 20,
			thumbHeight: 20,
			thumbsPercentReduction: 12,
			width: 1000,
			height: 450,
			leftCnt: 0,
			rightCnt: 0,
			thumbShowSlideOnHover: false,
			startSlide: 0
		}, settings);

	var setActiveThumb = function(container, i){
		/*
		 * set active thumb by adding the class "active" and setting the image to a "..._hover.[gif|png|jpg]"
		 * we remove "_hover" from the image source and the class "active" before we set the element active
		 */	
		var thumbs = container.children(),
		length = settings.infinite?thumbs.length-1:thumbs.length,
		regEx = /_hover(\..{3})$/;
		while(length--){
			var thumb = thumbs.eq(length).removeClass('active').find('img'),
				src = thumb.attr('src');
			src.match(regEx);
			thumb.attr('src',src.replace(regEx,RegExp.$1));
		}
		var img = thumbs.eq(i<container.children().length-1? i : (settings.infinite?0:i)).addClass('active').find('img'),
			src = img.attr('src');
		regEx = /(\..{3}$)/;
		src.match(regEx);
		img.attr('src',src.replace(regEx, '_hover' + RegExp.$1));
	};
		
		
	return this.each(function(){
		var container = jQuery(this),
		listContainer = container.find("ul"),
		startSlide = settings.startSlide >=  listContainer.children('li').length?0:settings.startSlide;
		(!settings.shuffle) ? null : shuffle(listContainer.children("li"));
		container
		.find("img.ldrgif").remove()
		.end()
		.removeClass("svwp")
		.addClass("slideViewer");

		var initVars = function(){
			listContainer = container.find("ul");
			container = jQuery(this);
			thumbSlider = jQuery("div#thumbSlider" + j + ":first");
			thumbContainer = thumbSlider.find("ul:first");
		}
		
		/*
		 * to enable an inifite scroll the first slide has to be copied behind the last slide
		 */
		var numberOfExtraSlides = 0;
		if(settings.infinite){
			listContainer.append(listContainer.children("li:first").clone().removeClass('active'));
			numberOfExtraSlides = 1;
		}
		var pictWidth = settings.width,
		pictHeight = settings.height,
		pictEls = listContainer.children("li").length;
		
		/*
		 * if more thumbs then pictsEls available should be displayed
		 * the thumbs are limited to the picsEls number
		 */
		if(!(pictEls >= settings.thumbs && settings.thumbs)){
			settings.thumbs = pictEls - numberOfExtraSlides;
		}
		
		var slideViewerWidth = pictWidth*pictEls,
		timer = 0,
		/*
		 * switch to the next slide
		 */
		switchSlide = function(i , callback){
			listContainer
			.animate( { left: -(pictWidth*i) },
						settings.easeTime,
						settings.easeFunc,
						function(){
							setActiveThumb(thumbContainer, i);
							container
							.find("span.typo")
							.animate({"opacity": settings.typoFullOpacity}, 250)
							callback();
						})
			.children('li').removeClass('active')
			.eq(i).addClass('active');
			return false;
		},
		/*
		 * start the autoslide and keep it going
		 */
		autoslide = function(idx){
			timer = setTimeout(function(){
				if(idx >= listContainer.children('li').length && numberOfExtraSlides){
					listContainer.css('left', 0);
					idx = 1;
				}
				switchSlide(idx, 
					function(){
						if(settings.autoslide){
							autoslide(idx + 1);
						}
					}
				);
			}, settings.asTimer);
		},
		showSlide = function(idx,restart){
				/*
				 * set viewport to the desired slide
				 */
				var cnt = -(settings.width*idx);
				listContainer.stop(true,true).css('left', cnt);
				/*
				 * stop autoslide
				 */
				stopAutoslide();
				setActiveThumb(thumbContainer, idx);
				if(settings.autoslide && restart){
					/*
					 * start autoslide again
					 */
					autoslide(idx + 1);
				}
		},
		stopAutoslide = function(){clearTimeout(timer);};
		
		// changed: add height:"+ pictHeight +"px; to be sure to render it correctly at page reload with overflow: hidden; set
		listContainer
		.css("width" , slideViewerWidth)
		.wrap(jQuery("<div style='width:"+ pictWidth +"px; height:"+ pictHeight +"px; overflow: hidden; position: relative; top: 0; left: 0;'>"));
		// .css({"height": pictHeight});
		
		// var myScroll = new iScroll(),{vScrollbar:false, hScrollbar:false});
		if(settings.typo){
			jQuery(this).find("img").each(function(z) {
				jQuery(this).after("<span class='typo' style='position: absolute; width:"+(pictWidth-12)+"px; margin: 0 0 0 -"+pictWidth+"px'>"+jQuery(this).attr("alt")+"<\/span>");
			});
		}
		
		/*
		 * do the thumbs stuff:
		 * create a div-container for the thumbSlider
		 */
		container.after("<div class='thumbSlider' id='thumbSlider" + j + "'><ul><\/ul><\/div>");
		if(settings.thumbsControl){
			jQuery(this).next().after("<a href='#' class='left' id='left" + j + "'><span>"+settings.leftButtonInner+"</span><\/a><a href='#' class='right' id='right" + j + "'><span>"+settings.rightButtonInner+"<\/span><\/a>");
		}
		var uiDisplay = (settings.thumbsVis)? "block":"none",
		thumbSlider = jQuery("div#thumbSlider" + j + ":first"),
		thumbContainer = thumbSlider.find("ul:first");
		
		createThumbs(thumbSlider, thumbContainer, container);
		/*
		 * set active thumb initialy
		 */
		setActiveThumb(thumbContainer,startSlide);
		
		jQuery(thumbSlider, "a#left" + j + ", a#right" + j)
		.wrapAll("<div class='thumbGallery' style='width:"+ thumbContainer.width() +"px; display: "+uiDisplay+"' id='ui"+j+"'><\/div>");
		j++;
		
		/*
		 * if autolide then trigger the slide switch
		 */
		if(settings.autoslide){
			autoslide(startSlide);
		}
		
		var myScroll = {},
		isFirstScrollStart = true,
		hasScrollStarted = false,
		scrollConfig = {
							snap: 'li',
							momentum:false,
							vScrollbar:false,
							useTransform:false,
							zoom: true,
							onBeforeScrollStart: function(e){
								if((document.documentElement.clientWidth/window.innerWidth)<1){
									e.preventDefault();
								}
							},
							onScrollStart: function(){
								listContainer.stop(true,true);
								hasScrollStarted = true;
								if(isFirstScrollStart){
									stopAutoslide();
									container.stop(true,true);
									isFirstScrollStart = false;
								}
							},
							onScrollEnd: function(){
								if(hasScrollStarted){
									listContainer
									.children('li').removeClass('active')
									.eq(this.currPageX).addClass('active');
									if(settings.infinite && (listContainer.children('li').length-1 === this.currPageX)){
										showSlide(0,false);
										myScroll.destroy();
										myScroll = new iScroll(container.children()[0],scrollConfig);
									}
									setActiveThumb(thumbContainer,this.currPageX);
								}
								hasScrollStarted = false;
							}
						};
		if (isTouchDevice) {
			// only on touch devices: initialize scrolling plugin
			myScroll = new iScroll(container.children()[0],scrollConfig);
		}
	/*
	 * do the thumbs stuff:
	 * create a create the thumbs in the thumb slider
	 * assign event-handler
	 * @param thumbSlider
	 * @param thumbContainer
	 * @param container : dom-element that contains the whole thumbgallery
	 */
	function createThumbs(thumbSlider, thumbContainer, container){
		var contBorder = settings.galBorderWidth,
		thumbs = settings.thumbs,
		thumbsItems = '';
		/*
		 * dependend on the choosen thumb type create the thumbSlider items
		 */
		 switch(settings.thumbsType){
			case 'numbered': 
				//make numbered thumbs
				for(i=1;i<=thumbs;i++){
					thumbsItems += '<li><a href="#">' + i + '</a></li>';
				}
				break;
			case 'custom':
				//use custom img
				var thumbsEl = thumbContainer.parent().siblings('ul.thumbs:first').remove().children();
				thumbsEl.find("img").removeAttr("onmouseover").removeAttr("onmouseout");
				for(i=0;i<thumbs;i++){
					thumbsItems += '<li>' + thumbsEl.eq(i).html() + '</li>';
				}
				break;
			default:
				//make image slider
				var imgs = container.find("ul>li:has(:not(.cmsWrapper,.htmlContent))");
				settings.thumbWidth = Math.round(settings.width*settings.thumbsPercentReduction/100);
				settings.thumbHeight =  Math.round(settings.height*settings.thumbsPercentReduction/100);
				
				//set the imgs as thumbs
				//doesn't work with wrapper or html element
				for(i=0;i<thumbs;i++) {
					var img = imgs.eq(i).find("img");
					thumbsItems += "<li><a title='" + img.attr("alt") + "' href='#'><img width='"+ settings.thumbWidth +"' height='"+ settings.thumbHeight +"' src='" + img.attr("src") + "' /><\/a></li>";
				};
				break;
		}
		//in case of touchdevices remove links
		if(isTouchDevice){
			thumbsItems = thumbsItems.replace(/<a href="(?:[^\\">]+|\\.)*">/,'<a href="#">');
		}
		thumbContainer.html(thumbsItems);
		/*
		 * if the scrolling should be inifinit
		 * a copy of the first slider element is needed to (it's kind of a hack)
		 */
		if(settings.infinite){
			thumbContainer.append('<li style="display:none;"><a/></li>');
		}
		
		thumbSlider.find("li").each(function(idx) {
			var self = jQuery(this);
			if(isTouchDevice){
				self
				.bind('click', function(e){
					stopAutoslide();
					myScroll.scrollToPage(idx,0,500);
					setActiveThumb(thumbContainer,idx);
					e.stopPropagation()
					return false;
				});
			}else{
				if(settings.thumbShowSlideOnHover){
					self
					.hover(function(e){
						showSlide(idx,false);
					},function(e){
						if(settings.autoslide){
							autoslide(idx+1);
						}
					});
				}else{
					self
					.bind('click', function(e){
						showSlide(idx,false);
						jQuery(this).one('mouseleave',function(e){
							if(settings.autoslide){
								autoslide(idx+1);
							}
						});
					});
				}
			}
		});
		
		// changed: is set in CSS
		/* jQuery(".slideViewer a img").css({border: "0"}); */
		if(settings.typo)
		{
			self.find("span.typo").each(function(z) {
				var self = jQuery(this);
				self.css({marginTop: (pictHeight-self.innerHeight()), opacity: settings.typoFullOpacity});
			});
		}
		jQuery("div#svwp"+ j).css({border: settings.galBorderWidth +"px solid "+settings.galBorderColor});
		
		/*
		 * style thumbs slider
		 */
		switch(settings.thumbsAlignment)
		{
			case 'vertical':
				thumbSlider
				.css({
					position: "absolute",
					left: settings.thumbsPos.left,
					top: settings.thumbsPos.top,
					width: settings.thumbWidth, /* only as wide as the thumbs are */
					// height: thumbsHeight,
					// textAlign: "center",
					overflow: "hidden",
					margin: "0 auto"});
				break;
			case 'horizontal':
				thumbSlider
				.css({
					position: "absolute",
					left: settings.thumbsPos.left,
					top: settings.thumbsPos.top,
					width: thumbs*settings.thumbWidth,
					// height: thumbsHeight,
					// textAlign: "center",
					overflow: "hidden",
					margin: "0 auto"});
				break;
		}
		
		/*
		 * style thumb list
		 */
		thumbContainer
		.css({
			"list-style-type": "none",
			"padding": 0,
			"margin": 0})
		.children()
		.css({
			width:settings.thumbWidth+'px',
			height:settings.thumbHeight+'px',
			margin: settings.thumbsMargin});
		
		switch(settings.thumbsAlignment)
		{
			case 'vertical':
				thumbContainer
				.css("width", settings.thumbWidth+'px')
				.children()
				.css('float', 'none');
				break;
			case 'horizontal':
				thumbContainer
				.css("width", settings.thumbWidth*thumbs)
				.children()
				.css('float', 'left');
				break;
		}
	}
	
	function shuffle(a) {
		var i = a.size();
		while (--i) {
			var j = Math.floor(Math.random() * (i));
			var tmp = a.slice(i, i+1);
			a.slice(j, j+1).insertAfter(tmp);
		}
	}
  });
};

// slideViewerPro plugin - if::
// autoslide: true, // by default the slider do not slides automatically. When set to true REQUIRES the jquery.timers plugin 

/**
 * jQuery.timers - Timer abstractions for jQuery
 * Written by Blair Mitchelmore (blair DOT mitchelmore AT gmail DOT com)
 * Licensed under the WTFPL (http://sam.zoy.org/wtfpl/).
 * Date: 2009/10/16
 *
 * @author Blair Mitchelmore
 * @version 1.2
 *
 **/
jQuery.fn.extend({everyTime:function(a,b,c,d){return this.each(function(){jQuery.timer.add(this,a,b,c,d)})},oneTime:function(a,b,c){return this.each(function(){jQuery.timer.add(this,a,b,c,1)})},stopTime:function(a,b){return this.each(function(){jQuery.timer.remove(this,a,b)})}});jQuery.extend({timer:{global:[],guid:1,dataKey:"jQuery.timer",regex:/^([0-9]+(?:\.[0-9]*)?)\s*(.*s)?$/,powers:{ms:1,cs:10,ds:100,s:1000,das:10000,hs:100000,ks:1000000},timeParse:function(c){if(c==undefined||c==null){return null}var a=this.regex.exec(jQuery.trim(c.toString()));if(a[2]){var b=parseFloat(a[1]);var d=this.powers[a[2]]||1;return b*d}else{return c}},add:function(d,b,c,f,h){var a=0;if(jQuery.isFunction(c)){if(!h){h=f}f=c;c=b}b=jQuery.timer.timeParse(b);if(typeof b!="number"||isNaN(b)||b<0){return}if(typeof h!="number"||isNaN(h)||h<0){h=0}h=h||0;var g=jQuery.data(d,this.dataKey)||jQuery.data(d,this.dataKey,{});if(!g[c]){g[c]={}}f.timerID=f.timerID||this.guid++;var e=function(){if((++a>h&&h!==0)||f.call(d,a)===false){jQuery.timer.remove(d,c,f)}};e.timerID=f.timerID;if(!g[c][f.timerID]){g[c][f.timerID]=window.setInterval(e,b)}this.global.push(d)},remove:function(c,b,d){var e=jQuery.data(c,this.dataKey),a;if(e){if(!b){for(b in e){this.remove(c,b,d)}}else{if(e[b]){if(d){if(d.timerID){window.clearInterval(e[b][d.timerID]);delete e[b][d.timerID]}}else{for(var d in e[b]){window.clearInterval(e[b][d]);delete e[b][d]}}for(a in e[b]){break}if(!a){a=null;delete e[b]}}}for(a in e){break}if(!a){jQuery.removeData(c,this.dataKey)}}}}});jQuery(window).bind("unload",function(){jQuery.each(jQuery.timer.global,function(a,b){jQuery.timer.remove(b)})});


/**
* hoverIntent r5 // 2007.03.27 // jQuery 1.1.2+
* <http://cherne.net/brian/resources/jquery.hoverIntent.html>
* 
* @param  f  onMouseOver function || An object with configuration options
* @param  g  onMouseOut function  || Nothing (use configuration options object)
* @author    Brian Cherne <brian@cherne.net>
*/
(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev]);}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev]);};var handleHover=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this){try{p=p.parentNode;}catch(e){p=this;}}if(p==this){return false;}var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);}if(e.type=="mouseover"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob);},cfg.timeout);}}};return this.mouseover(handleHover).mouseout(handleHover);};})(jQuery);

// Cufon
/*
 * Copyright (c) 2009 Simo Kinnunen.
 * Licensed under the MIT license.
 *
 * @version 1.09i
 */
var Cufon=(function(){var m=function(){return m.replace.apply(null,arguments)};var x=m.DOM={ready:(function(){var C=false,E={loaded:1,complete:1};var B=[],D=function(){if(C){return}C=true;for(var F;F=B.shift();F()){}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",D,false);window.addEventListener("pageshow",D,false)}if(!window.opera&&document.readyState){(function(){E[document.readyState]?D():setTimeout(arguments.callee,10)})()}if(document.readyState&&document.createStyleSheet){(function(){try{document.body.doScroll("left");D()}catch(F){setTimeout(arguments.callee,1)}})()}q(window,"load",D);return function(F){if(!arguments.length){D()}else{C?F():B.push(F)}}})(),root:function(){return document.documentElement||document.body}};var n=m.CSS={Size:function(C,B){this.value=parseFloat(C);this.unit=String(C).match(/[a-z%]*$/)[0]||"px";this.convert=function(D){return D/B*this.value};this.convertFrom=function(D){return D/this.value*B};this.toString=function(){return this.value+this.unit}},addClass:function(C,B){var D=C.className;C.className=D+(D&&" ")+B;return C},color:j(function(C){var B={};B.color=C.replace(/^rgba\((.*?),\s*([\d.]+)\)/,function(E,D,F){B.opacity=parseFloat(F);return"rgb("+D+")"});return B}),fontStretch:j(function(B){if(typeof B=="number"){return B}if(/%$/.test(B)){return parseFloat(B)/100}return{"ultra-condensed":0.5,"extra-condensed":0.625,condensed:0.75,"semi-condensed":0.875,"semi-expanded":1.125,expanded:1.25,"extra-expanded":1.5,"ultra-expanded":2}[B]||1}),getStyle:function(C){var B=document.defaultView;if(B&&B.getComputedStyle){return new a(B.getComputedStyle(C,null))}if(C.currentStyle){return new a(C.currentStyle)}return new a(C.style)},gradient:j(function(F){var G={id:F,type:F.match(/^-([a-z]+)-gradient\(/)[1],stops:[]},C=F.substr(F.indexOf("(")).match(/([\d.]+=)?(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)/ig);for(var E=0,B=C.length,D;E<B;++E){D=C[E].split("=",2).reverse();G.stops.push([D[1]||E/(B-1),D[0]])}return G}),quotedList:j(function(E){var D=[],C=/\s*((["'])([\s\S]*?[^\\])\2|[^,]+)\s*/g,B;while(B=C.exec(E)){D.push(B[3]||B[1])}return D}),recognizesMedia:j(function(G){var E=document.createElement("style"),D,C,B;E.type="text/css";E.media=G;try{E.appendChild(document.createTextNode("/**/"))}catch(F){}C=g("head")[0];C.insertBefore(E,C.firstChild);D=(E.sheet||E.styleSheet);B=D&&!D.disabled;C.removeChild(E);return B}),removeClass:function(D,C){var B=RegExp("(?:^|\\s+)"+C+"(?=\\s|$)","g");D.className=D.className.replace(B,"");return D},supports:function(D,C){var B=document.createElement("span").style;if(B[D]===undefined){return false}B[D]=C;return B[D]===C},textAlign:function(E,D,B,C){if(D.get("textAlign")=="right"){if(B>0){E=" "+E}}else{if(B<C-1){E+=" "}}return E},textShadow:j(function(F){if(F=="none"){return null}var E=[],G={},B,C=0;var D=/(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)|(-?[\d.]+[a-z%]*)|,/ig;while(B=D.exec(F)){if(B[0]==","){E.push(G);G={};C=0}else{if(B[1]){G.color=B[1]}else{G[["offX","offY","blur"][C++]]=B[2]}}}E.push(G);return E}),textTransform:(function(){var B={uppercase:function(C){return C.toUpperCase()},lowercase:function(C){return C.toLowerCase()},capitalize:function(C){return C.replace(/\b./g,function(D){return D.toUpperCase()})}};return function(E,D){var C=B[D.get("textTransform")];return C?C(E):E}})(),whiteSpace:(function(){var D={inline:1,"inline-block":1,"run-in":1};var C=/^\s+/,B=/\s+$/;return function(H,F,G,E){if(E){if(E.nodeName.toLowerCase()=="br"){H=H.replace(C,"")}}if(D[F.get("display")]){return H}if(!G.previousSibling){H=H.replace(C,"")}if(!G.nextSibling){H=H.replace(B,"")}return H}})()};n.ready=(function(){var B=!n.recognizesMedia("all"),E=false;var D=[],H=function(){B=true;for(var K;K=D.shift();K()){}};var I=g("link"),J=g("style");function C(K){return K.disabled||G(K.sheet,K.media||"screen")}function G(M,P){if(!n.recognizesMedia(P||"all")){return true}if(!M||M.disabled){return false}try{var Q=M.cssRules,O;if(Q){search:for(var L=0,K=Q.length;O=Q[L],L<K;++L){switch(O.type){case 2:break;case 3:if(!G(O.styleSheet,O.media.mediaText)){return false}break;default:break search}}}}catch(N){}return true}function F(){if(document.createStyleSheet){return true}var L,K;for(K=0;L=I[K];++K){if(L.rel.toLowerCase()=="stylesheet"&&!C(L)){return false}}for(K=0;L=J[K];++K){if(!C(L)){return false}}return true}x.ready(function(){if(!E){E=n.getStyle(document.body).isUsable()}if(B||(E&&F())){H()}else{setTimeout(arguments.callee,10)}});return function(K){if(B){K()}else{D.push(K)}}})();function s(D){var C=this.face=D.face,B={"\u0020":1,"\u00a0":1,"\u3000":1};this.glyphs=D.glyphs;this.w=D.w;this.baseSize=parseInt(C["units-per-em"],10);this.family=C["font-family"].toLowerCase();this.weight=C["font-weight"];this.style=C["font-style"]||"normal";this.viewBox=(function(){var F=C.bbox.split(/\s+/);var E={minX:parseInt(F[0],10),minY:parseInt(F[1],10),maxX:parseInt(F[2],10),maxY:parseInt(F[3],10)};E.width=E.maxX-E.minX;E.height=E.maxY-E.minY;E.toString=function(){return[this.minX,this.minY,this.width,this.height].join(" ")};return E})();this.ascent=-parseInt(C.ascent,10);this.descent=-parseInt(C.descent,10);this.height=-this.ascent+this.descent;this.spacing=function(L,N,E){var O=this.glyphs,M,K,G,P=[],F=0,J=-1,I=-1,H;while(H=L[++J]){M=O[H]||this.missingGlyph;if(!M){continue}if(K){F-=G=K[H]||0;P[I]-=G}F+=P[++I]=~~(M.w||this.w)+N+(B[H]?E:0);K=M.k}P.total=F;return P}}function f(){var C={},B={oblique:"italic",italic:"oblique"};this.add=function(D){(C[D.style]||(C[D.style]={}))[D.weight]=D};this.get=function(H,I){var G=C[H]||C[B[H]]||C.normal||C.italic||C.oblique;if(!G){return null}I={normal:400,bold:700}[I]||parseInt(I,10);if(G[I]){return G[I]}var E={1:1,99:0}[I%100],K=[],F,D;if(E===undefined){E=I>400}if(I==500){I=400}for(var J in G){if(!k(G,J)){continue}J=parseInt(J,10);if(!F||J<F){F=J}if(!D||J>D){D=J}K.push(J)}if(I<F){I=F}if(I>D){I=D}K.sort(function(M,L){return(E?(M>=I&&L>=I)?M<L:M>L:(M<=I&&L<=I)?M>L:M<L)?-1:1});return G[K[0]]}}function r(){function D(F,G){if(F.contains){return F.contains(G)}return F.compareDocumentPosition(G)&16}function B(G){var F=G.relatedTarget;if(!F||D(this,F)){return}C(this,G.type=="mouseover")}function E(F){C(this,F.type=="mouseenter")}function C(F,G){setTimeout(function(){var H=d.get(F).options;m.replace(F,G?h(H,H.hover):H,true)},10)}this.attach=function(F){if(F.onmouseenter===undefined){q(F,"mouseover",B);q(F,"mouseout",B)}else{q(F,"mouseenter",E);q(F,"mouseleave",E)}}}function u(){var C=[],D={};function B(H){var E=[],G;for(var F=0;G=H[F];++F){E[F]=C[D[G]]}return E}this.add=function(F,E){D[F]=C.push(E)-1};this.repeat=function(){var E=arguments.length?B(arguments):C,F;for(var G=0;F=E[G++];){m.replace(F[0],F[1],true)}}}function A(){var D={},B=0;function C(E){return E.cufid||(E.cufid=++B)}this.get=function(E){var F=C(E);return D[F]||(D[F]={})}}function a(B){var D={},C={};this.extend=function(E){for(var F in E){if(k(E,F)){D[F]=E[F]}}return this};this.get=function(E){return D[E]!=undefined?D[E]:B[E]};this.getSize=function(F,E){return C[F]||(C[F]=new n.Size(this.get(F),E))};this.isUsable=function(){return !!B}}function q(C,B,D){if(C.addEventListener){C.addEventListener(B,D,false)}else{if(C.attachEvent){C.attachEvent("on"+B,function(){return D.call(C,window.event)})}}}function v(C,B){var D=d.get(C);if(D.options){return C}if(B.hover&&B.hoverables[C.nodeName.toLowerCase()]){b.attach(C)}D.options=B;return C}function j(B){var C={};return function(D){if(!k(C,D)){C[D]=B.apply(null,arguments)}return C[D]}}function c(F,E){var B=n.quotedList(E.get("fontFamily").toLowerCase()),D;for(var C=0;D=B[C];++C){if(i[D]){return i[D].get(E.get("fontStyle"),E.get("fontWeight"))}}return null}function g(B){return document.getElementsByTagName(B)}function k(C,B){return C.hasOwnProperty(B)}function h(){var C={},B,F;for(var E=0,D=arguments.length;B=arguments[E],E<D;++E){for(F in B){if(k(B,F)){C[F]=B[F]}}}return C}function o(E,M,C,N,F,D){var K=document.createDocumentFragment(),H;if(M===""){return K}var L=N.separate;var I=M.split(p[L]),B=(L=="words");if(B&&t){if(/^\s/.test(M)){I.unshift("")}if(/\s$/.test(M)){I.push("")}}for(var J=0,G=I.length;J<G;++J){H=z[N.engine](E,B?n.textAlign(I[J],C,J,G):I[J],C,N,F,D,J<G-1);if(H){K.appendChild(H)}}return K}function l(D,M){var C=D.nodeName.toLowerCase();if(M.ignore[C]){return}var E=!M.textless[C];var B=n.getStyle(v(D,M)).extend(M);var F=c(D,B),G,K,I,H,L,J;if(!F){return}for(G=D.firstChild;G;G=I){K=G.nodeType;I=G.nextSibling;if(E&&K==3){if(H){H.appendData(G.data);D.removeChild(G)}else{H=G}if(I){continue}}if(H){D.replaceChild(o(F,n.whiteSpace(H.data,B,H,J),B,M,G,D),H);H=null}if(K==1){if(G.firstChild){if(G.nodeName.toLowerCase()=="cufon"){z[M.engine](F,null,B,M,G,D)}else{arguments.callee(G,M)}}J=G}}}var t=" ".split(/\s+/).length==0;var d=new A();var b=new r();var y=new u();var e=false;var z={},i={},w={autoDetect:false,engine:null,forceHitArea:false,hover:false,hoverables:{a:true},ignore:{applet:1,canvas:1,col:1,colgroup:1,head:1,iframe:1,map:1,optgroup:1,option:1,script:1,select:1,style:1,textarea:1,title:1,pre:1},printable:true,selector:(window.Sizzle||(window.jQuery&&function(B){return jQuery(B)})||(window.dojo&&dojo.query)||(window.Ext&&Ext.query)||(window.YAHOO&&YAHOO.util&&YAHOO.util.Selector&&YAHOO.util.Selector.query)||(window.$$&&function(B){return $$(B)})||(window.$&&function(B){return $(B)})||(document.querySelectorAll&&function(B){return document.querySelectorAll(B)})||g),separate:"words",textless:{dl:1,html:1,ol:1,table:1,tbody:1,thead:1,tfoot:1,tr:1,ul:1},textShadow:"none"};var p={words:/\s/.test("\u00a0")?/[^\S\u00a0]+/:/\s+/,characters:"",none:/^/};m.now=function(){x.ready();return m};m.refresh=function(){y.repeat.apply(y,arguments);return m};m.registerEngine=function(C,B){if(!B){return m}z[C]=B;return m.set("engine",C)};m.registerFont=function(D){if(!D){return m}var B=new s(D),C=B.family;if(!i[C]){i[C]=new f()}i[C].add(B);return m.set("fontFamily",'"'+C+'"')};m.replace=function(D,C,B){C=h(w,C);if(!C.engine){return m}if(!e){n.addClass(x.root(),"cufon-active cufon-loading");n.ready(function(){n.addClass(n.removeClass(x.root(),"cufon-loading"),"cufon-ready")});e=true}if(C.hover){C.forceHitArea=true}if(C.autoDetect){delete C.fontFamily}if(typeof C.textShadow=="string"){C.textShadow=n.textShadow(C.textShadow)}if(typeof C.color=="string"&&/^-/.test(C.color)){C.textGradient=n.gradient(C.color)}else{delete C.textGradient}if(!B){y.add(D,arguments)}if(D.nodeType||typeof D=="string"){D=[D]}n.ready(function(){for(var F=0,E=D.length;F<E;++F){var G=D[F];if(typeof G=="string"){m.replace(C.selector(G),C,true)}else{l(G,C)}}});return m};m.set=function(B,C){w[B]=C;return m};return m})();Cufon.registerEngine("vml",(function(){var e=document.namespaces;if(!e){return}e.add("cvml","urn:schemas-microsoft-com:vml");e=null;var b=document.createElement("cvml:shape");b.style.behavior="url(#default#VML)";if(!b.coordsize){return}b=null;var h=(document.documentMode||0)<8;document.write(('<style type="text/css">cufoncanvas{text-indent:0;}@media screen{cvml\\:shape,cvml\\:rect,cvml\\:fill,cvml\\:shadow{behavior:url(#default#VML);display:block;antialias:true;position:absolute;}cufoncanvas{position:absolute;text-align:left;}cufon{display:inline-block;position:relative;vertical-align:'+(h?"middle":"text-bottom")+";}cufon cufontext{position:absolute;left:-10000in;font-size:1px;}a cufon{cursor:pointer}}@media print{cufon cufoncanvas{display:none;}}</style>").replace(/;/g,"!important;"));function c(i,j){return a(i,/(?:em|ex|%)$|^[a-z-]+$/i.test(j)?"1em":j)}function a(l,m){if(m==="0"){return 0}if(/px$/i.test(m)){return parseFloat(m)}var k=l.style.left,j=l.runtimeStyle.left;l.runtimeStyle.left=l.currentStyle.left;l.style.left=m.replace("%","em");var i=l.style.pixelLeft;l.style.left=k;l.runtimeStyle.left=j;return i}function f(l,k,j,n){var i="computed"+n,m=k[i];if(isNaN(m)){m=k.get(n);k[i]=m=(m=="normal")?0:~~j.convertFrom(a(l,m))}return m}var g={};function d(p){var q=p.id;if(!g[q]){var n=p.stops,o=document.createElement("cvml:fill"),i=[];o.type="gradient";o.angle=180;o.focus="0";o.method="sigma";o.color=n[0][1];for(var m=1,l=n.length-1;m<l;++m){i.push(n[m][0]*100+"% "+n[m][1])}o.colors=i.join(",");o.color2=n[l][1];g[q]=o}return g[q]}return function(ac,G,Y,C,K,ad,W){var n=(G===null);if(n){G=K.alt}var I=ac.viewBox;var p=Y.computedFontSize||(Y.computedFontSize=new Cufon.CSS.Size(c(ad,Y.get("fontSize"))+"px",ac.baseSize));var y,q;if(n){y=K;q=K.firstChild}else{y=document.createElement("cufon");y.className="cufon cufon-vml";y.alt=G;q=document.createElement("cufoncanvas");y.appendChild(q);if(C.printable){var Z=document.createElement("cufontext");Z.appendChild(document.createTextNode(G));y.appendChild(Z)}if(!W){y.appendChild(document.createElement("cvml:shape"))}}var ai=y.style;var R=q.style;var l=p.convert(I.height),af=Math.ceil(l);var V=af/l;var P=V*Cufon.CSS.fontStretch(Y.get("fontStretch"));var U=I.minX,T=I.minY;R.height=af;R.top=Math.round(p.convert(T-ac.ascent));R.left=Math.round(p.convert(U));ai.height=p.convert(ac.height)+"px";var F=Y.get("color");var ag=Cufon.CSS.textTransform(G,Y).split("");var L=ac.spacing(ag,f(ad,Y,p,"letterSpacing"),f(ad,Y,p,"wordSpacing"));if(!L.length){return null}var k=L.total;var x=-U+k+(I.width-L[L.length-1]);var ah=p.convert(x*P),X=Math.round(ah);var O=x+","+I.height,m;var J="r"+O+"ns";var u=C.textGradient&&d(C.textGradient);var o=ac.glyphs,S=0;var H=C.textShadow;var ab=-1,aa=0,w;while(w=ag[++ab]){var D=o[ag[ab]]||ac.missingGlyph,v;if(!D){continue}if(n){v=q.childNodes[aa];while(v.firstChild){v.removeChild(v.firstChild)}}else{v=document.createElement("cvml:shape");q.appendChild(v)}v.stroked="f";v.coordsize=O;v.coordorigin=m=(U-S)+","+T;v.path=(D.d?"m"+D.d+"xe":"")+"m"+m+J;v.fillcolor=F;if(u){v.appendChild(u.cloneNode(false))}var ae=v.style;ae.width=X;ae.height=af;if(H){var s=H[0],r=H[1];var B=Cufon.CSS.color(s.color),z;var N=document.createElement("cvml:shadow");N.on="t";N.color=B.color;N.offset=s.offX+","+s.offY;if(r){z=Cufon.CSS.color(r.color);N.type="double";N.color2=z.color;N.offset2=r.offX+","+r.offY}N.opacity=B.opacity||(z&&z.opacity)||1;v.appendChild(N)}S+=L[aa++]}var M=v.nextSibling,t,A;if(C.forceHitArea){if(!M){M=document.createElement("cvml:rect");M.stroked="f";M.className="cufon-vml-cover";t=document.createElement("cvml:fill");t.opacity=0;M.appendChild(t);q.appendChild(M)}A=M.style;A.width=X;A.height=af}else{if(M){q.removeChild(M)}}ai.width=Math.max(Math.ceil(p.convert(k*P)),0);if(h){var Q=Y.computedYAdjust;if(Q===undefined){var E=Y.get("lineHeight");if(E=="normal"){E="1em"}else{if(!isNaN(E)){E+="em"}}Y.computedYAdjust=Q=0.5*(a(ad,E)-parseFloat(ai.height))}if(Q){ai.marginTop=Math.ceil(Q)+"px";ai.marginBottom=Q+"px"}}return y}})());Cufon.registerEngine("canvas",(function(){var b=document.createElement("canvas");if(!b||!b.getContext||!b.getContext.apply){return}b=null;var a=Cufon.CSS.supports("display","inline-block");var e=!a&&(document.compatMode=="BackCompat"||/frameset|transitional/i.test(document.doctype.publicId));var f=document.createElement("style");f.type="text/css";f.appendChild(document.createTextNode(("cufon{text-indent:0;}@media screen,projection{cufon{display:inline;display:inline-block;position:relative;vertical-align:middle;"+(e?"":"font-size:1px;line-height:1px;")+"}cufon cufontext{display:-moz-inline-box;display:inline-block;width:0;height:0;overflow:hidden;text-indent:-10000in;}"+(a?"cufon canvas{position:relative;}":"cufon canvas{position:absolute;}")+"}@media print{cufon{padding:0;}cufon canvas{display:none;}}").replace(/;/g,"!important;")));document.getElementsByTagName("head")[0].appendChild(f);function d(p,h){var n=0,m=0;var g=[],o=/([mrvxe])([^a-z]*)/g,k;generate:for(var j=0;k=o.exec(p);++j){var l=k[2].split(",");switch(k[1]){case"v":g[j]={m:"bezierCurveTo",a:[n+~~l[0],m+~~l[1],n+~~l[2],m+~~l[3],n+=~~l[4],m+=~~l[5]]};break;case"r":g[j]={m:"lineTo",a:[n+=~~l[0],m+=~~l[1]]};break;case"m":g[j]={m:"moveTo",a:[n=~~l[0],m=~~l[1]]};break;case"x":g[j]={m:"closePath"};break;case"e":break generate}h[g[j].m].apply(h,g[j].a)}return g}function c(m,k){for(var j=0,h=m.length;j<h;++j){var g=m[j];k[g.m].apply(k,g.a)}}return function(V,w,P,t,C,W){var k=(w===null);if(k){w=C.getAttribute("alt")}var A=V.viewBox;var m=P.getSize("fontSize",V.baseSize);var B=0,O=0,N=0,u=0;var z=t.textShadow,L=[];if(z){for(var U=z.length;U--;){var F=z[U];var K=m.convertFrom(parseFloat(F.offX));var I=m.convertFrom(parseFloat(F.offY));L[U]=[K,I];if(I<B){B=I}if(K>O){O=K}if(I>N){N=I}if(K<u){u=K}}}var Z=Cufon.CSS.textTransform(w,P).split("");var E=V.spacing(Z,~~m.convertFrom(parseFloat(P.get("letterSpacing"))||0),~~m.convertFrom(parseFloat(P.get("wordSpacing"))||0));if(!E.length){return null}var h=E.total;O+=A.width-E[E.length-1];u+=A.minX;var s,n;if(k){s=C;n=C.firstChild}else{s=document.createElement("cufon");s.className="cufon cufon-canvas";s.setAttribute("alt",w);n=document.createElement("canvas");s.appendChild(n);if(t.printable){var S=document.createElement("cufontext");S.appendChild(document.createTextNode(w));s.appendChild(S)}}var aa=s.style;var H=n.style;var j=m.convert(A.height);var Y=Math.ceil(j);var M=Y/j;var G=M*Cufon.CSS.fontStretch(P.get("fontStretch"));var J=h*G;var Q=Math.ceil(m.convert(J+O-u));var o=Math.ceil(m.convert(A.height-B+N));n.width=Q;n.height=o;H.width=Q+"px";H.height=o+"px";B+=A.minY;H.top=Math.round(m.convert(B-V.ascent))+"px";H.left=Math.round(m.convert(u))+"px";var r=Math.max(Math.ceil(m.convert(J)),0)+"px";if(a){aa.width=r;aa.height=m.convert(V.height)+"px"}else{aa.paddingLeft=r;aa.paddingBottom=(m.convert(V.height)-1)+"px"}var X=n.getContext("2d"),D=j/A.height;X.scale(D,D*M);X.translate(-u,-B);X.save();function T(){var x=V.glyphs,ab,l=-1,g=-1,y;X.scale(G,1);while(y=Z[++l]){var ab=x[Z[l]]||V.missingGlyph;if(!ab){continue}if(ab.d){X.beginPath();if(ab.code){c(ab.code,X)}else{ab.code=d("m"+ab.d,X)}X.fill()}X.translate(E[++g],0)}X.restore()}if(z){for(var U=z.length;U--;){var F=z[U];X.save();X.fillStyle=F.color;X.translate.apply(X,L[U]);T()}}var q=t.textGradient;if(q){var v=q.stops,p=X.createLinearGradient(0,A.minY,0,A.maxY);for(var U=0,R=v.length;U<R;++U){p.addColorStop.apply(p,v[U])}X.fillStyle=p}else{X.fillStyle=P.get("color")}T();return s}})());


//plugin to mimic tabs
(function($){
 
	//attach this new method to jQuery
	$.fn.extend({
		 
		//my pluginname: tabs
		isTabs: function(options) {
			
			//Set the default values
			var defaults = {
				tabCnt : '',
				tabs : ''
			},
			options =  $.extend(defaults, options);
			
			function initControls(tabCnt, tabs){
				tabCnt.each(function(i){
					jQuery(this).click(function(){
						tabs
						.hide()
						.removeClass('active')
						.eq(i)
						.addClass('active')
						.show();
						tabCnt
						.removeClass('active')
						.eq(i)
						.addClass('active');
					});
				});
			}
			
			//Iterate over the current set of matched elements
			return this.each(function() {
				var tabCnt = options.tabCnt ? options.tabCnt : jQuery(this).children(),
				tabs = options.tabs ? options.tabs : jQuery(this).siblings('.tab');
				initControls(tabCnt, tabs);
			});
		}
	});
})(jQuery);

// self made plugin to hide a textfield value if the user clicks into the field, the default value is restored if the user removes the inserted value and the field losses focus
(function($){
    $.fn.extend({
        fieldHint : function(options){
            options = $.extend({
                removeEvt: 'focus',
                showEvt: 'blur'
            },options);

		function removeHint(e){
			if (this.value==this.defaultValue)this.value='';
		}
		function showHint(e){
			if (this.value=='') this.value=this.defaultValue;
		}
		return this
		.bind(options.removeEvt,removeHint)
		.bind(options.showEvt,showHint);
        }
    });
})(jQuery);

(function($){
    $.fn.extend({
        multiDeviceHover : function(show,hide){
		
		if(isTouchDevice){
			this.hover(show,hide);
		}else{
			this.toggle(show,hide);
		}
		
		return this
		
        }
    });
})(jQuery);

