;(function($){"use strict";var TextResizerPlugin,debug,stringify;stringify=function(value){if("object"===(typeof window.JSON)&&"function"===(typeof window.JSON.stringify)){return JSON.stringify(value)}return value};debug=function(obj){if(window.console&&"function"===(typeof window.console.log)){setTimeout(function(){var key,output=[],keyValuePair;if("string"===(typeof obj)){output.push("jquery.textresizer => "+obj)}else{output.push("jquery.textresizer => {");for(key in obj){if(obj.hasOwnProperty(key)){keyValuePair=[" ",key,": ",stringify(obj[key])].join("");output.push(keyValuePair)}}output.push("}")}console.log(output.join("\n"))},0)}};TextResizerPlugin=function($elements,options){this.$elements=$elements;this.settings=options||TextResizerPlugin.defaults};TextResizerPlugin.defaults={debugMode:false,type:"fontSize",target:"body",selectedIndex:-1,suppressClickThrough:true};TextResizerPlugin.prototype.buildDefaultFontSizes=function(numElms){if(0===numElms){return}var size0=8,mySizes=[],i,value;if(this.settings.debugMode){debug("In buildDefaultFontSizes: numElms = "+numElms)}if(this.settings.debugMode){for(i=0;i selection count: "+numberOfElements)}if(0===numberOfElements){return}this.settings=$.extend({selector:this.$elements.selector,sizes:this.buildDefaultFontSizes(numberOfElements)},$.fn.textresizer.defaults,this.settings);debugMode=this.settings.debugMode;if(debugMode){debug(this.settings)}if(numberOfElements>this.settings.sizes.length){if(debugMode){debug("ERROR: Number of defined sizes incompatible with number of buttons => elements: "+numberOfElements+"; defined sizes: "+this.settings.sizes.length+"; target: "+this.settings.target)}return}this.loadPreviousState();return this};$.fn.textresizer=function(options){var plugin=new TextResizerPlugin(this,options).init();return this.each(function(i){plugin.attachResizerToElement(this,i)})};$.fn.textresizer.defaults=TextResizerPlugin.defaults})(window.jQuery); /*! * jQuery Cookie Plugin v1.4.1 * https://github.com/carhartl/jquery-cookie * * Copyright 2013 Klaus Hartl * Released under the MIT license */ (function(factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory)}else if(typeof exports==='object'){factory(require('jquery'))}else{factory(jQuery)}}(function($){var pluses=/\+/g;function encode(s){return config.raw?s:encodeURIComponent(s)}function decode(s){return config.raw?s:decodeURIComponent(s)}function stringifyCookieValue(value){return encode(config.json?JSON.stringify(value):String(value))}function parseCookieValue(s){if(s.indexOf('"')===0){s=s.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,'\\')}try{s=decodeURIComponent(s.replace(pluses,' '));return config.json?JSON.parse(s):s}catch(e){}}function read(s,converter){var value=config.raw?s:parseCookieValue(s);return $.isFunction(converter)?converter(value):value}var config=$.cookie=function(key,value,options){if(value!==undefined&&!$.isFunction(value)){options=$.extend({},config.defaults,options);if(typeof options.expires==='number'){var days=options.expires,t=options.expires=new Date;t.setTime(+t+days*864e+5)}return(document.cookie=[encode(key),'=',stringifyCookieValue(value),options.expires?'; expires='+options.expires.toUTCString():'',options.path?'; path='+options.path:'',options.domain?'; domain='+options.domain:'',options.secure?'; secure':''].join(''))}var result=key?undefined:{};var cookies=document.cookie?document.cookie.split('; '):[];for(var i=0,l=cookies.length;i