﻿(function(a){a.fn.tweet=function(k){var b=a.extend({username:null,list:null,favorites:false,query:null,avatar_size:null,count:3,fetch:null,page:1,retweets:true,intro_text:null,outro_text:null,join_text:null,auto_join_text_default:"i said,",auto_join_text_ed:"i",auto_join_text_ing:"i am",auto_join_text_reply:"i replied to",auto_join_text_url:"i was looking at",loading_text:null,refresh_interval:null,twitter_url:"twitter.com",twitter_api_url:"api.twitter.com",twitter_search_url:"search.twitter.com",template:"{avatar}{time}{join}{text}",comparator:function(a,b){return b.tweet_time-a.tweet_time},filter:function(){return true}},k),e=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi;function c(a,c){if(typeof a==="string"){var b=a;for(var d in c){var e=c[d];b=b.replace(new RegExp("{"+d+"}","g"),e===null?"":e)}return b}else return a(c)}function d(c,b){return function(){var d=[];this.each(function(){d.push(this.replace(c,b))});return a(d)}}a.fn.extend({linkUrl:d(e,function(a){var b=/^[a-z]+:/i.test(a)?a:"http://"+a;return'<a href="'+b+'">'+a+"</a>"}),linkUser:d(/@(\w+)/gi,'@<a href="http://'+b.twitter_url+'/$1">$1</a>'),linkHash:d(/(?:^| )[\#]+([\w\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u00ff\u0600-\u06ff]+)/gi,' <a href="http://'+b.twitter_search_url+"/search?q=&tag=$1&lang=all"+(b.username&&b.username.length==1?"&from="+b.username.join("%2BOR%2B"):"")+'">#$1</a>'),capAwesome:d(/\b(awesome)\b/gi,'<span class="awesome">$1</span>'),capEpic:d(/\b(epic)\b/gi,'<span class="epic">$1</span>'),makeHeart:d(/(&lt;)+[3]/gi,"<tt class='heart'>&#x2665;</tt>")});function j(a){return Date.parse(a.replace(/^([a-z]{3})( [a-z]{3} \d\d?)(.*)( \d{4})$/i,"$1,$2$4$3"))}function i(d){var c=arguments.length>1?arguments[1]:new Date,a=parseInt((c.getTime()-d)/1e3,10),b="";if(a<60)b=a+" secondes";else if(a<120)b="une minute";else if(a<45*60)b=parseInt(a/60,10).toString()+" minutes";else if(a<2*60*60)b="une heure";else if(a<24*60*60)b=parseInt(a/3600,10).toString()+" heures";else if(a<48*60*60)b="une journée";else b=parseInt(a/86400,10).toString()+" jours";return"Il y a "+b}function g(a){return a.match(/^(@([A-Za-z0-9-_]+)) .*/i)?b.auto_join_text_reply:a.match(e)?b.auto_join_text_url:a.match(/^((\w+ed)|just) .*/im)?b.auto_join_text_ed:a.match(/^(\w*ing) .*/i)?b.auto_join_text_ing:b.auto_join_text_default}function h(){var c="https:"==document.location.protocol?"https:":"http:",a=b.fetch===null?b.count:b.fetch;if(b.list)return c+"//"+b.twitter_api_url+"/1/"+b.username[0]+"/lists/"+b.list+"/statuses.json?page="+b.page+"&per_page="+a+"&callback=?";else if(b.favorites)return c+"//"+b.twitter_api_url+"/favorites/"+b.username[0]+".json?page="+b.page+"&count="+a+"&callback=?";else if(b.query===null&&b.username.length==1)return c+"//"+b.twitter_api_url+"/1/statuses/user_timeline.json?screen_name="+b.username[0]+"&count="+a+(b.retweets?"&include_rts=1":"")+"&page="+b.page+"&callback=?";else{var d=b.query||"from:"+b.username.join(" OR from:");return c+"//"+b.twitter_search_url+"/search.json?&q="+encodeURIComponent(d)+"&rpp="+a+"&page="+b.page+"&callback=?"}}function f(e){var d={};d.item=e;d.source=e.source;d.screen_name=e.from_user||e.user.screen_name;d.avatar_size=b.avatar_size;d.avatar_url=e.profile_image_url||e.user.profile_image_url;d.retweet=typeof e.retweeted_status!="undefined";d.tweet_time=j(e.created_at);d.join_text=b.join_text=="auto"?g(e.text):b.join_text;d.tweet_id=e.id_str;d.twitter_base="http://"+b.twitter_url+"/";d.user_url=d.twitter_base+d.screen_name;d.tweet_url=d.user_url+"/status/"+d.tweet_id;d.reply_url=d.twitter_base+"intent/tweet?in_reply_to="+d.tweet_id;d.retweet_url=d.twitter_base+"intent/retweet?tweet_id="+d.tweet_id;d.favorite_url=d.twitter_base+"intent/favorite?tweet_id="+d.tweet_id;d.retweeted_screen_name=d.retweet&&e.retweeted_status.user.screen_name;d.tweet_relative_time=i(d.tweet_time);d.tweet_raw_text=d.retweet?"RT @"+d.retweeted_screen_name+" "+e.retweeted_status.text:e.text;d.tweet_text=a([d.tweet_raw_text]).linkUrl().linkUser().linkHash()[0];d.tweet_text_fancy=a([d.tweet_text]).makeHeart().capAwesome().capEpic()[0];d.user=c('<a class="tweet-user" href="{user_url}">{screen_name}</a>',d);d.join=b.join_text?c(' <span class="tweet-join">{join_text}</span> ',d):" ";d.avatar=d.avatar_size?c('<a class="tweet-avatar" href="{user_url}"><img src="{avatar_url}" height="{avatar_size}" width="{avatar_size}" alt="{screen_name}\'s avatar" title="{screen_name}\'s avatar" border="0"/></a>',d):"";d.time=c('<span class="tweet-time"><a href="{tweet_url}" title="view tweet on twitter">{tweet_relative_time}</a></span>',d);d.text=c('<span class="tweet-text">{tweet_text_fancy}</span>',d);d.reply_action=c('<a class="tweet-action tweet-reply" href="{reply_url}">reply</a>',d);d.retweet_action=c('<a class="tweet-action tweet-retweet" href="{retweet_url}">retweet</a>',d);d.favorite_action=c('<a class="tweet-action tweet-favorite" href="{favorite_url}">favorite</a>',d);return d}return this.each(function(k,d){var e=a('<div class="tweet-list">').appendTo(d),i='<p class="tweet-intro">'+b.intro_text+"</p>",j='<p class="tweet-outro">'+b.outro_text+"</p>",g=a('<p class="loading">'+b.loading_text+"</p>");if(b.username&&typeof b.username=="string")b.username=[b.username];b.loading_text&&a(d).append(g);a(d).bind("tweet:load",function(){a.getJSON(h(),function(k){b.loading_text&&g.remove();b.intro_text&&e.before(i);e.empty();var h=a.map(k.results||k,f);h=a.grep(h,b.filter).sort(b.comparator).slice(0,b.count);e.append(a.map(h,function(a){return'<div class="latest-tweet">'+c(b.template,a)+"</div>"}).join("")).children("li:first").addClass("tweet-first").end().children("li:odd").addClass("tweet-even").end().children("li:even").addClass("tweet-odd");b.outro_text&&e.after(j);a(d).trigger("loaded").trigger(h.length===0?"empty":"full");b.refresh_interval&&window.setTimeout(function(){a(d).trigger("tweet:load")},1e3*b.refresh_interval)})}).trigger("tweet:load")})}})(jQuery);jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,d,a,b,c){return jQuery.easing[jQuery.easing.def](e,d,a,b,c)},easeInQuad:function(e,a,b,c,d){return c*(a/=d)*a+b},easeOutQuad:function(e,a,b,c,d){return-c*(a/=d)*(a-2)+b},easeInOutQuad:function(e,a,b,c,d){return(a/=d/2)<1?c/2*a*a+b:-c/2*(--a*(a-2)-1)+b},easeInCubic:function(e,a,b,c,d){return c*(a/=d)*a*a+b},easeOutCubic:function(e,a,b,c,d){return c*((a=a/d-1)*a*a+1)+b},easeInOutCubic:function(e,a,b,c,d){return(a/=d/2)<1?c/2*a*a*a+b:c/2*((a-=2)*a*a+2)+b},easeInQuart:function(e,a,b,c,d){return c*(a/=d)*a*a*a+b},easeOutQuart:function(e,a,b,c,d){return-c*((a=a/d-1)*a*a*a-1)+b},easeInOutQuart:function(e,a,b,c,d){return(a/=d/2)<1?c/2*a*a*a*a+b:-c/2*((a-=2)*a*a*a-2)+b},easeInQuint:function(e,a,b,c,d){return c*(a/=d)*a*a*a*a+b},easeOutQuint:function(e,a,b,c,d){return c*((a=a/d-1)*a*a*a*a+1)+b},easeInOutQuint:function(e,a,b,c,d){return(a/=d/2)<1?c/2*a*a*a*a*a+b:c/2*((a-=2)*a*a*a*a+2)+b},easeInSine:function(e,d,b,a,c){return-a*Math.cos(d/c*(Math.PI/2))+a+b},easeOutSine:function(e,d,a,b,c){return b*Math.sin(d/c*(Math.PI/2))+a},easeInOutSine:function(e,d,a,b,c){return-b/2*(Math.cos(Math.PI*d/c)-1)+a},easeInExpo:function(e,b,a,c,d){return b==0?a:c*Math.pow(2,10*(b/d-1))+a},easeOutExpo:function(e,d,a,b,c){return d==c?a+b:b*(-Math.pow(2,-10*d/c)+1)+a},easeInOutExpo:function(e,a,b,c,d){return a==0?b:a==d?b+c:(a/=d/2)<1?c/2*Math.pow(2,10*(a-1))+b:c/2*(-Math.pow(2,-10*--a)+2)+b},easeInCirc:function(e,a,b,c,d){return-c*(Math.sqrt(1-(a/=d)*a)-1)+b},easeOutCirc:function(e,a,b,c,d){return c*Math.sqrt(1-(a=a/d-1)*a)+b},easeInOutCirc:function(e,a,b,c,d){return(a/=d/2)<1?-c/2*(Math.sqrt(1-a*a)-1)+b:c/2*(Math.sqrt(1-(a-=2)*a)+1)+b},easeInElastic:function(h,d,e,a,f){var g=1.70158,b=0,c=a;if(d==0)return e;if((d/=f)==1)return e+a;if(!b)b=f*.3;if(c<Math.abs(a)){c=a;var g=b/4}else var g=b/(2*Math.PI)*Math.asin(a/c);return-(c*Math.pow(2,10*(d-=1))*Math.sin((d*f-g)*2*Math.PI/b))+e},easeOutElastic:function(h,d,e,a,f){var g=1.70158,b=0,c=a;if(d==0)return e;if((d/=f)==1)return e+a;if(!b)b=f*.3;if(c<Math.abs(a)){c=a;var g=b/4}else var g=b/(2*Math.PI)*Math.asin(a/c);return c*Math.pow(2,-10*d)*Math.sin((d*f-g)*2*Math.PI/b)+a+e},easeInOutElastic:function(h,a,e,b,f){var g=1.70158,c=0,d=b;if(a==0)return e;if((a/=f/2)==2)return e+b;if(!c)c=f*.3*1.5;if(d<Math.abs(b)){d=b;var g=c/4}else var g=c/(2*Math.PI)*Math.asin(b/d);return a<1?-.5*d*Math.pow(2,10*(a-=1))*Math.sin((a*f-g)*2*Math.PI/c)+e:d*Math.pow(2,-10*(a-=1))*Math.sin((a*f-g)*2*Math.PI/c)*.5+b+e},easeInBack:function(f,b,c,d,e,a){if(a==undefined)a=1.70158;return d*(b/=e)*b*((a+1)*b-a)+c},easeOutBack:function(f,b,c,d,e,a){if(a==undefined)a=1.70158;return d*((b=b/e-1)*b*((a+1)*b+a)+1)+c},easeInOutBack:function(f,a,c,d,e,b){if(b==undefined)b=1.70158;return(a/=e/2)<1?d/2*a*a*(((b*=1.525)+1)*a-b)+c:d/2*((a-=2)*a*(((b*=1.525)+1)*a+b)+2)+c},easeInBounce:function(e,d,c,a,b){return a-jQuery.easing.easeOutBounce(e,b-d,0,a,b)+c},easeOutBounce:function(e,a,b,c,d){return(a/=d)<1/2.75?c*7.5625*a*a+b:a<2/2.75?c*(7.5625*(a-=1.5/2.75)*a+.75)+b:a<2.5/2.75?c*(7.5625*(a-=2.25/2.75)*a+.9375)+b:c*(7.5625*(a-=2.625/2.75)*a+.984375)+b},easeInOutBounce:function(e,c,d,b,a){return c<a/2?jQuery.easing.easeInBounce(e,c*2,0,b,a)*.5+d:jQuery.easing.easeOutBounce(e,c*2-a,0,b,a)*.5+b*.5+d}});
/*
 * jQuery UI 1.8.11
 *
 * 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(a,b){function c(b){return!a(b).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.ui=a.ui||{};if(!a.ui.version){a.extend(a.ui,{version:"1.8.11",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}});a.fn.extend({_focus:a.fn.focus,focus:function(b,c){return typeof b==="number"?this.each(function(){var d=this;setTimeout(function(){a(d).focus();c&&c.call(d)},b)}):this._focus.apply(this,arguments)},scrollParent:function(){var b;b=a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!b.length?a(document):b},zIndex:function(c){if(c!==b)return this.css("zIndex",c);if(this.length){c=a(this[0]);for(var d;c.length&&c[0]!==document;){d=c.css("position");if(d==="absolute"||d==="relative"||d==="fixed"){d=parseInt(c.css("zIndex"),10);if(!isNaN(d)&&d!==0)return d}c=c.parent()}}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});a.each(["Width","Height"],function(h,c){function d(c,b,d,e){a.each(g,function(){b-=parseFloat(a.curCSS(c,"padding"+this,true))||0;if(d)b-=parseFloat(a.curCSS(c,"border"+this+"Width",true))||0;if(e)b-=parseFloat(a.curCSS(c,"margin"+this,true))||0});return b}var g=c==="Width"?["Left","Right"]:["Top","Bottom"],e=c.toLowerCase(),f={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+c]=function(g){return g===b?f["inner"+c].call(this):this.each(function(){a(this).css(e,d(this,g)+"px")})};a.fn["outer"+c]=function(b,g){return typeof b!=="number"?f["outer"+c].call(this,b):this.each(function(){a(this).css(e,d(this,b,true,g)+"px")})}});a.extend(a.expr[":"],{data:function(b,d,c){return!!a.data(b,c[3])},focusable:function(b){var d=b.nodeName.toLowerCase(),e=a.attr(b,"tabindex");if("area"===d){d=b.parentNode;e=d.name;if(!b.href||!e||d.nodeName.toLowerCase()!=="map")return false;b=a("img[usemap=#"+e+"]")[0];return!!b&&c(b)}return(/input|select|textarea|button|object/.test(d)?!b.disabled:"a"==d?b.href||!isNaN(e):!isNaN(e))&&c(b)},tabbable:function(b){var c=a.attr(b,"tabindex");return(isNaN(c)||c>=0)&&a(b).is(":focusable")}});a(function(){var c=document.body,b=c.appendChild(b=document.createElement("div"));a.extend(b.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=b.offsetHeight===100;a.support.selectstart="onselectstart"in b;c.removeChild(b).style.display="none"});a.extend(a.ui,{plugin:{add:function(b,e,d){b=a.ui[b].prototype;for(var c in d){b.plugins[c]=b.plugins[c]||[];b.plugins[c].push([e,d[c]])}},call:function(b,a,d){if((a=b.plugins[a])&&b.element[0].parentNode)for(var c=0;c<a.length;c++)b.options[a[c][0]]&&a[c][1].apply(b.element,d)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(c,b){if(a(c).css("overflow")==="hidden")return false;b=b&&b==="left"?"scrollLeft":"scrollTop";var d=false;if(c[b]>0)return true;c[b]=1;d=c[b]>0;c[b]=0;return d},isOverAxis:function(a,b,c){return a>b&&a<b+c},isOver:function(b,c,d,e,f,g){return a.ui.isOverAxis(b,d,f)&&a.ui.isOverAxis(c,e,g)}})}})(jQuery);
/*
 * jQuery UI Widget 1.8.11
 *
 * 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(a,b){if(a.cleanData){var c=a.cleanData;a.cleanData=function(b){for(var d=0,e;(e=b[d])!=null;d++)a(e).triggerHandler("remove");c(b)}}else{var d=a.fn.remove;a.fn.remove=function(b,c){return this.each(function(){if(!c)(!b||a.filter(b,[this]).length)&&a("*",this).add([this]).each(function(){a(this).triggerHandler("remove")});return d.call(a(this),b,c)})}}a.widget=function(b,d,e){var c=b.split(".")[0],f;b=b.split(".")[1];f=c+"-"+b;if(!e){e=d;d=a.Widget}a.expr[":"][f]=function(c){return!!a.data(c,b)};a[c]=a[c]||{};a[c][b]=function(b,a){arguments.length&&this._createWidget(b,a)};d=new d;d.options=a.extend(true,{},d.options);a[c][b].prototype=a.extend(true,d,{"namespace":c,widgetName:b,widgetEventPrefix:a[c][b].prototype.widgetEventPrefix||b,widgetBaseClass:f},e);a.widget.bridge(b,a[c][b])};a.widget.bridge=function(c,d){a.fn[c]=function(e){var f=typeof e==="string",g=Array.prototype.slice.call(arguments,1),h=this;e=!f&&g.length?a.extend.apply(null,[true,e].concat(g)):e;if(f&&e.charAt(0)==="_")return h;f?this.each(function(){var d=a.data(this,c),f=d&&a.isFunction(d[e])?d[e].apply(d,g):d;if(f!==d&&f!==b){h=f;return false}}):this.each(function(){var b=a.data(this,c);b?b.option(e||{})._init():a.data(this,c,new d(e,this))});return h}};a.Widget=function(a,b){arguments.length&&this._createWidget(a,b)};a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(c,b){a.data(b,this.widgetName,this);this.element=a(b);this.options=a.extend(true,{},this.options,this._getCreateOptions(),c);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return a.metadata&&a.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(c,e){var d=c;if(arguments.length===0)return a.extend({},this.options);if(typeof c==="string"){if(e===b)return this.options[c];d={};d[c]=e}this._setOptions(d);return this},_setOptions:function(b){var c=this;a.each(b,function(a,b){c._setOption(a,b)});return this},_setOption:function(b,a){this.options[b]=a;b==="disabled"&&this.widget()[a?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",a);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(c,b,d){var f=this.options[c];b=a.Event(b);b.type=(c===this.widgetEventPrefix?c:this.widgetEventPrefix+c).toLowerCase();d=d||{};if(b.originalEvent){c=a.event.props.length;for(var e;c;){e=a.event.props[--c];b[e]=b.originalEvent[e]}}this.element.trigger(b,d);return!(a.isFunction(f)&&f.call(this.element[0],b,d)===false||b.isDefaultPrevented())}}})(jQuery);
/*
 * jQuery UI Mouse 1.8.11
 *
 * 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(a){a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(a){return b._mouseDown(a)}).bind("click."+this.widgetName,function(c){if(true===a.data(c.target,b.widgetName+".preventClickEvent")){a.removeData(c.target,b.widgetName+".preventClickEvent");c.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(b){b.originalEvent=b.originalEvent||{};if(!b.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(b);this._mouseDownEvent=b;var c=this,d=b.which==1,e=typeof this.options.cancel=="string"?a(b.target).parents().add(b.target).filter(this.options.cancel).length:false;if(!d||e||!this._mouseCapture(b))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=this._mouseStart(b)!==false;if(!this._mouseStarted){b.preventDefault();return true}}true===a.data(b.target,this.widgetName+".preventClickEvent")&&a.removeData(b.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(a){return c._mouseMove(a)};this._mouseUpDelegate=function(a){return c._mouseUp(a)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);b.preventDefault();return b.originalEvent.mouseHandled=true}},_mouseMove:function(b){if(a.browser.msie&&!(document.documentMode>=9)&&!b.button)return this._mouseUp(b);if(this._mouseStarted){this._mouseDrag(b);return b.preventDefault()}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==false)?this._mouseDrag(b):this._mouseUp(b);return!this._mouseStarted},_mouseUp:function(b){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;b.target==this._mouseDownEvent.target&&a.data(b.target,this.widgetName+".preventClickEvent",true);this._mouseStop(b)}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);(function(a){a.widget("ui.draggable",a.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper=="original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(b){var c=this.options;if(this.helper||c.disabled||a(b.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(b);return!this.handle?false:true},_mouseStart:function(b){var c=this.options;this.helper=this._createHelper(b);this._cacheHelperProportions();if(a.ui.ddmanager)a.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt);c.containment&&this._setContainment();if(this._trigger("start",b)===false){this._clear();return false}this._cacheHelperProportions();a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(b,true);return true},_mouseDrag:function(c,b){this.position=this._generatePosition(c);this.positionAbs=this._convertPositionTo("absolute");if(!b){b=this._uiHash();if(this._trigger("drag",c,b)===false){this._mouseUp({});return false}this.position=b.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";a.ui.ddmanager&&a.ui.ddmanager.drag(this,c);return false},_mouseStop:function(c){var b=false;if(a.ui.ddmanager&&!this.options.dropBehaviour)b=a.ui.ddmanager.drop(this,c);if(this.dropped){b=this.dropped;this.dropped=false}if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original")return false;if(this.options.revert=="invalid"&&!b||this.options.revert=="valid"&&b||this.options.revert===true||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,b)){var d=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){d._trigger("stop",c)!==false&&d._clear()})}else this._trigger("stop",c)!==false&&this._clear();return false},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(c){var b=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==c.target)b=true});return b},_createHelper:function(b){var c=this.options;b=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[b])):c.helper=="clone"?this.element.clone():this.element;b.parents("body").length||b.appendTo(c.appendTo=="parent"?this.element[0].parentNode:c.appendTo);b[0]!=this.element[0]&&!/(fixed|absolute)/.test(b.css("position"))&&b.css("position","absolute");return b},_adjustOffsetFromHelper:function(b){if(typeof b=="string")b=b.split(" ");if(a.isArray(b))b={left:+b[0],top:+b[1]||0};if("left"in b)this.offset.click.left=b.left+this.margins.left;if("right"in b)this.offset.click.left=this.helperProportions.width-b.right+this.margins.left;if("top"in b)this.offset.click.top=b.top+this.margins.top;if("bottom"in b)this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)b={top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b=this.options;if(b.containment=="parent")b.containment=this.helper[0].parentNode;if(b.containment=="document"||b.containment=="window")this.containment=[(b.containment=="document"?0:a(window).scrollLeft())-this.offset.relative.left-this.offset.parent.left,(b.containment=="document"?0:a(window).scrollTop())-this.offset.relative.top-this.offset.parent.top,(b.containment=="document"?0:a(window).scrollLeft())+a(b.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b.containment=="document"?0:a(window).scrollTop())+(a(b.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(b.containment)&&b.containment.constructor!=Array){var c=a(b.containment)[0];if(c){b=a(b.containment).offset();var d=a(c).css("overflow")!="hidden";this.containment=[b.left+(parseInt(a(c).css("borderLeftWidth"),10)||0)+(parseInt(a(c).css("paddingLeft"),10)||0),b.top+(parseInt(a(c).css("borderTopWidth"),10)||0)+(parseInt(a(c).css("paddingTop"),10)||0),b.left+(d?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css("borderLeftWidth"),10)||0)-(parseInt(a(c).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,b.top+(d?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css("borderTopWidth"),10)||0)-(parseInt(a(c).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom]}}else if(b.containment.constructor==Array)this.containment=b.containment},_convertPositionTo:function(b,c){if(!c)c=this.position;b=b=="absolute"?1:-1;var d=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(d[0].tagName);return{top:c.top+this.offset.relative.top*b+this.offset.parent.top*b-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:d.scrollTop())*b),left:c.left+this.offset.relative.left*b+this.offset.parent.left*b-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:d.scrollLeft())*b)}},_generatePosition:function(e){var d=this.options,f=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=/(html|body)/i.test(f[0].tagName),b=e.pageX,c=e.pageY;if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.left<this.containment[0])b=this.containment[0]+this.offset.click.left;if(e.pageY-this.offset.click.top<this.containment[1])c=this.containment[1]+this.offset.click.top;if(e.pageX-this.offset.click.left>this.containment[2])b=this.containment[2]+this.offset.click.left;if(e.pageY-this.offset.click.top>this.containment[3])c=this.containment[3]+this.offset.click.top}if(d.grid){c=this.originalPageY+Math.round((c-this.originalPageY)/d.grid[1])*d.grid[1];c=this.containment?!(c-this.offset.click.top<this.containment[1]||c-this.offset.click.top>this.containment[3])?c:!(c-this.offset.click.top<this.containment[1])?c-d.grid[1]:c+d.grid[1]:c;b=this.originalPageX+Math.round((b-this.originalPageX)/d.grid[0])*d.grid[0];b=this.containment?!(b-this.offset.click.left<this.containment[0]||b-this.offset.click.left>this.containment[2])?b:!(b-this.offset.click.left<this.containment[0])?b-d.grid[0]:b+d.grid[0]:b}}return{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():g?0:f.scrollTop()),left:b-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:f.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(c,d,b){b=b||this._uiHash();a.ui.plugin.call(this,c,[d,b]);if(c=="drag")this.positionAbs=this._convertPositionTo("absolute");return a.Widget.prototype._trigger.call(this,c,d,b)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});a.extend(a.ui.draggable,{version:"1.8.11"});a.ui.plugin.add("draggable","connectToSortable",{start:function(c,d){var b=a(this).data("draggable"),f=b.options,e=a.extend({},d,{item:b.element});b.sortables=[];a(f.connectToSortable).each(function(){var d=a.data(this,"sortable");if(d&&!d.options.disabled){b.sortables.push({instance:d,shouldRevert:d.options.revert});d.refreshPositions();d._trigger("activate",c,e)}})},stop:function(c,d){var b=a(this).data("draggable"),e=a.extend({},d,{item:b.element});a.each(b.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;b.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(c);this.instance.options.helper=this.instance.options._helper;b.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",c,e)}})},drag:function(c,d){var b=a(this).data("draggable"),e=this;a.each(b.sortables,function(){this.instance.positionAbs=b.positionAbs;this.instance.helperProportions=b.helperProportions;this.instance.offset.click=b.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=a(e).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return d.helper[0]};c.target=this.instance.currentItem[0];this.instance._mouseCapture(c,true);this.instance._mouseStart(c,true,true);this.instance.offset.click.top=b.offset.click.top;this.instance.offset.click.left=b.offset.click.left;this.instance.offset.parent.left-=b.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=b.offset.parent.top-this.instance.offset.parent.top;b._trigger("toSortable",c);b.dropped=this.instance.element;b.currentItem=b.element;this.instance.fromOutside=b}this.instance.currentItem&&this.instance._mouseDrag(c)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",c,this.instance._uiHash(this.instance));this.instance._mouseStop(c,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();b._trigger("fromSortable",c);b.dropped=false}})}});a.ui.plugin.add("draggable","cursor",{start:function(){var b=a("body"),c=a(this).data("draggable").options;if(b.css("cursor"))c._cursor=b.css("cursor");b.css("cursor",c.cursor)},stop:function(){var b=a(this).data("draggable").options;b._cursor&&a("body").css("cursor",b._cursor)}});a.ui.plugin.add("draggable","iframeFix",{start:function(){var b=a(this).data("draggable").options;a(b.iframeFix===true?"iframe":b.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(a(this).offset()).appendTo("body")})},stop:function(){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});a.ui.plugin.add("draggable","opacity",{start:function(b,c){b=a(c.helper);c=a(this).data("draggable").options;if(b.css("opacity"))c._opacity=b.css("opacity");b.css("opacity",c.opacity)},stop:function(b,c){b=a(this).data("draggable").options;b._opacity&&a(c.helper).css("opacity",b._opacity)}});a.ui.plugin.add("draggable","scroll",{start:function(){var b=a(this).data("draggable");if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML")b.overflowOffset=b.scrollParent.offset()},drag:function(d){var c=a(this).data("draggable"),b=c.options,e=false;if(c.scrollParent[0]!=document&&c.scrollParent[0].tagName!="HTML"){if(!b.axis||b.axis!="x")if(c.overflowOffset.top+c.scrollParent[0].offsetHeight-d.pageY<b.scrollSensitivity)c.scrollParent[0].scrollTop=e=c.scrollParent[0].scrollTop+b.scrollSpeed;else if(d.pageY-c.overflowOffset.top<b.scrollSensitivity)c.scrollParent[0].scrollTop=e=c.scrollParent[0].scrollTop-b.scrollSpeed;if(!b.axis||b.axis!="y")if(c.overflowOffset.left+c.scrollParent[0].offsetWidth-d.pageX<b.scrollSensitivity)c.scrollParent[0].scrollLeft=e=c.scrollParent[0].scrollLeft+b.scrollSpeed;else if(d.pageX-c.overflowOffset.left<b.scrollSensitivity)c.scrollParent[0].scrollLeft=e=c.scrollParent[0].scrollLeft-b.scrollSpeed}else{if(!b.axis||b.axis!="x")if(d.pageY-a(document).scrollTop()<b.scrollSensitivity)e=a(document).scrollTop(a(document).scrollTop()-b.scrollSpeed);else if(a(window).height()-(d.pageY-a(document).scrollTop())<b.scrollSensitivity)e=a(document).scrollTop(a(document).scrollTop()+b.scrollSpeed);if(!b.axis||b.axis!="y")if(d.pageX-a(document).scrollLeft()<b.scrollSensitivity)e=a(document).scrollLeft(a(document).scrollLeft()-b.scrollSpeed);else if(a(window).width()-(d.pageX-a(document).scrollLeft())<b.scrollSensitivity)e=a(document).scrollLeft(a(document).scrollLeft()+b.scrollSpeed)}e!==false&&a.ui.ddmanager&&!b.dropBehaviour&&a.ui.ddmanager.prepareOffsets(c,d)}});a.ui.plugin.add("draggable","snap",{start:function(){var b=a(this).data("draggable"),c=b.options;b.snapElements=[];a(c.snap.constructor!=String?c.snap.items||":data(draggable)":c.snap).each(function(){var c=a(this),d=c.offset();this!=b.element[0]&&b.snapElements.push({item:this,width:c.outerWidth(),height:c.outerHeight(),top:d.top,left:d.left})})},drag:function(s,e){for(var b=a(this).data("draggable"),r=b.options,c=r.snapTolerance,j=e.offset.left,l=j+b.helperProportions.width,k=e.offset.top,m=k+b.helperProportions.height,d=b.snapElements.length-1;d>=0;d--){var f=b.snapElements[d].left,h=f+b.snapElements[d].width,g=b.snapElements[d].top,i=g+b.snapElements[d].height;if(f-c<j&&j<h+c&&g-c<k&&k<i+c||f-c<j&&j<h+c&&g-c<m&&m<i+c||f-c<l&&l<h+c&&g-c<k&&k<i+c||f-c<l&&l<h+c&&g-c<m&&m<i+c){if(r.snapMode!="inner"){var n=Math.abs(g-m)<=c,o=Math.abs(i-k)<=c,p=Math.abs(f-l)<=c,q=Math.abs(h-j)<=c;if(n)e.position.top=b._convertPositionTo("relative",{top:g-b.helperProportions.height,left:0}).top-b.margins.top;if(o)e.position.top=b._convertPositionTo("relative",{top:i,left:0}).top-b.margins.top;if(p)e.position.left=b._convertPositionTo("relative",{top:0,left:f-b.helperProportions.width}).left-b.margins.left;if(q)e.position.left=b._convertPositionTo("relative",{top:0,left:h}).left-b.margins.left}var t=n||o||p||q;if(r.snapMode!="outer"){n=Math.abs(g-k)<=c;o=Math.abs(i-m)<=c;p=Math.abs(f-j)<=c;q=Math.abs(h-l)<=c;if(n)e.position.top=b._convertPositionTo("relative",{top:g,left:0}).top-b.margins.top;if(o)e.position.top=b._convertPositionTo("relative",{top:i-b.helperProportions.height,left:0}).top-b.margins.top;if(p)e.position.left=b._convertPositionTo("relative",{top:0,left:f}).left-b.margins.left;if(q)e.position.left=b._convertPositionTo("relative",{top:0,left:h-b.helperProportions.width}).left-b.margins.left}if(!b.snapElements[d].snapping&&(n||o||p||q||t))b.options.snap.snap&&b.options.snap.snap.call(b.element,s,a.extend(b._uiHash(),{snapItem:b.snapElements[d].item}));b.snapElements[d].snapping=n||o||p||q||t}else{b.snapElements[d].snapping&&b.options.snap.release&&b.options.snap.release.call(b.element,s,a.extend(b._uiHash(),{snapItem:b.snapElements[d].item}));b.snapElements[d].snapping=false}}}});a.ui.plugin.add("draggable","stack",{start:function(){var b=a(this).data("draggable").options;b=a.makeArray(a(b.stack)).sort(function(b,c){return(parseInt(a(b).css("zIndex"),10)||0)-(parseInt(a(c).css("zIndex"),10)||0)});if(b.length){var c=parseInt(b[0].style.zIndex)||0;a(b).each(function(a){this.style.zIndex=c+a});this[0].style.zIndex=c+b.length}}});a.ui.plugin.add("draggable","zIndex",{start:function(b,c){b=a(c.helper);c=a(this).data("draggable").options;if(b.css("zIndex"))c._zIndex=b.css("zIndex");b.css("zIndex",c.zIndex)},stop:function(b,c){b=a(this).data("draggable").options;b._zIndex&&a(c.helper).css("zIndex",b._zIndex)}})})(jQuery);(function(a){a.widget("ui.resizable",a.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1e3},_create:function(){var c=this,b=this.options;this.element.addClass("ui-resizable");a.extend(this,{_aspectRatio:!!b.aspectRatio,aspectRatio:b.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:b.helper||b.ghost||b.animate?b.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&a.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});this.element.wrap(a('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=b.handles||(!a(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all")this.handles="n,e,s,w,se,sw,ne,nw";var g=this.handles.split(",");this.handles={};for(var e=0;e<g.length;e++){var d=a.trim(g[e]),f=a('<div class="ui-resizable-handle '+("ui-resizable-"+d)+'"></div>');/sw|se|ne|nw/.test(d)&&f.css({zIndex:++b.zIndex});"se"==d&&f.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[d]=".ui-resizable-"+d;this.element.append(f)}}this._renderAxis=function(d){d=d||this.element;for(var b in this.handles){if(this.handles[b].constructor==String)this.handles[b]=a(this.handles[b],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var c=a(this.handles[b],this.element),e=0;e=/sw|ne|nw|se|n|s/.test(b)?c.outerHeight():c.outerWidth();c=["padding",/ne|nw|n/.test(b)?"Top":/se|sw|s/.test(b)?"Bottom":/^e$/.test(b)?"Right":"Left"].join("");d.css(c,e);this._proportionallyResize()}a(this.handles[b])}};this._renderAxis(this.element);this._handles=a(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!c.resizing){if(this.className)var a=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);c.axis=a&&a[1]?a[1]:"se"}});if(b.autoHide){this._handles.hide();a(this.element).addClass("ui-resizable-autohide").hover(function(){a(this).removeClass("ui-resizable-autohide");c._handles.show()},function(){if(!c.resizing){a(this).addClass("ui-resizable-autohide");c._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var c=function(b){a(b).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){c(this.element);var b=this.element;b.after(this.originalElement.css({position:b.css("position"),width:b.outerWidth(),height:b.outerHeight(),top:b.css("top"),left:b.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);c(this.originalElement);return this},_mouseCapture:function(c){var b=false;for(var d in this.handles)if(a(this.handles[d])[0]==c.target)b=true;return!this.options.disabled&&b},_mouseStart:function(f){var d=this.options,e=this.element.position(),b=this.element;this.resizing=true;this.documentScroll={top:a(document).scrollTop(),left:a(document).scrollLeft()};(b.is(".ui-draggable")||/absolute/.test(b.css("position")))&&b.css({position:"absolute",top:e.top,left:e.left});a.browser.opera&&/relative/.test(b.css("position"))&&b.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();e=c(this.helper.css("left"));var g=c(this.helper.css("top"));if(d.containment){e+=a(d.containment).scrollLeft()||0;g+=a(d.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:e,top:g};this.size=this._helper?{width:b.outerWidth(),height:b.outerHeight()}:{width:b.width(),height:b.height()};this.originalSize=this._helper?{width:b.outerWidth(),height:b.outerHeight()}:{width:b.width(),height:b.height()};this.originalPosition={left:e,top:g};this.sizeDiff={width:b.outerWidth()-b.width(),height:b.outerHeight()-b.height()};this.originalMousePosition={left:f.pageX,top:f.pageY};this.aspectRatio=typeof d.aspectRatio=="number"?d.aspectRatio:this.originalSize.width/this.originalSize.height||1;d=a(".ui-resizable-"+this.axis).css("cursor");a("body").css("cursor",d=="auto"?this.axis+"-resize":d);b.addClass("ui-resizable-resizing");this._propagate("start",f);return true},_mouseDrag:function(a){var d=this.helper,b=this.originalMousePosition,c=this._change[this.axis];if(!c)return false;b=c.apply(this,[a,a.pageX-b.left||0,a.pageY-b.top||0]);if(this._aspectRatio||a.shiftKey)b=this._updateRatio(b,a);b=this._respectSize(b,a);this._propagate("resize",a);d.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(b);this._trigger("resize",a,this.ui());return false},_mouseStop:function(f){this.resizing=false;var e=this.options,b=this;if(this._helper){var c=this._proportionallyResizeElements,d=c.length&&/textarea/i.test(c[0].nodeName);c=d&&a.ui.hasScroll(c[0],"left")?0:b.sizeDiff.height;d=d?0:b.sizeDiff.width;d={width:b.helper.width()-d,height:b.helper.height()-c};c=parseInt(b.element.css("left"),10)+(b.position.left-b.originalPosition.left)||null;var g=parseInt(b.element.css("top"),10)+(b.position.top-b.originalPosition.top)||null;e.animate||this.element.css(a.extend(d,{top:g,left:c}));b.helper.height(b.size.height);b.helper.width(b.size.width);this._helper&&!e.animate&&this._proportionallyResize()}a("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",f);this._helper&&this.helper.remove();return false},_updateCache:function(a){this.offset=this.helper.offset();if(b(a.left))this.position.left=a.left;if(b(a.top))this.position.top=a.top;if(b(a.height))this.size.height=a.height;if(b(a.width))this.size.width=a.width},_updateRatio:function(a){var c=this.position,b=this.size,d=this.axis;if(a.height)a.width=b.height*this.aspectRatio;else if(a.width)a.height=b.width/this.aspectRatio;if(d=="sw"){a.left=c.left+(b.width-a.width);a.top=null}if(d=="nw"){a.top=c.top+(b.height-a.height);a.left=c.left+(b.width-a.width)}return a},_respectSize:function(a){var c=this.options,d=this.axis,e=b(a.width)&&c.maxWidth&&c.maxWidth<a.width,f=b(a.height)&&c.maxHeight&&c.maxHeight<a.height,g=b(a.width)&&c.minWidth&&c.minWidth>a.width,h=b(a.height)&&c.minHeight&&c.minHeight>a.height;if(g)a.width=c.minWidth;if(h)a.height=c.minHeight;if(e)a.width=c.maxWidth;if(f)a.height=c.maxHeight;var i=this.originalPosition.left+this.originalSize.width,j=this.position.top+this.size.height,k=/sw|nw|w/.test(d);d=/nw|ne|n/.test(d);if(g&&k)a.left=i-c.minWidth;if(e&&k)a.left=i-c.maxWidth;if(h&&d)a.top=j-c.minHeight;if(f&&d)a.top=j-c.maxHeight;if((c=!a.width&&!a.height)&&!a.left&&a.top)a.top=null;else if(c&&!a.top&&a.left)a.left=null;return a},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var c=this.helper||this.element,d=0;d<this._proportionallyResizeElements.length;d++){var b=this._proportionallyResizeElements[d];if(!this.borderDif){var e=[b.css("borderTopWidth"),b.css("borderRightWidth"),b.css("borderBottomWidth"),b.css("borderLeftWidth")],f=[b.css("paddingTop"),b.css("paddingRight"),b.css("paddingBottom"),b.css("paddingLeft")];this.borderDif=a.map(e,function(a,b){a=parseInt(a,10)||0;b=parseInt(f[b],10)||0;return a+b})}a.browser.msie&&(a(c).is(":hidden")||a(c).parents(":hidden").length)||b.css({height:c.height()-this.borderDif[0]-this.borderDif[2]||0,width:c.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var d=this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||a('<div style="overflow:hidden;"></div>');var b=a.browser.msie&&a.browser.version<7,c=b?1:0;b=b?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+b,height:this.element.outerHeight()+b,position:"absolute",left:this.elementOffset.left-c+"px",top:this.elementOffset.top-c+"px",zIndex:++d.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(b,a){return{width:this.originalSize.width+a}},w:function(b,a){return{left:this.originalPosition.left+a,width:this.originalSize.width-a}},n:function(c,b,a){return{top:this.originalPosition.top+a,height:this.originalSize.height-a}},s:function(c,b,a){return{height:this.originalSize.height+a}},se:function(c,b,d){return a.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[c,b,d]))},sw:function(c,b,d){return a.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[c,b,d]))},ne:function(c,b,d){return a.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[c,b,d]))},nw:function(c,b,d){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[c,b,d]))}},_propagate:function(b,c){a.ui.plugin.call(this,b,[c,this.ui()]);b!="resize"&&this._trigger(b,c,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});a.extend(a.ui.resizable,{version:"1.8.11"});a.ui.plugin.add("resizable","alsoResize",{start:function(){var b=a(this).data("resizable").options,c=function(b){a(b).each(function(){var b=a(this);b.data("resizable-alsoresize",{width:parseInt(b.width(),10),height:parseInt(b.height(),10),left:parseInt(b.css("left"),10),top:parseInt(b.css("top"),10),position:b.css("position")})})};if(typeof b.alsoResize=="object"&&!b.alsoResize.parentNode)if(b.alsoResize.length){b.alsoResize=b.alsoResize[0];c(b.alsoResize)}else a.each(b.alsoResize,function(a){c(a)});else c(b.alsoResize)},resize:function(c,g){var b=a(this).data("resizable");c=b.options;var d=b.originalSize,e=b.originalPosition,h={height:b.size.height-d.height||0,width:b.size.width-d.width||0,top:b.position.top-e.top||0,left:b.position.left-e.left||0},f=function(d,c){a(d).each(function(){var d=a(this),f=a(this).data("resizable-alsoresize"),e={},i=c&&c.length?c:d.parents(g.originalElement[0]).length?["width","height"]:["width","height","top","left"];a.each(i,function(a,b){if((a=(f[b]||0)+(h[b]||0))&&a>=0)e[b]=a||null});if(a.browser.opera&&/relative/.test(d.css("position"))){b._revertToRelativePosition=true;d.css({position:"absolute",top:"auto",left:"auto"})}d.css(e)})};typeof c.alsoResize=="object"&&!c.alsoResize.nodeType?a.each(c.alsoResize,function(a,b){f(a,b)}):f(c.alsoResize)},stop:function(){var c=a(this).data("resizable"),b=c.options,d=function(b){a(b).each(function(){var b=a(this);b.css({position:b.data("resizable-alsoresize").position})})};if(c._revertToRelativePosition){c._revertToRelativePosition=false;typeof b.alsoResize=="object"&&!b.alsoResize.nodeType?a.each(b.alsoResize,function(a){d(a)}):d(b.alsoResize)}a(this).removeData("resizable-alsoresize")}});a.ui.plugin.add("resizable","animate",{stop:function(h){var b=a(this).data("resizable"),f=b.options,c=b._proportionallyResizeElements,d=c.length&&/textarea/i.test(c[0].nodeName),e=d&&a.ui.hasScroll(c[0],"left")?0:b.sizeDiff.height;d={width:b.size.width-(d?0:b.sizeDiff.width),height:b.size.height-e};e=parseInt(b.element.css("left"),10)+(b.position.left-b.originalPosition.left)||null;var g=parseInt(b.element.css("top"),10)+(b.position.top-b.originalPosition.top)||null;b.element.animate(a.extend(d,g&&e?{top:g,left:e}:{}),{duration:f.animateDuration,easing:f.animateEasing,step:function(){var d={width:parseInt(b.element.css("width"),10),height:parseInt(b.element.css("height"),10),top:parseInt(b.element.css("top"),10),left:parseInt(b.element.css("left"),10)};c&&c.length&&a(c[0]).css({width:d.width,height:d.height});b._updateCache(d);b._propagate("resize",h)}})}});a.ui.plugin.add("resizable","containment",{start:function(){var b=a(this).data("resizable"),d=b.element,e=b.options.containment;if(d=e instanceof a?e.get(0):/parent/.test(e)?d.parent().get(0):e){b.containerElement=a(d);if(/document/.test(e)||e==document){b.containerOffset={left:0,top:0};b.containerPosition={left:0,top:0};b.parentData={element:a(document),left:0,top:0,width:a(document).width(),height:a(document).height()||document.body.parentNode.scrollHeight}}else{var f=a(d),g=[];a(["Top","Right","Left","Bottom"]).each(function(a,b){g[a]=c(f.css("padding"+b))});b.containerOffset=f.offset();b.containerPosition=f.position();b.containerSize={height:f.innerHeight()-g[3],width:f.innerWidth()-g[1]};e=b.containerOffset;var h=b.containerSize.height,i=b.containerSize.width;i=a.ui.hasScroll(d,"left")?d.scrollWidth:i;h=a.ui.hasScroll(d)?d.scrollHeight:h;b.parentData={element:d,left:e.left,top:e.top,width:i,height:h}}}},resize:function(f){var b=a(this).data("resizable"),d=b.options,c=b.containerOffset,g=b.position;f=b._aspectRatio||f.shiftKey;var e={top:0,left:0},h=b.containerElement;if(h[0]!=document&&/static/.test(h.css("position")))e=c;if(g.left<(b._helper?c.left:0)){b.size.width+=b._helper?b.position.left-c.left:b.position.left-e.left;if(f)b.size.height=b.size.width/d.aspectRatio;b.position.left=d.helper?c.left:0}if(g.top<(b._helper?c.top:0)){b.size.height+=b._helper?b.position.top-c.top:b.position.top;if(f)b.size.width=b.size.height*d.aspectRatio;b.position.top=b._helper?c.top:0}b.offset.left=b.parentData.left+b.position.left;b.offset.top=b.parentData.top+b.position.top;d=Math.abs((b._helper?b.offset.left-e.left:b.offset.left-e.left)+b.sizeDiff.width);c=Math.abs((b._helper?b.offset.top-e.top:b.offset.top-c.top)+b.sizeDiff.height);g=b.containerElement.get(0)==b.element.parent().get(0);e=/relative|absolute/.test(b.containerElement.css("position"));if(g&&e)d-=b.parentData.left;if(d+b.size.width>=b.parentData.width){b.size.width=b.parentData.width-d;if(f)b.size.height=b.size.width/b.aspectRatio}if(c+b.size.height>=b.parentData.height){b.size.height=b.parentData.height-c;if(f)b.size.width=b.size.height*b.aspectRatio}},stop:function(){var b=a(this).data("resizable"),d=b.options,e=b.containerOffset,f=b.containerPosition,g=b.containerElement,c=a(b.helper),h=c.offset(),i=c.outerWidth()-b.sizeDiff.width;c=c.outerHeight()-b.sizeDiff.height;b._helper&&!d.animate&&/relative/.test(g.css("position"))&&a(this).css({left:h.left-f.left-e.left,width:i,height:c});b._helper&&!d.animate&&/static/.test(g.css("position"))&&a(this).css({left:h.left-f.left-e.left,width:i,height:c})}});a.ui.plugin.add("resizable","ghost",{start:function(){var b=a(this).data("resizable"),c=b.options,d=b.size;b.ghost=b.originalElement.clone();b.ghost.css({opacity:.25,display:"block",position:"relative",height:d.height,width:d.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof c.ghost=="string"?c.ghost:"");b.ghost.appendTo(b.helper)},resize:function(){var b=a(this).data("resizable");b.ghost&&b.ghost.css({position:"relative",height:b.size.height,width:b.size.width})},stop:function(){var b=a(this).data("resizable");b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}});a.ui.plugin.add("resizable","grid",{resize:function(){var c=a(this).data("resizable"),b=c.options,h=c.size,d=c.originalSize,f=c.originalPosition,g=c.axis;b.grid=typeof b.grid=="number"?[b.grid,b.grid]:b.grid;var e=Math.round((h.width-d.width)/(b.grid[0]||1))*(b.grid[0]||1);b=Math.round((h.height-d.height)/(b.grid[1]||1))*(b.grid[1]||1);if(/^(se|s|e)$/.test(g)){c.size.width=d.width+e;c.size.height=d.height+b}else if(/^(ne)$/.test(g)){c.size.width=d.width+e;c.size.height=d.height+b;c.position.top=f.top-b}else{if(/^(sw)$/.test(g)){c.size.width=d.width+e;c.size.height=d.height+b}else{c.size.width=d.width+e;c.size.height=d.height+b;c.position.top=f.top-b}c.position.left=f.left-e}}});var c=function(a){return parseInt(a,10)||0},b=function(a){return!isNaN(parseInt(a,10))}})(jQuery);(function(a){var q="2.99";if(a.support==undefined)a.support={opacity:!a.browser.msie};function c(c){a.fn.cycle.debug&&b(c)}function b(){window.console&&console.log&&console.log("[cycle] "+Array.prototype.join.call(arguments," "))}a.expr[":"].paused=function(a){return a.cyclePause};a.fn.cycle=function(f,g){var e={s:this.selector,c:this.context};if(this.length===0&&f!="stop"){if(!a.isReady&&e.s){b("DOM not ready, queuing slideshow");a(function(){a(e.s,e.c).cycle(f,g)});return this}b("terminating; zero elements found by selector"+(a.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var j=k(this,f,g);if(j===false)return;j.updateActivePagerLink=j.updateActivePagerLink||a.fn.cycle.updateActivePagerLink;this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cycleTimeout=this.cyclePause=0;var p=a(this),o=j.slideExpr?a(j.slideExpr,this):p.children(),n=o.get();if(n.length<2){b("terminating; too few slides: "+n.length);return}var i=m(p,o,n,j,e);if(i===false)return;var l=i.continuous?10:h(n[i.currSlide],n[i.nextSlide],i,!i.backwards);if(l){l+=i.delay||0;if(l<10)l=10;c("first timeout: "+l);this.cycleTimeout=setTimeout(function(){d(n,i,0,!j.backwards)},l)}})};function k(e,c,g){if(e.cycleStop==undefined)e.cycleStop=0;if(c===undefined||c===null)c={};if(c.constructor==String){switch(c){case"destroy":case"stop":var h=a(e).data("cycle.opts");if(!h)return false;e.cycleStop++;e.cycleTimeout&&clearTimeout(e.cycleTimeout);e.cycleTimeout=0;a(e).removeData("cycle.opts");c=="destroy"&&o(h);return false;case"toggle":e.cyclePause=e.cyclePause===1?0:1;i(e.cyclePause,g,e);return false;case"pause":e.cyclePause=1;return false;case"resume":e.cyclePause=0;i(false,g,e);return false;case"prev":case"next":var h=a(e).data("cycle.opts");if(!h){b('options not found, "prev/next" ignored');return false}a.fn.cycle[c](h);return false;default:c={fx:c}}return c}else if(c.constructor==Number){var f=c;c=a(e).data("cycle.opts");if(!c){b("options not found, can not advance slide");return false}if(f<0||f>=c.elements.length){b("invalid slide index: "+f);return false}c.nextSlide=f;if(e.cycleTimeout){clearTimeout(e.cycleTimeout);e.cycleTimeout=0}if(typeof g=="string")c.oneTimeFx=g;d(c.elements,c,1,f>=c.currSlide);return false}return c;function i(f,g,e){if(!f&&g===true){var c=a(e).data("cycle.opts");if(!c){b("options not found, can not resume");return false}if(e.cycleTimeout){clearTimeout(e.cycleTimeout);e.cycleTimeout=0}d(c.elements,c,1,!c.backwards)}}}function g(b,c){if(!a.support.opacity&&c.cleartype&&b.style.filter)try{b.style.removeAttribute("filter")}catch(d){}}function o(b){b.next&&a(b.next).unbind(b.prevNextEvent);b.prev&&a(b.prev).unbind(b.prevNextEvent);(b.pager||b.pagerAnchorBuilder)&&a.each(b.pagerAnchors||[],function(){this.unbind().remove()});b.pagerAnchors=null;b.destroy&&b.destroy(b)}function m(m,o,h,p,z){var c=a.extend({},a.fn.cycle.defaults,p||{},a.metadata?m.metadata():a.meta?m.data():{});if(c.autostop)c.countdown=c.autostopCount||h.length;var E=m[0];m.data("cycle.opts",c);c.$cont=m;c.stopCount=E.cycleStop;c.elements=h;c.before=c.before?[c.before]:[];c.after=c.after?[c.after]:[];!a.support.opacity&&c.cleartype&&c.after.push(function(){g(this,c)});c.continuous&&c.after.push(function(){d(h,c,0,!c.backwards)});j(c);!a.support.opacity&&c.cleartype&&!c.cleartypeNoBg&&f(o);m.css("position")=="static"&&m.css("position","relative");c.width&&m.width(c.width);c.height&&c.height!="auto"&&m.height(c.height);if(c.startingSlide)c.startingSlide=parseInt(c.startingSlide);else if(c.backwards)c.startingSlide=h.length-1;if(c.random){c.randomMap=[];for(var x=0;x<h.length;x++)c.randomMap.push(x);c.randomMap.sort(function(){return Math.random()-.5});c.randomIndex=1;c.startingSlide=c.randomMap[1]}else if(c.startingSlide>=h.length)c.startingSlide=0;c.currSlide=c.startingSlide||0;var k=c.startingSlide;o.css({position:"absolute",top:0,left:0}).hide().each(function(b){var d;if(c.backwards)d=k?b<=k?h.length+(b-k):k-b:h.length-b;else d=k?b>=k?h.length-(b-k):k-b:h.length-b;a(this).css("z-index",d)});a(h[k]).css("opacity",1).show();g(h[k],c);c.fit&&c.width&&o.width(c.width);c.fit&&c.height&&c.height!="auto"&&o.height(c.height);var C=c.containerResize&&!m.innerHeight();if(C){for(var s=0,r=0,y=0;y<h.length;y++){var t=a(h[y]),u=t[0],w=t.outerWidth(),v=t.outerHeight();if(!w)w=u.offsetWidth||u.width||t.attr("width");if(!v)v=u.offsetHeight||u.height||t.attr("height");s=w>s?w:s;r=v>r?v:r}s>0&&r>0&&m.css({width:s+"px",height:r+"px"})}c.pause&&m.hover(function(){this.cyclePause++},function(){this.cyclePause--});if(i(c)===false)return false;var A=false;p.requeueAttempts=p.requeueAttempts||0;o.each(function(){var d=a(this);this.cycleH=c.fit&&c.height?c.height:d.height()||this.offsetHeight||this.height||d.attr("height")||0;this.cycleW=c.fit&&c.width?c.width:d.width()||this.offsetWidth||this.width||d.attr("width")||0;if(d.is("img")){var g=a.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete,f=a.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete,h=a.browser.opera&&(this.cycleW==42&&this.cycleH==19||this.cycleW==37&&this.cycleH==17)&&!this.complete,e=this.cycleH==0&&this.cycleW==0&&!this.complete;if(g||f||h||e)if(z.s&&c.requeueOnImageNotLoaded&&++p.requeueAttempts<100){b(p.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){a(z.s,z.c).cycle(p)},c.requeueTimeout);A=true;return false}else b("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}return true});if(A)return false;c.cssBefore=c.cssBefore||{};c.cssAfter=c.cssAfter||{};c.cssFirst=c.cssFirst||{};c.animIn=c.animIn||{};c.animOut=c.animOut||{};o.not(":eq("+k+")").css(c.cssBefore);a(o[k]).css(c.cssFirst);if(c.timeout){c.timeout=parseInt(c.timeout);if(c.speed.constructor==String)c.speed=a.fx.speeds[c.speed]||parseInt(c.speed);if(!c.sync)c.speed=c.speed/2;var D=c.fx=="none"?0:c.fx=="shuffle"?500:250;while(c.timeout-c.speed<D)c.timeout+=c.speed}if(c.easing)c.easeIn=c.easeOut=c.easing;if(!c.speedIn)c.speedIn=c.speed;if(!c.speedOut)c.speedOut=c.speed;c.slideCount=h.length;c.currSlide=c.lastSlide=k;if(c.random){if(++c.randomIndex==h.length)c.randomIndex=0;c.nextSlide=c.randomMap[c.randomIndex]}else if(c.backwards)c.nextSlide=c.startingSlide==0?h.length-1:c.startingSlide-1;else c.nextSlide=c.startingSlide>=h.length-1?0:c.startingSlide+1;if(!c.multiFx){var B=a.fn.cycle.transitions[c.fx];if(a.isFunction(B))B(m,o,c);else if(c.fx!="custom"&&!c.multiFx){b("unknown transition: "+c.fx,"; slideshow terminating");return false}}var q=o[k];c.before.length&&c.before[0].apply(q,[q,q,c,true]);c.after.length&&c.after[0].apply(q,[q,q,c,true]);c.next&&a(c.next).bind(c.prevNextEvent,function(){return e(c,1)});c.prev&&a(c.prev).bind(c.prevNextEvent,function(){return e(c,0)});(c.pager||c.pagerAnchorBuilder)&&n(h,c);l(c,h);return c}function j(b){b.original={before:[],after:[]};b.original.cssBefore=a.extend({},b.cssBefore);b.original.cssAfter=a.extend({},b.cssAfter);b.original.animIn=a.extend({},b.animIn);b.original.animOut=a.extend({},b.animOut);a.each(b.before,function(){b.original.before.push(this)});a.each(b.after,function(){b.original.after.push(this)})}function i(d){var e,g,f=a.fn.cycle.transitions;if(d.fx.indexOf(",")>0){d.multiFx=true;d.fxs=d.fx.replace(/\s*/g,"").split(",");for(e=0;e<d.fxs.length;e++){var h=d.fxs[e];g=f[h];if(!g||!f.hasOwnProperty(h)||!a.isFunction(g)){b("discarding unknown transition: ",h);d.fxs.splice(e,1);e--}}if(!d.fxs.length){b("No valid transitions named; slideshow terminating.");return false}}else if(d.fx=="all"){d.multiFx=true;d.fxs=[];for(p in f){g=f[p];f.hasOwnProperty(p)&&a.isFunction(g)&&d.fxs.push(p)}}if(d.multiFx&&d.randomizeEffects){var i=Math.floor(Math.random()*20)+30;for(e=0;e<i;e++){var j=Math.floor(Math.random()*d.fxs.length);d.fxs.push(d.fxs.splice(j,1)[0])}c("randomized fx sequence: ",d.fxs)}return true}function l(b,c){b.addSlide=function(h,g){var d=a(h),e=d[0];if(!b.autostopCount)b.countdown++;c[g?"unshift":"push"](e);b.els&&b.els[g?"unshift":"push"](e);b.slideCount=c.length;d.css("position","absolute");d[g?"prependTo":"appendTo"](b.$cont);if(g){b.currSlide++;b.nextSlide++}!a.support.opacity&&b.cleartype&&!b.cleartypeNoBg&&f(d);b.fit&&b.width&&d.width(b.width);b.fit&&b.height&&b.height!="auto"&&d.height(b.height);e.cycleH=b.fit&&b.height?b.height:d.height();e.cycleW=b.fit&&b.width?b.width:d.width();d.css(b.cssBefore);(b.pager||b.pagerAnchorBuilder)&&a.fn.cycle.createPagerAnchor(c.length-1,e,a(b.pager),c,b);if(a.isFunction(b.onAddSlide))b.onAddSlide(d);else d.hide()}}a.fn.cycle.resetState=function(b,c){c=c||b.fx;b.before=[];b.after=[];b.cssBefore=a.extend({},b.original.cssBefore);b.cssAfter=a.extend({},b.original.cssAfter);b.animIn=a.extend({},b.original.animIn);b.animOut=a.extend({},b.original.animOut);b.fxFn=null;a.each(b.original.before,function(){b.before.push(this)});a.each(b.original.after,function(){b.after.push(this)});var d=a.fn.cycle.transitions[c];a.isFunction(d)&&d(b.$cont,a(b.elements),b)};function d(f,b,j,l){if(j&&b.busy&&b.manualTrump){c("manualTrump in go(), stopping active transition");a(f).stop(true,true);b.busy=0}if(b.busy){c("transition active, ignoring new tx request");return}var i=b.$cont[0],g=f[b.currSlide],e=f[b.nextSlide];if(i.cycleStop!=b.stopCount||i.cycleTimeout===0&&!j)return;if(!j&&!i.cyclePause&&!b.bounce&&(b.autostop&&--b.countdown<=0||b.nowrap&&!b.random&&b.nextSlide<b.currSlide)){b.end&&b.end(b);return}var o=false;if((j||!i.cyclePause)&&b.nextSlide!=b.currSlide){o=true;var m=b.fx;g.cycleH=g.cycleH||a(g).height();g.cycleW=g.cycleW||a(g).width();e.cycleH=e.cycleH||a(e).height();e.cycleW=e.cycleW||a(e).width();if(b.multiFx){if(b.lastFx==undefined||++b.lastFx>=b.fxs.length)b.lastFx=0;m=b.fxs[b.lastFx];b.currFx=m}if(b.oneTimeFx){m=b.oneTimeFx;b.oneTimeFx=null}a.fn.cycle.resetState(b,m);b.before.length&&a.each(b.before,function(c,a){if(i.cycleStop!=b.stopCount)return;a.apply(e,[g,e,b,l])});var p=function(){b.busy=0;a.each(b.after,function(c,a){if(i.cycleStop!=b.stopCount)return;a.apply(e,[g,e,b,l])})};c("tx firing("+m+"); currSlide: "+b.currSlide+"; nextSlide: "+b.nextSlide);b.busy=1;if(b.fxFn)b.fxFn(g,e,b,p,l,j&&b.fastOnEvent);else if(a.isFunction(a.fn.cycle[b.fx]))a.fn.cycle[b.fx](g,e,b,p,l,j&&b.fastOnEvent);else a.fn.cycle.custom(g,e,b,p,l,j&&b.fastOnEvent)}if(o||b.nextSlide==b.currSlide){b.lastSlide=b.currSlide;if(b.random){b.currSlide=b.nextSlide;if(++b.randomIndex==f.length)b.randomIndex=0;b.nextSlide=b.randomMap[b.randomIndex];if(b.nextSlide==b.currSlide)b.nextSlide=b.currSlide==b.slideCount-1?0:b.currSlide+1}else if(b.backwards){var k=b.nextSlide-1<0;if(k&&b.bounce){b.backwards=!b.backwards;b.nextSlide=1;b.currSlide=0}else{b.nextSlide=k?f.length-1:b.nextSlide-1;b.currSlide=k?0:b.nextSlide+1}}else{var k=b.nextSlide+1==f.length;if(k&&b.bounce){b.backwards=!b.backwards;b.nextSlide=f.length-2;b.currSlide=f.length-1}else{b.nextSlide=k?0:b.nextSlide+1;b.currSlide=k?f.length-1:b.nextSlide-1}}}o&&b.pager&&b.updateActivePagerLink(b.pager,b.currSlide,b.activePagerClass);var n=0;if(b.timeout&&!b.continuous)n=h(f[b.currSlide],f[b.nextSlide],b,l);else if(b.continuous&&i.cyclePause)n=10;if(n>0)i.cycleTimeout=setTimeout(function(){d(f,b,0,!b.backwards)},n)}a.fn.cycle.updateActivePagerLink=function(d,c,b){a(d).each(function(){a(this).children().removeClass(b).eq(c).addClass(b)})};function h(d,e,a,f){if(a.timeoutFn){var b=a.timeoutFn.call(d,d,e,a,f);while(a.fx!="none"&&b-a.speed<250)b+=a.speed;c("calculated timeout: "+b+"; speed: "+a.speed);if(b!==false)return b}return a.timeout}a.fn.cycle.next=function(a){e(a,1)};a.fn.cycle.prev=function(a){e(a,0)};function e(b,f){var e=f?1:-1,c=b.elements,i=b.$cont[0],g=i.cycleTimeout;if(g){clearTimeout(g);i.cycleTimeout=0}if(b.random&&e<0){b.randomIndex--;if(--b.randomIndex==-2)b.randomIndex=c.length-2;else if(b.randomIndex==-1)b.randomIndex=c.length-1;b.nextSlide=b.randomMap[b.randomIndex]}else if(b.random)b.nextSlide=b.randomMap[b.randomIndex];else{b.nextSlide=b.currSlide+e;if(b.nextSlide<0){if(b.nowrap)return false;b.nextSlide=c.length-1}else if(b.nextSlide>=c.length){if(b.nowrap)return false;b.nextSlide=0}}var h=b.onPrevNextEvent||b.prevNextClick;a.isFunction(h)&&h(e>0,b.nextSlide,c[b.nextSlide]);d(c,b,1,f);return false}function n(c,b){var d=a(b.pager);a.each(c,function(e,f){a.fn.cycle.createPagerAnchor(e,f,d,c,b)});b.updateActivePagerLink(b.pager,b.startingSlide,b.activePagerClass)}a.fn.cycle.createPagerAnchor=function(g,k,h,j,b){var f;if(a.isFunction(b.pagerAnchorBuilder)){f=b.pagerAnchorBuilder(g,k);c("pagerAnchorBuilder("+g+", el) returned: "+f)}else f='<a href="#">'+(g+1)+"</a>";if(!f)return;var e=a(f);if(e.parents("body").length===0){var i=[];if(h.length>1){h.each(function(){var b=e.clone(true);a(this).append(b);i.push(b[0])});e=a(i)}else e.appendTo(h)}b.pagerAnchors=b.pagerAnchors||[];b.pagerAnchors.push(e);e.bind(b.pagerEvent,function(h){h.preventDefault();b.nextSlide=g;var f=b.$cont[0],c=f.cycleTimeout;if(c){clearTimeout(c);f.cycleTimeout=0}var e=b.onPagerEvent||b.pagerClick;a.isFunction(e)&&e(b.nextSlide,j[b.nextSlide]);d(j,b,1,b.currSlide<g)});!/^click/.test(b.pagerEvent)&&!b.allowPagerClickBubble&&e.bind("click.cycle",function(){return false});b.pauseOnPagerHover&&e.hover(function(){b.$cont[0].cyclePause++},function(){b.$cont[0].cyclePause--})};a.fn.cycle.hopsFromLast=function(c,e){var d,a=c.lastSlide,b=c.currSlide;if(e)d=b>a?b-a:c.slideCount-a;else d=b<a?a-b:a+c.slideCount-b;return d};function f(d){c("applying clearType background-color hack");function b(a){a=parseInt(a).toString(16);return a.length<2?"0"+a:a}function e(d){for(;d&&d.nodeName.toLowerCase()!="html";d=d.parentNode){var c=a.css(d,"background-color");if(c&&c.indexOf("rgb")>=0){var e=c.match(/\d+/g);return"#"+b(e[0])+b(e[1])+b(e[2])}if(c&&c!="transparent")return c}return"#ffffff"}d.each(function(){a(this).css("background-color",e(this))})}a.fn.cycle.commonReset=function(d,c,b,g,f,e){a(b.elements).not(d).hide();if(typeof b.cssBefore.opacity=="undefined")b.cssBefore.opacity=1;b.cssBefore.display="block";if(b.slideResize&&g!==false&&c.cycleW>0)b.cssBefore.width=c.cycleW;if(b.slideResize&&f!==false&&c.cycleH>0)b.cssBefore.height=c.cycleH;b.cssAfter=b.cssAfter||{};b.cssAfter.display="none";a(d).css("zIndex",b.slideCount+(e===true?1:0));a(c).css("zIndex",b.slideCount+(e===true?0:1))};a.fn.cycle.custom=function(k,l,b,m,n,c){var h=a(k),i=a(l),e=b.speedIn,d=b.speedOut,g=b.easeIn,f=b.easeOut;i.css(b.cssBefore);if(c){if(typeof c=="number")e=d=c;else e=d=1;g=f=null}var j=function(){i.animate(b.animIn,e,g,function(){m()})};h.animate(b.animOut,d,f,function(){h.css(b.cssAfter);!b.sync&&j()});b.sync&&j()};a.fn.cycle.transitions={fade:function(d,c,b){c.not(":eq("+b.currSlide+")").css("opacity",0);b.before.push(function(c,d,b){a.fn.cycle.commonReset(c,d,b);b.cssBefore.opacity=0});b.animIn={opacity:1};b.animOut={opacity:0};b.cssBefore={top:0,left:0}}};a.fn.cycle.ver=function(){return q};a.fn.cycle.defaults={activePagerClass:"activeSlide",after:null,allowPagerClickBubble:false,animIn:null,animOut:null,autostop:0,autostopCount:0,backwards:false,before:null,cleartype:!a.support.opacity,cleartypeNoBg:false,containerResize:1,continuous:0,cssAfter:null,cssBefore:null,delay:0,easeIn:null,easeOut:null,easing:null,end:null,fastOnEvent:0,fit:0,fx:"fade",fxFn:null,height:"auto",manualTrump:true,next:null,nowrap:0,onPagerEvent:null,onPrevNextEvent:null,pager:null,pagerAnchorBuilder:null,pagerEvent:"click.cycle",pause:0,pauseOnPagerHover:0,prev:null,prevNextEvent:"click.cycle",random:0,randomizeEffects:1,requeueOnImageNotLoaded:true,requeueTimeout:250,rev:0,shuffle:null,slideExpr:null,slideResize:1,speed:1e3,speedIn:null,speedOut:null,startingSlide:0,sync:1,timeout:4e3,timeoutFn:null,updateActivePagerLink:null}})(jQuery);(function(a){a.fn.cycle.transitions.none=function(d,c,b){b.fxFn=function(c,d,e,b){a(d).show();a(c).hide();b()}};a.fn.cycle.transitions.fadeout=function(d,c,b){c.not(":eq("+b.currSlide+")").css({display:"block",opacity:1});b.before.push(function(d,e,b,g,f,c){a(d).css("zIndex",b.slideCount+(!c===true?1:0));a(e).css("zIndex",b.slideCount+(!c===true?0:1))});b.animIn.opacity=1;b.animOut.opacity=0;b.cssBefore.opacity=1;b.cssBefore.display="block";b.cssAfter.zIndex=0};a.fn.cycle.transitions.scrollUp=function(c,e,b){c.css("overflow","hidden");b.before.push(a.fn.cycle.commonReset);var d=c.height();b.cssBefore.top=d;b.cssBefore.left=0;b.cssFirst.top=0;b.animIn.top=0;b.animOut.top=-d};a.fn.cycle.transitions.scrollDown=function(c,e,b){c.css("overflow","hidden");b.before.push(a.fn.cycle.commonReset);var d=c.height();b.cssFirst.top=0;b.cssBefore.top=-d;b.cssBefore.left=0;b.animIn.top=0;b.animOut.top=d};a.fn.cycle.transitions.scrollLeft=function(c,e,b){c.css("overflow","hidden");b.before.push(a.fn.cycle.commonReset);var d=c.width();b.cssFirst.left=0;b.cssBefore.left=d;b.cssBefore.top=0;b.animIn.left=0;b.animOut.left=0-d};a.fn.cycle.transitions.scrollRight=function(c,e,b){c.css("overflow","hidden");b.before.push(a.fn.cycle.commonReset);var d=c.width();b.cssFirst.left=0;b.cssBefore.left=-d;b.cssBefore.top=0;b.animIn.left=0;b.animOut.left=d};a.fn.cycle.transitions.scrollHorz=function(c,d,b){c.css("overflow","hidden").width();b.before.push(function(d,e,b,c){if(b.rev)c=!c;a.fn.cycle.commonReset(d,e,b);b.cssBefore.left=c?e.cycleW-1:1-e.cycleW;b.animOut.left=c?-d.cycleW:d.cycleW});b.cssFirst.left=0;b.cssBefore.top=0;b.animIn.left=0;b.animOut.top=0};a.fn.cycle.transitions.scrollVert=function(c,d,b){c.css("overflow","hidden");b.before.push(function(d,e,b,c){if(b.rev)c=!c;a.fn.cycle.commonReset(d,e,b);b.cssBefore.top=c?1-e.cycleH:e.cycleH-1;b.animOut.top=c?d.cycleH:-d.cycleH});b.cssFirst.top=0;b.cssBefore.left=0;b.animIn.top=0;b.animOut.left=0};a.fn.cycle.transitions.slideX=function(d,c,b){b.before.push(function(c,d,b){a(b.elements).not(c).hide();a.fn.cycle.commonReset(c,d,b,false,true);b.animIn.width=d.cycleW});b.cssBefore.left=0;b.cssBefore.top=0;b.cssBefore.width=0;b.animIn.width="show";b.animOut.width=0};a.fn.cycle.transitions.slideY=function(d,c,b){b.before.push(function(c,d,b){a(b.elements).not(c).hide();a.fn.cycle.commonReset(c,d,b,true,false);b.animIn.height=d.cycleH});b.cssBefore.left=0;b.cssBefore.top=0;b.cssBefore.height=0;b.animIn.height="show";b.animOut.height=0};a.fn.cycle.transitions.shuffle=function(e,d,b){var c,f=e.css("overflow","visible").width();d.css({left:0,top:0});b.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,true,true,true)});if(!b.speedAdjusted){b.speed=b.speed/2;b.speedAdjusted=true}b.random=0;b.shuffle=b.shuffle||{left:-f,top:15};b.els=[];for(c=0;c<d.length;c++)b.els.push(d[c]);for(c=0;c<b.currSlide;c++)b.els.push(b.els.shift());b.fxFn=function(d,g,b,h,c){if(b.rev)c=!c;var e=c?a(d):a(g);a(g).css(b.cssBefore);var f=b.slideCount;e.animate(b.shuffle,b.speedIn,b.easeIn,function(){for(var k=a.fn.cycle.hopsFromLast(b,c),j=0;j<k;j++)c?b.els.push(b.els.shift()):b.els.unshift(b.els.pop());if(c)for(var g=0,i=b.els.length;g<i;g++)a(b.els[g]).css("z-index",i-g+f);else{var l=a(d).css("z-index");e.css("z-index",parseInt(l)+1+f)}e.animate({left:0,top:0},b.speedOut,b.easeOut,function(){a(c?this:d).hide();h&&h()})})};a.extend(b.cssBefore,{display:"block",opacity:1,top:0,left:0})};a.fn.cycle.transitions.turnUp=function(d,c,b){b.before.push(function(d,b,c){a.fn.cycle.commonReset(d,b,c,true,false);c.cssBefore.top=b.cycleH;c.animIn.height=b.cycleH;c.animOut.width=b.cycleW});b.cssFirst.top=0;b.cssBefore.left=0;b.cssBefore.height=0;b.animIn.top=0;b.animOut.height=0};a.fn.cycle.transitions.turnDown=function(d,c,b){b.before.push(function(c,d,b){a.fn.cycle.commonReset(c,d,b,true,false);b.animIn.height=d.cycleH;b.animOut.top=c.cycleH});b.cssFirst.top=0;b.cssBefore.left=0;b.cssBefore.top=0;b.cssBefore.height=0;b.animOut.height=0};a.fn.cycle.transitions.turnLeft=function(d,c,b){b.before.push(function(d,b,c){a.fn.cycle.commonReset(d,b,c,false,true);c.cssBefore.left=b.cycleW;c.animIn.width=b.cycleW});b.cssBefore.top=0;b.cssBefore.width=0;b.animIn.left=0;b.animOut.width=0};a.fn.cycle.transitions.turnRight=function(d,c,b){b.before.push(function(c,d,b){a.fn.cycle.commonReset(c,d,b,false,true);b.animIn.width=d.cycleW;b.animOut.left=c.cycleW});a.extend(b.cssBefore,{top:0,left:0,width:0});b.animIn.left=0;b.animOut.width=0};a.fn.cycle.transitions.zoom=function(d,c,b){b.before.push(function(d,b,c){a.fn.cycle.commonReset(d,b,c,false,false,true);c.cssBefore.top=b.cycleH/2;c.cssBefore.left=b.cycleW/2;a.extend(c.animIn,{top:0,left:0,width:b.cycleW,height:b.cycleH});a.extend(c.animOut,{width:0,height:0,top:d.cycleH/2,left:d.cycleW/2})});b.cssFirst.top=0;b.cssFirst.left=0;b.cssBefore.width=0;b.cssBefore.height=0};a.fn.cycle.transitions.fadeZoom=function(d,c,b){b.before.push(function(d,b,c){a.fn.cycle.commonReset(d,b,c,false,false);c.cssBefore.left=b.cycleW/2;c.cssBefore.top=b.cycleH/2;a.extend(c.animIn,{top:0,left:0,width:b.cycleW,height:b.cycleH})});b.cssBefore.width=0;b.cssBefore.height=0;b.animOut.opacity=0};a.fn.cycle.transitions.blindX=function(d,e,b){var c=d.css("overflow","hidden").width();b.before.push(function(c,d,b){a.fn.cycle.commonReset(c,d,b);b.animIn.width=d.cycleW;b.animOut.left=c.cycleW});b.cssBefore.left=c;b.cssBefore.top=0;b.animIn.left=0;b.animOut.left=c};a.fn.cycle.transitions.blindY=function(d,e,b){var c=d.css("overflow","hidden").height();b.before.push(function(c,d,b){a.fn.cycle.commonReset(c,d,b);b.animIn.height=d.cycleH;b.animOut.top=c.cycleH});b.cssBefore.top=c;b.cssBefore.left=0;b.animIn.top=0;b.animOut.top=c};a.fn.cycle.transitions.blindZ=function(c,f,b){var d=c.css("overflow","hidden").height(),e=c.width();b.before.push(function(c,d,b){a.fn.cycle.commonReset(c,d,b);b.animIn.height=d.cycleH;b.animOut.top=c.cycleH});b.cssBefore.top=d;b.cssBefore.left=e;b.animIn.top=0;b.animIn.left=0;b.animOut.top=d;b.animOut.left=e};a.fn.cycle.transitions.growX=function(d,c,b){b.before.push(function(c,d,b){a.fn.cycle.commonReset(c,d,b,false,true);b.cssBefore.left=this.cycleW/2;b.animIn.left=0;b.animIn.width=this.cycleW;b.animOut.left=0});b.cssBefore.top=0;b.cssBefore.width=0};a.fn.cycle.transitions.growY=function(d,c,b){b.before.push(function(c,d,b){a.fn.cycle.commonReset(c,d,b,true,false);b.cssBefore.top=this.cycleH/2;b.animIn.top=0;b.animIn.height=this.cycleH;b.animOut.top=0});b.cssBefore.height=0;b.cssBefore.left=0};a.fn.cycle.transitions.curtainX=function(d,c,b){b.before.push(function(c,d,b){a.fn.cycle.commonReset(c,d,b,false,true,true);b.cssBefore.left=d.cycleW/2;b.animIn.left=0;b.animIn.width=this.cycleW;b.animOut.left=c.cycleW/2;b.animOut.width=0});b.cssBefore.top=0;b.cssBefore.width=0};a.fn.cycle.transitions.curtainY=function(d,c,b){b.before.push(function(d,c,b){a.fn.cycle.commonReset(d,c,b,true,false,true);b.cssBefore.top=c.cycleH/2;b.animIn.top=0;b.animIn.height=c.cycleH;b.animOut.top=d.cycleH/2;b.animOut.height=0});b.cssBefore.height=0;b.cssBefore.left=0};a.fn.cycle.transitions.cover=function(d,g,b){var c=b.direction||"left",f=d.css("overflow","hidden").width(),e=d.height();b.before.push(function(d,g,b){a.fn.cycle.commonReset(d,g,b);if(c=="right")b.cssBefore.left=-f;else if(c=="up")b.cssBefore.top=e;else if(c=="down")b.cssBefore.top=-e;else b.cssBefore.left=f});b.animIn.left=0;b.animIn.top=0;b.cssBefore.top=0;b.cssBefore.left=0};a.fn.cycle.transitions.uncover=function(d,g,b){var c=b.direction||"left",f=d.css("overflow","hidden").width(),e=d.height();b.before.push(function(d,g,b){a.fn.cycle.commonReset(d,g,b,true,true,true);if(c=="right")b.animOut.left=f;else if(c=="up")b.animOut.top=-e;else if(c=="down")b.animOut.top=e;else b.animOut.left=-f});b.animIn.left=0;b.animIn.top=0;b.cssBefore.top=0;b.cssBefore.left=0};a.fn.cycle.transitions.toss=function(c,f,b){var e=c.css("overflow","visible").width(),d=c.height();b.before.push(function(c,f,b){a.fn.cycle.commonReset(c,f,b,true,true,true);if(!b.animOut.left&&!b.animOut.top)a.extend(b.animOut,{left:e*2,top:-d/2,opacity:0});else b.animOut.opacity=0});b.cssBefore.left=0;b.cssBefore.top=0;b.animIn.left=0};a.fn.cycle.transitions.wipe=function(k,n,b){var d=k.css("overflow","hidden").width(),c=k.height();b.cssBefore=b.cssBefore||{};var e;if(b.clip)if(/l2r/.test(b.clip))e="rect(0px 0px "+c+"px 0px)";else if(/r2l/.test(b.clip))e="rect(0px "+d+"px "+c+"px "+d+"px)";else if(/t2b/.test(b.clip))e="rect(0px "+d+"px 0px 0px)";else if(/b2t/.test(b.clip))e="rect("+c+"px "+d+"px "+c+"px 0px)";else if(/zoom/.test(b.clip)){var m=parseInt(c/2),l=parseInt(d/2);e="rect("+m+"px "+l+"px "+m+"px "+l+"px)"}b.cssBefore.clip=b.cssBefore.clip||e||"rect(0px 0px 0px 0px)";var f=b.cssBefore.clip.match(/(\d+)/g),j=parseInt(f[0]),i=parseInt(f[1]),g=parseInt(f[2]),h=parseInt(f[3]);b.before.push(function(f,k,l){if(f==k)return;var m=a(f),n=a(k);a.fn.cycle.commonReset(f,k,l,true,true,false);l.cssAfter.display="block";var e=1,b=parseInt(l.speedIn/13)-1;(function o(){var l=j?j-parseInt(e*(j/b)):0,f=h?h-parseInt(e*(h/b)):0,a=g<c?g+parseInt(e*((c-g)/b||1)):c,k=i<d?i+parseInt(e*((d-i)/b||1)):d;n.css({clip:"rect("+l+"px "+k+"px "+a+"px "+f+"px)"});e++<=b?setTimeout(o,13):m.css("display","none")})()});a.extend(b.cssBefore,{display:"block",opacity:1,top:0,left:0});b.animIn={left:0};b.animOut={left:0}}})(jQuery);
/*
 * Tiny Scrollbar 1.65
 * http://www.baijs.nl/tinyscrollbar/
 *
 * Copyright 2010, Maarten Baijs
 * 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.php
 *
 * Date: 10 / 05 / 2011
 * Depends on library: jQuery
 * 
 */
(function(a){a.tiny=a.tiny||{};a.tiny.scrollbar={options:{axis:"y",wheel:40,scroll:true,size:"auto",sizethumb:"auto"}};a.fn.tinyscrollbar=function(c){var c=a.extend({},a.tiny.scrollbar.options,c);this.each(function(){a(this).data("tsb",new b(a(this),c))});return this};a.fn.tinyscrollbar_update=function(b){return a(this).data("tsb").update(b)};function b(n,b){var s=this,o=n,i={obj:a(".viewport",n)},c={obj:a(".overview",n)},g={obj:a(".scrollbar",n)},f={obj:a(".track",g.obj)},d={obj:a(".thumb",g.obj)},l=b.axis=="x",h=l?"left":"top",q=l?"Width":"Height",e,j={start:0,now:0},p={};function u(){s.update();v();return s}this.update=function(a){i[b.axis]=i.obj[0]["offset"+q];c[b.axis]=c.obj[0]["scroll"+q];c.ratio=i[b.axis]/c[b.axis];g.obj.toggleClass("disable",c.ratio>=1);f[b.axis]=b.size=="auto"?i[b.axis]:b.size;d[b.axis]=Math.min(f[b.axis],Math.max(0,b.sizethumb=="auto"?f[b.axis]*c.ratio:b.sizethumb));g.ratio=b.sizethumb=="auto"?c[b.axis]/f[b.axis]:(c[b.axis]-i[b.axis])/(f[b.axis]-d[b.axis]);e=a=="relative"&&c.ratio<=1?Math.min(c[b.axis]-i[b.axis],Math.max(0,e)):0;e=a=="bottom"&&c.ratio<=1?c[b.axis]-i[b.axis]:isNaN(parseInt(a))?e:parseInt(a);w()};function w(){d.obj.css(h,e/g.ratio);c.obj.css(h,-e);p.start=d.obj.offset()[h];var a=q.toLowerCase();g.obj.css(a,f[b.axis]);f.obj.css(a,f[b.axis]);d.obj.css(a,d[b.axis])}function v(){d.obj.bind("mousedown",t);d.obj[0].ontouchstart=function(a){a.preventDefault();d.obj.unbind("mousedown");t(a.touches[0]);return false};f.obj.bind("mouseup",m);if(b.scroll&&this.addEventListener){o[0].addEventListener("DOMMouseScroll",r,false);o[0].addEventListener("mousewheel",r,false)}else if(b.scroll)o[0].onmousewheel=r}function t(c){p.start=l?c.pageX:c.pageY;var b=parseInt(d.obj.css(h));j.start=b=="auto"?0:b;a(document).bind("mousemove",m);document.ontouchmove=function(b){a(document).unbind("mousemove");m(b.touches[0])};a(document).bind("mouseup",k);d.obj.bind("mouseup",k);d.obj[0].ontouchend=document.ontouchend=function(b){a(document).unbind("mouseup");d.obj.unbind("mouseup");k(b.touches[0])};return false}function r(f){if(!(c.ratio>=1)){f=a.event.fix(f||window.event);var j=f.wheelDelta?f.wheelDelta/120:-f.detail/3;e-=j*b.wheel;e=Math.min(c[b.axis]-i[b.axis],Math.max(0,e));d.obj.css(h,e/g.ratio);c.obj.css(h,-e);f.preventDefault()}}function k(){a(document).unbind("mousemove",m);a(document).unbind("mouseup",k);d.obj.unbind("mouseup",k);document.ontouchmove=d.obj[0].ontouchend=document.ontouchend=null;return false}function m(a){if(!(c.ratio>=1)){j.now=Math.min(f[b.axis]-d[b.axis],Math.max(0,j.start+((l?a.pageX:a.pageY)-p.start)));e=j.now*g.ratio;c.obj.css(h,-e);d.obj.css(h,j.now)}return false}return u()}})(jQuery);(function(a){a.fn.jkey=function(h,e,d){var g={a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,"0":48,"1":49,"2":50,"3":51,"4":52,"5":53,"6":54,"7":55,"8":56,"9":57,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,shift:16,ctrl:17,control:17,alt:18,option:18,opt:18,cmd:224,command:224,fn:255,"function":255,backspace:8,osxdelete:8,enter:13,"return":13,space:32,spacebar:32,esc:27,escape:27,tab:9,capslock:20,capslk:20,"super":91,windows:91,insert:45,"delete":46,home:36,end:35,pgup:33,pageup:33,pgdn:34,pagedown:34,left:37,up:38,right:39,down:40,"`":96,"~":96,"-":45,_:45,"=":187,"+":187,"[":219,"{":219,"]":221,"}":221,"\\":220,"|":220,";":59,":":59,"'":222,'"':222,",":188,"<":188,".":190,">":190,"/":191,"?":191},c="",f="";if(typeof e=="function"&&typeof d=="undefined"){d=e;e=false}if(h.toString().indexOf(",")>-1)var b=h.match(/[a-zA-Z0-9]+/gi);else var b=[h];for(c in b){if(!b.hasOwnProperty(c))continue;if(b[c].toString().indexOf("+")>-1){var k=[],j=b[c].split("+");for(f in j)k[f]=g[j[f]];b[c]=k}else b[c]=g[b[c]]}function l(b){var a,c={};for(a in b)if(b.hasOwnProperty(a))c[b[a]]=a;return c}var i=l(g);return this.each(function(){$this=a(this);var g=[];$this.bind("keydown",function(h){g[h.keyCode]=h.keyCode;if(a.inArray(h.keyCode,b)>-1){if(typeof d=="function"){d.call(this,i[h.keyCode]);e===false&&h.preventDefault()}}else for(c in b)if(a.inArray(h.keyCode,b[c])>-1){var k="unchecked";for(f in b[c])if(k!=false)if(a.inArray(b[c][f],g)>-1)k=true;else k=false;if(k===true)if(typeof d=="function"){var j="";for(var l in g)if(g[l]!="")j+=i[g[l]]+"+";j=j.substring(0,j.length-1);d.call(this,j);e===false&&h.preventDefault()}}}).bind("keyup",function(a){g[a.keyCode]=""})})}})(jQuery);(function(b){var a=function(a){return parseInt(a,10)||0};b.each(["min","max"],function(d,c){b.fn[c+"Size"]=function(e){var d,b;if(e){e.width!==undefined&&this.css(c+"-width",e.width);e.height!==undefined&&this.css(c+"-height",e.height);return this}else{d=this.css(c+"-width");b=this.css(c+"-height");return{width:c==="max"&&(d===undefined||d==="none"||a(d)===-1)&&Number.MAX_VALUE||a(d),height:c==="max"&&(b===undefined||b==="none"||a(b)===-1)&&Number.MAX_VALUE||a(b)}}}});b.fn.isVisible=function(){return this.is(":visible")};b.each(["border","margin","padding"],function(d,c){b.fn[c]=function(b){if(b){b.top!==undefined&&this.css(c+"-top"+(c==="border"?"-width":""),b.top);b.bottom!==undefined&&this.css(c+"-bottom"+(c==="border"?"-width":""),b.bottom);b.left!==undefined&&this.css(c+"-left"+(c==="border"?"-width":""),b.left);b.right!==undefined&&this.css(c+"-right"+(c==="border"?"-width":""),b.right);return this}else return{top:a(this.css(c+"-top"+(c==="border"?"-width":""))),bottom:a(this.css(c+"-bottom"+(c==="border"?"-width":""))),left:a(this.css(c+"-left"+(c==="border"?"-width":""))),right:a(this.css(c+"-right"+(c==="border"?"-width":"")))}}})})(jQuery);(function(a,h,y){var w="function",v="password",j="maxLength",n="type",b="",c=true,u="placeholder",i=false,t="watermark",g=t,f="watermarkClass",q="watermarkFocus",l="watermarkSubmit",o="watermarkMaxLength",e="watermarkPassword",d="watermarkText",k=/\r/g,s="input:data("+g+"),textarea:data("+g+")",m="input:text,input:password,input[type=search],input:not([type]),textarea",p=["Page_ClientValidate"],r=i,x=u in document.createElement("input");a.watermark=a.watermark||{version:"3.1.3",runOnce:c,options:{className:t,useNative:c,hideBeforeUnload:c},hide:function(b){a(b).filter(s).each(function(){a.watermark._hide(a(this))})},_hide:function(a,r){var p=a[0],q=(p.value||b).replace(k,b),l=a.data(d)||b,m=a.data(o)||0,i=a.data(f);if(l.length&&q==l){p.value=b;if(a.data(e))if((a.attr(n)||b)==="text"){var g=a.data(e)||[],c=a.parent()||[];if(g.length&&c.length){c[0].removeChild(a[0]);c[0].appendChild(g[0]);a=g}}if(m){a.attr(j,m);a.removeData(o)}if(r){a.attr("autocomplete","off");h.setTimeout(function(){a.select()},1)}}i&&a.removeClass(i)},show:function(b){a(b).filter(s).each(function(){a.watermark._show(a(this))})},_show:function(g){var p=g[0],u=(p.value||b).replace(k,b),h=g.data(d)||b,s=g.attr(n)||b,t=g.data(f);if((u.length==0||u==h)&&!g.data(q)){r=c;if(g.data(e))if(s===v){var m=g.data(e)||[],l=g.parent()||[];if(m.length&&l.length){l[0].removeChild(g[0]);l[0].appendChild(m[0]);g=m;g.attr(j,h.length);p=g[0]}}if(s==="text"||s==="search"){var i=g.attr(j)||0;if(i>0&&h.length>i){g.data(o,i);g.attr(j,h.length)}}t&&g.addClass(t);p.value=h}else a.watermark._hide(g)},hideAll:function(){if(r){a.watermark.hide(m);r=i}},showAll:function(){a.watermark.show(m)}};a.fn.watermark=a.fn.watermark||function(p,o){var t="string";if(!this.length)return this;var s=i,r=typeof p===t;if(r)p=p.replace(k,b);if(typeof o==="object"){s=typeof o.className===t;o=a.extend({},a.watermark.options,o)}else if(typeof o===t){s=c;o=a.extend({},a.watermark.options,{className:o})}else o=a.watermark.options;if(typeof o.useNative!==w)o.useNative=o.useNative?function(){return c}:function(){return i};return this.each(function(){var B="dragleave",A="dragenter",z=this,i=a(z);if(!i.is(m))return;if(i.data(g)){if(r||s){a.watermark._hide(i);r&&i.data(d,p);s&&i.data(f,o.className)}}else{if(x&&o.useNative.call(z,i)&&(i.attr("tagName")||b)!=="TEXTAREA"){r&&i.attr(u,p);return}i.data(d,r?p:b);i.data(f,o.className);i.data(g,1);if((i.attr(n)||b)===v){var C=i.wrap("<span>").parent(),t=a(C.html().replace(/type=["']?password["']?/i,'type="text"'));t.data(d,i.data(d));t.data(f,i.data(f));t.data(g,1);t.attr(j,p.length);t.focus(function(){a.watermark._hide(t,c)}).bind(A,function(){a.watermark._hide(t)}).bind("dragend",function(){h.setTimeout(function(){t.blur()},1)});i.blur(function(){a.watermark._show(i)}).bind(B,function(){a.watermark._show(i)});t.data(e,i);i.data(e,t)}else i.focus(function(){i.data(q,1);a.watermark._hide(i,c)}).blur(function(){i.data(q,0);a.watermark._show(i)}).bind(A,function(){a.watermark._hide(i)}).bind(B,function(){a.watermark._show(i)}).bind("dragend",function(){h.setTimeout(function(){a.watermark._show(i)},1)}).bind("drop",function(e){var c=i[0],a=e.originalEvent.dataTransfer.getData("Text");if((c.value||b).replace(k,b).replace(a,b)===i.data(d))c.value=a;i.focus()});if(z.form){var w=z.form,y=a(w);if(!y.data(l)){y.submit(a.watermark.hideAll);if(w.submit){y.data(l,w.submit);w.submit=function(c,b){return function(){var d=b.data(l);a.watermark.hideAll();if(d.apply)d.apply(c,Array.prototype.slice.call(arguments));else d()}}(w,y)}else{y.data(l,1);w.submit=function(b){return function(){a.watermark.hideAll();delete b.submit;b.submit()}}(w)}}}}a.watermark._show(i)})};if(a.watermark.runOnce){a.watermark.runOnce=i;a.extend(a.expr[":"],{data:function(c,d,b){return!!a.data(c,b[3])}});(function(c){a.fn.val=function(){var e=this;if(!e.length)return arguments.length?e:y;if(!arguments.length)if(e.data(g)){var f=(e[0].value||b).replace(k,b);return f===(e.data(d)||b)?b:f}else return c.apply(e,arguments);else{c.apply(e,arguments);a.watermark.show(e);return e}}})(a.fn.val);p.length&&a(function(){for(var b,c,d=p.length-1;d>=0;d--){b=p[d];c=h[b];if(typeof c===w)h[b]=function(b){return function(){a.watermark.hideAll();return b.apply(null,Array.prototype.slice.call(arguments))}}(c)}});a(h).bind("beforeunload",function(){a.watermark.options.hideBeforeUnload&&a.watermark.hideAll()})}})(jQuery,window);$(document).ready(function(){resizeMainContent();$("a").filter(function(){return this.hostname&&this.hostname!==location.hostname}).click(function(){window.open(this.href);return false});$(".highlighted-page .page-spacing").columnize({width:220,height:280});var e=0;$.each($(".scrollable-list").children("div"),function(){e+=$(this).width()+1});$(".scrollable-list").css({width:e+"px"});var f=0;$.each($(".horizontal .overview").children("div"),function(){f+=$(this).width()+$(this).margin().left+$(this).margin().right});$(".horizontal .overview").css({width:f+"px"});var d=0;$(".home-overview .client-rss").each(function(){d+=$(this).width()+$(this).margin().left+$(this).margin().right});$(".home-overview .page-intro-box").each(function(){d+=$(this).width()+$(this).margin().left+$(this).margin().right});$(".horizontal .home-overview").css({width:d+"px"});if($(".horizontal .overview").width()<$(".horizontal .viewport").width())$(".scrollable-content.horizontal .scrollbar, .scrollable-content.horizontal .track").width($(".horizontal .overview").width());else $(".scrollable-content.horizontal .scrollbar, .scrollable-content.horizontal .track").width($(".horizontal .viewport").width());$(".scrollable-content.horizontal").length!=0&&$(window).resize(function(){$(".horizontal .overview").width()<$(".horizontal .viewport").width();$(".scrollable-content.horizontal").tinyscrollbar_update("relative");$(".scrollable-content.horizontal .disable, .scrollable-content.horizontal .disable .track").width($(".horizontal .overview").width())});$(".scrollable-content.horizontal").tinyscrollbar({axis:"x",sizethumb:244});$(".scrollable-content.horizontal .disable, .scrollable-content.horizontal .disable .track").width($(".overview").width());if($(".scrollable-content.horizontal").length!=0){$(window).jkey("right",function(){$(".scrollable-content.horizontal").tinyscrollbar_update(Math.abs($(".overview").position().left)+40);$(".scrollable-content.horizontal").tinyscrollbar_update("relative")});$(window).jkey("left",function(){$(".scrollable-content.horizontal").tinyscrollbar_update(Math.abs($(".overview").position().left)-40);$(".scrollable-content.horizontal").tinyscrollbar_update("relative")})}$(".scrollable-content.vertical .viewport").width($(".scrollable-content.vertical").width()-21);$(".scrollable-content.vertical").length!=0&&$(window).resize(function(){$(".scrollable-content.vertical").tinyscrollbar_update("relative")});$(".scrollable-content.vertical").tinyscrollbar({sizethumb:110});if($(".scrollable-content.vertical").length!=0){$(window).jkey("up",function(){$(".scrollable-content.vertical").tinyscrollbar_update(Math.abs($(".overview").position().top)-40);$(".scrollable-content.vertical").tinyscrollbar_update("relative")});$(window).jkey("down",function(){$(".scrollable-content.vertical").tinyscrollbar_update(Math.abs($(".overview").position().top)+40);$(".scrollable-content.vertical").tinyscrollbar_update("relative")})}$("#news-menu-slider").height()>$("#news-menu").height()&&$("#news-menu-slider").css({height:"auto"});$("#news-menu-slider").mousemove(function(d){if($(this).height()<$("#news-menu").height()){var b=d.pageY-$(this).offset().top,a=b/$(this).height(),c=-Math.round(($("#news-menu").height()-$(this).height())*a);$("#news-menu").animate({top:[c+"px","easeOutCirc"]},{queue:false,duration:200})}});$("#sharing ul li:first").addClass("first");$(".client-rss h2").each(function(){var a=$(this).html();$(this).empty().append("<span>"+a+"</span>")});$(".latest-stuff-box").each(function(){var a=$(this).find("h2").html();$(this).find("h2").empty().append('<span class="h2-text">'+a+"</span>")});if($("#latest-articles").length!="0"){$("#latest-news-box").find(".latest-stuff-title").prepend('<div id="latest-articles-nav" class="latest-stuff-nav"></div>');$("#latest-articles").cycle({timeout:0,pager:"#latest-articles-nav"})}if($("#latest-tweets").length!="0"){$("#latest-tweets").empty();$("#latest-tweets").tweet({username:["rjgauthier","basslev"],count:3,loading_text:"T&eacute;l&eacute;chargement..."})}if($("#news-menu").length!=0){adjustNewsFiller();setTimeout("adjustNewsFiller()",50);setTimeout("adjustNewsFiller()",100);setTimeout("adjustNewsFiller()",150);setTimeout("adjustNewsFiller()",250);setTimeout("adjustNewsFiller()",500);setTimeout("adjustNewsFiller()",750)}$("#contact-name").watermark($("#contact-name").attr("value"),{useNative:false});$("#contact-email").watermark($("#contact-email").attr("value"),{useNative:false});$("#contact-message").watermark($("#contact-message").attr("value"),{useNative:false});$("#contact-name, #contact-email").val("");$("#contact-email").blur(function(){var a=cleanupValue($(this).val()),b=/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;if(a=="Courriel"||a=="Champ obligatoire"||!b.test(a)){$(this).addClass("error");$(this).watermark("Champ obligatoire",{className:"watermark-error",useNative:false})}else $(this).removeClass("error")});var c="",a="",b="";$("#contact-form").submit(function(e){e.preventDefault();c=cleanupValue($("#contact-name").val());a=cleanupValue($("#contact-email").val());b=cleanupValue($("#contact-message").val());if(c==""||c=="Champ obligatoire"||c=="Nom"){$("#contact-name").addClass("error");$("#contact-name").watermark("Champ obligatoire",{className:"watermark-error",useNative:false})}else $("#contact-name").removeClass("error");var d=/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;if(a==""||a=="Champ obligatoire"||!d.test(a)||a=="Courriel"){$("#contact-email").addClass("error");$("#contact-email").watermark("Champ obligatoire",{className:"watermark-error",useNative:false})}else $("#contact-email").removeClass("error");if(b==""||b=="Champ obligatoire"||b=="Message"){$("#contact-message").addClass("error");$("#contact-message").watermark("Champ Obligatoire",{className:"watermark-error",useNative:false})}else $("#contact-message").removeClass("error");if($(this).find(".error").length==0&&$(this).parent().find(".waiting-message").length!=1)$(this).fadeOut(function(){$(this).before("<p style='display: none;' class='waiting-message'>Envoie en cours</p>");$(".waiting-message").fadeIn();$.ajax({type:"post",url:$(this).attr("action"),datatype:"json",data:{name:c,email:a,message:b,submit:"ok"},success:function(a){$(".waiting-message").replaceWith(a)}})});else return false})});$(window).bind("resize",function(){resizeMainContent()});function parseTwitterDate(e){var a=parseDate(e),g=a.getDate(),d=a.getMonth(),f=a.getFullYear(),h=["January","February","March","April","May","June","July","August","September","October","November","December"],c=["Janvier","F�vrier","Mars","Avril","Mai","Juin","Juillet","Ao�t","Septembre","Octobre","Novembre","D�cembre"],b=g+" "+c[d]+" "+f;return b}function parseDate(b){var a=b.split(" ");return new Date(Date.parse(a[1]+" "+a[2]+", "+a[5]+" "+a[3]+" UTC"))}function resizeMainContent(){var b=$("#left-column").width();if($("#latest-stuff-boxes").length!=0)b=b+$("#latest-stuff-boxes").width()+1;$("#content").width($("#page-content").width()-b);$(".contact-box").width($("#page-content").width()-b-1);if($("#stretch-content").length!=0){var a=0;if($(".page-intro-box").length!=0)a=a+$(".page-intro-box").width()+1;if($("#content").width()>768&&$("#content").width()<1038&&$("#stretch-content").hasClass("news-stretch-content")){$("#stretch-content").width($("#content").width()-a);$(".scrollable-content.vertical .viewport").width($("#stretch-content").width()-21)}else if($("#content").width()>1038&&$("#stretch-content").hasClass("news-stretch-content")){$("#stretch-content").width(1038-a);$(".scrollable-content.vertical .viewport").width($("#stretch-content").width()-21)}else $("#stretch-content").width($("#content").width()-a)}}function adjustNewsFiller(){if($("#news-menu").height()<$("#news-intro-box .page-intro-box-content").height()){console.log($("#news-menu").height());!$("#news-menu-filler").length&&$("#news-intro-box .page-intro-box-content").append('<div id="news-menu-filler">&nbsp;</div>');$("#news-menu-filler").height($("#news-intro-box .page-intro-box-content").height()-$("#news-menu").height())}}function cleanupValue(a){var b=new RegExp("'","g"),c=a.replace(b," ");return c}
