/*-------------- $Rev: 1109 $ --------------*/ /* License --------------------------------------------- */ /* 1.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 (c) 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. * * TERMS OF USE - EASING EQUATIONS * * Open source under the BSD License. * * Copyright (c) 2001 Robert Penner * 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. -------------------------------------------------------- */ /* 2.jCarousel - Riding carousels with jQuery * http://sorgalla.com/jcarousel/ * * Copyright (c) 2006 Jan Sorgalla (http://sorgalla.com) * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * * Built on top of the jQuery library * http://jquery.com * * Inspired by the "Carousel Component" by Bill Scott * http://billwscott.com/carousel/ -------------------------------------------------------- */ /* 3.ColorBox * ColorBox v1.3.20.1 - jQuery lightbox plugin * (c) 2011 Jack Moore - jacklmoore.com * License: http://www.opensource.org/licenses/mit-license.php -------------------------------------------------------- */ /* 3.1 Colorbox 1.6.4 * license: MIT * http://www.jacklmoore.com/colorbox -------------------------------------------------------- */ /* 4.jq.ui.checks * @version 0.43 * @author nori (norimania@gmail.com) * @copyright 5509 (http://5509.me/) * @license The MIT License * @link https://github.com/5509/jq.ui.checks * * 2012-04-04 02:43 -------------------------------------------------------- */ /* 5.jQselectable * * @version 3.1 * @author nori (norimania@gmail.com) * @copyright 5509 (http://5509.me/) * @license The MIT License * @link https://github.com/5509/jQselectable * * 2012-04-10 19:50 -------------------------------------------------------- */ /* 6.jQuery Cycle Plugin (with Transition Definitions) * Examples and documentation at: http://jquery.malsup.com/cycle/ * Copyright (c) 2007-2010 M. Alsup * Version: 2.9999.8 (26-OCT-2012) * Dual licensed under the MIT and GPL licenses. * http://jquery.malsup.com/license.html * Requires: jQuery v1.3.2 or later ---------------------------------------------------------------- */ /* 7.jQuery Cycle Plugin Transition Definitions * This script is a plugin for the jQuery Cycle Plugin * Examples and documentation at: http://malsup.com/jquery/cycle/ * Copyright (c) 2007-2010 M. Alsup * Version: 2.73 * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html ---------------------------------------------------------------- */ /* 8.Color animation 20120928 http://www.bitstorm.org/jquery/color-animation/ Copyright 2011, 2012 Edwin Martin Released under the MIT and GPL licenses. ---------------------------------------------------------------- */ /* 9.SWFObject v2.2 is released under the MIT License ---------------------------------------------------------------- */ /* 10.jQuery Cookie Plugin v1.3 * https://github.com/carhartl/jquery-cookie * * Copyright 2011, Klaus Hartl * Dual licensed under the MIT or GPL Version 2 licenses. * http://www.opensource.org/licenses/mit-license.php * http://www.opensource.org/licenses/GPL-2.0 -------------------------------------------------------- */ /* * 11.jQuery Show Password Plugin * http://github.com/davist11/jQuery-Show-Password * * Copyright (c) 2010 Trevor Davis (http://trevordavis.net) * Dual licensed under the MIT and GPL licenses. * Uses the same license as jQuery, see: * http://jquery.org/license * * @version 0.3 * * 2015/06/16 MLC modified */ /* Scripts --------------------------------------------- */ /* Browser Distinction -------------------------------------------------------- */ var kpi_htmlObject=$("html");kpi_htmlObject.addClass("js"); var kpi_ua=function(){return{ltIE6:"undefined"==typeof window.addEventListener&&"undefined"==typeof document.documentElement.style.maxHeight,ltIE7:"undefined"==typeof window.addEventListener&&"undefined"==typeof document.querySelectorAll,ltIE8:"undefined"==typeof window.addEventListener&&"undefined"==typeof document.getElementsByClassName,IE:document.uniqueID,Firefox:window.sidebar,Opera:window.opera,Webkit:!document.uniqueID&&!window.opera&&!window.sidebar&&window.localStorage&&"undefined"==typeof window.orientation, Mobile:"undefined"!=typeof window.orientation}}();kpi_ua.ltIE6?kpi_htmlObject.addClass("ie6"):kpi_ua.ltIE7?kpi_htmlObject.addClass("ie7"):kpi_ua.ltIE8?kpi_htmlObject.addClass("ie8"):kpi_ua.Webkit?kpi_htmlObject.addClass("webkit"):kpi_ua.Firefox?kpi_htmlObject.addClass("firefox"):kpi_ua.Opera?kpi_htmlObject.addClass("opera"):kpi_ua.IE&&!kpi_ua.ltIE8?kpi_htmlObject.addClass("gtie9"):kpi_ua.Mobile&&kpi_htmlObject.addClass("smartphone"); /* Cross Type Scroll ---------------------------------------------------------------- */ (function(b){b.fn.crossTypeScroll=function(a){var d={heightMargin:0,targetHeight:b(this).height(),offsetTop:0,wrap:"#ContentsLayout",easing:"easeOutCubic",duration:300,queue:!1},a=b.extend(d,a),c=b(this).selector;jQuery(window).scroll(function(){jQuery(window).scrollTop()>a.offsetTop&&jQuery(a.wrap).offset().top+jQuery(a.wrap).height()-a.targetHeight-a.heightMargin>jQuery(window).scrollTop()?jQuery(c).animate({position:"fixed",top:jQuery(window).scrollTop()+a.heightMargin+"px"},{queue:a.queue,easing:a.easing, duration:a.duration}):jQuery(window).scrollTop()=parseInt(jQuery.browser.version)){var GetAbsoluteXY=function(a){for(var c=a.offsetLeft,b=a.offsetTop;a.offsetParent;){a=a.offsetParent;if(a!=document.body&&"static"!=a.currentStyle.position)break;a!=document.body&&a!=document.documentElement&&(c-=a.scrollLeft,b-=a.scrollTop);c+=a.offsetLeft;b+=a.offsetTop}return{x:c,y:b}},StaticToAbsolute=function(a){if("static"==a.currentStyle.position){var c=document.createElement("div");c.style.left=a.style.left;c.style.left=a.style.left; c.style.width=a.style.width;c.style.height=a.style.height;a.parentNode.appendChild(c);c=GetAbsoluteXY(a);a.style.position="absolute";a.style.left=c.x+"px";a.style.top=c.y+"px"}},IETransform=function(a,c){var b,d,j,e=1,f=1,i=1,l=1;if("undefined"!=typeof a.style.msTransform)return!0;StaticToAbsolute(a);var k=(b=c.match(/rotate\((.*?)\)/))&&b[1]?parseInt(b[1]):0,k=k%360;0>k&&(k=360+k);j=k*Math.PI/180;var g=Math.cos(j),h=Math.sin(j),e=e*g,f=f*-h,i=i*h,l=l*g,g=(b=c.match(/skewX\((.*?)\)/))&&b[1]?parseFloat(b[1]): 0,h=(b=c.match(/skewY\((.*?)\)/))&&b[1]?parseFloat(b[1]):0;if(b=c.match(/skew\((.*?)(?:,(.*?))?\)/))g=b[1]?parseFloat(b[1]):0,h=b[2]?parseFloat(b[2]):0;g%=360;0>g&&(g=360+g);h%=360;0>h&&(h=360+h);f+=Math.tan(g*Math.PI/180);i+=Math.tan(h*Math.PI/180);d=(b=c.match(/scaleX\((.*?)\)/))&&b[1]?parseFloat(b[1]):void 0;j=(b=c.match(/scaleY\((.*?)\)/))&&b[1]?parseFloat(b[1]):void 0;d=(b=c.match(/scale\((.*?)(?:,(.*?))?\)/))&&b[1]?parseFloat(b[1]):"undefined"!=typeof d?d:1;b=b&&b[2]?parseFloat(b[2]):"undefined"!= typeof j?j:d;e*=d;f*=d;i*=b;l*=b;a.style.filter=(a.style.filter||"").replace(/progid:DXImageTransform\.Microsoft\.Matrix\([^)]*\)/,"")+("progid:DXImageTransform.Microsoft.Matrix(M11="+e+",M12="+f+",M21="+i+",M22="+l+",FilterType='bilinear',sizingMethod='auto expand')");parseInt(a.offsetWidth);parseInt(a.offsetHeight);ow=parseInt(a.style.width||a.width||0);oh=parseInt(a.style.height||a.height||0);j=k*Math.PI/180;e=Math.abs(Math.cos(j));i=Math.abs(Math.sin(j));f=(ow-(ow*e+oh*i))/2;e=(oh-(ow*i+oh*e))/ 2;f-=ow/2*Math.tan(g*Math.PI/180);e-=oh/2*Math.tan(h*Math.PI/180);f-=(ow*d-ow)/2;e-=(oh*b-oh)/2;a.style.marginLeft=Math.floor(f)+"px";a.style.marginTop=Math.floor(e)+"px";return!0};if($.cssHooks){var jquery_iebug_fix_orignal_set=$.cssHooks.transform.set;$.cssHooks.transform.set=function(a,c){jquery_iebug_fix_orignal_set.apply(this,[a,c]);IETransform(a,c);return c}}else{var jquery_iebug_fix_orignal_style=$.style;jQuery.extend({style:function(a,c,b){var d=jquery_iebug_fix_orignal_style.apply(this,[a, c,b]);switch(c){case "transform":IETransform(a,b)}return d}})}}; /* Tab Change ---------------------------------------------------------------- */ (function(a){a.fn.tabChange=function(c){c=a.extend({selected:0},c);a(this);var b=a(this).children("dl").attr("class");return this.each(function(e){if(!a("ul."+b,this).length){a(this).prepend('
    ');var g=a(this).children("dl").children("dt").length;for(h=0;h'+a(this).children("dl."+b).children("dt").eq(h).html()+"")}a(this).children("dl."+ b).children("dd").css("display","none");a(this).attr({id:"tabSwitching"+ ++e});var d=a("#tabSwitching"+e).children("ul."+b).children("li"),f=a("#tabSwitching"+e).children("dl."+b).children("dd");d.eq(c.selected).addClass("Current");f.eq(c.selected).addClass("Current").css("display","block");d.bind("click",function(){var b=d.index(this);d.removeClass("Current");a(this).addClass("Current");f.removeClass("Current").css("display","none");f.eq(b).addClass("Current").css("display","block")})}})}})(jQuery); /* JQuery Place Holder ---------------------------------------------------------------- */ (function(c){c.fn.kpiplaceholder=function(d){d=c.extend({pickup:"title"},d);return this.each(function(){var a=c(this),b=a.attr(d.pickup);a.val()||(a.val(b),a.css("color","#999"));a.focus(function(){this.value==b&&a.val("").css("color","#333")});a.blur(function(){""==this.value&&a.val(b).css("color","#999");this.value!=b&&a.css("color","#333")});a.closest("form").submit(function(){if(a.val()==b)return a.val(""),!0})})}})(jQuery); /* Flex Grip Wrap ---------------------------------------------------------------- */ (function(b){b.fn.unifyBoxHeight=function(a){a=b.extend({wrapCol:".Col",target:".AdjustHeightTarget"},a);return this.each(function(){var d=0,e=[],c=[];b(this).find(a.wrapCol).each(function(){d++});for(j=0;20>j;j++)e[j]=[];for(i=0;i=a.length){switch(!0){case 10>b.text():b.addClass("Lt10");break;case 20>b.text():b.addClass("Lt20");break;case 50>b.text():b.addClass("Lt50")}clearTimeout(j)}else if(d>=e)var j=setTimeout(function(){g(0,0,c+1,0)},1E3);else f(b).find(".c"+k).html(" "==l[h]?" ":l[h]),setTimeout(function(){h>l.length?g(k+1,0,c,d+1):l[h]!=a[c].substring(d,d+1).toLowerCase()?g(k,h+1,c,d):g(k+1,0,c,d+1)},40)}var b=f(this),l="9876543210 -".split(""), e=0,j=items2=a.length;for(f(this).empty();j--;)a[j].length>e&&(e=a[j].length);for(;items2--;)a[items2]+=Array(e-a[items2].length+1).join(" ");for(spans=e;spans--;)f(this).prepend("9");for(i=0;i(a/=d/2)?b/2*a*a+c:-b/2*(--a*(a-2)-1)+c},easeInCubic:function(e,a,c,b,d){return b*(a/=d)*a*a+c},easeOutCubic:function(e,a,c,b,d){return b*((a=a/d-1)*a*a+1)+c},easeInOutCubic:function(e,a,c,b,d){return 1>(a/=d/2)?b/2*a*a*a+c: b/2*((a-=2)*a*a+2)+c},easeInQuart:function(e,a,c,b,d){return b*(a/=d)*a*a*a+c},easeOutQuart:function(e,a,c,b,d){return-b*((a=a/d-1)*a*a*a-1)+c},easeInOutQuart:function(e,a,c,b,d){return 1>(a/=d/2)?b/2*a*a*a*a+c:-b/2*((a-=2)*a*a*a-2)+c},easeInQuint:function(e,a,c,b,d){return b*(a/=d)*a*a*a*a+c},easeOutQuint:function(e,a,c,b,d){return b*((a=a/d-1)*a*a*a*a+1)+c},easeInOutQuint:function(e,a,c,b,d){return 1>(a/=d/2)?b/2*a*a*a*a*a+c:b/2*((a-=2)*a*a*a*a+2)+c},easeInSine:function(e,a,c,b,d){return-b*Math.cos(a/ d*(Math.PI/2))+b+c},easeOutSine:function(e,a,c,b,d){return b*Math.sin(a/d*(Math.PI/2))+c},easeInOutSine:function(e,a,c,b,d){return-b/2*(Math.cos(Math.PI*a/d)-1)+c},easeInExpo:function(e,a,c,b,d){return 0==a?c:b*Math.pow(2,10*(a/d-1))+c},easeOutExpo:function(e,a,c,b,d){return a==d?c+b:b*(-Math.pow(2,-10*a/d)+1)+c},easeInOutExpo:function(e,a,c,b,d){return 0==a?c:a==d?c+b:1>(a/=d/2)?b/2*Math.pow(2,10*(a-1))+c:b/2*(-Math.pow(2,-10*--a)+2)+c},easeInCirc:function(e,a,c,b,d){return-b*(Math.sqrt(1-(a/=d)* a)-1)+c},easeOutCirc:function(e,a,c,b,d){return b*Math.sqrt(1-(a=a/d-1)*a)+c},easeInOutCirc:function(e,a,c,b,d){return 1>(a/=d/2)?-b/2*(Math.sqrt(1-a*a)-1)+c:b/2*(Math.sqrt(1-(a-=2)*a)+1)+c},easeInElastic:function(e,a,c,b,d){e=1.70158;var f=0,g=b;if(0==a)return c;if(1==(a/=d))return c+b;f||(f=0.3*d);ga?-0.5*g*Math.pow(2,10*(a-=1))*Math.sin((a*d-e)*2*Math.PI/f)+c:0.5*g*Math.pow(2,-10*(a-=1))*Math.sin((a*d-e)*2*Math.PI/f)+b+c},easeInBack:function(e,a,c,b,d,f){void 0== f&&(f=1.70158);return b*(a/=d)*a*((f+1)*a-f)+c},easeOutBack:function(e,a,c,b,d,f){void 0==f&&(f=1.70158);return b*((a=a/d-1)*a*((f+1)*a+f)+1)+c},easeInOutBack:function(e,a,c,b,d,f){void 0==f&&(f=1.70158);return 1>(a/=d/2)?b/2*a*a*(((f*=1.525)+1)*a-f)+c:b/2*((a-=2)*a*(((f*=1.525)+1)*a+f)+2)+c},easeInBounce:function(e,a,c,b,d){return b-jQuery.easing.easeOutBounce(e,d-a,0,b,d)+c},easeOutBounce:function(e,a,c,b,d){return(a/=d)<1/2.75?b*7.5625*a*a+c:a<2/2.75?b*(7.5625*(a-=1.5/2.75)*a+0.75)+c:a<2.5/2.75? b*(7.5625*(a-=2.25/2.75)*a+0.9375)+c:b*(7.5625*(a-=2.625/2.75)*a+0.984375)+c},easeInOutBounce:function(e,a,c,b,d){return a",buttonPrevHTML:"
    ",buttonNextEvent:"click",buttonPrevEvent:"click", buttonNextCallback:null,buttonPrevCallback:null,itemFallbackDimension:null},n=!1;g(window).bind("load.jcarousel",function(){n=!0});g.jcarousel=function(a,c){this.options=g.extend({},r,c||{});this.autoStopped=this.locked=!1;this.buttonPrevState=this.buttonNextState=this.buttonPrev=this.buttonNext=this.list=this.clip=this.container=null;if(!c||void 0===c.rtl)this.options.rtl="rtl"==(g(a).attr("dir")||g("html").attr("dir")||"").toLowerCase();this.wh=!this.options.vertical?"width":"height";this.lt=!this.options.vertical? this.options.rtl?"right":"left":"top";for(var b="",d=a.className.split(" "),f=0;f").parent());0===this.container.size()&&(this.container=this.clip.wrap("
    ").parent());""!==b&&-1==this.container.parent()[0].className.indexOf("jcarousel-skin")&&this.container.wrap('
    ');this.buttonPrev=g(".jcarousel-prev",this.container);0===this.buttonPrev.size()&&null!==this.options.buttonPrevHTML&&(this.buttonPrev=g(this.options.buttonPrevHTML).appendTo(this.container));this.buttonPrev.addClass(this.className("jcarousel-prev"));this.buttonNext= g(".jcarousel-next",this.container);0===this.buttonNext.size()&&null!==this.options.buttonNextHTML&&(this.buttonNext=g(this.options.buttonNextHTML).appendTo(this.container));this.buttonNext.addClass(this.className("jcarousel-next"));this.clip.addClass(this.className("jcarousel-clip")).css({position:"relative"});this.list.addClass(this.className("jcarousel-list")).css({overflow:"hidden",position:"relative",top:0,margin:0,padding:0}).css(this.options.rtl?"right":"left",0);this.container.addClass(this.className("jcarousel-container")).css({position:"relative"}); !this.options.vertical&&this.options.rtl&&this.container.addClass("jcarousel-direction-rtl").attr("dir","rtl");var j=null!==this.options.visible?Math.ceil(this.clipping()/this.options.visible):null,b=this.list.children("li"),e=this;if(0this.options.size&&(c=this.options.size);for(var b=a;b<=c;b++){var d=this.get(b);if(!d.length||d.hasClass("jcarousel-item-placeholder"))return!1}return!0}, get:function(a){return g(">.jcarousel-item-"+a,this.list)},add:function(a,c){var b=this.get(a),d=0,q=g(c);if(0===b.length)for(var j,e=f.intval(a),b=this.create(a);;){if(j=this.get(--e),0>=e||j.length){0>=e?this.list.prepend(b):j.after(b);break}}else d=this.dimension(b);"LI"==q.get(0).nodeName.toUpperCase()?(b.replaceWith(q),b=q):b.empty().append(c);this.format(b.removeClass(this.className("jcarousel-item-placeholder")),a);q=null!==this.options.visible?Math.ceil(this.clipping()/this.options.visible): null;d=this.dimension(b,q)-d;0=this.first&&a<=this.last)){var b=this.dimension(c);aa?1:this.options.size&&a>this.options.size?this.options.size:a);for(var d=this.first>a,g="circular"!=this.options.wrap&&1>=this.first?1:this.first,j=d?this.get(g): this.get(this.last),e=d?g:g-1,h=null,i=0,k=!1,m=0;d?--e>=a:++e=e||e>this.options.size)))j=this.get(this.index(e)),j.length&&(h=this.add(e,j.clone(!0)));j=h;m=this.dimension(h);k&&(i+=m);if(null!==this.first&&("circular"==this.options.wrap||1<=e&&(null===this.options.size||e<= this.options.size)))b=d?b+m:b-m}for(var g=this.clipping(),n=[],p=0,l=0,j=this.get(a-1),e=a;++p;){h=this.get(e);k=!h.length;if(0===h.length){h=this.create(e).addClass(this.className("jcarousel-item-placeholder"));if(0===j.length)this.list.prepend(h);else j[d?"before":"after"](h);if(null!==this.first&&"circular"==this.options.wrap&&null!==this.options.size&&(0>=e||e>this.options.size))j=this.get(this.index(e)),j.length&&(h=this.add(e,j.clone(!0)))}j=h;m=this.dimension(h);if(0===m)throw Error("jCarousel: No width/height set for items. This will cause an infinite loop. Aborting..."); "circular"!=this.options.wrap&&null!==this.options.size&&e>this.options.size?n.push(h):k&&(i+=m);l+=m;if(l>=g)break;e++}for(h=0;hthis.options.size)&&(i=this.options.size);if(e>i){p=0;e=i;for(l=0;++p;){h=this.get(e--);if(!h.length)break;l+=this.dimension(h);if(l>=g)break}}e=i- p+1;"circular"!=this.options.wrap&&1>e&&(e=1);this.inTail&&d&&(b+=this.tail,this.inTail=!1);this.tail=null;"circular"!=this.options.wrap&&(i==this.options.size&&1<=i-p+1)&&(d=f.intval(this.get(i).css(!this.options.vertical?"marginRight":"marginBottom")),l-d>g&&(this.tail=l-g-d));c&&(a===this.options.size&&this.tail)&&(b-=this.tail,this.inTail=!0);for(;a-- >e;)b+=this.dimension(this.get(a));this.prevFirst=this.first;this.prevLast=this.last;this.first=e;this.last=i;return b},animate:function(a,c){if(!this.locked&& !this.animating){this.animating=!0;var b=this,d=function(){b.animating=!1;0===a&&b.list.css(b.lt,0);!b.autoStopped&&("circular"==b.options.wrap||"both"==b.options.wrap||"last"==b.options.wrap||null===b.options.size||b.last=b.first&&c<=b.last)&&(1>c||c>b.options.size))&& b.remove(c)};this.notify("onBeforeAnimation");if(!this.options.animation||!1===c)this.list.css(this.lt,a+"px"),d();else{var f=!this.options.vertical?this.options.rtl?{right:a}:{left:a}:{top:a},d={duration:this.options.animation,easing:this.options.easing,complete:d};g.isFunction(this.options.animationStepCallback)&&(d.step=this.options.animationStepCallback);this.list.animate(f,d)}}},startAuto:function(a){void 0!==a&&(this.options.auto=a);if(0===this.options.auto)return this.stopAuto();if(null=== this.timer){this.autoStopped=!1;var c=this;this.timer=window.setTimeout(function(){c.next()},1E3*this.options.auto)}},stopAuto:function(){this.pauseAuto();this.autoStopped=!0},pauseAuto:function(){null!==this.timer&&(window.clearTimeout(this.timer),this.timer=null)},buttons:function(a,c){if(null==a&&(a=!this.locked&&0!==this.options.size&&(this.options.wrap&&"first"!=this.options.wrap||null===this.options.size||this.last=this.options.size))a=null!==this.tail&&!this.inTail;if(null==c&&(c=!this.locked&&0!==this.options.size&&(this.options.wrap&&"last"!=this.options.wrap||1=j&&k<=e)&&a(k)}}},create:function(a){return this.format("
  • ",a)},format:function(a,c){for(var a=g(a),b=a.get(0).className.split(" "),d=0;da?b+a:a}function l(a,b){return Math.round((/%/.test(a)?("x"===b?P():Q())/100:1)*parseInt(a,10))}function ha(b){return a.photo||/\.(gif|png|jp(e|g|eg)|bmp|ico)((#|\?).*)?$/i.test(b)}function P(){return N.innerWidth||s.width()}function Q(){return N.innerHeight||s.height()}function ia(){var g,f=b.data(r,u);null==f?(a=b.extend({},U),console&&console.log&& console.log("Error: cboxElement missing settings object")):a=b.extend({},f);for(g in a)b.isFunction(a[g])&&"on"!==g.slice(0,2)&&(a[g]=a[g].call(r));a.rel=a.rel||r.rel||b(r).data("rel")||"nofollow";a.href=a.href||b(r).attr("href");a.title=a.title||r.title;"string"===typeof a.href&&(a.href=b.trim(a.href))}function B(a,f){b.event.trigger(a);f&&f.call(r)}function oa(){var b,f=q+"Slideshow_",c="click."+q,d,V;a.slideshow&&m[1]?(d=function(){E.html(a.slideshowStop).unbind(c).bind(W,function(){if(a.loop|| m[p+1])b=setTimeout(e.next,a.slideshowSpeed)}).bind(X,function(){clearTimeout(b)}).one(c+" "+R,V);k.removeClass(f+"off").addClass(f+"on");b=setTimeout(e.next,a.slideshowSpeed)},V=function(){clearTimeout(b);E.html(a.slideshowStart).unbind([W,X,R,c].join(" ")).one(c,function(){e.next();d()});k.removeClass(f+"on").addClass(f+"off")},a.slideshowAuto?d():V()):k.removeClass(f+"off "+f+"on")}function ja(g){if(!S){r=g;ia();m=b(r);p=0;"nofollow"!==a.rel&&(m=b("."+F).filter(function(){var g=b.data(this,u), c;g&&(c=b(this).data("rel")||g.rel||this.rel);return c===a.rel}),p=m.index(r),-1===p&&(m=m.add(r),p=m.length-1));if(!v){v=G=!0;k.show();if(a.returnFocus)b(r).blur().one(ka,function(){b(this).focus()});y.css({opacity:+a.opacity,cursor:a.overlayClose?"pointer":"auto"}).show();a.w=l(a.initialWidth,"x");a.h=l(a.initialHeight,"y");e.position();H&&s.bind("resize."+T+" scroll."+T,function(){y.css({width:P(),height:Q(),top:s.scrollTop(),left:s.scrollLeft()})}).trigger("resize."+T);B(la,a.onOpen);Y.add(Z).hide(); $.html(a.close).show()}e.load(!0)}}function ma(){!k&&D.body&&(aa=!1,s=b(N),k=c(d).attr({id:u,"class":I?q+(H?"IE6":"IE"):""}).hide(),y=c(d,"Overlay",H?"position:absolute":"").hide(),ba=c(d,"LoadingOverlay").add(c(d,"LoadingGraphic")),C=c(d,"Wrapper"),t=c(d,"Content").append(n=c(d,"LoadedContent","width:0; height:0; overflow:hidden"),Z=c(d,"Title"),ca=c(d,"Current"),J=c(d,"Next"),K=c(d,"Previous"),E=c(d,"Slideshow").bind(la,oa),$=c(d,"Close")),C.append(c(d).append(c(d,"TopLeft"),da=c(d,"TopCenter"), c(d,"TopRight")),c(d,!1,"clear:left").append(ea=c(d,"MiddleLeft"),t,fa=c(d,"MiddleRight")),c(d,!1,"clear:left").append(c(d,"BottomLeft"),ga=c(d,"BottomCenter"),c(d,"BottomRight"))).find("div div").css({"float":"left"}),L=c(d,!1,"position:absolute; width:9999px; visibility:hidden; display:none"),Y=J.add(K).add(ca).add(E),b(D.body).append(y,k.append(C,L)))}var U={transition:"elastic",speed:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1, scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:0.9,preloading:!0,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",open:!1,returnFocus:!0,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1, overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0},u="kpi_modalbox",q="kpi_box",F=q+"Element",la=q+"_open",X=q+"_load",W=q+"_complete",R=q+"_cleanup",ka=q+"_closed",M=q+"_purge",I=!b.support.opacity&&!b.support.style,H=I&&!N.XMLHttpRequest,T=q+"_IE6",y,k,C,t,da,ea,fa,ga,m,s,n,L,ba,Z,ca,E,J,K,$,Y,a,z,A,w,x,r,p,h,v,G,S,na,e,d="div",aa;b.colorbox||(b(ma),e=b.fn[u]=b[u]=function(g,c){var d=this;g=g||{};ma();var j;k?(aa||(aa=!0,z=da.height()+ga.height()+t.outerHeight(!0)- t.height(),A=ea.width()+fa.width()+t.outerWidth(!0)-t.width(),w=n.outerHeight(!0),x=n.outerWidth(!0),k.css({"padding-bottom":z,"padding-right":A}),J.click(function(){e.next()}),K.click(function(){e.prev()}),$.click(function(){e.close()}),y.click(function(){a.overlayClose&&e.close()}),b(D).bind("keydown."+q,function(b){var c=b.keyCode;v&&(a.escKey&&27===c)&&(b.preventDefault(),e.close());v&&(a.arrowKey&&m[1])&&(37===c?(b.preventDefault(),K.click()):39===c&&(b.preventDefault(),J.click()))}),b("."+F, D).live("click",function(a){1");g.open=!0}c&&(g.onComplete=c);d.each(function(){b.data(this,u,b.extend({},b.data(this,u)||U,g))}).addClass(F);(b.isFunction(g.open)&&g.open.call(d)||g.open)&&ja(d[0])}return d},e.position=function(b,c){function d(a){da[0].style.width=ga[0].style.width=t[0].style.width=a.style.width;t[0].style.height=ea[0].style.height=fa[0].style.height= a.style.height}var j,h=j=0,m=k.offset(),n,p;s.unbind("resize."+q);k.css({top:-9E4,left:-9E4});n=s.scrollTop();p=s.scrollLeft();a.fixed&&!H?(m.top-=n,m.left-=p,k.css({position:"fixed"})):(j=n,h=p,k.css({position:"absolute"}));h=!1!==a.right?h+Math.max(P()-a.w-x-A-l(a.right,"x"),0):!1!==a.left?h+l(a.left,"x"):h+Math.round(Math.max(P()-a.w-x-A,0)/2);j=!1!==a.bottom?j+Math.max(Q()-a.h-w-z-l(a.bottom,"y"),0):!1!==a.top?j+l(a.top,"y"):j+Math.round(Math.max(Q()-a.h-w-z,0)/2);k.css({top:m.top,left:m.left}); b=k.width()===a.w+x&&k.height()===a.h+w?0:b||0;C[0].style.width=C[0].style.height="9999px";j={width:a.w+x,height:a.h+w,top:j,left:h};0===b&&k.css(j);k.dequeue().animate(j,{duration:b,complete:function(){d(this);G=!1;C[0].style.width=a.w+x+A+"px";C[0].style.height=a.h+w+z+"px";a.reposition&&setTimeout(function(){s.bind("resize."+q,e.position)},1);c&&c()},step:function(){d(this)}})},e.resize=function(b){v&&(b=b||{},b.width&&(a.w=l(b.width,"x")-x-A),b.innerWidth&&(a.w=l(b.innerWidth,"x")),n.css({width:a.w}), b.height&&(a.h=l(b.height,"y")-w-z),b.innerHeight&&(a.h=l(b.innerHeight,"y")),!b.innerHeight&&!b.height&&(n.css({height:"auto"}),a.h=n.height()),n.css({height:a.h}),e.position("none"===a.transition?0:a.speed))},e.prep=function(g){function f(){a.w=a.w||n.width();a.w=a.mw&&a.mwa.mw&&(b=(h.width-a.mw)/h.width,k()),a.mh&&h.height>a.mh&&(b=(h.height-a.mh)/h.height,k()));a.h&&(h.style.marginTop=Math.max(a.h-h.height,0)/2+"px");if(m[1]&&(a.loop||m[p+1]))h.style.cursor= "pointer",h.onclick=function(){e.next()};I&&(h.style.msInterpolationMode="bicubic");setTimeout(function(){j(h)},1)}),setTimeout(function(){h.src=f},1)):f&&L.load(f,a.data,function(f,e){j("error"===e?c(d,"Error").html(a.xhrError):b(this).contents())})},e.next=function(){if(!G&&m[1]&&(a.loop||m[p+1]))p=O(1),e.load()},e.prev=function(){if(!G&&m[1]&&(a.loop||p))p=O(-1),e.load()},e.close=function(){v&&!S&&(S=!0,v=!1,B(R,a.onCleanup),s.unbind("."+q+" ."+T),y.fadeTo(200,0),k.stop().fadeTo(300,0,function(){k.add(y).css({opacity:1, cursor:"auto"}).hide();B(M);n.remove();setTimeout(function(){S=!1;B(ka,a.onClosed)},1)}))},e.remove=function(){b([]).add(k).add(y).remove();k=null;b("."+F).removeData(u).removeClass(F).die()},e.element=function(){return b(r)},e.settings=U)})(jQuery,document,window); /* 3.1 ColorBox 1.6.4 ---------------------------------------------------------------- */ (function(t,e,i){function n(i,n,o){var r=e.createElement(i);return n&&(r.id=Z+n),o&&(r.style.cssText=o),t(r)}function o(){return i.innerHeight?i.innerHeight:t(i).height()}function r(e,i){i!==Object(i)&&(i={}),this.cache={},this.el=e,this.value=function(e){var n;return void 0===this.cache[e]&&(n=t(this.el).attr("data-cbox-"+e),void 0!==n?this.cache[e]=n:void 0!==i[e]?this.cache[e]=i[e]:void 0!==X[e]&&(this.cache[e]=X[e])),this.cache[e]},this.get=function(e){var i=this.value(e);return t.isFunction(i)?i.call(this.el,this):i}}function h(t){var e=W.length,i=(A+t)%e;return 0>i?e+i:i}function a(t,e){return Math.round((/%/.test(t)?("x"===e?E.width():o())/100:1)*parseInt(t,10))}function s(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function l(t,e){return t.get("retinaUrl")&&i.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function d(t){"contains"in x[0]&&!x[0].contains(t.target)&&t.target!==v[0]&&(t.stopPropagation(),x.focus())}function c(t){c.str!==t&&(x.add(v).removeClass(c.str).addClass(t),c.str=t)}function g(e){A=0,e&&e!==!1&&"nofollow"!==e?(W=t("."+te).filter(function(){var i=t.data(this,Y),n=new r(this,i);return n.get("rel")===e}),A=W.index(_.el),-1===A&&(W=W.add(_.el),A=W.length-1)):W=t(_.el)}function u(i){t(e).trigger(i),ae.triggerHandler(i)}function f(i){var o;if(!G){if(o=t(i).data(Y),_=new r(i,o),g(_.get("rel")),!U){U=$=!0,c(_.get("className")),x.css({visibility:"hidden",display:"block",opacity:""}),I=n(se,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),b.css({width:"",height:""}).append(I),j=T.height()+k.height()+b.outerHeight(!0)-b.height(),D=C.width()+H.width()+b.outerWidth(!0)-b.width(),N=I.outerHeight(!0),z=I.outerWidth(!0);var h=a(_.get("initialWidth"),"x"),s=a(_.get("initialHeight"),"y"),l=_.get("maxWidth"),f=_.get("maxHeight");_.w=Math.max((l!==!1?Math.min(h,a(l,"x")):h)-z-D,0),_.h=Math.max((f!==!1?Math.min(s,a(f,"y")):s)-N-j,0),I.css({width:"",height:_.h}),J.position(),u(ee),_.get("onOpen"),O.add(F).hide(),x.focus(),_.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",d,!0),ae.one(re,function(){e.removeEventListener("focus",d,!0)})),_.get("returnFocus")&&ae.one(re,function(){t(_.el).focus()})}var p=parseFloat(_.get("opacity"));v.css({opacity:p===p?p:"",cursor:_.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),_.get("closeButton")?B.html(_.get("close")).appendTo(b):B.appendTo("
    "),w()}}function p(){x||(V=!1,E=t(i),x=n(se).attr({id:Y,"class":t.support.opacity===!1?Z+"IE":"",role:"dialog",tabindex:"-1"}).hide(),v=n(se,"Overlay").hide(),L=t([n(se,"LoadingOverlay")[0],n(se,"LoadingGraphic")[0]]),y=n(se,"Wrapper"),b=n(se,"Content").append(F=n(se,"Title"),R=n(se,"Current"),P=t('