/* @import url('http://example.com/example_style.css'); */

/***********************************************/
/* CSS @imports must be at the top of the file */
/* Add them above this section                 */
/***********************************************/

/****************************************/
/* HubSpot Style Boilerplate            */
/****************************************/

/* These includes are optional, but helpful. */
/* Images */

img {
    max-width: 100%;
    border: 0;
    -ms-interpolation-mode: bicubic;
    vertical-align: bottom; /* Suppress the space beneath the baseline */
}

/* Videos */

video {
    max-width: 100%;
    height: auto;
}

/* Embed Container (iFrame, Object, Embed) */

.hs-responsive-embed {
    position: relative;
    height: auto;
    overflow: hidden;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
}

.hs-responsive-embed iframe, .hs-responsive-embed object, .hs-responsive-embed embed {
    width: 100%;
    height: 100%;
    border: 0;
}

.hs-responsive-embed,
.hs-responsive-embed.hs-responsive-embed-youtube,
.hs-responsive-embed.hs-responsive-embed-wistia,
.hs-responsive-embed.hs-responsive-embed-vimeo {
    padding-bottom: 2%;
}

.hs-responsive-embed.hs-responsive-embed-instagram {
    padding-bottom: 116.01%;
}

.hs-responsive-embed.hs-responsive-embed-pinterest {
    height: auto;
    overflow: visible;
    padding: 0;
}

.hs-responsive-embed.hs-responsive-embed-pinterest iframe {
    position: static;
    width: auto;
    height: auto;
}

iframe[src^="http://www.slideshare.net/slideshow/embed_code/"] {
    width: 100%;
    max-width: 100%;
}

@media (max-width: 568px) {
    iframe {
        max-width: 100%;
    }
}

/* Forms */

textarea,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"],
select {
    padding: 6px;
    display: inline-block;
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Menus */

.hs-menu-wrapper ul {
    padding: 0;
}

.hs-menu-wrapper.hs-menu-flow-horizontal ul {
    list-style: none;
    margin: 0;
}

.hs-menu-wrapper.hs-menu-flow-horizontal > ul {
    display: inline-block;
    margin-bottom: 20px;
}

.hs-menu-wrapper.hs-menu-flow-horizontal > ul:before {
    content: " ";
    display: table;
}

.hs-menu-wrapper.hs-menu-flow-horizontal > ul:after {
    content: " ";
    display: table;
    clear: both;
}

.hs-menu-wrapper.hs-menu-flow-horizontal > ul li.hs-menu-depth-1 {
    float: left;
}

.hs-menu-wrapper.hs-menu-flow-horizontal > ul li a {
    display: inline-block;
    padding: 10px 20px;
    white-space: nowrap;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.hs-menu-wrapper.hs-menu-flow-horizontal > ul li.hs-item-has-children {
    position: relative;
}

.hs-menu-wrapper.hs-menu-flow-horizontal > ul li.hs-item-has-children ul.hs-menu-children-wrapper {
    visibility: hidden;
    opacity: 0;
    -webkit-transition: opacity 0.4s;
    position: absolute;
    z-index: 10;
    left: 0;
}

.hs-menu-wrapper.hs-menu-flow-horizontal > ul li.hs-item-has-children ul.hs-menu-children-wrapper li a {
    display: block;
    white-space: nowrap;
    width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hs-menu-wrapper.hs-menu-flow-horizontal > ul li.hs-item-has-children ul.hs-menu-children-wrapper li.hs-item-has-children ul.hs-menu-children-wrapper {
    left: 180px;
    top: 0;
}

.hs-menu-wrapper.hs-menu-flow-horizontal > ul li.hs-item-has-children:hover > ul.hs-menu-children-wrapper {
    opacity: 1;
    visibility: visible;
}

.row-fluid-wrapper:last-child .hs-menu-wrapper.hs-menu-flow-horizontal > ul {
    margin-bottom: 0;
}

.hs-menu-wrapper.hs-menu-flow-horizontal.hs-menu-show-active-branch {
    position: relative;
    margin-bottom: 20px;
    min-height: 7em;
}

.hs-menu-wrapper.hs-menu-flow-horizontal.hs-menu-show-active-branch > ul {
    margin-bottom: 0;
}

.hs-menu-wrapper.hs-menu-flow-horizontal.hs-menu-show-active-branch > ul li.hs-item-has-children {
    position: static;
}

.hs-menu-wrapper.hs-menu-flow-horizontal.hs-menu-show-active-branch > ul li.hs-item-has-children ul.hs-menu-children-wrapper {
    display: none;
}

.hs-menu-wrapper.hs-menu-flow-horizontal.hs-menu-show-active-branch > ul li.hs-item-has-children.active-branch > ul.hs-menu-children-wrapper {
    display: block;
    visibility: visible;
    opacity: 1;
}

.hs-menu-wrapper.hs-menu-flow-horizontal.hs-menu-show-active-branch > ul li.hs-item-has-children.active-branch > ul.hs-menu-children-wrapper:before {
    content: " ";
    display: table;
}

.hs-menu-wrapper.hs-menu-flow-horizontal.hs-menu-show-active-branch > ul li.hs-item-has-children.active-branch > ul.hs-menu-children-wrapper:after {
    content: " ";
    display: table;
    clear: both;
}

.hs-menu-wrapper.hs-menu-flow-horizontal.hs-menu-show-active-branch > ul li.hs-item-has-children.active-branch > ul.hs-menu-children-wrapper > li {
    float: left;
}

.hs-menu-wrapper.hs-menu-flow-horizontal.hs-menu-show-active-branch > ul li.hs-item-has-children.active-branch > ul.hs-menu-children-wrapper > li a {
    display: inline-block;
    padding: 10px 20px;
    white-space: nowrap;
    max-width: 140px;
    width: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.hs-menu-wrapper.hs-menu-flow-vertical {
    width: 100%;
}

.hs-menu-wrapper.hs-menu-flow-vertical ul {
    list-style: none;
    margin: 0;
}

.hs-menu-wrapper.hs-menu-flow-vertical li a {
    display: block;
    white-space: nowrap;
    width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hs-menu-wrapper.hs-menu-flow-vertical > ul {
    margin-bottom: 20px;
}

.hs-menu-wrapper.hs-menu-flow-vertical > ul li.hs-menu-depth-1 > a {
    width: auto;
}

.hs-menu-wrapper.hs-menu-flow-vertical > ul li a {
    padding: 10px 20px;
    text-decoration: none;
}

.hs-menu-wrapper.hs-menu-flow-vertical > ul li.hs-item-has-children {
    position: relative;
}

.hs-menu-wrapper.hs-menu-flow-vertical > ul li.hs-item-has-children ul.hs-menu-children-wrapper {
    visibility: hidden;
    opacity: 0;
    -webkit-transition: opacity 0.4s;
    position: absolute;
    z-index: 10;
    top: 0;
    left: 180px;
}

.hs-menu-wrapper.hs-menu-flow-vertical > ul li.hs-item-has-children:hover > ul.hs-menu-children-wrapper {
    opacity: 1;
    visibility: visible;
}

.hs-menu-wrapper.hs-menu-flow-vertical.hs-menu-show-active-branch li a {
    min-width: 140px;
    width: auto;
}

.hs-menu-wrapper.hs-menu-flow-vertical.hs-menu-show-active-branch > ul {
    max-width: 100%;
    overflow: hidden;
}

.hs-menu-wrapper.hs-menu-flow-vertical.hs-menu-show-active-branch > ul li.hs-item-has-children ul.hs-menu-children-wrapper {
    display: none;
}

.hs-menu-wrapper.hs-menu-flow-vertical.hs-menu-show-active-branch > ul li.hs-item-has-children.active-branch > ul.hs-menu-children-wrapper,
.hs-menu-wrapper.hs-menu-flow-vertical.hs-menu-show-active-branch > ul li.hs-item-has-children.active-branch > ul.hs-menu-children-wrapper > li.hs-item-has-children > ul.hs-menu-children-wrapper {
    display: block;
    visibility: visible;
    opacity: 1;
    position: static;
}

.hs-menu-wrapper.hs-menu-flow-vertical.hs-menu-show-active-branch li.hs-menu-depth-2 > a {
    padding-left: 4em;
}

.hs-menu-wrapper.hs-menu-flow-vertical.hs-menu-show-active-branch li.hs-menu-depth-3 > a {
    padding-left: 6em;
}

.hs-menu-wrapper.hs-menu-flow-vertical.hs-menu-show-active-branch li.hs-menu-depth-4 > a {
    padding-left: 8em;
}

.hs-menu-wrapper.hs-menu-flow-vertical.hs-menu-show-active-branch li.hs-menu-depth-5 > a {
    padding-left: 140px;
}

.hs-menu-wrapper.hs-menu-not-show-active-branch li.hs-menu-depth-1 ul {
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.18);
    -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.18);
    -moz-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.18);
}

@media (max-width: 568px) {
    .hs-menu-wrapper, .hs-menu-wrapper * {
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        display: block;
        width: 100%;
    }

    .hs-menu-wrapper.hs-menu-flow-horizontal ul {
        list-style: none;
        margin: 0;
        display: block;
    }

    .hs-menu-wrapper.hs-menu-flow-horizontal > ul {
        display: block;
    }

    .hs-menu-wrapper.hs-menu-flow-horizontal > ul li.hs-menu-depth-1 {
        float: none;
    }

    .hs-menu-wrapper.hs-menu-flow-horizontal > ul li a,
    .hs-menu-wrapper.hs-menu-flow-horizontal > ul li.hs-item-has-children ul.hs-menu-children-wrapper li a,
    .hs-menu-wrapper.hs-menu-flow-horizontal.hs-menu-show-active-branch > ul li.hs-item-has-children.active-branch > ul.hs-menu-children-wrapper > li a {
        display: block;
        max-width: 100%;
        width: 100%;
    }
}

.hs-menu-wrapper.hs-menu-flow-vertical.no-flyouts > ul li.hs-item-has-children ul.hs-menu-children-wrapper,
.hs-menu-wrapper.hs-menu-flow-horizontal.no-flyouts > ul li.hs-item-has-children ul.hs-menu-children-wrapper {
    visibility: visible;
    opacity: 1;
}

/* Space Module */

.widget-type-space {
    visibility: hidden;
}

/* Blog Author Section */

.hs-author-listing-header {
    margin: 0 0 .75em 0;
}

.hs-author-social-links {
    display: inline-block;
}

.hs-author-social-links a.hs-author-social-link {
    width: 24px;
    height: 24px;
    border-width: 0px;
    border: 0px;
    line-height: 24px;
    background-size: 24px 24px;
    background-repeat: no-repeat;
    display: inline-block;
    text-indent: -99999px;
}

.hs-author-social-links a.hs-author-social-link.hs-social-facebook {
    background-image: url("//static.hubspot.com/final/img/common/icons/social/facebook-24x24.png");
}

.hs-author-social-links a.hs-author-social-link.hs-social-linkedin {
    background-image: url("//static.hubspot.com/final/img/common/icons/social/linkedin-24x24.png");
}

.hs-author-social-links a.hs-author-social-link.hs-social-twitter {
    background-image: url("//static.hubspot.com/final/img/common/icons/social/twitter-24x24.png");
}

.hs-author-social-links a.hs-author-social-link.hs-social-google-plus {
    background-image: url("//static.hubspot.com/final/img/common/icons/social/googleplus-24x24.png");
}

/*
 * jQuery FlexSlider v2.0
 * http://www.woothemes.com/flexslider/
 *
 * Copyright 2012 WooThemes
 * Free to use under the GPLv2 license.
 * http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Contributing author: Tyler Smith (@mbmufffin)
 */

/* Wrapper */
.hs_cos_wrapper_type_image_slider {
    display: block;
    overflow: hidden
}

/* Browser Resets */
.hs_cos_flex-container a:active,
.hs_cos_flex-slider a:active,
.hs_cos_flex-container a:focus,
.hs_cos_flex-slider a:focus  {outline: none;}
.hs_cos_flex-slides,
.hs_cos_flex-control-nav,
.hs_cos_flex-direction-nav {margin: 0; padding: 0; list-style: none;}

/* FlexSlider Necessary Styles
*********************************/
.hs_cos_flex-slider {margin: 0; padding: 0;}
.hs_cos_flex-slider .hs_cos_flex-slides > li {display: none; -webkit-backface-visibility: hidden; position: relative;} /* Hide the slides before the JS is loaded. Avoids image jumping */
.hs_cos_flex-slider .hs_cos_flex-slides img {width: 100%; display: block; border-radius: 0px;}
.hs_cos_flex-pauseplay span {text-transform: capitalize;}

/* Clearfix for the .hs_cos_flex-slides element */
.hs_cos_flex-slides:after {content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0;}
html[xmlns] .hs_cos_flex-slides {display: block;}
* html .hs_cos_flex-slides {height: 1%;}

/* No JavaScript Fallback */
/* If you are not using another script, such as Modernizr, make sure you
 * include js that eliminates this class on page load */

/* FlexSlider Default Theme
*********************************/
.hs_cos_flex-slider {margin: 0 0 60px; background: #fff; border: 0; position: relative; -webkit-border-radius: 4px; -moz-border-radius: 4px; -o-border-radius: 4px; border-radius: 4px; zoom: 1;}
.hs_cos_flex-viewport {max-height: 2000px; -webkit-transition: all 1s ease; -moz-transition: all 1s ease; transition: all 1s ease;}
.loading .hs_cos_flex-viewport {max-height: 300px;}
.hs_cos_flex-slider .hs_cos_flex-slides {zoom: 1;}

.carousel li {margin-right: 5px}


/* Direction Nav */
.hs_cos_flex-direction-nav {*height: 0;}
.hs_cos_flex-direction-nav a {width: 30px; height: 30px; margin: -20px 0 0; display: block; background: url(//static.hsappstatic.net/content_shared_assets/static-1.3935/img/bg_direction_nav.png) no-repeat 0 0; position: absolute; top: 50%; z-index: 10; cursor: pointer; text-indent: -9999px; opacity: 0; -webkit-transition: all .3s ease;}
.hs_cos_flex-direction-nav .hs_cos_flex-next {background-position: 100% 0; right: -36px; }
.hs_cos_flex-direction-nav .hs_cos_flex-prev {left: -36px;}
.hs_cos_flex-slider:hover .hs_cos_flex-next {opacity: 0.8; right: 5px;}
.hs_cos_flex-slider:hover .hs_cos_flex-prev {opacity: 0.8; left: 5px;}
.hs_cos_flex-slider:hover .hs_cos_flex-next:hover, .hs_cos_flex-slider:hover .hs_cos_flex-prev:hover {opacity: 1;}
.hs_cos_flex-direction-nav .hs_cos_flex-disabled {opacity: .3!important; filter:alpha(opacity=30); cursor: default;}

/* Direction Nav for the Thumbnail Carousel */
.hs_cos_flex_thumbnavs-direction-nav {
    margin: 0px;
    padding: 0px;
    list-style: none;
    }
.hs_cos_flex_thumbnavs-direction-nav {*height: 0;}
.hs_cos_flex_thumbnavs-direction-nav a {width: 30px; height: 140px; margin: -60px 0 0; display: block; background: url(//static.hsappstatic.net/content_shared_assets/static-1.3935/img/bg_direction_nav.png) no-repeat 0 40%; position: absolute; top: 50%; z-index: 10; cursor: pointer; text-indent: -9999px; opacity: 1; -webkit-transition: all .3s ease;}
.hs_cos_flex_thumbnavs-direction-nav .hs_cos_flex_thumbnavs-next {background-position: 100% 40%; right: 0px; }
.hs_cos_flex_thumbnavs-direction-nav .hs_cos_flex_thumbnavs-prev {left: 0px;}
.hs-cos-flex-slider-control-panel img { cursor: pointer; }
.hs-cos-flex-slider-control-panel img:hover { opacity:.8; }
.hs-cos-flex-slider-control-panel { margin-top: -30px; }



/* Control Nav */
.hs_cos_flex-control-nav {width: 100%; position: absolute; bottom: -40px; text-align: center;}
.hs_cos_flex-control-nav li {margin: 0 6px; display: inline-block; zoom: 1; *display: inline;}
.hs_cos_flex-control-paging li a {width: 11px; height: 11px; display: block; background: #666; background: rgba(0,0,0,0.5); cursor: pointer; text-indent: -9999px; -webkit-border-radius: 20px; -moz-border-radius: 20px; -o-border-radius: 20px; border-radius: 20px; box-shadow: inset 0 0 3px rgba(0,0,0,0.3);}
.hs_cos_flex-control-paging li a:hover { background: #333; background: rgba(0,0,0,0.7); }
.hs_cos_flex-control-paging li a.hs_cos_flex-active { background: #000; background: rgba(0,0,0,0.9); cursor: default; }

.hs_cos_flex-control-thumbs {margin: 5px 0 0; position: static; overflow: hidden;}
.hs_cos_flex-control-thumbs li {width: 25%; float: left; margin: 0;}
.hs_cos_flex-control-thumbs img {width: 100%; display: block; opacity: .7; cursor: pointer;}
.hs_cos_flex-control-thumbs img:hover {opacity: 1;}
.hs_cos_flex-control-thumbs .hs_cos_flex-active {opacity: 1; cursor: default;}

@media screen and (max-width: 860px) {
  .hs_cos_flex-direction-nav .hs_cos_flex-prev {opacity: 1; left: 0;}
  .hs_cos_flex-direction-nav .hs_cos_flex-next {opacity: 1; right: 0;}
}

.hs_cos_flex-slider .caption {
    background-color: rgba(0,0,0,0.5);
    position: absolute;
    font-size: 2em;
    line-height: 1.1em;
    color: white;
    padding: 0px 5% 0px 5%;
    width: 100%;
    bottom: 0;
    text-align: center;
}

.hs_cos_flex-slider .superimpose .caption {
    color: white;
    font-size: 3em;
    line-height: 1.1em;
    position: absolute;
    padding: 0px 5% 0px 5%;
    width: 90%;
    top: 40%;
    text-align: center;
    background-color: transparent;
}

@media all and (max-width: 400px) {
    .hs_cos_flex-slider .superimpose .caption {
        background-color: black;
        position: static;
        font-size: 2em;
        line-height: 1.1em;
        color: white;
        width: 90%;
        padding: 0px 5% 0px 5%;
        top: 40%;
        text-align: center;
    }

    /* beat recaptcha into being responsive, !importants and specificity are necessary */
    #recaptcha_area table#recaptcha_table {width: 300px !important;}
    #recaptcha_area table#recaptcha_table .recaptcha_r1_c1 {width: 300px !important;}
    #recaptcha_area table#recaptcha_table .recaptcha_r4_c4 { width: 67px !important;}
    #recaptcha_area table#recaptcha_table #recaptcha_image {width:280px !important;}
}

.hs_cos_flex-slider h1,
.hs_cos_flex-slider h2,
.hs_cos_flex-slider h3,
.hs_cos_flex-slider h4,
.hs_cos_flex-slider h5,
.hs_cos_flex-slider h6,
.hs_cos_flex-slider p {
    color: white;
}

/* Thumbnail only version of the gallery */
.hs-gallery-thumbnails li {
    display: inline-block;
    margin: 0px;
    padding: 0px;
    margin-right:-4px;
}
.hs-gallery-thumbnails.fixed-height li img {
    max-height: 150px;
    margin: 0px;
    padding: 0px;
    border-width: 0px;
}


/* responsive pre elements */

pre {
    overflow-x: auto;
}

/* responsive pre tables */

table pre {
    white-space: pre-wrap;
}

/* adding minimal spacing for blog comments */
.comment {
    margin: 10px 0 10px 0;
}

/* make sure lines with no whitespace don't interefere with layout */
.hs_cos_wrapper_type_rich_text,
.hs_cos_wrapper_type_text,
.hs_cos_wrapper_type_header,
.hs_cos_wrapper_type_section_header,
.hs_cos_wrapper_type_raw_html,
.hs_cos_wrapper_type_raw_jinja,
.hs_cos_wrapper_type_page_footer {
    word-wrap: break-word;
}




/* HTML 5 Reset */

article, aside, details, figcaption, figure, footer, header, hgroup, nav, section {
    display: block;
}

audio, canvas, video {
    display: inline-block;
    *display: inline;
    *zoom: 1;
}

audio:not([controls]) {
    display: none;
}

/* Support migrations from wordpress */

.wp-float-left {
    float: left;
    margin: 0 20px 20px 0;
}

.wp-float-right {
    float: right;
    margin: 0 0 20px 20px;
}

/* Responsive Google Maps */

#map_canvas img, .google-maps img {
    max-width: none;
}

/* line height fix for reCaptcha theme */
#recaptcha_table td {line-height: 0;}
.recaptchatable #recaptcha_response_field {min-height: 0;line-height: 12px;}


/*! jQuery UI - v1.12.1 - 2016-11-04
* http://jqueryui.com
* Includes: widget.js, data.js, jquery-1-7.js, scroll-parent.js, widgets/draggable.js, widgets/droppable.js, widgets/sortable.js, widgets/mouse.js, effect.js, effects/effect-fade.js, effects/effect-highlight.js, effects/effect-slide.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */

(function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)})(function(t){t.ui=t.ui||{},t.ui.version="1.12.1";var e=0,i=Array.prototype.slice;t.cleanData=function(e){return function(i){var s,n,o;for(o=0;null!=(n=i[o]);o++)try{s=t._data(n,"events"),s&&s.remove&&t(n).triggerHandler("remove")}catch(a){}e(i)}}(t.cleanData),t.widget=function(e,i,s){var n,o,a,r={},l=e.split(".")[0];e=e.split(".")[1];var h=l+"-"+e;return s||(s=i,i=t.Widget),t.isArray(s)&&(s=t.extend.apply(null,[{}].concat(s))),t.expr[":"][h.toLowerCase()]=function(e){return!!t.data(e,h)},t[l]=t[l]||{},n=t[l][e],o=t[l][e]=function(t,e){return this._createWidget?(arguments.length&&this._createWidget(t,e),void 0):new o(t,e)},t.extend(o,n,{version:s.version,_proto:t.extend({},s),_childConstructors:[]}),a=new i,a.options=t.widget.extend({},a.options),t.each(s,function(e,s){return t.isFunction(s)?(r[e]=function(){function t(){return i.prototype[e].apply(this,arguments)}function n(t){return i.prototype[e].apply(this,t)}return function(){var e,i=this._super,o=this._superApply;return this._super=t,this._superApply=n,e=s.apply(this,arguments),this._super=i,this._superApply=o,e}}(),void 0):(r[e]=s,void 0)}),o.prototype=t.widget.extend(a,{widgetEventPrefix:n?a.widgetEventPrefix||e:e},r,{constructor:o,namespace:l,widgetName:e,widgetFullName:h}),n?(t.each(n._childConstructors,function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete n._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var s,n,o=i.call(arguments,1),a=0,r=o.length;r>a;a++)for(s in o[a])n=o[a][s],o[a].hasOwnProperty(s)&&void 0!==n&&(e[s]=t.isPlainObject(n)?t.isPlainObject(e[s])?t.widget.extend({},e[s],n):t.widget.extend({},n):n);return e},t.widget.bridge=function(e,s){var n=s.prototype.widgetFullName||e;t.fn[e]=function(o){var a="string"==typeof o,r=i.call(arguments,1),l=this;return a?this.length||"instance"!==o?this.each(function(){var i,s=t.data(this,n);return"instance"===o?(l=s,!1):s?t.isFunction(s[o])&&"_"!==o.charAt(0)?(i=s[o].apply(s,r),i!==s&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0):t.error("no such method '"+o+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; "+"attempted to call method '"+o+"'")}):l=void 0:(r.length&&(o=t.widget.extend.apply(null,[o].concat(r))),this.each(function(){var e=t.data(this,n);e?(e.option(o||{}),e._init&&e._init()):t.data(this,n,new s(o,this))})),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(i,s){s=t(s||this.defaultElement||this)[0],this.element=t(s),this.uuid=e++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},s!==this&&(t.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===s&&this.destroy()}}),this.document=t(s.style?s.ownerDocument:s.document||s),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),i),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var s,n,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},s=e.split("."),e=s.shift(),s.length){for(n=a[e]=t.widget.extend({},this.options[e]),o=0;s.length-1>o;o++)n[s[o]]=n[s[o]]||{},n=n[s[o]];if(e=s.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=i}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,s,n;for(i in e)n=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&n&&n.length&&(s=t(n.get()),this._removeClass(n,i),s.addClass(this._classes({element:s,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){function i(i,o){var a,r;for(r=0;i.length>r;r++)a=n.classesElementLookup[i[r]]||t(),a=e.add?t(t.unique(a.get().concat(e.element.get()))):t(a.not(e.element).get()),n.classesElementLookup[i[r]]=a,s.push(i[r]),o&&e.classes[i[r]]&&s.push(e.classes[i[r]])}var s=[],n=this;return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&i(e.keys.match(/\S+/g)||[],!0),e.extra&&i(e.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,function(s,n){-1!==t.inArray(e.target,n)&&(i.classesElementLookup[s]=t(n.not(e.target).get()))})},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){s="boolean"==typeof s?s:i;var n="string"==typeof t||null===t,o={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s};return o.element.toggleClass(this._classes(o),s),this},_on:function(e,i,s){var n,o=this;"boolean"!=typeof e&&(s=i,i=e,e=!1),s?(i=n=t(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),t.each(s,function(s,a){function r(){return e||o.options.disabled!==!0&&!t(this).hasClass("ui-state-disabled")?("string"==typeof a?o[a]:a).apply(o,arguments):void 0}"string"!=typeof a&&(r.guid=a.guid=a.guid||r.guid||t.guid++);var l=s.match(/^([\w:-]*)\s*(.*)$/),h=l[1]+o.eventNamespace,c=l[2];c?n.on(h,c,r):i.on(h,r)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i).off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function i(){return("string"==typeof t?s[t]:t).apply(s,arguments)}var s=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,s){var n,o,a=this.options[e];if(s=s||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);return this.element.trigger(i,s),!(t.isFunction(a)&&a.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(s,n,o){"string"==typeof n&&(n={effect:n});var a,r=n?n===!0||"number"==typeof n?i:n.effect||i:e;n=n||{},"number"==typeof n&&(n={duration:n}),a=!t.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),a&&t.effects&&t.effects.effect[r]?s[e](n):r!==e&&s[r]?s[r](n.duration,n.easing,o):s.queue(function(i){t(this)[e](),o&&o.call(s[0]),i()})}}),t.widget,t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,s){return!!t.data(e,s[3])}}),"1.7"===t.fn.jquery.substring(0,3)&&(t.each(["Width","Height"],function(e,i){function s(e,i,s,o){return t.each(n,function(){i-=parseFloat(t.css(e,"padding"+this))||0,s&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),o&&(i-=parseFloat(t.css(e,"margin"+this))||0)}),i}var n="Width"===i?["Left","Right"]:["Top","Bottom"],o=i.toLowerCase(),a={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+i]=function(e){return void 0===e?a["inner"+i].call(this):this.each(function(){t(this).css(o,s(this,e)+"px")})},t.fn["outer"+i]=function(e,n){return"number"!=typeof e?a["outer"+i].call(this,e):this.each(function(){t(this).css(o,s(this,e,!0,n)+"px")})}}),t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.fn.scrollParent=function(e){var i=this.css("position"),s="absolute"===i,n=e?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter(function(){var e=t(this);return s&&"static"===e.css("position")?!1:n.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==i&&o.length?o:t(this[0].ownerDocument||document)},t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var s=!1;t(document).on("mouseup",function(){s=!1}),t.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(i){return!0===t.data(i.target,e.widgetName+".preventClickEvent")?(t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!s){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var i=this,n=1===e.which,o="string"==typeof this.options.cancel&&e.target.nodeName?t(e.target).closest(this.options.cancel).length:!1;return n&&!o&&this._mouseCapture(e)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(e)!==!1,!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return i._mouseMove(t)},this._mouseUpDelegate=function(t){return i._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),s=!0,!0)):!0}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||9>document.documentMode)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,s=!1,e.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),t.ui.plugin={add:function(e,i,s){var n,o=t.ui[e].prototype;for(n in s)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([i,s[n]])},call:function(t,e,i,s){var n,o=t.plugins[e];if(o&&(s||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(n=0;o.length>n;n++)t.options[o[n][0]]&&o[n][1].apply(t.element,i)}},t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(i){e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e},t.ui.safeBlur=function(e){e&&"body"!==e.nodeName.toLowerCase()&&t(e).trigger("blur")},t.widget("ui.draggable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?(this.destroyOnClear=!0,void 0):(this._removeHandleClassName(),this._mouseDestroy(),void 0)},_mouseCapture:function(e){var i=this.options;return this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(e),this.handle?(this._blurActiveElement(e),this._blockFrames(i.iframeFix===!0?"iframe":i.iframeFix),!0):!1)},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map(function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var i=t.ui.safeActiveElement(this.document[0]),s=t(e.target);s.closest(i).length||t.ui.safeBlur(i)},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===t(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),this._trigger("start",e)===!1?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var s=this._uiHash();if(this._trigger("drag",e,s)===!1)return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=s.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,s=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(s=t.ui.ddmanager.drop(this,e)),this.dropped&&(s=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!s||"valid"===this.options.revert&&s||this.options.revert===!0||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,s)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){i._trigger("stop",e)!==!1&&i._clear()}):this._trigger("stop",e)!==!1&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return this.options.handle?!!t(e.target).closest(this.element.find(this.options.handle)).length:!0},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var i=this.options,s=t.isFunction(i.helper),n=s?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),s&&n[0]===this.element[0]&&this._setPositionRelative(),n[0]===this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_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 e,i,s,n=this.options,o=this.document[0];return this.relativeContainer=null,n.containment?"window"===n.containment?(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):"document"===n.containment?(this.containment=[0,0,t(o).width()-this.helperProportions.width-this.margins.left,(t(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):n.containment.constructor===Array?(this.containment=n.containment,void 0):("parent"===n.containment&&(n.containment=this.helper[0].parentNode),i=t(n.containment),s=i[0],s&&(e=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(s.scrollWidth,s.offsetWidth):s.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(s.scrollHeight,s.offsetHeight):s.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i),void 0):(this.containment=null,void 0)},_convertPositionTo:function(t,e){e||(e=this.position);var i="absolute"===t?1:-1,s=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,s,n,o,a=this.options,r=this._isRootNode(this.scrollParent[0]),l=t.pageX,h=t.pageY;return r&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(s=this.relativeContainer.offset(),i=[this.containment[0]+s.left,this.containment[1]+s.top,this.containment[2]+s.left,this.containment[3]+s.top]):i=this.containment,t.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(h=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(h=i[3]+this.offset.click.top)),a.grid&&(n=a.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/a.grid[1])*a.grid[1]:this.originalPageY,h=i?n-this.offset.click.top>=i[1]||n-this.offset.click.top>i[3]?n:n-this.offset.click.top>=i[1]?n-a.grid[1]:n+a.grid[1]:n,o=a.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/a.grid[0])*a.grid[0]:this.originalPageX,l=i?o-this.offset.click.left>=i[0]||o-this.offset.click.left>i[2]?o:o-this.offset.click.left>=i[0]?o-a.grid[0]:o+a.grid[0]:o),"y"===a.axis&&(l=this.originalPageX),"x"===a.axis&&(h=this.originalPageY)),{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:r?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:r?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,i,s){return s=s||this._uiHash(),t.ui.plugin.call(this,e,[i,s,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),s.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,i,s)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i,s){var n=t.extend({},i,{item:s.element});s.sortables=[],t(s.options.connectToSortable).each(function(){var i=t(this).sortable("instance");i&&!i.options.disabled&&(s.sortables.push(i),i.refreshPositions(),i._trigger("activate",e,n))})},stop:function(e,i,s){var n=t.extend({},i,{item:s.element});s.cancelHelperRemoval=!1,t.each(s.sortables,function(){var t=this;t.isOver?(t.isOver=0,s.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,n))})},drag:function(e,i,s){t.each(s.sortables,function(){var n=!1,o=this;o.positionAbs=s.positionAbs,o.helperProportions=s.helperProportions,o.offset.click=s.offset.click,o._intersectsWith(o.containerCache)&&(n=!0,t.each(s.sortables,function(){return this.positionAbs=s.positionAbs,this.helperProportions=s.helperProportions,this.offset.click=s.offset.click,this!==o&&this._intersectsWith(this.containerCache)&&t.contains(o.element[0],this.element[0])&&(n=!1),n})),n?(o.isOver||(o.isOver=1,s._parent=i.helper.parent(),o.currentItem=i.helper.appendTo(o.element).data("ui-sortable-item",!0),o.options._helper=o.options.helper,o.options.helper=function(){return i.helper[0]},e.target=o.currentItem[0],o._mouseCapture(e,!0),o._mouseStart(e,!0,!0),o.offset.click.top=s.offset.click.top,o.offset.click.left=s.offset.click.left,o.offset.parent.left-=s.offset.parent.left-o.offset.parent.left,o.offset.parent.top-=s.offset.parent.top-o.offset.parent.top,s._trigger("toSortable",e),s.dropped=o.element,t.each(s.sortables,function(){this.refreshPositions()}),s.currentItem=s.element,o.fromOutside=s),o.currentItem&&(o._mouseDrag(e),i.position=o.position)):o.isOver&&(o.isOver=0,o.cancelHelperRemoval=!0,o.options._revert=o.options.revert,o.options.revert=!1,o._trigger("out",e,o._uiHash(o)),o._mouseStop(e,!0),o.options.revert=o.options._revert,o.options.helper=o.options._helper,o.placeholder&&o.placeholder.remove(),i.helper.appendTo(s._parent),s._refreshOffsets(e),i.position=s._generatePosition(e,!0),s._trigger("fromSortable",e),s.dropped=!1,t.each(s.sortables,function(){this.refreshPositions()}))})}}),t.ui.plugin.add("draggable","cursor",{start:function(e,i,s){var n=t("body"),o=s.options;n.css("cursor")&&(o._cursor=n.css("cursor")),n.css("cursor",o.cursor)},stop:function(e,i,s){var n=s.options;n._cursor&&t("body").css("cursor",n._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i,s){var n=t(i.helper),o=s.options;n.css("opacity")&&(o._opacity=n.css("opacity")),n.css("opacity",o.opacity)},stop:function(e,i,s){var n=s.options;n._opacity&&t(i.helper).css("opacity",n._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(e,i,s){var n=s.options,o=!1,a=s.scrollParentNotHidden[0],r=s.document[0];a!==r&&"HTML"!==a.tagName?(n.axis&&"x"===n.axis||(s.overflowOffset.top+a.offsetHeight-e.pageY<n.scrollSensitivity?a.scrollTop=o=a.scrollTop+n.scrollSpeed:e.pageY-s.overflowOffset.top<n.scrollSensitivity&&(a.scrollTop=o=a.scrollTop-n.scrollSpeed)),n.axis&&"y"===n.axis||(s.overflowOffset.left+a.offsetWidth-e.pageX<n.scrollSensitivity?a.scrollLeft=o=a.scrollLeft+n.scrollSpeed:e.pageX-s.overflowOffset.left<n.scrollSensitivity&&(a.scrollLeft=o=a.scrollLeft-n.scrollSpeed))):(n.axis&&"x"===n.axis||(e.pageY-t(r).scrollTop()<n.scrollSensitivity?o=t(r).scrollTop(t(r).scrollTop()-n.scrollSpeed):t(window).height()-(e.pageY-t(r).scrollTop())<n.scrollSensitivity&&(o=t(r).scrollTop(t(r).scrollTop()+n.scrollSpeed))),n.axis&&"y"===n.axis||(e.pageX-t(r).scrollLeft()<n.scrollSensitivity?o=t(r).scrollLeft(t(r).scrollLeft()-n.scrollSpeed):t(window).width()-(e.pageX-t(r).scrollLeft())<n.scrollSensitivity&&(o=t(r).scrollLeft(t(r).scrollLeft()+n.scrollSpeed)))),o!==!1&&t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(s,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,i,s){var n=s.options;s.snapElements=[],t(n.snap.constructor!==String?n.snap.items||":data(ui-draggable)":n.snap).each(function(){var e=t(this),i=e.offset();this!==s.element[0]&&s.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:i.top,left:i.left})})},drag:function(e,i,s){var n,o,a,r,l,h,c,u,d,p,f=s.options,g=f.snapTolerance,m=i.offset.left,_=m+s.helperProportions.width,v=i.offset.top,b=v+s.helperProportions.height;for(d=s.snapElements.length-1;d>=0;d--)l=s.snapElements[d].left-s.margins.left,h=l+s.snapElements[d].width,c=s.snapElements[d].top-s.margins.top,u=c+s.snapElements[d].height,l-g>_||m>h+g||c-g>b||v>u+g||!t.contains(s.snapElements[d].item.ownerDocument,s.snapElements[d].item)?(s.snapElements[d].snapping&&s.options.snap.release&&s.options.snap.release.call(s.element,e,t.extend(s._uiHash(),{snapItem:s.snapElements[d].item})),s.snapElements[d].snapping=!1):("inner"!==f.snapMode&&(n=g>=Math.abs(c-b),o=g>=Math.abs(u-v),a=g>=Math.abs(l-_),r=g>=Math.abs(h-m),n&&(i.position.top=s._convertPositionTo("relative",{top:c-s.helperProportions.height,left:0}).top),o&&(i.position.top=s._convertPositionTo("relative",{top:u,left:0}).top),a&&(i.position.left=s._convertPositionTo("relative",{top:0,left:l-s.helperProportions.width}).left),r&&(i.position.left=s._convertPositionTo("relative",{top:0,left:h}).left)),p=n||o||a||r,"outer"!==f.snapMode&&(n=g>=Math.abs(c-v),o=g>=Math.abs(u-b),a=g>=Math.abs(l-m),r=g>=Math.abs(h-_),n&&(i.position.top=s._convertPositionTo("relative",{top:c,left:0}).top),o&&(i.position.top=s._convertPositionTo("relative",{top:u-s.helperProportions.height,left:0}).top),a&&(i.position.left=s._convertPositionTo("relative",{top:0,left:l}).left),r&&(i.position.left=s._convertPositionTo("relative",{top:0,left:h-s.helperProportions.width}).left)),!s.snapElements[d].snapping&&(n||o||a||r||p)&&s.options.snap.snap&&s.options.snap.snap.call(s.element,e,t.extend(s._uiHash(),{snapItem:s.snapElements[d].item})),s.snapElements[d].snapping=n||o||a||r||p)}}),t.ui.plugin.add("draggable","stack",{start:function(e,i,s){var n,o=s.options,a=t.makeArray(t(o.stack)).sort(function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)});a.length&&(n=parseInt(t(a[0]).css("zIndex"),10)||0,t(a).each(function(e){t(this).css("zIndex",n+e)}),this.css("zIndex",n+a.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i,s){var n=t(i.helper),o=s.options;n.css("zIndex")&&(o._zIndex=n.css("zIndex")),n.css("zIndex",o.zIndex)},stop:function(e,i,s){var n=s.options;n._zIndex&&t(i.helper).css("zIndex",n._zIndex)}}),t.ui.draggable,t.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,i=this.options,s=i.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(s)?s:function(t){return t.is(s)},this.proportions=function(){return arguments.length?(e=arguments[0],void 0):e?e:e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}},this._addToManager(i.scope),i.addClasses&&this._addClass("ui-droppable")},_addToManager:function(e){t.ui.ddmanager.droppables[e]=t.ui.ddmanager.droppables[e]||[],t.ui.ddmanager.droppables[e].push(this)
},_splice:function(t){for(var e=0;t.length>e;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var e=t.ui.ddmanager.droppables[this.options.scope];this._splice(e)},_setOption:function(e,i){if("accept"===e)this.accept=t.isFunction(i)?i:function(t){return t.is(i)};else if("scope"===e){var s=t.ui.ddmanager.droppables[this.options.scope];this._splice(s),this._addToManager(i)}this._super(e,i)},_activate:function(e){var i=t.ui.ddmanager.current;this._addActiveClass(),i&&this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this._removeActiveClass(),i&&this._trigger("deactivate",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._addHoverClass(),this._trigger("over",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeHoverClass(),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var s=i||t.ui.ddmanager.current,o=!1;return s&&(s.currentItem||s.element)[0]!==this.element[0]?(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var i=t(this).droppable("instance");return i.options.greedy&&!i.options.disabled&&i.options.scope===s.options.scope&&i.accept.call(i.element[0],s.currentItem||s.element)&&n(s,t.extend(i,{offset:i.element.offset()}),i.options.tolerance,e)?(o=!0,!1):void 0}),o?!1:this.accept.call(this.element[0],s.currentItem||s.element)?(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(s)),this.element):!1):!1},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});var n=t.ui.intersect=function(){function t(t,e,i){return t>=e&&e+i>t}return function(e,i,s,n){if(!i.offset)return!1;var o=(e.positionAbs||e.position.absolute).left+e.margins.left,a=(e.positionAbs||e.position.absolute).top+e.margins.top,r=o+e.helperProportions.width,l=a+e.helperProportions.height,h=i.offset.left,c=i.offset.top,u=h+i.proportions().width,d=c+i.proportions().height;switch(s){case"fit":return o>=h&&u>=r&&a>=c&&d>=l;case"intersect":return o+e.helperProportions.width/2>h&&u>r-e.helperProportions.width/2&&a+e.helperProportions.height/2>c&&d>l-e.helperProportions.height/2;case"pointer":return t(n.pageY,c,i.proportions().height)&&t(n.pageX,h,i.proportions().width);case"touch":return(a>=c&&d>=a||l>=c&&d>=l||c>a&&l>d)&&(o>=h&&u>=o||r>=h&&u>=r||h>o&&r>u);default:return!1}}}();t.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,i){var s,n,o=t.ui.ddmanager.droppables[e.options.scope]||[],a=i?i.type:null,r=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(s=0;o.length>s;s++)if(!(o[s].options.disabled||e&&!o[s].accept.call(o[s].element[0],e.currentItem||e.element))){for(n=0;r.length>n;n++)if(r[n]===o[s].element[0]){o[s].proportions().height=0;continue t}o[s].visible="none"!==o[s].element.css("display"),o[s].visible&&("mousedown"===a&&o[s]._activate.call(o[s],i),o[s].offset=o[s].element.offset(),o[s].proportions({width:o[s].element[0].offsetWidth,height:o[s].element[0].offsetHeight}))}},drop:function(e,i){var s=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&n(e,this,this.options.tolerance,i)&&(s=this._drop.call(this,i)||s),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))}),s},dragStart:function(e,i){e.element.parentsUntil("body").on("scroll.droppable",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)})},drag:function(e,i){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var s,o,a,r=n(e,this,this.options.tolerance,i),l=!r&&this.isover?"isout":r&&!this.isover?"isover":null;l&&(this.options.greedy&&(o=this.options.scope,a=this.element.parents(":data(ui-droppable)").filter(function(){return t(this).droppable("instance").options.scope===o}),a.length&&(s=t(a[0]).droppable("instance"),s.greedyChild="isover"===l)),s&&"isover"===l&&(s.isover=!1,s.isout=!0,s._out.call(s,i)),this[l]=!0,this["isout"===l?"isover":"isout"]=!1,this["isover"===l?"_over":"_out"].call(this,i),s&&"isout"===l&&(s.isout=!1,s.isover=!0,s._over.call(s,i)))}})},dragStop:function(e,i){e.element.parentsUntil("body").off("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}},t.uiBackCompat!==!1&&t.widget("ui.droppable",t.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),t.ui.droppable,t.widget("ui.sortable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return t>=e&&e+i>t},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),t.each(this.items,function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,i){var s=null,n=!1,o=this;return this.reverting?!1:this.options.disabled||"static"===this.options.type?!1:(this._refreshItems(e),t(e.target).parents().each(function(){return t.data(this,o.widgetName+"-item")===o?(s=t(this),!1):void 0}),t.data(e.target,o.widgetName+"-item")===o&&(s=t(e.target)),s?!this.options.handle||i||(t(this.options.handle,s).find("*").addBack().each(function(){this===e.target&&(n=!0)}),n)?(this.currentItem=s,this._removeCurrentsFromItems(),!0):!1:!1)},_mouseStart:function(e,i,s){var n,o,a=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),a.containment&&this._setContainment(),a.cursor&&"auto"!==a.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",a.cursor),this.storedStylesheet=t("<style>*{ cursor: "+a.cursor+" !important; }</style>").appendTo(o)),a.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",a.opacity)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",a.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!s)for(n=this.containers.length-1;n>=0;n--)this.containers[n]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,s,n,o,a=this.options,r=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<a.scrollSensitivity?this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop+a.scrollSpeed:e.pageY-this.overflowOffset.top<a.scrollSensitivity&&(this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop-a.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<a.scrollSensitivity?this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft+a.scrollSpeed:e.pageX-this.overflowOffset.left<a.scrollSensitivity&&(this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft-a.scrollSpeed)):(e.pageY-this.document.scrollTop()<a.scrollSensitivity?r=this.document.scrollTop(this.document.scrollTop()-a.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<a.scrollSensitivity&&(r=this.document.scrollTop(this.document.scrollTop()+a.scrollSpeed)),e.pageX-this.document.scrollLeft()<a.scrollSensitivity?r=this.document.scrollLeft(this.document.scrollLeft()-a.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<a.scrollSensitivity&&(r=this.document.scrollLeft(this.document.scrollLeft()+a.scrollSpeed))),r!==!1&&t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),i=this.items.length-1;i>=0;i--)if(s=this.items[i],n=s.item[0],o=this._intersectsWithPointer(s),o&&s.instance===this.currentContainer&&n!==this.currentItem[0]&&this.placeholder[1===o?"next":"prev"]()[0]!==n&&!t.contains(this.placeholder[0],n)&&("semi-dynamic"===this.options.type?!t.contains(this.element[0],n):!0)){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(s))break;this._rearrange(e,s),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var s=this,n=this.placeholder.offset(),o=this.options.axis,a={};o&&"x"!==o||(a.left=n.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(a.top=n.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(a,parseInt(this.options.revert,10)||500,function(){s._clear(e)})}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new t.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),s=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&s.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))}),!s.length&&e.key&&s.push(e.key+"="),s.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),s=[];return e=e||{},i.each(function(){s.push(t(e.item||this).attr(e.attribute||"id")||"")}),s},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,s=this.positionAbs.top,n=s+this.helperProportions.height,o=t.left,a=o+t.width,r=t.top,l=r+t.height,h=this.offset.click.top,c=this.offset.click.left,u="x"===this.options.axis||s+h>r&&l>s+h,d="y"===this.options.axis||e+c>o&&a>e+c,p=u&&d;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:e+this.helperProportions.width/2>o&&a>i-this.helperProportions.width/2&&s+this.helperProportions.height/2>r&&l>n-this.helperProportions.height/2},_intersectsWithPointer:function(t){var e,i,s="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),n="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width),o=s&&n;return o?(e=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection(),this.floating?"right"===i||"down"===e?2:1:e&&("down"===e?2:1)):!1},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),s=this._getDragVerticalDirection(),n=this._getDragHorizontalDirection();return this.floating&&n?"right"===n&&i||"left"===n&&!i:s&&("down"===s&&e||"up"===s&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){function i(){r.push(this)}var s,n,o,a,r=[],l=[],h=this._connectWith();if(h&&e)for(s=h.length-1;s>=0;s--)for(o=t(h[s],this.document[0]),n=o.length-1;n>=0;n--)a=t.data(o[n],this.widgetFullName),a&&a!==this&&!a.options.disabled&&l.push([t.isFunction(a.options.items)?a.options.items.call(a.element):t(a.options.items,a.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),a]);for(l.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),s=l.length-1;s>=0;s--)l[s][0].each(i);return t(r)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var i=0;e.length>i;i++)if(e[i]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var i,s,n,o,a,r,l,h,c=this.items,u=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(i=d.length-1;i>=0;i--)for(n=t(d[i],this.document[0]),s=n.length-1;s>=0;s--)o=t.data(n[s],this.widgetFullName),o&&o!==this&&!o.options.disabled&&(u.push([t.isFunction(o.options.items)?o.options.items.call(o.element[0],e,{item:this.currentItem}):t(o.options.items,o.element),o]),this.containers.push(o));for(i=u.length-1;i>=0;i--)for(a=u[i][1],r=u[i][0],s=0,h=r.length;h>s;s++)l=t(r[s]),l.data(this.widgetName+"-item",a),c.push({item:l,instance:a,width:0,height:0,left:0,top:0})},refreshPositions:function(e){this.floating=this.items.length?"x"===this.options.axis||this._isFloating(this.items[0].item):!1,this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var i,s,n,o;for(i=this.items.length-1;i>=0;i--)s=this.items[i],s.instance!==this.currentContainer&&this.currentContainer&&s.item[0]!==this.currentItem[0]||(n=this.options.toleranceElement?t(this.options.toleranceElement,s.item):s.item,e||(s.width=n.outerWidth(),s.height=n.outerHeight()),o=n.offset(),s.left=o.left,s.top=o.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)o=this.containers[i].element.offset(),this.containers[i].containerCache.left=o.left,this.containers[i].containerCache.top=o.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){e=e||this;var i,s=e.options;s.placeholder&&s.placeholder.constructor!==String||(i=s.placeholder,s.placeholder={element:function(){var s=e.currentItem[0].nodeName.toLowerCase(),n=t("<"+s+">",e.document[0]);return e._addClass(n,"ui-sortable-placeholder",i||e.currentItem[0].className)._removeClass(n,"ui-sortable-helper"),"tbody"===s?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(n)):"tr"===s?e._createTrPlaceholder(e.currentItem,n):"img"===s&&n.attr("src",e.currentItem.attr("src")),i||n.css("visibility","hidden"),n},update:function(t,n){(!i||s.forcePlaceholderSize)&&(n.height()||n.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),n.width()||n.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(s.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),s.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,i){var s=this;e.children().each(function(){t("<td>&#160;</td>",s.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(i)})},_contactContainers:function(e){var i,s,n,o,a,r,l,h,c,u,d=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!t.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(d&&t.contains(this.containers[i].element[0],d.element[0]))continue;d=this.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].containerCache.over=0);if(d)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(n=1e4,o=null,c=d.floating||this._isFloating(this.currentItem),a=c?"left":"top",r=c?"width":"height",u=c?"pageX":"pageY",s=this.items.length-1;s>=0;s--)t.contains(this.containers[p].element[0],this.items[s].item[0])&&this.items[s].item[0]!==this.currentItem[0]&&(l=this.items[s].item.offset()[a],h=!1,e[u]-l>this.items[s][r]/2&&(h=!0),n>Math.abs(e[u]-l)&&(n=Math.abs(e[u]-l),o=this.items[s],this.direction=h?"up":"down"));if(!o&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1),void 0;o?this._rearrange(e,o,null,!0):this._rearrange(e,null,this.containers[p].element,!0),this._trigger("change",e,this._uiHash()),this.containers[p]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(e){var i=this.options,s=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return s.parents("body").length||t("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(s[0]),s[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!s[0].style.width||i.forceHelperSize)&&s.width(this.currentItem.width()),(!s[0].style.height||i.forceHelperSize)&&s.height(this.currentItem.height()),s},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,s,n=this.options;"parent"===n.containment&&(n.containment=this.helper[0].parentNode),("document"===n.containment||"window"===n.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===n.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===n.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(n.containment)||(e=t(n.containment)[0],i=t(n.containment).offset(),s="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(s?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(s?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var s="absolute"===e?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(n[0].tagName);return{top:i.top+this.offset.relative.top*s+this.offset.parent.top*s-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:n.scrollTop())*s,left:i.left+this.offset.relative.left*s+this.offset.parent.left*s-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:n.scrollLeft())*s}},_generatePosition:function(e){var i,s,n=this.options,o=e.pageX,a=e.pageY,r="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(r[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(o=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(a=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(o=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),n.grid&&(i=this.originalPageY+Math.round((a-this.originalPageY)/n.grid[1])*n.grid[1],a=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-n.grid[1]:i+n.grid[1]:i,s=this.originalPageX+Math.round((o-this.originalPageX)/n.grid[0])*n.grid[0],o=this.containment?s-this.offset.click.left>=this.containment[0]&&s-this.offset.click.left<=this.containment[2]?s:s-this.offset.click.left>=this.containment[0]?s-n.grid[0]:s+n.grid[0]:s)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:r.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:r.scrollLeft())}},_rearrange:function(t,e,i,s){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var n=this.counter;this._delay(function(){n===this.counter&&this.refreshPositions(!s)})},_clear:function(t,e){function i(t,e,i){return function(s){i._trigger(t,s,e._uiHash(e))}}this.reverting=!1;var s,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(s in this._storedCSS)("auto"===this._storedCSS[s]||"static"===this._storedCSS[s])&&(this._storedCSS[s]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&n.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(n.push(function(t){this._trigger("remove",t,this._uiHash())}),n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),s=this.containers.length-1;s>=0;s--)e||n.push(i("deactivate",this,this.containers[s])),this.containers[s].containerCache.over&&(n.push(i("out",this,this.containers[s])),this.containers[s].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(s=0;n.length>s;s++)n[s].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){t.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}});var o="ui-effects-",a="ui-effects-style",r="ui-effects-animated",l=t;t.effects={effect:{}},function(t,e){function i(t,e,i){var s=u[e.type]||{};return null==t?i||!e.def?null:e.def:(t=s.floor?~~t:parseFloat(t),isNaN(t)?e.def:s.mod?(t+s.mod)%s.mod:0>t?0:t>s.max?s.max:t)}function s(i){var s=h(),n=s._rgba=[];return i=i.toLowerCase(),f(l,function(t,o){var a,r=o.re.exec(i),l=r&&o.parse(r),h=o.space||"rgba";return l?(a=s[h](l),s[c[h].cache]=a[c[h].cache],n=s._rgba=a._rgba,!1):e}),n.length?("0,0,0,0"===n.join()&&t.extend(n,o.transparent),s):o[i]}function n(t,e,i){return i=(i+1)%1,1>6*i?t+6*(e-t)*i:1>2*i?e:2>3*i?t+6*(e-t)*(2/3-i):t}var o,a="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",r=/^([\-+])=\s*(\d+\.?\d*)/,l=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],h=t.Color=function(e,i,s,n){return new t.Color.fn.parse(e,i,s,n)},c={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},u={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},d=h.support={},p=t("<p>")[0],f=t.each;
p.style.cssText="background-color:rgba(1,1,1,.5)",d.rgba=p.style.backgroundColor.indexOf("rgba")>-1,f(c,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),h.fn=t.extend(h.prototype,{parse:function(n,a,r,l){if(n===e)return this._rgba=[null,null,null,null],this;(n.jquery||n.nodeType)&&(n=t(n).css(a),a=e);var u=this,d=t.type(n),p=this._rgba=[];return a!==e&&(n=[n,a,r,l],d="array"),"string"===d?this.parse(s(n)||o._default):"array"===d?(f(c.rgba.props,function(t,e){p[e.idx]=i(n[e.idx],e)}),this):"object"===d?(n instanceof h?f(c,function(t,e){n[e.cache]&&(u[e.cache]=n[e.cache].slice())}):f(c,function(e,s){var o=s.cache;f(s.props,function(t,e){if(!u[o]&&s.to){if("alpha"===t||null==n[t])return;u[o]=s.to(u._rgba)}u[o][e.idx]=i(n[t],e,!0)}),u[o]&&0>t.inArray(null,u[o].slice(0,3))&&(u[o][3]=1,s.from&&(u._rgba=s.from(u[o])))}),this):e},is:function(t){var i=h(t),s=!0,n=this;return f(c,function(t,o){var a,r=i[o.cache];return r&&(a=n[o.cache]||o.to&&o.to(n._rgba)||[],f(o.props,function(t,i){return null!=r[i.idx]?s=r[i.idx]===a[i.idx]:e})),s}),s},_space:function(){var t=[],e=this;return f(c,function(i,s){e[s.cache]&&t.push(i)}),t.pop()},transition:function(t,e){var s=h(t),n=s._space(),o=c[n],a=0===this.alpha()?h("transparent"):this,r=a[o.cache]||o.to(a._rgba),l=r.slice();return s=s[o.cache],f(o.props,function(t,n){var o=n.idx,a=r[o],h=s[o],c=u[n.type]||{};null!==h&&(null===a?l[o]=h:(c.mod&&(h-a>c.mod/2?a+=c.mod:a-h>c.mod/2&&(a-=c.mod)),l[o]=i((h-a)*e+a,n)))}),this[n](l)},blend:function(e){if(1===this._rgba[3])return this;var i=this._rgba.slice(),s=i.pop(),n=h(e)._rgba;return h(t.map(i,function(t,e){return(1-s)*n[e]+s*t}))},toRgbaString:function(){var e="rgba(",i=t.map(this._rgba,function(t,e){return null==t?e>2?1:0:t});return 1===i[3]&&(i.pop(),e="rgb("),e+i.join()+")"},toHslaString:function(){var e="hsla(",i=t.map(this.hsla(),function(t,e){return null==t&&(t=e>2?1:0),e&&3>e&&(t=Math.round(100*t)+"%"),t});return 1===i[3]&&(i.pop(),e="hsl("),e+i.join()+")"},toHexString:function(e){var i=this._rgba.slice(),s=i.pop();return e&&i.push(~~(255*s)),"#"+t.map(i,function(t){return t=(t||0).toString(16),1===t.length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),h.fn.parse.prototype=h.fn,c.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,i,s=t[0]/255,n=t[1]/255,o=t[2]/255,a=t[3],r=Math.max(s,n,o),l=Math.min(s,n,o),h=r-l,c=r+l,u=.5*c;return e=l===r?0:s===r?60*(n-o)/h+360:n===r?60*(o-s)/h+120:60*(s-n)/h+240,i=0===h?0:.5>=u?h/c:h/(2-c),[Math.round(e)%360,i,u,null==a?1:a]},c.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],s=t[2],o=t[3],a=.5>=s?s*(1+i):s+i-s*i,r=2*s-a;return[Math.round(255*n(r,a,e+1/3)),Math.round(255*n(r,a,e)),Math.round(255*n(r,a,e-1/3)),o]},f(c,function(s,n){var o=n.props,a=n.cache,l=n.to,c=n.from;h.fn[s]=function(s){if(l&&!this[a]&&(this[a]=l(this._rgba)),s===e)return this[a].slice();var n,r=t.type(s),u="array"===r||"object"===r?s:arguments,d=this[a].slice();return f(o,function(t,e){var s=u["object"===r?t:e.idx];null==s&&(s=d[e.idx]),d[e.idx]=i(s,e)}),c?(n=h(c(d)),n[a]=d,n):h(d)},f(o,function(e,i){h.fn[e]||(h.fn[e]=function(n){var o,a=t.type(n),l="alpha"===e?this._hsla?"hsla":"rgba":s,h=this[l](),c=h[i.idx];return"undefined"===a?c:("function"===a&&(n=n.call(this,c),a=t.type(n)),null==n&&i.empty?this:("string"===a&&(o=r.exec(n),o&&(n=c+parseFloat(o[2])*("+"===o[1]?1:-1))),h[i.idx]=n,this[l](h)))})})}),h.hook=function(e){var i=e.split(" ");f(i,function(e,i){t.cssHooks[i]={set:function(e,n){var o,a,r="";if("transparent"!==n&&("string"!==t.type(n)||(o=s(n)))){if(n=h(o||n),!d.rgba&&1!==n._rgba[3]){for(a="backgroundColor"===i?e.parentNode:e;(""===r||"transparent"===r)&&a&&a.style;)try{r=t.css(a,"backgroundColor"),a=a.parentNode}catch(l){}n=n.blend(r&&"transparent"!==r?r:"_default")}n=n.toRgbaString()}try{e.style[i]=n}catch(l){}}},t.fx.step[i]=function(e){e.colorInit||(e.start=h(e.elem,i),e.end=h(e.end),e.colorInit=!0),t.cssHooks[i].set(e.elem,e.start.transition(e.end,e.pos))}})},h.hook(a),t.cssHooks.borderColor={expand:function(t){var e={};return f(["Top","Right","Bottom","Left"],function(i,s){e["border"+s+"Color"]=t}),e}},o=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(l),function(){function e(e){var i,s,n=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,o={};if(n&&n.length&&n[0]&&n[n[0]])for(s=n.length;s--;)i=n[s],"string"==typeof n[i]&&(o[t.camelCase(i)]=n[i]);else for(i in n)"string"==typeof n[i]&&(o[i]=n[i]);return o}function i(e,i){var s,o,a={};for(s in i)o=i[s],e[s]!==o&&(n[s]||(t.fx.step[s]||!isNaN(parseFloat(o)))&&(a[s]=o));return a}var s=["add","remove","toggle"],n={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,i){t.fx.step[i]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(l.style(t.elem,i,t.end),t.setAttr=!0)}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(n,o,a,r){var l=t.speed(o,a,r);return this.queue(function(){var o,a=t(this),r=a.attr("class")||"",h=l.children?a.find("*").addBack():a;h=h.map(function(){var i=t(this);return{el:i,start:e(this)}}),o=function(){t.each(s,function(t,e){n[e]&&a[e+"Class"](n[e])})},o(),h=h.map(function(){return this.end=e(this.el[0]),this.diff=i(this.start,this.end),this}),a.attr("class",r),h=h.map(function(){var e=this,i=t.Deferred(),s=t.extend({},l,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.diff,s),i.promise()}),t.when.apply(t,h.get()).done(function(){o(),t.each(arguments,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,"")})}),l.complete.call(a[0])})})},t.fn.extend({addClass:function(e){return function(i,s,n,o){return s?t.effects.animateClass.call(this,{add:i},s,n,o):e.apply(this,arguments)}}(t.fn.addClass),removeClass:function(e){return function(i,s,n,o){return arguments.length>1?t.effects.animateClass.call(this,{remove:i},s,n,o):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(e){return function(i,s,n,o,a){return"boolean"==typeof s||void 0===s?n?t.effects.animateClass.call(this,s?{add:i}:{remove:i},n,o,a):e.apply(this,arguments):t.effects.animateClass.call(this,{toggle:i},s,n,o)}}(t.fn.toggleClass),switchClass:function(e,i,s,n,o){return t.effects.animateClass.call(this,{add:i,remove:e},s,n,o)}})}(),function(){function e(e,i,s,n){return t.isPlainObject(e)&&(i=e,e=e.effect),e={effect:e},null==i&&(i={}),t.isFunction(i)&&(n=i,s=null,i={}),("number"==typeof i||t.fx.speeds[i])&&(n=s,s=i,i={}),t.isFunction(s)&&(n=s,s=null),i&&t.extend(e,i),s=s||i.duration,e.duration=t.fx.off?0:"number"==typeof s?s:s in t.fx.speeds?t.fx.speeds[s]:t.fx.speeds._default,e.complete=n||i.complete,e}function i(e){return!e||"number"==typeof e||t.fx.speeds[e]?!0:"string"!=typeof e||t.effects.effect[e]?t.isFunction(e)?!0:"object"!=typeof e||e.effect?!1:!0:!0}function s(t,e){var i=e.outerWidth(),s=e.outerHeight(),n=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/,o=n.exec(t)||["",0,i,s,0];return{top:parseFloat(o[1])||0,right:"auto"===o[2]?i:parseFloat(o[2]),bottom:"auto"===o[3]?s:parseFloat(o[3]),left:parseFloat(o[4])||0}}t.expr&&t.expr.filters&&t.expr.filters.animated&&(t.expr.filters.animated=function(e){return function(i){return!!t(i).data(r)||e(i)}}(t.expr.filters.animated)),t.uiBackCompat!==!1&&t.extend(t.effects,{save:function(t,e){for(var i=0,s=e.length;s>i;i++)null!==e[i]&&t.data(o+e[i],t[0].style[e[i]])},restore:function(t,e){for(var i,s=0,n=e.length;n>s;s++)null!==e[s]&&(i=t.data(o+e[s]),t.css(e[s],i))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),"float":e.css("float")},s=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),n={width:e.width(),height:e.height()},o=document.activeElement;try{o.id}catch(a){o=document.body}return e.wrap(s),(e[0]===o||t.contains(e[0],o))&&t(o).trigger("focus"),s=e.parent(),"static"===e.css("position")?(s.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,s){i[s]=e.css(s),isNaN(parseInt(i[s],10))&&(i[s]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(n),s.css(i).show()},removeWrapper:function(e){var i=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===i||t.contains(e[0],i))&&t(i).trigger("focus")),e}}),t.extend(t.effects,{version:"1.12.1",define:function(e,i,s){return s||(s=i,i="effect"),t.effects.effect[e]=s,t.effects.effect[e].mode=i,s},scaledDimensions:function(t,e,i){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var s="horizontal"!==i?(e||100)/100:1,n="vertical"!==i?(e||100)/100:1;return{height:t.height()*n,width:t.width()*s,outerHeight:t.outerHeight()*n,outerWidth:t.outerWidth()*s}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,i){var s=t.queue();e>1&&s.splice.apply(s,[1,0].concat(s.splice(e,i))),t.dequeue()},saveStyle:function(t){t.data(a,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(a)||"",t.removeData(a)},mode:function(t,e){var i=t.is(":hidden");return"toggle"===e&&(e=i?"show":"hide"),(i?"hide"===e:"show"===e)&&(e="none"),e},getBaseline:function(t,e){var i,s;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":s=0;break;case"center":s=.5;break;case"right":s=1;break;default:s=t[1]/e.width}return{x:s,y:i}},createPlaceholder:function(e){var i,s=e.css("position"),n=e.position();return e.css({marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()),/^(static|relative)/.test(s)&&(s="absolute",i=t("<"+e[0].nodeName+">").insertAfter(e).css({display:/^(inline|ruby)/.test(e.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight"),"float":e.css("float")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).addClass("ui-effects-placeholder"),e.data(o+"placeholder",i)),e.css({position:s,left:n.left,top:n.top}),i},removePlaceholder:function(t){var e=o+"placeholder",i=t.data(e);i&&(i.remove(),t.removeData(e))},cleanUp:function(e){t.effects.restoreStyle(e),t.effects.removePlaceholder(e)},setTransition:function(e,i,s,n){return n=n||{},t.each(i,function(t,i){var o=e.cssUnit(i);o[0]>0&&(n[i]=o[0]*s+o[1])}),n}}),t.fn.extend({effect:function(){function i(e){function i(){l.removeData(r),t.effects.cleanUp(l),"hide"===s.mode&&l.hide(),a()}function a(){t.isFunction(h)&&h.call(l[0]),t.isFunction(e)&&e()}var l=t(this);s.mode=u.shift(),t.uiBackCompat===!1||o?"none"===s.mode?(l[c](),a()):n.call(l[0],s,i):(l.is(":hidden")?"hide"===c:"show"===c)?(l[c](),a()):n.call(l[0],s,a)}var s=e.apply(this,arguments),n=t.effects.effect[s.effect],o=n.mode,a=s.queue,l=a||"fx",h=s.complete,c=s.mode,u=[],d=function(e){var i=t(this),s=t.effects.mode(i,c)||o;i.data(r,!0),u.push(s),o&&("show"===s||s===o&&"hide"===s)&&i.show(),o&&"none"===s||t.effects.saveStyle(i),t.isFunction(e)&&e()};return t.fx.off||!n?c?this[c](s.duration,h):this.each(function(){h&&h.call(this)}):a===!1?this.each(d).each(i):this.queue(l,d).queue(l,i)},show:function(t){return function(s){if(i(s))return t.apply(this,arguments);var n=e.apply(this,arguments);return n.mode="show",this.effect.call(this,n)}}(t.fn.show),hide:function(t){return function(s){if(i(s))return t.apply(this,arguments);var n=e.apply(this,arguments);return n.mode="hide",this.effect.call(this,n)}}(t.fn.hide),toggle:function(t){return function(s){if(i(s)||"boolean"==typeof s)return t.apply(this,arguments);var n=e.apply(this,arguments);return n.mode="toggle",this.effect.call(this,n)}}(t.fn.toggle),cssUnit:function(e){var i=this.css(e),s=[];return t.each(["em","px","%","pt"],function(t,e){i.indexOf(e)>0&&(s=[parseFloat(i),e])}),s},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):s(this.css("clip"),this)},transfer:function(e,i){var s=t(this),n=t(e.to),o="fixed"===n.css("position"),a=t("body"),r=o?a.scrollTop():0,l=o?a.scrollLeft():0,h=n.offset(),c={top:h.top-r,left:h.left-l,height:n.innerHeight(),width:n.innerWidth()},u=s.offset(),d=t("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(e.className).css({top:u.top-r,left:u.left-l,height:s.innerHeight(),width:s.innerWidth(),position:o?"fixed":"absolute"}).animate(c,e.duration,e.easing,function(){d.remove(),t.isFunction(i)&&i()})}}),t.fx.step.clip=function(e){e.clipInit||(e.start=t(e.elem).cssClip(),"string"==typeof e.end&&(e.end=s(e.end,e.elem)),e.clipInit=!0),t(e.elem).cssClip({top:e.pos*(e.end.top-e.start.top)+e.start.top,right:e.pos*(e.end.right-e.start.right)+e.start.right,bottom:e.pos*(e.end.bottom-e.start.bottom)+e.start.bottom,left:e.pos*(e.end.left-e.start.left)+e.start.left})}}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,i){e[i]=function(e){return Math.pow(e,t+2)}}),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;((e=Math.pow(2,--i))-1)/11>t;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return.5>t?i(2*t)/2:1-i(-2*t+2)/2}})}(),t.effects,t.effects.define("fade","toggle",function(e,i){var s="show"===e.mode;t(this).css("opacity",s?0:1).animate({opacity:s?1:0},{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("highlight","show",function(e,i){var s=t(this),n={backgroundColor:s.css("backgroundColor")};"hide"===e.mode&&(n.opacity=0),t.effects.saveStyle(s),s.css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(n,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("slide","show",function(e,i){var s,n,o=t(this),a={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},r=e.mode,l=e.direction||"left",h="up"===l||"down"===l?"top":"left",c="up"===l||"left"===l,u=e.distance||o["top"===h?"outerHeight":"outerWidth"](!0),d={};t.effects.createPlaceholder(o),s=o.cssClip(),n=o.position()[h],d[h]=(c?-1:1)*u+n,d.clip=o.cssClip(),d.clip[a[l][1]]=d.clip[a[l][0]],"show"===r&&(o.cssClip(d.clip),o.css(h,d[h]),d.clip=s,d[h]=n),o.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:i})})});

// Page developed by Kaeli O'Connell, Alicia Lazzaro, and Esther Cordova

// persona container hover and click
$('.container-business-owner').click(function(){
    $('.container-business-owner').addClass('click-border');
    $('.type-business-owner').addClass('click-color');
    $('.business-owner-image path').attr("class","default click-fill");
    $('.container-service-delivery-manager, .container-technician').removeClass('click-border');
    $('.type-service-delivery-manager, .type-technician').removeClass('click-color');
    $('.service-delivery-manager-image path, .technician-image path').attr("class","default");
 });
$('.container-service-delivery-manager').click(function(){
    $('.container-service-delivery-manager').addClass('click-border');
    $('.type-service-delivery-manager').addClass('click-color');
    $('.service-delivery-manager-image path').attr("class","default click-fill");
    $('.container-business-owner, .container-technician').removeClass('click-border');
    $('.type-business-owner, .type-technician').removeClass('click-color');
    $('.business-owner-image path, .technician-image path').attr("class","default");
 }); 
$('.container-technician').click(function(){
    $('.container-technician').addClass('click-border');
    $('.type-technician').addClass('click-color');
    $('.technician-image path').attr("class","default click-fill");
    $('.container-service-delivery-manager, .container-business-owner').removeClass('click-border');
    $('.type-service-delivery-manager, .type-business-owner').removeClass('click-color');
    $('.service-delivery-manager-image path, .business-owner-image path').attr("class","default");
}); 

// connect sortable code to containers
$(".draggable-container").sortable({connectWith: ".pain-point"});
$(".pain-point").sortable({connectWith: ".draggable-container"});

// disable multiple elements in pain-points
$('.ui-sortable div').mousedown(function() {
    $('.ui-sortable').not($(this).parent()).each(function() {
        if ($(this).find('div').length >= 1) {
            if ($(this).attr('id') != "start-list" ) {
                $(this).sortable('disable');
            }
        }
    });
});

$('.ui-sortable div').mouseup(function() {
    $('.ui-sortable').each(function() {
        $(this).sortable('enable');
    });
});

// loop through pain-point divs to display results
var counter = 0;
var struggleId;

function fieldResults () {
    var personaFieldResult = $(".click-border").attr("data");
    var items = [];
        if (counter == 5 && typeof personaFieldResult != "undefined") {
            $(".submit-container").css({"background-color":"#4a90e2","cursor":"pointer"});
            $(".submit-link").css({"color":"#fff","opacity":"1"});
            $(".submit-container").click(function() {
                $( ".pain-point" ).each(function() {
                struggleId = $(this).children().attr('id');
                items.push(struggleId);
                }); 
                
            for (var i = 0; i < items.length; i++) {
                if (items[i] == "struggle1"){
                    $('#struggle1-result').show();
            }   if (items[i] == "struggle2"){
                    $('#struggle2-result').show();
            }   if (items[i] == "struggle3"){
                    $('#struggle3-result').show();
            }   if (items[i] == "struggle4"){
                    $('#struggle4-result').show();
            }   if (items[i] == "struggle5"){
                    $('#struggle5-result').show();
            }   if (items[i] == "struggle6"){
                    $('#struggle6-result').show();
            }   if (items[i] == "struggle7"){
                    $('#struggle7-result').show();
            }   if (items[i] == "struggle8"){
                    $('#struggle8-result').show();
            }   if (items[i] == "struggle9"){
                    $('#struggle9-result').show();
            }   if (items[i] == "struggle10"){
                    $('#struggle10-result').show();
            }   if (items[i] == "struggle11"){
                    $('#struggle11-result').show();
            }   if (items[i] == "struggle12"){
                    $('#struggle12-result').show();
            }   if (items[i] == "struggle13"){
                    $('#struggle13-result').show();
            }   if (items[i] == "struggle14"){
                    $('#struggle14-result').show();
            }
            };
            
            $(".pain-points-container").hide();
            $(".results-window").show();
            }); //closes click function
        } // closes if statement
        
        else {
            $(".submit-container").css({"background-color":"#C3D6DC","cursor":"default"});
            $(".submit-link").css({"color":"#759faf","opacity":"0.3"});
        } 
}; //closes fieldResults

// run fieldResults on drag
$( ".pain-point" ).on( "sortreceive", function() {    
    counter++; 
    fieldResults();
});

//remove 1 from counter on drag back to draggable container
$(".draggable-container").on( "sortreceive", function() {    
    counter--;
    fieldResults();
});

// loop again when persona is clicked (solves problem of submit button not showing if persona is chosen last)
$(".persona-container").click(function() {
    fieldResults();
});

// calculate showing results text & calculate technology and service number
$(".submit-container").click(function() {
    var persona = $(".click-border").attr("data");
    var technologyNumber = 0;
    var serviceNumber = 0;
        $(".pain-point .struggle").each(function() {
            if ($(this).attr("data") == "service") {
                  serviceNumber++ ;
            }
            else if( $(this).attr("data") == "technology") {
            technologyNumber++ ;
            }
        });
        
        if (technologyNumber >= 3 && persona == "businessowner"){
            $('#business-owner-technology').show();
            $('#business-technology-cta').show();
        }
        else if (serviceNumber >= 3 && persona == "businessowner"){
            $('#business-owner-service').show();
            $('#business-service-cta').show();
        }
        else if (technologyNumber >= 3 && persona == "servicedeliverymanager"){
            $('#service-delivery-manager-technology').show();
            $('#service-delivery-manager-technology-cta').show();
        }
        else if (serviceNumber >= 3 && persona == "servicedeliverymanager"){
            $('#service-delivery-manager-service').show();
            $('#service-delivery-manager-service-cta').show();
        } 
        else if (technologyNumber >= 3 && persona == "technician"){
            $('#technician-technology').show();
            $('#technician-technology-cta').show();
        }
        else if (serviceNumber >= 3 && persona == "technician"){
            $('#technician-service').show();  
            $('#technician-service-cta').show();
        }
}); //closes click function

// styling between removing and receiving struggle divs
$( "#pain1" ).sortable({
    receive: function() {
        $('#pain1').css({"padding":"0","border":"none"});
        $('.pain-point .struggle').css("margin","0");
    }
});

$( "#pain2" ).sortable({
    receive: function() {
        $('#pain2').css({"padding":"0","border":"none"});
        $('.pain-point .struggle').css("margin","0");
    }
});

$( "#pain3" ).sortable({
    receive: function() {
        $('#pain3').css({"padding":"0","border":"none"});
        $('.pain-point .struggle').css("margin","0");
    }
});

$( "#pain4" ).sortable({
    receive: function() {
        $('#pain4').css({"padding":"0","border":"none"});
        $('.pain-point .struggle').css("margin","0");
    }
});

$( "#pain5" ).sortable({
    receive: function() {
        $('#pain5').css({"padding":"0","border":"none"});
        $('.pain-point .struggle').css("margin","0");
    }
});

$(".pain-point").sortable({
    remove: function() {
        $(this).css({"padding":"32px 15px","border":"1px dashed #d2d2d2"});
    }
});

$( ".draggable-container" ).sortable({
    receive: function() {
        $('.draggable-container .struggle').css("margin","12px 15px");
    }
});

$( ".pain-point" ).sortable({
    over: function() {
        $(this).css("border","1px dashed #666666");
    }
});

// Reload page
$( ".try-again-container" ).click(function() {
    location.reload();
});


// Mobile
$('.mobile .struggle').click(function(){
    $(this).toggleClass('mobile-click-border');
    $(this).children('div').toggleClass('mobile-click-color');
});

// calculating remaining struggles to click
$(".mobile .struggle").click(function() {
    if ($(this).hasClass("mobile-click-border")) {
        counter++ 
    }
    else if (!$(this).hasClass("mobile-click-border")){
        counter--
    }
    
    var missingStruggleSelection = 5;
    missingStruggleSelection = missingStruggleSelection - counter;
    mobileFieldResults();
    
    if ( counter == 4) {
        $(".option-text").html("<span>click to select "+ missingStruggleSelection + " option</span>");
    }
    else if ( counter <= 4) {
        $(".option-text").html("<span>click to select "+ missingStruggleSelection + " options</span>");
    }
    else if (counter == 5) {
        $(".option-text").html("<span> click below to submit your list </span>");
    }
    else if ( counter >= 5 ) {
        $(".option-text").html("<span> you have chosen " + counter + " options,<br> please choose 5 </span>");
    } 
       
});  //closes click function

function mobileFieldResults() {
    var personaFieldResult = $(".click-border").attr("data");
    var mobileItems = [];
   
        if (counter == 5 && typeof personaFieldResult != "undefined") {
        $(".submit-container").css({"background-color":"#4a90e2","cursor":"pointer"});
        $(".submit-link").css({"color":"#fff","opacity":"1"});
        $(".submit-container").click(function() {
            $( ".mobile-click-border" ).each(function() {           
                mobileStruggleId = $(this).attr('id');
                    mobileItems.push(mobileStruggleId); 
            }); 
                                
            for (var i = 0; i < mobileItems.length; i++) {
                if (mobileItems[i]  == 'struggle1') {
                    $('.mobile #struggle1-result').show();
            }   if (mobileItems[i]  == 'struggle2') {
                    $('.mobile #struggle2-result').show();
            }   if (mobileItems[i]  == 'struggle3') {
                    $('.mobile #struggle3-result').show();
            }   if (mobileItems[i]  == 'struggle4') {
                    $('.mobile #struggle4-result').show();
            }   if (mobileItems[i]  == 'struggle5') {
                    $('.mobile #struggle5-result').show();
            }   if (mobileItems[i]  == 'struggle6') {
                    $('.mobile #struggle6-result').show();
            }   if (mobileItems[i]  == 'struggle7') {
                    $('.mobile #struggle7-result').show();
            }   if (mobileItems[i]  == 'struggle8') {
                    $('.mobile #struggle8-result').show();
            }   if (mobileItems[i]  == 'struggle9') {
                    $('.mobile #struggle9-result').show();
            }   if (mobileItems[i]  == 'struggle10') {
                    $('.mobile #struggle10-result').show();
            }   if (mobileItems[i]  == 'struggle11') {
                    $('.mobile #struggle11-result').show();
            }   if (mobileItems[i]  == 'struggle12') {
                    $('.mobile #struggle12-result').show();
            }   if (mobileItems[i]  == 'struggle13') {
                    $('.mobile #struggle13-result').show();
            }   if (mobileItems[i]  == 'struggle14') {
                    $('.mobile #struggle14-result').show();
            } 
            } //closes for loop
            
            $(".pain-points-container").hide();
            $(".tell-us-who-you-are-container").hide();
            $('body').scrollTop(0);
            $(".results-window").show();
    }); //closes click function
        } //closes if statement 
        
        else {
            $(".submit-container").css({"background-color":"#C3D6DC","cursor":"default"});
            $(".submit-link").css({"color":"#759faf","opacity":"0.3"});
        }
};  //closes mobileFieldResults

// calculate showing results text
$(".submit-container").click(function() {
    var persona = $(".click-border").attr("data");
    var technologyNumber = 0;
    var serviceNumber = 0; 

        $(".mobile-click-border").each(function() {
            if ($(this).attr("data") == "service") {
                serviceNumber++ ;
            } 
            else if ($(this).attr("data") == "technology") {
                technologyNumber++ ;
            };
        
        if (technologyNumber >= 3 && persona == "businessowner"){
            $('.mobile #business-owner-technology').show();
            $('.mobile #business-technology-cta').show();
        }
            else if (serviceNumber >= 3 && persona == "businessowner"){
            $('.mobile #business-owner-service').show();
            $('.mobile #business-service-cta').show();
        }
            else if (technologyNumber >= 3 && persona == "servicedeliverymanager"){
            $('.mobile #service-delivery-manager-technology').show();
            $('.mobile #service-delivery-manager-technology-cta').show();
        }
            else if (serviceNumber >= 3 && persona == "servicedeliverymanager"){
            $('.mobile #service-delivery-manager-service').show();
            $('.mobile #service-delivery-manager-service-cta').show();
        } 
            else if (technologyNumber >= 3 && persona == "technician"){
            $('.mobile #technician-technology').show();
            $('.mobile #technician-technology-cta').show();
        }
            else if (serviceNumber >= 3 && persona == "technician"){
            $('.mobile #technician-service').show();
            $('.mobile #technician-service-cta').show();
        }
        });
});

    

/*****************************************/
/* Start your style declarations here    */
/*****************************************/

/* Global Styles */
body::before { -webkit-border-radius: 2012px 24px; position: absolute; top: -43px; left: 0px; width: 100%; background: rgba(0, 0, 0, 0.3); height: 30px; content: " "; z-index: -1; display: block; box-shadow: 0 0 10px 20px rgba(0, 0, 0, 0.3);  opacity: 0;}
body {background: #ffffff;}
html, body {max-width: 100%; margin: 0; padding: 0;}
#company-logo img {display: inline;}
#company-name {display: none;}
body, h1, h2, h3, h4, h5, p, a, ul, li {font-family: 'Open Sans', sans-serif!important;}
h1, h2, h3, h4, h5 {color: #333e48;}
img {height: auto;}
hr {border-top: solid 1px #d8d8d8; width: 80%;}
a {color: #4a90e2; text-decoration: none;}
p, ul, li, .hs-button, .marketing .marketing-byline {color: #333e48; text-align: left;}
.home-logo {margin-top: 10px; float: right!important; max-width: 180px;}
.blog-logo, .company-news-blog-logo {margin: 20px 0; float: left!important; max-width: 250px;}
.blog-logo img {max-width: 240px!important; padding-bottom: 28px;}
.fa-orange {color: #ff671f;}

/* Old Styles */
.hs_cos_wrapper_type_section_header .page-header h1, .hs_cos_wrapper_type_section_header .page-header .secondary-header span, .marketing .page-header h1, .marketing .page-header p.marketing-byline {text-align: left;}
.hs_cos_wrapper_type_section_header .page-header p {margin-bottom: 0px;}
.hs_cos_wrapper_type_section_header .page-header .secondary-header span {display: block;}
.hs_cos_wrapper_widget img {height: auto!important; min-width: 100%; }
.widget-type-cta .hs_cos_wrapper_widget img {height: auto!important; min-width: auto!important; }
.top-navigation h2 {margin-bottom: 0;}
form.hs-form .hs-form-field ul.inputs-list li {list-style: none; margin-left: 0px;}
.footer-container footer, footer.footer {text-align: left; padding-top: 15px;}
.hs-menu-wrapper.hs-menu-not-show-active-branch li.hs-menu-depth-1 ul {box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.18); -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.18); -moz-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.18);}
.widget-type-blog_content .post-item {margin-bottom: 2em; padding-bottom: 1em; border-bottom: 1px solid rgba(0, 0, 0, 0.3); width: 85%; margin: 0 auto;}
.container-fluid.header-container,.container-fluid.footer-container footer {padding-bottom: 0px;}
.container-fluid.footer-container {padding-top: 0px;}
.hs_cos_wrapper_type_section_header .page-header h1 {margin: 36px 0 27px; font-size: 40px; font-weight: 300;}
.hs_cos_wrapper_type_section_header .page-header .secondary-header span {font-size: 18px; font-weight: 300; line-height: 24px;}
.btn-primary, .hs-button.primary {background-color: #6cae11; color: #ffffff;cursor:pointer !important;display:inline-block !important; text-align: center!important;text-decoration:none !important;width:auto !important;height:auto !important;font-family:'Open Sans',sans-serif!important;border-radius:4px !important;color:rgb(255,255,255) !important;padding:8px 14px !important;font-size:18px !important;line-height:24px !important;}
.btn-primary:hover, .hs-button.primary:hover {color:rgb(255,255,255) !important;}
.btn-primary:active, .hs-button.primary:active .btn-primary:active:hover, .hs-button.primary:active:hover {background-color:rgb(97,143,41) !important;color:rgb(244,244,244) !important;}
form.hs-form .hs-form-field ul.inputs-list {margin-left: 10px;}
div#ak-page-content p {margin : 20px 0; font-size : 12px; line-height : 1.5}
body.hs-blog-name-continuum-blog {color: #333e48; background-color: #fff;}
div.custom-author-social {clear: both; padding-top: 5px;}
.hs-blog-name-continuum-blog .hs-blog-social-share ul {margin-left: 0;}
.hs-blog-name-continuum-blog .custom-social-sharing, .bottom-social-share {margin: 10px 0;}
.bottom-social-share a {margin-right: 8px;}
.hs-blog-name-continuum-blog .sidebar-box h3 {color: #ff671f!important;}
.hs-blog-name-continuum-blog .sidebar-box {background-color: #e7e7e7; padding: 20px; margin-bottom: 20px; border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px;}
.sidebar-box.google-search {padding-bottom: 0;}
.hs-blog-name-continuum-blog .sidebar-box.cta-module {padding: 0; background-color: #fff;}
.hs-blog-name-continuum-blog .sidebar-box.cta-module img {width: 100%!important; max-width: 300px!important; display: block; margin: 0 auto!important;}
input#gsc-i-id1 {background-image: none!important;}
a.gs-title, a.gs-title b, .gsc-cursor-page {color: #759faf!important; font-family: 'Open Sans',sans-serif;}
.gs-snippet {font-family: 'Open Sans',sans-serif;}
.gs-bidi-start-align.gs-visibleUrl.gs-visibleUrl-long {color: #4c4c4e!important; font-family: 'Open Sans',sans-serif;    }
.hs-blog-name-continuum-blog .hs-button.primary {border: none!important; font-family: 'Open Sans',sans-serif!important; border-style: none!important; background-image: none!important; box-shadow: none!important; text-shadow: none!important; font-weight: normal!important; padding: 10px 30px!important; background-color: #5E9C0A;}
.hs-blog-name-continuum-blog .hs-button.primary:hover {border-style: none!important; background-image: none!important; box-shadow: none!important; text-shadow: none!important; font-family: 'Open Sans',sans-serif!important; font-weight: normal!important; padding: 10px 30px!important; background-color: #6CAE11;}
.sidebar-test .body-container-wrapper {padding-top: 0!important;}
.toggle-left {width: 100%!important;}
.sidebar-box.google-search {max-width: 250px; float: right;}
.bottom-social-hide {display: none!important;}

/* 8/26/16 Styles */
.blog-logo img {max-width: 140px !important;}
.widget-type-cta, .post-header h2, .post-body p, p.hubspot-editable, p#hubspot-topic_data, .post-preview p {text-align: center!important;}
.msp-blog .container-fluid h1 a, .company-news-blog h1 a, .company-news-blog h1, .europe-msp-blog h1, .europe-msp-blog h1 a {border-bottom: none!important; font-size: 2rem!important; font-weight: 300!important;}
.msp-blog .container-fluid h1 a {color: #fff;}
.company-news-blog h1 a, .company-news-blog h1 {padding-top: 80px; color: #759faf;}
.europe-msp-blog h1, .europe-msp-blog h1 a {padding-top: 40px;}
.msp-blog .container-fluid h1 a {padding-top: 70px;}
h1.post-title {border-bottom: none!important; font-size: 28px; color: #ffffff; font-weight: 300!important; padding-top: 90px;}
#author-data, #author-data a {padding-top: 50px; color: #fff;}
a.more-link {text-align: center; margin: 15px auto; display: block; padding: 10px; border-radius: 4px; width: 11%; color: #fff; font-weight: normal!important; background-color: #333e48; font-size: 15px;}
.msp-blog .topics p, .hs-author-social-links, .hs-author-bio p, .msp-blog .bio-author-link, .hs-author-avatar, .hs-menu-wrapper.hs-menu-flow-vertical>ul li a {text-align: center;}
.msp-blog .topics {padding-bottom: 10px;}
.continuum-link {background-color: #fff; border-radius: 8px 8px 0 0; position: fixed; bottom: 0; right: 25.5%; padding: 5px 5px; width: 15%;opacity: .75; z-index:999;}
.continuum-home-link a:hover .continuum-link {opacity: 1.0;}
.msp-blog p, .company-news-blog p, .europe-msp-blog p, .msp-blog .container-fluid li, .company-news-blog .container-fluid li, .europe-msp-blog .container-fluid li {font-size: 15px; color: #666666; line-height: 1.5; font-weight: 300;}
.msp-blog .container-fluid ul, .company-news-blog .container-fluid ul, .europe-msp-blog .container-fluid ul {list-style-image: url('//cdn2.hubspot.net/hub/281750/file-413719104-png/img/backgrounds/circle-bullet.png?t=1527168646427');}
.hs-menu-wrapper.hs-menu-flow-vertical>ul {list-style: none!important;}
.hs-author-avatar {padding-bottom: 15px;}
.hs-author-avatar img {border-radius: 50%;}
.msp-blog h2.hs-author-name, .europe-msp-blog h2.hs-author-name, .company-news-blog h2.hs-author-name {text-align: center;}
.hs-author-bio, .hs-author-bio p {padding-bottom: 20px; font-size: 16px; line-height: 1.6!important; color: #666666;}
.hs-author-profile {padding: 90px 8% 50px 9%; text-align: center; font-weight: 300; color: #666666;}
.company-news-blog .hs-author-profile {margin-top: 100px;}
.msp-blog h3.hs-author-listing-header {text-align: center;}
.hs-author-social-label {font-size: 12px; padding-bottom: 5px;}
.hs-author-social-links a.hs-author-social-link {width: 26px; height: 26px; border-width: 0px; border: 0px; line-height: 24px; background-repeat: no-repeat; text-indent: -99999px; background-size: 16px 16px;}
.hs-author-social-links a.hs-author-social-link.hs-social-linkedin {background-image: url("//cdn2.hubspot.net/hubfs/281750/resources/blog/LinkedIn-Icon-for-MSP-Blog.png?t=1527168646427");}
.hs-author-social-links a.hs-author-social-link.hs-social-twitter {background-image: url("//cdn2.hubspot.net/hubfs/281750/resources/blog/Twitter-Icon-for-MSP-Blog.png?t=1527168646427");}
.msp-blog h2 a, .company-news-blog h2 a, .europe-msp-blog h2 a {font-size: 24px; color: #759faf; font-weight: 300!important;}
.msp-blog h2, .company-news-blog h2, .europe-msp-blog h2 {font-size: 24px; color: #ff671f; font-weight: 300; text-align: left;}
.blog-post-wrapper .post-body p {text-align: left!important; font-size: 16px!important;}
.blog-post-wrapper .post-body p img {margin: 0 auto; display: block;}
.msp-blog h3, .company-news-blog h3, .europe-msp-blog h3 {font-size: 1rem; font-weight: bold; color: #666666; padding-top: 15px;}
.msp-blog h3, .company-news-blog h3, .europe-msp-blog h3 a {font-size: 18px; text-align: left; font-weight: 700;}
.msp-blog p.post-body-introduction , .company-news-blog .post-body-introduction p, .europe-msp-blog .post-body-introduction p {font-size: 20px!important; color: #478caa; line-height: 1.6; text-align: center!important; font-weight: 400;}
.msp-blog .closing-text, .europe-msp-blog .closing-text {font-size: 1.125rem; color: #333e48; line-height: 1.5;} 
.msp-blog .bio-author-link, .company-news-blog .bio-author-link, .europe-msp-blog .bio-author-link {font-size: 14px; color: #333e48!important; border-bottom: 2px solid #ff671f; text-style: underline; width: 15%; margin: 0 auto 10px auto; padding-bottom: 5px; text-align: center;}
.msp-blog .author-name a {color: #fff;}
.msp-blog .social-container, .company-news-blog .social-container, .europe-msp-blog .social-container {left: 0; width: 45px; position: fixed; background-color: #f2f2f2; border-radius: 0px 10px 10px 0px; text-align: center; padding: 20px 5px; margin-top: -155px;}
.hs-blog-name-continuum-blog .sidebar-box {background-color: #ffffff!important; padding: 0!important;}
.header-container-wrapper .header-container,.footer-container-wrapper .footer-container {box-shadow: none!important; background: none!important;}
div.body-container.container-fluid {background-color: #ffffff; margin: 20px 10%; max-width: none;}
.body-container-wrapper {margin-left: -45px; margin-top: -40px;}
.body-container-wrapper .body-container {box-shadow: none!important;}
.modalDialog {position: fixed; top: 0;right: 0;bottom: 0;left: 0;background: rgba(0,0,0,0.7);z-index: 99999;opacity:0;-webkit-transition: opacity 400ms ease-in;-moz-transition: opacity 400ms ease-in;transition: opacity 400ms ease-in;pointer-events: none;}
.modalDialog:target {opacity:1; pointer-events: auto;}
.modalDialog > div {width: 33%; position: relative; margin: 3% auto; padding: 24px 20px 0px 20px; border-radius: 10px; background: #fff; min-height: 500px;}
.close {color: #333e48; line-height: 25px; position: absolute; right: 10px; text-align: center; top: 10px; width: 24px; text-decoration: none; font-weight: bold;}
.container-fluid h3.form-title {font-size: 1.3rem; margin-bottom: 0; color: #ff671f; padding-bottom: 15px;}
.top-navigation .fa-search {font-size: 20px; color: #ff671f;}
.featured-post-panel, .post-item.loadHide {display: none!important;}
.loadMore {clear: both; background-color: #e6e6e6; padding: 5px 20px; cursor: pointer; text-align: center; font-size: 16px; border: 1px solid #B3B3B3; font-weight: 600; width: 100px; text-align: center; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; margin: 25px auto 80px ; overflow: hidden;}
.whiteMask {position: absolute; top: 0; left: 0; background-color: rgba(255,255,255,1); height: 100%; width: 100%; z-index: 1000;}
.hs-menu-wrapper.hs-menu-flow-vertical>ul li a:hover {color: #ff671f!important;}
.hs-menu-wrapper ul ul {box-shadow: none!important;}
.hs-menu-wrapper.hs-menu-flow-vertical > ul li.hs-item-has-children a {padding-top: 0;}
.hs-menu-wrapper.hs-menu-flow-vertical>ul li.hs-item-has-children ul.hs-menu-children-wrapper {left: 24%!important; margin-top: 56px; padding-top: 34px; padding-bottom: 15px; background-color: #ffffff;}
.hs-menu-wrapper ul ul li a {text-transform: none!important;color: #333e48!important;font-size: 14px!important;font-weight: 500!important;line-height: 28px!important;}
.hs-menu-wrapper.hs-menu-flow-vertical li a {width: 255px!important;}
.navigation-panel {padding: 0 5% 0 5%;} 
.hubl-template {display: none!important;}
div.body-container.container-fluid {margin: 0!important;}
.msp-blog .post-listing {width: 97%;}
.post-margins {margin: 0% 12% 3% 12%;}
.msp-blog .post-margins {margin: 0% 8% 3% 11%;}
.msp-blog .listing-margins {margin: 5.5% 6% 3% 6%;}
.header-margins {margin: 3.7% 12% 3% 12%;}
.listing-margins {margin: 3% 12%;}
.video-wrapper {padding: 0% 25%;}
.post-item .post-body p  {color: #333e48!important; font-size: 15px!important; font-weight: 300;}
.post-item img {float: none; margin: 0 auto; display: block;}
.msp-blog .post-item p img {display: none!important;}
.blog-pagination {text-align: center; padding: 10px 0; font-size: 16px;}
.hs-author-social-links {display: block !important;}
.blog-post-wrapper .post-body p img.hide {display: none;}
.row-fluid {margin-bottom: -40px;}
.msp-blog .row-fluid {margin-bottom: -15px;}
.msp-blog .widget-type-blog_content .post-item {width: 100%; margin: 0px 3%;}
.msp-blog div.span1.widget-span.widget-type-raw_html {position: absolute}

/* Company News Blog */
.company-news-blog .subscription-modal h2 {margin-top: 3px;}
.company-news-blog .top-navigation {padding-top: 36px;}
.company-news-blog .top-navigation h2 {float: none;}
.company-news-blog .navigation-panel {padding: 0 8% 2%;}
.company-news-blog .post-header a {color: #759faf;}
.company-news-blog .post-listing {margin-top: 13%;}
.company-news-blog .header-margins {margin: 7.7% 12% 3% 12%;}

/* Europe MSP Blog */
.europe-blog-logo {padding-top: 25px;}
.europe-msp-blog .subscription-modal h2 {margin-top: 3px;}
.europe-msp-blog .top-navigation {padding-top: 31px;}
.europe-msp-blog .top-navigation h2 {float: none;}
.europe-msp-blog .post-header a {color: #759faf;}
.europe-msp-blog .featured-post-background {background-image: url('//cdn2.hubspot.net/hubfs/281750/European_Hub/Europe-MSP-Blog-Featured-Post-Image.png?t=1527168646427'); min-height: 300px!important; background-repeat: no-repeat; background-size: cover; margin-top: 80px;}
.europe-msp-blog .listing-margins {margin: 3% 12% 3% 5%;}
.europe-msp-blog .body-container-wrapper {padding-top: 0!important; margin-left: 4%;}
.europe-msp-blog .featured-post-wrapper, .europe-msp-blog .featured-post-wrapper p, .europe-msp-blog .featured-post-wrapper h1 {text-align: center; color: #fff;}


/* MSP Blog Updates June 2017 */
.msp-blog .container-fluid .navigation-items ul {list-style: none;}
.msp-blog .continuum-footer .teal-banner {padding: 20px 5px 15px 5px;}
.msp-blog .bold {font-weight: 600; border-bottom: 2px solid white;}
.msp-blog .gone {display: none;}
.new-styles .body-container-wrapper {padding-top: 0!important;}
.new-styles .span12.widget-span.widget-type-raw_html.more-continuum-link {position: fixed; background-color: #fff; width: 105%; z-index: 999999;}
.new-styles .collasped-navigation {height: 55px; padding: 10px 0;}
.new-styles p.more-continuum {font-size: 11px!important; color: #e15e2b; padding-top: 38px; cursor: pointer;}
.new-styles .hs_cos_wrapper.hs_cos_wrapper_widget.hs_cos_wrapper_type_raw_html.fa-chevron-up {margin-top: 0; padding-top: 0;}
.new-styles .header-image {background-image: url('https://cdn2.hubspot.net/hubfs/281750/resources/blog/msp-blog-header-background-image.png?t=1527168646427'); box-shadow:inset 0 0 0 2000px rgba(71, 140, 170, 0.83); background-repeat: no-repeat; background-size: cover; padding: 10px 0 40px;}
.new-styles .bdr-header-image {background-image: url('//cdn2.hubspot.net/hubfs/281750/resources/blog/Banners/managed-it-services.png?t=1527168646427'); box-shadow:inset 0 0 0 2000px rgba(71, 140, 170, 0.53); background-repeat: no-repeat; background-size: cover; padding: 10px 0 40px;}
.new-styles .business-growth-header-image {background-image: url('//cdn2.hubspot.net/hubfs/281750/resources/blog/Banners/business-management.jpg?t=1527168646427'); box-shadow:inset 0 0 0 2000px rgba(71, 140, 170, 0.53); background-repeat: no-repeat; background-size: cover; padding: 10px 0 40px;}
.new-styles .cybersecurity-header-image {background-image: url('//cdn2.hubspot.net/hubfs/281750/resources/blog/Banners/information-technology.jpg?t=1527168646427'); box-shadow:inset 0 0 0 2000px rgba(71, 140, 170, 0.53); background-repeat: no-repeat; background-size: cover; padding: 10px 0 40px;}
.new-styles .help-desk-header-image {background-image: url('//cdn2.hubspot.net/hubfs/281750/resources/blog/Help-Desk-Blog.png?t=1527168646427'); box-shadow:inset 0 0 0 2000px rgba(71, 140, 170, 0.53); background-repeat: no-repeat; background-size: cover; padding: 10px 0 40px;}
.new-styles .mdm-header-image {background-image: url('//cdn2.hubspot.net/hubfs/281750/resources/blog/mobile-device-management-blog.png?t=1527168646427'); box-shadow:inset 0 0 0 2000px rgba(71, 140, 170, 0.53); background-repeat: no-repeat; background-size: cover; padding: 10px 0 40px;}
.new-styles .rmm-header-image {background-image: url('//cdn2.hubspot.net/hubfs/281750/resources/blog/rmm-blog.png?t=1527168646427'); box-shadow:inset 0 0 0 2000px rgba(71, 140, 170, 0.53); background-repeat: no-repeat; background-size: cover; padding: 10px 0 40px;}
.new-styles .sales-header-image {background-image: url('//cdn2.hubspot.net/hubfs/281750/resources/blog/Banners/sales-marketing.jpg?t=1527168646427'); box-shadow:inset 0 0 0 2000px rgba(71, 140, 170, 0.53); background-repeat: no-repeat; background-size: cover; padding: 10px 0 40px;}
.new-styles .msp-blog-navigation {margin-top: 20px; margin-bottom: 10px; padding: 5px 0 0 25px;}
.new-styles .msp-blog-navigation .span2.widget-span.widget-type-linked_image {margin-top: 15px;}
.new-styles .secondary-navigation {display: flex; justify-content: flex-end; align-items: center; height: 80px;}
.new-styles .secondary-navigation h2 {font-size: 18px; text-align: center; color: #ffffff;}
.new-styles .secondary-navigation h2:last-child:hover {color: #759faf;}
.new-styles a > h2 {border-radius: 4px; border: solid 2px #ffffff; padding: 8px 18px; float: left; margin: 0 0 0 30px; margin-top: 0px;}
.new-styles a > h2:hover {background-color: #ffffff;}
.new-styles .category-options {font-size: 15px!important; text-transform: uppercase; padding: 12px 8px 0; margin-bottom: 8px; cursor: pointer;}
.new-styles .category-options:hover {font-weight: 600;}
.new-styles .category-dropdown {background-color: #fff; padding: 0 12%; display: none; box-shadow: 0 2px 4px 0 rgba(169, 169, 169, 0.5); position: absolute; z-index: 999; left: 0;}
.new-styles h3.category-header-dropdown {font-size: 15px!important; font-weight: 700; text-align: left; color: #478caa; text-transform: uppercase;}
.new-styles h3.category-header-dropdown a {color: #478caa;}
.new-styles .dropdown-blog-posts {display: flex;}
.new-styles .dropdown-item {width: 20%; margin: 0 10px;}
.new-styles .category-dropdown img {width: 200px;}
.new-styles h4.blog-title {padding-top: 8px; font-size: 11px; font-weight: 300; line-height: 1.64; color: #478caa; text-align: left; margin-bottom: 10px;}
.new-styles p.see-all, .fa-caret-right, p.see-all a {font-size: 13px!important; font-weight: 300; color: #666666; text-align: right;}
.new-styles .blog-description h1 {text-align: left!important; font-size: 20px; line-height: 1.56; color: #ffffff; width: 60%; padding-bottom: 50px;}
.new-styles div.featured-post-group {display: flex; text-align: left; background-color: #fff; box-shadow: 0 1px 4px 0 rgba(193, 193, 193, 0.5); top: -50px; position: relative; margin-bottom: -85px!important; padding: 0;}
.new-styles div.featured-post-group .span2.widget-span.widget-type-linked_image img {object-fit: cover; min-height: 230px;}
.new-styles h2.featured-post-header {font-size: 16px; font-weight: 700!important; color: #333e48; text-align: left; text-transform: uppercase; margin-bottom: 5px; margin-top: 28px;}
.new-styles h2.featured-post-title {font-size: 22px; color: #478caa; text-align: left; margin-bottom: 10px;}
.new-styles p.featured-post-description {font-size: 14px!important; font-weight: 300; line-height: 2.0; color: #666666;}
.new-styles div.featured-post-group .featured-post-cta {padding-top: 8%;}
.new-styles input#q {display: none; width: 55%; font-family: 'Open Sans'; color: #aaaaaa; font-style: italic; padding: 8px 14px; border-radius: 4px;}
.new-styles .fa-search.aligned {color: white; font-size: 20px; cursor: pointer; margin-top: -10px; float: right;}
.new-styles div.social-share-icons {text-align: center; padding-top: 5px;}
.new-styles div.social-share-icons span {color: #fff; font-size: 18px; padding-right: 8px;}

/* Subscribe Form Styles */
.new-styles .modalDialog > div {padding: 0; border-radius: 0; width: 37%; margin: 6% auto;}
.new-styles .span3.widget-span.widget-type-cell.subscription-modal.subscribe-form {width: 102.6%; margin-left: 0;}
.new-styles .subscribe-form .form-columns-1, .subscribe-form .form-columns-2 {margin: 0 auto; width: 102%;}
.new-styles .subscribe-form #hs_form_target_my_form {padding: 0 50px;}
.new-styles .subscribe-form span.hs_cos_wrapper.hs_cos_wrapper_widget.hs_cos_wrapper_type_rich_text > p {padding-left: 50px; padding-right: 50px; padding-bottom:30px;}
.new-styles .subscribe-form .hs_cos_wrapper.form-title {padding: 18px 40px; font-size: 24px; font-weight: bold;	letter-spacing: 0.4px; text-align: center; color: #333e48;}
.new-styles .subscribe-form .hs-form-field {font-size: 12px; font-weight: 600; color: #9b9b9b;}
.new-styles .subscribe-form .hs-input {border-radius: 2px; background-color: #fafafa; border: solid 1px #c9c9c9; margin-top: 3px; height: 25px;}
.new-styles .subscribe-form .inputs-list.multi-container {margin-left: 0!important; padding-left: 0;}
.new-styles .subscribe-form .hs-form-radio {display: inline-block; padding-right: 8px; padding-top: 5px;}
.new-styles .subscribe-form input[type="radio"] {height: 11px;}
.new-styles .subscribe-form input[type=submit].hs-button.primary {text-transform: uppercase; width: 98%!important; border-radius: 2px!important; background-color: #64a7b9; box-shadow: 0 8px 16px 0 rgba(100, 167, 185, 0.5); font-size: 15px!important; font-weight: 600; letter-spacing: 2.1px;}

/* Nav/Footer Fixes */
.new-styles .searchBarIcon .fa-search {color: #ff671f;}
.new-styles .header .l1-bar {margin-top: 15px;}
.new-styles .header-mega-menu .drop-down-cta p {padding: 20px 6px 0 20px;}
.new-styles .header-mega-menu .mega-menu .hs-menu-depth-1>.hs-menu-children-wrapper {top: 122px; -webkit-box-shadow: 1px 8px 5px -5px #d6d6d6!important;}
.new-styles .continuum-footer .hs-input {width: 53%!important;}
.new-styles .continuum-footer .subscribe-container {margin: 25px 0 60px 10px; padding: 15px 20px 65px 15px;}
.new-styles .continuum-footer .email-subscribe-form input[type=submit].hs-button.primary {font-size: 12px!important; width: 45% !important; padding: 3px 10px!important; border-radius: 0 4px 4px 0!important;}
.new-styles .sidr-class-mobile-top-nav p {text-align: center; font-size: 16px;}
.new-styles .menu-flyout .hs-menu-depth-3 a {padding-left: 0!important;}

/* Mobile Menu Styles */
.new-styles .fa.fa-bars.menu-launch {display: none;}
.new-styles .mobile-navigation {overflow-y: scroll; background-color: rgba(71, 140, 170, 0.83);}
.new-styles .mobile-navigation-items {overflow-y: scroll;}
.new-styles .mobile-navigation p {color: #fff; font-size: 14px; line-height: 1;}
.new-styles .mobile-navigation p a {color: #fff;}
.new-styles .mobile-navigation p:nth-child(1) {text-transform: uppercase; text-align: center; border-radius: 4px; background-color: #ffffff; font-size: 15px; font-weight: 600; letter-spacing: 3px; text-align: center; padding: 10px 0 8px 0; margin: 0 auto 10px;}
.new-styles .mobile-navigation p:nth-child(1) a {color: #333e48;}
.new-styles .mobile-navigation p.label {padding-top: 10px; font-weight: 600; text-transform: uppercase; font-size: 12px; color: #fff;}
.new-styles .mobile-navigation p:nth-child(9) {padding-bottom: 5px;}
.new-styles .mobile-navigation p:nth-child(10) {padding-top: 10px;}
.new-styles .mobile-navigation p:last-child {padding-bottom: 40px;}
.new-styles hr {width: 89%;}

/* IE Styles */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .new-styles .category-dropdown {width: 76%;}
    .new-styles div.featured-post-group {margin-bottom: -70px!important;}
}

/* Safari Styles */
.new-styles div.span12.widget-span.widget-type-cell.header-image:not(:root:root), .new-styles div.span12.widget-span.widget-type-cell.bdr-header-image:not(:root:root), .new-styles div.span12.widget-span.widget-type-cell.business-growth-header-image:not(:root:root), .new-styles div.span12.widget-span.widget-type-cell.cybersecruity-header-image:not(:root:root), .new-styles div.span12.widget-span.widget-type-cell.help-desk-header-image:not(:root:root), .new-styles div.span12.widget-span.widget-type-cell.mdm-header-image:not(:root:root), .new-styles div.span12.widget-span.widget-type-cell.rmm-header-image:not(:root:root), .new-styles div.span12.widget-span.widget-type-cell.sales-header-image:not(:root:root) {padding-top: 85px; padding-bottom: 50px;}
.new-styles .blog-description h1:not(:root:root) {padding-top: 35px;}
.new-styles .msp-blog-navigation .span2.widget-span.widget-type-linked_image img:not(:root:root) {padding-bottom: 45px;}

@media (max-width: 1420px) {
   .category-menu .hs-menu-flow-vertical>ul>li {margin-left: -85px;}
   .featured-post-wrapper {padding-top: 9%;}
   .featured-post-cta {padding-top: 0;}
}

@media (min-width: 1350px) {
.msp-blog .listing-margins {margin: 5.5% 12% 3% 12%;}
}

@media (max-width: 1215px) {
   .new-styles .msp-blog-navigation, .new-styles .blog-description h1 {padding-left: 50px;}
}

@media (max-width: 1024px) {
    .top-navigation .row-fluid  {width: 100%;}
    .modalDialog > div {width: 80%;}
    .subscription-modal h3 {text-align: center;}
    .subscription-modal label {text-align: left;}
    a.more-link {width: 18%;}
    .category-menu .hs-menu-flow-vertical>ul>li {margin-left: -120px;}
    .featured-post-wrapper {padding-top: 12%;}
    .msp-blog .featured-post-wrapper p {visibility: hidden;}
    .new-styles .header .l1-bar {margin-top: 10px;}
    .new-styles  .menu-flyout .header-full-width {top: 5px;}
    .new-styles .category-options {font-size: 14px!important;}
}

@media (max-width: 860px) {
    .new-styles div.featured-post-group .span3.widget-span.widget-type-linked_image  {display: none;}
    .new-styles .featured-post-blurb {width: 70%; margin-bottom: 15px; padding-left: 30px;}
}

@media (max-width: 768px) {
    .body-container-wrapper {margin-left: 0px;}
    .msp-blog .widget-type-blog_content .post-item {margin: 0px 0%;}
    .msp-blog .listing-margins {margin: 9.5% 5% 3% 8%;}
    .msp-blog .post-margins {margin: 0% 3% 3% 6%;}
    .expanded {max-height: 50em!important;}
    .new-styles .fa.fa-bars.menu-launch {display: block; color: #fff; font-size: 35px; position: absolute; top: 28px; left: 88%; cursor: pointer;}
    .company-news-blog .navigation-panel {padding: 0 8% 6%;}
    .company-news-blog .post-listing {margin-top: 22%;}
    .company-news-blog .post-header, .europe-msp-blog .post-header {width: 100%;}
    .new-styles .span12.widget-span.widget-type-raw_html.more-continuum-link, .new-styles div.span12.widget-span.widget-type-raw_html .secondary-navigation  {display: none!important;}
    .new-styles .msp-blog-navigation {margin-bottom: 40px; padding: 0;}
    .new-styles .msp-blog-navigation .span2.widget-span.widget-type-linked_image {text-align: center;}
    .new-styles .msp-blog-navigation .span2.widget-span.widget-type-linked_image img {margin-top: 35px;}
    .new-styles .header-image, .new-styles .bdr-header-image, .new-styles .business-growth-header-image, .new-styles .cybersecurity-header-image, .new-styles .help-desk-header-image, .new-styles .mdm-header-image, .new-styles .rmm-header-image, .new-styles .sales-header-image {padding: 65px 0 65px;}
    .new-styles .modalDialog > div {width: 71%;}
    .new-styles h2.featured-post-header {margin-top: 10px;}
    .new-styles .featured-post-cta {margin-right: 5%; margin-top: 5%; float: right; padding-top: 0!important;}
    .new-styles .mobile-navigation {margin-top: -41px; margin-left: -15px!important;}
    .new-styles .mobile-navigation p:nth-child(1) {width: 32%; margin-top: 15px;}
    .new-styles .mobile-navigation p {text-align: center; padding: 0;}
    /* Safari Only */ .new-styles div.span12.widget-span.widget-type-cell.header-image:not(:root:root), .new-styles div.span12.widget-span.widget-type-cell.bdr-header-image:not(:root:root), .new-styles div.span12.widget-span.widget-type-cell.business-growth-header-image:not(:root:root), .new-styles div.span12.widget-span.widget-type-cell.cybersecruity-header-image:not(:root:root), .new-styles div.span12.widget-span.widget-type-cell.help-desk-header-image:not(:root:root), .new-styles div.span12.widget-span.widget-type-cell.mdm-header-image:not(:root:root), .new-styles div.span12.widget-span.widget-type-cell.rmm-header-image:not(:root:root), .new-styles div.span12.widget-span.widget-type-cell.sales-header-image:not(:root:root) {padding-top: 70px;}
    /* Safari Only */ .new-styles .blog-description h1:not(:root:root) {padding-top: 0;}
    .new-styles .blog-description h1 {padding-left: 0;}
}

@media (max-width: 767px) {
    .google-search form, span.fa-search {display: none!important;}
    .top-navigation {width: 47%;}
    .top-navigation {float: none!important;}
    .top-navigation h2 {float: none; text-align: right;}
    .company-news-blog .top-navigation h2 {padding-right: 0;}
    .category-menu .hs-menu-flow-vertical>ul>li {margin-left: 0;}
    .subscription-modal h2 {margin-top: 0;}
    .category-menu h2 {margin-left: 15px;}
    .container-fluid h2 {margin-bottom: 0;}
    .featured-post h1 {font-size: 22px!important;}
    .hs-menu-wrapper.hs-menu-flow-vertical>ul li a {text-align: left;}
    .category-menu,.subscription-modal {display: inline-block!important;}
    .navigation {width: 100%!important;}
}

@media (max-width: 667px) {
    .new-styles .featured-post-cta {margin-top: -11%;}
}

@media (max-width: 680px) {
    .category-menu .hs-menu-flow-vertical>ul>li {margin-left: 0;}
    .category-menu {display: none;}
    .subscription-modal [class*="span"], .subscription-modal .row-fluid [class*="span"] {display: block}
    .navigation img {padding-top: 10px; width: 115px!important;}
    .navigation h2 {line-height: 18px;}
    .hs-menu-wrapper.hs-menu-flow-vertical li a {width: 200px!important;}
    .featured-post-wrapper {padding-top: 15%; padding-bottom: 6.5%;}
    .new-styles .mobile-navigation {margin-top: -61px;}
}

@media (max-width: 550px) {
    .blog-logo {float: none!important; margin: 0 auto!important; padding-top: 12px;}
    .blog-logo img {margin: 0 auto; display: block;}
    .top-navigation {padding-right: 0; text-align: center; float: none!important;}
    .home-logo {position: absolute; left: 25px; float: left!important;} 
    .category-menu {display: none!important;}
    .featured-post-wrapper {padding-top: 25%; padding-bottom: 8.5%;}
}

@media (max-width: 480px) {
    h1.post-title {padding-top: 40px;}
    .blog-logo {margin-top: 0!important; padding-top: 0;}
    .blog-logo img {margin: 0 auto; display: block;}
    .top-navigation .row-fluid {width: 100%;}
    .featured-post-wrapper h1 {line-height: 38px!important; padding: 0 10px;}
    .modalDialog>div {width: 85%;}
    a.more-link {width: 38%;}
    .top-navigation {padding-top: 0;}
    .top-navigation h2 {text-align: center; margin-bottom: 0;}
    .bst-responsive {position: relative;padding-bottom: 120%;height: 0;overflow: hidden;}
    .bst-responsive iframe {position: absolute; top:0; left: 0; width: 100%; height: 100%;}
    .msp-blog .bio-author-link {width: 50%;}
    form label {font-size: 12px;}
    .container-fluid h3.form-title {font-size: 1.1rem;}
    form.hs-form .hs-form-field ul.inputs-list {margin-left: 0;}
    form.hs-form .form-columns-2 .hs-form-field {float: left!important; width: 49%!important; display: inline-block;}
    form input[type=submit].hs-button.primary {margin-top: 0;}
    .featured-post-wrapper {padding-top: 33%; padding-bottom: 14.5%;}
    .post-margins, .listing-margins {margin: 0 5% 0 15%;}
    .msp-blog .row-fluid  {padding-bottom: 15px;}
    .msp-blog .post-margins {margin: 0 3.5% 0 6%;}
    .msp-blog .listing-margins, .company-news-blog .listing-margins, .company-news-blog .post-margins, .europe-msp-blog .listing-margins {margin: 0 5.5% 0 5.5%;}
    .msp-blog .post-header {width: 100%; left: 0px; padding-bottom: 20px;}
    div.span1.widget-span.widget-type-raw_html {display:none}
    .msp-blog .widget-type-blog_content .post-item {margin: 0;}
    .hs-author-profile {padding-top: 0;}
    #author-data, #author-data a {padding-top: 10px; padding-bottom: 10px;}
    .company-news-blog .navigation-panel {padding: 0 8% 8%;}
    .company-news-blog .post-listing {margin-top: 35%;}
    .europe-msp-blog .featured-post-wrapper {padding-top: 16%; padding-bottom: 40.5%;}
    .msp-blog p.post-body-introduction, .company-news-blog .post-body-introduction p, .europe-msp-blog .post-body-introduction p {font-size: 16px;}
    .msp-blog h2, .company-news-blog h2, .europe-msp-blog h2 {padding-top: 10px;}
    a.more-link {margin-top: 5px;}
    .new-styles .site-container {padding-left: 0!important;}
    .new-styles .fa.fa-bars.menu-launch {top: 15px; left: 82%;}
    .new-styles .header-image {padding: 15px 0 40px;}
    .new-styles .subscribe-form .span12.widget-span.widget-type-form.sidebar-box {padding: 0 20px;}
    .new-styles .modalDialog > div {width: 85%;}
    .new-styles .msp-blog-navigation {margin-bottom: 0;}
    .new-styles .featured-post-blurb {width: 100%; margin-bottom: 0; padding-left: 15px;}
    .new-styles div.featured-post-group {margin: 0 25px!important; padding: 0 20px;}
    .new-styles h2.featured-post-header {margin-top: 18px;}
    .new-styles h2.featured-post-title {font-size: 19px; margin-bottom: 7px;}
    .new-styles .featured-post-cta {text-align: left!important; margin-bottom: 20px; padding-top: 4%!important; margin-left: 0; float: none; margin-top: 0; padding-left: 15px;}
    .new-styles .blog-listing-body {margin-top: 0;}
    .new-styles .mobile-navigation {margin-top: -56px;}
    .new-styles .mobile-navigation p:nth-child(1) {width: 69%; padding-left: 0;}
    .new-styles .mobile-navigation p {text-align: left; padding: 0px 0 5px 42px;}
    /* Safari Only */ .new-styles div.span12.widget-span.widget-type-cell.header-image:not(:root:root), .new-styles div.span12.widget-span.widget-type-cell.bdr-header-image:not(:root:root), .new-styles div.span12.widget-span.widget-type-cell.business-growth-header-image:not(:root:root), .new-styles div.span12.widget-span.widget-type-cell.cybersecruity-header-image:not(:root:root), .new-styles div.span12.widget-span.widget-type-cell.help-desk-header-image:not(:root:root), .new-styles div.span12.widget-span.widget-type-cell.mdm-header-image:not(:root:root), .new-styles div.span12.widget-span.widget-type-cell.rmm-header-image:not(:root:root), .new-styles div.span12.widget-span.widget-type-cell.sales-header-image:not(:root:root) {padding-top: 15px;}
    /* Safari Only */ .new-styles .msp-blog-navigation .span2.widget-span.widget-type-linked_image img:not(:root:root) {padding-bottom: 15px;}
    .header-mega-menu .menu-flyout .l1-bar {margin-bottom: -9px;}
    .new-styles .blog-description h1 {width: 80%; text-align: center!important; padding-left: 12%;}
    .msp-blog .post-listing {width: 100%;}
}